@storybook/react-native-web-vite 10.1.0-alpha.7 → 10.1.0-alpha.8

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_cxejqz6n3j from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_cxejqz6n3j from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_cxejqz6n3j from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_cxejqz6n3j.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_cxejqz6n3j.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_cxejqz6n3j.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
+ };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { CompatibleString } from 'storybook/internal/types';
2
2
  import { FrameworkOptions as FrameworkOptions$1, StorybookConfig as StorybookConfig$1 } from '@storybook/react-vite';
3
- import { Options, BabelOptions } from 'vite-plugin-rnw';
3
+ import { RnwOptions } from 'vite-plugin-rnw';
4
4
  export * from '@storybook/react';
5
5
  export { __definePreview as definePreview } from '@storybook/react';
6
6
 
@@ -13,9 +13,7 @@ type FrameworkOptions = FrameworkOptions$1 & {
13
13
  * @example {modulesToTranspile: ['my-library']}
14
14
  */
15
15
  modulesToTranspile?: string[];
16
- pluginReactOptions?: Omit<Options, 'babel'> & {
17
- babel?: BabelOptions;
18
- };
16
+ pluginReactOptions?: RnwOptions;
19
17
  /**
20
18
  * @deprecated These options will be ignored. Use `pluginReactOptions` now for everything and
21
19
  * override includes in order to transpile node_modules pluginBabelOptions will be removed in
@@ -1,6 +1,6 @@
1
1
  import { CompatibleString } from 'storybook/internal/types';
2
2
  import { StorybookConfig as StorybookConfig$1, FrameworkOptions as FrameworkOptions$1 } from '@storybook/react-vite';
3
- import { Options, BabelOptions } from 'vite-plugin-rnw';
3
+ import { RnwOptions } from 'vite-plugin-rnw';
4
4
 
5
5
  type FrameworkOptions = FrameworkOptions$1 & {
6
6
  /**
@@ -11,9 +11,7 @@ type FrameworkOptions = FrameworkOptions$1 & {
11
11
  * @example {modulesToTranspile: ['my-library']}
12
12
  */
13
13
  modulesToTranspile?: string[];
14
- pluginReactOptions?: Omit<Options, 'babel'> & {
15
- babel?: BabelOptions;
16
- };
14
+ pluginReactOptions?: RnwOptions;
17
15
  /**
18
16
  * @deprecated These options will be ignored. Use `pluginReactOptions` now for everything and
19
17
  * override includes in order to transpile node_modules pluginBabelOptions will be removed in
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_zzxc6rvcngn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_zzxc6rvcngn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_zzxc6rvcngn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_cxejqz6n3j from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_cxejqz6n3j from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_cxejqz6n3j from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_zzxc6rvcngn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_zzxc6rvcngn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_zzxc6rvcngn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_cxejqz6n3j.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_cxejqz6n3j.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_cxejqz6n3j.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-XWCNTFE7.js";
14
+ } from "../_node-chunks/chunk-IK273UST.js";
15
15
 
16
16
  // src/node/index.ts
17
17
  function defineMain(config) {
package/dist/preset.js CHANGED
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_zzxc6rvcngn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_zzxc6rvcngn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_zzxc6rvcngn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_cxejqz6n3j from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_cxejqz6n3j from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_cxejqz6n3j from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_zzxc6rvcngn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_zzxc6rvcngn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_zzxc6rvcngn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_cxejqz6n3j.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_cxejqz6n3j.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_cxejqz6n3j.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-XWCNTFE7.js";
14
+ } from "./_node-chunks/chunk-IK273UST.js";
15
15
 
16
16
  // src/preset.ts
17
17
  import { viteFinal as reactViteFinal } from "@storybook/react-vite/preset";
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_zzxc6rvcngn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_zzxc6rvcngn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_zzxc6rvcngn from "node:module";
1
+ import CJS_COMPAT_NODE_URL_cxejqz6n3j from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_cxejqz6n3j from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_cxejqz6n3j from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_zzxc6rvcngn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_zzxc6rvcngn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_zzxc6rvcngn.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_cxejqz6n3j.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_cxejqz6n3j.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_cxejqz6n3j.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-XWCNTFE7.js";
14
+ } from "./_node-chunks/chunk-IK273UST.js";
15
15
 
16
16
  // src/vite-plugin.ts
17
17
  import { rnw } from "vite-plugin-rnw";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native-web-vite",
3
- "version": "10.1.0-alpha.7",
3
+ "version": "10.1.0-alpha.8",
4
4
  "description": "Storybook for React Native Web and Vite: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -53,10 +53,10 @@
53
53
  "prep": "jiti ../../../scripts/build/build-package.ts"
54
54
  },
55
55
  "dependencies": {
56
- "@storybook/builder-vite": "10.1.0-alpha.7",
57
- "@storybook/react": "10.1.0-alpha.7",
58
- "@storybook/react-vite": "10.1.0-alpha.7",
59
- "vite-plugin-rnw": "^0.0.6",
56
+ "@storybook/builder-vite": "10.1.0-alpha.8",
57
+ "@storybook/react": "10.1.0-alpha.8",
58
+ "@storybook/react-vite": "10.1.0-alpha.8",
59
+ "vite-plugin-rnw": "^0.0.8",
60
60
  "vite-tsconfig-paths": "^5.1.4"
61
61
  },
62
62
  "devDependencies": {
@@ -68,7 +68,7 @@
68
68
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
69
69
  "react-native": ">=0.74.5",
70
70
  "react-native-web": "^0.19.12 || ^0.20.0 || ^0.21.0",
71
- "storybook": "^10.1.0-alpha.7",
71
+ "storybook": "^10.1.0-alpha.8",
72
72
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
73
73
  },
74
74
  "publishConfig": {
@@ -1,17 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_zzxc6rvcngn from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_zzxc6rvcngn from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_zzxc6rvcngn from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_zzxc6rvcngn.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_zzxc6rvcngn.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_zzxc6rvcngn.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
- };