@storybook/addon-docs 11.0.0-alpha.9 → 11.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/blocks.js CHANGED
@@ -13,13 +13,78 @@ import {
13
13
  curriedTransparentize$1,
14
14
  rgba
15
15
  } from "./_browser-chunks/chunk-ONSQRTMU.js";
16
- import "./_browser-chunks/chunk-UAWMPV5J.js";
16
+ import {
17
+ __commonJS,
18
+ __toESM
19
+ } from "./_browser-chunks/chunk-UAWMPV5J.js";
20
+
21
+ // ../../../node_modules/@ngard/tiny-isequal/index.js
22
+ var require_tiny_isequal = __commonJS({
23
+ "../../../node_modules/@ngard/tiny-isequal/index.js"(exports) {
24
+ Object.defineProperty(exports, "__esModule", { value: !0 }), exports.isEqual = /* @__PURE__ */ (function() {
25
+ var e2 = Object.prototype.toString, r2 = Object.getPrototypeOf, t = Object.getOwnPropertySymbols ? function(e3) {
26
+ return Object.keys(e3).concat(Object.getOwnPropertySymbols(e3));
27
+ } : Object.keys;
28
+ return function(n2, a2) {
29
+ return (function n3(a3, c2, u2) {
30
+ var i2, s2, l2, o2 = e2.call(a3), f2 = e2.call(c2);
31
+ if (a3 === c2) return !0;
32
+ if (a3 == null || c2 == null) return !1;
33
+ if (u2.indexOf(a3) > -1 && u2.indexOf(c2) > -1) return !0;
34
+ if (u2.push(a3, c2), o2 != f2 || (i2 = t(a3), s2 = t(c2), i2.length != s2.length || i2.some(function(e3) {
35
+ return !n3(a3[e3], c2[e3], u2);
36
+ }))) return !1;
37
+ switch (o2.slice(8, -1)) {
38
+ case "Symbol":
39
+ return a3.valueOf() == c2.valueOf();
40
+ case "Date":
41
+ case "Number":
42
+ return +a3 == +c2 || +a3 != +a3 && +c2 != +c2;
43
+ case "RegExp":
44
+ case "Function":
45
+ case "String":
46
+ case "Boolean":
47
+ return "" + a3 == "" + c2;
48
+ case "Set":
49
+ case "Map":
50
+ i2 = a3.entries(), s2 = c2.entries();
51
+ do
52
+ if (!n3((l2 = i2.next()).value, s2.next().value, u2)) return !1;
53
+ while (!l2.done);
54
+ return !0;
55
+ case "ArrayBuffer":
56
+ a3 = new Uint8Array(a3), c2 = new Uint8Array(c2);
57
+ case "DataView":
58
+ a3 = new Uint8Array(a3.buffer), c2 = new Uint8Array(c2.buffer);
59
+ case "Float32Array":
60
+ case "Float64Array":
61
+ case "Int8Array":
62
+ case "Int16Array":
63
+ case "Int32Array":
64
+ case "Uint8Array":
65
+ case "Uint16Array":
66
+ case "Uint32Array":
67
+ case "Uint8ClampedArray":
68
+ case "Arguments":
69
+ case "Array":
70
+ if (a3.length != c2.length) return !1;
71
+ for (l2 = 0; l2 < a3.length; l2++) if ((l2 in a3 || l2 in c2) && (l2 in a3 != l2 in c2 || !n3(a3[l2], c2[l2], u2))) return !1;
72
+ return !0;
73
+ case "Object":
74
+ return n3(r2(a3), r2(c2), u2);
75
+ default:
76
+ return !1;
77
+ }
78
+ })(n2, a2, []);
79
+ };
80
+ })();
81
+ }
82
+ });
17
83
 
18
84
  // src/blocks/components/ArgsTable/ArgsTable.tsx
19
85
  import React23, { useCallback as useCallback6, useEffect as useEffect8, useRef as useRef5, useState as useState10 } from "react";
20
86
  import { once } from "storybook/internal/client-logger";
