react-native-screen-transitions 3.8.0 → 3.9.0-alpha.1

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 (528) hide show
  1. package/lib/commonjs/blank-stack/components/stack-view.js +2 -1
  2. package/lib/commonjs/blank-stack/components/stack-view.js.map +1 -1
  3. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/components/boundary-target.js +21 -8
  4. package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -0
  5. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/create-boundary-component.js +18 -24
  6. package/lib/commonjs/shared/components/boundary/create-boundary-component.js.map +1 -0
  7. package/lib/commonjs/shared/components/boundary/hooks/use-boundary-presence.js.map +1 -0
  8. package/lib/commonjs/shared/components/boundary/hooks/use-initial-destination-measurement.js +115 -0
  9. package/lib/commonjs/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +1 -0
  10. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.js +4 -5
  11. package/lib/commonjs/shared/components/boundary/hooks/use-initial-source-measurement.js.map +1 -0
  12. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.js +26 -22
  13. package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -0
  14. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-refresh-boundary.js +10 -7
  15. package/lib/commonjs/shared/components/boundary/hooks/use-refresh-boundary.js.map +1 -0
  16. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/index.js +8 -1
  17. package/lib/commonjs/shared/components/boundary/index.js.map +1 -0
  18. package/lib/commonjs/shared/components/boundary/portal/components/host.js +99 -0
  19. package/lib/commonjs/shared/components/boundary/portal/components/host.js.map +1 -0
  20. package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js +74 -0
  21. package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -0
  22. package/lib/commonjs/shared/components/boundary/portal/components/portal-provider.js +20 -0
  23. package/lib/commonjs/shared/components/boundary/portal/components/portal-provider.js.map +1 -0
  24. package/lib/commonjs/shared/components/boundary/portal/components/portal.js +198 -0
  25. package/lib/commonjs/shared/components/boundary/portal/components/portal.js.map +1 -0
  26. package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js +74 -0
  27. package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -0
  28. package/lib/commonjs/shared/components/boundary/portal/index.js +27 -0
  29. package/lib/commonjs/shared/components/boundary/portal/index.js.map +1 -0
  30. package/lib/commonjs/shared/components/boundary/portal/stores/host-bounds.store.js +47 -0
  31. package/lib/commonjs/shared/components/boundary/portal/stores/host-bounds.store.js.map +1 -0
  32. package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js +137 -0
  33. package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -0
  34. package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js +60 -0
  35. package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -0
  36. package/lib/commonjs/shared/components/boundary/portal/teleport.js +23 -0
  37. package/lib/commonjs/shared/components/boundary/portal/teleport.js.map +1 -0
  38. package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js +40 -0
  39. package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js.map +1 -0
  40. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js +15 -0
  41. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js.map +1 -0
  42. package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js +71 -0
  43. package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js.map +1 -0
  44. package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js +16 -0
  45. package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js.map +1 -0
  46. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/providers/boundary-owner.provider.js +26 -25
  47. package/lib/commonjs/shared/components/boundary/providers/boundary-owner.provider.js.map +1 -0
  48. package/lib/commonjs/shared/components/boundary/types.js.map +1 -0
  49. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +25 -0
  50. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +1 -0
  51. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/utils/measured-bounds.js +19 -9
  52. package/lib/commonjs/shared/components/boundary/utils/measured-bounds.js.map +1 -0
  53. package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js +105 -0
  54. package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js.map +1 -0
  55. package/lib/commonjs/shared/components/boundary/utils/source-signals.js +48 -0
  56. package/lib/commonjs/shared/components/boundary/utils/source-signals.js.map +1 -0
  57. package/lib/commonjs/shared/components/create-transition-aware-component.js +8 -3
  58. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  59. package/lib/commonjs/shared/components/{integrations/masked-view.js → masked-view.js} +2 -2
  60. package/lib/commonjs/shared/components/masked-view.js.map +1 -0
  61. package/lib/commonjs/shared/components/screen-container/layers/content.js +9 -5
  62. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
  63. package/lib/commonjs/shared/configs/presets.js +6 -6
  64. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  65. package/lib/commonjs/shared/hooks/navigation/use-stack.js +17 -2
  66. package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
  67. package/lib/commonjs/shared/index.js +4 -4
  68. package/lib/commonjs/shared/index.js.map +1 -1
  69. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +4 -2
  70. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
  71. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +4 -13
  72. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  73. package/lib/commonjs/shared/providers/screen/animation/helpers/stack-progress.js +23 -12
  74. package/lib/commonjs/shared/providers/screen/animation/helpers/stack-progress.js.map +1 -1
  75. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +1 -0
  76. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  77. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +7 -3
  78. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
  79. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +8 -1
  80. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  81. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +21 -6
  82. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -1
  83. package/lib/commonjs/shared/providers/screen/origin.provider.js +41 -0
  84. package/lib/commonjs/shared/providers/screen/origin.provider.js.map +1 -0
  85. package/lib/commonjs/shared/providers/screen/styles/constants.js +2 -0
  86. package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
  87. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js +58 -0
  88. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js.map +1 -0
  89. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +7 -0
  90. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
  91. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +2 -1
  92. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  93. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +7 -5
  94. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
  95. package/lib/commonjs/shared/stores/animation.store.js +2 -0
  96. package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
  97. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +1 -10
  98. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
  99. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
  100. package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
  101. package/lib/commonjs/shared/stores/bounds/internals/links.js +36 -19
  102. package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
  103. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +6 -4
  104. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  105. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  106. package/lib/commonjs/shared/stores/scroll.store.js +54 -1
  107. package/lib/commonjs/shared/stores/scroll.store.js.map +1 -1
  108. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js +38 -4
  109. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
  110. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +40 -87
  111. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  112. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +6 -67
  113. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  114. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +8 -12
  115. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  116. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js +235 -68
  117. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  118. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +74 -4
  119. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  120. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +5 -9
  121. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  122. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +5 -10
  123. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  124. package/lib/module/blank-stack/components/stack-view.js +3 -2
  125. package/lib/module/blank-stack/components/stack-view.js.map +1 -1
  126. package/lib/module/shared/components/{create-boundary-component → boundary}/components/boundary-target.js +21 -8
  127. package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -0
  128. package/lib/module/shared/components/{create-boundary-component → boundary}/create-boundary-component.js +20 -26
  129. package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -0
  130. package/lib/module/shared/components/boundary/hooks/use-boundary-presence.js.map +1 -0
  131. package/lib/module/shared/components/boundary/hooks/use-initial-destination-measurement.js +110 -0
  132. package/lib/module/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +1 -0
  133. package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.js +4 -5
  134. package/lib/module/shared/components/boundary/hooks/use-initial-source-measurement.js.map +1 -0
  135. package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.js +27 -23
  136. package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -0
  137. package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-refresh-boundary.js +10 -7
  138. package/lib/module/shared/components/boundary/hooks/use-refresh-boundary.js.map +1 -0
  139. package/lib/module/shared/components/{create-boundary-component → boundary}/index.js +8 -1
  140. package/lib/module/shared/components/boundary/index.js.map +1 -0
  141. package/lib/module/shared/components/boundary/portal/components/host.js +94 -0
  142. package/lib/module/shared/components/boundary/portal/components/host.js.map +1 -0
  143. package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js +69 -0
  144. package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -0
  145. package/lib/module/shared/components/boundary/portal/components/portal-provider.js +16 -0
  146. package/lib/module/shared/components/boundary/portal/components/portal-provider.js.map +1 -0
  147. package/lib/module/shared/components/boundary/portal/components/portal.js +193 -0
  148. package/lib/module/shared/components/boundary/portal/components/portal.js.map +1 -0
  149. package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js +69 -0
  150. package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -0
  151. package/lib/module/shared/components/boundary/portal/index.js +6 -0
  152. package/lib/module/shared/components/boundary/portal/index.js.map +1 -0
  153. package/lib/module/shared/components/boundary/portal/stores/host-bounds.store.js +40 -0
  154. package/lib/module/shared/components/boundary/portal/stores/host-bounds.store.js.map +1 -0
  155. package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js +126 -0
  156. package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -0
  157. package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js +53 -0
  158. package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -0
  159. package/lib/module/shared/components/boundary/portal/teleport.js +19 -0
  160. package/lib/module/shared/components/boundary/portal/teleport.js.map +1 -0
  161. package/lib/module/shared/components/boundary/portal/utils/attachment.js +35 -0
  162. package/lib/module/shared/components/boundary/portal/utils/attachment.js.map +1 -0
  163. package/lib/module/shared/components/boundary/portal/utils/naming.js +10 -0
  164. package/lib/module/shared/components/boundary/portal/utils/naming.js.map +1 -0
  165. package/lib/module/shared/components/boundary/portal/utils/offset-style.js +66 -0
  166. package/lib/module/shared/components/boundary/portal/utils/offset-style.js.map +1 -0
  167. package/lib/module/shared/components/boundary/portal/utils/teleport-control.js +11 -0
  168. package/lib/module/shared/components/boundary/portal/utils/teleport-control.js.map +1 -0
  169. package/lib/module/shared/components/boundary/providers/boundary-owner.provider.js +60 -0
  170. package/lib/module/shared/components/boundary/providers/boundary-owner.provider.js.map +1 -0
  171. package/lib/module/shared/components/boundary/types.js.map +1 -0
  172. package/lib/module/shared/components/boundary/utils/destination-signals.js +20 -0
  173. package/lib/module/shared/components/boundary/utils/destination-signals.js.map +1 -0
  174. package/lib/module/shared/components/{create-boundary-component → boundary}/utils/measured-bounds.js +16 -7
  175. package/lib/module/shared/components/boundary/utils/measured-bounds.js.map +1 -0
  176. package/lib/module/shared/components/boundary/utils/refresh-signals.js +100 -0
  177. package/lib/module/shared/components/boundary/utils/refresh-signals.js.map +1 -0
  178. package/lib/module/shared/components/boundary/utils/source-signals.js +43 -0
  179. package/lib/module/shared/components/boundary/utils/source-signals.js.map +1 -0
  180. package/lib/module/shared/components/create-transition-aware-component.js +8 -3
  181. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  182. package/lib/module/shared/components/{integrations/masked-view.js → masked-view.js} +2 -2
  183. package/lib/module/shared/components/masked-view.js.map +1 -0
  184. package/lib/module/shared/components/screen-container/layers/content.js +10 -6
  185. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  186. package/lib/module/shared/configs/presets.js +6 -6
  187. package/lib/module/shared/configs/presets.js.map +1 -1
  188. package/lib/module/shared/hooks/navigation/use-stack.js +19 -4
  189. package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
  190. package/lib/module/shared/index.js +2 -2
  191. package/lib/module/shared/index.js.map +1 -1
  192. package/lib/module/shared/providers/helpers/measured-bounds-writes.js +4 -2
  193. package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
  194. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +5 -14
  195. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  196. package/lib/module/shared/providers/screen/animation/helpers/stack-progress.js +20 -10
  197. package/lib/module/shared/providers/screen/animation/helpers/stack-progress.js.map +1 -1
  198. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +1 -0
  199. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  200. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +8 -4
  201. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
  202. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +8 -1
  203. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  204. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +20 -6
  205. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -1
  206. package/lib/module/shared/providers/screen/origin.provider.js +33 -0
  207. package/lib/module/shared/providers/screen/origin.provider.js.map +1 -0
  208. package/lib/module/shared/providers/screen/styles/constants.js +2 -0
  209. package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
  210. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js +53 -0
  211. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js.map +1 -0
  212. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +1 -0
  213. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
  214. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +2 -1
  215. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  216. package/lib/module/shared/providers/screen/styles/styles.provider.js +7 -5
  217. package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
  218. package/lib/module/shared/stores/animation.store.js +2 -0
  219. package/lib/module/shared/stores/animation.store.js.map +1 -1
  220. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +1 -8
  221. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
  222. package/lib/module/shared/stores/bounds/index.js.map +1 -1
  223. package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
  224. package/lib/module/shared/stores/bounds/internals/links.js +36 -19
  225. package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
  226. package/lib/module/shared/stores/bounds/internals/resolver.js +6 -4
  227. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  228. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  229. package/lib/module/shared/stores/scroll.store.js +50 -0
  230. package/lib/module/shared/stores/scroll.store.js.map +1 -1
  231. package/lib/module/shared/types/animation.types.js.map +1 -1
  232. package/lib/module/shared/types/bounds.types.js.map +1 -1
  233. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js +36 -3
  234. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
  235. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +42 -89
  236. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  237. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +6 -67
  238. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  239. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +8 -13
  240. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  241. package/lib/module/shared/utils/bounds/helpers/styles/composers.js +236 -69
  242. package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  243. package/lib/module/shared/utils/bounds/helpers/styles/compute.js +74 -4
  244. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  245. package/lib/module/shared/utils/bounds/navigation/reveal/build.js +5 -9
  246. package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  247. package/lib/module/shared/utils/bounds/navigation/zoom/build.js +5 -10
  248. package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  249. package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
  250. package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -0
  251. package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts.map +1 -0
  252. package/lib/typescript/shared/components/boundary/hooks/use-boundary-presence.d.ts.map +1 -0
  253. package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-initial-destination-measurement.d.ts +1 -4
  254. package/lib/typescript/shared/components/boundary/hooks/use-initial-destination-measurement.d.ts.map +1 -0
  255. package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.d.ts +0 -2
  256. package/lib/typescript/shared/components/boundary/hooks/use-initial-source-measurement.d.ts.map +1 -0
  257. package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.d.ts +4 -2
  258. package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -0
  259. package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts +10 -0
  260. package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts.map +1 -0
  261. package/lib/typescript/shared/components/{create-boundary-component → boundary}/index.d.ts +8 -2
  262. package/lib/typescript/shared/components/boundary/index.d.ts.map +1 -0
  263. package/lib/typescript/shared/components/boundary/portal/components/host.d.ts +7 -0
  264. package/lib/typescript/shared/components/boundary/portal/components/host.d.ts.map +1 -0
  265. package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts +9 -0
  266. package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map +1 -0
  267. package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts +4 -0
  268. package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts.map +1 -0
  269. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts +19 -0
  270. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts.map +1 -0
  271. package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts +13 -0
  272. package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts.map +1 -0
  273. package/lib/typescript/shared/components/boundary/portal/index.d.ts +4 -0
  274. package/lib/typescript/shared/components/boundary/portal/index.d.ts.map +1 -0
  275. package/lib/typescript/shared/components/boundary/portal/stores/host-bounds.store.d.ts +9 -0
  276. package/lib/typescript/shared/components/boundary/portal/stores/host-bounds.store.d.ts.map +1 -0
  277. package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts +19 -0
  278. package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts.map +1 -0
  279. package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts +11 -0
  280. package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +1 -0
  281. package/lib/typescript/shared/components/boundary/portal/teleport.d.ts +6 -0
  282. package/lib/typescript/shared/components/boundary/portal/teleport.d.ts.map +1 -0
  283. package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts +21 -0
  284. package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts.map +1 -0
  285. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts +3 -0
  286. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts.map +1 -0
  287. package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts +37 -0
  288. package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts.map +1 -0
  289. package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts +3 -0
  290. package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts.map +1 -0
  291. package/lib/typescript/shared/components/{create-boundary-component → boundary}/providers/boundary-owner.provider.d.ts +14 -6
  292. package/lib/typescript/shared/components/boundary/providers/boundary-owner.provider.d.ts.map +1 -0
  293. package/lib/typescript/shared/components/boundary/types.d.ts +78 -0
  294. package/lib/typescript/shared/components/boundary/types.d.ts.map +1 -0
  295. package/lib/typescript/shared/components/{create-boundary-component → boundary}/utils/destination-signals.d.ts +2 -3
  296. package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +1 -0
  297. package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts +12 -0
  298. package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts.map +1 -0
  299. package/lib/typescript/shared/components/{create-boundary-component → boundary}/utils/refresh-signals.d.ts +4 -3
  300. package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts.map +1 -0
  301. package/lib/typescript/shared/components/{create-boundary-component → boundary}/utils/source-signals.d.ts +1 -2
  302. package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts.map +1 -0
  303. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  304. package/lib/typescript/shared/components/masked-view.d.ts.map +1 -0
  305. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
  306. package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
  307. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
  308. package/lib/typescript/shared/index.d.ts +19 -17
  309. package/lib/typescript/shared/index.d.ts.map +1 -1
  310. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts +3 -1
  311. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
  312. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts +1 -0
  313. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts.map +1 -1
  314. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  315. package/lib/typescript/shared/providers/screen/animation/helpers/stack-progress.d.ts +2 -1
  316. package/lib/typescript/shared/providers/screen/animation/helpers/stack-progress.d.ts.map +1 -1
  317. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +1 -0
  318. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
  319. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
  320. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +6 -1
  321. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
  322. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts +9 -3
  323. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts.map +1 -1
  324. package/lib/typescript/shared/providers/screen/origin.provider.d.ts +11 -0
  325. package/lib/typescript/shared/providers/screen/origin.provider.d.ts.map +1 -0
  326. package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
  327. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.d.ts +3 -0
  328. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.d.ts.map +1 -0
  329. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +1 -0
  330. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -1
  331. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +1 -0
  332. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
  333. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts +1 -0
  334. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
  335. package/lib/typescript/shared/stores/animation.store.d.ts +1 -0
  336. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  337. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +1 -3
  338. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -1
  339. package/lib/typescript/shared/stores/bounds/index.d.ts +1 -1
  340. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
  341. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts +2 -2
  342. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
  343. package/lib/typescript/shared/stores/bounds/internals/links.d.ts +2 -2
  344. package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
  345. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  346. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +4 -2
  347. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  348. package/lib/typescript/shared/stores/bounds/types.d.ts +47 -12
  349. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  350. package/lib/typescript/shared/stores/scroll.store.d.ts +12 -1
  351. package/lib/typescript/shared/stores/scroll.store.d.ts.map +1 -1
  352. package/lib/typescript/shared/types/animation.types.d.ts +13 -2
  353. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  354. package/lib/typescript/shared/types/bounds.types.d.ts +10 -40
  355. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  356. package/lib/typescript/shared/types/index.d.ts +2 -2
  357. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  358. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +2 -1
  359. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
  360. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts +7 -11
  361. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
  362. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +0 -3
  363. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  364. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +7 -3
  365. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  366. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts +3 -0
  367. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -1
  368. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts +1 -1
  369. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
  370. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -1
  371. package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
  372. package/lib/typescript/shared/utils/bounds/types/options.d.ts +93 -6
  373. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  374. package/package.json +8 -2
  375. package/src/blank-stack/components/stack-view.tsx +4 -3
  376. package/src/shared/components/{create-boundary-component → boundary}/components/boundary-target.tsx +28 -11
  377. package/src/shared/components/{create-boundary-component → boundary}/create-boundary-component.tsx +33 -31
  378. package/src/shared/components/boundary/hooks/use-initial-destination-measurement.ts +156 -0
  379. package/src/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.ts +5 -14
  380. package/src/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.ts +42 -46
  381. package/src/shared/components/{create-boundary-component → boundary}/hooks/use-refresh-boundary.ts +16 -11
  382. package/src/shared/components/{create-boundary-component → boundary}/index.tsx +12 -0
  383. package/src/shared/components/boundary/portal/components/host.tsx +114 -0
  384. package/src/shared/components/boundary/portal/components/portal-boundary-host.tsx +97 -0
  385. package/src/shared/components/boundary/portal/components/portal-provider.tsx +14 -0
  386. package/src/shared/components/boundary/portal/components/portal.tsx +283 -0
  387. package/src/shared/components/boundary/portal/hooks/use-host-measurement.ts +102 -0
  388. package/src/shared/components/boundary/portal/index.ts +3 -0
  389. package/src/shared/components/boundary/portal/stores/host-bounds.store.ts +45 -0
  390. package/src/shared/components/boundary/portal/stores/host-registry.store.ts +182 -0
  391. package/src/shared/components/boundary/portal/stores/portal-boundary-host.store.ts +91 -0
  392. package/src/shared/components/boundary/portal/teleport.ts +21 -0
  393. package/src/shared/components/boundary/portal/utils/attachment.ts +48 -0
  394. package/src/shared/components/boundary/portal/utils/naming.ts +10 -0
  395. package/src/shared/components/boundary/portal/utils/offset-style.ts +171 -0
  396. package/src/shared/components/boundary/portal/utils/teleport-control.ts +13 -0
  397. package/src/shared/components/{create-boundary-component → boundary}/providers/boundary-owner.provider.tsx +41 -33
  398. package/src/shared/components/boundary/types.ts +92 -0
  399. package/src/shared/components/boundary/utils/destination-signals.ts +31 -0
  400. package/src/shared/components/{create-boundary-component → boundary}/utils/measured-bounds.ts +34 -11
  401. package/src/shared/components/boundary/utils/refresh-signals.ts +175 -0
  402. package/src/shared/components/boundary/utils/source-signals.ts +63 -0
  403. package/src/shared/components/create-transition-aware-component.tsx +8 -3
  404. package/src/shared/components/{integrations/masked-view.tsx → masked-view.tsx} +2 -2
  405. package/src/shared/components/screen-container/layers/content.tsx +12 -7
  406. package/src/shared/configs/presets.ts +2 -6
  407. package/src/shared/hooks/navigation/use-stack.tsx +32 -1
  408. package/src/shared/index.ts +13 -5
  409. package/src/shared/providers/helpers/measured-bounds-writes.ts +11 -1
  410. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/types.ts +1 -0
  411. package/src/shared/providers/screen/animation/helpers/pipeline.ts +13 -19
  412. package/src/shared/providers/screen/animation/helpers/stack-progress.ts +31 -16
  413. package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +2 -0
  414. package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +7 -3
  415. package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +16 -0
  416. package/src/shared/providers/screen/descriptors/helpers/get-ancestor-keys.ts +31 -6
  417. package/src/shared/providers/screen/origin.provider.tsx +38 -0
  418. package/src/shared/providers/screen/styles/constants.ts +2 -0
  419. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.ts +74 -0
  420. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +1 -0
  421. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +1 -0
  422. package/src/shared/providers/screen/styles/styles.provider.tsx +5 -3
  423. package/src/shared/stores/animation.store.ts +3 -0
  424. package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +1 -10
  425. package/src/shared/stores/bounds/index.ts +2 -4
  426. package/src/shared/stores/bounds/internals/entries.ts +4 -4
  427. package/src/shared/stores/bounds/internals/links.ts +52 -18
  428. package/src/shared/stores/bounds/internals/resolver.ts +5 -3
  429. package/src/shared/stores/bounds/internals/state.ts +5 -2
  430. package/src/shared/stores/bounds/types.ts +59 -15
  431. package/src/shared/stores/scroll.store.ts +68 -0
  432. package/src/shared/types/animation.types.ts +17 -2
  433. package/src/shared/types/bounds.types.ts +22 -60
  434. package/src/shared/types/index.ts +5 -0
  435. package/src/shared/utils/bounds/helpers/create-bound-tag.ts +46 -4
  436. package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +65 -116
  437. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +10 -80
  438. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +10 -13
  439. package/src/shared/utils/bounds/helpers/styles/composers.ts +269 -46
  440. package/src/shared/utils/bounds/helpers/styles/compute.ts +134 -2
  441. package/src/shared/utils/bounds/navigation/reveal/build.ts +5 -7
  442. package/src/shared/utils/bounds/navigation/zoom/build.ts +5 -8
  443. package/src/shared/utils/bounds/types/options.ts +105 -6
  444. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +0 -1
  445. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +0 -1
  446. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +0 -1
  447. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +0 -99
  448. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +0 -1
  449. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +0 -1
  450. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +0 -1
  451. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +0 -1
  452. package/lib/commonjs/shared/components/create-boundary-component/index.js.map +0 -1
  453. package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +0 -1
  454. package/lib/commonjs/shared/components/create-boundary-component/types.js.map +0 -1
  455. package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js +0 -75
  456. package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js.map +0 -1
  457. package/lib/commonjs/shared/components/create-boundary-component/utils/measured-bounds.js.map +0 -1
  458. package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js +0 -103
  459. package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js.map +0 -1
  460. package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js +0 -52
  461. package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js.map +0 -1
  462. package/lib/commonjs/shared/components/integrations/masked-view.js.map +0 -1
  463. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +0 -68
  464. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +0 -1
  465. package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js +0 -30
  466. package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +0 -1
  467. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +0 -1
  468. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +0 -1
  469. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +0 -1
  470. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +0 -94
  471. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +0 -1
  472. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +0 -1
  473. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +0 -1
  474. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +0 -1
  475. package/lib/module/shared/components/create-boundary-component/index.js.map +0 -1
  476. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js +0 -60
  477. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +0 -1
  478. package/lib/module/shared/components/create-boundary-component/types.js.map +0 -1
  479. package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js +0 -70
  480. package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js.map +0 -1
  481. package/lib/module/shared/components/create-boundary-component/utils/measured-bounds.js.map +0 -1
  482. package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js +0 -98
  483. package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js.map +0 -1
  484. package/lib/module/shared/components/create-boundary-component/utils/source-signals.js +0 -47
  485. package/lib/module/shared/components/create-boundary-component/utils/source-signals.js.map +0 -1
  486. package/lib/module/shared/components/integrations/masked-view.js.map +0 -1
  487. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +0 -63
  488. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +0 -1
  489. package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js +0 -26
  490. package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +0 -1
  491. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +0 -1
  492. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +0 -1
  493. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +0 -1
  494. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +0 -1
  495. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +0 -1
  496. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +0 -1
  497. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +0 -14
  498. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +0 -1
  499. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +0 -1
  500. package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts.map +0 -1
  501. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +0 -37
  502. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +0 -1
  503. package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts.map +0 -1
  504. package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts +0 -8
  505. package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts.map +0 -1
  506. package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts.map +0 -1
  507. package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts.map +0 -1
  508. package/lib/typescript/shared/components/integrations/masked-view.d.ts.map +0 -1
  509. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts +0 -14
  510. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +0 -1
  511. package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts +0 -17
  512. package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts.map +0 -1
  513. package/src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts +0 -130
  514. package/src/shared/components/create-boundary-component/types.ts +0 -48
  515. package/src/shared/components/create-boundary-component/utils/destination-signals.ts +0 -129
  516. package/src/shared/components/create-boundary-component/utils/refresh-signals.ts +0 -164
  517. package/src/shared/components/create-boundary-component/utils/source-signals.ts +0 -72
  518. package/src/shared/utils/bounds/helpers/create-interpolators.ts +0 -117
  519. package/src/shared/utils/bounds/helpers/styles/interpolate-link-style.ts +0 -43
  520. /package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.js +0 -0
  521. /package/lib/commonjs/shared/components/{create-boundary-component → boundary}/types.js +0 -0
  522. /package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.js +0 -0
  523. /package/lib/module/shared/components/{create-boundary-component → boundary}/types.js +0 -0
  524. /package/lib/typescript/shared/components/{create-boundary-component → boundary}/components/boundary-target.d.ts +0 -0
  525. /package/lib/typescript/shared/components/{create-boundary-component → boundary}/create-boundary-component.d.ts +0 -0
  526. /package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.d.ts +0 -0
  527. /package/lib/typescript/shared/components/{integrations/masked-view.d.ts → masked-view.d.ts} +0 -0
  528. /package/src/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.ts +0 -0
