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.
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +6 -5
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +4 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +28 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/{use-prepare-transition-measurement.js → use-pre-transition-measurement.js} +7 -5
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
- package/lib/commonjs/shared/constants.js +1 -2
- package/lib/commonjs/shared/constants.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +9 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/clear.js +23 -167
- package/lib/commonjs/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/presence.js +0 -3
- package/lib/commonjs/shared/stores/bounds/internals/presence.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +0 -5
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +0 -3
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/state.js +1 -83
- package/lib/commonjs/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/constants.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +5 -5
- package/lib/commonjs/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +6 -6
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +70 -0
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
- package/lib/commonjs/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +9 -9
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
- package/lib/commonjs/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
- package/lib/commonjs/shared/utils/bounds/index.js +16 -44
- package/lib/commonjs/shared/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +135 -31
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js +8 -1
- package/lib/commonjs/shared/utils/bounds/zoom/config.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/math.js +34 -1
- package/lib/commonjs/shared/utils/bounds/zoom/math.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +6 -5
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js +4 -1
- package/lib/module/shared/components/create-boundary-component/hooks/helpers/measurement-rules.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js +29 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/{use-prepare-transition-measurement.js → use-pre-transition-measurement.js} +5 -3
- package/lib/module/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.js.map +1 -0
- package/lib/module/shared/constants.js +1 -2
- package/lib/module/shared/constants.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +9 -1
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/clear.js +24 -168
- package/lib/module/shared/stores/bounds/internals/clear.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/presence.js +1 -4
- package/lib/module/shared/stores/bounds/internals/presence.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/registry.js +1 -6
- package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +1 -4
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/state.js +0 -78
- package/lib/module/shared/stores/bounds/internals/state.js.map +1 -1
- package/lib/module/shared/utils/bounds/constants.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{resolve-bound-tag.js → create-bound-tag.js} +3 -3
- package/lib/module/shared/utils/bounds/helpers/create-bound-tag.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{interpolators.js → create-interpolators.js} +5 -5
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{link-accessor.js → create-link-accessor.js} +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +64 -0
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{style-composers.js → styles/composers.js} +22 -22
- package/lib/module/shared/utils/bounds/helpers/styles/composers.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{compute-bounds-styles.js → styles/compute.js} +7 -7
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/{interpolate-style.js → styles/interpolate-link-style.js} +4 -4
- package/lib/module/shared/utils/bounds/helpers/styles/interpolate-link-style.js.map +1 -0
- package/lib/module/shared/utils/bounds/helpers/styles/styles.js.map +1 -0
- package/lib/module/shared/utils/bounds/index.js +14 -42
- package/lib/module/shared/utils/bounds/index.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/build.js +138 -34
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/config.js +7 -0
- package/lib/module/shared/utils/bounds/zoom/config.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/math.js +31 -0
- package/lib/module/shared/utils/bounds/zoom/math.js.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts +1 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/helpers/measurement-rules.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts +14 -0
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/{use-prepare-transition-measurement.d.ts → use-pre-transition-measurement.d.ts} +2 -2
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-pre-transition-measurement.d.ts.map +1 -0
- package/lib/typescript/shared/constants.d.ts +0 -1
- package/lib/typescript/shared/constants.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +1 -1
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts +7 -0
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/clear.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/presence.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts +0 -3
- package/lib/typescript/shared/stores/bounds/internals/state.d.ts.map +1 -1
- package/lib/typescript/shared/types/bounds.types.d.ts +72 -0
- package/lib/typescript/shared/types/bounds.types.d.ts.map +1 -1
- package/lib/typescript/shared/types/index.d.ts +1 -1
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/constants.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts +7 -0
- package/lib/typescript/shared/utils/bounds/helpers/create-bound-tag.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{interpolators.d.ts → create-interpolators.d.ts} +3 -3
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{link-accessor.d.ts → create-link-accessor.d.ts} +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +20 -0
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{style-composers.d.ts → styles/composers.d.ts} +4 -4
- package/lib/typescript/shared/utils/bounds/helpers/styles/composers.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{compute-bounds-styles.d.ts → styles/compute.d.ts} +3 -3
- package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/{interpolate-style.d.ts → styles/interpolate-link-style.d.ts} +2 -2
- package/lib/typescript/shared/utils/bounds/helpers/styles/interpolate-link-style.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/helpers/styles/styles.d.ts.map +1 -0
- package/lib/typescript/shared/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +3 -2
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts +7 -0
- package/lib/typescript/shared/utils/bounds/zoom/config.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/math.d.ts +17 -0
- package/lib/typescript/shared/utils/bounds/zoom/math.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +6 -5
- package/src/shared/components/create-boundary-component/hooks/helpers/measurement-rules.ts +6 -1
- package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts +28 -13
- package/src/shared/components/create-boundary-component/hooks/{use-prepare-transition-measurement.ts → use-pre-transition-measurement.ts} +8 -5
- package/src/shared/constants.ts +0 -1
- package/src/shared/index.ts +2 -0
- package/src/shared/providers/register-bounds.provider.tsx +8 -1
- package/src/shared/stores/bounds/internals/clear.ts +47 -220
- package/src/shared/stores/bounds/internals/presence.ts +1 -4
- package/src/shared/stores/bounds/internals/registry.ts +1 -11
- package/src/shared/stores/bounds/internals/resolver.ts +1 -9
- package/src/shared/stores/bounds/internals/state.ts +0 -98
- package/src/shared/types/bounds.types.ts +74 -0
- package/src/shared/types/index.ts +2 -0
- package/src/shared/utils/bounds/{helpers/constants.ts → constants.ts} +1 -1
- package/src/shared/utils/bounds/helpers/{resolve-bound-tag.ts → create-bound-tag.ts} +2 -2
- package/src/shared/utils/bounds/helpers/{interpolators.ts → create-interpolators.ts} +19 -12
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +100 -0
- package/src/shared/utils/bounds/helpers/{style-composers.ts → styles/composers.ts} +119 -53
- package/src/shared/utils/bounds/helpers/{compute-bounds-styles.ts → styles/compute.ts} +9 -9
- package/src/shared/utils/bounds/helpers/{interpolate-style.ts → styles/interpolate-link-style.ts} +9 -4
- package/src/shared/utils/bounds/index.ts +13 -53
- package/src/shared/utils/bounds/types/options.ts +3 -2
- package/src/shared/utils/bounds/zoom/build.ts +169 -61
- package/src/shared/utils/bounds/zoom/config.ts +9 -0
- package/src/shared/utils/bounds/zoom/math.ts +57 -0
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js +0 -41
- package/lib/commonjs/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/constants.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js +0 -20
- package/lib/commonjs/shared/utils/bounds/helpers/interpolate.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/interpolators.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/style-composers.js.map +0 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles.js.map +0 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js +0 -36
- package/lib/module/shared/utils/bounds/helpers/build-bounds-options.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/compute-bounds-styles.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/constants.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/interpolate-style.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/interpolate.js +0 -16
- package/lib/module/shared/utils/bounds/helpers/interpolate.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/interpolators.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/link-accessor.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/resolve-bound-tag.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/style-composers.js.map +0 -1
- package/lib/module/shared/utils/bounds/helpers/styles.js.map +0 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-prepare-transition-measurement.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts +0 -14
- package/lib/typescript/shared/utils/bounds/helpers/build-bounds-options.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/compute-bounds-styles.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/constants.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolate-style.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts +0 -2
- package/lib/typescript/shared/utils/bounds/helpers/interpolate.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/interpolators.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/link-accessor.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts +0 -7
- package/lib/typescript/shared/utils/bounds/helpers/resolve-bound-tag.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/style-composers.d.ts.map +0 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles.d.ts.map +0 -1
- package/src/shared/utils/bounds/helpers/build-bounds-options.ts +0 -48
- package/src/shared/utils/bounds/helpers/interpolate.ts +0 -19
- /package/lib/commonjs/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
- /package/lib/commonjs/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
- /package/lib/module/shared/utils/bounds/{helpers/constants.js → constants.js} +0 -0
- /package/lib/module/shared/utils/bounds/helpers/{styles.js → styles/styles.js} +0 -0
- /package/lib/typescript/shared/utils/bounds/{helpers/constants.d.ts → constants.d.ts} +0 -0
- /package/lib/typescript/shared/utils/bounds/helpers/{styles.d.ts → styles/styles.d.ts} +0 -0
- /package/src/shared/utils/bounds/helpers/{link-accessor.ts → create-link-accessor.ts} +0 -0
- /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;
|
|
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,YAAY,CAAC,EAAE,SAAS,EAAE,EAC1B,YAAY,CAAC,EAAE,YAAY,EAC3B,qB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C,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,
|
|
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
|
|
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,KAAK,EACX,wBAAwB,EACxB,2BAA2B,EAC3B,mBAAmB,EACnB,MAAM,mBAAmB,CAAC;AAE3B;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAE5D,MAAM,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,UAAU,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACzC,MAAM,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,kBAAkB,CAAC;IACrD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;;;OAQG;IACH,mBAAmB,CAAC,EAAE,SAAS;QAC9B,SAAS,EAAE,MAAM;QACjB,OAAO,EAAE,MAAM;QACf,QAAQ,CAAC,EAAE,MAAM;KACjB,CAAC;IACF;;;;;;;;OAQG;IACH,iBAAiB,CAAC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U,EAAE,wBAAwB,CAAC;CACrC,CAAC;AAEF,KAAK,gBAAgB,CAAC,CAAC,SAAS,aAAa,IAAI,mBAAmB,CAAC,CAAC,CAAC,GACtE,6BAA6B,CAAC;AAE/B,MAAM,MAAM,cAAc,GAAG;IAC5B,CAAC,CAAC,SAAS,aAAa,EAAE,OAAO,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAC3D,WAAW,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,QAAQ,GAAG,IAAI,CAAC;IAC5D,OAAO,EAAE,CAAC,EAAE,EAAE,OAAO,KAAK,UAAU,GAAG,IAAI,CAAC;IAC5C,gBAAgB,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"}
|
package/lib/typescript/shared/utils/bounds/helpers/{interpolators.d.ts → create-interpolators.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type
|
|
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"}
|
|
@@ -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"}
|
package/lib/typescript/shared/utils/bounds/helpers/{style-composers.d.ts → styles/composers.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { ContentTransformGeometry, RelativeGeometry } from "
|
|
3
|
-
import type { BoundsOptions } from "
|
|
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=
|
|
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 "
|
|
2
|
-
import type { BoundsComputeParams, BoundsOptions } from "
|
|
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
|
|
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 "
|
|
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":"
|
|
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
|
-
*
|
|
79
|
-
* `"absolute"`
|
|
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,CAAC;IACb,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,KAAK,qBAAqB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MA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C,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":"
|
|
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,OAAO,CAAC;AACpD,eAAO,MAAM,oCAAoC,IAAI,CAAC;AACtD,eAAO,MAAM,qBAAqB,SAAS,CAAC;
|
|
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,OAAO,CAAC;AACpD,eAAO,MAAM,oCAAoC,IAAI,CAAC;AACtD,eAAO,MAAM,kCAAkC,IAAI,CAAC;AACpD,eAAO,MAAM,kCAAkC,IAAI,CAAC;AACpD,eAAO,MAAM,8BAA8B,IAAI,CAAC;AAChD,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAC5C,eAAO,MAAM,uCAAuC,yBAA0B,CAAC;AAC/E,eAAO,MAAM,wCAAwC,yBAA0B,CAAC;AAChF,eAAO,MAAM,yCAAyC,uBAAwB,CAAC;AAC/E,eAAO,MAAM,0CAA0C,yBAE7C,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;EAK3B,CAAC;AAEH,eAAO,MAAM,aAAa,GACzB,QAAQ,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS,KACzC,aAAa,CAAC,QAAQ,CAGxB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,EAAE,iBAAY,KAAG,MAGvD,CAAC"}
|
|
@@ -41,4 +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,KA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,iEAMzC;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,UAAU,GAAG,UAAU,CAAC;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CACjB,WAgBA,CAAC;AAEF,eAAO,MAAM,iCAAiC,GAAI,4EAO/C;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,WAYA,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,sBAGtC;IACF,KAAK,EACF,SAAS,CACT,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,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
|
@@ -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 {
|
|
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
|
|
187
|
-
// transform state mutates.
|
|
188
|
-
|
|
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
|
-
|
|
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 = [
|
package/src/shared/components/create-boundary-component/hooks/use-pending-destination-measurement.ts
CHANGED
|
@@ -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
|
|
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
|
|
74
|
-
|
|
75
|
-
currentScreenKey,
|
|
76
|
-
),
|
|
78
|
+
hasSourceLink,
|
|
79
|
+
shouldRefreshExistingSource: !!group,
|
|
77
80
|
});
|
|
78
81
|
|
|
79
82
|
if (!intent) {
|
package/src/shared/constants.ts
CHANGED
package/src/shared/index.ts
CHANGED
|
@@ -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
|
|