@storybook/react-native 10.5.0 → 10.5.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.
- package/dist/index.js +3 -0
- package/dist/metro/withStorybook.js +4 -1
- package/dist/repack/withStorybook.js +4 -1
- package/dist/withStorybook.js +6 -3
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -580,14 +580,17 @@ const BUILDING_BLOCK_storeSet = (buildingBlocks, store, atom, ...args) => {
|
|
|
580
580
|
};
|
|
581
581
|
const BUILDING_BLOCK_storeSub = (buildingBlocks, store, atom, listener) => {
|
|
582
582
|
const flushCallbacks = buildingBlocks[12];
|
|
583
|
+
const recomputeInvalidatedAtoms = buildingBlocks[13];
|
|
583
584
|
const mountAtom = buildingBlocks[18];
|
|
584
585
|
const unmountAtom = buildingBlocks[19];
|
|
585
586
|
const listeners = mountAtom(buildingBlocks, store, atom).l;
|
|
586
587
|
listeners.add(listener);
|
|
588
|
+
recomputeInvalidatedAtoms(buildingBlocks, store);
|
|
587
589
|
flushCallbacks(buildingBlocks, store);
|
|
588
590
|
return () => {
|
|
589
591
|
listeners.delete(listener);
|
|
590
592
|
unmountAtom(buildingBlocks, store, atom);
|
|
593
|
+
recomputeInvalidatedAtoms(buildingBlocks, store);
|
|
591
594
|
flushCallbacks(buildingBlocks, store);
|
|
592
595
|
};
|
|
593
596
|
};
|
|
@@ -88,7 +88,10 @@ function withStorybook(config, options = {
|
|
|
88
88
|
const { configPath = path.resolve(process.cwd(), "./.rnstorybook"), websockets, useJs = false, enabled = true, docTools = true, liteMode = false, experimental_mcp = false } = options;
|
|
89
89
|
const disableTelemetry = (0, storybook_internal_common.optionalEnvToBoolean)(process.env.STORYBOOK_DISABLE_TELEMETRY);
|
|
90
90
|
const server = require_env_tools.envVariableToBoolean(process.env.STORYBOOK_SERVER, true);
|
|
91
|
-
if (!disableTelemetry && enabled)
|
|
91
|
+
if (!disableTelemetry && enabled) {
|
|
92
|
+
(0, storybook_internal_telemetry.setTelemetryEnabled)(true);
|
|
93
|
+
(0, storybook_internal_telemetry.telemetry)("dev", {}, { configDir: configPath }).catch((e) => {});
|
|
94
|
+
}
|
|
92
95
|
if (!enabled) return {
|
|
93
96
|
...config,
|
|
94
97
|
resolver: {
|
|
@@ -57,7 +57,10 @@ var StorybookPlugin = class {
|
|
|
57
57
|
this.applyDisabled(compiler, configPath);
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
-
if (!require_env_tools.envVariableToBoolean(process.env.STORYBOOK_DISABLE_TELEMETRY, false) && enabled)
|
|
60
|
+
if (!require_env_tools.envVariableToBoolean(process.env.STORYBOOK_DISABLE_TELEMETRY, false) && enabled) {
|
|
61
|
+
(0, storybook_internal_telemetry.setTelemetryEnabled)(true);
|
|
62
|
+
(0, storybook_internal_telemetry.telemetry)("dev", {}, { configDir: configPath }).catch((e) => {});
|
|
63
|
+
}
|
|
61
64
|
this.applyEnabled(compiler, {
|
|
62
65
|
configPath,
|
|
63
66
|
websockets,
|
package/dist/withStorybook.js
CHANGED
|
@@ -119,11 +119,14 @@ function withStorybook(config, options = {}) {
|
|
|
119
119
|
const server = require_env_tools.envVariableToBoolean(process.env.STORYBOOK_SERVER, true);
|
|
120
120
|
const disableUI = require_env_tools.envVariableToBoolean(process.env.STORYBOOK_DISABLE_UI, options.disableUI ?? false);
|
|
121
121
|
const settings = { ...options };
|
|
122
|
-
if (!disableTelemetry && enabled) (0, storybook_internal_telemetry.telemetry)("dev", {}).catch((e) => {});
|
|
123
|
-
if (!server) settings.experimental_mcp = false;
|
|
124
|
-
if (disableUI) settings.docTools = false;
|
|
125
122
|
const defaultConfigPath = path.resolve(process.cwd(), "./.rnstorybook");
|
|
126
123
|
const configPath = options.configPath || defaultConfigPath;
|
|
124
|
+
if (!disableTelemetry && enabled) {
|
|
125
|
+
(0, storybook_internal_telemetry.setTelemetryEnabled)(true);
|
|
126
|
+
(0, storybook_internal_telemetry.telemetry)("dev", {}, { configDir: configPath }).catch((e) => {});
|
|
127
|
+
}
|
|
128
|
+
if (!server) settings.experimental_mcp = false;
|
|
129
|
+
if (disableUI) settings.docTools = false;
|
|
127
130
|
const websocketsOption = options.websockets;
|
|
128
131
|
const resolvedWs = require_env_tools.loadWebsocketEnvOverrides(websocketsOption);
|
|
129
132
|
const appEntryPoint = resolveEntryPoint();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-native",
|
|
3
|
-
"version": "10.5.
|
|
3
|
+
"version": "10.5.2",
|
|
4
4
|
"description": "A better way to develop React Native Components for your app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@storybook/mcp": "^0.8.0",
|
|
48
|
-
"@storybook/react": "^10.5.
|
|
49
|
-
"@storybook/react-native-theming": "^10.5.
|
|
50
|
-
"@storybook/react-native-ui": "^10.5.
|
|
51
|
-
"@storybook/react-native-ui-common": "^10.5.
|
|
48
|
+
"@storybook/react": "^10.5.2",
|
|
49
|
+
"@storybook/react-native-theming": "^10.5.2",
|
|
50
|
+
"@storybook/react-native-ui": "^10.5.2",
|
|
51
|
+
"@storybook/react-native-ui-common": "^10.5.2",
|
|
52
52
|
"@tmcp/adapter-valibot": "^0.1.6",
|
|
53
53
|
"@tmcp/transport-http": "^0.8.6",
|
|
54
54
|
"commander": "^14.0.2",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"setimmediate": "^1.0.5",
|
|
61
61
|
"tmcp": "^1.19.4",
|
|
62
62
|
"valibot": "^1.4.2",
|
|
63
|
-
"ws": "^8.21.
|
|
63
|
+
"ws": "^8.21.1"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@babel/core": "^7.29.7",
|
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
"@types/jest": "^29.5.13",
|
|
69
69
|
"@types/react": "~19.2.14",
|
|
70
70
|
"babel-jest": "^29.7.0",
|
|
71
|
-
"babel-preset-expo": "^57.0.
|
|
71
|
+
"babel-preset-expo": "^57.0.3",
|
|
72
72
|
"jest": "^29.7.0",
|
|
73
|
-
"jest-expo": "~57.0.
|
|
74
|
-
"jotai": "^2.20.
|
|
73
|
+
"jest-expo": "~57.0.2",
|
|
74
|
+
"jotai": "^2.20.2",
|
|
75
75
|
"react": "19.2.3",
|
|
76
76
|
"react-native": "0.86.0",
|
|
77
|
-
"storybook": "^10.5.
|
|
77
|
+
"storybook": "^10.5.2",
|
|
78
78
|
"sucrase": "^3.35.1",
|
|
79
79
|
"test-renderer": "^0.15.0",
|
|
80
|
-
"tsdown": "^0.22.
|
|
80
|
+
"tsdown": "^0.22.12",
|
|
81
81
|
"typescript": "~6.0.3"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"react": "*",
|
|
86
86
|
"react-native": ">=0.72.0",
|
|
87
87
|
"react-native-gesture-handler": ">=2",
|
|
88
|
-
"react-native-reanimated": "
|
|
89
|
-
"react-native-safe-area-context": "
|
|
88
|
+
"react-native-reanimated": "4.5.1",
|
|
89
|
+
"react-native-safe-area-context": "5.8.0",
|
|
90
90
|
"storybook": ">=10 || ^10"
|
|
91
91
|
},
|
|
92
92
|
"peerDependenciesMeta": {
|