storybook 9.0.0-alpha.2 → 9.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/bin/index.cjs +64 -65
- package/dist/bin/index.js +64 -65
- package/dist/channels/index.cjs +3 -5
- package/dist/channels/index.js +3 -5
- package/dist/cli/bin/index.cjs +12 -12
- package/dist/cli/bin/index.js +14 -14
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +1 -1
- package/dist/common/index.cjs +147 -145
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.js +170 -168
- package/dist/core-server/index.cjs +4 -6
- package/dist/core-server/index.d.ts +1 -1
- package/dist/core-server/index.js +4 -6
- package/dist/manager/globals-runtime.js +4 -6
- package/dist/manager-api/index.cjs +4 -6
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +4 -6
- package/dist/preview/runtime.js +4 -6
- package/dist/preview-api/index.cjs +3 -5
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-api/index.js +3 -5
- package/dist/preview-errors.cjs +1 -1
- package/dist/preview-errors.js +1 -1
- package/dist/test/index.cjs +34915 -0
- package/dist/test/index.d.ts +186 -0
- package/dist/test/index.js +32798 -0
- package/package.json +23 -2
package/dist/bin/index.cjs
CHANGED
|
@@ -24,71 +24,70 @@ var y = require("node:child_process"), b = require("node:fs"), s = require("node
|
|
|
24
24
|
|
|
25
25
|
// src/common/versions.ts
|
|
26
26
|
var p = {
|
|
27
|
-
"@storybook/addon-a11y": "9.0.0-alpha.
|
|
28
|
-
"@storybook/addon-actions": "9.0.0-alpha.
|
|
29
|
-
"@storybook/addon-backgrounds": "9.0.0-alpha.
|
|
30
|
-
"@storybook/addon-controls": "9.0.0-alpha.
|
|
31
|
-
"@storybook/addon-docs": "9.0.0-alpha.
|
|
32
|
-
"@storybook/addon-essentials": "9.0.0-alpha.
|
|
33
|
-
"@storybook/addon-mdx-gfm": "9.0.0-alpha.
|
|
34
|
-
"@storybook/addon-highlight": "9.0.0-alpha.
|
|
35
|
-
"@storybook/addon-interactions": "9.0.0-alpha.
|
|
36
|
-
"@storybook/addon-jest": "9.0.0-alpha.
|
|
37
|
-
"@storybook/addon-links": "9.0.0-alpha.
|
|
38
|
-
"@storybook/addon-measure": "9.0.0-alpha.
|
|
39
|
-
"@storybook/addon-onboarding": "9.0.0-alpha.
|
|
40
|
-
"@storybook/addon-outline": "9.0.0-alpha.
|
|
41
|
-
"@storybook/addon-storysource": "9.0.0-alpha.
|
|
42
|
-
"@storybook/addon-test": "9.0.0-alpha.
|
|
43
|
-
"@storybook/addon-themes": "9.0.0-alpha.
|
|
44
|
-
"@storybook/addon-toolbars": "9.0.0-alpha.
|
|
45
|
-
"@storybook/addon-viewport": "9.0.0-alpha.
|
|
46
|
-
"@storybook/builder-vite": "9.0.0-alpha.
|
|
47
|
-
"@storybook/builder-webpack5": "9.0.0-alpha.
|
|
48
|
-
storybook: "9.0.0-alpha.
|
|
49
|
-
"@storybook/angular": "9.0.0-alpha.
|
|
50
|
-
"@storybook/ember": "9.0.0-alpha.
|
|
51
|
-
"@storybook/experimental-nextjs-vite": "9.0.0-alpha.
|
|
52
|
-
"@storybook/html-vite": "9.0.0-alpha.
|
|
53
|
-
"@storybook/html-webpack5": "9.0.0-alpha.
|
|
54
|
-
"@storybook/nextjs": "9.0.0-alpha.
|
|
55
|
-
"@storybook/preact-vite": "9.0.0-alpha.
|
|
56
|
-
"@storybook/preact-webpack5": "9.0.0-alpha.
|
|
57
|
-
"@storybook/react-native-web-vite": "9.0.0-alpha.
|
|
58
|
-
"@storybook/react-vite": "9.0.0-alpha.
|
|
59
|
-
"@storybook/react-webpack5": "9.0.0-alpha.
|
|
60
|
-
"@storybook/server-webpack5": "9.0.0-alpha.
|
|
61
|
-
"@storybook/svelte-vite": "9.0.0-alpha.
|
|
62
|
-
"@storybook/svelte-webpack5": "9.0.0-alpha.
|
|
63
|
-
"@storybook/sveltekit": "9.0.0-alpha.
|
|
64
|
-
"@storybook/vue3-vite": "9.0.0-alpha.
|
|
65
|
-
"@storybook/vue3-webpack5": "9.0.0-alpha.
|
|
66
|
-
"@storybook/web-components-vite": "9.0.0-alpha.
|
|
67
|
-
"@storybook/web-components-webpack5": "9.0.0-alpha.
|
|
68
|
-
"@storybook/blocks": "9.0.0-alpha.
|
|
69
|
-
sb: "9.0.0-alpha.
|
|
70
|
-
"@storybook/cli": "9.0.0-alpha.
|
|
71
|
-
"@storybook/codemod": "9.0.0-alpha.
|
|
72
|
-
"@storybook/core-webpack": "9.0.0-alpha.
|
|
73
|
-
"create-storybook": "9.0.0-alpha.
|
|
74
|
-
"@storybook/csf-plugin": "9.0.0-alpha.
|
|
75
|
-
"@storybook/react-dom-shim": "9.0.0-alpha.
|
|
76
|
-
"@storybook/source-loader": "9.0.0-alpha.
|
|
77
|
-
"@storybook/
|
|
78
|
-
"@storybook/preset-
|
|
79
|
-
"@storybook/preset-
|
|
80
|
-
"@storybook/preset-
|
|
81
|
-
"@storybook/preset-
|
|
82
|
-
"@storybook/preset-
|
|
83
|
-
"@storybook/preset-
|
|
84
|
-
"@storybook/
|
|
85
|
-
"@storybook/
|
|
86
|
-
"@storybook/
|
|
87
|
-
"@storybook/
|
|
88
|
-
"@storybook/
|
|
89
|
-
"@storybook/
|
|
90
|
-
"@storybook/
|
|
91
|
-
"@storybook/web-components": "9.0.0-alpha.2"
|
|
27
|
+
"@storybook/addon-a11y": "9.0.0-alpha.3",
|
|
28
|
+
"@storybook/addon-actions": "9.0.0-alpha.3",
|
|
29
|
+
"@storybook/addon-backgrounds": "9.0.0-alpha.3",
|
|
30
|
+
"@storybook/addon-controls": "9.0.0-alpha.3",
|
|
31
|
+
"@storybook/addon-docs": "9.0.0-alpha.3",
|
|
32
|
+
"@storybook/addon-essentials": "9.0.0-alpha.3",
|
|
33
|
+
"@storybook/addon-mdx-gfm": "9.0.0-alpha.3",
|
|
34
|
+
"@storybook/addon-highlight": "9.0.0-alpha.3",
|
|
35
|
+
"@storybook/addon-interactions": "9.0.0-alpha.3",
|
|
36
|
+
"@storybook/addon-jest": "9.0.0-alpha.3",
|
|
37
|
+
"@storybook/addon-links": "9.0.0-alpha.3",
|
|
38
|
+
"@storybook/addon-measure": "9.0.0-alpha.3",
|
|
39
|
+
"@storybook/addon-onboarding": "9.0.0-alpha.3",
|
|
40
|
+
"@storybook/addon-outline": "9.0.0-alpha.3",
|
|
41
|
+
"@storybook/addon-storysource": "9.0.0-alpha.3",
|
|
42
|
+
"@storybook/addon-test": "9.0.0-alpha.3",
|
|
43
|
+
"@storybook/addon-themes": "9.0.0-alpha.3",
|
|
44
|
+
"@storybook/addon-toolbars": "9.0.0-alpha.3",
|
|
45
|
+
"@storybook/addon-viewport": "9.0.0-alpha.3",
|
|
46
|
+
"@storybook/builder-vite": "9.0.0-alpha.3",
|
|
47
|
+
"@storybook/builder-webpack5": "9.0.0-alpha.3",
|
|
48
|
+
storybook: "9.0.0-alpha.3",
|
|
49
|
+
"@storybook/angular": "9.0.0-alpha.3",
|
|
50
|
+
"@storybook/ember": "9.0.0-alpha.3",
|
|
51
|
+
"@storybook/experimental-nextjs-vite": "9.0.0-alpha.3",
|
|
52
|
+
"@storybook/html-vite": "9.0.0-alpha.3",
|
|
53
|
+
"@storybook/html-webpack5": "9.0.0-alpha.3",
|
|
54
|
+
"@storybook/nextjs": "9.0.0-alpha.3",
|
|
55
|
+
"@storybook/preact-vite": "9.0.0-alpha.3",
|
|
56
|
+
"@storybook/preact-webpack5": "9.0.0-alpha.3",
|
|
57
|
+
"@storybook/react-native-web-vite": "9.0.0-alpha.3",
|
|
58
|
+
"@storybook/react-vite": "9.0.0-alpha.3",
|
|
59
|
+
"@storybook/react-webpack5": "9.0.0-alpha.3",
|
|
60
|
+
"@storybook/server-webpack5": "9.0.0-alpha.3",
|
|
61
|
+
"@storybook/svelte-vite": "9.0.0-alpha.3",
|
|
62
|
+
"@storybook/svelte-webpack5": "9.0.0-alpha.3",
|
|
63
|
+
"@storybook/sveltekit": "9.0.0-alpha.3",
|
|
64
|
+
"@storybook/vue3-vite": "9.0.0-alpha.3",
|
|
65
|
+
"@storybook/vue3-webpack5": "9.0.0-alpha.3",
|
|
66
|
+
"@storybook/web-components-vite": "9.0.0-alpha.3",
|
|
67
|
+
"@storybook/web-components-webpack5": "9.0.0-alpha.3",
|
|
68
|
+
"@storybook/blocks": "9.0.0-alpha.3",
|
|
69
|
+
sb: "9.0.0-alpha.3",
|
|
70
|
+
"@storybook/cli": "9.0.0-alpha.3",
|
|
71
|
+
"@storybook/codemod": "9.0.0-alpha.3",
|
|
72
|
+
"@storybook/core-webpack": "9.0.0-alpha.3",
|
|
73
|
+
"create-storybook": "9.0.0-alpha.3",
|
|
74
|
+
"@storybook/csf-plugin": "9.0.0-alpha.3",
|
|
75
|
+
"@storybook/react-dom-shim": "9.0.0-alpha.3",
|
|
76
|
+
"@storybook/source-loader": "9.0.0-alpha.3",
|
|
77
|
+
"@storybook/preset-create-react-app": "9.0.0-alpha.3",
|
|
78
|
+
"@storybook/preset-html-webpack": "9.0.0-alpha.3",
|
|
79
|
+
"@storybook/preset-preact-webpack": "9.0.0-alpha.3",
|
|
80
|
+
"@storybook/preset-react-webpack": "9.0.0-alpha.3",
|
|
81
|
+
"@storybook/preset-server-webpack": "9.0.0-alpha.3",
|
|
82
|
+
"@storybook/preset-svelte-webpack": "9.0.0-alpha.3",
|
|
83
|
+
"@storybook/preset-vue3-webpack": "9.0.0-alpha.3",
|
|
84
|
+
"@storybook/html": "9.0.0-alpha.3",
|
|
85
|
+
"@storybook/preact": "9.0.0-alpha.3",
|
|
86
|
+
"@storybook/react": "9.0.0-alpha.3",
|
|
87
|
+
"@storybook/server": "9.0.0-alpha.3",
|
|
88
|
+
"@storybook/svelte": "9.0.0-alpha.3",
|
|
89
|
+
"@storybook/vue3": "9.0.0-alpha.3",
|
|
90
|
+
"@storybook/web-components": "9.0.0-alpha.3"
|
|
92
91
|
};
|
|
93
92
|
|
|
94
93
|
// src/bin/index.ts
|
package/dist/bin/index.js
CHANGED
|
@@ -18,71 +18,70 @@ import { dirname as b, join as k } from "node:path";
|
|
|
18
18
|
|
|
19
19
|
// src/common/versions.ts
|
|
20
20
|
var t = {
|
|
21
|
-
"@storybook/addon-a11y": "9.0.0-alpha.
|
|
22
|
-
"@storybook/addon-actions": "9.0.0-alpha.
|
|
23
|
-
"@storybook/addon-backgrounds": "9.0.0-alpha.
|
|
24
|
-
"@storybook/addon-controls": "9.0.0-alpha.
|
|
25
|
-
"@storybook/addon-docs": "9.0.0-alpha.
|
|
26
|
-
"@storybook/addon-essentials": "9.0.0-alpha.
|
|
27
|
-
"@storybook/addon-mdx-gfm": "9.0.0-alpha.
|
|
28
|
-
"@storybook/addon-highlight": "9.0.0-alpha.
|
|
29
|
-
"@storybook/addon-interactions": "9.0.0-alpha.
|
|
30
|
-
"@storybook/addon-jest": "9.0.0-alpha.
|
|
31
|
-
"@storybook/addon-links": "9.0.0-alpha.
|
|
32
|
-
"@storybook/addon-measure": "9.0.0-alpha.
|
|
33
|
-
"@storybook/addon-onboarding": "9.0.0-alpha.
|
|
34
|
-
"@storybook/addon-outline": "9.0.0-alpha.
|
|
35
|
-
"@storybook/addon-storysource": "9.0.0-alpha.
|
|
36
|
-
"@storybook/addon-test": "9.0.0-alpha.
|
|
37
|
-
"@storybook/addon-themes": "9.0.0-alpha.
|
|
38
|
-
"@storybook/addon-toolbars": "9.0.0-alpha.
|
|
39
|
-
"@storybook/addon-viewport": "9.0.0-alpha.
|
|
40
|
-
"@storybook/builder-vite": "9.0.0-alpha.
|
|
41
|
-
"@storybook/builder-webpack5": "9.0.0-alpha.
|
|
42
|
-
storybook: "9.0.0-alpha.
|
|
43
|
-
"@storybook/angular": "9.0.0-alpha.
|
|
44
|
-
"@storybook/ember": "9.0.0-alpha.
|
|
45
|
-
"@storybook/experimental-nextjs-vite": "9.0.0-alpha.
|
|
46
|
-
"@storybook/html-vite": "9.0.0-alpha.
|
|
47
|
-
"@storybook/html-webpack5": "9.0.0-alpha.
|
|
48
|
-
"@storybook/nextjs": "9.0.0-alpha.
|
|
49
|
-
"@storybook/preact-vite": "9.0.0-alpha.
|
|
50
|
-
"@storybook/preact-webpack5": "9.0.0-alpha.
|
|
51
|
-
"@storybook/react-native-web-vite": "9.0.0-alpha.
|
|
52
|
-
"@storybook/react-vite": "9.0.0-alpha.
|
|
53
|
-
"@storybook/react-webpack5": "9.0.0-alpha.
|
|
54
|
-
"@storybook/server-webpack5": "9.0.0-alpha.
|
|
55
|
-
"@storybook/svelte-vite": "9.0.0-alpha.
|
|
56
|
-
"@storybook/svelte-webpack5": "9.0.0-alpha.
|
|
57
|
-
"@storybook/sveltekit": "9.0.0-alpha.
|
|
58
|
-
"@storybook/vue3-vite": "9.0.0-alpha.
|
|
59
|
-
"@storybook/vue3-webpack5": "9.0.0-alpha.
|
|
60
|
-
"@storybook/web-components-vite": "9.0.0-alpha.
|
|
61
|
-
"@storybook/web-components-webpack5": "9.0.0-alpha.
|
|
62
|
-
"@storybook/blocks": "9.0.0-alpha.
|
|
63
|
-
sb: "9.0.0-alpha.
|
|
64
|
-
"@storybook/cli": "9.0.0-alpha.
|
|
65
|
-
"@storybook/codemod": "9.0.0-alpha.
|
|
66
|
-
"@storybook/core-webpack": "9.0.0-alpha.
|
|
67
|
-
"create-storybook": "9.0.0-alpha.
|
|
68
|
-
"@storybook/csf-plugin": "9.0.0-alpha.
|
|
69
|
-
"@storybook/react-dom-shim": "9.0.0-alpha.
|
|
70
|
-
"@storybook/source-loader": "9.0.0-alpha.
|
|
71
|
-
"@storybook/
|
|
72
|
-
"@storybook/preset-
|
|
73
|
-
"@storybook/preset-
|
|
74
|
-
"@storybook/preset-
|
|
75
|
-
"@storybook/preset-
|
|
76
|
-
"@storybook/preset-
|
|
77
|
-
"@storybook/preset-
|
|
78
|
-
"@storybook/
|
|
79
|
-
"@storybook/
|
|
80
|
-
"@storybook/
|
|
81
|
-
"@storybook/
|
|
82
|
-
"@storybook/
|
|
83
|
-
"@storybook/
|
|
84
|
-
"@storybook/
|
|
85
|
-
"@storybook/web-components": "9.0.0-alpha.2"
|
|
21
|
+
"@storybook/addon-a11y": "9.0.0-alpha.3",
|
|
22
|
+
"@storybook/addon-actions": "9.0.0-alpha.3",
|
|
23
|
+
"@storybook/addon-backgrounds": "9.0.0-alpha.3",
|
|
24
|
+
"@storybook/addon-controls": "9.0.0-alpha.3",
|
|
25
|
+
"@storybook/addon-docs": "9.0.0-alpha.3",
|
|
26
|
+
"@storybook/addon-essentials": "9.0.0-alpha.3",
|
|
27
|
+
"@storybook/addon-mdx-gfm": "9.0.0-alpha.3",
|
|
28
|
+
"@storybook/addon-highlight": "9.0.0-alpha.3",
|
|
29
|
+
"@storybook/addon-interactions": "9.0.0-alpha.3",
|
|
30
|
+
"@storybook/addon-jest": "9.0.0-alpha.3",
|
|
31
|
+
"@storybook/addon-links": "9.0.0-alpha.3",
|
|
32
|
+
"@storybook/addon-measure": "9.0.0-alpha.3",
|
|
33
|
+
"@storybook/addon-onboarding": "9.0.0-alpha.3",
|
|
34
|
+
"@storybook/addon-outline": "9.0.0-alpha.3",
|
|
35
|
+
"@storybook/addon-storysource": "9.0.0-alpha.3",
|
|
36
|
+
"@storybook/addon-test": "9.0.0-alpha.3",
|
|
37
|
+
"@storybook/addon-themes": "9.0.0-alpha.3",
|
|
38
|
+
"@storybook/addon-toolbars": "9.0.0-alpha.3",
|
|
39
|
+
"@storybook/addon-viewport": "9.0.0-alpha.3",
|
|
40
|
+
"@storybook/builder-vite": "9.0.0-alpha.3",
|
|
41
|
+
"@storybook/builder-webpack5": "9.0.0-alpha.3",
|
|
42
|
+
storybook: "9.0.0-alpha.3",
|
|
43
|
+
"@storybook/angular": "9.0.0-alpha.3",
|
|
44
|
+
"@storybook/ember": "9.0.0-alpha.3",
|
|
45
|
+
"@storybook/experimental-nextjs-vite": "9.0.0-alpha.3",
|
|
46
|
+
"@storybook/html-vite": "9.0.0-alpha.3",
|
|
47
|
+
"@storybook/html-webpack5": "9.0.0-alpha.3",
|
|
48
|
+
"@storybook/nextjs": "9.0.0-alpha.3",
|
|
49
|
+
"@storybook/preact-vite": "9.0.0-alpha.3",
|
|
50
|
+
"@storybook/preact-webpack5": "9.0.0-alpha.3",
|
|
51
|
+
"@storybook/react-native-web-vite": "9.0.0-alpha.3",
|
|
52
|
+
"@storybook/react-vite": "9.0.0-alpha.3",
|
|
53
|
+
"@storybook/react-webpack5": "9.0.0-alpha.3",
|
|
54
|
+
"@storybook/server-webpack5": "9.0.0-alpha.3",
|
|
55
|
+
"@storybook/svelte-vite": "9.0.0-alpha.3",
|
|
56
|
+
"@storybook/svelte-webpack5": "9.0.0-alpha.3",
|
|
57
|
+
"@storybook/sveltekit": "9.0.0-alpha.3",
|
|
58
|
+
"@storybook/vue3-vite": "9.0.0-alpha.3",
|
|
59
|
+
"@storybook/vue3-webpack5": "9.0.0-alpha.3",
|
|
60
|
+
"@storybook/web-components-vite": "9.0.0-alpha.3",
|
|
61
|
+
"@storybook/web-components-webpack5": "9.0.0-alpha.3",
|
|
62
|
+
"@storybook/blocks": "9.0.0-alpha.3",
|
|
63
|
+
sb: "9.0.0-alpha.3",
|
|
64
|
+
"@storybook/cli": "9.0.0-alpha.3",
|
|
65
|
+
"@storybook/codemod": "9.0.0-alpha.3",
|
|
66
|
+
"@storybook/core-webpack": "9.0.0-alpha.3",
|
|
67
|
+
"create-storybook": "9.0.0-alpha.3",
|
|
68
|
+
"@storybook/csf-plugin": "9.0.0-alpha.3",
|
|
69
|
+
"@storybook/react-dom-shim": "9.0.0-alpha.3",
|
|
70
|
+
"@storybook/source-loader": "9.0.0-alpha.3",
|
|
71
|
+
"@storybook/preset-create-react-app": "9.0.0-alpha.3",
|
|
72
|
+
"@storybook/preset-html-webpack": "9.0.0-alpha.3",
|
|
73
|
+
"@storybook/preset-preact-webpack": "9.0.0-alpha.3",
|
|
74
|
+
"@storybook/preset-react-webpack": "9.0.0-alpha.3",
|
|
75
|
+
"@storybook/preset-server-webpack": "9.0.0-alpha.3",
|
|
76
|
+
"@storybook/preset-svelte-webpack": "9.0.0-alpha.3",
|
|
77
|
+
"@storybook/preset-vue3-webpack": "9.0.0-alpha.3",
|
|
78
|
+
"@storybook/html": "9.0.0-alpha.3",
|
|
79
|
+
"@storybook/preact": "9.0.0-alpha.3",
|
|
80
|
+
"@storybook/react": "9.0.0-alpha.3",
|
|
81
|
+
"@storybook/server": "9.0.0-alpha.3",
|
|
82
|
+
"@storybook/svelte": "9.0.0-alpha.3",
|
|
83
|
+
"@storybook/vue3": "9.0.0-alpha.3",
|
|
84
|
+
"@storybook/web-components": "9.0.0-alpha.3"
|
|
86
85
|
};
|
|
87
86
|
|
|
88
87
|
// src/bin/index.ts
|
package/dist/channels/index.cjs
CHANGED
|
@@ -1271,11 +1271,9 @@ var Ke = "UNIVERSAL_STORE:", C = {
|
|
|
1271
1271
|
throw new TypeError(
|
|
1272
1272
|
"UniversalStore is not constructable - use UniversalStore.create() instead"
|
|
1273
1273
|
);
|
|
1274
|
-
if (t.isInternalConstructing = !1, this.id = e.id, this.actorId =
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
), this.actorType = e.leader ? t.ActorType.LEADER : t.ActorType.FOLLOWER, this.state = e.initialState, this.channelEventName = `${Ke}${this.
|
|
1278
|
-
id}`, this.debug("constructor", {
|
|
1274
|
+
if (t.isInternalConstructing = !1, this.id = e.id, this.actorId = Date.now().toString(36) + Math.random().toString(36).substring(2), this.
|
|
1275
|
+
actorType = e.leader ? t.ActorType.LEADER : t.ActorType.FOLLOWER, this.state = e.initialState, this.channelEventName = `${Ke}${this.id}`,
|
|
1276
|
+
this.debug("constructor", {
|
|
1279
1277
|
options: e,
|
|
1280
1278
|
environmentOverrides: r,
|
|
1281
1279
|
channelEventName: this.channelEventName
|
package/dist/channels/index.js
CHANGED
|
@@ -256,11 +256,9 @@ var ye = "UNIVERSAL_STORE:", x = {
|
|
|
256
256
|
throw new TypeError(
|
|
257
257
|
"UniversalStore is not constructable - use UniversalStore.create() instead"
|
|
258
258
|
);
|
|
259
|
-
if (h.isInternalConstructing = !1, this.id = t.id, this.actorId =
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
), this.actorType = t.leader ? h.ActorType.LEADER : h.ActorType.FOLLOWER, this.state = t.initialState, this.channelEventName = `${ye}${this.
|
|
263
|
-
id}`, this.debug("constructor", {
|
|
259
|
+
if (h.isInternalConstructing = !1, this.id = t.id, this.actorId = Date.now().toString(36) + Math.random().toString(36).substring(2), this.
|
|
260
|
+
actorType = t.leader ? h.ActorType.LEADER : h.ActorType.FOLLOWER, this.state = t.initialState, this.channelEventName = `${ye}${this.id}`,
|
|
261
|
+
this.debug("constructor", {
|
|
264
262
|
options: t,
|
|
265
263
|
environmentOverrides: e,
|
|
266
264
|
channelEventName: this.channelEventName
|
package/dist/cli/bin/index.cjs
CHANGED
|
@@ -2330,7 +2330,7 @@ var we = b((D) => {
|
|
|
2330
2330
|
|
|
2331
2331
|
// ../node_modules/picocolors/picocolors.js
|
|
2332
2332
|
var $e = b((Nt, oe) => {
|
|
2333
|
-
var I = process || {},
|
|
2333
|
+
var I = process || {}, je = I.argv || [], q = I.env || {}, dt = !(q.NO_COLOR || je.includes("--no-color")) && (!!q.FORCE_COLOR || je.includes(
|
|
2334
2334
|
"--color") || I.platform === "win32" || (I.stdout || {}).isTTY && q.TERM !== "dumb" || !!q.CI), ht = /* @__PURE__ */ c((s, e, t = s) => (i) => {
|
|
2335
2335
|
let n = "" + i, r = n.indexOf(e, s.length);
|
|
2336
2336
|
return ~r ? s + pt(n, e, t, r) + e : s + n + e;
|
|
@@ -2340,7 +2340,7 @@ var $e = b((Nt, oe) => {
|
|
|
2340
2340
|
n += s.substring(r, i) + t, r = i + e.length, i = s.indexOf(e, r);
|
|
2341
2341
|
while (~i);
|
|
2342
2342
|
return n + s.substring(r);
|
|
2343
|
-
}, "replaceClose"),
|
|
2343
|
+
}, "replaceClose"), Se = /* @__PURE__ */ c((s = dt) => {
|
|
2344
2344
|
let e = s ? ht : () => String;
|
|
2345
2345
|
return {
|
|
2346
2346
|
isColorSupported: s,
|
|
@@ -2387,8 +2387,8 @@ var $e = b((Nt, oe) => {
|
|
|
2387
2387
|
bgWhiteBright: e("\x1B[107m", "\x1B[49m")
|
|
2388
2388
|
};
|
|
2389
2389
|
}, "createColors");
|
|
2390
|
-
oe.exports =
|
|
2391
|
-
oe.exports.createColors =
|
|
2390
|
+
oe.exports = Se();
|
|
2391
|
+
oe.exports.createColors = Se;
|
|
2392
2392
|
});
|
|
2393
2393
|
|
|
2394
2394
|
// ../node_modules/ts-dedent/dist/index.js
|
|
@@ -2494,7 +2494,7 @@ function se(s, e) {
|
|
|
2494
2494
|
c(se, "leven");
|
|
2495
2495
|
|
|
2496
2496
|
// src/cli/bin/index.ts
|
|
2497
|
-
var
|
|
2497
|
+
var j = $($e(), 1);
|
|
2498
2498
|
|
|
2499
2499
|
// ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
|
|
2500
2500
|
var mt = process.env.NODE_ENV === "production", ae = "Invariant failed";
|
|
@@ -2509,7 +2509,7 @@ function w(s, e) {
|
|
|
2509
2509
|
c(w, "invariant");
|
|
2510
2510
|
|
|
2511
2511
|
// package.json
|
|
2512
|
-
var Ve = "9.0.0-alpha.
|
|
2512
|
+
var Ve = "9.0.0-alpha.3";
|
|
2513
2513
|
|
|
2514
2514
|
// src/cli/build.ts
|
|
2515
2515
|
var He = require("storybook/internal/common"), N = require("storybook/internal/core-server");
|
|
@@ -2594,7 +2594,7 @@ var Fe = /* @__PURE__ */ c(async (s) => {
|
|
|
2594
2594
|
|
|
2595
2595
|
// src/cli/bin/index.ts
|
|
2596
2596
|
(0, Be.addToGlobalContext)("cliVersion", C.versions.storybook);
|
|
2597
|
-
var
|
|
2597
|
+
var S = console, ce = /* @__PURE__ */ c((s) => E.program.command(s).option(
|
|
2598
2598
|
"--disable-telemetry",
|
|
2599
2599
|
"Disable sending telemetry data",
|
|
2600
2600
|
// default value is false, but if the user sets STORYBOOK_DISABLE_TELEMETRY, it can be true
|
|
@@ -2626,7 +2626,7 @@ ly site using addon-docs").option("--exact-port", "Exit early if the desired por
|
|
|
2626
2626
|
).action(async (s) => {
|
|
2627
2627
|
B.logger.setLevel(s.loglevel);
|
|
2628
2628
|
let e = await O(__dirname);
|
|
2629
|
-
w(e, "Failed to find the closest package.json file."),
|
|
2629
|
+
w(e, "Failed to find the closest package.json file."), S.log(j.default.bold(`${e.name} v${e.version}`) + j.default.reset(`
|
|
2630
2630
|
`)), (0, C.getEnvConfig)(s, {
|
|
2631
2631
|
port: "SBCONFIG_PORT",
|
|
2632
2632
|
host: "SBCONFIG_HOSTNAME",
|
|
@@ -2648,7 +2648,7 @@ ly site using addon-docs").option("--test", "Build stories optimized for testing
|
|
|
2648
2648
|
let { env: e } = process;
|
|
2649
2649
|
e.NODE_ENV = e.NODE_ENV || "production";
|
|
2650
2650
|
let t = await O(__dirname);
|
|
2651
|
-
w(t, "Failed to find the closest package.json file."), B.logger.setLevel(s.loglevel),
|
|
2651
|
+
w(t, "Failed to find the closest package.json file."), B.logger.setLevel(s.loglevel), S.log(j.default.bold(`${t.name} v${t.version}
|
|
2652
2652
|
`)), (0, C.getEnvConfig)(s, {
|
|
2653
2653
|
staticDir: "SBCONFIG_STATIC_DIR",
|
|
2654
2654
|
outputDir: "SBCONFIG_OUTPUT_DIR",
|
|
@@ -2665,7 +2665,7 @@ g during build").action(async (s) => {
|
|
|
2665
2665
|
let { env: e } = process;
|
|
2666
2666
|
e.NODE_ENV = e.NODE_ENV || "production";
|
|
2667
2667
|
let t = await O(__dirname);
|
|
2668
|
-
w(t, "Failed to find the closest package.json file."), B.logger.setLevel(s.loglevel),
|
|
2668
|
+
w(t, "Failed to find the closest package.json file."), B.logger.setLevel(s.loglevel), S.log(j.default.bold(`${t.name} v${t.version}
|
|
2669
2669
|
`)), (0, C.getEnvConfig)(s, {
|
|
2670
2670
|
configDir: "SBCONFIG_CONFIG_DIR",
|
|
2671
2671
|
outputFile: "SBCONFIG_OUTPUT_FILE"
|
|
@@ -2675,13 +2675,13 @@ g during build").action(async (s) => {
|
|
|
2675
2675
|
}).catch(() => process.exit(1));
|
|
2676
2676
|
});
|
|
2677
2677
|
E.program.on("command:*", ([s]) => {
|
|
2678
|
-
|
|
2678
|
+
S.error(
|
|
2679
2679
|
` Invalid command: %s.
|
|
2680
2680
|
See --help for a list of available commands.`,
|
|
2681
2681
|
s
|
|
2682
2682
|
);
|
|
2683
2683
|
let t = E.program.commands.map((i) => i.name()).find((i) => se(i, s) < 3);
|
|
2684
|
-
t &&
|
|
2684
|
+
t && S.info(`
|
|
2685
2685
|
Did you mean ${t}?`), process.exit(1);
|
|
2686
2686
|
});
|
|
2687
2687
|
E.program.usage("<command> [options]").version(String(Ve)).parse(process.argv);
|
package/dist/cli/bin/index.js
CHANGED
|
@@ -2407,7 +2407,7 @@ var $e = b((A) => {
|
|
|
2407
2407
|
"use strict";
|
|
2408
2408
|
Object.defineProperty(A, "__esModule", { value: !0 });
|
|
2409
2409
|
A.dedent = void 0;
|
|
2410
|
-
function
|
|
2410
|
+
function Se(s) {
|
|
2411
2411
|
for (var e = [], t = 1; t < arguments.length; t++)
|
|
2412
2412
|
e[t - 1] = arguments[t];
|
|
2413
2413
|
var i = Array.from(typeof s == "string" ? [s] : s);
|
|
@@ -2439,9 +2439,9 @@ var $e = b((A) => {
|
|
|
2439
2439
|
`)), o += h + i[a + 1];
|
|
2440
2440
|
}), o;
|
|
2441
2441
|
}
|
|
2442
|
-
c(
|
|
2443
|
-
A.dedent =
|
|
2444
|
-
A.default =
|
|
2442
|
+
c(Se, "dedent");
|
|
2443
|
+
A.dedent = Se;
|
|
2444
|
+
A.default = Se;
|
|
2445
2445
|
});
|
|
2446
2446
|
|
|
2447
2447
|
// src/cli/bin/index.ts
|
|
@@ -2511,7 +2511,7 @@ function ee(s, e) {
|
|
|
2511
2511
|
c(ee, "leven");
|
|
2512
2512
|
|
|
2513
2513
|
// src/cli/bin/index.ts
|
|
2514
|
-
var
|
|
2514
|
+
var j = $(ke(), 1);
|
|
2515
2515
|
|
|
2516
2516
|
// ../node_modules/tiny-invariant/dist/esm/tiny-invariant.js
|
|
2517
2517
|
var lt = process.env.NODE_ENV === "production", ie = "Invariant failed";
|
|
@@ -2526,7 +2526,7 @@ function O(s, e) {
|
|
|
2526
2526
|
c(O, "invariant");
|
|
2527
2527
|
|
|
2528
2528
|
// package.json
|
|
2529
|
-
var Ae = "9.0.0-alpha.
|
|
2529
|
+
var Ae = "9.0.0-alpha.3";
|
|
2530
2530
|
|
|
2531
2531
|
// src/cli/build.ts
|
|
2532
2532
|
import { cache as ut } from "storybook/internal/common";
|
|
@@ -2553,7 +2553,7 @@ var Ee = /* @__PURE__ */ c(async (s) => {
|
|
|
2553
2553
|
// src/cli/buildIndex.ts
|
|
2554
2554
|
import { cache as pt } from "storybook/internal/common";
|
|
2555
2555
|
import { buildIndexStandalone as mt, withTelemetry as ft } from "storybook/internal/core-server";
|
|
2556
|
-
var
|
|
2556
|
+
var je = /* @__PURE__ */ c(async (s) => {
|
|
2557
2557
|
let e = {
|
|
2558
2558
|
...s,
|
|
2559
2559
|
configDir: s.configDir || ".storybook",
|
|
@@ -2614,7 +2614,7 @@ var Ve = /* @__PURE__ */ c(async (s) => {
|
|
|
2614
2614
|
|
|
2615
2615
|
// src/cli/bin/index.ts
|
|
2616
2616
|
wt("cliVersion", Ot.storybook);
|
|
2617
|
-
var
|
|
2617
|
+
var S = console, oe = /* @__PURE__ */ c((s) => E.program.command(s).option(
|
|
2618
2618
|
"--disable-telemetry",
|
|
2619
2619
|
"Disable sending telemetry data",
|
|
2620
2620
|
// default value is false, but if the user sets STORYBOOK_DISABLE_TELEMETRY, it can be true
|
|
@@ -2646,7 +2646,7 @@ ly site using addon-docs").option("--exact-port", "Exit early if the desired por
|
|
|
2646
2646
|
).action(async (s) => {
|
|
2647
2647
|
se.setLevel(s.loglevel);
|
|
2648
2648
|
let e = await v(__dirname);
|
|
2649
|
-
O(e, "Failed to find the closest package.json file."),
|
|
2649
|
+
O(e, "Failed to find the closest package.json file."), S.log(j.default.bold(`${e.name} v${e.version}`) + j.default.reset(`
|
|
2650
2650
|
`)), re(s, {
|
|
2651
2651
|
port: "SBCONFIG_PORT",
|
|
2652
2652
|
host: "SBCONFIG_HOSTNAME",
|
|
@@ -2668,7 +2668,7 @@ ly site using addon-docs").option("--test", "Build stories optimized for testing
|
|
|
2668
2668
|
let { env: e } = process;
|
|
2669
2669
|
e.NODE_ENV = e.NODE_ENV || "production";
|
|
2670
2670
|
let t = await v(__dirname);
|
|
2671
|
-
O(t, "Failed to find the closest package.json file."), se.setLevel(s.loglevel),
|
|
2671
|
+
O(t, "Failed to find the closest package.json file."), se.setLevel(s.loglevel), S.log(j.default.bold(`${t.name} v${t.version}
|
|
2672
2672
|
`)), re(s, {
|
|
2673
2673
|
staticDir: "SBCONFIG_STATIC_DIR",
|
|
2674
2674
|
outputDir: "SBCONFIG_OUTPUT_DIR",
|
|
@@ -2685,23 +2685,23 @@ g during build").action(async (s) => {
|
|
|
2685
2685
|
let { env: e } = process;
|
|
2686
2686
|
e.NODE_ENV = e.NODE_ENV || "production";
|
|
2687
2687
|
let t = await v(__dirname);
|
|
2688
|
-
O(t, "Failed to find the closest package.json file."), se.setLevel(s.loglevel),
|
|
2688
|
+
O(t, "Failed to find the closest package.json file."), se.setLevel(s.loglevel), S.log(j.default.bold(`${t.name} v${t.version}
|
|
2689
2689
|
`)), re(s, {
|
|
2690
2690
|
configDir: "SBCONFIG_CONFIG_DIR",
|
|
2691
2691
|
outputFile: "SBCONFIG_OUTPUT_FILE"
|
|
2692
|
-
}), await
|
|
2692
|
+
}), await je({
|
|
2693
2693
|
...s,
|
|
2694
2694
|
packageJson: t
|
|
2695
2695
|
}).catch(() => process.exit(1));
|
|
2696
2696
|
});
|
|
2697
2697
|
E.program.on("command:*", ([s]) => {
|
|
2698
|
-
|
|
2698
|
+
S.error(
|
|
2699
2699
|
` Invalid command: %s.
|
|
2700
2700
|
See --help for a list of available commands.`,
|
|
2701
2701
|
s
|
|
2702
2702
|
);
|
|
2703
2703
|
let t = E.program.commands.map((i) => i.name()).find((i) => ee(i, s) < 3);
|
|
2704
|
-
t &&
|
|
2704
|
+
t && S.info(`
|
|
2705
2705
|
Did you mean ${t}?`), process.exit(1);
|
|
2706
2706
|
});
|
|
2707
2707
|
E.program.usage("<command> [options]").version(String(Ae)).parse(process.argv);
|
package/dist/cli/index.cjs
CHANGED
|
@@ -16017,7 +16017,7 @@ n(Vb, "getVersionSafe");
|
|
|
16017
16017
|
var Gb = /* @__PURE__ */ n(async () => (0, Se.existsSync)("./src") ? "./src/stories" : "./stories", "cliStoriesTargetPath");
|
|
16018
16018
|
async function NR({
|
|
16019
16019
|
packageManager: e,
|
|
16020
|
-
|
|
16020
|
+
templateLocation: t,
|
|
16021
16021
|
language: r,
|
|
16022
16022
|
destination: i,
|
|
16023
16023
|
commonAssetsDir: s,
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ declare function addToDevDependenciesIfNotPresent(packageJson: PackageJson, name
|
|
|
127
127
|
declare function copyTemplate(templateRoot: string, destination?: string): void;
|
|
128
128
|
type CopyTemplateFilesOptions = {
|
|
129
129
|
packageManager: JsPackageManager;
|
|
130
|
-
|
|
130
|
+
templateLocation: SupportedFrameworks | SupportedRenderers$1;
|
|
131
131
|
language: SupportedLanguage;
|
|
132
132
|
commonAssetsDir?: string;
|
|
133
133
|
destination?: string;
|
|
@@ -142,7 +142,7 @@ declare const frameworkToDefaultBuilder: Record<SupportedFrameworks, CoreBuilder
|
|
|
142
142
|
*/
|
|
143
143
|
declare function getVersionSafe(packageManager: JsPackageManager, packageName: string): Promise<string | undefined>;
|
|
144
144
|
declare const cliStoriesTargetPath: () => Promise<"./src/stories" | "./stories">;
|
|
145
|
-
declare function copyTemplateFiles({ packageManager,
|
|
145
|
+
declare function copyTemplateFiles({ packageManager, templateLocation, language, destination, commonAssetsDir, features, }: CopyTemplateFilesOptions): Promise<void>;
|
|
146
146
|
declare function adjustTemplate(templatePath: string, templateData: Record<string, any>): Promise<void>;
|
|
147
147
|
declare function getStorybookVersionSpecifier(packageJson: PackageJsonWithDepsAndDevDeps): string | undefined;
|
|
148
148
|
declare function isNxProject(): Promise<string | undefined>;
|
package/dist/cli/index.js
CHANGED
|
@@ -15987,7 +15987,7 @@ n(FR, "getVersionSafe");
|
|
|
15987
15987
|
var xR = /* @__PURE__ */ n(async () => Ot("./src") ? "./src/stories" : "./stories", "cliStoriesTargetPath");
|
|
15988
15988
|
async function Pq({
|
|
15989
15989
|
packageManager: e,
|
|
15990
|
-
|
|
15990
|
+
templateLocation: t,
|
|
15991
15991
|
language: r,
|
|
15992
15992
|
destination: i,
|
|
15993
15993
|
commonAssetsDir: s,
|