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
@@ -137,6 +137,101 @@ const getAnchorOffset = ({
137
137
  };
138
138
  }
139
139
  };
140
+ const clampUnit = value => {
141
+ "worklet";
142
+
143
+ return Math.min(1, Math.max(0, value));
144
+ };
145
+ const normalizeRangeProgress = (progress, ranges) => {
146
+ "worklet";
147
+
148
+ const distance = ranges[1] - ranges[0];
149
+ if (Math.abs(distance) <= _constants.EPSILON) {
150
+ return 1;
151
+ }
152
+ return clampUnit((progress - ranges[0]) / distance);
153
+ };
154
+ const getUniformScale = (scaleX, scaleY) => {
155
+ "worklet";
156
+
157
+ if (Math.abs(scaleX - scaleY) <= _constants.EPSILON) {
158
+ return scaleX;
159
+ }
160
+ return Math.sqrt(Math.abs(scaleX * scaleY));
161
+ };
162
+ const getScaleRatio = (resolvedScale, currentScale) => {
163
+ "worklet";
164
+
165
+ const safeCurrentScale = Math.abs(currentScale) > _constants.EPSILON ? currentScale : 1;
166
+ return resolvedScale / safeCurrentScale;
167
+ };
168
+ const resolveMotionTransform = ({
169
+ computeOptions,
170
+ interpolationProps,
171
+ progress,
172
+ ranges,
173
+ start,
174
+ end,
175
+ current
176
+ }) => {
177
+ "worklet";
178
+
179
+ if (!computeOptions.motion) {
180
+ return current;
181
+ }
182
+ return computeOptions.motion({
183
+ progress: normalizeRangeProgress(progress, ranges),
184
+ current,
185
+ start,
186
+ end,
187
+ props: interpolationProps
188
+ });
189
+ };
190
+ /**
191
+ * Builds the rendered transform stack for a resolved motion: optional
192
+ * perspective first (so rotations project in 3D), translates, optional
193
+ * rotations, then the composer's scale entries — rotation happens in
194
+ * unscaled space around the element center.
195
+ */
196
+ const composeMotionTransform = (motion, scaleTransforms) => {
197
+ "worklet";
198
+
199
+ const transform = [];
200
+ const rotate = motion.rotate ?? 0;
201
+ const rotateX = motion.rotateX ?? 0;
202
+ const rotateY = motion.rotateY ?? 0;
203
+ if (rotate !== 0 || rotateX !== 0 || rotateY !== 0 || motion.perspective !== undefined) {
204
+ transform.push({
205
+ perspective: motion.perspective ?? 1000
206
+ });
207
+ }
208
+ transform.push({
209
+ translateX: motion.x
210
+ }, {
211
+ translateY: motion.y
212
+ });
213
+ if (rotateX !== 0) {
214
+ transform.push({
215
+ rotateX: `${rotateX}deg`
216
+ });
217
+ }
218
+ if (rotateY !== 0) {
219
+ transform.push({
220
+ rotateY: `${rotateY}deg`
221
+ });
222
+ }
223
+ if (rotate !== 0) {
224
+ transform.push({
225
+ rotate: `${rotate}deg`
226
+ });
227
+ }
228
+ if (scaleTransforms) {
229
+ for (const entry of scaleTransforms) {
230
+ transform.push(entry);
231
+ }
232
+ }
233
+ return transform;
234
+ };
140
235
  function composeSizeAbsolute(params) {
141
236
  "worklet";
142
237
 
@@ -161,24 +256,38 @@ function composeSizeAbsolute(params) {
161
256
  });
162
257
  const translateX = anchorX - anchorOffset.x;
163
258
  const translateY = anchorY - anchorOffset.y;
259
+ const motion = resolveMotionTransform({
260
+ computeOptions,
261
+ interpolationProps: params.interpolationProps,
262
+ progress,
263
+ ranges,
264
+ start,
265
+ end,
266
+ current: {
267
+ x: translateX,
268
+ y: translateY,
269
+ scale: 1
270
+ }
271
+ });
272
+ const resolvedWidth = width * motion.scale;
273
+ const resolvedHeight = height * motion.scale;
164
274
  if (computeOptions.raw) {
165
275
  return {
166
- width,
167
- height,
168
- translateX,
169
- translateY,
170
- ..._constants.VISIBLE_STYLE
276
+ width: resolvedWidth,
277
+ height: resolvedHeight,
278
+ translateX: motion.x,
279
+ translateY: motion.y,
280
+ rotate: motion.rotate ?? 0,
281
+ rotateX: motion.rotateX ?? 0,
282
+ rotateY: motion.rotateY ?? 0,
283
+ transformOrigin: motion.transformOrigin
171
284
  };
172
285
  }
