@storybook/react-native 7.6.13 → 7.6.15
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/V6.d.ts +2 -2
- package/dist/{View-bd441663.d.ts → View-425d6066.d.ts} +1 -1
- package/dist/{index.d-da6c1de4.d.ts → index.d-5b1baa07.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -0
- package/dist/preview.d.ts +1 -1
- package/package.json +17 -16
- package/scripts/watcher.js +20 -1
package/dist/V6.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { P as Params } from './View-
|
|
2
|
+
import { P as Params } from './View-425d6066.js';
|
|
3
3
|
import { ClientApi } from '@storybook/preview-api';
|
|
4
|
-
import { L as LoaderFunction, A as Addon_StoryApi } from './index.d-
|
|
4
|
+
import { L as LoaderFunction, A as Addon_StoryApi } from './index.d-5b1baa07.js';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import { ReactRenderer } from '@storybook/react';
|
|
7
7
|
export { Theme, darkTheme, theme } from '@storybook/react-native-theming';
|
|
@@ -3,7 +3,7 @@ import { StoryContext } from '@storybook/csf';
|
|
|
3
3
|
import { PreviewWithSelection } from '@storybook/preview-web';
|
|
4
4
|
import { ReactRenderer } from '@storybook/react';
|
|
5
5
|
import { Theme } from '@storybook/react-native-theming';
|
|
6
|
-
import { a as StoryIndex, P as PreparedStory } from './index.d-
|
|
6
|
+
import { a as StoryIndex, P as PreparedStory } from './index.d-5b1baa07.js';
|
|
7
7
|
import { Channel } from '@storybook/channels';
|
|
8
8
|
|
|
9
9
|
interface Storage {
|
|
@@ -2926,7 +2926,7 @@ interface DirectoryMapping {
|
|
|
2926
2926
|
to: string;
|
|
2927
2927
|
}
|
|
2928
2928
|
interface Presets {
|
|
2929
|
-
apply(extension: 'typescript', config: TypescriptOptions
|
|
2929
|
+
apply(extension: 'typescript', config: Partial<TypescriptOptions>, args?: Options): Promise<Partial<TypescriptOptions>>;
|
|
2930
2930
|
apply(extension: 'framework', config?: {}, args?: any): Promise<Preset>;
|
|
2931
2931
|
apply(extension: 'babel', config?: {}, args?: any): Promise<TransformOptions>;
|
|
2932
2932
|
apply(extension: 'swc', config?: {}, args?: any): Promise<Options$2>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as NormalizedStoriesSpecifier, S as StorybookConfig$1 } from './index.d-
|
|
1
|
+
import { N as NormalizedStoriesSpecifier, S as StorybookConfig$1 } from './index.d-5b1baa07.js';
|
|
2
2
|
export { Theme, darkTheme, theme } from '@storybook/react-native-theming';
|
|
3
|
-
import { V as View } from './View-
|
|
3
|
+
import { V as View } from './View-425d6066.js';
|
|
4
4
|
import 'file-system-cache';
|
|
5
5
|
import '@babel/core';
|
|
6
6
|
import 'http';
|
package/dist/index.js
CHANGED
package/dist/preview.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _storybook_docs_tools from '@storybook/docs-tools';
|
|
2
|
-
import { R as Renderer, b as StoryContextForEnhancers, c as Args, d as StrictArgTypes } from './index.d-
|
|
2
|
+
import { R as Renderer, b as StoryContextForEnhancers, c as Args, d as StrictArgTypes } from './index.d-5b1baa07.js';
|
|
3
3
|
import 'file-system-cache';
|
|
4
4
|
import '@babel/core';
|
|
5
5
|
import 'http';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react-native",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.15",
|
|
4
4
|
"description": "A better way to develop React Native Components for your app",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"dev": "ts-node ./buildscripts/gentsdev.ts && tsup --watch",
|
|
36
36
|
"prepare": "rm -rf dist/ && tsup",
|
|
37
|
-
"test": "jest"
|
|
37
|
+
"test": "jest",
|
|
38
|
+
"test:ci": "jest"
|
|
38
39
|
},
|
|
39
40
|
"jest": {
|
|
40
41
|
"modulePathIgnorePatterns": [
|
|
@@ -51,19 +52,19 @@
|
|
|
51
52
|
"preset": "react-native"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
54
|
-
"@storybook/channels": "^7.6.
|
|
55
|
-
"@storybook/client-logger": "^7.6.
|
|
56
|
-
"@storybook/core-client": "^7.6.
|
|
57
|
-
"@storybook/core-common": "^7.6.
|
|
58
|
-
"@storybook/core-events": "^7.6.
|
|
55
|
+
"@storybook/channels": "^7.6.13",
|
|
56
|
+
"@storybook/client-logger": "^7.6.13",
|
|
57
|
+
"@storybook/core-client": "^7.6.13",
|
|
58
|
+
"@storybook/core-common": "^7.6.13",
|
|
59
|
+
"@storybook/core-events": "^7.6.13",
|
|
59
60
|
"@storybook/csf": "^0.1.1",
|
|
60
|
-
"@storybook/docs-tools": "^7.6.
|
|
61
|
+
"@storybook/docs-tools": "^7.6.13",
|
|
61
62
|
"@storybook/global": "^5.0.0",
|
|
62
|
-
"@storybook/manager-api": "^7.6.
|
|
63
|
-
"@storybook/preview-api": "^7.6.
|
|
64
|
-
"@storybook/preview-web": "^7.6.
|
|
65
|
-
"@storybook/react": "^7.6.
|
|
66
|
-
"@storybook/react-native-theming": "^7.6.
|
|
63
|
+
"@storybook/manager-api": "^7.6.13",
|
|
64
|
+
"@storybook/preview-api": "^7.6.13",
|
|
65
|
+
"@storybook/preview-web": "^7.6.13",
|
|
66
|
+
"@storybook/react": "^7.6.13",
|
|
67
|
+
"@storybook/react-native-theming": "^7.6.15",
|
|
67
68
|
"chokidar": "^3.5.1",
|
|
68
69
|
"commander": "^8.2.0",
|
|
69
70
|
"dedent": "^1.5.1",
|
|
@@ -75,11 +76,11 @@
|
|
|
75
76
|
"util": "^0.12.4"
|
|
76
77
|
},
|
|
77
78
|
"devDependencies": {
|
|
78
|
-
"@storybook/types": "^7.6.
|
|
79
|
+
"@storybook/types": "^7.6.13",
|
|
79
80
|
"@types/jest": "^29.4.3",
|
|
80
81
|
"@types/react": "~18.2.14",
|
|
81
82
|
"babel-jest": "^29.4.3",
|
|
82
|
-
"jest": "^29.
|
|
83
|
+
"jest": "^29.7.0",
|
|
83
84
|
"jotai": "^2.6.2",
|
|
84
85
|
"react-test-renderer": "18.2.0",
|
|
85
86
|
"ts-node": "^10.9.1",
|
|
@@ -97,5 +98,5 @@
|
|
|
97
98
|
"publishConfig": {
|
|
98
99
|
"access": "public"
|
|
99
100
|
},
|
|
100
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "92d1598f2141dfe424426aa24b09744813551735"
|
|
101
102
|
}
|
package/scripts/watcher.js
CHANGED
|
@@ -6,6 +6,15 @@ const { writeRequires, getMain, getFilePathExtension } = require('./loader');
|
|
|
6
6
|
const { getArguments } = require('./handle-args');
|
|
7
7
|
|
|
8
8
|
const args = getArguments();
|
|
9
|
+
|
|
10
|
+
if (!args.v6Store) {
|
|
11
|
+
console.log(
|
|
12
|
+
"in v7 you don't need the watcher anymore, if you are using v6 compat mode then pass the -v6 flag"
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
process.exit(0);
|
|
16
|
+
}
|
|
17
|
+
|
|
9
18
|
const log = console.log.bind(console);
|
|
10
19
|
|
|
11
20
|
const mainExt = getFilePathExtension(args, 'main');
|
|
@@ -17,6 +26,8 @@ if (previewExt) {
|
|
|
17
26
|
watchPaths.push(`./preview.${previewExt}`);
|
|
18
27
|
}
|
|
19
28
|
|
|
29
|
+
console.log(watchPaths);
|
|
30
|
+
|
|
20
31
|
const updateRequires = (event, watchPath) => {
|
|
21
32
|
if (typeof watchPath === 'string') {
|
|
22
33
|
log(`event ${event} for file ${path.basename(watchPath)}`);
|
|
@@ -25,6 +36,14 @@ const updateRequires = (event, watchPath) => {
|
|
|
25
36
|
};
|
|
26
37
|
|
|
27
38
|
const globs = getMain(args).stories;
|
|
39
|
+
// directory
|
|
40
|
+
// files
|
|
41
|
+
const globsStrings = globs.map((g) => {
|
|
42
|
+
if (typeof g === 'string') return g;
|
|
43
|
+
if (g.directory && g.files) {
|
|
44
|
+
return `${g.directory}/${g.files}`;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
28
47
|
|
|
29
48
|
chokidar
|
|
30
49
|
.watch(watchPaths, { cwd: args.configPath })
|
|
@@ -33,7 +52,7 @@ chokidar
|
|
|
33
52
|
let isReady = false;
|
|
34
53
|
|
|
35
54
|
chokidar
|
|
36
|
-
.watch(
|
|
55
|
+
.watch(globsStrings, { cwd: args.configPath })
|
|
37
56
|
.on('ready', () => {
|
|
38
57
|
log('Watcher is ready, performing initial write');
|
|
39
58
|
writeRequires(args);
|