react-dom 19.2.0-canary-b9cfa0d3-20250505 → 19.2.0-canary-7a2c7045-20250506
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 +182 -155
- package/cjs/react-dom-client.production.js +72 -67
- package/cjs/react-dom-profiling.development.js +182 -155
- package/cjs/react-dom-profiling.profiling.js +72 -67
- package/cjs/react-dom-server-legacy.browser.development.js +1 -1
- package/cjs/react-dom-server-legacy.browser.production.js +1 -1
- package/cjs/react-dom-server-legacy.node.development.js +1 -1
- package/cjs/react-dom-server-legacy.node.production.js +1 -1
- package/cjs/react-dom-server.browser.development.js +3 -3
- package/cjs/react-dom-server.browser.production.js +3 -3
- package/cjs/react-dom-server.bun.development.js +3 -3
- package/cjs/react-dom-server.bun.production.js +3 -3
- package/cjs/react-dom-server.edge.development.js +3 -3
- package/cjs/react-dom-server.edge.production.js +3 -3
- package/cjs/react-dom-server.node.development.js +3 -3
- package/cjs/react-dom-server.node.production.js +3 -3
- 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
@@ -1018,13 +1018,11 @@ function isCheckable(elem) {
|
|
1018
1018
|
("checkbox" === type || "radio" === type)
|
1019
1019
|
);
|
1020
1020
|
}
|
1021
|
-
function trackValueOnNode(node) {
|
1022
|
-
var
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
),
|
1027
|
-
currentValue = "" + node[valueField];
|
1021
|
+
function trackValueOnNode(node, valueField, currentValue) {
|
1022
|
+
var descriptor = Object.getOwnPropertyDescriptor(
|
1023
|
+
node.constructor.prototype,
|
1024
|
+
valueField
|
1025
|
+
);
|
1028
1026
|
if (
|
1029
1027
|
!node.hasOwnProperty(valueField) &&
|
1030
1028
|
"undefined" !== typeof descriptor &&
|
@@ -1061,7 +1059,14 @@ function trackValueOnNode(node) {
|
|
1061
1059
|
}
|
1062
1060
|
}
|
1063
1061
|
function track(node) {
|
1064
|
-
|
1062
|
+
if (!node._valueTracker) {
|
1063
|
+
var valueField = isCheckable(node) ? "checked" : "value";
|
1064
|
+
node._valueTracker = trackValueOnNode(
|
1065
|
+
node,
|
1066
|
+
valueField,
|
1067
|
+
"" + node[valueField]
|
1068
|
+
);
|
1069
|
+
}
|
1065
1070
|
}
|
1066
1071
|
function updateValueIfChanged(node) {
|
1067
1072
|
if (!node) return !1;
|
@@ -1161,8 +1166,10 @@ function initInput(
|
|
1161
1166
|
("submit" !== type && "reset" !== type) ||
|
1162
1167
|
(void 0 !== value && null !== value)
|
1163
1168
|
)
|
1164
|
-
)
|
1169
|
+
) {
|
1170
|
+
track(element);
|
1165
1171
|
return;
|
1172
|
+
}
|
1166
1173
|
defaultValue =
|
1167
1174
|
null != defaultValue ? "" + getToStringValue(defaultValue) : "";
|
1168
1175
|
value = null != value ? "" + getToStringValue(value) : defaultValue;
|
@@ -1179,6 +1186,7 @@ function initInput(
|
|
1179
1186
|
"symbol" !== typeof name &&
|
1180
1187
|
"boolean" !== typeof name &&
|
1181
1188
|
(element.name = name);
|
1189
|
+
track(element);
|
1182
1190
|
}
|
1183
1191
|
function setDefaultValue(node, type, value) {
|
1184
1192
|
("number" === type && getActiveElement(node.ownerDocument) === node) ||
|
@@ -1242,6 +1250,7 @@ function initTextarea(element, value, defaultValue, children) {
|
|
1242
1250
|
"" !== children &&
|
1243
1251
|
null !== children &&
|
1244
1252
|
(element.value = children);
|
1253
|
+
track(element);
|
1245
1254
|
}
|
1246
1255
|
function setTextContent(node, text) {
|
1247
1256
|
if (text) {
|
@@ -2037,14 +2046,14 @@ var isInputEventSupported = !1;
|
|
2037
2046
|
if (canUseDOM) {
|
2038
2047
|
var JSCompiler_inline_result$jscomp$293;
|
2039
2048
|
if (canUseDOM) {
|
2040
|
-
var isSupported$jscomp$
|
2041
|
-
if (!isSupported$jscomp$
|
2042
|
-
var element$jscomp$
|
2043
|
-
element$jscomp$
|
2044
|
-
isSupported$jscomp$
|
2045
|
-
"function" === typeof element$jscomp$
|
2049
|
+
var isSupported$jscomp$inline_434 = "oninput" in document;
|
2050
|
+
if (!isSupported$jscomp$inline_434) {
|
2051
|
+
var element$jscomp$inline_435 = document.createElement("div");
|
2052
|
+
element$jscomp$inline_435.setAttribute("oninput", "return;");
|
2053
|
+
isSupported$jscomp$inline_434 =
|
2054
|
+
"function" === typeof element$jscomp$inline_435.oninput;
|
2046
2055
|
}
|
2047
|
-
JSCompiler_inline_result$jscomp$293 = isSupported$jscomp$
|
2056
|
+
JSCompiler_inline_result$jscomp$293 = isSupported$jscomp$inline_434;
|
2048
2057
|
} else JSCompiler_inline_result$jscomp$293 = !1;
|
2049
2058
|
isInputEventSupported =
|
2050
2059
|
JSCompiler_inline_result$jscomp$293 &&
|
@@ -2295,25 +2304,6 @@ function registerSimpleEvent(domEventName, reactName) {
|
|
2295
2304
|
topLevelEventsToReactNames.set(domEventName, reactName);
|
2296
2305
|
registerTwoPhaseEvent(reactName, [domEventName]);
|
2297
2306
|
}
|
2298
|
-
var CapturedStacks = new WeakMap();
|
2299
|
-
function createCapturedValueAtFiber(value, source) {
|
2300
|
-
if ("object" === typeof value && null !== value) {
|
2301
|
-
var existing = CapturedStacks.get(value);
|
2302
|
-
if (void 0 !== existing) return existing;
|
2303
|
-
source = {
|
2304
|
-
value: value,
|
2305
|
-
source: source,
|
2306
|
-
stack: getStackByFiberInDevAndProd(source)
|
2307
|
-
};
|
2308
|
-
CapturedStacks.set(value, source);
|
2309
|
-
return source;
|
2310
|
-
}
|
2311
|
-
return {
|
2312
|
-
value: value,
|
2313
|
-
source: source,
|
2314
|
-
stack: getStackByFiberInDevAndProd(source)
|
2315
|
-
};
|
2316
|
-
}
|
2317
2307
|
var concurrentQueues = [],
|
2318
2308
|
concurrentQueuesIndex = 0,
|
2319
2309
|
concurrentlyUpdatedLanes = 0;
|
@@ -2619,6 +2609,25 @@ function createFiberFromPortal(portal, mode, lanes) {
|
|
2619
2609
|
};
|
2620
2610
|
return mode;
|
2621
2611
|
}
|
2612
|
+
var CapturedStacks = new WeakMap();
|
2613
|
+
function createCapturedValueAtFiber(value, source) {
|
2614
|
+
if ("object" === typeof value && null !== value) {
|
2615
|
+
var existing = CapturedStacks.get(value);
|
2616
|
+
if (void 0 !== existing) return existing;
|
2617
|
+
source = {
|
2618
|
+
value: value,
|
2619
|
+
source: source,
|
2620
|
+
stack: getStackByFiberInDevAndProd(source)
|
2621
|
+
};
|
2622
|
+
CapturedStacks.set(value, source);
|
2623
|
+
return source;
|
2624
|
+
}
|
2625
|
+
return {
|
2626
|
+
value: value,
|
2627
|
+
source: source,
|
2628
|
+
stack: getStackByFiberInDevAndProd(source)
|
2629
|
+
};
|
2630
|
+
}
|
2622
2631
|
var forkStack = [],
|
2623
2632
|
forkStackIndex = 0,
|
2624
2633
|
treeForkProvider = null,
|
@@ -2753,15 +2762,13 @@ function prepareToHydrateHostInstance(fiber) {
|
|
2753
2762
|
props.name,
|
2754
2763
|
!0
|
2755
2764
|
);
|
2756
|
-
track(instance);
|
2757
2765
|
break;
|
2758
2766
|
case "select":
|
2759
2767
|
listenToNonDelegatedEvent("invalid", instance);
|
2760
2768
|
break;
|
2761
2769
|
case "textarea":
|
2762
2770
|
listenToNonDelegatedEvent("invalid", instance),
|
2763
|
-
initTextarea(instance, props.value, props.defaultValue, props.children)
|
2764
|
-
track(instance);
|
2771
|
+
initTextarea(instance, props.value, props.defaultValue, props.children);
|
2765
2772
|
}
|
2766
2773
|
type = props.children;
|
2767
2774
|
("string" !== typeof type &&
|
@@ -12046,20 +12053,20 @@ function extractEvents$1(
|
|
12046
12053
|
}
|
12047
12054
|
}
|
12048
12055
|
for (
|
12049
|
-
var i$jscomp$
|
12050
|
-
i$jscomp$
|
12051
|
-
i$jscomp$
|
12056
|
+
var i$jscomp$inline_1590 = 0;
|
12057
|
+
i$jscomp$inline_1590 < simpleEventPluginEvents.length;
|
12058
|
+
i$jscomp$inline_1590++
|
12052
12059
|
) {
|
12053
|
-
var eventName$jscomp$
|
12054
|
-
simpleEventPluginEvents[i$jscomp$
|
12055
|
-
domEventName$jscomp$
|
12056
|
-
eventName$jscomp$
|
12057
|
-
capitalizedEvent$jscomp$
|
12058
|
-
eventName$jscomp$
|
12059
|
-
eventName$jscomp$
|
12060
|
+
var eventName$jscomp$inline_1591 =
|
12061
|
+
simpleEventPluginEvents[i$jscomp$inline_1590],
|
12062
|
+
domEventName$jscomp$inline_1592 =
|
12063
|
+
eventName$jscomp$inline_1591.toLowerCase(),
|
12064
|
+
capitalizedEvent$jscomp$inline_1593 =
|
12065
|
+
eventName$jscomp$inline_1591[0].toUpperCase() +
|
12066
|
+
eventName$jscomp$inline_1591.slice(1);
|
12060
12067
|
registerSimpleEvent(
|
12061
|
-
domEventName$jscomp$
|
12062
|
-
"on" + capitalizedEvent$jscomp$
|
12068
|
+
domEventName$jscomp$inline_1592,
|
12069
|
+
"on" + capitalizedEvent$jscomp$inline_1593
|
12063
12070
|
);
|
12064
12071
|
}
|
12065
12072
|
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
|
@@ -13276,7 +13283,6 @@ function setInitialProperties(domElement, tag, props) {
|
|
13276
13283
|
hasSrcSet,
|
13277
13284
|
!1
|
13278
13285
|
);
|
13279
|
-
track(domElement);
|
13280
13286
|
return;
|
13281
13287
|
case "select":
|
13282
13288
|
listenToNonDelegatedEvent("invalid", domElement);
|
@@ -13330,7 +13336,6 @@ function setInitialProperties(domElement, tag, props) {
|
|
13330
13336
|
setProp(domElement, tag, propValue, defaultValue, props, null);
|
13331
13337
|
}
|
13332
13338
|
initTextarea(domElement, hasSrc, hasSrcSet, propKey);
|
13333
|
-
track(domElement);
|
13334
13339
|
return;
|
13335
13340
|
case "option":
|
13336
13341
|
for (checked in props)
|
@@ -15633,16 +15638,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
|
15633
15638
|
0 === i && attemptExplicitHydrationTarget(target);
|
15634
15639
|
}
|
15635
15640
|
};
|
15636
|
-
var isomorphicReactPackageVersion$jscomp$
|
15641
|
+
var isomorphicReactPackageVersion$jscomp$inline_1846 = React.version;
|
15637
15642
|
if (
|
15638
|
-
"19.2.0-canary-
|
15639
|
-
isomorphicReactPackageVersion$jscomp$
|
15643
|
+
"19.2.0-canary-7a2c7045-20250506" !==
|
15644
|
+
isomorphicReactPackageVersion$jscomp$inline_1846
|
15640
15645
|
)
|
15641
15646
|
throw Error(
|
15642
15647
|
formatProdErrorMessage(
|
15643
15648
|
527,
|
15644
|
-
isomorphicReactPackageVersion$jscomp$
|
15645
|
-
"19.2.0-canary-
|
15649
|
+
isomorphicReactPackageVersion$jscomp$inline_1846,
|
15650
|
+
"19.2.0-canary-7a2c7045-20250506"
|
15646
15651
|
)
|
15647
15652
|
);
|
15648
15653
|
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
@@ -15662,24 +15667,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
15662
15667
|
null === componentOrElement ? null : componentOrElement.stateNode;
|
15663
15668
|
return componentOrElement;
|
15664
15669
|
};
|
15665
|
-
var internals$jscomp$
|
15670
|
+
var internals$jscomp$inline_2339 = {
|
15666
15671
|
bundleType: 0,
|
15667
|
-
version: "19.2.0-canary-
|
15672
|
+
version: "19.2.0-canary-7a2c7045-20250506",
|
15668
15673
|
rendererPackageName: "react-dom",
|
15669
15674
|
currentDispatcherRef: ReactSharedInternals,
|
15670
|
-
reconcilerVersion: "19.2.0-canary-
|
15675
|
+
reconcilerVersion: "19.2.0-canary-7a2c7045-20250506"
|
15671
15676
|
};
|
15672
15677
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
15673
|
-
var hook$jscomp$
|
15678
|
+
var hook$jscomp$inline_2340 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
15674
15679
|
if (
|
15675
|
-
!hook$jscomp$
|
15676
|
-
hook$jscomp$
|
15680
|
+
!hook$jscomp$inline_2340.isDisabled &&
|
15681
|
+
hook$jscomp$inline_2340.supportsFiber
|
15677
15682
|
)
|
15678
15683
|
try {
|
15679
|
-
(rendererID = hook$jscomp$
|
15680
|
-
internals$jscomp$
|
15684
|
+
(rendererID = hook$jscomp$inline_2340.inject(
|
15685
|
+
internals$jscomp$inline_2339
|
15681
15686
|
)),
|
15682
|
-
(injectedHook = hook$jscomp$
|
15687
|
+
(injectedHook = hook$jscomp$inline_2340);
|
15683
15688
|
} catch (err) {}
|
15684
15689
|
}
|
15685
15690
|
exports.createRoot = function (container, options) {
|
@@ -15771,4 +15776,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
|
15771
15776
|
listenToAllSupportedEvents(container);
|
15772
15777
|
return new ReactDOMHydrationRoot(initialChildren);
|
15773
15778
|
};
|
15774
|
-
exports.version = "19.2.0-canary-
|
15779
|
+
exports.version = "19.2.0-canary-7a2c7045-20250506";
|