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 +1 @@
1
- {"version":3,"names":["useMemo","createScreenTransitionState","AnimationStore","GestureStore","SystemStore","toPlainRoute","toPlainValue","useBuildTransitionState","descriptor","slot","key","route","meta","options","gestureEnabled","snapPoints","shouldUseNeutralNextGestures","length","undefined","plainRoute","plainMeta","sortedNumericSnapPoints","filter","p","sort","a","b","progress","getValue","willAnimate","closing","entering","animating","settled","logicallySettled","targetProgress","resolvedAutoSnapPoint","measuredContentLayout","hasAutoSnapPoint","includes","gesture","peekBag","getCachedBag","getBag","unwrapped"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/use-build-transition-state.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAE/B,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SACCC,YAAY,QAEN,kCAAkC;AACzC,SAASC,WAAW,QAAQ,iCAAiC;AAO7D,SAASC,YAAY,EAAEC,YAAY,QAAQ,WAAW;AAqBtD,OAAO,MAAMC,uBAAuB,GAAGA,CACtCC,UAAsC,EACtCC,IAAqC,KACT;EAC5B,MAAMC,GAAG,GAAGF,UAAU,EAAEG,KAAK,EAAED,GAAG;EAClC,MAAME,IAAI,GAAGJ,UAAU,EAAEK,OAAO,EAAED,IAAI;EACtC,MAAMD,KAAK,GAAGH,UAAU,EAAEG,KAAK;EAC/B,MAAMG,cAAc,GAAGN,UAAU,EAAEK,OAAO,EAAEC,cAAc;EAC1D,MAAMC,UAAU,GAAGP,UAAU,EAAEK,OAAO,EAAEE,UAAU;EAElD,MAAMC,4BAA4B,GACjCP,IAAI,KAAK,MAAM,IACfK,cAAc,KAAK,KAAK,KACvB,CAACC,UAAU,IAAIA,UAAU,CAACE,MAAM,KAAK,CAAC,CAAC;EAEzC,OAAOjB,OAAO,CAAC,MAAM;IACpB,IAAI,CAACU,GAAG,IAAI,CAACC,KAAK,EAAE,OAAOO,SAAS;IAEpC,MAAMC,UAAU,GAAGd,YAAY,CAACM,KAAK,CAAC;IACtC,MAAMS,SAAS,GAAGR,IAAI,GAClBN,YAAY,CAACM,IAAI,CAAC,GACnBM,SAAS;IAEZ,MAAMG,uBAAuB,GAAG,CAACN,UAAU,IAAI,EAAE,EAC/CO,MAAM,CAAEC,CAAC,IAAkB,OAAOA,CAAC,KAAK,QAAQ,CAAC,CACjDC,IAAI,CAAC,CAACC,CAAC,E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ACV,GAAG,EAAEE,IAAI,EAAED,KAAK,EAAEK,4BAA4B,EAAED,UAAU,CAAC,CAAC;AACjE,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useMemo","createScreenTransitionState","AnimationStore","GestureStore","SystemStore","toPlainRoute","toPlainValue","useBuildTransitionState","descriptor","slot","key","route","meta","options","gestureEnabled","navigationMaskEnabled","snapPoints","shouldUseNeutralNextGestures","length","undefined","plainRoute","plainMeta","sortedNumericSnapPoints","filter","p","sort","a","b","progress","getValue","willAnimate","closing","entering","animating","settled","logicallySettled","targetProgress","resolvedAutoSnapPoint","measuredContentLayout","hasAutoSnapPoint","includes","gesture","peekBag","getCachedBag","getBag","unwrapped"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/use-build-transition-state.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAE/B,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SACCC,YAAY,QAEN,kCAAkC;AACzC,SAASC,WAAW,QAAQ,iCAAiC;AAO7D,SAASC,YAAY,EAAEC,YAAY,QAAQ,WAAW;AAqBtD,OAAO,MAAMC,uBAAuB,GAAGA,CACtCC,UAAsC,EACtCC,IAAqC,KACT;EAC5B,MAAMC,GAAG,GAAGF,UAAU,EAAEG,KAAK,EAAED,GAAG;EAClC,MAAME,IAAI,GAAGJ,UAAU,EAAEK,OAAO,EAAED,IAAI;EACtC,MAAMD,KAAK,GAAGH,UAAU,EAAEG,KAAK;EAC/B,MAAMG,cAAc,GAAGN,UAAU,EAAEK,OAAO,EAAEC,cAAc;EAC1D,MAAMC,qBAAqB,GAAG,CAAC,CAACP,UAAU,EAAEK,OAAO,EAAEE,qBAAqB;EAC1E,MAAMC,UAAU,GAAGR,UAAU,EAAEK,OAAO,EAAEG,UAAU;EAElD,MAAMC,4BAA4B,GACjCR,IAAI,KAAK,MAAM,IACfK,cAAc,KAAK,KAAK,KACvB,CAACE,UAAU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AAE,uBAAuB,CAAC;MACzE6B,gBAAgB,EAAEvB,UAAU,EAAEwB,QAAQ,CAAC,MAAM,CAAC,IAAI,KAAK;MACvDlB,uBAAuB;MACvBmB,OAAO,EAAExB,4BAA4B,GACjCd,YAAY,CAACuC,OAAO,CAAChC,GAAG,CAAC,IAAIP,YAAY,CAACwC,YAAY,CAAC,CAAC,GACzDxC,YAAY,CAACyC,MAAM,CAAClC,GAAG,CAAC;MAC3BC,KAAK,EAAES,UAAU;MACjBR,IAAI,EAAES,SAAS;MACfwB,SAAS,EAAE5C,2BAA2B,CACrCmB,UAAU,EACVC,SAAS,EACTN,qBACD;IACD,CAAC;EACF,CAAC,EAAE,CACFL,GAAG,EACHE,IAAI,EACJD,KAAK,EACLM,4BAA4B,EAC5BD,UAAU,EACVD,qBAAqB,CACrB,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1,2 +1,4 @@
1
1
  "use strict";
2
+
3
+ export {};
2
4
  //# sourceMappingURL=types.js.map
@@ -1,16 +1,30 @@
1
1
  "use strict";
2
2
 
3
+ import { useDerivedValue } from "react-native-reanimated";
3
4
  import { useScreenAnimationContext } from "./animation.provider";
4
5
  import { resolveScreenAnimationTarget } from "./helpers/resolve-screen-animation-target";
5
6
  export function useScreenAnimation(target) {
6
7
  const {
7
- screenAnimation,
8
- ancestorScreenAnimations
8
+ screenInterpolatorProps,
9
+ boundsAccessor,
10
+ ancestorScreenAnimationSources
9
11
  } = useScreenAnimationContext();
10
- return resolveScreenAnimationTarget({
12
+ const source = resolveScreenAnimationTarget({
11
13
  target,
12
- self: screenAnimation,
13
- ancestors: ancestorScreenAnimations
14
+ self: {
15
+ screenInterpolatorProps,
16
+ boundsAccessor
17
+ },
18
+ ancestors: ancestorScreenAnimationSources
19
+ });
20
+ return useDerivedValue(() => {
21
+ "worklet";
22
+
23
+ const props = source.screenInterpolatorProps.get();
24
+ return {
25
+ ...props,
26
+ bounds: source.boundsAccessor
27
+ };
14
28
  });
15
29
  }
16
30
  //# sourceMappingURL=use-screen-animation.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useScreenAnimationContext","resolveScreenAnimationTarget","useScreenAnimation","target","screenAnimation","ancestorScreenAnimations","self","ancestors"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/animation/use-screen-animation.tsx"],"mappings":";;AAEA,SAASA,yBAAyB,QAAQ,sBAAsB;AAChE,SAASC,4BAA4B,QAAQ,2CAA2C;AAKxF,OAAO,SAASC,kBAAkBA,CACjCC,MAA8B,EACW;EACzC,MAAM;IAAEC,eAAe;IAAEC;EAAyB,CAAC,GAClDL,yBAAyB,CAAC,CAAC;EAC5B,OAAOC,4BAA4B,CAAC;IACnCE,MAAM;IACNG,IAAI,EAAEF,eAAe;IACrBG,SAAS,EAAEF;EACZ,CAAC,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["useDerivedValue","useScreenAnimationContext","resolveScreenAnimationTarget","useScreenAnimation","target","screenInterpolatorProps","boundsAccessor","ancestorScreenAnimationSources","source","self","ancestors","props","get","bounds"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/animation/use-screen-animation.tsx"],"mappings":";;AAAA,SAA4BA,eAAe,QAAQ,yBAAyB;AAE5E,SAASC,yBAAyB,QAAQ,sBAAsB;AAChE,SAASC,4BAA4B,QAAQ,2CAA2C;AAKxF,OAAO,SAASC,kBAAkBA,CACjCC,MAA8B,EACW;EACzC,MAAM;IACLC,uBAAuB;IACvBC,cAAc;IACdC;EACD,CAAC,GAAGN,yBAAyB,CAAC,CAAC;EAE/B,MAAMO,MAAM,GAAGN,4BAA4B,CAAwB;IAClEE,MAAM;IACNK,IAAI,EAAE;MACLJ,uBAAuB;MACvBC;IACD,CAAC;IACDI,SAAS,EAAEH;EACZ,CAAC,CAAC;EAEF,OAAOP,eAAe,CAA2B,MAAM;IACtD,SAAS;;IAET,MAAMW,KAAK,GAAGH,MAAM,CAACH,uBAAuB,CAACO,GAAG,CAAC,CAAC;IAElD,OAAO;MACN,GAAGD,KAAK;MACRE,MAAM,EAAEL,MAAM,CAACF;IAChB,CAAC;EACF,CAAC,CAAC;AACH","ignoreList":[]}
@@ -24,6 +24,7 @@ export function deriveDescriptorDerivations({
24
24
  previousScreenKey,
25
25
  currentScreenKey,
26
26
  nextScreenKey,
27
+ parentScreenKey: ancestorKeys[0],
27
28
  isFirstKey,
28
29
  isTopMostScreen,
29
30
  ancestorKeys,
@@ -1 +1 @@
1
- {"version":3,"names":["deriveDescriptorDerivations","previous","current","next","ancestorKeys","ancestorNavigatorKeys","previousScreenKey","route","key","currentScreenKey","nextScreenKey","navigationState","navigation","getState","navigatorKey","routes","isFirstKey","findIndex","isTopMostScreen","hasConfiguredInterpolator","options","screenStyleInterpolator","currentRoute","find","hasBranchState","nestedState","state","undefined","branchNavigatorKey","isBranchScreen"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts"],"mappings":";;AAwBA,OAAO,SAASA,2BAA2BA,CAAC;EAC3CC,QAAQ;EACRC,OAAO;EACPC,IAAI;EACJC,YAAY;EACZC;AACO,CAAC,EAAyB;EACjC,MAAMC,iBAAiB,GAAGL,QAAQ,EAAEM,KAAK,CAACC,GAAG;EAC7C,MAAMC,gBAAgB,GAAGP,OAAO,CAACK,KAAK,CAACC,GAAG;EAC1C,MAAME,aAAa,GAAGP,IAAI,EAAEI,KAAK,CAACC,GAAG;EAErC,MAAMG,eAAe,GAAGT,OAAO,CAACU,UAAU,CAACC,QAAQ,CAAC,CAAC;EACrD,MAAMC,YAAY,GAAGH,eAAe,EAAEH,GAAG,IAAI,EAAE;EAC/C,MAAMO,MAAM,GAAGJ,eAAe,EAAEI,MAAM,IAAI,EAAE;EAC5C,MAAMC,UAAU,GACfD,MAAM,CAACE,SAAS,CAAEV,KAAK,IAAKA,KAAK,CAACC,GAAG,KAAKN,OAAO,CAACK,KAAK,CAACC,GAAG,CAAC,KAAK,CAAC;EACnE,MAAMU,eAAe,GAAG,CAACf,IAAI;EAC7B,MAAMgB,yBAAyB,GAC9B,CAAC,CAACjB,OAAO,CAACkB,OAAO,CAACC,uBAAuB,IACzC,CAAC,CAAClB,IAAI,EAAEiB,OAAO,EAAEC,uBAAuB;EAEzC,MAAMC,YAAY,GAAGP,MAAM,CAACQ,IAAI,CAAEhB,KAAK,IAAKA,KAAK,CAACC,GAAG,KAAKN,OAAO,CAACK,KAAK,CAACC,GAAG,CAAC;EAC5E,MAAMgB,cAAc,GAAG,CAAC,CAACF,YAAY,IAAI,OAAO,IAAIA,YAAY;EAChE,MAAMG,WAAW,GAAGD,cAAc,GAC9BF,YAAY,CAAmCI,KAAK,GACrDC,SAAS;EACZ,MAAMC,kBAAkB,GACvB,OAAOH,WAAW,EAAEjB,GAAG,KAAK,QAAQ,GAAGiB,WAAW,CAACjB,GAAG,GAAGmB,SAAS;EAEnE,OAAO;IACNrB,iBAAiB;IACjBG,gBAAgB;IAChBC,aAAa;IACbM,UAAU;IACVE,eAAe;IACfd,YAAY;IACZU,YAAY;IACZT,qBAAqB;IACrBc,yBAAyB;IACzBU,cAAc,EAAEL,cAAc;IAC9BI;EACD,CAAC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["deriveDescriptorDerivations","previous","current","next","ancestorKeys","ancestorNavigatorKeys","previousScreenKey","route","key","currentScreenKey","nextScreenKey","navigationState","navigation","getState","navigatorKey","routes","isFirstKey","findIndex","isTopMostScreen","hasConfiguredInterpolator","options","screenStyleInterpolator","currentRoute","find","hasBranchState","nestedState","state","undefined","branchNavigatorKey","parentScreenKey","isBranchScreen"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts"],"mappings":";;AAyBA,OAAO,SAASA,2BAA2BA,CAAC;EAC3CC,QAAQ;EACRC,OAAO;EACPC,IAAI;EACJC,YAAY;EACZC;AACO,CAAC,EAAyB;EACjC,MAAMC,iBAAiB,GAAGL,QAAQ,EAAEM,KAAK,CAACC,GAAG;EAC7C,MAAMC,gBAAgB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0 +1,25 @@
1
+ "use strict";
2
+
3
+ import { memo } from "react";
4
+ import { StyleSheet, View } from "react-native";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ export const MaybeFloatingContainer = /*#__PURE__*/memo(function MaybeFloatingContainer({
7
+ children,
8
+ isFloatingOverlay
9
+ }) {
10
+ if (!isFloatingOverlay) {
11
+ return children;
12
+ }
13
+ return /*#__PURE__*/_jsx(View, {
14
+ style: styles.float,
15
+ pointerEvents: "box-none",
16
+ children: children
17
+ });
18
+ });
19
+ const styles = StyleSheet.create({
20
+ float: {
21
+ ...StyleSheet.absoluteFill,
22
+ zIndex: 999
23
+ }
24
+ });
25
+ //# sourceMappingURL=maybe-floating-container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["memo","StyleSheet","View","jsx","_jsx","MaybeFloatingContainer","children","isFloatingOverlay","style","styles","float","pointerEvents","create","absoluteFill","zIndex"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/components/maybe-floating-container.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,OAAO;AAC5B,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOhD,OAAO,MAAMC,sBAAsB,gBAAGL,IAAI,CAAC,SAASK,sBAAsBA,CAAC;EAC1EC,QAAQ;EACRC;AAC4B,CAAC,EAAE;EAC/B,IAAI,CAACA,iBAAiB,EAAE;IACvB,OAAOD,QAAQ;EAChB;EAEA,oBACCF,IAAA,CAACF,IAAI;IAACM,KAAK,EAAEC,MAAM,CAACC,KAAM;IAACC,aAAa,EAAC,UAAU;IAAAL,QAAA,EACjDA;EAAQ,CACJ,CAAC;AAET,CAAC,CAAC;AAEF,MAAMG,MAAM,GAAGR,UAAU,CAACW,MAAM,CAAC;EAChCF,KAAK,EAAE;IACN,GAAGT,UAAU,CAACY,YAAY;IAC1BC,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ import { NAVIGATION_MASK_CONTAINER_STYLE_ID, NAVIGATION_MASK_ELEMENT_STYLE_ID } from "../../../constants";
4
+ export const IDENTITY_TRANSFORM = [{
5
+ translateX: 0
6
+ }, {
7
+ translateY: 0
8
+ }, {
9
+ scaleX: 1
10
+ }, {
11
+ scaleY: 1
12
+ }];
13
+ export const ALWAYS_RESET_STYLE_VALUES = {
14
+ opacity: 1,
15
+ zIndex: 0,
16
+ elevation: 0
17
+ };
18
+ export const LOCAL_ONLY_STYLE_SLOT_IDS = {
19
+ content: true,
20
+ backdrop: true,
21
+ surface: true,
22
+ [NAVIGATION_MASK_ELEMENT_STYLE_ID]: true,
23
+ [NAVIGATION_MASK_CONTAINER_STYLE_ID]: true
24
+ };
25
+ export const shouldSlotInherit = slotId => {
26
+ "worklet";
27
+
28
+ // biome-ignore lint/suspicious/noPrototypeBuiltins: <proj issue>
29
+ return !Object.prototype.hasOwnProperty.call(LOCAL_ONLY_STYLE_SLOT_IDS, slotId);
30
+ };
31
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","IDENTITY_TRANSFORM","translateX","translateY","scaleX","scaleY","ALWAYS_RESET_STYLE_VALUES","opacity","zIndex","elevation","LOCAL_ONLY_STYLE_SLOT_IDS","content","backdrop","surface","shouldSlotInherit","slotId","Object","prototype","hasOwnProperty","call"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/constants.ts"],"mappings":";;AAAA,SACCA,kCAAkC,EAClCC,gCAAgC,QAC1B,oBAAoB;AAE3B,OAAO,MAAMC,kBAAkB,GAAG,CACjC;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,OAAO,MAAMC,yBAAyB,GAAG;EACxCC,OAAO,EAAE,CAAC;EACVC,MAAM,EAAE,CAAC;EACTC,SAAS,EAAE;AACZ,CAAU;AAEV,OAAO,MAAMC,yBAAyB,GAAG;EACxCC,OAAO,EAAE,IAAI;EACbC,QAAQ,EAAE,IAAI;EACdC,OAAO,EAAE,IAAI;EACb,CAACb,gCAAgC,GAAG,IAAI;EACxC,CAACD,kCAAkC,GAAG;AACvC,CAAU;AAEV,OAAO,MAAMe,iBAAiB,GAAIC,MAAc,IAAK;EACpD,SAAS;;EACT;EACA,OAAO,CAACC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAC3CT,yBAAyB,EACzBK,MACD,CAAC;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ const isExplicitTransitionSlot = value => {
4
+ "worklet";
5
+
6
+ return typeof value === "object" && value != null && ("style" in value || "props" in value);
7
+ };
8
+ const isAlreadyNormalizedStyleMap = raw => {
9
+ "worklet";
10
+
11
+ for (const key in raw) {
12
+ const value = raw[key];
13
+ if (value === undefined) {
14
+ continue;
15
+ }
16
+ if (!isExplicitTransitionSlot(value)) {
17
+ return false;
18
+ }
19
+ }
20
+ return true;
21
+ };
22
+ export function normalizeSlots(raw) {
23
+ "worklet";
24
+
25
+ if (isAlreadyNormalizedStyleMap(raw)) {
26
+ return raw;
27
+ }
28
+ const normalized = {};
29
+ for (const key in raw) {
30
+ const value = raw[key];
31
+ if (value === undefined) {
32
+ normalized[key] = undefined;
33
+ continue;
34
+ }
35
+ if (isExplicitTransitionSlot(value)) {
36
+ normalized[key] = value;
37
+ } else {
38
+ normalized[key] = {
39
+ style: value
40
+ };
41
+ }
42
+ }
43
+ return normalized;
44
+ }
45
+ //# sourceMappingURL=normalize-slots.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isExplicitTransitionSlot","value","isAlreadyNormalizedStyleMap","raw","key","undefined","normalizeSlots","normalized","style"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/normalize-slots.ts"],"mappings":";;AAKA,MAAMA,wBAAwB,GAAIC,KAAc,IAAK;EACpD,SAAS;;EACT,OACC,OAAOA,KAAK,KAAK,QAAQ,IACzBA,KAAK,IAAI,IAAI,KACZ,OAAO,IAAIA,KAAK,IAAI,OAAO,IAAIA,KAAK,CAAC;AAExC,CAAC;AAED,MAAMC,2BAA2B,GAAIC,GAAwB,IAAK;EACjE,SAAS;;EAET,KAAK,MAAMC,GAAG,IAAID,GAAG,EAAE;IACtB,MAAMF,KAAK,GAAGE,GAAG,CAACC,GAAG,CAAC;IAEtB,IAAIH,KAAK,KAAKI,SAAS,EAAE;MACxB;IACD;IAEA,IAAI,CAACL,wBAAwB,CAACC,KAAK,CAAC,EAAE;MACrC,OAAO,KAAK;IACb;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;AAED,OAAO,SAASK,cAAcA,CAC7BH,GAAwB,EACgB;EACxC,SAAS;;EAET,IAAID,2BAA2B,CAACC,GAAG,CAAC,EAAE;IACrC,OAAOA,GAAG;EACX;EAEA,MAAMI,UAAqE,GAC1E,CAAC,CAAC;EAEH,KAAK,MAAMH,GAAG,IAAID,GAAG,EAAE;IACtB,MAAMF,KAAK,GAAGE,GAAG,CAACC,GAAG,CAAC;IAEtB,IAAIH,KAAK,KAAKI,SAAS,EAAE;MACxBE,UAAU,CAACH,GAAG,CAAC,GAAGC,SAAS;MAC3B;IACD;IAEA,IAAIL,wBAAwB,CAACC,KAAK,CAAC,EAAE;MACpCM,UAAU,CAACH,GAAG,CAAC,GAAGH,KAAsC;IACzD,CAAC,MAAM;MACNM,UAAU,CAACH,GAAG,CAAC,GAAG;QAAEI,KAAK,EAAEP;MAAM,CAAC;IACnC;EACD;EAEA,OAAOM,UAAU;AAClB","ignoreList":[]}
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+
3
+ import { ALWAYS_RESET_STYLE_VALUES, IDENTITY_TRANSFORM, shouldSlotInherit } from "../constants";
4
+ const EMPTY_RESETTABLE_STYLE_STATE = Object.freeze({
5
+ hasTransform: false,
6
+ hasOpacity: false,
7
+ hasZIndex: false,
8
+ hasElevation: false
9
+ });
10
+ export const resolveSlotStyles = ({
11
+ currentStylesMap,
12
+ ancestorStylesMap,
13
+ previousStyleStatesBySlot
14
+ }) => {
15
+ "worklet";
16
+
17
+ const resolvedStylesMap = {};
18
+ const nextPreviousStyleStatesBySlot = {};
19
+ const appendResolvedSlot = slotId => {
20
+ "worklet";
21
+
22
+ const slot = currentStylesMap[slotId] ?? (shouldSlotInherit(slotId) ? ancestorStylesMap[slotId] : undefined);
23
+ const baseStyle = slot?.style;
24
+ let hasAnyStyleKeys = false;
25
+ let hasTransform = false;
26
+ let hasOpacity = false;
27
+ let hasZIndex = false;
28
+ let hasElevation = false;
29
+ if (baseStyle) {
30
+ for (const key in baseStyle) {
31
+ hasAnyStyleKeys = true;
32
+ if (key === "transform") {
33
+ hasTransform = true;
34
+ continue;
35
+ }
36
+ if (key === "opacity") {
37
+ hasOpacity = true;
38
+ continue;
39
+ }
40
+ if (key === "zIndex") {
41
+ hasZIndex = true;
42
+ continue;
43
+ }
44
+ if (key === "elevation") {
45
+ hasElevation = true;
46
+ }
47
+ }
48
+ }
49
+ const previousState = previousStyleStatesBySlot[slotId] ?? EMPTY_RESETTABLE_STYLE_STATE;
50
+ const shouldResetTransform = previousState.hasTransform && !hasTransform;
51
+ const shouldResetOpacity = previousState.hasOpacity && !hasOpacity;
52
+ const shouldResetZIndex = previousState.hasZIndex && !hasZIndex;
53
+ const shouldResetElevation = previousState.hasElevation && !hasElevation;
54
+ const hasResetPatch = shouldResetTransform || shouldResetOpacity || shouldResetZIndex || shouldResetElevation;
55
+ const hasProps = slot?.props !== undefined;
56
+ if (hasTransform || hasOpacity || hasZIndex || hasElevation) {
57
+ nextPreviousStyleStatesBySlot[slotId] = {
58
+ hasTransform,
59
+ hasOpacity,
60
+ hasZIndex,
61
+ hasElevation
62
+ };
63
+ }
64
+ if (!slot && !hasResetPatch) {
65
+ return;
66
+ }
67
+ if (!hasResetPatch && slot) {
68
+ if (hasAnyStyleKeys || hasProps) {
69
+ resolvedStylesMap[slotId] = slot;
70
+ }
71
+ return;
72
+ }
73
+ if (!hasAnyStyleKeys && !hasResetPatch && !hasProps) {
74
+ return;
75
+ }
76
+ const resolvedSlot = {};
77
+ if (hasAnyStyleKeys || hasResetPatch) {
78
+ const resolvedStyle = {};
79
+ if (shouldResetTransform) {
80
+ resolvedStyle.transform = IDENTITY_TRANSFORM;
81
+ }
82
+ if (shouldResetOpacity) {
83
+ resolvedStyle.opacity = ALWAYS_RESET_STYLE_VALUES.opacity;
84
+ }
85
+ if (shouldResetZIndex) {
86
+ resolvedStyle.zIndex = ALWAYS_RESET_STYLE_VALUES.zIndex;
87
+ }
88
+ if (shouldResetElevation) {
89
+ resolvedStyle.elevation = ALWAYS_RESET_STYLE_VALUES.elevation;
90
+ }
91
+ if (baseStyle) {
92
+ for (const key in baseStyle) {
93
+ resolvedStyle[key] = baseStyle[key];
94
+ }
95
+ }
96
+ resolvedSlot.style = resolvedStyle;
97
+ }
98
+ if (hasProps) {
99
+ resolvedSlot.props = slot?.props;
100
+ }
101
+ if (!resolvedSlot.style && !resolvedSlot.props) {
102
+ return;
103
+ }
104
+ resolvedStylesMap[slotId] = resolvedSlot;
105
+ };
106
+ for (const slotId in currentStylesMap) {
107
+ appendResolvedSlot(slotId);
108
+ }
109
+ for (const slotId in ancestorStylesMap) {
110
+ if (!shouldSlotInherit(slotId)) {
111
+ continue;
112
+ }
113
+ if (currentStylesMap[slotId] !== undefined) {
114
+ continue;
115
+ }
116
+ appendResolvedSlot(slotId);
117
+ }
118
+ for (const slotId in previousStyleStatesBySlot) {
119
+ if (currentStylesMap[slotId] !== undefined) {
120
+ continue;
121
+ }
122
+ if (shouldSlotInherit(slotId) && ancestorStylesMap[slotId] !== undefined) {
123
+ continue;
124
+ }
125
+ appendResolvedSlot(slotId);
126
+ }
127
+ return {
128
+ resolvedStylesMap,
129
+ nextPreviousStyleStatesBySlot
130
+ };
131
+ };
132
+ //# sourceMappingURL=resolve-slot-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["ALWAYS_RESET_STYLE_VALUES","IDENTITY_TRANSFORM","shouldSlotInherit","EMPTY_RESETTABLE_STYLE_STATE","Object","freeze","hasTransform","hasOpacity","hasZIndex","hasElevation","resolveSlotStyles","currentStylesMap","ancestorStylesMap","previousStyleStatesBySlot","resolvedStylesMap","nextPreviousStyleStatesBySlot","appendResolvedSlot","slotId","slot","undefined","baseStyle","style","hasAnyStyleKeys","key","previousState","shouldResetTransform","shouldResetOpacity","shouldResetZIndex","shouldResetElevation","hasResetPatch","hasProps","props","resolvedSlot","resolvedStyle","transform","opacity","zIndex","elevation"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles.ts"],"mappings":";;AAIA,SACCA,yBAAyB,EACzBC,kBAAkB,EAClBC,iBAAiB,QACX,cAAc;AAWrB,MAAMC,4BAA4B,GAAGC,MAAM,CAACC,MAAM,CAAC;EAClDC,YAAY,EAAE,KAAK;EACnBC,UAAU,EAAE,KAAK;EACjBC,SAAS,EAAE,KAAK;EAChBC,YAAY,EAAE;AACf,CAAC,CAAyB;AAE1B,OAAO,MAAMC,iBAAiB,GAAGA,CAAC;EACjCC,gBAAgB;EAChBC,iBAAiB;EACjBC;AAKD,CAAC,KAAK;EACL,SAAS;;EACT,MAAMC,iBAAwD,GAAG,CAAC,CAAC;EACnE,MAAMC,6BAA0D,GAAG,CAAC,CAAC;EAErE,MAAMC,kBAAkB,GAAIC,MAAc,IAAK;IAC9C,SAAS;;IAET,MAAMC,IAAI,GACTP,gBAAgB,CAACM,MAAM,CAAC,KACvBf,iBAAiB,CAACe,MAAM,CAAC,GAAGL,iBAAiB,CAACK,MAAM,CAAC,GAAGE,SAAS,CAAC;IAEpE,MAAMC,SAAS,GAAGF,IAAI,EAAEG,KAA4C;IAEpE,I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AK,MAAMA,MAAM,IAAIL,iBAAiB,EAAE;IACvC,IAAI,CAACV,iBAAiB,CAACe,MAAM,CAAC,EAAE;MAC/B;IACD;IAEA,IAAIN,gBAAgB,CAACM,MAAM,CAAC,KAAKE,SAAS,EAAE;MAC3C;IACD;IAEAH,kBAAkB,CAACC,MAAM,CAAC;EAC3B;EAEA,KAAK,MAAMA,MAAM,IAAIJ,yBAAyB,EAAE;IAC/C,IAAIF,gBAAgB,CAACM,MAAM,CAAC,KAAKE,SAAS,EAAE;MAC3C;IACD;IAEA,IAAIjB,iBAAiB,CAACe,MAAM,CAAC,IAAIL,iBAAiB,CAACK,MAAM,CAAC,KAAKE,SAAS,EAAE;MACzE;IACD;IAEAH,kBAAkB,CAACC,MAAM,CAAC;EAC3B;EAEA,OAAO;IACNH,iBAAiB;IACjBC;EACD,CAAC;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ import { useDerivedValue, useSharedValue } from "react-native-reanimated";
4
+ import { NO_STYLES } from "../../../../constants";
5
+ import { SystemStore } from "../../../../stores/system.store";
6
+ import { logger } from "../../../../utils/logger";
7
+ import { useScreenAnimationContext } from "../../animation";
8
+ import { useDescriptorDerivations } from "../../descriptors";
9
+ import { normalizeSlots } from "../helpers/normalize-slots";
10
+ export const useInterpolatedStylesMap = () => {
11
+ const {
12
+ currentScreenKey
13
+ } = useDescriptorDerivations();
14
+ const {
15
+ screenInterpolatorProps,
16
+ nextInterpolator,
17
+ currentInterpolator,
18
+ boundsAccessor
19
+ } = useScreenAnimationContext();
20
+ const pendingLifecycleStartBlockCount = SystemStore.getValue(currentScreenKey, "pendingLifecycleStartBlockCount");
21
+ const isGesturingDuringCloseAnimation = useSharedValue(false);
22
+ return useDerivedValue(() => {
23
+ "worklet";
24
+
25
+ if (pendingLifecycleStartBlockCount.get() > 0) {
26
+ return NO_STYLES;
27
+ }
28
+ const props = screenInterpolatorProps.get();
29
+ const {
30
+ current,
31
+ next,
32
+ progress
33
+ } = props;
34
+ const isDragging = current.gesture.dragging;
35
+ const isNextClosing = !!next?.closing;
36
+ if (isDragging && isNextClosing) {
37
+ isGesturingDuringCloseAnimation.set(true);
38
+ }
39
+ if (!isDragging && !isNextClosing) {
40
+ isGesturingDuringCloseAnimation.set(false);
41
+ }
42
+ const isInGestureMode = isDragging || isGesturingDuringCloseAnimation.get();
43
+ const interpolator = isInGestureMode ? currentInterpolator : nextInterpolator ?? currentInterpolator;
44
+ if (!interpolator) {
45
+ return NO_STYLES;
46
+ }
47
+ let effectiveProgress = progress;
48
+ let effectiveNext = next;
49
+ if (isInGestureMode) {
50
+ effectiveProgress = current.progress;
51
+ effectiveNext = undefined;
52
+ }
53
+ try {
54
+ const raw = interpolator({
55
+ ...props,
56
+ progress: effectiveProgress,
57
+ next: effectiveNext,
58
+ bounds: boundsAccessor
59
+ });
60
+ const stylesMap = typeof raw !== "object" || raw == null ? NO_STYLES : normalizeSlots(raw);
61
+ return stylesMap;
62
+ } catch (_) {
63
+ if (__DEV__) {
64
+ logger.warn("screenStyleInterpolator must be a worklet");
65
+ }
66
+ return NO_STYLES;
67
+ }
68
+ });
69
+ };
70
+ //# sourceMappingURL=use-interpolated-style-maps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useDerivedValue","useSharedValue","NO_STYLES","SystemStore","logger","useScreenAnimationContext","useDescriptorDerivations","normalizeSlots","useInterpolatedStylesMap","currentScreenKey","screenInterpolatorProps","nextInterpolator","currentInterpolator","boundsAccessor","pendingLifecycleStartBlockCount","getValue","isGesturingDuringCloseAnimation","get","props","current","next","progress","isDragging","gesture","dragging","isNextClosing","closing","set","isInGestureMode","interpolator","effectiveProgress","effectiveNext","undefined","raw","bounds","stylesMap","_","__DEV__","warn"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx"],"mappings":";;AAAA,SAASA,eAAe,EAAEC,cAAc,QAAQ,yBAAyB;AACzE,SAASC,SAAS,QAAQ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B,GAClBD,gBAAgB,IAAIC,mBAAoB;IAE5C,IAAI,CAACiB,YAAY,EAAE;MAClB,OAAO3B,SAAS;IACjB;IAEA,IAAI4B,iBAAiB,GAAGT,QAAQ;IAChC,IAAIU,aAAa,GAAGX,IAAI;IAExB,IAAIQ,eAAe,EAAE;MACpBE,iBAAiB,GAAGX,OAAO,CAACE,QAAQ;MACpCU,aAAa,GAAGC,SAAS;IAC1B;IAEA,IAAI;MACH,MAAMC,GAAG,GAAGJ,YAAY,CAAC;QACxB,GAAGX,KAAK;QACRG,QAAQ,EAAES,iBAAiB;QAC3BV,IAAI,EAAEW,aAAa;QACnBG,MAAM,EAAErB;MACT,CAAC,CAAC;MAEF,MAAMsB,SAAS,GACd,OAAOF,GAAG,KAAK,QAAQ,IAAIA,GAAG,IAAI,IAAI,GACnC/B,SAAS,GACTK,cAAc,CAAC0B,GAAG,CAAC;MAEvB,OAAOE,SAAS;IACjB,CAAC,CAAC,OAAOC,CAAC,EAAE;MACX,IAAIC,OAAO,EAAE;QACZjC,MAAM,CAACkC,IAAI,CAAC,2CAA2C,CAAC;MACzD;MAEA,OAAOpC,SAAS;IACjB;EACD,CAAC,CAAC;AACH,CAAC","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ import { useAnimatedProps, useAnimatedStyle, useDerivedValue } from "react-native-reanimated";
4
+ import { AnimationStore } from "../../../../stores/animation.store";
5
+ import { SystemStore } from "../../../../stores/system.store";
6
+ import { useDescriptorDerivations } from "../../descriptors";
7
+ export const useMaybeBlockVisibility = isFloatingOverlay => {
8
+ const {
9
+ currentScreenKey
10
+ } = useDescriptorDerivations();
11
+ const progress = AnimationStore.getValue(currentScreenKey, "progress");
12
+ const {
13
+ pendingLifecycleStartBlockCount
14
+ } = SystemStore.getBag(currentScreenKey);
15
+ const shouldBlockVisibility = useDerivedValue(() => {
16
+ "worklet";
17
+
18
+ if (isFloatingOverlay) {
19
+ return false;
20
+ }
21
+ const hasPendingLifecycleBlock = pendingLifecycleStartBlockCount.get() > 0;
22
+ const isWaitingForOpenToStart = progress.get() <= 0;
23
+ return hasPendingLifecycleBlock || isWaitingForOpenToStart;
24
+ });
25
+ const animatedStyle = useAnimatedStyle(() => {
26
+ "worklet";
27
+
28
+ return {
29
+ opacity: shouldBlockVisibility.get() ? 0 : 1
30
+ };
31
+ });
32
+ const animatedProps = useAnimatedProps(() => {
33
+ "worklet";
34
+
35
+ return {
36
+ pointerEvents: shouldBlockVisibility.get() ? "none" : "box-none"
37
+ };
38
+ });
39
+ return {
40
+ animatedStyle,
41
+ animatedProps
42
+ };
43
+ };
44
+ //# sourceMappingURL=use-maybe-block-visibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useAnimatedProps","useAnimatedStyle","useDerivedValue","AnimationStore","SystemStore","useDescriptorDerivations","useMaybeBlockVisibility","isFloatingOverlay","currentScreenKey","progress","getValue","pendingLifecycleStartBlockCount","getBag","shouldBlockVisibility","hasPendingLifecycleBlock","get","isWaitingForOpenToStart","animatedStyle","opacity","animatedProps","pointerEvents"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx"],"mappings":";;AAAA,SACCA,gBAAgB,EAChBC,gBAAgB,EAChBC,eAAe,QACT,yBAAyB;AAChC,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SAASC,WAAW,QAAQ,iCAAiC;AAC7D,SAASC,wBAAwB,QAAQ,mBAAmB;AAE5D,OAAO,MAAMC,uBAAuB,GAAIC,iBAA2B,IAAK;EACvE,MAAM;IAAEC;EAAiB,CAAC,GAAGH,wBAAwB,CAAC,CAAC;EACvD,MAAMI,QAAQ,GAAGN,cAAc,CAACO,QAAQ,CAACF,gBAAgB,EAAE,UAAU,CAAC;EAEtE,MAAM;IAAEG;EAAgC,CAAC,GACxCP,WAAW,CAACQ,MAAM,CAACJ,gBAAgB,CAAC;EAErC,MAAMK,qBAAqB,GAAGX,eAAe,CAAC,MAAM;IACnD,SAAS;;IAET,IAAIK,iBAAiB,EAAE;MACtB,OAAO,KAAK;IACb;IAEA,MAAMO,wBAAwB,GAAGH,+BAA+B,CAACI,GAAG,CAAC,CAAC,GAAG,CAAC;IAC1E,MAAMC,uBAAuB,GAAGP,QAAQ,CAACM,GAAG,CAAC,CAAC,IAAI,CAAC;IAEnD,OAAOD,wBAAwB,IAAIE,uBAAuB;EAC3D,CAAC,CAAC;EAEF,MAAMC,aAAa,GAAGhB,gBAAgB,CAAC,MAAM;IAC5C,SAAS;;IAET,OAAO;MACNiB,OAAO,EAAEL,qBAAqB,CAACE,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG;IAC5C,CAAC;EACF,CAAC,CAAC;EAEF,MAAMI,aAAa,GAAGnB,gBAAgB,CAAC,MAAM;IAC5C,SAAS;;IACT,OAAO;MACNoB,aAAa,EAAEP,qBAAqB,CAACE,GAAG,CAAC,CAAC,GACtC,MAAM,GACN;IACL,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IACNE,aAAa;IACbE;EACD,CAAC;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ import { useDerivedValue, useSharedValue } from "react-native-reanimated";
4
+ import { NO_STYLES } from "../../../../constants";
5
+ import { resolveSlotStyles } from "../helpers/resolve-slot-styles";
6
+ export const useResolvedStylesMap = ({
7
+ currentStylesMap,
8
+ ancestorStylesMap
9
+ }) => {
10
+ const previousStyleStatesBySlot = useSharedValue({});
11
+ return useDerivedValue(() => {
12
+ "worklet";
13
+
14
+ const {
15
+ resolvedStylesMap,
16
+ nextPreviousStyleStatesBySlot
17
+ } = resolveSlotStyles({
18
+ currentStylesMap: currentStylesMap.get(),
19
+ ancestorStylesMap: ancestorStylesMap?.get() ?? NO_STYLES,
20
+ previousStyleStatesBySlot: previousStyleStatesBySlot.get()
21
+ });
22
+ previousStyleStatesBySlot.set(nextPreviousStyleStatesBySlot);
23
+ return resolvedStylesMap;
24
+ });
25
+ };
26
+ //# sourceMappingURL=use-resolved-slot-style-map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useDerivedValue","useSharedValue","NO_STYLES","resolveSlotStyles","useResolvedStylesMap","currentStylesMap","ancestorStylesMap","previousStyleStatesBySlot","resolvedStylesMap","nextPreviousStyleStatesBySlot","get","set"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx"],"mappings":";;AAAA,SAECA,eAAe,EACfC,cAAc,QACR,yBAAyB;AAChC,SAASC,SAAS,QAAQ,uBAAuB;AAEjD,SAECC,iBAAiB,QACX,gCAAgC;AAOvC,OAAO,MAAMC,oBAAoB,GAAGA,CAAC;EACpCC,gBAAgB;EAChBC;AAC2B,CAAC,KAAK;EACjC,MAAMC,yBAAyB,GAAGN,cAAc,CAC/C,CAAC,CACF,CAAC;EAED,OAAOD,eAAe,CAAC,MAAM;IAC5B,SAAS;;IAET,MAAM;MAAEQ,iBAAiB;MAAEC;IAA8B,CAAC,GACzDN,iBAAiB,CAAC;MACjBE,gBAAgB,EAAEA,gBAAgB,CAACK,GAAG,CAAC,CAAC;MACxCJ,iBAAiB,EAAEA,iBAAiB,EAAEI,GAAG,CAAC,CAAC,IAAIR,SAAS;MACxDK,yBAAyB,EAAEA,yBAAyB,CAACG,GAAG,CAAC;IAC1D,CAAC,CAAC;IAEHH,yBAAyB,CAACI,GAAG,CAACF,6BAA6B,CAAC;IAE5D,OAAOD,iBAAiB;EACzB,CAAC,CAAC;AACH,CAAC","ignoreList":[]}