storybook 10.0.0-beta.1 → 10.0.0-beta.11

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.
Files changed (124) hide show
  1. package/assets/server/openBrowser.applescript +94 -0
  2. package/dist/_browser-chunks/Color-KPLIACXP.js +1569 -0
  3. package/dist/_browser-chunks/{WithTooltip-ERFLZL6W.js → WithTooltip-SK46ZJ2J.js} +1 -1
  4. package/dist/_browser-chunks/{chunk-YY5GICNT.js → chunk-6E2SHJSL.js} +175 -32
  5. package/dist/_browser-chunks/{chunk-EOILZP2R.js → chunk-BOOOPFZF.js} +7 -2
  6. package/dist/_browser-chunks/{chunk-YWDKX534.js → chunk-FA42P6MO.js} +49 -4
  7. package/dist/_browser-chunks/chunk-G33S6YM3.js +521 -0
  8. package/dist/_browser-chunks/{chunk-MZNYTCNT.js → chunk-HMIIJ6UD.js} +6 -6
  9. package/dist/_browser-chunks/{chunk-4QPX7WIQ.js → chunk-JJZMHC3A.js} +57 -166
  10. package/dist/_browser-chunks/{chunk-MD2FTHCZ.js → chunk-JVSKG4YS.js} +3 -16
  11. package/dist/_browser-chunks/{chunk-E7VLET3C.js → chunk-KSCAWCCE.js} +3947 -4291
  12. package/dist/_browser-chunks/{chunk-PYK5ZTFK.js → chunk-PS3AOQI4.js} +48 -25
  13. package/dist/_browser-chunks/chunk-QK3L5AXO.js +372 -0
  14. package/dist/_browser-chunks/chunk-SHR3NNR3.js +5810 -0
  15. package/dist/_browser-chunks/{chunk-O5R5CGFA.js → chunk-TMDZCWME.js} +1 -2
  16. package/dist/_browser-chunks/chunk-VUAFL5XK.js +20 -0
  17. package/dist/_browser-chunks/{chunk-T7RCAJIX.js → chunk-Y3M7TW6K.js} +43 -47
  18. package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-R46XOLMC.js} +1 -1
  19. package/dist/_node-chunks/{builder-manager-EXW4ETLN.js → builder-manager-VLFDK43H.js} +45 -155
  20. package/dist/_node-chunks/camelcase-RENSEFK6.js +18 -0
  21. package/dist/_node-chunks/{chunk-5ZX5SJOP.js → chunk-4SPBIDJV.js} +162 -103
  22. package/dist/_node-chunks/{chunk-PMEEE3UE.js → chunk-4WZFG35Z.js} +30 -21
  23. package/dist/_node-chunks/{chunk-WP7DV5JT.js → chunk-5K7G6NFK.js} +583 -180
  24. package/dist/_node-chunks/{chunk-FZP2YGG3.js → chunk-5NSMDC6F.js} +7 -7
  25. package/dist/_node-chunks/{chunk-6CCUFDHU.js → chunk-5THWZTEL.js} +7 -7
  26. package/dist/_node-chunks/chunk-7MUMULSR.js +79 -0
  27. package/dist/_node-chunks/chunk-7QAAJL75.js +1540 -0
  28. package/dist/_node-chunks/{chunk-EO4S3VXL.js → chunk-DVY3VWHZ.js} +653 -775
  29. package/dist/_node-chunks/{chunk-WDKWVNL2.js → chunk-EBLOP2C5.js} +7 -7
  30. package/dist/_node-chunks/{chunk-EDBXIJN5.js → chunk-EF56ZUQY.js} +7 -7
  31. package/dist/_node-chunks/{chunk-F5J33SXQ.js → chunk-ER2UQBIA.js} +7 -7
  32. package/dist/_node-chunks/chunk-GHICGP2P.js +18 -0
  33. package/dist/_node-chunks/{chunk-4WNZYNQY.js → chunk-GYBN5GXT.js} +623 -750
  34. package/dist/_node-chunks/{chunk-2G5THETV.js → chunk-H2YBWE3T.js} +12 -12
  35. package/dist/_node-chunks/{camelcase-VZZFWA2L.js → chunk-HYMBYTGJ.js} +9 -8
  36. package/dist/_node-chunks/{chunk-SUMFFLGF.js → chunk-Q5IJJX3T.js} +6 -6
  37. package/dist/_node-chunks/{chunk-U45F2NP6.js → chunk-QLRMR54O.js} +7 -7
  38. package/dist/_node-chunks/{chunk-XTSBFCVE.js → chunk-QSNDRP62.js} +7 -7
  39. package/dist/_node-chunks/chunk-S2RQAF7K.js +4741 -0
  40. package/dist/_node-chunks/{chunk-2QZOLZDJ.js → chunk-SDZVOIZI.js} +9 -9
  41. package/dist/_node-chunks/{chunk-VNLBDN2Z.js → chunk-SGJZDMJW.js} +6 -6
  42. package/dist/_node-chunks/{chunk-PL2PKDRO.js → chunk-TJOIDMXP.js} +60 -102
  43. package/dist/_node-chunks/{chunk-ICPKUV5G.js → chunk-U2UIPLJI.js} +7 -7
  44. package/dist/_node-chunks/{chunk-3SGKBLOL.js → chunk-UAMXREF3.js} +8 -8
  45. package/dist/_node-chunks/{chunk-GVCXNIAA.js → chunk-UC6O5PNX.js} +399 -116
  46. package/dist/_node-chunks/{chunk-CM3UGTR5.js → chunk-VFUP6Z4J.js} +7 -7
  47. package/dist/_node-chunks/{chunk-3ZKQWDCG.js → chunk-XKPJCSPD.js} +223 -243
  48. package/dist/_node-chunks/{chunk-24TGL6EX.js → chunk-XWCQWB3R.js} +8 -8
  49. package/dist/_node-chunks/{chunk-QC5FE2D7.js → chunk-XYFEBEHY.js} +7 -7
  50. package/dist/_node-chunks/chunk-YAEIMHFX.js +62 -0
  51. package/dist/_node-chunks/{chunk-5V6QH7WC.js → chunk-ZHBCPKYD.js} +7 -7
  52. package/dist/_node-chunks/{dist-VZL6D6Y3.js → dist-A2RPEHEC.js} +9 -9
  53. package/dist/_node-chunks/{globby-GZXJJ4W6.js → globby-3TWPXGQS.js} +17 -13
  54. package/dist/_node-chunks/{lib-PHT5GCV2.js → lib-MUNM6ZJ6.js} +40 -16
  55. package/dist/_node-chunks/{mdx-N42X6CFJ-EPDIV4A2.js → mdx-N42X6CFJ-QQDHJZQ3.js} +8 -8
  56. package/dist/_node-chunks/{p-limit-AJIFSZTI.js → p-limit-FEN55OV6.js} +76 -10
  57. package/dist/_node-chunks/{plugin-3VI56CEF.js → plugin-ESAYNJ5V.js} +11 -11
  58. package/dist/_node-chunks/{plugin-AV4OEKYM.js → plugin-GDMP3JPR.js} +10 -10
  59. package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-E7J5FKLA.js → webpack-inject-mocker-runtime-plugin-5AKTLYIV.js} +1307 -847
  60. package/dist/_node-chunks/{webpack-mock-plugin-VTYGW7HO.js → webpack-mock-plugin-AWGZ65AQ.js} +9 -9
  61. package/dist/babel/index.d.ts +1 -1
  62. package/dist/babel/index.js +11 -11
  63. package/dist/bin/core.js +638 -187
  64. package/dist/bin/dispatcher.js +11 -11
  65. package/dist/bin/loader.js +77 -12
  66. package/dist/cli/index.d.ts +62 -75
  67. package/dist/cli/index.js +67 -55
  68. package/dist/common/index.d.ts +3 -1
  69. package/dist/common/index.js +22 -22
  70. package/dist/components/index.d.ts +228 -1
  71. package/dist/components/index.js +74 -5738
  72. package/dist/core-events/index.d.ts +18 -2
  73. package/dist/core-events/index.js +7 -1
  74. package/dist/core-server/index.d.ts +515 -14
  75. package/dist/core-server/index.js +4647 -4182
  76. package/dist/core-server/presets/common-manager.js +1570 -1272
  77. package/dist/core-server/presets/common-override-preset.js +9 -9
  78. package/dist/core-server/presets/common-preset.js +691 -38
  79. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
  80. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
  81. package/dist/csf/index.d.ts +9 -4
  82. package/dist/csf/index.js +50 -15
  83. package/dist/csf-tools/index.d.ts +47 -6
  84. package/dist/csf-tools/index.js +9 -9
  85. package/dist/docs-tools/index.js +4 -4
  86. package/dist/instrumenter/index.js +1 -1
  87. package/dist/manager/globals-runtime.js +9230 -18109
  88. package/dist/manager/globals.d.ts +0 -4
  89. package/dist/manager/globals.js +1 -6
  90. package/dist/manager/runtime.js +13194 -11367
  91. package/dist/manager-api/index.d.ts +513 -5
  92. package/dist/manager-api/index.js +364 -90
  93. package/dist/manager-errors.d.ts +501 -0
  94. package/dist/node-logger/index.d.ts +1 -1
  95. package/dist/node-logger/index.js +1136 -662
  96. package/dist/preview/globals.js +1 -1
  97. package/dist/preview/runtime.js +12103 -21579
  98. package/dist/preview-api/index.d.ts +70 -71
  99. package/dist/preview-api/index.js +10 -10
  100. package/dist/preview-errors.d.ts +501 -0
  101. package/dist/router/index.d.ts +668 -10
  102. package/dist/router/index.js +2 -2
  103. package/dist/server-errors.d.ts +501 -0
  104. package/dist/server-errors.js +10 -10
  105. package/dist/telemetry/index.d.ts +1 -1
  106. package/dist/telemetry/index.js +23 -25
  107. package/dist/test/index.js +1874 -4024
  108. package/dist/theming/index.d.ts +2 -2
  109. package/dist/theming/index.js +6 -6
  110. package/dist/types/index.d.ts +553 -16
  111. package/dist/viewport/index.d.ts +36 -4
  112. package/dist/viewport/index.js +1 -1
  113. package/package.json +9 -46
  114. package/dist/_browser-chunks/Color-SFYJJKWL.js +0 -605
  115. package/dist/_browser-chunks/chunk-DHO2SA6L.js +0 -12
  116. package/dist/_browser-chunks/chunk-WPHPDNUA.js +0 -974
  117. package/dist/_node-chunks/chunk-32JYCD74.js +0 -80
  118. package/dist/_node-chunks/chunk-GE6I3YYG.js +0 -62
  119. package/dist/_node-chunks/chunk-KXCNXWXI.js +0 -18
  120. package/dist/_node-chunks/chunk-LAUOYAOX.js +0 -87
  121. package/dist/_node-chunks/chunk-QJTT4OC2.js +0 -266
  122. package/dist/_node-chunks/chunk-V2ZF4DUD.js +0 -2377
  123. package/dist/_node-chunks/chunk-ZMV3WY6R.js +0 -9845
  124. package/dist/_node-chunks/default-browser-id-JNATP42X.js +0 -1719
