react-native-screen-transitions 3.6.0-alpha.1 → 3.6.0-alpha.3
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/components/screen-container/layers/content.js +11 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/constants.js +5 -12
- 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/build-screen-transition-options.js +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +26 -8
- 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 +1 -2
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -4
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.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/options/helpers.js +3 -1
- package/lib/commonjs/shared/providers/screen/options/helpers.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/index.js +3 -2
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +120 -205
- 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 +175 -14
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +2 -2
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.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/components/screen-container/layers/content.js +13 -3
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/constants.js +4 -11
- 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/build-screen-transition-options.js +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +26 -3
- 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 +1 -2
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -4
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.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/options/helpers.js +3 -1
- package/lib/module/shared/providers/screen/options/helpers.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/providers/stack/direct.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/managed.provider.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/bounds.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/index.js +3 -2
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js +120 -205
- 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 +163 -12
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js +2 -2
- package/lib/module/shared/utils/bounds/navigation/zoom/build.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/components/boundary-target.d.ts +4 -207
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts +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 +2 -2
- 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/components/overlay/variations/overlay-host.d.ts +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +2 -2
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +1 -6
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +3 -3
- 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/build-screen-transition-options.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts +1 -2
- 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/hydrate-transition-state/types.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.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/animation/helpers/selected-interpolator-options.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/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/options/helpers.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/options/types.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/options/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.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/providers/stack/direct.provider.d.ts +1 -1
- package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/managed.provider.d.ts +1 -1
- package/lib/typescript/shared/providers/stack/managed.provider.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 +4 -19
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +69 -1
- package/lib/typescript/shared/types/bounds.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 +2 -2
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/screen.types.d.ts +4 -14
- package/lib/typescript/shared/types/screen.types.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/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts +1 -1
- 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 +58 -7
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/types.d.ts +2 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/types.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 +4 -3
- 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/components/screen-container/layers/content.tsx +21 -2
- package/src/shared/constants.ts +1 -9
- 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/build-screen-transition-options.ts +1 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +49 -4
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/types.ts +1 -1
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +2 -5
- package/src/shared/providers/screen/animation/helpers/selected-interpolator-options.ts +1 -0
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +3 -12
- 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/options/helpers.ts +9 -0
- package/src/shared/providers/screen/options/types.ts +1 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +0 -3
- package/src/shared/providers/stack/direct.provider.tsx +1 -1
- package/src/shared/providers/stack/managed.provider.tsx +1 -1
- 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 +4 -23
- package/src/shared/types/bounds.types.ts +72 -1
- package/src/shared/types/gesture.types.ts +8 -2
- package/src/shared/types/index.ts +1 -4
- package/src/shared/types/screen.types.ts +4 -14
- 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/index.ts +3 -1
- package/src/shared/utils/bounds/navigation/reveal/build.ts +198 -308
- package/src/shared/utils/bounds/navigation/reveal/config.ts +20 -1
- package/src/shared/utils/bounds/navigation/reveal/math.ts +264 -18
- package/src/shared/utils/bounds/navigation/reveal/types.ts +2 -0
- package/src/shared/utils/bounds/navigation/zoom/build.ts +2 -2
- 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
|
@@ -3,118 +3,179 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
6
|
+
exports.getActiveGroupId = getActiveGroupId;
|
|
7
|
+
exports.getDestination = getDestination;
|
|
8
|
+
exports.getLink = getLink;
|
|
9
|
+
exports.getResolvedLink = getResolvedLink;
|
|
10
|
+
exports.getSource = getSource;
|
|
11
|
+
exports.setActiveGroupId = setActiveGroupId;
|
|
10
12
|
exports.setDestination = setDestination;
|
|
11
13
|
exports.setSource = setSource;
|
|
12
|
-
var
|
|
13
|
-
var _tagState = require("../helpers/tag-state.helpers");
|
|
14
|
+
var _linkPairs = require("../helpers/link-pairs.helpers");
|
|
14
15
|
var _state = require("./state");
|
|
15
|
-
|
|
16
|
+
const toLinkKey = tag => {
|
|
16
17
|
"worklet";
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
return (0, _linkPairs.getLinkKeyFromTag)(tag);
|
|
20
|
+
};
|
|
21
|
+
const createLinkSide = (screenKey, bounds, styles) => {
|
|
22
|
+
"worklet";
|
|
23
|
+
|
|
24
|
+
return {
|
|
25
|
+
screenKey,
|
|
26
|
+
bounds,
|
|
27
|
+
styles
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
const writePairLink = (state, pairKey, linkKey, link) => {
|
|
31
|
+
"worklet";
|
|
32
|
+
|
|
33
|
+
(0, _linkPairs.ensurePairLinks)(state, pairKey)[linkKey] = link;
|
|
34
|
+
};
|
|
35
|
+
const writeGroup = (state, pairKey, group, activeId, initialId) => {
|
|
36
|
+
"worklet";
|
|
37
|
+
|
|
38
|
+
const previousInitialId = state[pairKey]?.groups?.[group]?.initialId;
|
|
39
|
+
(0, _linkPairs.ensurePairGroups)(state, pairKey)[group] = {
|
|
40
|
+
activeId,
|
|
41
|
+
initialId: previousInitialId ?? initialId ?? activeId
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
const writeDestination = (state, pairKey, linkKey, screenKey, bounds, styles, group) => {
|
|
45
|
+
"worklet";
|
|
46
|
+
|
|
47
|
+
const link = (0, _linkPairs.getLink)(state, pairKey, linkKey);
|
|
48
|
+
if (!link) return;
|
|
49
|
+
const destination = createLinkSide(screenKey, bounds, styles);
|
|
50
|
+
link.group = group ?? link.group;
|
|
51
|
+
link.destination = destination;
|
|
52
|
+
link.initialDestination ??= destination;
|
|
53
|
+
writePairLink(state, pairKey, linkKey, link);
|
|
54
|
+
if (link.group) {
|
|
55
|
+
writeGroup(state, pairKey, link.group, linkKey);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const promotePendingSource = (state, pairKey, linkKey) => {
|
|
59
|
+
"worklet";
|
|
60
|
+
|
|
61
|
+
if ((0, _linkPairs.getLink)(state, pairKey, linkKey)) return;
|
|
62
|
+
const sourceScreenKey = (0, _linkPairs.getSourceScreenKeyFromPairKey)(pairKey);
|
|
63
|
+
const pendingPairKey = (0, _linkPairs.createPendingPairKey)(sourceScreenKey);
|
|
64
|
+
if (pendingPairKey === pairKey) return;
|
|
65
|
+
const pendingLink = (0, _linkPairs.getLink)(state, pendingPairKey, linkKey);
|
|
66
|
+
if (!pendingLink) return;
|
|
67
|
+
writePairLink(state, pairKey, linkKey, pendingLink);
|
|
68
|
+
if (pendingLink.group) {
|
|
69
|
+
const pendingGroupState = state[pendingPairKey]?.groups?.[pendingLink.group];
|
|
70
|
+
if (pendingGroupState) {
|
|
71
|
+
writeGroup(state, pairKey, pendingLink.group, pendingGroupState.activeId, pendingGroupState.initialId);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
(0, _linkPairs.removePairLink)(state, pendingPairKey, linkKey);
|
|
75
|
+
};
|
|
76
|
+
function setSource(pairKey, tag, screenKey, bounds, styles = {}, group) {
|
|
77
|
+
"worklet";
|
|
78
|
+
|
|
79
|
+
_state.pairs.modify(state => {
|
|
19
80
|
"worklet";
|
|
20
81
|
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
82
|
+
const linkKey = toLinkKey(tag);
|
|
83
|
+
const source = createLinkSide(screenKey, bounds, styles);
|
|
84
|
+
const pairLinks = (0, _linkPairs.ensurePairLinks)(state, pairKey);
|
|
85
|
+
const existingLink = pairLinks[linkKey];
|
|
86
|
+
const link = existingLink ?? {
|
|
87
|
+
group,
|
|
88
|
+
source,
|
|
89
|
+
destination: null,
|
|
90
|
+
initialSource: source
|
|
25
91
|
};
|
|
26
|
-
|
|
27
|
-
const tagState = (0, _tagState.ensureTagState)(state, tag);
|
|
28
|
-
const stack = tagState.linkStack;
|
|
29
|
-
const topIndex = stack.length - 1;
|
|
30
|
-
const topLink = topIndex >= 0 ? stack[topIndex] : null;
|
|
31
|
-
if (topLink && topLink.destination === null && (0, _link.isSameScreenFamily)(topLink.source, source)) {
|
|
32
|
-
topLink.source = source;
|
|
33
|
-
if (!topLink.initialSource) {
|
|
34
|
-
topLink.initialSource = source;
|
|
35
|
-
}
|
|
36
|
-
return state;
|
|
37
|
-
}
|
|
38
|
-
stack.push({
|
|
39
|
-
source,
|
|
40
|
-
destination: null,
|
|
41
|
-
initialSource: source
|
|
42
|
-
});
|
|
43
|
-
return state;
|
|
44
|
-
}
|
|
45
|
-
const stack = state[tag]?.linkStack;
|
|
46
|
-
if (!stack || stack.length === 0) return state;
|
|
47
|
-
const targetIndex = (0, _link.selectSourceUpdateTargetIndex)(stack, screenKey);
|
|
48
|
-
if (targetIndex === -1) return state;
|
|
49
|
-
const link = stack[targetIndex];
|
|
92
|
+
link.group = group ?? link.group;
|
|
50
93
|
link.source = source;
|
|
51
|
-
|
|
52
|
-
|
|
94
|
+
link.initialSource ??= source;
|
|
95
|
+
pairLinks[linkKey] = link;
|
|
96
|
+
const pendingPairKey = (0, _linkPairs.createPendingPairKey)(screenKey);
|
|
97
|
+
if (pendingPairKey !== pairKey) {
|
|
98
|
+
(0, _linkPairs.removePairLink)(state, pendingPairKey, linkKey);
|
|
53
99
|
}
|
|
54
100
|
return state;
|
|
55
101
|
});
|
|
56
102
|
}
|
|
57
|
-
function setDestination(
|
|
103
|
+
function setDestination(pairKey, tag, screenKey, bounds, styles = {}, group) {
|
|
58
104
|
"worklet";
|
|
59
105
|
|
|
60
|
-
_state.
|
|
106
|
+
_state.pairs.modify(state => {
|
|
61
107
|
"worklet";
|
|
62
108
|
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
if (targetIndex === -1) return state;
|
|
67
|
-
const link = stack[targetIndex];
|
|
68
|
-
const destination = {
|
|
69
|
-
screenKey,
|
|
70
|
-
bounds,
|
|
71
|
-
styles
|
|
72
|
-
};
|
|
73
|
-
link.destination = destination;
|
|
74
|
-
if (!link.initialDestination) {
|
|
75
|
-
link.initialDestination = destination;
|
|
76
|
-
}
|
|
109
|
+
const linkKey = toLinkKey(tag);
|
|
110
|
+
promotePendingSource(state, pairKey, linkKey);
|
|
111
|
+
writeDestination(state, pairKey, linkKey, screenKey, bounds, styles, group);
|
|
77
112
|
return state;
|
|
78
113
|
});
|
|
79
114
|
}
|
|
80
|
-
function
|
|
115
|
+
function setActiveGroupId(pairKey, group, tag) {
|
|
81
116
|
"worklet";
|
|
82
117
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const lastLink = stack[stack.length - 1];
|
|
90
|
-
return lastLink ?? null;
|
|
91
|
-
}
|
|
92
|
-
for (let i = stack.length - 1; i >= 0; i--) {
|
|
93
|
-
const link = stack[i];
|
|
94
|
-
if ((0, _link.isCompletedLinkForScreenKey)(link, screenKey)) {
|
|
95
|
-
return link;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
return null;
|
|
118
|
+
_state.pairs.modify(state => {
|
|
119
|
+
"worklet";
|
|
120
|
+
|
|
121
|
+
writeGroup(state, pairKey, group, toLinkKey(tag));
|
|
122
|
+
return state;
|
|
123
|
+
});
|
|
99
124
|
}
|
|
100
|
-
function
|
|
125
|
+
function getActiveGroupId(pairKey, group) {
|
|
101
126
|
"worklet";
|
|
102
127
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return
|
|
128
|
+
return (0, _linkPairs.getActiveGroupId)(_state.pairs.get(), pairKey, group);
|
|
129
|
+
}
|
|
130
|
+
function getLink(pairKey, tag) {
|
|
131
|
+
"worklet";
|
|
132
|
+
|
|
133
|
+
return (0, _linkPairs.getLink)(_state.pairs.get(), pairKey, toLinkKey(tag));
|
|
134
|
+
}
|
|
135
|
+
const isCompletedLink = link => {
|
|
136
|
+
"worklet";
|
|
137
|
+
|
|
138
|
+
return !!link?.destination;
|
|
139
|
+
};
|
|
140
|
+
function getResolvedLink(pairKey, tag) {
|
|
141
|
+
"worklet";
|
|
142
|
+
|
|
143
|
+
const state = _state.pairs.get();
|
|
144
|
+
const linkKey = toLinkKey(tag);
|
|
145
|
+
const group = (0, _linkPairs.getGroupKeyFromTag)(tag);
|
|
146
|
+
const requestedLink = (0, _linkPairs.getLink)(state, pairKey, linkKey);
|
|
147
|
+
|
|
148
|
+
// Group active ids can update before the new member has a full source/destination
|
|
149
|
+
// link, so unresolved grouped links fall back to the initial id's measurements.
|
|
150
|
+
if (!group || isCompletedLink(requestedLink)) {
|
|
151
|
+
return {
|
|
152
|
+
tag,
|
|
153
|
+
link: requestedLink
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
const initialId = state[pairKey]?.groups?.[group]?.initialId;
|
|
157
|
+
if (initialId) {
|
|
158
|
+
const initialLink = (0, _linkPairs.getLink)(state, pairKey, initialId);
|
|
159
|
+
if (isCompletedLink(initialLink)) {
|
|
160
|
+
return {
|
|
161
|
+
tag: (0, _linkPairs.createGroupTag)(group, initialId),
|
|
162
|
+
link: initialLink
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return {
|
|
167
|
+
tag,
|
|
168
|
+
link: requestedLink
|
|
169
|
+
};
|
|
109
170
|
}
|
|
110
|
-
function
|
|
171
|
+
function getSource(pairKey, tag) {
|
|
111
172
|
"worklet";
|
|
112
173
|
|
|
113
|
-
return (0,
|
|
174
|
+
return (0, _linkPairs.getSource)(_state.pairs.get(), pairKey, toLinkKey(tag));
|
|
114
175
|
}
|
|
115
|
-
function
|
|
176
|
+
function getDestination(pairKey, tag) {
|
|
116
177
|
"worklet";
|
|
117
178
|
|
|
118
|
-
return (0,
|
|
179
|
+
return (0, _linkPairs.getDestination)(_state.pairs.get(), pairKey, toLinkKey(tag));
|
|
119
180
|
}
|
|
120
181
|
//# sourceMappingURL=links.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_linkPairs","require","_state","toLinkKey","tag","getLinkKeyFromTag","createLinkSide","screenKey","bounds","styles","writePairLink","state","pairKey","linkKey","link","ensurePairLinks","writeGroup","group","activeId","initialId","previousInitialId","groups","ensurePairGroups","writeDestination","getPairLink","destination","initialDestination","promotePendingSource","sourceScreenKey","getSourceScreenKeyFromPairKey","pendingPairKey","createPendingPairKey","pendingLink","pendingGroupState","removePairLink","setSource","pairs","modify","source","pairLinks","existingLink","initialSource","setDestination","setActiveGroupId","getActiveGroupId","getPairActiveGroupId","get","getLink","isCompletedLink","getResolvedLink","getGroupKeyFromTag","requestedLink","initialLink","createGroupTag","getSource","getPairSource","getDestination","getPairDestination"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/links.ts"],"mappings":";;;;;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAuBA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,SAAS,GAAIC,GAAU,IAAc;EAC1C,SAAS;;EACT,OAAO,IAAAC,4BAAiB,EAACD,GAAG,CAAC;AAC9B,CAAC;AAED,MAAME,cAAc,GAAGA,CACtBC,SAAoB,EACpBC,MAA0B,EAC1BC,MAAkB,KACd;EACJ,SAAS;;EACT,OAAO;IACNF,SAAS;IACTC,MAAM;IACNC;EACD,CAAC;AACF,CAAC;AAED,MAAMC,aAAa,GAAGA,CACrBC,KAAqB,EACrBC,OAAsB,EACtBC,OAAgB,EAChBC,IAAa,KACT;EACJ,SAAS;;EACT,IAAAC,0BAAe,EAACJ,KAAK,EAAEC,OAAO,CAAC,CAACC,OAAO,CAAC,GAAGC,IAAI;AAChD,CAAC;AAED,MAAME,UAAU,GAAGA,CAClBL,KAAqB,EACrBC,OAAsB,EACtBK,KAAe,EACfC,QAAiB,EACjBC,SAAmB,KACf;EACJ,SAAS;;EACT,MAAMC,iBAAiB,GAAGT,KAAK,CAACC,OAAO,CAAC,EAAES,MAAM,GAAGJ,KAAK,CAAC,EAAEE,SAAS;EAEpE,IAAAG,2BAAgB,EAACX,KAAK,EAAEC,OAAO,CAAC,CAACK,KAAK,CAAC,GAAG;IACzCC,QAAQ;IACRC,SAAS,EAAEC,iBAAiB,IAAID,SAAS,IAAID;EAC9C,CAAC;AACF,CAAC;AAED,MAAMK,gBAAgB,GAAGA,CACxBZ,KAAqB,EACrBC,OAAsB,EACtBC,OAAgB,EAChBN,SAAoB,EACpBC,MAA0B,EAC1BC,MAAkB,EAClBQ,KAAgB,KACZ;EACJ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,OAAO,EAAET,SAAS,CAACC,GAAG,CAAC,CAAC;AAChE","ignoreList":[]}
|
|
@@ -4,56 +4,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.resolveTransitionPair = resolveTransitionPair;
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
function findCompletedLinkByDestination(stack, screenKey) {
|
|
7
|
+
var _linkPairs = require("../helpers/link-pairs.helpers");
|
|
8
|
+
var _links = require("./links");
|
|
9
|
+
function resolvePairKey(context) {
|
|
11
10
|
"worklet";
|
|
12
11
|
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (!screenKey) return null;
|
|
20
|
-
return (0, _findLatest.findLatest)(stack, link => !!link.destination && (0, _matching.matchesScreenKey)(link.source, screenKey));
|
|
21
|
-
}
|
|
22
|
-
function findPendingLinkBySource(stack, screenKey) {
|
|
23
|
-
"worklet";
|
|
24
|
-
|
|
25
|
-
if (!screenKey) return null;
|
|
26
|
-
return (0, _findLatest.findLatest)(stack, link => link.destination === null && (0, _matching.matchesScreenKey)(link.source, screenKey));
|
|
27
|
-
}
|
|
28
|
-
function findEnteringTransitionLink(stack, context) {
|
|
29
|
-
"worklet";
|
|
30
|
-
|
|
31
|
-
return findCompletedLinkByDestination(stack, context.currentScreenKey) ?? findPendingLinkBySource(stack, context.previousScreenKey) ?? findCompletedLinkBySource(stack, context.previousScreenKey);
|
|
32
|
-
}
|
|
33
|
-
function findExitingTransitionLink(stack, context) {
|
|
34
|
-
"worklet";
|
|
35
|
-
|
|
36
|
-
return findCompletedLinkBySource(stack, context.currentScreenKey) ?? findCompletedLinkByDestination(stack, context.nextScreenKey) ?? findPendingLinkBySource(stack, context.currentScreenKey);
|
|
12
|
+
if (context.entering) {
|
|
13
|
+
if (!context.previousScreenKey || !context.currentScreenKey) return null;
|
|
14
|
+
return (0, _linkPairs.createScreenPairKey)(context.previousScreenKey, context.currentScreenKey);
|
|
15
|
+
}
|
|
16
|
+
if (!context.currentScreenKey || !context.nextScreenKey) return null;
|
|
17
|
+
return (0, _linkPairs.createScreenPairKey)(context.currentScreenKey, context.nextScreenKey);
|
|
37
18
|
}
|
|
38
19
|
function resolveTransitionPair(tag, context) {
|
|
39
20
|
"worklet";
|
|
40
21
|
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const matchedLink = stack && stack.length > 0 ? context.entering ? findEnteringTransitionLink(stack, context) : findExitingTransitionLink(stack, context) : null;
|
|
44
|
-
const sourceBounds = matchedLink?.source?.bounds ?? null;
|
|
45
|
-
const destinationBounds = matchedLink?.destination?.bounds ?? null;
|
|
46
|
-
const sourceStyles = matchedLink?.source?.styles ?? null;
|
|
47
|
-
const destinationStyles = matchedLink?.destination?.styles ?? null;
|
|
48
|
-
const sourceScreenKey = matchedLink?.source?.screenKey ?? null;
|
|
49
|
-
const destinationScreenKey = matchedLink?.destination?.screenKey ?? null;
|
|
22
|
+
const pairKey = resolvePairKey(context);
|
|
23
|
+
const matchedLink = pairKey ? (0, _links.getResolvedLink)(pairKey, tag).link : null;
|
|
50
24
|
return {
|
|
51
|
-
sourceBounds,
|
|
52
|
-
destinationBounds,
|
|
53
|
-
sourceStyles,
|
|
54
|
-
destinationStyles,
|
|
55
|
-
sourceScreenKey,
|
|
56
|
-
destinationScreenKey
|
|
25
|
+
sourceBounds: matchedLink?.source.bounds ?? null,
|
|
26
|
+
destinationBounds: matchedLink?.destination?.bounds ?? null,
|
|
27
|
+
sourceStyles: matchedLink?.source.styles ?? null,
|
|
28
|
+
destinationStyles: matchedLink?.destination?.styles ?? null,
|
|
29
|
+
sourceScreenKey: matchedLink?.source.screenKey ?? null,
|
|
30
|
+
destinationScreenKey: matchedLink?.destination?.screenKey ?? null
|
|
57
31
|
};
|
|
58
32
|
}
|
|
59
33
|
//# sourceMappingURL=resolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_linkPairs","require","_links","resolvePairKey","context","entering","previousScreenKey","currentScreenKey","createScreenPairKey","nextScreenKey","resolveTransitionPair","tag","pairKey","matchedLink","getResolvedLink","link","sourceBounds","source","bounds","destinationBounds","destination","sourceStyles","styles","destinationStyles","sourceScreenKey","screenKey","destinationScreenKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OAAA;AAEA,SAASE,cAAcA,CACtBC,OAAiC,EACV;EACvB,SAAS;;EAET,IAAIA,OAAO,CAACC,QAAQ,EAAE;IACrB,IAAI,CAACD,OAAO,CAACE,iBAAiB,IAAI,CAACF,OAAO,CAACG,gBAAgB,EAAE,OAAO,IAAI;IACxE,OAAO,IAAAC,8BAAmB,EACzBJ,OAAO,CAACE,iBAAiB,EACzBF,OAAO,CAACG,gBACT,CAAC;EACF;EAEA,IAAI,CAACH,OAAO,CAACG,gBAAgB,IAAI,CAACH,OAAO,CAACK,aAAa,EAAE,OAAO,IAAI;EACpE,OAAO,IAAAD,8BAAmB,EAACJ,OAAO,CAACG,gBAAgB,EAAEH,OAAO,CAACK,aAAa,CAAC;AAC5E;AAEA,SAASC,qBAAqBA,CAC7BC,GAAU,EACVP,OAAiC,EACR;EACzB,SAAS;;EACT,MAAMQ,OAAO,GAAGT,cAAc,CAACC,OAAO,CAAC;EACvC,MAAMS,WAAW,GAAGD,OAAO,GAAG,IAAAE,sBAAe,EAACF,OAAO,EAAED,GAAG,CAAC,CAACI,IAAI,GAAG,IAAI;EAEvE,OAAO;IACNC,YAAY,EAAEH,WAAW,EAAEI,MAAM,CAACC,MAAM,IAAI,IAAI;IAChDC,iBAAiB,EAAEN,WAAW,EAAEO,WAAW,EAAEF,MAAM,IAAI,IAAI;IAC3DG,YAAY,EAAER,WAAW,EAAEI,MAAM,CAACK,MAAM,IAAI,IAAI;IAChDC,iBAAiB,EAAEV,WAAW,EAAEO,WAAW,EAAEE,MAAM,IAAI,IAAI;IAC3DE,eAAe,EAAEX,WAAW,EAAEI,MAAM,CAACQ,SAAS,IAAI,IAAI;IACtDC,oBAAoB,EAAEb,WAAW,EAAEO,WAAW,EAAEK,SAAS,IAAI;EAC9D,CAAC;AACF","ignoreList":[]}
|
|
@@ -3,8 +3,31 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.pairs = exports.boundaryRegistry = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
-
const
|
|
9
|
-
|
|
8
|
+
const boundaryRegistry = exports.boundaryRegistry = (0, _reactNativeReanimated.makeMutable)({});
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Transition links scoped per screen pair.
|
|
12
|
+
*
|
|
13
|
+
* Links used to live in a flat array that acted like a global history. To find
|
|
14
|
+
* the right link, we had to scan for the latest pending or completed entry that
|
|
15
|
+
* matched a screen, which made refreshes and rapid triggers tricky to handle.
|
|
16
|
+
*
|
|
17
|
+
* Keying by screen pair fixes that: each transition lives under its pair, and
|
|
18
|
+
* every shared boundary id maps to a single link in that pair. Refreshing the
|
|
19
|
+
* source or destination just overwrites the same slot instead of pushing a new
|
|
20
|
+
* history entry.
|
|
21
|
+
*
|
|
22
|
+
* Example:
|
|
23
|
+
*
|
|
24
|
+
* {
|
|
25
|
+
* "a<>b": {
|
|
26
|
+
* links: {
|
|
27
|
+
* "unique-tag-1": { source: ..., destination: ... },
|
|
28
|
+
* },
|
|
29
|
+
* },
|
|
30
|
+
* }
|
|
31
|
+
*/
|
|
32
|
+
const pairs = exports.pairs = (0, _reactNativeReanimated.makeMutable)({});
|
|
10
33
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","boundaryRegistry","exports","makeMutable","pairs"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/state.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKO,MAAMC,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,IAAAE,kCAAW,EAAuB,CAAC,CAAC,CAAC;;AAErE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAG,IAAAD,kCAAW,EAAiB,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -20,6 +20,7 @@ function createGestureBag() {
|
|
|
20
20
|
y: (0, _reactNativeReanimated.makeMutable)(0),
|
|
21
21
|
normX,
|
|
22
22
|
normY,
|
|
23
|
+
velocity: (0, _reactNativeReanimated.makeMutable)(0),
|
|
23
24
|
scale,
|
|
24
25
|
normScale,
|
|
25
26
|
focalX: (0, _reactNativeReanimated.makeMutable)(0),
|
|
@@ -59,6 +60,7 @@ const GestureStore = exports.GestureStore = (0, _createStore.createStore)({
|
|
|
59
60
|
(0, _reactNativeReanimated.cancelAnimation)(bag.y);
|
|
60
61
|
(0, _reactNativeReanimated.cancelAnimation)(bag.normX);
|
|
61
62
|
(0, _reactNativeReanimated.cancelAnimation)(bag.normY);
|
|
63
|
+
(0, _reactNativeReanimated.cancelAnimation)(bag.velocity);
|
|
62
64
|
(0, _reactNativeReanimated.cancelAnimation)(bag.scale);
|
|
63
65
|
(0, _reactNativeReanimated.cancelAnimation)(bag.normScale);
|
|
64
66
|
(0, _reactNativeReanimated.cancelAnimation)(bag.focalX);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_createStore","createGestureBag","normX","makeMutable","normY","scale","normScale","dismissing","dragging","settling","active","x","y","focalX","focalY","raw","direction","normalizedX","normalizedY","isDismissing","isDragging","GestureStore","exports","createStore","createBag","disposeBag","bag","cancelAnimation"],"sourceRoot":"../../../../src","sources":["shared/stores/gesture.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AASA,IAAAC,YAAA,GAAAD,OAAA;
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_createStore","createGestureBag","normX","makeMutable","normY","scale","normScale","dismissing","dragging","settling","active","x","y","velocity","focalX","focalY","raw","direction","normalizedX","normalizedY","isDismissing","isDragging","GestureStore","exports","createStore","createBag","disposeBag","bag","cancelAnimation"],"sourceRoot":"../../../../src","sources":["shared/stores/gesture.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AASA,IAAAC,YAAA,GAAAD,OAAA;AA+CA,SAASE,gBAAgBA,CAAA,EAAoB;EAC5C,MAAMC,KAAK,GAAG,IAAAC,kCAAW,EAAC,CAAC,CAAC;EAC5B,MAAMC,KAAK,GAAG,IAAAD,kCAAW,EAAC,CAAC,CAAC;EAC5B,MAAME,KAAK,GAAG,IAAAF,kCAAW,EAAC,CAAC,CAAC;EAC5B,MAAMG,SAAS,GAAG,IAAAH,kCAAW,EAAC,CAAC,CAAC;EAChC,MAAMI,UAAU,GAAG,IAAAJ,kCAAW,EAAC,CAAC,CAAC;EACjC,MAAMK,QAAQ,GAAG,IAAAL,kCAAW,EAAC,CAAC,CAAC;EAC/B,MAAMM,QAAQ,GAAG,IAAAN,kCAAW,EAAC,CAAC,CAAC;EAC/B,MAAMO,MAAM,GAAG,IAAAP,kCAAW,EAAuB,IAAI,CAAC;EAEtD,OAAO;IACNQ,CAAC,EAAE,IAAAR,kCAAW,EAAC,CAAC,CAAC;IACjBS,CAAC,EAAE,IAAAT,kCAAW,EAAC,CAAC,CAAC;IACjBD,KAAK;IACLE,KAAK;IACLS,QAAQ,EAAE,IAAAV,kCAAW,EAAC,CAAC,CAAC;IAC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;IAC9B,IAAAsB,sCAAe,EAACD,GAAG,CAACb,MAAM,CAAC;IAC3B,IAAAc,sCAAe,EAACD,GAAG,CAACZ,MAAM,CAAC;IAC3B,IAAAa,sCAAe,EAACD,GAAG,CAACX,GAAG,CAACL,CAAC,CAAC;IAC1B,IAAAiB,sCAAe,EAACD,GAAG,CAACX,GAAG,CAACJ,CAAC,CAAC;IAC1B,IAAAgB,sCAAe,EAACD,GAAG,CAACX,GAAG,CAACd,KAAK,CAAC;IAC9B,IAAA0B,sCAAe,EAACD,GAAG,CAACX,GAAG,CAACZ,KAAK,CAAC;IAC9B,IAAAwB,sCAAe,EAACD,GAAG,CAACX,GAAG,CAACX,KAAK,CAAC;IAC9B,IAAAuB,sCAAe,EAACD,GAAG,CAACX,GAAG,CAACV,SAAS,CAAC;IAClC,IAAAsB,sCAAe,EAACD,GAAG,CAACpB,UAAU,CAAC;IAC/B,IAAAqB,sCAAe,EAACD,GAAG,CAACnB,QAAQ,CAAC;IAC7B,IAAAoB,sCAAe,EAACD,GAAG,CAAClB,QAAQ,CAAC;IAC7B,IAAAmB,sCAAe,EAACD,GAAG,CAACjB,MAAM,CAAC;IAC3B,IAAAkB,sCAAe,EAACD,GAAG,CAACV,SAAS,CAAC;EAC/B;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
let GestureActivationState = exports.
|
|
6
|
+
exports.GestureActivationState = void 0;
|
|
7
|
+
let GestureActivationState = exports.GestureActivationState = /*#__PURE__*/function (GestureActivationState) {
|
|
8
8
|
GestureActivationState[GestureActivationState["PENDING"] = 0] = "PENDING";
|
|
9
9
|
GestureActivationState[GestureActivationState["PASSED"] = 1] = "PASSED";
|
|
10
10
|
GestureActivationState[GestureActivationState["FAILED"] = 2] = "FAILED";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["GestureActivationState","exports"
|
|
1
|
+
{"version":3,"names":["GestureActivationState","exports"],"sourceRoot":"../../../../src","sources":["shared/types/gesture.types.ts"],"mappings":";;;;;;IA8DYA,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,0BAAtBA,sBAAsB;EAAtBA,sBAAsB,CAAtBA,sBAAsB;EAAtBA,sBAAsB,CAAtBA,sBAAsB;EAAtBA,sBAAsB,CAAtBA,sBAAsB;EAAA,OAAtBA,sBAAsB;AAAA;AAQlC;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -39,7 +39,8 @@ const createBoundsAccessorParts = ({
|
|
|
39
39
|
});
|
|
40
40
|
const computed = (0, _prepareBoundStyles.prepareBoundStyles)({
|
|
41
41
|
props,
|
|
42
|
-
options
|
|
42
|
+
options,
|
|
43
|
+
syncGroupActiveId: true
|
|
43
44
|
});
|
|
44
45
|
const scopedTag = tag ?? "";
|
|
45
46
|
const target = Object.isExtensible(computed) ? computed : {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_createBoundTag","require","_createInterpolators","_createLinkAccessor","_prepareBoundStyles","createBoundsAccessorParts","getProps","extendResult","getMeasured","getSnapshot","getLink","createLinkAccessor","interpolateStyle","interpolateBounds","createInterpolators","computeBounds","params","props","options","id","tag","createBoundTag","group","computed","prepareBoundStyles","scopedTag","target","Object","isExtensible","defineProperties","value","key","enumerable","configurable","property","fallback","fallbackOrTargetKey","createBoundsAccessorCore","assign","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"mappings":";;;;;;AAKA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AA0BA,MAAMI,yBAAyB,GAAGA,CAAC;EAClCC,QAAQ;EACRC;AAC+B,CAAC,KAAK;EACrC,SAAS;;EAET,MAAM;IAAEC,WAAW;IAAEC,WAAW;IAAEC;EAAQ,CAAC,GAAG,IAAAC,sCAAkB,EAACL,QAAQ,CAAC;EAC1E,MAAM;IAAEM,gBAAgB;IAAEC;EAAkB,CAAC,GAAG,IAAAC,wCAAmB,EAAC;IACnER,QAAQ;IACRI;EACD,CAAC,CAAC;EAEF,MAAMK,aAAa,GAClBC,MAAU,IACkB;IAC5B,SAAS;;IACT,MAAMC,KAAK,GAAGX,QAAQ,CAAC,CAAC;IACxB,MAAMY,OAAO,GAAIF,MAAM,IAAI;MAAEG,EAAE,EAAE;IAAG,CAAO;IAC3C,MAAMC,GAAG,GAAG,IAAAC,8BAAc,EAAC;MAC1BF,EAAE,EAAED,OAAO,CAACC,EAAE;MACdG,KAAK,EAAEJ,OAAO,CAACI;IAChB,CAAC,CAAC;IAEF,MAAMC,QAAQ,GAAG,IAAAC,sCAAkB,EAAC;MACnCP,KAAK;MACLC;
|
|
1
|
+
{"version":3,"names":["_createBoundTag","require","_createInterpolators","_createLinkAccessor","_prepareBoundStyles","createBoundsAccessorParts","getProps","extendResult","getMeasured","getSnapshot","getLink","createLinkAccessor","interpolateStyle","interpolateBounds","createInterpolators","computeBounds","params","props","options","id","tag","createBoundTag","group","computed","prepareBoundStyles","syncGroupActiveId","scopedTag","target","Object","isExtensible","defineProperties","value","key","enumerable","configurable","property","fallback","fallbackOrTargetKey","createBoundsAccessorCore","assign","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"mappings":";;;;;;AAKA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AA0BA,MAAMI,yBAAyB,GAAGA,CAAC;EAClCC,QAAQ;EACRC;AAC+B,CAAC,KAAK;EACrC,SAAS;;EAET,MAAM;IAAEC,WAAW;IAAEC,WAAW;IAAEC;EAAQ,CAAC,GAAG,IAAAC,sC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,CAAC;QACDO,UAAU,EAAE,KAAK;QACjBC,YAAY,EAAE;MACf,CAAC;MACDtB,gBAAgB,EAAE;QACjBmB,KAAK,EAAEA,CACNI,QAAgD,EAChDC,QAAiB,KACb;UACJ,SAAS;;UACT,OAAOxB,gBAAgB,CAACc,SAAS,EAAES,QAAQ,EAAEC,QAAQ,CAAC;QACvD,CAAC;QACDH,UAAU,EAAE,KAAK;QACjBC,YAAY,EAAE;MACf,CAAC;MACDrB,iBAAiB,EAAE;QAClBkB,KAAK,EAAEA,CACNI,QAAiD,EACjDE,mBAA6D,EAC7DD,QAAiB,KACb;UACJ,SAAS;;UACT,OAAOvB,iBAAiB,CACvBa,SAAS,EACTS,QAAQ,EACRE,mBAAmB,EACnBD,QACD,CAAC;QACF,CAAC;QACDH,UAAU,EAAE,KAAK;QACjBC,YAAY,EAAE;MACf;IACD,CAAC,CAAC;IAEF3B,YAAY,GAAG;MACdoB,MAAM,EAAEA,MAAgC;MACxCV,KAAK;MACLG;IACD,CAAC,CAAC;IAEF,OAAOO,MAAM;EACd,CAAmB;EAEnB,OAAO;IACNZ,aAAa;IACbP,WAAW;IACXC,WAAW;IACXC,OAAO;IACPE,gBAAgB;IAChBC;EACD,CAAC;AACF,CAAC;AAEM,MAAMyB,wBAAwB,GACpCtB,MAAsC,IACd;EACxB,SAAS;;EAET,MAAM;IACLD,aAAa;IACbP,WAAW;IACXC,WAAW;IACXC,OAAO;IACPE,gBAAgB;IAChBC;EACD,CAAC,GAAGR,yBAAyB,CAACW,MAAM,CAAC;EAErC,OAAOY,MAAM,CAACW,MAAM,CAACxB,aAAa,EAAE;IACnCP,WAAW;IACXC,WAAW;IACXC,OAAO;IACPE,gBAAgB;IAChBC;EACD,CAAC,CAAC;AACH,CAAC;AAAC2B,OAAA,CAAAF,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -5,8 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.createLinkAccessor = void 0;
|
|
7
7
|
var _entries = require("../../../stores/bounds/internals/entries");
|
|
8
|
-
var
|
|
8
|
+
var _links = require("../../../stores/bounds/internals/links");
|
|
9
9
|
var _prepareBoundStyles = require("./prepare-bound-styles");
|
|
10
|
+
var _resolveBoundsPairKey = require("./resolve-bounds-pair-key");
|
|
10
11
|
const toResolvedPair = link => {
|
|
11
12
|
"worklet";
|
|
12
13
|
|
|
@@ -39,11 +40,11 @@ const createLinkAccessor = getProps => {
|
|
|
39
40
|
|
|
40
41
|
const props = getProps();
|
|
41
42
|
const stringTag = String(tag);
|
|
42
|
-
const
|
|
43
|
-
const resolved = (0,
|
|
43
|
+
const pairKey = (0, _resolveBoundsPairKey.resolveBoundsPairKey)(props);
|
|
44
|
+
const resolved = pairKey ? (0, _links.getResolvedLink)(pairKey, stringTag) : {
|
|
44
45
|
tag: stringTag,
|
|
45
|
-
|
|
46
|
-
}
|
|
46
|
+
link: null
|
|
47
|
+
};
|
|
47
48
|
const selectedTag = resolved.tag;
|
|
48
49
|
const link = resolved.link;
|
|
49
50
|
if (!link) return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_entries","require","
|
|
1
|
+
{"version":3,"names":["_entries","require","_links","_prepareBoundStyles","_resolveBoundsPairKey","toResolvedPair","link","sourceBounds","source","bounds","destinationBounds","destination","sourceStyles","styles","destinationStyles","sourceScreenKey","screenKey","destinationScreenKey","createLinkAccessor","getProps","getMeasured","tag","key","entry","getEntry","String","getSnapshot","getLink","props","stringTag","pairKey","resolveBoundsPairKey","resolved","getResolvedLink","selectedTag","resolvedPair","id","initialSource","initialDestination","compute","computeOptions","prepareBoundStyles","options","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-link-accessor.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAYA,IAAAE,mBAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAA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