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
package/README.md CHANGED
@@ -437,6 +437,7 @@ Use `surfaceComponent` to render a custom surface inside the animated content wr
437
437
  - `content` drives container-level transitions (position/scale/opacity)
438
438
  - `surface` drives custom surface styles/props
439
439
  - Animated props are driven by the `surface` slot in your interpolator
440
+ - When `maskEnabled: true` is active, the surface is rendered inside the masked navigation container so it stays clipped/transformed with zoom transitions
440
441
 
441
442
  ```tsx
442
443
  import { SquircleView } from "react-native-figma-squircle";
@@ -652,7 +653,38 @@ For SwiftUI-like navigation zoom transitions where content expands from a source
652
653
 
653
654
  `bounds().navigation.zoom()` returns a complete interpolator result with content, mask, and container styles. Set `maskEnabled: true` to pre-mount the masked view wrapper so it's ready from the first frame.
654
655
 
655
- `navigation.zoom()` does not accept options.
656
+ When using `surfaceComponent`, it participates in the same masked navigation container path under `maskEnabled: true`, so surface and children animate/clip together during zoom.
657
+
658
+ `navigation.zoom(options?)` accepts optional zoom overrides for mask shape and drag feel.
659
+
660
+ ```tsx
661
+ screenStyleInterpolator: ({ bounds, focused }) => {
662
+ "worklet";
663
+ if (!focused) return {};
664
+
665
+ return bounds({ id: "album-art" }).navigation.zoom({
666
+ mask: {
667
+ borderRadius: { from: 24, to: 0 },
668
+ borderCurve: "continuous",
669
+ outset: { bottom: 16 },
670
+ },
671
+ motion: {
672
+ dragResistance: 0.32,
673
+ dragDirectionalScaleMin: 0.2,
674
+ },
675
+ });
676
+ };
677
+ ```
678
+
679
+ `navigation.zoom(options)` fields:
680
+ - `anchor`, `scaleMode`, `target`: same meaning as `bounds({ ... })` options
681
+ - `mask.borderRadius`: `number`, `"auto"`, or `{ from, to }`
682
+ - `mask.borderTopLeftRadius`, `mask.borderTopRightRadius`, `mask.borderBottomLeftRadius`, `mask.borderBottomRightRadius`: per-corner overrides
683
+ - `mask.borderCurve`: `"circular"` or `"continuous"` (where supported)
684
+ - `mask.outset`: `number` or `{ top, right, bottom, left }` to expand mask bounds and avoid edge clipping
685
+ - `motion.dragResistance`: drag translation resistance (default `0.4`)
686
+ - `motion.dragDirectionalScaleMin`: directional drag minimum scale (default `0.25`)
687
+ - `maskBorderRadius`: deprecated alias for `mask.borderRadius`
656
688
 
657
689
  Configuration guidance:
658
690
  - Preferred: define transition configuration on boundary components (`anchor`, `scaleMode`, `target`, `method`) via `Transition.Boundary.View` / `Transition.Boundary.Pressable`.
@@ -730,7 +762,9 @@ const TabBar = ({ focusedIndex, progress }) => {
730
762
 
731
763
  ### useScreenAnimation
732
764
 
733
- Access animation state inside a screen:
765
+ Access animation state inside a screen.
766
+
767
+ By default, this returns the local screen animation values:
734
768
 
735
769
  ```tsx
736
770
  import { useScreenAnimation } from "react-native-screen-transitions";
@@ -746,6 +780,35 @@ function DetailScreen() {
746
780
  }
