react-native-screen-transitions 3.9.0-alpha.2 → 3.9.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (475) hide show
  1. package/lib/commonjs/shared/components/boundary/components/boundary-target.js +14 -9
  2. package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
  3. package/lib/commonjs/shared/components/boundary/create-boundary-component.js +66 -28
  4. package/lib/commonjs/shared/components/boundary/create-boundary-component.js.map +1 -1
  5. package/lib/commonjs/shared/components/boundary/hooks/{use-boundary-presence.js → lifecycles/use-boundary-presence.js} +8 -4
  6. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js.map +1 -0
  7. package/lib/commonjs/shared/components/boundary/hooks/{use-initial-destination-measurement.js → lifecycles/use-initial-destination-measurement.js} +27 -10
  8. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -0
  9. package/lib/commonjs/shared/components/boundary/hooks/{use-initial-source-measurement.js → lifecycles/use-initial-source-measurement.js} +5 -7
  10. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +1 -0
  11. package/lib/commonjs/shared/components/boundary/hooks/{use-refresh-boundary.js → lifecycles/use-refresh-boundary.js} +4 -4
  12. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -0
  13. package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js +14 -35
  14. package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
  15. package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js +5 -6
  16. package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -1
  17. package/lib/commonjs/shared/components/boundary/index.js +26 -29
  18. package/lib/commonjs/shared/components/boundary/index.js.map +1 -1
  19. package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js +58 -0
  20. package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +1 -0
  21. package/lib/commonjs/shared/components/boundary/portal/components/host.js +20 -4
  22. package/lib/commonjs/shared/components/boundary/portal/components/host.js.map +1 -1
  23. package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js +78 -27
  24. package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -1
  25. package/lib/commonjs/shared/components/boundary/portal/components/portal.js +195 -121
  26. package/lib/commonjs/shared/components/boundary/portal/components/portal.js.map +1 -1
  27. package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js +14 -2
  28. package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -1
  29. package/lib/commonjs/shared/components/boundary/portal/hooks/use-placeholder-styles.js +57 -0
  30. package/lib/commonjs/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +1 -0
  31. package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js +5 -44
  32. package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -1
  33. package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js +37 -5
  34. package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -1
  35. package/lib/commonjs/shared/components/boundary/portal/teleport.js +15 -2
  36. package/lib/commonjs/shared/components/boundary/portal/teleport.js.map +1 -1
  37. package/lib/commonjs/shared/components/boundary/portal/utils/has-local-slot.js +18 -0
  38. package/lib/commonjs/shared/components/boundary/portal/utils/has-local-slot.js.map +1 -0
  39. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js +10 -3
  40. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js.map +1 -1
  41. package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js +28 -48
  42. package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js.map +1 -1
  43. package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js +254 -0
  44. package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js.map +1 -0
  45. package/lib/commonjs/shared/components/boundary/portal/utils/resolve-portal.js +38 -0
  46. package/lib/commonjs/shared/components/boundary/portal/utils/resolve-portal.js.map +1 -0
  47. package/lib/commonjs/shared/components/boundary/portal/utils/shallow-equal.js +29 -0
  48. package/lib/commonjs/shared/components/boundary/portal/utils/shallow-equal.js.map +1 -0
  49. package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js +10 -1
  50. package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js.map +1 -1
  51. package/lib/commonjs/shared/components/boundary/portal/utils/visible-host.js +25 -0
  52. package/lib/commonjs/shared/components/boundary/portal/utils/visible-host.js.map +1 -0
  53. package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +6 -7
  54. package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
  55. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +1 -22
  56. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +1 -1
  57. package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js +0 -21
  58. package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js.map +1 -1
  59. package/lib/commonjs/shared/components/boundary/utils/source-signals.js +4 -9
  60. package/lib/commonjs/shared/components/boundary/utils/source-signals.js.map +1 -1
  61. package/lib/commonjs/shared/components/masked-view.js +5 -0
  62. package/lib/commonjs/shared/components/masked-view.js.map +1 -1
  63. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +18 -8
  64. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
  65. package/lib/commonjs/shared/components/screen-container/layers/content.js +34 -16
  66. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
  67. package/lib/commonjs/shared/components/screen-container/layers/render-component.js +10 -0
  68. package/lib/commonjs/shared/components/screen-container/layers/render-component.js.map +1 -0
  69. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +5 -3
  70. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
  71. package/lib/commonjs/shared/index.js +4 -0
  72. package/lib/commonjs/shared/index.js.map +1 -1
  73. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +6 -3
  74. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
  75. package/lib/commonjs/shared/providers/register-bounds.provider.js +6 -0
  76. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  77. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +1 -0
  78. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  79. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +1 -0
  80. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  81. package/lib/commonjs/shared/providers/screen/styles/helpers/compose-slot-style.js +95 -0
  82. package/lib/commonjs/shared/providers/screen/styles/helpers/compose-slot-style.js.map +1 -0
  83. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +30 -9
  84. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
  85. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +9 -3
  86. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
  87. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +2 -0
  88. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -1
  89. package/lib/commonjs/shared/providers/screen/styles/hooks/slot-resolvers.js +96 -0
  90. package/lib/commonjs/shared/providers/screen/styles/hooks/slot-resolvers.js.map +1 -0
  91. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +16 -3
  92. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  93. package/lib/commonjs/shared/providers/screen/styles/index.js +16 -3
  94. package/lib/commonjs/shared/providers/screen/styles/index.js.map +1 -1
  95. package/lib/commonjs/shared/providers/screen/styles/slot.provider.js +22 -51
  96. package/lib/commonjs/shared/providers/screen/styles/slot.provider.js.map +1 -1
  97. package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js +53 -0
  98. package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -0
  99. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +22 -2
  100. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
  101. package/lib/commonjs/shared/stores/bounds/internals/entries.js +11 -4
  102. package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
  103. package/lib/commonjs/shared/stores/bounds/internals/links.js +134 -51
  104. package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
  105. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +1 -3
  106. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  107. package/lib/commonjs/shared/stores/system.store.js +5 -0
  108. package/lib/commonjs/shared/stores/system.store.js.map +1 -1
  109. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +10 -69
  110. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  111. package/lib/commonjs/shared/utils/bounds/helpers/styles/local-transform.js +59 -0
  112. package/lib/commonjs/shared/utils/bounds/helpers/styles/local-transform.js.map +1 -0
  113. package/lib/module/shared/components/boundary/components/boundary-target.js +12 -7
  114. package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
  115. package/lib/module/shared/components/boundary/create-boundary-component.js +67 -29
  116. package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -1
  117. package/lib/module/shared/components/boundary/hooks/{use-boundary-presence.js → lifecycles/use-boundary-presence.js} +8 -4
  118. package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js.map +1 -0
  119. package/lib/module/shared/components/boundary/hooks/{use-initial-destination-measurement.js → lifecycles/use-initial-destination-measurement.js} +27 -10
  120. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -0
  121. package/lib/module/shared/components/boundary/hooks/{use-initial-source-measurement.js → lifecycles/use-initial-source-measurement.js} +5 -7
  122. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +1 -0
  123. package/lib/module/shared/components/boundary/hooks/{use-refresh-boundary.js → lifecycles/use-refresh-boundary.js} +4 -4
  124. package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -0
  125. package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js +15 -36
  126. package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
  127. package/lib/module/shared/components/boundary/hooks/use-measurer.js +5 -6
  128. package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -1
  129. package/lib/module/shared/components/boundary/index.js +26 -29
  130. package/lib/module/shared/components/boundary/index.js.map +1 -1
  131. package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js +53 -0
  132. package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +1 -0
  133. package/lib/module/shared/components/boundary/portal/components/host.js +21 -5
  134. package/lib/module/shared/components/boundary/portal/components/host.js.map +1 -1
  135. package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js +79 -28
  136. package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -1
  137. package/lib/module/shared/components/boundary/portal/components/portal.js +201 -127
  138. package/lib/module/shared/components/boundary/portal/components/portal.js.map +1 -1
  139. package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js +15 -3
  140. package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -1
  141. package/lib/module/shared/components/boundary/portal/hooks/use-placeholder-styles.js +52 -0
  142. package/lib/module/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +1 -0
  143. package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js +4 -41
  144. package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -1
  145. package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js +35 -4
  146. package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -1
  147. package/lib/module/shared/components/boundary/portal/teleport.js +16 -2
  148. package/lib/module/shared/components/boundary/portal/teleport.js.map +1 -1
  149. package/lib/module/shared/components/boundary/portal/utils/has-local-slot.js +13 -0
  150. package/lib/module/shared/components/boundary/portal/utils/has-local-slot.js.map +1 -0
  151. package/lib/module/shared/components/boundary/portal/utils/naming.js +8 -2
  152. package/lib/module/shared/components/boundary/portal/utils/naming.js.map +1 -1
  153. package/lib/module/shared/components/boundary/portal/utils/offset-style.js +29 -48
  154. package/lib/module/shared/components/boundary/portal/utils/offset-style.js.map +1 -1
  155. package/lib/module/shared/components/boundary/portal/utils/ownership.js +246 -0
  156. package/lib/module/shared/components/boundary/portal/utils/ownership.js.map +1 -0
  157. package/lib/module/shared/components/boundary/portal/utils/resolve-portal.js +33 -0
  158. package/lib/module/shared/components/boundary/portal/utils/resolve-portal.js.map +1 -0
  159. package/lib/module/shared/components/boundary/portal/utils/shallow-equal.js +24 -0
  160. package/lib/module/shared/components/boundary/portal/utils/shallow-equal.js.map +1 -0
  161. package/lib/module/shared/components/boundary/portal/utils/teleport-control.js +8 -0
  162. package/lib/module/shared/components/boundary/portal/utils/teleport-control.js.map +1 -1
  163. package/lib/module/shared/components/boundary/portal/utils/visible-host.js +20 -0
  164. package/lib/module/shared/components/boundary/portal/utils/visible-host.js.map +1 -0
  165. package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +6 -7
  166. package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
  167. package/lib/module/shared/components/boundary/utils/destination-signals.js +2 -23
  168. package/lib/module/shared/components/boundary/utils/destination-signals.js.map +1 -1
  169. package/lib/module/shared/components/boundary/utils/refresh-signals.js +0 -21
  170. package/lib/module/shared/components/boundary/utils/refresh-signals.js.map +1 -1
  171. package/lib/module/shared/components/boundary/utils/source-signals.js +4 -9
  172. package/lib/module/shared/components/boundary/utils/source-signals.js.map +1 -1
  173. package/lib/module/shared/components/masked-view.js +5 -0
  174. package/lib/module/shared/components/masked-view.js.map +1 -1
  175. package/lib/module/shared/components/screen-container/layers/backdrop.js +19 -9
  176. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  177. package/lib/module/shared/components/screen-container/layers/content.js +35 -17
  178. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  179. package/lib/module/shared/components/screen-container/layers/render-component.js +6 -0
  180. package/lib/module/shared/components/screen-container/layers/render-component.js.map +1 -0
  181. package/lib/module/shared/components/screen-container/layers/surface-container.js +5 -3
  182. package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
  183. package/lib/module/shared/index.js +4 -0
  184. package/lib/module/shared/index.js.map +1 -1
  185. package/lib/module/shared/providers/helpers/measured-bounds-writes.js +6 -3
  186. package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
  187. package/lib/module/shared/providers/register-bounds.provider.js +6 -0
  188. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  189. package/lib/module/shared/providers/screen/animation/helpers/derivations.js +1 -0
  190. package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  191. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +1 -0
  192. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  193. package/lib/module/shared/providers/screen/styles/helpers/compose-slot-style.js +89 -0
  194. package/lib/module/shared/providers/screen/styles/helpers/compose-slot-style.js.map +1 -0
  195. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +30 -9
  196. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
  197. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +9 -3
  198. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
  199. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +2 -0
  200. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -1
  201. package/lib/module/shared/providers/screen/styles/hooks/slot-resolvers.js +87 -0
  202. package/lib/module/shared/providers/screen/styles/hooks/slot-resolvers.js.map +1 -0
  203. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +16 -3
  204. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  205. package/lib/module/shared/providers/screen/styles/index.js +2 -1
  206. package/lib/module/shared/providers/screen/styles/index.js.map +1 -1
  207. package/lib/module/shared/providers/screen/styles/slot.provider.js +22 -47
  208. package/lib/module/shared/providers/screen/styles/slot.provider.js.map +1 -1
  209. package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js +47 -0
  210. package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -0
  211. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +19 -1
  212. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
  213. package/lib/module/shared/stores/bounds/internals/entries.js +11 -4
  214. package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
  215. package/lib/module/shared/stores/bounds/internals/links.js +135 -53
  216. package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
  217. package/lib/module/shared/stores/bounds/internals/resolver.js +1 -3
  218. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  219. package/lib/module/shared/stores/system.store.js +5 -0
  220. package/lib/module/shared/stores/system.store.js.map +1 -1
  221. package/lib/module/shared/types/animation.types.js.map +1 -1
  222. package/lib/module/shared/utils/bounds/helpers/styles/compute.js +10 -69
  223. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  224. package/lib/module/shared/utils/bounds/helpers/styles/local-transform.js +52 -0
  225. package/lib/module/shared/utils/bounds/helpers/styles/local-transform.js.map +1 -0
  226. package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts +1 -2
  227. package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
  228. package/lib/typescript/component-stack/components/component-screen.d.ts +1 -1
  229. package/lib/typescript/component-stack/components/component-screen.d.ts.map +1 -1
  230. package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts +1 -2
  231. package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts.map +1 -1
  232. package/lib/typescript/component-stack/types.d.ts +26 -0
  233. package/lib/typescript/component-stack/types.d.ts.map +1 -1
  234. package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts +1 -1
  235. package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts.map +1 -1
  236. package/lib/typescript/native-stack/views/NativeStackView.d.ts +1 -2
  237. package/lib/typescript/native-stack/views/NativeStackView.d.ts.map +1 -1
  238. package/lib/typescript/native-stack/views/useHeaderConfigProps.d.ts +2 -2
  239. package/lib/typescript/shared/adapters/with-screen-transitions/context.d.ts +1 -1
  240. package/lib/typescript/shared/adapters/with-screen-transitions/context.d.ts.map +1 -1
  241. package/lib/typescript/shared/adapters/with-screen-transitions/stack-layout.d.ts +1 -1
  242. package/lib/typescript/shared/adapters/with-screen-transitions/stack-layout.d.ts.map +1 -1
  243. package/lib/typescript/shared/components/activity/variants/activity-container.d.ts +1 -1
  244. package/lib/typescript/shared/components/activity/variants/activity-container.d.ts.map +1 -1
  245. package/lib/typescript/shared/components/activity/variants/activity-screen.d.ts +1 -1
  246. package/lib/typescript/shared/components/activity/variants/activity-screen.d.ts.map +1 -1
  247. package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts +1 -1
  248. package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -1
  249. package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts +0 -1
  250. package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts.map +1 -1
  251. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-boundary-presence.d.ts +11 -0
  252. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-boundary-presence.d.ts.map +1 -0
  253. package/lib/typescript/shared/components/boundary/hooks/{use-initial-destination-measurement.d.ts → lifecycles/use-initial-destination-measurement.d.ts} +2 -2
  254. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -0
  255. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.d.ts +8 -0
  256. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.d.ts.map +1 -0
  257. package/lib/typescript/shared/components/boundary/hooks/{use-refresh-boundary.d.ts → lifecycles/use-refresh-boundary.d.ts} +2 -2
  258. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map +1 -0
  259. package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts +5 -9
  260. package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
  261. package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts +4 -3
  262. package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -1
  263. package/lib/typescript/shared/components/boundary/index.d.ts +35 -24
  264. package/lib/typescript/shared/components/boundary/index.d.ts.map +1 -1
  265. package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts +8 -0
  266. package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts.map +1 -0
  267. package/lib/typescript/shared/components/boundary/portal/components/host.d.ts +2 -2
  268. package/lib/typescript/shared/components/boundary/portal/components/host.d.ts.map +1 -1
  269. package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts +2 -2
  270. package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map +1 -1
  271. package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts +1 -1
  272. package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts.map +1 -1
  273. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts +4 -3
  274. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts.map +1 -1
  275. package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts.map +1 -1
  276. package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts +17 -0
  277. package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts.map +1 -0
  278. package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts +0 -7
  279. package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts.map +1 -1
  280. package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts +16 -1
  281. package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +1 -1
  282. package/lib/typescript/shared/components/boundary/portal/teleport.d.ts +1 -1
  283. package/lib/typescript/shared/components/boundary/portal/teleport.d.ts.map +1 -1
  284. package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts +3 -0
  285. package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts.map +1 -0
  286. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts +2 -1
  287. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts.map +1 -1
  288. package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts +23 -30
  289. package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts.map +1 -1
  290. package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts +35 -0
  291. package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts.map +1 -0
  292. package/lib/typescript/shared/components/boundary/portal/utils/resolve-portal.d.ts +12 -0
  293. package/lib/typescript/shared/components/boundary/portal/utils/resolve-portal.d.ts.map +1 -0
  294. package/lib/typescript/shared/components/boundary/portal/utils/shallow-equal.d.ts +8 -0
  295. package/lib/typescript/shared/components/boundary/portal/utils/shallow-equal.d.ts.map +1 -0
  296. package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts +4 -0
  297. package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts.map +1 -1
  298. package/lib/typescript/shared/components/boundary/portal/utils/visible-host.d.ts +8 -0
  299. package/lib/typescript/shared/components/boundary/portal/utils/visible-host.d.ts.map +1 -0
  300. package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +7 -12
  301. package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
  302. package/lib/typescript/shared/components/boundary/types.d.ts +9 -36
  303. package/lib/typescript/shared/components/boundary/types.d.ts.map +1 -1
  304. package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +1 -1
  305. package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts.map +1 -1
  306. package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts +0 -1
  307. package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts.map +1 -1
  308. package/lib/typescript/shared/components/create-transition-aware-component.d.ts +6 -5
  309. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  310. package/lib/typescript/shared/components/masked-view.d.ts +5 -1
  311. package/lib/typescript/shared/components/masked-view.d.ts.map +1 -1
  312. package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts +1 -1
  313. package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts.map +1 -1
  314. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +1 -1
  315. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
  316. package/lib/typescript/shared/components/scene-view.d.ts +1 -1
  317. package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
  318. package/lib/typescript/shared/components/screen-container/index.d.ts +1 -1
  319. package/lib/typescript/shared/components/screen-container/index.d.ts.map +1 -1
  320. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +1 -1
  321. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  322. package/lib/typescript/shared/components/screen-container/layers/content.d.ts +1 -1
  323. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
  324. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts +1 -1
  325. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
  326. package/lib/typescript/shared/components/screen-container/layers/render-component.d.ts +3 -0
  327. package/lib/typescript/shared/components/screen-container/layers/render-component.d.ts.map +1 -0
  328. package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts +1 -1
  329. package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -1
  330. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +1 -1
  331. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
  332. package/lib/typescript/shared/index.d.ts +731 -683
  333. package/lib/typescript/shared/index.d.ts.map +1 -1
  334. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts +3 -3
  335. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
  336. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  337. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +1 -0
  338. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
  339. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  340. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts +1 -1
  341. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
  342. package/lib/typescript/shared/providers/screen/screen-composer.d.ts +1 -1
  343. package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
  344. package/lib/typescript/shared/providers/screen/styles/components/floating-overlay-layer.d.ts +1 -1
  345. package/lib/typescript/shared/providers/screen/styles/components/floating-overlay-layer.d.ts.map +1 -1
  346. package/lib/typescript/shared/providers/screen/styles/helpers/compose-slot-style.d.ts +4 -0
  347. package/lib/typescript/shared/providers/screen/styles/helpers/compose-slot-style.d.ts.map +1 -0
  348. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -1
  349. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -1
  350. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts +2 -1
  351. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts.map +1 -1
  352. package/lib/typescript/shared/providers/screen/styles/hooks/slot-resolvers.d.ts +11 -0
  353. package/lib/typescript/shared/providers/screen/styles/hooks/slot-resolvers.d.ts.map +1 -0
  354. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +4 -1
  355. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
  356. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +3 -3
  357. package/lib/typescript/shared/providers/screen/styles/index.d.ts +2 -1
  358. package/lib/typescript/shared/providers/screen/styles/index.d.ts.map +1 -1
  359. package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts +5 -10
  360. package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts.map +1 -1
  361. package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts +6 -0
  362. package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts.map +1 -0
  363. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +2 -0
  364. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -1
  365. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
  366. package/lib/typescript/shared/stores/bounds/internals/links.d.ts +4 -3
  367. package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
  368. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  369. package/lib/typescript/shared/stores/bounds/types.d.ts +9 -20
  370. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  371. package/lib/typescript/shared/stores/system.store.d.ts +1 -0
  372. package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
  373. package/lib/typescript/shared/types/animation.types.d.ts +7 -1
  374. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  375. package/lib/typescript/shared/types/index.d.ts +1 -1
  376. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  377. package/lib/typescript/shared/types/screen.types.d.ts +99 -4
  378. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  379. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
  380. package/lib/typescript/shared/utils/bounds/helpers/styles/local-transform.d.ts +6 -0
  381. package/lib/typescript/shared/utils/bounds/helpers/styles/local-transform.d.ts.map +1 -0
  382. package/lib/typescript/shared/utils/bounds/types/options.d.ts +2 -0
  383. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  384. package/package.json +1 -1
  385. package/src/component-stack/types.ts +26 -0
  386. package/src/shared/components/boundary/components/boundary-target.tsx +21 -7
  387. package/src/shared/components/boundary/create-boundary-component.tsx +92 -28
  388. package/src/shared/components/boundary/hooks/{use-boundary-presence.ts → lifecycles/use-boundary-presence.ts} +16 -5
  389. package/src/shared/components/boundary/hooks/{use-initial-destination-measurement.ts → lifecycles/use-initial-destination-measurement.ts} +40 -13
  390. package/src/shared/components/boundary/hooks/{use-initial-source-measurement.ts → lifecycles/use-initial-source-measurement.ts} +7 -9
  391. package/src/shared/components/boundary/hooks/{use-refresh-boundary.ts → lifecycles/use-refresh-boundary.ts} +6 -6
  392. package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +15 -45
  393. package/src/shared/components/boundary/hooks/use-measurer.ts +9 -14
  394. package/src/shared/components/boundary/index.tsx +55 -29
  395. package/src/shared/components/boundary/portal/components/boundary-local-portal-host.tsx +66 -0
  396. package/src/shared/components/boundary/portal/components/host.tsx +20 -5
  397. package/src/shared/components/boundary/portal/components/portal-boundary-host.tsx +112 -46
  398. package/src/shared/components/boundary/portal/components/portal.tsx +263 -134
  399. package/src/shared/components/boundary/portal/hooks/use-host-measurement.ts +23 -2
  400. package/src/shared/components/boundary/portal/hooks/use-placeholder-styles.ts +55 -0
  401. package/src/shared/components/boundary/portal/stores/host-registry.store.ts +4 -51
  402. package/src/shared/components/boundary/portal/stores/portal-boundary-host.store.ts +59 -6
  403. package/src/shared/components/boundary/portal/teleport.ts +28 -3
  404. package/src/shared/components/boundary/portal/utils/has-local-slot.ts +16 -0
  405. package/src/shared/components/boundary/portal/utils/naming.ts +11 -1
  406. package/src/shared/components/boundary/portal/utils/offset-style.ts +42 -137
  407. package/src/shared/components/boundary/portal/utils/ownership.ts +371 -0
  408. package/src/shared/components/boundary/portal/utils/resolve-portal.ts +50 -0
  409. package/src/shared/components/boundary/portal/utils/shallow-equal.ts +25 -0
  410. package/src/shared/components/boundary/portal/utils/teleport-control.ts +12 -0
  411. package/src/shared/components/boundary/portal/utils/visible-host.ts +24 -0
  412. package/src/shared/components/boundary/providers/boundary-root.provider.tsx +9 -18
  413. package/src/shared/components/boundary/types.ts +9 -39
  414. package/src/shared/components/boundary/utils/destination-signals.ts +1 -32
  415. package/src/shared/components/boundary/utils/refresh-signals.ts +0 -41
  416. package/src/shared/components/boundary/utils/source-signals.ts +5 -17
  417. package/src/shared/components/masked-view.tsx +4 -0
  418. package/src/shared/components/screen-container/layers/backdrop.tsx +31 -10
  419. package/src/shared/components/screen-container/layers/content.tsx +61 -22
  420. package/src/shared/components/screen-container/layers/render-component.ts +9 -0
  421. package/src/shared/components/screen-container/layers/surface-container.tsx +5 -4
  422. package/src/shared/index.ts +9 -5
  423. package/src/shared/providers/helpers/measured-bounds-writes.ts +6 -11
  424. package/src/shared/providers/register-bounds.provider.tsx +5 -0
  425. package/src/shared/providers/screen/animation/helpers/derivations.ts +3 -0
  426. package/src/shared/providers/screen/animation/helpers/pipeline.ts +1 -0
  427. package/src/shared/providers/screen/styles/helpers/compose-slot-style.ts +129 -0
  428. package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +45 -8
  429. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +14 -2
  430. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts +3 -0
  431. package/src/shared/providers/screen/styles/hooks/slot-resolvers.tsx +111 -0
  432. package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +21 -3
  433. package/src/shared/providers/screen/styles/index.tsx +8 -3
  434. package/src/shared/providers/screen/styles/slot.provider.tsx +36 -54
  435. package/src/shared/providers/screen/styles/stores/slot-references.store.ts +71 -0
  436. package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +24 -1
  437. package/src/shared/stores/bounds/internals/entries.ts +13 -5
  438. package/src/shared/stores/bounds/internals/links.ts +167 -85
  439. package/src/shared/stores/bounds/internals/resolver.ts +0 -2
  440. package/src/shared/stores/bounds/types.ts +10 -22
  441. package/src/shared/stores/system.store.ts +6 -0
  442. package/src/shared/types/animation.types.ts +8 -1
  443. package/src/shared/types/index.ts +5 -0
  444. package/src/shared/types/screen.types.ts +111 -4
  445. package/src/shared/utils/bounds/helpers/styles/compute.ts +22 -124
  446. package/src/shared/utils/bounds/helpers/styles/local-transform.ts +86 -0
  447. package/src/shared/utils/bounds/types/options.ts +2 -0
  448. package/lib/commonjs/shared/components/boundary/hooks/use-boundary-presence.js.map +0 -1
  449. package/lib/commonjs/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +0 -1
  450. package/lib/commonjs/shared/components/boundary/hooks/use-initial-source-measurement.js.map +0 -1
  451. package/lib/commonjs/shared/components/boundary/hooks/use-refresh-boundary.js.map +0 -1
  452. package/lib/commonjs/shared/components/boundary/portal/resolve-portal.js +0 -36
  453. package/lib/commonjs/shared/components/boundary/portal/resolve-portal.js.map +0 -1
  454. package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js +0 -40
  455. package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js.map +0 -1
  456. package/lib/module/shared/components/boundary/hooks/use-boundary-presence.js.map +0 -1
  457. package/lib/module/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +0 -1
  458. package/lib/module/shared/components/boundary/hooks/use-initial-source-measurement.js.map +0 -1
  459. package/lib/module/shared/components/boundary/hooks/use-refresh-boundary.js.map +0 -1
  460. package/lib/module/shared/components/boundary/portal/resolve-portal.js +0 -31
  461. package/lib/module/shared/components/boundary/portal/resolve-portal.js.map +0 -1
  462. package/lib/module/shared/components/boundary/portal/utils/attachment.js +0 -35
  463. package/lib/module/shared/components/boundary/portal/utils/attachment.js.map +0 -1
  464. package/lib/typescript/shared/components/boundary/hooks/use-boundary-presence.d.ts +0 -9
  465. package/lib/typescript/shared/components/boundary/hooks/use-boundary-presence.d.ts.map +0 -1
  466. package/lib/typescript/shared/components/boundary/hooks/use-initial-destination-measurement.d.ts.map +0 -1
  467. package/lib/typescript/shared/components/boundary/hooks/use-initial-source-measurement.d.ts +0 -9
  468. package/lib/typescript/shared/components/boundary/hooks/use-initial-source-measurement.d.ts.map +0 -1
  469. package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts.map +0 -1
  470. package/lib/typescript/shared/components/boundary/portal/resolve-portal.d.ts +0 -14
  471. package/lib/typescript/shared/components/boundary/portal/resolve-portal.d.ts.map +0 -1
  472. package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts +0 -21
  473. package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts.map +0 -1
  474. package/src/shared/components/boundary/portal/resolve-portal.ts +0 -40
  475. package/src/shared/components/boundary/portal/utils/attachment.ts +0 -48
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.removePairLink = exports.isScreenPairKeyForScreen = exports.getSourceScreenKeyFromPairKey = exports.getSource = exports.getLinkKeyFromTag = exports.getLink = exports.getGroupKeyFromTag = exports.getDestination = exports.getActiveGroupId = exports.ensurePairLinks = exports.ensurePairGroups = exports.createScreenPairKey = exports.createPendingPairKey = exports.createGroupTag = exports.createBoundTag = void 0;
6
+ exports.removePairLink = exports.isScreenPairKeyForScreen = exports.getSourceScreenKeyFromPairKey = exports.getSource = exports.getLinkKeyFromTag = exports.getLink = exports.getGroupKeyFromTag = exports.getDestinationScreenKeyFromPairKey = exports.getDestination = exports.getActiveGroupId = exports.ensurePairSourceRequests = exports.ensurePairLinks = exports.ensurePairGroups = exports.createScreenPairKey = exports.createPendingPairKey = exports.createGroupTag = exports.createBoundTag = void 0;
7
7
  const PAIR_SEPARATOR = "<>";
