react-native-screen-transitions 2.4.0 → 2.4.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/lib/commonjs/__configs__/presets.js.map +1 -1
  2. package/lib/commonjs/components/root-transition-aware.js.map +1 -1
  3. package/lib/commonjs/constants.js.map +1 -1
  4. package/lib/commonjs/hooks/animation/use-screen-animation.js +9 -5
  5. package/lib/commonjs/hooks/animation/use-screen-animation.js.map +1 -1
  6. package/lib/commonjs/index.js +7 -0
  7. package/lib/commonjs/index.js.map +1 -1
  8. package/lib/commonjs/integrations/blank-stack/components/Header.js +142 -0
  9. package/lib/commonjs/integrations/blank-stack/components/Header.js.map +1 -0
  10. package/lib/commonjs/integrations/blank-stack/components/Screens.js +64 -0
  11. package/lib/commonjs/integrations/blank-stack/components/Screens.js.map +1 -0
  12. package/lib/commonjs/integrations/blank-stack/components/StackView.js +94 -0
  13. package/lib/commonjs/integrations/blank-stack/components/StackView.js.map +1 -0
  14. package/lib/commonjs/integrations/blank-stack/navigators/createBlankStackNavigator.js +74 -0
  15. package/lib/commonjs/integrations/blank-stack/navigators/createBlankStackNavigator.js.map +1 -0
  16. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js +66 -0
  17. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +1 -0
  18. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js +16 -0
  19. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +1 -0
  20. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js +208 -0
  21. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +1 -0
  22. package/lib/commonjs/{types/navigator.js → integrations/blank-stack/utils/with-stack-navigation/_types.js} +1 -1
  23. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_types.js.map +1 -0
  24. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js +15 -0
  25. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +1 -0
  26. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.js +23 -0
  27. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.js.map +1 -0
  28. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js +15 -0
  29. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +1 -0
  30. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js +14 -0
  31. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +1 -0
  32. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js +13 -0
  33. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +1 -0
  34. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/index.js +71 -0
  35. package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/index.js.map +1 -0
  36. package/lib/commonjs/integrations/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
  37. package/lib/commonjs/integrations/native-stack/utils/getModalRoutesKeys.js.map +1 -1
  38. package/lib/commonjs/integrations/native-stack/utils/useInvalidPreventRemoveError.js.map +1 -1
  39. package/lib/commonjs/integrations/native-stack/views/NativeStackView.js.map +1 -1
  40. package/lib/commonjs/integrations/native-stack/views/NativeStackView.native.js.map +1 -1
  41. package/lib/commonjs/integrations/native-stack/views/useHeaderConfigProps.js.map +1 -1
  42. package/lib/commonjs/providers/keys.js.map +1 -1
  43. package/lib/commonjs/providers/screen-transition-provider.js.map +1 -1
  44. package/lib/commonjs/providers/transition-styles.js +18 -4
  45. package/lib/commonjs/providers/transition-styles.js.map +1 -1
  46. package/lib/commonjs/stores/animations.js.map +1 -1
  47. package/lib/commonjs/stores/bounds/index.js.map +1 -1
  48. package/lib/commonjs/stores/gestures.js.map +1 -1
  49. package/lib/commonjs/stores/utils/reset-stores-for-screen.js.map +1 -1
  50. package/lib/commonjs/types/blank-stack.navigator.js +6 -0
  51. package/lib/commonjs/types/{navigator.js.map → blank-stack.navigator.js.map} +1 -1
  52. package/lib/commonjs/types/native-stack.navigator.js +6 -0
  53. package/lib/commonjs/types/native-stack.navigator.js.map +1 -0
  54. package/lib/commonjs/utils/animation/derivations.js +1 -14
  55. package/lib/commonjs/utils/animation/derivations.js.map +1 -1
  56. package/lib/commonjs/utils/bounds/_utils/styles.js.map +1 -1
  57. package/lib/commonjs/utils/bounds/constants.js.map +1 -1
  58. package/lib/commonjs/utils/bounds/index.js +23 -90
  59. package/lib/commonjs/utils/bounds/index.js.map +1 -1
  60. package/lib/commonjs/utils/gesture/apply-offset-rules.js.map +1 -1
  61. package/lib/commonjs/utils/gesture/check-gesture-activation.js.map +1 -1
  62. package/lib/commonjs/utils/gesture/reset-gesture-values.js.map +1 -1
  63. package/lib/commonjs/utils/gesture/velocity.js +2 -2
  64. package/lib/commonjs/utils/gesture/velocity.js.map +1 -1
  65. package/lib/module/__configs__/presets.js.map +1 -1
  66. package/lib/module/components/root-transition-aware.js.map +1 -1
  67. package/lib/module/constants.js.map +1 -1
  68. package/lib/module/hooks/animation/use-screen-animation.js +9 -5
  69. package/lib/module/hooks/animation/use-screen-animation.js.map +1 -1
  70. package/lib/module/index.js +1 -0
  71. package/lib/module/index.js.map +1 -1
  72. package/lib/module/integrations/blank-stack/components/Header.js +138 -0
  73. package/lib/module/integrations/blank-stack/components/Header.js.map +1 -0
  74. package/lib/module/integrations/blank-stack/components/Screens.js +58 -0
  75. package/lib/module/integrations/blank-stack/components/Screens.js.map +1 -0
  76. package/lib/module/integrations/blank-stack/components/StackView.js +90 -0
  77. package/lib/module/integrations/blank-stack/components/StackView.js.map +1 -0
  78. package/lib/module/integrations/blank-stack/navigators/createBlankStackNavigator.js +68 -0
  79. package/lib/module/integrations/blank-stack/navigators/createBlankStackNavigator.js.map +1 -0
  80. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js +60 -0
  81. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +1 -0
  82. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js +11 -0
  83. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +1 -0
  84. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js +202 -0
  85. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +1 -0
  86. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_types.js +4 -0
  87. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_types.js.map +1 -0
  88. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js +10 -0
  89. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +1 -0
  90. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.js +19 -0
  91. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.js.map +1 -0
  92. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js +10 -0
  93. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +1 -0
  94. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js +9 -0
  95. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +1 -0
  96. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js +8 -0
  97. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +1 -0
  98. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/index.js +65 -0
  99. package/lib/module/integrations/blank-stack/utils/with-stack-navigation/index.js.map +1 -0
  100. package/lib/module/integrations/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
  101. package/lib/module/integrations/native-stack/utils/getModalRoutesKeys.js.map +1 -1
  102. package/lib/module/integrations/native-stack/utils/useInvalidPreventRemoveError.js.map +1 -1
  103. package/lib/module/integrations/native-stack/views/NativeStackView.js.map +1 -1
  104. package/lib/module/integrations/native-stack/views/NativeStackView.native.js.map +1 -1
  105. package/lib/module/integrations/native-stack/views/useHeaderConfigProps.js.map +1 -1
  106. package/lib/module/providers/keys.js.map +1 -1
  107. package/lib/module/providers/screen-transition-provider.js.map +1 -1
  108. package/lib/module/providers/transition-styles.js +19 -5
  109. package/lib/module/providers/transition-styles.js.map +1 -1
  110. package/lib/module/stores/animations.js.map +1 -1
  111. package/lib/module/stores/bounds/index.js.map +1 -1
  112. package/lib/module/stores/gestures.js.map +1 -1
  113. package/lib/module/stores/utils/reset-stores-for-screen.js.map +1 -1
  114. package/lib/module/types/blank-stack.navigator.js +4 -0
  115. package/lib/module/types/{navigator.js.map → blank-stack.navigator.js.map} +1 -1
  116. package/lib/module/types/native-stack.navigator.js +4 -0
  117. package/lib/module/types/native-stack.navigator.js.map +1 -0
  118. package/lib/module/utils/animation/derivations.js +1 -14
  119. package/lib/module/utils/animation/derivations.js.map +1 -1
  120. package/lib/module/utils/bounds/_utils/styles.js.map +1 -1
  121. package/lib/module/utils/bounds/constants.js.map +1 -1
  122. package/lib/module/utils/bounds/index.js +24 -91
  123. package/lib/module/utils/bounds/index.js.map +1 -1
  124. package/lib/module/utils/gesture/apply-offset-rules.js.map +1 -1
  125. package/lib/module/utils/gesture/check-gesture-activation.js.map +1 -1
  126. package/lib/module/utils/gesture/reset-gesture-values.js.map +1 -1
  127. package/lib/module/utils/gesture/velocity.js +2 -2
  128. package/lib/module/utils/gesture/velocity.js.map +1 -1
  129. package/lib/typescript/__configs__/index.d.ts +9 -9
  130. package/lib/typescript/__configs__/index.d.ts.map +1 -1
  131. package/lib/typescript/__configs__/presets.d.ts +1 -1
  132. package/lib/typescript/__configs__/presets.d.ts.map +1 -1
  133. package/lib/typescript/components/root-transition-aware.d.ts.map +1 -1
  134. package/lib/typescript/constants.d.ts +2 -2
  135. package/lib/typescript/constants.d.ts.map +1 -1
  136. package/lib/typescript/hooks/animation/use-screen-animation.d.ts +1 -1
  137. package/lib/typescript/hooks/animation/use-screen-animation.d.ts.map +1 -1
  138. package/lib/typescript/index.d.ts +20 -18
  139. package/lib/typescript/index.d.ts.map +1 -1
  140. package/lib/typescript/integrations/blank-stack/components/Header.d.ts +5 -0
  141. package/lib/typescript/integrations/blank-stack/components/Header.d.ts.map +1 -0
  142. package/lib/typescript/integrations/blank-stack/components/Screens.d.ts +15 -0
  143. package/lib/typescript/integrations/blank-stack/components/Screens.d.ts.map +1 -0
  144. package/lib/typescript/integrations/blank-stack/components/StackView.d.ts +2 -0
  145. package/lib/typescript/integrations/blank-stack/components/StackView.d.ts.map +1 -0
  146. package/lib/typescript/integrations/blank-stack/navigators/createBlankStackNavigator.d.ts +109 -0
  147. package/lib/typescript/integrations/blank-stack/navigators/createBlankStackNavigator.d.ts.map +1 -0
  148. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.d.ts +8 -0
  149. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.d.ts.map +1 -0
  150. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.d.ts +2 -0
  151. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.d.ts.map +1 -0
  152. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.d.ts +20 -0
  153. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.d.ts.map +1 -0
  154. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_types.d.ts +23 -0
  155. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_types.d.ts.map +1 -0
  156. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.d.ts +3 -0
  157. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.d.ts.map +1 -0
  158. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.d.ts +4 -0
  159. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.d.ts.map +1 -0
  160. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.d.ts +4 -0
  161. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.d.ts.map +1 -0
  162. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.d.ts +3 -0
  163. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.d.ts.map +1 -0
  164. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.d.ts +3 -0
  165. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.d.ts.map +1 -0
  166. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/index.d.ts +6 -0
  167. package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/index.d.ts.map +1 -0
  168. package/lib/typescript/integrations/native-stack/navigators/createNativeStackNavigator.d.ts +1 -1
  169. package/lib/typescript/integrations/native-stack/navigators/createNativeStackNavigator.d.ts.map +1 -1
  170. package/lib/typescript/integrations/native-stack/utils/getModalRoutesKeys.d.ts +1 -1
  171. package/lib/typescript/integrations/native-stack/utils/getModalRoutesKeys.d.ts.map +1 -1
  172. package/lib/typescript/integrations/native-stack/utils/useInvalidPreventRemoveError.d.ts +1 -1
  173. package/lib/typescript/integrations/native-stack/utils/useInvalidPreventRemoveError.d.ts.map +1 -1
  174. package/lib/typescript/integrations/native-stack/views/NativeStackView.d.ts +1 -1
  175. package/lib/typescript/integrations/native-stack/views/NativeStackView.d.ts.map +1 -1
  176. package/lib/typescript/integrations/native-stack/views/NativeStackView.native.d.ts +1 -1
  177. package/lib/typescript/integrations/native-stack/views/NativeStackView.native.d.ts.map +1 -1
  178. package/lib/typescript/integrations/native-stack/views/useHeaderConfigProps.d.ts +1 -1
  179. package/lib/typescript/integrations/native-stack/views/useHeaderConfigProps.d.ts.map +1 -1
  180. package/lib/typescript/providers/keys.d.ts +1 -1
  181. package/lib/typescript/providers/keys.d.ts.map +1 -1
  182. package/lib/typescript/providers/screen-transition-provider.d.ts +1 -1
  183. package/lib/typescript/providers/screen-transition-provider.d.ts.map +1 -1
  184. package/lib/typescript/providers/transition-styles.d.ts.map +1 -1
  185. package/lib/typescript/stores/animations.d.ts +1 -1
  186. package/lib/typescript/stores/animations.d.ts.map +1 -1
  187. package/lib/typescript/stores/bounds/index.d.ts +1 -1
  188. package/lib/typescript/stores/bounds/index.d.ts.map +1 -1
  189. package/lib/typescript/stores/gestures.d.ts +1 -1
  190. package/lib/typescript/stores/gestures.d.ts.map +1 -1
  191. package/lib/typescript/stores/utils/reset-stores-for-screen.d.ts +1 -1
  192. package/lib/typescript/stores/utils/reset-stores-for-screen.d.ts.map +1 -1
  193. package/lib/typescript/types/animation.d.ts +2 -4
  194. package/lib/typescript/types/animation.d.ts.map +1 -1
  195. package/lib/typescript/types/blank-stack.navigator.d.ts +219 -0
  196. package/lib/typescript/types/blank-stack.navigator.d.ts.map +1 -0
  197. package/lib/typescript/types/bounds.d.ts +0 -57
  198. package/lib/typescript/types/bounds.d.ts.map +1 -1
  199. package/lib/typescript/types/{navigator.d.ts → native-stack.navigator.d.ts} +5 -1
  200. package/lib/typescript/types/native-stack.navigator.d.ts.map +1 -0
  201. package/lib/typescript/types/utils.d.ts.map +1 -1
  202. package/lib/typescript/utils/animation/derivations.d.ts +1 -4
  203. package/lib/typescript/utils/animation/derivations.d.ts.map +1 -1
  204. package/lib/typescript/utils/bounds/_types/builder.d.ts +2 -2
  205. package/lib/typescript/utils/bounds/_types/builder.d.ts.map +1 -1
  206. package/lib/typescript/utils/bounds/_utils/geometry.d.ts +2 -2
  207. package/lib/typescript/utils/bounds/_utils/geometry.d.ts.map +1 -1
  208. package/lib/typescript/utils/bounds/_utils/styles.d.ts +2 -1
  209. package/lib/typescript/utils/bounds/_utils/styles.d.ts.map +1 -1
  210. package/lib/typescript/utils/bounds/constants.d.ts +2 -2
  211. package/lib/typescript/utils/bounds/constants.d.ts.map +1 -1
  212. package/lib/typescript/utils/bounds/index.d.ts +4 -4
  213. package/lib/typescript/utils/bounds/index.d.ts.map +1 -1
  214. package/lib/typescript/utils/gesture/apply-offset-rules.d.ts +2 -2
  215. package/lib/typescript/utils/gesture/apply-offset-rules.d.ts.map +1 -1
  216. package/lib/typescript/utils/gesture/check-gesture-activation.d.ts +2 -2
  217. package/lib/typescript/utils/gesture/check-gesture-activation.d.ts.map +1 -1
  218. package/lib/typescript/utils/gesture/reset-gesture-values.d.ts.map +1 -1
  219. package/lib/typescript/utils/gesture/velocity.d.ts +1 -1
  220. package/lib/typescript/utils/gesture/velocity.d.ts.map +1 -1
  221. package/package.json +1 -1
  222. package/src/__configs__/presets.ts +590 -590
  223. package/src/components/root-transition-aware.tsx +27 -27
  224. package/src/constants.ts +47 -47
  225. package/src/hooks/animation/use-screen-animation.tsx +52 -47
  226. package/src/index.ts +33 -22
  227. package/src/integrations/blank-stack/components/Header.tsx +143 -0
  228. package/src/integrations/blank-stack/components/Screens.tsx +96 -0
  229. package/src/integrations/blank-stack/components/StackView.tsx +106 -0
  230. package/src/integrations/blank-stack/navigators/createBlankStackNavigator.tsx +122 -0
  231. package/src/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.tsx +62 -0
  232. package/src/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.tsx +11 -0
  233. package/src/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.tsx +280 -0
  234. package/src/integrations/blank-stack/utils/with-stack-navigation/_types.ts +36 -0
  235. package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.ts +15 -0
  236. package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.ts +29 -0
  237. package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.ts +17 -0
  238. package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.ts +12 -0
  239. package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.ts +11 -0
  240. package/src/integrations/blank-stack/utils/with-stack-navigation/index.tsx +93 -0
  241. package/src/integrations/native-stack/navigators/createNativeStackNavigator.tsx +95 -95
  242. package/src/integrations/native-stack/utils/getModalRoutesKeys.ts +14 -14
  243. package/src/integrations/native-stack/utils/useInvalidPreventRemoveError.tsx +23 -23
  244. package/src/integrations/native-stack/views/NativeStackView.native.tsx +608 -608
  245. package/src/integrations/native-stack/views/NativeStackView.tsx +188 -188
  246. package/src/integrations/native-stack/views/useHeaderConfigProps.tsx +260 -260
  247. package/src/providers/keys.tsx +22 -22
  248. package/src/providers/screen-transition-provider.tsx +20 -20
  249. package/src/providers/transition-styles.tsx +24 -11
  250. package/src/stores/animations.ts +23 -23
  251. package/src/stores/bounds/index.ts +82 -82
  252. package/src/stores/gestures.ts +36 -36
  253. package/src/stores/utils/reset-stores-for-screen.ts +4 -4
  254. package/src/types/animation.ts +2 -4
  255. package/src/types/blank-stack.navigator.ts +271 -0
  256. package/src/types/bounds.ts +0 -64
  257. package/src/types/{navigator.ts → native-stack.navigator.ts} +5 -0
  258. package/src/types/utils.ts +1 -0
  259. package/src/utils/animation/derivations.ts +3 -20
  260. package/src/utils/bounds/_types/builder.ts +111 -111
  261. package/src/utils/bounds/_utils/geometry.ts +2 -2
  262. package/src/utils/bounds/_utils/styles.ts +2 -1
  263. package/src/utils/bounds/constants.ts +29 -29
  264. package/src/utils/bounds/index.ts +35 -105
  265. package/src/utils/gesture/apply-offset-rules.ts +271 -271
  266. package/src/utils/gesture/check-gesture-activation.ts +260 -260
  267. package/src/utils/gesture/reset-gesture-values.ts +1 -0
  268. package/src/utils/gesture/velocity.ts +1 -2
  269. package/lib/module/types/navigator.js +0 -4
  270. package/lib/typescript/types/navigator.d.ts.map +0 -1
