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
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createPendingPairKey, createScreenPairKey, getDestinationScreenKeyFromPairKey } from "../../../stores/bounds/helpers/link-pairs.helpers";
|
|
4
|
+
const SOURCE_SIGNAL_PREFIX = "source|";
|
|
5
|
+
const DESTINATION_SIGNAL_PREFIX = "destination|";
|
|
6
|
+
const findNestedDestinationPairKey = (linkState, linkId, ancestorScreenKeys) => {
|
|
7
|
+
"worklet";
|
|
8
|
+
|
|
9
|
+
const destinationScreenKey = ancestorScreenKeys?.[0];
|
|
10
|
+
if (!linkState || !destinationScreenKey) return null;
|
|
11
|
+
for (const pairKey in linkState) {
|
|
12
|
+
if (getDestinationScreenKeyFromPairKey(pairKey) !== destinationScreenKey) {
|
|
13
|
+
continue;
|
|
14
|
+
}
|
|
15
|
+
if (linkState[pairKey]?.links?.[linkId]?.destination) {
|
|
16
|
+
return pairKey;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
};
|
|
21
|
+
const buildRefreshSignal = (type, pairKey, key) => {
|
|
22
|
+
"worklet";
|
|
23
|
+
|
|
24
|
+
const prefix = type === "source" ? SOURCE_SIGNAL_PREFIX : DESTINATION_SIGNAL_PREFIX;
|
|
25
|
+
return {
|
|
26
|
+
type,
|
|
27
|
+
pairKey,
|
|
28
|
+
signal: `${prefix}${pairKey}|${key}`
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export const getRefreshBoundarySignal = params => {
|
|
32
|
+
"worklet";
|
|
33
|
+
|
|
34
|
+
const {
|
|
35
|
+
enabled,
|
|
36
|
+
currentScreenKey,
|
|
37
|
+
preferredSourceScreenKey,
|
|
38
|
+
nextScreenKey,
|
|
39
|
+
linkId,
|
|
40
|
+
group,
|
|
41
|
+
ancestorScreenKeys,
|
|
42
|
+
shouldRefresh,
|
|
43
|
+
closing,
|
|
44
|
+
entering,
|
|
45
|
+
animating,
|
|
46
|
+
progress,
|
|
47
|
+
linkState
|
|
48
|
+
} = params;
|
|
49
|
+
if (!enabled) return null;
|
|
50
|
+
const canRefreshPreCloseDestination = shouldRefresh && closing && !entering && !animating && progress >= 1;
|
|
51
|
+
const canRefreshSettledDestination = shouldRefresh && !closing && !entering;
|
|
52
|
+
if (!canRefreshPreCloseDestination && !canRefreshSettledDestination) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Non-group refresh only rewrites destination bounds. Source refresh is a
|
|
57
|
+
// grouped-only fallback for active ids that do not have source bounds yet.
|
|
58
|
+
if (!group) {
|
|
59
|
+
if (nextScreenKey) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Nested initial screens have no previous screen in their own navigator,
|
|
64
|
+
// so recover the pair by looking for a destination on the ancestor route.
|
|
65
|
+
const pairKey = preferredSourceScreenKey ? createScreenPairKey(preferredSourceScreenKey, currentScreenKey) : findNestedDestinationPairKey(linkState, linkId, ancestorScreenKeys);
|
|
66
|
+
if (!pairKey) return null;
|
|
67
|
+
return buildRefreshSignal("destination", pairKey, [currentScreenKey, closing ? "closing" : "settled"].join("|"));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Source-side grouped refresh: a new active id may not have source bounds yet,
|
|
71
|
+
// so the next screen's lifecycle pulse gives that source one chance to capture.
|
|
72
|
+
if (nextScreenKey) {
|
|
73
|
+
const pairKey = createScreenPairKey(currentScreenKey, nextScreenKey);
|
|
74
|
+
const pendingPairKey = createPendingPairKey(currentScreenKey);
|
|
75
|
+
const activeId = linkState?.[pairKey]?.groups?.[group]?.activeId;
|
|
76
|
+
const hasSource = !!linkState?.[pairKey]?.links?.[linkId]?.source || !!linkState?.[pendingPairKey]?.links?.[linkId]?.source;
|
|
77
|
+
if (activeId !== linkId || hasSource) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return buildRefreshSignal("source", pairKey, [group, linkId, closing ? "closing" : "settled"].join("|"));
|
|
81
|
+
}
|
|
82
|
+
if (!preferredSourceScreenKey) return null;
|
|
83
|
+
|
|
84
|
+
// Destination-side grouped refresh: only the active member rewrites the
|
|
85
|
+
// destination side, keeping inactive grouped members from stealing the link.
|
|
86
|
+
const pairKey = createScreenPairKey(preferredSourceScreenKey, currentScreenKey);
|
|
87
|
+
const activeId = linkState?.[pairKey]?.groups?.[group]?.activeId;
|
|
88
|
+
const hasSource = !!linkState?.[pairKey]?.links?.[linkId]?.source;
|
|
89
|
+
const hasDestination = !!linkState?.[pairKey]?.links?.[linkId]?.destination;
|
|
90
|
+
|
|
91
|
+
// Destination retargeting should only measure a concrete member that already
|
|
92
|
+
// participates in the pair. Missing members fall back to initialId at resolve.
|
|
93
|
+
if (activeId !== linkId || !hasSource && !hasDestination) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
return buildRefreshSignal("destination", pairKey, [group, linkId, closing ? "closing" : "settled"].join("|"));
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=refresh-signals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createPendingPairKey","createScreenPairKey","getDestinationScreenKeyFromPairKey","SOURCE_SIGNAL_PREFIX","DESTINATION_SIGNAL_PREFIX","findNestedDestinationPairKey","linkState","linkId","ancestorScreenKeys","destinationScreenKey","pairKey","links","destination","buildRefreshSignal","type","key","prefix","signal","getRefreshBoundarySignal","params","enabled","currentScreenKey","preferredSourceScreenKey","nextScreenKey","group","shouldRefresh","closing","entering","animating","progress","canRefreshPreCloseDestination","canRefreshSettledDestination","join","pendingPairKey","activeId","groups","hasSource","source","hasDestination"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/utils/refresh-signals.ts"],"mappings":";;AAAA,SACCA,oBAAoB,EACpBC,mBAAmB,EACnBC,kCAAkC,QAC5B,mDAAmD;AAO1D,MAAMC,oBAAoB,GAAG,SAAS;AACtC,MAAMC,yBAAyB,GAAG,cAAc;AAMhD,MAAMC,4BAA4B,GAAGA,CACpCC,SAAqC,EACrCC,MAAc,EACdC,kBAAiD,KACvB;EAC1B,SAAS;;EACT,MAAMC,oBAAoB,GAAGD,kBAAkB,GAAG,CAAC,CAAC;EACpD,IAAI,CAACF,SAAS,IAAI,CAACG,oBAAoB,EAAE,OAAO,IAAI;EAEpD,KAAK,MAAMC,OAAO,IAAIJ,SAAS,EAAE;IAChC,IAAIJ,kCAAkC,CAACQ,OAAO,CAAC,KAAKD,oBAAoB,EAAE;MACzE;IACD;IAEA,IAAIH,SAAS,CAACI,OAAO,CAAC,EAAEC,KAAK,GAAGJ,MAAM,CAAC,EAAEK,WAAW,EAAE;MACrD,OAAOF,OAAO;IACf;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;AAED,MAAMG,kBAAkB,GAAGA,CAC1BC,IAA2B,EAC3BJ,OAAsB,EACtBK,GAAW,KACgB;EAC3B,SAAS;;EACT,MAAMC,MAAM,GACXF,IAAI,KAAK,QAAQ,GAAGX,oBAAoB,GAAGC,yB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Aa,EACbH,OAAO,EACP,CAACc,KAAK,EAAEjB,MAAM,EAAEmB,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC,CAACM,IAAI,CAAC,GAAG,CAC1D,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createScreenPairKey } from "../../../stores/bounds/helpers/link-pairs.helpers";
|
|
4
|
+
const SOURCE_SIGNAL_PREFIX = "source|";
|
|
5
|
+
const buildSourceSignal = (pairKey, key) => {
|
|
6
|
+
"worklet";
|
|
7
|
+
|
|
8
|
+
return {
|
|
9
|
+
pairKey,
|
|
10
|
+
signal: `${SOURCE_SIGNAL_PREFIX}${pairKey}|${key}`
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export const getInitialSourceCaptureSignal = params => {
|
|
14
|
+
"worklet";
|
|
15
|
+
|
|
16
|
+
const {
|
|
17
|
+
enabled,
|
|
18
|
+
nextScreenKey,
|
|
19
|
+
currentScreenKey,
|
|
20
|
+
linkId,
|
|
21
|
+
group,
|
|
22
|
+
shouldAutoMeasure,
|
|
23
|
+
linkState
|
|
24
|
+
} = params;
|
|
25
|
+
if (!enabled || !nextScreenKey || !currentScreenKey) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Trigger components capture on press. This passive path is for Boundary.View
|
|
30
|
+
// slots that need a source before navigation starts.
|
|
31
|
+
if (!shouldAutoMeasure) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
const pairKey = createScreenPairKey(currentScreenKey, nextScreenKey);
|
|
35
|
+
if (group) {
|
|
36
|
+
const activeId = linkState?.[pairKey]?.groups?.[group]?.activeId;
|
|
37
|
+
|
|
38
|
+
// Passive grouped sources should not measure every mounted item. Once a
|
|
39
|
+
// group has an active id, only that concrete member can auto-capture.
|
|
40
|
+
if (activeId && activeId !== linkId) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const signalParts = group ? [currentScreenKey, nextScreenKey, group, linkId] : [currentScreenKey, nextScreenKey, linkId];
|
|
45
|
+
return buildSourceSignal(pairKey, signalParts.join("|"));
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=source-signals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createScreenPairKey","SOURCE_SIGNAL_PREFIX","buildSourceSignal","pairKey","key","signal","getInitialSourceCaptureSignal","params","enabled","nextScreenKey","currentScreenKey","linkId","group","shouldAutoMeasure","linkState","activeId","groups","signalParts","join"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/utils/source-signals.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,mDAAmD;AAMvF,MAAMC,oBAAoB,GAAG,SAAS;AAOtC,MAAMC,iBAAiB,GAAGA,CACzBC,OAAsB,EACtBC,GAAW,KACc;EACzB,SAAS;;EACT,OAAO;IACND,OAAO;IACPE,MAAM,EAAE,GAAGJ,oBAAoB,GAAGE,OAAO,IAAIC,GAAG;EACjD,CAAC;AACF,CAAC;AAED,OAAO,MAAME,6BAA6B,GAAIC,MAQ7C,IAAiC;EACjC,SAAS;;EACT,MAAM;IACLC,OAAO;IACPC,aAAa;IACbC,gBAAgB;IAChBC,MAAM;IACNC,KAAK;IACLC,iBAAiB;IACjBC;EACD,CAAC,GAAGP,MAAM;EAEV,IAAI,CAACC,OAAO,IAAI,CAACC,aAAa,IAAI,CAACC,gBAAgB,EAAE;IACpD,OAAO,IAAI;EACZ;;EAEA;EACA;EACA,IAAI,CAACG,iBAAiB,EAAE;IACvB,OAAO,IAAI;EACZ;EAEA,MAAMV,OAAO,GAAGH,mBAAmB,CAACU,gBAAgB,EAAED,aAAa,CAAC;EAEpE,IAAIG,KAAK,EAAE;IACV,MAAMG,QAAQ,GAAGD,SAAS,GAAGX,OAAO,CAAC,EAAEa,MAAM,GAAGJ,KAAK,CAAC,EAAEG,QAAQ;;IAEhE;IACA;IACA,IAAIA,QAAQ,IAAIA,QAAQ,KAAKJ,MAAM,EAAE;MACpC,OAAO,IAAI;IACZ;EACD;EAEA,MAAMM,WAAW,GAAGL,KAAK,GACtB,CAACF,gBAAgB,EAAED,aAAa,EAAEG,KAAK,EAAED,MAAM,CAAC,GAChD,CAACD,gBAAgB,EAAED,aAAa,EAAEE,MAAM,CAAC;EAE5C,OAAOT,iBAAiB,CAACC,OAAO,EAAEc,WAAW,CAACC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzD,CAAC","ignoreList":[]}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { StyleSheet } from "react-native";
|
|
4
|
-
import Animated, { Extrapolation, interpolate, useAnimatedProps,
|
|
4
|
+
import Animated, { Extrapolation, interpolate, useAnimatedProps, useDerivedValue, useSharedValue } from "react-native-reanimated";
|
|
5
5
|
import { Screen as RNSScreen } from "react-native-screens";
|
|
6
6
|
import { EPSILON } from "../constants";
|
|
7
7
|
import { useStack } from "../hooks/navigation/use-stack";
|
|
8
|
-
import { LayoutAnchorProvider } from "../providers/layout-anchor.provider";
|
|
9
8
|
import { useManagedStackContext } from "../providers/stack/managed.provider";
|
|
10
9
|
import { AnimationStore } from "../stores/animation.store";
|
|
11
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -41,7 +40,6 @@ export const NativeScreen = ({
|
|
|
41
40
|
const routesLength = routes.length;
|
|
42
41
|
const topIndex = routesLength - 1;
|
|
43
42
|
const topRouteKey = routes[topIndex]?.key ?? routeKey;
|
|
44
|
-
const screenRef = useAnimatedRef();
|
|
45
43
|
const sceneClosing = AnimationStore.getValue(routeKey, "closing");
|
|
46
44
|
const topSceneProgress = AnimationStore.getValue(topRouteKey, "progress");
|
|
47
45
|
const topSceneClosing = AnimationStore.getValue(topRouteKey, "closing");
|
|
@@ -102,29 +100,20 @@ export const NativeScreen = ({
|
|
|
102
100
|
});
|
|
103
101
|
if (DISABLE_NATIVE_SCREENS) {
|
|
104
102
|
return /*#__PURE__*/_jsx(Animated.View, {
|
|
105
|
-
ref: screenRef
|
|
106
103
|
// Keep a native boundary per screen when falling back to plain views.
|
|
107
104
|
// Android release builds can otherwise flatten sibling screens together.
|
|
108
|
-
,
|
|
109
105
|
collapsable: false,
|
|
110
106
|
style: StyleSheet.absoluteFill,
|
|
111
107
|
animatedProps: animatedProps,
|
|
112
|
-
children:
|
|
113
|
-
anchorRef: screenRef,
|
|
114
|
-
children: children
|
|
115
|
-
})
|
|
108
|
+
children: children
|
|
116
109
|
});
|
|
117
110
|
}
|
|
118
111
|
return /*#__PURE__*/_jsx(AnimatedNativeScreen, {
|
|
119
112
|
enabled: true,
|
|
120
|
-
ref: screenRef,
|
|
121
113
|
style: StyleSheet.absoluteFill,
|
|
122
114
|
freezeOnBlur: freezeOnBlur,
|
|
123
115
|
animatedProps: animatedProps,
|
|
124
|
-
children:
|
|
125
|
-
anchorRef: screenRef,
|
|
126
|
-
children: children
|
|
127
|
-
})
|
|
116
|
+
children: children
|
|
128
117
|
});
|
|
129
118
|
};
|
|
130
119
|
//# sourceMappingURL=native-screen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","Animated","Extrapolation","interpolate","useAnimatedProps","
|
|
1
|
+
{"version":3,"names":["StyleSheet","Animated","Extrapolation","interpolate","useAnimatedProps","useDerivedValue","useSharedValue","Screen","RNSScreen","EPSILON","useStack","useManagedStackContext","AnimationStore","jsx","_jsx","PASSTHROUGH","ScreenActivity","POINT_NONE","POINT_BOX_NONE","AnimatedNativeScreen","createAnimatedComponent","NativeScreen","routeKey","index","isPreloaded","children","freezeOnBlur","shouldFreeze","flags","DISABLE_NATIVE_SCREENS","routes","optimisticFocusedIndex","activeScreensLimit","backdropBehaviors","routesLength","length","topIndex","topRouteKey","key","sceneClosing","getValue","topSceneProgress","topSceneClosing","screenActivity","TRANSITIONING_OR_BELOW_TOP","set","INACTIVE","focusedIndex","get","topIsClosing","postCloseActiveStart","Math","max","next","ON_TOP","outputValue","v","CLAMP","trunc","animatedProps","activity","isClosing","activeIndex","isActive","activeBackdrop","activeAllowsPassthrough","isAllowedPassthroughBelow","pointerEvents","activityState","View","collapsable","style","absoluteFill","enabled"],"sourceRoot":"../../../../src","sources":["shared/components/native-screen.tsx"],"mappings":";;AACA,SAASA,UAAU,QAAQ,cAAc;AACzC,OAAOC,QAAQ,IACdC,aAAa,EACbC,WAAW,EACXC,gBAAgB,EAChBC,eAAe,EACfC,cAAc,QACR,yBAAyB;AAChC,SAASC,MAAM,IAAIC,SAAS,QAAQ,sBAAsB;AAC1D,SAASC,OAAO,QAAQ,cAAc;AACtC,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,sBAAsB,QAAQ,qCAAqC;AAC5E,SAASC,cAAc,QAAQ,2BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE3D,MAAMC,WAAW,GAAG,aAAa;AAAC,IAU7BC,cAAc,0BAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAdA,cAAc,CAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA,EAAdA,cAAc;AAMnB,MAAMC,UAAU,GAAG,MAAe;AAClC,MAAMC,cAAc,GAAG,UAAmB;AAE1C,MAAMC,oBAAoB,GAAGlB,QAAQ,CAACmB,uBAAuB,CAACZ,SAAS,CAAC;AAExE,OAAO,MAAMa,YAAY,GAAGA,CAAC;EAC5BC,QAAQ;EACRC,KAAK;EACLC,WAAW;EACXC,QAAQ;EACRC,YAAY;EACZC;AACY,CAAC,KAAK;EAClB,MAAM;IACLC,KAAK,EAAE;MAAEC,sBAAsB,GAAG;IAAM,CAAC;IACzCC,MAAM;IACNC;EACD,CAAC,GAAGrB,QAAQ,CAAC,CAAC;EACd,MAAM;IAAEsB,kBAAkB;IAAEC;EAAkB,CAAC,GAAGtB,sBAAsB,CAAC,CAAC;EAE1E,M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AC9BD,uBAAuB,IAAI1C,KAAK,KAAKuC,WAAW,GAAG,CAAC;;IAErD;IACA;IACA;IACA;IACA;IACA,MAAMK,aAAa,GAClBN,SAAS,IAAK,CAACE,QAAQ,IAAI,CAACG,yBAA0B,GACnDjD,UAAU,GACVC,cAAc;IAElB,IAAI,CAACW,sBAAsB,EAAE;MAC5B,OAAO;QACNuC,aAAa,EAAER,QAAQ;QACvBjC,YAAY,EAAEiC,QAAQ,KAAK5C,cAAc,CAAC8B,QAAQ,IAAInB,YAAY;QAClEwC;MACD,CAAC;IACF;IAEA,OAAO;MACNA;IACD,CAAC;EACF,CAAC,CAAC;EAEF,IAAItC,sBAAsB,EAAE;IAC3B,oBACCf,IAAA,CAACb,QAAQ,CAACoE,IAAI;MACb;MACA;MACAC,WAAW,EAAE,KAAM;MACnBC,KAAK,EAAEvE,UAAU,CAACwE,YAAa;MAC/Bb,aAAa,EAAEA,aAAc;MAAAlC,QAAA,EAE5BA;IAAQ,CACK,CAAC;EAElB;EAEA,oBACCX,IAAA,CAACK,oBAAoB;IACpBsD,OAAO;IACPF,KAAK,EAAEvE,UAAU,CAACwE,YAAa;IAC/B9C,YAAY,EAAEA,YAAa;IAC3BiC,aAAa,EAAEA,aAAc;IAAAlC,QAAA,EAE5BA;EAAQ,CACY,CAAC;AAEzB,CAAC","ignoreList":[]}
|
|
@@ -36,6 +36,7 @@ const DEFAULT_RAW_GESTURE_VALUES = {
|
|
|
36
36
|
};
|
|
37
37
|
const DEFAULT_GESTURE_VALUES = {
|
|
38
38
|
...DEFAULT_RAW_GESTURE_VALUES,
|
|
39
|
+
velocity: 0,
|
|
39
40
|
focalX: 0,
|
|
40
41
|
focalY: 0,
|
|
41
42
|
raw: DEFAULT_RAW_GESTURE_VALUES,
|
|
@@ -157,12 +158,6 @@ export const FALSE = 0;
|
|
|
157
158
|
*/
|
|
158
159
|
export const EPSILON = 1e-5;
|
|
159
160
|
|
|
160
|
-
/**
|
|
161
|
-
* Threshold for snapping animations to target when "close enough" (1% of range).
|
|
162
|
-
* Prevents micro-jitter/oscillation near animation endpoints.
|
|
163
|
-
*/
|
|
164
|
-
export const ANIMATION_SNAP_THRESHOLD = 0.01;
|
|
165
|
-
|
|
166
161
|
/**
|
|
167
162
|
* Number of consecutive frames progress must remain near its target before it
|
|
168
163
|
* is treated as logically settled.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","MASK_STYLE_ID","CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","NAVIGATION_MASK_CONTAINER_STYLE_ID","NO_STYLES","Object","freeze","VISIBLE_STYLE","opacity","NO_PROPS","DEFAULT_RAW_GESTURE_VALUES","x","y","normX","normY","scale","normScale","DEFAULT_GESTURE_VALUES","focalX","focalY","raw","dismissing","dragging","settling","active","direction","normalizedX","normalizedY","isDismissing","isDragging","createDefaultGestureValues","DEFAULT_SCREEN_TRANSITION_OPTIONS","createScreenTransitionState","route","meta","navigationMaskEnabled","options","progress","closing","animating","willAnimate","settled","logicallySettled","entering","gesture","layouts","screen","width","height","animatedSnapIndex","snapIndex","DEFAULT_SCREEN_TRANSITION_STATE","TRANSFORM_RESET","transform","translateX","translateY","scaleX","scaleY","ENTER_RANGE","EXIT_RANGE","FULLSCREEN_DIMENSIONS","dimensions","pageX","pageY","DEFAULT_GESTURE_VELOCITY_IMPACT","DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT","DEFAULT_GESTURE_SENSITIVITY","DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE","DEFAULT_GESTURE_DIRECTION","DEFAULT_GESTURE_PROGRESS_MODE","DEFAULT_GESTURE_SNAP_LOCKED","DEFAULT_GESTURE_ACTIVATION_AREA","DEFAULT_SHEET_SCROLL_GESTURE_BEHAVIOR","IS_WEB","OS","TRUE","FALSE","EPSILON","
|
|
1
|
+
{"version":3,"names":["Platform","MASK_STYLE_ID","CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","NAVIGATION_MASK_CONTAINER_STYLE_ID","NO_STYLES","Object","freeze","VISIBLE_STYLE","opacity","NO_PROPS","DEFAULT_RAW_GESTURE_VALUES","x","y","normX","normY","scale","normScale","DEFAULT_GESTURE_VALUES","velocity","focalX","focalY","raw","dismissing","dragging","settling","active","direction","normalizedX","normalizedY","isDismissing","isDragging","createDefaultGestureValues","DEFAULT_SCREEN_TRANSITION_OPTIONS","createScreenTransitionState","route","meta","navigationMaskEnabled","options","progress","closing","animating","willAnimate","settled","logicallySettled","entering","gesture","layouts","screen","width","height","animatedSnapIndex","snapIndex","DEFAULT_SCREEN_TRANSITION_STATE","TRANSFORM_RESET","transform","translateX","translateY","scaleX","scaleY","ENTER_RANGE","EXIT_RANGE","FULLSCREEN_DIMENSIONS","dimensions","pageX","pageY","DEFAULT_GESTURE_VELOCITY_IMPACT","DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT","DEFAULT_GESTURE_SENSITIVITY","DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE","DEFAULT_GESTURE_DIRECTION","DEFAULT_GESTURE_PROGRESS_MODE","DEFAULT_GESTURE_SNAP_LOCKED","DEFAULT_GESTURE_ACTIVATION_AREA","DEFAULT_SHEET_SCROLL_GESTURE_BEHAVIOR","IS_WEB","OS","TRUE","FALSE","EPSILON","LOGICAL_SETTLE_REQUIRED_FRAMES","LOGICAL_SETTLE_PROGRESS_THRESHOLD"],"sourceRoot":"../../../src","sources":["shared/constants.ts"],"mappings":";;AACA,SAASA,QAAQ,QAAQ,cAAc;AAavC;AACA;AACA;AACA;AACA,OAAO,MAAMC,aAAa,GAAG,cAAc;AAC3C,OAAO,MAAMC,kBAAkB,GAAG,iBAAiB;;AAEnD;AACA;AACA;AACA,OAAO,MAAMC,gCAAgC,GAC5C,kCAAkC;AACnC,OAAO,MAAMC,kCAAkC,GAC9C,oCAAoC;;AAErC;AACA;AACA;AACA,OAAO,MAAMC,SAAS,GAAGC,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,CAA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,MAAMC,UAAU,GAAG,CAAC,CAAC,EAAE,CAAC,CAAU;AAEzC,OAAO,MAAMC,qBAAqB,GACjCC,UAAkB,IACM;EACxB,SAAS;;EACT,OAAO;IACNnD,CAAC,EAAE,CAAC;IACJC,CAAC,EAAE,CAAC;IACJmD,KAAK,EAAE,CAAC;IACRC,KAAK,EAAE,CAAC;IACRhB,KAAK,EAAEc,UAAU,CAACd,KAAK;IACvBC,MAAM,EAAEa,UAAU,CAACb;EACpB,CAAC;AACF,CAAC;AAED,OAAO,MAAMgB,+BAA+B,GAAG,GAAG;AAClD,OAAO,MAAMC,oCAAoC,GAAG,GAAG;AACvD,OAAO,MAAMC,2BAA2B,GAAG,CAAC;AAC5C,OAAO,MAAMC,sCAAsC,GAAG,CAAC;AACvD,OAAO,MAAMC,yBAAyB,GAAG,YAAY;AACrD,OAAO,MAAMC,6BAAkD,GAC9D,iBAAiB;AAClB,OAAO,MAAMC,2BAA2B,GAAG,KAAK;AAChD,OAAO,MAAMC,+BAA+C,GAAG,QAAQ;AACvE,OAAO,MAAMC,qCAAiE,GAC7E,qBAAqB;AAEtB,OAAO,MAAMC,MAAM,GAAG3E,QAAQ,CAAC4E,EAAE,KAAK,KAAK;AAE3C,OAAO,MAAMC,IAAI,GAAG,CAAC;AACrB,OAAO,MAAMC,KAAK,GAAG,CAAC;;AAEtB;AACA;AACA;AACA,OAAO,MAAMC,OAAO,GAAG,IAAI;;AAE3B;AACA;AACA;AACA;AACA,OAAO,MAAMC,8BAA8B,GAAG,CAAC;;AAE/C;AACA;AACA;AACA,OAAO,MAAMC,iCAAiC,GAAG,KAAK","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { setEntry } from "../../stores/bounds/internals/entries";
|
|
4
|
+
import { setDestination, setSource } from "../../stores/bounds/internals/links";
|
|
5
|
+
export const applyMeasuredBoundsWrites = params => {
|
|
6
|
+
"worklet";
|
|
7
|
+
|
|
8
|
+
const {
|
|
9
|
+
entryTag,
|
|
10
|
+
linkId,
|
|
11
|
+
group,
|
|
12
|
+
currentScreenKey,
|
|
13
|
+
measured,
|
|
14
|
+
preparedStyles,
|
|
15
|
+
linkWrite
|
|
16
|
+
} = params;
|
|
17
|
+
|
|
18
|
+
// Set the bounds entry on every measure to avoid any stale measurements
|
|
19
|
+
// for the public read API.
|
|
20
|
+
setEntry(entryTag, currentScreenKey, {
|
|
21
|
+
bounds: measured
|
|
22
|
+
});
|
|
23
|
+
if (linkWrite?.type === "source") {
|
|
24
|
+
setSource(linkWrite.pairKey, linkId, currentScreenKey, measured, preparedStyles, group);
|
|
25
|
+
}
|
|
26
|
+
if (linkWrite?.type === "destination") {
|
|
27
|
+
setDestination(linkWrite.pairKey, linkId, currentScreenKey, measured, preparedStyles, group);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=measured-bounds-writes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["setEntry","setDestination","setSource","applyMeasuredBoundsWrites","params","entryTag","linkId","group","currentScreenKey","measured","preparedStyles","linkWrite","bounds","type","pairKey"],"sourceRoot":"../../../../../src","sources":["shared/providers/helpers/measured-bounds-writes.ts"],"mappings":";;AACA,SAASA,QAAQ,QAAQ,uCAAuC;AAChE,SAASC,cAAc,EAAEC,SAAS,QAAQ,qCAAqC;AAuB/E,OAAO,MAAMC,yBAAyB,GACrCC,MAAuC,IACnC;EACJ,SAAS;;EACT,MAAM;IACLC,QAAQ;IACRC,MAAM;IACNC,KAAK;IACLC,gBAAgB;IAChBC,QAAQ;IACRC,cAAc;IACdC;EACD,CAAC,GAAGP,MAAM;;EAEV;EACA;EACAJ,QAAQ,CAACK,QAAQ,EAAEG,gBAAgB,EAAE;IACpCI,MAAM,EAAEH;EACT,CAAC,CAAC;EAEF,IAAIE,SAAS,EAAEE,IAAI,KAAK,QAAQ,EAAE;IACjCX,SAAS,CACRS,SAAS,CAACG,OAAO,EACjBR,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,KACD,CAAC;EACF;EAEA,IAAII,SAAS,EAAEE,IAAI,KAAK,aAAa,EAAE;IACtCZ,cAAc,CACbU,SAAS,CAACG,OAAO,EACjBR,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,KACD,CAAC;EACF;AACD,CAAC","ignoreList":[]}
|
|
@@ -3,16 +3,17 @@
|
|
|
3
3
|
import { useFocusEffect } from "@react-navigation/native";
|
|
4
4
|
import { useCallback, useMemo, useRef } from "react";
|
|
5
5
|
import { measure, runOnJS, runOnUI, useAnimatedReaction, useSharedValue } from "react-native-reanimated";
|
|
6
|
-
import { applyMeasuredBoundsWrites } from "../components/create-boundary-component/helpers/apply-measured-bounds-writes";
|
|
7
6
|
import useStableCallback from "../hooks/use-stable-callback";
|
|
8
7
|
import useStableCallbackValue from "../hooks/use-stable-callback-value";
|
|
9
8
|
import { AnimationStore } from "../stores/animation.store";
|
|
9
|
+
import { createPendingPairKey, createScreenPairKey } from "../stores/bounds/helpers/link-pairs.helpers";
|
|
10
10
|
import { getEntry } from "../stores/bounds/internals/entries";
|
|
11
|
-
import {
|
|
11
|
+
import { getDestination, getSource } from "../stores/bounds/internals/links";
|
|
12
12
|
import { prepareStyleForBounds } from "../utils/bounds/helpers/styles/styles";
|
|
13
13
|
import createProvider from "../utils/create-provider";
|
|
14
|
+
import { applyMeasuredBoundsWrites } from "./helpers/measured-bounds-writes";
|
|
14
15
|
import { useDescriptorDerivations, useDescriptors } from "./screen/descriptors";
|
|
15
|
-
import {
|
|
16
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
16
17
|
const getRouteParamId = route => {
|
|
17
18
|
const params = route?.params;
|
|
18
19
|
const rawId = params?.id;
|
|
@@ -129,24 +130,6 @@ const useParentSyncReaction = params => {
|
|
|
129
130
|
maybeMeasureAndStore();
|
|
130
131
|
});
|
|
131
132
|
};
|
|
132
|
-
const CloseRemeasureReactionEffect = params => {
|
|
133
|
-
const {
|
|
134
|
-
sharedBoundTag,
|
|
135
|
-
remeasureOnFocus,
|
|
136
|
-
nextClosing,
|
|
137
|
-
maybeMeasureAndStore
|
|
138
|
-
} = params;
|
|
139
|
-
useAnimatedReaction(() => nextClosing.get(), (closing, prevClosing) => {
|
|
140
|
-
"worklet";
|
|
141
|
-
|
|
142
|
-
if (closing === 1 && (prevClosing === 0 || prevClosing === null)) {
|
|
143
|
-
maybeMeasureAndStore({
|
|
144
|
-
shouldUpdateSource: true
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
}, [sharedBoundTag, remeasureOnFocus, nextClosing]);
|
|
148
|
-
return null;
|
|
149
|
-
};
|
|
150
133
|
let useRegisterBoundsContext;
|
|
151
134
|
const registerBoundsBundle = createProvider("RegisterBounds", {
|
|
152
135
|
guarded: false
|
|
@@ -155,7 +138,6 @@ const registerBoundsBundle = createProvider("RegisterBounds", {
|
|
|
155
138
|
onPress,
|
|
156
139
|
sharedBoundTag,
|
|
157
140
|
animatedRef,
|
|
158
|
-
remeasureOnFocus,
|
|
159
141
|
children
|
|
160
142
|
}) => {
|
|
161
143
|
const {
|
|
@@ -163,7 +145,8 @@ const registerBoundsBundle = createProvider("RegisterBounds", {
|
|
|
163
145
|
next
|
|
164
146
|
} = useDescriptors();
|
|
165
147
|
const {
|
|
166
|
-
ancestorKeys
|
|
148
|
+
ancestorKeys,
|
|
149
|
+
previousScreenKey
|
|
167
150
|
} = useDescriptorDerivations();
|
|
168
151
|
const currentScreenKey = current.route.key;
|
|
169
152
|
const selectedNextRouteId = getRouteParamId(next?.route);
|
|
@@ -183,8 +166,7 @@ const registerBoundsBundle = createProvider("RegisterBounds", {
|
|
|
183
166
|
const maybeMeasureAndStore = useStableCallbackValue(({
|
|
184
167
|
onPress,
|
|
185
168
|
shouldSetSource,
|
|
186
|
-
shouldSetDestination
|
|
187
|
-
shouldUpdateSource
|
|
169
|
+
shouldSetDestination
|
|
188
170
|
} = {}) => {
|
|
189
171
|
"worklet";
|
|
190
172
|
|
|
@@ -192,32 +174,37 @@ const registerBoundsBundle = createProvider("RegisterBounds", {
|
|
|
192
174
|
if (onPress) runOnJS(onPress)();
|
|
193
175
|
return;
|
|
194
176
|
}
|
|
177
|
+
const sourcePairKey = createPendingPairKey(currentScreenKey);
|
|
178
|
+
const destinationPairKey = previousScreenKey ? createScreenPairKey(previousScreenKey, currentScreenKey) : undefined;
|
|
179
|
+
const pendingSourcePairKey = previousScreenKey ? createPendingPairKey(previousScreenKey) : undefined;
|
|
195
180
|
if (shouldSetSource && isAnimating.get()) {
|
|
196
181
|
const existing = getEntry(sharedBoundTag, currentScreenKey);
|
|
197
182
|
if (existing?.bounds) {
|
|
198
183
|
applyMeasuredBoundsWrites({
|
|
199
|
-
sharedBoundTag,
|
|
184
|
+
entryTag: sharedBoundTag,
|
|
185
|
+
linkId: sharedBoundTag,
|
|
200
186
|
currentScreenKey,
|
|
201
187
|
measured: existing.bounds,
|
|
202
188
|
preparedStyles,
|
|
203
|
-
|
|
189
|
+
linkWrite: {
|
|
190
|
+
type: "source",
|
|
191
|
+
pairKey: sourcePairKey
|
|
192
|
+
}
|
|
204
193
|
});
|
|
205
194
|
}
|
|
206
195
|
if (onPress) runOnJS(onPress)();
|
|
207
196
|
return;
|
|
208
197
|
}
|
|
209
|
-
const
|
|
210
|
-
const hasSource =
|
|
211
|
-
const hasDestination =
|
|
198
|
+
const hasPendingSource = pendingSourcePairKey ? getSource(pendingSourcePairKey, sharedBoundTag) !== null : false;
|
|
199
|
+
const hasSource = getSource(sourcePairKey, sharedBoundTag) !== null || (destinationPairKey ? getSource(destinationPairKey, sharedBoundTag) !== null : false);
|
|
200
|
+
const hasDestination = destinationPairKey ? getDestination(destinationPairKey, sharedBoundTag) !== null : false;
|
|
212
201
|
const wantsSetSource = !!shouldSetSource;
|
|
213
202
|
const wantsSetDestination = !!shouldSetDestination;
|
|
214
|
-
const
|
|
215
|
-
const wantsSnapshotOnly = !wantsSetSource && !wantsSetDestination && !wantsUpdateSource;
|
|
203
|
+
const wantsSnapshotOnly = !wantsSetSource && !wantsSetDestination;
|
|
216
204
|
const canSetSource = wantsSetSource;
|
|
217
|
-
const canSetDestination = wantsSetDestination &&
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
if (!canSetSource && !canSetDestination && !canUpdateSource && !canSnapshotOnly) {
|
|
205
|
+
const canSetDestination = wantsSetDestination && (hasPendingSource || hasSource);
|
|
206
|
+
const canSnapshotOnly = wantsSnapshotOnly && (hasPendingSource || hasSource || hasDestination);
|
|
207
|
+
if (!canSetSource && !canSetDestination && !canSnapshotOnly) {
|
|
221
208
|
if (onPress) runOnJS(onPress)();
|
|
222
209
|
return;
|
|
223
210
|
}
|
|
@@ -228,14 +215,32 @@ const registerBoundsBundle = createProvider("RegisterBounds", {
|
|
|
228
215
|
}
|
|
229
216
|
emitUpdate();
|
|
230
217
|
applyMeasuredBoundsWrites({
|
|
231
|
-
sharedBoundTag,
|
|
218
|
+
entryTag: sharedBoundTag,
|
|
219
|
+
linkId: sharedBoundTag,
|
|
232
220
|
currentScreenKey,
|
|
233
221
|
measured,
|
|
234
222
|
preparedStyles,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
223
|
+
linkWrite: canSetSource ? {
|
|
224
|
+
type: "source",
|
|
225
|
+
pairKey: sourcePairKey
|
|
226
|
+
} : canSetDestination && destinationPairKey ? {
|
|
227
|
+
type: "destination",
|
|
228
|
+
pairKey: destinationPairKey
|
|
229
|
+
} : undefined
|
|
238
230
|
});
|
|
231
|
+
if (canSetSource && canSetDestination && destinationPairKey) {
|
|
232
|
+
applyMeasuredBoundsWrites({
|
|
233
|
+
entryTag: sharedBoundTag,
|
|
234
|
+
linkId: sharedBoundTag,
|
|
235
|
+
currentScreenKey,
|
|
236
|
+
measured,
|
|
237
|
+
preparedStyles,
|
|
238
|
+
linkWrite: {
|
|
239
|
+
type: "destination",
|
|
240
|
+
pairKey: destinationPairKey
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
}
|
|
239
244
|
if (onPress) runOnJS(onPress)();
|
|
240
245
|
});
|
|
241
246
|
const handleInitialLayout = useInitialLayoutHandler({
|
|
@@ -255,13 +260,6 @@ const registerBoundsBundle = createProvider("RegisterBounds", {
|
|
|
255
260
|
maybeMeasureAndStore,
|
|
256
261
|
ancestorKeys
|
|
257
262
|
});
|
|
258
|
-
|
|
259
|
-
// Re-measure source bounds when the destination screen (next in stack)
|
|
260
|
-
// starts closing. This fires at the instant the back animation begins,
|
|
261
|
-
// unlike useFocusEffect which fires too late (after the screen is removed
|
|
262
|
-
// from state).
|
|
263
|
-
const nextScreenKey = next?.route.key;
|
|
264
|
-
const nextClosing = nextScreenKey ? AnimationStore.getValue(nextScreenKey, "closing") : null;
|
|
265
263
|
useParentSyncReaction({
|
|
266
264
|
parentContext,
|
|
267
265
|
maybeMeasureAndStore
|
|
@@ -281,16 +279,11 @@ const registerBoundsBundle = createProvider("RegisterBounds", {
|
|
|
281
279
|
value: {
|
|
282
280
|
updateSignal
|
|
283
281
|
},
|
|
284
|
-
children: /*#__PURE__*/
|
|
285
|
-
children:
|
|
286
|
-
sharedBoundTag: sharedBoundTag,
|
|
287
|
-
remeasureOnFocus: remeasureOnFocus,
|
|
288
|
-
nextClosing: nextClosing,
|
|
289
|
-
maybeMeasureAndStore: maybeMeasureAndStore
|
|
290
|
-
}) : null, children({
|
|
282
|
+
children: /*#__PURE__*/_jsx(_Fragment, {
|
|
283
|
+
children: children({
|
|
291
284
|
handleInitialLayout,
|
|
292
285
|
captureActiveOnPress
|
|
293
|
-
})
|
|
286
|
+
})
|
|
294
287
|
})
|
|
295
288
|
};
|
|
296
289
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useFocusEffect","useCallback","useMemo","useRef","measure","runOnJS","runOnUI","useAnimatedReaction","useSharedValue","
|
|
1
|
+
{"version":3,"names":["useFocusEffect","useCallback","useMemo","useRef","measure","runOnJS","runOnUI","useAnimatedReaction","useSharedValue","useStableCallback","useStableCallbackValue","AnimationStore","createPendingPairKey","createScreenPairKey","getEntry","getDestination","getSource","prepareStyleForBounds","createProvider","applyMeasuredBoundsWrites","useDescriptorDerivations","useDescriptors","Fragment","_Fragment","jsx","_jsx","getRouteParamId","route","params","rawId","id","matchesSelectionTag","tag","selectedId","endsWith","useInitialLayoutHandler","sharedBoundTag","currentScreenKey","ancestorKeys","maybeMeasureAndStore","isAnimating","getValue","ancestorAnimations","map","key","hasMeasuredOnLayout","get","isAnyAnimating","i","length","shouldSetSource","shouldSetDestination","set","useBlurMeasurement","current","enabled","selectedRouteId","hasCapturedSource","ancestorClosing","maybeMeasureOnBlur","closing","markSourceCaptured","useParentSyncReaction","parentContext","updateSignal","value","undefined","useRegisterBoundsContext","registerBoundsBundle","guarded","style","onPress","animatedRef","children","next","previousScreenKey","selectedNextRouteId","ownSignal","preparedStyles","emitUpdate","isRoot","sourcePairKey","destinationPairKey","pendingSourcePairKey","existing","bounds","entryTag","linkId","measured","linkWrite","type","pairKey","hasPendingSource","hasSource","hasDestination","wantsSetSource","wantsSetDestination","wantsSnapshotOnly","canSetSource","canSetDestination","canSnapshotOnly","handleInitialLayout","captureActiveOnPress","RegisterBoundsProvider"],"sourceRoot":"../../../../src","sources":["shared/providers/register-bounds.provider.tsx"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,0BAA0B;AACzD,SAAyBC,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAEpE,SAECC,OAAO,EACPC,OAAO,EACPC,OAAO,EAEPC,mBAAmB,EACnBC,cAAc,QACR,yBAAyB;AAEhC,OAAOC,iBAAiB,MAAM,8BAA8B;AAC5D,OAAOC,sBAAsB,MAAM,oCAAoC;AACvE,SAASC,cAAc,QAAQ,2BAA2B;AAC1D,SACCC,oBAAoB,EACpBC,mBAAmB,QACb,6CAA6C;AACpD,SAASC,QAAQ,QAAQ,oCAAoC;AAC7D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GAAGlE,uBAAuB,CAAC;IACnDC,cAAc;IACdC,gBAAgB;IAChBC,YAAY;IACZC;EACD,CAAC,CAAC;;EAEF;EACA,MAAM;IAAEsB;EAAmB,CAAC,GAAGR,kBAAkB,CAAC;IACjDE,OAAO,EAAE,CAACgB,OAAO;IACjBnC,cAAc;IACdoB,eAAe,EAAEoB,mBAAmB;IACpCrC,oBAAoB;IACpBD;EACD,CAAC,CAAC;EAEFwB,qBAAqB,CAAC;IAAEC,aAAa;IAAExB;EAAqB,CAAC,CAAC;EAE9D,MAAM+D,oBAAoB,GAAG7F,iBAAiB,CAAC,MAAM;IACpD,IAAI,CAAC2B,cAAc,EAAE;MACpBmC,OAAO,GAAG,CAAC;MACX;IACD;IACAjE,OAAO,CAACiC,oBAAoB,CAAC,CAAC;MAAEgC,OAAO;MAAErB,eAAe,EAAE;IAAK,CAAC,CAAC;IACjEW,kBAAkB,CAAC,CAAC;EACrB,CAAC,CAAC;EAEF,OAAO;IACNI,KAAK,EAAE;MAAED;IAAa,CAAC;IACvBS,QAAQ,eAAEhD,IAAA,CAAAF,SAAA;MAAAkD,QAAA,EAAGA,QAAQ,CAAC;QAAE4B,mBAAmB;QAAEC;MAAqB,CAAC;IAAC,CAAG;EACxE,CAAC;AACF,CACD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,sBAAsB,GAAGnC,oBAAoB,CAACmC,sBAAsB;AAC1EpC,wBAAwB,GAAGC,oBAAoB,CAACD,wBAAwB;AAExE,SAASoC,sBAAsB","ignoreList":[]}
|
|
@@ -42,16 +42,7 @@ export const createTransitionAccessor = (sources, originIndex = 0, descendantSou
|
|
|
42
42
|
const frame = source.screenInterpolatorProps.get();
|
|
43
43
|
return {
|
|
44
44
|
...frame,
|
|
45
|
-
bounds: source.boundsAccessor
|
|
46
|
-
transition: target => {
|
|
47
|
-
"worklet";
|
|
48
|
-
|
|
49
|
-
const targetIndex = resolveTargetIndex(target, sourceIndex, currentSources.length);
|
|
50
|
-
if (targetIndex === -1) {
|
|
51
|
-
return null;
|
|
52
|
-
}
|
|
53
|
-
return buildScope(targetIndex);
|
|
54
|
-
}
|
|
45
|
+
bounds: source.boundsAccessor
|
|
55
46
|
};
|
|
56
47
|
};
|
|
57
48
|
return target => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useMemo","createBoundsAccessor","useScreenAnimationContext","resolveTargetIndex","target","currentIndex","sourceCount","undefined","depth","Number","isInteger","resolvedIndex","createTransitionAccessor","sources","originIndex","descendantSources","getSources","descendants","get","length","map","source","buildScope","sourceIndex","currentSources","screenInterpolatorPropsRevision","frame","screenInterpolatorProps","bounds","boundsAccessor","
|
|
1
|
+
{"version":3,"names":["useMemo","createBoundsAccessor","useScreenAnimationContext","resolveTargetIndex","target","currentIndex","sourceCount","undefined","depth","Number","isInteger","resolvedIndex","createTransitionAccessor","sources","originIndex","descendantSources","getSources","descendants","get","length","map","source","buildScope","sourceIndex","currentSources","screenInterpolatorPropsRevision","frame","screenInterpolatorProps","bounds","boundsAccessor","targetIndex","buildSourceBoundsAccessor","useBuildTransitionAccessor","ancestorScreenAnimationSources","descendantScreenAnimationSources","selfSource","ancestorTransitionSources","selfTransitionSource","transitionSources","reverse"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAK/B,SAASC,oBAAoB,QAAQ,6BAA6B;AAClE,SAASC,yBAAyB,QAAQ,0BAA0B;AAWpE,MAAMC,kBAAkB,GAAGA,CAC1BC,MAA0C,EAC1CC,YAAmC,EACnCC,WAAmB,KACQ;EAC3B,SAAS;;EACT,IAAIA,WAAW,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;EAE/B,IACCF,MAAM,KAAKG,SAAS,KACnB,OAAOH,MAAM,KAAK,QAAQ,IAAIA,MAAM,KAAK,IAAI,IAAI,EAAE,OAAO,IAAIA,MAAM,CAAC,CA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