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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DEFAULT_GESTURE_ACTIVATION_AREA","DEFAULT_GESTURE_DIRECTION","DEFAULT_GESTURE_PROGRESS_MODE","DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE","DEFAULT_GESTURE_SENSITIVITY","DEFAULT_GESTURE_SNAP_LOCKED","DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT","DEFAULT_GESTURE_VELOCITY_IMPACT","DEFAULT_SHEET_SCROLL_GESTURE_BEHAVIOR","resolveGestureProgressMode","computeClaimedDirections","resolveOwnership","getPanActivationDirections","getPanGestureDirections","getPanSnapAxisDirections","getPinchGestureDirections","getSnapPinchDirectionConfig","validateSnapPoints","resolveGestureDirection","options","gestureDirection","resolveGestureProgressModePolicy","gestureProgressMode","gestureDrivesProgress","fallback","resolveCommonGesturePolicy","gestureSensitivity","gestureSnapVelocityImpact","gestureSnapLocked","gestureReleaseVelocityScale","transitionSpec","resolvePolicySheetScrollGestureBehavior","explicitBehavior","sheetScrollGestureBehavior","legacyBehavior","expandViaScrollView","undefined","resolvePinchDirections","hasSnapPoints","pinchDirections","snapDirections","pinchInEnabled","pinchOutEnabled","includes","resolveGestureCanDismiss","isFirstKey","gestureEnabled","Boolean","resolveGestureCanTrack","canDismiss","allowDisabledGestureTracking","resolvePanPolicy","hasPanDirection","length","enabled","panActivationDirections","snapAxisDirections","gestureVelocityImpact","gestureActivationArea","gestureResponseDistance","resolvePinchPolicy","resolveGestureParticipation","gestureContext","effectiveSnapPoints","snapPoints","canTrackGesture","experimental_allowDisabledGestureTracking","claimedDirections","ownershipStatus","resolveScreenGestureConfig","participation","pan","pinch","resolveRuntimeCanDismiss","resolveRuntimeCanTrackGesture","resolveRuntimeGestureParticipation"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/gestures/shared/policy.ts"],"mappings":";;AAAA,SACCA,+BAA+B,EAC/BC,yBAAyB,EACzBC,6BAA6B,EAC7BC,sCAAsC,EACtCC,2BAA2B,EAC3BC,2BAA2B,EAC3BC,oCAAoC,EACpCC,+BAA+B,EAC/BC,qCAAqC,QAC/B,uBAAuB;AAW9B,SAASC,0BAA0B,QAAQ,yCAAyC;AACpF,SAASC,wBAAwB,QAAQ,yCAAyC;AAClF,SAASC,gBAAgB,QAAQ,gCAAgC;AAQjE,SACCC,0BAA0B,EAC1BC,uBAAuB,EACvBC,wBAAwB,EACxBC,yBAAyB,EACzBC,2BAA2B,QACrB,cAAc;AACrB,SAASC,kBAAkB,QAAQ,eAAe;AAqBlD,MAAMC,uBAAuB,GAAIC,OAA6B,IAAK;EAClE,SAAS;;EACT,OAAOA,OAAO,CAACC,gBAAgB,IAAInB,yBAAyB;AAC7D,CAAC;AAED,
|
|
1
|
+
{"version":3,"names":["DEFAULT_GESTURE_ACTIVATION_AREA","DEFAULT_GESTURE_DIRECTION","DEFAULT_GESTURE_PROGRESS_MODE","DEFAULT_GESTURE_RELEASE_VELOCITY_SCALE","DEFAULT_GESTURE_SENSITIVITY","DEFAULT_GESTURE_SNAP_LOCKED","DEFAULT_GESTURE_SNAP_VELOCITY_IMPACT","DEFAULT_GESTURE_VELOCITY_IMPACT","DEFAULT_SHEET_SCROLL_GESTURE_BEHAVIOR","resolveGestureProgressMode","computeClaimedDirections","resolveOwnership","getPanActivationDirections","getPanGestureDirections","getPanSnapAxisDirections","getPinchGestureDirections","getSnapPinchDirectionConfig","validateSnapPoints","resolveGestureDirection","options","gestureDirection","resolveGestureProgressModePolicy","gestureProgressMode","gestureDrivesProgress","fallback","resolveCommonGesturePolicy","gestureSensitivity","gestureSnapVelocityImpact","gestureSnapLocked","gestureReleaseVelocityScale","transitionSpec","resolvePolicySheetScrollGestureBehavior","explicitBehavior","sheetScrollGestureBehavior","legacyBehavior","expandViaScrollView","undefined","resolvePinchDirections","hasSnapPoints","pinchDirections","snapDirections","pinchInEnabled","pinchOutEnabled","includes","resolveGestureCanDismiss","isFirstKey","gestureEnabled","Boolean","resolveGestureCanTrack","canDismiss","allowDisabledGestureTracking","resolvePanPolicy","hasPanDirection","length","enabled","panActivationDirections","snapAxisDirections","gestureVelocityImpact","gestureActivationArea","gestureResponseDistance","resolvePinchPolicy","resolveGestureParticipation","gestureContext","effectiveSnapPoints","snapPoints","canTrackGesture","experimental_allowDisabledGestureTracking","claimedDirections","ownershipStatus","resolveScreenGestureConfig","participation","pan","pinch","resolveRuntimeCanDismiss","resolveRuntimeCanTrackGesture","resolveRuntimeGestureParticipation"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/gestures/shared/policy.ts"],"mappings":";;AAAA,SACCA,+BAA+B,EAC/BC,yBAAyB,EACzBC,6BAA6B,EAC7BC,sCAAsC,EACtCC,2BAA2B,EAC3BC,2BAA2B,EAC3BC,oCAAoC,EACpCC,+BAA+B,EAC/BC,qCAAqC,QAC/B,uBAAuB;AAW9B,SAASC,0BAA0B,QAAQ,yCAAyC;AACpF,SAASC,wBAAwB,QAAQ,yCAAyC;AAClF,SAASC,gBAAgB,QAAQ,gCAAgC;AA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I,EAAE;IAC/D,OAAO,IAAI;EACZ;EAEA,MAAMpB,cAAc,GAAG3B,OAAO,CAAC2B,cAAc;EAC7C,IAAIA,cAAc,KAAK,IAAI,EAAE;IAC5B,OAAO,IAAI;EACZ;EAEA,IAAIA,cAAc,KAAK,KAAK,EAAE;IAC7B,OAAOwB,aAAa,CAACP,mBAAmB,CAACzB,aAAa;EACvD;EAEA,OAAOgC,aAAa,CAACL,eAAe;AACrC;AAEA,OAAO,MAAMU,kCAAkC,GAAGA,CAAC;EAClDL,aAAa;EACbnD;AAID,CAAC,KAAiC;EACjC,SAAS;;EACT,MAAM8B,UAAU,GAAGwB,wBAAwB,CAACH,aAAa,EAAEnD,OAAO,CAAC;EACnE,MAAM8C,eAAe,GAAGS,6BAA6B,CAACJ,aAAa,EAAEnD,OAAO,CAAC;EAE7E,OAAO;IACN,GAAGmD,aAAa;IAChBrB,UAAU;IACVgB;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -6,7 +6,6 @@ import { SystemStore } from "../../../../stores/system.store";
|
|
|
6
6
|
import { logger } from "../../../../utils/logger";
|
|
7
7
|
import { useScreenAnimationContext } from "../../animation";
|
|
8
8
|
import { useBuildBoundsAccessor } from "../../animation/helpers/accessors/use-build-bounds-accessor";
|
|
9
|
-
import { useBuildTransitionAccessor } from "../../animation/helpers/accessors/use-build-transition-accessor";
|
|
10
9
|
import { syncSelectedInterpolatorOptions } from "../../animation/helpers/selected-interpolator-options";
|
|
11
10
|
import { useDescriptorDerivations } from "../../descriptors";
|
|
12
11
|
import { syncScreenOptionsOverrides, useScreenOptionsContext } from "../../options";
|
|
@@ -52,7 +51,6 @@ export const useInterpolatedStylesMap = () => {
|
|
|
52
51
|
currentInterpolator
|
|
53
52
|
} = useScreenAnimationContext();
|
|
54
53
|
const boundsAccessor = useBuildBoundsAccessor();
|
|
55
|
-
const transition = useBuildTransitionAccessor();
|
|
56
54
|
const pendingLifecycleStartBlockCount = SystemStore.getValue(currentScreenKey, "pendingLifecycleStartBlockCount");
|
|
57
55
|
const isGesturingDuringCloseAnimation = useSharedValue(false);
|
|
58
56
|
return useDerivedValue(() => {
|
|
@@ -109,8 +107,7 @@ export const useInterpolatedStylesMap = () => {
|
|
|
109
107
|
...props,
|
|
110
108
|
progress: effectiveProgress,
|
|
111
109
|
next: effectiveNext,
|
|
112
|
-
bounds: boundsAccessor
|
|
113
|
-
transition
|
|
110
|
+
bounds: boundsAccessor
|
|
114
111
|
});
|
|
115
112
|
const rawStyleMap = typeof raw === "object" && raw != null ? raw : undefined;
|
|
116
113
|
syncSelectedInterpolatorOptions(selectedInterpolatorOptions, interpolatorOptionsOwner, rawStyleMap?.options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useDerivedValue","useSharedValue","NO_STYLES","SystemStore","logger","useScreenAnimationContext","useBuildBoundsAccessor","
|
|
1
|
+
{"version":3,"names":["useDerivedValue","useSharedValue","NO_STYLES","SystemStore","logger","useScreenAnimationContext","useBuildBoundsAccessor","syncSelectedInterpolatorOptions","useDescriptorDerivations","syncScreenOptionsOverrides","useScreenOptionsContext","normalizeSlots","preserveAnimatedPropsOnly","stripInterpolatorOptions","useInterpolatedStylesMap","currentScreenKey","screenOptions","screenInterpolatorProps","screenInterpolatorPropsRevision","selectedInterpolatorOptions","nextInterpolator","currentInterpolator","boundsAccessor","pendingLifecycleStartBlockCount","getValue","isGesturingDuringCloseAnimation","get","props","shouldDeferStyleBuckets","current","next","progress","isDragging","gesture","dragging","isNextClosing","closing","set","isInGestureMode","interpolatorOptionsOwner","interpolator","undefined","effectiveProgress","effectiveNext","raw","bounds","rawStyleMap","options","stylesMap","_","__DEV__","warn"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx"],"mappings":";;AAAA,SAASA,eAAe,EAAEC,cAAc,QAAQ,yBAAyB;AACzE,SAASC,SAAS,QAAQ,uBAAuB;AACjD,SAASC,WAAW,QAAQ,iCAAiC;AAK7D,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AC9BY,2BAA2B,EAC3BoB,wBAAwB,EACxBO,WAAW,EAAEC,OACd,CAAC;MACDtC,0BAA0B,CACzB8B,wBAAwB,KAAK,SAAS,GAAGO,WAAW,GAAGL,SAAS,EAChEzB,aACD,CAAC;MAED,MAAMgC,SAAS,GAAG,CAACF,WAAW,GAC3B5C,SAAS,GACTS,cAAc,CAACE,wBAAwB,CAACiC,WAAW,CAAC,CAAC;MAExD,OAAOlB,uBAAuB,GAC3BhB,yBAAyB,CAACoC,SAAS,CAAC,GACpCA,SAAS;IACb,CAAC,CAAC,OAAOC,CAAC,EAAE;MACX,IAAIC,OAAO,EAAE;QACZ9C,MAAM,CAAC+C,IAAI,CAAC,2CAA2C,CAAC;MACzD;MAEA5C,+BAA+B,CAACY,2BAA2B,EAAE,SAAS,CAAC;MACvEV,0BAA0B,CAACgC,SAAS,EAAEzB,aAAa,CAAC;MACpD,OAAOd,SAAS;IACjB;EACD,CAAC,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const PAIR_SEPARATOR = "<>";
|
|
4
|
+
export const createScreenPairKey = (sourceScreenKey, destinationScreenKey) => {
|
|
5
|
+
"worklet";
|
|
6
|
+
|
|
7
|
+
return `${sourceScreenKey}${PAIR_SEPARATOR}${destinationScreenKey}`;
|
|
8
|
+
};
|
|
9
|
+
export const createPendingPairKey = sourceScreenKey => {
|
|
10
|
+
"worklet";
|
|
11
|
+
|
|
12
|
+
return createScreenPairKey(sourceScreenKey, "");
|
|
13
|
+
};
|
|
14
|
+
export const getSourceScreenKeyFromPairKey = pairKey => {
|
|
15
|
+
"worklet";
|
|
16
|
+
|
|
17
|
+
const separatorIndex = pairKey.indexOf(PAIR_SEPARATOR);
|
|
18
|
+
if (separatorIndex === -1) return pairKey;
|
|
19
|
+
return pairKey.slice(0, separatorIndex);
|
|
20
|
+
};
|
|
21
|
+
export const getDestinationScreenKeyFromPairKey = pairKey => {
|
|
22
|
+
"worklet";
|
|
23
|
+
|
|
24
|
+
const separatorIndex = pairKey.indexOf(PAIR_SEPARATOR);
|
|
25
|
+
if (separatorIndex === -1) return "";
|
|
26
|
+
return pairKey.slice(separatorIndex + PAIR_SEPARATOR.length);
|
|
27
|
+
};
|
|
28
|
+
export const isScreenPairKeyForScreen = (pairKey, screenKey) => {
|
|
29
|
+
"worklet";
|
|
30
|
+
|
|
31
|
+
return pairKey === createPendingPairKey(screenKey) || pairKey.startsWith(`${screenKey}${PAIR_SEPARATOR}`) || pairKey.endsWith(`${PAIR_SEPARATOR}${screenKey}`);
|
|
32
|
+
};
|
|
33
|
+
export const getLinkKeyFromTag = tag => {
|
|
34
|
+
"worklet";
|
|
35
|
+
|
|
36
|
+
const separatorIndex = tag.indexOf(":");
|
|
37
|
+
if (separatorIndex === -1) return tag;
|
|
38
|
+
return tag.slice(separatorIndex + 1);
|
|
39
|
+
};
|
|
40
|
+
export const getGroupKeyFromTag = tag => {
|
|
41
|
+
"worklet";
|
|
42
|
+
|
|
43
|
+
const separatorIndex = tag.indexOf(":");
|
|
44
|
+
if (separatorIndex === -1) return null;
|
|
45
|
+
return tag.slice(0, separatorIndex);
|
|
46
|
+
};
|
|
47
|
+
export const createGroupTag = (group, linkKey) => {
|
|
48
|
+
"worklet";
|
|
49
|
+
|
|
50
|
+
return `${group}:${linkKey}`;
|
|
51
|
+
};
|
|
52
|
+
export const ensurePairState = (state, pairKey) => {
|
|
53
|
+
"worklet";
|
|
54
|
+
|
|
55
|
+
if (!state[pairKey]) {
|
|
56
|
+
state[pairKey] = {
|
|
57
|
+
links: {},
|
|
58
|
+
groups: {}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
state[pairKey].groups ??= {};
|
|
62
|
+
return state[pairKey];
|
|
63
|
+
};
|
|
64
|
+
export const ensurePairLinks = (state, pairKey) => {
|
|
65
|
+
"worklet";
|
|
66
|
+
|
|
67
|
+
return ensurePairState(state, pairKey).links;
|
|
68
|
+
};
|
|
69
|
+
export const ensurePairGroups = (state, pairKey) => {
|
|
70
|
+
"worklet";
|
|
71
|
+
|
|
72
|
+
return ensurePairState(state, pairKey).groups;
|
|
73
|
+
};
|
|
74
|
+
export const removePairLink = (state, pairKey, linkKey) => {
|
|
75
|
+
"worklet";
|
|
76
|
+
|
|
77
|
+
const pair = state[pairKey];
|
|
78
|
+
if (!pair) return;
|
|
79
|
+
delete pair.links[linkKey];
|
|
80
|
+
for (const key in pair.links) {
|
|
81
|
+
if (pair.links[key]) return;
|
|
82
|
+
}
|
|
83
|
+
delete state[pairKey];
|
|
84
|
+
};
|
|
85
|
+
export const getLink = (state, pairKey, linkKey) => {
|
|
86
|
+
"worklet";
|
|
87
|
+
|
|
88
|
+
return state[pairKey]?.links[linkKey] ?? null;
|
|
89
|
+
};
|
|
90
|
+
export const getSource = (state, pairKey, linkKey) => {
|
|
91
|
+
"worklet";
|
|
92
|
+
|
|
93
|
+
return getLink(state, pairKey, linkKey)?.source ?? null;
|
|
94
|
+
};
|
|
95
|
+
export const getDestination = (state, pairKey, linkKey) => {
|
|
96
|
+
"worklet";
|
|
97
|
+
|
|
98
|
+
return getLink(state, pairKey, linkKey)?.destination ?? null;
|
|
99
|
+
};
|
|
100
|
+
export const getActiveGroupId = (state, pairKey, group) => {
|
|
101
|
+
"worklet";
|
|
102
|
+
|
|
103
|
+
return state[pairKey]?.groups?.[group]?.activeId ?? null;
|
|
104
|
+
};
|
|
105
|
+
//# sourceMappingURL=link-pairs.helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["PAIR_SEPARATOR","createScreenPairKey","sourceScreenKey","destinationScreenKey","createPendingPairKey","getSourceScreenKeyFromPairKey","pairKey","separatorIndex","indexOf","slice","getDestinationScreenKeyFromPairKey","length","isScreenPairKeyForScreen","screenKey","startsWith","endsWith","getLinkKeyFromTag","tag","getGroupKeyFromTag","createGroupTag","group","linkKey","ensurePairState","state","links","groups","ensurePairLinks","ensurePairGroups","removePairLink","pair","key","getLink","getSource","source","getDestination","destination","getActiveGroupId","activeId"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/link-pairs.helpers.ts"],"mappings":";;AAWA,MAAMA,cAAc,GAAG,IAAI;AAE3B,OAAO,MAAMC,mBAAmB,GAAGA,CAClCC,eAA8C,EAC9CC,oBAAwD,KACrC;EACnB,SAAS;;EACT,OAAO,GAAGD,eAAe,GAAGF,cAAc,GAAGG,oBAAoB,EAAE;AACpE,CAAC;AAED,OAAO,MAAMC,oBAAoB,GAChCF,eAA8C,IAC3B;EACnB,SAAS;;EACT,OAAOD,mBAAmB,CAACC,eAAe,EAAE,EAAE,CAAC;AAChD,CAAC;AAED,OAAO,MAAMG,6BAA6B,GACzCC,OAAsB,IACa;EACnC,SAAS;;EACT,MAAMC,cAAc,GAAGD,OAAO,CAACE,OAAO,CAACR,cAAc,CAAC;EACtD,IAAIO,cAAc,KAAK,CAAC,CAAC,EAAE,OAAOD,OAAO;EACzC,OAAOA,OAAO,CAACG,KAAK,CAAC,CAAC,EAAEF,cAAc,CAAC;AACxC,CAAC;AAED,OAAO,MAAMG,kCAAkC,GAC9CJ,OAAsB,IACkB;EACxC,SAAS;;EACT,MAAMC,cAAc,GAAGD,OAAO,CAACE,OAAO,CAACR,cAAc,CAAC;EACtD,IAAIO,cAAc,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE;EACpC,OAAOD,OAAO,CAACG,KAAK,CAACF,cAAc,GAAGP,cAAc,CAACW,MAAM,CAAC;AAC7D,CAAC;AAED,OAAO,MAAMC,wBAAwB,GAAGA,CACvCN,OAAsB,EACtBO,SAAwC,KAC3B;EACb,SAAS;;EACT,OACCP,OAAO,KAAKF,oBAAoB,CAACS,SAAS,CAAC,IAC3CP,OAAO,CAACQ,UAAU,CAAC,GAAGD,SAAS,GAAGb,cAAc,EAAE,CAAC,IACnDM,OAAO,CAACS,QAAQ,CAAC,GAAGf,cAAc,GAAGa,SAAS,EAAE,CAAC;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AAGL,KAAK,CAAC,EAAEiB,QAAQ,IAAI,IAAI;AACzD,CAAC","ignoreList":[]}
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { clear } from "./internals/clear";
|
|
4
4
|
import { getEntry, removeEntry, setEntry } from "./internals/entries";
|
|
5
|
-
import {
|
|
6
|
-
import { getMatchedLink, getPendingLink, hasDestinationLink, hasSourceLink, setDestination, setSource } from "./internals/links";
|
|
5
|
+
import { getActiveGroupId, getDestination, getLink, getSource, setActiveGroupId, setDestination, setSource } from "./internals/links";
|
|
7
6
|
import { resolveTransitionPair } from "./internals/resolver";
|
|
8
7
|
export const BoundStore = {
|
|
9
8
|
entry: {
|
|
@@ -14,17 +13,12 @@ export const BoundStore = {
|
|
|
14
13
|
link: {
|
|
15
14
|
setSource,
|
|
16
15
|
setDestination,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
group: {
|
|
24
|
-
setActiveId: setGroupActiveId,
|
|
25
|
-
setInitialId: setGroupInitialId,
|
|
26
|
-
getActiveId: getGroupActiveId,
|
|
27
|
-
getInitialId: getGroupInitialId
|
|
16
|
+
setActiveGroupId,
|
|
17
|
+
getLink,
|
|
18
|
+
getSource,
|
|
19
|
+
getDestination,
|
|
20
|
+
getActiveGroupId,
|
|
21
|
+
getPair: resolveTransitionPair
|
|
28
22
|
},
|
|
29
23
|
cleanup: {
|
|
30
24
|
byScreen: clear
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["clear","getEntry","removeEntry","setEntry","
|
|
1
|
+
{"version":3,"names":["clear","getEntry","removeEntry","setEntry","getActiveGroupId","getDestination","getLink","getSource","setActiveGroupId","setDestination","setSource","resolveTransitionPair","BoundStore","entry","set","get","remove","link","getPair","cleanup","byScreen"],"sourceRoot":"../../../../../src","sources":["shared/stores/bounds/index.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,mBAAmB;AACzC,SAASC,QAAQ,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,qBAAqB;AACrE,SACCC,gBAAgB,EAChBC,cAAc,EACdC,OAAO,EACPC,SAAS,EACTC,gBAAgB,EAChBC,cAAc,EACdC,SAAS,QACH,mBAAmB;AAC1B,SAASC,qBAAqB,QAAQ,sBAAsB;AAc5D,OAAO,MAAMC,UAAU,GAAG;EACzBC,KAAK,EAAE;IACNC,GAAG,EAAEX,QAAQ;IACbY,GAAG,EAAEd,QAAQ;IACbe,MAAM,EAAEd;EACT,CAAC;EACDe,IAAI,EAAE;IACLP,SAAS;IACTD,cAAc;IACdD,gBAAgB;IAChBF,OAAO;IACPC,SAAS;IACTF,cAAc;IACdD,gBAAgB;IAChBc,OAAO,EAAEP;EACV,CAAC;EACDQ,OAAO,EAAE;IACRC,QAAQ,EAAEpB;EACX;AACD,CAAC","ignoreList":[]}
|
|
@@ -1,40 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { hasAnyKeys } from "../helpers/keys";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
4
|
+
import { isScreenPairKeyForScreen } from "../helpers/link-pairs.helpers";
|
|
5
|
+
import { boundaryRegistry, pairs } from "./state";
|
|
6
|
+
function clear(screenKey) {
|
|
7
7
|
"worklet";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
boundaryRegistry.modify(state => {
|
|
10
10
|
"worklet";
|
|
11
11
|
|
|
12
12
|
for (const tag in state) {
|
|
13
13
|
const tagState = state[tag];
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
if (shouldClearScreen(entryScreenKey, screenEntry)) {
|
|
17
|
-
delete tagState.screens[entryScreenKey];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
for (let i = tagState.linkStack.length - 1; i >= 0; i--) {
|
|
21
|
-
const link = tagState.linkStack[i];
|
|
22
|
-
if (shouldClearLink(link)) {
|
|
23
|
-
tagState.linkStack.splice(i, 1);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
if (!hasAnyKeys(tagState.screens) && tagState.linkStack.length === 0) {
|
|
14
|
+
delete tagState.screens[screenKey];
|
|
15
|
+
if (!hasAnyKeys(tagState.screens)) {
|
|
27
16
|
delete state[tag];
|
|
28
17
|
}
|
|
29
18
|
}
|
|
30
19
|
return state;
|
|
31
20
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"worklet";
|
|
21
|
+
pairs.modify(state => {
|
|
22
|
+
"worklet";
|
|
35
23
|
|
|
36
|
-
|
|
37
|
-
|
|
24
|
+
for (const pairKey in state) {
|
|
25
|
+
if (isScreenPairKeyForScreen(pairKey, screenKey)) {
|
|
26
|
+
delete state[pairKey];
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return state;
|
|
38
30
|
});
|
|
39
31
|
}
|
|
40
32
|
export { clear };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["hasAnyKeys","
|
|
1
|
+
{"version":3,"names":["hasAnyKeys","isScreenPairKeyForScreen","boundaryRegistry","pairs","clear","screenKey","modify","state","tag","tagState","screens","pairKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/clear.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,iBAAiB;AAC5C,SAASC,wBAAwB,QAAQ,+BAA+B;AAExE,SAAoCC,gBAAgB,EAAEC,KAAK,QAAQ,SAAS;AAE5E,SAASC,KAAKA,CAACC,SAAoB,EAAE;EACpC,SAAS;;EAETH,gBAAgB,CAACI,MAAM,CAAkCC,KAAQ,IAAQ;IACxE,SAAS;;IACT,KAAK,MAAMC,GAAG,IAAID,KAAK,EAAE;MACxB,MAAME,QAAQ,GAAGF,KAAK,CAACC,GAAG,CAAC;MAC3B,OAAOC,QAAQ,CAACC,OAAO,CAACL,SAAS,CAAC;MAElC,IAAI,CAACL,UAAU,CAACS,QAAQ,CAACC,OAAO,CAAC,EAAE;QAClC,OAAOH,KAAK,CAACC,GAAG,CAAC;MAClB;IACD;IAEA,OAAOD,KAAK;EACb,CAAC,CAAC;EAEFJ,KAAK,CAACG,MAAM,CAA4BC,KAAQ,IAAQ;IACvD,SAAS;;IACT,KAAK,MAAMI,OAAO,IAAIJ,KAAK,EAAE;MAC5B,IAAIN,wBAAwB,CAACU,OAAO,EAAEN,SAAS,CAAC,EAAE;QACjD,OAAOE,KAAK,CAACI,OAAO,CAAC;MACtB;IACD;IAEA,OAAOJ,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASH,KAAK","ignoreList":[]}
|
|
@@ -1,21 +1,59 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { hasAnyKeys } from "../helpers/keys";
|
|
4
|
+
import { boundaryRegistry } from "./state";
|
|
5
|
+
const ensureBoundaryState = (state, tag) => {
|
|
6
|
+
"worklet";
|
|
7
|
+
|
|
8
|
+
if (!state[tag]) {
|
|
9
|
+
state[tag] = {
|
|
10
|
+
screens: {}
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
return state[tag];
|
|
14
|
+
};
|
|
15
|
+
const ensureScreenEntry = (state, tag, screenKey) => {
|
|
16
|
+
"worklet";
|
|
17
|
+
|
|
18
|
+
const tagState = ensureBoundaryState(state, tag);
|
|
19
|
+
if (!tagState.screens[screenKey]) {
|
|
20
|
+
tagState.screens[screenKey] = {
|
|
21
|
+
bounds: null,
|
|
22
|
+
styles: {}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return tagState.screens[screenKey];
|
|
26
|
+
};
|
|
27
|
+
const applyEntryPatch = (entry, patch) => {
|
|
28
|
+
"worklet";
|
|
29
|
+
|
|
30
|
+
if (patch.bounds !== undefined) {
|
|
31
|
+
entry.bounds = patch.bounds;
|
|
32
|
+
}
|
|
33
|
+
if (patch.styles !== undefined) {
|
|
34
|
+
entry.styles = patch.styles ?? {};
|
|
35
|
+
}
|
|
36
|
+
if (patch.boundaryConfig === undefined) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
if (patch.boundaryConfig === null) {
|
|
40
|
+
delete entry.boundaryConfig;
|
|
41
|
+
} else {
|
|
42
|
+
entry.boundaryConfig = patch.boundaryConfig;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
6
45
|
function getEntry(tag, key) {
|
|
7
46
|
"worklet";
|
|
8
47
|
|
|
9
|
-
return
|
|
48
|
+
return boundaryRegistry.get()[tag]?.screens[key] ?? null;
|
|
10
49
|
}
|
|
11
50
|
function setEntry(tag, screenKey, patch) {
|
|
12
51
|
"worklet";
|
|
13
52
|
|
|
14
|
-
|
|
53
|
+
boundaryRegistry.modify(state => {
|
|
15
54
|
"worklet";
|
|
16
55
|
|
|
17
|
-
const
|
|
18
|
-
const entry = ensureScreenEntry(tagState, screenKey);
|
|
56
|
+
const entry = ensureScreenEntry(state, tag, screenKey);
|
|
19
57
|
applyEntryPatch(entry, patch);
|
|
20
58
|
return state;
|
|
21
59
|
});
|
|
@@ -23,7 +61,7 @@ function setEntry(tag, screenKey, patch) {
|
|
|
23
61
|
function removeEntry(tag, screenKey) {
|
|
24
62
|
"worklet";
|
|
25
63
|
|
|
26
|
-
|
|
64
|
+
boundaryRegistry.modify(state => {
|
|
27
65
|
"worklet";
|
|
28
66
|
|
|
29
67
|
const tagState = state[tag];
|
|
@@ -31,7 +69,9 @@ function removeEntry(tag, screenKey) {
|
|
|
31
69
|
return state;
|
|
32
70
|
}
|
|
33
71
|
delete tagState.screens[screenKey];
|
|
34
|
-
|
|
72
|
+
if (!hasAnyKeys(tagState.screens)) {
|
|
73
|
+
delete state[tag];
|
|
74
|
+
}
|
|
35
75
|
return state;
|
|
36
76
|
});
|
|
37
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["hasAnyKeys","boundaryRegistry","ensureBoundaryState","state","tag","screens","ensureScreenEntry","screenKey","tagState","bounds","styles","applyEntryPatch","entry","patch","undefined","boundaryConfig","getEntry","key","get","setEntry","modify","removeEntry"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/entries.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,iBAAiB;AAE5C,SAAoCC,gBAAgB,QAAQ,SAAS;AAErE,MAAMC,mBAAmB,GAAGA,CAACC,KAA2B,EAAEC,GAAU,KAAK;EACxE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG;MACZC,OAAO,EAAE,CAAC;IACX,CAAC;EACF;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,iBAAiB,GAAGA,CACzBH,KAA2B,EAC3BC,GAAU,EACVG,SAAoB,KACH;EACjB,SAAS;;EACT,MAAMC,QAAQ,GAAGN,mBAAmB,CAACC,KAAK,EAAEC,GAAG,CAAC;EAChD,IAAI,CAACI,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC,EAAE;IACjCC,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC,GAAG;MAC7BE,MAAM,EAAE,IAAI;MACZC,MAAM,EAAE,CAAC;IACV,CAAC;EACF;EACA,OAAOF,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC;AACnC,CAAC;AAED,MAAMI,eAAe,GAAGA,CAACC,KAAkB,EAAEC,KAAiB,KAAK;EAClE,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,IAAIG,KAAK,CAACE,cAAc,KAAKD,SAAS,EAAE;IACvC;EACD;EAEA,IAAID,KAAK,CAACE,cA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