react-native-screen-transitions 3.4.0-alpha.6 → 3.4.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) hide show
  1. package/README.md +136 -46
  2. package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js +27 -45
  3. package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
  4. package/lib/commonjs/component-stack/navigators/create-component-stack-navigator.js +1 -1
  5. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js +41 -0
  6. package/lib/commonjs/shared/components/create-boundary-component/components/boundary-target.js.map +1 -0
  7. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +193 -0
  8. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -0
  9. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
  10. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  11. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +53 -43
  12. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  13. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
  14. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
  15. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +8 -26
  16. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
  17. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +84 -2
  18. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  19. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js +67 -0
  20. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js.map +1 -0
  21. package/lib/commonjs/shared/components/create-boundary-component/index.js +27 -216
  22. package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
  23. package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js +63 -0
  24. package/lib/commonjs/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -0
  25. package/lib/commonjs/shared/components/create-transition-aware-component.js +37 -39
  26. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  27. package/lib/commonjs/shared/components/overlay/variations/float-overlay.js +1 -1
  28. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +11 -9
  29. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  30. package/lib/commonjs/shared/components/screen-container/index.js +8 -12
  31. package/lib/commonjs/shared/components/screen-container/index.js.map +1 -1
  32. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +11 -9
  33. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
  34. package/lib/commonjs/shared/components/screen-container/layers/content.js +4 -4
  35. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
  36. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +4 -4
  37. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  38. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +4 -4
  39. package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
  40. package/lib/commonjs/shared/components/screen-lifecycle/index.js +3 -1
  41. package/lib/commonjs/shared/components/screen-lifecycle/index.js.map +1 -1
  42. package/lib/commonjs/shared/constants.js +18 -2
  43. package/lib/commonjs/shared/constants.js.map +1 -1
  44. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js +43 -0
  45. package/lib/commonjs/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
  46. package/lib/commonjs/shared/index.js +6 -0
  47. package/lib/commonjs/shared/index.js.map +1 -1
  48. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +7 -0
  49. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
  50. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
  51. package/lib/commonjs/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  52. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
  53. package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  54. package/lib/commonjs/shared/providers/screen/screen-composer.js +1 -1
  55. package/lib/commonjs/shared/providers/screen/screen-composer.js.map +1 -1
  56. package/lib/commonjs/shared/providers/screen/styles/helpers/build-resolved-style-map.js +144 -0
  57. package/lib/commonjs/shared/providers/screen/styles/helpers/build-resolved-style-map.js.map +1 -0
  58. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js +28 -0
  59. package/lib/commonjs/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js.map +1 -0
  60. package/lib/commonjs/shared/providers/screen/styles/helpers/split-normalized-style-maps.js +39 -0
  61. package/lib/commonjs/shared/providers/screen/styles/helpers/split-normalized-style-maps.js.map +1 -0
  62. package/lib/commonjs/shared/providers/screen/styles/index.js +25 -0
  63. package/lib/commonjs/shared/providers/screen/styles/index.js.map +1 -0
  64. package/lib/commonjs/shared/providers/screen/{styles.provider.js → styles/styles.provider.js} +37 -39
  65. package/lib/commonjs/shared/providers/screen/styles/styles.provider.js.map +1 -0
  66. package/lib/commonjs/shared/stores/animation.store.js +9 -3
  67. package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
  68. package/lib/commonjs/shared/stores/bounds/internals/registry.js +18 -2
  69. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
  70. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +7 -48
  71. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  72. package/lib/commonjs/shared/utils/animation/animate-to-progress.js +10 -0
  73. package/lib/commonjs/shared/utils/animation/animate-to-progress.js.map +1 -1
  74. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +6 -12
  75. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
  76. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js +21 -10
  77. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +1 -1
  78. package/lib/commonjs/shared/utils/bounds/zoom/build.js +158 -52
  79. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
  80. package/lib/commonjs/shared/utils/bounds/zoom/config.js +3 -1
  81. package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -1
  82. package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js +27 -45
  83. package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
  84. package/lib/module/component-stack/navigators/create-component-stack-navigator.js +1 -1
  85. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js +36 -0
  86. package/lib/module/shared/components/create-boundary-component/components/boundary-target.js.map +1 -0
  87. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +188 -0
  88. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -0
  89. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +1 -1
  90. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  91. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +51 -41
  92. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  93. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -1
  94. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
  95. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +8 -26
  96. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
  97. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +86 -4
  98. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  99. package/lib/module/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js +62 -0
  100. package/lib/module/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js.map +1 -0
  101. package/lib/module/shared/components/create-boundary-component/index.js +23 -215
  102. package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
  103. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js +56 -0
  104. package/lib/module/shared/components/create-boundary-component/providers/boundary-owner.provider.js.map +1 -0
  105. package/lib/module/shared/components/create-transition-aware-component.js +39 -41
  106. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  107. package/lib/module/shared/components/overlay/variations/float-overlay.js +1 -1
  108. package/lib/module/shared/components/overlay/variations/float-overlay.js.map +1 -1
  109. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +11 -9
  110. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -1
  111. package/lib/module/shared/components/screen-container/index.js +8 -12
  112. package/lib/module/shared/components/screen-container/index.js.map +1 -1
  113. package/lib/module/shared/components/screen-container/layers/backdrop.js +11 -9
  114. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  115. package/lib/module/shared/components/screen-container/layers/content.js +4 -4
  116. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  117. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +4 -4
  118. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  119. package/lib/module/shared/components/screen-container/layers/surface-container.js +4 -4
  120. package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
  121. package/lib/module/shared/components/screen-lifecycle/index.js +3 -1
  122. package/lib/module/shared/components/screen-lifecycle/index.js.map +1 -1
  123. package/lib/module/shared/constants.js +17 -1
  124. package/lib/module/shared/constants.js.map +1 -1
  125. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js +39 -0
  126. package/lib/module/shared/hooks/reanimated/use-animated-debounce.js.map +1 -0
  127. package/lib/module/shared/index.js +1 -1
  128. package/lib/module/shared/index.js.map +1 -1
  129. package/lib/module/shared/providers/gestures/handlers/use-handlers.js +7 -0
  130. package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
  131. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js +23 -1
  132. package/lib/module/shared/providers/screen/animation/helpers/hydrate-transition-state.js.map +1 -1
  133. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +3 -0
  134. package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
  135. package/lib/module/shared/providers/screen/screen-composer.js +1 -1
  136. package/lib/module/shared/providers/screen/screen-composer.js.map +1 -1
  137. package/lib/module/shared/providers/screen/styles/helpers/build-resolved-style-map.js +139 -0
  138. package/lib/module/shared/providers/screen/styles/helpers/build-resolved-style-map.js.map +1 -0
  139. package/lib/module/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js +23 -0
  140. package/lib/module/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.js.map +1 -0
  141. package/lib/module/shared/providers/screen/styles/helpers/split-normalized-style-maps.js +34 -0
  142. package/lib/module/shared/providers/screen/styles/helpers/split-normalized-style-maps.js.map +1 -0
  143. package/lib/module/shared/providers/screen/styles/index.js +4 -0
  144. package/lib/module/shared/providers/screen/styles/index.js.map +1 -0
  145. package/lib/module/shared/providers/screen/{styles.provider.js → styles/styles.provider.js} +38 -40
  146. package/lib/module/shared/providers/screen/styles/styles.provider.js.map +1 -0
  147. package/lib/module/shared/stores/animation.store.js +9 -3
  148. package/lib/module/shared/stores/animation.store.js.map +1 -1
  149. package/lib/module/shared/stores/bounds/internals/registry.js +18 -2
  150. package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
  151. package/lib/module/shared/stores/bounds/internals/resolver.js +7 -48
  152. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  153. package/lib/module/shared/utils/animation/animate-to-progress.js +10 -0
  154. package/lib/module/shared/utils/animation/animate-to-progress.js.map +1 -1
  155. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +7 -13
  156. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
  157. package/lib/module/shared/utils/bounds/helpers/style-composers.js +21 -10
  158. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +1 -1
  159. package/lib/module/shared/utils/bounds/zoom/build.js +159 -52
  160. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
  161. package/lib/module/shared/utils/bounds/zoom/config.js +2 -0
  162. package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -1
  163. package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts +9 -15
  164. package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
  165. package/lib/typescript/blank-stack/types.d.ts +6 -4
  166. package/lib/typescript/blank-stack/types.d.ts.map +1 -1
  167. package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts +1 -1
  168. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts +209 -0
  169. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -0
  170. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts +8 -0
  171. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -0
  172. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
  173. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +16 -11
  174. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
  175. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts +3 -1
  176. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -1
  177. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +2 -9
  178. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -1
  179. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +6 -1
  180. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -1
  181. package/lib/typescript/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.d.ts +12 -0
  182. package/lib/typescript/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.d.ts.map +1 -0
  183. package/lib/typescript/shared/components/create-boundary-component/index.d.ts +224 -14
  184. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
  185. package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts +35 -0
  186. package/lib/typescript/shared/components/create-boundary-component/providers/boundary-owner.provider.d.ts.map +1 -0
  187. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +1 -1
  188. package/lib/typescript/shared/components/create-boundary-component/types.d.ts.map +1 -1
  189. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  190. package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -1
  191. package/lib/typescript/shared/components/screen-container/index.d.ts.map +1 -1
  192. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  193. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
  194. package/lib/typescript/shared/components/screen-lifecycle/index.d.ts.map +1 -1
  195. package/lib/typescript/shared/constants.d.ts +34 -0
  196. package/lib/typescript/shared/constants.d.ts.map +1 -1
  197. package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts +13 -0
  198. package/lib/typescript/shared/hooks/reanimated/use-animated-debounce.d.ts.map +1 -0
  199. package/lib/typescript/shared/index.d.ts +210 -3
  200. package/lib/typescript/shared/index.d.ts.map +1 -1
  201. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
  202. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts +3 -0
  203. package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state.d.ts.map +1 -1
  204. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +3 -0
  205. package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
  206. package/lib/typescript/shared/providers/screen/styles/helpers/build-resolved-style-map.d.ts +11 -0
  207. package/lib/typescript/shared/providers/screen/styles/helpers/build-resolved-style-map.d.ts.map +1 -0
  208. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.d.ts +7 -0
  209. package/lib/typescript/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.d.ts.map +1 -0
  210. package/lib/typescript/shared/providers/screen/styles/helpers/split-normalized-style-maps.d.ts +6 -0
  211. package/lib/typescript/shared/providers/screen/styles/helpers/split-normalized-style-maps.d.ts.map +1 -0
  212. package/lib/typescript/shared/providers/screen/styles/index.d.ts +2 -0
  213. package/lib/typescript/shared/providers/screen/styles/index.d.ts.map +1 -0
  214. package/lib/typescript/shared/providers/screen/{styles.provider.d.ts → styles/styles.provider.d.ts} +3 -5
  215. package/lib/typescript/shared/providers/screen/styles/styles.provider.d.ts.map +1 -0
  216. package/lib/typescript/shared/stores/animation.store.d.ts +5 -2
  217. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  218. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
  219. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  220. package/lib/typescript/shared/stores/bounds/types.d.ts +0 -2
  221. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  222. package/lib/typescript/shared/types/animation.types.d.ts +14 -9
  223. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  224. package/lib/typescript/shared/types/bounds.types.d.ts +34 -1
  225. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  226. package/lib/typescript/shared/types/index.d.ts +1 -1
  227. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  228. package/lib/typescript/shared/types/screen.types.d.ts +2 -4
  229. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  230. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts +2 -1
  231. package/lib/typescript/shared/utils/animation/animate-to-progress.d.ts.map +1 -1
  232. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts +1 -11
  233. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +1 -1
  234. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +1 -1
  235. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts +1 -1
  236. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
  237. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +2 -0
  238. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -1
  239. package/package.json +1 -1
  240. package/src/blank-stack/navigators/create-blank-stack-navigator.tsx +37 -80
  241. package/src/blank-stack/types.ts +7 -4
  242. package/src/component-stack/navigators/create-component-stack-navigator.tsx +1 -1
  243. package/src/shared/components/create-boundary-component/components/boundary-target.tsx +47 -0
  244. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +249 -0
  245. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +5 -1
  246. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +68 -59
  247. package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +19 -3
  248. package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +11 -44
  249. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +165 -6
  250. package/src/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.ts +107 -0
  251. package/src/shared/components/create-boundary-component/index.tsx +23 -254
  252. package/src/shared/components/create-boundary-component/providers/boundary-owner.provider.tsx +109 -0
  253. package/src/shared/components/create-boundary-component/types.ts +1 -2
  254. package/src/shared/components/create-transition-aware-component.tsx +43 -52
  255. package/src/shared/components/overlay/variations/float-overlay.tsx +1 -1
  256. package/src/shared/components/screen-container/hooks/use-content-layout.ts +10 -17
  257. package/src/shared/components/screen-container/index.tsx +10 -13
  258. package/src/shared/components/screen-container/layers/backdrop.tsx +10 -13
  259. package/src/shared/components/screen-container/layers/content.tsx +4 -4
  260. package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +6 -4
  261. package/src/shared/components/screen-container/layers/surface-container.tsx +4 -4
  262. package/src/shared/components/screen-lifecycle/index.tsx +1 -4
  263. package/src/shared/constants.ts +12 -0
  264. package/src/shared/hooks/reanimated/use-animated-debounce.ts +56 -0
  265. package/src/shared/index.ts +1 -1
  266. package/src/shared/providers/gestures/handlers/use-handlers.ts +9 -0
  267. package/src/shared/providers/screen/animation/helpers/hydrate-transition-state.ts +27 -1
  268. package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +6 -0
  269. package/src/shared/providers/screen/screen-composer.tsx +1 -1
  270. package/src/shared/providers/screen/styles/helpers/build-resolved-style-map.ts +185 -0
  271. package/src/shared/providers/screen/styles/helpers/resolve-interpolated-style-output.ts +31 -0
  272. package/src/shared/providers/screen/styles/helpers/split-normalized-style-maps.ts +44 -0
  273. package/src/shared/providers/screen/styles/index.tsx +5 -0
  274. package/src/shared/providers/screen/{styles.provider.tsx → styles/styles.provider.tsx} +54 -56
  275. package/src/shared/stores/animation.store.ts +11 -2
  276. package/src/shared/stores/bounds/internals/registry.ts +24 -3
  277. package/src/shared/stores/bounds/internals/resolver.ts +6 -75
  278. package/src/shared/stores/bounds/types.ts +0 -2
  279. package/src/shared/types/animation.types.ts +16 -10
  280. package/src/shared/types/bounds.types.ts +34 -1
  281. package/src/shared/types/index.ts +0 -1
  282. package/src/shared/types/screen.types.ts +2 -4
  283. package/src/shared/utils/animation/animate-to-progress.ts +11 -1
  284. package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +3 -12
  285. package/src/shared/utils/bounds/helpers/style-composers.ts +11 -0
  286. package/src/shared/utils/bounds/zoom/build.ts +228 -100
  287. package/src/shared/utils/bounds/zoom/config.ts +2 -0
  288. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -54
  289. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
  290. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -122
  291. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
  292. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -72
  293. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
  294. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -66
  295. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
  296. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -57
  297. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
  298. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -53
  299. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
  300. package/lib/commonjs/shared/components/screen-container/deferred-visibility-host.js +0 -45
  301. package/lib/commonjs/shared/components/screen-container/deferred-visibility-host.js.map +0 -1
  302. package/lib/commonjs/shared/hooks/animation/use-associated-style.js +0 -234
  303. package/lib/commonjs/shared/hooks/animation/use-associated-style.js.map +0 -1
  304. package/lib/commonjs/shared/providers/screen/helpers/resolve-interpolated-style-output.js +0 -50
  305. package/lib/commonjs/shared/providers/screen/helpers/resolve-interpolated-style-output.js.map +0 -1
  306. package/lib/commonjs/shared/providers/screen/styles.provider.js.map +0 -1
  307. package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +0 -49
  308. package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +0 -1
  309. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +0 -118
  310. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +0 -1
  311. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +0 -67
  312. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +0 -1
  313. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +0 -61
  314. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +0 -1
  315. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +0 -52
  316. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +0 -1
  317. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +0 -48
  318. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +0 -1
  319. package/lib/module/shared/components/screen-container/deferred-visibility-host.js +0 -40
  320. package/lib/module/shared/components/screen-container/deferred-visibility-host.js.map +0 -1
  321. package/lib/module/shared/hooks/animation/use-associated-style.js +0 -229
  322. package/lib/module/shared/hooks/animation/use-associated-style.js.map +0 -1
  323. package/lib/module/shared/providers/screen/helpers/resolve-interpolated-style-output.js +0 -44
  324. package/lib/module/shared/providers/screen/helpers/resolve-interpolated-style-output.js.map +0 -1
  325. package/lib/module/shared/providers/screen/styles.provider.js.map +0 -1
  326. package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts +0 -11
  327. package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts.map +0 -1
  328. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +0 -17
  329. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +0 -1
  330. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts +0 -11
  331. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts.map +0 -1
  332. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts +0 -10
  333. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +0 -1
  334. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts +0 -12
  335. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +0 -1
  336. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +0 -10
  337. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +0 -1
  338. package/lib/typescript/shared/components/screen-container/deferred-visibility-host.d.ts +0 -14
  339. package/lib/typescript/shared/components/screen-container/deferred-visibility-host.d.ts.map +0 -1
  340. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts +0 -32
  341. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts.map +0 -1
  342. package/lib/typescript/shared/providers/screen/helpers/resolve-interpolated-style-output.d.ts +0 -14
  343. package/lib/typescript/shared/providers/screen/helpers/resolve-interpolated-style-output.d.ts.map +0 -1
  344. package/lib/typescript/shared/providers/screen/styles.provider.d.ts.map +0 -1
  345. package/src/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.ts +0 -58
  346. package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +0 -162
  347. package/src/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts +0 -82
  348. package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +0 -92
  349. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +0 -86
  350. package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +0 -49
  351. package/src/shared/components/screen-container/deferred-visibility-host.tsx +0 -44
  352. package/src/shared/hooks/animation/use-associated-style.ts +0 -297
  353. package/src/shared/providers/screen/helpers/resolve-interpolated-style-output.ts +0 -61
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.splitNormalizedStyleMaps = void 0;
7
+ var _constants = require("../../../../constants");
8
+ const LAYER_STYLE_SLOT_IDS = {
9
+ content: true,
10
+ backdrop: true,
11
+ surface: true,
12
+ [_constants.NAVIGATION_MASK_ELEMENT_STYLE_ID]: true,
13
+ [_constants.NAVIGATION_MASK_CONTAINER_STYLE_ID]: true
14
+ };
15
+ const isLayerStyleSlotId = slotId => {
16
+ "worklet";
17
+
18
+ // biome-ignore lint/suspicious/noPrototypeBuiltins: <Typescript lib target is ES2020>
19
+ return Object.prototype.hasOwnProperty.call(LAYER_STYLE_SLOT_IDS, slotId);
20
+ };
21
+ const splitNormalizedStyleMaps = stylesMap => {
22
+ "worklet";
23
+
24
+ const layerStylesMap = {};
25
+ const elementStylesMap = {};
26
+ for (const slotId in stylesMap) {
27
+ if (isLayerStyleSlotId(slotId)) {
28
+ layerStylesMap[slotId] = stylesMap[slotId];
29
+ continue;
30
+ }
31
+ elementStylesMap[slotId] = stylesMap[slotId];
32
+ }
33
+ return {
34
+ layerStylesMap,
35
+ elementStylesMap
36
+ };
37
+ };
38
+ exports.splitNormalizedStyleMaps = splitNormalizedStyleMaps;
39
+ //# sourceMappingURL=split-normalized-style-maps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_constants","require","LAYER_STYLE_SLOT_IDS","content","backdrop","surface","NAVIGATION_MASK_ELEMENT_STYLE_ID","NAVIGATION_MASK_CONTAINER_STYLE_ID","isLayerStyleSlotId","slotId","Object","prototype","hasOwnProperty","call","splitNormalizedStyleMaps","stylesMap","layerStylesMap","elementStylesMap","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/split-normalized-style-maps.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAMA,MAAMC,oBAAoB,GAAG;EAC5BC,OAAO,EAAE,IAAI;EACbC,QAAQ,EAAE,IAAI;EACdC,OAAO,EAAE,IAAI;EACb,CAACC,2CAAgC,GAAG,IAAI;EACxC,CAACC,6CAAkC,GAAG;AACvC,CAAU;AAEV,MAAMC,kBAAkB,GAAIC,MAAc,IAAK;EAC9C,SAAS;;EACT;EACA,OAAOC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACX,oBAAoB,EAAEO,MAAM,CAAC;AAC1E,CAAC;AAEM,MAAMK,wBAAwB,GACpCC,SAAgD,IAI5C;EACJ,SAAS;;EACT,MAAMC,cAAqD,GAAG,CAAC,CAAC;EAChE,MAAMC,gBAAuD,GAAG,CAAC,CAAC;EAElE,KAAK,MAAMR,MAAM,IAAIM,SAAS,EAAE;IAC/B,IAAIP,kBAAkB,CAACC,MAAM,CAAC,EAAE;MAC/BO,cAAc,CAACP,MAAM,CAAC,GAAGM,SAAS,CAACN,MAAM,CAAC;MAC1C;IACD;IAEAQ,gBAAgB,CAACR,MAAM,CAAC,GAAGM,SAAS,CAACN,MAAM,CAAC;EAC7C;EAEA,OAAO;IACNO,cAAc;IACdC;EACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAJ,wBAAA,GAAAA,wBAAA","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "ScreenStylesContext", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _styles.ScreenStylesContext;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "ScreenStylesProvider", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _styles.ScreenStylesProvider;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "useScreenStyles", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _styles.useScreenStyles;
22
+ }
23
+ });
24
+ var _styles = require("./styles.provider");
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_styles","require"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA","ignoreList":[]}
@@ -6,11 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useScreenStyles = exports.ScreenStylesProvider = exports.ScreenStylesContext = void 0;
7
7
  var _react = require("react");
