@wordpress/a11y 4.7.1-next.5368f64a9.0 → 4.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/index.js +17 -3
  3. package/build/index.js.map +1 -1
  4. package/build/module/index.js +5 -15
  5. package/build/module/index.js.map +1 -1
  6. package/build/{shared → script}/add-container.js.map +1 -1
  7. package/build/{shared → script}/add-intro-text.js +7 -3
  8. package/build/script/add-intro-text.js.map +1 -0
  9. package/build/shared/index.js +0 -24
  10. package/build/shared/index.js.map +1 -1
  11. package/build-module/index.js +16 -3
  12. package/build-module/index.js.map +1 -1
  13. package/build-module/module/index.js +4 -16
  14. package/build-module/module/index.js.map +1 -1
  15. package/build-module/{shared → script}/add-container.js.map +1 -1
  16. package/build-module/{shared → script}/add-intro-text.js +7 -3
  17. package/build-module/script/add-intro-text.js.map +1 -0
  18. package/build-module/shared/index.js +0 -23
  19. package/build-module/shared/index.js.map +1 -1
  20. package/build-types/index.d.ts +2 -2
  21. package/build-types/index.d.ts.map +1 -1
  22. package/build-types/module/index.d.ts +6 -1
  23. package/build-types/module/index.d.ts.map +1 -1
  24. package/build-types/script/add-container.d.ts.map +1 -0
  25. package/build-types/{shared → script}/add-intro-text.d.ts +1 -2
  26. package/build-types/script/add-intro-text.d.ts.map +1 -0
  27. package/build-types/shared/index.d.ts +0 -5
  28. package/build-types/shared/index.d.ts.map +1 -1
  29. package/package.json +4 -4
  30. package/src/index.js +22 -3
  31. package/src/module/index.ts +4 -18
  32. package/src/{shared → script}/add-intro-text.ts +7 -3
  33. package/src/shared/index.js +0 -28
  34. package/tsconfig.tsbuildinfo +1 -1
  35. package/build/shared/add-intro-text.js.map +0 -1
  36. package/build-module/shared/add-intro-text.js.map +0 -1
  37. package/build-types/shared/add-container.d.ts.map +0 -1
  38. package/build-types/shared/add-intro-text.d.ts.map +0 -1
  39. /package/build/{shared → script}/add-container.js +0 -0
  40. /package/build-module/{shared → script}/add-container.js +0 -0
  41. /package/build-types/{shared → script}/add-container.d.ts +0 -0
  42. /package/src/{shared → script}/add-container.js +0 -0
  43. /package/src/{shared → script}/test/add-container.test.js +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 4.8.0 (2024-09-19)
6
+
5
7
  ## 4.7.0 (2024-09-05)
6
8
 
7
9
  ## 4.6.0 (2024-08-21)
