react 19.0.0-canary-7a2609eed-20240403 → 19.0.0-canary-e3ebcd54b-20240405
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 +2 -11
- package/cjs/react-jsx-runtime.development.js +2 -11
- package/cjs/react-jsx-runtime.production.js +4 -16
- package/cjs/react-jsx-runtime.production.min.js +1 -2
- package/cjs/react-jsx-runtime.production.min.js.map +1 -1
- package/cjs/react-jsx-runtime.profiling.js +4 -16
- package/cjs/react-jsx-runtime.profiling.min.js +1 -2
- package/cjs/react-jsx-runtime.profiling.min.js.map +1 -1
- package/cjs/react-jsx-runtime.react-server.development.js +2 -11
- package/cjs/react-jsx-runtime.react-server.production.js +4 -16
- package/cjs/react-jsx-runtime.react-server.production.min.js +1 -2
- package/cjs/react-jsx-runtime.react-server.production.min.js.map +1 -1
- package/cjs/react.development.js +8 -57
- package/cjs/react.production.js +12 -21
- package/cjs/react.production.min.js +13 -13
- package/cjs/react.production.min.js.map +1 -1
- package/cjs/react.react-server.development.js +8 -57
- package/cjs/react.react-server.production.js +12 -21
- package/cjs/react.react-server.production.min.js +7 -7
- package/cjs/react.react-server.production.min.js.map +1 -1
- package/package.json +1 -1
- package/umd/react.development.js +8 -57
- package/umd/react.production.min.js +19 -20
- package/umd/react.profiling.min.js +19 -20
@@ -1045,17 +1045,8 @@ function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
|
|
1045
1045
|
for (propName in config) {
|
1046
1046
|
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
|
1047
1047
|
propName !== 'key' && (enableRefAsProp )) {
|
1048
|
-
|
1049
|
-
|
1050
|
-
} // Resolve default props
|
1051
|
-
|
1052
|
-
|
1053
|
-
if (type && type.defaultProps) {
|
1054
|
-
var defaultProps = type.defaultProps;
|
1055
|
-
|
1056
|
-
for (propName in defaultProps) {
|
1057
|
-
if (props[propName] === undefined) {
|
1058
|
-
props[propName] = defaultProps[propName];
|
1048
|
+
{
|
1049
|
+
props[propName] = config[propName];
|
1059
1050
|
}
|
1060
1051
|
}
|
1061
1052
|
}
|
@@ -1069,17 +1069,8 @@ function jsxDEV(type, config, maybeKey, isStaticChildren, source, self) {
|
|
1069
1069
|
for (propName in config) {
|
1070
1070
|
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
|
1071
1071
|
propName !== 'key' && (enableRefAsProp )) {
|
1072
|
-
|
1073
|
-
|
1074
|
-
} // Resolve default props
|
1075
|
-
|
1076
|
-
|
1077
|
-
if (type && type.defaultProps) {
|
1078
|
-
var defaultProps = type.defaultProps;
|
1079
|
-
|
1080
|
-
for (propName in defaultProps) {
|
1081
|
-
if (props[propName] === undefined) {
|
1082
|
-
props[propName] = defaultProps[propName];
|
1072
|
+
{
|
1073
|
+
props[propName] = config[propName];
|
1083
1074
|
}
|
1084
1075
|
}
|
1085
1076
|
}
|
@@ -77,8 +77,7 @@ function ReactElement(type, key, _ref, self, source, owner, props) {
|
|
77
77
|
let element;
|
78
78
|
|
79
79
|
{
|
80
|
-
// In prod, `ref` is a regular property
|
81
|
-
// future release.
|
80
|
+
// In prod, `ref` is a regular property and _owner doesn't exist.
|
82
81
|
element = {
|
83
82
|
// This tag allows us to uniquely identify this as a React Element
|
84
83
|
$$typeof: REACT_ELEMENT_TYPE,
|
@@ -86,9 +85,7 @@ function ReactElement(type, key, _ref, self, source, owner, props) {
|
|
86
85
|
type,
|
87
86
|
key,
|
88
87
|
ref,
|
89
|
-
props
|
90
|
-
// Record the component responsible for creating this element.
|
91
|
-
_owner: owner
|
88
|
+
props
|
92
89
|
};
|
93
90
|
}
|
94
91
|
|
@@ -128,17 +125,8 @@ function jsxProd(type, config, maybeKey) {
|
|
128
125
|
for (propName in config) {
|
129
126
|
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
|
130
127
|
propName !== 'key' && (enableRefAsProp )) {
|
131
|
-
|
132
|
-
|
133
|
-
} // Resolve default props
|
134
|
-
|
135
|
-
|
136
|
-
if (type && type.defaultProps) {
|
137
|
-
const defaultProps = type.defaultProps;
|
138
|
-
|
139
|
-
for (propName in defaultProps) {
|
140
|
-
if (props[propName] === undefined) {
|
141
|
-
props[propName] = defaultProps[propName];
|
128
|
+
{
|
129
|
+
props[propName] = config[propName];
|
142
130
|
}
|
143
131
|
}
|
144
132
|
}
|
@@ -7,7 +7,6 @@
|
|
7
7
|
This source code is licensed under the MIT license found in the
|
8
8
|
LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
'use strict';
|
11
|
-
function n(d,b,g){var c={},e=null;void 0!==g&&(e=""+g);void 0!==b.key&&(e=""+b.key);for(a in b)l.call(b,a)&&"key"!==a&&(c[a]=b[a]);if(d&&d.defaultProps)for(a in b=d.defaultProps,b)void 0===c[a]&&(c[a]=b[a]);var a=c.ref;return{$$typeof:h,type:d,key:e,ref:void 0!==a?a:null,props:c,_owner:m.current}}exports.Fragment=k;exports.jsx=n;exports.jsxs=n;
|
10
|
+
'use strict';require("react");var e=Symbol.for("react.element"),g=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty;function k(l,a,f){var b,c={},d=null;void 0!==f&&(d=""+f);void 0!==a.key&&(d=""+a.key);for(b in a)h.call(a,b)&&"key"!==b&&(c[b]=a[b]);a=c.ref;return{$$typeof:e,type:l,key:d,ref:void 0!==a?a:null,props:c}}exports.Fragment=g;exports.jsx=k;exports.jsxs=k;
|
12
11
|
|
13
12
|
//# sourceMappingURL=react-jsx-runtime.production.min.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"react-jsx-runtime.production.min.js","lineCount":
|
1
|
+
{"version":3,"file":"react-jsx-runtime.production.min.js","lineCount":10,"mappings":"A;;;;;;;;;aAYYA,OAAA,CAAQ,OAAR,CAMZ,KAAMC,EAAqBC,MAAOC,CAAAA,GAAP,CAAW,eAAX,CAA3B,CACMC,EAAsBF,MAAOC,CAAAA,GAAP,CAAW,gBAAX,CAD5B,CAaME,EAAiBC,MAAOC,CAAAA,SAAUF,CAAAA,cAsExCG,SAASA,EAAO,CAACC,CAAD,CAAOC,CAAP,CAAeC,CAAf,CAAyB,CACvC,IAAIC,CAAJ,CAEMC,EAAQ,EAFd,CAGIC,EAAM,IAQOC,KAAAA,EAAjB,GAAIJ,CAAJ,GAEEG,CAFF,CAEQ,EAFR,CAEaH,CAFb,CA5EsBI,KAAAA,EAiFtB,GAAgBL,CAjFFI,CAAAA,GAiFd,GAEEA,CAFF,CAEQ,EAFR,CAEaJ,CAAOI,CAAAA,GAFpB,CAMA,KAAKF,CAAL,GAAiBF,EAAjB,CACML,CAAeW,CAAAA,IAAf,CAAoBN,CAApB,CAA4BE,CAA5B,CAAJ,EACa,KADb,GACAA,CADA,GAGIC,CAAA,CAAMD,CAAN,CAHJ,CAGsBF,CAAA,CAAOE,CAAP,CAHtB,CAvDMK,EAAAA,CA+D6EJ,CA/D7DK,CAAAA,GA+DxB,OArDYC,CAERC,SAAUnB,CAFFkB,CAIRV,KAiDgBA,CArDRU,CAKRL,IAgDsBA,CArDdK,CAMRD,IAbgBH,IAAAA,EAAZG,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORN,MA8CiFA,CArDzEM,CAqB2B,CAwCzCE,OAAQC,CAAAA,QAAR,CAAmBlB,CACnBiB,QAAQE,CAAAA,GAAR,CAAcA,CACdF,QAAQG,CAAAA,IAAR,CAAeA;","sources":["react-jsx-runtime.production.js"],"names":["require","REACT_ELEMENT_TYPE","Symbol","for","REACT_FRAGMENT_TYPE","hasOwnProperty","Object","prototype","jsxProd","type","config","maybeKey","propName","props","key","undefined","call","refProp","ref","element","$$typeof","exports","Fragment","jsx","jsxs"],"ignoreList":[0]}
|
@@ -77,8 +77,7 @@ function ReactElement(type, key, _ref, self, source, owner, props) {
|
|
77
77
|
let element;
|
78
78
|
|
79
79
|
{
|
80
|
-
// In prod, `ref` is a regular property
|
81
|
-
// future release.
|
80
|
+
// In prod, `ref` is a regular property and _owner doesn't exist.
|
82
81
|
element = {
|
83
82
|
// This tag allows us to uniquely identify this as a React Element
|
84
83
|
$$typeof: REACT_ELEMENT_TYPE,
|
@@ -86,9 +85,7 @@ function ReactElement(type, key, _ref, self, source, owner, props) {
|
|
86
85
|
type,
|
87
86
|
key,
|
88
87
|
ref,
|
89
|
-
props
|
90
|
-
// Record the component responsible for creating this element.
|
91
|
-
_owner: owner
|
88
|
+
props
|
92
89
|
};
|
93
90
|
}
|
94
91
|
|
@@ -128,17 +125,8 @@ function jsxProd(type, config, maybeKey) {
|
|
128
125
|
for (propName in config) {
|
129
126
|
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
|
130
127
|
propName !== 'key' && (enableRefAsProp )) {
|
131
|
-
|
132
|
-
|
133
|
-
} // Resolve default props
|
134
|
-
|
135
|
-
|
136
|
-
if (type && type.defaultProps) {
|
137
|
-
const defaultProps = type.defaultProps;
|
138
|
-
|
139
|
-
for (propName in defaultProps) {
|
140
|
-
if (props[propName] === undefined) {
|
141
|
-
props[propName] = defaultProps[propName];
|
128
|
+
{
|
129
|
+
props[propName] = config[propName];
|
142
130
|
}
|
143
131
|
}
|
144
132
|
}
|
@@ -7,7 +7,6 @@
|
|
7
7
|
This source code is licensed under the MIT license found in the
|
8
8
|
LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
'use strict';
|
11
|
-
function n(d,b,g){var c={},e=null;void 0!==g&&(e=""+g);void 0!==b.key&&(e=""+b.key);for(a in b)l.call(b,a)&&"key"!==a&&(c[a]=b[a]);if(d&&d.defaultProps)for(a in b=d.defaultProps,b)void 0===c[a]&&(c[a]=b[a]);var a=c.ref;return{$$typeof:h,type:d,key:e,ref:void 0!==a?a:null,props:c,_owner:m.current}}exports.Fragment=k;exports.jsx=n;exports.jsxs=n;
|
10
|
+
'use strict';require("react");var e=Symbol.for("react.element"),g=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty;function k(l,a,f){var b,c={},d=null;void 0!==f&&(d=""+f);void 0!==a.key&&(d=""+a.key);for(b in a)h.call(a,b)&&"key"!==b&&(c[b]=a[b]);a=c.ref;return{$$typeof:e,type:l,key:d,ref:void 0!==a?a:null,props:c}}exports.Fragment=g;exports.jsx=k;exports.jsxs=k;
|
12
11
|
|
13
12
|
//# sourceMappingURL=react-jsx-runtime.profiling.min.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"react-jsx-runtime.profiling.min.js","lineCount":
|
1
|
+
{"version":3,"file":"react-jsx-runtime.profiling.min.js","lineCount":10,"mappings":"A;;;;;;;;;aAYYA,OAAA,CAAQ,OAAR,CAMZ,KAAMC,EAAqBC,MAAOC,CAAAA,GAAP,CAAW,eAAX,CAA3B,CACMC,EAAsBF,MAAOC,CAAAA,GAAP,CAAW,gBAAX,CAD5B,CAaME,EAAiBC,MAAOC,CAAAA,SAAUF,CAAAA,cAsExCG,SAASA,EAAO,CAACC,CAAD,CAAOC,CAAP,CAAeC,CAAf,CAAyB,CACvC,IAAIC,CAAJ,CAEMC,EAAQ,EAFd,CAGIC,EAAM,IAQOC,KAAAA,EAAjB,GAAIJ,CAAJ,GAEEG,CAFF,CAEQ,EAFR,CAEaH,CAFb,CA5EsBI,KAAAA,EAiFtB,GAAgBL,CAjFFI,CAAAA,GAiFd,GAEEA,CAFF,CAEQ,EAFR,CAEaJ,CAAOI,CAAAA,GAFpB,CAMA,KAAKF,CAAL,GAAiBF,EAAjB,CACML,CAAeW,CAAAA,IAAf,CAAoBN,CAApB,CAA4BE,CAA5B,CAAJ,EACa,KADb,GACAA,CADA,GAGIC,CAAA,CAAMD,CAAN,CAHJ,CAGsBF,CAAA,CAAOE,CAAP,CAHtB,CAvDMK,EAAAA,CA+D6EJ,CA/D7DK,CAAAA,GA+DxB,OArDYC,CAERC,SAAUnB,CAFFkB,CAIRV,KAiDgBA,CArDRU,CAKRL,IAgDsBA,CArDdK,CAMRD,IAbgBH,IAAAA,EAAZG,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORN,MA8CiFA,CArDzEM,CAqB2B,CAwCzCE,OAAQC,CAAAA,QAAR,CAAmBlB,CACnBiB,QAAQE,CAAAA,GAAR,CAAcA,CACdF,QAAQG,CAAAA,IAAR,CAAeA;","sources":["react-jsx-runtime.profiling.js"],"names":["require","REACT_ELEMENT_TYPE","Symbol","for","REACT_FRAGMENT_TYPE","hasOwnProperty","Object","prototype","jsxProd","type","config","maybeKey","propName","props","key","undefined","call","refProp","ref","element","$$typeof","exports","Fragment","jsx","jsxs"],"ignoreList":[0]}
|
@@ -1069,17 +1069,8 @@ function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
|
|
1069
1069
|
for (propName in config) {
|
1070
1070
|
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
|
1071
1071
|
propName !== 'key' && (enableRefAsProp )) {
|
1072
|
-
|
1073
|
-
|
1074
|
-
} // Resolve default props
|
1075
|
-
|
1076
|
-
|
1077
|
-
if (type && type.defaultProps) {
|
1078
|
-
var defaultProps = type.defaultProps;
|
1079
|
-
|
1080
|
-
for (propName in defaultProps) {
|
1081
|
-
if (props[propName] === undefined) {
|
1082
|
-
props[propName] = defaultProps[propName];
|
1072
|
+
{
|
1073
|
+
props[propName] = config[propName];
|
1083
1074
|
}
|
1084
1075
|
}
|
1085
1076
|
}
|
@@ -77,8 +77,7 @@ function ReactElement(type, key, _ref, self, source, owner, props) {
|
|
77
77
|
let element;
|
78
78
|
|
79
79
|
{
|
80
|
-
// In prod, `ref` is a regular property
|
81
|
-
// future release.
|
80
|
+
// In prod, `ref` is a regular property and _owner doesn't exist.
|
82
81
|
element = {
|
83
82
|
// This tag allows us to uniquely identify this as a React Element
|
84
83
|
$$typeof: REACT_ELEMENT_TYPE,
|
@@ -86,9 +85,7 @@ function ReactElement(type, key, _ref, self, source, owner, props) {
|
|
86
85
|
type,
|
87
86
|
key,
|
88
87
|
ref,
|
89
|
-
props
|
90
|
-
// Record the component responsible for creating this element.
|
91
|
-
_owner: owner
|
88
|
+
props
|
92
89
|
};
|
93
90
|
}
|
94
91
|
|
@@ -128,17 +125,8 @@ function jsxProd(type, config, maybeKey) {
|
|
128
125
|
for (propName in config) {
|
129
126
|
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
|
130
127
|
propName !== 'key' && (enableRefAsProp )) {
|
131
|
-
|
132
|
-
|
133
|
-
} // Resolve default props
|
134
|
-
|
135
|
-
|
136
|
-
if (type && type.defaultProps) {
|
137
|
-
const defaultProps = type.defaultProps;
|
138
|
-
|
139
|
-
for (propName in defaultProps) {
|
140
|
-
if (props[propName] === undefined) {
|
141
|
-
props[propName] = defaultProps[propName];
|
128
|
+
{
|
129
|
+
props[propName] = config[propName];
|
142
130
|
}
|
143
131
|
}
|
144
132
|
}
|
@@ -7,7 +7,6 @@
|
|
7
7
|
This source code is licensed under the MIT license found in the
|
8
8
|
LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
'use strict';
|
11
|
-
function n(d,b,g){var c={},e=null;void 0!==g&&(e=""+g);void 0!==b.key&&(e=""+b.key);for(a in b)l.call(b,a)&&"key"!==a&&(c[a]=b[a]);if(d&&d.defaultProps)for(a in b=d.defaultProps,b)void 0===c[a]&&(c[a]=b[a]);var a=c.ref;return{$$typeof:h,type:d,key:e,ref:void 0!==a?a:null,props:c,_owner:m.current}}exports.Fragment=k;exports.jsx=n;exports.jsxDEV=void 0;exports.jsxs=n;
|
10
|
+
'use strict';require("react");var e=Symbol.for("react.element"),g=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty;function k(l,a,f){var b,c={},d=null;void 0!==f&&(d=""+f);void 0!==a.key&&(d=""+a.key);for(b in a)h.call(a,b)&&"key"!==b&&(c[b]=a[b]);a=c.ref;return{$$typeof:e,type:l,key:d,ref:void 0!==a?a:null,props:c}}exports.Fragment=g;exports.jsx=k;exports.jsxDEV=void 0;exports.jsxs=k;
|
12
11
|
|
13
12
|
//# sourceMappingURL=react-jsx-runtime.react-server.production.min.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"react-jsx-runtime.react-server.production.min.js","lineCount":
|
1
|
+
{"version":3,"file":"react-jsx-runtime.react-server.production.min.js","lineCount":10,"mappings":"A;;;;;;;;;aAYYA,OAAA,CAAQ,OAAR,CAMZ,KAAMC,EAAqBC,MAAOC,CAAAA,GAAP,CAAW,eAAX,CAA3B,CACMC,EAAsBF,MAAOC,CAAAA,GAAP,CAAW,gBAAX,CAD5B,CAaME,EAAiBC,MAAOC,CAAAA,SAAUF,CAAAA,cAsExCG,SAASA,EAAO,CAACC,CAAD,CAAOC,CAAP,CAAeC,CAAf,CAAyB,CACvC,IAAIC,CAAJ,CAEMC,EAAQ,EAFd,CAGIC,EAAM,IAQOC,KAAAA,EAAjB,GAAIJ,CAAJ,GAEEG,CAFF,CAEQ,EAFR,CAEaH,CAFb,CA5EsBI,KAAAA,EAiFtB,GAAgBL,CAjFFI,CAAAA,GAiFd,GAEEA,CAFF,CAEQ,EAFR,CAEaJ,CAAOI,CAAAA,GAFpB,CAMA,KAAKF,CAAL,GAAiBF,EAAjB,CACML,CAAeW,CAAAA,IAAf,CAAoBN,CAApB,CAA4BE,CAA5B,CAAJ,EACa,KADb,GACAA,CADA,GAGIC,CAAA,CAAMD,CAAN,CAHJ,CAGsBF,CAAA,CAAOE,CAAP,CAHtB,CAvDMK,EAAAA,CA+D6EJ,CA/D7DK,CAAAA,GA+DxB,OArDYC,CAERC,SAAUnB,CAFFkB,CAIRV,KAiDgBA,CArDRU,CAKRL,IAgDsBA,CArDdK,CAMRD,IAbgBH,IAAAA,EAAZG,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORN,MA8CiFA,CArDzEM,CAqB2B,CAyCzCE,OAAQC,CAAAA,QAAR,CAAmBlB,CACnBiB,QAAQE,CAAAA,GAAR,CAAcA,CACdF,QAAQG,CAAAA,MAAR,CAJeT,IAAAA,EAKfM,QAAQI,CAAAA,IAAR,CAAeA;","sources":["react-jsx-runtime.react-server.production.js"],"names":["require","REACT_ELEMENT_TYPE","Symbol","for","REACT_FRAGMENT_TYPE","hasOwnProperty","Object","prototype","jsxProd","type","config","maybeKey","propName","props","key","undefined","call","refProp","ref","element","$$typeof","exports","Fragment","jsx","jsxDEV","jsxs"],"ignoreList":[0]}
|
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 = '19.0.0-canary-
|
26
|
+
var ReactVersion = '19.0.0-canary-e3ebcd54b-20240405';
|
27
27
|
|
28
28
|
// ATTENTION
|
29
29
|
// When adding new symbols to this file,
|
@@ -1346,7 +1346,9 @@ function createElement(type, config, children) {
|
|
1346
1346
|
// We don't have to do this in the jsx() runtime because the jsx()
|
1347
1347
|
// transform never passed these as props; it used separate arguments.
|
1348
1348
|
propName !== '__self' && propName !== '__source') {
|
1349
|
-
|
1349
|
+
{
|
1350
|
+
props[propName] = config[propName];
|
1351
|
+
}
|
1350
1352
|
}
|
1351
1353
|
}
|
1352
1354
|
} // Children can be more than one argument, and those are transferred onto
|
@@ -1440,13 +1442,6 @@ function cloneElement(element, config, children) {
|
|
1440
1442
|
key = '' + config.key;
|
1441
1443
|
} // Remaining properties override existing props
|
1442
1444
|
|
1443
|
-
|
1444
|
-
var defaultProps;
|
1445
|
-
|
1446
|
-
if (element.type && element.type.defaultProps) {
|
1447
|
-
defaultProps = element.type.defaultProps;
|
1448
|
-
}
|
1449
|
-
|
1450
1445
|
for (propName in config) {
|
1451
1446
|
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
|
1452
1447
|
propName !== 'key' && (enableRefAsProp ) && // ...and maybe these, too, though we currently rely on them for
|
@@ -1459,11 +1454,10 @@ function cloneElement(element, config, children) {
|
|
1459
1454
|
// if the property were missing. This is mostly for
|
1460
1455
|
// backwards compatibility.
|
1461
1456
|
!(propName === 'ref' && config.ref === undefined)) {
|
1462
|
-
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
props[propName] = config[propName];
|
1457
|
+
{
|
1458
|
+
{
|
1459
|
+
props[propName] = config[propName];
|
1460
|
+
}
|
1467
1461
|
}
|
1468
1462
|
}
|
1469
1463
|
}
|
@@ -2132,49 +2126,6 @@ function lazy(ctor) {
|
|
2132
2126
|
_init: lazyInitializer
|
2133
2127
|
};
|
2134
2128
|
|
2135
|
-
{
|
2136
|
-
// In production, this would just set it on the object.
|
2137
|
-
var defaultProps;
|
2138
|
-
var propTypes; // $FlowFixMe[prop-missing]
|
2139
|
-
|
2140
|
-
Object.defineProperties(lazyType, {
|
2141
|
-
defaultProps: {
|
2142
|
-
configurable: true,
|
2143
|
-
get: function () {
|
2144
|
-
return defaultProps;
|
2145
|
-
},
|
2146
|
-
// $FlowFixMe[missing-local-annot]
|
2147
|
-
set: function (newDefaultProps) {
|
2148
|
-
error('It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
|
2149
|
-
|
2150
|
-
defaultProps = newDefaultProps; // Match production behavior more closely:
|
2151
|
-
// $FlowFixMe[prop-missing]
|
2152
|
-
|
2153
|
-
Object.defineProperty(lazyType, 'defaultProps', {
|
2154
|
-
enumerable: true
|
2155
|
-
});
|
2156
|
-
}
|
2157
|
-
},
|
2158
|
-
propTypes: {
|
2159
|
-
configurable: true,
|
2160
|
-
get: function () {
|
2161
|
-
return propTypes;
|
2162
|
-
},
|
2163
|
-
// $FlowFixMe[missing-local-annot]
|
2164
|
-
set: function (newPropTypes) {
|
2165
|
-
error('It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
|
2166
|
-
|
2167
|
-
propTypes = newPropTypes; // Match production behavior more closely:
|
2168
|
-
// $FlowFixMe[prop-missing]
|
2169
|
-
|
2170
|
-
Object.defineProperty(lazyType, 'propTypes', {
|
2171
|
-
enumerable: true
|
2172
|
-
});
|
2173
|
-
}
|
2174
|
-
}
|
2175
|
-
});
|
2176
|
-
}
|
2177
|
-
|
2178
2129
|
return lazyType;
|
2179
2130
|
}
|
2180
2131
|
|
package/cjs/react.production.js
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
'use strict';
|
12
12
|
|
13
|
-
var ReactVersion = '19.0.0-canary-
|
13
|
+
var ReactVersion = '19.0.0-canary-e3ebcd54b-20240405';
|
14
14
|
|
15
15
|
// ATTENTION
|
16
16
|
// When adding new symbols to this file,
|
@@ -323,8 +323,7 @@ function ReactElement(type, key, _ref, self, source, owner, props) {
|
|
323
323
|
let element;
|
324
324
|
|
325
325
|
{
|
326
|
-
// In prod, `ref` is a regular property
|
327
|
-
// future release.
|
326
|
+
// In prod, `ref` is a regular property and _owner doesn't exist.
|
328
327
|
element = {
|
329
328
|
// This tag allows us to uniquely identify this as a React Element
|
330
329
|
$$typeof: REACT_ELEMENT_TYPE,
|
@@ -332,9 +331,7 @@ function ReactElement(type, key, _ref, self, source, owner, props) {
|
|
332
331
|
type,
|
333
332
|
key,
|
334
333
|
ref,
|
335
|
-
props
|
336
|
-
// Record the component responsible for creating this element.
|
337
|
-
_owner: owner
|
334
|
+
props
|
338
335
|
};
|
339
336
|
}
|
340
337
|
|
@@ -368,7 +365,9 @@ function createElement(type, config, children) {
|
|
368
365
|
// We don't have to do this in the jsx() runtime because the jsx()
|
369
366
|
// transform never passed these as props; it used separate arguments.
|
370
367
|
propName !== '__self' && propName !== '__source') {
|
371
|
-
|
368
|
+
{
|
369
|
+
props[propName] = config[propName];
|
370
|
+
}
|
372
371
|
}
|
373
372
|
}
|
374
373
|
} // Children can be more than one argument, and those are transferred onto
|
@@ -407,7 +406,7 @@ function createElement(type, config, children) {
|
|
407
406
|
function cloneAndReplaceKey(oldElement, newKey) {
|
408
407
|
return ReactElement(oldElement.type, newKey, // When enableRefAsProp is on, this argument is ignored. This check only
|
409
408
|
// exists to avoid the `ref` access warning.
|
410
|
-
null , undefined, undefined,
|
409
|
+
null , undefined, undefined, undefined , oldElement.props);
|
411
410
|
}
|
412
411
|
/**
|
413
412
|
* Clone and return a new ReactElement using element as the starting point.
|
@@ -426,7 +425,7 @@ function cloneElement(element, config, children) {
|
|
426
425
|
let key = element.key;
|
427
426
|
let ref = null ; // Owner will be preserved, unless ref is overridden
|
428
427
|
|
429
|
-
let owner =
|
428
|
+
let owner = undefined ;
|
430
429
|
|
431
430
|
if (config != null) {
|
432
431
|
if (hasValidRef(config)) {
|
@@ -439,13 +438,6 @@ function cloneElement(element, config, children) {
|
|
439
438
|
key = '' + config.key;
|
440
439
|
} // Remaining properties override existing props
|
441
440
|
|
442
|
-
|
443
|
-
let defaultProps;
|
444
|
-
|
445
|
-
if (element.type && element.type.defaultProps) {
|
446
|
-
defaultProps = element.type.defaultProps;
|
447
|
-
}
|
448
|
-
|
449
441
|
for (propName in config) {
|
450
442
|
if (hasOwnProperty.call(config, propName) && // Skip over reserved prop names
|
451
443
|
propName !== 'key' && (enableRefAsProp ) && // ...and maybe these, too, though we currently rely on them for
|
@@ -458,11 +450,10 @@ function cloneElement(element, config, children) {
|
|
458
450
|
// if the property were missing. This is mostly for
|
459
451
|
// backwards compatibility.
|
460
452
|
!(propName === 'ref' && config.ref === undefined)) {
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
props[propName] = config[propName];
|
453
|
+
{
|
454
|
+
{
|
455
|
+
props[propName] = config[propName];
|
456
|
+
}
|
466
457
|
}
|
467
458
|
}
|
468
459
|
}
|
@@ -7,27 +7,27 @@
|
|
7
7
|
This source code is licensed under the MIT license found in the
|
8
8
|
LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
'use strict';var
|
10
|
+
'use strict';var h=Symbol.for("react.element"),m=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),t=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),w=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.iterator;function z(a){if(null===a||"object"!==typeof a)return null;a=y&&a[y]||a["@@iterator"];return"function"===typeof a?a:null}
|
11
11
|
var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,C={};function D(a,b,c){this.props=a;this.context=b;this.refs=C;this.updater=c||A}D.prototype.isReactComponent={};
|
12
12
|
D.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("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")};D.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function E(){}E.prototype=D.prototype;function F(a,b,c){this.props=a;this.context=b;this.refs=C;this.updater=c||A}var G=F.prototype=new E;
|
13
|
-
G.constructor=F;B(G,D.prototype);G.isPureReactComponent=!0;var H=Array.isArray,I={current:null},J={current:null},K={transition:null},L={ReactCurrentDispatcher:I,ReactCurrentCache:J,ReactCurrentBatchConfig:K,ReactCurrentOwner:{current:null}},M=Object.prototype.hasOwnProperty,N=L.ReactCurrentOwner;function O(a,b,c,
|
14
|
-
function Q(a){return"object"===typeof a&&null!==a&&a.$$typeof===
|
13
|
+
G.constructor=F;B(G,D.prototype);G.isPureReactComponent=!0;var H=Array.isArray,I={current:null},J={current:null},K={transition:null},L={ReactCurrentDispatcher:I,ReactCurrentCache:J,ReactCurrentBatchConfig:K,ReactCurrentOwner:{current:null}},M=Object.prototype.hasOwnProperty,N=L.ReactCurrentOwner;function O(a,b,c,f,d,g,e){c=e.ref;return{$$typeof:h,type:a,key:b,ref:void 0!==c?c:null,props:e}}function P(a,b){return O(a.type,b,null,void 0,void 0,void 0,a.props)}
|
14
|
+
function Q(a){return"object"===typeof a&&null!==a&&a.$$typeof===h}function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(c){return b[c]})}var R=/\/+/g;function S(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}function T(){}
|
15
15
|
function U(a){switch(a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;default:switch("string"===typeof a.status?a.then(T,T):(a.status="pending",a.then(function(b){"pending"===a.status&&(a.status="fulfilled",a.value=b)},function(b){"pending"===a.status&&(a.status="rejected",a.reason=b)})),a.status){case "fulfilled":return a.value;case "rejected":throw a.reason;}}throw a;}
|
16
|
-
function V(a,b,c,
|
17
|
-
1;
|
18
|
-
}return
|
16
|
+
function V(a,b,c,f,d){var g=typeof a;if("undefined"===g||"boolean"===g)a=null;var e=!1;if(null===a)e=!0;else switch(g){case "bigint":case "string":case "number":e=!0;break;case "object":switch(a.$$typeof){case h:case m:e=!0;break;case x:return e=a._init,V(e(a._payload),b,c,f,d)}}if(e)return d=d(a),e=""===f?"."+S(a,0):f,H(d)?(c="",null!=e&&(c=e.replace(R,"$&/")+"/"),V(d,b,c,"",function(Z){return Z})):null!=d&&(Q(d)&&(d=P(d,c+(!d.key||a&&a.key===d.key?"":(""+d.key).replace(R,"$&/")+"/")+e)),b.push(d)),
|
17
|
+
1;e=0;var l=""===f?".":f+":";if(H(a))for(var k=0;k<a.length;k++)f=a[k],g=l+S(f,k),e+=V(f,b,c,g,d);else if(k=z(a),"function"===typeof k)for(a=k.call(a),k=0;!(f=a.next()).done;)f=f.value,g=l+S(f,k++),e+=V(f,b,c,g,d);else if("object"===g){if("function"===typeof a.then)return V(U(a),b,c,f,d);b=String(a);throw 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.");
|
18
|
+
}return e}function W(a,b,c){if(null==a)return a;var f=[],d=0;V(a,f,"","",function(g){return b.call(c,g,d++)});return f}function aa(a){if(-1===a._status){var b=a._result;b=b();b.then(function(c){if(0===a._status||-1===a._status)a._status=1,a._result=c},function(c){if(0===a._status||-1===a._status)a._status=2,a._result=c});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}function ba(){return new WeakMap}
|
19
19
|
function X(){return{s:0,v:void 0,o:null,p:null}}var Y="function"===typeof reportError?reportError:function(a){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof a&&null!==a&&"string"===typeof a.message?String(a.message):String(a),error:a});if(!window.dispatchEvent(b))return}else if("object"===typeof process&&"function"===typeof process.emit){process.emit("uncaughtException",a);return}console.error(a)};
|
20
20
|
function ca(){}exports.Children={map:W,forEach:function(a,b,c){W(a,function(){b.apply(this,arguments)},c)},count:function(a){var b=0;W(a,function(){b++});return b},toArray:function(a){return W(a,function(b){return b})||[]},only:function(a){if(!Q(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};exports.Component=D;exports.Fragment=n;exports.Profiler=q;exports.PureComponent=F;exports.StrictMode=p;exports.Suspense=v;
|
21
21
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L;exports.act=function(){throw Error("act(...) is not supported in production builds of React.");};
|
22
|
-
exports.cache=function(a){return function(){var b=J.current;if(!b)return a.apply(null,arguments);var c=b.getCacheForType(ba);b=c.get(a);void 0===b&&(b=X(),c.set(a,b));c=0;for(var
|
23
|
-
arguments);c=b;c.s=1;return c.v=
|
24
|
-
exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+a+".");var
|
25
|
-
|
26
|
-
exports.createElement=function(a,b,c){var
|
22
|
+
exports.cache=function(a){return function(){var b=J.current;if(!b)return a.apply(null,arguments);var c=b.getCacheForType(ba);b=c.get(a);void 0===b&&(b=X(),c.set(a,b));c=0;for(var f=arguments.length;c<f;c++){var d=arguments[c];if("function"===typeof d||"object"===typeof d&&null!==d){var g=b.o;null===g&&(b.o=g=new WeakMap);b=g.get(d);void 0===b&&(b=X(),g.set(d,b))}else g=b.p,null===g&&(b.p=g=new Map),b=g.get(d),void 0===b&&(b=X(),g.set(d,b))}if(1===b.s)return b.v;if(2===b.s)throw b.v;try{var e=a.apply(null,
|
23
|
+
arguments);c=b;c.s=1;return c.v=e}catch(l){throw e=b,e.s=2,e.v=l,l;}}};
|
24
|
+
exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error("The argument must be a React element, but you passed "+a+".");var f=B({},a.props),d=a.key,g=void 0;if(null!=b)for(e in void 0!==b.ref&&(g=N.current),void 0!==b.key&&(d=""+b.key),b)!M.call(b,e)||"key"===e||"__self"===e||"__source"===e||"ref"===e&&void 0===b.ref||(f[e]=b[e]);var e=arguments.length-2;if(1===e)f.children=c;else if(1<e){for(var l=Array(e),k=0;k<e;k++)l[k]=arguments[k+2];f.children=l}return O(a.type,d,null,void 0,
|
25
|
+
void 0,g,f)};exports.createContext=function(a){a={$$typeof:t,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider=a;a.Consumer={$$typeof:r,_context:a};return a};
|
26
|
+
exports.createElement=function(a,b,c){var f,d={},g=null;if(null!=b)for(f in void 0!==b.key&&(g=""+b.key),b)M.call(b,f)&&"key"!==f&&"__self"!==f&&"__source"!==f&&(d[f]=b[f]);var e=arguments.length-2;if(1===e)d.children=c;else if(1<e){for(var l=Array(e),k=0;k<e;k++)l[k]=arguments[k+2];d.children=l}if(a&&a.defaultProps)for(f in e=a.defaultProps,e)void 0===d[f]&&(d[f]=e[f]);return O(a,g,null,void 0,void 0,N.current,d)};exports.createRef=function(){return{current:null}};
|
27
27
|
exports.forwardRef=function(a){return{$$typeof:u,render:a}};exports.isValidElement=Q;exports.lazy=function(a){return{$$typeof:x,_payload:{_status:-1,_result:a},_init:aa}};exports.memo=function(a,b){return{$$typeof:w,type:a,compare:void 0===b?null:b}};
|
28
|
-
exports.startTransition=function(a){var b=K.transition,c=new Set;K.transition={_callbacks:c};var
|
28
|
+
exports.startTransition=function(a){var b=K.transition,c=new Set;K.transition={_callbacks:c};var f=K.transition;try{var d=a();"object"===typeof d&&null!==d&&"function"===typeof d.then&&(c.forEach(function(g){return g(f,d)}),d.then(ca,Y))}catch(g){Y(g)}finally{K.transition=b}};exports.unstable_useCacheRefresh=function(){return I.current.useCacheRefresh()};exports.use=function(a){return I.current.use(a)};exports.useActionState=function(a,b,c){return I.current.useActionState(a,b,c)};
|
29
29
|
exports.useCallback=function(a,b){return I.current.useCallback(a,b)};exports.useContext=function(a){return I.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a,b){return I.current.useDeferredValue(a,b)};exports.useEffect=function(a,b){return I.current.useEffect(a,b)};exports.useId=function(){return I.current.useId()};exports.useImperativeHandle=function(a,b,c){return I.current.useImperativeHandle(a,b,c)};
|
30
30
|
exports.useInsertionEffect=function(a,b){return I.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return I.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return I.current.useMemo(a,b)};exports.useOptimistic=function(a,b){return I.current.useOptimistic(a,b)};exports.useReducer=function(a,b,c){return I.current.useReducer(a,b,c)};exports.useRef=function(a){return I.current.useRef(a)};exports.useState=function(a){return I.current.useState(a)};
|
31
|
-
exports.useSyncExternalStore=function(a,b,c){return I.current.useSyncExternalStore(a,b,c)};exports.useTransition=function(){return I.current.useTransition()};exports.version="19.0.0-canary-
|
31
|
+
exports.useSyncExternalStore=function(a,b,c){return I.current.useSyncExternalStore(a,b,c)};exports.useTransition=function(){return I.current.useTransition()};exports.version="19.0.0-canary-e3ebcd54b-20240405";
|
32
32
|
|
33
33
|
//# sourceMappingURL=react.production.min.js.map
|