react-native-screen-transitions 4.0.0-alpha.0 → 4.0.0-alpha.2

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 (403) hide show
  1. package/lib/commonjs/animation/snap-to.js +2 -0
  2. package/lib/commonjs/animation/snap-to.js.map +1 -1
  3. package/lib/commonjs/components/boundary/components/boundary-target.js +19 -20
  4. package/lib/commonjs/components/boundary/components/boundary-target.js.map +1 -1
  5. package/lib/commonjs/components/boundary/create-boundary-component.js +16 -2
  6. package/lib/commonjs/components/boundary/create-boundary-component.js.map +1 -1
  7. package/lib/commonjs/components/boundary/hooks/lifecycles/use-refresh-boundary.js +5 -0
  8. package/lib/commonjs/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
  9. package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js +1 -3
  10. package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
  11. package/lib/commonjs/components/boundary/index.js +4 -3
  12. package/lib/commonjs/components/boundary/index.js.map +1 -1
  13. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/components/host.js +5 -1
  14. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -1
  15. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +47 -188
  16. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
  17. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/index.js +21 -13
  18. package/lib/commonjs/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
  19. package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/host.js +1 -12
  20. package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
  21. package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +40 -33
  22. package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
  23. package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/offset-style.js +3 -4
  24. package/lib/commonjs/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -1
  25. package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +46 -131
  26. package/lib/commonjs/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
  27. package/lib/commonjs/components/boundary/portal/components/boundary-portal/index.js +45 -9
  28. package/lib/commonjs/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
  29. package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -1
  30. package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +2 -29
  31. package/lib/commonjs/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
  32. package/lib/commonjs/components/boundary/portal/utils/handoff-target.js +33 -0
  33. package/lib/commonjs/components/boundary/portal/utils/handoff-target.js.map +1 -0
  34. package/lib/commonjs/components/boundary/portal/utils/resolve-portal.js +19 -15
  35. package/lib/commonjs/components/boundary/portal/utils/resolve-portal.js.map +1 -1
  36. package/lib/commonjs/components/boundary/portal/utils/teleport-control.js +1 -10
  37. package/lib/commonjs/components/boundary/portal/utils/teleport-control.js.map +1 -1
  38. package/lib/commonjs/components/boundary/providers/boundary-root.provider.js +18 -36
  39. package/lib/commonjs/components/boundary/providers/boundary-root.provider.js.map +1 -1
  40. package/lib/commonjs/components/boundary/utils/refresh-signals.js +7 -0
  41. package/lib/commonjs/components/boundary/utils/refresh-signals.js.map +1 -1
  42. package/lib/commonjs/components/boundary/utils/resolve-boundary-target.js +29 -0
  43. package/lib/commonjs/components/boundary/utils/resolve-boundary-target.js.map +1 -0
  44. package/lib/commonjs/components/masked-view.js +9 -1
  45. package/lib/commonjs/components/masked-view.js.map +1 -1
  46. package/lib/commonjs/components/screen-container/layers/backdrop.js +3 -1
  47. package/lib/commonjs/components/screen-container/layers/backdrop.js.map +1 -1
  48. package/lib/commonjs/components/screen-container/layers/maybe-masked-navigation-container.js +9 -1
  49. package/lib/commonjs/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  50. package/lib/commonjs/components/screen-lifecycle/hooks/use-transition-start-controller.js +2 -0
  51. package/lib/commonjs/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
  52. package/lib/commonjs/navigators/react-navigation/index.js +7 -8
  53. package/lib/commonjs/navigators/react-navigation/index.js.map +1 -1
  54. package/lib/commonjs/providers/helpers/measured-bounds-writes.js +4 -1
  55. package/lib/commonjs/providers/helpers/measured-bounds-writes.js.map +1 -1
  56. package/lib/commonjs/providers/screen/gestures/gestures.provider.js +2 -8
  57. package/lib/commonjs/providers/screen/gestures/gestures.provider.js.map +1 -1
  58. package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-lifecycle.js +1 -0
  59. package/lib/commonjs/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
  60. package/lib/commonjs/providers/screen/gestures/pinch/activation/use-pinch-activation.js +37 -3
  61. package/lib/commonjs/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
  62. package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +1 -0
  63. package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
  64. package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-release.js +3 -2
  65. package/lib/commonjs/providers/screen/gestures/pinch/behavior/pinch-release.js.map +1 -1
  66. package/lib/commonjs/providers/screen/gestures/types.js.map +1 -1
  67. package/lib/commonjs/providers/screen/styles/helpers/transition-visual-state.js +42 -0
  68. package/lib/commonjs/providers/screen/styles/helpers/transition-visual-state.js.map +1 -0
  69. package/lib/commonjs/providers/screen/styles/helpers/visibility-gate.js +11 -5
  70. package/lib/commonjs/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
  71. package/lib/commonjs/providers/screen/styles/hooks/use-interpolated-style-maps.js +23 -10
  72. package/lib/commonjs/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  73. package/lib/commonjs/providers/screen/styles/hooks/use-maybe-block-visibility.js +10 -8
  74. package/lib/commonjs/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  75. package/lib/commonjs/stores/bounds/internals/links.js +4 -4
  76. package/lib/commonjs/stores/bounds/internals/links.js.map +1 -1
  77. package/lib/commonjs/stores/scroll.store.js +20 -2
  78. package/lib/commonjs/stores/scroll.store.js.map +1 -1
  79. package/lib/commonjs/stores/system.store.js +2 -0
  80. package/lib/commonjs/stores/system.store.js.map +1 -1
  81. package/lib/commonjs/utils/animation/animate-to-progress.js +23 -1
  82. package/lib/commonjs/utils/animation/animate-to-progress.js.map +1 -1
  83. package/lib/commonjs/utils/animation/animate.js +14 -2
  84. package/lib/commonjs/utils/animation/animate.js.map +1 -1
  85. package/lib/commonjs/utils/animation/spring/spring.js +22 -2
  86. package/lib/commonjs/utils/animation/spring/spring.js.map +1 -1
  87. package/lib/commonjs/utils/animation/spring/springUtils.js +96 -0
  88. package/lib/commonjs/utils/animation/spring/springUtils.js.map +1 -1
  89. package/lib/commonjs/utils/animation/state.js +4 -0
  90. package/lib/commonjs/utils/bounds/navigation/reveal/math.js +17 -5
  91. package/lib/commonjs/utils/bounds/navigation/reveal/math.js.map +1 -1
  92. package/lib/commonjs/utils/bounds/navigation/zoom/build.js +44 -20
  93. package/lib/commonjs/utils/bounds/navigation/zoom/build.js.map +1 -1
  94. package/lib/commonjs/utils/bounds/navigation/zoom/drag.js +2 -31
  95. package/lib/commonjs/utils/bounds/navigation/zoom/drag.js.map +1 -1
  96. package/lib/commonjs/utils/bounds/navigation/zoom/helpers.js +3 -17
  97. package/lib/commonjs/utils/bounds/navigation/zoom/helpers.js.map +1 -1
  98. package/lib/module/animation/snap-to.js +2 -0
  99. package/lib/module/animation/snap-to.js.map +1 -1
  100. package/lib/module/components/boundary/components/boundary-target.js +19 -20
  101. package/lib/module/components/boundary/components/boundary-target.js.map +1 -1
  102. package/lib/module/components/boundary/create-boundary-component.js +17 -3
  103. package/lib/module/components/boundary/create-boundary-component.js.map +1 -1
  104. package/lib/module/components/boundary/hooks/lifecycles/use-refresh-boundary.js +5 -0
  105. package/lib/module/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
  106. package/lib/module/components/boundary/hooks/use-boundary-measurement.js +1 -3
  107. package/lib/module/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
  108. package/lib/module/components/boundary/index.js +3 -2
  109. package/lib/module/components/boundary/index.js.map +1 -1
  110. package/lib/module/components/boundary/portal/components/boundary-content-portal/components/host.js +5 -1
  111. package/lib/module/components/boundary/portal/components/boundary-content-portal/components/host.js.map +1 -1
  112. package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js +49 -190
  113. package/lib/module/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.js.map +1 -1
  114. package/lib/module/components/boundary/portal/components/boundary-content-portal/index.js +21 -13
  115. package/lib/module/components/boundary/portal/components/boundary-content-portal/index.js.map +1 -1
  116. package/lib/module/components/boundary/portal/components/boundary-portal/components/host.js +2 -13
  117. package/lib/module/components/boundary/portal/components/boundary-portal/components/host.js.map +1 -1
  118. package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js +43 -36
  119. package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.js.map +1 -1
  120. package/lib/module/components/boundary/portal/components/boundary-portal/helpers/offset-style.js +3 -4
  121. package/lib/module/components/boundary/portal/components/boundary-portal/helpers/offset-style.js.map +1 -1
  122. package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js +50 -135
  123. package/lib/module/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.js.map +1 -1
  124. package/lib/module/components/boundary/portal/components/boundary-portal/index.js +44 -9
  125. package/lib/module/components/boundary/portal/components/boundary-portal/index.js.map +1 -1
  126. package/lib/module/components/boundary/portal/components/boundary-portal/stores/host-registry.store.js.map +1 -1
  127. package/lib/module/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js +1 -27
  128. package/lib/module/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.js.map +1 -1
  129. package/lib/module/components/boundary/portal/utils/handoff-target.js +28 -0
  130. package/lib/module/components/boundary/portal/utils/handoff-target.js.map +1 -0
  131. package/lib/module/components/boundary/portal/utils/resolve-portal.js +19 -15
  132. package/lib/module/components/boundary/portal/utils/resolve-portal.js.map +1 -1
  133. package/lib/module/components/boundary/portal/utils/teleport-control.js +0 -8
  134. package/lib/module/components/boundary/portal/utils/teleport-control.js.map +1 -1
  135. package/lib/module/components/boundary/providers/boundary-root.provider.js +19 -37
  136. package/lib/module/components/boundary/providers/boundary-root.provider.js.map +1 -1
  137. package/lib/module/components/boundary/utils/refresh-signals.js +7 -0
  138. package/lib/module/components/boundary/utils/refresh-signals.js.map +1 -1
  139. package/lib/module/components/boundary/utils/resolve-boundary-target.js +24 -0
  140. package/lib/module/components/boundary/utils/resolve-boundary-target.js.map +1 -0
  141. package/lib/module/components/masked-view.js +10 -2
  142. package/lib/module/components/masked-view.js.map +1 -1
  143. package/lib/module/components/screen-container/layers/backdrop.js +3 -1
  144. package/lib/module/components/screen-container/layers/backdrop.js.map +1 -1
  145. package/lib/module/components/screen-container/layers/maybe-masked-navigation-container.js +10 -2
  146. package/lib/module/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  147. package/lib/module/components/screen-lifecycle/hooks/use-transition-start-controller.js +2 -0
  148. package/lib/module/components/screen-lifecycle/hooks/use-transition-start-controller.js.map +1 -1
  149. package/lib/module/navigators/react-navigation/index.js +4 -6
  150. package/lib/module/navigators/react-navigation/index.js.map +1 -1
  151. package/lib/module/providers/helpers/measured-bounds-writes.js +4 -1
  152. package/lib/module/providers/helpers/measured-bounds-writes.js.map +1 -1
  153. package/lib/module/providers/screen/gestures/gestures.provider.js +2 -8
  154. package/lib/module/providers/screen/gestures/gestures.provider.js.map +1 -1
  155. package/lib/module/providers/screen/gestures/pan/behavior/pan-lifecycle.js +1 -0
  156. package/lib/module/providers/screen/gestures/pan/behavior/pan-lifecycle.js.map +1 -1
  157. package/lib/module/providers/screen/gestures/pinch/activation/use-pinch-activation.js +35 -2
  158. package/lib/module/providers/screen/gestures/pinch/activation/use-pinch-activation.js.map +1 -1
  159. package/lib/module/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js +1 -0
  160. package/lib/module/providers/screen/gestures/pinch/behavior/pinch-lifecycle.js.map +1 -1
  161. package/lib/module/providers/screen/gestures/pinch/behavior/pinch-release.js +3 -2
  162. package/lib/module/providers/screen/gestures/pinch/behavior/pinch-release.js.map +1 -1
  163. package/lib/module/providers/screen/gestures/types.js.map +1 -1
  164. package/lib/module/providers/screen/styles/helpers/transition-visual-state.js +35 -0
  165. package/lib/module/providers/screen/styles/helpers/transition-visual-state.js.map +1 -0
  166. package/lib/module/providers/screen/styles/helpers/visibility-gate.js +11 -5
  167. package/lib/module/providers/screen/styles/helpers/visibility-gate.js.map +1 -1
  168. package/lib/module/providers/screen/styles/hooks/use-interpolated-style-maps.js +23 -10
  169. package/lib/module/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
  170. package/lib/module/providers/screen/styles/hooks/use-maybe-block-visibility.js +10 -8
  171. package/lib/module/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  172. package/lib/module/stores/bounds/internals/links.js +4 -4
  173. package/lib/module/stores/bounds/internals/links.js.map +1 -1
  174. package/lib/module/stores/scroll.store.js +17 -0
  175. package/lib/module/stores/scroll.store.js.map +1 -1
  176. package/lib/module/stores/system.store.js +2 -0
  177. package/lib/module/stores/system.store.js.map +1 -1
  178. package/lib/module/utils/animation/animate-to-progress.js +21 -0
  179. package/lib/module/utils/animation/animate-to-progress.js.map +1 -1
  180. package/lib/module/utils/animation/animate.js +14 -2
  181. package/lib/module/utils/animation/animate.js.map +1 -1
  182. package/lib/module/utils/animation/spring/spring.js +23 -3
  183. package/lib/module/utils/animation/spring/spring.js.map +1 -1
  184. package/lib/module/utils/animation/spring/springUtils.js +95 -0
  185. package/lib/module/utils/animation/spring/springUtils.js.map +1 -1
  186. package/lib/module/utils/animation/state.js +2 -0
  187. package/lib/module/utils/bounds/navigation/reveal/math.js +16 -5
  188. package/lib/module/utils/bounds/navigation/reveal/math.js.map +1 -1
  189. package/lib/module/utils/bounds/navigation/zoom/build.js +46 -22
  190. package/lib/module/utils/bounds/navigation/zoom/build.js.map +1 -1
  191. package/lib/module/utils/bounds/navigation/zoom/drag.js +2 -30
  192. package/lib/module/utils/bounds/navigation/zoom/drag.js.map +1 -1
  193. package/lib/module/utils/bounds/navigation/zoom/helpers.js +4 -18
  194. package/lib/module/utils/bounds/navigation/zoom/helpers.js.map +1 -1
  195. package/lib/typescript/animation/snap-to.d.ts.map +1 -1
  196. package/lib/typescript/components/boundary/components/boundary-target.d.ts +2 -1
  197. package/lib/typescript/components/boundary/components/boundary-target.d.ts.map +1 -1
  198. package/lib/typescript/components/boundary/create-boundary-component.d.ts.map +1 -1
  199. package/lib/typescript/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map +1 -1
  200. package/lib/typescript/components/boundary/hooks/use-boundary-measurement.d.ts +3 -4
  201. package/lib/typescript/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
  202. package/lib/typescript/components/boundary/index.d.ts +6 -9
  203. package/lib/typescript/components/boundary/index.d.ts.map +1 -1
  204. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts +1 -3
  205. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.d.ts.map +1 -1
  206. package/lib/typescript/components/boundary/portal/components/boundary-content-portal/index.d.ts.map +1 -1
  207. package/lib/typescript/components/boundary/portal/components/boundary-portal/components/host.d.ts.map +1 -1
  208. package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.d.ts.map +1 -1
  209. package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts +1 -10
  210. package/lib/typescript/components/boundary/portal/components/boundary-portal/helpers/offset-style.d.ts.map +1 -1
  211. package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts +1 -3
  212. package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.d.ts.map +1 -1
  213. package/lib/typescript/components/boundary/portal/components/boundary-portal/hooks/use-placeholder-styles.d.ts +2 -2
  214. package/lib/typescript/components/boundary/portal/components/boundary-portal/index.d.ts +2 -2
  215. package/lib/typescript/components/boundary/portal/components/boundary-portal/index.d.ts.map +1 -1
  216. package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts +0 -1
  217. package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/host-registry.store.d.ts.map +1 -1
  218. package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts +1 -10
  219. package/lib/typescript/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.d.ts.map +1 -1
  220. package/lib/typescript/components/boundary/portal/utils/handoff-target.d.ts +12 -0
  221. package/lib/typescript/components/boundary/portal/utils/handoff-target.d.ts.map +1 -0
  222. package/lib/typescript/components/boundary/portal/utils/resolve-portal.d.ts +2 -3
  223. package/lib/typescript/components/boundary/portal/utils/resolve-portal.d.ts.map +1 -1
  224. package/lib/typescript/components/boundary/portal/utils/teleport-control.d.ts +0 -4
  225. package/lib/typescript/components/boundary/portal/utils/teleport-control.d.ts.map +1 -1
  226. package/lib/typescript/components/boundary/providers/boundary-root.provider.d.ts +8 -12
  227. package/lib/typescript/components/boundary/providers/boundary-root.provider.d.ts.map +1 -1
  228. package/lib/typescript/components/boundary/utils/refresh-signals.d.ts +1 -0
  229. package/lib/typescript/components/boundary/utils/refresh-signals.d.ts.map +1 -1
  230. package/lib/typescript/components/boundary/utils/resolve-boundary-target.d.ts +12 -0
  231. package/lib/typescript/components/boundary/utils/resolve-boundary-target.d.ts.map +1 -0
  232. package/lib/typescript/components/create-transition-aware-component.d.ts +5 -6
  233. package/lib/typescript/components/create-transition-aware-component.d.ts.map +1 -1
  234. package/lib/typescript/components/masked-view.d.ts.map +1 -1
  235. package/lib/typescript/components/screen-container/layers/backdrop.d.ts.map +1 -1
  236. package/lib/typescript/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
  237. package/lib/typescript/components/screen-lifecycle/hooks/use-transition-start-controller.d.ts.map +1 -1
  238. package/lib/typescript/index.d.ts +650 -702
  239. package/lib/typescript/index.d.ts.map +1 -1
  240. package/lib/typescript/navigators/react-navigation/index.d.ts +6 -17
  241. package/lib/typescript/navigators/react-navigation/index.d.ts.map +1 -1
  242. package/lib/typescript/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
  243. package/lib/typescript/providers/screen/gestures/gestures.provider.d.ts.map +1 -1
  244. package/lib/typescript/providers/screen/gestures/pan/behavior/pan-lifecycle.d.ts.map +1 -1
  245. package/lib/typescript/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts +2 -1
  246. package/lib/typescript/providers/screen/gestures/pinch/activation/use-pinch-activation.d.ts.map +1 -1
  247. package/lib/typescript/providers/screen/gestures/pinch/behavior/pinch-lifecycle.d.ts.map +1 -1
  248. package/lib/typescript/providers/screen/gestures/pinch/behavior/pinch-release.d.ts.map +1 -1
  249. package/lib/typescript/providers/screen/gestures/types.d.ts +1 -9
  250. package/lib/typescript/providers/screen/gestures/types.d.ts.map +1 -1
  251. package/lib/typescript/providers/screen/styles/helpers/transition-visual-state.d.ts +18 -0
  252. package/lib/typescript/providers/screen/styles/helpers/transition-visual-state.d.ts.map +1 -0
  253. package/lib/typescript/providers/screen/styles/helpers/visibility-gate.d.ts +2 -2
  254. package/lib/typescript/providers/screen/styles/helpers/visibility-gate.d.ts.map +1 -1
  255. package/lib/typescript/providers/screen/styles/hooks/slot-resolvers.d.ts +4 -4
  256. package/lib/typescript/providers/screen/styles/hooks/slot-resolvers.d.ts.map +1 -1
  257. package/lib/typescript/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
  258. package/lib/typescript/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +2 -2
  259. package/lib/typescript/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
  260. package/lib/typescript/stores/bounds/internals/links.d.ts +1 -1
  261. package/lib/typescript/stores/bounds/internals/links.d.ts.map +1 -1
  262. package/lib/typescript/stores/scroll.store.d.ts +7 -0
  263. package/lib/typescript/stores/scroll.store.d.ts.map +1 -1
  264. package/lib/typescript/stores/system.store.d.ts +5 -0
  265. package/lib/typescript/stores/system.store.d.ts.map +1 -1
  266. package/lib/typescript/utils/animation/animate-to-progress.d.ts +6 -1
  267. package/lib/typescript/utils/animation/animate-to-progress.d.ts.map +1 -1
  268. package/lib/typescript/utils/animation/animate.d.ts +2 -2
  269. package/lib/typescript/utils/animation/animate.d.ts.map +1 -1
  270. package/lib/typescript/utils/animation/spring/spring.d.ts +2 -2
  271. package/lib/typescript/utils/animation/spring/spring.d.ts.map +1 -1
  272. package/lib/typescript/utils/animation/spring/springUtils.d.ts +3 -0
  273. package/lib/typescript/utils/animation/spring/springUtils.d.ts.map +1 -1
  274. package/lib/typescript/utils/animation/state.d.ts +6 -0
  275. package/lib/typescript/utils/animation/state.d.ts.map +1 -1
  276. package/lib/typescript/utils/bounds/navigation/reveal/math.d.ts +9 -0
  277. package/lib/typescript/utils/bounds/navigation/reveal/math.d.ts.map +1 -1
  278. package/lib/typescript/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
  279. package/lib/typescript/utils/bounds/navigation/zoom/drag.d.ts +2 -11
  280. package/lib/typescript/utils/bounds/navigation/zoom/drag.d.ts.map +1 -1
  281. package/lib/typescript/utils/bounds/navigation/zoom/helpers.d.ts +7 -4
  282. package/lib/typescript/utils/bounds/navigation/zoom/helpers.d.ts.map +1 -1
  283. package/package.json +1 -1
  284. package/src/animation/snap-to.ts +5 -0
  285. package/src/components/boundary/components/boundary-target.tsx +37 -23
  286. package/src/components/boundary/create-boundary-component.tsx +29 -3
  287. package/src/components/boundary/hooks/lifecycles/use-refresh-boundary.ts +11 -0
  288. package/src/components/boundary/hooks/use-boundary-measurement.ts +3 -9
  289. package/src/components/boundary/index.tsx +4 -8
  290. package/src/components/boundary/portal/components/boundary-content-portal/components/host.tsx +5 -1
  291. package/src/components/boundary/portal/components/boundary-content-portal/hooks/use-boundary-content-portal-attachment.ts +73 -276
  292. package/src/components/boundary/portal/components/boundary-content-portal/index.tsx +31 -12
  293. package/src/components/boundary/portal/components/boundary-portal/components/host.tsx +2 -12
  294. package/src/components/boundary/portal/components/boundary-portal/components/portal-boundary-host.tsx +64 -62
  295. package/src/components/boundary/portal/components/boundary-portal/helpers/offset-style.ts +2 -9
  296. package/src/components/boundary/portal/components/boundary-portal/hooks/use-boundary-portal-attachment.ts +73 -187
  297. package/src/components/boundary/portal/components/boundary-portal/index.tsx +72 -12
  298. package/src/components/boundary/portal/components/boundary-portal/stores/host-registry.store.ts +0 -1
  299. package/src/components/boundary/portal/components/boundary-portal/stores/portal-boundary-host.store.ts +2 -39
  300. package/src/components/boundary/portal/utils/handoff-target.ts +48 -0
  301. package/src/components/boundary/portal/utils/resolve-portal.ts +26 -18
  302. package/src/components/boundary/portal/utils/teleport-control.ts +0 -12
  303. package/src/components/boundary/providers/boundary-root.provider.tsx +28 -80
  304. package/src/components/boundary/utils/refresh-signals.ts +8 -0
  305. package/src/components/boundary/utils/resolve-boundary-target.tsx +39 -0
  306. package/src/components/masked-view.tsx +20 -4
  307. package/src/components/screen-container/layers/backdrop.tsx +3 -1
  308. package/src/components/screen-container/layers/maybe-masked-navigation-container.tsx +14 -4
  309. package/src/components/screen-lifecycle/hooks/use-transition-start-controller.ts +2 -0
  310. package/src/navigators/react-navigation/index.tsx +4 -48
  311. package/src/providers/helpers/measured-bounds-writes.ts +1 -0
  312. package/src/providers/screen/gestures/gestures.provider.tsx +2 -10
  313. package/src/providers/screen/gestures/pan/behavior/pan-lifecycle.ts +1 -0
  314. package/src/providers/screen/gestures/pinch/activation/use-pinch-activation.ts +74 -3
  315. package/src/providers/screen/gestures/pinch/behavior/pinch-lifecycle.ts +1 -0
  316. package/src/providers/screen/gestures/pinch/behavior/pinch-release.ts +2 -4
  317. package/src/providers/screen/gestures/types.ts +0 -14
  318. package/src/providers/screen/styles/helpers/transition-visual-state.ts +44 -0
  319. package/src/providers/screen/styles/helpers/visibility-gate.ts +17 -7
  320. package/src/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +30 -15
  321. package/src/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +14 -13
  322. package/src/stores/bounds/internals/links.ts +13 -2
  323. package/src/stores/scroll.store.ts +23 -0
  324. package/src/stores/system.store.ts +8 -0
  325. package/src/utils/animation/animate-to-progress.ts +59 -28
  326. package/src/utils/animation/animate.ts +18 -2
  327. package/src/utils/animation/spring/spring.ts +36 -1
  328. package/src/utils/animation/spring/springUtils.ts +130 -0
  329. package/src/utils/animation/state.ts +8 -0
  330. package/src/utils/bounds/navigation/reveal/math.ts +21 -5
  331. package/src/utils/bounds/navigation/zoom/build.ts +77 -23
  332. package/src/utils/bounds/navigation/zoom/drag.ts +3 -42
  333. package/src/utils/bounds/navigation/zoom/helpers.ts +9 -23
  334. package/lib/commonjs/components/boundary/hooks/use-register-target.js +0 -32
  335. package/lib/commonjs/components/boundary/hooks/use-register-target.js.map +0 -1
  336. package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-slot.js +0 -52
  337. package/lib/commonjs/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +0 -1
  338. package/lib/commonjs/components/boundary/portal/utils/ownership.js +0 -220
  339. package/lib/commonjs/components/boundary/portal/utils/ownership.js.map +0 -1
  340. package/lib/commonjs/components/boundary/portal/utils/shallow-equal.js +0 -29
  341. package/lib/commonjs/components/boundary/portal/utils/shallow-equal.js.map +0 -1
  342. package/lib/commonjs/components/boundary/portal/utils/visible-host.js +0 -25
  343. package/lib/commonjs/components/boundary/portal/utils/visible-host.js.map +0 -1
  344. package/lib/commonjs/providers/screen/gestures/rotation/activation/use-rotation-activation.js +0 -64
  345. package/lib/commonjs/providers/screen/gestures/rotation/activation/use-rotation-activation.js.map +0 -1
  346. package/lib/commonjs/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js +0 -21
  347. package/lib/commonjs/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js.map +0 -1
  348. package/lib/commonjs/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js +0 -29
  349. package/lib/commonjs/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js.map +0 -1
  350. package/lib/commonjs/providers/screen/gestures/rotation/use-build-rotation-gesture.js +0 -38
  351. package/lib/commonjs/providers/screen/gestures/rotation/use-build-rotation-gesture.js.map +0 -1
  352. package/lib/commonjs/providers/screen/styles/helpers/opening-phase.js +0 -32
  353. package/lib/commonjs/providers/screen/styles/helpers/opening-phase.js.map +0 -1
  354. package/lib/module/components/boundary/hooks/use-register-target.js +0 -27
  355. package/lib/module/components/boundary/hooks/use-register-target.js.map +0 -1
  356. package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-slot.js +0 -47
  357. package/lib/module/components/boundary/portal/components/boundary-portal/components/portal-slot.js.map +0 -1
  358. package/lib/module/components/boundary/portal/utils/ownership.js +0 -213
  359. package/lib/module/components/boundary/portal/utils/ownership.js.map +0 -1
  360. package/lib/module/components/boundary/portal/utils/shallow-equal.js +0 -24
  361. package/lib/module/components/boundary/portal/utils/shallow-equal.js.map +0 -1
  362. package/lib/module/components/boundary/portal/utils/visible-host.js +0 -20
  363. package/lib/module/components/boundary/portal/utils/visible-host.js.map +0 -1
  364. package/lib/module/providers/screen/gestures/rotation/activation/use-rotation-activation.js +0 -59
  365. package/lib/module/providers/screen/gestures/rotation/activation/use-rotation-activation.js.map +0 -1
  366. package/lib/module/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js +0 -15
  367. package/lib/module/providers/screen/gestures/rotation/behavior/rotation-lifecycle.js.map +0 -1
  368. package/lib/module/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js +0 -24
  369. package/lib/module/providers/screen/gestures/rotation/behavior/use-rotation-behavior.js.map +0 -1
  370. package/lib/module/providers/screen/gestures/rotation/use-build-rotation-gesture.js +0 -33
  371. package/lib/module/providers/screen/gestures/rotation/use-build-rotation-gesture.js.map +0 -1
  372. package/lib/module/providers/screen/styles/helpers/opening-phase.js +0 -26
  373. package/lib/module/providers/screen/styles/helpers/opening-phase.js.map +0 -1
  374. package/lib/typescript/components/boundary/hooks/use-register-target.d.ts +0 -10
  375. package/lib/typescript/components/boundary/hooks/use-register-target.d.ts.map +0 -1
  376. package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts +0 -13
  377. package/lib/typescript/components/boundary/portal/components/boundary-portal/components/portal-slot.d.ts.map +0 -1
  378. package/lib/typescript/components/boundary/portal/utils/ownership.d.ts +0 -34
  379. package/lib/typescript/components/boundary/portal/utils/ownership.d.ts.map +0 -1
  380. package/lib/typescript/components/boundary/portal/utils/shallow-equal.d.ts +0 -8
  381. package/lib/typescript/components/boundary/portal/utils/shallow-equal.d.ts.map +0 -1
  382. package/lib/typescript/components/boundary/portal/utils/visible-host.d.ts +0 -8
  383. package/lib/typescript/components/boundary/portal/utils/visible-host.d.ts.map +0 -1
  384. package/lib/typescript/providers/screen/gestures/rotation/activation/use-rotation-activation.d.ts +0 -15
  385. package/lib/typescript/providers/screen/gestures/rotation/activation/use-rotation-activation.d.ts.map +0 -1
  386. package/lib/typescript/providers/screen/gestures/rotation/behavior/rotation-lifecycle.d.ts +0 -4
  387. package/lib/typescript/providers/screen/gestures/rotation/behavior/rotation-lifecycle.d.ts.map +0 -1
  388. package/lib/typescript/providers/screen/gestures/rotation/behavior/use-rotation-behavior.d.ts +0 -5
  389. package/lib/typescript/providers/screen/gestures/rotation/behavior/use-rotation-behavior.d.ts.map +0 -1
  390. package/lib/typescript/providers/screen/gestures/rotation/use-build-rotation-gesture.d.ts +0 -9
  391. package/lib/typescript/providers/screen/gestures/rotation/use-build-rotation-gesture.d.ts.map +0 -1
  392. package/lib/typescript/providers/screen/styles/helpers/opening-phase.d.ts +0 -16
  393. package/lib/typescript/providers/screen/styles/helpers/opening-phase.d.ts.map +0 -1
  394. package/src/components/boundary/hooks/use-register-target.ts +0 -43
  395. package/src/components/boundary/portal/components/boundary-portal/components/portal-slot.tsx +0 -80
  396. package/src/components/boundary/portal/utils/ownership.ts +0 -319
  397. package/src/components/boundary/portal/utils/shallow-equal.ts +0 -25
  398. package/src/components/boundary/portal/utils/visible-host.ts +0 -24
  399. package/src/providers/screen/gestures/rotation/activation/use-rotation-activation.ts +0 -88
  400. package/src/providers/screen/gestures/rotation/behavior/rotation-lifecycle.ts +0 -19
  401. package/src/providers/screen/gestures/rotation/behavior/use-rotation-behavior.ts +0 -47
  402. package/src/providers/screen/gestures/rotation/use-build-rotation-gesture.ts +0 -50
  403. package/src/providers/screen/styles/helpers/opening-phase.ts +0 -25