173
286
  return {
174
- width,
175
- height,
176
- transform: [{
177
- translateX
178
- }, {
179
- translateY
180
- }],
181
- ..._constants.VISIBLE_STYLE
287
+ width: resolvedWidth,
288
+ height: resolvedHeight,
289
+ transform: composeMotionTransform(motion),
290
+ transformOrigin: motion.transformOrigin
182
291
  };
183
292
  }
184
293
  function composeSizeRelative(params) {
@@ -208,24 +317,38 @@ function composeSizeRelative(params) {
208
317
  });
209
318
  const translateX = anchorX - (baseX + anchorOffset.x);
210
319
  const translateY = anchorY - (baseY + anchorOffset.y);
320
+ const motion = resolveMotionTransform({
321
+ computeOptions,
322
+ interpolationProps: params.interpolationProps,
323
+ progress,
324
+ ranges,
325
+ start,
326
+ end,
327
+ current: {
328
+ x: translateX,
329
+ y: translateY,
330
+ scale: 1
331
+ }
332
+ });
333
+ const resolvedWidth = width * motion.scale;
334
+ const resolvedHeight = height * motion.scale;
211
335
  if (computeOptions.raw) {
212
336
  return {
213
- translateX,
214
- translateY,
215
- width,
216
- height,
217
- ..._constants.VISIBLE_STYLE
337
+ translateX: motion.x,
338
+ translateY: motion.y,
339
+ rotate: motion.rotate ?? 0,
340
+ rotateX: motion.rotateX ?? 0,
341
+ rotateY: motion.rotateY ?? 0,
342
+ transformOrigin: motion.transformOrigin,
343
+ width: resolvedWidth,
344
+ height: resolvedHeight
218
345
  };
219
346
  }
220
347
  return {
221
- transform: [{
222
- translateX
223
- }, {
224
- translateY
225
- }],
226
- width,
227
- height,
228
- ..._constants.VISIBLE_STYLE
348
+ transform: composeMotionTransform(motion),
349
+ transformOrigin: motion.transformOrigin,
350
+ width: resolvedWidth,
351
+ height: resolvedHeight
229
352
  };
230
353
  }
231
354
  function composeTransformAbsolute(params) {
@@ -243,26 +366,42 @@ function composeTransformAbsolute(params) {
243
366
  const translateY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [start.pageY, end.pageY], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [end.pageY, start.pageY], _reactNativeReanimated.Extrapolation.CLAMP);
244
367
  const scaleX = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleX, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleX], _reactNativeReanimated.Extrapolation.CLAMP);
245
368
  const scaleY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleY, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleY], _reactNativeReanimated.Extrapolation.CLAMP);
369
+ const currentScale = getUniformScale(scaleX, scaleY);
370
+ const motion = resolveMotionTransform({
371
+ computeOptions,
372
+ interpolationProps: params.interpolationProps,
373
+ progress,
374
+ ranges,
375
+ start,
376
+ end,
377
+ current: {
378
+ x: translateX,
379
+ y: translateY,
380
+ scale: currentScale
381
+ }
382
+ });
383
+ const scaleRatio = getScaleRatio(motion.scale, currentScale);
384
+ const resolvedScaleX = scaleX * scaleRatio;
385
+ const resolvedScaleY = scaleY * scaleRatio;
246
386
  if (computeOptions.raw) {
247
387
  return {
248
- translateX,
249
- translateY,
250
- scaleX,
251
- scaleY,
252
- ..._constants.VISIBLE_STYLE
388
+ translateX: motion.x,
389
+ translateY: motion.y,
390
+ rotate: motion.rotate ?? 0,
391
+ rotateX: motion.rotateX ?? 0,
392
+ rotateY: motion.rotateY ?? 0,
393
+ transformOrigin: motion.transformOrigin,
394
+ scaleX: resolvedScaleX,
395
+ scaleY: resolvedScaleY
253
396
  };
254
397
  }
