react-native-screen-transitions 3.9.0-alpha.2 → 3.9.0-alpha.3

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 (421) 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 +53 -32
  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 +206 -96
  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/stores/host-registry.store.js +5 -44
  30. package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -1
  31. package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js +37 -5
  32. package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -1
  33. package/lib/commonjs/shared/components/boundary/portal/teleport.js +15 -2
  34. package/lib/commonjs/shared/components/boundary/portal/teleport.js.map +1 -1
  35. package/lib/commonjs/shared/components/boundary/portal/utils/has-local-slot.js +18 -0
  36. package/lib/commonjs/shared/components/boundary/portal/utils/has-local-slot.js.map +1 -0
  37. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js +10 -3
  38. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js.map +1 -1
  39. package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js +28 -49
  40. package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js.map +1 -1
  41. package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js +254 -0
  42. package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js.map +1 -0
  43. package/lib/commonjs/shared/components/boundary/portal/utils/resolve-portal.js +38 -0
  44. package/lib/commonjs/shared/components/boundary/portal/utils/resolve-portal.js.map +1 -0
  45. package/lib/commonjs/shared/components/boundary/portal/utils/shallow-equal.js +29 -0
  46. package/lib/commonjs/shared/components/boundary/portal/utils/shallow-equal.js.map +1 -0
  47. package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js +10 -1
  48. package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js.map +1 -1
  49. package/lib/commonjs/shared/components/boundary/portal/utils/visible-host.js +25 -0
  50. package/lib/commonjs/shared/components/boundary/portal/utils/visible-host.js.map +1 -0
  51. package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +6 -7
  52. package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
  53. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +1 -22
  54. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +1 -1
  55. package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js +0 -21
  56. package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js.map +1 -1
  57. package/lib/commonjs/shared/components/boundary/utils/source-signals.js +4 -9
  58. package/lib/commonjs/shared/components/boundary/utils/source-signals.js.map +1 -1
  59. package/lib/commonjs/shared/index.js.map +1 -1
  60. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +6 -3
  61. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
  62. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js +1 -0
  63. package/lib/commonjs/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  64. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +1 -0
  65. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  66. package/lib/commonjs/shared/providers/screen/styles/helpers/compose-slot-style.js +95 -0
  67. package/lib/commonjs/shared/providers/screen/styles/helpers/compose-slot-style.js.map +1 -0
  68. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js +30 -9
  69. package/lib/commonjs/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
  70. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +9 -3
  71. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
  72. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +2 -0
  73. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -1
  74. package/lib/commonjs/shared/providers/screen/styles/hooks/slot-resolvers.js +96 -0
  75. package/lib/commonjs/shared/providers/screen/styles/hooks/slot-resolvers.js.map +1 -0
  76. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +16 -3
  77. package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  78. package/lib/commonjs/shared/providers/screen/styles/index.js +16 -3
  79. package/lib/commonjs/shared/providers/screen/styles/index.js.map +1 -1
  80. package/lib/commonjs/shared/providers/screen/styles/slot.provider.js +22 -51
  81. package/lib/commonjs/shared/providers/screen/styles/slot.provider.js.map +1 -1
  82. package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js +53 -0
  83. package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -0
  84. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +22 -2
  85. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
  86. package/lib/commonjs/shared/stores/bounds/internals/entries.js +11 -4
  87. package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
  88. package/lib/commonjs/shared/stores/bounds/internals/links.js +134 -51
  89. package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
  90. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +1 -3
  91. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  92. package/lib/commonjs/shared/stores/system.store.js +5 -0
  93. package/lib/commonjs/shared/stores/system.store.js.map +1 -1
  94. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +10 -69
  95. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  96. package/lib/commonjs/shared/utils/bounds/helpers/styles/local-transform.js +59 -0
  97. package/lib/commonjs/shared/utils/bounds/helpers/styles/local-transform.js.map +1 -0
  98. package/lib/module/shared/components/boundary/components/boundary-target.js +12 -7
  99. package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
  100. package/lib/module/shared/components/boundary/create-boundary-component.js +67 -29
  101. package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -1
  102. package/lib/module/shared/components/boundary/hooks/{use-boundary-presence.js → lifecycles/use-boundary-presence.js} +8 -4
  103. package/lib/module/shared/components/boundary/hooks/lifecycles/use-boundary-presence.js.map +1 -0
  104. package/lib/module/shared/components/boundary/hooks/{use-initial-destination-measurement.js → lifecycles/use-initial-destination-measurement.js} +27 -10
  105. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -0
  106. package/lib/module/shared/components/boundary/hooks/{use-initial-source-measurement.js → lifecycles/use-initial-source-measurement.js} +5 -7
  107. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +1 -0
  108. package/lib/module/shared/components/boundary/hooks/{use-refresh-boundary.js → lifecycles/use-refresh-boundary.js} +4 -4
  109. package/lib/module/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -0
  110. package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js +15 -36
  111. package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
  112. package/lib/module/shared/components/boundary/hooks/use-measurer.js +5 -6
  113. package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -1
  114. package/lib/module/shared/components/boundary/index.js +26 -29
  115. package/lib/module/shared/components/boundary/index.js.map +1 -1
  116. package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js +53 -0
  117. package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +1 -0
  118. package/lib/module/shared/components/boundary/portal/components/host.js +21 -5
  119. package/lib/module/shared/components/boundary/portal/components/host.js.map +1 -1
  120. package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js +53 -32
  121. package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -1
  122. package/lib/module/shared/components/boundary/portal/components/portal.js +212 -102
  123. package/lib/module/shared/components/boundary/portal/components/portal.js.map +1 -1
  124. package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js +15 -3
  125. package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -1
  126. package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js +4 -41
  127. package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -1
  128. package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js +35 -4
  129. package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -1
  130. package/lib/module/shared/components/boundary/portal/teleport.js +16 -2
  131. package/lib/module/shared/components/boundary/portal/teleport.js.map +1 -1
  132. package/lib/module/shared/components/boundary/portal/utils/has-local-slot.js +13 -0
  133. package/lib/module/shared/components/boundary/portal/utils/has-local-slot.js.map +1 -0
  134. package/lib/module/shared/components/boundary/portal/utils/naming.js +8 -2
  135. package/lib/module/shared/components/boundary/portal/utils/naming.js.map +1 -1
  136. package/lib/module/shared/components/boundary/portal/utils/offset-style.js +29 -49
  137. package/lib/module/shared/components/boundary/portal/utils/offset-style.js.map +1 -1
  138. package/lib/module/shared/components/boundary/portal/utils/ownership.js +246 -0
  139. package/lib/module/shared/components/boundary/portal/utils/ownership.js.map +1 -0
  140. package/lib/module/shared/components/boundary/portal/utils/resolve-portal.js +33 -0
  141. package/lib/module/shared/components/boundary/portal/utils/resolve-portal.js.map +1 -0
  142. package/lib/module/shared/components/boundary/portal/utils/shallow-equal.js +24 -0
  143. package/lib/module/shared/components/boundary/portal/utils/shallow-equal.js.map +1 -0
  144. package/lib/module/shared/components/boundary/portal/utils/teleport-control.js +8 -0
  145. package/lib/module/shared/components/boundary/portal/utils/teleport-control.js.map +1 -1
  146. package/lib/module/shared/components/boundary/portal/utils/visible-host.js +20 -0
  147. package/lib/module/shared/components/boundary/portal/utils/visible-host.js.map +1 -0
  148. package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +6 -7
  149. package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
  150. package/lib/module/shared/components/boundary/utils/destination-signals.js +2 -23
  151. package/lib/module/shared/components/boundary/utils/destination-signals.js.map +1 -1
  152. package/lib/module/shared/components/boundary/utils/refresh-signals.js +0 -21
  153. package/lib/module/shared/components/boundary/utils/refresh-signals.js.map +1 -1
  154. package/lib/module/shared/components/boundary/utils/source-signals.js +4 -9
  155. package/lib/module/shared/components/boundary/utils/source-signals.js.map +1 -1
  156. package/lib/module/shared/index.js.map +1 -1
  157. package/lib/module/shared/providers/helpers/measured-bounds-writes.js +6 -3
  158. package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
  159. package/lib/module/shared/providers/screen/animation/helpers/derivations.js +1 -0
  160. package/lib/module/shared/providers/screen/animation/helpers/derivations.js.map +1 -1
  161. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +1 -0
  162. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  163. package/lib/module/shared/providers/screen/styles/helpers/compose-slot-style.js +89 -0
  164. package/lib/module/shared/providers/screen/styles/helpers/compose-slot-style.js.map +1 -0
  165. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js +30 -9
  166. package/lib/module/shared/providers/screen/styles/helpers/normalize-slots.js.map +1 -1
  167. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +9 -3
  168. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
  169. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js +2 -0
  170. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.js.map +1 -1
  171. package/lib/module/shared/providers/screen/styles/hooks/slot-resolvers.js +87 -0
  172. package/lib/module/shared/providers/screen/styles/hooks/slot-resolvers.js.map +1 -0
  173. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +16 -3
  174. package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  175. package/lib/module/shared/providers/screen/styles/index.js +2 -1
  176. package/lib/module/shared/providers/screen/styles/index.js.map +1 -1
  177. package/lib/module/shared/providers/screen/styles/slot.provider.js +22 -47
  178. package/lib/module/shared/providers/screen/styles/slot.provider.js.map +1 -1
  179. package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js +47 -0
  180. package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -0
  181. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +19 -1
  182. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
  183. package/lib/module/shared/stores/bounds/internals/entries.js +11 -4
  184. package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
  185. package/lib/module/shared/stores/bounds/internals/links.js +135 -53
  186. package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
  187. package/lib/module/shared/stores/bounds/internals/resolver.js +1 -3
  188. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  189. package/lib/module/shared/stores/system.store.js +5 -0
  190. package/lib/module/shared/stores/system.store.js.map +1 -1
  191. package/lib/module/shared/types/animation.types.js.map +1 -1
  192. package/lib/module/shared/utils/bounds/helpers/styles/compute.js +10 -69
  193. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  194. package/lib/module/shared/utils/bounds/helpers/styles/local-transform.js +52 -0
  195. package/lib/module/shared/utils/bounds/helpers/styles/local-transform.js.map +1 -0
  196. package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts +1 -2
  197. package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
  198. package/lib/typescript/component-stack/components/component-screen.d.ts +1 -1
  199. package/lib/typescript/component-stack/components/component-screen.d.ts.map +1 -1
  200. package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts +1 -2
  201. package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts.map +1 -1
  202. package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts +1 -1
  203. package/lib/typescript/native-stack/navigators/createNativeStackNavigator.d.ts.map +1 -1
  204. package/lib/typescript/native-stack/views/NativeStackView.d.ts +1 -2
  205. package/lib/typescript/native-stack/views/NativeStackView.d.ts.map +1 -1
  206. package/lib/typescript/native-stack/views/useHeaderConfigProps.d.ts +2 -2
  207. package/lib/typescript/shared/adapters/with-screen-transitions/context.d.ts +1 -1
  208. package/lib/typescript/shared/adapters/with-screen-transitions/context.d.ts.map +1 -1
  209. package/lib/typescript/shared/adapters/with-screen-transitions/stack-layout.d.ts +1 -1
  210. package/lib/typescript/shared/adapters/with-screen-transitions/stack-layout.d.ts.map +1 -1
  211. package/lib/typescript/shared/components/activity/variants/activity-container.d.ts +1 -1
  212. package/lib/typescript/shared/components/activity/variants/activity-container.d.ts.map +1 -1
  213. package/lib/typescript/shared/components/activity/variants/activity-screen.d.ts +1 -1
  214. package/lib/typescript/shared/components/activity/variants/activity-screen.d.ts.map +1 -1
  215. package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts +1 -1
  216. package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -1
  217. package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts +0 -1
  218. package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts.map +1 -1
  219. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-boundary-presence.d.ts +11 -0
  220. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-boundary-presence.d.ts.map +1 -0
  221. package/lib/typescript/shared/components/boundary/hooks/{use-initial-destination-measurement.d.ts → lifecycles/use-initial-destination-measurement.d.ts} +2 -2
  222. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -0
  223. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.d.ts +8 -0
  224. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-source-measurement.d.ts.map +1 -0
  225. package/lib/typescript/shared/components/boundary/hooks/{use-refresh-boundary.d.ts → lifecycles/use-refresh-boundary.d.ts} +2 -2
  226. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map +1 -0
  227. package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts +5 -9
  228. package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
  229. package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts +4 -3
  230. package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -1
  231. package/lib/typescript/shared/components/boundary/index.d.ts +35 -24
  232. package/lib/typescript/shared/components/boundary/index.d.ts.map +1 -1
  233. package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts +8 -0
  234. package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts.map +1 -0
  235. package/lib/typescript/shared/components/boundary/portal/components/host.d.ts +2 -2
  236. package/lib/typescript/shared/components/boundary/portal/components/host.d.ts.map +1 -1
  237. package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts +2 -2
  238. package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map +1 -1
  239. package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts +1 -1
  240. package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts.map +1 -1
  241. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts +4 -3
  242. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts.map +1 -1
  243. package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts.map +1 -1
  244. package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts +0 -7
  245. package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts.map +1 -1
  246. package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts +16 -1
  247. package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +1 -1
  248. package/lib/typescript/shared/components/boundary/portal/teleport.d.ts +1 -1
  249. package/lib/typescript/shared/components/boundary/portal/teleport.d.ts.map +1 -1
  250. package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts +3 -0
  251. package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts.map +1 -0
  252. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts +2 -1
  253. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts.map +1 -1
  254. package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts +16 -32
  255. package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts.map +1 -1
  256. package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts +35 -0
  257. package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts.map +1 -0
  258. package/lib/typescript/shared/components/boundary/portal/utils/resolve-portal.d.ts +12 -0
  259. package/lib/typescript/shared/components/boundary/portal/utils/resolve-portal.d.ts.map +1 -0
  260. package/lib/typescript/shared/components/boundary/portal/utils/shallow-equal.d.ts +8 -0
  261. package/lib/typescript/shared/components/boundary/portal/utils/shallow-equal.d.ts.map +1 -0
  262. package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts +4 -0
  263. package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts.map +1 -1
  264. package/lib/typescript/shared/components/boundary/portal/utils/visible-host.d.ts +8 -0
  265. package/lib/typescript/shared/components/boundary/portal/utils/visible-host.d.ts.map +1 -0
  266. package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +7 -12
  267. package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
  268. package/lib/typescript/shared/components/boundary/types.d.ts +9 -36
  269. package/lib/typescript/shared/components/boundary/types.d.ts.map +1 -1
  270. package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +1 -1
  271. package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts.map +1 -1
  272. package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts +0 -1
  273. package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts.map +1 -1
  274. package/lib/typescript/shared/components/create-transition-aware-component.d.ts +6 -5
  275. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  276. package/lib/typescript/shared/components/masked-view.d.ts +1 -1
  277. package/lib/typescript/shared/components/masked-view.d.ts.map +1 -1
  278. package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts +1 -1
  279. package/lib/typescript/shared/components/overlay/variations/float-overlay.d.ts.map +1 -1
  280. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +1 -1
  281. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
  282. package/lib/typescript/shared/components/scene-view.d.ts +1 -1
  283. package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
  284. package/lib/typescript/shared/components/screen-container/index.d.ts +1 -1
  285. package/lib/typescript/shared/components/screen-container/index.d.ts.map +1 -1
  286. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +1 -1
  287. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  288. package/lib/typescript/shared/components/screen-container/layers/content.d.ts +1 -1
  289. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
  290. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts +1 -1
  291. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
  292. package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts +1 -1
  293. package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -1
  294. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts +1 -1
  295. package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
  296. package/lib/typescript/shared/index.d.ts +711 -667
  297. package/lib/typescript/shared/index.d.ts.map +1 -1
  298. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts +3 -3
  299. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
  300. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts +1 -0
  301. package/lib/typescript/shared/providers/screen/animation/helpers/derivations.d.ts.map +1 -1
  302. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  303. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts +1 -1
  304. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
  305. package/lib/typescript/shared/providers/screen/screen-composer.d.ts +1 -1
  306. package/lib/typescript/shared/providers/screen/screen-composer.d.ts.map +1 -1
  307. package/lib/typescript/shared/providers/screen/styles/components/floating-overlay-layer.d.ts +1 -1
  308. package/lib/typescript/shared/providers/screen/styles/components/floating-overlay-layer.d.ts.map +1 -1
  309. package/lib/typescript/shared/providers/screen/styles/helpers/compose-slot-style.d.ts +4 -0
  310. package/lib/typescript/shared/providers/screen/styles/helpers/compose-slot-style.d.ts.map +1 -0
  311. package/lib/typescript/shared/providers/screen/styles/helpers/normalize-slots.d.ts.map +1 -1
  312. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -1
  313. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts +2 -1
  314. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.d.ts.map +1 -1
  315. package/lib/typescript/shared/providers/screen/styles/hooks/slot-resolvers.d.ts +11 -0
  316. package/lib/typescript/shared/providers/screen/styles/hooks/slot-resolvers.d.ts.map +1 -0
  317. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts +4 -1
  318. package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
  319. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +2 -2
  320. package/lib/typescript/shared/providers/screen/styles/index.d.ts +2 -1
  321. package/lib/typescript/shared/providers/screen/styles/index.d.ts.map +1 -1
  322. package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts +5 -10
  323. package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts.map +1 -1
  324. package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts +6 -0
  325. package/lib/typescript/shared/providers/screen/styles/stores/slot-references.store.d.ts.map +1 -0
  326. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +2 -0
  327. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -1
  328. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
  329. package/lib/typescript/shared/stores/bounds/internals/links.d.ts +4 -3
  330. package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
  331. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  332. package/lib/typescript/shared/stores/bounds/types.d.ts +9 -20
  333. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  334. package/lib/typescript/shared/stores/system.store.d.ts +1 -0
  335. package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
  336. package/lib/typescript/shared/types/animation.types.d.ts +7 -1
  337. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  338. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
  339. package/lib/typescript/shared/utils/bounds/helpers/styles/local-transform.d.ts +6 -0
  340. package/lib/typescript/shared/utils/bounds/helpers/styles/local-transform.d.ts.map +1 -0
  341. package/package.json +1 -1
  342. package/src/shared/components/boundary/components/boundary-target.tsx +21 -7
  343. package/src/shared/components/boundary/create-boundary-component.tsx +92 -28
  344. package/src/shared/components/boundary/hooks/{use-boundary-presence.ts → lifecycles/use-boundary-presence.ts} +16 -5
  345. package/src/shared/components/boundary/hooks/{use-initial-destination-measurement.ts → lifecycles/use-initial-destination-measurement.ts} +40 -13
  346. package/src/shared/components/boundary/hooks/{use-initial-source-measurement.ts → lifecycles/use-initial-source-measurement.ts} +7 -9
  347. package/src/shared/components/boundary/hooks/{use-refresh-boundary.ts → lifecycles/use-refresh-boundary.ts} +6 -6
  348. package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +15 -45
  349. package/src/shared/components/boundary/hooks/use-measurer.ts +9 -14
  350. package/src/shared/components/boundary/index.tsx +55 -29
  351. package/src/shared/components/boundary/portal/components/boundary-local-portal-host.tsx +66 -0
  352. package/src/shared/components/boundary/portal/components/host.tsx +20 -5
  353. package/src/shared/components/boundary/portal/components/portal-boundary-host.tsx +67 -52
  354. package/src/shared/components/boundary/portal/components/portal.tsx +280 -119
  355. package/src/shared/components/boundary/portal/hooks/use-host-measurement.ts +23 -2
  356. package/src/shared/components/boundary/portal/stores/host-registry.store.ts +4 -51
  357. package/src/shared/components/boundary/portal/stores/portal-boundary-host.store.ts +59 -6
  358. package/src/shared/components/boundary/portal/teleport.ts +28 -3
  359. package/src/shared/components/boundary/portal/utils/has-local-slot.ts +16 -0
  360. package/src/shared/components/boundary/portal/utils/naming.ts +11 -1
  361. package/src/shared/components/boundary/portal/utils/offset-style.ts +37 -139
  362. package/src/shared/components/boundary/portal/utils/ownership.ts +371 -0
  363. package/src/shared/components/boundary/portal/utils/resolve-portal.ts +50 -0
  364. package/src/shared/components/boundary/portal/utils/shallow-equal.ts +25 -0
  365. package/src/shared/components/boundary/portal/utils/teleport-control.ts +12 -0
  366. package/src/shared/components/boundary/portal/utils/visible-host.ts +24 -0
  367. package/src/shared/components/boundary/providers/boundary-root.provider.tsx +9 -18
  368. package/src/shared/components/boundary/types.ts +9 -39
  369. package/src/shared/components/boundary/utils/destination-signals.ts +1 -32
  370. package/src/shared/components/boundary/utils/refresh-signals.ts +0 -41
  371. package/src/shared/components/boundary/utils/source-signals.ts +5 -17
  372. package/src/shared/index.ts +0 -5
  373. package/src/shared/providers/helpers/measured-bounds-writes.ts +6 -11
  374. package/src/shared/providers/screen/animation/helpers/derivations.ts +3 -0
  375. package/src/shared/providers/screen/animation/helpers/pipeline.ts +1 -0
  376. package/src/shared/providers/screen/styles/helpers/compose-slot-style.ts +129 -0
  377. package/src/shared/providers/screen/styles/helpers/normalize-slots.ts +45 -8
  378. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +14 -2
  379. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/materialize-slot.ts +3 -0
  380. package/src/shared/providers/screen/styles/hooks/slot-resolvers.tsx +111 -0
  381. package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +21 -3
  382. package/src/shared/providers/screen/styles/index.tsx +8 -3
  383. package/src/shared/providers/screen/styles/slot.provider.tsx +36 -54
  384. package/src/shared/providers/screen/styles/stores/slot-references.store.ts +71 -0
  385. package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +24 -1
  386. package/src/shared/stores/bounds/internals/entries.ts +13 -5
  387. package/src/shared/stores/bounds/internals/links.ts +167 -85
  388. package/src/shared/stores/bounds/internals/resolver.ts +0 -2
  389. package/src/shared/stores/bounds/types.ts +10 -22
  390. package/src/shared/stores/system.store.ts +6 -0
  391. package/src/shared/types/animation.types.ts +8 -1
  392. package/src/shared/utils/bounds/helpers/styles/compute.ts +22 -124
  393. package/src/shared/utils/bounds/helpers/styles/local-transform.ts +86 -0
  394. package/lib/commonjs/shared/components/boundary/hooks/use-boundary-presence.js.map +0 -1
  395. package/lib/commonjs/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +0 -1
  396. package/lib/commonjs/shared/components/boundary/hooks/use-initial-source-measurement.js.map +0 -1
  397. package/lib/commonjs/shared/components/boundary/hooks/use-refresh-boundary.js.map +0 -1
  398. package/lib/commonjs/shared/components/boundary/portal/resolve-portal.js +0 -36
  399. package/lib/commonjs/shared/components/boundary/portal/resolve-portal.js.map +0 -1
  400. package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js +0 -40
  401. package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js.map +0 -1
  402. package/lib/module/shared/components/boundary/hooks/use-boundary-presence.js.map +0 -1
  403. package/lib/module/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +0 -1
  404. package/lib/module/shared/components/boundary/hooks/use-initial-source-measurement.js.map +0 -1
  405. package/lib/module/shared/components/boundary/hooks/use-refresh-boundary.js.map +0 -1
  406. package/lib/module/shared/components/boundary/portal/resolve-portal.js +0 -31
  407. package/lib/module/shared/components/boundary/portal/resolve-portal.js.map +0 -1
  408. package/lib/module/shared/components/boundary/portal/utils/attachment.js +0 -35
  409. package/lib/module/shared/components/boundary/portal/utils/attachment.js.map +0 -1
  410. package/lib/typescript/shared/components/boundary/hooks/use-boundary-presence.d.ts +0 -9
  411. package/lib/typescript/shared/components/boundary/hooks/use-boundary-presence.d.ts.map +0 -1
  412. package/lib/typescript/shared/components/boundary/hooks/use-initial-destination-measurement.d.ts.map +0 -1
  413. package/lib/typescript/shared/components/boundary/hooks/use-initial-source-measurement.d.ts +0 -9
  414. package/lib/typescript/shared/components/boundary/hooks/use-initial-source-measurement.d.ts.map +0 -1
  415. package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts.map +0 -1
  416. package/lib/typescript/shared/components/boundary/portal/resolve-portal.d.ts +0 -14
  417. package/lib/typescript/shared/components/boundary/portal/resolve-portal.d.ts.map +0 -1
  418. package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts +0 -21
  419. package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts.map +0 -1
  420. package/src/shared/components/boundary/portal/resolve-portal.ts +0 -40
  421. package/src/shared/components/boundary/portal/utils/attachment.ts +0 -48
