@storybook/react-native 8.6.1 → 8.6.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.
package/dist/index.js CHANGED
@@ -1164,10 +1164,11 @@ function prepareStories({
1164
1164
  const exportValue = fileExports[key];
1165
1165
  if (!exportValue)
1166
1166
  return;
1167
- const name = (0, import_csf2.storyNameFromExport)(key);
1168
1167
  const title = makeTitle(filename, specifier, meta.title);
1169
1168
  if (title) {
1170
- const id = (0, import_csf2.toId)(title, name);
1169
+ const nameFromExport = (0, import_csf2.storyNameFromExport)(key);
1170
+ const id = (0, import_csf2.toId)(title, nameFromExport);
1171
+ const name = exportValue?.name || exportValue?.storyName || nameFromExport;
1171
1172
  index.entries[id] = {
1172
1173
  type: "story",
1173
1174
  id,
@@ -314,8 +314,8 @@ function withStorybook(config, options = {
314
314
  ...config.resolver,
315
315
  resolveRequest: (context, moduleName, platform) => {
316
316
  const resolveFunction = config?.resolver?.resolveRequest ? config.resolver.resolveRequest : context.resolveRequest;
317
- const isStorybookModule = moduleName.startsWith("storybook") || moduleName.startsWith("@storybook");
318
- const theContext = isStorybookModule ? {
317
+ const shouldUseCustomResolveConfig = moduleName.startsWith("storybook") || moduleName.startsWith("@storybook") || moduleName === "uuid";
318
+ const theContext = shouldUseCustomResolveConfig ? {
319
319
  ...context,
320
320
  unstable_enablePackageExports: true,
321
321
  unstable_conditionNames: ["import"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/react-native",
3
- "version": "8.6.1",
3
+ "version": "8.6.4",
4
4
  "description": "A better way to develop React Native Components for your app",
5
5
  "keywords": [
6
6
  "react",
@@ -49,8 +49,8 @@
49
49
  "@storybook/csf": "^0.1.13",
50
50
  "@storybook/global": "^5.0.0",
51
51
  "@storybook/react": "^8.6.6",
52
- "@storybook/react-native-theming": "^8.6.1",
53
- "@storybook/react-native-ui": "^8.6.1",
52
+ "@storybook/react-native-theming": "^8.6.4",
53
+ "@storybook/react-native-ui": "^8.6.4",
54
54
  "commander": "^8.2.0",
55
55
  "dedent": "^1.5.1",
56
56
  "deepmerge": "^4.3.0",
@@ -64,16 +64,16 @@
64
64
  },
65
65
  "devDependencies": {
66
66
  "@types/jest": "^29.4.3",
67
- "@types/react": "~18.3.12",
67
+ "@types/react": "~19.0.10",
68
68
  "babel-jest": "^29.7.0",
69
69
  "babel-plugin-syntax-hermes-parser": "^0.25.0",
70
70
  "jest": "^29.7.0",
71
71
  "jotai": "^2.6.2",
72
- "react": "18.3.1",
73
- "react-native": "0.76.7",
72
+ "react": "19.0.0",
73
+ "react-native": "0.79.2",
74
74
  "react-test-renderer": "^18.3.1",
75
75
  "tsup": "^7.2.0",
76
- "typescript": "^5.3.3"
76
+ "typescript": "~5.8.3"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "@gorhom/bottom-sheet": ">=4",
@@ -88,5 +88,5 @@
88
88
  "publishConfig": {
89
89
  "access": "public"
90
90
  },
91
- "gitHead": "3408db3fae500345fdf4913d87c7d31330bc8437"
91
+ "gitHead": "5e2acbea333d49887912046195384d371dfe153a"
92
92
  }