@@ -1,64 +1,64 @@
1
- import type { ScaledSize } from "react-native";
2
1
  import type { GestureStateManagerType } from "react-native-gesture-handler/lib/typescript/handlers/gestures/gestureStateManager";
3
2
  import type { SharedValue } from "react-native-reanimated";
4
3
  import {
5
- type ActivationArea,
6
- type GestureActivationArea,
7
- GestureOffsetState,
8
- type SideActivation,
4
+ type ActivationArea,
5
+ type GestureActivationArea,
6
+ GestureOffsetState,
7
+ type SideActivation,
9
8
  } from "../../types/gesture";
9
+ import type { Layout } from "../../types/native-stack.navigator";
10
10
 
11
11
  type Directions = {
12
- vertical: boolean;
13
- verticalInverted: boolean;
14
- horizontal: boolean;
15
- horizontalInverted: boolean;
12
+ vertical: boolean;
13
+ verticalInverted: boolean;
14
+ horizontal: boolean;
15
+ horizontalInverted: boolean;
16
16
  };
17
17
 
18
18
  interface CheckGestureActivationProps {
19
- initialTouch: { x: number; y: number };
20
- touch: { x: number; y: number };
21
- directions: Directions;
22
- manager?: GestureStateManagerType;
23
- gestureOffsetState: SharedValue<GestureOffsetState>;
24
- activationArea?: GestureActivationArea;
25
- dimensions: ScaledSize;
26
- responseDistance?: number;
19
+ initialTouch: { x: number; y: number };
20
+ touch: { x: number; y: number };
21
+ directions: Directions;
22
+ manager?: GestureStateManagerType;
23
+ gestureOffsetState: SharedValue<GestureOffsetState>;
24
+ activationArea?: GestureActivationArea;
25
+ dimensions: Layout;
26
+ responseDistance?: number;
27
27
  }
