@storybook/react-native 9.0.17 → 9.0.18
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.
|
@@ -41,6 +41,11 @@ interface WithStorybookOptions {
|
|
|
41
41
|
* Whether to include doc tools in the storybook.requires file. Defaults to true.
|
|
42
42
|
*/
|
|
43
43
|
docTools?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Whether to use lite mode for the storybook. Defaults to false.
|
|
46
|
+
* This will mock out the default storybook ui so you don't need to install all its dependencies like reanimated etc.
|
|
47
|
+
*/
|
|
48
|
+
liteMode?: boolean;
|
|
44
49
|
}
|
|
45
50
|
/**
|
|
46
51
|
* Configures Metro bundler to work with Storybook in React Native.
|
|
@@ -266,7 +266,8 @@ function withStorybook(config, options = {
|
|
|
266
266
|
enabled: true,
|
|
267
267
|
useJs: false,
|
|
268
268
|
onDisabledRemoveStorybook: false,
|
|
269
|
-
docTools: true
|
|
269
|
+
docTools: true,
|
|
270
|
+
liteMode: false
|
|
270
271
|
}) {
|
|
271
272
|
const {
|
|
272
273
|
configPath,
|
|
@@ -274,7 +275,8 @@ function withStorybook(config, options = {
|
|
|
274
275
|
websockets,
|
|
275
276
|
useJs = false,
|
|
276
277
|
onDisabledRemoveStorybook = false,
|
|
277
|
-
docTools = true
|
|
278
|
+
docTools = true,
|
|
279
|
+
liteMode = false
|
|
278
280
|
} = options;
|
|
279
281
|
if (!enabled) {
|
|
280
282
|
if (onDisabledRemoveStorybook) {
|
|
@@ -340,6 +342,11 @@ function withStorybook(config, options = {
|
|
|
340
342
|
type: "empty"
|
|
341
343
|
};
|
|
342
344
|
}
|
|
345
|
+
if (liteMode && resolveResult?.filePath?.includes?.("@storybook/react-native-ui") && !resolveResult?.filePath?.includes?.("@storybook/react-native-ui-lite") && !resolveResult?.filePath?.includes?.("@storybook/react-native-ui-common")) {
|
|
346
|
+
return {
|
|
347
|
+
type: "empty"
|
|
348
|
+
};
|
|
349
|
+
}
|
|
343
350
|
return resolveResult;
|
|
344
351
|
}
|
|
345
352
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-native",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.18",
|
|
4
4
|
"description": "A better way to develop React Native Components for your app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@storybook/global": "^5.0.0",
|
|
50
50
|
"@storybook/react": "^9.0.17",
|
|
51
|
-
"@storybook/react-native-theming": "^9.0.
|
|
52
|
-
"@storybook/react-native-ui": "^9.0.
|
|
53
|
-
"@storybook/react-native-ui-common": "^9.0.
|
|
51
|
+
"@storybook/react-native-theming": "^9.0.18",
|
|
52
|
+
"@storybook/react-native-ui": "^9.0.18",
|
|
53
|
+
"@storybook/react-native-ui-common": "^9.0.18",
|
|
54
54
|
"commander": "^8.2.0",
|
|
55
55
|
"dedent": "^1.5.1",
|
|
56
56
|
"deepmerge": "^4.3.0",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"publishConfig": {
|
|
105
105
|
"access": "public"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "c457a5ba3cf6f91afac0e35b9911b27c8c9fde33"
|
|
108
108
|
}
|