|
3603 | 3603 | switch (type) { |
3604 | 3604 | case REACT_FRAGMENT_TYPE: |
3605 | 3605 | return "Fragment"; |
3606 | | - case REACT_PORTAL_TYPE: |
3607 | | - return "Portal"; |
3608 | 3606 | case REACT_PROFILER_TYPE: |
3609 | 3607 | return "Profiler"; |
3610 | 3608 | case REACT_STRICT_MODE_TYPE: |
|
3613 | 3611 | return "Suspense"; |
3614 | 3612 | case REACT_SUSPENSE_LIST_TYPE: |
3615 | 3613 | return "SuspenseList"; |
| 3614 | + case REACT_ACTIVITY_TYPE: |
| 3615 | + return "Activity"; |
3616 | 3616 | case REACT_VIEW_TRANSITION_TYPE: |
3617 | 3617 | return "ViewTransition"; |
3618 | 3618 | } |
|
3624 | 3624 | ), |
3625 | 3625 | type.$$typeof) |
3626 | 3626 | ) { |
| 3627 | + case REACT_PORTAL_TYPE: |
| 3628 | + return "Portal"; |
3627 | 3629 | case REACT_CONTEXT_TYPE: |
3628 | 3630 | return (type.displayName || "Context") + ".Provider"; |
3629 | 3631 | case REACT_CONSUMER_TYPE: |
|
5443 | 5445 | renderNodeDestructive(request, task, props.children, -1); |
5444 | 5446 | task.keyPath = prevKeyPath$jscomp$1; |
5445 | 5447 | return; |
5446 | | - case REACT_OFFSCREEN_TYPE: |
| 5448 | + case REACT_ACTIVITY_TYPE: |
5447 | 5449 | if ("hidden" !== props.mode) { |
5448 | 5450 | var prevKeyPath$jscomp$2 = task.keyPath; |
5449 | 5451 | task.keyPath = keyPath; |
|
5458 | 5460 | task.keyPath = _prevKeyPath3; |
5459 | 5461 | return; |
5460 | 5462 | case REACT_VIEW_TRANSITION_TYPE: |
5461 | | - var _prevKeyPath4 = task.keyPath; |
| 5463 | + var prevKeyPath$jscomp$3 = task.keyPath; |
5462 | 5464 | task.keyPath = keyPath; |
5463 | | - renderNodeDestructive(request, task, props.children, -1); |
5464 | | - task.keyPath = _prevKeyPath4; |
| 5465 | + if (null != props.name && "auto" !== props.name) |
| 5466 | + renderNodeDestructive(request, task, props.children, -1); |
| 5467 | + else { |
| 5468 | + var prevTreeContext = task.treeContext; |
| 5469 | + task.treeContext = pushTreeContext(prevTreeContext, 1, 0); |
| 5470 | + renderNode(request, task, props.children, -1); |
| 5471 | + task.treeContext = prevTreeContext; |
| 5472 | + } |
| 5473 | + task.keyPath = prevKeyPath$jscomp$3; |
5465 | 5474 | return; |
5466 | 5475 | case REACT_SCOPE_TYPE: |
5467 | 5476 | throw Error( |
|
5478 | 5487 | task.keyPath = _prevKeyPath; |
5479 | 5488 | } |
5480 | 5489 | } else { |
5481 | | - var prevKeyPath$jscomp$3 = task.keyPath, |
| 5490 | + var prevKeyPath$jscomp$4 = task.keyPath, |
5482 | 5491 | parentBoundary = task.blockedBoundary, |
5483 | 5492 | parentPreamble = task.blockedPreamble, |
5484 | 5493 | parentHoistableState = task.hoistableState, |
|
5559 | 5568 | } finally { |
5560 | 5569 | (task.blockedSegment = parentSegment), |
5561 | 5570 | (task.blockedPreamble = parentPreamble), |
5562 | | - (task.keyPath = prevKeyPath$jscomp$3); |
| 5571 | + (task.keyPath = prevKeyPath$jscomp$4); |
5563 | 5572 | } |
5564 | 5573 | var suspendedPrimaryTask = createRenderTask( |
5565 | 5574 | request, |
|
5649 | 5658 | (task.blockedPreamble = parentPreamble), |
5650 | 5659 | (task.hoistableState = parentHoistableState), |
5651 | 5660 | (task.blockedSegment = parentSegment), |
5652 | | - (task.keyPath = prevKeyPath$jscomp$3); |
| 5661 | + (task.keyPath = prevKeyPath$jscomp$4); |
5653 | 5662 | } |
5654 | 5663 | var suspendedFallbackTask = createRenderTask( |
5655 | 5664 | request, |
|
5710 | 5719 | var value$jscomp$0 = props.value, |
5711 | 5720 | children$jscomp$1 = props.children; |
5712 | 5721 | var prevSnapshot = task.context; |
5713 | | - var prevKeyPath$jscomp$4 = task.keyPath; |
| 5722 | + var prevKeyPath$jscomp$5 = task.keyPath; |
5714 | 5723 | var prevValue = type._currentValue2; |
5715 | 5724 | type._currentValue2 = value$jscomp$0; |
5716 | 5725 | void 0 !== type._currentRenderer2 && |
|
5753 | 5762 | var JSCompiler_inline_result$jscomp$0 = (currentActiveSnapshot = |
5754 | 5763 | prevSnapshot$jscomp$0.parent); |
5755 | 5764 | task.context = JSCompiler_inline_result$jscomp$0; |
5756 | | - task.keyPath = prevKeyPath$jscomp$4; |
| 5765 | + task.keyPath = prevKeyPath$jscomp$5; |
5757 | 5766 | prevSnapshot !== task.context && |
5758 | 5767 | console.error( |
5759 | 5768 | "Popping the context provider did not return back to the original snapshot. This is a bug in React." |
|
5767 | 5776 | "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." |
5768 | 5777 | ); |
5769 | 5778 | var newChildren = render(context$jscomp$0._currentValue2), |
5770 | | - prevKeyPath$jscomp$5 = task.keyPath; |
| 5779 | + prevKeyPath$jscomp$6 = task.keyPath; |
5771 | 5780 | task.keyPath = keyPath; |
5772 | 5781 | renderNodeDestructive(request, task, newChildren, -1); |
5773 | | - task.keyPath = prevKeyPath$jscomp$5; |
| 5782 | + task.keyPath = prevKeyPath$jscomp$6; |
5774 | 5783 | return; |
5775 | 5784 | case REACT_LAZY_TYPE: |
5776 | 5785 | var Component = callLazyInitInDEV(type); |
|
8147 | 8156 | REACT_MEMO_TYPE = Symbol.for("react.memo"), |
8148 | 8157 | REACT_LAZY_TYPE = Symbol.for("react.lazy"), |
8149 | 8158 | REACT_SCOPE_TYPE = Symbol.for("react.scope"), |
8150 | | - REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), |
| 8159 | + REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), |
8151 | 8160 | REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), |
8152 | 8161 | REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), |
8153 | 8162 | REACT_POSTPONE_TYPE = Symbol.for("react.postpone"), |
|
9600 | 9609 | 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' |
9601 | 9610 | ); |
9602 | 9611 | }; |
9603 | | - exports.version = "19.1.0-experimental-5398b711-20250314"; |
| 9612 | + exports.version = "19.1.0-experimental-c69a5fc5-20250318"; |
9604 | 9613 | })(); |
0 commit comments