react-native-screen-transitions 4.0.0-alpha.8 → 4.0.0
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/README.md +6 -11
- package/lib/commonjs/components/boundary/create-boundary-component.js +5 -1
- package/lib/commonjs/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +53 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +43 -8
- package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +2 -3
- package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/commonjs/components/boundary/portal/teleport.js +1 -13
- package/lib/commonjs/components/boundary/portal/teleport.js.map +1 -1
- package/lib/commonjs/components/boundary/utils/source-signals.js +6 -4
- package/lib/commonjs/components/boundary/utils/source-signals.js.map +1 -1
- package/lib/commonjs/components/overlay/helpers/get-active-overlay.js +3 -24
- package/lib/commonjs/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/commonjs/components/overlay/helpers/retain-ready-overlay-resources.js +4 -3
- package/lib/commonjs/components/overlay/helpers/retain-ready-overlay-resources.js.map +1 -1
- package/lib/commonjs/components/overlay/hooks/use-overlay-slot.js +1 -2
- package/lib/commonjs/components/overlay/hooks/use-overlay-slot.js.map +1 -1
- package/lib/commonjs/components/overlay/variations/float-overlay.js +0 -2
- package/lib/commonjs/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/commonjs/components/overlay/variations/overlay-host.js +18 -15
- package/lib/commonjs/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/content.js +10 -5
- package/lib/commonjs/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/components/screen-container/layers/surface.js +50 -0
- package/lib/commonjs/components/screen-container/layers/surface.js.map +1 -0
- package/lib/commonjs/components/stack-view.js +7 -29
- package/lib/commonjs/components/stack-view.js.map +1 -1
- package/lib/commonjs/configs/index.js +1 -4
- package/lib/commonjs/configs/index.js.map +1 -1
- package/lib/commonjs/configs/presets.js +1 -384
- package/lib/commonjs/configs/presets.js.map +1 -1
- package/lib/commonjs/constants.js +2 -1
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/commonjs/navigators/create-blank-stack-navigator.js +7 -67
- package/lib/commonjs/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/commonjs/navigators/expo-router/index.js +1 -18
- package/lib/commonjs/navigators/expo-router/index.js.map +1 -1
- package/lib/commonjs/navigators/react-navigation/index.js +1 -3
- package/lib/commonjs/navigators/react-navigation/index.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/animation.provider.js +6 -1
- package/lib/commonjs/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/build-screen-transition-options.js +1 -0
- package/lib/commonjs/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js +20 -5
- package/lib/commonjs/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/hydrate-transition-state/index.js +16 -1
- package/lib/commonjs/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/selected-interpolator-options.js +1 -1
- package/lib/commonjs/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -1
- package/lib/commonjs/providers/screen/animation/use-screen-animation.js +1 -8
- package/lib/commonjs/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-release.js +28 -6
- package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-release.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-release.js +26 -6
- package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-release.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/shared/policy.js +1 -0
- package/lib/commonjs/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/commonjs/providers/screen/gestures/shared/snap-points.js +71 -1
- package/lib/commonjs/providers/screen/gestures/shared/snap-points.js.map +1 -1
- package/lib/commonjs/providers/screen/options/helpers.js +8 -1
- package/lib/commonjs/providers/screen/options/helpers.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/constants.js +4 -1
- package/lib/commonjs/providers/screen/styles/constants.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/hooks/slot-resolvers.js +1 -9
- package/lib/commonjs/providers/screen/styles/hooks/slot-resolvers.js.map +1 -1
- package/lib/commonjs/providers/screen/styles/slot.provider.js +3 -1
- package/lib/commonjs/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js +10 -4
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.js +4 -3
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.js.map +1 -1
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/state-equality.js +9 -2
- package/lib/commonjs/providers/stack/blank-stack-state/helpers/state-equality.js.map +1 -1
- package/lib/commonjs/utils/create-provider.js +14 -3
- package/lib/commonjs/utils/create-provider.js.map +1 -1
- package/lib/module/components/boundary/create-boundary-component.js +6 -2
- package/lib/module/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js +50 -0
- package/lib/module/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +44 -9
- package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +2 -3
- package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/module/components/boundary/portal/teleport.js +1 -14
- package/lib/module/components/boundary/portal/teleport.js.map +1 -1
- package/lib/module/components/boundary/utils/source-signals.js +6 -4
- package/lib/module/components/boundary/utils/source-signals.js.map +1 -1
- package/lib/module/components/overlay/helpers/get-active-overlay.js +3 -24
- package/lib/module/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/module/components/overlay/helpers/retain-ready-overlay-resources.js +4 -3
- package/lib/module/components/overlay/helpers/retain-ready-overlay-resources.js.map +1 -1
- package/lib/module/components/overlay/hooks/use-overlay-slot.js +1 -2
- package/lib/module/components/overlay/hooks/use-overlay-slot.js.map +1 -1
- package/lib/module/components/overlay/variations/float-overlay.js +0 -2
- package/lib/module/components/overlay/variations/float-overlay.js.map +1 -1
- package/lib/module/components/overlay/variations/overlay-host.js +19 -16
- package/lib/module/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/components/screen-container/layers/content.js +10 -5
- package/lib/module/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/components/screen-container/layers/surface.js +45 -0
- package/lib/module/components/screen-container/layers/surface.js.map +1 -0
- package/lib/module/components/stack-view.js +7 -29
- package/lib/module/components/stack-view.js.map +1 -1
- package/lib/module/configs/index.js +2 -5
- package/lib/module/configs/index.js.map +1 -1
- package/lib/module/configs/presets.js +0 -380
- package/lib/module/configs/presets.js.map +1 -1
- package/lib/module/constants.js +1 -0
- package/lib/module/constants.js.map +1 -1
- package/lib/module/navigators/create-blank-stack-navigator.js +7 -66
- package/lib/module/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/module/navigators/expo-router/index.js +1 -18
- package/lib/module/navigators/expo-router/index.js.map +1 -1
- package/lib/module/navigators/react-navigation/index.js +1 -3
- package/lib/module/navigators/react-navigation/index.js.map +1 -1
- package/lib/module/providers/screen/animation/animation.provider.js +4 -0
- package/lib/module/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/build-screen-transition-options.js +1 -0
- package/lib/module/providers/screen/animation/helpers/build-screen-transition-options.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js +20 -5
- package/lib/module/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/hydrate-transition-state/index.js +16 -1
- package/lib/module/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/module/providers/screen/animation/helpers/selected-interpolator-options.js +1 -1
- package/lib/module/providers/screen/animation/helpers/selected-interpolator-options.js.map +1 -1
- package/lib/module/providers/screen/animation/use-screen-animation.js +2 -9
- package/lib/module/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/providers/screen/gestures/pan/behavior/pan-release.js +29 -7
- package/lib/module/providers/screen/gestures/pan/behavior/pan-release.js.map +1 -1
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-release.js +27 -7
- package/lib/module/providers/screen/gestures/pinch/behavior/pinch-release.js.map +1 -1
- package/lib/module/providers/screen/gestures/shared/policy.js +2 -1
- package/lib/module/providers/screen/gestures/shared/policy.js.map +1 -1
- package/lib/module/providers/screen/gestures/shared/snap-points.js +66 -0
- package/lib/module/providers/screen/gestures/shared/snap-points.js.map +1 -1
- package/lib/module/providers/screen/options/helpers.js +9 -2
- package/lib/module/providers/screen/options/helpers.js.map +1 -1
- package/lib/module/providers/screen/styles/constants.js +4 -1
- package/lib/module/providers/screen/styles/constants.js.map +1 -1
- package/lib/module/providers/screen/styles/hooks/slot-resolvers.js +2 -10
- package/lib/module/providers/screen/styles/hooks/slot-resolvers.js.map +1 -1
- package/lib/module/providers/screen/styles/slot.provider.js +1 -0
- package/lib/module/providers/screen/styles/slot.provider.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js +11 -5
- package/lib/module/providers/stack/blank-stack-state/helpers/build-blank-stack-state.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.js +5 -4
- package/lib/module/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.js.map +1 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/state-equality.js +7 -1
- package/lib/module/providers/stack/blank-stack-state/helpers/state-equality.js.map +1 -1
- package/lib/module/types/animation.types.js +10 -0
- package/lib/module/types/animation.types.js.map +1 -1
- package/lib/module/utils/create-provider.js +14 -3
- package/lib/module/utils/create-provider.js.map +1 -1
- package/lib/typescript/components/boundary/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts +20 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/components/boundary/portal/teleport.d.ts +1 -1
- package/lib/typescript/components/boundary/portal/teleport.d.ts.map +1 -1
- package/lib/typescript/components/boundary/utils/source-signals.d.ts.map +1 -1
- package/lib/typescript/components/overlay/helpers/get-active-overlay.d.ts +2 -8
- package/lib/typescript/components/overlay/helpers/get-active-overlay.d.ts.map +1 -1
- package/lib/typescript/components/overlay/helpers/retain-ready-overlay-resources.d.ts +2 -1
- package/lib/typescript/components/overlay/helpers/retain-ready-overlay-resources.d.ts.map +1 -1
- package/lib/typescript/components/overlay/hooks/use-overlay-slot.d.ts.map +1 -1
- package/lib/typescript/components/overlay/variations/float-overlay.d.ts.map +1 -1
- package/lib/typescript/components/overlay/variations/overlay-host.d.ts +2 -3
- package/lib/typescript/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/components/screen-container/layers/content.d.ts.map +1 -1
- package/lib/typescript/components/screen-container/layers/surface.d.ts +7 -0
- package/lib/typescript/components/screen-container/layers/surface.d.ts.map +1 -0
- package/lib/typescript/components/stack-view.d.ts +1 -1
- package/lib/typescript/components/stack-view.d.ts.map +1 -1
- package/lib/typescript/configs/index.d.ts +0 -9
- package/lib/typescript/configs/index.d.ts.map +1 -1
- package/lib/typescript/configs/presets.d.ts +0 -9
- package/lib/typescript/configs/presets.d.ts.map +1 -1
- package/lib/typescript/constants.d.ts +2 -1
- package/lib/typescript/constants.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -10
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/navigators/create-blank-stack-navigator.d.ts +2 -4
- package/lib/typescript/navigators/create-blank-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/navigators/expo-router/index.d.ts +3 -3
- package/lib/typescript/navigators/expo-router/index.d.ts.map +1 -1
- package/lib/typescript/navigators/react-navigation/index.d.ts +1 -1
- package/lib/typescript/navigators/react-navigation/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/animation.provider.d.ts +10 -1
- package/lib/typescript/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/build-screen-transition-options.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.d.ts +2 -1
- package/lib/typescript/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/helpers/selected-interpolator-options.d.ts.map +1 -1
- package/lib/typescript/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pan/behavior/pan-release.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/pinch/behavior/pinch-release.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/shared/policy.d.ts +2 -1
- package/lib/typescript/providers/screen/gestures/shared/policy.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/shared/snap-points.d.ts +11 -0
- package/lib/typescript/providers/screen/gestures/shared/snap-points.d.ts.map +1 -1
- package/lib/typescript/providers/screen/gestures/types.d.ts +2 -0
- package/lib/typescript/providers/screen/gestures/types.d.ts.map +1 -1
- package/lib/typescript/providers/screen/options/helpers.d.ts.map +1 -1
- package/lib/typescript/providers/screen/options/types.d.ts +1 -0
- package/lib/typescript/providers/screen/options/types.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/constants.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/hooks/slot-resolvers.d.ts.map +1 -1
- package/lib/typescript/providers/screen/styles/slot.provider.d.ts +11 -2
- package/lib/typescript/providers/screen/styles/slot.provider.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/build-blank-stack-state.d.ts +3 -3
- package/lib/typescript/providers/stack/blank-stack-state/helpers/build-blank-stack-state.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.d.ts +3 -2
- package/lib/typescript/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/state-equality.d.ts +4 -4
- package/lib/typescript/providers/stack/blank-stack-state/helpers/state-equality.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack-state/helpers/types.d.ts +6 -5
- package/lib/typescript/providers/stack/blank-stack-state/helpers/types.d.ts.map +1 -1
- package/lib/typescript/providers/stack/blank-stack.provider.d.ts +3 -1
- package/lib/typescript/providers/stack/blank-stack.provider.d.ts.map +1 -1
- package/lib/typescript/types/animation.types.d.ts +16 -12
- package/lib/typescript/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/types/blank-stack.types.d.ts +2 -23
- package/lib/typescript/types/blank-stack.types.d.ts.map +1 -1
- package/lib/typescript/types/index.d.ts +2 -2
- package/lib/typescript/types/index.d.ts.map +1 -1
- package/lib/typescript/types/providers/blank-stack-provider.types.d.ts +8 -6
- package/lib/typescript/types/providers/blank-stack-provider.types.d.ts.map +1 -1
- package/lib/typescript/types/screen.types.d.ts +50 -0
- package/lib/typescript/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/utils/create-provider.d.ts +4 -1
- package/lib/typescript/utils/create-provider.d.ts.map +1 -1
- package/package.json +3 -8
- package/src/components/boundary/create-boundary-component.tsx +10 -2
- package/src/components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts +89 -0
- package/src/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +97 -14
- package/src/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +2 -6
- package/src/components/boundary/portal/teleport.ts +2 -23
- package/src/components/boundary/utils/source-signals.ts +6 -4
- package/src/components/overlay/helpers/get-active-overlay.ts +4 -36
- package/src/components/overlay/helpers/retain-ready-overlay-resources.ts +10 -1
- package/src/components/overlay/hooks/use-overlay-slot.ts +1 -5
- package/src/components/overlay/variations/float-overlay.tsx +9 -12
- package/src/components/overlay/variations/overlay-host.tsx +24 -22
- package/src/components/screen-container/layers/content.tsx +12 -7
- package/src/components/screen-container/layers/surface.tsx +65 -0
- package/src/components/stack-view.tsx +8 -39
- package/src/configs/index.ts +0 -6
- package/src/configs/presets.ts +0 -447
- package/src/constants.ts +2 -0
- package/src/index.ts +4 -1
- package/src/navigators/create-blank-stack-navigator.tsx +16 -124
- package/src/navigators/expo-router/index.tsx +0 -23
- package/src/navigators/react-navigation/index.tsx +0 -3
- package/src/providers/screen/animation/animation.provider.tsx +60 -54
- package/src/providers/screen/animation/helpers/build-screen-transition-options.ts +1 -0
- package/src/providers/screen/animation/helpers/hydrate-transition-state/gesture-progress.ts +26 -0
- package/src/providers/screen/animation/helpers/hydrate-transition-state/index.ts +20 -0
- package/src/providers/screen/animation/helpers/selected-interpolator-options.ts +1 -0
- package/src/providers/screen/animation/use-screen-animation.tsx +2 -14
- package/src/providers/screen/gestures/pan/behavior/pan-release.ts +46 -7
- package/src/providers/screen/gestures/pinch/behavior/pinch-release.ts +45 -4
- package/src/providers/screen/gestures/shared/policy.ts +4 -0
- package/src/providers/screen/gestures/shared/snap-points.ts +87 -0
- package/src/providers/screen/gestures/types.ts +2 -0
- package/src/providers/screen/options/helpers.ts +18 -0
- package/src/providers/screen/options/types.ts +1 -0
- package/src/providers/screen/styles/constants.ts +2 -1
- package/src/providers/screen/styles/hooks/slot-resolvers.tsx +2 -17
- package/src/providers/screen/styles/slot.provider.tsx +2 -1
- package/src/providers/stack/blank-stack-state/helpers/build-blank-stack-state.ts +30 -12
- package/src/providers/stack/blank-stack-state/helpers/derive-blank-stack-state.ts +11 -3
- package/src/providers/stack/blank-stack-state/helpers/reconcile-blank-stack-routes.ts +2 -2
- package/src/providers/stack/blank-stack-state/helpers/state-equality.ts +27 -16
- package/src/providers/stack/blank-stack-state/helpers/types.ts +9 -4
- package/src/types/animation.types.ts +16 -13
- package/src/types/blank-stack.types.ts +1 -29
- package/src/types/index.ts +4 -1
- package/src/types/providers/blank-stack-provider.types.ts +14 -11
- package/src/types/screen.types.ts +57 -0
- package/src/utils/create-provider.tsx +22 -4
- package/lib/commonjs/components/boundary/portal/utils/teleport-control.js +0 -16
- package/lib/commonjs/components/boundary/portal/utils/teleport-control.js.map +0 -1
- package/lib/commonjs/providers/navigation/navigation-host.provider.js +0 -56
- package/lib/commonjs/providers/navigation/navigation-host.provider.js.map +0 -1
- package/lib/commonjs/providers/navigation/react-navigation-host.js +0 -23
- package/lib/commonjs/providers/navigation/react-navigation-host.js.map +0 -1
- package/lib/module/components/boundary/portal/utils/teleport-control.js +0 -11
- package/lib/module/components/boundary/portal/utils/teleport-control.js.map +0 -1
- package/lib/module/providers/navigation/navigation-host.provider.js +0 -50
- package/lib/module/providers/navigation/navigation-host.provider.js.map +0 -1
- package/lib/module/providers/navigation/react-navigation-host.js +0 -19
- package/lib/module/providers/navigation/react-navigation-host.js.map +0 -1
- package/lib/typescript/components/boundary/portal/utils/teleport-control.d.ts +0 -3
- package/lib/typescript/components/boundary/portal/utils/teleport-control.d.ts.map +0 -1
- package/lib/typescript/providers/navigation/navigation-host.provider.d.ts +0 -21
- package/lib/typescript/providers/navigation/navigation-host.provider.d.ts.map +0 -1
- package/lib/typescript/providers/navigation/react-navigation-host.d.ts +0 -3
- package/lib/typescript/providers/navigation/react-navigation-host.d.ts.map +0 -1
- package/src/components/boundary/portal/utils/teleport-control.ts +0 -13
- package/src/providers/navigation/navigation-host.provider.tsx +0 -75
- package/src/providers/navigation/react-navigation-host.tsx +0 -24
package/README.md
CHANGED
|
@@ -11,8 +11,8 @@ Customizable screen transitions for React Native. Build gesture-driven, shared e
|
|
|
11
11
|
- Full animation control for screen enter, exit, and gesture-driven states.
|
|
12
12
|
- Shared element and fullscreen navigation zoom transitions through the Bounds API.
|
|
13
13
|
- Snap-point sheets with gesture-aware `ScrollView` and `FlatList` coordination.
|
|
14
|
-
- Transition slots for content, backdrop,
|
|
15
|
-
- Built-in presets for common
|
|
14
|
+
- Transition slots for content, backdrop, and custom tagged elements.
|
|
15
|
+
- Built-in presets for common slide, scale, and card transitions.
|
|
16
16
|
- Blank stack, native stack, and Expo Router integration.
|
|
17
17
|
- Written in TypeScript.
|
|
18
18
|
|
|
@@ -28,20 +28,15 @@ Install peer dependencies:
|
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
30
|
npm install react-native-reanimated react-native-gesture-handler \
|
|
31
|
-
@react-navigation/native
|
|
32
|
-
|
|
33
|
-
react-native-safe-area-context
|
|
31
|
+
@react-navigation/native react-native-safe-area-context \
|
|
32
|
+
react-native-worklets
|
|
34
33
|
```
|
|
35
34
|
|
|
36
35
|
See [the documentation site](https://screen-transitions.esjr.org).
|
|
37
36
|
|
|
38
|
-
##
|
|
37
|
+
## Requirements
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
| Line | Reanimated | React Native Gesture Handler |
|
|
43
|
-
| ---- | ---------- | ---------------------------- |
|
|
44
|
-
| v3 (current) | v3, v4 | v2 |
|
|
39
|
+
Version 4 requires React 19.2 or later, React Navigation 7.3 or later, Reanimated 4, Worklets 0.8 or later, and React Native Gesture Handler 2.16.1 or later.
|
|
45
40
|
|
|
46
41
|
## Author
|
|
47
42
|
|
|
@@ -72,7 +72,11 @@ function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
72
72
|
boundaryId: root.boundTag.tag,
|
|
73
73
|
enabled: root.shouldRenderHandoffHost,
|
|
74
74
|
screenKey: root.currentScreenKey,
|
|
75
|
-
children:
|
|
75
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryContentPortal.BoundaryContentPortal, {
|
|
76
|
+
boundaryId: root.boundTag.tag,
|
|
77
|
+
enabled: root.shouldRenderHandoffHost,
|
|
78
|
+
children: targetResolution.children
|
|
79
|
+
})
|
|
76
80
|
})
|
|
77
81
|
})
|
|
78
82
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireDefault","_boundaryTarget","_boundaryContentPortal","_boundaryPortal","_boundaryRoot","_resolveBoundaryTarget","_jsxRuntime","e","__esModule","default","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","forwardedRef","enabled","group","id","anchor","scaleMode","target","method","style","handoff","escapeClipping","children","rest","targetResolution","useMemo","resolveBoundaryTarget","isTarget","element","type","BoundaryTarget","mapTarget","selected","cloneElement","BOUNDARY_TARGET_ACTIVE_PROP","targetStyle","jsx","BoundaryRootProvider","config","hasTarget","targetCount","root","BoundaryPortal","boundaryId","boundTag","tag","shouldRenderBoundaryRootThroughPortal","placeholderRef","measurementRef","ref","attachedStyle","collapsable","BoundaryContentPortalHost","shouldRenderHandoffHost","screenKey","currentScreenKey","memo"],"sourceRoot":"../../../../src","sources":["components/boundary/create-boundary-component.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,sBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAIA,IAAAI,sBAAA,GAAAJ,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireDefault","_boundaryTarget","_boundaryContentPortal","_boundaryPortal","_boundaryRoot","_resolveBoundaryTarget","_jsxRuntime","e","__esModule","default","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","forwardedRef","enabled","group","id","anchor","scaleMode","target","method","style","handoff","escapeClipping","children","rest","targetResolution","useMemo","resolveBoundaryTarget","isTarget","element","type","BoundaryTarget","mapTarget","selected","cloneElement","BOUNDARY_TARGET_ACTIVE_PROP","targetStyle","jsx","BoundaryRootProvider","config","hasTarget","targetCount","root","BoundaryPortal","boundaryId","boundTag","tag","shouldRenderBoundaryRootThroughPortal","placeholderRef","measurementRef","ref","attachedStyle","collapsable","BoundaryContentPortalHost","shouldRenderHandoffHost","screenKey","currentScreenKey","BoundaryContentPortal","memo"],"sourceRoot":"../../../../src","sources":["components/boundary/create-boundary-component.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,sBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAIA,IAAAI,sBAAA,GAAAJ,OAA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,CAACY,uBAAwB;cAAA/B,QAAA,EAErCE,gBAAgB,CAACF;YAAQ,CACJ;UAAC,CACE;QAAC,CACV;MAAC,CACL;IAChB,CACoB,CAAC;EAEzB,CAAC,CAAC;;EAEF;EACA;EACA,oBAAO,IAAAmC,WAAI,EAACjD,KAAK,CAAC;AAMnB","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.resolvePreviousHandoffReceiver = exports.resolveHandoffAttachmentCandidate = exports.resolveActiveHandoffReceiver = void 0;
|
|
6
|
+
exports.resolveRequestedHandoffReceiver = exports.resolveRequestedHandoffPairKey = exports.resolvePreviousHandoffReceiver = exports.resolveHandoffAttachmentCandidate = exports.resolveActiveHandoffReceiver = void 0;
|
|
7
7
|
const resolveActiveHandoffReceiver = ({
|
|
8
8
|
focusedIndex,
|
|
9
9
|
routes,
|
|
@@ -45,13 +45,21 @@ const resolveHandoffAttachmentCandidate = ({
|
|
|
45
45
|
interpolatorReady,
|
|
46
46
|
pairChangedDuringClose = false,
|
|
47
47
|
pairDestinationScreenKey,
|
|
48
|
+
pairHasBoundaryLink,
|
|
48
49
|
previousReceiverScreenKey
|
|
49
50
|
}) => {
|
|
50
51
|
"worklet";
|
|
51
52
|
|
|
53
|
+
const currentPairHasBoundaryLink = pairHasBoundaryLink ?? pairDestinationScreenKey !== null;
|
|
54
|
+
if (activeReceiverClosing && attachedReceiverScreenKey !== activeReceiverScreenKey && !currentPairHasBoundaryLink) {
|
|
55
|
+
return attachedReceiverScreenKey;
|
|
56
|
+
}
|
|
52
57
|
if (activeReceiverClosing && interpolatorReady && pairDestinationScreenKey && pairChangedDuringClose) {
|
|
53
58
|
return pairDestinationScreenKey;
|
|
54
59
|
}
|
|
60
|
+
if (activeReceiverClosing && pairChangedDuringClose && !currentPairHasBoundaryLink) {
|
|
61
|
+
return hasActiveCloseFinished ? previousReceiverScreenKey : attachedReceiverScreenKey;
|
|
62
|
+
}
|
|
55
63
|
if (hasActiveCloseFinished && attachedReceiverScreenKey === activeReceiverScreenKey) {
|
|
56
64
|
return previousReceiverScreenKey;
|
|
57
65
|
}
|
|
@@ -64,4 +72,48 @@ const resolveHandoffAttachmentCandidate = ({
|
|
|
64
72
|
return activeReceiverScreenKey;
|
|
65
73
|
};
|
|
66
74
|
exports.resolveHandoffAttachmentCandidate = resolveHandoffAttachmentCandidate;
|
|
75
|
+
const resolveRequestedHandoffReceiver = ({
|
|
76
|
+
automaticScreenKey,
|
|
77
|
+
destinationReady = true,
|
|
78
|
+
destinationScreenKey,
|
|
79
|
+
handoffTarget,
|
|
80
|
+
sourceScreenKey
|
|
81
|
+
}) => {
|
|
82
|
+
"worklet";
|
|
83
|
+
|
|
84
|
+
if (handoffTarget === "source") {
|
|
85
|
+
return sourceScreenKey;
|
|
86
|
+
}
|
|
87
|
+
if (handoffTarget === "destination") {
|
|
88
|
+
return destinationReady ? destinationScreenKey : automaticScreenKey;
|
|
89
|
+
}
|
|
90
|
+
return automaticScreenKey;
|
|
91
|
+
};
|
|
92
|
+
exports.resolveRequestedHandoffReceiver = resolveRequestedHandoffReceiver;
|
|
93
|
+
const resolveRequestedHandoffPairKey = ({
|
|
94
|
+
destinationPairHasCompleteLink,
|
|
95
|
+
destinationPairKey,
|
|
96
|
+
handoffTarget,
|
|
97
|
+
retainedSourcePairHasCompleteLink,
|
|
98
|
+
retainedSourcePairKey,
|
|
99
|
+
sourcePairHasCompleteLink,
|
|
100
|
+
sourcePairKey
|
|
101
|
+
}) => {
|
|
102
|
+
"worklet";
|
|
103
|
+
|
|
104
|
+
if (handoffTarget === "source" || handoffTarget === "destination") {
|
|
105
|
+
if (sourcePairHasCompleteLink) {
|
|
106
|
+
return sourcePairKey;
|
|
107
|
+
}
|
|
108
|
+
if (destinationPairHasCompleteLink) {
|
|
109
|
+
return destinationPairKey;
|
|
110
|
+
}
|
|
111
|
+
if (retainedSourcePairHasCompleteLink) {
|
|
112
|
+
return retainedSourcePairKey;
|
|
113
|
+
}
|
|
114
|
+
return sourcePairKey ?? destinationPairKey ?? retainedSourcePairKey;
|
|
115
|
+
}
|
|
116
|
+
return sourcePairKey;
|
|
117
|
+
};
|
|
118
|
+
exports.resolveRequestedHandoffPairKey = resolveRequestedHandoffPairKey;
|
|
67
119
|
//# sourceMappingURL=active-handoff-receiver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["resolveActiveHandoffReceiver","focusedIndex","routes","scenes","index","length","scene","activity","route","key","exports","resolvePreviousHandoffReceiver","previousIndex","previousScene","resolveHandoffAttachmentCandidate","activeReceiverClosing","activeReceiverScreenKey","attachedReceiverScreenKey","hasActiveCloseFinished","interpolatorReady","pairChangedDuringClose","pairDestinationScreenKey","previousReceiverScreenKey"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["resolveActiveHandoffReceiver","focusedIndex","routes","scenes","index","length","scene","activity","route","key","exports","resolvePreviousHandoffReceiver","previousIndex","previousScene","resolveHandoffAttachmentCandidate","activeReceiverClosing","activeReceiverScreenKey","attachedReceiverScreenKey","hasActiveCloseFinished","interpolatorReady","pairChangedDuringClose","pairDestinationScreenKey","pairHasBoundaryLink","previousReceiverScreenKey","currentPairHasBoundaryLink","resolveRequestedHandoffReceiver","automaticScreenKey","destinationReady","destinationScreenKey","handoffTarget","sourceScreenKey","resolveRequestedHandoffPairKey","destinationPairHasCompleteLink","destinationPairKey","retainedSourcePairHasCompleteLink","retainedSourcePairKey","sourcePairHasCompleteLink","sourcePairKey"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-content-portal/helpers/active-handoff-receiver.ts"],"mappings":";;;;;;AAkBO,MAAMA,4BAA4B,GAAGA,CAAC;EAC5CC,YAAY;EACZC,MAAM;EACNC;AACmC,CAAC,KAAoB;EACxD,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iC;EACjCC,qBAAqB;EACrBC,yBAAyB;EACzBC;AASD,CAAC,KAAK;EACL,SAAS;;EAET,IAAIR,aAAa,KAAK,QAAQ,IAAIA,aAAa,KAAK,aAAa,EAAE;IAClE,IAAIO,yBAAyB,EAAE;MAC9B,OAAOC,aAAa;IACrB;IAEA,IAAIL,8BAA8B,EAAE;MACnC,OAAOC,kBAAkB;IAC1B;IAEA,IAAIC,iCAAiC,EAAE;MACtC,OAAOC,qBAAqB;IAC7B;IAEA,OAAOE,aAAa,IAAIJ,kBAAkB,IAAIE,qBAAqB;EACpE;EAEA,OAAOE,aAAa;AACrB,CAAC;AAAC3B,OAAA,CAAAqB,8BAAA,GAAAA,8BAAA","ignoreList":[]}
|
|
@@ -12,12 +12,17 @@ var _blankStack = require("../../../../../../providers/stack/blank-stack.provide
|
|
|
12
12
|
var _animation = require("../../../../../../stores/animation.store");
|
|
13
13
|
var _linkPairs = require("../../../../../../stores/bounds/helpers/link-pairs.helpers");
|
|
14
14
|
var _entries = require("../../../../../../stores/bounds/internals/entries");
|
|
15
|
+
var _links = require("../../../../../../stores/bounds/internals/links");
|
|
15
16
|
var _state = require("../../../../../../stores/bounds/internals/state");
|
|
16
17
|
var _system = require("../../../../../../stores/system.store");
|
|
17
18
|
var _naming = require("../../../utils/naming");
|
|
18
|
-
var _teleportControl = require("../../../utils/teleport-control");
|
|
19
19
|
var _activeHandoffReceiver = require("../helpers/active-handoff-receiver");
|
|
20
20
|
var _hostName = require("../helpers/host-name");
|
|
21
|
+
const isCompleteActiveLink = (pair, link, boundaryLinkKey) => {
|
|
22
|
+
"worklet";
|
|
23
|
+
|
|
24
|
+
return link?.status === "complete" && (!link.group || pair?.groups[link.group]?.activeId === boundaryLinkKey);
|
|
25
|
+
};
|
|
21
26
|
const useBoundaryContentPortalAttachment = ({
|
|
22
27
|
boundaryId
|
|
23
28
|
}) => {
|
|
@@ -25,6 +30,7 @@ const useBoundaryContentPortalAttachment = ({
|
|
|
25
30
|
const currentScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.currentScreenKey);
|
|
26
31
|
const nextScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.nextScreenKey);
|
|
27
32
|
const sourcePairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.sourcePairKey);
|
|
33
|
+
const destinationPairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.destinationPairKey);
|
|
28
34
|
const destinationSlots = (0, _styles.useOptionalScreenSlotStore)(nextScreenKey ?? currentScreenKey);
|
|
29
35
|
const unavailableInterpolatorReady = (0, _reactNativeReanimated.useSharedValue)(0);
|
|
30
36
|
const interpolatorReady = destinationSlots?.interpolatorReady ?? unavailableInterpolatorReady;
|
|
@@ -40,10 +46,9 @@ const useBoundaryContentPortalAttachment = ({
|
|
|
40
46
|
const slot = slotsMap.get()[boundaryId];
|
|
41
47
|
const {
|
|
42
48
|
pointerEvents: _pointerEvents,
|
|
43
|
-
|
|
49
|
+
handoffTarget,
|
|
44
50
|
...slotProps
|
|
45
51
|
} = slot?.props ?? {};
|
|
46
|
-
const shouldTeleport = (0, _teleportControl.isTeleportEnabled)(teleport);
|
|
47
52
|
const closing = activeReceiverClosing.get();
|
|
48
53
|
const animationProgress = activeReceiverAnimationProgress.get();
|
|
49
54
|
if (!closing) {
|
|
@@ -54,12 +59,33 @@ const useBoundaryContentPortalAttachment = ({
|
|
|
54
59
|
closing,
|
|
55
60
|
animationProgress
|
|
56
61
|
});
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
62
|
+
const automaticPair = sourcePairKey ? _state.pairs.get()[sourcePairKey] : null;
|
|
63
|
+
const boundaryLinkKey = (0, _linkPairs.getLinkKeyFromTag)(boundaryId);
|
|
64
|
+
const automaticLink = automaticPair?.links[boundaryLinkKey];
|
|
65
|
+
const requestedSourcePairKey = (0, _links.getPairKeyForSource)(boundaryId, currentScreenKey) ?? sourcePairKey;
|
|
66
|
+
const requestedSourcePair = requestedSourcePairKey ? _state.pairs.get()[requestedSourcePairKey] : null;
|
|
67
|
+
const requestedSourceLink = requestedSourcePair?.links[boundaryLinkKey];
|
|
68
|
+
const pairDestination = automaticLink?.status === "complete" && (!automaticLink.group || automaticPair?.groups[automaticLink.group]?.activeId === boundaryLinkKey) ? automaticLink.destination.screenKey : null;
|
|
69
|
+
const requestedDestinationPairKey = (0, _links.getPairKeyForDestination)(boundaryId, currentScreenKey) ?? destinationPairKey;
|
|
70
|
+
const destinationPair = requestedDestinationPairKey ? _state.pairs.get()[requestedDestinationPairKey] : null;
|
|
71
|
+
const destinationLink = destinationPair?.links[boundaryLinkKey];
|
|
72
|
+
const retainedSourcePairKey = sourcePairBeforeClose.get() ?? undefined;
|
|
73
|
+
const retainedSourcePair = retainedSourcePairKey ? _state.pairs.get()[retainedSourcePairKey] : null;
|
|
74
|
+
const retainedSourceLink = retainedSourcePair?.links[boundaryLinkKey];
|
|
75
|
+
const requestedPairKey = (0, _activeHandoffReceiver.resolveRequestedHandoffPairKey)({
|
|
76
|
+
destinationPairHasCompleteLink: isCompleteActiveLink(destinationPair, destinationLink, boundaryLinkKey),
|
|
77
|
+
destinationPairKey: requestedDestinationPairKey,
|
|
78
|
+
handoffTarget,
|
|
79
|
+
retainedSourcePairHasCompleteLink: isCompleteActiveLink(retainedSourcePair, retainedSourceLink, boundaryLinkKey),
|
|
80
|
+
retainedSourcePairKey,
|
|
81
|
+
sourcePairHasCompleteLink: isCompleteActiveLink(requestedSourcePair, requestedSourceLink, boundaryLinkKey),
|
|
82
|
+
sourcePairKey: requestedSourcePairKey
|
|
83
|
+
});
|
|
84
|
+
const requestedPair = requestedPairKey ? _state.pairs.get()[requestedPairKey] : null;
|
|
85
|
+
const requestedLink = requestedPair?.links[boundaryLinkKey];
|
|
60
86
|
const isInterpolatorReady = interpolatorReady.get();
|
|
61
87
|
const attachedScreenKey = attachedReceiverScreenKey.get();
|
|
62
|
-
const
|
|
88
|
+
const automaticReceiverScreenKey = (0, _activeHandoffReceiver.resolveHandoffAttachmentCandidate)({
|
|
63
89
|
activeReceiverClosing: !!closing,
|
|
64
90
|
activeReceiverScreenKey,
|
|
65
91
|
attachedReceiverScreenKey: attachedScreenKey,
|
|
@@ -67,8 +93,17 @@ const useBoundaryContentPortalAttachment = ({
|
|
|
67
93
|
interpolatorReady: !!isInterpolatorReady,
|
|
68
94
|
pairChangedDuringClose,
|
|
69
95
|
pairDestinationScreenKey: pairDestination,
|
|
96
|
+
pairHasBoundaryLink: automaticLink !== undefined,
|
|
70
97
|
previousReceiverScreenKey
|
|
71
98
|
});
|
|
99
|
+
const requestedDestinationScreenKey = requestedLink?.status === "complete" ? requestedLink.destination.screenKey : null;
|
|
100
|
+
const nextReceiverScreenKey = (0, _activeHandoffReceiver.resolveRequestedHandoffReceiver)({
|
|
101
|
+
automaticScreenKey: automaticReceiverScreenKey,
|
|
102
|
+
destinationReady: requestedDestinationScreenKey === activeReceiverScreenKey || !!isInterpolatorReady,
|
|
103
|
+
destinationScreenKey: requestedDestinationScreenKey,
|
|
104
|
+
handoffTarget,
|
|
105
|
+
sourceScreenKey: requestedLink?.status === "complete" ? requestedLink.source.screenKey : null
|
|
106
|
+
});
|
|
72
107
|
const receiverEntry = nextReceiverScreenKey ? (0, _entries.getEntry)(boundaryId, nextReceiverScreenKey) : null;
|
|
73
108
|
const receiverReady = receiverEntry?.handoff === true;
|
|
74
109
|
const returningFromActiveClose = hasActiveCloseFinished && attachedScreenKey === activeReceiverScreenKey;
|
|
@@ -77,7 +112,7 @@ const useBoundaryContentPortalAttachment = ({
|
|
|
77
112
|
if (nextReceiverScreenKey && receiverReady && canActivateReceiver) {
|
|
78
113
|
attachedReceiverScreenKey.set(nextReceiverScreenKey);
|
|
79
114
|
}
|
|
80
|
-
const targetScreenKey =
|
|
115
|
+
const targetScreenKey = attachedReceiverScreenKey.get();
|
|
81
116
|
const targetHostName = targetScreenKey ? (0, _hostName.createBoundaryContentPortalHostName)(targetScreenKey, boundaryId) : _naming.PORTAL_HOST_NAME_RESET_VALUE;
|
|
82
117
|
return {
|
|
83
118
|
...slotProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_descriptors","_styles","_transitionVisualState","_blankStack","_animation","_linkPairs","_entries","_state","_system","_naming","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_descriptors","_styles","_transitionVisualState","_blankStack","_animation","_linkPairs","_entries","_links","_state","_system","_naming","_activeHandoffReceiver","_hostName","isCompleteActiveLink","pair","link","boundaryLinkKey","status","group","groups","activeId","useBoundaryContentPortalAttachment","boundaryId","slotsMap","useScreenSlotStore","store","currentScreenKey","useDescriptorsStore","s","derivations","nextScreenKey","sourcePairKey","destinationPairKey","destinationSlots","useOptionalScreenSlotStore","unavailableInterpolatorReady","useSharedValue","interpolatorReady","activeReceiverScreenKey","useBlankStackStore","resolveActiveHandoffReceiver","previousReceiverScreenKey","resolvePreviousHandoffReceiver","activeReceiverAnimationProgress","SystemStore","getValue","activeReceiverClosing","AnimationStore","attachedReceiverScreenKey","sourcePairBeforeClose","teleportProps","useAnimatedProps","slot","get","pointerEvents","_pointerEvents","handoffTarget","slotProps","props","closing","animationProgress","set","pairChangedDuringClose","hasActiveCloseFinished","hasCloseTransitionFinished","automaticPair","pairs","getLinkKeyFromTag","automaticLink","links","requestedSourcePairKey","getPairKeyForSource","requestedSourcePair","requestedSourceLink","pairDestination","destination","screenKey","requestedDestinationPairKey","getPairKeyForDestination","destinationPair","destinationLink","retainedSourcePairKey","undefined","retainedSourcePair","retainedSourceLink","requestedPairKey","resolveRequestedHandoffPairKey","destinationPairHasCompleteLink","retainedSourcePairHasCompleteLink","sourcePairHasCompleteLink","requestedPair","requestedLink","isInterpolatorReady","attachedScreenKey","automaticReceiverScreenKey","resolveHandoffAttachmentCandidate","pairDestinationScreenKey","pairHasBoundaryLink","requestedDestinationScreenKey","nextReceiverScreenKey","resolveRequestedHandoffReceiver","automaticScreenKey","destinationReady","destinationScreenKey","sourceScreenKey","source","receiverEntry","getEntry","receiverReady","handoff","returningFromActiveClose","activatingPairDestination","canActivateReceiver","targetScreenKey","targetHostName","createBoundaryContentPortalHostName","PORTAL_HOST_NAME_RESET_VALUE","hostName","exports"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAIA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AAIA,IAAAS,MAAA,GAAAT,OAAA;AAKA,IAAAU,OAAA,GAAAV,OAAA;AACA,IAAAW,OAAA,GAAAX,OAAA;AACA,IAAAY,sBAAA,GAAAZ,OAAA;AAOA,IAAAa,SAAA,GAAAb,OAAA;AAMA,MAAMc,oBAAoB,GAAGA,CAC5BC,IAAsC,EACtCC,IAAyB,EACzBC,eAAuB,KACnB;EACJ,SAAS;;EAET,OACCD,IAAI,EAAEE,MAAM,KAAK,UAAU,KAC1B,CAACF,IAAI,CAACG,KAAK,IAAIJ,IAAI,EAAEK,MAAM,CAACJ,IAAI,CAACG,KAAK,CAAC,EAAEE,QAAQ,KAAKJ,eAAe,CAAC;AAEzE,CAAC;AAEM,MAAMK,kCAAkC,GAAGA,CAAC;EAClDC;AACyC,CAAC,KAAK;EAC/C,MAAMC,QAAQ,GAAG,IAAAC,0BAAkB,EAAEC,KAAK,IAAKA,KAAK,CAACF,QAAQ,CAAC;EAE9D,MAAMG,gBAAgB,GAAG,IAAAC,gCAAmB,EAC1CC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACH,gBACtB,CAAC;EACD,MAAMI,aAAa,GAAG,IAAA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GAAGjE,yBAAyB,CAACK,GAAG,CAAC,CAAC;IAEvD,MAAM6D,cAAc,GAAGD,eAAe,GACnC,IAAAE,6CAAmC,EAACF,eAAe,EAAE3F,UAAU,CAAC,GAChE8F,oCAA4B;IAE/B,OAAO;MACN,GAAG3D,SAAS;MACZ4D,QAAQ,EAAEH;IACX,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IAAEhE;EAAc,CAAC;AACzB,CAAC;AAACoE,OAAA,CAAAjG,kCAAA,GAAAA,kCAAA","ignoreList":[]}
|
|
@@ -9,7 +9,6 @@ var _descriptors = require("../../../../../../providers/screen/descriptors");
|
|
|
9
9
|
var _styles = require("../../../../../../providers/screen/styles");
|
|
10
10
|
var _boundaryRoot = require("../../../../providers/boundary-root.provider");
|
|
11
11
|
var _naming = require("../../../utils/naming");
|
|
12
|
-
var _teleportControl = require("../../../utils/teleport-control");
|
|
13
12
|
var _hostRegistry = require("../stores/host-registry.store");
|
|
14
13
|
var _useActivePortalBoundaryHost = require("./use-active-portal-boundary-host");
|
|
15
14
|
const useBoundaryPortalAttachment = ({
|
|
@@ -41,10 +40,10 @@ const useBoundaryPortalAttachment = ({
|
|
|
41
40
|
const slot = slotsMap.get()[boundaryId];
|
|
42
41
|
const {
|
|
43
42
|
pointerEvents: _pointerEvents,
|
|
44
|
-
|
|
43
|
+
handoffTarget: _handoffTarget,
|
|
45
44
|
...slotProps
|
|
46
45
|
} = slot?.props ?? {};
|
|
47
|
-
const shouldAttach = slot !== undefined &&
|
|
46
|
+
const shouldAttach = slot !== undefined && portalHostReady.get();
|
|
48
47
|
const hostName = shouldAttach ? portalHostName.get() : _naming.PORTAL_HOST_NAME_RESET_VALUE;
|
|
49
48
|
return {
|
|
50
49
|
...slotProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_descriptors","_styles","_boundaryRoot","_naming","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_descriptors","_styles","_boundaryRoot","_naming","_hostRegistry","_useActivePortalBoundaryHost","useBoundaryPortalAttachment","boundaryId","localMeasurement","useBoundaryRootStore","root","Error","currentScreenKey","useDescriptorsStore","s","derivations","slotsMap","useScreenSlotStore","store","portalHostName","useSharedValue","portalHostReady","escapeHostKey","useActiveHostKey","useActivePortalBoundaryHost","teleportProps","useAnimatedProps","slot","get","pointerEvents","_pointerEvents","handoffTarget","_handoffTarget","slotProps","props","shouldAttach","undefined","hostName","PORTAL_HOST_NAME_RESET_VALUE","exports"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,4BAAA,GAAAN,OAAA;AAMO,MAAMO,2BAA2B,GAAGA,CAAC;EAC3CC;AACkC,CAAC,KAAK;EACxC,MAAMC,gBAAgB,GAAG,IAAAC,kCAAoB,EAAEC,IAAI,IAAK;IACvD,IAAI,CAACA,IAAI,EAAE;MACV,MAAM,IAAIC,KAAK,CAAC,sDAAsD,CAAC;IACxE;IAEA,OAAOD,IAAI,CAACF,gBAAgB;EAC7B,CAAC,CAAC;EACF,MAAMI,gBAAgB,GAAG,IAAAC,gCAAmB,EAC1CC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACH,gBACtB,CAAC;EACD,MAAMI,QAAQ,GAAG,IAAAC,0BAAkB,EAAEC,KAAK,IAAKA,KAAK,CAACF,QAAQ,CAAC;EAC9D,MAAMG,cAAc,GAAG,IAAAC,qCAAc,EAAgB,IAAI,CAAC;EAC1D,MAAMC,eAAe,GAAG,IAAAD,qCAAc,EAAC,KAAK,CAAC;EAC7C,MAAME,aAAa,GAAG,IAAAC,8BAAgB,EAACX,gBAAgB,CAAC;EAExD,IAAAY,wDAA2B,EAAC;IAC3BjB,UAAU;IACVK,gBAAgB;IAChBU,aAAa;IACbd,gBAAgB;IAChBW,cAAc;IACdE,eAAe;IACfL;EACD,CAAC,CAAC;EAEF,MAAMS,aAAa,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAC5C,SAAS;;IAET,MAAMC,IAAI,GAAGX,QAAQ,CAACY,GAAG,CAAC,CAAC,CAACrB,UAAU,CAAC;IACvC,MAAM;MACLsB,aAAa,EAAEC,cAAc;MAC7BC,aAAa,EAAEC,cAAc;MAC7B,GAAGC;IACJ,CAAC,GAAGN,IAAI,EAAEO,KAAK,IAAI,CAAC,CAAC;IAErB,MAAMC,YAAY,GAAGR,IAAI,KAAKS,SAAS,IAAIf,eAAe,CAACO,GAAG,CAAC,CAAC;IAEhE,MAAMS,QAAQ,GAAGF,YAAY,GAC1BhB,cAAc,CAACS,GAAG,CAAC,CAAC,GACpBU,oCAA4B;IAE/B,OAAO;MACN,GAAGL,SAAS;MACZI;IACD,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IAAEZ;EAAc,CAAC;AACzB,CAAC;AAACc,OAAA,CAAAjC,2BAAA,GAAAA,2BAAA","ignoreList":[]}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.isTeleportAvailable = exports.PORTAL_POINTER_EVENTS = exports.NativePortalProvider = exports.NativePortalHost = exports.NativePortal = void 0;
|
|
7
|
-
var _react = require("react");
|
|
8
7
|
/**
|
|
9
8
|
* `react-native-teleport` is an optional peer dependency. The require sits in a
|
|
10
9
|
* try/catch so Metro treats it as an optional dependency — an absent module no
|
|
@@ -14,21 +13,10 @@ var _react = require("react");
|
|
|
14
13
|
* inline rendering; everything else keeps working.
|
|
15
14
|
*/
|
|
16
15
|
let mod = null;
|
|
17
|
-
let managerMod = null;
|
|
18
|
-
let providerViewMod = null;
|
|
19
16
|
try {
|
|
20
17
|
mod = require("react-native-teleport");
|
|
21
|
-
managerMod = require("react-native-teleport/lib/module/contexts/PortalManager");
|
|
22
|
-
providerViewMod = require("react-native-teleport/lib/module/views/PortalProvider");
|
|
23
18
|
} catch {}
|
|
24
|
-
const
|
|
25
|
-
const PortalManagerProvider = managerMod?.PortalManagerProvider ?? null;
|
|
26
|
-
const SafeNativePortalProvider = PortalManagerProvider ? ({
|
|
27
|
-
children
|
|
28
|
-
}) => {
|
|
29
|
-
const managedChildren = /*#__PURE__*/(0, _react.createElement)(PortalManagerProvider, null, children);
|
|
30
|
-
return NativePortalProviderView ? /*#__PURE__*/(0, _react.createElement)(NativePortalProviderView, null, managedChildren) : managedChildren;
|
|
31
|
-
} : null;
|
|
19
|
+
const SafeNativePortalProvider = mod?.PortalProvider ?? null;
|
|
32
20
|
const isTeleportAvailable = exports.isTeleportAvailable = mod !== null && SafeNativePortalProvider !== null;
|
|
33
21
|
const PORTAL_POINTER_EVENTS = exports.PORTAL_POINTER_EVENTS = "box-none";
|
|
34
22
|
const NativePortal = exports.NativePortal = mod?.Portal ?? null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["mod","require","SafeNativePortalProvider","PortalProvider","isTeleportAvailable","exports","PORTAL_POINTER_EVENTS","NativePortal","Portal","NativePortalProvider","NativePortalHost","PortalHost"],"sourceRoot":"../../../../../src","sources":["components/boundary/portal/teleport.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIA,GAAQ,GAAG,IAAI;AACnB,IAAI;EACHA,GAAG,GAAGC,OAAO,CAAC,uBAAuB,CAAC;AACvC,CAAC,CAAC,MAAM,CAAC;AAET,MAAMC,wBAAuE,GAC5EF,GAAG,EAAEG,cAAc,IAAI,IAAI;AAErB,MAAMC,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAC/BJ,GAAG,KAAK,IAAI,IAAIE,wBAAwB,KAAK,IAAI;AAC3C,MAAMI,qBAAqB,GAAAD,OAAA,CAAAC,qBAAA,GAAG,UAAmB;AACjD,MAAMC,YAAuC,GAAAF,OAAA,CAAAE,YAAA,GAAGP,GAAG,EAAEQ,MAAM,IAAI,IAAI;AACnE,MAAMC,oBAA+C,GAAAJ,OAAA,CAAAI,oBAAA,GAC3DP,wBAAwB;AAClB,MAAMQ,gBAA2C,GAAAL,OAAA,CAAAK,gBAAA,GACvDV,GAAG,EAAEW,UAAU,IAAI,IAAI","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getInitialSourceCaptureSignal = void 0;
|
|
7
|
+
var _linkPairs = require("../../../stores/bounds/helpers/link-pairs.helpers");
|
|
7
8
|
const SOURCE_SIGNAL_PREFIX = "source|";
|
|
8
9
|
const getInitialSourceCaptureSignal = params => {
|
|
9
10
|
"worklet";
|
|
@@ -19,8 +20,9 @@ const getInitialSourceCaptureSignal = params => {
|
|
|
19
20
|
return null;
|
|
20
21
|
}
|
|
21
22
|
const pair = linkState?.[sourcePairKey];
|
|
22
|
-
const
|
|
23
|
-
const
|
|
23
|
+
const linkKey = (0, _linkPairs.getLinkKeyFromTag)(linkId);
|
|
24
|
+
const link = pair?.links?.[linkKey];
|
|
25
|
+
const hasSourceRequest = pair?.sourceRequests?.[linkKey];
|
|
24
26
|
if (!link?.destination && !hasSourceRequest || link?.source) {
|
|
25
27
|
return null;
|
|
26
28
|
}
|
|
@@ -29,11 +31,11 @@ const getInitialSourceCaptureSignal = params => {
|
|
|
29
31
|
|
|
30
32
|
// Passive grouped sources should not measure every mounted item. Once a
|
|
31
33
|
// group has an active id, only that concrete member can auto-capture.
|
|
32
|
-
if (activeId && activeId !==
|
|
34
|
+
if (activeId && activeId !== linkKey) {
|
|
33
35
|
return null;
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
|
-
const signalParts = group ? [group,
|
|
38
|
+
const signalParts = group ? [group, linkKey] : [linkKey];
|
|
37
39
|
return {
|
|
38
40
|
pairKey: sourcePairKey,
|
|
39
41
|
signal: `${SOURCE_SIGNAL_PREFIX}${sourcePairKey}|${signalParts.join("|")}`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SOURCE_SIGNAL_PREFIX","getInitialSourceCaptureSignal","params","enabled","sourcePairKey","linkId","group","linkState","pair","link","links","hasSourceRequest","sourceRequests","destination","source","activeId","groups","signalParts","pairKey","signal","join","exports"],"sourceRoot":"../../../../../src","sources":["components/boundary/utils/source-signals.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["_linkPairs","require","SOURCE_SIGNAL_PREFIX","getInitialSourceCaptureSignal","params","enabled","sourcePairKey","linkId","group","linkState","pair","linkKey","getLinkKeyFromTag","link","links","hasSourceRequest","sourceRequests","destination","source","activeId","groups","signalParts","pairKey","signal","join","exports"],"sourceRoot":"../../../../../src","sources":["components/boundary/utils/source-signals.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAMA,MAAMC,oBAAoB,GAAG,SAAS;AAO/B,MAAMC,6BAA6B,GAAIC,MAM7C,IAAiC;EACjC,SAAS;;EACT,MAAM;IAAEC,OAAO;IAAEC,aAAa;IAAEC,MAAM;IAAEC,KAAK;IAAEC;EAAU,CAAC,GAAGL,MAAM;EAEnE,IAAI,CAACC,OAAO,IAAI,CAACC,aAAa,EAAE;IAC/B,OAAO,IAAI;EACZ;EAEA,MAAMI,IAAI,GAAGD,SAAS,GAAGH,aAAa,CAAC;EACvC,MAAMK,OAAO,GAAG,IAAAC,4BAAiB,EAACL,MAAM,CAAC;EACzC,MAAMM,IAAI,GAAGH,IAAI,EAAEI,KAAK,GAAGH,OAAO,CAAC;EACnC,MAAMI,gBAAgB,GAAGL,IAAI,EAAEM,cAAc,GAAGL,OAAO,CAAC;EAExD,IAAK,CAACE,IAAI,EAAEI,WAAW,IAAI,CAACF,gBAAgB,IAAKF,IAAI,EAAEK,MAAM,EAAE;IAC9D,OAAO,IAAI;EACZ;EAEA,IAAIV,KAAK,EAAE;IACV,MAAMW,QAAQ,GAAGV,SAAS,GAAGH,aAAa,CAAC,EAAEc,MAAM,GAAGZ,KAAK,CAAC,EAAEW,QAAQ;;IAEtE;IACA;IACA,IAAIA,QAAQ,IAAIA,QAAQ,KAAKR,OAAO,EAAE;MACrC,OAAO,IAAI;IACZ;EACD;EAEA,MAAMU,WAAW,GAAGb,KAAK,GAAG,CAACA,KAAK,EAAEG,OAAO,CAAC,GAAG,CAACA,OAAO,CAAC;EAExD,OAAO;IACNW,OAAO,EAAEhB,aAAa;IACtBiB,MAAM,EAAE,GAAGrB,oBAAoB,GAAGI,aAAa,IAAIe,WAAW,CAACG,IAAI,CAAC,GAAG,CAAC;EACzE,CAAC;AACF,CAAC;AAACC,OAAA,CAAAtB,6BAAA,GAAAA,6BAAA","ignoreList":[]}
|
|
@@ -6,26 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getFloatOverlayStack = getFloatOverlayStack;
|
|
7
7
|
exports.getFloatOverlayTransitions = getFloatOverlayTransitions;
|
|
8
8
|
var _visibility = require("../../../utils/overlay/visibility");
|
|
9
|
-
const resolveOverlayActivity = (scene, distanceFromTop) => {
|
|
10
|
-
if (distanceFromTop === 0 && scene.activity === "closing") {
|
|
11
|
-
return "closing";
|
|
12
|
-
}
|
|
13
|
-
if (distanceFromTop === 0) {
|
|
14
|
-
return "active";
|
|
15
|
-
}
|
|
16
|
-
if (distanceFromTop === 1) {
|
|
17
|
-
return "inert";
|
|
18
|
-
}
|
|
19
|
-
return "inactive";
|
|
20
|
-
};
|
|
21
|
-
|
|
22
9
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* The newest checkpoint owns the active overlay. Its immediate predecessor
|
|
26
|
-
* remains visible and inert; all older checkpoints are retained but inactive.
|
|
27
|
-
* This mirrors the screen activity window without making plain screens create
|
|
28
|
-
* a new overlay checkpoint.
|
|
10
|
+
* Overlay ordering and transition coordination are library-owned. Visibility,
|
|
11
|
+
* interaction, and presentation are user-owned.
|
|
29
12
|
*/
|
|
30
13
|
function getFloatOverlayStack(scenes, transitionsAlwaysOn) {
|
|
31
14
|
const candidates = [];
|
|
@@ -42,11 +25,7 @@ function getFloatOverlayStack(scenes, transitionsAlwaysOn) {
|
|
|
42
25
|
});
|
|
43
26
|
}
|
|
44
27
|
}
|
|
45
|
-
|
|
46
|
-
return candidates.map((candidate, index) => ({
|
|
47
|
-
...candidate,
|
|
48
|
-
activity: resolveOverlayActivity(candidate.scene, topIndex - index)
|
|
49
|
-
}));
|
|
28
|
+
return candidates;
|
|
50
29
|
}
|
|
51
30
|
function getFloatOverlayTransitions(overlayStack, scenes) {
|
|
52
31
|
const topScene = scenes[scenes.length - 1];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_visibility","require","
|
|
1
|
+
{"version":3,"names":["_visibility","require","getFloatOverlayStack","scenes","transitionsAlwaysOn","candidates","index","length","scene","options","descriptor","enableTransitions","isOverlayVisible","push","overlayIndex","getFloatOverlayTransitions","overlayStack","topScene","map","entry","nextEntry","nextPresentedEntry","nextIndex","candidate","activity","driverScene"],"sourceRoot":"../../../../../src","sources":["components/overlay/helpers/get-active-overlay.ts"],"mappings":";;;;;;;AAIA,IAAAA,WAAA,GAAAC,OAAA;AAWA;AACA;AACA;AACA;AACO,SAASC,oBAAoBA,CACnCC,MAAoB,EACpBC,mBAA4B,EACN;EACtB,MAAMC,UAA+B,GAAG,EAAE;EAE1C,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGH,MAAM,CAACI,MAAM,EAAED,KAAK,IAAI,CAAC,EAAE;IACtD,MAAME,KAAK,GAAGL,MAAM,CAACG,KAAK,CAAC;IAC3B,MAAMG,OAAO,GAAGD,KAAK,EAAEE,UAAU,EAAED,OAAO;IAE1C,IAAI,CAACL,mBAAmB,IAAI,CAACK,OAAO,EAAEE,iBAAiB,EAAE;MACxD;IACD;IAEA,IAAI,IAAAC,4BAAgB,EAACH,OAAO,CAAC,EAAE;MAC9BJ,UAAU,CAACQ,IAAI,CAAC;QAAEL,KAAK;QAAEM,YAAY,EAAER;MAAM,CAAC,CAAC;IAChD;EACD;EAEA,OAAOD,UAAU;AAClB;AAEO,SAASU,0BAA0BA,CACzCC,YAAiC,EACjCb,MAAoB,EACY;EAChC,MAAMc,QAAQ,GAAGd,MAAM,CAACA,MAAM,CAACI,MAAM,GAAG,CAAC,CAAC;EAE1C,OAAOS,YAAY,CAACE,GAAG,CAAC,CAACC,KAAK,EAAEb,KAAK,KAAK;IACzC,MAAMc,SAAS,GAAGJ,YAAY,CAACV,KAAK,GAAG,CAAC,CAAC;IACzC,IAAIe,kBAAiD;IAErD,KACC,IAAIC,SAAS,GAAGhB,KAAK,GAAG,CAAC,EACzBgB,SAAS,GAAGN,YAAY,CAACT,MAAM,EAC/Be,SAAS,EAAE,EACV;MACD,MAAMC,SAAS,GAAGP,YAAY,CAACM,SAAS,CAAC;MACzC,IAAIC,SAAS,EAAEf,KAAK,CAACgB,QAAQ,KAAK,SAAS,EAAE;QAC5CH,kBAAkB,GAAGE,SAAS;QAC9B;MACD;IACD;IAEA,MAAME,WAAW,GAChBN,KAAK,CAACX,KAAK,CAACgB,QAAQ,KAAK,SAAS,IAAIJ,SAAS,GAC5CD,KAAK,CAACX,KAAK,GACVa,kBAAkB,EAAEb,KAAK,IAC3BY,SAAS,EAAEZ,KAAK,IAChBS,QAAQ,IACRE,KAAK,CAACX,KAAM;IAEf,OAAO;MACN,GAAGW,KAAK;MACRM;IACD,CAAC;EACF,CAAC,CAAC;AACH","ignoreList":[]}
|
|
@@ -4,15 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.retainReadyOverlayResources = retainReadyOverlayResources;
|
|
7
|
-
function retainReadyOverlayResources(previous, overlayAnimationStore, driverScene, driverAnimationStore, driverSlots) {
|
|
8
|
-
if (!overlayAnimationStore || !driverAnimationStore || !driverSlots) {
|
|
7
|
+
function retainReadyOverlayResources(previous, overlayAnimationStore, overlaySlots, driverScene, driverAnimationStore, driverSlots) {
|
|
8
|
+
if (!overlayAnimationStore || !overlaySlots || !driverAnimationStore || !driverSlots) {
|
|
9
9
|
return previous;
|
|
10
10
|
}
|
|
11
|
-
if (previous?.overlayAnimationStore === overlayAnimationStore && previous.driverScene === driverScene && previous.driverAnimationStore === driverAnimationStore && previous.driverSlots === driverSlots) {
|
|
11
|
+
if (previous?.overlayAnimationStore === overlayAnimationStore && previous.overlaySlots === overlaySlots && previous.driverScene === driverScene && previous.driverAnimationStore === driverAnimationStore && previous.driverSlots === driverSlots) {
|
|
12
12
|
return previous;
|
|
13
13
|
}
|
|
14
14
|
return {
|
|
15
15
|
overlayAnimationStore,
|
|
16
|
+
overlaySlots,
|
|
16
17
|
driverScene,
|
|
17
18
|
driverAnimationStore,
|
|
18
19
|
driverSlots
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["retainReadyOverlayResources","previous","overlayAnimationStore","driverScene","driverAnimationStore","driverSlots"],"sourceRoot":"../../../../../src","sources":["components/overlay/helpers/retain-ready-overlay-resources.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"names":["retainReadyOverlayResources","previous","overlayAnimationStore","overlaySlots","driverScene","driverAnimationStore","driverSlots"],"sourceRoot":"../../../../../src","sources":["components/overlay/helpers/retain-ready-overlay-resources.ts"],"mappings":";;;;;;AAYO,SAASA,2BAA2BA,CAC1CC,QAAsC,EACtCC,qBAAyD,EACzDC,YAA2C,EAC3CC,WAAuC,EACvCC,oBAAwD,EACxDC,WAA0C,EACX;EAC/B,IACC,CAACJ,qBAAqB,IACtB,CAACC,YAAY,IACb,CAACE,oBAAoB,IACrB,CAACC,WAAW,EACX;IACD,OAAOL,QAAQ;EAChB;EAEA,IACCA,QAAQ,EAAEC,qBAAqB,KAAKA,qBAAqB,IACzDD,QAAQ,CAACE,YAAY,KAAKA,YAAY,IACtCF,QAAQ,CAACG,WAAW,KAAKA,WAAW,IACpCH,QAAQ,CAACI,oBAAoB,KAAKA,oBAAoB,IACtDJ,QAAQ,CAACK,WAAW,KAAKA,WAAW,EACnC;IACD,OAAOL,QAAQ;EAChB;EAEA,OAAO;IACNC,qBAAqB;IACrBC,YAAY;IACZC,WAAW;IACXC,oBAAoB;IACpBC;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_constants","_useBuildTransitionAccessor","_collectInterpolatorSharedValues","_visibilityBlockOffset","_createOverlayInterpolatorFrame","_runOverlaySlotInterpolator","useOverlaySlot","overlayAnimationStore","overlayInterpolator","driverAnimationStore","previousOverlayAnimationStore","driverInterpolator","interpolatorReady","isIncoming","height","useWindowDimensions","overlayTransition","useBuildTransitionAccessor","driverTransition","interpolatorSharedValues","useMemo","collectInterpolatorSharedValues","overlaySlot","useDerivedValue","screenInterpolatorPropsRevision","get","index","length","overlayFrame","screenInterpolatorProps","driverFrame","overlayOwnsGesture","shouldUseOverlayGestureDriver","frame","createOverlayInterpolatorFrame","previousOverlayFrame","runOverlaySlotInterpolator","interpolator","transition","animatedStyle","useAnimatedStyle","slot","NO_STYLES","transform","translateY","getVisibilityBlockOffset","style","animatedProps","useAnimatedProps","slotProps","props","NO_PROPS","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_constants","_useBuildTransitionAccessor","_collectInterpolatorSharedValues","_visibilityBlockOffset","_createOverlayInterpolatorFrame","_runOverlaySlotInterpolator","useOverlaySlot","overlayAnimationStore","overlayInterpolator","driverAnimationStore","previousOverlayAnimationStore","driverInterpolator","interpolatorReady","isIncoming","height","useWindowDimensions","overlayTransition","useBuildTransitionAccessor","driverTransition","interpolatorSharedValues","useMemo","collectInterpolatorSharedValues","overlaySlot","useDerivedValue","screenInterpolatorPropsRevision","get","index","length","overlayFrame","screenInterpolatorProps","driverFrame","overlayOwnsGesture","shouldUseOverlayGestureDriver","frame","createOverlayInterpolatorFrame","previousOverlayFrame","runOverlaySlotInterpolator","interpolator","transition","animatedStyle","useAnimatedStyle","slot","NO_STYLES","transform","translateY","getVisibilityBlockOffset","style","animatedProps","useAnimatedProps","slotProps","props","NO_PROPS","handoffTarget","_handoffTarget","exports"],"sourceRoot":"../../../../../src","sources":["components/overlay/hooks/use-overlay-slot.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAMA,IAAAG,UAAA,GAAAH,OAAA;AAEA,IAAAI,2BAAA,GAAAJ,OAAA;AACA,IAAAK,gCAAA,GAAAL,OAAA;AAKA,IAAAM,sBAAA,GAAAN,OAAA;AACA,IAAAO,+BAAA,GAAAP,OAAA;AAIA,IAAAQ,2BAAA,GAAAR,OAAA;AAEO,MAAMS,cAAc,GAAGA,CAAC;EAC9BC,qBAAqB;EACrBC,mBAAmB;EACnBC,oBAAoB;EACpBC,6BAA6B;EAC7BC,kBAAkB;EAClBC,iBAAiB;EACjBC;AASD,CAAC,KAAK;EACL,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,gCAAmB,EAAC,CAAC;EACxC,MAAMC,iBAAiB,GAAG,IAAAC,sDAA0B,EAACV,qBAAqB,CAAC;EAC3E,MAAMW,gBAAgB,GAAG,IAAAD,sDAA0B,EAACR,oBAAoB,CAAC;EAEzE,MAAMU,wBAAwB,GAAG,IAAAC,cAAO,EACvC,MACC,IAAAC,gEAA+B,EAAC,CAC/Bb,mBAAmB,EACnBG,kBAAkB,CAClB,CAAC,EACH,CAACH,mBAAmB,EAAEG,kBAAkB,CACzC,CAAC;EAED,MAAMW,WAAW,GAAG,IAAAC,sCAAe,EAEjC,MAAM;IACP,SAAS;;IACThB,qBAAqB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AAE,CAAC;UAAEC,UAAU,EAAE,IAAAC,+CAAwB,EAAC/B,MAAM;QAAE,CAAC;MAC7D,CAAC;IACF;IAEA,OAAO2B,IAAI,CAACK,KAAK,IAAIJ,oBAAS;EAC/B,CAAC,CAAC;EAEF,MAAMK,aAAa,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAC5C,SAAS;;IACT,MAAMC,SAAS,GAAG3B,WAAW,CAACG,GAAG,CAAC,CAAC,EAAEyB,KAAK;IAC1C,IAAI,CAACD,SAAS,EAAE;MACf,OAAOE,mBAAQ;IAChB;IAEA,MAAM;MAAEC,aAAa,EAAEC,cAAc;MAAE,GAAGH;IAAM,CAAC,GAAGD,SAAS;IAE7D,OAAOC,KAAK;EACb,CAAC,CAAC;EAEF,OAAO;IAAEH,aAAa;IAAER;EAAc,CAAC;AACxC,CAAC;AAACe,OAAA,CAAAhD,cAAA,GAAAA,cAAA","ignoreList":[]}
|
|
@@ -23,13 +23,11 @@ function FloatOverlay() {
|
|
|
23
23
|
const overlayTransitions = (0, _getActiveOverlay.getFloatOverlayTransitions)(overlayStack, scenes);
|
|
24
24
|
return overlayTransitions.map(({
|
|
25
25
|
scene,
|
|
26
|
-
activity,
|
|
27
26
|
driverScene
|
|
28
27
|
}, layerIndex) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_overlayHost.OverlayHost, {
|
|
29
28
|
scene: scene,
|
|
30
29
|
driverScene: driverScene,
|
|
31
30
|
previousOverlayScene: overlayTransitions[layerIndex - 1]?.scene,
|
|
32
|
-
activity: activity,
|
|
33
31
|
layerIndex: layerIndex
|
|
34
32
|
}, scene.route.key));
|
|
35
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_blankStack","require","_core","_getActiveOverlay","_overlayHost","_jsxRuntime","FloatOverlay","scenes","useBlankStackStore","store","transitionsAlwaysOn","useStackCoreStore","flags","TRANSITIONS_ALWAYS_ON","overlayStack","getFloatOverlayStack","length","overlayTransitions","getFloatOverlayTransitions","map","scene","
|
|
1
|
+
{"version":3,"names":["_blankStack","require","_core","_getActiveOverlay","_overlayHost","_jsxRuntime","FloatOverlay","scenes","useBlankStackStore","store","transitionsAlwaysOn","useStackCoreStore","flags","TRANSITIONS_ALWAYS_ON","overlayStack","getFloatOverlayStack","length","overlayTransitions","getFloatOverlayTransitions","map","scene","driverScene","layerIndex","jsx","OverlayHost","previousOverlayScene","route","key"],"sourceRoot":"../../../../../src","sources":["components/overlay/variations/float-overlay.tsx"],"mappings":";;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AAIA,IAAAG,YAAA,GAAAH,OAAA;AAA6C,IAAAI,WAAA,GAAAJ,OAAA;AAE7C;AACA;AACA;AACA;AACO,SAASK,YAAYA,CAAA,EAAG;EAC9B,MAAMC,MAAM,GAAG,IAAAC,8BAAkB,EAAEC,KAAK,IAAKA,KAAK,CAACF,MAAM,CAAC;EAC1D,MAAMG,mBAAmB,GAAG,IAAAC,uBAAiB,EAC3CF,KAAK,IAAKA,KAAK,CAACG,KAAK,CAACC,qBACxB,CAAC;EAED,MAAMC,YAAY,GAAG,IAAAC,sCAAoB,EAACR,MAAM,EAAEG,mBAAmB,CAAC;EACtE,IAAII,YAAY,CAACE,MAAM,KAAK,CAAC,EAAE;IAC9B,OAAO,IAAI;EACZ;EAEA,MAAMC,kBAAkB,GAAG,IAAAC,4CAA0B,EAACJ,YAAY,EAAEP,MAAM,CAAC;EAE3E,OAAOU,kBAAkB,CAACE,GAAG,CAAC,CAAC;IAAEC,KAAK;IAAEC;EAAY,CAAC,EAAEC,UAAU,kBAChE,IAAAjB,WAAA,CAAAkB,GAAA,EAACnB,YAAA,CAAAoB,WAAW;IAEXJ,KAAK,EAAEA,KAAM;IACbC,WAAW,EAAEA,WAAY;IACzBI,oBAAoB,EAAER,kBAAkB,CAACK,UAAU,GAAG,CAAC,CAAC,EAAEF,KAAM;IAChEE,UAAU,EAAEA;EAAW,GAJlBF,KAAK,CAACM,KAAK,CAACC,GAKjB,CACD,CAAC;AACH","ignoreList":[]}
|