@storybook/react-native-web-vite 10.6.0-alpha.0 → 10.6.0-alpha.2

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,32 @@
1
+ import { CompatibleString } from "storybook/internal/types";
2
+ import { FrameworkOptions, StorybookConfig } from "@storybook/react-vite";
3
+ import { RnwOptions } from "vite-plugin-rnw";
4
+
5
+ //#region code/frameworks/react-native-web-vite/.dts-emit/code/frameworks/react-native-web-vite/src/types.d.ts
6
+ type FrameworkOptions$1 = FrameworkOptions & {
7
+ /**
8
+ * Many react native libraries aren't transpiled for the web, add them to this list to make sure
9
+ * they get transpiled before attempting to load them on the web. We will automatically add
10
+ * `react-native`, `@react-native`, `expo`, and `@expo` to this list.
11
+ *
12
+ * @example {modulesToTranspile: ['my-library']}
13
+ */
14
+ modulesToTranspile?: string[];
15
+ pluginReactOptions?: RnwOptions;
16
+ /**
17
+ * @deprecated These options will be ignored. Use `pluginReactOptions` now for everything and
18
+ * override includes in order to transpile node_modules pluginBabelOptions will be removed in
19
+ * the next major version. To configure babel, use `pluginReactOptions.babel`.
20
+ */
21
+ pluginBabelOptions?: Record<string, unknown>;
22
+ };
23
+ type FrameworkName = CompatibleString<'@storybook/react-native-web-vite'>;
24
+ /** The interface for Storybook configuration in `main.ts` files. */
25
+ type StorybookConfig$1 = Omit<StorybookConfig, 'framework'> & {
26
+ framework: FrameworkName | {
27
+ name: FrameworkName;
28
+ options: FrameworkOptions$1;
29
+ };
30
+ };
31
+ //#endregion
32
+ export { StorybookConfig$1 as n, FrameworkOptions$1 as t };
package/dist/index.d.ts CHANGED
@@ -1,33 +1,4 @@
1
- import { CompatibleString } from 'storybook/internal/types';
2
- import { FrameworkOptions as FrameworkOptions$1, StorybookConfig as StorybookConfig$1 } from '@storybook/react-vite';
3
- import { RnwOptions } from 'vite-plugin-rnw';
4
- export * from '@storybook/react';
5
- export { __definePreview as definePreview } from '@storybook/react';
6
-
7
- type FrameworkOptions = FrameworkOptions$1 & {
8
- /**
9
- * Many react native libraries aren't transpiled for the web, add them to this list to make sure
10
- * they get transpiled before attempting to load them on the web. We will automatically add
11
- * `react-native`, `@react-native`, `expo`, and `@expo` to this list.
12
- *
13
- * @example {modulesToTranspile: ['my-library']}
14
- */
15
- modulesToTranspile?: string[];
16
- pluginReactOptions?: RnwOptions;
17
- /**
18
- * @deprecated These options will be ignored. Use `pluginReactOptions` now for everything and
19
- * override includes in order to transpile node_modules pluginBabelOptions will be removed in
20
- * the next major version. To configure babel, use `pluginReactOptions.babel`.
21
- */
22
- pluginBabelOptions?: Record<string, unknown>;
23
- };
24
- type FrameworkName = CompatibleString<'@storybook/react-native-web-vite'>;
25
- /** The interface for Storybook configuration in `main.ts` files. */
26
- type StorybookConfig = Omit<StorybookConfig$1, 'framework'> & {
27
- framework: FrameworkName | {
28
- name: FrameworkName;
29
- options: FrameworkOptions;
30
- };
31
- };
32
-
33
- export type { FrameworkOptions, StorybookConfig };
1
+ import { n as StorybookConfig, t as FrameworkOptions } from "./chunk-CJg_ZCWZ.js";
2
+ import { __definePreview as definePreview } from "@storybook/react";
3
+ export * from "@storybook/react";
4
+ export { type FrameworkOptions, type StorybookConfig, definePreview };
@@ -1,33 +1,6 @@
1
- import { CompatibleString } from 'storybook/internal/types';
2
- import { StorybookConfig as StorybookConfig$1, FrameworkOptions as FrameworkOptions$1 } from '@storybook/react-vite';
3
- import { RnwOptions } from 'vite-plugin-rnw';
4
-
5
- type FrameworkOptions = FrameworkOptions$1 & {
6
- /**
7
- * Many react native libraries aren't transpiled for the web, add them to this list to make sure
8
- * they get transpiled before attempting to load them on the web. We will automatically add
9
- * `react-native`, `@react-native`, `expo`, and `@expo` to this list.
10
- *
11
- * @example {modulesToTranspile: ['my-library']}
12
- */
13
- modulesToTranspile?: string[];
14
- pluginReactOptions?: RnwOptions;
15
- /**
16
- * @deprecated These options will be ignored. Use `pluginReactOptions` now for everything and
17
- * override includes in order to transpile node_modules pluginBabelOptions will be removed in
18
- * the next major version. To configure babel, use `pluginReactOptions.babel`.
19
- */
20
- pluginBabelOptions?: Record<string, unknown>;
21
- };
22
- type FrameworkName = CompatibleString<'@storybook/react-native-web-vite'>;
23
- /** The interface for Storybook configuration in `main.ts` files. */
24
- type StorybookConfig = Omit<StorybookConfig$1, 'framework'> & {
25
- framework: FrameworkName | {
26
- name: FrameworkName;
27
- options: FrameworkOptions;
28
- };
29
- };
1
+ import { n as StorybookConfig } from "../chunk-CJg_ZCWZ.js";
30
2
 