255
398
  return {
256
- transform: [{
257
- translateX
258
- }, {
259
- translateY
260
- }, {
261
- scaleX
399
+ transform: composeMotionTransform(motion, [{
400
+ scaleX: resolvedScaleX
262
401
  }, {
263
- scaleY
264
- }],
265
- ..._constants.VISIBLE_STYLE
402
+ scaleY: resolvedScaleY
403
+ }]),
404
+ transformOrigin: motion.transformOrigin
266
405
  };
267
406
  }
268
407
  function composeTransformRelative(params) {
@@ -278,32 +417,48 @@ function composeTransformRelative(params) {
278
417
  const translateY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.dy, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, -geometry.dy], _reactNativeReanimated.Extrapolation.CLAMP);
279
418
  const scaleX = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleX, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleX], _reactNativeReanimated.Extrapolation.CLAMP);
280
419
  const scaleY = geometry.entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [geometry.scaleY, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, 1 / geometry.scaleY], _reactNativeReanimated.Extrapolation.CLAMP);
420
+ const offsetX = computeOptions.offset?.x ?? computeOptions.gestures?.x ?? 0;
421
+ const offsetY = computeOptions.offset?.y ?? computeOptions.gestures?.y ?? 0;
422
+ const currentScale = getUniformScale(scaleX, scaleY);
423
+ const motion = resolveMotionTransform({
424
+ computeOptions,
425
+ interpolationProps: params.interpolationProps,
426
+ progress,
427
+ ranges,
428
+ start: params.start,
429
+ end: params.end,
430
+ current: {
431
+ x: translateX,
432
+ y: translateY,
433
+ scale: currentScale
434
+ }
435
+ });
436
+ const scaleRatio = getScaleRatio(motion.scale, currentScale);
437
+ const resolvedScaleX = scaleX * scaleRatio;
438
+ const resolvedScaleY = scaleY * scaleRatio;
281
439
  if (computeOptions.raw) {
282
440
  return {
283
- translateX,
284
- translateY,
285
- scaleX,
286
- scaleY,
287
- ..._constants.VISIBLE_STYLE
441
+ translateX: motion.x,
442
+ translateY: motion.y,
443
+ rotate: motion.rotate ?? 0,
444
+ rotateX: motion.rotateX ?? 0,
445
+ rotateY: motion.rotateY ?? 0,
446
+ transformOrigin: motion.transformOrigin,
447
+ scaleX: resolvedScaleX,
448
+ scaleY: resolvedScaleY
288
449
  };
289
450
  }
290
- const offsetX = computeOptions.offset?.x ?? computeOptions.gestures?.x ?? 0;
291
- const offsetY = computeOptions.offset?.y ?? computeOptions.gestures?.y ?? 0;
292
451
  return {
293
452
  transform: [{
294
453
  translateX: offsetX
295
454
  }, {
296
455
  translateY: offsetY
456
+ }, ...composeMotionTransform(motion, [{
457
+ scaleX: resolvedScaleX
297
458
  }, {
298
- translateX
299
- }, {
300
- translateY
301
- }, {
302
- scaleX
303
- }, {
304
- scaleY
305
- }],
306
- ..._constants.VISIBLE_STYLE
459
+ scaleY: resolvedScaleY
460
+ }])],
461
+ transformOrigin: motion.transformOrigin
307
462
  };
308
463
  }
309
464
  function composeContentStyle(params) {
@@ -326,23 +481,35 @@ function composeContentStyle(params) {
326
481
  const translateX = entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [tx, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, tx], _reactNativeReanimated.Extrapolation.CLAMP);
327
482
  const translateY = entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [ty, 0], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [0, ty], _reactNativeReanimated.Extrapolation.CLAMP);
328
483
  const scale = entering ? (0, _reactNativeReanimated.interpolate)(progress, ranges, [s, 1], _reactNativeReanimated.Extrapolation.CLAMP) : (0, _reactNativeReanimated.interpolate)(progress, ranges, [1, s], _reactNativeReanimated.Extrapolation.CLAMP);
