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,149 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.usePendingDestinationMeasurement = void 0;
7
- var _react = require("react");
8
- var _reactNativeReanimated = require("react-native-reanimated");
9
- var _animation = require("../../../stores/animation.store");
10
- var _bounds = require("../../../stores/bounds");
11
- var _resolvePendingSourceKey = require("../helpers/resolve-pending-source-key");
12
- var _measurementRules = require("./helpers/measurement-rules");
13
- /**
14
- * The current v3.4 behavior intentionally favors correctness over efficiency:
15
- * when destination layout races transition start, this hook may re-measure
16
- * multiple times to recover a usable pair for `navigation.zoom()`.
17
- *
18
- * This works well enough for now, but it is not the ideal architecture. A more
19
- * complete v4 solution should allow open-animation deferral and broader
20
- * readiness coordination so we can avoid repeated measurement work while still
21
- * handling multiple transition scenarios correctly. Until that system exists,
22
- * `navigation.zoom()` remains fast in practice, just not as performant as it
23
- * could be.
24
- *
25
- * For now, you may notice a slight stutter towards the end of the animation.
26
- */
27
- const usePendingDestinationMeasurement = params => {
28
- const {
29
- sharedBoundTag,
30
- enabled,
31
- id,
32
- group,
33
- currentScreenKey,
34
- expectedSourceScreenKey,
35
- animating,
36
- maybeMeasureAndStore
37
- } = params;
38
- const progress = _animation.AnimationStore.getValue(currentScreenKey, "progress");
39
- const closing = _animation.AnimationStore.getValue(currentScreenKey, "closing");
40
- const retryCount = (0, _reactNativeReanimated.useSharedValue)(0);
41
- const MAX_RETRIES = 4;
42
- const RETRY_PROGRESS_BUCKETS = 8;
43
- const RETRY_PROGRESS_MAX = 1.05;
44
- (0, _react.useLayoutEffect)(() => {
45
- if (!enabled) return;
46
- (0, _reactNativeReanimated.runOnUI)(() => {
47
- "worklet";
48
-
49
- if (closing.get()) {
50
- return;
51
- }
52
- const currentGroupActiveId = group ? _bounds.BoundStore.getGroupActiveId(group) : null;
53
- if (group && currentGroupActiveId !== String(id)) {
54
- return;
55
- }
56
- const resolvedSourceKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, expectedSourceScreenKey);
57
- const hasAttachableSourceLink = resolvedSourceKey ? _bounds.BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey) || _bounds.BoundStore.hasSourceLink(sharedBoundTag, resolvedSourceKey) : false;
58
- if (!hasAttachableSourceLink) {
59
- return;
60
- }
61
- if (_bounds.BoundStore.hasDestinationLink(sharedBoundTag, currentScreenKey)) {
62
- return;
63
- }
64
- maybeMeasureAndStore({
65
- intent: "complete-destination"
66
- });
67
- })();
68
- }, [enabled, id, group, sharedBoundTag, currentScreenKey, expectedSourceScreenKey, closing, maybeMeasureAndStore]);
69
-
70
- /**
71
- * This exessive retry for groups with {target:"bound"} will have to change in v4.
72
- * .navigation.zoom() is stable and works great for non groups and groups that are non {target: "bound"}.
73
- *
74
- * The retry logic is needed for dst screen when we do an initialScrollIndex, the system is competing with the (i assume) useLayoutEffect
75
- * in the scrollable, causing a race here and giving us wrong measurements. I believe, in simialr fashion to how
76
- * system.store defers the screen from animating, we could possibly do the same here. Registering it up, once we get valid measurements, we can
77
- * un defer? Is that the word? Undefer the screen, removing this block compeltely, avoiding any potential flickers ( which currently happens.)
78
- *
79
- * 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.
80
- */
81
- (0, _reactNativeReanimated.useAnimatedReaction)(() => {
82
- "worklet";
83
-
84
- if (closing.get()) {
85
- return 0;
86
- }
87
- const resolvedSourceKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, expectedSourceScreenKey);
88
- return (0, _measurementRules.resolvePendingDestinationCaptureSignal)({
89
- enabled,
90
- resolvedSourceKey,
91
- hasAttachableSourceLink: resolvedSourceKey ? _bounds.BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey) || _bounds.BoundStore.hasSourceLink(sharedBoundTag, resolvedSourceKey) : false,
92
- hasDestinationLink: _bounds.BoundStore.hasDestinationLink(sharedBoundTag, currentScreenKey)
93
- });
94
- }, (captureSignal, previousCaptureSignal) => {
95
- "worklet";
96
-
97
- if (!enabled) return;
98
- if (!captureSignal || captureSignal === previousCaptureSignal) {
99
- return;
100
- }
101
- const currentGroupActiveId = group ? _bounds.BoundStore.getGroupActiveId(group) : null;
102
- if (group && currentGroupActiveId !== String(id)) {
103
- return;
104
- }
105
- maybeMeasureAndStore({
106
- intent: "complete-destination"
107
- });
108
- }, [enabled, id, group, sharedBoundTag, expectedSourceScreenKey, closing, maybeMeasureAndStore]);
109
- (0, _reactNativeReanimated.useAnimatedReaction)(() => {
110
- "worklet";
111
-
112
- if (closing.get()) {
113
- return 0;
114
- }
115
- const resolvedSourceKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, expectedSourceScreenKey);
116
- return (0, _measurementRules.resolvePendingDestinationRetrySignal)({
117
- enabled,
118
- retryCount: retryCount.get(),
119
- maxRetries: MAX_RETRIES,
120
- isAnimating: !!animating.get(),
121
- hasDestinationLink: _bounds.BoundStore.hasDestinationLink(sharedBoundTag, currentScreenKey),
122
- progress: progress.get(),
123
- retryProgressMax: RETRY_PROGRESS_MAX,
124
- retryProgressBuckets: RETRY_PROGRESS_BUCKETS,
125
- resolvedSourceKey,
126
- hasAttachableSourceLink: resolvedSourceKey ? _bounds.BoundStore.hasPendingLinkFromSource(sharedBoundTag, resolvedSourceKey) || _bounds.BoundStore.hasSourceLink(sharedBoundTag, resolvedSourceKey) : false
127
- });
128
- }, captureSignal => {
129
- "worklet";
130
-
131
- // if (!group) return;
132
- if (!enabled) return;
133
- if (!captureSignal) {
134
- retryCount.set(0);
135
- return;
136
- }
137
- const currentGroupActiveId = group ? _bounds.BoundStore.getGroupActiveId(group) : null;
138
- if (group && currentGroupActiveId !== String(id)) {
139
- return;
140
- }
141
- if (retryCount.get() >= MAX_RETRIES) return;
142
- retryCount.set(retryCount.get() + 1);
143
- maybeMeasureAndStore({
144
- intent: "complete-destination"
145
- });
146
- });
147
- };
148
- exports.usePendingDestinationMeasurement = usePendingDestinationMeasurement;
149
- //# sourceMappingURL=use-pending-destination-measurement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_animation","_bounds","_resolvePendingSourceKey","_measurementRules","usePendingDestinationMeasurement","params","sharedBoundTag","enabled","id","group","currentScreenKey","expectedSourceScreenKey","animating","maybeMeasureAndStore","progress","AnimationStore","getValue","closing","retryCount","useSharedValue","MAX_RETRIES","RETRY_PROGRESS_BUCKETS","RETRY_PROGRESS_MAX","useLayoutEffect","runOnUI","get","currentGroupActiveId","BoundStore","getGroupActiveId","String","resolvedSourceKey","resolvePendingSourceKey","hasAttachableSourceLink","hasPendingLinkFromSource","hasSourceLink","hasDestinationLink","intent","useAnimatedReaction","resolvePendingDestinationCaptureSignal","captureSignal","previousCaptureSignal","resolvePendingDestinationRetrySignal","maxRetries","isAnimating","retryProgressMax","retryProgressBuckets","set","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAMA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAJ,OAAA;AAEA,IAAAK,iBAAA,GAAAL,OAAA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMM,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,GAAGC,yBAAc,CAACC,QAAQ,CAACN,gBAAgB,EAAE,UAAU,CAAC;EACtE,MAAMO,OAAO,GAAGF,yBAAc,CAACC,QAAQ,CAACN,gBAAgB,EAAE,SAAS,CAAC;EAEpE,MAAMQ,UAAU,GAAG,IAAAC,qCAAc,EAAC,CAAC,CAAC;EACpC,MAAMC,WAAW,GAAG,CAAC;EACrB,MAAMC,sBAAsB,GAAG,CAAC;EAChC,MAAMC,kBAAkB,GAAG,IAAI;EAE/B,IAAAC,sBAAe,EAAC,MAAM;IACrB,IAAI,CAAChB,OAAO,EAAE;IAEd,IAAAiB,8BAAO,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Q,EAAEA,QAAQ,CAACW,GAAG,CAAC,CAAC;MACxBmB,gBAAgB,EAAEtB,kBAAkB;MACpCuB,oBAAoB,EAAExB,sBAAsB;MAC5CS,iBAAiB;MACjBE,uBAAuB,EAAEF,iBAAiB,GACvCH,kBAAU,CAACM,wBAAwB,CACnC3B,cAAc,EACdwB,iBACD,CAAC,IAAIH,kBAAU,CAACO,aAAa,CAAC5B,cAAc,EAAEwB,iBAAiB,CAAC,GAC/D;IACJ,CAAC,CAAC;EACH,CAAC,EACAS,aAAa,IAAK;IAClB,SAAS;;IACT;IACA,IAAI,CAAChC,OAAO,EAAE;IACd,IAAI,CAACgC,aAAa,EAAE;MACnBrB,UAAU,CAAC4B,GAAG,CAAC,CAAC,CAAC;MACjB;IACD;IACA,MAAMpB,oBAAoB,GAAGjB,KAAK,GAC/BkB,kBAAU,CAACC,gBAAgB,CAACnB,KAAK,CAAC,GAClC,IAAI;IACP,IAAIA,KAAK,IAAIiB,oBAAoB,KAAKG,MAAM,CAACrB,EAAE,CAAC,EAAE;MACjD;IACD;IAEA,IAAIU,UAAU,CAACO,GAAG,CAAC,CAAC,IAAIL,WAAW,EAAE;IACrCF,UAAU,CAAC4B,GAAG,CAAC5B,UAAU,CAACO,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IACpCZ,oBAAoB,CAAC;MAAEuB,MAAM,EAAE;IAAuB,CAAC,CAAC;EACzD,CACD,CAAC;AACF,CAAC;AAACW,OAAA,CAAA3C,gCAAA,GAAAA,gCAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_animation","_bounds","_gesture","_measurementRules","usePreTransitionMeasurement","params","enabled","sharedBoundTag","id","group","currentScreenKey","nextScreenKey","hasNextScreen","maybeMeasureAndStore","currentWillAnimate","AnimationStore","getValue","currentAnimating","currentDragging","GestureStore","nextWillAnimate","nextAnimating","nextDragging","useAnimatedReaction","get","nextValue","previousValue","currentGroupActiveId","BoundStore","getGroupActiveId","String","shouldCancelMeasurement","hasSourceLink","intent","resolvePrepareSourceMeasurementIntent","shouldRefreshExistingSource","PREPARE_DESTINATION_MEASUREMENT_INTENT","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-pre-transition-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAEA,IAAAI,iBAAA,GAAAJ,OAAA;AAKO,MAAMK,2BAA2B,GAAIC,MAS3C,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,cAAc;IACdC,EAAE;IACFC,KAAK;IACLC,gBAAgB;IAChBC,aAAa;IACbC,aAAa;IACbC;EACD,CAAC,GAAGR,MAAM;EAEV,MAAMS,kBAAkB,GAAGC,yBAAc,CAACC,QAAQ,CACjDN,gBAAgB,EAChB,aACD,CAAC;EACD,MAAMO,gBAAgB,GAAGF,yBAAc,CAACC,QAAQ,CAC/CN,gBAAgB,EAChB,WACD,CAAC;EACD,MAAMQ,eAAe,GAAGC,qBAAY,CAACH,QAAQ,CAACN,gBAAgB,EAAE,UAAU,CAAC;EAC3E,MAAMU,eAAe,GAAGT,aAAa,GAClCI,yBAAc,CAACC,QAAQ,CAACL,aAAa,EAAE,aAAa,CAAC,GACrD,IAAI;EACP,MAAMU,aAAa,GAAGV,aAAa,GAChCI,yBAAc,CAACC,QAAQ,CAACL,aAAa,EAAE,WAAW,CAAC,GACnD,IAAI;EACP,MAAMW,YAAY,GAAGX,aAAa,GAC/BQ,qBAAY,CAACH,QAAQ,CAACL,aAAa,EAAE,UAAU,CAAC,GAChD,IAAI;EAEP,IAAAY,0CAAmB,EAClB,MAAOX,aAAa,GAAIQ,eAAe,EAAEI,GAAG,CAAC,CAAC,IAAI,CAAC,GAAI,CAAE,EACzD,CAACC,SAAS,EAAEC,aAAa,KAAK;IAC7B,SAAS;;IACT,IA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CAACO,GAAG,CAAC,CAAC,IAAI,CAAC,CAACN,eAAe,CAACM,GAAG,CAAC,CAAC;IACpD,IAAIO,uBAAuB,EAAE;IAE7BlB,oBAAoB,CAAC;MACpBoB,MAAM,EAAEG;IACT,CAAC,CAAC;EACH,CACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAjC,2BAAA,GAAAA,2BAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["mountedRoutesByNavigator","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;AAExD,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;AACO,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;AACO,SAASU,4BAA4BA,CAAA,EAAS;EACpDb,wBAAwB,CAACc,KAAK,CAAC,CAAC;AACjC","ignoreList":[]}
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.resetStoresForScreen = void 0;
7
- var _reactNativeReanimated = require("react-native-reanimated");
8
- var _animation = require("../../../../../stores/animation.store");
9
- var _bounds = require("../../../../../stores/bounds");
10
- var _gesture = require("../../../../../stores/gesture.store");
11
- var _system = require("../../../../../stores/system.store");
12
- const resetStoresForScreen = (routeKey, isBranchScreen, branchNavigatorKey) => {
13
- _animation.AnimationStore.clearBag(routeKey);
14
- _gesture.GestureStore.clearBag(routeKey);
15
- _system.SystemStore.clearBag(routeKey);
16
- (0, _reactNativeReanimated.runOnUI)(() => {
17
- "worklet";
18
-
19
- if (!isBranchScreen) return;
20
- _bounds.BoundStore.clear(routeKey);
21
- if (branchNavigatorKey) {
22
- _bounds.BoundStore.clearByBranch(branchNavigatorKey);
23
- return;
24
- }
25
- _bounds.BoundStore.clearByAncestor(routeKey);
26
- })();
27
- };
28
- exports.resetStoresForScreen = resetStoresForScreen;
29
- //# sourceMappingURL=reset-stores-for-screen.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_animation","_bounds","_gesture","_system","resetStoresForScreen","routeKey","isBranchScreen","branchNavigatorKey","AnimationStore","clearBag","GestureStore","SystemStore","runOnUI","BoundStore","clear","clearByBranch","clearByAncestor","exports"],"sourceRoot":"../../../../../../../../src","sources":["shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAEO,MAAMK,oBAAoB,GAAGA,CACnCC,QAAgB,EAChBC,cAAuB,EACvBC,kBAA2B,KACvB;EACJC,yBAAc,CAACC,QAAQ,CAACJ,QAAQ,CAAC;EACjCK,qBAAY,CAACD,QAAQ,CAACJ,QAAQ,CAAC;EAC/BM,mBAAW,CAACF,QAAQ,CAACJ,QAAQ,CAAC;EAE9B,IAAAO,8BAAO,EAAC,MAAM;IACb,SAAS;;IACT,IAAI,CAACN,cAAc,EAAE;IAErBO,kBAAU,CAACC,KAAK,CAACT,QAAQ,CAAC;IAE1B,IAAIE,kBAAkB,EAAE;MACvBM,kBAAU,CAACE,aAAa,CAACR,kBAAkB,CAAC;MAC5C;IACD;IAEAM,kBAAU,CAACG,eAAe,CAACX,QAAQ,CAAC;EACrC,CAAC,CAAC,CAAC,CAAC;AACL,CAAC;AAACY,OAAA,CAAAb,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useNavigatorHistoryRegistry = void 0;
7
- var _react = require("react");
8
- var _history = require("../../../../../stores/history.store");
9
- const mountedRoutesByNavigator = new Map();
10
- function registerMountedRoute(navigatorKey, routeKey) {
11
- if (!navigatorKey || !routeKey) return;
12
- let routes = mountedRoutesByNavigator.get(navigatorKey);
13
- if (!routes) {
14
- routes = new Set();
15
- mountedRoutesByNavigator.set(navigatorKey, routes);
16
- }
17
- routes.add(routeKey);
18
- }
19
-
20
- /**
21
- * Removes the route from its navigator set.
22
- * Returns true when the navigator has no mounted routes left.
23
- */
24
- function unregisterMountedRoute(navigatorKey, routeKey) {
25
- if (!navigatorKey || !routeKey) return false;
26
- const routes = mountedRoutesByNavigator.get(navigatorKey);
27
- if (!routes) return false;
28
- routes.delete(routeKey);
29
- if (routes.size > 0) {
30
- return false;
31
- }
32
- mountedRoutesByNavigator.delete(navigatorKey);
33
- return true;
34
- }
35
- const useNavigatorHistoryRegistry = (navigatorKey, routeKey) => {
36
- (0, _react.useEffect)(() => {
37
- registerMountedRoute(navigatorKey, routeKey);
38
- return () => {
39
- const shouldClearNavigator = unregisterMountedRoute(navigatorKey, routeKey);
40
- if (shouldClearNavigator) {
41
- _history.HistoryStore.clearNavigator(navigatorKey);
42
- }
43
- };
44
- }, [navigatorKey, routeKey]);
45
- };
46
- exports.useNavigatorHistoryRegistry = useNavigatorHistoryRegistry;
47
- //# sourceMappingURL=use-navigator-history-registry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_history","mountedRoutesByNavigator","Map","registerMountedRoute","navigatorKey","routeKey","routes","get","Set","set","add","unregisterMountedRoute","delete","size","useNavigatorHistoryRegistry","useEffect","shouldClearNavigator","HistoryStore","clearNavigator","exports"],"sourceRoot":"../../../../../../../../src","sources":["shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEA,MAAME,wBAAwB,GAAG,IAAIC,GAAG,CAAsB,CAAC;AAE/D,SAASC,oBAAoBA,CAACC,YAAoB,EAAEC,QAAgB,EAAQ;EAC3E,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,SAASM,sBAAsBA,CAC9BP,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;AAEO,MAAMU,2BAA2B,GAAGA,CAC1CV,YAAoB,EACpBC,QAAgB,KACZ;EACJ,IAAAU,gBAAS,EAAC,MAAM;IACfZ,oBAAoB,CAACC,YAAY,EAAEC,QAAQ,CAAC;IAE5C,OAAO,MAAM;MACZ,MAAMW,oBAAoB,GAAGL,sBAAsB,CAClDP,YAAY,EACZC,QACD,CAAC;MACD,IAAIW,oBAAoB,EAAE;QACzBC,qBAAY,CAACC,cAAc,CAACd,YAAY,CAAC;MAC1C;IACD,CAAC;EACF,CAAC,EAAE,CAACA,YAAY,EAAEC,QAAQ,CAAC,CAAC;AAC7B,CAAC;AAACc,OAAA,CAAAL,2BAAA,GAAAA,2BAAA","ignoreList":[]}
@@ -1,158 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useCloseTransition = useCloseTransition;
7
- var _react = require("react");
8
- var _reactNativeReanimated = require("react-native-reanimated");
9
- var _useStack = require("../../../../hooks/navigation/use-stack");
10
- var _useSharedValueState = require("../../../../hooks/reanimated/use-shared-value-state");
11
- var _useStableCallback = _interopRequireDefault(require("../../../../hooks/use-stable-callback"));
12
- var _gestures = require("../../../../providers/gestures");
13
- var _descriptors = require("../../../../providers/screen/descriptors");
14
- var _core = require("../../../../providers/stack/core.provider");
15
- var _managed = require("../../../../providers/stack/managed.provider");
16
- var _stack = require("../../../../types/stack.types");
17
- var _animateToProgress = require("../../../../utils/animation/animate-to-progress");
18
- var _resetStoresForScreen = require("./helpers/reset-stores-for-screen");
19
- var _useNavigatorHistoryRegistry = require("./helpers/use-navigator-history-registry");
20
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
21
- /**
22
- * Managed close - reacts to closingRouteKeysShared from ManagedStackContext.
23
- * Used by blank-stack and component-stack.
24
- */
25
- const useManagedClose = ({
26
- current,
27
- animations,
28
- targetProgress,
29
- activate,
30
- deactivate,
31
- resetStores
32
- }) => {
33
- const {
34
- handleCloseRoute,
35
- closingRouteKeysShared
36
- } = (0, _managed.useManagedStackContext)();
37
- const routeKey = current.route.key;
38
- const handleCloseEnd = (0, _useStableCallback.default)(finished => {
39
- if (!finished) return;
40
- handleCloseRoute({
41
- route: current.route
42
- });
43
- requestAnimationFrame(() => {
44
- deactivate();
45
- resetStores();
46
- });
47
- });
48
- const transitionSpec = current.options.transitionSpec;
49
- (0, _reactNativeReanimated.useAnimatedReaction)(() => {
50
- const keys = closingRouteKeysShared.value;
51
- return keys?.includes(routeKey) ?? false;
52
- }, (isClosing, wasClosing) => {
53
- if (!isClosing || wasClosing) return;
54
- (0, _reactNativeReanimated.runOnJS)(activate)();
55
- (0, _animateToProgress.animateToProgress)({
56
- target: "close",
57
- spec: transitionSpec,
58
- animations,
59
- targetProgress,
60
- onAnimationFinish: handleCloseEnd
61
- });
62
- });
63
- };
64
-
65
- /**
66
- * Native stack close - listens to beforeRemove navigation event.
67
- */
68
- const useNativeStackClose = ({
69
- current,
70
- animations,
71
- targetProgress,
72
- activate,
73
- deactivate,
74
- resetStores
75
- }) => {
76
- const gestureCtx = (0, _gestures.useGestureContext)();
77
- const isAncestorDismissingViaGesture = (0, _useSharedValueState.useSharedValueState)((0, _reactNativeReanimated.useDerivedValue)(() => {
78
- "worklet";
79
-
80
- return gestureCtx?.ancestorContext?.gestureAnimationValues.dismissing?.value ?? false;
81
- }));
82
- const handleBeforeRemove = (0, _useStableCallback.default)(e => {
83
- const options = current.options;
84
- const isEnabled = options.enableTransitions;
85
- const navigation = current.navigation;
86
- const routeKey = current.route.key;
87
- const state = navigation.getState();
88
- const routeIndex = state.routes.findIndex(route => route.key === routeKey);
89
- const isFirstScreen = routeIndex <= 0;
90
-
91
- // If transitions are disabled, ancestor is dismissing, or first screen - let native handle it
92
- if (!isEnabled || isAncestorDismissingViaGesture || isFirstScreen) {
93
- animations.closing.set(1);
94
- resetStores();
95
- return;
96
- }
97
- e.preventDefault();
98
- activate();
99
- (0, _animateToProgress.animateToProgress)({
100
- target: "close",
101
- spec: current.options.transitionSpec,
102
- animations,
103
- targetProgress,
104
- onAnimationFinish: finished => {
105
- deactivate();
106
- if (finished) {
107
- navigation.dispatch(e.data.action);
108
- requestAnimationFrame(() => {
109
- resetStores();
110
- });
111
- }
112
- }
113
- });
114
- });
115
-
116
- // biome-ignore lint/correctness/useExhaustiveDependencies: Only re-subscribe when navigation changes
117
- (0, _react.useLayoutEffect)(() => {
118
- return current.navigation.addListener?.("beforeRemove", handleBeforeRemove);
119
- }, [current.navigation]);
120
- };
121
-
122
- /**
123
- * Unified close handler that branches on stack type.
124
- */
125
- function useCloseTransition(current, animations, targetProgress, activate, deactivate) {
126
- const routeKey = current.route.key;
127
- const {
128
- navigatorKey
129
- } = (0, _useStack.useStack)();
130
- const {
131
- flags
132
- } = (0, _core.useStackCoreContext)();
133
- const {
134
- isBranchScreen,
135
- branchNavigatorKey
136
- } = (0, _descriptors.useDescriptorDerivations)();
137
- const isNativeStack = flags.STACK_TYPE === _stack.StackType.NATIVE;
138
- const resetStores = (0, _useStableCallback.default)(() => {
139
- (0, _resetStoresForScreen.resetStoresForScreen)(routeKey, isBranchScreen, branchNavigatorKey);
140
- });
141
- const closeParams = {
142
- current,
143
- animations,
144
- targetProgress,
145
- activate,
146
- deactivate,
147
- resetStores
148
- };
149
- (0, _useNavigatorHistoryRegistry.useNavigatorHistoryRegistry)(navigatorKey, routeKey);
150
- if (isNativeStack) {
151
- // biome-ignore lint/correctness/useHookAtTopLevel: STACK_TYPE is stable per screen instance
152
- useNativeStackClose(closeParams);
153
- } else {
154
- // biome-ignore lint/correctness/useHookAtTopLevel: STACK_TYPE is stable per screen instance
155
- useManagedClose(closeParams);
156
- }
157
- }
158
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_useStack","_useSharedValueState","_useStableCallback","_interopRequireDefault","_gestures","_descriptors","_core","_managed","_stack","_animateToProgress","_resetStoresForScreen","_useNavigatorHistoryRegistry","e","__esModule","default","useManagedClose","current","animations","targetProgress","activate","deactivate","resetStores","handleCloseRoute","closingRouteKeysShared","useManagedStackContext","routeKey","route","key","handleCloseEnd","useStableCallback","finished","requestAnimationFrame","transitionSpec","options","useAnimatedReaction","keys","value","includes","isClosing","wasClosing","runOnJS","animateToProgress","target","spec","onAnimationFinish","useNativeStackClose","gestureCtx","useGestureContext","isAncestorDismissingViaGesture","useSharedValueState","useDerivedValue","ancestorContext","gestureAnimationValues","dismissing","handleBeforeRemove","isEnabled","enableTransitions","navigation","state","getState","routeIndex","routes","findIndex","isFirstScreen","closing","set","preventDefault","dispatch","data","action","useLayoutEffect","addListener","useCloseTransition","navigatorKey","useStack","flags","useStackCoreContext","isBranchScreen","branchNavigatorKey","useDescriptorDerivations","isNativeStack","STACK_TYPE","StackType","NATIVE","resetStoresForScreen","closeParams","useNavigatorHistoryRegistry"],"sourceRoot":"../../../../../../../src","sources":["shared/components/screen-lifecycle/hooks/use-close-transition/index.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAMA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAIA,IAAAQ,KAAA,GAAAR,OAAA;AACA,IAAAS,QA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C,UAAU;IACVC,cAAc;IACdC,QAAQ;IACRC,UAAU;IACVC;EACD,CAAC;EAED,IAAAiE,wDAA2B,EAACb,YAAY,EAAEhD,QAAQ,CAAC;EACnD,IAAIuD,aAAa,EAAE;IAClB;IACAnC,mBAAmB,CAACwC,WAAW,CAAC;EACjC,CAAC,MAAM;IACN;IACAtE,eAAe,CAACsE,WAAW,CAAC;EAC7B;AACD","ignoreList":[]}
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useHighRefreshRate = void 0;
7
- var _reactNativeReanimated = require("react-native-reanimated");
8
- var _useStableCallback = _interopRequireDefault(require("../../../hooks/use-stable-callback"));
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
- /**
11
- * Maintainer Notes:
12
- * Marking as experimental for now since, I'll be honest, I'm not sure if this does much. This was taken
13
- * right from this https://github.com/software-mansion/react-native-reanimated/issues/4738
14
- *
15
- * Not noticing much of a difference in prod.
16
- */
17
- const useHighRefreshRate = current => {
18
- const enableHighRefreshRate = current.options.experimental_enableHighRefreshRate ?? false;
19
- const frameCallback = (0, _reactNativeReanimated.useFrameCallback)(() => {}, false);
20
- const activateHighRefreshRate = (0, _useStableCallback.default)(() => {
21
- if (enableHighRefreshRate) {
22
- frameCallback.setActive(true);
23
- }
24
- });
25
- const deactivateHighRefreshRate = (0, _useStableCallback.default)(() => {
26
- if (enableHighRefreshRate) {
27
- frameCallback.setActive(false);
28
- }
29
- });
30
- return {
31
- activateHighRefreshRate,
32
- deactivateHighRefreshRate
33
- };
34
- };
35
- exports.useHighRefreshRate = useHighRefreshRate;
36
- //# sourceMappingURL=use-high-refresh-rate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_useStableCallback","_interopRequireDefault","e","__esModule","default","useHighRefreshRate","current","enableHighRefreshRate","options","experimental_enableHighRefreshRate","frameCallback","useFrameCallback","activateHighRefreshRate","useStableCallback","setActive","deactivateHighRefreshRate","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-lifecycle/hooks/use-high-refresh-rate.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,kBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAmE,SAAAE,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGnE;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMG,kBAAkB,GAAIC,OAAuB,IAAK;EAC9D,MAAMC,qBAAqB,GAC1BD,OAAO,CAACE,OAAO,CAACC,kCAAkC,IAAI,KAAK;EAE5D,MAAMC,aAAa,GAAG,IAAAC,uCAAgB,EAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC;EAEvD,MAAMC,uBAAuB,GAAG,IAAAC,0BAAiB,EAAC,MAAM;IACvD,IAAIN,qBAAqB,EAAE;MAC1BG,aAAa,CAACI,SAAS,CAAC,IAAI,CAAC;IAC9B;EACD,CAAC,CAAC;EAEF,MAAMC,yBAAyB,GAAG,IAAAF,0BAAiB,EAAC,MAAM;IACzD,IAAIN,qBAAqB,EAAE;MAC1BG,aAAa,CAACI,SAAS,CAAC,KAAK,CAAC;IAC/B;EACD,CAAC,CAAC;EAEF,OAAO;IACNF,uBAAuB;IACvBG;EACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAX,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_animateToProgress","_useHighRefreshRate","getInitialProgress","snapPoints","initialSnapIndex","undefined","clampedIndex","Math","min","max","length","useOpenTransition","current","animations","targetProgressValue","isFirstKey","activateHighRefreshRate","deactivateHighRefreshRate","useHighRefreshRate","useLayoutEffect","experimental_animateOnInitialMount","options","initialProgress","set","progress","target","animating","closing","entering","animateToProgress","spec","transitionSpec","targetProgress","onAnimationFinish"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-lifecycle/hooks/use-open-transition.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAKA,IAAAC,kBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA,SAASG,kBAAkBA,CAAC;EAC3BC,UAAU;EACVC;AAID,CAAC,EAA+B;EAC/B,IAAI,CAACD,UAAU,EAAE;IAChB,OAAOE,SAAS;EACjB;EAEA,MAAMC,YAAY,GAAGC,IAAI,CAACC,GAAG,CAC5BD,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEL,gBAAgB,CAAC,EAC7BD,UAAU,CAACO,MAAM,GAAG,CACrB,CAAC;EACD,OAAOP,UAAU,CAACG,YAAY,CAAC;AAChC;;AAEA;AACA;AACA;AACA;AACO,SAASK,iBAAiBA,CAChCC,OAAuB,EACvBC,UAA6B,EAC7BC,mBAAwC,EACxCC,UAAmB,EAClB;EACD,MAAM;IAAEC,uBAAuB;IAAEC;EAA0B,CAAC,GAC3D,IAAAC,sCAAkB,EAACN,OAAO,CAAC;;EAE5B;EACA,IAAAO,sBAAe,EAAC,MAAM;IACrB,MAAM;MACLhB,UAAU;MACVC,gBAAgB,GAAG,CAAC;MACpBgB;IACD,CAAC,GAAGR,OAAO,CAACS,OAAO;IAEnB,MAAMC,eAAe,GAAGpB,kBAAkB,CAAC;MAC1CC,UAAU;MACVC;IACD,CAAC,CAAC;IAEF,IAAIW,UAAU,IAAI,CAACK,kCAAkC,EAAE;MACtD,IAAIE,eAAe,KAAK,MAAM,EAAE;QAC/BR,mBAAmB,CAACS,GAAG,CAAC,CAAC,CAAC;QAC1BV,UAAU,CAACW,QAAQ,CAACD,GAAG,CAAC,CAAC,CAAC;MAC3B,CAAC,MAAM;QACN,MAAME,MAAM,GAAGH,eAAe,IAAI,CAAC;QACnCR,mBAAmB,CAACS,GAAG,CAACE,MAAM,CAAC;QAC/BZ,UAAU,CAACW,QAAQ,CAACD,GAAG,CAACE,MAAM,CAAC;MAChC;MACAZ,UAAU,CAACa,SAAS,CAACH,GAAG,CAAC,CAAC,CAAC;MAC3BV,UAAU,CAACc,OAAO,CAACJ,GAAG,CAAC,CAAC,CAAC;MACzBV,UAAU,CAACe,QAAQ,CAACL,GAAG,CAAC,CAAC,CAAC;MAC1B;IACD;;IAEA;IACA;IACA,IAAID,eAAe,KAAK,MAAM,EAAE;MAC/B;IACD;IAEAN,uBAAuB,CAAC,CAAC;IACzB,IAAAa,oCAAiB,EAAC;MACjBJ,MAAM,EAAEH,eAAe,IAAI,MAAM;MACjCQ,IAAI,EAAElB,OAAO,CAACS,OAAO,CAACU,cAAc;MACpClB,UAAU;MACVmB,cAAc,EAAElB,mBAAmB;MACnCmB,iBAAiB,EAAEhB;IACpB,CAAC,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IAAED,uBAAuB;IAAEC;EAA0B,CAAC;AAC9D","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_useStableCallback","_interopRequireDefault","_history","e","__esModule","default","hasSnapPoints","descriptor","snapPoints","options","Boolean","length","isLeafScreen","navigation","state","getState","index","currentRoute","routes","shouldTrackInHistory","useScreenEvents","current","previous","animations","navigatorKey","key","useEffect","HistoryStore","focus","unsubscribe","addListener","handleBlur","useStableCallback","prevNavigatorKey","useAnimatedReaction","closing","get","prevClosing","runOnJS"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-lifecycle/hooks/use-screen-events.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAGA,IAAAI,QAAA,GAAAJ,OAAA;AAA6D,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,C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AAG,CAAC;EAC7B,CAAC,EAAE,EAAE,CAAC;;EAEN;EACA,MAAME,UAAU,GAAG,IAAAC,0BAAiB,EAAC,MAAM;IAC1C,IAAIV,QAAQ,IAAIH,oBAAoB,CAACG,QAAQ,CAAC,EAAE;MAC/C,MAAMW,gBAAgB,GAAGX,QAAQ,CAACT,UAAU,CAACE,QAAQ,CAAC,CAAC,EAAEU,GAAG,IAAI,EAAE;MAClEE,qBAAY,CAACC,KAAK,CAACN,QAAQ,EAAEW,gBAAgB,CAAC;IAC/C;EACD,CAAC,CAAC;EAEF,IAAAC,0CAAmB,EAClB,MAAMX,UAAU,CAACY,OAAO,CAACC,GAAG,CAAC,CAAC,EAC9B,CAACD,OAAO,EAAEE,WAAW,KAAK;IACzB,IAAIF,OAAO,IAAI,CAACE,WAAW,EAAE;MAC5B,IAAAC,8BAAO,EAACP,UAAU,CAAC,CAAC,CAAC;IACtB;EACD,CACD,CAAC;AACF","ignoreList":[]}
@@ -1,144 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.buildResolvedStyleMap = void 0;
7
- var _constants = require("../../../../constants");
8
- const IDENTITY_TRANSFORM = [{
9
- translateX: 0
10
- }, {
11
- translateY: 0
12
- }, {
13
- scaleX: 1
14
- }, {
15
- scaleY: 1
16
- }];
17
- const ALWAYS_RESET_STYLE_VALUES = {
18
- zIndex: 0,
19
- elevation: 0
20
- };
21
- const hasAnyKeys = record => {
22
- "worklet";
23
-
24
- for (const _key in record) {
25
- return true;
26
- }
27
- return false;
28
- };
29
- const collectStyleKeyMeta = record => {
30
- "worklet";
31
-
32
- const keys = {};
33
- let hasAny = false;
34
- if (!record) {
35
- return {
36
- keys,
37
- hasAny
38
- };
39
- }
40
- for (const key in record) {
41
- keys[key] = true;
42
- hasAny = true;
43
- }
44
- return {
45
- keys,
46
- hasAny
47
- };
48
- };
49
- const collectRelevantSlotIds = ({
50
- currentStylesMap,
51
- fallbackStylesMap,
52
- previousStyleKeysBySlot
53
- }) => {
54
- "worklet";
55
-
56
- const slotIds = {};
57
- for (const slotId in currentStylesMap) {
58
- slotIds[slotId] = true;
59
- }
60
- for (const slotId in fallbackStylesMap) {
61
- slotIds[slotId] = true;
62
- }
63
- for (const slotId in previousStyleKeysBySlot) {
64
- slotIds[slotId] = true;
65
- }
66
- return slotIds;
67
- };
68
- const buildUnsetPatch = ({
69
- previousKeys,
70
- currentKeys
71
- }) => {
72
- "worklet";
73
-
74
- const unsetPatch = {};
75
- for (const key in previousKeys) {
76
- if (currentKeys[key]) continue;
77
- if (key === "transform") {
78
- unsetPatch.transform = IDENTITY_TRANSFORM;
79
- continue;
80
- }
81
- if (key in ALWAYS_RESET_STYLE_VALUES) {
82
- unsetPatch[key] = ALWAYS_RESET_STYLE_VALUES[key];
83
- continue;
84
- }
85
- unsetPatch[key] = undefined;
86
- }
87
- return unsetPatch;
88
- };
89
- const buildResolvedStyleMap = ({
90
- currentStylesMap,
91
- fallbackStylesMap,
92
- previousStyleKeysBySlot
93
- }) => {
94
- "worklet";
95
-
96
- const resolvedStylesMap = {};
97
- const nextPreviousStyleKeysBySlot = {};
98
- const slotIds = collectRelevantSlotIds({
99
- currentStylesMap,
100
- fallbackStylesMap,
101
- previousStyleKeysBySlot
102
- });
103
- for (const slotId in slotIds) {
104
- const slot = currentStylesMap[slotId] ?? fallbackStylesMap[slotId];
105
- const baseStyle = slot?.style;
106
- const {
107
- keys: currentKeys,
108
- hasAny: hasCurrentStyleKeys
109
- } = collectStyleKeyMeta(baseStyle);
110
- const unsetPatch = buildUnsetPatch({
111
- previousKeys: previousStyleKeysBySlot[slotId] ?? {},
112
- currentKeys
113
- });
114
- const hasUnsetPatch = hasAnyKeys(unsetPatch);
115
- const hasProps = slot?.props !== undefined;
116
- if (!slot && !hasUnsetPatch) {
117
- continue;
118
- }
119
- const resolvedStyle = hasCurrentStyleKeys || hasUnsetPatch ? {
120
- ...unsetPatch,
121
- ...(slot?.style ?? _constants.NO_STYLES)
122
- } : undefined;
123
- if (resolvedStyle === undefined && !hasProps) {
124
- continue;
125
- }
126
- const resolvedSlot = {};
127
- if (resolvedStyle !== undefined) {
128
- resolvedSlot.style = resolvedStyle;
129
- }
130
- if (hasProps) {
131
- resolvedSlot.props = slot?.props;
132
- }
133
- resolvedStylesMap[slotId] = resolvedSlot;
134
- if (hasCurrentStyleKeys) {
135
- nextPreviousStyleKeysBySlot[slotId] = currentKeys;
136
- }
137
- }
138
- return {
139
- resolvedStylesMap,
140
- nextPreviousStyleKeysBySlot
141
- };
142
- };
143
- exports.buildResolvedStyleMap = buildResolvedStyleMap;
144
- //# sourceMappingURL=build-resolved-style-map.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_constants","require","IDENTITY_TRANSFORM","translateX","translateY","scaleX","scaleY","ALWAYS_RESET_STYLE_VALUES","zIndex","elevation","hasAnyKeys","record","_key","collectStyleKeyMeta","keys","hasAny","key","collectRelevantSlotIds","currentStylesMap","fallbackStylesMap","previousStyleKeysBySlot","slotIds","slotId","buildUnsetPatch","previousKeys","currentKeys","unsetPatch","transform","undefined","buildResolvedStyleMap","resolvedStylesMap","nextPreviousStyleKeysBySlot","slot","baseStyle","style","hasCurrentStyleKeys","hasUnsetPatch","hasProps","props","resolvedStyle","NO_STYLES","resolvedSlot","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/build-resolved-style-map.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAaA,MAAMC,kBAAkB,GAAG,CAC1B;EAAEC,UAAU,EAAE;AAAE,CAAC,EACjB;EAAEC,UAAU,EAAE;AAAE,CAAC,EACjB;EAAEC,MAAM,EAAE;AAAE,CAAC,EACb;EAAEC,MAAM,EAAE;AAAE,CAAC,CACJ;AAEV,MAAMC,yBAAyB,GAAG;EACjCC,MAAM,EAAE,CAAC;EACTC,SAAS,EAAE;AACZ,CAAU;AAEV,MAAMC,UAAU,GAAIC,MAA+B,IAAK;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