react-native-screen-transitions 3.4.0 → 3.5.0-beta.0

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 (497) hide show
  1. package/README.md +5 -2
  2. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +21 -32
  3. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  4. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +2 -2
  5. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  6. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +5 -5
  7. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  8. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +27 -0
  9. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -0
  10. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +7 -2
  11. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  12. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +110 -0
  13. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -0
  14. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +40 -0
  15. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -0
  16. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +79 -0
  17. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -0
  18. package/lib/commonjs/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.js → use-refresh-boundary.js} +26 -27
  19. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -0
  20. package/lib/commonjs/shared/components/create-transition-aware-component.js +4 -13
  21. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  22. package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +1 -0
  23. package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -1
  24. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +7 -10
  25. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  26. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +3 -3
  27. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
  28. package/lib/commonjs/shared/components/screen-container/layers/content.js +4 -5
  29. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
  30. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +4 -3
  31. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  32. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +3 -3
  33. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
  34. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +28 -0
  35. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -0
  36. package/lib/commonjs/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.js.map +1 -0
  37. package/lib/commonjs/shared/components/screen-lifecycle/hooks/{use-screen-events.js → history/use-screen-history.js} +17 -11
  38. package/lib/commonjs/shared/components/screen-lifecycle/hooks/history/use-screen-history.js.map +1 -0
  39. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +140 -0
  40. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -0
  41. package/lib/commonjs/shared/components/screen-lifecycle/hooks/{use-open-transition.js → use-open-transition-intent.js} +14 -24
  42. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -0
  43. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +53 -0
  44. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -0
  45. package/lib/commonjs/shared/components/screen-lifecycle/index.js +17 -14
  46. package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -1
  47. package/lib/commonjs/shared/constants.js +6 -17
  48. package/lib/commonjs/shared/constants.js.map +1 -1
  49. package/lib/commonjs/shared/providers/register-bounds.provider.js +6 -9
  50. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  51. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +26 -44
  52. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
  53. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +19 -35
  54. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  55. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +64 -38
  56. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  57. package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -1
  58. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -2
  59. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  60. package/lib/commonjs/shared/providers/screen/animation/types.js +4 -0
  61. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +19 -5
  62. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  63. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -0
  64. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  65. package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js +29 -0
  66. package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -0
  67. package/lib/commonjs/shared/providers/screen/styles/constants.js +36 -0
  68. package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -0
  69. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +49 -0
  70. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -0
  71. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js +137 -0
  72. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +1 -0
  73. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +75 -0
  74. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -0
  75. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +49 -0
  76. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -0
  77. package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +31 -0
  78. package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -0
  79. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +33 -107
  80. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
  81. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +13 -7
  82. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
  83. package/lib/commonjs/shared/stores/bounds/helpers/keys.js +10 -0
  84. package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -1
  85. package/lib/commonjs/shared/stores/bounds/index.js +26 -25
  86. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
  87. package/lib/commonjs/shared/stores/bounds/internals/clear.js +13 -51
  88. package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
  89. package/lib/commonjs/shared/stores/bounds/internals/groups.js +27 -0
  90. package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +1 -0
  91. package/lib/commonjs/shared/stores/bounds/internals/registry.js +210 -185
  92. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
  93. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +2 -6
  94. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  95. package/lib/commonjs/shared/stores/bounds/internals/state.js +2 -3
  96. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  97. package/lib/commonjs/shared/stores/system.store.js +44 -11
  98. package/lib/commonjs/shared/stores/system.store.js.map +1 -1
  99. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js +4 -0
  100. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
  101. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +6 -6
  102. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  103. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +9 -3
  104. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  105. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +5 -8
  106. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  107. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +2 -8
  108. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  109. package/lib/commonjs/shared/utils/bounds/index.js +7 -5
  110. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  111. package/lib/commonjs/shared/utils/bounds/zoom/build.js +44 -144
  112. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
  113. package/lib/commonjs/shared/utils/create-store.js +13 -4
  114. package/lib/commonjs/shared/utils/create-store.js.map +1 -1
  115. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +21 -32
  116. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  117. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +2 -2
  118. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  119. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +2 -2
  120. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  121. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +21 -0
  122. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -0
  123. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +7 -2
  124. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  125. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +105 -0
  126. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -0
  127. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +35 -0
  128. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -0
  129. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +74 -0
  130. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -0
  131. package/lib/module/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.js → use-refresh-boundary.js} +24 -25
  132. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -0
  133. package/lib/module/shared/components/create-transition-aware-component.js +4 -13
  134. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  135. package/lib/module/shared/components/overlay/variations/float-overlay.js +1 -0
  136. package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
  137. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +8 -11
  138. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  139. package/lib/module/shared/components/screen-container/layers/backdrop.js +3 -3
  140. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  141. package/lib/module/shared/components/screen-container/layers/content.js +4 -5
  142. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  143. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +4 -3
  144. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  145. package/lib/module/shared/components/screen-container/layers/surface-container.js +3 -3
  146. package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
  147. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +24 -0
  148. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -0
  149. package/lib/module/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.js.map +1 -0
  150. package/lib/module/shared/components/screen-lifecycle/hooks/{use-screen-events.js → history/use-screen-history.js} +16 -10
  151. package/lib/module/shared/components/screen-lifecycle/hooks/history/use-screen-history.js.map +1 -0
  152. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +134 -0
  153. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -0
  154. package/lib/module/shared/components/screen-lifecycle/hooks/{use-open-transition.js → use-open-transition-intent.js} +13 -24
  155. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -0
  156. package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +48 -0
  157. package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -0
  158. package/lib/module/shared/components/screen-lifecycle/index.js +18 -15
  159. package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
  160. package/lib/module/shared/constants.js +5 -16
  161. package/lib/module/shared/constants.js.map +1 -1
  162. package/lib/module/shared/providers/register-bounds.provider.js +6 -9
  163. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  164. package/lib/module/shared/providers/screen/animation/animation.provider.js +22 -43
  165. package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
  166. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +19 -35
  167. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  168. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +65 -39
  169. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  170. package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -1
  171. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -2
  172. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  173. package/lib/module/shared/providers/screen/animation/types.js +2 -0
  174. package/lib/module/shared/providers/screen/animation/use-screen-animation.js +19 -5
  175. package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  176. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -0
  177. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  178. package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js +25 -0
  179. package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -0
  180. package/lib/module/shared/providers/screen/styles/constants.js +31 -0
  181. package/lib/module/shared/providers/screen/styles/constants.js.map +1 -0
  182. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +45 -0
  183. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -0
  184. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js +132 -0
  185. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +1 -0
  186. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +70 -0
  187. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -0
  188. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +44 -0
  189. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -0
  190. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +26 -0
  191. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -0
  192. package/lib/module/shared/providers/screen/styles/styles.provider.js +34 -108
  193. package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
  194. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +13 -7
  195. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
  196. package/lib/module/shared/stores/bounds/helpers/keys.js +8 -0
  197. package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -1
  198. package/lib/module/shared/stores/bounds/index.js +27 -26
  199. package/lib/module/shared/stores/bounds/index.js.map +1 -1
  200. package/lib/module/shared/stores/bounds/internals/clear.js +14 -52
  201. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
  202. package/lib/module/shared/stores/bounds/internals/groups.js +23 -0
  203. package/lib/module/shared/stores/bounds/internals/groups.js.map +1 -0
  204. package/lib/module/shared/stores/bounds/internals/registry.js +204 -178
  205. package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
  206. package/lib/module/shared/stores/bounds/internals/resolver.js +2 -6
  207. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  208. package/lib/module/shared/stores/bounds/internals/state.js +1 -2
  209. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  210. package/lib/module/shared/stores/system.store.js +43 -10
  211. package/lib/module/shared/stores/system.store.js.map +1 -1
  212. package/lib/module/shared/types/animation.types.js.map +1 -1
  213. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js +4 -0
  214. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
  215. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +6 -6
  216. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  217. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +9 -3
  218. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  219. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +5 -8
  220. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  221. package/lib/module/shared/utils/bounds/helpers/styles/compute.js +3 -9
  222. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  223. package/lib/module/shared/utils/bounds/index.js +7 -5
  224. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  225. package/lib/module/shared/utils/bounds/zoom/build.js +46 -146
  226. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
  227. package/lib/module/shared/utils/create-store.js +13 -4
  228. package/lib/module/shared/utils/create-store.js.map +1 -1
  229. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
  230. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
  231. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +8 -8
  232. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
  233. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +5 -0
  234. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +1 -0
  235. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
  236. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts +13 -0
  237. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +1 -0
  238. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts +10 -0
  239. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +1 -0
  240. package/lib/typescript/shared/components/create-boundary-component/hooks/{use-boundary-measure-and-store.d.ts → use-measurer.d.ts} +6 -4
  241. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -0
  242. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +14 -0
  243. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -0
  244. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +6 -3
  245. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
  246. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  247. package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -1
  248. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
  249. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
  250. package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts +2 -0
  251. package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -0
  252. package/lib/typescript/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.d.ts.map +1 -0
  253. package/lib/typescript/shared/components/screen-lifecycle/hooks/history/use-screen-history.d.ts +7 -0
  254. package/lib/typescript/shared/components/screen-lifecycle/hooks/history/use-screen-history.d.ts.map +1 -0
  255. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts +11 -0
  256. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -0
  257. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition-intent.d.ts +8 -0
  258. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition-intent.d.ts.map +1 -0
  259. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts +11 -0
  260. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts.map +1 -0
  261. package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -1
  262. package/lib/typescript/shared/constants.d.ts +1 -14
  263. package/lib/typescript/shared/constants.d.ts.map +1 -1
  264. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  265. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +7 -8
  266. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
  267. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +0 -8
  268. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
  269. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +3 -3
  270. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  271. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +4 -6
  272. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +1 -1
  273. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
  274. package/lib/typescript/shared/providers/screen/animation/types.d.ts +7 -0
  275. package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -1
  276. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +1 -1
  277. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
  278. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +1 -0
  279. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
  280. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts +7 -0
  281. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -0
  282. package/lib/typescript/shared/providers/screen/styles/constants.d.ts +23 -0
  283. package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -0
  284. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts +3 -0
  285. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -0
  286. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts +17 -0
  287. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts.map +1 -0
  288. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +3 -0
  289. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -0
  290. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +9 -0
  291. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -0
  292. package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts +9 -0
  293. package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -0
  294. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts +2 -2
  295. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
  296. package/lib/typescript/shared/stores/animation.store.d.ts +1 -7
  297. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  298. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts +1 -1
  299. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +1 -1
  300. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +1 -0
  301. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -1
  302. package/lib/typescript/shared/stores/bounds/index.d.ts +28 -27
  303. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
  304. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
  305. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +4 -0
  306. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +1 -0
  307. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts +12 -11
  308. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
  309. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  310. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +1 -2
  311. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  312. package/lib/typescript/shared/stores/bounds/types.d.ts +21 -19
  313. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  314. package/lib/typescript/shared/stores/gesture.store.d.ts +1 -7
  315. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  316. package/lib/typescript/shared/stores/system.store.d.ts +33 -8
  317. package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
  318. package/lib/typescript/shared/types/animation.types.d.ts +5 -25
  319. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  320. package/lib/typescript/shared/types/bounds.types.d.ts +7 -5
  321. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  322. package/lib/typescript/shared/types/screen.types.d.ts +20 -0
  323. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  324. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +6 -2
  325. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
  326. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -1
  327. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +3 -2
  328. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  329. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -1
  330. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  331. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
  332. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  333. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts +1 -1
  334. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
  335. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts +1 -1
  336. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +1 -1
  337. package/lib/typescript/shared/utils/create-store.d.ts +13 -8
  338. package/lib/typescript/shared/utils/create-store.d.ts.map +1 -1
  339. package/package.json +1 -1
  340. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +21 -39
  341. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +3 -6
  342. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +12 -12
  343. package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +43 -0
  344. package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +3 -8
  345. package/src/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.ts +149 -0
  346. package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +42 -0
  347. package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +144 -0
  348. package/src/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.ts → use-refresh-boundary.ts} +35 -30
  349. package/src/shared/components/create-boundary-component/types.ts +7 -3
  350. package/src/shared/components/create-transition-aware-component.tsx +4 -13
  351. package/src/shared/components/overlay/variations/float-overlay.tsx +1 -1
  352. package/src/shared/components/screen-container/hooks/use-content-layout.ts +14 -11
  353. package/src/shared/components/screen-container/layers/backdrop.tsx +3 -3
  354. package/src/shared/components/screen-container/layers/content.tsx +4 -7
  355. package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +4 -5
  356. package/src/shared/components/screen-container/layers/surface-container.tsx +3 -3
  357. package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +29 -0
  358. package/src/shared/components/screen-lifecycle/hooks/{use-screen-events.ts → history/use-screen-history.ts} +25 -9
  359. package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +160 -0
  360. package/src/shared/components/screen-lifecycle/hooks/{use-open-transition.ts → use-open-transition-intent.ts} +19 -23
  361. package/src/shared/components/screen-lifecycle/hooks/use-transition-start-controller.ts +71 -0
  362. package/src/shared/components/screen-lifecycle/index.tsx +17 -17
  363. package/src/shared/constants.ts +3 -11
  364. package/src/shared/providers/register-bounds.provider.tsx +7 -12
  365. package/src/shared/providers/screen/animation/animation.provider.tsx +30 -68
  366. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +20 -33
  367. package/src/shared/providers/screen/animation/helpers/pipeline.ts +96 -69
  368. package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +5 -7
  369. package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +14 -2
  370. package/src/shared/providers/screen/animation/types.ts +9 -0
  371. package/src/shared/providers/screen/animation/use-screen-animation.tsx +25 -7
  372. package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +2 -0
  373. package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +29 -0
  374. package/src/shared/providers/screen/styles/constants.ts +34 -0
  375. package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +61 -0
  376. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles.ts +190 -0
  377. package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +85 -0
  378. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +51 -0
  379. package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +40 -0
  380. package/src/shared/providers/screen/styles/styles.provider.tsx +42 -146
  381. package/src/shared/stores/bounds/helpers/apply-measured-bounds-writes.ts +15 -13
  382. package/src/shared/stores/bounds/helpers/keys.ts +8 -0
  383. package/src/shared/stores/bounds/index.ts +37 -44
  384. package/src/shared/stores/bounds/internals/clear.ts +22 -86
  385. package/src/shared/stores/bounds/internals/groups.ts +20 -0
  386. package/src/shared/stores/bounds/internals/registry.ts +280 -234
  387. package/src/shared/stores/bounds/internals/resolver.ts +1 -5
  388. package/src/shared/stores/bounds/internals/state.ts +2 -3
  389. package/src/shared/stores/bounds/types.ts +23 -21
  390. package/src/shared/stores/system.store.ts +77 -9
  391. package/src/shared/types/animation.types.ts +5 -25
  392. package/src/shared/types/bounds.types.ts +7 -8
  393. package/src/shared/types/screen.types.ts +21 -0
  394. package/src/shared/utils/bounds/helpers/create-bound-tag.ts +6 -2
  395. package/src/shared/utils/bounds/helpers/create-interpolators.ts +10 -7
  396. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +12 -5
  397. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +4 -7
  398. package/src/shared/utils/bounds/helpers/styles/compute.ts +2 -10
  399. package/src/shared/utils/bounds/index.ts +7 -6
  400. package/src/shared/utils/bounds/zoom/build.ts +53 -162
  401. package/src/shared/utils/bounds/zoom/types.ts +1 -1
  402. package/src/shared/utils/create-store.ts +39 -13
  403. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +0 -44
  404. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +0 -1
  405. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +0 -84
  406. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +0 -1
  407. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +0 -149
  408. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +0 -1
  409. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +0 -1
  410. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +0 -1
  411. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +0 -29
  412. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +0 -1
  413. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +0 -47
  414. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +0 -1
  415. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js +0 -158
  416. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +0 -1
  417. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js +0 -36
  418. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +0 -1
  419. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +0 -1
  420. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +0 -1
  421. package/lib/commonjs/shared/providers/screen/styles/helpers/build-resolved-style-map.js +0 -144
  422. package/lib/commonjs/shared/providers/screen/styles/helpers/build-resolved-style-map.js.map +0 -1
  423. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js +0 -28
  424. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js.map +0 -1
  425. package/lib/commonjs/shared/providers/screen/styles/helpers/split-normalized-style-maps.js +0 -39
  426. package/lib/commonjs/shared/providers/screen/styles/helpers/split-normalized-style-maps.js.map +0 -1
  427. package/lib/commonjs/shared/stores/bounds/internals/presence.js +0 -125
  428. package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +0 -1
  429. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +0 -39
  430. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +0 -1
  431. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +0 -78
  432. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +0 -1
  433. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +0 -145
  434. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +0 -1
  435. package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +0 -1
  436. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +0 -1
  437. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +0 -24
  438. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +0 -1
  439. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +0 -42
  440. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +0 -1
  441. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js +0 -153
  442. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +0 -1
  443. package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js +0 -30
  444. package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +0 -1
  445. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +0 -1
  446. package/lib/module/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +0 -1
  447. package/lib/module/shared/providers/screen/styles/helpers/build-resolved-style-map.js +0 -139
  448. package/lib/module/shared/providers/screen/styles/helpers/build-resolved-style-map.js.map +0 -1
  449. package/lib/module/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js +0 -23
  450. package/lib/module/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js.map +0 -1
  451. package/lib/module/shared/providers/screen/styles/helpers/split-normalized-style-maps.js +0 -34
  452. package/lib/module/shared/providers/screen/styles/helpers/split-normalized-style-maps.js.map +0 -1
  453. package/lib/module/shared/stores/bounds/internals/presence.js +0 -115
  454. package/lib/module/shared/stores/bounds/internals/presence.js.map +0 -1
  455. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +0 -10
  456. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +0 -1
  457. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +0 -1
  458. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +0 -27
  459. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +0 -1
  460. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts +0 -12
  461. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts.map +0 -1
  462. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.d.ts.map +0 -1
  463. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts +0 -2
  464. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts.map +0 -1
  465. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts +0 -2
  466. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts.map +0 -1
  467. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts +0 -8
  468. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +0 -1
  469. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts +0 -13
  470. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts.map +0 -1
  471. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts +0 -12
  472. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +0 -1
  473. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts +0 -7
  474. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts.map +0 -1
  475. package/lib/typescript/shared/providers/screen/styles/helpers/build-resolved-style-map.d.ts +0 -11
  476. package/lib/typescript/shared/providers/screen/styles/helpers/build-resolved-style-map.d.ts.map +0 -1
  477. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.d.ts +0 -7
  478. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.d.ts.map +0 -1
  479. package/lib/typescript/shared/providers/screen/styles/helpers/split-normalized-style-maps.d.ts +0 -6
  480. package/lib/typescript/shared/providers/screen/styles/helpers/split-normalized-style-maps.d.ts.map +0 -1
  481. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts +0 -12
  482. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +0 -1
  483. package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +0 -56
  484. package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +0 -154
  485. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +0 -223
  486. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.ts +0 -29
  487. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.ts +0 -58
  488. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/index.ts +0 -183
  489. package/src/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.ts +0 -34
  490. package/src/shared/providers/screen/styles/helpers/build-resolved-style-map.ts +0 -185
  491. package/src/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.ts +0 -31
  492. package/src/shared/providers/screen/styles/helpers/split-normalized-style-maps.ts +0 -44
  493. package/src/shared/stores/bounds/internals/presence.ts +0 -145
  494. /package/lib/commonjs/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.js +0 -0
  495. /package/lib/module/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.js +0 -0
  496. /package/lib/typescript/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.d.ts +0 -0
  497. /package/src/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.ts +0 -0
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.resolveInterpolatedStyleOutput = void 0;
7
- var _constants = require("../../../../constants");
8
- var _normalizeInterpolatedStyle = require("../../../../utils/normalize-interpolated-style");
9
- const resolveInterpolatedStyleOutput = raw => {
10
- "worklet";
11
-
12
- if (raw == null || typeof raw !== "object") {
13
- return {
14
- stylesMap: _constants.NO_STYLES,
15
- wasLegacy: false
16
- };
17
- }
18
- const {
19
- result,
20
- wasLegacy
21
- } = (0, _normalizeInterpolatedStyle.normalizeInterpolatedStyle)(raw);
22
- return {
23
- stylesMap: result,
24
- wasLegacy
25
- };
26
- };
27
- exports.resolveInterpolatedStyleOutput = resolveInterpolatedStyleOutput;
28
- //# sourceMappingURL=resolve-interpolated-style-output.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_constants","require","_normalizeInterpolatedStyle","resolveInterpolatedStyleOutput","raw","stylesMap","NO_STYLES","wasLegacy","result","normalizeInterpolatedStyle","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-interpolated-style-output.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAKA,IAAAC,2BAAA,GAAAD,OAAA;AAOO,MAAME,8BAA8B,GAC1CC,GAAmD,IACd;EACrC,SAAS;;EAET,IAAIA,GAAG,IAAI,IAAI,IAAI,OAAOA,GAAG,KAAK,QAAQ,EAAE;IAC3C,OAAO;MACNC,SAAS,EAAEC,oBAAS;MACpBC,SAAS,EAAE;IACZ,CAAC;EACF;EAEA,MAAM;IAAEC,MAAM;IAAED;EAAU,CAAC,GAAG,IAAAE,sDAA0B,EAACL,GAAG,CAAC;EAE7D,OAAO;IACNC,SAAS,EAAEG,MAAM;IACjBD;EACD,CAAC;AACF,CAAC;AAACG,OAAA,CAAAP,8BAAA,GAAAA,8BAAA","ignoreList":[]}
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.splitNormalizedStyleMaps = void 0;
7
- var _constants = require("../../../../constants");
8
- const LAYER_STYLE_SLOT_IDS = {
9
- content: true,
10
- backdrop: true,
11
- surface: true,
12
- [_constants.NAVIGATION_MASK_ELEMENT_STYLE_ID]: true,
13
- [_constants.NAVIGATION_MASK_CONTAINER_STYLE_ID]: true
14
- };
15
- const isLayerStyleSlotId = slotId => {
16
- "worklet";
17
-
18
- // biome-ignore lint/suspicious/noPrototypeBuiltins: <Typescript lib target is ES2020>
19
- return Object.prototype.hasOwnProperty.call(LAYER_STYLE_SLOT_IDS, slotId);
20
- };
21
- const splitNormalizedStyleMaps = stylesMap => {
22
- "worklet";
23
-
24
- const layerStylesMap = {};
25
- const elementStylesMap = {};
26
- for (const slotId in stylesMap) {
27
- if (isLayerStyleSlotId(slotId)) {
28
- layerStylesMap[slotId] = stylesMap[slotId];
29
- continue;
30
- }
31
- elementStylesMap[slotId] = stylesMap[slotId];
32
- }
33
- return {
34
- layerStylesMap,
35
- elementStylesMap
36
- };
37
- };
38
- exports.splitNormalizedStyleMaps = splitNormalizedStyleMaps;
39
- //# sourceMappingURL=split-normalized-style-maps.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_constants","require","LAYER_STYLE_SLOT_IDS","content","backdrop","surface","NAVIGATION_MASK_ELEMENT_STYLE_ID","NAVIGATION_MASK_CONTAINER_STYLE_ID","isLayerStyleSlotId","slotId","Object","prototype","hasOwnProperty","call","splitNormalizedStyleMaps","stylesMap","layerStylesMap","elementStylesMap","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/split-normalized-style-maps.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAMA,MAAMC,oBAAoB,GAAG;EAC5BC,OAAO,EAAE,IAAI;EACbC,QAAQ,EAAE,IAAI;EACdC,OAAO,EAAE,IAAI;EACb,CAACC,2CAAgC,GAAG,IAAI;EACxC,CAACC,6CAAkC,GAAG;AACvC,CAAU;AAEV,MAAMC,kBAAkB,GAAIC,MAAc,IAAK;EAC9C,SAAS;;EACT;EACA,OAAOC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACX,oBAAoB,EAAEO,MAAM,CAAC;AAC1E,CAAC;AAEM,MAAMK,wBAAwB,GACpCC,SAAgD,IAI5C;EACJ,SAAS;;EACT,MAAMC,cAAqD,GAAG,CAAC,CAAC;EAChE,MAAMC,gBAAuD,GAAG,CAAC,CAAC;EAElE,KAAK,MAAMR,MAAM,IAAIM,SAAS,EAAE;IAC/B,IAAIP,kBAAkB,CAACC,MAAM,CAAC,EAAE;MAC/BO,cAAc,CAACP,MAAM,CAAC,GAAGM,SAAS,CAACN,MAAM,CAAC;MAC1C;IACD;IAEAQ,gBAAgB,CAACR,MAAM,CAAC,GAAGM,SAAS,CAACN,MAAM,CAAC;EAC7C;EAEA,OAAO;IACNO,cAAc;IACdC;EACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAJ,wBAAA,GAAAA,wBAAA","ignoreList":[]}
@@ -1,125 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.getBoundaryConfig = getBoundaryConfig;
7
- exports.getBoundaryPresence = getBoundaryPresence;
8
- exports.getGroupActiveId = getGroupActiveId;
9
- exports.getGroups = getGroups;
10
- exports.hasBoundaryPresence = hasBoundaryPresence;
11
- exports.registerBoundaryPresence = registerBoundaryPresence;
12
- exports.setGroupActiveId = setGroupActiveId;
13
- exports.unregisterBoundaryPresence = unregisterBoundaryPresence;
14
- var _state = require("./state");
15
- function registerBoundaryPresence(tag, screenKey, ancestorKeys, boundaryConfig, navigatorKey, ancestorNavigatorKeys) {
16
- "worklet";
17
-
18
- _state.presence.modify(state => {
19
- "worklet";
20
-
21
- const mutableState = state;
22
- let tagEntries = mutableState[tag];
23
- if (!tagEntries) {
24
- tagEntries = {};
25
- mutableState[tag] = tagEntries;
26
- }
27
- const currentEntry = tagEntries[screenKey];
28
- tagEntries[screenKey] = {
29
- count: (currentEntry?.count ?? 0) + 1,
30
- ancestorKeys: ancestorKeys ?? currentEntry?.ancestorKeys,
31
- boundaryConfig: boundaryConfig ?? currentEntry?.boundaryConfig,
32
- navigatorKey: navigatorKey ?? currentEntry?.navigatorKey,
33
- ancestorNavigatorKeys: ancestorNavigatorKeys ?? currentEntry?.ancestorNavigatorKeys
34
- };
35
- return state;
36
- });
37
- }
38
- function unregisterBoundaryPresence(tag, screenKey) {
39
- "worklet";
40
-
41
- const tagEntries = _state.presence.value[tag];
42
- if (!tagEntries) return;
43
- const currentEntry = tagEntries[screenKey];
44
- if (!currentEntry) return;
45
- _state.presence.modify(state => {
46
- "worklet";
47
-
48
- const mutableTagEntries = state[tag];
49
- const mutableEntry = mutableTagEntries?.[screenKey];
50
- if (!mutableTagEntries || !mutableEntry) return state;
51
- const nextCount = mutableEntry.count - 1;
52
- if (nextCount > 0) {
53
- mutableEntry.count = nextCount;
54
- return state;
55
- }
56
- delete mutableTagEntries[screenKey];
57
- for (const _remainingKey in mutableTagEntries) {
58
- return state;
59
- }
60
- delete state[tag];
61
- return state;
62
- });
63
- }
64
- function hasBoundaryPresence(tag, screenKey) {
65
- "worklet";
66
-
67
- const tagEntries = _state.presence.value[tag];
68
- if (!tagEntries) return false;
69
- const direct = tagEntries[screenKey];
70
- if (direct && direct.count > 0) return true;
71
- for (const entryScreenKey in tagEntries) {
72
- const entry = tagEntries[entryScreenKey];
73
- if (entry.ancestorKeys?.includes(screenKey)) {
74
- return true;
75
- }
76
- }
77
- return false;
78
- }
79
- function getBoundaryPresence() {
80
- "worklet";
81
-
82
- return _state.presence;
83
- }
84
- function getBoundaryConfig(tag, screenKey) {
85
- "worklet";
86
-
87
- const tagEntries = _state.presence.value[tag];
88
- if (!tagEntries) return null;
89
- const direct = tagEntries[screenKey];
90
- if (direct && direct.count > 0) {
91
- return direct.boundaryConfig ?? null;
92
- }
93
- for (const entryScreenKey in tagEntries) {
94
- const entry = tagEntries[entryScreenKey];
95
- if (entry.count <= 0) continue;
96
- if (entry.ancestorKeys?.includes(screenKey)) {
97
- return entry.boundaryConfig ?? null;
98
- }
99
- }
100
- return null;
101
- }
102
- function setGroupActiveId(group, id) {
103
- "worklet";
104
-
105
- _state.groups.modify(state => {
106
- "worklet";
107
-
108
- const mutableState = state;
109
- mutableState[group] = {
110
- activeId: id
111
- };
112
- return state;
113
- });
114
- }
115
- function getGroupActiveId(group) {
116
- "worklet";
117
-
118
- return _state.groups.value[group]?.activeId ?? null;
119
- }
120
- function getGroups() {
121
- "worklet";
122
-
123
- return _state.groups;
124
- }
125
- //# sourceMappingURL=presence.js.map
@@ -1 +0,0 @@
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,cAA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X,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":[]}
@@ -1,39 +0,0 @@
1
- "use strict";
2
-
3
- import { useAnimatedReaction } from "react-native-reanimated";
4
- import { BoundStore } from "../../../stores/bounds";
5
- import { resolveAutoSourceCaptureSignal } from "./helpers/measurement-rules";
6
- export const useAutoSourceMeasurement = params => {
7
- const {
8
- enabled,
9
- sharedBoundTag,
10
- id,
11
- group,
12
- nextScreenKey,
13
- maybeMeasureAndStore
14
- } = params;
15
- const boundaryPresence = BoundStore.getBoundaryPresence();
16
- useAnimatedReaction(() => {
17
- "worklet";
18
-
19
- return resolveAutoSourceCaptureSignal({
20
- enabled,
21
- nextScreenKey,
22
- tagPresence: boundaryPresence.value[sharedBoundTag]
23
- });
24
- }, (captureSignal, previousCaptureSignal) => {
25
- "worklet";
26
-
27
- if (!enabled) return;
28
- if (!nextScreenKey) return;
29
- if (!captureSignal || captureSignal === previousCaptureSignal) return;
30
- const currentGroupActiveId = group ? BoundStore.getGroupActiveId(group) : null;
31
- if (group && currentGroupActiveId !== String(id)) {
32
- return;
33
- }
34
- maybeMeasureAndStore({
35
- intent: "capture-source"
36
- });
37
- }, [enabled, id, group, nextScreenKey, sharedBoundTag, boundaryPresence, maybeMeasureAndStore]);
38
- };
39
- //# sourceMappingURL=use-auto-source-measurement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useAnimatedReaction","BoundStore","resolveAutoSourceCaptureSignal","useAutoSourceMeasurement","params","enabled","sharedBoundTag","id","group","nextScreenKey","maybeMeasureAndStore","boundaryPresence","getBoundaryPresence","tagPresence","value","captureSignal","previousCaptureSignal","currentGroupActiveId","getGroupActiveId","String","intent"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,yBAAyB;AAC7D,SAASC,UAAU,QAAQ,wBAAwB;AAEnD,SAASC,8BAA8B,QAAQ,6BAA6B;AAE5E,OAAO,MAAMC,wBAAwB,GAAIC,MAOxC,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,cAAc;IACdC,EAAE;IACFC,KAAK;IACLC,aAAa;IACbC;EACD,CAAC,GAAGN,MAAM;EACV,MAAMO,gBAAgB,GAAGV,UAAU,CAACW,mBAAmB,CAAC,CAAC;EAEzDZ,mBAAmB,CAClB,MAAM;IACL,SAAS;;IACT,OAAOE,8BAA8B,CAAC;MACrCG,OAAO;MACPI,aAAa;MACbI,WAAW,EAAEF,gBAAgB,CAACG,KAAK,CAACR,cAAc;IACnD,CAAC,CAAC;EACH,CAAC,EACD,CAACS,aAAa,EAAEC,qBAAqB,KAAK;IACzC,SAAS;;IACT,IAAI,CAACX,OAAO,EAAE;IACd,IAAI,CAACI,aAAa,EAAE;IACpB,IAAI,CAACM,aAAa,IAAIA,aAAa,KAAKC,qBAAqB,EAAE;IAC/D,MAAMC,oBAAoB,GAAGT,KAAK,GAC/BP,UAAU,CAACiB,gBAAgB,CAACV,KAAK,CAAC,GAClC,IAAI;IACP,IAAIA,KAAK,IAAIS,oBAAoB,KAAKE,MAAM,CAACZ,EAAE,CAAC,EAAE;MACjD;IACD;IACAG,oBAAoB,CAAC;MAAEU,MAAM,EAAE;IAAiB,CAAC,CAAC;EACnD,CAAC,EACD,CACCf,OAAO,EACPE,EAAE,EACFC,KAAK,EACLC,aAAa,EACbH,cAAc,EACdK,gBAAgB,EAChBD,oBAAoB,CAEtB,CAAC;AACF,CAAC","ignoreList":[]}
@@ -1,78 +0,0 @@
1
- "use strict";
2
-
3
- import { measure } from "react-native-reanimated";
4
- import useStableCallbackValue from "../../../hooks/use-stable-callback-value";
5
- import { useLayoutAnchorContext } from "../../../providers/layout-anchor.provider";
6
- import { BoundStore } from "../../../stores/bounds";
7
- import { applyMeasuredBoundsWrites } from "../../../stores/bounds/helpers/apply-measured-bounds-writes";
8
- import { resolvePendingSourceKey } from "../helpers/resolve-pending-source-key";
9
- import { getMeasurementIntentFlags, resolveMeasurementWritePlan } from "./helpers/measurement-rules";
10
- const SNAPSHOT_EPSILON = 0.5;
11
- const areMeasurementsEqual = (a, b) => {
12
- "worklet";
13
-
14
- return Math.abs(a.x - b.x) <= SNAPSHOT_EPSILON && Math.abs(a.y - b.y) <= SNAPSHOT_EPSILON && Math.abs(a.pageX - b.pageX) <= SNAPSHOT_EPSILON && Math.abs(a.pageY - b.pageY) <= SNAPSHOT_EPSILON && Math.abs(a.width - b.width) <= SNAPSHOT_EPSILON && Math.abs(a.height - b.height) <= SNAPSHOT_EPSILON;
15
- };
16
- export const useBoundaryMeasureAndStore = params => {
17
- const {
18
- enabled,
19
- sharedBoundTag,
20
- preferredSourceScreenKey,
21
- currentScreenKey,
22
- ancestorKeys,
23
- navigatorKey,
24
- ancestorNavigatorKeys,
25
- preparedStyles,
26
- measuredAnimatedRef
27
- } = params;
28
- const layoutAnchor = useLayoutAnchorContext();
29
- return useStableCallbackValue(({
30
- intent
31
- } = {}) => {
32
- "worklet";
33
-
34
- if (!enabled) return;
35
- const intents = getMeasurementIntentFlags(intent);
36
- const expectedSourceScreenKey = resolvePendingSourceKey(sharedBoundTag, preferredSourceScreenKey) || undefined;
37
- const hasPendingLink = expectedSourceScreenKey ? BoundStore.hasPendingLinkFromSource(sharedBoundTag, expectedSourceScreenKey) : BoundStore.hasPendingLink(sharedBoundTag);
38
- const hasAttachableSourceLink = expectedSourceScreenKey ? BoundStore.hasSourceLink(sharedBoundTag, expectedSourceScreenKey) : false;
39
- const hasSourceLink = BoundStore.hasSourceLink(sharedBoundTag, currentScreenKey);
40
- const hasDestinationLink = BoundStore.hasDestinationLink(sharedBoundTag, currentScreenKey);
41
- const writePlan = resolveMeasurementWritePlan({
42
- intents,
43
- hasPendingLink,
44
- hasSourceLink,
45
- hasDestinationLink,
46
- hasAttachableSourceLink
47
- });
48
- if (!writePlan.writesAny) {
49
- return;
50
- }
51
- const measured = measure(measuredAnimatedRef);
52
- if (!measured) return;
53
- const correctedMeasured = layoutAnchor ? layoutAnchor.correctMeasurement(measured) : measured;
54
- const destinationInViewport = !writePlan.wantsDestinationWrite || !layoutAnchor || !layoutAnchor.isMeasurementInViewport || layoutAnchor.isMeasurementInViewport(correctedMeasured);
55
- if (!destinationInViewport && !writePlan.captureSource && !writePlan.refreshSource) {
56
- return;
57
- }
58
- const existingSnapshot = BoundStore.getSnapshot(sharedBoundTag, currentScreenKey);
59
- const hasSnapshotChanged = !existingSnapshot || !areMeasurementsEqual(existingSnapshot.bounds, correctedMeasured);
60
- const shouldWriteSnapshot = hasSnapshotChanged;
61
- applyMeasuredBoundsWrites({
62
- sharedBoundTag,
63
- currentScreenKey,
64
- measured: correctedMeasured,
65
- preparedStyles,
66
- ancestorKeys,
67
- navigatorKey,
68
- ancestorNavigatorKeys,
69
- expectedSourceScreenKey,
70
- shouldRegisterSnapshot: shouldWriteSnapshot,
71
- shouldSetSource: writePlan.captureSource,
72
- shouldUpdateSource: writePlan.refreshSource && hasSnapshotChanged,
73
- shouldUpdateDestination: writePlan.refreshDestination && destinationInViewport && hasSnapshotChanged,
74
- shouldSetDestination: writePlan.completeDestination && destinationInViewport
75
- });
76
- });
77
- };
78
- //# sourceMappingURL=use-boundary-measure-and-store.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["measure","useStableCallbackValue","useLayoutAnchorContext","BoundStore","applyMeasuredBoundsWrites","resolvePendingSourceKey","getMeasurementIntentFlags","resolveMeasurementWritePlan","SNAPSHOT_EPSILON","areMeasurementsEqual","a","b","Math","abs","x","y","pageX","pageY","width","height","useBoundaryMeasureAndStore","params","enabled","sharedBoundTag","preferredSourceScreenKey","currentScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","preparedStyles","measuredAnimatedRef","layoutAnchor","intent","intents","expectedSourceScreenKey","undefined","hasPendingLink","hasPendingLinkFromSource","hasAttachableSourceLink","hasSourceLink","hasDestinationLink","writePlan","writesAny","measured","correctedMeasured","correctMeasurement","destinationInViewport","wantsDestinationWrite","isMeasurementInViewport","captureSource","refreshSource","existingSnapshot","getSnapshot","hasSnapshotChanged","bounds","shouldWriteSnapshot","shouldRegisterSnapshot","shouldSetSource","shouldUpdateSource","shouldUpdateDestination","refreshDestination","shouldSetDestination","completeDestination"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts"],"mappings":";;AACA,SAGCA,OAAO,QAED,yBAAyB;AAChC,OAAOC,sBAAsB,MAAM,0CAA0C;AAC7E,SAASC,sBAAsB,QAAQ,2CAA2C;AAClF,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SAASC,yBAAyB,QAAQ,6DAA6D;AACvG,SAASC,uBAAuB,QAAQ,uCAAuC;AAE/E,SACCC,yBAAyB,EACzBC,2BAA2B,QACrB,6BAA6B;AAEpC,MAAMC,gBAAgB,GAAG,GAAG;AAE5B,MAAMC,oBAAoB,GAAGA,CAC5BC,CAAqB,EACrBC,CAAqB,KACR;EACb,SAAS;;EAET,OACCC,IAAI,CAACC,GAAG,CAACH,CAAC,CAACI,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC,IAAIN,gBAAgB,IACvCI,IAAI,CAACC,GAAG,CAACH,CAAC,CAACK,CAAC,GAAGJ,CAAC,CAACI,CAAC,CAAC,IAAIP,gBAAgB,IACvCI,IAAI,CAACC,GAAG,CAACH,CAAC,CAACM,KAAK,GAAGL,CAAC,CAACK,KAAK,CAAC,IAAIR,gBAAgB,IAC/CI,IAAI,CAACC,GAAG,CAACH,CAAC,CAACO,KAAK,GAAGN,CAAC,CAACM,KAAK,CAAC,IAAIT,gBAAgB,IAC/CI,IAAI,CAACC,GAAG,CAACH,CAAC,CAACQ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
- import { useLayoutEffect } from "react";
4
- import { runOnUI, useAnimatedReaction, useSharedValue } from "react-native-reanimated";
5
- import { AnimationStore } from "../../../stores/animation.store";
6
- import { BoundStore } from "../../../stores/bounds";
7
- import { resolvePendingSourceKey } from "../helpers/resolve-pending-source-key";
8
- import { resolvePendingDestinationCaptureSignal, resolvePendingDestinationRetrySignal } from "./helpers/measurement-rules";
9
-
10
- /**
11
- * The current v3.4 behavior intentionally favors correctness over efficiency:
12
- * when destination layout races transition start, this hook may re-measure
13
- * multiple times to recover a usable pair for `navigation.zoom()`.
14
- *
15
- * This works well enough for now, but it is not the ideal architecture. A more
16
- * complete v4 solution should allow open-animation deferral and broader
17
- * readiness coordination so we can avoid repeated measurement work while still
18
- * handling multiple transition scenarios correctly. Until that system exists,
19
- * `navigation.zoom()` remains fast in practice, just not as performant as it
20
- * could be.
21
- *
22
- * For now, you may notice a slight stutter towards the end of the animation.
23
- */
24
- export const usePendingDestinationMeasurement = params => {
25
- const {
26
- sharedBoundTag,
27
- enabled,
28
- id,
29
- group,
30
- currentScreenKey,
31
- expectedSourceScreenKey,
32
- animating,
33
- maybeMeasureAndStore
34
- } = params;
35
- const progress = AnimationStore.getValue(currentScreenKey, "progress");
36
- const closing = AnimationStore.getValue(currentScreenKey, "closing");
37
- const retryCount = useSharedValue(0);
38
- const MAX_RETRIES = 4;
39
- const RETRY_PROGRESS_BUCKETS = 8;
40
- const RETRY_PROGRESS_MAX = 1.05;
41
- useLayoutEffect(() => {
42
- if (!enabled) return;
43
- runOnUI(() => {
44
- "worklet";
45
-
46
- if (closing.get()) {
47
- return;
48
- }
49
- const currentGroupActiveId = group ? BoundStore.getGroupActiveId(group) : null;
50
- if (group && currentGroupActiveId !== String(id)) {
51
- return;
52
- }
53
- const resolvedSourceKey = resolvePendingSourceKey(sharedBoundTag, expectedSourceScreenKey);
54
- const hasAttachableSourceLink = resolvedSourceKey ? BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey) || BoundStore.hasSourceLink(sharedBoundTag, resolvedSourceKey) : false;
55
- if (!hasAttachableSourceLink) {
56
- return;
57
- }
58
- if (BoundStore.hasDestinationLink(sharedBoundTag, currentScreenKey)) {
59
- return;
60
- }
61
- maybeMeasureAndStore({
62
- intent: "complete-destination"
63
- });
64
- })();
65
- }, [enabled, id, group, sharedBoundTag, currentScreenKey, expectedSourceScreenKey, closing, maybeMeasureAndStore]);
66
-
67
- /**
68
- * This exessive retry for groups with {target:"bound"} will have to change in v4.
69
- * .navigation.zoom() is stable and works great for non groups and groups that are non {target: "bound"}.
70
- *
71
- * The retry logic is needed for dst screen when we do an initialScrollIndex, the system is competing with the (i assume) useLayoutEffect
72
- * in the scrollable, causing a race here and giving us wrong measurements. I believe, in simialr fashion to how
73
- * system.store defers the screen from animating, we could possibly do the same here. Registering it up, once we get valid measurements, we can
74
- * un defer? Is that the word? Undefer the screen, removing this block compeltely, avoiding any potential flickers ( which currently happens.)
75
- *
76
- * You can replicate this bug by dismissing dst, as dst reaches its ending tail (0.01->0.10), if we tap again, we notice a flicker.
77
- */
78
- useAnimatedReaction(() => {
79
- "worklet";
80
-
81
- if (closing.get()) {
82
- return 0;
83
- }
84
- const resolvedSourceKey = resolvePendingSourceKey(sharedBoundTag, expectedSourceScreenKey);
85
- return resolvePendingDestinationCaptureSignal({
86
- enabled,
87
- resolvedSourceKey,
88
- hasAttachableSourceLink: resolvedSourceKey ? BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey) || BoundStore.hasSourceLink(sharedBoundTag, resolvedSourceKey) : false,
89
- hasDestinationLink: BoundStore.hasDestinationLink(sharedBoundTag, currentScreenKey)
90
- });
91
- }, (captureSignal, previousCaptureSignal) => {
92
- "worklet";
93
-
94
- if (!enabled) return;
95
- if (!captureSignal || captureSignal === previousCaptureSignal) {
96
- return;
97
- }
98
- const currentGroupActiveId = group ? BoundStore.getGroupActiveId(group) : null;
99
- if (group && currentGroupActiveId !== String(id)) {
100
- return;
101
- }
102
- maybeMeasureAndStore({
103
- intent: "complete-destination"
104
- });
105
- }, [enabled, id, group, sharedBoundTag, expectedSourceScreenKey, closing, maybeMeasureAndStore]);
106
- useAnimatedReaction(() => {
107
- "worklet";
108
-
109
- if (closing.get()) {
110
- return 0;
111
- }
112
- const resolvedSourceKey = resolvePendingSourceKey(sharedBoundTag, expectedSourceScreenKey);
113
- return resolvePendingDestinationRetrySignal({
114
- enabled,
115
- retryCount: retryCount.get(),
116
- maxRetries: MAX_RETRIES,
117
- isAnimating: !!animating.get(),
118
- hasDestinationLink: BoundStore.hasDestinationLink(sharedBoundTag, currentScreenKey),
119
- progress: progress.get(),
120
- retryProgressMax: RETRY_PROGRESS_MAX,
121
- retryProgressBuckets: RETRY_PROGRESS_BUCKETS,
122
- resolvedSourceKey,
123
- hasAttachableSourceLink: resolvedSourceKey ? BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey) || BoundStore.hasSourceLink(sharedBoundTag, resolvedSourceKey) : false
124
- });
125
- }, captureSignal => {
126
- "worklet";
127
-
128
- // if (!group) return;
129
- if (!enabled) return;
130
- if (!captureSignal) {
131
- retryCount.set(0);
132
- return;
133
- }
134
- const currentGroupActiveId = group ? BoundStore.getGroupActiveId(group) : null;
135
- if (group && currentGroupActiveId !== String(id)) {
136
- return;
137
- }
138
- if (retryCount.get() >= MAX_RETRIES) return;
139
- retryCount.set(retryCount.get() + 1);
140
- maybeMeasureAndStore({
141
- intent: "complete-destination"
142
- });
143
- });
144
- };
145
- //# sourceMappingURL=use-pending-destination-measurement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useLayoutEffect","runOnUI","useAnimatedReaction","useSharedValue","AnimationStore","BoundStore","resolvePendingSourceKey","resolvePendingDestinationCaptureSignal","resolvePendingDestinationRetrySignal","usePendingDestinationMeasurement","params","sharedBoundTag","enabled","id","group","currentScreenKey","expectedSourceScreenKey","animating","maybeMeasureAndStore","progress","getValue","closing","retryCount","MAX_RETRIES","RETRY_PROGRESS_BUCKETS","RETRY_PROGRESS_MAX","get","currentGroupActiveId","getGroupActiveId","String","resolvedSourceKey","hasAttachableSourceLink","hasPendingLinkFromSource","hasSourceLink","hasDestinationLink","intent","captureSignal","previousCaptureSignal","maxRetries","isAnimating","retryProgressMax","retryProgressBuckets","set"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,OAAO;AACvC,SACCC,OAAO,EAEPC,mBAAmB,EACnBC,cAAc,QACR,yBAAyB;AAChC,SAASC,cAAc,QAAQ,iCAAiC;AAChE,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SAASC,uBAAuB,QAAQ,uCAAuC;AAE/E,SACCC,sCAAsC,EACtCC,oCAAoC,QAC9B,6BAA6B;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,gCAAgC,GAAIC,MAShD,IAAK;EACL,MAAM;IACLC,cAAc;IACdC,OAAO;IACPC,EAAE;IACFC,KAAK;IACLC,gBAAgB;IAChBC,uBAAuB;IACvBC,SAAS;IACTC;EACD,CAAC,GAAGR,MAAM;EAEV,MAAMS,QAAQ,GAAGf,cAAc,CAACgB,QAAQ,CAACL,gBAAgB,EAAE,UAAU,CAAC;EACtE,MAAMM,OAAO,GAAGjB,cAAc,CAACgB,QAAQ,CAACL,gBAAgB,EAAE,SAAS,CAAC;EAEpE,MAAMO,UAAU,GAAGnB,cAAc,CAAC,CAAC,CAAC;EACpC,MAAMoB,WAAW,GAAG,CAAC;EACrB,MAAMC,sBAAsB,GAAG,CAAC;EAChC,MAAMC,kBAAkB,GAAG,IAAI;EAE/BzB,eAAe,CAAC,MAAM;IACrB,IAAI,CAACY,OAAO,EAAE;IAEdX,OAAO,CAAC,MAAM;MACb,SAAS;;MACT,IAAIoB,OAAO,CAACK,GAAG,CAAC,CAAC,EAAE;QAClB;MACD;MAEA,MAAMC,oBAAoB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UAAU,CAAC2B,wBAAwB,CACnCrB,cAAc,EACdmB,iBACD,CAAC,IAAIzB,UAAU,CAAC4B,aAAa,CAACtB,cAAc,EAAEmB,iBAAiB,CAAC,GAC/D;IACJ,CAAC,CAAC;EACH,CAAC,EACAM,aAAa,IAAK;IAClB,SAAS;;IACT;IACA,IAAI,CAACxB,OAAO,EAAE;IACd,IAAI,CAACwB,aAAa,EAAE;MACnBd,UAAU,CAACoB,GAAG,CAAC,CAAC,CAAC;MACjB;IACD;IACA,MAAMf,oBAAoB,GAAGb,KAAK,GAC/BT,UAAU,CAACuB,gBAAgB,CAACd,KAAK,CAAC,GAClC,IAAI;IACP,IAAIA,KAAK,IAAIa,oBAAoB,KAAKE,MAAM,CAAChB,EAAE,CAAC,EAAE;MACjD;IACD;IAEA,IAAIS,UAAU,CAACI,GAAG,CAAC,CAAC,IAAIH,WAAW,EAAE;IACrCD,UAAU,CAACoB,GAAG,CAACpB,UAAU,CAACI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IACpCR,oBAAoB,CAAC;MAAEiB,MAAM,EAAE;IAAuB,CAAC,CAAC;EACzD,CACD,CAAC;AACF,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["useAnimatedReaction","AnimationStore","BoundStore","GestureStore","PREPARE_DESTINATION_MEASUREMENT_INTENT","resolvePrepareSourceMeasurementIntent","usePreTransitionMeasurement","params","enabled","sharedBoundTag","id","group","currentScreenKey","nextScreenKey","hasNextScreen","maybeMeasureAndStore","currentWillAnimate","getValue","currentAnimating","currentDragging","nextWillAnimate","nextAnimating","nextDragging","get","nextValue","previousValue","currentGroupActiveId","getGroupActiveId","String","shouldCancelMeasurement","hasSourceLink","intent","shouldRefreshExistingSource"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-pre-transition-measurement.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,yBAAyB;AAC7D,SAASC,cAAc,QAAQ,iCAAiC;AAChE,SAAS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ByNavigator","Map","registerMountedRoute","navigatorKey","routeKey","routes","get","Set","set","add","unregisterMountedRoute","delete","size","_resetNavigatorRouteRegistry","clear"],"sourceRoot":"../../../../../../../../src","sources":["shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.ts"],"mappings":";;AAAA,MAAMA,wBAAwB,GAAG,IAAIC,GAAG,CAAsB,CAAC;AAE/D,OAAO,SAASC,oBAAoBA,CACnCC,YAAoB,EACpBC,QAAgB,EACT;EACP,IAAI,CAACD,YAAY,IAAI,CAACC,QAAQ,EAAE;EAEhC,IAAIC,MAAM,GAAGL,wBAAwB,CAACM,GAAG,CAACH,YAAY,CAAC;EACvD,IAAI,CAACE,MAAM,EAAE;IACZA,MAAM,GAAG,IAAIE,GAAG,CAAC,CAAC;IAClBP,wBAAwB,CAACQ,GAAG,CAACL,YAAY,EAAEE,MAAM,CAAC;EACnD;EAEAA,MAAM,CAACI,GAAG,CAACL,QAAQ,CAAC;AACrB;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASM,sBAAsBA,CACrCP,YAAoB,EACpBC,QAAgB,EACN;EACV,IAAI,CAACD,YAAY,IAAI,CAACC,QAAQ,EAAE,OAAO,KAAK;EAE5C,MAAMC,MAAM,GAAGL,wBAAwB,CAACM,GAAG,CAACH,YAAY,CAAC;EACzD,IAAI,CAACE,MAAM,EAAE,OAAO,KAAK;EAEzBA,MAAM,CAACM,MAAM,CAACP,QAAQ,CAAC;EAEvB,IAAIC,MAAM,CAACO,IAAI,GAAG,CAAC,EAAE;IACpB,OAAO,KAAK;EACb;EAEAZ,wBAAwB,CAACW,MAAM,CAACR,YAAY,CAAC;EAC7C,OAAO,IAAI;AACZ;;AAEA;AACA;AACA;AACA,OAAO,SAASU,4BAA4BA,CAAA,EAAS;EACpDb,wBAAwB,CAACc,KAAK,CAAC,CAAC;AACjC","ignoreList":[]}
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- import { runOnUI } from "react-native-reanimated";
4
- import { AnimationStore } from "../../../../../stores/animation.store";
5
- import { BoundStore } from "../../../../../stores/bounds";
6
- import { GestureStore } from "../../../../../stores/gesture.store";
7
- import { SystemStore } from "../../../../../stores/system.store";
8
- export const resetStoresForScreen = (routeKey, isBranchScreen, branchNavigatorKey) => {
9
- AnimationStore.clearBag(routeKey);
10
- GestureStore.clearBag(routeKey);
11
- SystemStore.clearBag(routeKey);
12
- runOnUI(() => {
13
- "worklet";
14
-
15
- if (!isBranchScreen) return;
16
- BoundStore.clear(routeKey);
17
- if (branchNavigatorKey) {
18
- BoundStore.clearByBranch(branchNavigatorKey);
19
- return;
20
- }
21
- BoundStore.clearByAncestor(routeKey);
22
- })();
23
- };
24
- //# sourceMappingURL=reset-stores-for-screen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["runOnUI","AnimationStore","BoundStore","GestureStore","SystemStore","resetStoresForScreen","routeKey","isBranchScreen","branchNavigatorKey","clearBag","clear","clearByBranch","clearByAncestor"],"sourceRoot":"../../../../../../../../src","sources":["shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yBAAyB;AACjD,SAASC,cAAc,QAAQ,uCAAuC;AACtE,SAASC,UAAU,QAAQ,8BAA8B;AACzD,SAASC,YAAY,QAAQ,qCAAqC;AAClE,SAASC,WAAW,QAAQ,oCAAoC;AAEhE,OAAO,MAAMC,oBAAoB,GAAGA,CACnCC,QAAgB,EAChBC,cAAuB,EACvBC,kBAA2B,KACvB;EACJP,cAAc,CAACQ,QAAQ,CAACH,QAAQ,CAAC;EACjCH,YAAY,CAACM,QAAQ,CAACH,QAAQ,CAAC;EAC/BF,WAAW,CAACK,QAAQ,CAACH,QAAQ,CAAC;EAE9BN,OAAO,CAAC,MAAM;IACb,SAAS;;IACT,IAAI,CAACO,cAAc,EAAE;IAErBL,UAAU,CAACQ,KAAK,CAACJ,QAAQ,CAAC;IAE1B,IAAIE,kBAAkB,EAAE;MACvBN,UAAU,CAACS,aAAa,CAACH,kBAAkB,CAAC;MAC5C;IACD;IAEAN,UAAU,CAACU,eAAe,CAACN,QAAQ,CAAC;EACrC,CAAC,CAAC,CAAC,CAAC;AACL,CAAC","ignoreList":[]}
@@ -1,42 +0,0 @@
1
- "use strict";
2
-
3
- import { useEffect } from "react";
4
- import { HistoryStore } from "../../../../../stores/history.store";
5
- const mountedRoutesByNavigator = new Map();
6
- function registerMountedRoute(navigatorKey, routeKey) {
7
- if (!navigatorKey || !routeKey) return;
8
- let routes = mountedRoutesByNavigator.get(navigatorKey);
9
- if (!routes) {
10
- routes = new Set();
11
- mountedRoutesByNavigator.set(navigatorKey, routes);
12
- }
13
- routes.add(routeKey);
14
- }
15
-
16
- /**
17
- * Removes the route from its navigator set.
18
- * Returns true when the navigator has no mounted routes left.
19
- */
20
- function unregisterMountedRoute(navigatorKey, routeKey) {
21
- if (!navigatorKey || !routeKey) return false;
22
- const routes = mountedRoutesByNavigator.get(navigatorKey);
23
- if (!routes) return false;
24
- routes.delete(routeKey);
25
- if (routes.size > 0) {
26
- return false;
27
- }
28
- mountedRoutesByNavigator.delete(navigatorKey);
29
- return true;
30
- }
31
- export const useNavigatorHistoryRegistry = (navigatorKey, routeKey) => {
32
- useEffect(() => {
33
- registerMountedRoute(navigatorKey, routeKey);
34
- return () => {
35
- const shouldClearNavigator = unregisterMountedRoute(navigatorKey, routeKey);
36
- if (shouldClearNavigator) {
37
- HistoryStore.clearNavigator(navigatorKey);
38
- }
39
- };
40
- }, [navigatorKey, routeKey]);
41
- };
42
- //# sourceMappingURL=use-navigator-history-registry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useEffect","HistoryStore","mountedRoutesByNavigator","Map","registerMountedRoute","navigatorKey","routeKey","routes","get","Set","set","add","unregisterMountedRoute","delete","size","useNavigatorHistoryRegistry","shouldClearNavigator","clearNavigator"],"sourceRoot":"../../../../../../../../src","sources":["shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.ts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