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

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 (535) hide show
  1. package/README.md +11 -1046
  2. package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js +69 -2
  3. package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
  4. package/lib/commonjs/component-stack/navigators/create-component-stack-navigator.js +9 -0
  5. package/lib/commonjs/component-stack/navigators/create-component-stack-navigator.js.map +1 -1
  6. package/lib/commonjs/shared/animation/snap-to.js +5 -1
  7. package/lib/commonjs/shared/animation/snap-to.js.map +1 -1
  8. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +195 -0
  9. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -0
  10. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -14
  11. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
  12. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +19 -18
  13. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
  14. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +54 -0
  15. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +1 -0
  16. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +40 -8
  17. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -1
  18. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +72 -0
  19. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +1 -0
  20. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +16 -7
  21. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -1
  22. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +7 -4
  23. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  24. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +14 -15
  25. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -1
  26. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +27 -9
  27. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -1
  28. package/lib/commonjs/shared/components/create-boundary-component/index.js +22 -8
  29. package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
  30. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js +5 -10
  31. package/lib/commonjs/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
  32. package/lib/commonjs/shared/components/create-transition-aware-component.js +3 -2
  33. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  34. package/lib/commonjs/shared/components/native-screen-container.js +12 -6
  35. package/lib/commonjs/shared/components/native-screen-container.js.map +1 -1
  36. package/lib/commonjs/shared/components/native-screen.js +35 -8
  37. package/lib/commonjs/shared/components/native-screen.js.map +1 -1
  38. package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js +2 -2
  39. package/lib/commonjs/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
  40. package/lib/commonjs/shared/components/overlay/index.js +1 -3
  41. package/lib/commonjs/shared/components/overlay/index.js.map +1 -1
  42. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +2 -16
  43. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
  44. package/lib/commonjs/shared/components/scene-view.js +2 -4
  45. package/lib/commonjs/shared/components/scene-view.js.map +1 -1
  46. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +60 -0
  47. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -0
  48. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +9 -6
  49. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
  50. package/lib/commonjs/shared/components/screen-container/layers/content.js +16 -56
  51. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
  52. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +86 -0
  53. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -0
  54. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -1
  55. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js +17 -4
  56. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -1
  57. package/lib/commonjs/shared/constants.js +6 -2
  58. package/lib/commonjs/shared/constants.js.map +1 -1
  59. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js +49 -0
  60. package/lib/commonjs/shared/hooks/gestures/resolve-screen-gesture-target.js.map +1 -0
  61. package/lib/commonjs/shared/hooks/gestures/types.js +2 -0
  62. package/lib/commonjs/shared/hooks/gestures/types.js.map +1 -0
  63. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js +7 -3
  64. package/lib/commonjs/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
  65. package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
  66. package/lib/commonjs/shared/index.js +15 -3
  67. package/lib/commonjs/shared/index.js.map +1 -1
  68. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +61 -25
  69. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
  70. package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js +11 -6
  71. package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +1 -1
  72. package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js +44 -0
  73. package/lib/commonjs/shared/providers/gestures/helpers/gesture-snap-points.js.map +1 -0
  74. package/lib/commonjs/shared/providers/layout-anchor.provider.js +4 -6
  75. package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +1 -1
  76. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +31 -17
  77. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
  78. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +1 -9
  79. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  80. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +25 -13
  81. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  82. package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +33 -0
  83. package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -0
  84. package/lib/commonjs/shared/providers/screen/animation/types.js +2 -0
  85. package/lib/commonjs/shared/providers/screen/animation/types.js.map +1 -0
  86. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +9 -3
  87. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  88. package/lib/commonjs/shared/providers/stack/core.provider.js +14 -21
  89. package/lib/commonjs/shared/providers/stack/core.provider.js.map +1 -1
  90. package/lib/commonjs/shared/providers/stack/direct.provider.js +1 -1
  91. package/lib/commonjs/shared/providers/stack/direct.provider.js.map +1 -1
  92. package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js +1 -1
  93. package/lib/commonjs/shared/providers/stack/helpers/use-processed-routes.js.map +1 -1
  94. package/lib/commonjs/shared/stores/animation.store.js +10 -2
  95. package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
  96. package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -1
  97. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +7 -0
  98. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  99. package/lib/commonjs/shared/utils/animation/animate-to-progress.js +6 -0
  100. package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
  101. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +33 -9
  102. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
  103. package/lib/commonjs/shared/utils/bounds/helpers/geometry.js +3 -2
  104. package/lib/commonjs/shared/utils/bounds/helpers/geometry.js.map +1 -1
  105. package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js +3 -2
  106. package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +1 -1
  107. package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js +2 -2
  108. package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +1 -1
  109. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js +4 -8
  110. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
  111. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js +4 -3
  112. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -1
  113. package/lib/commonjs/shared/utils/bounds/index.js +13 -3
  114. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  115. package/lib/commonjs/shared/utils/bounds/types/frame-props.js +6 -0
  116. package/lib/commonjs/shared/utils/bounds/types/frame-props.js.map +1 -0
  117. package/lib/commonjs/shared/utils/bounds/zoom/accessor.js +54 -0
  118. package/lib/commonjs/shared/utils/bounds/zoom/accessor.js.map +1 -0
  119. package/lib/commonjs/shared/utils/bounds/zoom/build.js +548 -0
  120. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -0
  121. package/lib/commonjs/shared/utils/bounds/zoom/config.js +118 -0
  122. package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -0
  123. package/lib/commonjs/shared/utils/bounds/zoom/index.js +20 -0
  124. package/lib/commonjs/shared/utils/bounds/zoom/index.js.map +1 -0
  125. package/lib/commonjs/shared/utils/bounds/zoom/types.js.map +1 -0
  126. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js +11 -5
  127. package/lib/commonjs/shared/utils/gesture/validate-snap-points.js.map +1 -1
  128. package/lib/commonjs/shared/utils/overlay/visibility.js +2 -9
  129. package/lib/commonjs/shared/utils/overlay/visibility.js.map +1 -1
  130. package/lib/commonjs/shared/utils/resolve-screen-transition-options.js +25 -0
  131. package/lib/commonjs/shared/utils/resolve-screen-transition-options.js.map +1 -0
  132. package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js +69 -3
  133. package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
  134. package/lib/module/component-stack/navigators/create-component-stack-navigator.js +9 -0
  135. package/lib/module/component-stack/navigators/create-component-stack-navigator.js.map +1 -1
  136. package/lib/module/shared/animation/snap-to.js +5 -1
  137. package/lib/module/shared/animation/snap-to.js.map +1 -1
  138. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +182 -0
  139. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -0
  140. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -14
  141. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
  142. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +19 -18
  143. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
  144. package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +49 -0
  145. package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +1 -0
  146. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +41 -8
  147. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -1
  148. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +67 -0
  149. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +1 -0
  150. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +16 -7
  151. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -1
  152. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +7 -4
  153. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  154. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +14 -15
  155. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -1
  156. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +27 -9
  157. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -1
  158. package/lib/module/shared/components/create-boundary-component/index.js +22 -8
  159. package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
  160. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js +5 -10
  161. package/lib/module/shared/components/create-boundary-component/utils/build-boundary-match-key.js.map +1 -1
  162. package/lib/module/shared/components/create-transition-aware-component.js +3 -2
  163. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  164. package/lib/module/shared/components/native-screen-container.js +12 -6
  165. package/lib/module/shared/components/native-screen-container.js.map +1 -1
  166. package/lib/module/shared/components/native-screen.js +35 -8
  167. package/lib/module/shared/components/native-screen.js.map +1 -1
  168. package/lib/module/shared/components/overlay/helpers/get-active-overlay.js +3 -3
  169. package/lib/module/shared/components/overlay/helpers/get-active-overlay.js.map +1 -1
  170. package/lib/module/shared/components/overlay/index.js +1 -3
  171. package/lib/module/shared/components/overlay/index.js.map +1 -1
  172. package/lib/module/shared/components/overlay/variations/overlay-host.js +3 -17
  173. package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
  174. package/lib/module/shared/components/scene-view.js +3 -5
  175. package/lib/module/shared/components/scene-view.js.map +1 -1
  176. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +56 -0
  177. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -0
  178. package/lib/module/shared/components/screen-container/layers/backdrop.js +9 -6
  179. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  180. package/lib/module/shared/components/screen-container/layers/content.js +18 -58
  181. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  182. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +81 -0
  183. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -0
  184. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +1 -1
  185. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js +17 -4
  186. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +1 -1
  187. package/lib/module/shared/constants.js +6 -2
  188. package/lib/module/shared/constants.js.map +1 -1
  189. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js +45 -0
  190. package/lib/module/shared/hooks/gestures/resolve-screen-gesture-target.js.map +1 -0
  191. package/lib/module/shared/hooks/gestures/types.js +2 -0
  192. package/lib/module/shared/hooks/gestures/types.js.map +1 -0
  193. package/lib/module/shared/hooks/gestures/use-screen-gesture.js +7 -4
  194. package/lib/module/shared/hooks/gestures/use-screen-gesture.js.map +1 -1
  195. package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
  196. package/lib/module/shared/index.js +1 -2
  197. package/lib/module/shared/index.js.map +1 -1
  198. package/lib/module/shared/providers/gestures/handlers/use-handlers.js +61 -25
  199. package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
  200. package/lib/module/shared/providers/gestures/helpers/gesture-activation.js +11 -6
  201. package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +1 -1
  202. package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js +38 -0
  203. package/lib/module/shared/providers/gestures/helpers/gesture-snap-points.js.map +1 -0
  204. package/lib/module/shared/providers/layout-anchor.provider.js +4 -6
  205. package/lib/module/shared/providers/layout-anchor.provider.js.map +1 -1
  206. package/lib/module/shared/providers/screen/animation/animation.provider.js +30 -15
  207. package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
  208. package/lib/module/shared/providers/screen/animation/helpers/derivations.js +1 -9
  209. package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  210. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +25 -13
  211. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  212. package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js +29 -0
  213. package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -0
  214. package/lib/module/shared/providers/screen/animation/index.js.map +1 -1
  215. package/lib/module/shared/providers/screen/animation/types.js +2 -0
  216. package/lib/module/shared/providers/screen/animation/types.js.map +1 -0
  217. package/lib/module/shared/providers/screen/animation/use-screen-animation.js +9 -3
  218. package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  219. package/lib/module/shared/providers/stack/core.provider.js +14 -21
  220. package/lib/module/shared/providers/stack/core.provider.js.map +1 -1
  221. package/lib/module/shared/providers/stack/direct.provider.js +2 -2
  222. package/lib/module/shared/providers/stack/direct.provider.js.map +1 -1
  223. package/lib/module/shared/providers/stack/helpers/use-processed-routes.js +2 -2
  224. package/lib/module/shared/providers/stack/helpers/use-processed-routes.js.map +1 -1
  225. package/lib/module/shared/stores/animation.store.js +10 -2
  226. package/lib/module/shared/stores/animation.store.js.map +1 -1
  227. package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -1
  228. package/lib/module/shared/stores/bounds/internals/resolver.js +7 -0
  229. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  230. package/lib/module/shared/utils/animation/animate-to-progress.js +6 -0
  231. package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
  232. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +33 -9
  233. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
  234. package/lib/module/shared/utils/bounds/helpers/geometry.js +3 -2
  235. package/lib/module/shared/utils/bounds/helpers/geometry.js.map +1 -1
  236. package/lib/module/shared/utils/bounds/helpers/interpolators.js +3 -2
  237. package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +1 -1
  238. package/lib/module/shared/utils/bounds/helpers/link-accessor.js +2 -2
  239. package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +1 -1
  240. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js +4 -8
  241. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
  242. package/lib/module/shared/utils/bounds/helpers/style-composers.js +4 -3
  243. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -1
  244. package/lib/module/shared/utils/bounds/index.js +13 -3
  245. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  246. package/lib/module/shared/utils/bounds/types/frame-props.js +4 -0
  247. package/lib/module/shared/utils/bounds/types/frame-props.js.map +1 -0
  248. package/lib/module/shared/utils/bounds/zoom/accessor.js +49 -0
  249. package/lib/module/shared/utils/bounds/zoom/accessor.js.map +1 -0
  250. package/lib/module/shared/utils/bounds/zoom/build.js +543 -0
  251. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -0
  252. package/lib/module/shared/utils/bounds/zoom/config.js +112 -0
  253. package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -0
  254. package/lib/module/shared/utils/bounds/zoom/index.js +5 -0
  255. package/lib/module/shared/utils/bounds/zoom/index.js.map +1 -0
  256. package/lib/module/shared/utils/bounds/zoom/types.js.map +1 -0
  257. package/lib/module/shared/utils/gesture/validate-snap-points.js +11 -5
  258. package/lib/module/shared/utils/gesture/validate-snap-points.js.map +1 -1
  259. package/lib/module/shared/utils/overlay/visibility.js +1 -7
  260. package/lib/module/shared/utils/overlay/visibility.js.map +1 -1
  261. package/lib/module/shared/utils/resolve-screen-transition-options.js +19 -0
  262. package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -0
  263. package/lib/typescript/blank-stack/index.d.ts +1 -1
  264. package/lib/typescript/blank-stack/index.d.ts.map +1 -1
  265. package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts +29 -4
  266. package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
  267. package/lib/typescript/blank-stack/types.d.ts +33 -4
  268. package/lib/typescript/blank-stack/types.d.ts.map +1 -1
  269. package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts +8 -0
  270. package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts.map +1 -1
  271. package/lib/typescript/shared/animation/snap-to.d.ts.map +1 -1
  272. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +81 -0
  273. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -0
  274. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -1
  275. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +2 -3
  276. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -1
  277. package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts +11 -0
  278. package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts.map +1 -0
  279. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +2 -2
  280. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +1 -1
  281. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts +11 -0
  282. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts.map +1 -0
  283. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +1 -1
  284. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -1
  285. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +3 -3
  286. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +1 -1
  287. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +2 -2
  288. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +1 -1
  289. package/lib/typescript/shared/components/create-boundary-component/index.d.ts +5 -3
  290. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
  291. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +2 -4
  292. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
  293. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts +0 -1
  294. package/lib/typescript/shared/components/create-boundary-component/utils/build-boundary-match-key.d.ts.map +1 -1
  295. package/lib/typescript/shared/components/create-transition-aware-component.d.ts +1 -0
  296. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  297. package/lib/typescript/shared/components/native-screen-container.d.ts.map +1 -1
  298. package/lib/typescript/shared/components/native-screen.d.ts.map +1 -1
  299. package/lib/typescript/shared/components/overlay/helpers/get-active-overlay.d.ts +1 -1
  300. package/lib/typescript/shared/components/overlay/index.d.ts +0 -2
  301. package/lib/typescript/shared/components/overlay/index.d.ts.map +1 -1
  302. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
  303. package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
  304. package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts +3 -0
  305. package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -0
  306. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  307. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
  308. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts +9 -0
  309. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -0
  310. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +1 -1
  311. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +1 -1
  312. package/lib/typescript/shared/constants.d.ts +3 -0
  313. package/lib/typescript/shared/constants.d.ts.map +1 -1
  314. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts +10 -0
  315. package/lib/typescript/shared/hooks/gestures/resolve-screen-gesture-target.d.ts.map +1 -0
  316. package/lib/typescript/shared/hooks/gestures/types.d.ts +4 -0
  317. package/lib/typescript/shared/hooks/gestures/types.d.ts.map +1 -0
  318. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts +4 -2
  319. package/lib/typescript/shared/hooks/gestures/use-screen-gesture.d.ts.map +1 -1
  320. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +1 -2
  321. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
  322. package/lib/typescript/shared/index.d.ts +16 -18
  323. package/lib/typescript/shared/index.d.ts.map +1 -1
  324. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts +1 -1
  325. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
  326. package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +1 -1
  327. package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts +18 -0
  328. package/lib/typescript/shared/providers/gestures/helpers/gesture-snap-points.d.ts.map +1 -0
  329. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +1 -1
  330. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +1 -1
  331. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +6 -3
  332. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
  333. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +0 -2
  334. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
  335. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  336. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +11 -0
  337. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +1 -0
  338. package/lib/typescript/shared/providers/screen/animation/index.d.ts +1 -1
  339. package/lib/typescript/shared/providers/screen/animation/index.d.ts.map +1 -1
  340. package/lib/typescript/shared/providers/screen/animation/types.d.ts +4 -0
  341. package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -0
  342. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +5 -1
  343. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
  344. package/lib/typescript/shared/providers/stack/core.provider.d.ts +2 -0
  345. package/lib/typescript/shared/providers/stack/core.provider.d.ts.map +1 -1
  346. package/lib/typescript/shared/providers/stack/direct.provider.d.ts.map +1 -1
  347. package/lib/typescript/shared/stores/animation.store.d.ts +8 -2
  348. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  349. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +1 -1
  350. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  351. package/lib/typescript/shared/stores/bounds/types.d.ts +2 -0
  352. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  353. package/lib/typescript/shared/types/animation.types.d.ts +33 -51
  354. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  355. package/lib/typescript/shared/types/bounds.types.d.ts +46 -9
  356. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  357. package/lib/typescript/shared/types/index.d.ts +3 -3
  358. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  359. package/lib/typescript/shared/types/overlay.types.d.ts +1 -22
  360. package/lib/typescript/shared/types/overlay.types.d.ts.map +1 -1
  361. package/lib/typescript/shared/types/screen.types.d.ts +62 -37
  362. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  363. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
  364. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +2 -2
  365. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +1 -1
  366. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +1 -1
  367. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts +3 -2
  368. package/lib/typescript/shared/utils/bounds/helpers/geometry.d.ts.map +1 -1
  369. package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts +3 -2
  370. package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +1 -1
  371. package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts +3 -2
  372. package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +1 -1
  373. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +2 -1
  374. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +1 -1
  375. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts +4 -3
  376. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -1
  377. package/lib/typescript/shared/utils/bounds/index.d.ts +2 -2
  378. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  379. package/lib/typescript/shared/utils/bounds/types/frame-props.d.ts +5 -0
  380. package/lib/typescript/shared/utils/bounds/types/frame-props.d.ts.map +1 -0
  381. package/lib/typescript/shared/utils/bounds/types/options.d.ts +5 -4
  382. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  383. package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts +17 -0
  384. package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts.map +1 -0
  385. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts +4 -0
  386. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -0
  387. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +43 -0
  388. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -0
  389. package/lib/typescript/shared/utils/bounds/zoom/index.d.ts +3 -0
  390. package/lib/typescript/shared/utils/bounds/zoom/index.d.ts.map +1 -0
  391. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts +17 -0
  392. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +1 -0
  393. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts +5 -3
  394. package/lib/typescript/shared/utils/gesture/validate-snap-points.d.ts.map +1 -1
  395. package/lib/typescript/shared/utils/overlay/visibility.d.ts +1 -4
  396. package/lib/typescript/shared/utils/overlay/visibility.d.ts.map +1 -1
  397. package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts +5 -0
  398. package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts.map +1 -0
  399. package/package.json +3 -2
  400. package/src/blank-stack/index.ts +1 -0
  401. package/src/blank-stack/navigators/create-blank-stack-navigator.tsx +138 -19
  402. package/src/blank-stack/types.ts +33 -5
  403. package/src/component-stack/navigators/create-component-stack-navigator.tsx +8 -0
  404. package/src/shared/animation/snap-to.ts +12 -1
  405. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +258 -0
  406. package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +7 -17
  407. package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +38 -28
  408. package/src/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.ts +58 -0
  409. package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +41 -10
  410. package/src/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts +82 -0
  411. package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +24 -12
  412. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +11 -9
  413. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +29 -26
  414. package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +26 -17
  415. package/src/shared/components/create-boundary-component/index.tsx +25 -6
  416. package/src/shared/components/create-boundary-component/types.ts +8 -4
  417. package/src/shared/components/create-boundary-component/utils/build-boundary-match-key.ts +2 -14
  418. package/src/shared/components/create-transition-aware-component.tsx +5 -2
  419. package/src/shared/components/native-screen-container.tsx +11 -3
  420. package/src/shared/components/native-screen.tsx +65 -20
  421. package/src/shared/components/overlay/helpers/get-active-overlay.ts +3 -3
  422. package/src/shared/components/overlay/index.ts +0 -2
  423. package/src/shared/components/overlay/variations/overlay-host.tsx +2 -16
  424. package/src/shared/components/scene-view.tsx +0 -3
  425. package/src/shared/components/screen-container/hooks/use-content-layout.ts +82 -0
  426. package/src/shared/components/screen-container/layers/backdrop.tsx +25 -6
  427. package/src/shared/components/screen-container/layers/content.tsx +23 -82
  428. package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +101 -0
  429. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/index.ts +1 -2
  430. package/src/shared/components/screen-lifecycle/hooks/use-open-transition.ts +20 -6
  431. package/src/shared/constants.ts +6 -2
  432. package/src/shared/hooks/gestures/resolve-screen-gesture-target.ts +66 -0
  433. package/src/shared/hooks/gestures/types.ts +5 -0
  434. package/src/shared/hooks/gestures/use-screen-gesture.ts +10 -3
  435. package/src/shared/hooks/navigation/use-stack.tsx +1 -2
  436. package/src/shared/index.ts +14 -16
  437. package/src/shared/providers/gestures/handlers/use-handlers.ts +75 -29
  438. package/src/shared/providers/gestures/helpers/gesture-activation.ts +11 -6
  439. package/src/shared/providers/gestures/helpers/gesture-snap-points.ts +72 -0
  440. package/src/shared/providers/layout-anchor.provider.tsx +2 -5
  441. package/src/shared/providers/register-bounds.provider.tsx +1 -1
  442. package/src/shared/providers/screen/animation/animation.provider.tsx +46 -10
  443. package/src/shared/providers/screen/animation/helpers/derivations.ts +0 -8
  444. package/src/shared/providers/screen/animation/helpers/pipeline.ts +51 -14
  445. package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +44 -0
  446. package/src/shared/providers/screen/animation/index.tsx +4 -1
  447. package/src/shared/providers/screen/animation/types.ts +5 -0
  448. package/src/shared/providers/screen/animation/use-screen-animation.tsx +16 -3
  449. package/src/shared/providers/stack/core.provider.tsx +27 -14
  450. package/src/shared/providers/stack/direct.provider.tsx +2 -5
  451. package/src/shared/providers/stack/helpers/use-processed-routes.ts +2 -2
  452. package/src/shared/stores/animation.store.ts +21 -5
  453. package/src/shared/stores/bounds/internals/presence.ts +3 -1
  454. package/src/shared/stores/bounds/internals/resolver.ts +13 -1
  455. package/src/shared/stores/bounds/types.ts +2 -0
  456. package/src/shared/types/animation.types.ts +32 -58
  457. package/src/shared/types/bounds.types.ts +30 -10
  458. package/src/shared/types/index.ts +2 -15
  459. package/src/shared/types/overlay.types.ts +1 -28
  460. package/src/shared/types/screen.types.ts +67 -38
  461. package/src/shared/utils/animation/animate-to-progress.ts +7 -0
  462. package/src/shared/utils/bounds/helpers/build-bounds-options.ts +2 -2
  463. package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +47 -8
  464. package/src/shared/utils/bounds/helpers/geometry.ts +3 -2
  465. package/src/shared/utils/bounds/helpers/interpolators.ts +8 -6
  466. package/src/shared/utils/bounds/helpers/link-accessor.ts +10 -6
  467. package/src/shared/utils/bounds/helpers/resolve-bound-tag.ts +7 -10
  468. package/src/shared/utils/bounds/helpers/style-composers.ts +4 -3
  469. package/src/shared/utils/bounds/index.ts +22 -13
  470. package/src/shared/utils/bounds/types/frame-props.ts +5 -0
  471. package/src/shared/utils/bounds/types/options.ts +6 -4
  472. package/src/shared/utils/bounds/zoom/accessor.ts +69 -0
  473. package/src/shared/utils/bounds/zoom/build.ts +715 -0
  474. package/src/shared/utils/bounds/zoom/config.ts +179 -0
  475. package/src/shared/utils/bounds/zoom/index.ts +2 -0
  476. package/src/shared/utils/bounds/zoom/types.ts +22 -0
  477. package/src/shared/utils/gesture/validate-snap-points.ts +20 -8
  478. package/src/shared/utils/overlay/visibility.ts +1 -16
  479. package/src/shared/utils/resolve-screen-transition-options.ts +37 -0
  480. package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js +0 -64
  481. package/lib/commonjs/shared/components/overlay/variations/screen-overlay.js.map +0 -1
  482. package/lib/commonjs/shared/providers/viewport.provider.js +0 -33
  483. package/lib/commonjs/shared/providers/viewport.provider.js.map +0 -1
  484. package/lib/commonjs/shared/utils/bounds/helpers/math.js +0 -132
  485. package/lib/commonjs/shared/utils/bounds/helpers/math.js.map +0 -1
  486. package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js +0 -45
  487. package/lib/commonjs/shared/utils/bounds/helpers/navigation-accessor.js.map +0 -1
  488. package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js +0 -60
  489. package/lib/commonjs/shared/utils/bounds/sugar/navigation/helpers.js.map +0 -1
  490. package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js +0 -20
  491. package/lib/commonjs/shared/utils/bounds/sugar/navigation/index.js.map +0 -1
  492. package/lib/commonjs/shared/utils/bounds/sugar/navigation/types.js.map +0 -1
  493. package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js +0 -295
  494. package/lib/commonjs/shared/utils/bounds/sugar/navigation/zoom.js.map +0 -1
  495. package/lib/module/shared/components/overlay/variations/screen-overlay.js +0 -61
  496. package/lib/module/shared/components/overlay/variations/screen-overlay.js.map +0 -1
  497. package/lib/module/shared/providers/viewport.provider.js +0 -27
  498. package/lib/module/shared/providers/viewport.provider.js.map +0 -1
  499. package/lib/module/shared/utils/bounds/helpers/math.js +0 -115
  500. package/lib/module/shared/utils/bounds/helpers/math.js.map +0 -1
  501. package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js +0 -40
  502. package/lib/module/shared/utils/bounds/helpers/navigation-accessor.js.map +0 -1
  503. package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js +0 -54
  504. package/lib/module/shared/utils/bounds/sugar/navigation/helpers.js.map +0 -1
  505. package/lib/module/shared/utils/bounds/sugar/navigation/index.js +0 -15
  506. package/lib/module/shared/utils/bounds/sugar/navigation/index.js.map +0 -1
  507. package/lib/module/shared/utils/bounds/sugar/navigation/types.js.map +0 -1
  508. package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js +0 -290
  509. package/lib/module/shared/utils/bounds/sugar/navigation/zoom.js.map +0 -1
  510. package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts +0 -10
  511. package/lib/typescript/shared/components/overlay/variations/screen-overlay.d.ts.map +0 -1
  512. package/lib/typescript/shared/providers/viewport.provider.d.ts +0 -13
  513. package/lib/typescript/shared/providers/viewport.provider.d.ts.map +0 -1
  514. package/lib/typescript/shared/utils/bounds/helpers/math.d.ts +0 -38
  515. package/lib/typescript/shared/utils/bounds/helpers/math.d.ts.map +0 -1
  516. package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts +0 -16
  517. package/lib/typescript/shared/utils/bounds/helpers/navigation-accessor.d.ts.map +0 -1
  518. package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts +0 -17
  519. package/lib/typescript/shared/utils/bounds/sugar/navigation/helpers.d.ts.map +0 -1
  520. package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts +0 -3
  521. package/lib/typescript/shared/utils/bounds/sugar/navigation/index.d.ts.map +0 -1
  522. package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts +0 -18
  523. package/lib/typescript/shared/utils/bounds/sugar/navigation/types.d.ts.map +0 -1
  524. package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts +0 -4
  525. package/lib/typescript/shared/utils/bounds/sugar/navigation/zoom.d.ts.map +0 -1
  526. package/src/shared/components/overlay/variations/screen-overlay.tsx +0 -68
  527. package/src/shared/providers/viewport.provider.tsx +0 -39
  528. package/src/shared/utils/bounds/helpers/math.ts +0 -161
  529. package/src/shared/utils/bounds/helpers/navigation-accessor.ts +0 -61
  530. package/src/shared/utils/bounds/sugar/navigation/helpers.ts +0 -74
  531. package/src/shared/utils/bounds/sugar/navigation/index.ts +0 -14
  532. package/src/shared/utils/bounds/sugar/navigation/types.ts +0 -26
  533. package/src/shared/utils/bounds/sugar/navigation/zoom.ts +0 -348
  534. /package/lib/commonjs/shared/utils/bounds/{sugar/navigation → zoom}/types.js +0 -0
  535. /package/lib/module/shared/utils/bounds/{sugar/navigation → zoom}/types.js +0 -0
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useGroupActiveMeasurement = void 0;
7
7
  var _reactNativeReanimated = require("react-native-reanimated");
