@scalar/api-reference-react 0.3.112 → 0.3.114
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 +17 -0
- package/README.md +8 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +116 -116
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @scalar/api-reference-react
|
|
2
2
|
|
|
3
|
+
## 0.3.114
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dbbe38f: feat: add framework identifier for debugging purposes
|
|
8
|
+
- Updated dependencies [dbbe38f]
|
|
9
|
+
- Updated dependencies [59d3931]
|
|
10
|
+
- @scalar/api-reference@1.25.38
|
|
11
|
+
|
|
12
|
+
## 0.3.113
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 0c34a18: chore: updated vue package to 3.5
|
|
17
|
+
- Updated dependencies [0c34a18]
|
|
18
|
+
- @scalar/api-reference@1.25.37
|
|
19
|
+
|
|
3
20
|
## 0.3.112
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -51,3 +51,11 @@ ApiReference only takes one prop which is the configuration object.
|
|
|
51
51
|
|
|
52
52
|
You can find the full configuration options under
|
|
53
53
|
[packages/api-reference](https://github.com/scalar/scalar/tree/main/packages/api-reference).
|
|
54
|
+
|
|
55
|
+
## Community
|
|
56
|
+
|
|
57
|
+
We are API nerds. You too? Let’s chat on Discord: <https://discord.gg/scalar>
|
|
58
|
+
|
|
59
|
+
## License
|
|
60
|
+
|
|
61
|
+
The source code in this repository is licensed under [MIT](https://github.com/scalar/scalar/blob/main/LICENSE).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { default as default_2 } from 'react';
|
|
|
2
2
|
import { ReferenceProps } from '@scalar/api-reference';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
* React wrapper around
|
|
5
|
+
* React wrapper around the Scalar API Reference
|
|
6
6
|
*/
|
|
7
7
|
export declare const ApiReferenceReact: (props: ReferenceProps) => default_2.JSX.Element;
|
|
8
8
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createScalarReferences as
|
|
3
|
-
var Z = { exports: {} },
|
|
1
|
+
import Pe, { useRef as cr, useState as dr, useEffect as Oe } from "react";
|
|
2
|
+
import { createScalarReferences as vr } from "@scalar/api-reference";
|
|
3
|
+
var Z = { exports: {} }, W = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.min.js
|
|
@@ -12,19 +12,19 @@ var Z = { exports: {} }, I = {};
|
|
|
12
12
|
*/
|
|
13
13
|
var Se;
|
|
14
14
|
function pr() {
|
|
15
|
-
if (Se) return
|
|
15
|
+
if (Se) return W;
|
|
16
16
|
Se = 1;
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
var p, y = {},
|
|
20
|
-
|
|
21
|
-
for (p in c) E.call(c, p) &&
|
|
22
|
-
if (
|
|
23
|
-
return { $$typeof:
|
|
17
|
+
var T = Pe, _ = Symbol.for("react.element"), R = Symbol.for("react.fragment"), E = Object.prototype.hasOwnProperty, w = T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function m(O, c, j) {
|
|
19
|
+
var p, y = {}, S = null, Y = null;
|
|
20
|
+
j !== void 0 && (S = "" + j), c.key !== void 0 && (S = "" + c.key), c.ref !== void 0 && (Y = c.ref);
|
|
21
|
+
for (p in c) E.call(c, p) && !h.hasOwnProperty(p) && (y[p] = c[p]);
|
|
22
|
+
if (O && O.defaultProps) for (p in c = O.defaultProps, c) y[p] === void 0 && (y[p] = c[p]);
|
|
23
|
+
return { $$typeof: _, type: O, key: S, ref: Y, props: y, _owner: w.current };
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return W.Fragment = R, W.jsx = m, W.jsxs = m, W;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var $ = {};
|
|
28
28
|
/**
|
|
29
29
|
* @license React
|
|
30
30
|
* react-jsx-runtime.development.js
|
|
@@ -34,17 +34,17 @@ var W = {};
|
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
36
|
*/
|
|
37
|
-
var
|
|
38
|
-
function
|
|
39
|
-
return
|
|
40
|
-
var
|
|
37
|
+
var Ce;
|
|
38
|
+
function gr() {
|
|
39
|
+
return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
+
var T = Pe, _ = Symbol.for("react.element"), R = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), O = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), Q = Symbol.iterator, we = "@@iterator";
|
|
41
41
|
function je(e) {
|
|
42
42
|
if (e === null || typeof e != "object")
|
|
43
43
|
return null;
|
|
44
44
|
var r = Q && e[Q] || e[we];
|
|
45
45
|
return typeof r == "function" ? r : null;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var x = T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
48
48
|
function l(e) {
|
|
49
49
|
{
|
|
50
50
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
@@ -54,7 +54,7 @@ function _r() {
|
|
|
54
54
|
}
|
|
55
55
|
function xe(e, r, t) {
|
|
56
56
|
{
|
|
57
|
-
var n =
|
|
57
|
+
var n = x.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
58
58
|
i !== "" && (r += "%s", t = t.concat([i]));
|
|
59
59
|
var u = t.map(function(o) {
|
|
60
60
|
return String(o);
|
|
@@ -65,7 +65,7 @@ function _r() {
|
|
|
65
65
|
var ke = !1, De = !1, Ae = !1, Fe = !1, Ie = !1, ee;
|
|
66
66
|
ee = Symbol.for("react.module.reference");
|
|
67
67
|
function We(e) {
|
|
68
|
-
return !!(typeof e == "string" || typeof e == "function" || e === E || e ===
|
|
68
|
+
return !!(typeof e == "string" || typeof e == "function" || e === E || e === h || Ie || e === w || e === j || e === p || Fe || e === Y || ke || De || Ae || typeof e == "object" && e !== null && (e.$$typeof === S || e.$$typeof === y || e.$$typeof === m || e.$$typeof === O || e.$$typeof === c || // This needs to include all possible module reference object
|
|
69
69
|
// types supported by any Flight configuration anywhere since
|
|
70
70
|
// we don't know which Flight build this will end up being used
|
|
71
71
|
// with.
|
|
@@ -93,21 +93,21 @@ function _r() {
|
|
|
93
93
|
return "Fragment";
|
|
94
94
|
case R:
|
|
95
95
|
return "Portal";
|
|
96
|
-
case
|
|
96
|
+
case h:
|
|
97
97
|
return "Profiler";
|
|
98
|
-
case
|
|
98
|
+
case w:
|
|
99
99
|
return "StrictMode";
|
|
100
|
-
case
|
|
100
|
+
case j:
|
|
101
101
|
return "Suspense";
|
|
102
102
|
case p:
|
|
103
103
|
return "SuspenseList";
|
|
104
104
|
}
|
|
105
105
|
if (typeof e == "object")
|
|
106
106
|
switch (e.$$typeof) {
|
|
107
|
-
case
|
|
107
|
+
case O:
|
|
108
108
|
var r = e;
|
|
109
109
|
return re(r) + ".Consumer";
|
|
110
|
-
case
|
|
110
|
+
case m:
|
|
111
111
|
var t = e;
|
|
112
112
|
return re(t._context) + ".Provider";
|
|
113
113
|
case c:
|
|
@@ -115,7 +115,7 @@ function _r() {
|
|
|
115
115
|
case y:
|
|
116
116
|
var n = e.displayName || null;
|
|
117
117
|
return n !== null ? n : b(e.type) || "Memo";
|
|
118
|
-
case
|
|
118
|
+
case S: {
|
|
119
119
|
var i = e, u = i._payload, o = i._init;
|
|
120
120
|
try {
|
|
121
121
|
return b(o(u));
|
|
@@ -126,13 +126,13 @@ function _r() {
|
|
|
126
126
|
}
|
|
127
127
|
return null;
|
|
128
128
|
}
|
|
129
|
-
var
|
|
129
|
+
var C = Object.assign, A = 0, te, ne, ae, oe, ie, ue, se;
|
|
130
130
|
function fe() {
|
|
131
131
|
}
|
|
132
132
|
fe.__reactDisabledLog = !0;
|
|
133
133
|
function Ye() {
|
|
134
134
|
{
|
|
135
|
-
if (
|
|
135
|
+
if (A === 0) {
|
|
136
136
|
te = console.log, ne = console.info, ae = console.warn, oe = console.error, ie = console.group, ue = console.groupCollapsed, se = console.groupEnd;
|
|
137
137
|
var e = {
|
|
138
138
|
configurable: !0,
|
|
@@ -150,45 +150,45 @@ function _r() {
|
|
|
150
150
|
groupEnd: e
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
A++;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
function Ve() {
|
|
157
157
|
{
|
|
158
|
-
if (
|
|
158
|
+
if (A--, A === 0) {
|
|
159
159
|
var e = {
|
|
160
160
|
configurable: !0,
|
|
161
161
|
enumerable: !0,
|
|
162
162
|
writable: !0
|
|
163
163
|
};
|
|
164
164
|
Object.defineProperties(console, {
|
|
165
|
-
log:
|
|
165
|
+
log: C({}, e, {
|
|
166
166
|
value: te
|
|
167
167
|
}),
|
|
168
|
-
info:
|
|
168
|
+
info: C({}, e, {
|
|
169
169
|
value: ne
|
|
170
170
|
}),
|
|
171
|
-
warn:
|
|
171
|
+
warn: C({}, e, {
|
|
172
172
|
value: ae
|
|
173
173
|
}),
|
|
174
|
-
error:
|
|
174
|
+
error: C({}, e, {
|
|
175
175
|
value: oe
|
|
176
176
|
}),
|
|
177
|
-
group:
|
|
177
|
+
group: C({}, e, {
|
|
178
178
|
value: ie
|
|
179
179
|
}),
|
|
180
|
-
groupCollapsed:
|
|
180
|
+
groupCollapsed: C({}, e, {
|
|
181
181
|
value: ue
|
|
182
182
|
}),
|
|
183
|
-
groupEnd:
|
|
183
|
+
groupEnd: C({}, e, {
|
|
184
184
|
value: se
|
|
185
185
|
})
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
|
|
188
|
+
A < 0 && l("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
var N =
|
|
191
|
+
var N = x.ReactCurrentDispatcher, B;
|
|
192
192
|
function V(e, r, t) {
|
|
193
193
|
{
|
|
194
194
|
if (B === void 0)
|
|
@@ -233,40 +233,40 @@ function _r() {
|
|
|
233
233
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
234
234
|
try {
|
|
235
235
|
Reflect.construct(o, []);
|
|
236
|
-
} catch (
|
|
237
|
-
n =
|
|
236
|
+
} catch (v) {
|
|
237
|
+
n = v;
|
|
238
238
|
}
|
|
239
239
|
Reflect.construct(e, [], o);
|
|
240
240
|
} else {
|
|
241
241
|
try {
|
|
242
242
|
o.call();
|
|
243
|
-
} catch (
|
|
244
|
-
n =
|
|
243
|
+
} catch (v) {
|
|
244
|
+
n = v;
|
|
245
245
|
}
|
|
246
246
|
e.call(o.prototype);
|
|
247
247
|
}
|
|
248
248
|
} else {
|
|
249
249
|
try {
|
|
250
250
|
throw Error();
|
|
251
|
-
} catch (
|
|
252
|
-
n =
|
|
251
|
+
} catch (v) {
|
|
252
|
+
n = v;
|
|
253
253
|
}
|
|
254
254
|
e();
|
|
255
255
|
}
|
|
256
|
-
} catch (
|
|
257
|
-
if (
|
|
258
|
-
for (var a =
|
|
259
|
-
`),
|
|
260
|
-
`), s = a.length - 1, f =
|
|
256
|
+
} catch (v) {
|
|
257
|
+
if (v && n && typeof v.stack == "string") {
|
|
258
|
+
for (var a = v.stack.split(`
|
|
259
|
+
`), d = n.stack.split(`
|
|
260
|
+
`), s = a.length - 1, f = d.length - 1; s >= 1 && f >= 0 && a[s] !== d[f]; )
|
|
261
261
|
f--;
|
|
262
262
|
for (; s >= 1 && f >= 0; s--, f--)
|
|
263
|
-
if (a[s] !==
|
|
263
|
+
if (a[s] !== d[f]) {
|
|
264
264
|
if (s !== 1 || f !== 1)
|
|
265
265
|
do
|
|
266
|
-
if (s--, f--, f < 0 || a[s] !==
|
|
267
|
-
var
|
|
266
|
+
if (s--, f--, f < 0 || a[s] !== d[f]) {
|
|
267
|
+
var g = `
|
|
268
268
|
` + a[s].replace(" at new ", " at ");
|
|
269
|
-
return e.displayName &&
|
|
269
|
+
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, g), g;
|
|
270
270
|
}
|
|
271
271
|
while (s >= 1 && f >= 0);
|
|
272
272
|
break;
|
|
@@ -275,7 +275,7 @@ function _r() {
|
|
|
275
275
|
} finally {
|
|
276
276
|
J = !1, N.current = u, Ve(), Error.prepareStackTrace = i;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
278
|
+
var D = e ? e.displayName || e.name : "", P = D ? V(D) : "";
|
|
279
279
|
return typeof e == "function" && L.set(e, P), P;
|
|
280
280
|
}
|
|
281
281
|
function Ue(e, r, t) {
|
|
@@ -293,7 +293,7 @@ function _r() {
|
|
|
293
293
|
if (typeof e == "string")
|
|
294
294
|
return V(e);
|
|
295
295
|
switch (e) {
|
|
296
|
-
case
|
|
296
|
+
case j:
|
|
297
297
|
return V("Suspense");
|
|
298
298
|
case p:
|
|
299
299
|
return V("SuspenseList");
|
|
@@ -304,7 +304,7 @@ function _r() {
|
|
|
304
304
|
return Ue(e.render);
|
|
305
305
|
case y:
|
|
306
306
|
return U(e.type, r, t);
|
|
307
|
-
case
|
|
307
|
+
case S: {
|
|
308
308
|
var n = e, i = n._payload, u = n._init;
|
|
309
309
|
try {
|
|
310
310
|
return U(u(i), r, t);
|
|
@@ -314,24 +314,24 @@ function _r() {
|
|
|
314
314
|
}
|
|
315
315
|
return "";
|
|
316
316
|
}
|
|
317
|
-
var
|
|
317
|
+
var F = Object.prototype.hasOwnProperty, ce = {}, de = x.ReactDebugCurrentFrame;
|
|
318
318
|
function M(e) {
|
|
319
319
|
if (e) {
|
|
320
320
|
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
321
|
-
|
|
321
|
+
de.setExtraStackFrame(t);
|
|
322
322
|
} else
|
|
323
|
-
|
|
323
|
+
de.setExtraStackFrame(null);
|
|
324
324
|
}
|
|
325
325
|
function Ne(e, r, t, n, i) {
|
|
326
326
|
{
|
|
327
|
-
var u = Function.call.bind(
|
|
327
|
+
var u = Function.call.bind(F);
|
|
328
328
|
for (var o in e)
|
|
329
329
|
if (u(e, o)) {
|
|
330
330
|
var a = void 0;
|
|
331
331
|
try {
|
|
332
332
|
if (typeof e[o] != "function") {
|
|
333
|
-
var
|
|
334
|
-
throw
|
|
333
|
+
var d = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
334
|
+
throw d.name = "Invariant Violation", d;
|
|
335
335
|
}
|
|
336
336
|
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
337
337
|
} catch (s) {
|
|
@@ -353,27 +353,27 @@ function _r() {
|
|
|
353
353
|
}
|
|
354
354
|
function qe(e) {
|
|
355
355
|
try {
|
|
356
|
-
return
|
|
356
|
+
return ve(e), !1;
|
|
357
357
|
} catch {
|
|
358
358
|
return !0;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function ve(e) {
|
|
362
362
|
return "" + e;
|
|
363
363
|
}
|
|
364
364
|
function pe(e) {
|
|
365
365
|
if (qe(e))
|
|
366
|
-
return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)),
|
|
366
|
+
return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e)), ve(e);
|
|
367
367
|
}
|
|
368
|
-
var
|
|
368
|
+
var I = x.ReactCurrentOwner, Ke = {
|
|
369
369
|
key: !0,
|
|
370
370
|
ref: !0,
|
|
371
371
|
__self: !0,
|
|
372
372
|
__source: !0
|
|
373
|
-
},
|
|
373
|
+
}, ge, _e, K;
|
|
374
374
|
K = {};
|
|
375
375
|
function Ge(e) {
|
|
376
|
-
if (
|
|
376
|
+
if (F.call(e, "ref")) {
|
|
377
377
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
378
378
|
if (r && r.isReactWarning)
|
|
379
379
|
return !1;
|
|
@@ -381,7 +381,7 @@ function _r() {
|
|
|
381
381
|
return e.ref !== void 0;
|
|
382
382
|
}
|
|
383
383
|
function ze(e) {
|
|
384
|
-
if (
|
|
384
|
+
if (F.call(e, "key")) {
|
|
385
385
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
386
386
|
if (r && r.isReactWarning)
|
|
387
387
|
return !1;
|
|
@@ -389,15 +389,15 @@ function _r() {
|
|
|
389
389
|
return e.key !== void 0;
|
|
390
390
|
}
|
|
391
391
|
function He(e, r) {
|
|
392
|
-
if (typeof e.ref == "string" &&
|
|
393
|
-
var t = b(
|
|
394
|
-
K[t] || (l('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', b(
|
|
392
|
+
if (typeof e.ref == "string" && I.current && r && I.current.stateNode !== r) {
|
|
393
|
+
var t = b(I.current.type);
|
|
394
|
+
K[t] || (l('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', b(I.current.type), e.ref), K[t] = !0);
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
function Xe(e, r) {
|
|
398
398
|
{
|
|
399
399
|
var t = function() {
|
|
400
|
-
|
|
400
|
+
ge || (ge = !0, l("%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));
|
|
401
401
|
};
|
|
402
402
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
403
403
|
get: t,
|
|
@@ -408,7 +408,7 @@ function _r() {
|
|
|
408
408
|
function Ze(e, r) {
|
|
409
409
|
{
|
|
410
410
|
var t = function() {
|
|
411
|
-
|
|
411
|
+
_e || (_e = !0, l("%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));
|
|
412
412
|
};
|
|
413
413
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
414
414
|
get: t,
|
|
@@ -419,7 +419,7 @@ function _r() {
|
|
|
419
419
|
var Qe = function(e, r, t, n, i, u, o) {
|
|
420
420
|
var a = {
|
|
421
421
|
// This tag allows us to uniquely identify this as a React Element
|
|
422
|
-
$$typeof:
|
|
422
|
+
$$typeof: _,
|
|
423
423
|
// Built-in properties that belong on the element
|
|
424
424
|
type: e,
|
|
425
425
|
key: r,
|
|
@@ -447,24 +447,24 @@ function _r() {
|
|
|
447
447
|
};
|
|
448
448
|
function er(e, r, t, n, i) {
|
|
449
449
|
{
|
|
450
|
-
var u, o = {}, a = null,
|
|
451
|
-
t !== void 0 && (pe(t), a = "" + t), ze(r) && (pe(r.key), a = "" + r.key), Ge(r) && (
|
|
450
|
+
var u, o = {}, a = null, d = null;
|
|
451
|
+
t !== void 0 && (pe(t), a = "" + t), ze(r) && (pe(r.key), a = "" + r.key), Ge(r) && (d = r.ref, He(r, i));
|
|
452
452
|
for (u in r)
|
|
453
|
-
|
|
453
|
+
F.call(r, u) && !Ke.hasOwnProperty(u) && (o[u] = r[u]);
|
|
454
454
|
if (e && e.defaultProps) {
|
|
455
455
|
var s = e.defaultProps;
|
|
456
456
|
for (u in s)
|
|
457
457
|
o[u] === void 0 && (o[u] = s[u]);
|
|
458
458
|
}
|
|
459
|
-
if (a ||
|
|
459
|
+
if (a || d) {
|
|
460
460
|
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
461
|
-
a && Xe(o, f),
|
|
461
|
+
a && Xe(o, f), d && Ze(o, f);
|
|
462
462
|
}
|
|
463
|
-
return Qe(e, a,
|
|
463
|
+
return Qe(e, a, d, i, n, I.current, o);
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
|
-
var G =
|
|
467
|
-
function
|
|
466
|
+
var G = x.ReactCurrentOwner, Re = x.ReactDebugCurrentFrame;
|
|
467
|
+
function k(e) {
|
|
468
468
|
if (e) {
|
|
469
469
|
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
470
470
|
Re.setExtraStackFrame(t);
|
|
@@ -474,7 +474,7 @@ function _r() {
|
|
|
474
474
|
var z;
|
|
475
475
|
z = !1;
|
|
476
476
|
function H(e) {
|
|
477
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
477
|
+
return typeof e == "object" && e !== null && e.$$typeof === _;
|
|
478
478
|
}
|
|
479
479
|
function be() {
|
|
480
480
|
{
|
|
@@ -514,7 +514,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
514
514
|
return;
|
|
515
515
|
ye[t] = !0;
|
|
516
516
|
var n = "";
|
|
517
|
-
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + b(e._owner.type) + "."),
|
|
517
|
+
e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + b(e._owner.type) + "."), k(e), l('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), k(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
function he(e, r) {
|
|
@@ -566,11 +566,11 @@ Check the top-level render call using <` + t + ">.");
|
|
|
566
566
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
567
567
|
var n = r[t];
|
|
568
568
|
if (n !== "children" && n !== "key") {
|
|
569
|
-
|
|
569
|
+
k(e), l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
e.ref !== null && (
|
|
573
|
+
e.ref !== null && (k(e), l("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
var me = {};
|
|
@@ -580,33 +580,33 @@ Check the top-level render call using <` + t + ">.");
|
|
|
580
580
|
if (!o) {
|
|
581
581
|
var a = "";
|
|
582
582
|
(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.");
|
|
583
|
-
var
|
|
584
|
-
|
|
583
|
+
var d = rr();
|
|
584
|
+
d ? a += d : a += be();
|
|
585
585
|
var s;
|
|
586
|
-
e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof ===
|
|
586
|
+
e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === _ ? (s = "<" + (b(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, l("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);
|
|
587
587
|
}
|
|
588
588
|
var f = er(e, r, t, i, u);
|
|
589
589
|
if (f == null)
|
|
590
590
|
return f;
|
|
591
591
|
if (o) {
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
592
|
+
var g = r.children;
|
|
593
|
+
if (g !== void 0)
|
|
594
594
|
if (n)
|
|
595
|
-
if (q(
|
|
596
|
-
for (var
|
|
597
|
-
he(
|
|
598
|
-
Object.freeze && Object.freeze(
|
|
595
|
+
if (q(g)) {
|
|
596
|
+
for (var D = 0; D < g.length; D++)
|
|
597
|
+
he(g[D], e);
|
|
598
|
+
Object.freeze && Object.freeze(g);
|
|
599
599
|
} else
|
|
600
600
|
l("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
601
|
else
|
|
602
|
-
he(
|
|
602
|
+
he(g, e);
|
|
603
603
|
}
|
|
604
|
-
if (
|
|
605
|
-
var P = b(e),
|
|
604
|
+
if (F.call(r, "key")) {
|
|
605
|
+
var P = b(e), v = Object.keys(r).filter(function(lr) {
|
|
606
606
|
return lr !== "key";
|
|
607
|
-
}), X =
|
|
607
|
+
}), X = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
608
|
if (!me[P + X]) {
|
|
609
|
-
var fr =
|
|
609
|
+
var fr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
|
|
610
610
|
l(`A props object containing a "key" prop is being spread into JSX:
|
|
611
611
|
let props = %s;
|
|
612
612
|
<%s {...props} />
|
|
@@ -625,30 +625,30 @@ React keys must be passed directly to JSX without using spread:
|
|
|
625
625
|
return Te(e, r, t, !1);
|
|
626
626
|
}
|
|
627
627
|
var ur = ir, sr = or;
|
|
628
|
-
|
|
629
|
-
}()),
|
|
628
|
+
$.Fragment = E, $.jsx = ur, $.jsxs = sr;
|
|
629
|
+
}()), $;
|
|
630
630
|
}
|
|
631
|
-
process.env.NODE_ENV === "production" ? Z.exports = pr() : Z.exports =
|
|
632
|
-
var
|
|
631
|
+
process.env.NODE_ENV === "production" ? Z.exports = pr() : Z.exports = gr();
|
|
632
|
+
var _r = Z.exports;
|
|
633
633
|
globalThis.__VUE_OPTIONS_API__ = !0;
|
|
634
634
|
globalThis.__VUE_PROD_HYDRATION_MISMATCH_DETAILS__ = !0;
|
|
635
635
|
globalThis.__VUE_PROD_DEVTOOLS__ = !1;
|
|
636
|
-
const yr = (
|
|
637
|
-
const
|
|
636
|
+
const yr = (T) => {
|
|
637
|
+
const _ = cr(null), [R, E] = dr(null);
|
|
638
638
|
return Oe(() => {
|
|
639
|
-
if (!
|
|
640
|
-
const
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
);
|
|
639
|
+
if (!_.current) return R == null ? void 0 : R.unmount;
|
|
640
|
+
const h = { ...{
|
|
641
|
+
_integration: "react"
|
|
642
|
+
}, ...T.configuration }, m = vr(_.current, h);
|
|
644
643
|
return E(m), m.unmount;
|
|
645
|
-
}, [
|
|
644
|
+
}, [_]), Oe(() => {
|
|
645
|
+
const h = { ...{ _integration: "react" }, ...T.configuration };
|
|
646
646
|
R == null || R.updateConfig(
|
|
647
|
-
h
|
|
647
|
+
h,
|
|
648
648
|
/** For React we will just replace the config if it changes */
|
|
649
649
|
!1
|
|
650
650
|
);
|
|
651
|
-
}, [
|
|
651
|
+
}, [T.configuration]), /* @__PURE__ */ _r.jsx("div", { ref: _ });
|
|
652
652
|
};
|
|
653
653
|
export {
|
|
654
654
|
yr as ApiReferenceReact
|