diff --git a/examples/expo-example/package.json b/examples/expo-example/package.json index 928b450d03..09c7911790 100644 --- a/examples/expo-example/package.json +++ b/examples/expo-example/package.json @@ -1,6 +1,6 @@ { "name": "expo-example", - "version": "8.4.1", + "version": "8.4.2-alpha.2", "private": true, "main": "index.js", "scripts": { @@ -28,10 +28,10 @@ "@storybook/addon-essentials": "^8.4.2", "@storybook/addon-interactions": "^8.4.2", "@storybook/addon-links": "^8.4.2", - "@storybook/addon-ondevice-actions": "^8.4.1", - "@storybook/addon-ondevice-backgrounds": "^8.4.1", - "@storybook/addon-ondevice-controls": "^8.4.1", - "@storybook/addon-ondevice-notes": "^8.4.1", + "@storybook/addon-ondevice-actions": "^8.4.2-alpha.2", + "@storybook/addon-ondevice-backgrounds": "^8.4.2-alpha.2", + "@storybook/addon-ondevice-controls": "^8.4.2-alpha.2", + "@storybook/addon-ondevice-notes": "^8.4.2-alpha.2", "@storybook/addon-react-native-server": "0.0.6", "@storybook/addon-react-native-web": "^0.0.22", "@storybook/addon-webpack5-compiler-babel": "^3.0.3", @@ -39,8 +39,8 @@ "@storybook/builder-webpack5": "^8.4.2", "@storybook/global": "^5.0.0", "@storybook/react": "^8.4.2", - "@storybook/react-native": "^8.4.1", - "@storybook/react-native-theming": "^8.4.1", + "@storybook/react-native": "^8.4.2-alpha.2", + "@storybook/react-native-theming": "^8.4.2-alpha.2", "@storybook/react-webpack5": "^8.4.2", "@storybook/test": "^8.4.2", "expo": "52.0.0-preview.21", diff --git a/lerna.json b/lerna.json index 8a6f95624e..ca96c32f10 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { "npmClient": "yarn", "registry": "https://registry.npmjs.org", - "version": "8.4.1" + "version": "8.4.2-alpha.2" } \ No newline at end of file diff --git a/packages/ondevice-actions/package.json b/packages/ondevice-actions/package.json index 13a69a82fa..e9312f535e 100644 --- a/packages/ondevice-actions/package.json +++ b/packages/ondevice-actions/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-actions", - "version": "8.4.1", + "version": "8.4.2-alpha.2", "description": "Action Logger addon for react-native storybook", "keywords": [ "storybook" diff --git a/packages/ondevice-backgrounds/package.json b/packages/ondevice-backgrounds/package.json index 333cfdc82b..3248923f74 100644 --- a/packages/ondevice-backgrounds/package.json +++ b/packages/ondevice-backgrounds/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-backgrounds", - "version": "8.4.1", + "version": "8.4.2-alpha.2", "description": "A react-native storybook addon to show different backgrounds for your preview", "keywords": [ "addon", @@ -33,7 +33,7 @@ }, "dependencies": { "@storybook/core": "^8.4.2", - "@storybook/react-native-theming": "^8.4.1" + "@storybook/react-native-theming": "^8.4.2-alpha.2" }, "devDependencies": { "typescript": "^5.3.3" diff --git a/packages/ondevice-controls/package.json b/packages/ondevice-controls/package.json index 2312d4a26b..f263ba167d 100644 --- a/packages/ondevice-controls/package.json +++ b/packages/ondevice-controls/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-controls", - "version": "8.4.1", + "version": "8.4.2-alpha.2", "description": "Display storybook controls on your device.", "keywords": [ "addon", @@ -32,8 +32,8 @@ "dependencies": { "@storybook/addon-controls": "^8.4.2", "@storybook/core": "^8.4.2", - "@storybook/react-native-theming": "^8.4.1", - "@storybook/react-native-ui": "^8.4.1", + "@storybook/react-native-theming": "^8.4.2-alpha.2", + "@storybook/react-native-ui": "^8.4.2-alpha.2", "deep-equal": "^1.0.1", "prop-types": "^15.7.2", "react-native-modal-datetime-picker": "^14.0.0", diff --git a/packages/ondevice-notes/package.json b/packages/ondevice-notes/package.json index fce0d22385..35c4a396e3 100644 --- a/packages/ondevice-notes/package.json +++ b/packages/ondevice-notes/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/addon-ondevice-notes", - "version": "8.4.1", + "version": "8.4.2-alpha.2", "description": "Write notes for your react-native Storybook stories.", "keywords": [ "addon", @@ -30,7 +30,7 @@ }, "dependencies": { "@storybook/core": "^8.4.2", - "@storybook/react-native-theming": "^8.4.1", + "@storybook/react-native-theming": "^8.4.2-alpha.2", "react-native-markdown-display": "^7.0.2" }, "devDependencies": { diff --git a/packages/react-native-theming/package.json b/packages/react-native-theming/package.json index b1b917d79d..c40848baba 100644 --- a/packages/react-native-theming/package.json +++ b/packages/react-native-theming/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-native-theming", - "version": "8.4.1", + "version": "8.4.2-alpha.2", "description": "A wrapper library around emotion 11 to provide theming support for react-native storybook", "keywords": [ "react", diff --git a/packages/react-native-ui/package.json b/packages/react-native-ui/package.json index 29463005da..4f3fb9af58 100644 --- a/packages/react-native-ui/package.json +++ b/packages/react-native-ui/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-native-ui", - "version": "8.4.1", + "version": "8.4.2-alpha.2", "description": "ui components for react native storybook", "keywords": [ "react", @@ -60,7 +60,7 @@ "dependencies": { "@storybook/core": "^8.4.2", "@storybook/react": "^8.4.2", - "@storybook/react-native-theming": "^8.4.1", + "@storybook/react-native-theming": "^8.4.2-alpha.2", "fuse.js": "^7.0.0", "memoizerific": "^1.11.3", "polished": "^4.3.1", diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 0766feb5c4..1c72759416 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@storybook/react-native", - "version": "8.4.1", + "version": "8.4.2-alpha.2", "description": "A better way to develop React Native Components for your app", "keywords": [ "react", @@ -49,8 +49,8 @@ "@storybook/csf": "^0.1.1", "@storybook/global": "^5.0.0", "@storybook/react": "^8.4.2", - "@storybook/react-native-theming": "^8.4.1", - "@storybook/react-native-ui": "^8.4.1", + "@storybook/react-native-theming": "^8.4.2-alpha.2", + "@storybook/react-native-ui": "^8.4.2-alpha.2", "chokidar": "^3.5.1", "commander": "^8.2.0", "dedent": "^1.5.1", diff --git a/packages/react-native/scripts/common.js b/packages/react-native/scripts/common.js index 4637ddccdc..95385b8ca4 100644 --- a/packages/react-native/scripts/common.js +++ b/packages/react-native/scripts/common.js @@ -60,7 +60,7 @@ function getPreviewExists({ configPath }) { function resolveAddonFile(addon, file, extensions = ['js', 'mjs', 'ts']) { try { - const basePath = path.join(addon, file); + const basePath = `${addon}/${file}`; require.resolve(basePath); @@ -69,7 +69,7 @@ function resolveAddonFile(addon, file, extensions = ['js', 'mjs', 'ts']) { for (const ext of extensions) { try { - const filePath = path.join(addon, `${file}.${ext}`); + const filePath = `${addon}/${file}.${ext}`; require.resolve(filePath); diff --git a/yarn.lock b/yarn.lock index 0c30dbc39c..454027a3d2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5140,7 +5140,7 @@ __metadata: languageName: node linkType: hard -"@storybook/addon-ondevice-actions@npm:^8.4.1, @storybook/addon-ondevice-actions@workspace:packages/ondevice-actions": +"@storybook/addon-ondevice-actions@npm:^8.4.2-alpha.2, @storybook/addon-ondevice-actions@workspace:packages/ondevice-actions": version: 0.0.0-use.local resolution: "@storybook/addon-ondevice-actions@workspace:packages/ondevice-actions" dependencies: @@ -5155,12 +5155,12 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addon-ondevice-backgrounds@npm:^8.4.1, @storybook/addon-ondevice-backgrounds@workspace:packages/ondevice-backgrounds": +"@storybook/addon-ondevice-backgrounds@npm:^8.4.2-alpha.2, @storybook/addon-ondevice-backgrounds@workspace:packages/ondevice-backgrounds": version: 0.0.0-use.local resolution: "@storybook/addon-ondevice-backgrounds@workspace:packages/ondevice-backgrounds" dependencies: "@storybook/core": "npm:^8.4.2" - "@storybook/react-native-theming": "npm:^8.4.1" + "@storybook/react-native-theming": "npm:^8.4.2-alpha.2" typescript: "npm:^5.3.3" peerDependencies: react: "*" @@ -5168,14 +5168,14 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addon-ondevice-controls@npm:^8.4.1, @storybook/addon-ondevice-controls@workspace:packages/ondevice-controls": +"@storybook/addon-ondevice-controls@npm:^8.4.2-alpha.2, @storybook/addon-ondevice-controls@workspace:packages/ondevice-controls": version: 0.0.0-use.local resolution: "@storybook/addon-ondevice-controls@workspace:packages/ondevice-controls" dependencies: "@storybook/addon-controls": "npm:^8.4.2" "@storybook/core": "npm:^8.4.2" - "@storybook/react-native-theming": "npm:^8.4.1" - "@storybook/react-native-ui": "npm:^8.4.1" + "@storybook/react-native-theming": "npm:^8.4.2-alpha.2" + "@storybook/react-native-ui": "npm:^8.4.2-alpha.2" cross-env: "npm:^7.0.3" deep-equal: "npm:^1.0.1" prop-types: "npm:^15.7.2" @@ -5192,12 +5192,12 @@ __metadata: languageName: unknown linkType: soft -"@storybook/addon-ondevice-notes@npm:^8.4.1, @storybook/addon-ondevice-notes@workspace:packages/ondevice-notes": +"@storybook/addon-ondevice-notes@npm:^8.4.2-alpha.2, @storybook/addon-ondevice-notes@workspace:packages/ondevice-notes": version: 0.0.0-use.local resolution: "@storybook/addon-ondevice-notes@workspace:packages/ondevice-notes" dependencies: "@storybook/core": "npm:^8.4.2" - "@storybook/react-native-theming": "npm:^8.4.1" + "@storybook/react-native-theming": "npm:^8.4.2-alpha.2" react-native-markdown-display: "npm:^7.0.2" typescript: "npm:^5.3.3" peerDependencies: @@ -5506,7 +5506,7 @@ __metadata: languageName: node linkType: hard -"@storybook/react-native-theming@npm:^8.4.1, @storybook/react-native-theming@workspace:packages/react-native-theming": +"@storybook/react-native-theming@npm:^8.4.2-alpha.2, @storybook/react-native-theming@workspace:packages/react-native-theming": version: 0.0.0-use.local resolution: "@storybook/react-native-theming@workspace:packages/react-native-theming" dependencies: @@ -5520,13 +5520,13 @@ __metadata: languageName: unknown linkType: soft -"@storybook/react-native-ui@npm:^8.4.1, @storybook/react-native-ui@workspace:packages/react-native-ui": +"@storybook/react-native-ui@npm:^8.4.2-alpha.2, @storybook/react-native-ui@workspace:packages/react-native-ui": version: 0.0.0-use.local resolution: "@storybook/react-native-ui@workspace:packages/react-native-ui" dependencies: "@storybook/core": "npm:^8.4.2" "@storybook/react": "npm:^8.4.2" - "@storybook/react-native-theming": "npm:^8.4.1" + "@storybook/react-native-theming": "npm:^8.4.2-alpha.2" "@types/jest": "npm:^29.4.3" "@types/react": "npm:~18.3.12" babel-jest: "npm:^29.7.0" @@ -5550,7 +5550,7 @@ __metadata: languageName: unknown linkType: soft -"@storybook/react-native@npm:^8.4.1, @storybook/react-native@workspace:packages/react-native": +"@storybook/react-native@npm:^8.4.2-alpha.2, @storybook/react-native@workspace:packages/react-native": version: 0.0.0-use.local resolution: "@storybook/react-native@workspace:packages/react-native" dependencies: @@ -5558,8 +5558,8 @@ __metadata: "@storybook/csf": "npm:^0.1.1" "@storybook/global": "npm:^5.0.0" "@storybook/react": "npm:^8.4.2" - "@storybook/react-native-theming": "npm:^8.4.1" - "@storybook/react-native-ui": "npm:^8.4.1" + "@storybook/react-native-theming": "npm:^8.4.2-alpha.2" + "@storybook/react-native-ui": "npm:^8.4.2-alpha.2" "@types/jest": "npm:^29.4.3" "@types/react": "npm:~18.3.12" babel-jest: "npm:^29.7.0" @@ -9970,10 +9970,10 @@ __metadata: "@storybook/addon-essentials": "npm:^8.4.2" "@storybook/addon-interactions": "npm:^8.4.2" "@storybook/addon-links": "npm:^8.4.2" - "@storybook/addon-ondevice-actions": "npm:^8.4.1" - "@storybook/addon-ondevice-backgrounds": "npm:^8.4.1" - "@storybook/addon-ondevice-controls": "npm:^8.4.1" - "@storybook/addon-ondevice-notes": "npm:^8.4.1" + "@storybook/addon-ondevice-actions": "npm:^8.4.2-alpha.2" + "@storybook/addon-ondevice-backgrounds": "npm:^8.4.2-alpha.2" + "@storybook/addon-ondevice-controls": "npm:^8.4.2-alpha.2" + "@storybook/addon-ondevice-notes": "npm:^8.4.2-alpha.2" "@storybook/addon-react-native-server": "npm:0.0.6" "@storybook/addon-react-native-web": "npm:^0.0.22" "@storybook/addon-webpack5-compiler-babel": "npm:^3.0.3" @@ -9981,8 +9981,8 @@ __metadata: "@storybook/builder-webpack5": "npm:^8.4.2" "@storybook/global": "npm:^5.0.0" "@storybook/react": "npm:^8.4.2" - "@storybook/react-native": "npm:^8.4.1" - "@storybook/react-native-theming": "npm:^8.4.1" + "@storybook/react-native": "npm:^8.4.2-alpha.2" + "@storybook/react-native-theming": "npm:^8.4.2-alpha.2" "@storybook/react-webpack5": "npm:^8.4.2" "@storybook/test": "npm:^8.4.2" "@testing-library/react-native": "npm:12.4.3"