react-native-screen-transitions 3.4.0 → 3.5.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 (514) 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/commonjs/shared/utils/platform.js +1 -0
  116. package/lib/commonjs/shared/utils/platform.js.map +1 -1
  117. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +21 -32
  118. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  119. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +2 -2
  120. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  121. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +2 -2
  122. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  123. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +21 -0
  124. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -0
  125. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +7 -2
  126. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  127. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +105 -0
  128. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -0
  129. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +35 -0
  130. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -0
  131. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +74 -0
  132. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -0
  133. package/lib/module/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.js → use-refresh-boundary.js} +24 -25
  134. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -0
  135. package/lib/module/shared/components/create-transition-aware-component.js +4 -13
  136. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  137. package/lib/module/shared/components/overlay/variations/float-overlay.js +1 -0
  138. package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
  139. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +8 -11
  140. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  141. package/lib/module/shared/components/screen-container/layers/backdrop.js +3 -3
  142. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  143. package/lib/module/shared/components/screen-container/layers/content.js +4 -5
  144. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  145. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +4 -3
  146. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  147. package/lib/module/shared/components/screen-container/layers/surface-container.js +3 -3
  148. package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
  149. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +24 -0
  150. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -0
  151. package/lib/module/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.js.map +1 -0
  152. package/lib/module/shared/components/screen-lifecycle/hooks/{use-screen-events.js → history/use-screen-history.js} +16 -10
  153. package/lib/module/shared/components/screen-lifecycle/hooks/history/use-screen-history.js.map +1 -0
  154. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +134 -0
  155. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -0
  156. package/lib/module/shared/components/screen-lifecycle/hooks/{use-open-transition.js → use-open-transition-intent.js} +13 -24
  157. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -0
  158. package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +48 -0
  159. package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -0
  160. package/lib/module/shared/components/screen-lifecycle/index.js +18 -15
  161. package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
  162. package/lib/module/shared/constants.js +5 -16
  163. package/lib/module/shared/constants.js.map +1 -1
  164. package/lib/module/shared/providers/register-bounds.provider.js +6 -9
  165. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  166. package/lib/module/shared/providers/screen/animation/animation.provider.js +22 -43
  167. package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
  168. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +19 -35
  169. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  170. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +65 -39
  171. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  172. package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -1
  173. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -2
  174. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  175. package/lib/module/shared/providers/screen/animation/types.js +2 -0
  176. package/lib/module/shared/providers/screen/animation/use-screen-animation.js +19 -5
  177. package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  178. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -0
  179. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  180. package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js +25 -0
  181. package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -0
  182. package/lib/module/shared/providers/screen/styles/constants.js +31 -0
  183. package/lib/module/shared/providers/screen/styles/constants.js.map +1 -0
  184. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +45 -0
  185. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -0
  186. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js +132 -0
  187. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +1 -0
  188. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +70 -0
  189. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -0
  190. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +44 -0
  191. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -0
  192. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +26 -0
  193. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -0
  194. package/lib/module/shared/providers/screen/styles/styles.provider.js +34 -108
  195. package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
  196. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +13 -7
  197. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
  198. package/lib/module/shared/stores/bounds/helpers/keys.js +8 -0
  199. package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -1
  200. package/lib/module/shared/stores/bounds/index.js +27 -26
  201. package/lib/module/shared/stores/bounds/index.js.map +1 -1
  202. package/lib/module/shared/stores/bounds/internals/clear.js +14 -52
  203. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
  204. package/lib/module/shared/stores/bounds/internals/groups.js +23 -0
  205. package/lib/module/shared/stores/bounds/internals/groups.js.map +1 -0
  206. package/lib/module/shared/stores/bounds/internals/registry.js +204 -178
  207. package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
  208. package/lib/module/shared/stores/bounds/internals/resolver.js +2 -6
  209. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  210. package/lib/module/shared/stores/bounds/internals/state.js +1 -2
  211. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  212. package/lib/module/shared/stores/system.store.js +43 -10
  213. package/lib/module/shared/stores/system.store.js.map +1 -1
  214. package/lib/module/shared/types/animation.types.js.map +1 -1
  215. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js +4 -0
  216. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
  217. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +6 -6
  218. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  219. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +9 -3
  220. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  221. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +5 -8
  222. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  223. package/lib/module/shared/utils/bounds/helpers/styles/compute.js +3 -9
  224. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  225. package/lib/module/shared/utils/bounds/index.js +7 -5
  226. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  227. package/lib/module/shared/utils/bounds/zoom/build.js +46 -146
  228. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
  229. package/lib/module/shared/utils/create-store.js +13 -4
  230. package/lib/module/shared/utils/create-store.js.map +1 -1
  231. package/lib/module/shared/utils/platform.js +1 -0
  232. package/lib/module/shared/utils/platform.js.map +1 -1
  233. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts +4 -4
  234. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
  235. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
  236. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
  237. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +8 -8
  238. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
  239. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +5 -0
  240. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +1 -0
  241. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
  242. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts +13 -0
  243. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +1 -0
  244. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts +10 -0
  245. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +1 -0
  246. package/lib/typescript/shared/components/create-boundary-component/hooks/{use-boundary-measure-and-store.d.ts → use-measurer.d.ts} +6 -4
  247. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -0
  248. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +14 -0
  249. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -0
  250. package/lib/typescript/shared/components/create-boundary-component/index.d.ts +2 -2
  251. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +6 -3
  252. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
  253. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  254. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +1 -1
  255. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
  256. package/lib/typescript/shared/components/scene-view.d.ts +1 -1
  257. package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
  258. package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -1
  259. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +2 -2
  260. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  261. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
  262. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
  263. package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts +2 -0
  264. package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -0
  265. package/lib/typescript/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.d.ts.map +1 -0
  266. package/lib/typescript/shared/components/screen-lifecycle/hooks/history/use-screen-history.d.ts +7 -0
  267. package/lib/typescript/shared/components/screen-lifecycle/hooks/history/use-screen-history.d.ts.map +1 -0
  268. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts +11 -0
  269. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -0
  270. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition-intent.d.ts +8 -0
  271. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition-intent.d.ts.map +1 -0
  272. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts +11 -0
  273. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts.map +1 -0
  274. package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -1
  275. package/lib/typescript/shared/constants.d.ts +1 -14
  276. package/lib/typescript/shared/constants.d.ts.map +1 -1
  277. package/lib/typescript/shared/index.d.ts +4 -4
  278. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  279. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +7 -8
  280. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
  281. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +0 -8
  282. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
  283. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +3 -3
  284. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  285. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +4 -6
  286. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +1 -1
  287. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
  288. package/lib/typescript/shared/providers/screen/animation/types.d.ts +7 -0
  289. package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -1
  290. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +1 -1
  291. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
  292. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +1 -0
  293. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
  294. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts +7 -0
  295. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -0
  296. package/lib/typescript/shared/providers/screen/styles/constants.d.ts +23 -0
  297. package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -0
  298. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts +3 -0
  299. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -0
  300. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts +17 -0
  301. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts.map +1 -0
  302. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +3 -0
  303. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -0
  304. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +9 -0
  305. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -0
  306. package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts +9 -0
  307. package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -0
  308. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts +2 -2
  309. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
  310. package/lib/typescript/shared/stores/animation.store.d.ts +1 -7
  311. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  312. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts +1 -1
  313. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +1 -1
  314. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +1 -0
  315. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -1
  316. package/lib/typescript/shared/stores/bounds/index.d.ts +28 -27
  317. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
  318. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
  319. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +4 -0
  320. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +1 -0
  321. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts +12 -11
  322. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
  323. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  324. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +1 -2
  325. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  326. package/lib/typescript/shared/stores/bounds/types.d.ts +21 -19
  327. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  328. package/lib/typescript/shared/stores/gesture.store.d.ts +1 -7
  329. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  330. package/lib/typescript/shared/stores/system.store.d.ts +33 -8
  331. package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
  332. package/lib/typescript/shared/types/animation.types.d.ts +5 -25
  333. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  334. package/lib/typescript/shared/types/bounds.types.d.ts +7 -5
  335. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  336. package/lib/typescript/shared/types/screen.types.d.ts +20 -0
  337. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  338. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +6 -2
  339. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
  340. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -1
  341. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +3 -2
  342. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  343. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -1
  344. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  345. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
  346. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  347. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts +1 -1
  348. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
  349. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts +1 -1
  350. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +1 -1
  351. package/lib/typescript/shared/utils/create-store.d.ts +13 -8
  352. package/lib/typescript/shared/utils/create-store.d.ts.map +1 -1
  353. package/lib/typescript/shared/utils/platform.d.ts +0 -3
  354. package/lib/typescript/shared/utils/platform.d.ts.map +1 -1
  355. package/package.json +1 -1
  356. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +21 -39
  357. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +3 -6
  358. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +12 -12
  359. package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +43 -0
  360. package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +3 -8
  361. package/src/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.ts +149 -0
  362. package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +42 -0
  363. package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +144 -0
  364. package/src/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.ts → use-refresh-boundary.ts} +35 -30
  365. package/src/shared/components/create-boundary-component/types.ts +7 -3
  366. package/src/shared/components/create-transition-aware-component.tsx +4 -13
  367. package/src/shared/components/overlay/variations/float-overlay.tsx +1 -1
  368. package/src/shared/components/screen-container/hooks/use-content-layout.ts +14 -11
  369. package/src/shared/components/screen-container/layers/backdrop.tsx +3 -3
  370. package/src/shared/components/screen-container/layers/content.tsx +4 -7
  371. package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +4 -5
  372. package/src/shared/components/screen-container/layers/surface-container.tsx +3 -3
  373. package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +29 -0
  374. package/src/shared/components/screen-lifecycle/hooks/{use-screen-events.ts → history/use-screen-history.ts} +25 -9
  375. package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +160 -0
  376. package/src/shared/components/screen-lifecycle/hooks/{use-open-transition.ts → use-open-transition-intent.ts} +19 -23
  377. package/src/shared/components/screen-lifecycle/hooks/use-transition-start-controller.ts +71 -0
  378. package/src/shared/components/screen-lifecycle/index.tsx +17 -17
  379. package/src/shared/constants.ts +3 -11
  380. package/src/shared/providers/register-bounds.provider.tsx +7 -12
  381. package/src/shared/providers/screen/animation/animation.provider.tsx +30 -68
  382. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +20 -33
  383. package/src/shared/providers/screen/animation/helpers/pipeline.ts +96 -69
  384. package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +5 -7
  385. package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +14 -2
  386. package/src/shared/providers/screen/animation/types.ts +9 -0
  387. package/src/shared/providers/screen/animation/use-screen-animation.tsx +25 -7
  388. package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +2 -0
  389. package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +29 -0
  390. package/src/shared/providers/screen/styles/constants.ts +34 -0
  391. package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +61 -0
  392. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles.ts +190 -0
  393. package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +85 -0
  394. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +51 -0
  395. package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +40 -0
  396. package/src/shared/providers/screen/styles/styles.provider.tsx +42 -146
  397. package/src/shared/stores/bounds/helpers/apply-measured-bounds-writes.ts +15 -13
  398. package/src/shared/stores/bounds/helpers/keys.ts +8 -0
  399. package/src/shared/stores/bounds/index.ts +37 -44
  400. package/src/shared/stores/bounds/internals/clear.ts +22 -86
  401. package/src/shared/stores/bounds/internals/groups.ts +20 -0
  402. package/src/shared/stores/bounds/internals/registry.ts +280 -234
  403. package/src/shared/stores/bounds/internals/resolver.ts +1 -5
  404. package/src/shared/stores/bounds/internals/state.ts +2 -3
  405. package/src/shared/stores/bounds/types.ts +23 -21
  406. package/src/shared/stores/system.store.ts +77 -9
  407. package/src/shared/types/animation.types.ts +5 -25
  408. package/src/shared/types/bounds.types.ts +7 -8
  409. package/src/shared/types/screen.types.ts +21 -0
  410. package/src/shared/utils/bounds/helpers/create-bound-tag.ts +6 -2
  411. package/src/shared/utils/bounds/helpers/create-interpolators.ts +10 -7
  412. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +12 -5
  413. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +4 -7
  414. package/src/shared/utils/bounds/helpers/styles/compute.ts +2 -10
  415. package/src/shared/utils/bounds/index.ts +7 -6
  416. package/src/shared/utils/bounds/zoom/build.ts +53 -162
  417. package/src/shared/utils/bounds/zoom/types.ts +1 -1
  418. package/src/shared/utils/create-store.ts +39 -13
  419. package/src/shared/utils/platform.ts +2 -0
  420. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +0 -44
  421. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +0 -1
  422. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +0 -84
  423. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +0 -1
  424. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +0 -149
  425. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +0 -1
  426. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +0 -1
  427. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +0 -1
  428. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +0 -29
  429. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +0 -1
  430. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +0 -47
  431. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +0 -1
  432. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js +0 -158
  433. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +0 -1
  434. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js +0 -36
  435. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +0 -1
  436. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +0 -1
  437. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +0 -1
  438. package/lib/commonjs/shared/providers/screen/styles/helpers/build-resolved-style-map.js +0 -144
  439. package/lib/commonjs/shared/providers/screen/styles/helpers/build-resolved-style-map.js.map +0 -1
  440. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js +0 -28
  441. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js.map +0 -1
  442. package/lib/commonjs/shared/providers/screen/styles/helpers/split-normalized-style-maps.js +0 -39
  443. package/lib/commonjs/shared/providers/screen/styles/helpers/split-normalized-style-maps.js.map +0 -1
  444. package/lib/commonjs/shared/stores/bounds/internals/presence.js +0 -125
  445. package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +0 -1
  446. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +0 -39
  447. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +0 -1
  448. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +0 -78
  449. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +0 -1
  450. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +0 -145
  451. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +0 -1
  452. package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +0 -1
  453. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +0 -1
  454. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +0 -24
  455. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +0 -1
  456. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +0 -42
  457. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +0 -1
  458. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js +0 -153
  459. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +0 -1
  460. package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js +0 -30
  461. package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +0 -1
  462. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +0 -1
  463. package/lib/module/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +0 -1
  464. package/lib/module/shared/providers/screen/styles/helpers/build-resolved-style-map.js +0 -139
  465. package/lib/module/shared/providers/screen/styles/helpers/build-resolved-style-map.js.map +0 -1
  466. package/lib/module/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js +0 -23
  467. package/lib/module/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js.map +0 -1
  468. package/lib/module/shared/providers/screen/styles/helpers/split-normalized-style-maps.js +0 -34
  469. package/lib/module/shared/providers/screen/styles/helpers/split-normalized-style-maps.js.map +0 -1
  470. package/lib/module/shared/stores/bounds/internals/presence.js +0 -115
  471. package/lib/module/shared/stores/bounds/internals/presence.js.map +0 -1
  472. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +0 -10
  473. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +0 -1
  474. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +0 -1
  475. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +0 -27
  476. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +0 -1
  477. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts +0 -12
  478. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts.map +0 -1
  479. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.d.ts.map +0 -1
  480. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts +0 -2
  481. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts.map +0 -1
  482. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts +0 -2
  483. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts.map +0 -1
  484. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts +0 -8
  485. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +0 -1
  486. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts +0 -13
  487. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts.map +0 -1
  488. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts +0 -12
  489. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +0 -1
  490. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts +0 -7
  491. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts.map +0 -1
  492. package/lib/typescript/shared/providers/screen/styles/helpers/build-resolved-style-map.d.ts +0 -11
  493. package/lib/typescript/shared/providers/screen/styles/helpers/build-resolved-style-map.d.ts.map +0 -1
  494. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.d.ts +0 -7
  495. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.d.ts.map +0 -1
  496. package/lib/typescript/shared/providers/screen/styles/helpers/split-normalized-style-maps.d.ts +0 -6
  497. package/lib/typescript/shared/providers/screen/styles/helpers/split-normalized-style-maps.d.ts.map +0 -1
  498. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts +0 -12
  499. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +0 -1
  500. package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +0 -56
  501. package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +0 -154
  502. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +0 -223
  503. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.ts +0 -29
  504. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.ts +0 -58
  505. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/index.ts +0 -183
  506. package/src/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.ts +0 -34
  507. package/src/shared/providers/screen/styles/helpers/build-resolved-style-map.ts +0 -185
  508. package/src/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.ts +0 -31
  509. package/src/shared/providers/screen/styles/helpers/split-normalized-style-maps.ts +0 -44
  510. package/src/shared/stores/bounds/internals/presence.ts +0 -145
  511. /package/lib/commonjs/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.js +0 -0
  512. /package/lib/module/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.js +0 -0
  513. /package/lib/typescript/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.d.ts +0 -0
  514. /package/src/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.ts +0 -0
