react-native-screen-transitions 3.4.0-beta.0 → 3.4.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +6 -5
  2. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  3. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +4 -1
  4. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  5. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +28 -1
  6. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  7. package/lib/commonjs/shared/components/create-boundary-component/hooks/{use-prepare-transition-measurement.js → use-pre-transition-measurement.js} +7 -5
  8. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
  9. package/lib/commonjs/shared/constants.js +1 -2
  10. package/lib/commonjs/shared/constants.js.map +1 -1
  11. package/lib/commonjs/shared/providers/register-bounds.provider.js +9 -1
  12. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  13. package/lib/commonjs/shared/stores/bounds/internals/clear.js +23 -167
  14. package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
  15. package/lib/commonjs/shared/stores/bounds/internals/presence.js +0 -3
  16. package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -1
  17. package/lib/commonjs/shared/stores/bounds/internals/registry.js +0 -5
  18. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
  19. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +0 -3
  20. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  21. package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -83
  22. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  23. package/lib/commonjs/shared/utils/bounds/constants.js.map +1 -0
  24. package/lib/commonjs/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +5 -5
  25. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
  26. package/lib/commonjs/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +6 -6
  27. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
  28. package/lib/commonjs/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
  29. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
  30. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +70 -0
  31. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
  32. package/lib/commonjs/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
  33. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
  34. package/lib/commonjs/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +9 -9
  35. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
  36. package/lib/commonjs/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
  37. package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
  38. package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
  39. package/lib/commonjs/shared/utils/bounds/index.js +16 -44
  40. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  41. package/lib/commonjs/shared/utils/bounds/zoom/build.js +135 -31
  42. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
  43. package/lib/commonjs/shared/utils/bounds/zoom/config.js +8 -1
  44. package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -1
  45. package/lib/commonjs/shared/utils/bounds/zoom/math.js +34 -1
  46. package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +1 -1
  47. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +6 -5
  48. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  49. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +4 -1
  50. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  51. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +29 -1
  52. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  53. package/lib/module/shared/components/create-boundary-component/hooks/{use-prepare-transition-measurement.js → use-pre-transition-measurement.js} +5 -3
  54. package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
  55. package/lib/module/shared/constants.js +1 -2
  56. package/lib/module/shared/constants.js.map +1 -1
  57. package/lib/module/shared/providers/register-bounds.provider.js +9 -1
  58. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  59. package/lib/module/shared/stores/bounds/internals/clear.js +24 -168
  60. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
  61. package/lib/module/shared/stores/bounds/internals/presence.js +1 -4
  62. package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -1
  63. package/lib/module/shared/stores/bounds/internals/registry.js +1 -6
  64. package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
  65. package/lib/module/shared/stores/bounds/internals/resolver.js +1 -4
  66. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  67. package/lib/module/shared/stores/bounds/internals/state.js +0 -78
  68. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  69. package/lib/module/shared/utils/bounds/constants.js.map +1 -0
  70. package/lib/module/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +3 -3
  71. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
  72. package/lib/module/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +5 -5
  73. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
  74. package/lib/module/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
  75. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
  76. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +64 -0
  77. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
  78. package/lib/module/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
  79. package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
  80. package/lib/module/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +7 -7
  81. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
  82. package/lib/module/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
  83. package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
  84. package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
  85. package/lib/module/shared/utils/bounds/index.js +14 -42
  86. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  87. package/lib/module/shared/utils/bounds/zoom/build.js +138 -34
  88. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
  89. package/lib/module/shared/utils/bounds/zoom/config.js +7 -0
  90. package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -1
  91. package/lib/module/shared/utils/bounds/zoom/math.js +31 -0
  92. package/lib/module/shared/utils/bounds/zoom/math.js.map +1 -1
  93. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
  94. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +1 -0
  95. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
  96. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +14 -0
  97. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -1
  98. package/lib/typescript/shared/components/create-boundary-component/hooks/{use-prepare-transition-measurement.d.ts → use-pre-transition-measurement.d.ts} +2 -2
  99. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts.map +1 -0
  100. package/lib/typescript/shared/constants.d.ts +0 -1
  101. package/lib/typescript/shared/constants.d.ts.map +1 -1
  102. package/lib/typescript/shared/index.d.ts +1 -1
  103. package/lib/typescript/shared/index.d.ts.map +1 -1
  104. package/lib/typescript/shared/providers/register-bounds.provider.d.ts +7 -0
  105. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  106. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
  107. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +1 -1
  108. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
  109. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  110. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +0 -3
  111. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  112. package/lib/typescript/shared/types/bounds.types.d.ts +72 -0
  113. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  114. package/lib/typescript/shared/types/index.d.ts +1 -1
  115. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  116. package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -0
  117. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +7 -0
  118. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -0
  119. package/lib/typescript/shared/utils/bounds/helpers/{interpolators.d.ts → create-interpolators.d.ts} +3 -3
  120. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -0
  121. package/lib/typescript/shared/utils/bounds/helpers/{link-accessor.d.ts → create-link-accessor.d.ts} +1 -1
  122. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -0
  123. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +20 -0
  124. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -0
  125. package/lib/typescript/shared/utils/bounds/helpers/{style-composers.d.ts → styles/composers.d.ts} +4 -4
  126. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -0
  127. package/lib/typescript/shared/utils/bounds/helpers/{compute-bounds-styles.d.ts → styles/compute.d.ts} +3 -3
  128. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -0
  129. package/lib/typescript/shared/utils/bounds/helpers/{interpolate-style.d.ts → styles/interpolate-link-style.d.ts} +2 -2
  130. package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts.map +1 -0
  131. package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -0
  132. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  133. package/lib/typescript/shared/utils/bounds/types/options.d.ts +3 -2
  134. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  135. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
  136. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +7 -0
  137. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -1
  138. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +17 -0
  139. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +1 -1
  140. package/package.json +1 -1
  141. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +6 -5
  142. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +6 -1
  143. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +28 -13
  144. package/src/shared/components/create-boundary-component/hooks/{use-prepare-transition-measurement.ts → use-pre-transition-measurement.ts} +8 -5
  145. package/src/shared/constants.ts +0 -1
  146. package/src/shared/index.ts +2 -0
  147. package/src/shared/providers/register-bounds.provider.tsx +8 -1
  148. package/src/shared/stores/bounds/internals/clear.ts +47 -220
  149. package/src/shared/stores/bounds/internals/presence.ts +1 -4
  150. package/src/shared/stores/bounds/internals/registry.ts +1 -11
  151. package/src/shared/stores/bounds/internals/resolver.ts +1 -9
  152. package/src/shared/stores/bounds/internals/state.ts +0 -98
  153. package/src/shared/types/bounds.types.ts +74 -0
  154. package/src/shared/types/index.ts +2 -0
  155. package/src/shared/utils/bounds/{helpers/constants.ts → constants.ts} +1 -1
  156. package/src/shared/utils/bounds/helpers/{resolve-bound-tag.ts → create-bound-tag.ts} +2 -2
  157. package/src/shared/utils/bounds/helpers/{interpolators.ts → create-interpolators.ts} +19 -12
  158. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +100 -0
  159. package/src/shared/utils/bounds/helpers/{style-composers.ts → styles/composers.ts} +119 -53
  160. package/src/shared/utils/bounds/helpers/{compute-bounds-styles.ts → styles/compute.ts} +9 -9
  161. package/src/shared/utils/bounds/helpers/{interpolate-style.ts → styles/interpolate-link-style.ts} +9 -4
  162. package/src/shared/utils/bounds/index.ts +13 -53
  163. package/src/shared/utils/bounds/types/options.ts +3 -2
  164. package/src/shared/utils/bounds/zoom/build.ts +169 -61
  165. package/src/shared/utils/bounds/zoom/config.ts +9 -0
  166. package/src/shared/utils/bounds/zoom/math.ts +57 -0
  167. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js.map +0 -1
  168. package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js +0 -41
  169. package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
  170. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
  171. package/lib/commonjs/shared/utils/bounds/helpers/constants.js.map +0 -1
  172. package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
  173. package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js +0 -20
  174. package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js.map +0 -1
  175. package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +0 -1
  176. package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
  177. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
  178. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +0 -1
  179. package/lib/commonjs/shared/utils/bounds/helpers/styles.js.map +0 -1
  180. package/lib/module/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js.map +0 -1
  181. package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js +0 -36
  182. package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
  183. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
  184. package/lib/module/shared/utils/bounds/helpers/constants.js.map +0 -1
  185. package/lib/module/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
  186. package/lib/module/shared/utils/bounds/helpers/interpolate.js +0 -16
  187. package/lib/module/shared/utils/bounds/helpers/interpolate.js.map +0 -1
  188. package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +0 -1
  189. package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
  190. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
  191. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +0 -1
  192. package/lib/module/shared/utils/bounds/helpers/styles.js.map +0 -1
  193. package/lib/typescript/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.d.ts.map +0 -1
  194. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +0 -14
  195. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +0 -1
  196. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +0 -1
  197. package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts.map +0 -1
  198. package/lib/typescript/shared/utils/bounds/helpers/interpolate-style.d.ts.map +0 -1
  199. package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts +0 -2
  200. package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts.map +0 -1
  201. package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +0 -1
  202. package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +0 -1
  203. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +0 -7
  204. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +0 -1
  205. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +0 -1
  206. package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +0 -1
  207. package/src/shared/utils/bounds/helpers/build-bounds-options.ts +0 -48
  208. package/src/shared/utils/bounds/helpers/interpolate.ts +0 -19
  209. /package/lib/commonjs/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
  210. /package/lib/commonjs/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
  211. /package/lib/module/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
  212. /package/lib/module/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
  213. /package/lib/typescript/shared/utils/bounds/{helpers/constants.d.ts → constants.d.ts} +0 -0
  214. /package/lib/typescript/shared/utils/bounds/helpers/{styles.d.ts → styles/styles.d.ts} +0 -0
  215. /package/src/shared/utils/bounds/helpers/{link-accessor.ts → create-link-accessor.ts} +0 -0
  216. /package/src/shared/utils/bounds/helpers/{styles.ts → styles/styles.ts} +0 -0
