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
@@ -0,0 +1,254 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.usesEscapeClippingHost = exports.resolveBoundaryPortalOwnership = exports.hasHandoffEscapeContinuation = exports.canSwitchBoundaryLocalHandoffImmediately = void 0;
7
+ var _linkPairs = require("../../../../stores/bounds/helpers/link-pairs.helpers");
8
+ const hasSeenScreenKey = (screenKeys, screenKey) => {
9
+ "worklet";
10
+
11
+ for (let index = 0; index < screenKeys.length; index++) {
12
+ if (screenKeys[index] === screenKey) {
13
+ return true;
14
+ }
15
+ }
16
+ return false;
17
+ };
18
+ const usesEscapeClippingHost = link => {
19
+ "worklet";
20
+
21
+ return link?.source?.handoff === true && link.source.escapeClipping === true;
22
+ };
23
+ exports.usesEscapeClippingHost = usesEscapeClippingHost;
24
+ const isReturningToPreviousSourceHost = ({
25
+ hostScreenKey,
26
+ ownerPairKey,
27
+ previousOwnerPairKey
28
+ }) => {
29
+ "worklet";
30
+
31
+ const previousSourceScreenKey = (0, _linkPairs.getSourceScreenKeyFromPairKey)(previousOwnerPairKey);
32
+ const previousDestinationScreenKey = (0, _linkPairs.getDestinationScreenKeyFromPairKey)(previousOwnerPairKey);
33
+ const ownerDestinationScreenKey = (0, _linkPairs.getDestinationScreenKeyFromPairKey)(ownerPairKey);
34
+ return previousDestinationScreenKey !== "" && ownerDestinationScreenKey !== "" && previousDestinationScreenKey !== previousSourceScreenKey && ownerDestinationScreenKey === previousSourceScreenKey && hostScreenKey === previousSourceScreenKey;
35
+ };
36
+ const canSwitchBoundaryLocalHandoffImmediately = ({
37
+ hostScreenKey,
38
+ ownerPairKey,
39
+ previousOwnerPairKey
40
+ }) => {
41
+ "worklet";
42
+
43
+ if (!hostScreenKey || !ownerPairKey) {
44
+ return false;
45
+ }
46
+ if (hostScreenKey === (0, _linkPairs.getSourceScreenKeyFromPairKey)(ownerPairKey)) {
47
+ return true;
48
+ }
49
+ if (!previousOwnerPairKey) {
50
+ return false;
51
+ }
52
+ return isReturningToPreviousSourceHost({
53
+ hostScreenKey,
54
+ ownerPairKey,
55
+ previousOwnerPairKey
56
+ });
57
+ };
58
+ exports.canSwitchBoundaryLocalHandoffImmediately = canSwitchBoundaryLocalHandoffImmediately;
59
+ const isActiveHandoffLink = ({
60
+ link,
61
+ linkKey,
62
+ pairKey,
63
+ pairsState
64
+ }) => {
65
+ "worklet";
66
+
67
+ if (!link.group) {
68
+ return true;
69
+ }
70
+ const activeId = pairsState[pairKey]?.groups?.[link.group]?.activeId;
71
+ return !activeId || activeId === linkKey;
72
+ };
73
+ const resolveBoundaryLocalStyleOwnerScreenKey = ({
74
+ hostScreenKey,
75
+ isSettledHostReady,
76
+ settledHostScreenKey,
77
+ sourceScreenKey
78
+ }) => {
79
+ "worklet";
80
+
81
+ if (settledHostScreenKey === hostScreenKey && isSettledHostReady) {
82
+ return hostScreenKey;
83
+ }
84
+ return sourceScreenKey;
85
+ };
86
+ const pendingSignal = sourcePairKey => {
87
+ "worklet";
88
+
89
+ return {
90
+ hostScreenKey: null,
91
+ ownerPairKey: sourcePairKey,
92
+ ownerScreenKey: null,
93
+ status: "pending"
94
+ };
95
+ };
96
+ const clearSignal = sourcePairKey => {
97
+ "worklet";
98
+
99
+ return {
100
+ hostScreenKey: null,
101
+ ownerPairKey: sourcePairKey,
102
+ ownerScreenKey: null,
103
+ status: "clear"
104
+ };
105
+ };
106
+ const resolveBoundaryPortalOwnership = ({
107
+ boundaryId,
108
+ currentScreenKey,
109
+ escapeClipping,
110
+ handoff,
111
+ isSettledHostClosingComplete = false,
112
+ isSettledHostReady = false,
113
+ pairsState,
114
+ settledHostScreenKey = null,
115
+ sourcePairKey
116
+ }) => {
117
+ "worklet";
118
+
119
+ const linkKey = (0, _linkPairs.getLinkKeyFromTag)(boundaryId);
120
+ const link = (0, _linkPairs.getLink)(pairsState, sourcePairKey, linkKey);
121
+ if (link?.status !== "complete") {
122
+ return pendingSignal(sourcePairKey);
123
+ }
124
+ if (!isActiveHandoffLink({
125
+ link,
126
+ linkKey,
127
+ pairKey: sourcePairKey,
128
+ pairsState
129
+ })) {
130
+ return clearSignal(sourcePairKey);
131
+ }
132
+ if (!handoff) {
133
+ return {
134
+ hostScreenKey: currentScreenKey,
135
+ ownerPairKey: sourcePairKey,
136
+ ownerScreenKey: currentScreenKey,
137
+ status: "complete"
138
+ };
139
+ }
140
+ let hostScreenKey = link.destination.screenKey;
141
+ let ownerPairKey = sourcePairKey;
142
+ let previousOwnerPairKey = null;
143
+ const seenScreenKeys = [(0, _linkPairs.getSourceScreenKeyFromPairKey)(sourcePairKey), hostScreenKey];
144
+ const pairKeys = Object.keys(pairsState);
145
+ for (let hop = 0; hop < pairKeys.length; hop++) {
146
+ let didAdvance = false;
147
+ let hasPendingNextHop = false;
148
+ let didHitVisitedScreen = false;
149
+ for (let index = 0; index < pairKeys.length; index++) {
150
+ const candidatePairKey = pairKeys[index];
151
+ if (!candidatePairKey || candidatePairKey === ownerPairKey) {
152
+ continue;
153
+ }
154
+ const candidate = (0, _linkPairs.getLink)(pairsState, candidatePairKey, linkKey);
155
+ if (!candidate?.source || candidate.source.screenKey !== hostScreenKey) {
156
+ continue;
157
+ }
158
+ if (!candidate.source.handoff) {
159
+ continue;
160
+ }
161
+ if (!isActiveHandoffLink({
162
+ link: candidate,
163
+ linkKey,
164
+ pairKey: candidatePairKey,
165
+ pairsState
166
+ })) {
167
+ continue;
168
+ }
169
+ if (candidate.status !== "complete") {
170
+ hasPendingNextHop = true;
171
+ continue;
172
+ }
173
+ const nextHostScreenKey = candidate.destination.screenKey;
174
+ previousOwnerPairKey = ownerPairKey;
175
+ ownerPairKey = candidatePairKey;
176
+ hostScreenKey = nextHostScreenKey;
177
+ if (hasSeenScreenKey(seenScreenKeys, nextHostScreenKey)) {
178
+ didHitVisitedScreen = true;
179
+ break;
180
+ }
181
+ seenScreenKeys.push(nextHostScreenKey);
182
+ didAdvance = true;
183
+ break;
184
+ }
185
+ if (didHitVisitedScreen) {
186
+ break;
187
+ }
188
+ if (didAdvance) {
189
+ continue;
190
+ }
191
+ if (hasPendingNextHop) {
192
+ return pendingSignal(ownerPairKey);
193
+ }
194
+ break;
195
+ }
196
+ const ownerLink = (0, _linkPairs.getLink)(pairsState, ownerPairKey, linkKey);
197
+ const ownerUsesEscapeClipping = ownerLink?.source?.escapeClipping ?? escapeClipping;
198
+ if (!ownerUsesEscapeClipping && isSettledHostClosingComplete && settledHostScreenKey === hostScreenKey && previousOwnerPairKey) {
199
+ hostScreenKey = (0, _linkPairs.getSourceScreenKeyFromPairKey)(ownerPairKey);
200
+ }
201
+ const ownerScreenKey = ownerUsesEscapeClipping ? (0, _linkPairs.getSourceScreenKeyFromPairKey)(ownerPairKey) : resolveBoundaryLocalStyleOwnerScreenKey({
202
+ hostScreenKey,
203
+ isSettledHostReady,
204
+ settledHostScreenKey,
205
+ sourceScreenKey: (0, _linkPairs.getSourceScreenKeyFromPairKey)(ownerPairKey)
206
+ });
207
+ return {
208
+ hostScreenKey,
209
+ ownerPairKey,
210
+ ownerScreenKey,
211
+ status: "complete"
212
+ };
213
+ };
214
+ exports.resolveBoundaryPortalOwnership = resolveBoundaryPortalOwnership;
215
+ const hasHandoffEscapeContinuation = ({
216
+ linkKey,
217
+ linkState,
218
+ sourceScreenKey
219
+ }) => {
220
+ "worklet";
221
+
222
+ const pairKeys = Object.keys(linkState);
223
+ const visitedScreenKeys = [];
224
+ let cursorScreenKey = sourceScreenKey;
225
+ for (let hop = 0; hop < pairKeys.length; hop++) {
226
+ if (hasSeenScreenKey(visitedScreenKeys, cursorScreenKey)) {
227
+ return false;
228
+ }
229
+ visitedScreenKeys.push(cursorScreenKey);
230
+ let previousScreenKey = null;
231
+ for (let index = 0; index < pairKeys.length; index++) {
232
+ const candidatePairKey = pairKeys[index];
233
+ const link = candidatePairKey ? linkState[candidatePairKey]?.links?.[linkKey] : null;
234
+ if (!link?.source || !link.destination || link.destination.screenKey !== cursorScreenKey) {
235
+ continue;
236
+ }
237
+ if (usesEscapeClippingHost(link)) {
238
+ return true;
239
+ }
240
+ if (!link.source.handoff) {
241
+ return false;
242
+ }
243
+ previousScreenKey = link.source.screenKey;
244
+ break;
245
+ }
246
+ if (!previousScreenKey) {
247
+ return false;
248
+ }
249
+ cursorScreenKey = previousScreenKey;
250
+ }
251
+ return false;
252
+ };
253
+ exports.hasHandoffEscapeContinuation = hasHandoffEscapeContinuation;
254
+ //# sourceMappingURL=ownership.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_linkPairs","require","hasSeenScreenKey","screenKeys","screenKey","index","length","usesEscapeClippingHost","link","source","handoff","escapeClipping","exports","isReturningToPreviousSourceHost","hostScreenKey","ownerPairKey","previousOwnerPairKey","previousSourceScreenKey","getSourceScreenKeyFromPairKey","previousDestinationScreenKey","getDestinationScreenKeyFromPairKey","ownerDestinationScreenKey","canSwitchBoundaryLocalHandoffImmediately","isActiveHandoffLink","linkKey","pairKey","pairsState","group","activeId","groups","resolveBoundaryLocalStyleOwnerScreenKey","isSettledHostReady","settledHostScreenKey","sourceScreenKey","pendingSignal","sourcePairKey","ownerScreenKey","status","clearSignal","resolveBoundaryPortalOwnership","boundaryId","currentScreenKey","isSettledHostClosingComplete","getLinkKeyFromTag","getPairLink","destination","seenScreenKeys","pairKeys","Object","keys","hop","didAdvance","hasPendingNextHop","didHitVisitedScreen","candidatePairKey","candidate","nextHostScreenKey","push","ownerLink","ownerUsesEscapeClipping","hasHandoffEscapeContinuation","linkState","visitedScreenKeys","cursorScreenKey","previousScreenKey","links"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/utils/ownership.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AA4BA,MAAMC,gBAAgB,GAAGA,CAACC,UAAuB,EAAEC,SAAoB,KAAK;EAC3E,SAAS;;EACT,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGF,UAAU,CAACG,MAAM,EAAED,KAAK,EAAE,EAAE;IACvD,IAAIF,UAAU,CAACE,KAAK,CAAC,KAAKD,SAAS,EAAE;MACpC,OAAO,IAAI;IACZ;EACD;EACA,OAAO,KAAK;AACb,CAAC;AAEM,MAAMG,sBAAsB,GAClCC,IAAgC,IACnB;EACb,SAAS;;EACT,OAAOA,IAAI,EAAEC,MAAM,EAAEC,OAAO,KAAK,IAAI,IAAIF,IAAI,CAACC,MAAM,CAACE,cAAc,K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,EAAE;QACzB,OAAO,KAAK;MACb;MAEAsD,iBAAiB,GAAGxD,IAAI,CAACC,MAAM,CAACL,SAAS;MACzC;IACD;IAEA,IAAI,CAAC4D,iBAAiB,EAAE;MACvB,OAAO,KAAK;IACb;IAEAD,eAAe,GAAGC,iBAAiB;EACpC;EAEA,OAAO,KAAK;AACb,CAAC;AAACpD,OAAA,CAAAgD,4BAAA,GAAAA,4BAAA","ignoreList":[]}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.resolveBoundaryPortal = void 0;
7
+ var _logger = require("../../../../utils/logger");
8
+ var _teleport = require("../teleport");
9
+ const resolveBoundaryPortal = ({
10
+ handoff,
11
+ escapeClipping
12
+ }) => {
13
+ const resolvedHandoff = handoff ?? false;
14
+ const resolvedEscapeClipping = escapeClipping ?? false;
15
+ const enabled = resolvedHandoff || resolvedEscapeClipping;
16
+ if (!enabled) {
17
+ return {
18
+ handoff: false,
19
+ escapeClipping: false,
20
+ enabled: false
21
+ };
22
+ }
23
+ if (!_teleport.isTeleportAvailable) {
24
+ _logger.logger.warnOnce("boundary:teleport-missing", "react-native-teleport is not installed; handoff and escapeClipping boundaries will render inline.");
25
+ return {
26
+ handoff: false,
27
+ escapeClipping: false,
28
+ enabled: false
29
+ };
30
+ }
31
+ return {
32
+ handoff: resolvedHandoff,
33
+ escapeClipping: resolvedEscapeClipping,
34
+ enabled
35
+ };
36
+ };
37
+ exports.resolveBoundaryPortal = resolveBoundaryPortal;
38
+ //# sourceMappingURL=resolve-portal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_logger","require","_teleport","resolveBoundaryPortal","handoff","escapeClipping","resolvedHandoff","resolvedEscapeClipping","enabled","isTeleportAvailable","logger","warnOnce","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/utils/resolve-portal.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAaO,MAAME,qBAAqB,GAAGA,CAAC;EACrCC,OAAO;EACPC;AAC4B,CAAC,KAA4B;EACzD,MAAMC,eAAe,GAAGF,OAAO,IAAI,KAAK;EACxC,MAAMG,sBAAsB,GAAGF,cAAc,IAAI,KAAK;EAEtD,MAAMG,OAAO,GAAGF,eAAe,IAAIC,sBAAsB;EAEzD,IAAI,CAACC,OAAO,EAAE;IACb,OAAO;MACNJ,OAAO,EAAE,KAAK;MACdC,cAAc,EAAE,KAAK;MACrBG,OAAO,EAAE;IACV,CAAC;EACF;EAEA,IAAI,CAACC,6BAAmB,EAAE;IACzBC,cAAM,CAACC,QAAQ,CACd,2BAA2B,EAC3B,mGACD,CAAC;IAED,OAAO;MACNP,OAAO,EAAE,KAAK;MACdC,cAAc,EAAE,KAAK;MACrBG,OAAO,EAAE;IACV,CAAC;EACF;EAEA,OAAO;IACNJ,OAAO,EAAEE,eAAe;IACxBD,cAAc,EAAEE,sBAAsB;IACtCC;EACD,CAAC;AACF,CAAC;AAACI,OAAA,CAAAT,qBAAA,GAAAA,qBAAA","ignoreList":[]}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.shallowEqual = void 0;
7
+ /**
8
+ * Shallow equality for the flat signal objects produced by the portal
9
+ * `useAnimatedReaction` blocks. Both sides always carry the same fixed key set,
10
+ * so iterating one side's keys is sufficient. A `null`/`undefined` operand
11
+ * (the first reaction run) is treated as not-equal so the reaction proceeds.
12
+ */
13
+ const shallowEqual = (a, b) => {
14
+ "worklet";
15
+
16
+ if (!a || !b) {
17
+ return false;
18
+ }
19
+ const keys = Object.keys(a);
20
+ for (let index = 0; index < keys.length; index++) {
21
+ const key = keys[index];
22
+ if (a[key] !== b[key]) {
23
+ return false;
24
+ }
25
+ }
26
+ return true;
27
+ };
28
+ exports.shallowEqual = shallowEqual;
29
+ //# sourceMappingURL=shallow-equal.js.map
@@ -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,OAA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AW,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,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,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,EACD,CAAC;EAED,MAAMO,mBAAmB,GAAG,IAAAT,kBAAW,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,oBAA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E_SIGNAL_PREFIX","DESTINATION_SIGNAL_PREFIX","buildRefreshSignal","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,E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AC;AAACG,OAAA,CAAAvB,wBAAA,GAAAA,wBAAA","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":[]}
@@ -15,6 +15,11 @@ try {
15
15
  } catch (_) {
16
16
  // noop
17
17
  }
