react-native-screen-transitions 3.4.0-alpha.7 → 3.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js +6 -4
  2. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
  3. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +22 -60
  4. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  5. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
  6. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  7. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +56 -41
  8. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  9. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
  10. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
  11. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +4 -23
  12. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
  13. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +111 -2
  14. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  15. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js +69 -0
  16. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
  17. package/lib/commonjs/shared/components/create-boundary-component/index.js +10 -5
  18. package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
  19. package/lib/commonjs/shared/components/create-transition-aware-component.js +8 -32
  20. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  21. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +11 -9
  22. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  23. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +7 -5
  24. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
  25. package/lib/commonjs/shared/components/screen-lifecycle/index.js +3 -1
  26. package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -1
  27. package/lib/commonjs/shared/constants.js +17 -3
  28. package/lib/commonjs/shared/constants.js.map +1 -1
  29. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +43 -0
  30. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
  31. package/lib/commonjs/shared/index.js +6 -0
  32. package/lib/commonjs/shared/index.js.map +1 -1
  33. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +7 -0
  34. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
  35. package/lib/commonjs/shared/providers/register-bounds.provider.js +9 -1
  36. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  37. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
  38. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  39. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
  40. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  41. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +1 -11
  42. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
  43. package/lib/commonjs/shared/stores/animation.store.js +9 -3
  44. package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
  45. package/lib/commonjs/shared/stores/bounds/internals/clear.js +23 -167
  46. package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
  47. package/lib/commonjs/shared/stores/bounds/internals/presence.js +0 -3
  48. package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -1
  49. package/lib/commonjs/shared/stores/bounds/internals/registry.js +18 -7
  50. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
  51. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +7 -51
  52. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  53. package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -83
  54. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  55. package/lib/commonjs/shared/utils/animation/animate-to-progress.js +10 -0
  56. package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
  57. package/lib/commonjs/shared/utils/bounds/constants.js.map +1 -0
  58. package/lib/commonjs/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +5 -5
  59. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
  60. package/lib/commonjs/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +6 -6
  61. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
  62. package/lib/commonjs/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
  63. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
  64. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +70 -0
  65. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
  66. package/lib/commonjs/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
  67. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
  68. package/lib/commonjs/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +14 -20
  69. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
  70. package/lib/commonjs/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
  71. package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
  72. package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
  73. package/lib/commonjs/shared/utils/bounds/index.js +16 -44
  74. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  75. package/lib/commonjs/shared/utils/bounds/zoom/build.js +234 -50
  76. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
  77. package/lib/commonjs/shared/utils/bounds/zoom/config.js +10 -1
  78. package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -1
  79. package/lib/commonjs/shared/utils/bounds/zoom/math.js +34 -1
  80. package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +1 -1
  81. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +6 -4
  82. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -1
  83. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +23 -61
  84. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  85. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
  86. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  87. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +54 -39
  88. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  89. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
  90. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
  91. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +4 -23
  92. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
  93. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +114 -4
  94. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  95. package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js +64 -0
  96. package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
  97. package/lib/module/shared/components/create-boundary-component/index.js +10 -5
  98. package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
  99. package/lib/module/shared/components/create-transition-aware-component.js +10 -34
  100. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  101. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +11 -9
  102. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  103. package/lib/module/shared/components/screen-container/layers/backdrop.js +7 -5
  104. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  105. package/lib/module/shared/components/screen-lifecycle/index.js +3 -1
  106. package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
  107. package/lib/module/shared/constants.js +16 -2
  108. package/lib/module/shared/constants.js.map +1 -1
  109. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +39 -0
  110. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
  111. package/lib/module/shared/index.js +1 -1
  112. package/lib/module/shared/index.js.map +1 -1
  113. package/lib/module/shared/providers/gestures/handlers/use-handlers.js +7 -0
  114. package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
  115. package/lib/module/shared/providers/register-bounds.provider.js +9 -1
  116. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  117. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
  118. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  119. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
  120. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  121. package/lib/module/shared/providers/screen/styles/styles.provider.js +1 -11
  122. package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
  123. package/lib/module/shared/stores/animation.store.js +9 -3
  124. package/lib/module/shared/stores/animation.store.js.map +1 -1
  125. package/lib/module/shared/stores/bounds/internals/clear.js +24 -168
  126. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
  127. package/lib/module/shared/stores/bounds/internals/presence.js +1 -4
  128. package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -1
  129. package/lib/module/shared/stores/bounds/internals/registry.js +19 -8
  130. package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
  131. package/lib/module/shared/stores/bounds/internals/resolver.js +8 -52
  132. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  133. package/lib/module/shared/stores/bounds/internals/state.js +0 -78
  134. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  135. package/lib/module/shared/utils/animation/animate-to-progress.js +10 -0
  136. package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
  137. package/lib/module/shared/utils/bounds/constants.js.map +1 -0
  138. package/lib/module/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +3 -3
  139. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
  140. package/lib/module/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +5 -5
  141. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
  142. package/lib/module/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
  143. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
  144. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +64 -0
  145. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
  146. package/lib/module/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
  147. package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
  148. package/lib/module/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +12 -18
  149. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
  150. package/lib/module/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
  151. package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
  152. package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
  153. package/lib/module/shared/utils/bounds/index.js +14 -42
  154. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  155. package/lib/module/shared/utils/bounds/zoom/build.js +238 -54
  156. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
  157. package/lib/module/shared/utils/bounds/zoom/config.js +9 -0
  158. package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -1
  159. package/lib/module/shared/utils/bounds/zoom/math.js +31 -0
  160. package/lib/module/shared/utils/bounds/zoom/math.js.map +1 -1
  161. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
  162. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
  163. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
  164. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +17 -11
  165. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
  166. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +3 -1
  167. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -1
  168. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +1 -2
  169. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -1
  170. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +20 -1
  171. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -1
  172. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts +12 -0
  173. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts.map +1 -0
  174. package/lib/typescript/shared/components/create-boundary-component/index.d.ts +10 -4
  175. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
  176. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +1 -1
  177. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
  178. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  179. package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -1
  180. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  181. package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -1
  182. package/lib/typescript/shared/constants.d.ts +33 -1
  183. package/lib/typescript/shared/constants.d.ts.map +1 -1
  184. package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts +13 -0
  185. package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +1 -0
  186. package/lib/typescript/shared/index.d.ts +3 -3
  187. package/lib/typescript/shared/index.d.ts.map +1 -1
  188. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
  189. package/lib/typescript/shared/providers/register-bounds.provider.d.ts +7 -0
  190. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  191. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +3 -0
  192. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
  193. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +3 -0
  194. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
  195. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
  196. package/lib/typescript/shared/stores/animation.store.d.ts +5 -2
  197. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  198. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
  199. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +1 -1
  200. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
  201. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  202. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +0 -3
  203. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  204. package/lib/typescript/shared/stores/bounds/types.d.ts +0 -2
  205. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  206. package/lib/typescript/shared/types/animation.types.d.ts +11 -0
  207. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  208. package/lib/typescript/shared/types/bounds.types.d.ts +106 -1
  209. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  210. package/lib/typescript/shared/types/index.d.ts +1 -1
  211. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  212. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +2 -1
  213. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
  214. package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -0
  215. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +7 -0
  216. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -0
  217. package/lib/typescript/shared/utils/bounds/helpers/{interpolators.d.ts → create-interpolators.d.ts} +3 -3
  218. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -0
  219. package/lib/typescript/shared/utils/bounds/helpers/{link-accessor.d.ts → create-link-accessor.d.ts} +1 -1
  220. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -0
  221. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +20 -0
  222. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -0
  223. package/lib/typescript/shared/utils/bounds/helpers/{style-composers.d.ts → styles/composers.d.ts} +4 -4
  224. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -0
  225. package/lib/typescript/shared/utils/bounds/helpers/{compute-bounds-styles.d.ts → styles/compute.d.ts} +3 -3
  226. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -0
  227. package/lib/typescript/shared/utils/bounds/helpers/{interpolate-style.d.ts → styles/interpolate-link-style.d.ts} +2 -2
  228. package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts.map +1 -0
  229. package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -0
  230. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  231. package/lib/typescript/shared/utils/bounds/types/options.d.ts +3 -2
  232. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  233. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
  234. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +9 -0
  235. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -1
  236. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +17 -0
  237. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +1 -1
  238. package/package.json +1 -1
  239. package/src/shared/components/create-boundary-component/components/boundary-target.tsx +6 -4
  240. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +28 -60
  241. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +5 -1
  242. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +72 -53
  243. package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +19 -3
  244. package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +5 -34
  245. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +180 -6
  246. package/src/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.ts +110 -0
  247. package/src/shared/components/create-boundary-component/index.tsx +10 -5
  248. package/src/shared/components/create-boundary-component/types.ts +1 -2
  249. package/src/shared/components/create-transition-aware-component.tsx +10 -47
  250. package/src/shared/components/screen-container/hooks/use-content-layout.ts +10 -17
  251. package/src/shared/components/screen-container/layers/backdrop.tsx +6 -9
  252. package/src/shared/components/screen-lifecycle/index.tsx +1 -4
  253. package/src/shared/constants.ts +11 -1
  254. package/src/shared/hooks/reanimated/use-animated-debounce.ts +56 -0
  255. package/src/shared/index.ts +3 -0
  256. package/src/shared/providers/gestures/handlers/use-handlers.ts +9 -0
  257. package/src/shared/providers/register-bounds.provider.tsx +8 -1
  258. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +27 -1
  259. package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +6 -0
  260. package/src/shared/providers/screen/styles/styles.provider.tsx +1 -12
  261. package/src/shared/stores/animation.store.ts +11 -2
  262. package/src/shared/stores/bounds/internals/clear.ts +47 -220
  263. package/src/shared/stores/bounds/internals/presence.ts +1 -4
  264. package/src/shared/stores/bounds/internals/registry.ts +25 -14
  265. package/src/shared/stores/bounds/internals/resolver.ts +7 -84
  266. package/src/shared/stores/bounds/internals/state.ts +0 -98
  267. package/src/shared/stores/bounds/types.ts +0 -2
  268. package/src/shared/types/animation.types.ts +13 -0
  269. package/src/shared/types/bounds.types.ts +108 -1
  270. package/src/shared/types/index.ts +2 -0
  271. package/src/shared/utils/animation/animate-to-progress.ts +11 -1
  272. package/src/shared/utils/bounds/{helpers/constants.ts → constants.ts} +1 -1
  273. package/src/shared/utils/bounds/helpers/{resolve-bound-tag.ts → create-bound-tag.ts} +2 -2
  274. package/src/shared/utils/bounds/helpers/{interpolators.ts → create-interpolators.ts} +19 -12
  275. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +100 -0
  276. package/src/shared/utils/bounds/helpers/{style-composers.ts → styles/composers.ts} +119 -53
  277. package/src/shared/utils/bounds/helpers/{compute-bounds-styles.ts → styles/compute.ts} +10 -20
  278. package/src/shared/utils/bounds/helpers/{interpolate-style.ts → styles/interpolate-link-style.ts} +9 -4
  279. package/src/shared/utils/bounds/index.ts +13 -53
  280. package/src/shared/utils/bounds/types/options.ts +3 -2
  281. package/src/shared/utils/bounds/zoom/build.ts +316 -95
  282. package/src/shared/utils/bounds/zoom/config.ts +11 -0
  283. package/src/shared/utils/bounds/zoom/math.ts +57 -0
  284. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -54
  285. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
  286. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -122
  287. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
  288. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -72
  289. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
  290. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -66
  291. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
  292. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -58
  293. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
  294. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -53
  295. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
  296. package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js +0 -41
  297. package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
  298. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
  299. package/lib/commonjs/shared/utils/bounds/helpers/constants.js.map +0 -1
  300. package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
  301. package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js +0 -20
  302. package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js.map +0 -1
  303. package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +0 -1
  304. package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
  305. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
  306. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +0 -1
  307. package/lib/commonjs/shared/utils/bounds/helpers/styles.js.map +0 -1
  308. package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -49
  309. package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
  310. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -118
  311. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
  312. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -67
  313. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
  314. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -61
  315. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
  316. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -53
  317. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
  318. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -48
  319. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
  320. package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js +0 -36
  321. package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
  322. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
  323. package/lib/module/shared/utils/bounds/helpers/constants.js.map +0 -1
  324. package/lib/module/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
  325. package/lib/module/shared/utils/bounds/helpers/interpolate.js +0 -16
  326. package/lib/module/shared/utils/bounds/helpers/interpolate.js.map +0 -1
  327. package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +0 -1
  328. package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
  329. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
  330. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +0 -1
  331. package/lib/module/shared/utils/bounds/helpers/styles.js.map +0 -1
  332. package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts +0 -11
  333. package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts.map +0 -1
  334. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +0 -17
  335. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +0 -1
  336. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts +0 -11
  337. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts.map +0 -1
  338. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts +0 -10
  339. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +0 -1
  340. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +0 -11
  341. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +0 -1
  342. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +0 -10
  343. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +0 -1
  344. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +0 -14
  345. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +0 -1
  346. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +0 -1
  347. package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts.map +0 -1
  348. package/lib/typescript/shared/utils/bounds/helpers/interpolate-style.d.ts.map +0 -1
  349. package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts +0 -2
  350. package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts.map +0 -1
  351. package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +0 -1
  352. package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +0 -1
  353. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +0 -7
  354. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +0 -1
  355. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +0 -1
  356. package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +0 -1
  357. package/src/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.ts +0 -58
  358. package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +0 -162
  359. package/src/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts +0 -82
  360. package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +0 -92
  361. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +0 -87
  362. package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +0 -49
  363. package/src/shared/utils/bounds/helpers/build-bounds-options.ts +0 -48
  364. package/src/shared/utils/bounds/helpers/interpolate.ts +0 -19
  365. /package/lib/commonjs/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
  366. /package/lib/commonjs/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
  367. /package/lib/module/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
  368. /package/lib/module/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
  369. /package/lib/typescript/shared/utils/bounds/{helpers/constants.d.ts → constants.d.ts} +0 -0
  370. /package/lib/typescript/shared/utils/bounds/helpers/{styles.d.ts → styles/styles.d.ts} +0 -0
  371. /package/src/shared/utils/bounds/helpers/{link-accessor.ts → create-link-accessor.ts} +0 -0
  372. /package/src/shared/utils/bounds/helpers/{styles.ts → styles/styles.ts} +0 -0
