react-native-screen-transitions 3.9.0-beta.1 → 3.9.0-beta.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 (479) hide show
  1. package/lib/commonjs/shared/adapters/with-screen-transitions/index.js +20 -4
  2. package/lib/commonjs/shared/adapters/with-screen-transitions/index.js.map +1 -1
  3. package/lib/commonjs/shared/animation/transition-blocking.js +71 -0
  4. package/lib/commonjs/shared/animation/transition-blocking.js.map +1 -0
  5. package/lib/commonjs/shared/components/boundary/components/boundary-target.js +33 -28
  6. package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -1
  7. package/lib/commonjs/shared/components/boundary/create-boundary-component.js +30 -95
  8. package/lib/commonjs/shared/components/boundary/create-boundary-component.js.map +1 -1
  9. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +75 -51
  10. package/lib/commonjs/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
  11. package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js +1 -0
  12. package/lib/commonjs/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
  13. package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js +14 -2
  14. package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -1
  15. package/lib/commonjs/shared/components/boundary/hooks/use-register-target.js +32 -0
  16. package/lib/commonjs/shared/components/boundary/hooks/use-register-target.js.map +1 -0
  17. package/lib/commonjs/shared/components/boundary/index.js +1 -1
  18. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +41 -0
  19. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -0
  20. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js +14 -0
  21. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js.map +1 -0
  22. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +224 -0
  23. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -0
  24. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js +45 -0
  25. package/lib/commonjs/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -0
  26. package/lib/commonjs/shared/components/boundary/portal/components/{host.js → boundary-portal/components/host.js} +20 -18
  27. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -0
  28. package/lib/commonjs/shared/components/boundary/portal/components/{portal-boundary-host.js → boundary-portal/components/portal-boundary-host.js} +13 -12
  29. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -0
  30. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +51 -0
  31. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -0
  32. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.js.map +1 -0
  33. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js +14 -0
  34. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js.map +1 -0
  35. package/lib/commonjs/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.js +1 -1
  36. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -0
  37. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +185 -0
  38. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -0
  39. package/lib/commonjs/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.js +23 -5
  40. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +1 -0
  41. package/lib/commonjs/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-placeholder-styles.js +3 -6
  42. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.js.map +1 -0
  43. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js +31 -0
  44. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -0
  45. package/lib/commonjs/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.js +1 -1
  46. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js.map +1 -0
  47. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -0
  48. package/lib/commonjs/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.js +7 -12
  49. package/lib/commonjs/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -0
  50. package/lib/commonjs/shared/components/boundary/portal/index.js +1 -8
  51. package/lib/commonjs/shared/components/boundary/portal/index.js.map +1 -1
  52. package/lib/commonjs/shared/components/boundary/portal/teleport.js +4 -3
  53. package/lib/commonjs/shared/components/boundary/portal/teleport.js.map +1 -1
  54. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js +1 -15
  55. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js.map +1 -1
  56. package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js +19 -56
  57. package/lib/commonjs/shared/components/boundary/portal/utils/ownership.js.map +1 -1
  58. package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js +90 -23
  59. package/lib/commonjs/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
  60. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +41 -12
  61. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +1 -1
  62. package/lib/commonjs/shared/components/boundary/utils/measured-bounds.js +36 -1
  63. package/lib/commonjs/shared/components/boundary/utils/measured-bounds.js.map +1 -1
  64. package/lib/commonjs/shared/components/screen-container/layers/content.js +1 -1
  65. package/lib/commonjs/shared/configs/presets.js +2 -2
  66. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  67. package/lib/commonjs/shared/constants.js +4 -0
  68. package/lib/commonjs/shared/constants.js.map +1 -1
  69. package/lib/commonjs/shared/index.js +13 -0
  70. package/lib/commonjs/shared/index.js.map +1 -1
  71. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +4 -0
  72. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
  73. package/lib/commonjs/shared/providers/screen/gestures/pan/activation/use-pan-activation.js +10 -10
  74. package/lib/commonjs/shared/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
  75. package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +10 -2
  76. package/lib/commonjs/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
  77. package/lib/commonjs/shared/providers/screen/gestures/pan/use-build-pan-gesture.js +1 -1
  78. package/lib/commonjs/shared/providers/screen/gestures/pan/use-build-pan-gesture.js.map +1 -1
  79. package/lib/commonjs/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +25 -3
  80. package/lib/commonjs/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
  81. package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +4 -6
  82. package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
  83. package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -2
  84. package/lib/commonjs/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
  85. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +6 -1
  86. package/lib/commonjs/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
  87. package/lib/commonjs/shared/providers/screen/gestures/shared/snapshot.js +2 -0
  88. package/lib/commonjs/shared/providers/screen/gestures/shared/snapshot.js.map +1 -1
  89. package/lib/commonjs/shared/providers/screen/gestures/shared/values.js +2 -0
  90. package/lib/commonjs/shared/providers/screen/gestures/shared/values.js.map +1 -1
  91. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +13 -1
  92. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  93. package/lib/commonjs/shared/providers/screen/styles/slot.provider.js +5 -3
  94. package/lib/commonjs/shared/providers/screen/styles/slot.provider.js.map +1 -1
  95. package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js +1 -1
  96. package/lib/commonjs/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -1
  97. package/lib/commonjs/shared/stores/gesture.store.js +8 -0
  98. package/lib/commonjs/shared/stores/gesture.store.js.map +1 -1
  99. package/lib/commonjs/shared/stores/system.store.js +10 -2
  100. package/lib/commonjs/shared/stores/system.store.js.map +1 -1
  101. package/lib/commonjs/shared/utils/animation/animate-to-progress.js +24 -7
  102. package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
  103. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +15 -9
  104. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  105. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +2 -2
  106. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  107. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js +2 -1
  108. package/lib/commonjs/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
  109. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +178 -315
  110. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  111. package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js +12 -18
  112. package/lib/commonjs/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
  113. package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js +196 -0
  114. package/lib/commonjs/shared/utils/bounds/navigation/zoom/drag.js.map +1 -0
  115. package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js +94 -108
  116. package/lib/commonjs/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
  117. package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js +72 -0
  118. package/lib/commonjs/shared/utils/bounds/navigation/zoom/mask.js.map +1 -0
  119. package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js +55 -0
  120. package/lib/commonjs/shared/utils/bounds/navigation/zoom/targets.js.map +1 -0
  121. package/lib/module/shared/adapters/with-screen-transitions/index.js +19 -5
  122. package/lib/module/shared/adapters/with-screen-transitions/index.js.map +1 -1
  123. package/lib/module/shared/animation/transition-blocking.js +66 -0
  124. package/lib/module/shared/animation/transition-blocking.js.map +1 -0
  125. package/lib/module/shared/components/boundary/components/boundary-target.js +35 -30
  126. package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -1
  127. package/lib/module/shared/components/boundary/create-boundary-component.js +32 -97
  128. package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -1
  129. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +79 -55
  130. package/lib/module/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
  131. package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js +1 -0
  132. package/lib/module/shared/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
  133. package/lib/module/shared/components/boundary/hooks/use-measurer.js +15 -3
  134. package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -1
  135. package/lib/module/shared/components/boundary/hooks/use-register-target.js +27 -0
  136. package/lib/module/shared/components/boundary/hooks/use-register-target.js.map +1 -0
  137. package/lib/module/shared/components/boundary/index.js +1 -1
  138. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js +36 -0
  139. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -0
  140. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js +9 -0
  141. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.js.map +1 -0
  142. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +219 -0
  143. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -0
  144. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js +34 -0
  145. package/lib/module/shared/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -0
  146. package/lib/module/shared/components/boundary/portal/components/{host.js → boundary-portal/components/host.js} +20 -18
  147. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -0
  148. package/lib/module/shared/components/boundary/portal/components/{portal-boundary-host.js → boundary-portal/components/portal-boundary-host.js} +13 -12
  149. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -0
  150. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js +46 -0
  151. package/lib/module/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +1 -0
  152. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.js.map +1 -0
  153. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js +9 -0
  154. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.js.map +1 -0
  155. package/lib/module/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.js +1 -1
  156. package/lib/module/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -0
  157. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +180 -0
  158. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -0
  159. package/lib/module/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.js +23 -5
  160. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.js.map +1 -0
  161. package/lib/module/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-placeholder-styles.js +3 -6
  162. package/lib/module/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.js.map +1 -0
  163. package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js +27 -0
  164. package/lib/module/shared/components/boundary/portal/components/boundary-portal/index.js.map +1 -0
  165. package/lib/module/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.js +1 -1
  166. package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.js.map +1 -0
  167. package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -0
  168. package/lib/module/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.js +5 -10
  169. package/lib/module/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -0
  170. package/lib/module/shared/components/boundary/portal/index.js +1 -2
  171. package/lib/module/shared/components/boundary/portal/index.js.map +1 -1
  172. package/lib/module/shared/components/boundary/portal/teleport.js +3 -2
  173. package/lib/module/shared/components/boundary/portal/teleport.js.map +1 -1
  174. package/lib/module/shared/components/boundary/portal/utils/naming.js +0 -12
  175. package/lib/module/shared/components/boundary/portal/utils/naming.js.map +1 -1
  176. package/lib/module/shared/components/boundary/portal/utils/ownership.js +16 -52
  177. package/lib/module/shared/components/boundary/portal/utils/ownership.js.map +1 -1
  178. package/lib/module/shared/components/boundary/providers/boundary-root.provider.js +87 -20
  179. package/lib/module/shared/components/boundary/providers/boundary-root.provider.js.map +1 -1
  180. package/lib/module/shared/components/boundary/utils/destination-signals.js +39 -10
  181. package/lib/module/shared/components/boundary/utils/destination-signals.js.map +1 -1
  182. package/lib/module/shared/components/boundary/utils/measured-bounds.js +34 -0
  183. package/lib/module/shared/components/boundary/utils/measured-bounds.js.map +1 -1
  184. package/lib/module/shared/components/screen-container/layers/content.js +1 -1
  185. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  186. package/lib/module/shared/configs/presets.js +2 -2
  187. package/lib/module/shared/configs/presets.js.map +1 -1
  188. package/lib/module/shared/constants.js +4 -0
  189. package/lib/module/shared/constants.js.map +1 -1
  190. package/lib/module/shared/index.js +1 -0
  191. package/lib/module/shared/index.js.map +1 -1
  192. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js +4 -0
  193. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state/index.js.map +1 -1
  194. package/lib/module/shared/providers/screen/gestures/pan/activation/use-pan-activation.js +10 -10
  195. package/lib/module/shared/providers/screen/gestures/pan/activation/use-pan-activation.js.map +1 -1
  196. package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js +10 -2
  197. package/lib/module/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.js.map +1 -1
  198. package/lib/module/shared/providers/screen/gestures/pan/use-build-pan-gesture.js +1 -1
  199. package/lib/module/shared/providers/screen/gestures/pan/use-build-pan-gesture.js.map +1 -1
  200. package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js +23 -2
  201. package/lib/module/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
  202. package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +4 -6
  203. package/lib/module/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
  204. package/lib/module/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js +2 -2
  205. package/lib/module/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.js.map +1 -1
  206. package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js +6 -1
  207. package/lib/module/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.js.map +1 -1
  208. package/lib/module/shared/providers/screen/gestures/shared/snapshot.js +2 -0
  209. package/lib/module/shared/providers/screen/gestures/shared/snapshot.js.map +1 -1
  210. package/lib/module/shared/providers/screen/gestures/shared/values.js +2 -0
  211. package/lib/module/shared/providers/screen/gestures/shared/values.js.map +1 -1
  212. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +13 -1
  213. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  214. package/lib/module/shared/providers/screen/styles/slot.provider.js +5 -3
  215. package/lib/module/shared/providers/screen/styles/slot.provider.js.map +1 -1
  216. package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js +1 -1
  217. package/lib/module/shared/providers/screen/styles/stores/slot-references.store.js.map +1 -1
  218. package/lib/module/shared/stores/gesture.store.js +8 -0
  219. package/lib/module/shared/stores/gesture.store.js.map +1 -1
  220. package/lib/module/shared/stores/system.store.js +10 -2
  221. package/lib/module/shared/stores/system.store.js.map +1 -1
  222. package/lib/module/shared/types/bounds.types.js +26 -0
  223. package/lib/module/shared/types/bounds.types.js.map +1 -1
  224. package/lib/module/shared/utils/animation/animate-to-progress.js +24 -7
  225. package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
  226. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +15 -9
  227. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  228. package/lib/module/shared/utils/bounds/navigation/reveal/build.js +2 -2
  229. package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  230. package/lib/module/shared/utils/bounds/navigation/reveal/math.js +2 -1
  231. package/lib/module/shared/utils/bounds/navigation/reveal/math.js.map +1 -1
  232. package/lib/module/shared/utils/bounds/navigation/zoom/build.js +182 -319
  233. package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  234. package/lib/module/shared/utils/bounds/navigation/zoom/config.js +11 -17
  235. package/lib/module/shared/utils/bounds/navigation/zoom/config.js.map +1 -1
  236. package/lib/module/shared/utils/bounds/navigation/zoom/drag.js +184 -0
  237. package/lib/module/shared/utils/bounds/navigation/zoom/drag.js.map +1 -0
  238. package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js +91 -102
  239. package/lib/module/shared/utils/bounds/navigation/zoom/helpers.js.map +1 -1
  240. package/lib/module/shared/utils/bounds/navigation/zoom/mask.js +67 -0
  241. package/lib/module/shared/utils/bounds/navigation/zoom/mask.js.map +1 -0
  242. package/lib/module/shared/utils/bounds/navigation/zoom/targets.js +50 -0
  243. package/lib/module/shared/utils/bounds/navigation/zoom/targets.js.map +1 -0
  244. package/lib/typescript/shared/adapters/with-screen-transitions/index.d.ts +4 -1
  245. package/lib/typescript/shared/adapters/with-screen-transitions/index.d.ts.map +1 -1
  246. package/lib/typescript/shared/animation/transition-blocking.d.ts +33 -0
  247. package/lib/typescript/shared/animation/transition-blocking.d.ts.map +1 -0
  248. package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts +3 -1
  249. package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -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-initial-destination-measurement.d.ts +2 -1
  252. package/lib/typescript/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -1
  253. package/lib/typescript/shared/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
  254. package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -1
  255. package/lib/typescript/shared/components/boundary/hooks/use-register-target.d.ts +10 -0
  256. package/lib/typescript/shared/components/boundary/hooks/use-register-target.d.ts.map +1 -0
  257. package/lib/typescript/shared/components/boundary/index.d.ts +2 -2
  258. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/components/host.d.ts +10 -0
  259. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/components/host.d.ts.map +1 -0
  260. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.d.ts +2 -0
  261. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.d.ts.map +1 -0
  262. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts +12 -0
  263. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -0
  264. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts +9 -0
  265. package/lib/typescript/shared/components/boundary/portal/components/boundary-content-portal/index.d.ts.map +1 -0
  266. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +1 -0
  267. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -0
  268. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts +13 -0
  269. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts.map +1 -0
  270. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.d.ts +3 -0
  271. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/has-local-slot.d.ts.map +1 -0
  272. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.d.ts +2 -0
  273. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.d.ts.map +1 -0
  274. package/lib/typescript/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.d.ts +1 -1
  275. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts.map +1 -0
  276. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts +12 -0
  277. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -0
  278. package/lib/typescript/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.d.ts +5 -1
  279. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-host-measurement.d.ts.map +1 -0
  280. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts +12 -0
  281. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts.map +1 -0
  282. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts +12 -0
  283. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/index.d.ts.map +1 -0
  284. package/lib/typescript/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.d.ts +1 -1
  285. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-bounds.store.d.ts.map +1 -0
  286. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts.map +1 -0
  287. package/lib/typescript/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.d.ts +3 -3
  288. package/lib/typescript/shared/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +1 -0
  289. package/lib/typescript/shared/components/boundary/portal/index.d.ts +1 -2
  290. package/lib/typescript/shared/components/boundary/portal/index.d.ts.map +1 -1
  291. package/lib/typescript/shared/components/boundary/portal/teleport.d.ts +1 -0
  292. package/lib/typescript/shared/components/boundary/portal/teleport.d.ts.map +1 -1
  293. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts +0 -2
  294. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts.map +1 -1
  295. package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts +9 -10
  296. package/lib/typescript/shared/components/boundary/portal/utils/ownership.d.ts.map +1 -1
  297. package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts +22 -21
  298. package/lib/typescript/shared/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
  299. package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts +9 -2
  300. package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +1 -1
  301. package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts +8 -0
  302. package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts.map +1 -1
  303. package/lib/typescript/shared/constants.d.ts.map +1 -1
  304. package/lib/typescript/shared/index.d.ts +2 -1
  305. package/lib/typescript/shared/index.d.ts.map +1 -1
  306. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/index.d.ts.map +1 -1
  307. package/lib/typescript/shared/providers/screen/gestures/pan/activation/use-pan-activation.d.ts +2 -0
  308. package/lib/typescript/shared/providers/screen/gestures/pan/activation/use-pan-activation.d.ts.map +1 -1
  309. package/lib/typescript/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts +2 -1
  310. package/lib/typescript/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.d.ts.map +1 -1
  311. package/lib/typescript/shared/providers/screen/gestures/pan/use-build-pan-gesture.d.ts.map +1 -1
  312. package/lib/typescript/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts +2 -0
  313. package/lib/typescript/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts.map +1 -1
  314. package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts +1 -1
  315. package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts.map +1 -1
  316. package/lib/typescript/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.d.ts.map +1 -1
  317. package/lib/typescript/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.d.ts.map +1 -1
  318. package/lib/typescript/shared/providers/screen/gestures/shared/snapshot.d.ts.map +1 -1
  319. package/lib/typescript/shared/providers/screen/gestures/shared/values.d.ts.map +1 -1
  320. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +5 -0
  321. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
  322. package/lib/typescript/shared/providers/screen/styles/slot.provider.d.ts +1 -0
  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.map +1 -1
  325. package/lib/typescript/shared/stores/gesture.store.d.ts +4 -0
  326. package/lib/typescript/shared/stores/gesture.store.d.ts.map +1 -1
  327. package/lib/typescript/shared/stores/system.store.d.ts.map +1 -1
  328. package/lib/typescript/shared/types/animation.types.d.ts +3 -3
  329. package/lib/typescript/shared/types/bounds.types.d.ts +122 -90
  330. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  331. package/lib/typescript/shared/types/gesture.types.d.ts +10 -0
  332. package/lib/typescript/shared/types/gesture.types.d.ts.map +1 -1
  333. package/lib/typescript/shared/types/index.d.ts +1 -1
  334. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  335. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
  336. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
  337. package/lib/typescript/shared/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
  338. package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts +1 -1
  339. package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
  340. package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts +7 -17
  341. package/lib/typescript/shared/utils/bounds/navigation/zoom/config.d.ts.map +1 -1
  342. package/lib/typescript/shared/utils/bounds/navigation/zoom/drag.d.ts +55 -0
  343. package/lib/typescript/shared/utils/bounds/navigation/zoom/drag.d.ts.map +1 -0
  344. package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts +31 -34
  345. package/lib/typescript/shared/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -1
  346. package/lib/typescript/shared/utils/bounds/navigation/zoom/mask.d.ts +25 -0
  347. package/lib/typescript/shared/utils/bounds/navigation/zoom/mask.d.ts.map +1 -0
  348. package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts +16 -0
  349. package/lib/typescript/shared/utils/bounds/navigation/zoom/targets.d.ts.map +1 -0
  350. package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts +1 -1
  351. package/lib/typescript/shared/utils/bounds/navigation/zoom/types.d.ts.map +1 -1
  352. package/lib/typescript/shared/utils/bounds/types/options.d.ts +6 -2
  353. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  354. package/package.json +1 -1
  355. package/src/shared/adapters/with-screen-transitions/index.tsx +30 -9
  356. package/src/shared/animation/transition-blocking.ts +79 -0
  357. package/src/shared/components/boundary/components/boundary-target.tsx +47 -43
  358. package/src/shared/components/boundary/create-boundary-component.tsx +35 -150
  359. package/src/shared/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +106 -81
  360. package/src/shared/components/boundary/hooks/use-boundary-measurement.ts +1 -0
  361. package/src/shared/components/boundary/hooks/use-measurer.ts +12 -4
  362. package/src/shared/components/boundary/hooks/use-register-target.ts +43 -0
  363. package/src/shared/components/boundary/index.tsx +2 -2
  364. package/src/shared/components/boundary/portal/components/boundary-content-portal/components/host.tsx +52 -0
  365. package/src/shared/components/boundary/portal/components/boundary-content-portal/helpers/host-name.ts +9 -0
  366. package/src/shared/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +317 -0
  367. package/src/shared/components/boundary/portal/components/boundary-content-portal/index.tsx +62 -0
  368. package/src/shared/components/boundary/portal/components/{host.tsx → boundary-portal/components/host.tsx} +17 -17
  369. package/src/shared/components/boundary/portal/components/{portal-boundary-host.tsx → boundary-portal/components/portal-boundary-host.tsx} +14 -13
  370. package/src/shared/components/boundary/portal/components/boundary-portal/components/portal-slot.tsx +79 -0
  371. package/src/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/has-local-slot.ts +1 -1
  372. package/src/shared/components/boundary/portal/components/boundary-portal/helpers/host-name.ts +10 -0
  373. package/src/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/offset-style.ts +2 -2
  374. package/src/shared/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +254 -0
  375. package/src/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-host-measurement.ts +38 -8
  376. package/src/shared/components/boundary/portal/{hooks → components/boundary-portal/hooks}/use-placeholder-styles.ts +4 -15
  377. package/src/shared/components/boundary/portal/components/boundary-portal/index.tsx +35 -0
  378. package/src/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-bounds.store.ts +2 -2
  379. package/src/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/portal-boundary-host.store.ts +10 -15
  380. package/src/shared/components/boundary/portal/index.ts +1 -2
  381. package/src/shared/components/boundary/portal/teleport.ts +3 -2
  382. package/src/shared/components/boundary/portal/utils/naming.ts +0 -19
  383. package/src/shared/components/boundary/portal/utils/ownership.ts +32 -88
  384. package/src/shared/components/boundary/providers/boundary-root.provider.tsx +218 -78
  385. package/src/shared/components/boundary/utils/destination-signals.ts +38 -14
  386. package/src/shared/components/boundary/utils/measured-bounds.ts +48 -0
  387. package/src/shared/components/screen-container/layers/content.tsx +1 -1
  388. package/src/shared/configs/presets.ts +2 -2
  389. package/src/shared/constants.ts +4 -0
  390. package/src/shared/index.ts +6 -0
  391. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/index.ts +8 -0
  392. package/src/shared/providers/screen/gestures/pan/activation/use-pan-activation.ts +16 -7
  393. package/src/shared/providers/screen/gestures/pan/behavior/use-pan-behavior.ts +18 -1
  394. package/src/shared/providers/screen/gestures/pan/use-build-pan-gesture.ts +1 -0
  395. package/src/shared/providers/screen/gestures/pinch/activation/use-pinch-activation.ts +40 -2
  396. package/src/shared/providers/screen/gestures/pinch/behavior/pinch-lifecycle.ts +7 -11
  397. package/src/shared/providers/screen/gestures/pinch/behavior/use-pinch-behavior.ts +12 -15
  398. package/src/shared/providers/screen/gestures/scroll-coordination/use-scroll-gesture-coordination.ts +6 -1
  399. package/src/shared/providers/screen/gestures/shared/snapshot.ts +2 -0
  400. package/src/shared/providers/screen/gestures/shared/values.ts +2 -0
  401. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +15 -1
  402. package/src/shared/providers/screen/styles/slot.provider.tsx +4 -2
  403. package/src/shared/providers/screen/styles/stores/slot-references.store.ts +2 -1
  404. package/src/shared/stores/gesture.store.ts +12 -0
  405. package/src/shared/stores/system.store.ts +10 -4
  406. package/src/shared/types/animation.types.ts +3 -3
  407. package/src/shared/types/bounds.types.ts +128 -92
  408. package/src/shared/types/gesture.types.ts +10 -0
  409. package/src/shared/types/index.ts +2 -0
  410. package/src/shared/utils/animation/animate-to-progress.ts +23 -7
  411. package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +18 -11
  412. package/src/shared/utils/bounds/navigation/reveal/build.ts +2 -2
  413. package/src/shared/utils/bounds/navigation/reveal/math.ts +2 -1
  414. package/src/shared/utils/bounds/navigation/zoom/build.ts +224 -412
  415. package/src/shared/utils/bounds/navigation/zoom/config.ts +15 -18
  416. package/src/shared/utils/bounds/navigation/zoom/drag.ts +327 -0
  417. package/src/shared/utils/bounds/navigation/zoom/helpers.ts +122 -184
  418. package/src/shared/utils/bounds/navigation/zoom/mask.ts +130 -0
  419. package/src/shared/utils/bounds/navigation/zoom/targets.ts +74 -0
  420. package/src/shared/utils/bounds/navigation/zoom/types.ts +1 -1
  421. package/src/shared/utils/bounds/types/options.ts +9 -2
  422. package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js +0 -58
  423. package/lib/commonjs/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +0 -1
  424. package/lib/commonjs/shared/components/boundary/portal/components/host.js.map +0 -1
  425. package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js.map +0 -1
  426. package/lib/commonjs/shared/components/boundary/portal/components/portal.js +0 -272
  427. package/lib/commonjs/shared/components/boundary/portal/components/portal.js.map +0 -1
  428. package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js.map +0 -1
  429. package/lib/commonjs/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +0 -1
  430. package/lib/commonjs/shared/components/boundary/portal/stores/host-bounds.store.js.map +0 -1
  431. package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js.map +0 -1
  432. package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +0 -1
  433. package/lib/commonjs/shared/components/boundary/portal/utils/has-local-slot.js.map +0 -1
  434. package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js.map +0 -1
  435. package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js +0 -25
  436. package/lib/commonjs/shared/utils/bounds/navigation/zoom/math.js.map +0 -1
  437. package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js +0 -53
  438. package/lib/module/shared/components/boundary/portal/components/boundary-local-portal-host.js.map +0 -1
  439. package/lib/module/shared/components/boundary/portal/components/host.js.map +0 -1
  440. package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +0 -1
  441. package/lib/module/shared/components/boundary/portal/components/portal.js +0 -267
  442. package/lib/module/shared/components/boundary/portal/components/portal.js.map +0 -1
  443. package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js.map +0 -1
  444. package/lib/module/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +0 -1
  445. package/lib/module/shared/components/boundary/portal/stores/host-bounds.store.js.map +0 -1
  446. package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js.map +0 -1
  447. package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +0 -1
  448. package/lib/module/shared/components/boundary/portal/utils/has-local-slot.js.map +0 -1
  449. package/lib/module/shared/components/boundary/portal/utils/offset-style.js.map +0 -1
  450. package/lib/module/shared/utils/bounds/navigation/zoom/math.js +0 -20
  451. package/lib/module/shared/utils/bounds/navigation/zoom/math.js.map +0 -1
  452. package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts +0 -8
  453. package/lib/typescript/shared/components/boundary/portal/components/boundary-local-portal-host.d.ts.map +0 -1
  454. package/lib/typescript/shared/components/boundary/portal/components/host.d.ts.map +0 -1
  455. package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map +0 -1
  456. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts +0 -20
  457. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts.map +0 -1
  458. package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts.map +0 -1
  459. package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts +0 -17
  460. package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts.map +0 -1
  461. package/lib/typescript/shared/components/boundary/portal/stores/host-bounds.store.d.ts.map +0 -1
  462. package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts.map +0 -1
  463. package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +0 -1
  464. package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts +0 -3
  465. package/lib/typescript/shared/components/boundary/portal/utils/has-local-slot.d.ts.map +0 -1
  466. package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts.map +0 -1
  467. package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts +0 -8
  468. package/lib/typescript/shared/utils/bounds/navigation/zoom/math.d.ts.map +0 -1
  469. package/src/shared/components/boundary/portal/components/boundary-local-portal-host.tsx +0 -66
  470. package/src/shared/components/boundary/portal/components/portal.tsx +0 -412
  471. package/src/shared/utils/bounds/navigation/zoom/math.ts +0 -25
  472. /package/lib/commonjs/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/has-local-slot.js +0 -0
  473. /package/lib/commonjs/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.js +0 -0
  474. /package/lib/module/shared/components/boundary/portal/{utils → components/boundary-portal/helpers}/has-local-slot.js +0 -0
  475. /package/lib/module/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.js +0 -0
  476. /package/lib/typescript/shared/components/boundary/portal/components/{host.d.ts → boundary-portal/components/host.d.ts} +0 -0
  477. /package/lib/typescript/shared/components/boundary/portal/components/{portal-boundary-host.d.ts → boundary-portal/components/portal-boundary-host.d.ts} +0 -0
  478. /package/lib/typescript/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.d.ts +0 -0
  479. /package/src/shared/components/boundary/portal/{stores → components/boundary-portal/stores}/host-registry.store.ts +0 -0
