@storybook/react-vite 10.0.0-beta.6 → 10.0.0-beta.7

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.
@@ -0,0 +1,17 @@
1
+ import CJS_COMPAT_NODE_URL_fw7ivptd9c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_fw7ivptd9c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_fw7ivptd9c from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_fw7ivptd9c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_fw7ivptd9c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_fw7ivptd9c.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ var __defProp = Object.defineProperty;
13
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
14
+
15
+ export {
16
+ __name
17
+ };
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_afp655905fv from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_afp655905fv from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_afp655905fv from "node:module";
1
+ import CJS_COMPAT_NODE_URL_fw7ivptd9c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_fw7ivptd9c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_fw7ivptd9c from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_afp655905fv.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_afp655905fv.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_afp655905fv.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_fw7ivptd9c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_fw7ivptd9c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_fw7ivptd9c.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "./chunk-TCDJRK2N.js";
14
+ } from "./chunk-P7BLP2PE.js";
15
15
 
16
16
  // src/plugins/react-docgen.ts
17
17
  import { existsSync } from "node:fs";
package/dist/index.d.ts CHANGED
@@ -31,6 +31,14 @@ type StorybookConfigFramework = {
31
31
  options: BuilderOptions;
32
32
  };
33
33
  };
34
+ features?: StorybookConfig$1['features'] & {
35
+ /**
36
+ * Enable the experimental `.test` function in CSF Next
37
+ *
38
+ * @see https://storybook.js.org/docs/10/api/main-config/main-config-features#experimentalTestSyntax
39
+ */
40
+ experimentalTestSyntax?: boolean;
41
+ };
34
42
  };
35
43
  type TypescriptOptions = TypescriptOptions$1 & {
36
44
  /**
@@ -29,6 +29,14 @@ type StorybookConfigFramework = {
29
29
  options: BuilderOptions;
30
30
  };
31
31
  };
32
+ features?: StorybookConfig$1['features'] & {
33
+ /**
34
+ * Enable the experimental `.test` function in CSF Next
35
+ *
36
+ * @see https://storybook.js.org/docs/10/api/main-config/main-config-features#experimentalTestSyntax
37
+ */
38
+ experimentalTestSyntax?: boolean;
39
+ };
32
40
  };
33
41
  type TypescriptOptions = TypescriptOptions$1 & {
34
42
  /**
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_afp655905fv from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_afp655905fv from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_afp655905fv from "node:module";
1
+ import CJS_COMPAT_NODE_URL_fw7ivptd9c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_fw7ivptd9c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_fw7ivptd9c from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_afp655905fv.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_afp655905fv.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_afp655905fv.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_fw7ivptd9c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_fw7ivptd9c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_fw7ivptd9c.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "../_node-chunks/chunk-TCDJRK2N.js";
14
+ } from "../_node-chunks/chunk-P7BLP2PE.js";
15
15
 
16
16
  // src/node/index.ts
17
17
  function defineMain(config) {
package/dist/preset.d.ts CHANGED
@@ -29,6 +29,14 @@ type StorybookConfigFramework = {
29
29
  options: BuilderOptions;
30
30
  };
31
31
  };
32
+ features?: StorybookConfig$1['features'] & {
33
+ /**
34
+ * Enable the experimental `.test` function in CSF Next
35
+ *
36
+ * @see https://storybook.js.org/docs/10/api/main-config/main-config-features#experimentalTestSyntax
37
+ */
38
+ experimentalTestSyntax?: boolean;
39
+ };
32
40
  };
33
41
  type TypescriptOptions = TypescriptOptions$1 & {
34
42
  /**
package/dist/preset.js CHANGED
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_afp655905fv from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_afp655905fv from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_afp655905fv from "node:module";
1
+ import CJS_COMPAT_NODE_URL_fw7ivptd9c from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_fw7ivptd9c from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_fw7ivptd9c from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_afp655905fv.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_afp655905fv.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_afp655905fv.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_fw7ivptd9c.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_fw7ivptd9c.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_fw7ivptd9c.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
12
  import {
13
13
  __name
14
- } from "./_node-chunks/chunk-TCDJRK2N.js";
14
+ } from "./_node-chunks/chunk-P7BLP2PE.js";
15
15
 
16
16
  // src/preset.ts
17
17
  var core = {
@@ -41,7 +41,7 @@ var viteFinal = /* @__PURE__ */ __name(async (config, { presets }) => {
41
41
  );
42
42
  }
43
43
  if (typeof reactDocgenOption === "string") {
44
- const { reactDocgen } = await import("./_node-chunks/react-docgen-JKRXB2LI.js");
44
+ const { reactDocgen } = await import("./_node-chunks/react-docgen-LL4AKV4Z.js");
45
45
  plugins.unshift(
46
46
  // If react-docgen is specified, use it for everything, otherwise only use it for non-typescript files
47
47
  await reactDocgen({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-vite",
3
- "version": "10.0.0-beta.6",
3
+ "version": "10.0.0-beta.7",
4
4
  "description": "Storybook for React and Vite: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -55,8 +55,8 @@
55
55
  "dependencies": {
56
56
  "@joshwooding/vite-plugin-react-docgen-typescript": "0.6.1",
57
57
  "@rollup/pluginutils": "^5.0.2",
58
- "@storybook/builder-vite": "10.0.0-beta.6",
59
- "@storybook/react": "10.0.0-beta.6",
58
+ "@storybook/builder-vite": "10.0.0-beta.7",
59
+ "@storybook/react": "10.0.0-beta.7",
60
60
  "empathic": "^2.0.0",
61
61
  "magic-string": "^0.30.0",
62
62
  "react-docgen": "^8.0.0",
@@ -71,7 +71,7 @@
71
71
  "peerDependencies": {
72
72
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
73
73
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
74
- "storybook": "^10.0.0-beta.6",
74
+ "storybook": "^10.0.0-beta.7",
75
75
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
76
76
  },
77
77
  "publishConfig": {
@@ -1,17 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_afp655905fv from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_afp655905fv from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_afp655905fv from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_afp655905fv.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_afp655905fv.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_afp655905fv.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- var __defProp = Object.defineProperty;
13
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
14
-
15
- export {
16
- __name
17
- };