@@ -0,0 +1 @@
1
+ {"version":3,"names":["shallowEqual","a","b","keys","Object","index","length","key","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/utils/shallow-equal.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,YAAY,GAAGA,CAC3BC,CAA6C,EAC7CC,CAA6C,KACzC;EACJ,SAAS;;EACT,IAAI,CAACD,CAAC,IAAI,CAACC,CAAC,EAAE;IACb,OAAO,KAAK;EACb;EAEA,MAAMC,IAAI,GAAGC,MAAM,CAACD,IAAI,CAACF,CAAC,CAAC;EAC3B,KAAK,IAAII,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGF,IAAI,CAACG,MAAM,EAAED,KAAK,EAAE,EAAE;IACjD,MAAME,GAAG,GAAGJ,IAAI,CAACE,KAAK,CAAC;IACvB,IAAIJ,CAAC,CAACM,GAAG,CAAC,KAAKL,CAAC,CAACK,GAAG,CAAC,EAAE;MACtB,OAAO,KAAK;IACb;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;AAACC,OAAA,CAAAR,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.isTeleportEnabled = void 0;
6
+ exports.shouldAttachBoundaryPortal = exports.isTeleportEnabled = void 0;
7
7
  const isTeleportEnabled = teleport => {
8
8
  "worklet";
9
9
 
@@ -13,4 +13,13 @@ const isTeleportEnabled = teleport => {
13
13
  return teleport?.enabled !== false;
14
14
  };
15
15
  exports.isTeleportEnabled = isTeleportEnabled;
16
+ const shouldAttachBoundaryPortal = ({
17
+ enabled,
18
+ teleport
19
+ }) => {
20
+ "worklet";
21
+
22
+ return enabled && isTeleportEnabled(teleport);
23
+ };
24
+ exports.shouldAttachBoundaryPortal = shouldAttachBoundaryPortal;
16
25
  //# sourceMappingURL=teleport-control.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["isTeleportEnabled","teleport","enabled","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/utils/teleport-control.ts"],"mappings":";;;;;;AAEO,MAAMA,iBAAiB,GAC7BC,QAA6C,IACzC;EACJ,SAAS;;EAET,IAAI,OAAOA,QAAQ,KAAK,SAAS,EAAE;IAClC,OAAOA,QAAQ;EAChB;EAEA,OAAOA,QAAQ,EAAEC,OAAO,KAAK,KAAK;AACnC,CAAC;AAACC,OAAA,CAAAH,iBAAA,GAAAA,iBAAA","ignoreList":[]}
1
+ {"version":3,"names":["isTeleportEnabled","teleport","enabled","exports","shouldAttachBoundaryPortal"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/utils/teleport-control.ts"],"mappings":";;;;;;AAEO,MAAMA,iBAAiB,GAC7BC,QAA6C,IACzC;EACJ,SAAS;;EAET,IAAI,OAAOA,QAAQ,KAAK,SAAS,EAAE;IAClC,OAAOA,QAAQ;EAChB;EAEA,OAAOA,QAAQ,EAAEC,OAAO,KAAK,KAAK;AACnC,CAAC;AAACC,OAAA,CAAAH,iBAAA,GAAAA,iBAAA;AAEK,MAAMI,0BAA0B,GAAGA,CAAC;EAC1CF,OAAO;EACPD;AAID,CAAC,KAAK;EACL,SAAS;;EAET,OAAOC,OAAO,IAAIF,iBAAiB,CAACC,QAAQ,CAAC;AAC9C,CAAC;AAACE,OAAA,CAAAC,0BAAA,GAAAA,0BAAA","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.resolveNextVisiblePortalHostName = void 0;
7
+ const resolveNextVisiblePortalHostName = ({
8
+ canSwitchImmediately,
9
+ isInterpolatorReady,
10
+ requestedName,
11
+ shouldTeleport,
12
+ visibleName
13
+ }) => {
14
+ "worklet";
15
+
16
+ if (!shouldTeleport) {
17
+ return null;
18
+ }
19
+ if (requestedName && (canSwitchImmediately || isInterpolatorReady)) {
20
+ return requestedName;
21
+ }
22
+ return visibleName;
23
+ };
24
+ exports.resolveNextVisiblePortalHostName = resolveNextVisiblePortalHostName;
25
+ //# sourceMappingURL=visible-host.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["resolveNextVisiblePortalHostName","canSwitchImmediately","isInterpolatorReady","requestedName","shouldTeleport","visibleName","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/utils/visible-host.ts"],"mappings":";;;;;;AAAO,MAAMA,gCAAgC,GAAGA,CAAC;EAChDC,oBAAoB;EACpBC,mBAAmB;EACnBC,aAAa;EACbC,cAAc;EACdC;AAOD,CAAC,KAAK;EACL,SAAS;;EACT,IAAI,CAACD,cAAc,EAAE;IACpB,OAAO,IAAI;EACZ;EAEA,IAAID,aAAa,KAAKF,oBAAoB,IAAIC,mBAAmB,CAAC,EAAE;IACnE,OAAOC,aAAa;EACrB;EAEA,OAAOE,WAAW;AACnB,CAAC;AAACC,OAAA,CAAAN,gCAAA,GAAAA,gCAAA","ignoreList":[]}
@@ -11,7 +11,7 @@ var _logger = require("../../../utils/logger");
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
12
  // logger.warn prepends the library prefix.
13
13
  const MULTIPLE_TARGETS_WARNING = "Multiple Boundary.Target elements were rendered under the same boundary root. The first registered target will be measured.";
14
- const TARGET_OUTSIDE_ROOT_WARNING = exports.TARGET_OUTSIDE_ROOT_WARNING = "Boundary.Target must be rendered inside a Boundary root (Boundary.View, Boundary.Trigger, or a component created by createBoundaryComponent).";
14
+ const TARGET_OUTSIDE_ROOT_WARNING = exports.TARGET_OUTSIDE_ROOT_WARNING = "Boundary.Target must be rendered inside Transition.Boundary or a component created by createBoundaryComponent.";
15
15
  const {
16
16
  BoundaryRootProvider,
17
17
  useBoundaryRootContext
@@ -22,9 +22,9 @@ exports.useBoundaryRootContext = useBoundaryRootContext;
22
22
  exports.BoundaryRootProvider = BoundaryRootProvider;
23
23
  const useBoundaryRootState = params => {
24
24
  const {
25
- associatedTargetStyles,
26
25
  boundTag,
27
- portal
26
+ portalRuntime,
27
+ rootMeasurementRef
28
28
  } = params;
29
29
  const rootRef = (0, _reactNativeReanimated.useAnimatedRef)();
30
30
  const [targetEntry, setTargetEntry] = (0, _react.useState)(null);
@@ -50,15 +50,14 @@ const useBoundaryRootState = params => {
50
50
  registerTargetRef,
51
51
  unregisterTargetRef,
52
52
  activeTargetRef: targetEntry?.ref ?? null,
53
- associatedTargetStyles,
54
53
  boundTag,
55
- portal
56
- }), [registerTargetRef, unregisterTargetRef, targetEntry, associatedTargetStyles, boundTag, portal]);
54
+ portalRuntime
55
+ }), [registerTargetRef, unregisterTargetRef, targetEntry, boundTag, portalRuntime]);
57
56
  return {
58
57
  ref: rootRef,
59
58
  contextValue,
60
59
  hasActiveTarget: targetEntry !== null,
61
- measuredRef: targetEntry?.measurementRef ?? rootRef,
60
+ measuredRef: targetEntry?.measurementRef ?? rootMeasurementRef ?? rootRef,
62
61
  targetPreparedStyles: targetEntry?.preparedStyles
63
62
  };
64
63
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_createProvider","_interopRequireDefault","_logger","e","__esModule","default","MULTIPLE_TARGETS_WARNING","TARGET_OUTSIDE_ROOT_WARNING","exports","BoundaryRootProvider","useBoundaryRootContext","createProvider","guarded","props","useBoundaryRootState","params","associatedTargetStyles","boundTag","portal","rootRef","useAnimatedRef","targetEntry","setTargetEntry","useState","registerTargetRef","useCallback","targetRef","preparedStyles","measurementRef","prev","ref","__DEV__","logger","warnOnce","unregisterTargetRef","contextValue","useMemo","activeTargetRef","hasActiveTarget","measuredRef","targetPreparedStyles"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/providers/boundary-root.provider.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,sBAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAA+C,SAAAG,uBAAAE,CAAA,WAAAA,CAAA,IA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AAI,IAAMA,IAAI,EAAEC,GAAG,KAAKJ,SAAS,GAAG,IAAI,GAAGG,IAAK,CAAC;EAClE,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMM,YAAY,GAAG,IAAAC,cAAO,EAC3B,OAAO;IACNZ,iBAAiB;IACjBU,mBAAmB;IACnBG,eAAe,EAAEhB,WAAW,EAAES,GAAG,IAAI,IAAI;IACzCd,sBAAsB;IACtBC,QAAQ;IACRC;EACD,CAAC,CAAC,EACF,CACCM,iBAAiB,EACjBU,mBAAmB,EACnBb,WAAW,EACXL,sBAAsB,EACtBC,QAAQ,EACRC,MAAM,CAER,CAAC;EAED,OAAO;IACNY,GAAG,EAAEX,OAAO;IACZgB,YAAY;IACZG,eAAe,EAAEjB,WAAW,KAAK,IAAI;IACrCkB,WAAW,EAAElB,WAAW,EAAEO,cAAc,IAAIT,OAAO;IACnDqB,oBAAoB,EAAEnB,WAAW,EAAEM;EACpC,CAAC;AACF,CAAC;AAACnB,OAAA,CAAAM,oBAAA,GAAAA,oBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","_createProvider","_interopRequireDefault","_logger","e","__esModule","default","MULTIPLE_TARGETS_WARNING","TARGET_OUTSIDE_ROOT_WARNING","exports","BoundaryRootProvider","useBoundaryRootContext","createProvider","guarded","props","useBoundaryRootState","params","boundTag","portalRuntime","rootMeasurementRef","rootRef","useAnimatedRef","targetEntry","setTargetEntry","useState","registerTargetRef","useCallback","targetRef","preparedStyles","measurementRef","prev","ref","__DEV__","logger","warnOnce","unregisterTargetRef","contextValue","useMemo","activeTargetRef","hasActiveTarget","measuredRef","targetPreparedStyles"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/providers/boundary-root.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,sBAAA,GAAAD,OAAA;AAEA,IAAAE,eAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,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BAAW,EAAEC,SAA4B,IAAK;IACzEJ,cAAc,CAAEO,IAAI,IAAMA,IAAI,EAAEC,GAAG,KAAKJ,SAAS,GAAG,IAAI,GAAGG,IAAK,CAAC;EAClE,CAAC,EAAE,EAAE,CAAC;EAEN,MAAMM,YAAY,GAAG,IAAAC,cAAO,EAC3B,OAAO;IACNZ,iBAAiB;IACjBU,mBAAmB;IACnBG,eAAe,EAAEhB,WAAW,EAAES,GAAG,IAAI,IAAI;IACzCd,QAAQ;IACRC;EACD,CAAC,CAAC,EACF,CACCO,iBAAiB,EACjBU,mBAAmB,EACnBb,WAAW,EACXL,QAAQ,EACRC,aAAa,CAEf,CAAC;EAED,OAAO;IACNa,GAAG,EAAEX,OAAO;IACZgB,YAAY;IACZG,eAAe,EAAEjB,WAAW,KAAK,IAAI;IACrCkB,WAAW,EAAElB,WAAW,EAAEO,cAAc,IAAIV,kBAAkB,IAAIC,OAAO;IACzEqB,oBAAoB,EAAEnB,WAAW,EAAEM;EACpC,CAAC;AACF,CAAC;AAACnB,OAAA,CAAAM,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -5,20 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.getInitialDestinationMeasurePairKey = void 0;
7
7
  var _linkPairs = require("../../../stores/bounds/helpers/link-pairs.helpers");
8
- const hasPendingSourceLinks = (linkState, pendingPairKey) => {
9
- "worklet";
10
-
11
- const links = linkState?.[pendingPairKey]?.links;
12
- if (!links) {
13
- return false;
14
- }
15
- for (const key in links) {
16
- if (links[key]?.source) {
17
- return true;
18
- }
19
- }
20
- return false;
21
- };
22
8
  const getInitialDestinationMeasurePairKey = params => {
23
9
  "worklet";
24
10
 
@@ -39,15 +25,8 @@ const getInitialDestinationMeasurePairKey = params => {
39
25
  if (hasDestination) {
40
26
  return null;
41
27
  }
42
- const sourceScreenKey = (0, _linkPairs.getSourceScreenKeyFromPairKey)(measurePairKey);
43
- const pendingPairKey = (0, _linkPairs.createPendingPairKey)(sourceScreenKey);
44
- const hasPendingSources = hasPendingSourceLinks(linkState, pendingPairKey);
45
- const pendingSource = linkState?.[pendingPairKey]?.links?.[linkKey]?.source;
46
- if (hasPendingSources && !pendingSource) {
47
- return null;
48
- }
49
28
  const activeGroupId = group && linkState ? (0, _linkPairs.getActiveGroupId)(linkState, measurePairKey, group) : null;
50
- if (!hasPendingSources && activeGroupId && activeGroupId !== linkKey) {
29
+ if (activeGroupId && activeGroupId !== linkKey) {
51
30
  return null;
52
31
  }
53
32
  return measurePairKey;
@@ -1 +1 @@
1
- {"version":3,"names":["_linkPairs","require","hasPendingSourceLinks","linkState","pendingPairKey","links","key","source","getInitialDestinationMeasurePairKey","params","enabled","destinationPairKey","ancestorDestinationPairKey","linkId","group","measurePairKey","linkKey","getLinkKeyFromTag","hasDestination","destination","sourceScreenKey","getSourceScreenKeyFromPairKey","createPendingPairKey","hasPendingSources","pendingSource","activeGroupId","getActiveGroupId","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/utils/destination-signals.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAWA,MAAMC,qBAAqB,GAAGA,CAC7BC,SAAqC,EACrCC,cAA6B,KACzB;EACJ,SAAS;;EACT,MAAMC,KAAK,GAAGF,SAAS,GAAGC,cAAc,CAAC,EAAEC,KAAK;EAEhD,IAAI,CAACA,KAAK,EAAE;IACX,OAAO,KAAK;EACb;EAEA,KAAK,MAAMC,GAAG,IAAID,KAAK,EAAE;IACxB,IAAIA,KAAK,CAACC,GAAG,CAAC,EAAEC,MAAM,EAAE;MACvB,OAAO,IAAI;IACZ;EACD;EAEA,OAAO,KAAK;AACb,CAAC;AAEM,MAAMC,mCAAmC,GAAIC,MAOnD,IAA2B;EAC3B,SAAS;;EACT,MAAM;IACLC,OAAO;IACPC,kBAAkB;IAClBC,0BAA0B;IAC1BC,MAAM;IACNC,KAAK;IACLX;EACD,CAAC,GAAGM,MAAM;EACV,MAAMM,cAAc,GAAGJ,kBAAkB,IAAIC,0BAA0B;EAEvE,IAAI,CAACF,OAAO,IAAI,CAACK,cAAc,EAAE;IAChC,OAAO,IAAI;EACZ;EAEA,MAAMC,OAAO,GAAG,IAAAC,4BAAiB,EAACJ,MAAM,CAAC;EACzC,MAAMK,cAAc,GACnBf,SAAS,GAAGY,cAAc,CAAC,EAAEV,KAAK,GAAGW,OAAO,CAAC,EAAEG,WAAW;EAE3D,IAAID,cAAc,EAAE;IACnB,OAAO,IAAI;EACZ;EAEA,MAAME,eAAe,GAAG,IAAAC,wCAA6B,EAACN,cAAc,CAAC;EACrE,MAAMX,cAAc,GAAG,IAAAkB,+BAAoB,EAACF,eAAe,CAAC;EAC5D,MAAMG,iBAAiB,GAAGrB,qBAAqB,CAACC,SAAS,EAAEC,cAAc,CAAC;EAC1E,MAAMoB,aAAa,GAAGrB,SAAS,GAAGC,cAAc,CAAC,EAAEC,KAAK,GAAGW,OAAO,CAAC,EAAET,MAAM;EAE3E,IAAIgB,iBAAiB,IAAI,CAACC,aAAa,EAAE;IACxC,OAAO,IAAI;EACZ;EAEA,MAAMC,aAAa,GAClBX,KAAK,IAAIX,SAAS,GACf,IAAAuB,2BAAgB,EAACvB,SAAS,EAAEY,cAAc,EAAED,KAAK,CAAC,GAClD,IAAI;EAER,IAAI,CAACS,iBAAiB,IAAIE,aAAa,IAAIA,aAAa,KAAKT,OAAO,EAAE;IACrE,OAAO,IAAI;EACZ;EAEA,OAAOD,cAAc;AACtB,CAAC;AAACY,OAAA,CAAAnB,mCAAA,GAAAA,mCAAA","ignoreList":[]}
1
+ {"version":3,"names":["_linkPairs","require","getInitialDestinationMeasurePairKey","params","enabled","destinationPairKey","ancestorDestinationPairKey","linkId","group","linkState","measurePairKey","linkKey","getLinkKeyFromTag","hasDestination","links","destination","activeGroupId","getActiveGroupId","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/utils/destination-signals.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AASO,MAAMC,mCAAmC,GAAIC,MAOnD,IAA2B;EAC3B,SAAS;;EACT,MAAM;IACLC,OAAO;IACPC,kBAAkB;IAClBC,0BAA0B;IAC1BC,MAAM;IACNC,KAAK;IACLC;EACD,CAAC,GAAGN,MAAM;EACV,MAAMO,cAAc,GAAGL,kBAAkB,IAAIC,0BAA0B;EAEvE,IAAI,CAACF,OAAO,IAAI,CAACM,cAAc,EAAE;IAChC,OAAO,IAAI;EACZ;EAEA,MAAMC,OAAO,GAAG,IAAAC,4BAAiB,EAACL,MAAM,CAAC;EACzC,MAAMM,cAAc,GACnBJ,SAAS,GAAGC,cAAc,CAAC,EAAEI,KAAK,GAAGH,OAAO,CAAC,EAAEI,WAAW;EAE3D,IAAIF,cAAc,EAAE;IACnB,OAAO,IAAI;EACZ;EAEA,MAAMG,aAAa,GAClBR,KAAK,IAAIC,SAAS,GACf,IAAAQ,2BAAgB,EAACR,SAAS,EAAEC,cAAc,EAAEF,KAAK,CAAC,GAClD,IAAI;EAER,IAAIQ,aAAa,IAAIA,aAAa,KAAKL,OAAO,EAAE;IAC/C,OAAO,IAAI;EACZ;EAEA,OAAOD,cAAc;AACtB,CAAC;AAACQ,OAAA,CAAAhB,mCAAA,GAAAA,mCAAA","ignoreList":[]}
@@ -16,11 +16,6 @@ const buildRefreshSignal = (type, pairKey, key) => {
16
16
  signal: `${prefix}${pairKey}|${key}`
17
17
  };
18
18
  };
19
- const isMatchedScreenPortalDestinationRefresh = (linkState, pairKey, linkId) => {
20
- "worklet";
21
-
22
- return linkState?.[pairKey]?.links?.[linkId]?.source?.portalAttachTarget === "matched-screen";
23
- };
24
19
  const getRefreshBoundarySignal = params => {
25
20
  "worklet";
26
21
 
@@ -59,16 +54,6 @@ const getRefreshBoundarySignal = params => {
59
54
  if (!refreshDestinationPairKey) {
60
55
  return null;
61
56
  }
62
-
63
- // NOTE:
64
- // Matched-screen portals use the destination as the initial host/anchor.
65
- // Once attached, the teleported source is the thing being animated, so a
66
- // fresh destination measure would mix in a second coordinate basis. Signals were introduced for scroll view cases + group
67
- // cases, but I can't find a case for where a live component ( matched-screen ) would need this complexity. I would just assume
68
- // you would want this for a->b | b->a transitions.
69
- if (isMatchedScreenPortalDestinationRefresh(linkState, refreshDestinationPairKey, linkId)) {
70
- return null;
71
- }
72
57
  return buildRefreshSignal("destination", refreshDestinationPairKey, [currentScreenKey, closing ? "closing" : "settled"].join("|"));
73
58
  }
74
59
 
@@ -93,12 +78,6 @@ const getRefreshBoundarySignal = params => {
93
78
  if (activeId !== linkId) {
94
79
  return null;
95
80
  }
96
-
97
- // NOTE:
98
- // see above for explanation
99
- if (isMatchedScreenPortalDestinationRefresh(linkState, refreshDestinationPairKey, linkId)) {
100
- return null;
101
- }
102
81
  return buildRefreshSignal("destination", refreshDestinationPairKey, [group, linkId, closing ? "closing" : "settled"].join("|"));
103
82
  };
104
83
  exports.getRefreshBoundarySignal = getRefreshBoundarySignal;
@@ -1 +1 @@
1
- {"version":3,"names":["SOURCE_SIGNAL_PREFIX","DESTINATION_SIGNAL_PREFIX","buildRefreshSignal","type","pairKey","key","prefix","signal","isMatchedScreenPortalDestinationRefresh","linkState","linkId","links","source","portalAttachTarget","getRefreshBoundarySignal","params","enabled","currentScreenKey","sourcePairKey","destinationPairKey","ancestorDestinationPairKey","nextScreenKey","group","shouldRefresh","closing","entering","animating","progress","canRefreshPreCloseDestination","canRefreshSettledDestination","refreshDestinationPairKey","undefined","join","activeId","groups","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/utils/refresh-signals.ts"],"mappings":";;;;;;AAMA,MAAMA,oBAAoB,GAAG,SAAS;AACtC,MAAMC,yBAAyB,GAAG,cAAc;AAMhD,MAAMC,kBAAkB,GAAGA,CAC1BC,IAA2B,EAC3BC,OAAsB,EACtBC,GAAW,KACgB;EAC3B,SAAS;;EACT,MAAMC,MAAM,GACXH,IAAI,KAAK,QAAQ,GAAGH,oBAAoB,GAAGC,yBAAyB;EACrE,OAAO;IACNE,IAAI;IACJ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reshSignal","type","pairKey","key","prefix","signal","getRefreshBoundarySignal","params","enabled","currentScreenKey","sourcePairKey","destinationPairKey","ancestorDestinationPairKey","nextScreenKey","linkId","group","shouldRefresh","closing","entering","animating","progress","linkState","canRefreshPreCloseDestination","canRefreshSettledDestination","refreshDestinationPairKey","undefined","join","activeId","groups","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/utils/refresh-signals.ts"],"mappings":";;;;;;AAMA,MAAMA,oBAAoB,GAAG,SAAS;AACtC,MAAMC,yBAAyB,GAAG,cAAc;AAMhD,MAAMC,kBAAkB,GAAGA,CAC1BC,IAA2B,EAC3BC,OAAsB,EACtBC,GAAW,KACgB;EAC3B,SAAS;;EACT,MAAMC,MAAM,GACXH,IAAI,KAAK,QAAQ,GAAGH,oBAAoB,GAAGC,yBAAyB;EACrE,OAAO;IACNE,IAAI;IACJC,OAAO;IACPG,MAAM,EAAE,GAAGD,MAAM,GAAGF,OAAO,IAAIC,GAAG;EACnC,CAAC;AACF,CAAC;AAEM,MAAMG,wBAAwB,GAAIC,MAexC,IAAmC;EACnC,SAAS;;EACT,MAAM;IACLC,OAAO;IACPC,gBAAgB;IAChBC,aAAa;IACbC,kBAAkB;IAClBC,0BAA0B;IAC1BC,aAAa;IACbC,MAAM;IACNC,KAAK;IACLC,aAAa;IACbC,OAAO;IACPC,QAAQ;IACRC,SAAS;IACTC,QAAQ;IACRC;EACD,CAAC,GAAGd,MAAM;EAEV,IAAI,CAACC,OAAO,EAAE,OAAO,IAAI;EAEzB,MAAMc,6BAA6B,GAClCN,aAAa,IAAIC,OAAO,IAAI,CAACC,QAAQ,IAAI,CAACC,SAAS,IAAIC,QAAQ,IAAI,CAAC;EAErE,MAAMG,4BAA4B,GAAGP,aAAa,IAAI,CAACC,OAAO,IAAI,CAACC,QAAQ;;EAE3E;EACA;EACA;EACA,IAAI,CAACI,6BAA6B,IAAI,CAACC,4BAA4B,EAAE;IACpE,OAAO,IAAI;EACZ;;EAEA;EACA;EACA;E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ignoreList":[]}
@@ -13,20 +13,15 @@ const getInitialSourceCaptureSignal = params => {
13
13
  sourcePairKey,
14
14
  linkId,
15
15
  group,
16
- shouldAutoMeasure,
17
16
  linkState
18
17
  } = params;
19
18
  if (!enabled || !sourcePairKey) {
20
19
  return null;
21
20
  }
22
-
23
- // Trigger components capture on press. Passive Boundary.View sources wait for
24
- // their destination side to attach, then capture into the same assigned pair.
25
- if (!shouldAutoMeasure) {
26
- return null;
27
- }
28
- const link = linkState?.[sourcePairKey]?.links?.[linkId];
29
- if (!link?.destination || link.source) {
21
+ const pair = linkState?.[sourcePairKey];
22
+ const link = pair?.links?.[linkId];
23
+ const hasSourceRequest = pair?.sourceRequests?.[linkId];
24
+ if (!link?.destination && !hasSourceRequest || link?.source) {
30
25
  return null;
31
26
  }
32
27
  if (group) {
@@ -1 +1 @@
1
- {"version":3,"names":["SOURCE_SIGNAL_PREFIX","getInitialSourceCaptureSignal","params","enabled","sourcePairKey","linkId","group","shouldAutoMeasure","linkState","link","links","destination","source","activeId","groups","signalParts","pairKey","signal","join","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/utils/source-signals.ts"],"mappings":";;;;;;AAKA,MAAMA,oBAAoB,GAAG,SAAS;AAO/B,MAAMC,6BAA6B,GAAIC,MAO7C,IAAiC;EACjC,SAAS;;EACT,MAAM;IACLC,OAAO;IACPC,aAAa;IACbC,MAAM;IACNC,KAAK;IACLC,iBAAiB;IACjBC;EACD,CAAC,GAAGN,MAAM;EAEV,IAAI,CAACC,OAAO,IAAI,CAACC,aAAa,EAAE;IAC/B,OAAO,IAAI;EACZ;;EAEA;EACA;EACA,IAAI,CAACG,iBAAiB,EAAE;IACvB,OAAO,IAAI;EACZ;EAEA,MAAME,IAAI,GAAGD,SAAS,GAAGJ,aAAa,CAAC,EAAEM,KAAK,GAAGL,MAAM,CAAC;EAExD,IAAI,CAACI,IAAI,EAAEE,WAAW,IAAIF,IAAI,CAACG,MAAM,EAAE;IACtC,OAAO,IAAI;EACZ;EAEA,IAAIN,KAAK,EAAE;IACV,MAAMO,QAAQ,GAAGL,SAAS,GAAGJ,aAAa,CAAC,EAAEU,MAAM,GAAGR,KAAK,CAAC,EAAEO,QAAQ;;IAEtE;IACA;IACA,IAAIA,QAAQ,IAAIA,QAAQ,KAAKR,MAAM,EAAE;MACpC,OAAO,IAAI;IACZ;EACD;EAEA,MAAMU,WAAW,GAAGT,KAAK,GAAG,CAACA,KAAK,EAAED,MAAM,CAAC,GAAG,CAACA,MAAM,CAAC;EAEtD,OAAO;IACNW,OAAO,EAAEZ,aAAa;IACtBa,MAAM,EAAE,GAAGjB,oBAAoB,GAAGI,aAAa,IAAIW,WAAW,CAACG,IAAI,CAAC,GAAG,CAAC;EACzE,CAAC;AACF,CAAC;AAACC,OAAA,CAAAlB,6BAAA,GAAAA,6BAAA","ignoreList":[]}
1
+ {"version":3,"names":["SOURCE_SIGNAL_PREFIX","getInitialSourceCaptureSignal","params","enabled","sourcePairKey","linkId","group","linkState","pair","link","links","hasSourceRequest","sourceRequests","destination","source","activeId","groups","signalParts","pairKey","signal","join","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/utils/source-signals.ts"],"mappings":";;;;;;AAKA,MAAMA,oBAAoB,GAAG,SAAS;AAO/B,MAAMC,6BAA6B,GAAIC,MAM7C,IAAiC;EACjC,SAAS;;EACT,MAAM;IAAEC,OAAO;IAAEC,aAAa;IAAEC,MAAM;IAAEC,KAAK;IAAEC;EAAU,CAAC,GAAGL,MAAM;EAEnE,IAAI,CAACC,OAAO,IAAI,CAACC,aAAa,EAAE;IAC/B,OAAO,IAAI;EACZ;EAEA,MAAMI,IAAI,GAAGD,SAAS,GAAGH,aAAa,CAAC;EACvC,MAAMK,IAAI,GAAGD,IAAI,EAAEE,KAAK,GAAGL,MAAM,CAAC;EAClC,MAAMM,gBAAgB,GAAGH,IAAI,EAAEI,cAAc,GAAGP,MAAM,CAAC;EAEvD,IAAK,CAACI,IAAI,EAAEI,WAAW,IAAI,CAACF,gBAAgB,IAAKF,IAAI,EAAEK,MAAM,EAAE;IAC9D,OAAO,IAAI;EACZ;EAEA,IAAIR,KAAK,EAAE;IACV,MAAMS,QAAQ,GAAGR,SAAS,GAAGH,aAAa,CAAC,EAAEY,MAAM,GAAGV,KAAK,CAAC,EAAES,QAAQ;;IAEtE;IACA;IACA,IAAIA,QAAQ,IAAIA,QAAQ,KAAKV,MAAM,EAAE;MACpC,OAAO,IAAI;IACZ;EACD;EAEA,MAAMY,WAAW,GAAGX,KAAK,GAAG,CAACA,KAAK,EAAED,MAAM,CAAC,GAAG,CAACA,MAAM,CAAC;EAEtD,OAAO;IACNa,OAAO,EAAEd,aAAa;IACtBe,MAAM,EAAE,GAAGnB,oBAAoB,GAAGI,aAAa,IAAIa,WAAW,CAACG,IAAI,CAAC,GAAG,CAAC;EACzE,CAAC;AACF,CAAC;AAACC,OAAA,CAAApB,6BAAA,GAAAA,6BAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_withScreenTransitions","_boundary","_createTransitionAwareComponent","_maskedView","_interopRequireDefault","_configs","_snapTo","_constants","_useHistory","_useScreenState","_animation","_useScreenGesture","e","__esModule","default","_default","exports","createTransitionAwareComponent","createBoundaryComponent","withScreenTransitions","Boundary","View","Pressable","ScrollView","isScrollable","FlatList","MaskedView","Presets","Specs"],"sourceRoot":"../../../src","sources":["shared/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,+BAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAsBA,IAAAO,OAAA,GAAAP,OAAA;AAMA,IAAAQ,UAAA,GAAAR,OAAA;AAKA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,eAAA,GAAAV,OAAA;AAIA,IAAAW,UAAA,GAAAX,OAAA;AAIA,IAAAY,iBAAA,GAAAZ,OAAA;AAG8D,SAAAK,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GA3C/C;EACdG,8BAA8B,EAA9BA,8DAA8B;EAC9BC,uBAAuB,EAAvBA,iCAAuB;EACvBC,qBAAqB,EAArBA,4CAAqB;EACrBC,QAAQ,EAARA,kBAAQ;EACRC,IAAI,EAAE,IAAAJ,8DAA8B,EAACI,iBAAI,CAAC;EAC1CC,SAAS,EAAE,IAAAL,8DAA8B,EAACK,sBAAS,CAAC;EACpDC,UAAU,EAAE,IAAAN,8DAA8B,EAACM,uBAAU,EAAE;IACtDC,YAAY,EAAE;EACf,CAAC,CAAC;EACFC,QAAQ,EAAE,IAAAR,8DAA8B,EAACQ,qBAAQ,EAAE;IAClDD,YAAY,EAAE;EACf,CAAC,CAAC;EACFE,UAAU,EAAEA,mBAAU;EACtBC,OAAO,EAAPA,gBAAO;EACPC,KAAK,EAALA;AACD,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_withScreenTransitions","_boundary","_createTransitionAwareComponent","_maskedView","_interopRequireDefault","_configs","_snapTo","_constants","_useHistory","_useScreenState","_animation","_useScreenGesture","e","__esModule","default","_default","exports","createTransitionAwareComponent","createBoundaryComponent","withScreenTransitions","Boundary","View","Pressable","ScrollView","isScrollable","FlatList","MaskedView","Presets","Specs"],"sourceRoot":"../../../src","sources":["shared/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,+BAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAC,sBAAA,CAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AAsBA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,UAAA,GAAAR,OAAA;AAKA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,eAAA,GAAAV,OAAA;AAIA,IAAAW,UAAA,GAAAX,OAAA;AAIA,IAAAY,iBAAA,GAAAZ,OAAA;AAG8D,SAAAK,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,IAAAG,QAAA,GAAAC,OAAA,CAAAF,OAAA,GAtC/C;EACdG,8BAA8B,EAA9BA,8DAA8B;EAC9BC,uBAAuB,EAAvBA,iCAAuB;EACvBC,qBAAqB,EAArBA,4CAAqB;EACrBC,QAAQ,EAARA,kBAAQ;EACRC,IAAI,EAAE,IAAAJ,8DAA8B,EAACI,iBAAI,CAAC;EAC1CC,SAAS,EAAE,IAAAL,8DAA8B,EAACK,sBAAS,CAAC;EACpDC,UAAU,EAAE,IAAAN,8DAA8B,EAACM,uBAAU,EAAE;IACtDC,YAAY,EAAE;EACf,CAAC,CAAC;EACFC,QAAQ,EAAE,IAAAR,8DAA8B,EAACQ,qBAAQ,EAAE;IAClDD,YAAY,EAAE;EACf,CAAC,CAAC;EACFE,UAAU,EAAEA,mBAAU;EACtBC,OAAO,EAAPA,gBAAO;EACPC,KAAK,EAALA;AACD,CAAC","ignoreList":[]}
@@ -17,8 +17,8 @@ const applyMeasuredBoundsWrites = params => {
17
17
  measured,
18
18
  preparedStyles,
19
19
  linkWrite,
20
- portalHost,
21
- sourceHost
20
+ handoff,
21
+ escapeClipping
22
22
  } = params;
23
23
 
24
24
  // Set the bounds entry on every measure to avoid any stale measurements
@@ -27,7 +27,10 @@ const applyMeasuredBoundsWrites = params => {
27
27
  bounds: measured
28
28
  });
29
29
  if (linkWrite?.type === "source") {
30
- (0, _links.setSource)(linkWrite.pairKey, linkId, currentScreenKey, measured, preparedStyles, group, portalHost, sourceHost);
30
+ (0, _links.setSource)(linkWrite.pairKey, linkId, currentScreenKey, measured, preparedStyles, group, {
31
+ handoff,
32
+ escapeClipping
33
+ });
31
34
  }
32
35
  if (linkWrite?.type === "destination") {
33
36
  (0, _links.setDestination)(linkWrite.pairKey, linkId, currentScreenKey, measured, preparedStyles, group);
@@ -1 +1 @@
1
- {"version":3,"names":["_entries","require","_links","applyMeasuredBoundsWrites","params","entryTag","linkId","group","currentScreenKey","measured","preparedStyles","linkWrite","portalHost","sourceHost","setEntry","bounds","type","setSource","pairKey","setDestination","exports"],"sourceRoot":"../../../../../src","sources":["shared/providers/helpers/measured-bounds-writes.ts"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AA6BO,MAAME,yBAAyB,GACrCC,MAAuC,IACnC;EACJ,SAAS;;EACT,MAAM;IACLC,QAAQ;IACRC,MAAM;IACNC,KAAK;IACLC,gBAAgB;IAChBC,QAAQ;IACRC,cAAc;IACdC,SAAS;IACTC,UAAU;IACVC;EACD,CAAC,GAAGT,MAAM;;EAEV;EACA;EACA,IAAAU,iBAAQ,EAACT,QAAQ,EAAEG,gBAAgB,EAAE;IACpCO,MAAM,EAAEN;EACT,CAAC,CAAC;EAEF,IAAIE,SAAS,EAAEK,IAAI,KAAK,QAAQ,EAAE;IACjC,IAAAC,gBAAS,EACRN,SAAS,CAACO,OAAO,EACjBZ,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,KAAK,EACLK,UAAU,EACVC,UACD,CAAC;EACF;EAEA,IAAIF,SAAS,EAAEK,IAAI,KAAK,aAAa,EAAE;IACtC,IAAAG,qBAAc,EACbR,SAAS,CAACO,OAAO,EACjBZ,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,KACD,CAAC;EACF;AACD,CAAC;AAACa,OAAA,CAAAjB,yBAAA,GAAAA,yBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_entries","require","_links","applyMeasuredBoundsWrites","params","entryTag","linkId","group","currentScreenKey","measured","preparedStyles","linkWrite","handoff","escapeClipping","setEntry","bounds","type","setSource","pairKey","setDestination","exports"],"sourceRoot":"../../../../../src","sources":["shared/providers/helpers/measured-bounds-writes.ts"],"mappings":";;;;;;AACA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAyBO,MAAME,yBAAyB,GACrCC,MAAuC,IACnC;EACJ,SAAS;;EACT,MAAM;IACLC,QAAQ;IACRC,MAAM;IACNC,KAAK;IACLC,gBAAgB;IAChBC,QAAQ;IACRC,cAAc;IACdC,SAAS;IACTC,OAAO;IACPC;EACD,CAAC,GAAGT,MAAM;;EAEV;EACA;EACA,IAAAU,iBAAQ,EAACT,QAAQ,EAAEG,gBAAgB,EAAE;IACpCO,MAAM,EAAEN;EACT,CAAC,CAAC;EAEF,IAAIE,SAAS,EAAEK,IAAI,KAAK,QAAQ,EAAE;IACjC,IAAAC,gBAAS,EACRN,SAAS,CAACO,OAAO,EACjBZ,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,KAAK,EACL;MAAEK,OAAO;MAAEC;IAAe,CAC3B,CAAC;EACF;EAEA,IAAIF,SAAS,EAAEK,IAAI,KAAK,aAAa,EAAE;IACtC,IAAAG,qBAAc,EACbR,SAAS,CAACO,OAAO,EACjBZ,MAAM,EACNE,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdH,KACD,CAAC;EACF;AACD,CAAC;AAACa,OAAA,CAAAjB,yBAAA,GAAAA,yBAAA","ignoreList":[]}
@@ -8,6 +8,7 @@ const updateDerivations = frame => {
8
8
  "worklet";
9
9
 
10
10
  frame.progress = frame.current.progress + (frame.next?.progress ?? 0);
11
+ frame.transitionProgress = frame.current.transitionProgress + (frame.next?.transitionProgress ?? 0);
11
12
  frame.focused = !frame.next;
12
13
  frame.active = frame.focused ? frame.current : frame.next ?? frame.current;
13
14
  frame.inactive = frame.focused ? frame.previous : frame.current;
@@ -1 +1 @@
1
- {"version":3,"names":["updateDerivations","frame","progress","current","next","focused","active","inactive","previous","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/derivations.ts"],"mappings":";;;;;;AAYO,MAAMA,iBAAiB,GAAIC,KAAwB,IAAK;EAC9D,SAAS;;EAETA,KAAK,CAACC,QAAQ,GAAGD,KAAK,CAACE,OAAO,CAACD,QAAQ,IAAID,KAAK,CAACG,IAAI,EAAEF,QAAQ,IAAI,CAAC,CAAC;EACrED,KAAK,CAACI,OAAO,GAAG,CAACJ,KAAK,CAACG,IAAI;EAC3BH,KAAK,CAACK,MAAM,GAAGL,KAAK,CAACI,OAAO,GAAGJ,KAAK,CAACE,OAAO,GAAIF,KAAK,CAACG,IAAI,IAAIH,KAAK,CAACE,OAAQ;EAC5EF,KAAK,CAACM,QAAQ,GAAGN,KAAK,CAACI,OAAO,GAAGJ,KAAK,CAACO,QAAQ,GAAGP,KAAK,CAACE,OAAO;AAChE,CAAC;AAACM,OAAA,CAAAT,iBAAA,GAAAA,iBAAA","ignoreList":[]}
1
+ {"version":3,"names":["updateDerivations","frame","progress","current","next","transitionProgress","focused","active","inactive","previous","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/derivations.ts"],"mappings":";;;;;;AAaO,MAAMA,iBAAiB,GAAIC,KAAwB,IAAK;EAC9D,SAAS;;EAETA,KAAK,CAACC,QAAQ,GAAGD,KAAK,CAACE,OAAO,CAACD,QAAQ,IAAID,KAAK,CAACG,IAAI,EAAEF,QAAQ,IAAI,CAAC,CAAC;EACrED,KAAK,CAACI,kBAAkB,GACvBJ,KAAK,CAACE,OAAO,CAACE,kBAAkB,IAAIJ,KAAK,CAACG,IAAI,EAAEC,kBAAkB,IAAI,CAAC,CAAC;EACzEJ,KAAK,CAACK,OAAO,GAAG,CAACL,KAAK,CAACG,IAAI;EAC3BH,KAAK,CAACM,MAAM,GAAGN,KAAK,CAACK,OAAO,GAAGL,KAAK,CAACE,OAAO,GAAIF,KAAK,CAACG,IAAI,IAAIH,KAAK,CAACE,OAAQ;EAC5EF,KAAK,CAACO,QAAQ,GAAGP,KAAK,CAACK,OAAO,GAAGL,KAAK,CAACQ,QAAQ,GAAGR,KAAK,CAACE,OAAO;AAChE,CAAC;AAACO,OAAA,CAAAV,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -113,6 +113,7 @@ const createInitialInterpolatorProps = ({
113
113
  current,
114
114
  next,
115
115
  progress: 0,
116
+ transitionProgress: 0,
116
117
  stackProgress: 0,
117
118
  logicallySettled: 1,
118
119
  focused: true,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_reactNativeSafeAreaContext","_constants","_useStack","_descriptors","_buildScreenTransitionOptions","_derivations","_hasTransitionsEnabled","_hydrateTransitionState","_stackProgress","_useBuildTransitionState","_worklet","getInitialSettledProgress","descriptor","snapPoints","initialSnapIndex","options","length","clampedIndex","Math","min","max","snapPoint","applyInitialProgress","state","dimensions","progress","entering","closing","animating","willAnimate","settled","transitionProgress","logicallySettled","layouts","screen","createInitialTransitionState","meta","toPlainValue","undefined","createScreenTransitionState","toPlainRoute","route","buildScreenTransitionOptions","createInitialInterpolatorProps","insets","currentDescriptor","nextDescriptor","prevDescriptor","hasIncomingNext","isFocusedEntering","shouldAnimateInitialMount","experimental_animateOnInitialMount","currentProgress","currentEntering","current","previous","next","frame","stackProgress","focused","active","inactive","updateDerivations","hydrateInterpolatorFrame","currentAnimation","nextAnimation","prevAnimation","nextHasTransitions","interpolatorOptions","shouldApplyOptionsToCurrent","owner","shouldApplyOptionsToNext","previousCurrentProgress","visualProgress","get","previousNextProgress","hydrateTransitionState","DEFAULT_SCREEN_TRANSITION_STATE","resolveStackProgress","useScreenAnimationPipeline","transitionsAlwaysOn","useStack","stack","flags","TRANSITIONS_ALWAYS_ON","useWindowDimensions","useSafeAreaInsets","currDescriptor","useDescriptors","useBuildTransitionState","nextRouteKey","key","hasTransitionsEnabled","initialInterpolatorProps","useMemo","screenInterpolatorProps","useSharedValue","selectedInterpolatorOptions","propsRevisionState","value","screenInterpolatorPropsRevision","useDerivedValue","modify","revision","nextInterpolator","screenStyleInterpolator","currentInterpolator"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/pipeline.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAMA,IAAAG,2BAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAIA,IAAAK,SAAA,GAAAL,OAAA;AAOA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,6BAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AACA,IAAAS,sBAAA,GAAAT,OAAA;AACA,IAAAU,uBAAA,GAAAV,OAAA;AAEA,IAAAW,cAAA,GAAAX,OAAA;AACA,IAAAY,wBAAA,GAAAZ,OAAA;AACA,IAAAa,QAAA,GAAAb,OAAA;AAeA,MAAMc,yBAAyB,GAAIC,UAA0B,IAAK;EACjE,MAAM;IAAEC,UAAU;IAAEC,gBAAgB,GAAG;EAAE,CAAC,GAAGF,UAAU,CAACG,OAAO;EAE/D,IAAI,CAACF,UAAU,EAAEG,MAAM,EAAE;IACxB,OAAO,CAAC;EACT;EAEA,MAAMC,YAAY,GAAGC,IAAI,CAACC,GAAG,CAC5BD,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEN,gBAAgB,CAAC,EAC7BD,UAAU,CAACG,MAAM,GAAG,CACrB,CAAC;EACD,MAAMK,SAAS,GAAGR,UAAU,CAACI,YAAY,CAAC;EAE1C,OAAO,OAAOI,SAAS,KAAK,QAAQ,G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AOI,QAAQ;IAChB,CAAC,EAAE,KAAK,CAAC;IAET,OAAOL,kBAAkB,CAACxB,GAAG,CAAC,CAAC,CAACyB,KAAK;EACtC,CAAC,CAAC;EAEF,MAAMK,gBAAgB,GAAG1D,cAAc,EAAE/B,OAAO,CAAC0F,uBAAuB;EACxE,MAAMC,mBAAmB,GAAGnB,cAAc,EAAExE,OAAO,CAAC0F,uBAAuB;EAE3E,OAAO;IACNV,uBAAuB;IACvBK,+BAA+B;IAC/BH,2BAA2B;IAC3BO,gBAAgB;IAChBE;EACD,CAAC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_reactNativeSafeAreaContext","_constants","_useStack","_descriptors","_buildScreenTransitionOptions","_derivations","_hasTransitionsEnabled","_hydrateTransitionState","_stackProgress","_useBuildTransitionState","_worklet","getInitialSettledProgress","descriptor","snapPoints","initialSnapIndex","options","length","clampedIndex","Math","min","max","snapPoint","applyInitialProgress","state","dimensions","progress","entering","closing","animating","willAnimate","settled","transitionProgress","logicallySettled","layouts","screen","createInitialTransitionState","meta","toPlainValue","undefined","createScreenTransitionState","toPlainRoute","route","buildScreenTransitionOptions","createInitialInterpolatorProps","insets","currentDescriptor","nextDescriptor","prevDescriptor","hasIncomingNext","isFocusedEntering","shouldAnimateInitialMount","experimental_animateOnInitialMount","currentProgress","currentEntering","current","previous","next","frame","stackProgress","focused","active","inactive","updateDerivations","hydrateInterpolatorFrame","currentAnimation","nextAnimation","prevAnimation","nextHasTransitions","interpolatorOptions","shouldApplyOptionsToCurrent","owner","shouldApplyOptionsToNext","previousCurrentProgress","visualProgress","get","previousNextProgress","hydrateTransitionState","DEFAULT_SCREEN_TRANSITION_STATE","resolveStackProgress","useScreenAnimationPipeline","transitionsAlwaysOn","useStack","stack","flags","TRANSITIONS_ALWAYS_ON","useWindowDimensions","useSafeAreaInsets","currDescriptor","useDescriptors","useBuildTransitionState","nextRouteKey","key","hasTransitionsEnabled","initialInterpolatorProps","useMemo","screenInterpolatorProps","useSharedValue","selectedInterpolatorOptions","propsRevisionState","value","screenInterpolatorPropsRevision","useDerivedValue","modify","revision","nextInterpolator","screenStyleInterpolator","currentInterpolator"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/pipeline.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAMA,IAAAG,2BAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAIA,IAAAK,SAAA,GAAAL,OAAA;AAOA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,6BAAA,GAAAP,OAAA;AACA,IAAAQ,YAAA,GAAAR,OAAA;AACA,IAAAS,sBAAA,GAAAT,OAAA;AACA,IAAAU,uBAAA,GAAAV,OAAA;AAEA,IAAAW,cAAA,GAAAX,OAAA;AACA,IAAAY,wBAAA,GAAAZ,OAAA;AACA,IAAAa,QAAA,GAAAb,OAAA;AAeA,MAAMc,yBAAyB,GAAIC,UAA0B,IAAK;EACjE,MAAM;IAAEC,UAAU;IAAEC,gBAAgB,GAAG;EAAE,CAAC,GAAGF,UAAU,CAACG,OAAO;EAE/D,IAAI,CAACF,UAAU,EAAEG,MAAM,EAAE;IACxB,OAAO,CAAC;EACT;EAEA,MAAMC,YAAY,GAAGC,IAAI,CAACC,GAAG,CAC5BD,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEN,gBAAgB,CAAC,EAC7BD,UAAU,CAACG,MAAM,GAAG,CACrB,CAAC;EACD,MAAMK,SAAS,GAAGR,UAAU,CAACI,YAAY,CAAC;EAE1C,OAAO,OAAOI,SAAS,KAAK,QAAQ,GAAGA,SAAS,GAAG,CAAC;AACrD,CAAC;AAED,MAAMC,oBAAoB,GAAGA,CAAC;EAC7BC,KAAK;EACLC,UAAU;EACVC,QAAQ;EACRC,QAAQ,GAAG,CAAC;EACZC,OAAO,GAAG,CA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AMK,gBAAgB,GAAG1D,cAAc,EAAE/B,OAAO,CAAC0F,uBAAuB;EACxE,MAAMC,mBAAmB,GAAGnB,cAAc,EAAExE,OAAO,CAAC0F,uBAAuB;EAE3E,OAAO;IACNV,uBAAuB;IACvBK,+BAA+B;IAC/BH,2BAA2B;IAC3BO,gBAAgB;IAChBE;EACD,CAAC;AACF","ignoreList":[]}
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getLocalTransformForSlotComposition = exports.composeSlotStyleWithLocalTransform = void 0;
7
+ var _constants = require("../../../../constants");
8
+ const isSharedValueLike = value => {
9
+ "worklet";
10
+
11
+ return value?._isReanimatedSharedValue === true;
12
+ };
13
+ const resolveTransformValue = value => {
14
+ "worklet";
15
+
16
+ if (isSharedValueLike(value)) {
17
+ return value.value;
18
+ }
19
+ if (Array.isArray(value)) {
20
+ const resolved = [];
21
+ for (let index = 0; index < value.length; index++) {
22
+ const item = value[index];
23
+ resolved.push(isSharedValueLike(item) ? item.value : item);
24
+ }
25
+ return resolved;
26
+ }
27
+ return value;
28
+ };
29
+ const resolveTransformItem = value => {
30
+ "worklet";
31
+
32
+ if (typeof value === "object" && value !== null) {
33
+ const resolved = {};
34
+ const source = value;
35
+ for (const key in source) {
36
+ resolved[key] = resolveTransformValue(source[key]);
37
+ }
38
+ return resolved;
39
+ }
40
+ return value;
41
+ };
42
+ const resolveLocalTransform = transform => {
43
+ "worklet";
44
+
45
+ const resolved = [];
46
+ for (let index = 0; index < transform.length; index++) {
47
+ resolved.push(resolveTransformItem(transform[index]));
48
+ }
49
+ return resolved;
50
+ };
51
+ const flattenStyleObject = style => {
52
+ if (style === null || style === undefined || typeof style !== "object") {
53
+ return undefined;
54
+ }
55
+ if (!Array.isArray(style)) {
56
+ return style;
57
+ }
58
+ let flattened;
59
+ for (let index = 0; index < style.length; index++) {
60
+ const child = flattenStyleObject(style[index]);
61
+ if (!child) {
62
+ continue;
63
+ }
64
+ flattened = flattened ?? {};
65
+ Object.assign(flattened, child);
66
+ }
67
+ return flattened;
68
+ };
69
+ const getLocalTransformForSlotComposition = style => {
70
+ const flattened = flattenStyleObject(style);
71
+ const transform = flattened?.transform;
72
+ return Array.isArray(transform) ? transform : undefined;
73
+ };
74
+ exports.getLocalTransformForSlotComposition = getLocalTransformForSlotComposition;
75
+ const composeSlotStyleWithLocalTransform = (slotStyle, localTransform, boundsLocalTransform) => {
76
+ "worklet";
77
+
78
+ const resolvedSlotStyle = slotStyle ?? _constants.NO_STYLES;
79
+ // The measured bounds snapshot supersedes the live local transform so bounds
80
+ // geometry and payload scale are composed from the same measurement frame.
81
+ const transformToCompose = boundsLocalTransform ?? localTransform;
82
+ if (!transformToCompose?.length) {
83
+ return resolvedSlotStyle;
84
+ }
85
+ const slotTransform = resolvedSlotStyle.transform;
86
+ if (!Array.isArray(slotTransform)) {
87
+ return resolvedSlotStyle;
88
+ }
89
+ return {
90
+ ...resolvedSlotStyle,
91
+ transform: [...slotTransform, ...resolveLocalTransform(transformToCompose)]
92
+ };
93
+ };
94
+ exports.composeSlotStyleWithLocalTransform = composeSlotStyleWithLocalTransform;
95
+ //# sourceMappingURL=compose-slot-style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_constants","require","isSharedValueLike","value","_isReanimatedSharedValue","resolveTransformValue","Array","isArray","resolved","index","length","item","push","resolveTransformItem","source","key","resolveLocalTransform","transform","flattenStyleObject","style","undefined","flattened","child","Object","assign","getLocalTransformForSlotComposition","exports","composeSlotStyleWithLocalTransform","slotStyle","localTransform","boundsLocalTransform","resolvedSlotStyle","NO_STYLES","transformToCompose","slotTransform"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/compose-slot-style.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAQA,MAAMC,iBAAiB,GAAIC,KAAc,IAA+B;EACvE,SAAS;;EACT,OACEA,KAAK,EAAsCC,wBAAwB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AiB,CAACd,SAAS;EACjD,IAAI,CAACX,KAAK,CAACC,OAAO,CAAC2B,aAAa,CAAC,EAAE;IAClC,OAAOH,iBAAiB;EACzB;EAEA,OAAO;IACN,GAAGA,iBAAiB;IACpBd,SAAS,EAAE,CACV,GAAIiB,aAAsC,EAC1C,GAAGlB,qBAAqB,CAACiB,kBAAkB,CAAC;EAE9C,CAAC;AACF,CAAC;AAACP,OAAA,CAAAC,kCAAA,GAAAA,kCAAA","ignoreList":[]}
@@ -4,12 +4,18 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.normalizeSlots = normalizeSlots;
7
+ var _localTransform = require("../../../../utils/bounds/helpers/styles/local-transform");
7
8
  const isExplicitTransitionSlot = value => {
8
9
  "worklet";
9
10
 
10
11
  return typeof value === "object" && value != null && ("style" in value || "props" in value);
11
12
  };
12
- const isAlreadyNormalizedStyleMap = raw => {
13
+ const hasBoundsLocalTransformMarker = style => {
14
+ "worklet";
15
+
16
+ return !!(0, _localTransform.getBoundsLocalTransform)(style)?.length;
17
+ };
18
+ const isAlreadyNormalizedStyleMapWithoutBoundsMetadata = raw => {
13
19
  "worklet";
14
20
 
15
21
  for (const key in raw) {
@@ -20,6 +26,9 @@ const isAlreadyNormalizedStyleMap = raw => {
20
26
  if (!isExplicitTransitionSlot(value)) {
21
27
  return false;
22
28
  }
29
+ if (hasBoundsLocalTransformMarker(value.style)) {
30
+ return false;
31
+ }
23
32
  }
24
33
  return true;
25
34
  };
@@ -34,10 +43,7 @@ const isAlreadyNormalizedStyleMap = raw => {
34
43
  function normalizeSlots(raw) {
35
44
  "worklet";
36
45
 
37
- // Most modern interpolators already return the canonical `{ style, props }`
38
- // slot shape. In that common case, we can forward the raw object directly and
39
- // avoid building a second map just to copy the same slot references over.
40
- if (isAlreadyNormalizedStyleMap(raw)) {
46
+ if (isAlreadyNormalizedStyleMapWithoutBoundsMetadata(raw)) {
41
47
  return raw;
42
48
  }
43
49
  const normalized = {};
@@ -50,12 +56,27 @@ function normalizeSlots(raw) {
50
56
  continue;
51
57
  }
52
58
  if (isExplicitTransitionSlot(value)) {
53
- // Proper TransitionSlotStyle — pass through
54
- normalized[key] = value;
59
+ const explicitSlot = value;
60
+ const boundsLocalTransform = (0, _localTransform.getBoundsLocalTransform)(explicitSlot.style);
61
+ if (!boundsLocalTransform?.length) {
62
+ normalized[key] = explicitSlot;
63
+ continue;
64
+ }
65
+ normalized[key] = {
66
+ style: explicitSlot.style ? (0, _localTransform.stripBoundsLocalTransform)(explicitSlot.style) : undefined,
67
+ props: explicitSlot.props,
68
+ boundsLocalTransform
69
+ };
55
70
  } else {
71
+ const boundsLocalTransform = (0, _localTransform.getBoundsLocalTransform)(value);
72
+ const style = boundsLocalTransform?.length && value ? (0, _localTransform.stripBoundsLocalTransform)(value) : value;
73
+
56
74
  // Shorthand: plain StyleProps — wrap it
57
- normalized[key] = {
58
- style: value
75
+ normalized[key] = boundsLocalTransform?.length ? {
76
+ style,
77
+ boundsLocalTransform
78
+ } : {
79
+ style
59
80
  };
60
81
  }
61
82
  }
@@ -1 +1 @@
1
- {"version":3,"names":["isExplicitTransitionSlot","value","isAlreadyNormalizedStyleMap","raw","key","undefined","normalizeSlots","normalized","style"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/normalize-slots.ts"],"mappings":";;;;;;AAKA,MAAMA,wBAAwB,GAAIC,KAAc,IAAK;EACpD,SAAS;;EACT,OACC,OAAOA,KAAK,KAAK,QAAQ,IACzBA,KAAK,IAAI,IAAI,KACZ,OAAO,IAAIA,KAAK,IAAI,OAAO,IAAIA,KAAK,CAAC;AAExC,CAAC;AAED,MAAMC,2BAA2B,GAAIC,GAAwB,IAAK;EACjE,SAAS;;EAET,KAAK,MAAMC,GAAG,IAAID,GAAG,EAAE;IACtB,MAAMF,KAAK,GAAGE,GAAG,CAACC,GAAG,CAAC;IAEtB,IAAIH,KAAK,KAAKI,SAAS,EAAE;MACxB;IACD;IAEA,IAAI,CAACL,wBAAwB,CAACC,KAAK,CAAC,EAAE;MACrC,OAAO,KAAK;IACb;EACD;EAEA,OAAO,IAAI;AACZ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASK,cAAcA,CAC7BH,GAAwB,EACgB;EACxC,SAAS;;EAET;EACA;EACA;EACA,IAAID,2BAA2B,CAACC,GAAG,CAAC,EAAE;IACrC,OAAOA,GAAG;EACX;EAEA,MAAMI,UAAqE,GAC1E,CAAC,CAAC;EAEH,KAAK,MAAMH,GAAG,IAAID,GAAG,EAAE;IACtB,MAAMF,KAAK,GAAGE,GAAG,CAACC,GAAG,CAAC;;IAEtB;IACA,IAAIH,KAAK,KAAKI,SAAS,EAAE;MACxBE,UAAU,CAACH,GAAG,CAAC,GAAGC,SAAS;MAC3B;IACD;IAEA,IAAIL,wBAAwB,CAACC,KAAK,CAAC,EAAE;MACpC;MACAM,UAAU,CAACH,GAAG,CAAC,GAAGH,KAAsC;IACzD,CAAC,MAAM;MACN;MACAM,UAAU,CAACH,GAAG,CAAC,GAAG;QAAEI,KAAK,EAAEP;MAAM,CAAC;IACnC;EACD;EAEA,OAAOM,UAAU;AAClB","ignoreList":[]}
1
+ {"version":3,"names":["_localTransform","require","isExplicitTransitionSlot","value","hasBoundsLocalTransformMarker","style","getBoundsLocalTransform","length","isAlreadyNormalizedStyleMapWithoutBoundsMetadata","raw","key","undefined","normalizeSlots","normalized","explicitSlot","boundsLocalTransform","stripBoundsLocalTransform","props"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/normalize-slots.ts"],"mappings":";;;;;;AAIA,IAAAA,eAAA,GAAAC,OAAA;AAKA,MAAMC,wBAAwB,GAAIC,KAAc,IAAK;EACpD,SAAS;;EACT,OACC,OAAOA,KAAK,KAAK,QAAQ,IACzBA,KAAK,IAAI,IAAI,KACZ,OAAO,IAAIA,KAAK,IAAI,OAAO,IAAIA,KAAK,CAAC;AAExC,CAAC;AAED,MAAMC,6BAA6B,GAAI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AAW,yCAAyB,EAACF,YAAY,CAACT,KAAK,CAAC,GAC7CM,SAAS;QACZM,KAAK,EAAEH,YAAY,CAACG,KAAK;QACzBF;MACD,CAAC;IACF,CAAC,MAAM;MACN,MAAMA,oBAAoB,GAAG,IAAAT,uCAAuB,EAACH,KAAK,CAAC;MAC3D,MAAME,KAAK,GACVU,oBAAoB,EAAER,MAAM,IAAIJ,KAAK,GAClC,IAAAa,yCAAyB,EAACb,KAAK,CAAC,GAChCA,KAAK;;MAET;MACAU,UAAU,CAACH,GAAG,CAAC,GAAGK,oBAAoB,EAAER,MAAM,GAC3C;QAAEF,KAAK;QAAEU;MAAqB,CAAC,GAC/B;QAAEV;MAAM,CAAC;IACb;EACD;EAEA,OAAOQ,UAAU;AAClB","ignoreList":[]}
@@ -68,6 +68,7 @@ const getResolvedSlotOutput = ({
68
68
  resolvedSlot: (0, _materializeSlot.materializeResolvedSlot)({
69
69
  baseStyle: state.baseStyle,
70
70
  baseProps: state.baseProps,
71
+ boundsLocalTransform: slot?.boundsLocalTransform,
71
72
  previousState,
72
73
  styleKeys: state.styleKeys,
73
74
  propKeys: state.propKeys,
@@ -111,6 +112,7 @@ const getMergedLocalSlot = (context, slotId) => {
111
112
 
112
113
  let mergedStyle;
113
114
  let mergedProps;
115
+ let boundsLocalTransform;
114
116
  for (let index = 0; index < context.localStylesMaps.length; index++) {
115
117
  const slot = context.localStylesMaps[index]?.[slotId];
116
118
  if (slot === undefined) {
@@ -118,13 +120,17 @@ const getMergedLocalSlot = (context, slotId) => {
118
120
  }
119
121
  mergedStyle = mergeBucket(mergedStyle, slot.style);
120
122
  mergedProps = mergeBucket(mergedProps, slot.props);
123
+ if (slot.boundsLocalTransform?.length) {
124
+ boundsLocalTransform = slot.boundsLocalTransform;
125
+ }
121
126
  }
122
- if (!mergedStyle && !mergedProps) {
127
+ if (!mergedStyle && !mergedProps && !boundsLocalTransform) {
123
128
  return undefined;
124
129
  }
125
130
  return {
126
131
  style: mergedStyle,
127
- props: mergedProps
132
+ props: mergedProps,
133
+ boundsLocalTransform
128
134
  };
129
135
  };
130
136
  const getSlotForId = (context, slotId) => {
@@ -236,7 +242,7 @@ const areSlotsEqual = (left, right) => {
236
242
  if (!left || !right) {
237
243
  return false;
238
244
  }
239
- return areFlatObjectsEqual(left.style, right.style) && areFlatObjectsEqual(left.props, right.props);
245
+ return areFlatObjectsEqual(left.style, right.style) && areFlatObjectsEqual(left.props, right.props) && areTransformArraysEqual(left.boundsLocalTransform, right.boundsLocalTransform);
240
246
  };
241
247
  const reuseEqualResolvedSlots = ({
242
248
  resolvedStylesMap,