8
8
  const createScreenPairKey = (sourceScreenKey, destinationScreenKey) => {
9
9
  "worklet";
@@ -25,6 +25,14 @@ const getSourceScreenKeyFromPairKey = pairKey => {
25
25
  return pairKey.slice(0, separatorIndex);
26
26
  };
27
27
  exports.getSourceScreenKeyFromPairKey = getSourceScreenKeyFromPairKey;
28
+ const getDestinationScreenKeyFromPairKey = pairKey => {
29
+ "worklet";
30
+
31
+ const separatorIndex = pairKey.indexOf(PAIR_SEPARATOR);
32
+ if (separatorIndex === -1) return "";
33
+ return pairKey.slice(separatorIndex + PAIR_SEPARATOR.length);
34
+ };
35
+ exports.getDestinationScreenKeyFromPairKey = getDestinationScreenKeyFromPairKey;
28
36
  const isScreenPairKeyForScreen = (pairKey, screenKey) => {
29
37
  "worklet";
30
38
 
@@ -77,7 +85,9 @@ const ensurePairState = (state, pairKey) => {
77
85
  groups: {}
78
86
  };
79
87
  }
80
- state[pairKey].groups ??= {};
88
+ if (!state[pairKey].groups) {
89
+ state[pairKey].groups = {};
90
+ }
81
91
  return state[pairKey];
82
92
  };
