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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (485) 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 +10 -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 +68 -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 +17 -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 +195 -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/utils/attachment.js +40 -0
  37. package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js.map +1 -0
  38. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js +15 -0
  39. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js.map +1 -0
  40. package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js +71 -0
  41. package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js.map +1 -0
  42. package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js +16 -0
  43. package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js.map +1 -0
  44. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/providers/boundary-owner.provider.js +26 -25
  45. package/lib/commonjs/shared/components/boundary/providers/boundary-owner.provider.js.map +1 -0
  46. package/lib/commonjs/shared/components/boundary/types.js.map +1 -0
  47. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +25 -0
  48. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +1 -0
  49. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/utils/measured-bounds.js +19 -9
  50. package/lib/commonjs/shared/components/boundary/utils/measured-bounds.js.map +1 -0
  51. package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js +105 -0
  52. package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js.map +1 -0
  53. package/lib/commonjs/shared/components/boundary/utils/source-signals.js +48 -0
  54. package/lib/commonjs/shared/components/boundary/utils/source-signals.js.map +1 -0
  55. package/lib/commonjs/shared/components/create-transition-aware-component.js +8 -3
  56. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  57. package/lib/commonjs/shared/components/{integrations/masked-view.js → masked-view.js} +2 -2
  58. package/lib/commonjs/shared/components/masked-view.js.map +1 -0
  59. package/lib/commonjs/shared/components/screen-container/layers/content.js +9 -5
  60. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
  61. package/lib/commonjs/shared/configs/presets.js +6 -6
  62. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  63. package/lib/commonjs/shared/index.js +4 -4
  64. package/lib/commonjs/shared/index.js.map +1 -1
  65. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +4 -2
  66. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
  67. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +7 -3
  68. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
  69. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +8 -1
  70. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  71. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +21 -6
  72. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -1
  73. package/lib/commonjs/shared/providers/screen/origin.provider.js +41 -0
  74. package/lib/commonjs/shared/providers/screen/origin.provider.js.map +1 -0
  75. package/lib/commonjs/shared/providers/screen/styles/constants.js +2 -0
  76. package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
  77. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js +58 -0
  78. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js.map +1 -0
  79. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +7 -0
  80. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
  81. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +2 -1
  82. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  83. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +7 -5
  84. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
  85. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +1 -10
  86. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
  87. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
  88. package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
  89. package/lib/commonjs/shared/stores/bounds/internals/links.js +36 -19
  90. package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
  91. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +6 -4
  92. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  93. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  94. package/lib/commonjs/shared/stores/scroll.store.js +54 -1
  95. package/lib/commonjs/shared/stores/scroll.store.js.map +1 -1
  96. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js +38 -4
  97. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
  98. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +40 -87
  99. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  100. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +6 -67
  101. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  102. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +8 -12
  103. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  104. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js +235 -68
  105. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  106. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +74 -4
  107. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  108. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +5 -9
  109. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  110. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +5 -10
  111. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  112. package/lib/module/blank-stack/components/stack-view.js +3 -2
  113. package/lib/module/blank-stack/components/stack-view.js.map +1 -1
  114. package/lib/module/shared/components/{create-boundary-component → boundary}/components/boundary-target.js +21 -8
  115. package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -0
  116. package/lib/module/shared/components/{create-boundary-component → boundary}/create-boundary-component.js +11 -25
  117. package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -0
  118. package/lib/module/shared/components/boundary/hooks/use-boundary-presence.js.map +1 -0
  119. package/lib/module/shared/components/boundary/hooks/use-initial-destination-measurement.js +110 -0
  120. package/lib/module/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +1 -0
  121. package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.js +4 -5
  122. package/lib/module/shared/components/boundary/hooks/use-initial-source-measurement.js.map +1 -0
  123. package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.js +27 -23
  124. package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -0
  125. package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-refresh-boundary.js +10 -7
  126. package/lib/module/shared/components/boundary/hooks/use-refresh-boundary.js.map +1 -0
  127. package/lib/module/shared/components/{create-boundary-component → boundary}/index.js +8 -1
  128. package/lib/module/shared/components/boundary/index.js.map +1 -0
  129. package/lib/module/shared/components/boundary/portal/components/host.js +94 -0
  130. package/lib/module/shared/components/boundary/portal/components/host.js.map +1 -0
  131. package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js +63 -0
  132. package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -0
  133. package/lib/module/shared/components/boundary/portal/components/portal-provider.js +13 -0
  134. package/lib/module/shared/components/boundary/portal/components/portal-provider.js.map +1 -0
  135. package/lib/module/shared/components/boundary/portal/components/portal.js +190 -0
  136. package/lib/module/shared/components/boundary/portal/components/portal.js.map +1 -0
  137. package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js +69 -0
  138. package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -0
  139. package/lib/module/shared/components/boundary/portal/index.js +6 -0
  140. package/lib/module/shared/components/boundary/portal/index.js.map +1 -0
  141. package/lib/module/shared/components/boundary/portal/stores/host-bounds.store.js +40 -0
  142. package/lib/module/shared/components/boundary/portal/stores/host-bounds.store.js.map +1 -0
  143. package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js +126 -0
  144. package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -0
  145. package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js +53 -0
  146. package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -0
  147. package/lib/module/shared/components/boundary/portal/utils/attachment.js +35 -0
  148. package/lib/module/shared/components/boundary/portal/utils/attachment.js.map +1 -0
  149. package/lib/module/shared/components/boundary/portal/utils/naming.js +10 -0
  150. package/lib/module/shared/components/boundary/portal/utils/naming.js.map +1 -0
  151. package/lib/module/shared/components/boundary/portal/utils/offset-style.js +66 -0
  152. package/lib/module/shared/components/boundary/portal/utils/offset-style.js.map +1 -0
  153. package/lib/module/shared/components/boundary/portal/utils/teleport-control.js +11 -0
  154. package/lib/module/shared/components/boundary/portal/utils/teleport-control.js.map +1 -0
  155. package/lib/module/shared/components/boundary/providers/boundary-owner.provider.js +60 -0
  156. package/lib/module/shared/components/boundary/providers/boundary-owner.provider.js.map +1 -0
  157. package/lib/module/shared/components/boundary/types.js.map +1 -0
  158. package/lib/module/shared/components/boundary/utils/destination-signals.js +20 -0
  159. package/lib/module/shared/components/boundary/utils/destination-signals.js.map +1 -0
  160. package/lib/module/shared/components/{create-boundary-component → boundary}/utils/measured-bounds.js +16 -7
  161. package/lib/module/shared/components/boundary/utils/measured-bounds.js.map +1 -0
  162. package/lib/module/shared/components/boundary/utils/refresh-signals.js +100 -0
  163. package/lib/module/shared/components/boundary/utils/refresh-signals.js.map +1 -0
  164. package/lib/module/shared/components/boundary/utils/source-signals.js +43 -0
  165. package/lib/module/shared/components/boundary/utils/source-signals.js.map +1 -0
  166. package/lib/module/shared/components/create-transition-aware-component.js +8 -3
  167. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  168. package/lib/module/shared/components/{integrations/masked-view.js → masked-view.js} +2 -2
  169. package/lib/module/shared/components/masked-view.js.map +1 -0
  170. package/lib/module/shared/components/screen-container/layers/content.js +10 -6
  171. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  172. package/lib/module/shared/configs/presets.js +6 -6
  173. package/lib/module/shared/configs/presets.js.map +1 -1
  174. package/lib/module/shared/index.js +2 -2
  175. package/lib/module/shared/index.js.map +1 -1
  176. package/lib/module/shared/providers/helpers/measured-bounds-writes.js +4 -2
  177. package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
  178. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +8 -4
  179. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
  180. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +8 -1
  181. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  182. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +20 -6
  183. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -1
  184. package/lib/module/shared/providers/screen/origin.provider.js +33 -0
  185. package/lib/module/shared/providers/screen/origin.provider.js.map +1 -0
  186. package/lib/module/shared/providers/screen/styles/constants.js +2 -0
  187. package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
  188. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js +53 -0
  189. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js.map +1 -0
  190. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +1 -0
  191. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
  192. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +2 -1
  193. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  194. package/lib/module/shared/providers/screen/styles/styles.provider.js +7 -5
  195. package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
  196. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +1 -8
  197. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
  198. package/lib/module/shared/stores/bounds/index.js.map +1 -1
  199. package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
  200. package/lib/module/shared/stores/bounds/internals/links.js +36 -19
  201. package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
  202. package/lib/module/shared/stores/bounds/internals/resolver.js +6 -4
  203. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  204. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  205. package/lib/module/shared/stores/scroll.store.js +50 -0
  206. package/lib/module/shared/stores/scroll.store.js.map +1 -1
  207. package/lib/module/shared/types/animation.types.js.map +1 -1
  208. package/lib/module/shared/types/bounds.types.js.map +1 -1
  209. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js +36 -3
  210. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
  211. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +42 -89
  212. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  213. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +6 -67
  214. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  215. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +8 -13
  216. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  217. package/lib/module/shared/utils/bounds/helpers/styles/composers.js +236 -69
  218. package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  219. package/lib/module/shared/utils/bounds/helpers/styles/compute.js +74 -4
  220. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  221. package/lib/module/shared/utils/bounds/navigation/reveal/build.js +5 -9
  222. package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  223. package/lib/module/shared/utils/bounds/navigation/zoom/build.js +5 -10
  224. package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  225. package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
  226. package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -0
  227. package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts.map +1 -0
  228. package/lib/typescript/shared/components/boundary/hooks/use-boundary-presence.d.ts.map +1 -0
  229. package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-initial-destination-measurement.d.ts +1 -4
  230. package/lib/typescript/shared/components/boundary/hooks/use-initial-destination-measurement.d.ts.map +1 -0
  231. package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.d.ts +0 -2
  232. package/lib/typescript/shared/components/boundary/hooks/use-initial-source-measurement.d.ts.map +1 -0
  233. package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.d.ts +4 -2
  234. package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -0
  235. package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts +10 -0
  236. package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts.map +1 -0
  237. package/lib/typescript/shared/components/{create-boundary-component → boundary}/index.d.ts +8 -2
  238. package/lib/typescript/shared/components/boundary/index.d.ts.map +1 -0
  239. package/lib/typescript/shared/components/boundary/portal/components/host.d.ts +7 -0
  240. package/lib/typescript/shared/components/boundary/portal/components/host.d.ts.map +1 -0
  241. package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts +9 -0
  242. package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map +1 -0
  243. package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts +4 -0
  244. package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts.map +1 -0
  245. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts +19 -0
  246. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts.map +1 -0
  247. package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts +13 -0
  248. package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts.map +1 -0
  249. package/lib/typescript/shared/components/boundary/portal/index.d.ts +4 -0
  250. package/lib/typescript/shared/components/boundary/portal/index.d.ts.map +1 -0
  251. package/lib/typescript/shared/components/boundary/portal/stores/host-bounds.store.d.ts +9 -0
  252. package/lib/typescript/shared/components/boundary/portal/stores/host-bounds.store.d.ts.map +1 -0
  253. package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts +19 -0
  254. package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts.map +1 -0
  255. package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts +11 -0
  256. package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +1 -0
  257. package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts +21 -0
  258. package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts.map +1 -0
  259. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts +3 -0
  260. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts.map +1 -0
  261. package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts +37 -0
  262. package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts.map +1 -0
  263. package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts +3 -0
  264. package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts.map +1 -0
  265. package/lib/typescript/shared/components/{create-boundary-component → boundary}/providers/boundary-owner.provider.d.ts +14 -6
  266. package/lib/typescript/shared/components/boundary/providers/boundary-owner.provider.d.ts.map +1 -0
  267. package/lib/typescript/shared/components/boundary/types.d.ts +78 -0
  268. package/lib/typescript/shared/components/boundary/types.d.ts.map +1 -0
  269. package/lib/typescript/shared/components/{create-boundary-component → boundary}/utils/destination-signals.d.ts +2 -3
  270. package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +1 -0
  271. package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts +12 -0
  272. package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts.map +1 -0
  273. package/lib/typescript/shared/components/{create-boundary-component → boundary}/utils/refresh-signals.d.ts +4 -3
  274. package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts.map +1 -0
  275. package/lib/typescript/shared/components/{create-boundary-component → boundary}/utils/source-signals.d.ts +1 -2
  276. package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts.map +1 -0
  277. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  278. package/lib/typescript/shared/components/masked-view.d.ts.map +1 -0
  279. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
  280. package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
  281. package/lib/typescript/shared/index.d.ts +19 -17
  282. package/lib/typescript/shared/index.d.ts.map +1 -1
  283. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts +3 -1
  284. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
  285. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
  286. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +6 -1
  287. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
  288. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts +9 -3
  289. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts.map +1 -1
  290. package/lib/typescript/shared/providers/screen/origin.provider.d.ts +11 -0
  291. package/lib/typescript/shared/providers/screen/origin.provider.d.ts.map +1 -0
  292. package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
  293. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.d.ts +3 -0
  294. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.d.ts.map +1 -0
  295. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +1 -0
  296. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -1
  297. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +1 -0
  298. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
  299. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts +1 -0
  300. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
  301. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +1 -3
  302. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -1
  303. package/lib/typescript/shared/stores/bounds/index.d.ts +1 -1
  304. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
  305. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts +2 -2
  306. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
  307. package/lib/typescript/shared/stores/bounds/internals/links.d.ts +2 -2
  308. package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
  309. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  310. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +4 -2
  311. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  312. package/lib/typescript/shared/stores/bounds/types.d.ts +47 -12
  313. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  314. package/lib/typescript/shared/stores/scroll.store.d.ts +12 -1
  315. package/lib/typescript/shared/stores/scroll.store.d.ts.map +1 -1
  316. package/lib/typescript/shared/types/animation.types.d.ts +13 -2
  317. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  318. package/lib/typescript/shared/types/bounds.types.d.ts +10 -40
  319. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  320. package/lib/typescript/shared/types/index.d.ts +2 -2
  321. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  322. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +2 -1
  323. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
  324. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts +7 -11
  325. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
  326. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +0 -3
  327. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  328. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +7 -3
  329. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  330. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts +3 -0
  331. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -1
  332. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts +1 -1
  333. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
  334. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -1
  335. package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
  336. package/lib/typescript/shared/utils/bounds/types/options.d.ts +93 -6
  337. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  338. package/package.json +3 -2
  339. package/src/blank-stack/components/stack-view.tsx +4 -3
  340. package/src/shared/components/{create-boundary-component → boundary}/components/boundary-target.tsx +28 -11
  341. package/src/shared/components/{create-boundary-component → boundary}/create-boundary-component.tsx +20 -31
  342. package/src/shared/components/boundary/hooks/use-initial-destination-measurement.ts +156 -0
  343. package/src/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.ts +5 -14
  344. package/src/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.ts +42 -46
  345. package/src/shared/components/{create-boundary-component → boundary}/hooks/use-refresh-boundary.ts +16 -11
  346. package/src/shared/components/{create-boundary-component → boundary}/index.tsx +12 -0
  347. package/src/shared/components/boundary/portal/components/host.tsx +114 -0
  348. package/src/shared/components/boundary/portal/components/portal-boundary-host.tsx +90 -0
  349. package/src/shared/components/boundary/portal/components/portal-provider.tsx +10 -0
  350. package/src/shared/components/boundary/portal/components/portal.tsx +278 -0
  351. package/src/shared/components/boundary/portal/hooks/use-host-measurement.ts +102 -0
  352. package/src/shared/components/boundary/portal/index.ts +3 -0
  353. package/src/shared/components/boundary/portal/stores/host-bounds.store.ts +45 -0
  354. package/src/shared/components/boundary/portal/stores/host-registry.store.ts +182 -0
  355. package/src/shared/components/boundary/portal/stores/portal-boundary-host.store.ts +91 -0
  356. package/src/shared/components/boundary/portal/utils/attachment.ts +48 -0
  357. package/src/shared/components/boundary/portal/utils/naming.ts +10 -0
  358. package/src/shared/components/boundary/portal/utils/offset-style.ts +171 -0
  359. package/src/shared/components/boundary/portal/utils/teleport-control.ts +13 -0
  360. package/src/shared/components/{create-boundary-component → boundary}/providers/boundary-owner.provider.tsx +41 -33
  361. package/src/shared/components/boundary/types.ts +92 -0
  362. package/src/shared/components/boundary/utils/destination-signals.ts +31 -0
  363. package/src/shared/components/{create-boundary-component → boundary}/utils/measured-bounds.ts +34 -11
  364. package/src/shared/components/boundary/utils/refresh-signals.ts +175 -0
  365. package/src/shared/components/boundary/utils/source-signals.ts +63 -0
  366. package/src/shared/components/create-transition-aware-component.tsx +8 -3
  367. package/src/shared/components/{integrations/masked-view.tsx → masked-view.tsx} +2 -2
  368. package/src/shared/components/screen-container/layers/content.tsx +12 -7
  369. package/src/shared/configs/presets.ts +2 -6
  370. package/src/shared/index.ts +13 -5
  371. package/src/shared/providers/helpers/measured-bounds-writes.ts +11 -1
  372. package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +7 -3
  373. package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +16 -0
  374. package/src/shared/providers/screen/descriptors/helpers/get-ancestor-keys.ts +31 -6
  375. package/src/shared/providers/screen/origin.provider.tsx +38 -0
  376. package/src/shared/providers/screen/styles/constants.ts +2 -0
  377. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.ts +74 -0
  378. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +1 -0
  379. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +1 -0
  380. package/src/shared/providers/screen/styles/styles.provider.tsx +5 -3
  381. package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +1 -10
  382. package/src/shared/stores/bounds/index.ts +2 -4
  383. package/src/shared/stores/bounds/internals/entries.ts +4 -4
  384. package/src/shared/stores/bounds/internals/links.ts +52 -18
  385. package/src/shared/stores/bounds/internals/resolver.ts +5 -3
  386. package/src/shared/stores/bounds/internals/state.ts +5 -2
  387. package/src/shared/stores/bounds/types.ts +59 -15
  388. package/src/shared/stores/scroll.store.ts +68 -0
  389. package/src/shared/types/animation.types.ts +17 -2
  390. package/src/shared/types/bounds.types.ts +22 -60
  391. package/src/shared/types/index.ts +5 -0
  392. package/src/shared/utils/bounds/helpers/create-bound-tag.ts +46 -4
  393. package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +65 -116
  394. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +10 -80
  395. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +10 -13
  396. package/src/shared/utils/bounds/helpers/styles/composers.ts +269 -46
  397. package/src/shared/utils/bounds/helpers/styles/compute.ts +134 -2
  398. package/src/shared/utils/bounds/navigation/reveal/build.ts +5 -7
  399. package/src/shared/utils/bounds/navigation/zoom/build.ts +5 -8
  400. package/src/shared/utils/bounds/types/options.ts +105 -6
  401. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +0 -1
  402. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +0 -1
  403. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +0 -1
  404. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +0 -99
  405. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +0 -1
  406. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +0 -1
  407. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +0 -1
  408. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +0 -1
  409. package/lib/commonjs/shared/components/create-boundary-component/index.js.map +0 -1
  410. package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +0 -1
  411. package/lib/commonjs/shared/components/create-boundary-component/types.js.map +0 -1
  412. package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js +0 -75
  413. package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js.map +0 -1
  414. package/lib/commonjs/shared/components/create-boundary-component/utils/measured-bounds.js.map +0 -1
  415. package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js +0 -103
  416. package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js.map +0 -1
  417. package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js +0 -52
  418. package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js.map +0 -1
  419. package/lib/commonjs/shared/components/integrations/masked-view.js.map +0 -1
  420. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +0 -68
  421. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +0 -1
  422. package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js +0 -30
  423. package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +0 -1
  424. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +0 -1
  425. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +0 -1
  426. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +0 -1
  427. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +0 -94
  428. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +0 -1
  429. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +0 -1
  430. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +0 -1
  431. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +0 -1
  432. package/lib/module/shared/components/create-boundary-component/index.js.map +0 -1
  433. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js +0 -60
  434. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +0 -1
  435. package/lib/module/shared/components/create-boundary-component/types.js.map +0 -1
  436. package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js +0 -70
  437. package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js.map +0 -1
  438. package/lib/module/shared/components/create-boundary-component/utils/measured-bounds.js.map +0 -1
  439. package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js +0 -98
  440. package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js.map +0 -1
  441. package/lib/module/shared/components/create-boundary-component/utils/source-signals.js +0 -47
  442. package/lib/module/shared/components/create-boundary-component/utils/source-signals.js.map +0 -1
  443. package/lib/module/shared/components/integrations/masked-view.js.map +0 -1
  444. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +0 -63
  445. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +0 -1
  446. package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js +0 -26
  447. package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +0 -1
  448. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +0 -1
  449. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +0 -1
  450. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +0 -1
  451. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +0 -1
  452. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +0 -1
  453. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +0 -1
  454. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +0 -14
  455. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +0 -1
  456. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +0 -1
  457. package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts.map +0 -1
  458. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +0 -37
  459. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +0 -1
  460. package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts.map +0 -1
  461. package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts +0 -8
  462. package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts.map +0 -1
  463. package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts.map +0 -1
  464. package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts.map +0 -1
  465. package/lib/typescript/shared/components/integrations/masked-view.d.ts.map +0 -1
  466. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts +0 -14
  467. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +0 -1
  468. package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts +0 -17
  469. package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts.map +0 -1
  470. package/src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts +0 -130
  471. package/src/shared/components/create-boundary-component/types.ts +0 -48
  472. package/src/shared/components/create-boundary-component/utils/destination-signals.ts +0 -129
  473. package/src/shared/components/create-boundary-component/utils/refresh-signals.ts +0 -164
  474. package/src/shared/components/create-boundary-component/utils/source-signals.ts +0 -72
  475. package/src/shared/utils/bounds/helpers/create-interpolators.ts +0 -117
  476. package/src/shared/utils/bounds/helpers/styles/interpolate-link-style.ts +0 -43
  477. /package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.js +0 -0
  478. /package/lib/commonjs/shared/components/{create-boundary-component → boundary}/types.js +0 -0
  479. /package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.js +0 -0
  480. /package/lib/module/shared/components/{create-boundary-component → boundary}/types.js +0 -0
  481. /package/lib/typescript/shared/components/{create-boundary-component → boundary}/components/boundary-target.d.ts +0 -0
  482. /package/lib/typescript/shared/components/{create-boundary-component → boundary}/create-boundary-component.d.ts +0 -0
  483. /package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.d.ts +0 -0
  484. /package/lib/typescript/shared/components/{integrations/masked-view.d.ts → masked-view.d.ts} +0 -0
  485. /package/src/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import { Extrapolation, interpolate } from "react-native-reanimated";
