react-native-screen-transitions 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (514) hide show
  1. package/README.md +5 -2
  2. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +21 -32
  3. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  4. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +2 -2
  5. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  6. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +5 -5
  7. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  8. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js +27 -0
  9. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -0
  10. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +7 -2
  11. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  12. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +110 -0
  13. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -0
  14. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +40 -0
  15. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -0
  16. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +79 -0
  17. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -0
  18. package/lib/commonjs/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.js → use-refresh-boundary.js} +26 -27
  19. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -0
  20. package/lib/commonjs/shared/components/create-transition-aware-component.js +4 -13
  21. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  22. package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +1 -0
  23. package/lib/commonjs/shared/components/overlay/variations/float-overlay.js.map +1 -1
  24. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +7 -10
  25. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  26. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +3 -3
  27. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
  28. package/lib/commonjs/shared/components/screen-container/layers/content.js +4 -5
  29. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
  30. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +4 -3
  31. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  32. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +3 -3
  33. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
  34. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +28 -0
  35. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -0
  36. package/lib/commonjs/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.js.map +1 -0
  37. package/lib/commonjs/shared/components/screen-lifecycle/hooks/{use-screen-events.js → history/use-screen-history.js} +17 -11
  38. package/lib/commonjs/shared/components/screen-lifecycle/hooks/history/use-screen-history.js.map +1 -0
  39. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +140 -0
  40. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -0
  41. package/lib/commonjs/shared/components/screen-lifecycle/hooks/{use-open-transition.js → use-open-transition-intent.js} +14 -24
  42. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -0
  43. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +53 -0
  44. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -0
  45. package/lib/commonjs/shared/components/screen-lifecycle/index.js +17 -14
  46. package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -1
  47. package/lib/commonjs/shared/constants.js +6 -17
  48. package/lib/commonjs/shared/constants.js.map +1 -1
  49. package/lib/commonjs/shared/providers/register-bounds.provider.js +6 -9
  50. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  51. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js +26 -44
  52. package/lib/commonjs/shared/providers/screen/animation/animation.provider.js.map +1 -1
  53. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +19 -35
  54. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  55. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +64 -38
  56. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  57. package/lib/commonjs/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -1
  58. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -2
  59. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  60. package/lib/commonjs/shared/providers/screen/animation/types.js +4 -0
  61. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js +19 -5
  62. package/lib/commonjs/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  63. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -0
  64. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  65. package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js +29 -0
  66. package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -0
  67. package/lib/commonjs/shared/providers/screen/styles/constants.js +36 -0
  68. package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -0
  69. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +49 -0
  70. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -0
  71. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js +137 -0
  72. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +1 -0
  73. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +75 -0
  74. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -0
  75. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +49 -0
  76. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -0
  77. package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +31 -0
  78. package/lib/commonjs/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -0
  79. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +33 -107
  80. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
  81. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +13 -7
  82. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
  83. package/lib/commonjs/shared/stores/bounds/helpers/keys.js +10 -0
  84. package/lib/commonjs/shared/stores/bounds/helpers/keys.js.map +1 -1
  85. package/lib/commonjs/shared/stores/bounds/index.js +26 -25
  86. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
  87. package/lib/commonjs/shared/stores/bounds/internals/clear.js +13 -51
  88. package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
  89. package/lib/commonjs/shared/stores/bounds/internals/groups.js +27 -0
  90. package/lib/commonjs/shared/stores/bounds/internals/groups.js.map +1 -0
  91. package/lib/commonjs/shared/stores/bounds/internals/registry.js +210 -185
  92. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
  93. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +2 -6
  94. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  95. package/lib/commonjs/shared/stores/bounds/internals/state.js +2 -3
  96. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  97. package/lib/commonjs/shared/stores/system.store.js +44 -11
  98. package/lib/commonjs/shared/stores/system.store.js.map +1 -1
  99. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js +4 -0
  100. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
  101. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +6 -6
  102. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  103. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +9 -3
  104. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  105. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +5 -8
  106. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  107. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +2 -8
  108. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  109. package/lib/commonjs/shared/utils/bounds/index.js +7 -5
  110. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  111. package/lib/commonjs/shared/utils/bounds/zoom/build.js +44 -144
  112. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
  113. package/lib/commonjs/shared/utils/create-store.js +13 -4
  114. package/lib/commonjs/shared/utils/create-store.js.map +1 -1
  115. package/lib/commonjs/shared/utils/platform.js +1 -0
  116. package/lib/commonjs/shared/utils/platform.js.map +1 -1
  117. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +21 -32
  118. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  119. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +2 -2
  120. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  121. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +2 -2
  122. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  123. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js +21 -0
  124. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement.js.map +1 -0
  125. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +7 -2
  126. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  127. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +105 -0
  128. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -0
  129. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +35 -0
  130. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -0
  131. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +74 -0
  132. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -0
  133. package/lib/module/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.js → use-refresh-boundary.js} +24 -25
  134. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -0
  135. package/lib/module/shared/components/create-transition-aware-component.js +4 -13
  136. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  137. package/lib/module/shared/components/overlay/variations/float-overlay.js +1 -0
  138. package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
  139. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +8 -11
  140. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  141. package/lib/module/shared/components/screen-container/layers/backdrop.js +3 -3
  142. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  143. package/lib/module/shared/components/screen-container/layers/content.js +4 -5
  144. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  145. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +4 -3
  146. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  147. package/lib/module/shared/components/screen-container/layers/surface-container.js +3 -3
  148. package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
  149. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +24 -0
  150. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -0
  151. package/lib/module/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.js.map +1 -0
  152. package/lib/module/shared/components/screen-lifecycle/hooks/{use-screen-events.js → history/use-screen-history.js} +16 -10
  153. package/lib/module/shared/components/screen-lifecycle/hooks/history/use-screen-history.js.map +1 -0
  154. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js +134 -0
  155. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition-intent.js.map +1 -0
  156. package/lib/module/shared/components/screen-lifecycle/hooks/{use-open-transition.js → use-open-transition-intent.js} +13 -24
  157. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition-intent.js.map +1 -0
  158. package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js +48 -0
  159. package/lib/module/shared/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -0
  160. package/lib/module/shared/components/screen-lifecycle/index.js +18 -15
  161. package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
  162. package/lib/module/shared/constants.js +5 -16
  163. package/lib/module/shared/constants.js.map +1 -1
  164. package/lib/module/shared/providers/register-bounds.provider.js +6 -9
  165. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  166. package/lib/module/shared/providers/screen/animation/animation.provider.js +22 -43
  167. package/lib/module/shared/providers/screen/animation/animation.provider.js.map +1 -1
  168. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +19 -35
  169. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  170. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +65 -39
  171. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  172. package/lib/module/shared/providers/screen/animation/helpers/resolve-screen-animation-target.js.map +1 -1
  173. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -2
  174. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  175. package/lib/module/shared/providers/screen/animation/types.js +2 -0
  176. package/lib/module/shared/providers/screen/animation/use-screen-animation.js +19 -5
  177. package/lib/module/shared/providers/screen/animation/use-screen-animation.js.map +1 -1
  178. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -0
  179. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  180. package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js +25 -0
  181. package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -0
  182. package/lib/module/shared/providers/screen/styles/constants.js +31 -0
  183. package/lib/module/shared/providers/screen/styles/constants.js.map +1 -0
  184. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +45 -0
  185. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -0
  186. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js +132 -0
  187. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles.js.map +1 -0
  188. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +70 -0
  189. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -0
  190. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +44 -0
  191. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -0
  192. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js +26 -0
  193. package/lib/module/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.js.map +1 -0
  194. package/lib/module/shared/providers/screen/styles/styles.provider.js +34 -108
  195. package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
  196. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +13 -7
  197. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
  198. package/lib/module/shared/stores/bounds/helpers/keys.js +8 -0
  199. package/lib/module/shared/stores/bounds/helpers/keys.js.map +1 -1
  200. package/lib/module/shared/stores/bounds/index.js +27 -26
  201. package/lib/module/shared/stores/bounds/index.js.map +1 -1
  202. package/lib/module/shared/stores/bounds/internals/clear.js +14 -52
  203. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
  204. package/lib/module/shared/stores/bounds/internals/groups.js +23 -0
  205. package/lib/module/shared/stores/bounds/internals/groups.js.map +1 -0
  206. package/lib/module/shared/stores/bounds/internals/registry.js +204 -178
  207. package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
  208. package/lib/module/shared/stores/bounds/internals/resolver.js +2 -6
  209. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  210. package/lib/module/shared/stores/bounds/internals/state.js +1 -2
  211. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  212. package/lib/module/shared/stores/system.store.js +43 -10
  213. package/lib/module/shared/stores/system.store.js.map +1 -1
  214. package/lib/module/shared/types/animation.types.js.map +1 -1
  215. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js +4 -0
  216. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
  217. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +6 -6
  218. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  219. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +9 -3
  220. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  221. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +5 -8
  222. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  223. package/lib/module/shared/utils/bounds/helpers/styles/compute.js +3 -9
  224. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  225. package/lib/module/shared/utils/bounds/index.js +7 -5
  226. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  227. package/lib/module/shared/utils/bounds/zoom/build.js +46 -146
  228. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
  229. package/lib/module/shared/utils/create-store.js +13 -4
  230. package/lib/module/shared/utils/create-store.js.map +1 -1
  231. package/lib/module/shared/utils/platform.js +1 -0
  232. package/lib/module/shared/utils/platform.js.map +1 -1
  233. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts +4 -4
  234. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
  235. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
  236. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
  237. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +8 -8
  238. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
  239. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts +5 -0
  240. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement.d.ts.map +1 -0
  241. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
  242. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts +13 -0
  243. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +1 -0
  244. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts +10 -0
  245. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +1 -0
  246. package/lib/typescript/shared/components/create-boundary-component/hooks/{use-boundary-measure-and-store.d.ts → use-measurer.d.ts} +6 -4
  247. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -0
  248. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +14 -0
  249. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -0
  250. package/lib/typescript/shared/components/create-boundary-component/index.d.ts +2 -2
  251. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +6 -3
  252. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
  253. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  254. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +1 -1
  255. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
  256. package/lib/typescript/shared/components/scene-view.d.ts +1 -1
  257. package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
  258. package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -1
  259. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +2 -2
  260. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  261. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
  262. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
  263. package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts +2 -0
  264. package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -0
  265. package/lib/typescript/shared/components/screen-lifecycle/hooks/history/navigator-route-registry.d.ts.map +1 -0
  266. package/lib/typescript/shared/components/screen-lifecycle/hooks/history/use-screen-history.d.ts +7 -0
  267. package/lib/typescript/shared/components/screen-lifecycle/hooks/history/use-screen-history.d.ts.map +1 -0
  268. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts +11 -0
  269. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition-intent.d.ts.map +1 -0
  270. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition-intent.d.ts +8 -0
  271. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition-intent.d.ts.map +1 -0
  272. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts +11 -0
  273. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts.map +1 -0
  274. package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -1
  275. package/lib/typescript/shared/constants.d.ts +1 -14
  276. package/lib/typescript/shared/constants.d.ts.map +1 -1
  277. package/lib/typescript/shared/index.d.ts +4 -4
  278. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  279. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts +7 -8
  280. package/lib/typescript/shared/providers/screen/animation/animation.provider.d.ts.map +1 -1
  281. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +0 -8
  282. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
  283. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts +3 -3
  284. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  285. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts +4 -6
  286. package/lib/typescript/shared/providers/screen/animation/helpers/resolve-screen-animation-target.d.ts.map +1 -1
  287. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
  288. package/lib/typescript/shared/providers/screen/animation/types.d.ts +7 -0
  289. package/lib/typescript/shared/providers/screen/animation/types.d.ts.map +1 -1
  290. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts +1 -1
  291. package/lib/typescript/shared/providers/screen/animation/use-screen-animation.d.ts.map +1 -1
  292. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +1 -0
  293. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
  294. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts +7 -0
  295. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -0
  296. package/lib/typescript/shared/providers/screen/styles/constants.d.ts +23 -0
  297. package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -0
  298. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts +3 -0
  299. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -0
  300. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts +17 -0
  301. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles.d.ts.map +1 -0
  302. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +3 -0
  303. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -0
  304. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +9 -0
  305. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -0
  306. package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts +9 -0
  307. package/lib/typescript/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.d.ts.map +1 -0
  308. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts +2 -2
  309. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
  310. package/lib/typescript/shared/stores/animation.store.d.ts +1 -7
  311. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  312. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts +1 -1
  313. package/lib/typescript/shared/stores/bounds/helpers/apply-measured-bounds-writes.d.ts.map +1 -1
  314. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts +1 -0
  315. package/lib/typescript/shared/stores/bounds/helpers/keys.d.ts.map +1 -1
  316. package/lib/typescript/shared/stores/bounds/index.d.ts +28 -27
  317. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
  318. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
  319. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts +4 -0
  320. package/lib/typescript/shared/stores/bounds/internals/groups.d.ts.map +1 -0
  321. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts +12 -11
  322. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
  323. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  324. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +1 -2
  325. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  326. package/lib/typescript/shared/stores/bounds/types.d.ts +21 -19
  327. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  328. package/lib/typescript/shared/stores/gesture.store.d.ts +1 -7
  329. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  330. package/lib/typescript/shared/stores/system.store.d.ts +33 -8
  331. package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
  332. package/lib/typescript/shared/types/animation.types.d.ts +5 -25
  333. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  334. package/lib/typescript/shared/types/bounds.types.d.ts +7 -5
  335. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  336. package/lib/typescript/shared/types/screen.types.d.ts +20 -0
  337. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  338. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +6 -2
  339. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
  340. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -1
  341. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +3 -2
  342. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  343. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -1
  344. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  345. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
  346. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  347. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts +1 -1
  348. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
  349. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts +1 -1
  350. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +1 -1
  351. package/lib/typescript/shared/utils/create-store.d.ts +13 -8
  352. package/lib/typescript/shared/utils/create-store.d.ts.map +1 -1
  353. package/lib/typescript/shared/utils/platform.d.ts +0 -3
  354. package/lib/typescript/shared/utils/platform.d.ts.map +1 -1
  355. package/package.json +1 -1
  356. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +21 -39
  357. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +3 -6
  358. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +12 -12
  359. package/src/shared/components/create-boundary-component/hooks/helpers/measurement.ts +43 -0
  360. package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +3 -8
  361. package/src/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.ts +149 -0
  362. package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +42 -0
  363. package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +144 -0
  364. package/src/shared/components/create-boundary-component/hooks/{use-pre-transition-measurement.ts → use-refresh-boundary.ts} +35 -30
  365. package/src/shared/components/create-boundary-component/types.ts +7 -3
  366. package/src/shared/components/create-transition-aware-component.tsx +4 -13
  367. package/src/shared/components/overlay/variations/float-overlay.tsx +1 -1
  368. package/src/shared/components/screen-container/hooks/use-content-layout.ts +14 -11
  369. package/src/shared/components/screen-container/layers/backdrop.tsx +3 -3
  370. package/src/shared/components/screen-container/layers/content.tsx +4 -7
  371. package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +4 -5
  372. package/src/shared/components/screen-container/layers/surface-container.tsx +3 -3
  373. package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +29 -0
  374. package/src/shared/components/screen-lifecycle/hooks/{use-screen-events.ts → history/use-screen-history.ts} +25 -9
  375. package/src/shared/components/screen-lifecycle/hooks/use-close-transition-intent.ts +160 -0
  376. package/src/shared/components/screen-lifecycle/hooks/{use-open-transition.ts → use-open-transition-intent.ts} +19 -23
  377. package/src/shared/components/screen-lifecycle/hooks/use-transition-start-controller.ts +71 -0
  378. package/src/shared/components/screen-lifecycle/index.tsx +17 -17
  379. package/src/shared/constants.ts +3 -11
  380. package/src/shared/providers/register-bounds.provider.tsx +7 -12
  381. package/src/shared/providers/screen/animation/animation.provider.tsx +30 -68
  382. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +20 -33
  383. package/src/shared/providers/screen/animation/helpers/pipeline.ts +96 -69
  384. package/src/shared/providers/screen/animation/helpers/resolve-screen-animation-target.ts +5 -7
  385. package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +14 -2
  386. package/src/shared/providers/screen/animation/types.ts +9 -0
  387. package/src/shared/providers/screen/animation/use-screen-animation.tsx +25 -7
  388. package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +2 -0
  389. package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +29 -0
  390. package/src/shared/providers/screen/styles/constants.ts +34 -0
  391. package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +61 -0
  392. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles.ts +190 -0
  393. package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +85 -0
  394. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +51 -0
  395. package/src/shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx +40 -0
  396. package/src/shared/providers/screen/styles/styles.provider.tsx +42 -146
  397. package/src/shared/stores/bounds/helpers/apply-measured-bounds-writes.ts +15 -13
  398. package/src/shared/stores/bounds/helpers/keys.ts +8 -0
  399. package/src/shared/stores/bounds/index.ts +37 -44
  400. package/src/shared/stores/bounds/internals/clear.ts +22 -86
  401. package/src/shared/stores/bounds/internals/groups.ts +20 -0
  402. package/src/shared/stores/bounds/internals/registry.ts +280 -234
  403. package/src/shared/stores/bounds/internals/resolver.ts +1 -5
  404. package/src/shared/stores/bounds/internals/state.ts +2 -3
  405. package/src/shared/stores/bounds/types.ts +23 -21
  406. package/src/shared/stores/system.store.ts +77 -9
  407. package/src/shared/types/animation.types.ts +5 -25
  408. package/src/shared/types/bounds.types.ts +7 -8
  409. package/src/shared/types/screen.types.ts +21 -0
  410. package/src/shared/utils/bounds/helpers/create-bound-tag.ts +6 -2
  411. package/src/shared/utils/bounds/helpers/create-interpolators.ts +10 -7
  412. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +12 -5
  413. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +4 -7
  414. package/src/shared/utils/bounds/helpers/styles/compute.ts +2 -10
  415. package/src/shared/utils/bounds/index.ts +7 -6
  416. package/src/shared/utils/bounds/zoom/build.ts +53 -162
  417. package/src/shared/utils/bounds/zoom/types.ts +1 -1
  418. package/src/shared/utils/create-store.ts +39 -13
  419. package/src/shared/utils/platform.ts +2 -0
  420. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +0 -44
  421. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +0 -1
  422. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +0 -84
  423. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +0 -1
  424. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +0 -149
  425. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +0 -1
  426. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +0 -1
  427. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +0 -1
  428. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +0 -29
  429. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +0 -1
  430. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +0 -47
  431. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +0 -1
  432. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js +0 -158
  433. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +0 -1
  434. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js +0 -36
  435. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +0 -1
  436. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +0 -1
  437. package/lib/commonjs/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +0 -1
  438. package/lib/commonjs/shared/providers/screen/styles/helpers/build-resolved-style-map.js +0 -144
  439. package/lib/commonjs/shared/providers/screen/styles/helpers/build-resolved-style-map.js.map +0 -1
  440. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js +0 -28
  441. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js.map +0 -1
  442. package/lib/commonjs/shared/providers/screen/styles/helpers/split-normalized-style-maps.js +0 -39
  443. package/lib/commonjs/shared/providers/screen/styles/helpers/split-normalized-style-maps.js.map +0 -1
  444. package/lib/commonjs/shared/stores/bounds/internals/presence.js +0 -125
  445. package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +0 -1
  446. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +0 -39
  447. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +0 -1
  448. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +0 -78
  449. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +0 -1
  450. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +0 -145
  451. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +0 -1
  452. package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +0 -1
  453. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.js.map +0 -1
  454. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js +0 -24
  455. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.js.map +0 -1
  456. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js +0 -42
  457. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.js.map +0 -1
  458. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js +0 -153
  459. package/lib/module/shared/components/screen-lifecycle/hooks/use-close-transition/index.js.map +0 -1
  460. package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js +0 -30
  461. package/lib/module/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.js.map +0 -1
  462. package/lib/module/shared/components/screen-lifecycle/hooks/use-open-transition.js.map +0 -1
  463. package/lib/module/shared/components/screen-lifecycle/hooks/use-screen-events.js.map +0 -1
  464. package/lib/module/shared/providers/screen/styles/helpers/build-resolved-style-map.js +0 -139
  465. package/lib/module/shared/providers/screen/styles/helpers/build-resolved-style-map.js.map +0 -1
  466. package/lib/module/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js +0 -23
  467. package/lib/module/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js.map +0 -1
  468. package/lib/module/shared/providers/screen/styles/helpers/split-normalized-style-maps.js +0 -34
  469. package/lib/module/shared/providers/screen/styles/helpers/split-normalized-style-maps.js.map +0 -1
  470. package/lib/module/shared/stores/bounds/internals/presence.js +0 -115
  471. package/lib/module/shared/stores/bounds/internals/presence.js.map +0 -1
  472. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +0 -10
  473. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +0 -1
  474. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +0 -1
  475. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +0 -27
  476. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +0 -1
  477. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts +0 -12
  478. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts.map +0 -1
  479. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/navigator-route-registry.d.ts.map +0 -1
  480. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts +0 -2
  481. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.d.ts.map +0 -1
  482. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts +0 -2
  483. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.d.ts.map +0 -1
  484. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts +0 -8
  485. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-close-transition/index.d.ts.map +0 -1
  486. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts +0 -13
  487. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.d.ts.map +0 -1
  488. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts +0 -12
  489. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-open-transition.d.ts.map +0 -1
  490. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts +0 -7
  491. package/lib/typescript/shared/components/screen-lifecycle/hooks/use-screen-events.d.ts.map +0 -1
  492. package/lib/typescript/shared/providers/screen/styles/helpers/build-resolved-style-map.d.ts +0 -11
  493. package/lib/typescript/shared/providers/screen/styles/helpers/build-resolved-style-map.d.ts.map +0 -1
  494. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.d.ts +0 -7
  495. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.d.ts.map +0 -1
  496. package/lib/typescript/shared/providers/screen/styles/helpers/split-normalized-style-maps.d.ts +0 -6
  497. package/lib/typescript/shared/providers/screen/styles/helpers/split-normalized-style-maps.d.ts.map +0 -1
  498. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts +0 -12
  499. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +0 -1
  500. package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +0 -56
  501. package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +0 -154
  502. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +0 -223
  503. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/reset-stores-for-screen.ts +0 -29
  504. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/helpers/use-navigator-history-registry.ts +0 -58
  505. package/src/shared/components/screen-lifecycle/hooks/use-close-transition/index.ts +0 -183
  506. package/src/shared/components/screen-lifecycle/hooks/use-high-refresh-rate.ts +0 -34
  507. package/src/shared/providers/screen/styles/helpers/build-resolved-style-map.ts +0 -185
  508. package/src/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.ts +0 -31
  509. package/src/shared/providers/screen/styles/helpers/split-normalized-style-maps.ts +0 -44
  510. package/src/shared/stores/bounds/internals/presence.ts +0 -145
  511. /package/lib/commonjs/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.js +0 -0
  512. /package/lib/module/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.js +0 -0
  513. /package/lib/typescript/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.d.ts +0 -0
  514. /package/src/shared/components/screen-lifecycle/hooks/{use-close-transition/helpers → history}/navigator-route-registry.ts +0 -0
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.normalizeSlots = normalizeSlots;
7
+ const isExplicitTransitionSlot = value => {
8
+ "worklet";
9
+
10
+ return typeof value === "object" && value != null && ("style" in value || "props" in value);
11
+ };
12
+ const isAlreadyNormalizedStyleMap = raw => {
13
+ "worklet";
14
+
15
+ for (const key in raw) {
16
+ const value = raw[key];
17
+ if (value === undefined) {
18
+ continue;
19
+ }
20
+ if (!isExplicitTransitionSlot(value)) {
21
+ return false;
22
+ }
23
+ }
24
+ return true;
25
+ };
26
+ function normalizeSlots(raw) {
27
+ "worklet";
28
+
29
+ if (isAlreadyNormalizedStyleMap(raw)) {
30
+ return raw;
31
+ }
32
+ const normalized = {};
33
+ for (const key in raw) {
34
+ const value = raw[key];
35
+ if (value === undefined) {
36
+ normalized[key] = undefined;
37
+ continue;
38
+ }
39
+ if (isExplicitTransitionSlot(value)) {
40
+ normalized[key] = value;
41
+ } else {
42
+ normalized[key] = {
43
+ style: value
44
+ };
45
+ }
46
+ }
47
+ return normalized;
48
+ }
49
+ //# 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;AAEM,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,137 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.resolveSlotStyles = void 0;
7
+ var _constants = require("../constants");
8
+ const EMPTY_RESETTABLE_STYLE_STATE = Object.freeze({
9
+ hasTransform: false,
10
+ hasOpacity: false,
11
+ hasZIndex: false,
12
+ hasElevation: false
13
+ });
14
+ const resolveSlotStyles = ({
15
+ currentStylesMap,
16
+ ancestorStylesMap,
17
+ previousStyleStatesBySlot
18
+ }) => {
19
+ "worklet";
20
+
21
+ const resolvedStylesMap = {};
22
+ const nextPreviousStyleStatesBySlot = {};
23
+ const appendResolvedSlot = slotId => {
24
+ "worklet";
25
+
26
+ const slot = currentStylesMap[slotId] ?? ((0, _constants.shouldSlotInherit)(slotId) ? ancestorStylesMap[slotId] : undefined);
27
+ const baseStyle = slot?.style;
28
+ let hasAnyStyleKeys = false;
29
+ let hasTransform = false;
30
+ let hasOpacity = false;
31
+ let hasZIndex = false;
32
+ let hasElevation = false;
33
+ if (baseStyle) {
34
+ for (const key in baseStyle) {
35
+ hasAnyStyleKeys = true;
36
+ if (key === "transform") {
37
+ hasTransform = true;
38
+ continue;
39
+ }
40
+ if (key === "opacity") {
41
+ hasOpacity = true;
42
+ continue;
43
+ }
44
+ if (key === "zIndex") {
45
+ hasZIndex = true;
46
+ continue;
47
+ }
48
+ if (key === "elevation") {
49
+ hasElevation = true;
50
+ }
51
+ }
52
+ }
53
+ const previousState = previousStyleStatesBySlot[slotId] ?? EMPTY_RESETTABLE_STYLE_STATE;
54
+ const shouldResetTransform = previousState.hasTransform && !hasTransform;
55
+ const shouldResetOpacity = previousState.hasOpacity && !hasOpacity;
56
+ const shouldResetZIndex = previousState.hasZIndex && !hasZIndex;
57
+ const shouldResetElevation = previousState.hasElevation && !hasElevation;
58
+ const hasResetPatch = shouldResetTransform || shouldResetOpacity || shouldResetZIndex || shouldResetElevation;
59
+ const hasProps = slot?.props !== undefined;
60
+ if (hasTransform || hasOpacity || hasZIndex || hasElevation) {
61
+ nextPreviousStyleStatesBySlot[slotId] = {
62
+ hasTransform,
63
+ hasOpacity,
64
+ hasZIndex,
65
+ hasElevation
66
+ };
67
+ }
68
+ if (!slot && !hasResetPatch) {
69
+ return;
70
+ }
71
+ if (!hasResetPatch && slot) {
72
+ if (hasAnyStyleKeys || hasProps) {
73
+ resolvedStylesMap[slotId] = slot;
74
+ }
75
+ return;
76
+ }
77
+ if (!hasAnyStyleKeys && !hasResetPatch && !hasProps) {
78
+ return;
79
+ }
80
+ const resolvedSlot = {};
81
+ if (hasAnyStyleKeys || hasResetPatch) {
82
+ const resolvedStyle = {};
83
+ if (shouldResetTransform) {
84
+ resolvedStyle.transform = _constants.IDENTITY_TRANSFORM;
85
+ }
86
+ if (shouldResetOpacity) {
87
+ resolvedStyle.opacity = _constants.ALWAYS_RESET_STYLE_VALUES.opacity;
88
+ }
89
+ if (shouldResetZIndex) {
90
+ resolvedStyle.zIndex = _constants.ALWAYS_RESET_STYLE_VALUES.zIndex;
91
+ }
92
+ if (shouldResetElevation) {
93
+ resolvedStyle.elevation = _constants.ALWAYS_RESET_STYLE_VALUES.elevation;
94
+ }
95
+ if (baseStyle) {
96
+ for (const key in baseStyle) {
97
+ resolvedStyle[key] = baseStyle[key];
98
+ }
99
+ }
100
+ resolvedSlot.style = resolvedStyle;
101
+ }
102
+ if (hasProps) {
103
+ resolvedSlot.props = slot?.props;
104
+ }
105
+ if (!resolvedSlot.style && !resolvedSlot.props) {
106
+ return;
107
+ }
108
+ resolvedStylesMap[slotId] = resolvedSlot;
109
+ };
110
+ for (const slotId in currentStylesMap) {
111
+ appendResolvedSlot(slotId);
112
+ }
113
+ for (const slotId in ancestorStylesMap) {
114
+ if (!(0, _constants.shouldSlotInherit)(slotId)) {
115
+ continue;
116
+ }
117
+ if (currentStylesMap[slotId] !== undefined) {
118
+ continue;
119
+ }
120
+ appendResolvedSlot(slotId);
121
+ }
122
+ for (const slotId in previousStyleStatesBySlot) {
123
+ if (currentStylesMap[slotId] !== undefined) {
124
+ continue;
125
+ }
126
+ if ((0, _constants.shouldSlotInherit)(slotId) && ancestorStylesMap[slotId] !== undefined) {
127
+ continue;
128
+ }
129
+ appendResolvedSlot(slotId);
130
+ }
131
+ return {
132
+ resolvedStylesMap,
133
+ nextPreviousStyleStatesBySlot
134
+ };
135
+ };
136
+ exports.resolveSlotStyles = resolveSlotStyles;
137
+ //# sourceMappingURL=resolve-slot-styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_constants","require","EMPTY_RESETTABLE_STYLE_STATE","Object","freeze","hasTransform","hasOpacity","hasZIndex","hasElevation","resolveSlotStyles","currentStylesMap","ancestorStylesMap","previousStyleStatesBySlot","resolvedStylesMap","nextPreviousStyleStatesBySlot","appendResolvedSlot","slotId","slot","shouldSlotInherit","undefined","baseStyle","style","hasAnyStyleKeys","key","previousState","shouldResetTransform","shouldResetOpacity","shouldResetZIndex","shouldResetElevation","hasResetPatch","hasProps","props","resolvedSlot","resolvedStyle","transform","IDENTITY_TRANSFORM","opacity","ALWAYS_RESET_STYLE_VALUES","zIndex","elevation","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles.ts"],"mappings":";;;;;;AAIA,IAAAA,UAAA,GAAAC,OAAA;AAeA,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;AAEnB,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,KACvB,IA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AACG,MAAM,CAAC,GAAGgB,YAAY;EACzC,CAAC;EAED,KAAK,MAAMhB,MAAM,IAAIN,gBAAgB,EAAE;IACtCK,kBAAkB,CAACC,MAAM,CAAC;EAC3B;EAEA,KAAK,MAAMA,MAAM,IAAIL,iBAAiB,EAAE;IACvC,IAAI,CAAC,IAAAO,4BAAiB,EAACF,MAAM,CAAC,EAAE;MAC/B;IACD;IAEA,IAAIN,gBAAgB,CAACM,MAAM,CAAC,KAAKG,SAAS,EAAE;MAC3C;IACD;IAEAJ,kBAAkB,CAACC,MAAM,CAAC;EAC3B;EAEA,KAAK,MAAMA,MAAM,IAAIJ,yBAAyB,EAAE;IAC/C,IAAIF,gBAAgB,CAACM,MAAM,CAAC,KAAKG,SAAS,EAAE;MAC3C;IACD;IAEA,IAAI,IAAAD,4BAAiB,EAACF,MAAM,CAAC,IAAIL,iBAAiB,CAACK,MAAM,CAAC,KAAKG,SAAS,EAAE;MACzE;IACD;IAEAJ,kBAAkB,CAACC,MAAM,CAAC;EAC3B;EAEA,OAAO;IACNH,iBAAiB;IACjBC;EACD,CAAC;AACF,CAAC;AAAC0B,OAAA,CAAA/B,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useInterpolatedStylesMap = void 0;
7
+ var _reactNativeReanimated = require("react-native-reanimated");
8
+ var _constants = require("../../../../constants");
9
+ var _system = require("../../../../stores/system.store");
10
+ var _logger = require("../../../../utils/logger");
11
+ var _animation = require("../../animation");
12
+ var _descriptors = require("../../descriptors");
13
+ var _normalizeSlots = require("../helpers/normalize-slots");
14
+ const useInterpolatedStylesMap = () => {
15
+ const {
16
+ currentScreenKey
17
+ } = (0, _descriptors.useDescriptorDerivations)();
18
+ const {
19
+ screenInterpolatorProps,
20
+ nextInterpolator,
21
+ currentInterpolator,
22
+ boundsAccessor
23
+ } = (0, _animation.useScreenAnimationContext)();
24
+ const pendingLifecycleStartBlockCount = _system.SystemStore.getValue(currentScreenKey, "pendingLifecycleStartBlockCount");
25
+ const isGesturingDuringCloseAnimation = (0, _reactNativeReanimated.useSharedValue)(false);
26
+ return (0, _reactNativeReanimated.useDerivedValue)(() => {
27
+ "worklet";
28
+
29
+ if (pendingLifecycleStartBlockCount.get() > 0) {
30
+ return _constants.NO_STYLES;
31
+ }
32
+ const props = screenInterpolatorProps.get();
33
+ const {
34
+ current,
35
+ next,
36
+ progress
37
+ } = props;
38
+ const isDragging = current.gesture.dragging;
39
+ const isNextClosing = !!next?.closing;
40
+ if (isDragging && isNextClosing) {
41
+ isGesturingDuringCloseAnimation.set(true);
42
+ }
43
+ if (!isDragging && !isNextClosing) {
44
+ isGesturingDuringCloseAnimation.set(false);
45
+ }
46
+ const isInGestureMode = isDragging || isGesturingDuringCloseAnimation.get();
47
+ const interpolator = isInGestureMode ? currentInterpolator : nextInterpolator ?? currentInterpolator;
48
+ if (!interpolator) {
49
+ return _constants.NO_STYLES;
50
+ }
51
+ let effectiveProgress = progress;
52
+ let effectiveNext = next;
53
+ if (isInGestureMode) {
54
+ effectiveProgress = current.progress;
55
+ effectiveNext = undefined;
56
+ }
57
+ try {
58
+ const raw = interpolator({
59
+ ...props,
60
+ progress: effectiveProgress,
61
+ next: effectiveNext,
62
+ bounds: boundsAccessor
63
+ });
64
+ const stylesMap = typeof raw !== "object" || raw == null ? _constants.NO_STYLES : (0, _normalizeSlots.normalizeSlots)(raw);
65
+ return stylesMap;
66
+ } catch (_) {
67
+ if (__DEV__) {
68
+ _logger.logger.warn("screenStyleInterpolator must be a worklet");
69
+ }
70
+ return _constants.NO_STYLES;
71
+ }
72
+ });
73
+ };
74
+ exports.useInterpolatedStylesMap = useInterpolatedStylesMap;
75
+ //# sourceMappingURL=use-interpolated-style-maps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeReanimated","require","_constants","_system","_logger","_animation","_descriptors","_normalizeSlots","useInterpolatedStylesMap","currentScreenKey","useDescriptorDerivations","screenInterpolatorProps","nextInterpolator","currentInterpolator","boundsAccessor","useScreenAnimationContext","pendingLifecycleStartBlockCount","SystemStore","getValue","isGesturingDuringCloseAnimation","useSharedValue","useDerivedValue","get","NO_STYLES","props","current","next","progress","isDragging","gesture","dragging","isNextClosing","closing","set","isInGestureMode","interpolator","effectiveProgress","effectiveNext","undefined","raw","bounds","stylesMap","normalizeSlots","_","__DEV__","logger","warn","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,eAAA,GAAAN,OAAA;AAEO,MAAMO,wBAAwB,GAAGA,CAAA,KAAM;EAC7C,MAAM;IAAEC;EAAiB,CAAC,GAAG,IAAAC,qCAAwB,EAAC,CAAC;EACvD,MAAM;IACLC,uBAAuB;IACvBC,gBAAgB;IAChBC,mBAAmB;IACnBC;EACD,CAAC,GAAG,IAAAC,oCAAyB,EAAC,CAAC;EAE/B,MAAMC,+BAA+B,GAAGC,mBAAW,CAACC,QAAQ,CAC3DT,gBAAgB,EAChB,iCACD,CAAC;EAED,MAAMU,+BAA+B,GAAG,IAAAC,qCAAc,EAAC,KAAK,CAAC;EAE7D,OAAO,IAAAC,sCAAe,EAAwC,MAAM;IACnE,SAAS;;IACT,IAAIL,+BAA+B,CAACM,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE;MAC9C,OAAOC,oBAAS;IACjB;IAEA,MAAMC,KAAK,GAAGb,uBAAuB,CAACW,GAAG,CAAC,CAAC;IAC3C,MAAM;MAAEG,OAAO;MAAEC,IAAI;MAAEC;IAAS,CAAC,GAAGH,KAAK;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
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useMaybeBlockVisibility = void 0;
7
+ var _reactNativeReanimated = require("react-native-reanimated");
8
+ var _animation = require("../../../../stores/animation.store");
9
+ var _system = require("../../../../stores/system.store");
10
+ var _descriptors = require("../../descriptors");
11
+ const useMaybeBlockVisibility = isFloatingOverlay => {
12
+ const {
13
+ currentScreenKey
14
+ } = (0, _descriptors.useDescriptorDerivations)();
15
+ const progress = _animation.AnimationStore.getValue(currentScreenKey, "progress");
16
+ const {
17
+ pendingLifecycleStartBlockCount
18
+ } = _system.SystemStore.getBag(currentScreenKey);
19
+ const shouldBlockVisibility = (0, _reactNativeReanimated.useDerivedValue)(() => {
20
+ "worklet";
21
+
22
+ if (isFloatingOverlay) {
23
+ return false;
24
+ }
25
+ const hasPendingLifecycleBlock = pendingLifecycleStartBlockCount.get() > 0;
26
+ const isWaitingForOpenToStart = progress.get() <= 0;
27
+ return hasPendingLifecycleBlock || isWaitingForOpenToStart;
28
+ });
29
+ const animatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
30
+ "worklet";
31
+
32
+ return {
33
+ opacity: shouldBlockVisibility.get() ? 0 : 1
34
+ };
35
+ });
36
+ const animatedProps = (0, _reactNativeReanimated.useAnimatedProps)(() => {
37
+ "worklet";
38
+
39
+ return {
40
+ pointerEvents: shouldBlockVisibility.get() ? "none" : "box-none"
41
+ };
42
+ });
43
+ return {
44
+ animatedStyle,
45
+ animatedProps
46
+ };
47
+ };
48
+ exports.useMaybeBlockVisibility = useMaybeBlockVisibility;
49
+ //# sourceMappingURL=use-maybe-block-visibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeReanimated","require","_animation","_system","_descriptors","useMaybeBlockVisibility","isFloatingOverlay","currentScreenKey","useDescriptorDerivations","progress","AnimationStore","getValue","pendingLifecycleStartBlockCount","SystemStore","getBag","shouldBlockVisibility","useDerivedValue","hasPendingLifecycleBlock","get","isWaitingForOpenToStart","animatedStyle","useAnimatedStyle","opacity","animatedProps","useAnimatedProps","pointerEvents","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AAEO,MAAMI,uBAAuB,GAAIC,iBAA2B,IAAK;EACvE,MAAM;IAAEC;EAAiB,CAAC,GAAG,IAAAC,qCAAwB,EAAC,CAAC;EACvD,MAAMC,QAAQ,GAAGC,yBAAc,CAACC,QAAQ,CAACJ,gBAAgB,EAAE,UAAU,CAAC;EAEtE,MAAM;IAAEK;EAAgC,CAAC,GACxCC,mBAAW,CAACC,MAAM,CAACP,gBAAgB,CAAC;EAErC,MAAMQ,qBAAqB,GAAG,IAAAC,sCAAe,EAAC,MAAM;IACnD,SAAS;;IAET,IAAIV,iBAAiB,EAAE;MACtB,OAAO,KAAK;IACb;IAEA,MAAMW,wBAAwB,GAAGL,+BAA+B,CAACM,GAAG,CAAC,CAAC,GAAG,CAAC;IAC1E,MAAMC,uBAAuB,GAAGV,QAAQ,CAACS,GAAG,CAAC,CAAC,IAAI,CAAC;IAEnD,OAAOD,wBAAwB,IAAIE,uBAAuB;EAC3D,CAAC,CAAC;EAEF,MAAMC,aAAa,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAC5C,SAAS;;IAET,OAAO;MACNC,OAAO,EAAEP,qBAAqB,CAACG,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG;IAC5C,CAAC;EACF,CAAC,CAAC;EAEF,MAAMK,aAAa,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAC5C,SAAS;;IACT,OAAO;MACNC,aAAa,EAAEV,qBAAqB,CAACG,GAAG,CAAC,CAAC,GACtC,MAAM,GACN;IACL,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IACNE,aAAa;IACbG;EACD,CAAC;AACF,CAAC;AAACG,OAAA,CAAArB,uBAAA,GAAAA,uBAAA","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useResolvedStylesMap = void 0;
7
+ var _reactNativeReanimated = require("react-native-reanimated");
8
+ var _constants = require("../../../../constants");
9
+ var _resolveSlotStyles = require("../helpers/resolve-slot-styles");
10
+ const useResolvedStylesMap = ({
11
+ currentStylesMap,
12
+ ancestorStylesMap
13
+ }) => {
14
+ const previousStyleStatesBySlot = (0, _reactNativeReanimated.useSharedValue)({});
15
+ return (0, _reactNativeReanimated.useDerivedValue)(() => {
16
+ "worklet";
17
+
18
+ const {
19
+ resolvedStylesMap,
20
+ nextPreviousStyleStatesBySlot
21
+ } = (0, _resolveSlotStyles.resolveSlotStyles)({
22
+ currentStylesMap: currentStylesMap.get(),
23
+ ancestorStylesMap: ancestorStylesMap?.get() ?? _constants.NO_STYLES,
24
+ previousStyleStatesBySlot: previousStyleStatesBySlot.get()
25
+ });
26
+ previousStyleStatesBySlot.set(nextPreviousStyleStatesBySlot);
27
+ return resolvedStylesMap;
28
+ });
29
+ };
30
+ exports.useResolvedStylesMap = useResolvedStylesMap;
31
+ //# sourceMappingURL=use-resolved-slot-style-map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeReanimated","require","_constants","_resolveSlotStyles","useResolvedStylesMap","currentStylesMap","ancestorStylesMap","previousStyleStatesBySlot","useSharedValue","useDerivedValue","resolvedStylesMap","nextPreviousStyleStatesBySlot","resolveSlotStyles","get","NO_STYLES","set","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-resolved-slot-style-map.tsx"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,kBAAA,GAAAF,OAAA;AAUO,MAAMG,oBAAoB,GAAGA,CAAC;EACpCC,gBAAgB;EAChBC;AAC2B,CAAC,KAAK;EACjC,MAAMC,yBAAyB,GAAG,IAAAC,qCAAc,EAC/C,CAAC,CACF,CAAC;EAED,OAAO,IAAAC,sCAAe,EAAC,MAAM;IAC5B,SAAS;;IAET,MAAM;MAAEC,iBAAiB;MAAEC;IAA8B,CAAC,GACzD,IAAAC,oCAAiB,EAAC;MACjBP,gBAAgB,EAAEA,gBAAgB,CAACQ,GAAG,CAAC,CAAC;MACxCP,iBAAiB,EAAEA,iBAAiB,EAAEO,GAAG,CAAC,CAAC,IAAIC,oBAAS;MACxDP,yBAAyB,EAAEA,yBAAyB,CAACM,GAAG,CAAC;IAC1D,CAAC,CAAC;IAEHN,yBAAyB,CAACQ,GAAG,CAACJ,6BAA6B,CAAC;IAE5D,OAAOD,iBAAiB;EACzB,CAAC,CAAC;AACH,CAAC;AAACM,OAAA,CAAAZ,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useScreenStyles = exports.ScreenStylesProvider = exports.ScreenStylesContext = void 0;
7
7
  var _react = require("react");
