react-native-screen-transitions 3.6.0-alpha.1 → 3.6.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/component-stack/components/component-screen.js +1 -7
- package/lib/commonjs/component-stack/components/component-screen.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +27 -34
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +4 -4
- 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-initial-destination-measurement.js +17 -19
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +27 -7
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +23 -51
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +33 -40
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/index.js +3 -1
- package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js +75 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.js → utils/measured-bounds.js} +15 -2
- package/lib/commonjs/shared/components/create-boundary-component/utils/measured-bounds.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js +103 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js +52 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js.map +1 -0
- package/lib/commonjs/shared/components/native-screen.js +2 -13
- package/lib/commonjs/shared/components/native-screen.js.map +1 -1
- package/lib/commonjs/shared/constants.js +2 -7
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +35 -0
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -0
- package/lib/commonjs/shared/providers/register-bounds.provider.js +48 -55
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +1 -10
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +1 -6
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js +9 -2
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js +19 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js +2 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js +18 -2
- package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js +1 -5
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +1 -4
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +125 -0
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/index.js +6 -12
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +13 -21
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/entries.js +49 -9
- package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +143 -82
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +17 -43
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js +26 -3
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/commonjs/shared/stores/gesture.store.js +2 -0
- package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
- package/lib/commonjs/shared/types/gesture.types.js +2 -2
- package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +2 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +6 -5
- 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 +21 -8
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bounds-pair-key.js +23 -0
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +91 -199
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +15 -2
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +155 -14
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js +20 -19
- package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -1
- package/lib/module/component-stack/components/component-screen.js +2 -8
- package/lib/module/component-stack/components/component-screen.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +27 -34
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +4 -4
- 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-initial-destination-measurement.js +18 -20
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +28 -8
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +22 -50
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +33 -40
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/index.js +3 -1
- package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js +70 -0
- package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.js → utils/measured-bounds.js} +13 -1
- package/lib/module/shared/components/create-boundary-component/utils/measured-bounds.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js +98 -0
- package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/utils/source-signals.js +47 -0
- package/lib/module/shared/components/create-boundary-component/utils/source-signals.js.map +1 -0
- package/lib/module/shared/components/native-screen.js +3 -14
- package/lib/module/shared/components/native-screen.js.map +1 -1
- package/lib/module/shared/constants.js +1 -6
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js +30 -0
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -0
- package/lib/module/shared/providers/register-bounds.provider.js +48 -55
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +1 -10
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js +2 -2
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js +10 -3
- package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-release.js +20 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-release.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js +2 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js +3 -3
- package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js +3 -3
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +3 -3
- package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/physics.js +15 -0
- package/lib/module/shared/providers/screen/gestures/shared/physics.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/policy.js +3 -3
- package/lib/module/shared/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +1 -4
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +105 -0
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/index.js +7 -13
- package/lib/module/shared/stores/bounds/index.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/clear.js +14 -22
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/entries.js +49 -9
- package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +139 -80
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +17 -43
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/state.js +25 -2
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/module/shared/stores/gesture.store.js +2 -0
- package/lib/module/shared/stores/gesture.store.js.map +1 -1
- package/lib/module/shared/types/animation.types.js +0 -4
- package/lib/module/shared/types/animation.types.js.map +1 -1
- package/lib/module/shared/types/gesture.types.js +0 -1
- package/lib/module/shared/types/gesture.types.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +2 -1
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +6 -5
- 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 +21 -8
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/resolve-bounds-pair-key.js +18 -0
- package/lib/module/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js +90 -198
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js +14 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js +144 -12
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js +20 -19
- package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -1
- package/lib/typescript/component-stack/components/component-screen.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts +1 -0
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts +1 -1
- 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-initial-destination-measurement.d.ts +5 -4
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts +6 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts +5 -4
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +7 -7
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
- 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 +11 -7
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts +10 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.d.ts → utils/measured-bounds.d.ts} +3 -2
- package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts +22 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts +16 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts.map +1 -0
- package/lib/typescript/shared/components/native-screen.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +0 -5
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +1 -1
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts +21 -0
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -0
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts +0 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts +0 -10
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +18 -0
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/index.d.ts +6 -12
- 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/entries.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts +13 -10
- package/lib/typescript/shared/stores/bounds/internals/links.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 +26 -5
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +14 -7
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/stores/gesture.store.d.ts +1 -0
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +0 -18
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +8 -1
- package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +1 -1
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
- 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/resolve-bounds-pair-key.d.ts +4 -0
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bounds-pair-key.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts +14 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +48 -7
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +2 -3
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts +3 -2
- package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/component-stack/components/component-screen.tsx +3 -11
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +30 -27
- package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +5 -5
- package/src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts +25 -24
- package/src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts +41 -11
- package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +49 -64
- package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +44 -83
- package/src/shared/components/create-boundary-component/index.tsx +3 -1
- package/src/shared/components/create-boundary-component/types.ts +13 -11
- package/src/shared/components/create-boundary-component/utils/destination-signals.ts +129 -0
- package/src/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.ts → utils/measured-bounds.ts} +25 -1
- package/src/shared/components/create-boundary-component/utils/refresh-signals.ts +164 -0
- package/src/shared/components/create-boundary-component/utils/source-signals.ts +72 -0
- package/src/shared/components/native-screen.tsx +3 -12
- package/src/shared/constants.ts +1 -6
- package/src/shared/index.ts +0 -3
- package/src/shared/providers/helpers/measured-bounds-writes.ts +67 -0
- package/src/shared/providers/register-bounds.provider.tsx +68 -91
- package/src/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +0 -14
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +1 -2
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +1 -4
- package/src/shared/providers/screen/gestures/pan/pan-activation.ts +4 -1
- package/src/shared/providers/screen/gestures/pan/pan-lifecycle.ts +18 -2
- package/src/shared/providers/screen/gestures/pan/pan-release.ts +33 -0
- package/src/shared/providers/screen/gestures/pan/pan-reset.ts +3 -0
- package/src/shared/providers/screen/gestures/pan/use-pan-behavior.ts +9 -6
- package/src/shared/providers/screen/gestures/pinch/pinch-activation.ts +5 -2
- package/src/shared/providers/screen/gestures/pinch/pinch-lifecycle.ts +1 -0
- package/src/shared/providers/screen/gestures/pinch/use-pinch-behavior.ts +9 -6
- package/src/shared/providers/screen/gestures/shared/physics.ts +25 -0
- package/src/shared/providers/screen/gestures/shared/policy.ts +3 -5
- package/src/shared/providers/screen/gestures/types.ts +2 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +0 -3
- package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +161 -0
- package/src/shared/stores/bounds/index.ts +10 -20
- package/src/shared/stores/bounds/internals/clear.ts +17 -41
- package/src/shared/stores/bounds/internals/entries.ts +56 -13
- package/src/shared/stores/bounds/internals/links.ts +222 -113
- package/src/shared/stores/bounds/internals/resolver.ts +23 -87
- package/src/shared/stores/bounds/internals/state.ts +27 -5
- package/src/shared/stores/bounds/types.ts +17 -7
- package/src/shared/stores/gesture.store.ts +3 -0
- package/src/shared/types/animation.types.ts +0 -23
- package/src/shared/types/gesture.types.ts +8 -2
- package/src/shared/types/index.ts +0 -4
- package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +1 -0
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +6 -6
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +20 -11
- package/src/shared/utils/bounds/helpers/resolve-bounds-pair-key.ts +22 -0
- package/src/shared/utils/bounds/navigation/reveal/build.ts +153 -297
- package/src/shared/utils/bounds/navigation/reveal/config.ts +20 -1
- package/src/shared/utils/bounds/navigation/reveal/math.ts +234 -18
- package/src/shared/utils/bounds/types/options.ts +2 -3
- package/src/shared/utils/navigation/resolve-scene-neighbors.ts +36 -23
- package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +0 -43
- package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +0 -17
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +0 -28
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +0 -75
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -20
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +0 -16
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +0 -1
- package/lib/commonjs/shared/providers/layout-anchor.provider.js +0 -86
- package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +0 -49
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js +0 -25
- package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js +0 -30
- package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js +0 -79
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js +0 -13
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js +0 -30
- package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/internals/groups.js +0 -102
- package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +0 -38
- package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +0 -12
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +0 -23
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +0 -68
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -15
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +0 -12
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +0 -1
- package/lib/module/shared/providers/layout-anchor.provider.js +0 -80
- package/lib/module/shared/providers/layout-anchor.provider.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +0 -42
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/find-latest.js +0 -19
- package/lib/module/shared/stores/bounds/helpers/find-latest.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/groups.helpers.js +0 -23
- package/lib/module/shared/stores/bounds/helpers/groups.helpers.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js +0 -69
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/matching.js +0 -9
- package/lib/module/shared/stores/bounds/helpers/matching.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js +0 -24
- package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js.map +0 -1
- package/lib/module/shared/stores/bounds/internals/groups.js +0 -95
- package/lib/module/shared/stores/bounds/internals/groups.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts +0 -15
- package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts +0 -2
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts +0 -22
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +0 -29
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +0 -3
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +0 -8
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +0 -1
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +0 -39
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts +0 -5
- package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts +0 -3
- package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts +0 -10
- package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts +0 -14
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +0 -3
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts +0 -5
- package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +0 -16
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +0 -1
- package/src/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.ts +0 -83
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +0 -20
- package/src/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts +0 -48
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +0 -101
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +0 -25
- package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +0 -14
- package/src/shared/providers/layout-anchor.provider.tsx +0 -112
- package/src/shared/stores/bounds/helpers/entries.helpers.ts +0 -55
- package/src/shared/stores/bounds/helpers/find-latest.ts +0 -22
- package/src/shared/stores/bounds/helpers/groups.helpers.ts +0 -27
- package/src/shared/stores/bounds/helpers/link.helpers.ts +0 -131
- package/src/shared/stores/bounds/helpers/matching.ts +0 -11
- package/src/shared/stores/bounds/helpers/tag-state.helpers.ts +0 -24
- package/src/shared/stores/bounds/internals/groups.ts +0 -116
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gesture.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/gesture.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAC5B,YAAY,GACZ,qBAAqB,GACrB,UAAU,GACV,mBAAmB,GACnB,eAAe,CAAC;AAEnB,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAChD,mBAAmB,EACnB,eAAe,CACf,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,WAAW,CAAC;AAE7D,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,GAAG,qBAAqB,CAAC;AAE3E,MAAM,MAAM,aAAa,GAAG,2BAA2B,GAAG,qBAAqB,CAAC;AAEhF,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,GAAG,UAAU,CAAC;AAEjE,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,UAAU,CAAC;AAEpD,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,YAAY,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MAAM,EAAE,aAAa,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,SAAS,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAE9C,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { FALSE, TRUE } from "../constants";
|
|
2
|
-
export type { AnimatedViewStyle, AnimationConfig, ScreenInterpolationProps, ScreenStyleInterpolator,
|
|
2
|
+
export type { AnimatedViewStyle, AnimationConfig, ScreenInterpolationProps, ScreenStyleInterpolator, ScreenTransitionOptions, ScreenTransitionState, TransitionInterpolatedStyle, TransitionInterpolatorOptions, TransitionSlotStyle, TransitionSpec, } from "./animation.types";
|
|
3
3
|
export type { BoundsAccessor, BoundsMethod, BoundsNavigationAccessor, BoundsNavigationRevealStyle, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, } from "./bounds.types";
|
|
4
4
|
export type { ActivationArea, GestureActivationArea, GestureDirection, GestureValues, PanGestureDirection, PinchGestureDirection, SideActivation, } from "./gesture.types";
|
|
5
5
|
export type { OverlayProps } from "./overlay.types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,MAAM,EACN,SAAS,EACT,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,GACb,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-bounds-accessor-core.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,wBAAwB,EACxB,qBAAqB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,KAAK,mBAAmB,CAAC,CAAC,SAAS,aAAa,IAAI,mBAAmB,CAAC,CAAC,CAAC,GACzE,qBAAqB,CAAC;AAEvB,KAAK,aAAa,GAAG,CAAC,CAAC,SAAS,aAAa,EAC5C,OAAO,EAAE,CAAC,KACN,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAE5B,KAAK,kBAAkB,GAAG,aAAa,GACtC,UAAU,CAAC,OAAO,kBAAkB,CAAC,GACrC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAExC,KAAK,wBAAwB,CAAC,CAAC,SAAS,aAAa,IAAI;IACxD,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAC/B,KAAK,EAAE,wBAAwB,CAAC;IAChC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CACxB,CAAC;AAEF,KAAK,8BAA8B,GAAG;IACrC,QAAQ,EAAE,MAAM,wBAAwB,CAAC;IACzC,YAAY,CAAC,EAAE,CAAC,CAAC,SAAS,aAAa,EACtC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAAC,KAC/B,IAAI,CAAC;CACV,CAAC;
|
|
1
|
+
{"version":3,"file":"create-bounds-accessor-core.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,wBAAwB,EACxB,qBAAqB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG5D,KAAK,mBAAmB,CAAC,CAAC,SAAS,aAAa,IAAI,mBAAmB,CAAC,CAAC,CAAC,GACzE,qBAAqB,CAAC;AAEvB,KAAK,aAAa,GAAG,CAAC,CAAC,SAAS,aAAa,EAC5C,OAAO,EAAE,CAAC,KACN,mBAAmB,CAAC,CAAC,CAAC,CAAC;AAE5B,KAAK,kBAAkB,GAAG,aAAa,GACtC,UAAU,CAAC,OAAO,kBAAkB,CAAC,GACrC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAExC,KAAK,wBAAwB,CAAC,CAAC,SAAS,aAAa,IAAI;IACxD,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAC/B,KAAK,EAAE,wBAAwB,CAAC;IAChC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CACxB,CAAC;AAEF,KAAK,8BAA8B,GAAG;IACrC,QAAQ,EAAE,MAAM,wBAAwB,CAAC;IACzC,YAAY,CAAC,EAAE,CAAC,CAAC,SAAS,aAAa,EACtC,MAAM,EAAE,wBAAwB,CAAC,CAAC,CAAC,KAC/B,IAAI,CAAC;CACV,CAAC;AA2GF,eAAO,MAAM,wBAAwB,GACpC,QAAQ,8BAA8B,KACpC,kBAmBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-link-accessor.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/create-link-accessor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,aAAa,EAGb,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EACX,wBAAwB,EACxB,UAAU,EAEV,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,OAAO,EAAuB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"create-link-accessor.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/create-link-accessor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,aAAa,EAGb,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EACX,wBAAwB,EACxB,UAAU,EAEV,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,OAAO,EAAuB,MAAM,kBAAkB,CAAC;AAIrE,KAAK,QAAQ,GAAG,MAAM,wBAAwB,CAAC;AAE/C,MAAM,MAAM,YAAY,GAAG;IAC1B,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,aAAa,GAAG,IAAI,CAAC;IAClE,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,aAAa,GAAG,IAAI,CAAC;IAClE,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,UAAU,GAAG,IAAI,CAAC;CAC7C,CAAC;AAcF,eAAO,MAAM,kBAAkB,GAAI,UAAU,QAAQ,KAAG,YAsEvD,CAAC"}
|
|
@@ -8,6 +8,6 @@ type ComputeResolvedBoundsStylesParams<T extends BoundsOptions> = {
|
|
|
8
8
|
resolvedPair?: ResolvedTransitionPair;
|
|
9
9
|
syncGroupActiveId?: boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare const prepareBoundStyles: <T extends BoundsOptions>({ props, options, resolvedPair, }: ComputeResolvedBoundsStylesParams<T>) => BoundsOptionsResult<T>;
|
|
11
|
+
export declare const prepareBoundStyles: <T extends BoundsOptions>({ props, options, resolvedPair, syncGroupActiveId, }: ComputeResolvedBoundsStylesParams<T>) => BoundsOptionsResult<T>;
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=prepare-bound-styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-bound-styles.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/prepare-bound-styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prepare-bound-styles.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/prepare-bound-styles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,OAAO,KAAK,EAEX,aAAa,EACb,mBAAmB,EACnB,MAAM,kBAAkB,CAAC;AAK1B,KAAK,qBAAqB,GAAG,wBAAwB,CAAC;AAEtD,KAAK,iCAAiC,CAAC,CAAC,SAAS,aAAa,IAAI;IACjE,KAAK,EAAE,qBAAqB,CAAC;IAC7B,OAAO,EAAE,CAAC,CAAC;IACX,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAmDF,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,aAAa,EAAE,sDAKzD,iCAAiC,CAAC,CAAC,CAAC,KAAG,mBAAmB,CAAC,CAAC,CA8B9D,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ScreenPairKey } from "../../../stores/bounds/types";
|
|
2
|
+
import type { BoundsInterpolationProps } from "../../../types/bounds.types";
|
|
3
|
+
export declare const resolveBoundsPairKey: (props: BoundsInterpolationProps) => ScreenPairKey | null;
|
|
4
|
+
//# sourceMappingURL=resolve-bounds-pair-key.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-bounds-pair-key.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/resolve-bounds-pair-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAE5E,eAAO,MAAM,oBAAoB,GAChC,OAAO,wBAAwB,KAC7B,aAAa,GAAG,IAelB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/build.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/build.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAMhF,wBAAgB,iBAAiB,CAAC,EACjC,GAAG,EACH,KAAK,GACL,EAAE,uBAAuB,GAAG,uBAAuB,CAoZnD"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
export declare const REVEAL_BORDER_RADIUS: number;
|
|
2
|
+
export declare const REVEAL_USES_TRANSFORM_MASK: boolean;
|
|
2
3
|
export declare const DRAG_DIRECTIONAL_SCALE_MIN = 0.25;
|
|
3
4
|
export declare const DRAG_DIRECTIONAL_SCALE_MAX = 1.06;
|
|
4
5
|
export declare const DRAG_DIRECTIONAL_SCALE_EXPONENT = 2;
|
|
5
6
|
export declare const DRAG_MASK_HEIGHT_COLLAPSE_END = 0.7;
|
|
6
7
|
export declare const HORIZONTAL_DRAG_MASK_COLLAPSE_SCALE = 0.5;
|
|
7
|
-
export declare const DISMISS_SCALE_ORBIT_DEPTH = 0.
|
|
8
|
+
export declare const DISMISS_SCALE_ORBIT_DEPTH = 0.5;
|
|
8
9
|
export declare const CLOSE_SOURCE_HANDOFF_PROGRESS = 0.25;
|
|
10
|
+
export declare const IDENTITY_DRAG_SCALE_OUTPUT: readonly [1, 1];
|
|
11
|
+
export declare const ZERO_TO_ONE_RANGE: readonly [0, 1];
|
|
12
|
+
export declare const CONTENT_ENTERING_OPACITY_RANGE: readonly [0, 0.25];
|
|
13
|
+
export declare const CONTENT_CLOSING_OPACITY_RANGE: readonly [0, 0.25, 1];
|
|
14
|
+
export declare const CONTENT_ENTERING_OPACITY_OUTPUT: readonly [0, 1];
|
|
15
|
+
export declare const CONTENT_CLOSING_OPACITY_OUTPUT: readonly [0, 1, 1];
|
|
16
|
+
export declare const CONTENT_SHADOW_OPACITY_OUTPUT: readonly [0, 0.25];
|
|
17
|
+
export declare const UNFOCUSED_ELEMENT_OPACITY_OUTPUT: readonly [1, 0];
|
|
18
|
+
export declare const REVEAL_SHADOW_OFFSET: {
|
|
19
|
+
readonly width: 0;
|
|
20
|
+
readonly height: 2;
|
|
21
|
+
};
|
|
9
22
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,QAI/B,CAAC;AAEH,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,+BAA+B,IAAI,CAAC;AACjD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,mCAAmC,MAAM,CAAC;AACvD,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAC7C,eAAO,MAAM,6BAA6B,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,QAI/B,CAAC;AAEH,eAAO,MAAM,0BAA0B,SAA4B,CAAC;AAEpE,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,+BAA+B,IAAI,CAAC;AACjD,eAAO,MAAM,6BAA6B,MAAM,CAAC;AACjD,eAAO,MAAM,mCAAmC,MAAM,CAAC;AACvD,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAC7C,eAAO,MAAM,6BAA6B,OAAO,CAAC;AAElD,eAAO,MAAM,0BAA0B,iBAAkB,CAAC;AAC1D,eAAO,MAAM,iBAAiB,iBAAkB,CAAC;AACjD,eAAO,MAAM,8BAA8B,oBAGjC,CAAC;AACX,eAAO,MAAM,6BAA6B,uBAIhC,CAAC;AACX,eAAO,MAAM,+BAA+B,iBAAkB,CAAC;AAC/D,eAAO,MAAM,8BAA8B,oBAAqB,CAAC;AACjE,eAAO,MAAM,6BAA6B,oBAAqB,CAAC;AAChE,eAAO,MAAM,gCAAgC,iBAAkB,CAAC;AAChE,eAAO,MAAM,oBAAoB;;;CAAmC,CAAC"}
|
|
@@ -1,8 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type { MeasuredDimensions } from "react-native-reanimated";
|
|
2
|
+
import type { Layout } from "../../../../types/screen.types";
|
|
3
|
+
export declare function mixUnit(from: number, to: number, progress: number): number;
|
|
4
|
+
export declare function interpolateClamped(value: number, inputStart: number, inputEnd: number, outputStart: number, outputEnd: number): number;
|
|
5
|
+
export declare function resolveSafeScale(scale: number): number;
|
|
6
|
+
export declare const resolveUnitDragTranslation: (translation: number, dimension: number) => number;
|
|
7
|
+
export declare function resolveRevealDirectionalDragScale(normalized: number, inverted: boolean): number;
|
|
8
|
+
export declare function resolveUniformScale({ sourceWidth, sourceHeight, destinationWidth, destinationHeight, }: {
|
|
9
|
+
sourceWidth: number;
|
|
10
|
+
sourceHeight: number;
|
|
11
|
+
destinationWidth: number;
|
|
12
|
+
destinationHeight: number;
|
|
13
|
+
}): number;
|
|
14
|
+
export declare function resolveRevealGestureHandoff(rawDrag: number): {
|
|
15
|
+
gestureSensitivity: number;
|
|
16
|
+
gestureReleaseVelocityScale: number;
|
|
17
|
+
};
|
|
18
|
+
export declare function resolveDismissScaleHandoff({ progress, releaseScale, targetScale, velocity, }: {
|
|
19
|
+
progress: number;
|
|
20
|
+
releaseScale: number;
|
|
21
|
+
targetScale: number;
|
|
22
|
+
velocity: number;
|
|
23
|
+
}): number;
|
|
24
|
+
export declare function resolveRevealContentBaseTransform({ progress, sourceBounds, destinationBounds, screenLayout, }: {
|
|
25
|
+
progress: number;
|
|
26
|
+
sourceBounds: MeasuredDimensions;
|
|
27
|
+
destinationBounds: MeasuredDimensions;
|
|
28
|
+
screenLayout: Layout;
|
|
29
|
+
}): {
|
|
30
|
+
translateX: number;
|
|
31
|
+
translateY: number;
|
|
32
|
+
scale: number;
|
|
33
|
+
};
|
|
34
|
+
export declare function resolveTrackedSourceElementTransform({ sourceBounds, destinationBounds, contentTranslateX, contentTranslateY, contentScale, parentScale, screenWidth, screenHeight, }: {
|
|
35
|
+
sourceBounds: MeasuredDimensions;
|
|
36
|
+
destinationBounds: MeasuredDimensions;
|
|
37
|
+
contentTranslateX: number;
|
|
38
|
+
contentTranslateY: number;
|
|
39
|
+
contentScale: number;
|
|
40
|
+
parentScale: number;
|
|
41
|
+
screenWidth: number;
|
|
42
|
+
screenHeight: number;
|
|
43
|
+
}): {
|
|
44
|
+
translateX: number;
|
|
45
|
+
translateY: number;
|
|
46
|
+
scaleX: number;
|
|
47
|
+
scaleY: number;
|
|
48
|
+
};
|
|
8
49
|
//# sourceMappingURL=math.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/math.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC,
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/math.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAc7D,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAGjE;AAED,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,UAQjB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,UAG7C;AAED,eAAO,MAAM,0BAA0B,GACtC,aAAa,MAAM,EACnB,WAAW,MAAM,WAejB,CAAC;AAEF,wBAAgB,iC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 +53,8 @@ export type BoundsOptions = {
|
|
|
53
53
|
id: BoundId;
|
|
54
54
|
/**
|
|
55
55
|
* Optional group name for collection/list scenarios.
|
|
56
|
-
* When provided,
|
|
57
|
-
*
|
|
58
|
-
* Without this, `id` is used directly as the tag (backward compatible).
|
|
56
|
+
* When provided, concrete boundary entries use `group:id`, while transition
|
|
57
|
+
* links stay keyed by the member `id` inside the active screen pair.
|
|
59
58
|
*/
|
|
60
59
|
group?: string;
|
|
61
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/types/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtC,MAAM,MAAM,YAAY,GACrB,YAAY,GACZ,KAAK,GACL,aAAa,GACb,SAAS,GACT,QAAQ,GACR,UAAU,GACV,eAAe,GACf,QAAQ,GACR,gBAAgB,CAAC;AAEpB,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAE3D,KAAK,YAAY,GAAG,OAAO,GAAG,YAAY,GAAG,kBAAkB,CAAC;AAEhE,KAAK,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG;IACjC,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,QAAQ,EA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;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAEpC;;;;OAIG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAEtC;;;OAGG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACd,CAAC"}
|
|
@@ -10,8 +10,9 @@ type IsRouteClosing = (routeKey: string) => boolean;
|
|
|
10
10
|
* visually closing.
|
|
11
11
|
*
|
|
12
12
|
* Rules:
|
|
13
|
-
* - Closing scenes
|
|
14
|
-
*
|
|
13
|
+
* - Closing scenes keep their previous descriptor so their original pair can
|
|
14
|
+
* keep resolving while they remain mounted, but they never receive a next
|
|
15
|
+
* descriptor.
|
|
15
16
|
* - Non-closing scenes skip over closing neighbors to find the actual active
|
|
16
17
|
* neighbor.
|
|
17
18
|
* - If there is no non-closing neighbor above/below, we fall back to the first
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-scene-neighbors.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/navigation/resolve-scene-neighbors.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IACrB,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,cAAc,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"resolve-scene-neighbors.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/navigation/resolve-scene-neighbors.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IACrB,KAAK,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACpB;AAED,KAAK,cAAc,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;AAyBpD;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,YAAY,EAC3D,MAAM,EAAE,CAAC,EAAE,EACX,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,cAAc,GAC5B;IACF,kBAAkB,EAAE,CAAC,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IAChD,cAAc,EAAE,CAAC,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;CAC5C,CAmDA"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
|
-
import { StyleSheet
|
|
3
|
-
import Animated, {
|
|
4
|
-
useAnimatedProps,
|
|
5
|
-
useAnimatedRef,
|
|
6
|
-
} from "react-native-reanimated";
|
|
7
|
-
import { LayoutAnchorProvider } from "../../shared/providers/layout-anchor.provider";
|
|
2
|
+
import { StyleSheet } from "react-native";
|
|
3
|
+
import Animated, { useAnimatedProps } from "react-native-reanimated";
|
|
8
4
|
import { AnimationStore } from "../../shared/stores/animation.store";
|
|
9
5
|
|
|
10
6
|
interface ScreenProps {
|
|
@@ -16,7 +12,6 @@ const POINT_BOX_NONE = "box-none" as const;
|
|
|
16
12
|
|
|
17
13
|
export const ComponentScreen = ({ routeKey, children }: ScreenProps) => {
|
|
18
14
|
const sceneClosing = AnimationStore.getValue(routeKey, "closing");
|
|
19
|
-
const screenRef = useAnimatedRef<View>();
|
|
20
15
|
|
|
21
16
|
const animatedProps = useAnimatedProps(() => {
|
|
22
17
|
return {
|
|
@@ -28,13 +23,10 @@ export const ComponentScreen = ({ routeKey, children }: ScreenProps) => {
|
|
|
28
23
|
|
|
29
24
|
return (
|
|
30
25
|
<ComponentScreenComponent
|
|
31
|
-
ref={screenRef}
|
|
32
26
|
style={StyleSheet.absoluteFill}
|
|
33
27
|
animatedProps={animatedProps}
|
|
34
28
|
>
|
|
35
|
-
|
|
36
|
-
{children}
|
|
37
|
-
</LayoutAnchorProvider>
|
|
29
|
+
{children}
|
|
38
30
|
</ComponentScreenComponent>
|
|
39
31
|
);
|
|
40
32
|
};
|
|
@@ -15,7 +15,7 @@ import Animated, {
|
|
|
15
15
|
import { NO_STYLES } from "../../constants";
|
|
16
16
|
import { useDescriptorDerivations } from "../../providers/screen/descriptors";
|
|
17
17
|
import { useScreenStyles } from "../../providers/screen/styles";
|
|
18
|
-
import {
|
|
18
|
+
import { createPendingPairKey } from "../../stores/bounds/helpers/link-pairs.helpers";
|
|
19
19
|
import { prepareStyleForBounds } from "../../utils/bounds/helpers/styles/styles";
|
|
20
20
|
import { useBoundaryPresence } from "./hooks/use-boundary-presence";
|
|
21
21
|
import { useInitialDestinationMeasurement } from "./hooks/use-initial-destination-measurement";
|
|
@@ -27,17 +27,17 @@ import {
|
|
|
27
27
|
useBoundaryOwner,
|
|
28
28
|
} from "./providers/boundary-owner.provider";
|
|
29
29
|
import type { BoundaryComponentProps, BoundaryConfigProps } from "./types";
|
|
30
|
-
import { buildBoundaryMatchKey } from "./utils/build-boundary-match-key";
|
|
31
30
|
|
|
32
31
|
interface CreateBoundaryComponentOptions {
|
|
33
32
|
alreadyAnimated?: boolean;
|
|
33
|
+
shouldAutoMeasure?: boolean;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export function createBoundaryComponent<P extends object>(
|
|
37
37
|
Wrapped: ComponentType<P>,
|
|
38
38
|
options: CreateBoundaryComponentOptions = {},
|
|
39
39
|
) {
|
|
40
|
-
const { alreadyAnimated = false } = options;
|
|
40
|
+
const { alreadyAnimated = false, shouldAutoMeasure = false } = options;
|
|
41
41
|
const AnimatedComponent = alreadyAnimated
|
|
42
42
|
? Wrapped
|
|
43
43
|
: Animated.createAnimatedComponent(Wrapped);
|
|
@@ -60,12 +60,14 @@ export function createBoundaryComponent<P extends object>(
|
|
|
60
60
|
...rest
|
|
61
61
|
} = props as any;
|
|
62
62
|
|
|
63
|
-
const
|
|
63
|
+
const linkId = String(id);
|
|
64
|
+
const entryTag = group ? `${group}:${linkId}` : linkId;
|
|
64
65
|
|
|
65
66
|
const {
|
|
66
67
|
previousScreenKey: preferredSourceScreenKey,
|
|
67
68
|
currentScreenKey,
|
|
68
69
|
nextScreenKey,
|
|
70
|
+
ancestorKeys,
|
|
69
71
|
hasConfiguredInterpolator,
|
|
70
72
|
} = useDescriptorDerivations();
|
|
71
73
|
|
|
@@ -97,12 +99,12 @@ export function createBoundaryComponent<P extends object>(
|
|
|
97
99
|
|
|
98
100
|
const associatedStyles = useAnimatedStyle(() => {
|
|
99
101
|
"worklet";
|
|
100
|
-
return stylesMap.get()[
|
|
102
|
+
return stylesMap.get()[entryTag]?.style ?? NO_STYLES;
|
|
101
103
|
});
|
|
102
104
|
|
|
103
105
|
const associatedStackingStyles = useAnimatedStyle(() => {
|
|
104
106
|
"worklet";
|
|
105
|
-
const baseStyle = stylesMap.get()[
|
|
107
|
+
const baseStyle = stylesMap.get()[entryTag]?.style;
|
|
106
108
|
const zIndex = baseStyle?.zIndex ?? 0;
|
|
107
109
|
const elevation = baseStyle?.elevation ?? 0;
|
|
108
110
|
|
|
@@ -123,8 +125,9 @@ export function createBoundaryComponent<P extends object>(
|
|
|
123
125
|
|
|
124
126
|
const measureBoundary = useMeasurer({
|
|
125
127
|
enabled,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
+
entryTag,
|
|
129
|
+
linkId,
|
|
130
|
+
group,
|
|
128
131
|
currentScreenKey,
|
|
129
132
|
preparedStyles,
|
|
130
133
|
measuredAnimatedRef: measuredRef,
|
|
@@ -136,57 +139,57 @@ export function createBoundaryComponent<P extends object>(
|
|
|
136
139
|
// matching can resolve across concrete screen keys.
|
|
137
140
|
useBoundaryPresence({
|
|
138
141
|
enabled: runtimeEnabled,
|
|
139
|
-
|
|
142
|
+
entryTag,
|
|
140
143
|
currentScreenKey,
|
|
141
144
|
boundaryConfig,
|
|
142
145
|
});
|
|
143
146
|
|
|
144
|
-
|
|
145
|
-
|
|
147
|
+
const shouldPassivelyMeasureSource =
|
|
148
|
+
shouldAutoMeasure && typeof onPress !== "function";
|
|
149
|
+
|
|
146
150
|
useInitialSourceMeasurement({
|
|
147
151
|
enabled: runtimeEnabled,
|
|
148
152
|
nextScreenKey,
|
|
149
153
|
measureBoundary,
|
|
154
|
+
currentScreenKey,
|
|
155
|
+
linkId,
|
|
156
|
+
group,
|
|
157
|
+
shouldAutoMeasure: shouldPassivelyMeasureSource,
|
|
150
158
|
});
|
|
151
159
|
|
|
152
|
-
// Initial destination measurement: hold lifecycle start until the first
|
|
153
|
-
// valid destination measurement attaches, then release the pending transition.
|
|
154
160
|
useInitialDestinationMeasurement({
|
|
155
|
-
|
|
161
|
+
linkId,
|
|
156
162
|
enabled: shouldRunDestinationEffects,
|
|
157
163
|
currentScreenKey,
|
|
158
164
|
preferredSourceScreenKey,
|
|
165
|
+
ancestorScreenKeys: ancestorKeys,
|
|
159
166
|
measureBoundary,
|
|
160
167
|
});
|
|
161
168
|
|
|
162
|
-
// Pre-transition measurement path: when this route or its next sibling is
|
|
163
|
-
// about to animate, capture or refresh the measurements needed before
|
|
164
|
-
// progress or transform state mutates. Grouped sources refresh existing
|
|
165
|
-
// links; plain sources only backfill when missing.
|
|
166
169
|
useRefreshBoundary({
|
|
167
170
|
enabled: runtimeEnabled,
|
|
168
|
-
sharedBoundTag,
|
|
169
|
-
id,
|
|
170
|
-
group,
|
|
171
171
|
currentScreenKey,
|
|
172
|
+
preferredSourceScreenKey,
|
|
172
173
|
nextScreenKey,
|
|
173
|
-
|
|
174
|
+
linkId,
|
|
175
|
+
group,
|
|
176
|
+
ancestorScreenKeys: ancestorKeys,
|
|
174
177
|
measureBoundary,
|
|
175
178
|
});
|
|
176
179
|
|
|
177
180
|
const handlePress = useCallback(
|
|
178
181
|
(...args: unknown[]) => {
|
|
179
182
|
// Press path has priority: capture source before user onPress/navigation.
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
183
|
+
runOnUI(measureBoundary)({
|
|
184
|
+
type: "source",
|
|
185
|
+
pairKey: createPendingPairKey(currentScreenKey),
|
|
186
|
+
});
|
|
184
187
|
|
|
185
188
|
if (typeof onPress === "function") {
|
|
186
189
|
onPress(...args);
|
|
187
190
|
}
|
|
188
191
|
},
|
|
189
|
-
[
|
|
192
|
+
[measureBoundary, onPress, currentScreenKey],
|
|
190
193
|
);
|
|
191
194
|
|
|
192
195
|
const resolvedOnPress =
|
|
@@ -8,21 +8,21 @@ import type { BoundaryConfigProps } from "../types";
|
|
|
8
8
|
|
|
9
9
|
export const useBoundaryPresence = (params: {
|
|
10
10
|
enabled: boolean;
|
|
11
|
-
|
|
11
|
+
entryTag: string;
|
|
12
12
|
currentScreenKey: string;
|
|
13
13
|
boundaryConfig?: BoundaryConfigProps;
|
|
14
14
|
}) => {
|
|
15
|
-
const { enabled,
|
|
15
|
+
const { enabled, entryTag, currentScreenKey, boundaryConfig } = params;
|
|
16
16
|
|
|
17
17
|
useLayoutEffect(() => {
|
|
18
18
|
if (!enabled) return;
|
|
19
19
|
|
|
20
|
-
runOnUI(setEntry)(
|
|
20
|
+
runOnUI(setEntry)(entryTag, currentScreenKey, {
|
|
21
21
|
boundaryConfig,
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
return () => {
|
|
25
|
-
runOnUI(removeEntry)(
|
|
25
|
+
runOnUI(removeEntry)(entryTag, currentScreenKey);
|
|
26
26
|
};
|
|
27
|
-
}, [enabled,
|
|
27
|
+
}, [enabled, entryTag, currentScreenKey, boundaryConfig]);
|
|
28
28
|
};
|
package/src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts
CHANGED
|
@@ -6,30 +6,32 @@ import {
|
|
|
6
6
|
withTiming,
|
|
7
7
|
} from "react-native-reanimated";
|
|
8
8
|
import { AnimationStore } from "../../../stores/animation.store";
|
|
9
|
-
import {
|
|
9
|
+
import { getDestination } from "../../../stores/bounds/internals/links";
|
|
10
|
+
import { pairs } from "../../../stores/bounds/internals/state";
|
|
10
11
|
import {
|
|
11
12
|
LifecycleTransitionRequestKind,
|
|
12
13
|
SystemStore,
|
|
13
14
|
} from "../../../stores/system.store";
|
|
14
|
-
import type {
|
|
15
|
-
import {
|
|
16
|
-
import { shouldBlockInitialDestinationMeasurement } from "./helpers/measurement-rules";
|
|
15
|
+
import type { MeasureBoundary } from "../types";
|
|
16
|
+
import { getInitialDestinationMeasurePairKey } from "../utils/destination-signals";
|
|
17
17
|
|
|
18
18
|
const VIEWPORT_RETRY_DELAY_MS = 16;
|
|
19
19
|
|
|
20
20
|
interface UseInitialDestinationMeasurementParams {
|
|
21
|
-
|
|
21
|
+
linkId: string;
|
|
22
22
|
enabled: boolean;
|
|
23
23
|
currentScreenKey: string;
|
|
24
24
|
preferredSourceScreenKey?: string;
|
|
25
|
-
|
|
25
|
+
ancestorScreenKeys: string[];
|
|
26
|
+
measureBoundary: MeasureBoundary;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
export const useInitialDestinationMeasurement = ({
|
|
29
|
-
|
|
30
|
+
linkId,
|
|
30
31
|
enabled,
|
|
31
32
|
currentScreenKey,
|
|
32
33
|
preferredSourceScreenKey,
|
|
34
|
+
ancestorScreenKeys,
|
|
33
35
|
measureBoundary,
|
|
34
36
|
}: UseInitialDestinationMeasurementParams) => {
|
|
35
37
|
const progress = AnimationStore.getValue(currentScreenKey, "progress");
|
|
@@ -87,35 +89,34 @@ export const useInitialDestinationMeasurement = ({
|
|
|
87
89
|
return [0, retryTick] as const;
|
|
88
90
|
}
|
|
89
91
|
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
+
const destinationPairKey = getInitialDestinationMeasurePairKey({
|
|
93
|
+
enabled,
|
|
92
94
|
currentScreenKey,
|
|
93
95
|
preferredSourceScreenKey,
|
|
96
|
+
ancestorScreenKeys,
|
|
97
|
+
linkId,
|
|
98
|
+
linkState: ancestorScreenKeys.length ? pairs.get() : undefined,
|
|
94
99
|
});
|
|
95
100
|
|
|
96
|
-
|
|
97
|
-
enabled,
|
|
98
|
-
hasDestinationLink: linkContext.hasDestinationLink,
|
|
99
|
-
hasAttachableSourceLink: linkContext.hasAttachableSourceLink,
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
if (!shouldBlock) {
|
|
103
|
-
return [0, retryTick] as const;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
return [1, retryTick] as const;
|
|
101
|
+
return [destinationPairKey, retryTick] as const;
|
|
107
102
|
},
|
|
108
|
-
([
|
|
103
|
+
([destinationPairKey]) => {
|
|
109
104
|
"worklet";
|
|
110
|
-
if (!
|
|
105
|
+
if (!destinationPairKey) {
|
|
111
106
|
releaseLifecycleStartBlock();
|
|
112
107
|
return;
|
|
113
108
|
}
|
|
114
109
|
|
|
115
110
|
ensureLifecycleStartBlocked();
|
|
116
|
-
measureBoundary({
|
|
111
|
+
measureBoundary({
|
|
112
|
+
type: "destination",
|
|
113
|
+
pairKey: destinationPairKey,
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
const destinationAttached =
|
|
117
|
+
getDestination(destinationPairKey, linkId) !== null;
|
|
117
118
|
|
|
118
|
-
if (
|
|
119
|
+
if (destinationAttached) {
|
|
119
120
|
releaseLifecycleStartBlock();
|
|
120
121
|
return;
|
|
121
122
|
}
|
package/src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts
CHANGED
|
@@ -1,27 +1,57 @@
|
|
|
1
|
-
import { useAnimatedReaction } from "react-native-reanimated";
|
|
2
|
-
import
|
|
1
|
+
import { useAnimatedReaction, useSharedValue } from "react-native-reanimated";
|
|
2
|
+
import { pairs } from "../../../stores/bounds/internals/state";
|
|
3
|
+
import type { MeasureBoundary } from "../types";
|
|
4
|
+
import { getInitialSourceCaptureSignal } from "../utils/source-signals";
|
|
3
5
|
|
|
4
6
|
export const useInitialSourceMeasurement = (params: {
|
|
5
7
|
enabled: boolean;
|
|
6
8
|
nextScreenKey?: string;
|
|
7
|
-
|
|
9
|
+
currentScreenKey?: string;
|
|
10
|
+
measureBoundary: MeasureBoundary;
|
|
11
|
+
linkId: string;
|
|
12
|
+
group?: string;
|
|
13
|
+
shouldAutoMeasure: boolean;
|
|
8
14
|
}) => {
|
|
9
|
-
const {
|
|
15
|
+
const {
|
|
16
|
+
enabled,
|
|
17
|
+
nextScreenKey,
|
|
18
|
+
measureBoundary,
|
|
19
|
+
linkId,
|
|
20
|
+
currentScreenKey,
|
|
21
|
+
group,
|
|
22
|
+
shouldAutoMeasure,
|
|
23
|
+
} = params;
|
|
24
|
+
const lastSourceCaptureSignal = useSharedValue<string | null>(null);
|
|
10
25
|
|
|
11
26
|
useAnimatedReaction(
|
|
12
27
|
() => {
|
|
13
28
|
"worklet";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
29
|
+
return getInitialSourceCaptureSignal({
|
|
30
|
+
enabled,
|
|
31
|
+
nextScreenKey,
|
|
32
|
+
currentScreenKey,
|
|
33
|
+
linkId,
|
|
34
|
+
group,
|
|
35
|
+
shouldAutoMeasure,
|
|
36
|
+
linkState: group ? pairs.get() : undefined,
|
|
37
|
+
});
|
|
19
38
|
},
|
|
20
39
|
(captureSignal) => {
|
|
21
40
|
"worklet";
|
|
22
|
-
if (!enabled || !captureSignal)
|
|
41
|
+
if (!enabled || !captureSignal) {
|
|
42
|
+
lastSourceCaptureSignal.set(null);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (lastSourceCaptureSignal.get() === captureSignal.signal) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
23
49
|
|
|
24
|
-
|
|
50
|
+
lastSourceCaptureSignal.set(captureSignal.signal);
|
|
51
|
+
measureBoundary({
|
|
52
|
+
type: "source",
|
|
53
|
+
pairKey: captureSignal.pairKey,
|
|
54
|
+
});
|
|
25
55
|
},
|
|
26
56
|
);
|
|
27
57
|
};
|