react-native-screen-transitions 2.3.1 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/README.md +50 -12
  2. package/lib/commonjs/__configs__/index.js.map +1 -0
  3. package/lib/commonjs/{configs → __configs__}/presets.js +7 -3
  4. package/lib/commonjs/__configs__/presets.js.map +1 -0
  5. package/lib/commonjs/{configs → __configs__}/specs.js +1 -0
  6. package/lib/commonjs/__configs__/specs.js.map +1 -0
  7. package/lib/commonjs/components/controllers/screen-lifecycle.js +5 -5
  8. package/lib/commonjs/components/controllers/screen-lifecycle.js.map +1 -1
  9. package/lib/commonjs/components/create-transition-aware-component.js +13 -32
  10. package/lib/commonjs/components/create-transition-aware-component.js.map +1 -1
  11. package/lib/commonjs/components/integrations/masked-view.js +3 -4
  12. package/lib/commonjs/components/integrations/masked-view.js.map +1 -1
  13. package/lib/commonjs/components/root-transition-aware.js +3 -3
  14. package/lib/commonjs/components/root-transition-aware.js.map +1 -1
  15. package/lib/commonjs/constants.js +103 -0
  16. package/lib/commonjs/constants.js.map +1 -0
  17. package/lib/commonjs/hooks/animation/use-associated-style.js +3 -4
  18. package/lib/commonjs/hooks/animation/use-associated-style.js.map +1 -1
  19. package/lib/commonjs/hooks/animation/use-screen-animation.js +6 -28
  20. package/lib/commonjs/hooks/animation/use-screen-animation.js.map +1 -1
  21. package/lib/commonjs/hooks/bounds/use-bound-registry.js +92 -31
  22. package/lib/commonjs/hooks/bounds/use-bound-registry.js.map +1 -1
  23. package/lib/commonjs/hooks/gestures/use-build-gestures.js +27 -41
  24. package/lib/commonjs/hooks/gestures/use-build-gestures.js.map +1 -1
  25. package/lib/commonjs/index.js +3 -3
  26. package/lib/commonjs/index.js.map +1 -1
  27. package/lib/commonjs/integrations/native-stack/utils/debounce.js.map +1 -1
  28. package/lib/commonjs/integrations/native-stack/utils/useAnimatedHeaderHeight.js.map +1 -1
  29. package/lib/commonjs/integrations/native-stack/utils/useDismissedRouteError.js.map +1 -1
  30. package/lib/commonjs/integrations/native-stack/views/FontProcessor.js +1 -1
  31. package/lib/commonjs/integrations/native-stack/views/FontProcessor.js.map +1 -1
  32. package/lib/commonjs/integrations/native-stack/views/FontProcessor.native.js +1 -1
  33. package/lib/commonjs/integrations/native-stack/views/FontProcessor.native.js.map +1 -1
  34. package/lib/commonjs/integrations/native-stack/views/NativeStackView.native.js +2 -2
  35. package/lib/commonjs/integrations/native-stack/views/NativeStackView.native.js.map +1 -1
  36. package/lib/commonjs/providers/gestures.js +1 -9
  37. package/lib/commonjs/providers/gestures.js.map +1 -1
  38. package/lib/commonjs/{components/screen-transition-tree.js → providers/screen-transition-provider.js} +5 -5
  39. package/lib/commonjs/providers/screen-transition-provider.js.map +1 -0
  40. package/lib/commonjs/providers/transition-styles.js +4 -4
  41. package/lib/commonjs/providers/transition-styles.js.map +1 -1
  42. package/lib/commonjs/utils/animation/start-screen-transition.js +54 -0
  43. package/lib/commonjs/utils/animation/start-screen-transition.js.map +1 -0
  44. package/lib/commonjs/utils/bounds/index.js +6 -18
  45. package/lib/commonjs/utils/bounds/index.js.map +1 -1
  46. package/lib/commonjs/utils/gesture/apply-offset-rules.js +12 -21
  47. package/lib/commonjs/utils/gesture/apply-offset-rules.js.map +1 -1
  48. package/lib/commonjs/utils/gesture/determine-dismissal.js +7 -55
  49. package/lib/commonjs/utils/gesture/determine-dismissal.js.map +1 -1
  50. package/lib/commonjs/utils/gesture/reset-gesture-values.js +46 -0
  51. package/lib/commonjs/utils/gesture/reset-gesture-values.js.map +1 -0
  52. package/lib/commonjs/utils/gesture/velocity.js +89 -0
  53. package/lib/commonjs/utils/gesture/velocity.js.map +1 -0
  54. package/lib/commonjs/utils/reanimated/version.js +12 -0
  55. package/lib/commonjs/utils/reanimated/version.js.map +1 -0
  56. package/lib/module/__configs__/index.js.map +1 -0
  57. package/lib/module/{configs → __configs__}/presets.js +7 -3
  58. package/lib/module/__configs__/presets.js.map +1 -0
  59. package/lib/module/{configs → __configs__}/specs.js +1 -0
  60. package/lib/module/__configs__/specs.js.map +1 -0
  61. package/lib/module/components/controllers/screen-lifecycle.js +5 -5
  62. package/lib/module/components/controllers/screen-lifecycle.js.map +1 -1
  63. package/lib/module/components/create-transition-aware-component.js +13 -32
  64. package/lib/module/components/create-transition-aware-component.js.map +1 -1
  65. package/lib/module/components/integrations/masked-view.js +1 -2
  66. package/lib/module/components/integrations/masked-view.js.map +1 -1
  67. package/lib/module/components/root-transition-aware.js +3 -3
  68. package/lib/module/components/root-transition-aware.js.map +1 -1
  69. package/lib/module/constants.js +98 -0
  70. package/lib/module/constants.js.map +1 -0
  71. package/lib/module/hooks/animation/use-associated-style.js +3 -4
  72. package/lib/module/hooks/animation/use-associated-style.js.map +1 -1
  73. package/lib/module/hooks/animation/use-screen-animation.js +6 -28
  74. package/lib/module/hooks/animation/use-screen-animation.js.map +1 -1
  75. package/lib/module/hooks/bounds/use-bound-registry.js +93 -33
  76. package/lib/module/hooks/bounds/use-bound-registry.js.map +1 -1
  77. package/lib/module/hooks/gestures/use-build-gestures.js +22 -36
  78. package/lib/module/hooks/gestures/use-build-gestures.js.map +1 -1
  79. package/lib/module/index.js +1 -1
  80. package/lib/module/index.js.map +1 -1
  81. package/lib/module/integrations/native-stack/utils/debounce.js.map +1 -1
  82. package/lib/module/integrations/native-stack/utils/useAnimatedHeaderHeight.js +1 -1
  83. package/lib/module/integrations/native-stack/utils/useAnimatedHeaderHeight.js.map +1 -1
  84. package/lib/module/integrations/native-stack/utils/useDismissedRouteError.js +1 -1
  85. package/lib/module/integrations/native-stack/utils/useDismissedRouteError.js.map +1 -1
  86. package/lib/module/integrations/native-stack/views/FontProcessor.js +1 -1
  87. package/lib/module/integrations/native-stack/views/FontProcessor.js.map +1 -1
  88. package/lib/module/integrations/native-stack/views/FontProcessor.native.js +2 -2
  89. package/lib/module/integrations/native-stack/views/FontProcessor.native.js.map +1 -1
  90. package/lib/module/integrations/native-stack/views/NativeStackView.native.js +2 -2
  91. package/lib/module/integrations/native-stack/views/NativeStackView.native.js.map +1 -1
  92. package/lib/module/providers/gestures.js +0 -8
  93. package/lib/module/providers/gestures.js.map +1 -1
  94. package/lib/module/{components/screen-transition-tree.js → providers/screen-transition-provider.js} +4 -4
  95. package/lib/module/providers/screen-transition-provider.js.map +1 -0
  96. package/lib/module/providers/transition-styles.js +4 -4
  97. package/lib/module/providers/transition-styles.js.map +1 -1
  98. package/lib/module/utils/animation/{run-transition.js → start-screen-transition.js} +15 -13
  99. package/lib/module/utils/animation/start-screen-transition.js.map +1 -0
  100. package/lib/module/utils/bounds/index.js +5 -17
  101. package/lib/module/utils/bounds/index.js.map +1 -1
  102. package/lib/module/utils/gesture/apply-offset-rules.js +1 -10
  103. package/lib/module/utils/gesture/apply-offset-rules.js.map +1 -1
  104. package/lib/module/utils/gesture/determine-dismissal.js +7 -55
  105. package/lib/module/utils/gesture/determine-dismissal.js.map +1 -1
  106. package/lib/module/utils/gesture/reset-gesture-values.js +41 -0
  107. package/lib/module/utils/gesture/reset-gesture-values.js.map +1 -0
  108. package/lib/module/utils/gesture/velocity.js +85 -0
  109. package/lib/module/utils/gesture/velocity.js.map +1 -0
  110. package/lib/module/utils/reanimated/version.js +7 -0
  111. package/lib/module/utils/reanimated/version.js.map +1 -0
  112. package/lib/typescript/{configs → __configs__}/index.d.ts +1 -1
  113. package/lib/typescript/__configs__/index.d.ts.map +1 -0
  114. package/lib/typescript/__configs__/presets.d.ts.map +1 -0
  115. package/lib/typescript/__configs__/specs.d.ts.map +1 -0
  116. package/lib/typescript/components/create-transition-aware-component.d.ts +14 -2
  117. package/lib/typescript/components/create-transition-aware-component.d.ts.map +1 -1
  118. package/lib/typescript/components/integrations/masked-view.d.ts.map +1 -1
  119. package/lib/typescript/components/root-transition-aware.d.ts.map +1 -1
  120. package/lib/typescript/constants.d.ts +57 -0
  121. package/lib/typescript/constants.d.ts.map +1 -0
  122. package/lib/typescript/hooks/animation/use-associated-style.d.ts.map +1 -1
  123. package/lib/typescript/hooks/animation/use-screen-animation.d.ts +1 -1
  124. package/lib/typescript/hooks/animation/use-screen-animation.d.ts.map +1 -1
  125. package/lib/typescript/hooks/bounds/use-bound-registry.d.ts +8 -9
  126. package/lib/typescript/hooks/bounds/use-bound-registry.d.ts.map +1 -1
  127. package/lib/typescript/hooks/gestures/use-build-gestures.d.ts.map +1 -1
  128. package/lib/typescript/index.d.ts +100 -68
  129. package/lib/typescript/index.d.ts.map +1 -1
  130. package/lib/typescript/integrations/native-stack/utils/debounce.d.ts.map +1 -1
  131. package/lib/typescript/integrations/native-stack/utils/useAnimatedHeaderHeight.d.ts +2 -2
  132. package/lib/typescript/integrations/native-stack/utils/useDismissedRouteError.d.ts +2 -2
  133. package/lib/typescript/integrations/native-stack/utils/useDismissedRouteError.d.ts.map +1 -1
  134. package/lib/typescript/integrations/native-stack/views/FontProcessor.d.ts.map +1 -1
  135. package/lib/typescript/integrations/native-stack/views/FontProcessor.native.d.ts.map +1 -1
  136. package/lib/typescript/providers/gestures.d.ts +0 -1
  137. package/lib/typescript/providers/gestures.d.ts.map +1 -1
  138. package/lib/typescript/{components/screen-transition-tree.d.ts → providers/screen-transition-provider.d.ts} +2 -2
  139. package/lib/typescript/providers/screen-transition-provider.d.ts.map +1 -0
  140. package/lib/typescript/providers/transition-styles.d.ts.map +1 -1
  141. package/lib/typescript/types/core.d.ts +0 -8
  142. package/lib/typescript/types/core.d.ts.map +1 -1
  143. package/lib/typescript/utils/animation/start-screen-transition.d.ts +13 -0
  144. package/lib/typescript/utils/animation/start-screen-transition.d.ts.map +1 -0
  145. package/lib/typescript/utils/bounds/_types/get-bounds.d.ts +2 -2
  146. package/lib/typescript/utils/bounds/_types/get-bounds.d.ts.map +1 -1
  147. package/lib/typescript/utils/bounds/index.d.ts.map +1 -1
  148. package/lib/typescript/utils/gesture/apply-offset-rules.d.ts.map +1 -1
  149. package/lib/typescript/utils/gesture/determine-dismissal.d.ts +0 -1
  150. package/lib/typescript/utils/gesture/determine-dismissal.d.ts.map +1 -1
  151. package/lib/typescript/utils/gesture/reset-gesture-values.d.ts +16 -0
  152. package/lib/typescript/utils/gesture/reset-gesture-values.d.ts.map +1 -0
  153. package/lib/typescript/utils/gesture/velocity.d.ts +25 -0
  154. package/lib/typescript/utils/gesture/velocity.d.ts.map +1 -0
  155. package/lib/typescript/utils/reanimated/version.d.ts +2 -0
  156. package/lib/typescript/utils/reanimated/version.d.ts.map +1 -0
  157. package/package.json +3 -3
  158. package/src/{configs → __configs__}/presets.ts +7 -1
  159. package/src/{configs → __configs__}/specs.ts +1 -0
  160. package/src/components/controllers/screen-lifecycle.tsx +5 -5
  161. package/src/components/create-transition-aware-component.tsx +23 -38
  162. package/src/components/integrations/masked-view.tsx +1 -3
  163. package/src/components/root-transition-aware.tsx +4 -8
  164. package/src/constants.ts +106 -0
  165. package/src/hooks/animation/use-associated-style.tsx +3 -4
  166. package/src/hooks/animation/use-screen-animation.tsx +15 -32
  167. package/src/hooks/bounds/use-bound-registry.tsx +112 -25
  168. package/src/hooks/gestures/use-build-gestures.tsx +31 -25
  169. package/src/index.ts +1 -1
  170. package/src/integrations/native-stack/utils/debounce.tsx +9 -9
  171. package/src/integrations/native-stack/utils/useAnimatedHeaderHeight.tsx +10 -10
  172. package/src/integrations/native-stack/utils/useDismissedRouteError.tsx +21 -21
  173. package/src/integrations/native-stack/views/FontProcessor.native.tsx +7 -7
  174. package/src/integrations/native-stack/views/FontProcessor.tsx +2 -2
  175. package/src/integrations/native-stack/views/NativeStackView.native.tsx +4 -4
  176. package/src/providers/gestures.tsx +0 -9
  177. package/src/{components/screen-transition-tree.tsx → providers/screen-transition-provider.tsx} +3 -3
  178. package/src/providers/transition-styles.tsx +6 -5
  179. package/src/types/core.ts +0 -9
  180. package/src/utils/animation/start-screen-transition.ts +61 -0
  181. package/src/utils/bounds/_types/get-bounds.ts +7 -7
  182. package/src/utils/bounds/index.ts +12 -19
  183. package/src/utils/gesture/apply-offset-rules.ts +9 -11
  184. package/src/utils/gesture/determine-dismissal.ts +18 -69
  185. package/src/utils/gesture/reset-gesture-values.ts +48 -0
  186. package/src/utils/gesture/velocity.ts +144 -0
  187. package/src/utils/reanimated/version.ts +5 -0
  188. package/lib/commonjs/components/bound-capture.js +0 -38
  189. package/lib/commonjs/components/bound-capture.js.map +0 -1
  190. package/lib/commonjs/components/screen-transition-tree.js.map +0 -1
  191. package/lib/commonjs/configs/index.js.map +0 -1
  192. package/lib/commonjs/configs/presets.js.map +0 -1
  193. package/lib/commonjs/configs/specs.js.map +0 -1
  194. package/lib/commonjs/utils/animation/run-transition.js +0 -52
  195. package/lib/commonjs/utils/animation/run-transition.js.map +0 -1
  196. package/lib/module/components/bound-capture.js +0 -33
  197. package/lib/module/components/bound-capture.js.map +0 -1
  198. package/lib/module/components/screen-transition-tree.js.map +0 -1
  199. package/lib/module/configs/index.js.map +0 -1
  200. package/lib/module/configs/presets.js.map +0 -1
  201. package/lib/module/configs/specs.js.map +0 -1
  202. package/lib/module/utils/animation/run-transition.js.map +0 -1
  203. package/lib/typescript/components/bound-capture.d.ts +0 -8
  204. package/lib/typescript/components/bound-capture.d.ts.map +0 -1
  205. package/lib/typescript/components/screen-transition-tree.d.ts.map +0 -1
  206. package/lib/typescript/configs/index.d.ts.map +0 -1
  207. package/lib/typescript/configs/presets.d.ts.map +0 -1
  208. package/lib/typescript/configs/specs.d.ts.map +0 -1
  209. package/lib/typescript/utils/animation/run-transition.d.ts +0 -12
  210. package/lib/typescript/utils/animation/run-transition.d.ts.map +0 -1
  211. package/src/components/bound-capture.tsx +0 -32
  212. package/src/utils/animation/run-transition.ts +0 -52
  213. /package/lib/commonjs/{configs → __configs__}/index.js +0 -0
  214. /package/lib/module/{configs → __configs__}/index.js +0 -0
  215. /package/lib/typescript/{configs → __configs__}/presets.d.ts +0 -0
  216. /package/lib/typescript/{configs → __configs__}/specs.d.ts +0 -0
  217. /package/src/{configs → __configs__}/index.ts +0 -0
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ import { clamp } from "react-native-reanimated";
4
+ const MAX_VELOCITY_MAGNITUDE = 3.2;
5
+ const NEAR_ZERO_THRESHOLD = 0.01;
6
+
7
+ /**
8
+ * Converts velocity from pixels/second to normalized units/second (0-1 range)
9
+ * and caps the result for stability
10
+ */
11
+ const normalize = (velocityPixelsPerSecond, screenSize) => {
12
+ "worklet";
13
+
14
+ return clamp(velocityPixelsPerSecond / Math.max(1, screenSize), -MAX_VELOCITY_MAGNITUDE, MAX_VELOCITY_MAGNITUDE);
15
+ };
16
+
17
+ /**
18
+ * Calculates a normalized velocity that moves the current value toward zero.
19
+ * Used for spring-back animations when dismissing gestures.
20
+ */
21
+ const calculateRestoreVelocity = (currentValueNormalized, baseVelocityNormalized, threshold = NEAR_ZERO_THRESHOLD) => {
22
+ "worklet";
23
+
24
+ if (Math.abs(currentValueNormalized) < threshold) return 0;
25
+ const directionTowardZero = Math.sign(currentValueNormalized) || 1;
26
+ const clampedVelocity = Math.min(Math.abs(baseVelocityNormalized), 1);
27
+ return -directionTowardZero * clampedVelocity;
28
+ };
29
+ const calculateProgressVelocity = ({
30
+ animations,
31
+ shouldDismiss,
32
+ event,
33
+ dimensions,
34
+ directions
35
+ }) => {
36
+ "worklet";
37
+
38
+ const currentProgress = animations.progress.value;
39
+ const targetProgress = shouldDismiss ? 0 : 1;
40
+ const progressDelta = targetProgress - currentProgress;
41
+ const progressDirection = progressDelta === 0 ? 0 : Math.sign(progressDelta);
42
+ const normalizedVelocityX = normalize(event.velocityX, dimensions.width);
43
+ const normalizedVelocityY = normalize(event.velocityY, dimensions.height);
44
+ const normalizedTranslationX = Math.abs(event.translationX / dimensions.width);
45
+ const normalizedTranslationY = Math.abs(event.translationY / dimensions.height);
46
+ const supportsHorizontalGestures = directions.horizontal || directions.horizontalInverted;
47
+ const supportsVerticalGestures = directions.vertical || directions.verticalInverted;
48
+ let progressVelocityMagnitude = 0;
49
+
50
+ // Determine which axis should drive the progress velocity
51
+ if (supportsHorizontalGestures && (!supportsVerticalGestures || normalizedTranslationX >= normalizedTranslationY)) {
52
+ progressVelocityMagnitude = Math.abs(normalizedVelocityX);
53
+ } else if (supportsVerticalGestures) {
54
+ progressVelocityMagnitude = Math.abs(normalizedVelocityY);
55
+ } else {
56
+ progressVelocityMagnitude = Math.max(Math.abs(normalizedVelocityX), Math.abs(normalizedVelocityY));
57
+ }
58
+
59
+ // Apply direction and clamp to prevent overly energetic springs
60
+ return progressDirection * clamp(progressVelocityMagnitude, 0, MAX_VELOCITY_MAGNITUDE);
61
+ };
62
+
63
+ /**
64
+ * Determines if a gesture should trigger dismissal based on combined
65
+ * translation and velocity in normalized screen units (0-1 range).
66
+ *
67
+ * Formula: |translation/screen + clamp(velocity/screen, ±1) * velocityWeight| > 0.5
68
+ */
69
+ const shouldPassDismissalThreshold = (translationPixels, velocityPixelsPerSecond, screenSize, velocityWeight) => {
70
+ "worklet";
71
+
72
+ const normalizedTranslation = translationPixels / Math.max(1, screenSize);
73
+ const normalizedVelocity = normalize(velocityPixelsPerSecond, screenSize);
74
+ const projectedNormalizedPosition = normalizedTranslation + normalizedVelocity * velocityWeight;
75
+ const exceedsThreshold = Math.abs(projectedNormalizedPosition) > 0.5;
76
+ const hasMovement = translationPixels !== 0 || velocityPixelsPerSecond !== 0;
77
+ return exceedsThreshold && hasMovement;
78
+ };
79
+ export const velocity = {
80
+ normalize,
81
+ calculateRestoreVelocity,
82
+ calculateProgressVelocity,
83
+ shouldPassDismissalThreshold
84
+ };
85
+ //# sourceMappingURL=velocity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["clamp","MAX_VELOCITY_MAGNITUDE","NEAR_ZERO_THRESHOLD","normalize","velocityPixelsPerSecond","screenSize","Math","max","calculateRestoreVelocity","currentValueNormalized","baseVelocityNormalized","threshold","abs","directionTowardZero","sign","clampedVelocity","min","calculateProgressVelocity","animations","shouldDismiss","event","dimensions","directions","currentProgress","progress","value","targetProgress","progressDelta","progressDirection","normalizedVelocityX","velocityX","width","normalizedVelocityY","velocityY","height","normalizedTranslationX","translationX","normalizedTranslationY","translationY","supportsHorizontalGestures","horizontal","horizontalInverted","supportsVerticalGestures","vertical","verticalInverted","progressVelocityMagnitude","shouldPassDismissalThreshold","translationPixels","velocityWeight","normalizedTranslation","normalizedVelocity","projectedNormalizedPosition","exceedsThreshold","hasMovement","velocity"],"sourceRoot":"../../../../src","sources":["utils/gesture/velocity.ts"],"mappings":";;AAIA,SAASA,KAAK,QAAQ,yBAAyB;AAgB/C,MAAMC,sBAAsB,GAAG,GAAG;AAClC,MAAMC,mBAAmB,GAAG,IAAI;;AAEhC;AACA;AACA;AACA;AACA,MAAMC,SAAS,GAAGA,CAACC,uBAA+B,EAAEC,UAAkB,KAAK;EAC1E,SAAS;;EACT,OAAOL,KAAK,CACXI,uBAAuB,GAAGE,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEF,UAAU,CAAC,EACjD,CAACJ,sBAAsB,EACvBA,sBACD,CAAC;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA,MAAMO,wBAAwB,GAAGA,CAChCC,sBAA8B,EAC9BC,sBAA8B,EAC9BC,SAAiB,GAAGT,mBAAmB,KACnC;EACJ,SAAS;;EAET,IAAII,IAAI,CAACM,GAAG,CAACH,sBAAsB,CAAC,GAAGE,SAAS,EAAE,OAAO,CAAC;EAE1D,MAAME,mBAAmB,GAAGP,IAAI,CAACQ,IAAI,CAACL,sBAAsB,CAAC,IAAI,CAAC;EAClE,MAAMM,eAAe,GAAGT,IAAI,CAACU,GAAG,CAACV,IAAI,CAACM,GAAG,CAACF,sBAAsB,CAAC,EAAE,CAAC,CAAC;EAErE,OAAO,CAACG,mBAAmB,GAAGE,eAAe;AAC9C,CAAC;AAED,MAAME,yBAAyB,GAAGA,CAAC;EAClCC,UAAU;EACVC,aAAa;EACbC,KAAK;EACLC,UAAU;EACVC;AACuB,CAAC,KAAK;EAC7B,SAAS;;EAET,MAAMC,eAAe,GAAGL,UAAU,CAACM,QAAQ,CAACC,KAAK;EACjD,MAAMC,cAAc,GAAGP,aAAa,GAAG,CAAC,GAAG,CAAC;EAC5C,MAAMQ,aAAa,GAAGD,cAAc,GAAGH,eAAe;EAEtD,MAAMK,iBAAiB,GAAGD,aAAa,KAAK,CAAC,GAAG,CAAC,GAAGrB,IAAI,CAACQ,IAAI,CAACa,aAAa,CAAC;EAE5E,MAAME,mBAAmB,GAAG1B,SAAS,CAACiB,KAAK,CAACU,SAAS,EAAET,UAAU,CAACU,KAAK,CAAC;EACxE,MAAMC,mBAAmB,GAAG7B,SAAS,CAACiB,KAAK,CAACa,SAAS,EAAEZ,UAAU,CAACa,MAAM,CAAC;EAEzE,MAAMC,sBAAsB,GAAG7B,IAAI,CAACM,GAAG,CACtCQ,KAAK,CAACgB,YAAY,GAAGf,UAAU,CAACU,KACjC,CAAC;EACD,MAAMM,sBAAsB,GAAG/B,IAAI,CAACM,GAAG,CACtCQ,KAAK,CAACkB,YAAY,GAAGjB,UAAU,CAACa,MACjC,CAAC;EAED,MAAMK,0BAA0B,GAC/BjB,UAAU,CAACkB,UAAU,IAAIlB,UAAU,CAACmB,kBAAkB;EAEvD,MAAMC,wBAAwB,GAC7BpB,UAAU,CAACqB,QAAQ,IAAIrB,UAAU,CAACsB,gBAAgB;EAEnD,IAAIC,yBAAyB,GAAG,CAAC;;EAEjC;EACA,IACCN,0BAA0B,KACzB,CAACG,wBAAwB,IACzBP,sBAAsB,IAAIE,sBAAsB,CAAC,EACjD;IACDQ,yBAAyB,GAAGvC,IAAI,CAACM,GAAG,CAACiB,mBAAmB,CAAC;EAC1D,CAAC,MAAM,IAAIa,wBAAwB,EAAE;IACpCG,yBAAyB,GAAGvC,IAAI,CAACM,GAAG,CAACoB,mBAAmB,CAAC;EAC1D,CAAC,MAAM;IACNa,yBAAyB,GAAGvC,IAAI,CAACC,GAAG,CACnCD,IAAI,CAACM,GAAG,CAACiB,mBAAmB,CAAC,EAC7BvB,IAAI,CAACM,GAAG,CAACoB,mBAAmB,CAC7B,CAAC;EACF;;EAEA;EACA,OACCJ,iBAAiB,GACjB5B,KAAK,CAAC6C,yBAAyB,EAAE,CAAC,EAAE5C,sBAAsB,CAAC;AAE7D,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,MAAM6C,4BAA4B,GAAGA,CACpCC,iBAAyB,EACzB3C,uBAA+B,EAC/BC,UAAkB,EAClB2C,cAAsB,KAClB;EACJ,SAAS;;EAET,MAAMC,qBAAqB,GAAGF,iBAAiB,GAAGzC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEF,UAAU,CAAC;EACzE,MAAM6C,kBAAkB,GAAG/C,SAAS,CAACC,uBAAuB,EAAEC,UAAU,CAAC;EAEzE,MAAM8C,2BAA2B,GAChCF,qBAAqB,GAAGC,kBAAkB,GAAGF,cAAc;EAE5D,MAAMI,gBAAgB,GAAG9C,IAAI,CAACM,GAAG,CAACuC,2BAA2B,CAAC,GAAG,GAAG;EAEpE,MAAME,WAAW,GAAGN,iBAAiB,KAAK,CAAC,IAAI3C,uBAAuB,KAAK,CAAC;EAE5E,OAAOgD,gBAAgB,IAAIC,WAAW;AACvC,CAAC;AAED,OAAO,MAAMC,QAAQ,GAAG;EACvBnD,SAAS;EACTK,wBAAwB;EACxBS,yBAAyB;EACzB6B;AACD,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ import { reanimatedVersion } from "react-native-reanimated";
4
+ export const isReanimated4 = () => {
5
+ return reanimatedVersion.split(".")[0] === "4";
6
+ };
7
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["reanimatedVersion","isReanimated4","split"],"sourceRoot":"../../../../src","sources":["utils/reanimated/version.ts"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,yBAAyB;AAE3D,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EAClC,OAAOD,iBAAiB,CAACE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG;AAC/C,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  export declare const specs: {
2
- DefaultSpec: import("react-native-reanimated/lib/typescript/animation/springUtils").SpringConfig;
2
+ DefaultSpec: import("react-native-reanimated/lib/typescript/animation/spring").SpringConfig;
3
3
  };
4
4
  export declare const presets: {
5
5
  SlideFromTop: (config?: Partial<import("../types/navigator").ScreenTransitionConfig>) => import("../types/navigator").ScreenTransitionConfig;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__configs__/index.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,KAAK;;CAEjB,CAAC;AAEF,eAAO,MAAM,OAAO;;;;;;qBAU2mF,CAAC;;;;;CAD/nF,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../src/__configs__/presets.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAKjE,eAAO,MAAM,YAAY,GACxB,SAAQ,OAAO,CAAC,sBAAsB,CAAM,KAC1C,sBA4BF,CAAC;AAEF,eAAO,MAAM,MAAM,GAClB,SAAQ,OAAO,CAAC,sBAAsB,CAAM,KAC1C,sBAkCF,CAAC;AAEF,eAAO,MAAM,eAAe,GAC3B,SAAQ,OAAO,CAAC,sBAAsB,CAAM,KAC1C,sBA2BF,CAAC;AAEF,eAAO,MAAM,aAAa,GACzB,SAAQ,OAAO,CAAC,sBAAsB,CAAM,KAC1C,sBAuCF,CAAC;AAEF,eAAO,MAAM,WAAW,GACvB,SAAQ,OAAO,CAAC,sBAAsB,CAAC,GAAG;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;CACE,KACxB,sBA0DF,CAAC;AAEF,eAAO,MAAM,aAAa,GACzB,SAAQ,OAAO,CAAC,sBAAsB,CAAM,KAC1C,sBA6HF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC5B,SAAQ,OAAO,CAAC,sBAAsB,CAAM,KAC1C,sBAkLF,CAAC;AAEF,eAAO,MAAM,YAAY,GACxB,SAAQ,OAAO,CAAC,sBAAsB,CAAM,KAC1C,sBA+EF,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"specs.d.ts","sourceRoot":"","sources":["../../../src/__configs__/specs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,eAAO,MAAM,WAAW,EAAE,gBAOzB,CAAC"}
@@ -1,9 +1,21 @@
1
1
  import type React from "react";
2
2
  import { type ComponentType } from "react";
3
- import type { TransitionAwareProps } from "../types/core";
4
3
  interface CreateTransitionAwareComponentOptions {
5
4
  isScrollable?: boolean;
6
5
  }
7
- export declare function createTransitionAwareComponent<P extends object>(Wrapped: ComponentType<P>, options?: CreateTransitionAwareComponentOptions): React.MemoExoticComponent<React.ForwardRefExoticComponent<TransitionAwareProps<P> & React.RefAttributes<React.ComponentRef<typeof Wrapped>>>>;
6
+ export declare function createTransitionAwareComponent<P extends object>(Wrapped: ComponentType<P>, options?: CreateTransitionAwareComponentOptions): React.MemoExoticComponent<React.ForwardRefExoticComponent<{ [K in keyof Omit<P, "style" | { [Key in keyof P]-?: Key extends `${string}Style` | "style" ? Key : never; }[keyof P]>]: P[K] | import("react-native-reanimated").SharedValue<P[K]>; } & { [Key_1 in keyof ({ [Key in keyof P]-?: Key extends `${string}Style` | "style" ? Key : never; }[keyof P] extends infer T extends keyof P ? { [P_1 in T]: P[P_1]; } : never)]: import("react-native").StyleProp<import("react-native-reanimated").AnimatedStyle<P[Key_1]>>; } & {
7
+ layout?: import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").LayoutAnimationFunction | typeof import("react-native-reanimated").BaseAnimationBuilder;
8
+ entering?: import("react-native-reanimated").EntryOrExitLayoutType;
9
+ exiting?: import("react-native-reanimated").EntryOrExitLayoutType;
10
+ } & {
11
+ animatedProps?: import("react-native-reanimated/lib/typescript/css/types").AddArrayPropertyType<Partial<{ [K in keyof Omit<P, "style" | { [Key in keyof P]-?: Key extends `${string}Style` | "style" ? Key : never; }[keyof P]>]: P[K] | import("react-native-reanimated").SharedValue<P[K]>; } & { [Key_1 in keyof ({ [Key in keyof P]-?: Key extends `${string}Style` | "style" ? Key : never; }[keyof P] extends infer T_1 extends keyof P ? { [P_1 in T_1]: P[P_1]; } : never)]: import("react-native").StyleProp<import("react-native-reanimated").AnimatedStyle<P[Key_1]>>; } & {
12
+ layout?: import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").LayoutAnimationFunction | typeof import("react-native-reanimated").BaseAnimationBuilder;
13
+ entering?: import("react-native-reanimated").EntryOrExitLayoutType;
14
+ exiting?: import("react-native-reanimated").EntryOrExitLayoutType;
15
+ }> | import("react-native-reanimated").CSSStyle<P>> | undefined;
16
+ } & {
17
+ styleId?: string;
18
+ sharedBoundTag?: string;
19
+ } & React.RefAttributes<React.ComponentRef<React.ComponentType<P>>>>>;
8
20
  export {};
9
21
  //# sourceMappingURL=create-transition-aware-component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-transition-aware-component.d.ts","sourceRoot":"","sources":["../../../src/components/create-transition-aware-component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,OAAO,CAAC;AAS7D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAI1D,UAAU,qCAAqC;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,8BAA8B,CAAC,CAAC,SAAS,MAAM,EAC9D,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,EACzB,OAAO,GAAE,qCAA0C,GA8F7B,KAAK,CAAC,mBAAmB,CAC9C,KAAK,CAAC,yBAAyB,CAC9B,oBAAoB,CAAC,CAAC,CAAC,GACtB,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CACxD,CACD,CACD"}
1
+ {"version":3,"file":"create-transition-aware-component.d.ts","sourceRoot":"","sources":["../../../src/components/create-transition-aware-component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,OAAO,CAAC;AAW7D,UAAU,qCAAqC;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,8BAA8B,CAAC,CAAC,SAAS,MAAM,EAC9D,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,EACzB,OAAO,GAAE,qCAA0C;;;;;;;;;;;;;sEAuFnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"masked-view.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/masked-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAgBhF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAClC,QAAQ,EACR,KAAK,EAAE,UAAe,GACtB,EAAE;IACF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B,2WAqBA"}
1
+ {"version":3,"file":"masked-view.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/masked-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAchF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAClC,QAAQ,EACR,KAAK,EAAE,UAAe,GACtB,EAAE;IACF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B,2WAqBA"}
@@ -1 +1 @@
1
- {"version":3,"file":"root-transition-aware.d.ts","sourceRoot":"","sources":["../../../src/components/root-transition-aware.tsx"],"names":[],"mappings":"AAQA,KAAK,KAAK,GAAG;IACZ,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAIF,eAAO,MAAM,mBAAmB,qDAAuB,KAAK,6CAwB1D,CAAC"}
1
+ {"version":3,"file":"root-transition-aware.d.ts","sourceRoot":"","sources":["../../../src/components/root-transition-aware.tsx"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACZ,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,mBAAmB,qDAAuB,KAAK,6CAwB1D,CAAC"}
@@ -0,0 +1,57 @@
1
+ import type { ScaledSize } from "react-native";
2
+ import type { MeasuredDimensions } from "react-native-reanimated";
3
+ import type { ScreenTransitionState } from "./types/animation";
4
+ import type { BoundEntry } from "./types/bounds";
5
+ import type { ActivationArea } from "./types/gesture";
6
+ import type { Complete } from "./types/utils";
7
+ import type { BoundsBuilderOptions } from "./utils/bounds/_types/builder";
8
+ /**
9
+ * Masked view integration
10
+ */
11
+ export declare const MASK_STYLE_ID = "_ROOT_MASKED";
12
+ export declare const CONTAINER_STYLE_ID = "_ROOT_CONTAINER";
13
+ /**
14
+ * Styles
15
+ */
16
+ export declare const NO_STYLES: Readonly<{}>;
17
+ /**
18
+ * Default screen transition state
19
+ */
20
+ export declare const DEFAULT_SCREEN_TRANSITION_STATE: ScreenTransitionState;
21
+ /**
22
+ * Bounds API Defaults
23
+ */
24
+ export declare const NO_BOUNDS_MAP: Record<string, BoundEntry>;
25
+ export declare const EMPTY_BOUND_HELPER_RESULT: Readonly<{}>;
26
+ export declare const EMPTY_BOUND_HELPER_RESULT_RAW: Readonly<{
27
+ scaleX: 1;
28
+ scaleY: 1;
29
+ scale: 1;
30
+ translateX: 0;
31
+ translateY: 0;
32
+ width: 0;
33
+ height: 0;
34
+ }>;
35
+ export declare const ENTER_RANGE: readonly [0, 1];
36
+ export declare const EXIT_RANGE: readonly [1, 2];
37
+ export declare const FULLSCREEN_DIMENSIONS: (dimensions: ScaledSize) => MeasuredDimensions;
38
+ export declare const DEFAULT_BUILDER_OPTIONS: Complete<Omit<BoundsBuilderOptions, "id">>;
39
+ /**
40
+ * Default gesture config
41
+ */
42
+ export declare const GESTURE_VELOCITY_IMPACT = 0.3;
43
+ export declare const DEFAULT_GESTURE_DIRECTION = "horizontal";
44
+ export declare const DEFAULT_GESTURE_ENABLED = false;
45
+ export declare const DEFAULT_GESTURE_DRIVES_PROGRESS = true;
46
+ export declare const DEFAULT_GESTURE_ACTIVATION_AREA: ActivationArea;
47
+ /**
48
+ * Default gesture offset
49
+ */
50
+ export declare const GESTURE_ACTIVATION_THRESHOLD_X = 10;
51
+ export declare const GESTURE_ACTIVATION_THRESHOLD_Y = 10;
52
+ export declare const GESTURE_FAIL_TOLERANCE_X = 15;
53
+ export declare const GESTURE_FAIL_TOLERANCE_Y = 20;
54
+ export declare const DEFAULT_EDGE_DISTANCE_HORIZONTAL = 50;
55
+ export declare const DEFAULT_EDGE_DISTANCE_VERTICAL = 135;
56
+ export declare const DEFAULT_ACTIVATION_AREA: "screen";
57
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,aAAa,iBAAiB,CAAC;AAC5C,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,SAAS,cAAoB,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAE,qBAe3C,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAqB,CAAC;AAC3E,eAAO,MAAM,yBAAyB,cAAoB,CAAC;AAC3D,eAAO,MAAM,6BAA6B;;;;;;;;EAQxC,CAAC;AACH,eAAO,MAAM,WAAW,iBAAkB,CAAC;AAC3C,eAAO,MAAM,UAAU,iBAAkB,CAAC;AAC1C,eAAO,MAAM,qBAAqB,GACjC,YAAY,UAAU,KACpB,kBAUF,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC7C,IAAI,CAAC,oBAAoB,EAAE,IAAI,CAAC,CActB,CAAC;AAEZ;;GAEG;AACH,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAC3C,eAAO,MAAM,yBAAyB,eAAe,CAAC;AACtD,eAAO,MAAM,uBAAuB,QAAQ,CAAC;AAC7C,eAAO,MAAM,+BAA+B,OAAO,CAAC;AACpD,eAAO,MAAM,+BAA+B,EAAE,cAAyB,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,8BAA8B,KAAK,CAAC;AACjD,eAAO,MAAM,8BAA8B,KAAK,CAAC;AACjD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,eAAO,MAAM,gCAAgC,KAAK,CAAC;AACnD,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAClD,eAAO,MAAM,uBAAuB,EAAG,QAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-associated-style.d.ts","sourceRoot":"","sources":["../../../../src/hooks/animation/use-associated-style.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,UAAU,EAIf,MAAM,yBAAyB,CAAC;AAGjC,KAAK,KAAK,GAAG;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAIF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAQ,KAAU;;CAkDrD,CAAC"}
1
+ {"version":3,"file":"use-associated-style.d.ts","sourceRoot":"","sources":["../../../../src/hooks/animation/use-associated-style.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,UAAU,EAIf,MAAM,yBAAyB,CAAC;AAIjC,KAAK,KAAK,GAAG;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAQ,KAAU;;CAkDrD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { ScreenInterpolationProps } from "../../types/animation";
2
2
  export declare function _useScreenAnimation(): {
3
3
  screenInterpolatorProps: import("react-native-reanimated").DerivedValue<ScreenInterpolationProps>;
4
- screenStyleInterpolator: false | import("../../types/animation").ScreenStyleInterpolator | undefined;
4
+ screenStyleInterpolator: import("../../types/animation").ScreenStyleInterpolator | undefined;
5
5
  };
6
6
  export declare function useScreenAnimation(): import("react-native-reanimated").DerivedValue<ScreenInterpolationProps>;
7
7
  //# sourceMappingURL=use-screen-animation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-screen-animation.d.ts","sourceRoot":"","sources":["../../../../src/hooks/animation/use-screen-animation.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EACX,wBAAwB,EAExB,MAAM,uBAAuB,CAAC;AAyE/B,wBAAgB,mBAAmB;;;EAsElC;AAED,wBAAgB,kBAAkB,6EAIjC"}
1
+ {"version":3,"file":"use-screen-animation.d.ts","sourceRoot":"","sources":["../../../../src/hooks/animation/use-screen-animation.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACX,wBAAwB,EAExB,MAAM,uBAAuB,CAAC;AAuD/B,wBAAgB,mBAAmB;;;EAmElC;AAED,wBAAgB,kBAAkB,6EAIjC"}
@@ -1,18 +1,17 @@
1
1
  import type { View } from "react-native";
2
2
  import { type AnimatedRef, type StyleProps } from "react-native-reanimated";
3
3
  interface BoundMeasurerHookProps {
4
- sharedBoundTag: string;
4
+ sharedBoundTag?: string;
5
5
  animatedRef: AnimatedRef<View>;
6
- current: {
7
- route: {
8
- key: string;
9
- };
10
- };
11
6
  style: StyleProps;
7
+ onPress?: ((...args: unknown[]) => void) | undefined;
12
8
  }
13
- export declare const useBoundsRegistry: ({ sharedBoundTag, animatedRef, current, style, }: BoundMeasurerHookProps) => {
14
- measureBounds: () => void;
15
- handleLayout: () => void;
9
+ export declare const useBoundsRegistry: ({ sharedBoundTag, animatedRef, style, onPress, }: BoundMeasurerHookProps) => {
10
+ handleTransitionLayout: () => void;
11
+ captureActiveOnPress: () => void;
12
+ MeasurementSyncProvider: import("react").ExoticComponent<import("react").FragmentProps> | (({ children }: {
13
+ children: React.ReactNode;
14
+ }) => import("react/jsx-runtime").JSX.Element);
16
15
  };
17
16
  export {};
18
17
  //# sourceMappingURL=use-bound-registry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-bound-registry.d.ts","sourceRoot":"","sources":["../../../../src/hooks/bounds/use-bound-registry.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EACN,KAAK,WAAW,EAEhB,KAAK,UAAU,EAEf,MAAM,yBAAyB,CAAC;AAMjC,UAAU,sBAAsB;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/B,OAAO,EAAE;QAAE,KAAK,EAAE;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;IACpC,KAAK,EAAE,UAAU,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,GAAI,kDAK/B,sBAAsB;;;CA8CxB,CAAC"}
1
+ {"version":3,"file":"use-bound-registry.d.ts","sourceRoot":"","sources":["../../../../src/hooks/bounds/use-bound-registry.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EACN,KAAK,WAAW,EAIhB,KAAK,UAAU,EAGf,MAAM,yBAAyB,CAAC;AAQjC,UAAU,sBAAsB;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAE/B,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACrD;AASD,eAAO,MAAM,iBAAiB,GAAI,kDAK/B,sBAAsB;;;8GAyFD;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;CAyBpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-build-gestures.d.ts","sourceRoot":"","sources":["../../../../src/hooks/gestures/use-build-gestures.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIN,KAAK,WAAW,EAGhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAEN,KAAK,WAAW,EAEhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAmB7D,UAAU,sBAAsB;IAC/B,YAAY,EAAE,WAAW,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,gBAAgB,GAAI,mBAE9B,sBAAsB,KAAG;IAC3B,UAAU,EAAE,WAAW,CAAC;IACxB,aAAa,EAAE,WAAW,CAAC;CAkS3B,CAAC"}
1
+ {"version":3,"file":"use-build-gestures.d.ts","sourceRoot":"","sources":["../../../../src/hooks/gestures/use-build-gestures.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIN,KAAK,WAAW,EAGhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAEN,KAAK,WAAW,EAEhB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAc7D,UAAU,sBAAsB;IAC/B,YAAY,EAAE,WAAW,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,gBAAgB,GAAI,mBAE9B,sBAAsB,KAAG;IAC3B,UAAU,EAAE,WAAW,CAAC;IACxB,aAAa,EAAE,WAAW,CAAC;CAsS3B,CAAC"}