8
- var _reactNativeReanimated = require("react-native-reanimated");
9
- var _constants = require("../../../constants");
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
10
10
  var _createProvider = _interopRequireDefault(require("../../../utils/create-provider"));
11
- var _logger = require("../../../utils/logger");
12
- var _animation = require("../animation");
13
- var _buildResolvedStyleMap = require("./helpers/build-resolved-style-map");
14
- var _resolveInterpolatedStyleOutput = require("./helpers/resolve-interpolated-style-output");
15
- var _splitNormalizedStyleMaps = require("./helpers/split-normalized-style-maps");
11
+ var _maybeFloatingContainer = require("./components/maybe-floating-container");
12
+ var _useInterpolatedStyleMaps = require("./hooks/use-interpolated-style-maps");
13
+ var _useMaybeBlockVisibility = require("./hooks/use-maybe-block-visibility");
14
+ var _useResolvedSlotStyleMap = require("./hooks/use-resolved-slot-style-map");
15
+ var _jsxRuntime = require("react/jsx-runtime");
16
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
17
17
  const {
18
18
  ScreenStylesProvider,
@@ -21,113 +21,39 @@ const {
21
21
  } = (0, _createProvider.default)("ScreenStyles", {
22
22
  guarded: true
23
23
  })(({
24
- children
24
+ children,
25
+ isFloatingOverlay
25
26
  }) => {
26
27
  const parentContext = (0, _react.useContext)(ScreenStylesContext);
27
- const {
28
- screenInterpolatorProps,
29
- nextInterpolator,
30
- currentInterpolator,
31
- boundsAccessor
32
- } = (0, _animation.useScreenAnimationContext)();
33
- const isGesturingDuringCloseAnimation = (0, _reactNativeReanimated.useSharedValue)(false);
34
- const hasWarnedLegacy = (0, _reactNativeReanimated.useSharedValue)(false);
35
- const previousElementStyleKeysBySlot = (0, _reactNativeReanimated.useSharedValue)({});
36
- const rawStyleResolution = (0, _reactNativeReanimated.useDerivedValue)(() => {
37
- "worklet";
38
-
39
- const props = screenInterpolatorProps.value;
40
- const {
41
- current,
42
- next,
43
- progress
44
- } = props;
45
- const isDragging = current.gesture.dragging;
46
- const isNextClosing = !!next?.closing;
47
- if (isDragging && isNextClosing) {
48
- isGesturingDuringCloseAnimation.value = true;
49
- }
50
- if (!isDragging && !isNextClosing) {
51
- isGesturingDuringCloseAnimation.value = false;
52
- }
53
- const isInGestureMode = isDragging || isGesturingDuringCloseAnimation.value;
54
- const interpolator = isInGestureMode ? currentInterpolator : nextInterpolator ?? currentInterpolator;
55
- if (!interpolator) {
56
- return {
57
- layerStylesMap: _constants.NO_STYLES,
58
- elementStylesMap: _constants.NO_STYLES
59
- };
60
- }
61
- let effectiveProgress = progress;
62
- let effectiveNext = next;
63
- if (isInGestureMode) {
64
- effectiveProgress = current.progress;
65
- effectiveNext = undefined;
66
- }
67
- try {
68
- const raw = interpolator({
69
- ...props,
70
- progress: effectiveProgress,
71
- next: effectiveNext,
72
- bounds: boundsAccessor
73
- });
74
- const {
75
- stylesMap,
76
- wasLegacy
77
- } = (0, _resolveInterpolatedStyleOutput.resolveInterpolatedStyleOutput)(raw);
78
- const {
79
- layerStylesMap,
80
- elementStylesMap
81
- } = (0, _splitNormalizedStyleMaps.splitNormalizedStyleMaps)(stylesMap);
82
- if (__DEV__ && wasLegacy && !hasWarnedLegacy.value) {
83
- hasWarnedLegacy.value = true;
84
- _logger.logger.warn("Flat interpolator return shape (contentStyle/backdropStyle) is deprecated. " + "Use the nested format instead: { content: { style }, backdrop: { style } }.");
85
- }
86
- return {
87
- layerStylesMap,
88
- elementStylesMap
89
- };
90
- } catch (err) {
91
- if (__DEV__) {
92
- console.warn("[react-native-screen-transitions] screenStyleInterpolator must be a worklet", err);
93
- }
94
- return {
95
- layerStylesMap: _constants.NO_STYLES,
96
- elementStylesMap: _constants.NO_STYLES
97
- };
98
- }
99
- });
100
- const layerStylesMap = (0, _reactNativeReanimated.useDerivedValue)(() => {
101
- "worklet";
102
-
103
- return rawStyleResolution.value.layerStylesMap;
28
+ const rawStylesMap = (0, _useInterpolatedStyleMaps.useInterpolatedStylesMap)();
29
+ const stylesMap = (0, _useResolvedSlotStyleMap.useResolvedStylesMap)({
30
+ currentStylesMap: rawStylesMap,
31
+ ancestorStylesMap: parentContext?.stylesMap
104
32
  });
105
- const elementStylesMap = (0, _reactNativeReanimated.useDerivedValue)(() => {
106
- "worklet";
107
-
108
- const {
109
- resolvedStylesMap,
110
- nextPreviousStyleKeysBySlot
111
- } = (0, _buildResolvedStyleMap.buildResolvedStyleMap)({
112
- currentStylesMap: rawStyleResolution.value.elementStylesMap,
113
- fallbackStylesMap: parentContext?.elementStylesMap.value ?? _constants.NO_STYLES,
114
- previousStyleKeysBySlot: previousElementStyleKeysBySlot.value
115
- });
116
- previousElementStyleKeysBySlot.value = nextPreviousStyleKeysBySlot;
117
- return resolvedStylesMap;
118
- });
119
- const value = (0, _react.useMemo)(() => {
120
- return {
121
- layerStylesMap,
122
- elementStylesMap
123
- };
124
- }, [elementStylesMap, layerStylesMap]);
33
+ const {
34
+ animatedStyle,
35
+ animatedProps
36
+ } = (0, _useMaybeBlockVisibility.useMaybeBlockVisibility)(isFloatingOverlay);
125
37
  return {
126
- value,
127
- children
38
+ value: {
39
+ stylesMap
40
+ },
41
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_maybeFloatingContainer.MaybeFloatingContainer, {
42
+ isFloatingOverlay: isFloatingOverlay,
43
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
44
+ style: [styles.container, animatedStyle],
45
+ animatedProps: animatedProps,
46
+ children: children
47
+ })
48
+ })
128
49
  };
129
50
  });
