@versini/ui-liveregion 3.1.3 → 3.2.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.
- package/dist/index.js +5 -16
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
@versini/ui-liveregion v3.
|
|
2
|
+
@versini/ui-liveregion v3.2.0
|
|
3
3
|
© 2025 gizmette.com
|
|
4
4
|
*/
|
|
5
|
-
try {
|
|
6
|
-
if (!window.__VERSINI_UI_LIVEREGION__) {
|
|
7
|
-
window.__VERSINI_UI_LIVEREGION__ = {
|
|
8
|
-
version: "3.1.3",
|
|
9
|
-
buildTime: "12/15/2025 01:20 PM EST",
|
|
10
|
-
homepage: "https://www.npmjs.com/package/@versini/ui-liveregion",
|
|
11
|
-
license: "MIT",
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
} catch (error) {
|
|
15
|
-
// nothing to declare officer
|
|
16
|
-
}
|
|
17
5
|
|
|
18
6
|
import { jsx } from "react/jsx-runtime";
|
|
19
7
|
import clsx from "clsx";
|
|
@@ -158,13 +146,13 @@ const reducer = (state, action)=>{
|
|
|
158
146
|
* Announce the content of "children".
|
|
159
147
|
*/ const announce = ({ children, clearAnnouncementDelay, clearAnnouncementTimeoutRef, onAnnouncementClear, dispatch })=>{
|
|
160
148
|
clearTimeout(clearAnnouncementTimeoutRef.current);
|
|
161
|
-
if (children !== null) {
|
|
149
|
+
/* v8 ignore start - null children edge case */ if (children !== null) {
|
|
162
150
|
dispatch({
|
|
163
151
|
type: ACTION_SET_ANNOUNCEMENT,
|
|
164
152
|
payload: children
|
|
165
153
|
});
|
|
166
154
|
}
|
|
167
|
-
if (clearAnnouncementDelay) {
|
|
155
|
+
/* v8 ignore stop */ if (clearAnnouncementDelay) {
|
|
168
156
|
clearAnnouncementTimeoutRef.current = setTimeout(()=>clearAnnouncement({
|
|
169
157
|
onAnnouncementClear,
|
|
170
158
|
dispatch
|
|
@@ -252,6 +240,7 @@ const reducer = (state, action)=>{
|
|
|
252
240
|
}
|
|
253
241
|
|
|
254
242
|
;// CONCATENATED MODULE: ./src/components/index.ts
|
|
255
|
-
|
|
243
|
+
// force new release
|
|
244
|
+
/* v8 ignore start */ /* v8 ignore stop */
|
|
256
245
|
|
|
257
246
|
export { LiveRegion };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-liveregion",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@testing-library/jest-dom": "6.9.1",
|
|
41
|
-
"@versini/ui-types": "8.
|
|
41
|
+
"@versini/ui-types": "8.1.0"
|
|
42
42
|
},
|
|
43
43
|
"sideEffects": [
|
|
44
44
|
"**/*.css"
|
|
45
45
|
],
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "b2ee2e328ecadfbedcb26d14afa896a30f0ab54b"
|
|
47
47
|
}
|