react-native-screen-transitions 3.4.0-alpha.7 → 3.4.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js +6 -4
- package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +20 -59
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +53 -41
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +4 -23
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +84 -2
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js +67 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js.map +1 -0
- package/lib/commonjs/shared/components/create-boundary-component/index.js +10 -5
- package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/commonjs/shared/components/create-transition-aware-component.js +8 -32
- package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +11 -9
- package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +7 -5
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/index.js +3 -1
- package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/commonjs/shared/constants.js +16 -1
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +43 -0
- package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
- package/lib/commonjs/shared/index.js +6 -0
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +7 -0
- package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +1 -11
- package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/commonjs/shared/stores/animation.store.js +9 -3
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +18 -2
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +7 -48
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js +10 -0
- package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +5 -11
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +108 -28
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js +3 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +6 -4
- package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +21 -60
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +51 -39
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +4 -23
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +86 -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-prepare-transition-measurement.js +62 -0
- package/lib/module/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js.map +1 -0
- package/lib/module/shared/components/create-boundary-component/index.js +10 -5
- package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
- package/lib/module/shared/components/create-transition-aware-component.js +10 -34
- package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +11 -9
- package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +7 -5
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/index.js +3 -1
- package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
- package/lib/module/shared/constants.js +15 -0
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +39 -0
- package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
- package/lib/module/shared/index.js +1 -1
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js +7 -0
- package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
- package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/styles.provider.js +1 -11
- package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
- package/lib/module/shared/stores/animation.store.js +9 -3
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/registry.js +18 -2
- package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +7 -48
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/utils/animation/animate-to-progress.js +10 -0
- package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +5 -11
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/build.js +110 -30
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/config.js +2 -0
- package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +16 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +3 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +1 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +6 -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-prepare-transition-measurement.d.ts +12 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +10 -4
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts +1 -1
- package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -1
- package/lib/typescript/shared/constants.d.ts +33 -0
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts +13 -0
- package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +1 -0
- package/lib/typescript/shared/index.d.ts +2 -2
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +3 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +5 -2
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +0 -2
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/types/animation.types.d.ts +11 -0
- package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +34 -1
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +2 -1
- package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +2 -0
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/components/create-boundary-component/components/boundary-target.tsx +6 -4
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +26 -59
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +5 -1
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +68 -54
- package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +19 -3
- package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +5 -34
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +165 -6
- package/src/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.ts +107 -0
- package/src/shared/components/create-boundary-component/index.tsx +10 -5
- package/src/shared/components/create-boundary-component/types.ts +1 -2
- package/src/shared/components/create-transition-aware-component.tsx +10 -47
- package/src/shared/components/screen-container/hooks/use-content-layout.ts +10 -17
- package/src/shared/components/screen-container/layers/backdrop.tsx +6 -9
- package/src/shared/components/screen-lifecycle/index.tsx +1 -4
- package/src/shared/constants.ts +11 -0
- package/src/shared/hooks/reanimated/use-animated-debounce.ts +56 -0
- package/src/shared/index.ts +1 -0
- package/src/shared/providers/gestures/handlers/use-handlers.ts +9 -0
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +27 -1
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +6 -0
- package/src/shared/providers/screen/styles/styles.provider.tsx +1 -12
- package/src/shared/stores/animation.store.ts +11 -2
- package/src/shared/stores/bounds/internals/registry.ts +24 -3
- package/src/shared/stores/bounds/internals/resolver.ts +6 -75
- package/src/shared/stores/bounds/types.ts +0 -2
- package/src/shared/types/animation.types.ts +13 -0
- package/src/shared/types/bounds.types.ts +34 -1
- package/src/shared/utils/animation/animate-to-progress.ts +11 -1
- package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +1 -11
- package/src/shared/utils/bounds/zoom/build.ts +158 -45
- package/src/shared/utils/bounds/zoom/config.ts +2 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -54
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -122
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -72
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -66
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -58
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -53
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -49
- package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -118
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -67
- package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -61
- package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -53
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -48
- package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts +0 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +0 -17
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts +0 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts +0 -10
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +0 -11
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +0 -10
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +0 -1
- package/src/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.ts +0 -58
- package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +0 -162
- package/src/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts +0 -82
- package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +0 -92
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +0 -87
- package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +0 -49
|
@@ -31,8 +31,7 @@ const resolveBounds = params => {
|
|
|
31
31
|
currentScreenKey,
|
|
32
32
|
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
33
33
|
destinationScreenKey: resolvedPair.destinationScreenKey,
|
|
34
|
-
hasTargetOverride
|
|
35
|
-
usedSnapshotDestination: resolvedPair.usedSnapshotDestination
|
|
34
|
+
hasTargetOverride
|
|
36
35
|
};
|
|
37
36
|
}
|
|
38
37
|
|
|
@@ -45,8 +44,7 @@ const resolveBounds = params => {
|
|
|
45
44
|
currentScreenKey,
|
|
46
45
|
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
47
46
|
destinationScreenKey: resolvedPair.destinationScreenKey,
|
|
48
|
-
hasTargetOverride
|
|
49
|
-
usedSnapshotDestination: resolvedPair.usedSnapshotDestination
|
|
47
|
+
hasTargetOverride
|
|
50
48
|
};
|
|
51
49
|
}
|
|
52
50
|
const start = sourceBounds;
|
|
@@ -65,8 +63,7 @@ const resolveBounds = params => {
|
|
|
65
63
|
currentScreenKey,
|
|
66
64
|
sourceScreenKey: resolvedPair.sourceScreenKey,
|
|
67
65
|
destinationScreenKey: resolvedPair.destinationScreenKey,
|
|
68
|
-
hasTargetOverride
|
|
69
|
-
usedSnapshotDestination: resolvedPair.usedSnapshotDestination
|
|
66
|
+
hasTargetOverride
|
|
70
67
|
};
|
|
71
68
|
};
|
|
72
69
|
export const computeBoundStyles = ({
|
|
@@ -93,9 +90,7 @@ export const computeBoundStyles = ({
|
|
|
93
90
|
entering,
|
|
94
91
|
currentScreenKey,
|
|
95
92
|
sourceScreenKey,
|
|
96
|
-
destinationScreenKey
|
|
97
|
-
hasTargetOverride,
|
|
98
|
-
usedSnapshotDestination
|
|
93
|
+
destinationScreenKey
|
|
99
94
|
} = resolveBounds({
|
|
100
95
|
id,
|
|
101
96
|
previous,
|
|
@@ -113,8 +108,7 @@ export const computeBoundStyles = ({
|
|
|
113
108
|
}
|
|
114
109
|
const ranges = entering ? ENTER_RANGE : EXIT_RANGE;
|
|
115
110
|
if (computeOptions.method === "content") {
|
|
116
|
-
const
|
|
117
|
-
const currentOwnsSource = !!currentScreenKey && currentScreenKey === sourceScreenKey && (currentScreenKey !== destinationScreenKey || ignoresSnapshotDestinationOwnership);
|
|
111
|
+
const currentOwnsSource = !!currentScreenKey && currentScreenKey === sourceScreenKey && currentScreenKey !== destinationScreenKey;
|
|
118
112
|
const contentStart = currentOwnsSource ? end : start;
|
|
119
113
|
const contentEnd = currentOwnsSource ? start : end;
|
|
120
114
|
const geometry = computeContentTransformGeometry({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EMPTY_BOUND_HELPER_RESULT_RAW","ENTER_RANGE","EXIT_RANGE","FULLSCREEN_DIMENSIONS","HIDDEN_STYLE","NO_STYLES","BoundStore","computeContentTransformGeometry","computeRelativeGeometry","composeContentStyle","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","resolveBounds","params","entering","next","fullscreen","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","
|
|
1
|
+
{"version":3,"names":["EMPTY_BOUND_HELPER_RESULT_RAW","ENTER_RANGE","EXIT_RANGE","FULLSCREEN_DIMENSIONS","HIDDEN_STYLE","NO_STYLES","BoundStore","computeContentTransformGeometry","computeRelativeGeometry","composeContentStyle","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","resolveBounds","params","entering","next","fullscreen","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","customTarget","computeBoundStyles","progress","raw","ranges","method","currentOwnsSource","contentStart","contentEnd","geometry","anchor","scaleMode","common","isSize","isAbsolute","space"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/compute-bounds-styles.ts"],"mappings":";;AACA,SACCA,6BAA6B,EAC7BC,WAAW,EACX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KAAK;IACLC,GAAG;IACHK,QAAQ;IACRE,MAAM;IACNK,QAAQ;IACR9B;EACD,CAAC;EAED,MAAMkC,MAAM,GAAGlC,cAAc,CAAC0B,MAAM,KAAK,MAAM;EAC/C,MAAMS,UAAU,GAAGnC,cAAc,CAACoC,KAAK,KAAK,UAAU;EAEtD,OAAOF,MAAM,GACVC,UAAU,GACT9C,mBAAmB,CAAC4C,MAAM,CAAC,GAC3B3C,mBAAmB,CAAC2C,MAAM,CAAC,GAC5BE,UAAU,GACT5C,wBAAwB,CAAC0C,MAAM,CAAC,GAChCzC,wBAAwB,CAACyC,MAAM,CAAC;AACrC,CAAC","ignoreList":[]}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { interpolate } from "react-native-reanimated";
|
|
3
|
+
import { interpolate, makeMutable } from "react-native-reanimated";
|
|
4
4
|
import { EPSILON, HIDDEN_STYLE, NAVIGATION_MASK_CONTAINER_STYLE_ID, NAVIGATION_MASK_ELEMENT_STYLE_ID, VISIBLE_STYLE } from "../../../constants";
|
|
5
5
|
import { BoundStore } from "../../../stores/bounds";
|
|
6
6
|
import { computeBoundStyles } from "../helpers/compute-bounds-styles";
|
|
7
|
-
import { getZoomAnchor, toNumber, ZOOM_DRAG_DIRECTIONAL_SCALE_MAX, ZOOM_DRAG_DIRECTIONAL_SCALE_MIN, ZOOM_DRAG_RESISTANCE, ZOOM_MASK_OUTSET, ZOOM_SHARED_OPTIONS } from "./config";
|
|
7
|
+
import { getZoomAnchor, toNumber, ZOOM_BACKGROUND_SCALE, ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT, ZOOM_DRAG_DIRECTIONAL_SCALE_MAX, ZOOM_DRAG_DIRECTIONAL_SCALE_MIN, ZOOM_DRAG_RESISTANCE, ZOOM_MASK_OUTSET, ZOOM_SHARED_OPTIONS } from "./config";
|
|
8
8
|
import { combineScales, composeCompensatedTranslation, computeCenterScaleShift, normalizedToTranslation, resolveDirectionalDragScale } from "./math";
|
|
9
9
|
const IDENTITY_DRAG_SCALE_OUTPUT = [1, 1];
|
|
10
|
+
const UNFOCUSED_ENTER_FADE_END = 1.6;
|
|
11
|
+
const presentedZoomTagByRoute = makeMutable({});
|
|
10
12
|
|
|
11
13
|
/* -------------------------------------------------------------------------- */
|
|
12
14
|
/* LOCAL HELPERS */
|
|
@@ -43,6 +45,65 @@ function getZoomContentTarget({
|
|
|
43
45
|
height
|
|
44
46
|
};
|
|
45
47
|
}
|
|
48
|
+
function resolveDragScaleTuple(value) {
|
|
49
|
+
"worklet";
|
|
50
|
+
|
|
51
|
+
return {
|
|
52
|
+
shrinkMin: value?.[0] ?? ZOOM_DRAG_DIRECTIONAL_SCALE_MIN,
|
|
53
|
+
growMax: value?.[1] ?? ZOOM_DRAG_DIRECTIONAL_SCALE_MAX,
|
|
54
|
+
exponent: value?.[2] ?? ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function resolveBackgroundScale(value) {
|
|
58
|
+
"worklet";
|
|
59
|
+
|
|
60
|
+
return value ?? ZOOM_BACKGROUND_SCALE;
|
|
61
|
+
}
|
|
62
|
+
function resolveEffectiveZoomTag(params) {
|
|
63
|
+
"worklet";
|
|
64
|
+
|
|
65
|
+
const {
|
|
66
|
+
resolvedTag,
|
|
67
|
+
activeRouteKey,
|
|
68
|
+
entering,
|
|
69
|
+
animating,
|
|
70
|
+
activeProgress,
|
|
71
|
+
livePairReady
|
|
72
|
+
} = params;
|
|
73
|
+
|
|
74
|
+
// Only grouped ids need retarget stabilization. Plain ids should keep their
|
|
75
|
+
// normal behavior with no route-level caching.
|
|
76
|
+
if (!activeRouteKey || !resolvedTag.includes(":")) {
|
|
77
|
+
return resolvedTag;
|
|
78
|
+
}
|
|
79
|
+
const cachedTag = presentedZoomTagByRoute.value[activeRouteKey];
|
|
80
|
+
const isFreshOpenFrame = entering && activeProgress <= 0.05;
|
|
81
|
+
const shouldFreezeDuringEnter = entering && animating && !isFreshOpenFrame;
|
|
82
|
+
if (!cachedTag || isFreshOpenFrame) {
|
|
83
|
+
presentedZoomTagByRoute.modify(state => ({
|
|
84
|
+
...state,
|
|
85
|
+
[activeRouteKey]: resolvedTag
|
|
86
|
+
}));
|
|
87
|
+
return resolvedTag;
|
|
88
|
+
}
|
|
89
|
+
if (shouldFreezeDuringEnter) {
|
|
90
|
+
return cachedTag;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// After the enter animation, grouped retargeting can still briefly point at a
|
|
94
|
+
// new active id before that tag has usable bounds. Keep presenting the last
|
|
95
|
+
// good tag until the next one is transition-ready.
|
|
96
|
+
if (cachedTag !== resolvedTag && !livePairReady) {
|
|
97
|
+
return cachedTag;
|
|
98
|
+
}
|
|
99
|
+
if (cachedTag !== resolvedTag) {
|
|
100
|
+
presentedZoomTagByRoute.modify(state => ({
|
|
101
|
+
...state,
|
|
102
|
+
[activeRouteKey]: resolvedTag
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
105
|
+
return resolvedTag;
|
|
106
|
+
}
|
|
46
107
|
|
|
47
108
|
/* -------------------------------------------------------------------------- */
|
|
48
109
|
/* BUILD ZOOM STYLES */
|
|
@@ -60,17 +121,31 @@ export function buildZoomStyles({
|
|
|
60
121
|
/* ------------------------------ Shared Setup ------------------------------ */
|
|
61
122
|
|
|
62
123
|
const explicitTarget = zoomOptions?.target;
|
|
63
|
-
const debug = zoomOptions?.DEBUG === true;
|
|
64
124
|
const focused = props.focused;
|
|
65
125
|
const progress = props.progress;
|
|
66
126
|
const screenLayout = props.layouts.screen;
|
|
67
127
|
const isEnteringTransition = !props.next;
|
|
128
|
+
const activeRouteKey = props.active.route.key;
|
|
68
129
|
const currentRouteKey = props.current?.route.key;
|
|
69
130
|
const previousRouteKey = props.previous?.route.key;
|
|
70
131
|
const nextRouteKey = props.next?.route.key;
|
|
71
132
|
const resolvedZoomAnchor = getZoomAnchor(explicitTarget);
|
|
133
|
+
const liveResolvedPair = BoundStore.resolveTransitionPair(resolvedTag, {
|
|
134
|
+
currentScreenKey: currentRouteKey,
|
|
135
|
+
previousScreenKey: previousRouteKey,
|
|
136
|
+
nextScreenKey: nextRouteKey,
|
|
137
|
+
entering: isEnteringTransition
|
|
138
|
+
});
|
|
139
|
+
const effectiveTag = resolveEffectiveZoomTag({
|
|
140
|
+
resolvedTag,
|
|
141
|
+
activeRouteKey,
|
|
142
|
+
entering: !!props.active.entering,
|
|
143
|
+
animating: !!props.active.animating,
|
|
144
|
+
activeProgress: props.active.progress,
|
|
145
|
+
livePairReady: !!liveResolvedPair.sourceBounds
|
|
146
|
+
});
|
|
72
147
|
const zoomComputeParams = {
|
|
73
|
-
id:
|
|
148
|
+
id: effectiveTag,
|
|
74
149
|
previous: props.previous,
|
|
75
150
|
current: props.current,
|
|
76
151
|
next: props.next,
|
|
@@ -78,11 +153,11 @@ export function buildZoomStyles({
|
|
|
78
153
|
dimensions: screenLayout
|
|
79
154
|
};
|
|
80
155
|
const baseRawOptions = {
|
|
81
|
-
id:
|
|
156
|
+
id: effectiveTag,
|
|
82
157
|
raw: true,
|
|
83
158
|
scaleMode: ZOOM_SHARED_OPTIONS.scaleMode
|
|
84
159
|
};
|
|
85
|
-
const resolvedPair = BoundStore.resolveTransitionPair(
|
|
160
|
+
const resolvedPair = effectiveTag === resolvedTag ? liveResolvedPair : BoundStore.resolveTransitionPair(effectiveTag, {
|
|
86
161
|
currentScreenKey: currentRouteKey,
|
|
87
162
|
previousScreenKey: previousRouteKey,
|
|
88
163
|
nextScreenKey: nextRouteKey,
|
|
@@ -91,16 +166,17 @@ export function buildZoomStyles({
|
|
|
91
166
|
const sourceBorderRadius = getSourceBorderRadius(resolvedPair);
|
|
92
167
|
const targetBorderRadius = zoomOptions?.borderRadius ?? sourceBorderRadius;
|
|
93
168
|
const sourceVisibilityStyle = {
|
|
94
|
-
[
|
|
169
|
+
[effectiveTag]: VISIBLE_STYLE
|
|
95
170
|
};
|
|
96
171
|
const focusedContentSlot = props.navigationMaskEnabled ? NAVIGATION_MASK_CONTAINER_STYLE_ID : "content";
|
|
97
172
|
|
|
98
173
|
/* --------------------------- Missing Source Guard -------------------------- */
|
|
99
174
|
|
|
100
|
-
//
|
|
101
|
-
//
|
|
102
|
-
//
|
|
103
|
-
|
|
175
|
+
// Only the focused entering route should be hidden when source bounds are
|
|
176
|
+
// missing. During grouped retargeting, the unfocused/source route can still be
|
|
177
|
+
// styled by the destination interpolator while the new active member is warming
|
|
178
|
+
// up; hiding there blanks the wrong screen.
|
|
179
|
+
if (focused && !resolvedPair.sourceBounds && props.active.entering) {
|
|
104
180
|
return {
|
|
105
181
|
[focusedContentSlot]: HIDDEN_STYLE
|
|
106
182
|
};
|
|
@@ -123,19 +199,22 @@ export function buildZoomStyles({
|
|
|
123
199
|
dimension: screenLayout.height,
|
|
124
200
|
resistance: ZOOM_DRAG_RESISTANCE
|
|
125
201
|
});
|
|
202
|
+
const horizontalDragScale = resolveDragScaleTuple(zoomOptions?.horizontalDragScale);
|
|
203
|
+
const verticalDragScale = resolveDragScaleTuple(zoomOptions?.verticalDragScale);
|
|
204
|
+
const backgroundScale = resolveBackgroundScale(zoomOptions?.backgroundScale);
|
|
126
205
|
const dragXScale = isHorizontalDismiss ? resolveDirectionalDragScale({
|
|
127
206
|
normalized: normX,
|
|
128
207
|
dismissDirection: initialDirection === "horizontal-inverted" ? "negative" : "positive",
|
|
129
|
-
shrinkMin:
|
|
130
|
-
growMax:
|
|
131
|
-
exponent:
|
|
208
|
+
shrinkMin: horizontalDragScale.shrinkMin,
|
|
209
|
+
growMax: horizontalDragScale.growMax,
|
|
210
|
+
exponent: horizontalDragScale.exponent
|
|
132
211
|
}) : IDENTITY_DRAG_SCALE_OUTPUT[0];
|
|
133
212
|
const dragYScale = isVerticalDismiss ? resolveDirectionalDragScale({
|
|
134
213
|
normalized: normY,
|
|
135
214
|
dismissDirection: initialDirection === "vertical-inverted" ? "negative" : "positive",
|
|
136
|
-
shrinkMin:
|
|
137
|
-
growMax:
|
|
138
|
-
exponent:
|
|
215
|
+
shrinkMin: verticalDragScale.shrinkMin,
|
|
216
|
+
growMax: verticalDragScale.growMax,
|
|
217
|
+
exponent: verticalDragScale.exponent
|
|
139
218
|
}) : IDENTITY_DRAG_SCALE_OUTPUT[1];
|
|
140
219
|
const dragScale = combineScales(dragXScale, dragYScale);
|
|
141
220
|
|
|
@@ -161,7 +240,7 @@ export function buildZoomStyles({
|
|
|
161
240
|
space: "absolute",
|
|
162
241
|
target: "fullscreen"
|
|
163
242
|
}, resolvedPair);
|
|
164
|
-
const focusedFade = props.active?.closing ? interpolate(progress, [0.6, 1], [0,
|
|
243
|
+
const focusedFade = props.active?.closing ? interpolate(progress, [0.6, 1], [0, 1], "clamp") : interpolate(progress, [0, 0.5], [0, 1], "clamp");
|
|
165
244
|
|
|
166
245
|
/**
|
|
167
246
|
* This is also how swiftui handles their navigation zoom.
|
|
@@ -221,17 +300,18 @@ export function buildZoomStyles({
|
|
|
221
300
|
|
|
222
301
|
/* ---------------------------- Unfocused Screen ---------------------------- */
|
|
223
302
|
|
|
224
|
-
const unfocusedFade = props.active?.closing ? interpolate(progress, [1.
|
|
225
|
-
const unfocusedScale = interpolate(progress, [1, 2], [1,
|
|
303
|
+
const unfocusedFade = props.active?.closing ? interpolate(progress, [1.9, 2], [1, 0], "clamp") : interpolate(progress, [1, 2], [1, 0], "clamp");
|
|
304
|
+
const unfocusedScale = interpolate(progress, [1, 2], [1, backgroundScale], "clamp");
|
|
226
305
|
const isUnfocusedIdle = props.active.settled === 1;
|
|
227
|
-
const shouldHideUnfocusedIdle = isUnfocusedIdle
|
|
228
|
-
const
|
|
229
|
-
const
|
|
306
|
+
const shouldHideUnfocusedIdle = isUnfocusedIdle;
|
|
307
|
+
const didSourceComponentVisiblyHide = !props.active.closing && unfocusedFade <= EPSILON;
|
|
308
|
+
const shouldResetUnfocusedElement = !props.active.closing && (props.active.logicallySettled || didSourceComponentVisiblyHide);
|
|
309
|
+
const unfocusedElementTarget = getZoomContentTarget({
|
|
230
310
|
explicitTarget,
|
|
231
311
|
screenLayout,
|
|
232
312
|
anchor: ZOOM_SHARED_OPTIONS.anchor,
|
|
233
313
|
resolvedPair
|
|
234
|
-
})
|
|
314
|
+
});
|
|
235
315
|
const elementRaw = computeBoundStyles(zoomComputeParams, {
|
|
236
316
|
...baseRawOptions,
|
|
237
317
|
anchor: resolvedZoomAnchor,
|
|
@@ -284,15 +364,15 @@ export function buildZoomStyles({
|
|
|
284
364
|
elevation: 0
|
|
285
365
|
} : {
|
|
286
366
|
transform: [{
|
|
287
|
-
translateX:
|
|
367
|
+
translateX: shouldResetUnfocusedElement ? 0 : elementTranslateX
|
|
288
368
|
}, {
|
|
289
|
-
translateY:
|
|
369
|
+
translateY: shouldResetUnfocusedElement ? 0 : elementTranslateY
|
|
290
370
|
}, {
|
|
291
|
-
scaleX:
|
|
371
|
+
scaleX: shouldResetUnfocusedElement ? 1 : elementScaleX
|
|
292
372
|
}, {
|
|
293
|
-
scaleY:
|
|
373
|
+
scaleY: shouldResetUnfocusedElement ? 1 : elementScaleY
|
|
294
374
|
}],
|
|
295
|
-
opacity:
|
|
375
|
+
opacity: unfocusedFade,
|
|
296
376
|
zIndex: 9999,
|
|
297
377
|
elevation: 9999
|
|
298
378
|
};
|
|
@@ -304,7 +384,7 @@ export function buildZoomStyles({
|
|
|
304
384
|
}]
|
|
305
385
|
}
|
|
306
386
|
},
|
|
307
|
-
[
|
|
387
|
+
[effectiveTag]: {
|
|
308
388
|
style: resolvedElementStyle
|
|
309
389
|
}
|
|
310
390
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["interpolate","EPSILON","HIDDEN_STYLE","NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","VISIBLE_STYLE","BoundStore","computeBoundStyles","getZoomAnchor","toNumber","ZOOM_DRAG_DIRECTIONAL_SCALE_MAX","ZOOM_DRAG_DIRECTIONAL_SCALE_MIN","ZOOM_DRAG_RESISTANCE","ZOOM_MASK_OUTSET","ZOOM_SHARED_OPTIONS","combineScales","composeCompensatedTranslation","computeCenterScaleShift","normalizedToTranslation","resolveDirectionalDragScale","IDENTITY_DRAG_SCALE_OUTPUT","getSourceBorderRadius","resolvedPair","sourceStyles","borderRadius","getZoomContentTarget","explicitTarget","screenLayout","anchor","sourceBounds","screenWidth","width","height","verticalAnchor","y","x","pageX","pageY","buildZoomStyles","resolvedTag","zoomOptions","props","target","debug","DEBUG","focused","progress","layouts","screen","isEnteringTransition","next","currentRouteKey","current","route","key","previousRouteKey","previous","nextRouteKey","resolvedZoomAnchor","zoomComputeParams","id","dimensions","baseRawOptions","raw","scaleMode","resolveTransitionPair","currentScreenKey","previousScreenKey","nextScreenKey","entering","sourceBorderRadius","targetBorderRadius","sourceVisibilityStyle","focusedContentSlot","navigationMaskEnabled","active","normX","gesture","normY","initialDirection","direction","isHorizontalDismiss","isVerticalDismiss","dragX","normalized","dimension","resistance","dragY","dragXScale","dismissDirection","shrinkMin","growMax","exponent","dragYScale","dragScale","focusedContentTarget","contentRaw","method","maskRaw","space","focusedFade","closing","shouldRemoveClipping","animating","focusedMaskBorderRadius","top","right","bottom","left","maskWidth","Math","max","maskHeight","contentTranslateX","translateX","contentTranslateY","translateY","contentScale","scale","maskTranslateX","maskTranslateY","focusedContentStyle","opacity","transform","overflow","focusedStyles","style","unfocusedFade","unfocusedScale","isUnfocusedIdle","settled","shouldHideUnfocusedIdle","shouldFreezeUnfocusedElement","logicallySettled","unfocusedElementTarget","undefined","destinationBounds","elementRaw","boundTargetCenterX","boundTargetCenterY","elementCenterX","elementCenterY","scaleShiftX","center","containerCenter","scaleShiftY","compensatedGestureX","parentScale","centerShift","epsilon","compensatedGestureY","elementTranslateX","elementTranslateY","elementScaleX","scaleX","elementScaleY","scaleY","resolvedElementStyle","zIndex","elevation","content"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/build.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IACpC+B,MAAM,EAAE,IAAI;IACZC,SAAS,EAAE;EACZ,CAAC;EAEH,OAAO;IACNC,OAAO,EAAE;MACRlC,KAAK,EAAE;QACNH,SAAS,EAAE,CAAC;UAAEL,KAAK,EAAEU;QAAe,CAAC;MACtC;IACD,CAAC;IACD,CAACzF,WAAW,GAAG;MACduF,KAAK,EAAE+B;IACR;EACD,CAAC;AACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["interpolate","makeMutable","EPSILON","HIDDEN_STYLE","NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","VISIBLE_STYLE","BoundStore","computeBoundStyles","getZoomAnchor","toNumber","ZOOM_BACKGROUND_SCALE","ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT","ZOOM_DRAG_DIRECTIONAL_SCALE_MAX","ZOOM_DRAG_DIRECTIONAL_SCALE_MIN","ZOOM_DRAG_RESISTANCE","ZOOM_MASK_OUTSET","ZOOM_SHARED_OPTIONS","combineScales","composeCompensatedTranslation","computeCenterScaleShift","normalizedToTranslation","resolveDirectionalDragScale","IDENTITY_DRAG_SCALE_OUTPUT","UNFOCUSED_ENTER_FADE_END","presentedZoomTagByRoute","getSourceBorderRadius","resolvedPair","sourceStyles","borderRadius","getZoomContentTarget","explicitTarget","screenLayout","anchor","sourceBounds","screenWidth","width","height","verticalAnchor","y","x","pageX","pageY","resolveDragScaleTuple","value","shrinkMin","growMax","exponent","resolveBackgroundScale","resolveEffectiveZoomTag","params","resolvedTag","activeRouteKey","entering","animating","activeProgress","livePairReady","includes","cachedTag","isFreshOpenFrame","shouldFreezeDuringEnter","modify","state","buildZoomStyles","zoomOptions","props","target","focused","progress","layouts","screen","isEnteringTransition","next","active","route","key","currentRouteKey","current","previousRouteKey","previous","nextRouteKey","resolvedZoomAnchor","liveResolvedPair","resolveTransitionPair","currentScreenKey","previousScreenKey","nextScreenKey","effectiveTag","zoomComputeParams","id","dimensions","baseRawOptions","raw","scaleMode","sourceBorderRadius","targetBorderRadius","sourceVisibilityStyle","focusedContentSlot","navigationMaskEnabled","normX","gesture","normY","initialDirection","direction","isHorizontalDismiss","isVerticalDismiss","dragX","normalized","dimension","resistance","dragY","horizontalDragScale","verticalDragScale","backgroundScale","dragXScale","dismissDirection","dragYScale","dragScale","focusedContentTarget","contentRaw","method","maskRaw","space","focusedFade","closing","shouldRemoveClipping","focusedMaskBorderRadius","top","right","bottom","left","maskWidth","Math","max","maskHeight","contentTranslateX","translateX","contentTranslateY","translateY","contentScale","scale","maskTranslateX","maskTranslateY","focusedContentStyle","opacity","transform","overflow","focusedStyles","style","unfocusedFade","unfocusedScale","isUnfocusedIdle","settled","shouldHideUnfocusedIdle","didSourceComponentVisiblyHide","shouldResetUnfocusedElement","logicallySettled","unfocusedElementTarget","elementRaw","boundTargetCenterX","destinationBounds","undefined","boundTargetCenterY","elementCenterX","elementCenterY","scaleShiftX","center","containerCenter","scaleShiftY","compensatedGestureX","parentScale","centerShift","epsilon","compensatedGestureY","elementTranslateX","elementTranslateY","elementScaleX","scaleX","elementScaleY","scaleY","resolvedElementStyle","zIndex","elevation","content"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/build.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,WAAW,QAAQ,yBAAyB;AAClE,SACCC,OAAO,EACPC,YAAY,EACZC,kCAAkC,EAClCC,gCAAgC,EAChCC,aAAa,QACP,oBAAoB;AAC3B,SACCC,UAAU,QAEJ,wBAAwB;AAG/B,SAASC,kBAAkB,QAAQ,kCAAkC;AAErE,SACCC,aAAa,EACbC,QAAQ,EACRC,qBAAqB,EACrBC,oCAAoC,EACpCC,+BAA+B,EAC/BC,+BAA+B,EAC/BC,oBAAoB,EACpBC,gBAAgB,EAChBC,mBAAmB,QACb,UAAU;AACjB,SACCC,aAAa,EACbC,6BAA6B,EAC7BC,uBAAuB,EACvBC,uBAAuB,EACvBC,2BAA2B,QACrB,QAAQ;AAGf,MAAMC,0BA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S;EAEhE,MAAM+D,oBAAoB,GAAG3B,uBAAuB,GACjD;IACAR,SAAS,EAAE,CACV;MAAET,UAAU,EAAE;IAAE,CAAC,EACjB;MAAEE,UAAU,EAAE;IAAE,CAAC,EACjB;MAAEuC,MAAM,EAAE;IAAE,CAAC,EACb;MAAEE,MAAM,EAAE;IAAE,CAAC,CACb;IACDnC,OAAO,EAAE,CAAC;IACVqC,MAAM,EAAE,CAAC;IACTC,SAAS,EAAE;EACZ,CAAC,GACA;IACArC,SAAS,EAAE,CACV;MACCT,UAAU,EAAEmB,2BAA2B,GAAG,CAAC,GAAGmB;IAC/C,CAAC,EACD;MACCpC,UAAU,EAAEiB,2BAA2B,GAAG,CAAC,GAAGoB;IAC/C,CAAC,EACD;MACCE,MAAM,EAAEtB,2BAA2B,GAAG,CAAC,GAAGqB;IAC3C,CAAC,EACD;MACCG,MAAM,EAAExB,2BAA2B,GAAG,CAAC,GAAGuB;IAC3C,CAAC,CACD;IACDlC,OAAO,EAAEK,aAAa;IACtBgC,MAAM,EAAE,IAAI;IACZC,SAAS,EAAE;EACZ,CAAC;EAEH,OAAO;IACNC,OAAO,EAAE;MACRnC,KAAK,EAAE;QACNH,SAAS,EAAE,CAAC;UAAEL,KAAK,EAAEU;QAAe,CAAC;MACtC;IACD,CAAC;IACD,CAAC/D,YAAY,GAAG;MACf6D,KAAK,EAAEgC;IACR;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -7,6 +7,8 @@ export const ZOOM_SHARED_OPTIONS = Object.freeze({
|
|
|
7
7
|
export const ZOOM_DRAG_RESISTANCE = 0.4;
|
|
8
8
|
export const ZOOM_DRAG_DIRECTIONAL_SCALE_MIN = 0.25;
|
|
9
9
|
export const ZOOM_DRAG_DIRECTIONAL_SCALE_MAX = 1.06;
|
|
10
|
+
export const ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT = 2;
|
|
11
|
+
export const ZOOM_BACKGROUND_SCALE = 0.9375;
|
|
10
12
|
export const ZOOM_MASK_OUTSET = Object.freeze({
|
|
11
13
|
top: 0,
|
|
12
14
|
right: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ZOOM_SHARED_OPTIONS","Object","freeze","anchor","scaleMode","ZOOM_DRAG_RESISTANCE","ZOOM_DRAG_DIRECTIONAL_SCALE_MIN","ZOOM_DRAG_DIRECTIONAL_SCALE_MAX","ZOOM_MASK_OUTSET","top","right","bottom","left","getZoomAnchor","target","toNumber","value","fallback"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/config.ts"],"mappings":";;AAEA,OAAO,MAAMA,mBAAmB,GAAGC,MAAM,CAACC,MAAM,CAAC;EAChDC,MAAM,EAAE,KAAc;EACtBC,SAAS,EAAE;AACZ,CAAC,CAAC;AAEF,OAAO,MAAMC,oBAAoB,GAAG,GAAG;AACvC,OAAO,MAAMC,+BAA+B,GAAG,IAAI;AACnD,OAAO,MAAMC,+BAA+B,GAAG,IAAI;
|
|
1
|
+
{"version":3,"names":["ZOOM_SHARED_OPTIONS","Object","freeze","anchor","scaleMode","ZOOM_DRAG_RESISTANCE","ZOOM_DRAG_DIRECTIONAL_SCALE_MIN","ZOOM_DRAG_DIRECTIONAL_SCALE_MAX","ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT","ZOOM_BACKGROUND_SCALE","ZOOM_MASK_OUTSET","top","right","bottom","left","getZoomAnchor","target","toNumber","value","fallback"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/config.ts"],"mappings":";;AAEA,OAAO,MAAMA,mBAAmB,GAAGC,MAAM,CAACC,MAAM,CAAC;EAChDC,MAAM,EAAE,KAAc;EACtBC,SAAS,EAAE;AACZ,CAAC,CAAC;AAEF,OAAO,MAAMC,oBAAoB,GAAG,GAAG;AACvC,OAAO,MAAMC,+BAA+B,GAAG,IAAI;AACnD,OAAO,MAAMC,+BAA+B,GAAG,IAAI;AACnD,OAAO,MAAMC,oCAAoC,GAAG,CAAC;AACrD,OAAO,MAAMC,qBAAqB,GAAG,MAAM;AAE3C,OAAO,MAAMC,gBAAgB,GAAGT,MAAM,CAACC,MAAM,CAAC;EAC7CS,GAAG,EAAE,CAAC;EACNC,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE,CAAC;EACTC,IAAI,EAAE;AACP,CAAC,CAAC;AAEF,OAAO,MAAMC,aAAa,GACzBC,MAA2C,IACd;EAC7B,SAAS;;EACT,OAAOA,MAAM,KAAK,OAAO,GAAG,QAAQ,GAAGhB,mBAAmB,CAACG,MAAM;AAClE,CAAC;AAED,OAAO,MAAMc,QAAQ,GAAGA,CAACC,KAAc,EAAEC,QAAQ,GAAG,CAAC,KAAa;EACjE,SAAS;;EACT,OAAO,OAAOD,KAAK,KAAK,QAAQ,GAAGA,KAAK,GAAGC,QAAQ;AACpD,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boundary-target.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/components/boundary-target.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"boundary-target.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/components/boundary-target.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmCzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-boundary-component.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/create-boundary-component/create-boundary-component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"create-boundary-component.d.ts","sourceRoot":"","sources":["../../../../../src/shared/components/create-boundary-component/create-boundary-component.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,aAAa,EAMlB,MAAM,OAAO,CAAC;AAsBf,OAAO,KAAK,EAAE,sBAAsB,EAAuB,MAAM,SAAS,CAAC;AAG3E,UAAU,8BAA8B;IACvC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,MAAM,EACvD,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,EACzB,OAAO,GAAE,8BAAmC,GA4M5B,KAAK,CAAC,mBAAmB,CACxC,KAAK,CAAC,yBAAyB,CAC9B,sBAAsB,CAAC,CAAC,CAAC,GACxB,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CACxD,CACD,CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-pending-source-key.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,GACnC,gBAAgB,MAAM,EACtB,0BAA0B,MAAM,KAC9B,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"resolve-pending-source-key.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,GACnC,gBAAgB,MAAM,EACtB,0BAA0B,MAAM,KAC9B,MAAM,GAAG,IAcX,CAAC"}
|
|
@@ -8,14 +8,12 @@ export type MeasurementIntentFlags = {
|
|
|
8
8
|
completeDestination: boolean;
|
|
9
9
|
refreshSource: boolean;
|
|
10
10
|
refreshDestination: boolean;
|
|
11
|
-
snapshotOnly: boolean;
|
|
12
11
|
};
|
|
13
12
|
export type MeasurementWritePlan = {
|
|
14
13
|
captureSource: boolean;
|
|
15
14
|
completeDestination: boolean;
|
|
16
15
|
refreshSource: boolean;
|
|
17
16
|
refreshDestination: boolean;
|
|
18
|
-
registerSnapshot: boolean;
|
|
19
17
|
writesAny: boolean;
|
|
20
18
|
wantsDestinationWrite: boolean;
|
|
21
19
|
};
|
|
@@ -26,7 +24,16 @@ export declare const resolveMeasurementWritePlan: (params: {
|
|
|
26
24
|
hasPendingLink: boolean;
|
|
27
25
|
hasSourceLink: boolean;
|
|
28
26
|
hasDestinationLink: boolean;
|
|
27
|
+
hasAttachableSourceLink: boolean;
|
|
29
28
|
}) => MeasurementWritePlan;
|
|
29
|
+
/**
|
|
30
|
+
* Temporarily removed destination-match gating for auto source capture.
|
|
31
|
+
*
|
|
32
|
+
* For now, any enabled boundary on a source screen will eagerly capture when a
|
|
33
|
+
* next screen exists, even if no matching destination boundary has registered
|
|
34
|
+
* presence yet. The previous behavior waited for an explicit destination match
|
|
35
|
+
* before allowing source capture.
|
|
36
|
+
*/
|
|
30
37
|
export declare const resolveAutoSourceCaptureSignal: (params: {
|
|
31
38
|
enabled: boolean;
|
|
32
39
|
nextScreenKey?: string;
|
|
@@ -35,7 +42,8 @@ export declare const resolveAutoSourceCaptureSignal: (params: {
|
|
|
35
42
|
export declare const resolvePendingDestinationCaptureSignal: (params: {
|
|
36
43
|
enabled: boolean;
|
|
37
44
|
resolvedSourceKey?: string | null;
|
|
38
|
-
|
|
45
|
+
hasAttachableSourceLink: boolean;
|
|
46
|
+
hasDestinationLink: boolean;
|
|
39
47
|
}) => string | 0;
|
|
40
48
|
export declare const resolvePendingDestinationRetrySignal: (params: {
|
|
41
49
|
enabled: boolean;
|
|
@@ -47,15 +55,12 @@ export declare const resolvePendingDestinationRetrySignal: (params: {
|
|
|
47
55
|
retryProgressMax: number;
|
|
48
56
|
retryProgressBuckets: number;
|
|
49
57
|
resolvedSourceKey?: string | null;
|
|
50
|
-
|
|
58
|
+
hasAttachableSourceLink: boolean;
|
|
51
59
|
}) => number;
|
|
52
|
-
export declare const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
isAnyAnimating: boolean;
|
|
57
|
-
hasPendingLinkFromSource: boolean;
|
|
58
|
-
}) => MeasurementIntent | readonly MeasurementIntent[] | null;
|
|
60
|
+
export declare const resolvePrepareSourceMeasurementIntent: (params: {
|
|
61
|
+
hasSourceLink: boolean;
|
|
62
|
+
}) => MeasurementIntent | null;
|
|
63
|
+
export declare const PREPARE_DESTINATION_MEASUREMENT_INTENT: readonly ["complete-destination", "refresh-destination"];
|
|
59
64
|
export declare const resolveGroupActiveMeasurementAction: (params: {
|
|
60
65
|
enabled: boolean;
|
|
61
66
|
isEligible: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measurement-rules.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,KAAK,iBAAiB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACpC,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"measurement-rules.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,KAAK,iBAAiB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACpC,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAClC,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,OAAO,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAClC,eAAe,GACf,gBAAgB,GAChB,MAAM,CAAC;AAEV,eAAO,MAAM,yBAAyB,GACrC,SAAS,iBAAiB,GAAG,SAAS,iBAAiB,EAAE,KACvD,sBAiCF,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,QAAQ;IACnD,OAAO,EAAE,sBAAsB,CAAC;IAChC,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,uBAAuB,EAAE,OAAO,CAAC;CACjC,KAAG,oBA4BH,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,GAAI,QAAQ;IACtD,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE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AAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,KAAG,OAKH,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAAI,QAAQ;IACzD,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC9B,KAAG,OAeH,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import type { MaybeMeasureAndStoreParams } from "../types";
|
|
1
|
+
import type { BoundaryId, MaybeMeasureAndStoreParams } from "../types";
|
|
2
2
|
export declare const useAutoSourceMeasurement: (params: {
|
|
3
3
|
enabled: boolean;
|
|
4
4
|
sharedBoundTag: string;
|
|
5
|
+
id: BoundaryId;
|
|
6
|
+
group?: string;
|
|
5
7
|
nextScreenKey?: string;
|
|
6
8
|
maybeMeasureAndStore: (options: MaybeMeasureAndStoreParams) => void;
|
|
7
9
|
}) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-auto-source-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"use-auto-source-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAGvE,eAAO,MAAM,wBAAwB,GAAI,QAAQ;IAChD,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,EAAE,EAAE,UAAU,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oBAAoB,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,IAAI,CAAC;CACpE,SA2CA,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { View } from "react-native";
|
|
2
|
-
import { type AnimatedRef, type
|
|
2
|
+
import { type AnimatedRef, type StyleProps } from "react-native-reanimated";
|
|
3
3
|
import type { MaybeMeasureAndStoreParams } from "../types";
|
|
4
4
|
export declare const useBoundaryMeasureAndStore: (params: {
|
|
5
5
|
enabled: boolean;
|
|
@@ -9,7 +9,6 @@ export declare const useBoundaryMeasureAndStore: (params: {
|
|
|
9
9
|
ancestorKeys: string[];
|
|
10
10
|
navigatorKey?: string;
|
|
11
11
|
ancestorNavigatorKeys?: string[];
|
|
12
|
-
isAnimating: SharedValue<number>;
|
|
13
12
|
preparedStyles: StyleProps;
|
|
14
13
|
measuredAnimatedRef: AnimatedRef<View>;
|
|
15
14
|
}) => (args_0?: MaybeMeasureAndStoreParams | undefined) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-boundary-measure-and-store.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EACN,KAAK,WAAW,EAGhB,KAAK,
|
|
1
|
+
{"version":3,"file":"use-boundary-measure-and-store.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EACN,KAAK,WAAW,EAGhB,KAAK,UAAU,EACf,MAAM,yBAAyB,CAAC;AAMjC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAwB3D,eAAO,MAAM,0BAA0B,GAAI,QAAQ;IAClD,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,cAAc,EAAE,UAAU,CAAC;IAC3B,mBAAmB,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;CACvC,8DA2GA,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type SharedValue } from "react-native-reanimated";
|
|
2
|
+
import type { BoundaryId, MaybeMeasureAndStoreParams } from "../types";
|
|
2
3
|
export declare const usePendingDestinationMeasurement: (params: {
|
|
3
4
|
sharedBoundTag: string;
|
|
4
5
|
enabled: boolean;
|
|
6
|
+
id: BoundaryId;
|
|
7
|
+
group?: string;
|
|
8
|
+
currentScreenKey: string;
|
|
5
9
|
expectedSourceScreenKey?: string;
|
|
10
|
+
animating: SharedValue<number>;
|
|
6
11
|
maybeMeasureAndStore: (options: MaybeMeasureAndStoreParams) => void;
|
|
7
12
|
}) => void;
|
|
8
13
|
//# sourceMappingURL=use-pending-destination-measurement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-pending-destination-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-pending-destination-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,KAAK,WAAW,EAGhB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,KAAK,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMvE,eAAO,MAAM,gCAAgC,GAAI,QAAQ;IACxD,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,EAAE,EAAE,UAAU,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/B,oBAAoB,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,IAAI,CAAC;CACpE,SAsLA,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BoundaryId, MaybeMeasureAndStoreParams } from "../types";
|
|
2
|
+
export declare const usePrepareTransitionMeasurement: (params: {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
sharedBoundTag: string;
|
|
5
|
+
id: BoundaryId;
|
|
6
|
+
group?: string;
|
|
7
|
+
currentScreenKey: string;
|
|
8
|
+
nextScreenKey?: string;
|
|
9
|
+
hasNextScreen: boolean;
|
|
10
|
+
maybeMeasureAndStore: (options: MaybeMeasureAndStoreParams) => void;
|
|
11
|
+
}) => void;
|
|
12
|
+
//# sourceMappingURL=use-prepare-transition-measurement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-prepare-transition-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAMvE,eAAO,MAAM,+BAA+B,GAAI,QAAQ;IACvD,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,EAAE,EAAE,UAAU,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,oBAAoB,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,IAAI,CAAC;CACpE,SAuFA,CAAC"}
|
|
@@ -20,11 +20,17 @@ export { createBoundaryComponent };
|
|
|
20
20
|
* - `Boundary.Target` to measure a nested descendant instead of the owner.
|
|
21
21
|
*/
|
|
22
22
|
export declare const Boundary: {
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Passive boundary wrapper (no built-in press semantics).
|
|
25
|
+
*/
|
|
24
26
|
View: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("react-native").ViewProps, "id"> & import("./types").BoundaryOwnProps & import("react").RefAttributes<never>>>;
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Pressable boundary wrapper with press-priority source capture.
|
|
29
|
+
*/
|
|
30
|
+
Trigger: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<import("react-native").PressableProps & import("react").RefAttributes<View>, "id"> & import("./types").BoundaryOwnProps & import("react").RefAttributes<View | import("react").Component<import("react-native").PressableProps & import("react").RefAttributes<View>, any, any>>>>;
|
|
31
|
+
/**
|
|
32
|
+
* Optional nested measurement override inside a boundary owner.
|
|
33
|
+
*/
|
|
28
34
|
Target: import("react").NamedExoticComponent<{
|
|
29
35
|
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
30
36
|
pointerEvents?: "auto" | "none" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"auto" | "none" | "box-none" | "box-only" | undefined> | undefined;
|