4
- import { VISIBLE_STYLE } from "../../../../constants";
4
+ import { EPSILON } from "../../../../constants";
5
5
 
6
6
  /**
7
7
  * Element-level (relative) params shared by size/transform composers.
@@ -130,6 +130,101 @@ const getAnchorOffset = ({
130
130
  };
131
131
  }
132
132
  };
133
+ const clampUnit = value => {
134
+ "worklet";
135
+
136
+ return Math.min(1, Math.max(0, value));
137
+ };
138
+ const normalizeRangeProgress = (progress, ranges) => {
139
+ "worklet";
140
+
141
+ const distance = ranges[1] - ranges[0];
142
+ if (Math.abs(distance) <= EPSILON) {
143
+ return 1;
144
+ }
145
+ return clampUnit((progress - ranges[0]) / distance);
146
+ };
147
+ const getUniformScale = (scaleX, scaleY) => {
148
+ "worklet";
149
+
150
+ if (Math.abs(scaleX - scaleY) <= EPSILON) {
151
+ return scaleX;
152
+ }
153
+ return Math.sqrt(Math.abs(scaleX * scaleY));
154
+ };
155
+ const getScaleRatio = (resolvedScale, currentScale) => {
156
+ "worklet";
157
+
158
+ const safeCurrentScale = Math.abs(currentScale) > EPSILON ? currentScale : 1;
159
+ return resolvedScale / safeCurrentScale;
160
+ };
161
+ const resolveMotionTransform = ({
162
+ computeOptions,
163
+ interpolationProps,
164
+ progress,
165
+ ranges,
166
+ start,
167
+ end,
168
+ current
169
+ }) => {
170
+ "worklet";
171
+
172
+ if (!computeOptions.motion) {
173
+ return current;
174
+ }
175
+ return computeOptions.motion({
176
+ progress: normalizeRangeProgress(progress, ranges),
177
+ current,
178
+ start,
179
+ end,
180
+ props: interpolationProps
181
+ });
182
+ };
183
+ /**
184
+ * Builds the rendered transform stack for a resolved motion: optional
185
+ * perspective first (so rotations project in 3D), translates, optional
186
+ * rotations, then the composer's scale entries — rotation happens in
187
+ * unscaled space around the element center.
188
+ */
189
+ const composeMotionTransform = (motion, scaleTransforms) => {
190
+ "worklet";
191
+
192
+ const transform = [];
193
+ const rotate = motion.rotate ?? 0;
194
+ const rotateX = motion.rotateX ?? 0;
195
+ const rotateY = motion.rotateY ?? 0;
196
+ if (rotate !== 0 || rotateX !== 0 || rotateY !== 0 || motion.perspective !== undefined) {
197
+ transform.push({
198
+ perspective: motion.perspective ?? 1000
199
+ });
200
+ }
201
+ transform.push({
202
+ translateX: motion.x
203
+ }, {
204
+ translateY: motion.y
205
+ });
206
+ if (rotateX !== 0) {
207
+ transform.push({
208
+ rotateX: `${rotateX}deg`
209
+ });
210
+ }
211
+ if (rotateY !== 0) {
212
+ transform.push({
213
+ rotateY: `${rotateY}deg`
214
+ });
215
+ }
216
+ if (rotate !== 0) {
217
+ transform.push({
218
+ rotate: `${rotate}deg`
219
+ });
220
+ }
221
+ if (scaleTransforms) {
222
+ for (const entry of scaleTransforms) {
223
+ transform.push(entry);
224
+ }
225
+ }
226
+ return transform;
227
+ };
133
228
  export function composeSizeAbsolute(params) {
134
229
  "worklet";
135
230
 
@@ -154,24 +249,38 @@ export function composeSizeAbsolute(params) {
154
249
  });
