react-native-screen-transitions 3.9.0-beta.1 → 3.9.0-beta.3
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/adapters/with-screen-transitions/index.js +20 -4
- package/lib/commonjs/shared/adapters/with-screen-transitions/index.js.map +1 -1
- package/lib/commonjs/shared/animation/transition-blocking.js +71 -0
- package/lib/commonjs/shared/animation/transition-blocking.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js +33 -28
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js +30 -95
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +75 -51
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js +1 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js +14 -2
- package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/use-register-target.js +32 -0
- package/lib/commonjs/shared/components/boundary/hooks/use-register-target.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/index.js +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +41 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js +14 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +224 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js +45 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/{host.js → boundary-portal/components/host.js} +20 -18
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/{portal-boundary-host.js → boundary-portal/components/portal-boundary-host.js} +13 -12
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +51 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js +14 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.js +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +185 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.js +23 -5
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-placeholder-styles.js +3 -6
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js +31 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.js +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.js +7 -12
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/index.js +1 -8
- package/lib/commonjs/shared/components/boundary/portal/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/teleport.js +4 -3
- package/lib/commonjs/shared/components/boundary/portal/teleport.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/naming.js +1 -15
- package/lib/commonjs/shared/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js +19 -56
- package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +90 -23
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +41 -12
- package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/utils/measured-bounds.js +36 -1
- package/lib/commonjs/shared/components/boundary/utils/measured-bounds.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +1 -1
- package/lib/commonjs/shared/configs/presets.js +2 -2
- package/lib/commonjs/shared/configs/presets.js.map +1 -1
- package/lib/commonjs/shared/constants.js +4 -0
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/index.js +13 -0
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +4 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/activation/use-pan-activation.js +10 -10
- package/lib/commonjs/shared/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +10 -2
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-build-pan-gesture.js +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-build-pan-gesture.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +25 -3
- package/lib/commonjs/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +4 -6
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +6 -1
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/snapshot.js +2 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/snapshot.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/values.js +2 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/values.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +13 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/slot.provider.js +5 -3
- package/lib/commonjs/shared/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js +1 -1
- package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -1
- package/lib/commonjs/shared/stores/gesture.store.js +8 -0
- package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
- package/lib/commonjs/shared/stores/system.store.js +10 -2
- package/lib/commonjs/shared/stores/system.store.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +24 -7
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +15 -9
- package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +2 -2
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +2 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +178 -315
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js +12 -18
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js +196 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +94 -108
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js +72 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js +55 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js.map +1 -0
- package/lib/module/shared/adapters/with-screen-transitions/index.js +19 -5
- package/lib/module/shared/adapters/with-screen-transitions/index.js.map +1 -1
- package/lib/module/shared/animation/transition-blocking.js +66 -0
- package/lib/module/shared/animation/transition-blocking.js.map +1 -0
- package/lib/module/shared/components/boundary/components/boundary-target.js +35 -30
- package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/boundary/create-boundary-component.js +32 -97
- package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +79 -55
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js +1 -0
- package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/use-measurer.js +15 -3
- package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/use-register-target.js +27 -0
- package/lib/module/shared/components/boundary/hooks/use-register-target.js.map +1 -0
- package/lib/module/shared/components/boundary/index.js +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +36 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js +9 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +219 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js +34 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/{host.js → boundary-portal/components/host.js} +20 -18
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/{portal-boundary-host.js → boundary-portal/components/portal-boundary-host.js} +13 -12
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +46 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js +9 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.js +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +180 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.js +23 -5
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-placeholder-styles.js +3 -6
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js +27 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.js +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.js +5 -10
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/index.js +1 -2
- package/lib/module/shared/components/boundary/portal/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/teleport.js +3 -2
- package/lib/module/shared/components/boundary/portal/teleport.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/naming.js +0 -12
- package/lib/module/shared/components/boundary/portal/utils/naming.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/utils/ownership.js +16 -52
- package/lib/module/shared/components/boundary/portal/utils/ownership.js.map +1 -1
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +87 -20
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/destination-signals.js +39 -10
- package/lib/module/shared/components/boundary/utils/destination-signals.js.map +1 -1
- package/lib/module/shared/components/boundary/utils/measured-bounds.js +34 -0
- package/lib/module/shared/components/boundary/utils/measured-bounds.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/configs/presets.js +2 -2
- package/lib/module/shared/configs/presets.js.map +1 -1
- package/lib/module/shared/constants.js +4 -0
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/index.js +1 -0
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +4 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/activation/use-pan-activation.js +10 -10
- package/lib/module/shared/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +10 -2
- package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/use-build-pan-gesture.js +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/use-build-pan-gesture.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +23 -2
- package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +4 -6
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -2
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +6 -1
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/snapshot.js +2 -0
- package/lib/module/shared/providers/screen/gestures/shared/snapshot.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/values.js +2 -0
- package/lib/module/shared/providers/screen/gestures/shared/values.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +13 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/slot.provider.js +5 -3
- package/lib/module/shared/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js +1 -1
- package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -1
- package/lib/module/shared/stores/gesture.store.js +8 -0
- package/lib/module/shared/stores/gesture.store.js.map +1 -1
- package/lib/module/shared/stores/system.store.js +10 -2
- package/lib/module/shared/stores/system.store.js.map +1 -1
- package/lib/module/shared/types/bounds.types.js +26 -0
- package/lib/module/shared/types/bounds.types.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +24 -7
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +15 -9
- package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js +2 -2
- package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js +2 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js +182 -319
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js +11 -17
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/drag.js +184 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/drag.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +91 -102
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/mask.js +67 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/mask.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/targets.js +50 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/targets.js.map +1 -0
- package/lib/typescript/shared/adapters/with-screen-transitions/index.d.ts +4 -1
- package/lib/typescript/shared/adapters/with-screen-transitions/index.d.ts.map +1 -1
- package/lib/typescript/shared/animation/transition-blocking.d.ts +33 -0
- package/lib/typescript/shared/animation/transition-blocking.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts +3 -1
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts +2 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/use-register-target.d.ts +10 -0
- package/lib/typescript/shared/components/boundary/hooks/use-register-target.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/index.d.ts +2 -2
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/components/host.d.ts +10 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/components/host.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.d.ts +2 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts +9 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts +13 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.d.ts +3 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.d.ts +2 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.d.ts +5 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts +12 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.d.ts +3 -3
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/index.d.ts +1 -2
- package/lib/typescript/shared/components/boundary/portal/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/teleport.d.ts +1 -0
- package/lib/typescript/shared/components/boundary/portal/teleport.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts +0 -2
- package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts +9 -10
- package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +22 -21
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts +9 -2
- package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts +8 -0
- package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +2 -1
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/activation/use-pan-activation.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/activation/use-pan-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/use-build-pan-gesture.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/snapshot.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/values.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +5 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/gesture.store.d.ts +4 -0
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +3 -3
- package/lib/typescript/shared/types/bounds.types.d.ts +122 -90
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +10 -0
- 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/animation/animate-to-progress.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/navigation/reveal/math.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts +7 -17
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/drag.d.ts +55 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/drag.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +31 -34
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/mask.d.ts +25 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/mask.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts +16 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +6 -2
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/adapters/with-screen-transitions/index.tsx +30 -9
- package/src/shared/animation/transition-blocking.ts +79 -0
- package/src/shared/components/boundary/components/boundary-target.tsx +47 -43
- package/src/shared/components/boundary/create-boundary-component.tsx +35 -150
- package/src/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +106 -81
- package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +1 -0
- package/src/shared/components/boundary/hooks/use-measurer.ts +12 -4
- package/src/shared/components/boundary/hooks/use-register-target.ts +43 -0
- package/src/shared/components/boundary/index.tsx +2 -2
- package/src/shared/components/boundary/portal/components/boundary-content-portal/components/host.tsx +52 -0
- package/src/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.ts +9 -0
- package/src/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +317 -0
- package/src/shared/components/boundary/portal/components/boundary-content-portal/index.tsx +62 -0
- package/src/shared/components/boundary/portal/components/{host.tsx → boundary-portal/components/host.tsx} +17 -17
- package/src/shared/components/boundary/portal/components/{portal-boundary-host.tsx → boundary-portal/components/portal-boundary-host.tsx} +14 -13
- package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.tsx +79 -0
- package/src/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/has-local-slot.ts +1 -1
- package/src/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.ts +10 -0
- package/src/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.ts +2 -2
- package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +254 -0
- package/src/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.ts +38 -8
- package/src/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-placeholder-styles.ts +4 -15
- package/src/shared/components/boundary/portal/components/boundary-portal/index.tsx +35 -0
- package/src/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.ts +2 -2
- package/src/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.ts +10 -15
- package/src/shared/components/boundary/portal/index.ts +1 -2
- package/src/shared/components/boundary/portal/teleport.ts +3 -2
- package/src/shared/components/boundary/portal/utils/naming.ts +0 -19
- package/src/shared/components/boundary/portal/utils/ownership.ts +32 -88
- package/src/shared/components/boundary/providers/boundary-root.provider.tsx +218 -78
- package/src/shared/components/boundary/utils/destination-signals.ts +38 -14
- package/src/shared/components/boundary/utils/measured-bounds.ts +48 -0
- package/src/shared/components/screen-container/layers/content.tsx +1 -1
- package/src/shared/configs/presets.ts +2 -2
- package/src/shared/constants.ts +4 -0
- package/src/shared/index.ts +6 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +8 -0
- package/src/shared/providers/screen/gestures/pan/activation/use-pan-activation.ts +16 -7
- package/src/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.ts +18 -1
- package/src/shared/providers/screen/gestures/pan/use-build-pan-gesture.ts +1 -0
- package/src/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.ts +40 -2
- package/src/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.ts +7 -11
- package/src/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.ts +12 -15
- package/src/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.ts +6 -1
- package/src/shared/providers/screen/gestures/shared/snapshot.ts +2 -0
- package/src/shared/providers/screen/gestures/shared/values.ts +2 -0
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +15 -1
- package/src/shared/providers/screen/styles/slot.provider.tsx +4 -2
- package/src/shared/providers/screen/styles/stores/slot-references.store.ts +2 -1
- package/src/shared/stores/gesture.store.ts +12 -0
- package/src/shared/stores/system.store.ts +10 -4
- package/src/shared/types/animation.types.ts +3 -3
- package/src/shared/types/bounds.types.ts +128 -92
- package/src/shared/types/gesture.types.ts +10 -0
- package/src/shared/types/index.ts +2 -0
- package/src/shared/utils/animation/animate-to-progress.ts +23 -7
- package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +18 -11
- package/src/shared/utils/bounds/navigation/reveal/build.ts +2 -2
- package/src/shared/utils/bounds/navigation/reveal/math.ts +2 -1
- package/src/shared/utils/bounds/navigation/zoom/build.ts +224 -412
- package/src/shared/utils/bounds/navigation/zoom/config.ts +15 -18
- package/src/shared/utils/bounds/navigation/zoom/drag.ts +327 -0
- package/src/shared/utils/bounds/navigation/zoom/helpers.ts +122 -184
- package/src/shared/utils/bounds/navigation/zoom/mask.ts +130 -0
- package/src/shared/utils/bounds/navigation/zoom/targets.ts +74 -0
- package/src/shared/utils/bounds/navigation/zoom/types.ts +1 -1
- package/src/shared/utils/bounds/types/options.ts +9 -2
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js +0 -58
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/components/host.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js +0 -272
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/stores/host-bounds.store.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/has-local-slot.js.map +0 -1
- package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js +0 -25
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js +0 -53
- package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/components/host.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/components/portal.js +0 -267
- package/lib/module/shared/components/boundary/portal/components/portal.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/stores/host-bounds.store.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/utils/has-local-slot.js.map +0 -1
- package/lib/module/shared/components/boundary/portal/utils/offset-style.js.map +0 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js +0 -20
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts +0 -8
- package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/host.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts +0 -20
- package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts +0 -17
- package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/stores/host-bounds.store.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts +0 -3
- package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts.map +0 -1
- package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts +0 -8
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts.map +0 -1
- package/src/shared/components/boundary/portal/components/boundary-local-portal-host.tsx +0 -66
- package/src/shared/components/boundary/portal/components/portal.tsx +0 -412
- package/src/shared/utils/bounds/navigation/zoom/math.ts +0 -25
- /package/lib/commonjs/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/has-local-slot.js +0 -0
- /package/lib/commonjs/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.js +0 -0
- /package/lib/module/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/has-local-slot.js +0 -0
- /package/lib/module/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.js +0 -0
- /package/lib/typescript/shared/components/boundary/portal/components/{host.d.ts → boundary-portal/components/host.d.ts} +0 -0
- /package/lib/typescript/shared/components/boundary/portal/components/{portal-boundary-host.d.ts → boundary-portal/components/portal-boundary-host.d.ts} +0 -0
- /package/lib/typescript/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.d.ts +0 -0
- /package/src/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ColorValue } from "react-native";
|
|
2
2
|
import {
|
|
3
3
|
NAVIGATION_MASK_CONTAINER_STYLE_ID,
|
|
4
4
|
NAVIGATION_MASK_ELEMENT_STYLE_ID,
|
|
@@ -7,11 +7,11 @@ import type { BoundsLink } from "../stores/bounds/types";
|
|
|
7
7
|
import type {
|
|
8
8
|
BoundsComputeOptions,
|
|
9
9
|
BoundsIdentityInput,
|
|
10
|
-
BoundsMathResult,
|
|
11
10
|
BoundsMotion,
|
|
12
11
|
BoundsMotionFrame,
|
|
13
12
|
BoundsMotionTransform,
|
|
14
13
|
BoundsStyleResult,
|
|
14
|
+
BoundsValuesResult,
|
|
15
15
|
} from "../utils/bounds/types/options";
|
|
16
16
|
import type {
|
|
17
17
|
ScreenInterpolationProps,
|
|
@@ -31,78 +31,142 @@ export type { BoundsLink, BoundsLinkStatus } from "../stores/bounds/types";
|
|
|
31
31
|
*/
|
|
32
32
|
export type BoundsMethod = "transform" | "size" | "content";
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Axis-specific response intensity used by {@linkcode BoundsNavigationZoomDragOptions}.
|
|
36
|
+
*
|
|
37
|
+
* `0` disables the response on an axis, `1` preserves the native zoom preset,
|
|
38
|
+
* and values above `1` exaggerate it.
|
|
39
|
+
*/
|
|
40
|
+
export type BoundsNavigationZoomAxisResponse = {
|
|
41
|
+
/** Horizontal gesture response multiplier. @default 1 */
|
|
42
|
+
horizontal?: number;
|
|
43
|
+
/** Vertical gesture response multiplier. @default 1 */
|
|
44
|
+
vertical?: number;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Adjusts the intensity of zoom's native drag behavior without replacing its
|
|
49
|
+
* built-in curves.
|
|
50
|
+
*
|
|
51
|
+
* @see {@linkcode BoundsNavigationZoomOptions.drag}
|
|
52
|
+
*/
|
|
53
|
+
export type BoundsNavigationZoomDragOptions = {
|
|
54
|
+
/**
|
|
55
|
+
* Multiplies the native rendered translation.
|
|
56
|
+
*
|
|
57
|
+
* @default { horizontal: 1, vertical: 1 }
|
|
58
|
+
*/
|
|
59
|
+
translation?: BoundsNavigationZoomAxisResponse;
|
|
60
|
+
/**
|
|
61
|
+
* Multiplies the native scale displacement from `1`.
|
|
62
|
+
*
|
|
63
|
+
* @default { horizontal: 1, vertical: 1 }
|
|
64
|
+
*/
|
|
65
|
+
scale?: BoundsNavigationZoomAxisResponse;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Legacy zoom opacity interpolation tuple.
|
|
70
|
+
*
|
|
71
|
+
* @deprecated Zoom opacity ownership now follows the native preset.
|
|
72
|
+
*/
|
|
73
|
+
export type BoundsNavigationZoomOpacityRange = readonly [
|
|
74
|
+
inputStart: number,
|
|
75
|
+
inputEnd: number,
|
|
76
|
+
outputStart?: number,
|
|
77
|
+
outputEnd?: number,
|
|
78
|
+
];
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Legacy opening and closing zoom opacity ranges.
|
|
82
|
+
*
|
|
83
|
+
* @deprecated Zoom opacity ownership now follows the native preset.
|
|
84
|
+
*/
|
|
85
|
+
export type BoundsNavigationZoomOpacityRanges = {
|
|
86
|
+
open?: BoundsNavigationZoomOpacityRange;
|
|
87
|
+
close?: BoundsNavigationZoomOpacityRange;
|
|
88
|
+
};
|
|
89
|
+
|
|
34
90
|
export type BoundsNavigationZoomOptions = {
|
|
35
|
-
target?: "bound" | "fullscreen" | MeasuredDimensions;
|
|
36
|
-
debug?: boolean;
|
|
37
|
-
borderRadius?: number;
|
|
38
91
|
/**
|
|
39
|
-
*
|
|
92
|
+
* Geometry that the zoomed content should resolve against.
|
|
93
|
+
*
|
|
94
|
+
* `"bound"` uses the paired destination boundary. `"fullscreen"` uses the
|
|
95
|
+
* screen, and measured dimensions provide an explicit target rectangle.
|
|
96
|
+
* When omitted, zoom keeps its native full-width aspect-ratio target.
|
|
97
|
+
*/
|
|
98
|
+
target?: BoundsComputeOptions["target"];
|
|
99
|
+
/**
|
|
100
|
+
* Keeps the focused screen content visible throughout the zoom.
|
|
40
101
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
102
|
+
* Enable this for handed-off or live content that should not use zoom's
|
|
103
|
+
* built-in focused-content opacity fade.
|
|
43
104
|
*
|
|
44
|
-
*
|
|
45
|
-
* - `inputStart`: transition progress start
|
|
46
|
-
* - `inputEnd`: transition progress end
|
|
47
|
-
* - `outputStart`: opacity at `inputStart` (defaults to built-in preset)
|
|
48
|
-
* - `outputEnd`: opacity at `inputEnd` (defaults to built-in preset)
|
|
105
|
+
* @default false
|
|
49
106
|
*/
|
|
50
|
-
|
|
107
|
+
keepFocusedVisible?: boolean;
|
|
51
108
|
/**
|
|
52
|
-
*
|
|
109
|
+
* Expanded transition clipping radius.
|
|
53
110
|
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
111
|
+
* Zoom interpolates from the measured source radius to this value while the
|
|
112
|
+
* screen is animating. This controls the visible clipping result regardless
|
|
113
|
+
* of whether a navigation mask is enabled.
|
|
56
114
|
*
|
|
57
|
-
*
|
|
58
|
-
* - `inputStart`: transition progress start
|
|
59
|
-
* - `inputEnd`: transition progress end
|
|
60
|
-
* - `outputStart`: opacity at `inputStart` (defaults to built-in preset)
|
|
61
|
-
* - `outputEnd`: opacity at `inputEnd` (defaults to built-in preset)
|
|
115
|
+
* @default 64
|
|
62
116
|
*/
|
|
63
|
-
|
|
117
|
+
borderRadius?: number;
|
|
64
118
|
/**
|
|
65
|
-
* Scale applied to the unfocused
|
|
66
|
-
*
|
|
119
|
+
* Scale applied to the unfocused screen while the zoom runs above it.
|
|
120
|
+
*
|
|
121
|
+
* @default 0.9375
|
|
67
122
|
*/
|
|
68
123
|
backgroundScale?: number;
|
|
69
124
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* Zoom lowers gesture sensitivity as the drag gets deeper so the content
|
|
73
|
-
* handoff stays stable. This value controls the starting/highest sensitivity
|
|
74
|
-
* in that curve.
|
|
125
|
+
* Color rendered behind the focused zoom content.
|
|
75
126
|
*
|
|
76
|
-
* @default
|
|
127
|
+
* @default "black"
|
|
77
128
|
*/
|
|
78
|
-
|
|
129
|
+
backdropColor?: ColorValue;
|
|
79
130
|
/**
|
|
80
|
-
*
|
|
131
|
+
* Maximum opacity reached by the zoom backdrop.
|
|
81
132
|
*
|
|
82
|
-
*
|
|
83
|
-
* to `0` to remove the velocity depth effect.
|
|
133
|
+
* Values are clamped between `0` and `1`.
|
|
84
134
|
*
|
|
85
|
-
* @default 0.
|
|
135
|
+
* @default 0.45
|
|
136
|
+
*/
|
|
137
|
+
backdropOpacity?: number;
|
|
138
|
+
/**
|
|
139
|
+
* Native drag-response intensity controls.
|
|
140
|
+
*/
|
|
141
|
+
drag?: BoundsNavigationZoomDragOptions;
|
|
142
|
+
/**
|
|
143
|
+
* @deprecated Ignored. Zoom no longer exposes a transition-specific debug
|
|
144
|
+
* overlay.
|
|
145
|
+
*/
|
|
146
|
+
debug?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated Ignored. Zoom opacity ownership now follows the native preset.
|
|
149
|
+
*/
|
|
150
|
+
focusedElementOpacity?: BoundsNavigationZoomOpacityRanges;
|
|
151
|
+
/**
|
|
152
|
+
* @deprecated Ignored. Zoom opacity ownership now follows the native preset.
|
|
153
|
+
*/
|
|
154
|
+
unfocusedElementOpacity?: BoundsNavigationZoomOpacityRanges;
|
|
155
|
+
/**
|
|
156
|
+
* @deprecated Ignored. Zoom now owns its gesture sensitivity curve.
|
|
157
|
+
*/
|
|
158
|
+
maxSensitivity?: number;
|
|
159
|
+
/**
|
|
160
|
+
* @deprecated Ignored. Zoom now owns its velocity-depth behavior.
|
|
86
161
|
*/
|
|
87
162
|
velocityDepth?: number;
|
|
88
163
|
/**
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
* Gesture movement now always contributes to `progress`; use `transitionProgress`
|
|
92
|
-
* when a recipe needs transition progress without live gesture contribution.
|
|
93
|
-
* The zoom helper no longer reads this option.
|
|
94
|
-
*
|
|
95
|
-
* @deprecated Use `transitionProgress` from interpolation state instead.
|
|
164
|
+
* @deprecated Ignored. Gesture movement always contributes to `progress`.
|
|
96
165
|
*/
|
|
97
166
|
gestureProgressMode?: GestureProgressMode;
|
|
98
167
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
* Tuple order:
|
|
103
|
-
* - `shrinkMin`: minimum scale when dragging toward dismissal
|
|
104
|
-
* - `growMax`: maximum scale when dragging opposite dismissal
|
|
105
|
-
* - `exponent`: curve exponent controlling how quickly scaling ramps
|
|
168
|
+
* @deprecated Ignored. Use `drag.scale.horizontal` to adjust response
|
|
169
|
+
* intensity without replacing the native curve.
|
|
106
170
|
*/
|
|
107
171
|
horizontalDragScale?: readonly [
|
|
108
172
|
shrinkMin: number,
|
|
@@ -110,13 +174,8 @@ export type BoundsNavigationZoomOptions = {
|
|
|
110
174
|
exponent?: number,
|
|
111
175
|
];
|
|
112
176
|
/**
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* Tuple order:
|
|
117
|
-
* - `shrinkMin`: minimum scale when dragging toward dismissal
|
|
118
|
-
* - `growMax`: maximum scale when dragging opposite dismissal
|
|
119
|
-
* - `exponent`: curve exponent controlling how quickly scaling ramps
|
|
177
|
+
* @deprecated Ignored. Use `drag.scale.vertical` to adjust response intensity
|
|
178
|
+
* without replacing the native curve.
|
|
120
179
|
*/
|
|
121
180
|
verticalDragScale?: readonly [
|
|
122
181
|
shrinkMin: number,
|
|
@@ -124,17 +183,8 @@ export type BoundsNavigationZoomOptions = {
|
|
|
124
183
|
exponent?: number,
|
|
125
184
|
];
|
|
126
185
|
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
* Tuple order:
|
|
130
|
-
* - `negativeMax`: multiplier when dragging left / negative
|
|
131
|
-
* - `positiveMax`: multiplier when dragging right / positive
|
|
132
|
-
* - `exponent`: curve exponent controlling how quickly translation ramps
|
|
133
|
-
*
|
|
134
|
-
* Examples:
|
|
135
|
-
* - `[0, 0]` disables horizontal drag translation
|
|
136
|
-
* - `[0.5, 0.5]` halves horizontal drag travel
|
|
137
|
-
* - `[1.2, 1.2]` amplifies horizontal drag travel
|
|
186
|
+
* @deprecated Ignored. Use `drag.translation.horizontal` to adjust response
|
|
187
|
+
* intensity without replacing the native curve.
|
|
138
188
|
*/
|
|
139
189
|
horizontalDragTranslation?: readonly [
|
|
140
190
|
negativeMax: number,
|
|
@@ -142,17 +192,8 @@ export type BoundsNavigationZoomOptions = {
|
|
|
142
192
|
exponent?: number,
|
|
143
193
|
];
|
|
144
194
|
/**
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
* Tuple order:
|
|
148
|
-
* - `negativeMax`: multiplier when dragging up / negative
|
|
149
|
-
* - `positiveMax`: multiplier when dragging down / positive
|
|
150
|
-
* - `exponent`: curve exponent controlling how quickly translation ramps
|
|
151
|
-
*
|
|
152
|
-
* Examples:
|
|
153
|
-
* - `[0, 0]` disables vertical drag translation
|
|
154
|
-
* - `[0.5, 0.5]` halves vertical drag travel
|
|
155
|
-
* - `[1.2, 1.2]` amplifies vertical drag travel
|
|
195
|
+
* @deprecated Ignored. Use `drag.translation.vertical` to adjust response
|
|
196
|
+
* intensity without replacing the native curve.
|
|
156
197
|
*/
|
|
157
198
|
verticalDragTranslation?: readonly [
|
|
158
199
|
negativeMax: number,
|
|
@@ -161,18 +202,6 @@ export type BoundsNavigationZoomOptions = {
|
|
|
161
202
|
];
|
|
162
203
|
};
|
|
163
204
|
|
|
164
|
-
export type BoundsNavigationZoomOpacityRange = readonly [
|
|
165
|
-
inputStart: number,
|
|
166
|
-
inputEnd: number,
|
|
167
|
-
outputStart?: number,
|
|
168
|
-
outputEnd?: number,
|
|
169
|
-
];
|
|
170
|
-
|
|
171
|
-
export type BoundsNavigationZoomOpacityRanges = {
|
|
172
|
-
open?: BoundsNavigationZoomOpacityRange;
|
|
173
|
-
close?: BoundsNavigationZoomOpacityRange;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
205
|
export type BoundsNavigationZoomStyle = TransitionInterpolatedStyle & {
|
|
177
206
|
content?: TransitionSlotStyle;
|
|
178
207
|
[NAVIGATION_MASK_CONTAINER_STYLE_ID]?: TransitionSlotStyle;
|
|
@@ -283,9 +312,16 @@ type BoundsBoundNavigationAccessor = {
|
|
|
283
312
|
|
|
284
313
|
export type BoundsScopedAccessor = BoundsBoundNavigationAccessor & {
|
|
285
314
|
styles: (options?: BoundsComputeOptions) => BoundsStyleResult;
|
|
315
|
+
/** Returns numeric bounds values for custom style composition. */
|
|
316
|
+
values: <T extends BoundsComputeOptions = BoundsComputeOptions>(
|
|
317
|
+
options?: T,
|
|
318
|
+
) => BoundsValuesResult<T>;
|
|
319
|
+
/**
|
|
320
|
+
* @deprecated Use {@linkcode values}.
|
|
321
|
+
*/
|
|
286
322
|
math: <T extends BoundsComputeOptions = BoundsComputeOptions>(
|
|
287
323
|
options?: T,
|
|
288
|
-
) =>
|
|
324
|
+
) => BoundsValuesResult<T>;
|
|
289
325
|
link: (id?: BoundsIdentityInput) => BoundsLink | null;
|
|
290
326
|
};
|
|
291
327
|
|
|
@@ -150,6 +150,8 @@ export type GestureHandoffValues = {
|
|
|
150
150
|
normScale: number;
|
|
151
151
|
focalX: number;
|
|
152
152
|
focalY: number;
|
|
153
|
+
pinchOriginX: number;
|
|
154
|
+
pinchOriginY: number;
|
|
153
155
|
rotation: number;
|
|
154
156
|
raw: RawGestureValues;
|
|
155
157
|
/**
|
|
@@ -202,6 +204,14 @@ export type GestureValues = {
|
|
|
202
204
|
* The live pinch focal point y-position in screen coordinates.
|
|
203
205
|
*/
|
|
204
206
|
focalY: number;
|
|
207
|
+
/**
|
|
208
|
+
* The pinch focal point x-position captured when the gesture activated.
|
|
209
|
+
*/
|
|
210
|
+
pinchOriginX: number;
|
|
211
|
+
/**
|
|
212
|
+
* The pinch focal point y-position captured when the gesture activated.
|
|
213
|
+
*/
|
|
214
|
+
pinchOriginY: number;
|
|
205
215
|
/**
|
|
206
216
|
* The live two-finger rotation in radians.
|
|
207
217
|
*/
|
|
@@ -25,6 +25,8 @@ export type {
|
|
|
25
25
|
BoundsNavigationAccessor,
|
|
26
26
|
BoundsNavigationRevealOptions,
|
|
27
27
|
BoundsNavigationRevealStyle,
|
|
28
|
+
BoundsNavigationZoomAxisResponse,
|
|
29
|
+
BoundsNavigationZoomDragOptions,
|
|
28
30
|
BoundsNavigationZoomOpacityRange,
|
|
29
31
|
BoundsNavigationZoomOpacityRanges,
|
|
30
32
|
BoundsNavigationZoomOptions,
|
|
@@ -113,14 +113,30 @@ export const animateToProgress = ({
|
|
|
113
113
|
entering.set(FALSE);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
if (
|
|
117
|
-
runOnJS(onAnimationFinish)(state.finished);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Delay clearing progress animation by one frame to ensure final frame is painted
|
|
121
|
-
requestAnimationFrame(() => {
|
|
116
|
+
if (isClosing) {
|
|
122
117
|
progressAnimating.set(FALSE);
|
|
123
|
-
|
|
118
|
+
|
|
119
|
+
if (onAnimationFinish) {
|
|
120
|
+
// Paint the terminal UI-thread host/style state before React
|
|
121
|
+
// removes the closing route and its native portal host.
|
|
122
|
+
requestAnimationFrame(() => {
|
|
123
|
+
"worklet";
|
|
124
|
+
requestAnimationFrame(() => {
|
|
125
|
+
"worklet";
|
|
126
|
+
runOnJS(onAnimationFinish)(state.finished);
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
} else {
|
|
131
|
+
if (onAnimationFinish) {
|
|
132
|
+
runOnJS(onAnimationFinish)(state.finished);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Delay clearing progress animation by one frame to ensure final frame is painted
|
|
136
|
+
requestAnimationFrame(() => {
|
|
137
|
+
progressAnimating.set(FALSE);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
124
140
|
}),
|
|
125
141
|
);
|
|
126
142
|
};
|
|
@@ -7,8 +7,8 @@ import type {
|
|
|
7
7
|
BoundsComputeOptions,
|
|
8
8
|
BoundsIdentity,
|
|
9
9
|
BoundsIdentityInput,
|
|
10
|
-
BoundsMathResult,
|
|
11
10
|
BoundsStyleResult,
|
|
11
|
+
BoundsValuesResult,
|
|
12
12
|
} from "../types/options";
|
|
13
13
|
import { createBoundTag, normalizeBoundIdentity } from "./create-bound-tag";
|
|
14
14
|
import { createLinkAccessor } from "./create-link-accessor";
|
|
@@ -46,6 +46,20 @@ const createBoundsAccessorParts = ({
|
|
|
46
46
|
id: normalizedIdentity.id,
|
|
47
47
|
group: normalizedIdentity.group,
|
|
48
48
|
});
|
|
49
|
+
const getValues = <T extends BoundsComputeOptions = BoundsComputeOptions>(
|
|
50
|
+
options?: T,
|
|
51
|
+
): BoundsValuesResult<T> => {
|
|
52
|
+
"worklet";
|
|
53
|
+
return prepareBoundStyles({
|
|
54
|
+
props,
|
|
55
|
+
options: {
|
|
56
|
+
...options,
|
|
57
|
+
id: normalizedIdentity.id,
|
|
58
|
+
group: normalizedIdentity.group,
|
|
59
|
+
raw: true,
|
|
60
|
+
},
|
|
61
|
+
}) as BoundsValuesResult<T>;
|
|
62
|
+
};
|
|
49
63
|
|
|
50
64
|
const scoped: BoundsScopedAccessor = {
|
|
51
65
|
styles: (options?: BoundsComputeOptions): BoundsStyleResult => {
|
|
@@ -59,19 +73,12 @@ const createBoundsAccessorParts = ({
|
|
|
59
73
|
},
|
|
60
74
|
}) as BoundsStyleResult;
|
|
61
75
|
},
|
|
76
|
+
values: getValues,
|
|
62
77
|
math: <T extends BoundsComputeOptions = BoundsComputeOptions>(
|
|
63
78
|
options?: T,
|
|
64
|
-
)
|
|
79
|
+
) => {
|
|
65
80
|
"worklet";
|
|
66
|
-
return
|
|
67
|
-
props,
|
|
68
|
-
options: {
|
|
69
|
-
...options,
|
|
70
|
-
id: normalizedIdentity.id,
|
|
71
|
-
group: normalizedIdentity.group,
|
|
72
|
-
raw: true,
|
|
73
|
-
},
|
|
74
|
-
}) as BoundsMathResult<T>;
|
|
81
|
+
return getValues(options);
|
|
75
82
|
},
|
|
76
83
|
link: (id?: BoundsIdentityInput) => {
|
|
77
84
|
"worklet";
|
|
@@ -133,14 +133,14 @@ export function buildRevealStyles({
|
|
|
133
133
|
/* ----------------------------- Focused Screen ----------------------------- */
|
|
134
134
|
|
|
135
135
|
if (focused) {
|
|
136
|
-
const contentRaw = scopedBounds.
|
|
136
|
+
const contentRaw = scopedBounds.values({
|
|
137
137
|
scaleMode: "uniform",
|
|
138
138
|
method: "content",
|
|
139
139
|
target: initialDestinationTarget,
|
|
140
140
|
progress: transitionProgress,
|
|
141
141
|
});
|
|
142
142
|
|
|
143
|
-
const maskRaw = scopedBounds.
|
|
143
|
+
const maskRaw = scopedBounds.values({
|
|
144
144
|
scaleMode: "uniform",
|
|
145
145
|
method: "size",
|
|
146
146
|
space: "absolute",
|
|
@@ -141,7 +141,8 @@ export function resolveDismissScaleHandoff({
|
|
|
141
141
|
"worklet";
|
|
142
142
|
|
|
143
143
|
const closeProgress = 1 - progress;
|
|
144
|
-
const
|
|
144
|
+
const easeIn = 1 - Math.cos((Math.PI / 2) * closeProgress);
|
|
145
|
+
const scaleProgress = easeIn ** 2;
|
|
145
146
|
const baseScale = releaseScale + (targetScale - releaseScale) * scaleProgress;
|
|
146
147
|
|
|
147
148
|
const orbitDepth = velocityDepth * velocity;
|