@storybook/react 10.5.0-alpha.3 → 10.5.0-alpha.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/_browser-chunks/{chunk-E4YOXNOQ.js → chunk-GOMPYXOS.js} +1 -1
- package/dist/_browser-chunks/{chunk-CMP5DLKH.js → chunk-IMEABK32.js} +1 -1
- package/dist/_browser-chunks/{chunk-77RIPXG7.js → chunk-K2MYE2K3.js} +1 -1
- package/dist/_browser-chunks/{chunk-GUVY6QMW.js → chunk-S7Q5R54F.js} +2 -2
- package/dist/entry-preview-argtypes.js +2 -2
- package/dist/entry-preview-docs.js +2 -2
- package/dist/index.js +4 -4
- package/dist/preset.js +7 -7
- package/dist/preview.js +4 -4
- package/package.json +4 -4
- package/template/cli/js/Button.stories.js +1 -1
- package/template/cli/ts/Button.stories.ts +1 -1
|
@@ -538,7 +538,7 @@ var defaultFunctionValue = inlineFunction, formatFunction = (function(fn, option
|
|
|
538
538
|
var usedValue = hasValue ? value : defaultValue, useBooleanShorthandSyntax = options.useBooleanShorthandSyntax, tabStop = options.tabStop, formattedPropValue = formatPropValue(usedValue, inline, lvl, options), attributeFormattedInline = " ", attributeFormattedMultiline = `
|
|
539
539
|
`.concat(spacer(lvl + 1, tabStop)), isMultilineAttribute = formattedPropValue.includes(`
|
|
540
540
|
`);
|
|
541
|
-
return useBooleanShorthandSyntax && formattedPropValue === "{
|
|
541
|
+
return useBooleanShorthandSyntax && formattedPropValue === "{true}" ? (attributeFormattedInline += "".concat(name), attributeFormattedMultiline += "".concat(name)) : (attributeFormattedInline += "".concat(name, "=").concat(formattedPropValue), attributeFormattedMultiline += "".concat(name, "=").concat(formattedPropValue)), {
|
|
542
542
|
attributeFormattedInline,
|
|
543
543
|
attributeFormattedMultiline,
|
|
544
544
|
isMultilineAttribute
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-L3JF7GGZ.js";
|
|
4
4
|
import {
|
|
5
5
|
entry_preview_argtypes_exports
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K2MYE2K3.js";
|
|
7
7
|
import {
|
|
8
8
|
entry_preview_docs_exports
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IMEABK32.js";
|
|
10
10
|
|
|
11
11
|
// src/preview.tsx
|
|
12
12
|
import { definePreview as definePreviewBase } from "storybook/internal/csf";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
argTypesEnhancers,
|
|
3
3
|
parameters
|
|
4
|
-
} from "./_browser-chunks/chunk-
|
|
5
|
-
import "./_browser-chunks/chunk-
|
|
4
|
+
} from "./_browser-chunks/chunk-K2MYE2K3.js";
|
|
5
|
+
import "./_browser-chunks/chunk-GOMPYXOS.js";
|
|
6
6
|
import "./_browser-chunks/chunk-SL3VIQZ3.js";
|
|
7
7
|
export {
|
|
8
8
|
argTypesEnhancers,
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
applyDecorators,
|
|
3
3
|
decorators,
|
|
4
4
|
parameters
|
|
5
|
-
} from "./_browser-chunks/chunk-
|
|
5
|
+
} from "./_browser-chunks/chunk-IMEABK32.js";
|
|
6
6
|
import "./_browser-chunks/chunk-DDIRQRCA.js";
|
|
7
|
-
import "./_browser-chunks/chunk-
|
|
7
|
+
import "./_browser-chunks/chunk-GOMPYXOS.js";
|
|
8
8
|
import "./_browser-chunks/chunk-SL3VIQZ3.js";
|
|
9
9
|
export {
|
|
10
10
|
applyDecorators,
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__definePreview
|
|
3
|
-
} from "./_browser-chunks/chunk-
|
|
3
|
+
} from "./_browser-chunks/chunk-S7Q5R54F.js";
|
|
4
4
|
import {
|
|
5
5
|
entry_preview_exports,
|
|
6
6
|
renderToCanvas
|
|
7
7
|
} from "./_browser-chunks/chunk-L3JF7GGZ.js";
|
|
8
8
|
import {
|
|
9
9
|
entry_preview_argtypes_exports
|
|
10
|
-
} from "./_browser-chunks/chunk-
|
|
11
|
-
import "./_browser-chunks/chunk-
|
|
10
|
+
} from "./_browser-chunks/chunk-K2MYE2K3.js";
|
|
11
|
+
import "./_browser-chunks/chunk-IMEABK32.js";
|
|
12
12
|
import "./_browser-chunks/chunk-DDIRQRCA.js";
|
|
13
|
-
import "./_browser-chunks/chunk-
|
|
13
|
+
import "./_browser-chunks/chunk-GOMPYXOS.js";
|
|
14
14
|
import "./_browser-chunks/chunk-SL3VIQZ3.js";
|
|
15
15
|
|
|
16
16
|
// src/globals.ts
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_wrq8d81c1df from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_wrq8d81c1df from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_wrq8d81c1df from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_wrq8d81c1df.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_wrq8d81c1df.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_wrq8d81c1df.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13858,7 +13858,7 @@ var defaultFunctionValue = inlineFunction, formatFunction = (function(fn, option
|
|
|
13858
13858
|
var usedValue = hasValue ? value : defaultValue, useBooleanShorthandSyntax = options.useBooleanShorthandSyntax, tabStop = options.tabStop, formattedPropValue = formatPropValue(usedValue, inline, lvl, options), attributeFormattedInline = " ", attributeFormattedMultiline = `
|
|
13859
13859
|
`.concat(spacer(lvl + 1, tabStop)), isMultilineAttribute = formattedPropValue.includes(`
|
|
13860
13860
|
`);
|
|
13861
|
-
return useBooleanShorthandSyntax && formattedPropValue === "{
|
|
13861
|
+
return useBooleanShorthandSyntax && formattedPropValue === "{true}" ? (attributeFormattedInline += "".concat(name), attributeFormattedMultiline += "".concat(name)) : (attributeFormattedInline += "".concat(name, "=").concat(formattedPropValue), attributeFormattedMultiline += "".concat(name, "=").concat(formattedPropValue)), {
|
|
13862
13862
|
attributeFormattedInline,
|
|
13863
13863
|
attributeFormattedMultiline,
|
|
13864
13864
|
isMultilineAttribute
|
package/dist/preview.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__definePreview
|
|
3
|
-
} from "./_browser-chunks/chunk-
|
|
3
|
+
} from "./_browser-chunks/chunk-S7Q5R54F.js";
|
|
4
4
|
import "./_browser-chunks/chunk-L3JF7GGZ.js";
|
|
5
|
-
import "./_browser-chunks/chunk-
|
|
6
|
-
import "./_browser-chunks/chunk-
|
|
5
|
+
import "./_browser-chunks/chunk-K2MYE2K3.js";
|
|
6
|
+
import "./_browser-chunks/chunk-IMEABK32.js";
|
|
7
7
|
import "./_browser-chunks/chunk-DDIRQRCA.js";
|
|
8
|
-
import "./_browser-chunks/chunk-
|
|
8
|
+
import "./_browser-chunks/chunk-GOMPYXOS.js";
|
|
9
9
|
import "./_browser-chunks/chunk-SL3VIQZ3.js";
|
|
10
10
|
export {
|
|
11
11
|
__definePreview
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/react",
|
|
3
|
-
"version": "10.5.0-alpha.
|
|
3
|
+
"version": "10.5.0-alpha.4",
|
|
4
4
|
"description": "Storybook React renderer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@storybook/global": "^5.0.0",
|
|
56
|
-
"@storybook/react-dom-shim": "10.5.0-alpha.
|
|
56
|
+
"@storybook/react-dom-shim": "10.5.0-alpha.4",
|
|
57
57
|
"react-docgen": "^8.0.2",
|
|
58
58
|
"react-docgen-typescript": "^2.2.2"
|
|
59
59
|
},
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"expect-type": "^0.15.0",
|
|
76
76
|
"html-tags": "^3.1.0",
|
|
77
77
|
"prop-types": "^15.7.2",
|
|
78
|
-
"react-element-to-jsx-string": "npm
|
|
78
|
+
"react-element-to-jsx-string": "patch:react-element-to-jsx-string@npm%3A@7rulnik/react-element-to-jsx-string@15.0.1#~/.yarn/patches/@7rulnik-react-element-to-jsx-string-npm-15.0.1-e53b67c4b3.patch",
|
|
79
79
|
"require-from-string": "^2.0.2",
|
|
80
80
|
"ts-dedent": "^2.0.0",
|
|
81
81
|
"type-fest": "^5.6.0"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@types/react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
86
86
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
87
87
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
88
|
-
"storybook": "^10.5.0-alpha.
|
|
88
|
+
"storybook": "^10.5.0-alpha.4",
|
|
89
89
|
"typescript": ">= 4.9.x"
|
|
90
90
|
},
|
|
91
91
|
"peerDependenciesMeta": {
|
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
},
|
|
13
13
|
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
|
14
14
|
tags: ['autodocs'],
|
|
15
|
-
// More on argTypes: https://storybook.js.org/docs/api/
|
|
15
|
+
// More on argTypes: https://storybook.js.org/docs/api/arg-types
|
|
16
16
|
argTypes: {
|
|
17
17
|
backgroundColor: { control: 'color' },
|
|
18
18
|
},
|
|
@@ -14,7 +14,7 @@ const meta = {
|
|
|
14
14
|
},
|
|
15
15
|
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
|
|
16
16
|
tags: ['autodocs'],
|
|
17
|
-
// More on argTypes: https://storybook.js.org/docs/api/
|
|
17
|
+
// More on argTypes: https://storybook.js.org/docs/api/arg-types
|
|
18
18
|
argTypes: {
|
|
19
19
|
backgroundColor: { control: 'color' },
|
|
20
20
|
},
|