@kubb/plugin-ts 3.18.2 → 4.0.0

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 (42) hide show
  1. package/dist/{components-6F5RoYuJ.js → components-BKIt6l3E.js} +48 -357
  2. package/dist/components-BKIt6l3E.js.map +1 -0
  3. package/dist/{components-B-Jx1kI5.cjs → components-CTopmaD3.cjs} +60 -363
  4. package/dist/components-CTopmaD3.cjs.map +1 -0
  5. package/dist/components.cjs +1 -1
  6. package/dist/components.d.cts +1 -1
  7. package/dist/components.d.ts +1 -1
  8. package/dist/components.js +1 -1
  9. package/dist/generators.cjs +2 -2
  10. package/dist/generators.d.cts +1 -1
  11. package/dist/generators.d.ts +1 -1
  12. package/dist/generators.js +2 -2
  13. package/dist/index.cjs +2 -2
  14. package/dist/index.d.cts +1 -1
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.js +2 -2
  17. package/dist/{plugin-BXxI6FcR.cjs → plugin-CxMJgMjV.cjs} +33 -23
  18. package/dist/{plugin-BXxI6FcR.cjs.map → plugin-CxMJgMjV.cjs.map} +1 -1
  19. package/dist/{plugin-CldbLff9.js → plugin-nmU_mIiP.js} +11 -12
  20. package/dist/{plugin-CldbLff9.js.map → plugin-nmU_mIiP.js.map} +1 -1
  21. package/dist/{types-BWn5y2Wo.d.ts → types-BLgrg7-y.d.cts} +4 -3
  22. package/dist/{types-Bnh-xEll.d.cts → types-C7OjrC1J.d.ts} +4 -3
  23. package/package.json +9 -9
  24. package/src/generators/__snapshots__/enumAllOf.ts +3 -3
  25. package/src/generators/__snapshots__/enumArray.ts +2 -2
  26. package/src/generators/__snapshots__/enumArray20.ts +3 -3
  27. package/src/generators/__snapshots__/enumInObject.ts +3 -3
  28. package/src/generators/__snapshots__/enumItems.ts +3 -3
  29. package/src/generators/__snapshots__/enumNames.ts +2 -2
  30. package/src/generators/__snapshots__/enumNamesConst.ts +2 -2
  31. package/src/generators/__snapshots__/enumNamesLiteral.ts +2 -2
  32. package/src/generators/__snapshots__/enumNamesPascalConst.ts +3 -3
  33. package/src/generators/__snapshots__/enumNamesType.ts +2 -2
  34. package/src/generators/__snapshots__/enumNullableMember.ts +3 -3
  35. package/src/generators/__snapshots__/enumNullableType.ts +3 -3
  36. package/src/generators/__snapshots__/enumString.ts +3 -3
  37. package/src/generators/__snapshots__/enumVarNamesType.ts +3 -3
  38. package/src/generators/__snapshots__/fooBase.ts +2 -2
  39. package/src/plugin.ts +5 -2
  40. package/src/types.ts +1 -2
  41. package/dist/components-6F5RoYuJ.js.map +0 -1
  42. package/dist/components-B-Jx1kI5.cjs.map +0 -1
@@ -24,12 +24,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  }) : target, mod));
25
25
 
26
26
  //#endregion
27
- const __kubb_core_transformers = __toESM(require("@kubb/core/transformers"));
28
- const __kubb_plugin_oas = __toESM(require("@kubb/plugin-oas"));
29
- const __kubb_parser_ts = __toESM(require("@kubb/parser-ts"));
30
- const __kubb_parser_ts_factory = __toESM(require("@kubb/parser-ts/factory"));
31
- const __kubb_react = __toESM(require("@kubb/react"));
32
- const __kubb_react_jsx_runtime = __toESM(require("@kubb/react/jsx-runtime"));
27
+ let __kubb_core_transformers = require("@kubb/core/transformers");
28
+ __kubb_core_transformers = __toESM(__kubb_core_transformers);
29
+ let __kubb_plugin_oas = require("@kubb/plugin-oas");
30
+ __kubb_plugin_oas = __toESM(__kubb_plugin_oas);
31
+ let __kubb_parser_ts = require("@kubb/parser-ts");
32
+ __kubb_parser_ts = __toESM(__kubb_parser_ts);
33
+ let __kubb_parser_ts_factory = require("@kubb/parser-ts/factory");
34
+ __kubb_parser_ts_factory = __toESM(__kubb_parser_ts_factory);
35
+ let __kubb_react = require("@kubb/react");
36
+ __kubb_react = __toESM(__kubb_react);
37
+ let __kubb_react_jsx_runtime = require("@kubb/react/jsx-runtime");
38
+ __kubb_react_jsx_runtime = __toESM(__kubb_react_jsx_runtime);
33
39
 
