storybook 9.0.0-alpha.13 → 9.0.0-alpha.14

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.
@@ -9,8 +9,8 @@ var x = (t, e) => {
9
9
  import { definePreview as N } from "storybook/preview-api";
10
10
 
11
11
  // src/actions/addArgs.ts
12
- var m = {};
13
- x(m, {
12
+ var l = {};
13
+ x(l, {
14
14
  argsEnhancers: () => W
15
15
  });
16
16
 
@@ -18,10 +18,10 @@ x(m, {
18
18
  import { ImplicitActionsDuringRendering as I } from "storybook/internal/preview-errors";
19
19
  import { global as R } from "@storybook/global";
20
20
  import { addons as j } from "storybook/preview-api";
21
- import { v4 as F } from "uuid";
21
+ import { v4 as P } from "uuid";
22
22
 
23
23
  // src/actions/constants.ts
24
- var y = "storybook/actions", B = `${y}/panel`, b = `${y}/action-event`, K = `${y}/action-clear`;
24
+ var m = "storybook/actions", B = `${m}/panel`, b = `${m}/action-event`, K = `${m}/action-clear`;
25
25
 
26
26
  // src/actions/runtime/configureActions.ts
27
27
  var E = {
@@ -34,9 +34,9 @@ var E = {
34
34
  var O = /* @__PURE__ */ n((t, e) => {
35
35
  let o = Object.getPrototypeOf(t);
36
36
  return !o || e(o) ? o : O(o, e);
37
- }, "findProto"), P = /* @__PURE__ */ n((t) => !!(typeof t == "object" && t && O(t, (e) => /^Synthetic(?:Base)?Event$/.test(e.constructor.name)) &&
38
- typeof t.persist == "function"), "isReactSyntheticEvent"), S = /* @__PURE__ */ n((t) => {
39
- if (P(t)) {
37
+ }, "findProto"), S = /* @__PURE__ */ n((t) => !!(typeof t == "object" && t && O(t, (e) => /^Synthetic(?:Base)?Event$/.test(e.constructor.name)) &&
38
+ typeof t.persist == "function"), "isReactSyntheticEvent"), F = /* @__PURE__ */ n((t) => {
39
+ if (S(t)) {
40
40
  let e = Object.create(
41
41
  t.constructor.prototype,
42
42
  Object.getOwnPropertyDescriptors(t)
@@ -49,11 +49,11 @@ typeof t.persist == "function"), "isReactSyntheticEvent"), S = /* @__PURE__ */ n
49
49
  }), e;
50
50
  }
51
51
  return t;
52
- }, "serializeArg"), C = /* @__PURE__ */ n(() => typeof crypto == "object" && typeof crypto.getRandomValues == "function" ? F() : (
52
+ }, "serializeArg"), C = /* @__PURE__ */ n(() => typeof crypto == "object" && typeof crypto.getRandomValues == "function" ? P() : (
53
53
  // pseudo random id, example response lo1e7zm4832bkr7yfl7
54
54
  Date.now().toString(36) + Math.random().toString(36).substring(2)
55
55
  ), "generateId");
56
- function l(t, e = {}) {
56
+ function g(t, e = {}) {
57
57
  let o = {
58
58
  ...E,
59
59
  ...e
@@ -77,24 +77,23 @@ function l(t, e = {}) {
77
77
  throw A;
78
78
  }
79
79
  }
80
- let a = j.getChannel(), c = C(), p = 5, g = s.map(S), D = s.length > 1 ? g : g[0], k = {
80
+ let a = j.getChannel(), c = C(), p = 5, y = s.map(F), D = s.length > 1 ? y : y[0], k = {
81
81
  id: c,
82
82
  count: 0,
83
83
  data: { name: t, args: D },
84
84
  options: {
85
85
  ...o,
86
- maxDepth: p + (o.depth || 3),
87
- allowFunction: o.allowFunction || !1
86
+ maxDepth: p + (o.depth || 3)
88
87
  }
89
88
  };
90
89
  a.emit(b, k);
91
90
  }, "actionHandler");
92
91
  return r.isAction = !0, r.implicit = e.implicit, r;
93
92
  }
94
- n(l, "action");
93
+ n(g, "action");
95
94
 
96
95
  // src/actions/addArgsHelpers.ts
97
- var w = /* @__PURE__ */ n((t, e) => typeof e[t] > "u" && !(t in e), "isInInitialArgs"), v = /* @__PURE__ */ n((t) => {
96
+ var v = /* @__PURE__ */ n((t, e) => typeof e[t] > "u" && !(t in e), "isInInitialArgs"), w = /* @__PURE__ */ n((t) => {
98
97
  let {
99
98
  initialArgs: e,
100
99
  argTypes: o,
@@ -106,21 +105,21 @@ var w = /* @__PURE__ */ n((t, e) => typeof e[t] > "u" && !(t in e), "isInInitial
106
105
  let s = new RegExp(i.argTypesRegex);
107
106
  return Object.entries(o).filter(
108
107
  ([c]) => !!s.test(c)
109
- ).reduce((c, [p, g]) => (w(p, e) && (c[p] = l(p, { implicit: !0, id: r })), c), {});
108
+ ).reduce((c, [p, y]) => (v(p, e) && (c[p] = g(p, { implicit: !0, id: r })), c), {});
110
109
  }, "inferActionsFromArgTypesRegex"), T = /* @__PURE__ */ n((t) => {
111
110
  let {
112
111
  initialArgs: e,
113
112
  argTypes: o,
114
113
  parameters: { actions: r }
115
114
  } = t;
116
- return r?.disable || !o ? {} : Object.entries(o).filter(([s, a]) => !!a.action).reduce((s, [a, c]) => (w(a, e) && (s[a] = l(typeof c.action ==
115
+ return r?.disable || !o ? {} : Object.entries(o).filter(([s, a]) => !!a.action).reduce((s, [a, c]) => (v(a, e) && (s[a] = g(typeof c.action ==
117
116
  "string" ? c.action : a)), s), {});
118
117
  }, "addActionsFromArgTypes");
119
118
 
120
119
  // src/actions/addArgs.ts
121
120
  var W = [
122
121
  T,
123
- v
122
+ w
124
123
  ];
125
124
 
126
125
  // src/actions/loaders.ts
@@ -142,13 +141,13 @@ var _ = !1, L = /* @__PURE__ */ n((t) => {
142
141
  "next/headers::cookies().delete",
143
142
  "next/headers::headers().set",
144
143
  "next/headers::headers().delete"
145
- ].some((s) => i.startsWith(s))) && l(i)(r);
144
+ ].some((s) => i.startsWith(s))) && g(i)(r);
146
145
  }), _ = !0);
147
146
  }, "logActionsWhenMockCalled"), V = [L];
148
147
 
149
148
  // src/actions/preview.ts
150
149
  var dt = /* @__PURE__ */ n(() => N({
151
- ...m,
150
+ ...l,
152
151
  ...f
153
152
  }), "default");
154
153
  export {
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
- var h = Object.create;
3
- var k = Object.defineProperty;
4
- var c = Object.getOwnPropertyDescriptor;
2
+ var c = Object.create;
3
+ var i = Object.defineProperty;
4
+ var h = Object.getOwnPropertyDescriptor;
5
5
  var n = Object.getOwnPropertyNames;
6
6
  var d = Object.getPrototypeOf, v = Object.prototype.hasOwnProperty;
7
- var u = (o, e, a, t) => {
7
+ var u = (o, e, a, r) => {
8
8
  if (e && typeof e == "object" || typeof e == "function")
9
9
  for (let l of n(e))
10
- !v.call(o, l) && l !== a && k(o, l, { get: () => e[l], enumerable: !(t = c(e, l)) || t.enumerable });
10
+ !v.call(o, l) && l !== a && i(o, l, { get: () => e[l], enumerable: !(r = h(e, l)) || r.enumerable });
11
11
  return o;
12
12
  };
13
- var i = (o, e, a) => (a = o != null ? h(d(o)) : {}, u(
13
+ var k = (o, e, a) => (a = o != null ? c(d(o)) : {}, u(
14
14
  // If the importer is in node compatibility mode or this is not an ESM
15
15
  // file that has been converted to a CommonJS file using a Babel-
16
16
  // compatible transform (i.e. "__esModule" has not been set), then set
17
17
  // "default" to the CommonJS "module.exports" for node compatibility.
18
- e || !o || !o.__esModule ? k(a, "default", { value: o, enumerable: !0 }) : a,
18
+ e || !o || !o.__esModule ? i(a, "default", { value: o, enumerable: !0 }) : a,
19
19
  o
20
20
  ));
21
21
 
@@ -24,62 +24,59 @@ 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.13",
28
- "@storybook/addon-docs": "9.0.0-alpha.13",
29
- "@storybook/addon-mdx-gfm": "9.0.0-alpha.13",
30
- "@storybook/addon-jest": "9.0.0-alpha.13",
31
- "@storybook/addon-links": "9.0.0-alpha.13",
32
- "@storybook/addon-onboarding": "9.0.0-alpha.13",
33
- "@storybook/addon-storysource": "9.0.0-alpha.13",
34
- "@storybook/addon-test": "9.0.0-alpha.13",
35
- "@storybook/addon-themes": "9.0.0-alpha.13",
36
- "@storybook/builder-vite": "9.0.0-alpha.13",
37
- "@storybook/builder-webpack5": "9.0.0-alpha.13",
38
- storybook: "9.0.0-alpha.13",
39
- "@storybook/angular": "9.0.0-alpha.13",
40
- "@storybook/ember": "9.0.0-alpha.13",
41
- "@storybook/html-vite": "9.0.0-alpha.13",
42
- "@storybook/nextjs": "9.0.0-alpha.13",
43
- "@storybook/nextjs-vite": "9.0.0-alpha.13",
44
- "@storybook/preact-vite": "9.0.0-alpha.13",
45
- "@storybook/react-native-web-vite": "9.0.0-alpha.13",
46
- "@storybook/react-vite": "9.0.0-alpha.13",
47
- "@storybook/react-webpack5": "9.0.0-alpha.13",
48
- "@storybook/server-webpack5": "9.0.0-alpha.13",
49
- "@storybook/svelte-vite": "9.0.0-alpha.13",
50
- "@storybook/svelte-webpack5": "9.0.0-alpha.13",
51
- "@storybook/sveltekit": "9.0.0-alpha.13",
52
- "@storybook/vue3-vite": "9.0.0-alpha.13",
53
- "@storybook/web-components-vite": "9.0.0-alpha.13",
54
- "@storybook/blocks": "9.0.0-alpha.13",
55
- sb: "9.0.0-alpha.13",
56
- "@storybook/cli": "9.0.0-alpha.13",
57
- "@storybook/codemod": "9.0.0-alpha.13",
58
- "@storybook/core-webpack": "9.0.0-alpha.13",
59
- "create-storybook": "9.0.0-alpha.13",
60
- "@storybook/csf-plugin": "9.0.0-alpha.13",
61
- "@storybook/react-dom-shim": "9.0.0-alpha.13",
62
- "@storybook/source-loader": "9.0.0-alpha.13",
63
- "@storybook/preset-create-react-app": "9.0.0-alpha.13",
64
- "@storybook/preset-react-webpack": "9.0.0-alpha.13",
65
- "@storybook/preset-server-webpack": "9.0.0-alpha.13",
66
- "@storybook/preset-svelte-webpack": "9.0.0-alpha.13",
67
- "@storybook/html": "9.0.0-alpha.13",
68
- "@storybook/preact": "9.0.0-alpha.13",
69
- "@storybook/react": "9.0.0-alpha.13",
70
- "@storybook/server": "9.0.0-alpha.13",
71
- "@storybook/svelte": "9.0.0-alpha.13",
72
- "@storybook/vue3": "9.0.0-alpha.13",
73
- "@storybook/web-components": "9.0.0-alpha.13"
27
+ "@storybook/addon-a11y": "9.0.0-alpha.14",
28
+ "@storybook/addon-docs": "9.0.0-alpha.14",
29
+ "@storybook/addon-jest": "9.0.0-alpha.14",
30
+ "@storybook/addon-links": "9.0.0-alpha.14",
31
+ "@storybook/addon-onboarding": "9.0.0-alpha.14",
32
+ "@storybook/addon-storysource": "9.0.0-alpha.14",
33
+ "@storybook/addon-test": "9.0.0-alpha.14",
34
+ "@storybook/addon-themes": "9.0.0-alpha.14",
35
+ "@storybook/builder-vite": "9.0.0-alpha.14",
36
+ "@storybook/builder-webpack5": "9.0.0-alpha.14",
37
+ storybook: "9.0.0-alpha.14",
38
+ "@storybook/angular": "9.0.0-alpha.14",
39
+ "@storybook/ember": "9.0.0-alpha.14",
40
+ "@storybook/html-vite": "9.0.0-alpha.14",
41
+ "@storybook/nextjs": "9.0.0-alpha.14",
42
+ "@storybook/nextjs-vite": "9.0.0-alpha.14",
43
+ "@storybook/preact-vite": "9.0.0-alpha.14",
44
+ "@storybook/react-native-web-vite": "9.0.0-alpha.14",
45
+ "@storybook/react-vite": "9.0.0-alpha.14",
46
+ "@storybook/react-webpack5": "9.0.0-alpha.14",
47
+ "@storybook/server-webpack5": "9.0.0-alpha.14",
48
+ "@storybook/svelte-vite": "9.0.0-alpha.14",
49
+ "@storybook/sveltekit": "9.0.0-alpha.14",
50
+ "@storybook/vue3-vite": "9.0.0-alpha.14",
51
+ "@storybook/web-components-vite": "9.0.0-alpha.14",
52
+ "@storybook/blocks": "9.0.0-alpha.14",
53
+ sb: "9.0.0-alpha.14",
54
+ "@storybook/cli": "9.0.0-alpha.14",
55
+ "@storybook/codemod": "9.0.0-alpha.14",
56
+ "@storybook/core-webpack": "9.0.0-alpha.14",
57
+ "create-storybook": "9.0.0-alpha.14",
58
+ "@storybook/csf-plugin": "9.0.0-alpha.14",
59
+ "@storybook/react-dom-shim": "9.0.0-alpha.14",
60
+ "@storybook/source-loader": "9.0.0-alpha.14",
61
+ "@storybook/preset-create-react-app": "9.0.0-alpha.14",
62
+ "@storybook/preset-react-webpack": "9.0.0-alpha.14",
63
+ "@storybook/preset-server-webpack": "9.0.0-alpha.14",
64
+ "@storybook/html": "9.0.0-alpha.14",
65
+ "@storybook/preact": "9.0.0-alpha.14",
66
+ "@storybook/react": "9.0.0-alpha.14",
67
+ "@storybook/server": "9.0.0-alpha.14",
68
+ "@storybook/svelte": "9.0.0-alpha.14",
69
+ "@storybook/vue3": "9.0.0-alpha.14",
70
+ "@storybook/web-components": "9.0.0-alpha.14"
74
71
  };
75
72
 
76
73
  // src/bin/index.ts
77
- var r = process.argv.slice(2);
78
- if (["dev", "build", "index"].includes(r[0]))
74
+ var t = process.argv.slice(2);
75
+ if (["dev", "build", "index"].includes(t[0]))
79
76
  require("storybook/internal/cli/bin");
80
77
  else {
81
78
  let o;
82
- if (r[0] === "init") {
79
+ if (t[0] === "init") {
83
80
  let a;
84
81
  try {
85
82
  a = require.resolve("create-storybook/package.json");
@@ -88,8 +85,8 @@ else {
88
85
  a ? JSON.parse((0, b.readFileSync)(a, "utf-8")).version === p["create-storybook"] && (o = [
89
86
  "node",
90
87
  (0, s.join)((0, s.dirname)(a), "bin", "index.cjs"),
91
- ...r.slice(1)
92
- ]) : o = ["npx", "--yes", `create-storybook@${p.storybook}`, ...r.slice(1)];
88
+ ...t.slice(1)
89
+ ]) : o = ["npx", "--yes", `create-storybook@${p.storybook}`, ...t.slice(1)];
93
90
  } else {
94
91
  let a;
95
92
  try {
@@ -97,7 +94,7 @@ else {
97
94
  } catch {
98
95
  }
99
96
  a ? JSON.parse((0, b.readFileSync)(a, "utf-8")).version === p["@storybook/cli"] && (o = ["node", (0, s.join)((0, s.dirname)(a), "bin", "\
100
- index.cjs"), ...r]) : o = ["npx", "--yes", `@storybook/cli@${p.storybook}`, ...r];
97
+ index.cjs"), ...t]) : o = ["npx", "--yes", `@storybook/cli@${p.storybook}`, ...t];
101
98
  }
102
99
  o || (console.error("Could not run storybook cli, please report this as a bug"), process.exit(1)), (0, y.spawn)(o[0], o.slice(1), { stdio: "\
103
100
  inherit", shell: !0 }).on("exit", (a) => {
package/dist/bin/index.js CHANGED
@@ -4,7 +4,7 @@ import { dirname as ESM_COMPAT_dirname } from 'node:path';
4
4
  const __filename = ESM_COMPAT_fileURLToPath(import.meta.url);
5
5
  const __dirname = ESM_COMPAT_dirname(__filename);
6
6
  const require = ESM_COMPAT_Module.createRequire(import.meta.url);
7
- var r = /* @__PURE__ */ ((a) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(a, {
7
+ var t = /* @__PURE__ */ ((a) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(a, {
8
8
  get: (l, o) => (typeof require < "u" ? require : l)[o]
9
9
  }) : a)(function(a) {
10
10
  if (typeof require < "u") return require.apply(this, arguments);
@@ -12,88 +12,85 @@ var r = /* @__PURE__ */ ((a) => typeof require < "u" ? require : typeof Proxy <
12
12
  });
13
13
 
14
14
  // src/bin/index.ts
15
- import { spawn as i } from "node:child_process";
15
+ import { spawn as k } from "node:child_process";
16
16
  import { readFileSync as p } from "node:fs";
17
- import { dirname as b, join as k } from "node:path";
17
+ import { dirname as b, join as i } from "node:path";
18
18
 
19
19
  // src/common/versions.ts
20
- var t = {
21
- "@storybook/addon-a11y": "9.0.0-alpha.13",
22
- "@storybook/addon-docs": "9.0.0-alpha.13",
23
- "@storybook/addon-mdx-gfm": "9.0.0-alpha.13",
24
- "@storybook/addon-jest": "9.0.0-alpha.13",
25
- "@storybook/addon-links": "9.0.0-alpha.13",
26
- "@storybook/addon-onboarding": "9.0.0-alpha.13",
27
- "@storybook/addon-storysource": "9.0.0-alpha.13",
28
- "@storybook/addon-test": "9.0.0-alpha.13",
29
- "@storybook/addon-themes": "9.0.0-alpha.13",
30
- "@storybook/builder-vite": "9.0.0-alpha.13",
31
- "@storybook/builder-webpack5": "9.0.0-alpha.13",
32
- storybook: "9.0.0-alpha.13",
33
- "@storybook/angular": "9.0.0-alpha.13",
34
- "@storybook/ember": "9.0.0-alpha.13",
35
- "@storybook/html-vite": "9.0.0-alpha.13",
36
- "@storybook/nextjs": "9.0.0-alpha.13",
37
- "@storybook/nextjs-vite": "9.0.0-alpha.13",
38
- "@storybook/preact-vite": "9.0.0-alpha.13",
39
- "@storybook/react-native-web-vite": "9.0.0-alpha.13",
40
- "@storybook/react-vite": "9.0.0-alpha.13",
41
- "@storybook/react-webpack5": "9.0.0-alpha.13",
42
- "@storybook/server-webpack5": "9.0.0-alpha.13",
43
- "@storybook/svelte-vite": "9.0.0-alpha.13",
44
- "@storybook/svelte-webpack5": "9.0.0-alpha.13",
45
- "@storybook/sveltekit": "9.0.0-alpha.13",
46
- "@storybook/vue3-vite": "9.0.0-alpha.13",
47
- "@storybook/web-components-vite": "9.0.0-alpha.13",
48
- "@storybook/blocks": "9.0.0-alpha.13",
49
- sb: "9.0.0-alpha.13",
50
- "@storybook/cli": "9.0.0-alpha.13",
51
- "@storybook/codemod": "9.0.0-alpha.13",
52
- "@storybook/core-webpack": "9.0.0-alpha.13",
53
- "create-storybook": "9.0.0-alpha.13",
54
- "@storybook/csf-plugin": "9.0.0-alpha.13",
55
- "@storybook/react-dom-shim": "9.0.0-alpha.13",
56
- "@storybook/source-loader": "9.0.0-alpha.13",
57
- "@storybook/preset-create-react-app": "9.0.0-alpha.13",
58
- "@storybook/preset-react-webpack": "9.0.0-alpha.13",
59
- "@storybook/preset-server-webpack": "9.0.0-alpha.13",
60
- "@storybook/preset-svelte-webpack": "9.0.0-alpha.13",
61
- "@storybook/html": "9.0.0-alpha.13",
62
- "@storybook/preact": "9.0.0-alpha.13",
63
- "@storybook/react": "9.0.0-alpha.13",
64
- "@storybook/server": "9.0.0-alpha.13",
65
- "@storybook/svelte": "9.0.0-alpha.13",
66
- "@storybook/vue3": "9.0.0-alpha.13",
67
- "@storybook/web-components": "9.0.0-alpha.13"
20
+ var r = {
21
+ "@storybook/addon-a11y": "9.0.0-alpha.14",
22
+ "@storybook/addon-docs": "9.0.0-alpha.14",
23
+ "@storybook/addon-jest": "9.0.0-alpha.14",
24
+ "@storybook/addon-links": "9.0.0-alpha.14",
25
+ "@storybook/addon-onboarding": "9.0.0-alpha.14",
26
+ "@storybook/addon-storysource": "9.0.0-alpha.14",
27
+ "@storybook/addon-test": "9.0.0-alpha.14",
28
+ "@storybook/addon-themes": "9.0.0-alpha.14",
29
+ "@storybook/builder-vite": "9.0.0-alpha.14",
30
+ "@storybook/builder-webpack5": "9.0.0-alpha.14",
31
+ storybook: "9.0.0-alpha.14",
32
+ "@storybook/angular": "9.0.0-alpha.14",
33
+ "@storybook/ember": "9.0.0-alpha.14",
34
+ "@storybook/html-vite": "9.0.0-alpha.14",
35
+ "@storybook/nextjs": "9.0.0-alpha.14",
36
+ "@storybook/nextjs-vite": "9.0.0-alpha.14",
37
+ "@storybook/preact-vite": "9.0.0-alpha.14",
38
+ "@storybook/react-native-web-vite": "9.0.0-alpha.14",
39
+ "@storybook/react-vite": "9.0.0-alpha.14",
40
+ "@storybook/react-webpack5": "9.0.0-alpha.14",
41
+ "@storybook/server-webpack5": "9.0.0-alpha.14",
42
+ "@storybook/svelte-vite": "9.0.0-alpha.14",
43
+ "@storybook/sveltekit": "9.0.0-alpha.14",
44
+ "@storybook/vue3-vite": "9.0.0-alpha.14",
45
+ "@storybook/web-components-vite": "9.0.0-alpha.14",
46
+ "@storybook/blocks": "9.0.0-alpha.14",
47
+ sb: "9.0.0-alpha.14",
48
+ "@storybook/cli": "9.0.0-alpha.14",
49
+ "@storybook/codemod": "9.0.0-alpha.14",
50
+ "@storybook/core-webpack": "9.0.0-alpha.14",
51
+ "create-storybook": "9.0.0-alpha.14",
52
+ "@storybook/csf-plugin": "9.0.0-alpha.14",
53
+ "@storybook/react-dom-shim": "9.0.0-alpha.14",
54
+ "@storybook/source-loader": "9.0.0-alpha.14",
55
+ "@storybook/preset-create-react-app": "9.0.0-alpha.14",
56
+ "@storybook/preset-react-webpack": "9.0.0-alpha.14",
57
+ "@storybook/preset-server-webpack": "9.0.0-alpha.14",
58
+ "@storybook/html": "9.0.0-alpha.14",
59
+ "@storybook/preact": "9.0.0-alpha.14",
60
+ "@storybook/react": "9.0.0-alpha.14",
61
+ "@storybook/server": "9.0.0-alpha.14",
62
+ "@storybook/svelte": "9.0.0-alpha.14",
63
+ "@storybook/vue3": "9.0.0-alpha.14",
64
+ "@storybook/web-components": "9.0.0-alpha.14"
68
65
  };
69
66
 
70
67
  // src/bin/index.ts
71
68
  var e = process.argv.slice(2);
72
69
  if (["dev", "build", "index"].includes(e[0]))
73
- r("storybook/internal/cli/bin");
70
+ t("storybook/internal/cli/bin");
74
71
  else {
75
72
  let a;
76
73
  if (e[0] === "init") {
77
74
  let o;
78
75
  try {
79
- o = r.resolve("create-storybook/package.json");
76
+ o = t.resolve("create-storybook/package.json");
80
77
  } catch {
81
78
  }
82
- o ? JSON.parse(p(o, "utf-8")).version === t["create-storybook"] && (a = [
79
+ o ? JSON.parse(p(o, "utf-8")).version === r["create-storybook"] && (a = [
83
80
  "node",
84
- k(b(o), "bin", "index.cjs"),
81
+ i(b(o), "bin", "index.cjs"),
85
82
  ...e.slice(1)
86
- ]) : a = ["npx", "--yes", `create-storybook@${t.storybook}`, ...e.slice(1)];
83
+ ]) : a = ["npx", "--yes", `create-storybook@${r.storybook}`, ...e.slice(1)];
87
84
  } else {
88
85
  let o;
89
86
  try {
90
- o = r.resolve("@storybook/cli/package.json");
87
+ o = t.resolve("@storybook/cli/package.json");
91
88
  } catch {
92
89
  }
93
- o ? JSON.parse(p(o, "utf-8")).version === t["@storybook/cli"] && (a = ["node", k(b(o), "bin", "index.cjs"), ...e]) : a = ["npx", "--yes",
94
- `@storybook/cli@${t.storybook}`, ...e];
90
+ o ? JSON.parse(p(o, "utf-8")).version === r["@storybook/cli"] && (a = ["node", i(b(o), "bin", "index.cjs"), ...e]) : a = ["npx", "--yes",
91
+ `@storybook/cli@${r.storybook}`, ...e];
95
92
  }
96
- a || (console.error("Could not run storybook cli, please report this as a bug"), process.exit(1)), i(a[0], a.slice(1), { stdio: "inherit",
93
+ a || (console.error("Could not run storybook cli, please report this as a bug"), process.exit(1)), k(a[0], a.slice(1), { stdio: "inherit",
97
94
  shell: !0 }).on("exit", (o) => {
98
95
  o != null && process.exit(o), process.exit(1);
99
96
  });