@kubb/plugin-oas 2.19.5 → 2.20.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 (43) hide show
  1. package/dist/{OperationGenerator-BL3W1CH2.d.ts → OperationGenerator-8DNneYd8.d.ts} +4 -1
  2. package/dist/{OperationGenerator-B6_KXF47.d.cts → OperationGenerator-BHo9OWOG.d.cts} +4 -1
  3. package/dist/{chunk-3NSBUDVM.js → chunk-5PS7VSVP.js} +34 -41
  4. package/dist/{chunk-3NSBUDVM.js.map → chunk-5PS7VSVP.js.map} +1 -1
  5. package/dist/{chunk-SXUTBEJ7.js → chunk-7KC6HDZA.js} +11 -25
  6. package/dist/{chunk-SXUTBEJ7.js.map → chunk-7KC6HDZA.js.map} +1 -1
  7. package/dist/{chunk-I5KLDP43.cjs → chunk-C4DNEBEV.cjs} +65 -94
  8. package/dist/chunk-C4DNEBEV.cjs.map +1 -0
  9. package/dist/{chunk-USWJ3LIC.cjs → chunk-ERS2ZSAT.cjs} +40 -47
  10. package/dist/chunk-ERS2ZSAT.cjs.map +1 -0
  11. package/dist/{chunk-YS56QITS.cjs → chunk-GWI26OTO.cjs} +11 -25
  12. package/dist/chunk-GWI26OTO.cjs.map +1 -0
  13. package/dist/{chunk-WEZ6CODU.cjs → chunk-I5OXSD6K.cjs} +3 -3
  14. package/dist/{chunk-FDLHRTTS.js → chunk-N6CQRWVS.js} +2 -2
  15. package/dist/{chunk-CBVKDLCJ.js → chunk-YPTFMYOL.js} +45 -74
  16. package/dist/{chunk-CBVKDLCJ.js.map → chunk-YPTFMYOL.js.map} +1 -1
  17. package/dist/components.cjs +5 -5
  18. package/dist/components.d.cts +1 -1
  19. package/dist/components.d.ts +1 -1
  20. package/dist/components.js +3 -3
  21. package/dist/hooks.cjs +31 -18
  22. package/dist/hooks.cjs.map +1 -1
  23. package/dist/hooks.d.cts +9 -3
  24. package/dist/hooks.d.ts +9 -3
  25. package/dist/hooks.js +21 -8
  26. package/dist/hooks.js.map +1 -1
  27. package/dist/index.cjs +37 -43
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.cts +1 -1
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.js +26 -32
  32. package/dist/index.js.map +1 -1
  33. package/dist/utils.cjs +8 -8
  34. package/dist/utils.js +2 -2
  35. package/package.json +11 -11
  36. package/src/OperationGenerator.ts +10 -7
  37. package/src/SchemaGenerator.ts +8 -2
  38. package/src/hooks/useOperationManager.ts +27 -7
  39. package/dist/chunk-I5KLDP43.cjs.map +0 -1
  40. package/dist/chunk-USWJ3LIC.cjs.map +0 -1
  41. package/dist/chunk-YS56QITS.cjs.map +0 -1
  42. /package/dist/{chunk-WEZ6CODU.cjs.map → chunk-I5OXSD6K.cjs.map} +0 -0
  43. /package/dist/{chunk-FDLHRTTS.js.map → chunk-N6CQRWVS.js.map} +0 -0
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  SchemaGenerator,
3
3
  schemaKeywords
4
- } from "./chunk-3NSBUDVM.js";
4
+ } from "./chunk-5PS7VSVP.js";
5
5
  import {
6
6
  __commonJS,
7
7
  __toESM,
8
8
  init_esm_shims
9
- } from "./chunk-SXUTBEJ7.js";
9
+ } from "./chunk-7KC6HDZA.js";
10
10
 
11
11
  // ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
