@storybook/angular-vite 11.0.0-beta.1 → 11.0.0-beta.3
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/build-schema.json +1 -1
- package/dist/_browser-chunks/{chunk-IEOSIOYC.js → chunk-FDLKT4EQ.js} +39 -5
- package/dist/_browser-chunks/{chunk-GCT6OYDT.js → chunk-JSKZYOEY.js} +1 -1
- package/dist/_browser-chunks/{chunk-VFDWJHES.js → chunk-OAG3JRJQ.js} +3 -3
- package/dist/_browser-chunks/{chunk-RMTRNQGG.js → chunk-VA3FEKPB.js} +39 -3
- package/dist/_node-chunks/{story-docs-template-analysis-SKEZCPXI.js → chunk-GWSNLRTA.js} +52 -23
- package/dist/_node-chunks/{chunk-MJSL2O6Q.js → chunk-KF3ADECJ.js} +6 -6
- package/dist/_node-chunks/{chunk-77GXSRPT.js → chunk-NV6YXVLU.js} +6 -6
- package/dist/_node-chunks/{chunk-HKTBFY7T.js → chunk-UTSO2W6Q.js} +7 -7
- package/dist/_node-chunks/story-docs-template-analysis-U2JRJFSJ.js +19 -0
- package/dist/builders/build-storybook/index.js +8 -8
- package/dist/builders/start-storybook/index.js +8 -8
- package/dist/client/config.js +2 -2
- package/dist/client/docs/config.js +2 -2
- package/dist/client/index.js +4 -4
- package/dist/docgen/docgen-worker.js +1651 -196
- package/dist/index.js +4 -4
- package/dist/node/index.js +6 -6
- package/dist/node/vitest.js +6 -6
- package/dist/preset.js +254 -137
- package/package.json +6 -5
- package/start-schema.json +1 -1
package/build-schema.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"loglevel": {
|
|
33
33
|
"type": "string",
|
|
34
34
|
"description": "Controls level of logging during build. Can be one of: [trace, debug, info (default), warn, error, silent].",
|
|
35
|
-
"
|
|
35
|
+
"enum": ["trace", "debug", "info", "warn", "error", "silent"]
|
|
36
36
|
},
|
|
37
37
|
"logfile": {
|
|
38
38
|
"type": "string",
|
|
@@ -25,8 +25,31 @@ import { bootstrapApplication } from "@angular/platform-browser";
|
|
|
25
25
|
import { BehaviorSubject } from "rxjs";
|
|
26
26
|
import { stringify } from "telejson";
|
|
27
27
|
|
|
28
|
+
// src/snippet-values.ts
|
|
29
|
+
var isValidIdentifier = (name) => /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(name), quoteExpressionString = (value) => `'${value.replace(/\\/g, "\\\\").replace(/'/g, "\\'").replace(/\n/g, "\\n").replace(/\r/g, "\\r")}'`, printExpressionValue = (value, unprintable) => {
|
|
30
|
+
let parents = /* @__PURE__ */ new Set(), print = (value2) => {
|
|
31
|
+
if (typeof value2 == "string")
|
|
32
|
+
return quoteExpressionString(value2);
|
|
33
|
+
if (unprintable && hasNoExpression(value2, parents))
|
|
34
|
+
return unprintable();
|
|
35
|
+
if (typeof value2 != "object" || value2 === null)
|
|
36
|
+
return `${value2}`;
|
|
37
|
+
parents.add(value2);
|
|
38
|
+
let printed = Array.isArray(value2) ? `[${value2.map((element) => print(element ?? null)).join(", ")}]` : `{${Object.entries(value2).filter(([, entryValue]) => entryValue !== void 0).map(
|
|
39
|
+
([key, entryValue]) => `${isValidIdentifier(key) ? key : quoteExpressionString(key)}: ${print(entryValue)}`
|
|
40
|
+
).join(", ")}}`;
|
|
41
|
+
return parents.delete(value2), printed;
|
|
42
|
+
};
|
|
43
|
+
return print(value);
|
|
44
|
+
}, hasNoExpression = (value, parents) => {
|
|
45
|
+
if (typeof value != "object" || value === null)
|
|
46
|
+
return typeof value == "function" || typeof value == "symbol" || typeof value == "bigint";
|
|
47
|
+
let prototype = Object.getPrototypeOf(value);
|
|
48
|
+
return parents.has(value) || !Array.isArray(value) && prototype !== Object.prototype && prototype !== null;
|
|
49
|
+
}, escapeAttributeExpression = (expression) => expression.replace(/&(?=#|\w+;)/g, "&").replace(/"/g, """), escapeTemplateLiteral = (template) => template.replace(/\\/g, "\\\\").replace(/`/g, "\\`").replace(/\$\{/g, "\\${"), inputBinding = (name, expression) => `[${name}]="${expression}"`, textValue = (value) => typeof value == "string" ? value : typeof value == "number" || typeof value == "boolean" ? String(value) : void 0, angularText = (text) => text.includes("{{") ? void 0 : text.replace(/[{}@]|\$$/g, (syntax) => `&#${syntax.charCodeAt(0)};`);
|
|
50
|
+
|
|
28
51
|
// src/template-grammar.ts
|
|
29
|
-
var
|
|
52
|
+
var formatPropInTemplate = (propertyName) => isValidIdentifier(propertyName) ? propertyName : `this['${propertyName}']`, stringifyCircular = (obj) => {
|
|
30
53
|
let seen = /* @__PURE__ */ new Set();
|
|
31
54
|
return JSON.stringify(obj, (key, value) => {
|
|
32
55
|
if (typeof value == "object" && value !== null) {
|
|
@@ -64,14 +87,14 @@ var isValidIdentifier = (name) => /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(name), forma
|
|
|
64
87
|
"source",
|
|
65
88
|
"track",
|
|
66
89
|
"wbr"
|
|
67
|
-
]), LEADING_CLASS = /^\..+/, LEADING_ATTRIBUTE = /^\[.+?]/, ID = /#([\w-]+)/, CLASS_RUN = /(\.[\w-]+)+/, ATTRIBUTE = /\[(.+?)]/g, ELEMENT_AND_ATTRIBUTES = /(\S+)(.*)/, MAX_SINGLE_LINE = 80, buildTemplate = (selector, { inputs, outputs, innerTemplate = "", selfClosing = !1 }) => {
|
|
90
|
+
]), LEADING_CLASS = /^\..+/, LEADING_ATTRIBUTE = /^\[.+?]/, ID = /#([\w-]+)/, CLASS_RUN = /(\.[\w-]+)+/, ATTRIBUTE = /\[(.+?)]/g, ELEMENT_AND_ATTRIBUTES = /(\S+)(.*)/, MAX_SINGLE_LINE = 80, asWritten = (code) => code, buildTemplate = (selector, { inputs, outputs, innerTemplate = "", selfClosing = !1 }, unmarked = asWritten) => {
|
|
68
91
|
let bindings = [
|
|
69
|
-
...inputs.map(({ name, expression }) =>
|
|
92
|
+
...inputs.map(({ name, expression, attribute }) => attribute ?? inputBinding(name, expression)),
|
|
70
93
|
...outputs.map((name) => `(${name})="${formatPropInTemplate(name)}($event)"`)
|
|
71
94
|
], firstSelector = selector.split(",")[0];
|
|
72
95
|
return (LEADING_CLASS.test(firstSelector) || LEADING_ATTRIBUTE.test(firstSelector) ? `div${firstSelector}` : firstSelector).replace(ID, ' id="$1"').replace(CLASS_RUN, (classes) => ` class="${classes.split(".").join(" ").trim()}"`).replace(ATTRIBUTE, " $1").replace(ELEMENT_AND_ATTRIBUTES, (_, element, attributes) => {
|
|
73
96
|
let closesItself = VOID_ELEMENTS.has(element) || selfClosing && element.includes("-") && innerTemplate === "", inlineTag = `<${element}${attributes}${bindings.map((binding) => ` ${binding}`).join("")}`, inline = closesItself ? `${inlineTag} />` : `${inlineTag}>${innerTemplate}</${element}>`;
|
|
74
|
-
if (inline.length <= MAX_SINGLE_LINE || bindings.
|
|
97
|
+
if (unmarked(inline).length <= MAX_SINGLE_LINE || bindings.every((binding) => unmarked(binding) === ""))
|
|
75
98
|
return inline;
|
|
76
99
|
let brokenTag = `<${element}${attributes}
|
|
77
100
|
${bindings.map((binding) => ` ${binding}`).join(`
|
|
@@ -496,7 +519,12 @@ var applicationRefs = /* @__PURE__ */ new Map(), STORY_UID_ATTRIBUTE = "data-sb-
|
|
|
496
519
|
/** Wait and destroy the platform */
|
|
497
520
|
static resetApplications(domNode) {
|
|
498
521
|
applicationRefs.forEach((appRef, appDOMNode) => {
|
|
499
|
-
!appRef.destroyed && (!domNode || appDOMNode === domNode)
|
|
522
|
+
if (!appRef.destroyed && (!domNode || appDOMNode === domNode))
|
|
523
|
+
try {
|
|
524
|
+
appRef.components.slice().forEach((componentRef) => componentRef.destroy());
|
|
525
|
+
} finally {
|
|
526
|
+
appRef.destroy();
|
|
527
|
+
}
|
|
500
528
|
});
|
|
501
529
|
}
|
|
502
530
|
/**
|
|
@@ -710,6 +738,12 @@ async function renderToCanvas({
|
|
|
710
738
|
|
|
711
739
|
export {
|
|
712
740
|
__export,
|
|
741
|
+
printExpressionValue,
|
|
742
|
+
escapeAttributeExpression,
|
|
743
|
+
escapeTemplateLiteral,
|
|
744
|
+
inputBinding,
|
|
745
|
+
textValue,
|
|
746
|
+
angularText,
|
|
713
747
|
formatPropInTemplate,
|
|
714
748
|
isComponent,
|
|
715
749
|
computesTemplateFromComponent,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JSKZYOEY.js";
|
|
4
4
|
import {
|
|
5
5
|
config_exports as config_exports2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VA3FEKPB.js";
|
|
7
7
|
import {
|
|
8
8
|
computesTemplateFromComponent,
|
|
9
9
|
formatPropInTemplate,
|
|
10
10
|
isComponent,
|
|
11
11
|
render_exports
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FDLKT4EQ.js";
|
|
13
13
|
|
|
14
14
|
// src/client/portable-stories.ts
|
|
15
15
|
import {
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export,
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
angularText,
|
|
4
|
+
computesTemplateSourceFromComponent,
|
|
5
|
+
escapeAttributeExpression,
|
|
6
|
+
escapeTemplateLiteral,
|
|
7
|
+
inputBinding,
|
|
8
|
+
printExpressionValue,
|
|
9
|
+
textValue
|
|
10
|
+
} from "./chunk-FDLKT4EQ.js";
|
|
5
11
|
|
|
6
12
|
// src/client/docs/config.ts
|
|
7
13
|
var config_exports = {};
|
|
@@ -11,6 +17,34 @@ __export(config_exports, {
|
|
|
11
17
|
});
|
|
12
18
|
import { SourceType as SourceType2 } from "storybook/internal/docs-tools";
|
|
13
19
|
|
|
20
|
+
// src/client/docs/print-hole.ts
|
|
21
|
+
import {
|
|
22
|
+
UnprintableArgError,
|
|
23
|
+
unknownHoleKind
|
|
24
|
+
} from "storybook/internal/docs-tools";
|
|
25
|
+
var printHole = (hole, value) => {
|
|
26
|
+
let arg = hole.arg ?? "", unprintable = () => {
|
|
27
|
+
throw new UnprintableArgError(arg);
|
|
28
|
+
}, expression = () => escapeAttributeExpression(printExpressionValue(value, unprintable));
|
|
29
|
+
switch (hole.kind) {
|
|
30
|
+
case "bind":
|
|
31
|
+
return escapeTemplateLiteral(expression());
|
|
32
|
+
case "prop":
|
|
33
|
+
return value === void 0 || typeof value == "function" ? "" : escapeTemplateLiteral(inputBinding(arg, expression()));
|
|
34
|
+
case "field":
|
|
35
|
+
return printExpressionValue(value, unprintable);
|
|
36
|
+
case "text":
|
|
37
|
+
return escapeTemplateLiteral(text(value) ?? unprintable());
|
|
38
|
+
default:
|
|
39
|
+
return unknownHoleKind(hole.kind);
|
|
40
|
+
}
|
|
41
|
+
}, text = (value) => {
|
|
42
|
+
if (value === void 0)
|
|
43
|
+
return "";
|
|
44
|
+
let printed = textValue(value);
|
|
45
|
+
return printed === void 0 ? void 0 : angularText(printed);
|
|
46
|
+
};
|
|
47
|
+
|
|
14
48
|
// src/client/docs/sourceDecorator.ts
|
|
15
49
|
import { SourceType } from "storybook/internal/docs-tools";
|
|
16
50
|
import { useRef, emitTransformCode, useEffect } from "storybook/preview-api";
|
|
@@ -35,7 +69,9 @@ var useStaticServiceSnippets = globalThis.FEATURES?.docgenServer === !0, paramet
|
|
|
35
69
|
docs: {
|
|
36
70
|
source: {
|
|
37
71
|
type: SourceType2.DYNAMIC,
|
|
38
|
-
language: useStaticServiceSnippets ? "ts" : "html"
|
|
72
|
+
language: useStaticServiceSnippets ? "ts" : "html",
|
|
73
|
+
// Prints a changed arg into the story-docs `template`, so the snippet follows the controls.
|
|
74
|
+
...useStaticServiceSnippets ? { printHole } : {}
|
|
39
75
|
}
|
|
40
76
|
}
|
|
41
77
|
}, decorators = useStaticServiceSnippets ? [] : [sourceDecorator];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4pl39hy6w4x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4pl39hy6w4x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4pl39hy6w4x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4pl39hy6w4x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4pl39hy6w4x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4pl39hy6w4x.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -21,7 +21,29 @@ import {
|
|
|
21
21
|
TmplAstTextAttribute,
|
|
22
22
|
parseTemplate
|
|
23
23
|
} from "@angular/compiler";
|
|
24
|
-
var
|
|
24
|
+
var expansionText = (expansion, outputs) => [
|
|
25
|
+
...expansion.inputAttributes,
|
|
26
|
+
...expansion.outputAttributes.filter(({ name }) => outputs.includes(name)).map(({ markup }) => markup)
|
|
27
|
+
].join(" "), materializeLike = (analysis, markup, expansions) => {
|
|
28
|
+
let byMarker = new Map(expansions.map((expansion) => [expansion.marker, expansion]));
|
|
29
|
+
return applyReplacements(
|
|
30
|
+
markup,
|
|
31
|
+
analysis.replacements.flatMap((replacement) => {
|
|
32
|
+
let expansion = byMarker.get(replacement.marker);
|
|
33
|
+
if (expansion === void 0)
|
|
34
|
+
return [];
|
|
35
|
+
let start = markup.indexOf(replacement.marker);
|
|
36
|
+
return [
|
|
37
|
+
{
|
|
38
|
+
...replacement,
|
|
39
|
+
start,
|
|
40
|
+
end: start + replacement.end - replacement.start,
|
|
41
|
+
text: expansionText(expansion, replacement.outputs)
|
|
42
|
+
}
|
|
43
|
+
];
|
|
44
|
+
})
|
|
45
|
+
);
|
|
46
|
+
}, StoryTemplateVisitor = class extends CombinedRecursiveAstVisitor {
|
|
25
47
|
constructor(target, expansions) {
|
|
26
48
|
super();
|
|
27
49
|
this.referencedNames = /* @__PURE__ */ new Set();
|
|
@@ -88,13 +110,14 @@ var StoryTemplateVisitor = class extends CombinedRecursiveAstVisitor {
|
|
|
88
110
|
);
|
|
89
111
|
outputAttributes.forEach(({ name }) => {
|
|
90
112
|
occupiedOutputs.add(name), this.boundOutputs.add(name);
|
|
91
|
-
})
|
|
113
|
+
});
|
|
114
|
+
let outputs2 = outputAttributes.map(({ name }) => name);
|
|
115
|
+
this.replacements.push({
|
|
92
116
|
marker: attribute.name,
|
|
93
117
|
start: attribute.sourceSpan.start.offset,
|
|
94
118
|
end: attribute.sourceSpan.end.offset,
|
|
95
|
-
text:
|
|
96
|
-
|
|
97
|
-
)
|
|
119
|
+
text: expansionText(expansion, outputs2),
|
|
120
|
+
outputs: outputs2
|
|
98
121
|
});
|
|
99
122
|
}
|
|
100
123
|
}
|
|
@@ -111,24 +134,27 @@ var StoryTemplateVisitor = class extends CombinedRecursiveAstVisitor {
|
|
|
111
134
|
if (parsed.errors)
|
|
112
135
|
return {
|
|
113
136
|
kind: "unresolvable",
|
|
114
|
-
|
|
137
|
+
...materializeWithoutAnalysis(markup, expansions),
|
|
115
138
|
errors: parsed.errors.map((error) => error.toString())
|
|
116
139
|
};
|
|
117
140
|
let target = new R3TargetBinder(null).bind({ template: parsed.nodes }), visitor = new StoryTemplateVisitor(target, expansionMap);
|
|
118
141
|
parsed.nodes.forEach((node) => visitor.visit(node));
|
|
119
142
|
let missingExpansion = visitor.replacements.length !== expansions.length;
|
|
120
143
|
missingExpansion && visitor.errors.add("An argsToTemplate expression is not inside an element start tag.");
|
|
121
|
-
let
|
|
122
|
-
|
|
144
|
+
let materialized = missingExpansion ? materializeWithoutAnalysis(markup, expansions, visitor.replacements) : {
|
|
145
|
+
markup: applyReplacements(markup, visitor.replacements),
|
|
146
|
+
replacements: visitor.replacements
|
|
147
|
+
};
|
|
148
|
+
return visitor.errors.size > 0 ? { kind: "unresolvable", ...materialized, errors: [...visitor.errors] } : {
|
|
123
149
|
kind: "resolved",
|
|
124
|
-
|
|
150
|
+
...materialized,
|
|
125
151
|
referencedNames: [...visitor.referencedNames],
|
|
126
152
|
boundOutputs: [...visitor.boundOutputs]
|
|
127
153
|
};
|
|
128
154
|
} catch (error) {
|
|
129
155
|
return {
|
|
130
156
|
kind: "unresolvable",
|
|
131
|
-
|
|
157
|
+
...materializeWithoutAnalysis(markup, expansions),
|
|
132
158
|
errors: [error instanceof Error ? error.message : String(error)]
|
|
133
159
|
};
|
|
134
160
|
}
|
|
@@ -144,20 +170,23 @@ var StoryTemplateVisitor = class extends CombinedRecursiveAstVisitor {
|
|
|
144
170
|
if (replacedMarkers.has(expansion.marker))
|
|
145
171
|
return [];
|
|
146
172
|
let start = markup.indexOf(expansion.marker);
|
|
147
|
-
|
|
173
|
+
if (start === -1)
|
|
174
|
+
return [];
|
|
175
|
+
let outputs = expansion.outputAttributes.map(({ name }) => name);
|
|
176
|
+
return [
|
|
148
177
|
{
|
|
149
178
|
marker: expansion.marker,
|
|
150
179
|
start,
|
|
151
180
|
end: start + expansion.marker.length,
|
|
152
|
-
text:
|
|
153
|
-
|
|
154
|
-
...expansion.outputAttributes.map(({ markup: attribute }) => attribute)
|
|
155
|
-
].join(" ")
|
|
181
|
+
text: expansionText(expansion, outputs),
|
|
182
|
+
outputs
|
|
156
183
|
}
|
|
157
184
|
];
|
|
158
|
-
});
|
|
159
|
-
return applyReplacements(markup,
|
|
185
|
+
}), all = [...replacements, ...fallbackReplacements];
|
|
186
|
+
return { markup: applyReplacements(markup, all), replacements: all };
|
|
160
187
|
};
|
|
188
|
+
|
|
161
189
|
export {
|
|
190
|
+
materializeLike,
|
|
162
191
|
analyzeStoryTemplate
|
|
163
192
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4pl39hy6w4x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4pl39hy6w4x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4pl39hy6w4x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4pl39hy6w4x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4pl39hy6w4x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4pl39hy6w4x.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_4pl39hy6w4x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4pl39hy6w4x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4pl39hy6w4x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4pl39hy6w4x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4pl39hy6w4x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4pl39hy6w4x.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4pl39hy6w4x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4pl39hy6w4x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4pl39hy6w4x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4pl39hy6w4x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4pl39hy6w4x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4pl39hy6w4x.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
up
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NV6YXVLU.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/empathic/package.mjs
|
|
17
17
|
function up2(options) {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4pl39hy6w4x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4pl39hy6w4x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4pl39hy6w4x from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4pl39hy6w4x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4pl39hy6w4x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4pl39hy6w4x.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
analyzeStoryTemplate,
|
|
14
|
+
materializeLike
|
|
15
|
+
} from "./chunk-GWSNLRTA.js";
|
|
16
|
+
export {
|
|
17
|
+
analyzeStoryTemplate,
|
|
18
|
+
materializeLike
|
|
19
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4pl39hy6w4x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4pl39hy6w4x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4pl39hy6w4x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4pl39hy6w4x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4pl39hy6w4x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4pl39hy6w4x.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
printErrorDetails,
|
|
17
17
|
requireBuilderTarget,
|
|
18
18
|
up
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-UTSO2W6Q.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveTsconfig
|
|
22
|
-
} from "../../_node-chunks/chunk-
|
|
22
|
+
} from "../../_node-chunks/chunk-NV6YXVLU.js";
|
|
23
23
|
|
|
24
24
|
// src/builders/build-storybook/index.ts
|
|
25
25
|
import { readFileSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_4pl39hy6w4x from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_4pl39hy6w4x from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_4pl39hy6w4x from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_4pl39hy6w4x.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_4pl39hy6w4x.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_4pl39hy6w4x.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
printErrorDetails,
|
|
17
17
|
requireBuilderTarget,
|
|
18
18
|
up
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-UTSO2W6Q.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveTsconfig
|
|
22
|
-
} from "../../_node-chunks/chunk-
|
|
22
|
+
} from "../../_node-chunks/chunk-NV6YXVLU.js";
|
|
23
23
|
|
|
24
24
|
// src/builders/start-storybook/index.ts
|
|
25
25
|
import { readFileSync } from "node:fs";
|
package/dist/client/config.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
argTypesEnhancers,
|
|
3
3
|
decorateStory,
|
|
4
4
|
parameters
|
|
5
|
-
} from "../_browser-chunks/chunk-
|
|
5
|
+
} from "../_browser-chunks/chunk-JSKZYOEY.js";
|
|
6
6
|
import {
|
|
7
7
|
render,
|
|
8
8
|
renderToCanvas
|
|
9
|
-
} from "../_browser-chunks/chunk-
|
|
9
|
+
} from "../_browser-chunks/chunk-FDLKT4EQ.js";
|
|
10
10
|
export {
|
|
11
11
|
decorateStory as applyDecorators,
|
|
12
12
|
argTypesEnhancers,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decorators,
|
|
3
3
|
parameters
|
|
4
|
-
} from "../../_browser-chunks/chunk-
|
|
5
|
-
import "../../_browser-chunks/chunk-
|
|
4
|
+
} from "../../_browser-chunks/chunk-VA3FEKPB.js";
|
|
5
|
+
import "../../_browser-chunks/chunk-FDLKT4EQ.js";
|
|
6
6
|
export {
|
|
7
7
|
decorators,
|
|
8
8
|
parameters
|
package/dist/client/index.js
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
componentWrapperDecorator,
|
|
6
6
|
moduleMetadata,
|
|
7
7
|
setProjectAnnotations
|
|
8
|
-
} from "../_browser-chunks/chunk-
|
|
9
|
-
import "../_browser-chunks/chunk-
|
|
10
|
-
import "../_browser-chunks/chunk-
|
|
11
|
-
import "../_browser-chunks/chunk-
|
|
8
|
+
} from "../_browser-chunks/chunk-OAG3JRJQ.js";
|
|
9
|
+
import "../_browser-chunks/chunk-JSKZYOEY.js";
|
|
10
|
+
import "../_browser-chunks/chunk-VA3FEKPB.js";
|
|
11
|
+
import "../_browser-chunks/chunk-FDLKT4EQ.js";
|
|
12
12
|
export {
|
|
13
13
|
__definePreview,
|
|
14
14
|
applicationConfig,
|