@storybook/react-native-web-vite 10.1.0-alpha.1 → 10.1.0-alpha.10
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8j9f8rmqxk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8j9f8rmqxk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8j9f8rmqxk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8j9f8rmqxk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8j9f8rmqxk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8j9f8rmqxk.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
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 {
|
|
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?:
|
|
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
|
package/dist/node/index.d.ts
CHANGED
|
@@ -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 {
|
|
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?:
|
|
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
|
package/dist/node/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8j9f8rmqxk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8j9f8rmqxk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8j9f8rmqxk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8j9f8rmqxk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8j9f8rmqxk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8j9f8rmqxk.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-
|
|
14
|
+
} from "../_node-chunks/chunk-24F3JJMY.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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8j9f8rmqxk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8j9f8rmqxk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8j9f8rmqxk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8j9f8rmqxk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8j9f8rmqxk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8j9f8rmqxk.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-
|
|
14
|
+
} from "./_node-chunks/chunk-24F3JJMY.js";
|
|
15
15
|
|
|
16
16
|
// src/preset.ts
|
|
17
17
|
import { viteFinal as reactViteFinal } from "@storybook/react-vite/preset";
|
package/dist/vite-plugin.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_8j9f8rmqxk from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_8j9f8rmqxk from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_8j9f8rmqxk from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_8j9f8rmqxk.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_8j9f8rmqxk.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_8j9f8rmqxk.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-
|
|
14
|
+
} from "./_node-chunks/chunk-24F3JJMY.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.
|
|
3
|
+
"version": "10.1.0-alpha.10",
|
|
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.
|
|
57
|
-
"@storybook/react": "10.1.0-alpha.
|
|
58
|
-
"@storybook/react-vite": "10.1.0-alpha.
|
|
59
|
-
"vite-plugin-rnw": "^0.0.
|
|
56
|
+
"@storybook/builder-vite": "10.1.0-alpha.10",
|
|
57
|
+
"@storybook/react": "10.1.0-alpha.10",
|
|
58
|
+
"@storybook/react-vite": "10.1.0-alpha.10",
|
|
59
|
+
"vite-plugin-rnw": "^0.0.8",
|
|
60
60
|
"vite-tsconfig-paths": "^5.1.4"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
@@ -68,11 +68,11 @@
|
|
|
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.
|
|
71
|
+
"storybook": "^10.1.0-alpha.10",
|
|
72
72
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
73
73
|
},
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "a8e7fd8a655c69780bc20b9749d2699e45beae17"
|
|
78
78
|
}
|