@@ -179,6 +179,28 @@ function getFragmentParentHostFiber(fiber) {
179
179
}
180
180
return null;
181
181
}
182
+ function findFragmentInstanceSiblings(result, self, child) {
183
+ for (
184
+ var foundSelf =
185
+ 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : !1;
186
+ null !== child;
187
+
188
+ ) {
189
+ if (child === self)
190
+ if (((foundSelf = !0), child.sibling)) child = child.sibling;
191
+ else return !0;
192
+ if (5 === child.tag) {
193
+ if (foundSelf) return (result[1] = child), !0;
194
+ result[0] = child;
195
+ } else if (
196
+ (22 !== child.tag || null === child.memoizedState) &&
197
+ findFragmentInstanceSiblings(result, self, child.child, foundSelf)
198
+ )
199
+ return !0;
200
+ child = child.sibling;
201
+ }
202
+ return !1;
203
+ }
182
204
function getInstanceFromHostFiber(fiber) {
183
205
switch (fiber.tag) {
184
206
case 5:
@@ -14452,20 +14474,20 @@ function debounceScrollEnd(targetInst, nativeEvent, nativeEventTarget) {
14452
14474
(nativeEventTarget[internalScrollTimer] = targetInst));
14453
14475
}
14454
14476
for (
14455
- var i$jscomp$inline_1780 = 0;
14456
- i$jscomp$inline_1780 < simpleEventPluginEvents.length;
14457
- i$jscomp$inline_1780 ++
14477
+ var i$jscomp$inline_1781 = 0;
14478
+ i$jscomp$inline_1781 < simpleEventPluginEvents.length;
14479
+ i$jscomp$inline_1781 ++
14458
14480
) {
14459
- var eventName$jscomp$inline_1781 =
14460
- simpleEventPluginEvents[i$jscomp$inline_1780 ],
14461
- domEventName$jscomp$inline_1782 =
14462
- eventName$jscomp$inline_1781 .toLowerCase(),
14463
- capitalizedEvent$jscomp$inline_1783 =
14464
- eventName$jscomp$inline_1781 [0].toUpperCase() +
14465
- eventName$jscomp$inline_1781 .slice(1);
14481
+ var eventName$jscomp$inline_1782 =
14482
+ simpleEventPluginEvents[i$jscomp$inline_1781 ],
14483
+ domEventName$jscomp$inline_1783 =
14484
+ eventName$jscomp$inline_1782 .toLowerCase(),
14485
+ capitalizedEvent$jscomp$inline_1784 =
14486
+ eventName$jscomp$inline_1782 [0].toUpperCase() +
14487
+ eventName$jscomp$inline_1782 .slice(1);
14466
14488
registerSimpleEvent(
14467
- domEventName$jscomp$inline_1782 ,
14468
- "on" + capitalizedEvent$jscomp$inline_1783
14489
+ domEventName$jscomp$inline_1783 ,
14490
+ "on" + capitalizedEvent$jscomp$inline_1784
14469
14491
);
14470
14492
}
14471
14493
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -17104,6 +17126,36 @@ function removeEventListenerFromChild(
17104
17126
);
17105
17127
return !1;
17106
17128
}
17129
+ function normalizeListenerOptions(opts) {
17130
+ return null == opts
17131
+ ? "0"
17132
+ : "boolean" === typeof opts
17133
+ ? "c=" + (opts ? "1" : "0")
17134
+ : "c=" +
17135
+ (opts.capture ? "1" : "0") +
17136
+ "&o=" +
17137
+ (opts.once ? "1" : "0") +
17138
+ "&p=" +
17139
+ (opts.passive ? "1" : "0");
17140
+ }
17141
+ function indexOfEventListener(
17142
+ eventListeners,
17143
+ type,
17144
+ listener,
17145
+ optionsOrUseCapture
17146
+ ) {
17147
+ for (var i = 0; i < eventListeners.length; i++) {
17148
+ var item = eventListeners[i];
17149
+ if (
17150
+ item.type === type &&
17151
+ item.listener === listener &&
17152
+ normalizeListenerOptions(item.optionsOrUseCapture) ===
17153
+ normalizeListenerOptions(optionsOrUseCapture)
17154
+ )
17155
+ return i;
17156
+ }
17157
+ return -1;
17158
+ }
17107
17159
FragmentInstance.prototype.dispatchEvent = function (event) {
17108
17160
var parentHostFiber = getFragmentParentHostFiber(this._fragmentFiber);
17109
17161
if (null === parentHostFiber) return !0;
@@ -17434,36 +17486,40 @@ function validateDocumentPositionWithFiberTree(
17434
17486
fragmentFiber)
17435
17487
: !1;
17436
17488
}
17437
- function normalizeListenerOptions(opts) {
17438
- return null == opts
17439
- ? "0"
17440
- : "boolean" === typeof opts
17441
- ? "c=" + (opts ? "1" : "0")
17442
- : "c=" +
17443
- (opts.capture ? "1" : "0") +
17444
- "&o=" +
17445
- (opts.once ? "1" : "0") +
17446
- "&p=" +
17447
- (opts.passive ? "1" : "0");
17448
- }
17449
- function indexOfEventListener(
17450
- eventListeners,
17451
- type,
17452
- listener,
17453
- optionsOrUseCapture
17454
- ) {
17455
- for (var i = 0; i < eventListeners.length; i++) {
17456
- var item = eventListeners[i];
17457
- if (
17458
- item.type === type &&
17459
- item.listener === listener &&
17460
- normalizeListenerOptions(item.optionsOrUseCapture) ===
17461
- normalizeListenerOptions(optionsOrUseCapture)
17489
+ FragmentInstance.prototype.experimental_scrollIntoView = function (alignToTop) {
17490
+ if ("object" === typeof alignToTop) throw Error(formatProdErrorMessage(566));
17491
+ var children = [];
17492
+ traverseVisibleHostChildren(
17493
+ this._fragmentFiber.child,
17494
+ !1,
17495
+ collectChildren,
17496
+ children,
17497
+ void 0,
17498
+ void 0
17499
+ );
17500
+ var resolvedAlignToTop = !1 !== alignToTop;
17501
+ if (0 === children.length) {
17502
+ children = this._fragmentFiber;
17503
+ var result = [null, null],
17504
+ parentHostFiber = getFragmentParentHostFiber(children);
17505
+ null !== parentHostFiber &&
17506
+ findFragmentInstanceSiblings(result, children, parentHostFiber.child);
17507
+ resolvedAlignToTop = resolvedAlignToTop
17508
+ ? result[1] ||
17509
+ result[0] ||
17510
+ getFragmentParentHostFiber(this._fragmentFiber)
17511
+ : result[0] || result[1];
17512
+ null !== resolvedAlignToTop &&
17513
+ getInstanceFromHostFiber(resolvedAlignToTop).scrollIntoView(alignToTop);
17514
+ } else
17515
+ for (
17516
+ result = resolvedAlignToTop ? children.length - 1 : 0;
17517
+ result !== (resolvedAlignToTop ? -1 : children.length);
17518
+
17462
17519
)
17463
- return i;
17464
- }
17465
- return -1;
17466
- }
17520
+ getInstanceFromHostFiber(children[result]).scrollIntoView(alignToTop),
17521
+ (result += resolvedAlignToTop ? -1 : 1);
17522
+ };
17467
17523
function commitNewChildToFragmentInstance(childInstance, fragmentInstance) {
17468
17524
var eventListeners = fragmentInstance._eventListeners;
17469
17525
if (null !== eventListeners)
@@ -19297,16 +19353,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
19297
19353
0 === i && attemptExplicitHydrationTarget(target);
19298
19354
}
19299
19355
};
19300
- var isomorphicReactPackageVersion$jscomp$inline_2188 = React.version;
19356
+ var isomorphicReactPackageVersion$jscomp$inline_2199 = React.version;
19301
19357
if (
19302
- "19.2.0-experimental-33a1095d -20250827" !==
19303
- isomorphicReactPackageVersion$jscomp$inline_2188
19358
+ "19.2.0-experimental-8d7b5e49 -20250827" !==
19359
+ isomorphicReactPackageVersion$jscomp$inline_2199
19304
19360
)
19305
19361
throw Error(
19306
19362
formatProdErrorMessage(
19307
19363
527,
19308
- isomorphicReactPackageVersion$jscomp$inline_2188 ,
19309
- "19.2.0-experimental-33a1095d -20250827"
19364
+ isomorphicReactPackageVersion$jscomp$inline_2199 ,
19365
+ "19.2.0-experimental-8d7b5e49 -20250827"
19310
19366
)
19311
19367
);
19312
19368
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19326,24 +19382,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
19326
19382
null === componentOrElement ? null : componentOrElement.stateNode;
19327
19383
return componentOrElement;
19328
19384
};
19329
- var internals$jscomp$inline_2885 = {
19385
+ var internals$jscomp$inline_2896 = {
19330
19386
bundleType: 0,
19331
- version: "19.2.0-experimental-33a1095d -20250827",
19387
+ version: "19.2.0-experimental-8d7b5e49 -20250827",
19332
19388
rendererPackageName: "react-dom",
19333
19389
currentDispatcherRef: ReactSharedInternals,
19334
- reconcilerVersion: "19.2.0-experimental-33a1095d -20250827"
19390
+ reconcilerVersion: "19.2.0-experimental-8d7b5e49 -20250827"
19335
19391
};
19336
19392
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
19337
- var hook$jscomp$inline_2886 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
19393
+ var hook$jscomp$inline_2897 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
19338
19394
if (
19339
- !hook$jscomp$inline_2886 .isDisabled &&
19340
- hook$jscomp$inline_2886 .supportsFiber
19395
+ !hook$jscomp$inline_2897 .isDisabled &&
19396
+ hook$jscomp$inline_2897 .supportsFiber
19341
19397
)
19342
19398
try {
19343
- (rendererID = hook$jscomp$inline_2886 .inject(
19344
- internals$jscomp$inline_2885
19399
+ (rendererID = hook$jscomp$inline_2897 .inject(
19400
+ internals$jscomp$inline_2896
19345
19401
)),
19346
- (injectedHook = hook$jscomp$inline_2886 );
19402
+ (injectedHook = hook$jscomp$inline_2897 );
19347
19403
} catch (err) {}
19348
19404
}
19349
19405
exports.createRoot = function (container, options) {
@@ -19438,4 +19494,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
19438
19494
listenToAllSupportedEvents(container);
19439
19495
return new ReactDOMHydrationRoot(initialChildren);
19440
19496
};
19441
- exports.version = "19.2.0-experimental-33a1095d -20250827";
19497
+ exports.version = "19.2.0-experimental-8d7b5e49 -20250827";
0 commit comments