react-native-screen-transitions 3.4.0-alpha.7 → 3.4.0-beta.1
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/shared/components/create-boundary-component/components/boundary-target.js +6 -4
- package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +22 -60
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +56 -41
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +4 -23
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +111 -2
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js +69 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/index.js +10 -5
- package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js +8 -32
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +11 -9
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +7 -5
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/index.js +3 -1
- package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/commonjs/shared/constants.js +17 -3
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +43 -0
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
- package/lib/commonjs/shared/index.js +6 -0
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +7 -0
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +9 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +1 -11
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/commonjs/shared/stores/animation.store.js +9 -3
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +23 -167
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/presence.js +0 -3
- package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +18 -7
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +7 -51
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -83
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +10 -0
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/constants.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +5 -5
- package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +6 -6
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +70 -0
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
- package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +14 -20
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
- package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/index.js +16 -44
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +234 -50
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js +10 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/math.js +34 -1
- package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +6 -4
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +23 -61
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +54 -39
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +4 -23
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +114 -4
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js +64 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/index.js +10 -5
- package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js +10 -34
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +11 -9
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +7 -5
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/index.js +3 -1
- package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/module/shared/constants.js +16 -2
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +39 -0
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
- package/lib/module/shared/index.js +1 -1
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js +7 -0
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +9 -1
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/styles.provider.js +1 -11
- package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/module/shared/stores/animation.store.js +9 -3
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/clear.js +24 -168
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/presence.js +1 -4
- package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/registry.js +19 -8
- package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +8 -52
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/state.js +0 -78
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +10 -0
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/bounds/constants.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +3 -3
- package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +5 -5
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +64 -0
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
- package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +12 -18
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
- package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
- package/lib/module/shared/utils/bounds/index.js +14 -42
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/build.js +238 -54
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/config.js +9 -0
- package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/math.js +31 -0
- package/lib/module/shared/utils/bounds/zoom/math.js.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +17 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +3 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +1 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +20 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts +12 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +10 -4
- 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 +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +33 -1
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts +13 -0
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +1 -0
- package/lib/typescript/shared/index.d.ts +3 -3
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts +7 -0
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +5 -2
- package/lib/typescript/shared/stores/animation.store.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/presence.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/registry.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 +0 -3
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +0 -2
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +11 -0
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +106 -1
- package/lib/typescript/shared/types/bounds.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/animation/animate-to-progress.d.ts +2 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +7 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{interpolators.d.ts → create-interpolators.d.ts} +3 -3
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{link-accessor.d.ts → create-link-accessor.d.ts} +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +20 -0
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{style-composers.d.ts → styles/composers.d.ts} +4 -4
- package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{compute-bounds-styles.d.ts → styles/compute.d.ts} +3 -3
- package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{interpolate-style.d.ts → styles/interpolate-link-style.d.ts} +2 -2
- package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +3 -2
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +9 -0
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +17 -0
- package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/components/create-boundary-component/components/boundary-target.tsx +6 -4
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +28 -60
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +5 -1
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +72 -53
- package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +19 -3
- package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +5 -34
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +180 -6
- package/src/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.ts +110 -0
- package/src/shared/components/create-boundary-component/index.tsx +10 -5
- package/src/shared/components/create-boundary-component/types.ts +1 -2
- package/src/shared/components/create-transition-aware-component.tsx +10 -47
- package/src/shared/components/screen-container/hooks/use-content-layout.ts +10 -17
- package/src/shared/components/screen-container/layers/backdrop.tsx +6 -9
- package/src/shared/components/screen-lifecycle/index.tsx +1 -4
- package/src/shared/constants.ts +11 -1
- package/src/shared/hooks/reanimated/use-animated-debounce.ts +56 -0
- package/src/shared/index.ts +3 -0
- package/src/shared/providers/gestures/handlers/use-handlers.ts +9 -0
- package/src/shared/providers/register-bounds.provider.tsx +8 -1
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +27 -1
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +6 -0
- package/src/shared/providers/screen/styles/styles.provider.tsx +1 -12
- package/src/shared/stores/animation.store.ts +11 -2
- package/src/shared/stores/bounds/internals/clear.ts +47 -220
- package/src/shared/stores/bounds/internals/presence.ts +1 -4
- package/src/shared/stores/bounds/internals/registry.ts +25 -14
- package/src/shared/stores/bounds/internals/resolver.ts +7 -84
- package/src/shared/stores/bounds/internals/state.ts +0 -98
- package/src/shared/stores/bounds/types.ts +0 -2
- package/src/shared/types/animation.types.ts +13 -0
- package/src/shared/types/bounds.types.ts +108 -1
- package/src/shared/types/index.ts +2 -0
- package/src/shared/utils/animation/animate-to-progress.ts +11 -1
- package/src/shared/utils/bounds/{helpers/constants.ts → constants.ts} +1 -1
- package/src/shared/utils/bounds/helpers/{resolve-bound-tag.ts → create-bound-tag.ts} +2 -2
- package/src/shared/utils/bounds/helpers/{interpolators.ts → create-interpolators.ts} +19 -12
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +100 -0
- package/src/shared/utils/bounds/helpers/{style-composers.ts → styles/composers.ts} +119 -53
- package/src/shared/utils/bounds/helpers/{compute-bounds-styles.ts → styles/compute.ts} +10 -20
- package/src/shared/utils/bounds/helpers/{interpolate-style.ts → styles/interpolate-link-style.ts} +9 -4
- package/src/shared/utils/bounds/index.ts +13 -53
- package/src/shared/utils/bounds/types/options.ts +3 -2
- package/src/shared/utils/bounds/zoom/build.ts +316 -95
- package/src/shared/utils/bounds/zoom/config.ts +11 -0
- package/src/shared/utils/bounds/zoom/math.ts +57 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -54
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -122
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -72
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -66
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -58
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -53
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js +0 -41
- package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/constants.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js +0 -20
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -49
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -118
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -67
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -61
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -53
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -48
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js +0 -36
- package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/constants.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/interpolate.js +0 -16
- package/lib/module/shared/utils/bounds/helpers/interpolate.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/styles.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts +0 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +0 -17
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts +0 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts +0 -10
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +0 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +0 -10
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +0 -14
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolate-style.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts +0 -2
- package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +0 -7
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +0 -1
- package/src/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.ts +0 -58
- package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +0 -162
- package/src/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts +0 -82
- package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +0 -92
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +0 -87
- package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +0 -49
- package/src/shared/utils/bounds/helpers/build-bounds-options.ts +0 -48
- package/src/shared/utils/bounds/helpers/interpolate.ts +0 -19
- /package/lib/commonjs/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
- /package/lib/commonjs/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
- /package/lib/module/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
- /package/lib/module/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
- /package/lib/typescript/shared/utils/bounds/{helpers/constants.d.ts → constants.d.ts} +0 -0
- /package/lib/typescript/shared/utils/bounds/helpers/{styles.d.ts → styles/styles.d.ts} +0 -0
- /package/src/shared/utils/bounds/helpers/{link-accessor.ts → create-link-accessor.ts} +0 -0
- /package/src/shared/utils/bounds/helpers/{styles.ts → styles/styles.ts} +0 -0
|
@@ -16,93 +16,9 @@ const hasAnyKeys = record => {
|
|
|
16
16
|
}
|
|
17
17
|
return false;
|
|
18
18
|
};
|
|
19
|
-
const
|
|
19
|
+
const clearRegistry = (shouldClearSnapshot, shouldClearLink) => {
|
|
20
20
|
"worklet";
|
|
21
21
|
|
|
22
|
-
const currentRegistry = _state.registry.value;
|
|
23
|
-
let snapshots = 0;
|
|
24
|
-
let links = 0;
|
|
25
|
-
for (const tag in currentRegistry) {
|
|
26
|
-
const tagState = currentRegistry[tag];
|
|
27
|
-
for (const snapshotKey in tagState.snapshots) {
|
|
28
|
-
const snapshot = tagState.snapshots[snapshotKey];
|
|
29
|
-
const matched = matchByAncestor ? snapshotKey === screenKey || (snapshot.ancestorKeys?.includes(screenKey) ?? false) : snapshotKey === screenKey;
|
|
30
|
-
if (matched) snapshots++;
|
|
31
|
-
}
|
|
32
|
-
for (let i = 0; i < tagState.linkStack.length; i++) {
|
|
33
|
-
const link = tagState.linkStack[i];
|
|
34
|
-
if ((0, _matching.matchesScreenKey)(link.source, screenKey) || (0, _matching.matchesScreenKey)(link.destination, screenKey)) {
|
|
35
|
-
links++;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
snapshots,
|
|
41
|
-
links
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
const countRegistryMatchesByBranch = branchNavigatorKey => {
|
|
45
|
-
"worklet";
|
|
46
|
-
|
|
47
|
-
const currentRegistry = _state.registry.value;
|
|
48
|
-
let snapshots = 0;
|
|
49
|
-
let links = 0;
|
|
50
|
-
for (const tag in currentRegistry) {
|
|
51
|
-
const tagState = currentRegistry[tag];
|
|
52
|
-
for (const snapshotKey in tagState.snapshots) {
|
|
53
|
-
const snapshot = tagState.snapshots[snapshotKey];
|
|
54
|
-
const matched = snapshot.navigatorKey === branchNavigatorKey || (snapshot.ancestorNavigatorKeys?.includes(branchNavigatorKey) ?? false);
|
|
55
|
-
if (matched) snapshots++;
|
|
56
|
-
}
|
|
57
|
-
for (let i = 0; i < tagState.linkStack.length; i++) {
|
|
58
|
-
const link = tagState.linkStack[i];
|
|
59
|
-
if ((0, _matching.matchesNavigatorKey)(link.source, branchNavigatorKey) || (0, _matching.matchesNavigatorKey)(link.destination, branchNavigatorKey)) {
|
|
60
|
-
links++;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
snapshots,
|
|
66
|
-
links
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
const countPresenceMatches = (screenKey, matchByAncestor) => {
|
|
70
|
-
"worklet";
|
|
71
|
-
|
|
72
|
-
const currentPresence = _state.presence.value;
|
|
73
|
-
let matches = 0;
|
|
74
|
-
for (const tag in currentPresence) {
|
|
75
|
-
const tagEntries = currentPresence[tag];
|
|
76
|
-
for (const entryScreenKey in tagEntries) {
|
|
77
|
-
const entry = tagEntries[entryScreenKey];
|
|
78
|
-
const matched = matchByAncestor ? entryScreenKey === screenKey || (entry.ancestorKeys?.includes(screenKey) ?? false) : entryScreenKey === screenKey;
|
|
79
|
-
if (matched) matches++;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return matches;
|
|
83
|
-
};
|
|
84
|
-
const countPresenceMatchesByBranch = branchNavigatorKey => {
|
|
85
|
-
"worklet";
|
|
86
|
-
|
|
87
|
-
const currentPresence = _state.presence.value;
|
|
88
|
-
let matches = 0;
|
|
89
|
-
for (const tag in currentPresence) {
|
|
90
|
-
const tagEntries = currentPresence[tag];
|
|
91
|
-
for (const entryScreenKey in tagEntries) {
|
|
92
|
-
const entry = tagEntries[entryScreenKey];
|
|
93
|
-
const matched = entry.navigatorKey === branchNavigatorKey || (entry.ancestorNavigatorKeys?.includes(branchNavigatorKey) ?? false);
|
|
94
|
-
if (matched) matches++;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return matches;
|
|
98
|
-
};
|
|
99
|
-
const clearRegistry = params => {
|
|
100
|
-
"worklet";
|
|
101
|
-
|
|
102
|
-
const {
|
|
103
|
-
shouldRemoveSnapshot,
|
|
104
|
-
shouldRemoveLink
|
|
105
|
-
} = params;
|
|
106
22
|
_state.registry.modify(state => {
|
|
107
23
|
"worklet";
|
|
108
24
|
|
|
@@ -110,13 +26,13 @@ const clearRegistry = params => {
|
|
|
110
26
|
const tagState = state[tag];
|
|
111
27
|
for (const snapshotKey in tagState.snapshots) {
|
|
112
28
|
const snapshot = tagState.snapshots[snapshotKey];
|
|
113
|
-
if (
|
|
29
|
+
if (shouldClearSnapshot(snapshotKey, snapshot)) {
|
|
114
30
|
delete tagState.snapshots[snapshotKey];
|
|
115
31
|
}
|
|
116
32
|
}
|
|
117
33
|
for (let i = tagState.linkStack.length - 1; i >= 0; i--) {
|
|
118
34
|
const link = tagState.linkStack[i];
|
|
119
|
-
if (
|
|
35
|
+
if (shouldClearLink(link)) {
|
|
120
36
|
tagState.linkStack.splice(i, 1);
|
|
121
37
|
}
|
|
122
38
|
}
|
|
@@ -127,24 +43,7 @@ const clearRegistry = params => {
|
|
|
127
43
|
return state;
|
|
128
44
|
});
|
|
129
45
|
};
|
|
130
|
-
const
|
|
131
|
-
"worklet";
|
|
132
|
-
|
|
133
|
-
_state.presence.modify(state => {
|
|
134
|
-
"worklet";
|
|
135
|
-
|
|
136
|
-
for (const tag in state) {
|
|
137
|
-
const tagEntries = state[tag];
|
|
138
|
-
if (!tagEntries[screenKey]) continue;
|
|
139
|
-
delete tagEntries[screenKey];
|
|
140
|
-
if (!hasAnyKeys(tagEntries)) {
|
|
141
|
-
delete state[tag];
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return state;
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
const clearPresenceByAncestor = ancestorKey => {
|
|
46
|
+
const clearPresence = shouldClearPresence => {
|
|
148
47
|
"worklet";
|
|
149
48
|
|
|
150
49
|
_state.presence.modify(state => {
|
|
@@ -154,8 +53,7 @@ const clearPresenceByAncestor = ancestorKey => {
|
|
|
154
53
|
const tagEntries = state[tag];
|
|
155
54
|
for (const entryScreenKey in tagEntries) {
|
|
156
55
|
const entry = tagEntries[entryScreenKey];
|
|
157
|
-
|
|
158
|
-
if (shouldRemove) {
|
|
56
|
+
if (shouldClearPresence(entryScreenKey, entry)) {
|
|
159
57
|
delete tagEntries[entryScreenKey];
|
|
160
58
|
}
|
|
161
59
|
}
|
|
@@ -166,82 +64,40 @@ const clearPresenceByAncestor = ancestorKey => {
|
|
|
166
64
|
return state;
|
|
167
65
|
});
|
|
168
66
|
};
|
|
169
|
-
const
|
|
67
|
+
const performClear = (shouldClearSnapshot, shouldClearLink, shouldClearPresence) => {
|
|
170
68
|
"worklet";
|
|
171
69
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
for (const tag in state) {
|
|
176
|
-
const tagEntries = state[tag];
|
|
177
|
-
for (const entryScreenKey in tagEntries) {
|
|
178
|
-
const entry = tagEntries[entryScreenKey];
|
|
179
|
-
const shouldRemove = entry.navigatorKey === branchNavigatorKey || (entry.ancestorNavigatorKeys?.includes(branchNavigatorKey) ?? false);
|
|
180
|
-
if (shouldRemove) {
|
|
181
|
-
delete tagEntries[entryScreenKey];
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
if (!hasAnyKeys(tagEntries)) {
|
|
185
|
-
delete state[tag];
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
return state;
|
|
189
|
-
});
|
|
70
|
+
clearRegistry(shouldClearSnapshot, shouldClearLink);
|
|
71
|
+
clearPresence(shouldClearPresence);
|
|
190
72
|
};
|
|
191
73
|
function clear(screenKey) {
|
|
192
74
|
"worklet";
|
|
193
75
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
shouldRemoveSnapshot: snapshotKey => snapshotKey === screenKey,
|
|
198
|
-
shouldRemoveLink: link => {
|
|
199
|
-
return (0, _matching.matchesScreenKey)(link.source, screenKey) || (0, _matching.matchesScreenKey)(link.destination, screenKey);
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
clearPresenceDirect(screenKey);
|
|
203
|
-
const afterMatches = countRegistryMatches(screenKey, false);
|
|
204
|
-
const afterPresenceMatches = countPresenceMatches(screenKey, false);
|
|
205
|
-
(0, _state.debugClearLog)(`clear(${screenKey}) snapshots=${beforeMatches.snapshots}->${afterMatches.snapshots} links=${beforeMatches.links}->${afterMatches.links} presence=${beforePresenceMatches}->${afterPresenceMatches}`);
|
|
206
|
-
(0, _state.debugStoreSizeLog)(`clear(${screenKey})`);
|
|
76
|
+
performClear(snapshotKey => snapshotKey === screenKey, link => {
|
|
77
|
+
return (0, _matching.matchesScreenKey)(link.source, screenKey) || (0, _matching.matchesScreenKey)(link.destination, screenKey);
|
|
78
|
+
}, entryScreenKey => entryScreenKey === screenKey);
|
|
207
79
|
}
|
|
208
80
|
function clearByAncestor(ancestorKey) {
|
|
209
81
|
"worklet";
|
|
210
82
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
shouldRemoveLink: link => {
|
|
218
|
-
return (0, _matching.matchesScreenKey)(link.source, ancestorKey) || (0, _matching.matchesScreenKey)(link.destination, ancestorKey);
|
|
219
|
-
}
|
|
83
|
+
performClear((snapshotKey, snapshot) => {
|
|
84
|
+
return snapshotKey === ancestorKey || (snapshot.ancestorKeys?.includes(ancestorKey) ?? false);
|
|
85
|
+
}, link => {
|
|
86
|
+
return (0, _matching.matchesScreenKey)(link.source, ancestorKey) || (0, _matching.matchesScreenKey)(link.destination, ancestorKey);
|
|
87
|
+
}, (entryScreenKey, entry) => {
|
|
88
|
+
return entryScreenKey === ancestorKey || (entry.ancestorKeys?.includes(ancestorKey) ?? false);
|
|
220
89
|
});
|
|
221
|
-
clearPresenceByAncestor(ancestorKey);
|
|
222
|
-
const afterMatches = countRegistryMatches(ancestorKey, true);
|
|
223
|
-
const afterPresenceMatches = countPresenceMatches(ancestorKey, true);
|
|
224
|
-
(0, _state.debugClearLog)(`clearByAncestor(${ancestorKey}) snapshots=${beforeMatches.snapshots}->${afterMatches.snapshots} links=${beforeMatches.links}->${afterMatches.links} presence=${beforePresenceMatches}->${afterPresenceMatches}`);
|
|
225
|
-
(0, _state.debugStoreSizeLog)(`clearByAncestor(${ancestorKey})`);
|
|
226
90
|
}
|
|
227
91
|
function clearByBranch(branchNavigatorKey) {
|
|
228
92
|
"worklet";
|
|
229
93
|
|
|
230
94
|
if (!branchNavigatorKey) return;
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
shouldRemoveLink: link => {
|
|
238
|
-
return (0, _matching.matchesNavigatorKey)(link.source, branchNavigatorKey) || (0, _matching.matchesNavigatorKey)(link.destination, branchNavigatorKey);
|
|
239
|
-
}
|
|
95
|
+
performClear((_snapshotKey, snapshot) => {
|
|
96
|
+
return snapshot.navigatorKey === branchNavigatorKey || (snapshot.ancestorNavigatorKeys?.includes(branchNavigatorKey) ?? false);
|
|
97
|
+
}, link => {
|
|
98
|
+
return (0, _matching.matchesNavigatorKey)(link.source, branchNavigatorKey) || (0, _matching.matchesNavigatorKey)(link.destination, branchNavigatorKey);
|
|
99
|
+
}, (_entryScreenKey, entry) => {
|
|
100
|
+
return entry.navigatorKey === branchNavigatorKey || (entry.ancestorNavigatorKeys?.includes(branchNavigatorKey) ?? false);
|
|
240
101
|
});
|
|
241
|
-
clearPresenceByBranch(branchNavigatorKey);
|
|
242
|
-
const afterMatches = countRegistryMatchesByBranch(branchNavigatorKey);
|
|
243
|
-
const afterPresenceMatches = countPresenceMatchesByBranch(branchNavigatorKey);
|
|
244
|
-
(0, _state.debugClearLog)(`clearByBranch(${branchNavigatorKey}) snapshots=${beforeMatches.snapshots}->${afterMatches.snapshots} links=${beforeMatches.links}->${afterMatches.links} presence=${beforePresenceMatches}->${afterPresenceMatches}`);
|
|
245
|
-
(0, _state.debugStoreSizeLog)(`clearByBranch(${branchNavigatorKey})`);
|
|
246
102
|
}
|
|
247
103
|
//# sourceMappingURL=clear.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_matching","require","_state","hasAnyKeys","record","_key","
|
|
1
|
+
{"version":3,"names":["_matching","require","_state","hasAnyKeys","record","_key","clearRegistry","shouldClearSnapshot","shouldClearLink","registry","modify","state","tag","tagState","snapshotKey","snapshots","snapshot","i","linkStack","length","link","splice","clearPresence","shouldClearPresence","presence","tagEntries","entryScreenKey","entry","performClear","clear","screenKey","matchesScreenKey","source","destination","clearByAncestor","ancestorKey","ancestorKeys","includes","clearByBranch","branchNavigatorKey","_snapshotKey","navigatorKey","ancestorNavigatorKeys","matchesNavigatorKey","_entryScreenKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/clear.ts"],"mappings":";;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,UAAU,GAAIC,MAA+B,IAAK;EACvD,SAAS;;EACT,KAAK,MAAMC,IAAI,IAAID,MAAM,EAAE;IAC1B,OAAO,IAAI;EACZ;EACA,OAAO,KAAK;AACb,CAAC;AAcD,MAAME,aAAa,GAAGA,CACrBC,mBAAsC,EACtCC,eAA8B,KAC1B;EACJ,SAAS;;EACTC,eAAQ,CAACC,MAAM,CAA2B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WAAW,CAAC,IAAI,KAAK,CAAC;EAEtD,CACD,CAAC;AACF;AAEA,SAASG,aAAaA,CAACC,kBAAgC,EAAE;EACxD,SAAS;;EACT,IAAI,CAACA,kBAAkB,EAAE;EAEzBX,YAAY,CACX,CAACY,YAAY,EAAExB,QAAQ,KAAK;IAC3B,OACCA,QAAQ,CAACyB,YAAY,KAAKF,kBAAkB,KAC3CvB,QAAQ,CAAC0B,qBAAqB,EAAEL,QAAQ,CAACE,kBAAkB,CAAC,IAAI,KAAK,CAAC;EAEzE,CAAC,EACAnB,IAAI,IAAK;IACT,OACC,IAAAuB,6BAAmB,EAACvB,IAAI,CAACY,MAAM,EAAEO,kBAAkB,CAAC,IACpD,IAAAI,6BAAmB,EAACvB,IAAI,CAACa,WAAW,EAAEM,kBAAkB,CAAC;EAE3D,CAAC,EACD,CAACK,eAAe,EAAEjB,KAAK,KAAK;IAC3B,OACCA,KAAK,CAACc,YAAY,KAAKF,kBAAkB,KACxCZ,KAAK,CAACe,qBAAqB,EAAEL,QAAQ,CAACE,kBAAkB,CAAC,IAAI,KAAK,CAAC;EAEtE,CACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -34,7 +34,6 @@ function registerBoundaryPresence(tag, screenKey, ancestorKeys, boundaryConfig,
|
|
|
34
34
|
};
|
|
35
35
|
return state;
|
|
36
36
|
});
|
|
37
|
-
(0, _state.debugStoreSizeLog)(`registerBoundaryPresence(${tag},${screenKey})`);
|
|
38
37
|
}
|
|
39
38
|
function unregisterBoundaryPresence(tag, screenKey) {
|
|
40
39
|
"worklet";
|
|
@@ -61,7 +60,6 @@ function unregisterBoundaryPresence(tag, screenKey) {
|
|
|
61
60
|
delete state[tag];
|
|
62
61
|
return state;
|
|
63
62
|
});
|
|
64
|
-
(0, _state.debugStoreSizeLog)(`unregisterBoundaryPresence(${tag},${screenKey})`);
|
|
65
63
|
}
|
|
66
64
|
function hasBoundaryPresence(tag, screenKey) {
|
|
67
65
|
"worklet";
|
|
@@ -113,7 +111,6 @@ function setGroupActiveId(group, id) {
|
|
|
113
111
|
};
|
|
114
112
|
return state;
|
|
115
113
|
});
|
|
116
|
-
(0, _state.debugStoreSizeLog)(`setGroupActiveId(${group},${id})`);
|
|
117
114
|
}
|
|
118
115
|
function getGroupActiveId(group) {
|
|
119
116
|
"worklet";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_state","require","registerBoundaryPresence","tag","screenKey","ancestorKeys","boundaryConfig","navigatorKey","ancestorNavigatorKeys","presence","modify","state","mutableState","tagEntries","currentEntry","count","
|
|
1
|
+
{"version":3,"names":["_state","require","registerBoundaryPresence","tag","screenKey","ancestorKeys","boundaryConfig","navigatorKey","ancestorNavigatorKeys","presence","modify","state","mutableState","tagEntries","currentEntry","count","unregisterBoundaryPresence","value","mutableTagEntries","mutableEntry","nextCount","_remainingKey","hasBoundaryPresence","direct","entryScreenKey","entry","includes","getBoundaryPresence","getBoundaryConfig","setGroupActiveId","group","id","groups","activeId","getGroupActiveId","getGroups"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/presence.ts"],"mappings":";;;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,SAASC,wBAAwBA,CAChCC,GAAU,EACVC,SAAoB,EACpBC,YAA0B,EAC1BC,cAA+B,EAC/BC,YAAqB,EACrBC,qBAAgC,EAC/B;EACD,SAAS;;EACTC,eAAQ,CAACC,MAAM,CAA2BC,KAAQ,IAAQ;IACzD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAsB;IAC3C,IAAIE,UAAU,GAAGD,YAAY,CAACT,GAAG,CAAC;IAClC,IAAI,CAACU,UAAU,EAAE;MAChBA,UAAU,GAAG,CAAC,CAAC;MACfD,YAAY,CAACT,GAAG,CAAC,GAAGU,UAAU;IAC/B;IACA,MAAMC,YAAY,GAAGD,UAAU,CAACT,SAAS,CAAC;IAE1CS,UAAU,CAACT,SAAS,CAAC,GAAG;MACvBW,KAAK,EAAE,CAACD,YAAY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tB,MAAM,CAAyBC,KAAQ,IAAQ;IACrD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAoB;IACzCC,YAAY,CAACkB,KAAK,CAAC,GAAG;MACrBG,QAAQ,EAAEF;IACX,CAAC;IACD,OAAOpB,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASuB,gBAAgBA,CAACJ,KAAa,EAAiB;EACvD,SAAS;;EACT,OAAOE,aAAM,CAACf,KAAK,CAACa,KAAK,CAAC,EAAEG,QAAQ,IAAI,IAAI;AAC7C;AAEA,SAASE,SAASA,CAAA,EAAG;EACpB,SAAS;;EACT,OAAOH,aAAM;AACd","ignoreList":[]}
|
|
@@ -77,7 +77,6 @@ function registerSnapshot(tag, screenKey, bounds, styles = {}, ancestorKeys, nav
|
|
|
77
77
|
};
|
|
78
78
|
return state;
|
|
79
79
|
});
|
|
80
|
-
(0, _state.debugStoreSizeLog)(`registerSnapshot(${tag},${screenKey})`);
|
|
81
80
|
}
|
|
82
81
|
function setLinkSource(tag, screenKey, bounds, styles = {}, ancestorKeys, navigatorKey, ancestorNavigatorKeys) {
|
|
83
82
|
"worklet";
|
|
@@ -108,7 +107,6 @@ function setLinkSource(tag, screenKey, bounds, styles = {}, ancestorKeys, naviga
|
|
|
108
107
|
trimLinkHistory(tagState);
|
|
109
108
|
return state;
|
|
110
109
|
});
|
|
111
|
-
(0, _state.debugStoreSizeLog)(`setLinkSource(${tag},${screenKey})`);
|
|
112
110
|
}
|
|
113
111
|
function updateLinkSource(tag, screenKey, bounds, styles = {}, ancestorKeys, navigatorKey, ancestorNavigatorKeys) {
|
|
114
112
|
"worklet";
|
|
@@ -148,7 +146,6 @@ function updateLinkSource(tag, screenKey, bounds, styles = {}, ancestorKeys, nav
|
|
|
148
146
|
};
|
|
149
147
|
return state;
|
|
150
148
|
});
|
|
151
|
-
(0, _state.debugStoreSizeLog)(`updateLinkSource(${tag},${screenKey})`);
|
|
152
149
|
}
|
|
153
150
|
const findLatestPendingIndex = (stack, expectedSourceScreenKey) => {
|
|
154
151
|
"worklet";
|
|
@@ -163,6 +160,17 @@ const findLatestPendingIndex = (stack, expectedSourceScreenKey) => {
|
|
|
163
160
|
}
|
|
164
161
|
return -1;
|
|
165
162
|
};
|
|
163
|
+
const findLatestSourceIndex = (stack, expectedSourceScreenKey) => {
|
|
164
|
+
"worklet";
|
|
165
|
+
|
|
166
|
+
if (!expectedSourceScreenKey) return -1;
|
|
167
|
+
for (let i = stack.length - 1; i >= 0; i--) {
|
|
168
|
+
if ((0, _matching.matchesScreenKey)(stack[i].source, expectedSourceScreenKey)) {
|
|
169
|
+
return i;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return -1;
|
|
173
|
+
};
|
|
166
174
|
function setLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys) {
|
|
167
175
|
"worklet";
|
|
168
176
|
|
|
@@ -172,10 +180,12 @@ function setLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys, e
|
|
|
172
180
|
const tagState = state[tag];
|
|
173
181
|
const stack = tagState?.linkStack;
|
|
174
182
|
if (!stack || stack.length === 0) return state;
|
|
175
|
-
|
|
183
|
+
let targetIndex = findLatestPendingIndex(stack, expectedSourceScreenKey);
|
|
184
|
+
if (targetIndex === -1) {
|
|
185
|
+
targetIndex = findLatestSourceIndex(stack, expectedSourceScreenKey);
|
|
186
|
+
}
|
|
176
187
|
if (targetIndex === -1) return state;
|
|
177
188
|
const targetLink = stack[targetIndex];
|
|
178
|
-
if (targetLink.destination !== null) return state;
|
|
179
189
|
targetLink.destination = {
|
|
180
190
|
screenKey,
|
|
181
191
|
ancestorKeys,
|
|
@@ -186,7 +196,6 @@ function setLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys, e
|
|
|
186
196
|
};
|
|
187
197
|
return state;
|
|
188
198
|
});
|
|
189
|
-
(0, _state.debugStoreSizeLog)(`setLinkDestination(${tag},${screenKey})`);
|
|
190
199
|
}
|
|
191
200
|
function updateLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys) {
|
|
192
201
|
"worklet";
|
|
@@ -208,6 +217,9 @@ function updateLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys
|
|
|
208
217
|
if (targetIndex === -1) {
|
|
209
218
|
targetIndex = findLatestPendingIndex(stack, expectedSourceScreenKey);
|
|
210
219
|
}
|
|
220
|
+
if (targetIndex === -1) {
|
|
221
|
+
targetIndex = findLatestSourceIndex(stack, expectedSourceScreenKey);
|
|
222
|
+
}
|
|
211
223
|
if (targetIndex === -1) {
|
|
212
224
|
return state;
|
|
213
225
|
}
|
|
@@ -221,7 +233,6 @@ function updateLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys
|
|
|
221
233
|
};
|
|
222
234
|
return state;
|
|
223
235
|
});
|
|
224
|
-
(0, _state.debugStoreSizeLog)(`updateLinkDestination(${tag},${screenKey})`);
|
|
225
236
|
}
|
|
226
237
|
function getActiveLink(tag, screenKey) {
|
|
227
238
|
"worklet";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_matching","require","_state","LINK_HISTORY_LIMIT","ensureTagState","state","tag","createEmptyTagState","isSameScreenFamily","a","b","screenKey","ancestorKeys","includes","trimLinkHistory","tagState","overLimit","linkStack","length","splice","getSnapshot","key","registry","value","snapshots","snap","bounds","styles","registerSnapshot","navigatorKey","ancestorNavigatorKeys","modify","debugStoreSizeLog","setLinkSource","stack","topIndex","topLink","source","destination","push","updateLinkSource","targetIndex","i","link","matchesScreenKey","findLatestPendingIndex","expectedSourceScreenKey","setLinkDestination","targetLink","updateLinkDestination","getActiveLink","lastLink","hasPendingLink","hasPendingLinkFromSource","sourceScreenKey","getLatestPendingSourceScreenKey","hasSourceLink","hasDestinationLink"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/registry.ts"],"mappings":";;;;;;;;;;;;;;;;;AACA,IAAA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,KAAK,CAAC,EAAE,OAAO,KAAK;EAE9C,KAAK,IAAIwB,CAAC,GAAGR,KAAK,CAAChB,MAAM,GAAG,CAAC,EAAEwB,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,IAAI,IAAAE,0BAAgB,EAACV,KAAK,CAACQ,CAAC,CAAC,CAACL,MAAM,EAAE1B,SAAS,CAAC,EAAE,OAAO,IAAI;EAC9D;EAEA,OAAO,KAAK;AACb;AAEA,SAAS8C,kBAAkBA,CAACnD,GAAU,EAAEK,SAAoB,EAAW;EACtE,SAAS;;EACT,MAAMI,QAAQ,GAAGO,eAAQ,CAACC,KAAK,CAACjB,GAAG,CAAC;EACpC,MAAM4B,KAAK,GAAGnB,QAAQ,EAAEE,SAAS;EACjC,IAAI,CAACiB,KAAK,IAAIA,KAAK,CAAChB,MAAM,KAAK,CAAC,EAAE,OAAO,KAAK;EAE9C,KAAK,IAAIwB,CAAC,GAAGR,KAAK,CAAChB,MAAM,GAAG,CAAC,EAAEwB,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,IAAI,IAAAE,0BAAgB,EAACV,KAAK,CAACQ,CAAC,CAAC,CAACJ,WAAW,EAAE3B,SAAS,CAAC,EAAE,OAAO,IAAI;EACnE;EAEA,OAAO,KAAK;AACb","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_matching","require","_state","LINK_HISTORY_LIMIT","ensureTagState","state","tag","createEmptyTagState","isSameScreenFamily","a","b","screenKey","ancestorKeys","includes","trimLinkHistory","tagState","overLimit","linkStack","length","splice","getSnapshot","key","registry","value","snapshots","snap","bounds","styles","registerSnapshot","navigatorKey","ancestorNavigatorKeys","modify","setLinkSource","stack","topIndex","topLink","source","destination","push","updateLinkSource","targetIndex","i","link","matchesScreenKey","findLatestPendingIndex","expectedSourceScreenKey","findLatestSourceIndex","setLinkDestination","targetLink","updateLinkDestination","getActiveLink","lastLink","hasPendingLink","hasPendingLinkFromSource","sourceScreenKey","getLatestPendingSourceScreenKey","hasSourceLink","hasDestinationLink"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/registry.ts"],"mappings":";;;;;;;;;;;;;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,kBAAkB,GAAG,CAAC;AAE5B,MAAMC,cAAc,GAAGA,CAACC,KAAoB,EAAEC,GAAU,KAAe;EACtE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG,IAAAC,0BAAmB,EAAC,CAAC;EACnC;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,kBAAkB,GAAGA,CAC1BC,CAAuD,EACvDC,CAAuD,KAC1C;EACb,SAAS;;EACT,OACCD,CAAC,CAACE,SAAS,KAAKD,CAAC,CAACC,SAAS,KAC1BF,CAAC,CAACG,YAAY,EAAEC,QAAQ,CAACH,CAAC,CAACC,SAAS,CAAC,IAAI,KAAK,CAAC,KAC/CD,CAAC,CAACE,YAAY,EAAEC,QAAQ,CAACJ,CAAC,CAACE,SAAS,CAAC,IAAI,KAAK,CAAC;AAElD,CAAC;AAED,MAAMG,eAAe,GAAIC,QAAkB,IAAK;EAC/C,SAAS;;EACT,MAAMC,SAAS,GAAGD,QAAQ,CAACE,SAAS,CAACC,MAAM,GAAGf,kBAAkB;EAChE,IAAIa,SAAS,IAAI,CAAC,EAAE;EACpBD,QAAQ,CAACE,SAAS,CAACE,MAAM,CAAC,CAAC,EAAEH,SAAS,CAAC;AACxC,CAAC;AAED,SAASI,WAAWA,CAACd,GAAU,EAAEe,GAAc,EAAmB;EACjE,SAAS;;EACT,MAAMN,QAAQ,GAAGO,eAAQ,CAACC,KAAK,CAACjB,GAAG,CAAC;EACpC,IAAI,CAACS,QAAQ,EAAE,OAAO,IAAI;EAE1B,IAAIA,QAAQ,CAACS,SAAS,CAACH,GAAG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itionPair;
|
|
7
7
|
var _matching = require("../helpers/matching");
|
|
8
|
-
var _registry = require("./registry");
|
|
9
8
|
var _state = require("./state");
|
|
10
9
|
const findLatestLink = (tagState, predicate) => {
|
|
11
10
|
"worklet";
|
|
@@ -37,22 +36,6 @@ function findPendingLinkBySource(tagState, screenKey) {
|
|
|
37
36
|
if (!screenKey) return null;
|
|
38
37
|
return findLatestLink(tagState, link => link.destination === null && (0, _matching.matchesScreenKey)(link.source, screenKey));
|
|
39
38
|
}
|
|
40
|
-
function getSnapshotBoundsByPriority(tag, keys) {
|
|
41
|
-
"worklet";
|
|
42
|
-
|
|
43
|
-
for (let i = 0; i < keys.length; i++) {
|
|
44
|
-
const key = keys[i];
|
|
45
|
-
if (!key) continue;
|
|
46
|
-
const snapshot = (0, _registry.getSnapshot)(tag, key);
|
|
47
|
-
if (!snapshot) continue;
|
|
48
|
-
return {
|
|
49
|
-
bounds: snapshot.bounds,
|
|
50
|
-
styles: snapshot.styles,
|
|
51
|
-
screenKey: key
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
return null;
|
|
55
|
-
}
|
|
56
39
|
function resolveTransitionPair(tag, context) {
|
|
57
40
|
"worklet";
|
|
58
41
|
|
|
@@ -84,37 +67,12 @@ function resolveTransitionPair(tag, context) {
|
|
|
84
67
|
}
|
|
85
68
|
}
|
|
86
69
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
let usedSnapshotSource = false;
|
|
94
|
-
let usedSnapshotDestination = false;
|
|
95
|
-
const sourceFallbackKeys = context.entering ? [context.previousScreenKey, context.currentScreenKey, context.nextScreenKey] : [context.currentScreenKey, context.previousScreenKey, context.nextScreenKey];
|
|
96
|
-
const destinationFallbackKeys = context.entering ? [context.currentScreenKey, context.nextScreenKey] : [context.nextScreenKey, context.currentScreenKey];
|
|
97
|
-
if (!sourceBounds) {
|
|
98
|
-
const sourceSnapshot = getSnapshotBoundsByPriority(tag, sourceFallbackKeys);
|
|
99
|
-
if (sourceSnapshot) {
|
|
100
|
-
sourceBounds = sourceSnapshot.bounds;
|
|
101
|
-
sourceStyles = sourceSnapshot.styles;
|
|
102
|
-
sourceScreenKey = sourceSnapshot.screenKey;
|
|
103
|
-
usedSnapshotSource = true;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
if (!destinationBounds) {
|
|
107
|
-
const destinationSnapshot = getSnapshotBoundsByPriority(tag, destinationFallbackKeys);
|
|
108
|
-
if (destinationSnapshot) {
|
|
109
|
-
destinationBounds = destinationSnapshot.bounds;
|
|
110
|
-
destinationStyles = destinationSnapshot.styles;
|
|
111
|
-
destinationScreenKey = destinationSnapshot.screenKey;
|
|
112
|
-
usedSnapshotDestination = true;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
if (!sourceBounds || !destinationBounds) {
|
|
116
|
-
(0, _state.debugResolverLog)(`unresolved tag=${tag} entering=${context.entering ? 1 : 0} source=${sourceBounds ? 1 : 0} destination=${destinationBounds ? 1 : 0} pending=${usedPending ? 1 : 0}`);
|
|
117
|
-
}
|
|
70
|
+
const sourceBounds = matchedLink?.source?.bounds ?? null;
|
|
71
|
+
const destinationBounds = matchedLink?.destination?.bounds ?? null;
|
|
72
|
+
const sourceStyles = matchedLink?.source?.styles ?? null;
|
|
73
|
+
const destinationStyles = matchedLink?.destination?.styles ?? null;
|
|
74
|
+
const sourceScreenKey = matchedLink?.source?.screenKey ?? null;
|
|
75
|
+
const destinationScreenKey = matchedLink?.destination?.screenKey ?? null;
|
|
118
76
|
return {
|
|
119
77
|
sourceBounds,
|
|
120
78
|
destinationBounds,
|
|
@@ -122,9 +80,7 @@ function resolveTransitionPair(tag, context) {
|
|
|
122
80
|
destinationStyles,
|
|
123
81
|
sourceScreenKey,
|
|
124
82
|
destinationScreenKey,
|
|
125
|
-
usedPending
|
|
126
|
-
usedSnapshotSource,
|
|
127
|
-
usedSnapshotDestination
|
|
83
|
+
usedPending
|
|
128
84
|
};
|
|
129
85
|
}
|
|
130
86
|
//# sourceMappingURL=resolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_matching","require","
|
|
1
|
+
{"version":3,"names":["_matching","require","_state","findLatestLink","tagState","predicate","stack","linkStack","i","length","link","findCompletedLinkByDestination","screenKey","destination","matchesScreenKey","findCompletedLinkBySource","source","findPendingLinkBySource","resolveTransitionPair","tag","context","registry","value","matchedLink","usedPending","entering","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","bounds","destinationBounds","sourceStyles","styles","destinationStyles","sourceScreenKey","destinationScreenKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAGA,CACtBC,QAAkB,EAClBC,SAAqC,KACjB;EACpB,SAAS;;EACT,MAAMC,KAAK,GAAGF,QAAQ,CAACG,SAAS;EAChC,KAAK,IAAIC,CAAC,GAAGF,KAAK,CAACG,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,MAAME,IAAI,GAAGJ,KAAK,CAACE,CAAC,CAAC;IACrB,IAAIH,SAAS,CAACK,IAAI,CAAC,EAAE;MACpB,OAAOA,IAAI;IACZ;EACD;EACA,OAAO,IAAI;AACZ,CAAC;AAED,SAASC,8BAA8BA,CACtCP,QAAkB,EAClBQ,SAAqB,EACJ;EACjB,SAAS;;EACT,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;EAE3B,OAAOT,cAAc,CACpBC,QAAQ,EACPM,IAAI,IACJ,CAAC,CAACA,IAAI,CAACG,WAAW,IAAI,IAAAC,0BAAgB,EAACJ,IAAI,CAACG,WAAW,EAAED,SAAS,CACpE,CAAC;AACF;AAEA,SAASG,yBAAyBA,CACjCX,QAAkB,EAClBQ,SAAqB,EACJ;EACj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