484
+ const motion = resolveMotionTransform({
485
+ computeOptions: params.computeOptions,
486
+ interpolationProps: params.interpolationProps,
487
+ progress,
488
+ ranges,
489
+ start: params.start,
490
+ end: params.end,
491
+ current: {
492
+ x: translateX,
493
+ y: translateY,
494
+ scale
495
+ }
496
+ });
329
497
  if (raw) {
330
498
  return {
331
- translateX,
332
- translateY,
333
- scale,
334
- ..._constants.VISIBLE_STYLE
499
+ translateX: motion.x,
500
+ translateY: motion.y,
501
+ rotate: motion.rotate ?? 0,
502
+ rotateX: motion.rotateX ?? 0,
503
+ rotateY: motion.rotateY ?? 0,
504
+ transformOrigin: motion.transformOrigin,
505
+ scale: motion.scale
335
506
  };
336
507
  }
337
508
  return {
338
- transform: [{
339
- translateX
340
- }, {
341
- translateY
342
- }, {
343
- scale
344
- }],
345
- ..._constants.VISIBLE_STYLE
509
+ transform: composeMotionTransform(motion, [{
510
+ scale: motion.scale
511
+ }]),
512
+ transformOrigin: motion.transformOrigin
346
513
  };
347
514
  }
348
515
  //# sourceMappingURL=composers.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_constants","getAnchorPoint","bounds","anchor","pageX","pageY","width","height","x","y","getAnchorOffset","composeSizeAbsolute","params","start","end","progress","ranges","computeOptions","startAnchor","endAnchor","interpolate","Extrapolation","CLAMP","anchorX","anchorY","anchorOffset","translateX","translateY","raw","VISIBLE_STYLE","transform","composeSizeRelative","geometry","baseX","entering","baseY","composeTransformAbsolute","scaleX","scaleY","composeTransformRelative","dx","dy","offsetX","offset","gestures","offsetY","composeContentStyle","s","tx","ty","scale"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/composers.ts"],"mappings":";;;;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAMA,IAAAC,UAAA,GAAAD,OAAA;AAOA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,MAAME,cAAc,GAAGA,CACtBC,MAA0B,EAC1BC,MAAoB,GAAG,QAAQ,KACD;EAC9B,SAAS;;EAET,MAAM;IAAEC,KAAK;IAAEC,KAAK;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGL,MAAM;EAE9C,QAAQC,MAAM;IACb,KAAK,YAAY;MAChB,OAAO;QAAEK,CAAC,EAAEJ,KAAK;QAAEK,CAAC,EAAEJ;MAAM,CAAC;IAC9B,KAAK,KAAK;MACT,OAAO;QAAEG,CAAC,EAAEJ,KAAK,GAAGE,KAAK,GAAG,CAAC;QAAEG,CAAC,EAAEJ;MAAM,CAAC;IAC1C,KAAK,aAAa;MACjB,OAAO;QAAEG,CAAC,EAAEJ,KAAK,GAAGE,KAAK;QAAEG,CAAC,EAAEJ;MAAM,CAAC;IACtC,KAAK,SAAS;MACb,OAAO;QAAEG,CAAC,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ACJ,CAAC;EACF;EAEA,OAAO;IACNC,SAAS,EAAE,CAAC;MAAEJ;IAAW,CAAC,EAAE;MAAEC;IAAW,CAAC,EAAE;MAAEuB;IAAM,CAAC,CAAC;IACtD,GAAGrB;EACJ,CAAC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","_constants","getAnchorPoint","bounds","anchor","pageX","pageY","width","height","x","y","getAnchorOffset","clampUnit","value","Math","min","max","normalizeRangeProgress","progress","ranges","distance","abs","EPSILON","getUniformScale","scaleX","scaleY","sqrt","getScaleRatio","resolvedScale","currentScale","safeCurrentScale","resolveMotionTransform","computeOptions","interpolationProps","start","end","current","motion","props","composeMotionTransform","scaleTransforms","transform","rotate","rotateX","rotateY","perspective","undefined","push","translateX","translateY","entry","composeSizeAbsolute","params","startAnchor","endAnchor","interpolate","Extrapolation","CLAMP","anchorX","anchorY","anchorOffset","scale","resolvedWidth","resolvedHeight","raw","transformOrigin","composeSizeRelative","geometry","baseX","entering","baseY","composeTransformAbsolute","scaleRatio","resolvedScaleX","resolvedScaleY","composeTransformRelative","dx","dy","offsetX","offset","gestures","offsetY","composeContentStyle","s","tx","ty"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/composers.ts"],"mappings":";;;;;;;;;;AACA,IAAAA,sBAAA,GAAAC,OAAA;AAMA,IAAAC,UAAA,GAAAD,OAAA;AAYA;AACA;AACA;AACA;AACA;AACA;;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWA,MAAME,cAAc,GAAGA,CACtBC,MAA0B,EAC1BC,MAAoB,GAAG,QAAQ,KACD;EAC9B,SAAS;;EAET,MAAM;IAAEC,KAAK;IAAEC,KAAK;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGL,MAAM;EAE9C,QAAQC,MAAM;IACb,KAAK,YAAY;MAChB,OAAO;QAAEK,CAAC,EAAEJ,KAAK;QAAEK,CAAC,EAAEJ;MAAM,CAAC;IAC9B,KAAK,KAAK;MACT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oB,MAAM,CAACpB,cAAc;IACrCC,kBAAkB,EAAEmB,MAAM,CAACnB,kBAAkB;IAC7Cf,QAAQ;IACRC,MAAM;IACNe,KAAK,EAAEkB,MAAM,CAAClB,KAAK;IACnBC,GAAG,EAAEiB,MAAM,CAACjB,GAAG;IACfC,OAAO,EAAE;MACR3B,CAAC,EAAEuC,UAAU;MACbtC,CAAC,EAAEuC,UAAU;MACbY;IACD;EACD,CAAC,CAAC;EAEF,IAAIG,GAAG,EAAE;IACR,OAAO;MACNhB,UAAU,EAAEX,MAAM,CAAC5B,CAAC;MACpBwC,UAAU,EAAEZ,MAAM,CAAC3B,CAAC;MACpBgC,MAAM,EAAEL,MAAM,CAACK,MAAM,IAAI,CAAC;MAC1BC,OAAO,EAAEN,MAAM,CAACM,OAAO,IAAI,CAAC;MAC5BC,OAAO,EAAEP,MAAM,CAACO,OAAO,IAAI,CAAC;MAC5BqB,eAAe,EAAE5B,MAAM,CAAC4B,eAAe;MACvCJ,KAAK,EAAExB,MAAM,CAACwB;IACf,CAAC;EACF;EAEA,OAAO;IACNpB,SAAS,EAAEF,sBAAsB,CAACF,MAAM,EAAE,CAAC;MAAEwB,KAAK,EAAExB,MAAM,CAACwB;IAAM,CAAC,CAAC,CAAC;IACpEI,eAAe,EAAE5B,MAAM,CAAC4B;EACzB,CAAC;AACF","ignoreList":[]}
