react-native-screen-transitions 3.4.0-alpha.0 → 3.4.0-alpha.1

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 (364) hide show
  1. package/README.md +65 -2
  2. package/lib/commonjs/shared/animation/snap-to.js +5 -1
  3. package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
  4. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +5 -10
  5. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
  6. package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js +2 -2
  7. package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
  8. package/lib/commonjs/shared/components/overlay/index.js +1 -3
  9. package/lib/commonjs/shared/components/overlay/index.js.map +1 -1
  10. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +2 -16
  11. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
  12. package/lib/commonjs/shared/components/scene-view.js +2 -4
  13. package/lib/commonjs/shared/components/scene-view.js.map +1 -1
  14. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +9 -6
  15. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
  16. package/lib/commonjs/shared/components/screen-container/layers/content.js +47 -55
  17. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
  18. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +77 -0
  19. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -0
  20. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -1
  21. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js +17 -4
  22. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -1
  23. package/lib/commonjs/shared/constants.js +6 -2
  24. package/lib/commonjs/shared/constants.js.map +1 -1
  25. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js +49 -0
  26. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js.map +1 -0
  27. package/lib/commonjs/shared/hooks/gestures/types.js +2 -0
  28. package/lib/commonjs/shared/hooks/gestures/types.js.map +1 -0
  29. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +7 -3
  30. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
  31. package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
  32. package/lib/commonjs/shared/index.js +15 -3
  33. package/lib/commonjs/shared/index.js.map +1 -1
  34. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +55 -18
  35. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
  36. package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js +44 -0
  37. package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +1 -0
  38. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +31 -17
  39. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
  40. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +1 -9
  41. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  42. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +11 -6
  43. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  44. package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +33 -0
  45. package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -0
  46. package/lib/commonjs/shared/providers/screen/animation/types.js +2 -0
  47. package/lib/commonjs/shared/providers/screen/animation/types.js.map +1 -0
  48. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +9 -3
  49. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  50. package/lib/commonjs/shared/providers/stack/direct.provider.js +1 -1
  51. package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -1
  52. package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js +1 -1
  53. package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js.map +1 -1
  54. package/lib/commonjs/shared/stores/animation.store.js +8 -2
  55. package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
  56. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +7 -0
  57. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  58. package/lib/commonjs/shared/utils/animation/animate-to-progress.js +6 -0
  59. package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
  60. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +24 -9
  61. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
  62. package/lib/commonjs/shared/utils/bounds/helpers/geometry.js +3 -2
  63. package/lib/commonjs/shared/utils/bounds/helpers/geometry.js.map +1 -1
  64. package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js +3 -2
  65. package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +1 -1
  66. package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js +2 -2
  67. package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +1 -1
  68. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js +6 -5
  69. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
  70. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js +4 -3
  71. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -1
  72. package/lib/commonjs/shared/utils/bounds/index.js +3 -3
  73. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  74. package/lib/commonjs/shared/utils/bounds/zoom/accessor.js +54 -0
  75. package/lib/commonjs/shared/utils/bounds/zoom/accessor.js.map +1 -0
  76. package/lib/commonjs/shared/utils/bounds/zoom/build.js +541 -0
  77. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -0
  78. package/lib/commonjs/shared/utils/bounds/zoom/config.js +118 -0
  79. package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -0
  80. package/lib/commonjs/shared/utils/bounds/zoom/index.js +20 -0
  81. package/lib/commonjs/shared/utils/bounds/zoom/index.js.map +1 -0
  82. package/lib/commonjs/shared/utils/bounds/zoom/types.js.map +1 -0
  83. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js +11 -5
  84. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +1 -1
  85. package/lib/commonjs/shared/utils/overlay/visibility.js +2 -9
  86. package/lib/commonjs/shared/utils/overlay/visibility.js.map +1 -1
  87. package/lib/module/shared/animation/snap-to.js +5 -1
  88. package/lib/module/shared/animation/snap-to.js.map +1 -1
  89. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +5 -10
  90. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
  91. package/lib/module/shared/components/overlay/helpers/get-active-overlay.js +3 -3
  92. package/lib/module/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
  93. package/lib/module/shared/components/overlay/index.js +1 -3
  94. package/lib/module/shared/components/overlay/index.js.map +1 -1
  95. package/lib/module/shared/components/overlay/variations/overlay-host.js +3 -17
  96. package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
  97. package/lib/module/shared/components/scene-view.js +3 -5
  98. package/lib/module/shared/components/scene-view.js.map +1 -1
  99. package/lib/module/shared/components/screen-container/layers/backdrop.js +9 -6
  100. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  101. package/lib/module/shared/components/screen-container/layers/content.js +52 -60
  102. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  103. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +72 -0
  104. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -0
  105. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -1
  106. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js +17 -4
  107. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -1
  108. package/lib/module/shared/constants.js +6 -2
  109. package/lib/module/shared/constants.js.map +1 -1
  110. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js +45 -0
  111. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js.map +1 -0
  112. package/lib/module/shared/hooks/gestures/types.js +2 -0
  113. package/lib/module/shared/hooks/gestures/types.js.map +1 -0
  114. package/lib/module/shared/hooks/gestures/use-screen-gesture.js +7 -4
  115. package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
  116. package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
  117. package/lib/module/shared/index.js +1 -2
  118. package/lib/module/shared/index.js.map +1 -1
  119. package/lib/module/shared/providers/gestures/handlers/use-handlers.js +55 -18
  120. package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
  121. package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js +38 -0
  122. package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +1 -0
  123. package/lib/module/shared/providers/screen/animation/animation.provider.js +30 -15
  124. package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
  125. package/lib/module/shared/providers/screen/animation/helpers/derivations.js +1 -9
  126. package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  127. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +11 -6
  128. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  129. package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +29 -0
  130. package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -0
  131. package/lib/module/shared/providers/screen/animation/index.js.map +1 -1
  132. package/lib/module/shared/providers/screen/animation/types.js +2 -0
  133. package/lib/module/shared/providers/screen/animation/types.js.map +1 -0
  134. package/lib/module/shared/providers/screen/animation/use-screen-animation.js +9 -3
  135. package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  136. package/lib/module/shared/providers/stack/direct.provider.js +2 -2
  137. package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
  138. package/lib/module/shared/providers/stack/helpers/use-processed-routes.js +2 -2
  139. package/lib/module/shared/providers/stack/helpers/use-processed-routes.js.map +1 -1
  140. package/lib/module/shared/stores/animation.store.js +8 -2
  141. package/lib/module/shared/stores/animation.store.js.map +1 -1
  142. package/lib/module/shared/stores/bounds/internals/resolver.js +7 -0
  143. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  144. package/lib/module/shared/utils/animation/animate-to-progress.js +6 -0
  145. package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
  146. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +24 -9
  147. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
  148. package/lib/module/shared/utils/bounds/helpers/geometry.js +3 -2
  149. package/lib/module/shared/utils/bounds/helpers/geometry.js.map +1 -1
  150. package/lib/module/shared/utils/bounds/helpers/interpolators.js +3 -2
  151. package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +1 -1
  152. package/lib/module/shared/utils/bounds/helpers/link-accessor.js +2 -2
  153. package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +1 -1
  154. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js +6 -5
  155. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
  156. package/lib/module/shared/utils/bounds/helpers/style-composers.js +4 -3
  157. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -1
  158. package/lib/module/shared/utils/bounds/index.js +3 -3
  159. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  160. package/lib/module/shared/utils/bounds/zoom/accessor.js +49 -0
  161. package/lib/module/shared/utils/bounds/zoom/accessor.js.map +1 -0
  162. package/lib/module/shared/utils/bounds/zoom/build.js +536 -0
  163. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -0
  164. package/lib/module/shared/utils/bounds/zoom/config.js +112 -0
  165. package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -0
  166. package/lib/module/shared/utils/bounds/zoom/index.js +5 -0
  167. package/lib/module/shared/utils/bounds/zoom/index.js.map +1 -0
  168. package/lib/module/shared/utils/bounds/zoom/types.js.map +1 -0
  169. package/lib/module/shared/utils/gesture/validate-snap-points.js +11 -5
  170. package/lib/module/shared/utils/gesture/validate-snap-points.js.map +1 -1
  171. package/lib/module/shared/utils/overlay/visibility.js +1 -7
  172. package/lib/module/shared/utils/overlay/visibility.js.map +1 -1
  173. package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
  174. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +0 -1
  175. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -1
  176. package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts +1 -1
  177. package/lib/typescript/shared/components/overlay/index.d.ts +0 -2
  178. package/lib/typescript/shared/components/overlay/index.d.ts.map +1 -1
  179. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
  180. package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
  181. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  182. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
  183. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts +7 -0
  184. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -0
  185. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +1 -1
  186. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +1 -1
  187. package/lib/typescript/shared/constants.d.ts +3 -0
  188. package/lib/typescript/shared/constants.d.ts.map +1 -1
  189. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts +10 -0
  190. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts.map +1 -0
  191. package/lib/typescript/shared/hooks/gestures/types.d.ts +4 -0
  192. package/lib/typescript/shared/hooks/gestures/types.d.ts.map +1 -0
  193. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts +4 -2
  194. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts.map +1 -1
  195. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +1 -2
  196. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
  197. package/lib/typescript/shared/index.d.ts +16 -17
  198. package/lib/typescript/shared/index.d.ts.map +1 -1
  199. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
  200. package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts +18 -0
  201. package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts.map +1 -0
  202. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +6 -3
  203. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
  204. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +0 -2
  205. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
  206. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  207. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +11 -0
  208. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +1 -0
  209. package/lib/typescript/shared/providers/screen/animation/index.d.ts +1 -1
  210. package/lib/typescript/shared/providers/screen/animation/index.d.ts.map +1 -1
  211. package/lib/typescript/shared/providers/screen/animation/types.d.ts +4 -0
  212. package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -0
  213. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +5 -1
  214. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
  215. package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
  216. package/lib/typescript/shared/stores/animation.store.d.ts +4 -0
  217. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  218. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  219. package/lib/typescript/shared/stores/bounds/types.d.ts +2 -0
  220. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  221. package/lib/typescript/shared/types/animation.types.d.ts +26 -51
  222. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  223. package/lib/typescript/shared/types/bounds.types.d.ts +46 -9
  224. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  225. package/lib/typescript/shared/types/index.d.ts +3 -3
  226. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  227. package/lib/typescript/shared/types/overlay.types.d.ts +1 -22
  228. package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -1
  229. package/lib/typescript/shared/types/screen.types.d.ts +16 -15
  230. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  231. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
  232. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +2 -2
  233. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +1 -1
  234. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +1 -1
  235. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts +3 -2
  236. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -1
  237. package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts +3 -2
  238. package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +1 -1
  239. package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts +3 -2
  240. package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +1 -1
  241. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +2 -1
  242. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +1 -1
  243. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts +4 -3
  244. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -1
  245. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  246. package/lib/typescript/shared/utils/bounds/types/options.d.ts +5 -4
  247. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  248. package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts +17 -0
  249. package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts.map +1 -0
  250. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts +4 -0
  251. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -0
  252. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +43 -0
  253. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -0
  254. package/lib/typescript/shared/utils/bounds/zoom/index.d.ts +3 -0
  255. package/lib/typescript/shared/utils/bounds/zoom/index.d.ts.map +1 -0
  256. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts +17 -0
  257. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +1 -0
  258. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts +5 -3
  259. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +1 -1
  260. package/lib/typescript/shared/utils/overlay/visibility.d.ts +1 -4
  261. package/lib/typescript/shared/utils/overlay/visibility.d.ts.map +1 -1
  262. package/package.json +2 -2
  263. package/src/shared/animation/snap-to.ts +12 -1
  264. package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +2 -14
  265. package/src/shared/components/overlay/helpers/get-active-overlay.ts +3 -3
  266. package/src/shared/components/overlay/index.ts +0 -2
  267. package/src/shared/components/overlay/variations/overlay-host.tsx +2 -16
  268. package/src/shared/components/scene-view.tsx +0 -3
  269. package/src/shared/components/screen-container/layers/backdrop.tsx +25 -6
  270. package/src/shared/components/screen-container/layers/content.tsx +80 -77
  271. package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +93 -0
  272. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/index.ts +1 -2
  273. package/src/shared/components/screen-lifecycle/hooks/use-open-transition.ts +20 -6
  274. package/src/shared/constants.ts +6 -2
  275. package/src/shared/hooks/gestures/resolve-screen-gesture-target.ts +66 -0
  276. package/src/shared/hooks/gestures/types.ts +5 -0
  277. package/src/shared/hooks/gestures/use-screen-gesture.ts +10 -3
  278. package/src/shared/hooks/navigation/use-stack.tsx +1 -2
  279. package/src/shared/index.ts +14 -16
  280. package/src/shared/providers/gestures/handlers/use-handlers.ts +67 -24
  281. package/src/shared/providers/gestures/helpers/gesture-snap-points.ts +72 -0
  282. package/src/shared/providers/screen/animation/animation.provider.tsx +46 -10
  283. package/src/shared/providers/screen/animation/helpers/derivations.ts +0 -8
  284. package/src/shared/providers/screen/animation/helpers/pipeline.ts +26 -5
  285. package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +44 -0
  286. package/src/shared/providers/screen/animation/index.tsx +4 -1
  287. package/src/shared/providers/screen/animation/types.ts +5 -0
  288. package/src/shared/providers/screen/animation/use-screen-animation.tsx +16 -3
  289. package/src/shared/providers/stack/direct.provider.tsx +2 -5
  290. package/src/shared/providers/stack/helpers/use-processed-routes.ts +2 -2
  291. package/src/shared/stores/animation.store.ts +13 -1
  292. package/src/shared/stores/bounds/internals/resolver.ts +13 -1
  293. package/src/shared/stores/bounds/types.ts +2 -0
  294. package/src/shared/types/animation.types.ts +25 -58
  295. package/src/shared/types/bounds.types.ts +30 -10
  296. package/src/shared/types/index.ts +2 -15
  297. package/src/shared/types/overlay.types.ts +1 -28
  298. package/src/shared/types/screen.types.ts +17 -16
  299. package/src/shared/utils/animation/animate-to-progress.ts +7 -0
  300. package/src/shared/utils/bounds/helpers/build-bounds-options.ts +2 -2
  301. package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +34 -8
  302. package/src/shared/utils/bounds/helpers/geometry.ts +3 -2
  303. package/src/shared/utils/bounds/helpers/interpolators.ts +8 -6
  304. package/src/shared/utils/bounds/helpers/link-accessor.ts +10 -6
  305. package/src/shared/utils/bounds/helpers/resolve-bound-tag.ts +9 -6
  306. package/src/shared/utils/bounds/helpers/style-composers.ts +4 -3
  307. package/src/shared/utils/bounds/index.ts +6 -8
  308. package/src/shared/utils/bounds/types/options.ts +6 -4
  309. package/src/shared/utils/bounds/zoom/accessor.ts +69 -0
  310. package/src/shared/utils/bounds/zoom/build.ts +705 -0
  311. package/src/shared/utils/bounds/zoom/config.ts +179 -0
  312. package/src/shared/utils/bounds/zoom/index.ts +2 -0
  313. package/src/shared/utils/bounds/zoom/types.ts +22 -0
  314. package/src/shared/utils/gesture/validate-snap-points.ts +20 -8
  315. package/src/shared/utils/overlay/visibility.ts +1 -16
  316. package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js +0 -64
  317. package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js.map +0 -1
  318. package/lib/commonjs/shared/utils/bounds/helpers/math.js +0 -132
  319. package/lib/commonjs/shared/utils/bounds/helpers/math.js.map +0 -1
  320. package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js +0 -45
  321. package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js.map +0 -1
  322. package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js +0 -60
  323. package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js.map +0 -1
  324. package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js +0 -20
  325. package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js.map +0 -1
  326. package/lib/commonjs/shared/utils/bounds/sugar/navigation/types.js.map +0 -1
  327. package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js +0 -295
  328. package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js.map +0 -1
  329. package/lib/module/shared/components/overlay/variations/screen-overlay.js +0 -61
  330. package/lib/module/shared/components/overlay/variations/screen-overlay.js.map +0 -1
  331. package/lib/module/shared/utils/bounds/helpers/math.js +0 -115
  332. package/lib/module/shared/utils/bounds/helpers/math.js.map +0 -1
  333. package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js +0 -40
  334. package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js.map +0 -1
  335. package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js +0 -54
  336. package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js.map +0 -1
  337. package/lib/module/shared/utils/bounds/sugar/navigation/index.js +0 -15
  338. package/lib/module/shared/utils/bounds/sugar/navigation/index.js.map +0 -1
  339. package/lib/module/shared/utils/bounds/sugar/navigation/types.js.map +0 -1
  340. package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js +0 -290
  341. package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js.map +0 -1
  342. package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts +0 -10
  343. package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts.map +0 -1
  344. package/lib/typescript/shared/utils/bounds/helpers/math.d.ts +0 -38
  345. package/lib/typescript/shared/utils/bounds/helpers/math.d.ts.map +0 -1
  346. package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts +0 -16
  347. package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts.map +0 -1
  348. package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts +0 -17
  349. package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts.map +0 -1
  350. package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts +0 -3
  351. package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts.map +0 -1
  352. package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts +0 -18
  353. package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts.map +0 -1
  354. package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts +0 -4
  355. package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts.map +0 -1
  356. package/src/shared/components/overlay/variations/screen-overlay.tsx +0 -68
  357. package/src/shared/utils/bounds/helpers/math.ts +0 -161
  358. package/src/shared/utils/bounds/helpers/navigation-accessor.ts +0 -61
  359. package/src/shared/utils/bounds/sugar/navigation/helpers.ts +0 -74
  360. package/src/shared/utils/bounds/sugar/navigation/index.ts +0 -14
  361. package/src/shared/utils/bounds/sugar/navigation/types.ts +0 -26
  362. package/src/shared/utils/bounds/sugar/navigation/zoom.ts +0 -348
  363. /package/lib/commonjs/shared/utils/bounds/{sugar/navigation → zoom}/types.js +0 -0
  364. /package/lib/module/shared/utils/bounds/{sugar/navigation → zoom}/types.js +0 -0
