Skip to content

Commit e67db5b

Browse files
committed
fix: use beta version
1 parent 5f253d2 commit e67db5b

File tree

10 files changed

+1348
-1269
lines changed

10 files changed

+1348
-1269
lines changed

examples/expo-example/.storybook-web/main.ts

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import type { StorybookConfig } from '@storybook/react-webpack5';
1+
import type { StorybookConfig } from '@storybook/react-native-web-vite';
22
import { join, dirname } from 'path';
3+
34
/**
45
* This function is used to resolve the absolute path of a package.
56
* It is needed in projects that use Yarn PnP or are set up within a monorepo.
@@ -14,17 +15,21 @@ type ServerStorybookConfig = StorybookConfig & {
1415

1516
const main: ServerStorybookConfig = {
1617
stories: ['../components/**/*.stories.?(ts|tsx|js|jsx)'],
18+
1719
addons: [
18-
getAbsolutePath('@storybook/addon-webpack5-compiler-babel'),
1920
getAbsolutePath('@storybook/addon-essentials'),
2021
getAbsolutePath('@storybook/addon-interactions'),
21-
'@storybook/addon-react-native-web',
2222
// note why does this break with get absolute?
2323
'@storybook/addon-react-native-server',
2424
'storybook-addon-deep-controls',
2525
],
26+
27+
framework: {
28+
name: '@storybook/react-native-web-vite',
29+
options: {},
30+
},
31+
2632
// logLevel: 'debug',
27-
framework: getAbsolutePath('@storybook/react-webpack5'),
2833