@@ -6,8 +6,37 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.computeBoundStyles = void 0;
7
7
  var _constants = require("../../../../constants");
8
8
  var _resolver = require("../../../../stores/bounds/internals/resolver");
9
+ var _scroll = require("../../../../stores/scroll.store");
9
10
  var _geometry = require("../geometry");
10
11
  var _composers = require("./composers");
12
+ const getBoundsScrollSnapshot = bounds => {
13
+ "worklet";
14
+
15
+ return bounds?.scroll ?? null;
16
+ };
17
+ const getScreenScrollMetadata = (screenKey, previous, current, next) => {
18
+ "worklet";
19
+
20
+ if (!screenKey) return null;
21
+ if (previous?.route.key === screenKey) return previous.layouts?.scroll ?? null;
22
+ if (current?.route.key === screenKey) return current.layouts?.scroll ?? null;
23
+ if (next?.route.key === screenKey) return next.layouts?.scroll ?? null;
24
+ return null;
25
+ };
26
+ const shiftBounds = (bounds, dx, dy) => {
27
+ "worklet";
28
+
29
+ if (dx === 0 && dy === 0) {
30
+ return bounds;
31
+ }
32
+ return {
33
+ ...bounds,
34
+ x: bounds.x + dx,
35
+ y: bounds.y + dy,
36
+ pageX: bounds.pageX + dx,
37
+ pageY: bounds.pageY + dy
38
+ };
39
+ };
11
40
  const resolveStartEnd = params => {
12
41
  "worklet";
13
42
 
@@ -51,7 +80,42 @@ const resolveStartEnd = params => {
51
80
  hasTargetOverride
52
81
  };
53
82
  }
