@storybook/react-native 9.1.1-alpha.1 → 9.1.2-alpha.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.js +16 -13
- package/jest.config.js +2 -0
- package/package.json +12 -12
- package/scripts/generate.test.js +0 -2
- package/setup.js +6 -0
- package/template/cli/stories/Button.stories.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -1251,19 +1251,22 @@ function prepareStories({
|
|
|
1251
1251
|
});
|
|
1252
1252
|
});
|
|
1253
1253
|
const sortableStories = Object.values(index.entries);
|
|
1254
|
-
(
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
acc
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1254
|
+
if (storySort) {
|
|
1255
|
+
(0, import_preview_api2.sortStoriesV7)(
|
|
1256
|
+
sortableStories,
|
|
1257
|
+
storySort,
|
|
1258
|
+
Object.values(index.entries).map((entry) => entry.importPath)
|
|
1259
|
+
);
|
|
1260
|
+
const sorted = sortableStories.reduce(
|
|
1261
|
+
(acc, item) => {
|
|
1262
|
+
acc[item.id] = item;
|
|
1263
|
+
return acc;
|
|
1264
|
+
},
|
|
1265
|
+
{}
|
|
1266
|
+
);
|
|
1267
|
+
return { index: { v: 5, entries: sorted }, importMap };
|
|
1268
|
+
}
|
|
1269
|
+
return { index, importMap };
|
|
1267
1270
|
}
|
|
1268
1271
|
var getProjectAnnotations = (view, annotations) => async () => (0, import_preview_api2.composeConfigs)([
|
|
1269
1272
|
{
|
package/jest.config.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/** @type {import('jest').Config} */
|
|
2
2
|
const config = {
|
|
3
3
|
preset: 'jest-expo',
|
|
4
|
+
setupFiles: ['<rootDir>/setup.js'],
|
|
5
|
+
|
|
4
6
|
transformIgnorePatterns: [
|
|
5
7
|
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@sentry/react-native|native-base|react-native-svg|storybook/.*|@storybook/.*|uuid)',
|
|
6
8
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-native",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.2-alpha.0",
|
|
4
4
|
"description": "A better way to develop React Native Components for your app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@storybook/global": "^5.0.0",
|
|
51
51
|
"@storybook/react": "^9.1.2",
|
|
52
|
-
"@storybook/react-native-theming": "^9.1.
|
|
53
|
-
"@storybook/react-native-ui": "^9.1.
|
|
54
|
-
"@storybook/react-native-ui-common": "^9.1.
|
|
52
|
+
"@storybook/react-native-theming": "^9.1.2-alpha.0",
|
|
53
|
+
"@storybook/react-native-ui": "^9.1.2-alpha.0",
|
|
54
|
+
"@storybook/react-native-ui-common": "^9.1.2-alpha.0",
|
|
55
55
|
"commander": "^8.2.0",
|
|
56
56
|
"dedent": "^1.5.1",
|
|
57
57
|
"deepmerge": "^4.3.0",
|
|
@@ -63,18 +63,18 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@types/jest": "^29.4.3",
|
|
66
|
-
"@types/react": "~19.
|
|
66
|
+
"@types/react": "~19.1.10",
|
|
67
67
|
"babel-jest": "^29.7.0",
|
|
68
68
|
"babel-preset-expo": "^12.0.9",
|
|
69
69
|
"jest": "^29.7.0",
|
|
70
|
-
"jest-expo": "~
|
|
70
|
+
"jest-expo": "~54.0.1",
|
|
71
71
|
"jotai": "^2.6.2",
|
|
72
|
-
"react": "19.
|
|
73
|
-
"react-native": "0.
|
|
74
|
-
"react-test-renderer": "^19.1.0",
|
|
72
|
+
"react": "19.1.0",
|
|
73
|
+
"react-native": "0.81.0",
|
|
75
74
|
"storybook": "^9.1.2",
|
|
76
75
|
"tsup": "^8.5.0",
|
|
77
|
-
"typescript": "~5.
|
|
76
|
+
"typescript": "~5.9.2",
|
|
77
|
+
"universal-test-renderer": "^0.6.0"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"@gorhom/bottom-sheet": ">=4",
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
"engines": {
|
|
103
|
-
"node": ">=
|
|
103
|
+
"node": ">=20"
|
|
104
104
|
},
|
|
105
105
|
"publishConfig": {
|
|
106
106
|
"access": "public"
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "6fb9a81aa734b83cac60ad4074745bec2d69fad7"
|
|
109
109
|
}
|
package/scripts/generate.test.js
CHANGED
package/setup.js
ADDED
|
@@ -17,7 +17,7 @@ const meta = {
|
|
|
17
17
|
],
|
|
18
18
|
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
|
19
19
|
tags: ['autodocs'],
|
|
20
|
-
// Use `fn` to spy on the onPress arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#
|
|
20
|
+
// Use `fn` to spy on the onPress arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#story-args
|
|
21
21
|
args: { onPress: fn() },
|
|
22
22
|
} satisfies Meta<typeof Button>;
|
|
23
23
|
|