@storybook/angular-vite 11.0.0-beta.0 → 11.0.0-beta.2

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.
@@ -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 isValidIdentifier = (name) => /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(name), formatPropInTemplate = (propertyName) => isValidIdentifier(propertyName) ? propertyName : `this['${propertyName}']`, stringifyCircular = (obj) => {
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 }) => `[${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.length === 0)
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) && appRef.destroy();
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,
@@ -3,7 +3,7 @@ import {
3
3
  computesTemplateFromComponent,
4
4
  render,
5
5
  renderToCanvas
6
- } from "./chunk-IEOSIOYC.js";
6
+ } from "./chunk-FDLKT4EQ.js";
7
7
 
8
8
  // src/client/config.ts
9
9
  var config_exports = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  config_exports
3
- } from "./chunk-GCT6OYDT.js";
3
+ } from "./chunk-JSKZYOEY.js";
4
4
  import {
5
5
  config_exports as config_exports2
6
- } from "./chunk-RMTRNQGG.js";
6
+ } from "./chunk-VA3FEKPB.js";
7
7
  import {
8
8
  computesTemplateFromComponent,
9
9
  formatPropInTemplate,
10
10
  isComponent,
11
11
  render_exports
12
- } from "./chunk-IEOSIOYC.js";
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
- computesTemplateSourceFromComponent
4
- } from "./chunk-IEOSIOYC.js";
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 CJS_COMPAT_NODE_URL_vyp19ed43l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_vyp19ed43l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_vyp19ed43l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yl4v0bl5wmj from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yl4v0bl5wmj from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_vyp19ed43l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_vyp19ed43l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_vyp19ed43l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yl4v0bl5wmj.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yl4v0bl5wmj.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj.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 CJS_COMPAT_NODE_URL_vyp19ed43l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_vyp19ed43l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_vyp19ed43l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yl4v0bl5wmj from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yl4v0bl5wmj from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_vyp19ed43l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_vyp19ed43l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_vyp19ed43l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yl4v0bl5wmj.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yl4v0bl5wmj.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj.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 CJS_COMPAT_NODE_URL_vyp19ed43l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_vyp19ed43l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_vyp19ed43l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yl4v0bl5wmj from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yl4v0bl5wmj from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_vyp19ed43l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_vyp19ed43l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_vyp19ed43l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yl4v0bl5wmj.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yl4v0bl5wmj.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj.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 StoryTemplateVisitor = class extends CombinedRecursiveAstVisitor {
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
- }), this.replacements.push({
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: [...expansion.inputAttributes, ...outputAttributes.map(({ markup }) => markup)].join(
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
- markup: materializeWithoutAnalysis(markup, expansions),
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 materializedMarkup = missingExpansion ? materializeWithoutAnalysis(markup, expansions, visitor.replacements) : applyReplacements(markup, visitor.replacements);
122
- return visitor.errors.size > 0 ? { kind: "unresolvable", markup: materializedMarkup, errors: [...visitor.errors] } : {
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
- markup: materializedMarkup,
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
- markup: materializeWithoutAnalysis(markup, expansions),
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
- return start === -1 ? [] : [
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
- ...expansion.inputAttributes,
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, [...replacements, ...fallbackReplacements]);
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,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_vyp19ed43l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_vyp19ed43l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_vyp19ed43l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yl4v0bl5wmj from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yl4v0bl5wmj from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_vyp19ed43l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_vyp19ed43l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_vyp19ed43l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yl4v0bl5wmj.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yl4v0bl5wmj.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj.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-ATBUCPE5.js";
14
+ } from "./chunk-ETGWD5QX.js";
15
15
 
16
16
  // ../../../node_modules/empathic/package.mjs
17
17
  function up2(options) {
@@ -32,10 +32,10 @@ function requireBuilderTarget(context) {
32
32
  }
33
33
 
34
34
  // src/builders/utils/error-handler.ts
35
- import { logger, instance as npmLog } from "storybook/internal/node-logger";
35
+ import { logger } from "storybook/internal/node-logger";
36
36
  import { dedent } from "ts-dedent";
37
37
  var printErrorDetails = (error) => {
38
- npmLog.heading = "", error instanceof Error ? error.error ? logger.error(error.error) : error.stats && error.stats.compilation.errors ? error.stats.compilation.errors.forEach((e) => logger.log(e)) : logger.error(error) : error.compilation?.errors && error.compilation.errors.forEach((e) => logger.log(e));
38
+ error instanceof Error ? error.error ? logger.error(error.error) : error.stats && error.stats.compilation.errors ? error.stats.compilation.errors.forEach((e) => logger.log(e)) : logger.error(error) : error.compilation?.errors && error.compilation.errors.forEach((e) => logger.log(e));
39
39
  }, errorSummary = (error) => error.close ? dedent`
