react-markup 0.0.0-experimental-526dd340-20250602 → 0.0.0-experimental-37054867-20250604
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.
|
@@ -252,13 +252,7 @@ function useId$1() {
|
|
|
252
252
|
if (null === currentRequest$1)
|
|
253
253
|
throw Error("useId can only be used while React is rendering");
|
|
254
254
|
var id = currentRequest$1.identifierCount++;
|
|
255
|
-
return (
|
|
256
|
-
"\u00ab" +
|
|
257
|
-
currentRequest$1.identifierPrefix +
|
|
258
|
-
"S" +
|
|
259
|
-
id.toString(32) +
|
|
260
|
-
"\u00bb"
|
|
261
|
-
);
|
|
255
|
+
return "_" + currentRequest$1.identifierPrefix + "S_" + id.toString(32) + "_";
|
|
262
256
|
}
|
|
263
257
|
function use$1(usable) {
|
|
264
258
|
if (
|
|
@@ -717,8 +711,8 @@ function serializeReadableStream(request, task, stream) {
|
|
|
717
711
|
tryStreamTask(request, streamTask),
|
|
718
712
|
enqueueFlush(request),
|
|
719
713
|
reader.read().then(progress, error);
|
|
720
|
-
} catch (x$
|
|
721
|
-
error(x$
|
|
714
|
+
} catch (x$11) {
|
|
715
|
+
error(x$11);
|
|
722
716
|
}
|
|
723
717
|
}
|
|
724
718
|
function error(reason) {
|
|
@@ -792,8 +786,8 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
792
786
|
tryStreamTask(request, streamTask),
|
|
793
787
|
enqueueFlush(request),
|
|
794
788
|
iterator.next().then(progress, error);
|
|
795
|
-
} catch (x$
|
|
796
|
-
error(x$
|
|
789
|
+
} catch (x$12) {
|
|
790
|
+
error(x$12);
|
|
797
791
|
}
|
|
798
792
|
}
|
|
799
793
|
function error(reason) {
|
|
@@ -1756,12 +1750,12 @@ function abort$1(request, reason) {
|
|
|
1756
1750
|
? Error("The render was aborted by the server with a promise.")
|
|
1757
1751
|
: reason,
|
|
1758
1752
|
digest = logRecoverableError$1(request, error, null),
|
|
1759
|
-
errorId$
|
|
1760
|
-
request.fatalError = errorId$
|
|
1753
|
+
errorId$29 = request.nextChunkId++;
|
|
1754
|
+
request.fatalError = errorId$29;
|
|
1761
1755
|
request.pendingChunks++;
|
|
1762
|
-
emitErrorChunk(request, errorId$
|
|
1756
|
+
emitErrorChunk(request, errorId$29, digest, error);
|
|
1763
1757
|
abortableTasks.forEach(function (task) {
|
|
1764
|
-
return abortTask$1(task, request, errorId$
|
|
1758
|
+
return abortTask$1(task, request, errorId$29);
|
|
1765
1759
|
});
|
|
1766
1760
|
}
|
|
1767
1761
|
abortableTasks.clear();
|
|
@@ -1769,7 +1763,7 @@ function abort$1(request, reason) {
|
|
|
1769
1763
|
}
|
|
1770
1764
|
var abortListeners = request.abortListeners;
|
|
1771
1765
|
if (0 < abortListeners.size) {
|
|
1772
|
-
var error$
|
|
1766
|
+
var error$30 =
|
|
1773
1767
|
"object" === typeof reason &&
|
|
1774
1768
|
null !== reason &&
|
|
1775
1769
|
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
@@ -1782,16 +1776,16 @@ function abort$1(request, reason) {
|
|
|
1782
1776
|
? Error("The render was aborted by the server with a promise.")
|
|
1783
1777
|
: reason;
|
|
1784
1778
|
abortListeners.forEach(function (callback) {
|
|
1785
|
-
return callback(error$
|
|
1779
|
+
return callback(error$30);
|
|
1786
1780
|
});
|
|
1787
1781
|
abortListeners.clear();
|
|
1788
1782
|
callOnAllReadyIfReady(request);
|
|
1789
1783
|
}
|
|
1790
1784
|
null !== request.destination &&
|
|
1791
1785
|
flushCompletedChunks(request, request.destination);
|
|
1792
|
-
} catch (error$
|
|
1793
|
-
logRecoverableError$1(request, error$
|
|
1794
|
-
fatalError$1(request, error$
|
|
1786
|
+
} catch (error$31) {
|
|
1787
|
+
logRecoverableError$1(request, error$31, null),
|
|
1788
|
+
fatalError$1(request, error$31);
|
|
1795
1789
|
}
|
|
1796
1790
|
}
|
|
1797
1791
|
var bind$1 = Function.prototype.bind,
|
|
@@ -1898,11 +1892,11 @@ function processReply(
|
|
|
1898
1892
|
0 === pendingParts && resolve(data);
|
|
1899
1893
|
} else
|
|
1900
1894
|
try {
|
|
1901
|
-
var partJSON$
|
|
1902
|
-
data.append(formFieldPrefix + streamId, partJSON$
|
|
1895
|
+
var partJSON$32 = JSON.stringify(entry.value, resolveToJSON);
|
|
1896
|
+
data.append(formFieldPrefix + streamId, partJSON$32);
|
|
1903
1897
|
iterator.next().then(progress, reject);
|
|
1904
|
-
} catch (x$
|
|
1905
|
-
reject(x$
|
|
1898
|
+
} catch (x$33) {
|
|
1899
|
+
reject(x$33);
|
|
1906
1900
|
}
|
|
1907
1901
|
}
|
|
1908
1902
|
null === formData && (formData = new FormData());
|
|
@@ -1947,20 +1941,20 @@ function processReply(
|
|
|
1947
1941
|
"function" === typeof x.then
|
|
1948
1942
|
) {
|
|
1949
1943
|
pendingParts++;
|
|
1950
|
-
var lazyId$
|
|
1944
|
+
var lazyId$34 = nextPartId++;
|
|
1951
1945
|
parentReference = function () {
|
|
1952
1946
|
try {
|
|
1953
|
-
var partJSON$
|
|
1954
|
-
data$
|
|
1955
|
-
data$
|
|
1947
|
+
var partJSON$35 = serializeModel(value, lazyId$34),
|
|
1948
|
+
data$36 = formData;
|
|
1949
|
+
data$36.append(formFieldPrefix + lazyId$34, partJSON$35);
|
|
1956
1950
|
pendingParts--;
|
|
1957
|
-
0 === pendingParts && resolve(data$
|
|
1951
|
+
0 === pendingParts && resolve(data$36);
|
|
1958
1952
|
} catch (reason) {
|
|
1959
1953
|
reject(reason);
|
|
1960
1954
|
}
|
|
1961
1955
|
};
|
|
1962
1956
|
x.then(parentReference, parentReference);
|
|
1963
|
-
return "$" + lazyId$
|
|
1957
|
+
return "$" + lazyId$34.toString(16);
|
|
1964
1958
|
}
|
|
1965
1959
|
reject(x);
|
|
1966
1960
|
return null;
|
|
@@ -1974,9 +1968,9 @@ function processReply(
|
|
|
1974
1968
|
var promiseId = nextPartId++;
|
|
1975
1969
|
value.then(function (partValue) {
|
|
1976
1970
|
try {
|
|
1977
|
-
var partJSON$
|
|
1971
|
+
var partJSON$38 = serializeModel(partValue, promiseId);
|
|
1978
1972
|
partValue = formData;
|
|
1979
|
-
partValue.append(formFieldPrefix + promiseId, partJSON$
|
|
1973
|
+
partValue.append(formFieldPrefix + promiseId, partJSON$38);
|
|
1980
1974
|
pendingParts--;
|
|
1981
1975
|
0 === pendingParts && resolve(partValue);
|
|
1982
1976
|
} catch (reason) {
|
|
@@ -2000,11 +1994,11 @@ function processReply(
|
|
|
2000
1994
|
if (isArrayImpl(value)) return value;
|
|
2001
1995
|
if (value instanceof FormData) {
|
|
2002
1996
|
null === formData && (formData = new FormData());
|
|
2003
|
-
var data$
|
|
1997
|
+
var data$42 = formData;
|
|
2004
1998
|
key = nextPartId++;
|
|
2005
|
-
var prefix$
|
|
1999
|
+
var prefix$43 = formFieldPrefix + key + "_";
|
|
2006
2000
|
value.forEach(function (originalValue, originalKey) {
|
|
2007
|
-
data$
|
|
2001
|
+
data$42.append(prefix$43 + originalKey, originalValue);
|
|
2008
2002
|
});
|
|
2009
2003
|
return "$K" + key.toString(16);
|
|
2010
2004
|
}
|
|
@@ -2893,8 +2887,8 @@ function startReadableStream(response, id, type) {
|
|
|
2893
2887
|
(previousBlockedChunk = chunk));
|
|
2894
2888
|
} else {
|
|
2895
2889
|
chunk = previousBlockedChunk;
|
|
2896
|
-
var chunk$
|
|
2897
|
-
chunk$
|
|
2890
|
+
var chunk$63 = createPendingChunk(response);
|
|
2891
|
+
chunk$63.then(
|
|
2898
2892
|
function (v) {
|
|
2899
2893
|
return controller.enqueue(v);
|
|
2900
2894
|
},
|
|
@@ -2902,10 +2896,10 @@ function startReadableStream(response, id, type) {
|
|
|
2902
2896
|
return controller.error(e);
|
|
2903
2897
|
}
|
|
2904
2898
|
);
|
|
2905
|
-
previousBlockedChunk = chunk$
|
|
2899
|
+
previousBlockedChunk = chunk$63;
|
|
2906
2900
|
chunk.then(function () {
|
|
2907
|
-
previousBlockedChunk === chunk$
|
|
2908
|
-
resolveModelChunk(chunk$
|
|
2901
|
+
previousBlockedChunk === chunk$63 && (previousBlockedChunk = null);
|
|
2902
|
+
resolveModelChunk(chunk$63, json);
|
|
2909
2903
|
});
|
|
2910
2904
|
}
|
|
2911
2905
|
},
|
|
@@ -3586,9 +3580,9 @@ function getSuspenseContentFormatContext(resumableState, parentContext) {
|
|
|
3586
3580
|
);
|
|
3587
3581
|
}
|
|
3588
3582
|
function makeId(resumableState, treeId, localId) {
|
|
3589
|
-
resumableState = "
|
|
3583
|
+
resumableState = "_" + resumableState.idPrefix + "R_" + treeId;
|
|
3590
3584
|
0 < localId && (resumableState += "H" + localId.toString(32));
|
|
3591
|
-
return resumableState + "
|
|
3585
|
+
return resumableState + "_";
|
|
3592
3586
|
}
|
|
3593
3587
|
function pushViewTransitionAttributes(target, formatContext) {
|
|
3594
3588
|
formatContext = formatContext.viewTransition;
|
|
@@ -3921,8 +3915,8 @@ function pushAttribute(target, name, value) {
|
|
|
3921
3915
|
case "symbol":
|
|
3922
3916
|
return;
|
|
3923
3917
|
case "boolean":
|
|
3924
|
-
var prefix$
|
|
3925
|
-
if ("data-" !== prefix$
|
|
3918
|
+
var prefix$73 = name.toLowerCase().slice(0, 5);
|
|
3919
|
+
if ("data-" !== prefix$73 && "aria-" !== prefix$73) return;
|
|
3926
3920
|
}
|
|
3927
3921
|
target.push(" ", name, '="', escapeTextForBrowser(value), '"');
|
|
3928
3922
|
}
|
|
@@ -4709,10 +4703,10 @@ function pushStartInstance$1(
|
|
|
4709
4703
|
styleQueue.sheets.set(href, resource);
|
|
4710
4704
|
hoistableState && hoistableState.stylesheets.add(resource);
|
|
4711
4705
|
} else if (styleQueue) {
|
|
4712
|
-
var resource$
|
|
4713
|
-
resource$
|
|
4706
|
+
var resource$74 = styleQueue.sheets.get(href);
|
|
4707
|
+
resource$74 &&
|
|
4714
4708
|
hoistableState &&
|
|
4715
|
-
hoistableState.stylesheets.add(resource$
|
|
4709
|
+
hoistableState.stylesheets.add(resource$74);
|
|
4716
4710
|
}
|
|
4717
4711
|
textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
|
|
4718
4712
|
JSCompiler_inline_result$jscomp$4 = null;
|
|
@@ -5473,7 +5467,7 @@ function pushCompletedShellIdAttribute(target, resumableState) {
|
|
|
5473
5467
|
((resumableState.instructions |= 32),
|
|
5474
5468
|
target.push(
|
|
5475
5469
|
' id="',
|
|
5476
|
-
escapeTextForBrowser("
|
|
5470
|
+
escapeTextForBrowser("_" + resumableState.idPrefix + "R_"),
|
|
5477
5471
|
'"'
|
|
5478
5472
|
));
|
|
5479
5473
|
}
|
|
@@ -6022,10 +6016,10 @@ function useActionState(action, initialState, permalink) {
|
|
|
6022
6016
|
var nextPostbackStateKey = null,
|
|
6023
6017
|
componentKeyPath = currentlyRenderingKeyPath;
|
|
6024
6018
|
request = request.formState;
|
|
6025
|
-
var isSignatureEqual$
|
|
6026
|
-
if (null !== request && "function" === typeof isSignatureEqual$
|
|
6019
|
+
var isSignatureEqual$77 = action.$$IS_SIGNATURE_EQUAL;
|
|
6020
|
+
if (null !== request && "function" === typeof isSignatureEqual$77) {
|
|
6027
6021
|
var postbackKey = request[1];
|
|
6028
|
-
isSignatureEqual$
|
|
6022
|
+
isSignatureEqual$77.call(action, request[2], request[3]) &&
|
|
6029
6023
|
((nextPostbackStateKey =
|
|
6030
6024
|
void 0 !== permalink
|
|
6031
6025
|
? "p" + permalink
|
|
@@ -6067,11 +6061,11 @@ function useActionState(action, initialState, permalink) {
|
|
|
6067
6061
|
});
|
|
6068
6062
|
return [initialState, action, !1];
|
|
6069
6063
|
}
|
|
6070
|
-
var boundAction$
|
|
6064
|
+
var boundAction$78 = action.bind(null, initialState);
|
|
6071
6065
|
return [
|
|
6072
6066
|
initialState,
|
|
6073
6067
|
function (payload) {
|
|
6074
|
-
boundAction$
|
|
6068
|
+
boundAction$78(payload);
|
|
6075
6069
|
},
|
|
6076
6070
|
!1
|
|
6077
6071
|
];
|
|
@@ -6607,7 +6601,11 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
|
6607
6601
|
var resumeSlots = task.replay.slots;
|
|
6608
6602
|
if (null !== resumeSlots && "object" === typeof resumeSlots)
|
|
6609
6603
|
for (var n = 0; n < keyPath; n++) {
|
|
6610
|
-
var i =
|
|
6604
|
+
var i =
|
|
6605
|
+
"backwards" !== revealOrder &&
|
|
6606
|
+
"unstable_legacy-backwards" !== revealOrder
|
|
6607
|
+
? n
|
|
6608
|
+
: keyPath - 1 - n,
|
|
6611
6609
|
node = rows[i];
|
|
6612
6610
|
task.row = previousSuspenseListRow = createSuspenseListRow(
|
|
6613
6611
|
previousSuspenseListRow
|
|
@@ -6624,7 +6622,8 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
|
6624
6622
|
else
|
|
6625
6623
|
for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
|
|
6626
6624
|
(n =
|
|
6627
|
-
"backwards" !== revealOrder
|
|
6625
|
+
"backwards" !== revealOrder &&
|
|
6626
|
+
"unstable_legacy-backwards" !== revealOrder
|
|
6628
6627
|
? resumeSlots
|
|
6629
6628
|
: keyPath - 1 - resumeSlots),
|
|
6630
6629
|
(i = rows[n]),
|
|
@@ -6634,7 +6633,10 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
|
6634
6633
|
renderNode(request, task, i, n),
|
|
6635
6634
|
0 === --previousSuspenseListRow.pendingTasks &&
|
|
6636
6635
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
6637
|
-
} else if (
|
|
6636
|
+
} else if (
|
|
6637
|
+
"backwards" !== revealOrder &&
|
|
6638
|
+
"unstable_legacy-backwards" !== revealOrder
|
|
6639
|
+
)
|
|
6638
6640
|
for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
|
|
6639
6641
|
(resumeSlots = rows[revealOrder]),
|
|
6640
6642
|
(task.row = previousSuspenseListRow =
|
|
@@ -6757,9 +6759,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6757
6759
|
var defaultProps = type.defaultProps;
|
|
6758
6760
|
if (defaultProps) {
|
|
6759
6761
|
newProps === props && (newProps = assign({}, newProps, props));
|
|
6760
|
-
for (var propName$
|
|
6761
|
-
void 0 === newProps[propName$
|
|
6762
|
-
(newProps[propName$
|
|
6762
|
+
for (var propName$100 in defaultProps)
|
|
6763
|
+
void 0 === newProps[propName$100] &&
|
|
6764
|
+
(newProps[propName$100] = defaultProps[propName$100]);
|
|
6763
6765
|
}
|
|
6764
6766
|
var JSCompiler_inline_result = newProps;
|
|
6765
6767
|
var context = emptyContextObject,
|
|
@@ -6926,13 +6928,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6926
6928
|
textEmbedded
|
|
6927
6929
|
);
|
|
6928
6930
|
segment.lastPushedText = !1;
|
|
6929
|
-
var prevContext$
|
|
6930
|
-
prevKeyPath$
|
|
6931
|
+
var prevContext$98 = task.formatContext,
|
|
6932
|
+
prevKeyPath$99 = task.keyPath;
|
|
6931
6933
|
task.keyPath = keyPath;
|
|
6932
6934
|
if (
|
|
6933
6935
|
3 ===
|
|
6934
6936
|
(task.formatContext = getChildFormatContext(
|
|
6935
|
-
prevContext$
|
|
6937
|
+
prevContext$98,
|
|
6936
6938
|
type,
|
|
6937
6939
|
props
|
|
6938
6940
|
)).insertionMode
|
|
@@ -6966,8 +6968,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6966
6968
|
pushComponentStack(preambleTask);
|
|
6967
6969
|
request.pingedTasks.push(preambleTask);
|
|
6968
6970
|
} else renderNode(request, task, JSCompiler_inline_result$jscomp$2, -1);
|
|
6969
|
-
task.formatContext = prevContext$
|
|
6970
|
-
task.keyPath = prevKeyPath$
|
|
6971
|
+
task.formatContext = prevContext$98;
|
|
6972
|
+
task.keyPath = prevKeyPath$99;
|
|
6971
6973
|
a: {
|
|
6972
6974
|
var target$jscomp$0 = segment.chunks,
|
|
6973
6975
|
resumableState$jscomp$0 = request.resumableState;
|
|
@@ -6992,19 +6994,19 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6992
6994
|
case "wbr":
|
|
6993
6995
|
break a;
|
|
6994
6996
|
case "body":
|
|
6995
|
-
if (1 >= prevContext$
|
|
6997
|
+
if (1 >= prevContext$98.insertionMode) {
|
|
6996
6998
|
resumableState$jscomp$0.hasBody = !0;
|
|
6997
6999
|
break a;
|
|
6998
7000
|
}
|
|
6999
7001
|
break;
|
|
7000
7002
|
case "html":
|
|
7001
|
-
if (0 === prevContext$
|
|
7003
|
+
if (0 === prevContext$98.insertionMode) {
|
|
7002
7004
|
resumableState$jscomp$0.hasHtml = !0;
|
|
7003
7005
|
break a;
|
|
7004
7006
|
}
|
|
7005
7007
|
break;
|
|
7006
7008
|
case "head":
|
|
7007
|
-
if (1 >= prevContext$
|
|
7009
|
+
if (1 >= prevContext$98.insertionMode) break a;
|
|
7008
7010
|
}
|
|
7009
7011
|
target$jscomp$0.push(endChunkForTag(type));
|
|
7010
7012
|
}
|
|
@@ -7032,10 +7034,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7032
7034
|
}
|
|
7033
7035
|
} else if ("hidden" !== props.mode) {
|
|
7034
7036
|
segment$jscomp$0.lastPushedText = !1;
|
|
7035
|
-
var prevKeyPath$
|
|
7037
|
+
var prevKeyPath$102 = task.keyPath;
|
|
7036
7038
|
task.keyPath = keyPath;
|
|
7037
7039
|
renderNode(request, task, props.children, -1);
|
|
7038
|
-
task.keyPath = prevKeyPath$
|
|
7040
|
+
task.keyPath = prevKeyPath$102;
|
|
7039
7041
|
segment$jscomp$0.lastPushedText = !1;
|
|
7040
7042
|
}
|
|
7041
7043
|
return;
|
|
@@ -7043,7 +7045,11 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7043
7045
|
a: {
|
|
7044
7046
|
var children$jscomp$0 = props.children,
|
|
7045
7047
|
revealOrder = props.revealOrder;
|
|
7046
|
-
if (
|
|
7048
|
+
if (
|
|
7049
|
+
"forwards" === revealOrder ||
|
|
7050
|
+
"backwards" === revealOrder ||
|
|
7051
|
+
"unstable_legacy-backwards" === revealOrder
|
|
7052
|
+
) {
|
|
7047
7053
|
if (isArrayImpl(children$jscomp$0)) {
|
|
7048
7054
|
renderSuspenseListRows(
|
|
7049
7055
|
request,
|
|
@@ -7074,35 +7080,35 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7074
7080
|
}
|
|
7075
7081
|
}
|
|
7076
7082
|
if ("function" === typeof children$jscomp$0[ASYNC_ITERATOR]) {
|
|
7077
|
-
var iterator$
|
|
7078
|
-
if (iterator$
|
|
7083
|
+
var iterator$93 = children$jscomp$0[ASYNC_ITERATOR]();
|
|
7084
|
+
if (iterator$93) {
|
|
7079
7085
|
var prevThenableState = task.thenableState;
|
|
7080
7086
|
task.thenableState = null;
|
|
7081
7087
|
thenableIndexCounter = 0;
|
|
7082
7088
|
thenableState = prevThenableState;
|
|
7083
7089
|
var rows = [],
|
|
7084
7090
|
done = !1;
|
|
7085
|
-
if (iterator$
|
|
7091
|
+
if (iterator$93 === children$jscomp$0)
|
|
7086
7092
|
for (
|
|
7087
|
-
var step$
|
|
7088
|
-
void 0 !== step$
|
|
7093
|
+
var step$94 = readPreviousThenableFromState();
|
|
7094
|
+
void 0 !== step$94;
|
|
7089
7095
|
|
|
7090
7096
|
) {
|
|
7091
|
-
if (step$
|
|
7097
|
+
if (step$94.done) {
|
|
7092
7098
|
done = !0;
|
|
7093
7099
|
break;
|
|
7094
7100
|
}
|
|
7095
|
-
rows.push(step$
|
|
7096
|
-
step$
|
|
7101
|
+
rows.push(step$94.value);
|
|
7102
|
+
step$94 = readPreviousThenableFromState();
|
|
7097
7103
|
}
|
|
7098
7104
|
if (!done)
|
|
7099
7105
|
for (
|
|
7100
|
-
var step$
|
|
7101
|
-
!step$
|
|
7106
|
+
var step$95 = unwrapThenable(iterator$93.next());
|
|
7107
|
+
!step$95.done;
|
|
7102
7108
|
|
|
7103
7109
|
)
|
|
7104
|
-
rows.push(step$
|
|
7105
|
-
(step$
|
|
7110
|
+
rows.push(step$95.value),
|
|
7111
|
+
(step$95 = unwrapThenable(iterator$93.next()));
|
|
7106
7112
|
renderSuspenseListRows(
|
|
7107
7113
|
request,
|
|
7108
7114
|
task,
|
|
@@ -7115,7 +7121,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7115
7121
|
}
|
|
7116
7122
|
}
|
|
7117
7123
|
if ("together" === revealOrder) {
|
|
7118
|
-
var prevKeyPath$
|
|
7124
|
+
var prevKeyPath$96 = task.keyPath,
|
|
7119
7125
|
prevRow = task.row,
|
|
7120
7126
|
newRow = (task.row = createSuspenseListRow(null));
|
|
7121
7127
|
newRow.boundaries = [];
|
|
@@ -7124,7 +7130,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7124
7130
|
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
7125
7131
|
0 === --newRow.pendingTasks &&
|
|
7126
7132
|
finishSuspenseListRow(request, newRow);
|
|
7127
|
-
task.keyPath = prevKeyPath$
|
|
7133
|
+
task.keyPath = prevKeyPath$96;
|
|
7128
7134
|
task.row = prevRow;
|
|
7129
7135
|
null !== prevRow &&
|
|
7130
7136
|
0 < newRow.pendingTasks &&
|
|
@@ -7162,22 +7168,22 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7162
7168
|
throw Error("ReactDOMServer does not yet support scope components.");
|
|
7163
7169
|
case REACT_SUSPENSE_TYPE:
|
|
7164
7170
|
a: if (null !== task.replay) {
|
|
7165
|
-
var prevKeyPath$
|
|
7166
|
-
prevContext$
|
|
7167
|
-
prevRow$
|
|
7171
|
+
var prevKeyPath$80 = task.keyPath,
|
|
7172
|
+
prevContext$81 = task.formatContext,
|
|
7173
|
+
prevRow$82 = task.row;
|
|
7168
7174
|
task.keyPath = keyPath;
|
|
7169
7175
|
task.formatContext = getSuspenseContentFormatContext(
|
|
7170
7176
|
request.resumableState,
|
|
7171
|
-
prevContext$
|
|
7177
|
+
prevContext$81
|
|
7172
7178
|
);
|
|
7173
7179
|
task.row = null;
|
|
7174
|
-
var content$
|
|
7180
|
+
var content$83 = props.children;
|
|
7175
7181
|
try {
|
|
7176
|
-
renderNode(request, task, content$
|
|
7182
|
+
renderNode(request, task, content$83, -1);
|
|
7177
7183
|
} finally {
|
|
7178
|
-
(task.keyPath = prevKeyPath$
|
|
7179
|
-
(task.formatContext = prevContext$
|
|
7180
|
-
(task.row = prevRow$
|
|
7184
|
+
(task.keyPath = prevKeyPath$80),
|
|
7185
|
+
(task.formatContext = prevContext$81),
|
|
7186
|
+
(task.row = prevRow$82);
|
|
7181
7187
|
}
|
|
7182
7188
|
} else {
|
|
7183
7189
|
var prevKeyPath$jscomp$5 = task.keyPath,
|
|
@@ -7316,12 +7322,12 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7316
7322
|
null !== prevRow$jscomp$0 &&
|
|
7317
7323
|
prevRow$jscomp$0.together &&
|
|
7318
7324
|
tryToResolveTogetherRow(request, prevRow$jscomp$0);
|
|
7319
|
-
} catch (thrownValue$
|
|
7325
|
+
} catch (thrownValue$84) {
|
|
7320
7326
|
newBoundary.status = 4;
|
|
7321
7327
|
if (12 === request.status) {
|
|
7322
7328
|
contentRootSegment.status = 3;
|
|
7323
7329
|
var error = request.fatalError;
|
|
7324
|
-
} else (contentRootSegment.status = 4), (error = thrownValue$
|
|
7330
|
+
} else (contentRootSegment.status = 4), (error = thrownValue$84);
|
|
7325
7331
|
var thrownInfo = getThrownInfo(task.componentStack);
|
|
7326
7332
|
if (
|
|
7327
7333
|
"object" === typeof error &&
|
|
@@ -8055,15 +8061,15 @@ function renderNode(request, task, node, childIndex) {
|
|
|
8055
8061
|
chunkLength = segment.chunks.length;
|
|
8056
8062
|
try {
|
|
8057
8063
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
8058
|
-
} catch (thrownValue$
|
|
8064
|
+
} catch (thrownValue$123) {
|
|
8059
8065
|
if (
|
|
8060
8066
|
(resetHooksState(),
|
|
8061
8067
|
(segment.children.length = childrenLength),
|
|
8062
8068
|
(segment.chunks.length = chunkLength),
|
|
8063
8069
|
(childIndex =
|
|
8064
|
-
thrownValue$
|
|
8070
|
+
thrownValue$123 === SuspenseException
|
|
8065
8071
|
? getSuspendedThenable()
|
|
8066
|
-
: thrownValue$
|
|
8072
|
+
: thrownValue$123),
|
|
8067
8073
|
"object" === typeof childIndex && null !== childIndex)
|
|
8068
8074
|
) {
|
|
8069
8075
|
if ("function" === typeof childIndex.then) {
|
|
@@ -8265,16 +8271,16 @@ function abortTask(task, request, error) {
|
|
|
8265
8271
|
0 === request.pendingRootTasks && completeShell(request);
|
|
8266
8272
|
}
|
|
8267
8273
|
} else {
|
|
8268
|
-
var trackedPostpones$
|
|
8274
|
+
var trackedPostpones$126 = request.trackedPostpones;
|
|
8269
8275
|
if (4 !== boundary.status) {
|
|
8270
|
-
if (null !== trackedPostpones$
|
|
8276
|
+
if (null !== trackedPostpones$126 && null !== segment)
|
|
8271
8277
|
return (
|
|
8272
8278
|
"object" === typeof error &&
|
|
8273
8279
|
null !== error &&
|
|
8274
8280
|
error.$$typeof === REACT_POSTPONE_TYPE
|
|
8275
8281
|
? logPostpone(request, error.message, errorInfo)
|
|
8276
8282
|
: logRecoverableError(request, error, errorInfo),
|
|
8277
|
-
trackPostpone(request, trackedPostpones$
|
|
8283
|
+
trackPostpone(request, trackedPostpones$126, task, segment),
|
|
8278
8284
|
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
8279
8285
|
return abortTask(fallbackTask, request, error);
|
|
8280
8286
|
}),
|
|
@@ -8643,13 +8649,13 @@ function performWork(request$jscomp$1) {
|
|
|
8643
8649
|
null !== request.trackedPostpones &&
|
|
8644
8650
|
x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
|
|
8645
8651
|
) {
|
|
8646
|
-
var trackedPostpones$
|
|
8652
|
+
var trackedPostpones$132 = request.trackedPostpones;
|
|
8647
8653
|
task.abortSet.delete(task);
|
|
8648
8654
|
var postponeInfo = getThrownInfo(task.componentStack);
|
|
8649
8655
|
logPostpone(request, x$jscomp$0.message, postponeInfo);
|
|
8650
8656
|
trackPostpone(
|
|
8651
8657
|
request,
|
|
8652
|
-
trackedPostpones$
|
|
8658
|
+
trackedPostpones$132,
|
|
8653
8659
|
task,
|
|
8654
8660
|
segment$jscomp$0
|
|
8655
8661
|
);
|
|
@@ -8959,7 +8965,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
8959
8965
|
0 === (completedSegments.instructions & 256) &&
|
|
8960
8966
|
((completedSegments.instructions |= 256),
|
|
8961
8967
|
destination.push(
|
|
8962
|
-
'$RV=function(w,f){function h(a,d){var k=a.getAttribute(d);k&&(d=a.style,l.push(a,d.viewTransitionName,d.viewTransitionClass),"auto"!==k&&(d.viewTransitionClass=k),(a=a.getAttribute("vt-name"))||(a="
|
|
8968
|
+
'$RV=function(w,f){function h(a,d){var k=a.getAttribute(d);k&&(d=a.style,l.push(a,d.viewTransitionName,d.viewTransitionClass),"auto"!==k&&(d.viewTransitionClass=k),(a=a.getAttribute("vt-name"))||(a="_T_"+F++ +"_"),d.viewTransitionName=a,x=!0)}var x=!1,F=0,l=[];try{var e=document.__reactViewTransition;if(e){e.finished.finally($RV.bind(null,f));return}var m=new Map;for(e=1;e<f.length;e+=2)for(var g=f[e].querySelectorAll("[vt-share]"),c=0;c<g.length;c++){var b=g[c];m.set(b.getAttribute("vt-name"),b)}for(g=0;g<f.length;g+=2){var y=f[g],t=y.parentNode;if(t){var r=t.getBoundingClientRect();if(r.left||r.top||r.width||r.height){b=y;for(e=0;b;){if(8===b.nodeType){var p=b.data;if("/$"===p)if(0===e)break;else e--;else"$"!==p&&"$?"!==p&&"$~"!==p&&"$!"!==p||e++}else if(1===b.nodeType){c=b;var z=c.getAttribute("vt-name"),u=m.get(z);h(c,u?"vt-share":"vt-exit");u&&(h(u,"vt-share"),m.set(z,null));var A=c.querySelectorAll("[vt-share]");for(c=0;c<A.length;c++){var B=A[c],C=B.getAttribute("vt-name"),D=m.get(C);\nD&&(h(B,"vt-share"),h(D,"vt-share"),m.set(C,null))}}b=b.nextSibling}for(var q=f[g+1].firstElementChild;q;)null!==m.get(q.getAttribute("vt-name"))&&h(q,"vt-enter"),q=q.nextElementSibling;b=t;do for(var n=b.firstElementChild;n;){var E=n.getAttribute("vt-update");E&&"none"!==E&&!l.includes(n)&&h(n,"vt-update");n=n.nextElementSibling}while((b=b.parentNode)&&1===b.nodeType&&"none"!==b.getAttribute("vt-update"))}}}if(x){var v=document.__reactViewTransition=document.startViewTransition({update:function(){w(f,\ndocument.documentElement.clientHeight);return Promise.race([document.fonts.ready,new Promise(function(a){return setTimeout(a,500)})])},types:[]});v.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var d=l[a],k=d.style;k.viewTransitionName=l[a+1];k.viewTransitionClass=l[a+1];""===d.getAttribute("style")&&d.removeAttribute("style")}});v.finished.finally(function(){document.__reactViewTransition===v&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}w(f)}.bind(null,$RV);'
|
|
8963
8969
|
)),
|
|
8964
8970
|
0 === (completedSegments.instructions & 8)
|
|
8965
8971
|
? ((completedSegments.instructions |= 8),
|
|
@@ -8976,7 +8982,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
8976
8982
|
0 === (completedSegments.instructions & 256) &&
|
|
8977
8983
|
((completedSegments.instructions |= 256),
|
|
8978
8984
|
destination.push(
|
|
8979
|
-
'$RV=function(w,f){function h(a,d){var k=a.getAttribute(d);k&&(d=a.style,l.push(a,d.viewTransitionName,d.viewTransitionClass),"auto"!==k&&(d.viewTransitionClass=k),(a=a.getAttribute("vt-name"))||(a="
|
|
8985
|
+
'$RV=function(w,f){function h(a,d){var k=a.getAttribute(d);k&&(d=a.style,l.push(a,d.viewTransitionName,d.viewTransitionClass),"auto"!==k&&(d.viewTransitionClass=k),(a=a.getAttribute("vt-name"))||(a="_T_"+F++ +"_"),d.viewTransitionName=a,x=!0)}var x=!1,F=0,l=[];try{var e=document.__reactViewTransition;if(e){e.finished.finally($RV.bind(null,f));return}var m=new Map;for(e=1;e<f.length;e+=2)for(var g=f[e].querySelectorAll("[vt-share]"),c=0;c<g.length;c++){var b=g[c];m.set(b.getAttribute("vt-name"),b)}for(g=0;g<f.length;g+=2){var y=f[g],t=y.parentNode;if(t){var r=t.getBoundingClientRect();if(r.left||r.top||r.width||r.height){b=y;for(e=0;b;){if(8===b.nodeType){var p=b.data;if("/$"===p)if(0===e)break;else e--;else"$"!==p&&"$?"!==p&&"$~"!==p&&"$!"!==p||e++}else if(1===b.nodeType){c=b;var z=c.getAttribute("vt-name"),u=m.get(z);h(c,u?"vt-share":"vt-exit");u&&(h(u,"vt-share"),m.set(z,null));var A=c.querySelectorAll("[vt-share]");for(c=0;c<A.length;c++){var B=A[c],C=B.getAttribute("vt-name"),D=m.get(C);\nD&&(h(B,"vt-share"),h(D,"vt-share"),m.set(C,null))}}b=b.nextSibling}for(var q=f[g+1].firstElementChild;q;)null!==m.get(q.getAttribute("vt-name"))&&h(q,"vt-enter"),q=q.nextElementSibling;b=t;do for(var n=b.firstElementChild;n;){var E=n.getAttribute("vt-update");E&&"none"!==E&&!l.includes(n)&&h(n,"vt-update");n=n.nextElementSibling}while((b=b.parentNode)&&1===b.nodeType&&"none"!==b.getAttribute("vt-update"))}}}if(x){var v=document.__reactViewTransition=document.startViewTransition({update:function(){w(f,\ndocument.documentElement.clientHeight);return Promise.race([document.fonts.ready,new Promise(function(a){return setTimeout(a,500)})])},types:[]});v.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var d=l[a],k=d.style;k.viewTransitionName=l[a+1];k.viewTransitionClass=l[a+1];""===d.getAttribute("style")&&d.removeAttribute("style")}});v.finished.finally(function(){document.__reactViewTransition===v&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}w(f)}.bind(null,$RV);'
|
|
8980
8986
|
)),
|
|
8981
8987
|
destination.push('$RC("')))
|
|
8982
8988
|
: requiresStyleInsertion
|
|
@@ -9234,12 +9240,12 @@ function flushCompletedQueues(request, destination) {
|
|
|
9234
9240
|
completedBoundaries.splice(0, i);
|
|
9235
9241
|
var partialBoundaries = request.partialBoundaries;
|
|
9236
9242
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
9237
|
-
var boundary$
|
|
9243
|
+
var boundary$136 = partialBoundaries[i];
|
|
9238
9244
|
a: {
|
|
9239
9245
|
clientRenderedBoundaries = request;
|
|
9240
9246
|
boundary = destination;
|
|
9241
|
-
flushedByteSize = boundary$
|
|
9242
|
-
var completedSegments = boundary$
|
|
9247
|
+
flushedByteSize = boundary$136.byteSize;
|
|
9248
|
+
var completedSegments = boundary$136.completedSegments;
|
|
9243
9249
|
for (
|
|
9244
9250
|
JSCompiler_inline_result = 0;
|
|
9245
9251
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -9249,7 +9255,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
9249
9255
|
!flushPartiallyCompletedSegment(
|
|
9250
9256
|
clientRenderedBoundaries,
|
|
9251
9257
|
boundary,
|
|
9252
|
-
boundary$
|
|
9258
|
+
boundary$136,
|
|
9253
9259
|
completedSegments[JSCompiler_inline_result]
|
|
9254
9260
|
)
|
|
9255
9261
|
) {
|
|
@@ -9259,10 +9265,10 @@ function flushCompletedQueues(request, destination) {
|
|
|
9259
9265
|
break a;
|
|
9260
9266
|
}
|
|
9261
9267
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
9262
|
-
var row = boundary$
|
|
9268
|
+
var row = boundary$136.row;
|
|
9263
9269
|
null !== row &&
|
|
9264
9270
|
row.together &&
|
|
9265
|
-
1 === boundary$
|
|
9271
|
+
1 === boundary$136.pendingTasks &&
|
|
9266
9272
|
(1 === row.pendingTasks
|
|
9267
9273
|
? unblockSuspenseListRow(
|
|
9268
9274
|
clientRenderedBoundaries,
|
|
@@ -9272,7 +9278,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
9272
9278
|
: row.pendingTasks--);
|
|
9273
9279
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
9274
9280
|
boundary,
|
|
9275
|
-
boundary$
|
|
9281
|
+
boundary$136.contentState,
|
|
9276
9282
|
clientRenderedBoundaries.renderState
|
|
9277
9283
|
);
|
|
9278
9284
|
}
|
|
@@ -9343,8 +9349,8 @@ function abort(request, reason) {
|
|
|
9343
9349
|
}
|
|
9344
9350
|
null !== request.destination &&
|
|
9345
9351
|
flushCompletedQueues(request, request.destination);
|
|
9346
|
-
} catch (error$
|
|
9347
|
-
logRecoverableError(request, error$
|
|
9352
|
+
} catch (error$138) {
|
|
9353
|
+
logRecoverableError(request, error$138, {}), fatalError(request, error$138);
|
|
9348
9354
|
}
|
|
9349
9355
|
}
|
|
9350
9356
|
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
@@ -9475,6 +9481,7 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
9475
9481
|
break;
|
|
9476
9482
|
case 78:
|
|
9477
9483
|
case 68:
|
|
9484
|
+
case 74:
|
|
9478
9485
|
case 87:
|
|
9479
9486
|
throw Error(
|
|
9480
9487
|
"Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client."
|
|
@@ -9655,4 +9662,4 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
9655
9662
|
});
|
|
9656
9663
|
});
|
|
9657
9664
|
};
|
|
9658
|
-
exports.version = "19.2.0-experimental-
|
|
9665
|
+
exports.version = "19.2.0-experimental-37054867-20250604";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-markup",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-37054867-20250604",
|
|
4
4
|
"description": "React package generating embedded markup such as e-mails with support for Server Components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://react.dev/",
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"react": "0.0.0-experimental-
|
|
20
|
+
"react": "0.0.0-experimental-37054867-20250604"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"LICENSE",
|