@@ -1,5 +1,5 @@
1
1
  // src/viewport/defaults.ts
2
- var INITIAL_VIEWPORTS_DATA = {
2
+ var INITIAL_VIEWPORTS = {
3
3
  iphone5: {
4
4
  name: "iPhone 5",
5
5
  styles: {
@@ -225,7 +225,6 @@ var INITIAL_VIEWPORTS_DATA = {
225
225
  type: "mobile"
226
226
  }
227
227
  };
228
- var INITIAL_VIEWPORTS = INITIAL_VIEWPORTS_DATA;
229
228
  var DEFAULT_VIEWPORT = "responsive";
230
229
  var MINIMAL_VIEWPORTS = {
231
230
  mobile1: {
@@ -0,0 +1,20 @@
1
+ import {
2
+ __commonJS,
3
+ __name
4
+ } from "./chunk-MM7DTO55.js";
5
+
6
+ // ../node_modules/picocolors/picocolors.browser.js
7
+ var require_picocolors_browser = __commonJS({
8
+ "../node_modules/picocolors/picocolors.browser.js"(exports, module) {
9
+ var x = String;
10
+ var create = /* @__PURE__ */ __name(function() {
11
+ return { isColorSupported: false, reset: x, bold: x, dim: x, italic: x, underline: x, inverse: x, hidden: x, strikethrough: x, black: x, red: x, green: x, yellow: x, blue: x, magenta: x, cyan: x, white: x, gray: x, bgBlack: x, bgRed: x, bgGreen: x, bgYellow: x, bgBlue: x, bgMagenta: x, bgCyan: x, bgWhite: x, blackBright: x, redBright: x, greenBright: x, yellowBright: x, blueBright: x, magentaBright: x, cyanBright: x, whiteBright: x, bgBlackBright: x, bgRedBright: x, bgGreenBright: x, bgYellowBright: x, bgBlueBright: x, bgMagentaBright: x, bgCyanBright: x, bgWhiteBright: x };
12
+ }, "create");
13
+ module.exports = create();
14
+ module.exports.createColors = create;
15
+ }
16
+ });
17
+
18
+ export {
19
+ require_picocolors_browser
20
+ };
@@ -281,6 +281,9 @@ var require_object_util = __commonJS({
281
281
  let valueIsProbableArray = false;
282
282
  for (const key in obj) {
283
283
  const value = obj[key];
284
+ if (value === void 0) {
285
+ continue;
286
+ }
284
287
  let path;
285
288
  if (parentKey) {
286
289
  path = parentKey;
@@ -322,10 +325,12 @@ var require_object_util = __commonJS({
322
325
  }
323
326
  });
324
327
 
325
- // ../node_modules/fast-decode-uri-component/index.js
326
- var require_fast_decode_uri_component = __commonJS({
327
- "../node_modules/fast-decode-uri-component/index.js"(exports, module) {
328
+ // ../node_modules/picoquery/lib/decode-uri-component.js
329
+ var require_decode_uri_component = __commonJS({
330
+ "../node_modules/picoquery/lib/decode-uri-component.js"(exports) {
328
331
  "use strict";
332
+ Object.defineProperty(exports, "__esModule", { value: true });
333
+ exports.decodeURIComponent = decodeURIComponent;
329
334
  var UTF8_ACCEPT = 12;
330
335
  var UTF8_REJECT = 0;
331
336
  var UTF8_DATA = [
@@ -712,27 +717,26 @@ var require_fast_decode_uri_component = __commonJS({
712
717
  7
713
718
  ];
714
719
  function decodeURIComponent(uri) {
715
- var percentPosition = uri.indexOf("%");
716
- if (percentPosition === -1) return uri;
717
- var length = uri.length;
718
- var decoded = "";
719
- var last = 0;
720
- var codepoint = 0;
721
- var startOfOctets = percentPosition;
722
- var state = UTF8_ACCEPT;
720
+ let percentPosition = uri.indexOf("%");
721
+ if (percentPosition === -1) {
722
+ return uri;
723
+ }
724
+ const length = uri.length;
725
+ let decoded = "";
726
+ let last = 0;
727
+ let codepoint = 0;
728
+ let startOfOctets = percentPosition;
729
+ let state = UTF8_ACCEPT;
723
730
  while (percentPosition > -1 && percentPosition < length) {
724
- var high = hexCodeToInt(uri[percentPosition + 1], 4);
725
- var low = hexCodeToInt(uri[percentPosition + 2], 0);
726
- var byte = high | low;
727
- var type = UTF8_DATA[byte];
731
+ const high = hexCodeToInt(uri[percentPosition + 1], 4);
732
+ const low = hexCodeToInt(uri[percentPosition + 2], 0);
733
+ const byte = high | low;
734
+ const type = UTF8_DATA[byte];
728
735
  state = UTF8_DATA[256 + state + type];
729
736
  codepoint = codepoint << 6 | byte & UTF8_DATA[364 + type];
730
737
  if (state === UTF8_ACCEPT) {
731
738
  decoded += uri.slice(last, startOfOctets);
732
- decoded += codepoint <= 65535 ? String.fromCharCode(codepoint) : String.fromCharCode(
733
- 55232 + (codepoint >> 10),
734
- 56320 + (codepoint & 1023)
735
- );
739
+ decoded += codepoint <= 65535 ? String.fromCharCode(codepoint) : String.fromCharCode(55232 + (codepoint >> 10), 56320 + (codepoint & 1023));
736
740
  codepoint = 0;
737
741
  last = percentPosition + 3;
738
742
  percentPosition = startOfOctets = uri.indexOf("%", last);
@@ -740,7 +744,8 @@ var require_fast_decode_uri_component = __commonJS({
740
744
  return null;
741
745
  } else {
742
746
  percentPosition += 3;
743
- if (percentPosition < length && uri.charCodeAt(percentPosition) === 37) continue;
747
+ if (percentPosition < length && uri.charCodeAt(percentPosition) === 37)
748
+ continue;
744
749
  return null;
745
750
  }
746
751
  }
@@ -758,25 +763,24 @@ var require_fast_decode_uri_component = __commonJS({
758
763
  "7": 7,
759
764
  "8": 8,
760
765
  "9": 9,
761
- "a": 10,
762
- "A": 10,
763
- "b": 11,
764
- "B": 11,
765
- "c": 12,
766
- "C": 12,
767
- "d": 13,
768
- "D": 13,
769
- "e": 14,
770
- "E": 14,
771
- "f": 15,
772
- "F": 15
766
+ a: 10,
767
+ A: 10,
768
+ b: 11,
769
+ B: 11,
770
+ c: 12,
771
+ C: 12,
772
+ d: 13,
773
+ D: 13,
774
+ e: 14,
775
+ E: 14,
776
+ f: 15,
777
+ F: 15
773
778
  };
774
779
  function hexCodeToInt(c, shift) {
775
- var i = HEX[c];
780
+ const i = HEX[c];
776
781
  return i === void 0 ? 255 : i << shift;
777
782
  }
778
783
  __name(hexCodeToInt, "hexCodeToInt");
779
- module.exports = decodeURIComponent;
780
784
  }
781
785
  });
782
786
 
@@ -784,15 +788,12 @@ var require_fast_decode_uri_component = __commonJS({
784
788
  var require_parse = __commonJS({
785
789
  "../node_modules/picoquery/lib/parse.js"(exports) {
786
790
  "use strict";
787
- var __importDefault = exports && exports.__importDefault || function(mod) {
788
- return mod && mod.__esModule ? mod : { "default": mod };
789
- };
790
791
  Object.defineProperty(exports, "__esModule", { value: true });
791
792
  exports.numberValueDeserializer = exports.numberKeyDeserializer = void 0;
792
793
  exports.parse = parse;
793
794
  var object_util_js_1 = require_object_util();
794
795
  var shared_js_1 = require_shared();
795
- var fast_decode_uri_component_1 = __importDefault(require_fast_decode_uri_component());
796
+ var decode_uri_component_js_1 = require_decode_uri_component();
796
797
  var numberKeyDeserializer = /* @__PURE__ */ __name((key) => {
797
798
  const asNumber = Number(key);
798
799
  if (!Number.isNaN(asNumber)) {
@@ -819,7 +820,7 @@ var require_parse = __commonJS({
819
820
  chunk = chunk.replace(regexPlus, " ");
820
821
  }
821
822
  if (shouldDecodeKey) {
822
- chunk = (0, fast_decode_uri_component_1.default)(chunk) || chunk;
823
+ chunk = (0, decode_uri_component_js_1.decodeURIComponent)(chunk) || chunk;
823
824
  }
824
825
  return chunk;
825
826
  }
@@ -846,7 +847,6 @@ var require_parse = __commonJS({
846
847
  let keyHasPlus = false;
847
848
  let valueHasPlus = false;
848
849
  let keyIsDot = false;
849
- let keyIsIndex = false;
850
850
  let hasBothKeyValuePair = false;
851
851
  let c = 0;
852
852
  let arrayRepeatBracketIndex = -1;
@@ -863,7 +863,7 @@ var require_parse = __commonJS({
863
863
  keyChunk = computeKeySlice(input, keySeparatorIndex + 1, arrayRepeatBracketIndex > -1 ? arrayRepeatBracketIndex : equalityIndex, keyHasPlus, shouldDecodeKey);
864
864
  currentKey = keyDeserializer(keyChunk);
865
865
  if (lastKey !== void 0) {
866
- currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax && keyIsDot, isJsNestingSyntax && keyIsIndex);
866
+ currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, isJsNestingSyntax && keyIsDot, void 0);
867
867
  }
868
868
  }
869
869
  if (hasBothKeyValuePair || currentKey !== "") {
@@ -873,7 +873,7 @@ var require_parse = __commonJS({
873
873
  value = value.replace(regexPlus, " ");
874
874
  }
875
875
  if (shouldDecodeValue) {
876
- value = (0, fast_decode_uri_component_1.default)(value) || value;
876
+ value = (0, decode_uri_component_js_1.decodeURIComponent)(value) || value;
877
877
  }
878
878
  }
879
879
  const newValue = valueDeserializer(value, currentKey);
@@ -901,7 +901,6 @@ var require_parse = __commonJS({
901
901
  keyHasPlus = false;
902
902
  valueHasPlus = false;
903
903
  keyIsDot = false;
904
- keyIsIndex = false;
905
904
  arrayRepeatBracketIndex = -1;
906
905
  keySeparatorIndex = i;
907
906
  currentObj = result;
@@ -918,14 +917,13 @@ var require_parse = __commonJS({
918
917
  keyChunk = computeKeySlice(input, keySeparatorIndex + 1, i, keyHasPlus, shouldDecodeKey);
919
918
  currentKey = keyDeserializer(keyChunk);
920
919
  if (lastKey !== void 0) {
921
- currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, void 0, isJsNestingSyntax);
920
+ currentObj = (0, object_util_js_1.getDeepObject)(currentObj, lastKey, currentKey, void 0, void 0);
922
921
  }
923
922
  lastKey = currentKey;
924
923
  keyHasPlus = false;
925
924
  shouldDecodeKey = false;
926
925
  }
927
926
  keySeparatorIndex = i;
928
- keyIsIndex = true;
929
927
  keyIsDot = false;
930
928
  }
931
929
  } else if (c === 46) {
@@ -941,7 +939,6 @@ var require_parse = __commonJS({
941
939
  shouldDecodeKey = false;
942
940
  }
943
941
  keyIsDot = true;
944
- keyIsIndex = false;
945
942
  keySeparatorIndex = i;
946
943
  }
947
944
  } else if (c === 91) {
@@ -956,7 +953,6 @@ var require_parse = __commonJS({
956
953
  keyHasPlus = false;
957
954
  shouldDecodeKey = false;
958
955
  keyIsDot = false;
959
- keyIsIndex = true;
960
956
  }
961
957
  keySeparatorIndex = i;
962
958
  }
@@ -3,7 +3,7 @@ import {
3
3
  createCopyToClipboardFunction,
4
4
  supportedLanguages,
5
5
  syntaxhighlighter_default
6
- } from "./chunk-MZNYTCNT.js";
6
+ } from "./chunk-HMIIJ6UD.js";
7
7
  import "./chunk-VAMFPZY3.js";
8
8
  import "./chunk-P2LUROS2.js";
9
9
  import "./chunk-WJWT2LN5.js";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_nodb7gfupnb from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_nodb7gfupnb from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_nodb7gfupnb from "node:module";
1
+ import CJS_COMPAT_NODE_URL_91hxho9jtpf from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_91hxho9jtpf from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_91hxho9jtpf from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_nodb7gfupnb.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_nodb7gfupnb.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_nodb7gfupnb.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_91hxho9jtpf.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_91hxho9jtpf.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_91hxho9jtpf.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -13,23 +13,21 @@ import {
13
13
  BROWSER_TARGETS,
14
14
  NODE_TARGET,
15
15
  SUPPORTED_FEATURES
16
- } from "./chunk-VNLBDN2Z.js";
16
+ } from "./chunk-SGJZDMJW.js";
17
17
  import {
18
18
  require_build
19
- } from "./chunk-QC5FE2D7.js";
20
- import {
21
- resolvePathSync
22
- } from "./chunk-ZMV3WY6R.js";
19
+ } from "./chunk-XYFEBEHY.js";
23
20
  import {
21
+ resolveModulePath,
24
22
  resolvePackageDir
25
- } from "./chunk-32JYCD74.js";
23
+ } from "./chunk-7QAAJL75.js";
26
24
  import {
27
25
  join,
28
26
  parse
29
- } from "./chunk-ICPKUV5G.js";
27
+ } from "./chunk-U2UIPLJI.js";
30
28
  import {
31
29
  slash
32
- } from "./chunk-6CCUFDHU.js";
30
+ } from "./chunk-5THWZTEL.js";
33
31
  import {
34
32
  __commonJS,
35
33
  __esm,
@@ -38,7 +36,7 @@ import {
38
36
  __require,
39
37
  __toCommonJS,
40
38
  __toESM
41
- } from "./chunk-SUMFFLGF.js";
39
+ } from "./chunk-Q5IJJX3T.js";
42
40
 
43
41
  // ../node_modules/tslib/tslib.es6.mjs
44
42
  var tslib_es6_exports = {};
@@ -1665,6 +1663,7 @@ var exports_default = {
1665
1663
  "BoxIcon",
1666
1664
  "BranchIcon",
1667
1665
  "BrowserIcon",
1666
+ "BugIcon",
1668
1667
  "ButtonIcon",
1669
1668
  "CPUIcon",
1670
1669
  "CalendarIcon",
@@ -1720,6 +1719,7 @@ var exports_default = {
1720
1719
  "DownloadIcon",
1721
1720
  "DragIcon",
1722
1721
  "EditIcon",
1722
+ "EditorIcon",
1723
1723
  "EllipsisIcon",
1724
1724
  "EmailIcon",
1725
1725
  "ExpandAltIcon",
@@ -1738,6 +1738,7 @@ var exports_default = {
1738
1738
  "FolderIcon",
1739
1739
  "FormIcon",
1740
1740
  "GDriveIcon",
1741
+ "GiftIcon",
1741
1742
  "GithubIcon",
1742
1743
  "GitlabIcon",
1743
1744
  "GlobeIcon",
@@ -1778,6 +1779,7 @@ var exports_default = {
1778
1779
  "NutIcon",
1779
1780
  "OutboxIcon",
1780
1781
  "OutlineIcon",
1782
+ "PaintBrushAltIcon",
1781
1783
  "PaintBrushIcon",
1782
1784
  "PaperClipIcon",
1783
1785
  "ParagraphIcon",
@@ -1821,6 +1823,8 @@ var exports_default = {
1821
1823
  "SidebarAltToggleIcon",
1822
1824
  "SidebarIcon",
1823
1825
  "SidebarToggleIcon",
1826
+ "SortDownIcon",
1827
+ "SortUpIcon",
1824
1828
  "SpeakerIcon",
1825
1829
  "StackedIcon",
1826
1830
  "StarHollowIcon",
@@ -2108,65 +2112,6 @@ var exports_default = {
2108
2112
  "resetComponents",
2109
2113
  "withReset"
2110
2114
  ],
2111
- "storybook/internal/core-errors": [
2112
- "ARGTYPES_INFO_REQUEST",
2113
- "ARGTYPES_INFO_RESPONSE",
2114
- "CHANNEL_CREATED",
2115
- "CHANNEL_WS_DISCONNECT",
2116
- "CONFIG_ERROR",
2117
- "CREATE_NEW_STORYFILE_REQUEST",
2118
- "CREATE_NEW_STORYFILE_RESPONSE",
2119
- "CURRENT_STORY_WAS_SET",
2120
- "DOCS_PREPARED",
2121
- "DOCS_RENDERED",
2122
- "FILE_COMPONENT_SEARCH_REQUEST",
2123
- "FILE_COMPONENT_SEARCH_RESPONSE",
2124
- "FORCE_REMOUNT",
2125
- "FORCE_RE_RENDER",
2126
- "GLOBALS_UPDATED",
2127
- "NAVIGATE_URL",
2128
- "PLAY_FUNCTION_THREW_EXCEPTION",
2129
- "PRELOAD_ENTRIES",
2130
- "PREVIEW_BUILDER_PROGRESS",
2131
- "PREVIEW_KEYDOWN",
2132
- "REGISTER_SUBSCRIPTION",
2133
- "REQUEST_WHATS_NEW_DATA",
2134
- "RESET_STORY_ARGS",
2135
- "RESULT_WHATS_NEW_DATA",
2136
- "SAVE_STORY_REQUEST",
2137
- "SAVE_STORY_RESPONSE",
2138
- "SELECT_STORY",
2139
- "SET_CONFIG",
2140
- "SET_CURRENT_STORY",
2141
- "SET_FILTER",
2142
- "SET_GLOBALS",
2143
- "SET_INDEX",
2144
- "SET_STORIES",
2145
- "SET_WHATS_NEW_CACHE",
2146
- "SHARED_STATE_CHANGED",
2147
- "SHARED_STATE_SET",
2148
- "STORIES_COLLAPSE_ALL",
2149
- "STORIES_EXPAND_ALL",
2150
- "STORY_ARGS_UPDATED",
2151
- "STORY_CHANGED",
2152
- "STORY_ERRORED",
2153
- "STORY_FINISHED",
2154
- "STORY_HOT_UPDATED",
2155
- "STORY_INDEX_INVALIDATED",
2156
- "STORY_MISSING",
2157
- "STORY_PREPARED",
2158
- "STORY_RENDERED",
2159
- "STORY_RENDER_PHASE_CHANGED",
2160
- "STORY_SPECIFIED",
2161
- "STORY_THREW_EXCEPTION",
2162
- "STORY_UNCHANGED",
2163
- "TELEMETRY_ERROR",
2164
- "TOGGLE_WHATS_NEW_NOTIFICATIONS",
2165
- "UNHANDLED_ERRORS_WHILE_PLAYING",
2166
- "UPDATE_GLOBALS",
2167
- "UPDATE_QUERY_PARAMS",
2168
- "UPDATE_STORY_ARGS"
2169
- ],
2170
2115
  "storybook/internal/core-events": [
2171
2116
  "ARGTYPES_INFO_REQUEST",
2172
2117
  "ARGTYPES_INFO_RESPONSE",
@@ -2184,6 +2129,8 @@ var exports_default = {
2184
2129
  "FORCE_RE_RENDER",
2185
2130
  "GLOBALS_UPDATED",
2186
2131
  "NAVIGATE_URL",
2132
+ "OPEN_IN_EDITOR_REQUEST",
2133
+ "OPEN_IN_EDITOR_RESPONSE",
2187
2134
  "PLAY_FUNCTION_THREW_EXCEPTION",
2188
2135
  "PRELOAD_ENTRIES",
2189
2136
  "PREVIEW_BUILDER_PROGRESS",
@@ -2248,79 +2195,7 @@ var exports_default = {
2248
2195
  "stringifyQuery",
2249
2196
  "useNavigate"
2250
2197
  ],
2251
- "storybook/internal/types": ["Addon_TypesEnum"],
2252
- "storybook/internal/manager-api": [
2253
- "ActiveTabs",
2254
- "Consumer",
2255
- "ManagerContext",
2256
- "Provider",
2257
- "RequestResponseError",
2258
- "addons",
2259
- "combineParameters",
2260
- "controlOrMetaKey",
2261
- "controlOrMetaSymbol",
2262
- "eventMatchesShortcut",
2263
- "eventToShortcut",
2264
- "experimental_MockUniversalStore",
2265
- "experimental_UniversalStore",
2266
- "experimental_getStatusStore",
2267
- "experimental_getTestProviderStore",
2268
- "experimental_requestResponse",
2269
- "experimental_useStatusStore",
2270
- "experimental_useTestProviderStore",
2271
- "experimental_useUniversalStore",
2272
- "internal_fullStatusStore",
2273
- "internal_fullTestProviderStore",
2274
- "internal_universalStatusStore",
2275
- "internal_universalTestProviderStore",
2276
- "isMacLike",
2277
- "isShortcutTaken",
2278
- "keyToSymbol",
2279
- "merge",
2280
- "mockChannel",
2281
- "optionOrAltSymbol",
2282
- "shortcutMatchesShortcut",
2283
- "shortcutToHumanString",
2284
- "types",
2285
- "useAddonState",
2286
- "useArgTypes",
2287
- "useArgs",
2288
- "useChannel",
2289
- "useGlobalTypes",
2290
- "useGlobals",
2291
- "useParameter",
2292
- "useSharedState",
2293
- "useStoryPrepared",
2294
- "useStorybookApi",
2295
- "useStorybookState"
2296
- ],
2297
- "storybook/internal/theming": [
2298
- "CacheProvider",
2299
- "ClassNames",
2300
- "Global",
2301
- "ThemeProvider",
2302
- "background",
2303
- "color",
2304
- "convert",
2305
- "create",
2306
- "createCache",
2307
- "createGlobal",
2308
- "createReset",
2309
- "css",
2310
- "darken",
2311
- "ensure",
2312
- "ignoreSsrWarning",
2313
- "isPropValid",
2314
- "jsx",
2315
- "keyframes",
2316
- "lighten",
2317
- "styled",
2318
- "themes",
2319
- "typography",
2320
- "useTheme",
2321
- "withTheme"
2322
- ],
2323
- "storybook/internal/theming/create": ["create", "themes"]
2198
+ "storybook/internal/types": ["Addon_TypesEnum"]
2324
2199
  };
2325
2200
 
2326
2201
  // src/manager/globals/globals.ts
@@ -2336,19 +2211,23 @@ var globalsNameReferenceMap = {
2336
2211
  "storybook/internal/channels": "__STORYBOOK_CHANNELS__",
2337
2212
  "storybook/internal/client-logger": "__STORYBOOK_CLIENT_LOGGER__",
2338
2213
  "storybook/internal/components": "__STORYBOOK_COMPONENTS__",
2339
- "storybook/internal/core-errors": "__STORYBOOK_CORE_EVENTS__",
2340
2214
  "storybook/internal/core-events": "__STORYBOOK_CORE_EVENTS__",
2341
2215
  "storybook/internal/manager-errors": "__STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__",
2342
2216
  "storybook/internal/router": "__STORYBOOK_ROUTER__",
2343
- "storybook/internal/types": "__STORYBOOK_TYPES__",
2344
- // @deprecated TODO: delete in 9.1
2345
- "storybook/internal/manager-api": "__STORYBOOK_API__",
2346
- "storybook/internal/theming": "__STORYBOOK_THEMING__",
2347
- "storybook/internal/theming/create": "__STORYBOOK_THEMING_CREATE__"
2217
+ "storybook/internal/types": "__STORYBOOK_TYPES__"
2348
2218
  };
2349
2219
  var globalPackages = Object.keys(globalsNameReferenceMap);
2350
2220
 
2351
2221
  // src/manager/globals/globals-module-info.ts
2222
+ var duplicatedKeys = [
2223
+ "storybook/theming",
2224
+ "storybook/theming/create",
2225
+ "storybook/manager-api",
2226
+ "storybook/test",
2227
+ "storybook/actions",
2228
+ "storybook/highlight",
2229
+ "storybook/viewport"
2230
+ ];
2352
2231
  var globalsModuleInfoMap = globalPackages.reduce(
2353
2232
  (acc, key) => {
2354
2233
  acc[key] = {
@@ -2357,6 +2236,14 @@ var globalsModuleInfoMap = globalPackages.reduce(
2357
2236
  namedExports: exports_default[key],
2358
2237
  defaultExport: true
2359
2238
  };
2239
+ if (duplicatedKeys.includes(key)) {
2240
+ acc[key.replace("storybook", "storybook/internal")] = {
2241
+ type: "esm",
2242
+ varName: globalsNameReferenceMap[key],
2243
+ namedExports: exports_default[key],
2244
+ defaultExport: true
2245
+ };
2246
+ }
2360
2247
  return acc;
2361
2248
  },
2362
2249
  {}
@@ -2496,6 +2383,9 @@ var buildFrameworkGlobalsFromOptions = /* @__PURE__ */ __name(async (options) =>
2496
2383
  if (framework) {
2497
2384
  globals.STORYBOOK_FRAMEWORK = framework;
2498
2385
  }
2386
+ if (options.networkAddress) {
2387
+ globals.STORYBOOK_NETWORK_ADDRESS = options.networkAddress;
2388
+ }
2499
2389
  return globals;
2500
2390
  }, "buildFrameworkGlobalsFromOptions");
2501
2391
 
@@ -2548,8 +2438,8 @@ var getConfig = /* @__PURE__ */ __name(async (options) => {
2548
2438
  const tsconfigPath = getTemplatePath("addon.tsconfig.json");
2549
2439
  let configDirManagerEntry;
2550
2440
  try {
2551
- configDirManagerEntry = resolvePathSync("./manager", {
2552
- url: options.configDir,
2441
+ configDirManagerEntry = resolveModulePath("./manager", {
2442
+ from: options.configDir,
2553
2443
  extensions: [".js", ".mjs", ".jsx", ".ts", ".mts", ".tsx"]
2554
2444
  });
2555
2445
  } catch (e) {
@@ -0,0 +1,18 @@
1
+ import CJS_COMPAT_NODE_URL_91hxho9jtpf from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_91hxho9jtpf from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_91hxho9jtpf from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_91hxho9jtpf.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_91hxho9jtpf.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_91hxho9jtpf.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import {
13
+ camelCase
14
+ } from "./chunk-HYMBYTGJ.js";
15
+ import "./chunk-Q5IJJX3T.js";
16
+ export {
17
+ camelCase as default
18
+ };