28
28
 
29
29
  type NormalizedSides = {
30
- left: ActivationArea;
31
- right: ActivationArea;
32
- top: ActivationArea;
33
- bottom: ActivationArea;
30
+ left: ActivationArea;
31
+ right: ActivationArea;
32
+ top: ActivationArea;
33
+ bottom: ActivationArea;
34
34
  };
35
35
 
36
36
  interface ShouldActivateOrFailProps {
37
- deltaX: number;
38
- deltaY: number;
39
- hasHorizontal: boolean;
40
- hasVertical: boolean;
41
- isHorizontalSwipe: boolean;
42
- isVerticalSwipe: boolean;
43
- allowedRight: boolean;
44
- allowedLeft: boolean;
45
- allowedUp: boolean;
46
- allowedDown: boolean;
47
- horizontalGateRight: boolean;
48
- horizontalGateLeft: boolean;
49
- verticalGateUp: boolean;
50
- verticalGateDown: boolean;
51
- isSwipingRight: boolean;
52
- isSwipingLeft: boolean;
53
- isSwipingUp: boolean;
54
- isSwipingDown: boolean;
37
+ deltaX: number;
38
+ deltaY: number;
39
+ hasHorizontal: boolean;
40
+ hasVertical: boolean;
41
+ isHorizontalSwipe: boolean;
42
+ isVerticalSwipe: boolean;
43
+ allowedRight: boolean;
44
+ allowedLeft: boolean;
45
+ allowedUp: boolean;
46
+ allowedDown: boolean;
47
+ horizontalGateRight: boolean;
48
+ horizontalGateLeft: boolean;
49
+ verticalGateUp: boolean;
50
+ verticalGateDown: boolean;
51
+ isSwipingRight: boolean;
52
+ isSwipingLeft: boolean;
53
+ isSwipingUp: boolean;
54
+ isSwipingDown: boolean;
55
55
  }
