@storybook/react-native 9.1.3 → 9.1.4
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.
|
@@ -259,6 +259,8 @@ export const view${useJs ? "" : ": View"} = global.view;
|
|
|
259
259
|
var path = __toESM(require("path"));
|
|
260
260
|
var import_generate = __toESM(require_generate());
|
|
261
261
|
var import_ws = require("ws");
|
|
262
|
+
var import_common = require("storybook/internal/common");
|
|
263
|
+
var import_telemetry = require("storybook/internal/telemetry");
|
|
262
264
|
function withStorybook(config, options = {
|
|
263
265
|
enabled: true,
|
|
264
266
|
useJs: false,
|
|
@@ -275,6 +277,12 @@ function withStorybook(config, options = {
|
|
|
275
277
|
docTools = true,
|
|
276
278
|
liteMode = false
|
|
277
279
|
} = options;
|
|
280
|
+
const disableTelemetry = (0, import_common.optionalEnvToBoolean)(process.env.STORYBOOK_DISABLE_TELEMETRY);
|
|
281
|
+
if (!disableTelemetry && enabled) {
|
|
282
|
+
const event = process.env.NODE_ENV === "production" ? "build" : "dev";
|
|
283
|
+
(0, import_telemetry.telemetry)(event, {}).catch((e) => {
|
|
284
|
+
});
|
|
285
|
+
}
|
|
278
286
|
if (!enabled) {
|
|
279
287
|
if (onDisabledRemoveStorybook) {
|
|
280
288
|
return {
|
|
@@ -270,6 +270,8 @@ module.exports = __toCommonJS(withStorybookConfig_exports);
|
|
|
270
270
|
var path = __toESM(require("path"));
|
|
271
271
|
var import_generate = __toESM(require_generate());
|
|
272
272
|
var import_ws = require("ws");
|
|
273
|
+
var import_common = require("storybook/internal/common");
|
|
274
|
+
var import_telemetry = require("storybook/internal/telemetry");
|
|
273
275
|
function withStorybookConfig(config, options = {
|
|
274
276
|
useJs: false,
|
|
275
277
|
removeStorybook: false,
|
|
@@ -285,6 +287,12 @@ function withStorybookConfig(config, options = {
|
|
|
285
287
|
docTools = true,
|
|
286
288
|
liteMode = false
|
|
287
289
|
} = options;
|
|
290
|
+
const disableTelemetry = (0, import_common.optionalEnvToBoolean)(process.env.STORYBOOK_DISABLE_TELEMETRY);
|
|
291
|
+
if (!disableTelemetry && !removeStorybook) {
|
|
292
|
+
const event = process.env.NODE_ENV === "production" ? "build" : "dev";
|
|
293
|
+
(0, import_telemetry.telemetry)(event, {}).catch((e) => {
|
|
294
|
+
});
|
|
295
|
+
}
|
|
288
296
|
if (removeStorybook) {
|
|
289
297
|
return {
|
|
290
298
|
...config,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/metro/withStorybookConfig.js');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-native",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.4",
|
|
4
4
|
"description": "A better way to develop React Native Components for your app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@storybook/global": "^5.0.0",
|
|
51
|
-
"@storybook/react": "^9.1.
|
|
52
|
-
"@storybook/react-native-theming": "^9.1.
|
|
53
|
-
"@storybook/react-native-ui": "^9.1.
|
|
54
|
-
"@storybook/react-native-ui-common": "^9.1.
|
|
51
|
+
"@storybook/react": "^9.1.8",
|
|
52
|
+
"@storybook/react-native-theming": "^9.1.4",
|
|
53
|
+
"@storybook/react-native-ui": "^9.1.4",
|
|
54
|
+
"@storybook/react-native-ui-common": "^9.1.4",
|
|
55
55
|
"commander": "^8.2.0",
|
|
56
56
|
"dedent": "^1.5.1",
|
|
57
57
|
"deepmerge": "^4.3.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"jotai": "^2.6.2",
|
|
72
72
|
"react": "19.1.0",
|
|
73
73
|
"react-native": "0.81.4",
|
|
74
|
-
"storybook": "^9.1.
|
|
74
|
+
"storybook": "^9.1.8",
|
|
75
75
|
"tsup": "^8.5.0",
|
|
76
76
|
"typescript": "~5.9.2",
|
|
77
77
|
"universal-test-renderer": "^0.6.0"
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"publishConfig": {
|
|
106
106
|
"access": "public"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "cc20e5ee9d9e7584eaefe71cc76e25dec5110a94"
|
|
109
109
|
}
|