12
12
  var require_react_production_min = __commonJS({
@@ -26,8 +26,7 @@ var require_react_production_min = __commonJS({
26
26
  var y = Symbol.for("react.lazy");
27
27
  var z = Symbol.iterator;
28
28
  function A(a) {
29
- if (null === a || "object" !== typeof a)
30
- return null;
29
+ if (null === a || "object" !== typeof a) return null;
31
30
  a = z && a[z] || a["@@iterator"];
32
31
  return "function" === typeof a ? a : null;
33
32
  }
@@ -47,8 +46,7 @@ var require_react_production_min = __commonJS({
47
46
  }
48
47
  E.prototype.isReactComponent = {};
49
48
  E.prototype.setState = function(a, b) {
50
- if ("object" !== typeof a && "function" !== typeof a && null != a)
51
- throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
49
+ if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
52
50
  this.updater.enqueueSetState(this, a, b, "setState");
53
51
  };
54
52
  E.prototype.forceUpdate = function(a) {
@@ -73,20 +71,14 @@ var require_react_production_min = __commonJS({
73
71
  var L = { key: true, ref: true, __self: true, __source: true };
74
72
  function M(a, b, e) {
75
73
  var d, c = {}, k = null, h = null;
76
- if (null != b)
77
- for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b)
78
- J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
74
+ 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]);
79
75
  var g = arguments.length - 2;
80
- if (1 === g)
81
- c.children = e;
76
+ if (1 === g) c.children = e;
82
77
  else if (1 < g) {
83
- for (var f = Array(g), m = 0; m < g; m++)
84
- f[m] = arguments[m + 2];
78
+ for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];
85
79
  c.children = f;
86
80
  }
87
- if (a && a.defaultProps)
88
- for (d in g = a.defaultProps, g)
89
- void 0 === c[d] && (c[d] = g[d]);
81
+ if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]);
90
82
  return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
91
83
  }
92
84
  function N(a, b) {
@@ -107,46 +99,37 @@ var require_react_production_min = __commonJS({
107
99
  }
108
100
  function R(a, b, e, d, c) {
109
101
  var k = typeof a;
110
- if ("undefined" === k || "boolean" === k)
111
- a = null;
102
+ if ("undefined" === k || "boolean" === k) a = null;
112
103
  var h = false;
113
- if (null === a)
114
- h = true;
115
- else
116
- switch (k) {
117
- case "string":
118
- case "number":
119
- h = true;
120
- break;
121
- case "object":
122
- switch (a.$$typeof) {
123
- case l:
124
- case n:
125
- h = true;
126
- }
127
- }
128
- if (h)
129
- 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(a2) {
130
- return a2;
131
- })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
104
+ if (null === a) h = true;
105
+ else switch (k) {
106
+ case "string":
107
+ case "number":
108
+ h = true;
109
+ break;
110
+ case "object":
111
+ switch (a.$$typeof) {
112
+ case l:
113
+ case n:
114
+ h = true;
115
+ }
116
+ }
117
+ 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(a2) {
118
+ return a2;
119
+ })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
132
120
  h = 0;
133
121
  d = "" === d ? "." : d + ":";
134
- if (I(a))
135
- for (var g = 0; g < a.length; g++) {
136
- k = a[g];
137
- var f = d + Q(k, g);
138
- h += R(k, b, e, f, c);
139
- }
140
- else if (f = A(a), "function" === typeof f)
141
- for (a = f.call(a), g = 0; !(k = a.next()).done; )
142
- k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
143
- else if ("object" === k)
144
- 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.");
122
+ if (I(a)) for (var g = 0; g < a.length; g++) {
123
+ k = a[g];
124
+ var f = d + Q(k, g);
125
+ h += R(k, b, e, f, c);
126
+ }
127
+ 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);
128
+ 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.");
145
129
  return h;
146
130
  }
147
131
  function S(a, b, e) {
148
- if (null == a)
149
- return a;
132
+ if (null == a) return a;
150
133
  var d = [], c = 0;
151
134
  R(a, d, "", "", function(a2) {
152
135
  return b.call(e, a2, c++);
@@ -158,16 +141,13 @@ var require_react_production_min = __commonJS({
158
141
  var b = a._result;
159
142
  b = b();
160
143
  b.then(function(b2) {
161
- if (0 === a._status || -1 === a._status)
162
- a._status = 1, a._result = b2;
144
+ if (0 === a._status || -1 === a._status) a._status = 1, a._result = b2;
163
145
  }, function(b2) {
164
- if (0 === a._status || -1 === a._status)
165
- a._status = 2, a._result = b2;
146
+ if (0 === a._status || -1 === a._status) a._status = 2, a._result = b2;
166
147
  });
167
148
  -1 === a._status && (a._status = 0, a._result = b);
168
149
  }
169
- if (1 === a._status)
170
- return a._result.default;
150
+ if (1 === a._status) return a._result.default;
171
151
  throw a._result;
172
152
  }
173
153
  var U = { current: null };
@@ -191,8 +171,7 @@ var require_react_production_min = __commonJS({
191
171
  return a2;
192
172
  }) || [];
193
173
  }, only: function(a) {
194
- if (!O(a))
195
- throw Error("React.Children.only expected to receive a single React element child.");
174
+ if (!O(a)) throw Error("React.Children.only expected to receive a single React element child.");
196
175
  return a;
197
176
  } };
198
177
  exports.Component = E;
@@ -204,24 +183,19 @@ var require_react_production_min = __commonJS({
204
183
  exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
205
184
  exports.act = X;
206
185
  exports.cloneElement = function(a, b, e) {
207
- if (null === a || void 0 === a)
208
- throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
186
+ if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
209
187
  var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
210
188
  if (null != b) {
211
189
  void 0 !== b.ref && (k = b.ref, h = K.current);
212
190
  void 0 !== b.key && (c = "" + b.key);
213
- if (a.type && a.type.defaultProps)
214
- var g = a.type.defaultProps;
215
- for (f in b)
216
- J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
191
+ if (a.type && a.type.defaultProps) var g = a.type.defaultProps;
192
+ for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
217
193
  }
218
194
  var f = arguments.length - 2;
219
- if (1 === f)
220
- d.children = e;
195
+ if (1 === f) d.children = e;
221
196
  else if (1 < f) {
222
197
  g = Array(f);
223
- for (var m = 0; m < f; m++)
224
- g[m] = arguments[m + 2];
198
+ for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
225
199
  d.children = g;
226
200
  }
227
201
  return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
@@ -2212,11 +2186,8 @@ var require_react_jsx_runtime_production_min = __commonJS({
2212
2186
  void 0 !== g && (e = "" + g);
2213
2187
  void 0 !== a.key && (e = "" + a.key);
2214
2188
  void 0 !== a.ref && (h = a.ref);
2215
- for (b in a)
2216
- m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
2217
- if (c && c.defaultProps)
2218
- for (b in a = c.defaultProps, a)
2219
- void 0 === d[b] && (d[b] = a[b]);
2189
+ for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
2190
+ if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
2220
2191
  return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
2221
2192
  }
2222
2193
  exports.Fragment = l;
@@ -3291,4 +3262,4 @@ react/cjs/react-jsx-runtime.development.js:
3291
3262
  * LICENSE file in the root directory of this source tree.
3292
3263
  *)
3293
3264
  */
3294
- //# sourceMappingURL=chunk-CBVKDLCJ.js.map
3265
+ //# sourceMappingURL=chunk-YPTFMYOL.js.map