@storybook/angular 10.6.0-alpha.5 → 10.6.0-alpha.6

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  config_exports
3
- } from "./chunk-276WSTMN.js";
3
+ } from "./chunk-ZPUBAGJU.js";
4
4
  import {
5
5
  config_exports as config_exports2
6
6
  } from "./chunk-RV6FL7AO.js";
@@ -418,13 +418,23 @@ var EncodingMode;
418
418
  EncodingMode2[EncodingMode2.UTF8 = 0] = "UTF8", EncodingMode2[EncodingMode2.ASCII = 1] = "ASCII", EncodingMode2[EncodingMode2.Extensive = 2] = "Extensive", EncodingMode2[EncodingMode2.Attribute = 3] = "Attribute", EncodingMode2[EncodingMode2.Text = 4] = "Text";
419
419
  })(EncodingMode || (EncodingMode = {}));
420
420
 
421
- // ../../lib/angular-compodoc/dist/_browser-chunks/chunk-W2GR2XFI.js
421
+ // ../../lib/angular-compodoc/dist/_browser-chunks/chunk-Q5BEVNMG.js
422
422
  var NOOP_LOGGER = {
423
423
  warn: () => {
424
424
  },
425
425
  debug: () => {
426
426
  }
427
- }, isMethod = (methodOrProp) => methodOrProp.args !== void 0, isRequired = (item) => (item.required ?? !0) && !item.optional, checkValidComponentOrDirective = (component) => {
427
+ };
428
+ var SECTION_ORDER = [
429
+ "properties",
430
+ "inputs",
431
+ "outputs",
432
+ "methods",
433
+ "view child",
434
+ "view children",
435
+ "content child",
436
+ "content children"
437
+ ], isMethod = (methodOrProp) => methodOrProp.args !== void 0, isRequired = (item) => (item.required ?? !0) && !item.optional, checkValidComponentOrDirective = (component) => {
428
438
  if (!component.name)
429
439
  throw new Error(`Invalid component ${JSON.stringify(component)}`);
430
440
  }, checkValidCompodocJson = (compodocJson) => {
@@ -458,17 +468,20 @@ var NOOP_LOGGER = {
458
468
  ).join(", ")}) => ${item.returnType}`, extractTypeFromValue = (defaultValue) => {
459
469
  let valueType = typeof defaultValue;
460
470
  return defaultValue || valueType === "number" || valueType === "boolean" || valueType === "string" ? valueType : null;
461
- }, pickDeclaration = (candidates, componentFile) => candidates.length <= 1 ? candidates[0] : (componentFile ? candidates.find((candidate) => candidate.file === componentFile) : void 0) ?? [...candidates].sort((a, b) => (a.file ?? "").localeCompare(b.file ?? ""))[0], extractEnumValues = (compodocType, compodocJson, componentFile) => {
462
- let enumType = pickDeclaration(
471
+ }, pickDeclaration = (candidates, componentFile) => candidates.length <= 1 ? candidates[0] : (componentFile ? candidates.find((candidate) => candidate.file === componentFile) : void 0) ?? [...candidates].sort((a, b) => (a.file ?? "").localeCompare(b.file ?? ""))[0], selectableUnionMembers = (type) => type.split("|").map((member) => member.trim()).filter((member) => member !== "undefined" && member !== "null"), hasEnumValue = (child) => !!child.value, extractEnumValues = (compodocType, compodocJson, componentFile, modern = !1) => {
472
+ let childs = pickDeclaration(
463
473
  compodocJson?.miscellaneous?.enumerations?.filter((x) => x.name === compodocType) ?? [],
464
474
  componentFile
465
- );
466
- if (Array.isArray(enumType?.childs) && enumType.childs.every((x) => x.value))
467
- return enumType.childs.map((x) => x.value);
475
+ )?.childs;
476
+ if (Array.isArray(childs) && childs.every(hasEnumValue))
477
+ return childs.map((child) => child.value);
468
478
  if (typeof compodocType != "string" || compodocType.indexOf("|") === -1)
469
479
  return null;
480
+ let selectable = modern ? selectableUnionMembers(compodocType) : compodocType.split("|").map((value) => value.trim());
481
+ if (selectable.length === 0)
482
+ return null;
470
483
  try {
471
- return compodocType.split("|").map((value) => JSON.parse(value));
484
+ return selectable.map((value) => JSON.parse(value));
472
485
  } catch {
473
486
  return null;
474
487
  }
@@ -480,7 +493,7 @@ var NOOP_LOGGER = {
480
493
  componentFile
481
494
  );
482
495
  return typeAlias ? (seen.add(compodocType), resolveTypealias(typeAlias.rawtype, compodocJson, componentFile, seen)) : compodocType;
483
- }, extractType = (property, defaultValue, compodocJson, componentFile) => {
496
+ }, isFunctionTypeString = (compodocType) => compodocType === "function" || /^\(.*\)\s*=>/.test(compodocType), extractType = (property, defaultValue, compodocJson, componentFile, modern = !1) => {
484
497
  let compodocType = property.type || extractTypeFromValue(defaultValue);
485
498
  switch (compodocType) {
486
499
  case "string":
@@ -490,7 +503,15 @@ var NOOP_LOGGER = {
490
503
  case null:
491
504
  return { name: "other", value: "void" };
492
505
  default: {
493
- let resolvedType = resolveTypealias(compodocType, compodocJson, componentFile), enumValues = extractEnumValues(resolvedType, compodocJson, componentFile);
506
+ if (modern && typeof compodocType == "string" && isFunctionTypeString(compodocType))
507
+ return { name: "function" };
508
+ let resolvedType = resolveTypealias(compodocType, compodocJson, componentFile);
509
+ if (modern && typeof resolvedType == "string" && resolvedType.indexOf("|") !== -1) {
510
+ let members = [...new Set(selectableUnionMembers(resolvedType))];
511
+ if (members.length === 1 && ["string", "boolean", "number"].includes(members[0]))
512
+ return { name: members[0] };
513
+ }
514
+ let enumValues = extractEnumValues(resolvedType, compodocJson, componentFile, modern);
494
515
  return enumValues ? { name: "enum", value: enumValues } : { name: "other", value: "empty-enum" };
495
516
  }
496
517
  }
@@ -520,44 +541,84 @@ var NOOP_LOGGER = {
520
541
  default:
521
542
  return defaultValue;
522
543
  }
523
- }, extractDefaultValueFromComments = (property, value, unwrapHtml2) => {
544
+ }, castDefaultValueModern = (property, defaultValue) => {
545
+ if (defaultValue !== void 0)
546
+ switch (property.type) {
547
+ case "boolean":
548
+ return defaultValue === "true" || defaultValue === "false" ? defaultValue === "true" : defaultValue;
549
+ case "number": {
550
+ let parsed = Number(defaultValue);
551
+ return Number.isNaN(parsed) && defaultValue !== "NaN" ? defaultValue : parsed;
552
+ }
553
+ case "EventEmitter":
554
+ return;
555
+ case "string":
556
+ return defaultValue;
557
+ default:
558
+ return castDefaultValue(property, defaultValue);
559
+ }
560
+ }, extractDefaultValueFromComments = (property, value, unwrapHtml2, modern) => {
524
561
  let commentValue = value;
525
562
  return property.jsdoctags.forEach((tag) => {
526
563
  let tagName = tag.tagName.escapedText;
527
- (tagName === "default" || tagName === "defaultvalue") && (commentValue = unwrapHtml2(tag.comment));
564
+ if (tagName === "default" || tagName === "defaultvalue") {
565
+ if (modern) {
566
+ tag.comment !== void 0 && (commentValue = unquote(unwrapHtml2(tag.comment).trim()));
567
+ return;
568
+ }
569
+ commentValue = unwrapHtml2(tag.comment);
570
+ }
528
571
  }), commentValue;
529
- }, extractDefaultValue = (property, logger2, unwrapHtml2) => {
572
+ }, unquote = (value) => value.replace(/^'(.*)'$/, "$1").replace(/^"(.*)"$/, "$1"), extractDefaultValue = (property, logger2, unwrapHtml2, modern) => {
530
573
  try {
531
574
  let value = property.defaultValue?.replace(/^'(.*)'$/, "$1");
532
- return value = castDefaultValue(property, value), value == null && (property.jsdoctags?.length ?? 0) > 0 && (value = extractDefaultValueFromComments(property, value, unwrapHtml2)), value;
575
+ return value = modern ? castDefaultValueModern(property, value) : castDefaultValue(property, value), value == null && (property.jsdoctags?.length ?? 0) > 0 && (value = extractDefaultValueFromComments(property, value, unwrapHtml2, modern)), value;
533
576
  } catch {
534
577
  logger2.debug(`Error extracting ${property.name}: ${property.defaultValue}`);
535
578
  return;
536
579
  }
537
- }, readMembers = (componentData, key) => componentData[key] || [], getModelProperties = (componentData) => {
538
- let inputsByName = new Map(
539
- readMembers(componentData, "inputsClass").map((item) => [item.name, item])
540
- );
541
- return readMembers(componentData, "outputsClass").filter((item) => {
580
+ }, extractMemberJsDocTags = (member, unwrapHtml2) => {
581
+ let deprecated, returns;
582
+ for (let tag of member.jsdoctags ?? []) {
583
+ let tagName = tag.tagName?.escapedText;
584
+ tagName === "deprecated" ? deprecated = tag.comment === void 0 ? "" : unwrapHtml2(tag.comment).trim() : (tagName === "returns" || tagName === "return") && tag.comment !== void 0 && (returns = { description: unwrapHtml2(tag.comment).trim() });
585
+ }
586
+ if (!(deprecated === void 0 && returns === void 0))
587
+ return {
588
+ ...deprecated !== void 0 ? { deprecated } : {},
589
+ ...returns !== void 0 ? { returns } : {}
590
+ };
591
+ }, readMembers = (componentData, key) => componentData[key] || [], isDirectiveEntry = (componentData) => componentData.type === "component" || componentData.type === "directive", getModelProperties = (componentData) => {
592
+ if (!isDirectiveEntry(componentData))
593
+ return [];
594
+ let inputsByName = new Map(componentData.inputsClass.map((item) => [item.name, item]));
595
+ return componentData.outputsClass.filter((item) => {
542
596
  let input = inputsByName.get(item.name);
543
597
  return input?.line !== void 0 && input.line === item.line;
544
598
  });
545
- }, extractArgTypesFromData = (componentData, { compodocJson, filterNonInputControls, logger: logger2 = NOOP_LOGGER, unwrapHtml: unwrapHtml2 }) => {
546
- let sectionToItems = {}, componentClasses = filterNonInputControls ? ["inputsClass"] : ["propertiesClass", "methodsClass", "inputsClass", "outputsClass"], compodocClasses = ["component", "directive"].includes(
547
- componentData.type
548
- ) ? componentClasses : ["properties", "methods"], modelProperties = getModelProperties(componentData), modelPropertyNames = new Set(modelProperties.map((item) => item.name));
599
+ }, extractArgTypesFromData = (componentData, {
600
+ compodocJson,
601
+ filterNonInputControls,
602
+ logger: logger2 = NOOP_LOGGER,
603
+ unwrapHtml: unwrapHtml2,
604
+ modern = !1
605
+ }) => {
606
+ let sectionToItems = {}, componentClasses = filterNonInputControls ? ["inputsClass"] : ["propertiesClass", "methodsClass", "inputsClass", "outputsClass"], compodocClasses = isDirectiveEntry(componentData) ? componentClasses : ["properties", "methods"], modelProperties = getModelProperties(componentData), modelPropertyNames = new Set(modelProperties.map((item) => item.name));
549
607
  compodocClasses.forEach((key) => {
550
608
  readMembers(componentData, key).forEach((item) => {
609
+ if (modern && item.name.startsWith("#"))
610
+ return;
551
611
  let section = mapItemToSection(key, item);
552
612
  if (key === "outputsClass" && !isMethod(item) && modelPropertyNames.has(item.name))
553
613
  return;
554
- let defaultValue = isMethod(item) ? void 0 : extractDefaultValue(item, logger2, unwrapHtml2), type = isMethod(item) || section !== "inputs" && section !== "properties" ? { name: "other", value: "void" } : extractType(item, defaultValue, compodocJson, componentData.file), action = section === "outputs" ? { action: item.name } : {}, argType = {
614
+ let defaultValue = isMethod(item) ? void 0 : extractDefaultValue(item, logger2, unwrapHtml2, modern), type = isMethod(item) || section !== "inputs" && section !== "properties" ? { name: "other", value: "void" } : extractType(item, defaultValue, compodocJson, componentData.file, modern), action = section === "outputs" ? { action: item.name } : {}, jsDocTags = modern ? extractMemberJsDocTags(item, unwrapHtml2) : void 0, argType = {
555
615
  name: item.name,
556
616
  description: item.rawdescription || item.description,
557
617
  type,
558
618
  ...action,
559
619
  table: {
560
620
  category: section,
621
+ ...jsDocTags !== void 0 ? { jsDocTags } : {},
561
622
  type: {
562
623
  summary: isMethod(item) ? displaySignature(item) : item.type,
563
624
  required: isMethod(item) ? !1 : isRequired(item)
@@ -577,26 +638,14 @@ var NOOP_LOGGER = {
577
638
  category: "outputs",
578
639
  type: {
579
640
  summary: `(e: ${item.type}) => void`,
580
- // An output is never required to bind, and a real output says so via Compodoc's own
581
- // flag. This one is synthesized, so it has to say so itself rather than inheriting the
582
- // requiredness of the model input it derives from.
583
641
  required: !1
584
642
  }
585
643
  }
586
644
  };
587
645
  sectionToItems.outputs || (sectionToItems.outputs = []), sectionToItems.outputs.push(argType);
588
646
  });
589
- let SECTIONS = [
590
- "properties",
591
- "inputs",
592
- "outputs",
593
- "methods",
594
- "view child",
595
- "view children",
596
- "content child",
597
- "content children"
598
- ], argTypes = {};
599
- return SECTIONS.forEach((section) => {
647
+ let argTypes = {};
648
+ return SECTION_ORDER.forEach((section) => {
600
649
  let items = sectionToItems[section];
601
650
  items && items.forEach((argType) => {
602
651
  argTypes[argType.name] = argType;
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_5hd9c8tco0c from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_5hd9c8tco0c from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_5hd9c8tco0c from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ka10qkhlmxh from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ka10qkhlmxh from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ka10qkhlmxh from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_5hd9c8tco0c.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_5hd9c8tco0c.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_5hd9c8tco0c.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ka10qkhlmxh.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ka10qkhlmxh.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ka10qkhlmxh.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 CJS_COMPAT_NODE_URL_5hd9c8tco0c from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_5hd9c8tco0c from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_5hd9c8tco0c from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ka10qkhlmxh from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ka10qkhlmxh from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ka10qkhlmxh from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_5hd9c8tco0c.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_5hd9c8tco0c.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_5hd9c8tco0c.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ka10qkhlmxh.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ka10qkhlmxh.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ka10qkhlmxh.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-OQZZRNKP.js";
14
+ } from "./chunk-UNXAF6BE.js";
15
15
 
16
16
  // ../../../node_modules/empathic/package.mjs
17
17
  function up2(options) {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_5hd9c8tco0c from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_5hd9c8tco0c from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_5hd9c8tco0c from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ka10qkhlmxh from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ka10qkhlmxh from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ka10qkhlmxh from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_5hd9c8tco0c.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_5hd9c8tco0c.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_5hd9c8tco0c.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ka10qkhlmxh.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ka10qkhlmxh.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ka10qkhlmxh.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_5hd9c8tco0c from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_5hd9c8tco0c from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_5hd9c8tco0c from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ka10qkhlmxh from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ka10qkhlmxh from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ka10qkhlmxh from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_5hd9c8tco0c.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_5hd9c8tco0c.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_5hd9c8tco0c.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ka10qkhlmxh.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ka10qkhlmxh.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ka10qkhlmxh.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -14,10 +14,10 @@ import {
14
14
  printErrorDetails,
15
15
  runCompodoc,
16
16
  up as up2
17
- } from "../../_node-chunks/chunk-XDL2WC2S.js";
17
+ } from "../../_node-chunks/chunk-LMHKUX55.js";
18
18
  import {
19
19
  up
20
- } from "../../_node-chunks/chunk-OQZZRNKP.js";
20
+ } from "../../_node-chunks/chunk-UNXAF6BE.js";
21
21
 
22
22
  // src/builders/build-storybook/index.ts
23
23
  import { readFileSync } from "node:fs";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_5hd9c8tco0c from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_5hd9c8tco0c from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_5hd9c8tco0c from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ka10qkhlmxh from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ka10qkhlmxh from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ka10qkhlmxh from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_5hd9c8tco0c.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_5hd9c8tco0c.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_5hd9c8tco0c.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ka10qkhlmxh.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ka10qkhlmxh.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ka10qkhlmxh.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -14,10 +14,10 @@ import {
14
14
  printErrorDetails,
15
15
  runCompodoc,
16
16
  up as up2
17
- } from "../../_node-chunks/chunk-XDL2WC2S.js";
17
+ } from "../../_node-chunks/chunk-LMHKUX55.js";
18
18
  import {
19
19
  up
20
- } from "../../_node-chunks/chunk-OQZZRNKP.js";
20
+ } from "../../_node-chunks/chunk-UNXAF6BE.js";
21
21
 
22
22
  // src/builders/start-storybook/index.ts
23
23
  import { readFileSync } from "node:fs";
@@ -2,7 +2,7 @@ import {
2
2
  argTypesEnhancers,
3
3
  decorateStory,
4
4
  parameters
5
- } from "../_browser-chunks/chunk-276WSTMN.js";
5
+ } from "../_browser-chunks/chunk-ZPUBAGJU.js";
6
6
  import {
7
7
  render,
8
8
  renderToCanvas
@@ -5,8 +5,8 @@ import {
5
5
  componentWrapperDecorator,
6
6
  moduleMetadata,
7
7
  setProjectAnnotations
8
- } from "../_browser-chunks/chunk-HQ7BK4IK.js";
9
- import "../_browser-chunks/chunk-276WSTMN.js";
8
+ } from "../_browser-chunks/chunk-4JGENPWD.js";
9
+ import "../_browser-chunks/chunk-ZPUBAGJU.js";
10
10
  import "../_browser-chunks/chunk-RV6FL7AO.js";
11
11
  import "../_browser-chunks/chunk-FPQDYJYM.js";
12
12
  export {
package/dist/index.js CHANGED
@@ -5,8 +5,8 @@ import {
5
5
  componentWrapperDecorator,
6
6
  moduleMetadata,
7
7
  setProjectAnnotations
8
- } from "./_browser-chunks/chunk-HQ7BK4IK.js";
9
- import "./_browser-chunks/chunk-276WSTMN.js";
8
+ } from "./_browser-chunks/chunk-4JGENPWD.js";
9
+ import "./_browser-chunks/chunk-ZPUBAGJU.js";
10
10
  import "./_browser-chunks/chunk-RV6FL7AO.js";
11
11
  import "./_browser-chunks/chunk-FPQDYJYM.js";
12
12
  export {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_5hd9c8tco0c from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_5hd9c8tco0c from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_5hd9c8tco0c from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ka10qkhlmxh from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ka10qkhlmxh from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ka10qkhlmxh from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_5hd9c8tco0c.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_5hd9c8tco0c.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_5hd9c8tco0c.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ka10qkhlmxh.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ka10qkhlmxh.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ka10qkhlmxh.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/dist/preset.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_5hd9c8tco0c from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_5hd9c8tco0c from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_5hd9c8tco0c from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ka10qkhlmxh from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ka10qkhlmxh from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ka10qkhlmxh from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_5hd9c8tco0c.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_5hd9c8tco0c.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_5hd9c8tco0c.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ka10qkhlmxh.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ka10qkhlmxh.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ka10qkhlmxh.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 CJS_COMPAT_NODE_URL_5hd9c8tco0c from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_5hd9c8tco0c from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_5hd9c8tco0c from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ka10qkhlmxh from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ka10qkhlmxh from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ka10qkhlmxh from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_5hd9c8tco0c.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_5hd9c8tco0c.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_5hd9c8tco0c.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ka10qkhlmxh.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ka10qkhlmxh.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ka10qkhlmxh.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 "../_node-chunks/chunk-OQZZRNKP.js";
14
+ } from "../_node-chunks/chunk-UNXAF6BE.js";
15
15
 
16
16
  // src/server/framework-preset-angular-cli.ts
17
17
  import { logger } from "storybook/internal/node-logger";
@@ -20,13 +20,181 @@ import { targetFromTargetString } from "@angular-devkit/architect";
20
20
  import { logging } from "@angular-devkit/core";
21
21
  import { getProjectRoot, resolvePackageDir } from "storybook/internal/common";
22
22
 
23
- // ../../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
24
- var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
23
+ // ../../../node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
24
+ var _lazyMatch = () => {
25
+ var __lib__ = (() => {
26
+ var m = Object.defineProperty, V = Object.getOwnPropertyDescriptor, G = Object.getOwnPropertyNames, T = Object.prototype.hasOwnProperty, q = (r, e) => {
27
+ for (var n in e) m(r, n, { get: e[n], enumerable: !0 });
28
+ }, H = (r, e, n, a) => {
29
+ if (e && typeof e == "object" || typeof e == "function") for (let t of G(e)) !T.call(r, t) && t !== n && m(r, t, { get: () => e[t], enumerable: !(a = V(e, t)) || a.enumerable });
30
+ return r;
31
+ }, J = (r) => H(m({}, "__esModule", { value: !0 }), r), w = {};
32
+ q(w, { default: () => re });
33
+ var A = (r) => Array.isArray(r), d = (r) => typeof r == "function", Q = (r) => r.length === 0, W = (r) => typeof r == "number", K = (r) => typeof r == "object" && r !== null, X = (r) => r instanceof RegExp, b = (r) => typeof r == "string", h = (r) => r === void 0, Y = (r) => {
34
+ let e = /* @__PURE__ */ new Map();
35
+ return (n) => {
36
+ let a = e.get(n);
37
+ if (a) return a;
38
+ let t = r(n);
39
+ return e.set(n, t), t;
40
+ };
41
+ }, rr = (r, e, n = {}) => {
42
+ let a = { cache: {}, input: r, index: 0, indexMax: 0, options: n, output: [] };
43
+ if (v(e)(a) && a.index === r.length) return a.output;
44
+ throw new Error(`Failed to parse at index ${a.indexMax}`);
45
+ }, i = (r, e) => A(r) ? er(r, e) : b(r) ? ar(r, e) : nr(r, e), er = (r, e) => {
46
+ let n = {};
47
+ for (let a of r) {
48
+ if (a.length !== 1) throw new Error(`Invalid character: "${a}"`);
49
+ let t = a.charCodeAt(0);
50
+ n[t] = !0;
51
+ }
52
+ return (a) => {
53
+ let t = a.index, o = a.input;
54
+ for (; a.index < o.length && o.charCodeAt(a.index) in n; ) a.index += 1;
55
+ let u = a.index;
56
+ if (u > t) {
57
+ if (!h(e) && !a.options.silent) {
58
+ let s = a.input.slice(t, u), c = d(e) ? e(s, o, String(t)) : e;
59
+ h(c) || a.output.push(c);
60
+ }
61
+ a.indexMax = Math.max(a.indexMax, a.index);
62
+ }
63
+ return !0;
64
+ };
65
+ }, nr = (r, e) => {
66
+ let n = r.source, a = r.flags.replace(/y|$/, "y"), t = new RegExp(n, a);
67
+ return g((o) => {
68
+ t.lastIndex = o.index;
69
+ let u = t.exec(o.input);
70
+ if (u) {
71
+ if (!h(e) && !o.options.silent) {
72
+ let s = d(e) ? e(...u, o.input, String(o.index)) : e;
73
+ h(s) || o.output.push(s);
74
+ }
75
+ return o.index += u[0].length, o.indexMax = Math.max(o.indexMax, o.index), !0;
76
+ } else return !1;
77
+ });
78
+ }, ar = (r, e) => (n) => {
79
+ if (n.input.startsWith(r, n.index)) {
80
+ if (!h(e) && !n.options.silent) {
81
+ let t = d(e) ? e(r, n.input, String(n.index)) : e;
82
+ h(t) || n.output.push(t);
83
+ }
84
+ return n.index += r.length, n.indexMax = Math.max(n.indexMax, n.index), !0;
85
+ } else return !1;
86
+ }, C = (r, e, n, a) => {
87
+ let t = v(r);
88
+ return g(_(M((o) => {
89
+ let u = 0;
90
+ for (; u < n; ) {
91
+ let s = o.index;
92
+ if (!t(o) || (u += 1, o.index === s)) break;
93
+ }
94
+ return u >= e;
95
+ })));
96
+ }, tr = (r, e) => C(r, 0, 1), f = (r, e) => C(r, 0, 1 / 0), x = (r, e) => {
97
+ let n = r.map(v);
98
+ return g(_(M((a) => {
99
+ for (let t = 0, o = n.length; t < o; t++) if (!n[t](a)) return !1;
100
+ return !0;
101
+ })));
102
+ }, l = (r, e) => {
103
+ let n = r.map(v);
104
+ return g(_((a) => {
105
+ for (let t = 0, o = n.length; t < o; t++) if (n[t](a)) return !0;
106
+ return !1;
107
+ }));
108
+ }, M = (r, e = !1) => {
109
+ let n = v(r);
110
+ return (a) => {
111
+ let t = a.index, o = a.output.length, u = n(a);
112
+ return (!u || e) && (a.index = t, a.output.length !== o && (a.output.length = o)), u;
113
+ };
114
+ }, _ = (r, e) => v(r), g = /* @__PURE__ */ (() => {
115
+ let r = 0;
116
+ return (e) => {
117
+ let n = v(e), a = r += 1;
118
+ return (t) => {
119
+ var o;
120
+ if (t.options.memoization === !1) return n(t);
121
+ let u = t.index, s = (o = t.cache)[a] || (o[a] = /* @__PURE__ */ new Map()), c = s.get(u);
122
+ if (c === !1) return !1;
123
+ if (W(c)) return t.index = c, !0;
124
+ if (c) return t.index = c.index, c.output?.length && t.output.push(...c.output), !0;
125
+ {
126
+ let Z = t.output.length;
127
+ if (n(t)) {
128
+ let D = t.index, U = t.output.length;
129
+ if (U > Z) {
130
+ let ee = t.output.slice(Z, U);
131
+ s.set(u, { index: D, output: ee });
132
+ } else s.set(u, D);
133
+ return !0;
134
+ } else return s.set(u, !1), !1;
135
+ }
136
+ };
137
+ };
138
+ })(), E = (r) => {
139
+ let e;
140
+ return (n) => (e || (e = v(r())), e(n));
141
+ }, v = Y((r) => {
142
+ if (d(r)) return Q(r) ? E(r) : r;
143
+ if (b(r) || X(r)) return i(r);
144
+ if (A(r)) return x(r);
145
+ if (K(r)) return l(Object.values(r));
146
+ throw new Error("Invalid rule");
147
+ }), P = "abcdefghijklmnopqrstuvwxyz", ir = (r) => {
148
+ let e = "";
149
+ for (; r > 0; ) {
150
+ let n = (r - 1) % 26;
151
+ e = P[n] + e, r = Math.floor((r - 1) / 26);
152
+ }
153
+ return e;
154
+ }, O = (r) => {
155
+ let e = 0;
156
+ for (let n = 0, a = r.length; n < a; n++) e = e * 26 + P.indexOf(r[n]) + 1;
157
+ return e;
158
+ }, S = (r, e) => {
159
+ if (e < r) return S(e, r);
160
+ let n = [];
161
+ for (; r <= e; ) n.push(r++);
162
+ return n;
163
+ }, or = (r, e, n) => S(r, e).map((a) => String(a).padStart(n, "0")), R = (r, e) => S(O(r), O(e)).map(ir), p = (r) => r, z = (r) => ur((e) => rr(e, r, { memoization: !1 }).join("")), ur = (r) => {
164
+ let e = {};
165
+ return (n) => e[n] ?? (e[n] = r(n));
166
+ }, sr = i(/^\*\*\/\*$/, ".*"), cr = i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]+)$/, (r, e, n) => `.*${e ? "" : "(?:^|/)"}${n.replaceAll(".", "\\.")}`), lr = i(/^\*\*\/(\*)?([ a-zA-Z0-9._-]*)\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\}$/, (r, e, n, a) => `.*${e ? "" : "(?:^|/)"}${n.replaceAll(".", "\\.")}(?:${a.replaceAll(",", "|").replaceAll(".", "\\.")})`), y = i(/\\./, p), pr = i(/[$.*+?^(){}[\]\|]/, (r) => `\\${r}`), vr = i(/./, p), hr = i(/^(?:!!)*!(.*)$/, (r, e) => `(?!^${L(e)}$).*?`), dr = i(/^(!!)+/, ""), fr = l([hr, dr]), xr = i(/\/(\*\*\/)+/, "(?:/.+/|/)"), gr = i(/^(\*\*\/)+/, "(?:^|.*/)"), mr = i(/\/(\*\*)$/, "(?:/.*|$)"), _r = i(/\*\*/, ".*"), j = l([xr, gr, mr, _r]), Sr = i(/\*\/(?!\*\*\/)/, "[^/]*/"), yr = i(/\*/, "[^/]*"), N = l([Sr, yr]), k = i("?", "[^/]"), $r = i("[", p), wr = i("]", p), Ar = i(/[!^]/, "^/"), br = i(/[a-z]-[a-z]|[0-9]-[0-9]/i, p), Cr = i(/[$.*+?^(){}[\|]/, (r) => `\\${r}`), Mr = i(/[^\]]/, p), Er = l([y, Cr, br, Mr]), B = x([$r, tr(Ar), f(Er), wr]), Pr = i("{", "(?:"), Or = i("}", ")"), Rr = i(/(\d+)\.\.(\d+)/, (r, e, n) => or(+e, +n, Math.min(e.length, n.length)).join("|")), zr = i(/([a-z]+)\.\.([a-z]+)/, (r, e, n) => R(e, n).join("|")), jr = i(/([A-Z]+)\.\.([A-Z]+)/, (r, e, n) => R(e.toLowerCase(), n.toLowerCase()).join("|").toUpperCase()), Nr = l([Rr, zr, jr]), I = x([Pr, Nr, Or]), kr = i("{", "(?:"), Br = i("}", ")"), Ir = i(",", "|"), Fr = i(/[$.*+?^(){[\]\|]/, (r) => `\\${r}`), Lr = i(/[^}]/, p), Zr = E(() => F), Dr = l([j, N, k, B, I, Zr, y, Fr, Ir, Lr]), F = x([kr, f(Dr), Br]), Ur = f(l([sr, cr, lr, fr, j, N, k, B, I, F, y, pr, vr])), Vr = Ur, Gr = z(Vr), L = Gr, Tr = i(/\\./, p), qr = i(/./, p), Hr = i(/\*\*\*+/, "*"), Jr = i(/([^/{[(!])\*\*/, (r, e) => `${e}*`), Qr = i(/(^|.)\*\*(?=[^*/)\]}])/, (r, e) => `${e}*`), Wr = f(l([Tr, Hr, Jr, Qr, qr])), Kr = Wr, Xr = z(Kr), Yr = Xr, $ = (r, e) => {
167
+ let n = Array.isArray(r) ? r : [r];
168
+ if (!n.length) return !1;
169
+ let a = n.map($.compile), t = n.every((s) => /(\/(?:\*\*)?|\[\/\])$/.test(s)), o = e.replace(/[\\\/]+/g, "/").replace(/\/$/, t ? "/" : "");
170
+ return a.some((s) => s.test(o));
171
+ };
172
+ $.compile = (r) => new RegExp(`^${L(Yr(r))}$`, "s");
173
+ var re = $;
174
+ return J(w);
175
+ })();
176
+ return __lib__.default || __lib__;
177
+ }, _match, zeptomatch = (path, pattern) => (_match || (_match = _lazyMatch(), _lazyMatch = null), _match(path, pattern)), _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
25
178
  function normalizeWindowsPath(input = "") {
26
179
  return input && input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
27
180
  }
28
- var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
29
- var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
181
+ var _UNC_REGEX = /^[/\\]{2}/, _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, _DRIVE_LETTER_RE = /^[A-Za-z]:$/, _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/, _EXTNAME_RE = /.(\.[^./]+|\.)$/, _PATH_ROOT_RE = /^[/\\]|^[a-zA-Z]:[/\\]/, sep = "/", normalize = function(path) {
182
+ if (path.length === 0)
183
+ return ".";
184
+ path = normalizeWindowsPath(path);
185
+ let isUNCPath = path.match(_UNC_REGEX), isPathAbsolute = isAbsolute(path), trailingSeparator = path[path.length - 1] === "/";
186
+ return path = normalizeString(path, !isPathAbsolute), path.length === 0 ? isPathAbsolute ? "/" : trailingSeparator ? "./" : "." : (trailingSeparator && (path += "/"), _DRIVE_LETTER_RE.test(path) && (path += "/"), isUNCPath ? isPathAbsolute ? `//${path}` : `//./${path}` : isPathAbsolute && !isAbsolute(path) ? `/${path}` : path);
187
+ }, join = function(...segments) {
188
+ let path = "";
189
+ for (let seg of segments)
190
+ if (seg)
191
+ if (path.length > 0) {
192
+ let pathTrailing = path[path.length - 1] === "/", segLeading = seg[0] === "/";
193
+ pathTrailing && segLeading ? path += seg.slice(1) : path += pathTrailing || segLeading ? seg : `/${seg}`;
194
+ } else
195
+ path += seg;
196
+ return normalize(path);
197
+ };
30
198
  function cwd() {
31
199
  return typeof process < "u" && typeof process.cwd == "function" ? process.cwd().replace(/\\/g, "/") : "/";
32
200
  }
