react-server-dom-webpack 19.1.0-canary-cbbe8666-20250213 → 19.1.0-canary-e670e72f-20250214
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/cjs/react-server-dom-webpack-client.browser.development.js +261 -76
- package/cjs/react-server-dom-webpack-client.edge.development.js +269 -75
- package/cjs/react-server-dom-webpack-client.node.development.js +269 -75
- package/cjs/react-server-dom-webpack-client.node.unbundled.development.js +269 -75
- package/cjs/react-server-dom-webpack-server.browser.development.js +270 -85
- package/cjs/react-server-dom-webpack-server.browser.production.js +17 -17
- package/cjs/react-server-dom-webpack-server.edge.development.js +317 -92
- package/cjs/react-server-dom-webpack-server.edge.production.js +17 -17
- package/cjs/react-server-dom-webpack-server.node.development.js +299 -94
- package/cjs/react-server-dom-webpack-server.node.production.js +20 -20
- package/cjs/react-server-dom-webpack-server.node.unbundled.development.js +299 -94
- package/cjs/react-server-dom-webpack-server.node.unbundled.production.js +20 -20
- package/package.json +3 -3
@@ -505,39 +505,39 @@ function getThenableStateAfterSuspending() {
|
|
505
505
|
return state;
|
506
506
|
}
|
507
507
|
var HooksDispatcher = {
|
508
|
-
|
509
|
-
|
510
|
-
},
|
508
|
+
readContext: unsupportedContext,
|
509
|
+
use: use,
|
511
510
|
useCallback: function (callback) {
|
512
511
|
return callback;
|
513
512
|
},
|
514
|
-
useDebugValue: function () {},
|
515
|
-
useDeferredValue: unsupportedHook,
|
516
|
-
useTransition: unsupportedHook,
|
517
|
-
readContext: unsupportedContext,
|
518
513
|
useContext: unsupportedContext,
|
514
|
+
useEffect: unsupportedHook,
|
515
|
+
useImperativeHandle: unsupportedHook,
|
516
|
+
useLayoutEffect: unsupportedHook,
|
517
|
+
useInsertionEffect: unsupportedHook,
|
518
|
+
useMemo: function (nextCreate) {
|
519
|
+
return nextCreate();
|
520
|
+
},
|
519
521
|
useReducer: unsupportedHook,
|
520
522
|
useRef: unsupportedHook,
|
521
523
|
useState: unsupportedHook,
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
524
|
+
useDebugValue: function () {},
|
525
|
+
useDeferredValue: unsupportedHook,
|
526
|
+
useTransition: unsupportedHook,
|
527
|
+
useSyncExternalStore: unsupportedHook,
|
526
528
|
useId: useId,
|
527
529
|
useHostTransitionStatus: unsupportedHook,
|
528
|
-
useOptimistic: unsupportedHook,
|
529
530
|
useFormState: unsupportedHook,
|
530
531
|
useActionState: unsupportedHook,
|
531
|
-
|
532
|
-
useCacheRefresh: function () {
|
533
|
-
return unsupportedRefresh;
|
534
|
-
},
|
532
|
+
useOptimistic: unsupportedHook,
|
535
533
|
useMemoCache: function (size) {
|
536
534
|
for (var data = Array(size), i = 0; i < size; i++)
|
537
535
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
538
536
|
return data;
|
539
537
|
},
|
540
|
-
|
538
|
+
useCacheRefresh: function () {
|
539
|
+
return unsupportedRefresh;
|
540
|
+
}
|
541
541
|
};
|
542
542
|
function unsupportedHook() {
|
543
543
|
throw Error("This Hook is not supported in Server Components.");
|
@@ -590,7 +590,59 @@
|
|
590
590
|
}
|
591
591
|
}
|
592
592
|
function getCurrentStackInDEV() {
|
593
|
-
|
593
|
+
var owner = resolveOwner();
|
594
|
+
if (null === owner) return "";
|
595
|
+
try {
|
596
|
+
var info = "";
|
597
|
+
if (owner.owner || "string" !== typeof owner.name) {
|
598
|
+
for (; owner; ) {
|
599
|
+
var ownerStack = owner.debugStack;
|
600
|
+
if (null != ownerStack) {
|
601
|
+
if ((owner = owner.owner)) {
|
602
|
+
var JSCompiler_temp_const = info;
|
603
|
+
var error = ownerStack,
|
604
|
+
prevPrepareStackTrace = Error.prepareStackTrace;
|
605
|
+
Error.prepareStackTrace = prepareStackTrace;
|
606
|
+
var stack = error.stack;
|
607
|
+
Error.prepareStackTrace = prevPrepareStackTrace;
|
608
|
+
stack.startsWith("Error: react-stack-top-frame\n") &&
|
609
|
+
(stack = stack.slice(29));
|
610
|
+
var idx = stack.indexOf("\n");
|
611
|
+
-1 !== idx && (stack = stack.slice(idx + 1));
|
612
|
+
idx = stack.indexOf("react-stack-bottom-frame");
|
613
|
+
-1 !== idx && (idx = stack.lastIndexOf("\n", idx));
|
614
|
+
var JSCompiler_inline_result =
|
615
|
+
-1 !== idx ? (stack = stack.slice(0, idx)) : "";
|
616
|
+
info =
|
617
|
+
JSCompiler_temp_const + ("\n" + JSCompiler_inline_result);
|
618
|
+
}
|
619
|
+
} else break;
|
620
|
+
}
|
621
|
+
var JSCompiler_inline_result$jscomp$0 = info;
|
622
|
+
} else {
|
623
|
+
JSCompiler_temp_const = owner.name;
|
624
|
+
if (void 0 === prefix)
|
625
|
+
try {
|
626
|
+
throw Error();
|
627
|
+
} catch (x) {
|
628
|
+
(prefix =
|
629
|
+
((error = x.stack.trim().match(/\n( *(at )?)/)) && error[1]) ||
|
630
|
+
""),
|
631
|
+
(suffix =
|
632
|
+
-1 < x.stack.indexOf("\n at")
|
633
|
+
? " (<anonymous>)"
|
634
|
+
: -1 < x.stack.indexOf("@")
|
635
|
+
? "@unknown:0:0"
|
636
|
+
: "");
|
637
|
+
}
|
638
|
+
JSCompiler_inline_result$jscomp$0 =
|
639
|
+
"\n" + prefix + JSCompiler_temp_const + suffix;
|
640
|
+
}
|
641
|
+
} catch (x) {
|
642
|
+
JSCompiler_inline_result$jscomp$0 =
|
643
|
+
"\nError generating stack: " + x.message + "\n" + x.stack;
|
644
|
+
}
|
645
|
+
return JSCompiler_inline_result$jscomp$0;
|
594
646
|
}
|
595
647
|
function defaultErrorHandler(error) {
|
596
648
|
console.error(error);
|
@@ -664,7 +716,7 @@
|
|
664
716
|
? defaultFilterStackFrame
|
665
717
|
: filterStackFrame;
|
666
718
|
this.didWarnForKey = null;
|
667
|
-
type = createTask(this, model, null, !1, abortSet, null);
|
719
|
+
type = createTask(this, model, null, !1, abortSet, null, null, null);
|
668
720
|
pingedTasks.push(type);
|
669
721
|
}
|
670
722
|
function noop() {}
|
@@ -680,7 +732,9 @@
|
|
680
732
|
task.keyPath,
|
681
733
|
task.implicitSlot,
|
682
734
|
request.abortableTasks,
|
683
|
-
task.debugOwner
|
735
|
+
task.debugOwner,
|
736
|
+
task.debugStack,
|
737
|
+
task.debugTask
|
684
738
|
);
|
685
739
|
(task = thenable._debugInfo) &&
|
686
740
|
forwardDebugInfo(request, newTask.id, task);
|
@@ -778,7 +832,9 @@
|
|
778
832
|
task.keyPath,
|
779
833
|
task.implicitSlot,
|
780
834
|
request.abortableTasks,
|
781
|
-
task.debugOwner
|
835
|
+
task.debugOwner,
|
836
|
+
task.debugStack,
|
837
|
+
task.debugTask
|
782
838
|
);
|
783
839
|
request.abortableTasks.delete(streamTask);
|
784
840
|
request.pendingChunks++;
|
@@ -848,7 +904,9 @@
|
|
848
904
|
task.keyPath,
|
849
905
|
task.implicitSlot,
|
850
906
|
request.abortableTasks,
|
851
|
-
task.debugOwner
|
907
|
+
task.debugOwner,
|
908
|
+
task.debugStack,
|
909
|
+
task.debugTask
|
852
910
|
);
|
853
911
|
request.abortableTasks.delete(streamTask);
|
854
912
|
request.pendingChunks++;
|
@@ -900,14 +958,21 @@
|
|
900
958
|
return lazyType;
|
901
959
|
}
|
902
960
|
function callWithDebugContextInDEV(request, task, callback, arg) {
|
903
|
-
|
961
|
+
var componentDebugInfo = {
|
904
962
|
name: "",
|
905
963
|
env: task.environmentName,
|
906
964
|
key: null,
|
907
965
|
owner: task.debugOwner
|
908
966
|
};
|
967
|
+
componentDebugInfo.stack =
|
968
|
+
null === task.debugStack
|
969
|
+
? null
|
970
|
+
: filterStackTrace(request, task.debugStack, 1);
|
971
|
+
componentDebugInfo.debugStack = task.debugStack;
|
972
|
+
request = componentDebugInfo.debugTask = task.debugTask;
|
973
|
+
currentOwner = componentDebugInfo;
|
909
974
|
try {
|
910
|
-
return callback(arg);
|
975
|
+
return request ? request.run(callback.bind(null, arg)) : callback(arg);
|
911
976
|
} finally {
|
912
977
|
currentOwner = null;
|
913
978
|
}
|
@@ -977,7 +1042,14 @@
|
|
977
1042
|
(multiShot._debugInfo = result._debugInfo),
|
978
1043
|
multiShot);
|
979
1044
|
}
|
980
|
-
function renderFunctionComponent(
|
1045
|
+
function renderFunctionComponent(
|
1046
|
+
request,
|
1047
|
+
task,
|
1048
|
+
key,
|
1049
|
+
Component,
|
1050
|
+
props,
|
1051
|
+
validated
|
1052
|
+
) {
|
981
1053
|
var prevThenableState = task.thenableState;
|
982
1054
|
task.thenableState = null;
|
983
1055
|
if (null === debugID) return outlineTask(request, task);
|
@@ -994,21 +1066,40 @@
|
|
994
1066
|
key: key,
|
995
1067
|
owner: task.debugOwner
|
996
1068
|
};
|
1069
|
+
componentDebugInfo.stack =
|
1070
|
+
null === task.debugStack
|
1071
|
+
? null
|
1072
|
+
: filterStackTrace(request, task.debugStack, 1);
|
997
1073
|
componentDebugInfo.props = props;
|
1074
|
+
componentDebugInfo.debugStack = task.debugStack;
|
1075
|
+
componentDebugInfo.debugTask = task.debugTask;
|
998
1076
|
outlineComponentInfo(request, componentDebugInfo);
|
999
1077
|
emitDebugChunk(request, componentDebugID, componentDebugInfo);
|
1000
1078
|
task.environmentName = componentEnv;
|
1079
|
+
2 === validated &&
|
1080
|
+
warnForMissingKey(request, key, componentDebugInfo, task.debugTask);
|
1001
1081
|
}
|
1002
1082
|
thenableIndexCounter = 0;
|
1003
1083
|
thenableState = prevThenableState;
|
1004
1084
|
currentComponentDebugInfo = componentDebugInfo;
|
1005
|
-
props =
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1085
|
+
props = task.debugTask
|
1086
|
+
? task.debugTask.run(
|
1087
|
+
componentStorage.run.bind(
|
1088
|
+
componentStorage,
|
1089
|
+
componentDebugInfo,
|
1090
|
+
callComponentInDEV,
|
1091
|
+
Component,
|
1092
|
+
props,
|
1093
|
+
componentDebugInfo
|
1094
|
+
)
|
1095
|
+
)
|
1096
|
+
: componentStorage.run(
|
1097
|
+
componentDebugInfo,
|
1098
|
+
callComponentInDEV,
|
1099
|
+
Component,
|
1100
|
+
props,
|
1101
|
+
componentDebugInfo
|
1102
|
+
);
|
1012
1103
|
if (request.status === ABORTING)
|
1013
1104
|
throw (
|
1014
1105
|
("object" !== typeof props ||
|
@@ -1025,15 +1116,49 @@
|
|
1025
1116
|
props
|
1026
1117
|
);
|
1027
1118
|
Component = task.keyPath;
|
1028
|
-
|
1119
|
+
validated = task.implicitSlot;
|
1029
1120
|
null !== key
|
1030
1121
|
? (task.keyPath = null === Component ? key : Component + "," + key)
|
1031
1122
|
: null === Component && (task.implicitSlot = !0);
|
1032
1123
|
request = renderModelDestructive(request, task, emptyRoot, "", props);
|
1033
1124
|
task.keyPath = Component;
|
1034
|
-
task.implicitSlot =
|
1125
|
+
task.implicitSlot = validated;
|
1035
1126
|
return request;
|
1036
1127
|
}
|
1128
|
+
function warnForMissingKey(request, key, componentDebugInfo, debugTask) {
|
1129
|
+
function logKeyError() {
|
1130
|
+
console.error(
|
1131
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
1132
|
+
"",
|
1133
|
+
""
|
1134
|
+
);
|
1135
|
+
}
|
1136
|
+
key = request.didWarnForKey;
|
1137
|
+
null == key && (key = request.didWarnForKey = new WeakSet());
|
1138
|
+
request = componentDebugInfo.owner;
|
1139
|
+
if (null != request) {
|
1140
|
+
if (key.has(request)) return;
|
1141
|
+
key.add(request);
|
1142
|
+
}
|
1143
|
+
debugTask
|
1144
|
+
? debugTask.run(
|
1145
|
+
componentStorage.run.bind(
|
1146
|
+
componentStorage,
|
1147
|
+
componentDebugInfo,
|
1148
|
+
callComponentInDEV,
|
1149
|
+
logKeyError,
|
1150
|
+
null,
|
1151
|
+
componentDebugInfo
|
1152
|
+
)
|
1153
|
+
)
|
1154
|
+
: componentStorage.run(
|
1155
|
+
componentDebugInfo,
|
1156
|
+
callComponentInDEV,
|
1157
|
+
logKeyError,
|
1158
|
+
null,
|
1159
|
+
componentDebugInfo
|
1160
|
+
);
|
1161
|
+
}
|
1037
1162
|
function renderFragment(request, task, children) {
|
1038
1163
|
for (var i = 0; i < children.length; i++) {
|
1039
1164
|
var child = children[i];
|
@@ -1051,7 +1176,9 @@
|
|
1051
1176
|
REACT_FRAGMENT_TYPE,
|
1052
1177
|
task.keyPath,
|
1053
1178
|
{ children: children },
|
1054
|
-
null
|
1179
|
+
null,
|
1180
|
+
null,
|
1181
|
+
0
|
1055
1182
|
]),
|
1056
1183
|
task.implicitSlot ? [request] : request
|
1057
1184
|
);
|
@@ -1070,7 +1197,9 @@
|
|
1070
1197
|
REACT_FRAGMENT_TYPE,
|
1071
1198
|
task.keyPath,
|
1072
1199
|
{ children: children },
|
1073
|
-
null
|
1200
|
+
null,
|
1201
|
+
null,
|
1202
|
+
0
|
1074
1203
|
]),
|
1075
1204
|
task.implicitSlot ? [request] : request
|
1076
1205
|
);
|
@@ -1084,14 +1213,16 @@
|
|
1084
1213
|
task.keyPath,
|
1085
1214
|
task.implicitSlot,
|
1086
1215
|
request.abortableTasks,
|
1087
|
-
task.debugOwner
|
1216
|
+
task.debugOwner,
|
1217
|
+
task.debugStack,
|
1218
|
+
task.debugTask
|
1088
1219
|
);
|
1089
1220
|
retryTask(request, task);
|
1090
1221
|
return task.status === COMPLETED
|
1091
1222
|
? serializeByValueID(task.id)
|
1092
1223
|
: "$L" + task.id.toString(16);
|
1093
1224
|
}
|
1094
|
-
function renderElement(request, task, type, key, ref, props) {
|
1225
|
+
function renderElement(request, task, type, key, ref, props, validated) {
|
1095
1226
|
if (null !== ref && void 0 !== ref)
|
1096
1227
|
throw Error(
|
1097
1228
|
"Refs cannot be used in Server Components, nor passed to Client Components."
|
@@ -1107,7 +1238,22 @@
|
|
1107
1238
|
) {
|
1108
1239
|
if (type === REACT_FRAGMENT_TYPE && null === key)
|
1109
1240
|
return (
|
1110
|
-
|
1241
|
+
2 === validated &&
|
1242
|
+
((validated = {
|
1243
|
+
name: "Fragment",
|
1244
|
+
env: (0, request.environmentName)(),
|
1245
|
+
key: key,
|
1246
|
+
owner: task.debugOwner,
|
1247
|
+
stack:
|
1248
|
+
null === task.debugStack
|
1249
|
+
? null
|
1250
|
+
: filterStackTrace(request, task.debugStack, 1),
|
1251
|
+
props: props,
|
1252
|
+
debugStack: task.debugStack,
|
1253
|
+
debugTask: task.debugTask
|
1254
|
+
}),
|
1255
|
+
warnForMissingKey(request, key, validated, task.debugTask)),
|
1256
|
+
(validated = task.implicitSlot),
|
1111
1257
|
null === task.keyPath && (task.implicitSlot = !0),
|
1112
1258
|
(request = renderModelDestructive(
|
1113
1259
|
request,
|
@@ -1116,7 +1262,7 @@
|
|
1116
1262
|
"",
|
1117
1263
|
props.children
|
1118
1264
|
)),
|
1119
|
-
(task.implicitSlot =
|
1265
|
+
(task.implicitSlot = validated),
|
1120
1266
|
request
|
1121
1267
|
);
|
1122
1268
|
if (
|
@@ -1128,26 +1274,61 @@
|
|
1128
1274
|
case REACT_LAZY_TYPE:
|
1129
1275
|
type = callLazyInitInDEV(type);
|
1130
1276
|
if (request.status === ABORTING) throw null;
|
1131
|
-
return renderElement(
|
1277
|
+
return renderElement(
|
1278
|
+
request,
|
1279
|
+
task,
|
1280
|
+
type,
|
1281
|
+
key,
|
1282
|
+
ref,
|
1283
|
+
props,
|
1284
|
+
validated
|
1285
|
+
);
|
1132
1286
|
case REACT_FORWARD_REF_TYPE:
|
1133
1287
|
return renderFunctionComponent(
|
1134
1288
|
request,
|
1135
1289
|
task,
|
1136
1290
|
key,
|
1137
1291
|
type.render,
|
1138
|
-
props
|
1292
|
+
props,
|
1293
|
+
validated
|
1139
1294
|
);
|
1140
1295
|
case REACT_MEMO_TYPE:
|
1141
|
-
return renderElement(
|
1296
|
+
return renderElement(
|
1297
|
+
request,
|
1298
|
+
task,
|
1299
|
+
type.type,
|
1300
|
+
key,
|
1301
|
+
ref,
|
1302
|
+
props,
|
1303
|
+
validated
|
1304
|
+
);
|
1142
1305
|
case REACT_ELEMENT_TYPE:
|
1143
1306
|
type._store.validated = 1;
|
1144
1307
|
}
|
1145
|
-
} else
|
1308
|
+
} else
|
1309
|
+
return renderFunctionComponent(
|
1310
|
+
request,
|
1311
|
+
task,
|
1312
|
+
key,
|
1313
|
+
type,
|
1314
|
+
props,
|
1315
|
+
validated
|
1316
|
+
);
|
1146
1317
|
ref = task.keyPath;
|
1147
1318
|
null === key ? (key = ref) : null !== ref && (key = ref + "," + key);
|
1148
1319
|
null !== task.debugOwner &&
|
1149
1320
|
outlineComponentInfo(request, task.debugOwner);
|
1150
|
-
request = [
|
1321
|
+
request = [
|
1322
|
+
REACT_ELEMENT_TYPE,
|
1323
|
+
type,
|
1324
|
+
key,
|
1325
|
+
props,
|
1326
|
+
task.debugOwner,
|
1327
|
+
null === task.debugStack
|
1328
|
+
? null
|
1329
|
+
: filterStackTrace(request, task.debugStack, 1),
|
1330
|
+
validated
|
1331
|
+
];
|
1151
1332
|
task = task.implicitSlot && null !== key ? [request] : request;
|
1152
1333
|
return task;
|
1153
1334
|
}
|
@@ -1170,7 +1351,9 @@
|
|
1170
1351
|
keyPath,
|
1171
1352
|
implicitSlot,
|
1172
1353
|
abortSet,
|
1173
|
-
debugOwner
|
1354
|
+
debugOwner,
|
1355
|
+
debugStack,
|
1356
|
+
debugTask
|
1174
1357
|
) {
|
1175
1358
|
request.pendingChunks++;
|
1176
1359
|
var id = request.nextChunkId++;
|
@@ -1218,6 +1401,8 @@
|
|
1218
1401
|
};
|
1219
1402
|
task.environmentName = request.environmentName();
|
1220
1403
|
task.debugOwner = debugOwner;
|
1404
|
+
task.debugStack = debugStack;
|
1405
|
+
task.debugTask = debugTask;
|
1221
1406
|
abortSet.add(task);
|
1222
1407
|
return task;
|
1223
1408
|
}
|
@@ -1308,6 +1493,8 @@
|
|
1308
1493
|
null,
|
1309
1494
|
!1,
|
1310
1495
|
request.abortableTasks,
|
1496
|
+
null,
|
1497
|
+
null,
|
1311
1498
|
null
|
1312
1499
|
);
|
1313
1500
|
retryTask(request, value);
|
@@ -1401,6 +1588,8 @@
|
|
1401
1588
|
null,
|
1402
1589
|
!1,
|
1403
1590
|
request.abortableTasks,
|
1591
|
+
null,
|
1592
|
+
null,
|
1404
1593
|
null
|
1405
1594
|
),
|
1406
1595
|
reader = blob.stream().getReader(),
|
@@ -1443,7 +1632,9 @@
|
|
1443
1632
|
task.keyPath,
|
1444
1633
|
task.implicitSlot,
|
1445
1634
|
request.abortableTasks,
|
1446
|
-
task.debugOwner
|
1635
|
+
task.debugOwner,
|
1636
|
+
task.debugStack,
|
1637
|
+
task.debugTask
|
1447
1638
|
)),
|
1448
1639
|
(value = request.ping),
|
1449
1640
|
key.then(value, value),
|
@@ -1500,13 +1691,16 @@
|
|
1500
1691
|
_existingReference = value.props;
|
1501
1692
|
var refProp = _existingReference.ref;
|
1502
1693
|
task.debugOwner = value._owner;
|
1694
|
+
task.debugStack = value._debugStack;
|
1695
|
+
task.debugTask = value._debugTask;
|
1503
1696
|
request = renderElement(
|
1504
1697
|
request,
|
1505
1698
|
task,
|
1506
1699
|
value.type,
|
1507
1700
|
value.key,
|
1508
1701
|
void 0 !== refProp ? refProp : null,
|
1509
|
-
_existingReference
|
1702
|
+
_existingReference,
|
1703
|
+
value._store.validated
|
1510
1704
|
);
|
1511
1705
|
"object" === typeof request &&
|
1512
1706
|
null !== request &&
|
@@ -1888,6 +2082,7 @@
|
|
1888
2082
|
key: componentInfo.key,
|
1889
2083
|
owner: componentInfo.owner
|
1890
2084
|
};
|
2085
|
+
componentDebugInfo.stack = componentInfo.stack;
|
1891
2086
|
componentDebugInfo.props = componentInfo.props;
|
1892
2087
|
objectLimit = outlineConsoleValue(
|
1893
2088
|
request,
|
@@ -1949,25 +2144,34 @@
|
|
1949
2144
|
counter.objectLimit--;
|
1950
2145
|
switch (value.$$typeof) {
|
1951
2146
|
case REACT_ELEMENT_TYPE:
|
1952
|
-
|
1953
|
-
|
1954
|
-
|
1955
|
-
|
1956
|
-
|
1957
|
-
|
1958
|
-
|
1959
|
-
|
1960
|
-
|
1961
|
-
|
1962
|
-
|
1963
|
-
|
1964
|
-
|
1965
|
-
|
1966
|
-
|
1967
|
-
|
1968
|
-
|
1969
|
-
|
1970
|
-
|
2147
|
+
null != value._owner && outlineComponentInfo(request, value._owner);
|
2148
|
+
"object" === typeof value.type &&
|
2149
|
+
null !== value.type &&
|
2150
|
+
doNotLimit.add(value.type);
|
2151
|
+
"object" === typeof value.key &&
|
2152
|
+
null !== value.key &&
|
2153
|
+
doNotLimit.add(value.key);
|
2154
|
+
doNotLimit.add(value.props);
|
2155
|
+
null !== value._owner && doNotLimit.add(value._owner);
|
2156
|
+
counter = null;
|
2157
|
+
if (null != value._debugStack)
|
2158
|
+
for (
|
2159
|
+
counter = filterStackTrace(request, value._debugStack, 1),
|
2160
|
+
doNotLimit.add(counter),
|
2161
|
+
request = 0;
|
2162
|
+
request < counter.length;
|
2163
|
+
request++
|
2164
|
+
)
|
2165
|
+
doNotLimit.add(counter[request]);
|
2166
|
+
return [
|
2167
|
+
REACT_ELEMENT_TYPE,
|
2168
|
+
value.type,
|
2169
|
+
value.key,
|
2170
|
+
value.props,
|
2171
|
+
value._owner,
|
2172
|
+
counter,
|
2173
|
+
value._store.validated
|
2174
|
+
];
|
1971
2175
|
}
|
1972
2176
|
if ("function" === typeof value.then) {
|
1973
2177
|
switch (value.status) {
|
@@ -3498,24 +3702,52 @@
|
|
3498
3702
|
thenableState = null,
|
3499
3703
|
currentComponentDebugInfo = null,
|
3500
3704
|
HooksDispatcher = {
|
3501
|
-
|
3502
|
-
|
3705
|
+
readContext: unsupportedContext,
|
3706
|
+
use: function (usable) {
|
3707
|
+
if (
|
3708
|
+
(null !== usable && "object" === typeof usable) ||
|
3709
|
+
"function" === typeof usable
|
3710
|
+
) {
|
3711
|
+
if ("function" === typeof usable.then) {
|
3712
|
+
var index = thenableIndexCounter;
|
3713
|
+
thenableIndexCounter += 1;
|
3714
|
+
null === thenableState && (thenableState = []);
|
3715
|
+
return trackUsedThenable(thenableState, usable, index);
|
3716
|
+
}
|
3717
|
+
usable.$$typeof === REACT_CONTEXT_TYPE && unsupportedContext();
|
3718
|
+
}
|
3719
|
+
if (isClientReference(usable)) {
|
3720
|
+
if (
|
3721
|
+
null != usable.value &&
|
3722
|
+
usable.value.$$typeof === REACT_CONTEXT_TYPE
|
3723
|
+
)
|
3724
|
+
throw Error(
|
3725
|
+
"Cannot read a Client Context from a Server Component."
|
3726
|
+
);
|
3727
|
+
throw Error("Cannot use() an already resolved Client Reference.");
|
3728
|
+
}
|
3729
|
+
throw Error(
|
3730
|
+
"An unsupported type was passed to use(): " + String(usable)
|
3731
|
+
);
|
3503
3732
|
},
|
3504
3733
|
useCallback: function (callback) {
|
3505
3734
|
return callback;
|
3506
3735
|
},
|
3507
|
-
useDebugValue: function () {},
|
3508
|
-
useDeferredValue: unsupportedHook,
|
3509
|
-
useTransition: unsupportedHook,
|
3510
|
-
readContext: unsupportedContext,
|
3511
3736
|
useContext: unsupportedContext,
|
3737
|
+
useEffect: unsupportedHook,
|
3738
|
+
useImperativeHandle: unsupportedHook,
|
3739
|
+
useLayoutEffect: unsupportedHook,
|
3740
|
+
useInsertionEffect: unsupportedHook,
|
3741
|
+
useMemo: function (nextCreate) {
|
3742
|
+
return nextCreate();
|
3743
|
+
},
|
3512
3744
|
useReducer: unsupportedHook,
|
3513
3745
|
useRef: unsupportedHook,
|
3514
3746
|
useState: unsupportedHook,
|
3515
|
-
|
3516
|
-
|
3517
|
-
|
3518
|
-
|
3747
|
+
useDebugValue: function () {},
|
3748
|
+
useDeferredValue: unsupportedHook,
|
3749
|
+
useTransition: unsupportedHook,
|
3750
|
+
useSyncExternalStore: unsupportedHook,
|
3519
3751
|
useId: function () {
|
3520
3752
|
if (null === currentRequest$1)
|
3521
3753
|
throw Error("useId can only be used while React is rendering");
|
@@ -3529,44 +3761,16 @@
|
|
3529
3761
|
);
|
3530
3762
|
},
|
3531
3763
|
useHostTransitionStatus: unsupportedHook,
|
3532
|
-
useOptimistic: unsupportedHook,
|
3533
3764
|
useFormState: unsupportedHook,
|
3534
3765
|
useActionState: unsupportedHook,
|
3535
|
-
|
3536
|
-
useCacheRefresh: function () {
|
3537
|
-
return unsupportedRefresh;
|
3538
|
-
},
|
3766
|
+
useOptimistic: unsupportedHook,
|
3539
3767
|
useMemoCache: function (size) {
|
3540
3768
|
for (var data = Array(size), i = 0; i < size; i++)
|
3541
3769
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
3542
3770
|
return data;
|
3543
3771
|
},
|
3544
|
-
|
3545
|
-
|
3546
|
-
(null !== usable && "object" === typeof usable) ||
|
3547
|
-
"function" === typeof usable
|
3548
|
-
) {
|
3549
|
-
if ("function" === typeof usable.then) {
|
3550
|
-
var index = thenableIndexCounter;
|
3551
|
-
thenableIndexCounter += 1;
|
3552
|
-
null === thenableState && (thenableState = []);
|
3553
|
-
return trackUsedThenable(thenableState, usable, index);
|
3554
|
-
}
|
3555
|
-
usable.$$typeof === REACT_CONTEXT_TYPE && unsupportedContext();
|
3556
|
-
}
|
3557
|
-
if (isClientReference(usable)) {
|
3558
|
-
if (
|
3559
|
-
null != usable.value &&
|
3560
|
-
usable.value.$$typeof === REACT_CONTEXT_TYPE
|
3561
|
-
)
|
3562
|
-
throw Error(
|
3563
|
-
"Cannot read a Client Context from a Server Component."
|
3564
|
-
);
|
3565
|
-
throw Error("Cannot use() an already resolved Client Reference.");
|
3566
|
-
}
|
3567
|
-
throw Error(
|
3568
|
-
"An unsupported type was passed to use(): " + String(usable)
|
3569
|
-
);
|
3772
|
+
useCacheRefresh: function () {
|
3773
|
+
return unsupportedRefresh;
|
3570
3774
|
}
|
3571
3775
|
},
|
3572
3776
|
currentOwner = null,
|
@@ -3586,6 +3790,7 @@
|
|
3586
3790
|
throw Error(
|
3587
3791
|
'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.'
|
3588
3792
|
);
|
3793
|
+
var prefix, suffix;
|
3589
3794
|
new ("function" === typeof WeakMap ? WeakMap : Map)();
|
3590
3795
|
var callComponent = {
|
3591
3796
|
"react-stack-bottom-frame": function (
|
@@ -3772,12 +3977,12 @@
|
|
3772
3977
|
"React doesn't accept base64 encoded file uploads because we don't expect form data passed from a browser to ever encode data that way. If that's the wrong assumption, we can easily fix it."
|
3773
3978
|
);
|
3774
3979
|
pendingFiles++;
|
3775
|
-
var
|
3980
|
+
var JSCompiler_object_inline_chunks_150 = [];
|
3776
3981
|
value.on("data", function (chunk) {
|
3777
|
-
|
3982
|
+
JSCompiler_object_inline_chunks_150.push(chunk);
|
3778
3983
|
});
|
3779
3984
|
value.on("end", function () {
|
3780
|
-
var blob = new Blob(
|
3985
|
+
var blob = new Blob(JSCompiler_object_inline_chunks_150, {
|
3781
3986
|
type: mimeType
|
3782
3987
|
});
|
3783
3988
|
response._formData.append(name, blob, filename);
|