21
87
  import { Button as Button5, Link as Link3, ResetWrapper } from "storybook/internal/components";
22
- import { includeConditionalArg } from "storybook/internal/csf";
23
88
  import { DocumentIcon as DocumentIcon2, UndoIcon } from "@storybook/icons";
24
89
 
25
90
  // ../../../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
@@ -183,6 +248,30 @@ var CASE_SPLIT_PATTERN = new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})
183
248
  // src/blocks/components/ArgsTable/ArgsTable.tsx
184
249
  import { styled as styled18 } from "storybook/theming/emotion";
185
250
 
251
+ // ../../core/src/csf/includeConditionalArg.ts
252
+ var import_tiny_isequal = __toESM(require_tiny_isequal(), 1), count = (vals) => vals.map((v2) => typeof v2 < "u").filter(Boolean).length, testValue = (cond, value) => {
253
+ let { exists, eq: eq2, neq, truthy } = cond;
254
+ if (count([exists, eq2, neq, truthy]) > 1)
255
+ throw new Error(`Invalid conditional test ${JSON.stringify({ exists, eq: eq2, neq })}`);
256
+ if (typeof eq2 < "u")
257
+ return (0, import_tiny_isequal.isEqual)(value, eq2);
258
+ if (typeof neq < "u")
259
+ return !(0, import_tiny_isequal.isEqual)(value, neq);
260
+ if (typeof exists < "u") {
261
+ let valueExists = typeof value < "u";
262
+ return exists ? valueExists : !valueExists;
263
+ }
264
+ return (typeof truthy > "u" ? !0 : truthy) ? !!value : !value;
265
+ }, includeConditionalArg = (argType, args, globals) => {
266
+ if (!argType.if)
267
+ return !0;
268
+ let { arg, global: global2 } = argType.if;
269
+ if (count([arg, global2]) !== 1)
270
+ throw new Error(`Invalid conditional value ${JSON.stringify({ arg, global: global2 })}`);
271
+ let value = arg ? args[arg] : globals[global2];
272
+ return testValue(argType.if, value);
273
+ };
274
+
186
275
  // src/blocks/components/ArgsTable/ArgRow.tsx
187
276
  import React19 from "react";
188
277
  import { codeCommon as codeCommon3 } from "storybook/internal/components";
