react-native-screen-transitions 3.4.0-beta.0 → 3.4.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (216) hide show
  1. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +6 -5
  2. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  3. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +4 -1
  4. package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  5. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +28 -1
  6. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  7. package/lib/commonjs/shared/components/create-boundary-component/hooks/{use-prepare-transition-measurement.js → use-pre-transition-measurement.js} +7 -5
  8. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
  9. package/lib/commonjs/shared/constants.js +1 -2
  10. package/lib/commonjs/shared/constants.js.map +1 -1
  11. package/lib/commonjs/shared/providers/register-bounds.provider.js +9 -1
  12. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  13. package/lib/commonjs/shared/stores/bounds/internals/clear.js +23 -167
  14. package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
  15. package/lib/commonjs/shared/stores/bounds/internals/presence.js +0 -3
  16. package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -1
  17. package/lib/commonjs/shared/stores/bounds/internals/registry.js +0 -5
  18. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
  19. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +0 -3
  20. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  21. package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -83
  22. package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
  23. package/lib/commonjs/shared/utils/bounds/constants.js.map +1 -0
  24. package/lib/commonjs/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +5 -5
  25. package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
  26. package/lib/commonjs/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +6 -6
  27. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
  28. package/lib/commonjs/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
  29. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
  30. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +70 -0
  31. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
  32. package/lib/commonjs/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
  33. package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
  34. package/lib/commonjs/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +9 -9
  35. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
  36. package/lib/commonjs/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
  37. package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
  38. package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
  39. package/lib/commonjs/shared/utils/bounds/index.js +16 -44
  40. package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
  41. package/lib/commonjs/shared/utils/bounds/zoom/build.js +135 -31
  42. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
  43. package/lib/commonjs/shared/utils/bounds/zoom/config.js +8 -1
  44. package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -1
  45. package/lib/commonjs/shared/utils/bounds/zoom/math.js +34 -1
  46. package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +1 -1
  47. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +6 -5
  48. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  49. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +4 -1
  50. package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
  51. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +29 -1
  52. package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
  53. package/lib/module/shared/components/create-boundary-component/hooks/{use-prepare-transition-measurement.js → use-pre-transition-measurement.js} +5 -3
  54. package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
  55. package/lib/module/shared/constants.js +1 -2
  56. package/lib/module/shared/constants.js.map +1 -1
  57. package/lib/module/shared/providers/register-bounds.provider.js +9 -1
  58. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  59. package/lib/module/shared/stores/bounds/internals/clear.js +24 -168
  60. package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
  61. package/lib/module/shared/stores/bounds/internals/presence.js +1 -4
  62. package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -1
  63. package/lib/module/shared/stores/bounds/internals/registry.js +1 -6
  64. package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
  65. package/lib/module/shared/stores/bounds/internals/resolver.js +1 -4
  66. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  67. package/lib/module/shared/stores/bounds/internals/state.js +0 -78
  68. package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
  69. package/lib/module/shared/utils/bounds/constants.js.map +1 -0
  70. package/lib/module/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +3 -3
  71. package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
  72. package/lib/module/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +5 -5
  73. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
  74. package/lib/module/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
  75. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
  76. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +64 -0
  77. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
  78. package/lib/module/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
  79. package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
  80. package/lib/module/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +7 -7
  81. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
  82. package/lib/module/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
  83. package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
  84. package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
  85. package/lib/module/shared/utils/bounds/index.js +14 -42
  86. package/lib/module/shared/utils/bounds/index.js.map +1 -1
  87. package/lib/module/shared/utils/bounds/zoom/build.js +138 -34
  88. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
  89. package/lib/module/shared/utils/bounds/zoom/config.js +7 -0
  90. package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -1
  91. package/lib/module/shared/utils/bounds/zoom/math.js +31 -0
  92. package/lib/module/shared/utils/bounds/zoom/math.js.map +1 -1
  93. package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
  94. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +1 -0
  95. package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
  96. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +14 -0
  97. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -1
  98. package/lib/typescript/shared/components/create-boundary-component/hooks/{use-prepare-transition-measurement.d.ts → use-pre-transition-measurement.d.ts} +2 -2
  99. package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts.map +1 -0
  100. package/lib/typescript/shared/constants.d.ts +0 -1
  101. package/lib/typescript/shared/constants.d.ts.map +1 -1
  102. package/lib/typescript/shared/index.d.ts +1 -1
  103. package/lib/typescript/shared/index.d.ts.map +1 -1
  104. package/lib/typescript/shared/providers/register-bounds.provider.d.ts +7 -0
  105. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  106. package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
  107. package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +1 -1
  108. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
  109. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  110. package/lib/typescript/shared/stores/bounds/internals/state.d.ts +0 -3
  111. package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
  112. package/lib/typescript/shared/types/bounds.types.d.ts +72 -0
  113. package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
  114. package/lib/typescript/shared/types/index.d.ts +1 -1
  115. package/lib/typescript/shared/types/index.d.ts.map +1 -1
  116. package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -0
  117. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +7 -0
  118. package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -0
  119. package/lib/typescript/shared/utils/bounds/helpers/{interpolators.d.ts → create-interpolators.d.ts} +3 -3
  120. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -0
  121. package/lib/typescript/shared/utils/bounds/helpers/{link-accessor.d.ts → create-link-accessor.d.ts} +1 -1
  122. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -0
  123. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +20 -0
  124. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -0
  125. package/lib/typescript/shared/utils/bounds/helpers/{style-composers.d.ts → styles/composers.d.ts} +4 -4
  126. package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -0
  127. package/lib/typescript/shared/utils/bounds/helpers/{compute-bounds-styles.d.ts → styles/compute.d.ts} +3 -3
  128. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -0
  129. package/lib/typescript/shared/utils/bounds/helpers/{interpolate-style.d.ts → styles/interpolate-link-style.d.ts} +2 -2
  130. package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts.map +1 -0
  131. package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -0
  132. package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
  133. package/lib/typescript/shared/utils/bounds/types/options.d.ts +3 -2
  134. package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
  135. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
  136. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +7 -0
  137. package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -1
  138. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +17 -0
  139. package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +1 -1
  140. package/package.json +1 -1
  141. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +6 -5
  142. package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +6 -1
  143. package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +28 -13
  144. package/src/shared/components/create-boundary-component/hooks/{use-prepare-transition-measurement.ts → use-pre-transition-measurement.ts} +8 -5
  145. package/src/shared/constants.ts +0 -1
  146. package/src/shared/index.ts +2 -0
  147. package/src/shared/providers/register-bounds.provider.tsx +8 -1
  148. package/src/shared/stores/bounds/internals/clear.ts +47 -220
  149. package/src/shared/stores/bounds/internals/presence.ts +1 -4
  150. package/src/shared/stores/bounds/internals/registry.ts +1 -11
  151. package/src/shared/stores/bounds/internals/resolver.ts +1 -9
  152. package/src/shared/stores/bounds/internals/state.ts +0 -98
  153. package/src/shared/types/bounds.types.ts +74 -0
  154. package/src/shared/types/index.ts +2 -0
  155. package/src/shared/utils/bounds/{helpers/constants.ts → constants.ts} +1 -1
  156. package/src/shared/utils/bounds/helpers/{resolve-bound-tag.ts → create-bound-tag.ts} +2 -2
  157. package/src/shared/utils/bounds/helpers/{interpolators.ts → create-interpolators.ts} +19 -12
  158. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +100 -0
  159. package/src/shared/utils/bounds/helpers/{style-composers.ts → styles/composers.ts} +119 -53
  160. package/src/shared/utils/bounds/helpers/{compute-bounds-styles.ts → styles/compute.ts} +9 -9
  161. package/src/shared/utils/bounds/helpers/{interpolate-style.ts → styles/interpolate-link-style.ts} +9 -4
  162. package/src/shared/utils/bounds/index.ts +13 -53
  163. package/src/shared/utils/bounds/types/options.ts +3 -2
  164. package/src/shared/utils/bounds/zoom/build.ts +169 -61
  165. package/src/shared/utils/bounds/zoom/config.ts +9 -0
  166. package/src/shared/utils/bounds/zoom/math.ts +57 -0
  167. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js.map +0 -1
  168. package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js +0 -41
  169. package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
  170. package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
  171. package/lib/commonjs/shared/utils/bounds/helpers/constants.js.map +0 -1
  172. package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
  173. package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js +0 -20
  174. package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js.map +0 -1
  175. package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +0 -1
  176. package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
  177. package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
  178. package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +0 -1
  179. package/lib/commonjs/shared/utils/bounds/helpers/styles.js.map +0 -1
  180. package/lib/module/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js.map +0 -1
  181. package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js +0 -36
  182. package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
  183. package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
  184. package/lib/module/shared/utils/bounds/helpers/constants.js.map +0 -1
  185. package/lib/module/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
  186. package/lib/module/shared/utils/bounds/helpers/interpolate.js +0 -16
  187. package/lib/module/shared/utils/bounds/helpers/interpolate.js.map +0 -1
  188. package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +0 -1
  189. package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
  190. package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
  191. package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +0 -1
  192. package/lib/module/shared/utils/bounds/helpers/styles.js.map +0 -1
  193. package/lib/typescript/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.d.ts.map +0 -1
  194. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +0 -14
  195. package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +0 -1
  196. package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +0 -1
  197. package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts.map +0 -1
  198. package/lib/typescript/shared/utils/bounds/helpers/interpolate-style.d.ts.map +0 -1
  199. package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts +0 -2
  200. package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts.map +0 -1
  201. package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +0 -1
  202. package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +0 -1
  203. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +0 -7
  204. package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +0 -1
  205. package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +0 -1
  206. package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +0 -1
  207. package/src/shared/utils/bounds/helpers/build-bounds-options.ts +0 -48
  208. package/src/shared/utils/bounds/helpers/interpolate.ts +0 -19
  209. /package/lib/commonjs/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
  210. /package/lib/commonjs/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
  211. /package/lib/module/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
  212. /package/lib/module/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
  213. /package/lib/typescript/shared/utils/bounds/{helpers/constants.d.ts → constants.d.ts} +0 -0
  214. /package/lib/typescript/shared/utils/bounds/helpers/{styles.d.ts → styles/styles.d.ts} +0 -0
  215. /package/src/shared/utils/bounds/helpers/{link-accessor.ts → create-link-accessor.ts} +0 -0
  216. /package/src/shared/utils/bounds/helpers/{styles.ts → styles/styles.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/stores/bounds/internals/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE9E,OAAO,KAAK,EACX,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,KAAK,EACL,OAAO,EAEP,MAAM,UAAU,CAAC;AAqClB,iBAAS,WAAW,CAAC,GAAG,EAAE,KAAK,EA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AC,EAAE,YAAY,EAC3B,qBAAqB,CAAC,EAAE,YAAY,EAAE,QA2CtC;AAED,iBAAS,aAAa,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,IAAI,CAyBxE;AAED,iBAAS,cAAc,CAAC,GAAG,EAAE,KAAK,GAAG,OAAO,CAa3C;AAED,iBAAS,wBAAwB,CAChC,GAAG,EAAE,KAAK,EACV,eAAe,EAAE,SAAS,GACxB,OAAO,CAaT;AAED,iBAAS,+BAA+B,CAAC,GAAG,EAAE,KAAK,GAAG,SAAS,GAAG,IAAI,CAcrE;AAED,iBAAS,aAAa,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAWhE;AAED,iBAAS,kBAAkB,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAWrE;AAED,OAAO,EACN,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,+BAA+B,EAC/B,aAAa,EACb,kBAAkB,GAClB,CAAC"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/stores/bounds/internals/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE9E,OAAO,KAAK,EACX,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,KAAK,EACL,OAAO,EAEP,MAAM,UAAU,CAAC;AAgClB,iBAAS,WAAW,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,GAAG,QAAQ,GAAG,IAAI,CAkBhE;AAED,iBAAS,gBAAgB,CACxB,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,kBAAkB,EAC1B,MAAM,GAAE,UAAe,EACvB,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Ac,CAAC,GAAG,EAAE,KAAK,GAAG,OAAO,CAa3C;AAED,iBAAS,wBAAwB,CAChC,GAAG,EAAE,KAAK,EACV,eAAe,EAAE,SAAS,GACxB,OAAO,CAaT;AAED,iBAAS,+BAA+B,CAAC,GAAG,EAAE,KAAK,GAAG,SAAS,GAAG,IAAI,CAcrE;AAED,iBAAS,aAAa,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAWhE;AAED,iBAAS,kBAAkB,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAWrE;AAED,OAAO,EACN,WAAW,EACX,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,wBAAwB,EACxB,+BAA+B,EAC/B,aAAa,EACb,kBAAkB,GAClB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/stores/bounds/internals/resolver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,sBAAsB,EACtB,wBAAwB,EAExB,KAAK,EAGL,MAAM,UAAU,CAAC;AA2DlB,iBAAS,qBAAqB,CAC7B,GAAG,EAAE,KAAK,EACV,OAAO,EAAE,wBAAwB,GAC/B,sBAAsB,CAmFxB;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/stores/bounds/internals/resolver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,sBAAsB,EACtB,wBAAwB,EAExB,KAAK,EAGL,MAAM,UAAU,CAAC;AA2DlB,iBAAS,qBAAqB,CAC7B,GAAG,EAAE,KAAK,EACV,OAAO,EAAE,wBAAwB,GAC/B,sBAAsB,CA2ExB;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
@@ -5,7 +5,4 @@ export type GroupsState = Record<string, GroupState>;
5
5
  export declare const registry: import("react-native-reanimated/lib/typescript/commonTypes").Mutable<RegistryState>;
6
6
  export declare const presence: import("react-native-reanimated/lib/typescript/commonTypes").Mutable<PresenceState>;
7
7
  export declare const groups: import("react-native-reanimated/lib/typescript/commonTypes").Mutable<GroupsState>;
8
- export declare function debugResolverLog(message: string): void;
9
- export declare function debugClearLog(message: string): void;
10
- export declare function debugStoreSizeLog(action: string): void;
11
8
  //# sourceMappingURL=state.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/stores/bounds/internals/state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE3E,eAAO,MAAM,mBAAmB,QAAO,QAMtC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AACpD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAErD,eAAO,MAAM,QAAQ,qFAAiC,CAAC;AACvD,eAAO,MAAM,QAAQ,qFAAiC,CAAC;AACvD,eAAO,MAAM,MAAM,mFAA+B,CAAC;AAqBnD,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,QAI/C;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,QAI5C;AA4DD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,QAO/C"}
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/stores/bounds/internals/state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE3E,eAAO,MAAM,mBAAmB,QAAO,QAMtC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AACpD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAErD,eAAO,MAAM,QAAQ,qFAAiC,CAAC;AACvD,eAAO,MAAM,QAAQ,qFAAiC,CAAC;AACvD,eAAO,MAAM,MAAM,mFAA+B,CAAC"}
@@ -23,6 +23,32 @@ export type BoundsNavigationZoomOptions = {
23
23
  target?: "bound" | "fullscreen" | MeasuredDimensions;
24
24
  debug?: boolean;
25
25
  borderRadius?: number;
26
+ /**
27
+ * Focused-screen element opacity curve.
28
+ *
29
+ * `open` is used while presenting the destination screen.
30
+ * `close` is used while returning to the source screen.
31
+ *
32
+ * Tuple order:
33
+ * - `inputStart`: transition progress start
34
+ * - `inputEnd`: transition progress end
35
+ * - `outputStart`: opacity at `inputStart` (defaults to built-in preset)
36
+ * - `outputEnd`: opacity at `inputEnd` (defaults to built-in preset)
37
+ */
38
+ focusedElementOpacity?: BoundsNavigationZoomOpacityRanges;
39
+ /**
40
+ * Unfocused-screen matched element opacity curve.
41
+ *
42
+ * `open` is used while the previous screen animates out during present.
43
+ * `close` is used while the previous screen animates back in during dismiss.
44
+ *
45
+ * Tuple order:
46
+ * - `inputStart`: transition progress start
47
+ * - `inputEnd`: transition progress end
48
+ * - `outputStart`: opacity at `inputStart` (defaults to built-in preset)
49
+ * - `outputEnd`: opacity at `inputEnd` (defaults to built-in preset)
50
+ */
51
+ unfocusedElementOpacity?: BoundsNavigationZoomOpacityRanges;
26
52
  /**
27
53
  * Scale applied to the unfocused background content while the focused bound
28
54
  * animates above it.
@@ -56,6 +82,52 @@ export type BoundsNavigationZoomOptions = {
56
82
  growMax: number,
57
83
  exponent?: number
58
84
  ];
85
+ /**
86
+ * Horizontal gesture drag translation curve.
87
+ *
88
+ * Tuple order:
89
+ * - `negativeMax`: multiplier when dragging left / negative
90
+ * - `positiveMax`: multiplier when dragging right / positive
91
+ * - `exponent`: curve exponent controlling how quickly translation ramps
92
+ *
93
+ * Examples:
94
+ * - `[0, 0]` disables horizontal drag translation
95
+ * - `[0.5, 0.5]` halves horizontal drag travel
96
+ * - `[1.2, 1.2]` amplifies horizontal drag travel
97
+ */
98
+ horizontalDragTranslation?: readonly [
99
+ negativeMax: number,
100
+ positiveMax: number,
101
+ exponent?: number
102
+ ];
103
+ /**
104
+ * Vertical gesture drag translation curve.
105
+ *
106
+ * Tuple order:
107
+ * - `negativeMax`: multiplier when dragging up / negative
108
+ * - `positiveMax`: multiplier when dragging down / positive
109
+ * - `exponent`: curve exponent controlling how quickly translation ramps
110
+ *
111
+ * Examples:
112
+ * - `[0, 0]` disables vertical drag translation
113
+ * - `[0.5, 0.5]` halves vertical drag travel
114
+ * - `[1.2, 1.2]` amplifies vertical drag travel
115
+ */
116
+ verticalDragTranslation?: readonly [
117
+ negativeMax: number,
118
+ positiveMax: number,
119
+ exponent?: number
120
+ ];
121
+ };
122
+ export type BoundsNavigationZoomOpacityRange = readonly [
123
+ inputStart: number,
124
+ inputEnd: number,
125
+ outputStart?: number,
126
+ outputEnd?: number
127
+ ];
128
+ export type BoundsNavigationZoomOpacityRanges = {
129
+ open?: BoundsNavigationZoomOpacityRange;
130
+ close?: BoundsNavigationZoomOpacityRange;
59
131
  };
60
132
  export type BoundsNavigationZoomStyle = TransitionInterpolatedStyle & {
61
133
  content?: TransitionSlotStyle;
@@ -1 +1 @@
1
- {"version":3,"file":"bounds.types.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/bounds.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,EACN,kCAAkC,EAClC,gCAAgC,EAChC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EACX,OAAO,EACP,aAAa,EACb,mBAAmB,EACnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KA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B,EAAE,CACjB,EAAE,EAAE,OAAO,EACX,QAAQ,EAAE,MAAM,UAAU,EAC1B,QAAQ,CAAC,EAAE,MAAM,KACb,MAAM,CAAC;IACZ,iBAAiB,EAAE,CAClB,EAAE,EAAE,OAAO,EACX,QAAQ,EAAE,MAAM,kBAAkB,EAClC,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,EACrC,QAAQ,CAAC,EAAE,MAAM,KACb,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAC1C,wBAAwB,EACxB,QAAQ,CACR,GAAG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export { FALSE, TRUE } from "../constants";
2
2
  export type { AnimatedViewStyle, AnimationConfig, ScreenInterpolationProps, ScreenStyleInterpolator, ScreenTransitionState, TransitionInterpolatedStyle, TransitionSlotStyle, TransitionSpec, } from "./animation.types";
3
- export type { BoundsAccessor, BoundsMethod, BoundsNavigationAccessor, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, } from "./bounds.types";
3
+ export type { BoundsAccessor, BoundsMethod, BoundsNavigationAccessor, BoundsNavigationZoomOpacityRange, BoundsNavigationZoomOpacityRanges, BoundsNavigationZoomOptions, BoundsNavigationZoomStyle, } from "./bounds.types";
4
4
  export type { ActivationArea, GestureActivationArea, GestureDirection, GestureValues, SideActivation, } from "./gesture.types";
5
5
  export type { OverlayProps } from "./overlay.types";
6
6
  export type { Layout, ScreenKey, ScreenTransitionConfig, TransitionAwareProps, } from "./screen.types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,MAAM,EACN,SAAS,EACT,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,GACb,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,YAAY,EACX,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,GACd,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACX,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,gCAAgC,EAChC,iCAAiC,EACjC,2BAA2B,EAC3B,yBAAyB,GACzB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,EACb,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,YAAY,EACX,MAAM,EACN,SAAS,EACT,sBAAsB,EACtB,oBAAoB,GACpB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACX,mBAAmB,EACnB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,cAAc,EACd,aAAa,GACb,MAAM,eAAe,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/bounds/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB;;;;;;;CAOkC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { BoundId } from "../types/options";
2
+ export type ResolveBoundTagParams = {
3
+ id?: BoundId;
4
+ group?: string;
5
+ };
6
+ export declare const createBoundTag: ({ id, group, }: ResolveBoundTagParams) => string | undefined;
7
+ //# sourceMappingURL=create-bound-tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-bound-tag.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/create-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,cAAc,GAAI,gBAG5B,qBAAqB,KAAG,MAAM,GAAG,SAYnC,CAAC"}
@@ -1,7 +1,7 @@
1
- import type { MeasuredDimensions } from "react-native-reanimated";
1
+ import { type MeasuredDimensions } from "react-native-reanimated";
2
2
  import type { ScreenInterpolationProps } from "../../../types/animation.types";
3
3
  import type { BoundId } from "../types/options";
4
- import type { LinkAccessor } from "./link-accessor";
4
+ import type { LinkAccessor } from "./create-link-accessor";
5
5
  type InterpolatorParams = {
6
6
  getProps: () => Omit<ScreenInterpolationProps, "bounds">;
7
7
  getLink: LinkAccessor["getLink"];
@@ -11,4 +11,4 @@ export declare const createInterpolators: ({ getProps, getLink, }: InterpolatorP
11
11
  interpolateBounds: (tag: BoundId, property: keyof MeasuredDimensions, fallbackOrTargetKey?: number | string, fallback?: number) => number;
12
12
  };
13
13
  export {};
14
- //# sourceMappingURL=interpolators.d.ts.map
14
+ //# sourceMappingURL=create-interpolators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-interpolators.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/create-interpolators.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,kBAAkB,EACvB,MAAM,yBAAyB,CAAC;AAGjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG3D,KAAK,kBAAkB,GAAG;IACzB,QAAQ,EAAE,MAAM,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;IACzD,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,wBAGjC,kBAAkB;4BAId,OAAO,YACF,MAAM,aACL,MAAM,KACf,MAAM;6BAkEH,OAAO,YACF,MAAM,kBAAkB,wBACZ,MAAM,GAAG,MAAM,aAC1B,MAAM,KACf,MAAM;CAmBT,CAAC"}
@@ -9,4 +9,4 @@ export type LinkAccessor = {
9
9
  };
10
10
  export declare const createLinkAccessor: (getProps: GetProps) => LinkAccessor;
11
11
  export {};
12
- //# sourceMappingURL=link-accessor.d.ts.map
12
+ //# sourceMappingURL=create-link-accessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-link-accessor.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/create-link-accessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,KAAK,QAAQ,GAAG,MAAM,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;AAE/D,MAAM,MAAM,YAAY,GAAG;IAC1B,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,QAAQ,GAAG,IAAI,CAAC;IAC7D,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,UAAU,GAAG,IAAI,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,UAAU,QAAQ,KAAG,YA+BvD,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { type ResolvedTransitionPair } from "../../../stores/bounds";
2
+ import type { ScreenInterpolationProps } from "../../../types/animation.types";
3
+ import type { BoundId, BoundsOptions, BoundsOptionsResult } from "../types/options";
4
+ type BaseInterpolatorProps = Omit<ScreenInterpolationProps, "bounds">;
5
+ type ComputeResolvedBoundsStylesParams<T extends BoundsOptions> = {
6
+ props: BaseInterpolatorProps;
7
+ options: T;
8
+ resolvedPair?: ResolvedTransitionPair;
9
+ syncGroupActiveId?: boolean;
10
+ };
11
+ type BuildBoundsOptionsParams = {
12
+ props: Omit<ScreenInterpolationProps, "bounds">;
13
+ id?: BoundId;
14
+ group?: string;
15
+ overrides?: Partial<BoundsOptions>;
16
+ };
17
+ export declare const buildBoundsOptions: ({ props, id, group, overrides, }: BuildBoundsOptionsParams) => BoundsOptions;
18
+ export declare const prepareBoundStyles: <T extends BoundsOptions>({ props, options, resolvedPair, syncGroupActiveId, }: ComputeResolvedBoundsStylesParams<T>) => BoundsOptionsResult<T>;
19
+ export {};
20
+ //# sourceMappingURL=prepare-bound-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepare-bound-styles.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/helpers/prepare-bound-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,sBAAsB,EAC3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAE/E,OAAO,KAAK,EACX,OAAO,EACP,aAAa,EACb,mBAAmB,EACnB,MAAM,kBAAkB,CAAC;AAI1B,KAAK,qBAAqB,GAAG,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;AAEtE,KAAK,iCAAiC,CAAC,CAAC,SAAS,aAAa,IAAI;IACjE,KAAK,EAAE,qBAAqB,CAAC;IAC7B,OAAO,EAAE,CAAC,CAAC;IACX,YAAY,CAAC,EAAE,sBAAsB,CAAC;IACtC,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC/B,KAAK,EAAE,IAAI,CAAC,wBAAwB,EAAE,QAAQ,CAAC,CAAC;IAChD,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,kCAKhC,wBAAwB,KAAG,aAoB7B,CAAC;AAaF,eAAO,MAAM,kBAAkB,GAAI,CAAC,SAAS,aAAa,EAAE,sDAKzD,iCAAiC,CAAC,CAAC,CAAC,KAAG,mBAAmB,CAAC,CAAC,CA0B9D,CAAC"}
@@ -1,6 +1,6 @@
1
- import type { MeasuredDimensions, StyleProps } from "react-native-reanimated";
2
- import type { ContentTransformGeometry, RelativeGeometry } from "../types/geometry";
3
- import type { BoundsOptions } from "../types/options";
1
+ import { type MeasuredDimensions, type StyleProps } from "react-native-reanimated";
2
+ import type { ContentTransformGeometry, RelativeGeometry } from "../../types/geometry";
3
+ import type { BoundsOptions } from "../../types/options";
4
4
  /**
5
5
  * Element-level (relative) params shared by size/transform composers.
6
6
  * - start/end: absolute window bounds of the element in previous/next phases
@@ -36,4 +36,4 @@ export declare function composeTransformAbsolute(params: ElementComposeParams):
36
36
  export declare function composeTransformRelative(params: ElementComposeParams): StyleProps;
37
37
  export declare function composeContentStyle(params: ContentComposeParams): StyleProps;
38
38
  export {};
39
- //# sourceMappingURL=style-composers.d.ts.map
39
+ //# sourceMappingURL=composers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"composers.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/helpers/styles/composers.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,MAAM,yBAAyB,CAAC;AAEjC,OAAO,KAAK,EACX,wBAAwB,EACxB,gBAAgB,EAChB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAgB,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,EAAE,kBAAkB,CAAC;IACxB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,cAAc,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF;;;;;;GAMG;AACH,KAAK,oBAAoB,GAAG;IAC3B,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,EAAE,kBAAkB,CAAC;IACxB,QAAQ,EAAE,wBAAwB,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,cAAc,EAAE,aAAa,CAAC;CAC9B,CAAC;AAiEF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,oBAAoB,GAAG,UAAU,CAqD5E;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,oBAAoB,GAAG,UAAU,CAsD5E;AAED,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,oBAAoB,GAC1B,UAAU,CA6DZ;AAED,wBAAgB,wBAAwB,CACvC,MAAM,EAAE,oBAAoB,GAC1B,UAAU,CAgDZ;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,oBAAoB,GAAG,UAAU,CAiC5E"}
@@ -1,4 +1,4 @@
1
- import { type ResolvedTransitionPair } from "../../../stores/bounds";
2
- import type { BoundsComputeParams, BoundsOptions } from "../types/options";
1
+ import { type ResolvedTransitionPair } from "../../../../stores/bounds";
2
+ import type { BoundsComputeParams, BoundsOptions } from "../../types/options";
3
3
  export declare const computeBoundStyles: ({ id, previous, current, next, progress, dimensions }: BoundsComputeParams, computeOptions?: BoundsOptions, resolvedPair?: ResolvedTransitionPair) => Readonly<{}>;
4
- //# sourceMappingURL=compute-bounds-styles.d.ts.map
4
+ //# sourceMappingURL=compute.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/helpers/styles/compute.ts"],"names":[],"mappings":"AASA,OAAO,EAEN,KAAK,sBAAsB,EAC3B,MAAM,2BAA2B,CAAC;AAGnC,OAAO,KAAK,EAEX,mBAAmB,EACnB,aAAa,EACb,MAAM,qBAAqB,CAAC;AAiG7B,eAAO,MAAM,kBAAkB,GAC9B,uDAAuD,mBAAmB,EAC1E,iBAAgB,aAAkC,EAClD,eAAe,sBAAsB,iBA0FrC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { BoundsLink } from "../../../types/bounds.types";
1
+ import type { BoundsLink } from "../../../../types/bounds.types";
2
2
  type InterpolateStyleOptions = {
3
3
  fallback?: number;
4
4
  };
@@ -14,4 +14,4 @@ type InterpolateStyleOptions = {
14
14
  */
15
15
  export declare function interpolateLinkStyle(link: BoundsLink | null, property: string, progress: number, entering: boolean, options?: InterpolateStyleOptions): number;
16
16
  export {};
17
- //# sourceMappingURL=interpolate-style.d.ts.map
17
+ //# sourceMappingURL=interpolate-link-style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interpolate-link-style.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/helpers/styles/interpolate-link-style.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,KAAK,uBAAuB,GAAG;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,UAAU,GAAG,IAAI,EACvB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,OAAO,EACjB,OAAO,GAAE,uBAA4B,GACnC,MAAM,CAkBR"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/utils/bounds/helpers/styles/styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGhF,KAAK,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AACnD,KAAK,UAAU,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;AACtC,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAqD5C,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,UAAU,GAAG,SAAS,GAC3B,gBAAgB,CAOlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/bounds/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,cAAc,EACd,wBAAwB,EAExB,MAAM,0BAA0B,CAAC;AAoBlC,eAAO,MAAM,oBAAoB,GAChC,UAAU,MAAM,wBAAwB,KACtC,cA6EF,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/utils/bounds/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,cAAc,EACd,wBAAwB,EAExB,MAAM,0BAA0B,CAAC;AAQlC,eAAO,MAAM,oBAAoB,GAChC,UAAU,MAAM,wBAAwB,KACtC,cAmDF,CAAC"}
@@ -75,8 +75,9 @@ export type BoundsOptions = {
75
75
  /**
76
76
  * Coordinate space selection.
77
77
  *
78
- * For `bounds({ ... })` element styles, space is normalized to `"relative"`.
79
- * `"absolute"` is reserved for internal navigation helpers (e.g. mask geometry).
78
+ * - `"relative"` composes movement relative to the current element's layout box
79
+ * - `"absolute"` composes movement in screen/window coordinates
80
+ *
80
81
  * @default "relative"
81
82
  */
82
83
  space?: BoundsSpace;
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/types/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEtC,MAAM,MAAM,YAAY,GACrB,YAAY,GACZ,KAAK,GACL,aAAa,GACb,SAAS,GACT,QAAQ,GACR,UAAU,GACV,eAAe,GACf,QAAQ,GACR,gBAAgB,CAAC;AAEpB,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC;AAE3D,KAAK,YAAY,GAAG,OAAO,GAAG,YAAY,GAAG,kBAAkB,CAAC;AAEhE,KAAK,WAAW,GAAG,UAAU,GAAG,UAAU,CAAC;AAE3C,MAAM,MAAM,mBAAmB,GAAG;IACjC,EAAE,CAAC,EAAE,OAAO,CAA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,CAAC,QAAQ,CAAC,SAAS,MAAM,GACzB,CAAC,CAAC,OAAO,CAAC,SAAS,UAAU,GAC5B,qBAAqB,GACrB,qBAAqB,GACtB,CAAC,CAAC,QAAQ,CAAC,SAAS,SAAS,GAC5B,gBAAgB,GAChB,CAAC,CAAC,OAAO,CAAC,SAAS,UAAU,GAC5B,0BAA0B,GAC1B,0BAA0B,GAC7B,UAAU,CAAC;AAEd,MAAM,MAAM,aAAa,GAAG;IAC3B;;;OAGG;IACH,EAAE,EAAE,OAAO,CAAC;IAEZ;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAEtC;;;OAGG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAE5B;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/build.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAoJ5E,wBAAgB,eAAe,CAAC,EAC/B,WAAW,EACX,WAAW,EACX,KAAK,GACL,EAAE,qBAAqB,GAAG,qBAAqB,CAqW/C"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/build.ts"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAsL5E,wBAAgB,eAAe,CAAC,EAC/B,WAAW,EACX,WAAW,EACX,KAAK,GACL,EAAE,qBAAqB,GAAG,qBAAqB,CAwa/C"}
@@ -7,7 +7,14 @@ export declare const ZOOM_DRAG_RESISTANCE = 0.4;
7
7
  export declare const ZOOM_DRAG_DIRECTIONAL_SCALE_MIN = 0.25;
8
8
  export declare const ZOOM_DRAG_DIRECTIONAL_SCALE_MAX = 1.06;
9
9
  export declare const ZOOM_DRAG_DIRECTIONAL_SCALE_EXPONENT = 2;
10
+ export declare const ZOOM_DRAG_TRANSLATION_NEGATIVE_MAX = 1;
11
+ export declare const ZOOM_DRAG_TRANSLATION_POSITIVE_MAX = 1;
12
+ export declare const ZOOM_DRAG_TRANSLATION_EXPONENT = 1;
10
13
  export declare const ZOOM_BACKGROUND_SCALE = 0.9375;
14
+ export declare const ZOOM_FOCUSED_ELEMENT_OPEN_OPACITY_RANGE: readonly [0, 0.5, 0, 1];
15
+ export declare const ZOOM_FOCUSED_ELEMENT_CLOSE_OPACITY_RANGE: readonly [0.6, 1, 0, 1];
16
+ export declare const ZOOM_UNFOCUSED_ELEMENT_OPEN_OPACITY_RANGE: readonly [1, 2, 1, 0];
17
+ export declare const ZOOM_UNFOCUSED_ELEMENT_CLOSE_OPACITY_RANGE: readonly [1.9, 2, 1, 0];
11
18
  export declare const ZOOM_MASK_OUTSET: Readonly<{
12
19
  top: 0;
13
20
  right: 0;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,eAAO,MAAM,mBAAmB;;;EAG9B,CAAC;AAEH,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC,eAAO,MAAM,+BAA+B,OAAO,CAAC;AACpD,eAAO,MAAM,+BAA+B,O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 +41,21 @@ export declare const resolveDirectionalDragScale: ({ normalized, dismissDirectio
41
41
  growMax: number;
42
42
  exponent: number;
43
43
  }) => number;
44
+ export declare const resolveDirectionalDragTranslation: ({ normalized, dimension, resistance, negativeMax, positiveMax, exponent, }: {
45
+ normalized: number;
46
+ dimension: number;
47
+ resistance: number;
48
+ negativeMax: number;
49
+ positiveMax: number;
50
+ exponent?: number;
51
+ }) => number;
52
+ export declare const resolveOpacityRangeTuple: ({ value, fallback, }: {
53
+ value: readonly [inputStart: number, inputEnd: number, outputStart?: number, outputEnd?: number] | undefined;
54
+ fallback: readonly [inputStart: number, inputEnd: number, outputStart?: number, outputEnd?: number];
55
+ }) => {
56
+ inputStart: number;
57
+ inputEnd: number;
58
+ outputStart: number;
59
+ outputEnd: number;
60
+ };
44
61
  //# sourceMappingURL=math.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"math.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/math.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,KAAK,CAAC;AAEvE,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,KAAG,MAS/D,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,KAAG,MAGvC,CAAC;AAEF,eAAO,MAAM,IAAI,GAAI,MAAM,MAAM,EAAE,IAAI,MAAM,EAAE,GAAG,MAAM,KAAG,MAG1D,CAAC;AAEF,eAAO,MAAM,UAAU,GACtB,WAAW,MAAM,EACjB,aAAa,MAAM,EACnB,iBAAY,KACV,MAIF,CAAC;AAEF,eAAO,MAAM,WAAW,GACvB,OAAO,MAAM,EACb,OAAO,MAAM,EACb,OAAO,MAAM,KACX,MAGF,CAAC;AAEF,eAAO,MAAM,eAAe,GAC3B,OAAO,MAAM,EACb,OAAO,MAAM,EACb,OAAO,MAAM,EACb,QAAQ,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AAM,EAChB,WAAW,CAAC,EAAE,MAAM,EACpB,SAAS,CAAC,EAAE,MAAM,CACjB,GACD,SAAS,CAAC;IACb,QAAQ,EAAE,SAAS,CAClB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,EACpB,SAAS,CAAC,EAAE,MAAM,CAClB,CAAC;CACF;;;;;CASA,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-screen-transitions",
3
- "version": "3.4.0-beta.0",
3
+ "version": "3.4.0-beta.2",
4
4
  "description": "Easy screen transitions for React Native and Expo",
5
5
  "author": "Ed",
6
6
  "license": "MIT",
@@ -17,12 +17,12 @@ import { useDescriptorDerivations } from "../../providers/screen/descriptors";
17
17
  import { useScreenStyles } from "../../providers/screen/styles";
18
18
  import { AnimationStore } from "../../stores/animation.store";
19
19
  import { BoundStore } from "../../stores/bounds";
20
- import { prepareStyleForBounds } from "../../utils/bounds/helpers/styles";
20
+ import { prepareStyleForBounds } from "../../utils/bounds/helpers/styles/styles";
21
21
  import { useAutoSourceMeasurement } from "./hooks/use-auto-source-measurement";
22
22
  import { useBoundaryMeasureAndStore } from "./hooks/use-boundary-measure-and-store";
23
23
  import { useBoundaryPresence } from "./hooks/use-boundary-presence";
24
24
  import { usePendingDestinationMeasurement } from "./hooks/use-pending-destination-measurement";
25
- import { usePrepareTransitionMeasurement } from "./hooks/use-prepare-transition-measurement";
25
+ import { usePreTransitionMeasurement } from "./hooks/use-pre-transition-measurement";
26
26
  import {
27
27
  BoundaryOwnerProvider,
28
28
  useBoundaryOwner,
@@ -183,9 +183,10 @@ export function createBoundaryComponent<P extends object>(
183
183
  });
184
184
 
185
185
  // Pre-transition measurement path: when this route or its next sibling is
186
- // about to animate, capture one clean base measurement before progress or
187
- // transform state mutates.
188
- usePrepareTransitionMeasurement({
186
+ // about to animate, capture or refresh the measurements needed before
187
+ // progress or transform state mutates. Grouped sources refresh existing
188
+ // links; plain sources only backfill when missing.
189
+ usePreTransitionMeasurement({
189
190
  enabled: runtimeEnabled,
190
191
  sharedBoundTag,
191
192
  id,
@@ -202,9 +202,14 @@ export const resolvePendingDestinationRetrySignal = (params: {
202
202
 
203
203
  export const resolvePrepareSourceMeasurementIntent = (params: {
204
204
  hasSourceLink: boolean;
205
+ shouldRefreshExistingSource: boolean;
205
206
  }): MeasurementIntent | null => {
206
207
  "worklet";
207
- return params.hasSourceLink ? null : "capture-source";
208
+ if (!params.hasSourceLink) {
209
+ return "capture-source";
210
+ }
211
+
212
+ return params.shouldRefreshExistingSource ? "refresh-source" : null;
208
213
  };
209
214
 
210
215
  export const PREPARE_DESTINATION_MEASUREMENT_INTENT = [
@@ -14,6 +14,20 @@ import {
14
14
  resolvePendingDestinationRetrySignal,
15
15
  } from "./helpers/measurement-rules";
16
16
 
17
+ /**
18
+ * The current v3.4 behavior intentionally favors correctness over efficiency:
19
+ * when destination layout races transition start, this hook may re-measure
20
+ * multiple times to recover a usable pair for `navigation.zoom()`.
21
+ *
22
+ * This works well enough for now, but it is not the ideal architecture. A more
23
+ * complete v4 solution should allow open-animation deferral and broader
24
+ * readiness coordination so we can avoid repeated measurement work while still
25
+ * handling multiple transition scenarios correctly. Until that system exists,
26
+ * `navigation.zoom()` remains fast in practice, just not as performant as it
27
+ * could be.
28
+ *
29
+ * For now, you may notice a slight stutter towards the end of the animation.
30
+ */
17
31
  export const usePendingDestinationMeasurement = (params: {
18
32
  sharedBoundTag: string;
19
33
  enabled: boolean;
@@ -91,6 +105,17 @@ export const usePendingDestinationMeasurement = (params: {
91
105
  maybeMeasureAndStore,
92
106
  ]);
93
107
 
108
+ /**
109
+ * This exessive retry for groups with {target:"bound"} will have to change in v4.
110
+ * .navigation.zoom() is stable and works great for non groups and groups that are non {target: "bound"}.
111
+ *
112
+ * The retry logic is needed for dst screen when we do an initialScrollIndex, the system is competing with the (i assume) useLayoutEffect
113
+ * in the scrollable, causing a race here and giving us wrong measurements. I believe, in simialr fashion to how
114
+ * system.store defers the screen from animating, we could possibly do the same here. Registering it up, once we get valid measurements, we can
115
+ * un defer? Is that the word? Undefer the screen, removing this block compeltely, avoiding any potential flickers ( which currently happens.)
116
+ *
117
+ * You can replicate this bug by dismissing dst, as dst reaches its ending tail (0.01->0.10), if we tap again, we notice a flicker.
118
+ */
94
119
  useAnimatedReaction(
95
120
  () => {
96
121
  "worklet";
@@ -122,9 +147,11 @@ export const usePendingDestinationMeasurement = (params: {
122
147
  if (!captureSignal || captureSignal === previousCaptureSignal) {
123
148
  return;
124
149
  }
150
+
125
151
  const currentGroupActiveId = group
126
152
  ? BoundStore.getGroupActiveId(group)
127
153
  : null;
154
+
128
155
  if (group && currentGroupActiveId !== String(id)) {
129
156
  return;
130
157
  }
@@ -175,6 +202,7 @@ export const usePendingDestinationMeasurement = (params: {
175
202
  },
176
203
  (captureSignal) => {
177
204
  "worklet";
205
+ // if (!group) return;
178
206
  if (!enabled) return;
179
207
  if (!captureSignal) {
180
208
  retryCount.set(0);
@@ -191,18 +219,5 @@ export const usePendingDestinationMeasurement = (params: {
191
219
  retryCount.set(retryCount.get() + 1);
192
220
  maybeMeasureAndStore({ intent: "complete-destination" });
193
221
  },
194
- [
195
- enabled,
196
- id,
197
- group,
198
- sharedBoundTag,
199
- currentScreenKey,
200
- expectedSourceScreenKey,
201
- progress,
202
- animating,
203
- closing,
204
- maybeMeasureAndStore,
205
- retryCount,
206
- ],
207
222
  );
208
223
  };
@@ -8,7 +8,7 @@ import {
8
8
  resolvePrepareSourceMeasurementIntent,
9
9
  } from "./helpers/measurement-rules";
10
10
 
11
- export const usePrepareTransitionMeasurement = (params: {
11
+ export const usePreTransitionMeasurement = (params: {
12
12
  enabled: boolean;
13
13
  sharedBoundTag: string;
14
14
  id: BoundaryId;
@@ -69,11 +69,14 @@ export const usePrepareTransitionMeasurement = (params: {
69
69
  return;
70
70
  }
71
71
 
72
+ const hasSourceLink = BoundStore.hasSourceLink(
73
+ sharedBoundTag,
74
+ currentScreenKey,
75
+ );
76
+
72
77
  const intent = resolvePrepareSourceMeasurementIntent({
73
- hasSourceLink: BoundStore.hasSourceLink(
74
- sharedBoundTag,
75
- currentScreenKey,
76
- ),
78
+ hasSourceLink,
79
+ shouldRefreshExistingSource: !!group,
77
80
  });
78
81
 
79
82
  if (!intent) {
@@ -107,7 +107,6 @@ export const EMPTY_BOUND_HELPER_RESULT_RAW = Object.freeze({
107
107
  translateY: 0,
108
108
  width: 0,
109
109
  height: 0,
110
- ...HIDDEN_STYLE,
111
110
  });
112
111
  export const TRANSFORM_RESET = Object.freeze({
113
112
  transform: [
@@ -48,6 +48,8 @@ export type {
48
48
  AnimatedViewStyle,
49
49
  AnimationConfig,
50
50
  BoundsNavigationAccessor,
51
+ BoundsNavigationZoomOpacityRange,
52
+ BoundsNavigationZoomOpacityRanges,
51
53
  BoundsNavigationZoomOptions,
52
54
  BoundsNavigationZoomStyle,
53
55
  OverlayProps,
@@ -16,7 +16,7 @@ import useStableCallbackValue from "../hooks/use-stable-callback-value";
16
16
  import { AnimationStore } from "../stores/animation.store";
17
17
  import { BoundStore } from "../stores/bounds";
18
18
  import { applyMeasuredBoundsWrites } from "../stores/bounds/helpers/apply-measured-bounds-writes";
19
- import { prepareStyleForBounds } from "../utils/bounds/helpers/styles";
19
+ import { prepareStyleForBounds } from "../utils/bounds/helpers/styles/styles";
20
20
  import createProvider from "../utils/create-provider";
21
21
  import { useLayoutAnchorContext } from "./layout-anchor.provider";
22
22
  import { useDescriptorDerivations, useDescriptors } from "./screen/descriptors";
@@ -417,6 +417,13 @@ const registerBoundsBundle = createProvider("RegisterBounds", {
417
417
  },
418
418
  );
419
419
 
420
+ /**
421
+ * Legacy bounds registration provider used by transition-aware components.
422
+ *
423
+ * @deprecated Prefer the newer bounds system (`Transition.Boundary`, `bounds()`,
424
+ * and navigation-style bounds helpers) for new code. This provider remains only
425
+ * for backwards compatibility with the older shared-bound-tag registration path.
426
+ */
420
427
  const RegisterBoundsProvider = registerBoundsBundle.RegisterBoundsProvider;
421
428
  useRegisterBoundsContext = registerBoundsBundle.useRegisterBoundsContext;
422
429