3
+ //#region code/frameworks/react-native-web-vite/.dts-emit/code/frameworks/react-native-web-vite/src/node/index.d.ts
31
4
  declare function defineMain(config: StorybookConfig): StorybookConfig;
32
-
33
- export { type StorybookConfig, defineMain };
5
+ //#endregion
6
+ export { type StorybookConfig, defineMain };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_zm00gqu23ar from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_zm00gqu23ar from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_zm00gqu23ar from "node:module";
1
+ import CJS_COMPAT_NODE_URL_zsv5en15kn from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_zsv5en15kn from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_zsv5en15kn from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_zm00gqu23ar.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_zm00gqu23ar.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_zm00gqu23ar.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_zsv5en15kn.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_zsv5en15kn.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_zsv5en15kn.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/dist/preset.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_zm00gqu23ar from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_zm00gqu23ar from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_zm00gqu23ar from "node:module";
1
+ import CJS_COMPAT_NODE_URL_zsv5en15kn from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_zsv5en15kn from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_zsv5en15kn from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_zm00gqu23ar.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_zm00gqu23ar.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_zm00gqu23ar.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_zsv5en15kn.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_zsv5en15kn.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_zsv5en15kn.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_zm00gqu23ar from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_zm00gqu23ar from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_zm00gqu23ar from "node:module";
1
+ import CJS_COMPAT_NODE_URL_zsv5en15kn from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_zsv5en15kn from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_zsv5en15kn from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_zm00gqu23ar.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_zm00gqu23ar.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_zm00gqu23ar.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_zsv5en15kn.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_zsv5en15kn.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_zsv5en15kn.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native-web-vite",
3
- "version": "10.6.0-alpha.0",
3
+ "version": "10.6.0-alpha.2",
4
4
  "description": "Storybook for React Native Web and Vite: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -51,22 +51,22 @@
51
51
  "!src/**/*"
52
52
  ],
53
53
  "dependencies": {
54
- "@storybook/builder-vite": "10.6.0-alpha.0",
55
- "@storybook/react": "10.6.0-alpha.0",
56
- "@storybook/react-vite": "10.6.0-alpha.0",
54
+ "@storybook/builder-vite": "10.6.0-alpha.2",
55
+ "@storybook/react": "10.6.0-alpha.2",
56
+ "@storybook/react-vite": "10.6.0-alpha.2",
57
57
  "vite-plugin-rnw": "^0.0.11",
58
58
  "vite-tsconfig-paths": "^6.1.1"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/node": "^22.19.1",
62
- "typescript": "^5.9.3"
62
+ "typescript": "^6.0.3"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
66
66
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
67
67
  "react-native": ">=0.74.5",
68
68
  "react-native-web": "^0.19.12 || ^0.20.0 || ^0.21.0",
69
- "storybook": "^10.6.0-alpha.0",
69
+ "storybook": "^10.6.0-alpha.2",
70
70
  "vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
71
71
  },
72
72
  "publishConfig": {
@@ -17,7 +17,7 @@ export const Page = () => {
17
17
  />
18
18
 
19
19
  <View style={styles.section}>
20
- <Text role="heading" style={styles.h2}>
20
+ <Text role="heading" aria-level={2} style={styles.h2}>
21
21
  Pages in Storybook
22
22
  </Text>
23
23
 
@@ -17,7 +17,7 @@ export const Page = () => {
17
17
  />
18
18
 
19
19
  <View style={styles.section}>
20
- <Text role="heading" style={styles.h2}>
20
+ <Text role="heading" aria-level={2} style={styles.h2}>
21
21
  Pages in Storybook
22
22
  </Text>
23
23
  <Text style={styles.p}>