130
51
  exports.useScreenStyles = useScreenStyles;
131
52
  exports.ScreenStylesContext = ScreenStylesContext;
132
53
  exports.ScreenStylesProvider = ScreenStylesProvider;
54
+ const styles = _reactNative.StyleSheet.create({
55
+ container: {
56
+ flex: 1
57
+ }
58
+ });
133
59
  //# sourceMappingURL=styles.provider.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_constants","_createProvider","_interopRequireDefault","_logger","_animation","_buildResolvedStyleMap","_resolveInterpolatedStyleOutput","_splitNormalizedStyleMaps","e","__esModule","default","ScreenStylesProvider","ScreenStylesContext","useScreenStylesContext","useScreenStyles","createProvider","guarded","children","parentContext","useContext","screenInterpolatorProps","nextInterpolator","currentInterpolator","boundsAccessor","useScreenAnimationContext","isGesturingDuringCloseAnimation","useSharedValue","hasWarnedLegacy","previousElementStyleKeysBySlot","rawStyleResolution","useDerivedValue","props","value","current","next","progress","isDragging","gesture","dragging","isNextClosing","closing","isInGestureMode","interpolator","layerStylesMap","NO_STYLES","elementStylesMap","effectiveProgress","effectiveNext","undefined","raw","bounds","stylesMap","wasLegacy","resolveInterpolatedStyleOutput","splitNormalizedStyleMaps","__DEV__","logger","warn","err","console","resolvedStylesMap","nextPreviousStyleKeysBySlot","buildResolvedStyleMap","currentStylesMap","fallbackStylesMap","previousStyleKeysBySlot","useMemo","exports"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/styles.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAKA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,sBAAA,GAAAP,OAAA;AAIA,IAAAQ,+BAAA,GAAAR,OAAA;AACA,IAAAS,yBAAA,GAAAT,OAAA;AAAiF,SAAAI,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAW1E,MAAM;EACZG,oBAAoB;EACpBC,mBAAmB;EACnBC,sBAAsB,EAAEC;AACzB,CAAC,GAAG,IAAAC,uBAAc,EAAC,cAAc,EAAE;EAClCC,OAAO,EAAE;AACV,CAAC,CAAC,CACD,CAAC;EAAEC;AAAS,CAAC,KAA+D;EAC3E,MAAMC,aAAa,GAAG,IAAAC,iBAAU,EAACP,mBAAmB,CAAC;EAErD,MAAM;IACLQ,uBAAuB;IACvBC,gBAAgB;IAChBC,mBAAmB;IACnBC;EACD,CAAC,GAAG,IAAAC,oCAAyB,EAAC,CAAC;EAE/B,MAAMC,+BAA+B,GAAG,IAAAC,qCAAc,EAAC,KAAK,CAAC;EAC7D,MAAMC,eAAe,GAAG,IAAAD,qCAAc,EAAC,KAAK,CAAC;EAC7C,MAAME,8BAA8B,GAAG,IAAAF,qCAAc,EAEnD,CAAC,CAAC,CAAC;EAEL,MAAMG,kBAAkB,GAAG,IAAAC,sCAAe,EAGvC,MAAM;IACR,SAAS;;IACT,MAAMC,KAAK,GAAGX,uBAAuB,CAACY,KAAK;IAC3C,MAAM;MAAEC,OAAO;MAAEC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_reactNativeReanimated","_interopRequireDefault","_createProvider","_maybeFloatingContainer","_useInterpolatedStyleMaps","_useMaybeBlockVisibility","_useResolvedSlotStyleMap","_jsxRuntime","e","__esModule","default","ScreenStylesProvider","ScreenStylesContext","useScreenStylesContext","useScreenStyles","createProvider","guarded","children","isFloatingOverlay","parentContext","useContext","rawStylesMap","useInterpolatedStylesMap","stylesMap","useResolvedStylesMap","currentStylesMap","ancestorStylesMap","animatedStyle","animatedProps","useMaybeBlockVisibility","value","jsx","MaybeFloatingContainer","View","style","styles","container","exports","StyleSheet","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/styles.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AAEA,IAAAI,eAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,uBAAA,GAAAL,OAAA;AACA,IAAAM,yBAAA,GAAAN,OAAA;AACA,IAAAO,wBAAA,GAAAP,OAAA;AACA,IAAAQ,wBAAA,GAAAR,OAAA;AAA2E,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAG,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAWpE,MAAM;EACZG,oBAAoB;EACpBC,mBAAmB;EACnBC,sBAAsB,EAAEC;AACzB,CAAC,GAAG,IAAAC,uBAAc,EAAC,cAAc,EAAE;EAClCC,OAAO,EAAE;AACV,CAAC,CAAC,CAAkC,CAAC;EAAEC,QAAQ;EAAEC;AAAkB,CAAC,KAAK;EACxE,MAAMC,aAAa,GAAG,IAAAC,iBAAU,EAACR,mBAAmB,CAAC;EAErD,MAAMS,YAAY,GAAG,IAAAC,kDAAwB,EAAC,CAAC;EAE/C,MAAMC,SAAS,GAAG,IAAAC,6CAAoB,EAAC;IACtCC,gBAAgB,EAAEJ,YAAY;IAC9BK,iBAAiB,EAAEP,aAAa,EAAEI;EACnC,CAAC,CAAC;EAEF,MAAM;IAAEI,aAAa;IAAEC;EAAc,CAAC,GACrC,IAAAC,gDAAuB,EAACX,iBAAiB,CAAC;EAE3C,OAAO;IACNY,KAAK,EAAE;MACNP;IACD,CAAC;IACDN,QAAQ,eACP,IAAAV,WAAA,CAAAwB,GAAA,EAAC5B,uBAAA,CAAA6B,sBAAsB;MAACd,iBAAiB,EAAEA,iBAAkB;MAAAD,QAAA,eAC5D,IAAAV,WAAA,CAAAwB,GAAA,EAAC/B,sBAAA,CAAAU,OAAQ,CAACuB,IAAI;QACbC,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAET,aAAa,CAAE;QACzCC,aAAa,EAAEA,aAAc;QAAAX,QAAA,EAE5BA;MAAQ,CACK;IAAC,CACO;EAE1B,CAAC;AACF,CAAC,CAAC;AAACoB,OAAA,CAAAvB,eAAA,GAAAA,eAAA;AAAAuB,OAAA,CAAAzB,mBAAA,GAAAA,mBAAA;AAAAyB,OAAA,CAAA1B,oBAAA,GAAAA,oBAAA;AAEH,MAAMwB,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAChCH,SAAS,EAAE;IAAEI,IAAI,EAAE;EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
