react-native-screen-transitions 3.4.0-alpha.1 → 3.4.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/README.md +11 -1109
  2. package/lib/commonjs/blank-stack/navigators/create-blank-stack-navigator.js +69 -2
  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 +9 -0
  5. package/lib/commonjs/component-stack/navigators/create-component-stack-navigator.js.map +1 -1
  6. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +195 -0
  7. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -0
  8. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -14
  9. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
  10. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +19 -18
  11. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
  12. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +54 -0
  13. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +1 -0
  14. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +40 -8
  15. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -1
  16. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +72 -0
  17. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +1 -0
  18. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +16 -7
  19. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -1
  20. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +7 -4
  21. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  22. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +14 -15
  23. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -1
  24. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +27 -9
  25. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -1
  26. package/lib/commonjs/shared/components/create-boundary-component/index.js +23 -10
  27. package/lib/commonjs/shared/components/create-boundary-component/index.js.map +1 -1
  28. package/lib/commonjs/shared/components/create-transition-aware-component.js +4 -4
  29. package/lib/commonjs/shared/components/create-transition-aware-component.js.map +1 -1
  30. package/lib/commonjs/shared/components/native-screen-container.js +12 -6
  31. package/lib/commonjs/shared/components/native-screen-container.js.map +1 -1
  32. package/lib/commonjs/shared/components/native-screen.js +35 -8
  33. package/lib/commonjs/shared/components/native-screen.js.map +1 -1
  34. package/lib/commonjs/shared/components/screen-container/deferred-visibility-host.js +43 -0
  35. package/lib/commonjs/shared/components/screen-container/deferred-visibility-host.js.map +1 -0
  36. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js +60 -0
  37. package/lib/commonjs/shared/components/screen-container/hooks/use-content-layout.js.map +1 -0
  38. package/lib/commonjs/shared/components/screen-container/index.js +7 -4
  39. package/lib/commonjs/shared/components/screen-container/index.js.map +1 -1
  40. package/lib/commonjs/shared/components/screen-container/layers/content.js +32 -48
  41. package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
  42. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +9 -20
  43. package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  44. package/lib/commonjs/shared/configs/presets.js +6 -6
  45. package/lib/commonjs/shared/configs/presets.js.map +1 -1
  46. package/lib/commonjs/shared/constants.js +10 -4
  47. package/lib/commonjs/shared/constants.js.map +1 -1
  48. package/lib/commonjs/shared/hooks/animation/use-associated-style.js +9 -34
  49. package/lib/commonjs/shared/hooks/animation/use-associated-style.js.map +1 -1
  50. package/lib/commonjs/shared/index.js +4 -10
  51. package/lib/commonjs/shared/index.js.map +1 -1
  52. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js +6 -7
  53. package/lib/commonjs/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
  54. package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js +11 -6
  55. package/lib/commonjs/shared/providers/gestures/helpers/gesture-activation.js.map +1 -1
  56. package/lib/commonjs/shared/providers/layout-anchor.provider.js +4 -6
  57. package/lib/commonjs/shared/providers/layout-anchor.provider.js.map +1 -1
  58. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +14 -7
  59. package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  60. package/lib/commonjs/shared/providers/screen/helpers/resolve-interpolated-style-output.js +36 -0
  61. package/lib/commonjs/shared/providers/screen/helpers/resolve-interpolated-style-output.js.map +1 -0
  62. package/lib/commonjs/shared/providers/screen/styles.provider.js +31 -10
  63. package/lib/commonjs/shared/providers/screen/styles.provider.js.map +1 -1
  64. package/lib/commonjs/shared/providers/stack/core.provider.js +14 -21
  65. package/lib/commonjs/shared/providers/stack/core.provider.js.map +1 -1
  66. package/lib/commonjs/shared/stores/animation.store.js +3 -1
  67. package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
  68. package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -1
  69. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js +16 -7
  70. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
  71. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js +0 -5
  72. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
  73. package/lib/commonjs/shared/utils/bounds/index.js +10 -0
  74. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  75. package/lib/commonjs/shared/utils/bounds/types/frame-props.js +6 -0
  76. package/lib/commonjs/shared/utils/bounds/types/frame-props.js.map +1 -0
  77. package/lib/commonjs/shared/utils/bounds/zoom/build.js +34 -31
  78. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
  79. package/lib/commonjs/shared/utils/resolve-screen-transition-options.js +25 -0
  80. package/lib/commonjs/shared/utils/resolve-screen-transition-options.js.map +1 -0
  81. package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js +69 -3
  82. package/lib/module/blank-stack/navigators/create-blank-stack-navigator.js.map +1 -1
  83. package/lib/module/component-stack/navigators/create-component-stack-navigator.js +9 -0
  84. package/lib/module/component-stack/navigators/create-component-stack-navigator.js.map +1 -1
  85. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +182 -0
  86. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -0
  87. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js +7 -14
  88. package/lib/module/shared/components/create-boundary-component/hooks/use-auto-source-measurement.js.map +1 -1
  89. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js +19 -18
  90. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.js.map +1 -1
  91. package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js +49 -0
  92. package/lib/module/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.js.map +1 -0
  93. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js +41 -8
  94. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-measurement.js.map +1 -1
  95. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js +67 -0
  96. package/lib/module/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.js.map +1 -0
  97. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js +16 -7
  98. package/lib/module/shared/components/create-boundary-component/hooks/use-initial-layout-handler.js.map +1 -1
  99. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +7 -4
  100. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  101. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js +14 -15
  102. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.js.map +1 -1
  103. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js +27 -9
  104. package/lib/module/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.js.map +1 -1
  105. package/lib/module/shared/components/create-boundary-component/index.js +23 -10
  106. package/lib/module/shared/components/create-boundary-component/index.js.map +1 -1
  107. package/lib/module/shared/components/create-transition-aware-component.js +4 -4
  108. package/lib/module/shared/components/create-transition-aware-component.js.map +1 -1
  109. package/lib/module/shared/components/native-screen-container.js +12 -6
  110. package/lib/module/shared/components/native-screen-container.js.map +1 -1
  111. package/lib/module/shared/components/native-screen.js +35 -8
  112. package/lib/module/shared/components/native-screen.js.map +1 -1
  113. package/lib/module/shared/components/screen-container/deferred-visibility-host.js +38 -0
  114. package/lib/module/shared/components/screen-container/deferred-visibility-host.js.map +1 -0
  115. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js +56 -0
  116. package/lib/module/shared/components/screen-container/hooks/use-content-layout.js.map +1 -0
  117. package/lib/module/shared/components/screen-container/index.js +7 -4
  118. package/lib/module/shared/components/screen-container/index.js.map +1 -1
  119. package/lib/module/shared/components/screen-container/layers/content.js +37 -53
  120. package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
  121. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +10 -21
  122. package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
  123. package/lib/module/shared/configs/presets.js +7 -7
  124. package/lib/module/shared/configs/presets.js.map +1 -1
  125. package/lib/module/shared/constants.js +9 -3
  126. package/lib/module/shared/constants.js.map +1 -1
  127. package/lib/module/shared/hooks/animation/use-associated-style.js +10 -35
  128. package/lib/module/shared/hooks/animation/use-associated-style.js.map +1 -1
  129. package/lib/module/shared/index.js +1 -1
  130. package/lib/module/shared/index.js.map +1 -1
  131. package/lib/module/shared/providers/gestures/handlers/use-handlers.js +6 -7
  132. package/lib/module/shared/providers/gestures/handlers/use-handlers.js.map +1 -1
  133. package/lib/module/shared/providers/gestures/helpers/gesture-activation.js +11 -6
  134. package/lib/module/shared/providers/gestures/helpers/gesture-activation.js.map +1 -1
  135. package/lib/module/shared/providers/layout-anchor.provider.js +4 -6
  136. package/lib/module/shared/providers/layout-anchor.provider.js.map +1 -1
  137. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +14 -7
  138. package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
  139. package/lib/module/shared/providers/screen/helpers/resolve-interpolated-style-output.js +31 -0
  140. package/lib/module/shared/providers/screen/helpers/resolve-interpolated-style-output.js.map +1 -0
  141. package/lib/module/shared/providers/screen/styles.provider.js +30 -11
  142. package/lib/module/shared/providers/screen/styles.provider.js.map +1 -1
  143. package/lib/module/shared/providers/stack/core.provider.js +14 -21
  144. package/lib/module/shared/providers/stack/core.provider.js.map +1 -1
  145. package/lib/module/shared/stores/animation.store.js +3 -1
  146. package/lib/module/shared/stores/animation.store.js.map +1 -1
  147. package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -1
  148. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js +17 -8
  149. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +1 -1
  150. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js +0 -5
  151. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +1 -1
  152. package/lib/module/shared/utils/bounds/index.js +10 -0
  153. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  154. package/lib/module/shared/utils/bounds/types/frame-props.js +4 -0
  155. package/lib/module/shared/utils/bounds/types/frame-props.js.map +1 -0
  156. package/lib/module/shared/utils/bounds/zoom/build.js +35 -32
  157. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
  158. package/lib/module/shared/utils/resolve-screen-transition-options.js +19 -0
  159. package/lib/module/shared/utils/resolve-screen-transition-options.js.map +1 -0
  160. package/lib/typescript/blank-stack/index.d.ts +1 -1
  161. package/lib/typescript/blank-stack/index.d.ts.map +1 -1
  162. package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts +29 -4
  163. package/lib/typescript/blank-stack/navigators/create-blank-stack-navigator.d.ts.map +1 -1
  164. package/lib/typescript/blank-stack/types.d.ts +33 -4
  165. package/lib/typescript/blank-stack/types.d.ts.map +1 -1
  166. package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts +8 -0
  167. package/lib/typescript/component-stack/navigators/create-component-stack-navigator.d.ts.map +1 -1
  168. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +81 -0
  169. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -0
  170. package/lib/typescript/shared/components/create-boundary-component/hooks/use-auto-source-measurement.d.ts.map +1 -1
  171. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts +2 -3
  172. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.d.ts.map +1 -1
  173. package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts +11 -0
  174. package/lib/typescript/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.d.ts.map +1 -0
  175. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts +2 -2
  176. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-measurement.d.ts.map +1 -1
  177. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts +11 -0
  178. package/lib/typescript/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.d.ts.map +1 -0
  179. package/lib/typescript/shared/components/create-boundary-component/hooks/use-initial-layout-handler.d.ts.map +1 -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-pending-destination-retry-measurement.d.ts +3 -3
  182. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.d.ts.map +1 -1
  183. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts +2 -2
  184. package/lib/typescript/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.d.ts.map +1 -1
  185. package/lib/typescript/shared/components/create-boundary-component/index.d.ts +5 -3
  186. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
  187. package/lib/typescript/shared/components/create-boundary-component/types.d.ts +2 -4
  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 +1 -0
  190. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  191. package/lib/typescript/shared/components/native-screen-container.d.ts.map +1 -1
  192. package/lib/typescript/shared/components/native-screen.d.ts.map +1 -1
  193. package/lib/typescript/shared/components/screen-container/deferred-visibility-host.d.ts +13 -0
  194. package/lib/typescript/shared/components/screen-container/deferred-visibility-host.d.ts.map +1 -0
  195. package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts +3 -0
  196. package/lib/typescript/shared/components/screen-container/hooks/use-content-layout.d.ts.map +1 -0
  197. package/lib/typescript/shared/components/screen-container/index.d.ts.map +1 -1
  198. package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
  199. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts +3 -1
  200. package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
  201. package/lib/typescript/shared/configs/index.d.ts.map +1 -1
  202. package/lib/typescript/shared/constants.d.ts +9 -3
  203. package/lib/typescript/shared/constants.d.ts.map +1 -1
  204. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts +5 -11
  205. package/lib/typescript/shared/hooks/animation/use-associated-style.d.ts.map +1 -1
  206. package/lib/typescript/shared/index.d.ts +1 -2
  207. package/lib/typescript/shared/index.d.ts.map +1 -1
  208. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts +1 -1
  209. package/lib/typescript/shared/providers/gestures/handlers/use-handlers.d.ts.map +1 -1
  210. package/lib/typescript/shared/providers/gestures/helpers/gesture-activation.d.ts.map +1 -1
  211. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts +1 -1
  212. package/lib/typescript/shared/providers/layout-anchor.provider.d.ts.map +1 -1
  213. package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
  214. package/lib/typescript/shared/providers/screen/helpers/resolve-interpolated-style-output.d.ts +10 -0
  215. package/lib/typescript/shared/providers/screen/helpers/resolve-interpolated-style-output.d.ts.map +1 -0
  216. package/lib/typescript/shared/providers/screen/styles.provider.d.ts +4 -2
  217. package/lib/typescript/shared/providers/screen/styles.provider.d.ts.map +1 -1
  218. package/lib/typescript/shared/providers/stack/core.provider.d.ts +2 -0
  219. package/lib/typescript/shared/providers/stack/core.provider.d.ts.map +1 -1
  220. package/lib/typescript/shared/stores/animation.store.d.ts +5 -3
  221. package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
  222. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +1 -1
  223. package/lib/typescript/shared/types/animation.types.d.ts +13 -1
  224. package/lib/typescript/shared/types/animation.types.d.ts.map +1 -1
  225. package/lib/typescript/shared/types/screen.types.d.ts +51 -22
  226. package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
  227. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts +11 -1
  228. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +1 -1
  229. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +1 -1
  230. package/lib/typescript/shared/utils/bounds/index.d.ts +2 -2
  231. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  232. package/lib/typescript/shared/utils/bounds/types/frame-props.d.ts +5 -0
  233. package/lib/typescript/shared/utils/bounds/types/frame-props.d.ts.map +1 -0
  234. package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts +4 -4
  235. package/lib/typescript/shared/utils/bounds/zoom/accessor.d.ts.map +1 -1
  236. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts +2 -2
  237. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
  238. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts +3 -3
  239. package/lib/typescript/shared/utils/bounds/zoom/types.d.ts.map +1 -1
  240. package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts +5 -0
  241. package/lib/typescript/shared/utils/resolve-screen-transition-options.d.ts.map +1 -0
  242. package/package.json +2 -1
  243. package/src/blank-stack/index.ts +1 -0
  244. package/src/blank-stack/navigators/create-blank-stack-navigator.tsx +138 -19
  245. package/src/blank-stack/types.ts +33 -5
  246. package/src/component-stack/navigators/create-component-stack-navigator.tsx +8 -0
  247. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +258 -0
  248. package/src/shared/components/create-boundary-component/hooks/use-auto-source-measurement.ts +7 -17
  249. package/src/shared/components/create-boundary-component/hooks/use-boundary-measure-and-store.ts +38 -28
  250. package/src/shared/components/create-boundary-component/hooks/use-deferred-measurement-trigger.ts +58 -0
  251. package/src/shared/components/create-boundary-component/hooks/use-group-active-measurement.ts +41 -10
  252. package/src/shared/components/create-boundary-component/hooks/use-group-active-source-measurement.ts +82 -0
  253. package/src/shared/components/create-boundary-component/hooks/use-initial-layout-handler.ts +24 -12
  254. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +11 -9
  255. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-retry-measurement.ts +29 -26
  256. package/src/shared/components/create-boundary-component/hooks/use-scroll-settled-measurement.ts +26 -17
  257. package/src/shared/components/create-boundary-component/index.tsx +25 -7
  258. package/src/shared/components/create-boundary-component/types.ts +8 -4
  259. package/src/shared/components/create-transition-aware-component.tsx +5 -3
  260. package/src/shared/components/native-screen-container.tsx +11 -3
  261. package/src/shared/components/native-screen.tsx +65 -20
  262. package/src/shared/components/screen-container/deferred-visibility-host.tsx +37 -0
  263. package/src/shared/components/screen-container/hooks/use-content-layout.ts +82 -0
  264. package/src/shared/components/screen-container/index.tsx +5 -2
  265. package/src/shared/components/screen-container/layers/content.tsx +53 -80
  266. package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +12 -27
  267. package/src/shared/configs/presets.ts +10 -10
  268. package/src/shared/constants.ts +5 -3
  269. package/src/shared/hooks/animation/use-associated-style.ts +10 -54
  270. package/src/shared/index.ts +2 -3
  271. package/src/shared/providers/gestures/handlers/use-handlers.ts +8 -5
  272. package/src/shared/providers/gestures/helpers/gesture-activation.ts +11 -6
  273. package/src/shared/providers/layout-anchor.provider.tsx +2 -5
  274. package/src/shared/providers/register-bounds.provider.tsx +1 -1
  275. package/src/shared/providers/screen/animation/helpers/pipeline.ts +24 -8
  276. package/src/shared/providers/screen/helpers/resolve-interpolated-style-output.ts +41 -0
  277. package/src/shared/providers/screen/styles.provider.tsx +95 -72
  278. package/src/shared/providers/stack/core.provider.tsx +27 -14
  279. package/src/shared/stores/animation.store.ts +11 -7
  280. package/src/shared/stores/bounds/internals/presence.ts +3 -1
  281. package/src/shared/types/animation.types.ts +13 -1
  282. package/src/shared/types/screen.types.ts +55 -22
  283. package/src/shared/utils/bounds/helpers/compute-bounds-styles.ts +17 -3
  284. package/src/shared/utils/bounds/helpers/resolve-bound-tag.ts +0 -6
  285. package/src/shared/utils/bounds/index.ts +16 -5
  286. package/src/shared/utils/bounds/types/frame-props.ts +5 -0
  287. package/src/shared/utils/bounds/zoom/accessor.ts +3 -3
  288. package/src/shared/utils/bounds/zoom/build.ts +46 -32
  289. package/src/shared/utils/bounds/zoom/types.ts +3 -3
  290. package/src/shared/utils/resolve-screen-transition-options.ts +37 -0
  291. package/lib/commonjs/shared/providers/viewport.provider.js +0 -33
  292. package/lib/commonjs/shared/providers/viewport.provider.js.map +0 -1
  293. package/lib/module/shared/providers/viewport.provider.js +0 -27
  294. package/lib/module/shared/providers/viewport.provider.js.map +0 -1
  295. package/lib/typescript/shared/providers/viewport.provider.d.ts +0 -13
  296. package/lib/typescript/shared/providers/viewport.provider.d.ts.map +0 -1
  297. package/src/shared/providers/viewport.provider.tsx +0 -39
