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 @@
1
+ {"version":3,"names":["_bounds","require","DEFAULT_DRAG_RESISTANCE","DEFAULT_DRAG_DIRECTIONAL_SCALE_MIN","DEFAULT_DRAG_DIRECTIONAL_SCALE_MAX","DEFAULT_MASK_BORDER_RADIUS","ZERO_OUTSET","Object","freeze","top","right","bottom","left","toNumber","value","fallback","exports","isFiniteNumber","Number","isFinite","normalizeOutset","normalizeZoomOptions","zoomOptions","resolvedMaskRadius","mask","borderRadius","maskBorderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderCurve","outset","motion","dragResistance","dragDirectionalScaleMin","dragDirectionalScaleMax","resolveZoomConfig","id","group","currentRouteKey","resolveTag","defaultAnchor","resolvedTag","boundaryConfig","BoundStore","getBoundaryConfig","effectiveConfig","scopedLink","getActiveLink","link","source","screenKey","sharedOptions","anchor","scaleMode","explicitTarget","target","resolvedZoomOptions"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/config.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,MAAMC,uBAAuB,GAAG,GAAG;AACn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AM,CAAC,CAAC;EAC7C,IAAI,CAACI,WAAW,EAAE,OAAO,IAAI;;EAE7B;EACA,MAAMC,cAAc,GAAGJ,eAAe,GACnCK,kBAAU,CAACC,iBAAiB,CAACH,WAAW,EAAEH,eAAe,CAAC,GAC1D,IAAI;;EAEP;EACA;EACA;EACA,IAAIO,eAAe,GAAGH,cAAc;EACpC,IAAI,CAACG,eAAe,EAAE;IACrB;IACA;IACA;IACA,MAAMC,UAAU,GAAGR,eAAe,GAC/BK,kBAAU,CAACI,aAAa,CAACN,WAAW,EAAEH,eAAe,CAAC,GACtD,IAAI;IACP,MAAMU,IAAI,GAAGF,UAAU,IAAIH,kBAAU,CAACI,aAAa,CAACN,WAAW,CAAC;IAChE,IAAIO,IAAI,EAAEC,MAAM,EAAE;MACjBJ,eAAe,GAAGF,kBAAU,CAACC,iBAAiB,CAC7CH,WAAW,EACXO,IAAI,CAACC,MAAM,CAACC,SACb,CAAC;IACF;EACD;EAEA,MAAMC,aAAqC,GAAG;IAC7CC,MAAM,EAAEhC,WAAW,EAAEgC,MAAM,IAAIP,eAAe,EAAEO,MAAM,IAAIZ,aAAa;IACvEa,SAAS,EACRjC,WAAW,EAAEiC,SAAS,IAAIR,eAAe,EAAEQ,SAAS,IAAI;EAC1D,CAAC;EAED,MAAMC,cAAc,GAAGlC,WAAW,EAAEmC,MAAM,IAAIV,eAAe,EAAEU,MAAM;EACrE,MAAMC,mBAAmB,GAAGrC,oBAAoB,CAACC,WAAW,CAAC;EAE7D,OAAO;IACNqB,WAAW;IACXU,aAAa;IACbG,cAAc;IACdlC,WAAW,EAAEoC;EACd,CAAC;AACF,CAAC;AAAC1C,OAAA,CAAAqB,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "buildZoomStyles", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _build.buildZoomStyles;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "createZoomAccessor", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _accessor.createZoomAccessor;
16
+ }
17
+ });
18
+ var _accessor = require("./accessor");
19
+ var _build = require("./build");
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_accessor","require","_build"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/zoom/types.ts"],"mappings":"","ignoreList":[]}
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.sanitizeSnapPoints = sanitizeSnapPoints;
7
7
  exports.validateSnapPoints = void 0;
8
8
  /**
9
- * Filters snap points to only valid, finite values.
9
+ * Filters snap points to only valid, finite numeric values.
10
10
  * Excludes zero (dismiss) when canDismiss is false.
11
11
  */
12
12
  function sanitizeSnapPoints(snapPoints, canDismiss) {
13
13
  "worklet";
14
14
 
15
- return snapPoints.filter(point => canDismiss ? Number.isFinite(point) : Number.isFinite(point) && point > 0);
15
+ return snapPoints.filter(point => typeof point === "number" && (canDismiss ? Number.isFinite(point) : Number.isFinite(point) && point > 0));
16
16
  }
