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,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useLayoutAnchorContext = exports.LayoutAnchorProvider = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _reactNativeReanimated = require("react-native-reanimated");
|
|
10
|
-
var _createProvider = _interopRequireDefault(require("../utils/create-provider"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
/**
|
|
13
|
-
* Provides a reference point for correcting bounds measurements.
|
|
14
|
-
*
|
|
15
|
-
* When a parent view has transforms applied (e.g., during screen transitions),
|
|
16
|
-
* `measure()` returns visual positions that include those transforms. This provider
|
|
17
|
-
* establishes an anchor point (typically the screen container at 0,0) and exposes
|
|
18
|
-
* a `correctMeasurement` function that reverses translation and scale transforms
|
|
19
|
-
* to yield the true layout position and dimensions.
|
|
20
|
-
*
|
|
21
|
-
* ## How it works
|
|
22
|
-
*
|
|
23
|
-
* 1. **Translation**: Subtract anchor's pageX/pageY offset
|
|
24
|
-
* 2. **Scale**: Compare anchor's measured size to expected (screen) size to compute
|
|
25
|
-
* scale factor, then divide positions and dimensions by that factor
|
|
26
|
-
*/
|
|
27
|
-
const {
|
|
28
|
-
LayoutAnchorProvider,
|
|
29
|
-
useLayoutAnchorContext
|
|
30
|
-
} = (0, _createProvider.default)("LayoutAnchor", {
|
|
31
|
-
guarded: false
|
|
32
|
-
})(({
|
|
33
|
-
anchorRef,
|
|
34
|
-
children
|
|
35
|
-
}) => {
|
|
36
|
-
const {
|
|
37
|
-
width: screenWidth,
|
|
38
|
-
height: screenHeight
|
|
39
|
-
} = (0, _reactNative.useWindowDimensions)();
|
|
40
|
-
const correctMeasurement = (0, _react.useCallback)(measured => {
|
|
41
|
-
"worklet";
|
|
42
|
-
|
|
43
|
-
const anchor = (0, _reactNativeReanimated.measure)(anchorRef);
|
|
44
|
-
if (!anchor) return measured;
|
|
45
|
-
|
|
46
|
-
// Compute scale factor by comparing anchor size to expected screen size.
|
|
47
|
-
// Anchor should be full-screen (absoluteFill), so any difference is from scale.
|
|
48
|
-
const scaleX = anchor.width > 0 ? anchor.width / screenWidth : 1;
|
|
49
|
-
const scaleY = anchor.height > 0 ? anchor.height / screenHeight : 1;
|
|
50
|
-
|
|
51
|
-
// Get element position relative to anchor (removes translation)
|
|
52
|
-
const relativeX = measured.pageX - anchor.pageX;
|
|
53
|
-
const relativeY = measured.pageY - anchor.pageY;
|
|
54
|
-
|
|
55
|
-
// Reverse scale: divide relative position and dimensions by scale factor
|
|
56
|
-
return {
|
|
57
|
-
x: measured.x,
|
|
58
|
-
y: measured.y,
|
|
59
|
-
width: scaleX !== 1 ? measured.width / scaleX : measured.width,
|
|
60
|
-
height: scaleY !== 1 ? measured.height / scaleY : measured.height,
|
|
61
|
-
pageX: scaleX !== 1 ? relativeX / scaleX : relativeX,
|
|
62
|
-
pageY: scaleY !== 1 ? relativeY / scaleY : relativeY
|
|
63
|
-
};
|
|
64
|
-
}, [anchorRef, screenWidth, screenHeight]);
|
|
65
|
-
const isMeasurementInViewport = (0, _react.useCallback)(measured => {
|
|
66
|
-
"worklet";
|
|
67
|
-
|
|
68
|
-
if (measured.width <= 0 || measured.height <= 0) return false;
|
|
69
|
-
const toleranceX = screenWidth * 0.15;
|
|
70
|
-
const toleranceY = screenHeight * 0.15;
|
|
71
|
-
const centerX = measured.pageX + measured.width / 2;
|
|
72
|
-
const centerY = measured.pageY + measured.height / 2;
|
|
73
|
-
return centerX >= -toleranceX && centerX <= screenWidth + toleranceX && centerY >= -toleranceY && centerY <= screenHeight + toleranceY;
|
|
74
|
-
}, [screenWidth, screenHeight]);
|
|
75
|
-
const value = (0, _react.useMemo)(() => ({
|
|
76
|
-
correctMeasurement,
|
|
77
|
-
isMeasurementInViewport
|
|
78
|
-
}), [correctMeasurement, isMeasurementInViewport]);
|
|
79
|
-
return {
|
|
80
|
-
value,
|
|
81
|
-
children
|
|
82
|
-
};
|
|
83
|
-
});
|
|
84
|
-
exports.useLayoutAnchorContext = useLayoutAnchorContext;
|
|
85
|
-
exports.LayoutAnchorProvider = LayoutAnchorProvider;
|
|
86
|
-
//# sourceMappingURL=layout-anchor.provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_createProvider","_interopRequireDefault","e","__esModule","default","LayoutAnchorProvider","useLayoutAnchorContext","createProvider","guarded","anchorRef","children","width","screenWidth","height","screenHeight","useWindowDimensions","correctMeasurement","useCallback","measured","anchor","measure","scaleX","scaleY","relativeX","pageX","relativeY","pageY","x","y","isMeasurementInViewport","toleranceX","toleranceY","centerX","centerY","value","useMemo","exports"],"sourceRoot":"../../../../src","sources":["shared/providers/layout-anchor.provider.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.findMatchingScreenEntry = exports.ensureScreenEntry = exports.applyEntryPatch = void 0;
|
|
7
|
-
const ENTRY_PATCH_OPTIONAL_FIELDS = ["boundaryConfig"];
|
|
8
|
-
const ensureScreenEntry = (tagState, screenKey) => {
|
|
9
|
-
"worklet";
|
|
10
|
-
|
|
11
|
-
if (!tagState.screens[screenKey]) {
|
|
12
|
-
tagState.screens[screenKey] = {
|
|
13
|
-
bounds: null,
|
|
14
|
-
styles: {}
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
return tagState.screens[screenKey];
|
|
18
|
-
};
|
|
19
|
-
exports.ensureScreenEntry = ensureScreenEntry;
|
|
20
|
-
const applyEntryPatch = (entry, patch) => {
|
|
21
|
-
"worklet";
|
|
22
|
-
|
|
23
|
-
if (patch.bounds !== undefined) {
|
|
24
|
-
entry.bounds = patch.bounds;
|
|
25
|
-
}
|
|
26
|
-
if (patch.styles !== undefined) {
|
|
27
|
-
entry.styles = patch.styles ?? {};
|
|
28
|
-
}
|
|
29
|
-
const target = entry;
|
|
30
|
-
for (let i = 0; i < ENTRY_PATCH_OPTIONAL_FIELDS.length; i++) {
|
|
31
|
-
const field = ENTRY_PATCH_OPTIONAL_FIELDS[i];
|
|
32
|
-
const value = patch[field];
|
|
33
|
-
if (value === undefined) continue;
|
|
34
|
-
if (value === null) {
|
|
35
|
-
delete target[field];
|
|
36
|
-
} else {
|
|
37
|
-
target[field] = value;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
exports.applyEntryPatch = applyEntryPatch;
|
|
42
|
-
const findMatchingScreenEntry = (tagState, screenKey) => {
|
|
43
|
-
"worklet";
|
|
44
|
-
|
|
45
|
-
if (!tagState) return null;
|
|
46
|
-
return tagState.screens[screenKey] ?? null;
|
|
47
|
-
};
|
|
48
|
-
exports.findMatchingScreenEntry = findMatchingScreenEntry;
|
|
49
|
-
//# sourceMappingURL=entries.helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ENTRY_PATCH_OPTIONAL_FIELDS","ensureScreenEntry","tagState","screenKey","screens","bounds","styles","exports","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;AAEhD,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;AAACI,OAAA,CAAAN,iBAAA,GAAAA,iBAAA;AAEK,MAAMO,eAAe,GAAGA,CAACC,KAAkB,EAAEC,KAAiB,KAAK;EACzE,SAAS;;EACT,IAAIA,KAAK,CAACL,MAAM,KAAKM,SAAS,EAAE;IAC/BF,KAAK,CAACJ,MAAM,GAAGK,KAAK,CAACL,MAAM;EAC5B;EAEA,IAAIK,KAAK,CAACJ,MAAM,KAAKK,SAAS,EAAE;IAC/BF,KAAK,CAACH,MAAM,GAAGI,KAAK,CAACJ,MAAM,IAAI,CAAC,CAAC;EAClC;EAEA,MAAMM,MAAM,GAAGH,KAAiD;EAChE,KAAK,IAAII,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGb,2BAA2B,CAACc,MAAM,EAAED,CAAC,EAAE,EAAE;IAC5D,MAAME,KAAK,GAAGf,2BAA2B,CAACa,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;AAACT,OAAA,CAAAC,eAAA,GAAAA,eAAA;AAEK,MAAMS,uBAAuB,GAAGA,CACtCf,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;AAACI,OAAA,CAAAU,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.findLatestIndex = exports.findLatest = void 0;
|
|
7
|
-
const findLatestIndex = (items, matches) => {
|
|
8
|
-
"worklet";
|
|
9
|
-
|
|
10
|
-
for (let i = items.length - 1; i >= 0; i--) {
|
|
11
|
-
if (matches(items[i])) {
|
|
12
|
-
return i;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return -1;
|
|
16
|
-
};
|
|
17
|
-
exports.findLatestIndex = findLatestIndex;
|
|
18
|
-
const findLatest = (items, matches) => {
|
|
19
|
-
"worklet";
|
|
20
|
-
|
|
21
|
-
const index = findLatestIndex(items, matches);
|
|
22
|
-
return index === -1 ? null : items[index] ?? null;
|
|
23
|
-
};
|
|
24
|
-
exports.findLatest = findLatest;
|
|
25
|
-
//# sourceMappingURL=find-latest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["findLatestIndex","items","matches","i","length","exports","findLatest","index"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/find-latest.ts"],"mappings":";;;;;;AAAO,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;AAACE,OAAA,CAAAL,eAAA,GAAAA,eAAA;AAEK,MAAMM,UAAU,GAAGA,CACzBL,KAAmB,EACnBC,OAA6B,KACf;EACd,SAAS;;EACT,MAAMK,KAAK,GAAGP,eAAe,CAACC,KAAK,EAAEC,OAAO,CAAC;EAC7C,OAAOK,KAAK,KAAK,CAAC,CAAC,GAAG,IAAI,GAAIN,KAAK,CAACM,KAAK,CAAC,IAAI,IAAK;AACpD,CAAC;AAACF,OAAA,CAAAC,UAAA,GAAAA,UAAA","ignoreList":[]}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.parseGroupTag = exports.getGroupName = exports.createGroupTag = void 0;
|
|
7
|
-
const parseGroupTag = tag => {
|
|
8
|
-
"worklet";
|
|
9
|
-
|
|
10
|
-
const separatorIndex = tag.indexOf(":");
|
|
11
|
-
if (separatorIndex === -1) return null;
|
|
12
|
-
return {
|
|
13
|
-
group: tag.slice(0, separatorIndex),
|
|
14
|
-
id: tag.slice(separatorIndex + 1)
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
exports.parseGroupTag = parseGroupTag;
|
|
18
|
-
const createGroupTag = (group, id) => {
|
|
19
|
-
"worklet";
|
|
20
|
-
|
|
21
|
-
return `${group}:${id}`;
|
|
22
|
-
};
|
|
23
|
-
exports.createGroupTag = createGroupTag;
|
|
24
|
-
const getGroupName = tagOrGroup => {
|
|
25
|
-
"worklet";
|
|
26
|
-
|
|
27
|
-
return parseGroupTag(tagOrGroup)?.group ?? tagOrGroup;
|
|
28
|
-
};
|
|
29
|
-
exports.getGroupName = getGroupName;
|
|
30
|
-
//# sourceMappingURL=groups.helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["parseGroupTag","tag","separatorIndex","indexOf","group","slice","id","exports","createGroupTag","getGroupName","tagOrGroup"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/groups.helpers.ts"],"mappings":";;;;;;AAOO,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;AAACK,OAAA,CAAAP,aAAA,GAAAA,aAAA;AAEK,MAAMQ,cAAc,GAAGA,CAACJ,KAAa,EAAEE,EAAU,KAAY;EACnE,SAAS;;EACT,OAAO,GAAGF,KAAK,IAAIE,EAAE,EAAE;AACxB,CAAC;AAACC,OAAA,CAAAC,cAAA,GAAAA,cAAA;AAEK,MAAMC,YAAY,GAAIC,UAAkB,IAAa;EAC3D,SAAS;;EACT,OAAOV,aAAa,CAACU,UAAU,CAAC,EAAEN,KAAK,IAAIM,UAAU;AACtD,CAAC;AAACH,OAAA,CAAAE,YAAA,GAAAA,YAAA","ignoreList":[]}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.findLatestPendingSourceLinkIndex = findLatestPendingSourceLinkIndex;
|
|
7
|
-
exports.findLinkIndexForDestinationWrite = findLinkIndexForDestinationWrite;
|
|
8
|
-
exports.hasLinkSide = hasLinkSide;
|
|
9
|
-
exports.isCompletedLinkForScreenKey = isCompletedLinkForScreenKey;
|
|
10
|
-
exports.isSameScreenFamily = void 0;
|
|
11
|
-
exports.selectSourceUpdateTargetIndex = selectSourceUpdateTargetIndex;
|
|
12
|
-
var _findLatest = require("./find-latest");
|
|
13
|
-
var _matching = require("./matching");
|
|
14
|
-
const isSameScreenFamily = (a, b) => {
|
|
15
|
-
"worklet";
|
|
16
|
-
|
|
17
|
-
return a.screenKey === b.screenKey;
|
|
18
|
-
};
|
|
19
|
-
exports.isSameScreenFamily = isSameScreenFamily;
|
|
20
|
-
function findLatestPendingSourceLinkIndex(stack, expectedSourceScreenKey) {
|
|
21
|
-
"worklet";
|
|
22
|
-
|
|
23
|
-
return (0, _findLatest.findLatestIndex)(stack, link => {
|
|
24
|
-
if (link.destination !== null) return false;
|
|
25
|
-
return !expectedSourceScreenKey || (0, _matching.matchesScreenKey)(link.source, expectedSourceScreenKey);
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
function findLatestSourceIndex(stack, expectedSourceScreenKey) {
|
|
29
|
-
"worklet";
|
|
30
|
-
|
|
31
|
-
if (!expectedSourceScreenKey) return -1;
|
|
32
|
-
return (0, _findLatest.findLatestIndex)(stack, link => (0, _matching.matchesScreenKey)(link.source, expectedSourceScreenKey));
|
|
33
|
-
}
|
|
34
|
-
function findLatestCompletedSourceIndex(stack, screenKey) {
|
|
35
|
-
"worklet";
|
|
36
|
-
|
|
37
|
-
if (!screenKey) return -1;
|
|
38
|
-
return (0, _findLatest.findLatestIndex)(stack, link => !!link.destination && (0, _matching.matchesScreenKey)(link.source, screenKey));
|
|
39
|
-
}
|
|
40
|
-
function findLatestCompletedDestinationIndex(stack, screenKey) {
|
|
41
|
-
"worklet";
|
|
42
|
-
|
|
43
|
-
if (!screenKey) return -1;
|
|
44
|
-
return (0, _findLatest.findLatestIndex)(stack, link => !!link.destination && (0, _matching.matchesScreenKey)(link.destination, screenKey));
|
|
45
|
-
}
|
|
46
|
-
function selectSourceUpdateTargetIndex(stack, screenKey) {
|
|
47
|
-
"worklet";
|
|
48
|
-
|
|
49
|
-
const completedIndex = findLatestCompletedSourceIndex(stack, screenKey);
|
|
50
|
-
if (completedIndex !== -1) {
|
|
51
|
-
return completedIndex;
|
|
52
|
-
}
|
|
53
|
-
return findLatestSourceIndex(stack, screenKey);
|
|
54
|
-
}
|
|
55
|
-
function findLinkIndexForDestinationWrite(stack, destinationScreenKey, expectedSourceScreenKey) {
|
|
56
|
-
"worklet";
|
|
57
|
-
|
|
58
|
-
const existingDestinationIndex = findLatestCompletedDestinationIndex(stack, destinationScreenKey);
|
|
59
|
-
if (existingDestinationIndex !== -1) {
|
|
60
|
-
return existingDestinationIndex;
|
|
61
|
-
}
|
|
62
|
-
const pendingSourceIndex = findLatestPendingSourceLinkIndex(stack, expectedSourceScreenKey);
|
|
63
|
-
if (pendingSourceIndex !== -1) {
|
|
64
|
-
return pendingSourceIndex;
|
|
65
|
-
}
|
|
66
|
-
return findLatestSourceIndex(stack, expectedSourceScreenKey);
|
|
67
|
-
}
|
|
68
|
-
function hasLinkSide(stack, screenKey, side) {
|
|
69
|
-
"worklet";
|
|
70
|
-
|
|
71
|
-
if (!stack || stack.length === 0) return false;
|
|
72
|
-
return (0, _findLatest.findLatestIndex)(stack, link => (0, _matching.matchesScreenKey)(link[side], screenKey)) !== -1;
|
|
73
|
-
}
|
|
74
|
-
function isCompletedLinkForScreenKey(link, screenKey) {
|
|
75
|
-
"worklet";
|
|
76
|
-
|
|
77
|
-
return !!link.destination && ((0, _matching.matchesScreenKey)(link.source, screenKey) || (0, _matching.matchesScreenKey)(link.destination, screenKey));
|
|
78
|
-
}
|
|
79
|
-
//# sourceMappingURL=link.helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_findLatest","require","_matching","isSameScreenFamily","a","b","screenKey","exports","findLatestPendingSourceLinkIndex","stack","expectedSourceScreenKey","findLatestIndex","link","destination","matchesScreenKey","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,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.matchesScreenKey = matchesScreenKey;
|
|
7
|
-
function matchesScreenKey(identifier, key) {
|
|
8
|
-
"worklet";
|
|
9
|
-
|
|
10
|
-
if (!identifier) return false;
|
|
11
|
-
return identifier.screenKey === key;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=matching.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["matchesScreenKey","identifier","key","screenKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/matching.ts"],"mappings":";;;;;;AAEO,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,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.pruneTagState = exports.ensureTagState = void 0;
|
|
7
|
-
var _keys = require("./keys");
|
|
8
|
-
const ensureTagState = (state, tag) => {
|
|
9
|
-
"worklet";
|
|
10
|
-
|
|
11
|
-
if (!state[tag]) {
|
|
12
|
-
state[tag] = {
|
|
13
|
-
screens: {},
|
|
14
|
-
linkStack: []
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
return state[tag];
|
|
18
|
-
};
|
|
19
|
-
exports.ensureTagState = ensureTagState;
|
|
20
|
-
const pruneTagState = (state, tag) => {
|
|
21
|
-
"worklet";
|
|
22
|
-
|
|
23
|
-
const tagState = state[tag];
|
|
24
|
-
if (!tagState) return;
|
|
25
|
-
if (!(0, _keys.hasAnyKeys)(tagState.screens) && tagState.linkStack.length === 0) {
|
|
26
|
-
delete state[tag];
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.pruneTagState = pruneTagState;
|
|
30
|
-
//# sourceMappingURL=tag-state.helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_keys","require","ensureTagState","state","tag","screens","linkStack","exports","pruneTagState","tagState","hasAnyKeys","length"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/tag-state.helpers.ts"],"mappings":";;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAEO,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;AAACG,OAAA,CAAAL,cAAA,GAAAA,cAAA;AAEK,MAAMM,aAAa,GAAGA,CAACL,KAAoB,EAAEC,GAAU,KAAK;EAClE,SAAS;;EACT,MAAMK,QAAQ,GAAGN,KAAK,CAACC,GAAG,CAAC;EAC3B,IAAI,CAACK,QAAQ,EAAE;EAEf,IAAI,CAAC,IAAAC,gBAAU,EAACD,QAAQ,CAACJ,OAAO,CAAC,IAAII,QAAQ,CAACH,SAAS,CAACK,MAAM,KAAK,CAAC,EAAE;IACrE,OAAOR,KAAK,CAACC,GAAG,CAAC;EAClB;AACD,CAAC;AAACG,OAAA,CAAAC,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getGroupActiveId = getGroupActiveId;
|
|
7
|
-
exports.getGroupInitialId = getGroupInitialId;
|
|
8
|
-
exports.resolveGroupLink = resolveGroupLink;
|
|
9
|
-
exports.setGroupActiveId = setGroupActiveId;
|
|
10
|
-
exports.setGroupInitialId = setGroupInitialId;
|
|
11
|
-
var _groups = require("../helpers/groups.helpers");
|
|
12
|
-
var _links = require("./links");
|
|
13
|
-
var _state = require("./state");
|
|
14
|
-
function setGroupActiveId(group, id) {
|
|
15
|
-
"worklet";
|
|
16
|
-
|
|
17
|
-
_state.groups.modify(state => {
|
|
18
|
-
"worklet";
|
|
19
|
-
|
|
20
|
-
const mutableState = state;
|
|
21
|
-
const previous = mutableState[group];
|
|
22
|
-
mutableState[group] = {
|
|
23
|
-
activeId: id,
|
|
24
|
-
initialId: previous?.initialId
|
|
25
|
-
};
|
|
26
|
-
return state;
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function setGroupInitialId(group, id) {
|
|
30
|
-
"worklet";
|
|
31
|
-
|
|
32
|
-
_state.groups.modify(state => {
|
|
33
|
-
"worklet";
|
|
34
|
-
|
|
35
|
-
const mutableState = state;
|
|
36
|
-
mutableState[group] = {
|
|
37
|
-
activeId: id,
|
|
38
|
-
initialId: id
|
|
39
|
-
};
|
|
40
|
-
return state;
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
function getGroupActiveId(tagOrGroup) {
|
|
44
|
-
"worklet";
|
|
45
|
-
|
|
46
|
-
return _state.groups.get()[(0, _groups.getGroupName)(tagOrGroup)]?.activeId ?? null;
|
|
47
|
-
}
|
|
48
|
-
function getGroupInitialId(tagOrGroup) {
|
|
49
|
-
"worklet";
|
|
50
|
-
|
|
51
|
-
return _state.groups.get()[(0, _groups.getGroupName)(tagOrGroup)]?.initialId ?? null;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Selects the current active group member for this tag.
|
|
55
|
-
function resolveGroupLink({
|
|
56
|
-
tag,
|
|
57
|
-
screenKey
|
|
58
|
-
}) {
|
|
59
|
-
"worklet";
|
|
60
|
-
|
|
61
|
-
const groupTag = (0, _groups.parseGroupTag)(tag);
|
|
62
|
-
if (!groupTag) {
|
|
63
|
-
return {
|
|
64
|
-
tag,
|
|
65
|
-
link: (0, _links.getMatchedLink)(tag, screenKey)
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
const requestedLink = (0, _links.getMatchedLink)(tag, screenKey);
|
|
69
|
-
if (requestedLink) {
|
|
70
|
-
return {
|
|
71
|
-
tag,
|
|
72
|
-
link: requestedLink
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
const activeId = getGroupActiveId(groupTag.group);
|
|
76
|
-
if (activeId) {
|
|
77
|
-
const activeTag = (0, _groups.createGroupTag)(groupTag.group, activeId);
|
|
78
|
-
const activeLink = (0, _links.getMatchedLink)(activeTag, screenKey);
|
|
79
|
-
if (activeLink) {
|
|
80
|
-
return {
|
|
81
|
-
tag: activeTag,
|
|
82
|
-
link: activeLink
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
const initialId = getGroupInitialId(groupTag.group);
|
|
87
|
-
if (initialId) {
|
|
88
|
-
const initialTag = (0, _groups.createGroupTag)(groupTag.group, initialId);
|
|
89
|
-
const initialLink = (0, _links.getMatchedLink)(initialTag, screenKey);
|
|
90
|
-
if (initialLink) {
|
|
91
|
-
return {
|
|
92
|
-
tag: initialTag,
|
|
93
|
-
link: initialLink
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return {
|
|
98
|
-
tag,
|
|
99
|
-
link: null
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
//# sourceMappingURL=groups.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_groups","require","_links","_state","setGroupActiveId","group","id","groups","modify","state","mutableState","previous","activeId","initialId","setGroupInitialId","getGroupActiveId","tagOrGroup","get","getGroupName","getGroupInitialId","resolveGroupLink","tag","screenKey","groupTag","parseGroupTag","link","getMatchedLink","requestedLink","activeTag","createGroupTag","activeLink","initialTag","initialLink"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/groups.ts"],"mappings":";;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAYA,SAASG,gBAAgBA,CAACC,KAAa,EAAEC,EAAU,EAAE;EACpD,SAAS;;EACTC,aAAM,CAACC,MAAM,CAAyBC,KAAQ,IAAQ;IACrD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAoB;IACzC,MAAME,QAAQ,GAAGD,YAAY,CAACL,KAAK,CAAC;IACpCK,YAAY,CAACL,KAAK,CAAC,GAAG;MACrBO,QAAQ,EAAEN,EAAE;MACZO,SAAS,EAAEF,QAAQ,EAAEE;IACtB,CAAC;IACD,OAAOJ,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASK,iBAAiBA,CAACT,KAAa,EAAEC,EAAU,EAAE;EACrD,SAAS;;EACTC,aAAM,CAACC,MAAM,CAAyBC,KAAQ,IAAQ;IACrD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAoB;IACzCC,YAAY,CAACL,KAAK,CAAC,GAAG;MACrBO,QAAQ,EAAEN,EAAE;MACZO,SAAS,EAAEP;IACZ,CAAC;IACD,OAAOG,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASM,gBAAgBA,CAACC,UAAkB,EAAiB;EAC5D,SAAS;;EACT,OAAOT,aAAM,CAACU,GAAG,CAAC,CAAC,CAAC,IAAAC,oBAAY,EAACF,UAAU,CAAC,CAAC,EAAEJ,QAAQ,IAAI,IAAI;AAChE;AAEA,SAASO,iBAAiBA,CAACH,UAAkB,EAAiB;EAC7D,SAAS;;EACT,OAAOT,aAAM,CAACU,GAAG,CAAC,CAAC,CAAC,IAAAC,oBAAY,EAACF,UAAU,CAAC,CAAC,EAAEH,SAAS,IAAI,IAAI;AACjE;;AAEA;AACA,SAASO,gBAAgBA,CAAC;EACzBC,GAAG;EACHC;AACuB,CAAC,EAAqB;EAC7C,SAAS;;EACT,MAAMC,QAAQ,GAAG,IAAAC,qBAAa,EAACH,GAAG,CAAC;EAEnC,IAAI,CAACE,QAAQ,EAAE;IACd,OAAO;MACNF,GAAG;MACHI,IAAI,EAAE,IAAAC,qBAAc,EAACL,GAAG,EAAEC,SAAS;IACpC,CAAC;EACF;EAEA,MAAMK,aAAa,GAAG,IAAAD,qBAAc,EAACL,GAAG,EAAEC,SAAS,CAAC;EACpD,IAAIK,aAAa,EAAE;IAClB,OAAO;MACNN,GAAG;MACHI,IAAI,EAAEE;IACP,CAAC;EACF;EAEA,MAAMf,QAAQ,GAAGG,gBAAgB,CAACQ,QAAQ,CAAClB,KAAK,CAAC;EACjD,IAAIO,QAAQ,EAAE;IACb,MAAMgB,SAAS,GAAG,IAAAC,sBAAc,EAACN,QAAQ,CAAClB,KAAK,EAAEO,QAAQ,CAAC;IAC1D,MAAMkB,UAAU,GAAG,IAAAJ,qBAAc,EAACE,SAAS,EAAEN,SAAS,CAAC;IACvD,IAAIQ,UAAU,EAAE;MACf,OAAO;QACNT,GAAG,EAAEO,SAAS;QACdH,IAAI,EAAEK;MACP,CAAC;IACF;EACD;EAEA,MAAMjB,SAAS,GAAGM,iBAAiB,CAACI,QAAQ,CAAClB,KAAK,CAAC;EACnD,IAAIQ,SAAS,EAAE;IACd,MAAMkB,UAAU,GAAG,IAAAF,sBAAc,EAACN,QAAQ,CAAClB,KAAK,EAAEQ,SAAS,CAAC;IAC5D,MAAMmB,WAAW,GAAG,IAAAN,qBAAc,EAACK,UAAU,EAAET,SAAS,CAAC;IACzD,IAAIU,WAAW,EAAE;MAChB,OAAO;QACNX,GAAG,EAAEU,UAAU;QACfN,IAAI,EAAEO;MACP,CAAC;IACF;EACD;EAEA,OAAO;IACNX,GAAG;IACHI,IAAI,EAAE;EACP,CAAC;AACF","ignoreList":[]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { setEntry } from "../../../stores/bounds/internals/entries";
|
|
4
|
-
import { setDestination, setSource } from "../../../stores/bounds/internals/links";
|
|
5
|
-
export const applyMeasuredBoundsWrites = params => {
|
|
6
|
-
"worklet";
|
|
7
|
-
|
|
8
|
-
const {
|
|
9
|
-
sharedBoundTag,
|
|
10
|
-
currentScreenKey,
|
|
11
|
-
measured,
|
|
12
|
-
preparedStyles,
|
|
13
|
-
shouldSetSource,
|
|
14
|
-
shouldUpdateSource,
|
|
15
|
-
shouldSetDestination,
|
|
16
|
-
shouldUpdateDestination,
|
|
17
|
-
expectedSourceScreenKey
|
|
18
|
-
} = params;
|
|
19
|
-
|
|
20
|
-
// Set the bounds entry on every measure to avoid any stale measurements
|
|
21
|
-
// for the public read API.
|
|
22
|
-
setEntry(sharedBoundTag, currentScreenKey, {
|
|
23
|
-
bounds: measured
|
|
24
|
-
});
|
|
25
|
-
if (shouldSetSource) {
|
|
26
|
-
setSource("capture", sharedBoundTag, currentScreenKey, measured, preparedStyles);
|
|
27
|
-
}
|
|
28
|
-
if (shouldUpdateSource) {
|
|
29
|
-
setSource("refresh", sharedBoundTag, currentScreenKey, measured, preparedStyles);
|
|
30
|
-
}
|
|
31
|
-
if (shouldUpdateDestination) {
|
|
32
|
-
setDestination("refresh", sharedBoundTag, currentScreenKey, measured, preparedStyles, expectedSourceScreenKey);
|
|
33
|
-
}
|
|
34
|
-
if (shouldSetDestination) {
|
|
35
|
-
setDestination("attach", sharedBoundTag, currentScreenKey, measured, preparedStyles, expectedSourceScreenKey);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=apply-measured-bounds-writes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["setEntry","setDestination","setSource","applyMeasuredBoundsWrites","params","sharedBoundTag","currentScreenKey","measured","preparedStyles","shouldSetSource","shouldUpdateSource","shouldSetDestination","shouldUpdateDestination","expectedSourceScreenKey","bounds"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/helpers/apply-measured-bounds-writes.ts"],"mappings":";;AACA,SAASA,QAAQ,QAAQ,0CAA0C;AACnE,SACCC,cAAc,EACdC,SAAS,QACH,wCAAwC;AAc/C,OAAO,MAAMC,yBAAyB,GACrCC,MAAuC,IACnC;EACJ,SAAS;;EACT,MAAM;IACLC,cAAc;IACdC,gBAAgB;IAChBC,QAAQ;IACRC,cAAc;IACdC,eAAe;IACfC,kBAAkB;IAClBC,oBAAoB;IACpBC,uBAAuB;IACvBC;EACD,CAAC,GAAGT,MAAM;;EAEV;EACA;EACAJ,QAAQ,CAACK,cAAc,EAAEC,gBAAgB,EAAE;IAC1CQ,MAAM,EAAEP;EACT,CAAC,CAAC;EAEF,IAAIE,eAAe,EAAE;IACpBP,SAAS,CACR,SAAS,EACTG,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cACD,CAAC;EACF;EAEA,IAAIE,kBAAkB,EAAE;IACvBR,SAAS,CACR,SAAS,EACTG,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cACD,CAAC;EACF;EAEA,IAAII,uBAAuB,EAAE;IAC5BX,cAAc,CACb,SAAS,EACTI,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdK,uBACD,CAAC;EACF;EAEA,IAAIF,oBAAoB,EAAE;IACzBV,cAAc,CACb,QAAQ,EACRI,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdK,uBACD,CAAC;EACF;AACD,CAAC","ignoreList":[]}
|
package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { getPendingLink, hasSourceLink } from "../../../stores/bounds/internals/links";
|
|
4
|
-
export const resolvePendingSourceKey = (sharedBoundTag, expectedSourceScreenKey) => {
|
|
5
|
-
"worklet";
|
|
6
|
-
|
|
7
|
-
if (expectedSourceScreenKey && (getPendingLink(sharedBoundTag, expectedSourceScreenKey) || hasSourceLink(sharedBoundTag, expectedSourceScreenKey))) {
|
|
8
|
-
return expectedSourceScreenKey;
|
|
9
|
-
}
|
|
10
|
-
return getPendingLink(sharedBoundTag)?.source.screenKey ?? null;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=resolve-pending-source-key.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["getPendingLink","hasSourceLink","resolvePendingSourceKey","sharedBoundTag","expectedSourceScreenKey","source","screenKey"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts"],"mappings":";;AAAA,SACCA,cAAc,EACdC,aAAa,QACP,wCAAwC;AAE/C,OAAO,MAAMC,uBAAuB,GAAGA,CACtCC,cAAsB,EACtBC,uBAAgC,KACb;EACnB,SAAS;;EACT,IACCA,uBAAuB,KACtBJ,cAAc,CAACG,cAAc,EAAEC,uBAAuB,CAAC,IACvDH,aAAa,CAACE,cAAc,EAAEC,uBAAuB,CAAC,CAAC,EACvD;IACD,OAAOA,uBAAuB;EAC/B;EAEA,OAAOJ,cAAc,CAACG,cAAc,CAAC,EAAEE,MAAM,CAACC,SAAS,IAAI,IAAI;AAChE,CAAC","ignoreList":[]}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { getPendingLink, hasDestinationLink, hasSourceLink } from "../../../../stores/bounds/internals/links";
|
|
4
|
-
import { resolvePendingSourceKey } from "../../helpers/resolve-pending-source-key";
|
|
5
|
-
export const createLinkContext = params => {
|
|
6
|
-
"worklet";
|
|
7
|
-
|
|
8
|
-
const {
|
|
9
|
-
sharedBoundTag,
|
|
10
|
-
currentScreenKey,
|
|
11
|
-
preferredSourceScreenKey
|
|
12
|
-
} = params;
|
|
13
|
-
const expectedSourceScreenKey = resolvePendingSourceKey(sharedBoundTag, preferredSourceScreenKey) ?? undefined;
|
|
14
|
-
const hasPendingLink = getPendingLink(sharedBoundTag, expectedSourceScreenKey) !== null;
|
|
15
|
-
return {
|
|
16
|
-
expectedSourceScreenKey,
|
|
17
|
-
hasPendingLink,
|
|
18
|
-
hasAttachableSourceLink: expectedSourceScreenKey ? hasSourceLink(sharedBoundTag, expectedSourceScreenKey) : false,
|
|
19
|
-
hasSourceLink: hasSourceLink(sharedBoundTag, currentScreenKey),
|
|
20
|
-
hasDestinationLink: hasDestinationLink(sharedBoundTag, currentScreenKey)
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=boundary-link-context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["getPendingLink","hasDestinationLink","hasSourceLink","resolvePendingSourceKey","createLinkContext","params","sharedBoundTag","currentScreenKey","preferredSourceScreenKey","expectedSourceScreenKey","undefined","hasPendingLink","hasAttachableSourceLink"],"sourceRoot":"../../../../../../../src","sources":["shared/components/create-boundary-component/hooks/helpers/boundary-link-context.ts"],"mappings":";;AAAA,SACCA,cAAc,EACdC,kBAAkB,EAClBC,aAAa,QACP,2CAA2C;AAClD,SAASC,uBAAuB,QAAQ,0CAA0C;AAmBlF,OAAO,MAAMC,iBAAiB,GAAIC,MAIjC,IAAkB;EAClB,SAAS;;EACT,MAAM;IAAEC,cAAc;IAAEC,gBAAgB;IAAEC;EAAyB,CAAC,GAAGH,MAAM;EAE7E,MAAMI,uBAAuB,GAC5BN,uBAAuB,CAACG,cAAc,EAAEE,wBAAwB,CAAC,IACjEE,SAAS;EACV,MAAMC,cAAc,GACnBX,cAAc,CAACM,cAAc,EAAEG,uBAAuB,CAAC,KAAK,IAAI;EAEjE,OAAO;IACNA,uBAAuB;IACvBE,cAAc;IACdC,uBAAuB,EAAEH,uBAAuB,GAC7CP,aAAa,CAACI,cAAc,EAAEG,uBAAuB,CAAC,GACtD,KAAK;IACRP,aAAa,EAAEA,aAAa,CAACI,cAAc,EAAEC,gBAAgB,CAAC;IAC9DN,kBAAkB,EAAEA,kBAAkB,CAACK,cAAc,EAAEC,gBAAgB;EACxE,CAAC;AACF,CAAC","ignoreList":[]}
|
package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
export const shouldBlockInitialDestinationMeasurement = params => {
|
|
4
|
-
"worklet";
|
|
5
|
-
|
|
6
|
-
const {
|
|
7
|
-
enabled,
|
|
8
|
-
hasDestinationLink,
|
|
9
|
-
hasAttachableSourceLink
|
|
10
|
-
} = params;
|
|
11
|
-
return enabled && hasAttachableSourceLink && !hasDestinationLink;
|
|
12
|
-
};
|
|
13
|
-
export const getMeasureIntentFlags = intent => {
|
|
14
|
-
"worklet";
|
|
15
|
-
|
|
16
|
-
const flags = {
|
|
17
|
-
captureSource: false,
|
|
18
|
-
completeDestination: false,
|
|
19
|
-
refreshSource: false,
|
|
20
|
-
refreshDestination: false
|
|
21
|
-
};
|
|
22
|
-
if (!intent) {
|
|
23
|
-
return flags;
|
|
24
|
-
}
|
|
25
|
-
const intents = Array.isArray(intent) ? intent : [intent];
|
|
26
|
-
for (let i = 0; i < intents.length; i++) {
|
|
27
|
-
switch (intents[i]) {
|
|
28
|
-
case "capture-source":
|
|
29
|
-
flags.captureSource = true;
|
|
30
|
-
break;
|
|
31
|
-
case "complete-destination":
|
|
32
|
-
flags.completeDestination = true;
|
|
33
|
-
break;
|
|
34
|
-
case "refresh-source":
|
|
35
|
-
flags.refreshSource = true;
|
|
36
|
-
break;
|
|
37
|
-
case "refresh-destination":
|
|
38
|
-
flags.refreshDestination = true;
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return flags;
|
|
43
|
-
};
|
|
44
|
-
export const buildMeasurementWritePlan = params => {
|
|
45
|
-
"worklet";
|
|
46
|
-
|
|
47
|
-
const {
|
|
48
|
-
intents,
|
|
49
|
-
hasPendingLink,
|
|
50
|
-
hasSourceLink,
|
|
51
|
-
hasDestinationLink,
|
|
52
|
-
hasAttachableSourceLink
|
|
53
|
-
} = params;
|
|
54
|
-
const captureSource = intents.captureSource;
|
|
55
|
-
const completeDestination = intents.completeDestination && (hasPendingLink || hasAttachableSourceLink);
|
|
56
|
-
const refreshSource = intents.refreshSource && hasSourceLink;
|
|
57
|
-
const refreshDestination = intents.refreshDestination && (hasDestinationLink || hasPendingLink || hasAttachableSourceLink);
|
|
58
|
-
const writesAny = captureSource || completeDestination || refreshSource || refreshDestination;
|
|
59
|
-
return {
|
|
60
|
-
captureSource,
|
|
61
|
-
completeDestination,
|
|
62
|
-
refreshSource,
|
|
63
|
-
refreshDestination,
|
|
64
|
-
writesAny,
|
|
65
|
-
wantsDestinationWrite: completeDestination || refreshDestination
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=measurement-rules.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["shouldBlockInitialDestinationMeasurement","params","enabled","hasDestinationLink","hasAttachableSourceLink","getMeasureIntentFlags","intent","flags","captureSource","completeDestination","refreshSource","refreshDestination","intents","Array","isArray","i","length","buildMeasurementWritePlan","hasPendingLink","hasSourceLink","writesAny","wantsDestinationWrite"],"sourceRoot":"../../../../../../../src","sources":["shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts"],"mappings":";;AAkBA,OAAO,MAAMA,wCAAwC,GAAIC,MAIxD,IAAc;EACd,SAAS;;EACT,MAAM;IAAEC,OAAO;IAAEC,kBAAkB;IAAEC;EAAwB,CAAC,GAAGH,MAAM;EAEvE,OAAOC,OAAO,IAAIE,uBAAuB,IAAI,CAACD,kBAAkB;AACjE,CAAC;AAED,OAAO,MAAME,qBAAqB,GACjCC,MAAiD,IACzB;EACxB,SAAS;;EACT,MAAMC,KAAyB,GAAG;IACjCC,aAAa,EAAE,KAAK;IACpBC,mBAAmB,EAAE,KAAK;IAC1BC,aAAa,EAAE,KAAK;IACpBC,kBAAkB,EAAE;EACrB,CAAC;EAED,IAAI,CAACL,MAAM,EAAE;IACZ,OAAOC,KAAK;EACb;EAEA,MAAMK,OAAO,GAAGC,KAAK,CAACC,OAAO,CAACR,MAAM,CAAC,GAAGA,MAAM,GAAG,CAACA,MAAM,CAAC;EAEzD,KAAK,IAAIS,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,OAAO,CAACI,MAAM,EAAED,CAAC,EAAE,EAAE;IACxC,QAAQH,OAAO,CAACG,CAAC,CAAC;MACjB,KAAK,gBAAgB;QACpBR,KAAK,CAACC,aAAa,GAAG,IAAI;QAC1B;MACD,KAAK,sBAAsB;QAC1BD,KAAK,CAACE,mBAAmB,GAAG,IAAI;QAChC;MACD,KAAK,gBAAgB;QACpBF,KAAK,CAACG,aAAa,GAAG,IAAI;QAC1B;MACD,KAAK,qBAAqB;QACzBH,KAAK,CAACI,kBAAkB,GAAG,IAAI;QAC/B;IACF;EACD;EAEA,OAAOJ,KAAK;AACb,CAAC;AAED,OAAO,MAAMU,yBAAyB,GAAIhB,MAMzC,IAAuB;EACvB,SAAS;;EACT,MAAM;IACLW,OAAO;IACPM,cAAc;IACdC,aAAa;IACbhB,kBAAkB;IAClBC;EACD,CAAC,GAAGH,MAAM;EAEV,MAAMO,aAAa,GAAGI,OAAO,CAACJ,aAAa;EAC3C,MAAMC,mBAAmB,GACxBG,OAAO,CAACH,mBAAmB,KAAKS,cAAc,IAAId,uBAAuB,CAAC;EAC3E,MAAMM,aAAa,GAAGE,OAAO,CAACF,aAAa,IAAIS,aAAa;EAC5D,MAAMR,kBAAkB,GACvBC,OAAO,CAACD,kBAAkB,KACzBR,kBAAkB,IAAIe,cAAc,IAAId,uBAAuB,CAAC;EAClE,MAAMgB,SAAS,GACdZ,aAAa,IAAIC,mBAAmB,IAAIC,aAAa,IAAIC,kBAAkB;EAE5E,OAAO;IACNH,aAAa;IACbC,mBAAmB;IACnBC,aAAa;IACbC,kBAAkB;IAClBS,SAAS;IACTC,qBAAqB,EAAEZ,mBAAmB,IAAIE;EAC/C,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
export const isMeasurementInViewport = (measured, viewportWidth, viewportHeight) => {
|
|
4
|
-
"worklet";
|
|
5
|
-
|
|
6
|
-
if (measured.width <= 0 || measured.height <= 0) {
|
|
7
|
-
return false;
|
|
8
|
-
}
|
|
9
|
-
const toleranceX = viewportWidth * 0.15;
|
|
10
|
-
const toleranceY = viewportHeight * 0.15;
|
|
11
|
-
const centerX = measured.pageX + measured.width / 2;
|
|
12
|
-
const centerY = measured.pageY + measured.height / 2;
|
|
13
|
-
return centerX >= -toleranceX && centerX <= viewportWidth + toleranceX && centerY >= -toleranceY && centerY <= viewportHeight + toleranceY;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=measurement.js.map
|