@@ -1,17 +1,15 @@
1
1
  "use strict";
2
2
 
3
- import { useMemo } from "react";
4
3
  import { useWindowDimensions } from "react-native";
5
4
  import { useDerivedValue, useSharedValue } from "react-native-reanimated";
6
5
  import { useSafeAreaInsets } from "react-native-safe-area-context";
7
6
  import { DEFAULT_SCREEN_TRANSITION_STATE } from "../../../../constants";
8
7
  import { useStack } from "../../../../hooks/navigation/use-stack";
9
- import { AnimationStore } from "../../../../stores/animation.store";
10
8
  import { useDescriptors } from "../../descriptors";
11
9
  import { updateDerivations } from "./derivations";
12
10
  import { hasTransitionsEnabled } from "./has-transitions-enabled";
13
11
  import { hydrateTransitionState } from "./hydrate-transition-state";
14
- import { deriveStackProgress } from "./stack-progress";
12
+ import { resolveStackProgress } from "./stack-progress";
15
13
  import { useBuildTransitionState } from "./use-build-transition-state";
16
14
  const createInitialBaseInterpolatorProps = (dimensions, insets) => {
17
15
  const current = {
@@ -35,13 +33,9 @@ const createInitialBaseInterpolatorProps = (dimensions, insets) => {
35
33
  };
36
34
  };
37
35
  export function useScreenAnimationPipeline() {
38
- const {
39
- flags,
40
- routeKeys
41
- } = useStack();
36
+ const transitionsAlwaysOn = useStack(stack => stack.flags.TRANSITIONS_ALWAYS_ON);
42
37
  const dimensions = useWindowDimensions();
43
38
  const insets = useSafeAreaInsets();
44
- const transitionsAlwaysOn = flags.TRANSITIONS_ALWAYS_ON;
45
39
  const {
46
40
  current: currDescriptor,
47
41
  next: nextDescriptor,
@@ -50,11 +44,6 @@ export function useScreenAnimationPipeline() {
50
44
  const currentAnimation = useBuildTransitionState(currDescriptor);
51
45
  const nextAnimation = useBuildTransitionState(nextDescriptor);
52
46
  const prevAnimation = useBuildTransitionState(prevDescriptor);
53
- const currentRouteKey = currDescriptor?.route?.key;
54
- const currentIndex = routeKeys.indexOf(currentRouteKey);
55
- const visualProgressValues = useMemo(() => {
56
- return routeKeys.map(routeKey => AnimationStore.getValue(routeKey, "visualProgress"));
57
- }, [routeKeys]);
58
47
  const nextRouteKey = nextDescriptor?.route?.key;
59
48
  const nextHasTransitions = !!nextRouteKey && hasTransitionsEnabled(nextDescriptor?.options, transitionsAlwaysOn);
60
49
  const screenInterpolatorProps = useSharedValue(createInitialBaseInterpolatorProps(dimensions, insets));
@@ -73,13 +62,15 @@ export function useScreenAnimationPipeline() {
73
62
  const interpolatorOptions = selectedInterpolatorOptions.get();
74
63
  const shouldApplyOptionsToCurrent = interpolatorOptions.owner === "current";
75
64
  const shouldApplyOptionsToNext = interpolatorOptions.owner === "next" && !!nextAnimation && nextHasTransitions;
65
+ const previousCurrentProgress = currentAnimation?.visualProgress.get();
66
+ const previousNextProgress = nextAnimation && nextHasTransitions ? nextAnimation.visualProgress.get() : undefined;
76
67
  frame.previous = prevAnimation ? hydrateTransitionState(prevAnimation, dimensions) : undefined;
77
68
  frame.current = currentAnimation ? hydrateTransitionState(currentAnimation, dimensions, shouldApplyOptionsToCurrent ? interpolatorOptions.options : undefined) : DEFAULT_SCREEN_TRANSITION_STATE;
78
69
  frame.next = nextAnimation && nextHasTransitions ? hydrateTransitionState(nextAnimation, dimensions, shouldApplyOptionsToNext ? interpolatorOptions.options : undefined) : undefined;
79
70
  frame.layouts = frame.current.layouts;
80
71
  frame.insets = insets;
81
72
  updateDerivations(frame);
82
- frame.stackProgress = deriveStackProgress(routeKeys, visualProgressValues, currentIndex, frame.progress, currentRouteKey, frame.current.progress, nextRouteKey, frame.next?.progress);
73
+ frame.stackProgress = resolveStackProgress(currentAnimation?.stackProgress, frame.progress, frame.current.progress, previousCurrentProgress, frame.next?.progress, previousNextProgress);
83
74
  frame.logicallySettled = frame.active.settled;
84
75
  return frame;
85
76
  }, false);
@@ -1 +1 @@
1
- {"version":3,"names":["useMemo","useWindowDimensions","useDerivedValue","useSharedValue","useSafeAreaInsets","DEFAULT_SCREEN_TRANSITION_STATE","useStack","AnimationStore","useDescriptors","updateDerivations","hasTransitionsEnabled","hydrateTransitionState","deriveStackProgress","useBuildTransitionState","createInitialBaseInterpolatorProps","dimensions","insets","current","layouts","screen","previous","undefined","next","progress","stackProgress","logicallySettled","focused","active","inactive","useScreenAnimationPipeline","flags","routeKeys","transitionsAlwaysOn","TRANSITIONS_ALWAYS_ON","currDescriptor","nextDescriptor","prevDescriptor","currentAnimation","nextAnimation","prevAnimation","currentRouteKey","route","key","currentIndex","indexOf","visualProgressValues","map","routeKey","getValue","nextRouteKey","nextHasTransitions","options","screenInterpolatorProps","selectedInterpolatorOptions","owner","propsRevisionState","value","screenInterpolatorPropsRevision","modify","frame","interpolatorOptions","get","shouldApplyOptionsToCurrent","shouldApplyOptionsToNext","settled","revision","nextInterpolator","screenStyleInterpolator","currentInterpolator"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/pipeline.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,mBAAmB,QAAQ,cAAc;AAClD,SAGCC,eAAe,EACfC,cAAc,QACR,yBAAyB;AAChC,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,+BAA+B,QAAQ,uBAAuB;AACvE,SAASC,QAAQ,QAAQ,wCAAwC;AACjE,SAASC,cAAc,QAAQ,oCAAoC;AAMnE,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,iBAAiB,QAAQ,eAAe;AACjD,SAASC,qBAAqB,QAAQ,2BAA2B;AACjE,SAASC,sBAAsB,QAAQ,4BAA4B;AAEnE,SAASC,mBAAmB,QAAQ,kBAAkB;AACtD,SAASC,uBAAuB,QAAQ,8BAA8B;AAetE,MAAMC,kCAAkC,GAAGA,CAC1CC,UAAwD,EACxDC,MAAyC,KACZ;EAC7B,MAAMC,OAAO,GAAG;IACf,GAAGZ,+BAA+B;IAClCa,OAAO,EAAE;MAAEC,MAAM,EAAEJ;IAAW;EAC/B,CAAC;EAED,OAAO;IACNG,OAAO,EAAED,OAAO,CAACC,OAAO;IACxBF,MAAM;IACNI,QAAQ,EAAEC,SAAS;IACnBJ,OAAO;IACPK,IAAI,EAAED,SAAS;IACfE,QAAQ,EAAE,CAAC;IACXC,aAAa,EAAE,CAAC;IAChBC,gBAAgB,E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,EACZgB,KAAK,CAACpC,QAAQ,EACdiB,eAAe,EACfmB,KAAK,CAAC1C,OAAO,CAACM,QAAQ,EACtB0B,YAAY,EACZU,KAAK,CAACrC,IAAI,EAAEC,QACb,CAAC;MACDoC,KAAK,CAAClC,gBAAgB,GAAGkC,KAAK,CAAChC,MAAM,CAACqC,OAAO;MAE7C,OAAOL,KAAK;IACb,CAAC,EAAE,KAAK,CAAC;;IAET;IACA;IACA;IACA;IACA;IACA;IACAJ,kBAAkB,CAACG,MAAM,CAAEO,QAAQ,IAAK;MACvC,SAAS;;MACTA,QAAQ,CAACT,KAAK,IAAI,CAAC;MACnB,OAAOS,QAAQ;IAChB,CAAC,EAAE,KAAK,CAAC;IAET,OAAOV,kBAAkB,CAACM,GAAG,CAAC,CAAC,CAACL,KAAK;EACtC,CAAC,CAAC;EAEF,MAAMU,gBAAgB,GAAG/B,cAAc,EAAEgB,OAAO,CAACgB,uBAAuB;EACxE,MAAMC,mBAAmB,GAAGlC,cAAc,EAAEiB,OAAO,CAACgB,uBAAuB;EAE3E,OAAO;IACNf,uBAAuB;IACvBK,+BAA+B;IAC/BJ,2BAA2B;IAC3Ba,gBAAgB;IAChBE;EACD,CAAC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["useWindowDimensions","useDerivedValue","useSharedValue","useSafeAreaInsets","DEFAULT_SCREEN_TRANSITION_STATE","useStack","useDescriptors","updateDerivations","hasTransitionsEnabled","hydrateTransitionState","resolveStackProgress","useBuildTransitionState","createInitialBaseInterpolatorProps","dimensions","insets","current","layouts","screen","previous","undefined","next","progress","stackProgress","logicallySettled","focused","active","inactive","useScreenAnimationPipeline","transitionsAlwaysOn","stack","flags","TRANSITIONS_ALWAYS_ON","currDescriptor","nextDescriptor","prevDescriptor","currentAnimation","nextAnimation","prevAnimation","nextRouteKey","route","key","nextHasTransitions","options","screenInterpolatorProps","selectedInterpolatorOptions","owner","propsRevisionState","value","screenInterpolatorPropsRevision","modify","frame","interpolatorOptions","get","shouldApplyOptionsToCurrent","shouldApplyOptionsToNext","previousCurrentProgress","visualProgress","previousNextProgress","settled","revision","nextInterpolator","screenStyleInterpolator","currentInterpolator"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/pipeline.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,cAAc;AAClD,SAGCC,eAAe,EACfC,cAAc,QACR,yBAAyB;AAChC,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,+BAA+B,QAAQ,uBAAuB;AACvE,SAASC,QAAQ,QAAQ,wCAAwC;AAMjE,SAASC,cAAc,QAAQ,mBAAmB;AAClD,SAASC,iBAAiB,QAAQ,eAAe;AACjD,SAASC,qBAAqB,QAAQ,2BAA2B;AACjE,SAASC,sBAAsB,QAAQ,4BAA4B;AAEnE,SAASC,oBAAoB,QAAQ,kBAAkB;AACvD,SAASC,uBAAuB,QAAQ,8BAA8B;AAetE,MAAMC,kCAAkC,GAAGA,CAC1CC,UAAwD,EACxDC,MAAyC,KACZ;EAC7B,MAAMC,OAAO,GAAG;IACf,GAAGX,+BAA+B;IAClCY,OAAO,EAAE;MAAEC,MAAM,EAAEJ;IAAW;EAC/B,CAAC;EAED,OAAO;IACNG,OAAO,EAAED,OAAO,CAACC,OAAO;IACxBF,MAAM;IACNI,QAAQ,EAAEC,SAAS;IACnBJ,OAAO;IACPK,IAAI,EAAED,SAAS;IACfE,QAAQ,EAAE,CAAC;IACXC,aAAa,EAAE,CAAC;IAChBC,gBAAgB,EAAE,CAAC;IACnBC,OAAO,EAAE,IAAI;IACbC,MAAM,EAAEV,OAAO;IACfW,QAAQ,EAAEP;EACX,CAAC;AACF,CAAC;AAED,OAAO,SAASQ,0BAA0BA,CAAA,EAA4B;EACrE,MAAMC,mBAAmB,GAAGvB,QAAQ,CAClCwB,KAAK,IAAKA,KAAK,CAACC,KAAK,CAACC,qBACxB,CAAC;EACD,MAAMlB,UAAU,GAAGb,mBAAmB,CAAC,CAAC;EACxC,MAAMc,MAAM,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C,CAACL,KAAK;EACtC,CAAC,CAAC;EAEF,MAAMa,gBAAgB,GAAG3B,cAAc,EAAES,OAAO,CAACmB,uBAAuB;EACxE,MAAMC,mBAAmB,GAAG9B,cAAc,EAAEU,OAAO,CAACmB,uBAAuB;EAE3E,OAAO;IACNlB,uBAAuB;IACvBK,+BAA+B;IAC/BJ,2BAA2B;IAC3BgB,gBAAgB;IAChBE;EACD,CAAC;AACF","ignoreList":[]}
@@ -1,20 +1,30 @@
1
1
  "use strict";
2
2
 
3
- export const deriveStackProgress = (routeKeys, visualProgressValues, currentIndex, fallbackProgress, currentRouteKey, currentProgress, nextRouteKey, nextProgress) => {
3
+ export const syncStackProgressValues = (visualProgressValues, stackProgressValues) => {
4
4
  "worklet";
5
5
 
6
- if (currentIndex < 0) return fallbackProgress;
7
6
  let total = 0;
8
- for (let i = currentIndex; i < visualProgressValues.length; i++) {
9
- const routeKey = routeKeys[i];
10
- if (routeKey === currentRouteKey) {
11
- total += currentProgress;
12
- } else if (routeKey === nextRouteKey && nextProgress !== undefined) {
13
- total += nextProgress;
14
- } else {
15
- total += visualProgressValues[i].get();
7
+ for (let i = visualProgressValues.length - 1; i >= 0; i--) {
8
+ total += visualProgressValues[i]?.get() ?? 0;
9
+ const stackProgress = stackProgressValues[i];
10
+ if (stackProgress && stackProgress.get() !== total) {
11
+ stackProgress.set(total);
16
12
  }
17
13
  }
14
+ };
15
+ export const resolveStackProgress = (stackProgress, fallbackProgress, currentProgress, previousCurrentProgress, nextProgress, previousNextProgress) => {
16
+ "worklet";
17
+
18
+ if (!stackProgress) {
19
+ return fallbackProgress;
20
+ }
21
+ let total = stackProgress.get();
22
+ if (previousCurrentProgress !== undefined) {
23
+ total += currentProgress - previousCurrentProgress;
24
+ }
25
+ if (nextProgress !== undefined && previousNextProgress !== undefined) {
26
+ total += nextProgress - previousNextProgress;
27
+ }
18
28
  return total;
19
29
  };
20
30
  //# sourceMappingURL=stack-progress.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["deriveStackProgress","routeKeys","visualProgressValues","currentIndex","fallbackProgress","currentRouteKey","currentProgress","nextRouteKey","nextProgress","total","i","length","routeKey","undefined","get"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/stack-progress.ts"],"mappings":";;AAEA,OAAO,MAAMA,mBAAmB,GAAGA,CAClCC,SAAmB,EACnBC,oBAA2C,EAC3CC,YAAoB,EACpBC,gBAAwB,EACxBC,eAAmC,EACnCC,eAAuB,EACvBC,YAAgC,EAChCC,YAAgC,KAC5B;EACJ,SAAS;;EACT,IAAIL,YAAY,GAAG,CAAC,EAAE,OAAOC,gBAAgB;EAE7C,IAAIK,KAAK,GAAG,CAAC;EACb,KAAK,IAAIC,CAAC,GAAGP,YAAY,EAAEO,CAAC,GAAGR,oBAAoB,CAACS,MAAM,EAAED,CAAC,EAAE,EAAE;IAChE,MAAME,QAAQ,GAAGX,SAAS,CAACS,CAAC,CAAC;IAC7B,IAAIE,QAAQ,KAAKP,eAAe,EAAE;MACjCI,KAAK,IAAIH,eAAe;IACzB,CAAC,MAAM,IAAIM,QAAQ,KAAKL,YAAY,IAAIC,YAAY,KAAKK,SAAS,EAAE;MACnEJ,KAAK,IAAID,YAAY;IACtB,CAAC,MAAM;MACNC,KAAK,IAAIP,oBAAoB,CAACQ,CAAC,CAAC,CAACI,GAAG,CAAC,CAAC;IACvC;EACD;EAEA,OAAOL,KAAK;AACb,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["syncStackProgressValues","visualProgressValues","stackProgressValues","total","i","length","get","stackProgress","set","resolveStackProgress","fallbackProgress","currentProgress","previousCurrentProgress","nextProgress","previousNextProgress","undefined"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/stack-progress.ts"],"mappings":";;AAEA,OAAO,MAAMA,uBAAuB,GAAGA,CACtCC,oBAA2C,EAC3CC,mBAA0C,KACtC;EACJ,SAAS;;EACT,IAAIC,KAAK,GAAG,CAAC;EAEb,KAAK,IAAIC,CAAC,GAAGH,oBAAoB,CAACI,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC1DD,KAAK,IAAIF,oBAAoB,CAACG,CAAC,CAAC,EAAEE,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5C,MAAMC,aAAa,GAAGL,mBAAmB,CAACE,CAAC,CAAC;IAE5C,IAAIG,aAAa,IAAIA,aAAa,CAACD,GAAG,CAAC,CAAC,KAAKH,KAAK,EAAE;MACnDI,aAAa,CAACC,GAAG,CAACL,KAAK,CAAC;IACzB;EACD;AACD,CAAC;AAED,OAAO,MAAMM,oBAAoB,GAAGA,CACnCF,aAA8C,EAC9CG,gBAAwB,EACxBC,eAAuB,EACvBC,uBAA2C,EAC3CC,YAAgC,EAChCC,oBAAwC,KACpC;EACJ,SAAS;;EACT,IAAI,CAACP,aAAa,EAAE;IACnB,OAAOG,gBAAgB;EACxB;EAEA,IAAIP,KAAK,GAAGI,aAAa,CAACD,GAAG,CAAC,CAAC;EAE/B,IAAIM,uBAAuB,KAAKG,SAAS,EAAE;IAC1CZ,KAAK,IAAIQ,eAAe,GAAGC,uBAAuB;EACnD;EAEA,IAAIC,YAAY,KAAKE,SAAS,IAAID,oBAAoB,KAAKC,SAAS,EAAE;IACrEZ,KAAK,IAAIU,YAAY,GAAGC,oBAAoB;EAC7C;EAEA,OAAOX,KAAK;AACb,CAAC","ignoreList":[]}
@@ -22,6 +22,7 @@ export const useBuildTransitionState = descriptor => {
22
22
  return {
23
23
  transitionProgress: AnimationStore.getValue(key, "transitionProgress"),
24
24
  visualProgress: AnimationStore.getValue(key, "visualProgress"),
25
+ stackProgress: AnimationStore.getValue(key, "stackProgress"),
25
26
  willAnimate: AnimationStore.getValue(key, "willAnimate"),
26
27
  closing: AnimationStore.getValue(key, "closing"),
27
28
  entering: AnimationStore.getValue(key, "entering"),
@@ -1 +1 @@
1
- {"version":3,"names":["useMemo","createScreenTransitionState","AnimationStore","GestureStore","ScrollStore","SystemStore","buildScreenTransitionOptions","toPlainRoute","toPlainValue","useBuildTransitionState","descriptor","key","route","meta","options","snapPoints","undefined","plainRoute","plainMeta","sortedNumericSnapPoints","filter","p","sort","a","b","transitionOptions","transitionProgress","getValue","visualProgress","willAnimate","closing","entering","progressAnimating","progressSettled","targetProgress","resolvedAutoSnapPoint","measuredContentLayout","scrollMetadata","contentLayoutSlot","width","height","hasAutoSnapPoint","includes","gesture","getBag","optionsSlot","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;AAC7D,SAASC,WAAW,QAAQ,iCAAiC;AAS7D,SAASC,4BAA4B,QAAQ,mCAAmC;AAChF,SAASC,YAAY,EAAEC,YAAY,QAAQ,WAAW;AAyBtD,OAAO,MAAMC,uBAAuB,GACnCC,UAAsC,IACV;EAC5B,MAAMC,GAAG,GAAGD,UAAU,EAAEE,KAAK,EAAED,GAAG;EAClC,MAAME,IAAI,GAAGH,UAAU,EAAEI,OAAO,EAAED,IAAI;EACtC,MAAMD,KAAK,GAAGF,UAAU,EAAEE,KAAK;EAC/B,MAAMG,UAAU,GAAGL,UAAU,EAAEI,OAAO,EAAEC,UAAU;EAElD,OAAOf,OAAO,CAAC,MAAM;IACpB,IAAI,CAACW,GAAG,IAAI,CAACC,KAAK,EAAE,OAAOI,SAAS;IAEpC,MAAMC,UAAU,GAAGV,YAAY,CAACK,KAAK,CAAC;IACtC,MAAMM,SAAS,GAAGL,IAAI,GAClBL,YAAY,CAACK,IAAI,CAAC,GACnBG,SAAS;IAEZ,MAAMG,uBAAuB,GAAG,CAACJ,UAAU,IAAI,EAAE,EAC/CK,MAAM,CAAEC,CAAC,IAAkB,OAAOA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Y,CAACyC,MAAM,CAACjC,GAAG,CAAC;MACjCC,KAAK,EAAEK,UAAU;MACjBJ,IAAI,EAAEK,SAAS;MACfJ,OAAO,EAAEW,iBAAiB;MAC1BoB,WAAW,EAAE,CAAC,CAAC;MACfC,SAAS,EAAE7C,2BAA2B,CACrCgB,UAAU,EACVC,SAAS,EACTO,iBACD;IACD,CAAC;EACF,CAAC,EAAE,CAACd,GAAG,EAAEE,IAAI,EAAED,KAAK,EAAEG,UAAU,EAAEL,UAAU,EAAEI,OAAO,CAAC,CAAC;AACxD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useMemo","createScreenTransitionState","AnimationStore","GestureStore","ScrollStore","SystemStore","buildScreenTransitionOptions","toPlainRoute","toPlainValue","useBuildTransitionState","descriptor","key","route","meta","options","snapPoints","undefined","plainRoute","plainMeta","sortedNumericSnapPoints","filter","p","sort","a","b","transitionOptions","transitionProgress","getValue","visualProgress","stackProgress","willAnimate","closing","entering","progressAnimating","progressSettled","targetProgress","resolvedAutoSnapPoint","measuredContentLayout","scrollMetadata","contentLayoutSlot","width","height","hasAutoSnapPoint","includes","gesture","getBag","optionsSlot","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;AAC7D,SAASC,WAAW,QAAQ,iCAAiC;AAS7D,SAASC,4BAA4B,QAAQ,mCAAmC;AAChF,SAASC,YAAY,EAAEC,YAAY,QAAQ,WAAW;AA0BtD,OAAO,MAAMC,uBAAuB,GACnCC,UAAsC,IACV;EAC5B,MAAMC,GAAG,GAAGD,UAAU,EAAEE,KAAK,EAAED,GAAG;EAClC,MAAME,IAAI,GAAGH,UAAU,EAAEI,OAAO,EAAED,I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,cAAc,EAAE9B,WAAW,CAACsB,QAAQ,CAAChB,GAAG,EAAE,gBAAgB,CAAC;MAC3DyB,qBAAqB,EAAE/B,WAAW,CAACsB,QAAQ,CAAChB,GAAG,EAAE,uBAAuB,CAAC;MACzE0B,qBAAqB,EAAEhC,WAAW,CAACsB,QAAQ,CAAChB,GAAG,EAAE,uBAAuB,CAAC;MACzE2B,cAAc,EAAElC,WAAW,CAACuB,QAAQ,CAAChB,GAAG,EAAE,UAAU,CAAC;MACrD4B,iBAAiB,EAAE;QAAEC,KAAK,EAAE,CAAC;QAAEC,MAAM,EAAE;MAAE,CAAC;MAC1CC,gBAAgB,EAAE3B,UAAU,EAAE4B,QAAQ,CAAC,MAAM,CAAC,IAAI,KAAK;MACvDxB,uBAAuB;MACvByB,OAAO,EAAEzC,YAAY,CAAC0C,MAAM,CAAClC,GAAG,CAAC;MACjCC,KAAK,EAAEK,UAAU;MACjBJ,IAAI,EAAEK,SAAS;MACfJ,OAAO,EAAEW,iBAAiB;MAC1BqB,WAAW,EAAE,CAAC,CAAC;MACfC,SAAS,EAAE9C,2BAA2B,CACrCgB,UAAU,EACVC,SAAS,EACTO,iBACD;IACD,CAAC;EACF,CAAC,EAAE,CAACd,GAAG,EAAEE,IAAI,EAAED,KAAK,EAAEG,UAAU,EAAEL,UAAU,EAAEI,OAAO,CAAC,CAAC;AACxD,CAAC","ignoreList":[]}
@@ -3,7 +3,7 @@
3
3
  import { useMemo } from "react";
4
4
  import createProvider from "../../../utils/create-provider";
5
5
  import { deriveDescriptorDerivations } from "./helpers/derive-descriptor-derivations";
6
- import { getAncestorKeys } from "./helpers/get-ancestor-keys";
6
+ import { getAncestorKeyState } from "./helpers/get-ancestor-keys";
7
7
 
8
8
  /**
9
9
  * Base descriptor interface - minimal contract for all stack types.
@@ -27,13 +27,17 @@ const {
27
27
  current,
28
28
  next
29
29
  }), [previous, current, next]);
30
- const ancestorKeys = useMemo(() => getAncestorKeys(current), [current]);
30
+ const {
31
+ ancestorKeys,
32
+ ancestorDestinationPairKey
33
+ } = useMemo(() => getAncestorKeyState(current), [current]);
31
34
  const derivations = useMemo(() => deriveDescriptorDerivations({
32
35
  previous,
33
36
  current,
34
37
  next,
35
- ancestorKeys
36
- }), [previous, current, next, ancestorKeys]);
38
+ ancestorKeys,
39
+ ancestorDestinationPairKey
40
+ }), [previous, current, next, ancestorKeys, ancestorDestinationPairKey]);
37
41
  const value = useMemo(() => ({
38
42
  descriptors,
39
43
  derivations
@@ -1 +1 @@
1
- {"version":3,"names":["useMemo","createProvider","deriveDescriptorDerivations","getAncestorKeys","jsx","_jsx","DescriptorsProvider","InternalDescriptorsProvider","useDescriptorsStore","guarded","previous","current","next","children","descriptors","ancestorKeys","derivations","value","providerProps","useDescriptors","store","useDescriptorDerivations"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/descriptors/descriptors.provider.tsx"],"mappings":";;AACA,SAASA,OAAO,QAAQ,OAAO;AAE/B,OAAOC,cAAc,MAAM,gCAAgC;AAE3D,SAASC,2BAA2B,QAAQ,yCAAyC;AACrF,SAASC,eAAe,QAAQ,6BAA6B;;AAE7D;AACA;AACA;AACA;AACA;AAJA,SAAAC,GAAA,IAAAC,IAAA;AA+BA,MAAM;EACLC,mBAAmB,EAAEC,2BAA2B;EAChDC;AACD,CAAC,GAAGP,cAAc,CAAC,aAAa,EAAE;EAAEQ,OAAO,EAAE;AAAK,CAAC,CAAC,CAGlD,CAAC;EAAEC,QAAQ;EAAEC,OAAO;EAAEC,IAAI;EAAEC;AAAS,CAAC,KAAK;EAC5C,MAAMC,WAAW,GAAGd,OAAO,CAC1B,OAAO;IAAEU,QAAQ;IAAEC,OAAO;IAAEC;EAAK,CAAC,CAAC,EACnC,CAACF,QAAQ,EAAEC,OAAO,EAAEC,IAAI,CACzB,CAAC;EAED,MAAMG,YAAY,GAAGf,OAAO,CAAC,MAAMG,eAAe,CAACQ,OAAO,CAAC,EAAE,CAACA,OAAO,CAAC,CAAC;EAEvE,MAAMK,WAAW,GAAGhB,OAAO,CAC1B,MACCE,2BAA2B,CAAC;IAC3BQ,QAAQ;IACRC,OAAO;IACPC,IAAI;IACJG;EACD,CAAC,CAAC,EACH,CAACL,QAAQ,EAAEC,OAAO,EAAEC,IAAI,EAAEG,YAAY,CACvC,CAAC;EAED,MAAME,KAAK,GAAGjB,OAAO,CACpB,OAAO;IACNc,WAAW;IACXE;EACD,CAAC,CAAC,EACF,CAACF,WAAW,EAAEE,WAAW,CAC1B,CAAC;EAED,OAAO;IACNC,KAAK;IACLJ;EACD,CAAC;AACF,CAAC,CAAC;AAEF,OAAO,SAASP,mBAAmBA,CAAqC;EACvEO,QAAQ;EACRH,QAAQ;EACRC,OAAO;EACPC;AACsC,CAAC,EAAE;EACzC,MAAMM,aAAa,GAAG;IACrBR,QAAQ;IACRC,OAAO;IACPC,IAAI;IACJC;EACD,CAAC;EAED,oBAAOR,IAAA,CAACE,2BAA2B;IAAA,GAAKW;EAAa,CAAG,CAAC;AAC1D;AAEA,OAAO,SAASC,cAAcA,CAAA,EAE1B;EACH,OAAOX,mBAAmB,CACxBY,KAAK,IAAKA,KAAK,CAACN,WAClB,CAAC;AACF;AAEA,OAAO,SAASO,wBAAwBA,CAAA,EAAsC;EAC7E,OAAOb,mBAAmB,CAAEY,KAAK,IAAKA,KAAK,CAACJ,WAAW,CAAC;AACzD;AAEA,SAASR,mBAAmB","ignoreList":[]}
1
+ {"version":3,"names":["useMemo","createProvider","deriveDescriptorDerivations","getAncestorKeyState","jsx","_jsx","DescriptorsProvider","InternalDescriptorsProvider","useDescriptorsStore","guarded","previous","current","next","children","descriptors","ancestorKeys","ancestorDestinationPairKey","derivations","value","providerProps","useDescriptors","store","useDescriptorDerivations"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/descriptors/descriptors.provider.tsx"],"mappings":";;AACA,SAASA,OAAO,QAAQ,OAAO;AAE/B,OAAOC,cAAc,MAAM,gCAAgC;AAE3D,SAASC,2BAA2B,QAAQ,yCAAyC;AACrF,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AAC1D;AAEA,OAAO,SAASC,cAAcA,CAAA,EAE1B;EACH,OAAOZ,mBAAmB,CACxBa,KAAK,IAAKA,KAAK,CAACP,WAClB,CAAC;AACF;AAEA,OAAO,SAASQ,wBAAwBA,CAAA,EAAsC;EAC7E,OAAOd,mBAAmB,CAAEa,KAAK,IAAKA,KAAK,CAACJ,WAAW,CAAC;AACzD;AAEA,SAAST,mBAAmB","ignoreList":[]}
@@ -1,14 +1,18 @@
1
1
  "use strict";
2
2
 
3
+ import { createScreenPairKey } from "../../../../stores/bounds/helpers/link-pairs.helpers";
3
4
  export function deriveDescriptorDerivations({
4
5
  previous,
5
6
  current,
6
7
  next,
7
- ancestorKeys
8
+ ancestorKeys,
9
+ ancestorDestinationPairKey
8
10
  }) {
9
11
  const previousScreenKey = previous?.route.key;
10
12
  const currentScreenKey = current.route.key;
11
13
  const nextScreenKey = next?.route.key;
14
+ const sourcePairKey = nextScreenKey ? createScreenPairKey(currentScreenKey, nextScreenKey) : undefined;
15
+ const destinationPairKey = previousScreenKey ? createScreenPairKey(previousScreenKey, currentScreenKey) : undefined;
12
16
  const navigationState = current.navigation.getState();
13
17
  const routes = navigationState?.routes ?? [];
14
18
  const isFirstKey = routes.findIndex(route => route.key === current.route.key) === 0;
@@ -18,6 +22,9 @@ export function deriveDescriptorDerivations({
18
22
  previousScreenKey,
19
23
  currentScreenKey,
20
24
  nextScreenKey,
25
+ sourcePairKey,
26
+ destinationPairKey,
27
+ ancestorDestinationPairKey,
21
28
  parentScreenKey: ancestorKeys[0],
22
29
  isFirstKey,
23
30
  isTopMostScreen,
@@ -1 +1 @@
1
- {"version":3,"names":["deriveDescriptorDerivations","previous","current","next","ancestorKeys","previousScreenKey","route","key","currentScreenKey","nextScreenKey","navigationState","navigation","getState","routes","isFirstKey","findIndex","isTopMostScreen","hasConfiguredInterpolator","options","screenStyleInterpolator","parentScreenKey"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts"],"mappings":";;AAoBA,OAAO,SAASA,2BAA2BA,CAAC;EAC3CC,QAAQ;EACRC,OAAO;EACPC,IAAI;EACJC;AACO,CAAC,EAAyB;EACjC,MAAMC,iBAAiB,GAAGJ,QAAQ,EAAEK,KAAK,CAACC,GAAG;EAC7C,MAAMC,gBAAgB,GAAGN,OAAO,CAACI,KAAK,CAACC,GAAG;EAC1C,MAAME,aAAa,GAAGN,IAAI,EAAEG,KAAK,CAACC,GAAG;EAErC,MAAMG,eAAe,GAAGR,OAAO,CAACS,UAAU,CAACC,QAAQ,CAAC,CAAC;EACrD,MAAMC,MAAM,GAAGH,eAAe,EAAEG,MAAM,IAAI,EAAE;EAC5C,MAAMC,UAAU,GACfD,MAAM,CAACE,SAAS,CAAET,KAAK,IAAKA,KAAK,CAACC,GAAG,KAAKL,OAAO,CAACI,KAAK,CAACC,GAAG,CAAC,KAAK,CAAC;EACnE,MAAMS,eAAe,GAAG,CAACb,IAAI;EAC7B,MAAMc,yBAAyB,GAC9B,CAAC,CAACf,OAAO,CAACgB,OAAO,CAACC,uBAAuB,IACzC,CAAC,CAAChB,IAAI,EAAEe,OAAO,EAAEC,uBAAuB;EAEzC,OAAO;IACNd,iBAAiB;IACjBG,gBAAgB;IAChBC,aAAa;IACbW,eAAe,EAAEhB,YAAY,CAAC,CAAC,CAAC;IAChCU,UAAU;IACVE,eAAe;IACfZ,YAAY;IACZa;EACD,CAAC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["createScreenPairKey","deriveDescriptorDerivations","previous","current","next","ancestorKeys","ancestorDestinationPairKey","previousScreenKey","route","key","currentScreenKey","nextScreenKey","sourcePairKey","undefined","destinationPairKey","navigationState","navigation","getState","routes","isFirstKey","findIndex","isTopMostScreen","hasConfiguredInterpolator","options","screenStyleInterpolator","parentScreenKey"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,sDAAsD;AA0B1F,OAAO,SAASC,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;EACrC,MAAMG,aAAa,GAAGD,aAAa,GAChCX,mBAAmB,CAACU,gBAAgB,EAAEC,aAAa,CAAC,GACpDE,SAAS;EACZ,MAAMC,kBAAkB,GAAGP,iBAAiB,GACzCP,mBAAmB,CAACO,iBAAiB,EAAEG,gBAAgB,CAAC,GACxDG,SAAS;EAEZ,MAAME,eAAe,GAAGZ,OAAO,CAACa,UAAU,CAACC,QAAQ,CAAC,CAAC;EACrD,MAAMC,MAAM,GAAGH,eAAe,EAAEG,MAAM,IAAI,EAAE;EAC5C,MAAMC,UAAU,GACfD,MAAM,CAACE,SAAS,CAAEZ,KAAK,IAAKA,KAAK,CAACC,GAAG,KAAKN,OAAO,CAACK,KAAK,CAACC,GAAG,CAAC,KAAK,CAAC;EACnE,MAAMY,eAAe,GAAG,CAACjB,IAAI;EAC7B,MAAMkB,yBAAyB,GAC9B,CAAC,CAACnB,OAAO,CAACoB,OAAO,CAACC,uBAAuB,IACzC,CAAC,CAACpB,IAAI,EAAEmB,OAAO,EAAEC,uBAAuB;EAEzC,OAAO;IACNjB,iBAAiB;IACjBG,gBAAgB;IAChBC,aAAa;IACbC,aAAa;IACbE,kBAAkB;IAClBR,0BAA0B;IAC1BmB,eAAe,EAAEpB,YAAY,CAAC,CAAC,CAAC;IAChCc,UAAU;IACVE,eAAe;IACfhB,YAAY;IACZiB;EACD,CAAC;AACF","ignoreList":[]}
@@ -1,15 +1,19 @@
1
1
  "use strict";
2
2
 
3
+ import { createScreenPairKey } from "../../../../stores/bounds/helpers/link-pairs.helpers";
3
4
  /**
4
- * Builds the full ancestor key chain for nested navigators.
5
- * Returns an array of screen keys from immediate parent to root.
6
- * [parentKey, grandparentKey, greatGrandparentKey, ...]
5
+ * Builds nested navigator ancestor keys from immediate parent to root.
6
+ * The nearest ancestor destination pair lets child routes attach measurements
7
+ * to the transition owned by the parent stack.
7
8
  */
8
- export function getAncestorKeys(current) {
9
+ export function getAncestorKeyState(current) {
9
10
  const ancestors = [];
11
+ let ancestorDestinationPairKey;
10
12
  const nav = current.navigation;
11
13
  if (typeof nav?.getParent !== "function") {
12
- return ancestors;
14
+ return {
15
+ ancestorKeys: ancestors
16
+ };
13
17
  }
14
18
  let parent = nav.getParent();
15
19
  while (parent) {
@@ -18,10 +22,20 @@ export function getAncestorKeys(current) {
18
22
  const focusedRoute = state.routes[state.index];
19
23
  if (focusedRoute?.key) {
20
24
  ancestors.push(focusedRoute.key);
25
+ const previousRoute = state.routes[state.index - 1];
26
+ if (!ancestorDestinationPairKey && previousRoute?.key) {
27
+ ancestorDestinationPairKey = createScreenPairKey(previousRoute.key, focusedRoute.key);
28
+ }
21
29
  }
22
30
  }
23
31
  parent = parent.getParent();
24
32
  }
25
- return ancestors;
33
+ return {
34
+ ancestorKeys: ancestors,
35
+ ancestorDestinationPairKey
36
+ };
37
+ }
38
+ export function getAncestorKeys(current) {
39
+ return getAncestorKeyState(current).ancestorKeys;
26
40
  }
27
41
  //# sourceMappingURL=get-ancestor-keys.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getAncestorKeys","current","ancestors","nav","navigation","getParent","parent","state","getState","routes","index","undefined","focusedRoute","key","push"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/descriptors/helpers/get-ancestor-keys.ts"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,eAAeA,CAACC,OAA4B,EAAY;EACvE,MAAMC,SAAmB,GAAG,EAAE;EAC9B,MAAMC,GAAG,GAAGF,OAAO,CAACG,UAAiB;EAErC,IAAI,OAAOD,GAAG,EAAEE,SAAS,KAAK,UAAU,EAAE;IACzC,OAAOH,SAAS;EACjB;EAEA,IAAII,MAAM,GAAGH,GAAG,CAACE,SAAS,CAAC,CAAC;EAE5B,OAAOC,MAAM,EAAE;IACd,MAAMC,KAAK,GAAGD,MAAM,CAACE,QAAQ,CAAC,CAAC;IAC/B,IAAID,KAAK,EAAEE,MAAM,IAAIF,KAAK,CAACG,KAAK,KAAKC,SAAS,EAAE;MAC/C,MAAMC,YAAY,GAAGL,KAAK,CAACE,MAAM,CAACF,KAAK,CAACG,KAAK,CAAC;MAC9C,IAAIE,YAAY,EAAEC,GAAG,EAAE;QACtBX,SAAS,CAACY,IAAI,CAACF,YAAY,CAACC,GAAG,CAAC;MACjC;IACD;IACAP,MAAM,GAAGA,MAAM,CAACD,SAAS,CAAC,CAAC;EAC5B;EAEA,OAAOH,SAAS;AACjB","ignoreList":[]}
1
+ {"version":3,"names":["createScreenPairKey","getAncestorKeyState","current","ancestors","ancestorDestinationPairKey","nav","navigation","getParent","ancestorKeys","parent","state","getState","routes","index","undefined","focusedRoute","key","push","previousRoute","getAncestorKeys"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/descriptors/helpers/get-ancestor-keys.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,sDAAsD;AAS1F;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAClCC,OAA4B,EACT;EACnB,MAAMC,SAAmB,GAAG,EAAE;EAC9B,IAAIC,0BAAqD;EACzD,MAAMC,GAAG,GAAGH,OAAO,CAACI,UAAiB;EAErC,IAAI,OAAOD,GAAG,EAAEE,SAAS,KAAK,UAAU,EAAE;IACzC,OAAO;MAAEC,YAAY,EAAEL;IAAU,CAAC;EACnC;EAEA,IAAIM,MAAM,GAAGJ,GAAG,CAACE,SAAS,CAAC,CAAC;EAE5B,OAAOE,MAAM,EAAE;IACd,MAAMC,KAAK,GAAGD,MAAM,CAACE,QAAQ,CAAC,CAAC;IAC/B,IAAID,KAAK,EAAEE,MAAM,IAAIF,KAAK,CAACG,KAAK,KAAKC,SAAS,EAAE;MAC/C,MAAMC,YAAY,GAAGL,KAAK,CAACE,MAAM,CAACF,KAAK,CAACG,KAAK,CAAC;MAC9C,IAAIE,YAAY,EAAEC,GAAG,EAAE;QACtBb,SAAS,CAACc,IAAI,CAACF,YAAY,CAACC,GAAG,CAAC;QAEhC,MAAME,aAAa,GAAGR,KAAK,CAACE,MAAM,CAACF,KAAK,CAACG,KAAK,GAAG,CAAC,CAAC;QACnD,IAAI,CAACT,0BAA0B,IAAIc,aAAa,EAAEF,GAAG,EAAE;UACtDZ,0BAA0B,GAAGJ,mBAAmB,CAC/CkB,aAAa,CAACF,GAAG,EACjBD,YAAY,CAACC,GACd,CAAC;QACF;MACD;IACD;IACAP,MAAM,GAAGA,MAAM,CAACF,SAAS,CAAC,CAAC;EAC5B;EAEA,OAAO;IACNC,YAAY,EAAEL,SAAS;IACvBC;EACD,CAAC;AACF;AAEA,OAAO,SAASe,eAAeA,CAACjB,OAA4B,EAAY;EACvE,OAAOD,mBAAmB,CAACC,OAAO,CAAC,CAACM,YAAY;AACjD","ignoreList":[]}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from "react-native";
4
+ import Animated, { useAnimatedRef } from "react-native-reanimated";
5
+ import createProvider from "../../utils/create-provider";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ export const {
8
+ OriginProvider,
9
+ useOriginContext
10
+ } = createProvider("Origin", {
11
+ guarded: true
12
+ })(({
13
+ children
14
+ }) => {
15
+ const originRef = useAnimatedRef();
16
+ return {
17
+ value: {
18
+ originRef
19
+ },
20
+ children: /*#__PURE__*/_jsx(Animated.View, {
21
+ style: styles.container,
22
+ collapsable: false,
23
+ ref: originRef,
24
+ children: children
25
+ })
26
+ };
27
+ });
28
+ const styles = StyleSheet.create({
29
+ container: {
30
+ flex: 1
31
+ }
32
+ });
33
+ //# sourceMappingURL=origin.provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","Animated","useAnimatedRef","createProvider","jsx","_jsx","OriginProvider","useOriginContext","guarded","children","originRef","value","View","style","styles","container","collapsable","ref","create","flex"],"sourceRoot":"../../../../../src","sources":["shared/providers/screen/origin.provider.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAmB,cAAc;AACpD,OAAOC,QAAQ,IAEdC,cAAc,QACR,yBAAyB;AAChC,OAAOC,cAAc,MAAM,6BAA6B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AASzD,OAAO,MAAM;EAAEC,cAAc;EAAEC;AAAiB,CAAC,GAAGJ,cAAc,CAAC,QAAQ,EAAE;EAC5EK,OAAO,EAAE;AACV,CAAC,CAAC,CAAsB,CAAC;EAAEC;AAAS,CAAC,KAAK;EACzC,MAAMC,SAAS,GAAGR,cAAc,CAAO,CAAC;EAExC,OAAO;IACNS,KAAK,EAAE;MACND;IACD,CAAC;IACDD,QAAQ,eACPJ,IAAA,CAACJ,QAAQ,CAACW,IAAI;MACbC,KAAK,EAAEC,MAAM,CAACC,SAAU;MACxBC,WAAW,EAAE,KAAM;MACnBC,GAAG,EAAEP,SAAU;MAAAD,QAAA,EAEdA;IAAQ,CACK;EAEjB,CAAC;AACF,CAAC,CAAC;AAEF,MAAMK,MAAM,GAAGd,UAAU,CAACkB,MAAM,CAAC;EAChCH,SAAS,EAAE;IAAEI,IAAI,EAAE;EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ import { PORTAL_HOST_NAME_RESET_VALUE } from "../../../components/boundary/portal/utils/naming";
3
4
  import { NAVIGATION_MASK_CONTAINER_STYLE_ID, NAVIGATION_MASK_ELEMENT_STYLE_ID } from "../../../constants";
4
5
  const IDENTITY_TRANSFORM = [{
5
6
  translateX: 0
@@ -63,6 +64,7 @@ export const STYLE_RESET_VALUES = {
63
64
  shadowRadius: 0
64
65
  };
65
66
  export const PROP_RESET_VALUES = {
67
+ hostName: PORTAL_HOST_NAME_RESET_VALUE,
66
68
  pointerEvents: "auto"
67
69
  };
68
70
  const LOCAL_ONLY_STYLE_SLOT_IDS = {
@@ -1 +1 @@
1
- {"version":3,"names":["NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","IDENTITY_TRANSFORM","translateX","translateY","scale","scaleX","scaleY","STYLE_RESET_VALUES","transform","opacity","zIndex","elevation","overflow","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderStartColor","borderEndColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","PROP_RESET_VALUES","pointerEvents","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,MAAMC,kBAAkB,GAAG,CAC1B;EAAEC,UAAU,EAAE;AAAE,CAAC,EACjB;EAAEC,UAAU,EAAE;AAAE,CAAC,EACjB;EAAEC,KAAK,EAAE;AAAE,CAAC,EACZ;EAAEC,MAAM,EAAE;AAAE,CAAC,EACb;EAAEC,MAAM,EAAE;AAAE,CAAC,CACJ;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,kBAA2C,GAAG;EAC1DC,SAAS,EAAEP,kBAAkB;EAC7BC,UAAU,EAAE,CAAC;EACbC,UAAU,EAAE,CAAC;EACbC,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE,CAAC;EACTC,MAAM,EAAE,CAAC;EACTG,O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ignoreList":[]}
1
+ {"version":3,"names":["PORTAL_HOST_NAME_RESET_VALUE","NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","IDENTITY_TRANSFORM","translateX","translateY","scale","scaleX","scaleY","STYLE_RESET_VALUES","transform","opacity","zIndex","elevation","overflow","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","borderStartColor","borderEndColor","borderRadius","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","borderTopStartRadius","borderTopEndRadius","borderBottomStartRadius","borderBottomEndRadius","borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","PROP_RESET_VALUES","hostName","pointerEvents","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,SAASA,4BAA4B,QAAQ,kDAAkD;AAC/F,SACCC,kCAAkC,EAClCC,gCAAgC,QAC1B,oBAAoB;AAE3B,MAAMC,kBAAkB,GAAG,CAC1B;EAAEC,UAAU,EAAE;AAAE,CAAC,EACjB;EAAEC,UAAU,EAAE;AAAE,CAAC,EACjB;EAAEC,KAAK,EAAE;AAAE,CAAC,EACZ;EAAEC,MAAM,EAAE;AAAE,CAAC,EACb;EAAEC,MAAM,EAAE;AAAE,CAAC,CACJ;;AAEV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,kBAA2C,GAAG;EAC1DC,SAAS,EAAEP,kBAAkB;EAC7BC,UAAU,EAAE,CAAC;EACbC,UAAU,EAAE,CAAC;EACbC,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE,CAAC;EACTC,MAAM,EAAE,CAAC;EACTG,OAAO,EAAE,CAAC;EACVC,MAAM,EAAE,CAAC;EACTC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@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ const areRecordsEqual = (left, right) => {
4
+ "worklet";
5
+
6
+ if (left === right) {
7
+ return true;
8
+ }
9
+ if (!left || !right) {
10
+ return false;
11
+ }
12
+ for (const key in left) {
13
+ if (left[key] !== right[key]) {
14
+ return false;
15
+ }
16
+ }
17
+ for (const key in right) {
18
+ if (!(key in left)) {
19
+ return false;
20
+ }
21
+ }
22
+ return true;
23
+ };
24
+ const areResettableStatesEqual = (left, right) => {
25
+ "worklet";
26
+
27
+ if (left === right) {
28
+ return true;
29
+ }
30
+ if (!left || !right) {
31
+ return false;
32
+ }
33
+ return areRecordsEqual(left.styleKeys, right.styleKeys) && areRecordsEqual(left.styleResetValues, right.styleResetValues) && areRecordsEqual(left.propKeys, right.propKeys) && areRecordsEqual(left.propResetValues, right.propResetValues);
34
+ };
35
+ export const areResettableStatesBySlotEqual = (left, right) => {
36
+ "worklet";
37
+
38
+ if (left === right) {
39
+ return true;
40
+ }
41
+ for (const slotId in left) {
42
+ if (!areResettableStatesEqual(left[slotId], right[slotId])) {
43
+ return false;
44
+ }
45
+ }
46
+ for (const slotId in right) {
47
+ if (!(slotId in left)) {
48
+ return false;
49
+ }
50
+ }
51
+ return true;
52
+ };
53
+ //# sourceMappingURL=are-resettable-states-equal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["areRecordsEqual","left","right","key","areResettableStatesEqual","styleKeys","styleResetValues","propKeys","propResetValues","areResettableStatesBySlotEqual","slotId"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.ts"],"mappings":";;AAEA,MAAMA,eAAe,GAAGA,CACvBC,IAAyC,EACzCC,KAA0C,KACtC;EACJ,SAAS;;EACT,IAAID,IAAI,KAAKC,KAAK,EAAE;IACnB,OAAO,IAAI;EACZ;EAEA,IAAI,CAACD,IAAI,IAAI,CAACC,KAAK,EAAE;IACpB,OAAO,KAAK;EACb;EAEA,KAAK,M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IACb;EACD;EAEA,OAAO,IAAI;AACZ,CAAC","ignoreList":[]}
@@ -3,6 +3,7 @@
3
3
  import { shouldSlotInherit } from "../../constants";
4
4
  import { materializeResolvedSlot } from "./materialize-slot";
5
5
  import { getResolvedSlotState } from "./slot-state";
6
+ export { areResettableStatesBySlotEqual } from "./are-resettable-states-equal";
6
7
  const getForwardedSlot = (slot, hasAnyKeys) => {
7
8
  "worklet";
8
9
 
@@ -1 +1 @@
1
- {"version":3,"names":["shouldSlotInherit","materializeResolvedSlot","getResolvedSlotState","getForwardedSlot","slot","hasAnyKeys","undefined","hasEitherResetPatch","hasStyleResetPatch","hasPropResetPatch","hasDefinedBucketValue","value","hasResettableDisappearedKeys","previousKeys","previousResetValues","currentKeys","key","getResolvedSlotOutput","previousState","state","styleKeys","styleResetValues","propKeys","propResetValues","hasResetPatch","resolvedSlot","nextState","baseStyle","baseProps","hasAnyStyleKeys","hasAnyPropKeys","hasLocalSlot","context","slotId","index","localStylesMaps","length","mergeBucket","resolvedBucket","source","nextBucket","getMergedLocalSlot","mergedStyle","mergedProps","style","props","getSlotForId","ancestorStylesMap","writeResolvedSlotOutput","nextPreviousStyleStatesBySlot","resolvedStylesMap","areTransformItemsEqual","left","right","leftObject","rightObject","areTransformArraysEqual","Array","isArray","i","areFlatObjectsEqual","leftValue","rightValue","areSlotsEqual","reuseEqualResolvedSlots","previousResolvedStylesMap","changed","stableStylesMap","nextSlot","previousSlot","appendResolvedSlot","previousStyleStatesBySlot","appendCurrentSlots","appendedSlotIds","stylesMap","shouldAppendInheritedSlot","appendInheritedSlots","shouldAppendPreviousSlot","inheritedSlotExists","appendPreviousSlots","resolveSlotStyles"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts"],"mappings":";;AAIA,SAASA,iBAAiB,QAAQ,iBAAiB;AACnD,SAASC,uBAAuB,QAAQ,oBAAoB;AAC5D,SAASC,oBAAoB,QAAQ,cAAc;AAiBnD,MAAMC,gB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MAAM4C,wBAAwB,GAAGA,CAChC7C,OAAiC,EACjCC,MAAc,KACV;EACJ,SAAS;;EACT,MAAM6C,mBAAmB,GACxB9E,iBAAiB,CAACiC,MAAM,CAAC,IACzBD,OAAO,CAACe,iBAAiB,CAACd,MAAM,CAAC,KAAK3B,SAAS;EAEhD,OAAO,CAACyB,YAAY,CAACC,OAAO,EAAEC,MAAM,CAAC,IAAI,CAAC6C,mBAAmB;AAC9D,CAAC;AAED,MAAMC,mBAAmB,GAAI/C,OAAiC,IAAK;EAClE,SAAS;;EAET,KAAK,MAAMC,MAAM,IAAID,OAAO,CAACuC,yBAAyB,EAAE;IACvD,IAAIM,wBAAwB,CAAC7C,OAAO,EAAEC,MAAM,CAAC,EAAE;MAC9CqC,kBAAkB,CAACtC,OAAO,EAAEC,MAAM,CAAC;IACpC;EACD;AACD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM+C,iBAAiB,GAAGA,CAAC;EACjC7C,eAAe;EACfY,iBAAiB;EACjBwB;AAKD,CAAC,KAAK;EACL,SAAS;;EACT,MAAMrB,iBAAwD,GAAG,CAAC,CAAC;EACnE,MAAMD,6BAA0D,GAAG,CAAC,CAAC;EACrE,MAAMjB,OAAO,GAAG;IACfG,eAAe;IACfY,iBAAiB;IACjBwB,yBAAyB;IACzBrB,iBAAiB;IACjBD;EACD,CAAC;EAEDuB,kBAAkB,CAACxC,OAAO,CAAC;EAC3B4C,oBAAoB,CAAC5C,OAAO,CAAC;EAC7B+C,mBAAmB,CAAC/C,OAAO,CAAC;EAE5B,OAAO;IACNkB,iBAAiB;IACjBD;EACD,CAAC;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["shouldSlotInherit","materializeResolvedSlot","getResolvedSlotState","areResettableStatesBySlotEqual","getForwardedSlot","slot","hasAnyKeys","undefined","hasEitherResetPatch","hasStyleResetPatch","hasPropResetPatch","hasDefinedBucketValue","value","hasResettableDisappearedKeys","previousKeys","previousResetValues","currentKeys","key","getResolvedSlotOutput","previousState","state","styleKeys","styleResetValues","propKeys","propResetValues","hasResetPatch","resolvedSlot","nextState","baseStyle","baseProps","hasAnyStyleKeys","hasAnyPropKeys","hasLocalSlot","context","slotId","index","localStylesMaps","length","mergeBucket","resolvedBucket","source","nextBucket","getMergedLocalSlot","mergedStyle","mergedProps","style","props","getSlotForId","ancestorStylesMap","writeResolvedSlotOutput","nextPreviousStyleStatesBySlot","resolvedStylesMap","areTransformItemsEqual","left","right","leftObject","rightObject","areTransformArraysEqual","Array","isArray","i","areFlatObjectsEqual","leftValue","rightValue","areSlotsEqual","reuseEqualResolvedSlots","previousResolvedStylesMap","changed","stableStylesMap","nextSlot","previousSlot","appendResolvedSlot","previousStyleStatesBySlot","appendCurrentSlots","appendedSlotIds","stylesMap","shouldAppendInheritedSlot","appendInheritedSlots","shouldAppendPreviousSlot","inheritedSlotExists","appendPreviousSlots","resolveSlotStyles"],"sourceRoot":"../../../../../../../../src","sources":["shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts"],"mappings":";;AAIA,SAASA,iBAAiB,QAAQ,iBAAiB;AACnD,SAASC,uBAAuB,QAAQ,oBAAoB;AAC5D,SAASC,oBAAoB,QAAQ,cAAc;AAOnD,SAASC,8BAA8B,QAAQ,+BAA+B;AAW9E,MAAMC,gBAAgB,GAAGA,CACxBC,IAA+C,EAC/CC,UAAmB,KACf;EACJ,SAAS;;EAET,IAAI,CAACA,UAAU,EAAE;IAChB,OAAOC,SAAS;EACjB;EAEA,OAAOF,IAAI;AACZ,CAAC;AAED,MAAMG,mBAAmB,GAAGA,CAC3BC,kBAA2B,EAC3BC,iBAA0B,KACtB;EACJ,SAAS;;EACT,OAAOD,kBAAkB,IAAIC,iBAAiB;AAC/C,CAAC;AAED,MAAMC,qBAAqB,GAAIC,KAAc,IAAK;EACjD,SAAS;;EACT,OAAOA,KAAK,KAAKL,SAAS,IAAIK,KAAK,KAAK,IAAI;AAC7C,CAAC;AAED,MAAMC,4BAA4B,GAAG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C,OAAO,EAAEC,MAAM,CAAC,EAAE;MAC9CqC,kBAAkB,CAACtC,OAAO,EAAEC,MAAM,CAAC;IACpC;EACD;AACD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAM+C,iBAAiB,GAAGA,CAAC;EACjC7C,eAAe;EACfY,iBAAiB;EACjBwB;AAKD,CAAC,KAAK;EACL,SAAS;;EACT,MAAMrB,iBAAwD,GAAG,CAAC,CAAC;EACnE,MAAMD,6BAA0D,GAAG,CAAC,CAAC;EACrE,MAAMjB,OAAO,GAAG;IACfG,eAAe;IACfY,iBAAiB;IACjBwB,yBAAyB;IACzBrB,iBAAiB;IACjBD;EACD,CAAC;EAEDuB,kBAAkB,CAACxC,OAAO,CAAC;EAC3B4C,oBAAoB,CAAC5C,OAAO,CAAC;EAC7B+C,mBAAmB,CAAC/C,OAAO,CAAC;EAE5B,OAAO;IACNkB,iBAAiB;IACjBD;EACD,CAAC;AACF,CAAC","ignoreList":[]}
@@ -79,7 +79,8 @@ export const useMaybeBlockVisibility = isFloatingOverlay => {
79
79
  });
80
80
  return {
81
81
  animatedStyle,
82
- animatedProps
82
+ animatedProps,
83
+ shouldBlockVisibility
83
84
  };
84
85
  };
85
86
  //# sourceMappingURL=use-maybe-block-visibility.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useWindowDimensions","useAnimatedProps","useAnimatedReaction","useAnimatedStyle","useSharedValue","AnimationStore","SystemStore","getVisibilityBlockOffset","useDescriptorDerivations","resolveScreenVisibilityGate","useMaybeBlockVisibility","isFloatingOverlay","height","currentScreenKey","entering","transitionProgress","getBag","pendingLifecycleStartBlockCount","pendingLifecycleRequestKind","hasVisibilityGateOpened","shouldBlockVisibility","get","progress","gate","shouldOpenGate","set","shouldBlock","animatedStyle","offset","transform","translateY","animatedProps","pointerEvents"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,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xBL,uBAAuB,CAACM,GAAG,CAAC,IAAI,CAAC;IAClC;IAEAL,qBAAqB,CAACK,GAAG,CAACF,IAAI,CAACG,WAAW,CAAC;EAC5C,CACD,CAAC;EAED,MAAMC,aAAa,GAAGxB,gBAAgB,CAAC,MAAM;IAC5C,SAAS;;IACT;AACF;AACA;AACA;AACA;AACA;AACA;IACE,MAAMyB,MAAM,GAAGrB,wBAAwB,CAACK,MAAM,CAAC;IAE/C,OAAO;MACNiB,SAAS,EAAE,CACV;QACCC,UAAU,EAAEV,qBAAqB,CAACC,GAAG,CAAC,CAAC,GAAGO,MAAM,GAAG;MACpD,CAAC;IAEH,CAAC;EACF,CAAC,CAAC;EAEF,MAAMG,aAAa,GAAG9B,gBAAgB,CAAC,MAAM;IAC5C,SAAS;;IACT,OAAO;MACN+B,aAAa,EAAEZ,qBAAqB,CAACC,GAAG,CAAC,CAAC,GACtC,MAAM,GACN;IACL,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IACNM,aAAa;IACbI;EACD,CAAC;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useWindowDimensions","useAnimatedProps","useAnimatedReaction","useAnimatedStyle","useSharedValue","AnimationStore","SystemStore","getVisibilityBlockOffset","useDescriptorDerivations","resolveScreenVisibilityGate","useMaybeBlockVisibility","isFloatingOverlay","height","currentScreenKey","entering","transitionProgress","getBag","pendingLifecycleStartBlockCount","pendingLifecycleRequestKind","hasVisibilityGateOpened","shouldBlockVisibility","get","progress","gate","shouldOpenGate","set","shouldBlock","animatedStyle","offset","transform","translateY","animatedProps","pointerEvents"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,cAAc;AAClD,SACCC,gBAAgB,EAChBC,mBAAmB,EACnBC,gBAAgB,EAChBC,cAAc,QACR,yBAAyB;AAChC,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SAASC,WAAW,QAAQ,iCAA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xB,gBAAgB,CAAC,MAAM;IAC5C,SAAS;;IACT;AACF;AACA;AACA;AACA;AACA;AACA;IACE,MAAMyB,MAAM,GAAGrB,wBAAwB,CAACK,MAAM,CAAC;IAE/C,OAAO;MACNiB,SAAS,EAAE,CACV;QACCC,UAAU,EAAEV,qBAAqB,CAACC,GAAG,CAAC,CAAC,GAAGO,MAAM,GAAG;MACpD,CAAC;IAEH,CAAC;EACF,CAAC,CAAC;EAEF,MAAMG,aAAa,GAAG9B,gBAAgB,CAAC,MAAM;IAC5C,SAAS;;IACT,OAAO;MACN+B,aAAa,EAAEZ,qBAAqB,CAACC,GAAG,CAAC,CAAC,GACtC,MAAM,GACN;IACL,CAAC;EACF,CAAC,CAAC;EAEF,OAAO;IACNM,aAAa;IACbI,aAAa;IACbX;EACD,CAAC;AACF,CAAC","ignoreList":[]}
@@ -21,17 +21,19 @@ export const {
21
21
  }) => {
22
22
  const parentContext = useContext(ScreenStylesContext);
23
23
  const rawStylesMaps = useInterpolatedStylesMap();
24
+ const {
25
+ animatedStyle,
26
+ animatedProps,
27
+ shouldBlockVisibility
28
+ } = useMaybeBlockVisibility(isFloatingOverlay);
24
29
  const stylesMap = useResolvedStylesMap({
25
30
  localStylesMaps: rawStylesMaps,
26
31
  ancestorStylesMap: parentContext?.stylesMap
27
32
  });
28
- const {
29
- animatedStyle,
30
- animatedProps
31
- } = useMaybeBlockVisibility(isFloatingOverlay);
32
33
  return {
33
34
  value: {
34
- stylesMap
35
+ stylesMap,
36
+ shouldBlockVisibility
35
37
  },
36
38
  children: /*#__PURE__*/_jsx(FloatingOverlayLayer, {
37
39
  enabled: isFloatingOverlay,
@@ -1 +1 @@
1
- {"version":3,"names":["useContext","StyleSheet","Animated","createProvider","FloatingOverlayLayer","useInterpolatedStylesMap","useMaybeBlockVisibility","useResolvedStylesMap","jsx","_jsx","ScreenStylesProvider","ScreenStylesContext","useScreenStylesContext","useScreenStyles","guarded","children","isFloatingOverlay","parentContext","rawStylesMaps","stylesMap","localStylesMaps","ancestorStylesMap","animatedStyle","animatedProps","value","enabled","View","style","styles","container","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/styles.provider.tsx"],"mappings":";;AAAA,SAAyBA,UAAU,QAAQ,OAAO;AAClD,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,QAAQ,MAA4B,yBAAyB;AAEpE,OAAOC,cAAc,MAAM,gCAAgC;AAC3D,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,SAASC,wBAAwB,QAAQ,qCAAqC;AAC9E,SAASC,uBAAuB,QAAQ,oCAAoC;AAC5E,SAASC,oBAAoB,QAAQ,qCAAqC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAW3E,OAAO,MAAM;EACZC,oBAAoB;EACpBC,mBAAmB;EACnBC,sBAAsB,EAAEC;AACzB,CAAC,GAAGV,cAAc,CAAC,cAAc,EAAE;EAClCW,OAAO,EAAE;AACV,CAAC,CAAC,CAAkC,CAAC;EAAEC,QAAQ;EAAEC;AAAkB,CAAC,KAAK;EACxE,MAAMC,aAAa,GAAGjB,UAAU,CAACW,mBAAmB,CAAC;EAErD,MAAMO,aAAa,GAAGb,wBAAwB,CAAC,CAAC;EAEhD,MAAMc,SAAS,GAAGZ,oBAAoB,CAAC;IACtCa,eAAe,EAAEF,aAAa;IAC9BG,iBAAiB,EAAEJ,aAAa,EAAEE;EACnC,CAAC,CAAC;EAEF,MAAM;IAAEG,aAAa;IAAEC;EAAc,CAAC,GACrCjB,uBAAuB,CAACU,iBAAiB,CAAC;EAE3C,OAAO;IACNQ,KAAK,EAAE;MACNL;IACD,CAAC;IACDJ,QAAQ,eACPN,IAAA,CAACL,oBAAoB;MAACqB,OAAO,EAAET,iBAAkB;MAAAD,QAAA,eAChDN,IAAA,CAACP,QAAQ,CAACwB,IAAI;QACbC,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEP,aAAa,CAAE;QACzCC,aAAa,EAAEA,aAAc;QAAAR,QAAA,EAE5BA;MAAQ,CACK;IAAC,CACK;EAExB,CAAC;AACF,CAAC,CAAC;AAEF,MAAMa,MAAM,GAAG3B,UAAU,CAAC6B,MAAM,CAAC;EAChCD,SAAS,EAAE;IAAEE,IAAI,EAAE;EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useContext","StyleSheet","Animated","createProvider","FloatingOverlayLayer","useInterpolatedStylesMap","useMaybeBlockVisibility","useResolvedStylesMap","jsx","_jsx","ScreenStylesProvider","ScreenStylesContext","useScreenStylesContext","useScreenStyles","guarded","children","isFloatingOverlay","parentContext","rawStylesMaps","animatedStyle","animatedProps","shouldBlockVisibility","stylesMap","localStylesMaps","ancestorStylesMap","value","enabled","View","style","styles","container","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/styles.provider.tsx"],"mappings":";;AAAA,SAAyBA,UAAU,QAAQ,OAAO;AAClD,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,QAAQ,MAA4B,yBAAyB;AAEpE,OAAOC,cAAc,MAAM,gCAAgC;AAC3D,SAASC,oBAAoB,QAAQ,qCAAqC;AAC1E,SAASC,wBAAwB,QAAQ,qCAAqC;AAC9E,SAASC,uBAAuB,QAAQ,oCAAoC;AAC5E,SAASC,oBAAoB,QAAQ,qCAAqC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAY3E,OAAO,MAAM;EACZC,oBAAoB;EACpBC,mBAAmB;EACnBC,sBAAsB,EAAEC;AACzB,CAAC,GAAGV,cAAc,CAAC,cAAc,EAAE;EAClCW,OAAO,EAAE;AACV,CAAC,CAAC,CAAkC,CAAC;EAAEC,QAAQ;EAAEC;AAAkB,CAAC,KAAK;EACxE,MAAMC,aAAa,GAAGjB,UAAU,CAACW,mBAAmB,CAAC;EAErD,MAAMO,aAAa,GAAGb,wBAAwB,CAAC,CAAC;EAEhD,MAAM;IAAEc,aAAa;IAAEC,aAAa;IAAEC;EAAsB,CAAC,GAC5Df,uBAAuB,CAACU,iBAAiB,CAAC;EAE3C,MAAMM,SAAS,GAAGf,oBAAoB,CAAC;IACtCgB,eAAe,EAAEL,aAAa;IAC9BM,iBAAiB,EAAEP,aAAa,EAAEK;EACnC,CAAC,CAAC;EAEF,OAAO;IACNG,KAAK,EAAE;MACNH,SAAS;MACTD;IACD,CAAC;IACDN,QAAQ,eACPN,IAAA,CAACL,oBAAoB;MAACsB,OAAO,EAAEV,iBAAkB;MAAAD,QAAA,eAChDN,IAAA,CAACP,QAAQ,CAACyB,IAAI;QACbC,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAEX,aAAa,CAAE;QACzCC,aAAa,EAAEA,aAAc;QAAAL,QAAA,EAE5BA;MAAQ,CACK;IAAC,CACK;EAExB,CAAC;AACF,CAAC,CAAC;AAEF,MAAMc,MAAM,GAAG5B,UAAU,CAAC8B,MAAM,CAAC;EAChCD,SAAS,EAAE;IAAEE,IAAI,EAAE;EAAE;AACtB,CAAC,CAAC","ignoreList":[]}
@@ -6,6 +6,7 @@ function createAnimationBag() {
6
6
  return {
7
7
  transitionProgress: makeMutable(0),
8
8
  visualProgress: makeMutable(0),
9
+ stackProgress: makeMutable(0),
9
10
  willAnimate: makeMutable(0),
10
11
  closing: makeMutable(0),
11
12
  progressAnimating: makeMutable(0),
@@ -24,6 +25,7 @@ export const AnimationStore = createStore({
24
25
  disposeBag: bag => {
25
26
  cancelAnimation(bag.transitionProgress);
26
27
  cancelAnimation(bag.visualProgress);
28
+ cancelAnimation(bag.stackProgress);
27
29
  cancelAnimation(bag.willAnimate);
28
30
  cancelAnimation(bag.progressAnimating);
29
31
  cancelAnimation(bag.progressSettled);