react 18.3.0-next-0ba4698c7-20230201 → 18.3.0-next-855b77c9b-20230202
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/react-jsx-dev-runtime.development.js +8 -3
- package/cjs/react-jsx-runtime.development.js +8 -3
- package/cjs/react.development.js +13 -7
- package/cjs/react.production.min.js +1 -1
- package/cjs/react.shared-subset.development.js +13 -7
- package/cjs/react.shared-subset.production.min.js +1 -1
- package/package.json +1 -1
- package/umd/react.development.js +13 -7
- package/umd/react.production.min.js +1 -1
- package/umd/react.profiling.min.js +1 -1
@@ -968,6 +968,7 @@ function jsxDEV(type, config, maybeKey, source, self) {
|
|
968
968
|
|
969
969
|
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
970
970
|
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
971
|
+
var REACT_CLIENT_REFERENCE$1 = Symbol.for('react.client.reference');
|
971
972
|
|
972
973
|
function setCurrentlyValidatingElement$1(element) {
|
973
974
|
{
|
@@ -1107,11 +1108,11 @@ function validateExplicitKey(element, parentType) {
|
|
1107
1108
|
|
1108
1109
|
function validateChildKeys(node, parentType) {
|
1109
1110
|
{
|
1110
|
-
if (typeof node !== 'object') {
|
1111
|
+
if (typeof node !== 'object' || !node) {
|
1111
1112
|
return;
|
1112
1113
|
}
|
1113
1114
|
|
1114
|
-
if (isArray(node)) {
|
1115
|
+
if (node.$$typeof === REACT_CLIENT_REFERENCE$1) ; else if (isArray(node)) {
|
1115
1116
|
for (var i = 0; i < node.length; i++) {
|
1116
1117
|
var child = node[i];
|
1117
1118
|
|
@@ -1124,7 +1125,7 @@ function validateChildKeys(node, parentType) {
|
|
1124
1125
|
if (node._store) {
|
1125
1126
|
node._store.validated = true;
|
1126
1127
|
}
|
1127
|
-
} else
|
1128
|
+
} else {
|
1128
1129
|
var iteratorFn = getIteratorFn(node);
|
1129
1130
|
|
1130
1131
|
if (typeof iteratorFn === 'function') {
|
@@ -1160,6 +1161,10 @@ function validatePropTypes(element) {
|
|
1160
1161
|
return;
|
1161
1162
|
}
|
1162
1163
|
|
1164
|
+
if (type.$$typeof === REACT_CLIENT_REFERENCE$1) {
|
1165
|
+
return;
|
1166
|
+
}
|
1167
|
+
|
1163
1168
|
var propTypes;
|
1164
1169
|
|
1165
1170
|
if (typeof type === 'function') {
|
@@ -968,6 +968,7 @@ function jsxDEV(type, config, maybeKey, source, self) {
|
|
968
968
|
|
969
969
|
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
970
970
|
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
971
|
+
var REACT_CLIENT_REFERENCE$1 = Symbol.for('react.client.reference');
|
971
972
|
|
972
973
|
function setCurrentlyValidatingElement$1(element) {
|
973
974
|
{
|
@@ -1107,11 +1108,11 @@ function validateExplicitKey(element, parentType) {
|
|
1107
1108
|
|
1108
1109
|
function validateChildKeys(node, parentType) {
|
1109
1110
|
{
|
1110
|
-
if (typeof node !== 'object') {
|
1111
|
+
if (typeof node !== 'object' || !node) {
|
1111
1112
|
return;
|
1112
1113
|
}
|
1113
1114
|
|
1114
|
-
if (isArray(node)) {
|
1115
|
+
if (node.$$typeof === REACT_CLIENT_REFERENCE$1) ; else if (isArray(node)) {
|
1115
1116
|
for (var i = 0; i < node.length; i++) {
|
1116
1117
|
var child = node[i];
|
1117
1118
|
|
@@ -1124,7 +1125,7 @@ function validateChildKeys(node, parentType) {
|
|
1124
1125
|
if (node._store) {
|
1125
1126
|
node._store.validated = true;
|
1126
1127
|
}
|
1127
|
-
} else
|
1128
|
+
} else {
|
1128
1129
|
var iteratorFn = getIteratorFn(node);
|
1129
1130
|
|
1130
1131
|
if (typeof iteratorFn === 'function') {
|
@@ -1160,6 +1161,10 @@ function validatePropTypes(element) {
|
|
1160
1161
|
return;
|
1161
1162
|
}
|
1162
1163
|
|
1164
|
+
if (type.$$typeof === REACT_CLIENT_REFERENCE$1) {
|
1165
|
+
return;
|
1166
|
+
}
|
1167
|
+
|
1163
1168
|
var propTypes;
|
1164
1169
|
|
1165
1170
|
if (typeof type === 'function') {
|
package/cjs/react.development.js
CHANGED
@@ -23,7 +23,7 @@ if (
|
|
23
23
|
) {
|
24
24
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
25
25
|
}
|
26
|
-
var ReactVersion = '18.3.0-next-
|
26
|
+
var ReactVersion = '18.3.0-next-855b77c9b-20230202';
|
27
27
|
|
28
28
|
// ATTENTION
|
29
29
|
// When adding new symbols to this file,
|
@@ -1105,9 +1105,9 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
1105
1105
|
mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
|
1106
1106
|
// traverseAllChildren used to do for objects as children
|
1107
1107
|
escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
1108
|
-
mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey( //
|
1109
|
-
'' +
|
1110
|
-
|
1108
|
+
mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey( // $FlowFixMe[unsafe-addition]
|
1109
|
+
'' + mappedChild.key // eslint-disable-line react-internal/safe-string-coercion
|
1110
|
+
) + '/' : '') + childKey);
|
1111
1111
|
}
|
1112
1112
|
|
1113
1113
|
array.push(mappedChild);
|
@@ -2229,6 +2229,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
2229
2229
|
}
|
2230
2230
|
}
|
2231
2231
|
|
2232
|
+
var REACT_CLIENT_REFERENCE$1 = Symbol.for('react.client.reference');
|
2233
|
+
|
2232
2234
|
function setCurrentlyValidatingElement$1(element) {
|
2233
2235
|
{
|
2234
2236
|
if (element) {
|
@@ -2354,11 +2356,11 @@ function validateExplicitKey(element, parentType) {
|
|
2354
2356
|
|
2355
2357
|
|
2356
2358
|
function validateChildKeys(node, parentType) {
|
2357
|
-
if (typeof node !== 'object') {
|
2359
|
+
if (typeof node !== 'object' || !node) {
|
2358
2360
|
return;
|
2359
2361
|
}
|
2360
2362
|
|
2361
|
-
if (isArray(node)) {
|
2363
|
+
if (node.$$typeof === REACT_CLIENT_REFERENCE$1) ; else if (isArray(node)) {
|
2362
2364
|
for (var i = 0; i < node.length; i++) {
|
2363
2365
|
var child = node[i];
|
2364
2366
|
|
@@ -2371,7 +2373,7 @@ function validateChildKeys(node, parentType) {
|
|
2371
2373
|
if (node._store) {
|
2372
2374
|
node._store.validated = true;
|
2373
2375
|
}
|
2374
|
-
} else
|
2376
|
+
} else {
|
2375
2377
|
var iteratorFn = getIteratorFn(node);
|
2376
2378
|
|
2377
2379
|
if (typeof iteratorFn === 'function') {
|
@@ -2406,6 +2408,10 @@ function validatePropTypes(element) {
|
|
2406
2408
|
return;
|
2407
2409
|
}
|
2408
2410
|
|
2411
|
+
if (type.$$typeof === REACT_CLIENT_REFERENCE$1) {
|
2412
|
+
return;
|
2413
|
+
}
|
2414
|
+
|
2409
2415
|
var propTypes;
|
2410
2416
|
|
2411
2417
|
if (typeof type === 'function') {
|
@@ -27,4 +27,4 @@ exports.createServerContext=function(a,b){var d=!0;if(!Z[a]){d=!1;var c={$$typeo
|
|
27
27
|
exports.isValidElement=P;exports.lazy=function(a){return{$$typeof:z,_payload:{_status:-1,_result:a},_init:ba}};exports.memo=function(a,b){return{$$typeof:y,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=X.transition;X.transition={};try{a()}finally{X.transition=b}};exports.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};exports.unstable_useCacheRefresh=function(){return W.current.useCacheRefresh()};exports.use=function(a){return W.current.use(a)};
|
28
28
|
exports.useCallback=function(a,b){return W.current.useCallback(a,b)};exports.useContext=function(a){return W.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a){return W.current.useDeferredValue(a)};exports.useEffect=function(a,b){return W.current.useEffect(a,b)};exports.useId=function(){return W.current.useId()};exports.useImperativeHandle=function(a,b,d){return W.current.useImperativeHandle(a,b,d)};
|
29
29
|
exports.useInsertionEffect=function(a,b){return W.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return W.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return W.current.useMemo(a,b)};exports.useReducer=function(a,b,d){return W.current.useReducer(a,b,d)};exports.useRef=function(a){return W.current.useRef(a)};exports.useState=function(a){return W.current.useState(a)};exports.useSyncExternalStore=function(a,b,d){return W.current.useSyncExternalStore(a,b,d)};
|
30
|
-
exports.useTransition=function(){return W.current.useTransition()};exports.version="18.3.0-next-
|
30
|
+
exports.useTransition=function(){return W.current.useTransition()};exports.version="18.3.0-next-855b77c9b-20230202";
|
@@ -302,7 +302,7 @@ function generateCacheKey(request) {
|
|
302
302
|
}
|
303
303
|
}
|
304
304
|
|
305
|
-
var ReactVersion = '18.3.0-next-
|
305
|
+
var ReactVersion = '18.3.0-next-855b77c9b-20230202';
|
306
306
|
|
307
307
|
// ATTENTION
|
308
308
|
// When adding new symbols to this file,
|
@@ -1216,9 +1216,9 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
1216
1216
|
mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
|
1217
1217
|
// traverseAllChildren used to do for objects as children
|
1218
1218
|
escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
1219
|
-
mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey( //
|
1220
|
-
'' +
|
1221
|
-
|
1219
|
+
mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey( // $FlowFixMe[unsafe-addition]
|
1220
|
+
'' + mappedChild.key // eslint-disable-line react-internal/safe-string-coercion
|
1221
|
+
) + '/' : '') + childKey);
|
1222
1222
|
}
|
1223
1223
|
|
1224
1224
|
array.push(mappedChild);
|
@@ -2181,6 +2181,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
2181
2181
|
}
|
2182
2182
|
}
|
2183
2183
|
|
2184
|
+
var REACT_CLIENT_REFERENCE$1 = Symbol.for('react.client.reference');
|
2185
|
+
|
2184
2186
|
function setCurrentlyValidatingElement$1(element) {
|
2185
2187
|
{
|
2186
2188
|
if (element) {
|
@@ -2306,11 +2308,11 @@ function validateExplicitKey(element, parentType) {
|
|
2306
2308
|
|
2307
2309
|
|
2308
2310
|
function validateChildKeys(node, parentType) {
|
2309
|
-
if (typeof node !== 'object') {
|
2311
|
+
if (typeof node !== 'object' || !node) {
|
2310
2312
|
return;
|
2311
2313
|
}
|
2312
2314
|
|
2313
|
-
if (isArray(node)) {
|
2315
|
+
if (node.$$typeof === REACT_CLIENT_REFERENCE$1) ; else if (isArray(node)) {
|
2314
2316
|
for (var i = 0; i < node.length; i++) {
|
2315
2317
|
var child = node[i];
|
2316
2318
|
|
@@ -2323,7 +2325,7 @@ function validateChildKeys(node, parentType) {
|
|
2323
2325
|
if (node._store) {
|
2324
2326
|
node._store.validated = true;
|
2325
2327
|
}
|
2326
|
-
} else
|
2328
|
+
} else {
|
2327
2329
|
var iteratorFn = getIteratorFn(node);
|
2328
2330
|
|
2329
2331
|
if (typeof iteratorFn === 'function') {
|
@@ -2358,6 +2360,10 @@ function validatePropTypes(element) {
|
|
2358
2360
|
return;
|
2359
2361
|
}
|
2360
2362
|
|
2363
|
+
if (type.$$typeof === REACT_CLIENT_REFERENCE$1) {
|
2364
|
+
return;
|
2365
|
+
}
|
2366
|
+
|
2361
2367
|
var propTypes;
|
2362
2368
|
|
2363
2369
|
if (typeof type === 'function') {
|
@@ -26,4 +26,4 @@ exports.cloneElement=function(a,b,d){if(null===a||void 0===a)throw Error(F(267,a
|
|
26
26
|
key:e,ref:f,props:c,_owner:g}};exports.createElement=function(a,b,d){var c,e={},f=null,g=null;if(null!=b)for(c in void 0!==b.ref&&(g=b.ref),void 0!==b.key&&(f=""+b.key),b)N.call(b,c)&&!P.hasOwnProperty(c)&&(e[c]=b[c]);var h=arguments.length-2;if(1===h)e.children=d;else if(1<h){for(var k=Array(h),l=0;l<h;l++)k[l]=arguments[l+2];e.children=k}if(a&&a.defaultProps)for(c in h=a.defaultProps,h)void 0===e[c]&&(e[c]=h[c]);return{$$typeof:t,type:a,key:f,ref:g,props:e,_owner:O.current}};exports.createRef=function(){return{current:null}};
|
27
27
|
exports.createServerContext=function(a,b){var d=!0;if(!Z[a]){d=!1;var c={$$typeof:z,_currentValue:b,_currentValue2:b,_defaultValue:b,_threadCount:0,Provider:null,Consumer:null,_globalName:a};c.Provider={$$typeof:y,_context:c};Z[a]=c}c=Z[a];if(c._defaultValue===D)c._defaultValue=b,c._currentValue===D&&(c._currentValue=b),c._currentValue2===D&&(c._currentValue2=b);else if(d)throw Error(F(429,a));return c};exports.forwardRef=function(a){return{$$typeof:A,render:a}};exports.isValidElement=Q;
|
28
28
|
exports.lazy=function(a){return{$$typeof:aa,_payload:{_status:-1,_result:a},_init:da}};exports.memo=function(a,b){return{$$typeof:C,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=X.transition;X.transition={};try{a()}finally{X.transition=b}};exports.use=function(a){return W.current.use(a)};exports.useCallback=function(a,b){return W.current.useCallback(a,b)};exports.useContext=function(a){return W.current.useContext(a)};exports.useDebugValue=function(){};
|
29
|
-
exports.useId=function(){return W.current.useId()};exports.useMemo=function(a,b){return W.current.useMemo(a,b)};exports.version="18.3.0-next-
|
29
|
+
exports.useId=function(){return W.current.useId()};exports.useMemo=function(a,b){return W.current.useMemo(a,b)};exports.version="18.3.0-next-855b77c9b-20230202";
|
package/package.json
CHANGED
package/umd/react.development.js
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
(global = global || self, factory(global.React = {}));
|
14
14
|
}(this, (function (exports) { 'use strict';
|
15
15
|
|
16
|
-
var ReactVersion = '18.3.0-next-
|
16
|
+
var ReactVersion = '18.3.0-next-855b77c9b-20230202';
|
17
17
|
|
18
18
|
// ATTENTION
|
19
19
|
// When adding new symbols to this file,
|
@@ -1095,9 +1095,9 @@
|
|
1095
1095
|
mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
|
1096
1096
|
// traverseAllChildren used to do for objects as children
|
1097
1097
|
escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
1098
|
-
mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey( //
|
1099
|
-
'' +
|
1100
|
-
|
1098
|
+
mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey( // $FlowFixMe[unsafe-addition]
|
1099
|
+
'' + mappedChild.key // eslint-disable-line react-internal/safe-string-coercion
|
1100
|
+
) + '/' : '') + childKey);
|
1101
1101
|
}
|
1102
1102
|
|
1103
1103
|
array.push(mappedChild);
|
@@ -2219,6 +2219,8 @@
|
|
2219
2219
|
}
|
2220
2220
|
}
|
2221
2221
|
|
2222
|
+
var REACT_CLIENT_REFERENCE$1 = Symbol.for('react.client.reference');
|
2223
|
+
|
2222
2224
|
function setCurrentlyValidatingElement$1(element) {
|
2223
2225
|
{
|
2224
2226
|
if (element) {
|
@@ -2344,11 +2346,11 @@
|
|
2344
2346
|
|
2345
2347
|
|
2346
2348
|
function validateChildKeys(node, parentType) {
|
2347
|
-
if (typeof node !== 'object') {
|
2349
|
+
if (typeof node !== 'object' || !node) {
|
2348
2350
|
return;
|
2349
2351
|
}
|
2350
2352
|
|
2351
|
-
if (isArray(node)) {
|
2353
|
+
if (node.$$typeof === REACT_CLIENT_REFERENCE$1) ; else if (isArray(node)) {
|
2352
2354
|
for (var i = 0; i < node.length; i++) {
|
2353
2355
|
var child = node[i];
|
2354
2356
|
|
@@ -2361,7 +2363,7 @@
|
|
2361
2363
|
if (node._store) {
|
2362
2364
|
node._store.validated = true;
|
2363
2365
|
}
|
2364
|
-
} else
|
2366
|
+
} else {
|
2365
2367
|
var iteratorFn = getIteratorFn(node);
|
2366
2368
|
|
2367
2369
|
if (typeof iteratorFn === 'function') {
|
@@ -2396,6 +2398,10 @@
|
|
2396
2398
|
return;
|
2397
2399
|
}
|
2398
2400
|
|
2401
|
+
if (type.$$typeof === REACT_CLIENT_REFERENCE$1) {
|
2402
|
+
return;
|
2403
|
+
}
|
2404
|
+
|
2399
2405
|
var propTypes;
|
2400
2406
|
|
2401
2407
|
if (typeof type === 'function') {
|
@@ -30,5 +30,5 @@ b.key);if(a.type&&a.type.defaultProps)var k=a.type.defaultProps;for(h in b)da.ca
|
|
30
30
|
W&&(e._currentValue2=b);else if(c)throw Error("ServerContext: "+a+" already defined");return e};c.forwardRef=function(a){return{$$typeof:Ca,render:a}};c.isValidElement=O;c.lazy=function(a){return{$$typeof:Fa,_payload:{_status:-1,_result:a},_init:va}};c.memo=function(a,b){return{$$typeof:Ea,type:a,compare:void 0===b?null:b}};c.startTransition=function(a,b){b=K.transition;K.transition={};try{a()}finally{K.transition=b}};c.unstable_act=function(a){throw Error("act(...) is not supported in production builds of React.");
|
31
31
|
};c.unstable_useCacheRefresh=function(){return e.current.useCacheRefresh()};c.use=function(a){return e.current.use(a)};c.useCallback=function(a,b){return e.current.useCallback(a,b)};c.useContext=function(a){return e.current.useContext(a)};c.useDebugValue=function(a,b){};c.useDeferredValue=function(a){return e.current.useDeferredValue(a)};c.useEffect=function(a,b){return e.current.useEffect(a,b)};c.useId=function(){return e.current.useId()};c.useImperativeHandle=function(a,b,c){return e.current.useImperativeHandle(a,
|
32
32
|
b,c)};c.useInsertionEffect=function(a,b){return e.current.useInsertionEffect(a,b)};c.useLayoutEffect=function(a,b){return e.current.useLayoutEffect(a,b)};c.useMemo=function(a,b){return e.current.useMemo(a,b)};c.useReducer=function(a,b,c){return e.current.useReducer(a,b,c)};c.useRef=function(a){return e.current.useRef(a)};c.useState=function(a){return e.current.useState(a)};c.useSyncExternalStore=function(a,b,c){return e.current.useSyncExternalStore(a,b,c)};c.useTransition=function(){return e.current.useTransition()};
|
33
|
-
c.version="18.3.0-next-
|
33
|
+
c.version="18.3.0-next-855b77c9b-20230202"});
|
34
34
|
})();
|
@@ -30,5 +30,5 @@ b.key);if(a.type&&a.type.defaultProps)var k=a.type.defaultProps;for(h in b)da.ca
|
|
30
30
|
W&&(e._currentValue2=b);else if(c)throw Error("ServerContext: "+a+" already defined");return e};c.forwardRef=function(a){return{$$typeof:Ca,render:a}};c.isValidElement=O;c.lazy=function(a){return{$$typeof:Fa,_payload:{_status:-1,_result:a},_init:va}};c.memo=function(a,b){return{$$typeof:Ea,type:a,compare:void 0===b?null:b}};c.startTransition=function(a,b){b=K.transition;K.transition={};try{a()}finally{K.transition=b}};c.unstable_act=function(a){throw Error("act(...) is not supported in production builds of React.");
|
31
31
|
};c.unstable_useCacheRefresh=function(){return e.current.useCacheRefresh()};c.use=function(a){return e.current.use(a)};c.useCallback=function(a,b){return e.current.useCallback(a,b)};c.useContext=function(a){return e.current.useContext(a)};c.useDebugValue=function(a,b){};c.useDeferredValue=function(a){return e.current.useDeferredValue(a)};c.useEffect=function(a,b){return e.current.useEffect(a,b)};c.useId=function(){return e.current.useId()};c.useImperativeHandle=function(a,b,c){return e.current.useImperativeHandle(a,
|
32
32
|
b,c)};c.useInsertionEffect=function(a,b){return e.current.useInsertionEffect(a,b)};c.useLayoutEffect=function(a,b){return e.current.useLayoutEffect(a,b)};c.useMemo=function(a,b){return e.current.useMemo(a,b)};c.useReducer=function(a,b,c){return e.current.useReducer(a,b,c)};c.useRef=function(a){return e.current.useRef(a)};c.useState=function(a){return e.current.useState(a)};c.useSyncExternalStore=function(a,b,c){return e.current.useSyncExternalStore(a,b,c)};c.useTransition=function(){return e.current.useTransition()};
|
33
|
-
c.version="18.3.0-next-
|
33
|
+
c.version="18.3.0-next-855b77c9b-20230202"});
|
34
34
|
})();
|