@@ -3,11 +3,19 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.adaptNavigatorChildren = adaptNavigatorChildren;
7
+ exports.createTransitionScreenLayout = createTransitionScreenLayout;
6
8
  exports.withScreenTransitions = withScreenTransitions;
7
9
  var _react = require("react");
8
10
  var _options = require("./options");
9
11
  var _stackLayout = require("./stack-layout");
10
12
  var _jsxRuntime = require("react/jsx-runtime");
13
+ function createTransitionScreenLayout(screenLayout) {
14
+ return screenLayoutArgs => /*#__PURE__*/(0, _jsxRuntime.jsx)(_stackLayout.ScreenTransitionsScreenLayout, {
15
+ screenLayout: screenLayout,
16
+ screenLayoutArgs: screenLayoutArgs
17
+ });
18
+ }
11
19
  function adaptNavigatorChildren(children) {
12
20
  return _react.Children.map(children, child => {
13
21
  if (! /*#__PURE__*/(0, _react.isValidElement)(child)) {
@@ -24,6 +32,17 @@ function adaptNavigatorChildren(children) {
24
32
  nextProps.screenOptions = (0, _options.adaptNativeStackTransitionOptions)(props.screenOptions);
25
33
  changed = true;
26
34
  }
35
+
36
+ // Screen and group layouts replace the navigator default, so each override
37
+ // must carry the transition screen layout with it.
38
+ if (typeof props.layout === "function") {
39
+ nextProps.layout = createTransitionScreenLayout(props.layout);
40
+ changed = true;
41
+ }
42
+ if (typeof props.screenLayout === "function") {
43
+ nextProps.screenLayout = createTransitionScreenLayout(props.screenLayout);
44
+ changed = true;
45
+ }
27
46
  if (props.children !== undefined && typeof props.children !== "function") {
28
47
  nextProps.children = adaptNavigatorChildren(props.children);
29
48
  changed = true;
@@ -45,10 +64,7 @@ function withScreenTransitions(navigator) {
45
64
  layout: layout,
46
65
  layoutArgs: layoutArgs
47
66
  }), [layout]);
48
- const transitionScreenLayout = (0, _react.useCallback)(screenLayoutArgs => /*#__PURE__*/(0, _jsxRuntime.jsx)(_stackLayout.ScreenTransitionsScreenLayout, {
49
- screenLayout: screenLayout,
50
- screenLayoutArgs: screenLayoutArgs
51
- }), [screenLayout]);
67
+ const transitionScreenLayout = (0, _react.useMemo)(() => createTransitionScreenLayout(screenLayout), [screenLayout]);
52
68
  const screenOptions = (0, _react.useMemo)(() => (0, _options.adaptNativeStackTransitionOptions)(props.screenOptions), [props.screenOptions]);
53
69
  const children = (0, _react.useMemo)(() => adaptNavigatorChildren(props.children), [props.children]);
54
70
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(BaseNavigator, {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_options","_stackLayout","_jsxRuntime","adaptNavigatorChildren","children","Children","map","child","isValidElement","props","nextProps","changed","options","adaptNativeStackTransitionOptions","screenOptions","undefined","cloneElement","withScreenTransitions","navigator","BaseNavigator","Navigator","forwardRef","ScreenTransitionsNavigator","layout","screenLayout","ref","transitionLayout","useCallback","layoutArgs","jsx","ScreenTransitionsStackLayout","transitionScreenLayout","screenLayoutArgs","ScreenTransitionsScreenLayout","useMemo","displayName","name"],"sourceRoot":"../../../../../src","sources":["shared/adapters/with-screen-transitions/index.tsx"],"mappings":";;;;;;AAKA,IAAAA,MAAA,GAAAC,OAAA;AAYA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAGwB,IAAAG,WAAA,GAAAH,OAAA;AAsBxB,SAASI,sBAAsBA,CAACC,QAAmB,EAAa;EAC/D,OAAOC,eAAQ,CAACC,GAAG,CAACF,QAAQ,EAAGG,KAAK,IAAK;IACxC,IAAI,eAAC,IAAAC,qBAAc,EAACD,K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,MAAMQ,sBAAsB,GAAG,IAAAJ,kBAAW,EACxCK,gBAAkC,iBAClC,IAAA9B,WAAA,CAAA2B,GAAA,EAAC5B,YAAA,CAAAgC,6BAA6B;MAC7BT,YAAY,EAAEA,YAAa;MAC3BQ,gBAAgB,EAAEA;IAAiB,CACnC,CACD,EACD,CAACR,YAAY,CACd,CAAC;IACD,MAAMV,aAAa,GAAG,IAAAoB,cAAO,EAC5B,MAAM,IAAArB,0CAAiC,EAACJ,KAAK,CAACK,aAAa,CAAC,EAC5D,CAACL,KAAK,CAACK,aAAa,CACrB,CAAC;IACD,MAAMV,QAAQ,GAAG,IAAA8B,cAAO,EACvB,MAAM/B,sBAAsB,CAACM,KAAK,CAACL,QAAQ,CAAC,EAC5C,CAACK,KAAK,CAACL,QAAQ,CAChB,CAAC;IAED,oBACC,IAAAF,WAAA,CAAA2B,GAAA,EAACV,aAAa;MAAA,GACTV,KAAK;MACTK,aAAa,EAAEA,aAAc;MAC7BW,GAAG,EAAEA,GAAa;MAClBF,MAAM,EAAEG,gBAAiB;MACzBF,YAAY,EAAEO,sBAAuB;MAAA3B,QAAA,EAEpCA;IAAQ,CACK,CAAC;EAElB,CACD,CAAC;EAEDgB,SAAS,CAACe,WAAW,GAAG,yBACvBhB,aAAa,CAACgB,WAAW,IAAIhB,aAAa,CAACiB,IAAI,IAAI,WAAW,GAC5D;EAEH,OAAO;IACN,GAAGlB,SAAS;IACZE;EACD,CAAC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_options","_stackLayout","_jsxRuntime","createTransitionScreenLayout","screenLayout","screenLayoutArgs","jsx","ScreenTransitionsScreenLayout","adaptNavigatorChildren","children","Children","map","child","isValidElement","props","nextProps","changed","options","adaptNativeStackTransitionOptions","screenOptions","layout","undefined","cloneElement","withScreenTransitions","navigator","BaseNavigator","Navigator","forwardRef","ScreenTransitionsNavigator","ref","transitionLayout","useCallback","layoutArgs","ScreenTransitionsStackLayout","transitionScreenLayout","useMemo","displayName","name"],"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CAACL,QAAQ,CAChB,CAAC;IAED,oBACC,IAAAP,WAAA,CAAAI,GAAA,EAACmB,aAAa;MAAA,GACTX,KAAK;MACTK,aAAa,EAAEA,aAAc;MAC7BU,GAAG,EAAEA,GAAa;MAClBT,MAAM,EAAEU,gBAAiB;MACzB1B,YAAY,EAAE8B,sBAAuB;MAAAzB,QAAA,EAEpCA;IAAQ,CACK,CAAC;EAElB,CACD,CAAC;EAEDiB,SAAS,CAACU,WAAW,GAAG,yBACvBX,aAAa,CAACW,WAAW,IAAIX,aAAa,CAACY,IAAI,IAAI,WAAW,GAC5D;EAEH,OAAO;IACN,GAAGb,SAAS;IACZE;EACD,CAAC;AACF","ignoreList":[]}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.blockTransition = blockTransition;
7
+ exports.unblockTransition = unblockTransition;
8
+ var _history = require("../stores/history.store");
9
+ var _system = require("../stores/system.store");
10
+ var _logger = require("../utils/logger");
11
+ const resolveTransitionRouteKey = (routeKey, actionName) => {
12
+ if (routeKey !== undefined) {
13
+ if (routeKey.length === 0) {
14
+ _logger.logger.warn(`${actionName}: routeKey must not be empty`);
15
+ return undefined;
16
+ }
17
+ return routeKey;
18
+ }
19
+ const entry = _history.HistoryStore.getMostRecent();
20
+ if (!entry) {
21
+ _logger.logger.warn(`${actionName}: No screens in history`);
22
+ return undefined;
23
+ }
24
+ return entry.descriptor.route.key;
25
+ };
26
+
27
+ /**
28
+ * Prevents a screen's pending lifecycle transition from starting.
29
+ *
30
+ * Calls are reference-counted. Every call must be paired with one
31
+ * {@linkcode unblockTransition} call for the same route. When `routeKey` is
32
+ * omitted, the most recently focused screen in navigation history is used.
33
+ *
34
+ * @param routeKey - Route key of the screen to block.
35
+ *
36
+ * @example
37
+ * ```tsx
38
+ * blockTransition(route.key);
39
+ * // Render or prepare the destination screen.
40
+ * unblockTransition(route.key);
41
+ * ```
42
+ *
43
+ * @see {@linkcode unblockTransition}
44
+ */
45
+ function blockTransition(routeKey) {
46
+ const resolvedRouteKey = resolveTransitionRouteKey(routeKey, "blockTransition");
47
+ if (!resolvedRouteKey) {
48
+ return;
49
+ }
50
+ _system.SystemStore.getBag(resolvedRouteKey).actions.blockLifecycleStart();
51
+ }
52
+
53
+ /**
54
+ * Releases one lifecycle transition block for a screen.
55
+ *
56
+ * The pending transition can start when the screen's final block is released.
57
+ * Extra calls are safe and leave the block count at zero. When `routeKey` is
58
+ * omitted, the most recently focused screen in navigation history is used.
59
+ *
60
+ * @param routeKey - Route key of the screen to unblock.
61
+ *
62
+ * @see {@linkcode blockTransition}
63
+ */
64
+ function unblockTransition(routeKey) {
65
+ const resolvedRouteKey = resolveTransitionRouteKey(routeKey, "unblockTransition");
66
+ if (!resolvedRouteKey) {
67
+ return;
68
+ }
69
+ _system.SystemStore.getBag(resolvedRouteKey).actions.unblockLifecycleStart();
70
+ }
71
+ //# sourceMappingURL=transition-blocking.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_history","require","_system","_logger","resolveTransitionRouteKey","routeKey","actionName","undefined","length","logger","warn","entry","HistoryStore","getMostRecent","descriptor","route","key","blockTransition","resolvedRouteKey","SystemStore","getBag","actions","blockLifecycleStart","unblockTransition","unblockLifecycleStart"],"sourceRoot":"../../../../src","sources":["shared/animation/transition-blocking.ts"],"mappings":";;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AAEA,MAAMG,yBAAyB,GAAGA,CACjCC,QAA+B,EAC/BC,UAAmD,KACxB;EAC3B,IAAID,QAAQ,KAAKE,SAAS,EAAE;IAC3B,IAAIF,QAAQ,CAACG,MAAM,KAAK,CAAC,EAAE;MAC1BC,cAAM,CAACC,IAAI,CAAC,GAAGJ,UAAU,8BAA8B,CAAC;MACxD,OAAOC,SAAS;IACjB;IAEA,OAAOF,QAAQ;EAChB;EAEA,MAAMM,KAAK,GAAGC,qBAAY,CAACC,aAAa,CAAC,CAAC;EAC1C,IAAI,CAACF,KAAK,EAAE;IACXF,cAAM,CAACC,IAAI,CAAC,GAAGJ,UAAU,yBAAyB,CAAC;IACnD,OAAOC,SAAS;EACjB;EAEA,OAAOI,KAAK,CAACG,UAAU,CAACC,KAAK,CAACC,GAAG;AAClC,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,eAAeA,CAACZ,QAAoB,EAAQ;EAC3D,MAAMa,gBAAgB,GAAGd,yBAAyB,CACjDC,QAAQ,EACR,iBACD,CAAC;EACD,IAAI,CAACa,gBAAgB,EAAE;IACtB;EACD;EAEAC,mBAAW,CAACC,MAAM,CAACF,gBAAgB,CAAC,CAACG,OAAO,CAACC,mBAAmB,CAAC,CAAC;AACnE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,iBAAiBA,CAAClB,QAAoB,EAAQ;EAC7D,MAAMa,gBAAgB,GAAGd,yBAAyB,CACjDC,QAAQ,EACR,mBACD,CAAC;EACD,IAAI,CAACa,gBAAgB,EAAE;IACtB;EACD;EAEAC,mBAAW,CAACC,MAAM,CAACF,gBAAgB,CAAC,CAACG,OAAO,CAACG,qBAAqB,CAAC,CAAC;AACrE","ignoreList":[]}
@@ -8,53 +8,58 @@ var _react = require("react");
8
8
  var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
9
9
  var _styles = require("../../../providers/screen/styles");
10
10
  var _styles2 = require("../../../utils/bounds/helpers/styles/styles");
11
- var _logger = require("../../../utils/logger");
12
- var _portal = require("../portal/components/portal");
11
+ var _useRegisterTarget = require("../hooks/use-register-target");
12
+ var _boundaryContentPortal = require("../portal/components/boundary-content-portal");
13
+ var _boundaryPortal = require("../portal/components/boundary-portal");
13
14
  var _boundaryRoot = require("../providers/boundary-root.provider");
14
15
  var _jsxRuntime = require("react/jsx-runtime");
15
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
16
17
  const BoundaryTarget = exports.BoundaryTarget = /*#__PURE__*/(0, _react.memo)(function BoundaryTarget(props) {
17
18
  const {
19
+ children,
20
+ pointerEvents,
18
21
  style,
19
22
  ...rest
20
23
  } = props;
21
24
  const targetAnimatedRef = (0, _reactNativeReanimated.useAnimatedRef)();
22
- const placeholderAnimatedRef = (0, _reactNativeReanimated.useAnimatedRef)();
25
+ const targetEscapePlaceholderRef = (0, _reactNativeReanimated.useAnimatedRef)();
23
26
  const rootContext = (0, _boundaryRoot.useBoundaryRootContext)();
24
- const registerTargetRef = rootContext?.registerTargetRef;
25
- const unregisterTargetRef = rootContext?.unregisterTargetRef;
27
+ const boundaryId = rootContext?.boundTag.tag;
26
28
  const isActiveTarget = rootContext?.activeTargetRef === targetAnimatedRef;
27
29
  const portalRuntime = rootContext?.portalRuntime;
28
- const shouldApplyAssociatedStyleInline = isActiveTarget && portalRuntime?.enabled !== true;
29
- const shouldApplyPortalLayoutStyle = isActiveTarget && portalRuntime?.enabled === true;
30
+ const handoffEnabled = isActiveTarget && rootContext?.handoffEnabled === true;
31
+ const shouldEscapeTargetToScreenHost = portalRuntime?.escapeClipping === true && boundaryId !== undefined;
32
+ const shouldApplyAssociatedStyleInline = isActiveTarget && portalRuntime?.escapeClipping !== true;
33
+ const shouldApplyPortalLayoutStyle = isActiveTarget && portalRuntime?.escapeClipping === true;
30
34
  const associatedTargetStyles = (0, _styles.useComposedSlotStyles)(rootContext?.boundTag.tag, style);
31
35
  const portalLayoutStyle = (0, _styles.useSlotLayoutStyles)(rootContext?.boundTag.tag);
32
36
  const preparedStyles = (0, _react.useMemo)(() => (0, _styles2.prepareStyleForBounds)(style), [style]);
33
- // Teleported content can render outside its layout slot. The placeholder is
34
- // the truthful measurement surface whenever runtime portal behavior is active.
35
- const measurementRef = portalRuntime?.enabled ? placeholderAnimatedRef : targetAnimatedRef;
36
- (0, _react.useLayoutEffect)(() => {
37
- if (!registerTargetRef || !unregisterTargetRef) {
38
- if (__DEV__) {
39
- _logger.logger.warn(_boundaryRoot.TARGET_OUTSIDE_ROOT_WARNING);
40
- }
41
- return;
42
- }
43
- registerTargetRef(targetAnimatedRef, preparedStyles, measurementRef);
44
- return () => {
45
- unregisterTargetRef(targetAnimatedRef);
46
- };
47
- }, [registerTargetRef, unregisterTargetRef, targetAnimatedRef, preparedStyles, measurementRef]);
48
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_portal.Portal, {
49
- id: rootContext?.boundTag.tag,
50
- handoff: portalRuntime?.handoff,
51
- escapeClipping: portalRuntime?.escapeClipping,
52
- placeholderRef: placeholderAnimatedRef,
37
+ const measurementRef = shouldEscapeTargetToScreenHost ? targetEscapePlaceholderRef : targetAnimatedRef;
38
+ (0, _useRegisterTarget.useRegisterTarget)({
39
+ preparedStyles,
40
+ measurementRef,
41
+ targetAnimatedRef
42
+ });
43
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryPortal.BoundaryPortal, {
44
+ boundaryId: boundaryId ?? "",
45
+ enabled: shouldEscapeTargetToScreenHost,
46
+ placeholderRef: targetEscapePlaceholderRef,
53
47
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
54
48
  ...rest,
49
+ pointerEvents: pointerEvents,
55
50
  ref: targetAnimatedRef,
56
51
  style: [style, shouldApplyAssociatedStyleInline ? associatedTargetStyles : undefined, shouldApplyPortalLayoutStyle ? portalLayoutStyle : undefined],
57
- collapsable: false
52
+ collapsable: false,
53
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryContentPortal.BoundaryContentPortalHost, {
54
+ boundaryId: boundaryId ?? "",
55
+ enabled: handoffEnabled,
56
+ screenKey: rootContext?.currentScreenKey ?? "",
57
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryContentPortal.BoundaryContentPortal, {
58
+ boundaryId: boundaryId,
59
+ enabled: handoffEnabled,
60
+ children: children
61
+ })
62
+ })
58
63
  })
59
64
  });
60
65
  });
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_styles","_styles2","_logger","_portal","_boundaryRoot","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BoundaryTarget","exports","memo","props","style","rest","targetAnimatedRef","useAnimatedRef","placeholderAnimatedRef","rootContext","useBoundaryRootContext","registerTargetRef","unregisterTargetRef","isActiveTarget","activeTargetRef","portalRuntime","shouldApplyAssociatedStyleInline","enabled","shouldApplyPortalLayoutStyle","associatedTargetStyles","useComposedSlotStyles","boundTag","tag","portalLayoutStyle","useSlotLayoutStyles","preparedStyles","useMemo","prepareStyleForBounds","measurementRef","useLayoutEffect","__DEV__","logger","warn","TARGET_OUTSIDE_ROOT_WARNING","jsx","Portal","id","handoff","escapeClipping","placeholderRef","children","View","ref","undefined","collapsable"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/components/boundary-target.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,sBAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAIA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,aAAA,G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EACdG,cAAc,CACd,CAAC;EAEF,oBACC,IAAAhD,WAAA,CAAAsD,GAAA,EAACxD,OAAA,CAAAyD,MAAM;IACNC,EAAE,EAAE3B,WAAW,EAAEY,QAAQ,CAACC,GAAI;IAC9Be,OAAO,EAAEtB,aAAa,EAAEsB,OAAQ;IAChCC,cAAc,EAAEvB,aAAa,EAAEuB,cAAe;IAC9CC,cAAc,EAAE/B,sBAAuB;IAAAgC,QAAA,eAEvC,IAAA5D,WAAA,CAAAsD,GAAA,EAAC7D,sBAAA,CAAAkB,OAAQ,CAACkD,IAAI;MAAA,GACTpC,IAAI;MACRqC,GAAG,EAAEpC,iBAAkB;MACvBF,KAAK,EAAE,CACNA,KAAK,EACLY,gCAAgC,GAAGG,sBAAsB,GAAGwB,SAAS,EACrEzB,4BAA4B,GAAGK,iBAAiB,GAAGoB,SAAS,CAC3D;MACFC,WAAW,EAAE;IAAM,CACnB;EAAC,CACK,CAAC;AAEX,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_styles","_styles2","_useRegisterTarget","_boundaryContentPortal","_boundaryPortal","_boundaryRoot","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BoundaryTarget","exports","memo","props","children","pointerEvents","style","rest","targetAnimatedRef","useAnimatedRef","targetEscapePlaceholderRef","rootContext","useBoundaryRootContext","boundaryId","boundTag","tag","isActiveTarget","activeTargetRef","portalRuntime","handoffEnabled","shouldEscapeTargetToScreenHost","escapeClipping","undefined","shouldApplyAssociatedStyleInline","shouldApplyPortalLayoutStyle","associatedTargetStyles","useComposedSlotStyles","portalLayoutStyle","useSlotLayoutStyles","preparedStyles","useMemo","prepareStyleForBounds","measurementRef","useRegisterTarget","jsx","BoundaryPortal","enabled","placeholderRef","View","ref","collapsable","BoundaryContentPortalHost","screenKey","currentScreenKey","BoundaryContentPortal"],"source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E3E,MAAM0B,cAAc,GAAGZ,8BAA8B,GAClDV,0BAA0B,GAC1BF,iBAAiB;EAEpB,IAAAyB,oCAAiB,EAAC;IAAEJ,cAAc;IAAEG,cAAc;IAAExB;EAAkB,CAAC,CAAC;EAExE,oBACC,IAAA5B,WAAA,CAAAsD,GAAA,EAACxD,eAAA,CAAAyD,cAAc;IACdtB,UAAU,EAAEA,UAAU,IAAI,EAAG;IAC7BuB,OAAO,EAAEhB,8BAA+B;IACxCiB,cAAc,EAAE3B,0BAA2B;IAAAN,QAAA,eAE3C,IAAAxB,WAAA,CAAAsD,GAAA,EAAC9D,sBAAA,CAAAmB,OAAQ,CAAC+C,IAAI;MAAA,GACT/B,IAAI;MACRF,aAAa,EAAEA,aAAc;MAC7BkC,GAAG,EAAE/B,iBAAkB;MACvBF,KAAK,EAAE,CACNA,KAAK,EACLiB,gCAAgC,GAAGE,sBAAsB,GAAGH,SAAS,EACrEE,4BAA4B,GAAGG,iBAAiB,GAAGL,SAAS,CAC3D;MACFkB,WAAW,EAAE,KAAM;MAAApC,QAAA,eAEnB,IAAAxB,WAAA,CAAAsD,GAAA,EAACzD,sBAAA,CAAAgE,yBAAyB;QACzB5B,UAAU,EAAEA,UAAU,IAAI,EAAG;QAC7BuB,OAAO,EAAEjB,cAAe;QACxBuB,SAAS,EAAE/B,WAAW,EAAEgC,gBAAgB,IAAI,EAAG;QAAAvC,QAAA,eAE/C,IAAAxB,WAAA,CAAAsD,GAAA,EAACzD,sBAAA,CAAAmE,qBAAqB;UACrB/B,UAAU,EAAEA,UAAW;UACvBuB,OAAO,EAAEjB,cAAe;UAAAf,QAAA,EAEvBA;QAAQ,CACa;MAAC,CACE;IAAC,CACd;EAAC,CACD,CAAC;AAEnB,CAAC,CAAC","ignoreList":[]}
@@ -5,26 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.createBoundaryComponent = createBoundaryComponent;
7
7
  var _react = require("react");
