@askrjs/askr 0.0.51 → 0.0.52
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/dist/bench/components/benchmark-row.d.ts +2 -2
- package/dist/bench/components/benchmark-row.js +0 -2
- package/dist/bench/components/benchmark-table.js +0 -2
- package/dist/benchmark.d.ts +1 -2
- package/dist/benchmark.js +2 -4
- package/dist/bin/askr-ssg.d.ts +1 -2
- package/dist/bin/askr-ssg.js +21 -6
- package/dist/boot/hydration.js +10 -11
- package/dist/boot/index.d.ts +1 -2
- package/dist/boot/index.js +20 -11
- package/dist/boot/root-lifecycle.d.ts +6 -3
- package/dist/boot/root-lifecycle.js +14 -10
- package/dist/boot/route-startup.js +13 -4
- package/dist/boot/types.d.ts +1 -2
- package/dist/common/attr-names.js +0 -2
- package/dist/common/component.d.ts +1 -2
- package/dist/common/control.d.ts +1 -2
- package/dist/common/control.js +0 -2
- package/dist/common/dom-range.d.ts +13 -0
- package/dist/common/env.js +1 -7
- package/dist/common/error-boundary.d.ts +1 -2
- package/dist/common/invariant.js +0 -2
- package/dist/common/jsx.d.ts +1 -2
- package/dist/common/jsx.js +0 -2
- package/dist/common/logger.js +0 -2
- package/dist/common/promise.js +0 -2
- package/dist/common/props.d.ts +1 -2
- package/dist/common/render-context.js +0 -2
- package/dist/common/route-activity.js +0 -2
- package/dist/common/router-internal.js +0 -2
- package/dist/common/router.d.ts +1 -2
- package/dist/common/ssr-errors.d.ts +1 -2
- package/dist/common/ssr-errors.js +0 -2
- package/dist/common/ssr.d.ts +1 -2
- package/dist/common/ssr.js +0 -2
- package/dist/common/vnode.d.ts +1 -2
- package/dist/common/vnode.js +0 -2
- package/dist/components/error-boundary.d.ts +1 -2
- package/dist/components/error-boundary.js +0 -2
- package/dist/components/link.d.ts +2 -2
- package/dist/components/link.js +0 -2
- package/dist/control/case.d.ts +1 -2
- package/dist/control/case.js +0 -2
- package/dist/control/for.d.ts +1 -2
- package/dist/control/for.js +0 -2
- package/dist/control/shared.d.ts +1 -2
- package/dist/control/shared.js +0 -2
- package/dist/control/show.d.ts +1 -2
- package/dist/control/show.js +0 -2
- package/dist/data/data-runtime.d.ts +1 -2
- package/dist/data/data-runtime.js +3 -5
- package/dist/data/invalidation-listeners.js +0 -2
- package/dist/data/invalidation.d.ts +1 -2
- package/dist/data/invalidation.js +0 -2
- package/dist/data/mutation-cell.d.ts +1 -2
- package/dist/data/mutation-cell.js +6 -5
- package/dist/data/query-cell.d.ts +3 -2
- package/dist/data/query-cell.js +43 -9
- package/dist/data/query-key.js +0 -2
- package/dist/data/shared.js +2 -3
- package/dist/data/types.d.ts +1 -2
- package/dist/foundations/icon/icon.d.ts +1 -2
- package/dist/foundations/icon/icon.js +0 -2
- package/dist/foundations/icon/icon.types.d.ts +1 -2
- package/dist/foundations/interactions/dismissable.d.ts +1 -2
- package/dist/foundations/interactions/dismissable.js +0 -2
- package/dist/foundations/interactions/focusable.d.ts +1 -2
- package/dist/foundations/interactions/focusable.js +0 -2
- package/dist/foundations/interactions/hoverable.d.ts +1 -2
- package/dist/foundations/interactions/hoverable.js +0 -2
- package/dist/foundations/interactions/interaction-policy.d.ts +1 -2
- package/dist/foundations/interactions/interaction-policy.js +0 -2
- package/dist/foundations/interactions/pressable.d.ts +1 -2
- package/dist/foundations/interactions/pressable.js +0 -2
- package/dist/foundations/interactions/roving-focus.d.ts +1 -2
- package/dist/foundations/interactions/roving-focus.js +0 -2
- package/dist/foundations/state/controllable.d.ts +1 -2
- package/dist/foundations/state/controllable.js +0 -2
- package/dist/foundations/structures/collection.d.ts +1 -2
- package/dist/foundations/structures/collection.js +0 -2
- package/dist/foundations/structures/layer.d.ts +1 -2
- package/dist/foundations/structures/layer.js +0 -2
- package/dist/foundations/structures/layout.d.ts +1 -2
- package/dist/foundations/structures/layout.js +0 -2
- package/dist/foundations/structures/presence.d.ts +1 -2
- package/dist/foundations/structures/presence.js +0 -2
- package/dist/foundations/structures/slot.d.ts +1 -2
- package/dist/foundations/structures/slot.js +0 -2
- package/dist/foundations/utilities/aria.d.ts +1 -2
- package/dist/foundations/utilities/aria.js +0 -2
- package/dist/foundations/utilities/compose-handlers.d.ts +1 -2
- package/dist/foundations/utilities/compose-handlers.js +0 -2
- package/dist/foundations/utilities/compose-ref.d.ts +1 -2
- package/dist/foundations/utilities/compose-ref.js +0 -2
- package/dist/foundations/utilities/event-types.d.ts +1 -2
- package/dist/foundations/utilities/merge-props.d.ts +1 -2
- package/dist/foundations/utilities/merge-props.js +0 -2
- package/dist/foundations/utilities/use-id.d.ts +1 -2
- package/dist/foundations/utilities/use-id.js +0 -2
- package/dist/fx/fx.d.ts +1 -2
- package/dist/fx/fx.js +0 -2
- package/dist/fx/noop.js +0 -2
- package/dist/fx/timing.d.ts +1 -2
- package/dist/fx/timing.js +0 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -2
- package/dist/jsx/types.d.ts +1 -2
- package/dist/jsx/utils.d.ts +1 -2
- package/dist/jsx/utils.js +0 -2
- package/dist/jsx-dev-runtime.d.ts +16 -2
- package/dist/jsx-dev-runtime.js +3 -12
- package/dist/jsx-runtime.d.ts +16 -2
- package/dist/jsx-runtime.js +15 -24
- package/dist/jsx-runtime2.d.ts +1 -1
- package/dist/renderer/attributes.js +28 -6
- package/dist/renderer/boundaries.js +48 -172
- package/dist/renderer/boundary-materialization.js +72 -0
- package/dist/renderer/boundary-range-adoption.js +76 -0
- package/dist/renderer/boundary-range-sync.js +101 -0
- package/dist/renderer/boundary-state.js +50 -0
- package/dist/renderer/child-shape.js +0 -2
- package/dist/renderer/children-fastpath.js +3 -3
- package/dist/renderer/children.js +0 -2
- package/dist/renderer/cleanup.js +70 -13
- package/dist/renderer/component-host-cleanup.js +123 -48
- package/dist/renderer/component-host-instances.js +59 -8
- package/dist/renderer/component-host-replacement.js +105 -0
- package/dist/renderer/component-host-results.js +138 -0
- package/dist/renderer/component-host.js +94 -169
- package/dist/renderer/dom-host.js +0 -2
- package/dist/renderer/dom-internal.js +110 -53
- package/dist/renderer/dom-range.js +161 -0
- package/dist/renderer/dom.js +5 -4
- package/dist/renderer/element-children.js +112 -32
- package/dist/renderer/error-boundary-dom.js +19 -11
- package/dist/renderer/evaluate-dom-range.js +3 -4
- package/dist/renderer/evaluate-reconcile.js +12 -37
- package/dist/renderer/evaluate.js +14 -3
- package/dist/renderer/fastpath.js +4 -12
- package/dist/renderer/for-commit-dom-map.js +6 -18
- package/dist/renderer/for-commit-removal.js +7 -16
- package/dist/renderer/for-commit-reorder.js +0 -2
- package/dist/renderer/for-commit.js +172 -44
- package/dist/renderer/hydration-boundaries.js +60 -0
- package/dist/renderer/hydration-listener-transaction.js +49 -0
- package/dist/renderer/index.js +8 -7
- package/dist/renderer/intrinsic-blueprint-analysis.js +202 -0
- package/dist/renderer/intrinsic-blueprint-bindings.js +152 -0
- package/dist/renderer/intrinsic-blueprint-materialization.js +100 -0
- package/dist/renderer/intrinsic-blueprint.js +30 -0
- package/dist/renderer/intrinsic-hydration-adoption.js +66 -0
- package/dist/renderer/keyed-children.js +3 -9
- package/dist/renderer/keyed.js +10 -10
- package/dist/renderer/namespaces.js +0 -2
- package/dist/renderer/prop-bindings.js +56 -21
- package/dist/renderer/reactive-child-dom.js +10 -4
- package/dist/renderer/reactive-child-sources.js +0 -2
- package/dist/renderer/reactive-children.js +29 -20
- package/dist/renderer/reconcile-commit.js +0 -2
- package/dist/renderer/reconcile-fastpaths.js +4 -11
- package/dist/renderer/reconcile-resolution.js +31 -55
- package/dist/renderer/reconcile.js +0 -2
- package/dist/renderer/retained-element-rollback.js +159 -148
- package/dist/renderer/stable-patch.js +3 -4
- package/dist/renderer/static-reuse.js +0 -2
- package/dist/renderer/utils.js +18 -9
- package/dist/router/access.js +0 -2
- package/dist/router/activity.d.ts +1 -2
- package/dist/router/activity.js +0 -2
- package/dist/router/authoring.d.ts +1 -2
- package/dist/router/authoring.js +0 -2
- package/dist/router/internal-types.d.ts +1 -2
- package/dist/router/lazy.d.ts +1 -2
- package/dist/router/lazy.js +0 -2
- package/dist/router/manifest.d.ts +1 -2
- package/dist/router/manifest.js +0 -2
- package/dist/router/match.js +0 -2
- package/dist/router/navigate.d.ts +1 -2
- package/dist/router/navigate.js +4 -7
- package/dist/router/navigation-registry.d.ts +1 -2
- package/dist/router/navigation-registry.js +0 -2
- package/dist/router/navigation-scroll.d.ts +1 -2
- package/dist/router/navigation-scroll.js +0 -2
- package/dist/router/navigation-targets.d.ts +3 -4
- package/dist/router/navigation-targets.js +419 -40
- package/dist/router/policy.d.ts +1 -2
- package/dist/router/policy.js +0 -2
- package/dist/router/rendering.d.ts +1 -2
- package/dist/router/rendering.js +4 -3
- package/dist/router/resolution.d.ts +1 -2
- package/dist/router/resolution.js +0 -2
- package/dist/router/route-context.js +0 -2
- package/dist/router/route-matching.d.ts +1 -2
- package/dist/router/route-matching.js +0 -2
- package/dist/router/route-query.d.ts +1 -2
- package/dist/router/route-query.js +1 -3
- package/dist/router/store.d.ts +1 -2
- package/dist/router/store.js +0 -2
- package/dist/runtime/access.d.ts +1 -2
- package/dist/runtime/access.js +0 -2
- package/dist/runtime/child-scope.d.ts +21 -2
- package/dist/runtime/child-scope.js +101 -54
- package/dist/runtime/component-cleanup.d.ts +1 -2
- package/dist/runtime/component-cleanup.js +2 -4
- package/dist/runtime/component-commit.js +25 -23
- package/dist/runtime/component-facade.js +5 -3
- package/dist/runtime/component-internal.d.ts +11 -6
- package/dist/runtime/component-internal.js +63 -45
- package/dist/runtime/component-lifecycle.d.ts +2 -41
- package/dist/runtime/component-lifecycle.js +6 -149
- package/dist/runtime/component-scope.d.ts +3 -4
- package/dist/runtime/component-scope.js +27 -8
- package/dist/runtime/component.js +4 -3
- package/dist/runtime/context.d.ts +5 -2
- package/dist/runtime/context.js +29 -3
- package/dist/runtime/control.d.ts +22 -3
- package/dist/runtime/control.js +168 -55
- package/dist/runtime/derive.d.ts +1 -2
- package/dist/runtime/derive.js +0 -2
- package/dist/runtime/dev-namespace.d.ts +5 -6
- package/dist/runtime/dev-namespace.js +32 -25
- package/dist/runtime/effect.d.ts +8 -5
- package/dist/runtime/effect.js +158 -75
- package/dist/runtime/error-boundary.d.ts +1 -2
- package/dist/runtime/error-boundary.js +0 -2
- package/dist/runtime/events.d.ts +3 -3
- package/dist/runtime/events.js +66 -69
- package/dist/runtime/execution-model.d.ts +1 -2
- package/dist/runtime/execution-model.js +0 -2
- package/dist/runtime/fastlane.d.ts +1 -2
- package/dist/runtime/fastlane.js +0 -2
- package/dist/runtime/for-bench.d.ts +1 -2
- package/dist/runtime/for-bench.js +9 -167
- package/dist/runtime/for-internal.d.ts +68 -5
- package/dist/runtime/for-internal.js +201 -14
- package/dist/runtime/for-reconcile.d.ts +1 -2
- package/dist/runtime/for-reconcile.js +76 -23
- package/dist/runtime/for-scopes.d.ts +5 -5
- package/dist/runtime/for-scopes.js +168 -48
- package/dist/runtime/for-signals.d.ts +13 -4
- package/dist/runtime/for-signals.js +155 -81
- package/dist/runtime/for-types.d.ts +1 -2
- package/dist/runtime/for.d.ts +2 -2
- package/dist/runtime/for.js +3 -3
- package/dist/runtime/index.d.ts +5 -5
- package/dist/runtime/index.js +12 -10
- package/dist/runtime/lifecycle-batch.d.ts +59 -0
- package/dist/runtime/lifecycle-batch.js +178 -0
- package/dist/runtime/lifecycle-operation-settlement.d.ts +5 -0
- package/dist/runtime/lifecycle-operation-settlement.js +51 -0
- package/dist/runtime/lifecycle-operations.d.ts +1 -2
- package/dist/runtime/lifecycle-operations.js +5 -6
- package/dist/runtime/perf-metrics.d.ts +8 -7
- package/dist/runtime/perf-metrics.js +4 -68
- package/dist/runtime/portal.d.ts +1 -2
- package/dist/runtime/portal.js +103 -11
- package/dist/runtime/readable.d.ts +9 -4
- package/dist/runtime/readable.js +41 -17
- package/dist/runtime/resource-cell.js +2 -4
- package/dist/runtime/resource-operation.d.ts +1 -2
- package/dist/runtime/resource-operation.js +37 -34
- package/dist/runtime/runtime.d.ts +1 -2
- package/dist/runtime/runtime.js +0 -2
- package/dist/runtime/scheduler.d.ts +1 -2
- package/dist/runtime/scheduler.js +8 -11
- package/dist/runtime/selector-store.js +0 -2
- package/dist/runtime/selector.d.ts +1 -2
- package/dist/runtime/selector.js +3 -11
- package/dist/runtime/snapshot-source.d.ts +1 -2
- package/dist/runtime/snapshot-source.js +0 -2
- package/dist/runtime/state.d.ts +1 -2
- package/dist/runtime/state.js +1 -3
- package/dist/ssg/batch-render.js +0 -2
- package/dist/ssg/create-static-gen.d.ts +4 -2
- package/dist/ssg/create-static-gen.js +65 -14
- package/dist/ssg/generate-metadata.js +0 -2
- package/dist/ssg/generation-plan.js +0 -2
- package/dist/ssg/incremental-manifest.js +1 -3
- package/dist/ssg/resolve-ssg-data.js +0 -2
- package/dist/ssg/route-utils.js +0 -2
- package/dist/ssg/static-routes.js +0 -2
- package/dist/ssg/types.d.ts +2 -3
- package/dist/ssg/write-static-files.js +16 -12
- package/dist/ssr/attrs.js +0 -2
- package/dist/ssr/boundaries.js +16 -5
- package/dist/ssr/component-runtime.js +1 -27
- package/dist/ssr/context.d.ts +1 -2
- package/dist/ssr/context.js +0 -2
- package/dist/ssr/errors.d.ts +1 -2
- package/dist/ssr/errors.js +0 -2
- package/dist/ssr/escape.js +0 -2
- package/dist/ssr/hydration-data.js +0 -2
- package/dist/ssr/hydration-verify.d.ts +1 -2
- package/dist/ssr/hydration-verify.js +34 -7
- package/dist/ssr/index-internal.d.ts +1 -2
- package/dist/ssr/index-internal.js +0 -2
- package/dist/ssr/render-keys.js +0 -2
- package/dist/ssr/render-resolved.d.ts +1 -2
- package/dist/ssr/render-resolved.js +0 -2
- package/dist/ssr/render-sync.d.ts +1 -2
- package/dist/ssr/render-sync.js +27 -19
- package/dist/ssr/route-policy-resolution.js +0 -2
- package/dist/ssr/route-render.d.ts +1 -2
- package/dist/ssr/route-render.js +0 -2
- package/dist/ssr/sink.d.ts +1 -2
- package/dist/ssr/sink.js +0 -2
- package/dist/ssr/types.d.ts +1 -2
- package/dist/ssr/verify-hydration.js +0 -2
- package/dist/testing/index.d.ts +1 -2
- package/dist/testing/index.js +0 -2
- package/package.json +57 -44
- package/dist/bench/components/benchmark-row.d.ts.map +0 -1
- package/dist/bench/components/benchmark-row.js.map +0 -1
- package/dist/bench/components/benchmark-table.js.map +0 -1
- package/dist/benchmark.d.ts.map +0 -1
- package/dist/benchmark.js.map +0 -1
- package/dist/bin/askr-ssg.d.ts.map +0 -1
- package/dist/bin/askr-ssg.js.map +0 -1
- package/dist/boot/hydration.js.map +0 -1
- package/dist/boot/index.d.ts.map +0 -1
- package/dist/boot/index.js.map +0 -1
- package/dist/boot/root-lifecycle.d.ts.map +0 -1
- package/dist/boot/root-lifecycle.js.map +0 -1
- package/dist/boot/route-startup.js.map +0 -1
- package/dist/boot/types.d.ts.map +0 -1
- package/dist/common/attr-names.js.map +0 -1
- package/dist/common/component.d.ts.map +0 -1
- package/dist/common/control.d.ts.map +0 -1
- package/dist/common/control.js.map +0 -1
- package/dist/common/env.js.map +0 -1
- package/dist/common/error-boundary.d.ts.map +0 -1
- package/dist/common/invariant.js.map +0 -1
- package/dist/common/jsx.d.ts.map +0 -1
- package/dist/common/jsx.js.map +0 -1
- package/dist/common/logger.js.map +0 -1
- package/dist/common/promise.js.map +0 -1
- package/dist/common/props.d.ts.map +0 -1
- package/dist/common/render-context.js.map +0 -1
- package/dist/common/route-activity.js.map +0 -1
- package/dist/common/router-internal.js.map +0 -1
- package/dist/common/router.d.ts.map +0 -1
- package/dist/common/ssr-errors.d.ts.map +0 -1
- package/dist/common/ssr-errors.js.map +0 -1
- package/dist/common/ssr.d.ts.map +0 -1
- package/dist/common/ssr.js.map +0 -1
- package/dist/common/vnode.d.ts.map +0 -1
- package/dist/common/vnode.js.map +0 -1
- package/dist/components/error-boundary.d.ts.map +0 -1
- package/dist/components/error-boundary.js.map +0 -1
- package/dist/components/link.d.ts.map +0 -1
- package/dist/components/link.js.map +0 -1
- package/dist/control/case.d.ts.map +0 -1
- package/dist/control/case.js.map +0 -1
- package/dist/control/for.d.ts.map +0 -1
- package/dist/control/for.js.map +0 -1
- package/dist/control/shared.d.ts.map +0 -1
- package/dist/control/shared.js.map +0 -1
- package/dist/control/show.d.ts.map +0 -1
- package/dist/control/show.js.map +0 -1
- package/dist/data/data-runtime.d.ts.map +0 -1
- package/dist/data/data-runtime.js.map +0 -1
- package/dist/data/invalidation-listeners.js.map +0 -1
- package/dist/data/invalidation.d.ts.map +0 -1
- package/dist/data/invalidation.js.map +0 -1
- package/dist/data/mutation-cell.d.ts.map +0 -1
- package/dist/data/mutation-cell.js.map +0 -1
- package/dist/data/query-cell.d.ts.map +0 -1
- package/dist/data/query-cell.js.map +0 -1
- package/dist/data/query-key.js.map +0 -1
- package/dist/data/shared.js.map +0 -1
- package/dist/data/types.d.ts.map +0 -1
- package/dist/foundations/icon/icon.d.ts.map +0 -1
- package/dist/foundations/icon/icon.js.map +0 -1
- package/dist/foundations/icon/icon.types.d.ts.map +0 -1
- package/dist/foundations/interactions/dismissable.d.ts.map +0 -1
- package/dist/foundations/interactions/dismissable.js.map +0 -1
- package/dist/foundations/interactions/focusable.d.ts.map +0 -1
- package/dist/foundations/interactions/focusable.js.map +0 -1
- package/dist/foundations/interactions/hoverable.d.ts.map +0 -1
- package/dist/foundations/interactions/hoverable.js.map +0 -1
- package/dist/foundations/interactions/interaction-policy.d.ts.map +0 -1
- package/dist/foundations/interactions/interaction-policy.js.map +0 -1
- package/dist/foundations/interactions/pressable.d.ts.map +0 -1
- package/dist/foundations/interactions/pressable.js.map +0 -1
- package/dist/foundations/interactions/roving-focus.d.ts.map +0 -1
- package/dist/foundations/interactions/roving-focus.js.map +0 -1
- package/dist/foundations/state/controllable.d.ts.map +0 -1
- package/dist/foundations/state/controllable.js.map +0 -1
- package/dist/foundations/structures/collection.d.ts.map +0 -1
- package/dist/foundations/structures/collection.js.map +0 -1
- package/dist/foundations/structures/layer.d.ts.map +0 -1
- package/dist/foundations/structures/layer.js.map +0 -1
- package/dist/foundations/structures/layout.d.ts.map +0 -1
- package/dist/foundations/structures/layout.js.map +0 -1
- package/dist/foundations/structures/presence.d.ts.map +0 -1
- package/dist/foundations/structures/presence.js.map +0 -1
- package/dist/foundations/structures/slot.d.ts.map +0 -1
- package/dist/foundations/structures/slot.js.map +0 -1
- package/dist/foundations/utilities/aria.d.ts.map +0 -1
- package/dist/foundations/utilities/aria.js.map +0 -1
- package/dist/foundations/utilities/compose-handlers.d.ts.map +0 -1
- package/dist/foundations/utilities/compose-handlers.js.map +0 -1
- package/dist/foundations/utilities/compose-ref.d.ts.map +0 -1
- package/dist/foundations/utilities/compose-ref.js.map +0 -1
- package/dist/foundations/utilities/event-types.d.ts.map +0 -1
- package/dist/foundations/utilities/merge-props.d.ts.map +0 -1
- package/dist/foundations/utilities/merge-props.js.map +0 -1
- package/dist/foundations/utilities/use-id.d.ts.map +0 -1
- package/dist/foundations/utilities/use-id.js.map +0 -1
- package/dist/fx/fx.d.ts.map +0 -1
- package/dist/fx/fx.js.map +0 -1
- package/dist/fx/noop.js.map +0 -1
- package/dist/fx/timing.d.ts.map +0 -1
- package/dist/fx/timing.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/jsx/types.d.ts.map +0 -1
- package/dist/jsx/utils.d.ts.map +0 -1
- package/dist/jsx/utils.js.map +0 -1
- package/dist/jsx-dev-runtime.d.ts.map +0 -1
- package/dist/jsx-dev-runtime.js.map +0 -1
- package/dist/jsx-runtime.d.ts.map +0 -1
- package/dist/jsx-runtime.js.map +0 -1
- package/dist/renderer/attributes.js.map +0 -1
- package/dist/renderer/boundaries.js.map +0 -1
- package/dist/renderer/child-shape.js.map +0 -1
- package/dist/renderer/children-fastpath.js.map +0 -1
- package/dist/renderer/children.js.map +0 -1
- package/dist/renderer/cleanup.js.map +0 -1
- package/dist/renderer/component-host-cleanup.js.map +0 -1
- package/dist/renderer/component-host-instances.js.map +0 -1
- package/dist/renderer/component-host.js.map +0 -1
- package/dist/renderer/dom-host.js.map +0 -1
- package/dist/renderer/dom-internal.js.map +0 -1
- package/dist/renderer/element-children.js.map +0 -1
- package/dist/renderer/error-boundary-dom.js.map +0 -1
- package/dist/renderer/evaluate-dom-range.js.map +0 -1
- package/dist/renderer/evaluate-reconcile.js.map +0 -1
- package/dist/renderer/evaluate.js.map +0 -1
- package/dist/renderer/fastpath.js.map +0 -1
- package/dist/renderer/for-commit-dom-map.js.map +0 -1
- package/dist/renderer/for-commit-removal.js.map +0 -1
- package/dist/renderer/for-commit-reorder.js.map +0 -1
- package/dist/renderer/for-commit.js.map +0 -1
- package/dist/renderer/index.js.map +0 -1
- package/dist/renderer/keyed-children.js.map +0 -1
- package/dist/renderer/keyed.js.map +0 -1
- package/dist/renderer/namespaces.js.map +0 -1
- package/dist/renderer/prop-bindings.js.map +0 -1
- package/dist/renderer/reactive-child-dom.js.map +0 -1
- package/dist/renderer/reactive-child-sources.js.map +0 -1
- package/dist/renderer/reactive-children.js.map +0 -1
- package/dist/renderer/reconcile-commit.js.map +0 -1
- package/dist/renderer/reconcile-fastpaths.js.map +0 -1
- package/dist/renderer/reconcile-resolution.js.map +0 -1
- package/dist/renderer/reconcile.js.map +0 -1
- package/dist/renderer/retained-element-rollback.js.map +0 -1
- package/dist/renderer/stable-patch.js.map +0 -1
- package/dist/renderer/static-reuse.js.map +0 -1
- package/dist/renderer/utils.js.map +0 -1
- package/dist/router/access.js.map +0 -1
- package/dist/router/activity.d.ts.map +0 -1
- package/dist/router/activity.js.map +0 -1
- package/dist/router/authoring.d.ts.map +0 -1
- package/dist/router/authoring.js.map +0 -1
- package/dist/router/internal-types.d.ts.map +0 -1
- package/dist/router/lazy.d.ts.map +0 -1
- package/dist/router/lazy.js.map +0 -1
- package/dist/router/manifest.d.ts.map +0 -1
- package/dist/router/manifest.js.map +0 -1
- package/dist/router/match.js.map +0 -1
- package/dist/router/navigate.d.ts.map +0 -1
- package/dist/router/navigate.js.map +0 -1
- package/dist/router/navigation-registry.d.ts.map +0 -1
- package/dist/router/navigation-registry.js.map +0 -1
- package/dist/router/navigation-scroll.d.ts.map +0 -1
- package/dist/router/navigation-scroll.js.map +0 -1
- package/dist/router/navigation-targets.d.ts.map +0 -1
- package/dist/router/navigation-targets.js.map +0 -1
- package/dist/router/policy.d.ts.map +0 -1
- package/dist/router/policy.js.map +0 -1
- package/dist/router/rendering.d.ts.map +0 -1
- package/dist/router/rendering.js.map +0 -1
- package/dist/router/resolution.d.ts.map +0 -1
- package/dist/router/resolution.js.map +0 -1
- package/dist/router/route-context.js.map +0 -1
- package/dist/router/route-matching.d.ts.map +0 -1
- package/dist/router/route-matching.js.map +0 -1
- package/dist/router/route-query.d.ts.map +0 -1
- package/dist/router/route-query.js.map +0 -1
- package/dist/router/store.d.ts.map +0 -1
- package/dist/router/store.js.map +0 -1
- package/dist/runtime/access.d.ts.map +0 -1
- package/dist/runtime/access.js.map +0 -1
- package/dist/runtime/child-scope.d.ts.map +0 -1
- package/dist/runtime/child-scope.js.map +0 -1
- package/dist/runtime/component-cleanup.d.ts.map +0 -1
- package/dist/runtime/component-cleanup.js.map +0 -1
- package/dist/runtime/component-commit.js.map +0 -1
- package/dist/runtime/component-internal.d.ts.map +0 -1
- package/dist/runtime/component-internal.js.map +0 -1
- package/dist/runtime/component-lifecycle.d.ts.map +0 -1
- package/dist/runtime/component-lifecycle.js.map +0 -1
- package/dist/runtime/component-scope.d.ts.map +0 -1
- package/dist/runtime/component-scope.js.map +0 -1
- package/dist/runtime/context.d.ts.map +0 -1
- package/dist/runtime/context.js.map +0 -1
- package/dist/runtime/control.d.ts.map +0 -1
- package/dist/runtime/control.js.map +0 -1
- package/dist/runtime/derive.d.ts.map +0 -1
- package/dist/runtime/derive.js.map +0 -1
- package/dist/runtime/dev-namespace.d.ts.map +0 -1
- package/dist/runtime/dev-namespace.js.map +0 -1
- package/dist/runtime/effect.d.ts.map +0 -1
- package/dist/runtime/effect.js.map +0 -1
- package/dist/runtime/error-boundary.d.ts.map +0 -1
- package/dist/runtime/error-boundary.js.map +0 -1
- package/dist/runtime/events.d.ts.map +0 -1
- package/dist/runtime/events.js.map +0 -1
- package/dist/runtime/execution-model.d.ts.map +0 -1
- package/dist/runtime/execution-model.js.map +0 -1
- package/dist/runtime/fastlane.d.ts.map +0 -1
- package/dist/runtime/fastlane.js.map +0 -1
- package/dist/runtime/for-bench.d.ts.map +0 -1
- package/dist/runtime/for-bench.js.map +0 -1
- package/dist/runtime/for-internal.d.ts.map +0 -1
- package/dist/runtime/for-internal.js.map +0 -1
- package/dist/runtime/for-reconcile.d.ts.map +0 -1
- package/dist/runtime/for-reconcile.js.map +0 -1
- package/dist/runtime/for-scopes.d.ts.map +0 -1
- package/dist/runtime/for-scopes.js.map +0 -1
- package/dist/runtime/for-signals.d.ts.map +0 -1
- package/dist/runtime/for-signals.js.map +0 -1
- package/dist/runtime/for-types.d.ts.map +0 -1
- package/dist/runtime/lifecycle-operations.d.ts.map +0 -1
- package/dist/runtime/lifecycle-operations.js.map +0 -1
- package/dist/runtime/perf-metrics.d.ts.map +0 -1
- package/dist/runtime/perf-metrics.js.map +0 -1
- package/dist/runtime/portal.d.ts.map +0 -1
- package/dist/runtime/portal.js.map +0 -1
- package/dist/runtime/readable.d.ts.map +0 -1
- package/dist/runtime/readable.js.map +0 -1
- package/dist/runtime/resource-cell.js.map +0 -1
- package/dist/runtime/resource-operation.d.ts.map +0 -1
- package/dist/runtime/resource-operation.js.map +0 -1
- package/dist/runtime/runtime.d.ts.map +0 -1
- package/dist/runtime/runtime.js.map +0 -1
- package/dist/runtime/scheduler.d.ts.map +0 -1
- package/dist/runtime/scheduler.js.map +0 -1
- package/dist/runtime/selector-store.js.map +0 -1
- package/dist/runtime/selector.d.ts.map +0 -1
- package/dist/runtime/selector.js.map +0 -1
- package/dist/runtime/snapshot-source.d.ts.map +0 -1
- package/dist/runtime/snapshot-source.js.map +0 -1
- package/dist/runtime/state.d.ts.map +0 -1
- package/dist/runtime/state.js.map +0 -1
- package/dist/ssg/batch-render.js.map +0 -1
- package/dist/ssg/create-static-gen.d.ts.map +0 -1
- package/dist/ssg/create-static-gen.js.map +0 -1
- package/dist/ssg/generate-metadata.js.map +0 -1
- package/dist/ssg/generation-plan.js.map +0 -1
- package/dist/ssg/incremental-manifest.js.map +0 -1
- package/dist/ssg/resolve-ssg-data.js.map +0 -1
- package/dist/ssg/route-utils.js.map +0 -1
- package/dist/ssg/static-routes.js.map +0 -1
- package/dist/ssg/types.d.ts.map +0 -1
- package/dist/ssg/write-static-files.js.map +0 -1
- package/dist/ssr/attrs.js.map +0 -1
- package/dist/ssr/boundaries.js.map +0 -1
- package/dist/ssr/component-runtime.js.map +0 -1
- package/dist/ssr/context.d.ts.map +0 -1
- package/dist/ssr/context.js.map +0 -1
- package/dist/ssr/errors.d.ts.map +0 -1
- package/dist/ssr/errors.js.map +0 -1
- package/dist/ssr/escape.js.map +0 -1
- package/dist/ssr/hydration-data.js.map +0 -1
- package/dist/ssr/hydration-verify.d.ts.map +0 -1
- package/dist/ssr/hydration-verify.js.map +0 -1
- package/dist/ssr/index-internal.d.ts.map +0 -1
- package/dist/ssr/index-internal.js.map +0 -1
- package/dist/ssr/render-keys.js.map +0 -1
- package/dist/ssr/render-resolved.d.ts.map +0 -1
- package/dist/ssr/render-resolved.js.map +0 -1
- package/dist/ssr/render-sync.d.ts.map +0 -1
- package/dist/ssr/render-sync.js.map +0 -1
- package/dist/ssr/route-policy-resolution.js.map +0 -1
- package/dist/ssr/route-render.d.ts.map +0 -1
- package/dist/ssr/route-render.js.map +0 -1
- package/dist/ssr/sink.d.ts.map +0 -1
- package/dist/ssr/sink.js.map +0 -1
- package/dist/ssr/types.d.ts.map +0 -1
- package/dist/ssr/verify-hydration.js.map +0 -1
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/index.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getMaterializedKey } from "./utils.js";
|
|
1
2
|
import { keyedElements } from "./keyed.js";
|
|
2
3
|
//#region src/renderer/for-commit-dom-map.ts
|
|
3
4
|
function getOrBuildDomKeyMap(parent) {
|
|
@@ -5,12 +6,8 @@ function getOrBuildDomKeyMap(parent) {
|
|
|
5
6
|
if (!keyMap) {
|
|
6
7
|
keyMap = /* @__PURE__ */ new Map();
|
|
7
8
|
for (let child = parent.firstElementChild; child; child = child.nextElementSibling) {
|
|
8
|
-
const key = child
|
|
9
|
-
if (key !==
|
|
10
|
-
keyMap.set(key, child);
|
|
11
|
-
const numericKey = Number(key);
|
|
12
|
-
if (!Number.isNaN(numericKey)) keyMap.set(numericKey, child);
|
|
13
|
-
}
|
|
9
|
+
const key = getMaterializedKey(child);
|
|
10
|
+
if (key !== void 0) keyMap.set(key, child);
|
|
14
11
|
}
|
|
15
12
|
if (keyMap.size > 0) keyedElements.set(parent, keyMap);
|
|
16
13
|
}
|
|
@@ -22,7 +19,7 @@ function hydrateExistingForDomInOrder(parent, forState) {
|
|
|
22
19
|
const itemKey = forState.orderedKeys[i];
|
|
23
20
|
const itemInstance = forState.items.get(itemKey);
|
|
24
21
|
const currentDom = parent.children[i];
|
|
25
|
-
if (!itemInstance || currentDom
|
|
22
|
+
if (!itemInstance || getMaterializedKey(currentDom) !== itemKey) return false;
|
|
26
23
|
itemInstance.scope.dom = currentDom;
|
|
27
24
|
itemInstance.scope.needsDomUpdate = true;
|
|
28
25
|
}
|
|
@@ -30,13 +27,6 @@ function hydrateExistingForDomInOrder(parent, forState) {
|
|
|
30
27
|
}
|
|
31
28
|
function syncKeyedMapFromForState(parent, forState, strategy, removedNodes) {
|
|
32
29
|
const existing = keyedElements.get(parent);
|
|
33
|
-
const ensureMapEntry = (map, key, element) => {
|
|
34
|
-
map.set(key, element);
|
|
35
|
-
const keyString = String(key);
|
|
36
|
-
map.set(keyString, element);
|
|
37
|
-
const keyNumber = Number(keyString);
|
|
38
|
-
if (!Number.isNaN(keyNumber)) map.set(keyNumber, element);
|
|
39
|
-
};
|
|
40
30
|
if (strategy === "SWAP") {
|
|
41
31
|
if (existing) return;
|
|
42
32
|
}
|
|
@@ -60,7 +50,7 @@ function syncKeyedMapFromForState(parent, forState, strategy, removedNodes) {
|
|
|
60
50
|
const key = forState.orderedKeys[i];
|
|
61
51
|
if (key === null || existing.has(key)) continue;
|
|
62
52
|
const itemInstance = forState.items.get(key);
|
|
63
|
-
if (itemInstance?.scope.dom instanceof Element)
|
|
53
|
+
if (itemInstance?.scope.dom instanceof Element) existing.set(key, itemInstance.scope.dom);
|
|
64
54
|
}
|
|
65
55
|
if (existing.size > 0) keyedElements.set(parent, existing);
|
|
66
56
|
else keyedElements.delete(parent);
|
|
@@ -72,12 +62,10 @@ function syncKeyedMapFromForState(parent, forState, strategy, removedNodes) {
|
|
|
72
62
|
const key = forState.orderedKeys[i];
|
|
73
63
|
if (key === null) continue;
|
|
74
64
|
const itemInstance = forState.items.get(key);
|
|
75
|
-
if (itemInstance?.scope.dom instanceof Element)
|
|
65
|
+
if (itemInstance?.scope.dom instanceof Element) nextMap.set(key, itemInstance.scope.dom);
|
|
76
66
|
}
|
|
77
67
|
if (nextMap.size > 0) keyedElements.set(parent, nextMap);
|
|
78
68
|
else keyedElements.delete(parent);
|
|
79
69
|
}
|
|
80
70
|
//#endregion
|
|
81
71
|
export { getOrBuildDomKeyMap, hydrateExistingForDomInOrder, syncKeyedMapFromForState };
|
|
82
|
-
|
|
83
|
-
//# sourceMappingURL=for-commit-dom-map.js.map
|
|
@@ -1,36 +1,27 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../runtime/for-bench.js";
|
|
2
2
|
import "../runtime/index.js";
|
|
3
3
|
import { teardownNodeSubtree } from "./cleanup.js";
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
function removeForBoundaryNodes(parent, removedNodes, options = {}) {
|
|
5
|
+
const shouldTeardown = options.teardown !== false;
|
|
6
6
|
if (removedNodes.length > 0 && removedNodes.length === parent.childNodes.length) {
|
|
7
7
|
let canBulkClear = true;
|
|
8
|
-
for (let i = 0; i < removedNodes.length; i++) if (removedNodes[i]
|
|
8
|
+
for (let i = 0; i < removedNodes.length; i++) if (removedNodes[i] !== parent.childNodes[i]) {
|
|
9
9
|
canBulkClear = false;
|
|
10
10
|
break;
|
|
11
11
|
}
|
|
12
12
|
if (canBulkClear) {
|
|
13
|
-
for (let i = 0; i < removedNodes.length; i++)
|
|
14
|
-
|
|
15
|
-
teardownNodeSubtree(removedNodes[i]);
|
|
16
|
-
}
|
|
17
|
-
withBenchMetricScope("fullClear", () => {
|
|
18
|
-
recordBenchCounter("bulkClearCommits");
|
|
19
|
-
parent.textContent = "";
|
|
20
|
-
});
|
|
13
|
+
if (shouldTeardown) for (let i = 0; i < removedNodes.length; i++) teardownNodeSubtree(removedNodes[i]);
|
|
14
|
+
parent.textContent = "";
|
|
21
15
|
return;
|
|
22
16
|
}
|
|
23
17
|
}
|
|
24
18
|
for (let i = 0; i < removedNodes.length; i++) {
|
|
25
19
|
const node = removedNodes[i];
|
|
26
20
|
if (node.parentNode === parent) {
|
|
27
|
-
|
|
28
|
-
teardownNodeSubtree(node);
|
|
21
|
+
if (shouldTeardown) teardownNodeSubtree(node);
|
|
29
22
|
parent.removeChild(node);
|
|
30
23
|
}
|
|
31
24
|
}
|
|
32
25
|
}
|
|
33
26
|
//#endregion
|
|
34
27
|
export { removeForBoundaryNodes };
|
|
35
|
-
|
|
36
|
-
//# sourceMappingURL=for-commit-removal.js.map
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { beginLifecycleCommitBatch, discardLifecycleCommitBatch, flushLifecycleCommitBatch } from "../runtime/lifecycle-batch.js";
|
|
2
|
+
import { recordBenchEvent } from "../runtime/for-bench.js";
|
|
3
|
+
import { captureForFallbackTransactionSnapshot, captureForItemTransactionSnapshot } from "../runtime/for-scopes.js";
|
|
4
|
+
import { beginForStateTransaction, clearForDomUpdateState, registerForStateTransaction, rollbackForStateTransaction } from "../runtime/for-internal.js";
|
|
3
5
|
import "../runtime/index.js";
|
|
4
6
|
import { teardownNodeSubtree } from "./cleanup.js";
|
|
5
7
|
import { canUseDirectReplaceChildrenSpread } from "./utils.js";
|
|
@@ -7,10 +9,115 @@ import { keyedElements } from "./keyed.js";
|
|
|
7
9
|
import { getOrBuildDomKeyMap, hydrateExistingForDomInOrder, syncKeyedMapFromForState } from "./for-commit-dom-map.js";
|
|
8
10
|
import { commitMoveOnlyReorder, replaceChildrenInOrder } from "./for-commit-reorder.js";
|
|
9
11
|
import { removeForBoundaryNodes } from "./for-commit-removal.js";
|
|
10
|
-
|
|
12
|
+
import { getRangeNodes, moveRange } from "./dom-range.js";
|
|
13
|
+
import { isFragment } from "./evaluate-reconcile.js";
|
|
14
|
+
function isExactRemovedBoundary(parent, removedNodes) {
|
|
15
|
+
if (removedNodes.length === 0 || removedNodes.length !== parent.childNodes.length) return false;
|
|
16
|
+
for (let index = 0; index < removedNodes.length; index++) if (removedNodes[index] !== parent.childNodes[index]) return false;
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
function isMultiNodeVNode(vnode) {
|
|
20
|
+
if (vnode === null || vnode === void 0 || vnode === false) return true;
|
|
21
|
+
return Array.isArray(vnode) || typeof vnode === "object" && vnode !== null && isFragment(vnode);
|
|
22
|
+
}
|
|
23
|
+
function getScopeRange(scope, node) {
|
|
24
|
+
if (scope.range) return scope.range;
|
|
25
|
+
if (!node) return null;
|
|
26
|
+
return {
|
|
27
|
+
start: node,
|
|
28
|
+
end: node,
|
|
29
|
+
single: true
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function detachRange(range) {
|
|
33
|
+
const parent = range.start.parentNode;
|
|
34
|
+
if (!parent) return;
|
|
35
|
+
const fragment = parent.ownerDocument?.createDocumentFragment();
|
|
36
|
+
if (fragment) moveRange(fragment, range);
|
|
37
|
+
}
|
|
38
|
+
function detachRemovedForNodes(parent, forState) {
|
|
39
|
+
for (const range of forState.lastRemovedRanges) detachRange(range);
|
|
40
|
+
for (const node of forState.lastRemovedNodes) if (node.parentNode === parent) node.parentNode.removeChild(node);
|
|
41
|
+
}
|
|
42
|
+
function commitForStateBoundaryRanges(parent, forState, childrenVNodes, runtime) {
|
|
43
|
+
const desiredRanges = [];
|
|
44
|
+
if (forState.orderedKeys.length === 0) {
|
|
45
|
+
const fallbackScope = forState.fallbackScope;
|
|
46
|
+
const fallbackVNode = childrenVNodes[0];
|
|
47
|
+
if (fallbackScope && fallbackVNode !== void 0) {
|
|
48
|
+
const range = getScopeRange(fallbackScope, !fallbackScope.needsDomUpdate ? null : runtime.syncForItemDom(parent, fallbackScope, fallbackVNode));
|
|
49
|
+
if (range) desiredRanges.push(range);
|
|
50
|
+
}
|
|
51
|
+
} else for (let index = 0; index < forState.orderedItems.length; index += 1) {
|
|
52
|
+
const item = forState.orderedItems[index];
|
|
53
|
+
if (!item) continue;
|
|
54
|
+
captureItemBeforeRangeCommit(forState, item);
|
|
55
|
+
const node = !item.scope.needsDomUpdate ? null : runtime.syncForItemDom(parent, item.scope, childrenVNodes[index]);
|
|
56
|
+
const range = getScopeRange(item.scope, node);
|
|
57
|
+
if (range) desiredRanges.push(range);
|
|
58
|
+
}
|
|
59
|
+
const desiredNodes = /* @__PURE__ */ new Set();
|
|
60
|
+
for (const range of desiredRanges) {
|
|
61
|
+
desiredNodes.add(range.start);
|
|
62
|
+
for (const node of getRangeNodes(range)) desiredNodes.add(node);
|
|
63
|
+
if (!range.single) desiredNodes.add(range.end);
|
|
64
|
+
}
|
|
65
|
+
detachRemovedForNodes(parent, forState);
|
|
66
|
+
let anchor = null;
|
|
67
|
+
for (let index = desiredRanges.length - 1; index >= 0; index -= 1) {
|
|
68
|
+
const range = desiredRanges[index];
|
|
69
|
+
moveRange(parent, range, anchor);
|
|
70
|
+
anchor = range.start;
|
|
71
|
+
}
|
|
72
|
+
for (const node of Array.from(parent.childNodes)) {
|
|
73
|
+
if (desiredNodes.has(node)) continue;
|
|
74
|
+
node.parentNode?.removeChild(node);
|
|
75
|
+
}
|
|
76
|
+
forState._hasResolvedItemDom = true;
|
|
77
|
+
clearForDomUpdateState(forState);
|
|
78
|
+
}
|
|
79
|
+
function captureItemBeforeRangeCommit(forState, item) {
|
|
80
|
+
if (item.scope.needsDomUpdate || item.scope.hydrationPending) captureForItemTransactionSnapshot(forState, item);
|
|
81
|
+
}
|
|
11
82
|
function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtime) {
|
|
12
|
-
const
|
|
83
|
+
const previousChildren = Array.from(parent.childNodes);
|
|
84
|
+
const currentKeyedMap = keyedElements.get(parent);
|
|
85
|
+
const previousKeyedMap = currentKeyedMap ? new Map(currentKeyedMap) : void 0;
|
|
86
|
+
const lifecycleBatch = beginLifecycleCommitBatch();
|
|
87
|
+
beginForStateTransaction(forState, "reuse");
|
|
88
|
+
registerForStateTransaction(forState);
|
|
89
|
+
try {
|
|
90
|
+
commitForStateBoundaryChildrenImpl(parent, forState, childrenVNodes, runtime);
|
|
91
|
+
flushLifecycleCommitBatch(lifecycleBatch);
|
|
92
|
+
} catch (error) {
|
|
93
|
+
discardLifecycleCommitBatch(lifecycleBatch);
|
|
94
|
+
rollbackForStateTransaction(forState);
|
|
95
|
+
const previousChildrenSet = new Set(previousChildren);
|
|
96
|
+
for (const node of Array.from(parent.childNodes)) if (!previousChildrenSet.has(node)) teardownNodeSubtree(node);
|
|
97
|
+
parent.replaceChildren(...previousChildren);
|
|
98
|
+
if (previousKeyedMap) keyedElements.set(parent, new Map(previousKeyedMap));
|
|
99
|
+
else keyedElements.delete(parent);
|
|
100
|
+
throw error;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function commitForStateBoundaryChildrenImpl(parent, forState, childrenVNodes, runtime) {
|
|
104
|
+
if (childrenVNodes.some(isMultiNodeVNode) || forState.orderedItems.some((item) => item.scope.range && !item.scope.range.single) || Boolean(forState.fallbackScope?.range && !forState.fallbackScope.range.single)) {
|
|
105
|
+
commitForStateBoundaryRanges(parent, forState, childrenVNodes, runtime);
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
let removedBoundaryConsumed = false;
|
|
109
|
+
const captureItemBeforeCommit = (item) => {
|
|
110
|
+
if (item.scope.needsDomUpdate || item.scope.hydrationPending) captureForItemTransactionSnapshot(forState, item);
|
|
111
|
+
};
|
|
112
|
+
const syncItemDom = (item, vnode) => {
|
|
113
|
+
captureItemBeforeCommit(item);
|
|
114
|
+
return runtime.syncForItemDom(parent, item.scope, vnode);
|
|
115
|
+
};
|
|
13
116
|
const hydrateExistingForDom = () => {
|
|
117
|
+
if (parent.children.length === forState.orderedKeys.length) for (let index = 0; index < forState.orderedItems.length; index++) {
|
|
118
|
+
const item = forState.orderedItems[index];
|
|
119
|
+
if (item) captureForItemTransactionSnapshot(forState, item);
|
|
120
|
+
}
|
|
14
121
|
if (hydrateExistingForDomInOrder(parent, forState)) return;
|
|
15
122
|
const domKeyMap = getOrBuildDomKeyMap(parent);
|
|
16
123
|
if (!domKeyMap) return;
|
|
@@ -20,21 +127,26 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
20
127
|
if (!itemInstance || itemInstance.scope.dom) continue;
|
|
21
128
|
const existingDom = domKeyMap.get(itemKey);
|
|
22
129
|
if (!existingDom) continue;
|
|
130
|
+
captureForItemTransactionSnapshot(forState, itemInstance);
|
|
23
131
|
itemInstance.scope.dom = existingDom;
|
|
24
132
|
itemInstance.scope.needsDomUpdate = true;
|
|
25
133
|
}
|
|
26
134
|
};
|
|
27
135
|
if (forState.orderedKeys.length === 0) {
|
|
28
|
-
removeForBoundaryNodes(parent, forState.lastRemovedNodes);
|
|
29
136
|
const fallbackScope = forState.fallbackScope;
|
|
30
137
|
const fallbackVNode = childrenVNodes[0];
|
|
138
|
+
if (fallbackScope && (fallbackScope.needsDomUpdate || fallbackScope.hydrationPending)) captureForFallbackTransactionSnapshot(forState, fallbackScope);
|
|
31
139
|
const nextDom = fallbackScope && fallbackVNode !== void 0 ? runtime.syncForItemDom(parent, fallbackScope, fallbackVNode) : null;
|
|
140
|
+
if (nextDom && isExactRemovedBoundary(parent, forState.lastRemovedNodes)) {
|
|
141
|
+
recordBenchEvent("domRemove", forState.lastRemovedNodes.length);
|
|
142
|
+
parent.replaceChildren(nextDom);
|
|
143
|
+
removedBoundaryConsumed = true;
|
|
144
|
+
} else removeForBoundaryNodes(parent, forState.lastRemovedNodes, { teardown: false });
|
|
32
145
|
if (nextDom) {
|
|
33
|
-
if (parent.childNodes.length !== 1 || parent.firstChild !== nextDom || forState.lastRemovedNodes.length > 0) parent.replaceChildren(nextDom);
|
|
146
|
+
if (parent.childNodes.length !== 1 || parent.firstChild !== nextDom || forState.lastRemovedNodes.length > 0 && !removedBoundaryConsumed) parent.replaceChildren(nextDom);
|
|
34
147
|
} else if (parent.firstChild) parent.textContent = "";
|
|
35
148
|
keyedElements.delete(parent);
|
|
36
149
|
forState._hasResolvedItemDom = false;
|
|
37
|
-
recordBenchTiming("domCommit", performance.now() - domCommitStart);
|
|
38
150
|
clearForDomUpdateState(forState);
|
|
39
151
|
return;
|
|
40
152
|
}
|
|
@@ -65,8 +177,9 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
65
177
|
const i = dirtyIndices[dirtyIndex];
|
|
66
178
|
const itemInstance = orderedItems[i];
|
|
67
179
|
if (!itemInstance) continue;
|
|
180
|
+
captureItemBeforeCommit(itemInstance);
|
|
68
181
|
if (runtime.tryPatchStableForDirtyItem(itemInstance.scope)) continue;
|
|
69
|
-
const dom =
|
|
182
|
+
const dom = syncItemDom(itemInstance, childrenVNodes[i]);
|
|
70
183
|
if (!dom) continue;
|
|
71
184
|
const anchor = childNodes[i] ?? null;
|
|
72
185
|
if (dom.parentNode !== parent || dom !== anchor) {
|
|
@@ -80,7 +193,7 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
80
193
|
for (let i = 0; i < forState.orderedKeys.length; i++) {
|
|
81
194
|
const itemInstance = forState.orderedItems[i];
|
|
82
195
|
if (!itemInstance) continue;
|
|
83
|
-
const dom =
|
|
196
|
+
const dom = syncItemDom(itemInstance, childrenVNodes[i]);
|
|
84
197
|
if (!dom) continue;
|
|
85
198
|
if (dom.parentNode !== parent) {
|
|
86
199
|
const anchor = parent.childNodes[i] ?? null;
|
|
@@ -101,7 +214,7 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
101
214
|
currentNode = currentNode?.nextSibling ?? null;
|
|
102
215
|
continue;
|
|
103
216
|
}
|
|
104
|
-
const dom =
|
|
217
|
+
const dom = syncItemDom(itemInstance, childrenVNodes[i]);
|
|
105
218
|
if (!dom || dom.parentNode !== parent || dom !== currentNode) exactOrder = false;
|
|
106
219
|
currentNode = currentNode?.nextSibling ?? null;
|
|
107
220
|
}
|
|
@@ -110,23 +223,41 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
110
223
|
return;
|
|
111
224
|
}
|
|
112
225
|
}
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
226
|
+
const appendColdRows = () => {
|
|
227
|
+
const pendingAppend = [];
|
|
228
|
+
const appendStart = forState.pendingAppendStart ?? 0;
|
|
229
|
+
const hasDetachedSuffix = forState.pendingAppendStart !== null && parent.childNodes.length === appendStart;
|
|
230
|
+
for (let i = appendStart; i < forState.orderedKeys.length; i++) {
|
|
117
231
|
const itemInstance = forState.orderedItems[i];
|
|
118
232
|
if (!itemInstance) continue;
|
|
119
|
-
if (itemInstance.scope.dom?.parentNode === parent && !itemInstance.scope.needsDomUpdate) continue;
|
|
120
|
-
const dom =
|
|
233
|
+
if (!hasDetachedSuffix && itemInstance.scope.dom?.parentNode === parent && !itemInstance.scope.needsDomUpdate) continue;
|
|
234
|
+
const dom = syncItemDom(itemInstance, childrenVNodes[i]);
|
|
121
235
|
if (!dom) continue;
|
|
122
|
-
if (dom.parentNode !== parent)
|
|
123
|
-
recordBenchEvent("domInsert");
|
|
124
|
-
fragment.appendChild(dom);
|
|
125
|
-
hasPendingAppend = true;
|
|
126
|
-
}
|
|
236
|
+
if (hasDetachedSuffix || dom.parentNode !== parent) pendingAppend.push(dom);
|
|
127
237
|
}
|
|
128
|
-
if (
|
|
129
|
-
|
|
238
|
+
if (pendingAppend.length > 0) {
|
|
239
|
+
const fragment = parent.ownerDocument.createDocumentFragment();
|
|
240
|
+
if (canUseDirectReplaceChildrenSpread(pendingAppend.length)) fragment.append(...pendingAppend);
|
|
241
|
+
else for (const node of pendingAppend) fragment.appendChild(node);
|
|
242
|
+
parent.appendChild(fragment);
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
appendColdRows();
|
|
246
|
+
boundaryChildrenExact = true;
|
|
247
|
+
};
|
|
248
|
+
const commitInsertOne = () => {
|
|
249
|
+
const index = forState.pendingInsertedIndex;
|
|
250
|
+
const item = index === null ? void 0 : forState.orderedItems[index];
|
|
251
|
+
if (index === null || !item || parent.childNodes.length !== forState.orderedKeys.length - 1) {
|
|
252
|
+
commitReorder();
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
const anchor = parent.childNodes[index] ?? null;
|
|
256
|
+
const dom = syncItemDom(item, childrenVNodes[index]);
|
|
257
|
+
if (dom && (dom.parentNode !== parent || dom !== anchor)) {
|
|
258
|
+
recordBenchEvent("domInsert");
|
|
259
|
+
parent.insertBefore(dom, anchor);
|
|
260
|
+
}
|
|
130
261
|
boundaryChildrenExact = true;
|
|
131
262
|
};
|
|
132
263
|
const commitSwap = () => {
|
|
@@ -143,8 +274,8 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
143
274
|
commitReorder();
|
|
144
275
|
return;
|
|
145
276
|
}
|
|
146
|
-
const firstDom =
|
|
147
|
-
const secondDom =
|
|
277
|
+
const firstDom = syncItemDom(firstItem, childrenVNodes[firstIndex]);
|
|
278
|
+
const secondDom = syncItemDom(secondItem, childrenVNodes[secondIndex]);
|
|
148
279
|
if (!firstDom || !secondDom) {
|
|
149
280
|
commitReorder();
|
|
150
281
|
return;
|
|
@@ -175,7 +306,7 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
175
306
|
const itemInstance = items[i];
|
|
176
307
|
if (!itemInstance) return;
|
|
177
308
|
const scope = itemInstance.scope;
|
|
178
|
-
const dom = scope.dom && !scope.needsDomUpdate ? scope.dom :
|
|
309
|
+
const dom = scope.dom && !scope.needsDomUpdate ? scope.dom : syncItemDom(itemInstance, childrenVNodes[i]);
|
|
179
310
|
if (!dom) return;
|
|
180
311
|
if (dom.parentNode === parent) movedCount++;
|
|
181
312
|
else insertedCount++;
|
|
@@ -211,20 +342,19 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
211
342
|
break;
|
|
212
343
|
}
|
|
213
344
|
if (!hasExistingChild) {
|
|
214
|
-
|
|
345
|
+
const canConsumeRemovedBoundary = isExactRemovedBoundary(parent, forState.lastRemovedNodes);
|
|
346
|
+
const replaceColdRows = () => {
|
|
215
347
|
const nodes = [];
|
|
216
348
|
for (let i = 0; i < count; i++) {
|
|
217
349
|
const itemInstance = items[i];
|
|
218
350
|
if (!itemInstance) continue;
|
|
219
|
-
const dom =
|
|
220
|
-
if (dom)
|
|
221
|
-
recordBenchEvent("domInsert");
|
|
222
|
-
nodes.push(dom);
|
|
223
|
-
}
|
|
351
|
+
const dom = syncItemDom(itemInstance, childrenVNodes[i]);
|
|
352
|
+
if (dom) nodes.push(dom);
|
|
224
353
|
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
354
|
+
replaceChildrenInOrder(parent, nodes, canConsumeRemovedBoundary);
|
|
355
|
+
};
|
|
356
|
+
replaceColdRows();
|
|
357
|
+
removedBoundaryConsumed = canConsumeRemovedBoundary;
|
|
228
358
|
boundaryChildrenExact = true;
|
|
229
359
|
return;
|
|
230
360
|
}
|
|
@@ -233,7 +363,7 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
233
363
|
for (let i = 0; i < count; i++) {
|
|
234
364
|
const itemInstance = items[i];
|
|
235
365
|
if (!itemInstance) continue;
|
|
236
|
-
const dom =
|
|
366
|
+
const dom = syncItemDom(itemInstance, childrenVNodes[i]);
|
|
237
367
|
if (!dom) continue;
|
|
238
368
|
recordBenchEvent(dom.parentNode === parent ? "domMove" : "domInsert");
|
|
239
369
|
nodes.push(dom);
|
|
@@ -245,7 +375,7 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
245
375
|
for (let i = 0; i < count; i++) {
|
|
246
376
|
const itemInstance = items[i];
|
|
247
377
|
if (!itemInstance) continue;
|
|
248
|
-
const dom =
|
|
378
|
+
const dom = syncItemDom(itemInstance, childrenVNodes[i]);
|
|
249
379
|
if (!dom) continue;
|
|
250
380
|
const anchor = parent.childNodes[i] ?? null;
|
|
251
381
|
if (dom !== anchor) {
|
|
@@ -258,7 +388,6 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
258
388
|
if (forState.lastCommitStrategy === "NO_REORDER" && dirtyIndices.length > 0 && forState.pendingDirtyIndices === null && forState.pendingSwapIndices === null && !forState.pendingMoveOnly && forState.lastRemovedNodes.length === 0 && parent.childNodes.length === forState.orderedKeys.length) {
|
|
259
389
|
commitDirtyNoReorder(dirtyIndices);
|
|
260
390
|
syncKeyedMapFromForState(parent, forState, "NO_REORDER", []);
|
|
261
|
-
recordBenchTiming("domCommit", performance.now() - domCommitStart);
|
|
262
391
|
clearForDomUpdateState(forState);
|
|
263
392
|
return;
|
|
264
393
|
}
|
|
@@ -272,6 +401,9 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
272
401
|
case "APPEND":
|
|
273
402
|
commitAppend();
|
|
274
403
|
break;
|
|
404
|
+
case "INSERT_ONE":
|
|
405
|
+
commitInsertOne();
|
|
406
|
+
break;
|
|
275
407
|
case "SWAP":
|
|
276
408
|
commitSwap();
|
|
277
409
|
break;
|
|
@@ -279,15 +411,14 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
279
411
|
commitReorder();
|
|
280
412
|
break;
|
|
281
413
|
}
|
|
282
|
-
removeForBoundaryNodes(parent, forState.lastRemovedNodes);
|
|
283
|
-
if (forState.lastRemovedNodes.length > 0) boundaryChildrenExact = false;
|
|
414
|
+
if (!removedBoundaryConsumed) removeForBoundaryNodes(parent, forState.lastRemovedNodes, { teardown: false });
|
|
284
415
|
syncKeyedMapFromForState(parent, forState, forState.lastCommitStrategy, forState.lastRemovedNodes);
|
|
285
416
|
const syncExactForBoundaryChildren = () => {
|
|
286
417
|
const expectedNodes = [];
|
|
287
418
|
for (let i = 0; i < forState.orderedKeys.length; i++) {
|
|
288
419
|
const itemInstance = forState.orderedItems[i];
|
|
289
420
|
if (!itemInstance) continue;
|
|
290
|
-
const dom = itemInstance.scope.dom && !itemInstance.scope.needsDomUpdate ? itemInstance.scope.dom :
|
|
421
|
+
const dom = itemInstance.scope.dom && !itemInstance.scope.needsDomUpdate ? itemInstance.scope.dom : syncItemDom(itemInstance, childrenVNodes[i]);
|
|
291
422
|
if (dom) expectedNodes.push(dom);
|
|
292
423
|
}
|
|
293
424
|
const currentNodes = Array.from(parent.childNodes);
|
|
@@ -305,10 +436,7 @@ function commitForStateBoundaryChildren(parent, forState, childrenVNodes, runtim
|
|
|
305
436
|
};
|
|
306
437
|
if (!boundaryChildrenExact) syncExactForBoundaryChildren();
|
|
307
438
|
forState._hasResolvedItemDom = true;
|
|
308
|
-
recordBenchTiming("domCommit", performance.now() - domCommitStart);
|
|
309
439
|
clearForDomUpdateState(forState);
|
|
310
440
|
}
|
|
311
441
|
//#endregion
|
|
312
442
|
export { commitForStateBoundaryChildren };
|
|
313
|
-
|
|
314
|
-
//# sourceMappingURL=for-commit.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
//#region src/renderer/hydration-boundaries.ts
|
|
2
|
+
const recordsByElement = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
const recordsByRoot = /* @__PURE__ */ new WeakMap();
|
|
4
|
+
function registerDeferredHydrationBoundary(root, element, range) {
|
|
5
|
+
const existing = recordsByElement.get(element);
|
|
6
|
+
if (existing) return existing;
|
|
7
|
+
const record = {
|
|
8
|
+
root,
|
|
9
|
+
element,
|
|
10
|
+
ownership: {
|
|
11
|
+
owner: null,
|
|
12
|
+
parent: null,
|
|
13
|
+
portalScope: null
|
|
14
|
+
},
|
|
15
|
+
context: null,
|
|
16
|
+
range,
|
|
17
|
+
vnode: void 0,
|
|
18
|
+
renderResult: void 0,
|
|
19
|
+
state: "deferred",
|
|
20
|
+
attempts: 0
|
|
21
|
+
};
|
|
22
|
+
recordsByElement.set(element, record);
|
|
23
|
+
const rootRecords = recordsByRoot.get(root) ?? /* @__PURE__ */ new Set();
|
|
24
|
+
rootRecords.add(record);
|
|
25
|
+
recordsByRoot.set(root, rootRecords);
|
|
26
|
+
return record;
|
|
27
|
+
}
|
|
28
|
+
function rememberDeferredHydrationVNode(element, vnode, owner, context) {
|
|
29
|
+
const record = recordsByElement.get(element);
|
|
30
|
+
if (!record) return;
|
|
31
|
+
record.vnode = vnode;
|
|
32
|
+
record.renderResult = vnode;
|
|
33
|
+
record.ownership.owner = owner;
|
|
34
|
+
record.ownership.parent = owner?.parentInstance ?? null;
|
|
35
|
+
record.ownership.portalScope = owner?.portalScope ?? null;
|
|
36
|
+
record.context = context;
|
|
37
|
+
return record;
|
|
38
|
+
}
|
|
39
|
+
function beginDeferredHydrationActivation(element) {
|
|
40
|
+
const record = recordsByElement.get(element);
|
|
41
|
+
if (!record || !record.vnode || record.state === "active" || record.state === "activating") return;
|
|
42
|
+
record.attempts += 1;
|
|
43
|
+
record.state = "activating";
|
|
44
|
+
return record;
|
|
45
|
+
}
|
|
46
|
+
function commitDeferredHydrationActivation(record) {
|
|
47
|
+
record.state = "active";
|
|
48
|
+
}
|
|
49
|
+
function rollbackDeferredHydrationActivation(record) {
|
|
50
|
+
record.state = "failed";
|
|
51
|
+
}
|
|
52
|
+
function clearDeferredHydrationBoundaries(root) {
|
|
53
|
+
const records = recordsByRoot.get(root);
|
|
54
|
+
if (!records) return;
|
|
55
|
+
for (const record of records) recordsByElement.delete(record.element);
|
|
56
|
+
records.clear();
|
|
57
|
+
recordsByRoot.delete(root);
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { beginDeferredHydrationActivation, clearDeferredHydrationBoundaries, commitDeferredHydrationActivation, registerDeferredHydrationBoundary, rememberDeferredHydrationVNode, rollbackDeferredHydrationActivation };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//#region src/renderer/hydration-listener-transaction.ts
|
|
2
|
+
let currentTransaction = null;
|
|
3
|
+
function beginHydrationListenerTransaction() {
|
|
4
|
+
const transaction = {
|
|
5
|
+
parent: currentTransaction,
|
|
6
|
+
stages: [],
|
|
7
|
+
active: true
|
|
8
|
+
};
|
|
9
|
+
currentTransaction = transaction;
|
|
10
|
+
return transaction;
|
|
11
|
+
}
|
|
12
|
+
function stageHydrationListener(stage) {
|
|
13
|
+
if (!currentTransaction?.active) return false;
|
|
14
|
+
currentTransaction.stages.push(stage);
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
function closeTransaction(transaction) {
|
|
18
|
+
if (!transaction.active) return false;
|
|
19
|
+
transaction.active = false;
|
|
20
|
+
currentTransaction = transaction.parent;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
function commitHydrationListenerTransaction(transaction) {
|
|
24
|
+
if (!closeTransaction(transaction)) return;
|
|
25
|
+
const stages = [...transaction.stages].sort((left, right) => {
|
|
26
|
+
if (left.kind !== right.kind) return left.kind === "delegated" ? -1 : 1;
|
|
27
|
+
return left.eventName.localeCompare(right.eventName);
|
|
28
|
+
});
|
|
29
|
+
const published = [];
|
|
30
|
+
try {
|
|
31
|
+
for (const stage of stages) {
|
|
32
|
+
stage.publish();
|
|
33
|
+
published.push(stage);
|
|
34
|
+
}
|
|
35
|
+
} catch (error) {
|
|
36
|
+
for (let index = published.length - 1; index >= 0; index -= 1) try {
|
|
37
|
+
published[index].rollback();
|
|
38
|
+
} catch {}
|
|
39
|
+
throw error;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function discardHydrationListenerTransaction(transaction) {
|
|
43
|
+
if (!closeTransaction(transaction)) return;
|
|
44
|
+
for (let index = transaction.stages.length - 1; index >= 0; index -= 1) try {
|
|
45
|
+
transaction.stages[index].rollback();
|
|
46
|
+
} catch {}
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { beginHydrationListenerTransaction, commitHydrationListenerTransaction, discardHydrationListenerTransaction, stageHydrationListener };
|
package/dist/renderer/index.js
CHANGED
|
@@ -3,17 +3,20 @@ import "./types.js";
|
|
|
3
3
|
import { configureRuntimeRenderer } from "../runtime/runtime.js";
|
|
4
4
|
import { getDefaultRuntimeInstance } from "../runtime/access.js";
|
|
5
5
|
import "../runtime/index.js";
|
|
6
|
-
import { REACTIVE_CHILDREN_KEY, cleanupInstanceIfPresent, cleanupInstancesUnder, elementListeners, elementReactivePropsCleanup, elementRefs, removeAllListeners, removeElementListeners, removeElementReactiveProps, removeElementRef, teardownNodeSubtree, updateElementRef } from "./cleanup.js";
|
|
6
|
+
import { REACTIVE_CHILDREN_KEY, cleanupInstanceIfPresent, cleanupInstancesUnder, elementListeners, elementReactivePropsCleanup, elementRefs, forEachElementReactivePropCleanup, getElementReactivePropCleanupSize, getElementReactivePropsCleanupMap, removeAllListeners, removeElementListeners, removeElementReactiveProps, removeElementRef, setDirectElementReactivePropCleanup, setFreshElementReactivePropCleanup, teardownNodeSubtree, updateElementRef } from "./cleanup.js";
|
|
7
7
|
import { getKeyMapForElement, isKeyedReorderFastPathEligible, populateKeyMapForElement } from "./keyed.js";
|
|
8
|
-
import "./boundaries.js";
|
|
9
8
|
import { performBulkPositionalKeyedTextUpdate } from "./children-fastpath.js";
|
|
10
9
|
import { isBulkTextFastPathEligible, performBulkTextReplace } from "./children.js";
|
|
11
|
-
import { syncComponentElement } from "./component-host.js";
|
|
12
10
|
import { setStaticChildSlotsCacheEnabled } from "./static-reuse.js";
|
|
13
11
|
import { updateElementChildren, updateUnkeyedChildren } from "./element-children.js";
|
|
14
12
|
import { markReactivePropsDirtySource } from "./prop-bindings.js";
|
|
13
|
+
import { withIntrinsicHydrationAdoption } from "./intrinsic-hydration-adoption.js";
|
|
14
|
+
import "./boundary-materialization.js";
|
|
15
|
+
import "./boundaries.js";
|
|
16
|
+
import { syncComponentElement } from "./component-host.js";
|
|
15
17
|
import { tryPatchStableForDirtyItem } from "./stable-patch.js";
|
|
16
|
-
import {
|
|
18
|
+
import { clearDeferredHydrationBoundaries, registerDeferredHydrationBoundary } from "./hydration-boundaries.js";
|
|
19
|
+
import { IS_DOM_AVAILABLE, activateHydrationBoundary, createDOMNode, updateElementFromVnode } from "./dom-internal.js";
|
|
17
20
|
import "./dom.js";
|
|
18
21
|
import { evaluate } from "./evaluate.js";
|
|
19
22
|
//#region src/renderer/index.ts
|
|
@@ -33,6 +36,4 @@ function installRendererBridge(runtime = getDefaultRuntimeInstance()) {
|
|
|
33
36
|
return true;
|
|
34
37
|
}
|
|
35
38
|
//#endregion
|
|
36
|
-
export { IS_DOM_AVAILABLE, REACTIVE_CHILDREN_KEY, _isDOMElement, cleanupInstanceIfPresent, cleanupInstancesUnder, createDOMNode, createRendererHost, elementListeners, elementReactivePropsCleanup, elementRefs, installRendererBridge, isBulkTextFastPathEligible, markReactivePropsDirtySource, performBulkPositionalKeyedTextUpdate, performBulkTextReplace, removeAllListeners, removeElementListeners, removeElementReactiveProps, removeElementRef, setStaticChildSlotsCacheEnabled, syncComponentElement, teardownNodeSubtree, tryPatchStableForDirtyItem, updateElementChildren, updateElementFromVnode, updateElementRef, updateUnkeyedChildren };
|
|
37
|
-
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
|
39
|
+
export { IS_DOM_AVAILABLE, REACTIVE_CHILDREN_KEY, _isDOMElement, activateHydrationBoundary, cleanupInstanceIfPresent, cleanupInstancesUnder, clearDeferredHydrationBoundaries, createDOMNode, createRendererHost, elementListeners, elementReactivePropsCleanup, elementRefs, forEachElementReactivePropCleanup, getElementReactivePropCleanupSize, getElementReactivePropsCleanupMap, installRendererBridge, isBulkTextFastPathEligible, markReactivePropsDirtySource, performBulkPositionalKeyedTextUpdate, performBulkTextReplace, registerDeferredHydrationBoundary, removeAllListeners, removeElementListeners, removeElementReactiveProps, removeElementRef, setDirectElementReactivePropCleanup, setFreshElementReactivePropCleanup, setStaticChildSlotsCacheEnabled, syncComponentElement, teardownNodeSubtree, tryPatchStableForDirtyItem, updateElementChildren, updateElementFromVnode, updateElementRef, updateUnkeyedChildren, withIntrinsicHydrationAdoption };
|