@@ -4439,7 +4528,8 @@ var ChildrenContainer = styled22.div(
4439
4528
  marginTop: -40,
4440
4529
  marginBottom: 40,
4441
4530
  marginInline: -FOCUS_RING_INSET,
4442
- width: "auto"
4531
+ width: "auto",
4532
+ background: "transparent"
4443
4533
  }), TrailingSnippetWarning = styled22(SnippetWarning)({
4444
4534
  marginInlineStart: "auto",
4445
4535
  marginInlineEnd: TRAILING_INSET
@@ -5698,14 +5788,14 @@ import React38, { createContext as createContext3, useEffect as useEffect13, use
5698
5788
  import { SNIPPET_RENDERED } from "storybook/internal/docs-tools";
5699
5789
 
5700
5790
  // ../../../node_modules/telejson/dist/chunk-EAFQLD22.mjs
5701
- var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJS = (cb, mod) => function() {
5791
+ var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __commonJS2 = (cb, mod) => function() {
5702
5792
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
5703
5793
  }, __copyProps = (to, from, except, desc) => {
5704
5794
  if (from && typeof from == "object" || typeof from == "function")
5705
5795
  for (let key of __getOwnPropNames(from))
5706
5796
  !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
5707
5797
  return to;
5708
- }, __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5798
+ }, __toESM2 = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
5709
5799
  // If the importer is in node compatibility mode or this is not an ESM
5710
5800
  // file that has been converted to a CommonJS file using a Babel-
5711
5801
  // compatible transform (i.e. "__esModule" has not been set), then set
@@ -5738,84 +5828,84 @@ function extractEventHiddenProperties(event) {
5738
5828
  }
5739
5829
 
5740
5830
  // ../../../node_modules/telejson/dist/index.mjs
5741
- var require_es_object_atoms = __commonJS({
5831
+ var require_es_object_atoms = __commonJS2({
5742
5832
  "node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports, module) {
5743
5833
  "use strict";
5744
5834
  module.exports = Object;
5745
5835
  }
5746
- }), require_es_errors = __commonJS({
5836
+ }), require_es_errors = __commonJS2({
5747
5837
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports, module) {
5748
5838
  "use strict";
5749
5839
  module.exports = Error;
5750
5840
  }
5751
- }), require_eval = __commonJS({
5841
+ }), require_eval = __commonJS2({
5752
5842
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports, module) {
5753
5843
  "use strict";
5754
5844
  module.exports = EvalError;
5755
5845
  }
5756
- }), require_range = __commonJS({
5846
+ }), require_range = __commonJS2({
5757
5847
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports, module) {
5758
5848
  "use strict";
5759
5849
  module.exports = RangeError;
5760
5850
  }
5761
- }), require_ref = __commonJS({
5851
+ }), require_ref = __commonJS2({
5762
5852
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports, module) {
5763
5853
  "use strict";
5764
5854
  module.exports = ReferenceError;
5765
5855
  }
5766
- }), require_syntax = __commonJS({
5856
+ }), require_syntax = __commonJS2({
5767
5857
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports, module) {
5768
5858
  "use strict";
5769
5859
  module.exports = SyntaxError;
5770
5860
  }
5771
- }), require_type = __commonJS({
5861
+ }), require_type = __commonJS2({
5772
5862
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(exports, module) {
5773
5863
  "use strict";
5774
5864
  module.exports = TypeError;
5775
5865
  }
5776
- }), require_uri = __commonJS({
5866
+ }), require_uri = __commonJS2({
5777
5867
  "node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports, module) {
5778
5868
  "use strict";
5779
5869
  module.exports = URIError;
5780
5870
  }
5781
- }), require_abs = __commonJS({
5871
+ }), require_abs = __commonJS2({
5782
5872
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(exports, module) {
5783
5873
  "use strict";
5784
5874
  module.exports = Math.abs;
5785
5875
  }
5786
- }), require_floor = __commonJS({
5876
+ }), require_floor = __commonJS2({
5787
5877
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(exports, module) {
5788
5878
  "use strict";
5789
5879
  module.exports = Math.floor;
5790
5880
  }
5791
- }), require_max = __commonJS({
5881
+ }), require_max = __commonJS2({
5792
5882
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(exports, module) {
5793
5883
  "use strict";
5794
5884
  module.exports = Math.max;
5795
5885
  }
5796
- }), require_min = __commonJS({
5886
+ }), require_min = __commonJS2({
5797
5887
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(exports, module) {
5798
5888
  "use strict";
5799
5889
  module.exports = Math.min;
5800
5890
  }
5801
- }), require_pow = __commonJS({
5891
+ }), require_pow = __commonJS2({
5802
5892
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(exports, module) {
5803
5893
  "use strict";
5804
5894
  module.exports = Math.pow;
5805
5895
  }
5806
- }), require_round = __commonJS({
5896
+ }), require_round = __commonJS2({
5807
5897
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(exports, module) {
5808
5898
  "use strict";
5809
5899
  module.exports = Math.round;
5810
5900
  }
5811
- }), require_isNaN = __commonJS({
5901
+ }), require_isNaN = __commonJS2({
5812
5902
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(exports, module) {
5813
5903
  "use strict";
5814
5904
  module.exports = Number.isNaN || function(a2) {
5815
5905
  return a2 !== a2;
5816
5906
  };
5817
5907
  }
5818
- }), require_sign = __commonJS({
5908
+ }), require_sign = __commonJS2({
5819
5909
  "node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(exports, module) {
5820
5910
  "use strict";
5821
5911
  var $isNaN = require_isNaN();
@@ -5823,12 +5913,12 @@ var require_es_object_atoms = __commonJS({
5823
5913
  return $isNaN(number) || number === 0 ? number : number < 0 ? -1 : 1;
5824
5914
  };
5825
5915
  }
5826
- }), require_gOPD = __commonJS({
5916
+ }), require_gOPD = __commonJS2({
5827
5917
  "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(exports, module) {
5828
5918
  "use strict";
5829
5919
  module.exports = Object.getOwnPropertyDescriptor;
5830
5920
  }
5831
- }), require_gopd = __commonJS({
5921
+ }), require_gopd = __commonJS2({
5832
5922
  "node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(exports, module) {
5833
5923
  "use strict";
5834
5924
  var $gOPD = require_gOPD();
@@ -5840,7 +5930,7 @@ var require_es_object_atoms = __commonJS({
5840
5930
  }
5841
5931
  module.exports = $gOPD;
5842
5932
  }
5843
- }), require_es_define_property = __commonJS({
5933
+ }), require_es_define_property = __commonJS2({
5844
5934
  "node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(exports, module) {
5845
5935
  "use strict";
5846
5936
  var $defineProperty = Object.defineProperty || !1;
@@ -5852,7 +5942,7 @@ var require_es_object_atoms = __commonJS({
5852
5942
  }
5853
5943
  module.exports = $defineProperty;
5854
5944
  }
5855
- }), require_shams = __commonJS({
5945
+ }), require_shams = __commonJS2({
5856
5946
  "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(exports, module) {
5857
5947
  "use strict";
5858
5948
  module.exports = function() {
@@ -5883,7 +5973,7 @@ var require_es_object_atoms = __commonJS({
5883
5973
  return !0;
5884
5974
  };
5885
5975
  }
5886
- }), require_has_symbols = __commonJS({
5976
+ }), require_has_symbols = __commonJS2({
5887
5977
  "node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(exports, module) {
5888
5978
  "use strict";
5889
5979
  var origSymbol = typeof Symbol < "u" && Symbol, hasSymbolSham = require_shams();
@@ -5891,18 +5981,18 @@ var require_es_object_atoms = __commonJS({
5891
5981
  return typeof origSymbol != "function" || typeof Symbol != "function" || typeof origSymbol("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : hasSymbolSham();
5892
5982
  };
5893
5983
  }
5894
- }), require_Reflect_getPrototypeOf = __commonJS({
5984
+ }), require_Reflect_getPrototypeOf = __commonJS2({
5895
5985
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(exports, module) {
5896
5986
  "use strict";
5897
5987
  module.exports = typeof Reflect < "u" && Reflect.getPrototypeOf || null;
5898
5988
  }
5899
- }), require_Object_getPrototypeOf = __commonJS({
5989
+ }), require_Object_getPrototypeOf = __commonJS2({
5900
5990
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(exports, module) {
5901
5991
  "use strict";
5902
5992
  var $Object = require_es_object_atoms();
5903
5993
  module.exports = $Object.getPrototypeOf || null;
5904
5994
  }
5905
- }), require_implementation = __commonJS({
5995
+ }), require_implementation = __commonJS2({
5906
5996
  "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports, module) {
5907
5997
  "use strict";
5908
5998
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ", toStr = Object.prototype.toString, max = Math.max, funcType = "[object Function]", concatty = function(a2, b2) {
@@ -5946,34 +6036,34 @@ var require_es_object_atoms = __commonJS({
5946
6036
  return bound;
5947
6037
  };
5948
6038
  }
5949
- }), require_function_bind = __commonJS({
6039
+ }), require_function_bind = __commonJS2({
5950
6040
  "node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports, module) {
5951
6041
  "use strict";
5952
6042
  var implementation = require_implementation();
5953
6043
  module.exports = Function.prototype.bind || implementation;
5954
6044
  }
5955
- }), require_functionCall = __commonJS({
6045
+ }), require_functionCall = __commonJS2({
5956
6046
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(exports, module) {
5957
6047
  "use strict";
5958
6048
  module.exports = Function.prototype.call;
5959
6049
  }
5960
- }), require_functionApply = __commonJS({
6050
+ }), require_functionApply = __commonJS2({
5961
6051
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(exports, module) {
5962
6052
  "use strict";
5963
6053
  module.exports = Function.prototype.apply;
5964
6054
  }
5965
- }), require_reflectApply = __commonJS({
6055
+ }), require_reflectApply = __commonJS2({
5966
6056
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(exports, module) {
5967
6057
  "use strict";
5968
6058
  module.exports = typeof Reflect < "u" && Reflect && Reflect.apply;
5969
6059
  }
5970
- }), require_actualApply = __commonJS({
6060
+ }), require_actualApply = __commonJS2({
5971
6061
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(exports, module) {
5972
6062
  "use strict";
5973
6063
  var bind = require_function_bind(), $apply = require_functionApply(), $call = require_functionCall(), $reflectApply = require_reflectApply();
5974
6064
  module.exports = $reflectApply || bind.call($call, $apply);
5975
6065
  }
5976
- }), require_call_bind_apply_helpers = __commonJS({
6066
+ }), require_call_bind_apply_helpers = __commonJS2({
5977
6067
  "node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(exports, module) {
5978
6068
  "use strict";
5979
6069
  var bind = require_function_bind(), $TypeError = require_type(), $call = require_functionCall(), $actualApply = require_actualApply();
@@ -5983,7 +6073,7 @@ var require_es_object_atoms = __commonJS({
5983
6073
  return $actualApply(bind, $call, args);
5984
6074
  };
5985
6075
  }
5986
- }), require_get = __commonJS({
6076
+ }), require_get = __commonJS2({
5987
6077
  "node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(exports, module) {
5988
6078
  "use strict";
5989
6079
  var callBind = require_call_bind_apply_helpers(), gOPD = require_gopd(), hasProtoAccessor;
@@ -6006,7 +6096,7 @@ var require_es_object_atoms = __commonJS({
6006
6096
  })
6007
6097
  ) : !1;
6008
6098
  }
6009
- }), require_get_proto = __commonJS({
6099
+ }), require_get_proto = __commonJS2({
6010
6100
  "node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(exports, module) {
6011
6101
  "use strict";
6012
6102
  var reflectGetProto = require_Reflect_getPrototypeOf(), originalGetProto = require_Object_getPrototypeOf(), getDunderProto = require_get();
@@ -6020,13 +6110,13 @@ var require_es_object_atoms = __commonJS({
6020
6110
  return getDunderProto(O2);
6021
6111
  } : null;
6022
6112
  }
6023
- }), require_hasown = __commonJS({
6113
+ }), require_hasown = __commonJS2({
6024
6114
  "node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports, module) {
6025
6115
  "use strict";
6026
6116
  var call = Function.prototype.call, $hasOwn = Object.prototype.hasOwnProperty, bind = require_function_bind();
6027
6117
  module.exports = bind.call(call, $hasOwn);
6028
6118
  }
6029
- }), require_get_intrinsic = __commonJS({
6119
+ }), require_get_intrinsic = __commonJS2({
6030
6120
  "node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(exports, module) {
6031
6121
  "use strict";
6032
6122
  var undefined2, $Object = require_es_object_atoms(), $Error = require_es_errors(), $EvalError = require_eval(), $RangeError = require_range(), $ReferenceError = require_ref(), $SyntaxError = require_syntax(), $TypeError = require_type(), $URIError = require_uri(), abs = require_abs(), floor = require_floor(), max = require_max(), min = require_min(), pow = require_pow(), round = require_round(), sign = require_sign(), $Function = Function, getEvalledConstructor = function(expressionSyntax) {
@@ -6261,7 +6351,7 @@ var require_es_object_atoms = __commonJS({
6261
6351
  return value;
6262
6352
  };
6263
6353
  }
6264
- }), require_call_bound = __commonJS({
6354
+ }), require_call_bound = __commonJS2({
6265
6355
  "node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(exports, module) {
6266
6356
  "use strict";
6267
6357
  var GetIntrinsic = require_get_intrinsic(), callBindBasic = require_call_bind_apply_helpers(), $indexOf = callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);
@@ -6276,7 +6366,7 @@ var require_es_object_atoms = __commonJS({
6276
6366
  ) : intrinsic;
6277
6367
  };
6278
6368
  }
6279
- }), require_shams2 = __commonJS({
6369
+ }), require_shams2 = __commonJS2({
6280
6370
  "node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(exports, module) {
6281
6371
  "use strict";
6282
6372
  var hasSymbols = require_shams();
@@ -6284,7 +6374,7 @@ var require_es_object_atoms = __commonJS({
6284
6374
  return hasSymbols() && !!Symbol.toStringTag;
6285
6375
  };
6286
6376
  }
6287
- }), require_is_regex = __commonJS({
6377
+ }), require_is_regex = __commonJS2({
6288
6378
  "node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(exports, module) {
6289
6379
  "use strict";
6290
6380
  var callBound = require_call_bound(), hasToStringTag = require_shams2()(), hasOwn = require_hasown(), gOPD = require_gopd(), fn;
@@ -6322,7 +6412,7 @@ var require_es_object_atoms = __commonJS({
6322
6412
  var $exec, isRegexMarker, throwRegexMarker, badStringifier, $toString, regexClass;
6323
6413
  module.exports = fn;
6324
6414
  }
6325
- }), require_is_function = __commonJS({
6415
+ }), require_is_function = __commonJS2({
6326
6416
  "node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(exports, module) {
6327
6417
  module.exports = isFunction3;
6328
6418
  var toString2 = Object.prototype.toString;
@@ -6334,7 +6424,7 @@ var require_es_object_atoms = __commonJS({
6334
6424
  (fn === window.setTimeout || fn === window.alert || fn === window.confirm || fn === window.prompt);
6335
6425
  }
6336
6426
  }
6337
- }), require_safe_regex_test = __commonJS({
6427
+ }), require_safe_regex_test = __commonJS2({
6338
6428
  "node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(exports, module) {
6339
6429
  "use strict";
6340
6430
  var callBound = require_call_bound(), isRegex = require_is_regex(), $exec = callBound("RegExp.prototype.exec"), $TypeError = require_type();
@@ -6346,7 +6436,7 @@ var require_es_object_atoms = __commonJS({
6346
6436
  };
6347
6437
  };
6348
6438
  }
6349
- }), require_is_symbol = __commonJS({
6439
+ }), require_is_symbol = __commonJS2({
6350
6440
  "node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(exports, module) {
6351
6441
  "use strict";
6352
6442
  var callBound = require_call_bound(), $toString = callBound("Object.prototype.toString"), hasSymbols = require_has_symbols()(), safeRegexTest = require_safe_regex_test();
@@ -6367,7 +6457,7 @@ var require_es_object_atoms = __commonJS({
6367
6457
  };
6368
6458
  var $symToStr, isSymString, isSymbolObject;
6369
6459
  }
6370
- }), import_is_regex = __toESM(require_is_regex()), import_is_function = __toESM(require_is_function()), import_is_symbol = __toESM(require_is_symbol());
6460
+ }), import_is_regex = __toESM2(require_is_regex()), import_is_function = __toESM2(require_is_function()), import_is_symbol = __toESM2(require_is_symbol());
6371
6461
  function isObject(val) {
6372
6462
  return val != null && typeof val == "object" && Array.isArray(val) === !1;
6373
6463
  }