@@ -16,27 +16,33 @@ const applyMeasuredBoundsWrites = params => {
16
16
  ancestorKeys,
17
17
  navigatorKey,
18
18
  ancestorNavigatorKeys,
19
- shouldRegisterSnapshot,
19
+ shouldWriteEntry,
20
20
  shouldSetSource,
21
21
  shouldUpdateSource,
22
22
  shouldSetDestination,
23
23
  shouldUpdateDestination,
24
24
  expectedSourceScreenKey
25
25
  } = params;
26
- if (shouldRegisterSnapshot) {
27
- _.BoundStore.registerSnapshot(sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, navigatorKey, ancestorNavigatorKeys);
26
+ if (shouldWriteEntry) {
27
+ _.BoundStore.entry.set(sharedBoundTag, currentScreenKey, {
28
+ bounds: measured,
29
+ styles: preparedStyles,
30
+ ancestorKeys,
31
+ navigatorKey,
32
+ ancestorNavigatorKeys
33
+ });
28
34
  }
29
35
  if (shouldSetSource) {
30
- _.BoundStore.setLinkSource(sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, navigatorKey, ancestorNavigatorKeys);
36
+ _.BoundStore.link.setSource("capture", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, navigatorKey, ancestorNavigatorKeys);
31
37
  }
32
38
  if (shouldUpdateSource) {
33
- _.BoundStore.updateLinkSource(sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, navigatorKey, ancestorNavigatorKeys);
39
+ _.BoundStore.link.setSource("refresh", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, navigatorKey, ancestorNavigatorKeys);
34
40
  }
35
41
  if (shouldUpdateDestination) {
36
- _.BoundStore.updateLinkDestination(sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys);
42
+ _.BoundStore.link.setDestination("refresh", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys);
37
43
  }
38
44
  if (shouldSetDestination) {
39
- _.BoundStore.setLinkDestination(sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys);
45
+ _.BoundStore.link.setDestination("attach", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys);
40
46
  }
41
47
  };