155
250
  const translateX = anchorX - anchorOffset.x;
156
251
  const translateY = anchorY - anchorOffset.y;
252
+ const motion = resolveMotionTransform({
253
+ computeOptions,
254
+ interpolationProps: params.interpolationProps,
255
+ progress,
256
+ ranges,
257
+ start,
258
+ end,
259
+ current: {
260
+ x: translateX,
261
+ y: translateY,
262
+ scale: 1
263
+ }
264
+ });
265
+ const resolvedWidth = width * motion.scale;
266
+ const resolvedHeight = height * motion.scale;
157
267
  if (computeOptions.raw) {
158
268
  return {
159
- width,
160
- height,
161
- translateX,
162
- translateY,
163
- ...VISIBLE_STYLE
269
+ width: resolvedWidth,
270
+ height: resolvedHeight,
271
+ translateX: motion.x,
272
+ translateY: motion.y,
273
+ rotate: motion.rotate ?? 0,
274
+ rotateX: motion.rotateX ?? 0,
275
+ rotateY: motion.rotateY ?? 0,
276
+ transformOrigin: motion.transformOrigin
164
277
  };
165
278
  }
166
279
  return {
167
- width,
168
- height,
169
- transform: [{
170
- translateX
171
- }, {
172
- translateY
173
- }],
174
- ...VISIBLE_STYLE
280
+ width: resolvedWidth,
281
+ height: resolvedHeight,
282
+ transform: composeMotionTransform(motion),
283
+ transformOrigin: motion.transformOrigin
175
284
  };