8
- var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
9
- var _descriptors = require("../../providers/screen/descriptors");
10
- var _styles = require("../../providers/screen/styles");
11
- var _linkPairs = require("../../stores/bounds/helpers/link-pairs.helpers");
12
- var _useBoundaryMeasurement = require("./hooks/use-boundary-measurement");
13
- var _boundaryLocalPortalHost = require("./portal/components/boundary-local-portal-host");
14
- var _portal = require("./portal/components/portal");
15
- var _resolvePortal = require("./portal/utils/resolve-portal");
8
+ var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
9
+ var _boundaryContentPortal = require("./portal/components/boundary-content-portal");
10
+ var _boundaryPortal = require("./portal/components/boundary-portal");
16
11
  var _boundaryRoot = require("./providers/boundary-root.provider");
17
12
  var _jsxRuntime = require("react/jsx-runtime");
18
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
19
- const hasRenderableChildren = children => {
20
- if (children === null || children === undefined || typeof children === "boolean") {
21
- return false;
22
- }
23
- if (Array.isArray(children)) {
24
- return children.some(hasRenderableChildren);
25
- }
26
- return true;
27
- };
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
28
14
  function createBoundaryComponent(Wrapped, options = {}) {
29
15
  const {
30
16
  alreadyAnimated = false
@@ -40,93 +26,42 @@ function createBoundaryComponent(Wrapped, options = {}) {
40
26
  target,
41
27
  method,
42
28
  style,
43
- onPress,
44
29
  handoff,
45
30
  escapeClipping,
46
31
  children,
47
32
  ...rest
48
33
  } = props;
49
- const boundTag = (0, _react.useMemo)(() => (0, _linkPairs.createBoundTag)(String(id), group), [id, group]);
50
- const portalRuntime = (0, _resolvePortal.resolveBoundaryPortal)({
51
- handoff,
52
- escapeClipping
53
- });
54
- const currentScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.currentScreenKey);
55
- const hasConfiguredInterpolator = (0, _descriptors.useDescriptorsStore)(s => s.derivations.hasConfiguredInterpolator);
56
- const runtimeEnabled = enabled && hasConfiguredInterpolator;
57
- // Associated slot styles attach whenever the boundary is enabled,
58
- // independent of whether an interpolator is configured for this transition.
59
- const shouldAttachAssociatedStyles = enabled;
60
- const canPortalRoot = portalRuntime.enabled && hasRenderableChildren(children);
61
- const associatedStyles = (0, _styles.useComposedSlotStyles)(boundTag.tag, style);
62
- const associatedStackingStyles = (0, _styles.useSlotStackingStyles)(boundTag.tag);
63
- const rootPlaceholderRef = (0, _reactNativeReanimated.useAnimatedRef)();
64
- const {
65
- ref,
66
- contextValue,
67
- measuredRef,
68
- hasActiveTarget,
69
- targetPreparedStyles
70
- } = (0, _boundaryRoot.useBoundaryRootState)({
71
- boundTag,
72
- portalRuntime,
73
- rootMeasurementRef: canPortalRoot ? rootPlaceholderRef : undefined
74
- });
75
- (0, _useBoundaryMeasurement.useBoundaryMeasurement)({
76
- boundTag,
77
- enabled,
78
- runtimeEnabled,
79
- currentScreenKey,
80
- measuredRef,
81
- style,
82
- targetPreparedStyles,
83
- handoff: portalRuntime.handoff,
84
- escapeClipping: portalRuntime.escapeClipping,
34
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryRoot.BoundaryRootProvider, {
85
35
  config: {
86
36
  anchor,
87
37
  scaleMode,
88
38
  target,
89
39
  method
90
- }
91
- });
92
- (0, _react.useImperativeHandle)(forwardedRef, () => ref.current, [ref]);
93
- const shouldPortalRoot = canPortalRoot && !hasActiveTarget;
94
- // A nested active target takes the full associated style, so the root keeps
95
- // only its stacking context. Without a nested target, a portal'd root is the
96
- // target, so its associated style is applied through the portal host instead
97
- // of inline on the teleported element.
98
- // Host-only handoff receivers still need the associated style: their local
99
- // portal host is absolute-filled inside this root, so the root is the visual
100
- // frame that animates the received payload.
101
- const attachedStyle = shouldAttachAssociatedStyles ? hasActiveTarget ? associatedStackingStyles : shouldPortalRoot ? undefined : associatedStyles : undefined;
102
- const pressProps = typeof onPress === "function" ? {
103
- onPress
104
- } : undefined;
105
- const localPortalHost = /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryLocalPortalHost.BoundaryLocalPortalHost, {
106
- boundaryId: boundTag.tag,
107
- enabled: enabled && portalRuntime.handoff,
108
- screenKey: currentScreenKey
109
- });
110
- const canInjectLocalPortalHost = typeof children !== "function";
111
- const renderBoundaryRoot = extraChildren => /*#__PURE__*/(0, _jsxRuntime.jsxs)(AnimatedComponent, {
112
- ...rest,
113
- ...pressProps,
114
- ref: ref,
115
- style: [style, attachedStyle],
116
- collapsable: false,
117
- children: [children, canInjectLocalPortalHost ? extraChildren : null]
118
- });
119
- const boundaryRoot = renderBoundaryRoot(shouldPortalRoot ? undefined : localPortalHost);
120
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryRoot.BoundaryRootProvider, {
121
- value: contextValue,
122
- children: shouldPortalRoot ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_portal.Portal, {
123
- id: boundTag.tag,
124
- handoff: portalRuntime.handoff,
125
- escapeClipping: portalRuntime.escapeClipping,
126
- placeholderRef: rootPlaceholderRef,
127
- placeholderChildren: portalRuntime.handoff ? localPortalHost : undefined,
128
- children: boundaryRoot
129
- }) : boundaryRoot
40
+ },
41
+ enabled: enabled,
42
+ escapeClipping: escapeClipping,
43
+ forwardedRef: forwardedRef,
44
+ group: group,
45
+ handoff: handoff,
46
+ id: id,
47
+ style: style,
48
+ children: root => /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryPortal.BoundaryPortal, {
49
+ boundaryId: root.boundTag.tag,
50
+ enabled: root.shouldRenderBoundaryRootThroughPortal,
51
+ placeholderRef: root.rootEscapePlaceholderRef,
52
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedComponent, {
53
+ ...rest,
54
+ ref: root.ref,
55
+ style: [style, root.attachedStyle],
56
+ collapsable: false,
57
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_boundaryContentPortal.BoundaryContentPortalHost, {
58
+ boundaryId: root.boundTag.tag,
59
+ enabled: root.shouldRenderHandoffHost,
60
+ screenKey: root.currentScreenKey,
61
+ children: children
62
+ })
63
+ })
64
+ })
130
65
  });