40
40
  FATAL broken build!, will close the process,
41
41
  Fix the error below and restart storybook.
@@ -0,0 +1,19 @@
1
+ import CJS_COMPAT_NODE_URL_yl4v0bl5wmj from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yl4v0bl5wmj from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_yl4v0bl5wmj.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yl4v0bl5wmj.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj.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-VQ2WVY73.js";
16
+ export {
17
+ analyzeStoryTemplate,
18
+ materializeLike
19
+ };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_vyp19ed43l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_vyp19ed43l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_vyp19ed43l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yl4v0bl5wmj from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yl4v0bl5wmj from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_vyp19ed43l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_vyp19ed43l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_vyp19ed43l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yl4v0bl5wmj.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yl4v0bl5wmj.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj.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-I67O6S5U.js";
19
+ } from "../../_node-chunks/chunk-WCYA5VMZ.js";
20
20
  import {
21
21
  resolveTsconfig
22
- } from "../../_node-chunks/chunk-ATBUCPE5.js";
22
+ } from "../../_node-chunks/chunk-ETGWD5QX.js";
23
23
 
24
24
  // src/builders/build-storybook/index.ts
25
25
  import { readFileSync } from "node:fs";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_vyp19ed43l from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_vyp19ed43l from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_vyp19ed43l from "node:module";
1
+ import CJS_COMPAT_NODE_URL_yl4v0bl5wmj from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_yl4v0bl5wmj from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_vyp19ed43l.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_vyp19ed43l.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_vyp19ed43l.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_yl4v0bl5wmj.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_yl4v0bl5wmj.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_yl4v0bl5wmj.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-I67O6S5U.js";
19
+ } from "../../_node-chunks/chunk-WCYA5VMZ.js";
20
20
  import {
21
21
  resolveTsconfig
22
- } from "../../_node-chunks/chunk-ATBUCPE5.js";
22
+ } from "../../_node-chunks/chunk-ETGWD5QX.js";
23
23
 
24
24
  // src/builders/start-storybook/index.ts
25
25
  import { readFileSync } from "node:fs";
@@ -2,11 +2,11 @@ import {
2
2
  argTypesEnhancers,
3
3
  decorateStory,
4
4
  parameters
5
- } from "../_browser-chunks/chunk-GCT6OYDT.js";
5
+ } from "../_browser-chunks/chunk-JSKZYOEY.js";
6
6
  import {
7
7
  render,
8
8
  renderToCanvas
9
- } from "../_browser-chunks/chunk-IEOSIOYC.js";
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-RMTRNQGG.js";
5
- import "../../_browser-chunks/chunk-IEOSIOYC.js";
4
+ } from "../../_browser-chunks/chunk-VA3FEKPB.js";
5
+ import "../../_browser-chunks/chunk-FDLKT4EQ.js";
6
6
  export {
7
7
  decorators,
8
8
  parameters
@@ -5,10 +5,10 @@ import {
5
5
  componentWrapperDecorator,
6
6
  moduleMetadata,
7
7
  setProjectAnnotations
8
- } from "../_browser-chunks/chunk-VFDWJHES.js";
9
- import "../_browser-chunks/chunk-GCT6OYDT.js";
10
- import "../_browser-chunks/chunk-RMTRNQGG.js";
11
- import "../_browser-chunks/chunk-IEOSIOYC.js";
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,
@@ -0,0 +1,2 @@
1
+ // src/client/vitest-compiler-setup.ts
2
+ import "@angular/compiler";