176
285
  }
177
286
  export function composeSizeRelative(params) {
@@ -201,24 +310,38 @@ export function composeSizeRelative(params) {
201
310
  });
202
311
  const translateX = anchorX - (baseX + anchorOffset.x);
203
312
  const translateY = anchorY - (baseY + anchorOffset.y);
313
+ const motion = resolveMotionTransform({
314
+ computeOptions,
315
+ interpolationProps: params.interpolationProps,
316
+ progress,
317
+ ranges,
318
+ start,
319
+ end,
320
+ current: {
321
+ x: translateX,
322
+ y: translateY,
323
+ scale: 1
324
+ }
325
+ });
326
+ const resolvedWidth = width * motion.scale;
327
+ const resolvedHeight = height * motion.scale;
204
328
  if (computeOptions.raw) {
205
329
  return {
206
- translateX,
207
- translateY,
208
- width,
209
- height,
210
- ...VISIBLE_STYLE
330
+ translateX: motion.x,
331
+ translateY: motion.y,
332
+ rotate: motion.rotate ?? 0,
333
+ rotateX: motion.rotateX ?? 0,
334
+ rotateY: motion.rotateY ?? 0,
335
+ transformOrigin: motion.transformOrigin,
336
+ width: resolvedWidth,
337
+ height: resolvedHeight
211
338
  };
212
339
  }