54
- const start = sourceBounds;
83
+
84
+ /**
85
+ * Teleport continuity: this screen's source content physically renders
86
+ * inside the matched screen's portal host, which travels with that screen's
87
+ * ScrollView. Screen-fixed rects (the source, fullscreen/custom targets)
88
+ * must be expressed in the host's frame by the clamped scroll travel since
89
+ * the destination capture. The destination rect rides with the host, so it
90
+ * stays untouched. Classic two-component links never set a portal host and
91
+ * skip this entirely.
92
+ */
93
+ const isTeleportedSourceElement = resolvedPair.sourcePortalAttachTarget === "matched-screen" && !!currentScreenKey && currentScreenKey === resolvedPair.sourceScreenKey && !!resolvedPair.destinationScreenKey && currentScreenKey !== resolvedPair.destinationScreenKey && params.computeOptions.method !== "content";
94
+ let teleportShiftX = 0;
95
+ let teleportShiftY = 0;
96
+ let sourceScrollShiftX = 0;
97
+ let sourceScrollShiftY = 0;
98
+ if (isTeleportedSourceElement) {
99
+ const capturedScroll = getBoundsScrollSnapshot(destinationBounds);
100
+ const liveScroll = getScreenScrollMetadata(resolvedPair.destinationScreenKey, params.previous, params.current, params.next);
101
+ teleportShiftX = (0, _scroll.getClampedScrollAxisDelta)(liveScroll, capturedScroll, "horizontal");
102
+ teleportShiftY = (0, _scroll.getClampedScrollAxisDelta)(liveScroll, capturedScroll, "vertical");
103
+
104
+ // A source that lives inside its own scroll host travels with that
105
+ // ScrollView in page space. Shifting the start rect by the clamped source
106
+ // scroll travel keeps it aligned with the live placeholder; the host
107
+ // placement applies the identical shift, so the shifts cancel at full
108
+ // progress and the open frame is untouched. Screen-fixed rects (the
109
+ // fullscreen/custom end targets below) are not inside the scroll content
110
+ // and keep only the destination shift.
111
+ if (resolvedPair.sourceHost?.capturesScroll) {
112
+ const capturedSourceScroll = getBoundsScrollSnapshot(sourceBounds);
113
+ const liveSourceScroll = getScreenScrollMetadata(resolvedPair.sourceScreenKey, params.previous, params.current, params.next);
114
+ sourceScrollShiftX = (0, _scroll.getClampedScrollAxisDelta)(liveSourceScroll, capturedSourceScroll, "horizontal");
115
+ sourceScrollShiftY = (0, _scroll.getClampedScrollAxisDelta)(liveSourceScroll, capturedSourceScroll, "vertical");
116
+ }
117
+ }
118
+ const start = shiftBounds(sourceBounds, teleportShiftX - sourceScrollShiftX, teleportShiftY - sourceScrollShiftY);
55
119
  let end = destinationBounds ?? fullscreen;