34
40
  //#region src/components/OasType.tsx
35
41
  function OasType({ name, typeName, api }) {
@@ -59,11 +65,6 @@ function OasType({ name, typeName, api }) {
59
65
  //#region ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
60
66
  var require_react_production_min = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js": ((exports) => {
61
67
  var l = Symbol.for("react.element"), n = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), u = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), z = Symbol.iterator;
62
- function A(a) {
63
- if (null === a || "object" !== typeof a) return null;
64
- a = z && a[z] || a["@@iterator"];
65
- return "function" === typeof a ? a : null;
66
- }
67
68
  var B = {
68
69
  isMounted: function() {
69
70
  return !1;
@@ -104,271 +105,7 @@ var require_react_production_min = /* @__PURE__ */ __commonJS({ "../../node_modu
104
105
  __self: !0,
105
106
  __source: !0
106
107
  };
107
- function M(a, b, e) {
108
- var d, c = {}, k = null, h = null;
109
- if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
110
- var g = arguments.length - 2;
111
- if (1 === g) c.children = e;
112
- else if (1 < g) {
113
- for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];
114
- c.children = f;
115
- }
116
- if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]);
117
- return {
118
- $$typeof: l,
119
- type: a,
120
- key: k,
121
- ref: h,
122
- props: c,
123
- _owner: K.current
124
- };
125
- }
126
- function N(a, b) {
127
- return {
128
- $$typeof: l,
129
- type: a.type,
130
- key: b,
131
- ref: a.ref,
132
- props: a.props,
133
- _owner: a._owner
134
- };
135
- }
136
- function O(a) {
137
- return "object" === typeof a && null !== a && a.$$typeof === l;
138
- }
139
- function escape(a) {
140
- var b = {
141
- "=": "=0",
142
- ":": "=2"
143
- };
144
- return "$" + a.replace(/[=:]/g, function(a$1) {
145
- return b[a$1];
146
- });
147
- }
148
- var P = /\/+/g;
149
- function Q(a, b) {
150
- return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
151
- }
152
- function R(a, b, e, d, c) {
153
- var k = typeof a;
154
- if ("undefined" === k || "boolean" === k) a = null;
155
- var h = !1;
156
- if (null === a) h = !0;
157
- else switch (k) {
158
- case "string":
159
- case "number":
160
- h = !0;
161
- break;
162
- case "object": switch (a.$$typeof) {
163
- case l:
164
- case n: h = !0;
165
- }
166
- }
167
- if (h) return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a$1) {
168
- return a$1;
169
- })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
170
- h = 0;
171
- d = "" === d ? "." : d + ":";
172
- if (I(a)) for (var g = 0; g < a.length; g++) {
173
- k = a[g];
174
- var f = d + Q(k, g);
175
- h += R(k, b, e, f, c);
176
- }
177
- else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done;) k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
178
- else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
179
- return h;
180
- }
181
- function S(a, b, e) {
182
- if (null == a) return a;
183
- var d = [], c = 0;
184
- R(a, d, "", "", function(a$1) {
185
- return b.call(e, a$1, c++);
186
- });
187
- return d;
188
- }
189
- function T(a) {
190
- if (-1 === a._status) {
191
- var b = a._result;
192
- b = b();
193
- b.then(function(b$1) {
194
- if (0 === a._status || -1 === a._status) a._status = 1, a._result = b$1;
195
- }, function(b$1) {
196
- if (0 === a._status || -1 === a._status) a._status = 2, a._result = b$1;
197
- });
198
- -1 === a._status && (a._status = 0, a._result = b);
199
- }
200
- if (1 === a._status) return a._result.default;
201
- throw a._result;
202
- }
203
- var U = { current: null }, V = { transition: null }, W = {
204
- ReactCurrentDispatcher: U,
205
- ReactCurrentBatchConfig: V,
206
- ReactCurrentOwner: K
207
- };
208
- function X() {
209
- throw Error("act(...) is not supported in production builds of React.");
210
- }
211
- exports.Children = {
212
- map: S,
213
- forEach: function(a, b, e) {
214
- S(a, function() {
215
- b.apply(this, arguments);
216
- }, e);
217
- },
218
- count: function(a) {
219
- var b = 0;
220
- S(a, function() {
221
- b++;
222
- });
223
- return b;
224
- },
225
- toArray: function(a) {
226
- return S(a, function(a$1) {
227
- return a$1;
228
- }) || [];
229
- },
230
- only: function(a) {
231
- if (!O(a)) throw Error("React.Children.only expected to receive a single React element child.");
232
- return a;
233
- }
234
- };
235
- exports.Component = E;
236
108
  exports.Fragment = p;
