@wordpress/a11y 3.39.0 → 3.40.1
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.
- package/CHANGELOG.md +2 -0
- package/build/add-container.js +0 -3
- package/build/add-container.js.map +1 -1
- package/build/add-intro-text.js +0 -4
- package/build/add-intro-text.js.map +1 -1
- package/build/clear.js +2 -4
- package/build/clear.js.map +1 -1
- package/build/filter-message.js +2 -3
- package/build/filter-message.js.map +1 -1
- package/build/index.js +3 -16
- package/build/index.js.map +1 -1
- package/build/index.native.js +2 -5
- package/build/index.native.js.map +1 -1
- package/build-module/add-container.js +0 -2
- package/build-module/add-container.js.map +1 -1
- package/build-module/add-intro-text.js +1 -3
- package/build-module/add-intro-text.js.map +1 -1
- package/build-module/clear.js +2 -3
- package/build-module/clear.js.map +1 -1
- package/build-module/filter-message.js +2 -3
- package/build-module/filter-message.js.map +1 -1
- package/build-module/index.js +5 -10
- package/build-module/index.js.map +1 -1
- package/build-module/index.native.js +3 -3
- package/build-module/index.native.js.map +1 -1
- package/package.json +4 -4
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
package/build/add-container.js
CHANGED
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = addContainer;
|
|
7
|
-
|
|
8
7
|
/**
|
|
9
8
|
* Build the live regions markup.
|
|
10
9
|
*
|
|
@@ -23,11 +22,9 @@ function addContainer(ariaLive = 'polite') {
|
|
|
23
22
|
const {
|
|
24
23
|
body
|
|
25
24
|
} = document;
|
|
26
|
-
|
|
27
25
|
if (body) {
|
|
28
26
|
body.appendChild(container);
|
|
29
27
|
}
|
|
30
|
-
|
|
31
28
|
return container;
|
|
32
29
|
}
|
|
33
30
|
//# sourceMappingURL=add-container.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["addContainer","ariaLive","container","document","createElement","id","className","setAttribute","body","appendChild"],"sources":["@wordpress/a11y/src/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"}
|
package/build/add-intro-text.js
CHANGED
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = addIntroText;
|
|
7
|
-
|
|
8
7
|
var _i18n = require("@wordpress/i18n");
|
|
9
|
-
|
|
10
8
|
/**
|
|
11
9
|
* WordPress dependencies
|
|
12
10
|
*/
|
|
@@ -29,11 +27,9 @@ function addIntroText() {
|
|
|
29
27
|
const {
|
|
30
28
|
body
|
|
31
29
|
} = document;
|
|
32
|
-
|
|
33
30
|
if (body) {
|
|
34
31
|
body.appendChild(introText);
|
|
35
32
|
}
|
|
36
|
-
|
|
37
33
|
return introText;
|
|
38
34
|
}
|
|
39
35
|
//# sourceMappingURL=add-intro-text.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_i18n","require","addIntroText","introText","document","createElement","id","className","textContent","__","setAttribute","body","appendChild"],"sources":["@wordpress/a11y/src/add-intro-text.js"],"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"}
|
package/build/clear.js
CHANGED
|
@@ -4,19 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = clear;
|
|
7
|
-
|
|
8
7
|
/**
|
|
9
8
|
* Clears the a11y-speak-region elements and hides the explanatory text.
|
|
10
9
|
*/
|
|
11
10
|
function clear() {
|
|
12
11
|
const regions = document.getElementsByClassName('a11y-speak-region');
|
|
13
12
|
const introText = document.getElementById('a11y-speak-intro-text');
|
|
14
|
-
|
|
15
13
|
for (let i = 0; i < regions.length; i++) {
|
|
16
14
|
regions[i].textContent = '';
|
|
17
|
-
}
|
|
18
|
-
|
|
15
|
+
}
|
|
19
16
|
|
|
17
|
+
// Make sure the explanatory text is hidden from assistive technologies.
|
|
20
18
|
if (introText) {
|
|
21
19
|
introText.setAttribute('hidden', 'hidden');
|
|
22
20
|
}
|
package/build/clear.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["clear","regions","document","getElementsByClassName","introText","getElementById","i","length","textContent","setAttribute"],"sources":["@wordpress/a11y/src/clear.js"],"sourcesContent":["/**\n * Clears the a11y-speak-region elements and hides the explanatory text.\n */\nexport default function clear() {\n\tconst regions = document.getElementsByClassName( 'a11y-speak-region' );\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\n\tfor ( let i = 0; i < regions.length; i++ ) {\n\t\tregions[ i ].textContent = '';\n\t}\n\n\t// Make sure the explanatory text is hidden from assistive technologies.\n\tif ( introText ) {\n\t\tintroText.setAttribute( 'hidden', 'hidden' );\n\t}\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACe,SAASA,KAAKA,CAAA,EAAG;EAC/B,MAAMC,OAAO,GAAGC,QAAQ,CAACC,sBAAsB,CAAE,mBAAoB,CAAC;EACtE,MAAMC,SAAS,GAAGF,QAAQ,CAACG,cAAc,CAAE,uBAAwB,CAAC;EAEpE,KAAM,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGL,OAAO,CAACM,MAAM,EAAED,CAAC,EAAE,EAAG;IAC1CL,OAAO,CAAEK,CAAC,CAAE,CAACE,WAAW,GAAG,EAAE;EAC9B;;EAEA;EACA,IAAKJ,SAAS,EAAG;IAChBA,SAAS,CAACK,YAAY,CAAE,QAAQ,EAAE,QAAS,CAAC;EAC7C;AACD"}
|
package/build/filter-message.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = filterMessage;
|
|
7
7
|
let previousMessage = '';
|
|
8
|
+
|
|
8
9
|
/**
|
|
9
10
|
* Filter the message to be announced to the screenreader.
|
|
10
11
|
*
|
|
@@ -12,7 +13,6 @@ let previousMessage = '';
|
|
|
12
13
|
*
|
|
13
14
|
* @return {string} The filtered message.
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
16
|
function filterMessage(message) {
|
|
17
17
|
/*
|
|
18
18
|
* Strip HTML tags (if any) from the message string. Ideally, messages should
|
|
@@ -22,15 +22,14 @@ function filterMessage(message) {
|
|
|
22
22
|
* spaces natively.
|
|
23
23
|
*/
|
|
24
24
|
message = message.replace(/<[^<>]+>/g, ' ');
|
|
25
|
+
|
|
25
26
|
/*
|
|
26
27
|
* Safari + VoiceOver don't announce repeated, identical strings. We use
|
|
27
28
|
* a `no-break space` to force them to think identical strings are different.
|
|
28
29
|
*/
|
|
29
|
-
|
|
30
30
|
if (previousMessage === message) {
|
|
31
31
|
message += '\u00A0';
|
|
32
32
|
}
|
|
33
|
-
|
|
34
33
|
previousMessage = message;
|
|
35
34
|
return message;
|
|
36
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["previousMessage","filterMessage","message","replace"],"sources":["@wordpress/a11y/src/filter-message.js"],"sourcesContent":["let previousMessage = '';\n\n/**\n * Filter the message to be announced to the screenreader.\n *\n * @param {string} message The message to be announced.\n *\n * @return {string} The filtered message.\n */\nexport default function filterMessage( message ) {\n\t/*\n\t * Strip HTML tags (if any) from the message string. Ideally, messages should\n\t * be simple strings, carefully crafted for specific use with A11ySpeak.\n\t * When re-using already existing strings this will ensure simple HTML to be\n\t * stripped out and replaced with a space. Browsers will collapse multiple\n\t * spaces natively.\n\t */\n\tmessage = message.replace( /<[^<>]+>/g, ' ' );\n\n\t/*\n\t * Safari + VoiceOver don't announce repeated, identical strings. We use\n\t * a `no-break space` to force them to think identical strings are different.\n\t */\n\tif ( previousMessage === message ) {\n\t\tmessage += '\\u00A0';\n\t}\n\n\tpreviousMessage = message;\n\n\treturn message;\n}\n"],"mappings":";;;;;;AAAA,IAAIA,eAAe,GAAG,EAAE;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASC,aAAaA,CAAEC,OAAO,EAAG;EAChD;AACD;AACA;AACA;AACA;AACA;AACA;EACCA,OAAO,GAAGA,OAAO,CAACC,OAAO,CAAE,WAAW,EAAE,GAAI,CAAC;;EAE7C;AACD;AACA;AACA;EACC,IAAKH,eAAe,KAAKE,OAAO,EAAG;IAClCA,OAAO,IAAI,QAAQ;EACpB;EAEAF,eAAe,GAAGE,OAAO;EAEzB,OAAOA,OAAO;AACf"}
|
package/build/index.js
CHANGED
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.setup = setup;
|
|
9
8
|
exports.speak = speak;
|
|
10
|
-
|
|
11
9
|
var _domReady = _interopRequireDefault(require("@wordpress/dom-ready"));
|
|
12
|
-
|
|
13
10
|
var _addIntroText = _interopRequireDefault(require("./add-intro-text"));
|
|
14
|
-
|
|
15
11
|
var _addContainer = _interopRequireDefault(require("./add-container"));
|
|
16
|
-
|
|
17
12
|
var _clear = _interopRequireDefault(require("./clear"));
|
|
18
|
-
|
|
19
13
|
var _filterMessage = _interopRequireDefault(require("./filter-message"));
|
|
20
|
-
|
|
21
14
|
/**
|
|
22
15
|
* WordPress dependencies
|
|
23
16
|
*/
|
|
@@ -33,25 +26,22 @@ function setup() {
|
|
|
33
26
|
const introText = document.getElementById('a11y-speak-intro-text');
|
|
34
27
|
const containerAssertive = document.getElementById('a11y-speak-assertive');
|
|
35
28
|
const containerPolite = document.getElementById('a11y-speak-polite');
|
|
36
|
-
|
|
37
29
|
if (introText === null) {
|
|
38
30
|
(0, _addIntroText.default)();
|
|
39
31
|
}
|
|
40
|
-
|
|
41
32
|
if (containerAssertive === null) {
|
|
42
33
|
(0, _addContainer.default)('assertive');
|
|
43
34
|
}
|
|
44
|
-
|
|
45
35
|
if (containerPolite === null) {
|
|
46
36
|
(0, _addContainer.default)('polite');
|
|
47
37
|
}
|
|
48
38
|
}
|
|
39
|
+
|
|
49
40
|
/**
|
|
50
41
|
* Run setup on domReady.
|
|
51
42
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
54
43
|
(0, _domReady.default)(setup);
|
|
44
|
+
|
|
55
45
|
/**
|
|
56
46
|
* Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.
|
|
57
47
|
* This module is inspired by the `speak` function in `wp-a11y.js`.
|
|
@@ -70,7 +60,6 @@ function setup() {
|
|
|
70
60
|
* speak( 'The message you want to send to the ARIA live region', 'assertive' );
|
|
71
61
|
* ```
|
|
72
62
|
*/
|
|
73
|
-
|
|
74
63
|
function speak(message, ariaLive) {
|
|
75
64
|
/*
|
|
76
65
|
* Clear previous messages to allow repeated strings being read out and hide
|
|
@@ -81,18 +70,16 @@ function speak(message, ariaLive) {
|
|
|
81
70
|
const introText = document.getElementById('a11y-speak-intro-text');
|
|
82
71
|
const containerAssertive = document.getElementById('a11y-speak-assertive');
|
|
83
72
|
const containerPolite = document.getElementById('a11y-speak-polite');
|
|
84
|
-
|
|
85
73
|
if (containerAssertive && ariaLive === 'assertive') {
|
|
86
74
|
containerAssertive.textContent = message;
|
|
87
75
|
} else if (containerPolite) {
|
|
88
76
|
containerPolite.textContent = message;
|
|
89
77
|
}
|
|
78
|
+
|
|
90
79
|
/*
|
|
91
80
|
* Make the explanatory text available to assistive technologies by removing
|
|
92
81
|
* the 'hidden' HTML attribute.
|
|
93
82
|
*/
|
|
94
|
-
|
|
95
|
-
|
|
96
83
|
if (introText) {
|
|
97
84
|
introText.removeAttribute('hidden');
|
|
98
85
|
}
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_domReady","_interopRequireDefault","require","_addIntroText","_addContainer","_clear","_filterMessage","setup","introText","document","getElementById","containerAssertive","containerPolite","addIntroText","addContainer","domReady","speak","message","ariaLive","clear","filterMessage","textContent","removeAttribute"],"sources":["@wordpress/a11y/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport domReady from '@wordpress/dom-ready';\n\n/**\n * Internal dependencies\n */\nimport addIntroText from './add-intro-text';\nimport addContainer from './add-container';\nimport clear from './clear';\nimport filterMessage from './filter-message';\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\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 {string} [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,SAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,cAAA,GAAAL,sBAAA,CAAAC,OAAA;AAXA;AACA;AACA;;AAGA;AACA;AACA;;AAMA;AACA;AACA;AACO,SAASK,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;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASS,KAAKA,CAAEC,OAAO,EAAEC,QAAQ,EAAG;EAC1C;AACD;AACA;AACA;EACC,IAAAC,cAAK,EAAC,CAAC;EAEPF,OAAO,GAAG,IAAAG,sBAAa,EAAEH,OAAQ,CAAC;EAElC,MAAMT,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,IAAIO,QAAQ,KAAK,WAAW,EAAG;IACrDP,kBAAkB,CAACU,WAAW,GAAGJ,OAAO;EACzC,CAAC,MAAM,IAAKL,eAAe,EAAG;IAC7BA,eAAe,CAACS,WAAW,GAAGJ,OAAO;EACtC;;EAEA;AACD;AACA;AACA;EACC,IAAKT,SAAS,EAAG;IAChBA,SAAS,CAACc,eAAe,CAAE,QAAS,CAAC;EACtC;AACD"}
|
package/build/index.native.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.speak = speak;
|
|
9
|
-
|
|
10
8
|
var _filterMessage = _interopRequireDefault(require("./filter-message"));
|
|
11
|
-
|
|
12
9
|
/**
|
|
13
10
|
* Internal dependencies
|
|
14
11
|
*/
|
|
@@ -20,8 +17,8 @@ var _filterMessage = _interopRequireDefault(require("./filter-message"));
|
|
|
20
17
|
* @param {string} [ariaLive] The politeness level for aria-live; default: 'polite'.
|
|
21
18
|
*/
|
|
22
19
|
function speak(message, ariaLive) {
|
|
23
|
-
message = (0, _filterMessage.default)(message);
|
|
24
|
-
|
|
20
|
+
message = (0, _filterMessage.default)(message);
|
|
21
|
+
// TODO: Use native module to speak message.
|
|
25
22
|
if (ariaLive === 'assertive') {} else {}
|
|
26
23
|
}
|
|
27
24
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_filterMessage","_interopRequireDefault","require","speak","message","ariaLive","filterMessage"],"sources":["@wordpress/a11y/src/index.native.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport filterMessage from './filter-message';\n\n/**\n * Update the ARIA live notification area text node.\n *\n * @param {string} message The message to be announced by Assistive Technologies.\n * @param {string} [ariaLive] The politeness level for aria-live; default: 'polite'.\n */\nexport function speak( message, ariaLive ) {\n\tmessage = filterMessage( message );\n\t// TODO: Use native module to speak message.\n\tif ( ariaLive === 'assertive' ) {\n\t} else {\n\t}\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AAHA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,KAAKA,CAAEC,OAAO,EAAEC,QAAQ,EAAG;EAC1CD,OAAO,GAAG,IAAAE,sBAAa,EAAEF,OAAQ,CAAC;EAClC;EACA,IAAKC,QAAQ,KAAK,WAAW,EAAG,CAChC,CAAC,MAAM,CACP;AACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["addContainer","ariaLive","container","document","createElement","id","className","setAttribute","body","appendChild"],"sources":["@wordpress/a11y/src/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"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
4
|
import { __ } from '@wordpress/i18n';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Build the explanatory text to be placed before the aria live regions.
|
|
7
8
|
*
|
|
@@ -10,7 +11,6 @@ import { __ } from '@wordpress/i18n';
|
|
|
10
11
|
*
|
|
11
12
|
* @return {HTMLParagraphElement} The explanatory text HTML element.
|
|
12
13
|
*/
|
|
13
|
-
|
|
14
14
|
export default function addIntroText() {
|
|
15
15
|
const introText = document.createElement('p');
|
|
16
16
|
introText.id = 'a11y-speak-intro-text';
|
|
@@ -21,11 +21,9 @@ export default function addIntroText() {
|
|
|
21
21
|
const {
|
|
22
22
|
body
|
|
23
23
|
} = document;
|
|
24
|
-
|
|
25
24
|
if (body) {
|
|
26
25
|
body.appendChild(introText);
|
|
27
26
|
}
|
|
28
|
-
|
|
29
27
|
return introText;
|
|
30
28
|
}
|
|
31
29
|
//# sourceMappingURL=add-intro-text.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["__","addIntroText","introText","document","createElement","id","className","textContent","setAttribute","body","appendChild"],"sources":["@wordpress/a11y/src/add-intro-text.js"],"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"}
|
package/build-module/clear.js
CHANGED
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
export default function clear() {
|
|
5
5
|
const regions = document.getElementsByClassName('a11y-speak-region');
|
|
6
6
|
const introText = document.getElementById('a11y-speak-intro-text');
|
|
7
|
-
|
|
8
7
|
for (let i = 0; i < regions.length; i++) {
|
|
9
8
|
regions[i].textContent = '';
|
|
10
|
-
}
|
|
11
|
-
|
|
9
|
+
}
|
|
12
10
|
|
|
11
|
+
// Make sure the explanatory text is hidden from assistive technologies.
|
|
13
12
|
if (introText) {
|
|
14
13
|
introText.setAttribute('hidden', 'hidden');
|
|
15
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["clear","regions","document","getElementsByClassName","introText","getElementById","i","length","textContent","setAttribute"],"sources":["@wordpress/a11y/src/clear.js"],"sourcesContent":["/**\n * Clears the a11y-speak-region elements and hides the explanatory text.\n */\nexport default function clear() {\n\tconst regions = document.getElementsByClassName( 'a11y-speak-region' );\n\tconst introText = document.getElementById( 'a11y-speak-intro-text' );\n\n\tfor ( let i = 0; i < regions.length; i++ ) {\n\t\tregions[ i ].textContent = '';\n\t}\n\n\t// Make sure the explanatory text is hidden from assistive technologies.\n\tif ( introText ) {\n\t\tintroText.setAttribute( 'hidden', 'hidden' );\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,eAAe,SAASA,KAAKA,CAAA,EAAG;EAC/B,MAAMC,OAAO,GAAGC,QAAQ,CAACC,sBAAsB,CAAE,mBAAoB,CAAC;EACtE,MAAMC,SAAS,GAAGF,QAAQ,CAACG,cAAc,CAAE,uBAAwB,CAAC;EAEpE,KAAM,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGL,OAAO,CAACM,MAAM,EAAED,CAAC,EAAE,EAAG;IAC1CL,OAAO,CAAEK,CAAC,CAAE,CAACE,WAAW,GAAG,EAAE;EAC9B;;EAEA;EACA,IAAKJ,SAAS,EAAG;IAChBA,SAAS,CAACK,YAAY,CAAE,QAAQ,EAAE,QAAS,CAAC;EAC7C;AACD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
let previousMessage = '';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* Filter the message to be announced to the screenreader.
|
|
4
5
|
*
|
|
@@ -6,7 +7,6 @@ let previousMessage = '';
|
|
|
6
7
|
*
|
|
7
8
|
* @return {string} The filtered message.
|
|
8
9
|
*/
|
|
9
|
-
|
|
10
10
|
export default function filterMessage(message) {
|
|
11
11
|
/*
|
|
12
12
|
* Strip HTML tags (if any) from the message string. Ideally, messages should
|
|
@@ -16,15 +16,14 @@ export default function filterMessage(message) {
|
|
|
16
16
|
* spaces natively.
|
|
17
17
|
*/
|
|
18
18
|
message = message.replace(/<[^<>]+>/g, ' ');
|
|
19
|
+
|
|
19
20
|
/*
|
|
20
21
|
* Safari + VoiceOver don't announce repeated, identical strings. We use
|
|
21
22
|
* a `no-break space` to force them to think identical strings are different.
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
24
|
if (previousMessage === message) {
|
|
25
25
|
message += '\u00A0';
|
|
26
26
|
}
|
|
27
|
-
|
|
28
27
|
previousMessage = message;
|
|
29
28
|
return message;
|
|
30
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["previousMessage","filterMessage","message","replace"],"sources":["@wordpress/a11y/src/filter-message.js"],"sourcesContent":["let previousMessage = '';\n\n/**\n * Filter the message to be announced to the screenreader.\n *\n * @param {string} message The message to be announced.\n *\n * @return {string} The filtered message.\n */\nexport default function filterMessage( message ) {\n\t/*\n\t * Strip HTML tags (if any) from the message string. Ideally, messages should\n\t * be simple strings, carefully crafted for specific use with A11ySpeak.\n\t * When re-using already existing strings this will ensure simple HTML to be\n\t * stripped out and replaced with a space. Browsers will collapse multiple\n\t * spaces natively.\n\t */\n\tmessage = message.replace( /<[^<>]+>/g, ' ' );\n\n\t/*\n\t * Safari + VoiceOver don't announce repeated, identical strings. We use\n\t * a `no-break space` to force them to think identical strings are different.\n\t */\n\tif ( previousMessage === message ) {\n\t\tmessage += '\\u00A0';\n\t}\n\n\tpreviousMessage = message;\n\n\treturn message;\n}\n"],"mappings":"AAAA,IAAIA,eAAe,GAAG,EAAE;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,SAASC,aAAaA,CAAEC,OAAO,EAAG;EAChD;AACD;AACA;AACA;AACA;AACA;AACA;EACCA,OAAO,GAAGA,OAAO,CAACC,OAAO,CAAE,WAAW,EAAE,GAAI,CAAC;;EAE7C;AACD;AACA;AACA;EACC,IAAKH,eAAe,KAAKE,OAAO,EAAG;IAClCA,OAAO,IAAI,QAAQ;EACpB;EAEAF,eAAe,GAAGE,OAAO;EAEzB,OAAOA,OAAO;AACf"}
|
package/build-module/index.js
CHANGED
|
@@ -2,40 +2,38 @@
|
|
|
2
2
|
* WordPress dependencies
|
|
3
3
|
*/
|
|
4
4
|
import domReady from '@wordpress/dom-ready';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Internal dependencies
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
9
|
import addIntroText from './add-intro-text';
|
|
10
10
|
import addContainer from './add-container';
|
|
11
11
|
import clear from './clear';
|
|
12
12
|
import filterMessage from './filter-message';
|
|
13
|
+
|
|
13
14
|
/**
|
|
14
15
|
* Create the live regions.
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
17
|
export function setup() {
|
|
18
18
|
const introText = document.getElementById('a11y-speak-intro-text');
|
|
19
19
|
const containerAssertive = document.getElementById('a11y-speak-assertive');
|
|
20
20
|
const containerPolite = document.getElementById('a11y-speak-polite');
|
|
21
|
-
|
|
22
21
|
if (introText === null) {
|
|
23
22
|
addIntroText();
|
|
24
23
|
}
|
|
25
|
-
|
|
26
24
|
if (containerAssertive === null) {
|
|
27
25
|
addContainer('assertive');
|
|
28
26
|
}
|
|
29
|
-
|
|
30
27
|
if (containerPolite === null) {
|
|
31
28
|
addContainer('polite');
|
|
32
29
|
}
|
|
33
30
|
}
|
|
31
|
+
|
|
34
32
|
/**
|
|
35
33
|
* Run setup on domReady.
|
|
36
34
|
*/
|
|
37
|
-
|
|
38
35
|
domReady(setup);
|
|
36
|
+
|
|
39
37
|
/**
|
|
40
38
|
* Allows you to easily announce dynamic interface updates to screen readers using ARIA live regions.
|
|
41
39
|
* This module is inspired by the `speak` function in `wp-a11y.js`.
|
|
@@ -54,7 +52,6 @@ domReady(setup);
|
|
|
54
52
|
* speak( 'The message you want to send to the ARIA live region', 'assertive' );
|
|
55
53
|
* ```
|
|
56
54
|
*/
|
|
57
|
-
|
|
58
55
|
export function speak(message, ariaLive) {
|
|
59
56
|
/*
|
|
60
57
|
* Clear previous messages to allow repeated strings being read out and hide
|
|
@@ -65,18 +62,16 @@ export function speak(message, ariaLive) {
|
|
|
65
62
|
const introText = document.getElementById('a11y-speak-intro-text');
|
|
66
63
|
const containerAssertive = document.getElementById('a11y-speak-assertive');
|
|
67
64
|
const containerPolite = document.getElementById('a11y-speak-polite');
|
|
68
|
-
|
|
69
65
|
if (containerAssertive && ariaLive === 'assertive') {
|
|
70
66
|
containerAssertive.textContent = message;
|
|
71
67
|
} else if (containerPolite) {
|
|
72
68
|
containerPolite.textContent = message;
|
|
73
69
|
}
|
|
70
|
+
|
|
74
71
|
/*
|
|
75
72
|
* Make the explanatory text available to assistive technologies by removing
|
|
76
73
|
* the 'hidden' HTML attribute.
|
|
77
74
|
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
75
|
if (introText) {
|
|
81
76
|
introText.removeAttribute('hidden');
|
|
82
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["domReady","addIntroText","addContainer","clear","filterMessage","setup","introText","document","getElementById","containerAssertive","containerPolite","speak","message","ariaLive","textContent","removeAttribute"],"sources":["@wordpress/a11y/src/index.js"],"sourcesContent":["/**\n * WordPress dependencies\n */\nimport domReady from '@wordpress/dom-ready';\n\n/**\n * Internal dependencies\n */\nimport addIntroText from './add-intro-text';\nimport addContainer from './add-container';\nimport clear from './clear';\nimport filterMessage from './filter-message';\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\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 {string} [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,QAAQ,MAAM,sBAAsB;;AAE3C;AACA;AACA;AACA,OAAOC,YAAY,MAAM,kBAAkB;AAC3C,OAAOC,YAAY,MAAM,iBAAiB;AAC1C,OAAOC,KAAK,MAAM,SAAS;AAC3B,OAAOC,aAAa,MAAM,kBAAkB;;AAE5C;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;IACzBL,YAAY,CAAC,CAAC;EACf;EAEA,IAAKQ,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;AACAF,QAAQ,CAAEK,KAAM,CAAC;;AAEjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASM,KAAKA,CAAEC,OAAO,EAAEC,QAAQ,EAAG;EAC1C;AACD;AACA;AACA;EACCV,KAAK,CAAC,CAAC;EAEPS,OAAO,GAAGR,aAAa,CAAEQ,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"}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* Internal dependencies
|
|
3
3
|
*/
|
|
4
4
|
import filterMessage from './filter-message';
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* Update the ARIA live notification area text node.
|
|
7
8
|
*
|
|
8
9
|
* @param {string} message The message to be announced by Assistive Technologies.
|
|
9
10
|
* @param {string} [ariaLive] The politeness level for aria-live; default: 'polite'.
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
12
|
export function speak(message, ariaLive) {
|
|
13
|
-
message = filterMessage(message);
|
|
14
|
-
|
|
13
|
+
message = filterMessage(message);
|
|
14
|
+
// TODO: Use native module to speak message.
|
|
15
15
|
if (ariaLive === 'assertive') {} else {}
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=index.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["filterMessage","speak","message","ariaLive"],"sources":["@wordpress/a11y/src/index.native.js"],"sourcesContent":["/**\n * Internal dependencies\n */\nimport filterMessage from './filter-message';\n\n/**\n * Update the ARIA live notification area text node.\n *\n * @param {string} message The message to be announced by Assistive Technologies.\n * @param {string} [ariaLive] The politeness level for aria-live; default: 'polite'.\n */\nexport function speak( message, ariaLive ) {\n\tmessage = filterMessage( message );\n\t// TODO: Use native module to speak message.\n\tif ( ariaLive === 'assertive' ) {\n\t} else {\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA,OAAOA,aAAa,MAAM,kBAAkB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,KAAKA,CAAEC,OAAO,EAAEC,QAAQ,EAAG;EAC1CD,OAAO,GAAGF,aAAa,CAAEE,OAAQ,CAAC;EAClC;EACA,IAAKC,QAAQ,KAAK,WAAW,EAAG,CAChC,CAAC,MAAM,CACP;AACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/a11y",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.40.1",
|
|
4
4
|
"description": "Accessibility (a11y) utilities for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"types": "build-types",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7.16.0",
|
|
32
|
-
"@wordpress/dom-ready": "^3.
|
|
33
|
-
"@wordpress/i18n": "^4.
|
|
32
|
+
"@wordpress/dom-ready": "^3.40.1",
|
|
33
|
+
"@wordpress/i18n": "^4.40.1"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "bb1fbf87bb0f451744530fc6a85de2dff1263bed"
|
|
39
39
|
}
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -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.esnext.d.ts","../../node_modules/typescript/lib/lib.dom.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.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.esnext.intl.d.ts","./src/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/add-intro-text.js","./src/clear.js","./src/filter-message.js","../dom-ready/build-types/index.d.ts","./src/index.js"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},{"version":"e83d4898e9301aab4c65c6cf683ce7c400e14722070cfe0485f0c157374d3aa4","signature":"68592c81bb3201d55969398648a8ade703e3f44524e599a1dffc9fd169e1ad64"},"762bc52248d3fab9873c7af564caf622358312cb35de42a4393b71cc36e14621","d02ec79cefaf292fae64b3be5a4416e64b4e420a6429fd458fac6e1bb4c7950e","27abed653f600ea0d5c86e94181beb42824e0f3f16337e2f9e7e9e9c2c392edf","d7871e0e653aa7197fee88886db5678bee6d42164c1f36e4bce9421ddfa7ca49","11ed10bdb3bcc99893570507eac8fece4840add97ee1d4f5a7fbf41cbfdea0d4","429fb571d3db07d3eaa2e74d43eb4190ece3e0de832ed564aeeaf08873e598eb","406d52bf33d618d846aa0d831ee004290567e328edcd4517bbff2937cc977abf","d3060e0810fc0d0dc009e6f086ef413d3c8aeaaf07da25c8d25fd4e181646acf","023747bf4162d5f675dbee1acbfb409a33e70d2358fd218b6a1b22dee8706c1a","08f7e6ffa66c66a636aecc5acbeb998215d9d09ccba0c558afb7df7e218edeaf","f829eb39aea4487f0ff94a42c56a1a73bc5202bbdeb03f7a638e4ab3e290d017",{"version":"209429704cf5cde591683338610ff33ba2e8fc994a4db973eb37770140e0f9b7","signature":"02cb75d288632e3791a072973bb1f2a9d670092f47707f9f59b8c0ee38b5ee59"},{"version":"3c383661a6c329f5dc1226e733094f5da6d3f9904a38eb20e3a0720caad8855e","signature":"20cd374107b7c5504cc1dc22d0629ae96a5d67bfe17abaa72f5a1de6bfaf8fd6"},{"version":"e71ba89165852926b4e0fb4d66abce9b1472b712abb8b4a20dc638ab981b93cf","signature":"acccbf12112c60043b3e5c5f8c1f308c168c06e126de145a0d56e33bb29116ca"},"5b46c9f01924bda9c2dc4c895a774b048ec8b29644ceae39253fa1c24be16923",{"version":"0c17065cf4b41e95a6a4eb653317434e2b9900aa9b199271346c0e10972e7cdd","signature":"934232109defba5ca40966f6e3ac2a92874fd0a3db8352adbf82fefa1575aa2c"}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"importsNotUsedAsValues":2,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"rootDir":"./src","strict":true,"target":99},"fileIdsList":[[67],[56,68,69,70,71],[63],[58,59,60,61,62,63],[58,59,60,61,62,64],[63,64],[65],[57,65,66]],"referencedMap":[[68,1],[72,2],[58,3],[62,3],[61,3],[60,3],[64,4],[59,3],[63,5],[65,6],[66,7],[67,8]],"exportedModulesMap":[[58,3],[62,3],[61,3],[60,3],[64,4],[59,3],[63,5],[65,6],[66,7],[67,8]],"semanticDiagnosticsPerFile":[11,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,36,33,34,35,37,7,38,43,44,39,40,41,42,8,48,45,46,47,49,9,50,51,52,53,54,1,10,55,56,68,69,70,72,71,58,62,61,60,64,59,63,65,66,67,57],"latestChangedDtsFile":"./build-types/index.d.ts"},"version":"4.9.5"}
|
|
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.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.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.esnext.intl.d.ts","../../node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","./src/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/add-intro-text.js","./src/clear.js","./src/filter-message.js","../dom-ready/build-types/index.d.ts","./src/index.js"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","f4e736d6c8d69ae5b3ab0ddfcaa3dc365c3e76909d6660af5b4e979b3934ac20","eeeb3aca31fbadef8b82502484499dfd1757204799a6f5b33116201c810676ec",{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true},{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true},{"version":"930b0e15811f84e203d3c23508674d5ded88266df4b10abee7b31b2ac77632d2","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"25de46552b782d43cb7284df22fe2a265de387cf0248b747a7a1b647d81861f6","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"e83d4898e9301aab4c65c6cf683ce7c400e14722070cfe0485f0c157374d3aa4","signature":"68592c81bb3201d55969398648a8ade703e3f44524e599a1dffc9fd169e1ad64"},"2f1fe46a7a4e25a4a414d5491c7b39b695a6f37e97a1bdfeb71d430f98c3ed10","faf78d76e0042f05c6ad2eb38ee410cd4ea2854e5f5aff14f9b328d0a8115d62","d238c17667e457cba3da40546d2ef06876c5e5828df09c6b8404f223f189bb7d","a9c883297d78a7255479719aa87fb89b716f10c8c8936642bcb95522de3ca774","4f8ff9897ced0fe4b19defefb2db74f9448f04bca3ded248202fcc1a7bf11f02","c02d9d4c463913d817b35147c866bdb14c8ccba6fd06255877317dace5258781","6110b1abe60e43633e27444dfd81bbc6b5a07468549a985500d0991106b1e998","b3920d0dae5ffb54b3b8a4b6c53ce29e38a67f06b9595fee369ef1e37a3b5db4","fe6d71e5f4b524eab952a9e3cbb0e54abb2d0335cb2b47d91b00095b1613bcff","0beaa0562c80cdd93e5ab0dc9d1b314921afddfa8ee3cb976153ac620c89983f","2a49b24214a9709c04c7d21d99f1473058bd3b4d1310655288347a4c8862da30",{"version":"209429704cf5cde591683338610ff33ba2e8fc994a4db973eb37770140e0f9b7","signature":"02cb75d288632e3791a072973bb1f2a9d670092f47707f9f59b8c0ee38b5ee59"},{"version":"3c383661a6c329f5dc1226e733094f5da6d3f9904a38eb20e3a0720caad8855e","signature":"20cd374107b7c5504cc1dc22d0629ae96a5d67bfe17abaa72f5a1de6bfaf8fd6"},{"version":"e71ba89165852926b4e0fb4d66abce9b1472b712abb8b4a20dc638ab981b93cf","signature":"acccbf12112c60043b3e5c5f8c1f308c168c06e126de145a0d56e33bb29116ca"},"2a4a74b57fa6c4daf20e56e4969f25c714f5e0637f7b19de2af8506e1fc09bd3",{"version":"0c17065cf4b41e95a6a4eb653317434e2b9900aa9b199271346c0e10972e7cdd","signature":"934232109defba5ca40966f6e3ac2a92874fd0a3db8352adbf82fefa1575aa2c"}],"root":[61,[73,75],77],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationDir":"./build-types","declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":false,"jsx":1,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"rootDir":"./src","strict":true,"target":99},"fileIdsList":[[72],[61,73,74,75,76],[68],[63,64,65,66,67,68],[63,64,65,66,67,69],[68,69],[70],[62,70,71]],"referencedMap":[[73,1],[77,2],[63,3],[67,3],[66,3],[65,3],[69,4],[64,3],[68,5],[70,6],[71,7],[72,8]],"exportedModulesMap":[[63,3],[67,3],[66,3],[65,3],[69,4],[64,3],[68,5],[70,6],[71,7],[72,8]],"semanticDiagnosticsPerFile":[59,60,12,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,49,46,47,48,50,9,51,52,53,56,54,55,57,10,1,11,58,61,73,74,75,77,76,63,67,66,65,69,64,68,70,71,72,62],"latestChangedDtsFile":"./build-types/index.d.ts"},"version":"5.1.6"}
|