react-native-screen-transitions 3.6.0-alpha.1 → 3.6.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/component-stack/components/component-screen.js +1 -7
- package/lib/commonjs/component-stack/components/component-screen.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +27 -34
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +4 -4
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +17 -19
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +27 -7
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +23 -51
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +33 -40
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/index.js +3 -1
- package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js +75 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.js → utils/measured-bounds.js} +15 -2
- package/lib/commonjs/shared/components/create-boundary-component/utils/measured-bounds.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js +103 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js +52 -0
- package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js.map +1 -0
- package/lib/commonjs/shared/components/native-screen.js +2 -13
- package/lib/commonjs/shared/components/native-screen.js.map +1 -1
- package/lib/commonjs/shared/constants.js +2 -7
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +35 -0
- package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -0
- package/lib/commonjs/shared/providers/register-bounds.provider.js +48 -55
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +1 -10
- package/lib/commonjs/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +1 -6
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js +9 -2
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js +19 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-release.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js +2 -0
- package/lib/commonjs/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +1 -0
- package/lib/commonjs/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js +18 -2
- package/lib/commonjs/shared/providers/screen/gestures/shared/physics.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js +1 -5
- package/lib/commonjs/shared/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +1 -4
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +125 -0
- package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -0
- package/lib/commonjs/shared/stores/bounds/index.js +6 -12
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +13 -21
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/entries.js +49 -9
- package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/links.js +143 -82
- package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +17 -43
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js +26 -3
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/commonjs/shared/stores/gesture.store.js +2 -0
- package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
- package/lib/commonjs/shared/types/gesture.types.js +2 -2
- package/lib/commonjs/shared/types/gesture.types.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +2 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +6 -5
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +21 -8
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bounds-pair-key.js +23 -0
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +91 -199
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js +15 -2
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/config.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +155 -14
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js +20 -19
- package/lib/commonjs/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -1
- package/lib/module/component-stack/components/component-screen.js +2 -8
- package/lib/module/component-stack/components/component-screen.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +27 -34
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +4 -4
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +18 -20
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js +28 -8
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +22 -50
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +33 -40
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/index.js +3 -1
- package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js +70 -0
- package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.js → utils/measured-bounds.js} +13 -1
- package/lib/module/shared/components/create-boundary-component/utils/measured-bounds.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js +98 -0
- package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/utils/source-signals.js +47 -0
- package/lib/module/shared/components/create-boundary-component/utils/source-signals.js.map +1 -0
- package/lib/module/shared/components/native-screen.js +3 -14
- package/lib/module/shared/components/native-screen.js.map +1 -1
- package/lib/module/shared/constants.js +1 -6
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js +30 -0
- package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -0
- package/lib/module/shared/providers/register-bounds.provider.js +48 -55
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js +1 -10
- package/lib/module/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js +2 -2
- package/lib/module/shared/providers/screen/gestures/pan/pan-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js +10 -3
- package/lib/module/shared/providers/screen/gestures/pan/pan-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-release.js +20 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-release.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js +2 -0
- package/lib/module/shared/providers/screen/gestures/pan/pan-reset.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js +3 -3
- package/lib/module/shared/providers/screen/gestures/pan/use-pan-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js +3 -3
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js +1 -0
- package/lib/module/shared/providers/screen/gestures/pinch/pinch-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js +3 -3
- package/lib/module/shared/providers/screen/gestures/pinch/use-pinch-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/physics.js +15 -0
- package/lib/module/shared/providers/screen/gestures/shared/physics.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/policy.js +3 -3
- package/lib/module/shared/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +1 -4
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +105 -0
- package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -0
- package/lib/module/shared/stores/bounds/index.js +7 -13
- package/lib/module/shared/stores/bounds/index.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/clear.js +14 -22
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/entries.js +49 -9
- package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/links.js +139 -80
- package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +17 -43
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/state.js +25 -2
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/module/shared/stores/gesture.store.js +2 -0
- package/lib/module/shared/stores/gesture.store.js.map +1 -1
- package/lib/module/shared/types/animation.types.js +0 -4
- package/lib/module/shared/types/animation.types.js.map +1 -1
- package/lib/module/shared/types/gesture.types.js +0 -1
- package/lib/module/shared/types/gesture.types.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +2 -1
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +6 -5
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +21 -8
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/resolve-bounds-pair-key.js +18 -0
- package/lib/module/shared/utils/bounds/helpers/resolve-bounds-pair-key.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js +90 -198
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js +14 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/config.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js +144 -12
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js +20 -19
- package/lib/module/shared/utils/navigation/resolve-scene-neighbors.js.map +1 -1
- package/lib/typescript/component-stack/components/component-screen.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts +1 -0
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts +5 -4
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts +6 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts +5 -4
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +7 -7
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +11 -7
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts +10 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.d.ts → utils/measured-bounds.d.ts} +3 -2
- package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts +22 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts +16 -0
- package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts.map +1 -0
- package/lib/typescript/shared/components/native-screen.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +0 -5
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +1 -1
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts +21 -0
- package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -0
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts +0 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-release.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/pan-reset.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/use-pan-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/pinch-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/use-pinch-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts +7 -0
- package/lib/typescript/shared/providers/screen/gestures/shared/physics.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts +0 -10
- package/lib/typescript/shared/providers/screen/gestures/shared/policy.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +18 -0
- package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -0
- package/lib/typescript/shared/stores/bounds/index.d.ts +6 -12
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts +13 -10
- package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts +26 -5
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +14 -7
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/stores/gesture.store.d.ts +1 -0
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +0 -18
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +8 -1
- package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +1 -1
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bounds-pair-key.d.ts +4 -0
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bounds-pair-key.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts +14 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/config.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts +48 -7
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +2 -3
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts +3 -2
- package/lib/typescript/shared/utils/navigation/resolve-scene-neighbors.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/component-stack/components/component-screen.tsx +3 -11
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +30 -27
- package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +5 -5
- package/src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts +25 -24
- package/src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts +41 -11
- package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +49 -64
- package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +44 -83
- package/src/shared/components/create-boundary-component/index.tsx +3 -1
- package/src/shared/components/create-boundary-component/types.ts +13 -11
- package/src/shared/components/create-boundary-component/utils/destination-signals.ts +129 -0
- package/src/shared/components/create-boundary-component/{hooks/helpers/scroll-measurement.ts → utils/measured-bounds.ts} +25 -1
- package/src/shared/components/create-boundary-component/utils/refresh-signals.ts +164 -0
- package/src/shared/components/create-boundary-component/utils/source-signals.ts +72 -0
- package/src/shared/components/native-screen.tsx +3 -12
- package/src/shared/constants.ts +1 -6
- package/src/shared/index.ts +0 -3
- package/src/shared/providers/helpers/measured-bounds-writes.ts +67 -0
- package/src/shared/providers/register-bounds.provider.tsx +68 -91
- package/src/shared/providers/screen/animation/helpers/accessors/use-build-transition-accessor.ts +0 -14
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +1 -2
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +1 -4
- package/src/shared/providers/screen/gestures/pan/pan-activation.ts +4 -1
- package/src/shared/providers/screen/gestures/pan/pan-lifecycle.ts +18 -2
- package/src/shared/providers/screen/gestures/pan/pan-release.ts +33 -0
- package/src/shared/providers/screen/gestures/pan/pan-reset.ts +3 -0
- package/src/shared/providers/screen/gestures/pan/use-pan-behavior.ts +9 -6
- package/src/shared/providers/screen/gestures/pinch/pinch-activation.ts +5 -2
- package/src/shared/providers/screen/gestures/pinch/pinch-lifecycle.ts +1 -0
- package/src/shared/providers/screen/gestures/pinch/use-pinch-behavior.ts +9 -6
- package/src/shared/providers/screen/gestures/shared/physics.ts +25 -0
- package/src/shared/providers/screen/gestures/shared/policy.ts +3 -5
- package/src/shared/providers/screen/gestures/types.ts +2 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +0 -3
- package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +161 -0
- package/src/shared/stores/bounds/index.ts +10 -20
- package/src/shared/stores/bounds/internals/clear.ts +17 -41
- package/src/shared/stores/bounds/internals/entries.ts +56 -13
- package/src/shared/stores/bounds/internals/links.ts +222 -113
- package/src/shared/stores/bounds/internals/resolver.ts +23 -87
- package/src/shared/stores/bounds/internals/state.ts +27 -5
- package/src/shared/stores/bounds/types.ts +17 -7
- package/src/shared/stores/gesture.store.ts +3 -0
- package/src/shared/types/animation.types.ts +0 -23
- package/src/shared/types/gesture.types.ts +8 -2
- package/src/shared/types/index.ts +0 -4
- package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +1 -0
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +6 -6
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +20 -11
- package/src/shared/utils/bounds/helpers/resolve-bounds-pair-key.ts +22 -0
- package/src/shared/utils/bounds/navigation/reveal/build.ts +153 -297
- package/src/shared/utils/bounds/navigation/reveal/config.ts +20 -1
- package/src/shared/utils/bounds/navigation/reveal/math.ts +234 -18
- package/src/shared/utils/bounds/types/options.ts +2 -3
- package/src/shared/utils/navigation/resolve-scene-neighbors.ts +36 -23
- package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +0 -43
- package/lib/commonjs/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +0 -17
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +0 -28
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +0 -75
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -20
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +0 -16
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +0 -1
- package/lib/commonjs/shared/providers/layout-anchor.provider.js +0 -86
- package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js +0 -49
- package/lib/commonjs/shared/stores/bounds/helpers/entries.helpers.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js +0 -25
- package/lib/commonjs/shared/stores/bounds/helpers/find-latest.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js +0 -30
- package/lib/commonjs/shared/stores/bounds/helpers/groups.helpers.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js +0 -79
- package/lib/commonjs/shared/stores/bounds/helpers/link.helpers.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js +0 -13
- package/lib/commonjs/shared/stores/bounds/helpers/matching.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js +0 -30
- package/lib/commonjs/shared/stores/bounds/helpers/tag-state.helpers.js.map +0 -1
- package/lib/commonjs/shared/stores/bounds/internals/groups.js +0 -102
- package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js +0 -38
- package/lib/module/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +0 -12
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js +0 -23
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +0 -68
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +0 -15
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +0 -12
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +0 -1
- package/lib/module/shared/providers/layout-anchor.provider.js +0 -80
- package/lib/module/shared/providers/layout-anchor.provider.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js +0 -42
- package/lib/module/shared/stores/bounds/helpers/entries.helpers.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/find-latest.js +0 -19
- package/lib/module/shared/stores/bounds/helpers/find-latest.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/groups.helpers.js +0 -23
- package/lib/module/shared/stores/bounds/helpers/groups.helpers.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js +0 -69
- package/lib/module/shared/stores/bounds/helpers/link.helpers.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/matching.js +0 -9
- package/lib/module/shared/stores/bounds/helpers/matching.js.map +0 -1
- package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js +0 -24
- package/lib/module/shared/stores/bounds/helpers/tag-state.helpers.js.map +0 -1
- package/lib/module/shared/stores/bounds/internals/groups.js +0 -95
- package/lib/module/shared/stores/bounds/internals/groups.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts +0 -15
- package/lib/typescript/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts +0 -2
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts +0 -22
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +0 -29
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +0 -3
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +0 -8
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +0 -1
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +0 -39
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts +0 -5
- package/lib/typescript/shared/stores/bounds/helpers/entries.helpers.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts +0 -3
- package/lib/typescript/shared/stores/bounds/helpers/find-latest.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts +0 -10
- package/lib/typescript/shared/stores/bounds/helpers/groups.helpers.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts +0 -14
- package/lib/typescript/shared/stores/bounds/helpers/link.helpers.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts +0 -3
- package/lib/typescript/shared/stores/bounds/helpers/matching.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts +0 -5
- package/lib/typescript/shared/stores/bounds/helpers/tag-state.helpers.d.ts.map +0 -1
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +0 -16
- package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +0 -1
- package/src/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.ts +0 -83
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +0 -20
- package/src/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts +0 -48
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +0 -101
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +0 -25
- package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +0 -14
- package/src/shared/providers/layout-anchor.provider.tsx +0 -112
- package/src/shared/stores/bounds/helpers/entries.helpers.ts +0 -55
- package/src/shared/stores/bounds/helpers/find-latest.ts +0 -22
- package/src/shared/stores/bounds/helpers/groups.helpers.ts +0 -27
- package/src/shared/stores/bounds/helpers/link.helpers.ts +0 -131
- package/src/shared/stores/bounds/helpers/matching.ts +0 -11
- package/src/shared/stores/bounds/helpers/tag-state.helpers.ts +0 -24
- package/src/shared/stores/bounds/internals/groups.ts +0 -116
|
@@ -1,20 +1,152 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import { EPSILON } from "../../../../constants";
|
|
4
|
+
import { computeContentTransformGeometry } from "../../helpers/geometry";
|
|
5
|
+
import { DISMISS_SCALE_ORBIT_DEPTH, DRAG_DIRECTIONAL_SCALE_EXPONENT, DRAG_DIRECTIONAL_SCALE_MAX, DRAG_DIRECTIONAL_SCALE_MIN } from "./config";
|
|
6
|
+
function clampUnit(value) {
|
|
7
|
+
"worklet";
|
|
8
|
+
|
|
9
|
+
return Math.min(1, Math.max(0, value));
|
|
10
|
+
}
|
|
11
|
+
export function mixUnit(from, to, progress) {
|
|
12
|
+
"worklet";
|
|
13
|
+
|
|
14
|
+
return from + (to - from) * clampUnit(progress);
|
|
15
|
+
}
|
|
16
|
+
export function interpolateClamped(value, inputStart, inputEnd, outputStart, outputEnd) {
|
|
17
|
+
"worklet";
|
|
18
|
+
|
|
19
|
+
return mixUnit(outputStart, outputEnd, (value - inputStart) / (inputEnd - inputStart));
|
|
20
|
+
}
|
|
21
|
+
export function resolveSafeScale(scale) {
|
|
22
|
+
"worklet";
|
|
23
|
+
|
|
24
|
+
return Math.abs(scale) > EPSILON ? scale : 1;
|
|
25
|
+
}
|
|
26
|
+
export const resolveUnitDragTranslation = (translation, dimension) => {
|
|
10
27
|
"worklet";
|
|
11
28
|
|
|
12
29
|
const baseDistance = Math.max(1, dimension);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
30
|
+
if (translation < -baseDistance) {
|
|
31
|
+
return -baseDistance;
|
|
32
|
+
}
|
|
33
|
+
if (translation > baseDistance) {
|
|
34
|
+
return baseDistance;
|
|
17
35
|
}
|
|
18
|
-
return
|
|
36
|
+
return translation;
|
|
19
37
|
};
|
|
38
|
+
export function resolveRevealDirectionalDragScale(normalized, inverted) {
|
|
39
|
+
"worklet";
|
|
40
|
+
|
|
41
|
+
const dismissalRelative = inverted ? -normalized : normalized;
|
|
42
|
+
if (dismissalRelative >= 0) {
|
|
43
|
+
const rawScale = mixUnit(1, DRAG_DIRECTIONAL_SCALE_MIN, dismissalRelative);
|
|
44
|
+
return rawScale ** DRAG_DIRECTIONAL_SCALE_EXPONENT;
|
|
45
|
+
}
|
|
46
|
+
const oppositeDrag = Math.min(1, Math.abs(dismissalRelative));
|
|
47
|
+
return mixUnit(1, DRAG_DIRECTIONAL_SCALE_MAX, oppositeDrag);
|
|
48
|
+
}
|
|
49
|
+
export function resolveUniformScale({
|
|
50
|
+
sourceWidth,
|
|
51
|
+
sourceHeight,
|
|
52
|
+
destinationWidth,
|
|
53
|
+
destinationHeight
|
|
54
|
+
}) {
|
|
55
|
+
"worklet";
|
|
56
|
+
|
|
57
|
+
const sx = sourceWidth / destinationWidth;
|
|
58
|
+
const sy = sourceHeight / destinationHeight;
|
|
59
|
+
const sourceAspect = sourceWidth / sourceHeight;
|
|
60
|
+
const destinationAspect = destinationWidth / destinationHeight;
|
|
61
|
+
const aspectDifference = Math.abs(sourceAspect - destinationAspect);
|
|
62
|
+
return aspectDifference < 0.1 ? Math.max(sx, sy) : Math.min(sx, sy);
|
|
63
|
+
}
|
|
64
|
+
export function resolveRevealGestureHandoff(rawDrag) {
|
|
65
|
+
"worklet";
|
|
66
|
+
|
|
67
|
+
const clampedRawDrag = clampUnit(rawDrag);
|
|
68
|
+
const gestureSensitivity = mixUnit(0.8, 0.1, clampedRawDrag);
|
|
69
|
+
const releaseBoost = mixUnit(1, 1.1, clampedRawDrag);
|
|
70
|
+
const releaseSensitivity = interpolateClamped(gestureSensitivity, 0.28, 0.9, 0.7, 1);
|
|
71
|
+
return {
|
|
72
|
+
gestureSensitivity,
|
|
73
|
+
gestureReleaseVelocityScale: releaseBoost * releaseSensitivity
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export function resolveDismissScaleHandoff({
|
|
77
|
+
progress,
|
|
78
|
+
releaseScale,
|
|
79
|
+
targetScale,
|
|
80
|
+
velocity
|
|
81
|
+
}) {
|
|
82
|
+
"worklet";
|
|
83
|
+
|
|
84
|
+
const closeProgress = 1 - progress;
|
|
85
|
+
const scaleProgress = Math.sin(Math.PI / 2 * closeProgress);
|
|
86
|
+
const baseScale = releaseScale + (targetScale - releaseScale) * scaleProgress;
|
|
87
|
+
const orbitDepth = DISMISS_SCALE_ORBIT_DEPTH * velocity;
|
|
88
|
+
const orbitScale = 1 - orbitDepth * Math.sin(Math.PI * closeProgress);
|
|
89
|
+
return baseScale * orbitScale;
|
|
90
|
+
}
|
|
91
|
+
function getBoundsCenterX(bounds) {
|
|
92
|
+
"worklet";
|
|
93
|
+
|
|
94
|
+
return bounds.pageX + bounds.width / 2;
|
|
95
|
+
}
|
|
96
|
+
function getBoundsCenterY(bounds) {
|
|
97
|
+
"worklet";
|
|
98
|
+
|
|
99
|
+
return bounds.pageY + bounds.height / 2;
|
|
100
|
+
}
|
|
101
|
+
export function resolveRevealContentBaseTransform({
|
|
102
|
+
progress,
|
|
103
|
+
sourceBounds,
|
|
104
|
+
destinationBounds,
|
|
105
|
+
screenLayout
|
|
106
|
+
}) {
|
|
107
|
+
"worklet";
|
|
108
|
+
|
|
109
|
+
const geometry = computeContentTransformGeometry({
|
|
110
|
+
start: sourceBounds,
|
|
111
|
+
end: destinationBounds,
|
|
112
|
+
entering: true,
|
|
113
|
+
dimensions: screenLayout,
|
|
114
|
+
scaleMode: "uniform"
|
|
115
|
+
});
|
|
116
|
+
return {
|
|
117
|
+
translateX: mixUnit(geometry.tx, 0, progress),
|
|
118
|
+
translateY: mixUnit(geometry.ty, 0, progress),
|
|
119
|
+
scale: mixUnit(geometry.s, 1, progress)
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
export function resolveTrackedSourceElementTransform({
|
|
123
|
+
sourceBounds,
|
|
124
|
+
destinationBounds,
|
|
125
|
+
contentTranslateX,
|
|
126
|
+
contentTranslateY,
|
|
127
|
+
contentScale,
|
|
128
|
+
parentScale,
|
|
129
|
+
screenWidth,
|
|
130
|
+
screenHeight
|
|
131
|
+
}) {
|
|
132
|
+
"worklet";
|
|
133
|
+
|
|
134
|
+
const screenCenterX = screenWidth / 2;
|
|
135
|
+
const screenCenterY = screenHeight / 2;
|
|
136
|
+
const safeParentScale = Math.max(Math.abs(parentScale), EPSILON);
|
|
137
|
+
const safeSourceWidth = Math.max(Math.abs(sourceBounds.width), EPSILON);
|
|
138
|
+
const safeSourceHeight = Math.max(Math.abs(sourceBounds.height), EPSILON);
|
|
139
|
+
const sourceCenterX = getBoundsCenterX(sourceBounds);
|
|
140
|
+
const sourceCenterY = getBoundsCenterY(sourceBounds);
|
|
141
|
+
const destinationCenterX = getBoundsCenterX(destinationBounds);
|
|
142
|
+
const destinationCenterY = getBoundsCenterY(destinationBounds);
|
|
143
|
+
const trackedCenterX = screenCenterX + (destinationCenterX - screenCenterX) * contentScale + contentTranslateX;
|
|
144
|
+
const trackedCenterY = screenCenterY + (destinationCenterY - screenCenterY) * contentScale + contentTranslateY;
|
|
145
|
+
return {
|
|
146
|
+
translateX: (trackedCenterX - screenCenterX) / safeParentScale + screenCenterX - sourceCenterX,
|
|
147
|
+
translateY: (trackedCenterY - screenCenterY) / safeParentScale + screenCenterY - sourceCenterY,
|
|
148
|
+
scaleX: destinationBounds.width * contentScale / (safeSourceWidth * safeParentScale),
|
|
149
|
+
scaleY: destinationBounds.height * contentScale / (safeSourceHeight * safeParentScale)
|
|
150
|
+
};
|
|
151
|
+
}
|
|
20
152
|
//# sourceMappingURL=math.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["EPSILON","computeContentTransformGeometry","DISMISS_SCALE_ORBIT_DEPTH","DRAG_DIRECTIONAL_SCALE_EXPONENT","DRAG_DIRECTIONAL_SCALE_MAX","DRAG_DIRECTIONAL_SCALE_MIN","clampUnit","value","Math","min","max","mixUnit","from","to","progress","interpolateClamped","inputStart","inputEnd","outputStart","outputEnd","resolveSafeScale","scale","abs","resolveUnitDragTranslation","translation","dimension","baseDistance","resolveRevealDirectionalDragScale","normalized","inverted","dismissalRelative","rawScale","oppositeDrag","resolveUniformScale","sourceWidth","sourceHeight","destinationWidth","destinationHeight","sx","sy","sourceAspect","destinationAspect","aspectDifference","resolveRevealGestureHandoff","rawDrag","clampedRawDrag","gestureSensitivity","releaseBoost","releaseSensitivity","gestureReleaseVelocityScale","resolveDismissScaleHandoff","releaseScale","targetScale","velocity","closeProgress","scaleProgress","sin","PI","baseScale","orbitDepth","orbitScale","getBoundsCenterX","bounds","pageX","width","getBoundsCenterY","pageY","height","resolveRevealContentBaseTransform","sourceBounds","destinationBounds","screenLayout","geometry","start","end","entering","dimensions","scaleMode","translateX","tx","translateY","ty","s","resolveTrackedSourceElementTransform","contentTranslateX","contentTranslateY","contentScale","parentScale","screenWidth","screenHeight","screenCenterX","screenCenterY","safeParentScale","safeSourceWidth","safeSourceHeight","sourceCenterX","sourceCenterY","destinationCenterX","destinationCenterY","trackedCenterX","trackedCenterY","scaleX","scaleY"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/navigation/reveal/math.ts"],"mappings":";;AACA,SAASA,OAAO,QAAQ,uBAAuB;AAE/C,SAASC,+BAA+B,QAAQ,wBAAwB;AACxE,SACCC,yBAAyB,EACzBC,+BAA+B,EAC/BC,0BAA0B,EAC1BC,0BAA0B,QACpB,UAAU;AAEjB,SAASC,SAASA,CAACC,KAAa,EAAE;EACjC,SAAS;;EACT,OAAOC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEH,KAAK,CAAC,CAAC;AACvC;AAEA,OAAO,SAASI,OAAOA,CAACC,IAAY,EAAEC,EAAU,EAAEC,QAAgB,EAAE;EACnE,SAAS;;EACT,OAAOF,IAAI,GAAG,CAACC,EAAE,GAAGD,IAAI,IAAIN,SAAS,CAACQ,QAAQ,CAAC;AAChD;AAEA,OAAO,SAASC,kBAAkBA,CACjCR,KAAa,EACbS,UAAkB,EAClBC,QAAgB,EAChBC,WAAmB,EACnBC,SAAiB,EAChB;EACD,SAAS;;EACT,OAAOR,OAAO,CACbO,WAAW,EACXC,SAAS,EACT,CAACZ,KAAK,GAAGS,UAAU,KAAKC,QAAQ,GAAGD,UAAU,CAC9C,CAAC;AACF;AAEA,OAAO,SAASI,gBAAgBA,CAACC,KAAa,EAAE;EAC/C,SAAS;;EACT,OAAOb,IAAI,CAACc,GAAG,CAACD,KAAK,CAAC,GAAGrB,OAAO,GAAGqB,KAAK,GAAG,CAAC;AAC7C;AAEA,OAAO,MAAME,0BAA0B,GAAGA,CACzCC,WAAmB,EACnBC,SAAiB,KACb;EACJ,SAAS;;EAET,MAAMC,YAAY,GAAGlB,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEe,SAAS,CAAC;EAE3C,IAAID,WAAW,GAAG,CAACE,YAAY,EAAE;IAChC,OAA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,CAAC;EACpD,MAAM2B,aAAa,GAAG/B,gBAAgB,CAACI,YAAY,CAAC;EACpD,MAAM4B,kBAAkB,GAAGpC,gBAAgB,CAACS,iBAAiB,CAAC;EAC9D,MAAM4B,kBAAkB,GAAGjC,gBAAgB,CAACK,iBAAiB,CAAC;EAE9D,MAAM6B,cAAc,GACnBT,aAAa,GACb,CAACO,kBAAkB,GAAGP,aAAa,IAAIJ,YAAY,GACnDF,iBAAiB;EAClB,MAAMgB,cAAc,GACnBT,aAAa,GACb,CAACO,kBAAkB,GAAGP,aAAa,IAAIL,YAAY,GACnDD,iBAAiB;EAElB,OAAO;IACNP,UAAU,EACT,CAACqB,cAAc,GAAGT,aAAa,IAAIE,eAAe,GAClDF,aAAa,GACbK,aAAa;IACdf,UAAU,EACT,CAACoB,cAAc,GAAGT,aAAa,IAAIC,eAAe,GAClDD,aAAa,GACbK,aAAa;IACdK,MAAM,EACJ/B,iBAAiB,CAACN,KAAK,GAAGsB,YAAY,IACtCO,eAAe,GAAGD,eAAe,CAAC;IACpCU,MAAM,EACJhC,iBAAiB,CAACH,MAAM,GAAGmB,YAAY,IACvCQ,gBAAgB,GAAGF,eAAe;EACrC,CAAC;AACF","ignoreList":[]}
|
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
const findPreviousDescriptor = (scenes, sceneIndex, isRouteClosing) => {
|
|
4
|
+
let firstClosingBelow;
|
|
5
|
+
for (let i = sceneIndex - 1; i >= 0; i--) {
|
|
6
|
+
const candidate = scenes[i];
|
|
7
|
+
if (!candidate) continue;
|
|
8
|
+
if (!isRouteClosing(candidate.route.key)) {
|
|
9
|
+
return candidate.descriptor;
|
|
10
|
+
}
|
|
11
|
+
if (firstClosingBelow === undefined) {
|
|
12
|
+
firstClosingBelow = candidate.descriptor;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return firstClosingBelow;
|
|
16
|
+
};
|
|
17
|
+
|
|
3
18
|
/**
|
|
4
19
|
* Resolves previous/next descriptors while accounting for routes that are
|
|
5
20
|
* visually closing.
|
|
6
21
|
*
|
|
7
22
|
* Rules:
|
|
8
|
-
* - Closing scenes
|
|
9
|
-
*
|
|
23
|
+
* - Closing scenes keep their previous descriptor so their original pair can
|
|
24
|
+
* keep resolving while they remain mounted, but they never receive a next
|
|
25
|
+
* descriptor.
|
|
10
26
|
* - Non-closing scenes skip over closing neighbors to find the actual active
|
|
11
27
|
* neighbor.
|
|
12
28
|
* - If there is no non-closing neighbor above/below, we fall back to the first
|
|
@@ -22,7 +38,7 @@ export function resolveSceneNeighbors(scenes, sceneIndex, isRouteClosing) {
|
|
|
22
38
|
}
|
|
23
39
|
if (isRouteClosing(current.route.key)) {
|
|
24
40
|
return {
|
|
25
|
-
previousDescriptor:
|
|
41
|
+
previousDescriptor: findPreviousDescriptor(scenes, sceneIndex, isRouteClosing),
|
|
26
42
|
nextDescriptor: undefined
|
|
27
43
|
};
|
|
28
44
|
}
|
|
@@ -42,22 +58,7 @@ export function resolveSceneNeighbors(scenes, sceneIndex, isRouteClosing) {
|
|
|
42
58
|
if (nextDescriptor === undefined) {
|
|
43
59
|
nextDescriptor = firstClosingAbove;
|
|
44
60
|
}
|
|
45
|
-
|
|
46
|
-
let firstClosingBelow;
|
|
47
|
-
for (let i = sceneIndex - 1; i >= 0; i--) {
|
|
48
|
-
const candidate = scenes[i];
|
|
49
|
-
if (!candidate) continue;
|
|
50
|
-
if (!isRouteClosing(candidate.route.key)) {
|
|
51
|
-
previousDescriptor = candidate.descriptor;
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
if (firstClosingBelow === undefined) {
|
|
55
|
-
firstClosingBelow = candidate.descriptor;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
if (previousDescriptor === undefined) {
|
|
59
|
-
previousDescriptor = firstClosingBelow;
|
|
60
|
-
}
|
|
61
|
+
const previousDescriptor = findPreviousDescriptor(scenes, sceneIndex, isRouteClosing);
|
|
61
62
|
return {
|
|
62
63
|
previousDescriptor,
|
|
63
64
|
nextDescriptor
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["findPreviousDescriptor","scenes","sceneIndex","isRouteClosing","firstClosingBelow","i","candidate","route","key","descriptor","undefined","resolveSceneNeighbors","current","previousDescriptor","nextDescriptor","firstClosingAbove","length"],"sourceRoot":"../../../../../src","sources":["shared/utils/navigation/resolve-scene-neighbors.ts"],"mappings":";;AAOA,MAAMA,sBAAsB,GAAGA,CAC9BC,MAAW,EACXC,UAAkB,EAClBC,cAA8B,KACG;EACjC,IAAIC,iBAA8C;EAElD,KAAK,IAAIC,CAAC,GAAGH,UAAU,GAAG,CAAC,EAAEG,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IACzC,MAAMC,SAAS,GAAGL,MAAM,CAACI,CAAC,CAAC;IAC3B,IAAI,CAACC,SAAS,EAAE;IAEhB,IAAI,CAACH,cAAc,CAACG,SAAS,CAACC,KAAK,CAACC,GAAG,CAAC,EAAE;MACzC,OAAOF,SAAS,CAACG,UAAU;IAC5B;IAEA,IAAIL,iBAAiB,KAAKM,SAAS,EAAE;MACpCN,iBAAiB,GAAGE,SAAS,CAACG,UAAU;IACzC;EACD;EAEA,OAAOL,iBAAiB;AACzB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASO,qBAAqBA,CACpCV,MAAW,EACXC,UAAkB,EAClBC,cAA8B,EAI7B;EACD,MAAMS,OAAO,GAAGX,MAAM,CAACC,UAAU,CAAC;EAClC,IAAI,CAACU,OAAO,EAAE;IACb,OAAO;MACNC,kBAAkB,EAAEH,SAAS;MAC7BI,cAAc,EAAEJ;IACjB,CAAC;EACF;EAEA,IAAIP,cAAc,CAACS,OAAO,CAACL,KAAK,CAACC,GAAG,CAAC,EAAE;IACtC,OAAO;MACNK,kBAAkB,EAAEb,sBAAsB,CACzCC,MAAM,EACNC,UAAU,EACVC,cACD,CAAC;MACDW,cAAc,EAAEJ;IACjB,CAAC;EACF;EAEA,IAAII,cAA2C;EAC/C,IAAIC,iBAA8C;EAElD,KAAK,IAAIV,CAAC,GAAGH,UAAU,GAAG,CAAC,EAAEG,CAAC,GAAGJ,MAAM,CAACe,MAAM,EAAEX,CAAC,EAAE,EAAE;IACpD,MAAMC,SAAS,GAAGL,MAAM,CAACI,CAAC,CAAC;IAC3B,IAAI,CAACC,SAAS,EAAE;IAEhB,IAAI,CAACH,cAAc,CAACG,SAAS,CAACC,KAAK,CAACC,GAAG,CAAC,EAAE;MACzCM,cAAc,GAAGR,SAAS,CAACG,UAAU;MACrC;IACD;IAEA,IAAIM,iBAAiB,KAAKL,SAAS,EAAE;MACpCK,iBAAiB,GAAGT,SAAS,CAACG,UAAU;IACzC;EACD;EAEA,IAAIK,cAAc,KAAKJ,SAAS,EAAE;IACjCI,cAAc,GAAGC,iBAAiB;EACnC;EAEA,MAAMF,kBAAkB,GAAGb,sBAAsB,CAChDC,MAAM,EACNC,UAAU,EACVC,cACD,CAAC;EAED,OAAO;IACNU,kBAAkB;IAClBC;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component-screen.d.ts","sourceRoot":"","sources":["../../../../src/component-stack/components/component-screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"component-screen.d.ts","sourceRoot":"","sources":["../../../../src/component-stack/components/component-screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAKpC,UAAU,WAAW;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAID,eAAO,MAAM,eAAe,GAAI,wBAAwB,WAAW,4CAmBlE,CAAC"}
|
package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type ComponentType } from "react";
|
|
|
2
2
|
import type { BoundaryComponentProps } from "./types";
|
|
3
3
|
interface CreateBoundaryComponentOptions {
|
|
4
4
|
alreadyAnimated?: boolean;
|
|
5
|
+
shouldAutoMeasure?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare function createBoundaryComponent<P extends object>(Wrapped: ComponentType<P>, options?: CreateBoundaryComponentOptions): React.MemoExoticComponent<React.ForwardRefExoticComponent<BoundaryComponentProps<P> & React.RefAttributes<React.ComponentRef<typeof Wrapped>>>>;
|
|
7
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-boundary-component.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/create-boundary-component/create-boundary-component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,aAAa,EAMlB,MAAM,OAAO,CAAC;AAqBf,OAAO,KAAK,EAAE,sBAAsB,EAAuB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"create-boundary-component.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/create-boundary-component/create-boundary-component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,aAAa,EAMlB,MAAM,OAAO,CAAC;AAqBf,OAAO,KAAK,EAAE,sBAAsB,EAAuB,MAAM,SAAS,CAAC;AAE3E,UAAU,8BAA8B;IACvC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACvD,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,EACzB,OAAO,GAAE,8BAAmC,GA0L5B,KAAK,CAAC,mBAAmB,CACxC,KAAK,CAAC,yBAAyB,CAC9B,sBAAsB,CAAC,CAAC,CAAC,GACxB,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CACxD,CACD,CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-boundary-presence.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,eAAO,MAAM,mBAAmB,GAAI,QAAQ;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,
|
|
1
|
+
{"version":3,"file":"use-boundary-presence.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,eAAO,MAAM,mBAAmB,GAAI,QAAQ;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACrC,SAcA,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MeasureBoundary } from "../types";
|
|
2
2
|
interface UseInitialDestinationMeasurementParams {
|
|
3
|
-
|
|
3
|
+
linkId: string;
|
|
4
4
|
enabled: boolean;
|
|
5
5
|
currentScreenKey: string;
|
|
6
6
|
preferredSourceScreenKey?: string;
|
|
7
|
-
|
|
7
|
+
ancestorScreenKeys: string[];
|
|
8
|
+
measureBoundary: MeasureBoundary;
|
|
8
9
|
}
|
|
9
|
-
export declare const useInitialDestinationMeasurement: ({
|
|
10
|
+
export declare const useInitialDestinationMeasurement: ({ linkId, enabled, currentScreenKey, preferredSourceScreenKey, ancestorScreenKeys, measureBoundary, }: UseInitialDestinationMeasurementParams) => void;
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=use-initial-destination-measurement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-initial-destination-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-initial-destination-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD,UAAU,sCAAsC;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;CACjC;AAED,eAAO,MAAM,gCAAgC,GAAI,uGAO9C,sCAAsC,SA2FxC,CAAC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MeasureBoundary } from "../types";
|
|
2
2
|
export declare const useInitialSourceMeasurement: (params: {
|
|
3
3
|
enabled: boolean;
|
|
4
4
|
nextScreenKey?: string;
|
|
5
|
-
|
|
5
|
+
currentScreenKey?: string;
|
|
6
|
+
measureBoundary: MeasureBoundary;
|
|
7
|
+
linkId: string;
|
|
8
|
+
group?: string;
|
|
9
|
+
shouldAutoMeasure: boolean;
|
|
6
10
|
}) => void;
|
|
7
11
|
//# sourceMappingURL=use-initial-source-measurement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-initial-source-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-initial-source-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-initial-source-measurement.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD,eAAO,MAAM,2BAA2B,GAAI,QAAQ;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,eAAe,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,OAAO,CAAC;CAC3B,SA2CA,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import type { View } from "react-native";
|
|
2
2
|
import type { AnimatedRef, StyleProps } from "react-native-reanimated";
|
|
3
|
-
import type {
|
|
3
|
+
import type { MeasureBoundary } from "../types";
|
|
4
4
|
interface UseMeasurerParams {
|
|
5
5
|
enabled: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
entryTag: string;
|
|
7
|
+
linkId: string;
|
|
8
|
+
group?: string;
|
|
8
9
|
currentScreenKey: string;
|
|
9
10
|
preparedStyles: StyleProps;
|
|
10
11
|
measuredAnimatedRef: AnimatedRef<View>;
|
|
11
12
|
}
|
|
12
|
-
export declare const useMeasurer: ({ enabled,
|
|
13
|
+
export declare const useMeasurer: ({ enabled, entryTag, linkId, group, currentScreenKey, preparedStyles, measuredAnimatedRef, }: UseMeasurerParams) => MeasureBoundary;
|
|
13
14
|
export {};
|
|
14
15
|
//# sourceMappingURL=use-measurer.d.ts.map
|
package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-measurer.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-measurer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-measurer.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-measurer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAQvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAMhD,UAAU,iBAAiB;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,UAAU,CAAC;IAC3B,mBAAmB,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,eAAO,MAAM,WAAW,GAAI,8FAQzB,iBAAiB,KAAG,eAiFtB,CAAC"}
|
package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MeasureBoundary } from "../types";
|
|
2
2
|
interface UseRefreshBoundaryParams {
|
|
3
3
|
enabled: boolean;
|
|
4
|
-
sharedBoundTag: string;
|
|
5
|
-
id: BoundaryId;
|
|
6
|
-
group?: string;
|
|
7
4
|
currentScreenKey: string;
|
|
5
|
+
preferredSourceScreenKey?: string;
|
|
8
6
|
nextScreenKey?: string;
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
linkId: string;
|
|
8
|
+
group?: string;
|
|
9
|
+
ancestorScreenKeys: string[];
|
|
10
|
+
measureBoundary: MeasureBoundary;
|
|
11
11
|
}
|
|
12
|
-
export declare const useRefreshBoundary: ({ enabled,
|
|
12
|
+
export declare const useRefreshBoundary: ({ enabled, currentScreenKey, preferredSourceScreenKey, nextScreenKey, linkId, group, ancestorScreenKeys, measureBoundary, }: UseRefreshBoundaryParams) => void;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=use-refresh-boundary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-refresh-boundary.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-refresh-boundary.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD,UAAU,wBAAwB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;CACjC;AAED,eAAO,MAAM,kBAAkB,GAAI,6HAShC,wBAAwB,SAmD1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/create-boundary-component/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,IAAI,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,EAAE,uBAAuB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/create-boundary-component/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,IAAI,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAUnC;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,QAAQ;IACpB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEH,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ScreenPairKey } from "../../stores/bounds/types";
|
|
1
2
|
import type { BoundsOptions } from "../../utils/bounds/types/options";
|
|
2
3
|
export type BoundaryId = string | number;
|
|
3
4
|
export type BoundaryConfigProps = Pick<BoundsOptions, "anchor" | "scaleMode" | "target" | "method">;
|
|
@@ -9,9 +10,8 @@ export type BoundaryConfigProps = Pick<BoundsOptions, "anchor" | "scaleMode" | "
|
|
|
9
10
|
export interface BoundaryOwnProps extends BoundaryConfigProps {
|
|
10
11
|
/**
|
|
11
12
|
* Optional group name for collection/list scenarios.
|
|
12
|
-
* When provided,
|
|
13
|
-
*
|
|
14
|
-
* The internal tag becomes `group:id`.
|
|
13
|
+
* When provided, concrete boundary entries use `group:id`, while transition
|
|
14
|
+
* links stay keyed by the member `id` inside the active screen pair.
|
|
15
15
|
*/
|
|
16
16
|
group?: string;
|
|
17
17
|
/**
|
|
@@ -26,8 +26,12 @@ export interface BoundaryOwnProps extends BoundaryConfigProps {
|
|
|
26
26
|
* Omits `id` from the wrapped component's props (since boundary uses its own `id`).
|
|
27
27
|
*/
|
|
28
28
|
export type BoundaryComponentProps<P extends object> = Omit<P, "id"> & BoundaryOwnProps;
|
|
29
|
-
export type
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
29
|
+
export type MeasureTarget = {
|
|
30
|
+
type: "source";
|
|
31
|
+
pairKey: ScreenPairKey;
|
|
32
|
+
} | {
|
|
33
|
+
type: "destination";
|
|
34
|
+
pairKey: ScreenPairKey;
|
|
35
|
+
};
|
|
36
|
+
export type MeasureBoundary = (target: MeasureTarget) => void;
|
|
33
37
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/create-boundary-component/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzC,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACrC,aAAa,EACb,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAC5C,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC5D
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/create-boundary-component/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzC,MAAM,MAAM,mBAAmB,GAAG,IAAI,CACrC,aAAa,EACb,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,CAC5C,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB;IAC5D;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,EAAE,EAAE,UAAU,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,GACnE,gBAAgB,CAAC;AAElB,MAAM,MAAM,aAAa,GACtB;IACA,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,aAAa,CAAC;CACtB,GACD;IACA,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,aAAa,CAAC;CACtB,CAAC;AAEL,MAAM,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC"}
|
package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { LinkPairsState, ScreenPairKey } from "../../../stores/bounds/types";
|
|
2
|
+
export declare const getInitialDestinationMeasurePairKey: (params: {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
currentScreenKey: string;
|
|
5
|
+
preferredSourceScreenKey?: string;
|
|
6
|
+
ancestorScreenKeys?: readonly string[];
|
|
7
|
+
linkId: string;
|
|
8
|
+
linkState?: LinkPairsState;
|
|
9
|
+
}) => ScreenPairKey | null;
|
|
10
|
+
//# sourceMappingURL=destination-signals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destination-signals.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/utils/destination-signals.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACX,cAAc,EACd,aAAa,EACb,MAAM,8BAA8B,CAAC;AA+CtC,eAAO,MAAM,mCAAmC,GAAI,QAAQ;IAC3D,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,cAAc,CAAC;CAC3B,KAAG,aAAa,GAAG,IA6DnB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { View } from "react-native";
|
|
2
2
|
import { type AnimatedRef, type MeasuredDimensions } from "react-native-reanimated";
|
|
3
|
-
import type { ScrollGestureState } from "
|
|
3
|
+
import type { ScrollGestureState } from "../../../types/gesture.types";
|
|
4
4
|
export declare const adjustedMeasuredBoundsForOverscrollDeltas: (measured: MeasuredDimensions, scrollState: ScrollGestureState | null) => MeasuredDimensions;
|
|
5
|
+
export declare const isMeasurementInViewport: (measured: MeasuredDimensions, viewportWidth: number, viewportHeight: number) => boolean;
|
|
5
6
|
export declare const measureWithOverscrollAwareness: (ref: AnimatedRef<View>, scrollState: ScrollGestureState | null) => MeasuredDimensions | null;
|
|
6
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=measured-bounds.d.ts.map
|
package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measured-bounds.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/utils/measured-bounds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,kBAAkB,EAEvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAEX,kBAAkB,EAClB,MAAM,8BAA8B,CAAC;AAatC,eAAO,MAAM,yCAAyC,GACrD,UAAU,kBAAkB,EAC5B,aAAa,kBAAkB,GAAG,IAAI,KACpC,kBAqBF,CAAC;AAEF,eAAO,MAAM,uBAAuB,GACnC,UAAU,kBAAkB,EAC5B,eAAe,MAAM,EACrB,gBAAgB,MAAM,KACpB,OAkBF,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAC1C,KAAK,WAAW,CAAC,IAAI,CAAC,EACtB,aAAa,kBAAkB,GAAG,IAAI,KACpC,kBAAkB,GAAG,IAMvB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { LinkPairsState } from "../../../stores/bounds/types";
|
|
2
|
+
import type { MeasureTarget } from "../types";
|
|
3
|
+
type RefreshBoundarySignal = MeasureTarget & {
|
|
4
|
+
signal: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const getRefreshBoundarySignal: (params: {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
currentScreenKey: string;
|
|
9
|
+
preferredSourceScreenKey?: string;
|
|
10
|
+
nextScreenKey?: string;
|
|
11
|
+
linkId: string;
|
|
12
|
+
group?: string;
|
|
13
|
+
ancestorScreenKeys?: readonly string[];
|
|
14
|
+
shouldRefresh: boolean;
|
|
15
|
+
closing: boolean;
|
|
16
|
+
entering: boolean;
|
|
17
|
+
animating: boolean;
|
|
18
|
+
progress: number;
|
|
19
|
+
linkState?: LinkPairsState;
|
|
20
|
+
}) => RefreshBoundarySignal | null;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=refresh-signals.d.ts.map
|
package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh-signals.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/utils/refresh-signals.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACX,cAAc,EAEd,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK9C,KAAK,qBAAqB,GAAG,aAAa,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAuCF,eAAO,MAAM,wBAAwB,GAAI,QAAQ;IAChD,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,cAAc,CAAC;CAC3B,KAAG,qBAAqB,GAAG,IA8F3B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { LinkPairsState, ScreenPairKey } from "../../../stores/bounds/types";
|
|
2
|
+
type SourceCaptureSignal = {
|
|
3
|
+
pairKey: ScreenPairKey;
|
|
4
|
+
signal: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const getInitialSourceCaptureSignal: (params: {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
nextScreenKey?: string;
|
|
9
|
+
currentScreenKey?: string;
|
|
10
|
+
linkId: string;
|
|
11
|
+
group?: string;
|
|
12
|
+
shouldAutoMeasure: boolean;
|
|
13
|
+
linkState?: LinkPairsState;
|
|
14
|
+
}) => SourceCaptureSignal | null;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=source-signals.d.ts.map
|
package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-signals.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/utils/source-signals.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,cAAc,EACd,aAAa,EACb,MAAM,8BAA8B,CAAC;AAItC,KAAK,mBAAmB,GAAG;IAC1B,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAaF,eAAO,MAAM,6BAA6B,GAAI,QAAQ;IACrD,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC3B,KAAG,mBAAmB,GAAG,IAuCzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-screen.d.ts","sourceRoot":"","sources":["../../../../src/shared/components/native-screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"native-screen.d.ts","sourceRoot":"","sources":["../../../../src/shared/components/native-screen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAiBpC,UAAU,WAAW;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB;AAYD,eAAO,MAAM,YAAY,GAAI,yEAO1B,WAAW,4CAoIb,CAAC"}
|
|
@@ -86,11 +86,6 @@ export declare const FALSE = 0;
|
|
|
86
86
|
* Small value for floating-point comparisons to handle animation/interpolation imprecision
|
|
87
87
|
*/
|
|
88
88
|
export declare const EPSILON = 0.00001;
|
|
89
|
-
/**
|
|
90
|
-
* Threshold for snapping animations to target when "close enough" (1% of range).
|
|
91
|
-
* Prevents micro-jitter/oscillation near animation endpoints.
|
|
92
|
-
*/
|
|
93
|
-
export declare const ANIMATION_SNAP_THRESHOLD = 0.01;
|
|
94
89
|
/**
|
|
95
90
|
* Number of consecutive frames progress must remain near its target before it
|
|
96
91
|
* is treated as logically settled.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/shared/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EACX,uBAAuB,EACvB,qBAAqB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACX,cAAc,EACd,mBAAmB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAC5C,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,gCAAgC,qCACV,CAAC;AACpC,eAAO,MAAM,kCAAkC,uCACV,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,SAAS,cAAoB,CAAC;AAC3C,eAAO,MAAM,aAAa;;EAAgC,CAAC;AAC3D,eAAO,MAAM,QAAQ,cAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/shared/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EACX,uBAAuB,EACvB,qBAAqB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACX,cAAc,EACd,mBAAmB,EACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAC5C,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;A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,MAAM,OAAO,UAAO,CAAC;AAE5B;;;GAGG;AACH,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,iCAAiC,QAAQ,CAAC"}
|
|
@@ -1550,5 +1550,5 @@ export { useHistory } from "./hooks/navigation/use-history";
|
|
|
1550
1550
|
export { type ScreenState, useScreenState, } from "./hooks/navigation/use-screen-state";
|
|
1551
1551
|
export { type ScreenAnimationTarget, useScreenAnimation, } from "./providers/screen/animation";
|
|
1552
1552
|
export { type ScreenGestureTarget, useScreenGesture, } from "./providers/screen/gestures/hooks/use-screen-gesture";
|
|
1553
|
-
export type { AnimatedViewStyle, AnimationConfig, BoundsNavigationAccessor, BoundsNavigationRevealStyle, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, OverlayProps, ScreenInterpolationProps, ScreenStyleInterpolator,
|
|
1553
|
+
export type { AnimatedViewStyle, AnimationConfig, BoundsNavigationAccessor, BoundsNavigationRevealStyle, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, OverlayProps, ScreenInterpolationProps, ScreenStyleInterpolator, ScreenTransitionConfig, TransitionInterpolatedStyle, TransitionSlotStyle, TransitionSpec, } from "./types";
|
|
1554
1554
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAEN,uBAAuB,EACvB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,UAAU,MAAM,uCAAuC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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