react-native-screen-transitions 3.5.0 → 3.5.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 (146) hide show
  1. package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +2 -2
  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/helpers/resolve-pending-source-key.js +3 -3
  4. package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  5. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +3 -3
  6. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  7. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +7 -6
  8. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -1
  9. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +2 -2
  10. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -1
  11. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +8 -8
  12. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
  13. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +6 -5
  14. package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
  15. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +2 -4
  16. package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
  17. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +3 -3
  18. package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
  19. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +4 -4
  20. package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
  21. package/lib/commonjs/shared/providers/register-bounds.provider.js +8 -8
  22. package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
  23. package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js +1 -2
  24. package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
  25. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +6 -6
  26. package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
  27. package/lib/commonjs/shared/stores/bounds/index.js +85 -1
  28. package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
  29. package/lib/commonjs/shared/stores/bounds/internals/registry.js +7 -0
  30. package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
  31. package/lib/commonjs/shared/stores/bounds/internals/resolver.js +3 -1
  32. package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
  33. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +3 -3
  34. package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  35. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +3 -3
  36. package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  37. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +5 -4
  38. package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  39. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +2 -2
  40. package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  41. package/lib/commonjs/shared/utils/bounds/zoom/build.js +4 -3
  42. package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
  43. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +2 -2
  44. package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
  45. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +3 -3
  46. package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
  47. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +3 -3
  48. package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
  49. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +7 -6
  50. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -1
  51. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +2 -2
  52. package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -1
  53. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +8 -8
  54. package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
  55. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +6 -5
  56. package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
  57. package/lib/module/shared/components/overlay/variations/overlay-host.js +2 -4
  58. package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
  59. package/lib/module/shared/components/screen-container/layers/backdrop.js +3 -3
  60. package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
  61. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +4 -4
  62. package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
  63. package/lib/module/shared/providers/register-bounds.provider.js +8 -8
  64. package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
  65. package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js +1 -2
  66. package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
  67. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +6 -6
  68. package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
  69. package/lib/module/shared/stores/bounds/index.js +85 -1
  70. package/lib/module/shared/stores/bounds/index.js.map +1 -1
  71. package/lib/module/shared/stores/bounds/internals/registry.js +7 -0
  72. package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
  73. package/lib/module/shared/stores/bounds/internals/resolver.js +3 -1
  74. package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
  75. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +3 -3
  76. package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
  77. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +3 -3
  78. package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
  79. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +5 -4
  80. package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
  81. package/lib/module/shared/utils/bounds/helpers/styles/compute.js +2 -2
  82. package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
  83. package/lib/module/shared/utils/bounds/zoom/build.js +4 -3
  84. package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
  85. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts +207 -4
  86. package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
  87. package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
  88. package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
  89. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +1 -1
  90. package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +1 -1
  91. package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
  92. package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
  93. package/lib/typescript/shared/components/create-boundary-component/index.d.ts +207 -3
  94. package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
  95. package/lib/typescript/shared/components/create-transition-aware-component.d.ts +6 -5
  96. package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
  97. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +1 -1
  98. package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
  99. package/lib/typescript/shared/components/scene-view.d.ts +1 -1
  100. package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
  101. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +2 -2
  102. package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
  103. package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -1
  104. package/lib/typescript/shared/index.d.ts +911 -649
  105. package/lib/typescript/shared/index.d.ts.map +1 -1
  106. package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
  107. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts +1 -1
  108. package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -1
  109. package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +2 -2
  110. package/lib/typescript/shared/stores/bounds/index.d.ts +25 -0
  111. package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
  112. package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
  113. package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
  114. package/lib/typescript/shared/stores/bounds/types.d.ts +3 -0
  115. package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
  116. package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -1
  117. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +1 -1
  118. package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
  119. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -1
  120. package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
  121. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts +1 -1
  122. package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
  123. package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
  124. package/package.json +2 -37
  125. package/src/shared/components/create-boundary-component/create-boundary-component.tsx +2 -2
  126. package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +7 -4
  127. package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +6 -3
  128. package/src/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.ts +12 -7
  129. package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +2 -4
  130. package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +14 -12
  131. package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +6 -12
  132. package/src/shared/components/overlay/variations/overlay-host.tsx +5 -4
  133. package/src/shared/components/screen-container/layers/backdrop.tsx +3 -5
  134. package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +8 -4
  135. package/src/shared/providers/register-bounds.provider.tsx +13 -16
  136. package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +4 -2
  137. package/src/shared/stores/bounds/helpers/apply-measured-bounds-writes.ts +6 -6
  138. package/src/shared/stores/bounds/index.ts +182 -0
  139. package/src/shared/stores/bounds/internals/registry.ts +8 -0
  140. package/src/shared/stores/bounds/internals/resolver.ts +2 -0
  141. package/src/shared/stores/bounds/types.ts +3 -0
  142. package/src/shared/utils/bounds/helpers/create-interpolators.ts +3 -6
  143. package/src/shared/utils/bounds/helpers/create-link-accessor.ts +7 -6
  144. package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +8 -8
  145. package/src/shared/utils/bounds/helpers/styles/compute.ts +3 -5
  146. package/src/shared/utils/bounds/zoom/build.ts +5 -6