42
48
  exports.applyMeasuredBoundsWrites = applyMeasuredBoundsWrites;
@@ -1 +1 @@
1
- {"version":3,"names":["_","require","applyMeasuredBoundsWrites","params","sharedBoundTag","currentScreenKey","measured","preparedStyles","ancestorKeys","navigatorKey","ancestorNavigatorKeys","shouldRegisterSnapshot","shouldSetSource","shouldUpdateSource","shouldSetDestination","shouldUpdateDestination","expectedSourceScreenKey","BoundStore","registerSnapshot","setLinkSource","updateLinkSource","updateLinkDestination","setLinkDestination","exports"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/apply-measured-bounds-writes.ts"],"mappings":";;;;;;AACA,IAAAA,CAAA,GAAAC,OAAA;AAkBO,MAAMC,yBAAyB,GACrCC,MAAuC,IACnC;EACJ,SAAS;;EACT,MAAM;IACLC,cAAc;IACdC,gBAAgB;IAChBC,QAAQ;IACRC,cAAc;IACdC,YAAY;IACZC,YAAY;IACZC,qBAAqB;IACrBC,sBAAsB;IACtBC,eAAe;IACfC,kBAAkB;IAClBC,oBAAoB;IACpBC,uBAAuB;IACvBC;EACD,CAAC,GAAGb,MAAM;EAEV,IAAIQ,sBAAsB,EAAE;IAC3BM,YAAU,CAACC,gBAAgB,CAC1Bd,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZC,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAIE,eAAe,EAAE;IACpBK,YAAU,CAACE,aAAa,CACvBf,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZC,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAIG,kBAAkB,EAAE;IACvBI,YAAU,CAACG,gBAAgB,CAC1BhB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZC,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAIK,uBAAuB,EAAE;IAC5BE,YAAU,CAACI,qBAAqB,CAC/BjB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZQ,uBAAuB,EACvBP,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAII,oBAAoB,EAAE;IACzBG,YAAU,CAACK,kBAAkB,CAC5BlB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZQ,uBAAuB,EACvBP,YAAY,EACZC,qBACD,CAAC;EACF;AACD,CAAC;AAACa,OAAA,CAAArB,yBAAA,GAAAA,yBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_","require","applyMeasuredBoundsWrites","params","sharedBoundTag","currentScreenKey","measured","preparedStyles","ancestorKeys","navigatorKey","ancestorNavigatorKeys","shouldWriteEntry","shouldSetSource","shouldUpdateSource","shouldSetDestination","shouldUpdateDestination","expectedSourceScreenKey","BoundStore","entry","set","bounds","styles","link","setSource","setDestination","exports"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/apply-measured-bounds-writes.ts"],"mappings":";;;;;;AACA,IAAAA,CAAA,GAAAC,OAAA;AAkBO,MAAMC,yBAAyB,GACrCC,MAAuC,IACnC;EACJ,SAAS;;EACT,MAAM;IACLC,cAAc;IACdC,gBAAgB;IAChBC,QAAQ;IACRC,cAAc;IACdC,YAAY;IACZC,YAAY;IACZC,qBAAqB;IACrBC,gBAAgB;IAChBC,eAAe;IACfC,kBAAkB;IAClBC,oBAAoB;IACpBC,uBAAuB;IACvBC;EACD,CAAC,GAAGb,MAAM;EAEV,IAAIQ,gBAAgB,EAAE;IACrBM,YAAU,CAACC,KAAK,CAACC,GAAG,CAACf,cAAc,EAAEC,gBAAgB,EAAE;MACtDe,MAAM,EAAEd,QAAQ;MAChBe,MAAM,EAAEd,cAAc;MACtBC,YAAY;MACZC,YAAY;MACZC;IACD,CAAC,CAAC;EACH;EAEA,IAAIE,eAAe,EAAE;IACpBK,YAAU,CAACK,IAAI,CAACC,SAAS,CACxB,SAAS,EACTnB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZC,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAIG,kBAAkB,EAAE;IACvBI,YAAU,CAACK,IAAI,CAACC,SAAS,CACxB,SAAS,EACTnB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZC,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAIK,uBAAuB,EAAE;IAC5BE,YAAU,CAACK,IAAI,CAACE,cAAc,CAC7B,SAAS,EACTpB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZQ,uBAAuB,EACvBP,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAII,oBAAoB,EAAE;IACzBG,YAAU,CAACK,IAAI,CAACE,cAAc,CAC7B,QAAQ,EACRpB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZQ,uBAAuB,EACvBP,YAAY,EACZC,qBACD,CAAC;EACF;AACD,CAAC;AAACe,OAAA,CAAAvB,yBAAA,GAAAA,yBAAA","ignoreList":[]}
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.collectIdentifierKeys = collectIdentifierKeys;
7
+ exports.hasAnyKeys = void 0;
7
8
  function collectIdentifierKeys(identifier) {
8
9
  "worklet";
9
10
 
@@ -20,4 +21,13 @@ function collectIdentifierKeys(identifier) {
20
21
  }
21
22
  return allKeys;
22
23
  }