56
56
 
57
57
  interface ReturnValues {
58
- isSwipingDown: boolean;
59
- isSwipingUp: boolean;
60
- isSwipingRight: boolean;
61
- isSwipingLeft: boolean;
58
+ isSwipingDown: boolean;
59
+ isSwipingUp: boolean;
60
+ isSwipingRight: boolean;
61
+ isSwipingLeft: boolean;
62
62
  }
63
63
 
64
64
  /**
@@ -73,238 +73,238 @@ const DEFAULT_EDGE_DISTANCE_VERTICAL = 135;
73
73
  const DEFAULT_ACTIVATION_AREA = "screen" as const;
74
74
 
75
75
  function normalizeSides(area?: GestureActivationArea): NormalizedSides {
76
- "worklet";
77
- if (!area || typeof area === "string") {
78
- const mode: ActivationArea = area ?? DEFAULT_ACTIVATION_AREA;
79
- return { left: mode, right: mode, top: mode, bottom: mode };
80
- }
81
-
82
- const s: SideActivation = area as SideActivation;
83
- return {
84
- left: s.left ?? DEFAULT_ACTIVATION_AREA,
85
- right: s.right ?? DEFAULT_ACTIVATION_AREA,
86
- top: s.top ?? DEFAULT_ACTIVATION_AREA,
87
- bottom: s.bottom ?? DEFAULT_ACTIVATION_AREA,
88
- };
76
+ "worklet";
77
+ if (!area || typeof area === "string") {
78
+ const mode: ActivationArea = area ?? DEFAULT_ACTIVATION_AREA;
79
+ return { left: mode, right: mode, top: mode, bottom: mode };
80
+ }
81
+
82
+ const s: SideActivation = area as SideActivation;
83
+ return {
84
+ left: s.left ?? DEFAULT_ACTIVATION_AREA,
85
+ right: s.right ?? DEFAULT_ACTIVATION_AREA,
86
+ top: s.top ?? DEFAULT_ACTIVATION_AREA,
87
+ bottom: s.bottom ?? DEFAULT_ACTIVATION_AREA,
88
+ };
89
89
  }
90
90
 
91
91
  function computeEdgeConstraints(
92
- initialTouch: { x: number; y: number },
93
- dimensions: ScaledSize,
94
- sides: NormalizedSides,
95
- responseDistance?: number,
92
+ initialTouch: { x: number; y: number },
93
+ dimensions: Layout,
94
+ sides: NormalizedSides,
95
+ responseDistance?: number
96
96
  ) {
97
- "worklet";
98
- const xDist = responseDistance ?? DEFAULT_EDGE_DISTANCE_HORIZONTAL;
99
- const yDist = responseDistance ?? DEFAULT_EDGE_DISTANCE_VERTICAL;
100
-
101
- const horizontalRight = sides.left === "screen" || initialTouch.x <= xDist; // right swipe checks left edge
102
- const horizontalLeft =
103
- sides.right === "screen" || initialTouch.x >= dimensions.width - xDist; // left swipe checks right edge
104
- const verticalDown = sides.top === "screen" || initialTouch.y <= yDist; // down swipe checks top edge
105
- const verticalUp =
106
- sides.bottom === "screen" || initialTouch.y >= dimensions.height - yDist; // up swipe checks bottom edge
107
-
108
- return { horizontalRight, horizontalLeft, verticalDown, verticalUp } as const;
97
+ "worklet";
98
+ const xDist = responseDistance ?? DEFAULT_EDGE_DISTANCE_HORIZONTAL;
99
+ const yDist = responseDistance ?? DEFAULT_EDGE_DISTANCE_VERTICAL;
100
+
101
+ const horizontalRight = sides.left === "screen" || initialTouch.x <= xDist; // right swipe checks left edge
102
+ const horizontalLeft =
103
+ sides.right === "screen" || initialTouch.x >= dimensions.width - xDist; // left swipe checks right edge
104
+ const verticalDown = sides.top === "screen" || initialTouch.y <= yDist; // down swipe checks top edge
105
+ const verticalUp =
106
+ sides.bottom === "screen" || initialTouch.y >= dimensions.height - yDist; // up swipe checks bottom edge
107
+
108
+ return { horizontalRight, horizontalLeft, verticalDown, verticalUp } as const;
109
109
  }
110
110
 
111
111
  function calculateSwipeDirs(deltaX: number, deltaY: number) {
112
- "worklet";
113
-
114
- const isVerticalSwipe = Math.abs(deltaY) > Math.abs(deltaX);
115
- const isHorizontalSwipe = Math.abs(deltaX) > Math.abs(deltaY);
116
-
117
- const isSwipingDown = isVerticalSwipe && deltaY > 0;
118
- const isSwipingUp = isVerticalSwipe && deltaY < 0;
119
- const isSwipingRight = isHorizontalSwipe && deltaX > 0;
120
- const isSwipingLeft = isHorizontalSwipe && deltaX < 0;
121
-
122
- return {
123
- isSwipingDown,
124
- isSwipingUp,
125
- isSwipingRight,
126
- isSwipingLeft,
127
- isVerticalSwipe,
128
- isHorizontalSwipe,
129
- };
112
+ "worklet";
113
+
114
+ const isVerticalSwipe = Math.abs(deltaY) > Math.abs(deltaX);
115
+ const isHorizontalSwipe = Math.abs(deltaX) > Math.abs(deltaY);
116
+
117
+ const isSwipingDown = isVerticalSwipe && deltaY > 0;
118
+ const isSwipingUp = isVerticalSwipe && deltaY < 0;
119
+ const isSwipingRight = isHorizontalSwipe && deltaX > 0;
120
+ const isSwipingLeft = isHorizontalSwipe && deltaX < 0;
121
+
122
+ return {
123
+ isSwipingDown,
124
+ isSwipingUp,
125
+ isSwipingRight,
126
+ isSwipingLeft,
127
+ isVerticalSwipe,
128
+ isHorizontalSwipe,
129
+ };
130
130
  }
131
131
 
132
132
  function shouldActivateOrFail(params: ShouldActivateOrFailProps) {
133
- "worklet";
134
-
135
- const {
136
- deltaX,
137
- deltaY,
138
- hasHorizontal,
139
- hasVertical,
140
- isHorizontalSwipe,
141
- isVerticalSwipe,
142
- allowedRight,
143
- allowedLeft,
144
- allowedUp,
145
- allowedDown,
146
- horizontalGateRight,
147
- horizontalGateLeft,
148
- verticalGateUp,
149
- verticalGateDown,
150
- isSwipingRight,
151
- isSwipingLeft,
152
- isSwipingUp,
153
- isSwipingDown,
154
- } = params;
155
-
156
- let shouldActivate = false;
157
- let shouldFail = false;
158
-
159
- if (hasHorizontal && isHorizontalSwipe) {
160
- const hasEnoughHorizontalMovement =
161
- Math.abs(deltaX) >= GESTURE_ACTIVATION_THRESHOLD_X;
162
-
163
- const hasAcceptableVerticalDeviation =
164
- Math.abs(deltaY) <= GESTURE_FAIL_TOLERANCE_X;
165
-
166
- if (hasEnoughHorizontalMovement && hasAcceptableVerticalDeviation) {
167
- const rightOk = isSwipingRight && allowedRight && horizontalGateRight;
168
- const leftOk = isSwipingLeft && allowedLeft && horizontalGateLeft;
169
- if (rightOk || leftOk) {
170
- shouldActivate = true;
171
- }
172
- } else if (!hasAcceptableVerticalDeviation) {
173
- shouldFail = true;
174
- }
175
- }
176
-
177
- if (hasVertical && isVerticalSwipe) {
178
- const hasEnoughVerticalMovement =
179
- Math.abs(deltaY) >= GESTURE_ACTIVATION_THRESHOLD_Y;
180
- const hasAcceptableHorizontalDeviation =
181
- Math.abs(deltaX) <= GESTURE_FAIL_TOLERANCE_Y;
182
-
183
- if (hasEnoughVerticalMovement && hasAcceptableHorizontalDeviation) {
184
- const upOk = isSwipingUp && allowedUp && verticalGateUp;
185
- const downOk = isSwipingDown && allowedDown && verticalGateDown;
186
- if (upOk || downOk) {
187
- shouldActivate = true;
188
- }
189
- } else if (!hasAcceptableHorizontalDeviation) {
190
- shouldFail = true;
191
- }
192
- }
193
-
194
- if (hasHorizontal && isHorizontalSwipe) {
195
- if ((isSwipingLeft && !allowedLeft) || (isSwipingRight && !allowedRight)) {
196
- shouldFail = true;
197
- }
198
- // If gating prohibits the dominant horizontal swipe, fail early
199
- if (
200
- (isSwipingRight && allowedRight && !horizontalGateRight) ||
201
- (isSwipingLeft && allowedLeft && !horizontalGateLeft)
202
- ) {
203
- shouldFail = true;
204
- }
205
- }
206
-
207
- if (hasVertical && isVerticalSwipe) {
208
- if ((isSwipingUp && !allowedUp) || (isSwipingDown && !allowedDown)) {
209
- shouldFail = true;
210
- }
211
- // If gating prohibits the dominant vertical swipe, fail early
212
- if (
213
- (isSwipingUp && allowedUp && !verticalGateUp) ||
214
- (isSwipingDown && allowedDown && !verticalGateDown)
215
- ) {
216
- shouldFail = true;
217
- }
218
- }
219
-
220
- return { shouldActivate, shouldFail };
133
+ "worklet";
134
+
135
+ const {
136
+ deltaX,
137
+ deltaY,
138
+ hasHorizontal,
139
+ hasVertical,
140
+ isHorizontalSwipe,
141
+ isVerticalSwipe,
142
+ allowedRight,
143
+ allowedLeft,
144
+ allowedUp,
145
+ allowedDown,
146
+ horizontalGateRight,
147
+ horizontalGateLeft,
148
+ verticalGateUp,
149
+ verticalGateDown,
150
+ isSwipingRight,
151
+ isSwipingLeft,
152
+ isSwipingUp,
153
+ isSwipingDown,
154
+ } = params;
155
+
156
+ let shouldActivate = false;
157
+ let shouldFail = false;
158
+
159
+ if (hasHorizontal && isHorizontalSwipe) {
160
+ const hasEnoughHorizontalMovement =
161
+ Math.abs(deltaX) >= GESTURE_ACTIVATION_THRESHOLD_X;
162
+
163
+ const hasAcceptableVerticalDeviation =
164
+ Math.abs(deltaY) <= GESTURE_FAIL_TOLERANCE_X;
165
+
166
+ if (hasEnoughHorizontalMovement && hasAcceptableVerticalDeviation) {
167
+ const rightOk = isSwipingRight && allowedRight && horizontalGateRight;
168
+ const leftOk = isSwipingLeft && allowedLeft && horizontalGateLeft;
169
+ if (rightOk || leftOk) {
170
+ shouldActivate = true;
171
+ }
172
+ } else if (!hasAcceptableVerticalDeviation) {
173
+ shouldFail = true;
174
+ }
175
+ }
176
+
177
+ if (hasVertical && isVerticalSwipe) {
178
+ const hasEnoughVerticalMovement =
179
+ Math.abs(deltaY) >= GESTURE_ACTIVATION_THRESHOLD_Y;
180
+ const hasAcceptableHorizontalDeviation =
181
+ Math.abs(deltaX) <= GESTURE_FAIL_TOLERANCE_Y;
182
+
183
+ if (hasEnoughVerticalMovement && hasAcceptableHorizontalDeviation) {
184
+ const upOk = isSwipingUp && allowedUp && verticalGateUp;
185
+ const downOk = isSwipingDown && allowedDown && verticalGateDown;
186
+ if (upOk || downOk) {
187
+ shouldActivate = true;
188
+ }
189
+ } else if (!hasAcceptableHorizontalDeviation) {
190
+ shouldFail = true;
191
+ }
192
+ }
193
+
194
+ if (hasHorizontal && isHorizontalSwipe) {
195
+ if ((isSwipingLeft && !allowedLeft) || (isSwipingRight && !allowedRight)) {
196
+ shouldFail = true;
197
+ }
198
+ // If gating prohibits the dominant horizontal swipe, fail early
199
+ if (
200
+ (isSwipingRight && allowedRight && !horizontalGateRight) ||
201
+ (isSwipingLeft && allowedLeft && !horizontalGateLeft)
202
+ ) {
203
+ shouldFail = true;
204
+ }
205
+ }
206
+
207
+ if (hasVertical && isVerticalSwipe) {
208
+ if ((isSwipingUp && !allowedUp) || (isSwipingDown && !allowedDown)) {
209
+ shouldFail = true;
210
+ }
211
+ // If gating prohibits the dominant vertical swipe, fail early
212
+ if (
213
+ (isSwipingUp && allowedUp && !verticalGateUp) ||
214
+ (isSwipingDown && allowedDown && !verticalGateDown)
215
+ ) {
216
+ shouldFail = true;
217
+ }
218
+ }
219
+
220
+ return { shouldActivate, shouldFail };
221
221
  }
222
222
 
223
223
  /**
224
224
  * Since we're using onTouchesMove to activate our pan, faillOffset and activateOffset don't actually work. In that case we'll create this function to use in onTouchesMove which acts simarly to the original functionality.
225
225
  */