@@ -0,0 +1,190 @@
1
+ import type {
2
+ NormalizedTransitionInterpolatedStyle,
3
+ NormalizedTransitionSlotStyle,
4
+ } from "../../../../types/animation.types";
5
+ import {
6
+ ALWAYS_RESET_STYLE_VALUES,
7
+ IDENTITY_TRANSFORM,
8
+ shouldSlotInherit,
9
+ } from "../constants";
10
+
11
+ export type ResettableStyleState = {
12
+ hasTransform: boolean;
13
+ hasOpacity: boolean;
14
+ hasZIndex: boolean;
15
+ hasElevation: boolean;
16
+ };
17
+
18
+ export type ResettableStyleStatesBySlot = Record<string, ResettableStyleState>;
19
+
20
+ const EMPTY_RESETTABLE_STYLE_STATE = Object.freeze({
21
+ hasTransform: false,
22
+ hasOpacity: false,
23
+ hasZIndex: false,
24
+ hasElevation: false,
25
+ }) as ResettableStyleState;
26
+
27
+ export const resolveSlotStyles = ({
28
+ currentStylesMap,
29
+ ancestorStylesMap,
30
+ previousStyleStatesBySlot,
31
+ }: {
32
+ currentStylesMap: NormalizedTransitionInterpolatedStyle;
33
+ ancestorStylesMap: NormalizedTransitionInterpolatedStyle;
34
+ previousStyleStatesBySlot: ResettableStyleStatesBySlot;
35
+ }) => {
36
+ "worklet";
37
+ const resolvedStylesMap: NormalizedTransitionInterpolatedStyle = {};
38
+ const nextPreviousStyleStatesBySlot: ResettableStyleStatesBySlot = {};
39
+
40
+ const appendResolvedSlot = (slotId: string) => {
41
+ "worklet";
42
+
43
+ const slot =
44
+ currentStylesMap[slotId] ??
45
+ (shouldSlotInherit(slotId) ? ancestorStylesMap[slotId] : undefined);
46
+
47
+ const baseStyle = slot?.style as Record<string, unknown> | undefined;
48
+
49
+ let hasAnyStyleKeys = false;
50
+ let hasTransform = false;
51
+ let hasOpacity = false;
52
+ let hasZIndex = false;
53
+ let hasElevation = false;
54
+
55
+ if (baseStyle) {
56
+ for (const key in baseStyle) {
57
+ hasAnyStyleKeys = true;
58
+
59
+ if (key === "transform") {
60
+ hasTransform = true;
61
+ continue;
62
+ }
63
+
64
+ if (key === "opacity") {
65
+ hasOpacity = true;
66
+ continue;
67
+ }
68
+
69
+ if (key === "zIndex") {
70
+ hasZIndex = true;
71
+ continue;
72
+ }
73
+
74
+ if (key === "elevation") {
75
+ hasElevation = true;
76
+ }
77
+ }
78
+ }
79
+
80
+ const previousState =
81
+ previousStyleStatesBySlot[slotId] ?? EMPTY_RESETTABLE_STYLE_STATE;
82
+ const shouldResetTransform = previousState.hasTransform && !hasTransform;
83
+ const shouldResetOpacity = previousState.hasOpacity && !hasOpacity;
84
+ const shouldResetZIndex = previousState.hasZIndex && !hasZIndex;
85
+ const shouldResetElevation = previousState.hasElevation && !hasElevation;
86
+ const hasResetPatch =
87
+ shouldResetTransform ||
88
+ shouldResetOpacity ||
89
+ shouldResetZIndex ||
90
+ shouldResetElevation;
91
+ const hasProps = slot?.props !== undefined;
92
+
93
+ if (hasTransform || hasOpacity || hasZIndex || hasElevation) {
94
+ nextPreviousStyleStatesBySlot[slotId] = {
95
+ hasTransform,
96
+ hasOpacity,
97
+ hasZIndex,
98
+ hasElevation,
99
+ };
100
+ }
101
+
102
+ if (!slot && !hasResetPatch) {
103
+ return;
104
+ }
105
+
106
+ if (!hasResetPatch && slot) {
107
+ if (hasAnyStyleKeys || hasProps) {
108
+ resolvedStylesMap[slotId] = slot;
109
+ }
110
+ return;
111
+ }
112
+
113
+ if (!hasAnyStyleKeys && !hasResetPatch && !hasProps) {
114
+ return;
115
+ }
116
+
117
+ const resolvedSlot = {} as NormalizedTransitionSlotStyle;
118
+
119
+ if (hasAnyStyleKeys || hasResetPatch) {
120
+ const resolvedStyle: Record<string, any> = {};
121
+
122
+ if (shouldResetTransform) {
123
+ resolvedStyle.transform = IDENTITY_TRANSFORM;
124
+ }
125
+
126
+ if (shouldResetOpacity) {
127
+ resolvedStyle.opacity = ALWAYS_RESET_STYLE_VALUES.opacity;
128
+ }
129
+
130
+ if (shouldResetZIndex) {
131
+ resolvedStyle.zIndex = ALWAYS_RESET_STYLE_VALUES.zIndex;
132
+ }
133
+
134
+ if (shouldResetElevation) {
135
+ resolvedStyle.elevation = ALWAYS_RESET_STYLE_VALUES.elevation;
136
+ }
137
+
138
+ if (baseStyle) {
139
+ for (const key in baseStyle) {
140
+ resolvedStyle[key] = baseStyle[key];
141
+ }
142
+ }
143
+
144
+ resolvedSlot.style = resolvedStyle;
145
+ }
146
+
147
+ if (hasProps) {
148
+ resolvedSlot.props = slot?.props;
149
+ }
150
+
151
+ if (!resolvedSlot.style && !resolvedSlot.props) {
152
+ return;
153
+ }
154
+
155
+ resolvedStylesMap[slotId] = resolvedSlot;
156
+ };
157
+
158
+ for (const slotId in currentStylesMap) {
159
+ appendResolvedSlot(slotId);
160
+ }
161
+
162
+ for (const slotId in ancestorStylesMap) {
163
+ if (!shouldSlotInherit(slotId)) {
164
+ continue;
165
+ }
166
+
167
+ if (currentStylesMap[slotId] !== undefined) {
168
+ continue;
169
+ }
170
+
171
+ appendResolvedSlot(slotId);
172
+ }
173
+
174
+ for (const slotId in previousStyleStatesBySlot) {
175
+ if (currentStylesMap[slotId] !== undefined) {
176
+ continue;
177
+ }
178
+
179
+ if (shouldSlotInherit(slotId) && ancestorStylesMap[slotId] !== undefined) {
180
+ continue;
181
+ }
182
+
183
+ appendResolvedSlot(slotId);
184
+ }
185
+
186
+ return {
187
+ resolvedStylesMap,
188
+ nextPreviousStyleStatesBySlot,
189
+ };
190
+ };
@@ -0,0 +1,85 @@
1
+ import { useDerivedValue, useSharedValue } from "react-native-reanimated";
2
+ import { NO_STYLES } from "../../../../constants";
3
+ import { SystemStore } from "../../../../stores/system.store";
4
+ import type { NormalizedTransitionInterpolatedStyle } from "../../../../types/animation.types";
5
+ import { logger } from "../../../../utils/logger";
6
+ import { useScreenAnimationContext } from "../../animation";
7
+ import { useDescriptorDerivations } from "../../descriptors";
8
+ import { normalizeSlots } from "../helpers/normalize-slots";
9
+
10
+ export const useInterpolatedStylesMap = () => {
11
+ const { currentScreenKey } = useDescriptorDerivations();
12
+ const {
13
+ screenInterpolatorProps,
14
+ nextInterpolator,
15
+ currentInterpolator,
16
+ boundsAccessor,
17
+ } = useScreenAnimationContext();
18
+
19
+ const pendingLifecycleStartBlockCount = SystemStore.getValue(
20
+ currentScreenKey,
21
+ "pendingLifecycleStartBlockCount",
22
+ );
23
+
24
+ const isGesturingDuringCloseAnimation = useSharedValue(false);
25
+
26
+ return useDerivedValue<NormalizedTransitionInterpolatedStyle>(() => {
27
+ "worklet";
28
+ if (pendingLifecycleStartBlockCount.get() > 0) {
29
+ return NO_STYLES;
30
+ }
31
+
32
+ const props = screenInterpolatorProps.get();
33
+ const { current, next, progress } = props;
34
+ const isDragging = current.gesture.dragging;
35
+ const isNextClosing = !!next?.closing;
36
+
37
+ if (isDragging && isNextClosing) {
38
+ isGesturingDuringCloseAnimation.set(true);
39
+ }
40
+
41
+ if (!isDragging && !isNextClosing) {
42
+ isGesturingDuringCloseAnimation.set(false);
43
+ }
44
+
45
+ const isInGestureMode = isDragging || isGesturingDuringCloseAnimation.get();
46
+
47
+ const interpolator = isInGestureMode
48
+ ? currentInterpolator
49
+ : (nextInterpolator ?? currentInterpolator);
50
+
51
+ if (!interpolator) {
52
+ return NO_STYLES;
53
+ }
54
+
55
+ let effectiveProgress = progress;
56
+ let effectiveNext = next;
57
+
58
+ if (isInGestureMode) {
59
+ effectiveProgress = current.progress;
60
+ effectiveNext = undefined;
61
+ }
62
+
63
+ try {
64
+ const raw = interpolator({
65
+ ...props,
66
+ progress: effectiveProgress,
67
+ next: effectiveNext,
68
+ bounds: boundsAccessor,
69
+ });
70
+
71
+ const stylesMap =
72
+ typeof raw !== "object" || raw == null
73
+ ? NO_STYLES
74
+ : normalizeSlots(raw);
75
+
76
+ return stylesMap;
77
+ } catch (_) {
78
+ if (__DEV__) {
79
+ logger.warn("screenStyleInterpolator must be a worklet");
80
+ }
81
+
82
+ return NO_STYLES;
83
+ }
84
+ });
85
+ };
@@ -0,0 +1,51 @@
1
+ import {
2
+ useAnimatedProps,
3
+ useAnimatedStyle,
4
+ useDerivedValue,
5
+ } from "react-native-reanimated";
6
+ import { AnimationStore } from "../../../../stores/animation.store";
7
+ import { SystemStore } from "../../../../stores/system.store";
8
+ import { useDescriptorDerivations } from "../../descriptors";
9
+
10
+ export const useMaybeBlockVisibility = (isFloatingOverlay?: boolean) => {
11
+ const { currentScreenKey } = useDescriptorDerivations();
12
+ const progress = AnimationStore.getValue(currentScreenKey, "progress");
13
+
14
+ const { pendingLifecycleStartBlockCount } =
15
+ SystemStore.getBag(currentScreenKey);
16
+
17
+ const shouldBlockVisibility = useDerivedValue(() => {
18
+ "worklet";
19
+
20
+ if (isFloatingOverlay) {
21
+ return false;
22
+ }
23
+
24
+ const hasPendingLifecycleBlock = pendingLifecycleStartBlockCount.get() > 0;
25
+ const isWaitingForOpenToStart = progress.get() <= 0;
26
+
27
+ return hasPendingLifecycleBlock || isWaitingForOpenToStart;
28
+ });
29
+
30
+ const animatedStyle = useAnimatedStyle(() => {
31
+ "worklet";
32
+
33
+ return {
34
+ opacity: shouldBlockVisibility.get() ? 0 : 1,
35
+ };
36
+ });
37
+
38
+ const animatedProps = useAnimatedProps(() => {
39
+ "worklet";
40
+ return {
41
+ pointerEvents: shouldBlockVisibility.get()
42
+ ? ("none" as const)
43
+ : ("box-none" as const),
44
+ };
45
+ });
46
+
47
+ return {
48
+ animatedStyle,
49
+ animatedProps,
50
+ };
51
+ };
@@ -0,0 +1,40 @@
1
+ import {
2
+ type SharedValue,
3
+ useDerivedValue,
4
+ useSharedValue,
5
+ } from "react-native-reanimated";
6
+ import { NO_STYLES } from "../../../../constants";
7
+ import type { NormalizedTransitionInterpolatedStyle } from "../../../../types/animation.types";
8
+ import {
9
+ type ResettableStyleStatesBySlot,
10
+ resolveSlotStyles,
11
+ } from "../helpers/resolve-slot-styles";
12
+
13
+ interface UseResolvedStylesMapParams {
14
+ currentStylesMap: SharedValue<NormalizedTransitionInterpolatedStyle>;
15
+ ancestorStylesMap?: SharedValue<NormalizedTransitionInterpolatedStyle>;
16
+ }
17
+
18
+ export const useResolvedStylesMap = ({
19
+ currentStylesMap,
20
+ ancestorStylesMap,
21
+ }: UseResolvedStylesMapParams) => {
22
+ const previousStyleStatesBySlot = useSharedValue<ResettableStyleStatesBySlot>(
23
+ {},
24
+ );
25
+
26
+ return useDerivedValue(() => {
27
+ "worklet";
28
+
29
+ const { resolvedStylesMap, nextPreviousStyleStatesBySlot } =
30
+ resolveSlotStyles({
31
+ currentStylesMap: currentStylesMap.get(),
32
+ ancestorStylesMap: ancestorStylesMap?.get() ?? NO_STYLES,
33
+ previousStyleStatesBySlot: previousStyleStatesBySlot.get(),
34
+ });
35
+
36
+ previousStyleStatesBySlot.set(nextPreviousStyleStatesBySlot);
37
+
38
+ return resolvedStylesMap;
39
+ });
40
+ };
@@ -1,28 +1,20 @@
1
- import { type ReactNode, useContext, useMemo } from "react";
2
- import {
3
- type SharedValue,
4
- useDerivedValue,
5
- useSharedValue,
6
- } from "react-native-reanimated";
7
- import { NO_STYLES } from "../../../constants";
1
+ import { type ReactNode, useContext } from "react";
2
+ import { StyleSheet } from "react-native";
3
+ import Animated, { type SharedValue } from "react-native-reanimated";
8
4
  import type { NormalizedTransitionInterpolatedStyle } from "../../../types/animation.types";