2934
reactNativeServerOptions: {
3035
host: 'localhost',

examples/expo-example/components/ControlExamples/Date/Date.test.tsx

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import { render, screen } from '@testing-library/react-native';
2-
import { composeStories } from '@storybook/react';
3-
import * as DateStories from './Date.stories';
4-
5-
const { Basic } = composeStories(DateStories);
2+
import * as stories from './Date.stories';
63

4+
const { Basic } = stories;
75
test('date story renders', () => {
8-
render(<Basic />);
6+
// @ts-ignore
7+
render(<Basic.Component />);
98

109
const date = new Date(1983, 1, 25);
1110

examples/expo-example/package.json

+10-12
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,21 @@
2525
"@react-native-async-storage/async-storage": "1.23.1",
2626
"@react-native-community/datetimepicker": "8.2.0",
2727
"@react-native-community/slider": "4.5.5",
28-
"@storybook/addon-essentials": "0.0.0-pr-30197-sha-de13df08",
29-
"@storybook/addon-interactions": "0.0.0-pr-30197-sha-de13df08",
30-
"@storybook/addon-links": "0.0.0-pr-30197-sha-de13df08",
28+
"@storybook/addon-essentials": "8.6.0-beta.0",
29+
"@storybook/addon-interactions": "8.6.0-beta.0",
30+
"@storybook/addon-links": "8.6.0-beta.0",
3131
"@storybook/addon-ondevice-actions": "^8.5.5-alpha.3",
3232
"@storybook/addon-ondevice-backgrounds": "^8.5.5-alpha.3",
3333
"@storybook/addon-ondevice-controls": "^8.5.5-alpha.3",
3434
"@storybook/addon-ondevice-notes": "^8.5.5-alpha.3",
35-
"@storybook/addon-react-native-server": "0.0.6",
36-
"@storybook/addon-react-native-web": "^0.0.26",
37-
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
38-
"@storybook/blocks": "0.0.0-pr-30197-sha-de13df08",
39-
"@storybook/builder-webpack5": "0.0.0-pr-30197-sha-de13df08",
35+
"@storybook/addon-react-native-server": "^0.0.6",
36+
"@storybook/blocks": "8.6.0-beta.0",
4037
"@storybook/global": "^5.0.0",
41-
"@storybook/react": "0.0.0-pr-30197-sha-de13df08",
38+
"@storybook/react": "8.6.0-beta.0",
4239
"@storybook/react-native": "^8.5.5-alpha.3",
4340
"@storybook/react-native-theming": "^8.5.5-alpha.3",
44-
"@storybook/react-webpack5": "0.0.0-pr-30197-sha-de13df08",
45-
"@storybook/test": "0.0.0-pr-30197-sha-de13df08",
41+
"@storybook/react-native-web-vite": "^8.5.5-alpha.3",
42+
"@storybook/test": "8.6.0-beta.0",
4643
"expo": "~52.0.11",
4744
"history": "^5.3.0",
4845
"querystring": "^0.2.1",
@@ -55,8 +52,9 @@
5552
"react-native-svg": "15.8.0",
5653
"react-native-web": "~0.19.13",
5754
"react-router": "^6.26.2",
58-
"storybook": "0.0.0-pr-30197-sha-de13df08",
55+
"storybook": "8.6.0-beta.0",
5956
"storybook-addon-deep-controls": "^0.9.2",
57+
"vite": "^6.1.0",
6058
"ws": "^8.18.0"
6159
},
6260
"devDependencies": {

packages/ondevice-actions/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"prepare": "tsc"
2828
},
2929
"dependencies": {
30-
"@storybook/addon-actions": "0.0.0-pr-30197-sha-de13df08",
31-
"@storybook/core": "0.0.0-pr-30197-sha-de13df08",
30+
"@storybook/addon-actions": "8.6.0-beta.0",
31+
"@storybook/core": "8.6.0-beta.0",
3232
"@storybook/global": "^5.0.0",
3333
"fast-deep-equal": "^2.0.1"
3434
},

packages/ondevice-backgrounds/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"dev": "tsc --watch"
3333
},
3434
"dependencies": {
35-
"@storybook/core": "0.0.0-pr-30197-sha-de13df08",
35+
"@storybook/core": "8.6.0-beta.0",
3636
"@storybook/react-native-theming": "^8.5.5-alpha.3"
3737
},
3838
"devDependencies": {

packages/ondevice-controls/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"copyimages": "cross-env-shell cp -r src/components/color-picker/resources dist/components/color-picker/resources"
3131
},
3232
"dependencies": {
33-
"@storybook/addon-controls": "0.0.0-pr-30197-sha-de13df08",
34-
"@storybook/core": "0.0.0-pr-30197-sha-de13df08",
33+
"@storybook/addon-controls": "8.6.0-beta.0",
34+
"@storybook/core": "8.6.0-beta.0",
3535
"@storybook/react-native-theming": "^8.5.5-alpha.3",
3636
"@storybook/react-native-ui": "^8.5.5-alpha.3",
3737
"deep-equal": "^1.0.1",

packages/ondevice-notes/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dev": "tsc --watch"
3030
},
3131
"dependencies": {
32-
"@storybook/core": "0.0.0-pr-30197-sha-de13df08",
32+
"@storybook/core": "8.6.0-beta.0",
3333
"@storybook/react-native-theming": "^8.5.5-alpha.3",
3434
"react-native-markdown-display": "^7.0.2"
3535
},

packages/react-native-ui/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
"typescript": "^5.3.3"
5959
},
6060
"dependencies": {
61-
"@storybook/core": "0.0.0-pr-30197-sha-de13df08",
62-
"@storybook/react": "0.0.0-pr-30197-sha-de13df08",
61+
"@storybook/core": "8.6.0-beta.0",
62+
"@storybook/react": "8.6.0-beta.0",
6363
"@storybook/react-native-theming": "^8.5.5-alpha.3",
6464
"fuse.js": "^7.0.0",
6565
"memoizerific": "^1.11.3",

packages/react-native/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
"test:update": "jest --updateSnapshot"
4646
},
4747
"dependencies": {
48-
"@storybook/core": "0.0.0-pr-30197-sha-de13df08",
48+
"@storybook/core": "8.6.0-beta.0",
4949
"@storybook/csf": "^0.1.13",
5050
"@storybook/global": "^5.0.0",
51-
"@storybook/react": "0.0.0-pr-30197-sha-de13df08",
51+
"@storybook/react": "8.6.0-beta.0",
5252
"@storybook/react-native-theming": "^8.5.5-alpha.3",
5353
"@storybook/react-native-ui": "^8.5.5-alpha.3",
5454
"commander": "^8.2.0",
@@ -57,7 +57,7 @@
5757
"prettier": "^2.4.1",
5858
"react-native-url-polyfill": "^2.0.0",
5959
"setimmediate": "^1.0.5",
60-
"storybook": "0.0.0-pr-30197-sha-de13df08",
60+
"storybook": "8.6.0-beta.0",
6161
"type-fest": "~2.19",
6262
"util": "^0.12.4",
6363
"ws": "^8.18.0"

0 commit comments

Comments
 (0)