@storybook/addon-a11y 10.2.0-alpha.15 → 10.2.0-alpha.17
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.
|
@@ -128,7 +128,7 @@ var vitestMatchersExtended = !1, decorators = [withVisionSimulator], afterEach =
|
|
|
128
128
|
globals,
|
|
129
129
|
viewMode
|
|
130
130
|
}) => {
|
|
131
|
-
let a11yParameter = parameters2.a11y, a11yGlobals = globals.a11y, shouldRunEnvironmentIndependent = a11yParameter?.disable !== !0 && a11yParameter?.test !== "off" && a11yGlobals?.manual !== !0, getMode = () => {
|
|
131
|
+
let a11yParameter = parameters2.a11y, a11yGlobals = globals.a11y, shouldRunEnvironmentIndependent = !!!globals.ghostStories && a11yParameter?.disable !== !0 && a11yParameter?.test !== "off" && a11yGlobals?.manual !== !0, getMode = () => {
|
|
132
132
|
switch (a11yParameter?.test) {
|
|
133
133
|
case "todo":
|
|
134
134
|
return "warning";
|
package/dist/index.js
CHANGED
package/dist/postinstall.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_sxfixx4lbdj from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_sxfixx4lbdj from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_sxfixx4lbdj from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_sxfixx4lbdj.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_sxfixx4lbdj.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_sxfixx4lbdj.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/preview.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-a11y",
|
|
3
|
-
"version": "10.2.0-alpha.
|
|
3
|
+
"version": "10.2.0-alpha.17",
|
|
4
4
|
"description": "Storybook Addon A11y: Test UI component compliance with WCAG web accessibility standards",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"a11y",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"vitest-axe": "^0.1.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"storybook": "^10.2.0-alpha.
|
|
73
|
+
"storybook": "^10.2.0-alpha.17"
|
|
74
74
|
},
|
|
75
75
|
"publishConfig": {
|
|
76
76
|
"access": "public"
|