@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.
- package/dist/{OperationGenerator-BL3W1CH2.d.ts → OperationGenerator-8DNneYd8.d.ts} +4 -1
- package/dist/{OperationGenerator-B6_KXF47.d.cts → OperationGenerator-BHo9OWOG.d.cts} +4 -1
- package/dist/{chunk-3NSBUDVM.js → chunk-5PS7VSVP.js} +34 -41
- package/dist/{chunk-3NSBUDVM.js.map → chunk-5PS7VSVP.js.map} +1 -1
- package/dist/{chunk-SXUTBEJ7.js → chunk-7KC6HDZA.js} +11 -25
- package/dist/{chunk-SXUTBEJ7.js.map → chunk-7KC6HDZA.js.map} +1 -1
- package/dist/{chunk-I5KLDP43.cjs → chunk-C4DNEBEV.cjs} +65 -94
- package/dist/chunk-C4DNEBEV.cjs.map +1 -0
- package/dist/{chunk-USWJ3LIC.cjs → chunk-ERS2ZSAT.cjs} +40 -47
- package/dist/chunk-ERS2ZSAT.cjs.map +1 -0
- package/dist/{chunk-YS56QITS.cjs → chunk-GWI26OTO.cjs} +11 -25
- package/dist/chunk-GWI26OTO.cjs.map +1 -0
- package/dist/{chunk-WEZ6CODU.cjs → chunk-I5OXSD6K.cjs} +3 -3
- package/dist/{chunk-FDLHRTTS.js → chunk-N6CQRWVS.js} +2 -2
- package/dist/{chunk-CBVKDLCJ.js → chunk-YPTFMYOL.js} +45 -74
- package/dist/{chunk-CBVKDLCJ.js.map → chunk-YPTFMYOL.js.map} +1 -1
- package/dist/components.cjs +5 -5
- package/dist/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +3 -3
- package/dist/hooks.cjs +31 -18
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.d.cts +9 -3
- package/dist/hooks.d.ts +9 -3
- package/dist/hooks.js +21 -8
- package/dist/hooks.js.map +1 -1
- package/dist/index.cjs +37 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +26 -32
- package/dist/index.js.map +1 -1
- package/dist/utils.cjs +8 -8
- package/dist/utils.js +2 -2
- package/package.json +11 -11
- package/src/OperationGenerator.ts +10 -7
- package/src/SchemaGenerator.ts +8 -2
- package/src/hooks/useOperationManager.ts +27 -7
- package/dist/chunk-I5KLDP43.cjs.map +0 -1
- package/dist/chunk-USWJ3LIC.cjs.map +0 -1
- package/dist/chunk-YS56QITS.cjs.map +0 -1
- /package/dist/{chunk-WEZ6CODU.cjs.map → chunk-I5OXSD6K.cjs.map} +0 -0
- /package/dist/{chunk-FDLHRTTS.js.map → chunk-N6CQRWVS.js.map} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkERS2ZSATcjs = require('./chunk-ERS2ZSAT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkGWI26OTOcjs = require('./chunk-GWI26OTO.cjs');
|
|
10
10
|
|
|
11
11
|
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
|
|
12
|
-
var require_react_production_min =
|
|
12
|
+
var require_react_production_min = _chunkGWI26OTOcjs.__commonJS.call(void 0, {
|
|
13
13
|
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js"(exports) {
|
|
14
14
|
"use strict";
|
|
15
|
-
|
|
15
|
+
_chunkGWI26OTOcjs.init_cjs_shims.call(void 0, );
|
|
16
16
|
var l = Symbol.for("react.element");
|
|
17
17
|
var n = Symbol.for("react.portal");
|
|
18
18
|
var p = Symbol.for("react.fragment");
|
|
@@ -26,8 +26,7 @@ var require_react_production_min = _chunkYS56QITScjs.__commonJS.call(void 0, {
|
|
|
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 = _chunkYS56QITScjs.__commonJS.call(void 0, {
|
|
|
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 = _chunkYS56QITScjs.__commonJS.call(void 0, {
|
|
|
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 = _chunkYS56QITScjs.__commonJS.call(void 0, {
|
|
|
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
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
else if (
|
|
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 = _chunkYS56QITScjs.__commonJS.call(void 0, {
|
|
|
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 = _chunkYS56QITScjs.__commonJS.call(void 0, {
|
|
|
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 = _chunkYS56QITScjs.__commonJS.call(void 0, {
|
|
|
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
|
-
|
|
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 };
|
|
@@ -309,10 +283,10 @@ var require_react_production_min = _chunkYS56QITScjs.__commonJS.call(void 0, {
|
|
|
309
283
|
});
|
|
310
284
|
|
|
311
285
|
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js
|
|
312
|
-
var require_react_development =
|
|
286
|
+
var require_react_development = _chunkGWI26OTOcjs.__commonJS.call(void 0, {
|
|
313
287
|
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js"(exports, module) {
|
|
314
288
|
"use strict";
|
|
315
|
-
|
|
289
|
+
_chunkGWI26OTOcjs.init_cjs_shims.call(void 0, );
|
|
316
290
|
if (process.env.NODE_ENV !== "production") {
|
|
317
291
|
(function() {
|
|
318
292
|
"use strict";
|
|
@@ -2184,10 +2158,10 @@ var require_react_development = _chunkYS56QITScjs.__commonJS.call(void 0, {
|
|
|
2184
2158
|
});
|
|
2185
2159
|
|
|
2186
2160
|
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js
|
|
2187
|
-
var require_react =
|
|
2161
|
+
var require_react = _chunkGWI26OTOcjs.__commonJS.call(void 0, {
|
|
2188
2162
|
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"(exports, module) {
|
|
2189
2163
|
"use strict";
|
|
2190
|
-
|
|
2164
|
+
_chunkGWI26OTOcjs.init_cjs_shims.call(void 0, );
|
|
2191
2165
|
if (process.env.NODE_ENV === "production") {
|
|
2192
2166
|
module.exports = require_react_production_min();
|
|
2193
2167
|
} else {
|
|
@@ -2197,10 +2171,10 @@ var require_react = _chunkYS56QITScjs.__commonJS.call(void 0, {
|
|
|
2197
2171
|
});
|
|
2198
2172
|
|
|
2199
2173
|
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js
|
|
2200
|
-
var require_react_jsx_runtime_production_min =
|
|
2174
|
+
var require_react_jsx_runtime_production_min = _chunkGWI26OTOcjs.__commonJS.call(void 0, {
|
|
2201
2175
|
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports) {
|
|
2202
2176
|
"use strict";
|
|
2203
|
-
|
|
2177
|
+
_chunkGWI26OTOcjs.init_cjs_shims.call(void 0, );
|
|
2204
2178
|
var f = require_react();
|
|
2205
2179
|
var k = Symbol.for("react.element");
|
|
2206
2180
|
var l = Symbol.for("react.fragment");
|
|
@@ -2212,11 +2186,8 @@ var require_react_jsx_runtime_production_min = _chunkYS56QITScjs.__commonJS.call
|
|
|
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
|
-
|
|
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;
|
|
@@ -2226,10 +2197,10 @@ var require_react_jsx_runtime_production_min = _chunkYS56QITScjs.__commonJS.call
|
|
|
2226
2197
|
});
|
|
2227
2198
|
|
|
2228
2199
|
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js
|
|
2229
|
-
var require_react_jsx_runtime_development =
|
|
2200
|
+
var require_react_jsx_runtime_development = _chunkGWI26OTOcjs.__commonJS.call(void 0, {
|
|
2230
2201
|
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
2231
2202
|
"use strict";
|
|
2232
|
-
|
|
2203
|
+
_chunkGWI26OTOcjs.init_cjs_shims.call(void 0, );
|
|
2233
2204
|
if (process.env.NODE_ENV !== "production") {
|
|
2234
2205
|
(function() {
|
|
2235
2206
|
"use strict";
|
|
@@ -3120,10 +3091,10 @@ var require_react_jsx_runtime_development = _chunkYS56QITScjs.__commonJS.call(vo
|
|
|
3120
3091
|
});
|
|
3121
3092
|
|
|
3122
3093
|
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js
|
|
3123
|
-
var require_jsx_runtime =
|
|
3094
|
+
var require_jsx_runtime = _chunkGWI26OTOcjs.__commonJS.call(void 0, {
|
|
3124
3095
|
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"(exports, module) {
|
|
3125
3096
|
"use strict";
|
|
3126
|
-
|
|
3097
|
+
_chunkGWI26OTOcjs.init_cjs_shims.call(void 0, );
|
|
3127
3098
|
if (process.env.NODE_ENV === "production") {
|
|
3128
3099
|
module.exports = require_react_jsx_runtime_production_min();
|
|
3129
3100
|
} else {
|
|
@@ -3133,8 +3104,8 @@ var require_jsx_runtime = _chunkYS56QITScjs.__commonJS.call(void 0, {
|
|
|
3133
3104
|
});
|
|
3134
3105
|
|
|
3135
3106
|
// src/components/Operation.tsx
|
|
3136
|
-
|
|
3137
|
-
var import_jsx_runtime =
|
|
3107
|
+
_chunkGWI26OTOcjs.init_cjs_shims.call(void 0, );
|
|
3108
|
+
var import_jsx_runtime = _chunkGWI26OTOcjs.__toESM.call(void 0, require_jsx_runtime(), 1);
|
|
3138
3109
|
var _react = require('@kubb/react');
|
|
3139
3110
|
var OperationContext = _react.createContext.call(void 0, {});
|
|
3140
3111
|
function Operation({ operation, children }) {
|
|
@@ -3143,13 +3114,13 @@ function Operation({ operation, children }) {
|
|
|
3143
3114
|
Operation.Context = OperationContext;
|
|
3144
3115
|
|
|
3145
3116
|
// src/hooks/useSchema.ts
|
|
3146
|
-
|
|
3117
|
+
_chunkGWI26OTOcjs.init_cjs_shims.call(void 0, );
|
|
3147
3118
|
|
|
3148
3119
|
|
|
3149
3120
|
// src/components/Schema.tsx
|
|
3150
|
-
|
|
3121
|
+
_chunkGWI26OTOcjs.init_cjs_shims.call(void 0, );
|
|
3151
3122
|
|
|
3152
|
-
var import_jsx_runtime2 =
|
|
3123
|
+
var import_jsx_runtime2 = _chunkGWI26OTOcjs.__toESM.call(void 0, require_jsx_runtime(), 1);
|
|
3153
3124
|
var SchemaContext = _react.createContext.call(void 0, {
|
|
3154
3125
|
name: "unknown",
|
|
3155
3126
|
tree: []
|
|
@@ -3211,7 +3182,7 @@ Schema.File = function({ output, isTypeOnly, children }) {
|
|
|
3211
3182
|
Schema.Imports = ({ isTypeOnly }) => {
|
|
3212
3183
|
const { tree } = useSchema();
|
|
3213
3184
|
const { path: root } = _react.useFile.call(void 0, );
|
|
3214
|
-
const refs =
|
|
3185
|
+
const refs = _chunkERS2ZSATcjs.SchemaGenerator.deepSearch(tree, _chunkERS2ZSATcjs.schemaKeywords.ref);
|
|
3215
3186
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { children: _optionalChain([refs, 'optionalAccess', _ => _.map, 'call', _2 => _2((item, i) => {
|
|
3216
3187
|
if (!item.args.path) {
|
|
3217
3188
|
return void 0;
|
|
@@ -3228,9 +3199,9 @@ function useSchema() {
|
|
|
3228
3199
|
}
|
|
3229
3200
|
|
|
3230
3201
|
// src/components/Oas.tsx
|
|
3231
|
-
|
|
3202
|
+
_chunkGWI26OTOcjs.init_cjs_shims.call(void 0, );
|
|
3232
3203
|
|
|
3233
|
-
var import_jsx_runtime3 =
|
|
3204
|
+
var import_jsx_runtime3 = _chunkGWI26OTOcjs.__toESM.call(void 0, require_jsx_runtime(), 1);
|
|
3234
3205
|
var OasContext = _react.createContext.call(void 0, {});
|
|
3235
3206
|
function Oas({ oas, children, operations, generator }) {
|
|
3236
3207
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(OasContext.Provider, { value: { oas, generator, operations }, children });
|
|
@@ -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-
|
|
3265
|
+
//# sourceMappingURL=chunk-C4DNEBEV.cjs.map
|