@@ -34,16 +202,16 @@ var resolve = function(...arguments_) {
34
202
  arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
35
203
  let resolvedPath = "", resolvedAbsolute = !1;
36
204
  for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
37
- let path2 = index >= 0 ? arguments_[index] : cwd();
38
- !path2 || path2.length === 0 || (resolvedPath = `${path2}/${resolvedPath}`, resolvedAbsolute = isAbsolute(path2));
205
+ let path = index >= 0 ? arguments_[index] : cwd();
206
+ !path || path.length === 0 || (resolvedPath = `${path}/${resolvedPath}`, resolvedAbsolute = isAbsolute(path));
39
207
  }
40
208
  return resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute), resolvedAbsolute && !isAbsolute(resolvedPath) ? `/${resolvedPath}` : resolvedPath.length > 0 ? resolvedPath : ".";
41
209
  };
42
- function normalizeString(path2, allowAboveRoot) {
210
+ function normalizeString(path, allowAboveRoot) {
43
211
  let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, char = null;
44
- for (let index = 0; index <= path2.length; ++index) {
45
- if (index < path2.length)
46
- char = path2[index];
212
+ for (let index = 0; index <= path.length; ++index) {
213
+ if (index < path.length)
214
+ char = path[index];
47
215
  else {
48
216
  if (char === "/")
49
217
  break;
@@ -63,7 +231,7 @@ function normalizeString(path2, allowAboveRoot) {
63
231
  }
64
232
  allowAboveRoot && (res += res.length > 0 ? "/.." : "..", lastSegmentLength = 2);
65
233
  } else
66
- res.length > 0 ? res += `/${path2.slice(lastSlash + 1, index)}` : res = path2.slice(lastSlash + 1, index), lastSegmentLength = index - lastSlash - 1;
234
+ res.length > 0 ? res += `/${path.slice(lastSlash + 1, index)}` : res = path.slice(lastSlash + 1, index), lastSegmentLength = index - lastSlash - 1;
67
235
  lastSlash = index, dots = 0;
68
236
  } else char === "." && dots !== -1 ? ++dots : dots = -1;
69
237
  }
@@ -71,8 +239,13 @@ function normalizeString(path2, allowAboveRoot) {
71
239
  }
72
240
  var isAbsolute = function(p) {
73
241
  return _IS_ABSOLUTE_RE.test(p);
74
- };
75
- var relative = function(from, to) {
242
+ }, toNamespacedPath = function(p) {
243
+ return normalizeWindowsPath(p);
244
+ }, extname = function(p) {
245
+ if (p === "..") return "";
246
+ let match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
247
+ return match && match[1] || "";
248
+ }, relative = function(from, to) {
76
249
  let _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/"), _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
77
250
  if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0])
78
251
  return _to.join("/");
@@ -83,13 +256,65 @@ var relative = function(from, to) {
83
256
  _from.shift(), _to.shift();
84
257
  }
85
258
  return [..._from.map(() => ".."), ..._to].join("/");
259
+ }, dirname = function(p) {
260
+ let segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
261
+ return segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0]) && (segments[0] += "/"), segments.join("/") || (isAbsolute(p) ? "/" : ".");
262
+ }, format = function(p) {
263
+ let ext = p.ext ? p.ext.startsWith(".") ? p.ext : `.${p.ext}` : "", segments = [p.root, p.dir, p.base ?? (p.name ?? "") + ext].filter(
264
+ Boolean
265
+ );
266
+ return normalizeWindowsPath(
267
+ p.root ? resolve(...segments) : segments.join("/")
268
+ );
269
+ }, basename = function(p, extension) {
270
+ let segments = normalizeWindowsPath(p).split("/"), lastSegment = "";
271
+ for (let i = segments.length - 1; i >= 0; i--) {
272
+ let val = segments[i];
273
+ if (val) {
274
+ lastSegment = val;
275
+ break;
276
+ }
277
+ }
278
+ return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
279
+ }, parse = function(p) {
280
+ let root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\/g, "/") || "", base = basename(p), extension = extname(base);
281
+ return {
282
+ root,
283
+ dir: dirname(p),
284
+ base,
285
+ ext: extension,
286
+ name: base.slice(0, base.length - extension.length)
287
+ };
288
+ }, matchesGlob = (path, pattern) => zeptomatch(pattern, normalize(path)), _path = {
289
+ __proto__: null,
290
+ basename,
291
+ dirname,
292
+ extname,
293
+ format,
294
+ isAbsolute,
295
+ join,
296
+ matchesGlob,
297
+ normalize,
298
+ normalizeString,
299
+ parse,
300
+ relative,
301
+ resolve,
302
+ sep,
303
+ toNamespacedPath
86
304
  };
