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