56
120
  if (isFullscreenTarget) {
57
121
  end = fullscreen;
@@ -60,6 +124,9 @@ const resolveStartEnd = params => {
60
124
  if (typeof customTarget === "object") {
61
125
  end = customTarget;
62
126
  }
127
+ if (hasTargetOverride) {
128
+ end = shiftBounds(end, teleportShiftX, teleportShiftY);
129
+ }
63
130
  return {
64
131
  start,
65
132
  end,
@@ -76,7 +143,8 @@ const computeBoundStyles = ({
76
143
  current,
77
144
  next,
78
145
  progress,
79
- dimensions
146
+ dimensions,
147
+ interpolationProps
80
148
  }, computeOptions = {
81
149
  id: "bound-id"
82
150
  }, resolvedPair) => {
@@ -123,7 +191,8 @@ const computeBoundStyles = ({
123
191
  ranges,
124
192
  end: contentEnd,
125
193
  geometry,
126
- computeOptions
194
+ computeOptions,
195
+ interpolationProps
127
196
  });
128
197
  }
129
198
  const geometry = (0, _geometry.computeRelativeGeometry)({
@@ -139,7 +208,8 @@ const computeBoundStyles = ({
139
208
  progress,
140
209
  ranges,
141
210
  geometry,
142
- computeOptions
211
+ computeOptions,
212
+ interpolationProps
143
213
  };
144
214
  const isSize = computeOptions.method === "size";
145
215
  const isAbsolute = computeOptions.space === "absolute";
@@ -1 +1 @@
1
- {"version":3,"names":["_constants","require","_resolver","_geometry","_composers","resolveStartEnd","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","customTarget","computeBoundStyles","progress","NO_STYLES","ranges","ENTER_RANGE","EXIT_RANGE","method","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/compute.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAMA,IAAAC,SAAA,GAAAD,OAAA;AASA,IAAAE,SAAA,GAAAF,OAAA;AAIA,IAAAG,UAAA,GAAAH,OAAA;AASA,MAAMI,eAAe,GAAIC,MASxB,IAAK;EACL,SAAS;;EAET,MAAMC,QAAQ,GAAG,CAACD,MAAM,CAACE,IAAI;EAC7B,MAAMC,UAAU,GAAG,IAAAC,gCAAqB,EAACJ,MAAM,CAACK,UAAU,CAAC;EAE3D,MAAMC,kBAAkB,GAAGN,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,YAAY;EACxE,MAAMC,eAAe,GAAG,OAAOT,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,QAAQ;EACxE,MAAME,iBAAiB,GAAGJ,kBAAkB,IAAIG,eAAe;EAE/D,MAAME,gBAAgB,GAAGX,MAAM,CAACY,OAAO,EAAEC,KAAK,CAACC,GAAG;EAClD,MAAMC,iBAAiB,GAAGf,MA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AC3B,CAAC,CAAC;IAEF,OAAO,IAAAC,8BAAmB,EAAC;MAC1BnB,KAAK,EAAEa,YAAY;MACnBP,QAAQ;MACRE,MAAM;MACNP,GAAG,EAAEa,UAAU;MACfC,QAAQ;MACRhC;IACD,CAAC,CAAC;EACH;EAEA,MAAMgC,QAAQ,GAAG,IAAAK,iCAAuB,EAAC;IACxCpB,KAAK;IACLC,GAAG;IACHxB,QAAQ;IACRwC,MAAM,EAAElC,cAAc,CAACkC,MAAM;IAC7BC,SAAS,EAAEnC,cAAc,CAACmC;EAC3B,CAAC,CAAC;EAEF,MAAMG,MAA4B,GAAG;IACpCrB,KAAK;IACLC,GAAG;IACHK,QAAQ;IACRE,MAAM;IACNO,QAAQ;IACRhC;EACD,CAAC;EAED,MAAMuC,MAAM,GAAGvC,cAAc,CAAC4B,MAAM,KAAK,MAAM;EAC/C,MAAMY,UAAU,GAAGxC,cAAc,CAACyC,KAAK,KAAK,UAAU;EAEtD,OAAOF,MAAM,GACVC,UAAU,GACT,IAAAE,8BAAmB,EAACJ,MAAM,CAAC,GAC3B,IAAAK,8BAAmB,EAACL,MAAM,CAAC,GAC5BE,UAAU,GACT,IAAAI,mCAAwB,EAACN,MAAM,CAAC,GAChC,IAAAO,mCAAwB,EAACP,MAAM,CAAC;AACrC,CAAC;AAACQ,OAAA,CAAAxB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_constants","require","_resolver","_scroll","_geometry","_composers","getBoundsScrollSnapshot","bounds","scroll","getScreenScrollMetadata","screenKey","previous","current","next","route","key","layouts","shiftBounds","dx","dy","x","y","pageX","pageY","resolveStartEnd","params","entering","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","previousScreenKey","nextScreenKey","resolvedPair","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","isTeleportedSourceElement","sourcePortalAttachTarget","method","teleportShiftX","teleportShiftY","sourceScrollShiftX","sourceScrollShiftY","capturedScroll","liveScroll","getClampedScrollAxisDelta","sourceHost","capturesScroll","capturedSourceScroll","liveSourceScroll","customTarget","computeBoundStyles","progress","interpolationProps","NO_STYLES","ranges","ENTER_RANGE","EXIT_RANGE","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/compute.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAMA,IAAAC,SAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AASA,IAAAG,SAAA,GAAAH,OAAA;AAIA,IAAAI,UAAA,GAAAJ,OAAA;AASA,MAAMK,uBAAuB,GAC5BC,MAAiC,IACD;EAChC,SAAS;;EACT,OACEA,MAAM,EAAqDC,MAAM,IAAI,IAAI;AAE5E,CAAC;AAED,MAAMC,uBAAuB,GAAGA,CAC/BC,SAAwB,EACxBC,QAA2C,EAC3CC,OAA0C,EAC1CC,IAAuC,KACP;EAChC,SAAS;;EACT,IAAI,CAACH,SAAS,EAAE,OAAO,IAAI;EAC3B,IAAIC,QAAQ,EAAEG,KAAK,CAACC,GAAG,KAAKL,SAAS,EACpC,OAAOC,QAAQ,CAACK,OAAO,EAAER,MAAM,IAAI,IAAI;EACxC,IAAII,OAAO,EAAEE,KAAK,CAACC,GAAG,KAAKL,SAAS,EAAE,OAAOE,OAAO,CAACI,OAAO,EAAER,MAAM,IAAI,IAAI;EAC5E,IAAIK,IAAI,EAAEC,KAAK,CAACC,GAAG,KAAKL,SAAS,EAAE,OAAOG,IAAI,CAACG,OAAO,EAAER,MAAM,IAAI,IAAI;EACtE,OAAO,IAAI;AACZ,CAAC;AAED,MAAMS,WAAW,GAAGA,CACnBV,MAA0B,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;MACRG,MAAM;MACNtB,GAAG,EAAE2B,UAAU;MACfC,QAAQ;MACR1C,cAAc;MACdkC;IACD,CAAC,CAAC;EACH;EAEA,MAAMQ,QAAQ,GAAG,IAAAK,iCAAuB,EAAC;IACxClC,KAAK;IACLC,GAAG;IACHnB,QAAQ;IACRiD,MAAM,EAAE5C,cAAc,CAAC4C,MAAM;IAC7BC,SAAS,EAAE7C,cAAc,CAAC6C;EAC3B,CAAC,CAAC;EAEF,MAAMG,MAA4B,GAAG;IACpCnC,KAAK;IACLC,GAAG;IACHmB,QAAQ;IACRG,MAAM;IACNM,QAAQ;IACR1C,cAAc;IACdkC;EACD,CAAC;EAED,MAAMe,MAAM,GAAGjD,cAAc,CAACmB,MAAM,KAAK,MAAM;EAC/C,MAAM+B,UAAU,GAAGlD,cAAc,CAACmD,KAAK,KAAK,UAAU;EAEtD,OAAOF,MAAM,GACVC,UAAU,GACT,IAAAE,8BAAmB,EAACJ,MAAM,CAAC,GAC3B,IAAAK,8BAAmB,EAACL,MAAM,CAAC,GAC5BE,UAAU,GACT,IAAAI,mCAAwB,EAACN,MAAM,CAAC,GAChC,IAAAO,mCAAwB,EAACP,MAAM,CAAC;AACrC,CAAC;AAACQ,OAAA,CAAAxB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -47,11 +47,9 @@ function buildRevealStyles({
47
47
  const bounds = (0, _createBoundsAccessorCore.createBoundsAccessorCore)({
48
48
  getProps: () => props
49
49
  });
50
- const scopedBounds = bounds({
51
- id: tag
52
- });
53
- const link = scopedBounds.getLink();
54
- if (!link?.source?.bounds || !link.destination?.bounds) {
50
+ const scopedBounds = bounds(tag);
51
+ const link = scopedBounds.link();
52
+ if (link?.status !== "complete") {
55
53
  return {};
56
54
  }
57
55
  const sourceBorderRadius = (0, _helpers.getSourceBorderRadius)(link);
@@ -74,15 +72,13 @@ function buildRevealStyles({
74
72
  /* ----------------------------- Focused Screen ----------------------------- */
75
73
 
76
74
  if (focused) {
77
- const contentRaw = link.compute({
78
- raw: true,
75
+ const contentRaw = scopedBounds.math({
79
76
  scaleMode: "uniform",
80
77
  method: "content",
81
78
  target: initialDestinationTarget,
82
79
  progress: transitionProgress
83
80
  });
84
- const maskRaw = link.compute({
85
- raw: true,
81
+ const maskRaw = scopedBounds.math({
86
82
  scaleMode: "uniform",
87
83
  method: "size",
88
84
  space: "absolute",