213
340
  return {
214
- transform: [{
215
- translateX
216
- }, {
217
- translateY
218
- }],
219
- width,
220
- height,
221
- ...VISIBLE_STYLE
341
+ transform: composeMotionTransform(motion),
342
+ transformOrigin: motion.transformOrigin,
343
+ width: resolvedWidth,
344
+ height: resolvedHeight
222
345
  };
223
346
  }
224
347
  export function composeTransformAbsolute(params) {
@@ -236,26 +359,42 @@ export function composeTransformAbsolute(params) {
236
359
  const translateY = geometry.entering ? interpolate(progress, ranges, [start.pageY, end.pageY], Extrapolation.CLAMP) : interpolate(progress, ranges, [end.pageY, start.pageY], Extrapolation.CLAMP);
237
360
  const scaleX = geometry.entering ? interpolate(progress, ranges, [geometry.scaleX, 1], Extrapolation.CLAMP) : interpolate(progress, ranges, [1, 1 / geometry.scaleX], Extrapolation.CLAMP);
238
361
  const scaleY = geometry.entering ? interpolate(progress, ranges, [geometry.scaleY, 1], Extrapolation.CLAMP) : interpolate(progress, ranges, [1, 1 / geometry.scaleY], Extrapolation.CLAMP);
362
+ const currentScale = getUniformScale(scaleX, scaleY);
363
+ const motion = resolveMotionTransform({
364
+ computeOptions,
365
+ interpolationProps: params.interpolationProps,
366
+ progress,
367
+ ranges,
368
+ start,
369
+ end,
370
+ current: {
371
+ x: translateX,
372
+ y: translateY,
373
+ scale: currentScale
374
+ }
375
+ });
376
+ const scaleRatio = getScaleRatio(motion.scale, currentScale);
377
+ const resolvedScaleX = scaleX * scaleRatio;
378
+ const resolvedScaleY = scaleY * scaleRatio;
239
379
  if (computeOptions.raw) {
240
380
  return {
241
- translateX,
242
- translateY,
243
- scaleX,
244
- scaleY,
245
- ...VISIBLE_STYLE
381
+ translateX: motion.x,
382
+ translateY: motion.y,
383
+ rotate: motion.rotate ?? 0,
384
+ rotateX: motion.rotateX ?? 0,
385
+ rotateY: motion.rotateY ?? 0,
386
+ transformOrigin: motion.transformOrigin,
387
+ scaleX: resolvedScaleX,
388
+ scaleY: resolvedScaleY
246
389
  };
247
390
  }
248
391
  return {
249
- transform: [{
250
- translateX
251
- }, {
252
- translateY
253
- }, {
254
- scaleX
392
+ transform: composeMotionTransform(motion, [{
393
+ scaleX: resolvedScaleX
255
394
  }, {
256
- scaleY
257
- }],
258
- ...VISIBLE_STYLE
395
+ scaleY: resolvedScaleY
396
+ }]),
397
+ transformOrigin: motion.transformOrigin
259
398
  };
260
399
  }
261
400
  export function composeTransformRelative(params) {
@@ -271,32 +410,48 @@ export function composeTransformRelative(params) {
271
410
  const translateY = geometry.entering ? interpolate(progress, ranges, [geometry.dy, 0], Extrapolation.CLAMP) : interpolate(progress, ranges, [0, -geometry.dy], Extrapolation.CLAMP);
272
411
  const scaleX = geometry.entering ? interpolate(progress, ranges, [geometry.scaleX, 1], Extrapolation.CLAMP) : interpolate(progress, ranges, [1, 1 / geometry.scaleX], Extrapolation.CLAMP);
273
412
  const scaleY = geometry.entering ? interpolate(progress, ranges, [geometry.scaleY, 1], Extrapolation.CLAMP) : interpolate(progress, ranges, [1, 1 / geometry.scaleY], Extrapolation.CLAMP);
413
+ const offsetX = computeOptions.offset?.x ?? computeOptions.gestures?.x ?? 0;
414
+ const offsetY = computeOptions.offset?.y ?? computeOptions.gestures?.y ?? 0;
415
+ const currentScale = getUniformScale(scaleX, scaleY);
416
+ const motion = resolveMotionTransform({
417
+ computeOptions,
418
+ interpolationProps: params.interpolationProps,
419
+ progress,
420
+ ranges,
421
+ start: params.start,
422
+ end: params.end,
423
+ current: {
424
+ x: translateX,
425
+ y: translateY,
426
+ scale: currentScale
427
+ }
428
+ });
429
+ const scaleRatio = getScaleRatio(motion.scale, currentScale);
430
+ const resolvedScaleX = scaleX * scaleRatio;
431
+ const resolvedScaleY = scaleY * scaleRatio;
274
432
  if (computeOptions.raw) {
275
433
  return {
276
- translateX,
277
- translateY,
278
- scaleX,
279
- scaleY,
280
- ...VISIBLE_STYLE
434
+ translateX: motion.x,
435
+ translateY: motion.y,
436
+ rotate: motion.rotate ?? 0,
437
+ rotateX: motion.rotateX ?? 0,
438
+ rotateY: motion.rotateY ?? 0,
439
+ transformOrigin: motion.transformOrigin,
440
+ scaleX: resolvedScaleX,
441
+ scaleY: resolvedScaleY
281
442
  };
282
443
  }
283
- const offsetX = computeOptions.offset?.x ?? computeOptions.gestures?.x ?? 0;
284
- const offsetY = computeOptions.offset?.y ?? computeOptions.gestures?.y ?? 0;
285
444
  return {
286
445
  transform: [{
287
446
  translateX: offsetX
288
447
  }, {
289
448
  translateY: offsetY
449
+ }, ...composeMotionTransform(motion, [{
450
+ scaleX: resolvedScaleX
290
451
  }, {
291
- translateX
292
- }, {
293
- translateY
294
- }, {
295
- scaleX
296
- }, {
297
- scaleY
298
- }],
299
- ...VISIBLE_STYLE
452
+ scaleY: resolvedScaleY
453
+ }])],
454
+ transformOrigin: motion.transformOrigin
300
455
  };
301
456
  }