package/build/index.js CHANGED
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.setup = void 0;
7
+ exports.setup = setup;
8
8
  Object.defineProperty(exports, "speak", {
9
9
  enumerable: true,
10
10
  get: function () {
@@ -12,7 +12,8 @@ Object.defineProperty(exports, "speak", {
12
12
  }
13
13
  });
14
14
  var _domReady = _interopRequireDefault(require("@wordpress/dom-ready"));
15
- var _i18n = require("@wordpress/i18n");
15
+ var _addContainer = _interopRequireDefault(require("./script/add-container"));
16
+ var _addIntroText = _interopRequireDefault(require("./script/add-intro-text"));
16
17
  var _index = require("./shared/index");
17
18
  /**
18
19
  * WordPress dependencies
@@ -25,7 +26,20 @@ var _index = require("./shared/index");
25
26
  /**
26
27
  * Create the live regions.
27
28
  */
28
- const setup = exports.setup = (0, _index.makeSetupFunction)((0, _i18n.__)('Notifications'));
29
+ function setup() {
30
+ const introText = document.getElementById('a11y-speak-intro-text');
31
+ const containerAssertive = document.getElementById('a11y-speak-assertive');
32
+ const containerPolite = document.getElementById('a11y-speak-polite');
33
+ if (introText === null) {
34
+ (0, _addIntroText.default)();
35
+ }
36
+ if (containerAssertive === null) {
37
+ (0, _addContainer.default)('assertive');
38
+ }
39
+ if (containerPolite === null) {
40
+ (0, _addContainer.default)('polite');
41
+ }
42
+ }
29
43
 
30
44
  /**
31
45
  * Run setup on domReady.
@@ -1 +1 @@
1
- {"version":3,"names":["_domReady","_interopRequireDefault","require","_i18n","_index","setup","exports","makeSetupFunction","__","domReady"],"sources":["@wordpress/a11y/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport domReady from '@wordpress/dom-ready';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport { makeSetupFunction } from './shared/index';\nexport { speak } from './shared/index';\n\n/**\n * Create the live regions.\n */\nexport const setup = makeSetupFunction( __( 'Notifications' ) );\n\n/**\n * Run setup on domReady.\n */\ndomReady( setup );\n"],"mappings":";;;;;;;;;;;;;AAGA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAKA,IAAAE,MAAA,GAAAF,OAAA;AATA;AACA;AACA;;AAIA;AACA;AACA;;AAIA;AACA;AACA;AACO,MAAMG,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG,IAAAE,wBAAiB,EAAE,IAAAC,QAAE,EAAE,eAAgB,CAAE,CAAC;;AAE/D;AACA;AACA;AACA,IAAAC,iBAAQ,EAAEJ,KAAM,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_domReady","_interopRequireDefault","require","_addContainer","_addIntroText","_index","setup","introText","document","getElementById","containerAssertive","containerPolite","addIntroText","addContainer","domReady"],"sources":["@wordpress/a11y/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport domReady from '@wordpress/dom-ready';\n\n/**\n * Internal dependencies\n */\nimport addContainer from './script/add-container';\nimport addIntroText from './script/add-intro-text';\n\nexport { speak } from './shared/index';\n\n/**\n * Create the live regions.\n */\nexport function setup() {\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( introText === null ) {\n\t\taddIntroText();\n\t}\n\n\tif ( containerAssertive === null ) {\n\t\taddContainer( 'assertive' );\n\t}\n\n\tif ( containerPolite === null ) {\n\t\taddContainer( 'polite' );\n\t}\n}\n\n/**\n * Run setup on domReady.\n */\ndomReady( setup );\n"],"mappings":";;;;;;;;;;;;;AAGA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAH,sBAAA,CAAAC,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AAXA;AACA;AACA;;AAGA;AACA;AACA;;AAMA;AACA;AACA;AACO,SAASI,KAAKA,CAAA,EAAG;EACvB,MAAMC,SAAS,GAAGC,QAAQ,CAACC,cAAc,CAAE,uBAAwB,CAAC;EACpE,MAAMC,kBAAkB,GAAGF,QAAQ,CAACC,cAAc,CACjD,sBACD,CAAC;EACD,MAAME,eAAe,GAAGH,QAAQ,CAACC,cAAc,CAAE,mBAAoB,CAAC;EAEtE,IAAKF,SAAS,KAAK,IAAI,EAAG;IACzB,IAAAK,qBAAY,EAAC,CAAC;EACf;EAEA,IAAKF,kBAAkB,KAAK,IAAI,EAAG;IAClC,IAAAG,qBAAY,EAAE,WAAY,CAAC;EAC5B;EAEA,IAAKF,eAAe,KAAK,IAAI,EAAG;IAC/B,IAAAE,qBAAY,EAAE,QAAS,CAAC;EACzB;AACD;;AAEA;AACA;AACA;AACA,IAAAC,iBAAQ,EAAER,KAAM,CAAC","ignoreList":[]}
@@ -15,21 +15,11 @@ var _index = require("../shared/index");
15
15
  * Internal dependencies
16
16
  */
17
17
 
18
- // Without an i18n Script Module, "Notifications" (the only localized text used in this module)
19
- // will be translated on the server and provided as script-module data.
20
- let notificationsText = 'Notifications';
21
- try {
22
- const textContent = document.getElementById('wp-script-module-data-@wordpress/a11y')?.textContent;
23
- if (textContent) {
24
- var _parsed$i18n$Notifica;
25
- const parsed = JSON.parse(textContent);
26
- notificationsText = (_parsed$i18n$Notifica = parsed?.i18n?.Notifications) !== null && _parsed$i18n$Notifica !== void 0 ? _parsed$i18n$Notifica : notificationsText;
27
- }
28
- } catch {}
29
-
30
18
  /**
31
- * Create the live regions.
19
+ * This no-op function is exported to provide compatibility with the `wp-a11y` Script.
20
+ *
21
+ * Filters should inject the relevant HTML on page load instead of requiring setup.
32
22
  */
33
- const setup = exports.setup = (0, _index.makeSetupFunction)(notificationsText);
34
- setup();
23
+ const setup = () => {};
24
+ exports.setup = setup;
35
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_index","require","notificationsText","textContent","document","getElementById","_parsed$i18n$Notifica","parsed","JSON","parse","i18n","Notifications","setup","exports","makeSetupFunction"],"sources":["@wordpress/a11y/src/module/index.ts"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport { makeSetupFunction } from '../shared/index';\nexport { speak } from '../shared/index';\n\n// Without an i18n Script Module, \"Notifications\" (the only localized text used in this module)\n// will be translated on the server and provided as script-module data.\nlet notificationsText = 'Notifications';\ntry {\n\tconst textContent = document.getElementById(\n\t\t'wp-script-module-data-@wordpress/a11y'\n\t)?.textContent;\n\tif ( textContent ) {\n\t\tconst parsed = JSON.parse( textContent );\n\t\tnotificationsText = parsed?.i18n?.Notifications ?? notificationsText;\n\t}\n} catch {}\n\n/**\n * Create the live regions.\n */\nexport const setup = makeSetupFunction( notificationsText );\n\nsetup();\n"],"mappings":";;;;;;;;;;;;AAGA,IAAAA,MAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAIA;AACA;AACA,IAAIC,iBAAiB,GAAG,eAAe;AACvC,IAAI;EACH,MAAMC,WAAW,GAAGC,QAAQ,CAACC,cAAc,CAC1C,uCACD,CAAC,EAAEF,WAAW;EACd,IAAKA,WAAW,EAAG;IAAA,IAAAG,qBAAA;IAClB,MAAMC,MAAM,GAAGC,IAAI,CAACC,KAAK,CAAEN,WAAY,CAAC;IACxCD,iBAAiB,IAAAI,qBAAA,GAAGC,MAAM,EAAEG,IAAI,EAAEC,aAAa,cAAAL,qBAAA,cAAAA,qBAAA,GAAIJ,iBAAiB;EACrE;AACD,CAAC,CAAC,MAAM,CAAC;;AAET;AACA;AACA;AACO,MAAMU,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG,IAAAE,wBAAiB,EAAEZ,iBAAkB,CAAC;AAE3DU,KAAK,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_index","require","setup","exports"],"sources":["@wordpress/a11y/src/module/index.ts"],"sourcesContent":["/**\n * Internal dependencies\n */\nexport { speak } from '../shared/index';\n\n/**\n * This no-op function is exported to provide compatibility with the `wp-a11y` Script.\n *\n * Filters should inject the relevant HTML on page load instead of requiring setup.\n */\nexport const setup = () => {};\n"],"mappings":";;;;;;;;;;;;AAGA,IAAAA,MAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACO,MAAMC,KAAK,GAAGA,CAAA,KAAM,CAAC,CAAC;AAACC,OAAA,CAAAD,KAAA,GAAAA,KAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["addContainer","ariaLive","container","document","createElement","id","className","setAttribute","body","appendChild"],"sources":["@wordpress/a11y/src/shared/add-container.js"],"sourcesContent":["/**\n * Build the live regions markup.\n *\n * @param {string} [ariaLive] Value for the 'aria-live' attribute; default: 'polite'.\n *\n * @return {HTMLDivElement} The ARIA live region HTML element.\n */\nexport default function addContainer( ariaLive = 'polite' ) {\n\tconst container = document.createElement( 'div' );\n\tcontainer.id = `a11y-speak-${ ariaLive }`;\n\tcontainer.className = 'a11y-speak-region';\n\n\tcontainer.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tcontainer.setAttribute( 'aria-live', ariaLive );\n\tcontainer.setAttribute( 'aria-relevant', 'additions text' );\n\tcontainer.setAttribute( 'aria-atomic', 'true' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( container );\n\t}\n\n\treturn container;\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASA,YAAYA,CAAEC,QAAQ,GAAG,QAAQ,EAAG;EAC3D,MAAMC,SAAS,GAAGC,QAAQ,CAACC,aAAa,CAAE,KAAM,CAAC;EACjDF,SAAS,CAACG,EAAE,GAAI,cAAcJ,QAAU,EAAC;EACzCC,SAAS,CAACI,SAAS,GAAG,mBAAmB;EAEzCJ,SAAS,CAACK,YAAY,CACrB,OAAO,EACP,qBAAqB,GACpB,eAAe,GACf,aAAa,GACb,cAAc,GACd,aAAa,GACb,mBAAmB,GACnB,iCAAiC,GACjC,gCAAgC,GAChC,wBAAwB,GACxB,YAAY,GACZ,+BACF,CAAC;EACDL,SAAS,CAACK,YAAY,CAAE,WAAW,EAAEN,QAAS,CAAC;EAC/CC,SAAS,CAACK,YAAY,CAAE,eAAe,EAAE,gBAAiB,CAAC;EAC3DL,SAAS,CAACK,YAAY,CAAE,aAAa,EAAE,MAAO,CAAC;EAE/C,MAAM;IAAEC;EAAK,CAAC,GAAGL,QAAQ;EACzB,IAAKK,IAAI,EAAG;IACXA,IAAI,CAACC,WAAW,CAAEP,SAAU,CAAC;EAC9B;EAEA,OAAOA,SAAS;AACjB","ignoreList":[]}
1
+ {"version":3,"names":["addContainer","ariaLive","container","document","createElement","id","className","setAttribute","body","appendChild"],"sources":["@wordpress/a11y/src/script/add-container.js"],"sourcesContent":["/**\n * Build the live regions markup.\n *\n * @param {string} [ariaLive] Value for the 'aria-live' attribute; default: 'polite'.\n *\n * @return {HTMLDivElement} The ARIA live region HTML element.\n */\nexport default function addContainer( ariaLive = 'polite' ) {\n\tconst container = document.createElement( 'div' );\n\tcontainer.id = `a11y-speak-${ ariaLive }`;\n\tcontainer.className = 'a11y-speak-region';\n\n\tcontainer.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tcontainer.setAttribute( 'aria-live', ariaLive );\n\tcontainer.setAttribute( 'aria-relevant', 'additions text' );\n\tcontainer.setAttribute( 'aria-atomic', 'true' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( container );\n\t}\n\n\treturn container;\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASA,YAAYA,CAAEC,QAAQ,GAAG,QAAQ,EAAG;EAC3D,MAAMC,SAAS,GAAGC,QAAQ,CAACC,aAAa,CAAE,KAAM,CAAC;EACjDF,SAAS,CAACG,EAAE,GAAI,cAAcJ,QAAU,EAAC;EACzCC,SAAS,CAACI,SAAS,GAAG,mBAAmB;EAEzCJ,SAAS,CAACK,YAAY,CACrB,OAAO,EACP,qBAAqB,GACpB,eAAe,GACf,aAAa,GACb,cAAc,GACd,aAAa,GACb,mBAAmB,GACnB,iCAAiC,GACjC,gCAAgC,GAChC,wBAAwB,GACxB,YAAY,GACZ,+BACF,CAAC;EACDL,SAAS,CAACK,YAAY,CAAE,WAAW,EAAEN,QAAS,CAAC;EAC/CC,SAAS,CAACK,YAAY,CAAE,eAAe,EAAE,gBAAiB,CAAC;EAC3DL,SAAS,CAACK,YAAY,CAAE,aAAa,EAAE,MAAO,CAAC;EAE/C,MAAM;IAAEC;EAAK,CAAC,GAAGL,QAAQ;EACzB,IAAKK,IAAI,EAAG;IACXA,IAAI,CAACC,WAAW,CAAEP,SAAU,CAAC;EAC9B;EAEA,OAAOA,SAAS;AACjB","ignoreList":[]}
@@ -4,20 +4,24 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = addIntroText;
7
+ var _i18n = require("@wordpress/i18n");
8
+ /**
9
+ * WordPress dependencies
10
+ */
11
+
7
12
  /**
8
13
  * Build the explanatory text to be placed before the aria live regions.
9
14
  *
10
15
  * This text is initially hidden from assistive technologies by using a `hidden`
11
16
  * HTML attribute which is then removed once a message fills the aria-live regions.
12
17
  *
13
- * @param {string} introTextContent The translated intro text content.
14
18
  * @return {HTMLParagraphElement} The explanatory text HTML element.
15
19
  */
16
- function addIntroText(introTextContent) {
20
+ function addIntroText() {
17
21
  const introText = document.createElement('p');
18
22
  introText.id = 'a11y-speak-intro-text';
19
23
  introText.className = 'a11y-speak-intro-text';
20
- introText.textContent = introTextContent;
24
+ introText.textContent = (0, _i18n.__)('Notifications');
21
25
  introText.setAttribute('style', 'position: absolute;' + 'margin: -1px;' + 'padding: 0;' + 'height: 1px;' + 'width: 1px;' + 'overflow: hidden;' + 'clip: rect(1px, 1px, 1px, 1px);' + '-webkit-clip-path: inset(50%);' + 'clip-path: inset(50%);' + 'border: 0;' + 'word-wrap: normal !important;');
22
26
  introText.setAttribute('hidden', 'hidden');
23
27
  const {
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_i18n","require","addIntroText","introText","document","createElement","id","className","textContent","__","setAttribute","body","appendChild"],"sources":["@wordpress/a11y/src/script/add-intro-text.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Build the explanatory text to be placed before the aria live regions.\n *\n * This text is initially hidden from assistive technologies by using a `hidden`\n * HTML attribute which is then removed once a message fills the aria-live regions.\n *\n * @return {HTMLParagraphElement} The explanatory text HTML element.\n */\nexport default function addIntroText() {\n\tconst introText = document.createElement( 'p' );\n\n\tintroText.id = 'a11y-speak-intro-text';\n\tintroText.className = 'a11y-speak-intro-text';\n\tintroText.textContent = __( 'Notifications' );\n\n\tintroText.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tintroText.setAttribute( 'hidden', 'hidden' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( introText );\n\t}\n\n\treturn introText;\n}\n"],"mappings":";;;;;;AAGA,IAAAA,KAAA,GAAAC,OAAA;AAHA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASC,YAAYA,CAAA,EAAG;EACtC,MAAMC,SAAS,GAAGC,QAAQ,CAACC,aAAa,CAAE,GAAI,CAAC;EAE/CF,SAAS,CAACG,EAAE,GAAG,uBAAuB;EACtCH,SAAS,CAACI,SAAS,GAAG,uBAAuB;EAC7CJ,SAAS,CAACK,WAAW,GAAG,IAAAC,QAAE,EAAE,eAAgB,CAAC;EAE7CN,SAAS,CAACO,YAAY,CACrB,OAAO,EACP,qBAAqB,GACpB,eAAe,GACf,aAAa,GACb,cAAc,GACd,aAAa,GACb,mBAAmB,GACnB,iCAAiC,GACjC,gCAAgC,GAChC,wBAAwB,GACxB,YAAY,GACZ,+BACF,CAAC;EACDP,SAAS,CAACO,YAAY,CAAE,QAAQ,EAAE,QAAS,CAAC;EAE5C,MAAM;IAAEC;EAAK,CAAC,GAAGP,QAAQ;EACzB,IAAKO,IAAI,EAAG;IACXA,IAAI,CAACC,WAAW,CAAET,SAAU,CAAC;EAC9B;EAEA,OAAOA,SAAS;AACjB","ignoreList":[]}
@@ -4,37 +4,13 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.makeSetupFunction = makeSetupFunction;
8
7
  exports.speak = speak;
9
- var _addContainer = _interopRequireDefault(require("./add-container"));
10
- var _addIntroText = _interopRequireDefault(require("./add-intro-text"));
11
8
  var _clear = _interopRequireDefault(require("./clear"));
12
9
  var _filterMessage = _interopRequireDefault(require("./filter-message"));
13
10
  /**
14
11
  * Internal dependencies
15
12
  */
16
13
 
17
- /**
18
- * Create the live regions.
19
- * @param {string} introTextContent The intro text content.
20
- */
21
- function makeSetupFunction(introTextContent) {
22
- return function setup() {
23
- const introText = document.getElementById('a11y-speak-intro-text');
24
- const containerAssertive = document.getElementById('a11y-speak-assertive');
25
- const containerPolite = document.getElementById('a11y-speak-polite');
26
- if (introText === null) {
27
- (0, _addIntroText.default)(introTextContent);
28
- }
29
- if (containerAssertive === null) {
30
- (0, _addContainer.default)('assertive');
31
- }
32
- if (containerPolite === null) {
33
- (0, _addContainer.default)('polite');
34
- }
35
- };
36
- }
37
-
38
14
  /**
39
15
  * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.
40
16
  * This module is inspired by the `speak` function in `wp-a11y.js`.
@@ -1 +1 @@
1
- {"version":3,"names":["_addContainer","_interopRequireDefault","require","_addIntroText","_clear","_filterMessage","makeSetupFunction","introTextContent","setup","introText","document","getElementById","containerAssertive","containerPolite","addIntroText","addContainer","speak","message","ariaLive","clear","filterMessage","textContent","removeAttribute"],"sources":["@wordpress/a11y/src/shared/index.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport addContainer from './add-container';\nimport addIntroText from './add-intro-text';\nimport clear from './clear';\nimport filterMessage from './filter-message';\n\n/**\n * Create the live regions.\n * @param {string} introTextContent The intro text content.\n */\nexport function makeSetupFunction( introTextContent ) {\n\treturn function setup() {\n\t\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\t\tconst containerAssertive = document.getElementById(\n\t\t\t'a11y-speak-assertive'\n\t\t);\n\t\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\t\tif ( introText === null ) {\n\t\t\taddIntroText( introTextContent );\n\t\t}\n\n\t\tif ( containerAssertive === null ) {\n\t\t\taddContainer( 'assertive' );\n\t\t}\n\n\t\tif ( containerPolite === null ) {\n\t\t\taddContainer( 'polite' );\n\t\t}\n\t};\n}\n\n/**\n * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.\n * This module is inspired by the `speak` function in `wp-a11y.js`.\n *\n * @param {string} message The message to be announced by assistive technologies.\n * @param {'polite'|'assertive'} [ariaLive] The politeness level for aria-live; default: 'polite'.\n *\n * @example\n * ```js\n * import { speak } from '@wordpress/a11y';\n *\n * // For polite messages that shouldn't interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region' );\n *\n * // For assertive messages that should interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region', 'assertive' );\n * ```\n */\nexport function speak( message, ariaLive ) {\n\t/*\n\t * Clear previous messages to allow repeated strings being read out and hide\n\t * the explanatory text from assistive technologies.\n\t */\n\tclear();\n\n\tmessage = filterMessage( message );\n\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( containerAssertive && ariaLive === 'assertive' ) {\n\t\tcontainerAssertive.textContent = message;\n\t} else if ( containerPolite ) {\n\t\tcontainerPolite.textContent = message;\n\t}\n\n\t/*\n\t * Make the explanatory text available to assistive technologies by removing\n\t * the 'hidden' HTML attribute.\n\t */\n\tif ( introText ) {\n\t\tintroText.removeAttribute( 'hidden' );\n\t}\n}\n"],"mappings":";;;;;;;;AAGA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,cAAA,GAAAJ,sBAAA,CAAAC,OAAA;AANA;AACA;AACA;;AAMA;AACA;AACA;AACA;AACO,SAASI,iBAAiBA,CAAEC,gBAAgB,EAAG;EACrD,OAAO,SAASC,KAAKA,CAAA,EAAG;IACvB,MAAMC,SAAS,GAAGC,QAAQ,CAACC,cAAc,CAAE,uBAAwB,CAAC;IACpE,MAAMC,kBAAkB,GAAGF,QAAQ,CAACC,cAAc,CACjD,sBACD,CAAC;IACD,MAAME,eAAe,GAAGH,QAAQ,CAACC,cAAc,CAAE,mBAAoB,CAAC;IAEtE,IAAKF,SAAS,KAAK,IAAI,EAAG;MACzB,IAAAK,qBAAY,EAAEP,gBAAiB,CAAC;IACjC;IAEA,IAAKK,kBAAkB,KAAK,IAAI,EAAG;MAClC,IAAAG,qBAAY,EAAE,WAAY,CAAC;IAC5B;IAEA,IAAKF,eAAe,KAAK,IAAI,EAAG;MAC/B,IAAAE,qBAAY,EAAE,QAAS,CAAC;IACzB;EACD,CAAC;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,KAAKA,CAAEC,OAAO,EAAEC,QAAQ,EAAG;EAC1C;AACD;AACA;AACA;EACC,IAAAC,cAAK,EAAC,CAAC;EAEPF,OAAO,GAAG,IAAAG,sBAAa,EAAEH,OAAQ,CAAC;EAElC,MAAMR,SAAS,GAAGC,QAAQ,CAACC,cAAc,CAAE,uBAAwB,CAAC;EACpE,MAAMC,kBAAkB,GAAGF,QAAQ,CAACC,cAAc,CACjD,sBACD,CAAC;EACD,MAAME,eAAe,GAAGH,QAAQ,CAACC,cAAc,CAAE,mBAAoB,CAAC;EAEtE,IAAKC,kBAAkB,IAAIM,QAAQ,KAAK,WAAW,EAAG;IACrDN,kBAAkB,CAACS,WAAW,GAAGJ,OAAO;EACzC,CAAC,MAAM,IAAKJ,eAAe,EAAG;IAC7BA,eAAe,CAACQ,WAAW,GAAGJ,OAAO;EACtC;;EAEA;AACD;AACA;AACA;EACC,IAAKR,SAAS,EAAG;IAChBA,SAAS,CAACa,eAAe,CAAE,QAAS,CAAC;EACtC;AACD","ignoreList":[]}
1
+ {"version":3,"names":["_clear","_interopRequireDefault","require","_filterMessage","speak","message","ariaLive","clear","filterMessage","introText","document","getElementById","containerAssertive","containerPolite","textContent","removeAttribute"],"sources":["@wordpress/a11y/src/shared/index.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport clear from './clear';\nimport filterMessage from './filter-message';\n\n/**\n * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.\n * This module is inspired by the `speak` function in `wp-a11y.js`.\n *\n * @param {string} message The message to be announced by assistive technologies.\n * @param {'polite'|'assertive'} [ariaLive] The politeness level for aria-live; default: 'polite'.\n *\n * @example\n * ```js\n * import { speak } from '@wordpress/a11y';\n *\n * // For polite messages that shouldn't interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region' );\n *\n * // For assertive messages that should interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region', 'assertive' );\n * ```\n */\nexport function speak( message, ariaLive ) {\n\t/*\n\t * Clear previous messages to allow repeated strings being read out and hide\n\t * the explanatory text from assistive technologies.\n\t */\n\tclear();\n\n\tmessage = filterMessage( message );\n\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( containerAssertive && ariaLive === 'assertive' ) {\n\t\tcontainerAssertive.textContent = message;\n\t} else if ( containerPolite ) {\n\t\tcontainerPolite.textContent = message;\n\t}\n\n\t/*\n\t * Make the explanatory text available to assistive technologies by removing\n\t * the 'hidden' HTML attribute.\n\t */\n\tif ( introText ) {\n\t\tintroText.removeAttribute( 'hidden' );\n\t}\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAF,sBAAA,CAAAC,OAAA;AAJA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,KAAKA,CAAEC,OAAO,EAAEC,QAAQ,EAAG;EAC1C;AACD;AACA;AACA;EACC,IAAAC,cAAK,EAAC,CAAC;EAEPF,OAAO,GAAG,IAAAG,sBAAa,EAAEH,OAAQ,CAAC;EAElC,MAAMI,SAAS,GAAGC,QAAQ,CAACC,cAAc,CAAE,uBAAwB,CAAC;EACpE,MAAMC,kBAAkB,GAAGF,QAAQ,CAACC,cAAc,CACjD,sBACD,CAAC;EACD,MAAME,eAAe,GAAGH,QAAQ,CAACC,cAAc,CAAE,mBAAoB,CAAC;EAEtE,IAAKC,kBAAkB,IAAIN,QAAQ,KAAK,WAAW,EAAG;IACrDM,kBAAkB,CAACE,WAAW,GAAGT,OAAO;EACzC,CAAC,MAAM,IAAKQ,eAAe,EAAG;IAC7BA,eAAe,CAACC,WAAW,GAAGT,OAAO;EACtC;;EAEA;AACD;AACA;AACA;EACC,IAAKI,SAAS,EAAG;IAChBA,SAAS,CAACM,eAAe,CAAE,QAAS,CAAC;EACtC;AACD","ignoreList":[]}
@@ -2,18 +2,31 @@
2
2
  * WordPress dependencies
3
3
  */
4
4
  import domReady from '@wordpress/dom-ready';
5
- import { __ } from '@wordpress/i18n';
6
5
 
7
6
  /**
8
7
  * Internal dependencies
9
8
  */
10
- import { makeSetupFunction } from './shared/index';
9
+ import addContainer from './script/add-container';
10
+ import addIntroText from './script/add-intro-text';
11
11
  export { speak } from './shared/index';
12
12
 
13
13
  /**
14
14
  * Create the live regions.
15
15
  */
16
- export const setup = makeSetupFunction(__('Notifications'));
16
+ export function setup() {
17
+ const introText = document.getElementById('a11y-speak-intro-text');
18
+ const containerAssertive = document.getElementById('a11y-speak-assertive');
19
+ const containerPolite = document.getElementById('a11y-speak-polite');
20
+ if (introText === null) {
21
+ addIntroText();
22
+ }
23
+ if (containerAssertive === null) {
24
+ addContainer('assertive');
25
+ }
26
+ if (containerPolite === null) {
27
+ addContainer('polite');
28
+ }
29
+ }
17
30
 
18
31
  /**
19
32
  * Run setup on domReady.
@@ -1 +1 @@
1
- {"version":3,"names":["domReady","__","makeSetupFunction","speak","setup"],"sources":["@wordpress/a11y/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport domReady from '@wordpress/dom-ready';\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Internal dependencies\n */\nimport { makeSetupFunction } from './shared/index';\nexport { speak } from './shared/index';\n\n/**\n * Create the live regions.\n */\nexport const setup = makeSetupFunction( __( 'Notifications' ) );\n\n/**\n * Run setup on domReady.\n */\ndomReady( setup );\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,QAAQ,MAAM,sBAAsB;AAC3C,SAASC,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;AACA,SAASC,iBAAiB,QAAQ,gBAAgB;AAClD,SAASC,KAAK,QAAQ,gBAAgB;;AAEtC;AACA;AACA;AACA,OAAO,MAAMC,KAAK,GAAGF,iBAAiB,CAAED,EAAE,CAAE,eAAgB,CAAE,CAAC;;AAE/D;AACA;AACA;AACAD,QAAQ,CAAEI,KAAM,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["domReady","addContainer","addIntroText","speak","setup","introText","document","getElementById","containerAssertive","containerPolite"],"sources":["@wordpress/a11y/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport domReady from '@wordpress/dom-ready';\n\n/**\n * Internal dependencies\n */\nimport addContainer from './script/add-container';\nimport addIntroText from './script/add-intro-text';\n\nexport { speak } from './shared/index';\n\n/**\n * Create the live regions.\n */\nexport function setup() {\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( introText === null ) {\n\t\taddIntroText();\n\t}\n\n\tif ( containerAssertive === null ) {\n\t\taddContainer( 'assertive' );\n\t}\n\n\tif ( containerPolite === null ) {\n\t\taddContainer( 'polite' );\n\t}\n}\n\n/**\n * Run setup on domReady.\n */\ndomReady( setup );\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,QAAQ,MAAM,sBAAsB;;AAE3C;AACA;AACA;AACA,OAAOC,YAAY,MAAM,wBAAwB;AACjD,OAAOC,YAAY,MAAM,yBAAyB;AAElD,SAASC,KAAK,QAAQ,gBAAgB;;AAEtC;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAAA,EAAG;EACvB,MAAMC,SAAS,GAAGC,QAAQ,CAACC,cAAc,CAAE,uBAAwB,CAAC;EACpE,MAAMC,kBAAkB,GAAGF,QAAQ,CAACC,cAAc,CACjD,sBACD,CAAC;EACD,MAAME,eAAe,GAAGH,QAAQ,CAACC,cAAc,CAAE,mBAAoB,CAAC;EAEtE,IAAKF,SAAS,KAAK,IAAI,EAAG;IACzBH,YAAY,CAAC,CAAC;EACf;EAEA,IAAKM,kBAAkB,KAAK,IAAI,EAAG;IAClCP,YAAY,CAAE,WAAY,CAAC;EAC5B;EAEA,IAAKQ,eAAe,KAAK,IAAI,EAAG;IAC/BR,YAAY,CAAE,QAAS,CAAC;EACzB;AACD;;AAEA;AACA;AACA;AACAD,QAAQ,CAAEI,KAAM,CAAC","ignoreList":[]}
@@ -1,24 +1,12 @@
1
1
  /**
2
2
  * Internal dependencies
3
3
  */
4
- import { makeSetupFunction } from '../shared/index';
5
4
  export { speak } from '../shared/index';
6
5
 
7
- // Without an i18n Script Module, "Notifications" (the only localized text used in this module)
8
- // will be translated on the server and provided as script-module data.
9
- let notificationsText = 'Notifications';
10
- try {
11
- const textContent = document.getElementById('wp-script-module-data-@wordpress/a11y')?.textContent;
12
- if (textContent) {
13
- var _parsed$i18n$Notifica;
14
- const parsed = JSON.parse(textContent);
15
- notificationsText = (_parsed$i18n$Notifica = parsed?.i18n?.Notifications) !== null && _parsed$i18n$Notifica !== void 0 ? _parsed$i18n$Notifica : notificationsText;
16
- }
17
- } catch {}
18
-
19
6
  /**
20
- * Create the live regions.
7
+ * This no-op function is exported to provide compatibility with the `wp-a11y` Script.
8
+ *
9
+ * Filters should inject the relevant HTML on page load instead of requiring setup.
21
10
  */
22
- export const setup = makeSetupFunction(notificationsText);
23
- setup();
11
+ export const setup = () => {};
24
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["makeSetupFunction","speak","notificationsText","textContent","document","getElementById","_parsed$i18n$Notifica","parsed","JSON","parse","i18n","Notifications","setup"],"sources":["@wordpress/a11y/src/module/index.ts"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport { makeSetupFunction } from '../shared/index';\nexport { speak } from '../shared/index';\n\n// Without an i18n Script Module, \"Notifications\" (the only localized text used in this module)\n// will be translated on the server and provided as script-module data.\nlet notificationsText = 'Notifications';\ntry {\n\tconst textContent = document.getElementById(\n\t\t'wp-script-module-data-@wordpress/a11y'\n\t)?.textContent;\n\tif ( textContent ) {\n\t\tconst parsed = JSON.parse( textContent );\n\t\tnotificationsText = parsed?.i18n?.Notifications ?? notificationsText;\n\t}\n} catch {}\n\n/**\n * Create the live regions.\n */\nexport const setup = makeSetupFunction( notificationsText );\n\nsetup();\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,iBAAiB,QAAQ,iBAAiB;AACnD,SAASC,KAAK,QAAQ,iBAAiB;;AAEvC;AACA;AACA,IAAIC,iBAAiB,GAAG,eAAe;AACvC,IAAI;EACH,MAAMC,WAAW,GAAGC,QAAQ,CAACC,cAAc,CAC1C,uCACD,CAAC,EAAEF,WAAW;EACd,IAAKA,WAAW,EAAG;IAAA,IAAAG,qBAAA;IAClB,MAAMC,MAAM,GAAGC,IAAI,CAACC,KAAK,CAAEN,WAAY,CAAC;IACxCD,iBAAiB,IAAAI,qBAAA,GAAGC,MAAM,EAAEG,IAAI,EAAEC,aAAa,cAAAL,qBAAA,cAAAA,qBAAA,GAAIJ,iBAAiB;EACrE;AACD,CAAC,CAAC,MAAM,CAAC;;AAET;AACA;AACA;AACA,OAAO,MAAMU,KAAK,GAAGZ,iBAAiB,CAAEE,iBAAkB,CAAC;AAE3DU,KAAK,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["speak","setup"],"sources":["@wordpress/a11y/src/module/index.ts"],"sourcesContent":["/**\n * Internal dependencies\n */\nexport { speak } from '../shared/index';\n\n/**\n * This no-op function is exported to provide compatibility with the `wp-a11y` Script.\n *\n * Filters should inject the relevant HTML on page load instead of requiring setup.\n */\nexport const setup = () => {};\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,KAAK,QAAQ,iBAAiB;;AAEvC;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,KAAK,GAAGA,CAAA,KAAM,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["addContainer","ariaLive","container","document","createElement","id","className","setAttribute","body","appendChild"],"sources":["@wordpress/a11y/src/shared/add-container.js"],"sourcesContent":["/**\n * Build the live regions markup.\n *\n * @param {string} [ariaLive] Value for the 'aria-live' attribute; default: 'polite'.\n *\n * @return {HTMLDivElement} The ARIA live region HTML element.\n */\nexport default function addContainer( ariaLive = 'polite' ) {\n\tconst container = document.createElement( 'div' );\n\tcontainer.id = `a11y-speak-${ ariaLive }`;\n\tcontainer.className = 'a11y-speak-region';\n\n\tcontainer.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tcontainer.setAttribute( 'aria-live', ariaLive );\n\tcontainer.setAttribute( 'aria-relevant', 'additions text' );\n\tcontainer.setAttribute( 'aria-atomic', 'true' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( container );\n\t}\n\n\treturn container;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASA,YAAYA,CAAEC,QAAQ,GAAG,QAAQ,EAAG;EAC3D,MAAMC,SAAS,GAAGC,QAAQ,CAACC,aAAa,CAAE,KAAM,CAAC;EACjDF,SAAS,CAACG,EAAE,GAAI,cAAcJ,QAAU,EAAC;EACzCC,SAAS,CAACI,SAAS,GAAG,mBAAmB;EAEzCJ,SAAS,CAACK,YAAY,CACrB,OAAO,EACP,qBAAqB,GACpB,eAAe,GACf,aAAa,GACb,cAAc,GACd,aAAa,GACb,mBAAmB,GACnB,iCAAiC,GACjC,gCAAgC,GAChC,wBAAwB,GACxB,YAAY,GACZ,+BACF,CAAC;EACDL,SAAS,CAACK,YAAY,CAAE,WAAW,EAAEN,QAAS,CAAC;EAC/CC,SAAS,CAACK,YAAY,CAAE,eAAe,EAAE,gBAAiB,CAAC;EAC3DL,SAAS,CAACK,YAAY,CAAE,aAAa,EAAE,MAAO,CAAC;EAE/C,MAAM;IAAEC;EAAK,CAAC,GAAGL,QAAQ;EACzB,IAAKK,IAAI,EAAG;IACXA,IAAI,CAACC,WAAW,CAAEP,SAAU,CAAC;EAC9B;EAEA,OAAOA,SAAS;AACjB","ignoreList":[]}
1
+ {"version":3,"names":["addContainer","ariaLive","container","document","createElement","id","className","setAttribute","body","appendChild"],"sources":["@wordpress/a11y/src/script/add-container.js"],"sourcesContent":["/**\n * Build the live regions markup.\n *\n * @param {string} [ariaLive] Value for the 'aria-live' attribute; default: 'polite'.\n *\n * @return {HTMLDivElement} The ARIA live region HTML element.\n */\nexport default function addContainer( ariaLive = 'polite' ) {\n\tconst container = document.createElement( 'div' );\n\tcontainer.id = `a11y-speak-${ ariaLive }`;\n\tcontainer.className = 'a11y-speak-region';\n\n\tcontainer.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tcontainer.setAttribute( 'aria-live', ariaLive );\n\tcontainer.setAttribute( 'aria-relevant', 'additions text' );\n\tcontainer.setAttribute( 'aria-atomic', 'true' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( container );\n\t}\n\n\treturn container;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASA,YAAYA,CAAEC,QAAQ,GAAG,QAAQ,EAAG;EAC3D,MAAMC,SAAS,GAAGC,QAAQ,CAACC,aAAa,CAAE,KAAM,CAAC;EACjDF,SAAS,CAACG,EAAE,GAAI,cAAcJ,QAAU,EAAC;EACzCC,SAAS,CAACI,SAAS,GAAG,mBAAmB;EAEzCJ,SAAS,CAACK,YAAY,CACrB,OAAO,EACP,qBAAqB,GACpB,eAAe,GACf,aAAa,GACb,cAAc,GACd,aAAa,GACb,mBAAmB,GACnB,iCAAiC,GACjC,gCAAgC,GAChC,wBAAwB,GACxB,YAAY,GACZ,+BACF,CAAC;EACDL,SAAS,CAACK,YAAY,CAAE,WAAW,EAAEN,QAAS,CAAC;EAC/CC,SAAS,CAACK,YAAY,CAAE,eAAe,EAAE,gBAAiB,CAAC;EAC3DL,SAAS,CAACK,YAAY,CAAE,aAAa,EAAE,MAAO,CAAC;EAE/C,MAAM;IAAEC;EAAK,CAAC,GAAGL,QAAQ;EACzB,IAAKK,IAAI,EAAG;IACXA,IAAI,CAACC,WAAW,CAAEP,SAAU,CAAC;EAC9B;EAEA,OAAOA,SAAS;AACjB","ignoreList":[]}
@@ -1,17 +1,21 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+
1
6
  /**
2
7
  * Build the explanatory text to be placed before the aria live regions.
3
8
  *
4
9
  * This text is initially hidden from assistive technologies by using a `hidden`
5
10
  * HTML attribute which is then removed once a message fills the aria-live regions.
6
11
  *
7
- * @param {string} introTextContent The translated intro text content.
8
12
  * @return {HTMLParagraphElement} The explanatory text HTML element.
9
13
  */
10
- export default function addIntroText(introTextContent) {
14
+ export default function addIntroText() {
11
15
  const introText = document.createElement('p');
12
16
  introText.id = 'a11y-speak-intro-text';
13
17
  introText.className = 'a11y-speak-intro-text';
14
- introText.textContent = introTextContent;
18
+ introText.textContent = __('Notifications');
15
19
  introText.setAttribute('style', 'position: absolute;' + 'margin: -1px;' + 'padding: 0;' + 'height: 1px;' + 'width: 1px;' + 'overflow: hidden;' + 'clip: rect(1px, 1px, 1px, 1px);' + '-webkit-clip-path: inset(50%);' + 'clip-path: inset(50%);' + 'border: 0;' + 'word-wrap: normal !important;');
16
20
  introText.setAttribute('hidden', 'hidden');
17
21
  const {
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__","addIntroText","introText","document","createElement","id","className","textContent","setAttribute","body","appendChild"],"sources":["@wordpress/a11y/src/script/add-intro-text.ts"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport { __ } from '@wordpress/i18n';\n\n/**\n * Build the explanatory text to be placed before the aria live regions.\n *\n * This text is initially hidden from assistive technologies by using a `hidden`\n * HTML attribute which is then removed once a message fills the aria-live regions.\n *\n * @return {HTMLParagraphElement} The explanatory text HTML element.\n */\nexport default function addIntroText() {\n\tconst introText = document.createElement( 'p' );\n\n\tintroText.id = 'a11y-speak-intro-text';\n\tintroText.className = 'a11y-speak-intro-text';\n\tintroText.textContent = __( 'Notifications' );\n\n\tintroText.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tintroText.setAttribute( 'hidden', 'hidden' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( introText );\n\t}\n\n\treturn introText;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,SAASA,EAAE,QAAQ,iBAAiB;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,YAAYA,CAAA,EAAG;EACtC,MAAMC,SAAS,GAAGC,QAAQ,CAACC,aAAa,CAAE,GAAI,CAAC;EAE/CF,SAAS,CAACG,EAAE,GAAG,uBAAuB;EACtCH,SAAS,CAACI,SAAS,GAAG,uBAAuB;EAC7CJ,SAAS,CAACK,WAAW,GAAGP,EAAE,CAAE,eAAgB,CAAC;EAE7CE,SAAS,CAACM,YAAY,CACrB,OAAO,EACP,qBAAqB,GACpB,eAAe,GACf,aAAa,GACb,cAAc,GACd,aAAa,GACb,mBAAmB,GACnB,iCAAiC,GACjC,gCAAgC,GAChC,wBAAwB,GACxB,YAAY,GACZ,+BACF,CAAC;EACDN,SAAS,CAACM,YAAY,CAAE,QAAQ,EAAE,QAAS,CAAC;EAE5C,MAAM;IAAEC;EAAK,CAAC,GAAGN,QAAQ;EACzB,IAAKM,IAAI,EAAG;IACXA,IAAI,CAACC,WAAW,CAAER,SAAU,CAAC;EAC9B;EAEA,OAAOA,SAAS;AACjB","ignoreList":[]}
@@ -1,32 +1,9 @@
1
1
  /**
2
2
  * Internal dependencies
3
3
  */
4
- import addContainer from './add-container';
5
- import addIntroText from './add-intro-text';
6
4
  import clear from './clear';
7
5
  import filterMessage from './filter-message';
8
6
 
9
- /**
10
- * Create the live regions.
11
- * @param {string} introTextContent The intro text content.
12
- */
13
- export function makeSetupFunction(introTextContent) {
14
- return function setup() {
15
- const introText = document.getElementById('a11y-speak-intro-text');
16
- const containerAssertive = document.getElementById('a11y-speak-assertive');
17
- const containerPolite = document.getElementById('a11y-speak-polite');
18
- if (introText === null) {
19
- addIntroText(introTextContent);
20
- }
21
- if (containerAssertive === null) {
22
- addContainer('assertive');
23
- }
24
- if (containerPolite === null) {
25
- addContainer('polite');
26
- }
27
- };
28
- }
29
-
30
7
  /**
31
8
  * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.
32
9
  * This module is inspired by the `speak` function in `wp-a11y.js`.
@@ -1 +1 @@
1
- {"version":3,"names":["addContainer","addIntroText","clear","filterMessage","makeSetupFunction","introTextContent","setup","introText","document","getElementById","containerAssertive","containerPolite","speak","message","ariaLive","textContent","removeAttribute"],"sources":["@wordpress/a11y/src/shared/index.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport addContainer from './add-container';\nimport addIntroText from './add-intro-text';\nimport clear from './clear';\nimport filterMessage from './filter-message';\n\n/**\n * Create the live regions.\n * @param {string} introTextContent The intro text content.\n */\nexport function makeSetupFunction( introTextContent ) {\n\treturn function setup() {\n\t\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\t\tconst containerAssertive = document.getElementById(\n\t\t\t'a11y-speak-assertive'\n\t\t);\n\t\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\t\tif ( introText === null ) {\n\t\t\taddIntroText( introTextContent );\n\t\t}\n\n\t\tif ( containerAssertive === null ) {\n\t\t\taddContainer( 'assertive' );\n\t\t}\n\n\t\tif ( containerPolite === null ) {\n\t\t\taddContainer( 'polite' );\n\t\t}\n\t};\n}\n\n/**\n * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.\n * This module is inspired by the `speak` function in `wp-a11y.js`.\n *\n * @param {string} message The message to be announced by assistive technologies.\n * @param {'polite'|'assertive'} [ariaLive] The politeness level for aria-live; default: 'polite'.\n *\n * @example\n * ```js\n * import { speak } from '@wordpress/a11y';\n *\n * // For polite messages that shouldn't interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region' );\n *\n * // For assertive messages that should interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region', 'assertive' );\n * ```\n */\nexport function speak( message, ariaLive ) {\n\t/*\n\t * Clear previous messages to allow repeated strings being read out and hide\n\t * the explanatory text from assistive technologies.\n\t */\n\tclear();\n\n\tmessage = filterMessage( message );\n\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( containerAssertive && ariaLive === 'assertive' ) {\n\t\tcontainerAssertive.textContent = message;\n\t} else if ( containerPolite ) {\n\t\tcontainerPolite.textContent = message;\n\t}\n\n\t/*\n\t * Make the explanatory text available to assistive technologies by removing\n\t * the 'hidden' HTML attribute.\n\t */\n\tif ( introText ) {\n\t\tintroText.removeAttribute( 'hidden' );\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,YAAY,MAAM,iBAAiB;AAC1C,OAAOC,YAAY,MAAM,kBAAkB;AAC3C,OAAOC,KAAK,MAAM,SAAS;AAC3B,OAAOC,aAAa,MAAM,kBAAkB;;AAE5C;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAAEC,gBAAgB,EAAG;EACrD,OAAO,SAASC,KAAKA,CAAA,EAAG;IACvB,MAAMC,SAAS,GAAGC,QAAQ,CAACC,cAAc,CAAE,uBAAwB,CAAC;IACpE,MAAMC,kBAAkB,GAAGF,QAAQ,CAACC,cAAc,CACjD,sBACD,CAAC;IACD,MAAME,eAAe,GAAGH,QAAQ,CAACC,cAAc,CAAE,mBAAoB,CAAC;IAEtE,IAAKF,SAAS,KAAK,IAAI,EAAG;MACzBN,YAAY,CAAEI,gBAAiB,CAAC;IACjC;IAEA,IAAKK,kBAAkB,KAAK,IAAI,EAAG;MAClCV,YAAY,CAAE,WAAY,CAAC;IAC5B;IAEA,IAAKW,eAAe,KAAK,IAAI,EAAG;MAC/BX,YAAY,CAAE,QAAS,CAAC;IACzB;EACD,CAAC;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASY,KAAKA,CAAEC,OAAO,EAAEC,QAAQ,EAAG;EAC1C;AACD;AACA;AACA;EACCZ,KAAK,CAAC,CAAC;EAEPW,OAAO,GAAGV,aAAa,CAAEU,OAAQ,CAAC;EAElC,MAAMN,SAAS,GAAGC,QAAQ,CAACC,cAAc,CAAE,uBAAwB,CAAC;EACpE,MAAMC,kBAAkB,GAAGF,QAAQ,CAACC,cAAc,CACjD,sBACD,CAAC;EACD,MAAME,eAAe,GAAGH,QAAQ,CAACC,cAAc,CAAE,mBAAoB,CAAC;EAEtE,IAAKC,kBAAkB,IAAII,QAAQ,KAAK,WAAW,EAAG;IACrDJ,kBAAkB,CAACK,WAAW,GAAGF,OAAO;EACzC,CAAC,MAAM,IAAKF,eAAe,EAAG;IAC7BA,eAAe,CAACI,WAAW,GAAGF,OAAO;EACtC;;EAEA;AACD;AACA;AACA;EACC,IAAKN,SAAS,EAAG;IAChBA,SAAS,CAACS,eAAe,CAAE,QAAS,CAAC;EACtC;AACD","ignoreList":[]}
1
+ {"version":3,"names":["clear","filterMessage","speak","message","ariaLive","introText","document","getElementById","containerAssertive","containerPolite","textContent","removeAttribute"],"sources":["@wordpress/a11y/src/shared/index.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport clear from './clear';\nimport filterMessage from './filter-message';\n\n/**\n * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.\n * This module is inspired by the `speak` function in `wp-a11y.js`.\n *\n * @param {string} message The message to be announced by assistive technologies.\n * @param {'polite'|'assertive'} [ariaLive] The politeness level for aria-live; default: 'polite'.\n *\n * @example\n * ```js\n * import { speak } from '@wordpress/a11y';\n *\n * // For polite messages that shouldn't interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region' );\n *\n * // For assertive messages that should interrupt what screen readers are currently announcing.\n * speak( 'The message you want to send to the ARIA live region', 'assertive' );\n * ```\n */\nexport function speak( message, ariaLive ) {\n\t/*\n\t * Clear previous messages to allow repeated strings being read out and hide\n\t * the explanatory text from assistive technologies.\n\t */\n\tclear();\n\n\tmessage = filterMessage( message );\n\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\tconst containerAssertive = document.getElementById(\n\t\t'a11y-speak-assertive'\n\t);\n\tconst containerPolite = document.getElementById( 'a11y-speak-polite' );\n\n\tif ( containerAssertive && ariaLive === 'assertive' ) {\n\t\tcontainerAssertive.textContent = message;\n\t} else if ( containerPolite ) {\n\t\tcontainerPolite.textContent = message;\n\t}\n\n\t/*\n\t * Make the explanatory text available to assistive technologies by removing\n\t * the 'hidden' HTML attribute.\n\t */\n\tif ( introText ) {\n\t\tintroText.removeAttribute( 'hidden' );\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,KAAK,MAAM,SAAS;AAC3B,OAAOC,aAAa,MAAM,kBAAkB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAAEC,OAAO,EAAEC,QAAQ,EAAG;EAC1C;AACD;AACA;AACA;EACCJ,KAAK,CAAC,CAAC;EAEPG,OAAO,GAAGF,aAAa,CAAEE,OAAQ,CAAC;EAElC,MAAME,SAAS,GAAGC,QAAQ,CAACC,cAAc,CAAE,uBAAwB,CAAC;EACpE,MAAMC,kBAAkB,GAAGF,QAAQ,CAACC,cAAc,CACjD,sBACD,CAAC;EACD,MAAME,eAAe,GAAGH,QAAQ,CAACC,cAAc,CAAE,mBAAoB,CAAC;EAEtE,IAAKC,kBAAkB,IAAIJ,QAAQ,KAAK,WAAW,EAAG;IACrDI,kBAAkB,CAACE,WAAW,GAAGP,OAAO;EACzC,CAAC,MAAM,IAAKM,eAAe,EAAG;IAC7BA,eAAe,CAACC,WAAW,GAAGP,OAAO;EACtC;;EAEA;AACD;AACA;AACA;EACC,IAAKE,SAAS,EAAG;IAChBA,SAAS,CAACM,eAAe,CAAE,QAAS,CAAC;EACtC;AACD","ignoreList":[]}
@@ -1,6 +1,6 @@
1
- export { speak } from "./shared/index";
2
1
  /**
3
2
  * Create the live regions.
4
3
  */
5
- export const setup: () => void;
4
+ export function setup(): void;
5
+ export { speak } from "./shared/index";
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAYA;;GAEG;AACH,+BAAgE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"AAaA;;GAEG;AACH,8BAkBC"}
@@ -1,6 +1,11 @@
1
+ /**
2
+ * Internal dependencies
3
+ */
1
4
  export { speak } from '../shared/index';
2
5
  /**
3
- * Create the live regions.
6
+ * This no-op function is exported to provide compatibility with the `wp-a11y` Script.
7
+ *
8
+ * Filters should inject the relevant HTML on page load instead of requiring setup.
4
9
  */
5
10
  export declare const setup: () => void;
6
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/module/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAexC;;GAEG;AACH,eAAO,MAAM,KAAK,YAAyC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/module/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,KAAK,YAAW,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-container.d.ts","sourceRoot":"","sources":["../../src/script/add-container.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,qEAFY,cAAc,CA+BzB"}
@@ -4,8 +4,7 @@
4
4
  * This text is initially hidden from assistive technologies by using a `hidden`
5
5
  * HTML attribute which is then removed once a message fills the aria-live regions.
6
6
  *
7
- * @param {string} introTextContent The translated intro text content.
8
7
  * @return {HTMLParagraphElement} The explanatory text HTML element.
9
8
  */
10
- export default function addIntroText(introTextContent: string): HTMLParagraphElement;
9
+ export default function addIntroText(): HTMLParagraphElement;
11
10
  //# sourceMappingURL=add-intro-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-intro-text.d.ts","sourceRoot":"","sources":["../../src/script/add-intro-text.ts"],"names":[],"mappings":"AAKA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,yBA6BnC"}
@@ -1,8 +1,3 @@
1
- /**
2
- * Create the live regions.
3
- * @param {string} introTextContent The intro text content.
4
- */
5
- export function makeSetupFunction(introTextContent: string): () => void;
6
1
  /**
7
2
  * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.
8
3
  * This module is inspired by the `speak` function in `wp-a11y.js`.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.js"],"names":[],"mappings":"AAQA;;;GAGG;AACH,oDAFW,MAAM,cAsBhB;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,+BAdW,MAAM,uDA0ChB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;GAiBG;AACH,+BAdW,MAAM,uDA0ChB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/a11y",
3
- "version": "4.7.1-next.5368f64a9.0",
3
+ "version": "4.8.0",
4
4
  "description": "Accessibility (a11y) utilities for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -31,11 +31,11 @@
31
31
  "wpScriptModuleExports": "./build-module/module/index.js",
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.16.0",
34
- "@wordpress/dom-ready": "^4.7.1-next.5368f64a9.0",
35
- "@wordpress/i18n": "^5.7.1-next.5368f64a9.0"
34
+ "@wordpress/dom-ready": "^4.8.0",
35
+ "@wordpress/i18n": "^5.8.0"
36
36
  },
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "24934a1f5251bbee15045d1fd953d9c5650317cd"
40
+ "gitHead": "cecf5e14d317aa67407f77a7e5c8b6a43016bd42"
41
41
  }
package/src/index.js CHANGED
@@ -2,18 +2,37 @@
2
2
  * WordPress dependencies
3
3
  */
4
4
  import domReady from '@wordpress/dom-ready';
5
- import { __ } from '@wordpress/i18n';
6
5
 
7
6
  /**
8
7
  * Internal dependencies
9
8
  */
10
- import { makeSetupFunction } from './shared/index';
9
+ import addContainer from './script/add-container';
10
+ import addIntroText from './script/add-intro-text';
11
+
11
12
  export { speak } from './shared/index';
12
13
 
13
14
  /**
14
15
  * Create the live regions.
15
16
  */
16
- export const setup = makeSetupFunction( __( 'Notifications' ) );
17
+ export function setup() {
18
+ const introText = document.getElementById( 'a11y-speak-intro-text' );
19
+ const containerAssertive = document.getElementById(
20
+ 'a11y-speak-assertive'
21
+ );
22
+ const containerPolite = document.getElementById( 'a11y-speak-polite' );
23
+
24
+ if ( introText === null ) {
25
+ addIntroText();
26
+ }
27
+
28
+ if ( containerAssertive === null ) {
29
+ addContainer( 'assertive' );
30
+ }
31
+
32
+ if ( containerPolite === null ) {
33
+ addContainer( 'polite' );
34
+ }
35
+ }
17
36
 
18
37
  /**
19
38
  * Run setup on domReady.
@@ -1,25 +1,11 @@
1
1
  /**
2
2
  * Internal dependencies
3
3
  */
4
- import { makeSetupFunction } from '../shared/index';
5
4
  export { speak } from '../shared/index';
6
5
 
7
- // Without an i18n Script Module, "Notifications" (the only localized text used in this module)
8
- // will be translated on the server and provided as script-module data.
9
- let notificationsText = 'Notifications';
10
- try {
11
- const textContent = document.getElementById(
12
- 'wp-script-module-data-@wordpress/a11y'
13
- )?.textContent;
14
- if ( textContent ) {
15
- const parsed = JSON.parse( textContent );
16
- notificationsText = parsed?.i18n?.Notifications ?? notificationsText;
17
- }
18
- } catch {}
19
-
20
6
  /**
21
- * Create the live regions.
7
+ * This no-op function is exported to provide compatibility with the `wp-a11y` Script.
8
+ *
9
+ * Filters should inject the relevant HTML on page load instead of requiring setup.
22
10
  */
23
- export const setup = makeSetupFunction( notificationsText );
24
-
25
- setup();
11
+ export const setup = () => {};
@@ -1,18 +1,22 @@
1
+ /**
2
+ * WordPress dependencies
3
+ */
4
+ import { __ } from '@wordpress/i18n';
5
+
1
6
  /**
2
7
  * Build the explanatory text to be placed before the aria live regions.
3
8
  *
4
9
  * This text is initially hidden from assistive technologies by using a `hidden`
5
10
  * HTML attribute which is then removed once a message fills the aria-live regions.
6
11
  *
7
- * @param {string} introTextContent The translated intro text content.
8
12
  * @return {HTMLParagraphElement} The explanatory text HTML element.
9
13
  */
10
- export default function addIntroText( introTextContent: string ) {
14
+ export default function addIntroText() {
11
15
  const introText = document.createElement( 'p' );
12
16
 
13
17
  introText.id = 'a11y-speak-intro-text';
14
18
  introText.className = 'a11y-speak-intro-text';
15
- introText.textContent = introTextContent;
19
+ introText.textContent = __( 'Notifications' );
16
20
 
17
21
  introText.setAttribute(
18
22
  'style',
@@ -1,37 +1,9 @@
1
1
  /**
2
2
  * Internal dependencies
3
3
  */
4
- import addContainer from './add-container';
5
- import addIntroText from './add-intro-text';
6
4
  import clear from './clear';
7
5
  import filterMessage from './filter-message';
8
6
 
9
- /**
10
- * Create the live regions.
11
- * @param {string} introTextContent The intro text content.
12
- */
13
- export function makeSetupFunction( introTextContent ) {
14
- return function setup() {
15
- const introText = document.getElementById( 'a11y-speak-intro-text' );
16
- const containerAssertive = document.getElementById(
17
- 'a11y-speak-assertive'
18
- );
19
- const containerPolite = document.getElementById( 'a11y-speak-polite' );
20
-
21
- if ( introText === null ) {
22
- addIntroText( introTextContent );
23
- }
24
-
25
- if ( containerAssertive === null ) {
26
- addContainer( 'assertive' );
27
- }
28
-
29
- if ( containerPolite === null ) {
30
- addContainer( 'polite' );
31
- }
32
- };
33
- }
34
-
35
7
  /**
36
8
  * Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.
37
9
  * This module is inspired by the `speak` function in `wp-a11y.js`.
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/typescript/lib/lib.esnext.string.d.ts","../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../node_modules/typescript/lib/lib.esnext.object.d.ts","../../node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../dom-ready/build-types/index.d.ts","../i18n/build-types/sprintf.d.ts","../hooks/build-types/createAddHook.d.ts","../hooks/build-types/createRemoveHook.d.ts","../hooks/build-types/createHasHook.d.ts","../hooks/build-types/createDoingHook.d.ts","../hooks/build-types/createDidHook.d.ts","../hooks/build-types/index.d.ts","../hooks/build-types/createHooks.d.ts","../i18n/build-types/create-i18n.d.ts","../i18n/build-types/default-i18n.d.ts","../i18n/build-types/index.d.ts","./src/shared/add-container.js","./src/shared/add-intro-text.ts","./src/shared/clear.js","./src/shared/filter-message.js","./src/shared/index.js","./src/index.js","./src/module/index.ts"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","17edc026abf73c5c2dd508652d63f68ec4efd9d4856e3469890d27598209feb5",{"version":"4af6b0c727b7a2896463d512fafd23634229adf69ac7c00e2ae15a09cb084fad","affectsGlobalScope":true},{"version":"9c00a480825408b6a24c63c1b71362232927247595d7c97659bc24dc68ae0757","affectsGlobalScope":true},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true},{"version":"ae37d6ccd1560b0203ab88d46987393adaaa78c919e51acf32fb82c86502e98c","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"d8670852241d4c6e03f2b89d67497a4bbefe29ecaa5a444e2c11a9b05e6fccc6","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true},{"version":"15b98a533864d324e5f57cd3cfc0579b231df58c1c0f6063ea0fcb13c3c74ff9","affectsGlobalScope":true},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"2a4a74b57fa6c4daf20e56e4969f25c714f5e0637f7b19de2af8506e1fc09bd3","2f1fe46a7a4e25a4a414d5491c7b39b695a6f37e97a1bdfeb71d430f98c3ed10","20f2b0befb27c07049565340fac3ab264c94afebacb3234dfb945e1c4a8ab5fb","406a8b30598c33638390e65c1b18d65804784069a176ec900aa033b2b0038673","0b48405ec967a9982c1001d4222b1c64091aba1441fc4318b08bc1cd4036794a","12324a25a603147ab9cf9724d762a767dd8b22c3b4f3ea44357bb937565509c3","7966497f2357f63036d7c12917ee20d91b7a74c4d9d682e75c44f7b7f6ea4e5b","0213daac422dfdc25a92d4a95859fb7d9d451fdd67fa675d3705884289019fd9","154d6cd3d408e0ac27d063a1c05eba3fbe6218643059f07abf83a8db7b78e5cc","08c2de6aff6a0af37e67460ae45ca87f440ef378f5a586afcafea49a02db3990","061e88a6b235d5dd90a3cb8af8d27f397fd069e1bed76a5c7617b1c00a395ba7","2a49b24214a9709c04c7d21d99f1473058bd3b4d1310655288347a4c8862da30",{"version":"e83d4898e9301aab4c65c6cf683ce7c400e14722070cfe0485f0c157374d3aa4","signature":"68592c81bb3201d55969398648a8ade703e3f44524e599a1dffc9fd169e1ad64"},{"version":"3c7eedfd2ab24e320502fbc701b7f1651f115e65ba46f39b0f9ffbdec936c319","signature":"d3e3a22e5c923b5a2f224b1b82a0f077017ae05afecc0b9b088f9cfbabdd3291"},{"version":"3c383661a6c329f5dc1226e733094f5da6d3f9904a38eb20e3a0720caad8855e","signature":"20cd374107b7c5504cc1dc22d0629ae96a5d67bfe17abaa72f5a1de6bfaf8fd6"},{"version":"e71ba89165852926b4e0fb4d66abce9b1472b712abb8b4a20dc638ab981b93cf","signature":"acccbf12112c60043b3e5c5f8c1f308c168c06e126de145a0d56e33bb29116ca"},{"version":"9b3a5ddfaa8bcfb2e0341c354ccfb396e3dc7f08750a4986f409b4abc92acc4c","signature":"c41d1826d1121a5b5eb0fd380dce218922652b45f0af1076a3d559690a5460cb"},{"version":"30de0450d63d875a2e51143033057ff4d1cae7f5bbd1299f2a659d26ba151a0c","signature":"8777aaf0195185191987bdc0795749f78ab79335ee8c08a9fb4a76606ae37869"},{"version":"bc46150a17e60bc2bd66d9bcbffd927aaed5b439f6673f5a84a9f55536c9748d","signature":"c2bb3fadb6a45eb01cdfd240bbd84fc14eb522d5ceccf85b0e763073ffdb956e"}],"root":[[86,92]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"checkJs":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"rootDir":"./src","skipDefaultLibCheck":true,"strict":true,"target":99},"fileIdsList":[[74,85,90],[90],[86,87,88,89],[81],[76,77,78,79,80,81],[76,77,78,79,80,82],[81,82],[83],[75,83,84]],"referencedMap":[[91,1],[92,2],[90,3],[76,4],[80,4],[79,4],[78,4],[82,5],[77,4],[81,6],[83,7],[84,8],[85,9]],"latestChangedDtsFile":"./build-types/module/index.d.ts"},"version":"5.5.3"}
1
+ {"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/typescript/lib/lib.esnext.string.d.ts","../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../node_modules/typescript/lib/lib.esnext.object.d.ts","../../node_modules/typescript/lib/lib.esnext.regexp.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../dom-ready/build-types/index.d.ts","./src/script/add-container.js","../i18n/build-types/sprintf.d.ts","../hooks/build-types/createAddHook.d.ts","../hooks/build-types/createRemoveHook.d.ts","../hooks/build-types/createHasHook.d.ts","../hooks/build-types/createDoingHook.d.ts","../hooks/build-types/createDidHook.d.ts","../hooks/build-types/index.d.ts","../hooks/build-types/createHooks.d.ts","../i18n/build-types/create-i18n.d.ts","../i18n/build-types/default-i18n.d.ts","../i18n/build-types/index.d.ts","./src/script/add-intro-text.ts","./src/shared/clear.js","./src/shared/filter-message.js","./src/shared/index.js","./src/index.js","./src/module/index.ts"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","17edc026abf73c5c2dd508652d63f68ec4efd9d4856e3469890d27598209feb5",{"version":"4af6b0c727b7a2896463d512fafd23634229adf69ac7c00e2ae15a09cb084fad","affectsGlobalScope":true},{"version":"9c00a480825408b6a24c63c1b71362232927247595d7c97659bc24dc68ae0757","affectsGlobalScope":true},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true},{"version":"ae37d6ccd1560b0203ab88d46987393adaaa78c919e51acf32fb82c86502e98c","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"d8670852241d4c6e03f2b89d67497a4bbefe29ecaa5a444e2c11a9b05e6fccc6","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true},{"version":"15b98a533864d324e5f57cd3cfc0579b231df58c1c0f6063ea0fcb13c3c74ff9","affectsGlobalScope":true},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"2a4a74b57fa6c4daf20e56e4969f25c714f5e0637f7b19de2af8506e1fc09bd3",{"version":"e83d4898e9301aab4c65c6cf683ce7c400e14722070cfe0485f0c157374d3aa4","signature":"68592c81bb3201d55969398648a8ade703e3f44524e599a1dffc9fd169e1ad64"},"2f1fe46a7a4e25a4a414d5491c7b39b695a6f37e97a1bdfeb71d430f98c3ed10","20f2b0befb27c07049565340fac3ab264c94afebacb3234dfb945e1c4a8ab5fb","406a8b30598c33638390e65c1b18d65804784069a176ec900aa033b2b0038673","0b48405ec967a9982c1001d4222b1c64091aba1441fc4318b08bc1cd4036794a","12324a25a603147ab9cf9724d762a767dd8b22c3b4f3ea44357bb937565509c3","7966497f2357f63036d7c12917ee20d91b7a74c4d9d682e75c44f7b7f6ea4e5b","0213daac422dfdc25a92d4a95859fb7d9d451fdd67fa675d3705884289019fd9","154d6cd3d408e0ac27d063a1c05eba3fbe6218643059f07abf83a8db7b78e5cc","08c2de6aff6a0af37e67460ae45ca87f440ef378f5a586afcafea49a02db3990","061e88a6b235d5dd90a3cb8af8d27f397fd069e1bed76a5c7617b1c00a395ba7","2a49b24214a9709c04c7d21d99f1473058bd3b4d1310655288347a4c8862da30",{"version":"209429704cf5cde591683338610ff33ba2e8fc994a4db973eb37770140e0f9b7","signature":"02cb75d288632e3791a072973bb1f2a9d670092f47707f9f59b8c0ee38b5ee59"},{"version":"3c383661a6c329f5dc1226e733094f5da6d3f9904a38eb20e3a0720caad8855e","signature":"20cd374107b7c5504cc1dc22d0629ae96a5d67bfe17abaa72f5a1de6bfaf8fd6"},{"version":"e71ba89165852926b4e0fb4d66abce9b1472b712abb8b4a20dc638ab981b93cf","signature":"acccbf12112c60043b3e5c5f8c1f308c168c06e126de145a0d56e33bb29116ca"},{"version":"e2e269ed4b52913ac502f3552fa8fd1f101b4c40ba764fc4082e90e446f99e64","signature":"6c4f873952206dd61aae780839bc0ab0999281dad16a8626242311fa813e1ab2"},{"version":"98f43d557fc2a4b1e49dc1be7a2d38f6c4d5eb98b91f7afc6eaa2f60db25ab69","signature":"3d7a81d5202f0ecb42a07bc4973e2094e291aefd583413f98b1cfdbb1d4e0816"},{"version":"b8924b9bd771b163ca001d4e728b688cf2045e4a66cf96ffed8970deee665c70","signature":"9bda1da4b294a9abf83d0fe5b8fca7431799005613b918ea134e3f9dbaf39fbc"}],"root":[75,[87,92]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"checkJs":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"rootDir":"./src","skipDefaultLibCheck":true,"strict":true,"target":99},"fileIdsList":[[74,75,87,90],[90],[86],[88,89],[82],[77,78,79,80,81,82],[77,78,79,80,81,83],[82,83],[84],[76,84,85]],"referencedMap":[[91,1],[92,2],[87,3],[90,4],[77,5],[81,5],[80,5],[79,5],[83,6],[78,5],[82,7],[84,8],[85,9],[86,10]],"latestChangedDtsFile":"./build-types/module/index.d.ts"},"version":"5.5.3"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["addIntroText","introTextContent","introText","document","createElement","id","className","textContent","setAttribute","body","appendChild"],"sources":["@wordpress/a11y/src/shared/add-intro-text.ts"],"sourcesContent":["/**\n * Build the explanatory text to be placed before the aria live regions.\n *\n * This text is initially hidden from assistive technologies by using a `hidden`\n * HTML attribute which is then removed once a message fills the aria-live regions.\n *\n * @param {string} introTextContent The translated intro text content.\n * @return {HTMLParagraphElement} The explanatory text HTML element.\n */\nexport default function addIntroText( introTextContent: string ) {\n\tconst introText = document.createElement( 'p' );\n\n\tintroText.id = 'a11y-speak-intro-text';\n\tintroText.className = 'a11y-speak-intro-text';\n\tintroText.textContent = introTextContent;\n\n\tintroText.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tintroText.setAttribute( 'hidden', 'hidden' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( introText );\n\t}\n\n\treturn introText;\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASA,YAAYA,CAAEC,gBAAwB,EAAG;EAChE,MAAMC,SAAS,GAAGC,QAAQ,CAACC,aAAa,CAAE,GAAI,CAAC;EAE/CF,SAAS,CAACG,EAAE,GAAG,uBAAuB;EACtCH,SAAS,CAACI,SAAS,GAAG,uBAAuB;EAC7CJ,SAAS,CAACK,WAAW,GAAGN,gBAAgB;EAExCC,SAAS,CAACM,YAAY,CACrB,OAAO,EACP,qBAAqB,GACpB,eAAe,GACf,aAAa,GACb,cAAc,GACd,aAAa,GACb,mBAAmB,GACnB,iCAAiC,GACjC,gCAAgC,GAChC,wBAAwB,GACxB,YAAY,GACZ,+BACF,CAAC;EACDN,SAAS,CAACM,YAAY,CAAE,QAAQ,EAAE,QAAS,CAAC;EAE5C,MAAM;IAAEC;EAAK,CAAC,GAAGN,QAAQ;EACzB,IAAKM,IAAI,EAAG;IACXA,IAAI,CAACC,WAAW,CAAER,SAAU,CAAC;EAC9B;EAEA,OAAOA,SAAS;AACjB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["addIntroText","introTextContent","introText","document","createElement","id","className","textContent","setAttribute","body","appendChild"],"sources":["@wordpress/a11y/src/shared/add-intro-text.ts"],"sourcesContent":["/**\n * Build the explanatory text to be placed before the aria live regions.\n *\n * This text is initially hidden from assistive technologies by using a `hidden`\n * HTML attribute which is then removed once a message fills the aria-live regions.\n *\n * @param {string} introTextContent The translated intro text content.\n * @return {HTMLParagraphElement} The explanatory text HTML element.\n */\nexport default function addIntroText( introTextContent: string ) {\n\tconst introText = document.createElement( 'p' );\n\n\tintroText.id = 'a11y-speak-intro-text';\n\tintroText.className = 'a11y-speak-intro-text';\n\tintroText.textContent = introTextContent;\n\n\tintroText.setAttribute(\n\t\t'style',\n\t\t'position: absolute;' +\n\t\t\t'margin: -1px;' +\n\t\t\t'padding: 0;' +\n\t\t\t'height: 1px;' +\n\t\t\t'width: 1px;' +\n\t\t\t'overflow: hidden;' +\n\t\t\t'clip: rect(1px, 1px, 1px, 1px);' +\n\t\t\t'-webkit-clip-path: inset(50%);' +\n\t\t\t'clip-path: inset(50%);' +\n\t\t\t'border: 0;' +\n\t\t\t'word-wrap: normal !important;'\n\t);\n\tintroText.setAttribute( 'hidden', 'hidden' );\n\n\tconst { body } = document;\n\tif ( body ) {\n\t\tbody.appendChild( introText );\n\t}\n\n\treturn introText;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASA,YAAYA,CAAEC,gBAAwB,EAAG;EAChE,MAAMC,SAAS,GAAGC,QAAQ,CAACC,aAAa,CAAE,GAAI,CAAC;EAE/CF,SAAS,CAACG,EAAE,GAAG,uBAAuB;EACtCH,SAAS,CAACI,SAAS,GAAG,uBAAuB;EAC7CJ,SAAS,CAACK,WAAW,GAAGN,gBAAgB;EAExCC,SAAS,CAACM,YAAY,CACrB,OAAO,EACP,qBAAqB,GACpB,eAAe,GACf,aAAa,GACb,cAAc,GACd,aAAa,GACb,mBAAmB,GACnB,iCAAiC,GACjC,gCAAgC,GAChC,wBAAwB,GACxB,YAAY,GACZ,+BACF,CAAC;EACDN,SAAS,CAACM,YAAY,CAAE,QAAQ,EAAE,QAAS,CAAC;EAE5C,MAAM;IAAEC;EAAK,CAAC,GAAGN,QAAQ;EACzB,IAAKM,IAAI,EAAG;IACXA,IAAI,CAACC,WAAW,CAAER,SAAU,CAAC;EAC9B;EAEA,OAAOA,SAAS;AACjB","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-container.d.ts","sourceRoot":"","sources":["../../src/shared/add-container.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,qEAFY,cAAc,CA+BzB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"add-intro-text.d.ts","sourceRoot":"","sources":["../../src/shared/add-intro-text.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAE,gBAAgB,EAAE,MAAM,wBA6B7D"}
File without changes
File without changes