@scalar/api-client-react 1.0.1 → 1.0.3
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/CHANGELOG.md +15 -0
- package/dist/ApiClientModalProvider.js +33 -0
- package/dist/index.js +3 -658
- package/dist/style.css +1 -1
- package/package.json +5 -3
- package/dist/index.cjs +0 -30
package/dist/index.js
CHANGED
|
@@ -1,660 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var Z = { exports: {} }, W = {};
|
|
3
|
-
/**
|
|
4
|
-
* @license React
|
|
5
|
-
* react-jsx-runtime.production.min.js
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var Se;
|
|
13
|
-
function yr() {
|
|
14
|
-
if (Se) return W;
|
|
15
|
-
Se = 1;
|
|
16
|
-
var A = je, E = Symbol.for("react.element"), y = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, S = A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, P = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
-
function m(_, f, w) {
|
|
18
|
-
var p, R = {}, T = null, Y = null;
|
|
19
|
-
w !== void 0 && (T = "" + w), f.key !== void 0 && (T = "" + f.key), f.ref !== void 0 && (Y = f.ref);
|
|
20
|
-
for (p in f) b.call(f, p) && !P.hasOwnProperty(p) && (R[p] = f[p]);
|
|
21
|
-
if (_ && _.defaultProps) for (p in f = _.defaultProps, f) R[p] === void 0 && (R[p] = f[p]);
|
|
22
|
-
return { $$typeof: E, type: _, key: T, ref: Y, props: R, _owner: S.current };
|
|
23
|
-
}
|
|
24
|
-
return W.Fragment = y, W.jsx = m, W.jsxs = m, W;
|
|
25
|
-
}
|
|
26
|
-
var $ = {};
|
|
27
|
-
/**
|
|
28
|
-
* @license React
|
|
29
|
-
* react-jsx-runtime.development.js
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/
|
|
36
|
-
var Pe;
|
|
37
|
-
function br() {
|
|
38
|
-
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var A = je, E = Symbol.for("react.element"), y = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), S = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), _ = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), Q = Symbol.iterator, ke = "@@iterator";
|
|
40
|
-
function Ae(e) {
|
|
41
|
-
if (e === null || typeof e != "object")
|
|
42
|
-
return null;
|
|
43
|
-
var r = Q && e[Q] || e[ke];
|
|
44
|
-
return typeof r == "function" ? r : null;
|
|
45
|
-
}
|
|
46
|
-
var j = A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
-
function c(e) {
|
|
48
|
-
{
|
|
49
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
50
|
-
t[n - 1] = arguments[n];
|
|
51
|
-
De("error", e, t);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function De(e, r, t) {
|
|
55
|
-
{
|
|
56
|
-
var n = j.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
57
|
-
o !== "" && (r += "%s", t = t.concat([o]));
|
|
58
|
-
var u = t.map(function(i) {
|
|
59
|
-
return String(i);
|
|
60
|
-
});
|
|
61
|
-
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
var Fe = !1, Ie = !1, We = !1, $e = !1, Ye = !1, ee;
|
|
65
|
-
ee = Symbol.for("react.module.reference");
|
|
66
|
-
function Me(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === b || e === P || Ye || e === S || e === w || e === p || $e || e === Y || Fe || Ie || We || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === R || e.$$typeof === m || e.$$typeof === _ || e.$$typeof === f || // This needs to include all possible module reference object
|
|
68
|
-
// types supported by any Flight configuration anywhere since
|
|
69
|
-
// we don't know which Flight build this will end up being used
|
|
70
|
-
// with.
|
|
71
|
-
e.$$typeof === ee || e.getModuleId !== void 0));
|
|
72
|
-
}
|
|
73
|
-
function Ve(e, r, t) {
|
|
74
|
-
var n = e.displayName;
|
|
75
|
-
if (n)
|
|
76
|
-
return n;
|
|
77
|
-
var o = r.displayName || r.name || "";
|
|
78
|
-
return o !== "" ? t + "(" + o + ")" : t;
|
|
79
|
-
}
|
|
80
|
-
function re(e) {
|
|
81
|
-
return e.displayName || "Context";
|
|
82
|
-
}
|
|
83
|
-
function h(e) {
|
|
84
|
-
if (e == null)
|
|
85
|
-
return null;
|
|
86
|
-
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
|
-
return e.displayName || e.name || null;
|
|
88
|
-
if (typeof e == "string")
|
|
89
|
-
return e;
|
|
90
|
-
switch (e) {
|
|
91
|
-
case b:
|
|
92
|
-
return "Fragment";
|
|
93
|
-
case y:
|
|
94
|
-
return "Portal";
|
|
95
|
-
case P:
|
|
96
|
-
return "Profiler";
|
|
97
|
-
case S:
|
|
98
|
-
return "StrictMode";
|
|
99
|
-
case w:
|
|
100
|
-
return "Suspense";
|
|
101
|
-
case p:
|
|
102
|
-
return "SuspenseList";
|
|
103
|
-
}
|
|
104
|
-
if (typeof e == "object")
|
|
105
|
-
switch (e.$$typeof) {
|
|
106
|
-
case _:
|
|
107
|
-
var r = e;
|
|
108
|
-
return re(r) + ".Consumer";
|
|
109
|
-
case m:
|
|
110
|
-
var t = e;
|
|
111
|
-
return re(t._context) + ".Provider";
|
|
112
|
-
case f:
|
|
113
|
-
return Ve(e, e.render, "ForwardRef");
|
|
114
|
-
case R:
|
|
115
|
-
var n = e.displayName || null;
|
|
116
|
-
return n !== null ? n : h(e.type) || "Memo";
|
|
117
|
-
case T: {
|
|
118
|
-
var o = e, u = o._payload, i = o._init;
|
|
119
|
-
try {
|
|
120
|
-
return h(i(u));
|
|
121
|
-
} catch {
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
var C = Object.assign, D = 0, te, ne, ae, ie, oe, ue, se;
|
|
129
|
-
function le() {
|
|
130
|
-
}
|
|
131
|
-
le.__reactDisabledLog = !0;
|
|
132
|
-
function Le() {
|
|
133
|
-
{
|
|
134
|
-
if (D === 0) {
|
|
135
|
-
te = console.log, ne = console.info, ae = console.warn, ie = console.error, oe = console.group, ue = console.groupCollapsed, se = console.groupEnd;
|
|
136
|
-
var e = {
|
|
137
|
-
configurable: !0,
|
|
138
|
-
enumerable: !0,
|
|
139
|
-
value: le,
|
|
140
|
-
writable: !0
|
|
141
|
-
};
|
|
142
|
-
Object.defineProperties(console, {
|
|
143
|
-
info: e,
|
|
144
|
-
log: e,
|
|
145
|
-
warn: e,
|
|
146
|
-
error: e,
|
|
147
|
-
group: e,
|
|
148
|
-
groupCollapsed: e,
|
|
149
|
-
groupEnd: e
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
D++;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function Ue() {
|
|
156
|
-
{
|
|
157
|
-
if (D--, D === 0) {
|
|
158
|
-
var e = {
|
|
159
|
-
configurable: !0,
|
|
160
|
-
enumerable: !0,
|
|
161
|
-
writable: !0
|
|
162
|
-
};
|
|
163
|
-
Object.defineProperties(console, {
|
|
164
|
-
log: C({}, e, {
|
|
165
|
-
value: te
|
|
166
|
-
}),
|
|
167
|
-
info: C({}, e, {
|
|
168
|
-
value: ne
|
|
169
|
-
}),
|
|
170
|
-
warn: C({}, e, {
|
|
171
|
-
value: ae
|
|
172
|
-
}),
|
|
173
|
-
error: C({}, e, {
|
|
174
|
-
value: ie
|
|
175
|
-
}),
|
|
176
|
-
group: C({}, e, {
|
|
177
|
-
value: oe
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: C({}, e, {
|
|
180
|
-
value: ue
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: C({}, e, {
|
|
183
|
-
value: se
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
D < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var N = j.ReactCurrentDispatcher, J;
|
|
191
|
-
function M(e, r, t) {
|
|
192
|
-
{
|
|
193
|
-
if (J === void 0)
|
|
194
|
-
try {
|
|
195
|
-
throw Error();
|
|
196
|
-
} catch (o) {
|
|
197
|
-
var n = o.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
J = n && n[1] || "";
|
|
199
|
-
}
|
|
200
|
-
return `
|
|
201
|
-
` + J + e;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
var B = !1, V;
|
|
205
|
-
{
|
|
206
|
-
var Ne = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
V = new Ne();
|
|
208
|
-
}
|
|
209
|
-
function fe(e, r) {
|
|
210
|
-
if (!e || B)
|
|
211
|
-
return "";
|
|
212
|
-
{
|
|
213
|
-
var t = V.get(e);
|
|
214
|
-
if (t !== void 0)
|
|
215
|
-
return t;
|
|
216
|
-
}
|
|
217
|
-
var n;
|
|
218
|
-
B = !0;
|
|
219
|
-
var o = Error.prepareStackTrace;
|
|
220
|
-
Error.prepareStackTrace = void 0;
|
|
221
|
-
var u;
|
|
222
|
-
u = N.current, N.current = null, Le();
|
|
223
|
-
try {
|
|
224
|
-
if (r) {
|
|
225
|
-
var i = function() {
|
|
226
|
-
throw Error();
|
|
227
|
-
};
|
|
228
|
-
if (Object.defineProperty(i.prototype, "props", {
|
|
229
|
-
set: function() {
|
|
230
|
-
throw Error();
|
|
231
|
-
}
|
|
232
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
-
try {
|
|
234
|
-
Reflect.construct(i, []);
|
|
235
|
-
} catch (v) {
|
|
236
|
-
n = v;
|
|
237
|
-
}
|
|
238
|
-
Reflect.construct(e, [], i);
|
|
239
|
-
} else {
|
|
240
|
-
try {
|
|
241
|
-
i.call();
|
|
242
|
-
} catch (v) {
|
|
243
|
-
n = v;
|
|
244
|
-
}
|
|
245
|
-
e.call(i.prototype);
|
|
246
|
-
}
|
|
247
|
-
} else {
|
|
248
|
-
try {
|
|
249
|
-
throw Error();
|
|
250
|
-
} catch (v) {
|
|
251
|
-
n = v;
|
|
252
|
-
}
|
|
253
|
-
e();
|
|
254
|
-
}
|
|
255
|
-
} catch (v) {
|
|
256
|
-
if (v && n && typeof v.stack == "string") {
|
|
257
|
-
for (var a = v.stack.split(`
|
|
258
|
-
`), d = n.stack.split(`
|
|
259
|
-
`), s = a.length - 1, l = d.length - 1; s >= 1 && l >= 0 && a[s] !== d[l]; )
|
|
260
|
-
l--;
|
|
261
|
-
for (; s >= 1 && l >= 0; s--, l--)
|
|
262
|
-
if (a[s] !== d[l]) {
|
|
263
|
-
if (s !== 1 || l !== 1)
|
|
264
|
-
do
|
|
265
|
-
if (s--, l--, l < 0 || a[s] !== d[l]) {
|
|
266
|
-
var g = `
|
|
267
|
-
` + a[s].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, g), g;
|
|
269
|
-
}
|
|
270
|
-
while (s >= 1 && l >= 0);
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
} finally {
|
|
275
|
-
B = !1, N.current = u, Ue(), Error.prepareStackTrace = o;
|
|
276
|
-
}
|
|
277
|
-
var k = e ? e.displayName || e.name : "", O = k ? M(k) : "";
|
|
278
|
-
return typeof e == "function" && V.set(e, O), O;
|
|
279
|
-
}
|
|
280
|
-
function Je(e, r, t) {
|
|
281
|
-
return fe(e, !1);
|
|
282
|
-
}
|
|
283
|
-
function Be(e) {
|
|
284
|
-
var r = e.prototype;
|
|
285
|
-
return !!(r && r.isReactComponent);
|
|
286
|
-
}
|
|
287
|
-
function L(e, r, t) {
|
|
288
|
-
if (e == null)
|
|
289
|
-
return "";
|
|
290
|
-
if (typeof e == "function")
|
|
291
|
-
return fe(e, Be(e));
|
|
292
|
-
if (typeof e == "string")
|
|
293
|
-
return M(e);
|
|
294
|
-
switch (e) {
|
|
295
|
-
case w:
|
|
296
|
-
return M("Suspense");
|
|
297
|
-
case p:
|
|
298
|
-
return M("SuspenseList");
|
|
299
|
-
}
|
|
300
|
-
if (typeof e == "object")
|
|
301
|
-
switch (e.$$typeof) {
|
|
302
|
-
case f:
|
|
303
|
-
return Je(e.render);
|
|
304
|
-
case R:
|
|
305
|
-
return L(e.type, r, t);
|
|
306
|
-
case T: {
|
|
307
|
-
var n = e, o = n._payload, u = n._init;
|
|
308
|
-
try {
|
|
309
|
-
return L(u(o), r, t);
|
|
310
|
-
} catch {
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return "";
|
|
315
|
-
}
|
|
316
|
-
var F = Object.prototype.hasOwnProperty, ce = {}, de = j.ReactDebugCurrentFrame;
|
|
317
|
-
function U(e) {
|
|
318
|
-
if (e) {
|
|
319
|
-
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
320
|
-
de.setExtraStackFrame(t);
|
|
321
|
-
} else
|
|
322
|
-
de.setExtraStackFrame(null);
|
|
323
|
-
}
|
|
324
|
-
function qe(e, r, t, n, o) {
|
|
325
|
-
{
|
|
326
|
-
var u = Function.call.bind(F);
|
|
327
|
-
for (var i in e)
|
|
328
|
-
if (u(e, i)) {
|
|
329
|
-
var a = void 0;
|
|
330
|
-
try {
|
|
331
|
-
if (typeof e[i] != "function") {
|
|
332
|
-
var d = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
-
throw d.name = "Invariant Violation", d;
|
|
334
|
-
}
|
|
335
|
-
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (s) {
|
|
337
|
-
a = s;
|
|
338
|
-
}
|
|
339
|
-
a && !(a instanceof Error) && (U(o), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), U(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, U(o), c("Failed %s type: %s", t, a.message), U(null));
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
var Ke = Array.isArray;
|
|
344
|
-
function q(e) {
|
|
345
|
-
return Ke(e);
|
|
346
|
-
}
|
|
347
|
-
function Ge(e) {
|
|
348
|
-
{
|
|
349
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
-
return t;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function ze(e) {
|
|
354
|
-
try {
|
|
355
|
-
return ve(e), !1;
|
|
356
|
-
} catch {
|
|
357
|
-
return !0;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
function ve(e) {
|
|
361
|
-
return "" + e;
|
|
362
|
-
}
|
|
363
|
-
function pe(e) {
|
|
364
|
-
if (ze(e))
|
|
365
|
-
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), ve(e);
|
|
366
|
-
}
|
|
367
|
-
var I = j.ReactCurrentOwner, He = {
|
|
368
|
-
key: !0,
|
|
369
|
-
ref: !0,
|
|
370
|
-
__self: !0,
|
|
371
|
-
__source: !0
|
|
372
|
-
}, _e, ge, K;
|
|
373
|
-
K = {};
|
|
374
|
-
function Xe(e) {
|
|
375
|
-
if (F.call(e, "ref")) {
|
|
376
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
377
|
-
if (r && r.isReactWarning)
|
|
378
|
-
return !1;
|
|
379
|
-
}
|
|
380
|
-
return e.ref !== void 0;
|
|
381
|
-
}
|
|
382
|
-
function Ze(e) {
|
|
383
|
-
if (F.call(e, "key")) {
|
|
384
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
385
|
-
if (r && r.isReactWarning)
|
|
386
|
-
return !1;
|
|
387
|
-
}
|
|
388
|
-
return e.key !== void 0;
|
|
389
|
-
}
|
|
390
|
-
function Qe(e, r) {
|
|
391
|
-
if (typeof e.ref == "string" && I.current && r && I.current.stateNode !== r) {
|
|
392
|
-
var t = h(I.current.type);
|
|
393
|
-
K[t] || (c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', h(I.current.type), e.ref), K[t] = !0);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
function er(e, r) {
|
|
397
|
-
{
|
|
398
|
-
var t = function() {
|
|
399
|
-
_e || (_e = !0, c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
400
|
-
};
|
|
401
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
402
|
-
get: t,
|
|
403
|
-
configurable: !0
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
function rr(e, r) {
|
|
408
|
-
{
|
|
409
|
-
var t = function() {
|
|
410
|
-
ge || (ge = !0, c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
411
|
-
};
|
|
412
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
413
|
-
get: t,
|
|
414
|
-
configurable: !0
|
|
415
|
-
});
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
var tr = function(e, r, t, n, o, u, i) {
|
|
419
|
-
var a = {
|
|
420
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
421
|
-
$$typeof: E,
|
|
422
|
-
// Built-in properties that belong on the element
|
|
423
|
-
type: e,
|
|
424
|
-
key: r,
|
|
425
|
-
ref: t,
|
|
426
|
-
props: i,
|
|
427
|
-
// Record the component responsible for creating this element.
|
|
428
|
-
_owner: u
|
|
429
|
-
};
|
|
430
|
-
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
431
|
-
configurable: !1,
|
|
432
|
-
enumerable: !1,
|
|
433
|
-
writable: !0,
|
|
434
|
-
value: !1
|
|
435
|
-
}), Object.defineProperty(a, "_self", {
|
|
436
|
-
configurable: !1,
|
|
437
|
-
enumerable: !1,
|
|
438
|
-
writable: !1,
|
|
439
|
-
value: n
|
|
440
|
-
}), Object.defineProperty(a, "_source", {
|
|
441
|
-
configurable: !1,
|
|
442
|
-
enumerable: !1,
|
|
443
|
-
writable: !1,
|
|
444
|
-
value: o
|
|
445
|
-
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
446
|
-
};
|
|
447
|
-
function nr(e, r, t, n, o) {
|
|
448
|
-
{
|
|
449
|
-
var u, i = {}, a = null, d = null;
|
|
450
|
-
t !== void 0 && (pe(t), a = "" + t), Ze(r) && (pe(r.key), a = "" + r.key), Xe(r) && (d = r.ref, Qe(r, o));
|
|
451
|
-
for (u in r)
|
|
452
|
-
F.call(r, u) && !He.hasOwnProperty(u) && (i[u] = r[u]);
|
|
453
|
-
if (e && e.defaultProps) {
|
|
454
|
-
var s = e.defaultProps;
|
|
455
|
-
for (u in s)
|
|
456
|
-
i[u] === void 0 && (i[u] = s[u]);
|
|
457
|
-
}
|
|
458
|
-
if (a || d) {
|
|
459
|
-
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
460
|
-
a && er(i, l), d && rr(i, l);
|
|
461
|
-
}
|
|
462
|
-
return tr(e, a, d, o, n, I.current, i);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
var G = j.ReactCurrentOwner, ye = j.ReactDebugCurrentFrame;
|
|
466
|
-
function x(e) {
|
|
467
|
-
if (e) {
|
|
468
|
-
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
469
|
-
ye.setExtraStackFrame(t);
|
|
470
|
-
} else
|
|
471
|
-
ye.setExtraStackFrame(null);
|
|
472
|
-
}
|
|
473
|
-
var z;
|
|
474
|
-
z = !1;
|
|
475
|
-
function H(e) {
|
|
476
|
-
return typeof e == "object" && e !== null && e.$$typeof === E;
|
|
477
|
-
}
|
|
478
|
-
function be() {
|
|
479
|
-
{
|
|
480
|
-
if (G.current) {
|
|
481
|
-
var e = h(G.current.type);
|
|
482
|
-
if (e)
|
|
483
|
-
return `
|
|
484
|
-
|
|
485
|
-
Check the render method of \`` + e + "`.";
|
|
486
|
-
}
|
|
487
|
-
return "";
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
function ar(e) {
|
|
491
|
-
return "";
|
|
492
|
-
}
|
|
493
|
-
var he = {};
|
|
494
|
-
function ir(e) {
|
|
495
|
-
{
|
|
496
|
-
var r = be();
|
|
497
|
-
if (!r) {
|
|
498
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
499
|
-
t && (r = `
|
|
500
|
-
|
|
501
|
-
Check the top-level render call using <` + t + ">.");
|
|
502
|
-
}
|
|
503
|
-
return r;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
function Ee(e, r) {
|
|
507
|
-
{
|
|
508
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
509
|
-
return;
|
|
510
|
-
e._store.validated = !0;
|
|
511
|
-
var t = ir(r);
|
|
512
|
-
if (he[t])
|
|
513
|
-
return;
|
|
514
|
-
he[t] = !0;
|
|
515
|
-
var n = "";
|
|
516
|
-
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + h(e._owner.type) + "."), x(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), x(null);
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
function Re(e, r) {
|
|
520
|
-
{
|
|
521
|
-
if (typeof e != "object")
|
|
522
|
-
return;
|
|
523
|
-
if (q(e))
|
|
524
|
-
for (var t = 0; t < e.length; t++) {
|
|
525
|
-
var n = e[t];
|
|
526
|
-
H(n) && Ee(n, r);
|
|
527
|
-
}
|
|
528
|
-
else if (H(e))
|
|
529
|
-
e._store && (e._store.validated = !0);
|
|
530
|
-
else if (e) {
|
|
531
|
-
var o = Ae(e);
|
|
532
|
-
if (typeof o == "function" && o !== e.entries)
|
|
533
|
-
for (var u = o.call(e), i; !(i = u.next()).done; )
|
|
534
|
-
H(i.value) && Ee(i.value, r);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
function or(e) {
|
|
539
|
-
{
|
|
540
|
-
var r = e.type;
|
|
541
|
-
if (r == null || typeof r == "string")
|
|
542
|
-
return;
|
|
543
|
-
var t;
|
|
544
|
-
if (typeof r == "function")
|
|
545
|
-
t = r.propTypes;
|
|
546
|
-
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
547
|
-
// Inner props are checked in the reconciler.
|
|
548
|
-
r.$$typeof === R))
|
|
549
|
-
t = r.propTypes;
|
|
550
|
-
else
|
|
551
|
-
return;
|
|
552
|
-
if (t) {
|
|
553
|
-
var n = h(r);
|
|
554
|
-
qe(t, e.props, "prop", n, e);
|
|
555
|
-
} else if (r.PropTypes !== void 0 && !z) {
|
|
556
|
-
z = !0;
|
|
557
|
-
var o = h(r);
|
|
558
|
-
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
559
|
-
}
|
|
560
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
function ur(e) {
|
|
564
|
-
{
|
|
565
|
-
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
566
|
-
var n = r[t];
|
|
567
|
-
if (n !== "children" && n !== "key") {
|
|
568
|
-
x(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), x(null);
|
|
569
|
-
break;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
e.ref !== null && (x(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), x(null));
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
var me = {};
|
|
576
|
-
function Te(e, r, t, n, o, u) {
|
|
577
|
-
{
|
|
578
|
-
var i = Me(e);
|
|
579
|
-
if (!i) {
|
|
580
|
-
var a = "";
|
|
581
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
|
-
var d = ar();
|
|
583
|
-
d ? a += d : a += be();
|
|
584
|
-
var s;
|
|
585
|
-
e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === E ? (s = "<" + (h(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
586
|
-
}
|
|
587
|
-
var l = nr(e, r, t, o, u);
|
|
588
|
-
if (l == null)
|
|
589
|
-
return l;
|
|
590
|
-
if (i) {
|
|
591
|
-
var g = r.children;
|
|
592
|
-
if (g !== void 0)
|
|
593
|
-
if (n)
|
|
594
|
-
if (q(g)) {
|
|
595
|
-
for (var k = 0; k < g.length; k++)
|
|
596
|
-
Re(g[k], e);
|
|
597
|
-
Object.freeze && Object.freeze(g);
|
|
598
|
-
} else
|
|
599
|
-
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
|
-
else
|
|
601
|
-
Re(g, e);
|
|
602
|
-
}
|
|
603
|
-
if (F.call(r, "key")) {
|
|
604
|
-
var O = h(e), v = Object.keys(r).filter(function(vr) {
|
|
605
|
-
return vr !== "key";
|
|
606
|
-
}), X = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
-
if (!me[O + X]) {
|
|
608
|
-
var dr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
-
c(`A props object containing a "key" prop is being spread into JSX:
|
|
610
|
-
let props = %s;
|
|
611
|
-
<%s {...props} />
|
|
612
|
-
React keys must be passed directly to JSX without using spread:
|
|
613
|
-
let props = %s;
|
|
614
|
-
<%s key={someKey} {...props} />`, X, O, dr, O), me[O + X] = !0;
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
return e === b ? ur(l) : or(l), l;
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
function sr(e, r, t) {
|
|
621
|
-
return Te(e, r, t, !0);
|
|
622
|
-
}
|
|
623
|
-
function lr(e, r, t) {
|
|
624
|
-
return Te(e, r, t, !1);
|
|
625
|
-
}
|
|
626
|
-
var fr = lr, cr = sr;
|
|
627
|
-
$.Fragment = b, $.jsx = fr, $.jsxs = cr;
|
|
628
|
-
}()), $;
|
|
629
|
-
}
|
|
630
|
-
process.env.NODE_ENV === "production" ? Z.exports = yr() : Z.exports = br();
|
|
631
|
-
var we = Z.exports;
|
|
632
|
-
const xe = pr(null);
|
|
633
|
-
globalThis.__VUE_OPTIONS_API__ = !0;
|
|
634
|
-
globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = !0;
|
|
635
|
-
globalThis.__VUE_PROD_DEVTOOLS__ = !1;
|
|
636
|
-
const Er = ({
|
|
637
|
-
children: A,
|
|
638
|
-
configuration: E = {}
|
|
639
|
-
}) => {
|
|
640
|
-
const y = _r(null), [b, S] = Ce(null), [P, m] = Ce(null);
|
|
641
|
-
return Oe(() => {
|
|
642
|
-
(async () => {
|
|
643
|
-
const { createApiClientModalSync: f } = await import("@scalar/api-client");
|
|
644
|
-
S(() => f);
|
|
645
|
-
})();
|
|
646
|
-
}, []), Oe(() => {
|
|
647
|
-
if (!(y != null && y.current) || !b) return;
|
|
648
|
-
const _ = b(y.current, E, !0, !0);
|
|
649
|
-
return m(_), E.spec && _.updateSpec(E.spec), () => {
|
|
650
|
-
_.app.unmount(), m(null);
|
|
651
|
-
};
|
|
652
|
-
}, [y, b]), /* @__PURE__ */ we.jsxs(xe.Provider, { value: P, children: [
|
|
653
|
-
/* @__PURE__ */ we.jsx("div", { ref: y }),
|
|
654
|
-
A
|
|
655
|
-
] });
|
|
656
|
-
}, Rr = () => gr(xe);
|
|
1
|
+
import { ApiClientModalProvider as o, useApiClientModal as l } from "./ApiClientModalProvider.js";
|
|
657
2
|
export {
|
|
658
|
-
|
|
659
|
-
|
|
3
|
+
o as ApiClientModalProvider,
|
|
4
|
+
l as useApiClientModal
|
|
660
5
|
};
|