react-native-screen-transitions 3.8.0-beta.1 → 3.9.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (485) hide show
  1. package/lib/commonjs/blank-stack/components/stack-view.js +2 -1
  2. package/lib/commonjs/blank-stack/components/stack-view.js.map +1 -1
  3. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/components/boundary-target.js +21 -8
  4. package/lib/commonjs/shared/components/boundary/components/boundary-target.js.map +1 -0
  5. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/create-boundary-component.js +10 -24
  6. package/lib/commonjs/shared/components/boundary/create-boundary-component.js.map +1 -0
  7. package/lib/commonjs/shared/components/boundary/hooks/use-boundary-presence.js.map +1 -0
  8. package/lib/commonjs/shared/components/boundary/hooks/use-initial-destination-measurement.js +115 -0
  9. package/lib/commonjs/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +1 -0
  10. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.js +4 -5
  11. package/lib/commonjs/shared/components/boundary/hooks/use-initial-source-measurement.js.map +1 -0
  12. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.js +26 -22
  13. package/lib/commonjs/shared/components/boundary/hooks/use-measurer.js.map +1 -0
  14. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-refresh-boundary.js +10 -7
  15. package/lib/commonjs/shared/components/boundary/hooks/use-refresh-boundary.js.map +1 -0
  16. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/index.js +8 -1
  17. package/lib/commonjs/shared/components/boundary/index.js.map +1 -0
  18. package/lib/commonjs/shared/components/boundary/portal/components/host.js +99 -0
  19. package/lib/commonjs/shared/components/boundary/portal/components/host.js.map +1 -0
  20. package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js +68 -0
  21. package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -0
  22. package/lib/commonjs/shared/components/boundary/portal/components/portal-provider.js +17 -0
  23. package/lib/commonjs/shared/components/boundary/portal/components/portal-provider.js.map +1 -0
  24. package/lib/commonjs/shared/components/boundary/portal/components/portal.js +195 -0
  25. package/lib/commonjs/shared/components/boundary/portal/components/portal.js.map +1 -0
  26. package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js +74 -0
  27. package/lib/commonjs/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -0
  28. package/lib/commonjs/shared/components/boundary/portal/index.js +27 -0
  29. package/lib/commonjs/shared/components/boundary/portal/index.js.map +1 -0
  30. package/lib/commonjs/shared/components/boundary/portal/stores/host-bounds.store.js +47 -0
  31. package/lib/commonjs/shared/components/boundary/portal/stores/host-bounds.store.js.map +1 -0
  32. package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js +137 -0
  33. package/lib/commonjs/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -0
  34. package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js +60 -0
  35. package/lib/commonjs/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -0
  36. package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js +40 -0
  37. package/lib/commonjs/shared/components/boundary/portal/utils/attachment.js.map +1 -0
  38. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js +15 -0
  39. package/lib/commonjs/shared/components/boundary/portal/utils/naming.js.map +1 -0
  40. package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js +71 -0
  41. package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js.map +1 -0
  42. package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js +16 -0
  43. package/lib/commonjs/shared/components/boundary/portal/utils/teleport-control.js.map +1 -0
  44. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/providers/boundary-owner.provider.js +26 -25
  45. package/lib/commonjs/shared/components/boundary/providers/boundary-owner.provider.js.map +1 -0
  46. package/lib/commonjs/shared/components/boundary/types.js.map +1 -0
  47. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js +25 -0
  48. package/lib/commonjs/shared/components/boundary/utils/destination-signals.js.map +1 -0
  49. package/lib/commonjs/shared/components/{create-boundary-component → boundary}/utils/measured-bounds.js +19 -9
  50. package/lib/commonjs/shared/components/boundary/utils/measured-bounds.js.map +1 -0
  51. package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js +105 -0
  52. package/lib/commonjs/shared/components/boundary/utils/refresh-signals.js.map +1 -0
  53. package/lib/commonjs/shared/components/boundary/utils/source-signals.js +48 -0
  54. package/lib/commonjs/shared/components/boundary/utils/source-signals.js.map +1 -0
  55. package/lib/commonjs/shared/components/create-transition-aware-component.js +8 -3
  56. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  57. package/lib/commonjs/shared/components/{integrations/masked-view.js → masked-view.js} +2 -2
  58. package/lib/commonjs/shared/components/masked-view.js.map +1 -0
  59. package/lib/commonjs/shared/components/screen-container/layers/content.js +9 -5
  60. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
  61. package/lib/commonjs/shared/configs/presets.js +6 -6
  62. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  63. package/lib/commonjs/shared/index.js +4 -4
  64. package/lib/commonjs/shared/index.js.map +1 -1
  65. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js +4 -2
  66. package/lib/commonjs/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
  67. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js +7 -3
  68. package/lib/commonjs/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
  69. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +8 -1
  70. package/lib/commonjs/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  71. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +21 -6
  72. package/lib/commonjs/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -1
  73. package/lib/commonjs/shared/providers/screen/origin.provider.js +41 -0
  74. package/lib/commonjs/shared/providers/screen/origin.provider.js.map +1 -0
  75. package/lib/commonjs/shared/providers/screen/styles/constants.js +2 -0
  76. package/lib/commonjs/shared/providers/screen/styles/constants.js.map +1 -1
  77. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js +58 -0
  78. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js.map +1 -0
  79. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +7 -0
  80. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
  81. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +2 -1
  82. package/lib/commonjs/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  83. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js +7 -5
  84. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -1
  85. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js +1 -10
  86. package/lib/commonjs/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
  87. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
  88. package/lib/commonjs/shared/stores/bounds/internals/entries.js.map +1 -1
  89. package/lib/commonjs/shared/stores/bounds/internals/links.js +36 -19
  90. package/lib/commonjs/shared/stores/bounds/internals/links.js.map +1 -1
  91. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +6 -4
  92. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  93. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  94. package/lib/commonjs/shared/stores/scroll.store.js +54 -1
  95. package/lib/commonjs/shared/stores/scroll.store.js.map +1 -1
  96. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js +38 -4
  97. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
  98. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js +40 -87
  99. package/lib/commonjs/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  100. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +6 -67
  101. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  102. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +8 -12
  103. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  104. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js +235 -68
  105. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  106. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +74 -4
  107. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  108. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js +5 -9
  109. package/lib/commonjs/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  110. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js +5 -10
  111. package/lib/commonjs/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  112. package/lib/module/blank-stack/components/stack-view.js +3 -2
  113. package/lib/module/blank-stack/components/stack-view.js.map +1 -1
  114. package/lib/module/shared/components/{create-boundary-component → boundary}/components/boundary-target.js +21 -8
  115. package/lib/module/shared/components/boundary/components/boundary-target.js.map +1 -0
  116. package/lib/module/shared/components/{create-boundary-component → boundary}/create-boundary-component.js +11 -25
  117. package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -0
  118. package/lib/module/shared/components/boundary/hooks/use-boundary-presence.js.map +1 -0
  119. package/lib/module/shared/components/boundary/hooks/use-initial-destination-measurement.js +110 -0
  120. package/lib/module/shared/components/boundary/hooks/use-initial-destination-measurement.js.map +1 -0
  121. package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.js +4 -5
  122. package/lib/module/shared/components/boundary/hooks/use-initial-source-measurement.js.map +1 -0
  123. package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.js +27 -23
  124. package/lib/module/shared/components/boundary/hooks/use-measurer.js.map +1 -0
  125. package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-refresh-boundary.js +10 -7
  126. package/lib/module/shared/components/boundary/hooks/use-refresh-boundary.js.map +1 -0
  127. package/lib/module/shared/components/{create-boundary-component → boundary}/index.js +8 -1
  128. package/lib/module/shared/components/boundary/index.js.map +1 -0
  129. package/lib/module/shared/components/boundary/portal/components/host.js +94 -0
  130. package/lib/module/shared/components/boundary/portal/components/host.js.map +1 -0
  131. package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js +63 -0
  132. package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -0
  133. package/lib/module/shared/components/boundary/portal/components/portal-provider.js +13 -0
  134. package/lib/module/shared/components/boundary/portal/components/portal-provider.js.map +1 -0
  135. package/lib/module/shared/components/boundary/portal/components/portal.js +190 -0
  136. package/lib/module/shared/components/boundary/portal/components/portal.js.map +1 -0
  137. package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js +69 -0
  138. package/lib/module/shared/components/boundary/portal/hooks/use-host-measurement.js.map +1 -0
  139. package/lib/module/shared/components/boundary/portal/index.js +6 -0
  140. package/lib/module/shared/components/boundary/portal/index.js.map +1 -0
  141. package/lib/module/shared/components/boundary/portal/stores/host-bounds.store.js +40 -0
  142. package/lib/module/shared/components/boundary/portal/stores/host-bounds.store.js.map +1 -0
  143. package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js +126 -0
  144. package/lib/module/shared/components/boundary/portal/stores/host-registry.store.js.map +1 -0
  145. package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js +53 -0
  146. package/lib/module/shared/components/boundary/portal/stores/portal-boundary-host.store.js.map +1 -0
  147. package/lib/module/shared/components/boundary/portal/utils/attachment.js +35 -0
  148. package/lib/module/shared/components/boundary/portal/utils/attachment.js.map +1 -0
  149. package/lib/module/shared/components/boundary/portal/utils/naming.js +10 -0
  150. package/lib/module/shared/components/boundary/portal/utils/naming.js.map +1 -0
  151. package/lib/module/shared/components/boundary/portal/utils/offset-style.js +66 -0
  152. package/lib/module/shared/components/boundary/portal/utils/offset-style.js.map +1 -0
  153. package/lib/module/shared/components/boundary/portal/utils/teleport-control.js +11 -0
  154. package/lib/module/shared/components/boundary/portal/utils/teleport-control.js.map +1 -0
  155. package/lib/module/shared/components/boundary/providers/boundary-owner.provider.js +60 -0
  156. package/lib/module/shared/components/boundary/providers/boundary-owner.provider.js.map +1 -0
  157. package/lib/module/shared/components/boundary/types.js.map +1 -0
  158. package/lib/module/shared/components/boundary/utils/destination-signals.js +20 -0
  159. package/lib/module/shared/components/boundary/utils/destination-signals.js.map +1 -0
  160. package/lib/module/shared/components/{create-boundary-component → boundary}/utils/measured-bounds.js +16 -7
  161. package/lib/module/shared/components/boundary/utils/measured-bounds.js.map +1 -0
  162. package/lib/module/shared/components/boundary/utils/refresh-signals.js +100 -0
  163. package/lib/module/shared/components/boundary/utils/refresh-signals.js.map +1 -0
  164. package/lib/module/shared/components/boundary/utils/source-signals.js +43 -0
  165. package/lib/module/shared/components/boundary/utils/source-signals.js.map +1 -0
  166. package/lib/module/shared/components/create-transition-aware-component.js +8 -3
  167. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  168. package/lib/module/shared/components/{integrations/masked-view.js → masked-view.js} +2 -2
  169. package/lib/module/shared/components/masked-view.js.map +1 -0
  170. package/lib/module/shared/components/screen-container/layers/content.js +10 -6
  171. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  172. package/lib/module/shared/configs/presets.js +6 -6
  173. package/lib/module/shared/configs/presets.js.map +1 -1
  174. package/lib/module/shared/index.js +2 -2
  175. package/lib/module/shared/index.js.map +1 -1
  176. package/lib/module/shared/providers/helpers/measured-bounds-writes.js +4 -2
  177. package/lib/module/shared/providers/helpers/measured-bounds-writes.js.map +1 -1
  178. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js +8 -4
  179. package/lib/module/shared/providers/screen/descriptors/descriptors.provider.js.map +1 -1
  180. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +8 -1
  181. package/lib/module/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
  182. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js +20 -6
  183. package/lib/module/shared/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -1
  184. package/lib/module/shared/providers/screen/origin.provider.js +33 -0
  185. package/lib/module/shared/providers/screen/origin.provider.js.map +1 -0
  186. package/lib/module/shared/providers/screen/styles/constants.js +2 -0
  187. package/lib/module/shared/providers/screen/styles/constants.js.map +1 -1
  188. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js +53 -0
  189. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.js.map +1 -0
  190. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js +1 -0
  191. package/lib/module/shared/providers/screen/styles/helpers/resolve-slot-styles/index.js.map +1 -1
  192. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js +2 -1
  193. package/lib/module/shared/providers/screen/styles/hooks/use-maybe-block-visibility.js.map +1 -1
  194. package/lib/module/shared/providers/screen/styles/styles.provider.js +7 -5
  195. package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -1
  196. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js +1 -8
  197. package/lib/module/shared/stores/bounds/helpers/link-pairs.helpers.js.map +1 -1
  198. package/lib/module/shared/stores/bounds/index.js.map +1 -1
  199. package/lib/module/shared/stores/bounds/internals/entries.js.map +1 -1
  200. package/lib/module/shared/stores/bounds/internals/links.js +36 -19
  201. package/lib/module/shared/stores/bounds/internals/links.js.map +1 -1
  202. package/lib/module/shared/stores/bounds/internals/resolver.js +6 -4
  203. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  204. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  205. package/lib/module/shared/stores/scroll.store.js +50 -0
  206. package/lib/module/shared/stores/scroll.store.js.map +1 -1
  207. package/lib/module/shared/types/animation.types.js.map +1 -1
  208. package/lib/module/shared/types/bounds.types.js.map +1 -1
  209. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js +36 -3
  210. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -1
  211. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js +42 -89
  212. package/lib/module/shared/utils/bounds/helpers/create-bounds-accessor-core.js.map +1 -1
  213. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +6 -67
  214. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  215. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +8 -13
  216. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  217. package/lib/module/shared/utils/bounds/helpers/styles/composers.js +236 -69
  218. package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -1
  219. package/lib/module/shared/utils/bounds/helpers/styles/compute.js +74 -4
  220. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  221. package/lib/module/shared/utils/bounds/navigation/reveal/build.js +5 -9
  222. package/lib/module/shared/utils/bounds/navigation/reveal/build.js.map +1 -1
  223. package/lib/module/shared/utils/bounds/navigation/zoom/build.js +5 -10
  224. package/lib/module/shared/utils/bounds/navigation/zoom/build.js.map +1 -1
  225. package/lib/typescript/blank-stack/components/stack-view.d.ts.map +1 -1
  226. package/lib/typescript/shared/components/boundary/components/boundary-target.d.ts.map +1 -0
  227. package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts.map +1 -0
  228. package/lib/typescript/shared/components/boundary/hooks/use-boundary-presence.d.ts.map +1 -0
  229. package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-initial-destination-measurement.d.ts +1 -4
  230. package/lib/typescript/shared/components/boundary/hooks/use-initial-destination-measurement.d.ts.map +1 -0
  231. package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.d.ts +0 -2
  232. package/lib/typescript/shared/components/boundary/hooks/use-initial-source-measurement.d.ts.map +1 -0
  233. package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.d.ts +4 -2
  234. package/lib/typescript/shared/components/boundary/hooks/use-measurer.d.ts.map +1 -0
  235. package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts +10 -0
  236. package/lib/typescript/shared/components/boundary/hooks/use-refresh-boundary.d.ts.map +1 -0
  237. package/lib/typescript/shared/components/{create-boundary-component → boundary}/index.d.ts +8 -2
  238. package/lib/typescript/shared/components/boundary/index.d.ts.map +1 -0
  239. package/lib/typescript/shared/components/boundary/portal/components/host.d.ts +7 -0
  240. package/lib/typescript/shared/components/boundary/portal/components/host.d.ts.map +1 -0
  241. package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts +9 -0
  242. package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map +1 -0
  243. package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts +4 -0
  244. package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts.map +1 -0
  245. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts +19 -0
  246. package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts.map +1 -0
  247. package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts +13 -0
  248. package/lib/typescript/shared/components/boundary/portal/hooks/use-host-measurement.d.ts.map +1 -0
  249. package/lib/typescript/shared/components/boundary/portal/index.d.ts +4 -0
  250. package/lib/typescript/shared/components/boundary/portal/index.d.ts.map +1 -0
  251. package/lib/typescript/shared/components/boundary/portal/stores/host-bounds.store.d.ts +9 -0
  252. package/lib/typescript/shared/components/boundary/portal/stores/host-bounds.store.d.ts.map +1 -0
  253. package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts +19 -0
  254. package/lib/typescript/shared/components/boundary/portal/stores/host-registry.store.d.ts.map +1 -0
  255. package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts +11 -0
  256. package/lib/typescript/shared/components/boundary/portal/stores/portal-boundary-host.store.d.ts.map +1 -0
  257. package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts +21 -0
  258. package/lib/typescript/shared/components/boundary/portal/utils/attachment.d.ts.map +1 -0
  259. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts +3 -0
  260. package/lib/typescript/shared/components/boundary/portal/utils/naming.d.ts.map +1 -0
  261. package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts +37 -0
  262. package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts.map +1 -0
  263. package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts +3 -0
  264. package/lib/typescript/shared/components/boundary/portal/utils/teleport-control.d.ts.map +1 -0
  265. package/lib/typescript/shared/components/{create-boundary-component → boundary}/providers/boundary-owner.provider.d.ts +14 -6
  266. package/lib/typescript/shared/components/boundary/providers/boundary-owner.provider.d.ts.map +1 -0
  267. package/lib/typescript/shared/components/boundary/types.d.ts +78 -0
  268. package/lib/typescript/shared/components/boundary/types.d.ts.map +1 -0
  269. package/lib/typescript/shared/components/{create-boundary-component → boundary}/utils/destination-signals.d.ts +2 -3
  270. package/lib/typescript/shared/components/boundary/utils/destination-signals.d.ts.map +1 -0
  271. package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts +12 -0
  272. package/lib/typescript/shared/components/boundary/utils/measured-bounds.d.ts.map +1 -0
  273. package/lib/typescript/shared/components/{create-boundary-component → boundary}/utils/refresh-signals.d.ts +4 -3
  274. package/lib/typescript/shared/components/boundary/utils/refresh-signals.d.ts.map +1 -0
  275. package/lib/typescript/shared/components/{create-boundary-component → boundary}/utils/source-signals.d.ts +1 -2
  276. package/lib/typescript/shared/components/boundary/utils/source-signals.d.ts.map +1 -0
  277. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  278. package/lib/typescript/shared/components/masked-view.d.ts.map +1 -0
  279. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
  280. package/lib/typescript/shared/configs/presets.d.ts.map +1 -1
  281. package/lib/typescript/shared/index.d.ts +19 -17
  282. package/lib/typescript/shared/index.d.ts.map +1 -1
  283. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts +3 -1
  284. package/lib/typescript/shared/providers/helpers/measured-bounds-writes.d.ts.map +1 -1
  285. package/lib/typescript/shared/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
  286. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +6 -1
  287. package/lib/typescript/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
  288. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts +9 -3
  289. package/lib/typescript/shared/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts.map +1 -1
  290. package/lib/typescript/shared/providers/screen/origin.provider.d.ts +11 -0
  291. package/lib/typescript/shared/providers/screen/origin.provider.d.ts.map +1 -0
  292. package/lib/typescript/shared/providers/screen/styles/constants.d.ts.map +1 -1
  293. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.d.ts +3 -0
  294. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.d.ts.map +1 -0
  295. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts +1 -0
  296. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-slot-styles/index.d.ts.map +1 -1
  297. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +1 -0
  298. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts.map +1 -1
  299. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts +1 -0
  300. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -1
  301. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts +1 -3
  302. package/lib/typescript/shared/stores/bounds/helpers/link-pairs.helpers.d.ts.map +1 -1
  303. package/lib/typescript/shared/stores/bounds/index.d.ts +1 -1
  304. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
  305. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts +2 -2
  306. package/lib/typescript/shared/stores/bounds/internals/entries.d.ts.map +1 -1
  307. package/lib/typescript/shared/stores/bounds/internals/links.d.ts +2 -2
  308. package/lib/typescript/shared/stores/bounds/internals/links.d.ts.map +1 -1
  309. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  310. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +4 -2
  311. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  312. package/lib/typescript/shared/stores/bounds/types.d.ts +47 -12
  313. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  314. package/lib/typescript/shared/stores/scroll.store.d.ts +12 -1
  315. package/lib/typescript/shared/stores/scroll.store.d.ts.map +1 -1
  316. package/lib/typescript/shared/types/animation.types.d.ts +13 -2
  317. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  318. package/lib/typescript/shared/types/bounds.types.d.ts +10 -40
  319. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  320. package/lib/typescript/shared/types/index.d.ts +2 -2
  321. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  322. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +2 -1
  323. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -1
  324. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts +7 -11
  325. package/lib/typescript/shared/utils/bounds/helpers/create-bounds-accessor-core.d.ts.map +1 -1
  326. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +0 -3
  327. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  328. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +7 -3
  329. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  330. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts +3 -0
  331. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -1
  332. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts +1 -1
  333. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
  334. package/lib/typescript/shared/utils/bounds/navigation/reveal/build.d.ts.map +1 -1
  335. package/lib/typescript/shared/utils/bounds/navigation/zoom/build.d.ts.map +1 -1
  336. package/lib/typescript/shared/utils/bounds/types/options.d.ts +93 -6
  337. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  338. package/package.json +3 -2
  339. package/src/blank-stack/components/stack-view.tsx +4 -3
  340. package/src/shared/components/{create-boundary-component → boundary}/components/boundary-target.tsx +28 -11
  341. package/src/shared/components/{create-boundary-component → boundary}/create-boundary-component.tsx +20 -31
  342. package/src/shared/components/boundary/hooks/use-initial-destination-measurement.ts +156 -0
  343. package/src/shared/components/{create-boundary-component → boundary}/hooks/use-initial-source-measurement.ts +5 -14
  344. package/src/shared/components/{create-boundary-component → boundary}/hooks/use-measurer.ts +42 -46
  345. package/src/shared/components/{create-boundary-component → boundary}/hooks/use-refresh-boundary.ts +16 -11
  346. package/src/shared/components/{create-boundary-component → boundary}/index.tsx +12 -0
  347. package/src/shared/components/boundary/portal/components/host.tsx +114 -0
  348. package/src/shared/components/boundary/portal/components/portal-boundary-host.tsx +90 -0
  349. package/src/shared/components/boundary/portal/components/portal-provider.tsx +10 -0
  350. package/src/shared/components/boundary/portal/components/portal.tsx +278 -0
  351. package/src/shared/components/boundary/portal/hooks/use-host-measurement.ts +102 -0
  352. package/src/shared/components/boundary/portal/index.ts +3 -0
  353. package/src/shared/components/boundary/portal/stores/host-bounds.store.ts +45 -0
  354. package/src/shared/components/boundary/portal/stores/host-registry.store.ts +182 -0
  355. package/src/shared/components/boundary/portal/stores/portal-boundary-host.store.ts +91 -0
  356. package/src/shared/components/boundary/portal/utils/attachment.ts +48 -0
  357. package/src/shared/components/boundary/portal/utils/naming.ts +10 -0
  358. package/src/shared/components/boundary/portal/utils/offset-style.ts +171 -0
  359. package/src/shared/components/boundary/portal/utils/teleport-control.ts +13 -0
  360. package/src/shared/components/{create-boundary-component → boundary}/providers/boundary-owner.provider.tsx +41 -33
  361. package/src/shared/components/boundary/types.ts +92 -0
  362. package/src/shared/components/boundary/utils/destination-signals.ts +31 -0
  363. package/src/shared/components/{create-boundary-component → boundary}/utils/measured-bounds.ts +34 -11
  364. package/src/shared/components/boundary/utils/refresh-signals.ts +175 -0
  365. package/src/shared/components/boundary/utils/source-signals.ts +63 -0
  366. package/src/shared/components/create-transition-aware-component.tsx +8 -3
  367. package/src/shared/components/{integrations/masked-view.tsx → masked-view.tsx} +2 -2
  368. package/src/shared/components/screen-container/layers/content.tsx +12 -7
  369. package/src/shared/configs/presets.ts +2 -6
  370. package/src/shared/index.ts +13 -5
  371. package/src/shared/providers/helpers/measured-bounds-writes.ts +11 -1
  372. package/src/shared/providers/screen/descriptors/descriptors.provider.tsx +7 -3
  373. package/src/shared/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +16 -0
  374. package/src/shared/providers/screen/descriptors/helpers/get-ancestor-keys.ts +31 -6
  375. package/src/shared/providers/screen/origin.provider.tsx +38 -0
  376. package/src/shared/providers/screen/styles/constants.ts +2 -0
  377. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/are-resettable-states-equal.ts +74 -0
  378. package/src/shared/providers/screen/styles/helpers/resolve-slot-styles/index.ts +1 -0
  379. package/src/shared/providers/screen/styles/hooks/use-maybe-block-visibility.tsx +1 -0
  380. package/src/shared/providers/screen/styles/styles.provider.tsx +5 -3
  381. package/src/shared/stores/bounds/helpers/link-pairs.helpers.ts +1 -10
  382. package/src/shared/stores/bounds/index.ts +2 -4
  383. package/src/shared/stores/bounds/internals/entries.ts +4 -4
  384. package/src/shared/stores/bounds/internals/links.ts +52 -18
  385. package/src/shared/stores/bounds/internals/resolver.ts +5 -3
  386. package/src/shared/stores/bounds/internals/state.ts +5 -2
  387. package/src/shared/stores/bounds/types.ts +59 -15
  388. package/src/shared/stores/scroll.store.ts +68 -0
  389. package/src/shared/types/animation.types.ts +17 -2
  390. package/src/shared/types/bounds.types.ts +22 -60
  391. package/src/shared/types/index.ts +5 -0
  392. package/src/shared/utils/bounds/helpers/create-bound-tag.ts +46 -4
  393. package/src/shared/utils/bounds/helpers/create-bounds-accessor-core.ts +65 -116
  394. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +10 -80
  395. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +10 -13
  396. package/src/shared/utils/bounds/helpers/styles/composers.ts +269 -46
  397. package/src/shared/utils/bounds/helpers/styles/compute.ts +134 -2
  398. package/src/shared/utils/bounds/navigation/reveal/build.ts +5 -7
  399. package/src/shared/utils/bounds/navigation/zoom/build.ts +5 -8
  400. package/src/shared/utils/bounds/types/options.ts +105 -6
  401. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +0 -1
  402. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +0 -1
  403. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +0 -1
  404. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +0 -99
  405. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +0 -1
  406. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +0 -1
  407. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +0 -1
  408. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +0 -1
  409. package/lib/commonjs/shared/components/create-boundary-component/index.js.map +0 -1
  410. package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +0 -1
  411. package/lib/commonjs/shared/components/create-boundary-component/types.js.map +0 -1
  412. package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js +0 -75
  413. package/lib/commonjs/shared/components/create-boundary-component/utils/destination-signals.js.map +0 -1
  414. package/lib/commonjs/shared/components/create-boundary-component/utils/measured-bounds.js.map +0 -1
  415. package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js +0 -103
  416. package/lib/commonjs/shared/components/create-boundary-component/utils/refresh-signals.js.map +0 -1
  417. package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js +0 -52
  418. package/lib/commonjs/shared/components/create-boundary-component/utils/source-signals.js.map +0 -1
  419. package/lib/commonjs/shared/components/integrations/masked-view.js.map +0 -1
  420. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +0 -68
  421. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +0 -1
  422. package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js +0 -30
  423. package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +0 -1
  424. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +0 -1
  425. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +0 -1
  426. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +0 -1
  427. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js +0 -94
  428. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.js.map +0 -1
  429. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-source-measurement.js.map +0 -1
  430. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +0 -1
  431. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +0 -1
  432. package/lib/module/shared/components/create-boundary-component/index.js.map +0 -1
  433. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js +0 -60
  434. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +0 -1
  435. package/lib/module/shared/components/create-boundary-component/types.js.map +0 -1
  436. package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js +0 -70
  437. package/lib/module/shared/components/create-boundary-component/utils/destination-signals.js.map +0 -1
  438. package/lib/module/shared/components/create-boundary-component/utils/measured-bounds.js.map +0 -1
  439. package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js +0 -98
  440. package/lib/module/shared/components/create-boundary-component/utils/refresh-signals.js.map +0 -1
  441. package/lib/module/shared/components/create-boundary-component/utils/source-signals.js +0 -47
  442. package/lib/module/shared/components/create-boundary-component/utils/source-signals.js.map +0 -1
  443. package/lib/module/shared/components/integrations/masked-view.js.map +0 -1
  444. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +0 -63
  445. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +0 -1
  446. package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js +0 -26
  447. package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +0 -1
  448. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +0 -1
  449. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +0 -1
  450. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +0 -1
  451. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.d.ts.map +0 -1
  452. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-source-measurement.d.ts.map +0 -1
  453. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +0 -1
  454. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts +0 -14
  455. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +0 -1
  456. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +0 -1
  457. package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts.map +0 -1
  458. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +0 -37
  459. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +0 -1
  460. package/lib/typescript/shared/components/create-boundary-component/utils/destination-signals.d.ts.map +0 -1
  461. package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts +0 -8
  462. package/lib/typescript/shared/components/create-boundary-component/utils/measured-bounds.d.ts.map +0 -1
  463. package/lib/typescript/shared/components/create-boundary-component/utils/refresh-signals.d.ts.map +0 -1
  464. package/lib/typescript/shared/components/create-boundary-component/utils/source-signals.d.ts.map +0 -1
  465. package/lib/typescript/shared/components/integrations/masked-view.d.ts.map +0 -1
  466. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts +0 -14
  467. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +0 -1
  468. package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts +0 -17
  469. package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts.map +0 -1
  470. package/src/shared/components/create-boundary-component/hooks/use-initial-destination-measurement.ts +0 -130
  471. package/src/shared/components/create-boundary-component/types.ts +0 -48
  472. package/src/shared/components/create-boundary-component/utils/destination-signals.ts +0 -129
  473. package/src/shared/components/create-boundary-component/utils/refresh-signals.ts +0 -164
  474. package/src/shared/components/create-boundary-component/utils/source-signals.ts +0 -72
  475. package/src/shared/utils/bounds/helpers/create-interpolators.ts +0 -117
  476. package/src/shared/utils/bounds/helpers/styles/interpolate-link-style.ts +0 -43
  477. /package/lib/commonjs/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.js +0 -0
  478. /package/lib/commonjs/shared/components/{create-boundary-component → boundary}/types.js +0 -0
  479. /package/lib/module/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.js +0 -0
  480. /package/lib/module/shared/components/{create-boundary-component → boundary}/types.js +0 -0
  481. /package/lib/typescript/shared/components/{create-boundary-component → boundary}/components/boundary-target.d.ts +0 -0
  482. /package/lib/typescript/shared/components/{create-boundary-component → boundary}/create-boundary-component.d.ts +0 -0
  483. /package/lib/typescript/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.d.ts +0 -0
  484. /package/lib/typescript/shared/components/{integrations/masked-view.d.ts → masked-view.d.ts} +0 -0
  485. /package/src/shared/components/{create-boundary-component → boundary}/hooks/use-boundary-presence.ts +0 -0