226
226
  export const applyOffsetRules = ({
227
- initialTouch,
228
- touch,
229
- directions,
230
- manager,
231
- gestureOffsetState,
232
- activationArea,
233
- dimensions,
234
- responseDistance,
227
+ initialTouch,
228
+ touch,
229
+ directions,
230
+ manager,
231
+ gestureOffsetState,
232
+ activationArea,
233
+ dimensions,
234
+ responseDistance,
235
235
  }: CheckGestureActivationProps): ReturnValues => {
236
- "worklet";
237
-
238
- const deltaX = touch.x - initialTouch.x;
239
- const deltaY = touch.y - initialTouch.y;
240
-
241
- const allowedDown = directions.vertical;
242
- const allowedUp = directions.verticalInverted;
243
- const allowedRight = directions.horizontal;
244
- const allowedLeft = directions.horizontalInverted;
245
-
246
- const hasHorizontal = allowedLeft || allowedRight;
247
- const hasVertical = allowedUp || allowedDown;
248
-
249
- const {
250
- isSwipingDown,
251
- isSwipingUp,
252
- isSwipingRight,
253
- isSwipingLeft,
254
- isVerticalSwipe,
255
- isHorizontalSwipe,
256
- } = calculateSwipeDirs(deltaX, deltaY);
257
-
258
- if (gestureOffsetState.value !== GestureOffsetState.PENDING) {
259
- return {
260
- isSwipingDown,
261
- isSwipingUp,
262
- isSwipingRight,
263
- isSwipingLeft,
264
- };
265
- }
266
-
267
- const sides = normalizeSides(activationArea);
268
-
269
- const {
270
- horizontalRight: horizontalGateRight,
271
- horizontalLeft: horizontalGateLeft,
272
- verticalDown: verticalGateDown,
273
- verticalUp: verticalGateUp,
274
- } = computeEdgeConstraints(initialTouch, dimensions, sides, responseDistance);
275
-
276
- const { shouldActivate, shouldFail } = shouldActivateOrFail({
277
- deltaX,
278
- deltaY,
279
- hasHorizontal,
280
- hasVertical,
281
- isHorizontalSwipe,
282
- isVerticalSwipe,
283
- allowedRight,
284
- allowedLeft,
285
- allowedUp,
286
- allowedDown,
287
- horizontalGateRight,
288
- horizontalGateLeft,
289
- verticalGateUp,
290
- verticalGateDown,
291
- isSwipingRight,
292
- isSwipingLeft,
293
- isSwipingUp,
294
- isSwipingDown,
295
- });
296
-
297
- if (shouldActivate) {
298
- gestureOffsetState.value = GestureOffsetState.PASSED;
299
- } else if (shouldFail) {
300
- gestureOffsetState.value = GestureOffsetState.FAILED;
301
- manager?.fail();
302
- }
303
-
304
- return {
305
- isSwipingDown,
306
- isSwipingUp,
307
- isSwipingRight,
308
- isSwipingLeft,
309
- };
236
+ "worklet";
237
+
238
+ const deltaX = touch.x - initialTouch.x;
239
+ const deltaY = touch.y - initialTouch.y;
240
+
241
+ const allowedDown = directions.vertical;
242
+ const allowedUp = directions.verticalInverted;
243
+ const allowedRight = directions.horizontal;
244
+ const allowedLeft = directions.horizontalInverted;
245
+
246
+ const hasHorizontal = allowedLeft || allowedRight;
247
+ const hasVertical = allowedUp || allowedDown;
248
+
249
+ const {
250
+ isSwipingDown,
251
+ isSwipingUp,
252
+ isSwipingRight,
253
+ isSwipingLeft,
254
+ isVerticalSwipe,
255
+ isHorizontalSwipe,
256
+ } = calculateSwipeDirs(deltaX, deltaY);
257
+
258
+ if (gestureOffsetState.value !== GestureOffsetState.PENDING) {
259
+ return {
260
+ isSwipingDown,
261
+ isSwipingUp,
262
+ isSwipingRight,
263
+ isSwipingLeft,
264
+ };
265
+ }
266
+
267
+ const sides = normalizeSides(activationArea);
268
+
269
+ const {
270
+ horizontalRight: horizontalGateRight,
271
+ horizontalLeft: horizontalGateLeft,
272
+ verticalDown: verticalGateDown,
273
+ verticalUp: verticalGateUp,
274
+ } = computeEdgeConstraints(initialTouch, dimensions, sides, responseDistance);
275
+
276
+ const { shouldActivate, shouldFail } = shouldActivateOrFail({
277
+ deltaX,
278
+ deltaY,
279
+ hasHorizontal,
280
+ hasVertical,
281
+ isHorizontalSwipe,
282
+ isVerticalSwipe,
283
+ allowedRight,
284
+ allowedLeft,
285
+ allowedUp,
286
+ allowedDown,
287
+ horizontalGateRight,
288
+ horizontalGateLeft,
289
+ verticalGateUp,
290
+ verticalGateDown,
291
+ isSwipingRight,
292
+ isSwipingLeft,
293
+ isSwipingUp,
294
+ isSwipingDown,
295
+ });
296
+
297
+ if (shouldActivate) {
298
+ gestureOffsetState.value = GestureOffsetState.PASSED;
299
+ } else if (shouldFail) {
300
+ gestureOffsetState.value = GestureOffsetState.FAILED;
301
+ manager?.fail();
302
+ }
303
+
304
+ return {
305
+ isSwipingDown,
306
+ isSwipingUp,
307
+ isSwipingRight,
308
+ isSwipingLeft,
309
+ };
310
310
  };
