[Fizz] Wrap revealCompletedBoundaries in a ViewTransitions aware version (#33293)

When needed.

For the external runtime we always include this wrapper.

For others, we only include it if we have an ViewTransitions affecting.
If we discover the ViewTransitions late, then we can upgrade an already
emitted instruction.

This doesn't yet do anything useful with it, that's coming in a follow
up. This is just the mechanism for how it gets installed.
This commit is contained in:
Sebastian Markbåge
2025-05-17 18:18:24 -04:00
committed by GitHub
parent c250b7d980
commit 6060367ef8
12 changed files with 259 additions and 109 deletions

View File

@@ -25,6 +25,10 @@ const config = [
entry: 'ReactDOMFizzInlineCompleteBoundary.js',
exportName: 'completeBoundary',
},
{
entry: 'ReactDOMFizzInlineCompleteBoundaryUpgradeToViewTransitions.js',
exportName: 'completeBoundaryUpgradeToViewTransitions',
},
{
entry: 'ReactDOMFizzInlineCompleteBoundaryWithStyles.js',
exportName: 'completeBoundaryWithStyles',