8
8
  var _reactNativeReanimated = require("react-native-reanimated");
9
- var _constants = require("../../constants");
10
- var _createProvider = _interopRequireDefault(require("../../utils/create-provider"));
11
- var _logger = require("../../utils/logger");
12
- var _animation = require("./animation");
9
+ var _constants = require("../../../constants");
10
+ var _createProvider = _interopRequireDefault(require("../../../utils/create-provider"));
11
+ var _logger = require("../../../utils/logger");
12
+ var _animation = require("../animation");
13
+ var _buildResolvedStyleMap = require("./helpers/build-resolved-style-map");
13
14
  var _resolveInterpolatedStyleOutput = require("./helpers/resolve-interpolated-style-output");
15
+ var _splitNormalizedStyleMaps = require("./helpers/split-normalized-style-maps");
14
16
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
17
  const {
16
18
  ScreenStylesProvider,
@@ -21,21 +23,17 @@ const {
21
23
  })(({
22
24
  children
23
25
  }) => {
24
- const parentCtx = (0, _react.useContext)(ScreenStylesContext);
26
+ const parentContext = (0, _react.useContext)(ScreenStylesContext);
25
27
  const {
26
28
  screenInterpolatorProps,
27
29
  nextInterpolator,
28
30
  currentInterpolator,
29
31
  boundsAccessor
30
32
  } = (0, _animation.useScreenAnimationContext)();
31
-
32
- /**
33
- * Tracks when user starts a gesture while another screen is still closing.
34
- * This persists until both the gesture ends AND the closing animation completes.
35
- */
36
33
  const isGesturingDuringCloseAnimation = (0, _reactNativeReanimated.useSharedValue)(false);
37
34
  const hasWarnedLegacy = (0, _reactNativeReanimated.useSharedValue)(false);
38
- const styleResolution = (0, _reactNativeReanimated.useDerivedValue)(() => {
35
+ const previousElementStyleKeysBySlot = (0, _reactNativeReanimated.useSharedValue)({});
36
+ const rawStyleResolution = (0, _reactNativeReanimated.useDerivedValue)(() => {
39
37
  "worklet";
40
38
 
41
39
  const props = screenInterpolatorProps.value;
@@ -53,19 +51,13 @@ const {
53
51
  isGesturingDuringCloseAnimation.value = false;
54
52
  }
55
53
  const isInGestureMode = isDragging || isGesturingDuringCloseAnimation.value;
56
-
57
- // Select interpolator
58
- // - If in gesture mode, use current screen's interpolator since we're driving
59
- // the animation from this screen (dragging back to dismiss next).
60
54
  const interpolator = isInGestureMode ? currentInterpolator : nextInterpolator ?? currentInterpolator;
61
55
  if (!interpolator) {
62
- return _resolveInterpolatedStyleOutput.PASS_THROUGH_STYLE_OUTPUT;
56
+ return {
57
+ layerStylesMap: _constants.NO_STYLES,
58
+ elementStylesMap: _constants.NO_STYLES
59
+ };
63
60
  }
64
-
65
- // Build effective props with corrected progress
66
- // - Gesture mode: use current.progress only (avoids jumps during drag)
67
- // - Normal: use derived progress as-is
68
-
69
61
  let effectiveProgress = progress;
70
62
  let effectiveNext = next;
71
63
  if (isInGestureMode) {
@@ -81,49 +73,55 @@ const {
81
73
  });
82
74
  const {
83
75
  stylesMap,
84
- resolutionMode,
85
76
  wasLegacy
86
77
  } = (0, _resolveInterpolatedStyleOutput.resolveInterpolatedStyleOutput)(raw);
78
+ const {
79
+ layerStylesMap,
80
+ elementStylesMap
81
+ } = (0, _splitNormalizedStyleMaps.splitNormalizedStyleMaps)(stylesMap);
87
82
  if (__DEV__ && wasLegacy && !hasWarnedLegacy.value) {
88
83
  hasWarnedLegacy.value = true;
89
84
  _logger.logger.warn("Flat interpolator return shape (contentStyle/backdropStyle) is deprecated. " + "Use the nested format instead: { content: { style }, backdrop: { style } }.");
90
85
  }
91
86
  return {
92
- stylesMap,
93
- resolutionMode: (0, _resolveInterpolatedStyleOutput.resolveEffectiveResolutionMode)({
94
- resolutionMode,
95
- isSettled: current.settled === 1
96
- })
87
+ layerStylesMap,
88
+ elementStylesMap
97
89
  };
98
90
  } catch (err) {
99
91
  if (__DEV__) {
100
92
  console.warn("[react-native-screen-transitions] screenStyleInterpolator must be a worklet", err);
101
93
  }
102
94
  return {
103
- stylesMap: _constants.NO_STYLES,
104
- resolutionMode: "live"
95
+ layerStylesMap: _constants.NO_STYLES,
96
+ elementStylesMap: _constants.NO_STYLES
105
97
  };
106
98
  }
107
99
  });
108
- const stylesMap = (0, _reactNativeReanimated.useDerivedValue)(() => {
100
+ const layerStylesMap = (0, _reactNativeReanimated.useDerivedValue)(() => {
109
101
  "worklet";
110
102
 
111
- return styleResolution.value.stylesMap;
103
+ return rawStyleResolution.value.layerStylesMap;
112
104
  });
113
- const resolutionMode = (0, _reactNativeReanimated.useDerivedValue)(() => {
105
+ const elementStylesMap = (0, _reactNativeReanimated.useDerivedValue)(() => {
114
106
  "worklet";
115
107
 
116
- return styleResolution.value.resolutionMode;
108
+ const {
109
+ resolvedStylesMap,
110
+ nextPreviousStyleKeysBySlot
111
+ } = (0, _buildResolvedStyleMap.buildResolvedStyleMap)({
112
+ currentStylesMap: rawStyleResolution.value.elementStylesMap,
113
+ fallbackStylesMap: parentContext?.elementStylesMap.value ?? _constants.NO_STYLES,
114
+ previousStyleKeysBySlot: previousElementStyleKeysBySlot.value
115
+ });
116
+ previousElementStyleKeysBySlot.value = nextPreviousStyleKeysBySlot;
117
+ return resolvedStylesMap;
117
118
  });
118
119
  const value = (0, _react.useMemo)(() => {
119
- // Build ancestor chain: [parent, grandparent, great-grandparent, ...]
120
- const ancestorStylesMaps = parentCtx ? [parentCtx.stylesMap, ...parentCtx.ancestorStylesMaps] : [];
121
120
  return {
122
- stylesMap,
123
- ancestorStylesMaps,
124
- resolutionMode
121
+ layerStylesMap,
122
+ elementStylesMap
125
123
  };
126
- }, [resolutionMode, stylesMap, parentCtx]);
124
+ }, [elementStylesMap, layerStylesMap]);
127
125
  return {
128
126
  value,
129
127
  children
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","_constants","_createProvider","_interopRequireDefault","_logger","_animation","_buildResolvedStyleMap","_resolveInterpolatedStyleOutput","_splitNormalizedStyleMaps","e","__esModule","default","ScreenStylesProvider","ScreenStylesContext","useScreenStylesContext","useScreenStyles","createProvider","guarded","children","parentContext","useContext","screenInterpolatorProps","nextInterpolator","currentInterpolator","boundsAccessor","useScreenAnimationContext","isGesturingDuringCloseAnimation","useSharedValue","hasWarnedLegacy","previousElementStyleKeysBySlot","rawStyleResolution","useDerivedValue","props","value","current","next","progress","isDragging","gesture","dragging","isNextClosing","closing","isInGestureMode","interpolator","layerStylesMap","NO_STYLES","elementStylesMap","effectiveProgress","effectiveNext","undefined","raw","bounds","stylesMap","wasLegacy","resolveInterpolatedStyleOutput","splitNormalizedStyleMaps","__DEV__","logger","warn","err","console","resolvedStylesMap","nextPreviousStyleKeysBySlot","buildResolvedStyleMap","currentStylesMap","fallbackStylesMap","previousStyleKeysBySlot","useMemo","exports"],"sourceRoot":"../../../../../../src","sources":["shared/providers/screen/styles/styles.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAKA,IAAAE,UAAA,GAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,sBAAA,GAAAP,OAAA;AAIA,IAAAQ,+BAAA,GAAAR,OAAA;AACA,IAAAS,yBAAA,GAAAT,OAAA;AAAiF,SAAAI,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAW1E,MAAM;EACZG,oBAAoB;EACpBC,mBAAmB;EACnBC,sBAAsB,EAAEC;AACzB,CAA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CAACa,gBAAgB;MAC3DmB,iBAAiB,EAChB9C,aAAa,EAAE2B,gBAAgB,CAACb,KAAK,IAAIY,oBAAS;MACnDqB,uBAAuB,EAAErC,8BAA8B,CAACI;IACzD,CAAC,CAAC;IAEHJ,8BAA8B,CAACI,KAAK,GAAG6B,2BAA2B;IAElE,OAAOD,iBAAiB;EACzB,CAAC,CAAC;EAEH,MAAM5B,KAAK,GAAG,IAAAkC,cAAO,EAA2B,MAAM;IACrD,OAAO;MACNvB,cAAc;MACdE;IACD,CAAC;EACF,CAAC,EAAE,CAACA,gBAAgB,EAAEF,cAAc,CAAC,CAAC;EAEtC,OAAO;IAAEX,KAAK;IAAEf;EAAS,CAAC;AAC3B,CACD,CAAC;AAACkD,OAAA,CAAArD,eAAA,GAAAA,eAAA;AAAAqD,OAAA,CAAAvD,mBAAA,GAAAA,mBAAA;AAAAuD,OAAA,CAAAxD,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -9,24 +9,30 @@ var _createStore = require("../utils/create-store");
9
9
  function createAnimationBag() {
10
10
  return {
11
11
  progress: (0, _reactNativeReanimated.makeMutable)(0),
12
+ willAnimate: (0, _reactNativeReanimated.makeMutable)(0),
12
13
  closing: (0, _reactNativeReanimated.makeMutable)(0),
13
14
  animating: (0, _reactNativeReanimated.makeMutable)(0),
14
- entering: (0, _reactNativeReanimated.makeMutable)(0)
15
+ entering: (0, _reactNativeReanimated.makeMutable)(0),
16
+ settled: (0, _reactNativeReanimated.makeMutable)(1),
17
+ logicallySettled: (0, _reactNativeReanimated.makeMutable)(1)
15
18
  };
16
19
  }
17
20
 
18
21
  /**
19
22
  * Route-keyed screen transition state for the public animation lifecycle. These
20
- * shared values track the current progress and whether a screen is entering,
21
- * closing, or actively animating.
23
+ * shared values track the current progress, whether a transition is about to
24
+ * begin, and whether a screen is entering, closing, or actively animating.
22
25
  */
23
26
  const AnimationStore = exports.AnimationStore = (0, _createStore.createStore)({
24
27
  createBag: createAnimationBag,
25
28
  disposeBag: bag => {
26
29
  (0, _reactNativeReanimated.cancelAnimation)(bag.progress);
30
+ (0, _reactNativeReanimated.cancelAnimation)(bag.willAnimate);
27
31
  (0, _reactNativeReanimated.cancelAnimation)(bag.animating);
28
32
  (0, _reactNativeReanimated.cancelAnimation)(bag.closing);
29
33
  (0, _reactNativeReanimated.cancelAnimation)(bag.entering);
34
+ (0, _reactNativeReanimated.cancelAnimation)(bag.settled);
35
+ (0, _reactNativeReanimated.cancelAnimation)(bag.logicallySettled);
30
36
  }
31
37
  });
32
38
  //# sourceMappingURL=animation.store.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_createStore","createAnimationBag","progress","makeMutable","closing","animating","entering","AnimationStore","exports","createStore","createBag","disposeBag","bag","cancelAnimation"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AASA,SAASE,kBAAkBA,CAAA,EAAsB;EAChD,OAAO;IACNC,QAAQ,EAAE,IAAAC,kCAAW,EAAC,CAAC,CAAC;IACxBC,OAAO,EAAE,IAAAD,kCAAW,EAAC,CAAC,CAAC;IACvBE,SAAS,EAAE,IAAAF,kCAAW,EAAC,CAAC,CAAC;IACzBG,QAAQ,EAAE,IAAAH,kCAAW,EAAC,CAAC;EACxB,CAAC;AACF;;AAEA;AACA;AACA;AACA;AACA;AACO,MAAMI,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAAE,wBAAW,EAAoB;EAC5DC,SAAS,EAAET,kBAAkB;EAC7BU,UAAU,EAAGC,GAAG,IAAK;IACpB,IAAAC,sCAAe,EAACD,GAAG,CAACV,QAAQ,CAAC;IAC7B,IAAAW,sCAAe,EAACD,GAAG,CAACP,SAAS,CAAC;IAC9B,IAAAQ,sCAAe,EAACD,GAAG,CAACR,OAAO,CAAC;IAC5B,IAAAS,sCAAe,EAACD,GAAG,CAACN,QAAQ,CAAC;EAC9B;AACD,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","_createStore","createAnimationBag","progress","makeMutable","willAnimate","closing","animating","entering","settled","logicallySettled","AnimationStore","exports","createStore","createBag","disposeBag","bag","cancelAnimation"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAYA,SAASE,kBAAkBA,CAAA,EAAsB;EAChD,OAAO;IACNC,QAAQ,EAAE,IAAAC,kCAAW,EAAC,CAAC,CAAC;IACxBC,WAAW,EAAE,IAAAD,kCAAW,EAAC,CAAC,CAAC;IAC3BE,OAAO,EAAE,IAAAF,kCAAW,EAAC,CAAC,CAAC;IACvBG,SAAS,EAAE,IAAAH,kCAAW,EAAC,CAAC,CAAC;IACzBI,QAAQ,EAAE,IAAAJ,kCAAW,EAAC,CAAC,CAAC;IACxBK,OAAO,EAAE,IAAAL,kCAAW,EAAC,CAAC,CAAC;IACvBM,gBAAgB,EAAE,IAAAN,kCAAW,EAAC,CAAC;EAChC,CAAC;AACF;;AAEA;AACA;AACA;AACA;AACA;AACO,MAAMO,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAAE,wBAAW,EAAoB;EAC5DC,SAAS,EAAEZ,kBAAkB;EAC7Ba,UAAU,EAAGC,GAAG,IAAK;IACpB,IAAAC,sCAAe,EAACD,GAAG,CAACb,QAAQ,CAAC;IAC7B,IAAAc,sCAAe,EAACD,GAAG,CAACX,WAAW,CAAC;IAChC,IAAAY,sCAAe,EAACD,GAAG,CAACT,SAAS,CAAC;IAC9B,IAAAU,sCAAe,EAACD,GAAG,CAACV,OAAO,CAAC;IAC5B,IAAAW,sCAAe,EAACD,GAAG,CAACR,QAAQ,CAAC;IAC7B,IAAAS,sCAAe,EAACD,GAAG,CAACP,OAAO,CAAC;IAC5B,IAAAQ,sCAAe,EAACD,GAAG,CAACN,gBAAgB,CAAC;EACtC;AACD,CAAC,CAAC","ignoreList":[]}
@@ -163,6 +163,17 @@ const findLatestPendingIndex = (stack, expectedSourceScreenKey) => {
163
163
  }
164
164
  return -1;
165
165
  };
166
+ const findLatestSourceIndex = (stack, expectedSourceScreenKey) => {
167
+ "worklet";
168
+
169
+ if (!expectedSourceScreenKey) return -1;
170
+ for (let i = stack.length - 1; i >= 0; i--) {
171
+ if ((0, _matching.matchesScreenKey)(stack[i].source, expectedSourceScreenKey)) {
172
+ return i;
173
+ }
174
+ }
175
+ return -1;
176
+ };
166
177
  function setLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys) {
167
178
  "worklet";
168
179
 
@@ -172,10 +183,12 @@ function setLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys, e
172
183
  const tagState = state[tag];
173
184
  const stack = tagState?.linkStack;
174
185
  if (!stack || stack.length === 0) return state;
175
- const targetIndex = findLatestPendingIndex(stack, expectedSourceScreenKey);
186
+ let targetIndex = findLatestPendingIndex(stack, expectedSourceScreenKey);
187
+ if (targetIndex === -1) {
188
+ targetIndex = findLatestSourceIndex(stack, expectedSourceScreenKey);
189
+ }
176
190
  if (targetIndex === -1) return state;
177
191
  const targetLink = stack[targetIndex];
178
- if (targetLink.destination !== null) return state;
179
192
  targetLink.destination = {
180
193
  screenKey,
181
194
  ancestorKeys,
@@ -208,6 +221,9 @@ function updateLinkDestination(tag, screenKey, bounds, styles = {}, ancestorKeys
208
221
  if (targetIndex === -1) {
209
222
  targetIndex = findLatestPendingIndex(stack, expectedSourceScreenKey);
210
223
  }
224
+ if (targetIndex === -1) {
225
+ targetIndex = findLatestSourceIndex(stack, expectedSourceScreenKey);
226
+ }
211
227
  if (targetIndex === -1) {
212
228
  return state;
213
229
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_matching","require","_state","LINK_HISTORY_LIMIT","ensureTagState","state","tag","createEmptyTagState","isSameScreenFamily","a","b","screenKey","ancestorKeys","includes","trimLinkHistory","tagState","overLimit","linkStack","length","splice","getSnapshot","key","registry","value","snapshots","snap","bounds","styles","registerSnapshot","navigatorKey","ancestorNavigatorKeys","modify","debugStoreSizeLog","setLinkSource","stack","topIndex","topLink","source","destination","push","updateLinkSource","targetIndex","i","link","matchesScreenKey","findLatestPendingIndex","expectedSourceScreenKey","setLinkDestination","targetLink","updateLinkDestination","getActiveLink","lastLink","hasPendingLink","hasPendingLinkFromSource","sourceScreenKey","getLatestPendingSourceScreenKey","hasSourceLink","hasDestinationLink"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/registry.ts"],"mappings":";;;;;;;;;;;;;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAOA,MAAME,kBAAkB,GAAG,CAAC;AAE5B,MAAMC,cAAc,GAAGA,CAACC,KAAoB,EAAEC,GAAU,KAAe;EACtE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG,IAAAC,0BAAmB,EAAC,CAAC;EACnC;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,kBAAkB,GAAGA,CAC1BC,CAAuD,EACvDC,CAAuD,KAC1C;EACb,SAAS;;EACT,OACCD,CAAC,CAACE,SAAS,KAAKD,CAAC,CAACC,SAAS,KAC1BF,CAAC,CAACG,YAAY,EAAEC,QAAQ,CAACH,CAAC,CAACC,SAAS,CAAC,IAAI,KAAK,CAAC,KAC/CD,CAAC,CAACE,YAAY,EAAEC,QAAQ,CAACJ,CAAC,CAACE,SAAS,CAAC,IAAI,KAAK,CAAC;AAElD,CAAC;AAED,MAAMG,eAAe,GAAIC,QAAkB,IAAK;EAC/C,SAAS;;EACT,MAAMC,SAAS,GAAGD,QAAQ,CAACE,SAAS,CAACC,MAAM,GAAGf,kBAAkB;EAChE,IAAIa,SAAS,IAAI,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A,OAAO,KAAK;AACb","ignoreList":[]}
1
+ {"version":3,"names":["_matching","require","_state","LINK_HISTORY_LIMIT","ensureTagState","state","tag","createEmptyTagState","isSameScreenFamily","a","b","screenKey","ancestorKeys","includes","trimLinkHistory","tagState","overLimit","linkStack","length","splice","getSnapshot","key","registry","value","snapshots","snap","bounds","styles","registerSnapshot","navigatorKey","ancestorNavigatorKeys","modify","debugStoreSizeLog","setLinkSource","stack","topIndex","topLink","source","destination","push","updateLinkSource","targetIndex","i","link","matchesScreenKey","findLatestPendingIndex","expectedSourceScreenKey","findLatestSourceIndex","setLinkDestination","targetLink","updateLinkDestination","getActiveLink","lastLink","hasPendingLink","hasPendingLinkFromSource","sourceScreenKey","getLatestPendingSourceScreenKey","hasSourceLink","hasDestinationLink"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/registry.ts"],"mappings":";;;;;;;;;;;;;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,MAAA,GAAAD,OAAA;AAOA,MAAME,kBAAkB,GAAG,CAAC;AAE5B,MAAMC,cAAc,GAAGA,CAACC,KAAoB,EAAEC,GAAU,KAAe;EACtE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG,IAAAC,0BAAmB,EAAC,CAAC;EACnC;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,kBAAkB,GAAGA,CAC1BC,CAAuD,EACvDC,CAAuD,KAC1C;EACb,SAAS;;EACT,OACCD,CAAC,CAACE,SAAS,KAAKD,CAAC,CAACC,SAAS,KAC1BF,CAAC,CAACG,YAAY,EAAEC,QAAQ,CAACH,CAAC,CAACC,SAAS,CAAC,IAAI,KAAK,CAAC,KAC/CD,CAAC,CAACE,YAAY,EAAEC,QAAQ,CAACJ,CAAC,CAACE,SAAS,CAAC,IAAI,KAAK,CAAC;AAElD,CAAC;AAED,MAAMG,eAAe,G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AAEwB,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,IAAI,IAAAE,0BAAgB,EAACV,KAAK,CAACQ,CAAC,CAAC,CAACL,MAAM,EAAE1B,SAAS,CAAC,EAAE,OAAO,IAAI;EAC9D;EAEA,OAAO,KAAK;AACb;AAEA,SAAS+C,kBAAkBA,CAACpD,GAAU,EAAEK,SAAoB,EAAW;EACtE,SAAS;;EACT,MAAMI,QAAQ,GAAGO,eAAQ,CAACC,KAAK,CAACjB,GAAG,CAAC;EACpC,MAAM4B,KAAK,GAAGnB,QAAQ,EAAEE,SAAS;EACjC,IAAI,CAACiB,KAAK,IAAIA,KAAK,CAAChB,MAAM,KAAK,CAAC,EAAE,OAAO,KAAK;EAE9C,KAAK,IAAIwB,CAAC,GAAGR,KAAK,CAAChB,MAAM,GAAG,CAAC,EAAEwB,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,IAAI,IAAAE,0BAAgB,EAACV,KAAK,CAACQ,CAAC,CAAC,CAACJ,WAAW,EAAE3B,SAAS,CAAC,EAAE,OAAO,IAAI;EACnE;EAEA,OAAO,KAAK;AACb","ignoreList":[]}
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.resolveTransitionPair = resolveTransitionPair;
7
7
  var _matching = require("../helpers/matching");
8
- var _registry = require("./registry");
9
8
  var _state = require("./state");
10
9
  const findLatestLink = (tagState, predicate) => {
11
10
  "worklet";
@@ -37,22 +36,6 @@ function findPendingLinkBySource(tagState, screenKey) {
37
36
  if (!screenKey) return null;
38
37
  return findLatestLink(tagState, link => link.destination === null && (0, _matching.matchesScreenKey)(link.source, screenKey));
39
38
  }
40
- function getSnapshotBoundsByPriority(tag, keys) {
41
- "worklet";
42
-
43
- for (let i = 0; i < keys.length; i++) {
44
- const key = keys[i];
45
- if (!key) continue;
46
- const snapshot = (0, _registry.getSnapshot)(tag, key);
47
- if (!snapshot) continue;
48
- return {
49
- bounds: snapshot.bounds,
50
- styles: snapshot.styles,
51
- screenKey: key
52
- };
53
- }
54
- return null;
55
- }
56
39
  function resolveTransitionPair(tag, context) {
57
40
  "worklet";
58
41
 
@@ -84,34 +67,12 @@ function resolveTransitionPair(tag, context) {
84
67
  }
85
68
  }
86
69
  }
87
- let sourceBounds = matchedLink?.source?.bounds ?? null;
88
- let destinationBounds = matchedLink?.destination?.bounds ?? null;
89
- let sourceStyles = matchedLink?.source?.styles ?? null;
90
- let destinationStyles = matchedLink?.destination?.styles ?? null;
91
- let sourceScreenKey = matchedLink?.source?.screenKey ?? null;
92
- let destinationScreenKey = matchedLink?.destination?.screenKey ?? null;
93
- let usedSnapshotSource = false;
94
- let usedSnapshotDestination = false;
95
- const sourceFallbackKeys = context.entering ? [context.previousScreenKey, context.currentScreenKey, context.nextScreenKey] : [context.currentScreenKey, context.previousScreenKey, context.nextScreenKey];
96
- const destinationFallbackKeys = context.entering ? [context.currentScreenKey, context.nextScreenKey] : [context.nextScreenKey, context.currentScreenKey];
97
- if (!sourceBounds) {
98
- const sourceSnapshot = getSnapshotBoundsByPriority(tag, sourceFallbackKeys);
99
- if (sourceSnapshot) {
100
- sourceBounds = sourceSnapshot.bounds;
101
- sourceStyles = sourceSnapshot.styles;
102
- sourceScreenKey = sourceSnapshot.screenKey;
103
- usedSnapshotSource = true;
104
- }
105
- }
106
- if (!destinationBounds) {
107
- const destinationSnapshot = getSnapshotBoundsByPriority(tag, destinationFallbackKeys);
108
- if (destinationSnapshot) {
109
- destinationBounds = destinationSnapshot.bounds;
110
- destinationStyles = destinationSnapshot.styles;
111
- destinationScreenKey = destinationSnapshot.screenKey;
112
- usedSnapshotDestination = true;
113
- }
114
- }
70
+ const sourceBounds = matchedLink?.source?.bounds ?? null;
71
+ const destinationBounds = matchedLink?.destination?.bounds ?? null;
72
+ const sourceStyles = matchedLink?.source?.styles ?? null;
73
+ const destinationStyles = matchedLink?.destination?.styles ?? null;
74
+ const sourceScreenKey = matchedLink?.source?.screenKey ?? null;
75
+ const destinationScreenKey = matchedLink?.destination?.screenKey ?? null;
115
76
  if (!sourceBounds || !destinationBounds) {
116
77
  (0, _state.debugResolverLog)(`unresolved tag=${tag} entering=${context.entering ? 1 : 0} source=${sourceBounds ? 1 : 0} destination=${destinationBounds ? 1 : 0} pending=${usedPending ? 1 : 0}`);
117
78
  }
@@ -122,9 +83,7 @@ function resolveTransitionPair(tag, context) {
122
83
  destinationStyles,
123
84
  sourceScreenKey,
124
85
  destinationScreenKey,
125
- usedPending,
126
- usedSnapshotSource,
127
- usedSnapshotDestination
86
+ usedPending
128
87
  };
129
88
  }
130
89
  //# sourceMappingURL=resolver.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_matching","require","_registry","_state","findLatestLink","tagState","predicate","stack","linkStack","i","length","link","findCompletedLinkByDestination","screenKey","destination","matchesScreenKey","findCompletedLinkBySource","source","findPendingLinkBySource","getSnapshotBoundsByPriority","tag","keys","key","snapshot","getSnapshot","bounds","styles","resolveTransitionPair","context","registry","value","matchedLink","usedPending","entering","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","destinationBounds","sourceStyles","destinationStyles","sourceScreenKey","destinationScreenKey","usedSnapshotSource","usedSnapshotDestination","sourceFallbackKeys","destinationFallbackKeys","sourceSnapshot","destinationSnapshot","debugResolverLog"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AASA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAEA,MAAMG,cAAc,GAAGA,CACtBC,QAAkB,EAClBC,SAAqC,KACjB;EACpB,SAAS;;EACT,MAAMC,KAAK,GAAGF,QAAQ,CAACG,SAAS;EAChC,KAAK,IAAIC,CAAC,GAAGF,KAAK,CAACG,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC3C,MAAME,IAAI,GAAGJ,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,CAACtB,MAAM;MACpCc,YAAY,GAAGQ,cAAc,CAACrB,MAAM;MACpCe,eAAe,GAAGM,cAAc,CAAClC,SAAS;MAC1C8B,kBAAkB,GAAG,IAAI;IAC1B;EACD;EAEA,IAAI,CAACL,iBAAiB,EAAE;IACvB,MAAMU,mBAAmB,GAAG7B,2BAA2B,CACtDC,GAAG,EACH0B,uBACD,CAAC;IACD,IAAIE,mBAAmB,EAAE;MACxBV,iBAAiB,GAAGU,mBAAmB,CAACvB,MAAM;MAC9Ce,iBAAiB,GAAGQ,mBAAmB,CAACtB,MAAM;MAC9CgB,oBAAoB,GAAGM,mBAAmB,CAACnC,SAAS;MACpD+B,uBAAuB,GAAG,IAAI;IAC/B;EACD;EAEA,IAAI,CAACP,YAAY,IAAI,CAACC,iBAAiB,EAAE;IACxC,IAAAW,uBAAgB,EACf,kBAAkB7B,GAAG,aAAaQ,OAAO,CAACK,QAAQ,GAAG,CAAC,GAAG,CAAC,WACzDI,YAAY,GAAG,CAAC,GAAG,CAAC,gBACLC,iBAAiB,GAAG,CAAC,GAAG,CAAC,YAAYN,WAAW,GAAG,CAAC,GAAG,CAAC,EACzE,CAAC;EACF;EAEA,OAAO;IACNK,YAAY;IACZC,iBAAiB;IACjBC,YAAY;IACZC,iBAAiB;IACjBC,eAAe;IACfC,oBAAoB;IACpBV,WAAW;IACXW,kBAAkB;IAClBC;EACD,CAAC;AACF","ignoreList":[]}
1
+ {"version":3,"names":["_matching","require","_state","findLatestLink","tagState","predicate","stack","linkStack","i","length","link","findCompletedLinkByDestination","screenKey","destination","matchesScreenKey","findCompletedLinkBySource","source","findPendingLinkBySource","resolveTransitionPair","tag","context","registry","value","matchedLink","usedPending","entering","currentScreenKey","previousScreenKey","nextScreenKey","sourceBounds","bounds","destinationBounds","sourceStyles","styles","destinationStyles","sourceScreenKey","destinationScreenKey","debugResolverLog"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/internals/resolver.ts"],"mappings":";;;;;;AAAA,IAAAA,S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AM,EAAEc,MAAM,IAAI,IAAI;EACxD,MAAMC,iBAAiB,GAAGR,WAAW,EAAEV,WAAW,EAAEiB,MAAM,IAAI,IAAI;EAClE,MAAME,YAAY,GAAGT,WAAW,EAAEP,MAAM,EAAEiB,MAAM,IAAI,IAAI;EACxD,MAAMC,iBAAiB,GAAGX,WAAW,EAAEV,WAAW,EAAEoB,MAAM,IAAI,IAAI;EAClE,MAAME,eAAe,GAAGZ,WAAW,EAAEP,MAAM,EAAEJ,SAAS,IAAI,IAAI;EAC9D,MAAMwB,oBAAoB,GAAGb,WAAW,EAAEV,WAAW,EAAED,SAAS,IAAI,IAAI;EAExE,IAAI,CAACiB,YAAY,IAAI,CAACE,iBAAiB,EAAE;IACxC,IAAAM,uBAAgB,EACf,kBAAkBlB,GAAG,aAAaC,OAAO,CAACK,QAAQ,GAAG,CAAC,GAAG,CAAC,WACzDI,YAAY,GAAG,CAAC,GAAG,CAAC,gBACLE,iBAAiB,GAAG,CAAC,GAAG,CAAC,YAAYP,WAAW,GAAG,CAAC,GAAG,CAAC,EACzE,CAAC;EACF;EAEA,OAAO;IACNK,YAAY;IACZE,iBAAiB;IACjBC,YAAY;IACZE,iBAAiB;IACjBC,eAAe;IACfC,oBAAoB;IACpBZ;EACD,CAAC;AACF","ignoreList":[]}
@@ -13,6 +13,7 @@ const animateToProgress = ({
13
13
  onAnimationFinish,
14
14
  animations,
15
15
  targetProgress,
16
+ emitWillAnimate = true,
16
17
  initialVelocity
17
18
  }) => {
18
19
  "worklet";
@@ -30,10 +31,19 @@ const animateToProgress = ({
30
31
  } : config;
31
32
  const {
32
33
  progress,
34
+ willAnimate,
33
35
  animating,
34
36
  closing,
35
37
  entering
36
38
  } = animations;
39
+ if (emitWillAnimate) {
40
+ willAnimate.set(_constants.TRUE);
41
+ requestAnimationFrame(() => {
42
+ "worklet";
43
+
44
+ willAnimate.set(_constants.FALSE);
45
+ });
46
+ }
37
47
  targetProgress.set(value);
38
48
  if (isClosing) {
39
49
  closing.set(_constants.TRUE);
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeReanimated","require","_constants","_animate","animateToProgress","target","spec","onAnimationFinish","animations","targetProgress","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","animating","closing","entering","set","TRUE","FALSE","runOnJS","animate","finished","requestAnimationFrame","exports"],"sourceRoot":"../../../../../src","sources":["shared/utils/animation/animate-to-progress.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAGA,IAAAE,QAAA,GAAAF,OAAA;AAkBO,MAAMG,iBAAiB,GAAGA,CAAC;EACjCC,MAAM;EACNC,IAAI;EACJC,iBAAiB;EACjBC,UAAU;EACVC,cAAc;EACdC;AACuB,CAAC,KAAK;EAC7B,SAAS;;EAET;EACA,MAAMC,SAAS,GACdN,MAAM,KAAK,OAAO,IAAK,OAAOA,MAAM,KAAK,QAAQ,IAAIA,MAAM,KAAK,CAAE;EACnE,MAAMO,KAAK,GAAG,OAAOP,MAAM,KAAK,QAAQ,GAAGA,MAAM,GAAGA,MAAM,KAAK,MAAM,GAAG,CAAC,GAAG,CAAC;;EAE7E;EACA,MAAMQ,MAAM,GAAGF,SAAS,GAAGL,IAAI,EAAEQ,KAAK,GAAGR,IAAI,EAAES,IAAI;EAEnD,MAAMC,cAAc,GACnB,CAAC,CAACH,MAAM,IAAI,EAAE,UAAU,IAAIA,MAAM,CAAC,IAAI,EAAE,QAAQ,IAAIA,MAAM,CAAC;EAE7D,MAAMI,eAAe,GACpBD,cAAc,IAAI,OAAON,eAAe,KAAK,QAAQ,GAClD;IAAE,GAAGG,MAAM;IAAEK,QAAQ,EAAER;EAAgB,CAAC,GACxCG,MAAM;EAEV,MAAM;IAAEM,QAAQ;IAAEC,SAAS;IAAEC,OAAO;IAAEC;EAAS,CAAC,GAAGd,UAAU;EAE7DC,cAAc,CAACc,GAAG,CAACX,KAAK,CAAC;EAEzB,IAAID,SAAS,EAAE;IACdU,OAAO,CAACE,GAAG,CAACC,eAAI,CAAC;IACjBF,QAAQ,CAACC,GAAG,CAACE,gBAAK,CAAC;EACpB,CAAC,MAAM;IACNH,QAAQ,CAACC,GAAG,CAACC,eAAI,CAAC;EACnB;EAEA,IAAI,CAACX,MAAM,EAAE;IACZO,SAAS,CAACG,GAAG,CAACE,gBAAK,CAAC;IACpBN,QAAQ,CAACI,GAAG,CAACX,KAAK,CAAC;IACnB,IAAI,CAACD,SAAS,EAAE;MACfW,QAAQ,CAACC,GAAG,CAACE,gBAAK,CAAC;IACpB;IAEA,IAAIlB,iBAAiB,EAAE;MACtB,IAAAmB,8BAAO,EAACnB,iBAAiB,CAAC,CAAC,IAAI,CAAC;IACjC;IACA;EACD;EAEAa,SAAS,CAACG,GAAG,CAACC,eAAI,CAAC,CAAC,CAAC;EACrBL,QAAQ,CAACI,GAAG,CACX,IAAAI,gBAAO,EAACf,KAAK,EAAEK,eAAe,EAAGW,QAAQ,IAAK;IAC7C,SAAS;;IACT,IAAI,CAACA,QAAQ,EAAE;IAEf,IAAI,CAACjB,SAAS,EAAE;MACfW,QAAQ,CAACC,GAAG,CAACE,gBAAK,CAAC;IACpB;IAEA,IAAIlB,iBAAiB,EAAE;MACtB,IAAAmB,8BAAO,EAACnB,iBAAiB,CAAC,CAACqB,QAAQ,CAAC;IACrC;;IAEA;IACAC,qBAAqB,CAAC,MAAM;MAC3BT,SAAS,CAACG,GAAG,CAACE,gBAAK,CAAC;IACrB,CAAC,CAAC;EACH,CAAC,CACF,CAAC;AACF,CAAC;AAACK,OAAA,CAAA1B,iBAAA,GAAAA,iBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeReanimated","require","_constants","_animate","animateToProgress","target","spec","onAnimationFinish","animations","targetProgress","emitWillAnimate","initialVelocity","isClosing","value","config","close","open","isSpringConfig","effectiveConfig","velocity","progress","willAnimate","animating","closing","entering","set","TRUE","requestAnimationFrame","FALSE","runOnJS","animate","finished","exports"],"source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,EAAE;IACdW,OAAO,CAACE,GAAG,CAACC,eAAI,CAAC;IACjBF,QAAQ,CAACC,GAAG,CAACG,gBAAK,CAAC;EACpB,CAAC,MAAM;IACNJ,QAAQ,CAACC,GAAG,CAACC,eAAI,CAAC;EACnB;EAEA,IAAI,CAACZ,MAAM,EAAE;IACZQ,SAAS,CAACG,GAAG,CAACG,gBAAK,CAAC;IACpBR,QAAQ,CAACK,GAAG,CAACZ,KAAK,CAAC;IACnB,IAAI,CAACD,SAAS,EAAE;MACfY,QAAQ,CAACC,GAAG,CAACG,gBAAK,CAAC;IACpB;IAEA,IAAIrB,iBAAiB,EAAE;MACtB,IAAAsB,8BAAO,EAACtB,iBAAiB,CAAC,CAAC,IAAI,CAAC;IACjC;IACA;EACD;EAEAe,SAAS,CAACG,GAAG,CAACC,eAAI,CAAC,CAAC,CAAC;EACrBN,QAAQ,CAACK,GAAG,CACX,IAAAK,gBAAO,EAACjB,KAAK,EAAEK,eAAe,EAAGa,QAAQ,IAAK;IAC7C,SAAS;;IACT,IAAI,CAACA,QAAQ,EAAE;IAEf,IAAI,CAACnB,SAAS,EAAE;MACfY,QAAQ,CAACC,GAAG,CAACG,gBAAK,CAAC;IACpB;IAEA,IAAIrB,iBAAiB,EAAE;MACtB,IAAAsB,8BAAO,EAACtB,iBAAiB,CAAC,CAACwB,QAAQ,CAAC;IACrC;;IAEA;IACAJ,qBAAqB,CAAC,MAAM;MAC3BL,SAAS,CAACG,GAAG,CAACG,gBAAK,CAAC;IACrB,CAAC,CAAC;EACH,CAAC,CACF,CAAC;AACF,CAAC;AAACI,OAAA,CAAA5B,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -35,8 +35,7 @@ const resolveBounds = params => {
35
35
  currentScreenKey,
36
36
  sourceScreenKey: resolvedPair.sourceScreenKey,
37
37
  destinationScreenKey: resolvedPair.destinationScreenKey,
38
- hasTargetOverride,
39
- usedSnapshotDestination: resolvedPair.usedSnapshotDestination
38
+ hasTargetOverride
40
39
  };
41
40
  }
42
41
 
@@ -49,8 +48,7 @@ const resolveBounds = params => {
49
48
  currentScreenKey,
50
49
  sourceScreenKey: resolvedPair.sourceScreenKey,
51
50
  destinationScreenKey: resolvedPair.destinationScreenKey,
52
- hasTargetOverride,
53
- usedSnapshotDestination: resolvedPair.usedSnapshotDestination
51
+ hasTargetOverride
54
52
  };
55
53
  }
56
54
  const start = sourceBounds;
@@ -69,8 +67,7 @@ const resolveBounds = params => {
69
67
  currentScreenKey,
70
68
  sourceScreenKey: resolvedPair.sourceScreenKey,
71
69
  destinationScreenKey: resolvedPair.destinationScreenKey,
72
- hasTargetOverride,
73
- usedSnapshotDestination: resolvedPair.usedSnapshotDestination
70
+ hasTargetOverride
74
71
  };
75
72
  };
76
73
  const computeBoundStyles = ({
@@ -89,7 +86,7 @@ const computeBoundStyles = ({
89
86
  if (computeOptions.raw) {
90
87
  return _constants.EMPTY_BOUND_HELPER_RESULT_RAW;
91
88
  }
92
- return _constants.HIDDEN_STYLE;
89
+ return _constants.NO_STYLES;
93
90
  }
94
91
  const {
95
92
  start,
@@ -97,9 +94,7 @@ const computeBoundStyles = ({
97
94
  entering,
98
95
  currentScreenKey,
99
96
  sourceScreenKey,
100
- destinationScreenKey,
101
- hasTargetOverride,
102
- usedSnapshotDestination
97
+ destinationScreenKey
103
98
  } = resolveBounds({
104
99
  id,
105
100
  previous,
@@ -117,8 +112,7 @@ const computeBoundStyles = ({
117
112
  }
118
113
  const ranges = entering ? _constants.ENTER_RANGE : _constants.EXIT_RANGE;
119
114
  if (computeOptions.method === "content") {
120
- const ignoresSnapshotDestinationOwnership = hasTargetOverride && usedSnapshotDestination && destinationScreenKey === sourceScreenKey;
121
- const currentOwnsSource = !!currentScreenKey && currentScreenKey === sourceScreenKey && (currentScreenKey !== destinationScreenKey || ignoresSnapshotDestinationOwnership);
115
+ const currentOwnsSource = !!currentScreenKey && currentScreenKey === sourceScreenKey && currentScreenKey !== destinationScreenKey;
122
116
  const contentStart = currentOwnsSource ? end : start;
123
117
  const contentEnd = currentOwnsSource ? start : end;
124
118
  const geometry = (0, _geometry.computeContentTransformGeometry)({
@@ -1 +1 @@
1
- {"version":3,"names":["_constants","require","_bounds","_geometry","_styleComposers","resolveBounds","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","BoundStore","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","usedSnapshotDestination","customTarget","computeBoundStyles","progress","raw","EMPTY_BOUND_HELPER_RESULT_RAW","HIDDEN_STYLE","ranges","ENTER_RANGE","EXIT_RANGE","method","ignoresSnapshotDestinationOwnership","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/compute-bounds-styles.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAOA,IAAAC,OAAA,GAAAD,OAAA;AAWA,IAAAE,SAAA,GAAAF,OAAA;AAIA,IAAAG,eAAA,GAAAH,OAAA;AASA,MAAMI,aAAa,GAAIC,MAStB,IAAK;EACL,SAAS;;EAET,MAAMC,QAAQ,GAAG,CAACD,MAAM,CAACE,IAAI;EAC7B,MAAMC,UAAU,GAAG,IAAAC,gCAAqB,EAACJ,MAAM,CAACK,UAAU,CAAC;EAE3D,MAAMC,kBAAkB,GAAGN,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,YAAY;EACxE,MAAMC,eAAe,GAAG,OAAOT,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,QAAQ;EACxE,MAAME,iBAAiB,GAAGJ,kBAAkB,IAAIG,eAAe;EAE/D,MAAME,gBAAgB,GAAGX,MAA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AwB,EAACN,MAAM,CAAC,GAChC,IAAAO,wCAAwB,EAACP,MAAM,CAAC;AACrC,CAAC;AAACQ,OAAA,CAAA3B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_constants","require","_bounds","_geometry","_styleComposers","resolveBounds","params","entering","next","fullscreen","FULLSCREEN_DIMENSIONS","dimensions","isFullscreenTarget","computeOptions","target","hasCustomTarget","hasTargetOverride","currentScreenKey","current","route","key","previousScreenKey","previous","nextScreenKey","resolvedPair","BoundStore","resolveTransitionPair","String","id","sourceBounds","destinationBounds","start","end","sourceScreenKey","destinationScreenKey","customTarget","computeBoundStyles","progress","raw","EMPTY_BOUND_HELPER_RESULT_RAW","NO_STYLES","HIDDEN_STYLE","ranges","ENTER_RANGE","EXIT_RANGE","method","currentOwnsSource","contentStart","contentEnd","geometry","computeContentTransformGeometry","anchor","scaleMode","composeContentStyle","computeRelativeGeometry","common","isSize","isAbsolute","space","composeSizeAbsolute","composeSizeRelative","composeTransformAbsolute","composeTransformRelative","exports"],"sourceRoot":"../../../../../../src","sources":["shared/utils/bounds/helpers/compute-bounds-styles.ts"],"mappings":";;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAQA,IAAAC,OAAA,GAAAD,OAAA;AAWA,IAAAE,SAAA,GAAAF,OAAA;AAIA,IAAAG,eAAA,GAAAH,OAAA;AASA,MAAMI,aAAa,GAAIC,MAStB,IAAK;EACL,SAAS;;EAET,MAAMC,QAAQ,GAAG,CAACD,MAAM,CAACE,IAAI;EAC7B,MAAMC,UAAU,GAAG,IAAAC,gCAAqB,EAACJ,MAAM,CAACK,UAAU,CAAC;EAE3D,MAAMC,kBAAkB,GAAGN,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,YAAY;EACxE,MAAMC,eAAe,GAAG,OAAOT,MAAM,CAACO,cAAc,CAACC,MAAM,KAAK,QAAQ;EACxE,MAAME,iBAAiB,GAAGJ,kBAAkB,IAAIG,eAAe;EAE/D,MAAME,gBA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