237
- exports.Profiler = r;
238
- exports.PureComponent = G;
239
- exports.StrictMode = q;
240
- exports.Suspense = w;
241
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
242
- exports.act = X;
243
- exports.cloneElement = function(a, b, e) {
244
- if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
245
- var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
246
- if (null != b) {
247
- void 0 !== b.ref && (k = b.ref, h = K.current);
248
- void 0 !== b.key && (c = "" + b.key);
249
- if (a.type && a.type.defaultProps) var g = a.type.defaultProps;
250
- for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
251
- }
252
- var f = arguments.length - 2;
253
- if (1 === f) d.children = e;
254
- else if (1 < f) {
255
- g = Array(f);
256
- for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
257
- d.children = g;
258
- }
259
- return {
260
- $$typeof: l,
261
- type: a.type,
262
- key: c,
263
- ref: k,
264
- props: d,
265
- _owner: h
266
- };
267
- };
268
- exports.createContext = function(a) {
269
- a = {
270
- $$typeof: u,
271
- _currentValue: a,
272
- _currentValue2: a,
273
- _threadCount: 0,
274
- Provider: null,
275
- Consumer: null,
276
- _defaultValue: null,
277
- _globalName: null
278
- };
279
- a.Provider = {
280
- $$typeof: t,
281
- _context: a
282
- };
283
- return a.Consumer = a;
284
- };
285
- exports.createElement = M;
286
- exports.createFactory = function(a) {
287
- var b = M.bind(null, a);
288
- b.type = a;
289
- return b;
290
- };
291
- exports.createRef = function() {
292
- return { current: null };
293
- };
294
- exports.forwardRef = function(a) {
295
- return {
296
- $$typeof: v,
297
- render: a
298
- };
299
- };
300
- exports.isValidElement = O;
301
- exports.lazy = function(a) {
302
- return {
303
- $$typeof: y,
304
- _payload: {
305
- _status: -1,
306
- _result: a
307
- },
308
- _init: T
309
- };
310
- };
311
- exports.memo = function(a, b) {
312
- return {
313
- $$typeof: x,
314
- type: a,
315
- compare: void 0 === b ? null : b
316
- };
317
- };
318
- exports.startTransition = function(a) {
319
- var b = V.transition;
320
- V.transition = {};
321
- try {
322
- a();
323
- } finally {
324
- V.transition = b;
325
- }
326
- };
327
- exports.unstable_act = X;
328
- exports.useCallback = function(a, b) {
329
- return U.current.useCallback(a, b);
330
- };
331
- exports.useContext = function(a) {
332
- return U.current.useContext(a);
333
- };
334
- exports.useDebugValue = function() {};
335
- exports.useDeferredValue = function(a) {
336
- return U.current.useDeferredValue(a);
337
- };
338
- exports.useEffect = function(a, b) {
339
- return U.current.useEffect(a, b);
340
- };
341
- exports.useId = function() {
342
- return U.current.useId();
343
- };
344
- exports.useImperativeHandle = function(a, b, e) {
345
- return U.current.useImperativeHandle(a, b, e);
346
- };
347
- exports.useInsertionEffect = function(a, b) {
348
- return U.current.useInsertionEffect(a, b);
349
- };
350
- exports.useLayoutEffect = function(a, b) {
351
- return U.current.useLayoutEffect(a, b);
352
- };
353
- exports.useMemo = function(a, b) {
354
- return U.current.useMemo(a, b);
355
- };
356
- exports.useReducer = function(a, b, e) {
357
- return U.current.useReducer(a, b, e);
358
- };
359
- exports.useRef = function(a) {
360
- return U.current.useRef(a);
361
- };
362
- exports.useState = function(a) {
363
- return U.current.useState(a);
364
- };
365
- exports.useSyncExternalStore = function(a, b, e) {
366
- return U.current.useSyncExternalStore(a, b, e);
367
- };
368
- exports.useTransition = function() {
369
- return U.current.useTransition();
370
- };
371
- exports.version = "18.3.1";
372
109
  }) });