24
+ const hasAnyKeys = record => {
25
+ "worklet";
26
+
27
+ for (const _key in record) {
28
+ return true;
29
+ }
30
+ return false;
31
+ };
32
+ exports.hasAnyKeys = hasAnyKeys;
23
33
  //# sourceMappingURL=keys.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["collectIdentifierKeys","identifier","allKeys","screenKey","ancestors","ancestorKeys","length","i","key","includes","push"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/keys.ts"],"mappings":";;;;;;AAEO,SAASA,qBAAqBA,CACpCC,UAA+C,EACjC;EACd,SAAS;;EACT,IAAI,CAACA,UAAU,EAAE,OAAO,EAAE;EAE1B,MAAMC,OAAoB,GAAG,CAACD,UAAU,CAACE,SAAS,CAAC;EACnD,MAAMC,SAAS,GAAGH,UAAU,CAACI,YAAY;EACzC,IAAID,SAAS,IAAIA,SAAS,CAACE,MAAM,GAAG,CAAC,EAAE;IACtC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,SAAS,CAACE,MAAM,EAAEC,CAAC,EAAE,EAAE;MAC1C,MAAMC,GAAG,GAAGJ,SAAS,CAACG,CAAC,CAAC;MACxB,IAAI,CAACL,OAAO,CAACO,QAAQ,CAACD,GAAG,CAAC,EAAE;QAC3BN,OAAO,CAACQ,IAAI,CAACF,GAAG,CAAC;MAClB;IACD;EACD;EAEA,OAAON,OAAO;AACf","ignoreList":[]}