87
305
 
306
+ // ../../../node_modules/pathe/dist/index.mjs
307
+ var delimiter = globalThis.process?.platform === "win32" ? ";" : ":", _platforms = { posix: void 0, win32: void 0 }, mix = (del = delimiter) => new Proxy(_path, {
308
+ get(_, prop) {
309
+ return prop === "delimiter" ? del : prop === "posix" ? posix : prop === "win32" ? win32 : _platforms[prop] || _path[prop];
310
+ }
311
+ }), posix = mix(":"), win32 = mix(";");
312
+
88
313
  // src/server/framework-preset-angular-cli.ts
89
314
  async function webpackFinal(baseConfig, options) {
90
315
  if (!resolvePackageDir("@angular-devkit/build-angular"))
91
316
  return logger.info('Using base config because "@angular-devkit/build-angular" is not installed'), baseConfig;
92
- let { WebpackDefinePlugin, WebpackIgnorePlugin } = await import("@storybook/builder-webpack5"), { getWebpackConfig: getCustomWebpackConfig } = await import("../_node-chunks/angular-cli-webpack-YPMJERPD.js");
317
+ let { WebpackDefinePlugin, WebpackIgnorePlugin } = await import("@storybook/builder-webpack5"), { getWebpackConfig: getCustomWebpackConfig } = await import("../_node-chunks/angular-cli-webpack-XYZ6XVTX.js");
93
318
  checkForLegacyBuildOptions(options);
94
319
  let builderContext = getBuilderContext(options), builderOptions = await getBuilderOptions(options, builderContext), webpackConfig = await getCustomWebpackConfig(baseConfig, {
95
320
  builderOptions: {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_5hd9c8tco0c from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_5hd9c8tco0c from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_5hd9c8tco0c from "node:module";
1
+ import CJS_COMPAT_NODE_URL_ka10qkhlmxh from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_ka10qkhlmxh from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_ka10qkhlmxh from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_5hd9c8tco0c.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_5hd9c8tco0c.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_5hd9c8tco0c.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_ka10qkhlmxh.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_ka10qkhlmxh.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_ka10qkhlmxh.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/angular",
3
- "version": "10.6.0-alpha.5",
3
+ "version": "10.6.0-alpha.6",
4
4
  "description": "Storybook for Angular: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -59,7 +59,7 @@
59
59
  "!src/**/*"
60
60
  ],
61
61
  "dependencies": {
62
- "@storybook/builder-webpack5": "10.6.0-alpha.5",
62
+ "@storybook/builder-webpack5": "10.6.0-alpha.6",
63
63
  "@storybook/global": "^5.0.0",
64
64
  "telejson": "8.0.0",
65
65
  "ts-dedent": "^2.0.0",
@@ -79,8 +79,8 @@
79
79
  "@angular/forms": "^19.1.1",
80
80
  "@angular/platform-browser": "^19.1.1",
81
81
  "@angular/platform-browser-dynamic": "^19.1.1",
82
- "@storybook/angular-compodoc": "10.6.0-alpha.5",
83
- "@storybook/core-webpack": "10.6.0-alpha.5",
82
+ "@storybook/angular-compodoc": "10.6.0-alpha.6",
83
+ "@storybook/core-webpack": "10.6.0-alpha.6",
84
84
  "@types/node": "^22.19.1",
85
85
  "empathic": "^2.0.0",
86
86
  "rimraf": "^6.0.1",
@@ -101,7 +101,7 @@
101
101
  "@angular/platform-browser": ">=18.0.0 < 23.0.0",
102
102
  "@angular/platform-browser-dynamic": ">=18.0.0 < 23.0.0",
103
103
  "rxjs": "^6.5.3 || ^7.4.0",
104
- "storybook": "^10.6.0-alpha.5",
104
+ "storybook": "^10.6.0-alpha.6",
105
105
  "typescript": "^4.9.0 || ^5.0.0 || ^6.0.0",
106
106
  "zone.js": ">=0.14.0"
107
107
  },