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
package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["isMeasurementInViewport","measured","viewportWidth","viewportHeight","width","height","toleranceX","toleranceY","centerX","pageX","centerY","pageY"],"sourceRoot":"../../../../../../../src","sources":["shared/components/create-boundary-component/hooks/helpers/measurement.ts"],"mappings":";;AAEA,OAAO,MAAMA,uBAAuB,GAAGA,CACtCC,QAA4B,EAC5BC,aAAqB,EACrBC,cAAsB,KACT;EACb,SAAS;;EAET,IAAIF,QAAQ,CAACG,KAAK,IAAI,CAAC,IAAIH,QAAQ,CAACI,MAAM,IAAI,CAAC,EAAE;IAChD,OAAO,KAAK;EACb;EAEA,MAAMC,UAAU,GAAGJ,aAAa,GAAG,IAAI;EACvC,MAAMK,UAAU,GAAGJ,cAAc,GAAG,IAAI;EACxC,MAAMK,OAAO,GAAGP,QAAQ,CAACQ,KAAK,GAAGR,QAAQ,CAACG,KAAK,GAAG,CAAC;EACnD,MAAMM,OAAO,GAAGT,QAAQ,CAACU,KAAK,GAAGV,QAAQ,CAACI,MAAM,GAAG,CAAC;EAEpD,OACCG,OAAO,IAAI,CAACF,UAAU,IACtBE,OAAO,IAAIN,aAAa,GAAGI,UAAU,IACrCI,OAAO,IAAI,CAACH,UAAU,IACtBG,OAAO,IAAIP,cAAc,GAAGI,UAAU;AAExC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["measure","SCROLL_MEASUREMENT_EPSILON","getOverscrollDelta","axisState","maxOffset","Math","max","contentSize","layoutSize","clampedOffset","min","offset","delta","abs","adjustedMeasuredBoundsForOverscrollDeltas","measured","scrollState","deltaX","horizontal","deltaY","vertical","x","y","pageX","pageY","measureWithOverscrollAwareness","ref"],"sourceRoot":"../../../../../../../src","sources":["shared/components/create-boundary-component/hooks/helpers/scroll-measurement.ts"],"mappings":";;AACA,SAGCA,OAAO,QACD,yBAAyB;AAMhC,MAAMC,0BAA0B,GAAG,CAAC;AAEpC,MAAMC,kBAAkB,GAAIC,SAAiC,IAAa;EACzE,SAAS;;EACT,MAAMC,SAAS,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEH,SAAS,CAACI,WAAW,GAAGJ,SAAS,CAACK,UAAU,CAAC;EAC3E,MAAMC,aAAa,GAAGJ,IAAI,CAACK,GAAG,CAACL,IAAI,CAACC,GAAG,CAACH,SAAS,CAACQ,MAAM,EAAE,CAAC,CAAC,EAAEP,SAAS,CAAC;EACxE,MAAMQ,KAAK,GAAGT,SAAS,CAACQ,MAAM,GAAGF,aAAa;EAE9C,OAAOJ,IAAI,CAACQ,GAAG,CAACD,KAAK,CAAC,GAAGX,0BAA0B,GAAGW,KAAK,GAAG,CAAC;AAChE,CAAC;AAED,OAAO,MAAME,yCAAyC,GAAGA,CACxDC,QAA4B,EAC5BC,WAAsC,KACd;EACxB,SAAS;;EAET,IAAI,CAACA,WAAW,EAAE;IACjB,OAAOD,QAAQ;EAChB;EAEA,MAAME,MAAM,GAAGf,kBAAkB,CAACc,WAAW,CAACE,UAAU,CAAC;EACzD,MAAMC,MAAM,GAAGjB,kBAAkB,CAACc,WAAW,CAACI,QAAQ,CAAC;EAEvD,IAAIH,MAAM,KAAK,CAAC,IAAIE,MAAM,KAAK,CAAC,EAAE;IACjC,OAAOJ,QAAQ;EAChB;EAEA,OAAO;IACN,GAAGA,QAAQ;IACXM,CAAC,EAAEN,QAAQ,CAACM,CAAC,GAAGJ,MAAM;IACtBK,CAAC,EAAEP,QAAQ,CAACO,CAAC,GAAGH,MAAM;IACtBI,KAAK,EAAER,QAAQ,CAACQ,KAAK,GAAGN,MAAM;IAC9BO,KAAK,EAAET,QAAQ,CAACS,KAAK,GAAGL;EACzB,CAAC;AACF,CAAC;AAED,OAAO,MAAMM,8BAA8B,GAAGA,CAC7CC,GAAsB,EACtBV,WAAsC,KACP;EAC/B,SAAS;;EACT,MAAMD,QAAQ,GAAGf,OAAO,CAAC0B,GAAG,CAAC;EAC7B,IAAI,CAACX,QAAQ,EAAE,OAAO,IAAI;EAE1B,OAAOD,yCAAyC,CAACC,QAAQ,EAAEC,WAAW,CAAC;AACxE,CAAC","ignoreList":[]}
|
package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["buildBoundaryMatchKey","params","group","id","String"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/utils/build-boundary-match-key.ts"],"mappings":";;AAOA,OAAO,SAASA,qBAAqBA,CACpCC,MAAmC,EAC1B;EACT,SAAS;;EACT,MAAM;IAAEC,KAAK;IAAEC;EAAG,CAAC,GAAGF,MAAM;EAC5B,OAAOC,KAAK,GAAG,GAAGA,KAAK,IAAIC,EAAE,EAAE,GAAGC,MAAM,CAACD,EAAE,CAAC;AAC7C","ignoreList":[]}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { useCallback, useMemo } from "react";
|
|
4
|
-
import { useWindowDimensions } from "react-native";
|
|
5
|
-
import { measure } from "react-native-reanimated";
|
|
6
|
-
import createProvider from "../utils/create-provider";
|
|
7
|
-
/**
|
|
8
|
-
* Provides a reference point for correcting bounds measurements.
|
|
9
|
-
*
|
|
10
|
-
* When a parent view has transforms applied (e.g., during screen transitions),
|
|
11
|
-
* `measure()` returns visual positions that include those transforms. This provider
|
|
12
|
-
* establishes an anchor point (typically the screen container at 0,0) and exposes
|
|
13
|
-
* a `correctMeasurement` function that reverses translation and scale transforms
|
|
14
|
-
* to yield the true layout position and dimensions.
|
|
15
|
-
*
|
|
16
|
-
* ## How it works
|
|
17
|
-
*
|
|
18
|
-
* 1. **Translation**: Subtract anchor's pageX/pageY offset
|
|
19
|
-
* 2. **Scale**: Compare anchor's measured size to expected (screen) size to compute
|
|
20
|
-
* scale factor, then divide positions and dimensions by that factor
|
|
21
|
-
*/
|
|
22
|
-
const {
|
|
23
|
-
LayoutAnchorProvider,
|
|
24
|
-
useLayoutAnchorContext
|
|
25
|
-
} = createProvider("LayoutAnchor", {
|
|
26
|
-
guarded: false
|
|
27
|
-
})(({
|
|
28
|
-
anchorRef,
|
|
29
|
-
children
|
|
30
|
-
}) => {
|
|
31
|
-
const {
|
|
32
|
-
width: screenWidth,
|
|
33
|
-
height: screenHeight
|
|
34
|
-
} = useWindowDimensions();
|
|
35
|
-
const correctMeasurement = useCallback(measured => {
|
|
36
|
-
"worklet";
|
|
37
|
-
|
|
38
|
-
const anchor = measure(anchorRef);
|
|
39
|
-
if (!anchor) return measured;
|
|
40
|
-
|
|
41
|
-
// Compute scale factor by comparing anchor size to expected screen size.
|
|
42
|
-
// Anchor should be full-screen (absoluteFill), so any difference is from scale.
|
|
43
|
-
const scaleX = anchor.width > 0 ? anchor.width / screenWidth : 1;
|
|
44
|
-
const scaleY = anchor.height > 0 ? anchor.height / screenHeight : 1;
|
|
45
|
-
|
|
46
|
-
// Get element position relative to anchor (removes translation)
|
|
47
|
-
const relativeX = measured.pageX - anchor.pageX;
|
|
48
|
-
const relativeY = measured.pageY - anchor.pageY;
|
|
49
|
-
|
|
50
|
-
// Reverse scale: divide relative position and dimensions by scale factor
|
|
51
|
-
return {
|
|
52
|
-
x: measured.x,
|
|
53
|
-
y: measured.y,
|
|
54
|
-
width: scaleX !== 1 ? measured.width / scaleX : measured.width,
|
|
55
|
-
height: scaleY !== 1 ? measured.height / scaleY : measured.height,
|
|
56
|
-
pageX: scaleX !== 1 ? relativeX / scaleX : relativeX,
|
|
57
|
-
pageY: scaleY !== 1 ? relativeY / scaleY : relativeY
|
|
58
|
-
};
|
|
59
|
-
}, [anchorRef, screenWidth, screenHeight]);
|
|
60
|
-
const isMeasurementInViewport = useCallback(measured => {
|
|
61
|
-
"worklet";
|
|
62
|
-
|
|
63
|
-
if (measured.width <= 0 || measured.height <= 0) return false;
|
|
64
|
-
const toleranceX = screenWidth * 0.15;
|
|
65
|
-
const toleranceY = screenHeight * 0.15;
|
|
66
|
-
const centerX = measured.pageX + measured.width / 2;
|
|
67
|
-
const centerY = measured.pageY + measured.height / 2;
|
|
68
|
-
return centerX >= -toleranceX && centerX <= screenWidth + toleranceX && centerY >= -toleranceY && centerY <= screenHeight + toleranceY;
|
|
69
|
-
}, [screenWidth, screenHeight]);
|
|
70
|
-
const value = useMemo(() => ({
|
|
71
|
-
correctMeasurement,
|
|
72
|
-
isMeasurementInViewport
|
|
73
|
-
}), [correctMeasurement, isMeasurementInViewport]);
|
|
74
|
-
return {
|
|
75
|
-
value,
|
|
76
|
-
children
|
|
77
|
-
};
|
|
78
|
-
});
|
|
79
|
-
export { LayoutAnchorProvider, useLayoutAnchorContext };
|
|
80
|
-
//# sourceMappingURL=layout-anchor.provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useMemo","useWindowDimensions","measure","createProvider","LayoutAnchorProvider","useLayoutAnchorContext","guarded","anchorRef","children","width","screenWidth","height","screenHeight","correctMeasurement","measured","anchor","scaleX","scaleY","relativeX","pageX","relativeY","pageY","x","y","isMeasurementInViewport","toleranceX","toleranceY","centerX","centerY","value"],"sourceRoot":"../../../../src","sources":["shared/providers/layout-anchor.provider.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const ENTRY_PATCH_OPTIONAL_FIELDS = ["boundaryConfig"];
|
|
4
|
-
export const ensureScreenEntry = (tagState, screenKey) => {
|
|
5
|
-
"worklet";
|
|
6
|
-
|
|
7
|
-
if (!tagState.screens[screenKey]) {
|
|
8
|
-
tagState.screens[screenKey] = {
|
|
9
|
-
bounds: null,
|
|
10
|
-
styles: {}
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
return tagState.screens[screenKey];
|
|
14
|
-
};
|
|
15
|
-
export const applyEntryPatch = (entry, patch) => {
|
|
16
|
-
"worklet";
|
|
17
|
-
|
|
18
|
-
if (patch.bounds !== undefined) {
|
|
19
|
-
entry.bounds = patch.bounds;
|
|
20
|
-
}
|
|
21
|
-
if (patch.styles !== undefined) {
|
|
22
|
-
entry.styles = patch.styles ?? {};
|
|
23
|
-
}
|
|
24
|
-
const target = entry;
|
|
25
|
-
for (let i = 0; i < ENTRY_PATCH_OPTIONAL_FIELDS.length; i++) {
|
|
26
|
-
const field = ENTRY_PATCH_OPTIONAL_FIELDS[i];
|
|
27
|
-
const value = patch[field];
|
|
28
|
-
if (value === undefined) continue;
|
|
29
|
-
if (value === null) {
|
|
30
|
-
delete target[field];
|
|
31
|
-
} else {
|
|
32
|
-
target[field] = value;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
export const findMatchingScreenEntry = (tagState, screenKey) => {
|
|
37
|
-
"worklet";
|
|
38
|
-
|
|
39
|
-
if (!tagState) return null;
|
|
40
|
-
return tagState.screens[screenKey] ?? null;
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=entries.helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ENTRY_PATCH_OPTIONAL_FIELDS","ensureScreenEntry","tagState","screenKey","screens","bounds","styles","applyEntryPatch","entry","patch","undefined","target","i","length","field","value","findMatchingScreenEntry"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/entries.helpers.ts"],"mappings":";;AAIA,MAAMA,2BAA2B,GAAG,CACnC,gBAAgB,CACsC;AAEvD,OAAO,MAAMC,iBAAiB,GAAGA,CAChCC,QAAkB,EAClBC,SAAoB,KACH;EACjB,SAAS;;EACT,IAAI,CAACD,QAAQ,CAACE,OAAO,CAACD,SAAS,CAAC,EAAE;IACjCD,QAAQ,CAACE,OAAO,CAACD,SAAS,CAAC,GAAG;MAC7BE,MAAM,EAAE,IAAI;MACZC,MAAM,EAAE,CAAC;IACV,CAAC;EACF;EACA,OAAOJ,QAAQ,CAACE,OAAO,CAACD,SAAS,CAAC;AACnC,CAAC;AAED,OAAO,MAAMI,eAAe,GAAGA,CAACC,KAAkB,EAAEC,KAAiB,KAAK;EACzE,SAAS;;EACT,IAAIA,KAAK,CAACJ,MAAM,KAAKK,SAAS,EAAE;IAC/BF,KAAK,CAACH,MAAM,GAAGI,KAAK,CAACJ,MAAM;EAC5B;EAEA,IAAII,KAAK,CAACH,MAAM,KAAKI,SAAS,EAAE;IAC/BF,KAAK,CAACF,MAAM,GAAGG,KAAK,CAACH,MAAM,IAAI,CAAC,CAAC;EAClC;EAEA,MAAMK,MAAM,GAAGH,KAAiD;EAChE,KAAK,IAAII,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGZ,2BAA2B,CAACa,MAAM,EAAED,CAAC,EAAE,EAAE;IAC5D,MAAME,KAAK,GAAGd,2BAA2B,CAACY,CAAC,CAAC;IAC5C,MAAMG,KAAK,GAAGN,KAAK,CAACK,KAAK,CAAC;IAC1B,IAAIC,KAAK,KAAKL,SAAS,EAAE;IAEzB,IAAIK,KAAK,KAAK,IAAI,EAAE;MACnB,OAAOJ,MAAM,CAACG,KAAK,CAAC;IACrB,CAAC,MAAM;MACNH,MAAM,CAACG,KAAK,CAAC,GAAGC,KAAK;IACtB;EACD;AACD,CAAC;AAED,OAAO,MAAMC,uBAAuB,GAAGA,CACtCd,QAA8B,EAC9BC,SAAoB,KACI;EACxB,SAAS;;EACT,IAAI,CAACD,QAAQ,EAAE,OAAO,IAAI;EAE1B,OAAOA,QAAQ,CAACE,OAAO,CAACD,SAAS,CAAC,IAAI,IAAI;AAC3C,CAAC","ignoreList":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
export const findLatestIndex = (items, matches) => {
|
|
4
|
-
"worklet";
|
|
5
|
-
|
|
6
|
-
for (let i = items.length - 1; i >= 0; i--) {
|
|
7
|
-
if (matches(items[i])) {
|
|
8
|
-
return i;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return -1;
|
|
12
|
-
};
|
|
13
|
-
export const findLatest = (items, matches) => {
|
|
14
|
-
"worklet";
|
|
15
|
-
|
|
16
|
-
const index = findLatestIndex(items, matches);
|
|
17
|
-
return index === -1 ? null : items[index] ?? null;
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=find-latest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["findLatestIndex","items","matches","i","length","findLatest","index"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/find-latest.ts"],"mappings":";;AAAA,OAAO,MAAMA,eAAe,GAAGA,CAC9BC,KAAmB,EACnBC,OAA6B,KACjB;EACZ,SAAS;;EACT,KAAK,IAAIC,CAAC,GAAGF,KAAK,CAACG,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,IAAID,OAAO,CAACD,KAAK,CAACE,CAAC,CAAC,CAAC,EAAE;MACtB,OAAOA,CAAC;IACT;EACD;EAEA,OAAO,CAAC,CAAC;AACV,CAAC;AAED,OAAO,MAAME,UAAU,GAAGA,CACzBJ,KAAmB,EACnBC,OAA6B,KACf;EACd,SAAS;;EACT,MAAMI,KAAK,GAAGN,eAAe,CAACC,KAAK,EAAEC,OAAO,CAAC;EAC7C,OAAOI,KAAK,KAAK,CAAC,CAAC,GAAG,IAAI,GAAIL,KAAK,CAACK,KAAK,CAAC,IAAI,IAAK;AACpD,CAAC","ignoreList":[]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
export const parseGroupTag = tag => {
|
|
4
|
-
"worklet";
|
|
5
|
-
|
|
6
|
-
const separatorIndex = tag.indexOf(":");
|
|
7
|
-
if (separatorIndex === -1) return null;
|
|
8
|
-
return {
|
|
9
|
-
group: tag.slice(0, separatorIndex),
|
|
10
|
-
id: tag.slice(separatorIndex + 1)
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export const createGroupTag = (group, id) => {
|
|
14
|
-
"worklet";
|
|
15
|
-
|
|
16
|
-
return `${group}:${id}`;
|
|
17
|
-
};
|
|
18
|
-
export const getGroupName = tagOrGroup => {
|
|
19
|
-
"worklet";
|
|
20
|
-
|
|
21
|
-
return parseGroupTag(tagOrGroup)?.group ?? tagOrGroup;
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=groups.helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["parseGroupTag","tag","separatorIndex","indexOf","group","slice","id","createGroupTag","getGroupName","tagOrGroup"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/groups.helpers.ts"],"mappings":";;AAOA,OAAO,MAAMA,aAAa,GAAIC,GAAW,IAAsB;EAC9D,SAAS;;EACT,MAAMC,cAAc,GAAGD,GAAG,CAACE,OAAO,CAAC,GAAG,CAAC;EACvC,IAAID,cAAc,KAAK,CAAC,CAAC,EAAE,OAAO,IAAI;EAEtC,OAAO;IACNE,KAAK,EAAEH,GAAG,CAACI,KAAK,CAAC,CAAC,EAAEH,cAAc,CAAC;IACnCI,EAAE,EAAEL,GAAG,CAACI,KAAK,CAACH,cAAc,GAAG,CAAC;EACjC,CAAC;AACF,CAAC;AAED,OAAO,MAAMK,cAAc,GAAGA,CAACH,KAAa,EAAEE,EAAU,KAAY;EACnE,SAAS;;EACT,OAAO,GAAGF,KAAK,IAAIE,EAAE,EAAE;AACxB,CAAC;AAED,OAAO,MAAME,YAAY,GAAIC,UAAkB,IAAa;EAC3D,SAAS;;EACT,OAAOT,aAAa,CAACS,UAAU,CAAC,EAAEL,KAAK,IAAIK,UAAU;AACtD,CAAC","ignoreList":[]}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { findLatestIndex } from "./find-latest";
|
|
4
|
-
import { matchesScreenKey } from "./matching";
|
|
5
|
-
export const isSameScreenFamily = (a, b) => {
|
|
6
|
-
"worklet";
|
|
7
|
-
|
|
8
|
-
return a.screenKey === b.screenKey;
|
|
9
|
-
};
|
|
10
|
-
export function findLatestPendingSourceLinkIndex(stack, expectedSourceScreenKey) {
|
|
11
|
-
"worklet";
|
|
12
|
-
|
|
13
|
-
return findLatestIndex(stack, link => {
|
|
14
|
-
if (link.destination !== null) return false;
|
|
15
|
-
return !expectedSourceScreenKey || matchesScreenKey(link.source, expectedSourceScreenKey);
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function findLatestSourceIndex(stack, expectedSourceScreenKey) {
|
|
19
|
-
"worklet";
|
|
20
|
-
|
|
21
|
-
if (!expectedSourceScreenKey) return -1;
|
|
22
|
-
return findLatestIndex(stack, link => matchesScreenKey(link.source, expectedSourceScreenKey));
|
|
23
|
-
}
|
|
24
|
-
function findLatestCompletedSourceIndex(stack, screenKey) {
|
|
25
|
-
"worklet";
|
|
26
|
-
|
|
27
|
-
if (!screenKey) return -1;
|
|
28
|
-
return findLatestIndex(stack, link => !!link.destination && matchesScreenKey(link.source, screenKey));
|
|
29
|
-
}
|
|
30
|
-
function findLatestCompletedDestinationIndex(stack, screenKey) {
|
|
31
|
-
"worklet";
|
|
32
|
-
|
|
33
|
-
if (!screenKey) return -1;
|
|
34
|
-
return findLatestIndex(stack, link => !!link.destination && matchesScreenKey(link.destination, screenKey));
|
|
35
|
-
}
|
|
36
|
-
export function selectSourceUpdateTargetIndex(stack, screenKey) {
|
|
37
|
-
"worklet";
|
|
38
|
-
|
|
39
|
-
const completedIndex = findLatestCompletedSourceIndex(stack, screenKey);
|
|
40
|
-
if (completedIndex !== -1) {
|
|
41
|
-
return completedIndex;
|
|
42
|
-
}
|
|
43
|
-
return findLatestSourceIndex(stack, screenKey);
|
|
44
|
-
}
|
|
45
|
-
export function findLinkIndexForDestinationWrite(stack, destinationScreenKey, expectedSourceScreenKey) {
|
|
46
|
-
"worklet";
|
|
47
|
-
|
|
48
|
-
const existingDestinationIndex = findLatestCompletedDestinationIndex(stack, destinationScreenKey);
|
|
49
|
-
if (existingDestinationIndex !== -1) {
|
|
50
|
-
return existingDestinationIndex;
|
|
51
|
-
}
|
|
52
|
-
const pendingSourceIndex = findLatestPendingSourceLinkIndex(stack, expectedSourceScreenKey);
|
|
53
|
-
if (pendingSourceIndex !== -1) {
|
|
54
|
-
return pendingSourceIndex;
|
|
55
|
-
}
|
|
56
|
-
return findLatestSourceIndex(stack, expectedSourceScreenKey);
|
|
57
|
-
}
|
|
58
|
-
export function hasLinkSide(stack, screenKey, side) {
|
|
59
|
-
"worklet";
|
|
60
|
-
|
|
61
|
-
if (!stack || stack.length === 0) return false;
|
|
62
|
-
return findLatestIndex(stack, link => matchesScreenKey(link[side], screenKey)) !== -1;
|
|
63
|
-
}
|
|
64
|
-
export function isCompletedLinkForScreenKey(link, screenKey) {
|
|
65
|
-
"worklet";
|
|
66
|
-
|
|
67
|
-
return !!link.destination && (matchesScreenKey(link.source, screenKey) || matchesScreenKey(link.destination, screenKey));
|
|
68
|
-
}
|
|
69
|
-
//# sourceMappingURL=link.helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["findLatestIndex","matchesScreenKey","isSameScreenFamily","a","b","screenKey","findLatestPendingSourceLinkIndex","stack","expectedSourceScreenKey","link","destination","source","findLatestSourceIndex","findLatestCompletedSourceIndex","findLatestCompletedDestinationIndex","selectSourceUpdateTargetIndex","completedIndex","findLinkIndexForDestinationWrite","destinationScreenKey","existingDestinationIndex","pendingSourceIndex","hasLinkSide","side","length","isCompletedLinkForScreenKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/link.helpers.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["matchesScreenKey","identifier","key","screenKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/matching.ts"],"mappings":";;AAEA,OAAO,SAASA,gBAAgBA,CAC/BC,UAA+C,EAC/CC,GAAc,EACJ;EACV,SAAS;;EACT,IAAI,CAACD,UAAU,EAAE,OAAO,KAAK;EAE7B,OAAOA,UAAU,CAACE,SAAS,KAAKD,GAAG;AACpC","ignoreList":[]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { hasAnyKeys } from "./keys";
|
|
4
|
-
export const ensureTagState = (state, tag) => {
|
|
5
|
-
"worklet";
|
|
6
|
-
|
|
7
|
-
if (!state[tag]) {
|
|
8
|
-
state[tag] = {
|
|
9
|
-
screens: {},
|
|
10
|
-
linkStack: []
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
return state[tag];
|
|
14
|
-
};
|
|
15
|
-
export const pruneTagState = (state, tag) => {
|
|
16
|
-
"worklet";
|
|
17
|
-
|
|
18
|
-
const tagState = state[tag];
|
|
19
|
-
if (!tagState) return;
|
|
20
|
-
if (!hasAnyKeys(tagState.screens) && tagState.linkStack.length === 0) {
|
|
21
|
-
delete state[tag];
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=tag-state.helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["hasAnyKeys","ensureTagState","state","tag","screens","linkStack","pruneTagState","tagState","length"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/tag-state.helpers.ts"],"mappings":";;AAEA,SAASA,UAAU,QAAQ,QAAQ;AAEnC,OAAO,MAAMC,cAAc,GAAGA,CAACC,KAAoB,EAAEC,GAAU,KAAe;EAC7E,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG;MACZC,OAAO,EAAE,CAAC,CAAC;MACXC,SAAS,EAAE;IACZ,CAAC;EACF;EACA,OAAOH,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,OAAO,MAAMG,aAAa,GAAGA,CAACJ,KAAoB,EAAEC,GAAU,KAAK;EAClE,SAAS;;EACT,MAAMI,QAAQ,GAAGL,KAAK,CAACC,GAAG,CAAC;EAC3B,IAAI,CAACI,QAAQ,EAAE;EAEf,IAAI,CAACP,UAAU,CAACO,QAAQ,CAACH,OAAO,CAAC,IAAIG,QAAQ,CAACF,SAAS,CAACG,MAAM,KAAK,CAAC,EAAE;IACrE,OAAON,KAAK,CAACC,GAAG,CAAC;EAClB;AACD,CAAC","ignoreList":[]}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { createGroupTag, getGroupName, parseGroupTag } from "../helpers/groups.helpers";
|
|
4
|
-
import { getMatchedLink } from "./links";
|
|
5
|
-
import { groups } from "./state";
|
|
6
|
-
function setGroupActiveId(group, id) {
|
|
7
|
-
"worklet";
|
|
8
|
-
|
|
9
|
-
groups.modify(state => {
|
|
10
|
-
"worklet";
|
|
11
|
-
|
|
12
|
-
const mutableState = state;
|
|
13
|
-
const previous = mutableState[group];
|
|
14
|
-
mutableState[group] = {
|
|
15
|
-
activeId: id,
|
|
16
|
-
initialId: previous?.initialId
|
|
17
|
-
};
|
|
18
|
-
return state;
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function setGroupInitialId(group, id) {
|
|
22
|
-
"worklet";
|
|
23
|
-
|
|
24
|
-
groups.modify(state => {
|
|
25
|
-
"worklet";
|
|
26
|
-
|
|
27
|
-
const mutableState = state;
|
|
28
|
-
mutableState[group] = {
|
|
29
|
-
activeId: id,
|
|
30
|
-
initialId: id
|
|
31
|
-
};
|
|
32
|
-
return state;
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
function getGroupActiveId(tagOrGroup) {
|
|
36
|
-
"worklet";
|
|
37
|
-
|
|
38
|
-
return groups.get()[getGroupName(tagOrGroup)]?.activeId ?? null;
|
|
39
|
-
}
|
|
40
|
-
function getGroupInitialId(tagOrGroup) {
|
|
41
|
-
"worklet";
|
|
42
|
-
|
|
43
|
-
return groups.get()[getGroupName(tagOrGroup)]?.initialId ?? null;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Selects the current active group member for this tag.
|
|
47
|
-
function resolveGroupLink({
|
|
48
|
-
tag,
|
|
49
|
-
screenKey
|
|
50
|
-
}) {
|
|
51
|
-
"worklet";
|
|
52
|
-
|
|
53
|
-
const groupTag = parseGroupTag(tag);
|
|
54
|
-
if (!groupTag) {
|
|
55
|
-
return {
|
|
56
|
-
tag,
|
|
57
|
-
link: getMatchedLink(tag, screenKey)
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
const requestedLink = getMatchedLink(tag, screenKey);
|
|
61
|
-
if (requestedLink) {
|
|
62
|
-
return {
|
|
63
|
-
tag,
|
|
64
|
-
link: requestedLink
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
const activeId = getGroupActiveId(groupTag.group);
|
|
68
|
-
if (activeId) {
|
|
69
|
-
const activeTag = createGroupTag(groupTag.group, activeId);
|
|
70
|
-
const activeLink = getMatchedLink(activeTag, screenKey);
|
|
71
|
-
if (activeLink) {
|
|
72
|
-
return {
|
|
73
|
-
tag: activeTag,
|
|
74
|
-
link: activeLink
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
const initialId = getGroupInitialId(groupTag.group);
|
|
79
|
-
if (initialId) {
|
|
80
|
-
const initialTag = createGroupTag(groupTag.group, initialId);
|
|
81
|
-
const initialLink = getMatchedLink(initialTag, screenKey);
|
|
82
|
-
if (initialLink) {
|
|
83
|
-
return {
|
|
84
|
-
tag: initialTag,
|
|
85
|
-
link: initialLink
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
return {
|
|
90
|
-
tag,
|
|
91
|
-
link: null
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
export { getGroupActiveId, getGroupInitialId, resolveGroupLink, setGroupActiveId, setGroupInitialId };
|
|
95
|
-
//# sourceMappingURL=groups.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["createGroupTag","getGroupName","parseGroupTag","getMatchedLink","groups","setGroupActiveId","group","id","modify","state","mutableState","previous","activeId","initialId","setGroupInitialId","getGroupActiveId","tagOrGroup","get","getGroupInitialId","resolveGroupLink","tag","screenKey","groupTag","link","requestedLink","activeTag","activeLink","initialTag","initialLink"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/groups.ts"],"mappings":";;AAAA,SACCA,cAAc,EACdC,YAAY,EACZC,aAAa,QACP,2BAA2B;AAElC,SAASC,cAAc,QAAQ,SAAS;AACxC,SAA2BC,MAAM,QAAQ,SAAS;AAYlD,SAASC,gBAAgBA,CAACC,KAAa,EAAEC,EAAU,EAAE;EACpD,SAAS;;EACTH,MAAM,CAACI,MAAM,CAAyBC,KAAQ,IAAQ;IACrD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAoB;IACzC,MAAME,QAAQ,GAAGD,YAAY,CAACJ,KAAK,CAAC;IACpCI,YAAY,CAACJ,KAAK,CAAC,GAAG;MACrBM,QAAQ,EAAEL,EAAE;MACZM,SAAS,EAAEF,QAAQ,EAAEE;IACtB,CAAC;IACD,OAAOJ,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASK,iBAAiBA,CAACR,KAAa,EAAEC,EAAU,EAAE;EACrD,SAAS;;EACTH,MAAM,CAACI,MAAM,CAAyBC,KAAQ,IAAQ;IACrD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAoB;IACzCC,YAAY,CAACJ,KAAK,CAAC,GAAG;MACrBM,QAAQ,EAAEL,EAAE;MACZM,SAAS,EAAEN;IACZ,CAAC;IACD,OAAOE,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASM,gBAAgBA,CAACC,UAAkB,EAAiB;EAC5D,SAAS;;EACT,OAAOZ,MAAM,CAACa,GAAG,CAAC,CAAC,CAAChB,YAAY,CAACe,UAAU,CAAC,CAAC,EAAEJ,QAAQ,IAAI,IAAI;AAChE;AAEA,SAASM,iBAAiBA,CAACF,UAAkB,EAAiB;EAC7D,SAAS;;EACT,OAAOZ,MAAM,CAACa,GAAG,CAAC,CAAC,CAAChB,YAAY,CAACe,UAAU,CAAC,CAAC,EAAEH,SAAS,IAAI,IAAI;AACjE;;AAEA;AACA,SAASM,gBAAgBA,CAAC;EACzBC,GAAG;EACHC;AACuB,CAAC,EAAqB;EAC7C,SAAS;;EACT,MAAMC,QAAQ,GAAGpB,aAAa,CAACkB,GAAG,CAAC;EAEnC,IAAI,CAACE,QAAQ,EAAE;IACd,OAAO;MACNF,GAAG;MACHG,IAAI,EAAEpB,cAAc,CAACiB,GAAG,EAAEC,SAAS;IACpC,CAAC;EACF;EAEA,MAAMG,aAAa,GAAGrB,cAAc,CAACiB,GAAG,EAAEC,SAAS,CAAC;EACpD,IAAIG,aAAa,EAAE;IAClB,OAAO;MACNJ,GAAG;MACHG,IAAI,EAAEC;IACP,CAAC;EACF;EAEA,MAAMZ,QAAQ,GAAGG,gBAAgB,CAACO,QAAQ,CAAChB,KAAK,CAAC;EACjD,IAAIM,QAAQ,EAAE;IACb,MAAMa,SAAS,GAAGzB,cAAc,CAACsB,QAAQ,CAAChB,KAAK,EAAEM,QAAQ,CAAC;IAC1D,MAAMc,UAAU,GAAGvB,cAAc,CAACsB,SAAS,EAAEJ,SAAS,CAAC;IACvD,IAAIK,UAAU,EAAE;MACf,OAAO;QACNN,GAAG,EAAEK,SAAS;QACdF,IAAI,EAAEG;MACP,CAAC;IACF;EACD;EAEA,MAAMb,SAAS,GAAGK,iBAAiB,CAACI,QAAQ,CAAChB,KAAK,CAAC;EACnD,IAAIO,SAAS,EAAE;IACd,MAAMc,UAAU,GAAG3B,cAAc,CAACsB,QAAQ,CAAChB,KAAK,EAAEO,SAAS,CAAC;IAC5D,MAAMe,WAAW,GAAGzB,cAAc,CAACwB,UAAU,EAAEN,SAAS,CAAC;IACzD,IAAIO,WAAW,EAAE;MAChB,OAAO;QACNR,GAAG,EAAEO,UAAU;QACfJ,IAAI,EAAEK;MACP,CAAC;IACF;EACD;EAEA,OAAO;IACNR,GAAG;IACHG,IAAI,EAAE;EACP,CAAC;AACF;AAEA,SACCR,gBAAgB,EAChBG,iBAAiB,EACjBC,gBAAgB,EAChBd,gBAAgB,EAChBS,iBAAiB","ignoreList":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { MeasuredDimensions, StyleProps } from "react-native-reanimated";
|
|
2
|
-
type ApplyMeasuredBoundsWritesParams = {
|
|
3
|
-
sharedBoundTag: string;
|
|
4
|
-
currentScreenKey: string;
|
|
5
|
-
measured: MeasuredDimensions;
|
|
6
|
-
preparedStyles: StyleProps;
|
|
7
|
-
shouldSetSource?: boolean;
|
|
8
|
-
shouldUpdateSource?: boolean;
|
|
9
|
-
shouldSetDestination?: boolean;
|
|
10
|
-
shouldUpdateDestination?: boolean;
|
|
11
|
-
expectedSourceScreenKey?: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const applyMeasuredBoundsWrites: (params: ApplyMeasuredBoundsWritesParams) => void;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=apply-measured-bounds-writes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"apply-measured-bounds-writes.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAO9E,KAAK,+BAA+B,GAAG;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,cAAc,EAAE,UAAU,CAAC;IAC3B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,uBAAuB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACrC,QAAQ,+BAA+B,SA8DvC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-pending-source-key.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,GACnC,gBAAgB,MAAM,EACtB,0BAA0B,MAAM,KAC9B,MAAM,GAAG,IAWX,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export type LinkContext = {
|
|
2
|
-
/**
|
|
3
|
-
* The source screen this measurement should pair with, if one can be
|
|
4
|
-
* resolved. Disambiguates between multiple candidate sources in the
|
|
5
|
-
* registry (e.g. nested or repeat presentations of the same tag).
|
|
6
|
-
*/
|
|
7
|
-
expectedSourceScreenKey: string | undefined;
|
|
8
|
-
/** A pending link exists waiting for a destination to attach. */
|
|
9
|
-
hasPendingLink: boolean;
|
|
10
|
-
/** The expected source screen has a captured source ready to attach to. */
|
|
11
|
-
hasAttachableSourceLink: boolean;
|
|
12
|
-
/** The current screen is already registered as the source for this tag. */
|
|
13
|
-
hasSourceLink: boolean;
|
|
14
|
-
/** The current screen is already registered as the destination for this tag. */
|
|
15
|
-
hasDestinationLink: boolean;
|
|
16
|
-
};
|
|
17
|
-
export declare const createLinkContext: (params: {
|
|
18
|
-
sharedBoundTag: string;
|
|
19
|
-
currentScreenKey: string;
|
|
20
|
-
preferredSourceScreenKey?: string;
|
|
21
|
-
}) => LinkContext;
|
|
22
|
-
//# sourceMappingURL=boundary-link-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boundary-link-context.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,WAAW,GAAG;IACzB;;;;OAIG;IACH,uBAAuB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C,iEAAiE;IACjE,cAAc,EAAE,OAAO,CAAC;IACxB,2EAA2E;IAC3E,uBAAuB,EAAE,OAAO,CAAC;IACjC,2EAA2E;IAC3E,aAAa,EAAE,OAAO,CAAC;IACvB,gFAAgF;IAChF,kBAAkB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,QAAQ;IACzC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wBAAwB,CAAC,EAAE,MAAM,CAAC;CAClC,KAAG,WAmBH,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { MeasureIntent } from "../../types";
|
|
2
|
-
export type MeasureIntentFlags = {
|
|
3
|
-
captureSource: boolean;
|
|
4
|
-
completeDestination: boolean;
|
|
5
|
-
refreshSource: boolean;
|
|
6
|
-
refreshDestination: boolean;
|
|
7
|
-
};
|
|
8
|
-
export type MeasureWritePlan = {
|
|
9
|
-
captureSource: boolean;
|
|
10
|
-
completeDestination: boolean;
|
|
11
|
-
refreshSource: boolean;
|
|
12
|
-
refreshDestination: boolean;
|
|
13
|
-
writesAny: boolean;
|
|
14
|
-
wantsDestinationWrite: boolean;
|
|
15
|
-
};
|
|
16
|
-
export declare const shouldBlockInitialDestinationMeasurement: (params: {
|
|
17
|
-
enabled: boolean;
|
|
18
|
-
hasDestinationLink: boolean;
|
|
19
|
-
hasAttachableSourceLink: boolean;
|
|
20
|
-
}) => boolean;
|
|
21
|
-
export declare const getMeasureIntentFlags: (intent?: MeasureIntent | readonly MeasureIntent[]) => MeasureIntentFlags;
|
|
22
|
-
export declare const buildMeasurementWritePlan: (params: {
|
|
23
|
-
intents: MeasureIntentFlags;
|
|
24
|
-
hasPendingLink: boolean;
|
|
25
|
-
hasSourceLink: boolean;
|
|
26
|
-
hasDestinationLink: boolean;
|
|
27
|
-
hasAttachableSourceLink: boolean;
|
|
28
|
-
}) => MeasureWritePlan;
|
|
29
|
-
//# sourceMappingURL=measurement-rules.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"measurement-rules.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG;IAChC,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC9B,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,eAAO,MAAM,wCAAwC,GAAI,QAAQ;IAChE,OAAO,EAAE,OAAO,CAAC;IACjB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,uBAAuB,EAAE,OAAO,CAAC;CACjC,KAAG,OAKH,CAAC;AAEF,eAAO,MAAM,qBAAqB,GACjC,SAAS,aAAa,GAAG,SAAS,aAAa,EAAE,KAC/C,kBAiCF,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,QAAQ;IACjD,OAAO,EAAE,kBAAkB,CAAC;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,uBAAuB,EAAE,OAAO,CAAC;CACjC,KAAG,gBA4BH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"measurement.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/create-boundary-component/hooks/helpers/measurement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,eAAO,MAAM,uBAAuB,GACnC,UAAU,kBAAkB,EAC5B,eAAe,MAAM,EACrB,gBAAgB,MAAM,KACpB,OAkBF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-measurement.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/create-boundary-component/hooks/helpers/scroll-measurement.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,iCAAiC,CAAC;AAazC,eAAO,MAAM,yCAAyC,GACrD,UAAU,kBAAkB,EAC5B,aAAa,kBAAkB,GAAG,IAAI,KACpC,kBAqBF,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAC1C,KAAK,WAAW,CAAC,IAAI,CAAC,EACtB,aAAa,kBAAkB,GAAG,IAAI,KACpC,kBAAkB,GAAG,IAMvB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { BoundaryId } from "../types";
|
|
2
|
-
type BuildBoundaryMatchKeyParams = {
|
|
3
|
-
group?: string;
|
|
4
|
-
id: BoundaryId;
|
|
5
|
-
};
|
|
6
|
-
export declare function buildBoundaryMatchKey(params: BuildBoundaryMatchKeyParams): string;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=build-boundary-match-key.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-boundary-match-key.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,KAAK,2BAA2B,GAAG;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,UAAU,CAAC;CACf,CAAC;AAEF,wBAAgB,qBAAqB,CACpC,MAAM,EAAE,2BAA2B,GACjC,MAAM,CAIR"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import { type View } from "react-native";
|
|
3
|
-
import { type AnimatedRef, type MeasuredDimensions } from "react-native-reanimated";
|
|
4
|
-
interface LayoutAnchorProviderProps {
|
|
5
|
-
anchorRef: AnimatedRef<View>;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
interface LayoutAnchorContextValue {
|
|
9
|
-
/**
|
|
10
|
-
* Corrects measured dimensions for parent transforms (translation and scale).
|
|
11
|
-
* The anchor should be at (0, 0) with full screen dimensions - any difference
|
|
12
|
-
* is from parent transforms. This function reverses those transforms to yield
|
|
13
|
-
* the true layout position and dimensions.
|
|
14
|
-
*/
|
|
15
|
-
correctMeasurement: (measured: MeasuredDimensions) => MeasuredDimensions;
|
|
16
|
-
/**
|
|
17
|
-
* Returns true when the corrected measurement is plausibly inside viewport space.
|
|
18
|
-
* This helps reject transient off-page measurements from paged containers.
|
|
19
|
-
*/
|
|
20
|
-
isMeasurementInViewport: (measured: MeasuredDimensions) => boolean;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Provides a reference point for correcting bounds measurements.
|
|
24
|
-
*
|
|
25
|
-
* When a parent view has transforms applied (e.g., during screen transitions),
|
|
26
|
-
* `measure()` returns visual positions that include those transforms. This provider
|
|
27
|
-
* establishes an anchor point (typically the screen container at 0,0) and exposes
|
|
28
|
-
* a `correctMeasurement` function that reverses translation and scale transforms
|
|
29
|
-
* to yield the true layout position and dimensions.
|
|
30
|
-
*
|
|
31
|
-
* ## How it works
|
|
32
|
-
*
|
|
33
|
-
* 1. **Translation**: Subtract anchor's pageX/pageY offset
|
|
34
|
-
* 2. **Scale**: Compare anchor's measured size to expected (screen) size to compute
|
|
35
|
-
* scale factor, then divide positions and dimensions by that factor
|
|
36
|
-
*/
|
|
37
|
-
declare const LayoutAnchorProvider: import("react").FC<LayoutAnchorProviderProps>, useLayoutAnchorContext: () => LayoutAnchorContextValue | null;
|
|
38
|
-
export { LayoutAnchorProvider, useLayoutAnchorContext };
|
|
39
|
-
//# sourceMappingURL=layout-anchor.provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"layout-anchor.provider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/layout-anchor.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAuB,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,kBAAkB,EAEvB,MAAM,yBAAyB,CAAC;AAGjC,UAAU,yBAAyB;IAClC,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC7B,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,UAAU,wBAAwB;IACjC;;;;;OAKG;IACH,kBAAkB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,kBAAkB,CAAC;IACzE;;;OAGG;IACH,uBAAuB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,KAAK,OAAO,CAAC;CACnE;AAED;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAQ,oBAAoB,iDAAE,sBAAsB,uCAiEnD,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { EntryPatch, ScreenEntry, ScreenKey, TagState } from "../types";
|
|
2
|
-
export declare const ensureScreenEntry: (tagState: TagState, screenKey: ScreenKey) => ScreenEntry;
|
|
3
|
-
export declare const applyEntryPatch: (entry: ScreenEntry, patch: EntryPatch) => void;
|
|
4
|
-
export declare const findMatchingScreenEntry: (tagState: TagState | undefined, screenKey: ScreenKey) => ScreenEntry | null;
|
|
5
|
-
//# sourceMappingURL=entries.helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entries.helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/stores/bounds/helpers/entries.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAQ7E,eAAO,MAAM,iBAAiB,GAC7B,UAAU,QAAQ,EAClB,WAAW,SAAS,KAClB,WASF,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,WAAW,EAAE,OAAO,UAAU,SAsBpE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GACnC,UAAU,QAAQ,GAAG,SAAS,EAC9B,WAAW,SAAS,KAClB,WAAW,GAAG,IAKhB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-latest.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/stores/bounds/helpers/find-latest.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,GAAI,CAAC,EAChC,OAAO,SAAS,CAAC,EAAE,EACnB,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,KAC3B,MASF,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,EAC3B,OAAO,SAAS,CAAC,EAAE,EACnB,SAAS,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,KAC3B,CAAC,GAAG,IAIN,CAAC"}
|