react 19.0.0-canary-4c12339ce-20240408 → 19.0.0-canary-adb717393-20240411
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 +12 -16
- package/cjs/react-jsx-runtime.development.js +12 -16
- package/cjs/react-jsx-runtime.production.js +2 -4
- package/cjs/react-jsx-runtime.production.min.js.map +1 -1
- package/cjs/react-jsx-runtime.profiling.js +2 -4
- package/cjs/react-jsx-runtime.profiling.min.js.map +1 -1
- package/cjs/react-jsx-runtime.react-server.development.js +17 -16
- package/cjs/react-jsx-runtime.react-server.production.js +6 -3
- package/cjs/react-jsx-runtime.react-server.production.min.js +2 -1
- package/cjs/react-jsx-runtime.react-server.production.min.js.map +1 -1
- package/cjs/react.development.js +102 -141
- package/cjs/react.production.js +13 -53
- package/cjs/react.production.min.js +17 -18
- package/cjs/react.production.min.js.map +1 -1
- package/cjs/react.react-server.development.js +67 -101
- package/cjs/react.react-server.production.js +14 -58
- package/cjs/react.react-server.production.min.js +17 -18
- package/cjs/react.react-server.production.min.js.map +1 -1
- package/package.json +1 -1
- package/umd/react.development.js +142 -150
- package/umd/react.production.min.js +23 -24
- package/umd/react.profiling.min.js +23 -24
@@ -51,7 +51,7 @@ function getIteratorFn(maybeIterable) {
|
|
51
51
|
return null;
|
52
52
|
}
|
53
53
|
|
54
|
-
var ReactSharedInternals = React.
|
54
|
+
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
55
55
|
|
56
56
|
function error(format) {
|
57
57
|
{
|
@@ -69,8 +69,7 @@ function printWarning(level, format, args) {
|
|
69
69
|
// When changing this logic, you might want to also
|
70
70
|
// update consoleWithStackDev.www.js as well.
|
71
71
|
{
|
72
|
-
var
|
73
|
-
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
72
|
+
var stack = ReactSharedInternals.getStackAddendum();
|
74
73
|
|
75
74
|
if (stack !== '') {
|
76
75
|
format += '%s';
|
@@ -419,7 +418,6 @@ function reenableLogs() {
|
|
419
418
|
}
|
420
419
|
}
|
421
420
|
|
422
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
423
421
|
var prefix;
|
424
422
|
function describeBuiltInComponentFrame(name) {
|
425
423
|
{
|
@@ -475,13 +473,13 @@ function describeNativeComponentFrame(fn, construct) {
|
|
475
473
|
var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe[incompatible-type] It does accept undefined.
|
476
474
|
|
477
475
|
Error.prepareStackTrace = undefined;
|
478
|
-
var previousDispatcher;
|
476
|
+
var previousDispatcher = null;
|
479
477
|
|
480
478
|
{
|
481
|
-
previousDispatcher =
|
479
|
+
previousDispatcher = ReactSharedInternals.H; // Set the dispatcher in DEV because this might be call in the render function
|
482
480
|
// for warnings.
|
483
481
|
|
484
|
-
|
482
|
+
ReactSharedInternals.H = null;
|
485
483
|
disableLogs();
|
486
484
|
}
|
487
485
|
/**
|
@@ -666,7 +664,7 @@ function describeNativeComponentFrame(fn, construct) {
|
|
666
664
|
reentry = false;
|
667
665
|
|
668
666
|
{
|
669
|
-
|
667
|
+
ReactSharedInternals.H = previousDispatcher;
|
670
668
|
reenableLogs();
|
671
669
|
}
|
672
670
|
|
@@ -746,8 +744,6 @@ function describeUnknownElementTypeFrameInDEV(type) {
|
|
746
744
|
return '';
|
747
745
|
}
|
748
746
|
|
749
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
750
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
751
747
|
var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference');
|
752
748
|
var specialPropKeyWarningShown;
|
753
749
|
var didWarnAboutElementRef;
|
@@ -1075,7 +1071,7 @@ function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
|
|
1075
1071
|
}
|
1076
1072
|
}
|
1077
1073
|
|
1078
|
-
var element = ReactElement(type, key, ref, self, source,
|
1074
|
+
var element = ReactElement(type, key, ref, self, source, ReactSharedInternals.owner, props);
|
1079
1075
|
|
1080
1076
|
if (type === REACT_FRAGMENT_TYPE) {
|
1081
1077
|
validateFragmentProps(element);
|
@@ -1087,8 +1083,8 @@ function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
|
|
1087
1083
|
|
1088
1084
|
function getDeclarationErrorAddendum() {
|
1089
1085
|
{
|
1090
|
-
if (
|
1091
|
-
var name = getComponentNameFromType(
|
1086
|
+
if (ReactSharedInternals.owner) {
|
1087
|
+
var name = getComponentNameFromType(ReactSharedInternals.owner.type);
|
1092
1088
|
|
1093
1089
|
if (name) {
|
1094
1090
|
return '\n\nCheck the render method of `' + name + '`.';
|
@@ -1192,7 +1188,7 @@ function validateExplicitKey(element, parentType) {
|
|
1192
1188
|
|
1193
1189
|
var childOwner = '';
|
1194
1190
|
|
1195
|
-
if (element && element._owner != null && element._owner !==
|
1191
|
+
if (element && element._owner != null && element._owner !== ReactSharedInternals.owner) {
|
1196
1192
|
var ownerName = null;
|
1197
1193
|
|
1198
1194
|
if (typeof element._owner.tag === 'number') {
|
@@ -1217,9 +1213,9 @@ function setCurrentlyValidatingElement(element) {
|
|
1217
1213
|
{
|
1218
1214
|
if (element) {
|
1219
1215
|
var stack = describeUnknownElementTypeFrameInDEV(element.type);
|
1220
|
-
|
1216
|
+
ReactSharedInternals.setExtraStackFrame(stack);
|
1221
1217
|
} else {
|
1222
|
-
|
1218
|
+
ReactSharedInternals.setExtraStackFrame(null);
|
1223
1219
|
}
|
1224
1220
|
}
|
1225
1221
|
}
|
@@ -51,7 +51,7 @@ function getIteratorFn(maybeIterable) {
|
|
51
51
|
return null;
|
52
52
|
}
|
53
53
|
|
54
|
-
var ReactSharedInternals = React.
|
54
|
+
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
55
55
|
|
56
56
|
function error(format) {
|
57
57
|
{
|
@@ -69,8 +69,7 @@ function printWarning(level, format, args) {
|
|
69
69
|
// When changing this logic, you might want to also
|
70
70
|
// update consoleWithStackDev.www.js as well.
|
71
71
|
{
|
72
|
-
var
|
73
|
-
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
72
|
+
var stack = ReactSharedInternals.getStackAddendum();
|
74
73
|
|
75
74
|
if (stack !== '') {
|
76
75
|
format += '%s';
|
@@ -419,7 +418,6 @@ function reenableLogs() {
|
|
419
418
|
}
|
420
419
|
}
|
421
420
|
|
422
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
423
421
|
var prefix;
|
424
422
|
function describeBuiltInComponentFrame(name) {
|
425
423
|
{
|
@@ -475,13 +473,13 @@ function describeNativeComponentFrame(fn, construct) {
|
|
475
473
|
var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe[incompatible-type] It does accept undefined.
|
476
474
|
|
477
475
|
Error.prepareStackTrace = undefined;
|
478
|
-
var previousDispatcher;
|
476
|
+
var previousDispatcher = null;
|
479
477
|
|
480
478
|
{
|
481
|
-
previousDispatcher =
|
479
|
+
previousDispatcher = ReactSharedInternals.H; // Set the dispatcher in DEV because this might be call in the render function
|
482
480
|
// for warnings.
|
483
481
|
|
484
|
-
|
482
|
+
ReactSharedInternals.H = null;
|
485
483
|
disableLogs();
|
486
484
|
}
|
487
485
|
/**
|
@@ -666,7 +664,7 @@ function describeNativeComponentFrame(fn, construct) {
|
|
666
664
|
reentry = false;
|
667
665
|
|
668
666
|
{
|
669
|
-
|
667
|
+
ReactSharedInternals.H = previousDispatcher;
|
670
668
|
reenableLogs();
|
671
669
|
}
|
672
670
|
|
@@ -746,8 +744,6 @@ function describeUnknownElementTypeFrameInDEV(type) {
|
|
746
744
|
return '';
|
747
745
|
}
|
748
746
|
|
749
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
750
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
751
747
|
var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference');
|
752
748
|
var specialPropKeyWarningShown;
|
753
749
|
var didWarnAboutElementRef;
|
@@ -1099,7 +1095,7 @@ function jsxDEV(type, config, maybeKey, isStaticChildren, source, self) {
|
|
1099
1095
|
}
|
1100
1096
|
}
|
1101
1097
|
|
1102
|
-
var element = ReactElement(type, key, ref, self, source,
|
1098
|
+
var element = ReactElement(type, key, ref, self, source, ReactSharedInternals.owner, props);
|
1103
1099
|
|
1104
1100
|
if (type === REACT_FRAGMENT_TYPE) {
|
1105
1101
|
validateFragmentProps(element);
|
@@ -1111,8 +1107,8 @@ function jsxDEV(type, config, maybeKey, isStaticChildren, source, self) {
|
|
1111
1107
|
|
1112
1108
|
function getDeclarationErrorAddendum() {
|
1113
1109
|
{
|
1114
|
-
if (
|
1115
|
-
var name = getComponentNameFromType(
|
1110
|
+
if (ReactSharedInternals.owner) {
|
1111
|
+
var name = getComponentNameFromType(ReactSharedInternals.owner.type);
|
1116
1112
|
|
1117
1113
|
if (name) {
|
1118
1114
|
return '\n\nCheck the render method of `' + name + '`.';
|
@@ -1216,7 +1212,7 @@ function validateExplicitKey(element, parentType) {
|
|
1216
1212
|
|
1217
1213
|
var childOwner = '';
|
1218
1214
|
|
1219
|
-
if (element && element._owner != null && element._owner !==
|
1215
|
+
if (element && element._owner != null && element._owner !== ReactSharedInternals.owner) {
|
1220
1216
|
var ownerName = null;
|
1221
1217
|
|
1222
1218
|
if (typeof element._owner.tag === 'number') {
|
@@ -1241,9 +1237,9 @@ function setCurrentlyValidatingElement(element) {
|
|
1241
1237
|
{
|
1242
1238
|
if (element) {
|
1243
1239
|
var stack = describeUnknownElementTypeFrameInDEV(element.type);
|
1244
|
-
|
1240
|
+
ReactSharedInternals.setExtraStackFrame(stack);
|
1245
1241
|
} else {
|
1246
|
-
|
1242
|
+
ReactSharedInternals.setExtraStackFrame(null);
|
1247
1243
|
}
|
1248
1244
|
}
|
1249
1245
|
}
|
@@ -26,9 +26,7 @@ const REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
26
26
|
|
27
27
|
const enableRefAsProp = true;
|
28
28
|
|
29
|
-
const ReactSharedInternals = React.
|
30
|
-
|
31
|
-
const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
29
|
+
const ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
32
30
|
|
33
31
|
function hasValidKey(config) {
|
34
32
|
|
@@ -144,7 +142,7 @@ function jsxProd(type, config, maybeKey) {
|
|
144
142
|
}
|
145
143
|
}
|
146
144
|
|
147
|
-
return ReactElement(type, key, ref, undefined, undefined,
|
145
|
+
return ReactElement(type, key, ref, undefined, undefined, ReactSharedInternals.owner, props);
|
148
146
|
} // While `jsxDEV` should never be called when running in production, we do
|
149
147
|
|
150
148
|
const jsx = jsxProd; // we may want to special case jsxs internally to take advantage of static children.
|
@@ -1 +1 @@
|
|
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,
|
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,CA6E5BE,SAASA,EAAO,CAACC,CAAD,CAAOC,CAAP,CAAeC,CAAf,CAAyB,CACvC,IAAIC,EAAM,IAQOC,KAAAA,EAAjB,GAAIF,CAAJ,GAEEC,CAFF,CAEQ,EAFR,CAEaD,CAFb,CAzEsBE,KAAAA,EA8EtB,GAAgBH,CA9EFE,CAAAA,GA8Ed,GAEEA,CAFF,CAEQ,EAFR,CAEaF,CAAOE,CAAAA,GAFpB,CAOA,IAAM,KAAN,EAAeF,EAAf,CAWO,CAILI,CAAA,CAAQ,EAER,KAAKC,IAAMA,CAAX,GAAuBL,EAAvB,CAEmB,KAAjB,GAAIK,CAAJ,GAEID,CAAA,CAAMC,CAAN,CAFJ,CAEsBL,CAAA,CAAOK,CAAP,CAFtB,CARG,CAXP,IAUED,EAAA,CAAQJ,CA9DFM,EAAAA,CA+E8EF,CA/E9DG,CAAAA,GA+ExB,OArEYC,CAERC,SAAUf,CAFFc,CAIRT,KAiEgBA,CArERS,CAKRN,IAgEsBA,CArEdM,CAMRD,IAbgBJ,IAAAA,EAAZI,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORJ,MA8DkFA,CArE1EI,CAqB2B,CAwDzCE,OAAQC,CAAAA,QAAR,CAAmBd,CACnBa,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","jsxProd","type","config","maybeKey","key","undefined","props","propName","refProp","ref","element","$$typeof","exports","Fragment","jsx","jsxs"],"ignoreList":[0]}
|
@@ -26,9 +26,7 @@ const REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
26
26
|
|
27
27
|
const enableRefAsProp = true;
|
28
28
|
|
29
|
-
const ReactSharedInternals = React.
|
30
|
-
|
31
|
-
const ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
29
|
+
const ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
32
30
|
|
33
31
|
function hasValidKey(config) {
|
34
32
|
|
@@ -144,7 +142,7 @@ function jsxProd(type, config, maybeKey) {
|
|
144
142
|
}
|
145
143
|
}
|
146
144
|
|
147
|
-
return ReactElement(type, key, ref, undefined, undefined,
|
145
|
+
return ReactElement(type, key, ref, undefined, undefined, ReactSharedInternals.owner, props);
|
148
146
|
} // While `jsxDEV` should never be called when running in production, we do
|
149
147
|
|
150
148
|
const jsx = jsxProd; // we may want to special case jsxs internally to take advantage of static children.
|
@@ -1 +1 @@
|
|
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,
|
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,CA6E5BE,SAASA,EAAO,CAACC,CAAD,CAAOC,CAAP,CAAeC,CAAf,CAAyB,CACvC,IAAIC,EAAM,IAQOC,KAAAA,EAAjB,GAAIF,CAAJ,GAEEC,CAFF,CAEQ,EAFR,CAEaD,CAFb,CAzEsBE,KAAAA,EA8EtB,GAAgBH,CA9EFE,CAAAA,GA8Ed,GAEEA,CAFF,CAEQ,EAFR,CAEaF,CAAOE,CAAAA,GAFpB,CAOA,IAAM,KAAN,EAAeF,EAAf,CAWO,CAILI,CAAA,CAAQ,EAER,KAAKC,IAAMA,CAAX,GAAuBL,EAAvB,CAEmB,KAAjB,GAAIK,CAAJ,GAEID,CAAA,CAAMC,CAAN,CAFJ,CAEsBL,CAAA,CAAOK,CAAP,CAFtB,CARG,CAXP,IAUED,EAAA,CAAQJ,CA9DFM,EAAAA,CA+E8EF,CA/E9DG,CAAAA,GA+ExB,OArEYC,CAERC,SAAUf,CAFFc,CAIRT,KAiEgBA,CArERS,CAKRN,IAgEsBA,CArEdM,CAMRD,IAbgBJ,IAAAA,EAAZI,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORJ,MA8DkFA,CArE1EI,CAqB2B,CAwDzCE,OAAQC,CAAAA,QAAR,CAAmBd,CACnBa,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","jsxProd","type","config","maybeKey","key","undefined","props","propName","refProp","ref","element","$$typeof","exports","Fragment","jsx","jsxs"],"ignoreList":[0]}
|
@@ -51,7 +51,12 @@ function getIteratorFn(maybeIterable) {
|
|
51
51
|
return null;
|
52
52
|
}
|
53
53
|
|
54
|
-
var
|
54
|
+
var ReactSharedInternalsServer = // $FlowFixMe: It's defined in the one we resolve to.
|
55
|
+
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
56
|
+
|
57
|
+
if (!ReactSharedInternalsServer) {
|
58
|
+
throw new Error('The "react" package in this environment is not configured correctly. ' + 'The "react-server" condition must be enabled in any environment that ' + 'runs React Server Components.');
|
59
|
+
}
|
55
60
|
|
56
61
|
function error(format) {
|
57
62
|
{
|
@@ -69,8 +74,7 @@ function printWarning(level, format, args) {
|
|
69
74
|
// When changing this logic, you might want to also
|
70
75
|
// update consoleWithStackDev.www.js as well.
|
71
76
|
{
|
72
|
-
var
|
73
|
-
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
77
|
+
var stack = ReactSharedInternalsServer.getStackAddendum();
|
74
78
|
|
75
79
|
if (stack !== '') {
|
76
80
|
format += '%s';
|
@@ -419,7 +423,6 @@ function reenableLogs() {
|
|
419
423
|
}
|
420
424
|
}
|
421
425
|
|
422
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
423
426
|
var prefix;
|
424
427
|
function describeBuiltInComponentFrame(name) {
|
425
428
|
{
|
@@ -475,13 +478,13 @@ function describeNativeComponentFrame(fn, construct) {
|
|
475
478
|
var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe[incompatible-type] It does accept undefined.
|
476
479
|
|
477
480
|
Error.prepareStackTrace = undefined;
|
478
|
-
var previousDispatcher;
|
481
|
+
var previousDispatcher = null;
|
479
482
|
|
480
483
|
{
|
481
|
-
previousDispatcher =
|
484
|
+
previousDispatcher = ReactSharedInternalsServer.H; // Set the dispatcher in DEV because this might be call in the render function
|
482
485
|
// for warnings.
|
483
486
|
|
484
|
-
|
487
|
+
ReactSharedInternalsServer.H = null;
|
485
488
|
disableLogs();
|
486
489
|
}
|
487
490
|
/**
|
@@ -666,7 +669,7 @@ function describeNativeComponentFrame(fn, construct) {
|
|
666
669
|
reentry = false;
|
667
670
|
|
668
671
|
{
|
669
|
-
|
672
|
+
ReactSharedInternalsServer.H = previousDispatcher;
|
670
673
|
reenableLogs();
|
671
674
|
}
|
672
675
|
|
@@ -746,8 +749,6 @@ function describeUnknownElementTypeFrameInDEV(type) {
|
|
746
749
|
return '';
|
747
750
|
}
|
748
751
|
|
749
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
750
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
751
752
|
var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference');
|
752
753
|
var specialPropKeyWarningShown;
|
753
754
|
var didWarnAboutElementRef;
|
@@ -1099,7 +1100,7 @@ function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
|
|
1099
1100
|
}
|
1100
1101
|
}
|
1101
1102
|
|
1102
|
-
var element = ReactElement(type, key, ref, self, source,
|
1103
|
+
var element = ReactElement(type, key, ref, self, source, ReactSharedInternalsServer.owner, props);
|
1103
1104
|
|
1104
1105
|
if (type === REACT_FRAGMENT_TYPE) {
|
1105
1106
|
validateFragmentProps(element);
|
@@ -1111,8 +1112,8 @@ function jsxDEV$1(type, config, maybeKey, isStaticChildren, source, self) {
|
|
1111
1112
|
|
1112
1113
|
function getDeclarationErrorAddendum() {
|
1113
1114
|
{
|
1114
|
-
if (
|
1115
|
-
var name = getComponentNameFromType(
|
1115
|
+
if (ReactSharedInternalsServer.owner) {
|
1116
|
+
var name = getComponentNameFromType(ReactSharedInternalsServer.owner.type);
|
1116
1117
|
|
1117
1118
|
if (name) {
|
1118
1119
|
return '\n\nCheck the render method of `' + name + '`.';
|
@@ -1216,7 +1217,7 @@ function validateExplicitKey(element, parentType) {
|
|
1216
1217
|
|
1217
1218
|
var childOwner = '';
|
1218
1219
|
|
1219
|
-
if (element && element._owner != null && element._owner !==
|
1220
|
+
if (element && element._owner != null && element._owner !== ReactSharedInternalsServer.owner) {
|
1220
1221
|
var ownerName = null;
|
1221
1222
|
|
1222
1223
|
if (typeof element._owner.tag === 'number') {
|
@@ -1241,9 +1242,9 @@ function setCurrentlyValidatingElement(element) {
|
|
1241
1242
|
{
|
1242
1243
|
if (element) {
|
1243
1244
|
var stack = describeUnknownElementTypeFrameInDEV(element.type);
|
1244
|
-
|
1245
|
+
ReactSharedInternalsServer.setExtraStackFrame(stack);
|
1245
1246
|
} else {
|
1246
|
-
|
1247
|
+
ReactSharedInternalsServer.setExtraStackFrame(null);
|
1247
1248
|
}
|
1248
1249
|
}
|
1249
1250
|
}
|
@@ -26,9 +26,12 @@ const REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
26
26
|
|
27
27
|
const enableRefAsProp = true;
|
28
28
|
|
29
|
-
const
|
29
|
+
const ReactSharedInternalsServer = // $FlowFixMe: It's defined in the one we resolve to.
|
30
|
+
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
30
31
|
|
31
|
-
|
32
|
+
if (!ReactSharedInternalsServer) {
|
33
|
+
throw new Error('The "react" package in this environment is not configured correctly. ' + 'The "react-server" condition must be enabled in any environment that ' + 'runs React Server Components.');
|
34
|
+
}
|
32
35
|
|
33
36
|
function hasValidKey(config) {
|
34
37
|
|
@@ -144,7 +147,7 @@ function jsxProd(type, config, maybeKey) {
|
|
144
147
|
}
|
145
148
|
}
|
146
149
|
|
147
|
-
return ReactElement(type, key, ref, undefined, undefined,
|
150
|
+
return ReactElement(type, key, ref, undefined, undefined, ReactSharedInternalsServer.owner, props);
|
148
151
|
} // While `jsxDEV` should never be called when running in production, we do
|
149
152
|
|
150
153
|
const jsx = jsxProd; // we may want to special case jsxs internally to take advantage of static children.
|
@@ -7,6 +7,7 @@
|
|
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';require("react")
|
10
|
+
'use strict';var e=require("react"),f=Symbol.for("react.element"),g=Symbol.for("react.fragment");if(!e.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)throw Error('The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.');
|
11
|
+
function h(k,a,b){var c=null;void 0!==b&&(c=""+b);void 0!==a.key&&(c=""+a.key);if("key"in a){b={};for(var d in a)"key"!==d&&(b[d]=a[d])}else b=a;a=b.ref;return{$$typeof:f,type:k,key:c,ref:void 0!==a?a:null,props:b}}exports.Fragment=g;exports.jsx=h;exports.jsxDEV=void 0;exports.jsxs=h;
|
11
12
|
|
12
13
|
//# 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":11,"mappings":"A;;;;;;;;;aAYA,IAAIA,EAAQC,OAAA,CAAQ,OAAR,CAAZ,CAMMC,EAAqBC,MAAOC,CAAAA,GAAP,CAAW,eAAX,CAN3B,CAOMC,EAAsBF,MAAOC,CAAAA,GAAP,CAAW,gBAAX,CAY5B,IAAI,CAFJJ,CAAMM,CAAAA,+DAEN,CACE,KAAUC,MAAJ,CAAU,yKAAV,CAAN;AAqEFC,QAASA,EAAO,CAACC,CAAD,CAAOC,CAAP,CAAeC,CAAf,CAAyB,CACvC,IAAIC,EAAM,IAQOC,KAAAA,EAAjB,GAAIF,CAAJ,GAEEC,CAFF,CAEQ,EAFR,CAEaD,CAFb,CAzEsBE,KAAAA,EA8EtB,GAAgBH,CA9EFE,CAAAA,GA8Ed,GAEEA,CAFF,CAEQ,EAFR,CAEaF,CAAOE,CAAAA,GAFpB,CAOA,IAAM,KAAN,EAAeF,EAAf,CAWO,CAILI,CAAA,CAAQ,EAER,KAAKC,IAAMA,CAAX,GAAuBL,EAAvB,CAEmB,KAAjB,GAAIK,CAAJ,GAEID,CAAA,CAAMC,CAAN,CAFJ,CAEsBL,CAAA,CAAOK,CAAP,CAFtB,CARG,CAXP,IAUED,EAAA,CAAQJ,CA9DFM,EAAAA,CA+EoFF,CA/EpEG,CAAAA,GA+ExB,OArEYC,CAERC,SAAUjB,CAFFgB,CAIRT,KAiEgBA,CArERS,CAKRN,IAgEsBA,CArEdM,CAMRD,IAbgBJ,IAAAA,EAAZI,GAAAD,CAAAC,CAAwBD,CAAxBC,CAAkC,IAO9BC,CAORJ,MA8DwFA,CArEhFI,CAqB2B,CAyDzCE,OAAQC,CAAAA,QAAR,CAAmBhB,CACnBe,QAAQE,CAAAA,GAAR,CAAcA,CACdF,QAAQG,CAAAA,MAAR,CAJeV,IAAAA,EAKfO,QAAQI,CAAAA,IAAR,CAAeA;","sources":["react-jsx-runtime.react-server.production.js"],"names":["React","require","REACT_ELEMENT_TYPE","Symbol","for","REACT_FRAGMENT_TYPE","__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE","Error","jsxProd","type","config","maybeKey","key","undefined","props","propName","refProp","ref","element","$$typeof","exports","Fragment","jsx","jsxDEV","jsxs"],"ignoreList":[0]}
|