@@ -1,13 +1,15 @@
1
1
  import { type ReactNode } from "react";
2
2
  import { type SharedValue } from "react-native-reanimated";
3
3
  import type { NormalizedTransitionInterpolatedStyle } from "../../types/animation.types";
4
+ import { type ScreenStyleResolutionMode } from "./helpers/resolve-interpolated-style-output";
4
5
  type Props = {
5
6
  children: ReactNode;
6
7
  };
7
8
  type ScreenStylesContextValue = {
8
9
  stylesMap: SharedValue<NormalizedTransitionInterpolatedStyle>;
9
10
  ancestorStylesMaps: SharedValue<NormalizedTransitionInterpolatedStyle>[];
11
+ resolutionMode: SharedValue<ScreenStyleResolutionMode>;
10
12
  };
11
- declare const ScreenStylesProvider: import("react").FC<Props>, useScreenStyles: () => ScreenStylesContextValue;
12
- export { ScreenStylesProvider, useScreenStyles };
13
+ export declare const ScreenStylesProvider: import("react").FC<Props>, ScreenStylesContext: import("react").Context<ScreenStylesContextValue>, useScreenStyles: () => ScreenStylesContextValue;
14
+ export {};
13
15
  //# sourceMappingURL=styles.provider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/screen/styles.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAC5D,OAAO,EACN,KAAK,WAAW,EAGhB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,6BAA6B,CAAC;AAMzF,KAAK,KAAK,GAAG;IACZ,QAAQ,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC/B,SAAS,EAAE,WAAW,CAAC,qCAAqC,CAAC,CAAC;IAC9D,kBAAkB,EAAE,WAAW,CAAC,qCAAqC,CAAC,EAAE,CAAC;CACzE,CAAC;AAEF,QAAA,MACC,oBAAoB,6BAEI,eAAe,gCA6GvC,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"styles.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/screen/styles.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAC5D,OAAO,EACN,KAAK,WAAW,EAGhB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,6BAA6B,CAAC;AAIzF,OAAO,EAGN,KAAK,yBAAyB,EAC9B,MAAM,6CAA6C,CAAC;AAErD,KAAK,KAAK,GAAG;IACZ,QAAQ,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC/B,SAAS,EAAE,WAAW,CAAC,qCAAqC,CAAC,CAAC;IAC9D,kBAAkB,EAAE,WAAW,CAAC,qCAAqC,CAAC,EAAE,CAAC;IACzE,cAAc,EAAE,WAAW,CAAC,yBAAyB,CAAC,CAAC;CACvD,CAAC;AAEF,eAAO,MACN,oBAAoB,6BACpB,mBAAmB,qDACK,eAAe,gCAiIvC,CAAC"}