@@ -7076,7 +7166,40 @@ import { InvalidBlockOfPropError as InvalidBlockOfPropError5 } from "storybook/i
7076
7166
 
7077
7167
  // src/blocks/blocks/Markdown.tsx
7078
7168
  import React43 from "react";
7079
- import { dedent } from "ts-dedent";
7169
+
7170
+ // ../../../node_modules/ts-dedent/esm/index.js
7171
+ function dedent(templ) {
7172
+ for (var values = [], _i = 1; _i < arguments.length; _i++)
7173
+ values[_i - 1] = arguments[_i];
7174
+ var strings = Array.from(typeof templ == "string" ? [templ] : templ);
7175
+ strings[strings.length - 1] = strings[strings.length - 1].replace(/\r?\n([\t ]*)$/, "");
7176
+ var indentLengths = strings.reduce(function(arr, str) {
7177
+ var matches = str.match(/\n([\t ]+|(?!\s).)/g);
7178
+ return matches ? arr.concat(matches.map(function(match) {
7179
+ var _a, _b;
7180
+ return (_b = (_a = match.match(/[\t ]/g)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
7181
+ })) : arr;
7182
+ }, []);
7183
+ if (indentLengths.length) {
7184
+ var pattern_1 = new RegExp(`
7185
+ [ ]{` + Math.min.apply(Math, indentLengths) + "}", "g");
7186
+ strings = strings.map(function(str) {
7187
+ return str.replace(pattern_1, `
7188
+ `);
7189
+ });
7190
+ }
7191
+ strings[0] = strings[0].replace(/^\r?\n/, "");
7192
+ var string = strings[0];
7193
+ return values.forEach(function(value, i2) {
7194
+ var endentations = string.match(/(?:^|\n)( *)$/), endentation = endentations ? endentations[1] : "", indentedValue = value;
7195
+ typeof value == "string" && value.includes(`
7196
+ `) && (indentedValue = String(value).split(`
7197
+ `).map(function(str, i3) {
7198
+ return i3 === 0 ? str : "" + endentation + str;
7199
+ }).join(`
7200
+ `)), string += indentedValue + strings[i2 + 1];
7201
+ }), string;
7202
+ }
7080
7203
 
7081
7204
  // src/blocks/blocks/mdx.tsx
7082
7205
  import React42, { useContext as useContext9 } from "react";
@@ -1,15 +1,15 @@
1
- import CJS_COMPAT_NODE_URL_5zwfu9z1e06 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_5zwfu9z1e06 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_5zwfu9z1e06 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_7eo3irrh602 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_7eo3irrh602 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_7eo3irrh602 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_5zwfu9z1e06.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_5zwfu9z1e06.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_5zwfu9z1e06.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_7eo3irrh602.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_7eo3irrh602.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_7eo3irrh602.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
11
  // ------------------------------------------------------------
12
- import "../_node-chunks/chunk-MKNLSAIF.js";
12
+ import "../_node-chunks/chunk-VSLVQ647.js";
13
13
 
14
14
  // src/csf-plugin/webpack-loader.ts
15
15
  import { readFile } from "node:fs/promises";
@@ -1,20 +1,20 @@
1
- import CJS_COMPAT_NODE_URL_5zwfu9z1e06 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_5zwfu9z1e06 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_5zwfu9z1e06 from "node:module";
1
+ import CJS_COMPAT_NODE_URL_7eo3irrh602 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_7eo3irrh602 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_7eo3irrh602 from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_5zwfu9z1e06.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_5zwfu9z1e06.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_5zwfu9z1e06.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_7eo3irrh602.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_7eo3irrh602.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_7eo3irrh602.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
  compile
14
- } from "./_node-chunks/chunk-WYRE6TMS.js";
15
- import "./_node-chunks/chunk-BJULF76B.js";
16
- import "./_node-chunks/chunk-RBPERX5O.js";
17
- import "./_node-chunks/chunk-MKNLSAIF.js";
14
+ } from "./_node-chunks/chunk-PJHPCYJU.js";
15
+ import "./_node-chunks/chunk-X4EFKXBI.js";
16
+ import "./_node-chunks/chunk-6ZPBGDMQ.js";
17
+ import "./_node-chunks/chunk-VSLVQ647.js";
18
18
 
19
19
  // src/mdx-loader.ts
20
20
  var DEFAULT_RENDERER = `