react-native-screen-transitions 3.9.0-beta.2 → 3.9.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js +19 -14
- package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +14 -7
- package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +32 -2
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js +4 -3
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js +3 -2
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +2 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +2 -3
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +1 -0
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js +1 -3
- package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/teleport.js +2 -1
- package/lib/commonjs/shared/components/boundary/portal/teleport.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +16 -3
- package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/commonjs/shared/constants.js +4 -0
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +4 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/activation/use-pan-activation.js +10 -10
- package/lib/commonjs/shared/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +10 -2
- package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-build-pan-gesture.js +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pan/use-build-pan-gesture.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +25 -3
- package/lib/commonjs/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +4 -6
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -2
- package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +6 -1
- package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/snapshot.js +2 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/snapshot.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/gestures/shared/values.js +2 -0
- package/lib/commonjs/shared/providers/screen/gestures/shared/values.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +11 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/commonjs/shared/stores/gesture.store.js +8 -0
- package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +24 -7
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +2 -1
- package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +177 -314
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js +12 -18
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js +196 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +94 -108
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js +72 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js +55 -0
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js.map +1 -0
- package/lib/module/shared/components/boundary/components/boundary-target.js +20 -15
- package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +14 -7
- package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +2 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +32 -2
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js +5 -4
- package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js +3 -2
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +3 -2
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +3 -4
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +1 -0
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js +1 -3
- package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/teleport.js +1 -0
- package/lib/module/shared/components/boundary/portal/teleport.js.map +1 -1
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +17 -4
- package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
- package/lib/module/shared/constants.js +4 -0
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +4 -0
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/activation/use-pan-activation.js +10 -10
- package/lib/module/shared/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +10 -2
- package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/use-build-pan-gesture.js +1 -1
- package/lib/module/shared/providers/screen/gestures/pan/use-build-pan-gesture.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +23 -2
- package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +4 -6
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -2
- package/lib/module/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +6 -1
- package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/snapshot.js +2 -0
- package/lib/module/shared/providers/screen/gestures/shared/snapshot.js.map +1 -1
- package/lib/module/shared/providers/screen/gestures/shared/values.js +2 -0
- package/lib/module/shared/providers/screen/gestures/shared/values.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +11 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
- package/lib/module/shared/stores/gesture.store.js +8 -0
- package/lib/module/shared/stores/gesture.store.js.map +1 -1
- package/lib/module/shared/types/bounds.types.js +26 -0
- package/lib/module/shared/types/bounds.types.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +24 -7
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js +2 -1
- package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js +181 -318
- package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js +11 -17
- package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/drag.js +184 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/drag.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +91 -102
- package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/mask.js +67 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/mask.js.map +1 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/targets.js +50 -0
- package/lib/module/shared/utils/bounds/navigation/zoom/targets.js.map +1 -0
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts +3 -1
- package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/components/host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts +1 -3
- package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts +2 -3
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts +2 -3
- package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/teleport.d.ts +1 -0
- package/lib/typescript/shared/components/boundary/portal/teleport.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +1 -0
- package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +1 -1
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/activation/use-pan-activation.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/pan/activation/use-pan-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pan/use-build-pan-gesture.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts +2 -0
- package/lib/typescript/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/snapshot.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/gestures/shared/values.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
- package/lib/typescript/shared/stores/gesture.store.d.ts +4 -0
- package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +115 -88
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/gesture.types.d.ts +10 -0
- package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +1 -1
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts +7 -17
- package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/drag.d.ts +55 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/drag.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +31 -34
- package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/mask.d.ts +25 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/mask.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts +16 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/components/boundary/components/boundary-target.tsx +37 -26
- package/src/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +16 -13
- package/src/shared/components/boundary/portal/components/boundary-content-portal/components/host.tsx +6 -2
- package/src/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +46 -3
- package/src/shared/components/boundary/portal/components/boundary-content-portal/index.tsx +8 -5
- package/src/shared/components/boundary/portal/components/boundary-portal/components/host.tsx +3 -2
- package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +3 -2
- package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.tsx +4 -5
- package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +5 -1
- package/src/shared/components/boundary/portal/components/boundary-portal/index.tsx +1 -4
- package/src/shared/components/boundary/portal/teleport.ts +1 -0
- package/src/shared/components/boundary/providers/boundary-root.provider.tsx +23 -3
- package/src/shared/constants.ts +4 -0
- package/src/shared/index.ts +2 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +8 -0
- package/src/shared/providers/screen/gestures/pan/activation/use-pan-activation.ts +16 -7
- package/src/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.ts +18 -1
- package/src/shared/providers/screen/gestures/pan/use-build-pan-gesture.ts +1 -0
- package/src/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.ts +40 -2
- package/src/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.ts +7 -11
- package/src/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.ts +12 -15
- package/src/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.ts +6 -1
- package/src/shared/providers/screen/gestures/shared/snapshot.ts +2 -0
- package/src/shared/providers/screen/gestures/shared/values.ts +2 -0
- package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +14 -1
- package/src/shared/stores/gesture.store.ts +12 -0
- package/src/shared/types/bounds.types.ts +119 -90
- package/src/shared/types/gesture.types.ts +10 -0
- package/src/shared/types/index.ts +2 -0
- package/src/shared/utils/animation/animate-to-progress.ts +23 -7
- package/src/shared/utils/bounds/navigation/reveal/math.ts +2 -1
- package/src/shared/utils/bounds/navigation/zoom/build.ts +223 -411
- package/src/shared/utils/bounds/navigation/zoom/config.ts +15 -18
- package/src/shared/utils/bounds/navigation/zoom/drag.ts +327 -0
- package/src/shared/utils/bounds/navigation/zoom/helpers.ts +122 -184
- package/src/shared/utils/bounds/navigation/zoom/mask.ts +130 -0
- package/src/shared/utils/bounds/navigation/zoom/targets.ts +74 -0
- package/src/shared/utils/bounds/navigation/zoom/types.ts +1 -1
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js +0 -25
- package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js.map +0 -1
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js +0 -20
- package/lib/module/shared/utils/bounds/navigation/zoom/math.js.map +0 -1
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts +0 -8
- package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts.map +0 -1
- package/src/shared/utils/bounds/navigation/zoom/math.ts +0 -25
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bounds.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/bounds.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"bounds.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/bounds.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACN,kCAAkC,EAClC,g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AM,EAAE,CAAC,CAAC,SAAS,oBAAoB,GAAG,oBAAoB,EAC7D,OAAO,CAAC,EAAE,CAAC,KACP,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC3B;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC,SAAS,oBAAoB,GAAG,oBAAoB,EAC3D,OAAO,CAAC,EAAE,CAAC,KACP,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC3B,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,mBAAmB,KAAK,UAAU,GAAG,IAAI,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAC5B,OAAO,EAAE,mBAAmB,KACxB,oBAAoB,CAAC;AAE1B,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAC1C,wBAAwB,EACxB,QAAQ,GAAG,YAAY,CACvB,CAAC;AAEF,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -110,6 +110,8 @@ export type GestureHandoffValues = {
|
|
|
110
110
|
normScale: number;
|
|
111
111
|
focalX: number;
|
|
112
112
|
focalY: number;
|
|
113
|
+
pinchOriginX: number;
|
|
114
|
+
pinchOriginY: number;
|
|
113
115
|
rotation: number;
|
|
114
116
|
raw: RawGestureValues;
|
|
115
117
|
/**
|
|
@@ -161,6 +163,14 @@ export type GestureValues = {
|
|
|
161
163
|
* The live pinch focal point y-position in screen coordinates.
|
|
162
164
|
*/
|
|
163
165
|
focalY: number;
|
|
166
|
+
/**
|
|
167
|
+
* The pinch focal point x-position captured when the gesture activated.
|
|
168
|
+
*/
|
|
169
|
+
pinchOriginX: number;
|
|
170
|
+
/**
|
|
171
|
+
* The pinch focal point y-position captured when the gesture activated.
|
|
172
|
+
*/
|
|
173
|
+
pinchOriginY: number;
|
|
164
174
|
/**
|
|
165
175
|
* The live two-finger rotation in radians.
|
|
166
176
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gesture.types.d.ts","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,MAAM,CAAC;IACpB,4CAA4C;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FALSE, TRUE } from "../constants";
|
|
2
2
|
export type { AnimatedViewStyle, AnimationConfig, BoundaryTeleportControl, ScreenInterpolationProps, ScreenStyleInterpolator, ScreenTransitionAccessor, ScreenTransitionDepthTarget, ScreenTransitionOptions, ScreenTransitionState, ScreenTransitionTarget, TransitionInterpolatedStyle, TransitionInterpolatorOptions, TransitionSlotProps, TransitionSlotStyle, TransitionSpec, } from "./animation.types";
|
|
3
|
-
export type { BoundsAccessor, BoundsMethod, BoundsMotion, BoundsMotionFrame, BoundsMotionTransform, BoundsNavigationAccessor, BoundsNavigationRevealOptions, BoundsNavigationRevealStyle, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, } from "./bounds.types";
|
|
3
|
+
export type { BoundsAccessor, BoundsMethod, BoundsMotion, BoundsMotionFrame, BoundsMotionTransform, BoundsNavigationAccessor, BoundsNavigationRevealOptions, BoundsNavigationRevealStyle, BoundsNavigationZoomAxisResponse, BoundsNavigationZoomDragOptions, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, } from "./bounds.types";
|
|
4
4
|
export type { ActivationArea, GestureActivationArea, GestureDirection, GestureDirectionActivationArea, GestureDirectionConfig, GestureDirectionEntry, GestureDirectionOption, GestureHandoffValues, GestureValues, PanGestureDirection, PinchGestureDirection, RawGestureValues, ScrollGestureAxis, ScrollGestureAxisState, ScrollGestureState, ScrollMetadataState, SideActivation, } from "./gesture.types";
|
|
5
5
|
export type { OverlayProps } from "./overlay.types";
|
|
6
6
|
export type { GestureTracking, InactiveBehavior, Layout, ScreenBackdropComponent, ScreenBackdropComponentProps, ScreenContentComponent, ScreenContentComponentProps, ScreenKey, ScreenLayerComponentProps, ScreenTransitionConfig, TransitionAwareProps, } from "./screen.types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,EAC3B,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,eAAe,EACf,gBAAgB,EAChB,MAAM,EACN,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,2BAA2B,EAC3B,SAAS,EACT,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,kBAAkB,GAClB,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,2BAA2B,EAC3B,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,2BAA2B,EAC3B,gCAAgC,EAChC,+BAA+B,EAC/B,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,8BAA8B,EAC9B,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,eAAe,EACf,gBAAgB,EAChB,MAAM,EACN,uBAAuB,EACvB,4BAA4B,EAC5B,sBAAsB,EACtB,2BAA2B,EAC3B,SAAS,EACT,yBAAyB,EACzB,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,EACb,qBAAqB,EACrB,kBAAkB,GAClB,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animate-to-progress.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/animation/animate-to-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,UAAU,sBAAsB;IAC/B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAoBD,eAAO,MAAM,iBAAiB,GAAI,kHAS/B,sBAAsB,
|
|
1
|
+
{"version":3,"file":"animate-to-progress.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/animation/animate-to-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAGlE,UAAU,sBAAsB;IAC/B;;;;;OAKG;IACH,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,UAAU,EAAE,iBAAiB,CAAC;IAC9B,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB;AAoBD,eAAO,MAAM,iBAAiB,GAAI,kHAS/B,sBAAsB,SAyGxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/math.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAa7D,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAGjE;AAED,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,UAQjB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,UAG7C;AAED,eAAO,MAAM,0BAA0B,GACtC,aAAa,MAAM,EACnB,WAAW,MAAM,WAejB,CAAC;AAEF,wBAAgB,iCAAiC,CAChD,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,OAAO,UAajB;AAED,wBAAgB,mBAAmB,CAAC,EACnC,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,GACjB,EAAE;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;CAC1B,UAWA;AAED,wBAAgB,2BAA2B,CAAC,EAC3C,OAAO,EACP,cAAc,GACd,EAAE;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;CACvB;;;EAoBA;AAED,wBAAgB,0BAA0B,CAAC,EAC1C,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,aAAa,GACb,EAAE;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACtB,
|
|
1
|
+
{"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/reveal/math.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAa7D,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAGjE;AAED,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,UAQjB;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,UAG7C;AAED,eAAO,MAAM,0BAA0B,GACtC,aAAa,MAAM,EACnB,WAAW,MAAM,WAejB,CAAC;AAEF,wBAAgB,iCAAiC,CAChD,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,OAAO,UAajB;AAED,wBAAgB,mBAAmB,CAA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,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACrB;;;;;EAuCA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { BuildZoomStylesParams, ZoomInterpolatedStyle } from "./types";
|
|
2
|
-
export declare function buildZoomStyles({ tag,
|
|
2
|
+
export declare function buildZoomStyles({ tag, props, zoomOptions, }: BuildZoomStylesParams): ZoomInterpolatedStyle;
|
|
3
3
|
//# sourceMappingURL=build.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/build.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/build.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE5E,wBAAgB,eAAe,CAAC,EAC/B,GAAG,EACH,KAAK,EACL,WAAW,GACX,EAAE,qBAAqB,GAAG,qBAAqB,CAgR/C"}
|
|
@@ -2,22 +2,12 @@ export declare const ZOOM_SHARED_OPTIONS: Readonly<{
|
|
|
2
2
|
anchor: "top";
|
|
3
3
|
scaleMode: "uniform";
|
|
4
4
|
}>;
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const ZOOM_DRAG_DIRECTIONAL_SCALE_MAX = 1.06;
|
|
7
|
-
export declare const ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT = 2;
|
|
8
|
-
export declare const ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX = 1;
|
|
9
|
-
export declare const ZOOM_DRAG_TRANSLATION_POSITIVE_MAX = 1;
|
|
10
|
-
export declare const ZOOM_DRAG_TRANSLATION_EXPONENT = 1;
|
|
11
|
-
export declare const ZOOM_DISMISS_SCALE_ORBIT_DEPTH = 0.5;
|
|
5
|
+
export declare const ZOOM_DISMISS_VELOCITY_DEPTH = 1;
|
|
12
6
|
export declare const ZOOM_BACKGROUND_SCALE = 0.9375;
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
|
|
19
|
-
right: 0;
|
|
20
|
-
bottom: 0;
|
|
21
|
-
left: 0;
|
|
22
|
-
}>;
|
|
7
|
+
export declare const ZOOM_BACKDROP_MAX_OPACITY = 0.45;
|
|
8
|
+
export declare const ZOOM_SCREEN_A_FADE_END = 0.54;
|
|
9
|
+
export declare const ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE: readonly [0, 0.4, 0, 1];
|
|
10
|
+
export declare const ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE: readonly [1.27, 1.4, 1, 0];
|
|
11
|
+
export declare const ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE: readonly [0.13, 0.7, 0, 1];
|
|
12
|
+
export declare const ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE: readonly [1.7, 2, 1, 0];
|
|
23
13
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;EAG9B,CAAC;AAEH,eAAO,MAAM
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;EAG9B,CAAC;AAEH,eAAO,MAAM,2BAA2B,IAAM,CAAC;AAC/C,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAE5C,eAAO,MAAM,yBAAyB,OAAO,CAAC;AAE9C,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C,eAAO,MAAM,uCAAuC,yBAA0B,CAAC;AAC/E,eAAO,MAAM,yCAAyC,4BAE5C,CAAC;AAEX,eAAO,MAAM,wCAAwC,4BAE3C,CAAC;AACX,eAAO,MAAM,0CAA0C,yBAE7C,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { MeasuredDimensions } from "react-native-reanimated";
|
|
2
|
+
import type { BoundsInterpolationProps, BoundsNavigationZoomDragOptions } from "../../../../types/bounds.types";
|
|
3
|
+
import type { Layout } from "../../../../types/screen.types";
|
|
4
|
+
type ZoomGesture = BoundsInterpolationProps["active"]["gesture"];
|
|
5
|
+
export type ZoomDragState = {
|
|
6
|
+
collapsesMask: boolean;
|
|
7
|
+
dismissContentScale: number;
|
|
8
|
+
dismissNorm: number;
|
|
9
|
+
dismissProgress: number;
|
|
10
|
+
dragX: number;
|
|
11
|
+
dragY: number;
|
|
12
|
+
gestureScale: number;
|
|
13
|
+
isDismissing: boolean;
|
|
14
|
+
isVerticalInverted: boolean;
|
|
15
|
+
rotation: number;
|
|
16
|
+
};
|
|
17
|
+
export declare function resolveZoomDismissContentScale({ transitionRemaining, releaseScale, targetScale, velocity, velocityDepth, }: {
|
|
18
|
+
transitionRemaining: number;
|
|
19
|
+
releaseScale: number;
|
|
20
|
+
targetScale: number;
|
|
21
|
+
velocity: number;
|
|
22
|
+
velocityDepth: number;
|
|
23
|
+
}): number;
|
|
24
|
+
export declare function resolveZoomPrimaryDragTranslation({ translation, dimension, }: {
|
|
25
|
+
translation: number;
|
|
26
|
+
dimension: number;
|
|
27
|
+
}): number;
|
|
28
|
+
export declare function resolveZoomHorizontalDragTranslation({ translation, dimension, }: {
|
|
29
|
+
translation: number;
|
|
30
|
+
dimension: number;
|
|
31
|
+
}): number;
|
|
32
|
+
export declare function resolveZoomCrossAxisDragTranslation({ translation, dimension, }: {
|
|
33
|
+
translation: number;
|
|
34
|
+
dimension: number;
|
|
35
|
+
}): number;
|
|
36
|
+
export declare function resolveZoomDragScale(normalized: number): number;
|
|
37
|
+
export declare function resolveZoomPinchScale(scale: number): number;
|
|
38
|
+
export declare function resolveZoomDismissalNorm(normalized: number, isInverted: boolean): number;
|
|
39
|
+
export declare function resolveZoomDragState({ gesture, activeTransitionProgress, screenLayout, sourceBounds, trackingContentTarget, dragOptions, }: {
|
|
40
|
+
gesture: ZoomGesture;
|
|
41
|
+
activeTransitionProgress: number;
|
|
42
|
+
screenLayout: Layout;
|
|
43
|
+
sourceBounds: MeasuredDimensions;
|
|
44
|
+
trackingContentTarget: MeasuredDimensions;
|
|
45
|
+
dragOptions?: BoundsNavigationZoomDragOptions;
|
|
46
|
+
}): ZoomDragState;
|
|
47
|
+
export declare function resolveZoomTrackedGestureScale({ drag, activeTransitionProgress, screenLayout, sourceBounds, trackingContentTarget, }: {
|
|
48
|
+
drag: ZoomDragState;
|
|
49
|
+
activeTransitionProgress: number;
|
|
50
|
+
screenLayout: Layout;
|
|
51
|
+
sourceBounds: MeasuredDimensions;
|
|
52
|
+
trackingContentTarget: MeasuredDimensions;
|
|
53
|
+
}): number;
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=drag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drag.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/drag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EACX,wBAAwB,EACxB,+BAA+B,EAC/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAe7D,KAAK,WAAW,GAAG,wBAAwB,CAAC,QAAQ,CAA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wBAAgB,oBAAoB,CAAC,EACpC,OAAO,EACP,wBAAwB,EACxB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,WAAW,GACX,EAAE;IACF,OAAO,EAAE,WAAW,CAAC;IACrB,wBAAwB,EAAE,MAAM,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,kBAAkB,CAAC;IACjC,qBAAqB,EAAE,kBAAkB,CAAC;IAC1C,WAAW,CAAC,EAAE,+BAA+B,CAAC;CAC9C,GAAG,aAAa,CAoHhB;AAED,wBAAgB,8BAA8B,CAAC,EAC9C,IAAI,EACJ,wBAAwB,EACxB,YAAY,EACZ,YAAY,EACZ,qBAAqB,GACrB,EAAE;IACF,IAAI,EAAE,aAAa,CAAC;IACpB,wBAAwB,EAAE,MAAM,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,kBAAkB,CAAC;IACjC,qBAAqB,EAAE,kBAAkB,CAAC;CAC1C,UAeA"}
|
|
@@ -1,39 +1,36 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ActiveGesture, ResolvedPanGestureDirection } from "../../../../types/gesture.types";
|
|
1
|
+
import type { MeasuredDimensions } from "react-native-reanimated";
|
|
3
2
|
import type { Layout } from "../../../../types/screen.types";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
export declare function resolveZoomBackdropOpacity({ transitionProgress, dismissalDrag, fadeEnd, maxOpacity, }: {
|
|
4
|
+
transitionProgress: number;
|
|
5
|
+
dismissalDrag: number;
|
|
6
|
+
fadeEnd: number;
|
|
7
|
+
maxOpacity: number;
|
|
8
|
+
}): number;
|
|
9
|
+
export declare function resolveZoomPinchFocalOffset({ gestureScale, pinchOriginX, pinchOriginY, progress, rotation, screenLayout, }: {
|
|
10
|
+
gestureScale: number;
|
|
11
|
+
pinchOriginX: number;
|
|
12
|
+
pinchOriginY: number;
|
|
13
|
+
progress: number;
|
|
14
|
+
rotation: number;
|
|
7
15
|
screenLayout: Layout;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export declare function resolveDragScaleTuple(value: readonly [shrinkMin: number, growMax: number, exponent?: number] | undefined): {
|
|
12
|
-
shrinkMin: number;
|
|
13
|
-
growMax: number;
|
|
14
|
-
exponent: number;
|
|
15
|
-
};
|
|
16
|
-
export declare function resolveDragTranslationTuple(value: readonly [negativeMax: number, positiveMax: number, exponent?: number] | undefined): {
|
|
17
|
-
negativeMax: number;
|
|
18
|
-
positiveMax: number;
|
|
19
|
-
exponent: number;
|
|
16
|
+
}): {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
20
19
|
};
|
|
21
|
-
export declare function
|
|
22
|
-
export declare function resolveZoomPanGestureDirection({ active, direction, normX, normY, rawNormX, rawNormY, }: {
|
|
23
|
-
active: ActiveGesture | null | undefined;
|
|
24
|
-
direction: ActiveGesture | null | undefined;
|
|
25
|
-
normX: number;
|
|
26
|
-
normY: number;
|
|
27
|
-
rawNormX: number;
|
|
28
|
-
rawNormY: number;
|
|
29
|
-
}): ResolvedPanGestureDirection | null;
|
|
30
|
-
export declare function interpolateOpacityRange(params: {
|
|
20
|
+
export declare function resolveZoomTrackedSourceTransform({ progress, sourceBounds, destinationBounds, screenLayout, dragX, dragY, gestureScale, parentScale, rotation, }: {
|
|
31
21
|
progress: number;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
22
|
+
sourceBounds: MeasuredDimensions;
|
|
23
|
+
destinationBounds: MeasuredDimensions;
|
|
24
|
+
screenLayout: Layout;
|
|
25
|
+
dragX: number;
|
|
26
|
+
dragY: number;
|
|
27
|
+
gestureScale: number;
|
|
28
|
+
parentScale: number;
|
|
29
|
+
rotation?: number;
|
|
30
|
+
}): {
|
|
31
|
+
scaleX: number;
|
|
32
|
+
scaleY: number;
|
|
33
|
+
translateX: number;
|
|
34
|
+
translateY: number;
|
|
35
|
+
};
|
|
39
36
|
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAM7D,wBAAgB,0BAA0B,CAAC,EAC1C,kBAAkB,EAClB,aAAa,EACb,OAAO,EACP,UAAU,GACV,EAAE;IACF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACnB,UAUA;AAED,wBAAgB,2BAA2B,CAAC,EAC3C,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,YAAY,GACZ,EAAE;IACF,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACrB;;;EAmBA;AAED,wBAAgB,iCAAiC,CAAC,EACjD,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACL,KAAK,EACL,YAAY,EACZ,WAAW,EACX,QAAY,GACZ,EAAE;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,kBAAkB,CAAC;IACjC,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;;;;;EAgEA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { MeasuredDimensions } from "react-native-reanimated";
|
|
2
|
+
import type { ScreenTransitionState, TransitionSlotStyle } from "../../../../types/animation.types";
|
|
3
|
+
import type { BoundsLink, BoundsScopedAccessor } from "../../../../types/bounds.types";
|
|
4
|
+
import type { Layout } from "../../../../types/screen.types";
|
|
5
|
+
import type { ZoomDragState } from "./drag";
|
|
6
|
+
export declare const ZOOM_NAVIGATION_MASK_BORDER_RADIUS = 64;
|
|
7
|
+
interface ZoomNavigationMaskStyleProps {
|
|
8
|
+
scopedBounds: BoundsScopedAccessor;
|
|
9
|
+
link: BoundsLink;
|
|
10
|
+
sourceBounds: MeasuredDimensions;
|
|
11
|
+
screenLayout: Layout;
|
|
12
|
+
transitionProgress: number;
|
|
13
|
+
drag: ZoomDragState;
|
|
14
|
+
contentTransform: {
|
|
15
|
+
translateX: number;
|
|
16
|
+
translateY: number;
|
|
17
|
+
scale: number;
|
|
18
|
+
};
|
|
19
|
+
sourceBorderRadius: number;
|
|
20
|
+
expandedBorderRadius: number;
|
|
21
|
+
active: ScreenTransitionState;
|
|
22
|
+
}
|
|
23
|
+
export declare function resolveZoomNavigationMaskStyle({ scopedBounds, link, sourceBounds, screenLayout, transitionProgress, drag, contentTransform, sourceBorderRadius, expandedBorderRadius, active, }: ZoomNavigationMaskStyleProps): TransitionSlotStyle;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=mask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mask.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/mask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EACX,qBAAqB,EACrB,mBAAmB,EACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EACX,UAAU,EACV,oBAAoB,EACpB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAQ7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,eAAO,MAAM,kCAAkC,KAAK,CAAC;AAGrD,UAAU,4BAA4B;IACrC,YAAY,EAAE,oBAAoB,CAAC;IACnC,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,kBAAkB,CAAC;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,gBAAgB,EAAE;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;IACF,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,MAAM,EAAE,qBAAqB,CAAC;CAC9B;AAED,wBAAgB,8BAA8B,CAAC,EAC9C,YAAY,EACZ,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,IAAI,EACJ,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,MAAM,GACN,EAAE,4BAA4B,GAAG,mBAAmB,CA8EpD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { MeasuredDimensions } from "react-native-reanimated";
|
|
2
|
+
import type { BoundsLink, BoundsNavigationZoomOptions } from "../../../../types/bounds.types";
|
|
3
|
+
import type { Layout } from "../../../../types/screen.types";
|
|
4
|
+
type ZoomContentTarget = Exclude<BoundsNavigationZoomOptions["target"], undefined>;
|
|
5
|
+
export declare function getZoomContentTarget({ explicitTarget, screenLayout, link, }: {
|
|
6
|
+
explicitTarget: BoundsNavigationZoomOptions["target"];
|
|
7
|
+
screenLayout: Layout;
|
|
8
|
+
link: BoundsLink;
|
|
9
|
+
}): ZoomContentTarget;
|
|
10
|
+
export declare function resolveZoomTrackingContentTarget({ contentTarget, link, screenLayout, }: {
|
|
11
|
+
contentTarget: ZoomContentTarget;
|
|
12
|
+
link: BoundsLink;
|
|
13
|
+
screenLayout: Layout;
|
|
14
|
+
}): MeasuredDimensions | undefined;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=targets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"targets.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/targets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EACX,UAAU,EACV,2BAA2B,EAC3B,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE7D,KAAK,iBAAiB,GAAG,OAAO,CAC/B,2BAA2B,CAAC,QAAQ,CAAC,EACrC,SAAS,CACT,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,EACpC,cAAc,EACd,YAAY,EACZ,IAAI,GACJ,EAAE;IACF,cAAc,EAAE,2BAA2B,CAAC,QAAQ,CAAC,CAAC;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;CACjB,GAAG,iBAAiB,CAwBpB;AAED,wBAAgB,gCAAgC,CAAC,EAChD,aAAa,EACb,IAAI,EACJ,YAAY,GACZ,EAAE;IACF,aAAa,EAAE,iBAAiB,CAAC;IACjC,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACrB,GAAG,kBAAkB,GAAG,SAAS,CAmBjC"}
|
|
@@ -6,7 +6,7 @@ export type ZoomInterpolatedStyle = BoundsNavigationZoomStyle & {
|
|
|
6
6
|
};
|
|
7
7
|
export type BuildZoomStylesParams = {
|
|
8
8
|
tag?: string;
|
|
9
|
-
zoomOptions?: BoundsNavigationZoomOptions;
|
|
10
9
|
props: BoundsInterpolationProps;
|
|
10
|
+
zoomOptions?: BoundsNavigationZoomOptions;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,kCAAkC,EAClC,gCAAgC,EAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACX,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,qBAAqB,GAAG,yBAAyB,GAAG;IAC/D,CAAC,kCAAkC,CAAC,CAAC,EAAE,yBAAyB,CAAC,OAAO,kCAAkC,CAAC,CAAC;IAC5G,CAAC,gCAAgC,CAAC,CAAC,EAAE,yBAAyB,CAAC,OAAO,gCAAgC,CAAC,CAAC;CACxG,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IACnC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/navigation/zoom/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,kCAAkC,EAClC,gCAAgC,EAChC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACX,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,qBAAqB,GAAG,yBAAyB,GAAG;IAC/D,CAAC,kCAAkC,CAAC,CAAC,EAAE,yBAAyB,CAAC,OAAO,kCAAkC,CAAC,CAAC;IAC5G,CAAC,gCAAgC,CAAC,CAAC,EAAE,yBAAyB,CAAC,OAAO,gCAAgC,CAAC,CAAC;CACxG,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IACnC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,wBAAwB,CAAC;IAChC,WAAW,CAAC,EAAE,2BAA2B,CAAC;CAC1C,CAAC"}
|
package/package.json
CHANGED
|
@@ -8,31 +8,38 @@ import {
|
|
|
8
8
|
} from "../../../providers/screen/styles";
|
|
9
9
|
import { prepareStyleForBounds } from "../../../utils/bounds/helpers/styles/styles";
|
|
10
10
|
import { useRegisterTarget } from "../hooks/use-register-target";
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
BoundaryContentPortal,
|
|
13
|
+
BoundaryContentPortalHost,
|
|
14
|
+
} from "../portal/components/boundary-content-portal";
|
|
12
15
|
import { BoundaryPortal } from "../portal/components/boundary-portal";
|
|
13
16
|
import { useBoundaryRootContext } from "../providers/boundary-root.provider";
|
|
14
17
|
|
|
15
|
-
type BoundaryTargetProps =
|
|
18
|
+
type BoundaryTargetProps = Omit<
|
|
19
|
+
React.ComponentProps<typeof Animated.View>,
|
|
20
|
+
"children"
|
|
21
|
+
> & {
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
};
|
|
16
24
|
|
|
17
25
|
export const BoundaryTarget = memo(function BoundaryTarget(
|
|
18
26
|
props: BoundaryTargetProps,
|
|
19
27
|
) {
|
|
20
|
-
const { pointerEvents, style, ...rest } = props;
|
|
28
|
+
const { children, pointerEvents, style, ...rest } = props;
|
|
21
29
|
const targetAnimatedRef = useAnimatedRef<View>();
|
|
22
30
|
const targetEscapePlaceholderRef = useAnimatedRef<View>();
|
|
23
31
|
const rootContext = useBoundaryRootContext();
|
|
24
32
|
const boundaryId = rootContext?.boundTag.tag;
|
|
25
33
|
const isActiveTarget = rootContext?.activeTargetRef === targetAnimatedRef;
|
|
26
34
|
const portalRuntime = rootContext?.portalRuntime;
|
|
27
|
-
const
|
|
28
|
-
typeof pointerEvents === "string" ? pointerEvents : undefined;
|
|
35
|
+
const handoffEnabled = isActiveTarget && rootContext?.handoffEnabled === true;
|
|
29
36
|
const shouldEscapeTargetToScreenHost =
|
|
30
37
|
portalRuntime?.escapeClipping === true && boundaryId !== undefined;
|
|
31
38
|
|
|
32
39
|
const shouldApplyAssociatedStyleInline =
|
|
33
|
-
isActiveTarget && portalRuntime?.
|
|
40
|
+
isActiveTarget && portalRuntime?.escapeClipping !== true;
|
|
34
41
|
const shouldApplyPortalLayoutStyle =
|
|
35
|
-
isActiveTarget && portalRuntime?.
|
|
42
|
+
isActiveTarget && portalRuntime?.escapeClipping === true;
|
|
36
43
|
|
|
37
44
|
const associatedTargetStyles = useComposedSlotStyles(
|
|
38
45
|
rootContext?.boundTag.tag,
|
|
@@ -52,27 +59,31 @@ export const BoundaryTarget = memo(function BoundaryTarget(
|
|
|
52
59
|
boundaryId={boundaryId ?? ""}
|
|
53
60
|
enabled={shouldEscapeTargetToScreenHost}
|
|
54
61
|
placeholderRef={targetEscapePlaceholderRef}
|
|
55
|
-
pointerEvents={portalPointerEvents}
|
|
56
62
|
>
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
<Animated.View
|
|
64
|
+
{...rest}
|
|
65
|
+
pointerEvents={pointerEvents}
|
|
66
|
+
ref={targetAnimatedRef}
|
|
67
|
+
style={[
|
|
68
|
+
style,
|
|
69
|
+
shouldApplyAssociatedStyleInline ? associatedTargetStyles : undefined,
|
|
70
|
+
shouldApplyPortalLayoutStyle ? portalLayoutStyle : undefined,
|
|
71
|
+
]}
|
|
72
|
+
collapsable={false}
|
|
61
73
|
>
|
|
62
|
-
<
|
|
63
|
-
{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
</BoundaryContentPortal>
|
|
74
|
+
<BoundaryContentPortalHost
|
|
75
|
+
boundaryId={boundaryId ?? ""}
|
|
76
|
+
enabled={handoffEnabled}
|
|
77
|
+
screenKey={rootContext?.currentScreenKey ?? ""}
|
|
78
|
+
>
|
|
79
|
+
<BoundaryContentPortal
|
|
80
|
+
boundaryId={boundaryId}
|
|
81
|
+
enabled={handoffEnabled}
|
|
82
|
+
>
|
|
83
|
+
{children}
|
|
84
|
+
</BoundaryContentPortal>
|
|
85
|
+
</BoundaryContentPortalHost>
|
|
86
|
+
</Animated.View>
|
|
76
87
|
</BoundaryPortal>
|
|
77
88
|
);
|
|
78
89
|
});
|
package/src/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts
CHANGED
|
@@ -80,21 +80,26 @@ export const useInitialDestinationMeasurement = ({
|
|
|
80
80
|
unblockLifecycleStart();
|
|
81
81
|
}, [isBlockingLifecycleStart, retryToken, unblockLifecycleStart]);
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
) {
|
|
83
|
+
const claimLifecycleStartBlock = useCallback(() => {
|
|
84
|
+
"worklet";
|
|
85
|
+
|
|
86
|
+
// The progress check and block claim must share one UI-thread operation.
|
|
87
|
+
// Otherwise a JS-thread layout effect can observe zero, enqueue the block,
|
|
88
|
+
// and let the opening animation start before that block reaches the UI thread.
|
|
89
|
+
if (progress.get() > 0 || isBlockingLifecycleStart.get()) {
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
// Boundary layout effects run before the parent screen's open intent. Claim
|
|
94
|
-
// this boundary's startup block before the transition controller can consume
|
|
95
|
-
// the request; the UI-thread handshake below releases it once matching is done.
|
|
96
93
|
blockLifecycleStart();
|
|
97
94
|
isBlockingLifecycleStart.set(1);
|
|
95
|
+
}, [blockLifecycleStart, isBlockingLifecycleStart, progress]);
|
|
96
|
+
|
|
97
|
+
useLayoutEffect(() => {
|
|
98
|
+
if (!destinationEnabled || !initialDestinationPairKey) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
runOnUI(claimLifecycleStartBlock)();
|
|
98
103
|
|
|
99
104
|
return () => {
|
|
100
105
|
if (escapeClipping) {
|
|
@@ -107,12 +112,10 @@ export const useInitialDestinationMeasurement = ({
|
|
|
107
112
|
runOnUI(releaseLifecycleStartBlock)();
|
|
108
113
|
};
|
|
109
114
|
}, [
|
|
110
|
-
|
|
115
|
+
claimLifecycleStartBlock,
|
|
111
116
|
destinationEnabled,
|
|
112
117
|
escapeClipping,
|
|
113
118
|
initialDestinationPairKey,
|
|
114
|
-
isBlockingLifecycleStart,
|
|
115
|
-
progress,
|
|
116
119
|
releaseLifecycleStartBlock,
|
|
117
120
|
]);
|
|
118
121
|
|
package/src/shared/components/boundary/portal/components/boundary-content-portal/components/host.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { memo, type ReactNode } from "react";
|
|
2
2
|
import { StyleSheet } from "react-native";
|
|
3
3
|
import Animated from "react-native-reanimated";
|
|
4
|
-
import { NativePortalHost } from "../../../teleport";
|
|
4
|
+
import { NativePortalHost, PORTAL_POINTER_EVENTS } from "../../../teleport";
|
|
5
5
|
import { createBoundaryContentPortalHostName } from "../helpers/host-name";
|
|
6
6
|
|
|
7
7
|
const AnimatedPortalHost = NativePortalHost
|
|
@@ -34,7 +34,11 @@ export const BoundaryContentPortalHost = memo(
|
|
|
34
34
|
return (
|
|
35
35
|
<>
|
|
36
36
|
{children}
|
|
37
|
-
<AnimatedPortalHost
|
|
37
|
+
<AnimatedPortalHost
|
|
38
|
+
name={portalHostName}
|
|
39
|
+
pointerEvents={PORTAL_POINTER_EVENTS}
|
|
40
|
+
style={styles.host}
|
|
41
|
+
/>
|
|
38
42
|
</>
|
|
39
43
|
);
|
|
40
44
|
},
|