@storybook/addon-a11y 11.0.0-alpha.1 → 11.0.0-alpha.3
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/manager.js +1 -1
- package/dist/preset.js +6 -6
- package/package.json +2 -3
- package/dist/postinstall.js +0 -34
package/dist/manager.js
CHANGED
|
@@ -2230,7 +2230,7 @@ addons.register(ADDON_ID, (api) => {
|
|
|
2230
2230
|
addons.add(PANEL_ID, {
|
|
2231
2231
|
title: "",
|
|
2232
2232
|
type: types.TOOL,
|
|
2233
|
-
match: ({ viewMode
|
|
2233
|
+
match: ({ viewMode }) => viewMode === "story",
|
|
2234
2234
|
render: () => React8.createElement(VisionSimulator, null)
|
|
2235
2235
|
}), addons.add(PANEL_ID, {
|
|
2236
2236
|
title: Title2,
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_o85t509i2yd from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_o85t509i2yd from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_o85t509i2yd from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_o85t509i2yd.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_o85t509i2yd.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_o85t509i2yd.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-a11y",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.3",
|
|
4
4
|
"description": "Storybook Addon A11y: Test UI component compliance with WCAG web accessibility standards",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"a11y",
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
},
|
|
43
43
|
"./manager": "./dist/manager.js",
|
|
44
44
|
"./package.json": "./package.json",
|
|
45
|
-
"./postinstall": "./dist/postinstall.js",
|
|
46
45
|
"./preset": "./dist/preset.js",
|
|
47
46
|
"./preview": {
|
|
48
47
|
"types": "./dist/preview.d.ts",
|
|
@@ -73,7 +72,7 @@
|
|
|
73
72
|
"vitest-axe": "^0.1.0"
|
|
74
73
|
},
|
|
75
74
|
"peerDependencies": {
|
|
76
|
-
"storybook": "^11.0.0-alpha.
|
|
75
|
+
"storybook": "^11.0.0-alpha.3"
|
|
77
76
|
},
|
|
78
77
|
"publishConfig": {
|
|
79
78
|
"access": "public"
|
package/dist/postinstall.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_2oay6bqf50n from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_2oay6bqf50n from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_2oay6bqf50n from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_2oay6bqf50n.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_2oay6bqf50n.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_2oay6bqf50n.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// src/postinstall.ts
|
|
14
|
-
import { JsPackageManagerFactory, versions } from "storybook/internal/common";
|
|
15
|
-
async function postinstall(options) {
|
|
16
|
-
let useRemotePkg = options.useRemotePkg ?? !!options.skipInstall, args = [
|
|
17
|
-
// A versioned spec only resolves through the ephemeral runner; the local
|
|
18
|
-
// binary is invoked by bare name.
|
|
19
|
-
useRemotePkg ? `storybook@${versions.storybook}` : "storybook",
|
|
20
|
-
"automigrate",
|
|
21
|
-
"addon-a11y-addon-test"
|
|
22
|
-
];
|
|
23
|
-
args.push("--loglevel", "silent"), args.push("--skip-doctor"), options.yes && args.push("--yes"), options.packageManager && args.push("--package-manager", options.packageManager), options.configDir && args.push("--config-dir", options.configDir), await JsPackageManagerFactory.getPackageManager({
|
|
24
|
-
force: options.packageManager,
|
|
25
|
-
configDir: options.configDir
|
|
26
|
-
}).runPackageCommand({
|
|
27
|
-
args,
|
|
28
|
-
stdio: ["ignore", "pipe", "pipe"],
|
|
29
|
-
useRemotePkg
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
postinstall as default
|
|
34
|
-
};
|