@storybook/nextjs-vite 10.3.3 → 10.3.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/_node-chunks/{chunk-3P5RABUF.js → chunk-YLOBP324.js} +6 -6
- package/dist/_node-chunks/{dist-JYL7O5ZY.js → dist-UW3NNS6A.js} +17 -17
- package/dist/_node-chunks/{jiti-UAHRDRBR.js → jiti-OEXLWXDI.js} +7 -7
- package/dist/index.d.ts +3 -3
- package/dist/node/index.js +7 -7
- package/dist/preset.js +9 -9
- package/dist/vite-plugin/index.js +7 -7
- package/package.json +5 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_e1n05p9ouii from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_e1n05p9ouii from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_e1n05p9ouii from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_e1n05p9ouii.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_e1n05p9ouii.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_e1n05p9ouii.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_e1n05p9ouii from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_e1n05p9ouii from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_e1n05p9ouii from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_e1n05p9ouii.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_e1n05p9ouii.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_e1n05p9ouii.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,7 +12,7 @@ var require = CJS_COMPAT_NODE_MODULE_b3269j19imo.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YLOBP324.js";
|
|
16
16
|
|
|
17
17
|
// ../../../node_modules/yaml/dist/nodes/identity.js
|
|
18
18
|
var require_identity = __commonJS({
|
|
@@ -503,7 +503,7 @@ var require_Alias = __commonJS({
|
|
|
503
503
|
throw new ReferenceError(msg);
|
|
504
504
|
}
|
|
505
505
|
let data = anchors2.get(source);
|
|
506
|
-
if (data || (toJS.toJS(source, null, ctx), data = anchors2.get(source)),
|
|
506
|
+
if (data || (toJS.toJS(source, null, ctx), data = anchors2.get(source)), data?.res === void 0) {
|
|
507
507
|
let msg = "This should not happen: Alias anchor was not resolved?";
|
|
508
508
|
throw new ReferenceError(msg);
|
|
509
509
|
}
|
|
@@ -1211,7 +1211,7 @@ ${indent}:`) : (str = `${str}:`, keyComment && (str += stringifyComment.lineComm
|
|
|
1211
1211
|
${stringifyComment.indentComment(cs, ctx.indent)}`;
|
|
1212
1212
|
}
|
|
1213
1213
|
valueStr === "" && !ctx.inFlow ? ws === `
|
|
1214
|
-
` && (ws = `
|
|
1214
|
+
` && valueComment && (ws = `
|
|
1215
1215
|
|
|
1216
1216
|
`) : ws += `
|
|
1217
1217
|
${ctx.indent}`;
|
|
@@ -1769,7 +1769,7 @@ var require_stringifyNumber = __commonJS({
|
|
|
1769
1769
|
let num = typeof value == "number" ? value : Number(value);
|
|
1770
1770
|
if (!isFinite(num))
|
|
1771
1771
|
return isNaN(num) ? ".nan" : num < 0 ? "-.inf" : ".inf";
|
|
1772
|
-
let n = JSON.stringify(value);
|
|
1772
|
+
let n = Object.is(value, -0) ? "-0" : JSON.stringify(value);
|
|
1773
1773
|
if (!format && minFractionDigits && (!tag || tag === "tag:yaml.org,2002:float") && /^\d/.test(n)) {
|
|
1774
1774
|
let i = n.indexOf(".");
|
|
1775
1775
|
i < 0 && (i = n.length, n += ".");
|
|
@@ -2809,7 +2809,7 @@ var require_errors = __commonJS({
|
|
|
2809
2809
|
}
|
|
2810
2810
|
if (/[^ ]/.test(lineStr)) {
|
|
2811
2811
|
let count = 1, end = error.linePos[1];
|
|
2812
|
-
end
|
|
2812
|
+
end?.line === line && end.col > col && (count = Math.max(1, Math.min(end.col - col, 80 - ci)));
|
|
2813
2813
|
let pointer = " ".repeat(ci) + "^".repeat(count);
|
|
2814
2814
|
error.message += `:
|
|
2815
2815
|
|
|
@@ -3032,7 +3032,7 @@ var require_resolve_block_seq = __commonJS({
|
|
|
3032
3032
|
});
|
|
3033
3033
|
if (!props.found)
|
|
3034
3034
|
if (props.anchor || props.tag || value)
|
|
3035
|
-
value
|
|
3035
|
+
value?.type === "block-seq" ? onError(props.end, "BAD_INDENT", "All sequence items must start at the same column") : onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
|
|
3036
3036
|
else {
|
|
3037
3037
|
commentEnd = props.end, props.comment && (seq.comment = props.comment);
|
|
3038
3038
|
continue;
|
|
@@ -3165,7 +3165,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
3165
3165
|
}
|
|
3166
3166
|
props.start < valueProps.found.offset - 1024 && onError(valueProps.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
|
|
3167
3167
|
}
|
|
3168
|
-
} else value && ("source" in value && value.source
|
|
3168
|
+
} else value && ("source" in value && value.source?.[0] === ":" ? onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`) : onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`));
|
|
3169
3169
|
let valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError) : null;
|
|
3170
3170
|
valueNode ? isBlock(value) && onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg) : valueProps.comment && (keyNode.comment ? keyNode.comment += `
|
|
3171
3171
|
` + valueProps.comment : keyNode.comment = valueProps.comment);
|
|
@@ -3183,7 +3183,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
3185
|
let expectedEnd = isMap ? "}" : "]", [ce, ...ee] = fc.end, cePos = offset;
|
|
3186
|
-
if (ce
|
|
3186
|
+
if (ce?.source === expectedEnd)
|
|
3187
3187
|
cePos = ce.offset + ce.source.length;
|
|
3188
3188
|
else {
|
|
3189
3189
|
let name = fcName[0].toUpperCase() + fcName.substring(1), msg = atRoot ? `${name} must end with a ${expectedEnd}` : `${name} in block collection must be sufficiently indented and end with a ${expectedEnd}`;
|
|
@@ -3222,7 +3222,7 @@ var require_compose_collection = __commonJS({
|
|
|
3222
3222
|
let tag = ctx.schema.tags.find((t) => t.tag === tagName && t.collection === expType);
|
|
3223
3223
|
if (!tag) {
|
|
3224
3224
|
let kt = ctx.schema.knownTags[tagName];
|
|
3225
|
-
if (kt
|
|
3225
|
+
if (kt?.collection === expType)
|
|
3226
3226
|
ctx.schema.tags.push(Object.assign({}, kt, { default: !1 })), tag = kt;
|
|
3227
3227
|
else
|
|
3228
3228
|
return kt ? onError(tagToken, "BAD_COLLECTION_TYPE", `${kt.tag} used for ${expType} collection, but expects ${kt.collection ?? "scalar"}`, !0) : onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, !0), resolveCollection(CN, ctx, token, onError, tagName);
|
|
@@ -4824,7 +4824,7 @@ var require_parser = __commonJS({
|
|
|
4824
4824
|
}
|
|
4825
4825
|
*step() {
|
|
4826
4826
|
let top = this.peek(1);
|
|
4827
|
-
if (this.type === "doc-end" &&
|
|
4827
|
+
if (this.type === "doc-end" && top?.type !== "doc-end") {
|
|
4828
4828
|
for (; this.stack.length > 0; )
|
|
4829
4829
|
yield* this.pop();
|
|
4830
4830
|
this.stack.push({
|
|
@@ -5181,7 +5181,7 @@ var require_parser = __commonJS({
|
|
|
5181
5181
|
let top;
|
|
5182
5182
|
do
|
|
5183
5183
|
yield* this.pop(), top = this.peek(1);
|
|
5184
|
-
while (top
|
|
5184
|
+
while (top?.type === "flow-collection");
|
|
5185
5185
|
} else if (fc.end.length === 0) {
|
|
5186
5186
|
switch (this.type) {
|
|
5187
5187
|
case "comma":
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_e1n05p9ouii from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_e1n05p9ouii from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_e1n05p9ouii from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_e1n05p9ouii.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_e1n05p9ouii.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_e1n05p9ouii.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__esm,
|
|
15
15
|
__require,
|
|
16
16
|
__toESM
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YLOBP324.js";
|
|
18
18
|
|
|
19
19
|
// ../../../node_modules/jiti/dist/jiti.cjs
|
|
20
20
|
var require_jiti = __commonJS({
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CompatibleString,
|
|
3
|
-
import { ReactRenderer, Meta,
|
|
1
|
+
import { PreviewAddon, InferTypes, AddonTypes } from 'storybook/internal/csf';
|
|
2
|
+
import { CompatibleString, NamedOrDefaultProjectAnnotations, NormalizedProjectAnnotations, Args, StoryAnnotationsOrFn, ProjectAnnotations, ComposedStoryFn, Store_CSFExports, StoriesWithPartialProps } from 'storybook/internal/types';
|
|
3
|
+
import { ReactRenderer, Meta, ReactTypes, ReactPreview } from '@storybook/react';
|
|
4
4
|
export * from '@storybook/react';
|
|
5
5
|
import vitePluginStorybookNextJs from 'vite-plugin-storybook-nextjs';
|
|
6
6
|
import { BuilderOptions } from '@storybook/builder-vite';
|
package/dist/node/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_e1n05p9ouii from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_e1n05p9ouii from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_e1n05p9ouii from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_e1n05p9ouii.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_e1n05p9ouii.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_e1n05p9ouii.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../_node-chunks/chunk-
|
|
12
|
+
import "../_node-chunks/chunk-YLOBP324.js";
|
|
13
13
|
|
|
14
14
|
// src/node/index.ts
|
|
15
15
|
function defineMain(config) {
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_e1n05p9ouii from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_e1n05p9ouii from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_e1n05p9ouii from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_e1n05p9ouii.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_e1n05p9ouii.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_e1n05p9ouii.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
15
15
|
__toESM
|
|
16
|
-
} from "./_node-chunks/chunk-
|
|
16
|
+
} from "./_node-chunks/chunk-YLOBP324.js";
|
|
17
17
|
|
|
18
18
|
// ../../../node_modules/semver/internal/constants.js
|
|
19
19
|
var require_constants = __commonJS({
|
|
@@ -1479,7 +1479,7 @@ var require_req = __commonJS({
|
|
|
1479
1479
|
}
|
|
1480
1480
|
if (jiti === void 0)
|
|
1481
1481
|
try {
|
|
1482
|
-
jiti = (await import("./_node-chunks/jiti-
|
|
1482
|
+
jiti = (await import("./_node-chunks/jiti-OEXLWXDI.js")).default;
|
|
1483
1483
|
} catch (error) {
|
|
1484
1484
|
importError.push(error);
|
|
1485
1485
|
}
|
|
@@ -1596,7 +1596,7 @@ var require_src2 = __commonJS({
|
|
|
1596
1596
|
async function yamlLoader(_, content) {
|
|
1597
1597
|
if (!yaml)
|
|
1598
1598
|
try {
|
|
1599
|
-
yaml = await import("./_node-chunks/dist-
|
|
1599
|
+
yaml = await import("./_node-chunks/dist-UW3NNS6A.js");
|
|
1600
1600
|
} catch (e) {
|
|
1601
1601
|
throw new Error(
|
|
1602
1602
|
`'yaml' is required for the YAML configuration files. Make sure it is installed
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_e1n05p9ouii from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_e1n05p9ouii from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_e1n05p9ouii from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_e1n05p9ouii.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_e1n05p9ouii.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_e1n05p9ouii.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
|
-
import "../_node-chunks/chunk-
|
|
12
|
+
import "../_node-chunks/chunk-YLOBP324.js";
|
|
13
13
|
|
|
14
14
|
// src/vite-plugin/index.ts
|
|
15
15
|
import { createRequire } from "node:module";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/nextjs-vite",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.4",
|
|
4
4
|
"description": "Storybook for Next.js and Vite: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"!src/**/*"
|
|
84
84
|
],
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@storybook/builder-vite": "10.3.
|
|
87
|
-
"@storybook/react": "10.3.
|
|
88
|
-
"@storybook/react-vite": "10.3.
|
|
86
|
+
"@storybook/builder-vite": "10.3.4",
|
|
87
|
+
"@storybook/react": "10.3.4",
|
|
88
|
+
"@storybook/react-vite": "10.3.4",
|
|
89
89
|
"styled-jsx": "5.1.6",
|
|
90
90
|
"vite-plugin-storybook-nextjs": "^3.1.9"
|
|
91
91
|
},
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"next": "^14.1.0 || ^15.0.0 || ^16.0.0",
|
|
102
102
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
103
103
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
104
|
-
"storybook": "^10.3.
|
|
104
|
+
"storybook": "^10.3.4",
|
|
105
105
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0"
|
|
106
106
|
},
|
|
107
107
|
"peerDependenciesMeta": {
|