83
93
  const ensurePairLinks = (state, pairKey) => {
@@ -92,6 +102,16 @@ const ensurePairGroups = (state, pairKey) => {
92
102
  return ensurePairState(state, pairKey).groups;
93
103
  };
94
104
  exports.ensurePairGroups = ensurePairGroups;
105
+ const ensurePairSourceRequests = (state, pairKey) => {
106
+ "worklet";
107
+
108
+ const pair = ensurePairState(state, pairKey);
109
+ if (!pair.sourceRequests) {
110
+ pair.sourceRequests = {};
111
+ }
112
+ return pair.sourceRequests;
113
+ };
114
+ exports.ensurePairSourceRequests = ensurePairSourceRequests;
95
115
  const removePairLink = (state, pairKey, linkKey) => {
96
116
  "worklet";
97
117
 
@@ -1 +1 @@
1
- {"version":3,"names":["PAIR_SEPARATOR","createScreenPairKey","sourceScreenKey","destinationScreenKey","exports","createPendingPairKey","getSourceScreenKeyFromPairKey","pairKey","separatorIndex","indexOf","slice","isScreenPairKeyForScreen","screenKey","startsWith","endsWith","getLinkKeyFromTag","tag","getGroupKeyFromTag","createGroupTag","group","linkKey","createBoundTag","ensurePairState","state","links","groups","ensurePairLinks","ensurePairGroups","removePairLink","pair","key","getLink","getSource","source","getDestination","destination","getActiveGroupId","activeId"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/link-pairs.helpers.ts"],"mappings":";;;;;;AAYA,MAAMA,cAAc,GAAG,IAAI;AAEpB,MAAMC,mBAAmB,GAAGA,CAClCC,eAA8C,EAC9CC,oBAAwD,KACrC;EACnB,SAAS;;EACT,OAAO,GAAGD,eAAe,GAAGF,cAAc,GAAGG,oBAAoB,EAAE;AACpE,CAAC;AAACC,OAAA,CAAAH,mBAAA,GAAAA,mBAAA;AAEK,MAAMI,oBAAoB,GAChCH,eAA8C,IAC3B;EACnB,SAAS;;EACT,OAAOD,mBAAmB,CAACC,eAAe,EAAE,EAAE,CAAC;AAChD,CAAC;AAACE,OAAA,CAAAC,oBAAA,GAAAA,oBAAA;AAEK,MAAMC,6BAA6B,GACzCC,OAAsB,IACa;EACnC,SAAS;;EACT,MAAMC,cAAc,GAAGD,OAAO,CAACE,OAAO,CAACT,cAAc,CAAC;EACtD,IAAIQ,cAAc,KAAK,CAAC,CAAC,EAAE,OAAOD,OAAO;EACzC,OAAOA,OAAO,CAACG,KAAK,CAAC,CAAC,EAAEF,cAAc,CAAC;AACxC,CAAC;AAACJ,OAAA,CAAAE,6BAAA,GAAAA,6BAAA;AAEK,MAAMK,wBAA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AC;AAACH,OAAA,CAAAwB,cAAA,GAAAA,cAAA;AAEK,MAAMG,OAAO,GAAGA,CACtBR,KAAqB,EACrBhB,OAAsB,EACtBa,OAAgB,KACI;EACpB,SAAS;;EACT,OAAOG,KAAK,CAAChB,OAAO,CAAC,EAAEiB,KAAK,CAACJ,OAAO,CAAC,IAAI,IAAI;AAC9C,CAAC;AAAChB,OAAA,CAAA2B,OAAA,GAAAA,OAAA;AAEK,MAAMC,SAAS,GAAGA,CACxBT,KAAqB,EACrBhB,OAAsB,EACtBa,OAAgB,KACc;EAC9B,SAAS;;EACT,OAAOW,OAAO,CAACR,KAAK,EAAEhB,OAAO,EAAEa,OAAO,CAAC,EAAEa,MAAM,IAAI,IAAI;AACxD,CAAC;AAAC7B,OAAA,CAAA4B,SAAA,GAAAA,SAAA;AAEK,MAAME,cAAc,GAAGA,CAC7BX,KAAqB,EACrBhB,OAAsB,EACtBa,OAAgB,KACmB;EACnC,SAAS;;EACT,OAAOW,OAAO,CAACR,KAAK,EAAEhB,OAAO,EAAEa,OAAO,CAAC,EAAEe,WAAW,IAAI,IAAI;AAC7D,CAAC;AAAC/B,OAAA,CAAA8B,cAAA,GAAAA,cAAA;AAEK,MAAME,gBAAgB,GAAGA,CAC/Bb,KAAqB,EACrBhB,OAAsB,EACtBY,KAAe,KACK;EACpB,SAAS;;EACT,OAAOI,KAAK,CAAChB,OAAO,CAAC,EAAEkB,MAAM,GAAGN,KAAK,CAAC,EAAEkB,QAAQ,IAAI,IAAI;AACzD,CAAC;AAACjC,OAAA,CAAAgC,gBAAA,GAAAA,gBAAA","ignoreList":[]}
1
+ {"version":3,"names":["PAIR_SEPARATOR","createScreenPairKey","sourceScreenKey","destinationScreenKey","exports","createPendingPairKey","getSourceScreenKeyFromPairKey","pairKey","separatorIndex","indexOf","slice","getDestinationScreenKeyFromPairKey","length","isScreenPairKeyForScreen","screenKey","startsWith","endsWith","getLinkKeyFromTag","tag","getGroupKeyFromTag","createGroupTag","group","linkKey","createBoundTag","ensurePairState","state","links","groups","ensurePairLinks","ensurePairGroups","ensurePairSourceRequests","pair","sourceRequests","removePairLink","key","getLink","getSource","source","getDestination","destination","getActiveGroupId","activeId"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/link-pairs.helpers.ts"],"mappings":";;;;;;AAYA,MAAMA,cAAc,GAAG,IAAI;AAEpB,MAAMC,mBAAmB,GAAGA,CAClCC,eAA8C,EAC9CC,oBAAwD,KACrC;EACnB,SAAS;;EACT,OAAO,GAAGD,eAAe,GAAGF,cAAc,GAAGG,oBAAoB,EAAE;AACpE,CAAC;AAACC,OAAA,CAAAH,mBAAA,GAAAA,mBAAA;AAEK,MAAMI,oBAAoB,GAChCH,eAA8C,IAC3B;EACnB,SAAS;;EACT,OAAOD,mBAAmB,CAACC,eAAe,EAAE,EAAE,CAAC;AAChD,CAAC;AAACE,OAAA,CAAAC,oBAAA,GAAAA,oBAAA;AAEK,MAAMC,6BAA6B,GACzCC,OAAsB,IACa;EACnC,SAAS;;EACT,MAAMC,cAAc,GAAGD,OAAO,CAACE,OAAO,CAACT,cAAc,CAAC;EACtD,IAAIQ,cAAc,KAAK,CAAC,CAAC,EAAE,OAAOD,OAAO;EACzC,OAAOA,OAAO,CAACG,KAAK,CAAC,CAAC,EAAEF,cAAc,CAAC;AACxC,CAAC;AAACJ,OAAA,CAAAE,6BAAA,GAAAA,6BAAA;AAEK,MAAMK,kCAAkC,GAC9CJ,OAAsB,IACkB;EACxC,SAAS;;EACT,MAAMC,cAAc,GAAGD,OAAO,CAACE,OAAO,CAACT,cAAc,CAAC;EACtD,IAAIQ,cAAc,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE;EACpC,OAAOD,OAAO,CAACG,KAAK,CAACF,cAAc,GAAGR,cAAc,CAACY,MAAM,CAAC;AAC7D,CAAC;AAACR,OAAA,CAAAO,kCAAA,GAAAA,kCAAA;AAEK,MAAME,wBAAwB,GAAGA,CACvCN,OAAsB,EACtBO,SAAwC,KAC3B;E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K,CAAC,EAAEoB,QAAQ,IAAI,IAAI;AACzD,CAAC;AAACrC,OAAA,CAAAoC,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -39,14 +39,21 @@ const applyEntryPatch = (entry, patch) => {
39
39
  if (patch.styles !== undefined) {
40
40
  entry.styles = patch.styles ?? {};
41
41
  }
42
- if (patch.boundaryConfig === undefined) {
43
- return;
44
- }
45
42
  if (patch.boundaryConfig === null) {
46
43
  delete entry.boundaryConfig;
47
- } else {
44
+ } else if (patch.boundaryConfig !== undefined) {
48
45
  entry.boundaryConfig = patch.boundaryConfig;
49
46
  }
47
+ if (patch.handoff === null) {
48
+ delete entry.handoff;
49
+ } else if (patch.handoff !== undefined) {
50
+ entry.handoff = patch.handoff;
51
+ }
52
+ if (patch.escapeClipping === null) {
53
+ delete entry.escapeClipping;
54
+ } else if (patch.escapeClipping !== undefined) {
55
+ entry.escapeClipping = patch.escapeClipping;
56
+ }
50
57
  };
51
58
  function getEntry(tag, key) {
52
59
  "worklet";
@@ -1 +1 @@
1
- {"version":3,"names":["_keys","require","_state","ensureBoundaryState","state","tag","screens","ensureScreenEntry","screenKey","tagState","bounds","styles","applyEntryPatch","entry","patch","undefined","boundaryConfig","getEntry","key","boundaryRegistry","get","setEntry","modify","removeEntry","hasAnyKeys"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/entries.ts"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,mBAAmB,GAAGA,CAACC,KAA2B,EAAEC,GAAU,KAAK;EACxE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG;MACZC,OAAO,EAAE,CAAC;IACX,CAAC;EACF;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,iBAAiB,GAAGA,CACzBH,KAA2B,EAC3BC,GAAU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,KAAK,EAAEC,GAAG,EAAEG,SAAS,CAAC;IACtDI,eAAe,CAACC,KAAK,EAAEC,KAAK,CAAC;IAC7B,OAAOV,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASmB,WAAWA,CAAClB,GAAU,EAAEG,SAAoB,EAAE;EACtD,SAAS;;EACTW,uBAAgB,CAACG,MAAM,CAAkClB,KAAQ,IAAQ;IACxE,SAAS;;IACT,MAAMK,QAAQ,GAAGL,KAAK,CAACC,GAAG,CAAC;IAC3B,IAAI,CAACI,QAAQ,EAAEH,OAAO,CAACE,SAAS,CAAC,EAAE;MAClC,OAAOJ,KAAK;IACb;IAEA,OAAOK,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC;IAClC,IAAI,CAAC,IAAAgB,gBAAU,EAACf,QAAQ,CAACH,OAAO,CAAC,EAAE;MAClC,OAAOF,KAAK,CAACC,GAAG,CAAC;IAClB;IAEA,OAAOD,KAAK;EACb,CAAC,CAAC;AACH","ignoreList":[]}
1
+ {"version":3,"names":["_keys","require","_state","ensureBoundaryState","state","tag","screens","ensureScreenEntry","screenKey","tagState","bounds","styles","applyEntryPatch","entry","patch","undefined","boundaryConfig","handoff","escapeClipping","getEntry","key","boundaryRegistry","get","setEntry","modify","removeEntry","hasAnyKeys"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/entries.ts"],"mappings":";;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,mBAAmB,GAAGA,CAACC,KAA2B,EAAEC,GAAU,KAAK;EACxE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG;MACZC,OAAO,EAAE,CAAC;IACX,CAAC;EACF;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,iBAAiB,GAAGA,CACzBH,KAA2B,EAC3BC,GAAU,EACVG,SAAo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cAAc;EAC5C;AACD,CAAC;AAED,SAASC,QAAQA,CAACd,GAAU,EAAEe,GAAc,EAAgB;EAC3D,SAAS;;EACT,OAAOC,uBAAgB,CAACC,GAAG,CAAC,CAAC,CAACjB,GAAG,CAAC,EAAEC,OAAO,CAACc,GAAG,CAAC,IAAI,IAAI;AACzD;AAEA,SAASG,QAAQA,CAAClB,GAAU,EAAEG,SAAoB,EAAEM,KAAiB,EAAE;EACtE,SAAS;;EACTO,uBAAgB,CAACG,MAAM,CAAkCpB,KAAQ,IAAQ;IACxE,SAAS;;IACT,MAAMS,KAAK,GAAGN,iBAAiB,CAACH,KAAK,EAAEC,GAAG,EAAEG,SAAS,CAAC;IACtDI,eAAe,CAACC,KAAK,EAAEC,KAAK,CAAC;IAC7B,OAAOV,KAAK;EACb,CAAC,CAAC;AACH;AAEA,SAASqB,WAAWA,CAACpB,GAAU,EAAEG,SAAoB,EAAE;EACtD,SAAS;;EACTa,uBAAgB,CAACG,MAAM,CAAkCpB,KAAQ,IAAQ;IACxE,SAAS;;IACT,MAAMK,QAAQ,GAAGL,KAAK,CAACC,GAAG,CAAC;IAC3B,IAAI,CAACI,QAAQ,EAAEH,OAAO,CAACE,SAAS,CAAC,EAAE;MAClC,OAAOJ,KAAK;IACb;IAEA,OAAOK,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC;IAClC,IAAI,CAAC,IAAAkB,gBAAU,EAACjB,QAAQ,CAACH,OAAO,CAAC,EAAE;MAClC,OAAOF,KAAK,CAACC,GAAG,CAAC;IAClB;IAEA,OAAOD,KAAK;EACb,CAAC,CAAC;AACH","ignoreList":[]}
@@ -8,6 +8,7 @@ exports.getDestination = getDestination;
8
8
  exports.getLink = getLink;
9
9
  exports.getResolvedLink = getResolvedLink;
10
10
  exports.getSource = getSource;
11
+ exports.requestSourceMeasure = requestSourceMeasure;
11
12
  exports.setActiveGroupId = setActiveGroupId;
12
13
  exports.setDestination = setDestination;
13
14
  exports.setSource = setSource;
@@ -18,13 +19,118 @@ const syncLinkStatus = link => {
18
19
 
19
20
  link.status = link.source ? link.destination ? "complete" : "destination-incomplete" : "source-incomplete";
20
21
  };
21
- const createLinkSide = (screenKey, bounds, styles) => {
22
+ const isSharedValueLike = value => {
23
+ "worklet";
24
+
25
+ return value?._isReanimatedSharedValue === true;
26
+ };
27
+ const snapshotSharedValue = value => {
28
+ "worklet";
29
+
30
+ return value.value;
31
+ };
32
+ const snapshotTransformArrayValue = value => {
33
+ "worklet";
34
+
35
+ const snapshot = [];
36
+ for (let index = 0; index < value.length; index++) {
37
+ const snapshotValue = snapshotTransformEntryValue(value[index]);
38
+ if (snapshotValue !== undefined) {
39
+ snapshot.push(snapshotValue);
40
+ }
41
+ }
42
+ return snapshot;
43
+ };
44
+ const snapshotTransformEntryValue = value => {
45
+ "worklet";
46
+
47
+ if (isSharedValueLike(value)) {
48
+ return snapshotSharedValue(value);
49
+ }
50
+ if (Array.isArray(value)) {
51
+ return snapshotTransformArrayValue(value);
52
+ }
53
+ if (typeof value === "function") {
54
+ return undefined;
55
+ }
56
+ return value === null || typeof value !== "object" ? value : undefined;
57
+ };
58
+ const snapshotTransformItem = value => {
59
+ "worklet";
60
+
61
+ if (!value || typeof value !== "object" || Array.isArray(value)) {
62
+ return snapshotTransformEntryValue(value);
63
+ }
64
+ const snapshot = {};
65
+ const source = value;
66
+ let hasValue = false;
67
+ for (const key in source) {
68
+ const snapshotValue = snapshotTransformEntryValue(source[key]);
69
+ if (snapshotValue !== undefined) {
70
+ snapshot[key] = snapshotValue;
71
+ hasValue = true;
72
+ }
73
+ }
74
+ return hasValue ? snapshot : undefined;
75
+ };
76
+ const snapshotTransform = value => {
77
+ "worklet";
78
+
79
+ if (!Array.isArray(value)) {
80
+ return undefined;
81
+ }
82
+ const snapshot = [];
83
+ for (let index = 0; index < value.length; index++) {
84
+ const snapshotValue = snapshotTransformItem(value[index]);
85
+ if (snapshotValue !== undefined) {
86
+ snapshot.push(snapshotValue);
87
+ }
88
+ }
89
+ return snapshot;
90
+ };
91
+
92
+ /**
93
+ * Link styles are measurement metadata, not a general style serializer.
94
+ * Snapshot only the fields bounds currently consume: primitives, top-level
95
+ * shared values, and transform entries. Object-valued non-transform styles are
96
+ * intentionally omitted to avoid retaining opaque/native style objects.
97
+ */
98
+ const snapshotStyles = styles => {
99
+ "worklet";
100
+
101
+ if (!styles || typeof styles !== "object" || Array.isArray(styles)) {
102
+ return {};
103
+ }
104
+ const snapshot = {};
105
+ const source = styles;
106
+ for (const key in source) {
107
+ const value = source[key];
108
+ if (key === "transform") {
109
+ const transform = snapshotTransform(value);
110
+ if (transform !== undefined) {
111
+ snapshot.transform = transform;
112
+ }
113
+ continue;
114
+ }
115
+ if (isSharedValueLike(value)) {
116
+ snapshot[key] = snapshotSharedValue(value);
117
+ continue;
118
+ }
119
+ if (value === null || typeof value !== "object") {
120
+ snapshot[key] = value;
121
+ }
122
+ }
123
+ return snapshot;
124
+ };
125
+ const createLinkSide = (screenKey, bounds, styles, runtimeFlags = {}) => {
22
126
  "worklet";
23
127
 
24
128
  return {
25
129
  screenKey,
26
130
  bounds,
27
- styles
131
+ styles: snapshotStyles(styles),
132
+ handoff: runtimeFlags.handoff ? true : undefined,
133
+ escapeClipping: runtimeFlags.escapeClipping ? true : undefined
28
134
  };
29
135
  };
30
136
  const writePairLink = (state, pairKey, linkKey, link) => {
@@ -55,32 +161,16 @@ const writeDestination = (state, pairKey, linkKey, screenKey, bounds, styles, gr
55
161
  };
56
162
  link.group = group ?? link.group;
57
163
  link.destination = destination;
58
- link.initialDestination ??= destination;
164
+ if (!link.initialDestination) {
165
+ link.initialDestination = destination;
166
+ }
59
167
  syncLinkStatus(link);
60
168
  writePairLink(state, pairKey, linkKey, link);
61
169
  if (link.group) {
62
170
  writeGroup(state, pairKey, link.group, linkKey);
63
171
  }
64
172
  };
65
- const promotePendingSource = (state, pairKey, linkKey) => {
66
- "worklet";
67
-
68
- if ((0, _linkPairs.getLink)(state, pairKey, linkKey)) return;
69
- const sourceScreenKey = (0, _linkPairs.getSourceScreenKeyFromPairKey)(pairKey);
70
- const pendingPairKey = (0, _linkPairs.createPendingPairKey)(sourceScreenKey);
71
- if (pendingPairKey === pairKey) return;
72
- const pendingLink = (0, _linkPairs.getLink)(state, pendingPairKey, linkKey);
73
- if (!pendingLink) return;
74
- writePairLink(state, pairKey, linkKey, pendingLink);
75
- if (pendingLink.group) {
76
- const pendingGroupState = state[pendingPairKey]?.groups?.[pendingLink.group];
77
- if (pendingGroupState) {
78
- writeGroup(state, pairKey, pendingLink.group, pendingGroupState.activeId, pendingGroupState.initialId);
79
- }
80
- }
81
- (0, _linkPairs.removePairLink)(state, pendingPairKey, linkKey);
82
- };
83
- function setSource(pairKey, tag, screenKey, bounds, styles = {}, group, portalAttachTarget, sourceHost) {
173
+ function setSource(pairKey, tag, screenKey, bounds, styles = {}, group, runtimeFlags = {}) {
84
174
  "worklet";
85
175
 
86
176
  _state.pairs.modify(state => {
@@ -89,13 +179,8 @@ function setSource(pairKey, tag, screenKey, bounds, styles = {}, group, portalAt
89
179
  const linkKey = (0, _linkPairs.getLinkKeyFromTag)(tag);
90
180
  const pairLinks = (0, _linkPairs.ensurePairLinks)(state, pairKey);
91
181
  const existingLink = pairLinks[linkKey];
92
-
93
- // Refresh paths may re-measure the source without portal context;
94
- // keep the previously recorded host in that case.
95
182
  const source = {
96
- ...createLinkSide(screenKey, bounds, styles),
97
- portalAttachTarget: portalAttachTarget ?? existingLink?.source?.portalAttachTarget,
98
- sourceHost: sourceHost ?? existingLink?.source?.sourceHost
183
+ ...createLinkSide(screenKey, bounds, styles, runtimeFlags)
99
184
  };
100
185
  const link = existingLink ?? {
101
186
  group,
@@ -106,13 +191,12 @@ function setSource(pairKey, tag, screenKey, bounds, styles = {}, group, portalAt
106
191
  };
107
192
  link.group = group ?? link.group;
108
193
  link.source = source;
109
- link.initialSource ??= source;
194
+ if (!link.initialSource) {
195
+ link.initialSource = source;
196
+ }
110
197
  syncLinkStatus(link);
111
198
  pairLinks[linkKey] = link;
112
- const pendingPairKey = (0, _linkPairs.createPendingPairKey)(screenKey);
113
- if (pendingPairKey !== pairKey) {
114
- (0, _linkPairs.removePairLink)(state, pendingPairKey, linkKey);
115
- }
199
+ delete state[pairKey]?.sourceRequests?.[linkKey];
116
200
  return state;
117
201
  });
118
202
  }
@@ -123,7 +207,6 @@ function setDestination(pairKey, tag, screenKey, bounds, styles = {}, group) {
123
207
  "worklet";
124
208
 
125
209
  const linkKey = (0, _linkPairs.getLinkKeyFromTag)(tag);
126
- promotePendingSource(state, pairKey, linkKey);
127
210
  writeDestination(state, pairKey, linkKey, screenKey, bounds, styles, group);
128
211
  return state;
129
212
  });
@@ -138,6 +221,21 @@ function setActiveGroupId(pairKey, group, tag) {
138
221
  return state;
139
222
  });
140
223
  }
224
+ function requestSourceMeasure(pairKey, tag) {
225
+ "worklet";
226
+
227
+ _state.pairs.modify(state => {
228
+ "worklet";
229
+
230
+ const linkKey = (0, _linkPairs.getLinkKeyFromTag)(tag);
231
+ const link = (0, _linkPairs.getLink)(state, pairKey, linkKey);
232
+ if (link?.source || state[pairKey]?.sourceRequests?.[linkKey]) {
233
+ return state;
234
+ }
235
+ (0, _linkPairs.ensurePairSourceRequests)(state, pairKey)[linkKey] = true;
236
+ return state;
237
+ });
238
+ }
141
239
  function getActiveGroupId(pairKey, group) {
142
240
  "worklet";
143
241
 
@@ -153,28 +251,13 @@ const hasSourceLink = link => {
153
251
 
154
252
  return !!link?.source;
155
253
  };
156
- const getPendingSourceLink = (state, pairKey, linkKey) => {
157
- "worklet";
158
-
159
- const sourceScreenKey = (0, _linkPairs.getSourceScreenKeyFromPairKey)(pairKey);
160
- const pendingPairKey = (0, _linkPairs.createPendingPairKey)(sourceScreenKey);
161
- if (pendingPairKey === pairKey) return null;
162
- return (0, _linkPairs.getLink)(state, pendingPairKey, linkKey);
163
- };
164
254
  function getResolvedLink(pairKey, tag) {
165
255
  "worklet";
166
256
 
167
257
  const state = _state.pairs.get();
168
258
  const linkKey = (0, _linkPairs.getLinkKeyFromTag)(tag);
169
259
  const group = (0, _linkPairs.getGroupKeyFromTag)(tag);
170
- const requestedLink = (0, _linkPairs.getLink)(state, pairKey, linkKey);
171
-
172
- // Press-triggered zoom captures the source before navigation under a pending
173
- // source<> pair. If the destination screen has no Boundary.View, nothing
174
- // promotes that source into source<>destination, but zoom can still animate to
175
- // its default top target from the pending source bounds.
176
- const fallbackPendingLink = requestedLink ? null : getPendingSourceLink(state, pairKey, linkKey);
177
- const link = requestedLink ?? fallbackPendingLink;
260
+ const link = (0, _linkPairs.getLink)(state, pairKey, linkKey);
178
261
 
179
262
  // Group active ids can update before the new member has a full source/destination
180
263
  // link. As soon as the requested member has source bounds, prefer it; only
@@ -187,7 +270,7 @@ function getResolvedLink(pairKey, tag) {
187
270
  }
188
271
  const initialId = state[pairKey]?.groups?.[group]?.initialId;
189
272
  if (initialId) {
190
- const initialLink = (0, _linkPairs.getLink)(state, pairKey, initialId) ?? getPendingSourceLink(state, pairKey, initialId);
273
+ const initialLink = (0, _linkPairs.getLink)(state, pairKey, initialId);
191
274
  if (hasSourceLink(initialLink)) {
192
275
  return {
193
276
  tag: (0, _linkPairs.createGroupTag)(group, initialId),
@@ -1 +1 @@
1
- {"version":3,"names":["_linkPairs","require","_state","syncLinkStatus","link","status","source","destination","createLinkSide","screenKey","bounds","styles","writePairLink","state","pairKey","linkKey","ensurePairLinks","writeGroup","group","activeId","initialId","previousInitialId","groups","ensurePairGroups","writeDestination","existingLink","getPairLink","initialDestination","promotePendingSource","sourceScreenKey","getSourceScreenKeyFromPairKey","pendingPairKey","createPendingPairKey","pendingLink","pendingGroupState","removePairLink","setSource","tag","portalAttachTarget","sourceHost","pairs","modify","getLinkKeyFromTag","pairLinks","initialSource","setDestination","setActiveGroupId","getActiveGroupId","getPairActiveGroupId","get","getLink","hasSourceLink","getPendingSourceLink","getResolvedLink","getGroupKeyFromTag","requestedLink","fallbackPendingLink","initialLink","createGroupTag","getSource","getPairSource","getDestination","getPairDestination"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/links.ts"],"mappings":";;;;;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AA0BA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAIC,IAAa,IAAK;EACzC,SAAS;;EACTA,IAAI,CAACC,MAAM,GAAGD,IAAI,CAACE,MAAM,GACtBF,IAAI,CAACG,WAAW,GACf,UAAU,GACV,wBAAwB,GACzB,mBAAmB;AACvB,CAAC;AAED,MAAMC,cAAc,GAAGA,CACtBC,SAAoB,EACpBC,MAA0B,EAC1BC,MAAkB,KACd;EACJ,SAAS;;EACT,OAAO;IACNF,SAAS;IACTC,MAAM;IACNC;EACD,CAAC;AACF,CAAC;AAED,MAAMC,aAAa,GAAGA,CACrBC,KAAqB,EACrBC,OAAsB,EACtBC,OAAgB,EAChBX,IAAa,KACT;EACJ,SAAS;;EACT,IAAAY,0BAAe,EAACH,KAAK,EAAEC,OAAO,CAAC,CAACC,OAAO,CAAC,GAAGX,IAAI;AAChD,CAAC;AAED,MAAMa,UAAU,GAAGA,CAClBJ,KAAqB,EACrBC,OAAsB,EACtBI,KAAe,EACfC,QAAiB,EACjBC,SAAmB,KACf;EACJ,SAAS;;EACT,MAAMC,iBAAiB,GAAGR,KAAK,CAACC,OAAO,CAAC,EAAEQ,MAAM,GAAGJ,KAAK,CAAC,EAAEE,SAAS;EAEpE,IAAAG,2BAAgB,EAACV,KAAK,EAAEC,OAAO,CAAC,CAACI,KAAK,CAAC,GAAG;IACzCC,QAAQ;IACRC,SAAS,EAAEC,iBAAiB,IAAID,SAAS,IAAID;EAC9C,CAAC;AACF,CAAC;AAED,MAAMK,gBAAgB,GAAGA,CACxBX,KAAqB,EACrBC,OAAsB,EACtBC,OAAgB,EAChBN,SAAoB,EACpBC,MAA0B,EAC1BC,MAAkB,EAClBO,KAAgB,KACZ;EACJ,SAAS;;EACT,MAAMO,YAAY,GAAG,IAAAC,kBAAW,EAACb,KA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AMX,IAAI,GAAGmD,aAAa,IAAIC,mBAAmB;;EAEjD;EACA;EACA;EACA,IAAI,CAACtC,KAAK,IAAIiC,aAAa,CAAC/C,IAAI,CAAC,EAAE;IAClC,OAAO;MACNiC,GAAG;MACHjC;IACD,CAAC;EACF;EAEA,MAAMgB,SAAS,GAAGP,KAAK,CAACC,OAAO,CAAC,EAAEQ,MAAM,GAAGJ,KAAK,CAAC,EAAEE,SAAS;EAC5D,IAAIA,SAAS,EAAE;IACd,MAAMqC,WAAW,GAChB,IAAA/B,kBAAW,EAACb,KAAK,EAAEC,OAAO,EAAEM,SAAS,CAAC,IACtCgC,oBAAoB,CAACvC,KAAK,EAAEC,OAAO,EAAEM,SAAS,CAAC;IAEhD,IAAI+B,aAAa,CAACM,WAAW,CAAC,EAAE;MAC/B,OAAO;QACNpB,GAAG,EAAE,IAAAqB,yBAAc,EAACxC,KAAK,EAAEE,SAAS,CAAC;QACrChB,IAAI,EAAEqD;MACP,CAAC;IACF;EACD;EAEA,OAAO;IACNpB,GAAG;IACHjC;EACD,CAAC;AACF;AAEA,SAASuD,SAASA,CACjB7C,OAAsB,EACtBuB,GAAU,EACiB;EAC3B,SAAS;;EACT,OAAO,IAAAuB,oBAAa,EAACpB,YAAK,CAACS,GAAG,CAAC,CAAC,EAAEnC,OAAO,EAAE,IAAA4B,4BAAiB,EAACL,GAAG,CAAC,CAAC;AACnE;AAEA,SAASwB,cAAcA,CACtB/C,OAAsB,EACtBuB,GAAU,EACsB;EAChC,SAAS;;EACT,OAAO,IAAAyB,yBAAkB,EAACtB,YAAK,CAACS,GAAG,CAAC,CAAC,EAAEnC,OAAO,EAAE,IAAA4B,4BAAiB,EAACL,GAAG,CAAC,CAAC;AACxE","ignoreList":[]}
1
+ {"version":3,"names":["_linkPairs","require","_state","syncLinkStatus","link","status","source","destination","isSharedValueLike","value","_isReanimatedSharedValue","snapshotSharedValue","snapshotTransformArrayValue","snapshot","index","length","snapshotValue","snapshotTransformEntryValue","undefined","push","Array","isArray","snapshotTransformItem","hasValue","key","snapshotTransform","snapshotStyles","styles","transform","createLinkSide","screenKey","bounds","runtimeFlags","handoff","escapeClipping","writePairLink","state","pairKey","linkKey","ensurePairLinks","writeGroup","group","activeId","initialId","previousInitialId","groups","ensurePairGroups","writeDestination","existingLink","getPairLink","initialDestination","setSource","tag","pairs","modify","getLinkKeyFromTag","pairLinks","initialSource","sourceRequests","setDestination","setActiveGroupId","requestSourceMeasure","ensurePairSourceRequests","getActiveGroupId","getPairActiveGroupId","get","getLink","hasSourceLink","getResolvedLink","getGroupKeyFromTag","initialLink","createGroupTag","getSource","getPairSource","getDestination","getPairDestination"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/links.ts"],"mappings":";;;;;;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAuBA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAIC,IAAa,IAAK;EACzC,SAAS;;EACTA,IAAI,CAACC,MAAM,GAAGD,IAAI,CAACE,MAAM,GACtBF,IAAI,CAACG,WAAW,GACf,UAAU,GACV,wBAAwB,GACzB,mBAAmB;AACvB,CAAC;AAQD,MAAMC,iBAAiB,GAAIC,KAAc,IAA+B;EACvE,SAAS;;EACT,OACEA,KAAK,EAAsCC,wBAAwB,KACpE,IAAI;AAEN,CAAC;AAED,MAAMC,mBAAmB,GAAIF,KAAsB,IAAc;EAChE,SAAS;;EACT,OAAOA,KAAK,CAACA,KAAK;AACnB,CAAC;AAED,MAAMG,2BAA2B,GAChCH,KAAgB,IACW;EAC3B,SAAS;;EACT,MAAMI,QAAmB,GAAG,EAAE;EAE9B,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGL,KAAK,CAACM,MAAM,EAAED,KAAK,EAAE,EAAE;IAClD,MAAME,aAAa,GAAGC,2BAA2B,CAACR,KAAK,CAACK,KAAK,CAAC,CAAC;IAC/D,IAAIE,aAAa,KAAKE,SAAS,EAAE;MAChCL,QAAQ,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AW,EAACb,KAAK,EAAEC,OAAO,EAAEC,OAAO,CAAC;;EAEjD;EACA;EACA;EACA,IAAI,CAACG,KAAK,IAAI0B,aAAa,CAAC/D,IAAI,CAAC,EAAE;IAClC,OAAO;MACNgD,GAAG;MACHhD;IACD,CAAC;EACF;EAEA,MAAMuC,SAAS,GAAGP,KAAK,CAACC,OAAO,CAAC,EAAEQ,MAAM,GAAGJ,KAAK,CAAC,EAAEE,SAAS;EAC5D,IAAIA,SAAS,EAAE;IACd,MAAM2B,WAAW,GAAG,IAAArB,kBAAW,EAACb,KAAK,EAAEC,OAAO,EAAEM,SAAS,CAAC;IAE1D,IAAIwB,aAAa,CAACG,WAAW,CAAC,EAAE;MAC/B,OAAO;QACNlB,GAAG,EAAE,IAAAmB,yBAAc,EAAC9B,KAAK,EAAEE,SAAS,CAAC;QACrCvC,IAAI,EAAEkE;MACP,CAAC;IACF;EACD;EAEA,OAAO;IACNlB,GAAG;IACHhD;EACD,CAAC;AACF;AAEA,SAASoE,SAASA,CACjBnC,OAAsB,EACtBe,GAAU,EACiB;EAC3B,SAAS;;EACT,OAAO,IAAAqB,oBAAa,EAACpB,YAAK,CAACY,GAAG,CAAC,CAAC,EAAE5B,OAAO,EAAE,IAAAkB,4BAAiB,EAACH,GAAG,CAAC,CAAC;AACnE;AAEA,SAASsB,cAAcA,CACtBrC,OAAsB,EACtBe,GAAU,EACsB;EAChC,SAAS;;EACT,OAAO,IAAAuB,yBAAkB,EAACtB,YAAK,CAACY,GAAG,CAAC,CAAC,EAAE5B,OAAO,EAAE,IAAAkB,4BAAiB,EAACH,GAAG,CAAC,CAAC;AACxE","ignoreList":[]}
@@ -27,9 +27,7 @@ function resolveTransitionPair(tag, context) {
27
27
  sourceStyles: matchedLink?.source?.styles ?? null,
28
28
  destinationStyles: matchedLink?.destination?.styles ?? null,
29
29
  sourceScreenKey: matchedLink?.source?.screenKey ?? null,
30
- destinationScreenKey: matchedLink?.destination?.screenKey ?? null,
31
- sourcePortalAttachTarget: matchedLink?.source?.portalAttachTarget,
32
- sourceHost: matchedLink?.source?.sourceHost
30
+ destinationScreenKey: matchedLink?.destination?.screenKey ?? null
33
31
  };
34
32
  }
35
33
  //# sourceMappingURL=resolver.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_linkPairs","require","_links","resolvePairKey","context","entering","previousScreenKey","currentScreenKey","createScreenPairKey","nextScreenKey","resolveTransitionPair","tag","pairKey","matchedLink","getResolvedLink","link","sourceBounds","source","bounds","destinationBounds","destination","sourceStyles","styles","destinationStyles","sourceScreenKey","screenKey","destinationScreenKey","sourcePortalAttachTarget","portalAttachTarget","sourceHost"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OAAA;AAEA,SAASE,cAAcA,CACtBC,OAAiC,EACV;EACvB,SAAS;;EAET,IAAIA,OAAO,CAACC,QAAQ,EAAE;IACrB,IAAI,CAACD,OAAO,CAACE,iBAAiB,IAAI,CAACF,OAAO,CAACG,gBAAgB,EAAE,OAAO,IAAI;IACxE,OAAO,IAAAC,8BAAmB,EACzBJ,OAAO,CAACE,iBAAiB,EACzBF,OAAO,CAACG,gBACT,CAAC;EACF;EAEA,IAAI,CAACH,OAAO,CAACG,gBAAgB,IAAI,CAACH,OAAO,CAACK,aAAa,EAAE,OAAO,IAAI;EACpE,OAAO,IAAAD,8BAAmB,EAACJ,OAAO,CAACG,gBAAgB,EAAEH,OAAO,CAACK,aAAa,CAAC;AAC5E;AAEA,SAASC,qBAAqBA,CAC7BC,GAAU,EACVP,OAAiC,EACR;EACzB,SAAS;;EACT,MAAMQ,OAAO,GAAGT,cAAc,CAACC,OAAO,CAAC;EACvC,MAAMS,WAAW,GAAGD,OAAO,GAAG,IAAAE,sBAAe,EAACF,OAAO,EAAED,GAAG,CAAC,CAACI,IAAI,GAAG,IAAI;EAEvE,OAAO;IACNC,YAAY,EAAEH,WAAW,EAAEI,MAAM,EAAEC,MAAM,IAAI,IAAI;IACjDC,iBAAiB,EAAEN,WAAW,EAAEO,WAAW,EAAEF,MAAM,IAAI,IAAI;IAC3DG,YAAY,EAAER,WAAW,EAAEI,MAAM,EAAEK,MAAM,IAAI,IAAI;IACjDC,iBAAiB,EAAEV,WAAW,EAAEO,WAAW,EAAEE,MAAM,IAAI,IAAI;IAC3DE,eAAe,EAAEX,WAAW,EAAEI,MAAM,EAAEQ,SAAS,IAAI,IAAI;IACvDC,oBAAoB,EAAEb,WAAW,EAAEO,WAAW,EAAEK,SAAS,IAAI,IAAI;IACjEE,wBAAwB,EAAEd,WAAW,EAAEI,MAAM,EAAEW,kBAAkB;IACjEC,UAAU,EAAEhB,WAAW,EAAEI,MAAM,EAAEY;EAClC,CAAC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_linkPairs","require","_links","resolvePairKey","context","entering","previousScreenKey","currentScreenKey","createScreenPairKey","nextScreenKey","resolveTransitionPair","tag","pairKey","matchedLink","getResolvedLink","link","sourceBounds","source","bounds","destinationBounds","destination","sourceStyles","styles","destinationStyles","sourceScreenKey","screenKey","destinationScreenKey"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAOA,IAAAC,MAAA,GAAAD,OAAA;AAEA,SAASE,cAAcA,CACtBC,OAAiC,EACV;EACvB,SAAS;;EAET,IAAIA,OAAO,CAACC,QAAQ,EAAE;IACrB,IAAI,CAACD,OAAO,CAACE,iBAAiB,IAAI,CAACF,OAAO,CAACG,gBAAgB,EAAE,OAAO,IAAI;IACxE,OAAO,IAAAC,8BAAmB,EACzBJ,OAAO,CAACE,iBAAiB,EACzBF,OAAO,CAACG,gBACT,CAAC;EACF;EAEA,IAAI,CAACH,OAAO,CAACG,gBAAgB,IAAI,CAACH,OAAO,CAACK,aAAa,EAAE,OAAO,IAAI;EACpE,OAAO,IAAAD,8BAAmB,EAACJ,OAAO,CAACG,gBAAgB,EAAEH,OAAO,CAACK,aAAa,CAAC;AAC5E;AAEA,SAASC,qBAAqBA,CAC7BC,GAAU,EACVP,OAAiC,EACR;EACzB,SAAS;;EACT,MAAMQ,OAAO,GAAGT,cAAc,CAACC,OAAO,CAAC;EACvC,MAAMS,WAAW,GAAGD,OAAO,GAAG,IAAAE,sBAAe,EAACF,OAAO,EAAED,GAAG,CAAC,CAACI,IAAI,GAAG,IAAI;EAEvE,OAAO;IACNC,YAAY,EAAEH,WAAW,EAAEI,MAAM,EAAEC,MAAM,IAAI,IAAI;IACjDC,iBAAiB,EAAEN,WAAW,EAAEO,WAAW,EAAEF,MAAM,IAAI,IAAI;IAC3DG,YAAY,EAAER,WAAW,EAAEI,MAAM,EAAEK,MAAM,IAAI,IAAI;IACjDC,iBAAiB,EAAEV,WAAW,EAAEO,WAAW,EAAEE,MAAM,IAAI,IAAI;IAC3DE,eAAe,EAAEX,WAAW,EAAEI,MAAM,EAAEQ,SAAS,IAAI,IAAI;IACvDC,oBAAoB,EAAEb,WAAW,EAAEO,WAAW,EAAEK,SAAS,IAAI;EAC9D,CAAC;AACF","ignoreList":[]}
@@ -58,6 +58,11 @@ const SystemStore = exports.SystemStore = (0, _createStore.createStore)({
58
58
  "worklet";
59
59
 
60
60
  bag.pendingLifecycleStartBlockCount.set(Math.max(0, bag.pendingLifecycleStartBlockCount.get() - 1));
61
+ },
62
+ drainLifecycleStartBlocks() {
63
+ "worklet";
64
+
65
+ bag.pendingLifecycleStartBlockCount.set(0);
61
66
  }
62
67
  })
63
68
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_createStore","LifecycleTransitionRequestKind","exports","SystemStore","createStore","createBag","targetProgress","makeMutable","resolvedAutoSnapPoint","measuredContentLayout","pendingLifecycleRequestKind","None","pendingLifecycleRequestTarget","pendingLifecycleStartBlockCount","disposeBag","bag","cancelAnimation","actions","requestLifecycleTransition","kind","target","set","clearLifecycleTransitionRequest","blockLifecycleStart","get","unblockLifecycleStart","Math","max"],"sourceRoot":"../../../../src","sources":["shared/stores/system.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;AAAoD,IAExCE,8BAA8B,GAAAC,OAAA,CAAAD,8BAAA,0BAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAA9BA,8BAA8B,CAA9BA,8BAA8B;EAAA,OAA9BA,8BAA8B;AAAA;AAmD1C;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,WAAW,GAAAD,OAAA,CAAAC,WAAA,GAAG,IAAAC,wBAAW,EAAuC;EAC5EC,SAAS,EAAEA,CAAA,MAAO;IACjBC,cAAc,EAAE,IAAAC,kCAAW,EAAC,CAAC,CAAC;IAC9BC,qBAAqB,EAAE,IAAAD,kCAAW,EAAC,CAAC,CAAC,CAAC;IACtCE,qBAAqB,EAAE,IAAAF,kCAAW,EAAgB,IAAI,CAAC;IACvDG,2BAA2B,EAAE,IAAAH,kCAAW,EACvCN,8BAA8B,CAACU,IAChC,CAAC;IACDC,6BAA6B,EAAE,IAAAL,kCAAW,EAAS,CAAC,CAAC;IACrDM,+BAA+B,EAAE,IAAAN,kCAAW,EAAS,CAAC;EACvD,CAAC,CAAC;EACFO,UAAU,EAAGC,GAAG,IAAK;IACpB,IAAAC,sCAAe,EAACD,GAAG,CAACT,cAAc,CAAC;IACnC,IAAAU,sCAAe,EAACD,GAAG,CAACP,qBAAqB,CAAC;IAC1C,IAAAQ,sCAAe,EAACD,GAAG,CAACN,qBAAqB,CAAC;IAC1C,IAAAO,sCAAe,EAACD,GAAG,CAACL,2BAA2B,CAAC;IAChD,IAAAM,sCAAe,EAACD,GAAG,CAACH,6BAA6B,CAAC;IAClD,IAAAI,sCAAe,EAACD,GAAG,CAACF,+BAA+B,CAAC;EACrD,CAAC;EACDI,OAAO,EAAGF,GAAG,KAAM;IAClBG,0BAA0BA,CAACC,IAAI,EAAEC,MAAM,EAAE;MACxC,SAAS;;MACTL,GAAG,CAACH,6BAA6B,CAACS,GAAG,CAACD,MAAM,CAAC;MAC7CL,GAAG,CAACL,2BAA2B,CAACW,GAAG,CAACF,IAAI,CAAC;IAC1C,CAAC;IAEDG,+BAA+BA,CAAA,EAAG;MACjC,SAAS;;MACTP,GAAG,CAACL,2BAA2B,CAACW,GAAG,CAACpB,8BAA8B,CAACU,IAAI,CAAC;MACxEI,GAAG,CAACH,6BAA6B,CAACS,GAAG,CAAC,CAAC,CAAC;IACzC,CAAC;IAEDE,mBAAmBA,CAAA,EAAG;MACrB,SAAS;;MACTR,GAAG,CAACF,+BAA+B,CAACQ,GAAG,CACtCN,GAAG,CAACF,+BAA+B,CAACW,GAAG,CAAC,CAAC,GAAG,CAC7C,CAAC;IACF,CAAC;IAEDC,qBAAqBA,CAAA,EAAG;MACvB,SAAS;;MACTV,GAAG,CAACF,+BAA+B,CAACQ,GAAG,CACtCK,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEZ,GAAG,CAACF,+BAA+B,CAACW,GAAG,CAAC,CAAC,GAAG,CAAC,CAC1D,CAAC;IACF;EACD,CAAC;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","_createStore","LifecycleTransitionRequestKind","exports","SystemStore","createStore","createBag","targetProgress","makeMutable","resolvedAutoSnapPoint","measuredContentLayout","pendingLifecycleRequestKind","None","pendingLifecycleRequestTarget","pendingLifecycleStartBlockCount","disposeBag","bag","cancelAnimation","actions","requestLifecycleTransition","kind","target","set","clearLifecycleTransitionRequest","blockLifecycleStart","get","unblockLifecycleStart","Math","max","drainLifecycleStartBlocks"],"sourceRoot":"../../../../src","sources":["shared/stores/system.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;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CAAC;MAC7CL,GAAG,CAACL,2BAA2B,CAACW,GAAG,CAACF,IAAI,CAAC;IAC1C,CAAC;IAEDG,+BAA+BA,CAAA,EAAG;MACjC,SAAS;;MACTP,GAAG,CAACL,2BAA2B,CAACW,GAAG,CAACpB,8BAA8B,CAACU,IAAI,CAAC;MACxEI,GAAG,CAACH,6BAA6B,CAACS,GAAG,CAAC,CAAC,CAAC;IACzC,CAAC;IAEDE,mBAAmBA,CAAA,EAAG;MACrB,SAAS;;MACTR,GAAG,CAACF,+BAA+B,CAACQ,GAAG,CACtCN,GAAG,CAACF,+BAA+B,CAACW,GAAG,CAAC,CAAC,GAAG,CAC7C,CAAC;IACF,CAAC;IAEDC,qBAAqBA,CAAA,EAAG;MACvB,SAAS;;MACTV,GAAG,CAACF,+BAA+B,CAACQ,GAAG,CACtCK,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEZ,GAAG,CAACF,+BAA+B,CAACW,GAAG,CAAC,CAAC,GAAG,CAAC,CAC1D,CAAC;IACF,CAAC;IAEDI,yBAAyBA,CAAA,EAAG;MAC3B,SAAS;;MACTb,GAAG,CAACF,+BAA+B,CAACQ,GAAG,CAAC,CAAC,CAAC;IAC3C;EACD,CAAC;AACF,CAAC,CAAC","ignoreList":[]}
@@ -5,38 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.computeBoundStyles = void 0;
7
7
  var _constants = require("../../../../constants");
8
+ var _linkPairs = require("../../../../stores/bounds/helpers/link-pairs.helpers");
9
+ var _links = require("../../../../stores/bounds/internals/links");
8
10
  var _resolver = require("../../../../stores/bounds/internals/resolver");
9
- var _scroll = require("../../../../stores/scroll.store");
10
11
  var _geometry = require("../geometry");
11
12
  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
- };
13
+ var _localTransform = require("./local-transform");
40
14
  const resolveStartEnd = params => {
41
15
  "worklet";
42
16
 
@@ -48,6 +22,7 @@ const resolveStartEnd = params => {
48
22
  const currentScreenKey = params.current?.route.key;
49
23
  const previousScreenKey = params.previous?.route.key;
50
24
  const nextScreenKey = params.next?.route.key;
25
+ const sourceMeasurePairKey = entering && previousScreenKey && currentScreenKey ? (0, _linkPairs.createScreenPairKey)(previousScreenKey, currentScreenKey) : !entering && currentScreenKey && nextScreenKey ? (0, _linkPairs.createScreenPairKey)(currentScreenKey, nextScreenKey) : null;
51
26
  const resolvedPair = params.resolvedPair ?? (0, _resolver.resolveTransitionPair)(String(params.id), {
52
27
  currentScreenKey,
53
28
  previousScreenKey,
@@ -57,6 +32,9 @@ const resolveStartEnd = params => {
57
32
  const sourceBounds = resolvedPair.sourceBounds;
58
33
  const destinationBounds = resolvedPair.destinationBounds;
59
34
  if (!sourceBounds) {
35
+ if (hasTargetOverride && sourceMeasurePairKey) {
36
+ (0, _links.requestSourceMeasure)(sourceMeasurePairKey, String(params.id));
37
+ }
60
38
  return {
61
39
  start: null,
62
40
  end: null,
@@ -80,42 +58,7 @@ const resolveStartEnd = params => {
80
58
  hasTargetOverride
81
59
  };
82
60
  }
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);
61
+ const start = sourceBounds;
119
62
  let end = destinationBounds ?? fullscreen;
120
63
  if (isFullscreenTarget) {
121
64
  end = fullscreen;
@@ -124,9 +67,6 @@ const resolveStartEnd = params => {
124
67
  if (typeof customTarget === "object") {
125
68
  end = customTarget;
126
69
  }
127
- if (hasTargetOverride) {
128
- end = shiftBounds(end, teleportShiftX, teleportShiftY);
129
- }
130
70
  return {
131
71
  start,
132
72
  end,
@@ -213,7 +153,8 @@ const computeBoundStyles = ({
213
153
  };
214
154
  const isSize = computeOptions.method === "size";
215
155
  const isAbsolute = computeOptions.space === "absolute";
216
- return isSize ? isAbsolute ? (0, _composers.composeSizeAbsolute)(common) : (0, _composers.composeSizeRelative)(common) : isAbsolute ? (0, _composers.composeTransformAbsolute)(common) : (0, _composers.composeTransformRelative)(common);
156
+ const style = isSize ? isAbsolute ? (0, _composers.composeSizeAbsolute)(common) : (0, _composers.composeSizeRelative)(common) : isAbsolute ? (0, _composers.composeTransformAbsolute)(common) : (0, _composers.composeTransformRelative)(common);
157
+ return (0, _localTransform.attachBoundsLocalTransform)(style, entering ? resolvedPair?.destinationStyles ?? null : resolvedPair?.sourceStyles ?? null);
217
158
  };
218
159
  exports.computeBoundStyles = computeBoundStyles;
219
160
  //# sourceMappingURL=compute.js.map