@storybook/react-native-web-vite 8.6.0-alpha.5 → 8.6.0-beta.0

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/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import { CompatibleString } from 'storybook/internal/types';
2
2
  import { FrameworkOptions as FrameworkOptions$1, StorybookConfig as StorybookConfig$1 } from '@storybook/react-vite';
3
3
  import { Options, BabelOptions } from '@vitejs/plugin-react';
4
4
  import { BabelPluginOptions } from 'vite-plugin-babel';
5
+ export { definePreview } from '@storybook/react';
5
6
 
6
7
  type FrameworkOptions = FrameworkOptions$1 & {
7
8
  pluginReactOptions?: Omit<Options, 'babel'> & {
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var src_exports={};module.exports=__toCommonJS(src_exports);
1
+ "use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var src_exports={};__export(src_exports,{definePreview:()=>import_react.definePreview});module.exports=__toCommonJS(src_exports);var import_react=require("@storybook/react");0&&(module.exports={definePreview});
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
-
1
+ export { definePreview } from '@storybook/react';
@@ -0,0 +1,10 @@
1
+ import { StorybookConfig } from '../index.js';
2
+ import 'storybook/internal/types';
3
+ import '@storybook/react-vite';
4
+ import '@vitejs/plugin-react';
5
+ import 'vite-plugin-babel';
6
+ import '@storybook/react';
7
+
8
+ declare function defineMain(config: StorybookConfig): StorybookConfig;
9
+
10
+ export { defineMain };
@@ -0,0 +1 @@
1
+ "use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var node_exports={};__export(node_exports,{defineMain:()=>defineMain});module.exports=__toCommonJS(node_exports);function defineMain(config){return config}0&&(module.exports={defineMain});
@@ -0,0 +1,3 @@
1
+ function defineMain(config){return config}
2
+
3
+ export { defineMain };
package/dist/preset.d.ts CHANGED
@@ -4,6 +4,7 @@ import 'storybook/internal/types';
4
4
  import '@storybook/react-vite';
5
5
  import '@vitejs/plugin-react';
6
6
  import 'vite-plugin-babel';
7
+ import '@storybook/react';
7
8
 
8
9
  declare function reactNativeWeb(): PluginOption;
9
10
  declare const viteFinal: StorybookConfig['viteFinal'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native-web-vite",
3
- "version": "8.6.0-alpha.5",
3
+ "version": "8.6.0-beta.0",
4
4
  "description": "Develop react-native components an isolated web environment with hot reloading.",
5
5
  "keywords": [
6
6
  "storybook"
@@ -35,6 +35,12 @@
35
35
  "import": "./dist/vite-plugin.mjs",
36
36
  "require": "./dist/vite-plugin.js"
37
37
  },
38
+ "./node": {
39
+ "types": "./dist/node/index.d.ts",
40
+ "node": "./dist/node/index.js",
41
+ "import": "./dist/node/index.mjs",
42
+ "require": "./dist/node/index.js"
43
+ },
38
44
  "./package.json": "./package.json"
39
45
  },
40
46
  "main": "dist/index.js",
@@ -57,9 +63,9 @@
57
63
  "@babel/preset-react": "^7.26.3",
58
64
  "@bunchtogether/vite-plugin-flow": "^1.0.2",
59
65
  "@joshwooding/vite-plugin-react-docgen-typescript": "0.5.0",
60
- "@storybook/builder-vite": "8.6.0-alpha.5",
61
- "@storybook/react": "8.6.0-alpha.5",
62
- "@storybook/react-vite": "8.6.0-alpha.5",
66
+ "@storybook/builder-vite": "8.6.0-beta.0",
67
+ "@storybook/react": "8.6.0-beta.0",
68
+ "@storybook/react-vite": "8.6.0-beta.0",
63
69
  "@vitejs/plugin-react": "^4.3.2",
64
70
  "vite-plugin-babel": "^1.3.0",
65
71
  "vite-plugin-commonjs": "^0.10.4",
@@ -74,7 +80,7 @@
74
80
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",
75
81
  "react-native": ">=0.74.5",
76
82
  "react-native-web": "^0.19.12",
77
- "storybook": "^8.6.0-alpha.5",
83
+ "storybook": "^8.6.0-beta.0",
78
84
  "vite": "^5.0.0 || ^6.0.0"
79
85
  },
80
86
  "engines": {
@@ -87,7 +93,8 @@
87
93
  "entries": [
88
94
  "./src/index.ts",
89
95
  "./src/preset.ts",
90
- "./src/vite-plugin.ts"
96
+ "./src/vite-plugin.ts",
97
+ "./src/node/index.ts"
91
98
  ],
92
99
  "platform": "node"
93
100
  },