17
17
  const validateSnapPoints = ({
18
18
  snapPoints,
@@ -21,15 +21,20 @@ const validateSnapPoints = ({
21
21
  if (!snapPoints || snapPoints.length === 0) {
22
22
  return {
23
23
  hasSnapPoints: false,
24
+ hasAutoSnapPoint: false,
24
25
  snapPoints: [],
25
26
  minSnapPoint: -1,
26
27
  maxSnapPoint: -1
27
28
  };
28
29
  }
30
+ const hasAuto = snapPoints.includes("auto");
29
31
  const normalizedSnaps = sanitizeSnapPoints(snapPoints, canDismiss ?? false);
30
- if (normalizedSnaps.length === 0) {
32
+
33
+ // hasSnapPoints is true if there are valid numeric points OR an 'auto' point
34
+ if (normalizedSnaps.length === 0 && !hasAuto) {
31
35
  return {
32
36
  hasSnapPoints: false,
37
+ hasAutoSnapPoint: false,
33
38
  snapPoints: [],
34
39
  minSnapPoint: -1,
35
40
  maxSnapPoint: -1
@@ -37,10 +42,11 @@ const validateSnapPoints = ({
37
42
  }
38
43
  const sortedSnaps = normalizedSnaps.slice().sort((a, b) => a - b);
39
44
  // Clamp to snap point bounds (dismiss at 0 only if allowed)
40
- const minProgress = canDismiss ? 0 : sortedSnaps[0];
41
- const maxProgress = sortedSnaps[sortedSnaps.length - 1];
45
+ const minProgress = canDismiss ? 0 : sortedSnaps[0] ?? -1;
46
+ const maxProgress = sortedSnaps[sortedSnaps.length - 1] ?? -1;
42
47
  return {
43
48
  hasSnapPoints: true,
49
+ hasAutoSnapPoint: hasAuto,
44
50
  snapPoints: sortedSnaps,
45
51
  minSnapPoint: minProgress,
46
52
  maxSnapPoint: maxProgress
@@ -1 +1 @@
1
- {"version":3,"names":["sanitizeSnapPoints","snapPoints","canDismiss","filter","point","Number","isFinite","validateSnapPoints","length","hasSnapPoints","minSnapPoint","maxSnapPoint","normalizedSnaps","sortedSnaps","slice","sort","a","b","minProgress","maxProgress","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/gesture/validate-snap-points.ts"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACO,SAASA,kBAAkBA,CACjCC,UAAoB,EACpBC,UAAmB,EACR;EACX,SAAS;;EACT,OAAOD,UAAU,CAACE,MAAM,CAAEC,KAAK,IAC9BF,UAAU,GAAGG,MAAM,CAACC,QAAQ,CAACF,KAAK,CAAC,GAAGC,MAAM,CAACC,QAAQ,CAACF,KAAK,CAAC,IAAIA,KAAK,GAAG,CACzE,CAAC;AACF;AAcO,MAAMG,kBAAkB,GAAGA,CAAC;EAClCN,UAAU;EACVC;AAC0B,CAAC,KAAgC;EAC3D,IAAI,CAACD,UAAU,IAAIA,UAAU,CAACO,MAAM,KAAK,CAAC,EAAE;IAC3C,OAAO;MACNC,aAAa,EAAE,KAAK;MACpBR,UAAU,EAAE,EAAE;MACdS,YAAY,EAAE,CAAC,CAAC;MAChBC,YAAY,EAAE,CAAC;IAChB,CAAC;EACF;EAEA,MAAMC,eAAe,GAAGZ,kBAAkB,CAACC,UAAU,EAAEC,UAAU,IAAI,KAAK,CAAC;EAE3E,IAAIU,eAAe,CAACJ,MAAM,KAAK,CAAC,EAAE;IACjC,OAAO;MACNC,aAAa,EAAE,KAAK;MACpBR,UAAU,EAAE,EAAE;MACdS,YAAY,EAAE,CAAC,CAAC;MAChBC,YAAY,EAAE,CAAC;IAChB,CAAC;EACF;EAEA,MAAME,WAAW,GAAGD,eAAe,CAACE,KAAK,CAAC,CAAC,CAACC,IAAI,CAAC,CAACC,CAAC,EAAEC,CAAC,KAAKD,CAAC,GAAGC,CAAC,CAAC;EACjE;EACA,MAAMC,WAAW,GAAGhB,UAAU,GAAG,CAAC,GAAGW,WAAW,CAAC,CAAC,CAAC;EACnD,MAAMM,WAAW,GAAGN,WAAW,CAACA,WAAW,CAACL,MAAM,GAAG,CAAC,CAAC;EAEvD,OAAO;IACNC,aAAa,EAAE,IAAI;IACnBR,UAAU,EAAEY,WAAW;IACvBH,YAAY,EAAEQ,WAAW;IACzBP,YAAY,EAAEQ;EACf,CAAC;AACF,CAAC;AAACC,OAAA,CAAAb,kBAAA,GAAAA,kBAAA","ignoreList":[]}
1
+ {"version":3,"names":["sanitizeSnapPoints","snapPoints","canDismiss","filter","point","Number","isFinite","validateSnapPoints","length","hasSnapPoints","hasAutoSnapPoint","minSnapPoint","maxSnapPoint","hasAuto","includes","normalizedSnaps","sortedSnaps","slice","sort","a","b","minProgress","maxProgress","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/gesture/validate-snap-points.ts"],"mappings":";;;;;;;AAEA;AACA;AACA;AACA;AACO,SAASA,kBAAkBA,CACjCC,UAAuB,EACvBC,UAAmB,EAC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I,CAAC,CAAC;EAE7D,OAAO;IACNC,aAAa,EAAE,IAAI;IACnBC,gBAAgB,EAAEG,OAAO;IACzBZ,UAAU,EAAEe,WAAW;IACvBL,YAAY,EAAEU,WAAW;IACzBT,YAAY,EAAEU;EACf,CAAC;AACF,CAAC;AAACC,OAAA,CAAAhB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -3,16 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.isScreenOverlayVisible = exports.isFloatOverlayVisible = void 0;
6
+ exports.isOverlayVisible = void 0;
7
7
  const isOverlayVisible = options => {
8
8
  return Boolean(options?.overlay) && options?.overlayShown !== false;
9
9
  };
10
- const isFloatOverlayVisible = options => {
11
- return isOverlayVisible(options) && options?.overlayMode !== "screen";
12
- };
13
- exports.isFloatOverlayVisible = isFloatOverlayVisible;
14
- const isScreenOverlayVisible = options => {
15
- return isOverlayVisible(options) && options?.overlayMode === "screen";
16
- };
17
- exports.isScreenOverlayVisible = isScreenOverlayVisible;
10
+ exports.isOverlayVisible = isOverlayVisible;
18
11
  //# sourceMappingURL=visibility.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["isOverlayVisible","options","Boolean","overlay","overlayShown","isFloatOverlayVisible","overlayMode","exports","isScreenOverlayVisible"],"sourceRoot":"../../../../../src","sources":["shared/utils/overlay/visibility.ts"],"mappings":";;;;;;AAQA,MAAMA,gBAAgB,GAAIC,OAA4B,IAAc;EACnE,OAAOC,OAAO,CAACD,OAAO,EAAEE,OAAO,CAAC,IAAIF,OAAO,EAAEG,YAAY,KAAK,KAAK;AACpE,CAAC;AAEM,MAAMC,qBAAqB,GACjCJ,OAA4B,IACf;EACb,OAAOD,gBAAgB,CAACC,OAAO,CAAC,IAAIA,OAAO,EAAEK,WAAW,KAAK,QAAQ;AACtE,CAAC;AAACC,OAAA,CAAAF,qBAAA,GAAAA,qBAAA;AAEK,MAAMG,sBAAsB,GAClCP,OAA4B,IACf;EACb,OAAOD,gBAAgB,CAACC,OAAO,CAAC,IAAIA,OAAO,EAAEK,WAAW,KAAK,QAAQ;AACtE,CAAC;AAACC,OAAA,CAAAC,sBAAA,GAAAA,sBAAA","ignoreList":[]}
1
+ {"version":3,"names":["isOverlayVisible","options","Boolean","overlay","overlayShown","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/overlay/visibility.ts"],"mappings":";;;;;;AAKO,MAAMA,gBAAgB,GAAIC,OAA4B,IAAc;EAC1E,OAAOC,OAAO,CAACD,OAAO,EAAEE,OAAO,CAAC,IAAIF,OAAO,EAAEG,YAAY,KAAK,KAAK;AACpE,CAAC;AAACC,OAAA,CAAAL,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -9,7 +9,11 @@ import { resolveSnapTargetEntry } from "./resolve-snap-target";
9
9
  const getSortedSnapPoints = descriptor => {
10
10
  const snapPoints = descriptor.options?.snapPoints;
11
11
  if (!snapPoints || snapPoints.length === 0) return null;
12
- return [...snapPoints].sort((a, b) => a - b);
12
+
13
+ // Resolve 'auto' to the measured fraction stored in AnimationStore
14
+ const autoVal = AnimationStore.getAnimation(descriptor.route.key, "autoSnapPoint").value;
15
+ const resolved = snapPoints.map(p => p === "auto" ? autoVal : p).filter(p => typeof p === "number" && p > 0);
16
+ return resolved.length > 0 ? resolved.sort((a, b) => a - b) : null;
13
17
  };
14
18
  export function snapDescriptorToIndex(descriptor, index) {
15
19
  const sorted = getSortedSnapPoints(descriptor);
@@ -1 +1 @@
1
- {"version":3,"names":["runOnUI","DefaultSnapSpec","AnimationStore","animateToProgress","logger","resolveSnapTargetEntry","getSortedSnapPoints","descriptor","snapPoints","options","length","sort","a","b","snapDescriptorToIndex","index","sorted","warn","targetProgress","animations","getRouteAnimations","route","key","target","spec","open","transitionSpec","expand","close","collapse","snapTo","screenWithSnapPoints"],"sourceRoot":"../../../../src","sources":["shared/animation/snap-to.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yBAAyB;AACjD,SAASC,eAAe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B,UAAU,CAACE,OAAO,CAACiB,cAAc,EAAEG,QAAQ,IAAI5B;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;AACA,OAAO,SAAS6B,MAAMA,CAACf,KAAa,EAAQ;EAC3C,MAAMgB,oBAAoB,GAAG1B,sBAAsB,CAAC,CAAC;EAErD,IAAI,CAAC0B,oBAAoB,EAAE;IAC1B3B,MAAM,CAACa,IAAI,CAAC,+CAA+C,CAAC;IAC5D;EACD;EAEAH,qBAAqB,CAACiB,oBAAoB,CAACxB,UAAU,EAAEQ,KAAK,CAAC;AAC9D","ignoreList":[]}
1
+ {"version":3,"names":["runOnUI","DefaultSnapSpec","AnimationStore","animateToProgress","logger","resolveSnapTargetEntry","getSortedSnapPoints","descriptor","snapPoints","options","length","autoVal","getAnimation","route","key","value","resolved","map","p","filter","sort","a","b","snapDescriptorToIndex","index","sorted","warn","targetProgress","animations","getRouteAnimations","target","spec","open","transitionSpec","expand","close","collapse","snapTo","screenWithSnapPoints"],"sourceRoot":"../../../../src","sources":["shared/animation/snap-to.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yBAAyB;AACjD,SAASC,eAAe,QAAQ,kBAAkB;AAClD,SAASC,cAAc,QAAQ,2BAA2B;AAE1D,SAASC,iBAAiB,QAAQ,wCAAwC;AAC1E,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SAASC,sBAAsB,QAAQ,uBAAuB;AAE9D,MAAMC,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;;EAEvD;EACA,MAAMC,OAAO,GAAGT,cAAc,CAACU,YAAY,CAC1CL,U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AAc,EAAEG,QAAQ,IAAInC;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;AACA,OAAO,SAASoC,MAAMA,CAACb,KAAa,EAAQ;EAC3C,MAAMc,oBAAoB,GAAGjC,sBAAsB,CAAC,CAAC;EAErD,IAAI,CAACiC,oBAAoB,EAAE;IAC1BlC,MAAM,CAACsB,IAAI,CAAC,+CAA+C,CAAC;IAC5D;EACD;EAEAH,qBAAqB,CAACe,oBAAoB,CAAC/B,UAAU,EAAEiB,KAAK,CAAC;AAC9D","ignoreList":[]}
@@ -1,17 +1,12 @@
1
1
  "use strict";
2
2
 
3
- export function buildBoundaryMatchKey(paramsOrGroup, legacyId) {
3
+ export function buildBoundaryMatchKey(params) {
4
4
  "worklet";
5
5
 
6
- if (typeof paramsOrGroup === "object" && paramsOrGroup !== null) {
7
- const {
8
- group,
9
- id
10
- } = paramsOrGroup;
11
- return group ? `${group}:${id}` : String(id);
12
- }
13
- const group = paramsOrGroup;
14
- const id = legacyId;
6
+ const {
7
+ group,
8
+ id
9
+ } = params;
15
10
  return group ? `${group}:${id}` : String(id);
16
11
  }
17
12
  //# 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":";;AAcA,OAAO,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":";;AAUA,OAAO,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":[]}
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
 
3
- import { isFloatOverlayVisible } from "../../../utils/overlay/visibility";
3
+ import { isOverlayVisible } from "../../../utils/overlay/visibility";
4
4
 
5
5
  /**
6
6
  * Find the active float overlay from scenes.
7
7
  * Scans from the top of the stack downward to find the first screen
8
- * with a visible overlay that isn't explicitly set to legacy screen mode.
8
+ * with a visible overlay.
9
9
  */
10
10
  export function getActiveFloatOverlay(scenes, index, transitionsAlwaysOn) {
11
11
  if (scenes.length === 0) {
@@ -25,7 +25,7 @@ export function getActiveFloatOverlay(scenes, index, transitionsAlwaysOn) {
25
25
  if (!transitionsAlwaysOn && !options?.enableTransitions) {
26
26
  continue;
27
27
  }
28
- if (isFloatOverlayVisible(options)) {
28
+ if (isOverlayVisible(options)) {
29
29
  return {
30
30
  scene,
31
31
  overlayIndex: i
@@ -1 +1 @@
1
- {"version":3,"names":["isFloatOverlayVisible","getActiveFloatOverlay","scenes","index","transitionsAlwaysOn","length","startIndex","Math","max","i","scene","options","descriptor","enableTransitions","overlayIndex"],"sourceRoot":"../../../../../../src","sources":["shared/components/overlay/helpers/get-active-overlay.ts"],"mappings":";;AACA,SAASA,qBAAqB,QAAQ,mCAAmC;;AAEzE;AACA;AACA;AACA;AACA;AACA,OAAO,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,IAAIb,qBAAqB,CAACW,OAAO,CAAC,EAAE;MACnC,OAAO;QAAED,KAAK;QAAEI,YAAY,EAAEL;MAAE,CAAC;IAClC;EACD;EAEA,OAAO,IAAI;AACZ","ignoreList":[]}
1
+ {"version":3,"names":["isOverlayVisible","getActiveFloatOverlay","scenes","index","transitionsAlwaysOn","length","startIndex","Math","max","i","scene","options","descriptor","enableTransitions","overlayIndex"],"sourceRoot":"../../../../../../src","sources":["shared/components/overlay/helpers/get-active-overlay.ts"],"mappings":";;AACA,SAASA,gBAAgB,QAAQ,mCAAmC;;AAEpE;AACA;AACA;AACA;AACA;AACA,OAAO,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,IAAIb,gBAAgB,CAACW,OAAO,CAAC,EAAE;MAC9B,OAAO;QAAED,KAAK;QAAEI,YAAY,EAAEL;MAAE,CAAC;IAClC;EACD;EAEA,OAAO,IAAI;AACZ","ignoreList":[]}
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import { FloatOverlay } from "./variations/float-overlay";
4
- import { ScreenOverlay } from "./variations/screen-overlay";
5
4
  export const Overlay = {
6
- Float: FloatOverlay,
7
- Screen: ScreenOverlay
5
+ Float: FloatOverlay
8
6
  };
9
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FloatOverlay","ScreenOverlay","Overlay","Float","Screen"],"sourceRoot":"../../../../../src","sources":["shared/components/overlay/index.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,4BAA4B;AACzD,SAASC,aAAa,QAAQ,6BAA6B;AAE3D,OAAO,MAAMC,OAAO,GAAG;EACtBC,KAAK,EAAEH,YAAY;EACnBI,MAAM,EAAEH;AACT,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["FloatOverlay","Overlay","Float"],"sourceRoot":"../../../../../src","sources":["shared/components/overlay/index.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,4BAA4B;AAEzD,OAAO,MAAMC,OAAO,GAAG;EACtBC,KAAK,EAAEF;AACR,CAAC","ignoreList":[]}
@@ -2,9 +2,8 @@
2
2
 
3
3
  import { NavigationContext, NavigationRouteContext } from "@react-navigation/native";
4
4
  import { memo, useMemo } from "react";
5
- import { Animated, StyleSheet, useWindowDimensions, View } from "react-native";
5
+ import { Animated, StyleSheet, View } from "react-native";
6
6
  import { useDerivedValue } from "react-native-reanimated";
7
- import { useSafeAreaInsets } from "react-native-safe-area-context";
8
7
  import { useScreenAnimation } from "../../../providers/screen/animation";
9
8
  import { jsx as _jsx } from "react/jsx-runtime";
10
9
  export const OverlayHost = /*#__PURE__*/memo(function OverlayHost({
@@ -12,29 +11,16 @@ export const OverlayHost = /*#__PURE__*/memo(function OverlayHost({
12
11
  overlayScreenState
13
12
  }) {
14
13
  const OverlayComponent = scene.descriptor.options.overlay;
15
- const screen = useWindowDimensions();
16
- const insets = useSafeAreaInsets();
17
14
  const screenAnimation = useScreenAnimation();
18
15
  const relativeProgress = useDerivedValue(() => {
19
16
  "worklet";
20
17
 
21
18
  return screenAnimation.value.stackProgress;
22
19
  });
23
- const overlayAnimation = useDerivedValue(() => ({
24
- progress: relativeProgress.value,
25
- layouts: {
26
- screen
27
- },
28
- insets
29
- }));
30
20
  const overlayProps = useMemo(() => ({
31
21
  ...overlayScreenState,
32
- progress: relativeProgress,
33
- /**@deprecated */
34
- overlayAnimation,
35
- /**@deprecated */
36
- screenAnimation
37
- }), [relativeProgress, overlayAnimation, screenAnimation, overlayScreenState]);
22
+ progress: relativeProgress
23
+ }), [relativeProgress, overlayScreenState]);
38
24
  if (!OverlayComponent) {
39
25
  return null;
40
26
  }
@@ -1 +1 @@
1
- {"version":3,"names":["NavigationContext","NavigationRouteContext","memo","useMemo","Animated","StyleSheet","useWindowDimensions","View","useDerivedValue","useSafeAreaInsets","useScreenAnimation","jsx","_jsx","OverlayHost","scene","overlayScreenState","OverlayComponent","descriptor","options","overlay","screen","insets","screenAnimation","relativeProgress","value","stackProgress","overlayAnimation","progress","layouts","overlayProps","pointerEvents","style","styles","container","floating","absolute","children","Provider","navigation","route","create","absoluteFillObject","zIndex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,EAAE;IACtB,OAAO,IAAI;EACZ;EAEA,oBACCJ,IAAA,CAACR,QAAQ,CAACG,IAAI;IACbuB,aAAa,EAAC,UAAU;IACxBC,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAED,MAAM,CAACE,QAAQ,EAAEF,MAAM,CAACG,QAAQ,CAAE;IAAAC,QAAA,eAE5DxB,IAAA,CAACZ,iBAAiB,CAACqC,QAAQ;MAACb,KAAK,EAAEV,KAAK,CAACG,UAAU,CAACqB,UAAkB;MAAAF,QAAA,eACrExB,IAAA,CAACX,sBAAsB,CAACoC,QAAQ;QAACb,KAAK,EAAEV,KAAK,CAACyB,KAAM;QAAAH,QAAA,eACnDxB,IAAA,CAACL,IAAI;UAACuB,aAAa,EAAC,UAAU;UAACC,KAAK,EAAEC,MAAM,CAACb,OAAQ;UAAAiB,QAAA,eACpDxB,IAAA,CAACI,gBAAgB;YAAA,GAAKa;UAAY,CAAG;QAAC,CACjC;MAAC,CACyB;IAAC,CACP;EAAC,CACf,CAAC;AAElB,CAAC,CAAC;AAEF,MAAMG,MAAM,GAAG3B,UAAU,CAACmC,MAAM,CAAC;EAChCrB,OAAO,EAAE;IACR,GAAGd,UAAU,CAACoC,kBAAkB;IAChCC,MAAM,EAAE;EACT,CAAC;EACDT,SAAS,EAAE;IACVU,IAAI,EAAE;EACP,CAAC;EACDR,QAAQ,EAAE9B,UAAU,CAACoC,kBAAkB;EACvCP,QAAQ,EAAE;IACTQ,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["NavigationContext","NavigationRouteContext","memo","useMemo","Animated","StyleSheet","View","useDerivedValue","useScreenAnimation","jsx","_jsx","OverlayHost","scene","overlayScreenState","OverlayComponent","descriptor","options","overlay","screenAnimation","relativeProgress","value","stackProgress","overlayProps","progress","pointerEvents","style","styles","container","floating","absolute","children","Provider","navigation","route","create","absoluteFillObject","zIndex","flex"],"sourceRoot":"../../../../../../src","sources":["shared/components/overlay/variations/overl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IAAA,CAACJ,IAAI;UAACkB,aAAa,EAAC,UAAU;UAACC,KAAK,EAAEC,MAAM,CAACT,OAAQ;UAAAa,QAAA,eACpDpB,IAAA,CAACI,gBAAgB;YAAA,GAAKQ;UAAY,CAAG;QAAC,CACjC;MAAC,CACyB;IAAC,CACP;EAAC,CACf,CAAC;AAElB,CAAC,CAAC;AAEF,MAAMI,MAAM,GAAGrB,UAAU,CAAC6B,MAAM,CAAC;EAChCjB,OAAO,EAAE;IACR,GAAGZ,UAAU,CAAC8B,kBAAkB;IAChCC,MAAM,EAAE;EACT,CAAC;EACDT,SAAS,EAAE;IACVU,IAAI,EAAE;EACP,CAAC;EACDR,QAAQ,EAAExB,UAAU,CAAC8B,kBAAkB;EACvCP,QAAQ,EAAE;IACTQ,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
@@ -2,9 +2,7 @@
2
2
 
3
3
  import { NavigationContext, NavigationRouteContext } from "@react-navigation/native";
4
4
  import * as React from "react";
5
- import { isScreenOverlayVisible } from "../utils/overlay/visibility";
6
- import { Overlay } from "./overlay";
7
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
8
6
  /**
9
7
  * Shared scene view for managed stacks (blank-stack, component-stack).
10
8
  * Wraps screen render output with navigation context providers
@@ -20,9 +18,9 @@ export const SceneView = /*#__PURE__*/React.memo(function SceneView({
20
18
  } = descriptor;
21
19
  return /*#__PURE__*/_jsx(NavigationContext.Provider, {
22
20
  value: navigation,
23
- children: /*#__PURE__*/_jsxs(NavigationRouteContext.Provider, {
21
+ children: /*#__PURE__*/_jsx(NavigationRouteContext.Provider, {
24
22
  value: route,
25
- children: [isScreenOverlayVisible(descriptor.options) && /*#__PURE__*/_jsx(Overlay.Screen, {}), render?.()]
23
+ children: render?.()
26
24
  })
27
25
  });
28
26
  });
@@ -1 +1 @@
1
- {"version":3,"names":["NavigationContext","NavigationRouteContext","React","isScreenOverlayVisible","Overlay","jsx","_jsx","jsxs","_jsxs","SceneView","memo","descriptor","route","navigation","render","Provider","value","children","options","Screen"],"sourceRoot":"../../../../src","sources":["shared/components/scene-view.tsx"],"mappings":";;AAAA,SACCA,iBAAiB,EACjBC,sBAAsB,QAChB,0BAA0B;AACjC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAE9B,SAASC,sBAAsB,QAAQ,6BAA6B;AACpE,SAASC,OAAO,QAAQ,WAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAMpC;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,SAAS,gBAAGP,KAAK,CAACQ,IAAI,CAAC,SAASD,SAASA,CAAC;EACtDE;AACe,CAAC,EAAE;EAClB,MAAM;IAAEC,KAAK;IAAEC,UAAU;IAAEC;EAAO,CAAC,GAAGH,UAAU;EAEhD,oBACCL,IAAA,CAACN,iBAAiB,CAACe,QAAQ;IAACC,KAAK,EAAEH,UAAkB;IAAAI,QAAA,eACpDT,KAAA,CAACP,sBAAsB,CAACc,QAAQ;MAACC,KAAK,EAAEJ,KAAM;MAAAK,QAAA,GAC5Cd,sBAAsB,CAACQ,UAAU,CAACO,OAAO,CAAC,iBAAIZ,IAAA,CAACF,OAAO,CAACe,MAAM,IAAE,CAAC,EAChEL,MAAM,GAAG,CAAC;IAAA,CACqB;EAAC,CACP,CAAC;AAE/B,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["NavigationContext","NavigationRouteContext","React","jsx","_jsx","SceneView","memo","descriptor","route","navigation","render","Provider","value","children"],"sourceRoot":"../../../../src","sources":["shared/components/scene-view.tsx"],"mappings":";;AAAA,SACCA,iBAAiB,EACjBC,sBAAsB,QAChB,0BAA0B;AACjC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAO/B;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,SAAS,gBAAGH,KAAK,CAACI,IAAI,CAAC,SAASD,SAASA,CAAC;EACtDE;AACe,CAAC,EAAE;EAClB,MAAM;IAAEC,KAAK;IAAEC,UAAU;IAAEC;EAAO,CAAC,GAAGH,UAAU;EAEhD,oBACCH,IAAA,CAACJ,iBAAiB,CAACW,QAAQ;IAACC,KAAK,EAAEH,UAAkB;IAAAI,QAAA,eACpDT,IAAA,CAACH,sBAAsB,CAACU,QAAQ;MAACC,KAAK,EAAEJ,KAAM;MAAAK,QAAA,EAC5CH,MAAM,GAAG;IAAC,CACqB;EAAC,CACP,CAAC;AAE/B,CAAC,CAAC","ignoreList":[]}
@@ -29,6 +29,9 @@ export const BackdropLayer = /*#__PURE__*/memo(function BackdropLayer() {
29
29
  backdropBehavior
30
30
  } = useBackdropPointerEvents();
31
31
  const BackdropComponent = current.options.backdropComponent;
32
+ const routeKey = current.route.key;
33
+ const animations = AnimationStore.getRouteAnimations(routeKey);
34
+ const autoSnapPointValue = AnimationStore.getAnimation(routeKey, "autoSnapPoint");
32
35
  const AnimatedBackdropComponent = useMemo(() => BackdropComponent ? Animated.createAnimatedComponent(BackdropComponent) : null, [BackdropComponent]);
33
36
  const handleBackdropPress = useCallback(() => {
34
37
  if (backdropBehavior === "dismiss") {
@@ -36,24 +39,24 @@ export const BackdropLayer = /*#__PURE__*/memo(function BackdropLayer() {
36
39
  return;
37
40
  }
38
41
  if (backdropBehavior === "collapse") {
39
- const snapPoints = current.options.snapPoints;
42
+ const rawSnapPoints = current.options.snapPoints;
40
43
  const canDismiss = current.options.gestureEnabled !== false;
41
44
 
42
45
  // No snap points → fallback to dismiss
43
- if (!snapPoints || snapPoints.length === 0) {
46
+ if (!rawSnapPoints || rawSnapPoints.length === 0) {
44
47
  dismissScreen();
45
48
  return;
46
49
  }
47
- const animations = AnimationStore.getRouteAnimations(current.route.key);
48
- const gestures = GestureStore.getRouteGestures(current.route.key);
50
+ const gestures = GestureStore.getRouteGestures(routeKey);
49
51
  const transitionSpec = current.options.transitionSpec;
50
52
  runOnUI(() => {
51
53
  "worklet";
52
54
 
55
+ const resolvedSnaps = rawSnapPoints.map(point => point === "auto" ? autoSnapPointValue.value : point).filter(point => typeof point === "number");
53
56
  const {
54
57
  target,
55
58
  shouldDismiss
56
- } = findCollapseTarget(animations.progress.value, snapPoints, canDismiss);
59
+ } = findCollapseTarget(animations.progress.value, resolvedSnaps, canDismiss);
57
60
 
58
61
  // If already dismissing, skip
59
62
  if (gestures.dismissing.value) return;
@@ -70,7 +73,7 @@ export const BackdropLayer = /*#__PURE__*/memo(function BackdropLayer() {
70
73
  });
71
74
  })();
72
75
  }
73
- }, [backdropBehavior, current, dismissScreen]);
76
+ }, [animations, autoSnapPointValue, backdropBehavior, current, dismissScreen, routeKey]);
74
77
  const animatedBackdropStyle = useAnimatedStyle(() => {
75
78
  "worklet";
76
79
 
@@ -1 +1 @@
1
- {"version":3,"names":["memo","useCallback","useMemo","Pressable","StyleSheet","Animated","runOnUI","useAnimatedProps","useAnimatedStyle","DefaultSnapSpec","NO_PROPS","NO_STYLES","useNavigationHelpers","useDescriptors","useScreenStyles","AnimationStore","GestureStore","animateToProgress","findCollapseTarget","useBackdropPointerEvents","jsx","_jsx","jsxs","_jsxs","BackdropLayer","stylesMap","current","dismissScreen","isBackdropActive","backdropBehavior","BackdropComponent","options","backdropComponent","AnimatedBackdropComponent","createAnimatedComponent","handleBackdropPress","snapPoints","canDismiss","gestureEnabled","length","animations","getRouteAnimations","route","key","gestures","getRouteGestures","transitionSpec","target","shouldDismiss","progress","value","dismissing","spec","open","expand","close","collapse","onAnimationFinish","undefined","animatedBackdropStyle","backdrop","style","animatedBackdropProps","props","absoluteFillObject","pointerEvents","onPress","children","animatedProps","View"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/backdrop.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAClD,SAASC,SAAS,EAAEC,UAAU,QAAQ,cAAc;AACpD,OAAOC,QAAQ,IACdC,OAAO,EACPC,gBAAg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Q,EAAEC,KAAK,IAAIlD,SAAS;EACpD,CAAC,CAAC;EAEF,MAAMmD,qBAAqB,GAAGvD,gBAAgB,CAAC,MAAM;IACpD,SAAS;;IACT,OAAOkB,SAAS,CAACyB,KAAK,CAACU,QAAQ,EAAEG,KAAK,IAAIrD,QAAQ;EACnD,CAAC,CAAC;EAEF,oBACCa,KAAA,CAACpB,SAAS;IACT0D,KAAK,EAAEzD,UAAU,CAAC4D,kBAAmB;IACrCC,aAAa,EAAErC,gBAAgB,GAAG,MAAM,GAAG,MAAO;IAClDsC,OAAO,EAAEtC,gBAAgB,GAAGO,mBAAmB,GAAGuB,SAAU;IAAAS,QAAA,GAE3DlC,yBAAyB,iBACzBZ,IAAA,CAACY,yBAAyB;MACzB4B,KAAK,EAAE,CAACzD,UAAU,CAAC4D,kBAAkB,CAAE;MACvCI,aAAa,EAAEN;IAAsB,CACrC,CACD,eACDzC,IAAA,CAAChB,QAAQ,CAACgE,IAAI;MACbR,KAAK,EAAE,CAACzD,UAAU,CAAC4D,kBAAkB,EAAEL,qBAAqB;IAAE,CAC9D,CAAC;EAAA,CACQ,CAAC;AAEd,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["memo","useCallback","useMemo","Pressable","StyleSheet","Animated","runOnUI","useAnimatedProps","useAnimatedStyle","DefaultSnapSpec","NO_PROPS","NO_STYLES","useNavigationHelpers","useDescriptors","useScreenStyles","AnimationStore","GestureStore","animateToProgress","findCollapseTarget","useBackdropPointerEvents","jsx","_jsx","jsxs","_jsxs","BackdropLayer","stylesMap","current","dismissScreen","isBackdropActive","backdropBehavior","BackdropComponent","options","backdropComponent","routeKey","route","key","animations","getRouteAnimations","autoSnapPointValue","getAnimation","AnimatedBackdropComponent","createAnimatedComponent","handleBackdropPress","rawSnapPoints","snapPoints","canDismiss","gestureEnabled","length","gestures","getRouteGestures","transitionSpec","resolvedSnaps","map","point","value","filter","target","shouldDismiss","progress","dismissing","spec","open","expand","close","collapse","onAnimationFinish","undefined","animatedBackdropStyle","backdrop","style","animatedBackdropProps","props","absoluteFillObject","pointerEvents","onPress","children","animatedProps","View"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/backdrop.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAClD,SAASC,SAAS,EAAEC,UAAU,QAAQ,cAAc;AACpD,OAAOC,QAAQ,IACdC,OAAO,EACPC,gBAAgB,EAChBC,gBAAgB,QACV,yBAAyB;AAChC,SAASC,eAAe,QAAQ,wBAAwB;AACxD,SAASC,QAAQ,EAAEC,SAAS,QAAQ,oBAAoB;AACxD,SAASC,oBAAoB,QAAQ,kDAAkD;AACvF,SAASC,cAAc,QAAQ,uCAAuC;AACtE,SAASC,eAAe,QAAQ,2CAA2C;AAC3E,SAASC,cAAc,QAAQ,iCAAiC;AAChE,SAASC,YAAY,QAAQ,+BAA+B;AAC5D,SAASC,iBAAiB,QAAQ,8CAA8C;AAChF,SAASC,kBAAkB,QAAQ,6CAA6C;AAChF,SAASC,wBAAwB,QAAQ,sCAAsC;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhF,OAAO,MAAMC,aAAa,gBAAGxB,IAAI,CAAC,SAASwB,aAAaA,CAAA,EAAG;EAC1D,MAAM;IAAEC;EAAU,CAAC,GAAGX,eAAe,CAAC,CAAC;EACvC,MAAM;IAAEY;EAAQ,CAAC,GAAGb,cAAc,CAAC,CAAC;EACpC,MAAM;IAAEc;EAAc,CAAC,GAAGf,oBAAoB,CAAC,CAAC;EAChD,MAAM;IAAEgB,gBAAgB;IAAEC;EAAiB,CAAC,GAAGV,wBAAwB,CAAC,CAAC;EAEzE,MAAMW,iBAAiB,GAAGJ,OAAO,CAACK,OAAO,CAACC,iBAAiB;EAC3D,MAAMC,QAAQ,GAAGP,OAAO,CAACQ,KAAK,CAACC,GAAG;EAClC,MAAMC,UAAU,GAAGrB,cAAc,CAACsB,kBAAkB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UAAU,CAACoE,kBAAkB,EAAEL,qBAAqB;IAAE,CAC9D,CAAC;EAAA,CACQ,CAAC;AAEd,CAAC,CAAC","ignoreList":[]}
@@ -1,25 +1,20 @@
1
1
  "use strict";
2
2
 
3
3
  /** biome-ignore-all lint/style/noNonNullAssertion: <Screen gesture is under the gesture context, so this will always exist.> */
4
- import { memo, useEffect } from "react";
5
- import { StyleSheet, View } from "react-native";
4
+ import { memo, useCallback } from "react";
5
+ import { StyleSheet, useWindowDimensions, View } from "react-native";
6
6
  import { GestureDetector } from "react-native-gesture-handler";
7
- import Animated, { useAnimatedProps, useAnimatedStyle } from "react-native-reanimated";
8
- import { NAVIGATION_CONTAINER_STYLE_ID, NAVIGATION_MASK_STYLE_ID, NO_PROPS, NO_STYLES } from "../../../constants";
7
+ import Animated, { runOnUI, useAnimatedProps, useAnimatedStyle } from "react-native-reanimated";
8
+ import { NO_PROPS, NO_STYLES } from "../../../constants";
9
9
  import { useGestureContext } from "../../../providers/gestures";
10
- import { useDescriptors } from "../../../providers/screen/descriptors";
10
+ import { useDescriptorDerivations, useDescriptors } from "../../../providers/screen/descriptors";
11
11
  import { useScreenStyles } from "../../../providers/screen/styles.provider";
12
- import { logger } from "../../../utils/logger";
12
+ import { AnimationStore } from "../../../stores/animation.store";
13
+ import { animateToProgress } from "../../../utils/animation/animate-to-progress";
13
14
  import { useBackdropPointerEvents } from "../hooks/use-backdrop-pointer-events";
15
+ import { MaybeMaskedNavigationContainer } from "./maybe-masked-navigation-container";
14
16
  import { SurfaceContainer } from "./surface-container";
15
17
  import { jsx as _jsx } from "react/jsx-runtime";
16
- let LazyMaskedView = View;
17
- try {
18
- LazyMaskedView = require("@react-native-masked-view/masked-view").default;
19
- } catch (_) {
20
- // optional peer dependency
21
- }
22
- let hasWarnedMissingMaskedView = false;
23
18
  export const ContentLayer = /*#__PURE__*/memo(({
24
19
  children
25
20
  }) => {
@@ -29,15 +24,23 @@ export const ContentLayer = /*#__PURE__*/memo(({
29
24
  const {
30
25
  current
31
26
  } = useDescriptors();
27
+ const {
28
+ isFirstKey
29
+ } = useDescriptorDerivations();
32
30
  const {
33
31
  pointerEvents,
34
32
  isBackdropActive
35
33
  } = useBackdropPointerEvents();
36
34
  const gestureContext = useGestureContext();
35
+ const {
36
+ height: screenHeight
37
+ } = useWindowDimensions();
37
38
  const isNavigationMaskEnabled = !!current.options.maskEnabled;
38
39
  const contentPointerEvents = isBackdropActive ? "box-none" : pointerEvents;
39
-
40
- // ── Content ──
40
+ const routeKey = current.route.key;
41
+ const animations = AnimationStore.getRouteAnimations(routeKey);
42
+ const autoSnapPointValue = AnimationStore.getAnimation(routeKey, "autoSnapPoint");
43
+ const hasAutoSnapPoint = current.options.snapPoints?.includes("auto") ?? false;
41
44
  const animatedContentStyle = useAnimatedStyle(() => {
42
45
  "worklet";
43
46
 
@@ -48,49 +51,47 @@ export const ContentLayer = /*#__PURE__*/memo(({
48
51
 
49
52
  return stylesMap.value.content?.props ?? NO_PROPS;
50
53
  });
54
+ const handleContentLayout = useCallback(event => {
55
+ const contentHeight = event.nativeEvent.layout.height;
56
+ if (contentHeight <= 0) return;
57
+ const fraction = Math.min(contentHeight / screenHeight, 1);
58
+ const transitionSpec = current.options.transitionSpec;
59
+ runOnUI((nextFraction, isInitialScreen, spec) => {
60
+ "worklet";
51
61
 
52
- // ── Navigation mask / container ──
53
- const animatedNavigationContainerStyle = useAnimatedStyle(() => {
54
- "worklet";
55
-
56
- return stylesMap.value[NAVIGATION_CONTAINER_STYLE_ID]?.style || NO_STYLES;
57
- });
58
- const animatedNavigationMaskStyle = useAnimatedStyle(() => {
59
- "worklet";
60
-
61
- return stylesMap.value[NAVIGATION_MASK_STYLE_ID]?.style || NO_STYLES;
62
- });
63
- useEffect(() => {
64
- if (!isNavigationMaskEnabled) return;
65
- if (LazyMaskedView !== View) return;
66
- if (hasWarnedMissingMaskedView) return;
67
- hasWarnedMissingMaskedView = true;
68
- logger.warn("maskEnabled requires @react-native-masked-view/masked-view. Install it to enable navigation bounds masking.");
69
- }, [isNavigationMaskEnabled]);
70
- const contentChildren = isNavigationMaskEnabled ? LazyMaskedView !== View ? /*#__PURE__*/_jsx(LazyMaskedView, {
71
- style: styles.navigationMaskedRoot
72
- // @ts-expect-error masked-view package types are too strict here
73
- ,
74
- maskElement: /*#__PURE__*/_jsx(Animated.View, {
75
- style: [styles.navigationMaskElement, animatedNavigationMaskStyle]
76
- }),
77
- children: /*#__PURE__*/_jsx(Animated.View, {
78
- style: [styles.navigationContainer, animatedNavigationContainerStyle],
79
- children: children
80
- })
81
- }) : /*#__PURE__*/_jsx(Animated.View, {
82
- style: [styles.navigationContainer, animatedNavigationContainerStyle],
83
- children: children
84
- }) : children;
62
+ const isFirstMeasurement = autoSnapPointValue.value <= 0;
63
+ autoSnapPointValue.value = nextFraction;
64
+ if (!isFirstMeasurement || animations.progress.value !== 0 || animations.animating.value !== 0) {
65
+ return;
66
+ }
67
+ if (isInitialScreen) {
68
+ animations.targetProgress.value = nextFraction;
69
+ animations.progress.value = nextFraction;
70
+ return;
71
+ }
72
+ animateToProgress({
73
+ target: nextFraction,
74
+ spec,
75
+ animations
76
+ });
77
+ })(fraction, isFirstKey, transitionSpec);
78
+ }, [animations, autoSnapPointValue, current.options.transitionSpec, isFirstKey, screenHeight]);
85
79
  return /*#__PURE__*/_jsx(GestureDetector, {
86
80
  gesture: gestureContext.panGesture,
87
81
  children: /*#__PURE__*/_jsx(Animated.View, {
88
82
  style: [styles.content, animatedContentStyle],
89
83
  animatedProps: animatedContentProps,
90
84
  pointerEvents: contentPointerEvents,
91
- children: /*#__PURE__*/_jsx(SurfaceContainer, {
92
- pointerEvents: contentPointerEvents,
93
- children: contentChildren
85
+ children: /*#__PURE__*/_jsx(MaybeMaskedNavigationContainer, {
86
+ enabled: isNavigationMaskEnabled,
87
+ children: /*#__PURE__*/_jsx(SurfaceContainer, {
88
+ pointerEvents: contentPointerEvents,
89
+ children: hasAutoSnapPoint ? /*#__PURE__*/_jsx(View, {
90
+ collapsable: false,
91
+ onLayout: handleContentLayout,
92
+ children: children
93
+ }) : children
94
+ })
94
95
  })
95
96
  })
96
97
  });
@@ -98,15 +99,6 @@ export const ContentLayer = /*#__PURE__*/memo(({
98
99
  const styles = StyleSheet.create({
99
100
  content: {
100
101
  flex: 1
101
- },
102
- navigationMaskedRoot: {
103
- flex: 1
104
- },
105
- navigationMaskElement: {
106
- backgroundColor: "white"
107
- },
108
- navigationContainer: {
109
- flex: 1
110
102
  }
111
103
  });
112
104
  //# sourceMappingURL=content.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["memo","useEffect","StyleSheet","View","GestureDetector","Animated","useAnimatedProps","useAnimatedStyle","NAVIGATION_CONTAINER_STYLE_ID","NAVIGATION_MASK_STYLE_ID","NO_PROPS","NO_STYLES","useGestureContext","useDescriptors","useScreenStyles","logger","useBackdropPointerEvents","SurfaceContainer","jsx","_jsx","LazyMaskedView","require","default","_","hasWarnedMissingMaskedView","ContentLayer","children","stylesMap","current","pointerEvents","isBackdropActive","gestureContext","isNavigationMaskEnabled","options","maskEnabled","contentPointerEvents","animatedContentStyle","value","content","style","animatedContentProps","props","animatedNavigationContainerStyle","animatedNavigationMaskStyle","warn","contentChildren","styles","navigationMaskedRoot","maskElement","navigationMaskElement","navigationContainer","gesture","panGesture","animatedProps","create","flex","backgroundColor"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/content.tsx"],"mappings":";;AAAA;AACA,SAASA,IAAI,EAAEC,SAAS,QAAQ,OAAO;AACvC,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,eAAe,QAAQ,8BAA8B;AAC9D,OAAOC,QAAQ,IACdC,gBAAgB,EAChBC,gBAAgB,QACV,yBAAyB;AAChC,SACCC,6BAA6B,EAC7BC,wBAAwB,EACxBC,QAAQ,EACRC,SAAS,QACH,oBAAoB;AAC3B,SAASC,iBAAiB,QAAQ,6BAA6B;AAC/D,SAASC,cAAc,QAAQ,uCAAuC;AACtE,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AM,CAACR,OAAO,EAAEF,oBAAoB,CAAE;MAC9CiB,aAAa,EAAEb,oBAAqB;MACpCX,aAAa,EAAEM,oBAAqB;MAAAT,QAAA,eAEpCP,IAAA,CAACF,gBAAgB;QAACY,aAAa,EAAEM,oBAAqB;QAAAT,QAAA,EACpDmB;MAAe,CACC;IAAC,CACL;EAAC,CACA,CAAC;AAEpB,CAAC,CAAC;AAEF,MAAMC,MAAM,GAAG5C,UAAU,CAACoD,MAAM,CAAC;EAChChB,OAAO,EAAE;IACRiB,IAAI,EAAE;EACP,CAAC;EACDR,oBAAoB,EAAE;IACrBQ,IAAI,EAAE;EACP,CAAC;EACDN,qBAAqB,EAAE;IACtBO,eAAe,EAAE;EAClB,CAAC;EACDN,mBAAmB,EAAE;IACpBK,IAAI,EAAE;EACP;AACD,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["memo","useCallback","StyleSheet","useWindowDimensions","View","GestureDetector","Animated","runOnUI","useAnimatedProps","useAnimatedStyle","NO_PROPS","NO_STYLES","useGestureContext","useDescriptorDerivations","useDescriptors","useScreenStyles","AnimationStore","animateToProgress","useBackdropPointerEvents","MaybeMaskedNavigationContainer","SurfaceContainer","jsx","_jsx","ContentLayer","children","stylesMap","current","isFirstKey","pointerEvents","isBackdropActive","gestureContext","height","screenHeight","isNavigationMaskEnabled","options","maskEnabled","contentPointerEvents","routeKey","route","key","animations","getRouteAnimations","autoSnapPointValue","getAnimation","hasAutoSnapPoint","snapPoints","includes","animatedContentStyle","value","content","style","animatedContentProps","props","handleContentLayout","event","contentHeight","nativeEvent","layout","fraction","Math","min","transitionSpec","nextFraction","isInitialScreen","spec","isFirstMeasurement","progress","animating","targetProgress","target","gesture","panGesture","styles","animatedProps","enabled","collapsable","onLayout","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/content.tsx"],"mappings":";;AAAA;AACA,SAASA,IAAI,EAAEC,WAAW,QAAQ,OAAO;AACzC,SAECC,UAAU,EACVC,mBAAm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