@@ -0,0 +1,541 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.buildZoomStyles = void 0;
7
+ var _reactNativeReanimated = require("react-native-reanimated");
8
+ var _constants = require("../../../constants");
9
+ var _bounds = require("../../../stores/bounds");
10
+ var _config = require("./config");
11
+ const IDENTITY_DRAG_SCALE_OUTPUT = [1, 1];
12
+ const clamp = (value, min, max) => {
13
+ "worklet";
14
+
15
+ const lower = min < max ? min : max;
16
+ const upper = max > min ? max : min;
17
+ if (value < lower) return lower;
18
+ if (value > upper) return upper;
19
+ return value;
20
+ };
21
+ const clamp01 = value => {
22
+ "worklet";
23
+
24
+ return clamp(value, 0, 1);
25
+ };
26
+ const lerp = (from, to, t) => {
27
+ "worklet";
28
+
29
+ return from + (to - from) * t;
30
+ };
31
+ const safeDivide = (numerator, denominator, fallback = 0) => {
32
+ "worklet";
33
+
34
+ if (denominator === 0) return fallback;
35
+ return numerator / denominator;
36
+ };
37
+ const inverseLerp = (value, inMin, inMax) => {
38
+ "worklet";
39
+
40
+ return safeDivide(value - inMin, inMax - inMin, 0);
41
+ };
42
+ const mapRangeClamped = (value, inMin, inMax, outMin, outMax) => {
43
+ "worklet";
44
+
45
+ const t = clamp01(inverseLerp(value, inMin, inMax));
46
+ return lerp(outMin, outMax, t);
47
+ };
48
+ const applyPowerCurve = (value, exponent) => {
49
+ "worklet";
50
+
51
+ const safeExponent = exponent > 0 ? exponent : 1;
52
+ const magnitude = Math.abs(value) ** safeExponent;
53
+ return value < 0 ? -magnitude : magnitude;
54
+ };
55
+ const normalizedToTranslation = ({
56
+ normalized,
57
+ dimension,
58
+ resistance
59
+ }) => {
60
+ "worklet";
61
+
62
+ const distance = Math.max(0, dimension) * resistance;
63
+ return mapRangeClamped(normalized, -1, 1, -distance, distance);
64
+ };
65
+ const normalizedToScale = ({
66
+ normalized,
67
+ outputRange,
68
+ exponent = 1,
69
+ positiveOnly = true
70
+ }) => {
71
+ "worklet";
72
+
73
+ const [outputStart, outputEnd] = outputRange;
74
+ const raw = positiveOnly ? mapRangeClamped(normalized, 0, 1, outputStart, outputEnd) : mapRangeClamped(normalized, -1, 1, outputStart, outputEnd);
75
+ return applyPowerCurve(raw, exponent);
76
+ };
77
+ const combineScales = (scaleX, scaleY, mode = "multiply") => {
78
+ "worklet";
79
+
80
+ switch (mode) {
81
+ case "average":
82
+ return (scaleX + scaleY) / 2;
83
+ case "max":
84
+ return Math.max(scaleX, scaleY);
85
+ case "min":
86
+ return Math.min(scaleX, scaleY);
87
+ default:
88
+ return scaleX * scaleY;
89
+ }
90
+ };
91
+ const computeCenterScaleShift = ({
92
+ center,
93
+ containerCenter,
94
+ scale
95
+ }) => {
96
+ "worklet";
97
+
98
+ return (center - containerCenter) * (scale - 1);
99
+ };
100
+ const compensateTranslationForParentScale = ({
101
+ translation,
102
+ parentScale,
103
+ epsilon
104
+ }) => {
105
+ "worklet";
106
+
107
+ const safeParentScale = Math.max(parentScale, epsilon);
108
+ return safeDivide(translation, safeParentScale, translation);
109
+ };
110
+ const composeCompensatedTranslation = ({
111
+ gesture,
112
+ parentScale,
113
+ centerShift = 0,
114
+ epsilon
115
+ }) => {
116
+ "worklet";
117
+
118
+ return compensateTranslationForParentScale({
119
+ translation: gesture,
120
+ parentScale,
121
+ epsilon
122
+ }) + centerShift;
123
+ };
124
+ const resolveDirectionalDragScale = ({
125
+ normalized,
126
+ dismissDirection,
127
+ shrinkMin,
128
+ growMax,
129
+ exponent
130
+ }) => {
131
+ "worklet";
132
+
133
+ const dismissalRelative = dismissDirection === "negative" ? -normalized : normalized;
134
+ if (dismissalRelative >= 0) {
135
+ return normalizedToScale({
136
+ normalized: dismissalRelative,
137
+ outputRange: [1, shrinkMin],
138
+ exponent
139
+ });
140
+ }
141
+ const oppositeDrag = Math.min(1, Math.abs(dismissalRelative));
142
+ return (0, _reactNativeReanimated.interpolate)(oppositeDrag, [0, 1], [1, growMax], "clamp");
143
+ };
144
+ const getZoomContentTarget = ({
145
+ explicitTarget,
146
+ resolvedTag,
147
+ currentRouteKey,
148
+ previousRouteKey,
149
+ nextRouteKey,
150
+ entering,
151
+ screenLayout,
152
+ anchor,
153
+ resolvedPair
154
+ }) => {
155
+ "worklet";
156
+
157
+ if (explicitTarget !== undefined) return explicitTarget;
158
+ const pair = resolvedPair ?? _bounds.BoundStore.resolveTransitionPair(resolvedTag, {
159
+ currentScreenKey: currentRouteKey,
160
+ previousScreenKey: previousRouteKey,
161
+ nextScreenKey: nextRouteKey,
162
+ entering
163
+ });
164
+ const sourceBounds = pair.sourceBounds;
165
+ const screenWidth = screenLayout.width;
166
+ if (!sourceBounds || sourceBounds.width <= 0 || screenWidth <= 0) {
167
+ return "fullscreen";
168
+ }
169
+ const height = sourceBounds.height / sourceBounds.width * screenWidth;
170
+ let horizontalAnchor;
171
+ switch (anchor) {
172
+ case "topLeading":
173
+ case "leading":
174
+ case "bottomLeading":
175
+ horizontalAnchor = "leading";
176
+ break;
177
+ case "topTrailing":
178
+ case "trailing":
179
+ case "bottomTrailing":
180
+ horizontalAnchor = "trailing";
181
+ break;
182
+ default:
183
+ horizontalAnchor = "center";
184
+ break;
185
+ }
186
+ let verticalAnchor;
187
+ switch (anchor) {
188
+ case "topLeading":
189
+ case "top":
190
+ case "topTrailing":
191
+ verticalAnchor = "top";
192
+ break;
193
+ case "bottomLeading":
194
+ case "bottom":
195
+ case "bottomTrailing":
196
+ verticalAnchor = "bottom";
197
+ break;
198
+ default:
199
+ verticalAnchor = "center";
200
+ break;
201
+ }
202
+ const x = horizontalAnchor === "leading" ? 0 : horizontalAnchor === "trailing" ? screenLayout.width - screenWidth : (screenLayout.width - screenWidth) / 2;
203
+ const y = verticalAnchor === "top" ? 0 : verticalAnchor === "bottom" ? screenLayout.height - height : (screenLayout.height - height) / 2;
204
+ return {
205
+ x,
206
+ y,
207
+ pageX: x,
208
+ pageY: y,
209
+ width: screenWidth,
210
+ height
211
+ };
212
+ };
213
+ const getStyleRadius = (styles, property) => {
214
+ "worklet";
215
+
216
+ if (!styles || typeof styles !== "object") return undefined;
217
+ const styleRecord = styles;
218
+ const direct = styleRecord[property];
219
+ if (typeof direct === "number") return direct;
220
+ if (property !== "borderRadius") {
221
+ const fallback = styleRecord.borderRadius;
222
+ if (typeof fallback === "number") return fallback;
223
+ }
224
+ return undefined;
225
+ };
226
+ const resolveRadiusRange = ({
227
+ value,
228
+ progress,
229
+ sourceRadius,
230
+ destinationRadius,
231
+ fallback
232
+ }) => {
233
+ "worklet";
234
+
235
+ if (typeof value === "number") return value;
236
+ if (value === "auto") {
237
+ const from = sourceRadius ?? fallback;
238
+ const to = destinationRadius ?? fallback;
239
+ return (0, _reactNativeReanimated.interpolate)(progress, [0, 1], [from, to], "clamp");
240
+ }
241
+ if (value && typeof value === "object") {
242
+ const from = typeof value.from === "number" ? value.from : fallback;
243
+ const to = typeof value.to === "number" ? value.to : fallback;
244
+ return (0, _reactNativeReanimated.interpolate)(progress, [0, 1], [from, to], "clamp");
245
+ }
246
+ const from = sourceRadius ?? fallback;
247
+ const to = destinationRadius ?? fallback;
248
+ return (0, _reactNativeReanimated.interpolate)(progress, [0, 1], [from, to], "clamp");
249
+ };
250
+ const resolveMaskRadii = ({
251
+ progress,
252
+ zoomOptions,
253
+ resolvedPair
254
+ }) => {
255
+ "worklet";
256
+
257
+ const sourceStyles = resolvedPair.sourceStyles;
258
+ const destinationStyles = resolvedPair.destinationStyles;
259
+ const defaultRadius = resolveRadiusRange({
260
+ value: zoomOptions.mask.borderRadius,
261
+ progress,
262
+ sourceRadius: getStyleRadius(sourceStyles, "borderRadius"),
263
+ destinationRadius: getStyleRadius(destinationStyles, "borderRadius"),
264
+ fallback: 12
265
+ });
266
+ const topLeftValue = zoomOptions.mask.borderTopLeftRadius ?? zoomOptions.mask.borderRadius;
267
+ const topRightValue = zoomOptions.mask.borderTopRightRadius ?? zoomOptions.mask.borderRadius;
268
+ const bottomLeftValue = zoomOptions.mask.borderBottomLeftRadius ?? zoomOptions.mask.borderRadius;
269
+ const bottomRightValue = zoomOptions.mask.borderBottomRightRadius ?? zoomOptions.mask.borderRadius;
270
+ return {
271
+ borderRadius: defaultRadius,
272
+ borderTopLeftRadius: resolveRadiusRange({
273
+ value: topLeftValue,
274
+ progress,
275
+ sourceRadius: getStyleRadius(sourceStyles, "borderTopLeftRadius"),
276
+ destinationRadius: getStyleRadius(destinationStyles, "borderTopLeftRadius"),
277
+ fallback: defaultRadius
278
+ }),
279
+ borderTopRightRadius: resolveRadiusRange({
280
+ value: topRightValue,
281
+ progress,
282
+ sourceRadius: getStyleRadius(sourceStyles, "borderTopRightRadius"),
283
+ destinationRadius: getStyleRadius(destinationStyles, "borderTopRightRadius"),
284
+ fallback: defaultRadius
285
+ }),
286
+ borderBottomLeftRadius: resolveRadiusRange({
287
+ value: bottomLeftValue,
288
+ progress,
289
+ sourceRadius: getStyleRadius(sourceStyles, "borderBottomLeftRadius"),
290
+ destinationRadius: getStyleRadius(destinationStyles, "borderBottomLeftRadius"),
291
+ fallback: defaultRadius
292
+ }),
293
+ borderBottomRightRadius: resolveRadiusRange({
294
+ value: bottomRightValue,
295
+ progress,
296
+ sourceRadius: getStyleRadius(sourceStyles, "borderBottomRightRadius"),
297
+ destinationRadius: getStyleRadius(destinationStyles, "borderBottomRightRadius"),
298
+ fallback: defaultRadius
299
+ })
300
+ };
301
+ };
302
+ const buildZoomStyles = ({
303
+ id,
304
+ group,
305
+ zoomOptions,
306
+ props,
307
+ resolveTag,
308
+ computeRaw
309
+ }) => {
310
+ "worklet";
311
+
312
+ const focused = props.focused;
313
+ const progress = props.progress;
314
+ const currentRouteKey = props.current?.route.key;
315
+ const previousRouteKey = props.previous?.route.key;
316
+ const nextRouteKey = props.next?.route.key;
317
+ const entering = !props.next;
318
+ const screenLayout = props.layouts.screen;
319
+ const resolvedConfig = (0, _config.resolveZoomConfig)({
320
+ id,
321
+ group,
322
+ zoomOptions,
323
+ currentRouteKey,
324
+ resolveTag,
325
+ defaultAnchor: "top"
326
+ });
327
+ if (!resolvedConfig) return _constants.NO_STYLES;
328
+ const {
329
+ resolvedTag,
330
+ sharedOptions,
331
+ explicitTarget,
332
+ zoomOptions: resolvedZoomOptions
333
+ } = resolvedConfig;
334
+ const normX = props.active.gesture.normX;
335
+ const normY = props.active.gesture.normY;
336
+ const initialDirection = props.active.gesture.direction;
337
+ const dragX = normalizedToTranslation({
338
+ normalized: normX,
339
+ dimension: screenLayout.width,
340
+ resistance: resolvedZoomOptions.motion.dragResistance
341
+ });
342
+ const dragY = normalizedToTranslation({
343
+ normalized: normY,
344
+ dimension: screenLayout.height,
345
+ resistance: resolvedZoomOptions.motion.dragResistance
346
+ });
347
+ const dragXScale = initialDirection === "horizontal" || initialDirection === "horizontal-inverted" ? resolveDirectionalDragScale({
348
+ normalized: normX,
349
+ dismissDirection: initialDirection === "horizontal-inverted" ? "negative" : "positive",
350
+ shrinkMin: resolvedZoomOptions.motion.dragDirectionalScaleMin,
351
+ growMax: resolvedZoomOptions.motion.dragDirectionalScaleMax,
352
+ exponent: 2
353
+ }) : IDENTITY_DRAG_SCALE_OUTPUT[0];
354
+ const dragYScale = initialDirection === "vertical" || initialDirection === "vertical-inverted" ? resolveDirectionalDragScale({
355
+ normalized: normY,
356
+ dismissDirection: initialDirection === "vertical-inverted" ? "negative" : "positive",
357
+ shrinkMin: resolvedZoomOptions.motion.dragDirectionalScaleMin,
358
+ growMax: resolvedZoomOptions.motion.dragDirectionalScaleMax,
359
+ exponent: 2
360
+ }) : IDENTITY_DRAG_SCALE_OUTPUT[1];
361
+ const dragScale = combineScales(dragXScale, dragYScale);
362
+ if (focused) {
363
+ const focusedPair = _bounds.BoundStore.resolveTransitionPair(resolvedTag, {
364
+ currentScreenKey: currentRouteKey,
365
+ previousScreenKey: previousRouteKey,
366
+ nextScreenKey: nextRouteKey,
367
+ entering
368
+ });
369
+ const contentTarget = getZoomContentTarget({
370
+ explicitTarget,
371
+ resolvedTag,
372
+ currentRouteKey,
373
+ previousRouteKey,
374
+ nextRouteKey,
375
+ entering,
376
+ screenLayout,
377
+ anchor: sharedOptions.anchor,
378
+ resolvedPair: focusedPair
379
+ });
380
+ const contentRaw = computeRaw({
381
+ ...sharedOptions,
382
+ method: "content",
383
+ target: contentTarget
384
+ });
385
+ const maskRaw = computeRaw({
386
+ ...sharedOptions,
387
+ method: "size",
388
+ space: "absolute",
389
+ target: "fullscreen"
390
+ });
391
+ const focusedFade = props.active?.closing ? (0, _reactNativeReanimated.interpolate)(progress, [0.6, 1], [0, 1], "clamp") : (0, _reactNativeReanimated.interpolate)(progress, [0, 0.5], [0, 1], "clamp");
392
+ const {
393
+ top,
394
+ right,
395
+ bottom,
396
+ left
397
+ } = resolvedZoomOptions.mask.outset;
398
+ const maskWidth = Math.max(1, (0, _config.toNumber)(maskRaw.width) + left + right);
399
+ const maskHeight = Math.max(1, (0, _config.toNumber)(maskRaw.height) + top + bottom);
400
+ const contentTranslateX = (0, _config.toNumber)(contentRaw.translateX) + dragX;
401
+ const contentTranslateY = (0, _config.toNumber)(contentRaw.translateY) + dragY;
402
+ const contentScale = (0, _config.toNumber)(contentRaw.scale, 1) * dragScale;
403
+ const maskTranslateX = (0, _config.toNumber)(maskRaw.translateX) + dragX - left;
404
+ const maskTranslateY = (0, _config.toNumber)(maskRaw.translateY) + dragY - top;
405
+ const maskRadii = resolveMaskRadii({
406
+ progress,
407
+ zoomOptions: resolvedZoomOptions,
408
+ resolvedPair: focusedPair
409
+ });
410
+ return {
411
+ [_constants.NAVIGATION_CONTAINER_STYLE_ID]: {
412
+ style: {
413
+ opacity: focusedFade,
414
+ transform: [{
415
+ translateX: contentTranslateX
416
+ }, {
417
+ translateY: contentTranslateY
418
+ }, {
419
+ scale: contentScale
420
+ }]
421
+ }
422
+ },
423
+ [_constants.NAVIGATION_MASK_STYLE_ID]: {
424
+ style: {
425
+ width: maskWidth,
426
+ height: maskHeight,
427
+ transform: [{
428
+ translateX: maskTranslateX
429
+ }, {
430
+ translateY: maskTranslateY
431
+ }, {
432
+ scale: dragScale
433
+ }],
434
+ borderRadius: maskRadii.borderRadius,
435
+ borderTopLeftRadius: maskRadii.borderTopLeftRadius,
436
+ borderTopRightRadius: maskRadii.borderTopRightRadius,
437
+ borderBottomLeftRadius: maskRadii.borderBottomLeftRadius,
438
+ borderBottomRightRadius: maskRadii.borderBottomRightRadius,
439
+ ...(resolvedZoomOptions.mask.borderCurve ? {
440
+ borderCurve: resolvedZoomOptions.mask.borderCurve
441
+ } : {})
442
+ }
443
+ },
444
+ // Signal the destination boundary to stay visible during the transition.
445
+ // Without this, useAssociatedStyles enters "waiting-first-style" mode
446
+ // (opacity: 0) because it detects previous-screen evidence but never
447
+ // receives a resolved style for this tag.
448
+ [resolvedTag]: {
449
+ style: {
450
+ opacity: 1
451
+ }
452
+ }
453
+ };
454
+ }
455
+ const unfocusedFade = props.active?.closing ? (0, _reactNativeReanimated.interpolate)(progress, [1.6, 2], [1, 0], "clamp") : (0, _reactNativeReanimated.interpolate)(progress, [1, 1.5], [1, 0], "clamp");
456
+ const unfocusedScale = (0, _reactNativeReanimated.interpolate)(progress, [1, 2], [1, 0.95], "clamp");
457
+ const isUnfocusedIdle = props.active.settled === 1;
458
+ const elementTarget = sharedOptions.scaleMode === "match" ? "fullscreen" : getZoomContentTarget({
459
+ explicitTarget,
460
+ resolvedTag,
461
+ currentRouteKey,
462
+ previousRouteKey,
463
+ nextRouteKey,
464
+ entering,
465
+ screenLayout,
466
+ anchor: sharedOptions.anchor
467
+ });
468
+ const elementRaw = computeRaw({
469
+ ...sharedOptions,
470
+ method: "transform",
471
+ space: "relative",
472
+ target: elementTarget
473
+ });
474
+
475
+ // Keep compensation tied to the element target's center. In `scaleMode: "match"`
476
+ // this target is fullscreen, so the center offset should resolve to zero.
477
+ const elementCenterY = typeof elementTarget === "object" ? elementTarget.pageY + elementTarget.height / 2 : screenLayout.height / 2;
478
+ const scaleShiftY = computeCenterScaleShift({
479
+ center: elementCenterY,
480
+ containerCenter: screenLayout.height / 2,
481
+ scale: dragScale
482
+ });
483
+ const compensatedGestureX = composeCompensatedTranslation({
484
+ gesture: dragX,
485
+ parentScale: unfocusedScale,
486
+ epsilon: _constants.EPSILON
487
+ });
488
+ // dragY is measured in screen space and must be unscaled by the parent
489
+ // content shrink, while scaleShiftY is already in the parent's local space.
490
+ const compensatedGestureY = composeCompensatedTranslation({
491
+ gesture: dragY,
492
+ parentScale: unfocusedScale,
493
+ centerShift: scaleShiftY,
494
+ epsilon: _constants.EPSILON
495
+ });
496
+ const elementTranslateX = (0, _config.toNumber)(elementRaw.translateX) + compensatedGestureX;
497
+ const elementTranslateY = (0, _config.toNumber)(elementRaw.translateY) + compensatedGestureY;
498
+ const elementScaleX = (0, _config.toNumber)(elementRaw.scaleX, 1) * dragScale;
499
+ const elementScaleY = (0, _config.toNumber)(elementRaw.scaleY, 1) * dragScale;
500
+ const resolvedElementStyle = isUnfocusedIdle ? {
501
+ transform: [{
502
+ translateX: 0
503
+ }, {
504
+ translateY: 0
505
+ }, {
506
+ scaleX: 1
507
+ }, {
508
+ scaleY: 1
509
+ }],
510
+ opacity: 0,
511
+ zIndex: 0,
512
+ elevation: 0
513
+ } : {
514
+ transform: [{
515
+ translateX: elementTranslateX
516
+ }, {
517
+ translateY: elementTranslateY
518
+ }, {
519
+ scaleX: elementScaleX
520
+ }, {
521
+ scaleY: elementScaleY
522
+ }],
523
+ opacity: unfocusedFade,
524
+ zIndex: 9999,
525
+ elevation: 9999
526
+ };
527
+ return {
528
+ content: {
529
+ style: {
530
+ transform: [{
531
+ scale: unfocusedScale
532
+ }]
533
+ }
534
+ },
535
+ [resolvedTag]: {
536
+ style: resolvedElementStyle
537
+ }
538
+ };
539
+ };
540
+ exports.buildZoomStyles = buildZoomStyles;
541
+ //# sourceMappingURL=build.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeReanimated","require","_constants","_bounds","_config","IDENTITY_DRAG_SCALE_OUTPUT","clamp","value","min","max","lower","upper","clamp01","lerp","from","to","t","safeDivide","numerator","denominator","fallback","inverseLerp","inMin","inMax","mapRangeClamped","outMin","outMax","applyPowerCurve","exponent","safeExponent","magnitude","Math","abs","normalizedToTranslation","normalized","dimension","resistance","distance","normalizedToScale","outputRange","positiveOnly","outputStart","outputEnd","raw","combineScales","scaleX","scaleY","mode","computeCenterScaleShift","center","containerCenter","scale","compensateTranslationForParentScale","translation","parentScale","epsilon","safeParentScale","composeCompensatedTranslation","gesture","centerShift","resolveDirectionalDragScale","dismissDirection","shrinkMin","growMax","dismissalRelative","oppositeDrag","interpolate","getZoomContentTarget","explicitTarget","resolvedTag","currentRouteKey","previousRouteKey","nextRouteKey","entering","screenLayout","anchor","resolvedPair","undefined","pair","BoundStore","resolveTransitionPair","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","screenWidth","width","height","horizontalAnchor","verticalAnchor","x","y","pageX","pageY","getStyleRadius","styles","property","styleRecord","direct","borderRadius","resolveRadiusRange","progress","sourceRadius","destinationRadius","resolveMaskRadii","zoomOptions","sourceStyles","destinationStyles","defaultRadius","mask","topLeftValue","borderTopLeftRadius","topRightValue","borderTopRightRadius","bottomLeftValue","borderBottomLeftRadius","bottomRightValue","borderBottomRightRadius","buildZoomStyles","id","group","props","resolveTag","computeRaw","focused","current","route","key","previous","next","layouts","screen","resolvedConfig","resolveZoomConfig","defaultAnchor","NO_STYLES","sharedOptions","resolvedZoomOptions","normX","active","normY","initialDirection","direction","dragX","motion","dragResistance","dragY","dragXScale","dragDirectionalScaleMin","dragDirectionalScaleMax","dragYScale","dragScale","focusedPair","contentTarget","contentRaw","method","target","maskRaw","space","focusedFade","closing","top","right","bottom","left","outset","maskWidth","toNumber","maskHeight","contentTranslateX","translateX","contentTranslateY","translateY","contentScale","maskTranslateX","maskTranslateY","maskRadii","NAVIGATION_CONTAINER_STYLE_ID","style","opacity","transform","NAVIGATION_MASK_STYLE_ID","borderCurve","unfocusedFade","unfocusedScale","isUnfocusedIdle","settled","elementTarget","scaleMode","elementRaw","elementCenterY","scaleShiftY","compensatedGestureX","EPSILON","compensatedGestureY","elementTranslateX","elementTranslateY","elementScaleX","elementScaleY","resolvedElementStyle","zIndex","elevation","content","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/build.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAMA,IAAAE,OAAA,GAAAF,OAAA;AAQA,IAAAG,OAAA,GAAAH,OAAA;AASA,MAAMI,0BAA0B,GAAG,CAAC,CAAC,EAAE,CAAC,CAAU;AAIlD,MAAMC,KAAK,GAAGA,CAACC,KAAa,EAAEC,GAAW,EAAEC,GAAW,KAAa;EAClE,SAAS;;EACT,MAAMC,KAAK,GAAGF,GAAG,GAAGC,GAAG,GAAGD,GAAG,GAAGC,GAAG;EACnC,MAAME,KAAK,GAAGF,GAAG,GAAGD,GAAG,GAAGC,GAAG,GAAGD,GAAG;EAEnC,IAAID,KAAK,GAAGG,KAAK,EAAE,OAAOA,KAAK;EAC/B,IAAIH,KAAK,GAAGI,KAAK,EAAE,OAAOA,KAAK;EAE/B,OAAOJ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,EAACsB,UAAU,CAAChJ,MAAM,EAAE,CAAC,CAAC,GAAG0G,SAAS;EAChE,MAAM+C,aAAa,GAAG,IAAA/B,gBAAQ,EAACsB,UAAU,CAAC/I,MAAM,EAAE,CAAC,CAAC,GAAGyG,SAAS;EAEhE,MAAMgD,oBAAoB,GAAGd,eAAe,GACzC;IACAL,SAAS,EAAE,CACV;MAAEV,UAAU,EAAE;IAAE,CAAC,EACjB;MAAEE,UAAU,EAAE;IAAE,CAAC,EACjB;MAAE/H,MAAM,EAAE;IAAE,CAAC,EACb;MAAEC,MAAM,EAAE;IAAE,CAAC,CACb;IACDqI,OAAO,EAAE,CAAC;IACVqB,MAAM,EAAE,CAAC;IACTC,SAAS,EAAE;EACZ,CAAC,GACA;IACArB,SAAS,EAAE,CACV;MAAEV,UAAU,EAAEyB;IAAkB,CAAC,EACjC;MAAEvB,UAAU,EAAEwB;IAAkB,CAAC,EACjC;MAAEvJ,MAAM,EAAEwJ;IAAc,CAAC,EACzB;MAAEvJ,MAAM,EAAEwJ;IAAc,CAAC,CACzB;IACDnB,OAAO,EAAEI,aAAa;IACtBiB,MAAM,EAAE,IAAI;IACZC,SAAS,EAAE;EACZ,CAAC;EAEH,OAAO;IACNC,OAAO,EAAE;MACRxB,KAAK,EAAE;QACNE,SAAS,EAAE,CAAC;UAAEjI,KAAK,EAAEqI;QAAe,CAAC;MACtC;IACD,CAAC;IACD,CAACnH,WAAW,GAAG;MACd6G,KAAK,EAAEqB;IACR;EACD,CAAC;AACF,CAAC;AAACI,OAAA,CAAArF,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.toNumber = exports.resolveZoomConfig = void 0;
7
+ var _bounds = require("../../../stores/bounds");
8
+ const DEFAULT_DRAG_RESISTANCE = 0.4;
9
+ const DEFAULT_DRAG_DIRECTIONAL_SCALE_MIN = 0.25;
10
+ const DEFAULT_DRAG_DIRECTIONAL_SCALE_MAX = 1.06;
11
+ const DEFAULT_MASK_BORDER_RADIUS = 12;
12
+ const ZERO_OUTSET = Object.freeze({
13
+ top: 0,
14
+ right: 0,
15
+ bottom: 0,
16
+ left: 0
17
+ });
18
+ const toNumber = (value, fallback = 0) => {
19
+ "worklet";
20
+
21
+ return typeof value === "number" ? value : fallback;
22
+ };
23
+ exports.toNumber = toNumber;
24
+ const isFiniteNumber = value => {
25
+ "worklet";
26
+
27
+ return typeof value === "number" && Number.isFinite(value);
28
+ };
29
+ const normalizeOutset = value => {
30
+ "worklet";
31
+
32
+ if (typeof value === "number") {
33
+ return {
34
+ top: value,
35
+ right: value,
36
+ bottom: value,
37
+ left: value
38
+ };
39
+ }
40
+ if (!value) {
41
+ return ZERO_OUTSET;
42
+ }
43
+ return {
44
+ top: isFiniteNumber(value.top) ? value.top : 0,
45
+ right: isFiniteNumber(value.right) ? value.right : 0,
46
+ bottom: isFiniteNumber(value.bottom) ? value.bottom : 0,
47
+ left: isFiniteNumber(value.left) ? value.left : 0
48
+ };
49
+ };
50
+ const normalizeZoomOptions = zoomOptions => {
51
+ "worklet";
52
+
53
+ const resolvedMaskRadius = zoomOptions?.mask?.borderRadius ?? (isFiniteNumber(zoomOptions?.maskBorderRadius) ? zoomOptions?.maskBorderRadius : DEFAULT_MASK_BORDER_RADIUS);
54
+ return {
55
+ mask: {
56
+ borderRadius: resolvedMaskRadius,
57
+ borderTopLeftRadius: zoomOptions?.mask?.borderTopLeftRadius,
58
+ borderTopRightRadius: zoomOptions?.mask?.borderTopRightRadius,
59
+ borderBottomLeftRadius: zoomOptions?.mask?.borderBottomLeftRadius,
60
+ borderBottomRightRadius: zoomOptions?.mask?.borderBottomRightRadius,
61
+ borderCurve: zoomOptions?.mask?.borderCurve,
62
+ outset: normalizeOutset(zoomOptions?.mask?.outset)
63
+ },
64
+ motion: {
65
+ dragResistance: isFiniteNumber(zoomOptions?.motion?.dragResistance) ? zoomOptions.motion.dragResistance : DEFAULT_DRAG_RESISTANCE,
66
+ dragDirectionalScaleMin: isFiniteNumber(zoomOptions?.motion?.dragDirectionalScaleMin) ? zoomOptions.motion.dragDirectionalScaleMin : DEFAULT_DRAG_DIRECTIONAL_SCALE_MIN,
67
+ dragDirectionalScaleMax: DEFAULT_DRAG_DIRECTIONAL_SCALE_MAX
68
+ }
69
+ };
70
+ };
71
+ const resolveZoomConfig = ({
72
+ id,
73
+ group,
74
+ zoomOptions,
75
+ currentRouteKey,
76
+ resolveTag,
77
+ defaultAnchor
78
+ }) => {
79
+ "worklet";
80
+
81
+ const resolvedTag = resolveTag({
82
+ id,
83
+ group
84
+ });
85
+ if (!resolvedTag) return null;
86
+
87
+ // Try direct boundary config for the current screen first.
88
+ const boundaryConfig = currentRouteKey ? _bounds.BoundStore.getBoundaryConfig(resolvedTag, currentRouteKey) : null;
89
+
90
+ // Fallback: when the current screen has no Boundary (e.g. a zoom detail
91
+ // screen without a destination element), inherit config from the link's
92
+ // source screen so that props like scaleMode propagate to both sides.
93
+ let effectiveConfig = boundaryConfig;
94
+ if (!effectiveConfig) {
95
+ // For no-destination navigation zoom, the focused route won't appear in
96
+ // a completed link yet. Fall back to the latest unscoped link so source
97
+ // boundary defaults (anchor/scaleMode/target) still propagate.
98
+ const scopedLink = currentRouteKey ? _bounds.BoundStore.getActiveLink(resolvedTag, currentRouteKey) : null;
99
+ const link = scopedLink ?? _bounds.BoundStore.getActiveLink(resolvedTag);
100
+ if (link?.source) {
101
+ effectiveConfig = _bounds.BoundStore.getBoundaryConfig(resolvedTag, link.source.screenKey);
102
+ }
103
+ }
104
+ const sharedOptions = {
105
+ anchor: zoomOptions?.anchor ?? effectiveConfig?.anchor ?? defaultAnchor,
106
+ scaleMode: zoomOptions?.scaleMode ?? effectiveConfig?.scaleMode ?? "uniform"
107
+ };
108
+ const explicitTarget = zoomOptions?.target ?? effectiveConfig?.target;
109
+ const resolvedZoomOptions = normalizeZoomOptions(zoomOptions);
110
+ return {
111
+ resolvedTag,
112
+ sharedOptions,
113
+ explicitTarget,
114
+ zoomOptions: resolvedZoomOptions
115
+ };
116
+ };
117
+ exports.resolveZoomConfig = resolveZoomConfig;
118
+ //# sourceMappingURL=config.js.map