@bleedingdev/tanstack-redact 0.0.0-stage → 0.2.2
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/LICENSE +21 -0
- package/dist/cloudflare/index.d.ts +6 -0
- package/dist/cloudflare/index.js +39 -0
- package/dist/cloudflare/index.js.map +7 -0
- package/dist/core/attributes.d.ts +4 -0
- package/dist/core/attributes.js +30 -0
- package/dist/core/attributes.js.map +7 -0
- package/dist/core/browser.d.ts +9 -0
- package/dist/core/browser.js +32 -0
- package/dist/core/browser.js.map +7 -0
- package/dist/core/class-props.d.ts +1 -0
- package/dist/core/class-props.js +15 -0
- package/dist/core/class-props.js.map +7 -0
- package/dist/core/devtools.d.ts +26 -0
- package/dist/core/devtools.js +70 -0
- package/dist/core/devtools.js.map +7 -0
- package/dist/core/functions.d.ts +6 -0
- package/dist/core/functions.js +14 -0
- package/dist/core/functions.js.map +7 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +3 -0
- package/dist/core/index.js.map +7 -0
- package/dist/core/internal.d.ts +103 -0
- package/dist/core/internal.js +43 -0
- package/dist/core/internal.js.map +7 -0
- package/dist/core/resource-hints.d.ts +7 -0
- package/dist/core/resource-hints.js +20 -0
- package/dist/core/resource-hints.js.map +7 -0
- package/dist/core/types.d.ts +23 -0
- package/dist/core/types.js +8 -0
- package/dist/core/types.js.map +7 -0
- package/dist/core/unitless-style.d.ts +1 -0
- package/dist/core/unitless-style.js +5 -0
- package/dist/core/unitless-style.js.map +7 -0
- package/dist/dom/_all.d.ts +27 -0
- package/dist/dom/_all.js +51 -0
- package/dist/dom/_all.js.map +7 -0
- package/dist/dom/client.d.ts +9 -0
- package/dist/dom/client.js +13 -0
- package/dist/dom/client.js.map +7 -0
- package/dist/dom/commit.d.ts +27 -0
- package/dist/dom/commit.js +237 -0
- package/dist/dom/commit.js.map +7 -0
- package/dist/dom/devtools-effects.d.ts +8 -0
- package/dist/dom/devtools-effects.js +80 -0
- package/dist/dom/devtools-effects.js.map +7 -0
- package/dist/dom/devtools.d.ts +33 -0
- package/dist/dom/devtools.js +635 -0
- package/dist/dom/devtools.js.map +7 -0
- package/dist/dom/dispatcher.d.ts +4 -0
- package/dist/dom/dispatcher.js +437 -0
- package/dist/dom/dispatcher.js.map +7 -0
- package/dist/dom/document-metadata.d.ts +7 -0
- package/dist/dom/document-metadata.js +44 -0
- package/dist/dom/document-metadata.js.map +7 -0
- package/dist/dom/dom.d.ts +11 -0
- package/dist/dom/dom.js +165 -0
- package/dist/dom/dom.js.map +7 -0
- package/dist/dom/error-info.d.ts +2 -0
- package/dist/dom/error-info.js +19 -0
- package/dist/dom/error-info.js.map +7 -0
- package/dist/dom/event-replay.d.ts +13 -0
- package/dist/dom/event-replay.js +24 -0
- package/dist/dom/event-replay.js.map +7 -0
- package/dist/dom/features/activity/full.d.ts +1 -0
- package/dist/dom/features/activity/full.js +140 -0
- package/dist/dom/features/activity/full.js.map +7 -0
- package/dist/dom/features/activity/index.d.ts +1 -0
- package/dist/dom/features/activity/index.js +2 -0
- package/dist/dom/features/activity/index.js.map +7 -0
- package/dist/dom/features/activity/stub.d.ts +1 -0
- package/dist/dom/features/activity/stub.js +10 -0
- package/dist/dom/features/activity/stub.js.map +7 -0
- package/dist/dom/features/class/full.d.ts +1 -0
- package/dist/dom/features/class/full.js +208 -0
- package/dist/dom/features/class/full.js.map +7 -0
- package/dist/dom/features/class/index.d.ts +1 -0
- package/dist/dom/features/class/index.js +2 -0
- package/dist/dom/features/class/index.js.map +7 -0
- package/dist/dom/features/class/stub.d.ts +1 -0
- package/dist/dom/features/class/stub.js +46 -0
- package/dist/dom/features/class/stub.js.map +7 -0
- package/dist/dom/features/context/full.d.ts +4 -0
- package/dist/dom/features/context/full.js +103 -0
- package/dist/dom/features/context/full.js.map +7 -0
- package/dist/dom/features/context/index.d.ts +1 -0
- package/dist/dom/features/context/index.js +2 -0
- package/dist/dom/features/context/index.js.map +7 -0
- package/dist/dom/features/context/stub.d.ts +4 -0
- package/dist/dom/features/context/stub.js +21 -0
- package/dist/dom/features/context/stub.js.map +7 -0
- package/dist/dom/features/forward-ref/full.d.ts +1 -0
- package/dist/dom/features/forward-ref/full.js +9 -0
- package/dist/dom/features/forward-ref/full.js.map +7 -0
- package/dist/dom/features/forward-ref/index.d.ts +1 -0
- package/dist/dom/features/forward-ref/index.js +2 -0
- package/dist/dom/features/forward-ref/index.js.map +7 -0
- package/dist/dom/features/forward-ref/stub.d.ts +1 -0
- package/dist/dom/features/forward-ref/stub.js +9 -0
- package/dist/dom/features/forward-ref/stub.js.map +7 -0
- package/dist/dom/features/fragment-refs/index.d.ts +1 -0
- package/dist/dom/features/fragment-refs/index.js +9 -0
- package/dist/dom/features/fragment-refs/index.js.map +7 -0
- package/dist/dom/features/fragment-refs/stub.d.ts +5 -0
- package/dist/dom/features/fragment-refs/stub.js +17 -0
- package/dist/dom/features/fragment-refs/stub.js.map +7 -0
- package/dist/dom/features/hydration/full.d.ts +68 -0
- package/dist/dom/features/hydration/full.js +493 -0
- package/dist/dom/features/hydration/full.js.map +7 -0
- package/dist/dom/features/hydration/index.d.ts +1 -0
- package/dist/dom/features/hydration/index.js +2 -0
- package/dist/dom/features/hydration/index.js.map +7 -0
- package/dist/dom/features/hydration/stub.d.ts +36 -0
- package/dist/dom/features/hydration/stub.js +80 -0
- package/dist/dom/features/hydration/stub.js.map +7 -0
- package/dist/dom/features/index.d.ts +8 -0
- package/dist/dom/features/index.js +9 -0
- package/dist/dom/features/index.js.map +7 -0
- package/dist/dom/features/lazy/full.d.ts +1 -0
- package/dist/dom/features/lazy/full.js +23 -0
- package/dist/dom/features/lazy/full.js.map +7 -0
- package/dist/dom/features/lazy/index.d.ts +1 -0
- package/dist/dom/features/lazy/index.js +2 -0
- package/dist/dom/features/lazy/index.js.map +7 -0
- package/dist/dom/features/lazy/stub.d.ts +1 -0
- package/dist/dom/features/lazy/stub.js +19 -0
- package/dist/dom/features/lazy/stub.js.map +7 -0
- package/dist/dom/features/memo/full.d.ts +1 -0
- package/dist/dom/features/memo/full.js +34 -0
- package/dist/dom/features/memo/full.js.map +7 -0
- package/dist/dom/features/memo/index.d.ts +1 -0
- package/dist/dom/features/memo/index.js +2 -0
- package/dist/dom/features/memo/index.js.map +7 -0
- package/dist/dom/features/memo/stub.d.ts +1 -0
- package/dist/dom/features/memo/stub.js +9 -0
- package/dist/dom/features/memo/stub.js.map +7 -0
- package/dist/dom/features/portal/full.d.ts +1 -0
- package/dist/dom/features/portal/full.js +11 -0
- package/dist/dom/features/portal/full.js.map +7 -0
- package/dist/dom/features/portal/index.d.ts +1 -0
- package/dist/dom/features/portal/index.js +2 -0
- package/dist/dom/features/portal/index.js.map +7 -0
- package/dist/dom/features/portal/stub.d.ts +1 -0
- package/dist/dom/features/portal/stub.js +5 -0
- package/dist/dom/features/portal/stub.js.map +7 -0
- package/dist/dom/features/suspense/full.d.ts +1 -0
- package/dist/dom/features/suspense/full.js +389 -0
- package/dist/dom/features/suspense/full.js.map +7 -0
- package/dist/dom/features/suspense/index.d.ts +1 -0
- package/dist/dom/features/suspense/index.js +2 -0
- package/dist/dom/features/suspense/index.js.map +7 -0
- package/dist/dom/features/suspense/stub.d.ts +1 -0
- package/dist/dom/features/suspense/stub.js +4 -0
- package/dist/dom/features/suspense/stub.js.map +7 -0
- package/dist/dom/features/suspense-runtime/index.d.ts +1 -0
- package/dist/dom/features/suspense-runtime/index.js +2 -0
- package/dist/dom/features/suspense-runtime/index.js.map +7 -0
- package/dist/dom/features/suspense-runtime/stub.d.ts +1 -0
- package/dist/dom/features/suspense-runtime/stub.js +11 -0
- package/dist/dom/features/suspense-runtime/stub.js.map +7 -0
- package/dist/dom/features/view-transition/full.d.ts +7 -0
- package/dist/dom/features/view-transition/full.js +324 -0
- package/dist/dom/features/view-transition/full.js.map +7 -0
- package/dist/dom/features/view-transition/index.d.ts +1 -0
- package/dist/dom/features/view-transition/index.js +2 -0
- package/dist/dom/features/view-transition/index.js.map +7 -0
- package/dist/dom/features/view-transition/resources.d.ts +11 -0
- package/dist/dom/features/view-transition/resources.js +117 -0
- package/dist/dom/features/view-transition/resources.js.map +7 -0
- package/dist/dom/features/view-transition/stub.d.ts +7 -0
- package/dist/dom/features/view-transition/stub.js +21 -0
- package/dist/dom/features/view-transition/stub.js.map +7 -0
- package/dist/dom/features/view-transition/visual.d.ts +14 -0
- package/dist/dom/features/view-transition/visual.js +404 -0
- package/dist/dom/features/view-transition/visual.js.map +7 -0
- package/dist/dom/form-actions.d.ts +4 -0
- package/dist/dom/form-actions.js +74 -0
- package/dist/dom/form-actions.js.map +7 -0
- package/dist/dom/form-controls.d.ts +3 -0
- package/dist/dom/form-controls.js +91 -0
- package/dist/dom/form-controls.js.map +7 -0
- package/dist/dom/fragment-instance.d.ts +33 -0
- package/dist/dom/fragment-instance.js +449 -0
- package/dist/dom/fragment-instance.js.map +7 -0
- package/dist/dom/index.d.ts +61 -0
- package/dist/dom/index.js +71 -0
- package/dist/dom/index.js.map +7 -0
- package/dist/dom/portal.d.ts +2 -0
- package/dist/dom/portal.js +14 -0
- package/dist/dom/portal.js.map +7 -0
- package/dist/dom/react-ids.d.ts +6 -0
- package/dist/dom/react-ids.js +38 -0
- package/dist/dom/react-ids.js.map +7 -0
- package/dist/dom/reconcile.d.ts +86 -0
- package/dist/dom/reconcile.js +1305 -0
- package/dist/dom/reconcile.js.map +7 -0
- package/dist/dom/refresh.d.ts +12 -0
- package/dist/dom/refresh.js +174 -0
- package/dist/dom/refresh.js.map +7 -0
- package/dist/dom/resource-hints.d.ts +6 -0
- package/dist/dom/resource-hints.js +107 -0
- package/dist/dom/resource-hints.js.map +7 -0
- package/dist/dom/resource-store.d.ts +13 -0
- package/dist/dom/resource-store.js +47 -0
- package/dist/dom/resource-store.js.map +7 -0
- package/dist/dom/resources.d.ts +1 -0
- package/dist/dom/resources.js +46 -0
- package/dist/dom/resources.js.map +7 -0
- package/dist/dom/retained-effects.d.ts +6 -0
- package/dist/dom/retained-effects.js +67 -0
- package/dist/dom/retained-effects.js.map +7 -0
- package/dist/dom/root-internal.d.ts +11 -0
- package/dist/dom/root-internal.js +35 -0
- package/dist/dom/root-internal.js.map +7 -0
- package/dist/dom/root.d.ts +17 -0
- package/dist/dom/root.js +38 -0
- package/dist/dom/root.js.map +7 -0
- package/dist/dom/synthetic-event.d.ts +1 -0
- package/dist/dom/synthetic-event.js +37 -0
- package/dist/dom/synthetic-event.js.map +7 -0
- package/dist/dom/test-utils.d.ts +1 -0
- package/dist/dom/test-utils.js +5 -0
- package/dist/dom/test-utils.js.map +7 -0
- package/dist/dom/transitions.d.ts +9 -0
- package/dist/dom/transitions.js +147 -0
- package/dist/dom/transitions.js.map +7 -0
- package/dist/dom/tree.d.ts +5 -0
- package/dist/dom/tree.js +62 -0
- package/dist/dom/tree.js.map +7 -0
- package/dist/dom/walk.d.ts +2 -0
- package/dist/dom/walk.js +14 -0
- package/dist/dom/walk.js.map +7 -0
- package/dist/next/client.d.ts +9 -0
- package/dist/next/client.js +14 -0
- package/dist/next/client.js.map +7 -0
- package/dist/next/dev-cache-loader.cjs +13 -0
- package/dist/next/index.d.ts +2 -0
- package/dist/next/index.js +97 -0
- package/dist/next/index.js.map +7 -0
- package/dist/next/loader.cjs +10 -0
- package/dist/next/react.d.ts +71 -0
- package/dist/next/react.js +9 -0
- package/dist/next/react.js.map +7 -0
- package/dist/react/act.d.ts +3 -0
- package/dist/react/act.js +124 -0
- package/dist/react/act.js.map +7 -0
- package/dist/react/action-scope.d.ts +17 -0
- package/dist/react/action-scope.js +60 -0
- package/dist/react/action-scope.js.map +7 -0
- package/dist/react/activity.d.ts +7 -0
- package/dist/react/activity.js +7 -0
- package/dist/react/activity.js.map +7 -0
- package/dist/react/children.d.ts +8 -0
- package/dist/react/children.js +76 -0
- package/dist/react/children.js.map +7 -0
- package/dist/react/class.d.ts +36 -0
- package/dist/react/class.js +39 -0
- package/dist/react/class.js.map +7 -0
- package/dist/react/compiler-runtime.d.ts +1 -0
- package/dist/react/compiler-runtime.js +9 -0
- package/dist/react/compiler-runtime.js.map +7 -0
- package/dist/react/context.d.ts +32 -0
- package/dist/react/context.js +25 -0
- package/dist/react/context.js.map +7 -0
- package/dist/react/element.d.ts +13 -0
- package/dist/react/element.js +70 -0
- package/dist/react/element.js.map +7 -0
- package/dist/react/form-state.d.ts +26 -0
- package/dist/react/form-state.js +30 -0
- package/dist/react/form-state.js.map +7 -0
- package/dist/react/hooks.d.ts +67 -0
- package/dist/react/hooks.js +165 -0
- package/dist/react/hooks.js.map +7 -0
- package/dist/react/index.d.ts +99 -0
- package/dist/react/index.js +143 -0
- package/dist/react/index.js.map +7 -0
- package/dist/react/jsx-runtime.d.ts +24 -0
- package/dist/react/jsx-runtime.js +37 -0
- package/dist/react/jsx-runtime.js.map +7 -0
- package/dist/react/memo.d.ts +20 -0
- package/dist/react/memo.js +27 -0
- package/dist/react/memo.js.map +7 -0
- package/dist/react/portal.d.ts +1 -0
- package/dist/react/portal.js +5 -0
- package/dist/react/portal.js.map +7 -0
- package/dist/react/shared-internals.d.ts +52 -0
- package/dist/react/shared-internals.js +22 -0
- package/dist/react/shared-internals.js.map +7 -0
- package/dist/react/suspense.d.ts +15 -0
- package/dist/react/suspense.js +15 -0
- package/dist/react/suspense.js.map +7 -0
- package/dist/react/thenable.d.ts +1 -0
- package/dist/react/thenable.js +25 -0
- package/dist/react/thenable.js.map +7 -0
- package/dist/react/view-transition.d.ts +32 -0
- package/dist/react/view-transition.js +12 -0
- package/dist/react/view-transition.js.map +7 -0
- package/dist/scheduler/index.d.ts +44 -0
- package/dist/scheduler/index.js +109 -0
- package/dist/scheduler/index.js.map +7 -0
- package/dist/server/bootstrap-script.d.ts +3 -0
- package/dist/server/bootstrap-script.js +17 -0
- package/dist/server/bootstrap-script.js.map +7 -0
- package/dist/server/dispatcher.d.ts +57 -0
- package/dist/server/dispatcher.js +157 -0
- package/dist/server/dispatcher.js.map +7 -0
- package/dist/server/escape.d.ts +6 -0
- package/dist/server/escape.js +75 -0
- package/dist/server/escape.js.map +7 -0
- package/dist/server/index.d.ts +16 -0
- package/dist/server/index.js +25 -0
- package/dist/server/index.js.map +7 -0
- package/dist/server/insertion-context.d.ts +3 -0
- package/dist/server/insertion-context.js +32 -0
- package/dist/server/renderToString.d.ts +7 -0
- package/dist/server/renderToString.js +33 -0
- package/dist/server/renderToString.js.map +7 -0
- package/dist/server/resource-hints.d.ts +22 -0
- package/dist/server/resource-hints.js +168 -0
- package/dist/server/resource-hints.js.map +7 -0
- package/dist/server/stream-ids.d.ts +3 -0
- package/dist/server/stream-ids.js +8 -0
- package/dist/server/stream.d.ts +61 -0
- package/dist/server/stream.js +418 -0
- package/dist/server/stream.js.map +7 -0
- package/dist/server/walk.d.ts +58 -0
- package/dist/server/walk.js +378 -0
- package/dist/server/walk.js.map +7 -0
- package/dist/vinext/compatibility.d.ts +23 -0
- package/dist/vinext/compatibility.js +127 -0
- package/dist/vinext/compatibility.js.map +7 -0
- package/dist/vinext/flight-timing.d.ts +1 -0
- package/dist/vinext/flight-timing.js +46 -0
- package/dist/vinext/flight-timing.js.map +7 -0
- package/dist/vinext/index.d.ts +5 -0
- package/dist/vinext/index.js +50 -0
- package/dist/vinext/index.js.map +7 -0
- package/dist/vite/index.d.ts +102 -0
- package/dist/vite/index.js +291 -0
- package/dist/vite/index.js.map +7 -0
- package/dist/vite/react18.d.ts +4 -0
- package/dist/vite/react18.js +74 -0
- package/dist/vite/react18.js.map +7 -0
- package/package.json +121 -4
- package/src/cloudflare/index.ts +44 -0
- package/src/core/attributes.ts +20 -0
- package/src/core/browser.ts +34 -0
- package/src/core/class-props.ts +12 -0
- package/src/core/devtools.ts +69 -0
- package/src/core/functions.ts +11 -0
- package/src/core/index.ts +2 -0
- package/src/core/internal.ts +123 -0
- package/src/core/resource-hints.ts +39 -0
- package/src/core/types.ts +39 -0
- package/src/core/unitless-style.ts +1 -0
- package/src/dom/_all.ts +46 -0
- package/src/dom/client.ts +17 -0
- package/src/dom/commit.ts +223 -0
- package/src/dom/devtools-effects.ts +78 -0
- package/src/dom/devtools.ts +527 -0
- package/src/dom/dispatcher.ts +476 -0
- package/src/dom/document-metadata.ts +41 -0
- package/src/dom/dom.ts +181 -0
- package/src/dom/error-info.ts +20 -0
- package/src/dom/event-replay.ts +39 -0
- package/src/dom/features/activity/full.ts +150 -0
- package/src/dom/features/activity/index.ts +1 -0
- package/src/dom/features/activity/stub.ts +12 -0
- package/src/dom/features/class/full.ts +202 -0
- package/src/dom/features/class/index.ts +1 -0
- package/src/dom/features/class/stub.ts +58 -0
- package/src/dom/features/context/full.ts +107 -0
- package/src/dom/features/context/index.ts +1 -0
- package/src/dom/features/context/stub.ts +26 -0
- package/src/dom/features/forward-ref/full.ts +9 -0
- package/src/dom/features/forward-ref/index.ts +1 -0
- package/src/dom/features/forward-ref/stub.ts +15 -0
- package/src/dom/features/fragment-refs/index.ts +1 -0
- package/src/dom/features/fragment-refs/stub.ts +6 -0
- package/src/dom/features/hydration/full.ts +563 -0
- package/src/dom/features/hydration/index.ts +1 -0
- package/src/dom/features/hydration/stub.ts +86 -0
- package/src/dom/features/index.ts +12 -0
- package/src/dom/features/lazy/full.ts +27 -0
- package/src/dom/features/lazy/index.ts +1 -0
- package/src/dom/features/lazy/stub.ts +24 -0
- package/src/dom/features/memo/full.ts +39 -0
- package/src/dom/features/memo/index.ts +1 -0
- package/src/dom/features/memo/stub.ts +13 -0
- package/src/dom/features/portal/full.ts +14 -0
- package/src/dom/features/portal/index.ts +1 -0
- package/src/dom/features/portal/stub.ts +11 -0
- package/src/dom/features/suspense/full.ts +469 -0
- package/src/dom/features/suspense/index.ts +1 -0
- package/src/dom/features/suspense/stub.ts +13 -0
- package/src/dom/features/suspense-runtime/index.ts +1 -0
- package/src/dom/features/suspense-runtime/stub.ts +1 -0
- package/src/dom/features/view-transition/full.ts +292 -0
- package/src/dom/features/view-transition/index.ts +1 -0
- package/src/dom/features/view-transition/resources.ts +123 -0
- package/src/dom/features/view-transition/stub.ts +8 -0
- package/src/dom/features/view-transition/visual.ts +454 -0
- package/src/dom/form-actions.ts +69 -0
- package/src/dom/form-controls.ts +91 -0
- package/src/dom/fragment-instance.ts +462 -0
- package/src/dom/index.ts +49 -0
- package/src/dom/portal.ts +16 -0
- package/src/dom/react-ids.ts +36 -0
- package/src/dom/reconcile.ts +1423 -0
- package/src/dom/refresh.ts +171 -0
- package/src/dom/resource-hints.ts +104 -0
- package/src/dom/resource-store.ts +50 -0
- package/src/dom/resources.ts +47 -0
- package/src/dom/retained-effects.ts +57 -0
- package/src/dom/root-internal.ts +37 -0
- package/src/dom/root.ts +59 -0
- package/src/dom/synthetic-event.ts +27 -0
- package/src/dom/test-utils.ts +1 -0
- package/src/dom/transitions.ts +141 -0
- package/src/dom/tree.ts +56 -0
- package/src/dom/walk.ts +8 -0
- package/src/next/client.ts +10 -0
- package/src/next/dev-cache-loader.cjs +13 -0
- package/src/next/index.ts +95 -0
- package/src/next/loader.cjs +10 -0
- package/src/next/react.ts +7 -0
- package/src/react/act.ts +105 -0
- package/src/react/action-scope.ts +57 -0
- package/src/react/activity.ts +10 -0
- package/src/react/children.ts +86 -0
- package/src/react/class.ts +66 -0
- package/src/react/compiler-runtime.ts +8 -0
- package/src/react/context.ts +46 -0
- package/src/react/element.ts +82 -0
- package/src/react/form-state.ts +35 -0
- package/src/react/hooks.ts +214 -0
- package/src/react/index.ts +91 -0
- package/src/react/jsx-runtime.ts +50 -0
- package/src/react/memo.ts +42 -0
- package/src/react/portal.ts +1 -0
- package/src/react/shared-internals.ts +80 -0
- package/src/react/suspense.ts +18 -0
- package/src/react/thenable.ts +21 -0
- package/src/react/view-transition.ts +41 -0
- package/src/scheduler/index.ts +124 -0
- package/src/server/bootstrap-script.ts +92 -0
- package/src/server/dispatcher.ts +168 -0
- package/src/server/escape.ts +102 -0
- package/src/server/index.ts +26 -0
- package/src/server/insertion-context.ts +28 -0
- package/src/server/renderToString.ts +35 -0
- package/src/server/resource-hints.ts +166 -0
- package/src/server/stream-ids.ts +5 -0
- package/src/server/stream.ts +525 -0
- package/src/server/walk.ts +555 -0
- package/src/vinext/compatibility.ts +122 -0
- package/src/vinext/flight-timing.ts +37 -0
- package/src/vinext/index.ts +47 -0
- package/src/vite/index.ts +476 -0
- package/src/vite/react18.ts +74 -0
- package/vendor/cloudflare-vite-plugin/LICENSE +25 -0
- package/vendor/cloudflare-vite-plugin/README.md +9 -0
- package/vendor/cloudflare-vite-plugin/dist/chunk-U6NEESU5-BmLHqeIt.mjs +43 -0
- package/vendor/cloudflare-vite-plugin/dist/index.d.mts +155 -0
- package/vendor/cloudflare-vite-plugin/dist/index.mjs +94700 -0
- package/vendor/cloudflare-vite-plugin/dist/open-PCXX3ZDZ-DYH87NhH.mjs +530 -0
- package/vendor/cloudflare-vite-plugin/dist/package-4cnqy5mM.mjs +84 -0
- package/vendor/cloudflare-vite-plugin/dist/workers/asset-worker/index.js +5996 -0
- package/vendor/cloudflare-vite-plugin/dist/workers/router-worker/index.js +6414 -0
- package/vendor/cloudflare-vite-plugin/dist/workers/runner-worker/index.js +457 -0
- package/vendor/cloudflare-vite-plugin/dist/workers/runner-worker/module-runner-legacy.js +1129 -0
- package/vendor/cloudflare-vite-plugin/dist/workers/runner-worker/module-runner.js +1259 -0
- package/vendor/cloudflare-vite-plugin/dist/workers/vite-proxy-worker/index.js +31 -0
- package/vendor/cloudflare-vite-plugin/package.json +90 -0
- package/vendor/cloudflare-vite-plugin/provenance.json +26 -0
- package/README.md +0 -3
|
@@ -0,0 +1,1305 @@
|
|
|
1
|
+
import { isTextContent } from "../core/functions.js";
|
|
2
|
+
import { devToolsMetadata, readOwnerStack, runWithOwnerStack } from "../core/devtools.js";
|
|
3
|
+
import { getRootContainer } from "./root-internal.js";
|
|
4
|
+
import { getHostParent, findRoot, getAnchor, firstDomNode } from "./tree.js";
|
|
5
|
+
import { isThenable } from "../core/functions.js";
|
|
6
|
+
import { HOOK_BAILOUT, renderWithHooks } from "./dispatcher.js";
|
|
7
|
+
import { isString } from "../core/functions.js";
|
|
8
|
+
import { getHostParent as getHostParent2, findRoot as findRoot2 } from "./tree.js";
|
|
9
|
+
import { resourceKind } from "../core/resource-hints.js";
|
|
10
|
+
import { ReactSharedInternals, REACT_LAZY_TYPE, REACT_STRICT_MODE_TYPE, REACT_PROFILER_TYPE, REACT_VIEW_TRANSITION_TYPE } from "../react/index.js";
|
|
11
|
+
import { componentStack } from "./error-info.js";
|
|
12
|
+
import { syncInputValue, syncTextareaValue, syncSelectValue } from "./form-controls.js";
|
|
13
|
+
import { deferHydration } from "./features/hydration/index.js";
|
|
14
|
+
import { m as markTransitionUpdate, d as deferTransition, c as cancelTransitions, l as deferTransitionLayout, p as deferTransitionPassive } from "./features/view-transition/index.js";
|
|
15
|
+
import { clearAttributes, clearHostContainer, documentMetadataParent, documentSingleton, DOCUMENT_HEAD_TAGS } from "./document-metadata.js";
|
|
16
|
+
import { acquireResource } from "./resources.js";
|
|
17
|
+
import { a as transitionRender, p as hasTransition, t as flushTransitions, c as cancelPendingTransitions, s as scheduleTransitionRoot } from "./features/suspense-runtime/index.js";
|
|
18
|
+
import { commitFragmentRef, placeFragmentCommits, updateFragmentHost, refreshFragmentInstances } from "./features/fragment-refs/index.js";
|
|
19
|
+
import { isObject } from "../core/functions.js";
|
|
20
|
+
import { createFiber, REACT_ELEMENT_TYPE, REACT_LEGACY_ELEMENT_TYPE, REACT_FRAGMENT_TYPE } from "../core/index.js";
|
|
21
|
+
import { createHostNode, setProp } from "./dom.js";
|
|
22
|
+
import { rememberRefreshRender, scheduleRefreshRoot, commitRefreshRoot, failRefreshRoot, failRefreshBoundary, resolveRefreshType, sameRefreshFamily, needsRefreshRemount } from "./refresh.js";
|
|
23
|
+
import { forkId, assignReactIds, deferHydration as deferHydration2, queueHydrationEnd, finishHydration, adoptHostDom, adoptTextDom, findHostParent as findHydrationHost, abortHydration, recoverHydration, isHydrationBailout, resumeHydration } from "./features/hydration/index.js";
|
|
24
|
+
import { rememberRetainedEffect, setRetainedFlag, disconnectClass } from "./retained-effects.js";
|
|
25
|
+
import { readThenable } from "../react/thenable.js";
|
|
26
|
+
import { bindForm } from "./form-actions.js";
|
|
27
|
+
let currentRoot = null;
|
|
28
|
+
let flushing = false;
|
|
29
|
+
let isBatching = false;
|
|
30
|
+
const pendingRoots = /* @__PURE__ */ new Set();
|
|
31
|
+
let forceRerenderingFiber = null;
|
|
32
|
+
function tagForType(type, fallback = 0) {
|
|
33
|
+
if (isString(type))
|
|
34
|
+
return 0;
|
|
35
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_VIEW_TRANSITION_TYPE)
|
|
36
|
+
return 4;
|
|
37
|
+
const marker = type?.$$typeof;
|
|
38
|
+
for (const match of TYPE_MATCHERS) {
|
|
39
|
+
const tag = match(type, marker);
|
|
40
|
+
if (tag !== null)
|
|
41
|
+
return tag;
|
|
42
|
+
}
|
|
43
|
+
return isFunction(type) ? type.prototype?.isReactComponent ? 3 : 2 : fallback;
|
|
44
|
+
}
|
|
45
|
+
function registerElementMarker(sym) {
|
|
46
|
+
ACCEPTED_ELEMENT_MARKERS.add(sym);
|
|
47
|
+
}
|
|
48
|
+
function collectHostDoms(fiber, out) {
|
|
49
|
+
if (fiber.t === 11 && fiber.b?.w) {
|
|
50
|
+
let node = fiber.b.b;
|
|
51
|
+
while (node) {
|
|
52
|
+
out.push(node);
|
|
53
|
+
if (node === fiber.b.e)
|
|
54
|
+
break;
|
|
55
|
+
node = node.nextSibling;
|
|
56
|
+
}
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (fiber.t <= 1) {
|
|
60
|
+
if (fiber.n && !documentMetadataParent(fiber))
|
|
61
|
+
out.push(fiber.n);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (fiber.t === 5)
|
|
65
|
+
return;
|
|
66
|
+
if (fiber.t === 11 && fiber.b?.b)
|
|
67
|
+
out.push(fiber.b.b);
|
|
68
|
+
let c = fiber.c;
|
|
69
|
+
while (c) {
|
|
70
|
+
collectHostDoms(c, out);
|
|
71
|
+
c = c.s;
|
|
72
|
+
}
|
|
73
|
+
if (fiber.t === 11 && fiber.b?.f)
|
|
74
|
+
collectHostDoms(fiber.b.f, out);
|
|
75
|
+
if (fiber.t === 11 && fiber.b?.e)
|
|
76
|
+
out.push(fiber.b.e);
|
|
77
|
+
}
|
|
78
|
+
function stageCommit(fiber, work, ref = false) {
|
|
79
|
+
let entries = stagedCommits.get(fiber);
|
|
80
|
+
if (!entries) {
|
|
81
|
+
stagedCommits.set(fiber, entries = []);
|
|
82
|
+
}
|
|
83
|
+
entries.push([fiber, work, ref]);
|
|
84
|
+
}
|
|
85
|
+
function markPendingDeletion(fiber, deleted) {
|
|
86
|
+
if (fiber.pd)
|
|
87
|
+
return;
|
|
88
|
+
fiber.pd = true;
|
|
89
|
+
deleted.push(fiber);
|
|
90
|
+
for (let child = fiber.c; child; child = child.s)
|
|
91
|
+
markPendingDeletion(child, deleted);
|
|
92
|
+
if (fiber.t === 11 && fiber.b?.f)
|
|
93
|
+
markPendingDeletion(fiber.b.f, deleted);
|
|
94
|
+
}
|
|
95
|
+
function resolvedType(type) {
|
|
96
|
+
return type?.$$typeof === REACT_LAZY_TYPE ? resolvedType(type._init(type._payload)) : process.env.NODE_ENV !== "production" ? resolveRefreshType(type) : type;
|
|
97
|
+
}
|
|
98
|
+
function childrenToArray(children) {
|
|
99
|
+
const out = [];
|
|
100
|
+
const ids = currentRoot?.h && currentRoot.ri ? [] : void 0;
|
|
101
|
+
pushChildren(children, out, ids);
|
|
102
|
+
if (ids)
|
|
103
|
+
out.ip = ids;
|
|
104
|
+
return out;
|
|
105
|
+
}
|
|
106
|
+
const fiberDepth = (fiber) => fiber.d ??= fiber.p ? fiberDepth(fiber.p) + 1 : 0;
|
|
107
|
+
function pushChildren(node, out, ids, path = 1n) {
|
|
108
|
+
if (node == null || typeof node === "boolean" || node === "") {
|
|
109
|
+
out.push(null);
|
|
110
|
+
ids?.push(path);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (isTextContent(node)) {
|
|
114
|
+
if (node !== "") {
|
|
115
|
+
out.push("" + node);
|
|
116
|
+
ids?.push(path);
|
|
117
|
+
}
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
if (Array.isArray(node)) {
|
|
121
|
+
for (let i = 0; i < node.length; i++)
|
|
122
|
+
pushChildren(node[i], out, ids, ids ? forkId(path, node.length, i) : path);
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (isObject(node)) {
|
|
126
|
+
const t = node.$$typeof;
|
|
127
|
+
if (ACCEPTED_ELEMENT_MARKERS.has(t)) {
|
|
128
|
+
out.push(node);
|
|
129
|
+
ids?.push(path);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
if (t === REACT_LAZY_TYPE || isThenable2(node)) {
|
|
133
|
+
pushChildren(t === REACT_LAZY_TYPE ? resolvedType(node) : readThenable(node), out, ids, path);
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
if (isIterable(node)) {
|
|
138
|
+
if (ids)
|
|
139
|
+
pushChildren(Array.from(node), out, ids, path);
|
|
140
|
+
else
|
|
141
|
+
for (const item of node)
|
|
142
|
+
pushChildren(item, out);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function scheduleLifecycle(fiber, fn) {
|
|
146
|
+
if (isActivityHidden(fiber) || layoutIsDisconnected(fiber))
|
|
147
|
+
return;
|
|
148
|
+
stageCommit(fiber, fn);
|
|
149
|
+
}
|
|
150
|
+
function captureRootError(root, stack, error) {
|
|
151
|
+
if (process.env.NODE_ENV !== "production")
|
|
152
|
+
failRefreshRoot(root);
|
|
153
|
+
const errors = root.er ||= [];
|
|
154
|
+
if (!errors.length)
|
|
155
|
+
root.u = void 0;
|
|
156
|
+
errors.push({ error, stack });
|
|
157
|
+
if (process.env.NODE_ENV !== "production")
|
|
158
|
+
errors[errors.length - 1].ownerStack = devToolsMetadata.errorStack ?? null;
|
|
159
|
+
scheduleUpdate(root.r);
|
|
160
|
+
}
|
|
161
|
+
function captureError(capture) {
|
|
162
|
+
const fiber = capture.b;
|
|
163
|
+
if (process.env.NODE_ENV !== "production")
|
|
164
|
+
failRefreshBoundary(fiber);
|
|
165
|
+
fiber.b = { ...fiber.b, error: capture };
|
|
166
|
+
scheduleUpdate(fiber);
|
|
167
|
+
}
|
|
168
|
+
const isIterable = (obj) => isFunction(obj[Symbol.iterator]);
|
|
169
|
+
function flushRoot(root) {
|
|
170
|
+
if (root.er) {
|
|
171
|
+
flushRootErrors(root);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
const render = root.u;
|
|
175
|
+
root.u = void 0;
|
|
176
|
+
if (render)
|
|
177
|
+
render();
|
|
178
|
+
const pending = [...root.p];
|
|
179
|
+
root.p.clear();
|
|
180
|
+
renderUpdates(root, pending);
|
|
181
|
+
flushTransitions?.(root, renderUpdates);
|
|
182
|
+
runEffects(root);
|
|
183
|
+
if (process.env.NODE_ENV !== "production")
|
|
184
|
+
commitRefreshRoot(root);
|
|
185
|
+
}
|
|
186
|
+
function rememberActivityEffect(fiber, hook, effect) {
|
|
187
|
+
if (fiber.r?.a || fiber.r?.sp && effect.t === 1 && !effect.s)
|
|
188
|
+
rememberRetainedEffect(fiber, hook, effect);
|
|
189
|
+
}
|
|
190
|
+
function defaultHandleSuspended(fiber, thenable) {
|
|
191
|
+
fiber.bs = true;
|
|
192
|
+
const retry = () => scheduleUpdate(fiber);
|
|
193
|
+
thenable.then(retry, retry);
|
|
194
|
+
}
|
|
195
|
+
function detachRef(ref, fiber) {
|
|
196
|
+
if (ref && isObject(ref))
|
|
197
|
+
queueMutation(() => invokeCommit(fiber, () => {
|
|
198
|
+
ref.current = null;
|
|
199
|
+
}));
|
|
200
|
+
}
|
|
201
|
+
function withCurrentRoot(root, fn) {
|
|
202
|
+
const prev = currentRoot;
|
|
203
|
+
currentRoot = root;
|
|
204
|
+
try {
|
|
205
|
+
return fn();
|
|
206
|
+
} finally {
|
|
207
|
+
currentRoot = prev;
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
function flushSyncWork(fn) {
|
|
211
|
+
cancelTransitions && cancelTransitions();
|
|
212
|
+
const transition = ReactSharedInternals.T;
|
|
213
|
+
ReactSharedInternals.T = null;
|
|
214
|
+
const wasBatching = isBatching;
|
|
215
|
+
isBatching = true;
|
|
216
|
+
try {
|
|
217
|
+
fn();
|
|
218
|
+
cancelTransitions && cancelTransitions();
|
|
219
|
+
isBatching = wasBatching;
|
|
220
|
+
flushPending();
|
|
221
|
+
} finally {
|
|
222
|
+
isBatching = wasBatching;
|
|
223
|
+
ReactSharedInternals.T = transition;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
function syncRefIfChanged(fiber, value) {
|
|
227
|
+
const ref = fiber.ref ?? (fiber.v?.ref ?? null);
|
|
228
|
+
if (!ref && !fiber.cr)
|
|
229
|
+
return;
|
|
230
|
+
if (isActivityHidden(fiber) || layoutIsDisconnected(fiber))
|
|
231
|
+
return;
|
|
232
|
+
const previous = fiber.cr ?? null;
|
|
233
|
+
if (previous !== ref) {
|
|
234
|
+
const cleanup = fiber.rc;
|
|
235
|
+
queueMutation(() => {
|
|
236
|
+
if (cleanup) {
|
|
237
|
+
fiber.rc = null;
|
|
238
|
+
disposeCleanup(fiber, cleanup);
|
|
239
|
+
}
|
|
240
|
+
detachRef(previous, fiber);
|
|
241
|
+
fiber.cr = null;
|
|
242
|
+
});
|
|
243
|
+
attachRef(fiber, value);
|
|
244
|
+
} else if (ref && isObject(ref) && ref.current !== value)
|
|
245
|
+
attachRef(fiber, value);
|
|
246
|
+
}
|
|
247
|
+
function unmountAllChildren(parent) {
|
|
248
|
+
let c = parent.c;
|
|
249
|
+
while (c) {
|
|
250
|
+
const next = c.s;
|
|
251
|
+
removeFiber(c);
|
|
252
|
+
c = next;
|
|
253
|
+
}
|
|
254
|
+
parent.c = null;
|
|
255
|
+
}
|
|
256
|
+
function fiberFromChild(child, parent) {
|
|
257
|
+
const text = isString(child);
|
|
258
|
+
const type = text ? null : process.env.NODE_ENV !== "production" ? resolveRefreshType(child.type) : child.type;
|
|
259
|
+
const fiber = createFiber(text ? 1 : tagForType(type), type, text ? null : child.key ?? null);
|
|
260
|
+
fiber.ref = text ? null : child.ref ?? null;
|
|
261
|
+
fiber.v = text ? child : child.props;
|
|
262
|
+
if (process.env.NODE_ENV !== "production" && !text)
|
|
263
|
+
rememberDevToolsFiber(fiber, child);
|
|
264
|
+
fiber.p = parent;
|
|
265
|
+
if (currentCommit?.c.length)
|
|
266
|
+
onCommitRollback(() => {
|
|
267
|
+
fiber.u = true;
|
|
268
|
+
});
|
|
269
|
+
return fiber;
|
|
270
|
+
}
|
|
271
|
+
function getDocumentInsertionParent(parent, node) {
|
|
272
|
+
if (parent.nodeType !== 9 || node.nodeType !== 1)
|
|
273
|
+
return null;
|
|
274
|
+
const tag = node.tagName.toLowerCase();
|
|
275
|
+
if (tag === "html")
|
|
276
|
+
return null;
|
|
277
|
+
return DOCUMENT_HEAD_TAGS.test(tag) ? parent.head : parent.body;
|
|
278
|
+
}
|
|
279
|
+
const RENDERERS = new Array(13);
|
|
280
|
+
const ACCEPTED_ELEMENT_MARKERS = /* @__PURE__ */ new Set([
|
|
281
|
+
REACT_ELEMENT_TYPE,
|
|
282
|
+
REACT_LEGACY_ELEMENT_TYPE
|
|
283
|
+
]);
|
|
284
|
+
const TYPE_MATCHERS = [];
|
|
285
|
+
function renderUpdates(root, pending, update) {
|
|
286
|
+
pending.sort((a, b) => fiberDepth(a) - fiberDepth(b));
|
|
287
|
+
if (transitionRender)
|
|
288
|
+
for (const fiber of pending)
|
|
289
|
+
fiber.g = true;
|
|
290
|
+
update?.();
|
|
291
|
+
for (const fiber of pending) {
|
|
292
|
+
if (!fiber.g || fiber.u || fiber.pd)
|
|
293
|
+
continue;
|
|
294
|
+
if (fiber.su) {
|
|
295
|
+
scheduleUpdate(fiber);
|
|
296
|
+
continue;
|
|
297
|
+
}
|
|
298
|
+
if (!transitionRender) {
|
|
299
|
+
if (fiber.bt && hasTransition?.(fiber))
|
|
300
|
+
continue;
|
|
301
|
+
let ancestor = fiber.p;
|
|
302
|
+
while (ancestor && !ancestor.bs)
|
|
303
|
+
ancestor = ancestor.p;
|
|
304
|
+
if (ancestor && fiber.bt)
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
307
|
+
const boundary = root.eb && findErrorBoundary(fiber);
|
|
308
|
+
const checkpoint = boundary || root.sp && findSuspenseBoundary(fiber) ? checkpointCommit(fiber) : -1;
|
|
309
|
+
try {
|
|
310
|
+
rerenderFiber(fiber, root);
|
|
311
|
+
} catch (error) {
|
|
312
|
+
if (error instanceof RenderSuspenseCapture) {
|
|
313
|
+
rewindCommit(checkpoint);
|
|
314
|
+
error.b.b.u = true;
|
|
315
|
+
scheduleUpdate(error.b);
|
|
316
|
+
continue;
|
|
317
|
+
}
|
|
318
|
+
if (error instanceof RenderErrorCapture) {
|
|
319
|
+
if (error.b.t === 12)
|
|
320
|
+
throw error;
|
|
321
|
+
rewindCommit(checkpoint);
|
|
322
|
+
captureError(error);
|
|
323
|
+
continue;
|
|
324
|
+
}
|
|
325
|
+
if (!recoverHydration(root, error))
|
|
326
|
+
throw error;
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
function attachRef(fiber, value) {
|
|
332
|
+
const ref = fiber.ref ?? (fiber.v?.ref ?? null);
|
|
333
|
+
if (!ref)
|
|
334
|
+
return;
|
|
335
|
+
if (isActivityHidden(fiber) || layoutIsDisconnected(fiber))
|
|
336
|
+
return;
|
|
337
|
+
stageCommit(fiber, () => {
|
|
338
|
+
if (fiber.t === 14)
|
|
339
|
+
value = fiber.i;
|
|
340
|
+
fiber.cr = ref;
|
|
341
|
+
if (isFunction(ref)) {
|
|
342
|
+
const cleanup = ref(value);
|
|
343
|
+
const detach = isFunction(cleanup) ? cleanup : () => ref(null);
|
|
344
|
+
fiber.rc = detach;
|
|
345
|
+
(fiber.e ||= []).push(detach);
|
|
346
|
+
} else {
|
|
347
|
+
ref.current = value;
|
|
348
|
+
}
|
|
349
|
+
}, true);
|
|
350
|
+
}
|
|
351
|
+
function enqueueEffect(fiber, effect) {
|
|
352
|
+
if (effect.t !== 2 && (isActivityHidden(fiber) || activityIsDisconnected(fiber) || effect.t === 1 && !effect.s && fiber.ld))
|
|
353
|
+
return;
|
|
354
|
+
if (effect.t === 2)
|
|
355
|
+
pendingInsertionEffects.push([fiber, effect]);
|
|
356
|
+
else if (effect.t === 1)
|
|
357
|
+
stageCommit(fiber, effect);
|
|
358
|
+
else
|
|
359
|
+
pendingEffects.push([fiber, effect]);
|
|
360
|
+
}
|
|
361
|
+
const getCurrentRoot = () => currentRoot;
|
|
362
|
+
function sameType(fiber, child) {
|
|
363
|
+
if (isString(child))
|
|
364
|
+
return fiber.t === 1;
|
|
365
|
+
if (process.env.NODE_ENV !== "production" && sameRefreshFamily(fiber.type, child.type))
|
|
366
|
+
return fiber.key === (child.key ?? null);
|
|
367
|
+
return fiber.key === (child.key ?? null) && (fiber.type === child.type || resolvedType(fiber.type) === resolvedType(child.type));
|
|
368
|
+
}
|
|
369
|
+
const getForceRerenderingFiber = () => forceRerenderingFiber;
|
|
370
|
+
installRenderer(1, renderText);
|
|
371
|
+
installRenderer(0, renderHost);
|
|
372
|
+
installRenderer(14, renderHost);
|
|
373
|
+
installRenderer(2, renderFunction);
|
|
374
|
+
installRenderer(4, renderFragment);
|
|
375
|
+
function placeDomsInOrder(doms, domParent) {
|
|
376
|
+
if (domParent.nodeType === 9) {
|
|
377
|
+
const doc = domParent;
|
|
378
|
+
const bodyNodes = doms.filter((node) => getDocumentInsertionParent(doc, node) === doc.body);
|
|
379
|
+
if (bodyNodes.length)
|
|
380
|
+
placeDomsInOrder(bodyNodes, doc.body);
|
|
381
|
+
doms = doms.filter((node) => !getDocumentInsertionParent(doc, node));
|
|
382
|
+
}
|
|
383
|
+
if (doms.every((node) => !node.parentNode)) {
|
|
384
|
+
for (const node of doms)
|
|
385
|
+
domParent.appendChild(node);
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
for (let i = doms.length - 1; i >= 0; i--) {
|
|
389
|
+
const d = doms[i];
|
|
390
|
+
const targetNext = doms[i + 1] ?? null;
|
|
391
|
+
if (d.parentNode !== domParent || targetNext && !(d.compareDocumentPosition(targetNext) & 4)) {
|
|
392
|
+
domParent.insertBefore(d, targetNext);
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
function handleErrorInRender(fiber, err) {
|
|
397
|
+
if (err instanceof RenderErrorCapture)
|
|
398
|
+
throw err;
|
|
399
|
+
stagedCommits.delete(fiber);
|
|
400
|
+
removeEffects((candidate) => candidate === fiber);
|
|
401
|
+
if (currentRoot?.h && findHydrationHost(fiber).hc) {
|
|
402
|
+
abortHydration(err, fiber);
|
|
403
|
+
}
|
|
404
|
+
const boundary = findErrorBoundary(fiber);
|
|
405
|
+
if (boundary) {
|
|
406
|
+
const capture = new RenderErrorCapture(boundary, err, fiber);
|
|
407
|
+
if (currentCommit)
|
|
408
|
+
throw capture;
|
|
409
|
+
captureError(capture);
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
const root = currentRoot ?? findRoot2(fiber);
|
|
413
|
+
if (root && currentCommit && (flushing || root.ue))
|
|
414
|
+
throw new RenderErrorCapture(root.r, err, fiber);
|
|
415
|
+
if (root?.ue) {
|
|
416
|
+
if (process.env.NODE_ENV !== "production")
|
|
417
|
+
runWithOwnerStack(readOwnerStack(fiber), () => root.ue(err, { componentStack: componentStack(fiber) }));
|
|
418
|
+
else
|
|
419
|
+
root.ue(err, { componentStack: componentStack(fiber) });
|
|
420
|
+
} else
|
|
421
|
+
throw err;
|
|
422
|
+
}
|
|
423
|
+
function handleCommitError(fiber, error) {
|
|
424
|
+
const boundary = findErrorBoundary(fiber);
|
|
425
|
+
if (boundary) {
|
|
426
|
+
captureError(new RenderErrorCapture(boundary, error, fiber));
|
|
427
|
+
return;
|
|
428
|
+
}
|
|
429
|
+
const root = findRoot2(fiber);
|
|
430
|
+
if (root) {
|
|
431
|
+
if (process.env.NODE_ENV !== "production")
|
|
432
|
+
runWithOwnerStack(readOwnerStack(fiber), () => captureRootError(root, componentStack(fiber), error));
|
|
433
|
+
else
|
|
434
|
+
captureRootError(root, componentStack(fiber), error);
|
|
435
|
+
} else
|
|
436
|
+
queueMicrotask(() => {
|
|
437
|
+
throw error;
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
function invokeCommit(fiber, callback) {
|
|
441
|
+
try {
|
|
442
|
+
if (process.env.NODE_ENV !== "production" && fiber)
|
|
443
|
+
return invokeDevToolsCallback(fiber, callback);
|
|
444
|
+
return callback();
|
|
445
|
+
} catch (error) {
|
|
446
|
+
if (!fiber)
|
|
447
|
+
throw error;
|
|
448
|
+
handleCommitError(fiber, error);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
function renderFunction(fiber, render = fiber.type, props = fiber.v ?? {}, ref) {
|
|
452
|
+
const canBail = fiber === forceRerenderingFiber && fiber.v === fiber.m;
|
|
453
|
+
fiber.cx?.clear();
|
|
454
|
+
let rendered;
|
|
455
|
+
try {
|
|
456
|
+
rendered = renderWithHooks(fiber, render, props, ref, canBail);
|
|
457
|
+
} catch (e) {
|
|
458
|
+
if (isThenable2(e)) {
|
|
459
|
+
if (!deferHydration2(fiber, e))
|
|
460
|
+
handleSuspended(fiber, e);
|
|
461
|
+
} else
|
|
462
|
+
handleErrorInRender(fiber, e);
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
465
|
+
if (rendered === HOOK_BAILOUT)
|
|
466
|
+
return;
|
|
467
|
+
reconcileRaw(fiber, rendered);
|
|
468
|
+
fiber.m = fiber.v;
|
|
469
|
+
}
|
|
470
|
+
function registerTypeMatcher(m) {
|
|
471
|
+
TYPE_MATCHERS.push(m);
|
|
472
|
+
}
|
|
473
|
+
function collectChildren(parent) {
|
|
474
|
+
const out = [];
|
|
475
|
+
let c = parent.c;
|
|
476
|
+
while (c) {
|
|
477
|
+
out.push(c);
|
|
478
|
+
c = c.s;
|
|
479
|
+
}
|
|
480
|
+
return out;
|
|
481
|
+
}
|
|
482
|
+
function removeEffects(matches) {
|
|
483
|
+
for (const queue of effectQueues) {
|
|
484
|
+
for (let index = queue.length - 1; index >= 0; index--) {
|
|
485
|
+
if (matches(queue[index][0]))
|
|
486
|
+
(function(queue2, index2) {
|
|
487
|
+
const entry = queue2[index2];
|
|
488
|
+
queue2.splice(index2, 1);
|
|
489
|
+
if (currentCommit?.c.length)
|
|
490
|
+
onCommitRollback(() => {
|
|
491
|
+
queue2.splice(index2, 0, entry);
|
|
492
|
+
});
|
|
493
|
+
})(queue, index);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
function renderText(fiber) {
|
|
498
|
+
const domParent = getHostParent2(fiber);
|
|
499
|
+
const text = fiber.v;
|
|
500
|
+
if (fiber.n && fiber.m !== null && !fiber.n.parentNode && domParent.firstChild?.nodeType === 3 && !domParent.firstChild.nextSibling) {
|
|
501
|
+
fiber.n = domParent.firstChild;
|
|
502
|
+
}
|
|
503
|
+
if (fiber.n && fiber.m === text)
|
|
504
|
+
return;
|
|
505
|
+
if (!fiber.n) {
|
|
506
|
+
const hydrated = currentRoot?.h ? adoptTextDom(fiber, fiber.p, text) : false;
|
|
507
|
+
if (!hydrated) {
|
|
508
|
+
fiber.n = document.createTextNode(text);
|
|
509
|
+
}
|
|
510
|
+
updateFragmentHost(fiber, true);
|
|
511
|
+
} else {
|
|
512
|
+
queueText(fiber.n, text);
|
|
513
|
+
}
|
|
514
|
+
fiber.m = text;
|
|
515
|
+
}
|
|
516
|
+
const CAPABILITIES = {
|
|
517
|
+
h: defaultHandleSuspended,
|
|
518
|
+
c: defaultReadContext,
|
|
519
|
+
i: () => false,
|
|
520
|
+
d: () => false,
|
|
521
|
+
p: () => {
|
|
522
|
+
},
|
|
523
|
+
s: () => {
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
const isActivityHidden = (fiber) => CAPABILITIES.i(fiber);
|
|
527
|
+
const activityIsDisconnected = (fiber) => CAPABILITIES.d(fiber);
|
|
528
|
+
const layoutIsDisconnected = (fiber) => !!fiber.ld || activityIsDisconnected(fiber);
|
|
529
|
+
function discardPendingWork(root) {
|
|
530
|
+
cancelPendingTransitions?.(root);
|
|
531
|
+
root.u = void 0;
|
|
532
|
+
root.p.clear();
|
|
533
|
+
root.s = false;
|
|
534
|
+
pendingRoots.delete(root);
|
|
535
|
+
}
|
|
536
|
+
function runEffect(fiber, effect) {
|
|
537
|
+
if (fiber.u)
|
|
538
|
+
return;
|
|
539
|
+
if (effect.t !== 2 && (isActivityHidden(fiber) || activityIsDisconnected(fiber) || effect.t === 1 && !effect.s && fiber.ld))
|
|
540
|
+
return;
|
|
541
|
+
const cleanup = invokeCommit(fiber, effect.c);
|
|
542
|
+
if (isFunction(cleanup))
|
|
543
|
+
(fiber.e ||= []).push(cleanup);
|
|
544
|
+
}
|
|
545
|
+
class RenderSuspenseCapture {
|
|
546
|
+
b;
|
|
547
|
+
constructor(b) {
|
|
548
|
+
this.b = b;
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
function scheduleRootRender(root, render) {
|
|
552
|
+
if (process.env.NODE_ENV !== "production")
|
|
553
|
+
rememberRefreshRender(root, render);
|
|
554
|
+
markTransitionUpdate && markTransitionUpdate(root);
|
|
555
|
+
if (!scheduleTransitionRoot?.(root, render))
|
|
556
|
+
root.u = render;
|
|
557
|
+
pendingRoots.add(root);
|
|
558
|
+
if (isBatching)
|
|
559
|
+
return;
|
|
560
|
+
if (process.env.NODE_ENV !== "production" && ReactSharedInternals.A)
|
|
561
|
+
ReactSharedInternals.A.push(flushPending);
|
|
562
|
+
else
|
|
563
|
+
flushPending();
|
|
564
|
+
}
|
|
565
|
+
class RenderErrorCapture {
|
|
566
|
+
b;
|
|
567
|
+
e;
|
|
568
|
+
s;
|
|
569
|
+
constructor(b, e, source = b) {
|
|
570
|
+
this.b = b;
|
|
571
|
+
this.e = e;
|
|
572
|
+
this.s = componentStack(source);
|
|
573
|
+
if (process.env.NODE_ENV !== "production")
|
|
574
|
+
this.o = readOwnerStack(source);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
function flushRootErrors(root) {
|
|
578
|
+
const errors = root.er;
|
|
579
|
+
root.er = void 0;
|
|
580
|
+
if (root.r.m === null)
|
|
581
|
+
queueMutation(() => clearHostContainer(root.c));
|
|
582
|
+
renderRoot(root, null);
|
|
583
|
+
queueCommitEffects(() => {
|
|
584
|
+
for (const captured of errors) {
|
|
585
|
+
try {
|
|
586
|
+
if (process.env.NODE_ENV !== "production" && ReactSharedInternals.A) {
|
|
587
|
+
ReactSharedInternals.A.push(() => {
|
|
588
|
+
throw captured.error;
|
|
589
|
+
});
|
|
590
|
+
} else if (root.ue) {
|
|
591
|
+
if (process.env.NODE_ENV !== "production")
|
|
592
|
+
runWithOwnerStack(captured.ownerStack ?? null, () => root.ue(captured.error, { componentStack: captured.stack }));
|
|
593
|
+
else
|
|
594
|
+
root.ue(captured.error, { componentStack: captured.stack });
|
|
595
|
+
} else if (isFunction(globalThis.reportError))
|
|
596
|
+
globalThis.reportError(captured.error);
|
|
597
|
+
else
|
|
598
|
+
queueMicrotask(() => {
|
|
599
|
+
throw captured.error;
|
|
600
|
+
});
|
|
601
|
+
} catch (error) {
|
|
602
|
+
setTimeout(() => {
|
|
603
|
+
throw error;
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
});
|
|
608
|
+
if (root.u)
|
|
609
|
+
pendingRoots.add(root);
|
|
610
|
+
}
|
|
611
|
+
function flushPending() {
|
|
612
|
+
if (flushing)
|
|
613
|
+
return;
|
|
614
|
+
flushing = true;
|
|
615
|
+
try {
|
|
616
|
+
let guard = 0;
|
|
617
|
+
while (pendingRoots.size > 0) {
|
|
618
|
+
if (++guard > 50) {
|
|
619
|
+
if (process.env.NODE_ENV !== "production") {
|
|
620
|
+
throw new Error("flushPending exceeded 50 iterations \u2014 suspected infinite update loop.");
|
|
621
|
+
}
|
|
622
|
+
throw new Error();
|
|
623
|
+
}
|
|
624
|
+
const roots = [...pendingRoots];
|
|
625
|
+
pendingRoots.clear();
|
|
626
|
+
for (const root of roots) {
|
|
627
|
+
root.s = false;
|
|
628
|
+
const render = () => flushRoot(root);
|
|
629
|
+
if (!(deferTransition && deferTransition(root, render, flushPending))) {
|
|
630
|
+
try {
|
|
631
|
+
commitSynchronously(render);
|
|
632
|
+
} catch (error) {
|
|
633
|
+
if (!recoverRootError(error))
|
|
634
|
+
throw error;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
} finally {
|
|
640
|
+
flushing = false;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
function batchedUpdates(fn, arg) {
|
|
644
|
+
const wasBatching = isBatching;
|
|
645
|
+
isBatching = true;
|
|
646
|
+
try {
|
|
647
|
+
return fn(arg);
|
|
648
|
+
} finally {
|
|
649
|
+
isBatching = wasBatching;
|
|
650
|
+
if (!wasBatching)
|
|
651
|
+
flushPending();
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
function reconcileChildren(parent, nodes, _domParent, _anchor) {
|
|
655
|
+
reconcile(parent, nodes);
|
|
656
|
+
}
|
|
657
|
+
function installRenderer(tag, fn) {
|
|
658
|
+
RENDERERS[tag] = fn;
|
|
659
|
+
}
|
|
660
|
+
const recoveringBoundaries = /* @__PURE__ */ new Set();
|
|
661
|
+
function findErrorBoundary(fiber) {
|
|
662
|
+
for (let parent = fiber.p; parent; parent = parent.p) {
|
|
663
|
+
if (parent.u || parent.pd || recoveringBoundaries.has(parent))
|
|
664
|
+
continue;
|
|
665
|
+
const instance = parent.i;
|
|
666
|
+
if (instance?._f === parent && (parent.b?.b?.getDerivedStateFromError || instance.componentDidCatch))
|
|
667
|
+
return parent;
|
|
668
|
+
}
|
|
669
|
+
return null;
|
|
670
|
+
}
|
|
671
|
+
function disposeCleanup(fiber, cleanup) {
|
|
672
|
+
const index = fiber.e?.indexOf(cleanup) ?? -1;
|
|
673
|
+
if (index >= 0)
|
|
674
|
+
fiber.e.splice(index, 1);
|
|
675
|
+
invokeCommit(fiber, cleanup);
|
|
676
|
+
}
|
|
677
|
+
function installCapability(name, fn) {
|
|
678
|
+
CAPABILITIES[name] = fn;
|
|
679
|
+
}
|
|
680
|
+
function unmountFiber(fiber, _domParent, remove = true) {
|
|
681
|
+
removeFiber(fiber, remove);
|
|
682
|
+
}
|
|
683
|
+
function queueUnmount(fiber, remove) {
|
|
684
|
+
if (fiber.pd)
|
|
685
|
+
return;
|
|
686
|
+
const deleted = [];
|
|
687
|
+
markPendingDeletion(fiber, deleted);
|
|
688
|
+
const restore = () => {
|
|
689
|
+
for (const child of deleted)
|
|
690
|
+
child.pd = false;
|
|
691
|
+
};
|
|
692
|
+
onCommitRollback(restore);
|
|
693
|
+
onCommitFailure(restore);
|
|
694
|
+
queueMutation(() => removeFiber(fiber, remove));
|
|
695
|
+
}
|
|
696
|
+
function runEffects(root) {
|
|
697
|
+
if (root.fr)
|
|
698
|
+
refreshFragmentInstances(root);
|
|
699
|
+
if (effectQueues.some((queue) => queue.length))
|
|
700
|
+
(function() {
|
|
701
|
+
const batches = effectQueues.map((queue) => queue.splice(0));
|
|
702
|
+
const [batch, insertion, layout] = batches;
|
|
703
|
+
if (currentCommit?.c.length)
|
|
704
|
+
onCommitRollback(() => {
|
|
705
|
+
effectQueues.forEach((queue, index) => queue.unshift(...batches[index]));
|
|
706
|
+
});
|
|
707
|
+
queueCommitEffects(() => {
|
|
708
|
+
if (process.env.NODE_ENV !== "production")
|
|
709
|
+
measureDevToolsLayout(root, () => {
|
|
710
|
+
for (const [fiber, effect] of insertion)
|
|
711
|
+
runEffect(fiber, effect);
|
|
712
|
+
});
|
|
713
|
+
else
|
|
714
|
+
for (const [fiber, effect] of insertion)
|
|
715
|
+
runEffect(fiber, effect);
|
|
716
|
+
if (layout.length) {
|
|
717
|
+
if (process.env.NODE_ENV !== "production")
|
|
718
|
+
measureDevToolsLayout(root, () => {
|
|
719
|
+
for (const [fiber, work] of layout) {
|
|
720
|
+
if (!isFunction(work) && !fiber.u && !isActivityHidden(fiber) && !layoutIsDisconnected(fiber))
|
|
721
|
+
work.d?.();
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
else
|
|
725
|
+
for (const [fiber, work] of layout) {
|
|
726
|
+
if (!isFunction(work) && !fiber.u && !isActivityHidden(fiber) && !layoutIsDisconnected(fiber))
|
|
727
|
+
work.d?.();
|
|
728
|
+
}
|
|
729
|
+
const runLayout = () => {
|
|
730
|
+
for (const [fiber, work] of layout) {
|
|
731
|
+
if (!isFunction(work))
|
|
732
|
+
runEffect(fiber, work);
|
|
733
|
+
else if (!fiber.u && !isActivityHidden(fiber) && !layoutIsDisconnected(fiber)) {
|
|
734
|
+
invokeCommit(fiber, work);
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
if (process.env.NODE_ENV !== "production") {
|
|
739
|
+
const measured = wrapDevToolsLayout(root, runLayout);
|
|
740
|
+
if (!(deferTransitionLayout && deferTransitionLayout(measured)))
|
|
741
|
+
measured();
|
|
742
|
+
} else if (!(deferTransitionLayout && deferTransitionLayout(runLayout)))
|
|
743
|
+
runLayout();
|
|
744
|
+
}
|
|
745
|
+
if (batch.length) {
|
|
746
|
+
const passive = () => {
|
|
747
|
+
for (const [fiber, effect] of batch)
|
|
748
|
+
if (!fiber.u && !isActivityHidden(fiber) && !activityIsDisconnected(fiber))
|
|
749
|
+
effect.d?.();
|
|
750
|
+
for (const [fiber, effect] of batch)
|
|
751
|
+
runEffect(fiber, effect);
|
|
752
|
+
};
|
|
753
|
+
if (process.env.NODE_ENV !== "production") {
|
|
754
|
+
const measured = wrapDevToolsPassive(root, passive);
|
|
755
|
+
if (!(deferTransitionPassive && deferTransitionPassive(measured))) {
|
|
756
|
+
if (ReactSharedInternals.A)
|
|
757
|
+
ReactSharedInternals.A.push(measured);
|
|
758
|
+
else
|
|
759
|
+
queueMicrotask(measured);
|
|
760
|
+
}
|
|
761
|
+
} else if (!(deferTransitionPassive && deferTransitionPassive(passive)))
|
|
762
|
+
queueMicrotask(passive);
|
|
763
|
+
}
|
|
764
|
+
});
|
|
765
|
+
})();
|
|
766
|
+
}
|
|
767
|
+
function renderFragment(fiber) {
|
|
768
|
+
const props = fiber.v ?? {};
|
|
769
|
+
reconcileRaw(fiber, props.children);
|
|
770
|
+
commitFragmentRef(fiber);
|
|
771
|
+
fiber.m = props;
|
|
772
|
+
}
|
|
773
|
+
function findSuspenseBoundary(fiber) {
|
|
774
|
+
let child = fiber;
|
|
775
|
+
for (let parent = fiber.p; parent; parent = parent.p) {
|
|
776
|
+
if (child.t === 13 && child.v?.mode === "hidden")
|
|
777
|
+
return null;
|
|
778
|
+
if (parent.t === 11 && parent.b?.f !== child)
|
|
779
|
+
return parent;
|
|
780
|
+
child = parent;
|
|
781
|
+
}
|
|
782
|
+
return null;
|
|
783
|
+
}
|
|
784
|
+
function renderRoot(root, children) {
|
|
785
|
+
if (!currentCommit)
|
|
786
|
+
return commitSynchronously(() => renderRoot(root, children));
|
|
787
|
+
if (process.env.NODE_ENV !== "production")
|
|
788
|
+
scheduleRefreshRoot(root, children);
|
|
789
|
+
const rootFiber = root.r;
|
|
790
|
+
rootFiber.v = { children };
|
|
791
|
+
currentRoot = root;
|
|
792
|
+
try {
|
|
793
|
+
reconcileRaw(rootFiber, children);
|
|
794
|
+
rootFiber.m = rootFiber.v;
|
|
795
|
+
rootFiber.g = false;
|
|
796
|
+
} finally {
|
|
797
|
+
currentRoot = null;
|
|
798
|
+
}
|
|
799
|
+
queueHydrationEnd?.(root);
|
|
800
|
+
runEffects(root);
|
|
801
|
+
if (process.env.NODE_ENV !== "production")
|
|
802
|
+
commitRefreshRoot(root);
|
|
803
|
+
}
|
|
804
|
+
const readContext = (fiber, ctx) => CAPABILITIES.c(fiber, ctx);
|
|
805
|
+
function rerenderFiber(fiber, root) {
|
|
806
|
+
if (!fiber.g)
|
|
807
|
+
return;
|
|
808
|
+
if (fiber.u || fiber.pd)
|
|
809
|
+
return;
|
|
810
|
+
fiber.g = false;
|
|
811
|
+
currentRoot = root;
|
|
812
|
+
const finishHydration2 = resumeHydration(fiber, root);
|
|
813
|
+
const prevForcing = forceRerenderingFiber;
|
|
814
|
+
forceRerenderingFiber = fiber;
|
|
815
|
+
try {
|
|
816
|
+
renderNode(fiber);
|
|
817
|
+
} finally {
|
|
818
|
+
forceRerenderingFiber = prevForcing;
|
|
819
|
+
finishHydration2?.();
|
|
820
|
+
currentRoot = null;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
function renderHost(fiber) {
|
|
824
|
+
const domParent = documentMetadataParent(fiber) || getHostParent2(fiber);
|
|
825
|
+
const hadDom = !!fiber.n;
|
|
826
|
+
const props = fiber.v ?? {};
|
|
827
|
+
const prev = fiber.m;
|
|
828
|
+
const type = fiber.type;
|
|
829
|
+
const isSvg = type === "svg" || domParent.namespaceURI === "http://www.w3.org/2000/svg";
|
|
830
|
+
const singleton = !isSvg && documentSingleton(fiber);
|
|
831
|
+
const isResource = fiber.t === 14;
|
|
832
|
+
const canAcquire = !isSvg && (isResource || !fiber.m) && resourceKind(type, props);
|
|
833
|
+
if (isResource || canAcquire) {
|
|
834
|
+
fiber.t = 14;
|
|
835
|
+
if (canAcquire) {
|
|
836
|
+
let container = domParent.ownerDocument || domParent;
|
|
837
|
+
if (type !== "script") {
|
|
838
|
+
container = getRootContainer(fiber, domParent);
|
|
839
|
+
}
|
|
840
|
+
queueMutation(() => {
|
|
841
|
+
const resource = acquireResource(type, props, container);
|
|
842
|
+
fiber.i ||= resource;
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
if (fiber.m)
|
|
846
|
+
syncRefIfChanged(fiber, fiber.i);
|
|
847
|
+
else
|
|
848
|
+
attachRef(fiber, null);
|
|
849
|
+
fiber.m = props;
|
|
850
|
+
return;
|
|
851
|
+
}
|
|
852
|
+
const isSelect = type === "select";
|
|
853
|
+
const isInput = !isSvg && type === "input";
|
|
854
|
+
const isTextarea = !isSvg && type === "textarea";
|
|
855
|
+
const deferValue = isSelect || isInput || isTextarea;
|
|
856
|
+
let hydrated = false;
|
|
857
|
+
if (!fiber.n) {
|
|
858
|
+
hydrated = currentRoot?.h ? adoptHostDom(fiber, fiber.p) : false;
|
|
859
|
+
if (!hydrated && singleton) {
|
|
860
|
+
fiber.n = singleton;
|
|
861
|
+
queueMutation(() => {
|
|
862
|
+
clearAttributes(singleton);
|
|
863
|
+
applyHostProps(singleton, props, void 0, false, false, false, false);
|
|
864
|
+
});
|
|
865
|
+
} else if (!hydrated) {
|
|
866
|
+
fiber.n = createHostNode(type, isSvg);
|
|
867
|
+
applyHostProps(fiber.n, props, void 0, isSvg, isInput, isTextarea, deferValue);
|
|
868
|
+
}
|
|
869
|
+
updateFragmentHost(fiber, true);
|
|
870
|
+
attachRef(fiber, fiber.n);
|
|
871
|
+
} else if (prev !== props) {
|
|
872
|
+
queueMutation(() => applyHostProps(fiber.n, props, prev, isSvg, isInput, isTextarea, deferValue));
|
|
873
|
+
}
|
|
874
|
+
if (process.env.NODE_ENV !== "production") {
|
|
875
|
+
const node = fiber.n;
|
|
876
|
+
const previous = devToolsMetadata.hosts.get(node);
|
|
877
|
+
onCommitRollback(() => {
|
|
878
|
+
if (previous)
|
|
879
|
+
devToolsMetadata.hosts.set(node, previous);
|
|
880
|
+
else
|
|
881
|
+
devToolsMetadata.hosts.delete(node);
|
|
882
|
+
});
|
|
883
|
+
devToolsMetadata.hosts.set(node, fiber);
|
|
884
|
+
}
|
|
885
|
+
if (type === "form")
|
|
886
|
+
queueMutation(() => bindForm(fiber, handleCommitError));
|
|
887
|
+
if (hadDom)
|
|
888
|
+
syncRefIfChanged(fiber, fiber.n);
|
|
889
|
+
reconcileRaw(fiber, isTextarea ? null : props.children);
|
|
890
|
+
finishHydration(fiber, isTextarea);
|
|
891
|
+
if (isSelect && !hydrated)
|
|
892
|
+
queueCommitEffects(() => syncSelectValue(fiber.n, props, prev));
|
|
893
|
+
fiber.m = props;
|
|
894
|
+
}
|
|
895
|
+
function renderNode(fiber) {
|
|
896
|
+
fiber.bs = false;
|
|
897
|
+
if (process.env.NODE_ENV !== "production") {
|
|
898
|
+
if (needsRefreshRemount(fiber))
|
|
899
|
+
fiber = (function(fiber2) {
|
|
900
|
+
const parent = fiber2.p;
|
|
901
|
+
const siblings = collectChildren(parent);
|
|
902
|
+
rememberChildList(parent, siblings);
|
|
903
|
+
onCommitRollback(() => {
|
|
904
|
+
parent.c = siblings[0] ?? null;
|
|
905
|
+
for (let i = 0; i < siblings.length; i++)
|
|
906
|
+
siblings[i].s = siblings[i + 1] ?? null;
|
|
907
|
+
});
|
|
908
|
+
const next = fiberFromChild({ $$typeof: REACT_ELEMENT_TYPE, type: fiber2.type, key: fiber2.key, ref: fiber2.ref, props: fiber2.v }, parent);
|
|
909
|
+
if (fiber2.ix !== void 0)
|
|
910
|
+
next.ix = fiber2.ix;
|
|
911
|
+
next.s = fiber2.s;
|
|
912
|
+
const previous = siblings[siblings.indexOf(fiber2) - 1];
|
|
913
|
+
if (previous)
|
|
914
|
+
previous.s = next;
|
|
915
|
+
else
|
|
916
|
+
parent.c = next;
|
|
917
|
+
removeFiber(fiber2);
|
|
918
|
+
return next;
|
|
919
|
+
})(fiber);
|
|
920
|
+
fiber.type = resolveRefreshType(fiber.type);
|
|
921
|
+
}
|
|
922
|
+
if (fiber.t !== 9)
|
|
923
|
+
fiber.g = false;
|
|
924
|
+
fiber.r ||= currentRoot || findRoot2(fiber);
|
|
925
|
+
if (fiber.r?.sp && fiber.p?.ld && fiber.m === null)
|
|
926
|
+
setRetainedFlag(fiber, "ld", true);
|
|
927
|
+
if (fiber.r?.a)
|
|
928
|
+
CAPABILITIES.p(fiber);
|
|
929
|
+
const fn = RENDERERS[fiber.t];
|
|
930
|
+
try {
|
|
931
|
+
if (process.env.NODE_ENV !== "production")
|
|
932
|
+
renderWithDevTools(fiber, fn);
|
|
933
|
+
else if (fn)
|
|
934
|
+
fn(fiber);
|
|
935
|
+
} catch (error) {
|
|
936
|
+
stagedCommits.delete(fiber);
|
|
937
|
+
if (currentRoot?.h && !findErrorBoundary(fiber) || error instanceof RenderErrorCapture || error instanceof RenderSuspenseCapture || isHydrationBailout(error))
|
|
938
|
+
throw error;
|
|
939
|
+
if (isThenable2(error)) {
|
|
940
|
+
if (currentRoot?.h)
|
|
941
|
+
throw error;
|
|
942
|
+
handleSuspended(fiber, error);
|
|
943
|
+
} else
|
|
944
|
+
handleErrorInRender(fiber, error);
|
|
945
|
+
}
|
|
946
|
+
if (fiber.r?.a)
|
|
947
|
+
CAPABILITIES.s(fiber);
|
|
948
|
+
flushFiberCommits(fiber);
|
|
949
|
+
}
|
|
950
|
+
function indexChildren(parent, next) {
|
|
951
|
+
rememberChildList(parent, collectChildren(parent));
|
|
952
|
+
const remaining = /* @__PURE__ */ new Map();
|
|
953
|
+
for (; next; next = next.s)
|
|
954
|
+
remaining.set(next.key ?? next.ix, next);
|
|
955
|
+
return remaining;
|
|
956
|
+
}
|
|
957
|
+
function reconcile(parent, newChildren) {
|
|
958
|
+
let next = parent.c;
|
|
959
|
+
let previous = null;
|
|
960
|
+
let remaining;
|
|
961
|
+
const hydrating = !!currentRoot?.h;
|
|
962
|
+
for (let i = 0; i < newChildren.length; i++) {
|
|
963
|
+
const child = newChildren[i];
|
|
964
|
+
if (child == null)
|
|
965
|
+
continue;
|
|
966
|
+
let match;
|
|
967
|
+
if (!remaining && !hydrating && next && next.ix === i && sameType(next, child)) {
|
|
968
|
+
match = next;
|
|
969
|
+
next = next.s;
|
|
970
|
+
} else {
|
|
971
|
+
if (!remaining) {
|
|
972
|
+
remaining = indexChildren(parent, next);
|
|
973
|
+
}
|
|
974
|
+
const key = isString(child) ? i : child.key ?? i;
|
|
975
|
+
const candidate = remaining.get(key);
|
|
976
|
+
if (candidate && sameType(candidate, child)) {
|
|
977
|
+
match = candidate;
|
|
978
|
+
remaining.delete(key);
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
const fiber = match ?? fiberFromChild(child, parent);
|
|
982
|
+
if (match) {
|
|
983
|
+
if (isString(child))
|
|
984
|
+
fiber.v = child;
|
|
985
|
+
else {
|
|
986
|
+
if (fiber.type !== child.type)
|
|
987
|
+
fiber.t = tagForType(child.type);
|
|
988
|
+
fiber.type = child.type;
|
|
989
|
+
fiber.v = child.props;
|
|
990
|
+
if (process.env.NODE_ENV !== "production")
|
|
991
|
+
rememberDevToolsFiber(fiber, child);
|
|
992
|
+
fiber.ref = child.ref ?? null;
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
fiber.ix = i;
|
|
996
|
+
if (remaining) {
|
|
997
|
+
fiber.p = parent;
|
|
998
|
+
if (previous)
|
|
999
|
+
previous.s = fiber;
|
|
1000
|
+
else
|
|
1001
|
+
parent.c = fiber;
|
|
1002
|
+
}
|
|
1003
|
+
previous = fiber;
|
|
1004
|
+
}
|
|
1005
|
+
if (!remaining && !next && !hydrating) {
|
|
1006
|
+
renderChildChain(parent);
|
|
1007
|
+
return;
|
|
1008
|
+
}
|
|
1009
|
+
if (!remaining && next) {
|
|
1010
|
+
remaining = indexChildren(parent, next);
|
|
1011
|
+
}
|
|
1012
|
+
if (previous)
|
|
1013
|
+
previous.s = null;
|
|
1014
|
+
else
|
|
1015
|
+
parent.c = null;
|
|
1016
|
+
for (const fiber of remaining?.values() ?? [])
|
|
1017
|
+
removeFiber(fiber);
|
|
1018
|
+
if (hydrating)
|
|
1019
|
+
assignReactIds(parent, newChildren);
|
|
1020
|
+
renderChildChain(parent);
|
|
1021
|
+
}
|
|
1022
|
+
const pendingEffects = [];
|
|
1023
|
+
const pendingInsertionEffects = [];
|
|
1024
|
+
const pendingCommits = [];
|
|
1025
|
+
const effectQueues = [pendingEffects, pendingInsertionEffects, pendingCommits];
|
|
1026
|
+
let stagedCommits = /* @__PURE__ */ new Map();
|
|
1027
|
+
function renderChildChain(parent) {
|
|
1028
|
+
for (let child = parent.c; child; child = child.s)
|
|
1029
|
+
renderNode(child);
|
|
1030
|
+
while (parent.t !== 0 && parent.t !== 12 && parent.t !== 5)
|
|
1031
|
+
parent = parent.p;
|
|
1032
|
+
queuePlacement(parent);
|
|
1033
|
+
}
|
|
1034
|
+
function discardPendingEffects(root) {
|
|
1035
|
+
removeEffects((fiber) => findRoot2(fiber) === root);
|
|
1036
|
+
for (const fiber of stagedCommits.keys()) {
|
|
1037
|
+
if (findRoot2(fiber) === root)
|
|
1038
|
+
stagedCommits.delete(fiber);
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
function commitPlacements(parents) {
|
|
1042
|
+
for (const parent of [...new Set(parents)].sort((a, b) => fiberDepth(b) - fiberDepth(a))) {
|
|
1043
|
+
if (parent.u || parent.pd)
|
|
1044
|
+
continue;
|
|
1045
|
+
const domParent = parent.t === 0 ? parent.n : parent.t === 5 ? parent.v.container : parent.r.c;
|
|
1046
|
+
const doms = [];
|
|
1047
|
+
for (let child = parent.c; child; child = child.s)
|
|
1048
|
+
collectHostDoms(child, doms);
|
|
1049
|
+
placeDomsInOrder(doms, domParent);
|
|
1050
|
+
const metadata = documentMetadataParent(parent);
|
|
1051
|
+
if (metadata && parent.n.parentNode !== metadata)
|
|
1052
|
+
metadata.appendChild(parent.n);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
function removeFiber(fiber, remove = true) {
|
|
1056
|
+
if (fiber.u)
|
|
1057
|
+
return;
|
|
1058
|
+
if (currentCommit)
|
|
1059
|
+
return queueUnmount(fiber, remove);
|
|
1060
|
+
stagedCommits.delete(fiber);
|
|
1061
|
+
commitFragmentRef(fiber, 1);
|
|
1062
|
+
fiber.u = true;
|
|
1063
|
+
if (fiber.t === 11 && fiber.b?.b) {
|
|
1064
|
+
const state = fiber.b;
|
|
1065
|
+
state.x?.();
|
|
1066
|
+
state.b._reactRetry = void 0;
|
|
1067
|
+
if (remove && !state.w) {
|
|
1068
|
+
state.b.remove();
|
|
1069
|
+
state.e?.remove();
|
|
1070
|
+
}
|
|
1071
|
+
if (remove && state.w) {
|
|
1072
|
+
let node = state.b;
|
|
1073
|
+
while (node) {
|
|
1074
|
+
const next = node.nextSibling;
|
|
1075
|
+
node.remove();
|
|
1076
|
+
if (node === state.e)
|
|
1077
|
+
break;
|
|
1078
|
+
node = next;
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
if (fiber.t <= 1)
|
|
1083
|
+
updateFragmentHost(fiber, false);
|
|
1084
|
+
commitFragmentRef(fiber, 2);
|
|
1085
|
+
if (fiber.t === 11 && fiber.b?.f) {
|
|
1086
|
+
removeFiber(fiber.b.f, remove);
|
|
1087
|
+
fiber.b.f = null;
|
|
1088
|
+
}
|
|
1089
|
+
if (fiber.e) {
|
|
1090
|
+
const cleanups = fiber.e;
|
|
1091
|
+
fiber.e = null;
|
|
1092
|
+
for (const cleanup of cleanups) {
|
|
1093
|
+
invokeCommit(fiber, cleanup);
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
disconnectClass(fiber, true);
|
|
1097
|
+
if (fiber.cr ?? fiber.ref)
|
|
1098
|
+
detachRef(fiber.cr ?? fiber.ref, fiber);
|
|
1099
|
+
const singleton = !!fiber.n && fiber.n === documentSingleton(fiber);
|
|
1100
|
+
if (singleton && remove)
|
|
1101
|
+
clearAttributes(fiber.n);
|
|
1102
|
+
let c = fiber.c;
|
|
1103
|
+
while (c) {
|
|
1104
|
+
const next = c.s;
|
|
1105
|
+
removeFiber(c, fiber.t === 5 || remove && (singleton || fiber.t !== 0));
|
|
1106
|
+
c = next;
|
|
1107
|
+
}
|
|
1108
|
+
fiber.c = null;
|
|
1109
|
+
if (!singleton && (remove || documentMetadataParent(fiber)) && fiber.t <= 1 && fiber.n) {
|
|
1110
|
+
fiber.n.parentNode?.removeChild(fiber.n);
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
function flushFiberCommits(fiber) {
|
|
1114
|
+
const entries = stagedCommits.get(fiber);
|
|
1115
|
+
if (!entries || layoutIsDisconnected(fiber))
|
|
1116
|
+
return;
|
|
1117
|
+
stagedCommits.delete(fiber);
|
|
1118
|
+
if (placeFragmentCommits(fiber, entries, pendingCommits))
|
|
1119
|
+
return;
|
|
1120
|
+
entries.sort((a, b) => +a[2] - +b[2]);
|
|
1121
|
+
for (const entry of entries)
|
|
1122
|
+
pendingCommits.push(entry);
|
|
1123
|
+
}
|
|
1124
|
+
function handleSuspended(fiber, thenable) {
|
|
1125
|
+
if (isActivityHidden(fiber) && !findSuspenseBoundary(fiber)) {
|
|
1126
|
+
defaultHandleSuspended(fiber, thenable);
|
|
1127
|
+
return;
|
|
1128
|
+
}
|
|
1129
|
+
if (transitionRender)
|
|
1130
|
+
throw thenable;
|
|
1131
|
+
CAPABILITIES.h(fiber, thenable);
|
|
1132
|
+
}
|
|
1133
|
+
function scheduleUpdate(fiber) {
|
|
1134
|
+
if (fiber.u || fiber.pd)
|
|
1135
|
+
return;
|
|
1136
|
+
if (process.env.NODE_ENV !== "production")
|
|
1137
|
+
markDevToolsUpdate(fiber);
|
|
1138
|
+
fiber.bt = !!ReactSharedInternals.T && (!fiber.g || !!fiber.bt);
|
|
1139
|
+
fiber.g = true;
|
|
1140
|
+
if (ReactSharedInternals.F === fiber)
|
|
1141
|
+
return;
|
|
1142
|
+
const root = findRoot2(fiber);
|
|
1143
|
+
if (!root)
|
|
1144
|
+
return;
|
|
1145
|
+
while (fiber.su) {
|
|
1146
|
+
fiber = fiber.su;
|
|
1147
|
+
fiber.b.u = true;
|
|
1148
|
+
fiber.g = true;
|
|
1149
|
+
}
|
|
1150
|
+
markTransitionUpdate && markTransitionUpdate(root);
|
|
1151
|
+
root.p.add(fiber);
|
|
1152
|
+
pendingRoots.add(root);
|
|
1153
|
+
if (isBatching)
|
|
1154
|
+
return;
|
|
1155
|
+
if (!root.s) {
|
|
1156
|
+
root.s = true;
|
|
1157
|
+
if (process.env.NODE_ENV !== "production" && ReactSharedInternals.A)
|
|
1158
|
+
ReactSharedInternals.A.push(flushPending);
|
|
1159
|
+
else
|
|
1160
|
+
queueMicrotask(flushPending);
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
setCommitCheckpointHook(() => {
|
|
1164
|
+
const lengths = effectQueues.map((queue) => queue.length);
|
|
1165
|
+
const staged = new Map([...stagedCommits].map(([fiber, work]) => [fiber, work.slice()]));
|
|
1166
|
+
onCommitRollback(() => {
|
|
1167
|
+
effectQueues.forEach((queue, index) => {
|
|
1168
|
+
queue.length = lengths[index];
|
|
1169
|
+
});
|
|
1170
|
+
stagedCommits = staged;
|
|
1171
|
+
});
|
|
1172
|
+
});
|
|
1173
|
+
const isEventProp = (name) => name[0] === "o" && name[1] === "n" && name[2] >= "A";
|
|
1174
|
+
function applyHostProps(el, props, prev, isSvg, isInput, isTextarea, deferValue) {
|
|
1175
|
+
const mounting = !prev;
|
|
1176
|
+
const previousProps = prev || {};
|
|
1177
|
+
if (isInput && !mounting)
|
|
1178
|
+
setProp(el, "name", "", void 0, false);
|
|
1179
|
+
let events;
|
|
1180
|
+
for (const key in props) {
|
|
1181
|
+
const next = props[key], previous = previousProps[key];
|
|
1182
|
+
const changed = mounting || next !== previous;
|
|
1183
|
+
if (!changed && !isInput || isReservedProp(key) || deferValue && (key === "value" || key === "defaultValue") || isInput && (key === "checked" || key === "defaultChecked" || key === "name"))
|
|
1184
|
+
continue;
|
|
1185
|
+
if (isEventProp(key)) {
|
|
1186
|
+
(events ||= []).push(key);
|
|
1187
|
+
} else if (changed)
|
|
1188
|
+
setProp(el, key, next, previous, isSvg);
|
|
1189
|
+
}
|
|
1190
|
+
for (const key in previousProps) {
|
|
1191
|
+
if (isReservedProp(key) || (isInput || isTextarea) && (key === "value" || key === "defaultValue") || isInput && (key === "checked" || key === "defaultChecked" || key === "name"))
|
|
1192
|
+
continue;
|
|
1193
|
+
if (!(key in props))
|
|
1194
|
+
setProp(el, key, void 0, previousProps[key], isSvg);
|
|
1195
|
+
}
|
|
1196
|
+
if (events)
|
|
1197
|
+
for (const key of events)
|
|
1198
|
+
setProp(el, key, props[key], previousProps[key], isSvg);
|
|
1199
|
+
if (isInput) {
|
|
1200
|
+
syncInputValue(el, props, prev);
|
|
1201
|
+
setProp(el, "name", props.name, previousProps.name, false);
|
|
1202
|
+
} else if (isTextarea)
|
|
1203
|
+
syncTextareaValue(el, props, mounting);
|
|
1204
|
+
}
|
|
1205
|
+
function renderFiber(fiber, _domParent, _anchor) {
|
|
1206
|
+
renderNode(fiber);
|
|
1207
|
+
}
|
|
1208
|
+
import { currentCommit, commitSynchronously, queueMutation, queueText, queueCommitEffects, setCommitCheckpointHook, onCommitRollback, onCommitFailure, checkpointCommit, rewindCommit, rememberChildList, queuePlacement, setCommitPlacementHook } from "./commit.js";
|
|
1209
|
+
import { isFunction, isReservedProp, isThenable as isThenable2 } from "../core/functions.js";
|
|
1210
|
+
import { renderWithDevTools, rememberDevToolsFiber, markDevToolsUpdate, invokeDevToolsCallback } from "./devtools.js";
|
|
1211
|
+
import { measureDevToolsLayout, wrapDevToolsLayout, wrapDevToolsPassive } from "./devtools-effects.js";
|
|
1212
|
+
setCommitPlacementHook(commitPlacements);
|
|
1213
|
+
function recoverRootError(error, abort) {
|
|
1214
|
+
if (!(error instanceof RenderErrorCapture) || error.b.t !== 12)
|
|
1215
|
+
return false;
|
|
1216
|
+
const root = error.b.r;
|
|
1217
|
+
abort?.();
|
|
1218
|
+
discardPendingWork(root);
|
|
1219
|
+
discardPendingEffects(root);
|
|
1220
|
+
if (process.env.NODE_ENV !== "production")
|
|
1221
|
+
runWithOwnerStack(error.o ?? null, () => captureRootError(root, error.s, error.e));
|
|
1222
|
+
else
|
|
1223
|
+
captureRootError(root, error.s, error.e);
|
|
1224
|
+
return true;
|
|
1225
|
+
}
|
|
1226
|
+
function delegateFiber(fiber, type, tag = tagForType(
|
|
1227
|
+
type,
|
|
1228
|
+
4
|
|
1229
|
+
/* FiberTag.Fragment */
|
|
1230
|
+
)) {
|
|
1231
|
+
const previousType = fiber.type, previousTag = fiber.t;
|
|
1232
|
+
fiber.type = type;
|
|
1233
|
+
fiber.t = tag;
|
|
1234
|
+
try {
|
|
1235
|
+
renderNode(fiber);
|
|
1236
|
+
} finally {
|
|
1237
|
+
fiber.type = previousType;
|
|
1238
|
+
fiber.t = previousTag;
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
function defaultReadContext(_f, ctx) {
|
|
1242
|
+
return ctx._currentValue;
|
|
1243
|
+
}
|
|
1244
|
+
function reconcileRaw(fiber, children) {
|
|
1245
|
+
reconcile(fiber, childrenToArray(children));
|
|
1246
|
+
}
|
|
1247
|
+
export {
|
|
1248
|
+
RenderErrorCapture,
|
|
1249
|
+
RenderSuspenseCapture,
|
|
1250
|
+
activityIsDisconnected,
|
|
1251
|
+
attachRef,
|
|
1252
|
+
batchedUpdates,
|
|
1253
|
+
childrenToArray,
|
|
1254
|
+
commitPlacements,
|
|
1255
|
+
defaultHandleSuspended,
|
|
1256
|
+
deferHydration,
|
|
1257
|
+
delegateFiber,
|
|
1258
|
+
detachRef,
|
|
1259
|
+
discardPendingEffects,
|
|
1260
|
+
discardPendingWork,
|
|
1261
|
+
disposeCleanup,
|
|
1262
|
+
enqueueEffect,
|
|
1263
|
+
fiberDepth,
|
|
1264
|
+
findRoot,
|
|
1265
|
+
findSuspenseBoundary,
|
|
1266
|
+
firstDomNode,
|
|
1267
|
+
flushFiberCommits,
|
|
1268
|
+
flushSyncWork,
|
|
1269
|
+
getAnchor,
|
|
1270
|
+
getCurrentRoot,
|
|
1271
|
+
getForceRerenderingFiber,
|
|
1272
|
+
getHostParent,
|
|
1273
|
+
handleCommitError,
|
|
1274
|
+
handleErrorInRender,
|
|
1275
|
+
handleSuspended,
|
|
1276
|
+
installCapability,
|
|
1277
|
+
installRenderer,
|
|
1278
|
+
invokeCommit,
|
|
1279
|
+
isActivityHidden,
|
|
1280
|
+
isThenable,
|
|
1281
|
+
layoutIsDisconnected,
|
|
1282
|
+
readContext,
|
|
1283
|
+
reconcile,
|
|
1284
|
+
reconcileChildren,
|
|
1285
|
+
reconcileRaw,
|
|
1286
|
+
recoverRootError,
|
|
1287
|
+
recoveringBoundaries,
|
|
1288
|
+
registerElementMarker,
|
|
1289
|
+
registerTypeMatcher,
|
|
1290
|
+
rememberActivityEffect,
|
|
1291
|
+
removeFiber,
|
|
1292
|
+
renderFiber,
|
|
1293
|
+
renderFunction,
|
|
1294
|
+
renderNode,
|
|
1295
|
+
renderRoot,
|
|
1296
|
+
runEffects,
|
|
1297
|
+
scheduleLifecycle,
|
|
1298
|
+
scheduleRootRender,
|
|
1299
|
+
scheduleUpdate,
|
|
1300
|
+
stageCommit,
|
|
1301
|
+
syncRefIfChanged,
|
|
1302
|
+
unmountAllChildren,
|
|
1303
|
+
unmountFiber,
|
|
1304
|
+
withCurrentRoot
|
|
1305
|
+
};
|