9
5
  import createProvider from "../../../utils/create-provider";
10
- import { logger } from "../../../utils/logger";
11
- import { useScreenAnimationContext } from "../animation";
12
- import {
13
- buildResolvedStyleMap,
14
- type StyleKeySet,
15
- } from "./helpers/build-resolved-style-map";
16
- import { resolveInterpolatedStyleOutput } from "./helpers/resolve-interpolated-style-output";
17
- import { splitNormalizedStyleMaps } from "./helpers/split-normalized-style-maps";
6
+ import { MaybeFloatingContainer } from "./components/maybe-floating-container";
7
+ import { useInterpolatedStylesMap } from "./hooks/use-interpolated-style-maps";
8
+ import { useMaybeBlockVisibility } from "./hooks/use-maybe-block-visibility";
9
+ import { useResolvedStylesMap } from "./hooks/use-resolved-slot-style-map";
18
10
 
19
11
  type Props = {
20
12
  children: ReactNode;
13
+ isFloatingOverlay?: boolean;
21
14
  };
22
15
 
23
16
  type ScreenStylesContextValue = {
24
- layerStylesMap: SharedValue<NormalizedTransitionInterpolatedStyle>;
25
- elementStylesMap: SharedValue<NormalizedTransitionInterpolatedStyle>;
17
+ stylesMap: SharedValue<NormalizedTransitionInterpolatedStyle>;
26
18
  };
