react-native-screen-transitions 3.4.0-alpha.0 → 3.4.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1046
- package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js +69 -2
- package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/commonjs/component-stack/navigators/create-component-stack-navigator.js +9 -0
- package/lib/commonjs/component-stack/navigators/create-component-stack-navigator.js.map +1 -1
- package/lib/commonjs/shared/animation/snap-to.js +5 -1
- package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +195 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -14
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +19 -18
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +54 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +40 -8
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +72 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +16 -7
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +7 -4
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +14 -15
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +27 -9
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/index.js +22 -8
- package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +5 -10
- package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js +3 -2
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/native-screen-container.js +12 -6
- package/lib/commonjs/shared/components/native-screen-container.js.map +1 -1
- package/lib/commonjs/shared/components/native-screen.js +35 -8
- package/lib/commonjs/shared/components/native-screen.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js +2 -2
- package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/index.js +1 -3
- package/lib/commonjs/shared/components/overlay/index.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +2 -16
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/shared/components/scene-view.js +2 -4
- package/lib/commonjs/shared/components/scene-view.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +60 -0
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +9 -6
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +16 -56
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +86 -0
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -0
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js +17 -4
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -1
- package/lib/commonjs/shared/constants.js +6 -2
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js +49 -0
- package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js.map +1 -0
- package/lib/commonjs/shared/hooks/gestures/types.js +2 -0
- package/lib/commonjs/shared/hooks/gestures/types.js.map +1 -0
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +7 -3
- package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
- package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/commonjs/shared/index.js +15 -3
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +61 -25
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js +11 -6
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js +44 -0
- package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +1 -0
- package/lib/commonjs/shared/providers/layout-anchor.provider.js +4 -6
- package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +31 -17
- package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +1 -9
- package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +25 -13
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +33 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/types.js +2 -0
- package/lib/commonjs/shared/providers/screen/animation/types.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +9 -3
- package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/core.provider.js +14 -21
- package/lib/commonjs/shared/providers/stack/core.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/direct.provider.js +1 -1
- package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js +1 -1
- package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js.map +1 -1
- package/lib/commonjs/shared/stores/animation.store.js +10 -2
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +7 -0
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +6 -0
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +33 -9
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/geometry.js +3 -2
- package/lib/commonjs/shared/utils/bounds/helpers/geometry.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js +3 -2
- package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js +2 -2
- package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js +4 -8
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js +4 -3
- package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/index.js +13 -3
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/types/frame-props.js +6 -0
- package/lib/commonjs/shared/utils/bounds/types/frame-props.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/accessor.js +54 -0
- package/lib/commonjs/shared/utils/bounds/zoom/accessor.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +548 -0
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/config.js +118 -0
- package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/index.js +20 -0
- package/lib/commonjs/shared/utils/bounds/zoom/index.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/zoom/types.js.map +1 -0
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js +11 -5
- package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +1 -1
- package/lib/commonjs/shared/utils/overlay/visibility.js +2 -9
- package/lib/commonjs/shared/utils/overlay/visibility.js.map +1 -1
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js +25 -0
- package/lib/commonjs/shared/utils/resolve-screen-transition-options.js.map +1 -0
- package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js +69 -3
- package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
- package/lib/module/component-stack/navigators/create-component-stack-navigator.js +9 -0
- package/lib/module/component-stack/navigators/create-component-stack-navigator.js.map +1 -1
- package/lib/module/shared/animation/snap-to.js +5 -1
- package/lib/module/shared/animation/snap-to.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +182 -0
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -14
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +19 -18
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +49 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +41 -8
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +67 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +16 -7
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +7 -4
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +14 -15
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +27 -9
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/index.js +22 -8
- package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +5 -10
- package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js +3 -2
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/native-screen-container.js +12 -6
- package/lib/module/shared/components/native-screen-container.js.map +1 -1
- package/lib/module/shared/components/native-screen.js +35 -8
- package/lib/module/shared/components/native-screen.js.map +1 -1
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js +3 -3
- package/lib/module/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
- package/lib/module/shared/components/overlay/index.js +1 -3
- package/lib/module/shared/components/overlay/index.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js +3 -17
- package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/shared/components/scene-view.js +3 -5
- package/lib/module/shared/components/scene-view.js.map +1 -1
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +56 -0
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -0
- package/lib/module/shared/components/screen-container/layers/backdrop.js +9 -6
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +18 -58
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +81 -0
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -0
- package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js +17 -4
- package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -1
- package/lib/module/shared/constants.js +6 -2
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js +45 -0
- package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js.map +1 -0
- package/lib/module/shared/hooks/gestures/types.js +2 -0
- package/lib/module/shared/hooks/gestures/types.js.map +1 -0
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js +7 -4
- package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
- package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/module/shared/index.js +1 -2
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js +61 -25
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-activation.js +11 -6
- package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +1 -1
- package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js +38 -0
- package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +1 -0
- package/lib/module/shared/providers/layout-anchor.provider.js +4 -6
- package/lib/module/shared/providers/layout-anchor.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/animation.provider.js +30 -15
- package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js +1 -9
- package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +25 -13
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +29 -0
- package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/index.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/types.js +2 -0
- package/lib/module/shared/providers/screen/animation/types.js.map +1 -0
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js +9 -3
- package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
- package/lib/module/shared/providers/stack/core.provider.js +14 -21
- package/lib/module/shared/providers/stack/core.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/direct.provider.js +2 -2
- package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
- package/lib/module/shared/providers/stack/helpers/use-processed-routes.js +2 -2
- package/lib/module/shared/providers/stack/helpers/use-processed-routes.js.map +1 -1
- package/lib/module/shared/stores/animation.store.js +10 -2
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +7 -0
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +6 -0
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +33 -9
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/geometry.js +3 -2
- package/lib/module/shared/utils/bounds/helpers/geometry.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/interpolators.js +3 -2
- package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/link-accessor.js +2 -2
- package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js +4 -8
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/style-composers.js +4 -3
- package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -1
- package/lib/module/shared/utils/bounds/index.js +13 -3
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/types/frame-props.js +4 -0
- package/lib/module/shared/utils/bounds/types/frame-props.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/accessor.js +49 -0
- package/lib/module/shared/utils/bounds/zoom/accessor.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/build.js +543 -0
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/config.js +112 -0
- package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/index.js +5 -0
- package/lib/module/shared/utils/bounds/zoom/index.js.map +1 -0
- package/lib/module/shared/utils/bounds/zoom/types.js.map +1 -0
- package/lib/module/shared/utils/gesture/validate-snap-points.js +11 -5
- package/lib/module/shared/utils/gesture/validate-snap-points.js.map +1 -1
- package/lib/module/shared/utils/overlay/visibility.js +1 -7
- package/lib/module/shared/utils/overlay/visibility.js.map +1 -1
- package/lib/module/shared/utils/resolve-screen-transition-options.js +19 -0
- package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -0
- package/lib/typescript/blank-stack/index.d.ts +1 -1
- package/lib/typescript/blank-stack/index.d.ts.map +1 -1
- package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts +29 -4
- package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/blank-stack/types.d.ts +33 -4
- package/lib/typescript/blank-stack/types.d.ts.map +1 -1
- package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts +8 -0
- package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts.map +1 -1
- package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +81 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +2 -3
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts +11 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +2 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts +11 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +3 -3
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +2 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +5 -3
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +2 -4
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +0 -1
- package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts +1 -0
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/native-screen-container.d.ts.map +1 -1
- package/lib/typescript/shared/components/native-screen.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts +1 -1
- package/lib/typescript/shared/components/overlay/index.d.ts +0 -2
- package/lib/typescript/shared/components/overlay/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts +3 -0
- package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts +9 -0
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +3 -0
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts +10 -0
- package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/gestures/types.d.ts +4 -0
- package/lib/typescript/shared/hooks/gestures/types.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts +4 -2
- package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +1 -2
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +16 -18
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts +1 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts +18 -0
- package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts.map +1 -0
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +1 -1
- package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +6 -3
- package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +0 -2
- package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +11 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/index.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/animation/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/types.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +5 -1
- package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/core.provider.d.ts +2 -0
- package/lib/typescript/shared/providers/stack/core.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +8 -2
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +2 -0
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +33 -51
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +46 -9
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +3 -3
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/overlay.types.d.ts +1 -22
- package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/screen.types.d.ts +62 -37
- package/lib/typescript/shared/types/screen.types.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/build-bounds-options.d.ts +2 -2
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts +3 -2
- package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts +3 -2
- package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts +3 -2
- package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +2 -1
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts +4 -3
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/index.d.ts +2 -2
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/frame-props.d.ts +5 -0
- package/lib/typescript/shared/utils/bounds/types/frame-props.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +5 -4
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts +17 -0
- package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts +4 -0
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +43 -0
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/zoom/index.d.ts +3 -0
- package/lib/typescript/shared/utils/bounds/zoom/index.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts +17 -0
- package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +1 -0
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts +5 -3
- package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +1 -1
- package/lib/typescript/shared/utils/overlay/visibility.d.ts +1 -4
- package/lib/typescript/shared/utils/overlay/visibility.d.ts.map +1 -1
- package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts +5 -0
- package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts.map +1 -0
- package/package.json +3 -2
- package/src/blank-stack/index.ts +1 -0
- package/src/blank-stack/navigators/create-blank-stack-navigator.tsx +138 -19
- package/src/blank-stack/types.ts +33 -5
- package/src/component-stack/navigators/create-component-stack-navigator.tsx +8 -0
- package/src/shared/animation/snap-to.ts +12 -1
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +258 -0
- package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +7 -17
- package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +38 -28
- package/src/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.ts +58 -0
- package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +41 -10
- package/src/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts +82 -0
- package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +24 -12
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +11 -9
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +29 -26
- package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +26 -17
- package/src/shared/components/create-boundary-component/index.tsx +25 -6
- package/src/shared/components/create-boundary-component/types.ts +8 -4
- package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +2 -14
- package/src/shared/components/create-transition-aware-component.tsx +5 -2
- package/src/shared/components/native-screen-container.tsx +11 -3
- package/src/shared/components/native-screen.tsx +65 -20
- package/src/shared/components/overlay/helpers/get-active-overlay.ts +3 -3
- package/src/shared/components/overlay/index.ts +0 -2
- package/src/shared/components/overlay/variations/overlay-host.tsx +2 -16
- package/src/shared/components/scene-view.tsx +0 -3
- package/src/shared/components/screen-container/hooks/use-content-layout.ts +82 -0
- package/src/shared/components/screen-container/layers/backdrop.tsx +25 -6
- package/src/shared/components/screen-container/layers/content.tsx +23 -82
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +101 -0
- package/src/shared/components/screen-lifecycle/hooks/use-close-transition/index.ts +1 -2
- package/src/shared/components/screen-lifecycle/hooks/use-open-transition.ts +20 -6
- package/src/shared/constants.ts +6 -2
- package/src/shared/hooks/gestures/resolve-screen-gesture-target.ts +66 -0
- package/src/shared/hooks/gestures/types.ts +5 -0
- package/src/shared/hooks/gestures/use-screen-gesture.ts +10 -3
- package/src/shared/hooks/navigation/use-stack.tsx +1 -2
- package/src/shared/index.ts +14 -16
- package/src/shared/providers/gestures/handlers/use-handlers.ts +75 -29
- package/src/shared/providers/gestures/helpers/gesture-activation.ts +11 -6
- package/src/shared/providers/gestures/helpers/gesture-snap-points.ts +72 -0
- package/src/shared/providers/layout-anchor.provider.tsx +2 -5
- package/src/shared/providers/register-bounds.provider.tsx +1 -1
- package/src/shared/providers/screen/animation/animation.provider.tsx +46 -10
- package/src/shared/providers/screen/animation/helpers/derivations.ts +0 -8
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +51 -14
- package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +44 -0
- package/src/shared/providers/screen/animation/index.tsx +4 -1
- package/src/shared/providers/screen/animation/types.ts +5 -0
- package/src/shared/providers/screen/animation/use-screen-animation.tsx +16 -3
- package/src/shared/providers/stack/core.provider.tsx +27 -14
- package/src/shared/providers/stack/direct.provider.tsx +2 -5
- package/src/shared/providers/stack/helpers/use-processed-routes.ts +2 -2
- package/src/shared/stores/animation.store.ts +21 -5
- package/src/shared/stores/bounds/internals/presence.ts +3 -1
- package/src/shared/stores/bounds/internals/resolver.ts +13 -1
- package/src/shared/stores/bounds/types.ts +2 -0
- package/src/shared/types/animation.types.ts +32 -58
- package/src/shared/types/bounds.types.ts +30 -10
- package/src/shared/types/index.ts +2 -15
- package/src/shared/types/overlay.types.ts +1 -28
- package/src/shared/types/screen.types.ts +67 -38
- package/src/shared/utils/animation/animate-to-progress.ts +7 -0
- package/src/shared/utils/bounds/helpers/build-bounds-options.ts +2 -2
- package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +47 -8
- package/src/shared/utils/bounds/helpers/geometry.ts +3 -2
- package/src/shared/utils/bounds/helpers/interpolators.ts +8 -6
- package/src/shared/utils/bounds/helpers/link-accessor.ts +10 -6
- package/src/shared/utils/bounds/helpers/resolve-bound-tag.ts +7 -10
- package/src/shared/utils/bounds/helpers/style-composers.ts +4 -3
- package/src/shared/utils/bounds/index.ts +22 -13
- package/src/shared/utils/bounds/types/frame-props.ts +5 -0
- package/src/shared/utils/bounds/types/options.ts +6 -4
- package/src/shared/utils/bounds/zoom/accessor.ts +69 -0
- package/src/shared/utils/bounds/zoom/build.ts +715 -0
- package/src/shared/utils/bounds/zoom/config.ts +179 -0
- package/src/shared/utils/bounds/zoom/index.ts +2 -0
- package/src/shared/utils/bounds/zoom/types.ts +22 -0
- package/src/shared/utils/gesture/validate-snap-points.ts +20 -8
- package/src/shared/utils/overlay/visibility.ts +1 -16
- package/src/shared/utils/resolve-screen-transition-options.ts +37 -0
- package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js +0 -64
- package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js.map +0 -1
- package/lib/commonjs/shared/providers/viewport.provider.js +0 -33
- package/lib/commonjs/shared/providers/viewport.provider.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/math.js +0 -132
- package/lib/commonjs/shared/utils/bounds/helpers/math.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js +0 -45
- package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js +0 -60
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js +0 -20
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/types.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js +0 -295
- package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js.map +0 -1
- package/lib/module/shared/components/overlay/variations/screen-overlay.js +0 -61
- package/lib/module/shared/components/overlay/variations/screen-overlay.js.map +0 -1
- package/lib/module/shared/providers/viewport.provider.js +0 -27
- package/lib/module/shared/providers/viewport.provider.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/math.js +0 -115
- package/lib/module/shared/utils/bounds/helpers/math.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js +0 -40
- package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js.map +0 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js +0 -54
- package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js.map +0 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/index.js +0 -15
- package/lib/module/shared/utils/bounds/sugar/navigation/index.js.map +0 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/types.js.map +0 -1
- package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js +0 -290
- package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js.map +0 -1
- package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts +0 -10
- package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts.map +0 -1
- package/lib/typescript/shared/providers/viewport.provider.d.ts +0 -13
- package/lib/typescript/shared/providers/viewport.provider.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/math.d.ts +0 -38
- package/lib/typescript/shared/utils/bounds/helpers/math.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts +0 -16
- package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts +0 -17
- package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts +0 -3
- package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts +0 -18
- package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts +0 -4
- package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts.map +0 -1
- package/src/shared/components/overlay/variations/screen-overlay.tsx +0 -68
- package/src/shared/providers/viewport.provider.tsx +0 -39
- package/src/shared/utils/bounds/helpers/math.ts +0 -161
- package/src/shared/utils/bounds/helpers/navigation-accessor.ts +0 -61
- package/src/shared/utils/bounds/sugar/navigation/helpers.ts +0 -74
- package/src/shared/utils/bounds/sugar/navigation/index.ts +0 -14
- package/src/shared/utils/bounds/sugar/navigation/types.ts +0 -26
- package/src/shared/utils/bounds/sugar/navigation/zoom.ts +0 -348
- /package/lib/commonjs/shared/utils/bounds/{sugar/navigation → zoom}/types.js +0 -0
- /package/lib/module/shared/utils/bounds/{sugar/navigation → zoom}/types.js +0 -0
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useGroupActiveMeasurement = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _bounds = require("../../../stores/bounds");
|
|
9
|
+
var _measurementRules = require("./helpers/measurement-rules");
|
|
10
|
+
var _useDeferredMeasurementTrigger = require("./use-deferred-measurement-trigger");
|
|
9
11
|
/**
|
|
10
12
|
* Watches the group's active id in the BoundStore.
|
|
11
13
|
* When this boundary becomes the active member of its group,
|
|
@@ -24,6 +26,30 @@ const useGroupActiveMeasurement = params => {
|
|
|
24
26
|
} = params;
|
|
25
27
|
const idStr = String(id);
|
|
26
28
|
const allGroups = _bounds.BoundStore.getGroups();
|
|
29
|
+
const {
|
|
30
|
+
clearPendingMeasurement,
|
|
31
|
+
queueOrFlushMeasurement
|
|
32
|
+
} = (0, _useDeferredMeasurementTrigger.useDeferredMeasurementTrigger)({
|
|
33
|
+
enabled,
|
|
34
|
+
isAnimating,
|
|
35
|
+
canFlush: () => {
|
|
36
|
+
"worklet";
|
|
37
|
+
|
|
38
|
+
return (0, _measurementRules.canFlushGroupActiveMeasurement)({
|
|
39
|
+
enabled,
|
|
40
|
+
isEligible: !!group && shouldUpdateDestination,
|
|
41
|
+
memberId: idStr,
|
|
42
|
+
activeId: group ? allGroups.value[group]?.activeId ?? null : null
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
onFlush: () => {
|
|
46
|
+
"worklet";
|
|
47
|
+
|
|
48
|
+
maybeMeasureAndStore({
|
|
49
|
+
intent: "refresh-destination"
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
});
|
|
27
53
|
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
28
54
|
"worklet";
|
|
29
55
|
|
|
@@ -33,15 +59,21 @@ const useGroupActiveMeasurement = params => {
|
|
|
33
59
|
}, (activeId, previousActiveId) => {
|
|
34
60
|
"worklet";
|
|
35
61
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
62
|
+
const action = (0, _measurementRules.resolveGroupActiveMeasurementAction)({
|
|
63
|
+
enabled,
|
|
64
|
+
isEligible: !!group && shouldUpdateDestination,
|
|
65
|
+
memberId: idStr,
|
|
66
|
+
activeId,
|
|
67
|
+
previousActiveId
|
|
68
|
+
});
|
|
69
|
+
if (action === "clear-pending") {
|
|
70
|
+
clearPendingMeasurement();
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (action === "queue-or-flush") {
|
|
74
|
+
queueOrFlushMeasurement();
|
|
43
75
|
}
|
|
44
|
-
}, [enabled, group, idStr, shouldUpdateDestination,
|
|
76
|
+
}, [enabled, group, idStr, shouldUpdateDestination, clearPendingMeasurement, queueOrFlushMeasurement]);
|
|
45
77
|
};
|
|
46
78
|
exports.useGroupActiveMeasurement = useGroupActiveMeasurement;
|
|
47
79
|
//# sourceMappingURL=use-group-active-measurement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_bounds","useGroupActiveMeasurement","params","enabled","group","id","shouldUpdateDestination","isAnimating","maybeMeasureAndStore","idStr","String","allGroups","BoundStore","getGroups","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_bounds","_measurementRules","_useDeferredMeasurementTrigger","useGroupActiveMeasurement","params","enabled","group","id","shouldUpdateDestination","isAnimating","maybeMeasureAndStore","idStr","String","allGroups","BoundStore","getGroups","clearPendingMeasurement","queueOrFlushMeasurement","useDeferredMeasurementTrigger","canFlush","canFlushGroupActiveMeasurement","isEligible","memberId","activeId","value","onFlush","intent","useAnimatedReaction","previousActiveId","action","resolveGroupActiveMeasurementAction","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-group-active-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AAIA,IAAAG,8BAAA,GAAAH,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMI,yBAAyB,GAAIC,MAOzC,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,KAAK;IACLC,EAAE;IACFC,uBAAuB;IACvBC,WAAW;IACXC;EACD,CAAC,GAAGN,MAAM;EACV,MAAMO,KAAK,GAAGC,MAAM,CAACL,EAAE,CAAC;EAExB,MAAMM,SAAS,GAAGC,kBAAU,CAACC,SAAS,CAAC,CAAC;EACxC,MAAM;IAAEC,uBAAuB;IAAEC;EAAwB,CAAC,GACzD,IAAAC,4DAA6B,EAAC;IAC7Bb,OAAO;IACPI,WAAW;IACXU,QAAQ,EAAEA,CAAA,KAAM;MACf,SAAS;;MACT,OAAO,IAAAC,gDAA8B,EAAC;QACrCf,OAAO;QACPgB,UAAU,EAAE,CAAC,CAACf,KAAK,IAAIE,uBAAuB;QAC9Cc,QAAQ,EAAEX,KAAK;QACfY,QAAQ,EAAEjB,KAAK,GAAIO,SAAS,CAACW,KAAK,CAAClB,KAAK,CAAC,EAAEiB,QAAQ,IAAI,IAAI,GAAI;MAChE,CAAC,CAAC;IACH,CAAC;IACDE,OAAO,EAAEA,CAAA,KAAM;MACd,SAAS;;MACTf,oBAAoB,CAAC;QAAEgB,MAAM,EAAE;MAAsB,CAAC,CAAC;IACxD;EACD,CAAC,CAAC;EAEH,IAAAC,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,IAAI,CAACtB,OAAO,EAAE,OAAO,IAAI;IACzB,IAAI,CAACC,KAAK,EAAE,OAAO,IAAI;IACvB,OAAOO,SAAS,CAACW,KAAK,CAAClB,KAAK,CAAC,EAAEiB,QAAQ,IAAI,IAAI;EAChD,CAAC,EACD,CAACA,QAAQ,EAAEK,gBAAgB,KAAK;IAC/B,SAAS;;IACT,MAAMC,MAAM,GAAG,IAAAC,qDAAmC,EAAC;MAClDzB,OAAO;MACPgB,UAAU,EAAE,CAAC,CAACf,KAAK,IAAIE,uBAAuB;MAC9Cc,QAAQ,EAAEX,KAAK;MACfY,QAAQ;MACRK;IACD,CAAC,CAAC;IAEF,IAAIC,MAAM,KAAK,eAAe,EAAE;MAC/Bb,uBAAuB,CAAC,CAAC;MACzB;IACD;IAEA,IAAIa,MAAM,KAAK,gBAAgB,EAAE;MAChCZ,uBAAuB,CAAC,CAAC;IAC1B;EACD,CAAC,EACD,CACCZ,OAAO,EACPC,KAAK,EACLK,KAAK,EACLH,uBAAuB,EACvBQ,uBAAuB,EACvBC,uBAAuB,CAEzB,CAAC;AACF,CAAC;AAACc,OAAA,CAAA5B,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useGroupActiveSourceMeasurement = void 0;
|
|
7
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
+
var _bounds = require("../../../stores/bounds");
|
|
9
|
+
var _measurementRules = require("./helpers/measurement-rules");
|
|
10
|
+
var _useDeferredMeasurementTrigger = require("./use-deferred-measurement-trigger");
|
|
11
|
+
const useGroupActiveSourceMeasurement = params => {
|
|
12
|
+
const {
|
|
13
|
+
enabled,
|
|
14
|
+
group,
|
|
15
|
+
id,
|
|
16
|
+
hasNextScreen,
|
|
17
|
+
isAnimating,
|
|
18
|
+
maybeMeasureAndStore
|
|
19
|
+
} = params;
|
|
20
|
+
const idStr = String(id);
|
|
21
|
+
const allGroups = _bounds.BoundStore.getGroups();
|
|
22
|
+
const {
|
|
23
|
+
clearPendingMeasurement,
|
|
24
|
+
queueOrFlushMeasurement
|
|
25
|
+
} = (0, _useDeferredMeasurementTrigger.useDeferredMeasurementTrigger)({
|
|
26
|
+
enabled,
|
|
27
|
+
isAnimating,
|
|
28
|
+
canFlush: () => {
|
|
29
|
+
"worklet";
|
|
30
|
+
|
|
31
|
+
return (0, _measurementRules.canFlushGroupActiveMeasurement)({
|
|
32
|
+
enabled,
|
|
33
|
+
isEligible: !!group && hasNextScreen,
|
|
34
|
+
memberId: idStr,
|
|
35
|
+
activeId: group ? allGroups.value[group]?.activeId ?? null : null
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
onFlush: () => {
|
|
39
|
+
"worklet";
|
|
40
|
+
|
|
41
|
+
maybeMeasureAndStore({
|
|
42
|
+
intent: "refresh-source"
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
47
|
+
"worklet";
|
|
48
|
+
|
|
49
|
+
if (!enabled) return null;
|
|
50
|
+
if (!group) return null;
|
|
51
|
+
return allGroups.value[group]?.activeId ?? null;
|
|
52
|
+
}, (activeId, previousActiveId) => {
|
|
53
|
+
"worklet";
|
|
54
|
+
|
|
55
|
+
const action = (0, _measurementRules.resolveGroupActiveMeasurementAction)({
|
|
56
|
+
enabled,
|
|
57
|
+
isEligible: !!group && hasNextScreen,
|
|
58
|
+
memberId: idStr,
|
|
59
|
+
activeId,
|
|
60
|
+
previousActiveId
|
|
61
|
+
});
|
|
62
|
+
if (action === "clear-pending") {
|
|
63
|
+
clearPendingMeasurement();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (action === "queue-or-flush") {
|
|
67
|
+
queueOrFlushMeasurement();
|
|
68
|
+
}
|
|
69
|
+
}, [enabled, group, idStr, hasNextScreen, clearPendingMeasurement, queueOrFlushMeasurement]);
|
|
70
|
+
};
|
|
71
|
+
exports.useGroupActiveSourceMeasurement = useGroupActiveSourceMeasurement;
|
|
72
|
+
//# sourceMappingURL=use-group-active-source-measurement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_bounds","_measurementRules","_useDeferredMeasurementTrigger","useGroupActiveSourceMeasurement","params","enabled","group","id","hasNextScreen","isAnimating","maybeMeasureAndStore","idStr","String","allGroups","BoundStore","getGroups","clearPendingMeasurement","queueOrFlushMeasurement","useDeferredMeasurementTrigger","canFlush","canFlushGroupActiveMeasurement","isEligible","memberId","activeId","value","onFlush","intent","useAnimatedReaction","previousActiveId","action","resolveGroupActiveMeasurementAction","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AAIA,IAAAG,8BAAA,GAAAH,OAAA;AAEO,MAAMI,+BAA+B,GAAIC,MAO/C,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,KAAK;IACLC,EAAE;IACFC,aAAa;IACbC,WAAW;IACXC;EACD,CAAC,GAAGN,MAAM;EACV,MAAMO,KAAK,GAAGC,MAAM,CAACL,EAAE,CAAC;EACxB,MAAMM,SAAS,GAAGC,kBAAU,CAACC,SAAS,CAAC,CAAC;EACxC,MAAM;IAAEC,uBAAuB;IAAEC;EAAwB,CAAC,GACzD,IAAAC,4DAA6B,EAAC;IAC7Bb,OAAO;IACPI,WAAW;IACXU,QAAQ,EAAEA,CAAA,KAAM;MACf,SAAS;;MACT,OAAO,IAAAC,gDAA8B,EAAC;QACrCf,OAAO;QACPgB,UAAU,EAAE,CAAC,CAACf,KAAK,IAAIE,aAAa;QACpCc,QAAQ,EAAEX,KAAK;QACfY,QAAQ,EAAEjB,KAAK,GAAIO,SAAS,CAACW,KAAK,CAAClB,KAAK,CAAC,EAAEiB,QAAQ,IAAI,IAAI,GAAI;MAChE,CAAC,CAAC;IACH,CAAC;IACDE,OAAO,EAAEA,CAAA,KAAM;MACd,SAAS;;MACTf,oBAAoB,CAAC;QAAEgB,MAAM,EAAE;MAAiB,CAAC,CAAC;IACnD;EACD,CAAC,CAAC;EAEH,IAAAC,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,IAAI,CAACtB,OAAO,EAAE,OAAO,IAAI;IACzB,IAAI,CAACC,KAAK,EAAE,OAAO,IAAI;IACvB,OAAOO,SAAS,CAACW,KAAK,CAAClB,KAAK,CAAC,EAAEiB,QAAQ,IAAI,IAAI;EAChD,CAAC,EACD,CAACA,QAAQ,EAAEK,gBAAgB,KAAK;IAC/B,SAAS;;IACT,MAAMC,MAAM,GAAG,IAAAC,qDAAmC,EAAC;MAClDzB,OAAO;MACPgB,UAAU,EAAE,CAAC,CAACf,KAAK,IAAIE,aAAa;MACpCc,QAAQ,EAAEX,KAAK;MACfY,QAAQ;MACRK;IACD,CAAC,CAAC;IAEF,IAAIC,MAAM,KAAK,eAAe,EAAE;MAC/Bb,uBAAuB,CAAC,CAAC;MACzB;IACD;IAEA,IAAIa,MAAM,KAAK,gBAAgB,EAAE;MAChCZ,uBAAuB,CAAC,CAAC;IAC1B;EACD,CAAC,EACD,CACCZ,OAAO,EACPC,KAAK,EACLK,KAAK,EACLH,aAAa,EACbQ,uBAAuB,EACvBC,uBAAuB,CAEzB,CAAC;AACF,CAAC;AAACc,OAAA,CAAA5B,+BAAA,GAAAA,+BAAA","ignoreList":[]}
|
package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js
CHANGED
|
@@ -9,6 +9,7 @@ var _reactNativeReanimated = require("react-native-reanimated");
|
|
|
9
9
|
var _animation = require("../../../stores/animation.store");
|
|
10
10
|
var _bounds = require("../../../stores/bounds");
|
|
11
11
|
var _resolvePendingSourceKey = require("../helpers/resolve-pending-source-key");
|
|
12
|
+
var _measurementRules = require("./helpers/measurement-rules");
|
|
12
13
|
const useInitialLayoutHandler = params => {
|
|
13
14
|
const {
|
|
14
15
|
enabled,
|
|
@@ -33,15 +34,23 @@ const useInitialLayoutHandler = params => {
|
|
|
33
34
|
break;
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
let hasPendingLinkFromSource = false;
|
|
38
|
+
if (isAnyAnimating) {
|
|
39
|
+
const resolvedSourceKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, expectedSourceScreenKey);
|
|
40
|
+
if (resolvedSourceKey && _bounds.BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey)) {
|
|
41
|
+
hasPendingLinkFromSource = true;
|
|
42
|
+
}
|
|
41
43
|
}
|
|
44
|
+
const intent = (0, _measurementRules.resolveInitialLayoutMeasurementIntent)({
|
|
45
|
+
enabled,
|
|
46
|
+
hasSharedBoundTag: !!sharedBoundTag,
|
|
47
|
+
hasMeasuredOnLayout: hasMeasuredOnLayout.get(),
|
|
48
|
+
isAnyAnimating: !!isAnyAnimating,
|
|
49
|
+
hasPendingLinkFromSource
|
|
50
|
+
});
|
|
51
|
+
if (!intent) return;
|
|
42
52
|
maybeMeasureAndStore({
|
|
43
|
-
|
|
44
|
-
shouldSetDestination: true
|
|
53
|
+
intent
|
|
45
54
|
});
|
|
46
55
|
hasMeasuredOnLayout.set(true);
|
|
47
56
|
}, [enabled, sharedBoundTag, hasMeasuredOnLayout, isAnimating, ancestorAnimations, maybeMeasureAndStore, expectedSourceScreenKey]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_animation","_bounds","_resolvePendingSourceKey","useInitialLayoutHandler","params","enabled","sharedBoundTag","currentScreenKey","ancestorKeys","expectedSourceScreenKey","maybeMeasureAndStore","isAnimating","AnimationStore","getRouteAnimation","ancestorAnimations","map","key","hasMeasuredOnLayout","useSharedValue","handleInitialLayout","useCallback","get","isAnyAnimating","i","length","resolvedSourceKey","resolvePendingSourceKey","BoundStore","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_animation","_bounds","_resolvePendingSourceKey","_measurementRules","useInitialLayoutHandler","params","enabled","sharedBoundTag","currentScreenKey","ancestorKeys","expectedSourceScreenKey","maybeMeasureAndStore","isAnimating","AnimationStore","getRouteAnimation","ancestorAnimations","map","key","hasMeasuredOnLayout","useSharedValue","handleInitialLayout","useCallback","get","isAnyAnimating","i","length","hasPendingLinkFromSource","resolvedSourceKey","resolvePendingSourceKey","BoundStore","intent","resolveInitialLayoutMeasurementIntent","hasSharedBoundTag","set","useLayoutEffect","runOnUI","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAJ,OAAA;AAEA,IAAAK,iBAAA,GAAAL,OAAA;AAEO,MAAMM,uBAAuB,GAAIC,MAOvC,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,cAAc;IACdC,gBAAgB;IAChBC,YAAY;IACZC,uBAAuB;IACvBC;EACD,CAAC,GAAGN,MAAM;EAEV,MAAMO,WAAW,GAAGC,yBAAc,CAACC,iBAAiB,CACnDN,gBAAgB,EAChB,WACD,CAAC;EAED,MAAMO,kBAAkB,GAAGN,YAAY,CAACO,GAAG,CAAEC,GAAG,IAC/CJ,yBAAc,CAACC,iBAAiB,CAACG,GAAG,EAAE,WAAW,CAClD,CAAC;EAED,MAAMC,mBAAmB,GAAG,IAAAC,qCAAc,EAAC,KAAK,CAAC;EAEjD,MAA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AAO,EAAE;IACd,IAAA6B,8BAAO,EAACf,mBAAmB,CAAC,CAAC,CAAC;EAC/B,CAAC,EAAE,CAACd,OAAO,EAAEc,mBAAmB,CAAC,CAAC;AACnC,CAAC;AAACgB,OAAA,CAAAhC,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -7,6 +7,7 @@ exports.usePendingDestinationMeasurement = void 0;
|
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _bounds = require("../../../stores/bounds");
|
|
9
9
|
var _resolvePendingSourceKey = require("../helpers/resolve-pending-source-key");
|
|
10
|
+
var _measurementRules = require("./helpers/measurement-rules");
|
|
10
11
|
const usePendingDestinationMeasurement = params => {
|
|
11
12
|
const {
|
|
12
13
|
sharedBoundTag,
|
|
@@ -17,10 +18,12 @@ const usePendingDestinationMeasurement = params => {
|
|
|
17
18
|
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
18
19
|
"worklet";
|
|
19
20
|
|
|
20
|
-
if (!enabled) return 0;
|
|
21
21
|
const resolvedSourceKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, expectedSourceScreenKey);
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
return (0, _measurementRules.resolvePendingDestinationCaptureSignal)({
|
|
23
|
+
enabled,
|
|
24
|
+
resolvedSourceKey,
|
|
25
|
+
hasPendingLinkFromSource: resolvedSourceKey ? _bounds.BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey) : false
|
|
26
|
+
});
|
|
24
27
|
}, (captureSignal, previousCaptureSignal) => {
|
|
25
28
|
"worklet";
|
|
26
29
|
|
|
@@ -29,7 +32,7 @@ const usePendingDestinationMeasurement = params => {
|
|
|
29
32
|
return;
|
|
30
33
|
}
|
|
31
34
|
maybeMeasureAndStore({
|
|
32
|
-
|
|
35
|
+
intent: "complete-destination"
|
|
33
36
|
});
|
|
34
37
|
}, [enabled, sharedBoundTag, expectedSourceScreenKey, maybeMeasureAndStore]);
|
|
35
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_bounds","_resolvePendingSourceKey","usePendingDestinationMeasurement","params","sharedBoundTag","enabled","expectedSourceScreenKey","maybeMeasureAndStore","useAnimatedReaction","resolvedSourceKey","resolvePendingSourceKey","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_bounds","_resolvePendingSourceKey","_measurementRules","usePendingDestinationMeasurement","params","sharedBoundTag","enabled","expectedSourceScreenKey","maybeMeasureAndStore","useAnimatedReaction","resolvedSourceKey","resolvePendingSourceKey","resolvePendingDestinationCaptureSignal","hasPendingLinkFromSource","BoundStore","captureSignal","previousCaptureSignal","intent","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAEA,IAAAG,iBAAA,GAAAH,OAAA;AAEO,MAAMI,gCAAgC,GAAIC,MAKhD,IAAK;EACL,MAAM;IACLC,cAAc;IACdC,OAAO;IACPC,uBAAuB;IACvBC;EACD,CAAC,GAAGJ,MAAM;EAEV,IAAAK,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,MAAMC,iBAAiB,GAAG,IAAAC,gDAAuB,EAChDN,cAAc,EACdE,uBACD,CAAC;IACD,OAAO,IAAAK,wDAAsC,EAAC;MAC7CN,OAAO;MACPI,iBAAiB;MACjBG,wBAAwB,EAAEH,iBAAiB,GACxCI,kBAAU,CAACD,wBAAwB,CACnCR,cAAc,EACdK,iBACD,CAAC,GACA;IACJ,CAAC,CAAC;EACH,CAAC,EACD,CAACK,aAAa,EAAEC,qBAAqB,KAAK;IACzC,SAAS;;IACT,IAAI,CAACV,OAAO,EAAE;IACd,IAAI,CAACS,aAAa,IAAIA,aAAa,KAAKC,qBAAqB,EAAE;MAC9D;IACD;IAEAR,oBAAoB,CAAC;MAAES,MAAM,EAAE;IAAuB,CAAC,CAAC;EACzD,CAAC,EACD,CAACX,OAAO,EAAED,cAAc,EAAEE,uBAAuB,EAAEC,oBAAoB,CACxE,CAAC;AACF,CAAC;AAACU,OAAA,CAAAf,gCAAA,GAAAA,gCAAA","ignoreList":[]}
|
|
@@ -7,6 +7,7 @@ exports.usePendingDestinationRetryMeasurement = void 0;
|
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _bounds = require("../../../stores/bounds");
|
|
9
9
|
var _resolvePendingSourceKey = require("../helpers/resolve-pending-source-key");
|
|
10
|
+
var _measurementRules = require("./helpers/measurement-rules");
|
|
10
11
|
const usePendingDestinationRetryMeasurement = params => {
|
|
11
12
|
const {
|
|
12
13
|
sharedBoundTag,
|
|
@@ -24,21 +25,19 @@ const usePendingDestinationRetryMeasurement = params => {
|
|
|
24
25
|
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
25
26
|
"worklet";
|
|
26
27
|
|
|
27
|
-
if (!enabled) return 0;
|
|
28
|
-
if (retryCount.get() >= MAX_RETRIES) return 0;
|
|
29
|
-
if (!animating.get()) return 0;
|
|
30
|
-
if (_bounds.BoundStore.hasDestinationLink(sharedBoundTag, currentScreenKey)) return 0;
|
|
31
|
-
const currentProgress = progress.get();
|
|
32
|
-
if (currentProgress <= 0 || currentProgress >= RETRY_PROGRESS_MAX) {
|
|
33
|
-
return 0;
|
|
34
|
-
}
|
|
35
28
|
const resolvedSourceKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, expectedSourceScreenKey);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
29
|
+
return (0, _measurementRules.resolvePendingDestinationRetrySignal)({
|
|
30
|
+
enabled,
|
|
31
|
+
retryCount: retryCount.get(),
|
|
32
|
+
maxRetries: MAX_RETRIES,
|
|
33
|
+
isAnimating: !!animating.get(),
|
|
34
|
+
hasDestinationLink: _bounds.BoundStore.hasDestinationLink(sharedBoundTag, currentScreenKey),
|
|
35
|
+
progress: progress.get(),
|
|
36
|
+
retryProgressMax: RETRY_PROGRESS_MAX,
|
|
37
|
+
retryProgressBuckets: RETRY_PROGRESS_BUCKETS,
|
|
38
|
+
resolvedSourceKey,
|
|
39
|
+
hasPendingLinkFromSource: resolvedSourceKey ? _bounds.BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey) : false
|
|
40
|
+
});
|
|
42
41
|
}, captureSignal => {
|
|
43
42
|
"worklet";
|
|
44
43
|
|
|
@@ -50,7 +49,7 @@ const usePendingDestinationRetryMeasurement = params => {
|
|
|
50
49
|
if (retryCount.get() >= MAX_RETRIES) return;
|
|
51
50
|
retryCount.set(retryCount.get() + 1);
|
|
52
51
|
maybeMeasureAndStore({
|
|
53
|
-
|
|
52
|
+
intent: "complete-destination"
|
|
54
53
|
});
|
|
55
54
|
}, [enabled, sharedBoundTag, currentScreenKey, expectedSourceScreenKey, progress, animating, maybeMeasureAndStore, retryCount]);
|
|
56
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_bounds","_resolvePendingSourceKey","usePendingDestinationRetryMeasurement","params","sharedBoundTag","enabled","currentScreenKey","expectedSourceScreenKey","progress","animating","maybeMeasureAndStore","retryCount","useSharedValue","MAX_RETRIES","RETRY_PROGRESS_BUCKETS","RETRY_PROGRESS_MAX","useAnimatedReaction","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_bounds","_resolvePendingSourceKey","_measurementRules","usePendingDestinationRetryMeasurement","params","sharedBoundTag","enabled","currentScreenKey","expectedSourceScreenKey","progress","animating","maybeMeasureAndStore","retryCount","useSharedValue","MAX_RETRIES","RETRY_PROGRESS_BUCKETS","RETRY_PROGRESS_MAX","useAnimatedReaction","resolvedSourceKey","resolvePendingSourceKey","resolvePendingDestinationRetrySignal","get","maxRetries","isAnimating","hasDestinationLink","BoundStore","retryProgressMax","retryProgressBuckets","hasPendingLinkFromSource","captureSignal","set","intent","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAEA,IAAAG,iBAAA,GAAAH,OAAA;AAEO,MAAMI,qCAAqC,GAAIC,MAQrD,IAAK;EACL,MAAM;IACLC,cAAc;IACdC,OAAO;IACPC,gBAAgB;IAChBC,uBAAuB;IACvBC,QAAQ;IACRC,SAAS;IACTC;EACD,CAAC,GAAGP,MAAM;EAEV,MAAMQ,UAAU,GAAG,IAAAC,qCAAc,EAAC,CAAC,CAAC;EACpC,MAAMC,WAAW,GAAG,CAAC;EACrB,MAAMC,sBAAsB,GAAG,CAAC;EAChC,MAAMC,kBAAkB,GAAG,IAAI;EAE/B,IAAAC,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,MAAMC,iBAAiB,GAAG,IAAAC,gDAAuB,EAChDd,cAAc,EACdG,uBACD,CAAC;IACD,OAAO,IAAAY,sDAAoC,EAAC;MAC3Cd,OAAO;MACPM,UAAU,EAAEA,UAAU,CAACS,GAAG,CAAC,CAAC;MAC5BC,UAAU,EAAER,WAAW;MACvBS,WAAW,EAAE,CAAC,CAACb,SAAS,CAACW,GAAG,CAAC,CAAC;MAC9BG,kBAAkB,EAAEC,kBAAU,CAACD,kBAAkB,CAChDnB,cAAc,EACdE,gBACD,CAAC;MACDE,QAAQ,EAAEA,QAAQ,CAACY,GAAG,CAAC,CAAC;MACxBK,gBAAgB,EAAEV,kBAAkB;MACpCW,oBAAoB,EAAEZ,sBAAsB;MAC5CG,iBAAiB;MACjBU,wBAAwB,EAAEV,iBAAiB,GACxCO,kBAAU,CAACG,wBAAwB,CACnCvB,cAAc,EACda,iBACD,CAAC,GACA;IACJ,CAAC,CAAC;EACH,CAAC,EACAW,aAAa,IAAK;IAClB,SAAS;;IACT,IAAI,CAACvB,OAAO,EAAE;IACd,IAAI,CAACuB,aAAa,EAAE;MACnBjB,UAAU,CAACkB,GAAG,CAAC,CAAC,CAAC;MACjB;IACD;IAEA,IAAIlB,UAAU,CAACS,GAAG,CAAC,CAAC,IAAIP,WAAW,EAAE;IACrCF,UAAU,CAACkB,GAAG,CAAClB,UAAU,CAACS,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IACpCV,oBAAoB,CAAC;MAAEoB,MAAM,EAAE;IAAuB,CAAC,CAAC;EACzD,CAAC,EACD,CACCzB,OAAO,EACPD,cAAc,EACdE,gBAAgB,EAChBC,uBAAuB,EACvBC,QAAQ,EACRC,SAAS,EACTC,oBAAoB,EACpBC,UAAU,CAEZ,CAAC;AACF,CAAC;AAACoB,OAAA,CAAA7B,qCAAA,GAAAA,qCAAA","ignoreList":[]}
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useScrollSettledMeasurement = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _scrollSettle = require("../../../providers/scroll-settle.provider");
|
|
9
|
+
var _measurementRules = require("./helpers/measurement-rules");
|
|
10
|
+
var _useDeferredMeasurementTrigger = require("./use-deferred-measurement-trigger");
|
|
9
11
|
const useScrollSettledMeasurement = params => {
|
|
10
12
|
const {
|
|
11
13
|
enabled,
|
|
@@ -16,20 +18,36 @@ const useScrollSettledMeasurement = params => {
|
|
|
16
18
|
} = params;
|
|
17
19
|
const scrollSettle = (0, _scrollSettle.useScrollSettleContext)();
|
|
18
20
|
const settledSignal = scrollSettle?.settledSignal;
|
|
21
|
+
const {
|
|
22
|
+
queueOrFlushMeasurement
|
|
23
|
+
} = (0, _useDeferredMeasurementTrigger.useDeferredMeasurementTrigger)({
|
|
24
|
+
enabled,
|
|
25
|
+
isAnimating,
|
|
26
|
+
onFlush: () => {
|
|
27
|
+
"worklet";
|
|
28
|
+
|
|
29
|
+
maybeMeasureAndStore({
|
|
30
|
+
intent: "refresh-source"
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
});
|
|
19
34
|
(0, _reactNativeReanimated.useAnimatedReaction)(() => settledSignal?.value ?? 0, (signal, previousSignal) => {
|
|
20
35
|
"worklet";
|
|
21
36
|
|
|
22
|
-
if (!
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
37
|
+
if (!(0, _measurementRules.shouldTriggerScrollSettledRefresh)({
|
|
38
|
+
enabled,
|
|
39
|
+
group,
|
|
40
|
+
hasNextScreen,
|
|
41
|
+
hasSettledSignal: !!settledSignal,
|
|
42
|
+
signal,
|
|
43
|
+
previousSignal
|
|
44
|
+
})) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
27
47
|
// Re-measure source bounds after scroll settles while idle.
|
|
28
48
|
// This captures post-scroll positions before close transition starts.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
});
|
|
32
|
-
}, [enabled, group, hasNextScreen, settledSignal, isAnimating, maybeMeasureAndStore]);
|
|
49
|
+
queueOrFlushMeasurement();
|
|
50
|
+
}, [enabled, group, hasNextScreen, settledSignal, queueOrFlushMeasurement]);
|
|
33
51
|
};
|
|
34
52
|
exports.useScrollSettledMeasurement = useScrollSettledMeasurement;
|
|
35
53
|
//# sourceMappingURL=use-scroll-settled-measurement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_scrollSettle","useScrollSettledMeasurement","params","enabled","group","hasNextScreen","isAnimating","maybeMeasureAndStore","scrollSettle","useScrollSettleContext","settledSignal","useAnimatedReaction","value","signal","previousSignal","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_scrollSettle","_measurementRules","_useDeferredMeasurementTrigger","useScrollSettledMeasurement","params","enabled","group","hasNextScreen","isAnimating","maybeMeasureAndStore","scrollSettle","useScrollSettleContext","settledSignal","queueOrFlushMeasurement","useDeferredMeasurementTrigger","onFlush","intent","useAnimatedReaction","value","signal","previousSignal","shouldTriggerScrollSettledRefresh","hasSettledSignal","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,8BAAA,GAAAH,OAAA;AAEO,MAAMI,2BAA2B,GAAIC,MAM3C,IAAK;EACL,MAAM;IAAEC,OAAO;IAAEC,KAAK;IAAEC,aAAa;IAAEC,WAAW;IAAEC;EAAqB,CAAC,GACzEL,MAAM;EACP,MAAMM,YAAY,GAAG,IAAAC,oCAAsB,EAAC,CAAC;EAC7C,MAAMC,aAAa,GAAGF,YAAY,EAAEE,aAAa;EACjD,MAAM;IAAEC;EAAwB,CAAC,GAAG,IAAAC,4DAA6B,EAAC;IACjET,OAAO;IACPG,WAAW;IACXO,OAAO,EAAEA,CAAA,KAAM;MACd,SAAS;;MACTN,oBAAoB,CAAC;QAAEO,MAAM,EAAE;MAAiB,CAAC,CAAC;IACnD;EACD,CAAC,CAAC;EAEF,IAAAC,0CAAmB,EAClB,MAAML,aAAa,EAAEM,KAAK,IAAI,CAAC,EAC/B,CAACC,MAAM,EAAEC,cAAc,KAAK;IAC3B,SAAS;;IACT,IACC,CAAC,IAAAC,mDAAiC,EAAC;MAClChB,OAAO;MACPC,KAAK;MACLC,aAAa;MACbe,gBAAgB,EAAE,CAAC,CAACV,aAAa;MACjCO,MAAM;MACNC;IACD,CAAC,CAAC,EACD;MACD;IACD;IACA;IACA;IACAP,uBAAuB,CAAC,CAAC;EAC1B,CAAC,EACD,CAACR,OAAO,EAAEC,KAAK,EAAEC,aAAa,EAAEK,aAAa,EAAEC,uBAAuB,CACvE,CAAC;AACF,CAAC;AAACU,OAAA,CAAApB,2BAAA,GAAAA,2BAAA","ignoreList":[]}
|
|
@@ -18,6 +18,7 @@ var _useAutoSourceMeasurement = require("./hooks/use-auto-source-measurement");
|
|
|
18
18
|
var _useBoundaryMeasureAndStore = require("./hooks/use-boundary-measure-and-store");
|
|
19
19
|
var _useBoundaryPresence = require("./hooks/use-boundary-presence");
|
|
20
20
|
var _useGroupActiveMeasurement = require("./hooks/use-group-active-measurement");
|
|
21
|
+
var _useGroupActiveSourceMeasurement = require("./hooks/use-group-active-source-measurement");
|
|
21
22
|
var _useInitialLayoutHandler = require("./hooks/use-initial-layout-handler");
|
|
22
23
|
var _usePendingDestinationMeasurement = require("./hooks/use-pending-destination-measurement");
|
|
23
24
|
var _usePendingDestinationRetryMeasurement = require("./hooks/use-pending-destination-retry-measurement");
|
|
@@ -25,13 +26,16 @@ var _useScrollSettledMeasurement = require("./hooks/use-scroll-settled-measureme
|
|
|
25
26
|
var _buildBoundaryMatchKey = require("./utils/build-boundary-match-key");
|
|
26
27
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
28
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
28
|
-
const
|
|
29
|
+
const setGroupSelectionOnUI = (group, id) => {
|
|
29
30
|
"worklet";
|
|
30
31
|
|
|
31
32
|
_bounds.BoundStore.setGroupActiveId(group, id);
|
|
32
33
|
};
|
|
33
|
-
function createBoundaryComponent(Wrapped) {
|
|
34
|
-
const
|
|
34
|
+
function createBoundaryComponent(Wrapped, options = {}) {
|
|
35
|
+
const {
|
|
36
|
+
alreadyAnimated = false
|
|
37
|
+
} = options;
|
|
38
|
+
const AnimatedComponent = alreadyAnimated ? Wrapped : _reactNativeReanimated.default.createAnimatedComponent(Wrapped);
|
|
35
39
|
const Inner = /*#__PURE__*/(0, _react.forwardRef)((props, _ref) => {
|
|
36
40
|
const {
|
|
37
41
|
enabled = true,
|
|
@@ -152,6 +156,18 @@ function createBoundaryComponent(Wrapped) {
|
|
|
152
156
|
maybeMeasureAndStore
|
|
153
157
|
});
|
|
154
158
|
|
|
159
|
+
// Source-side analog for grouped retargeting: when an unfocused/source
|
|
160
|
+
// boundary becomes the active member, refresh its snapshot (and source
|
|
161
|
+
// link when one exists) so close transitions don't use stale geometry.
|
|
162
|
+
(0, _useGroupActiveSourceMeasurement.useGroupActiveSourceMeasurement)({
|
|
163
|
+
enabled: runtimeEnabled,
|
|
164
|
+
group,
|
|
165
|
+
id,
|
|
166
|
+
hasNextScreen,
|
|
167
|
+
isAnimating,
|
|
168
|
+
maybeMeasureAndStore
|
|
169
|
+
});
|
|
170
|
+
|
|
155
171
|
// While idle on source screens, re-measure after scroll settles so a later
|
|
156
172
|
// close transition starts from up-to-date source geometry.
|
|
157
173
|
(0, _useScrollSettledMeasurement.useScrollSettledMeasurement)({
|
|
@@ -175,10 +191,10 @@ function createBoundaryComponent(Wrapped) {
|
|
|
175
191
|
const handlePress = (0, _react.useCallback)((...args) => {
|
|
176
192
|
// Press path has priority: capture source before user onPress/navigation.
|
|
177
193
|
if (group) {
|
|
178
|
-
(0, _reactNativeReanimated.runOnUI)(
|
|
194
|
+
(0, _reactNativeReanimated.runOnUI)(setGroupSelectionOnUI)(group, String(id));
|
|
179
195
|
}
|
|
180
196
|
(0, _reactNativeReanimated.runOnUI)(maybeMeasureAndStore)({
|
|
181
|
-
|
|
197
|
+
intent: "capture-source"
|
|
182
198
|
});
|
|
183
199
|
if (typeof onPress === "function") {
|
|
184
200
|
onPress(...args);
|
|
@@ -223,8 +239,6 @@ const Boundary = exports.Boundary = {
|
|
|
223
239
|
/** Passive boundary wrapper (no built-in press semantics). */
|
|
224
240
|
View: BoundaryView,
|
|
225
241
|
/** Pressable boundary wrapper with press-priority source capture. */
|
|
226
|
-
Pressable: BoundaryPressable
|
|
227
|
-
/** Factory for custom boundary wrappers. */
|
|
228
|
-
createBoundaryComponent
|
|
242
|
+
Pressable: BoundaryPressable
|
|
229
243
|
};
|
|
230
244
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_useAssociatedStyle","_layoutAnchor","_descriptors","_animation","_bounds","_styles","_useAutoSourceMeasurement","_useBoundaryMeasureAndStore","_useBoundaryPresence","_useGroupActiveMeasurement","_useInitialLayoutHandler","_usePendingDestinationMeasurement","_usePendingDestinationRetryMeasurement","_useScrollSettledMeasurement","_buildBoundaryMatchKey","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_useAssociatedStyle","_layoutAnchor","_descriptors","_animation","_bounds","_styles","_useAutoSourceMeasurement","_useBoundaryMeasureAndStore","_useBoundaryPresence","_useGroupActiveMeasurement","_useGroupActiveSourceMeasurement","_useInitialLayoutHandler","_usePendingDestinationMeasurement","_usePendingDestinationRetryMeasurement","_useScrollSettledMeasurement","_buildBoundaryMatchKey","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","setGroupSelectionOnUI","group","id","BoundStore","setGroupActiveId","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","_ref","enabled","anchor","scaleMode","target","method","style","onPress","rest","sharedBoundTag","buildBoundaryMatchKey","animatedRef","useAnimatedRef","previousScreenKey","preferredSourceScreenKey","currentScreenKey","nextScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","hasConfiguredInterpolator","useDescriptorDerivations","runtimeEnabled","hasNextScreen","shouldUpdateDestination","layoutAnchor","useLayoutAnchorContext","boundaryConfig","useMemo","undefined","isAnimating","AnimationStore","getRouteAnimation","progress","preparedStyles","prepareStyleForBounds","associatedStyles","useAssociatedStyles","resetTransformOnUnset","waitForFirstResolvedStyle","maybeMeasureAndStore","useBoundaryMeasureAndStore","shouldRunDestinationEffects","useBoundaryPresence","useAutoSourceMeasurement","usePendingDestinationMeasurement","expectedSourceScreenKey","usePendingDestinationRetryMeasurement","animating","useGroupActiveMeasurement","useGroupActiveSourceMeasurement","useScrollSettledMeasurement","useInitialLayoutHandler","handlePress","useCallback","args","runOnUI","String","intent","resolvedOnPress","jsx","ref","collapsable","memo","BoundaryView","RNView","displayName","BoundaryPressable","Pressable","Boundary","exports","View"],"sourceRoot":"../../../../../src","sources":["shared/components/create-boundary-component/index.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,yBAAA,GAAAV,OAAA;AACA,IAAAW,2BAAA,GAAAX,OAAA;AACA,IAAAY,oBAAA,GAAAZ,OAAA;AACA,IAAAa,0BAAA,GAAAb,OAAA;AACA,IAAAc,gCAAA,GAAAd,OAAA;AACA,IAAAe,wBAAA,GAAAf,OAAA;AACA,IAAAgB,iCAAA,GAAAhB,OAAA;AACA,IAAAiB,sCAAA,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IAED,MAAMoD,eAAe,GACpB,OAAOpD,OAAO,KAAK,UAAU,GAAG8C,WAAW,GAAGxB,SAAS;IAExD,oBACC,IAAAhE,WAAA,CAAA+F,GAAA,EAAClE,iBAAiB;MAAA,GACZc,IAAI;MACTqD,GAAG,EAAElD,WAAY;MACjBL,KAAK,EAAE,CAACA,KAAK,EAAEL,OAAO,GAAGmC,gBAAgB,GAAGP,SAAS,CAAE;MACvDtB,OAAO,EAAEoD,eAAgB;MACzBG,WAAW,EAAE;IAAM,CACnB,CAAC;EAEJ,CAAC,CAAC;EAEF,oBAAO,IAAAC,WAAI,EAAClE,KAAK,CAAC;AAMnB;;AAEA;AACA,MAAMmE,YAAY,GAAG1E,uBAAuB,CAAC2E,iBAAM,CAAC;AACpDD,YAAY,CAACE,WAAW,GAAG,0BAA0B;AAErD,MAAMC,iBAAiB,GAAG7E,uBAAuB,CAAC8E,sBAAS,CAAC;AAC5DD,iBAAiB,CAACD,WAAW,GAAG,+BAA+B;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG;EACvB;EACAE,IAAI,EAAEP,YAAY;EAClB;EACAI,SAAS,EAAED;AACZ,CAAC","ignoreList":[]}
|
package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js
CHANGED
|
@@ -4,18 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.buildBoundaryMatchKey = buildBoundaryMatchKey;
|
|
7
|
-
function buildBoundaryMatchKey(
|
|
7
|
+
function buildBoundaryMatchKey(params) {
|
|
8
8
|
"worklet";
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} = paramsOrGroup;
|
|
15
|
-
return group ? `${group}:${id}` : String(id);
|
|
16
|
-
}
|
|
17
|
-
const group = paramsOrGroup;
|
|
18
|
-
const id = legacyId;
|
|
10
|
+
const {
|
|
11
|
+
group,
|
|
12
|
+
id
|
|
13
|
+
} = params;
|
|
19
14
|
return group ? `${group}:${id}` : String(id);
|
|
20
15
|
}
|
|
21
16
|
//# sourceMappingURL=build-boundary-match-key.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["buildBoundaryMatchKey","
|
|
1
|
+
{"version":3,"names":["buildBoundaryMatchKey","params","group","id","String"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/utils/build-boundary-match-key.ts"],"mappings":";;;;;;AAUO,SAASA,qBAAqBA,CACpCC,MAAmC,EAC1B;EACT,SAAS;;EACT,MAAM;IAAEC,KAAK;IAAEC;EAAG,CAAC,GAAGF,MAAM;EAC5B,OAAOC,KAAK,GAAG,GAAGA,KAAK,IAAIC,EAAE,EAAE,GAAGC,MAAM,CAACD,EAAE,CAAC;AAC7C","ignoreList":[]}
|
|
@@ -17,9 +17,10 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
17
17
|
|
|
18
18
|
function createTransitionAwareComponent(Wrapped, options = {}) {
|
|
19
19
|
const {
|
|
20
|
-
isScrollable = false
|
|
20
|
+
isScrollable = false,
|
|
21
|
+
alreadyAnimated = false
|
|
21
22
|
} = options;
|
|
22
|
-
const AnimatedComponent = _reactNativeReanimated.default.createAnimatedComponent(Wrapped);
|
|
23
|
+
const AnimatedComponent = alreadyAnimated ? Wrapped : _reactNativeReanimated.default.createAnimatedComponent(Wrapped);
|
|
23
24
|
const ScrollableInner = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
|
|
24
25
|
const {
|
|
25
26
|
remeasureOnFocus: _remeasureOnFocus,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeGestureHandler","_reactNativeReanimated","_interopRequireWildcard","_useAssociatedStyle","_useScrollRegistry","_registerBounds","_scrollSettle","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","createTransitionAwareComponent","Wrapped","options","isScrollable","AnimatedComponent","Animated","createAnimatedComponent","ScrollableInner","forwardRef","props","ref","remeasureOnFocus","_remeasureOnFocus","onScroll","userOnScroll","onMomentumScrollEnd","userOnMomentumScrollEnd","onScrollEndDrag","userOnScrollEndDrag","scrollableProps","settledSignal","useSharedValue","emitScrollSettled","useCallback","runOnUI","value","scrollDirection","horizontal","scrollHandler","onContentSizeChange","onLayout","nativeGesture","useScrollRegistry","direction","composedScrollHandler","useComposedEventHandler","handleMomentumScrollEnd","event","handleScrollEndDrag","velocityX","Math","abs","nativeEvent","velocity","x","velocityY","y","scrollableComponent","jsx","scrollEventThrottle","ScrollSettleProvider","children","GestureDetector","gesture","Inner","_","style","sharedBoundTag","styleId","onPress","rest","animatedRef","useAnimatedRef","associatedStyles","associatedProps","useAssociatedStyles","id","resetTransformOnUnset","waitForFirstResolvedStyle","RegisterBoundsProvider","captureActiveOnPress","handleInitialLayout","animatedProps","collapsable","memo"],"sourceRoot":"../../../../src","sources":["shared/components/create-transition-aware-component.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,0BAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAMA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AAA2E,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAG,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAd3E;;
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeGestureHandler","_reactNativeReanimated","_interopRequireWildcard","_useAssociatedStyle","_useScrollRegistry","_registerBounds","_scrollSettle","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","createTransitionAwareComponent","Wrapped","options","isScrollable","alreadyAnimated","AnimatedComponent","Animated","createAnimatedComponent","ScrollableInner","forwardRef","props","ref","remeasureOnFocus","_remeasureOnFocus","onScroll","userOnScroll","onMomentumScrollEnd","userOnMomentumScrollEnd","onScrollEndDrag","userOnScrollEndDrag","scrollableProps","settledSignal","useSharedValue","emitScrollSettled","useCallback","runOnUI","value","scrollDirection","horizontal","scrollHandler","onContentSizeChange","onLayout","nativeGesture","useScrollRegistry","direction","composedScrollHandler","useComposedEventHandler","handleMomentumScrollEnd","event","handleScrollEndDrag","velocityX","Math","abs","nativeEvent","velocity","x","velocityY","y","scrollableComponent","jsx","scrollEventThrottle","ScrollSettleProvider","children","GestureDetector","gesture","Inner","_","style","sharedBoundTag","styleId","onPress","rest","animatedRef","useAnimatedRef","associatedStyles","associatedProps","useAssociatedStyles","id","resetTransformOnUnset","waitForFirstResolvedStyle","RegisterBoundsProvider","captureActiveOnPress","handleInitialLayout","animatedProps","collapsable","memo"],"sourceRoot":"../../../../src","sources":["shared/components/create-transition-aware-component.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,0BAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAMA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AAA2E,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAG,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CA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