@@ -1,7 +1,6 @@
1
1
  import { interpolate, makeMutable } from "react-native-reanimated";
2
2
  import {
3
3
  EPSILON,
4
- HIDDEN_STYLE,
5
4
  NAVIGATION_MASK_CONTAINER_STYLE_ID,
6
5
  NAVIGATION_MASK_ELEMENT_STYLE_ID,
7
6
  VISIBLE_STYLE,
@@ -12,7 +11,7 @@ import {
12
11
  } from "../../../stores/bounds";
13
12
  import type { TransitionInterpolatedStyle } from "../../../types/animation.types";
14
13
  import type { Layout } from "../../../types/screen.types";
15
- import { computeBoundStyles } from "../helpers/compute-bounds-styles";
14
+ import { prepareBoundStyles } from "../helpers/prepare-bound-styles";
16
15
  import type { BoundsOptions } from "../types/options";
17
16
  import {
18
17
  getZoomAnchor,
@@ -22,20 +21,27 @@ import {
22
21
  ZOOM_DRAG_DIRECTIONAL_SCALE_MAX,
23
22
  ZOOM_DRAG_DIRECTIONAL_SCALE_MIN,
24
23
  ZOOM_DRAG_RESISTANCE,
24
+ ZOOM_DRAG_TRANSLATION_EXPONENT,
25
+ ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX,
26
+ ZOOM_DRAG_TRANSLATION_POSITIVE_MAX,
27
+ ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE,
28
+ ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE,
25
29
  ZOOM_MASK_OUTSET,
26
30
  ZOOM_SHARED_OPTIONS,
31
+ ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE,
32
+ ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE,
27
33
  } from "./config";
28
34
  import {
29
35
  combineScales,
30
36
  composeCompensatedTranslation,
31
37
  computeCenterScaleShift,
32
- normalizedToTranslation,
33
38
  resolveDirectionalDragScale,
39
+ resolveDirectionalDragTranslation,
40
+ resolveOpacityRangeTuple,
34
41
  } from "./math";
35
42
  import type { BuildZoomStylesParams, ZoomInterpolatedStyle } from "./types";
36
43
 
37
44
  const IDENTITY_DRAG_SCALE_OUTPUT = [1, 1] as const;
38
- const UNFOCUSED_ENTER_FADE_END = 1.6;
39
45
  const presentedZoomTagByRoute = makeMutable<Record<string, string>>({});
40
46
 
41
47
  /* -------------------------------------------------------------------------- */
@@ -112,12 +118,47 @@ function resolveDragScaleTuple(
112
118
  };
113
119
  }
114
120
 
121
+ function resolveDragTranslationTuple(
122
+ value:
123
+ | readonly [negativeMax: number, positiveMax: number, exponent?: number]
124
+ | undefined,
125
+ ) {
126
+ "worklet";
127
+
128
+ return {
129
+ negativeMax: value?.[0] ?? ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX,
130
+ positiveMax: value?.[1] ?? ZOOM_DRAG_TRANSLATION_POSITIVE_MAX,
131
+ exponent: value?.[2] ?? ZOOM_DRAG_TRANSLATION_EXPONENT,
132
+ };
133
+ }
134
+
115
135
  function resolveBackgroundScale(value: number | undefined) {
116
136
  "worklet";
117
137
 
118
138
  return value ?? ZOOM_BACKGROUND_SCALE;
119
139
  }
120
140
 
141
+ function interpolateOpacityRange(params: {
142
+ progress: number;
143
+ range: {
144
+ inputStart: number;
145
+ inputEnd: number;
146
+ outputStart: number;
147
+ outputEnd: number;
148
+ };
149
+ }) {
150
+ "worklet";
151
+
152
+ const { progress, range } = params;
153
+
154
+ return interpolate(
155
+ progress,
156
+ [range.inputStart, range.inputEnd],
157
+ [range.outputStart, range.outputEnd],
158
+ "clamp",
159
+ );
160
+ }
161
+
121
162
  function resolveEffectiveZoomTag(params: {
122
163
  resolvedTag: string;
123
164
  activeRouteKey?: string;
@@ -216,15 +257,6 @@ export function buildZoomStyles({
216
257
  livePairReady: !!liveResolvedPair.sourceBounds,
217
258
  });
218
259
 
219
- const zoomComputeParams = {
220
- id: effectiveTag,
221
- previous: props.previous,
222
- current: props.current,
223
- next: props.next,
224
- progress,
225
- dimensions: screenLayout,
226
- } as const;
227
-
228
260
  const baseRawOptions = {
229
261
  id: effectiveTag,
230
262
  raw: true,
@@ -243,6 +275,26 @@ export function buildZoomStyles({
243
275
 
244
276
  const sourceBorderRadius = getSourceBorderRadius(resolvedPair);
245
277
  const targetBorderRadius = zoomOptions?.borderRadius ?? sourceBorderRadius;
278
+ const focusedElementOpacity = {
279
+ open: resolveOpacityRangeTuple({
280
+ value: zoomOptions?.focusedElementOpacity?.open,
281
+ fallback: ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE,
282
+ }),
283
+ close: resolveOpacityRangeTuple({
284
+ value: zoomOptions?.focusedElementOpacity?.close,
285
+ fallback: ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE,
286
+ }),
287
+ };
288
+ const unfocusedElementOpacity = {
289
+ open: resolveOpacityRangeTuple({
290
+ value: zoomOptions?.unfocusedElementOpacity?.open,
291
+ fallback: ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE,
292
+ }),
293
+ close: resolveOpacityRangeTuple({
294
+ value: zoomOptions?.unfocusedElementOpacity?.close,
295
+ fallback: ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE,
296
+ }),
297
+ };
246
298
  const sourceVisibilityStyle = {
247
299
  [effectiveTag]: VISIBLE_STYLE,
248
300
  } satisfies TransitionInterpolatedStyle;
@@ -250,16 +302,60 @@ export function buildZoomStyles({
250
302
  ? NAVIGATION_MASK_CONTAINER_STYLE_ID
251
303
  : "content";
252
304
 
305
+ /**
306
+ * Local bounds compute helper for navigation zoom.
307
+ *
308
+ * If you're building a custom transition, prefer the public `bounds()` helper.
309
+ * We keep a local version here so zoom can share the same low-level compute path
310
+ * without re-entering the decorated public accessor.
311
+ */
312
+ const bounds = <T extends BoundsOptions>(options: T) => {
313
+ "worklet";
314
+
315
+ return prepareBoundStyles({
316
+ props,
317
+ options,
318
+ resolvedPair,
319
+ syncGroupActiveId: false,
320
+ });
321
+ };
322
+
253
323
  /* --------------------------- Missing Source Guard -------------------------- */
254
324
 
255
325
  // Only the focused entering route should be hidden when source bounds are
256
- // missing. During grouped retargeting, the unfocused/source route can still be
257
- // styled by the destination interpolator while the new active member is warming
258
- // up; hiding there blanks the wrong screen.
326
+ // missing. During rapid chained pushes, source measurement can briefly race
327
+ // the focused destination. In that case, degrading to a fullscreen destination
328
+ // is safer than blanking the entire screen until another gesture/animation
329
+ // re-runs the pipeline.
259
330
  if (focused && !resolvedPair.sourceBounds && props.active.entering) {
260
- return {
261
- [focusedContentSlot]: HIDDEN_STYLE,
331
+ const fallbackStyles: ZoomInterpolatedStyle = {
332
+ [focusedContentSlot]: {
333
+ style: {
334
+ opacity: zoomOptions?.debug ? 0.5 : 1,
335
+ transform: [{ translateX: 0 }, { translateY: 0 }, { scale: 1 }],
336
+ borderRadius: 0,
337
+ overflow: "hidden",
338
+ },
339
+ },
262
340
  };
341
+
342
+ if (props.navigationMaskEnabled) {
343
+ const { top, right, bottom, left } = ZOOM_MASK_OUTSET;
344
+ fallbackStyles[NAVIGATION_MASK_ELEMENT_STYLE_ID] = {
345
+ style: {
346
+ width: Math.max(1, screenLayout.width + left + right),
347
+ height: Math.max(1, screenLayout.height + top + bottom),
348
+ borderRadius: 0,
349
+ transform: [
350
+ { translateX: -left },
351
+ { translateY: -top },
352
+ { scale: 1 },
353
+ ],
354
+ },
355
+ };
356
+ }
357
+
358
+ return fallbackStyles;
263
359
  }
264
360
 
265
361
  /* --------------------------- Gesture / Drag Values ------------------------- */
@@ -273,15 +369,27 @@ export function buildZoomStyles({
273
369
  const isVerticalDismiss =
274
370
  initialDirection === "vertical" || initialDirection === "vertical-inverted";
275
371
 
276
- const dragX = normalizedToTranslation({
372
+ const horizontalDragTranslation = resolveDragTranslationTuple(
373
+ zoomOptions?.horizontalDragTranslation,
374
+ );
375
+ const verticalDragTranslation = resolveDragTranslationTuple(
376
+ zoomOptions?.verticalDragTranslation,
377
+ );
378
+ const dragX = resolveDirectionalDragTranslation({
277
379
  normalized: normX,
278
380
  dimension: screenLayout.width,
279
381
  resistance: ZOOM_DRAG_RESISTANCE,
382
+ negativeMax: horizontalDragTranslation.negativeMax,
383
+ positiveMax: horizontalDragTranslation.positiveMax,
384
+ exponent: horizontalDragTranslation.exponent,
280
385
  });
281
- const dragY = normalizedToTranslation({
386
+ const dragY = resolveDirectionalDragTranslation({
282
387
  normalized: normY,
283
388
  dimension: screenLayout.height,
284
389
  resistance: ZOOM_DRAG_RESISTANCE,
390
+ negativeMax: verticalDragTranslation.negativeMax,
391
+ positiveMax: verticalDragTranslation.positiveMax,
392
+ exponent: verticalDragTranslation.exponent,
285
393
  });
286
394
  const horizontalDragScale = resolveDragScaleTuple(
287
395
  zoomOptions?.horizontalDragScale,
@@ -323,32 +431,30 @@ export function buildZoomStyles({
323
431
  resolvedPair,
324
432
  });
325
433
 
326
- const contentRaw = computeBoundStyles(
327
- zoomComputeParams,
328
- {
329
- ...baseRawOptions,
330
- anchor: resolvedZoomAnchor,
331
- method: "content",
332
- target: focusedContentTarget,
333
- },
334
- resolvedPair,
335
- ) as Record<string, unknown>;
336
-
337
- const maskRaw = computeBoundStyles(
338
- zoomComputeParams,
339
- {
340
- ...baseRawOptions,
341
- anchor: ZOOM_SHARED_OPTIONS.anchor,
342
- method: "size",
343
- space: "absolute",
344
- target: "fullscreen",
345
- },
346
- resolvedPair,
347
- ) as Record<string, unknown>;
434
+ const contentRaw = bounds({
435
+ ...baseRawOptions,
436
+ anchor: resolvedZoomAnchor,
437
+ method: "content",
438
+ target: focusedContentTarget,
439
+ } as const);
440
+
441
+ const maskRaw = bounds({
442
+ ...baseRawOptions,
443
+ anchor: ZOOM_SHARED_OPTIONS.anchor,
444
+ method: "size",
445
+ space: "absolute",
446
+ target: "fullscreen",
447
+ } as const);
348
448
 
349
449
  const focusedFade = props.active?.closing
350
- ? interpolate(progress, [0.6, 1], [0, 1], "clamp")
351
- : interpolate(progress, [0, 0.5], [0, 1], "clamp");
450
+ ? interpolateOpacityRange({
451
+ progress,
452
+ range: focusedElementOpacity.close,
453
+ })
454
+ : interpolateOpacityRange({
455
+ progress,
456
+ range: focusedElementOpacity.open,
457
+ });
352
458
 
353
459
  /**
354
460
  * This is also how swiftui handles their navigation zoom.
@@ -372,7 +478,7 @@ export function buildZoomStyles({
372
478
  const maskTranslateY = toNumber(maskRaw.translateY) + dragY - top;
373
479
 
374
480
  const focusedContentStyle = {
375
- opacity: focusedFade,
481
+ opacity: zoomOptions?.debug ? 0.5 : focusedFade,
376
482
  transform: [
377
483
  { translateX: contentTranslateX },
378
484
  { translateY: contentTranslateY },
@@ -410,8 +516,14 @@ export function buildZoomStyles({
410
516
  /* ---------------------------- Unfocused Screen ---------------------------- */
411
517
 
412
518
  const unfocusedFade = props.active?.closing
413
- ? interpolate(progress, [1.9, 2], [1, 0], "clamp")
414
- : interpolate(progress, [1, 2], [1, 0], "clamp");
519
+ ? interpolateOpacityRange({
520
+ progress,
521
+ range: unfocusedElementOpacity.close,
522
+ })
523
+ : interpolateOpacityRange({
524
+ progress,
525
+ range: unfocusedElementOpacity.open,
526
+ });
415
527
  const unfocusedScale = interpolate(
416
528
  progress,
417
529
  [1, 2],
@@ -425,7 +537,7 @@ export function buildZoomStyles({
425
537
 
426
538
  const shouldResetUnfocusedElement =
427
539
  !props.active.closing &&
428
- (props.active.logicallySettled || didSourceComponentVisiblyHide);
540
+ (!!props.active.logicallySettled || didSourceComponentVisiblyHide);
429
541
 
430
542
  const unfocusedElementTarget = getZoomContentTarget({
431
543
  explicitTarget,
@@ -434,17 +546,13 @@ export function buildZoomStyles({
434
546
  resolvedPair,
435
547
  });
436
548
 
437
- const elementRaw = computeBoundStyles(
438
- zoomComputeParams,
439
- {
440
- ...baseRawOptions,
441
- anchor: resolvedZoomAnchor,
442
- method: "transform",
443
- space: "relative",
444
- target: unfocusedElementTarget,
445
- },
446
- resolvedPair,
447
- ) as Record<string, unknown>;
549
+ const elementRaw = bounds({
550
+ ...baseRawOptions,
551
+ anchor: resolvedZoomAnchor,
552
+ method: "transform",
553
+ space: "relative",
554
+ target: unfocusedElementTarget,
555
+ } as const);
448
556
 
449
557
  const boundTargetCenterX =
450
558
  explicitTarget === "bound" && resolvedPair.destinationBounds
@@ -507,7 +615,7 @@ export function buildZoomStyles({
507
615
  { scaleX: 1 },
508
616
  { scaleY: 1 },
509
617
  ],
510
- opacity: 0,
618
+ opacity: zoomOptions?.debug ? 1 : 0,
511
619
  zIndex: 0,
512
620
  elevation: 0,
513
621
  }
@@ -526,7 +634,7 @@ export function buildZoomStyles({
526
634
  scaleY: shouldResetUnfocusedElement ? 1 : elementScaleY,
527
635
  },
528
636
  ],
529
- opacity: unfocusedFade,
637
+ opacity: zoomOptions?.debug ? 1 : unfocusedFade,
530
638
  zIndex: 9999,
531
639
  elevation: 9999,
532
640
  };
@@ -9,7 +9,16 @@ export const ZOOM_DRAG_RESISTANCE = 0.4;
9
9
  export const ZOOM_DRAG_DIRECTIONAL_SCALE_MIN = 0.25;
10
10
  export const ZOOM_DRAG_DIRECTIONAL_SCALE_MAX = 1.06;
11
11
  export const ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT = 2;
12
+ export const ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX = 1;
13
+ export const ZOOM_DRAG_TRANSLATION_POSITIVE_MAX = 1;
14
+ export const ZOOM_DRAG_TRANSLATION_EXPONENT = 1;
12
15
  export const ZOOM_BACKGROUND_SCALE = 0.9375;
16
+ export const ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE = [0, 0.5, 0, 1] as const;
17
+ export const ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE = [0.6, 1, 0, 1] as const;
18
+ export const ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE = [1, 2, 1, 0] as const;
19
+ export const ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE = [
20
+ 1.9, 2, 1, 0,
21
+ ] as const;
13
22
 
14
23
  export const ZOOM_MASK_OUTSET = Object.freeze({
15
24
  top: 0,
@@ -191,3 +191,60 @@ export const resolveDirectionalDragScale = ({
191
191
  const oppositeDrag = Math.min(1, Math.abs(dismissalRelative));
192
192
  return interpolate(oppositeDrag, [0, 1], [1, growMax], "clamp");
193
193
  };
194
+
195
+ export const resolveDirectionalDragTranslation = ({
196
+ normalized,
197
+ dimension,
198
+ resistance,
199
+ negativeMax,
200
+ positiveMax,
201
+ exponent = 1,
202
+ }: {
203
+ normalized: number;
204
+ dimension: number;
205
+ resistance: number;
206
+ negativeMax: number;
207
+ positiveMax: number;
208
+ exponent?: number;
209
+ }) => {
210
+ "worklet";
211
+
212
+ const clampedMagnitude = Math.min(1, Math.abs(normalized));
213
+ const curvedMagnitude = clampedMagnitude ** Math.max(1, exponent);
214
+ const baseDistance = Math.max(0, dimension) * resistance;
215
+
216
+ if (normalized < 0) {
217
+ return -baseDistance * negativeMax * curvedMagnitude;
218
+ }
219
+
220
+ return baseDistance * positiveMax * curvedMagnitude;
221
+ };
222
+
223
+ export const resolveOpacityRangeTuple = ({
224
+ value,
225
+ fallback,
226
+ }: {
227
+ value:
228
+ | readonly [
229
+ inputStart: number,
230
+ inputEnd: number,
231
+ outputStart?: number,
232
+ outputEnd?: number,
233
+ ]
234
+ | undefined;
235
+ fallback: readonly [
236
+ inputStart: number,
237
+ inputEnd: number,
238
+ outputStart?: number,
239
+ outputEnd?: number,
240
+ ];
241
+ }) => {
242
+ "worklet";
243
+
244
+ return {
245
+ inputStart: value?.[0] ?? fallback[0],
246
+ inputEnd: value?.[1] ?? fallback[1],
247
+ outputStart: value?.[2] ?? fallback[2] ?? 0,
248
+ outputEnd: value?.[3] ?? fallback[3] ?? 1,
249
+ };
250
+ };
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_animation","_bounds","_gesture","_measurementRules","usePrepareTransitionMeasurement","params","enabled","sharedBoundTag","id","group","currentScreenKey","nextScreenKey","hasNextScreen","maybeMeasureAndStore","currentWillAnimate","AnimationStore","getValue","currentAnimating","currentDragging","GestureStore","nextWillAnimate","nextAnimating","nextDragging","useAnimatedReaction","get","nextValue","previousValue","currentGroupActiveId","BoundStore","getGroupActiveId","String","shouldCancelMeasurement","intent","resolvePrepareSourceMeasurementIntent","hasSourceLink","PREPARE_DESTINATION_MEASUREMENT_INTENT","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAEA,IAAAI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C,CAACV,aAAa,EAAEG,GAAG,CAAC,CAAC,IAAI,CAAC,CAACF,YAAY,EAAEE,GAAG,CAAC,CAAC;IAChD,IAAIO,uBAAuB,EAAE;MAC5B;IACD;IAEA,MAAMC,MAAM,GAAG,IAAAC,uDAAqC,EAAC;MACpDC,aAAa,EAAEN,kBAAU,CAACM,aAAa,CACtC3B,cAAc,EACdG,gBACD;IACD,CAAC,CAAC;IAEF,IAAI,CAACsB,MAAM,EAAE;MACZ;IACD;IAEAnB,oBAAoB,CAAC;MAAEmB;IAAO,CAAC,CAAC;EACjC,CACD,CAAC;EAED,IAAAT,0CAAmB,EAClB,MAAO,CAACX,aAAa,GAAGE,kBAAkB,CAACU,GAAG,CAAC,CAAC,GAAG,CAAE,EACrD,CAACC,SAAS,EAAEC,aAAa,KAAK;IAC7B,SAAS;;IACT,IAAI,CAACpB,OAAO,IAAIM,aAAa,EAAE;IAC/B,IAAIa,SAAS,KAAK,CAAC,IAAIA,SAAS,KAAKC,aAAa,EAAE;IACpD,MAAMC,oBAAoB,GAAGlB,KAAK,GAC/BmB,kBAAU,CAACC,gBAAgB,CAACpB,KAAK,CAAC,GAClC,IAAI;IACP,IAAIA,KAAK,IAAIkB,oBAAoB,KAAKG,MAAM,CAACtB,EAAE,CAAC,EAAE;IAElD,MAAMuB,uBAAuB,GAC5B,CAAC,CAACd,gBAAgB,CAACO,GAAG,CAAC,CAAC,IAAI,CAAC,CAACN,eAAe,CAACM,GAAG,CAAC,CAAC;IACpD,IAAIO,uBAAuB,EAAE;IAE7BlB,oBAAoB,CAAC;MACpBmB,MAAM,EAAEG;IACT,CAAC,CAAC;EACH,CACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAhC,+BAAA,GAAAA,+BAAA","ignoreList":[]}
@@ -1,41 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.buildBoundsOptions = void 0;
7
- var _bounds = require("../../../stores/bounds");
8
- var _constants = require("./constants");
9
- const buildBoundsOptions = ({
10
- props,
11
- id,
12
- group,
13
- overrides,
14
- mode = "style",
15
- resolveBoundTag
16
- }) => {
17
- "worklet";
18
-
19
- const tag = resolveBoundTag({
20
- id,
21
- group
22
- });
23
- const currentScreenKey = props.current?.route.key;
24
- const boundaryConfig = tag && currentScreenKey ? _bounds.BoundStore.getBoundaryConfig(tag, currentScreenKey) : null;
25
- const resolved = {
26
- ..._constants.DEFAULT_BOUNDS_OPTIONS,
27
- ...(boundaryConfig ?? {}),
28
- ...(overrides ?? {}),
29
- id: tag ?? "",
30
- group
31
- };
32
-
33
- // Element-level bounds style composition always uses relative space.
34
- // Absolute space is reserved for internal navigation helpers (masking).
35
- if (mode === "style") {
36
- resolved.space = "relative";
37
- }
38
- return resolved;
39
- };
40
- exports.buildBoundsOptions = buildBoundsOptions;
41
- //# sourceMappingURL=build-bounds-options.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_bounds","require","_constants","buildBoundsOptions","props","id","group","overrides","mode","resolveBoundTag","tag","currentScreenKey","current","route","key","boundaryConfig","BoundStore","getBoundaryConfig","resolved","DEFAULT_BOUNDS_OPTIONS","space","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/build-bounds-options.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAGA,IAAAC,UAAA,GAAAD,OAAA;AAYO,MAAME,kBAAkB,GAAGA,CAAC;EAClCC,KAAK;EACLC,EAAE;EACFC,KAAK;EACLC,SAAS;EACTC,IAAI,GAAG,OAAO;EACdC;AACyB,CAAC,KAAoB;EAC9C,SAAS;;EAET,MAAMC,GAAG,GAAGD,eAAe,CAAC;IAAEJ,EAAE;IAAEC;EAAM,CAAC,CAAC;EAC1C,MAAMK,gBAAgB,GAAGP,KAAK,CAACQ,OAAO,EAAEC,KAAK,CAACC,GAAG;EACjD,MAAMC,cAAc,GACnBL,GAAG,IAAIC,gBAAgB,GACpBK,kBAAU,CAACC,iBAAiB,CAACP,GAAG,EAAEC,gBAAgB,CAAC,GACnD,IAAI;EAER,MAAMO,QAAQ,GAAG;IAChB,GAAGC,iCAAsB;IACzB,IAAIJ,cAAc,IAAI,CAAC,CAAC,CAAC;IACzB,IAAIR,SAAS,IAAI,CAAC,CAAC,CAAC;IACpBF,EAAE,EAAEK,GAAG,IAAI,EAAE;IACbJ;EACD,CAAC;;EAED;EACA;EACA,IAAIE,IAAI,KAAK,OAAO,EAAE;IACrBU,QAAQ,CAACE,KAAK,GAAG,UAAU;EAC5B;EAEA,OAAOF,QAAQ;AAChB,CAAC;AAACG,OAAA,CAAAlB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_constants","require","_bounds","_geometry","_styleComposers","resolveBounds","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","BoundStore","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","customTarget","computeBoundStyles","progress","raw","EMPTY_BOUND_HELPER_RESULT_RAW","NO_STYLES","HIDDEN_STYLE","ranges","ENTER_RANGE","EXIT_RANGE","method","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/compute-bounds-styles.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAQA,IAAAC,OAAA,GAAAD,OAAA;AAWA,IAAAE,SAAA,GAAAF,OAAA;AAIA,IAAAG,eAAA,GAAAH,OAAA;AASA,MAAMI,aAAa,GAAIC,MAStB,IAAK;EACL,SAAS;;EAET,MAAMC,QAAQ,GAAG,CAACD,MAAM,C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,CAAC,GAC5BE,UAAU,GACT,IAAAI,wCAAwB,EAACN,MAAM,CAAC,GAChC,IAAAO,wCAAwB,EAACP,MAAM,CAAC;AACrC,CAAC;AAACQ,OAAA,CAAA3B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["DEFAULT_BOUNDS_OPTIONS","exports","target","method","space","scaleMode","anchor","raw"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/constants.ts"],"mappings":";;;;;;AAEO,MAAMA,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,GAAG;EACrCE,MAAM,EAAE,OAAO;EACfC,MAAM,EAAE,WAAW;EACnBC,KAAK,EAAE,UAAU;EACjBC,SAAS,EAAE,OAAO;EAClBC,MAAM,EAAE,QAAQ;EAChBC,GAAG,EAAE;AACN,CAAqE","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_constants","require","_interpolate","interpolateLinkStyle","link","property","progress","entering","options","fallback","sourceValue","source","styles","destValue","destination","range","ENTER_RANGE","EXIT_RANGE","interpolateClamped"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/interpolate-style.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASE,oBAAoBA,CACnCC,IAAuB,EACvBC,QAAgB,EAChBC,QAAgB,EAChBC,QAAiB,EACjBC,OAAgC,GAAG,CAAC,CAAC,EAC5B;EACT,SAAS;;EAET,MAAM;IAAEC,QAAQ,GAAG;EAAE,CAAC,GAAGD,OAAO;EAEhC,MAAME,WAAW,GACfN,IAAI,EAAEO,MAAM,EAAEC,MAAM,GAAGP,QAAQ,CAAC,IAA2BI,QAAQ;EACrE,MAAMI,SAAS,GACbT,IAAI,EAAEU,WAAW,EAAEF,MAAM,GAAGP,QAAQ,CAAC,IAA2BI,QAAQ;EAE1E,MAAMM,KAAK,GAAGR,QAAQ,GAAGS,sBAAW,GAAGC,qBAAU;EAEjD,OAAO,IAAAC,+BAAkB,EAACZ,QAAQ,EAAES,KAAK,EAAE,CAACL,WAAW,EAAEG,SAAS,CAAC,CAAC;AACrE","ignoreList":[]}
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.interpolateClamped = interpolateClamped;
7
- function interpolateClamped(value, inputRange, outputRange) {
8
- "worklet";
9
-
10
- const [inputStart, inputEnd] = inputRange;
11
- const [outputStart, outputEnd] = outputRange;
12
- const inputSpan = inputEnd - inputStart;
13
- if (inputSpan === 0) {
14
- return outputStart;
15
- }
16
- const normalized = (value - inputStart) / inputSpan;
17
- const clamped = normalized < 0 ? 0 : normalized > 1 ? 1 : normalized;
18
- return outputStart + (outputEnd - outputStart) * clamped;
19
- }
20
- //# sourceMappingURL=interpolate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["interpolateClamped","value","inputRange","outputRange","inputStart","inputEnd","outputStart","outputEnd","inputSpan","normalized","clamped"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/interpolate.ts"],"mappings":";;;;;;AAAO,SAASA,kBAAkBA,CACjCC,KAAa,EACbC,UAAqC,EACrCC,WAAsC,EAC7B;EACT,SAAS;;EACT,MAAM,CAACC,UAAU,EAAEC,QAAQ,CAAC,GAAGH,UAAU;EACzC,MAAM,CAACI,WAAW,EAAEC,SAAS,CAAC,GAAGJ,WAAW;EAE5C,MAAMK,SAAS,GAAGH,QAAQ,GAAGD,UAAU;EACvC,IAAII,SAAS,KAAK,CAAC,EAAE;IACpB,OAAOF,WAAW;EACnB;EAEA,MAAMG,UAAU,GAAG,CAACR,KAAK,GAAGG,UAAU,IAAII,SAAS;EACnD,MAAME,OAAO,GAAGD,UAAU,GAAG,CAAC,GAAG,CAAC,GAAGA,UAAU,GAAG,CAAC,GAAG,CAAC,GAAGA,UAAU;EAEpE,OAAOH,WAAW,GAAG,CAACC,SAAS,GAAGD,WAAW,IAAII,OAAO;AACzD","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_constants","require","_bounds","_interpolate","_interpolateStyle","createInterpolators","getProps","getLink","interpolateStyle","tag","property","fallback","props","link","entering","next","interpolateLinkStyle","progress","interpolateBoundsFromSnapshot","targetKey","range","ENTER_RANGE","EXIT_RANGE","currentKey","current","route","key","fb","normalizedTag","String","currentSnapshot","BoundStore","getSnapshot","targetSnapshot","currentValue","bounds","targetValue","interpolateClamped","interpolateBoundsFromLink","sourceValue","source","destinationValue","destination","interpolateBounds","fallbackOrTargetKey","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/interpolators.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAGA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAQO,MAAMI,mBAAmB,GAAGA,CAAC;EACnCC,QAAQ;EACRC;AACmB,CAAC,KAAK;EACzB,SAAS;;EAET,MAAMC,gBAAgB,GAAGA,CACxBC,GAAY,EACZC,QAAgB,EAChBC,QAAiB,KACL;IACZ,SAAS;;IACT,MAAMC,KAAK,GAAGN,QAAQ,CAAC,CAAC;IACxB,MAAMO,IAAI,GAAGN,OAAO,CAACE,GAAG,CAAC;IACzB,MAAMK,QAAQ,GAAG,CAACF,KAAK,CAACG,IAAI;IAC5B,OAAO,IAAAC,sCAAoB,EAACH,IAAI,EAAEH,QAAQ,EAAEE,KAAK,CAACK,QAAQ,EAAEH,QAAQ,EAAE;MACrEH;IACD,CAAC,CAAC;EACH,CAAC;EAED,MAAMO,6BAA6B,GAAGA,CACrCT,GAAY,EACZC,QAAkC,EAClCS,SAAiB,EACjBR,QAAiB,KACL;IACZ,SAAS;;IAET,MAAMC,KAAK,GAAGN,QAAQ,CAAC,CAAC;IACxB,MAAMQ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,EAAE6B,WAAW,EAAEP,MAAM,GAAGzB,QAAQ,CAAC,IAAIiB,EAAE;IAEpE,OAAO,IAAAU,+BAAkB,EAACzB,KAAK,CAACK,QAAQ,EAAEG,KAAK,EAAE,CAChDmB,WAAW,EACXE,gBAAgB,CAChB,CAAC;EACH,CAAC;EAED,MAAME,iBAAiB,GAAGA,CACzBlC,GAAY,EACZC,QAAkC,EAClCkC,mBAAqC,EACrCjC,QAAiB,KACL;IACZ,SAAS;;IAET,IAAI,OAAOiC,mBAAmB,KAAK,QAAQ,EAAE;MAC5C,OAAO1B,6BAA6B,CACnCT,GAAG,EACHC,QAAQ,EACRkC,mBAAmB,EACnBjC,QACD,CAAC;IACF;IAEA,OAAO2B,yBAAyB,CAAC7B,GAAG,EAAEC,QAAQ,EAAEkC,mBAAmB,CAAC;EACrE,CAAC;EAED,OAAO;IACNpC,gBAAgB;IAChBmC;EACD,CAAC;AACF,CAAC;AAACE,OAAA,CAAAxC,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_bounds","require","createLinkAccessor","getProps","getSnapshot","tag","key","BoundStore","String","getLink","props","link","getActiveLink","current","route","source","bounds","styles","destination","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/link-accessor.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAYO,MAAMC,kBAAkB,GAAIC,QAAkB,IAAmB;EACvE,SAAS;;EAET,MAAMC,WAAW,GAAGA,CAACC,GAAY,EAAEC,GAAY,KAAsB;IACpE,SAAS;;IACT,IAAI,CAACA,GAAG,EAAE,OAAO,IAAI;IACrB,OAAOC,kBAAU,CAACH,WAAW,CAACI,MAAM,CAACH,GAAG,CAAC,EAAEC,GAAG,CAAC;EAChD,CAAC;EAED,MAAMG,OAAO,GAAIJ,GAAY,IAAwB;IACpD,SAAS;;IACT,MAAMK,KAAK,GAAGP,QAAQ,CAAC,CAAC;IACxB,MAAMQ,IAAI,GAAGJ,kBAAU,CAACK,aAAa,CACpCJ,MAAM,CAACH,GAAG,CAAC,EACXK,KAAK,CAACG,OAAO,EAAEC,KAAK,CAACR,GACtB,CAAC;IACD,IAAI,CAACK,IAAI,EAAE,OAAO,IAAI;IACtB,OAAO;MACNI,MAAM,EAAEJ,IAAI,CAACI,MAAM,GAChB;QAAEC,MAAM,EAAEL,IAAI,CAACI,MAAM,CAACC,MAAM;QAAEC,MAAM,EAAEN,IAAI,CAACI,MAAM,CAACE;MAAO,CAAC,GAC1D,IAAI;MACPC,WAAW,EAAEP,IAAI,CAACO,WAAW,GAC1B;QAAEF,MAAM,EAAEL,IAAI,CAACO,WAAW,CAACF,MAAM;QAAEC,MAAM,EAAEN,IAAI,CAACO,WAAW,CAACD;MAAO,CAAC,GACpE;IACJ,CAAC;EACF,CAAC;EAED,OAAO;IACNb,WAAW;IACXK;EACD,CAAC;AACF,CAAC;AAACU,OAAA,CAAAjB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["resolveBoundTag","id","group","undefined","normalizedId","String","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/resolve-bound-tag.ts"],"mappings":";;;;;;AAOO,MAAMA,eAAe,GAAGA,CAAC;EAC/BC,EAAE;EACFC;AACsB,CAAC,KAAyB;EAChD,SAAS;;EAET,IAAID,EAAE,KAAKE,SAAS,IAAIF,EAAE,KAAK,IAAI,IAAIA,EAAE,KAAK,EAAE,EAAE,OAAOE,SAAS;EAElE,MAAMC,YAAY,GAAGC,MAAM,CAACJ,EAAE,CAAC;EAE/B,IAAI,CAACC,KAAK,EAAE;IACX,OAAOE,YAAY;EACpB;EAEA,OAAO,GAAGF,KAAK,IAAIE,YAAY,EAAE;AAClC,CAAC;AAACE,OAAA,CAAAN,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_constants","require","_interpolate","getAnchorPoint","bounds","anchor","pageX","pageY","width","height","x","y","getAnchorOffset","composeSizeAbsolute","params","start","end","progress","ranges","computeOptions","startAnchor","endAnchor","interpolateClamped","anchorX","anchorY","anchorOffset","translateX","translateY","raw","VISIBLE_STYLE","transform","composeSizeRelative","geometry","baseX","entering","baseY","composeTransformAbsolute","scaleX","scaleY","composeTransformRelative","dx","dy","gestures","composeContentStyle","s","tx","ty","scale"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/style-composers.ts"],"mappings":";;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,MAAME,cAAc,GAAGA,CACtBC,MAA0B,EAC1BC,MAAoB,GAAG,QAAQ,KACD;EAC9B,SAAS;;EAET,MAAM;IAAEC,KAAK;IAAEC,KAAK;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGL,MAAM;EAE9C,QAAQC,MAAM;IACb,KAAK,YAAY;MAChB,OAAO;QAAEK,CAAC,EAAEJ,KAAK;QAAEK,CAAC,EAAEJ;MAAM,CAAC;IAC9B,KAAK,KAAK;MACT,OAAO;QAAEG,CAAC,EAAEJ,KAAK,GAAGE,KAAK,GAAG,CAAC;QAAEG,CAAC,EAAEJ;MAAM,CAAC;IAC1C,KAAK,aAAa;MACjB,OAAO;QAAEG,CAAC,EAAEJ,KAAK,GAAGE,KAAK;QAAEG,CAAC,EAAEJ;MAAM,CAAC;IACtC,KAAK,SAAS;MACb,OAAO;QAAEG,CAAC,EAAEJ,KAAK;QAAEK,CAAC,EAAEJ,KAAK,GAAGE,MAAM,GAAG;MAAE,CAAC;IAC3C,KAAK,QAAQ;MACZ,OAAO;QAAEC,CAAC,EAAEJ,KAAK,GAAGE,KAAK,GAAG,CAAC;QAAEG,CAAC,EAAEJ,KAAK,GAAGE,MAAM,GAAG;MAAE,CAAC;IACvD,KAAK,UAAU;MACd,OAAO;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E/C,IAAIhB,GAAG,EAAE;IACR,OAAO;MACNF,UAAU;MACVC,UAAU;MACVoB,KAAK;MACL,GAAGlB;IACJ,CAAC;EACF;EAEA,OAAO;IACNC,SAAS,EAAE,CAAC;MAAEJ;IAAW,CAAC,EAAE;MAAEC;IAAW,CAAC,EAAE;MAAEoB;IAAM,CAAC,CAAC;IACtD,GAAGlB;EACJ,CAAC;AACF","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","mergeStyleArrays","style","undefined","Array","isArray","merged","i","length","currentStyle","Object","assign","stripNonSerializable","value","isSharedValue","map","cleaned","key","cleanedValue","prepareStyleForBounds","flattened","serializable"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/styles.ts"],"mappings":";;;;;;AACA,IAAAA,sBAAA,GAAAC,OAAA;AAMA,SAASC,gBAAgBA,CAAuBC,KAAQ,EAAK;EAC5D,SAAS;;EAET;EACA,IAAIA,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAKC,SAAS,IAAI,OAAOD,KAAK,KAAK,QAAQ,EAAE;IACvE,OAAOA,KAAK;EACb;;EAEA;EACA,IAAI,CAACE,KAAK,CAACC,OAAO,CAACH,KAAK,CAAC,EAAE;IAC1B,OAAOA,KAAK;EACb;;EAEA;EACA,MAAMI,MAAwB,GAAG,CAAC,CAAC;EACnC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGL,KAAK,CAACM,MAAM,EAAED,CAAC,EAAE,EAAE;IACtC,MAAME,YAAY,GAAGR,gBAAgB,CAACC,KAAK,CAACK,CAAC,CAAe,CAAC;IAC7D,IAAIE,YAAY,IAAI,OAAOA,YAAY,KAAK,QAAQ,EAAE;MACrDC,MAAM,CAACC,MAAM,CAACL,MAAM,EAAEG,YAAY,CAAC;IACpC;EACD;EACA,OAAOH,MAAM;AACd;AAEA,SAASM,oBAAoBA,CAAIC,KAAQ,EAAiB;EACzD,IAAI,IAAAC,oCAAa,EAACD,KAAK,CAAC,EAAE,OAAOA,KAAK;EAEtC,IAAIT,KAAK,CAACC,OAAO,CAACQ,KAAK,CAAC,EAAE;IACzB,OAAOA,KAAK,CAACE,GAAG,CAACH,oBAAoB,CAAC;EACvC;EAEA,IAAIC,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IACvC,MAAMG,OAAyB,GAAG,CAAC,CAAC;IACpC,KAAK,MAAMC,GAAG,IAAIJ,KAAK,EAAE;MACxB,IAAII,GAAG,KAAK,SAAS,EAAE;MAEvB,MAAMC,YAAY,GAAGN,oBAAoB,CAACC,KAAK,CAACI,GAAG,CAAC,CAAC;MACrD,IAAIC,YAAY,KAAKf,SAAS,EAAE;QAC/Ba,OAAO,CAACC,GAAG,CAAC,GAAGC,YAAY;MAC5B;IACD;IACA,OAAOF,OAAO;EACf;EAEA,IAAI,OAAOH,KAAK,KAAK,UAAU,EAAE;IAChC,OAAOV,SAAS;EACjB;EAEA,OAAOU,KAAK;AACb;AAEO,SAASM,qBAAqBA,CACpCjB,KAA6B,EACV;EACnB,IAAI,CAACA,KAAK,EAAE,OAAO,CAAC,CAAC;EAErB,MAAMkB,SAAS,GAAGnB,gBAAgB,CAACC,KAAK,CAAC;EACzC,MAAMmB,YAAY,GAAGT,oBAAoB,CAACQ,SAAS,CAAC;EAEpD,OAAOC,YAAY,IAAI,CAAC,CAAC;AAC1B","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["useAnimatedReaction","AnimationStore","BoundStore","GestureStore","PREPARE_DESTINATION_MEASUREMENT_INTENT","resolvePrepareSourceMeasurementIntent","usePrepareTransitionMeasurement","params","enabled","sharedBoundTag","id","group","currentScreenKey","nextScreenKey","hasNextScreen","maybeMeasureAndStore","currentWillAnimate","getValue","currentAnimating","currentDragging","nextWillAnimate","nextAnimating","nextDragging","get","nextValue","previousValue","currentGroupActiveId","getGroupActiveId","String","shouldCancelMeasurement","intent","hasSourceLink"],"sourceRoot":"../../../../../../src","sources":["shared/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F,CAAC","ignoreList":[]}
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- import { BoundStore } from "../../../stores/bounds";
4
- import { DEFAULT_BOUNDS_OPTIONS } from "./constants";
5
- export const buildBoundsOptions = ({
6
- props,
7
- id,
8
- group,
9
- overrides,
10
- mode = "style",
11
- resolveBoundTag
12
- }) => {
13
- "worklet";
14
-
15
- const tag = resolveBoundTag({
16
- id,
17
- group
18
- });
19
- const currentScreenKey = props.current?.route.key;
20
- const boundaryConfig = tag && currentScreenKey ? BoundStore.getBoundaryConfig(tag, currentScreenKey) : null;
21
- const resolved = {
22
- ...DEFAULT_BOUNDS_OPTIONS,
23
- ...(boundaryConfig ?? {}),
24
- ...(overrides ?? {}),
25
- id: tag ?? "",
26
- group
27
- };
28
-
29
- // Element-level bounds style composition always uses relative space.
30
- // Absolute space is reserved for internal navigation helpers (masking).
31
- if (mode === "style") {
32
- resolved.space = "relative";
33
- }
34
- return resolved;
35
- };
36
- //# sourceMappingURL=build-bounds-options.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["BoundStore","DEFAULT_BOUNDS_OPTIONS","buildBoundsOptions","props","id","group","overrides","mode","resolveBoundTag","tag","currentScreenKey","current","route","key","boundaryConfig","getBoundaryConfig","resolved","space"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/build-bounds-options.ts"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,wBAAwB;AAGnD,SAASC,sBAAsB,QAAQ,aAAa;AAYpD,OAAO,MAAMC,kBAAkB,GAAGA,CAAC;EAClCC,KAAK;EACLC,EAAE;EACFC,KAAK;EACLC,SAAS;EACTC,IAAI,GAAG,OAAO;EACdC;AACyB,CAAC,KAAoB;EAC9C,SAAS;;EAET,MAAMC,GAAG,GAAGD,eAAe,CAAC;IAAEJ,EAAE;IAAEC;EAAM,CAAC,CAAC;EAC1C,MAAMK,gBAAgB,GAAGP,KAAK,CAACQ,OAAO,EAAEC,KAAK,CAACC,GAAG;EACjD,MAAMC,cAAc,GACnBL,GAAG,IAAIC,gBAAgB,GACpBV,UAAU,CAACe,iBAAiB,CAACN,GAAG,EAAEC,gBAAgB,CAAC,GACnD,IAAI;EAER,MAAMM,QAAQ,GAAG;IAChB,GAAGf,sBAAsB;IACzB,IAAIa,cAAc,IAAI,CAAC,CAAC,CAAC;IACzB,IAAIR,SAAS,IAAI,CAAC,CAAC,CAAC;IACpBF,EAAE,EAAEK,GAAG,IAAI,EAAE;IACbJ;EACD,CAAC;;EAED;EACA;EACA,IAAIE,IAAI,KAAK,OAAO,EAAE;IACrBS,QAAQ,CAACC,KAAK,GAAG,UAAU;EAC5B;EAEA,OAAOD,QAAQ;AAChB,CAAC","ignoreList":[]}