react-native-screen-transitions 3.4.0-rc.1 → 3.5.0-beta.0
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/README.md +5 -2
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +21 -32
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +2 -2
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +5 -5
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +27 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +7 -2
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +110 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +40 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +79 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.js → use-refresh-boundary.js} +26 -27
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -0
- package/lib/commonjs/shared/components/create-transition-aware-component.js +4 -13
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +1 -0
- package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +7 -10
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +3 -3
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +4 -5
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +3 -3
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +3 -3
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +28 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/{use-screen-events.js → history/use-screen-history.js} +17 -11
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/history/use-screen-history.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +140 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/{use-open-transition.js → use-open-transition-intent.js} +14 -24
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +53 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/index.js +17 -14
- package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/commonjs/shared/constants.js +6 -17
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +6 -9
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +26 -44
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +19 -35
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +64 -38
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -2
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/types.js +4 -0
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +19 -5
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -0
- package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js +29 -0
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/constants.js +36 -0
- package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +49 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js +137 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +75 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +49 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +31 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +33 -107
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +13 -7
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js +10 -0
- package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/index.js +26 -25
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +13 -51
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/groups.js +27 -0
- package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +210 -185
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +2 -6
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js +2 -3
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/commonjs/shared/stores/system.store.js +44 -11
- package/lib/commonjs/shared/stores/system.store.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js +4 -0
- package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +6 -6
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +9 -3
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +5 -8
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +2 -8
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/index.js +7 -5
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +44 -142
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/create-store.js +13 -4
- package/lib/commonjs/shared/utils/create-store.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +21 -32
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +2 -2
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +2 -2
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +21 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +7 -2
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +105 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +35 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +74 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.js → use-refresh-boundary.js} +24 -25
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -0
- package/lib/module/shared/components/create-transition-aware-component.js +4 -13
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/float-overlay.js +1 -0
- package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +8 -11
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +3 -3
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +4 -5
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +3 -3
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/surface-container.js +3 -3
- package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +24 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/{use-screen-events.js → history/use-screen-history.js} +16 -10
- package/lib/module/shared/components/screen-lifecycle/hooks/history/use-screen-history.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +134 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/{use-open-transition.js → use-open-transition-intent.js} +13 -24
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +48 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/index.js +18 -15
- package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/module/shared/constants.js +5 -16
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +6 -9
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/animation.provider.js +22 -43
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +19 -35
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +65 -39
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -2
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/types.js +2 -0
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js +19 -5
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -0
- package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js +25 -0
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/constants.js +31 -0
- package/lib/module/shared/providers/screen/styles/constants.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +45 -0
- package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js +132 -0
- package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +70 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +44 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +26 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/styles.provider.js +34 -108
- package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +13 -7
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/keys.js +8 -0
- package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -1
- package/lib/module/shared/stores/bounds/index.js +27 -26
- package/lib/module/shared/stores/bounds/index.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/clear.js +14 -52
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/groups.js +23 -0
- package/lib/module/shared/stores/bounds/internals/groups.js.map +1 -0
- package/lib/module/shared/stores/bounds/internals/registry.js +204 -178
- package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +2 -6
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/state.js +1 -2
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/module/shared/stores/system.store.js +43 -10
- package/lib/module/shared/stores/system.store.js.map +1 -1
- package/lib/module/shared/types/animation.types.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js +4 -0
- package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +6 -6
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +9 -3
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +5 -8
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js +3 -9
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/module/shared/utils/bounds/index.js +7 -5
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/build.js +46 -144
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/create-store.js +13 -4
- package/lib/module/shared/utils/create-store.js.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts +3 -206
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +8 -8
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +5 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts +13 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts +10 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/{use-boundary-measure-and-store.d.ts → use-measurer.d.ts} +6 -4
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +14 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +2 -206
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +6 -3
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts +5 -6
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts +2 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/history/use-screen-history.d.ts +7 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/history/use-screen-history.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts +11 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition-intent.d.ts +8 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition-intent.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts +11 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +1 -14
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +647 -909
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +7 -8
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +0 -8
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +3 -3
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +4 -6
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/types.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/constants.d.ts +23 -0
- package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts +17 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +9 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts +9 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts +2 -2
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +1 -7
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +1 -0
- package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/index.d.ts +28 -27
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +4 -0
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts +12 -11
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts +1 -2
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +21 -19
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/stores/gesture.store.d.ts +1 -7
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/system.store.d.ts +33 -8
- package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +5 -25
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +7 -5
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/screen.types.d.ts +20 -0
- package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +6 -2
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +3 -2
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/create-store.d.ts +13 -8
- package/lib/typescript/shared/utils/create-store.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +21 -39
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +3 -6
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +12 -12
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +43 -0
- package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +3 -8
- package/src/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.ts +149 -0
- package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +42 -0
- package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +144 -0
- package/src/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.ts → use-refresh-boundary.ts} +35 -30
- package/src/shared/components/create-boundary-component/types.ts +7 -3
- package/src/shared/components/create-transition-aware-component.tsx +4 -13
- package/src/shared/components/overlay/variations/float-overlay.tsx +1 -1
- package/src/shared/components/screen-container/hooks/use-content-layout.ts +14 -11
- package/src/shared/components/screen-container/layers/backdrop.tsx +3 -3
- package/src/shared/components/screen-container/layers/content.tsx +4 -7
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +3 -5
- package/src/shared/components/screen-container/layers/surface-container.tsx +3 -3
- package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +29 -0
- package/src/shared/components/screen-lifecycle/hooks/{use-screen-events.ts → history/use-screen-history.ts} +25 -9
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +160 -0
- package/src/shared/components/screen-lifecycle/hooks/{use-open-transition.ts → use-open-transition-intent.ts} +19 -23
- package/src/shared/components/screen-lifecycle/hooks/use-transition-start-controller.ts +71 -0
- package/src/shared/components/screen-lifecycle/index.tsx +17 -17
- package/src/shared/constants.ts +3 -11
- package/src/shared/providers/register-bounds.provider.tsx +7 -12
- package/src/shared/providers/screen/animation/animation.provider.tsx +30 -68
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +20 -33
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +96 -69
- package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +5 -7
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +14 -2
- package/src/shared/providers/screen/animation/types.ts +9 -0
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +25 -7
- package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +2 -0
- package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +29 -0
- package/src/shared/providers/screen/styles/constants.ts +34 -0
- package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +61 -0
- package/src/shared/providers/screen/styles/helpers/resolve-slot-styles.ts +190 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +85 -0
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +51 -0
- package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +40 -0
- package/src/shared/providers/screen/styles/styles.provider.tsx +42 -146
- package/src/shared/stores/bounds/helpers/apply-measured-bounds-writes.ts +15 -13
- package/src/shared/stores/bounds/helpers/keys.ts +8 -0
- package/src/shared/stores/bounds/index.ts +37 -44
- package/src/shared/stores/bounds/internals/clear.ts +22 -86
- package/src/shared/stores/bounds/internals/groups.ts +20 -0
- package/src/shared/stores/bounds/internals/registry.ts +280 -234
- package/src/shared/stores/bounds/internals/resolver.ts +1 -5
- package/src/shared/stores/bounds/internals/state.ts +2 -3
- package/src/shared/stores/bounds/types.ts +23 -21
- package/src/shared/stores/system.store.ts +77 -9
- package/src/shared/types/animation.types.ts +5 -25
- package/src/shared/types/bounds.types.ts +7 -8
- package/src/shared/types/screen.types.ts +21 -0
- package/src/shared/utils/bounds/helpers/create-bound-tag.ts +6 -2
- package/src/shared/utils/bounds/helpers/create-interpolators.ts +10 -7
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +12 -5
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +4 -7
- package/src/shared/utils/bounds/helpers/styles/compute.ts +2 -10
- package/src/shared/utils/bounds/index.ts +7 -6
- package/src/shared/utils/bounds/zoom/build.ts +53 -159
- package/src/shared/utils/bounds/zoom/types.ts +1 -1
- package/src/shared/utils/create-store.ts +39 -13
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +0 -44
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +0 -84
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +0 -149
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +0 -29
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +0 -47
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js +0 -158
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js +0 -36
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +0 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/build-resolved-style-map.js +0 -144
- package/lib/commonjs/shared/providers/screen/styles/helpers/build-resolved-style-map.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js +0 -28
- package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js.map +0 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/split-normalized-style-maps.js +0 -39
- package/lib/commonjs/shared/providers/screen/styles/helpers/split-normalized-style-maps.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/internals/presence.js +0 -125
- package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +0 -39
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +0 -78
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +0 -145
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +0 -24
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +0 -42
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js +0 -153
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js +0 -30
- package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +0 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/helpers/build-resolved-style-map.js +0 -139
- package/lib/module/shared/providers/screen/styles/helpers/build-resolved-style-map.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js +0 -23
- package/lib/module/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js.map +0 -1
- package/lib/module/shared/providers/screen/styles/helpers/split-normalized-style-maps.js +0 -34
- package/lib/module/shared/providers/screen/styles/helpers/split-normalized-style-maps.js.map +0 -1
- package/lib/module/shared/stores/bounds/internals/presence.js +0 -115
- package/lib/module/shared/stores/bounds/internals/presence.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +0 -10
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +0 -27
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts +0 -12
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts +0 -2
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts +0 -2
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts +0 -8
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts +0 -13
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts +0 -12
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +0 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts +0 -7
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/build-resolved-style-map.d.ts +0 -11
- package/lib/typescript/shared/providers/screen/styles/helpers/build-resolved-style-map.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.d.ts +0 -7
- package/lib/typescript/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.d.ts.map +0 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/split-normalized-style-maps.d.ts +0 -6
- package/lib/typescript/shared/providers/screen/styles/helpers/split-normalized-style-maps.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/internals/presence.d.ts +0 -12
- package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +0 -1
- package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +0 -56
- package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +0 -154
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +0 -223
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.ts +0 -29
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.ts +0 -58
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/index.ts +0 -183
- package/src/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.ts +0 -34
- package/src/shared/providers/screen/styles/helpers/build-resolved-style-map.ts +0 -185
- package/src/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.ts +0 -31
- package/src/shared/providers/screen/styles/helpers/split-normalized-style-maps.ts +0 -44
- package/src/shared/stores/bounds/internals/presence.ts +0 -145
- /package/lib/commonjs/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.js +0 -0
- /package/lib/module/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.js +0 -0
- /package/lib/typescript/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.d.ts +0 -0
- /package/src/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.ts +0 -0
package/README.md
CHANGED
|
@@ -286,8 +286,8 @@ Return `null`, `undefined`, or `{}` when you want an interpolator frame to apply
|
|
|
286
286
|
screenStyleInterpolator: ({ bounds }) => {
|
|
287
287
|
"worklet";
|
|
288
288
|
|
|
289
|
-
const
|
|
290
|
-
if (!
|
|
289
|
+
const measuredEntry = bounds.getMeasured("hero");
|
|
290
|
+
if (!measuredEntry) return null;
|
|
291
291
|
|
|
292
292
|
return {
|
|
293
293
|
content: {
|
|
@@ -297,6 +297,9 @@ screenStyleInterpolator: ({ bounds }) => {
|
|
|
297
297
|
};
|
|
298
298
|
```
|
|
299
299
|
|
|
300
|
+
`bounds.getSnapshot()` remains available as a deprecated alias for `bounds.getMeasured()`
|
|
301
|
+
and will be removed in the next major version.
|
|
302
|
+
|
|
300
303
|
### Animation Specs
|
|
301
304
|
|
|
302
305
|
Control timing with spring configs:
|
package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js
CHANGED
|
@@ -9,14 +9,13 @@ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reani
|
|
|
9
9
|
var _constants = require("../../constants");
|
|
10
10
|
var _descriptors = require("../../providers/screen/descriptors");
|
|
11
11
|
var _styles = require("../../providers/screen/styles");
|
|
12
|
-
var _animation = require("../../stores/animation.store");
|
|
13
12
|
var _bounds = require("../../stores/bounds");
|
|
14
13
|
var _styles2 = require("../../utils/bounds/helpers/styles/styles");
|
|
15
|
-
var _useAutoSourceMeasurement = require("./hooks/use-auto-source-measurement");
|
|
16
|
-
var _useBoundaryMeasureAndStore = require("./hooks/use-boundary-measure-and-store");
|
|
17
14
|
var _useBoundaryPresence = require("./hooks/use-boundary-presence");
|
|
18
|
-
var
|
|
19
|
-
var
|
|
15
|
+
var _useCaptureDestinationBoundary = require("./hooks/use-capture-destination-boundary");
|
|
16
|
+
var _useCaptureSourceBoundary = require("./hooks/use-capture-source-boundary");
|
|
17
|
+
var _useMeasurer = require("./hooks/use-measurer");
|
|
18
|
+
var _useRefreshBoundary = require("./hooks/use-refresh-boundary");
|
|
20
19
|
var _boundaryOwner = require("./providers/boundary-owner.provider");
|
|
21
20
|
var _buildBoundaryMatchKey = require("./utils/build-boundary-match-key");
|
|
22
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -66,30 +65,22 @@ function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
66
65
|
method
|
|
67
66
|
};
|
|
68
67
|
}, [anchor, scaleMode, target, method]);
|
|
69
|
-
const isAnimating = _animation.AnimationStore.getValue(currentScreenKey, "animating");
|
|
70
68
|
const preparedStyles = (0, _react.useMemo)(() => (0, _styles2.prepareStyleForBounds)(style), [style]);
|
|
71
69
|
const {
|
|
72
|
-
|
|
70
|
+
stylesMap
|
|
73
71
|
} = (0, _styles.useScreenStyles)();
|
|
74
72
|
const associatedStyles = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
75
73
|
"worklet";
|
|
76
74
|
|
|
77
|
-
|
|
78
|
-
if ("opacity" in baseStyle) {
|
|
79
|
-
return baseStyle;
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
...baseStyle,
|
|
83
|
-
opacity: 1
|
|
84
|
-
};
|
|
75
|
+
return stylesMap.get()[sharedBoundTag]?.style ?? _constants.NO_STYLES;
|
|
85
76
|
});
|
|
86
77
|
const associatedStackingStyles = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
|
|
87
78
|
"worklet";
|
|
88
79
|
|
|
89
|
-
const baseStyle =
|
|
80
|
+
const baseStyle = stylesMap.get()[sharedBoundTag]?.style;
|
|
90
81
|
return {
|
|
91
|
-
zIndex: baseStyle
|
|
92
|
-
elevation: baseStyle
|
|
82
|
+
zIndex: baseStyle?.zIndex ?? 0,
|
|
83
|
+
elevation: baseStyle?.elevation ?? 0
|
|
93
84
|
};
|
|
94
85
|
});
|
|
95
86
|
const {
|
|
@@ -100,7 +91,7 @@ function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
100
91
|
ownerRef,
|
|
101
92
|
associatedTargetStyles: runtimeEnabled ? associatedStyles : undefined
|
|
102
93
|
});
|
|
103
|
-
const
|
|
94
|
+
const measureBoundary = (0, _useMeasurer.useMeasurer)({
|
|
104
95
|
enabled,
|
|
105
96
|
sharedBoundTag,
|
|
106
97
|
preferredSourceScreenKey,
|
|
@@ -127,34 +118,32 @@ function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
127
118
|
|
|
128
119
|
// On the source screen, capture source bounds when a matching destination
|
|
129
120
|
// appears on the next screen.
|
|
130
|
-
(0,
|
|
121
|
+
(0, _useCaptureSourceBoundary.useCaptureSourceBoundary)({
|
|
131
122
|
enabled: runtimeEnabled,
|
|
132
123
|
sharedBoundTag,
|
|
133
124
|
id,
|
|
134
125
|
group,
|
|
135
126
|
nextScreenKey,
|
|
136
|
-
|
|
127
|
+
measureBoundary
|
|
137
128
|
});
|
|
138
129
|
|
|
139
|
-
// Destination completion path:
|
|
140
|
-
//
|
|
141
|
-
|
|
142
|
-
(0, _usePendingDestinationMeasurement.usePendingDestinationMeasurement)({
|
|
130
|
+
// Destination completion path: hold lifecycle start until the first valid
|
|
131
|
+
// destination measurement attaches, then release the pending transition.
|
|
132
|
+
(0, _useCaptureDestinationBoundary.useCaptureDestinationBoundary)({
|
|
143
133
|
sharedBoundTag,
|
|
144
134
|
enabled: shouldRunDestinationEffects,
|
|
145
135
|
id,
|
|
146
136
|
group,
|
|
147
137
|
currentScreenKey,
|
|
148
138
|
expectedSourceScreenKey: preferredSourceScreenKey,
|
|
149
|
-
|
|
150
|
-
maybeMeasureAndStore
|
|
139
|
+
measureBoundary
|
|
151
140
|
});
|
|
152
141
|
|
|
153
142
|
// Pre-transition measurement path: when this route or its next sibling is
|
|
154
143
|
// about to animate, capture or refresh the measurements needed before
|
|
155
144
|
// progress or transform state mutates. Grouped sources refresh existing
|
|
156
145
|
// links; plain sources only backfill when missing.
|
|
157
|
-
(0,
|
|
146
|
+
(0, _useRefreshBoundary.useRefreshBoundary)({
|
|
158
147
|
enabled: runtimeEnabled,
|
|
159
148
|
sharedBoundTag,
|
|
160
149
|
id,
|
|
@@ -162,20 +151,20 @@ function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
162
151
|
currentScreenKey,
|
|
163
152
|
nextScreenKey,
|
|
164
153
|
hasNextScreen,
|
|
165
|
-
|
|
154
|
+
measureBoundary
|
|
166
155
|
});
|
|
167
156
|
const handlePress = (0, _react.useCallback)((...args) => {
|
|
168
157
|
// Press path has priority: capture source before user onPress/navigation.
|
|
169
158
|
if (group) {
|
|
170
|
-
(0, _reactNativeReanimated.runOnUI)(_bounds.BoundStore.
|
|
159
|
+
(0, _reactNativeReanimated.runOnUI)(_bounds.BoundStore.group.setActiveId)(group, String(id));
|
|
171
160
|
}
|
|
172
|
-
(0, _reactNativeReanimated.runOnUI)(
|
|
161
|
+
(0, _reactNativeReanimated.runOnUI)(measureBoundary)({
|
|
173
162
|
intent: "capture-source"
|
|
174
163
|
});
|
|
175
164
|
if (typeof onPress === "function") {
|
|
176
165
|
onPress(...args);
|
|
177
166
|
}
|
|
178
|
-
}, [group, id,
|
|
167
|
+
}, [group, id, measureBoundary, onPress]);
|
|
179
168
|
const resolvedOnPress = typeof onPress === "function" ? handlePress : undefined;
|
|
180
169
|
(0, _react.useImperativeHandle)(forwardedRef, () => ownerRef.current, [ownerRef]);
|
|
181
170
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryOwner.BoundaryOwnerProvider, {
|
package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_constants","_descriptors","_styles","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_constants","_descriptors","_styles","_bounds","_styles2","_useBoundaryPresence","_useCaptureDestinationBoundary","_useCaptureSourceBoundary","_useMeasurer","_useRefreshBoundary","_boundaryOwner","_buildBoundaryMatchKey","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","forwardedRef","ownerRef","useAnimatedRef","enabled","group","id","anchor","scaleMode","target","method","style","onPress","rest","sharedBoundTag","buildBoundaryMatchKey","previousScreenKey","preferredSourceScreenKey","currentScreenKey","nextScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","hasConfiguredInterpolator","useDescriptorDerivations","runtimeEnabled","hasNextScreen","boundaryConfig","useMemo","undefined","preparedStyles","prepareStyleForBounds","stylesMap","useScreenStyles","associatedStyles","useAnimatedStyle","NO_STYLES","associatedStackingStyles","baseStyle","zIndex","elevation","contextValue","measuredRef","hasActiveTarget","useBoundaryOwner","associatedTargetStyles","measureBoundary","useMeasurer","measuredAnimatedRef","shouldRunDestinationEffects","useBoundaryPresence","useCaptureSourceBoundary","useCaptureDestinationBoundary","expectedSourceScreenKey","useRefreshBoundary","handlePress","useCallback","args","runOnUI","BoundStore","setActiveId","String","intent","resolvedOnPress","useImperativeHandle","current","jsx","BoundaryOwnerProvider","value","children","ref","collapsable","memo"],"sourceRoot":"../../../../../src","sources":["shared/components/create-boundary-component/create-boundary-component.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AASA,IAAAC,sBAAA,GAAAC,uBAAA,CAAAF,OAAA;AAKA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,oBAAA,GAAAR,OAAA;AACA,IAAAS,8BAAA,GAAAT,OAAA;AACA,IAAAU,yBAAA,GA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,EAACvE,iBAAiB;QAAA,GACbkB,IAAI;QACRyD,GAAG,EAAEpE,QAAS;QACdS,KAAK,EAAE,CACNA,KAAK,EACLc,cAAc,GACXkB,eAAe,GACdN,wBAAwB,GACxBH,gBAAgB,GACjBL,SAAS,CACX;QACFjB,OAAO,EAAEmD,eAAgB;QACzBQ,WAAW,EAAE;MAAM,CACnB;IAAC,CACoB,CAAC;EAE1B,CAAC,CAAC;EAEF,oBAAO,IAAAC,WAAI,EACV5E,8BAAQ,CAACC,uBAAuB,CAACC,KAAK,CACvC,CAAC;AAMF","ignoreList":[]}
|
|
@@ -8,10 +8,10 @@ var _bounds = require("../../../stores/bounds");
|
|
|
8
8
|
const resolvePendingSourceKey = (sharedBoundTag, expectedSourceScreenKey) => {
|
|
9
9
|
"worklet";
|
|
10
10
|
|
|
11
|
-
if (expectedSourceScreenKey && (_bounds.BoundStore.
|
|
11
|
+
if (expectedSourceScreenKey && (_bounds.BoundStore.link.getPending(sharedBoundTag, expectedSourceScreenKey) || _bounds.BoundStore.link.hasSource(sharedBoundTag, expectedSourceScreenKey))) {
|
|
12
12
|
return expectedSourceScreenKey;
|
|
13
13
|
}
|
|
14
|
-
return _bounds.BoundStore.
|
|
14
|
+
return _bounds.BoundStore.link.getPending(sharedBoundTag)?.source.screenKey ?? null;
|
|
15
15
|
};
|
|
16
16
|
exports.resolvePendingSourceKey = resolvePendingSourceKey;
|
|
17
17
|
//# sourceMappingURL=resolve-pending-source-key.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bounds","require","resolvePendingSourceKey","sharedBoundTag","expectedSourceScreenKey","BoundStore","
|
|
1
|
+
{"version":3,"names":["_bounds","require","resolvePendingSourceKey","sharedBoundTag","expectedSourceScreenKey","BoundStore","link","getPending","hasSource","source","screenKey","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEO,MAAMC,uBAAuB,GAAGA,CACtCC,cAAsB,EACtBC,uBAAgC,KACb;EACnB,SAAS;;EACT,IACCA,uBAAuB,KACtBC,kBAAU,CAACC,IAAI,CAACC,UAAU,CAACJ,cAAc,EAAEC,uBAAuB,CAAC,IACnEC,kBAAU,CAACC,IAAI,CAACE,SAAS,CAACL,cAAc,EAAEC,uBAAuB,CAAC,CAAC,EACnE;IACD,OAAOA,uBAAuB;EAC/B;EAEA,OAAOC,kBAAU,CAACC,IAAI,CAACC,UAAU,CAACJ,cAAc,CAAC,EAAEM,MAAM,CAACC,SAAS,IAAI,IAAI;AAC5E,CAAC;AAACC,OAAA,CAAAT,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.shouldTriggerScrollSettledRefresh = exports.resolvePrepareSourceMeasurementIntent = exports.resolvePendingDestinationRetrySignal = exports.resolvePendingDestinationCaptureSignal = exports.
|
|
7
|
-
const
|
|
6
|
+
exports.shouldTriggerScrollSettledRefresh = exports.resolvePrepareSourceMeasurementIntent = exports.resolvePendingDestinationRetrySignal = exports.resolvePendingDestinationCaptureSignal = exports.resolveMeasureWritePlan = exports.resolveGroupActiveMeasurementAction = exports.resolveAutoSourceCaptureSignal = exports.getMeasureIntentFlags = exports.canFlushGroupActiveMeasurement = exports.PREPARE_DESTINATION_MEASUREMENT_INTENT = void 0;
|
|
7
|
+
const getMeasureIntentFlags = intent => {
|
|
8
8
|
"worklet";
|
|
9
9
|
|
|
10
10
|
const flags = {
|
|
@@ -35,8 +35,8 @@ const getMeasurementIntentFlags = intent => {
|
|
|
35
35
|
}
|
|
36
36
|
return flags;
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
38
|
+
exports.getMeasureIntentFlags = getMeasureIntentFlags;
|
|
39
|
+
const resolveMeasureWritePlan = params => {
|
|
40
40
|
"worklet";
|
|
41
41
|
|
|
42
42
|
const {
|
|
@@ -69,7 +69,7 @@ const resolveMeasurementWritePlan = params => {
|
|
|
69
69
|
* presence yet. The previous behavior waited for an explicit destination match
|
|
70
70
|
* before allowing source capture.
|
|
71
71
|
*/
|
|
72
|
-
exports.
|
|
72
|
+
exports.resolveMeasureWritePlan = resolveMeasureWritePlan;
|
|
73
73
|
const resolveAutoSourceCaptureSignal = params => {
|
|
74
74
|
"worklet";
|
|
75
75
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["getMeasureIntentFlags","intent","flags","captureSource","completeDestination","refreshSource","refreshDestination","intents","Array","isArray","i","length","exports","resolveMeasureWritePlan","params","hasPendingLink","hasSourceLink","hasDestinationLink","hasAttachableSourceLink","writesAny","wantsDestinationWrite","resolveAutoSourceCaptureSignal","enabled","nextScreenKey","resolvePendingDestinationCaptureSignal","resolvedSourceKey","resolvePendingDestinationRetrySignal","retryCount","maxRetries","isAnimating","progress","retryProgressMax","retryProgressBuckets","Math","floor","resolvePrepareSourceMeasurementIntent","shouldRefreshExistingSource","PREPARE_DESTINATION_MEASUREMENT_INTENT","resolveGroupActiveMeasurementAction","isEligible","memberId","activeId","previousActiveId","canFlushGroupActiveMeasurement","shouldTriggerScrollSettledRefresh","group","hasNextScreen","hasSettledSignal","signal","previousSignal"],"sourceRoot":"../../../../../../../src","sources":["shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts"],"mappings":";;;;;;AA4BO,MAAMA,qBAAqB,GACjCC,MAAiD,IACzB;EACxB,SAAS;;EACT,MAAMC,KAAyB,GAAG;IACjCC,aAAa,EAAE,KAAK;IACpBC,mBAAmB,EAAE,KAAK;IAC1BC,aAAa,EAAE,KAAK;IACpBC,kBAAkB,EAAE;EACrB,CAAC;EAED,IAAI,CAACL,MAAM,EAAE;IACZ,OAAOC,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;IAAEC,QAAQ;IAAEC;EAAS,CAAC,GAAG3B,MAAM;EAC1D,IAAI,CAACQ,OAAO,IAAI,CAACiB,UAAU,EAAE,OAAO,KAAK;EACzC,OAAOE,QAAQ,KAAKD,QAAQ;AAC7B,CAAC;AAAC5B,OAAA,CAAA+B,8BAAA,GAAAA,8BAAA;AAEK,MAAMC,iCAAiC,GAAI9B,MAOjD,IAAc;EACd,SAAS;;EACT,MAAM;IACLQ,OAAO;IACPuB,KAAK;IACLC,aAAa;IACbC,gBAAgB;IAChBC,MAAM;IACNC;EACD,CAAC,GAAGnC,MAAM;EAEV,IAAI,CAACQ,OAAO,EAAE,OAAO,KAAK;EAC1B,IAAI,CAACuB,KAAK,IAAI,CAACC,aAAa,IAAI,CAACC,gBAAgB,EAAE,OAAO,KAAK;EAC/D,IAAIC,MAAM,KAAK,CAAC,IAAIA,MAAM,KAAKC,cAAc,EAAE,OAAO,KAAK;EAC3D,OAAO,IAAI;AACZ,CAAC;AAACrC,OAAA,CAAAgC,iCAAA,GAAAA,iCAAA","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isMeasurementInViewport = exports.areMeasurementsEqual = exports.SNAPSHOT_EPSILON = void 0;
|
|
7
|
+
const SNAPSHOT_EPSILON = exports.SNAPSHOT_EPSILON = 0.5;
|
|
8
|
+
const areMeasurementsEqual = (a, b) => {
|
|
9
|
+
"worklet";
|
|
10
|
+
|
|
11
|
+
return Math.abs(a.x - b.x) <= SNAPSHOT_EPSILON && Math.abs(a.y - b.y) <= SNAPSHOT_EPSILON && Math.abs(a.pageX - b.pageX) <= SNAPSHOT_EPSILON && Math.abs(a.pageY - b.pageY) <= SNAPSHOT_EPSILON && Math.abs(a.width - b.width) <= SNAPSHOT_EPSILON && Math.abs(a.height - b.height) <= SNAPSHOT_EPSILON;
|
|
12
|
+
};
|
|
13
|
+
exports.areMeasurementsEqual = areMeasurementsEqual;
|
|
14
|
+
const isMeasurementInViewport = (measured, viewportWidth, viewportHeight) => {
|
|
15
|
+
"worklet";
|
|
16
|
+
|
|
17
|
+
if (measured.width <= 0 || measured.height <= 0) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
const toleranceX = viewportWidth * 0.15;
|
|
21
|
+
const toleranceY = viewportHeight * 0.15;
|
|
22
|
+
const centerX = measured.pageX + measured.width / 2;
|
|
23
|
+
const centerY = measured.pageY + measured.height / 2;
|
|
24
|
+
return centerX >= -toleranceX && centerX <= viewportWidth + toleranceX && centerY >= -toleranceY && centerY <= viewportHeight + toleranceY;
|
|
25
|
+
};
|
|
26
|
+
exports.isMeasurementInViewport = isMeasurementInViewport;
|
|
27
|
+
//# sourceMappingURL=measurement.js.map
|
package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SNAPSHOT_EPSILON","exports","areMeasurementsEqual","a","b","Math","abs","x","y","pageX","pageY","width","height","isMeasurementInViewport","measured","viewportWidth","viewportHeight","toleranceX","toleranceY","centerX","centerY"],"sourceRoot":"../../../../../../../src","sources":["shared/components/create-boundary-component/hooks/helpers/measurement.ts"],"mappings":";;;;;;AAEO,MAAMA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,GAAG;AAE5B,MAAME,oBAAoB,GAAGA,CACnCC,CAAqB,EACrBC,CAAqB,KACR;EACb,SAAS;;EAET,OACCC,IAAI,CAACC,GAAG,CAACH,CAAC,CAACI,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC,IAAIP,gBAAgB,IACvCK,IAAI,CAACC,GAAG,CAACH,CAAC,CAACK,CAAC,GAAGJ,CAAC,CAACI,CAAC,CAAC,IAAIR,gBAAgB,IACvCK,IAAI,CAACC,GAAG,CAACH,CAAC,CAACM,KAAK,GAAGL,CAAC,CAACK,KAAK,CAAC,IAAIT,gBAAgB,IAC/CK,IAAI,CAACC,GAAG,CAACH,CAAC,CAACO,KAAK,GAAGN,CAAC,CAACM,KAAK,CAAC,IAAIV,gBAAgB,IAC/CK,IAAI,CAACC,GAAG,CAACH,CAAC,CAACQ,KAAK,GAAGP,CAAC,CAACO,KAAK,CAAC,IAAIX,gBAAgB,IAC/CK,IAAI,CAACC,GAAG,CAACH,CAAC,CAACS,MAAM,GAAGR,CAAC,CAACQ,MAAM,CAAC,IAAIZ,gBAAgB;AAEnD,CAAC;AAACC,OAAA,CAAAC,oBAAA,GAAAA,oBAAA;AAEK,MAAMW,uBAAuB,GAAGA,CACtCC,QAA4B,EAC5BC,aAAqB,EACrBC,cAAsB,KACT;EACb,SAAS;;EAET,IAAIF,QAAQ,CAACH,KAAK,IAAI,CAAC,IAAIG,QAAQ,CAACF,MAAM,IAAI,CAAC,EAAE;IAChD,OAAO,KAAK;EACb;EAEA,MAAMK,UAAU,GAAGF,aAAa,GAAG,IAAI;EACvC,MAAMG,UAAU,GAAGF,cAAc,GAAG,IAAI;EACxC,MAAMG,OAAO,GAAGL,QAAQ,CAACL,KAAK,GAAGK,QAAQ,CAACH,KAAK,GAAG,CAAC;EACnD,MAAMS,OAAO,GAAGN,QAAQ,CAACJ,KAAK,GAAGI,QAAQ,CAACF,MAAM,GAAG,CAAC;EAEpD,OACCO,OAAO,IAAI,CAACF,UAAU,IACtBE,OAAO,IAAIJ,aAAa,GAAGE,UAAU,IACrCG,OAAO,IAAI,CAACF,UAAU,IACtBE,OAAO,IAAIJ,cAAc,GAAGE,UAAU;AAExC,CAAC;AAACjB,OAAA,CAAAY,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js
CHANGED
|
@@ -23,9 +23,14 @@ const useBoundaryPresence = params => {
|
|
|
23
23
|
// biome-ignore lint/correctness/useExhaustiveDependencies: <Depend on the ancestory keys signature>
|
|
24
24
|
(0, _react.useLayoutEffect)(() => {
|
|
25
25
|
if (!enabled) return;
|
|
26
|
-
(0, _reactNativeReanimated.runOnUI)(_bounds.BoundStore.
|
|
26
|
+
(0, _reactNativeReanimated.runOnUI)(_bounds.BoundStore.entry.set)(sharedBoundTag, currentScreenKey, {
|
|
27
|
+
ancestorKeys,
|
|
28
|
+
boundaryConfig,
|
|
29
|
+
navigatorKey,
|
|
30
|
+
ancestorNavigatorKeys
|
|
31
|
+
});
|
|
27
32
|
return () => {
|
|
28
|
-
(0, _reactNativeReanimated.runOnUI)(_bounds.BoundStore.
|
|
33
|
+
(0, _reactNativeReanimated.runOnUI)(_bounds.BoundStore.entry.remove)(sharedBoundTag, currentScreenKey);
|
|
29
34
|
};
|
|
30
35
|
}, [enabled, sharedBoundTag, currentScreenKey, ancestorKeysSignature, navigatorKey, ancestorNavigatorKeysSignature, boundaryConfig]);
|
|
31
36
|
};
|
package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_bounds","useBoundaryPresence","params","enabled","sharedBoundTag","currentScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","boundaryConfig","ancestorKeysSignature","join","ancestorNavigatorKeysSignature","useLayoutEffect","runOnUI","BoundStore","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_bounds","useBoundaryPresence","params","enabled","sharedBoundTag","currentScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","boundaryConfig","ancestorKeysSignature","join","ancestorNavigatorKeysSignature","useLayoutEffect","runOnUI","BoundStore","entry","set","remove","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-boundary-presence.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAGO,MAAMG,mBAAmB,GAAIC,MAQnC,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,cAAc;IACdC,gBAAgB;IAChBC,YAAY;IACZC,YAAY;IACZC,qBAAqB;IACrBC;EACD,CAAC,GAAGP,MAAM;EACV,MAAMQ,qBAAqB,GAAGJ,YAAY,CAACK,IAAI,CAAC,GAAG,CAAC;EACpD,MAAMC,8BAA8B,GAAGJ,qBAAqB,EAAEG,IAAI,CAAC,GAAG,CAAC;;EAEvE;EACA,IAAAE,sBAAe,EAAC,MAAM;IACrB,IAAI,CAACV,OAAO,EAAE;IAEd,IAAAW,8BAAO,EAACC,kBAAU,CAACC,KAAK,CAACC,GAAG,CAAC,CAACb,cAAc,EAAEC,gBAAgB,EAAE;MAC/DC,YAAY;MACZG,cAAc;MACdF,YAAY;MACZC;IACD,CAAC,CAAC;IAEF,OAAO,MAAM;MACZ,IAAAM,8BAAO,EAACC,kBAAU,CAACC,KAAK,CAACE,MAAM,CAAC,CAACd,cAAc,EAAEC,gBAAgB,CAAC;IACnE,CAAC;EACF,CAAC,EAAE,CACFF,OAAO,EACPC,cAAc,EACdC,gBAAgB,EAChBK,qBAAqB,EACrBH,YAAY,EACZK,8BAA8B,EAC9BH,cAAc,CACd,CAAC;AACH,CAAC;AAACU,OAAA,CAAAlB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useCaptureDestinationBoundary = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
9
|
+
var _animation = require("../../../stores/animation.store");
|
|
10
|
+
var _bounds = require("../../../stores/bounds");
|
|
11
|
+
var _system = require("../../../stores/system.store");
|
|
12
|
+
var _resolvePendingSourceKey = require("../helpers/resolve-pending-source-key");
|
|
13
|
+
const VIEWPORT_RETRY_DELAY_MS = 16;
|
|
14
|
+
const useCaptureDestinationBoundary = ({
|
|
15
|
+
sharedBoundTag,
|
|
16
|
+
enabled,
|
|
17
|
+
id,
|
|
18
|
+
group,
|
|
19
|
+
currentScreenKey,
|
|
20
|
+
expectedSourceScreenKey,
|
|
21
|
+
measureBoundary
|
|
22
|
+
}) => {
|
|
23
|
+
const animating = _animation.AnimationStore.getValue(currentScreenKey, "animating");
|
|
24
|
+
const closing = _animation.AnimationStore.getValue(currentScreenKey, "closing");
|
|
25
|
+
const system = _system.SystemStore.getBag(currentScreenKey);
|
|
26
|
+
const {
|
|
27
|
+
blockLifecycleStart,
|
|
28
|
+
unblockLifecycleStart
|
|
29
|
+
} = system.actions;
|
|
30
|
+
const isBlockingLifecycleStart = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
31
|
+
const retryToken = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
32
|
+
const ensureLifecycleStartBlocked = () => {
|
|
33
|
+
"worklet";
|
|
34
|
+
|
|
35
|
+
if (isBlockingLifecycleStart.get()) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
blockLifecycleStart();
|
|
39
|
+
isBlockingLifecycleStart.set(1);
|
|
40
|
+
};
|
|
41
|
+
const releaseLifecycleStartBlock = () => {
|
|
42
|
+
"worklet";
|
|
43
|
+
|
|
44
|
+
(0, _reactNativeReanimated.cancelAnimation)(retryToken);
|
|
45
|
+
if (!isBlockingLifecycleStart.get()) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
unblockLifecycleStart();
|
|
49
|
+
isBlockingLifecycleStart.set(0);
|
|
50
|
+
};
|
|
51
|
+
const scheduleViewportRetry = () => {
|
|
52
|
+
"worklet";
|
|
53
|
+
|
|
54
|
+
(0, _reactNativeReanimated.cancelAnimation)(retryToken);
|
|
55
|
+
retryToken.set((0, _reactNativeReanimated.withDelay)(VIEWPORT_RETRY_DELAY_MS, (0, _reactNativeReanimated.withTiming)(retryToken.get() + 1, {
|
|
56
|
+
duration: 0
|
|
57
|
+
})));
|
|
58
|
+
};
|
|
59
|
+
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
60
|
+
"worklet";
|
|
61
|
+
|
|
62
|
+
const retryTick = retryToken.get();
|
|
63
|
+
if (closing.get() || animating.get()) {
|
|
64
|
+
return [0, retryTick];
|
|
65
|
+
}
|
|
66
|
+
const resolvedSourceKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, expectedSourceScreenKey);
|
|
67
|
+
const hasAttachableSourceLink = resolvedSourceKey ? _bounds.BoundStore.link.getPending(sharedBoundTag, resolvedSourceKey) !== null || _bounds.BoundStore.link.hasSource(sharedBoundTag, resolvedSourceKey) : false;
|
|
68
|
+
const hasDestinationLink = _bounds.BoundStore.link.hasDestination(sharedBoundTag, currentScreenKey);
|
|
69
|
+
const shouldBlock = enabled && !!resolvedSourceKey && hasAttachableSourceLink && !hasDestinationLink;
|
|
70
|
+
if (!shouldBlock) {
|
|
71
|
+
return [0, retryTick];
|
|
72
|
+
}
|
|
73
|
+
if (group && _bounds.BoundStore.group.getActiveId(group) !== String(id)) {
|
|
74
|
+
return [0, retryTick];
|
|
75
|
+
}
|
|
76
|
+
return [1, retryTick];
|
|
77
|
+
}, ([shouldBlock]) => {
|
|
78
|
+
"worklet";
|
|
79
|
+
|
|
80
|
+
if (!shouldBlock) {
|
|
81
|
+
releaseLifecycleStartBlock();
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
ensureLifecycleStartBlocked();
|
|
85
|
+
measureBoundary({
|
|
86
|
+
intent: "complete-destination"
|
|
87
|
+
});
|
|
88
|
+
if (_bounds.BoundStore.link.hasDestination(sharedBoundTag, currentScreenKey)) {
|
|
89
|
+
releaseLifecycleStartBlock();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
scheduleViewportRetry();
|
|
93
|
+
});
|
|
94
|
+
(0, _react.useLayoutEffect)(() => {
|
|
95
|
+
return () => {
|
|
96
|
+
(0, _reactNativeReanimated.runOnUI)(() => {
|
|
97
|
+
"worklet";
|
|
98
|
+
|
|
99
|
+
(0, _reactNativeReanimated.cancelAnimation)(retryToken);
|
|
100
|
+
if (!isBlockingLifecycleStart.get()) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
unblockLifecycleStart();
|
|
104
|
+
isBlockingLifecycleStart.set(0);
|
|
105
|
+
})();
|
|
106
|
+
};
|
|
107
|
+
}, [isBlockingLifecycleStart, retryToken, unblockLifecycleStart]);
|
|
108
|
+
};
|
|
109
|
+
exports.useCaptureDestinationBoundary = useCaptureDestinationBoundary;
|
|
110
|
+
//# sourceMappingURL=use-capture-destination-boundary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_animation","_bounds","_system","_resolvePendingSourceKey","VIEWPORT_RETRY_DELAY_MS","useCaptureDestinationBoundary","sharedBoundTag","enabled","id","group","currentScreenKey","expectedSourceScreenKey","measureBoundary","animating","AnimationStore","getValue","closing","system","SystemStore","getBag","blockLifecycleStart","unblockLifecycleStart","actions","isBlockingLifecycleStart","useSharedValue","retryToken","ensureLifecycleStartBlocked","get","set","releaseLifecycleStartBlock","cancelAnimation","scheduleViewportRetry","withDelay","withTiming","duration","useAnimatedReaction","retryTick","resolvedSourceKey","resolvePendingSourceKey","hasAttachableSourceLink","BoundStore","link","getPending","hasSource","hasDestinationLink","hasDestination","shouldBlock","getActiveId","String","intent","useLayoutEffect","runOnUI","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-capture-destination-boundary.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAQA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,wBAAA,GAAAL,OAAA;AAGA,MAAMM,uBA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,CAAC,CAAC;IAC7Bd,eAAe,CAAC;MAAEqC,MAAM,EAAE;IAAuB,CAAC,CAAC;IAEnD,IAAIT,kBAAU,CAACC,IAAI,CAACI,cAAc,CAACvC,cAAc,EAAEI,gBAAgB,CAAC,EAAE;MACrEmB,0BAA0B,CAAC,CAAC;MAC5B;IACD;IAEAE,qBAAqB,CAAC,CAAC;EACxB,CACD,CAAC;EAED,IAAAmB,sBAAe,EAAC,MAAM;IACrB,OAAO,MAAM;MACZ,IAAAC,8BAAO,EAAC,MAAM;QACb,SAAS;;QACT,IAAArB,sCAAe,EAACL,UAAU,CAAC;QAE3B,IAAI,CAACF,wBAAwB,CAACI,GAAG,CAAC,CAAC,EAAE;UACpC;QACD;QAEAN,qBAAqB,CAAC,CAAC;QACvBE,wBAAwB,CAACK,GAAG,CAAC,CAAC,CAAC;MAChC,CAAC,CAAC,CAAC,CAAC;IACL,CAAC;EACF,CAAC,EAAE,CAACL,wBAAwB,EAAEE,UAAU,EAAEJ,qBAAqB,CAAC,CAAC;AAClE,CAAC;AAAC+B,OAAA,CAAA/C,6BAAA,GAAAA,6BAAA","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useCaptureSourceBoundary = void 0;
|
|
7
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
var _bounds = require("../../../stores/bounds");
|
|
9
|
+
const useCaptureSourceBoundary = params => {
|
|
10
|
+
const {
|
|
11
|
+
enabled,
|
|
12
|
+
id,
|
|
13
|
+
group,
|
|
14
|
+
nextScreenKey,
|
|
15
|
+
measureBoundary
|
|
16
|
+
} = params;
|
|
17
|
+
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
18
|
+
"worklet";
|
|
19
|
+
|
|
20
|
+
if (!enabled || !nextScreenKey) {
|
|
21
|
+
return 0;
|
|
22
|
+
}
|
|
23
|
+
return nextScreenKey;
|
|
24
|
+
}, (captureSignal, previousCaptureSignal) => {
|
|
25
|
+
"worklet";
|
|
26
|
+
|
|
27
|
+
if (!enabled) return;
|
|
28
|
+
if (!nextScreenKey) return;
|
|
29
|
+
if (!captureSignal || captureSignal === previousCaptureSignal) return;
|
|
30
|
+
const currentGroupActiveId = group ? _bounds.BoundStore.group.getActiveId(group) : null;
|
|
31
|
+
if (group && currentGroupActiveId !== String(id)) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
measureBoundary({
|
|
35
|
+
intent: "capture-source"
|
|
36
|
+
});
|
|
37
|
+
}, [enabled, id, group, nextScreenKey, measureBoundary]);
|
|
38
|
+
};
|
|
39
|
+
exports.useCaptureSourceBoundary = useCaptureSourceBoundary;
|
|
40
|
+
//# sourceMappingURL=use-capture-source-boundary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_bounds","useCaptureSourceBoundary","params","enabled","id","group","nextScreenKey","measureBoundary","useAnimatedReaction","captureSignal","previousCaptureSignal","currentGroupActiveId","BoundStore","getActiveId","String","intent","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAGO,MAAME,wBAAwB,GAAIC,MAOxC,IAAK;EACL,MAAM;IAAEC,OAAO;IAAEC,EAAE;IAAEC,KAAK;IAAEC,aAAa;IAAEC;EAAgB,CAAC,GAAGL,MAAM;EAErE,IAAAM,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,IAAI,CAACL,OAAO,IAAI,CAACG,aAAa,EAAE;MAC/B,OAAO,CAAC;IACT;IAEA,OAAOA,aAAa;EACrB,CAAC,EACD,CAACG,aAAa,EAAEC,qBAAqB,KAAK;IACzC,SAAS;;IACT,IAAI,CAACP,OAAO,EAAE;IACd,IAAI,CAACG,aAAa,EAAE;IACpB,IAAI,CAACG,aAAa,IAAIA,aAAa,KAAKC,qBAAqB,EAAE;IAE/D,MAAMC,oBAAoB,GAAGN,KAAK,GAC/BO,kBAAU,CAACP,KAAK,CAACQ,WAAW,CAACR,KAAK,CAAC,GACnC,IAAI;IAEP,IAAIA,KAAK,IAAIM,oBAAoB,KAAKG,MAAM,CAACV,EAAE,CAAC,EAAE;MACjD;IACD;IAEAG,eAAe,CAAC;MAAEQ,MAAM,EAAE;IAAiB,CAAC,CAAC;EAC9C,CAAC,EACD,CAACZ,OAAO,EAAEC,EAAE,EAAEC,KAAK,EAAEC,aAAa,EAAEC,eAAe,CACpD,CAAC;AACF,CAAC;AAACS,OAAA,CAAAf,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useMeasurer = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
10
|
+
var _bounds = require("../../../stores/bounds");
|
|
11
|
+
var _applyMeasuredBoundsWrites = require("../../../stores/bounds/helpers/apply-measured-bounds-writes");
|
|
12
|
+
var _resolvePendingSourceKey = require("../helpers/resolve-pending-source-key");
|
|
13
|
+
var _measurement = require("./helpers/measurement");
|
|
14
|
+
var _measurementRules = require("./helpers/measurement-rules");
|
|
15
|
+
const useMeasurer = ({
|
|
16
|
+
enabled,
|
|
17
|
+
sharedBoundTag,
|
|
18
|
+
preferredSourceScreenKey,
|
|
19
|
+
currentScreenKey,
|
|
20
|
+
ancestorKeys,
|
|
21
|
+
navigatorKey,
|
|
22
|
+
ancestorNavigatorKeys,
|
|
23
|
+
preparedStyles,
|
|
24
|
+
measuredAnimatedRef
|
|
25
|
+
}) => {
|
|
26
|
+
const {
|
|
27
|
+
width: viewportWidth,
|
|
28
|
+
height: viewportHeight
|
|
29
|
+
} = (0, _reactNative.useWindowDimensions)();
|
|
30
|
+
return (0, _react.useCallback)(({
|
|
31
|
+
intent
|
|
32
|
+
} = {}) => {
|
|
33
|
+
"worklet";
|
|
34
|
+
|
|
35
|
+
if (!enabled) return;
|
|
36
|
+
const intents = (0, _measurementRules.getMeasureIntentFlags)(intent);
|
|
37
|
+
const expectedSourceScreenKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, preferredSourceScreenKey) || undefined;
|
|
38
|
+
const pendingLink = expectedSourceScreenKey ? _bounds.BoundStore.link.getPending(sharedBoundTag, expectedSourceScreenKey) : _bounds.BoundStore.link.getPending(sharedBoundTag);
|
|
39
|
+
const hasPendingLink = pendingLink !== null;
|
|
40
|
+
const hasAttachableSourceLink = expectedSourceScreenKey ? _bounds.BoundStore.link.hasSource(sharedBoundTag, expectedSourceScreenKey) : false;
|
|
41
|
+
const hasSourceLink = _bounds.BoundStore.link.hasSource(sharedBoundTag, currentScreenKey);
|
|
42
|
+
const hasDestinationLink = _bounds.BoundStore.link.hasDestination(sharedBoundTag, currentScreenKey);
|
|
43
|
+
const writePlan = (0, _measurementRules.resolveMeasureWritePlan)({
|
|
44
|
+
intents,
|
|
45
|
+
hasPendingLink,
|
|
46
|
+
hasSourceLink,
|
|
47
|
+
hasDestinationLink,
|
|
48
|
+
hasAttachableSourceLink
|
|
49
|
+
});
|
|
50
|
+
if (!writePlan.writesAny) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const measured = (0, _reactNativeReanimated.measure)(measuredAnimatedRef);
|
|
54
|
+
if (!measured) return;
|
|
55
|
+
const destinationInViewport = !writePlan.wantsDestinationWrite || (0, _measurement.isMeasurementInViewport)(measured, viewportWidth, viewportHeight);
|
|
56
|
+
if (!destinationInViewport && !writePlan.captureSource && !writePlan.refreshSource) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const existingMeasuredEntry = _bounds.BoundStore.entry.getMeasured(sharedBoundTag, currentScreenKey);
|
|
60
|
+
const hasMeasuredEntryChanged = !existingMeasuredEntry || !(0, _measurement.areMeasurementsEqual)(existingMeasuredEntry.bounds, measured);
|
|
61
|
+
(0, _applyMeasuredBoundsWrites.applyMeasuredBoundsWrites)({
|
|
62
|
+
sharedBoundTag,
|
|
63
|
+
currentScreenKey,
|
|
64
|
+
measured,
|
|
65
|
+
preparedStyles,
|
|
66
|
+
ancestorKeys,
|
|
67
|
+
navigatorKey,
|
|
68
|
+
ancestorNavigatorKeys,
|
|
69
|
+
expectedSourceScreenKey,
|
|
70
|
+
shouldWriteEntry: hasMeasuredEntryChanged,
|
|
71
|
+
shouldSetSource: writePlan.captureSource,
|
|
72
|
+
shouldUpdateSource: writePlan.refreshSource && hasMeasuredEntryChanged,
|
|
73
|
+
shouldUpdateDestination: writePlan.refreshDestination && destinationInViewport && hasMeasuredEntryChanged,
|
|
74
|
+
shouldSetDestination: writePlan.completeDestination && destinationInViewport
|
|
75
|
+
});
|
|
76
|
+
}, [enabled, sharedBoundTag, preferredSourceScreenKey, currentScreenKey, ancestorKeys, navigatorKey, ancestorNavigatorKeys, preparedStyles, measuredAnimatedRef, viewportWidth, viewportHeight]);
|
|
77
|
+
};
|
|
78
|
+
exports.useMeasurer = useMeasurer;
|
|
79
|
+
//# sourceMappingURL=use-measurer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_bounds","_applyMeasuredBoundsWrites","_resolvePendingSourceKey","_measurement","_measurementRules","useMeasurer","enabled","sharedBoundTag","preferredSourceScreenKey","currentScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","preparedStyles","measuredAnimatedRef","width","viewportWidth","height","viewportHeight","useWindowDimensions","useCallback","intent","intents","getMeasureIntentFlags","expectedSourceScreenKey","resolvePendingSourceKey","undefined","pendingLink","BoundStore","link","getPending","hasPendingLink","hasAttachableSourceLink","hasSource","hasSourceLink","hasDestinationLink","hasDestination","writePlan","resolveMeasureWritePlan","writesAny","measured","measure","destinationInViewport","wantsDestinationWrite","isMeasurementInViewport","captureSource","refreshSource","existingMeasuredEntry","entry","getMeasured","hasMeasuredEntryChanged","areMeasurementsEqual","bounds","applyMeasuredBoundsWrites","shouldWriteEntry","shouldSetSource","shouldUpdateSource","shouldUpdateDestination","refreshDestination","shouldSetDestination","completeDestination","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-measurer.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAKA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,0BAAA,GAAAJ,OAAA;AACA,IAAAK,wBAAA,GAAAL,OAAA;AAEA,IAAAM,YAAA,GAAAN,OAAA;AAIA,IAAAO,iBAAA,GAAAP,OAAA;AAiBO,MAAMQ,WAAW,GAAGA,CAAC;EAC3BC,OAAO;EACPC,cAAc;EACdC,wBAAwB;EACxBC,gBAAgB;EAChBC,YAAY;EACZC,YAAY;EACZC,qBAAqB;EACrBC,cAAc;EACdC;AACkB,CAAC,KAAK;EACxB,MAAM;IAAEC,KAAK,EAAEC,aAAa;IAAEC,MAAM,EAAEC;EAAe,CAAC,GACrD,IAAAC,gCAAmB,EAAC,CAAC;EAEtB,OAAO,IAAAC,kBAAW,EACjB,CAAC;IAAEC;EAAsB,CAAC,GAAG,CAAC,CAAC,KAAK;IACnC,SAAS;;IACT,IAAI,CAACf,OAAO,EAAE;IAEd,MAAMgB,OAAO,GAAG,IAAAC,uCAAqB,EAACF,MAAM,CAAC;IAE7C,MAAMG,uBAA2C,GAChD,IAAAC,gDAAuB,EAAClB,cAAc,EAAEC,wBAAwB,CAAC,IACjEkB,SAAS;IAEV,MAAMC,WAAW,GAAGH,uBAAuB,GACxCI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