@storybook/nextjs-vite 9.2.0-alpha.2 → 10.0.0-beta.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/README.md +3 -1
- package/dist/_browser-chunks/chunk-2RWWBM6A.js +261 -0
- package/dist/_browser-chunks/chunk-L5NVL7MD.js +37 -0
- package/dist/_browser-chunks/react-18-G7Q4PNHD.js +71 -0
- package/dist/_node-chunks/chunk-IHKOVONR.js +54 -0
- package/dist/_node-chunks/dist-YEP22NZU.js +7476 -0
- package/dist/_node-chunks/jiti-4UV67MCQ.js +32362 -0
- package/dist/export-mocks/cache/index.d.ts +308 -1
- package/dist/export-mocks/cache/index.js +22 -1
- package/dist/export-mocks/headers/index.d.ts +309 -1
- package/dist/export-mocks/headers/index.js +77 -1
- package/dist/export-mocks/navigation/index.js +81 -1
- package/dist/export-mocks/router/index.d.ts +2 -2
- package/dist/export-mocks/router/index.js +97 -1
- package/dist/index.d.ts +51 -7
- package/dist/index.js +22153 -45
- package/dist/node/index.d.ts +25 -5
- package/dist/node/index.js +23 -1
- package/dist/preset.js +714 -580
- package/dist/preview.d.ts +3 -19
- package/dist/preview.d.tsx +19 -0
- package/dist/preview.js +11 -1
- package/dist/vite-plugin/index.d.ts +1 -3
- package/dist/vite-plugin/index.js +21 -1
- package/package.json +35 -83
- package/preset.js +1 -1
- package/template/cli/js/Configure.mdx +11 -11
- package/template/cli/ts/Configure.mdx +11 -11
- package/dist/chunk-GKRSUUNG.mjs +0 -6
- package/dist/chunk-J3BB7LEU.mjs +0 -20
- package/dist/chunk-XP5HYGXS.mjs +0 -3
- package/dist/export-mocks/cache/index.mjs +0 -6
- package/dist/export-mocks/headers/index.mjs +0 -12
- package/dist/export-mocks/navigation/index.mjs +0 -11
- package/dist/export-mocks/router/index.mjs +0 -10
- package/dist/images/decorator.d.ts +0 -6
- package/dist/images/decorator.js +0 -1
- package/dist/images/decorator.mjs +0 -2
- package/dist/index.d-ff220430.d.ts +0 -310
- package/dist/index.mjs +0 -57
- package/dist/node/index.mjs +0 -5
- package/dist/preset.d.ts +0 -9
- package/dist/preview.mjs +0 -3
- package/dist/react-18-IGIL3GJQ.mjs +0 -7
- package/dist/types-d044381e.d.ts +0 -52
- package/dist/vite-plugin/index.mjs +0 -6
package/dist/preview.d.ts
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const decorators: Addon_DecoratorFunction<ReactRenderer>[];
|
|
5
|
-
declare const loaders: LoaderFunction<ReactRenderer>;
|
|
6
|
-
declare const parameters: {
|
|
7
|
-
docs: {
|
|
8
|
-
source: {
|
|
9
|
-
excludeDecorators: boolean;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
react: {
|
|
13
|
-
rootOptions: {
|
|
14
|
-
onCaughtError(error: unknown): void;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { decorators, loaders, parameters };
|
|
1
|
+
// auto generated file from file:///home/runner/work/storybook/storybook/scripts/build/utils/generate-type-mappers.ts, do not edit
|
|
2
|
+
export * from '../src/preview.tsx';
|
|
3
|
+
export type * from '../src/preview.tsx';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Addon_DecoratorFunction, LoaderFunction } from 'storybook/internal/types';
|
|
2
|
+
import { ReactRenderer } from '@storybook/react';
|
|
3
|
+
|
|
4
|
+
declare const decorators: Addon_DecoratorFunction<ReactRenderer>[];
|
|
5
|
+
declare const loaders: LoaderFunction<ReactRenderer>;
|
|
6
|
+
declare const parameters: {
|
|
7
|
+
docs: {
|
|
8
|
+
source: {
|
|
9
|
+
excludeDecorators: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
react: {
|
|
13
|
+
rootOptions: {
|
|
14
|
+
onCaughtError(error: unknown): void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { decorators, loaders, parameters };
|
package/dist/preview.js
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import {
|
|
2
|
+
decorators,
|
|
3
|
+
loaders,
|
|
4
|
+
parameters
|
|
5
|
+
} from "./_browser-chunks/chunk-2RWWBM6A.js";
|
|
6
|
+
import "./_browser-chunks/chunk-L5NVL7MD.js";
|
|
7
|
+
export {
|
|
8
|
+
decorators,
|
|
9
|
+
loaders,
|
|
10
|
+
parameters
|
|
11
|
+
};
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import CJS_COMPAT_NODE_URL_2461sgdhwki from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_2461sgdhwki from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_2461sgdhwki from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_2461sgdhwki.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_2461sgdhwki.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_2461sgdhwki.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import "../_node-chunks/chunk-IHKOVONR.js";
|
|
13
|
+
|
|
14
|
+
// src/vite-plugin/index.ts
|
|
15
|
+
import { createRequire } from "node:module";
|
|
16
|
+
var require2 = createRequire(import.meta.url);
|
|
17
|
+
var vitePluginStorybookNextjs = require2("vite-plugin-storybook-nextjs");
|
|
18
|
+
var storybookNextJsPlugin = vitePluginStorybookNextjs;
|
|
19
|
+
export {
|
|
20
|
+
storybookNextJsPlugin
|
|
21
|
+
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/nextjs-vite",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Storybook for Next.js and Vite",
|
|
3
|
+
"version": "10.0.0-beta.0",
|
|
4
|
+
"description": "Storybook for Next.js and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
7
|
+
"storybook-framework",
|
|
8
|
+
"next",
|
|
9
|
+
"next.js",
|
|
10
|
+
"vite",
|
|
11
|
+
"component",
|
|
12
|
+
"components"
|
|
9
13
|
],
|
|
10
14
|
"homepage": "https://github.com/storybookjs/storybook/tree/next/code/frameworks/nextjs-vite",
|
|
11
15
|
"bugs": {
|
|
@@ -21,76 +25,46 @@
|
|
|
21
25
|
"url": "https://opencollective.com/storybook"
|
|
22
26
|
},
|
|
23
27
|
"license": "MIT",
|
|
28
|
+
"type": "module",
|
|
24
29
|
"exports": {
|
|
25
30
|
".": {
|
|
26
31
|
"types": "./dist/index.d.ts",
|
|
27
|
-
"
|
|
28
|
-
"import": "./dist/index.mjs",
|
|
29
|
-
"require": "./dist/index.js"
|
|
32
|
+
"default": "./dist/index.js"
|
|
30
33
|
},
|
|
31
|
-
"./preset": {
|
|
32
|
-
"types": "./dist/preset.d.ts",
|
|
33
|
-
"require": "./dist/preset.js"
|
|
34
|
-
},
|
|
35
|
-
"./dist/preview.mjs": "./dist/preview.mjs",
|
|
36
34
|
"./cache.mock": {
|
|
37
35
|
"types": "./dist/export-mocks/cache/index.d.ts",
|
|
38
|
-
"
|
|
39
|
-
"require": "./dist/export-mocks/cache/index.js"
|
|
36
|
+
"default": "./dist/export-mocks/cache/index.js"
|
|
40
37
|
},
|
|
41
38
|
"./headers.mock": {
|
|
42
39
|
"types": "./dist/export-mocks/headers/index.d.ts",
|
|
43
|
-
"
|
|
44
|
-
"require": "./dist/export-mocks/headers/index.js"
|
|
40
|
+
"default": "./dist/export-mocks/headers/index.js"
|
|
45
41
|
},
|
|
46
42
|
"./navigation.mock": {
|
|
47
43
|
"types": "./dist/export-mocks/navigation/index.d.ts",
|
|
48
|
-
"
|
|
49
|
-
|
|
44
|
+
"default": "./dist/export-mocks/navigation/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./node": {
|
|
47
|
+
"types": "./dist/node/index.d.ts",
|
|
48
|
+
"default": "./dist/node/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./package.json": "./package.json",
|
|
51
|
+
"./preset": "./dist/preset.js",
|
|
52
|
+
"./preview": {
|
|
53
|
+
"types": "./dist/preview.d.ts",
|
|
54
|
+
"default": "./dist/preview.js"
|
|
50
55
|
},
|
|
51
56
|
"./router.mock": {
|
|
52
57
|
"types": "./dist/export-mocks/router/index.d.ts",
|
|
53
|
-
"
|
|
54
|
-
"require": "./dist/export-mocks/router/index.js"
|
|
58
|
+
"default": "./dist/export-mocks/router/index.js"
|
|
55
59
|
},
|
|
56
60
|
"./vite-plugin": {
|
|
57
61
|
"types": "./dist/vite-plugin/index.d.ts",
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
"./node": {
|
|
62
|
-
"types": "./dist/node/index.d.ts",
|
|
63
|
-
"node": "./dist/node/index.js",
|
|
64
|
-
"import": "./dist/node/index.mjs",
|
|
65
|
-
"require": "./dist/node/index.js"
|
|
66
|
-
},
|
|
67
|
-
"./package.json": "./package.json"
|
|
62
|
+
"default": "./dist/vite-plugin/index.js"
|
|
63
|
+
}
|
|
68
64
|
},
|
|
69
65
|
"main": "dist/index.js",
|
|
70
66
|
"module": "dist/index.mjs",
|
|
71
67
|
"types": "dist/index.d.ts",
|
|
72
|
-
"typesVersions": {
|
|
73
|
-
"*": {
|
|
74
|
-
"*": [
|
|
75
|
-
"dist/index.d.ts"
|
|
76
|
-
],
|
|
77
|
-
"cache.mock": [
|
|
78
|
-
"dist/export-mocks/cache/index.d.ts"
|
|
79
|
-
],
|
|
80
|
-
"headers.mock": [
|
|
81
|
-
"dist/export-mocks/headers/index.d.ts"
|
|
82
|
-
],
|
|
83
|
-
"router.mock": [
|
|
84
|
-
"dist/export-mocks/router/index.d.ts"
|
|
85
|
-
],
|
|
86
|
-
"navigation.mock": [
|
|
87
|
-
"dist/export-mocks/navigation/index.d.ts"
|
|
88
|
-
],
|
|
89
|
-
"node": [
|
|
90
|
-
"dist/node/index.d.ts"
|
|
91
|
-
]
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
68
|
"files": [
|
|
95
69
|
"dist/**/*",
|
|
96
70
|
"template/cli/**/*",
|
|
@@ -100,13 +74,13 @@
|
|
|
100
74
|
"!src/**/*"
|
|
101
75
|
],
|
|
102
76
|
"scripts": {
|
|
103
|
-
"check": "jiti ../../../scripts/
|
|
104
|
-
"prep": "jiti ../../../scripts/
|
|
77
|
+
"check": "jiti ../../../scripts/check/check-package.ts",
|
|
78
|
+
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
105
79
|
},
|
|
106
80
|
"dependencies": {
|
|
107
|
-
"@storybook/builder-vite": "
|
|
108
|
-
"@storybook/react": "
|
|
109
|
-
"@storybook/react-vite": "
|
|
81
|
+
"@storybook/builder-vite": "10.0.0-beta.0",
|
|
82
|
+
"@storybook/react": "10.0.0-beta.0",
|
|
83
|
+
"@storybook/react-vite": "10.0.0-beta.0",
|
|
110
84
|
"styled-jsx": "5.1.6",
|
|
111
85
|
"vite-plugin-storybook-nextjs": "^2.0.5"
|
|
112
86
|
},
|
|
@@ -118,9 +92,9 @@
|
|
|
118
92
|
},
|
|
119
93
|
"peerDependencies": {
|
|
120
94
|
"next": "^14.1.0 || ^15.0.0",
|
|
121
|
-
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
|
|
122
|
-
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
|
|
123
|
-
"storybook": "^
|
|
95
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
96
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
97
|
+
"storybook": "^10.0.0-beta.0",
|
|
124
98
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
125
99
|
},
|
|
126
100
|
"peerDependenciesMeta": {
|
|
@@ -128,30 +102,8 @@
|
|
|
128
102
|
"optional": true
|
|
129
103
|
}
|
|
130
104
|
},
|
|
131
|
-
"engines": {
|
|
132
|
-
"node": ">=20.0.0"
|
|
133
|
-
},
|
|
134
105
|
"publishConfig": {
|
|
135
106
|
"access": "public"
|
|
136
107
|
},
|
|
137
|
-
"
|
|
138
|
-
"entries": [
|
|
139
|
-
"./src/index.ts",
|
|
140
|
-
"./src/vite-plugin/index.ts",
|
|
141
|
-
"./src/preset.ts",
|
|
142
|
-
"./src/node/index.ts",
|
|
143
|
-
"./src/preview.tsx",
|
|
144
|
-
"./src/export-mocks/cache/index.ts",
|
|
145
|
-
"./src/export-mocks/headers/index.ts",
|
|
146
|
-
"./src/export-mocks/router/index.ts",
|
|
147
|
-
"./src/export-mocks/navigation/index.ts",
|
|
148
|
-
"./src/images/decorator.tsx"
|
|
149
|
-
],
|
|
150
|
-
"externals": [
|
|
151
|
-
"sb-original/image-context",
|
|
152
|
-
"sb-original/default-loader"
|
|
153
|
-
],
|
|
154
|
-
"platform": "node"
|
|
155
|
-
},
|
|
156
|
-
"gitHead": "e6a7fd8a655c69780bc20b9749c2699e44beae16"
|
|
108
|
+
"gitHead": "a8e7fd8a655c69780bc20b9749d2699e45beae16"
|
|
157
109
|
}
|
package/preset.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export * from './dist/preset.js';
|
|
@@ -52,7 +52,7 @@ export const RightArrow = () => <svg
|
|
|
52
52
|
<h4 className="sb-section-item-heading">Add styling and CSS</h4>
|
|
53
53
|
<p className="sb-section-item-paragraph">Like with web applications, there are many ways to include CSS within Storybook. Learn more about setting up styling within Storybook.</p>
|
|
54
54
|
<a
|
|
55
|
-
href="https://storybook.js.org/docs/configure/styling-and-css/?renderer=react"
|
|
55
|
+
href="https://storybook.js.org/docs/configure/styling-and-css/?renderer=react&ref=configure"
|
|
56
56
|
target="_blank"
|
|
57
57
|
>Learn more<RightArrow /></a>
|
|
58
58
|
</div>
|
|
@@ -67,7 +67,7 @@ export const RightArrow = () => <svg
|
|
|
67
67
|
<h4 className="sb-section-item-heading">Provide context and mocking</h4>
|
|
68
68
|
<p className="sb-section-item-paragraph">Often when a story doesn't render, it's because your component is expecting a specific environment or context (like a theme provider) to be available.</p>
|
|
69
69
|
<a
|
|
70
|
-
href="https://storybook.js.org/docs/writing-stories/decorators/?renderer=react#context-for-mocking"
|
|
70
|
+
href="https://storybook.js.org/docs/writing-stories/decorators/?renderer=react&ref=configure#context-for-mocking"
|
|
71
71
|
target="_blank"
|
|
72
72
|
>Learn more<RightArrow /></a>
|
|
73
73
|
</div>
|
|
@@ -85,7 +85,7 @@ export const RightArrow = () => <svg
|
|
|
85
85
|
`staticDirs` configuration option to specify folders to load when
|
|
86
86
|
starting Storybook.</p>
|
|
87
87
|
<a
|
|
88
|
-
href="https://storybook.js.org/docs/configure/images-and-assets/?renderer=react"
|
|
88
|
+
href="https://storybook.js.org/docs/configure/images-and-assets/?renderer=react&ref=configure"
|
|
89
89
|
target="_blank"
|
|
90
90
|
>Learn more<RightArrow /></a>
|
|
91
91
|
</div>
|
|
@@ -113,7 +113,7 @@ export const RightArrow = () => <svg
|
|
|
113
113
|
<p className="sb-section-item-paragraph">Auto-generate living,
|
|
114
114
|
interactive reference documentation from your components and stories.</p>
|
|
115
115
|
<a
|
|
116
|
-
href="https://storybook.js.org/docs/writing-docs/autodocs/?renderer=react"
|
|
116
|
+
href="https://storybook.js.org/docs/writing-docs/autodocs/?renderer=react&ref=configure"
|
|
117
117
|
target="_blank"
|
|
118
118
|
>Learn more<RightArrow /></a>
|
|
119
119
|
</div>
|
|
@@ -128,7 +128,7 @@ export const RightArrow = () => <svg
|
|
|
128
128
|
<h4 className="sb-section-item-heading">Publish to Chromatic</h4>
|
|
129
129
|
<p className="sb-section-item-paragraph">Publish your Storybook to review and collaborate with your entire team.</p>
|
|
130
130
|
<a
|
|
131
|
-
href="https://storybook.js.org/docs/sharing/publish-storybook/?renderer=react#publish-storybook-with-chromatic"
|
|
131
|
+
href="https://storybook.js.org/docs/sharing/publish-storybook/?renderer=react&ref=configure#publish-storybook-with-chromatic"
|
|
132
132
|
target="_blank"
|
|
133
133
|
>Learn more<RightArrow /></a>
|
|
134
134
|
</div>
|
|
@@ -144,7 +144,7 @@ export const RightArrow = () => <svg
|
|
|
144
144
|
<p className="sb-section-item-paragraph">Embed your stories into Figma to cross-reference the design and live
|
|
145
145
|
implementation in one place.</p>
|
|
146
146
|
<a
|
|
147
|
-
href="https://storybook.js.org/docs/sharing/design-integrations/?renderer=react#embed-storybook-in-figma-with-the-plugin"
|
|
147
|
+
href="https://storybook.js.org/docs/sharing/design-integrations/?renderer=react&ref=configure#embed-storybook-in-figma-with-the-plugin"
|
|
148
148
|
target="_blank"
|
|
149
149
|
>Learn more<RightArrow /></a>
|
|
150
150
|
</div>
|
|
@@ -160,7 +160,7 @@ export const RightArrow = () => <svg
|
|
|
160
160
|
<p className="sb-section-item-paragraph">Use stories to test a component in all its variations, no matter how
|
|
161
161
|
complex.</p>
|
|
162
162
|
<a
|
|
163
|
-
href="https://storybook.js.org/docs/writing-tests/?renderer=react"
|
|
163
|
+
href="https://storybook.js.org/docs/writing-tests/?renderer=react&ref=configure"
|
|
164
164
|
target="_blank"
|
|
165
165
|
>Learn more<RightArrow /></a>
|
|
166
166
|
</div>
|
|
@@ -175,7 +175,7 @@ export const RightArrow = () => <svg
|
|
|
175
175
|
<h4 className="sb-section-item-heading">Accessibility</h4>
|
|
176
176
|
<p className="sb-section-item-paragraph">Automatically test your components for a11y issues as you develop.</p>
|
|
177
177
|
<a
|
|
178
|
-
href="https://storybook.js.org/docs/writing-tests/accessibility-testing/?renderer=react"
|
|
178
|
+
href="https://storybook.js.org/docs/writing-tests/accessibility-testing/?renderer=react&ref=configure"
|
|
179
179
|
target="_blank"
|
|
180
180
|
>Learn more<RightArrow /></a>
|
|
181
181
|
</div>
|
|
@@ -190,7 +190,7 @@ export const RightArrow = () => <svg
|
|
|
190
190
|
<h4 className="sb-section-item-heading">Theming</h4>
|
|
191
191
|
<p className="sb-section-item-paragraph">Theme Storybook's UI to personalize it to your project.</p>
|
|
192
192
|
<a
|
|
193
|
-
href="https://storybook.js.org/docs/configure/theming/?renderer=react"
|
|
193
|
+
href="https://storybook.js.org/docs/configure/theming/?renderer=react&ref=configure"
|
|
194
194
|
target="_blank"
|
|
195
195
|
>Learn more<RightArrow /></a>
|
|
196
196
|
</div>
|
|
@@ -202,7 +202,7 @@ export const RightArrow = () => <svg
|
|
|
202
202
|
<h4>Addons</h4>
|
|
203
203
|
<p className="sb-section-item-paragraph">Integrate your tools with Storybook to connect workflows.</p>
|
|
204
204
|
<a
|
|
205
|
-
href="https://storybook.js.org/addons
|
|
205
|
+
href="https://storybook.js.org/addons/?ref=configure"
|
|
206
206
|
target="_blank"
|
|
207
207
|
>Discover all addons<RightArrow /></a>
|
|
208
208
|
</div>
|
|
@@ -281,7 +281,7 @@ export const RightArrow = () => <svg
|
|
|
281
281
|
<p>Follow guided walkthroughs on for key workflows.</p>
|
|
282
282
|
|
|
283
283
|
<a
|
|
284
|
-
href="https://storybook.js.org/tutorials
|
|
284
|
+
href="https://storybook.js.org/tutorials/?ref=configure"
|
|
285
285
|
target="_blank"
|
|
286
286
|
>Discover tutorials<RightArrow /></a>
|
|
287
287
|
</div>
|
|
@@ -52,7 +52,7 @@ export const RightArrow = () => <svg
|
|
|
52
52
|
<h4 className="sb-section-item-heading">Add styling and CSS</h4>
|
|
53
53
|
<p className="sb-section-item-paragraph">Like with web applications, there are many ways to include CSS within Storybook. Learn more about setting up styling within Storybook.</p>
|
|
54
54
|
<a
|
|
55
|
-
href="https://storybook.js.org/docs/configure/styling-and-css/?renderer=react"
|
|
55
|
+
href="https://storybook.js.org/docs/configure/styling-and-css/?renderer=react&ref=configure"
|
|
56
56
|
target="_blank"
|
|
57
57
|
>Learn more<RightArrow /></a>
|
|
58
58
|
</div>
|
|
@@ -67,7 +67,7 @@ export const RightArrow = () => <svg
|
|
|
67
67
|
<h4 className="sb-section-item-heading">Provide context and mocking</h4>
|
|
68
68
|
<p className="sb-section-item-paragraph">Often when a story doesn't render, it's because your component is expecting a specific environment or context (like a theme provider) to be available.</p>
|
|
69
69
|
<a
|
|
70
|
-
href="https://storybook.js.org/docs/writing-stories/decorators/?renderer=react#context-for-mocking"
|
|
70
|
+
href="https://storybook.js.org/docs/writing-stories/decorators/?renderer=react&ref=configure#context-for-mocking"
|
|
71
71
|
target="_blank"
|
|
72
72
|
>Learn more<RightArrow /></a>
|
|
73
73
|
</div>
|
|
@@ -85,7 +85,7 @@ export const RightArrow = () => <svg
|
|
|
85
85
|
`staticDirs` configuration option to specify folders to load when
|
|
86
86
|
starting Storybook.</p>
|
|
87
87
|
<a
|
|
88
|
-
href="https://storybook.js.org/docs/configure/images-and-assets/?renderer=react"
|
|
88
|
+
href="https://storybook.js.org/docs/configure/images-and-assets/?renderer=react&ref=configure"
|
|
89
89
|
target="_blank"
|
|
90
90
|
>Learn more<RightArrow /></a>
|
|
91
91
|
</div>
|
|
@@ -113,7 +113,7 @@ export const RightArrow = () => <svg
|
|
|
113
113
|
<p className="sb-section-item-paragraph">Auto-generate living,
|
|
114
114
|
interactive reference documentation from your components and stories.</p>
|
|
115
115
|
<a
|
|
116
|
-
href="https://storybook.js.org/docs/writing-docs/autodocs/?renderer=react"
|
|
116
|
+
href="https://storybook.js.org/docs/writing-docs/autodocs/?renderer=react&ref=configure"
|
|
117
117
|
target="_blank"
|
|
118
118
|
>Learn more<RightArrow /></a>
|
|
119
119
|
</div>
|
|
@@ -128,7 +128,7 @@ export const RightArrow = () => <svg
|
|
|
128
128
|
<h4 className="sb-section-item-heading">Publish to Chromatic</h4>
|
|
129
129
|
<p className="sb-section-item-paragraph">Publish your Storybook to review and collaborate with your entire team.</p>
|
|
130
130
|
<a
|
|
131
|
-
href="https://storybook.js.org/docs/sharing/publish-storybook/?renderer=react#publish-storybook-with-chromatic"
|
|
131
|
+
href="https://storybook.js.org/docs/sharing/publish-storybook/?renderer=react&ref=configure#publish-storybook-with-chromatic"
|
|
132
132
|
target="_blank"
|
|
133
133
|
>Learn more<RightArrow /></a>
|
|
134
134
|
</div>
|
|
@@ -144,7 +144,7 @@ export const RightArrow = () => <svg
|
|
|
144
144
|
<p className="sb-section-item-paragraph">Embed your stories into Figma to cross-reference the design and live
|
|
145
145
|
implementation in one place.</p>
|
|
146
146
|
<a
|
|
147
|
-
href="https://storybook.js.org/docs/sharing/design-integrations/?renderer=react#embed-storybook-in-figma-with-the-plugin"
|
|
147
|
+
href="https://storybook.js.org/docs/sharing/design-integrations/?renderer=react&ref=configure#embed-storybook-in-figma-with-the-plugin"
|
|
148
148
|
target="_blank"
|
|
149
149
|
>Learn more<RightArrow /></a>
|
|
150
150
|
</div>
|
|
@@ -160,7 +160,7 @@ export const RightArrow = () => <svg
|
|
|
160
160
|
<p className="sb-section-item-paragraph">Use stories to test a component in all its variations, no matter how
|
|
161
161
|
complex.</p>
|
|
162
162
|
<a
|
|
163
|
-
href="https://storybook.js.org/docs/writing-tests/?renderer=react"
|
|
163
|
+
href="https://storybook.js.org/docs/writing-tests/?renderer=react&ref=configure"
|
|
164
164
|
target="_blank"
|
|
165
165
|
>Learn more<RightArrow /></a>
|
|
166
166
|
</div>
|
|
@@ -175,7 +175,7 @@ export const RightArrow = () => <svg
|
|
|
175
175
|
<h4 className="sb-section-item-heading">Accessibility</h4>
|
|
176
176
|
<p className="sb-section-item-paragraph">Automatically test your components for a11y issues as you develop.</p>
|
|
177
177
|
<a
|
|
178
|
-
href="https://storybook.js.org/docs/writing-tests/accessibility-testing/?renderer=react"
|
|
178
|
+
href="https://storybook.js.org/docs/writing-tests/accessibility-testing/?renderer=react&ref=configure"
|
|
179
179
|
target="_blank"
|
|
180
180
|
>Learn more<RightArrow /></a>
|
|
181
181
|
</div>
|
|
@@ -190,7 +190,7 @@ export const RightArrow = () => <svg
|
|
|
190
190
|
<h4 className="sb-section-item-heading">Theming</h4>
|
|
191
191
|
<p className="sb-section-item-paragraph">Theme Storybook's UI to personalize it to your project.</p>
|
|
192
192
|
<a
|
|
193
|
-
href="https://storybook.js.org/docs/configure/theming/?renderer=react"
|
|
193
|
+
href="https://storybook.js.org/docs/configure/theming/?renderer=react&ref=configure"
|
|
194
194
|
target="_blank"
|
|
195
195
|
>Learn more<RightArrow /></a>
|
|
196
196
|
</div>
|
|
@@ -202,7 +202,7 @@ export const RightArrow = () => <svg
|
|
|
202
202
|
<h4>Addons</h4>
|
|
203
203
|
<p className="sb-section-item-paragraph">Integrate your tools with Storybook to connect workflows.</p>
|
|
204
204
|
<a
|
|
205
|
-
href="https://storybook.js.org/addons
|
|
205
|
+
href="https://storybook.js.org/addons/?ref=configure"
|
|
206
206
|
target="_blank"
|
|
207
207
|
>Discover all addons<RightArrow /></a>
|
|
208
208
|
</div>
|
|
@@ -281,7 +281,7 @@ export const RightArrow = () => <svg
|
|
|
281
281
|
<p>Follow guided walkthroughs on for key workflows.</p>
|
|
282
282
|
|
|
283
283
|
<a
|
|
284
|
-
href="https://storybook.js.org/tutorials
|
|
284
|
+
href="https://storybook.js.org/tutorials/?ref=configure"
|
|
285
285
|
target="_blank"
|
|
286
286
|
>Discover tutorials<RightArrow /></a>
|
|
287
287
|
</div>
|
package/dist/chunk-GKRSUUNG.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ImageContext } from 'sb-original/image-context';
|
|
3
|
-
|
|
4
|
-
var ImageDecorator=(Story,{parameters})=>parameters.nextjs?.image?React.createElement(ImageContext.Provider,{value:parameters.nextjs.image},React.createElement(Story,null)):React.createElement(Story,null);
|
|
5
|
-
|
|
6
|
-
export { ImageDecorator };
|
package/dist/chunk-J3BB7LEU.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ImageDecorator } from './chunk-GKRSUUNG.mjs';
|
|
2
|
-
import { __export } from './chunk-XP5HYGXS.mjs';
|
|
3
|
-
import { createNavigation, getRouter } from '@storybook/nextjs-vite/navigation.mock';
|
|
4
|
-
import { createRouter, getRouter as getRouter$1 } from '@storybook/nextjs-vite/router.mock';
|
|
5
|
-
import { isNextRouterError } from 'next/dist/client/components/is-next-router-error';
|
|
6
|
-
import { setConfig } from 'next/config';
|
|
7
|
-
import * as React3 from 'react';
|
|
8
|
-
import React3__default, { useMemo } from 'react';
|
|
9
|
-
import initHeadManager from 'next/dist/client/head-manager';
|
|
10
|
-
import { HeadManagerContext } from 'next/dist/shared/lib/head-manager-context.shared-runtime';
|
|
11
|
-
import { RedirectBoundary } from 'next/dist/client/components/redirect-boundary';
|
|
12
|
-
import { GlobalLayoutRouterContext, AppRouterContext, LayoutRouterContext } from 'next/dist/shared/lib/app-router-context.shared-runtime';
|
|
13
|
-
import { PathParamsContext, PathnameContext, SearchParamsContext } from 'next/dist/shared/lib/hooks-client-context.shared-runtime';
|
|
14
|
-
import 'next/dist/shared/lib/segment';
|
|
15
|
-
import { RouterContext } from 'next/dist/shared/lib/router-context.shared-runtime';
|
|
16
|
-
import { StyleRegistry } from 'styled-jsx';
|
|
17
|
-
|
|
18
|
-
var preview_exports={};__export(preview_exports,{decorators:()=>decorators,loaders:()=>loaders,parameters:()=>parameters});setConfig(process.env.__NEXT_RUNTIME_CONFIG);var HeadManagerProvider=({children})=>{let headManager=useMemo(initHeadManager,[]);return headManager.getIsSsr=()=>!1,React3__default.createElement(HeadManagerContext.Provider,{value:headManager},children)},head_manager_provider_default=HeadManagerProvider;var HeadManagerDecorator=Story=>React3.createElement(head_manager_provider_default,null,React3.createElement(Story,null));var getParallelRoutes=segmentsList=>{let segment=segmentsList.shift();return segment?[segment,{children:getParallelRoutes(segmentsList)}]:[]},AppRouterProvider=({children,routeParams})=>{let{pathname,query,segments=[]}=routeParams,tree=[pathname,{children:getParallelRoutes([...segments])}],pathParams=useMemo(()=>{let params={},currentSegments=routeParams.segments;if(currentSegments){if(Array.isArray(currentSegments)){for(let segmentEntry of currentSegments)if(Array.isArray(segmentEntry)&&segmentEntry.length===2&&typeof segmentEntry[0]=="string"){let key=segmentEntry[0],value=segmentEntry[1];params[key]=value;}}else if(typeof currentSegments=="object"&&!Array.isArray(currentSegments)){let segmentObject=currentSegments;for(let key in segmentObject)Object.prototype.hasOwnProperty.call(segmentObject,key)&&(params[key]=segmentObject[key]);}}return params},[routeParams.segments]),newLazyCacheNode={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,loading:null};return React3__default.createElement(PathParamsContext.Provider,{value:pathParams},React3__default.createElement(PathnameContext.Provider,{value:pathname},React3__default.createElement(SearchParamsContext.Provider,{value:new URLSearchParams(query)},React3__default.createElement(GlobalLayoutRouterContext.Provider,{value:{changeByServerResponse(){},buildId:"storybook",tree,focusAndScrollRef:{apply:!1,hashFragment:null,segmentPaths:[tree],onlyHashChange:!1},nextUrl:pathname}},React3__default.createElement(AppRouterContext.Provider,{value:getRouter()},React3__default.createElement(LayoutRouterContext.Provider,{value:{childNodes:new Map,tree,parentTree:tree,parentCacheNode:newLazyCacheNode,url:pathname,loading:null}},children))))))};var PageRouterProvider=({children})=>React3__default.createElement(RouterContext.Provider,{value:getRouter$1()},children);var defaultRouterParams={pathname:"/",query:{}},RouterDecorator=(Story,{parameters:parameters2})=>parameters2.nextjs?.appDirectory??!1?AppRouterProvider?React3.createElement(AppRouterProvider,{routeParams:{...defaultRouterParams,...parameters2.nextjs?.navigation}},React3.createElement(RedirectBoundary,null,React3.createElement(Story,null))):null:React3.createElement(PageRouterProvider,null,React3.createElement(Story,null));var StyledJsxDecorator=Story=>React3.createElement(StyleRegistry,null,React3.createElement(Story,null));function addNextHeadCount(){let meta=document.createElement("meta");meta.name="next-head-count",meta.content="0",document.head.appendChild(meta);}function isAsyncClientComponentError(error){return typeof error=="string"&&(error.includes("Only Server Components can be async at the moment.")||error.includes("A component was suspended by an uncached promise.")||error.includes("async/await is not yet supported in Client Components"))}addNextHeadCount();var origConsoleError=globalThis.console.error;globalThis.console.error=(...args)=>{let error=args[0];isNextRouterError(error)||isAsyncClientComponentError(error)||origConsoleError.apply(globalThis.console,args);};globalThis.addEventListener("error",ev=>{if(isNextRouterError(ev.error)||isAsyncClientComponentError(ev.error)){ev.preventDefault();return}});var asDecorator=decorator=>decorator,decorators=[asDecorator(StyledJsxDecorator),asDecorator(ImageDecorator),asDecorator(RouterDecorator),asDecorator(HeadManagerDecorator)],loaders=async({globals,parameters:parameters2})=>{let{router,appDirectory}=parameters2.nextjs??{};appDirectory?createNavigation(router):createRouter({locale:globals.locale,...router});},parameters={docs:{source:{excludeDecorators:!0}},react:{rootOptions:{onCaughtError(error){isNextRouterError(error)||console.error(error);}}}};
|
|
19
|
-
|
|
20
|
-
export { decorators, loaders, parameters, preview_exports };
|
package/dist/chunk-XP5HYGXS.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0, fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0});},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);
|
|
2
|
-
|
|
3
|
-
export { __commonJS, __esm, __export, __toCommonJS, __toESM };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import '../../chunk-XP5HYGXS.mjs';
|
|
2
|
-
import { fn } from 'storybook/test';
|
|
3
|
-
|
|
4
|
-
var revalidatePath=fn().mockName("next/cache::revalidatePath"),revalidateTag=fn().mockName("next/cache::revalidateTag"),unstable_cache=fn().mockName("next/cache::unstable_cache").mockImplementation(cb=>cb),unstable_noStore=fn().mockName("next/cache::unstable_noStore"),cacheExports={unstable_cache,revalidateTag,revalidatePath,unstable_noStore},cache_default=cacheExports;
|
|
5
|
-
|
|
6
|
-
export { cache_default as default, revalidatePath, revalidateTag, unstable_cache, unstable_noStore };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import '../../chunk-XP5HYGXS.mjs';
|
|
2
|
-
import { draftMode } from 'next/dist/server/request/draft-mode';
|
|
3
|
-
import * as headers3 from 'next/dist/server/request/headers';
|
|
4
|
-
export * from 'next/dist/server/request/headers';
|
|
5
|
-
import { fn } from 'storybook/test';
|
|
6
|
-
import { HeadersAdapter } from 'next/dist/server/web/spec-extension/adapters/headers';
|
|
7
|
-
import { headers as headers$1 } from '@storybook/nextjs-vite/headers.mock';
|
|
8
|
-
import { RequestCookies } from 'next/dist/compiled/@edge-runtime/cookies';
|
|
9
|
-
|
|
10
|
-
var HeadersAdapterMock=class extends HeadersAdapter{constructor(){super({});this.append=fn(super.append.bind(this)).mockName("next/headers::headers().append");this.delete=fn(super.delete.bind(this)).mockName("next/headers::headers().delete");this.get=fn(super.get.bind(this)).mockName("next/headers::headers().get");this.has=fn(super.has.bind(this)).mockName("next/headers::headers().has");this.set=fn(super.set.bind(this)).mockName("next/headers::headers().set");this.forEach=fn(super.forEach.bind(this)).mockName("next/headers::headers().forEach");this.entries=fn(super.entries.bind(this)).mockName("next/headers::headers().entries");this.keys=fn(super.keys.bind(this)).mockName("next/headers::headers().keys");this.values=fn(super.values.bind(this)).mockName("next/headers::headers().values");}},headersAdapterMock,headers=()=>(headersAdapterMock||(headersAdapterMock=new HeadersAdapterMock),headersAdapterMock);headers.mockRestore=()=>{headersAdapterMock=new HeadersAdapterMock;};var RequestCookiesMock=class extends RequestCookies{constructor(){super(...arguments);this.get=fn(super.get.bind(this)).mockName("next/headers::cookies().get");this.getAll=fn(super.getAll.bind(this)).mockName("next/headers::cookies().getAll");this.has=fn(super.has.bind(this)).mockName("next/headers::cookies().has");this.set=fn(super.set.bind(this)).mockName("next/headers::cookies().set");this.delete=fn(super.delete.bind(this)).mockName("next/headers::cookies().delete");}},requestCookiesMock,cookies=fn(()=>(requestCookiesMock||(requestCookiesMock=new RequestCookiesMock(headers$1())),requestCookiesMock)).mockName("next/headers::cookies()"),originalRestore=cookies.mockRestore.bind(null);cookies.mockRestore=()=>{originalRestore(),headers$1.mockRestore(),requestCookiesMock=new RequestCookiesMock(headers$1());};var draftMode2=fn(draftMode??headers3.draftMode).mockName("draftMode");
|
|
11
|
-
|
|
12
|
-
export { cookies, draftMode2 as draftMode, headers };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import '../../chunk-XP5HYGXS.mjs';
|
|
2
|
-
import { NextjsRouterMocksNotAvailable } from 'storybook/internal/preview-errors';
|
|
3
|
-
import * as actual from 'next/dist/client/components/navigation';
|
|
4
|
-
export * from 'next/dist/client/components/navigation';
|
|
5
|
-
import { getRedirectError } from 'next/dist/client/components/redirect';
|
|
6
|
-
import { RedirectStatusCode } from 'next/dist/client/components/redirect-status-code';
|
|
7
|
-
import { fn } from 'storybook/test';
|
|
8
|
-
|
|
9
|
-
var navigationAPI,createNavigation=overrides=>{let navigationActions={push:fn().mockName("next/navigation::useRouter().push"),replace:fn().mockName("next/navigation::useRouter().replace"),forward:fn().mockName("next/navigation::useRouter().forward"),back:fn().mockName("next/navigation::useRouter().back"),prefetch:fn().mockName("next/navigation::useRouter().prefetch"),refresh:fn().mockName("next/navigation::useRouter().refresh")};return overrides&&Object.keys(navigationActions).forEach(key=>{key in overrides&&(navigationActions[key]=fn((...args)=>overrides[key](...args)).mockName(`useRouter().${key}`));}),navigationAPI=navigationActions,navigationAPI},getRouter=()=>{if(!navigationAPI)throw new NextjsRouterMocksNotAvailable({importType:"next/navigation"});return navigationAPI},redirect=fn((url,type=actual.RedirectType.push)=>{throw getRedirectError(url,type,RedirectStatusCode.SeeOther)}).mockName("next/navigation::redirect"),permanentRedirect=fn((url,type=actual.RedirectType.push)=>{throw getRedirectError(url,type,RedirectStatusCode.SeeOther)}).mockName("next/navigation::permanentRedirect"),useSearchParams2=fn(actual.useSearchParams).mockName("next/navigation::useSearchParams"),usePathname2=fn(actual.usePathname).mockName("next/navigation::usePathname"),useSelectedLayoutSegment2=fn(actual.useSelectedLayoutSegment).mockName("next/navigation::useSelectedLayoutSegment"),useSelectedLayoutSegments2=fn(actual.useSelectedLayoutSegments).mockName("next/navigation::useSelectedLayoutSegments"),useRouter2=fn(actual.useRouter).mockName("next/navigation::useRouter"),useServerInsertedHTML2=fn(actual.useServerInsertedHTML).mockName("next/navigation::useServerInsertedHTML"),notFound2=fn(actual.notFound).mockName("next/navigation::notFound"),useParams2=fn(actual.useParams).mockName("next/navigation::useParams");
|
|
10
|
-
|
|
11
|
-
export { createNavigation, getRouter, notFound2 as notFound, permanentRedirect, redirect, useParams2 as useParams, usePathname2 as usePathname, useRouter2 as useRouter, useSearchParams2 as useSearchParams, useSelectedLayoutSegment2 as useSelectedLayoutSegment, useSelectedLayoutSegments2 as useSelectedLayoutSegments, useServerInsertedHTML2 as useServerInsertedHTML };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import '../../chunk-XP5HYGXS.mjs';
|
|
2
|
-
import { NextjsRouterMocksNotAvailable } from 'storybook/internal/preview-errors';
|
|
3
|
-
import * as singletonRouter from 'next/dist/client/router';
|
|
4
|
-
import singletonRouter__default from 'next/dist/client/router';
|
|
5
|
-
export * from 'next/dist/client/router';
|
|
6
|
-
import { fn } from 'storybook/test';
|
|
7
|
-
|
|
8
|
-
var defaultRouterState={route:"/",asPath:"/",basePath:"/",pathname:"/",query:{},isFallback:!1,isLocaleDomain:!1,isReady:!0,isPreview:!1},routerAPI,createRouter=overrides=>{let routerActions={push:fn((..._args)=>Promise.resolve(!0)).mockName("next/router::useRouter().push"),replace:fn((..._args)=>Promise.resolve(!0)).mockName("next/router::useRouter().replace"),reload:fn((..._args)=>{}).mockName("next/router::useRouter().reload"),back:fn((..._args)=>{}).mockName("next/router::useRouter().back"),forward:fn(()=>{}).mockName("next/router::useRouter().forward"),prefetch:fn((..._args)=>Promise.resolve()).mockName("next/router::useRouter().prefetch"),beforePopState:fn((..._args)=>{}).mockName("next/router::useRouter().beforePopState")},routerEvents={on:fn((..._args)=>{}).mockName("next/router::useRouter().events.on"),off:fn((..._args)=>{}).mockName("next/router::useRouter().events.off"),emit:fn((..._args)=>{}).mockName("next/router::useRouter().events.emit")};return overrides&&Object.keys(routerActions).forEach(key=>{key in overrides&&(routerActions[key]=fn((...args)=>overrides[key](...args)).mockName(`useRouter().${key}`));}),overrides?.events&&Object.keys(routerEvents).forEach(key=>{key in routerEvents&&(routerEvents[key]=fn((...args)=>overrides.events[key](...args)).mockName(`useRouter().events.${key}`));}),routerAPI={...defaultRouterState,...overrides,...routerActions,events:routerEvents},singletonRouter__default.router=routerAPI,singletonRouter__default.readyCallbacks.forEach(cb=>cb()),singletonRouter__default.readyCallbacks=[],routerAPI},getRouter=()=>{if(!routerAPI)throw new NextjsRouterMocksNotAvailable({importType:"next/router"});return routerAPI},router_default=singletonRouter__default,useRouter2=fn(singletonRouter.useRouter).mockName("next/router::useRouter"),withRouter2=fn(singletonRouter.withRouter).mockName("next/router::withRouter");
|
|
9
|
-
|
|
10
|
-
export { createRouter, router_default as default, getRouter, useRouter2 as useRouter, withRouter2 as withRouter };
|
package/dist/images/decorator.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var decorator_exports={};__export(decorator_exports,{ImageDecorator:()=>ImageDecorator});module.exports=__toCommonJS(decorator_exports);var React=__toESM(require("react")),import_image_context=require("sb-original/image-context"),ImageDecorator=(Story,{parameters})=>parameters.nextjs?.image?React.createElement(import_image_context.ImageContext.Provider,{value:parameters.nextjs.image},React.createElement(Story,null)):React.createElement(Story,null);0&&(module.exports={ImageDecorator});
|