1
+ {"version":3,"names":["collectIdentifierKeys","identifier","allKeys","screenKey","ancestors","ancestorKeys","length","i","key","includes","push","hasAnyKeys","record","_key","exports"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/keys.ts"],"mappings":";;;;;;;AAEO,SAASA,qBAAqBA,CACpCC,UAA+C,EACjC;EACd,SAAS;;EACT,IAAI,CAACA,UAAU,EAAE,OAAO,EAAE;EAE1B,MAAMC,OAAoB,GAAG,CAACD,UAAU,CAACE,SAAS,CAAC;EACnD,MAAMC,SAAS,GAAGH,UAAU,CAACI,YAAY;EACzC,IAAID,SAAS,IAAIA,SAAS,CAACE,MAAM,GAAG,CAAC,EAAE;IACtC,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGH,SAAS,CAACE,MAAM,EAAEC,CAAC,EAAE,EAAE;MAC1C,MAAMC,GAAG,GAAGJ,SAAS,CAACG,CAAC,CAAC;MACxB,IAAI,CAACL,OAAO,CAACO,QAAQ,CAACD,GAAG,CAAC,EAAE;QAC3BN,OAAO,CAACQ,IAAI,CAACF,GAAG,CAAC;MAClB;IACD;EACD;EAEA,OAAON,OAAO;AACf;AAEO,MAAMS,UAAU,GAAIC,MAA+B,IAAK;EAC9D,SAAS;;EACT,KAAK,MAAMC,IAAI,IAAID,MAAM,EAAE;IAC1B,OAAO,IAAI;EACZ;EACA,OAAO,KAAK;AACb,CAAC;AAACE,OAAA,CAAAH,UAAA,GAAAA,UAAA","ignoreList":[]}