131
66
  });
132
67
 
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_descriptors","_styles","_linkPairs","_useBoundaryMeasurement","_boundaryLocalPortalHost","_portal","_resolvePortal","_boundaryRoot","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","hasRenderableChildren","children","undefined","Array","isArray","some","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","forwardedRef","enabled","group","id","anchor","scaleMode","target","method","style","onPress","handoff","escapeClipping","rest","boundTag","useMemo","createBoundTag","String","portalRuntime","resolveBoundaryPortal","currentScreenKey","useDescriptorsStore","s","derivations","hasConfiguredInterpolator","runtimeEnabled","shouldAttachAssociatedStyles","canPortalRoot","associatedStyles","useComposedSlotStyles","tag","associatedStackingStyles","useSlotStackingStyles","rootPlaceholderRef","useAnimatedRef","ref","contextValue","measuredRef","hasActiveTarget","targetPreparedStyles","useBoundaryRootState","rootMeasurementRef","useBoundaryMeasurement","config","useImperativeHandle","current","shouldPortalRoot","attachedStyle","pressProps","localPortalHost","jsx","BoundaryLocalPortalHost","boundaryId","screenKey","canInjectLocalPortalHost","renderBoundaryRoot","extraChildren","jsxs","collapsable","boundaryRoot","BoundaryRootProvider","value","Portal","placeholderRef","placeholderChildren","memo"],"sourceRoot":"../../../../../src","sources":["shared/components/bound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,aAAa,CAACN,cAAe;QAC7CmD,cAAc,EAAE9B,kBAAmB;QACnC+B,mBAAmB,EAClB9C,aAAa,CAACP,OAAO,GAAGsC,eAAe,GAAG9D,SAC1C;QAAAD,QAAA,EAEAyE;MAAY,CACN,CAAC,GAETA;IACA,CACoB,CAAC;EAEzB,CAAC,CAAC;;EAEF;EACA;EACA,oBAAO,IAAAM,WAAI,EAACnE,KAAK,CAAC;AAMnB","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireDefault","_boundaryContentPortal","_boundaryPortal","_boundaryRoot","_jsxRuntime","e","__esModule","default","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","forwardedRef","enabled","group","id","anchor","scaleMode","target","method","style","handoff","escapeClipping","children","rest","jsx","BoundaryRootProvider","config","root","BoundaryPortal","boundaryId","boundTag","tag","shouldRenderBoundaryRootThroughPortal","placeholderRef","rootEscapePlaceholderRef","ref","attachedStyle","collapsable","BoundaryContentPortalHost","shouldRenderHandoffHost","screenKey","currentScreenKey","memo"],"sourceRoot":"../../../../../src","sources":["shared/components/boundary/create-boundary-component.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,sBAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AAA0E,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAE,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAOnE,SAASG,uBAAuBA,CACtCC,OAAyB,EACzBC,OAAuC,GAAG,CAAC,CAAC,EAC3C;EACD,MAAM;IAAEC,eAAe,GAAG;EAAM,CAAC,GAAGD,OAAO;EAC3C,MAAME,iBAAiB,GAAGD,eAA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