@@ -1,52 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.BoundaryPortalSlot = void 0;
7
- var _react = require("react");
8
- var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
9
- var _reactNativeWorklets = require("react-native-worklets");
10
- var _logger = require("../../../../../../utils/logger");
11
- var _teleport = require("../../../teleport");
12
- var _usePlaceholderStyles = require("../hooks/use-placeholder-styles");
13
- var _jsxRuntime = require("react/jsx-runtime");
14
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
- const AnimatedNativePortal = _teleport.NativePortal ? _reactNativeReanimated.default.createAnimatedComponent(_teleport.NativePortal) : null;
16
- const BoundaryPortalSlot = exports.BoundaryPortalSlot = /*#__PURE__*/(0, _react.memo)(function BoundaryPortalSlot({
17
- id,
18
- children,
19
- enabled,
20
- animatedProps,
21
- placeholderRef
22
- }) {
23
- const isPortalEnabled = enabled && _teleport.isTeleportAvailable;
24
- if (__DEV__ && enabled && !id) {
25
- _logger.logger.warnOnce("portal:missing-id", "A boundary portal was rendered without an id; rendering inline.");
26
- }
27
- const {
28
- handleOnLayout,
29
- placeholderStyle
30
- } = (0, _usePlaceholderStyles.usePlaceholderStyles)();
31
- if (isPortalEnabled && AnimatedNativePortal) {
32
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
33
- ref: placeholderRef,
34
- onLayout: ({
35
- nativeEvent: {
36
- layout
37
- }
38
- }) => (0, _reactNativeWorklets.scheduleOnUI)(handleOnLayout, layout),
39
- style: placeholderStyle,
40
- pointerEvents: _teleport.PORTAL_POINTER_EVENTS,
41
- collapsable: false,
42
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedNativePortal, {
43
- animatedProps: animatedProps,
44
- name: id,
45
- pointerEvents: _teleport.PORTAL_POINTER_EVENTS,
46
- children: children
47
- })
48
- });
49
- }
50
- return children;
51
- });
52
- //# sourceMappingURL=portal-slot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireDefault","_reactNativeWorklets","_logger","_teleport","_usePlaceholderStyles","_jsxRuntime","e","__esModule","default","AnimatedNativePortal","TeleportPortal","Animated","createAnimatedComponent","BoundaryPortalSlot","exports","memo","id","children","enabled","animatedProps","placeholderRef","isPortalEnabled","isTeleportAvailable","__DEV__","logger","warnOnce","handleOnLayout","placeholderStyle","usePlaceholderStyles","jsx","View","ref","onLayout","nativeEvent","layout","scheduleOnUI","style","pointerEvents","PORTAL_POINTER_EVENTS","collapsable","name"],"sourceRoot":"../../../../../../../../src","sources":["components/boundary/portal/components/boundary-portal/components/portal-slot.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,sBAAA,GAAAC,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oB;QACpBU,aAAa,EAAEA,aAAc;QAC7BqB,IAAI,EAAExB,EAAG;QACTqB,aAAa,EAAEC,+BAAsB;QAAArB,QAAA,EAEpCA;MAAQ,CACY;IAAC,CACT,CAAC;EAElB;EAEA,OAAOA,QAAQ;AAChB,CAAC,CAAC","ignoreList":[]}
@@ -1,220 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.resolveBoundaryPortalOwnership = exports.isHandoffHostClosingComplete = exports.canSwitchHandoffHostImmediately = void 0;
7
- var _linkPairs = require("../../../../stores/bounds/helpers/link-pairs.helpers");
8
- const isHandoffHostClosingComplete = ({
9
- closing,
10
- progressAnimating,
11
- progressSettled,
12
- willAnimate
13
- }) => {
14
- "worklet";
15
-
16
- // A close request marks `closing` before its animation starts. Springs can
17
- // also enter their settle-distance threshold before their final frame.
18
- return !!closing && willAnimate === 0 && progressSettled === 1 && progressAnimating === 0;
19
- };
20
- exports.isHandoffHostClosingComplete = isHandoffHostClosingComplete;
21
- const hasSeenScreenKey = (screenKeys, screenKey) => {
22
- "worklet";
23
-
24
- for (let index = 0; index < screenKeys.length; index++) {
25
- if (screenKeys[index] === screenKey) {
26
- return true;
27
- }
28
- }
29
- return false;
30
- };
31
- const isReturningToPreviousSourceHost = ({
32
- hostScreenKey,
33
- ownerPairKey,
34
- previousOwnerPairKey
35
- }) => {
36
- "worklet";
37
-
38
- const previousSourceScreenKey = (0, _linkPairs.getSourceScreenKeyFromPairKey)(previousOwnerPairKey);
39
- const previousDestinationScreenKey = (0, _linkPairs.getDestinationScreenKeyFromPairKey)(previousOwnerPairKey);
40
- const ownerDestinationScreenKey = (0, _linkPairs.getDestinationScreenKeyFromPairKey)(ownerPairKey);
41
- return previousDestinationScreenKey !== "" && ownerDestinationScreenKey !== "" && previousDestinationScreenKey !== previousSourceScreenKey && ownerDestinationScreenKey === previousSourceScreenKey && hostScreenKey === previousSourceScreenKey;
42
- };
43
- const canSwitchHandoffHostImmediately = ({
44
- hostScreenKey,
45
- ownerPairKey,
46
- previousOwnerPairKey
47
- }) => {
48
- "worklet";
49
-
50
- if (!hostScreenKey || !ownerPairKey) {
51
- return false;
52
- }
53
- if (hostScreenKey === (0, _linkPairs.getSourceScreenKeyFromPairKey)(ownerPairKey)) {
54
- return true;
55
- }
56
- if (!previousOwnerPairKey) {
57
- return false;
58
- }
59
- return isReturningToPreviousSourceHost({
60
- hostScreenKey,
61
- ownerPairKey,
62
- previousOwnerPairKey
63
- });
64
- };
65
- exports.canSwitchHandoffHostImmediately = canSwitchHandoffHostImmediately;
66
- const isActiveHandoffLink = ({
67
- link,
68
- linkKey,
69
- pairKey,
70
- pairsState
71
- }) => {
72
- "worklet";
73
-
74
- if (!link.group) {
75
- return true;
76
- }
77
- const activeId = pairsState[pairKey]?.groups?.[link.group]?.activeId;
78
- return !activeId || activeId === linkKey;
79
- };
80
- const resolveHandoffStyleOwnerScreenKey = ({
81
- hostScreenKey,
82
- isSettledHostReady,
83
- settledHostScreenKey,
84
- sourceScreenKey
85
- }) => {
86
- "worklet";
87
-
88
- if (settledHostScreenKey === hostScreenKey && isSettledHostReady) {
89
- return hostScreenKey;
90
- }
91
- return sourceScreenKey;
92
- };
93
- const pendingSignal = sourcePairKey => {
94
- "worklet";
95
-
96
- return {
97
- hostScreenKey: null,
98
- ownerPairKey: sourcePairKey,
99
- ownerScreenKey: null,
100
- status: "pending"
101
- };
102
- };
103
- const clearSignal = sourcePairKey => {
104
- "worklet";
105
-
106
- return {
107
- hostScreenKey: null,
108
- ownerPairKey: sourcePairKey,
109
- ownerScreenKey: null,
110
- status: "clear"
111
- };
112
- };
113
- const resolveBoundaryPortalOwnership = ({
114
- boundaryId,
115
- currentScreenKey,
116
- handoff,
117
- isSettledHostClosingComplete = false,
118
- isSettledHostReady = false,
119
- pairsState,
120
- settledHostScreenKey = null,
121
- sourcePairKey
122
- }) => {
123
- "worklet";
124
-
125
- const linkKey = (0, _linkPairs.getLinkKeyFromTag)(boundaryId);
126
- const link = (0, _linkPairs.getLink)(pairsState, sourcePairKey, linkKey);
127
- if (!link?.source) {
128
- return pendingSignal(sourcePairKey);
129
- }
130
- if (!isActiveHandoffLink({
131
- link,
132
- linkKey,
133
- pairKey: sourcePairKey,
134
- pairsState
135
- })) {
136
- return clearSignal(sourcePairKey);
137
- }
138
- if (!handoff) {
139
- return {
140
- hostScreenKey: currentScreenKey,
141
- ownerPairKey: sourcePairKey,
142
- ownerScreenKey: currentScreenKey,
143
- status: "complete"
144
- };
145
- }
146
- if (link.status !== "complete") {
147
- return pendingSignal(sourcePairKey);
148
- }
149
- let hostScreenKey = link.destination.screenKey;
150
- let ownerPairKey = sourcePairKey;
151
- const seenScreenKeys = [(0, _linkPairs.getSourceScreenKeyFromPairKey)(sourcePairKey), hostScreenKey];
152
- const pairKeys = Object.keys(pairsState);
153
- for (let hop = 0; hop < pairKeys.length; hop++) {
154
- let didAdvance = false;
155
- let hasPendingNextHop = false;
156
- let didHitVisitedScreen = false;
157
- for (let index = 0; index < pairKeys.length; index++) {
158
- const candidatePairKey = pairKeys[index];
159
- if (!candidatePairKey || candidatePairKey === ownerPairKey) {
160
- continue;
161
- }
162
- const candidate = (0, _linkPairs.getLink)(pairsState, candidatePairKey, linkKey);
163
- if (!candidate?.source || candidate.source.screenKey !== hostScreenKey) {
164
- continue;
165
- }
166
- if (!candidate.source.handoff) {
167
- continue;
168
- }
169
- if (!isActiveHandoffLink({
170
- link: candidate,
171
- linkKey,
172
- pairKey: candidatePairKey,
173
- pairsState
174
- })) {
175
- continue;
176
- }
177
- if (candidate.status !== "complete") {
178
- hasPendingNextHop = true;
179
- continue;
180
- }
181
- const nextHostScreenKey = candidate.destination.screenKey;
182
- ownerPairKey = candidatePairKey;
183
- hostScreenKey = nextHostScreenKey;
184
- if (hasSeenScreenKey(seenScreenKeys, nextHostScreenKey)) {
185
- didHitVisitedScreen = true;
186
- break;
187
- }
188
- seenScreenKeys.push(nextHostScreenKey);
189
- didAdvance = true;
190
- break;
191
- }
192
- if (didHitVisitedScreen) {
193
- break;
194
- }
195
- if (didAdvance) {
196
- continue;
197
- }
198
- if (hasPendingNextHop) {
199
- return pendingSignal(ownerPairKey);
200
- }
201
- break;
202
- }
203
- if (isSettledHostClosingComplete && settledHostScreenKey === hostScreenKey) {
204
- hostScreenKey = (0, _linkPairs.getSourceScreenKeyFromPairKey)(ownerPairKey);
205
- }
206
- const ownerScreenKey = resolveHandoffStyleOwnerScreenKey({
207
- hostScreenKey,
208
- isSettledHostReady,
209
- settledHostScreenKey,
210
- sourceScreenKey: (0, _linkPairs.getSourceScreenKeyFromPairKey)(ownerPairKey)
211
- });
212
- return {
213
- hostScreenKey,
214
- ownerPairKey,
215
- ownerScreenKey,
216
- status: "complete"
217
- };
218
- };
219
- exports.resolveBoundaryPortalOwnership = resolveBoundaryPortalOwnership;
220
- //# sourceMappingURL=ownership.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_linkPairs","require","isHandoffHostClosingComplete","closing","progressAnimating","progressSettled","willAnimate","exports","hasSeenScreenKey","screenKeys","screenKey","index","length","isReturningToPreviousSourceHost","hostScreenKey","ownerPairKey","previousOwnerPairKey","previousSourceScreenKey","getSourceScreenKeyFromPairKey","previousDestinationScreenKey","getDestinationScreenKeyFromPairKey","ownerDestinationScreenKey","canSwitchHandoffHostImmediately","isActiveHandoffLink","link","linkKey","pairKey","pairsState","group","activeId","groups","resolveHandoffStyleOwnerScreenKey","isSettledHostReady","settledHostScreenKey","sourceScreenKey","pendingSignal","sourcePairKey","ownerScreenKey","status","clearSignal","resolveBoundaryPortalOwnership","boundaryId","currentScreenKey","handoff","isSettledHostClosingComplete","getLinkKeyFromTag","getPairLink","source","destination","seenScreenKeys","pairKeys","Object","keys","hop","didAdvance","hasPendingNextHop","didHitVisitedScreen","candidatePairKey","candidate","nextHostScreenKey","push"],"sourceRoot":"../../../../../../src","sources":["components/boundary/portal/utils/ownership.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA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,CAACpB,YAAY,CAAC;IACnC;IAEA;EACD;EAEA,IAAI6B,4BAA4B,IAAIX,oBAAoB,KAAKnB,aAAa,EAAE;IAC3EA,aAAa,GAAG,IAAAI,wCAA6B,EAACH,YAAY,CAAC;EAC5D;EAEA,MAAMsB,cAAc,GAAGN,iCAAiC,CAAC;IACxDjB,aAAa;IACbkB,kBAAkB;IAClBC,oBAAoB;IACpBC,eAAe,EAAE,IAAAhB,wCAA6B,EAACH,YAAY;EAC5D,CAAC,CAAC;EAEF,OAAO;IACND,aAAa;IACbC,YAAY;IACZsB,cAAc;IACdC,MAAM,EAAE;EACT,CAAC;AACF,CAAC;AAAC/B,OAAA,CAAAiC,8BAAA,GAAAA,8BAAA","ignoreList":[]}
@@ -1,29 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"names":["shallowEqual","a","b","keys","Object","index","length","key","exports"],"sourceRoot":"../../../../../../src","sources":["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":[]}
@@ -1,25 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"names":["resolveNextVisiblePortalHostName","canSwitchImmediately","isInterpolatorReady","requestedName","shouldTeleport","visibleName","exports"],"sourceRoot":"../../../../../../src","sources":["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":[]}
@@ -1,64 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useRotationActivation = void 0;
7
- var _react = require("react");
8
- var _runtime = require("../../shared/runtime");
9
- const useRotationActivation = ({
10
- runtime,
11
- screenOptions,
12
- gestureCompositionOwner
13
- }) => {
14
- const onTouchesDown = (0, _react.useCallback)((event, stateManager) => {
15
- "worklet";
16
-
17
- const {
18
- participation,
19
- policy
20
- } = (0, _runtime.resolvePinchRuntime)(runtime.get(), screenOptions.get());
21
- if (!participation.canTrackGesture || !policy.enabled) {
22
- stateManager?.fail();
23
- return;
24
- }
25
- if (event.numberOfTouches === 2) {
26
- if (gestureCompositionOwner.get() === null) {
27
- gestureCompositionOwner.set("pinch");
28
- }
29
- stateManager?.activate();
30
- return;
31
- }
32
- if (event.numberOfTouches > 2) {
33
- stateManager?.fail();
34
- }
35
- }, [runtime, screenOptions, gestureCompositionOwner]);
36
- const onTouchesMove = (0, _react.useCallback)((event, stateManager) => {
37
- "worklet";
38
-
39
- const {
40
- participation,
41
- policy
42
- } = (0, _runtime.resolvePinchRuntime)(runtime.get(), screenOptions.get());
43
- if (!participation.canTrackGesture || !policy.enabled) {
44
- stateManager.fail();
45
- return;
46
- }
47
- if (event.numberOfTouches === 2) {
48
- if (gestureCompositionOwner.get() === null) {
49
- gestureCompositionOwner.set("pinch");
50
- }
51
- stateManager.activate();
52
- return;
53
- }
54
- if (event.numberOfTouches > 2) {
55
- stateManager.fail();
56
- }
57
- }, [runtime, screenOptions, gestureCompositionOwner]);
58
- return (0, _react.useMemo)(() => ({
59
- onTouchesDown,
60
- onTouchesMove
61
- }), [onTouchesDown, onTouchesMove]);
62
- };
63
- exports.useRotationActivation = useRotationActivation;
64
- //# sourceMappingURL=use-rotation-activation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_runtime","useRotationActivation","runtime","screenOptions","gestureCompositionOwner","onTouchesDown","useCallback","event","stateManager","participation","policy","resolvePinchRuntime","get","canTrackGesture","enabled","fail","numberOfTouches","set","activate","onTouchesMove","useMemo","exports"],"sourceRoot":"../../../../../../../src","sources":["providers/screen/gestures/rotation/activation/use-rotation-activation.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAOA,IAAAC,QAAA,GAAAD,OAAA;AAYO,MAAME,qBAAqB,GAAGA,CAAC;EACrCC,OAAO;EACPC,aAAa;EACbC;AAC2B,CAAC,KAAK;EACjC,MAAMC,aAAa,GAAG,IAAAC,kBAAW,EAChC,CACCC,KAAwB,EACxBC,YAA6C,KACzC;IACJ,SAAS;;IACT,MAAM;MAAEC,aAAa;MAAEC;IAAO,CAAC,GAAG,IAAAC,4BAAmB,EACpDT,OAAO,CAACU,GAAG,CAAC,CAAC,EACbT,aAAa,CAACS,GAAG,CAAC,CACnB,CAAC;IAED,IAAI,CAACH,aAAa,CAACI,eAAe,IAAI,CAACH,MAAM,CAACI,OAAO,EAAE;MACtDN,YAAY,EAAEO,IAAI,CAAC,CAAC;MACpB;IACD;IAEA,IAAIR,KAAK,CAACS,eAAe,KAAK,CAAC,EAAE;MAChC,IAAIZ,uBAAuB,CAACQ,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;QAC3CR,uBAAuB,CAACa,GAAG,CAAC,OAAO,CAAC;MACrC;MACAT,YAAY,EAAEU,QAAQ,CAAC,CAAC;MACxB;IACD;IAEA,IAAIX,KAAK,CAACS,eAAe,GAAG,CAAC,EAAE;MAC9BR,YAAY,EAAEO,IAAI,CAAC,CAAC;IACrB;EACD,CAAC,EACD,CAACb,OAAO,EAAEC,aAAa,EAAEC,uBAAuB,CACjD,CAAC;EAED,MAAMe,aAAa,GAAG,IAAAb,kBAAW,EAChC,CAACC,KAAwB,EAAEC,YAAiC,KAAK;IAChE,SAAS;;IACT,MAAM;MAAEC,aAAa;MAAEC;IAAO,CAAC,GAAG,IAAAC,4BAAmB,EACpDT,OAAO,CAACU,GAAG,CAAC,CAAC,EACbT,aAAa,CAACS,GAAG,CAAC,CACnB,CAAC;IAED,IAAI,CAACH,aAAa,CAACI,eAAe,IAAI,CAACH,MAAM,CAACI,OAAO,EAAE;MACtDN,YAAY,CAACO,IAAI,CAAC,CAAC;MACnB;IACD;IAEA,IAAIR,KAAK,CAACS,eAAe,KAAK,CAAC,EAAE;MAChC,IAAIZ,uBAAuB,CAACQ,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;QAC3CR,uBAAuB,CAACa,GAAG,CAAC,OAAO,CAAC;MACrC;MACAT,YAAY,CAACU,QAAQ,CAAC,CAAC;MACvB;IACD;IAEA,IAAIX,KAAK,CAACS,eAAe,GAAG,CAAC,EAAE;MAC9BR,YAAY,CAACO,IAAI,CAAC,CAAC;IACpB;EACD,CAAC,EACD,CAACb,OAAO,EAAEC,aAAa,EAAEC,uBAAuB,CACjD,CAAC;EAED,OAAO,IAAAgB,cAAO,EACb,OAAO;IAAEf,aAAa;IAAEc;EAAc,CAAC,CAAC,EACxC,CAACd,aAAa,EAAEc,aAAa,CAC9B,CAAC;AACF,CAAC;AAACE,OAAA,CAAApB,qBAAA,GAAAA,qBAAA","ignoreList":[]}
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.trackRotationGesture = exports.startRotationGesture = void 0;
7
- const startRotationGesture = gestures => {
8
- "worklet";
9
-
10
- gestures.rotation.set(0);
11
- gestures.raw.rotation.set(0);
12
- };
13
- exports.startRotationGesture = startRotationGesture;
14
- const trackRotationGesture = (event, rawEvent, gestures) => {
15
- "worklet";
16
-
17
- gestures.rotation.set(event.rotation);
18
- gestures.raw.rotation.set(rawEvent.rotation);
19
- };
20
- exports.trackRotationGesture = trackRotationGesture;
21
- //# sourceMappingURL=rotation-lifecycle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["startRotationGesture","gestures","rotation","set","raw","exports","trackRotationGesture","event","rawEvent"],"sourceRoot":"../../../../../../../src","sources":["providers/screen/gestures/rotation/behavior/rotation-lifecycle.ts"],"mappings":";;;;;;AAEO,MAAMA,oBAAoB,GAChCC,QAAsD,IAClD;EACJ,SAAS;;EACTA,QAAQ,CAACC,QAAQ,CAACC,GAAG,CAAC,CAAC,CAAC;EACxBF,QAAQ,CAACG,GAAG,CAACF,QAAQ,CAACC,GAAG,CAAC,CAAC,CAAC;AAC7B,CAAC;AAACE,OAAA,CAAAL,oBAAA,GAAAA,oBAAA;AAEK,MAAMM,oBAAoB,GAAGA,CACnCC,KAA2B,EAC3BC,QAA8B,EAC9BP,QAAsD,KAClD;EACJ,SAAS;;EACTA,QAAQ,CAACC,QAAQ,CAACC,GAAG,CAACI,KAAK,CAACL,QAAQ,CAAC;EACrCD,QAAQ,CAACG,GAAG,CAACF,QAAQ,CAACC,GAAG,CAACK,QAAQ,CAACN,QAAQ,CAAC;AAC7C,CAAC;AAACG,OAAA,CAAAC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useRotationBehavior = void 0;
7
- var _react = require("react");
8
- var _runtime = require("../../shared/runtime");
9
- var _rotationLifecycle = require("./rotation-lifecycle");
10
- const useRotationBehavior = (runtime, screenOptions) => {
11
- const onStart = (0, _react.useCallback)(() => {
12
- "worklet";
13
-
14
- const latestRuntime = (0, _runtime.resolvePinchRuntime)(runtime.get(), screenOptions.get());
15
- (0, _rotationLifecycle.startRotationGesture)(latestRuntime.stores.gestures);
16
- }, [runtime, screenOptions]);
17
- const onUpdate = (0, _react.useCallback)(rawEvent => {
18
- "worklet";
19
-
20
- const latestRuntime = (0, _runtime.resolvePinchRuntime)(runtime.get(), screenOptions.get());
21
- (0, _rotationLifecycle.trackRotationGesture)(rawEvent, rawEvent, latestRuntime.stores.gestures);
22
- }, [runtime, screenOptions]);
23
- return (0, _react.useMemo)(() => ({
24
- onStart,
25
- onUpdate
26
- }), [onStart, onUpdate]);
27
- };
28
- exports.useRotationBehavior = useRotationBehavior;
29
- //# sourceMappingURL=use-rotation-behavior.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_runtime","_rotationLifecycle","useRotationBehavior","runtime","screenOptions","onStart","useCallback","latestRuntime","resolvePinchRuntime","get","startRotationGesture","stores","gestures","onUpdate","rawEvent","trackRotationGesture","useMemo","exports"],"sourceRoot":"../../../../../../../src","sources":["providers/screen/gestures/rotation/behavior/use-rotation-behavior.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,QAAA,GAAAD,OAAA;AAMA,IAAAE,kBAAA,GAAAF,OAAA;AAKO,MAAMG,mBAAmB,GAAGA,CAClCC,OAA4C,EAC5CC,aAAwC,KAClB;EACtB,MAAMC,OAAO,GAAG,IAAAC,kBAAW,EAAC,MAAM;IACjC,SAAS;;IACT,MAAMC,aAAa,GAAG,IAAAC,4BAAmB,EACxCL,OAAO,CAACM,GAAG,CAAC,CAAC,EACbL,aAAa,CAACK,GAAG,CAAC,CACnB,CAAC;IACD,IAAAC,uCAAoB,EAACH,aAAa,CAACI,MAAM,CAACC,QAAQ,CAAC;EACpD,CAAC,EAAE,CAACT,OAAO,EAAEC,aAAa,CAAC,CAAC;EAE5B,MAAMS,QAAQ,GAAG,IAAAP,kBAAW,EAC1BQ,QAA8B,IAAK;IACnC,SAAS;;IACT,MAAMP,aAAa,GAAG,IAAAC,4BAAmB,EACxCL,OAAO,CAACM,GAAG,CAAC,CAAC,EACbL,aAAa,CAACK,GAAG,CAAC,CACnB,CAAC;IACD,IAAAM,uCAAoB,EAACD,QAAQ,EAAEA,QAAQ,EAAEP,aAAa,CAACI,MAAM,CAACC,QAAQ,CAAC;EACxE,CAAC,EACD,CAACT,OAAO,EAAEC,aAAa,CACxB,CAAC;EAED,OAAO,IAAAY,cAAO,EACb,OAAO;IACNX,OAAO;IACPQ;EACD,CAAC,CAAC,EACF,CAACR,OAAO,EAAEQ,QAAQ,CACnB,CAAC;AACF,CAAC;AAACI,OAAA,CAAAf,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.useBuildRotationGesture = void 0;
7
- var _react = require("react");
8
- var _reactNativeGestureHandler = require("react-native-gesture-handler");
9
- var _options = require("../../options");
10
- var _useStableRuntimeConfig = require("../hooks/use-stable-runtime-config");
11
- var _useRotationActivation = require("./activation/use-rotation-activation");
12
- var _useRotationBehavior = require("./behavior/use-rotation-behavior");
13
- const useBuildRotationGesture = ({
14
- gestureConfig,
15
- gestureCompositionOwner
16
- }) => {
17
- const {
18
- participation,
19
- pinch: policy
20
- } = gestureConfig;
21
- const screenOptions = (0, _options.useScreenOptionsContext)();
22
- const runtime = (0, _useStableRuntimeConfig.useStableRuntimeConfig)({
23
- participation,
24
- policy
25
- });
26
- const activation = (0, _useRotationActivation.useRotationActivation)({
27
- runtime,
28
- screenOptions,
29
- gestureCompositionOwner
30
- });
31
- const behavior = (0, _useRotationBehavior.useRotationBehavior)(runtime, screenOptions);
32
- const rotationGesture = (0, _react.useMemo)(() => {
33
- return _reactNativeGestureHandler.Gesture.Rotation().enabled(true).manualActivation(true).onTouchesDown(activation.onTouchesDown).onTouchesMove(activation.onTouchesMove).onStart(behavior.onStart).onUpdate(behavior.onUpdate);
34
- }, [activation, behavior]);
35
- return rotationGesture;
36
- };
37
- exports.useBuildRotationGesture = useBuildRotationGesture;
38
- //# sourceMappingURL=use-build-rotation-gesture.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_react","require","_reactNativeGestureHandler","_options","_useStableRuntimeConfig","_useRotationActivation","_useRotationBehavior","useBuildRotationGesture","gestureConfig","gestureCompositionOwner","participation","pinch","policy","screenOptions","useScreenOptionsContext","runtime","useStableRuntimeConfig","activation","useRotationActivation","behavior","useRotationBehavior","rotationGesture","useMemo","Gesture","Rotation","enabled","manualActivation","onTouchesDown","onTouchesMove","onStart","onUpdate","exports"],"sourceRoot":"../../../../../../src","sources":["providers/screen/gestures/rotation/use-build-rotation-gesture.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,0BAAA,GAAAD,OAAA;AAEA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,uBAAA,GAAAH,OAAA;AAMA,IAAAI,sBAAA,GAAAJ,OAAA;AACA,IAAAK,oBAAA,GAAAL,OAAA;AAOO,MAAMM,uBAAuB,GAAGA,CAAC;EACvCC,aAAa;EACbC;AAC6B,CAAC,KAAsB;EACpD,MAAM;IAAEC,aAAa;IAAEC,KAAK,EAAEC;EAAO,CAAC,GAAGJ,aAAa;EACtD,MAAMK,aAAa,GAAG,IAAAC,gCAAuB,EAAC,CAAC;EAE/C,MAAMC,OAAO,GAAG,IAAAC,8CAAsB,EAAC;IACtCN,aAAa;IACbE;EACD,CAAC,CAAC;EAEF,MAAMK,UAAU,GAAG,IAAAC,4CAAqB,EAAC;IACxCH,OAAO;IACPF,aAAa;IACbJ;EACD,CAAC,CAAC;EAEF,MAAMU,QAAQ,GAAG,IAAAC,wCAAmB,EAACL,OAAO,EAAEF,aAAa,CAAC;EAE5D,MAAMQ,eAAe,GAAG,IAAAC,cAAO,EAAC,MAAM;IACrC,OAAOC,kCAAO,CAACC,QAAQ,CAAC,CAAC,CACvBC,OAAO,CAAC,IAAI,CAAC,CACbC,gBAAgB,CAAC,IAAI,CAAC,CACtBC,aAAa,CAACV,UAAU,CAACU,aAAa,CAAC,CACvCC,aAAa,CAACX,UAAU,CAACW,aAAa,CAAC,CACvCC,OAAO,CAACV,QAAQ,CAACU,OAAO,CAAC,CACzBC,QAAQ,CAACX,QAAQ,CAACW,QAAQ,CAAC;EAC9B,CAAC,EAAE,CAACb,UAAU,EAAEE,QAAQ,CAAC,CAAC;EAE1B,OAAOE,eAAe;AACvB,CAAC;AAACU,OAAA,CAAAxB,uBAAA,GAAAA,uBAAA","ignoreList":[]}
@@ -1,32 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.isOpeningBeforeStart = exports.hasOpenTransitionStarted = void 0;
7
- /**
8
- * The "pre-start" window of an opening transition: the screen has committed to
9
- * opening (`entering`) but `transitionProgress` has not yet moved past 0, so no
10
- * transformed frame has been produced yet.
11
- *
12
- * This window is a quarantine, and two source-level guards key off it:
13
- * - the visibility gate keeps the entering screen hidden (it must not be SEEN), and
14
- * - interpolator ownership stays on "current" so the entering screen does not
15
- * DRIVE other screens' styles until its transition is actually live.
16
- *
17
- * Both must agree on when the open transition has started, so the threshold
18
- * lives here in one place rather than being re-derived at each site.
19
- */
20
- const hasOpenTransitionStarted = transitionProgress => {
21
- "worklet";
22
-
23
- return transitionProgress > 0;
24
- };
25
- exports.hasOpenTransitionStarted = hasOpenTransitionStarted;
26
- const isOpeningBeforeStart = (entering, transitionProgress) => {
27
- "worklet";
28
-
29
- return !!entering && !hasOpenTransitionStarted(transitionProgress);
30
- };
31
- exports.isOpeningBeforeStart = isOpeningBeforeStart;
32
- //# sourceMappingURL=opening-phase.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["hasOpenTransitionStarted","transitionProgress","exports","isOpeningBeforeStart","entering"],"sourceRoot":"../../../../../../src","sources":["providers/screen/styles/helpers/opening-phase.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,wBAAwB,GAAIC,kBAA0B,IAAK;EACvE,SAAS;;EACT,OAAOA,kBAAkB,GAAG,CAAC;AAC9B,CAAC;AAACC,OAAA,CAAAF,wBAAA,GAAAA,wBAAA;AAEK,MAAMG,oBAAoB,GAAGA,CACnCC,QAAgB,EAChBH,kBAA0B,KACtB;EACJ,SAAS;;EACT,OAAO,CAAC,CAACG,QAAQ,IAAI,CAACJ,wBAAwB,CAACC,kBAAkB,CAAC;AACnE,CAAC;AAACC,OAAA,CAAAC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- import { useLayoutEffect } from "react";
4
- import { logger } from "../../../utils/logger";
5
- import { TARGET_OUTSIDE_ROOT_WARNING, useBoundaryRootContext } from "../providers/boundary-root.provider";
6
- export const useRegisterTarget = ({
7
- targetAnimatedRef,
8
- preparedStyles,
9
- measurementRef
10
- }) => {
11
- const rootContext = useBoundaryRootContext();
12
- const registerTargetRef = rootContext?.registerTargetRef;
13
- const unregisterTargetRef = rootContext?.unregisterTargetRef;
14
- useLayoutEffect(() => {
15
- if (!registerTargetRef || !unregisterTargetRef) {
16
- if (__DEV__) {
17
- logger.warn(TARGET_OUTSIDE_ROOT_WARNING);
18
- }
19
- return;
20
- }
21
- registerTargetRef(targetAnimatedRef, preparedStyles, measurementRef);
22
- return () => {
23
- unregisterTargetRef(targetAnimatedRef);
24
- };
25
- }, [registerTargetRef, unregisterTargetRef, targetAnimatedRef, preparedStyles, measurementRef]);
26
- };
27
- //# sourceMappingURL=use-register-target.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["useLayoutEffect","logger","TARGET_OUTSIDE_ROOT_WARNING","useBoundaryRootContext","useRegisterTarget","targetAnimatedRef","preparedStyles","measurementRef","rootContext","registerTargetRef","unregisterTargetRef","__DEV__","warn"],"sourceRoot":"../../../../../src","sources":["components/boundary/hooks/use-register-target.ts"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,OAAO;AAGvC,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SACCC,2BAA2B,EAC3BC,sBAAsB,QAChB,qCAAqC;AAQ5C,OAAO,MAAMC,iBAAiB,GAAGA,CAAC;EACjCC,iBAAiB;EACjBC,cAAc;EACdC;AACoB,CAAC,KAAK;EAC1B,MAAMC,WAAW,GAAGL,sBAAsB,CAAC,CAAC;EAC5C,MAAMM,iBAAiB,GAAGD,WAAW,EAAEC,iBAAiB;EACxD,MAAMC,mBAAmB,GAAGF,WAAW,EAAEE,mBAAmB;EAC5DV,eAAe,CAAC,MAAM;IACrB,IAAI,CAACS,iBAAiB,IAAI,CAACC,mBAAmB,EAAE;MAC/C,IAAIC,OAAO,EAAE;QACZV,MAAM,CAACW,IAAI,CAACV,2BAA2B,CAAC;MACzC;MACA;IACD;IAEAO,iBAAiB,CAACJ,iBAAiB,EAAEC,cAAc,EAAEC,cAAc,CAAC;IACpE,OAAO,MAAM;MACZG,mBAAmB,CAACL,iBAAiB,CAAC;IACvC,CAAC;EACF,CAAC,EAAE,CACFI,iBAAiB,EACjBC,mBAAmB,EACnBL,iBAAiB,EACjBC,cAAc,EACdC,cAAc,CACd,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- import { memo } from "react";
4
- import Animated from "react-native-reanimated";
5
- import { scheduleOnUI } from "react-native-worklets";
6
- import { logger } from "../../../../../../utils/logger";
7
- import { isTeleportAvailable, PORTAL_POINTER_EVENTS, NativePortal as TeleportPortal } from "../../../teleport";
8
- import { usePlaceholderStyles } from "../hooks/use-placeholder-styles";
9
- import { jsx as _jsx } from "react/jsx-runtime";
10
- const AnimatedNativePortal = TeleportPortal ? Animated.createAnimatedComponent(TeleportPortal) : null;
11
- export const BoundaryPortalSlot = /*#__PURE__*/memo(function BoundaryPortalSlot({
12
- id,
13
- children,
14
- enabled,
15
- animatedProps,
16
- placeholderRef
17
- }) {
18
- const isPortalEnabled = enabled && isTeleportAvailable;
19
- if (__DEV__ && enabled && !id) {
20
- logger.warnOnce("portal:missing-id", "A boundary portal was rendered without an id; rendering inline.");
21
- }
22
- const {
23
- handleOnLayout,
24
- placeholderStyle
25
- } = usePlaceholderStyles();
26
- if (isPortalEnabled && AnimatedNativePortal) {
27
- return /*#__PURE__*/_jsx(Animated.View, {
28
- ref: placeholderRef,
29
- onLayout: ({
30
- nativeEvent: {
31
- layout
32
- }
33
- }) => scheduleOnUI(handleOnLayout, layout),
34
- style: placeholderStyle,
35
- pointerEvents: PORTAL_POINTER_EVENTS,
36
- collapsable: false,
37
- children: /*#__PURE__*/_jsx(AnimatedNativePortal, {
38
- animatedProps: animatedProps,
39
- name: id,
40
- pointerEvents: PORTAL_POINTER_EVENTS,
41
- children: children
42
- })
43
- });
44
- }
45
- return children;
46
- });
47
- //# sourceMappingURL=portal-slot.js.map