@@ -31,6 +31,7 @@ export const resetGestureValues = ({
31
31
  const nx =
32
32
  gestures.normalizedX.value ||
33
33
  event.translationX / Math.max(1, dimensions.width);
34
+
34
35
  const ny =
35
36
  gestures.normalizedY.value ||
36
37
  event.translationY / Math.max(1, dimensions.height);
@@ -41,11 +41,10 @@ const normalize = (velocityPixelsPerSecond: number, screenSize: number) => {
41
41
  const calculateRestoreVelocity = (
42
42
  currentValueNormalized: number,
43
43
  baseVelocityNormalized: number,
44
- threshold: number = NEAR_ZERO_THRESHOLD,
45
44
  ) => {
46
45
  "worklet";
47
46
 
48
- if (Math.abs(currentValueNormalized) < threshold) return 0;
47
+ if (Math.abs(currentValueNormalized) < NEAR_ZERO_THRESHOLD) return 0;
49
48
 
50
49
  const directionTowardZero = Math.sign(currentValueNormalized) || 1;
51
50
  const clampedVelocity = Math.min(Math.abs(baseVelocityNormalized), 1);
@@ -1,4 +0,0 @@
1
- "use strict";
2
-
3
- export {};
4
- //# sourceMappingURL=navigator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"navigator.d.ts","sourceRoot":"","sources":["../../../src/types/navigator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,EACL,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACX,mBAAmB,EACnB,SAAS,EACT,SAAS,EACT,SAAS,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACX,W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