@@ -16,93 +16,9 @@ const hasAnyKeys = record => {
16
16
  }
17
17
  return false;
18
18
  };
19
- const countRegistryMatches = (screenKey, matchByAncestor) => {
19
+ const clearRegistry = (shouldClearSnapshot, shouldClearLink) => {
20
20
  "worklet";
21
21
 
22
- const currentRegistry = _state.registry.value;
23
- let snapshots = 0;
24
- let links = 0;
25
- for (const tag in currentRegistry) {
26
- const tagState = currentRegistry[tag];
27
- for (const snapshotKey in tagState.snapshots) {
28
- const snapshot = tagState.snapshots[snapshotKey];
29
- const matched = matchByAncestor ? snapshotKey === screenKey || (snapshot.ancestorKeys?.includes(screenKey) ?? false) : snapshotKey === screenKey;
30
- if (matched) snapshots++;
31
- }
32
- for (let i = 0; i < tagState.linkStack.length; i++) {
33
- const link = tagState.linkStack[i];
34
- if ((0, _matching.matchesScreenKey)(link.source, screenKey) || (0, _matching.matchesScreenKey)(link.destination, screenKey)) {
35
- links++;
36
- }
37
- }
38
- }
39
- return {
40
- snapshots,
41
- links
42
- };
43
- };
44
- const countRegistryMatchesByBranch = branchNavigatorKey => {
45
- "worklet";
46
-
47
- const currentRegistry = _state.registry.value;
48
- let snapshots = 0;
49
- let links = 0;
50
- for (const tag in currentRegistry) {
51
- const tagState = currentRegistry[tag];
52
- for (const snapshotKey in tagState.snapshots) {
53
- const snapshot = tagState.snapshots[snapshotKey];
54
- const matched = snapshot.navigatorKey === branchNavigatorKey || (snapshot.ancestorNavigatorKeys?.includes(branchNavigatorKey) ?? false);
55
- if (matched) snapshots++;
56
- }
57
- for (let i = 0; i < tagState.linkStack.length; i++) {
58
- const link = tagState.linkStack[i];
59
- if ((0, _matching.matchesNavigatorKey)(link.source, branchNavigatorKey) || (0, _matching.matchesNavigatorKey)(link.destination, branchNavigatorKey)) {
60
- links++;
61
- }
62
- }
63
- }
64
- return {
65
- snapshots,
66
- links
67
- };
68
- };
69
- const countPresenceMatches = (screenKey, matchByAncestor) => {
70
- "worklet";
71
-
72
- const currentPresence = _state.presence.value;
73
- let matches = 0;
74
- for (const tag in currentPresence) {
75
- const tagEntries = currentPresence[tag];
76
- for (const entryScreenKey in tagEntries) {
77
- const entry = tagEntries[entryScreenKey];
78
- const matched = matchByAncestor ? entryScreenKey === screenKey || (entry.ancestorKeys?.includes(screenKey) ?? false) : entryScreenKey === screenKey;
79
- if (matched) matches++;
80
- }
81
- }
82
- return matches;
83
- };
84
- const countPresenceMatchesByBranch = branchNavigatorKey => {
85
- "worklet";
86
-
87
- const currentPresence = _state.presence.value;
88
- let matches = 0;
89
- for (const tag in currentPresence) {
90
- const tagEntries = currentPresence[tag];
91
- for (const entryScreenKey in tagEntries) {
92
- const entry = tagEntries[entryScreenKey];
93
- const matched = entry.navigatorKey === branchNavigatorKey || (entry.ancestorNavigatorKeys?.includes(branchNavigatorKey) ?? false);
94
- if (matched) matches++;
95
- }
96
- }
97
- return matches;
98
- };
99
- const clearRegistry = params => {
100
- "worklet";
101
-
102
- const {
103
- shouldRemoveSnapshot,
104
- shouldRemoveLink
105
- } = params;
106
22
  _state.registry.modify(state => {
107
23
  "worklet";
108
24
 
@@ -110,13 +26,13 @@ const clearRegistry = params => {
110
26
  const tagState = state[tag];
111
27
  for (const snapshotKey in tagState.snapshots) {
112
28
  const snapshot = tagState.snapshots[snapshotKey];
113
- if (shouldRemoveSnapshot(snapshotKey, snapshot)) {
29
+ if (shouldClearSnapshot(snapshotKey, snapshot)) {
114
30
  delete tagState.snapshots[snapshotKey];
115
31
  }
116
32
  }
117
33
  for (let i = tagState.linkStack.length - 1; i >= 0; i--) {
118
34
  const link = tagState.linkStack[i];
119
- if (shouldRemoveLink(link)) {
35
+ if (shouldClearLink(link)) {
120
36
  tagState.linkStack.splice(i, 1);
121
37
  }
122
38
  }
@@ -127,24 +43,7 @@ const clearRegistry = params => {
127
43
  return state;
128
44
  });
129
45
  };
130
- const clearPresenceDirect = screenKey => {
131
- "worklet";
132
-
133
- _state.presence.modify(state => {
134
- "worklet";
135
-
136
- for (const tag in state) {
137
- const tagEntries = state[tag];
138
- if (!tagEntries[screenKey]) continue;
139
- delete tagEntries[screenKey];
140
- if (!hasAnyKeys(tagEntries)) {
141
- delete state[tag];
142
- }
143
- }
144
- return state;
145
- });
146
- };
147
- const clearPresenceByAncestor = ancestorKey => {
46
+ const clearPresence = shouldClearPresence => {
148
47
  "worklet";
149
48
 
150
49
  _state.presence.modify(state => {
@@ -154,8 +53,7 @@ const clearPresenceByAncestor = ancestorKey => {
154
53
  const tagEntries = state[tag];
155
54
  for (const entryScreenKey in tagEntries) {
156
55
  const entry = tagEntries[entryScreenKey];
157
- const shouldRemove = entryScreenKey === ancestorKey || (entry.ancestorKeys?.includes(ancestorKey) ?? false);
158
- if (shouldRemove) {
56
+ if (shouldClearPresence(entryScreenKey, entry)) {
159
57
  delete tagEntries[entryScreenKey];
160
58
  }
161
59
  }
@@ -166,82 +64,40 @@ const clearPresenceByAncestor = ancestorKey => {
166
64
  return state;
167
65
  });
168
66
  };
169
- const clearPresenceByBranch = branchNavigatorKey => {
67
+ const performClear = (shouldClearSnapshot, shouldClearLink, shouldClearPresence) => {
170
68
  "worklet";
171
69
 
172
- _state.presence.modify(state => {
173
- "worklet";
174
-
175
- for (const tag in state) {
176
- const tagEntries = state[tag];
177
- for (const entryScreenKey in tagEntries) {
178
- const entry = tagEntries[entryScreenKey];
179
- const shouldRemove = entry.navigatorKey === branchNavigatorKey || (entry.ancestorNavigatorKeys?.includes(branchNavigatorKey) ?? false);
180
- if (shouldRemove) {
181
- delete tagEntries[entryScreenKey];
182
- }
183
- }
184
- if (!hasAnyKeys(tagEntries)) {
185
- delete state[tag];
186
- }
187
- }
188
- return state;
189
- });
70
+ clearRegistry(shouldClearSnapshot, shouldClearLink);
71
+ clearPresence(shouldClearPresence);
190
72
  };
191
73
  function clear(screenKey) {
192
74
  "worklet";
193
75
 
194
- const beforeMatches = countRegistryMatches(screenKey, false);
195
- const beforePresenceMatches = countPresenceMatches(screenKey, false);
196
- clearRegistry({
197
- shouldRemoveSnapshot: snapshotKey => snapshotKey === screenKey,
198
- shouldRemoveLink: link => {
199
- return (0, _matching.matchesScreenKey)(link.source, screenKey) || (0, _matching.matchesScreenKey)(link.destination, screenKey);
200
- }
201
- });
202
- clearPresenceDirect(screenKey);
203
- const afterMatches = countRegistryMatches(screenKey, false);
204
- const afterPresenceMatches = countPresenceMatches(screenKey, false);
205
- (0, _state.debugClearLog)(`clear(${screenKey}) snapshots=${beforeMatches.snapshots}->${afterMatches.snapshots} links=${beforeMatches.links}->${afterMatches.links} presence=${beforePresenceMatches}->${afterPresenceMatches}`);
206
- (0, _state.debugStoreSizeLog)(`clear(${screenKey})`);
76
+ performClear(snapshotKey => snapshotKey === screenKey, link => {
77
+ return (0, _matching.matchesScreenKey)(link.source, screenKey) || (0, _matching.matchesScreenKey)(link.destination, screenKey);
78
+ }, entryScreenKey => entryScreenKey === screenKey);
207
79
  }
208
80
  function clearByAncestor(ancestorKey) {
209
81
  "worklet";
210
82
 
211
- const beforeMatches = countRegistryMatches(ancestorKey, true);
212
- const beforePresenceMatches = countPresenceMatches(ancestorKey, true);
213
- clearRegistry({
214
- shouldRemoveSnapshot: (snapshotKey, snapshot) => {
215
- return snapshotKey === ancestorKey || (snapshot.ancestorKeys?.includes(ancestorKey) ?? false);
216
- },
217
- shouldRemoveLink: link => {
218
- return (0, _matching.matchesScreenKey)(link.source, ancestorKey) || (0, _matching.matchesScreenKey)(link.destination, ancestorKey);
219
- }
83
+ performClear((snapshotKey, snapshot) => {
84
+ return snapshotKey === ancestorKey || (snapshot.ancestorKeys?.includes(ancestorKey) ?? false);
85
+ }, link => {
86
+ return (0, _matching.matchesScreenKey)(link.source, ancestorKey) || (0, _matching.matchesScreenKey)(link.destination, ancestorKey);
87
+ }, (entryScreenKey, entry) => {
88
+ return entryScreenKey === ancestorKey || (entry.ancestorKeys?.includes(ancestorKey) ?? false);
220
89
  });
221
- clearPresenceByAncestor(ancestorKey);
222
- const afterMatches = countRegistryMatches(ancestorKey, true);
223
- const afterPresenceMatches = countPresenceMatches(ancestorKey, true);
224
- (0, _state.debugClearLog)(`clearByAncestor(${ancestorKey}) snapshots=${beforeMatches.snapshots}->${afterMatches.snapshots} links=${beforeMatches.links}->${afterMatches.links} presence=${beforePresenceMatches}->${afterPresenceMatches}`);
225
- (0, _state.debugStoreSizeLog)(`clearByAncestor(${ancestorKey})`);
226
90
  }
227
91
  function clearByBranch(branchNavigatorKey) {
228
92
  "worklet";
229
93
 
230
94
  if (!branchNavigatorKey) return;
231
- const beforeMatches = countRegistryMatchesByBranch(branchNavigatorKey);
232
- const beforePresenceMatches = countPresenceMatchesByBranch(branchNavigatorKey);
233
- clearRegistry({
234
- shouldRemoveSnapshot: (_snapshotKey, snapshot) => {
235
- return snapshot.navigatorKey === branchNavigatorKey || (snapshot.ancestorNavigatorKeys?.includes(branchNavigatorKey) ?? false);
236
- },
237
- shouldRemoveLink: link => {
238
- return (0, _matching.matchesNavigatorKey)(link.source, branchNavigatorKey) || (0, _matching.matchesNavigatorKey)(link.destination, branchNavigatorKey);
239
- }
95
+ performClear((_snapshotKey, snapshot) => {
96
+ return snapshot.navigatorKey === branchNavigatorKey || (snapshot.ancestorNavigatorKeys?.includes(branchNavigatorKey) ?? false);
97
+ }, link => {
98
+ return (0, _matching.matchesNavigatorKey)(link.source, branchNavigatorKey) || (0, _matching.matchesNavigatorKey)(link.destination, branchNavigatorKey);
99
+ }, (_entryScreenKey, entry) => {
100
+ return entry.navigatorKey === branchNavigatorKey || (entry.ancestorNavigatorKeys?.includes(branchNavigatorKey) ?? false);
240
101
  });
241
- clearPresenceByBranch(branchNavigatorKey);
242
- const afterMatches = countRegistryMatchesByBranch(branchNavigatorKey);
243
- const afterPresenceMatches = countPresenceMatchesByBranch(branchNavigatorKey);
244
- (0, _state.debugClearLog)(`clearByBranch(${branchNavigatorKey}) snapshots=${beforeMatches.snapshots}->${afterMatches.snapshots} links=${beforeMatches.links}->${afterMatches.links} presence=${beforePresenceMatches}->${afterPresenceMatches}`);
245
- (0, _state.debugStoreSizeLog)(`clearByBranch(${branchNavigatorKey})`);
246
102
  }
247
103
  //# sourceMappingURL=clear.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_matching","require","_state","hasAnyKeys","record","_key","countRegistryMatches","screenKey","matchByAncestor","currentRegistry","registry","value","snapshots","links","tag","tagState","snapshotKey","snapshot","matched","ancestorKeys","includes","i","linkStack","length","link","matchesScreenKey","source","destination","countRegistryMatchesByBranch","branchNavigatorKey","navigatorKey","ancestorNavigatorKeys","matchesNavigatorKey","countPresenceMatches","currentPresence","presence","matches","tagEntries","entryScreenKey","entry","countPresenceMatchesByBranch","clearRegistry","params","shouldRemoveSnapshot","shouldRemoveLink","modify","state","splice","clearPresenceDirect","clearPresenceByAncestor","ancestorKey","shouldRemove","clearPresenceByBranch","clear","beforeMatches","beforePresenceMatches","afterMatches","afterPresenceMatches","debugClearLog","debugStoreSizeLog","clearByAncestor","clearByBranch","_snapshotKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/clear.ts"],"mappings":";;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAQA,IAAAC,MAAA,GAAAD,OAAA;AAQA,MAAME,UAAU,GAAIC,MAA+B,IAAK;EACvD,SAAS;;EACT,KAAK,MAAMC,IAAI,IAAID,MAAM,EAAE;IAC1B,OAAO,IAAI;EACZ;EACA,OAAO,KAAK;AACb,CAAC;AAED,MAAME,oBAAoB,GAAGA,CAC5BC,SAAoB,EACpBC,eAAwB,KACkB;EAC1C,SAAS;;EACT,MAAMC,eAAe,GAAGC,eAAQ,CAACC,KAAK;EACtC,IAAIC,SAAS,GAAG,CAAC;EACjB,IAAIC,KAAK,GAAG,CAAC;EAEb,KAAK,MAAMC,GAAG,IAAIL,eAAe,EAAE;IAClC,MAAMM,QAAQ,GAAGN,eAAe,CAACK,GAAG,CAAC;IAErC,KAAK,MAAME,WAAW,IAAID,QAAQ,CAACH,SAAS,EAAE;MA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EAAC,iBAAiB9B,kBAAkB,GAAG,CAAC;AAC1D","ignoreList":[]}
1
+ {"version":3,"names":["_matching","require","_state","hasAnyKeys","record","_key","clearRegistry","shouldClearSnapshot","shouldClearLink","registry","modify","state","tag","tagState","snapshotKey","snapshots","snapshot","i","linkStack","length","link","splice","clearPresence","shouldClearPresence","presence","tagEntries","entryScreenKey","entry","performClear","clear","screenKey","matchesScreenKey","source","destination","clearByAncestor","ancestorKey","ancestorKeys","includes","clearByBranch","branchNavigatorKey","_snapshotKey","navigatorKey","ancestorNavigatorKeys","matchesNavigatorKey","_entryScreenKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/clear.ts"],"mappings":";;;;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,UAAU,GAAIC,MAA+B,IAAK;EACvD,SAAS;;EACT,KAAK,MAAMC,IAAI,IAAID,MAAM,EAAE;IAC1B,OAAO,IAAI;EACZ;EACA,OAAO,KAAK;AACb,CAAC;AAcD,MAAME,aAAa,GAAGA,CACrBC,mBAAsC,EACtCC,eAA8B,KAC1B;EACJ,SAAS;;EACTC,eAAQ,CAACC,MAAM,CAA2BC,KAAQ,IAAQ;IACzD,SAAS;;IACT,KAAK,MAAMC,GAAG,IAAID,KAAK,EAAE;MACxB,MAAME,QAAQ,GAAGF,KAAK,CAACC,GAAG,CAAC;MAE3B,KAAK,MAAME,WAAW,IAAID,QAAQ,CAACE,SAAS,EAAE;QAC7C,MAAMC,QAAQ,GAAGH,QAAQ,CAACE,SAAS,CAACD,WAAW,CAAC;QAChD,IAAIP,mBAAmB,CAACO,WAAW,EAAEE,QAAQ,CAAC,EAAE;UAC/C,OAAOH,QAAQ,CAACE,SAAS,CAACD,WAAW,CAAC;QACvC;MACD;MAEA,KAAK,IAAIG,CAAC,GAAGJ,QAAQ,CAACK,SAAS,CAACC,MAAM,GAAG,CAAC,EAAEF,CAAC,IAAI,CAAC,EAAEA,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EAAEM,kBAAkB,CAAC;EAE3D,CAAC,EACD,CAACK,eAAe,EAAEjB,KAAK,KAAK;IAC3B,OACCA,KAAK,CAACc,YAAY,KAAKF,kBAAkB,KACxCZ,KAAK,CAACe,qBAAqB,EAAEL,QAAQ,CAACE,kBAAkB,CAAC,IAAI,KAAK,CAAC;EAEtE,CACD,CAAC;AACF","ignoreList":[]}
@@ -34,7 +34,6 @@ function registerBoundaryPresence(tag, screenKey, ancestorKeys, boundaryConfig,
34
34
  };
35
35
  return state;
36
36
  });
37
- (0, _state.debugStoreSizeLog)(`registerBoundaryPresence(${tag},${screenKey})`);
38
37
  }
39
38
  function unregisterBoundaryPresence(tag, screenKey) {
40
39
  "worklet";
@@ -61,7 +60,6 @@ function unregisterBoundaryPresence(tag, screenKey) {
61
60
  delete state[tag];
62
61
  return state;
63
62
  });
64
- (0, _state.debugStoreSizeLog)(`unregisterBoundaryPresence(${tag},${screenKey})`);
65
63
  }
66
64
  function hasBoundaryPresence(tag, screenKey) {
67
65
  "worklet";
@@ -113,7 +111,6 @@ function setGroupActiveId(group, id) {
113
111
  };
114
112
  return state;
115
113
  });
116
- (0, _state.debugStoreSizeLog)(`setGroupActiveId(${group},${id})`);
117
114
  }
118
115
  function getGroupActiveId(group) {
119
116
  "worklet";
@@ -1 +1 @@
1
- {"version":3,"names":["_state","require","registerBoundaryPresence","tag","screenKey","ancestorKeys","boundaryConfig","navigatorKey","ancestorNavigatorKeys","presence","modify","state","mutableState","tagEntries","currentEntry","count","debugStoreSizeLog","unregisterBoundaryPresence","value","mutableTagEntries","mutableEntry","nextCount","_remainingKey","hasBoundaryPresence","direct","entryScreenKey","entry","includes","getBoundaryPresence","getBoundaryConfig","setGroupActiveId","group","id","groups","activeId","getGroupActiveId","getGroups"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/presence.ts"],"mappings":";;;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,SAASC,wBAAwBA,CAChCC,GAAU,EAC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AAG,CAAC;EACtC,IAAI,CAACU,UAAU,EAAE,OAAO,IAAI;EAE5B,MAAMW,MAAM,GAAGX,UAAU,CAACT,SAAS,CAAC;EACpC,IAAIoB,MAAM,IAAIA,MAAM,CAACT,KAAK,GAAG,CAAC,EAAE;IAC/B,OAAOS,MAAM,CAAClB,cAAc,IAAI,IAAI;EACrC;EAEA,KAAK,MAAMmB,cAAc,IAAIZ,UAAU,EAAE;IACxC,MAAMa,KAAK,GAAGb,UAAU,CAACY,cAAc,CAAC;IACxC,IAAIC,KAAK,CAACX,KAAK,IAAI,CAAC,EAAE;IACtB,IAAIW,KAAK,CAACrB,YAAY,EAAEsB,QAAQ,CAACvB,SAAS,CAAC,EAAE;MAC5C,OAAOsB,KAAK,CAACpB,cAAc,IAAI,IAAI;IACpC;EACD;EAEA,OAAO,IAAI;AACZ;AAEA,SAASwB,gBAAgBA,CAACC,KAAa,EAAEC,EAAU,EAAE;EACpD,SAAS;;EACTC,aAAM,CAACvB,MAAM,CAAyBC,KAAQ,IAAQ;IACrD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAoB;IACzCC,YAAY,CAACmB,KAAK,CAAC,GAAG;MACrBG,QAAQ,EAAEF;IACX,CAAC;IACD,OAAOrB,KAAK;EACb,CAAC,CAAC;EACF,IAAAK,wBAAiB,EAAC,oBAAoBe,KAAK,IAAIC,EAAE,GAAG,CAAC;AACtD;AAEA,SAASG,gBAAgBA,CAACJ,KAAa,EAAiB;EACvD,SAAS;;EACT,OAAOE,aAAM,CAACf,KAAK,CAACa,KAAK,CAAC,EAAEG,QAAQ,IAAI,IAAI;AAC7C;AAEA,SAASE,SAASA,CAAA,EAAG;EACpB,SAAS;;EACT,OAAOH,aAAM;AACd","ignoreList":[]}
1
+ {"version":3,"names":["_state","require","registerBoundaryPresence","tag","screenKey","ancestorKeys","boundaryConfig","navigatorKey","ancestorNavigatorKeys","presence","modify","state","mutableState","tagEntries","currentEntry","count","unregisterBoundaryPresence","value","mutableTagEntries","mutableEntry","nextCount","_remainingKey","hasBoundaryPresence","direct","entryScreenKey","entry","includes","getBoundaryPresence","getBoundaryConfig","setGroupActiveId","group","id","groups","activeId","getGroupActiveId","getGroups"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/presence.ts"],"mappings":";;;;;;;;;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,SAASC,wBAAwBA,CAChCC,GAAU,EACVC,SAAoB,EACpBC,YAA0B,EAC1BC,cAA+B,EAC/BC,YAAqB,EACrBC,qBAAgC,EAC/B;EACD,SAAS;;EACTC,eAAQ,CAACC,MAAM,CAA2BC,KAAQ,IAAQ;IACzD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAsB;IAC3C,IAAIE,UAAU,GAAGD,YAAY,CAACT,GAAG,CAAC;IAClC,IAAI,CAACU,UAAU,EAAE;MAChBA,UAAU,GAAG,CAAC,CAAC;MACfD,YAAY,CAACT,GAAG,CAAC,GAAGU,UAAU;IAC/B;IACA,MAAMC,YAAY,GAAGD,UAAU,CAACT,SAAS,CAAC;IAE1CS,UAAU,CAACT,SAAS,CAAC,GAAG;MACvBW,KAAK,EAAE,CAACD,YAAY,EAAEC,KAAK,IAAI,CAAC,IAAI,CAAC;MACrCV,YAAY,EAAEA,YAAY,IAAIS,YAAY,EAAET,YAAY;MACxDC,cAAc,EAAEA,cAAc,IAAIQ,YAAY,EAAER,cAAc;MAC9DC,YAAY,EAAEA,YAAY,IAAIO,YAAY,EAAEP,YAAY;MACxDC,qBAAqB,EACpBA,qBAAqB,IAAIM,YAAY,EAAEN;IACzC,CAAC;IAED,OAAOG,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASK,0BAA0BA,CAACb,GAAU,EAAEC,SAAoB,EAAE;EACrE,SAAS;;EACT,MAAMS,UAAU,GAAGJ,eAAQ,CAACQ,KAAK,CAACd,GAAG,CAAC;EACtC,IAAI,CAACU,UAAU,EAAE;EAEjB,MAAMC,YAAY,GAAGD,UAAU,CAACT,SA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AEA,SAASmB,iBAAiBA,CACzBzB,GAAU,EACVC,SAAoB,EACI;EACxB,SAAS;;EACT,MAAMS,UAAU,GAAGJ,eAAQ,CAACQ,KAAK,CAACd,GAAG,CAAC;EACtC,IAAI,CAACU,UAAU,EAAE,OAAO,IAAI;EAE5B,MAAMU,MAAM,GAAGV,UAAU,CAACT,SAAS,CAAC;EACpC,IAAImB,MAAM,IAAIA,MAAM,CAACR,KAAK,GAAG,CAAC,EAAE;IAC/B,OAAOQ,MAAM,CAACjB,cAAc,IAAI,IAAI;EACrC;EAEA,KAAK,MAAMkB,cAAc,IAAIX,UAAU,EAAE;IACxC,MAAMY,KAAK,GAAGZ,UAAU,CAACW,cAAc,CAAC;IACxC,IAAIC,KAAK,CAACV,KAAK,IAAI,CAAC,EAAE;IACtB,IAAIU,KAAK,CAACpB,YAAY,EAAEqB,QAAQ,CAACtB,SAAS,CAAC,EAAE;MAC5C,OAAOqB,KAAK,CAACnB,cAAc,IAAI,IAAI;IACpC;EACD;EAEA,OAAO,IAAI;AACZ;AAEA,SAASuB,gBAAgBA,CAACC,KAAa,EAAEC,EAAU,EAAE;EACpD,SAAS;;EACTC,aAAM,CAACtB,MAAM,CAAyBC,KAAQ,IAAQ;IACrD,SAAS;;IACT,MAAMC,YAAY,GAAGD,KAAoB;IACzCC,YAAY,CAACkB,KAAK,CAAC,GAAG;MACrBG,QAAQ,EAAEF;IACX,CAAC;IACD,OAAOpB,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASuB,gBAAgBA,CAACJ,KAAa,EAAiB;EACvD,SAAS;;EACT,OAAOE,aAAM,CAACf,KAAK,CAACa,KAAK,CAAC,EAAEG,QAAQ,IAAI,IAAI;AAC7C;AAEA,SAASE,SAASA,CAAA,EAAG;EACpB,SAAS;;EACT,OAAOH,aAAM;AACd","ignoreList":[]}
@@ -77,7 +77,6 @@ function registerSnapshot(tag, screenKey, bounds, styles = {}, ancestorKeys, nav
77
77
  };
78
78
  return state;
79
79
  });
80
- (0, _state.debugStoreSizeLog)(`registerSnapshot(${tag},${screenKey})`);
81
80
  }
82
81
  function setLinkSource(tag, screenKey, bounds, styles = {}, ancestorKeys, navigatorKey, ancestorNavigatorKeys) {
83
82
  "worklet";
@@ -108,7 +107,6 @@ function setLinkSource(tag, screenKey, bounds, styles = {}, ancestorKeys, naviga
108
107
  trimLinkHistory(tagState);
109
108
  return state;
110
109
  });
111
- (0, _state.debugStoreSizeLog)(`setLinkSource(${tag},${screenKey})`);
112
110
  }
113
111
  function updateLinkSource(tag, screenKey, bounds, styles = {}, ancestorKeys, navigatorKey, ancestorNavigatorKeys) {
114
112
  "worklet";
@@ -148,7 +146,6 @@ function updateLinkSource(tag, screenKey, bounds, styles = {}, ancestorKeys, nav
148
146
  };
149
147
  return state;
150
148
  });
151
- (0, _state.debugStoreSizeLog)(`updateLinkSource(${tag},${screenKey})`);
152
149
  }
153
150
  const findLatestPendingIndex = (stack, expectedSourceScreenKey) => {
154
151
  "worklet";
@@ -163,6 +160,17 @@ const findLatestPendingIndex = (stack, expectedSourceScreenKey) => {
163
160
  }
164
161
  return -1;
165
162
  };
163
+ const findLatestSourceIndex = (stack, expectedSourceScreenKey) => {
164
+ "worklet";
165
+
166
+ if (!expectedSourceScreenKey) return -1;
167
+ for (let i = stack.length - 1; i >= 0; i--) {
168
+ if ((0, _matching.matchesScreenKey)(stack[i].source, expectedSourceScreenKey)) {
169
+ return i;
170
+ }
171
+ }
172
+ return -1;
173
+ };
166
174
  function setLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys) {
167
175
  "worklet";
168
176
 
@@ -172,10 +180,12 @@ function setLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys, e
172
180
  const tagState = state[tag];
173
181
  const stack = tagState?.linkStack;
174
182
  if (!stack || stack.length === 0) return state;
175
- const targetIndex = findLatestPendingIndex(stack, expectedSourceScreenKey);
183
+ let targetIndex = findLatestPendingIndex(stack, expectedSourceScreenKey);
184
+ if (targetIndex === -1) {
185
+ targetIndex = findLatestSourceIndex(stack, expectedSourceScreenKey);
186
+ }
176
187
  if (targetIndex === -1) return state;
177
188
  const targetLink = stack[targetIndex];
178
- if (targetLink.destination !== null) return state;
179
189
  targetLink.destination = {
180
190
  screenKey,
181
191
  ancestorKeys,
@@ -186,7 +196,6 @@ function setLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys, e
186
196
  };
187
197
  return state;
188
198
  });
189
- (0, _state.debugStoreSizeLog)(`setLinkDestination(${tag},${screenKey})`);
190
199
  }
191
200
  function updateLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys) {
192
201
  "worklet";
@@ -208,6 +217,9 @@ function updateLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys
208
217
  if (targetIndex === -1) {
209
218
  targetIndex = findLatestPendingIndex(stack, expectedSourceScreenKey);
210
219
  }
220
+ if (targetIndex === -1) {
221
+ targetIndex = findLatestSourceIndex(stack, expectedSourceScreenKey);
222
+ }
211
223
  if (targetIndex === -1) {
212
224
  return state;
213
225
  }
@@ -221,7 +233,6 @@ function updateLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys
221
233
  };
222
234
  return state;
223
235
  });
224
- (0, _state.debugStoreSizeLog)(`updateLinkDestination(${tag},${screenKey})`);
225
236
  }