8
8
  var _bounds = require("../../../stores/bounds");
9
+ var _measurementRules = require("./helpers/measurement-rules");
10
+ var _useDeferredMeasurementTrigger = require("./use-deferred-measurement-trigger");
9
11
  /**
10
12
  * Watches the group's active id in the BoundStore.
11
13
  * When this boundary becomes the active member of its group,
@@ -24,6 +26,30 @@ const useGroupActiveMeasurement = params => {
24
26
  } = params;
25
27
  const idStr = String(id);
26
28
  const allGroups = _bounds.BoundStore.getGroups();
29
+ const {
30
+ clearPendingMeasurement,
31
+ queueOrFlushMeasurement
32
+ } = (0, _useDeferredMeasurementTrigger.useDeferredMeasurementTrigger)({
33
+ enabled,
34
+ isAnimating,
35
+ canFlush: () => {
36
+ "worklet";
37
+
38
+ return (0, _measurementRules.canFlushGroupActiveMeasurement)({
39
+ enabled,
40
+ isEligible: !!group && shouldUpdateDestination,
41
+ memberId: idStr,
42
+ activeId: group ? allGroups.value[group]?.activeId ?? null : null
43
+ });
44
+ },
45
+ onFlush: () => {
46
+ "worklet";
47
+
48
+ maybeMeasureAndStore({
49
+ intent: "refresh-destination"
50
+ });
51
+ }
52
+ });
27
53
  (0, _reactNativeReanimated.useAnimatedReaction)(() => {
28
54
  "worklet";
29
55
 
@@ -33,15 +59,21 @@ const useGroupActiveMeasurement = params => {
33
59
  }, (activeId, previousActiveId) => {
34
60
  "worklet";
35
61
 
36
- if (!enabled) return;
37
- if (!group || !shouldUpdateDestination) return;
38
- if (isAnimating.value) return;
39
- if (activeId === idStr && activeId !== previousActiveId) {
40
- maybeMeasureAndStore({
41
- shouldUpdateDestination: true
42
- });
62
+ const action = (0, _measurementRules.resolveGroupActiveMeasurementAction)({
63
+ enabled,
64
+ isEligible: !!group && shouldUpdateDestination,
65
+ memberId: idStr,
66
+ activeId,
67
+ previousActiveId
68
+ });
69
+ if (action === "clear-pending") {
70
+ clearPendingMeasurement();
71
+ return;
72
+ }
73
+ if (action === "queue-or-flush") {
74
+ queueOrFlushMeasurement();
43
75
  }
44
- }, [enabled, group, idStr, shouldUpdateDestination, isAnimating, maybeMeasureAndStore]);
76
+ }, [enabled, group, idStr, shouldUpdateDestination, clearPendingMeasurement, queueOrFlushMeasurement]);
45
77
  };
46
78
  exports.useGroupActiveMeasurement = useGroupActiveMeasurement;
47
79
  //# sourceMappingURL=use-group-active-measurement.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_bounds","useGroupActiveMeasurement","params","enabled","group","id","shouldUpdateDestination","isAnimating","maybeMeasureAndStore","idStr","String","allGroups","BoundStore","getGroups","useAnimatedReaction","value","activeId","previousActiveId","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-group-active-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,yBAAyB,GAAIC,MAOzC,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,KAAK;IACLC,EAAE;IACFC,uBAAuB;IACvBC,WAAW;IACXC;EACD,CAAC,GAAGN,MAAM;EACV,MAAMO,KAAK,GAAGC,MAAM,CAACL,EAAE,CAAC;EAExB,MAAMM,SAAS,GAAGC,kBAAU,CAACC,SAAS,CAAC,CAAC;EAExC,IAAAC,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,IAAI,CAACX,OAAO,EAAE,OAAO,IAAI;IACzB,IAAI,CAACC,KAAK,EAAE,OAAO,IAAI;IACvB,OAAOO,SAAS,CAACI,KAAK,CAACX,KAAK,CAAC,EAAEY,QAAQ,IAAI,IAAI;EAChD,CAAC,EACD,CAACA,QAAQ,EAAEC,gBAAgB,KAAK;IAC/B,SAAS;;IACT,IAAI,CAACd,OAAO,EAAE;IACd,IAAI,CAACC,KAAK,IAAI,CAACE,uBAAuB,EAAE;IACxC,IAAIC,WAAW,CAACQ,KAAK,EAAE;IAEvB,IAAIC,QAAQ,KAAKP,KAAK,IAAIO,QAAQ,KAAKC,gBAAgB,EAAE;MACxDT,oBAAoB,CAAC;QAAEF,uBAAuB,EAAE;MAAK,CAAC,CAAC;IACxD;EACD,CAAC,EACD,CACCH,OAAO,EACPC,KAAK,EACLK,KAAK,EACLH,uBAAuB,EACvBC,WAAW,EACXC,oBAAoB,CAEtB,CAAC;AACF,CAAC;AAACU,OAAA,CAAAjB,yBAAA,GAAAA,yBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","_bounds","_measurementRules","_useDeferredMeasurementTrigger","useGroupActiveMeasurement","params","enabled","group","id","shouldUpdateDestination","isAnimating","maybeMeasureAndStore","idStr","String","allGroups","BoundStore","getGroups","clearPendingMeasurement","queueOrFlushMeasurement","useDeferredMeasurementTrigger","canFlush","canFlushGroupActiveMeasurement","isEligible","memberId","activeId","value","onFlush","intent","useAnimatedReaction","previousActiveId","action","resolveGroupActiveMeasurementAction","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-group-active-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AAIA,IAAAG,8BAAA,GAAAH,OAAA;AAEA;AACA;AACA;AACA;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Q;MACRK;IACD,CAAC,CAAC;IAEF,IAAIC,MAAM,KAAK,eAAe,EAAE;MAC/Bb,uBAAuB,CAAC,CAAC;MACzB;IACD;IAEA,IAAIa,MAAM,KAAK,gBAAgB,EAAE;MAChCZ,uBAAuB,CAAC,CAAC;IAC1B;EACD,CAAC,EACD,CACCZ,OAAO,EACPC,KAAK,EACLK,KAAK,EACLH,uBAAuB,EACvBQ,uBAAuB,EACvBC,uBAAuB,CAEzB,CAAC;AACF,CAAC;AAACc,OAAA,CAAA5B,yBAAA,GAAAA,yBAAA","ignoreList":[]}
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useGroupActiveSourceMeasurement = void 0;
7
+ var _reactNativeReanimated = require("react-native-reanimated");
8
+ var _bounds = require("../../../stores/bounds");
9
+ var _measurementRules = require("./helpers/measurement-rules");
10
+ var _useDeferredMeasurementTrigger = require("./use-deferred-measurement-trigger");
11
+ const useGroupActiveSourceMeasurement = params => {
12
+ const {
13
+ enabled,
14
+ group,
15
+ id,
16
+ hasNextScreen,
17
+ isAnimating,
18
+ maybeMeasureAndStore
19
+ } = params;
20
+ const idStr = String(id);
21
+ const allGroups = _bounds.BoundStore.getGroups();
22
+ const {
23
+ clearPendingMeasurement,
24
+ queueOrFlushMeasurement
25
+ } = (0, _useDeferredMeasurementTrigger.useDeferredMeasurementTrigger)({
26
+ enabled,
27
+ isAnimating,
28
+ canFlush: () => {
29
+ "worklet";
30
+
31
+ return (0, _measurementRules.canFlushGroupActiveMeasurement)({
32
+ enabled,
33
+ isEligible: !!group && hasNextScreen,
34
+ memberId: idStr,
35
+ activeId: group ? allGroups.value[group]?.activeId ?? null : null
36
+ });
37
+ },
38
+ onFlush: () => {
39
+ "worklet";
40
+
41
+ maybeMeasureAndStore({
42
+ intent: "refresh-source"
43
+ });
44
+ }
45
+ });
46
+ (0, _reactNativeReanimated.useAnimatedReaction)(() => {
47
+ "worklet";
48
+
49
+ if (!enabled) return null;
50
+ if (!group) return null;
51
+ return allGroups.value[group]?.activeId ?? null;
52
+ }, (activeId, previousActiveId) => {
53
+ "worklet";
54
+
55
+ const action = (0, _measurementRules.resolveGroupActiveMeasurementAction)({
56
+ enabled,
57
+ isEligible: !!group && hasNextScreen,
58
+ memberId: idStr,
59
+ activeId,
60
+ previousActiveId
61
+ });
62
+ if (action === "clear-pending") {
63
+ clearPendingMeasurement();
64
+ return;
65
+ }
66
+ if (action === "queue-or-flush") {
67
+ queueOrFlushMeasurement();
68
+ }
69
+ }, [enabled, group, idStr, hasNextScreen, clearPendingMeasurement, queueOrFlushMeasurement]);
70
+ };
71
+ exports.useGroupActiveSourceMeasurement = useGroupActiveSourceMeasurement;
72
+ //# sourceMappingURL=use-group-active-source-measurement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeReanimated","require","_bounds","_measurementRules","_useDeferredMeasurementTrigger","useGroupActiveSourceMeasurement","params","enabled","group","id","hasNextScreen","isAnimating","maybeMeasureAndStore","idStr","String","allGroups","BoundStore","getGroups","clearPendingMeasurement","queueOrFlushMeasurement","useDeferredMeasurementTrigger","canFlush","canFlushGroupActiveMeasurement","isEligible","memberId","activeId","value","onFlush","intent","useAnimatedReaction","previousActiveId","action","resolveGroupActiveMeasurementAction","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AAIA,IAAAG,8BAAA,GAAAH,OAAA;AAEO,MAAMI,+BAA+B,GAAIC,MAO/C,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,KAAK;IACLC,EAAE;IACFC,aAAa;IACbC,WAAW;IACXC;EACD,CAAC,GAAGN,MAAM;EACV,MAAMO,KAAK,GAAGC,MAAM,CAACL,EAAE,CAAC;EACxB,M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,KAAK,EACLH,aAAa,EACbQ,uBAAuB,EACvBC,uBAAuB,CAEzB,CAAC;AACF,CAAC;AAACc,OAAA,CAAA5B,+BAAA,GAAAA,+BAAA","ignoreList":[]}
@@ -9,6 +9,7 @@ var _reactNativeReanimated = require("react-native-reanimated");
9
9
  var _animation = require("../../../stores/animation.store");
10
10
  var _bounds = require("../../../stores/bounds");
11
11
  var _resolvePendingSourceKey = require("../helpers/resolve-pending-source-key");
12
+ var _measurementRules = require("./helpers/measurement-rules");
12
13
  const useInitialLayoutHandler = params => {
13
14
  const {
14
15
  enabled,
@@ -33,15 +34,23 @@ const useInitialLayoutHandler = params => {
33
34
  break;
34
35
  }
35
36
  }
36
- if (!isAnyAnimating) return;
37
- const resolvedSourceKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, expectedSourceScreenKey);
38
- if (!resolvedSourceKey) return;
39
- if (!_bounds.BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey)) {
40
- return;
37
+ let hasPendingLinkFromSource = false;
38
+ if (isAnyAnimating) {
39
+ const resolvedSourceKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, expectedSourceScreenKey);
40
+ if (resolvedSourceKey && _bounds.BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey)) {
41
+ hasPendingLinkFromSource = true;
42
+ }
41
43
  }
44
+ const intent = (0, _measurementRules.resolveInitialLayoutMeasurementIntent)({
45
+ enabled,
46
+ hasSharedBoundTag: !!sharedBoundTag,
47
+ hasMeasuredOnLayout: hasMeasuredOnLayout.get(),
48
+ isAnyAnimating: !!isAnyAnimating,
49
+ hasPendingLinkFromSource
50
+ });
51
+ if (!intent) return;
42
52
  maybeMeasureAndStore({
43
- shouldSetSource: false,
44
- shouldSetDestination: true
53
+ intent
45
54
  });
46
55
  hasMeasuredOnLayout.set(true);
47
56
  }, [enabled, sharedBoundTag, hasMeasuredOnLayout, isAnimating, ancestorAnimations, maybeMeasureAndStore, expectedSourceScreenKey]);
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_animation","_bounds","_resolvePendingSourceKey","useInitialLayoutHandler","params","enabled","sharedBoundTag","currentScreenKey","ancestorKeys","expectedSourceScreenKey","maybeMeasureAndStore","isAnimating","AnimationStore","getRouteAnimation","ancestorAnimations","map","key","hasMeasuredOnLayout","useSharedValue","handleInitialLayout","useCallback","get","isAnyAnimating","i","length","resolvedSourceKey","resolvePendingSourceKey","BoundStore","hasPendingLinkFromSource","shouldSetSource","shouldSetDestination","set","useLayoutEffect","runOnUI","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAJ,OAAA;AAGO,MAAMK,uBAAuB,GAAIC,MAOvC,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,cAAc;IACdC,gBAAgB;IAChBC,YAAY;IACZC,uBAAuB;IACvBC;EACD,CAAC,GAAGN,MAAM;EAEV,MAAMO,WAAW,GAAGC,yBAAc,CAACC,iBAAiB,CACnDN,gBAAgB,EAChB,WACD,CAAC;EAED,MAAMO,kBAAkB,GAAGN,YAAY,CAACO,GAAG,CAAEC,GAAG,IAC/CJ,yBAAc,CAACC,iBAAiB,CAACG,GAAG,EAAE,WAAW,CAClD,CAAC;EAED,MAAMC,mBAAmB,GAAG,IAAAC,qCAAc,EAAC,KAAK,CAAC;EAEjD,MAAMC,mBAAmB,GAAG,IAAAC,kBAAW,EAAC,MAAM;IAC7C,SAAS;;IACT,IAAI,CAACf,OAAO,EAAE;IACd,IAAI,CAACC,cAAc,IAAIW,mBAAmB,CAACI,GAAG,CAAC,CAAC,EAAE;IAElD,IAAIC,cAAc,GAAGX,WAAW,CAACU,GAAG,CAAC,CAAC;IACtC,KAAK,IAAIE,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGT,kBAAkB,CAACU,MAAM,EAAED,CAAC,EAAE,EAAE;MACnD,IAAIT,kBAAkB,CAACS,CAAC,CAAC,CAACF,GAAG,CAAC,CAAC,EAAE;QAChCC,cAAc,GAAG,CAAC;QAClB;MACD;IACD;IAEA,IAAI,CAACA,cAAc,EAAE;IACrB,MAAMG,iBAAiB,GAAG,IAAAC,gDAAuB,EAChDpB,cAAc,EACdG,uBACD,CAAC;IACD,IAAI,CAACgB,iBAAiB,EAAE;IACxB,IACC,CAACE,kBAAU,CAACC,wBAAwB,CAACtB,cAAc,EAAEmB,iBAAiB,CAAC,EACtE;MACD;IACD;IAEAf,oBAAoB,CAAC;MACpBmB,eAAe,EAAE,KAAK;MACtBC,oBAAoB,EAAE;IACvB,CAAC,CAAC;IAEFb,mBAAmB,CAACc,GAAG,CAAC,IAAI,CAAC;EAC9B,CAAC,EAAE,CACF1B,OAAO,EACPC,cAAc,EACdW,mBAAmB,EACnBN,WAAW,EACXG,kBAAkB,EAClBJ,oBAAoB,EACpBD,uBAAuB,CACvB,CAAC;;EAEF;EACA;EACA,IAAAuB,sBAAe,EAAC,MAAM;IACrB,IAAI,CAAC3B,OAAO,EAAE;IACd,IAAA4B,8BAAO,EAACd,mBAAmB,CAAC,CAAC,CAAC;EAC/B,CAAC,EAAE,CAACd,OAAO,EAAEc,mBAAmB,CAAC,CAAC;AACnC,CAAC;AAACe,OAAA,CAAA/B,uBAAA,GAAAA,uBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","_animation","_bounds","_resolvePendingSourceKey","_measurementRules","useInitialLayoutHandler","params","enabled","sharedBoundTag","currentScreenKey","ancestorKeys","expectedSourceScreenKey","maybeMeasureAndStore","isAnimating","AnimationStore","getRouteAnimation","ancestorAnimations","map","key","hasMeasuredOnLayout","useSharedValue","handleInitialLayout","useCallback","get","isAnyAnimating","i","length","hasPendingLinkFromSource","resolvedSourceKey","resolvePendingSourceKey","BoundStore","intent","resolveInitialLayoutMeasurementIntent","hasSharedBoundTag","set","useLayoutEffect","runOnUI","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAJ,OAAA;AAEA,IAAAK,iBAAA,GAAAL,OAAA;AAEO,MAAMM,uBAAuB,GAAIC,MAOvC,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,cAAc;IACdC,gBAAgB;IAChBC,YAAY;IACZC,uBAAuB;IACvBC;EACD,CAAC,GAAGN,MAAM;EAEV,MAAMO,WAAW,GAAGC,yBAAc,CAACC,iBAAiB,CACnDN,gBAAgB,EAChB,WACD,CAAC;EAED,MAAMO,kBAAkB,GAAGN,YAAY,CAACO,GAAG,CAAEC,GAAG,IAC/CJ,yBAAc,CAACC,iBAAiB,CAACG,GAAG,EAAE,WAAW,CAClD,CAAC;EAED,MAAMC,mBAAmB,GAAG,IAAAC,qCAAc,EAAC,KAAK,CAAC;EAEjD,MAAMC,mBAAmB,GAAG,IAAAC,kBAAW,EAAC,MAAM;IAC7C,SAAS;;IACT,IAAI,CAACf,OAAO,EAAE;IACd,IAAI,CAACC,cAAc,IAAIW,mBAAmB,CAACI,GAAG,CAAC,CAAC,EAAE;IAElD,IAAIC,cAAc,GAAGX,WAAW,CAACU,GAAG,CAAC,CAAC;IACtC,KAAK,IAAIE,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGT,kBAAkB,CAACU,MAAM,EAAED,CAAC,EAAE,EAAE;MACnD,IAAIT,kBAAkB,CAACS,CAAC,CAAC,CAACF,GAAG,CAAC,CAAC,EAAE;QAChCC,cAAc,GAAG,CAAC;QAClB;MACD;IACD;IAEA,IAAIG,wBAAwB,GAAG,KAAK;IAEpC,IAAIH,cAAc,EAAE;MACnB,MAAMI,iBAAiB,GAAG,IAAAC,gDAAuB,EAChDrB,cAAc,EACdG,uBACD,CAAC;MACD,IACCiB,iBAAiB,IACjBE,kBAAU,CAACH,wBAAwB,CAACnB,cAAc,EAAEoB,iBAAiB,CAAC,EACrE;QACDD,wBAAwB,GAAG,IAAI;MAChC;IACD;IAEA,MAAMI,MAAM,GAAG,IAAAC,uDAAqC,EAAC;MACpDzB,OAAO;MACP0B,iBAAiB,EAAE,CAAC,CAACzB,cAAc;MACnCW,mBAAmB,EAAEA,mBAAmB,CAACI,GAAG,CAAC,CAAC;MAC9CC,cAAc,EAAE,CAAC,CAACA,cAAc;MAChCG;IACD,CAAC,CAAC;IACF,IAAI,CAACI,MAAM,EAAE;IAEbnB,oBAAoB,CAAC;MACpBmB;IACD,CAAC,CAAC;IAEFZ,mBAAmB,CAACe,GAAG,CAAC,IAAI,CAAC;EAC9B,CAAC,EAAE,CACF3B,OAAO,EACPC,cAAc,EACdW,mBAAmB,EACnBN,WAAW,EACXG,kBAAkB,EAClBJ,oBAAoB,EACpBD,uBAAuB,CACvB,CAAC;;EAEF;EACA;EACA,IAAAwB,sBAAe,EAAC,MAAM;IACrB,IAAI,CAAC5B,OAAO,EAAE;IACd,IAAA6B,8BAAO,EAACf,mBAAmB,CAAC,CAAC,CAAC;EAC/B,CAAC,EAAE,CAACd,OAAO,EAAEc,mBAAmB,CAAC,CAAC;AACnC,CAAC;AAACgB,OAAA,CAAAhC,uBAAA,GAAAA,uBAAA","ignoreList":[]}
@@ -7,6 +7,7 @@ exports.usePendingDestinationMeasurement = void 0;
7
7
  var _reactNativeReanimated = require("react-native-reanimated");
8
8
  var _bounds = require("../../../stores/bounds");
9
9
  var _resolvePendingSourceKey = require("../helpers/resolve-pending-source-key");
10
+ var _measurementRules = require("./helpers/measurement-rules");
10
11
  const usePendingDestinationMeasurement = params => {
11
12
  const {
12
13
  sharedBoundTag,
@@ -17,10 +18,12 @@ const usePendingDestinationMeasurement = params => {
17
18
  (0, _reactNativeReanimated.useAnimatedReaction)(() => {
18
19
  "worklet";
19
20
 
20
- if (!enabled) return 0;
21
21
  const resolvedSourceKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, expectedSourceScreenKey);
22
- if (!resolvedSourceKey) return 0;
23
- return _bounds.BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey) ? resolvedSourceKey : 0;
22
+ return (0, _measurementRules.resolvePendingDestinationCaptureSignal)({
23
+ enabled,
24
+ resolvedSourceKey,
25
+ hasPendingLinkFromSource: resolvedSourceKey ? _bounds.BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey) : false
26
+ });
24
27
  }, (captureSignal, previousCaptureSignal) => {
25
28
  "worklet";
26
29
 
@@ -29,7 +32,7 @@ const usePendingDestinationMeasurement = params => {
29
32
  return;
30
33
  }
31
34
  maybeMeasureAndStore({
32
- shouldSetDestination: true
35
+ intent: "complete-destination"
33
36
  });
34
37
  }, [enabled, sharedBoundTag, expectedSourceScreenKey, maybeMeasureAndStore]);
35
38
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_bounds","_resolvePendingSourceKey","usePendingDestinationMeasurement","params","sharedBoundTag","enabled","expectedSourceScreenKey","maybeMeasureAndStore","useAnimatedReaction","resolvedSourceKey","resolvePendingSourceKey","BoundStore","hasPendingLinkFromSource","captureSignal","previousCaptureSignal","shouldSetDestination","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAGO,MAAMG,gCAAgC,GAAIC,MAKhD,IAAK;EACL,MAAM;IACLC,cAAc;IACdC,OAAO;IACPC,uBAAuB;IACvBC;EACD,CAAC,GAAGJ,MAAM;EAEV,IAAAK,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,IAAI,CAACH,OAAO,EAAE,OAAO,CAAC;IACtB,MAAMI,iBAAiB,GAAG,IAAAC,gDAAuB,EAChDN,cAAc,EACdE,uBACD,CAAC;IACD,IAAI,CAACG,iBAAiB,EAAE,OAAO,CAAC;IAEhC,OAAOE,kBAAU,CAACC,wBAAwB,CACzCR,cAAc,EACdK,iBACD,CAAC,GACEA,iBAAiB,GACjB,CAAC;EACL,CAAC,EACD,CAACI,aAAa,EAAEC,qBAAqB,KAAK;IACzC,SAAS;;IACT,IAAI,CAACT,OAAO,EAAE;IACd,IAAI,CAACQ,aAAa,IAAIA,aAAa,KAAKC,qBAAqB,EAAE;MAC9D;IACD;IAEAP,oBAAoB,CAAC;MAAEQ,oBAAoB,EAAE;IAAK,CAAC,CAAC;EACrD,CAAC,EACD,CAACV,OAAO,EAAED,cAAc,EAAEE,uBAAuB,EAAEC,oBAAoB,CACxE,CAAC;AACF,CAAC;AAACS,OAAA,CAAAd,gCAAA,GAAAA,gCAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","_bounds","_resolvePendingSourceKey","_measurementRules","usePendingDestinationMeasurement","params","sharedBoundTag","enabled","expectedSourceScreenKey","maybeMeasureAndStore","useAnimatedReaction","resolvedSourceKey","resolvePendingSourceKey","resolvePendingDestinationCaptureSignal","hasPendingLinkFromSource","BoundStore","captureSignal","previousCaptureSignal","intent","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAEA,IAAAG,iBAAA,GAAAH,OAAA;AAEO,MAAMI,gCAAgC,GAAIC,MAKhD,IAAK;EACL,MAAM;IACLC,cAAc;IACdC,OAAO;IACPC,uBAAuB;IACvBC;EACD,CAAC,GAAGJ,MAAM;EAEV,IAAAK,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,MAAMC,iBAAiB,GAAG,IAAAC,gDAAuB,EAChDN,cAAc,EACdE,uBACD,CAAC;IACD,OAAO,IAAAK,wDAAsC,EAAC;MAC7CN,OAAO;MACPI,iBAAiB;MACjBG,wBAAwB,EAAEH,iBAAiB,GACxCI,kBAAU,CAACD,wBAAwB,CACnCR,cAAc,EACdK,iBACD,CAAC,GACA;IACJ,CAAC,CAAC;EACH,CAAC,EACD,CAACK,aAAa,EAAEC,qBAAqB,KAAK;IACzC,SAAS;;IACT,IAAI,CAACV,OAAO,EAAE;IACd,IAAI,CAACS,aAAa,IAAIA,aAAa,KAAKC,qBAAqB,EAAE;MAC9D;IACD;IAEAR,oBAAoB,CAAC;MAAES,MAAM,EAAE;IAAuB,CAAC,CAAC;EACzD,CAAC,EACD,CAACX,OAAO,EAAED,cAAc,EAAEE,uBAAuB,EAAEC,oBAAoB,CACxE,CAAC;AACF,CAAC;AAACU,OAAA,CAAAf,gCAAA,GAAAA,gCAAA","ignoreList":[]}
@@ -7,6 +7,7 @@ exports.usePendingDestinationRetryMeasurement = void 0;
7
7
  var _reactNativeReanimated = require("react-native-reanimated");
8
8
  var _bounds = require("../../../stores/bounds");
9
9
  var _resolvePendingSourceKey = require("../helpers/resolve-pending-source-key");
10
+ var _measurementRules = require("./helpers/measurement-rules");
10
11
  const usePendingDestinationRetryMeasurement = params => {
11
12
  const {
12
13
  sharedBoundTag,
@@ -24,21 +25,19 @@ const usePendingDestinationRetryMeasurement = params => {
24
25
  (0, _reactNativeReanimated.useAnimatedReaction)(() => {
25
26
  "worklet";
26
27
 
27
- if (!enabled) return 0;
28
- if (retryCount.get() >= MAX_RETRIES) return 0;
29
- if (!animating.get()) return 0;
30
- if (_bounds.BoundStore.hasDestinationLink(sharedBoundTag, currentScreenKey)) return 0;
31
- const currentProgress = progress.get();
32
- if (currentProgress <= 0 || currentProgress >= RETRY_PROGRESS_MAX) {
33
- return 0;
34
- }
35
28
  const resolvedSourceKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, expectedSourceScreenKey);
36
- if (!resolvedSourceKey) return 0;
37
- if (!_bounds.BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey)) {
38
- return 0;
39
- }
40
- const bucket = Math.floor(currentProgress * RETRY_PROGRESS_BUCKETS) + 1;
41
- return bucket;
29
+ return (0, _measurementRules.resolvePendingDestinationRetrySignal)({
30
+ enabled,
31
+ retryCount: retryCount.get(),
32
+ maxRetries: MAX_RETRIES,
33
+ isAnimating: !!animating.get(),
34
+ hasDestinationLink: _bounds.BoundStore.hasDestinationLink(sharedBoundTag, currentScreenKey),
35
+ progress: progress.get(),
36
+ retryProgressMax: RETRY_PROGRESS_MAX,
37
+ retryProgressBuckets: RETRY_PROGRESS_BUCKETS,
38
+ resolvedSourceKey,
39
+ hasPendingLinkFromSource: resolvedSourceKey ? _bounds.BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey) : false
40
+ });
42
41
  }, captureSignal => {
43
42
  "worklet";
44
43
 
@@ -50,7 +49,7 @@ const usePendingDestinationRetryMeasurement = params => {
50
49
  if (retryCount.get() >= MAX_RETRIES) return;
51
50
  retryCount.set(retryCount.get() + 1);
52
51
  maybeMeasureAndStore({
53
- shouldSetDestination: true
52
+ intent: "complete-destination"
54
53
  });
55
54
  }, [enabled, sharedBoundTag, currentScreenKey, expectedSourceScreenKey, progress, animating, maybeMeasureAndStore, retryCount]);
56
55
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_bounds","_resolvePendingSourceKey","usePendingDestinationRetryMeasurement","params","sharedBoundTag","enabled","currentScreenKey","expectedSourceScreenKey","progress","animating","maybeMeasureAndStore","retryCount","useSharedValue","MAX_RETRIES","RETRY_PROGRESS_BUCKETS","RETRY_PROGRESS_MAX","useAnimatedReaction","get","BoundStore","hasDestinationLink","currentProgress","resolvedSourceKey","resolvePendingSourceKey","hasPendingLinkFromSource","bucket","Math","floor","captureSignal","set","shouldSetDestination","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAGO,MAAMG,qCAAqC,GAAIC,MAQrD,IAAK;EACL,MAAM;IACLC,cAAc;IACdC,OAAO;IACPC,gBAAgB;IAChBC,uBAAuB;IACvBC,QAAQ;IACRC,SAAS;IACTC;EACD,CAAC,GAAGP,MAAM;EAEV,MAAMQ,UAAU,GAAG,IAAAC,qCAAc,EAAC,CAAC,CAAC;EACpC,MAAMC,WAAW,GAAG,CAAC;EACrB,MAAMC,sBAAsB,GAAG,CAAC;EAChC,MAAMC,kBAAkB,GAAG,IAAI;EAE/B,IAAAC,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,IAAI,CAACX,OAAO,EAAE,OAAO,CAAC;IACtB,IAAIM,UAAU,CAACM,GAAG,CAAC,CAAC,IAAIJ,WAAW,EAAE,OAAO,CAAC;IAC7C,IAAI,CAACJ,SAAS,CAACQ,GAAG,CAAC,CAAC,EAAE,OAAO,CAAC;IAC9B,IAAIC,kBAAU,CAACC,kBAAkB,CAACf,cAAc,EAAEE,gBAAgB,CAAC,EAClE,OAAO,CAAC;IAET,MAAMc,eAAe,GAAGZ,QAAQ,CAACS,GAAG,CAAC,CAAC;IACtC,IAAIG,eAAe,IAAI,CAAC,IAAIA,eAAe,IAAIL,kBAAkB,EAAE;MAClE,OAAO,CAAC;IACT;IAEA,MAAMM,iBAAiB,GAAG,IAAAC,gDAAuB,EAChDlB,cAAc,EACdG,uBACD,CAAC;IAED,IAAI,CAACc,iBAAiB,EAAE,OAAO,CAAC;IAChC,IACC,CAACH,kBAAU,CAACK,wBAAwB,CAACnB,cAAc,EAAEiB,iBAAiB,CAAC,EACtE;MACD,OAAO,CAAC;IACT;IAEA,MAAMG,MAAM,GAAGC,IAAI,CAACC,KAAK,CAACN,eAAe,GAAGN,sBAAsB,CAAC,GAAG,CAAC;IACvE,OAAOU,MAAM;EACd,CAAC,EACAG,aAAa,IAAK;IAClB,SAAS;;IACT,IAAI,CAACtB,OAAO,EAAE;IACd,IAAI,CAACsB,aAAa,EAAE;MACnBhB,UAAU,CAACiB,GAAG,CAAC,CAAC,CAAC;MACjB;IACD;IAEA,IAAIjB,UAAU,CAACM,GAAG,CAAC,CAAC,IAAIJ,WAAW,EAAE;IACrCF,UAAU,CAACiB,GAAG,CAACjB,UAAU,CAACM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IACpCP,oBAAoB,CAAC;MAAEmB,oBAAoB,EAAE;IAAK,CAAC,CAAC;EACrD,CAAC,EACD,CACCxB,OAAO,EACPD,cAAc,EACdE,gBAAgB,EAChBC,uBAAuB,EACvBC,QAAQ,EACRC,SAAS,EACTC,oBAAoB,EACpBC,UAAU,CAEZ,CAAC;AACF,CAAC;AAACmB,OAAA,CAAA5B,qCAAA,GAAAA,qCAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","_bounds","_resolvePendingSourceKey","_measurementRules","usePendingDestinationRetryMeasurement","params","sharedBoundTag","enabled","currentScreenKey","expectedSourceScreenKey","progress","animating","maybeMeasureAndStore","retryCount","useSharedValue","MAX_RETRIES","RETRY_PROGRESS_BUCKETS","RETRY_PROGRESS_MAX","useAnimatedReaction","resolvedSourceKey","resolvePendingSourceKey","resolvePendingDestinationRetrySignal","get","maxRetries","isAnimating","hasDestinationLink","BoundStore","retryProgressMax","retryProgressBuckets","hasPendingLinkFromSource","captureSignal","set","intent","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,OAAA,GAA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AAIP,WAAW,EAAE;IACrCF,UAAU,CAACkB,GAAG,CAAClB,UAAU,CAACS,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IACpCV,oBAAoB,CAAC;MAAEoB,MAAM,EAAE;IAAuB,CAAC,CAAC;EACzD,CAAC,EACD,CACCzB,OAAO,EACPD,cAAc,EACdE,gBAAgB,EAChBC,uBAAuB,EACvBC,QAAQ,EACRC,SAAS,EACTC,oBAAoB,EACpBC,UAAU,CAEZ,CAAC;AACF,CAAC;AAACoB,OAAA,CAAA7B,qCAAA,GAAAA,qCAAA","ignoreList":[]}
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useScrollSettledMeasurement = void 0;
7
7
  var _reactNativeReanimated = require("react-native-reanimated");
8
8
  var _scrollSettle = require("../../../providers/scroll-settle.provider");
9
+ var _measurementRules = require("./helpers/measurement-rules");
10
+ var _useDeferredMeasurementTrigger = require("./use-deferred-measurement-trigger");
9
11
  const useScrollSettledMeasurement = params => {
10
12
  const {
11
13
  enabled,
@@ -16,20 +18,36 @@ const useScrollSettledMeasurement = params => {
16
18
  } = params;
17
19
  const scrollSettle = (0, _scrollSettle.useScrollSettleContext)();
18
20
  const settledSignal = scrollSettle?.settledSignal;
21
+ const {
22
+ queueOrFlushMeasurement
23
+ } = (0, _useDeferredMeasurementTrigger.useDeferredMeasurementTrigger)({
24
+ enabled,
25
+ isAnimating,
26
+ onFlush: () => {
27
+ "worklet";
28
+
29
+ maybeMeasureAndStore({
30
+ intent: "refresh-source"
31
+ });
32
+ }
33
+ });
19
34
  (0, _reactNativeReanimated.useAnimatedReaction)(() => settledSignal?.value ?? 0, (signal, previousSignal) => {
20
35
  "worklet";
21
36
 
22
- if (!enabled) return;
23
- if (!group || !hasNextScreen || !settledSignal) return;
24
- if (signal === 0 || signal === previousSignal) return;
25
- if (isAnimating.value) return;
26
-
37
+ if (!(0, _measurementRules.shouldTriggerScrollSettledRefresh)({
38
+ enabled,
39
+ group,
40
+ hasNextScreen,
41
+ hasSettledSignal: !!settledSignal,
42
+ signal,
43
+ previousSignal
44
+ })) {
45
+ return;
46
+ }
27
47
  // Re-measure source bounds after scroll settles while idle.
28
48
  // This captures post-scroll positions before close transition starts.
29
- maybeMeasureAndStore({
30
- shouldUpdateSource: true
31
- });
32
- }, [enabled, group, hasNextScreen, settledSignal, isAnimating, maybeMeasureAndStore]);
49
+ queueOrFlushMeasurement();
50
+ }, [enabled, group, hasNextScreen, settledSignal, queueOrFlushMeasurement]);
33
51
  };
34
52
  exports.useScrollSettledMeasurement = useScrollSettledMeasurement;
35
53
  //# sourceMappingURL=use-scroll-settled-measurement.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_scrollSettle","useScrollSettledMeasurement","params","enabled","group","hasNextScreen","isAnimating","maybeMeasureAndStore","scrollSettle","useScrollSettleContext","settledSignal","useAnimatedReaction","value","signal","previousSignal","shouldUpdateSource","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAIO,MAAME,2BAA2B,GAAIC,MAM3C,IAAK;EACL,MAAM;IAAEC,OAAO;IAAEC,KAAK;IAAEC,aAAa;IAAEC,WAAW;IAAEC;EAAqB,CAAC,GACzEL,MAAM;EACP,MAAMM,YAAY,GAAG,IAAAC,oCAAsB,EAAC,CAAC;EAC7C,MAAMC,aAAa,GAAGF,YAAY,EAAEE,aAAa;EAEjD,IAAAC,0CAAmB,EAClB,MAAMD,aAAa,EAAEE,KAAK,IAAI,CAAC,EAC/B,CAACC,MAAM,EAAEC,cAAc,KAAK;IAC3B,SAAS;;IACT,IAAI,CAACX,OAAO,EAAE;IACd,IAAI,CAACC,KAAK,IAAI,CAACC,aAAa,IAAI,CAACK,aAAa,EAAE;IAChD,IAAIG,MAAM,KAAK,CAAC,IAAIA,MAAM,KAAKC,cAAc,EAAE;IAC/C,IAAIR,WAAW,CAACM,KAAK,EAAE;;IAEvB;IACA;IACAL,oBAAoB,CAAC;MAAEQ,kBAAkB,EAAE;IAAK,CAAC,CAAC;EACnD,CAAC,EACD,CACCZ,OAAO,EACPC,KAAK,EACLC,aAAa,EACbK,aAAa,EACbJ,WAAW,EACXC,oBAAoB,CAEtB,CAAC;AACF,CAAC;AAACS,OAAA,CAAAf,2BAAA,GAAAA,2BAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","_scrollSettle","_measurementRules","_useDeferredMeasurementTrigger","useScrollSettledMeasurement","params","enabled","group","hasNextScreen","isAnimating","maybeMeasureAndStore","scrollSettle","useScrollSettleContext","settledSignal","queueOrFlushMeasurement","useDeferredMeasurementTrigger","onFlush","intent","useAnimatedReaction","value","signal","previousSignal","shouldTriggerScrollSettledRefresh","hasSettledSignal","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AAEA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,8BAAA,GAAAH,OAAA;AAEO,MAAMI,2BAA2B,GAAIC,MAM3C,IAAK;EACL,MAAM;IAAEC,OAAO;IAAEC,KAAK;IAAEC,aAAa;IAAEC,WAAW;IAAEC;EAAqB,CAAC,GACzEL,MAAM;EACP,MAAMM,YAAY,GAAG,IAAAC,oCAAsB,EAAC,CAAC;EAC7C,MAAMC,aAAa,GAAGF,YAAY,EAAEE,aAAa;EACjD,MAAM;IAAEC;EAAwB,CAAC,GAAG,IAAAC,4DAA6B,EAAC;IACjET,OAAO;IACPG,WAAW;IACXO,OAAO,EAAEA,CAAA,KAAM;MACd,SAAS;;MACTN,oBAAoB,CAAC;QAAEO,MAAM,EAAE;MAAiB,CAAC,CAAC;IACnD;EACD,CAAC,CAAC;EAEF,IAAAC,0CAAmB,EAClB,MAAML,aAAa,EAAEM,KAAK,IAAI,CAAC,EAC/B,CAACC,MAAM,EAAEC,cAAc,KAAK;IAC3B,SAAS;;IACT,IACC,CAAC,IAAAC,mDAAiC,EAAC;MAClChB,OAAO;MACPC,KAAK;MACLC,aAAa;MACbe,gBAAgB,EAAE,CAAC,CAACV,aAAa;MACjCO,MAAM;MACNC;IACD,CAAC,CAAC,EACD;MACD;IACD;IACA;IACA;IACAP,uBAAuB,CAAC,CAAC;EAC1B,CAAC,EACD,CAACR,OAAO,EAAEC,KAAK,EAAEC,aAAa,EAAEK,aAAa,EAAEC,uBAAuB,CACvE,CAAC;AACF,CAAC;AAACU,OAAA,CAAApB,2BAAA,GAAAA,2BAAA","ignoreList":[]}
@@ -18,6 +18,7 @@ var _useAutoSourceMeasurement = require("./hooks/use-auto-source-measurement");
18
18
  var _useBoundaryMeasureAndStore = require("./hooks/use-boundary-measure-and-store");
19
19
  var _useBoundaryPresence = require("./hooks/use-boundary-presence");
20
20
  var _useGroupActiveMeasurement = require("./hooks/use-group-active-measurement");
21
+ var _useGroupActiveSourceMeasurement = require("./hooks/use-group-active-source-measurement");
21
22
  var _useInitialLayoutHandler = require("./hooks/use-initial-layout-handler");
22
23
  var _usePendingDestinationMeasurement = require("./hooks/use-pending-destination-measurement");
23
24
  var _usePendingDestinationRetryMeasurement = require("./hooks/use-pending-destination-retry-measurement");
@@ -25,13 +26,16 @@ var _useScrollSettledMeasurement = require("./hooks/use-scroll-settled-measureme
25
26
  var _buildBoundaryMatchKey = require("./utils/build-boundary-match-key");
26
27
  var _jsxRuntime = require("react/jsx-runtime");
27
28
  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); }
28
- const setGroupActiveIdOnUI = (group, id) => {
29
+ const setGroupSelectionOnUI = (group, id) => {
29
30
  "worklet";
30
31
 
31
32
  _bounds.BoundStore.setGroupActiveId(group, id);
32
33
  };
33
- function createBoundaryComponent(Wrapped) {
34
- const AnimatedComponent = _reactNativeReanimated.default.createAnimatedComponent(Wrapped);
34
+ function createBoundaryComponent(Wrapped, options = {}) {
35
+ const {
36
+ alreadyAnimated = false
37
+ } = options;
38
+ const AnimatedComponent = alreadyAnimated ? Wrapped : _reactNativeReanimated.default.createAnimatedComponent(Wrapped);
35
39
  const Inner = /*#__PURE__*/(0, _react.forwardRef)((props, _ref) => {
36
40
  const {
37
41
  enabled = true,
@@ -152,6 +156,18 @@ function createBoundaryComponent(Wrapped) {
152
156
  maybeMeasureAndStore
153
157
  });
154
158
 
159
+ // Source-side analog for grouped retargeting: when an unfocused/source
160
+ // boundary becomes the active member, refresh its snapshot (and source
161
+ // link when one exists) so close transitions don't use stale geometry.
162
+ (0, _useGroupActiveSourceMeasurement.useGroupActiveSourceMeasurement)({
163
+ enabled: runtimeEnabled,
164
+ group,
165
+ id,
166
+ hasNextScreen,
167
+ isAnimating,
168
+ maybeMeasureAndStore
169
+ });
170
+
155
171
  // While idle on source screens, re-measure after scroll settles so a later
156
172
  // close transition starts from up-to-date source geometry.
157
173
  (0, _useScrollSettledMeasurement.useScrollSettledMeasurement)({
@@ -175,10 +191,10 @@ function createBoundaryComponent(Wrapped) {
175
191
  const handlePress = (0, _react.useCallback)((...args) => {
176
192
  // Press path has priority: capture source before user onPress/navigation.
177
193
  if (group) {
178
- (0, _reactNativeReanimated.runOnUI)(setGroupActiveIdOnUI)(group, String(id));
194
+ (0, _reactNativeReanimated.runOnUI)(setGroupSelectionOnUI)(group, String(id));
179
195
  }
180
196
  (0, _reactNativeReanimated.runOnUI)(maybeMeasureAndStore)({
181
- shouldSetSource: true
197
+ intent: "capture-source"
182
198
  });
183
199
  if (typeof onPress === "function") {
184
200
  onPress(...args);
@@ -223,8 +239,6 @@ const Boundary = exports.Boundary = {
223
239
  /** Passive boundary wrapper (no built-in press semantics). */
224
240
  View: BoundaryView,
225
241
  /** Pressable boundary wrapper with press-priority source capture. */
226
- Pressable: BoundaryPressable,
227
- /** Factory for custom boundary wrappers. */
228
- createBoundaryComponent
242
+ Pressable: BoundaryPressable
229
243
  };
230
244
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_useAssociatedStyle","_layoutAnchor","_descriptors","_animation","_bounds","_styles","_useAutoSourceMeasurement","_useBoundaryMeasureAndStore","_useBoundaryPresence","_useGroupActiveMeasurement","_useInitialLayoutHandler","_usePendingDestinationMeasurement","_usePendingDestinationRetryMeasurement","_useScrollSettledMeasurement","_buildBoundaryMatchKey","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","setGroupActiveIdOnUI","group","id","BoundStore","setGroupActiveId","createBoundaryComponent","Wrapped","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","_ref","enabled","anchor","scaleMode","target","method","style","onPress","rest","sharedBoundTag","buildBoundaryMatchKey","animatedRef","useAnimatedRef","previousScreenKey","preferredSourceScreenKey","currentScreenKey","nextScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","hasConfiguredInterpolator","useDescriptorDerivations","runtimeEnabled","hasNextScreen","shouldUpdateDestination","layoutAnchor","useLayoutAnchorContext","boundaryConfig","useMemo","undefined","isAnimating","AnimationStore","getRouteAnimation","progress","preparedStyles","prepareStyleForBounds","associatedStyles","useAssociatedStyles","resetTransformOnUnset","waitForFirstResolvedStyle","maybeMeasureAndStore","useBoundaryMeasureAndStore","shouldRunDestinationEffects","useBoundaryPresence","useAutoSourceMeasurement","usePendingDestinationMeasurement","expectedSourceScreenKey","usePendingDestinationRetryMeasurement","animating","useGroupActiveMeasurement","useScrollSettledMeasurement","useInitialLayoutHandler","handlePress","useCallback","args","runOnUI","String","shouldSetSource","resolvedOnPress","jsx","ref","collapsable","memo","BoundaryView","RNView","displayName","BoundaryPressable","Pressable","Boundary","exports","View"],"sourceRoot":"../../../../../src","sources":["shared/components/create-boundary-component/index.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,yBAAA,GAAAV,OAAA;AACA,IAAAW,2BAAA,GAAAX,OAAA;AACA,IAAAY,oBAAA,GAAAZ,OAAA;AACA,IAAAa,0BAAA,GAAAb,OAAA;AACA,IAAAc,wBAAA,GAAAd,OAAA;AACA,IAAAe,iCAAA,GAAAf,OAAA;AACA,IAAAgB,sCAAA,GAAAhB,OAAA;AACA,IAAAiB,4BAAA,GAAAjB,OAAA;AAEA,IAAAkB,sBAAA,GAAAlB,OAAA;AAAyE,IAAAmB,WAAA,GAAAnB,OAAA;AAAA,SAAAG,wBAAAiB,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAnB,uBAAA,YAAAA,CAAAiB,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG;EACvB;EACAE,IAAI,EAAEP,YAAY;EAClB;EACAI,SAAS,EAAED,iBAAiB;EAC5B;EACA1E;AACD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_interopRequireWildcard","_useAssociatedStyle","_layoutAnchor","_descriptors","_animation","_bounds","_styles","_useAutoSourceMeasurement","_useBoundaryMeasureAndStore","_useBoundaryPresence","_useGroupActiveMeasurement","_useGroupActiveSourceMeasurement","_useInitialLayoutHandler","_usePendingDestinationMeasurement","_usePendingDestinationRetryMeasurement","_useScrollSettledMeasurement","_buildBoundaryMatchKey","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","setGroupSelectionOnUI","group","id","BoundStore","setGroupActiveId","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","_ref","enabled","anchor","scaleMode","target","method","style","onPress","rest","sharedBoundTag","buildBoundaryMatchKey","animatedRef","useAnimatedRef","previousScreenKey","preferredSourceScreenKey","currentScreenKey","nextScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","hasConfiguredInterpolator","useDescriptorDerivations","runtimeEnabled","hasNextScreen","shouldUpdateDestination","layoutAnchor","useLayoutAnchorContext","boundaryConfig","useMemo","undefined","isAnimating","AnimationStore","getRouteAnimation","progress","preparedStyles","prepareStyleForBounds","associatedStyles","useAssociatedStyles","resetTransformOnUnset","waitForFirstResolvedStyle","maybeMeasureAndStore","useBoundaryMeasureAndStore","shouldRunDestinationEffects","useBoundaryPresence","useAutoSourceMeasurement","usePendingDestinationMeasurement","expectedSourceScreenKey","usePendingDestinationRetryMeasurement","animating","useGroupActiveMeasurement","useGroupActiveSourceMeasurement","useScrollSettledMeasurement","useInitialLayoutHandler","handlePress","useCallback","args","runOnUI","String","intent","resolvedOnPress","jsx","ref","collapsable","memo","BoundaryView","RNView","displayName","BoundaryPressable","Pressable","Boundary","exports","View"],"sourceRoot":"../../../../../src","sources":["shared/components/create-boundary-component/index.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,yBAAA,GAAAV,OAAA;AACA,IAAAW,2BAAA,GAAAX,OAAA;AACA,IAAAY,oBAAA,GAAAZ,OAAA;AACA,IAAAa,0BAAA,GAAAb,OAAA;AACA,IAAAc,gCAAA,GAAAd,OAAA;AACA,IAAAe,wBAAA,GAAAf,OAAA;AACA,IAAAgB,iCAAA,GAAAhB,OAAA;AACA,IAAAiB,sCAAA,GAAAjB,OAAA;AACA,IAAAkB,4BAAA,GAAAlB,OAAA;AAEA,IAAAmB,sBAAA,GAAAnB,OAAA;AAAyE,IAAAoB,WAAA,GAAApB,OAAA;AAAA,SAAAG,wBAAAkB,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAApB,uBAAA,YAAAA,CAAAkB,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,GAA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BAA0B;AAErD,MAAMC,iBAAiB,GAAG7E,uBAAuB,CAAC8E,sBAAS,CAAC;AAC5DD,iBAAiB,CAACD,WAAW,GAAG,+BAA+B;;AAE/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,QAAQ,GAAAC,OAAA,CAAAD,QAAA,GAAG;EACvB;EACAE,IAAI,EAAEP,YAAY;EAClB;EACAI,SAAS,EAAED;AACZ,CAAC","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":[]}
@@ -17,9 +17,10 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
17
17
 
18
18
  function createTransitionAwareComponent(Wrapped, options = {}) {
19
19
  const {
20
- isScrollable = false
20
+ isScrollable = false,
21
+ alreadyAnimated = false
21
22
  } = options;
22
- const AnimatedComponent = _reactNativeReanimated.default.createAnimatedComponent(Wrapped);
23
+ const AnimatedComponent = alreadyAnimated ? Wrapped : _reactNativeReanimated.default.createAnimatedComponent(Wrapped);
23
24
  const ScrollableInner = /*#__PURE__*/(0, _react.forwardRef)((props, ref) => {
24
25
  const {
25
26
  remeasureOnFocus: _remeasureOnFocus,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNativeGestureHandler","_reactNativeReanimated","_interopRequireWildcard","_useAssociatedStyle","_useScrollRegistry","_registerBounds","_scrollSettle","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","createTransitionAwareComponent","Wrapped","options","isScrollable","AnimatedComponent","Animated","createAnimatedComponent","ScrollableInner","forwardRef","props","ref","remeasureOnFocus","_remeasureOnFocus","onScroll","userOnScroll","onMomentumScrollEnd","userOnMomentumScrollEnd","onScrollEndDrag","userOnScrollEndDrag","scrollableProps","settledSignal","useSharedValue","emitScrollSettled","useCallback","runOnUI","value","scrollDirection","horizontal","scrollHandler","onContentSizeChange","onLayout","nativeGesture","useScrollRegistry","direction","composedScrollHandler","useComposedEventHandler","handleMomentumScrollEnd","event","handleScrollEndDrag","velocityX","Math","abs","nativeEvent","velocity","x","velocityY","y","scrollableComponent","jsx","scrollEventThrottle","ScrollSettleProvider","children","GestureDetector","gesture","Inner","_","style","sharedBoundTag","styleId","onPress","rest","animatedRef","useAnimatedRef","associatedStyles","associatedProps","useAssociatedStyles","id","resetTransformOnUnset","waitForFirstResolvedStyle","RegisterBoundsProvider","captureActiveOnPress","handleInitialLayout","animatedProps","collapsable","memo"],"sourceRoot":"../../../../src","sources":["shared/components/create-transition-aware-component.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,0BAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAMA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AAA2E,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAG,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,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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A,cAAe;MAC/B9C,gBAAgB,EAAEA,gBAAiB;MAAAwC,QAAA,EAElCA,CAAC;QAAEmB,oBAAoB;QAAEC;MAAoB,CAAC,kBAC9C,IAAA3F,WAAA,CAAAoE,GAAA,EAAC5C,iBAAiB;QAAA,GACZwD,IAAI;QACTlD,GAAG,EAAEmD,WAAY;QACjBL,KAAK,EAAE,CAACA,KAAK,EAAEO,gBAAgB,CAAE;QACjCS,aAAa,EAAER,eAAgB;QAC/BL,OAAO,EAAEW,oBAAqB;QAC9BxC,QAAQ,EAAE,IAAAN,8BAAO,EAAC+C,mBAAmB,CAAE;QACvCE,WAAW,EAAE,CAAChB,cAAe;QAAAN,QAAA,EAE5BA;MAAQ,CACS;IACnB,CACsB,CAAC;EAE3B,CAAC,CAAC;EAEF,IAAIhD,YAAY,EAAE;IACjB,oBAAO,IAAAuE,WAAI,EAACnE,eAAe,CAAC;EAM7B;EAEA,oBAAO,IAAAmE,WAAI,EAACpB,KAAK,CAAC;AAMnB","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNativeGestureHandler","_reactNativeReanimated","_interopRequireWildcard","_useAssociatedStyle","_useScrollRegistry","_registerBounds","_scrollSettle","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","createTransitionAwareComponent","Wrapped","options","isScrollable","alreadyAnimated","AnimatedComponent","Animated","createAnimatedComponent","ScrollableInner","forwardRef","props","ref","remeasureOnFocus","_remeasureOnFocus","onScroll","userOnScroll","onMomentumScrollEnd","userOnMomentumScrollEnd","onScrollEndDrag","userOnScrollEndDrag","scrollableProps","settledSignal","useSharedValue","emitScrollSettled","useCallback","runOnUI","value","scrollDirection","horizontal","scrollHandler","onContentSizeChange","onLayout","nativeGesture","useScrollRegistry","direction","composedScrollHandler","useComposedEventHandler","handleMomentumScrollEnd","event","handleScrollEndDrag","velocityX","Math","abs","nativeEvent","velocity","x","velocityY","y","scrollableComponent","jsx","scrollEventThrottle","ScrollSettleProvider","children","GestureDetector","gesture","Inner","_","style","sharedBoundTag","styleId","onPress","rest","animatedRef","useAnimatedRef","associatedStyles","associatedProps","useAssociatedStyles","id","resetTransformOnUnset","waitForFirstResolvedStyle","RegisterBoundsProvider","captureActiveOnPress","handleInitialLayout","animatedProps","collapsable","memo"],"sourceRoot":"../../../../src","sources":["shared/components/create-transition-aware-component.tsx"],"mappings":";;;;;;AAEA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,0BAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,uBAAA,CAAAH,OAAA;AAMA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,kBAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,GAAAP,OAAA;AAA2E,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAG,wBAAAM,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAR,uBAAA,YAAAA,CAAAM,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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