react-dom 19.3.0-canary-c7862584-20251006 → 19.3.0-canary-a4eb2dfa-20251006
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-dom-client.development.js +3068 -789
- package/cjs/react-dom-client.production.js +2657 -669
- package/cjs/react-dom-profiling.development.js +3067 -788
- package/cjs/react-dom-profiling.profiling.js +2879 -824
- package/cjs/react-dom-server-legacy.browser.development.js +153 -42
- package/cjs/react-dom-server-legacy.browser.production.js +476 -323
- package/cjs/react-dom-server-legacy.node.development.js +153 -42
- package/cjs/react-dom-server-legacy.node.production.js +476 -323
- package/cjs/react-dom-server.browser.development.js +230 -52
- package/cjs/react-dom-server.browser.production.js +530 -308
- package/cjs/react-dom-server.bun.development.js +225 -48
- package/cjs/react-dom-server.bun.production.js +527 -305
- package/cjs/react-dom-server.edge.development.js +230 -52
- package/cjs/react-dom-server.edge.production.js +530 -308
- package/cjs/react-dom-server.node.development.js +226 -46
- package/cjs/react-dom-server.node.production.js +524 -302
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
|
@@ -62,6 +62,8 @@
|
|
|
62
62
|
return "Suspense";
|
|
63
63
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
64
64
|
return "SuspenseList";
|
|
65
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
66
|
+
return "ViewTransition";
|
|
65
67
|
}
|
|
66
68
|
if ("object" === typeof type)
|
|
67
69
|
switch (type.$$typeof) {
|
|
@@ -1081,7 +1083,8 @@
|
|
|
1081
1083
|
return parentContext.insertionMode >= HTML_TABLE_MODE ||
|
|
1082
1084
|
parentContext.insertionMode < HTML_MODE
|
|
1083
1085
|
? createFormatContext(HTML_MODE, null, subtreeScope, null)
|
|
1084
|
-
: parentContext.
|
|
1086
|
+
: null !== parentContext.viewTransition ||
|
|
1087
|
+
parentContext.tagScope !== subtreeScope
|
|
1085
1088
|
? createFormatContext(
|
|
1086
1089
|
parentContext.insertionMode,
|
|
1087
1090
|
parentContext.selectedValue,
|
|
@@ -1104,7 +1107,8 @@
|
|
|
1104
1107
|
};
|
|
1105
1108
|
}
|
|
1106
1109
|
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
|
|
1107
|
-
parentContext.tagScope & 32 &&
|
|
1110
|
+
parentContext.tagScope & 32 &&
|
|
1111
|
+
(resumableState.instructions |= NeedUpgradeToViewTransitions);
|
|
1108
1112
|
return createFormatContext(
|
|
1109
1113
|
parentContext.insertionMode,
|
|
1110
1114
|
parentContext.selectedValue,
|
|
@@ -1125,12 +1129,37 @@
|
|
|
1125
1129
|
resumableState
|
|
1126
1130
|
);
|
|
1127
1131
|
}
|
|
1132
|
+
function makeId(resumableState, treeId, localId) {
|
|
1133
|
+
resumableState = "_" + resumableState.idPrefix + "R_" + treeId;
|
|
1134
|
+
0 < localId && (resumableState += "H" + localId.toString(32));
|
|
1135
|
+
return resumableState + "_";
|
|
1136
|
+
}
|
|
1128
1137
|
function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
1129
1138
|
if ("" === text) return textEmbedded;
|
|
1130
1139
|
textEmbedded && target.push(textSeparator);
|
|
1131
1140
|
target.push(escapeTextForBrowser(text));
|
|
1132
1141
|
return !0;
|
|
1133
1142
|
}
|
|
1143
|
+
function pushViewTransitionAttributes(target, formatContext) {
|
|
1144
|
+
formatContext = formatContext.viewTransition;
|
|
1145
|
+
null !== formatContext &&
|
|
1146
|
+
("auto" !== formatContext.name &&
|
|
1147
|
+
(pushStringAttribute(
|
|
1148
|
+
target,
|
|
1149
|
+
"vt-name",
|
|
1150
|
+
0 === formatContext.nameIdx
|
|
1151
|
+
? formatContext.name
|
|
1152
|
+
: formatContext.name + "_" + formatContext.nameIdx
|
|
1153
|
+
),
|
|
1154
|
+
formatContext.nameIdx++),
|
|
1155
|
+
pushStringAttribute(target, "vt-update", formatContext.update),
|
|
1156
|
+
"none" !== formatContext.enter &&
|
|
1157
|
+
pushStringAttribute(target, "vt-enter", formatContext.enter),
|
|
1158
|
+
"none" !== formatContext.exit &&
|
|
1159
|
+
pushStringAttribute(target, "vt-exit", formatContext.exit),
|
|
1160
|
+
"none" !== formatContext.share &&
|
|
1161
|
+
pushStringAttribute(target, "vt-share", formatContext.share));
|
|
1162
|
+
}
|
|
1134
1163
|
function pushStyleAttribute(target, style) {
|
|
1135
1164
|
if ("object" !== typeof style)
|
|
1136
1165
|
throw Error(
|
|
@@ -1678,7 +1707,7 @@
|
|
|
1678
1707
|
checkHtmlStringCoercion(styleText);
|
|
1679
1708
|
return ("" + styleText).replace(styleRegex, styleReplacer);
|
|
1680
1709
|
}
|
|
1681
|
-
function pushSelfClosing(target, props, tag) {
|
|
1710
|
+
function pushSelfClosing(target, props, tag, formatContext) {
|
|
1682
1711
|
target.push(startChunkForTag(tag));
|
|
1683
1712
|
for (var propKey in props)
|
|
1684
1713
|
if (hasOwnProperty.call(props, propKey)) {
|
|
@@ -1695,6 +1724,7 @@
|
|
|
1695
1724
|
pushAttribute(target, propKey, propValue);
|
|
1696
1725
|
}
|
|
1697
1726
|
}
|
|
1727
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
1698
1728
|
target.push(endOfStartTagSelfClosing);
|
|
1699
1729
|
return null;
|
|
1700
1730
|
}
|
|
@@ -1772,7 +1802,7 @@
|
|
|
1772
1802
|
target.push(endChunkForTag("script"));
|
|
1773
1803
|
return null;
|
|
1774
1804
|
}
|
|
1775
|
-
function pushStartSingletonElement(target, props, tag) {
|
|
1805
|
+
function pushStartSingletonElement(target, props, tag, formatContext) {
|
|
1776
1806
|
target.push(startChunkForTag(tag));
|
|
1777
1807
|
var innerHTML = (tag = null),
|
|
1778
1808
|
propKey;
|
|
@@ -1791,11 +1821,12 @@
|
|
|
1791
1821
|
pushAttribute(target, propKey, propValue);
|
|
1792
1822
|
}
|
|
1793
1823
|
}
|
|
1824
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
1794
1825
|
target.push(endOfStartTag);
|
|
1795
1826
|
pushInnerHTML(target, innerHTML, tag);
|
|
1796
1827
|
return tag;
|
|
1797
1828
|
}
|
|
1798
|
-
function pushStartGenericElement(target, props, tag) {
|
|
1829
|
+
function pushStartGenericElement(target, props, tag, formatContext) {
|
|
1799
1830
|
target.push(startChunkForTag(tag));
|
|
1800
1831
|
var innerHTML = (tag = null),
|
|
1801
1832
|
propKey;
|
|
@@ -1814,6 +1845,7 @@
|
|
|
1814
1845
|
pushAttribute(target, propKey, propValue);
|
|
1815
1846
|
}
|
|
1816
1847
|
}
|
|
1848
|
+
pushViewTransitionAttributes(target, formatContext);
|
|
1817
1849
|
target.push(endOfStartTag);
|
|
1818
1850
|
pushInnerHTML(target, innerHTML, tag);
|
|
1819
1851
|
return "string" === typeof tag
|
|
@@ -1919,6 +1951,7 @@
|
|
|
1919
1951
|
pushAttribute(target$jscomp$0, propKey, propValue);
|
|
1920
1952
|
}
|
|
1921
1953
|
}
|
|
1954
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1922
1955
|
target$jscomp$0.push(endOfStartTag);
|
|
1923
1956
|
pushInnerHTML(target$jscomp$0, innerHTML, children);
|
|
1924
1957
|
if ("string" === typeof children) {
|
|
@@ -1967,6 +2000,7 @@
|
|
|
1967
2000
|
);
|
|
1968
2001
|
}
|
|
1969
2002
|
}
|
|
2003
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
1970
2004
|
target$jscomp$0.push(endOfStartTag);
|
|
1971
2005
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$0, children$jscomp$0);
|
|
1972
2006
|
return children$jscomp$0;
|
|
@@ -2080,6 +2114,7 @@
|
|
|
2080
2114
|
null === value$jscomp$0 &&
|
|
2081
2115
|
null !== defaultValue &&
|
|
2082
2116
|
(value$jscomp$0 = defaultValue);
|
|
2117
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
2083
2118
|
target$jscomp$0.push(endOfStartTag);
|
|
2084
2119
|
if (null != children$jscomp$2) {
|
|
2085
2120
|
console.error(
|
|
@@ -2207,6 +2242,7 @@
|
|
|
2207
2242
|
? pushAttribute(target$jscomp$0, "value", value$jscomp$1)
|
|
2208
2243
|
: null !== defaultValue$jscomp$0 &&
|
|
2209
2244
|
pushAttribute(target$jscomp$0, "value", defaultValue$jscomp$0);
|
|
2245
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
2210
2246
|
target$jscomp$0.push(endOfStartTagSelfClosing);
|
|
2211
2247
|
null != formData &&
|
|
2212
2248
|
formData.forEach(pushAdditionalFormField, target$jscomp$0);
|
|
@@ -2273,6 +2309,7 @@
|
|
|
2273
2309
|
formTarget$jscomp$0,
|
|
2274
2310
|
name$jscomp$0
|
|
2275
2311
|
);
|
|
2312
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
2276
2313
|
target$jscomp$0.push(endOfStartTag);
|
|
2277
2314
|
null != formData$jscomp$0 &&
|
|
2278
2315
|
formData$jscomp$0.forEach(pushAdditionalFormField, target$jscomp$0);
|
|
@@ -2370,6 +2407,7 @@
|
|
|
2370
2407
|
pushAttribute(target$jscomp$0, "method", formMethod$jscomp$1);
|
|
2371
2408
|
null != formTarget$jscomp$1 &&
|
|
2372
2409
|
pushAttribute(target$jscomp$0, "target", formTarget$jscomp$1);
|
|
2410
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
2373
2411
|
target$jscomp$0.push(endOfStartTag);
|
|
2374
2412
|
null !== formActionName &&
|
|
2375
2413
|
(target$jscomp$0.push(startHiddenInputChunk),
|
|
@@ -2406,6 +2444,7 @@
|
|
|
2406
2444
|
);
|
|
2407
2445
|
}
|
|
2408
2446
|
}
|
|
2447
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
2409
2448
|
target$jscomp$0.push(endOfStartTag);
|
|
2410
2449
|
return null;
|
|
2411
2450
|
case "object":
|
|
@@ -2451,6 +2490,7 @@
|
|
|
2451
2490
|
);
|
|
2452
2491
|
}
|
|
2453
2492
|
}
|
|
2493
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
2454
2494
|
target$jscomp$0.push(endOfStartTag);
|
|
2455
2495
|
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
|
|
2456
2496
|
if ("string" === typeof children$jscomp$5) {
|
|
@@ -2834,20 +2874,32 @@
|
|
|
2834
2874
|
var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
|
|
2835
2875
|
target$jscomp$0,
|
|
2836
2876
|
props,
|
|
2837
|
-
"meta"
|
|
2877
|
+
"meta",
|
|
2878
|
+
formatContext
|
|
2838
2879
|
);
|
|
2839
2880
|
else
|
|
2840
2881
|
textEmbedded && target$jscomp$0.push(textSeparator),
|
|
2841
2882
|
(JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
|
|
2842
2883
|
? null
|
|
2843
2884
|
: "string" === typeof props.charSet
|
|
2844
|
-
? pushSelfClosing(
|
|
2885
|
+
? pushSelfClosing(
|
|
2886
|
+
renderState.charsetChunks,
|
|
2887
|
+
props,
|
|
2888
|
+
"meta",
|
|
2889
|
+
formatContext
|
|
2890
|
+
)
|
|
2845
2891
|
: "viewport" === props.name
|
|
2846
|
-
? pushSelfClosing(
|
|
2892
|
+
? pushSelfClosing(
|
|
2893
|
+
renderState.viewportChunks,
|
|
2894
|
+
props,
|
|
2895
|
+
"meta",
|
|
2896
|
+
formatContext
|
|
2897
|
+
)
|
|
2847
2898
|
: pushSelfClosing(
|
|
2848
2899
|
renderState.hoistableChunks,
|
|
2849
2900
|
props,
|
|
2850
|
-
"meta"
|
|
2901
|
+
"meta",
|
|
2902
|
+
formatContext
|
|
2851
2903
|
));
|
|
2852
2904
|
return JSCompiler_inline_result$jscomp$8;
|
|
2853
2905
|
case "listing":
|
|
@@ -2875,6 +2927,7 @@
|
|
|
2875
2927
|
);
|
|
2876
2928
|
}
|
|
2877
2929
|
}
|
|
2930
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
2878
2931
|
target$jscomp$0.push(endOfStartTag);
|
|
2879
2932
|
if (null != innerHTML$jscomp$7) {
|
|
2880
2933
|
if (null != children$jscomp$10)
|
|
@@ -2993,7 +3046,7 @@
|
|
|
2993
3046
|
promotablePreloads.set(key$jscomp$0, resource$jscomp$1)));
|
|
2994
3047
|
}
|
|
2995
3048
|
}
|
|
2996
|
-
return pushSelfClosing(target$jscomp$0, props, "img");
|
|
3049
|
+
return pushSelfClosing(target$jscomp$0, props, "img", formatContext);
|
|
2997
3050
|
case "base":
|
|
2998
3051
|
case "area":
|
|
2999
3052
|
case "br":
|
|
@@ -3005,7 +3058,7 @@
|
|
|
3005
3058
|
case "source":
|
|
3006
3059
|
case "track":
|
|
3007
3060
|
case "wbr":
|
|
3008
|
-
return pushSelfClosing(target$jscomp$0, props, type);
|
|
3061
|
+
return pushSelfClosing(target$jscomp$0, props, type, formatContext);
|
|
3009
3062
|
case "annotation-xml":
|
|
3010
3063
|
case "color-profile":
|
|
3011
3064
|
case "font-face":
|
|
@@ -3026,13 +3079,15 @@
|
|
|
3026
3079
|
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
|
3027
3080
|
preamble.headChunks,
|
|
3028
3081
|
props,
|
|
3029
|
-
"head"
|
|
3082
|
+
"head",
|
|
3083
|
+
formatContext
|
|
3030
3084
|
);
|
|
3031
3085
|
} else
|
|
3032
3086
|
JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
|
3033
3087
|
target$jscomp$0,
|
|
3034
3088
|
props,
|
|
3035
|
-
"head"
|
|
3089
|
+
"head",
|
|
3090
|
+
formatContext
|
|
3036
3091
|
);
|
|
3037
3092
|
return JSCompiler_inline_result$jscomp$9;
|
|
3038
3093
|
case "body":
|
|
@@ -3046,13 +3101,15 @@
|
|
|
3046
3101
|
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
|
3047
3102
|
preamble$jscomp$0.bodyChunks,
|
|
3048
3103
|
props,
|
|
3049
|
-
"body"
|
|
3104
|
+
"body",
|
|
3105
|
+
formatContext
|
|
3050
3106
|
);
|
|
3051
3107
|
} else
|
|
3052
3108
|
JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
|
3053
3109
|
target$jscomp$0,
|
|
3054
3110
|
props,
|
|
3055
|
-
"body"
|
|
3111
|
+
"body",
|
|
3112
|
+
formatContext
|
|
3056
3113
|
);
|
|
3057
3114
|
return JSCompiler_inline_result$jscomp$10;
|
|
3058
3115
|
case "html":
|
|
@@ -3066,13 +3123,15 @@
|
|
|
3066
3123
|
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
|
3067
3124
|
preamble$jscomp$1.htmlChunks,
|
|
3068
3125
|
props,
|
|
3069
|
-
"html"
|
|
3126
|
+
"html",
|
|
3127
|
+
formatContext
|
|
3070
3128
|
);
|
|
3071
3129
|
} else
|
|
3072
3130
|
JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
|
|
3073
3131
|
target$jscomp$0,
|
|
3074
3132
|
props,
|
|
3075
|
-
"html"
|
|
3133
|
+
"html",
|
|
3134
|
+
formatContext
|
|
3076
3135
|
);
|
|
3077
3136
|
return JSCompiler_inline_result$jscomp$11;
|
|
3078
3137
|
default:
|
|
@@ -3124,6 +3183,7 @@
|
|
|
3124
3183
|
}
|
|
3125
3184
|
}
|
|
3126
3185
|
}
|
|
3186
|
+
pushViewTransitionAttributes(target$jscomp$0, formatContext);
|
|
3127
3187
|
target$jscomp$0.push(endOfStartTag);
|
|
3128
3188
|
pushInnerHTML(
|
|
3129
3189
|
target$jscomp$0,
|
|
@@ -3133,7 +3193,12 @@
|
|
|
3133
3193
|
return children$jscomp$11;
|
|
3134
3194
|
}
|
|
3135
3195
|
}
|
|
3136
|
-
return pushStartGenericElement(
|
|
3196
|
+
return pushStartGenericElement(
|
|
3197
|
+
target$jscomp$0,
|
|
3198
|
+
props,
|
|
3199
|
+
type,
|
|
3200
|
+
formatContext
|
|
3201
|
+
);
|
|
3137
3202
|
}
|
|
3138
3203
|
function endChunkForTag(tag) {
|
|
3139
3204
|
var chunk = endTagCache.get(tag);
|
|
@@ -3671,6 +3736,8 @@
|
|
|
3671
3736
|
return "SuspenseList";
|
|
3672
3737
|
case REACT_ACTIVITY_TYPE:
|
|
3673
3738
|
return "Activity";
|
|
3739
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
3740
|
+
return "ViewTransition";
|
|
3674
3741
|
}
|
|
3675
3742
|
if ("object" === typeof type)
|
|
3676
3743
|
switch (
|
|
@@ -3800,6 +3867,13 @@
|
|
|
3800
3867
|
),
|
|
3801
3868
|
(didWarnAboutNoopUpdateForComponent[warningKey] = !0));
|
|
3802
3869
|
}
|
|
3870
|
+
function getTreeId(context) {
|
|
3871
|
+
var overflow = context.overflow;
|
|
3872
|
+
context = context.id;
|
|
3873
|
+
return (
|
|
3874
|
+
(context & ~(1 << (32 - clz32(context) - 1))).toString(32) + overflow
|
|
3875
|
+
);
|
|
3876
|
+
}
|
|
3803
3877
|
function pushTreeContext(baseContext, totalChildren, index) {
|
|
3804
3878
|
var baseIdWithLeadingBit = baseContext.id;
|
|
3805
3879
|
baseContext = baseContext.overflow;
|
|
@@ -4428,9 +4502,28 @@
|
|
|
4428
4502
|
return describeBuiltInComponentFrame("SuspenseList");
|
|
4429
4503
|
case REACT_SUSPENSE_TYPE:
|
|
4430
4504
|
return describeBuiltInComponentFrame("Suspense");
|
|
4505
|
+
case REACT_VIEW_TRANSITION_TYPE:
|
|
4506
|
+
return describeBuiltInComponentFrame("ViewTransition");
|
|
4431
4507
|
}
|
|
4432
4508
|
return "";
|
|
4433
4509
|
}
|
|
4510
|
+
function getViewTransitionClassName(defaultClass, eventClass) {
|
|
4511
|
+
defaultClass =
|
|
4512
|
+
null == defaultClass || "string" === typeof defaultClass
|
|
4513
|
+
? defaultClass
|
|
4514
|
+
: defaultClass.default;
|
|
4515
|
+
eventClass =
|
|
4516
|
+
null == eventClass || "string" === typeof eventClass
|
|
4517
|
+
? eventClass
|
|
4518
|
+
: eventClass.default;
|
|
4519
|
+
return null == eventClass
|
|
4520
|
+
? "auto" === defaultClass
|
|
4521
|
+
? null
|
|
4522
|
+
: defaultClass
|
|
4523
|
+
: "auto" === eventClass
|
|
4524
|
+
? null
|
|
4525
|
+
: eventClass;
|
|
4526
|
+
}
|
|
4434
4527
|
function resetOwnerStackLimit() {
|
|
4435
4528
|
var now = getCurrentTime();
|
|
4436
4529
|
1e3 < now - lastResetTime &&
|
|
@@ -5997,6 +6090,76 @@
|
|
|
5997
6090
|
}
|
|
5998
6091
|
return;
|
|
5999
6092
|
case REACT_VIEW_TRANSITION_TYPE:
|
|
6093
|
+
var prevContext$jscomp$0 = task.formatContext,
|
|
6094
|
+
prevKeyPath$jscomp$4 = task.keyPath;
|
|
6095
|
+
var resumableState$jscomp$0 = request.resumableState;
|
|
6096
|
+
if (null != props.name && "auto" !== props.name)
|
|
6097
|
+
var autoName = props.name;
|
|
6098
|
+
else {
|
|
6099
|
+
var treeId = getTreeId(task.treeContext);
|
|
6100
|
+
autoName = makeId(resumableState$jscomp$0, treeId, 0);
|
|
6101
|
+
}
|
|
6102
|
+
var resumableState$jscomp$1 = request.resumableState,
|
|
6103
|
+
update = getViewTransitionClassName(props.default, props.update),
|
|
6104
|
+
enter = getViewTransitionClassName(props.default, props.enter),
|
|
6105
|
+
exit = getViewTransitionClassName(props.default, props.exit),
|
|
6106
|
+
share = getViewTransitionClassName(props.default, props.share),
|
|
6107
|
+
name$jscomp$0 = props.name,
|
|
6108
|
+
autoName$jscomp$0 = autoName;
|
|
6109
|
+
null == update && (update = "auto");
|
|
6110
|
+
null == enter && (enter = "auto");
|
|
6111
|
+
null == exit && (exit = "auto");
|
|
6112
|
+
if (null == name$jscomp$0) {
|
|
6113
|
+
var parentViewTransition = prevContext$jscomp$0.viewTransition;
|
|
6114
|
+
null !== parentViewTransition
|
|
6115
|
+
? ((name$jscomp$0 = parentViewTransition.name),
|
|
6116
|
+
(share = parentViewTransition.share))
|
|
6117
|
+
: ((name$jscomp$0 = "auto"), (share = "none"));
|
|
6118
|
+
} else
|
|
6119
|
+
null == share && (share = "auto"),
|
|
6120
|
+
prevContext$jscomp$0.tagScope & 4 &&
|
|
6121
|
+
(resumableState$jscomp$1.instructions |=
|
|
6122
|
+
NeedUpgradeToViewTransitions);
|
|
6123
|
+
prevContext$jscomp$0.tagScope & 8
|
|
6124
|
+
? (resumableState$jscomp$1.instructions |=
|
|
6125
|
+
NeedUpgradeToViewTransitions)
|
|
6126
|
+
: (exit = "none");
|
|
6127
|
+
prevContext$jscomp$0.tagScope & 16
|
|
6128
|
+
? (resumableState$jscomp$1.instructions |=
|
|
6129
|
+
NeedUpgradeToViewTransitions)
|
|
6130
|
+
: (enter = "none");
|
|
6131
|
+
var viewTransition = {
|
|
6132
|
+
update: update,
|
|
6133
|
+
enter: enter,
|
|
6134
|
+
exit: exit,
|
|
6135
|
+
share: share,
|
|
6136
|
+
name: name$jscomp$0,
|
|
6137
|
+
autoName: autoName$jscomp$0,
|
|
6138
|
+
nameIdx: 0
|
|
6139
|
+
},
|
|
6140
|
+
subtreeScope = prevContext$jscomp$0.tagScope & -25;
|
|
6141
|
+
subtreeScope =
|
|
6142
|
+
"none" !== update ? subtreeScope | 32 : subtreeScope & -33;
|
|
6143
|
+
"none" !== enter && (subtreeScope |= 64);
|
|
6144
|
+
var JSCompiler_inline_result$jscomp$0 = createFormatContext(
|
|
6145
|
+
prevContext$jscomp$0.insertionMode,
|
|
6146
|
+
prevContext$jscomp$0.selectedValue,
|
|
6147
|
+
subtreeScope,
|
|
6148
|
+
viewTransition
|
|
6149
|
+
);
|
|
6150
|
+
task.formatContext = JSCompiler_inline_result$jscomp$0;
|
|
6151
|
+
task.keyPath = keyPath;
|
|
6152
|
+
if (null != props.name && "auto" !== props.name)
|
|
6153
|
+
renderNodeDestructive(request, task, props.children, -1);
|
|
6154
|
+
else {
|
|
6155
|
+
var prevTreeContext = task.treeContext;
|
|
6156
|
+
task.treeContext = pushTreeContext(prevTreeContext, 1, 0);
|
|
6157
|
+
renderNode(request, task, props.children, -1);
|
|
6158
|
+
task.treeContext = prevTreeContext;
|
|
6159
|
+
}
|
|
6160
|
+
task.formatContext = prevContext$jscomp$0;
|
|
6161
|
+
task.keyPath = prevKeyPath$jscomp$4;
|
|
6162
|
+
return;
|
|
6000
6163
|
case REACT_SCOPE_TYPE:
|
|
6001
6164
|
throw Error(
|
|
6002
6165
|
"ReactDOMServer does not yet support scope components."
|
|
@@ -6021,8 +6184,8 @@
|
|
|
6021
6184
|
(task.row = _prevRow);
|
|
6022
6185
|
}
|
|
6023
6186
|
} else {
|
|
6024
|
-
var prevKeyPath$jscomp$
|
|
6025
|
-
prevContext$jscomp$
|
|
6187
|
+
var prevKeyPath$jscomp$5 = task.keyPath,
|
|
6188
|
+
prevContext$jscomp$1 = task.formatContext,
|
|
6026
6189
|
prevRow$jscomp$0 = task.row,
|
|
6027
6190
|
parentBoundary = task.blockedBoundary,
|
|
6028
6191
|
parentPreamble = task.blockedPreamble,
|
|
@@ -6091,7 +6254,7 @@
|
|
|
6091
6254
|
task.keyPath = fallbackKeyPath;
|
|
6092
6255
|
task.formatContext = getSuspenseFallbackFormatContext(
|
|
6093
6256
|
request.resumableState,
|
|
6094
|
-
prevContext$jscomp$
|
|
6257
|
+
prevContext$jscomp$1
|
|
6095
6258
|
);
|
|
6096
6259
|
task.componentStack =
|
|
6097
6260
|
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
|
@@ -6114,8 +6277,8 @@
|
|
|
6114
6277
|
} finally {
|
|
6115
6278
|
(task.blockedSegment = parentSegment),
|
|
6116
6279
|
(task.blockedPreamble = parentPreamble),
|
|
6117
|
-
(task.keyPath = prevKeyPath$jscomp$
|
|
6118
|
-
(task.formatContext = prevContext$jscomp$
|
|
6280
|
+
(task.keyPath = prevKeyPath$jscomp$5),
|
|
6281
|
+
(task.formatContext = prevContext$jscomp$1);
|
|
6119
6282
|
}
|
|
6120
6283
|
var suspendedPrimaryTask = createRenderTask(
|
|
6121
6284
|
request,
|
|
@@ -6149,7 +6312,7 @@
|
|
|
6149
6312
|
task.keyPath = keyPath;
|
|
6150
6313
|
task.formatContext = getSuspenseContentFormatContext(
|
|
6151
6314
|
request.resumableState,
|
|
6152
|
-
prevContext$jscomp$
|
|
6315
|
+
prevContext$jscomp$1
|
|
6153
6316
|
);
|
|
6154
6317
|
task.row = null;
|
|
6155
6318
|
contentRootSegment.status = 6;
|
|
@@ -6209,8 +6372,8 @@
|
|
|
6209
6372
|
(task.blockedPreamble = parentPreamble),
|
|
6210
6373
|
(task.hoistableState = parentHoistableState),
|
|
6211
6374
|
(task.blockedSegment = parentSegment),
|
|
6212
|
-
(task.keyPath = prevKeyPath$jscomp$
|
|
6213
|
-
(task.formatContext = prevContext$jscomp$
|
|
6375
|
+
(task.keyPath = prevKeyPath$jscomp$5),
|
|
6376
|
+
(task.formatContext = prevContext$jscomp$1),
|
|
6214
6377
|
(task.row = prevRow$jscomp$0);
|
|
6215
6378
|
}
|
|
6216
6379
|
var suspendedFallbackTask = createRenderTask(
|
|
@@ -6276,7 +6439,7 @@
|
|
|
6276
6439
|
var value$jscomp$0 = props.value,
|
|
6277
6440
|
children$jscomp$2 = props.children;
|
|
6278
6441
|
var prevSnapshot = task.context;
|
|
6279
|
-
var prevKeyPath$jscomp$
|
|
6442
|
+
var prevKeyPath$jscomp$6 = task.keyPath;
|
|
6280
6443
|
var prevValue = type._currentValue;
|
|
6281
6444
|
type._currentValue = value$jscomp$0;
|
|
6282
6445
|
void 0 !== type._currentRenderer &&
|
|
@@ -6316,10 +6479,10 @@
|
|
|
6316
6479
|
"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
|
|
6317
6480
|
);
|
|
6318
6481
|
type._currentRenderer = rendererSigil;
|
|
6319
|
-
var JSCompiler_inline_result$jscomp$
|
|
6482
|
+
var JSCompiler_inline_result$jscomp$1 = (currentActiveSnapshot =
|
|
6320
6483
|
prevSnapshot$jscomp$0.parent);
|
|
6321
|
-
task.context = JSCompiler_inline_result$jscomp$
|
|
6322
|
-
task.keyPath = prevKeyPath$jscomp$
|
|
6484
|
+
task.context = JSCompiler_inline_result$jscomp$1;
|
|
6485
|
+
task.keyPath = prevKeyPath$jscomp$6;
|
|
6323
6486
|
prevSnapshot !== task.context &&
|
|
6324
6487
|
console.error(
|
|
6325
6488
|
"Popping the context provider did not return back to the original snapshot. This is a bug in React."
|
|
@@ -6333,10 +6496,10 @@
|
|
|
6333
6496
|
"A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
|
|
6334
6497
|
);
|
|
6335
6498
|
var newChildren = render(context$jscomp$0._currentValue),
|
|
6336
|
-
prevKeyPath$jscomp$
|
|
6499
|
+
prevKeyPath$jscomp$7 = task.keyPath;
|
|
6337
6500
|
task.keyPath = keyPath;
|
|
6338
6501
|
renderNodeDestructive(request, task, newChildren, -1);
|
|
6339
|
-
task.keyPath = prevKeyPath$jscomp$
|
|
6502
|
+
task.keyPath = prevKeyPath$jscomp$7;
|
|
6340
6503
|
return;
|
|
6341
6504
|
case REACT_LAZY_TYPE:
|
|
6342
6505
|
var Component = callLazyInitInDEV(type);
|
|
@@ -8087,7 +8250,10 @@
|
|
|
8087
8250
|
request = request.renderState;
|
|
8088
8251
|
i = boundary.rootSegmentID;
|
|
8089
8252
|
boundary = boundary.contentState;
|
|
8090
|
-
var requiresStyleInsertion = request.stylesToHoist
|
|
8253
|
+
var requiresStyleInsertion = request.stylesToHoist,
|
|
8254
|
+
requiresViewTransitions =
|
|
8255
|
+
(completedSegments.instructions & NeedUpgradeToViewTransitions) !==
|
|
8256
|
+
NothingSent;
|
|
8091
8257
|
request.stylesToHoist = !1;
|
|
8092
8258
|
writeChunk(destination, request.startInlineScript);
|
|
8093
8259
|
writeChunk(destination, endOfStartTag);
|
|
@@ -8100,6 +8266,14 @@
|
|
|
8100
8266
|
NothingSent &&
|
|
8101
8267
|
((completedSegments.instructions |= SentCompleteBoundaryFunction),
|
|
8102
8268
|
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
|
8269
|
+
requiresViewTransitions &&
|
|
8270
|
+
(completedSegments.instructions & SentUpgradeToViewTransitions) ===
|
|
8271
|
+
NothingSent &&
|
|
8272
|
+
((completedSegments.instructions |= SentUpgradeToViewTransitions),
|
|
8273
|
+
writeChunk(
|
|
8274
|
+
destination,
|
|
8275
|
+
completeBoundaryUpgradeToViewTransitionsInstruction
|
|
8276
|
+
)),
|
|
8103
8277
|
(completedSegments.instructions & SentStyleInsertionFunction) ===
|
|
8104
8278
|
NothingSent
|
|
8105
8279
|
? ((completedSegments.instructions |= SentStyleInsertionFunction),
|
|
@@ -8112,6 +8286,14 @@
|
|
|
8112
8286
|
NothingSent &&
|
|
8113
8287
|
((completedSegments.instructions |= SentCompleteBoundaryFunction),
|
|
8114
8288
|
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
|
8289
|
+
requiresViewTransitions &&
|
|
8290
|
+
(completedSegments.instructions & SentUpgradeToViewTransitions) ===
|
|
8291
|
+
NothingSent &&
|
|
8292
|
+
((completedSegments.instructions |= SentUpgradeToViewTransitions),
|
|
8293
|
+
writeChunk(
|
|
8294
|
+
destination,
|
|
8295
|
+
completeBoundaryUpgradeToViewTransitionsInstruction
|
|
8296
|
+
)),
|
|
8115
8297
|
writeChunk(destination, completeBoundaryScript1Partial));
|
|
8116
8298
|
completedSegments = i.toString(16);
|
|
8117
8299
|
writeChunk(destination, request.boundaryPrefix);
|
|
@@ -8682,11 +8864,11 @@
|
|
|
8682
8864
|
}
|
|
8683
8865
|
function ensureCorrectIsomorphicReactVersion() {
|
|
8684
8866
|
var isomorphicReactPackageVersion = React.version;
|
|
8685
|
-
if ("19.3.0-canary-
|
|
8867
|
+
if ("19.3.0-canary-a4eb2dfa-20251006" !== isomorphicReactPackageVersion)
|
|
8686
8868
|
throw Error(
|
|
8687
8869
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
8688
8870
|
(isomorphicReactPackageVersion +
|
|
8689
|
-
"\n - react-dom: 19.3.0-canary-
|
|
8871
|
+
"\n - react-dom: 19.3.0-canary-a4eb2dfa-20251006\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
8690
8872
|
);
|
|
8691
8873
|
}
|
|
8692
8874
|
function createDrainHandler(destination, request) {
|
|
@@ -9879,6 +10061,8 @@
|
|
|
9879
10061
|
SentStyleInsertionFunction = 8,
|
|
9880
10062
|
SentCompletedShellId = 32,
|
|
9881
10063
|
SentMarkShellTime = 64,
|
|
10064
|
+
NeedUpgradeToViewTransitions = 128,
|
|
10065
|
+
SentUpgradeToViewTransitions = 256,
|
|
9882
10066
|
EXISTS = null,
|
|
9883
10067
|
PRELOAD_NO_CREDS = [];
|
|
9884
10068
|
Object.freeze(PRELOAD_NO_CREDS);
|
|
@@ -10025,6 +10209,8 @@
|
|
|
10025
10209
|
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
|
10026
10210
|
'$RB=[];$RV=function(a){$RT=performance.now();for(var b=0;b<a.length;b+=2){var c=a[b],e=a[b+1];null!==e.parentNode&&e.parentNode.removeChild(e);var f=c.parentNode;if(f){var g=c.previousSibling,h=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d||"/&"===d)if(0===h)break;else h--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||h++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;e.firstChild;)f.insertBefore(e.firstChild,c);g.data="$";g._reactRetry&&requestAnimationFrame(g._reactRetry)}}a.length=0};\n$RC=function(a,b){if(b=document.getElementById(b))(a=document.getElementById(a))?(a.previousSibling.data="$~",$RB.push(a,b),2===$RB.length&&("number"!==typeof $RT?requestAnimationFrame($RV.bind(null,$RB)):(a=performance.now(),setTimeout($RV.bind(null,$RB),2300>a&&2E3<a?2300-a:$RT+300-a)))):b.parentNode.removeChild(b)};'
|
|
10027
10211
|
),
|
|
10212
|
+
completeBoundaryUpgradeToViewTransitionsInstruction =
|
|
10213
|
+
'$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),\nH=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(B){var z=\ndocument.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=\nperformance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);',
|
|
10028
10214
|
completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
|
10029
10215
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
|
10030
10216
|
'$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
|
|
@@ -10206,20 +10392,14 @@
|
|
|
10206
10392
|
return [!1, unsupportedStartTransition];
|
|
10207
10393
|
},
|
|
10208
10394
|
useId: function () {
|
|
10209
|
-
var treeId = currentlyRenderingTask.treeContext
|
|
10210
|
-
|
|
10211
|
-
treeId = treeId.id;
|
|
10212
|
-
treeId =
|
|
10213
|
-
(treeId & ~(1 << (32 - clz32(treeId) - 1))).toString(32) + overflow;
|
|
10214
|
-
var resumableState = currentResumableState;
|
|
10395
|
+
var treeId = getTreeId(currentlyRenderingTask.treeContext),
|
|
10396
|
+
resumableState = currentResumableState;
|
|
10215
10397
|
if (null === resumableState)
|
|
10216
10398
|
throw Error(
|
|
10217
10399
|
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
10218
10400
|
);
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
0 < overflow && (treeId += "H" + overflow.toString(32));
|
|
10222
|
-
return treeId + "_";
|
|
10401
|
+
var localId = localIdCounter++;
|
|
10402
|
+
return makeId(resumableState, treeId, localId);
|
|
10223
10403
|
},
|
|
10224
10404
|
useSyncExternalStore: function (
|
|
10225
10405
|
subscribe,
|
|
@@ -10799,5 +10979,5 @@
|
|
|
10799
10979
|
}
|
|
10800
10980
|
};
|
|
10801
10981
|
};
|
|
10802
|
-
exports.version = "19.3.0-canary-
|
|
10982
|
+
exports.version = "19.3.0-canary-a4eb2dfa-20251006";
|
|
10803
10983
|
})();
|