302
457
  export function composeContentStyle(params) {
@@ -319,23 +474,35 @@ export function composeContentStyle(params) {
319
474
  const translateX = entering ? interpolate(progress, ranges, [tx, 0], Extrapolation.CLAMP) : interpolate(progress, ranges, [0, tx], Extrapolation.CLAMP);
320
475
  const translateY = entering ? interpolate(progress, ranges, [ty, 0], Extrapolation.CLAMP) : interpolate(progress, ranges, [0, ty], Extrapolation.CLAMP);
321
476
  const scale = entering ? interpolate(progress, ranges, [s, 1], Extrapolation.CLAMP) : interpolate(progress, ranges, [1, s], Extrapolation.CLAMP);
477
+ const motion = resolveMotionTransform({
478
+ computeOptions: params.computeOptions,
479
+ interpolationProps: params.interpolationProps,
480
+ progress,
481
+ ranges,
482
+ start: params.start,
483
+ end: params.end,
484
+ current: {
485
+ x: translateX,
486
+ y: translateY,
487
+ scale
488
+ }
489
+ });
322
490
  if (raw) {
323
491
  return {
324
- translateX,
325
- translateY,
326
- scale,
327
- ...VISIBLE_STYLE
492
+ translateX: motion.x,
493
+ translateY: motion.y,
494
+ rotate: motion.rotate ?? 0,
495
+ rotateX: motion.rotateX ?? 0,
496
+ rotateY: motion.rotateY ?? 0,
497
+ transformOrigin: motion.transformOrigin,
498
+ scale: motion.scale
328
499
  };
329
500
  }
330
501
  return {
331
- transform: [{
332
- translateX
333
- }, {
334
- translateY
335
- }, {
336
- scale
337
- }],
338
- ...VISIBLE_STYLE
502
+ transform: composeMotionTransform(motion, [{
503
+ scale: motion.scale
504
+ }]),
505
+ transformOrigin: motion.transformOrigin
339
506
  };
340
507
  }
341
508
  //# sourceMappingURL=composers.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Extrapolation","interpolate","VISIBLE_STYLE","getAnchorPoint","bounds","anchor","pageX","pageY","width","height","x","y","getAnchorOffset","composeSizeAbsolute","params","start","end","progress","ranges","computeOptions","startAnchor","endAnchor","CLAMP","anchorX","anchorY","anchorOffset","translateX","translateY","raw","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,SACCA,aAAa,EACbC,WAAW,QAGL,yBAAyB;AAChC,SAASC,aAAa,QAAQ,uBAAuB;;AAOrD;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;;AAUA,MAAMC,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,CA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+ {"version":3,"names":["Extrapolation","interpolate","EPSILON","getAnchorPoint","bounds","anchor","pageX","pageY","width","height","x","y","getAnchorOffset","clampUnit","value","Math","min","max","normalizeRangeProgress","progress","ranges","distance","abs","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","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,SACCA,aAAa,EACbC,WAAW,QAGL,yBAAyB;AAChC,SAASC,OAAO,QAAQ,uBAAuB;;AAY/C;AACA;AACA;AACA;AACA;AACA;;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;;AAWA,MAAMC,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;MA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EAAEZ,MAAM,CAAC1B,CAAC;MACpB+B,MAAM,EAAEL,MAAM,CAACK,MAAM,IAAI,CAAC;MAC1BC,OAAO,EAAEN,MAAM,CAACM,OAAO,IAAI,CAAC;MAC5BC,OAAO,EAAEP,MAAM,CAACO,OAAO,IAAI,CAAC;MAC5BmB,eAAe,EAAE1B,MAAM,CAAC0B,eAAe;MACvCJ,KAAK,EAAEtB,MAAM,CAACsB;IACf,CAAC;EACF;EAEA,OAAO;IACNlB,SAAS,EAAEF,sBAAsB,CAACF,MAAM,EAAE,CAAC;MAAEsB,KAAK,EAAEtB,MAAM,CAACsB;IAAM,CAAC,CAAC,CAAC;IACpEI,eAAe,EAAE1B,MAAM,CAAC0B;EACzB,CAAC;AACF","ignoreList":[]}
@@ -2,8 +2,37 @@
2
2
 
3
3
  import { ENTER_RANGE, EXIT_RANGE, FULLSCREEN_DIMENSIONS, NO_STYLES } from "../../../../constants";
4
4
  import { resolveTransitionPair } from "../../../../stores/bounds/internals/resolver";
5
+ import { getClampedScrollAxisDelta } from "../../../../stores/scroll.store";
5
6
  import { computeContentTransformGeometry, computeRelativeGeometry } from "../geometry";
6
7
  import { composeContentStyle, composeSizeAbsolute, composeSizeRelative, composeTransformAbsolute, composeTransformRelative } from "./composers";
8
+ const getBoundsScrollSnapshot = bounds => {
9
+ "worklet";
10
+
11
+ return bounds?.scroll ?? null;
12
+ };
13
+ const getScreenScrollMetadata = (screenKey, previous, current, next) => {
14
+ "worklet";
15
+
16
+ if (!screenKey) return null;
17
+ if (previous?.route.key === screenKey) return previous.layouts?.scroll ?? null;
18
+ if (current?.route.key === screenKey) return current.layouts?.scroll ?? null;
19
+ if (next?.route.key === screenKey) return next.layouts?.scroll ?? null;
20
+ return null;
21
+ };
22
+ const shiftBounds = (bounds, dx, dy) => {
23
+ "worklet";
24
+
25
+ if (dx === 0 && dy === 0) {
26
+ return bounds;
27
+ }
28
+ return {
29
+ ...bounds,
30
+ x: bounds.x + dx,
31
+ y: bounds.y + dy,
32
+ pageX: bounds.pageX + dx,
33
+ pageY: bounds.pageY + dy
34
+ };
35
+ };
7
36
  const resolveStartEnd = params => {
8
37
  "worklet";
9
38
 
@@ -47,7 +76,42 @@ const resolveStartEnd = params => {
47
76
  hasTargetOverride
48
77
  };
49
78
  }
50
- const start = sourceBounds;
79
+
80
+ /**
81
+ * Teleport continuity: this screen's source content physically renders
82
+ * inside the matched screen's portal host, which travels with that screen's
83
+ * ScrollView. Screen-fixed rects (the source, fullscreen/custom targets)
84
+ * must be expressed in the host's frame by the clamped scroll travel since
85
+ * the destination capture. The destination rect rides with the host, so it
86
+ * stays untouched. Classic two-component links never set a portal host and
87
+ * skip this entirely.
88
+ */
89
+ const isTeleportedSourceElement = resolvedPair.sourcePortalAttachTarget === "matched-screen" && !!currentScreenKey && currentScreenKey === resolvedPair.sourceScreenKey && !!resolvedPair.destinationScreenKey && currentScreenKey !== resolvedPair.destinationScreenKey && params.computeOptions.method !== "content";
90
+ let teleportShiftX = 0;
91
+ let teleportShiftY = 0;
92
+ let sourceScrollShiftX = 0;
93
+ let sourceScrollShiftY = 0;
94
+ if (isTeleportedSourceElement) {
95
+ const capturedScroll = getBoundsScrollSnapshot(destinationBounds);
96
+ const liveScroll = getScreenScrollMetadata(resolvedPair.destinationScreenKey, params.previous, params.current, params.next);
97
+ teleportShiftX = getClampedScrollAxisDelta(liveScroll, capturedScroll, "horizontal");
98
+ teleportShiftY = getClampedScrollAxisDelta(liveScroll, capturedScroll, "vertical");
99
+
100
+ // A source that lives inside its own scroll host travels with that
101
+ // ScrollView in page space. Shifting the start rect by the clamped source
102
+ // scroll travel keeps it aligned with the live placeholder; the host
103
+ // placement applies the identical shift, so the shifts cancel at full
104
+ // progress and the open frame is untouched. Screen-fixed rects (the
105
+ // fullscreen/custom end targets below) are not inside the scroll content
106
+ // and keep only the destination shift.
107
+ if (resolvedPair.sourceHost?.capturesScroll) {
108
+ const capturedSourceScroll = getBoundsScrollSnapshot(sourceBounds);
109
+ const liveSourceScroll = getScreenScrollMetadata(resolvedPair.sourceScreenKey, params.previous, params.current, params.next);
110
+ sourceScrollShiftX = getClampedScrollAxisDelta(liveSourceScroll, capturedSourceScroll, "horizontal");
111
+ sourceScrollShiftY = getClampedScrollAxisDelta(liveSourceScroll, capturedSourceScroll, "vertical");
112
+ }
113
+ }
114
+ const start = shiftBounds(sourceBounds, teleportShiftX - sourceScrollShiftX, teleportShiftY - sourceScrollShiftY);
51
115
  let end = destinationBounds ?? fullscreen;
52
116
  if (isFullscreenTarget) {
53
117
  end = fullscreen;
@@ -56,6 +120,9 @@ const resolveStartEnd = params => {
56
120
  if (typeof customTarget === "object") {
57
121
  end = customTarget;
58
122
  }
123
+ if (hasTargetOverride) {
124
+ end = shiftBounds(end, teleportShiftX, teleportShiftY);
125
+ }
59
126
  return {
60
127
  start,
61
128
  end,
@@ -72,7 +139,8 @@ export const computeBoundStyles = ({
72
139
  current,
73
140
  next,
74
141
  progress,
75
- dimensions
142
+ dimensions,
143
+ interpolationProps
76
144
  }, computeOptions = {
77
145
  id: "bound-id"
78
146
  }, resolvedPair) => {
@@ -119,7 +187,8 @@ export const computeBoundStyles = ({
119
187
  ranges,
120
188
  end: contentEnd,
121
189
  geometry,
122
- computeOptions
190
+ computeOptions,
191
+ interpolationProps
123
192
  });
124
193
  }
125
194
  const geometry = computeRelativeGeometry({
@@ -135,7 +204,8 @@ export const computeBoundStyles = ({
135
204
  progress,
136
205
  ranges,
137
206
  geometry,
138
- computeOptions
207
+ computeOptions,
208
+ interpolationProps
139
209
  };
140
210
  const isSize = computeOptions.method === "size";
141
211
  const isAbsolute = computeOptions.space === "absolute";
@@ -1 +1 @@
1
- {"version":3,"names":["ENTER_RANGE","EXIT_RANGE","FULLSCREEN_DIMENSIONS","NO_STYLES","resolveTransitionPair","computeContentTransformGeometry","computeRelativeGeometry","composeContentStyle","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","resolveStartEnd","params","entering","next","fullscreen","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","customTarget","computeBoundStyles","progress","ranges","method","currentOwnsSource","contentStart","contentEnd","geometry","anchor","scaleMode","common","isSize","isAbsolute","space"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/compute.ts"],"mappings":";;AACA,SACCA,WAAW,EACXC,UAAU,EACVC,qBAAqB,EACrBC,SAAS,QACH,uBAAuB;AAC9B,SAASC,qBAAqB,QAAQ,8CAA8C;AASpF,SACCC,+BAA+B,EAC/BC,uBAAuB,QACjB,aAAa;AACpB,SACCC,mBAAmB,EACnBC,mBAAmB,EACnBC,mBAAmB,EACnBC,wBAAwB,EACxBC,wBAAwB,QAElB,aAAa;AAEpB,MAAMC,eAAe,GAAIC,MASxB,IAAK;EACL,SAAS;;EAET,MAAMC,QAAQ,GAAG,CAACD,MAAM,CAACE,IAAI;EAC7B,MAAMC,UAAU,GAAGd,qBAAqB,CAACW,MAAM,CAACI,UAAU,CAAC;EAE3D,MAAMC,kBAAkB,GAAGL,MAAM,CAACM,cAAc,CAACC,MAAM,KAAK,YAAY;EACxE,MAAMC,eAAe,GAAG,OAAOR,MAAM,CAACM,cAAc,CAACC,MAAM,KAAK,QAAQ;EACxE,MAAME,iBAAiB,GAAGJ,kBAAkB,IAAIG,eAAe;EAE/D,MAAME,gBAAgB,GAAGV,MAAM,CAACW,OAAO,EAAEC,KAAK,CAACC,GAAG;EAClD,MAAMC,iBAAiB,GAAGd,MAAM,CAACe,QAAQ,EAAEH,KAAK,CAACC,GAAG;EACpD,MAAMG,aAAa,GAAGhB,MAAM,CAACE,IAAI,EAAEU,KAAK,CAACC,GAAG;EAE5C,MAAMI,YAAY,GACjBjB,MAAM,CAACiB,YAAY,IACnB1B,qBAAqB,CAAC2B,MAAM,CAAClB,MAAM,CAACmB,EAAE,CAAC,EA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ACLC,GAAG;IACHtB,QAAQ;IACRkC,MAAM,EAAE7B,cAAc,CAAC6B,MAAM;IAC7BC,SAAS,EAAE9B,cAAc,CAAC8B;EAC3B,CAAC,CAAC;EAEF,MAAMC,MAA4B,GAAG;IACpCf,KAAK;IACLC,GAAG;IACHK,QAAQ;IACRC,MAAM;IACNK,QAAQ;IACR5B;EACD,CAAC;EAED,MAAMgC,MAAM,GAAGhC,cAAc,CAACwB,MAAM,KAAK,MAAM;EAC/C,MAAMS,UAAU,GAAGjC,cAAc,CAACkC,KAAK,KAAK,UAAU;EAEtD,OAAOF,MAAM,GACVC,UAAU,GACT5C,mBAAmB,CAAC0C,MAAM,CAAC,GAC3BzC,mBAAmB,CAACyC,MAAM,CAAC,GAC5BE,UAAU,GACT1C,wBAAwB,CAACwC,MAAM,CAAC,GAChCvC,wBAAwB,CAACuC,MAAM,CAAC;AACrC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["ENTER_RANGE","EXIT_RANGE","FULLSCREEN_DIMENSIONS","NO_STYLES","resolveTransitionPair","getClampedScrollAxisDelta","computeContentTransformGeometry","computeRelativeGeometry","composeContentStyle","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","getBoundsScrollSnapshot","bounds","scroll","getScreenScrollMetadata","screenKey","previous","current","next","route","key","layouts","shiftBounds","dx","dy","x","y","pageX","pageY","resolveStartEnd","params","entering","fullscreen","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","previousScreenKey","nextScreenKey","resolvedPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","isTeleportedSourceElement","sourcePortalAttachTarget","method","teleportShiftX","teleportShiftY","sourceScrollShiftX","sourceScrollShiftY","capturedScroll","liveScroll","sourceHost","capturesScroll","capturedSourceScroll","liveSourceScroll","customTarget","computeBoundStyles","progress","interpolationProps","ranges","currentOwnsSource","contentStart","contentEnd","geometry","anchor","scaleMode","common","isSize","isAbsolute","space"],"sourceRoot":"../../../../../../../src","sources":["shared/utils/bounds/helpers/styles/compute.ts"],"mappings":";;AACA,SACCA,WAAW,EACXC,UAAU,EACVC,qBAAqB,EACrBC,SAAS,QACH,uBAAuB;AAC9B,SAASC,qBAAqB,QAAQ,8CAA8C;AAEpF,SAASC,yBAAyB,QAAQ,iCAAiC;AAS3E,SACCC,+BAA+B,EAC/BC,uBAAuB,QACjB,aAAa;AACpB,SACCC,mBAAmB,EACnBC,mBAAmB,EACnBC,mBAAmB,EACnBC,wBAAwB,EACxBC,wBAAwB,QAElB,aAAa;AAEpB,MAAMC,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,EAC1BW,EAAU,EACVC,EAAU,KACc;EACxB,SAAS;;EACT,IAAID,EAAE,KAAK,CAAC,IAAIC,EAAE,KAAK,CAAC,EAAE;IACzB,OAAOZ,MAAM;EACd;EAEA,OAAO;IACN,GAAGA,MAAM;IACTa,CAAC,EAAEb,MAAM,CAACa,CAAC,GAAGF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7BC,SAAS,EAAEvC,cAAc,CAACuC;EAC3B,CAAC,CAAC;EAEF,MAAMC,MAA4B,GAAG;IACpC5B,KAAK;IACLC,GAAG;IACHkB,QAAQ;IACRE,MAAM;IACNI,QAAQ;IACRrC,cAAc;IACdgC;EACD,CAAC;EAED,MAAMS,MAAM,GAAGzC,cAAc,CAACkB,MAAM,KAAK,MAAM;EAC/C,MAAMwB,UAAU,GAAG1C,cAAc,CAAC2C,KAAK,KAAK,UAAU;EAEtD,OAAOF,MAAM,GACVC,UAAU,GACTtE,mBAAmB,CAACoE,MAAM,CAAC,GAC3BnE,mBAAmB,CAACmE,MAAM,CAAC,GAC5BE,UAAU,GACTpE,wBAAwB,CAACkE,MAAM,CAAC,GAChCjE,wBAAwB,CAACiE,MAAM,CAAC;AACrC,CAAC","ignoreList":[]}
@@ -43,11 +43,9 @@ export function buildRevealStyles({
43
43
  const bounds = createBoundsAccessorCore({
44
44
  getProps: () => props
45
45
  });
46
- const scopedBounds = bounds({
47
- id: tag
48
- });
49
- const link = scopedBounds.getLink();
50
- if (!link?.source?.bounds || !link.destination?.bounds) {
46
+ const scopedBounds = bounds(tag);
47
+ const link = scopedBounds.link();
48
+ if (link?.status !== "complete") {
51
49
  return {};
52
50
  }
53
51
  const sourceBorderRadius = getSourceBorderRadius(link);
@@ -70,15 +68,13 @@ export function buildRevealStyles({
70
68
  /* ----------------------------- Focused Screen ----------------------------- */
71
69
 
72
70
  if (focused) {
73
- const contentRaw = link.compute({
74
- raw: true,
71
+ const contentRaw = scopedBounds.math({
75
72
  scaleMode: "uniform",
76
73
  method: "content",
77
74
  target: initialDestinationTarget,
78
75
  progress: transitionProgress
79
76
  });
80
- const maskRaw = link.compute({
81
- raw: true,
77
+ const maskRaw = scopedBounds.math({
82
78
  scaleMode: "uniform",
83
79
  method: "size",
84
80
  space: "absolute",