react 18.2.0 → 19.2.4
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/LICENSE +1 -1
- package/README.md +3 -3
- package/cjs/react-compiler-runtime.development.js +24 -0
- package/cjs/react-compiler-runtime.production.js +16 -0
- package/cjs/react-compiler-runtime.profiling.js +16 -0
- package/cjs/react-jsx-dev-runtime.development.js +308 -1266
- package/cjs/react-jsx-dev-runtime.production.js +14 -0
- package/cjs/react-jsx-dev-runtime.profiling.js +14 -0
- package/cjs/react-jsx-dev-runtime.react-server.development.js +370 -0
- package/cjs/react-jsx-dev-runtime.react-server.production.js +40 -0
- package/cjs/react-jsx-runtime.development.js +322 -1284
- package/cjs/react-jsx-runtime.production.js +34 -0
- package/cjs/react-jsx-runtime.profiling.js +34 -0
- package/cjs/react-jsx-runtime.react-server.development.js +370 -0
- package/cjs/react-jsx-runtime.react-server.production.js +40 -0
- package/cjs/react.development.js +1240 -2695
- package/cjs/react.production.js +542 -0
- package/cjs/react.react-server.development.js +848 -0
- package/cjs/react.react-server.production.js +423 -0
- package/compiler-runtime.js +14 -0
- package/index.js +1 -1
- package/jsx-dev-runtime.js +1 -1
- package/jsx-dev-runtime.react-server.js +7 -0
- package/jsx-runtime.js +1 -1
- package/jsx-runtime.react-server.js +7 -0
- package/package.json +19 -15
- package/react.react-server.js +7 -0
- package/cjs/react-jsx-dev-runtime.production.min.js +0 -10
- package/cjs/react-jsx-dev-runtime.profiling.min.js +0 -10
- package/cjs/react-jsx-runtime.production.min.js +0 -11
- package/cjs/react-jsx-runtime.profiling.min.js +0 -11
- package/cjs/react.production.min.js +0 -26
- package/cjs/react.shared-subset.development.js +0 -20
- package/cjs/react.shared-subset.production.min.js +0 -10
- package/react.shared-subset.js +0 -7
- package/umd/react.development.js +0 -3342
- package/umd/react.production.min.js +0 -31
- package/umd/react.profiling.min.js +0 -31
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.react-server.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
var ReactSharedInternals = { H: null, A: null };
|
|
13
|
+
function formatProdErrorMessage(code) {
|
|
14
|
+
var url = "https://react.dev/errors/" + code;
|
|
15
|
+
if (1 < arguments.length) {
|
|
16
|
+
url += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
17
|
+
for (var i = 2; i < arguments.length; i++)
|
|
18
|
+
url += "&args[]=" + encodeURIComponent(arguments[i]);
|
|
19
|
+
}
|
|
20
|
+
return (
|
|
21
|
+
"Minified React error #" +
|
|
22
|
+
code +
|
|
23
|
+
"; visit " +
|
|
24
|
+
url +
|
|
25
|
+
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
var isArrayImpl = Array.isArray;
|
|
29
|
+
function noop() {}
|
|
30
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
31
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
32
|
+
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
33
|
+
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
34
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
35
|
+
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
36
|
+
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
37
|
+
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
38
|
+
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
39
|
+
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
40
|
+
function getIteratorFn(maybeIterable) {
|
|
41
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
42
|
+
maybeIterable =
|
|
43
|
+
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
|
44
|
+
maybeIterable["@@iterator"];
|
|
45
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
46
|
+
}
|
|
47
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
48
|
+
assign = Object.assign;
|
|
49
|
+
function ReactElement(type, key, props) {
|
|
50
|
+
var refProp = props.ref;
|
|
51
|
+
return {
|
|
52
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
53
|
+
type: type,
|
|
54
|
+
key: key,
|
|
55
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
56
|
+
props: props
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
60
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
61
|
+
}
|
|
62
|
+
function isValidElement(object) {
|
|
63
|
+
return (
|
|
64
|
+
"object" === typeof object &&
|
|
65
|
+
null !== object &&
|
|
66
|
+
object.$$typeof === REACT_ELEMENT_TYPE
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
function escape(key) {
|
|
70
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
71
|
+
return (
|
|
72
|
+
"$" +
|
|
73
|
+
key.replace(/[=:]/g, function (match) {
|
|
74
|
+
return escaperLookup[match];
|
|
75
|
+
})
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
79
|
+
function getElementKey(element, index) {
|
|
80
|
+
return "object" === typeof element && null !== element && null != element.key
|
|
81
|
+
? escape("" + element.key)
|
|
82
|
+
: index.toString(36);
|
|
83
|
+
}
|
|
84
|
+
function resolveThenable(thenable) {
|
|
85
|
+
switch (thenable.status) {
|
|
86
|
+
case "fulfilled":
|
|
87
|
+
return thenable.value;
|
|
88
|
+
case "rejected":
|
|
89
|
+
throw thenable.reason;
|
|
90
|
+
default:
|
|
91
|
+
switch (
|
|
92
|
+
("string" === typeof thenable.status
|
|
93
|
+
? thenable.then(noop, noop)
|
|
94
|
+
: ((thenable.status = "pending"),
|
|
95
|
+
thenable.then(
|
|
96
|
+
function (fulfilledValue) {
|
|
97
|
+
"pending" === thenable.status &&
|
|
98
|
+
((thenable.status = "fulfilled"),
|
|
99
|
+
(thenable.value = fulfilledValue));
|
|
100
|
+
},
|
|
101
|
+
function (error) {
|
|
102
|
+
"pending" === thenable.status &&
|
|
103
|
+
((thenable.status = "rejected"), (thenable.reason = error));
|
|
104
|
+
}
|
|
105
|
+
)),
|
|
106
|
+
thenable.status)
|
|
107
|
+
) {
|
|
108
|
+
case "fulfilled":
|
|
109
|
+
return thenable.value;
|
|
110
|
+
case "rejected":
|
|
111
|
+
throw thenable.reason;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
throw thenable;
|
|
115
|
+
}
|
|
116
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
117
|
+
var type = typeof children;
|
|
118
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
119
|
+
var invokeCallback = !1;
|
|
120
|
+
if (null === children) invokeCallback = !0;
|
|
121
|
+
else
|
|
122
|
+
switch (type) {
|
|
123
|
+
case "bigint":
|
|
124
|
+
case "string":
|
|
125
|
+
case "number":
|
|
126
|
+
invokeCallback = !0;
|
|
127
|
+
break;
|
|
128
|
+
case "object":
|
|
129
|
+
switch (children.$$typeof) {
|
|
130
|
+
case REACT_ELEMENT_TYPE:
|
|
131
|
+
case REACT_PORTAL_TYPE:
|
|
132
|
+
invokeCallback = !0;
|
|
133
|
+
break;
|
|
134
|
+
case REACT_LAZY_TYPE:
|
|
135
|
+
return (
|
|
136
|
+
(invokeCallback = children._init),
|
|
137
|
+
mapIntoArray(
|
|
138
|
+
invokeCallback(children._payload),
|
|
139
|
+
array,
|
|
140
|
+
escapedPrefix,
|
|
141
|
+
nameSoFar,
|
|
142
|
+
callback
|
|
143
|
+
)
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
if (invokeCallback)
|
|
148
|
+
return (
|
|
149
|
+
(callback = callback(children)),
|
|
150
|
+
(invokeCallback =
|
|
151
|
+
"" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
|
|
152
|
+
isArrayImpl(callback)
|
|
153
|
+
? ((escapedPrefix = ""),
|
|
154
|
+
null != invokeCallback &&
|
|
155
|
+
(escapedPrefix =
|
|
156
|
+
invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
|
|
157
|
+
mapIntoArray(callback, array, escapedPrefix, "", function (c) {
|
|
158
|
+
return c;
|
|
159
|
+
}))
|
|
160
|
+
: null != callback &&
|
|
161
|
+
(isValidElement(callback) &&
|
|
162
|
+
(callback = cloneAndReplaceKey(
|
|
163
|
+
callback,
|
|
164
|
+
escapedPrefix +
|
|
165
|
+
(null == callback.key ||
|
|
166
|
+
(children && children.key === callback.key)
|
|
167
|
+
? ""
|
|
168
|
+
: ("" + callback.key).replace(
|
|
169
|
+
userProvidedKeyEscapeRegex,
|
|
170
|
+
"$&/"
|
|
171
|
+
) + "/") +
|
|
172
|
+
invokeCallback
|
|
173
|
+
)),
|
|
174
|
+
array.push(callback)),
|
|
175
|
+
1
|
|
176
|
+
);
|
|
177
|
+
invokeCallback = 0;
|
|
178
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
179
|
+
if (isArrayImpl(children))
|
|
180
|
+
for (var i = 0; i < children.length; i++)
|
|
181
|
+
(nameSoFar = children[i]),
|
|
182
|
+
(type = nextNamePrefix + getElementKey(nameSoFar, i)),
|
|
183
|
+
(invokeCallback += mapIntoArray(
|
|
184
|
+
nameSoFar,
|
|
185
|
+
array,
|
|
186
|
+
escapedPrefix,
|
|
187
|
+
type,
|
|
188
|
+
callback
|
|
189
|
+
));
|
|
190
|
+
else if (((i = getIteratorFn(children)), "function" === typeof i))
|
|
191
|
+
for (
|
|
192
|
+
children = i.call(children), i = 0;
|
|
193
|
+
!(nameSoFar = children.next()).done;
|
|
194
|
+
|
|
195
|
+
)
|
|
196
|
+
(nameSoFar = nameSoFar.value),
|
|
197
|
+
(type = nextNamePrefix + getElementKey(nameSoFar, i++)),
|
|
198
|
+
(invokeCallback += mapIntoArray(
|
|
199
|
+
nameSoFar,
|
|
200
|
+
array,
|
|
201
|
+
escapedPrefix,
|
|
202
|
+
type,
|
|
203
|
+
callback
|
|
204
|
+
));
|
|
205
|
+
else if ("object" === type) {
|
|
206
|
+
if ("function" === typeof children.then)
|
|
207
|
+
return mapIntoArray(
|
|
208
|
+
resolveThenable(children),
|
|
209
|
+
array,
|
|
210
|
+
escapedPrefix,
|
|
211
|
+
nameSoFar,
|
|
212
|
+
callback
|
|
213
|
+
);
|
|
214
|
+
array = String(children);
|
|
215
|
+
throw Error(
|
|
216
|
+
formatProdErrorMessage(
|
|
217
|
+
31,
|
|
218
|
+
"[object Object]" === array
|
|
219
|
+
? "object with keys {" + Object.keys(children).join(", ") + "}"
|
|
220
|
+
: array
|
|
221
|
+
)
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
return invokeCallback;
|
|
225
|
+
}
|
|
226
|
+
function mapChildren(children, func, context) {
|
|
227
|
+
if (null == children) return children;
|
|
228
|
+
var result = [],
|
|
229
|
+
count = 0;
|
|
230
|
+
mapIntoArray(children, result, "", "", function (child) {
|
|
231
|
+
return func.call(context, child, count++);
|
|
232
|
+
});
|
|
233
|
+
return result;
|
|
234
|
+
}
|
|
235
|
+
function lazyInitializer(payload) {
|
|
236
|
+
if (-1 === payload._status) {
|
|
237
|
+
var ctor = payload._result;
|
|
238
|
+
ctor = ctor();
|
|
239
|
+
ctor.then(
|
|
240
|
+
function (moduleObject) {
|
|
241
|
+
if (0 === payload._status || -1 === payload._status)
|
|
242
|
+
(payload._status = 1), (payload._result = moduleObject);
|
|
243
|
+
},
|
|
244
|
+
function (error) {
|
|
245
|
+
if (0 === payload._status || -1 === payload._status)
|
|
246
|
+
(payload._status = 2), (payload._result = error);
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
-1 === payload._status && ((payload._status = 0), (payload._result = ctor));
|
|
250
|
+
}
|
|
251
|
+
if (1 === payload._status) return payload._result.default;
|
|
252
|
+
throw payload._result;
|
|
253
|
+
}
|
|
254
|
+
function createCacheRoot() {
|
|
255
|
+
return new WeakMap();
|
|
256
|
+
}
|
|
257
|
+
function createCacheNode() {
|
|
258
|
+
return { s: 0, v: void 0, o: null, p: null };
|
|
259
|
+
}
|
|
260
|
+
exports.Children = {
|
|
261
|
+
map: mapChildren,
|
|
262
|
+
forEach: function (children, forEachFunc, forEachContext) {
|
|
263
|
+
mapChildren(
|
|
264
|
+
children,
|
|
265
|
+
function () {
|
|
266
|
+
forEachFunc.apply(this, arguments);
|
|
267
|
+
},
|
|
268
|
+
forEachContext
|
|
269
|
+
);
|
|
270
|
+
},
|
|
271
|
+
count: function (children) {
|
|
272
|
+
var n = 0;
|
|
273
|
+
mapChildren(children, function () {
|
|
274
|
+
n++;
|
|
275
|
+
});
|
|
276
|
+
return n;
|
|
277
|
+
},
|
|
278
|
+
toArray: function (children) {
|
|
279
|
+
return (
|
|
280
|
+
mapChildren(children, function (child) {
|
|
281
|
+
return child;
|
|
282
|
+
}) || []
|
|
283
|
+
);
|
|
284
|
+
},
|
|
285
|
+
only: function (children) {
|
|
286
|
+
if (!isValidElement(children)) throw Error(formatProdErrorMessage(143));
|
|
287
|
+
return children;
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
291
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
292
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
293
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
294
|
+
exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
295
|
+
ReactSharedInternals;
|
|
296
|
+
exports.cache = function (fn) {
|
|
297
|
+
return function () {
|
|
298
|
+
var dispatcher = ReactSharedInternals.A;
|
|
299
|
+
if (!dispatcher) return fn.apply(null, arguments);
|
|
300
|
+
var fnMap = dispatcher.getCacheForType(createCacheRoot);
|
|
301
|
+
dispatcher = fnMap.get(fn);
|
|
302
|
+
void 0 === dispatcher &&
|
|
303
|
+
((dispatcher = createCacheNode()), fnMap.set(fn, dispatcher));
|
|
304
|
+
fnMap = 0;
|
|
305
|
+
for (var l = arguments.length; fnMap < l; fnMap++) {
|
|
306
|
+
var arg = arguments[fnMap];
|
|
307
|
+
if (
|
|
308
|
+
"function" === typeof arg ||
|
|
309
|
+
("object" === typeof arg && null !== arg)
|
|
310
|
+
) {
|
|
311
|
+
var objectCache = dispatcher.o;
|
|
312
|
+
null === objectCache && (dispatcher.o = objectCache = new WeakMap());
|
|
313
|
+
dispatcher = objectCache.get(arg);
|
|
314
|
+
void 0 === dispatcher &&
|
|
315
|
+
((dispatcher = createCacheNode()), objectCache.set(arg, dispatcher));
|
|
316
|
+
} else
|
|
317
|
+
(objectCache = dispatcher.p),
|
|
318
|
+
null === objectCache && (dispatcher.p = objectCache = new Map()),
|
|
319
|
+
(dispatcher = objectCache.get(arg)),
|
|
320
|
+
void 0 === dispatcher &&
|
|
321
|
+
((dispatcher = createCacheNode()),
|
|
322
|
+
objectCache.set(arg, dispatcher));
|
|
323
|
+
}
|
|
324
|
+
if (1 === dispatcher.s) return dispatcher.v;
|
|
325
|
+
if (2 === dispatcher.s) throw dispatcher.v;
|
|
326
|
+
try {
|
|
327
|
+
var result = fn.apply(null, arguments);
|
|
328
|
+
fnMap = dispatcher;
|
|
329
|
+
fnMap.s = 1;
|
|
330
|
+
return (fnMap.v = result);
|
|
331
|
+
} catch (error) {
|
|
332
|
+
throw ((result = dispatcher), (result.s = 2), (result.v = error), error);
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
exports.cacheSignal = function () {
|
|
337
|
+
var dispatcher = ReactSharedInternals.A;
|
|
338
|
+
return dispatcher ? dispatcher.cacheSignal() : null;
|
|
339
|
+
};
|
|
340
|
+
exports.captureOwnerStack = function () {
|
|
341
|
+
return null;
|
|
342
|
+
};
|
|
343
|
+
exports.cloneElement = function (element, config, children) {
|
|
344
|
+
if (null === element || void 0 === element)
|
|
345
|
+
throw Error(formatProdErrorMessage(267, element));
|
|
346
|
+
var props = assign({}, element.props),
|
|
347
|
+
key = element.key;
|
|
348
|
+
if (null != config)
|
|
349
|
+
for (propName in (void 0 !== config.key && (key = "" + config.key), config))
|
|
350
|
+
!hasOwnProperty.call(config, propName) ||
|
|
351
|
+
"key" === propName ||
|
|
352
|
+
"__self" === propName ||
|
|
353
|
+
"__source" === propName ||
|
|
354
|
+
("ref" === propName && void 0 === config.ref) ||
|
|
355
|
+
(props[propName] = config[propName]);
|
|
356
|
+
var propName = arguments.length - 2;
|
|
357
|
+
if (1 === propName) props.children = children;
|
|
358
|
+
else if (1 < propName) {
|
|
359
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
360
|
+
childArray[i] = arguments[i + 2];
|
|
361
|
+
props.children = childArray;
|
|
362
|
+
}
|
|
363
|
+
return ReactElement(element.type, key, props);
|
|
364
|
+
};
|
|
365
|
+
exports.createElement = function (type, config, children) {
|
|
366
|
+
var propName,
|
|
367
|
+
props = {},
|
|
368
|
+
key = null;
|
|
369
|
+
if (null != config)
|
|
370
|
+
for (propName in (void 0 !== config.key && (key = "" + config.key), config))
|
|
371
|
+
hasOwnProperty.call(config, propName) &&
|
|
372
|
+
"key" !== propName &&
|
|
373
|
+
"__self" !== propName &&
|
|
374
|
+
"__source" !== propName &&
|
|
375
|
+
(props[propName] = config[propName]);
|
|
376
|
+
var childrenLength = arguments.length - 2;
|
|
377
|
+
if (1 === childrenLength) props.children = children;
|
|
378
|
+
else if (1 < childrenLength) {
|
|
379
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
380
|
+
childArray[i] = arguments[i + 2];
|
|
381
|
+
props.children = childArray;
|
|
382
|
+
}
|
|
383
|
+
if (type && type.defaultProps)
|
|
384
|
+
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
385
|
+
void 0 === props[propName] &&
|
|
386
|
+
(props[propName] = childrenLength[propName]);
|
|
387
|
+
return ReactElement(type, key, props);
|
|
388
|
+
};
|
|
389
|
+
exports.createRef = function () {
|
|
390
|
+
return { current: null };
|
|
391
|
+
};
|
|
392
|
+
exports.forwardRef = function (render) {
|
|
393
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
|
|
394
|
+
};
|
|
395
|
+
exports.isValidElement = isValidElement;
|
|
396
|
+
exports.lazy = function (ctor) {
|
|
397
|
+
return {
|
|
398
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
399
|
+
_payload: { _status: -1, _result: ctor },
|
|
400
|
+
_init: lazyInitializer
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
exports.memo = function (type, compare) {
|
|
404
|
+
return {
|
|
405
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
406
|
+
type: type,
|
|
407
|
+
compare: void 0 === compare ? null : compare
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
exports.use = function (usable) {
|
|
411
|
+
return ReactSharedInternals.H.use(usable);
|
|
412
|
+
};
|
|
413
|
+
exports.useCallback = function (callback, deps) {
|
|
414
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
415
|
+
};
|
|
416
|
+
exports.useDebugValue = function () {};
|
|
417
|
+
exports.useId = function () {
|
|
418
|
+
return ReactSharedInternals.H.useId();
|
|
419
|
+
};
|
|
420
|
+
exports.useMemo = function (create, deps) {
|
|
421
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
422
|
+
};
|
|
423
|
+
exports.version = "19.2.4";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
'use strict';
|
|
9
|
+
|
|
10
|
+
if (process.env.NODE_ENV === 'production') {
|
|
11
|
+
module.exports = require('./cjs/react-compiler-runtime.production.js');
|
|
12
|
+
} else {
|
|
13
|
+
module.exports = require('./cjs/react-compiler-runtime.development.js');
|
|
14
|
+
}
|
package/index.js
CHANGED
package/jsx-dev-runtime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
|
4
|
-
module.exports = require('./cjs/react-jsx-dev-runtime.production.
|
|
4
|
+
module.exports = require('./cjs/react-jsx-dev-runtime.production.js');
|
|
5
5
|
} else {
|
|
6
6
|
module.exports = require('./cjs/react-jsx-dev-runtime.development.js');
|
|
7
7
|
}
|
package/jsx-runtime.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
|
4
|
-
module.exports = require('./cjs/react-jsx-runtime.production.
|
|
4
|
+
module.exports = require('./cjs/react-jsx-runtime.production.js');
|
|
5
5
|
} else {
|
|
6
6
|
module.exports = require('./cjs/react-jsx-runtime.development.js');
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"keywords": [
|
|
5
5
|
"react"
|
|
6
6
|
],
|
|
7
|
-
"version": "
|
|
8
|
-
"homepage": "https://
|
|
7
|
+
"version": "19.2.4",
|
|
8
|
+
"homepage": "https://react.dev/",
|
|
9
9
|
"bugs": "https://github.com/facebook/react/issues",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"files": [
|
|
@@ -13,20 +13,32 @@
|
|
|
13
13
|
"README.md",
|
|
14
14
|
"index.js",
|
|
15
15
|
"cjs/",
|
|
16
|
-
"
|
|
16
|
+
"compiler-runtime.js",
|
|
17
17
|
"jsx-runtime.js",
|
|
18
|
+
"jsx-runtime.react-server.js",
|
|
18
19
|
"jsx-dev-runtime.js",
|
|
19
|
-
"react
|
|
20
|
+
"jsx-dev-runtime.react-server.js",
|
|
21
|
+
"react.react-server.js"
|
|
20
22
|
],
|
|
21
23
|
"main": "index.js",
|
|
22
24
|
"exports": {
|
|
23
25
|
".": {
|
|
24
|
-
"react-server": "./react.
|
|
26
|
+
"react-server": "./react.react-server.js",
|
|
25
27
|
"default": "./index.js"
|
|
26
28
|
},
|
|
27
29
|
"./package.json": "./package.json",
|
|
28
|
-
"./jsx-runtime":
|
|
29
|
-
|
|
30
|
+
"./jsx-runtime": {
|
|
31
|
+
"react-server": "./jsx-runtime.react-server.js",
|
|
32
|
+
"default": "./jsx-runtime.js"
|
|
33
|
+
},
|
|
34
|
+
"./jsx-dev-runtime": {
|
|
35
|
+
"react-server": "./jsx-dev-runtime.react-server.js",
|
|
36
|
+
"default": "./jsx-dev-runtime.js"
|
|
37
|
+
},
|
|
38
|
+
"./compiler-runtime": {
|
|
39
|
+
"react-server": "./compiler-runtime.js",
|
|
40
|
+
"default": "./compiler-runtime.js"
|
|
41
|
+
}
|
|
30
42
|
},
|
|
31
43
|
"repository": {
|
|
32
44
|
"type": "git",
|
|
@@ -35,13 +47,5 @@
|
|
|
35
47
|
},
|
|
36
48
|
"engines": {
|
|
37
49
|
"node": ">=0.10.0"
|
|
38
|
-
},
|
|
39
|
-
"dependencies": {
|
|
40
|
-
"loose-envify": "^1.1.0"
|
|
41
|
-
},
|
|
42
|
-
"browserify": {
|
|
43
|
-
"transform": [
|
|
44
|
-
"loose-envify"
|
|
45
|
-
]
|
|
46
50
|
}
|
|
47
51
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-dev-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';var a=Symbol.for("react.fragment");exports.Fragment=a;exports.jsxDEV=void 0;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-dev-runtime.profiling.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';var a=Symbol.for("react.fragment");exports.Fragment=a;exports.jsxDEV=void 0;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';var f=require("react"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
|
|
11
|
-
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.profiling.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';var f=require("react"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
|
|
11
|
-
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return"function"===typeof a?a:null}
|
|
11
|
-
var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};
|
|
12
|
-
E.prototype.setState=function(a,b){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.");this.updater.enqueueSetState(this,a,b,"setState")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;
|
|
13
|
-
H.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};
|
|
14
|
-
function M(a,b,e){var d,c={},k=null,h=null;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]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}
|
|
15
|
-
function N(a,b){return{$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return"object"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g;function Q(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
|
|
16
|
-
function R(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case l:case n:h=!0}}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(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(I(a))for(var g=0;g<a.length;g++){k=
|
|
17
|
-
a[g];var f=d+Q(k,g);h+=R(k,b,e,f,c)}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);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.");return h}
|
|
18
|
-
function S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,"","",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}
|
|
19
|
-
var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};exports.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};exports.Component=E;exports.Fragment=p;
|
|
20
|
-
exports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;
|
|
21
|
-
exports.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);
|
|
22
|
-
for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};exports.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};
|
|
23
|
-
exports.forwardRef=function(a){return{$$typeof:v,render:a}};exports.isValidElement=O;exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=V.transition;V.transition={};try{a()}finally{V.transition=b}};exports.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};
|
|
24
|
-
exports.useCallback=function(a,b){return U.current.useCallback(a,b)};exports.useContext=function(a){return U.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a){return U.current.useDeferredValue(a)};exports.useEffect=function(a,b){return U.current.useEffect(a,b)};exports.useId=function(){return U.current.useId()};exports.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};
|
|
25
|
-
exports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return U.current.useMemo(a,b)};exports.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};exports.useRef=function(a){return U.current.useRef(a)};exports.useState=function(a){return U.current.useState(a)};exports.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};
|
|
26
|
-
exports.useTransition=function(){return U.current.useTransition()};exports.version="18.2.0";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.shared-subset.development.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
'use strict';
|
|
12
|
-
|
|
13
|
-
if (process.env.NODE_ENV !== "production") {
|
|
14
|
-
(function() {
|
|
15
|
-
'use strict';
|
|
16
|
-
|
|
17
|
-
// eslint-disable-next-line react-internal/prod-error-codes
|
|
18
|
-
throw new Error('This entry point is not yet supported outside of experimental channels');
|
|
19
|
-
})();
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.shared-subset.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
'use strict';throw Error("This entry point is not yet supported outside of experimental channels");
|