react-markup 0.0.0-experimental-7a2c7045-20250506 → 0.0.0-experimental-0ff1d13b-20250507
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.
|
@@ -136,10 +136,57 @@
|
|
|
136
136
|
);
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function collectStackTrace(error, structuredStackTrace) {
|
|
140
|
+
for (
|
|
141
|
+
var result = [], i = framesToSkip;
|
|
142
|
+
i < structuredStackTrace.length;
|
|
143
|
+
i++
|
|
144
|
+
) {
|
|
145
|
+
var callSite = structuredStackTrace[i],
|
|
146
|
+
_name = callSite.getFunctionName() || "<anonymous>";
|
|
147
|
+
if ("react-stack-bottom-frame" === _name) break;
|
|
148
|
+
else if (callSite.isNative()) result.push([_name, "", 0, 0]);
|
|
149
|
+
else {
|
|
150
|
+
if (callSite.isConstructor()) _name = "new " + _name;
|
|
151
|
+
else if (!callSite.isToplevel()) {
|
|
152
|
+
var callSite$jscomp$0 = callSite;
|
|
153
|
+
_name = callSite$jscomp$0.getTypeName();
|
|
154
|
+
var methodName = callSite$jscomp$0.getMethodName();
|
|
155
|
+
callSite$jscomp$0 = callSite$jscomp$0.getFunctionName();
|
|
156
|
+
var result$jscomp$0 = "";
|
|
157
|
+
callSite$jscomp$0
|
|
158
|
+
? (_name &&
|
|
159
|
+
identifierRegExp.test(callSite$jscomp$0) &&
|
|
160
|
+
callSite$jscomp$0 !== _name &&
|
|
161
|
+
(result$jscomp$0 += _name + "."),
|
|
162
|
+
(result$jscomp$0 += callSite$jscomp$0),
|
|
163
|
+
!methodName ||
|
|
164
|
+
callSite$jscomp$0 === methodName ||
|
|
165
|
+
callSite$jscomp$0.endsWith("." + methodName) ||
|
|
166
|
+
callSite$jscomp$0.endsWith(" " + methodName) ||
|
|
167
|
+
(result$jscomp$0 += " [as " + methodName + "]"))
|
|
168
|
+
: (_name && (result$jscomp$0 += _name + "."),
|
|
169
|
+
(result$jscomp$0 = methodName
|
|
170
|
+
? result$jscomp$0 + methodName
|
|
171
|
+
: result$jscomp$0 + "<anonymous>"));
|
|
172
|
+
_name = result$jscomp$0;
|
|
173
|
+
}
|
|
174
|
+
"<anonymous>" === _name && (_name = "");
|
|
175
|
+
methodName = callSite.getScriptNameOrSourceURL() || "<anonymous>";
|
|
176
|
+
"<anonymous>" === methodName && (methodName = "");
|
|
177
|
+
callSite.isEval() &&
|
|
178
|
+
!methodName &&
|
|
179
|
+
(callSite$jscomp$0 = callSite.getEvalOrigin()) &&
|
|
180
|
+
(methodName = callSite$jscomp$0.toString() + ", <anonymous>");
|
|
181
|
+
callSite$jscomp$0 = callSite.getLineNumber() || 0;
|
|
182
|
+
callSite = callSite.getColumnNumber() || 0;
|
|
183
|
+
result.push([_name, methodName, callSite$jscomp$0, callSite]);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
140
186
|
error = (error.name || "Error") + ": " + (error.message || "");
|
|
141
|
-
for (
|
|
187
|
+
for (i = 0; i < structuredStackTrace.length; i++)
|
|
142
188
|
error += "\n at " + structuredStackTrace[i].toString();
|
|
189
|
+
collectedStackTrace = result;
|
|
143
190
|
return error;
|
|
144
191
|
}
|
|
145
192
|
function isClientReference(reference) {
|
|
@@ -272,6 +319,12 @@
|
|
|
272
319
|
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
273
320
|
);
|
|
274
321
|
}
|
|
322
|
+
function prepareStackTrace(error, structuredStackTrace) {
|
|
323
|
+
error = (error.name || "Error") + ": " + (error.message || "");
|
|
324
|
+
for (var i = 0; i < structuredStackTrace.length; i++)
|
|
325
|
+
error += "\n at " + structuredStackTrace[i].toString();
|
|
326
|
+
return error;
|
|
327
|
+
}
|
|
275
328
|
function describeBuiltInComponentFrame(name) {
|
|
276
329
|
if (void 0 === prefix)
|
|
277
330
|
try {
|
|
@@ -688,52 +741,64 @@
|
|
|
688
741
|
);
|
|
689
742
|
}
|
|
690
743
|
function filterStackTrace(request, error, skipFrames) {
|
|
744
|
+
var existing = stackTraceCache.get(error);
|
|
745
|
+
if (void 0 !== existing) {
|
|
746
|
+
error = existing.slice(0);
|
|
747
|
+
for (request = 0; request < error.length; request++)
|
|
748
|
+
error[request] = error[request].slice(0);
|
|
749
|
+
return error;
|
|
750
|
+
}
|
|
691
751
|
request = request.filterStackFrame;
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
(
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
var
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
752
|
+
collectedStackTrace = null;
|
|
753
|
+
framesToSkip = skipFrames;
|
|
754
|
+
existing = Error.prepareStackTrace;
|
|
755
|
+
Error.prepareStackTrace = collectStackTrace;
|
|
756
|
+
try {
|
|
757
|
+
var stack = String(error.stack);
|
|
758
|
+
} finally {
|
|
759
|
+
Error.prepareStackTrace = existing;
|
|
760
|
+
}
|
|
761
|
+
if (null !== collectedStackTrace)
|
|
762
|
+
(skipFrames = collectedStackTrace), (collectedStackTrace = null);
|
|
763
|
+
else {
|
|
764
|
+
stack.startsWith("Error: react-stack-top-frame\n") &&
|
|
765
|
+
(stack = stack.slice(29));
|
|
766
|
+
existing = stack.indexOf("react-stack-bottom-frame");
|
|
767
|
+
-1 !== existing && (existing = stack.lastIndexOf("\n", existing));
|
|
768
|
+
-1 !== existing && (stack = stack.slice(0, existing));
|
|
769
|
+
stack = stack.split("\n");
|
|
770
|
+
for (existing = []; skipFrames < stack.length; skipFrames++) {
|
|
771
|
+
var parsed = frameRegExp.exec(stack[skipFrames]);
|
|
772
|
+
if (parsed) {
|
|
773
|
+
var name = parsed[1] || "";
|
|
774
|
+
"<anonymous>" === name && (name = "");
|
|
775
|
+
var filename = parsed[2] || parsed[5] || "";
|
|
776
|
+
"<anonymous>" === filename && (filename = "");
|
|
777
|
+
existing.push([
|
|
778
|
+
name,
|
|
779
|
+
filename,
|
|
780
|
+
+(parsed[3] || parsed[6]),
|
|
781
|
+
+(parsed[4] || parsed[7])
|
|
782
|
+
]);
|
|
783
|
+
}
|
|
721
784
|
}
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
785
|
+
skipFrames = existing;
|
|
786
|
+
}
|
|
787
|
+
for (stack = 0; stack < skipFrames.length; stack++) {
|
|
788
|
+
existing = skipFrames[stack];
|
|
789
|
+
parsed = existing[0];
|
|
790
|
+
name = existing[1];
|
|
726
791
|
if (name.startsWith("rsc://React/")) {
|
|
727
792
|
filename = name.indexOf("/", 12);
|
|
728
793
|
var suffixIdx = name.lastIndexOf("?");
|
|
729
794
|
-1 < filename &&
|
|
730
795
|
-1 < suffixIdx &&
|
|
731
|
-
(name =
|
|
796
|
+
(name = existing[1] = name.slice(filename + 1, suffixIdx));
|
|
732
797
|
}
|
|
733
|
-
request(name,
|
|
734
|
-
(stack.splice(skipFrames, 1), skipFrames--);
|
|
798
|
+
request(name, parsed) || (skipFrames.splice(stack, 1), stack--);
|
|
735
799
|
}
|
|
736
|
-
|
|
800
|
+
stackTraceCache.set(error, skipFrames);
|
|
801
|
+
return skipFrames;
|
|
737
802
|
}
|
|
738
803
|
function patchConsole(consoleInst, methodName) {
|
|
739
804
|
var descriptor = Object.getOwnPropertyDescriptor(consoleInst, methodName);
|
|
@@ -12423,6 +12488,9 @@
|
|
|
12423
12488
|
getCurrentStack: null,
|
|
12424
12489
|
recentlyCreatedOwnerStacks: 0
|
|
12425
12490
|
},
|
|
12491
|
+
framesToSkip = 0,
|
|
12492
|
+
collectedStackTrace = null,
|
|
12493
|
+
identifierRegExp = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/,
|
|
12426
12494
|
frameRegExp =
|
|
12427
12495
|
/^ {3} at (?:(.+) \((?:(.+):(\d+):(\d+)|<anonymous>)\)|(?:async )?(.+):(\d+):(\d+)|<anonymous>)$/,
|
|
12428
12496
|
CLIENT_REFERENCE_TAG$1 = Symbol.for("react.client.reference"),
|
|
@@ -12611,7 +12679,8 @@
|
|
|
12611
12679
|
jsxPropsParents = new WeakMap(),
|
|
12612
12680
|
jsxChildrenParents = new WeakMap(),
|
|
12613
12681
|
CLIENT_REFERENCE_TAG = Symbol.for("react.client.reference"),
|
|
12614
|
-
doNotLimit = new WeakSet()
|
|
12682
|
+
doNotLimit = new WeakSet(),
|
|
12683
|
+
stackTraceCache = new WeakMap();
|
|
12615
12684
|
"object" === typeof console &&
|
|
12616
12685
|
null !== console &&
|
|
12617
12686
|
(patchConsole(console, "assert"),
|
|
@@ -13882,5 +13951,5 @@
|
|
|
13882
13951
|
});
|
|
13883
13952
|
});
|
|
13884
13953
|
};
|
|
13885
|
-
exports.version = "19.2.0-experimental-
|
|
13954
|
+
exports.version = "19.2.0-experimental-0ff1d13b-20250507";
|
|
13886
13955
|
})();
|
|
@@ -108,12 +108,6 @@ function readAsDataURL(blob) {
|
|
|
108
108
|
);
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
function prepareStackTrace(error, structuredStackTrace) {
|
|
112
|
-
error = (error.name || "Error") + ": " + (error.message || "");
|
|
113
|
-
for (var i = 0; i < structuredStackTrace.length; i++)
|
|
114
|
-
error += "\n at " + structuredStackTrace[i].toString();
|
|
115
|
-
return error;
|
|
116
|
-
}
|
|
117
111
|
var CLIENT_REFERENCE_TAG$1 = Symbol.for("react.client.reference"),
|
|
118
112
|
SERVER_REFERENCE_TAG = Symbol.for("react.server.reference"),
|
|
119
113
|
TEMPORARY_REFERENCE_TAG = Symbol.for("react.temporary.reference"),
|
|
@@ -300,9 +294,14 @@ var DefaultAsyncDispatcher$1 = {
|
|
|
300
294
|
return entry;
|
|
301
295
|
}
|
|
302
296
|
},
|
|
303
|
-
assign = Object.assign
|
|
304
|
-
|
|
305
|
-
|
|
297
|
+
assign = Object.assign;
|
|
298
|
+
function prepareStackTrace(error, structuredStackTrace) {
|
|
299
|
+
error = (error.name || "Error") + ": " + (error.message || "");
|
|
300
|
+
for (var i = 0; i < structuredStackTrace.length; i++)
|
|
301
|
+
error += "\n at " + structuredStackTrace[i].toString();
|
|
302
|
+
return error;
|
|
303
|
+
}
|
|
304
|
+
var prefix, suffix;
|
|
306
305
|
function describeBuiltInComponentFrame(name) {
|
|
307
306
|
if (void 0 === prefix)
|
|
308
307
|
try {
|
|
@@ -348,16 +347,16 @@ function describeNativeComponentFrame(fn, construct) {
|
|
|
348
347
|
} else {
|
|
349
348
|
try {
|
|
350
349
|
Fake.call();
|
|
351
|
-
} catch (x$
|
|
352
|
-
control = x$
|
|
350
|
+
} catch (x$5) {
|
|
351
|
+
control = x$5;
|
|
353
352
|
}
|
|
354
353
|
fn.call(Fake.prototype);
|
|
355
354
|
}
|
|
356
355
|
} else {
|
|
357
356
|
try {
|
|
358
357
|
throw Error();
|
|
359
|
-
} catch (x$
|
|
360
|
-
control = x$
|
|
358
|
+
} catch (x$6) {
|
|
359
|
+
control = x$6;
|
|
361
360
|
}
|
|
362
361
|
(Fake = fn()) &&
|
|
363
362
|
"function" === typeof Fake.catch &&
|
|
@@ -720,8 +719,8 @@ function serializeReadableStream(request, task, stream) {
|
|
|
720
719
|
tryStreamTask(request, streamTask),
|
|
721
720
|
enqueueFlush(request),
|
|
722
721
|
reader.read().then(progress, error);
|
|
723
|
-
} catch (x$
|
|
724
|
-
error(x$
|
|
722
|
+
} catch (x$12) {
|
|
723
|
+
error(x$12);
|
|
725
724
|
}
|
|
726
725
|
}
|
|
727
726
|
function error(reason) {
|
|
@@ -795,8 +794,8 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
|
|
|
795
794
|
tryStreamTask(request, streamTask),
|
|
796
795
|
enqueueFlush(request),
|
|
797
796
|
iterator.next().then(progress, error);
|
|
798
|
-
} catch (x$
|
|
799
|
-
error(x$
|
|
797
|
+
} catch (x$13) {
|
|
798
|
+
error(x$13);
|
|
800
799
|
}
|
|
801
800
|
}
|
|
802
801
|
function error(reason) {
|
|
@@ -1759,12 +1758,12 @@ function abort$1(request, reason) {
|
|
|
1759
1758
|
? Error("The render was aborted by the server with a promise.")
|
|
1760
1759
|
: reason,
|
|
1761
1760
|
digest = logRecoverableError$1(request, error, null),
|
|
1762
|
-
errorId$
|
|
1763
|
-
request.fatalError = errorId$
|
|
1761
|
+
errorId$30 = request.nextChunkId++;
|
|
1762
|
+
request.fatalError = errorId$30;
|
|
1764
1763
|
request.pendingChunks++;
|
|
1765
|
-
emitErrorChunk(request, errorId$
|
|
1764
|
+
emitErrorChunk(request, errorId$30, digest, error);
|
|
1766
1765
|
abortableTasks.forEach(function (task) {
|
|
1767
|
-
return abortTask$1(task, request, errorId$
|
|
1766
|
+
return abortTask$1(task, request, errorId$30);
|
|
1768
1767
|
});
|
|
1769
1768
|
}
|
|
1770
1769
|
abortableTasks.clear();
|
|
@@ -1772,7 +1771,7 @@ function abort$1(request, reason) {
|
|
|
1772
1771
|
}
|
|
1773
1772
|
var abortListeners = request.abortListeners;
|
|
1774
1773
|
if (0 < abortListeners.size) {
|
|
1775
|
-
var error$
|
|
1774
|
+
var error$31 =
|
|
1776
1775
|
"object" === typeof reason &&
|
|
1777
1776
|
null !== reason &&
|
|
1778
1777
|
reason.$$typeof === REACT_POSTPONE_TYPE
|
|
@@ -1785,16 +1784,16 @@ function abort$1(request, reason) {
|
|
|
1785
1784
|
? Error("The render was aborted by the server with a promise.")
|
|
1786
1785
|
: reason;
|
|
1787
1786
|
abortListeners.forEach(function (callback) {
|
|
1788
|
-
return callback(error$
|
|
1787
|
+
return callback(error$31);
|
|
1789
1788
|
});
|
|
1790
1789
|
abortListeners.clear();
|
|
1791
1790
|
callOnAllReadyIfReady(request);
|
|
1792
1791
|
}
|
|
1793
1792
|
null !== request.destination &&
|
|
1794
1793
|
flushCompletedChunks(request, request.destination);
|
|
1795
|
-
} catch (error$
|
|
1796
|
-
logRecoverableError$1(request, error$
|
|
1797
|
-
fatalError$1(request, error$
|
|
1794
|
+
} catch (error$32) {
|
|
1795
|
+
logRecoverableError$1(request, error$32, null),
|
|
1796
|
+
fatalError$1(request, error$32);
|
|
1798
1797
|
}
|
|
1799
1798
|
}
|
|
1800
1799
|
var bind$1 = Function.prototype.bind,
|
|
@@ -1901,11 +1900,11 @@ function processReply(
|
|
|
1901
1900
|
0 === pendingParts && resolve(data);
|
|
1902
1901
|
} else
|
|
1903
1902
|
try {
|
|
1904
|
-
var partJSON$
|
|
1905
|
-
data.append(formFieldPrefix + streamId, partJSON$
|
|
1903
|
+
var partJSON$33 = JSON.stringify(entry.value, resolveToJSON);
|
|
1904
|
+
data.append(formFieldPrefix + streamId, partJSON$33);
|
|
1906
1905
|
iterator.next().then(progress, reject);
|
|
1907
|
-
} catch (x$
|
|
1908
|
-
reject(x$
|
|
1906
|
+
} catch (x$34) {
|
|
1907
|
+
reject(x$34);
|
|
1909
1908
|
}
|
|
1910
1909
|
}
|
|
1911
1910
|
null === formData && (formData = new FormData());
|
|
@@ -1950,20 +1949,20 @@ function processReply(
|
|
|
1950
1949
|
"function" === typeof x.then
|
|
1951
1950
|
) {
|
|
1952
1951
|
pendingParts++;
|
|
1953
|
-
var lazyId$
|
|
1952
|
+
var lazyId$35 = nextPartId++;
|
|
1954
1953
|
parentReference = function () {
|
|
1955
1954
|
try {
|
|
1956
|
-
var partJSON$
|
|
1957
|
-
data$
|
|
1958
|
-
data$
|
|
1955
|
+
var partJSON$36 = serializeModel(value, lazyId$35),
|
|
1956
|
+
data$37 = formData;
|
|
1957
|
+
data$37.append(formFieldPrefix + lazyId$35, partJSON$36);
|
|
1959
1958
|
pendingParts--;
|
|
1960
|
-
0 === pendingParts && resolve(data$
|
|
1959
|
+
0 === pendingParts && resolve(data$37);
|
|
1961
1960
|
} catch (reason) {
|
|
1962
1961
|
reject(reason);
|
|
1963
1962
|
}
|
|
1964
1963
|
};
|
|
1965
1964
|
x.then(parentReference, parentReference);
|
|
1966
|
-
return "$" + lazyId$
|
|
1965
|
+
return "$" + lazyId$35.toString(16);
|
|
1967
1966
|
}
|
|
1968
1967
|
reject(x);
|
|
1969
1968
|
return null;
|
|
@@ -1977,9 +1976,9 @@ function processReply(
|
|
|
1977
1976
|
var promiseId = nextPartId++;
|
|
1978
1977
|
value.then(function (partValue) {
|
|
1979
1978
|
try {
|
|
1980
|
-
var partJSON$
|
|
1979
|
+
var partJSON$39 = serializeModel(partValue, promiseId);
|
|
1981
1980
|
partValue = formData;
|
|
1982
|
-
partValue.append(formFieldPrefix + promiseId, partJSON$
|
|
1981
|
+
partValue.append(formFieldPrefix + promiseId, partJSON$39);
|
|
1983
1982
|
pendingParts--;
|
|
1984
1983
|
0 === pendingParts && resolve(partValue);
|
|
1985
1984
|
} catch (reason) {
|
|
@@ -2003,11 +2002,11 @@ function processReply(
|
|
|
2003
2002
|
if (isArrayImpl(value)) return value;
|
|
2004
2003
|
if (value instanceof FormData) {
|
|
2005
2004
|
null === formData && (formData = new FormData());
|
|
2006
|
-
var data$
|
|
2005
|
+
var data$43 = formData;
|
|
2007
2006
|
key = nextPartId++;
|
|
2008
|
-
var prefix$
|
|
2007
|
+
var prefix$44 = formFieldPrefix + key + "_";
|
|
2009
2008
|
value.forEach(function (originalValue, originalKey) {
|
|
2010
|
-
data$
|
|
2009
|
+
data$43.append(prefix$44 + originalKey, originalValue);
|
|
2011
2010
|
});
|
|
2012
2011
|
return "$K" + key.toString(16);
|
|
2013
2012
|
}
|
|
@@ -2896,8 +2895,8 @@ function startReadableStream(response, id, type) {
|
|
|
2896
2895
|
(previousBlockedChunk = chunk));
|
|
2897
2896
|
} else {
|
|
2898
2897
|
chunk = previousBlockedChunk;
|
|
2899
|
-
var chunk$
|
|
2900
|
-
chunk$
|
|
2898
|
+
var chunk$64 = createPendingChunk(response);
|
|
2899
|
+
chunk$64.then(
|
|
2901
2900
|
function (v) {
|
|
2902
2901
|
return controller.enqueue(v);
|
|
2903
2902
|
},
|
|
@@ -2905,10 +2904,10 @@ function startReadableStream(response, id, type) {
|
|
|
2905
2904
|
return controller.error(e);
|
|
2906
2905
|
}
|
|
2907
2906
|
);
|
|
2908
|
-
previousBlockedChunk = chunk$
|
|
2907
|
+
previousBlockedChunk = chunk$64;
|
|
2909
2908
|
chunk.then(function () {
|
|
2910
|
-
previousBlockedChunk === chunk$
|
|
2911
|
-
resolveModelChunk(chunk$
|
|
2909
|
+
previousBlockedChunk === chunk$64 && (previousBlockedChunk = null);
|
|
2910
|
+
resolveModelChunk(chunk$64, json);
|
|
2912
2911
|
});
|
|
2913
2912
|
}
|
|
2914
2913
|
},
|
|
@@ -3844,8 +3843,8 @@ function pushAttribute(target, name, value) {
|
|
|
3844
3843
|
case "symbol":
|
|
3845
3844
|
return;
|
|
3846
3845
|
case "boolean":
|
|
3847
|
-
var prefix$
|
|
3848
|
-
if ("data-" !== prefix$
|
|
3846
|
+
var prefix$74 = name.toLowerCase().slice(0, 5);
|
|
3847
|
+
if ("data-" !== prefix$74 && "aria-" !== prefix$74) return;
|
|
3849
3848
|
}
|
|
3850
3849
|
target.push(" ", name, '="', escapeTextForBrowser(value), '"');
|
|
3851
3850
|
}
|
|
@@ -4618,10 +4617,10 @@ function pushStartInstance$1(
|
|
|
4618
4617
|
styleQueue.sheets.set(href, resource);
|
|
4619
4618
|
hoistableState && hoistableState.stylesheets.add(resource);
|
|
4620
4619
|
} else if (styleQueue) {
|
|
4621
|
-
var resource$
|
|
4622
|
-
resource$
|
|
4620
|
+
var resource$75 = styleQueue.sheets.get(href);
|
|
4621
|
+
resource$75 &&
|
|
4623
4622
|
hoistableState &&
|
|
4624
|
-
hoistableState.stylesheets.add(resource$
|
|
4623
|
+
hoistableState.stylesheets.add(resource$75);
|
|
4625
4624
|
}
|
|
4626
4625
|
textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
|
|
4627
4626
|
JSCompiler_inline_result$jscomp$4 = null;
|
|
@@ -5888,10 +5887,10 @@ function useActionState(action, initialState, permalink) {
|
|
|
5888
5887
|
var nextPostbackStateKey = null,
|
|
5889
5888
|
componentKeyPath = currentlyRenderingKeyPath;
|
|
5890
5889
|
request = request.formState;
|
|
5891
|
-
var isSignatureEqual$
|
|
5892
|
-
if (null !== request && "function" === typeof isSignatureEqual$
|
|
5890
|
+
var isSignatureEqual$78 = action.$$IS_SIGNATURE_EQUAL;
|
|
5891
|
+
if (null !== request && "function" === typeof isSignatureEqual$78) {
|
|
5893
5892
|
var postbackKey = request[1];
|
|
5894
|
-
isSignatureEqual$
|
|
5893
|
+
isSignatureEqual$78.call(action, request[2], request[3]) &&
|
|
5895
5894
|
((nextPostbackStateKey =
|
|
5896
5895
|
void 0 !== permalink
|
|
5897
5896
|
? "p" + permalink
|
|
@@ -5933,11 +5932,11 @@ function useActionState(action, initialState, permalink) {
|
|
|
5933
5932
|
});
|
|
5934
5933
|
return [initialState, action, !1];
|
|
5935
5934
|
}
|
|
5936
|
-
var boundAction$
|
|
5935
|
+
var boundAction$79 = action.bind(null, initialState);
|
|
5937
5936
|
return [
|
|
5938
5937
|
initialState,
|
|
5939
5938
|
function (payload) {
|
|
5940
|
-
boundAction$
|
|
5939
|
+
boundAction$79(payload);
|
|
5941
5940
|
},
|
|
5942
5941
|
!1
|
|
5943
5942
|
];
|
|
@@ -6467,9 +6466,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6467
6466
|
var defaultProps = type.defaultProps;
|
|
6468
6467
|
if (defaultProps) {
|
|
6469
6468
|
newProps === props && (newProps = assign({}, newProps, props));
|
|
6470
|
-
for (var propName$
|
|
6471
|
-
void 0 === newProps[propName$
|
|
6472
|
-
(newProps[propName$
|
|
6469
|
+
for (var propName$88 in defaultProps)
|
|
6470
|
+
void 0 === newProps[propName$88] &&
|
|
6471
|
+
(newProps[propName$88] = defaultProps[propName$88]);
|
|
6473
6472
|
}
|
|
6474
6473
|
props = newProps;
|
|
6475
6474
|
newProps = emptyContextObject;
|
|
@@ -6579,7 +6578,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6579
6578
|
defaultProps = newProps.chunks;
|
|
6580
6579
|
initialState = request.resumableState;
|
|
6581
6580
|
ref = request.renderState;
|
|
6582
|
-
propName$
|
|
6581
|
+
propName$88 = task.blockedPreamble;
|
|
6583
6582
|
propName = task.hoistableState;
|
|
6584
6583
|
var formatContext = task.formatContext,
|
|
6585
6584
|
textEmbedded = newProps.lastPushedText,
|
|
@@ -6604,7 +6603,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6604
6603
|
props,
|
|
6605
6604
|
initialState,
|
|
6606
6605
|
ref,
|
|
6607
|
-
propName$
|
|
6606
|
+
propName$88,
|
|
6608
6607
|
propName,
|
|
6609
6608
|
formatContext,
|
|
6610
6609
|
textEmbedded,
|
|
@@ -6747,7 +6746,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6747
6746
|
contextType = task.blockedPreamble;
|
|
6748
6747
|
propValue = task.hoistableState;
|
|
6749
6748
|
ref = task.blockedSegment;
|
|
6750
|
-
propName$
|
|
6749
|
+
propName$88 = props.fallback;
|
|
6751
6750
|
props = props.children;
|
|
6752
6751
|
var fallbackAbortSet = new Set();
|
|
6753
6752
|
propName =
|
|
@@ -6790,7 +6789,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6790
6789
|
task.keyPath = newProps;
|
|
6791
6790
|
formatContext.status = 6;
|
|
6792
6791
|
try {
|
|
6793
|
-
renderNode(request, task, propName$
|
|
6792
|
+
renderNode(request, task, propName$88, -1),
|
|
6794
6793
|
(formatContext.status = 1);
|
|
6795
6794
|
} catch (thrownValue) {
|
|
6796
6795
|
throw (
|
|
@@ -6842,11 +6841,11 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6842
6841
|
preparePreamble(request);
|
|
6843
6842
|
break a;
|
|
6844
6843
|
}
|
|
6845
|
-
} catch (thrownValue$
|
|
6844
|
+
} catch (thrownValue$83) {
|
|
6846
6845
|
(propName.status = 4),
|
|
6847
6846
|
12 === request.status
|
|
6848
6847
|
? ((textEmbedded.status = 3), (newProps = request.fatalError))
|
|
6849
|
-
: ((textEmbedded.status = 4), (newProps = thrownValue$
|
|
6848
|
+
: ((textEmbedded.status = 4), (newProps = thrownValue$83)),
|
|
6850
6849
|
(defaultProps = getThrownInfo(task.componentStack)),
|
|
6851
6850
|
"object" === typeof newProps &&
|
|
6852
6851
|
null !== newProps &&
|
|
@@ -6870,7 +6869,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6870
6869
|
task = createRenderTask(
|
|
6871
6870
|
request,
|
|
6872
6871
|
null,
|
|
6873
|
-
propName$
|
|
6872
|
+
propName$88,
|
|
6874
6873
|
-1,
|
|
6875
6874
|
isFallback,
|
|
6876
6875
|
formatContext,
|
|
@@ -7390,9 +7389,9 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
7390
7389
|
addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
|
|
7391
7390
|
return;
|
|
7392
7391
|
}
|
|
7393
|
-
var boundaryNode$
|
|
7394
|
-
void 0 === boundaryNode$
|
|
7395
|
-
? ((boundaryNode$
|
|
7392
|
+
var boundaryNode$100 = trackedPostpones.workingMap.get(boundaryKeyPath);
|
|
7393
|
+
void 0 === boundaryNode$100
|
|
7394
|
+
? ((boundaryNode$100 = [
|
|
7396
7395
|
boundaryKeyPath[1],
|
|
7397
7396
|
boundaryKeyPath[2],
|
|
7398
7397
|
children,
|
|
@@ -7400,13 +7399,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
7400
7399
|
fallbackReplayNode,
|
|
7401
7400
|
boundary.rootSegmentID
|
|
7402
7401
|
]),
|
|
7403
|
-
trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$
|
|
7402
|
+
trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$100),
|
|
7404
7403
|
addToReplayParent(
|
|
7405
|
-
boundaryNode$
|
|
7404
|
+
boundaryNode$100,
|
|
7406
7405
|
boundaryKeyPath[0],
|
|
7407
7406
|
trackedPostpones
|
|
7408
7407
|
))
|
|
7409
|
-
: ((boundaryKeyPath = boundaryNode$
|
|
7408
|
+
: ((boundaryKeyPath = boundaryNode$100),
|
|
7410
7409
|
(boundaryKeyPath[4] = fallbackReplayNode),
|
|
7411
7410
|
(boundaryKeyPath[5] = boundary.rootSegmentID));
|
|
7412
7411
|
}
|
|
@@ -7560,15 +7559,15 @@ function renderNode(request, task, node, childIndex) {
|
|
|
7560
7559
|
chunkLength = segment.chunks.length;
|
|
7561
7560
|
try {
|
|
7562
7561
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
7563
|
-
} catch (thrownValue$
|
|
7562
|
+
} catch (thrownValue$112) {
|
|
7564
7563
|
if (
|
|
7565
7564
|
(resetHooksState(),
|
|
7566
7565
|
(segment.children.length = childrenLength),
|
|
7567
7566
|
(segment.chunks.length = chunkLength),
|
|
7568
7567
|
(childIndex =
|
|
7569
|
-
thrownValue$
|
|
7568
|
+
thrownValue$112 === SuspenseException
|
|
7570
7569
|
? getSuspendedThenable()
|
|
7571
|
-
: thrownValue$
|
|
7570
|
+
: thrownValue$112),
|
|
7572
7571
|
"object" === typeof childIndex && null !== childIndex)
|
|
7573
7572
|
) {
|
|
7574
7573
|
if ("function" === typeof childIndex.then) {
|
|
@@ -7769,16 +7768,16 @@ function abortTask(task, request, error) {
|
|
|
7769
7768
|
}
|
|
7770
7769
|
} else {
|
|
7771
7770
|
boundary.pendingTasks--;
|
|
7772
|
-
var trackedPostpones$
|
|
7771
|
+
var trackedPostpones$115 = request.trackedPostpones;
|
|
7773
7772
|
if (4 !== boundary.status) {
|
|
7774
|
-
if (null !== trackedPostpones$
|
|
7773
|
+
if (null !== trackedPostpones$115 && null !== segment)
|
|
7775
7774
|
return (
|
|
7776
7775
|
"object" === typeof error &&
|
|
7777
7776
|
null !== error &&
|
|
7778
7777
|
error.$$typeof === REACT_POSTPONE_TYPE
|
|
7779
7778
|
? logPostpone(request, error.message, errorInfo)
|
|
7780
7779
|
: logRecoverableError(request, error, errorInfo),
|
|
7781
|
-
trackPostpone(request, trackedPostpones$
|
|
7780
|
+
trackPostpone(request, trackedPostpones$115, task, segment),
|
|
7782
7781
|
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
7783
7782
|
return abortTask(fallbackTask, request, error);
|
|
7784
7783
|
}),
|
|
@@ -8086,13 +8085,13 @@ function performWork(request$jscomp$1) {
|
|
|
8086
8085
|
null !== request.trackedPostpones &&
|
|
8087
8086
|
x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
|
|
8088
8087
|
) {
|
|
8089
|
-
var trackedPostpones$
|
|
8088
|
+
var trackedPostpones$119 = request.trackedPostpones;
|
|
8090
8089
|
task.abortSet.delete(task);
|
|
8091
8090
|
var postponeInfo = getThrownInfo(task.componentStack);
|
|
8092
8091
|
logPostpone(request, x$jscomp$0.message, postponeInfo);
|
|
8093
8092
|
trackPostpone(
|
|
8094
8093
|
request,
|
|
8095
|
-
trackedPostpones$
|
|
8094
|
+
trackedPostpones$119,
|
|
8096
8095
|
task,
|
|
8097
8096
|
segment$jscomp$0
|
|
8098
8097
|
);
|
|
@@ -8646,12 +8645,12 @@ function flushCompletedQueues(request, destination) {
|
|
|
8646
8645
|
completedBoundaries.splice(0, i);
|
|
8647
8646
|
var partialBoundaries = request.partialBoundaries;
|
|
8648
8647
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
8649
|
-
var boundary$
|
|
8648
|
+
var boundary$122 = partialBoundaries[i];
|
|
8650
8649
|
a: {
|
|
8651
8650
|
clientRenderedBoundaries = request;
|
|
8652
8651
|
boundary = destination;
|
|
8653
|
-
flushedByteSize = boundary$
|
|
8654
|
-
var completedSegments = boundary$
|
|
8652
|
+
flushedByteSize = boundary$122.byteSize;
|
|
8653
|
+
var completedSegments = boundary$122.completedSegments;
|
|
8655
8654
|
for (
|
|
8656
8655
|
JSCompiler_inline_result = 0;
|
|
8657
8656
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -8661,7 +8660,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
8661
8660
|
!flushPartiallyCompletedSegment(
|
|
8662
8661
|
clientRenderedBoundaries,
|
|
8663
8662
|
boundary,
|
|
8664
|
-
boundary$
|
|
8663
|
+
boundary$122,
|
|
8665
8664
|
completedSegments[JSCompiler_inline_result]
|
|
8666
8665
|
)
|
|
8667
8666
|
) {
|
|
@@ -8673,7 +8672,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
8673
8672
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
8674
8673
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
8675
8674
|
boundary,
|
|
8676
|
-
boundary$
|
|
8675
|
+
boundary$122.contentState,
|
|
8677
8676
|
clientRenderedBoundaries.renderState
|
|
8678
8677
|
);
|
|
8679
8678
|
}
|
|
@@ -8744,8 +8743,8 @@ function abort(request, reason) {
|
|
|
8744
8743
|
}
|
|
8745
8744
|
null !== request.destination &&
|
|
8746
8745
|
flushCompletedQueues(request, request.destination);
|
|
8747
|
-
} catch (error$
|
|
8748
|
-
logRecoverableError(request, error$
|
|
8746
|
+
} catch (error$124) {
|
|
8747
|
+
logRecoverableError(request, error$124, {}), fatalError(request, error$124);
|
|
8749
8748
|
}
|
|
8750
8749
|
}
|
|
8751
8750
|
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
@@ -9056,4 +9055,4 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
9056
9055
|
});
|
|
9057
9056
|
});
|
|
9058
9057
|
};
|
|
9059
|
-
exports.version = "19.2.0-experimental-
|
|
9058
|
+
exports.version = "19.2.0-experimental-0ff1d13b-20250507";
|
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-0ff1d13b-20250507",
|
|
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-0ff1d13b-20250507"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"LICENSE",
|