18
+
19
+ /**
20
+ * @deprecated Use `navigationMaskEnabled` with the navigation mask style IDs
21
+ * instead.
22
+ */
18
23
  function MaskedView({
19
24
  children,
20
25
  style: userStyles = {}
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_constants","_createTransitionAwareComponent","_jsxRuntime","TransitionView","createTransitionAwareComponent","View","LazyMaskedView","default","_","MaskedView","children","style","userStyles","jsx","styles","root","maskElement","styleId","MASK_STYLE_ID","rootMask","CONTAINER_STYLE_ID","rootContainer","StyleSheet","create","flex","backgroundColor"],"sourceRoot":"../../../../src","sources":["shared/components/masked-view.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,+BAAA,GAAAF,OAAA;AAAqF,IAAAG,WAAA,GAAAH,OAAA;AAErF,MAAMI,cAAc,GAAG,IAAAC,8DAA8B,EAACC,iBAAI,CAAC;AAE3D,IAAIC,cAAc,GAAGD,iBAAI;AAEzB,IAAI;EACHC,cAAc,GAAGP,OAAO,CAAC,uCAAuC,CAAC,CAACQ,OAAO;AAC1E,CAAC,CAAC,OAAOC,CAAC,EAAE;EACX;AAAA;AAGc,SAASC,UAAUA,CAAC;EAClCC,QAAQ;EACRC,KAAK,EAAEC,UAAU,GAAG,CAAC;AAItB,CAAC,EAAE;EACF,IAAIN,cAAc,KAAKD,iBAAI,EAAE;IAC5B,OAAOK,QAAQ;EAChB;EAEA,oBACC,IAAAR,WAAA,CAAAW,GAAA,EAACP,cAAc;IACdK,KAAK,EAAEG,MAAM,CAACC;IACd;IAAA;IACAC,WAAW,eACV,IAAAd,WAAA,CAAAW,GAAA,EAACV,cAAc;MAACc,OAAO,EAAEC,wBAAc;MAACP,KAAK,EAAEG,MAAM,CAACK;IAAS,CAAE,CACjE;IAAAT,QAAA,eAED,IAAAR,WAAA,CAAAW,GAAA,EAACV,cAAc;MACdc,OAAO,EAAEG,6BAAmB;MAC5BT,KAAK,EAAE,CAACG,MAAM,CAACO,aAAa,EAAET,UAAU,CAAE;MAAAF,QAAA,EAEzCA;IAAQ,CACM;EAAC,CACF,CAAC;AAEnB;AAEA,MAAMI,MAAM,GAAGQ,uBAAU,CAACC,MAAM,CAAC;EAChCR,IAAI,EAAE;IACLS,IAAI,EAAE;EACP,CAAC;EACDL,QAAQ,EAAE;IACTM,eAAe,EAAE;EAClB,CAAC;EACDJ,aAAa,EAAE;IACdG,IAAI,EAAE;EACP;AACD,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_constants","_createTransitionAwareComponent","_jsxRuntime","TransitionView","createTransitionAwareComponent","View","LazyMaskedView","default","_","MaskedView","children","style","userStyles","jsx","styles","root","maskElement","styleId","MASK_STYLE_ID","rootMask","CONTAINER_STYLE_ID","rootContainer","StyleSheet","create","flex","backgroundColor"],"sourceRoot":"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