@@ -32,6 +32,56 @@ const hasMetadataWriters = routeKey => {
32
32
  const clearMetadataWriters = routeKey => {
33
33
  delete metadataWriters[routeKey];
34
34
  };
35
+ export const cloneScrollMetadataState = scroll => {
36
+ "worklet";
37
+
38
+ if (!scroll) {
39
+ return null;
40
+ }
41
+ return {
42
+ vertical: scroll.vertical ? {
43
+ offset: scroll.vertical.offset,
44
+ contentSize: scroll.vertical.contentSize,
45
+ layoutSize: scroll.vertical.layoutSize,
46
+ isTouched: scroll.vertical.isTouched
47
+ } : null,
48
+ horizontal: scroll.horizontal ? {
49
+ offset: scroll.horizontal.offset,
50
+ contentSize: scroll.horizontal.contentSize,
51
+ layoutSize: scroll.horizontal.layoutSize,
52
+ isTouched: scroll.horizontal.isTouched
53
+ } : null
54
+ };
55
+ };
56
+
57
+ /**
58
+ * Offset clamped to the axis layout range, so iOS rubber-band overscroll never
59
+ * leaks into coordinate-space deltas. Returns null when the axis is untracked.
60
+ */
61
+ export const clampScrollAxisOffset = axisState => {
62
+ "worklet";
63
+
64
+ if (!axisState) {
65
+ return null;
66
+ }
67
+ const maxOffset = Math.max(0, axisState.contentSize - axisState.layoutSize);
68
+ return Math.min(Math.max(axisState.offset, 0), maxOffset);
69
+ };
70
+
71
+ /**
72
+ * Clamped scroll travel between a captured snapshot and the current state on
73
+ * one axis. Returns 0 when either side does not track the axis.
74
+ */
75
+ export const getClampedScrollAxisDelta = (current, captured, axis) => {
76
+ "worklet";
77
+
78
+ const currentOffset = clampScrollAxisOffset(current?.[axis]);
79
+ const capturedOffset = clampScrollAxisOffset(captured?.[axis]);
80
+ if (currentOffset === null || capturedOffset === null) {
81
+ return 0;
82
+ }
83
+ return currentOffset - capturedOffset;
84
+ };
35
85
 
36
86
  /**
37
87
  * Route-keyed scroll geometry used by gesture activation and bounds measurement.
@@ -1 +1 @@
1
- {"version":3,"names":["cancelAnimation","makeMutable","createStore","metadataWriters","nextMetadataWriterId","createMetadataWriterId","claimMetadataWriter","routeKey","axis","writerId","writers","releaseMetadataWriter","vertical","horizontal","hasMetadataWriters","Boolean","clearMetadataWriters","scrollStore","createBag","coordination","metadata","disposeBag","bag","ScrollStore","clearBag"],"sourceRoot":"../../../../src","sources":["shared/stores/scroll.store.ts"],"mappings":";;AAAA,SACCA,eAAe,EACfC,WAAW,QAEL,yBAAyB;AAOhC,SAASC,WAAW,QAAQ,uBAAuB;AAOnD,MAAMC,eAGL,GAAG,CAAC,CAAC;AAEN,IAAIC,oBAAoB,GAAG,CAAC;AAE5B,MAAMC,sBAAsB,GAAGA,CAAA,KAAM;EACpCD,oBAAoB,IAAI,CAAC;EACzB,OAAO,mBAAmBA,oBAAoB,EAAE;AACjD,CAAC;AAED,MAAME,mBAAmB,GAAGA,CAC3BC,QAAmB,EACnBC,IAAuB,EACvBC,QAAgB,KACH;EACb,MAAMC,OAAO,GAAGP,eAAe,CAACI,QAAQ,CAAC,IAAI,CAAC,CAAC;EAC/CJ,eAAe,CAACI,QAAQ,CAAC,GAAGG,OAAO;EAEnC,IAAI,CAACA,OAAO,CAACF,IAAI,CAAC,EAAE;IACnBE,OAAO,CAACF,IAAI,CAAC,GAAGC,QAAQ;EACzB;EAEA,OAAOC,OAAO,CAACF,IAAI,CAAC,KAAKC,QAAQ;AAClC,CAAC;AAED,MAAME,qBAAqB,GAAGA,CAC7BJ,QAAmB,EACnBC,IAAuB,EACvBC,QAAgB,KAC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"version":3,"names":["cancelAnimation","makeMutable","createStore","metadataWriters","nextMetadataWriterId","createMetadataWriterId","claimMetadataWriter","routeKey","axis","writerId","writers","releaseMetadataWriter","vertical","horizontal","hasMetadataWriters","Boolean","clearMetadataWriters","cloneScrollMetadataState","scroll","offset","contentSize","layoutSize","isTouched","clampScrollAxisOffset","axisState","maxOffset","Math","max","min","getClampedScrollAxisDelta","current","captured","currentOffset","capturedOffset","scrollStore","createBag","coordination","metadata","disposeBag","bag","ScrollStore","clearBag"],"sourceRoot":"../../../../src","sources":["shared/stores/scroll.store.ts"],"mappings":";;AAAA,SACCA,eAAe,EACfC,WAAW,QAEL,yBAAyB;AAQhC,SAASC,WAAW,QAAQ,uBAAuB;AAOnD,MAAMC,eAGL,GAAG,CAAC,CAAC;AAEN,IAAIC,oBAAoB,GAAG,CAAC;AAE5B,MAAMC,sBAAsB,GAAGA,CAAA,KAAM;EACpCD,oBAAoB,IAAI,CAAC;EACzB,OAAO,mBAAmBA,oBAAoB,EAAE;AACjD,CAAC;AAED,MAAME,mBAAmB,GAAGA,CAC3BC,QAAmB,EACnBC,IAAuB,EACvBC,QAAgB,KACH;EACb,MAAMC,OAAO,GAAGP,eAAe,CAACI,QAAQ,CAAC,IAAI,CAAC,CAAC;EAC/CJ,eAAe,CAACI,QAAQ,CAAC,GAAGG,OAAO;EAEnC,IAAI,CAACA,OAAO,CAACF,IAAI,CAAC,EAAE;IACnBE,OAAO,CAACF,IAAI,CAAC,GAAGC,QAAQ;EACzB;EAEA,OAAOC,OAAO,CAACF,IAAI,CAAC,KAAKC,QAAQ;AAClC,CAAC;AAED,MAAME,qBAAqB,GAAGA,CAC7BJ,QAAmB,EACnBC,IAAuB,EACvBC,QAAgB,KACH;EACb,MAAMC,OAAO,GAAGP,eAAe,CAACI,QAAQ,CAAC;EACzC,IAAI,CAACG,OAAO,IAAIA,OAAO,CAACF,IAAI,CAAC,KAAKC,QAAQ,EAAE,OAAO,KAAK;EAExD,OAAOC,OAAO,CAACF,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,QAAQ,CAAClC,QAAQ,CAAC;EAC/B;AACD,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID"],"sourceRoot":"../../../../src","sources":["shared/types/animation.types.ts"],"mappings":";;AAGA,SACCA,kCAAkC,EAClCC,gCAAgC,QAC1B,cAAc;;AAOrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAmQA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;;AAgBA;AACA;AACA;;AAsBA;AACA;AACA;;AAGA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID"],"sourceRoot":"../../../../src","sources":["shared/types/animation.types.ts"],"mappings":";;AAGA,SACCA,kCAAkC,EAClCC,gCAAgC,QAC1B,cAAc;;AAOrB;AACA;AACA;AACA;AACA;AACA;AACA;;AAmQA;AACA;AACA;AACA;;AAKA;AACA;AACA;AACA;AACA;AACA;;AAyBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;;AAMA;AACA;AACA;AACA;;AAgBA;AACA;AACA;;AAsBA;AACA;AACA;;AAGA;AACA;AACA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID"],"sourceRoot":"../../../../src","sources":["shared/types/bounds.types.ts"],"mappings":";;AACA,SACCA,kCAAkC,EAClCC,gCAAgC,QAC1B,cAAc;;AAcrB;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID"],"sourceRoot":"../../../../src","sources":["shared/types/bounds.types.ts"],"mappings":";;AACA,SACCA,kCAAkC,EAClCC,gCAAgC,QAC1B,cAAc;;AAoBrB;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -1,5 +1,34 @@
1
1
  "use strict";
2
2
 
3
+ const splitBoundTag = id => {
4
+ "worklet";
5
+
6
+ const normalizedId = String(id);
7
+ const separatorIndex = normalizedId.indexOf(":");
8
+ if (separatorIndex <= 0 || separatorIndex >= normalizedId.length - 1) {
9
+ return {
10
+ id
11
+ };
12
+ }
13
+ return {
14
+ group: normalizedId.slice(0, separatorIndex),
15
+ id: normalizedId.slice(separatorIndex + 1)
16
+ };
17
+ };
18
+ export const normalizeBoundIdentity = (identity, fallbackGroup) => {
19
+ "worklet";
20
+
21
+ const source = typeof identity === "object" ? identity : {
22
+ id: identity
23
+ };
24
+ const parsed = splitBoundTag(source.id);
25
+ const group = source.group || parsed.group || fallbackGroup;
26
+ return {
27
+ id: parsed.id,
28
+ group
29
+ };
30
+ };
31
+
3
32
  /**
4
33
  * Creates a bound tag by formatting the given id and optional group
5
34
  * into a `group:id` string. If no group is provided, returns just the id.
@@ -11,10 +40,14 @@ export const createBoundTag = ({
11
40
  "worklet";
12
41
 
13
42
  if (id == null || id === "") return undefined;
14
- const normalizedId = String(id);
15
- if (!group) {
43
+ const identity = normalizeBoundIdentity({
44
+ id,
45
+ group
46
+ });
47
+ const normalizedId = String(identity.id);
48
+ if (!identity.group) {
16
49
  return normalizedId;
17
50
  }
18
- return `${group}:${normalizedId}`;
51
+ return `${identity.group}:${normalizedId}`;
19
52
  };
20
53
  //# sourceMappingURL=create-bound-tag.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createBoundTag","id","group","undefined","normalizedId","String"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bound-tag.ts"],"mappings":";;AAOA;AACA;AACA;AACA;AACA,OAAO,MAAMA,cAAc,GAAGA,CAAC;EAC9BC,EAAE;EACFC;AACqB,CAAC,KAAyB;EAC/C,SAAS;;EAET,IAAID,EAAE,IAAI,IAAI,IAAIA,EAAE,KAAK,EAAE,EAAE,OAAOE,SAAS;EAE7C,MAAMC,YAAY,GAAGC,MAAM,CAACJ,EAAE,CAAC;EAE/B,IAAI,CAACC,KAAK,EAAE;IACX,OAAOE,YAAY;EACpB;EAEA,OAAO,GAAGF,KAAK,IAAIE,YAAY,EAAE;AAClC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["splitBoundTag","id","normalizedId","String","separatorIndex","indexOf","length","group","slice","normalizeBoundIdentity","identity","fallbackGroup","source","parsed","createBoundTag","undefined"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bound-tag.ts"],"mappings":";;AAWA,MAAMA,aAAa,GAAIC,EAAW,IAAqB;EACtD,SAAS;;EAET,MAAMC,YAAY,GAAGC,MAAM,CAACF,EAAE,CAAC;EAC/B,MAAMG,cAAc,GAAGF,YAAY,CAACG,OAAO,CAAC,GAAG,CAAC;EAEhD,IAAID,cAAc,IAAI,CAAC,IAAIA,cAAc,IAAIF,YAAY,CAACI,MAAM,GAAG,CAAC,EAAE;IACrE,OAAO;MAAEL;IAAG,CAAC;EACd;EAEA,OAAO;IACNM,KAAK,EAAEL,YAAY,CAACM,KAAK,CAAC,CAAC,EAAEJ,cAAc,CAAC;IAC5CH,EAAE,EAAEC,YAAY,CAACM,KAAK,CAACJ,cAAc,GAAG,CAAC;EAC1C,CAAC;AACF,CAAC;AAED,OAAO,MAAMK,sBAAsB,GAAGA,CACrCC,QAA6B,EAC7BC,aAAsB,KACF;EACpB,SAAS;;EAET,MAAMC,MAAM,GACX,OAAOF,QAAQ,KAAK,QAAQ,GACzBA,QAAQ,GACP;IACDT,EAAE,EAAES;EACL,CAA2B;EAC9B,MAAMG,MAAM,GAAGb,aAAa,CAACY,MAAM,CAACX,EAAE,CAAC;EACvC,MAAMM,KAAK,GAAGK,MAAM,CAACL,KAAK,IAAIM,MAAM,CAACN,KAAK,IAAII,aAAa;EAE3D,OAAO;IACNV,EAAE,EAAEY,MAAM,CAACZ,EAAE;IACbM;EACD,CAAC;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA,OAAO,MAAMO,cAAc,GAAGA,CAAC;EAC9Bb,EAAE;EACFM;AACqB,CAAC,KAAyB;EAC/C,SAAS;;EAET,IAAIN,EAAE,IAAI,IAAI,IAAIA,EAAE,KAAK,EAAE,EAAE,OAAOc,SAAS;EAE7C,MAAML,QAAQ,GAAGD,sBAAsB,CAAC;IAAER,EAAE;IAAEM;EAAM,CAAC,CAAC;EACtD,MAAML,YAAY,GAAGC,MAAM,CAACO,QAAQ,CAACT,EAAE,CAAC;EAExC,IAAI,CAACS,QAAQ,CAACH,KAAK,EAAE;IACpB,OAAOL,YAAY;EACpB;EAEA,OAAO,GAAGQ,QAAQ,CAACH,KAAK,IAAIL,YAAY,EAAE;AAC3C,CAAC","ignoreList":[]}
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
 
3
- import { createBoundTag } from "./create-bound-tag";
4
- import { createInterpolators } from "./create-interpolators";
3
+ import { createBoundTag, normalizeBoundIdentity } from "./create-bound-tag";
5
4
  import { createLinkAccessor } from "./create-link-accessor";
6
- import { prepareBoundStyles } from "./prepare-bound-styles";
5
+ import { prepareBoundStyles, syncActiveGroupId } from "./prepare-bound-styles";
7
6
  const createBoundsAccessorParts = ({
8
7
  getProps,
9
8
  extendResult
@@ -11,117 +10,71 @@ const createBoundsAccessorParts = ({
11
10
  "worklet";
12
11
 
13
12
  const {
14
- getMeasured,
15
- getSnapshot,
16
13
  getLink
17
14
  } = createLinkAccessor(getProps);
18
- const {
19
- interpolateStyle,
20
- interpolateBounds
21
- } = createInterpolators({
22
- getProps,
23
- getLink
24
- });
25
- const computeBounds = params => {
15
+ const createScopedBounds = identity => {
26
16
  "worklet";
27
17
 
28
18
  const props = getProps();
29
- const options = params ?? {
30
- id: ""
31
- };
32
- const tag = createBoundTag({
33
- id: options.id,
34
- group: options.group
35
- });
36
- const computed = prepareBoundStyles({
19
+ const normalizedIdentity = normalizeBoundIdentity(identity);
20
+ const tag = createBoundTag(normalizedIdentity);
21
+ syncActiveGroupId({
37
22
  props,
38
- options,
39
- syncGroupActiveId: true
23
+ id: normalizedIdentity.id,
24
+ group: normalizedIdentity.group
40
25
  });
41
- const scopedTag = tag ?? "";
42
- const target = Object.isExtensible(computed) ? computed : {
43
- ...computed
44
- };
45
- Object.defineProperties(target, {
46
- getMeasured: {
47
- value: key => {
48
- "worklet";
26
+ const scoped = {
27
+ styles: options => {
28
+ "worklet";
49
29
 
50
- return getMeasured(scopedTag, key);
51
- },
52
- enumerable: false,
53
- configurable: true
30
+ return prepareBoundStyles({
31
+ props,
32
+ options: {
33
+ ...options,
34
+ id: normalizedIdentity.id,
35
+ group: normalizedIdentity.group
36
+ }
37
+ });
54
38
  },
55
- getSnapshot: {
56
- value: key => {
57
- "worklet";
39
+ math: options => {
40
+ "worklet";
58
41
 
59
- return getSnapshot(scopedTag, key);
60
- },
61
- enumerable: false,
62
- configurable: true
42
+ return prepareBoundStyles({
43
+ props,
44
+ options: {
45
+ ...options,
46
+ id: normalizedIdentity.id,
47
+ group: normalizedIdentity.group,
48
+ raw: true
49
+ }
50
+ });
63
51
  },
64
- getLink: {
65
- value: () => {
66
- "worklet";
52
+ link: id => {
53
+ "worklet";
67
54
 
68
- return getLink(scopedTag);
69
- },
70
- enumerable: false,
71
- configurable: true
72
- },
73
- interpolateStyle: {
74
- value: (property, fallback) => {
75
- "worklet";
76
-
77
- return interpolateStyle(scopedTag, property, fallback);
78
- },
79
- enumerable: false,
80
- configurable: true
81
- },
82
- interpolateBounds: {
83
- value: (property, fallbackOrTargetKey, fallback) => {
84
- "worklet";
85
-
86
- return interpolateBounds(scopedTag, property, fallbackOrTargetKey, fallback);
87
- },
88
- enumerable: false,
89
- configurable: true
55
+ const linkIdentity = id == null ? normalizedIdentity : normalizeBoundIdentity(id, normalizedIdentity.group);
56
+ const linkTag = createBoundTag(linkIdentity);
57
+ return getLink(linkTag ?? "");
90
58
  }
91
- });
59
+ };
92
60
  extendResult?.({
93
- target: target,
61
+ target: scoped,
62
+ identity: normalizedIdentity,
94
63
  props,
95
64
  tag
96
65
  });
97
- return target;
66
+ return scoped;
98
67
  };
99
68
  return {
100
- computeBounds,
101
- getMeasured,
102
- getSnapshot,
103
- getLink,
104
- interpolateStyle,
105
- interpolateBounds
69
+ createScopedBounds
106
70
  };
107
71
  };
108
72
  export const createBoundsAccessorCore = params => {
109
73
  "worklet";
110
74
 
111
75
  const {
112
- computeBounds,
113
- getMeasured,
114
- getSnapshot,
115
- getLink,
116
- interpolateStyle,
117
- interpolateBounds
76
+ createScopedBounds
118
77
  } = createBoundsAccessorParts(params);
119
- return Object.assign(computeBounds, {
120
- getMeasured,
121
- getSnapshot,
122
- getLink,
123
- interpolateStyle,
124
- interpolateBounds
125
- });
78
+ return createScopedBounds;
126
79
  };
127
80
  //# sourceMappingURL=create-bounds-accessor-core.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["createBoundTag","createInterpolators","createLinkAccessor","prepareBoundStyles","createBoundsAccessorParts","getProps","extendResult","getMeasured","getSnapshot","getLink","interpolateStyle","interpolateBounds","computeBounds","params","props","options","id","tag","group","computed","syncGroupActiveId","scopedTag","target","Object","isExtensible","defineProperties","value","key","enumerable","configurable","property","fallback","fallbackOrTargetKey","createBoundsAccessorCore","assign"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"mappings":";;AAKA,SAASA,cAAc,QAAQ,oBAAoB;AACnD,SAASC,mBAAmB,QAAQ,wBAAwB;AAC5D,SAASC,kBAAkB,QAAQ,wBAAwB;AAC3D,SAASC,kBAAkB,QAAQ,wBAAwB;AA0B3D,MAAMC,yBAAyB,GAA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oundTag","normalizeBoundIdentity","createLinkAccessor","prepareBoundStyles","syncActiveGroupId","createBoundsAccessorParts","getProps","extendResult","getLink","createScopedBounds","identity","props","normalizedIdentity","tag","id","group","scoped","styles","options","math","raw","link","linkIdentity","linkTag","target","createBoundsAccessorCore","params"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-bounds-accessor-core.ts"],"mappings":";;AAYA,SAASA,cAAc,EAAEC,sBAAsB,QAAQ,oBAAoB;AAC3E,SAASC,kBAAkB,QAAQ,wBAAwB;AAC3D,SAASC,kBAAkB,EAAEC,iBAAiB,QAAQ,wBAAwB;AAc9E,MAAMC,yBAAyB,GAAGA,CAAC;EAClCC,QAAQ;EACRC;AAC+B,CAAC,KAAK;EACrC,SAAS;;EAET,MAAM;IAAEC;EAAQ,CAAC,GAAGN,kBAAkB,CAACI,QAAQ,CAAC;EAEhD,MAAMG,kBAAkB,GACvBC,QAA6B,IACH;IAC1B,SAAS;;IACT,MAAMC,KAAK,GAAGL,QAAQ,CAAC,CAAC;IACxB,MAAMM,kBAAkB,GAAGX,sBAAsB,CAACS,QAAQ,CAAC;IAC3D,MAAMG,GAAG,GAAGb,cAAc,CAACY,kBAAkB,CAAC;IAC9CR,iBAAiB,CAAC;MACjBO,KAAK;MACLG,EAAE,EAAEF,kBAAkB,CAACE,EAAE;MACzBC,KAAK,EAAEH,kBAAkB,CAACG;IAC3B,CAAC,CAAC;IAEF,MAAMC,MAA4B,GAAG;MACpCC,MAAM,EAAGC,OAA8B,IAAwB;QAC9D,SAAS;;QACT,OAAOf,kBAAkB,CAAC;UACzBQ,KAAK;UACLO,OAAO,EAAE;YACR,GAAGA,OAAO;YACVJ,EAAE,EAAEF,kBAAkB,CAACE,EAAE;YACzBC,KAAK,EAAEH,kBAAkB,CAACG;UAC3B;QACD,CAAC,CAAC;MACH,CAAC;MACDI,IAAI,EACHD,OAAW,IACc;QACzB,SAAS;;QACT,OAAOf,kBAAkB,CAAC;UACzBQ,KAAK;UACLO,OAAO,EAAE;YACR,GAAGA,OAAO;YACVJ,EAAE,EAAEF,kBAAkB,CAACE,EAAE;YACzBC,KAAK,EAAEH,kBAAkB,CAACG,KAAK;YAC/BK,GAAG,EAAE;UACN;QACD,CAAC,CAAC;MACH,CAAC;MACDC,IAAI,EAAGP,EAAwB,IAAK;QACnC,SAAS;;QACT,MAAMQ,YAAY,GACjBR,EAAE,IAAI,IAAI,GACPF,kBAAkB,GAClBX,sBAAsB,CAACa,EAAE,EAAEF,kBAAkB,CAACG,KAAK,CAAC;QACxD,MAAMQ,OAAO,GAAGvB,cAAc,CAACsB,YAAY,CAAC;QAC5C,OAAOd,OAAO,CAACe,OAAO,IAAI,EAAE,CAAC;MAC9B;IACD,CAAyB;IAEzBhB,YAAY,GAAG;MACdiB,MAAM,EAAER,MAAM;MACdN,QAAQ,EAAEE,kBAAkB;MAC5BD,KAAK;MACLE;IACD,CAAC,CAAC;IAEF,OAAOG,MAAM;EACd,CAAoB;EAEpB,OAAO;IACNP;EACD,CAAC;AACF,CAAC;AAED,OAAO,MAAMgB,wBAAwB,GACpCC,MAAsC,IAClB;EACpB,SAAS;;EAET,MAAM;IAAEjB;EAAmB,CAAC,GAAGJ,yBAAyB,CAACqB,MAAM,CAAC;EAEhE,OAAOjB,kBAAkB;AAC1B,CAAC","ignoreList":[]}
@@ -1,85 +1,24 @@
1
1
  "use strict";
2
2
 
3
- import { getEntry } from "../../../stores/bounds/internals/entries";
4
3
  import { getResolvedLink } from "../../../stores/bounds/internals/links";
5
- import { prepareBoundStyles } from "./prepare-bound-styles";
6
4
  import { resolveBoundsPairKey } from "./resolve-bounds-pair-key";
7
- const toResolvedPair = link => {
8
- "worklet";
9
-
10
- return {
11
- sourceBounds: link.source.bounds,
12
- destinationBounds: link.destination?.bounds ?? null,
13
- sourceStyles: link.source.styles,
14
- destinationStyles: link.destination?.styles ?? null,
15
- sourceScreenKey: link.source.screenKey,
16
- destinationScreenKey: link.destination?.screenKey ?? null
17
- };
18
- };
19
5
  export const createLinkAccessor = getProps => {
20
6
  "worklet";
21
7
 
22
- const getMeasured = (tag, key) => {
23
- "worklet";
24
-
25
- if (!key) return null;
26
- const entry = getEntry(String(tag), key);
27
- return entry?.bounds ? entry : null;
28
- };
29
- const getSnapshot = (tag, key) => {
30
- "worklet";
31
-
32
- return getMeasured(tag, key);
33
- };
34
8
  const getLink = tag => {
35
9
  "worklet";
36
10
 
37
11
  const props = getProps();
38
12
  const stringTag = String(tag);
39
13
  const pairKey = resolveBoundsPairKey(props);
40
- const resolved = pairKey ? getResolvedLink(pairKey, stringTag) : {
41
- tag: stringTag,
42
- link: null
43
- };
44
- const selectedTag = resolved.tag;
45
- const link = resolved.link;
46
- if (!link) return null;
47
- const resolvedPair = toResolvedPair(link);
48
- return {
49
- id: selectedTag,
50
- source: link.source ? {
51
- bounds: link.source.bounds,
52
- styles: link.source.styles
53
- } : null,
54
- destination: link.destination ? {
55
- bounds: link.destination.bounds,
56
- styles: link.destination.styles
57
- } : null,
58
- initialSource: link.initialSource ? {
59
- bounds: link.initialSource.bounds,
60
- styles: link.initialSource.styles
61
- } : null,
62
- initialDestination: link.initialDestination ? {
63
- bounds: link.initialDestination.bounds,
64
- styles: link.initialDestination.styles
65
- } : null,
66
- compute: computeOptions => {
67
- "worklet";
68
-
69
- return prepareBoundStyles({
70
- props,
71
- options: {
72
- ...computeOptions,
73
- id: selectedTag
74
- },
75
- resolvedPair
76
- });
77
- }
78
- };
14
+ if (!pairKey) return null;
15
+ const resolved = getResolvedLink(pairKey, stringTag);
16
+ return resolved.link ? {
17
+ id: resolved.tag,
18
+ ...resolved.link
19
+ } : null;
79
20
  };
80
21
  return {
81
- getMeasured,
82
- getSnapshot,
83
22
  getLink
84
23
  };
85
24
  };
@@ -1 +1 @@
1
- {"version":3,"names":["getEntry","getResolvedLink","prepareBoundStyles","resolveBoundsPairKey","toResolvedPair","link","sourceBounds","source","bounds","destinationBounds","destination","sourceStyles","styles","destinationStyles","sourceScreenKey","screenKey","destinationScreenKey","createLinkAccessor","getProps","getMeasured","tag","key","entry","String","getSnapshot","getLink","props","stringTag","pairKey","resolved","selectedTag","resolvedPair","id","initialSource","initialDestination","compute","computeOptions","options"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-link-accessor.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,0CAA0C;AACnE,SAASC,eAAe,QAAQ,wCAAwC;AAYxE,SAASC,kBAAkB,QAAQ,wBAAwB;AAC3D,SAASC,oBAAoB,QAAQ,2BAA2B;AAUhE,MAAMC,cAAc,GAAIC,IAAa,IAA6B;EACjE,SAAS;;EACT,OAAO;IACNC,YAAY,EAAED,IAAI,CAACE,MAAM,CAACC,MAAM;IAChCC,iBAAiB,EAAEJ,IAAI,CAACK,WAAW,EAAEF,MAAM,IAAI,IAAI;IACnDG,YAAY,EAAEN,IAAI,CAACE,MAAM,CAACK,MAAM;IAChCC,iBAAiB,EAAER,IAAI,CAACK,WAAW,EAAEE,MAAM,IAAI,IAAI;IACnDE,eAAe,EAAET,IAAI,CAACE,MAAM,CAACQ,SAAS;IACtCC,oBAAoB,EAAEX,IAAI,CAACK,WAAW,EAAEK,SAAS,IAAI;EACtD,CAAC;AACF,CAAC;AAED,OAAO,MAAME,kBAAkB,GAAIC,QAAkB,IAAmB;EACvE,SAAS;;EAET,MAAMC,WAAW,GAAGA,CAACC,GAAY,EAAEC,GAAY,KAA2B;IACzE,SAAS;;IACT,IAAI,CAACA,GAAG,EAAE,OAAO,IAAI;IACrB,MAAMC,KAAK,GAAGtB,QAAQ,CAACuB,MAAM,CAACH,GAAG,CAAC,EAAEC,GAAG,CAAC;IACxC,OAAOC,KAAK,EAAEd,MAAM,GAAIc,KAAK,GAAqB,IAAI;EACvD,CAAC;EAED,MAAME,WAAW,GAAGA,CAACJ,GAAY,EAAEC,GAAY,KAA2B;IACzE,SAAS;;IACT,OAAOF,WAAW,CAACC,GAAG,EAAEC,GAAG,CAAC;EAC7B,CAAC;EAED,MAAMI,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ACtB;MACjC,CAAC,GACA,IAAI;MACPuB,OAAO,EACNC,cAAiB,IAC4B;QAC7C,SAAS;;QACT,OAAOlC,kBAAkB,CAAC;UACzBwB,KAAK;UACLW,OAAO,EAAE;YACR,GAAGD,cAAc;YACjBJ,EAAE,EAAEF;UACL,CAAuB;UACvBC;QACD,CAAC,CAAC;MACH;IACD,CAAC;EACF,CAAC;EAED,OAAO;IACNZ,WAAW;IACXK,WAAW;IACXC;EACD,CAAC;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["getResolvedLink","resolveBoundsPairKey","createLinkAccessor","getProps","getLink","tag","props","stringTag","String","pairKey","resolved","link","id"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/create-link-accessor.ts"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,wCAAwC;AAMxE,SAASC,oBAAoB,QAAQ,2BAA2B;AAQhE,OAAO,MAAMC,kBAAkB,GAAIC,QAAkB,IAAmB;EACvE,SAAS;;EAET,MAAMC,OAAO,GAAIC,GAAY,IAAwB;IACpD,SAAS;;IACT,MAAMC,KAAK,GAAGH,QAAQ,CAAC,CAAC;IACxB,MAAMI,SAAS,GAAGC,MAAM,CAACH,GAAG,CAAC;IAC7B,MAAMI,OAAO,GAAGR,oBAAoB,CAACK,KAAK,CAAC;IAC3C,IAAI,CAACG,OAAO,EAAE,OAAO,IAAI;IAEzB,MAAMC,QAAQ,GAAGV,eAAe,CAACS,OAAO,EAAEF,SAAS,CAAC;IACpD,OAAOG,QAAQ,CAACC,IAAI,GACjB;MACAC,EAAE,EAAEF,QAAQ,CAACL,GAAG;MAChB,GAAGK,QAAQ,CAACC;IACb,CAAC,GACA,IAAI;EACR,CAAC;EAED,OAAO;IACNP;EACD,CAAC;AACF,CAAC","ignoreList":[]}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  import { getEntry } from "../../../stores/bounds/internals/entries";
4
- import { setActiveGroupId } from "../../../stores/bounds/internals/links";
4
+ import { getActiveGroupId, setActiveGroupId } from "../../../stores/bounds/internals/links";
5
5
  import { DEFAULT_BOUNDS_OPTIONS } from "../constants";
6
6
  import { createBoundTag } from "./create-bound-tag";
7
7
  import { resolveBoundsPairKey } from "./resolve-bounds-pair-key";
@@ -29,7 +29,7 @@ const buildBoundsOptions = ({
29
29
  };
30
30
  return resolved;
31
31
  };
32
- const syncActiveGroupId = params => {
32
+ export const syncActiveGroupId = params => {
33
33
  "worklet";
34
34
 
35
35
  const {
@@ -40,23 +40,17 @@ const syncActiveGroupId = params => {
40
40
  if (id == null || id === "" || !group) return;
41
41
  const pairKey = resolveBoundsPairKey(props);
42
42
  if (!pairKey) return;
43
- setActiveGroupId(pairKey, group, String(id));
43
+ const activeId = String(id);
44
+ if (getActiveGroupId(pairKey, group) === activeId) return;
45
+ setActiveGroupId(pairKey, group, activeId);
44
46
  };
45
47
  export const prepareBoundStyles = ({
46
48
  props,
47
49
  options,
48
- resolvedPair,
49
- syncGroupActiveId = false
50
+ resolvedPair
50
51
  }) => {
51
52
  "worklet";
52
53
 
53
- if (syncGroupActiveId) {
54
- syncActiveGroupId({
55
- props,
56
- id: options.id,
57
- group: options.group
58
- });
59
- }
60
54
  const resolved = buildBoundsOptions({
61
55
  props,
62
56
  id: options.id,
@@ -69,7 +63,8 @@ export const prepareBoundStyles = ({
69
63
  current: props.current,
70
64
  next: props.next,
71
65
  progress: resolved.progress ?? props.progress,
72
- dimensions: props.layouts.screen
66
+ dimensions: props.layouts.screen,
67
+ interpolationProps: props
73
68
  }, resolved, resolvedPair);
74
69
  };
75
70
  //# sourceMappingURL=prepare-bound-styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["getEntry","setActiveGroupId","DEFAULT_BOUNDS_OPTIONS","createBoundTag","resolveBoundsPairKey","computeBoundStyles","buildBoundsOptions","props","id","group","overrides","tag","currentScreenKey","current","route","key","boundaryConfig","resolved","syncActiveGroupId","params","pairKey","String","prepareBoundStyles","options","resolvedPair","syncGroupActiveId","previous","next","progress","dimensions","layouts","screen"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/prepare-bound-styles.ts"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,0CAA0C;AACnE,SAASC,gBAAgB,QAAQ,wCAAwC;AAGzE,SAASC,sBAAsB,QAAQ,cAAc;AAMrD,SAASC,cAAc,QAAQ,oBAAoB;AACnD,SAASC,oBAAoB,QAAQ,2BAA2B;AAChE,SAASC,kBAAkB,QAAQ,kBAAkB;AAkBrD,MAAMC,kBAAkB,GAAGA,CAAC;EAC3BC,KAAK;EACLC,EAAE;EACFC,KAAK;EACLC;AACyB,CAAC,KAAoB;EAC9C,SAAS;;EAET,MAAMC,GAAG,GAAGR,cAAc,CAAC;IAAEK,EAAE;IAAEC;EAAM,CAAC,CAAC;EACzC,MAAMG,gBAAgB,GAAGL,KAAK,CAACM,OAAO,EAAEC,KAAK,CAACC,GAAG;EAEjD,MAAMC,cAAc,GACnBL,GAAG,IAAIC,gBAAgB,GACnBZ,QAAQ,CAACW,GAAG,EAAEC,gBAAgB,CAAC,EAAEI,cAAc,IAAI,IAAI,GACxD,IAAI;EAER,MAAMC,QAAQ,GAAG;IAChB,GAAGf,sBAAsB;IACzB,IAAIc,cAAc,IAAI,CAAC,CAAC,CAAC;IACzB,IAAIN,SAAS,IAAI,CAAC,CAAC,CAAC;IACpBF,EAAE,EAAEG,GAAG,IAAI,EAAE;IACbF;EACD,CAAC;EAED,OAAOQ,QAAQ;AAChB,CAAC;AAED,MAAMC,iBAAiB,GAAIC,MAI1B,IAAK;EACL,SAAS;;EACT,MAAM;IAAEZ,KAAK;IAAEC,EAAE;IAAEC;EAAM,CAAC,GAAGU,MAAM;EACnC,IAAIX,EAAE,IAAI,IAAI,IAAIA,EAAE,KAAK,EAAE,IAAI,CAACC,KAAK,EAAE;EAEvC,MAAMW,OAAO,GAAGhB,oBAAoB,CAACG,KAAK,CAAC;EAC3C,IAAI,CAACa,OAAO,EAAE;EAEdnB,gBAAgB,CAACmB,OAAO,EAAEX,KAAK,EAAEY,MAAM,CAACb,EAAE,CAAC,CAAC;AAC7C,CAAC;AAED,OAAO,MAAMc,kBAAkB,GAAGA,CAA0B;EAC3Df,KAAK;EACLgB,OAAO;EACPC,YAAY;EACZC,iBAAiB,GAAG;AACiB,CAAC,KAA6B;EACnE,SAAS;;EAET,IAAIA,iBAAiB,EAAE;IACtBP,iBAAiB,CAAC;MACjBX,KAAK;MACLC,EAAE,EAAEe,OAAO,CAACf,EAAE;MACdC,KAAK,EAAEc,OAAO,CAACd;IAChB,CAAC,CAAC;EACH;EAEA,MAAMQ,QAAQ,GAAGX,kBAAkB,CAAC;IACnCC,KAAK;IACLC,EAAE,EAAEe,OAAO,CAACf,EAAE;IACdC,KAAK,EAAEc,OAAO,CAACd,KAAK;IACpBC,SAAS,EAAEa;EACZ,CAAC,CAAC;EAEF,OAAOlB,kBAAkB,CACxB;IACCG,EAAE,EAAES,QAAQ,CAACT,EAAE;IACfkB,QAAQ,EAAEnB,KAAK,CAACmB,QAAQ;IACxBb,OAAO,EAAEN,KAAK,CAACM,OAAO;IACtBc,IAAI,EAAEpB,KAAK,CAACoB,IAAI;IAChBC,QAAQ,EAAEX,QAAQ,CAACW,QAAQ,IAAIrB,KAAK,CAACqB,QAAQ;IAC7CC,UAAU,EAAEtB,KAAK,CAACuB,OAAO,CAACC;EAC3B,CAAC,EACDd,QAAQ,EACRO,YACD,CAAC;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["getEntry","getActiveGroupId","setActiveGroupId","DEFAULT_BOUNDS_OPTIONS","createBoundTag","resolveBoundsPairKey","computeBoundStyles","buildBoundsOptions","props","id","group","overrides","tag","currentScreenKey","current","route","key","boundaryConfig","resolved","syncActiveGroupId","params","pairKey","activeId","String","prepareBoundStyles","options","resolvedPair","previous","next","progress","dimensions","layouts","screen","interpolationProps"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/prepare-bound-styles.ts"],"mappings":";;AAAA,SAASA,QAAQ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