diff --git a/packages/govuk-frontend/src/govuk/all.mjs b/packages/govuk-frontend/src/govuk/all.mjs index c4eec04427..d062f11c2d 100644 --- a/packages/govuk-frontend/src/govuk/all.mjs +++ b/packages/govuk-frontend/src/govuk/all.mjs @@ -12,6 +12,7 @@ export { Radios } from './components/radios/radios.mjs' export { SkipLink } from './components/skip-link/skip-link.mjs' export { Tabs } from './components/tabs/tabs.mjs' export { initAll, createAll } from './init.mjs' +export { isSupported } from './common/index.mjs' /** * @typedef {import('./init.mjs').Config} Config diff --git a/packages/govuk-frontend/src/govuk/all.puppeteer.test.js b/packages/govuk-frontend/src/govuk/all.puppeteer.test.js index 7b1bd680b4..8b42e09e48 100644 --- a/packages/govuk-frontend/src/govuk/all.puppeteer.test.js +++ b/packages/govuk-frontend/src/govuk/all.puppeteer.test.js @@ -44,7 +44,8 @@ describe('GOV.UK Frontend', () => { it('exports Components', async () => { const components = exported .filter( - (method) => !['initAll', 'createAll', 'version'].includes(method) + (method) => + !['initAll', 'createAll', 'version', 'isSupported'].includes(method) ) .sort() diff --git a/packages/govuk-frontend/src/govuk/common/index.mjs b/packages/govuk-frontend/src/govuk/common/index.mjs index d2e18910b1..3ea54c40e5 100644 --- a/packages/govuk-frontend/src/govuk/common/index.mjs +++ b/packages/govuk-frontend/src/govuk/common/index.mjs @@ -194,7 +194,6 @@ export function setFocus($element, options = {}) { * Some browsers will load and run our JavaScript but GOV.UK Frontend * won't be supported. * - * @internal * @param {HTMLElement | null} [$scope] - HTML element `` checked for browser support * @returns {boolean} Whether GOV.UK Frontend is supported on this page */