226
237
  function getActiveLink(tag, screenKey) {
227
238
  "worklet";
@@ -1 +1 @@
1
- {"version":3,"names":["_matching","require","_state","LINK_HISTORY_LIMIT","ensureTagState","state","tag","createEmptyTagState","isSameScreenFamily","a","b","screenKey","ancestorKeys","includes","trimLinkHistory","tagState","overLimit","linkStack","length","splice","getSnapshot","key","registry","value","snapshots","snap","bounds","styles","registerSnapshot","navigatorKey","ancestorNavigatorKeys","modify","debugStoreSizeLog","setLinkSource","stack","topIndex","topLink","source","destination","push","updateLinkSource","targetIndex","i","link","matchesScreenKey","findLatestPendingIndex","expectedSourceScreenKey","setLinkDestination","targetLink","updateLinkDestination","getActiveLink","lastLink","hasPendingLink","hasPendingLinkFromSource","sourceScreenKey","getLatestPendingSourceScreenKey","hasSourceLink","hasDestinationLink"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/registry.ts"],"mappings":";;;;;;;;;;;;;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAOA,MAAME,kBAAkB,GAAG,CAAC;AAE5B,MAAMC,cAAc,GAAGA,CAACC,KAAoB,EAAEC,GAAU,KAAe;EACtE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG,IAAAC,0BAAmB,EAAC,CAAC;EACnC;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,kBAAkB,GAAGA,CAC1BC,CAAuD,EACvDC,CAAuD,KAC1C;EACb,SAAS;;EACT,OACCD,CAAC,CAACE,SAAS,KAAKD,CAAC,CAACC,SAAS,KAC1BF,CAAC,CAACG,YAAY,EAAEC,QAAQ,CAACH,CAAC,CAACC,SAAS,CAAC,IAAI,KAAK,CAAC,KAC/CD,CAAC,CAACE,YAAY,EAAEC,QAAQ,CAACJ,CAAC,CAACE,SAAS,CAAC,IAAI,KAAK,CAAC;AAElD,CAAC;AAED,MAAMG,eAAe,GAAIC,QAAkB,IAAK;EAC/C,SAAS;;EACT,MAAMC,SAAS,GAAGD,QAAQ,CAACE,SAAS,CAACC,MAAM,GAAGf,kBAAkB;EAChE,IAAIa,SAAS,IAAI,CAAC,EAAE;EACpBD,QAAQ,CAACE,SAAS,CAACE,MAAM,CAAC,CAAC,EAAEH,SAAS,CAAC;AACxC,CAAC;AAED,SAASI,WAAWA,CAACd,GAAU,EAAEe,GAAc,EAAmB;EACjE,SAAS;;EACT,MAAMN,QAAQ,GAAGO,eAAQ,CAACC,KAAK,CAACjB,GAAG,CAAC;EACpC,I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,GAAU,EAAEK,SAAoB,EAAW;EACjE,SAAS;;EACT,MAAMI,QAAQ,GAAGO,eAAQ,CAACC,KAAK,CAACjB,GAAG,CAAC;EACpC,MAAM4B,KAAK,GAAGnB,QAAQ,EAAEE,SAAS;EACjC,IAAI,CAACiB,KAAK,IAAIA,KAAK,CAAChB,MAAM,KAAK,CAAC,EAAE,OAAO,KAAK;EAE9C,KAAK,IAAIwB,CAAC,GAAGR,KAAK,CAAChB,MAAM,GAAG,CAAC,EAAEwB,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,IAAI,IAAAE,0BAAgB,EAACV,KAAK,CAACQ,CAAC,CAAC,CAACL,MAAM,EAAE1B,SAAS,CAAC,EAAE,OAAO,IAAI;EAC9D;EAEA,OAAO,KAAK;AACb;AAEA,SAAS8C,kBAAkBA,CAACnD,GAAU,EAAEK,SAAoB,EAAW;EACtE,SAAS;;EACT,MAAMI,QAAQ,GAAGO,eAAQ,CAACC,KAAK,CAACjB,GAAG,CAAC;EACpC,MAAM4B,KAAK,GAAGnB,QAAQ,EAAEE,SAAS;EACjC,IAAI,CAACiB,KAAK,IAAIA,KAAK,CAAChB,MAAM,KAAK,CAAC,EAAE,OAAO,KAAK;EAE9C,KAAK,IAAIwB,CAAC,GAAGR,KAAK,CAAChB,MAAM,GAAG,CAAC,EAAEwB,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,IAAI,IAAAE,0BAAgB,EAACV,KAAK,CAACQ,CAAC,CAAC,CAACJ,WAAW,EAAE3B,SAAS,CAAC,EAAE,OAAO,IAAI;EACnE;EAEA,OAAO,KAAK;AACb","ignoreList":[]}
1
+ {"version":3,"names":["_matching","require","_state","LINK_HISTORY_LIMIT","ensureTagState","state","tag","createEmptyTagState","isSameScreenFamily","a","b","screenKey","ancestorKeys","includes","trimLinkHistory","tagState","overLimit","linkStack","length","splice","getSnapshot","key","registry","value","snapshots","snap","bounds","styles","registerSnapshot","navigatorKey","ancestorNavigatorKeys","modify","setLinkSource","stack","topIndex","topLink","source","destination","push","updateLinkSource","targetIndex","i","link","matchesScreenKey","findLatestPendingIndex","expectedSourceScreenKey","findLatestSourceIndex","setLinkDestination","targetLink","updateLinkDestination","getActiveLink","lastLink","hasPendingLink","hasPendingLinkFromSource","sourceScreenKey","getLatestPendingSourceScreenKey","hasSourceLink","hasDestinationLink"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/registry.ts"],"mappings":";;;;;;;;;;;;;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,kBAAkB,GAAG,CAAC;AAE5B,MAAMC,cAAc,GAAGA,CAACC,KAAoB,EAAEC,GAAU,KAAe;EACtE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG,IAAAC,0BAAmB,EAAC,CAAC;EACnC;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,kBAAkB,GAAGA,CAC1BC,CAAuD,EACvDC,CAAuD,KAC1C;EACb,SAAS;;EACT,OACCD,CAAC,CAACE,SAAS,KAAKD,CAAC,CAACC,SAAS,KAC1BF,CAAC,CAACG,YAAY,EAAEC,QAAQ,CAACH,CAAC,CAACC,SAAS,CAAC,IAAI,KAAK,CAAC,KAC/CD,CAAC,CAACE,YAAY,EAAEC,QAAQ,CAACJ,CAAC,CAACE,SAAS,CAAC,IAAI,KAAK,CAAC;AAElD,CAAC;AAED,MAAMG,eAAe,GAAIC,QAAkB,IAAK;EAC/C,SAAS;;EACT,MAAMC,SAAS,GAAGD,QAAQ,CAACE,SAAS,CAACC,MAAM,GAAGf,kBAAkB;EAChE,IAAIa,SAAS,IAAI,CAAC,EAAE;EACpBD,QAAQ,CAACE,SAAS,CAACE,MAAM,CAAC,CAAC,EAAEH,SAAS,CAAC;AACxC,CAAC;AAED,SAASI,WAAWA,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,CAAC,CAACJ,WAAW,EAAE1B,SAAS,CAAC,EAAE,OAAO,IAAI;EACnE;EAEA,OAAO,KAAK;AACb","ignoreList":[]}
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.resolveTransitionPair = resolveTransitionPair;
7
7
  var _matching = require("../helpers/matching");
8
- var _registry = require("./registry");
9
8
  var _state = require("./state");
10
9
  const findLatestLink = (tagState, predicate) => {
11
10
  "worklet";
@@ -37,22 +36,6 @@ function findPendingLinkBySource(tagState, screenKey) {
37
36
  if (!screenKey) return null;
38
37
  return findLatestLink(tagState, link => link.destination === null && (0, _matching.matchesScreenKey)(link.source, screenKey));
39
38
  }
40
- function getSnapshotBoundsByPriority(tag, keys) {
41
- "worklet";
42
-
43
- for (let i = 0; i < keys.length; i++) {
44
- const key = keys[i];
45
- if (!key) continue;
46
- const snapshot = (0, _registry.getSnapshot)(tag, key);
47
- if (!snapshot) continue;
48
- return {
49
- bounds: snapshot.bounds,
50
- styles: snapshot.styles,
51
- screenKey: key
52
- };
53
- }
54
- return null;
55
- }
56
39
  function resolveTransitionPair(tag, context) {
57
40
  "worklet";
58
41
 
@@ -84,37 +67,12 @@ function resolveTransitionPair(tag, context) {
84
67
  }
85
68
  }
86
69
  }
87
- let sourceBounds = matchedLink?.source?.bounds ?? null;
88
- let destinationBounds = matchedLink?.destination?.bounds ?? null;
89
- let sourceStyles = matchedLink?.source?.styles ?? null;
90
- let destinationStyles = matchedLink?.destination?.styles ?? null;
91
- let sourceScreenKey = matchedLink?.source?.screenKey ?? null;
92
- let destinationScreenKey = matchedLink?.destination?.screenKey ?? null;
93
- let usedSnapshotSource = false;
94
- let usedSnapshotDestination = false;
95
- const sourceFallbackKeys = context.entering ? [context.previousScreenKey, context.currentScreenKey, context.nextScreenKey] : [context.currentScreenKey, context.previousScreenKey, context.nextScreenKey];
96
- const destinationFallbackKeys = context.entering ? [context.currentScreenKey, context.nextScreenKey] : [context.nextScreenKey, context.currentScreenKey];
97
- if (!sourceBounds) {
98
- const sourceSnapshot = getSnapshotBoundsByPriority(tag, sourceFallbackKeys);
99
- if (sourceSnapshot) {
100
- sourceBounds = sourceSnapshot.bounds;
101
- sourceStyles = sourceSnapshot.styles;
102
- sourceScreenKey = sourceSnapshot.screenKey;
103
- usedSnapshotSource = true;
104
- }
105
- }
106
- if (!destinationBounds) {
107
- const destinationSnapshot = getSnapshotBoundsByPriority(tag, destinationFallbackKeys);
108
- if (destinationSnapshot) {
109
- destinationBounds = destinationSnapshot.bounds;
110
- destinationStyles = destinationSnapshot.styles;
111
- destinationScreenKey = destinationSnapshot.screenKey;
112
- usedSnapshotDestination = true;
113
- }
114
- }
115
- if (!sourceBounds || !destinationBounds) {
116
- (0, _state.debugResolverLog)(`unresolved tag=${tag} entering=${context.entering ? 1 : 0} source=${sourceBounds ? 1 : 0} destination=${destinationBounds ? 1 : 0} pending=${usedPending ? 1 : 0}`);
117
- }
70
+ const sourceBounds = matchedLink?.source?.bounds ?? null;
71
+ const destinationBounds = matchedLink?.destination?.bounds ?? null;
72
+ const sourceStyles = matchedLink?.source?.styles ?? null;
73
+ const destinationStyles = matchedLink?.destination?.styles ?? null;
74
+ const sourceScreenKey = matchedLink?.source?.screenKey ?? null;
75
+ const destinationScreenKey = matchedLink?.destination?.screenKey ?? null;
118
76
  return {
119
77
  sourceBounds,
120
78
  destinationBounds,
@@ -122,9 +80,7 @@ function resolveTransitionPair(tag, context) {
122
80
  destinationStyles,
123
81
  sourceScreenKey,
124
82
  destinationScreenKey,
125
- usedPending,
126
- usedSnapshotSource,
127
- usedSnapshotDestination
83
+ usedPending
128
84
  };
129
85
  }
130
86
  //# sourceMappingURL=resolver.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_matching","require","_registry","_state","findLatestLink","tagState","predicate","stack","linkStack","i","length","link","findCompletedLinkByDestination","screenKey","destination","matchesScreenKey","findCompletedLinkBySource","source","findPendingLinkBySource","getSnapshotBoundsByPriority","tag","keys","key","snapshot","getSnapshot","bounds","styles","resolveTransitionPair","context","registry","value","matchedLink","usedPending","entering","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","destinationBounds","sourceStyles","destinationStyles","sourceScreenKey","destinationScreenKey","usedSnapshotSource","usedSnapshotDestination","sourceFallbackKeys","destinationFallbackKeys","sourceSnapshot","destinationSnapshot","debugResolverLog"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA,MAAMG,cAAc,GAAGA,CACtBC,QAAkB,EAClBC,SAAqC,KACjB;EACpB,SAAS;;EACT,MAAMC,KAAK,GAAGF,QAAQ,CAACG,SAAS;EAChC,KAAK,IAAIC,CAAC,GAAGF,KAAK,CAACG,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,MAAME,IAAI,GAAGJ,KAAK,CAACE,CAAC,CAAC;IACrB,IAAIH,SAAS,CAACK,IAAI,CAAC,EAAE;MACpB,OAAOA,IAAI;IACZ;EACD;EACA,OAAO,IAAI;AACZ,CAAC;AAED,SAASC,8BAA8BA,CACtCP,QAAkB,EAClBQ,SAAqB,EACJ;EACjB,SAAS;;EACT,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;EAE3B,OAAOT,cAAc,CACpBC,QAAQ,EACPM,IAAI,IACJ,CAAC,CAACA,IAAI,CAACG,WAAW,IAAI,IAAAC,0BAAgB,EAACJ,IAAI,CAACG,WAAW,EAAED,SAAS,CACpE,CAAC;AACF;AAEA,SAASG,yBAAyBA,CACjCX,QAAkB,EAClBQ,SAAqB,EACJ;EACjB,SAAS;;EACT,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;EAE3B,OAAOT,cAAc,CACpBC,QAAQ,EACPM,IAAI,IAAK,CAAC,CAACA,IAAI,CAACG,WAAW,IAAI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zDI,YAAY,GAAG,CAAC,GAAG,CAAC,gBACLC,iBAAiB,GAAG,CAAC,GAAG,CAAC,YAAYN,WAAW,GAAG,CAAC,GAAG,CAAC,EACzE,CAAC;EACF;EAEA,OAAO;IACNK,YAAY;IACZC,iBAAiB;IACjBC,YAAY;IACZC,iBAAiB;IACjBC,eAAe;IACfC,oBAAoB;IACpBV,WAAW;IACXW,kBAAkB;IAClBC;EACD,CAAC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_matching","require","_state","findLatestLink","tagState","predicate","stack","linkStack","i","length","link","findCompletedLinkByDestination","screenKey","destination","matchesScreenKey","findCompletedLinkBySource","source","findPendingLinkBySource","resolveTransitionPair","tag","context","registry","value","matchedLink","usedPending","entering","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","bounds","destinationBounds","sourceStyles","styles","destinationStyles","sourceScreenKey","destinationScreenKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAGA,CACtBC,QAAkB,EAClBC,SAAqC,KACjB;EACpB,SAAS;;EACT,MAAMC,KAAK,GAAGF,QAAQ,CAACG,SAAS;EAChC,KAAK,IAAIC,CAAC,GAAGF,KAAK,CAACG,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,MAAME,IAAI,GAAGJ,KAAK,CAACE,CAAC,CAAC;IACrB,IAAIH,SAAS,CAACK,IAAI,CAAC,EAAE;MACpB,OAAOA,IAAI;IACZ;EACD;EACA,OAAO,IAAI;AACZ,CAAC;AAED,SAASC,8BAA8BA,CACtCP,QAAkB,EAClBQ,SAAqB,EACJ;EACjB,SAAS;;EACT,IAAI,CAACA,SAAS,EAAE,OAAO,IAAI;EAE3B,OAAOT,cAAc,CACpBC,QAAQ,EACPM,IAAI,IACJ,CAAC,CA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