27
19
 
28
20
  export const {
@@ -31,132 +23,36 @@ export const {
31
23
  useScreenStylesContext: useScreenStyles,
32
24
  } = createProvider("ScreenStyles", {
33
25
  guarded: true,
34
- })<Props, ScreenStylesContextValue>(
35
- ({ children }): { value: ScreenStylesContextValue; children: ReactNode } => {
36
- const parentContext = useContext(ScreenStylesContext);
37
-
38
- const {
39
- screenInterpolatorProps,
40
- nextInterpolator,
41
- currentInterpolator,
42
- boundsAccessor,
43
- } = useScreenAnimationContext();
44
-
45
- const isGesturingDuringCloseAnimation = useSharedValue(false);
46
- const hasWarnedLegacy = useSharedValue(false);
47
- const previousElementStyleKeysBySlot = useSharedValue<
48
- Record<string, StyleKeySet>
49
- >({});
50
-
51
- const rawStyleResolution = useDerivedValue<{
52
- layerStylesMap: NormalizedTransitionInterpolatedStyle;
53
- elementStylesMap: NormalizedTransitionInterpolatedStyle;
54
- }>(() => {
55
- "worklet";
56
- const props = screenInterpolatorProps.value;
57
- const { current, next, progress } = props;
58
- const isDragging = current.gesture.dragging;
59
- const isNextClosing = !!next?.closing;
60
-
61
- if (isDragging && isNextClosing) {
62
- isGesturingDuringCloseAnimation.value = true;
63
- }
64
-
65
- if (!isDragging && !isNextClosing) {
66
- isGesturingDuringCloseAnimation.value = false;
67
- }
68
-
69
- const isInGestureMode =
70
- isDragging || isGesturingDuringCloseAnimation.value;
71
-
72
- const interpolator = isInGestureMode
73
- ? currentInterpolator
74
- : (nextInterpolator ?? currentInterpolator);
75
-
76
- if (!interpolator) {
77
- return {
78
- layerStylesMap: NO_STYLES,
79
- elementStylesMap: NO_STYLES,
80
- };
81
- }
82
-
83
- let effectiveProgress = progress;
84
- let effectiveNext = next;
85
-
86
- if (isInGestureMode) {
87
- effectiveProgress = current.progress;
88
- effectiveNext = undefined;
89
- }
90
-
91
- try {
92
- const raw = interpolator({
93
- ...props,
94
- progress: effectiveProgress,
95
- next: effectiveNext,
96
- bounds: boundsAccessor,
97
- });
98
-
99
- const { stylesMap, wasLegacy } = resolveInterpolatedStyleOutput(raw);
100
-
101
- const { layerStylesMap, elementStylesMap } =
102
- splitNormalizedStyleMaps(stylesMap);
103
-
104
- if (__DEV__ && wasLegacy && !hasWarnedLegacy.value) {
105
- hasWarnedLegacy.value = true;
106
- logger.warn(
107
- "Flat interpolator return shape (contentStyle/backdropStyle) is deprecated. " +
108
- "Use the nested format instead: { content: { style }, backdrop: { style } }.",
109
- );
110
- }
111
-
112
- return {
113
- layerStylesMap,
114
- elementStylesMap,
115
- };
116
- } catch (err) {
117
- if (__DEV__) {
118
- console.warn(
119
- "[react-native-screen-transitions] screenStyleInterpolator must be a worklet",
120
- err,
121
- );
122
- }
123
-
124
- return {
125
- layerStylesMap: NO_STYLES,
126
- elementStylesMap: NO_STYLES,
127
- };
128
- }
129
- });
130
-
131
- const layerStylesMap =
132
- useDerivedValue<NormalizedTransitionInterpolatedStyle>(() => {
133
- "worklet";
134
- return rawStyleResolution.value.layerStylesMap;
135
- });
136
-
137
- const elementStylesMap =
138
- useDerivedValue<NormalizedTransitionInterpolatedStyle>(() => {
139
- "worklet";
140
- const { resolvedStylesMap, nextPreviousStyleKeysBySlot } =
141
- buildResolvedStyleMap({
142
- currentStylesMap: rawStyleResolution.value.elementStylesMap,
143
- fallbackStylesMap:
144
- parentContext?.elementStylesMap.value ?? NO_STYLES,
145
- previousStyleKeysBySlot: previousElementStyleKeysBySlot.value,
146
- });
147
-
148
- previousElementStyleKeysBySlot.value = nextPreviousStyleKeysBySlot;
149
-
150
- return resolvedStylesMap;
151
- });
152
-
153
- const value = useMemo<ScreenStylesContextValue>(() => {
154
- return {
155
- layerStylesMap,
156
- elementStylesMap,
157
- };
158
- }, [elementStylesMap, layerStylesMap]);
159
-
160
- return { value, children };
161
- },
162
- );
26
+ })<Props, ScreenStylesContextValue>(({ children, isFloatingOverlay }) => {
27
+ const parentContext = useContext(ScreenStylesContext);
28
+
29
+ const rawStylesMap = useInterpolatedStylesMap();
30
+
31
+ const stylesMap = useResolvedStylesMap({
32
+ currentStylesMap: rawStylesMap,
33
+ ancestorStylesMap: parentContext?.stylesMap,
34
+ });
35
+
36
+ const { animatedStyle, animatedProps } =
37
+ useMaybeBlockVisibility(isFloatingOverlay);
38
+
39
+ return {
40
+ value: {
41
+ stylesMap,
42
+ },
43
+ children: (
44
+ <MaybeFloatingContainer isFloatingOverlay={isFloatingOverlay}>
45
+ <Animated.View
46
+ style={[styles.container, animatedStyle]}
47
+ animatedProps={animatedProps}
48
+ >
49
+ {children}
50
+ </Animated.View>
51
+ </MaybeFloatingContainer>
52
+ ),
53
+ };
54
+ });
55
+
56
+ const styles = StyleSheet.create({
57
+ container: { flex: 1 },
58
+ });
@@ -9,7 +9,7 @@ type ApplyMeasuredBoundsWritesParams = {
9
9
  ancestorKeys: string[];
10
10
  navigatorKey?: string;
11
11
  ancestorNavigatorKeys?: string[];
12
- shouldRegisterSnapshot?: boolean;
12
+ shouldWriteEntry?: boolean;
13
13
  shouldSetSource?: boolean;
14
14
  shouldUpdateSource?: boolean;
15
15
  shouldSetDestination?: boolean;
@@ -29,7 +29,7 @@ export const applyMeasuredBoundsWrites = (
29
29
  ancestorKeys,
30
30
  navigatorKey,
31
31
  ancestorNavigatorKeys,
32
- shouldRegisterSnapshot,
32
+ shouldWriteEntry,
33
33
  shouldSetSource,
34
34
  shouldUpdateSource,
35
35
  shouldSetDestination,
@@ -37,20 +37,19 @@ export const applyMeasuredBoundsWrites = (
37
37
  expectedSourceScreenKey,
38
38
  } = params;
39
39
 
40
- if (shouldRegisterSnapshot) {
41
- BoundStore.registerSnapshot(
42
- sharedBoundTag,
43
- currentScreenKey,
44
- measured,
45
- preparedStyles,
40
+ if (shouldWriteEntry) {
41
+ BoundStore.entry.set(sharedBoundTag, currentScreenKey, {
42
+ bounds: measured,
43
+ styles: preparedStyles,
46
44
  ancestorKeys,
47
45
  navigatorKey,
48
46
  ancestorNavigatorKeys,
49
- );
47
+ });
50
48
  }
51
49
 
52
50
  if (shouldSetSource) {
53
- BoundStore.setLinkSource(
51
+ BoundStore.link.setSource(
52
+ "capture",
54
53
  sharedBoundTag,
55
54
  currentScreenKey,
56
55
  measured,
@@ -62,7 +61,8 @@ export const applyMeasuredBoundsWrites = (
62
61
  }
63
62
 
64
63
  if (shouldUpdateSource) {
65
- BoundStore.updateLinkSource(
64
+ BoundStore.link.setSource(
65
+ "refresh",
66
66
  sharedBoundTag,
67
67
  currentScreenKey,
68
68
  measured,
@@ -74,7 +74,8 @@ export const applyMeasuredBoundsWrites = (
74
74
  }
75
75
 
76
76
  if (shouldUpdateDestination) {
77
- BoundStore.updateLinkDestination(
77
+ BoundStore.link.setDestination(
78
+ "refresh",
78
79
  sharedBoundTag,
79
80
  currentScreenKey,
80
81
  measured,
@@ -87,7 +88,8 @@ export const applyMeasuredBoundsWrites = (
87
88
  }
88
89
 
89
90
  if (shouldSetDestination) {
90
- BoundStore.setLinkDestination(
91
+ BoundStore.link.setDestination(
92
+ "attach",
91
93
  sharedBoundTag,
92
94
  currentScreenKey,
93
95
  measured,
@@ -19,3 +19,11 @@ export function collectIdentifierKeys(
19
19
 
20
20
  return allKeys;
21
21
  }
22
+
23
+ export const hasAnyKeys = (record: Record<string, unknown>) => {
24
+ "worklet";
25
+ for (const _key in record) {
26
+ return true;
27
+ }
28
+ return false;
29
+ };