@@ -4,12 +4,14 @@ export interface StackCoreConfig {
4
4
  TRANSITIONS_ALWAYS_ON?: boolean;
5
5
  STACK_TYPE?: StackType;
6
6
  DISABLE_NATIVE_SCREENS?: boolean;
7
+ DISABLE_NATIVE_SCREEN_CONTAINER?: boolean;
7
8
  }
8
9
  export interface StackCoreContextValue {
9
10
  flags: {
10
11
  TRANSITIONS_ALWAYS_ON: boolean;
11
12
  STACK_TYPE?: StackType;
12
13
  DISABLE_NATIVE_SCREENS: boolean;
14
+ DISABLE_NATIVE_SCREEN_CONTAINER: boolean;
13
15
  };
14
16
  }
15
17
  declare const useStackCoreContext: () => StackCoreContextValue;
@@ -1 +1 @@
1
- {"version":3,"file":"core.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/stack/core.provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,MAAM,WAAW,eAAe;IAC/B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,sBAAsB,CAAC,EAAE,OAAO,CAAC;CACjC;AAOD,MAAM,WAAW,qBAAqB;IACrC,KAAK,EAAE;QACN,qBAAqB,EAAE,OAAO,CAAC;QAC/B,UAAU,CAAC,EAAE,SAAS,CAAC;QACvB,sBAAsB,EAAE,OAAO,CAAC;KAChC,CAAC;CACF;AAED,QAAA,MAAsD,mBAAmB,6BAiCtE,CAAC;AAEJ;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,SAAS,MAAM,EAClD,aAAa,EAAE,eAAe,EAC9B,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,GACpC,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,eAAe,CAAC,CAoBpC;AAMD,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"core.provider.d.ts","sourceRoot":"","sources":["../../../../../src/shared/providers/stack/core.provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,MAAM,WAAW,eAAe;IAC/B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,+BAA+B,CAAC,EAAE,OAAO,CAAC;CAC1C;AAOD,MAAM,WAAW,qBAAqB;IACrC,KAAK,EAAE;QACN,qBAAqB,EAAE,OAAO,CAAC;QAC/B,UAAU,CAAC,EAAE,SAAS,CAAC;QACvB,sBAAsB,EAAE,OAAO,CAAC;QAChC,+BAA+B,EAAE,OAAO,CAAC;KACzC,CAAC;CACF;AAED,QAAA,MAAsD,mBAAmB,6BAwCtE,CAAC;AAEJ;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,SAAS,MAAM,EAClD,aAAa,EAAE,eAAe,EAC9B,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,GACpC,KAAK,CAAC,EAAE,CAAC,MAAM,GAAG,eAAe,CAAC,CAyBpC;AAMD,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type SharedValue } from "react-native-reanimated";
2
- import type { ScreenKey } from "../types/screen.types";
2
+ import type { Layout, ScreenKey } from "../types/screen.types";
3
3
  export type AnimationStoreMap = {
4
4
  progress: SharedValue<number>;
5
5
  animating: SharedValue<number>;
@@ -8,10 +8,12 @@ export type AnimationStoreMap = {
8
8
  targetProgress: SharedValue<number>;
9
9
  /** Resolved fraction (contentHeight / screenHeight) for the 'auto' snap point. -1 = not yet measured. */
10
10
  autoSnapPoint: SharedValue<number>;
11
+ /** Intrinsic content layout measured from the screen container wrapper. */
12
+ contentLayout: SharedValue<Layout | null>;
11
13
  };
12
14
  declare function peekRouteAnimations(routeKey: ScreenKey): AnimationStoreMap | undefined;
13
- declare function getRouteAnimation(routeKey: ScreenKey, type: keyof AnimationStoreMap): SharedValue<number>;
14
- declare function getAnimation(routeKey: ScreenKey, type: keyof AnimationStoreMap): SharedValue<number>;
15
+ declare function getRouteAnimation<K extends keyof AnimationStoreMap>(routeKey: ScreenKey, type: K): AnimationStoreMap[K];
16
+ declare function getAnimation<K extends keyof AnimationStoreMap>(routeKey: ScreenKey, type: K): AnimationStoreMap[K];
15
17
  declare function getRouteAnimations(routeKey: ScreenKey): AnimationStoreMap;
16
18
  declare function clear(routeKey: ScreenKey): void;
17
19
  export declare const AnimationStore: {
@@ -1 +1 @@
1
- {"version":3,"file":"animation.store.d.ts","sourceRoot":"","sources":["../../../../src/shared/stores/animation.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,WAAW,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7B,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACpC,yGAAyG;IACzG,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACnC,CAAC;AAwBF,iBAAS,mBAAmB,CAC3B,QAAQ,EAAE,SAAS,GACjB,iBAAiB,GAAG,SAAS,CAE/B;AAED,iBAAS,iBAAiB,CACzB,QAAQ,EAAE,SAAS,EACnB,IAAI,EAAE,MAAM,iBAAiB,GAC3B,WAAW,CAAC,MAAM,CAAC,CAErB;AAED,iBAAS,YAAY,CACpB,QAAQ,EAAE,SAAS,EACnB,IAAI,EAAE,MAAM,iBAAiB,GAC3B,WAAW,CAAC,MAAM,CAAC,CAErB;AAED,iBAAS,kBAAkB,CAAC,QAAQ,EAAE,SAAS,GAAG,iBAAiB,CAElE;AAED,iBAAS,KAAK,CAAC,QAAQ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@@ -1 +1 @@
1
- {"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/stores/bounds/internals/presence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,EAAqB,KAAK,WAAW,EAAoB,MAAM,SAAS,CAAC;AAEhF,iBAAS,wBAAwB,CAChC,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,SAAS,EACpB,YAAY,CAAC,EAAE,SAAS,EAAE,EAC1B,cAAc,CAAC,EAAE,cAAc,EAC/B,YAAY,CAAC,EAAE,MAAM,EACrB,qBAAqB,CAAC,EAAE,MAAM,EAAE,QAyBhC;AAED,iBAAS,0BAA0B,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,QA8BnE;AAED,iBAAS,mBAAmB,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAgBtE;AAED,iBAAS,mBAAmB,wFAG3B;AAED,iBAAS,iBAAiB,CACzB,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,SAAS,GAClB,cAAc,GAAG,IAAI,CAmBvB;AAED,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QASlD;AAED,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGtD;AAED,iBAAS,SAAS,sFAGjB;AAED,OAAO,EACN,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,GACT,CAAC"}
1
+ {"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/stores/bounds/internals/presence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAChF,OAAO,EAAqB,KAAK,WAAW,EAAoB,MAAM,SAAS,CAAC;AAEhF,iBAAS,wBAAwB,CAChC,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,SAAS,EACpB,YAAY,CAAC,EAAE,SAAS,EAAE,EAC1B,cAAc,CAAC,EAAE,cAAc,EAC/B,YAAY,CAAC,EAAE,MAAM,EACrB,qBAAqB,CAAC,EAAE,MAAM,EAAE,QAyBhC;AAED,iBAAS,0BAA0B,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,QA8BnE;AAED,iBAAS,mBAAmB,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAgBtE;AAED,iBAAS,mBAAmB,wFAG3B;AAED,iBAAS,iBAAiB,CACzB,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,SAAS,GAClB,cAAc,GAAG,IAAI,CAmBvB;AAED,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAWlD;AAED,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGtD;AAED,iBAAS,SAAS,sFAGjB;AAED,OAAO,EACN,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,GACT,CAAC"}
@@ -87,6 +87,13 @@ export interface ScreenInterpolationProps {
87
87
  * The `width` and `height` of the screen container.
88
88
  */
89
89
  screen: Layout;
90
+ /**
91
+ * The intrinsic measured content wrapper layout when available.
92
+ *
93
+ * This is currently populated for the measured screen-container path used by
94
+ * auto snap-point sizing. It is undefined until a real measurement exists.
95
+ */
96
+ content?: Layout;
90
97
  };
91
98
  /**
92
99
  * The safe area insets for the screen.
@@ -135,7 +142,12 @@ export interface ScreenInterpolationProps {
135
142
  */
136
143
  inactive: ScreenTransitionState | undefined;
137
144
  }
138
- export type ScreenStyleInterpolator = (props: ScreenInterpolationProps) => TransitionInterpolatedStyle;
145
+ /**
146
+ * Returning `null` explicitly defers rendering of the screen's visual subtree
147
+ * for the current frame. Returning an object applies transition styles
148
+ * immediately.
149
+ */
150
+ export type ScreenStyleInterpolator = (props: ScreenInterpolationProps) => TransitionInterpolatedStyle | null;
139
151
  /**
140
152
  * Animated style properties with full autocomplete.
141
153
  *
@@ -1 +1 @@
1
- {"version":3,"file":"animation.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/animation.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EACX,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD,MAAM,MAAM,qBAAqB,GAAG;IACnC;;;;;;;OAOG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,OAAO,EAAE,aAAa,CAAC;IAEvB;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/B;;OAEG;IACH,KAAK,EAAE,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CAAC;CAChC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,qCAAqC,GAAG;IACnD,iEAAiE;IACjE,OAAO,CAAC,EAAE,6BAA6B,CAAC;IACxC,uEAAuE;IACvE,QAAQ,CAAC,EAAE,6BAA6B,CAAC;IACzC,kFAAkF;IAClF,OAAO,CAAC,EAAE,6BAA6B,CAAC;IACxC,gEAAgE;IAChE,CAAC,EAAE,EAAE,MAAM,GAAG,6BAA6B,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACzC,iEAAiE;IACjE,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,uEAAuE;IACvE,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,kFAAkF;IAClF,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,gEAAgE;IAChE,CAAC,EAAE,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAAC;IAC9C;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC;;;OAGG;IACH,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC3B"}
1
+ {"version":3,"file":"animation.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/animation.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC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G;IACzC,iEAAiE;IACjE,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,uEAAuE;IACvE,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,kFAAkF;IAClF,OAAO,CAAC,EAAE,mBAAmB,CAAC;IAC9B,gEAAgE;IAChE,CAAC,EAAE,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAAC;IAC9C;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC;;;OAGG;IACH,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,gBAAgB,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC3B"}
@@ -7,6 +7,7 @@ export type Layout = {
7
7
  height: number;
8
8
  };
9
9
  export type ScreenKey = string;
10
+ export type SheetScrollGestureBehavior = "expand-and-collapse" | "collapse-only";
10
11
  /**
11
12
  * A single snap point value. Either a fraction of screen height (0–1) or
12
13
  * `'auto'` to snap to the intrinsic height of the screen content.
@@ -26,10 +27,13 @@ export type TransitionAwareProps<T extends object> = AnimatedProps<T> & {
26
27
  * </Transition.View>
27
28
  *
28
29
  * // In your screenStyleInterpolator:
29
- * return {
30
- * 'hero-image': {
31
- * opacity: interpolate(progress, [0, 1], [0, 1]),
32
- * transform: [{ scale: interpolate(progress, [0, 1], [0.8, 1]) }]
30
+ * screenStyleInterpolator: ({ progress }) => {
31
+ * "worklet";
32
+ * return {
33
+ * 'hero-image': {
34
+ * opacity: interpolate(progress, [0, 1], [0, 1]),
35
+ * transform: [{ scale: interpolate(progress, [0, 1], [0.8, 1]) }]
36
+ * }
33
37
  * }
34
38
  * }
35
39
  */
@@ -64,6 +68,11 @@ export type TransitionAwareProps<T extends object> = AnimatedProps<T> & {
64
68
  export type ScreenTransitionConfig = {
65
69
  /**
66
70
  * The user-provided function to calculate styles based on animation progress.
71
+ *
72
+ * Return `null` to explicitly defer rendering of the screen's visual subtree
73
+ * until a later frame. This is useful for transitions such as
74
+ * `bounds().navigation.zoom()` where the screen should stay hidden until the
75
+ * interpolator has enough state to produce a safe first frame.
67
76
  */
68
77
  screenStyleInterpolator?: ScreenStyleInterpolator;
69
78
  /**
@@ -75,6 +84,12 @@ export type ScreenTransitionConfig = {
75
84
  * (e.g. `bounds().navigation.zoom()`) is ready from the first frame.
76
85
  *
77
86
  * Requires `@react-native-masked-view/masked-view` to be installed.
87
+ *
88
+ * @default false
89
+ */
90
+ navigationMaskEnabled?: boolean;
91
+ /**
92
+ * @deprecated Use `navigationMaskEnabled` instead.
78
93
  */
79
94
  maskEnabled?: boolean;
80
95
  /**
@@ -181,16 +196,24 @@ export type ScreenTransitionConfig = {
181
196
  */
182
197
  initialSnapIndex?: number;
183
198
  /**
184
- * Controls whether swiping to expand the sheet works from within a ScrollView.
185
- *
186
- * - `true` (Apple Maps style): Swiping up at scroll top expands the sheet
187
- * - `false` (Instagram style): Expand only works via deadspace (non-scrollable areas)
199
+ * Controls how nested scroll content hands gestures off to a snap sheet.
188
200
  *
189
- * Collapse (swipe down at scroll top) always works regardless of this setting.
201
+ * - `"expand-and-collapse"` (Apple Maps style): Swiping up at scroll boundary expands the sheet,
202
+ * and swiping down at scroll boundary collapses or dismisses it
203
+ * - `"collapse-only"` (Instagram style): Expand only works via deadspace; collapse/dismiss via
204
+ * nested scroll content still works at boundary
190
205
  *
191
206
  * Only applies to screens with `snapPoints` configured.
192
207
  *
193
- * @default true
208
+ * @default "expand-and-collapse"
209
+ */
210
+ sheetScrollGestureBehavior?: SheetScrollGestureBehavior;
211
+ /**
212
+ * @deprecated Use `sheetScrollGestureBehavior` instead.
213
+ *
214
+ * Mapping:
215
+ * - `true` -> `"expand-and-collapse"`
216
+ * - `false` -> `"collapse-only"`
194
217
  */
195
218
  expandViaScrollView?: boolean;
196
219
  /**
@@ -224,12 +247,15 @@ export type ScreenTransitionConfig = {
224
247
  *
225
248
  * @example
226
249
  * backdropComponent: BlurView,
227
- * screenStyleInterpolator: ({ progress }) => ({
228
- * backdrop: {
229
- * style: { opacity: interpolate(progress, [0, 1], [0, 1]) },
230
- * props: { intensity: interpolate(progress, [0, 1], [0, 80]) },
231
- * },
232
- * })
250
+ * screenStyleInterpolator: ({ progress }) => {
251
+ * "worklet";
252
+ * return {
253
+ * backdrop: {
254
+ * style: { opacity: interpolate(progress, [0, 1], [0, 1]) },
255
+ * props: { intensity: interpolate(progress, [0, 1], [0, 80]) },
256
+ * },
257
+ * };
258
+ * }
233
259
  *
234
260
  * @default undefined
235
261
  */
@@ -245,12 +271,15 @@ export type ScreenTransitionConfig = {
245
271
  *
246
272
  * @example
247
273
  * surfaceComponent: SquircleView,
248
- * screenStyleInterpolator: ({ progress }) => ({
249
- * surface: {
250
- * style: { opacity: interpolate(progress, [0, 1], [0, 1]) },
251
- * props: { cornerRadius: 24, cornerSmoothing: 0.7 },
252
- * },
253
- * })
274
+ * screenStyleInterpolator: ({ progress }) => {
275
+ * "worklet";
276
+ * return {
277
+ * surface: {
278
+ * style: { opacity: interpolate(progress, [0, 1], [0, 1]) },
279
+ * props: { cornerRadius: 24, cornerSmoothing: 0.7 },
280
+ * },
281
+ * };
282
+ * }
254
283
  *
255
284
  * @default undefined
256
285
  */
@@ -1 +1 @@
1
- {"version":3,"file":"screen.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/screen.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACX,uBAAuB,EACvB,cAAc,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AAM,CAAC;IAEnC;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAE9C;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,KAAK,CAAC,SAAS,CAAC;IAEnD;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;;;;;OASG;IACH,kCAAkC,CAAC,EAAE,OAAO,CAAC;IAE7C;;;;;;;;;;;;;;OAcG;IACH,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IAEzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;;;;;;OAWG;IACH,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;IAExD;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC;IAEpE;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAE7C;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CAC5C,CAAC"}
@@ -1,4 +1,14 @@
1
1
  import { type ResolvedTransitionPair } from "../../../stores/bounds";
2
2
  import type { BoundsComputeParams, BoundsOptions } from "../types/options";
3
- export declare const computeBoundStyles: ({ id, previous, current, next, progress, dimensions }: BoundsComputeParams, computeOptions?: BoundsOptions, resolvedPair?: ResolvedTransitionPair) => Readonly<{}>;
3
+ export declare const computeBoundStyles: ({ id, previous, current, next, progress, dimensions }: BoundsComputeParams, computeOptions?: BoundsOptions, resolvedPair?: ResolvedTransitionPair) => import("react-native-reanimated").StyleProps | Readonly<{
4
+ opacity: 0;
5
+ }> | Readonly<{
6
+ scaleX: 1;
7
+ scaleY: 1;
8
+ scale: 1;
9
+ translateX: 0;
10
+ translateY: 0;
11
+ width: 0;
12
+ height: 0;
13
+ }>;
4
14
  //# sourceMappingURL=compute-bounds-styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"compute-bounds-styles.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/compute-bounds-styles.ts"],"names":[],"mappings":"AAQA,OAAO,EAEN,KAAK,sBAAsB,EAC3B,MAAM,wBAAwB,CAAC;AAGhC,OAAO,KAAK,EAEX,mBAAmB,EACnB,aAAa,EACb,MAAM,kBAAkB,CAAC;AA8F1B,eAAO,MAAM,kBAAkB,GAC9B,uDAAuD,mBAAmB,EAC1E,iBAAgB,aAAkC,EAClD,eAAe,sBAAsB,iBA0FrC,CAAC"}
1
+ {"version":3,"file":"compute-bounds-styles.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/compute-bounds-styles.ts"],"names":[],"mappings":"AASA,OAAO,EAEN,KAAK,sBAAsB,EAC3B,MAAM,wBAAwB,CAAC;AAGhC,OAAO,KAAK,EAEX,mBAAmB,EACnB,aAAa,EACb,MAAM,kBAAkB,CAAC;AAoG1B,eAAO,MAAM,kBAAkB,GAC9B,uDAAuD,mBAAmB,EAC1E,iBAAgB,aAAkC,EAClD,eAAe,sBAAsB;;;;;;;;;;EAiGrC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolve-bound-tag.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/resolve-bound-tag.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,MAAM,qBAAqB,GAAG;IACnC,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,gBAG7B,qBAAqB,KAAG,MAAM,GAAG,SAiBnC,CAAC"}
1
+ {"version":3,"file":"resolve-bound-tag.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/resolve-bound-tag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,MAAM,qBAAqB,GAAG;IACnC,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,gBAG7B,qBAAqB,KAAG,MAAM,GAAG,SAYnC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ScreenInterpolationProps } from "../../types/animation.types";
2
1
  import type { BoundsAccessor } from "../../types/bounds.types";
3
- export declare const createBoundsAccessor: (getProps: () => Omit<ScreenInterpolationProps, "bounds">) => BoundsAccessor;
2
+ import type { BoundsFrameProps } from "./types/frame-props";
3
+ export declare const createBoundsAccessor: (getProps: () => BoundsFrameProps) => BoundsAccessor;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/bounds/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAS/D,eAAO,MAAM,oBAAoB,GAChC,UAAU,MAAM,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,KACtD,cAkIF,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/bounds/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAM/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAe5D,eAAO,MAAM,oBAAoB,GAChC,UAAU,MAAM,gBAAgB,KAC9B,cAiIF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ScreenInterpolationProps } from "../../../types/animation.types";
2
+ export type BoundsFrameProps = Omit<ScreenInterpolationProps, "bounds"> & {
3
+ navigationMaskEnabled: boolean;
4
+ };
5
+ //# sourceMappingURL=frame-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frame-props.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/types/frame-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAE/E,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,GAAG;IACzE,qBAAqB,EAAE,OAAO,CAAC;CAC/B,CAAC"}
@@ -1,17 +1,17 @@
1
- import type { ScreenInterpolationProps } from "../../../types/animation.types";
2
1
  import type { BoundsNavigationZoomOptions } from "../../../types/bounds.types";
3
2
  import type { ResolveBoundTagParams } from "../helpers/resolve-bound-tag";
3
+ import type { BoundsFrameProps } from "../types/frame-props";
4
4
  import type { BoundId, BoundsOptions } from "../types/options";
5
5
  type ZoomAccessorParams = {
6
6
  id?: BoundId;
7
7
  group?: string;
8
- getProps: () => Omit<ScreenInterpolationProps, "bounds">;
8
+ getProps: () => BoundsFrameProps;
9
9
  resolveBoundTag: (params: ResolveBoundTagParams) => string | undefined;
10
- computeRaw: (overrides?: Partial<BoundsOptions>, frameProps?: Omit<ScreenInterpolationProps, "bounds">) => Record<string, unknown>;
10
+ computeRaw: (overrides?: Partial<BoundsOptions>, frameProps?: BoundsFrameProps) => Record<string, unknown>;
11
11
  zoomBaseOptions?: Pick<BoundsNavigationZoomOptions, "anchor" | "scaleMode" | "target">;
12
12
  };
13
13
  export declare const createZoomAccessor: ({ id, group, getProps, resolveBoundTag, computeRaw, zoomBaseOptions, }: ZoomAccessorParams) => {
14
- zoom: (options?: BoundsNavigationZoomOptions) => import("../../../types/animation.types").TransitionInterpolatedStyle;
14
+ zoom: (options?: BoundsNavigationZoomOptions) => import("../../..").TransitionInterpolatedStyle | null;
15
15
  };
16
16
  export {};
17
17
  //# sourceMappingURL=accessor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accessor.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/accessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAG/D,KAAK,kBAAkB,GAAG;IACzB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;IACzD,eAAe,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,MAAM,GAAG,SAAS,CAAC;IACvE,UAAU,EAAE,CACX,SAAS,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,EAClC,UAAU,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,KACjD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7B,eAAe,CAAC,EAAE,IAAI,CACrB,2BAA2B,EAC3B,QAAQ,GAAG,WAAW,GAAG,QAAQ,CACjC,CAAC;CACF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,wEAOhC,kBAAkB;qBA0BF,2BAA2B;CAc7C,CAAC"}
1
+ {"version":3,"file":"accessor.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/accessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAG/D,KAAK,kBAAkB,GAAG;IACzB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,gBAAgB,CAAC;IACjC,eAAe,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,MAAM,GAAG,SAAS,CAAC;IACvE,UAAU,EAAE,CACX,SAAS,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,EAClC,UAAU,CAAC,EAAE,gBAAgB,KACzB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7B,eAAe,CAAC,EAAE,IAAI,CACrB,2BAA2B,EAC3B,QAAQ,GAAG,WAAW,GAAG,QAAQ,CACjC,CAAC;CACF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,wEAOhC,kBAAkB;qBA0BF,2BAA2B;CAc7C,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { TransitionInterpolatedStyle } from "../../../types/animation.types";
1
+ import type { ScreenStyleInterpolator } from "../../../types/animation.types";
2
2
  import type { BuildZoomStylesParams } from "./types";
3
- export declare const buildZoomStyles: ({ id, group, zoomOptions, props, resolveTag, computeRaw, }: BuildZoomStylesParams) => TransitionInterpolatedStyle;
3
+ export declare const buildZoomStyles: ({ id, group, zoomOptions, props, resolveTag, computeRaw, }: BuildZoomStylesParams) => ReturnType<ScreenStyleInterpolator>;
4
4
  //# sourceMappingURL=build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/build.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AASlF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAwarD,eAAO,MAAM,eAAe,GAAI,4DAO7B,qBAAqB,KAAG,2BA6P1B,CAAC"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/build.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACX,uBAAuB,EAEvB,MAAM,gCAAgC,CAAC;AASxC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAwarD,eAAO,MAAM,eAAe,GAAI,4DAO7B,qBAAqB,KAAG,UAAU,CAAC,uBAAuB,CAuQ5D,CAAC"}
@@ -1,16 +1,16 @@
1
- import type { ScreenInterpolationProps } from "../../../types/animation.types";
2
1
  import type { BoundsNavigationZoomOptions } from "../../../types/bounds.types";
2
+ import type { BoundsFrameProps } from "../types/frame-props";
3
3
  import type { BoundId, BoundsOptions } from "../types/options";
4
4
  export type ResolveTag = (params: {
5
5
  id?: BoundId;
6
6
  group?: string;
7
7
  }) => string | undefined;
8
- export type ComputeRaw = (overrides: Partial<BoundsOptions>, frameProps?: Omit<ScreenInterpolationProps, "bounds">) => Record<string, unknown>;
8
+ export type ComputeRaw = (overrides: Partial<BoundsOptions>, frameProps?: BoundsFrameProps) => Record<string, unknown>;
9
9
  export type BuildZoomStylesParams = {
10
10
  id: BoundId;
11
11
  group?: string;
12
12
  zoomOptions?: BoundsNavigationZoomOptions;
13
- props: Omit<ScreenInterpolationProps, "bounds">;
13
+ props: BoundsFrameProps;
14
14
  resolveTag: ResolveTag;
15
15
  computeRaw: ComputeRaw;
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE/D,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE;IACjC,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,KAAK,MAAM,GAAG,SAAS,CAAC;AAEzB,MAAM,MAAM,UAAU,GAAG,CACxB,SAAS,EAAE,OAAO,CAAC,aAAa,CAAC,EACjC,UAAU,CAAC,EAAE,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,KACjD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE7B,MAAM,MAAM,qBAAqB,GAAG;IACnC,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,KAAK,EAAE,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;IAChD,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;CACvB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAE/D,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE;IACjC,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,KAAK,MAAM,GAAG,SAAS,CAAC;AAEzB,MAAM,MAAM,UAAU,GAAG,CACxB,SAAS,EAAE,OAAO,CAAC,aAAa,CAAC,EACjC,UAAU,CAAC,EAAE,gBAAgB,KACzB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE7B,MAAM,MAAM,qBAAqB,GAAG;IACnC,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,KAAK,EAAE,gBAAgB,CAAC;IACxB,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;CACvB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { ScreenTransitionConfig, SheetScrollGestureBehavior } from "../types/screen.types";
2
+ export declare const DEFAULT_SHEET_SCROLL_GESTURE_BEHAVIOR: SheetScrollGestureBehavior;
3
+ export declare const resolveSheetScrollGestureBehavior: (options: Pick<ScreenTransitionConfig, "sheetScrollGestureBehavior" | "expandViaScrollView">) => SheetScrollGestureBehavior;
4
+ export declare const resolveNavigationMaskEnabled: (options: Pick<ScreenTransitionConfig, "navigationMaskEnabled" | "maskEnabled">) => boolean;
5
+ //# sourceMappingURL=resolve-screen-transition-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-screen-transition-options.d.ts","sourceRoot":"","sources":["../../../../src/shared/utils/resolve-screen-transition-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,sBAAsB,EACtB,0BAA0B,EAC1B,MAAM,uBAAuB,CAAC;AAE/B,eAAO,MAAM,qCAAqC,EAAE,0BAC9B,CAAC;AAEvB,eAAO,MAAM,iCAAiC,GAC7C,SAAS,IAAI,CACZ,sBAAsB,EACtB,4BAA4B,GAAG,qBAAqB,CACpD,KACC,0BAUF,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACxC,SAAS,IAAI,CACZ,sBAAsB,EACtB,uBAAuB,GAAG,aAAa,CACvC,KACC,OAMF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-screen-transitions",
3
- "version": "3.4.0-alpha.1",
3
+ "version": "3.4.0-alpha.3",
4
4
  "description": "Easy screen transitions for React Native and Expo",
5
5
  "author": "Ed",
6
6
  "license": "MIT",
@@ -84,6 +84,7 @@
84
84
  },
85
85
  "devDependencies": {
86
86
  "@release-it/conventional-changelog": "^10.0.1",
87
+ "@testing-library/react-native": "13.3.3",
87
88
  "@types/react": "~19.1.10",
88
89
  "react-native-builder-bob": "0.39.0",
89
90
  "release-it": "^19.0.4",
@@ -1,5 +1,6 @@
1
1
  export { createBlankStackNavigator } from "../blank-stack/navigators/create-blank-stack-navigator";
2
2
  export type {
3
+ BlankStackFactoryOptions,
3
4
  BlankStackNavigationEventMap,
4
5
  BlankStackNavigationOptions,
5
6
  BlankStackNavigationProp,