@@ -5,6 +5,6 @@ type OverlayHostProps = {
5
5
  scene: StackScene;
6
6
  overlayScreenState: OverlayScreenState<BaseDescriptor["navigation"]>;
7
7
  };
8
- export declare const OverlayHost: import("react").MemoExoticComponent<({ scene, overlayScreenState, }: OverlayHostProps) => import("react/jsx-runtime").JSX.Element | null>;
8
+ export declare const OverlayHost: import("react").NamedExoticComponent<OverlayHostProps>;
9
9
  export {};
10
10
  //# sourceMappingURL=overlay-host.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"overlay-host.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/overlay/variations/overlay-host.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,EAEX,kBAAkB,EAClB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,gBAAgB,GAAG;IACvB,KAAK,EAAE,UAAU,CAAC;IAClB,kBAAkB,EAAE,kBAAkB,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,WAAW,uEAGrB,gBAAgB,oDAmCjB,CAAC"}
1
+ {"version":3,"file":"overlay-host.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/overlay/variations/overlay-host.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAEtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,KAAK,EAEX,kBAAkB,EAClB,MAAM,8BAA8B,CAAC;AAEtC,KAAK,gBAAgB,GAAG;IACvB,KAAK,EAAE,UAAU,CAAC;IAClB,kBAAkB,EAAE,kBAAkB,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,WAAW,wDAyCtB,CAAC"}
@@ -8,6 +8,6 @@ type SceneViewProps = {
8
8
  * Wraps screen render output with navigation context providers
9
9
  * and optional screen overlay.
10
10
  */
11
- export declare const SceneView: React.MemoExoticComponent<({ descriptor, }: SceneViewProps) => import("react/jsx-runtime").JSX.Element>;
11
+ export declare const SceneView: React.NamedExoticComponent<SceneViewProps>;
12
12
  export {};
13
13
  //# sourceMappingURL=scene-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scene-view.d.ts","sourceRoot":"","sources":["../../../../src/shared/components/scene-view.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,KAAK,cAAc,GAAG;IACrB,UAAU,EAAE,mBAAmB,CAAC;CAChC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,8CAEnB,cAAc,6CAUf,CAAC"}
1
+ {"version":3,"file":"scene-view.d.ts","sourceRoot":"","sources":["../../../../src/shared/components/scene-view.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,KAAK,cAAc,GAAG;IACrB,UAAU,EAAE,mBAAmB,CAAC;CAChC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,4CAYpB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { BackdropBehavior } from "../../../types/screen.types";
2
- export declare const BackdropLayer: import("react").MemoExoticComponent<({ backdropBehavior, isBackdropActive, }: {
2
+ export declare const BackdropLayer: import("react").NamedExoticComponent<{
3
3
  backdropBehavior: BackdropBehavior;
4
4
  isBackdropActive: boolean;
5
- }) => import("react/jsx-runtime").JSX.Element>;
5
+ }>;
6
6
  //# sourceMappingURL=backdrop.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"backdrop.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/screen-container/layers/backdrop.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAIpE,eAAO,MAAM,aAAa,gFAGvB;IACF,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,gBAAgB,EAAE,OAAO,CAAC;CAC1B,6CAiHC,CAAC"}
1
+ {"version":3,"file":"backdrop.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/components/screen-container/layers/backdrop.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAIpE,eAAO,MAAM,aAAa;sBAIP,gBAAgB;sBAChB,OAAO;EAgHxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"reset-stores-for-screen.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts"],"names":[],"mappings":"AAMA,wBAAgB,oBAAoB,CACnC,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,OAAO,EACvB,kBAAkB,CAAC,EAAE,MAAM,QAmB3B"}
1
+ {"version":3,"file":"reset-stores-for-screen.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts"],"names":[],"mappings":"AAUA,wBAAgB,oBAAoB,CACnC,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,OAAO,EACvB,kBAAkB,CAAC,EAAE,MAAM,QAmB3B"}