373
110
 
374
111
  //#endregion
@@ -456,8 +193,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
456
193
  printWarning("error", format, args);
457
194
  }
458
195
  function printWarning(level, format, args) {
459
- var ReactDebugCurrentFrame$2 = ReactSharedInternals.ReactDebugCurrentFrame;
460
- var stack = ReactDebugCurrentFrame$2.getStackAddendum();
196
+ var stack = ReactSharedInternals.ReactDebugCurrentFrame.getStackAddendum();
461
197
  if (stack !== "") {
462
198
  format += "%s";
463
199
  args = args.concat([stack]);
@@ -560,7 +296,6 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
560
296
  var defineDeprecationWarning = function(methodName, info) {
561
297
  Object.defineProperty(Component.prototype, methodName, { get: function() {
562
298
  warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
563
- return void 0;
564
299
  } });
565
300
  };
566
301
  for (var fnName in deprecatedAPIs) if (deprecatedAPIs.hasOwnProperty(fnName)) defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
@@ -589,9 +324,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
589
324
  return isArrayImpl(a);
590
325
  }
591
326
  function typeName(value) {
592
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
593
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
594
- return type;
327
+ return typeof Symbol === "function" && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
595
328
  }
596
329
  function willCoercionThrow(value) {
597
330
  try {
@@ -633,12 +366,8 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
633
366
  case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
634
367
  }
635
368
  if (typeof type === "object") switch (type.$$typeof) {
636
- case REACT_CONTEXT_TYPE:
637
- var context = type;
638
- return getContextName(context) + ".Consumer";
639
- case REACT_PROVIDER_TYPE:
640
- var provider = type;
641
- return getContextName(provider._context) + ".Provider";
369
+ case REACT_CONTEXT_TYPE: return getContextName(type) + ".Consumer";
370
+ case REACT_PROVIDER_TYPE: return getContextName(type._context) + ".Provider";
642
371
  case REACT_FORWARD_REF_TYPE: return getWrappedName(type, type.render, "ForwardRef");
643
372
  case REACT_MEMO_TYPE:
644
373
  var outerName = type.displayName || null;
@@ -663,8 +392,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
663
392
  __self: true,
664
393
  __source: true
665
394
  };
666
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
667
- didWarnAboutStringRefs = {};
395
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs = {};
668
396
  function hasValidRef(config) {
669
397
  if (hasOwnProperty.call(config, "ref")) {
670
398
  var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
@@ -812,8 +540,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
812
540
  return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
813
541
  }
814
542
  function cloneAndReplaceKey(oldElement, newKey) {
815
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
816
- return newElement;
543
+ return ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
817
544
  }
818
545
  /**
819
546
  * Clone and return a new ReactElement using element as the starting point.
@@ -869,16 +596,15 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
869
596
  * @param {string} key to be escaped.
870
597
  * @return {string} the escaped key.
871
598
  */
872
- function escape$1(key) {
599
+ function escape(key) {
873
600
  var escapeRegex = /[=:]/g;
874
601
  var escaperLookup = {
875
602
  "=": "=0",
876
603
  ":": "=2"
877
604
  };
878
- var escapedString = key.replace(escapeRegex, function(match) {
605
+ return "$" + key.replace(escapeRegex, function(match) {
879
606
  return escaperLookup[match];
880
607
  });
881
- return "$" + escapedString;
882
608
  }
883
609
  /**
884
610
  * TODO: Test that a single child and an array with one item have the same key
@@ -899,7 +625,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
899
625
  function getElementKey(element, index) {
900
626
  if (typeof element === "object" && element !== null && element.key != null) {
901
627
  checkKeyStringCoercion(element.key);
902
- return escape$1("" + element.key);
628
+ return escape("" + element.key);
903
629
  }
904
630
  return index.toString(36);
905
631
  }
@@ -1171,13 +897,12 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1171
897
  } else throw payload._result;
1172
898
  }
1173
899
  function lazy(ctor) {
1174
- var payload = {
1175
- _status: Uninitialized,
1176
- _result: ctor
1177
- };
1178
900
  var lazyType = {
1179
901
  $$typeof: REACT_LAZY_TYPE,
1180
- _payload: payload,
902
+ _payload: {
903
+ _status: Uninitialized,
904
+ _result: ctor
905
+ },
1181
906
  _init: lazyInitializer
1182
907
  };
1183
908
  var defaultProps;
@@ -1233,8 +958,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1233
958
  });
1234
959
  return elementType;
1235
960
  }
1236
- var REACT_MODULE_REFERENCE;
1237
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
961
+ var REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
1238
962
  function isValidElementType(type) {
1239
963
  if (typeof type === "string" || typeof type === "function") return true;
1240
964
  if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) return true;
@@ -1279,60 +1003,46 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1279
1003
  return dispatcher.useContext(Context);
1280
1004
  }
1281
1005
  function useState(initialState) {
1282
- var dispatcher = resolveDispatcher();
1283
- return dispatcher.useState(initialState);
1006
+ return resolveDispatcher().useState(initialState);
1284
1007
  }
1285
1008
  function useReducer(reducer, initialArg, init) {
1286
- var dispatcher = resolveDispatcher();
1287
- return dispatcher.useReducer(reducer, initialArg, init);
1009
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
1288
1010
  }
1289
1011
  function useRef(initialValue) {
1290
- var dispatcher = resolveDispatcher();
1291
- return dispatcher.useRef(initialValue);
1012
+ return resolveDispatcher().useRef(initialValue);
1292
1013
  }
1293
1014
  function useEffect(create, deps) {
1294
- var dispatcher = resolveDispatcher();
1295
- return dispatcher.useEffect(create, deps);
1015
+ return resolveDispatcher().useEffect(create, deps);
1296
1016
  }
1297
1017
  function useInsertionEffect(create, deps) {
1298
- var dispatcher = resolveDispatcher();
1299
- return dispatcher.useInsertionEffect(create, deps);
1018
+ return resolveDispatcher().useInsertionEffect(create, deps);
1300
1019
  }
1301
1020
  function useLayoutEffect(create, deps) {
1302
- var dispatcher = resolveDispatcher();
1303
- return dispatcher.useLayoutEffect(create, deps);
1021
+ return resolveDispatcher().useLayoutEffect(create, deps);
1304
1022
  }
1305
1023
  function useCallback(callback, deps) {
1306
- var dispatcher = resolveDispatcher();
1307
- return dispatcher.useCallback(callback, deps);
1024
+ return resolveDispatcher().useCallback(callback, deps);
1308
1025
  }
1309
1026
  function useMemo(create, deps) {
1310
- var dispatcher = resolveDispatcher();
1311
- return dispatcher.useMemo(create, deps);
1027
+ return resolveDispatcher().useMemo(create, deps);
1312
1028
  }
1313
1029
  function useImperativeHandle(ref, create, deps) {
1314
- var dispatcher = resolveDispatcher();
1315
- return dispatcher.useImperativeHandle(ref, create, deps);
1030
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
1316
1031
  }
1317
1032
  function useDebugValue(value, formatterFn) {
1318
- var dispatcher = resolveDispatcher();
1319
- return dispatcher.useDebugValue(value, formatterFn);
1033
+ return resolveDispatcher().useDebugValue(value, formatterFn);
1320
1034
  }
1321
1035
  function useTransition() {
1322
- var dispatcher = resolveDispatcher();
1323
- return dispatcher.useTransition();
1036
+ return resolveDispatcher().useTransition();
1324
1037
  }
1325
1038
  function useDeferredValue(value) {
1326
- var dispatcher = resolveDispatcher();
1327
- return dispatcher.useDeferredValue(value);
1039
+ return resolveDispatcher().useDeferredValue(value);
1328
1040
  }
1329
1041
  function useId() {
1330
- var dispatcher = resolveDispatcher();
1331
- return dispatcher.useId();
1042
+ return resolveDispatcher().useId();
1332
1043
  }
1333
1044
  function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1334
- var dispatcher = resolveDispatcher();
1335
- return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1045
+ return resolveDispatcher().useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1336
1046
  }
1337
1047
  var disabledDepth = 0;
1338
1048
  var prevLog;
@@ -1403,9 +1113,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1403
1113
  return "\n" + prefix + name;
1404
1114
  }
1405
1115
  var reentry = false;
1406
- var componentFrameCache;
1407
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
1408
- componentFrameCache = new PossiblyWeakMap();
1116
+ var componentFrameCache = new (typeof WeakMap === "function" ? WeakMap : Map)();
1409
1117
  function describeNativeComponentFrame(fn, construct) {
1410
1118
  if (!fn || reentry) return "";
1411
1119
  var frame = componentFrameCache.get(fn);
@@ -1414,8 +1122,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1414
1122
  reentry = true;
1415
1123
  var previousPrepareStackTrace = Error.prepareStackTrace;
1416
1124
  Error.prepareStackTrace = void 0;
1417
- var previousDispatcher;
1418
- previousDispatcher = ReactCurrentDispatcher$1.current;
1125
+ var previousDispatcher = ReactCurrentDispatcher$1.current;
1419
1126
  ReactCurrentDispatcher$1.current = null;
1420
1127
  disableLogs();
1421
1128
  try {
@@ -1552,8 +1259,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1552
1259
  setExtraStackFrame(stack);
1553
1260
  } else setExtraStackFrame(null);
1554
1261
  }
1555
- var propTypesMisspellWarningShown;
1556
- propTypesMisspellWarningShown = false;
1262
+ var propTypesMisspellWarningShown = false;
1557
1263
  function getDeclarationErrorAddendum() {
1558
1264
  if (ReactCurrentOwner.current) {
1559
1265
  var name = getComponentNameFromType(ReactCurrentOwner.current.type);
@@ -1740,8 +1446,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1740
1446
  } finally {
1741
1447
  ReactCurrentBatchConfig.transition = prevTransition;
1742
1448
  if (prevTransition === null && currentTransition._updatedFibers) {
1743
- var updatedFibersCount = currentTransition._updatedFibers.size;
1744
- if (updatedFibersCount > 10) warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
1449
+ if (currentTransition._updatedFibers.size > 10) warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
1745
1450
  currentTransition._updatedFibers.clear();
1746
1451
  }
1747
1452
  }
@@ -1751,8 +1456,7 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1751
1456
  function enqueueTask(task) {
1752
1457
  if (enqueueTaskImpl === null) try {
1753
1458
  var requireString = ("require" + Math.random()).slice(0, 7);
1754
- var nodeRequire = module && module[requireString];
1755
- enqueueTaskImpl = nodeRequire.call(module, "timers").setImmediate;
1459
+ enqueueTaskImpl = (module && module[requireString]).call(module, "timers").setImmediate;
1756
1460
  } catch (_err) {
1757
1461
  enqueueTaskImpl = function(callback) {
1758
1462
  if (didWarnAboutMessageChannel === false) {
@@ -1820,19 +1524,15 @@ var require_react_development = /* @__PURE__ */ __commonJS({ "../../node_modules
1820
1524
  flushActQueue(_queue);
1821
1525
  ReactCurrentActQueue.current = null;
1822
1526
  }
1823
- var _thenable = { then: function(resolve, reject) {
1527
+ return { then: function(resolve, reject) {
1824
1528
  if (ReactCurrentActQueue.current === null) {
1825
1529
  ReactCurrentActQueue.current = [];
1826
1530
  recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1827
1531
  } else resolve(returnValue);
1828
1532
  } };
1829
- return _thenable;
1830
- } else {
1831
- var _thenable2 = { then: function(resolve, reject) {
1832
- resolve(returnValue);
1833
- } };
1834
- return _thenable2;
1835
- }
1533
+ } else return { then: function(resolve, reject) {
1534
+ resolve(returnValue);
1535
+ } };
1836
1536
  }
1837
1537
  }
1838
1538
  function popActScope(prevActScopeDepth) {
@@ -1951,11 +1651,11 @@ const typeKeywordMapper = {
1951
1651
  null: () => __kubb_parser_ts_factory.keywordTypeNodes.null,
1952
1652
  nullish: void 0,
1953
1653
  array: (nodes) => {
1954
- if (!nodes) return void 0;
1654
+ if (!nodes) return;
1955
1655
  return __kubb_parser_ts_factory.createArrayDeclaration({ nodes });
1956
1656
  },
1957
1657
  tuple: (nodes, rest, min, max) => {
1958
- if (!nodes) return void 0;
1658
+ if (!nodes) return;
1959
1659
  if (max) {
1960
1660
  nodes = nodes.slice(0, max);
1961
1661
  if (nodes.length < max && rest) nodes = [...nodes, ...Array(max - nodes.length).fill(rest)];
@@ -1965,18 +1665,18 @@ const typeKeywordMapper = {
1965
1665
  return __kubb_parser_ts_factory.createTupleTypeNode(nodes);
1966
1666
  },
1967
1667
  enum: (name) => {
1968
- if (!name) return void 0;
1668
+ if (!name) return;
1969
1669
  return __kubb_parser_ts_factory.createTypeReferenceNode(name, void 0);
1970
1670
  },
1971
1671
  union: (nodes) => {
1972
- if (!nodes) return void 0;
1672
+ if (!nodes) return;
1973
1673
  return __kubb_parser_ts_factory.createUnionDeclaration({
1974
1674
  withParentheses: true,
1975
1675
  nodes
1976
1676
  });
1977
1677
  },
1978
1678
  const: (name, format) => {
1979
- if (name === null || name === void 0 || name === "") return void 0;
1679
+ if (name === null || name === void 0 || name === "") return;
1980
1680
  if (format === "boolean") {
1981
1681
  if (name === true) return __kubb_parser_ts_factory.createLiteralTypeNode(__kubb_parser_ts_factory.createTrue());
1982
1682
  return __kubb_parser_ts_factory.createLiteralTypeNode(__kubb_parser_ts_factory.createFalse());
@@ -1991,7 +1691,7 @@ const typeKeywordMapper = {
1991
1691
  url: () => __kubb_parser_ts_factory.keywordTypeNodes.string,
1992
1692
  default: void 0,
1993
1693
  and: (nodes) => {
1994
- if (!nodes) return void 0;
1694
+ if (!nodes) return;
1995
1695
  return __kubb_parser_ts_factory.createIntersectionDeclaration({
1996
1696
  withParentheses: true,
1997
1697
  nodes
@@ -2010,7 +1710,7 @@ const typeKeywordMapper = {
2010
1710
  readOnly: void 0,
2011
1711
  writeOnly: void 0,
2012
1712
  ref: (propertyName) => {
2013
- if (!propertyName) return void 0;
1713
+ if (!propertyName) return;
2014
1714
  return __kubb_parser_ts_factory.createTypeReferenceNode(propertyName, void 0);
2015
1715
  },
2016
1716
  blob: () => __kubb_parser_ts_factory.createTypeReferenceNode("Blob", []),
@@ -2034,7 +1734,7 @@ const typeKeywordMapper = {
2034
1734
  */
2035
1735
  function parse({ current, siblings, name }, options) {
2036
1736
  const value = typeKeywordMapper[current.keyword];
2037
- if (!value) return void 0;
1737
+ if (!value) return;
2038
1738
  if ((0, __kubb_plugin_oas.isKeyword)(current, __kubb_plugin_oas.schemaKeywords.union)) return typeKeywordMapper.union(current.args.map((schema) => parse({
2039
1739
  parent: current,
2040
1740
  name,
@@ -2073,8 +1773,7 @@ function parse({ current, siblings, name }, options) {
2073
1773
  const schemas = item[1];
2074
1774
  return schemas && typeof schemas.map === "function";
2075
1775
  }).map(([name$1, schemas]) => {
2076
- const nameSchema = schemas.find((schema) => schema.keyword === __kubb_plugin_oas.schemaKeywords.name);
2077
- const mappedName = nameSchema?.args || name$1;
1776
+ const mappedName = schemas.find((schema) => schema.keyword === __kubb_plugin_oas.schemaKeywords.name)?.args || name$1;
2078
1777
  if (options.mapper?.[mappedName]) return options.mapper?.[mappedName];
2079
1778
  const isNullish = schemas.some((schema) => schema.keyword === __kubb_plugin_oas.schemaKeywords.nullish);
2080
1779
  const isNullable = schemas.some((schema) => schema.keyword === __kubb_plugin_oas.schemaKeywords.nullable);
@@ -2125,8 +1824,7 @@ function parse({ current, siblings, name }, options) {
2125
1824
  current: schema,
2126
1825
  siblings
2127
1826
  }, options)).filter(Boolean).at(0);
2128
- const isNullable = current.args?.additionalProperties.some((schema) => (0, __kubb_plugin_oas.isKeyword)(schema, __kubb_plugin_oas.schemaKeywords.nullable));
2129
- if (isNullable) additionalProperties = __kubb_parser_ts_factory.createUnionDeclaration({ nodes: [additionalProperties, __kubb_parser_ts_factory.keywordTypeNodes.null] });
1827
+ if (current.args?.additionalProperties.some((schema) => (0, __kubb_plugin_oas.isKeyword)(schema, __kubb_plugin_oas.schemaKeywords.nullable))) additionalProperties = __kubb_parser_ts_factory.createUnionDeclaration({ nodes: [additionalProperties, __kubb_parser_ts_factory.keywordTypeNodes.null] });
2130
1828
  additionalProperties = __kubb_parser_ts_factory.createIndexSignature(additionalProperties);
2131
1829
  }
2132
1830
  return typeKeywordMapper.object([...properties, additionalProperties].filter(Boolean));
@@ -2135,7 +1833,6 @@ function parse({ current, siblings, name }, options) {
2135
1833
  if ((0, __kubb_plugin_oas.isKeyword)(current, __kubb_plugin_oas.schemaKeywords.date)) return typeKeywordMapper.date(current.args.type);
2136
1834
  if ((0, __kubb_plugin_oas.isKeyword)(current, __kubb_plugin_oas.schemaKeywords.time)) return typeKeywordMapper.time(current.args.type);
2137
1835
  if (current.keyword in typeKeywordMapper) return value();
2138
- return void 0;
2139
1836
  }
2140
1837
 
2141
1838
  //#endregion
@@ -2253,4 +1950,4 @@ Object.defineProperty(exports, '__toESM', {
2253
1950
  return __toESM;
2254
1951
  }
2255
1952
  });
2256
- //# sourceMappingURL=components-B-Jx1kI5.cjs.map
1953
+ //# sourceMappingURL=components-CTopmaD3.cjs.map