747
781
  ```
748
782
 
783
+ You can also target ancestor animations:
784
+
785
+ ```tsx
786
+ const self = useScreenAnimation(); // local screen
787
+ const parent = useScreenAnimation("parent"); // immediate parent
788
+ const root = useScreenAnimation("root"); // highest ancestor
789
+ const grandparent = useScreenAnimation({ ancestor: 2 }); // explicit depth
790
+ ```
791
+
792
+ If the requested target does not exist, the hook automatically falls back to local (`self`) values.
793
+
794
+ Nested navigator example (`/_layout -> nested/_layout -> index`) where the leaf animates with the parent gesture:
795
+
796
+ ```tsx
797
+ import Animated, { useAnimatedStyle } from "react-native-reanimated";
798
+ import { useScreenAnimation } from "react-native-screen-transitions";
799
+
800
+ function NestedIndexScreen() {
801
+ const parentAnimation = useScreenAnimation("parent");
802
+
803
+ const staggeredStyle = useAnimatedStyle(() => ({
804
+ opacity: parentAnimation.value.active.progress,
805
+ transform: [{ translateY: (1 - parentAnimation.value.active.progress) * 16 }],
806
+ }));
807
+
808
+ return <Animated.View style={staggeredStyle}>{/* content */}</Animated.View>;
809
+ }
810
+ ```
811
+
749
812
  ### useScreenState
750
813
 
751
814
  Get navigation state without animation values:
@@ -14,7 +14,11 @@ var _resolveSnapTarget = require("./resolve-snap-target");
14
14
  const getSortedSnapPoints = descriptor => {
15
15
  const snapPoints = descriptor.options?.snapPoints;
16
16
  if (!snapPoints || snapPoints.length === 0) return null;
17
- return [...snapPoints].sort((a, b) => a - b);
17
+
18
+ // Resolve 'auto' to the measured fraction stored in AnimationStore
19
+ const autoVal = _animation.AnimationStore.getAnimation(descriptor.route.key, "autoSnapPoint").value;
20
+ const resolved = snapPoints.map(p => p === "auto" ? autoVal : p).filter(p => typeof p === "number" && p > 0);
21
+ return resolved.length > 0 ? resolved.sort((a, b) => a - b) : null;
18
22
  };
19
23
  function snapDescriptorToIndex(descriptor, index) {
20
24
  const sorted = getSortedSnapPoints(descriptor);
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_specs","_animation","_animateToProgress","_logger","_resolveSnapTarget","getSortedSnapPoints","descriptor","snapPoints","options","length","sort","a","b","snapDescriptorToIndex","index","sorted","logger","warn","targetProgress","animations","AnimationStore","getRouteAnimations","route","key","runOnUI","animateToProgress","target","spec","open","transitionSpec","expand","DefaultSnapSpec","close","collapse","snapTo","screenWithSnapPoints","resolveSnapTargetEntry"],"sourceRoot":"../../../../src","sources":["shared/animation/snap-to.ts"],"mappings":";;;;;;;AAAA,IAAAA,sBA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Ae;QAClEC,KAAK,EAAE1B,UAAU,CAACE,OAAO,CAACqB,cAAc,EAAEI,QAAQ,IAAIF;MACvD;IACD,CAAC,CAAC;EACH,CAAC,CAAC,CAAC,CAAC;EAEJ,OAAO,IAAI;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,MAAMA,CAACpB,KAAa,EAAQ;EAC3C,MAAMqB,oBAAoB,GAAG,IAAAC,yCAAsB,EAAC,CAAC;EAErD,IAAI,CAACD,oBAAoB,EAAE;IAC1BnB,cAAM,CAACC,IAAI,CAAC,+CAA+C,CAAC;IAC5D;EACD;EAEAJ,qBAAqB,CAACsB,oBAAoB,CAAC7B,UAAU,EAAEQ,KAAK,CAAC;AAC9D","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","_specs","_animation","_animateToProgress","_logger","_resolveSnapTarget","getSortedSnapPoints","descriptor","snapPoints","options","length","autoVal","AnimationStore","getAnimation","route","key","value","resolved","map","p","filter","sort","a","b","snapDescriptorToIndex","index","sorted","logger","warn","targetProgress","animations","getRouteAnimations","runOnUI","animateToProgress","target","spec","open","transitionSpec","expand","DefaultSnapSpec","close","collapse","snapTo","screenWithSnapPoints","resolveSnapTargetEntry"],"sourceRoot":"../../../../src","sources":["shared/animation/snap-to.ts"],"mappings":";;;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AAEA,MAAMM,mBAAmB,GACxBC,UAAsC,IACjB;EACrB,MAAMC,UAAU,GAAGD,UAAU,CAACE,OAAO,EAAED,UAAU;EACjD,IAAI,CAACA,UAAU,IAAIA,UAAU,CAACE,MAAM,KAAK,CAAC,EAAE,OAAO,IAAI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AEC,MAAM,IAAIC,sBAAe;QAClEC,KAAK,EAAEjC,UAAU,CAACE,OAAO,CAAC4B,cAAc,EAAEI,QAAQ,IAAIF;MACvD;IACD,CAAC,CAAC;EACH,CAAC,CAAC,CAAC,CAAC;EAEJ,OAAO,IAAI;AACZ;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASG,MAAMA,CAACjB,KAAa,EAAQ;EAC3C,MAAMkB,oBAAoB,GAAG,IAAAC,yCAAsB,EAAC,CAAC;EAErD,IAAI,CAACD,oBAAoB,EAAE;IAC1BhB,cAAM,CAACC,IAAI,CAAC,+CAA+C,CAAC;IAC5D;EACD;EAEAJ,qBAAqB,CAACmB,oBAAoB,CAACpC,UAAU,EAAEkB,KAAK,CAAC;AAC9D","ignoreList":[]}
@@ -4,18 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.buildBoundaryMatchKey = buildBoundaryMatchKey;
7
- function buildBoundaryMatchKey(paramsOrGroup, legacyId) {
7
+ function buildBoundaryMatchKey(params) {
8
8
  "worklet";
9
9
 
10
- if (typeof paramsOrGroup === "object" && paramsOrGroup !== null) {
11
- const {
12
- group,
13
- id
14
- } = paramsOrGroup;
15
- return group ? `${group}:${id}` : String(id);
16
- }
17
- const group = paramsOrGroup;
18
- const id = legacyId;
10
+ const {
11
+ group,
12
+ id
13
+ } = params;
19
14
  return group ? `${group}:${id}` : String(id);
20
15
  }
21
16
  //# sourceMappingURL=build-boundary-match-key.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["buildBoundaryMatchKey","paramsOrGroup","legacyId","group","id","String"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/utils/build-boundary-match-key.ts"],"mappings":";;;;;;AAcO,SAASA,qBAAqBA,CACpCC,aAA+D,EAC/DC,QAAqB,EACZ;EACT,SAAS;;EAET,IAAI,OAAOD,aAAa,KAAK,QAAQ,IAAIA,aAAa,KAAK,IAAI,EAAE;IAChE,MAAM;MAAEE,KAAK;MAAEC;IAAG,CAAC,GAAGH,aAAa;IACnC,OAAOE,KAAK,GAAG,GAAGA,KAAK,IAAIC,EAAE,EAAE,GAAGC,MAAM,CAACD,EAAE,CAAC;EAC7C;EAEA,MAAMD,KAAK,GAAGF,aAAa;EAC3B,MAAMG,EAAE,GAAGF,QAAQ;EACnB,OAAOC,KAAK,GAAG,GAAGA,KAAK,IAAIC,EAAE,EAAE,GAAGC,MAAM,CAACD,EAAE,CAAC;AAC7C","ignoreList":[]}
1
+ {"version":3,"names":["buildBoundaryMatchKey","params","group","id","String"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/utils/build-boundary-match-key.ts"],"mappings":";;;;;;AAUO,SAASA,qBAAqBA,CACpCC,MAAmC,EAC1B;EACT,SAAS;;EACT,MAAM;IAAEC,KAAK;IAAEC;EAAG,CAAC,GAAGF,MAAM;EAC5B,OAAOC,KAAK,GAAG,GAAGA,KAAK,IAAIC,EAAE,EAAE,GAAGC,MAAM,CAACD,EAAE,CAAC;AAC7C","ignoreList":[]}
@@ -8,7 +8,7 @@ var _visibility = require("../../../utils/overlay/visibility");
8
8
  /**
9
9
  * Find the active float overlay from scenes.
10
10
  * Scans from the top of the stack downward to find the first screen
11
- * with a visible overlay that isn't explicitly set to legacy screen mode.
11
+ * with a visible overlay.
12
12
  */
13
13
  function getActiveFloatOverlay(scenes, index, transitionsAlwaysOn) {
14
14
  if (scenes.length === 0) {
@@ -28,7 +28,7 @@ function getActiveFloatOverlay(scenes, index, transitionsAlwaysOn) {
28
28
  if (!transitionsAlwaysOn && !options?.enableTransitions) {
29
29
  continue;
30
30
  }
31
- if ((0, _visibility.isFloatOverlayVisible)(options)) {
31
+ if ((0, _visibility.isOverlayVisible)(options)) {
32
32
  return {
33
33
  scene,
34
34
  overlayIndex: i
@@ -1 +1 @@
1
- {"version":3,"names":["_visibility","require","getActiveFloatOverlay","scenes","index","transitionsAlwaysOn","length","startIndex","Math","max","i","scene","options","descriptor","enableTransitions","isFloatOverlayVisible","overlayIndex"],"sourceRoot":"../../../../../../src","sources":["shared/components/overlay/helpers/get-active-overlay.ts"],"mappings":";;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACO,SAASC,qBAAqBA,CACpCC,MAAoB,EACpBC,KAAa,EACbC,mBAA4B,EACyB;EACrD,IAAIF,MAAM,CAACG,MAAM,KAAK,CAAC,EAAE;IACxB,OAAO,IAAI;EACZ;;EAEA;EACA;EACA;EACA;EACA,MAAMC,UAAU,GAAGC,IAAI,CAACC,GAAG,CAACL,KAAK,EAAED,MAAM,CAACG,MAAM,GAAG,CAAC,CAAC;EAErD,KAAK,IAAII,CAAC,GAAGH,UAAU,EAAEG,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IACrC,MAAMC,KAAK,GAAGR,MAAM,CAACO,CAAC,CAAC;IACvB,MAAME,OAAO,GAAGD,KAAK,EAAEE,UAAU,EAAED,OAAO;;IAE1C;IACA,IAAI,CAACP,mBAAmB,IAAI,CAACO,OAAO,EAAEE,iBAAiB,EAAE;MACxD;IACD;IAEA,IAAI,IAAAC,iCAAqB,EAACH,OAAO,CAAC,EAAE;MACnC,OAAO;QAAED,KAAK;QAAEK,YAAY,EAAEN;MAAE,CAAC;IAClC;EACD;EAEA,OAAO,IAAI;AACZ","ignoreList":[]}
1
+ {"version":3,"names":["_visibility","require","getActiveFloatOverlay","scenes","index","transitionsAlwaysOn","length","startIndex","Math","max","i","scene","options","descriptor","enableTransitions","isOverlayVisible","overlayIndex"],"sourceRoot":"../../../../../../src","sources":["shared/components/overlay/helpers/get-active-overlay.ts"],"mappings":";;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACO,SAASC,qBAAqBA,CACpCC,MAAoB,EACpBC,KAAa,EACbC,mBAA4B,EACyB;EACrD,IAAIF,MAAM,CAACG,MAAM,KAAK,CAAC,EAAE;IACxB,OAAO,IAAI;EACZ;;EAEA;EACA;EACA;EACA;EACA,MAAMC,UAAU,GAAGC,IAAI,CAACC,GAAG,CAACL,KAAK,EAAED,MAAM,CAACG,MAAM,GAAG,CAAC,CAAC;EAErD,KAAK,IAAII,CAAC,GAAGH,UAAU,EAAEG,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IACrC,MAAMC,KAAK,GAAGR,MAAM,CAACO,CAAC,CAAC;IACvB,MAAME,OAAO,GAAGD,KAAK,EAAEE,UAAU,EAAED,OAAO;;IAE1C;IACA,IAAI,CAACP,mBAAmB,IAAI,CAACO,OAAO,EAAEE,iBAAiB,EAAE;MACxD;IACD;IAEA,IAAI,IAAAC,4BAAgB,EAACH,OAAO,CAAC,EAAE;MAC9B,OAAO;QAAED,KAAK;QAAEK,YAAY,EAAEN;MAAE,CAAC;IAClC;EACD;EAEA,OAAO,IAAI;AACZ","ignoreList":[]}
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.Overlay = void 0;
7
7
  var _floatOverlay = require("./variations/float-overlay");
8
- var _screenOverlay = require("./variations/screen-overlay");
9
8
  const Overlay = exports.Overlay = {
10
- Float: _floatOverlay.FloatOverlay,
11
- Screen: _screenOverlay.ScreenOverlay
9
+ Float: _floatOverlay.FloatOverlay
12
10
  };
13
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_floatOverlay","require","_screenOverlay","Overlay","exports","Float","FloatOverlay","Screen","ScreenOverlay"],"sourceRoot":"../../../../../src","sources":["shared/components/overlay/index.ts"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AAEO,MAAME,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG;EACtBE,KAAK,EAAEC,0BAAY;EACnBC,MAAM,EAAEC;AACT,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_floatOverlay","require","Overlay","exports","Float","FloatOverlay"],"sourceRoot":"../../../../../src","sources":["shared/components/overlay/index.ts"],"mappings":";;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAEO,MAAMC,OAAO,GAAAC,OAAA,CAAAD,OAAA,GAAG;EACtBE,KAAK,EAAEC;AACR,CAAC","ignoreList":[]}
@@ -8,7 +8,6 @@ var _native = require("@react-navigation/native");
8
8
  var _react = require("react");
9
9
  var _reactNative = require("react-native");
10
10
  var _reactNativeReanimated = require("react-native-reanimated");
11
- var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
12
11
  var _animation = require("../../../providers/screen/animation");
13
12
  var _jsxRuntime = require("react/jsx-runtime");
14
13
  const OverlayHost = exports.OverlayHost = /*#__PURE__*/(0, _react.memo)(function OverlayHost({
@@ -16,29 +15,16 @@ const OverlayHost = exports.OverlayHost = /*#__PURE__*/(0, _react.memo)(function
16
15
  overlayScreenState
17
16
  }) {
18
17
  const OverlayComponent = scene.descriptor.options.overlay;
19
- const screen = (0, _reactNative.useWindowDimensions)();
20
- const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
21
18
  const screenAnimation = (0, _animation.useScreenAnimation)();
22
19
  const relativeProgress = (0, _reactNativeReanimated.useDerivedValue)(() => {
23
20
  "worklet";
24
21
 
25
22
  return screenAnimation.value.stackProgress;
26
23
  });
27
- const overlayAnimation = (0, _reactNativeReanimated.useDerivedValue)(() => ({
28
- progress: relativeProgress.value,
29
- layouts: {
30
- screen
31
- },
32
- insets
33
- }));
34
24
  const overlayProps = (0, _react.useMemo)(() => ({
35
25
  ...overlayScreenState,
36
- progress: relativeProgress,
37
- /**@deprecated */
38
- overlayAnimation,
39
- /**@deprecated */
40
- screenAnimation
41
- }), [relativeProgress, overlayAnimation, screenAnimation, overlayScreenState]);
26
+ progress: relativeProgress
27
+ }), [relativeProgress, overlayScreenState]);
42
28
  if (!OverlayComponent) {
43
29
  return null;
44
30
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_native","require","_react","_reactNative","_reactNativeReanimated","_reactNativeSafeAreaContext","_animation","_jsxRuntime","OverlayHost","exports","memo","scene","overlayScreenState","OverlayComponent","descriptor","options","overlay","screen","useWindowDimensions","insets","useSafeAreaInsets","screenAnimation","useScreenAnimation","relativeProgress","useDerivedValue","value","stackProgress","overlayAnimation","progress","layouts","overlayProps","useMemo","jsx","Animated","View","pointerEvents","style","styles","container","floating","absolute","children","NavigationContext","Provider","navigation","NavigationRouteContext","route","StyleSheet","create","absoluteFillObject","zIndex","flex"],"sourceRoot":"../../../../../../src","sources":["shared/components/overlay/variations/overlay-host.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAIA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,2BAAA,GAAAJ,OAAA;AAEA,IAAAK,UAAA,GAAAL,OAAA;AAAyE,IAAAM,WAAA,GAAAN,OAAA;AAalE,MAAMO,WAAW,GAAAC,OAAA,CAAAD,WAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,WAAWA,CAAC;EACpDG,KAAK;EACLC;AACiB,CAAC,EAAE;EACpB,MAAMC,gBAAgB,GAAGF,KAAK,CAACG,UAAU,CAACC,OAAO,CAACC,OAAO;EACzD,MAAMC,MAAM,GAAG,IAAAC,gCAAmB,EAAC,CAAC;EACpC,MAAMC,MAAM,GAAG,IAAAC,6CAAiB,EAAC,CAAC;EAElC,MAAMC,eAAe,GAAG,IAAAC,6BAAkB,EAAC,CAAC;EAC5C,MAAMC,gBAAgB,GAAG,IAAAC,sCAAe,EAAC,MAAM;IAC9C,SAAS;;IACT,OAAOH,eAAe,CAACI,KAAK,CAACC,aAAa;EAC3C,CAAC,CAAC;EAEF,MAAMC,gBAAgB,GAAG,IAAAH,sCAAe,EAA4B,OAAO;IAC1EI,QAAQ,EAAEL,gBAAgB,CAACE,KAAK;IAChCI,OAAO,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B;IAChCC,MAAM,EAAE;EACT,CAAC;EACDZ,SAAS,EAAE;IACVa,IAAI,EAAE;EACP,CAAC;EACDX,QAAQ,EAAEO,uBAAU,CAACE,kBAAkB;EACvCV,QAAQ,EAAE;IACTW,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_native","require","_react","_reactNative","_reactNativeReanimated","_animation","_jsxRuntime","OverlayHost","exports","memo","scene","overlayScreenState","OverlayComponent","descriptor","options","overlay","screenAnimation","useScreenAnimation","relativeProgress","useDerivedValue","value","stackProgress","overlayProps","useMemo","progress","jsx","Animated","View","pointerEvents","style","styles","container","floating","absolute","children","NavigationContext","Provider","navigation","NavigationRouteContext","route","StyleSheet","create","absoluteFillObject","zIndex","flex"],"sourceRoot":"../../../../../../src","sources":["shared/components/overlay/variations/overlay-host.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAIA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AAAyE,IAAAK,WAAA,GAAAL,OAAA;AAYlE,MAAMM,WAAW,GAAAC,OAAA,CAAAD,WAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,WAAWA,CAAC;EACpDG,KAAK;EACLC;AACiB,CAAC,EAAE;EACpB,MAAMC,gBAAgB,GAAGF,KAAK,CAACG,UAAU,CAACC,OAAO,CAACC,OAAO;EAEzD,MAAMC,eAAe,GAAG,IAAAC,6BAAkB,EAAC,CAAC;EAC5C,MAAMC,gBAAgB,GAAG,IAAAC,sCAAe,EAAC,MAAM;IAC9C,SAAS;;IACT,OAAOH,eAAe,CAACI,KAAK,CAACC,aAAa;EAC3C,CAAC,CAAC;EAEF,MAAMC,YAAwD,GAAG,IAAAC,cAAO,EACvE,OAAO;IACN,GAAGZ,kBAAkB;IACrBa,QAAQ,EAAEN;EACX,CAAC,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
6
6
  exports.SceneView = void 0;
7
7
  var _native = require("@react-navigation/native");
8
8
  var React = _interopRequireWildcard(require("react"));
9
- var _visibility = require("../utils/overlay/visibility");
10
- var _overlay = require("./overlay");
11
9
  var _jsxRuntime = require("react/jsx-runtime");
12
10
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
13
11
  /**
@@ -25,9 +23,9 @@ const SceneView = exports.SceneView = /*#__PURE__*/React.memo(function SceneView
25
23
  } = descriptor;
26
24
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.NavigationContext.Provider, {
27
25
  value: navigation,
28
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_native.NavigationRouteContext.Provider, {
26
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.NavigationRouteContext.Provider, {
29
27
  value: route,
30
- children: [(0, _visibility.isScreenOverlayVisible)(descriptor.options) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_overlay.Overlay.Screen, {}), render?.()]
28
+ children: render?.()
31
29
  })
32
30
  });
33
31
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_native","require","React","_interopRequireWildcard","_visibility","_overlay","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SceneView","exports","memo","descriptor","route","navigation","render","jsx","NavigationContext","Provider","value","children","jsxs","NavigationRouteContext","isScreenOverlayVisible","options","Overlay","Screen"],"sourceRoot":"../../../../src","sources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,gBAAGxB,KAAK,CAAC0B,IAAI,CAAC,SAASF,SAASA,CAAC;EACtDG;AACe,CAAC,EAAE;EAClB,MAAM;IAAEC,KAAK;IAAEC,UAAU;IAAEC;EAAO,CAAC,GAAGH,UAAU;EAEhD,oBACC,IAAAvB,WAAA,CAAA2B,GAAA,EAACjC,OAAA,CAAAkC,iBAAiB,CAACC,QAAQ;IAACC,KAAK,EAAEL,UAAkB;IAAAM,QAAA,eACpD,IAAA/B,WAAA,CAAAgC,IAAA,EAACtC,OAAA,CAAAuC,sBAAsB,CAACJ,QAAQ;MAACC,KAAK,EAAEN,KAAM;MAAAO,QAAA,GAC5C,IAAAG,kCAAsB,EAACX,UAAU,CAACY,OAAO,CAAC,iBAAI,IAAAnC,WAAA,CAAA2B,GAAA,EAAC5B,QAAA,CAAAqC,OAAO,CAACC,MAAM,IAAE,CAAC,EAChEX,MAAM,GAAG,CAAC;IAAA,CACqB;EAAC,CACP,CAAC;AAE/B,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_native","require","React","_interopRequireWildcard","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","SceneView","exports","memo","descriptor","route","navigation","render","jsx","NavigationContext","Provider","value","children","NavigationRouteContext"],"sourceRoot":"../../../../src","sources":["shared/components/scene-view.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAIA,IAAAC,KAAA,GAAAC,uBAAA,CAAAF,OAAA;AAA+B,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAE,wBAAAE,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAJ,uBAAA,YAAAA,CAAAE,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC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C,CAAC","ignoreList":[]}
@@ -34,6 +34,9 @@ const BackdropLayer = exports.BackdropLayer = /*#__PURE__*/(0, _react.memo)(func
34
34
  backdropBehavior
35
35
  } = (0, _useBackdropPointerEvents.useBackdropPointerEvents)();
36
36
  const BackdropComponent = current.options.backdropComponent;
37
+ const routeKey = current.route.key;
38
+ const animations = _animation.AnimationStore.getRouteAnimations(routeKey);
39
+ const autoSnapPointValue = _animation.AnimationStore.getAnimation(routeKey, "autoSnapPoint");
37
40
  const AnimatedBackdropComponent = (0, _react.useMemo)(() => BackdropComponent ? _reactNativeReanimated.default.createAnimatedComponent(BackdropComponent) : null, [BackdropComponent]);
38
41
  const handleBackdropPress = (0, _react.useCallback)(() => {
39
42
  if (backdropBehavior === "dismiss") {
@@ -41,24 +44,24 @@ const BackdropLayer = exports.BackdropLayer = /*#__PURE__*/(0, _react.memo)(func
41
44
  return;
42
45
  }
43
46
  if (backdropBehavior === "collapse") {
44
- const snapPoints = current.options.snapPoints;
47
+ const rawSnapPoints = current.options.snapPoints;
45
48
  const canDismiss = current.options.gestureEnabled !== false;
46
49
 
47
50
  // No snap points → fallback to dismiss
48
- if (!snapPoints || snapPoints.length === 0) {
51
+ if (!rawSnapPoints || rawSnapPoints.length === 0) {
49
52
  dismissScreen();
50
53
  return;
51
54
  }
52
- const animations = _animation.AnimationStore.getRouteAnimations(current.route.key);
53
- const gestures = _gesture.GestureStore.getRouteGestures(current.route.key);
55
+ const gestures = _gesture.GestureStore.getRouteGestures(routeKey);
54
56
  const transitionSpec = current.options.transitionSpec;
55
57
  (0, _reactNativeReanimated.runOnUI)(() => {
56
58
  "worklet";
57
59
 
60
+ const resolvedSnaps = rawSnapPoints.map(point => point === "auto" ? autoSnapPointValue.value : point).filter(point => typeof point === "number");
58
61
  const {
59
62
  target,
60
63
  shouldDismiss
61
- } = (0, _findCollapseTarget.findCollapseTarget)(animations.progress.value, snapPoints, canDismiss);
64
+ } = (0, _findCollapseTarget.findCollapseTarget)(animations.progress.value, resolvedSnaps, canDismiss);
62
65
 
63
66
  // If already dismissing, skip
64
67
  if (gestures.dismissing.value) return;
@@ -75,7 +78,7 @@ const BackdropLayer = exports.BackdropLayer = /*#__PURE__*/(0, _react.memo)(func
75
78
  });
76
79
  })();
77
80
  }
78
- }, [backdropBehavior, current, dismissScreen]);
81
+ }, [animations, autoSnapPointValue, backdropBehavior, current, dismissScreen, routeKey]);
79
82
  const animatedBackdropStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
80
83
  "worklet";
81
84
 
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_specs","_constants","_useNavigationHelpers","_descriptors","_styles","_animation","_gesture","_animateToProgress","_findCollapseTarget","_useBackdropPointerEvents","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BackdropLayer","exports","memo","stylesMap","useScreenStyles","current","useDescriptors","dismissScreen","useNavigationHelpers","isBackdropActive","backdropBehavior","useBackdropPointerEvents","BackdropComponent","options","backdropComponent","AnimatedBackdropComponent","useMemo","Animated","createAnimatedComponent","handleBackdropPress","useCallback","snapPoints","canDismiss","gestureEnabled","length","animations","AnimationStore","getRouteAnimations","route","key","gestures","GestureStore","getRouteGestures","transitionSpec","runOnUI","target","shouldDismiss","findCollapseTarget","progress","value","dismissing","spec","open","expand","DefaultSnapSpec","close","collapse","animateToProgress","onAnimationFinish","undefined","animatedBackdropStyle","useAnimatedStyle","backdrop","style","NO_STYLES","animatedBackdropProps","useAnimatedProps","props","NO_PROPS","jsxs","Pressable","StyleSheet","absoluteFillObject","pointerEvents","onPress","children","jsx","animatedProps","View"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/backdrop.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAA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IACTP,KAAK,EAAEQ,uBAAU,CAACC,kBAAmB;IACrCC,aAAa,EAAEtD,gBAAgB,GAAG,MAAM,GAAG,MAAO;IAClDuD,OAAO,EAAEvD,gBAAgB,GAAGU,mBAAmB,GAAG8B,SAAU;IAAAgB,QAAA,GAE3DlD,yBAAyB,iBACzB,IAAAnC,WAAA,CAAAsF,GAAA,EAACnD,yBAAyB;MACzBsC,KAAK,EAAE,CAACQ,uBAAU,CAACC,kBAAkB,CAAE;MACvCK,aAAa,EAAEZ;IAAsB,CACrC,CACD,eACD,IAAA3E,WAAA,CAAAsF,GAAA,EAAClG,sBAAA,CAAAuB,OAAQ,CAAC6E,IAAI;MACbf,KAAK,EAAE,CAACQ,uBAAU,CAACC,kBAAkB,EAAEZ,qBAAqB;IAAE,CAC9D,CAAC;EAAA,CACQ,CAAC;AAEd,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_specs","_constants","_useNavigationHelpers","_descriptors","_styles","_animation","_gesture","_animateToProgress","_findCollapseTarget","_useBackdropPointerEvents","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BackdropLayer","exports","memo","stylesMap","useScreenStyles","current","useDescriptors","dismissScreen","useNavigationHelpers","isBackdropActive","backdropBehavior","useBackdropPointerEvents","BackdropComponent","options","backdropComponent","routeKey","route","key","animations","AnimationStore","getRouteAnimations","autoSnapPointValue","getAnimation","AnimatedBackdropComponent","useMemo","Animated","createAnimatedComponent","handleBackdropPress","useCallback","rawSnapPoints","snapPoints","canDismiss","gestureEnabled","length","gestures","GestureStore","getRouteGestures","transitionSpec","runOnUI","resolvedSnaps","map","point","value","filter","target","shouldDismiss","findCollapseTarget","progress","dismissing","spec","open","expand","DefaultSnapSpec","close","collapse","animateToProgress","onAnimationFinish","undefined","animatedBackdropStyle","useAnimatedStyle","backdrop","style","NO_STYLES","animatedBackdropProps","useAnimatedProps","props","NO_PROPS","jsxs","Pressable","StyleSheet","absoluteFillObject","pointerEvents","onPress","children","jsx","animatedProps","View"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/backdrop.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAKA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,qBAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AACA,IAAAU,QAAA,GAAAV,OAAA;AACA,IAAAW,kBAAA,GAAAX,OAAA;AACA,IAAAY,mBAAA,GAAAZ,OAAA;AACA,IAAAa,yBAAA,GAAAb,OAAA;AAAgF,IAAAc,WAAA,GAAAd,OAAA;AAAA,SAAAG,wBAAAY,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAd,uBAAA,YAAAA,CAAAY,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,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B,EAAEX,aAAa,GAAGtC,aAAa,GAAGkD;QACpD,CAAC,CAAC;MACH,CAAC,CAAC,CAAC,CAAC;IACL;EACD,CAAC,EAAE,CACFvC,UAAU,EACVG,kBAAkB,EAClBX,gBAAgB,EAChBL,OAAO,EACPE,aAAa,EACbQ,QAAQ,CACR,CAAC;EAEF,MAAM2C,qBAAqB,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IACpD,SAAS;;IACT,OAAOxD,SAAS,CAACuC,KAAK,CAACkB,QAAQ,EAAEC,KAAK,IAAIC,oBAAS;EACpD,CAAC,CAAC;EAEF,MAAMC,qBAAqB,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IACpD,SAAS;;IACT,OAAO7D,SAAS,CAACuC,KAAK,CAACkB,QAAQ,EAAEK,KAAK,IAAIC,mBAAQ;EACnD,CAAC,CAAC;EAEF,oBACC,IAAAtF,WAAA,CAAAuF,IAAA,EAACpG,YAAA,CAAAqG,SAAS;IACTP,KAAK,EAAEQ,uBAAU,CAACC,kBAAmB;IACrCC,aAAa,EAAE9D,gBAAgB,GAAG,MAAM,GAAG,MAAO;IAClD+D,OAAO,EAAE/D,gBAAgB,GAAGkB,mBAAmB,GAAG8B,SAAU;IAAAgB,QAAA,GAK3DlD,yBAAyB,iBACzB,IAAA3C,WAAA,CAAA8F,GAAA,EAACnD,yBAAyB;MACzBsC,KAAK,EAAE,CAACQ,uBAAU,CAACC,kBAAkB,CAAE;MACvCK,aAAa,EAAEZ;IAAsB,CACrC,CACD,eACD,IAAAnF,WAAA,CAAA8F,GAAA,EAAC1G,sBAAA,CAAAuB,OAAQ,CAACqF,IAAI;MACbf,KAAK,EAAE,CAACQ,uBAAU,CAACC,kBAAkB,EAAEZ,qBAAqB;IAAE,CAC9D,CAAC;EAAA,CACQ,CAAC;AAEd,CAAC,CAAC","ignoreList":[]}
@@ -12,20 +12,15 @@ var _constants = require("../../../constants");
12
12
  var _gestures = require("../../../providers/gestures");
13
13
  var _descriptors = require("../../../providers/screen/descriptors");
14
14
  var _styles = require("../../../providers/screen/styles.provider");
15
- var _logger = require("../../../utils/logger");
15
+ var _animation = require("../../../stores/animation.store");
16
+ var _animateToProgress = require("../../../utils/animation/animate-to-progress");
16
17
  var _useBackdropPointerEvents = require("../hooks/use-backdrop-pointer-events");
18
+ var _maybeMaskedNavigationContainer = require("./maybe-masked-navigation-container");
17
19
  var _surfaceContainer = require("./surface-container");
18
20
  var _jsxRuntime = require("react/jsx-runtime");
19
21
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
20
22
  /** biome-ignore-all lint/style/noNonNullAssertion: <Screen gesture is under the gesture context, so this will always exist.> */
21
23
 
22
- let LazyMaskedView = _reactNative.View;
23
- try {
24
- LazyMaskedView = require("@react-native-masked-view/masked-view").default;
25
- } catch (_) {
26
- // optional peer dependency
27
- }
28
- let hasWarnedMissingMaskedView = false;
29
24
  const ContentLayer = exports.ContentLayer = /*#__PURE__*/(0, _react.memo)(({
30
25
  children
31
26
  }) => {
@@ -35,15 +30,23 @@ const ContentLayer = exports.ContentLayer = /*#__PURE__*/(0, _react.memo)(({
35
30
  const {
36
31
  current
37
32
  } = (0, _descriptors.useDescriptors)();
33
+ const {
34
+ isFirstKey
35
+ } = (0, _descriptors.useDescriptorDerivations)();
38
36
  const {
39
37
  pointerEvents,
40
38
  isBackdropActive
41
39
  } = (0, _useBackdropPointerEvents.useBackdropPointerEvents)();
42
40
  const gestureContext = (0, _gestures.useGestureContext)();
41
+ const {
42
+ height: screenHeight
43
+ } = (0, _reactNative.useWindowDimensions)();
43
44
  const isNavigationMaskEnabled = !!current.options.maskEnabled;
44
45
  const contentPointerEvents = isBackdropActive ? "box-none" : pointerEvents;
45
-
46
- // ── Content ──
46
+ const routeKey = current.route.key;
47
+ const animations = _animation.AnimationStore.getRouteAnimations(routeKey);
48
+ const autoSnapPointValue = _animation.AnimationStore.getAnimation(routeKey, "autoSnapPoint");
49
+ const hasAutoSnapPoint = current.options.snapPoints?.includes("auto") ?? false;
47
50
  const animatedContentStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
48
51
  "worklet";
49
52
 
@@ -54,49 +57,47 @@ const ContentLayer = exports.ContentLayer = /*#__PURE__*/(0, _react.memo)(({
54
57
 
55
58
  return stylesMap.value.content?.props ?? _constants.NO_PROPS;
56
59
  });
60
+ const handleContentLayout = (0, _react.useCallback)(event => {
61
+ const contentHeight = event.nativeEvent.layout.height;
62
+ if (contentHeight <= 0) return;
63
+ const fraction = Math.min(contentHeight / screenHeight, 1);
64
+ const transitionSpec = current.options.transitionSpec;
65
+ (0, _reactNativeReanimated.runOnUI)((nextFraction, isInitialScreen, spec) => {
66
+ "worklet";
57
67
 
58
- // ── Navigation mask / container ──
59
- const animatedNavigationContainerStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
60
- "worklet";
61
-
62
- return stylesMap.value[_constants.NAVIGATION_CONTAINER_STYLE_ID]?.style || _constants.NO_STYLES;
63
- });
64
- const animatedNavigationMaskStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
65
- "worklet";
66
-
67
- return stylesMap.value[_constants.NAVIGATION_MASK_STYLE_ID]?.style || _constants.NO_STYLES;
68
- });
69
- (0, _react.useEffect)(() => {
70
- if (!isNavigationMaskEnabled) return;
71
- if (LazyMaskedView !== _reactNative.View) return;
72
- if (hasWarnedMissingMaskedView) return;
73
- hasWarnedMissingMaskedView = true;
74
- _logger.logger.warn("maskEnabled requires @react-native-masked-view/masked-view. Install it to enable navigation bounds masking.");
75
- }, [isNavigationMaskEnabled]);
76
- const contentChildren = isNavigationMaskEnabled ? LazyMaskedView !== _reactNative.View ? /*#__PURE__*/(0, _jsxRuntime.jsx)(LazyMaskedView, {
77
- style: styles.navigationMaskedRoot
78
- // @ts-expect-error masked-view package types are too strict here
79
- ,
80
- maskElement: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
81
- style: [styles.navigationMaskElement, animatedNavigationMaskStyle]
82
- }),
83
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
84
- style: [styles.navigationContainer, animatedNavigationContainerStyle],
85
- children: children
86
- })
87
- }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
88
- style: [styles.navigationContainer, animatedNavigationContainerStyle],
89
- children: children
90
- }) : children;
68
+ const isFirstMeasurement = autoSnapPointValue.value <= 0;
69
+ autoSnapPointValue.value = nextFraction;
70
+ if (!isFirstMeasurement || animations.progress.value !== 0 || animations.animating.value !== 0) {
71
+ return;
72
+ }
73
+ if (isInitialScreen) {
74
+ animations.targetProgress.value = nextFraction;
75
+ animations.progress.value = nextFraction;
76
+ return;
77
+ }
78
+ (0, _animateToProgress.animateToProgress)({
79
+ target: nextFraction,
80
+ spec,
81
+ animations
82
+ });
83
+ })(fraction, isFirstKey, transitionSpec);
84
+ }, [animations, autoSnapPointValue, current.options.transitionSpec, isFirstKey, screenHeight]);
91
85
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeGestureHandler.GestureDetector, {
92
86
  gesture: gestureContext.panGesture,
93
87
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
94
88
  style: [styles.content, animatedContentStyle],
95
89
  animatedProps: animatedContentProps,
96
90
  pointerEvents: contentPointerEvents,
97
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_surfaceContainer.SurfaceContainer, {
98
- pointerEvents: contentPointerEvents,
99
- children: contentChildren
91
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_maybeMaskedNavigationContainer.MaybeMaskedNavigationContainer, {
92
+ enabled: isNavigationMaskEnabled,
93
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_surfaceContainer.SurfaceContainer, {
94
+ pointerEvents: contentPointerEvents,
95
+ children: hasAutoSnapPoint ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
96
+ collapsable: false,
97
+ onLayout: handleContentLayout,
98
+ children: children
99
+ }) : children
100
+ })
100
101
  })
101
102
  })
102
103
  });
@@ -104,15 +105,6 @@ const ContentLayer = exports.ContentLayer = /*#__PURE__*/(0, _react.memo)(({
104
105
  const styles = _reactNative.StyleSheet.create({
105
106
  content: {
106
107
  flex: 1
107
- },
108
- navigationMaskedRoot: {
109
- flex: 1
110
- },
111
- navigationMaskElement: {
112
- backgroundColor: "white"
113
- },
114
- navigationContainer: {
115
- flex: 1
116
108
  }
117
109
  });
118
110
  //# sourceMappingURL=content.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_interopRequireWildcard","_constants","_gestures","_descriptors","_styles","_logger","_useBackdropPointerEvents","_surfaceContainer","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","LazyMaskedView","View","_","hasWarnedMissingMaskedView","ContentLayer","exports","memo","children","stylesMap","useScreenStyles","current","useDescriptors","pointerEvents","isBackdropActive","useBackdropPointerEvents","gestureContext","useGestureContext","isNavigationMaskEnabled","options","maskEnabled","contentPointerEvents","animatedContentStyle","useAnimatedStyle","value","content","style","NO_STYLES","animatedContentProps","useAnimatedProps","props","NO_PROPS","animatedNavigationContainerStyle","NAVIGATION_CONTAINER_STYLE_ID","animatedNavigationMaskStyle","NAVIGATION_MASK_STYLE_ID","useEffect","logger","warn","contentChildren","jsx","styles","navigationMaskedRoot","maskElement","navigationMaskElement","navigationContainer","GestureDetector","gesture","panGesture","animatedProps","SurfaceContainer","StyleSheet","create","flex","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/content.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,0BAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAC,uBAAA,CAAAJ,OAAA;AAIA,IAAAK,UAAA,GAAAL,OAAA;AAMA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,yBAAA,GAAAV,OAAA;AACA,IAAAW,iBAAA,GAAAX,OAAA;AAAuD,IAAAY,WAAA,GAAAZ,OAAA;AAAA,SAAAI,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAS,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC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,CAAAoB,OAAQ,CAACU,IAAI;IACbwB,KAAK,EAAE,CAACe,MAAM,CAACI,mBAAmB,EAAEb,gCAAgC,CAAE;IAAAxB,QAAA,EAErEA;EAAQ,CACK,CACf,GAEDA,QACA;EAED,oBACC,IAAA3B,WAAA,CAAA2D,GAAA,EAACrE,0BAAA,CAAA2E,eAAe;IAACC,OAAO,EAAE/B,cAAc,CAAEgC,UAAW;IAAAxC,QAAA,eACpD,IAAA3B,WAAA,CAAA2D,GAAA,EAACpE,sBAAA,CAAAoB,OAAQ,CAACU,IAAI;MACbwB,KAAK,EAAE,CAACe,MAAM,CAAChB,OAAO,EAAEH,oBAAoB,CAAE;MAC9C2B,aAAa,EAAErB,oBAAqB;MACpCf,aAAa,EAAEQ,oBAAqB;MAAAb,QAAA,eAEpC,IAAA3B,WAAA,CAAA2D,GAAA,EAAC5D,iBAAA,CAAAsE,gBAAgB;QAACrC,aAAa,EAAEQ,oBAAqB;QAAAb,QAAA,EACpD+B;MAAe,CACC;IAAC,CACL;EAAC,CACA,CAAC;AAEpB,CAAC,CAAC;AAEF,MAAME,MAAM,GAAGU,uBAAU,CAACC,MAAM,CAAC;EAChC3B,OAAO,EAAE;IACR4B,IAAI,EAAE;EACP,CAAC;EACDX,oBAAoB,EAAE;IACrBW,IAAI,EAAE;EACP,CAAC;EACDT,qBAAqB,EAAE;IACtBU,eAAe,EAAE;EAClB,CAAC;EACDT,mBAAmB,EAAE;IACpBQ,IAAI,EAAE;EACP;AACD,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_reactNativeGestureHandler","_reactNativeReanimated","_interopRequireWildcard","_constants","_gestures","_descriptors","_styles","_animation","_animateToProgress","_useBackdropPointerEvents","_maybeMaskedNavigationContainer","_surfaceContainer","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ContentLayer","exports","memo","children","stylesMap","useScreenStyles","current","useDescriptors","isFirstKey","useDescriptorDerivations","pointerEvents","isBackdropActive","useBackdropPointerEvents","gestureContext","useGestureContext","height","screenHeight","useWindowDimensions","isNavigationMaskEnabled","options","maskEnabled","contentPointerEvents","routeKey","route","key","animations","AnimationStore","getRouteAnimations","autoSnapPointValue","getAnimation","hasAutoSnapPoint","snapPoints","includes","animatedContentStyle","useAnimatedStyle","value","content","style","NO_STYLES","animatedContentProps","useAnimatedProps","props","NO_PROPS","handleContentLayout","useCallback","event","contentHeight","nativeEvent","layout","fraction","Math","min","transitionSpec","runOnUI","nextFraction","isInitialScreen","spec","isFirstMeasurement","progress","animating","targetProgress","animateToProgress","target","jsx","GestureDetector","gesture","panGesture","View","styles","animatedProps","MaybeMaskedNavigationContainer","enabled","SurfaceContainer","collapsable","onLayout","StyleSheet","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/content.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAMA,IAAAE,0BAAA,GAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAC,uBAAA,CAAAJ,OAAA;AAKA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAIA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,UAAA,GAAAT,OAAA;AACA,IAAAU,kBAAA,GAAAV,OAAA;AACA,IAAAW,yBAAA,GAAAX,OAAA;AACA,IAAAY,+BAAA,GAAAZ,OAAA;AACA,IAAAa,iBAAA,GAAAb,OAAA;AAAuD,IAAAc,WAAA,GAAAd,OAAA;AAAA,SAAAI,wBAAAW,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,CAAAW,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,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