react-native-screen-transitions 2.0.4 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -77
- package/lib/commonjs/components/{bounds-activator.js → bound-capture.js} +4 -4
- package/lib/commonjs/components/bound-capture.js.map +1 -0
- package/lib/commonjs/components/controllers/screen-lifecycle.js +18 -4
- package/lib/commonjs/components/controllers/screen-lifecycle.js.map +1 -1
- package/lib/commonjs/components/create-transition-aware-component.js +14 -12
- package/lib/commonjs/components/create-transition-aware-component.js.map +1 -1
- package/lib/commonjs/components/integrations/masked-view.js +52 -0
- package/lib/commonjs/components/integrations/masked-view.js.map +1 -0
- package/lib/commonjs/components/root-transition-aware.js +6 -15
- package/lib/commonjs/components/root-transition-aware.js.map +1 -1
- package/lib/commonjs/configs/index.js +15 -5
- package/lib/commonjs/configs/index.js.map +1 -1
- package/lib/commonjs/configs/presets.js +378 -7
- package/lib/commonjs/configs/presets.js.map +1 -1
- package/lib/commonjs/configs/specs.js +1 -1
- package/lib/commonjs/hooks/animation/use-associated-style.js +7 -10
- package/lib/commonjs/hooks/animation/use-associated-style.js.map +1 -1
- package/lib/commonjs/hooks/animation/use-screen-animation.js +37 -37
- package/lib/commonjs/hooks/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/hooks/bounds/use-bound-registry.js +73 -0
- package/lib/commonjs/hooks/bounds/use-bound-registry.js.map +1 -0
- package/lib/commonjs/hooks/gestures/use-build-gestures.js +156 -152
- package/lib/commonjs/hooks/gestures/use-build-gestures.js.map +1 -1
- package/lib/commonjs/hooks/gestures/use-parent-gesture-registry.js +28 -0
- package/lib/commonjs/hooks/gestures/use-parent-gesture-registry.js.map +1 -0
- package/lib/commonjs/hooks/gestures/use-scroll-registry.js +146 -0
- package/lib/commonjs/hooks/gestures/use-scroll-registry.js.map +1 -0
- package/lib/commonjs/index.js +3 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/integrations/native-stack/views/NativeStackView.native.js +7 -4
- package/lib/commonjs/integrations/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/commonjs/providers/gestures.js +16 -16
- package/lib/commonjs/providers/gestures.js.map +1 -1
- package/lib/commonjs/providers/transition-styles.js +44 -0
- package/lib/commonjs/providers/transition-styles.js.map +1 -0
- package/lib/commonjs/stores/bounds.js +142 -1
- package/lib/commonjs/stores/bounds.js.map +1 -1
- package/lib/commonjs/stores/utils/reset-stores-for-screen.js +4 -2
- package/lib/commonjs/stores/utils/reset-stores-for-screen.js.map +1 -1
- package/lib/commonjs/types/gesture.js +11 -0
- package/lib/commonjs/types/gesture.js.map +1 -1
- package/lib/commonjs/utils/animation/derivations.js +39 -0
- package/lib/commonjs/utils/animation/derivations.js.map +1 -0
- package/lib/commonjs/utils/animation/run-transition.js +6 -2
- package/lib/commonjs/utils/animation/run-transition.js.map +1 -1
- package/lib/commonjs/utils/bounds/_utils/flatten-styles.js.map +1 -0
- package/lib/commonjs/utils/bounds/_utils/geometry.js +179 -0
- package/lib/commonjs/utils/bounds/_utils/geometry.js.map +1 -0
- package/lib/commonjs/utils/bounds/{get-bounds.js → _utils/get-bounds.js} +7 -9
- package/lib/commonjs/utils/bounds/_utils/get-bounds.js.map +1 -0
- package/lib/commonjs/utils/bounds/_utils/is-bounds-equal.js +19 -0
- package/lib/commonjs/utils/bounds/_utils/is-bounds-equal.js.map +1 -0
- package/lib/commonjs/utils/bounds/_utils/style-composers.js +201 -0
- package/lib/commonjs/utils/bounds/_utils/style-composers.js.map +1 -0
- package/lib/commonjs/utils/bounds/constants.js +14 -3
- package/lib/commonjs/utils/bounds/constants.js.map +1 -1
- package/lib/commonjs/utils/bounds/index.js +210 -17
- package/lib/commonjs/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/utils/gesture/apply-offset-rules.js +233 -0
- package/lib/commonjs/utils/gesture/apply-offset-rules.js.map +1 -0
- package/lib/commonjs/utils/gesture/check-gesture-activation.js +231 -0
- package/lib/commonjs/utils/gesture/check-gesture-activation.js.map +1 -0
- package/lib/commonjs/utils/gesture/determine-dismissal.js +98 -0
- package/lib/commonjs/utils/gesture/determine-dismissal.js.map +1 -0
- package/lib/module/components/{bounds-activator.js → bound-capture.js} +2 -2
- package/lib/module/components/bound-capture.js.map +1 -0
- package/lib/module/components/controllers/screen-lifecycle.js +18 -4
- package/lib/module/components/controllers/screen-lifecycle.js.map +1 -1
- package/lib/module/components/create-transition-aware-component.js +14 -12
- package/lib/module/components/create-transition-aware-component.js.map +1 -1
- package/lib/module/components/integrations/masked-view.js +48 -0
- package/lib/module/components/integrations/masked-view.js.map +1 -0
- package/lib/module/components/root-transition-aware.js +7 -16
- package/lib/module/components/root-transition-aware.js.map +1 -1
- package/lib/module/configs/index.js +15 -2
- package/lib/module/configs/index.js.map +1 -1
- package/lib/module/configs/presets.js +374 -6
- package/lib/module/configs/presets.js.map +1 -1
- package/lib/module/configs/specs.js +1 -1
- package/lib/module/hooks/animation/use-associated-style.js +6 -10
- package/lib/module/hooks/animation/use-associated-style.js.map +1 -1
- package/lib/module/hooks/animation/use-screen-animation.js +37 -37
- package/lib/module/hooks/animation/use-screen-animation.js.map +1 -1
- package/lib/module/hooks/bounds/use-bound-registry.js +68 -0
- package/lib/module/hooks/bounds/use-bound-registry.js.map +1 -0
- package/lib/module/hooks/gestures/use-build-gestures.js +156 -153
- package/lib/module/hooks/gestures/use-build-gestures.js.map +1 -1
- package/lib/module/hooks/gestures/use-parent-gesture-registry.js +23 -0
- package/lib/module/hooks/gestures/use-parent-gesture-registry.js.map +1 -0
- package/lib/module/hooks/gestures/use-scroll-registry.js +140 -0
- package/lib/module/hooks/gestures/use-scroll-registry.js.map +1 -0
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/integrations/native-stack/views/NativeStackView.native.js +7 -4
- package/lib/module/integrations/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/module/providers/gestures.js +16 -16
- package/lib/module/providers/gestures.js.map +1 -1
- package/lib/module/providers/transition-styles.js +39 -0
- package/lib/module/providers/transition-styles.js.map +1 -0
- package/lib/module/stores/bounds.js +142 -1
- package/lib/module/stores/bounds.js.map +1 -1
- package/lib/module/stores/utils/reset-stores-for-screen.js +4 -2
- package/lib/module/stores/utils/reset-stores-for-screen.js.map +1 -1
- package/lib/module/types/gesture.js +7 -0
- package/lib/module/types/gesture.js.map +1 -1
- package/lib/module/utils/animation/derivations.js +34 -0
- package/lib/module/utils/animation/derivations.js.map +1 -0
- package/lib/module/utils/animation/run-transition.js +6 -2
- package/lib/module/utils/animation/run-transition.js.map +1 -1
- package/lib/module/utils/bounds/_utils/flatten-styles.js.map +1 -0
- package/lib/module/utils/bounds/_utils/geometry.js +174 -0
- package/lib/module/utils/bounds/_utils/geometry.js.map +1 -0
- package/lib/module/utils/bounds/{get-bounds.js → _utils/get-bounds.js} +7 -9
- package/lib/module/utils/bounds/_utils/get-bounds.js.map +1 -0
- package/lib/module/utils/bounds/_utils/is-bounds-equal.js +14 -0
- package/lib/module/utils/bounds/_utils/is-bounds-equal.js.map +1 -0
- package/lib/module/utils/bounds/_utils/style-composers.js +194 -0
- package/lib/module/utils/bounds/_utils/style-composers.js.map +1 -0
- package/lib/module/utils/bounds/constants.js +14 -3
- package/lib/module/utils/bounds/constants.js.map +1 -1
- package/lib/module/utils/bounds/index.js +208 -15
- package/lib/module/utils/bounds/index.js.map +1 -1
- package/lib/module/utils/gesture/apply-offset-rules.js +228 -0
- package/lib/module/utils/gesture/apply-offset-rules.js.map +1 -0
- package/lib/module/utils/gesture/check-gesture-activation.js +226 -0
- package/lib/module/utils/gesture/check-gesture-activation.js.map +1 -0
- package/lib/module/utils/gesture/determine-dismissal.js +93 -0
- package/lib/module/utils/gesture/determine-dismissal.js.map +1 -0
- package/lib/typescript/components/bound-capture.d.ts +8 -0
- package/lib/typescript/components/bound-capture.d.ts.map +1 -0
- package/lib/typescript/components/controllers/screen-lifecycle.d.ts.map +1 -1
- package/lib/typescript/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/components/integrations/masked-view.d.ts +6 -0
- package/lib/typescript/components/integrations/masked-view.d.ts.map +1 -0
- package/lib/typescript/components/root-transition-aware.d.ts +3 -3
- package/lib/typescript/components/root-transition-aware.d.ts.map +1 -1
- package/lib/typescript/configs/index.d.ts +15 -2
- package/lib/typescript/configs/index.d.ts.map +1 -1
- package/lib/typescript/configs/presets.d.ts +3 -0
- package/lib/typescript/configs/presets.d.ts.map +1 -1
- package/lib/typescript/hooks/animation/use-associated-style.d.ts +6 -4
- package/lib/typescript/hooks/animation/use-associated-style.d.ts.map +1 -1
- package/lib/typescript/hooks/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/hooks/bounds/{use-bound-measurer.d.ts → use-bound-registry.d.ts} +5 -4
- package/lib/typescript/hooks/bounds/{use-bound-measurer.d.ts.map → use-bound-registry.d.ts.map} +1 -1
- package/lib/typescript/hooks/gestures/use-build-gestures.d.ts +6 -5
- package/lib/typescript/hooks/gestures/use-build-gestures.d.ts.map +1 -1
- package/lib/typescript/hooks/gestures/use-parent-gesture-registry.d.ts +6 -0
- package/lib/typescript/hooks/gestures/use-parent-gesture-registry.d.ts.map +1 -0
- package/lib/typescript/hooks/gestures/{use-scroll-progress.d.ts → use-scroll-registry.d.ts} +2 -2
- package/lib/typescript/hooks/gestures/use-scroll-registry.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +25 -11
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/integrations/native-stack/views/NativeStackView.native.d.ts.map +1 -1
- package/lib/typescript/providers/gestures.d.ts +4 -2
- package/lib/typescript/providers/gestures.d.ts.map +1 -1
- package/lib/typescript/providers/transition-styles.d.ts +8 -0
- package/lib/typescript/providers/transition-styles.d.ts.map +1 -0
- package/lib/typescript/stores/bounds.d.ts +11 -0
- package/lib/typescript/stores/bounds.d.ts.map +1 -1
- package/lib/typescript/stores/utils/reset-stores-for-screen.d.ts +3 -1
- package/lib/typescript/stores/utils/reset-stores-for-screen.d.ts.map +1 -1
- package/lib/typescript/types/bounds.d.ts +5 -1
- package/lib/typescript/types/bounds.d.ts.map +1 -1
- package/lib/typescript/types/gesture.d.ts +14 -0
- package/lib/typescript/types/gesture.d.ts.map +1 -1
- package/lib/typescript/types/navigator.d.ts +5 -1
- package/lib/typescript/types/navigator.d.ts.map +1 -1
- package/lib/typescript/utils/animation/derivations.d.ts +19 -0
- package/lib/typescript/utils/animation/derivations.d.ts.map +1 -0
- package/lib/typescript/utils/animation/run-transition.d.ts +2 -1
- package/lib/typescript/utils/animation/run-transition.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/_types/builder.d.ts +96 -14
- package/lib/typescript/utils/bounds/_types/builder.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/_types/geometry.d.ts +0 -1
- package/lib/typescript/utils/bounds/_types/geometry.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/_utils/flatten-styles.d.ts.map +1 -0
- package/lib/typescript/utils/bounds/{geometry.d.ts → _utils/geometry.d.ts} +8 -5
- package/lib/typescript/utils/bounds/_utils/geometry.d.ts.map +1 -0
- package/lib/typescript/utils/bounds/_utils/get-bounds.d.ts +4 -0
- package/lib/typescript/utils/bounds/_utils/get-bounds.d.ts.map +1 -0
- package/lib/typescript/utils/bounds/_utils/is-bounds-equal.d.ts +7 -0
- package/lib/typescript/utils/bounds/_utils/is-bounds-equal.d.ts.map +1 -0
- package/lib/typescript/utils/bounds/{style-composers.d.ts → _utils/style-composers.d.ts} +7 -10
- package/lib/typescript/utils/bounds/_utils/style-composers.d.ts.map +1 -0
- package/lib/typescript/utils/bounds/constants.d.ts +5 -5
- package/lib/typescript/utils/bounds/constants.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/index.d.ts +2 -4
- package/lib/typescript/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/utils/gesture/apply-offset-rules.d.ts +38 -0
- package/lib/typescript/utils/gesture/apply-offset-rules.d.ts.map +1 -0
- package/lib/typescript/utils/gesture/check-gesture-activation.d.ts +38 -0
- package/lib/typescript/utils/gesture/check-gesture-activation.d.ts.map +1 -0
- package/lib/typescript/utils/gesture/determine-dismissal.d.ts +25 -0
- package/lib/typescript/utils/gesture/determine-dismissal.d.ts.map +1 -0
- package/package.json +2 -3
- package/src/__tests__/geometry.test.ts +15 -12
- package/src/components/{bounds-activator.tsx → bound-capture.tsx} +1 -1
- package/src/components/controllers/screen-lifecycle.tsx +13 -5
- package/src/components/create-transition-aware-component.tsx +17 -11
- package/src/components/integrations/masked-view.tsx +56 -0
- package/src/components/root-transition-aware.tsx +31 -39
- package/src/configs/index.ts +26 -2
- package/src/configs/presets.ts +401 -6
- package/src/configs/specs.ts +1 -1
- package/src/hooks/animation/use-associated-style.tsx +12 -11
- package/src/hooks/animation/use-screen-animation.tsx +48 -49
- package/src/hooks/bounds/{use-bound-measurer.tsx → use-bound-registry.tsx} +32 -20
- package/src/hooks/gestures/use-build-gestures.tsx +193 -228
- package/src/hooks/gestures/use-parent-gesture-registry.tsx +18 -0
- package/src/hooks/gestures/use-scroll-registry.tsx +145 -0
- package/src/index.ts +2 -0
- package/src/integrations/native-stack/views/NativeStackView.native.tsx +8 -5
- package/src/providers/gestures.tsx +19 -22
- package/src/providers/transition-styles.tsx +52 -0
- package/src/stores/bounds.ts +156 -0
- package/src/stores/utils/reset-stores-for-screen.ts +7 -2
- package/src/types/bounds.ts +8 -1
- package/src/types/gesture.ts +19 -0
- package/src/types/navigator.ts +5 -1
- package/src/utils/animation/derivations.ts +38 -0
- package/src/utils/animation/run-transition.ts +4 -1
- package/src/utils/bounds/_types/builder.ts +127 -11
- package/src/utils/bounds/_types/geometry.ts +0 -1
- package/src/utils/bounds/_utils/geometry.ts +166 -0
- package/src/utils/bounds/_utils/get-bounds.ts +54 -0
- package/src/utils/bounds/_utils/is-bounds-equal.ts +24 -0
- package/src/utils/bounds/_utils/style-composers.ts +216 -0
- package/src/utils/bounds/constants.ts +37 -22
- package/src/utils/bounds/index.ts +269 -19
- package/src/utils/gesture/apply-offset-rules.ts +314 -0
- package/src/utils/gesture/check-gesture-activation.ts +310 -0
- package/src/utils/gesture/determine-dismissal.ts +131 -0
- package/lib/commonjs/components/bounds-activator.js.map +0 -1
- package/lib/commonjs/hooks/bounds/use-bound-measurer.js +0 -52
- package/lib/commonjs/hooks/bounds/use-bound-measurer.js.map +0 -1
- package/lib/commonjs/hooks/gestures/use-scroll-progress.js +0 -57
- package/lib/commonjs/hooks/gestures/use-scroll-progress.js.map +0 -1
- package/lib/commonjs/utils/bounds/build-bound-styles.js +0 -145
- package/lib/commonjs/utils/bounds/build-bound-styles.js.map +0 -1
- package/lib/commonjs/utils/bounds/flatten-styles.js.map +0 -1
- package/lib/commonjs/utils/bounds/geometry.js +0 -94
- package/lib/commonjs/utils/bounds/geometry.js.map +0 -1
- package/lib/commonjs/utils/bounds/get-bounds.js.map +0 -1
- package/lib/commonjs/utils/bounds/style-composers.js +0 -199
- package/lib/commonjs/utils/bounds/style-composers.js.map +0 -1
- package/lib/commonjs/utils/gesture/apply-gesture-activation-criteria.js +0 -81
- package/lib/commonjs/utils/gesture/apply-gesture-activation-criteria.js.map +0 -1
- package/lib/commonjs/utils/gesture/normalize-gesture-translation.js +0 -21
- package/lib/commonjs/utils/gesture/normalize-gesture-translation.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -17
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/module/components/bounds-activator.js.map +0 -1
- package/lib/module/hooks/bounds/use-bound-measurer.js +0 -47
- package/lib/module/hooks/bounds/use-bound-measurer.js.map +0 -1
- package/lib/module/hooks/gestures/use-scroll-progress.js +0 -52
- package/lib/module/hooks/gestures/use-scroll-progress.js.map +0 -1
- package/lib/module/utils/bounds/build-bound-styles.js +0 -141
- package/lib/module/utils/bounds/build-bound-styles.js.map +0 -1
- package/lib/module/utils/bounds/flatten-styles.js.map +0 -1
- package/lib/module/utils/bounds/geometry.js +0 -89
- package/lib/module/utils/bounds/geometry.js.map +0 -1
- package/lib/module/utils/bounds/get-bounds.js.map +0 -1
- package/lib/module/utils/bounds/style-composers.js +0 -191
- package/lib/module/utils/bounds/style-composers.js.map +0 -1
- package/lib/module/utils/gesture/apply-gesture-activation-criteria.js +0 -76
- package/lib/module/utils/gesture/apply-gesture-activation-criteria.js.map +0 -1
- package/lib/module/utils/gesture/normalize-gesture-translation.js +0 -16
- package/lib/module/utils/gesture/normalize-gesture-translation.js.map +0 -1
- package/lib/module/utils/index.js +0 -4
- package/lib/module/utils/index.js.map +0 -1
- package/lib/typescript/components/bounds-activator.d.ts +0 -8
- package/lib/typescript/components/bounds-activator.d.ts.map +0 -1
- package/lib/typescript/hooks/gestures/use-scroll-progress.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/build-bound-styles.d.ts +0 -4
- package/lib/typescript/utils/bounds/build-bound-styles.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/flatten-styles.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/geometry.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/get-bounds.d.ts +0 -4
- package/lib/typescript/utils/bounds/get-bounds.d.ts.map +0 -1
- package/lib/typescript/utils/bounds/style-composers.d.ts.map +0 -1
- package/lib/typescript/utils/gesture/apply-gesture-activation-criteria.d.ts +0 -17
- package/lib/typescript/utils/gesture/apply-gesture-activation-criteria.d.ts.map +0 -1
- package/lib/typescript/utils/gesture/normalize-gesture-translation.d.ts +0 -6
- package/lib/typescript/utils/gesture/normalize-gesture-translation.d.ts.map +0 -1
- package/lib/typescript/utils/index.d.ts +0 -2
- package/lib/typescript/utils/index.d.ts.map +0 -1
- package/src/hooks/gestures/use-scroll-progress.tsx +0 -60
- package/src/utils/bounds/build-bound-styles.ts +0 -184
- package/src/utils/bounds/geometry.ts +0 -113
- package/src/utils/bounds/get-bounds.ts +0 -56
- package/src/utils/bounds/style-composers.ts +0 -172
- package/src/utils/gesture/apply-gesture-activation-criteria.ts +0 -109
- package/src/utils/gesture/normalize-gesture-translation.ts +0 -20
- package/src/utils/index.ts +0 -1
- /package/lib/commonjs/utils/bounds/{flatten-styles.js → _utils/flatten-styles.js} +0 -0
- /package/lib/module/utils/bounds/{flatten-styles.js → _utils/flatten-styles.js} +0 -0
- /package/lib/typescript/utils/bounds/{flatten-styles.d.ts → _utils/flatten-styles.d.ts} +0 -0
- /package/src/utils/bounds/{flatten-styles.ts → _utils/flatten-styles.ts} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { View } from "react-native";
|
|
2
2
|
import { createTransitionAwareComponent } from "./components/create-transition-aware-component";
|
|
3
|
-
import
|
|
3
|
+
import MaskedView from "./components/integrations/masked-view";
|
|
4
4
|
declare const _default: {
|
|
5
5
|
View: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
6
|
+
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
6
7
|
pointerEvents?: "none" | "auto" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"none" | "auto" | "box-none" | "box-only" | undefined> | undefined;
|
|
7
8
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
8
|
-
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
9
9
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
10
10
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
11
11
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
@@ -105,9 +105,9 @@ declare const _default: {
|
|
|
105
105
|
sharedTransitionStyle?: import("react-native-reanimated").SharedTransition;
|
|
106
106
|
} & {
|
|
107
107
|
animatedProps?: Partial<{
|
|
108
|
+
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
108
109
|
pointerEvents?: "none" | "auto" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"none" | "auto" | "box-none" | "box-only" | undefined> | undefined;
|
|
109
110
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
110
|
-
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
111
111
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
112
112
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
113
113
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
@@ -211,11 +211,11 @@ declare const _default: {
|
|
|
211
211
|
sharedBoundTag?: string;
|
|
212
212
|
} & import("react").RefAttributes<never>>>;
|
|
213
213
|
Pressable: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
214
|
+
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
214
215
|
key?: import("react").Key | import("react-native-reanimated").SharedValue<import("react").Key | null | undefined> | null | undefined;
|
|
215
216
|
pointerEvents?: "none" | "auto" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"none" | "auto" | "box-none" | "box-only" | undefined> | undefined;
|
|
216
217
|
children?: import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode) | import("react-native-reanimated").SharedValue<import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode)>;
|
|
217
218
|
ref?: import("react").Ref<View> | import("react-native-reanimated").SharedValue<import("react").Ref<View> | undefined> | undefined;
|
|
218
|
-
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
219
219
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
220
220
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
221
221
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
@@ -333,11 +333,11 @@ declare const _default: {
|
|
|
333
333
|
sharedTransitionStyle?: import("react-native-reanimated").SharedTransition;
|
|
334
334
|
} & {
|
|
335
335
|
animatedProps?: Partial<{
|
|
336
|
+
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
336
337
|
key?: import("react").Key | import("react-native-reanimated").SharedValue<import("react").Key | null | undefined> | null | undefined;
|
|
337
338
|
pointerEvents?: "none" | "auto" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"none" | "auto" | "box-none" | "box-only" | undefined> | undefined;
|
|
338
339
|
children?: import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode) | import("react-native-reanimated").SharedValue<import("react").ReactNode | ((state: import("react-native").PressableStateCallbackType) => React.ReactNode)>;
|
|
339
340
|
ref?: import("react").Ref<View> | import("react-native-reanimated").SharedValue<import("react").Ref<View> | undefined> | undefined;
|
|
340
|
-
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
341
341
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
342
342
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
343
343
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
@@ -459,10 +459,10 @@ declare const _default: {
|
|
|
459
459
|
sharedBoundTag?: string;
|
|
460
460
|
} & import("react").RefAttributes<View | import("react").Component<import("react-native").PressableProps & import("react").RefAttributes<View>, any, any>>>>;
|
|
461
461
|
ScrollView: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
462
|
+
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
462
463
|
horizontal?: boolean | import("react-native-reanimated").SharedValue<boolean | null | undefined> | null | undefined;
|
|
463
464
|
pointerEvents?: "none" | "auto" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"none" | "auto" | "box-none" | "box-only" | undefined> | undefined;
|
|
464
465
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
465
|
-
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
466
466
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
467
467
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
468
468
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
@@ -625,10 +625,10 @@ declare const _default: {
|
|
|
625
625
|
sharedTransitionStyle?: import("react-native-reanimated").SharedTransition;
|
|
626
626
|
} & {
|
|
627
627
|
animatedProps?: Partial<{
|
|
628
|
+
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
628
629
|
horizontal?: boolean | import("react-native-reanimated").SharedValue<boolean | null | undefined> | null | undefined;
|
|
629
630
|
pointerEvents?: "none" | "auto" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"none" | "auto" | "box-none" | "box-only" | undefined> | undefined;
|
|
630
631
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
631
|
-
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
632
632
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
633
633
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
634
634
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
@@ -795,12 +795,12 @@ declare const _default: {
|
|
|
795
795
|
sharedBoundTag?: string;
|
|
796
796
|
} & import("react").RefAttributes<never>>>;
|
|
797
797
|
FlatList: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<{
|
|
798
|
+
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
798
799
|
horizontal?: boolean | import("react-native-reanimated").SharedValue<boolean | null | undefined> | null | undefined;
|
|
799
800
|
pointerEvents?: "none" | "auto" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"none" | "auto" | "box-none" | "box-only" | undefined> | undefined;
|
|
800
801
|
inverted?: boolean | import("react-native-reanimated").SharedValue<boolean | null | undefined> | null | undefined;
|
|
801
802
|
data: ArrayLike<unknown> | import("react-native-reanimated").SharedValue<ArrayLike<unknown> | null | undefined> | null | undefined;
|
|
802
803
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
803
|
-
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
804
804
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
805
805
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
806
806
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
@@ -1028,12 +1028,12 @@ declare const _default: {
|
|
|
1028
1028
|
sharedTransitionStyle?: import("react-native-reanimated").SharedTransition;
|
|
1029
1029
|
} & {
|
|
1030
1030
|
animatedProps?: Partial<{
|
|
1031
|
+
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
1031
1032
|
horizontal?: boolean | import("react-native-reanimated").SharedValue<boolean | null | undefined> | null | undefined;
|
|
1032
1033
|
pointerEvents?: "none" | "auto" | "box-none" | "box-only" | import("react-native-reanimated").SharedValue<"none" | "auto" | "box-none" | "box-only" | undefined> | undefined;
|
|
1033
1034
|
inverted?: boolean | import("react-native-reanimated").SharedValue<boolean | null | undefined> | null | undefined;
|
|
1034
1035
|
data: ArrayLike<unknown> | import("react-native-reanimated").SharedValue<ArrayLike<unknown> | null | undefined> | null | undefined;
|
|
1035
1036
|
children?: import("react").ReactNode | import("react-native-reanimated").SharedValue<import("react").ReactNode>;
|
|
1036
|
-
id?: string | import("react-native-reanimated").SharedValue<string | undefined> | undefined;
|
|
1037
1037
|
hitSlop?: number | import("react-native").Insets | import("react-native-reanimated").SharedValue<number | import("react-native").Insets | null | undefined> | null | undefined;
|
|
1038
1038
|
needsOffscreenAlphaCompositing?: boolean | import("react-native-reanimated").SharedValue<boolean | undefined> | undefined;
|
|
1039
1039
|
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | import("react-native-reanimated").SharedValue<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
@@ -1264,8 +1264,22 @@ declare const _default: {
|
|
|
1264
1264
|
styleId?: string;
|
|
1265
1265
|
sharedBoundTag?: string;
|
|
1266
1266
|
} & import("react").RefAttributes<never>>>;
|
|
1267
|
-
|
|
1268
|
-
|
|
1267
|
+
MaskedView: typeof MaskedView;
|
|
1268
|
+
presets: {
|
|
1269
|
+
SlideFromTop: (config?: Partial<import("./types/navigator").ScreenTransitionConfig>) => import("./types/navigator").ScreenTransitionConfig;
|
|
1270
|
+
ZoomIn: (config?: Partial<import("./types/navigator").ScreenTransitionConfig>) => import("./types/navigator").ScreenTransitionConfig;
|
|
1271
|
+
SlideFromBottom: (config?: Partial<import("./types/navigator").ScreenTransitionConfig>) => import("./types/navigator").ScreenTransitionConfig;
|
|
1272
|
+
DraggableCard: (config?: Partial<import("./types/navigator").ScreenTransitionConfig>) => import("./types/navigator").ScreenTransitionConfig;
|
|
1273
|
+
ElasticCard: (config?: Partial<import("./types/navigator").ScreenTransitionConfig> & {
|
|
1274
|
+
elasticFactor?: number;
|
|
1275
|
+
}) => import("./types/navigator").ScreenTransitionConfig;
|
|
1276
|
+
SharedIGImage: (config?: Partial<import("./types/navigator").ScreenTransitionConfig>) => import("./types/navigator").ScreenTransitionConfig;
|
|
1277
|
+
SharedAppleMusic: (config?: Partial<import("./types/navigator").ScreenTransitionConfig>) => import("./types/navigator").ScreenTransitionConfig;
|
|
1278
|
+
SharedXImage: (config?: Partial<import("./types/navigator").ScreenTransitionConfig>) => import("./types/navigator").ScreenTransitionConfig;
|
|
1279
|
+
};
|
|
1280
|
+
specs: {
|
|
1281
|
+
DefaultSpec: import("react-native-reanimated/lib/typescript/animation/springUtils").SpringConfig;
|
|
1282
|
+
};
|
|
1269
1283
|
createTransitionAwareComponent: typeof createTransitionAwareComponent;
|
|
1270
1284
|
};
|
|
1271
1285
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,IAAI,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,IAAI,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAChG,OAAO,UAAU,MAAM,uCAAuC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAgC4iE,CAAC;;;;;;;;;;;AA7B5mE,wBAaE;AAEF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,mEAAmE,CAAC;AAE/G,YAAY,EACX,0BAA0B,EAC1B,sBAAsB,EACtB,2BAA2B,EAC3B,6BAA6B,EAC7B,4BAA4B,EAC5B,yBAAyB,EACzB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,GACtB,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeStackView.native.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/views/NativeStackView.native.tsx"],"names":[],"mappings":"AASA,OAAO,EAGN,KAAK,aAAa,EAClB,KAAK,SAAS,EAEd,KAAK,oBAAoB,EAGzB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"NativeStackView.native.d.ts","sourceRoot":"","sources":["../../../../../src/integrations/native-stack/views/NativeStackView.native.tsx"],"names":[],"mappings":"AASA,OAAO,EAGN,KAAK,aAAa,EAClB,KAAK,SAAS,EAEd,KAAK,oBAAoB,EAGzB,MAAM,0BAA0B,CAAC;AAqBlC,OAAO,KAAK,EACX,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,EAC5B,MAAM,0BAA0B,CAAC;AAmclC,KAAK,KAAK,GAAG;IACZ,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAC3C,UAAU,EAAE,4BAA4B,CAAC;IACzC,WAAW,EAAE,wBAAwB,CAAC;IACtC,QAAQ,EAAE,CACT,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,EAC/B,WAAW,EAAE,OAAO,KAChB,qBAAqB,CAAC;CAC3B,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC/B,KAAK,EACL,UAAU,EACV,WAAW,EACX,QAAQ,GACR,EAAE,KAAK,2CA4HP"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GestureType } from "react-native-gesture-handler";
|
|
2
2
|
import type { SharedValue } from "react-native-reanimated";
|
|
3
|
-
export type
|
|
3
|
+
export type ScrollConfig = {
|
|
4
4
|
x: number;
|
|
5
5
|
y: number;
|
|
6
6
|
contentHeight: number;
|
|
@@ -11,11 +11,13 @@ export type ScrollProgress = {
|
|
|
11
11
|
export interface GestureContextType {
|
|
12
12
|
panGesture: GestureType;
|
|
13
13
|
nativeGesture: GestureType;
|
|
14
|
-
|
|
14
|
+
scrollConfig: SharedValue<ScrollConfig | null>;
|
|
15
|
+
parentContext: GestureContextType | null;
|
|
15
16
|
}
|
|
16
17
|
type ScreenGestureProviderProps = {
|
|
17
18
|
children: React.ReactNode;
|
|
18
19
|
};
|
|
20
|
+
export declare const DEFAULT_SCROLL_CONFIG: ScrollConfig;
|
|
19
21
|
export declare const ScreenGestureProvider: ({ children, }: ScreenGestureProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
22
|
export declare const useGestureContext: () => GestureContextType;
|
|
21
23
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gestures.d.ts","sourceRoot":"","sources":["../../../src/providers/gestures.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"gestures.d.ts","sourceRoot":"","sources":["../../../src/providers/gestures.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAI3D,MAAM,MAAM,YAAY,GAAG;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,kBAAkB;IAClC,UAAU,EAAE,WAAW,CAAC;IACxB,aAAa,EAAE,WAAW,CAAC;IAC3B,YAAY,EAAE,WAAW,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;IAC/C,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;CACzC;AAED,KAAK,0BAA0B,GAAG;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAOnC,CAAC;AAIF,eAAO,MAAM,qBAAqB,GAAI,eAEnC,0BAA0B,4CA0B5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,0BAU7B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TransitionInterpolatedStyle } from "../types/animation";
|
|
2
|
+
type Props = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
};
|
|
5
|
+
export declare function TransitionStylesProvider({ children }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function useTransitionStyles(): import("react-native-reanimated").DerivedValue<TransitionInterpolatedStyle>;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=transition-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transition-styles.d.ts","sourceRoot":"","sources":["../../../src/providers/transition-styles.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAEtE,KAAK,KAAK,GAAG;IACZ,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAQF,wBAAgB,wBAAwB,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,2CA0B3D;AAED,wBAAgB,mBAAmB,gFAQlC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type MeasuredDimensions, type StyleProps } from "react-native-reanimated";
|
|
2
|
+
import type { ScreenTransitionState } from "../types/animation";
|
|
2
3
|
import type { ScreenKey } from "../types/navigator";
|
|
3
4
|
declare function setBounds(screenId: string, boundId: string, bounds?: MeasuredDimensions | null, styles?: StyleProps): void;
|
|
4
5
|
declare function getBounds(screenId: string): Record<string, {
|
|
@@ -7,15 +8,25 @@ declare function getBounds(screenId: string): Record<string, {
|
|
|
7
8
|
}>;
|
|
8
9
|
declare function setActiveBoundId(boundId: string): void;
|
|
9
10
|
declare function getActiveBoundId(): string | null;
|
|
11
|
+
declare function setRouteActive(routeKey: string, boundId: string): void;
|
|
12
|
+
declare function getRouteActive(routeKey: string): string;
|
|
13
|
+
declare function setTransitionHint(fromKey: string, toKey: string, boundId: string): void;
|
|
14
|
+
declare function getTransitionHint(fromKey: string, toKey: string): string | null;
|
|
10
15
|
declare function clear(routeKey: ScreenKey): void;
|
|
11
16
|
declare function clearActive(): void;
|
|
17
|
+
declare function getActiveBound(current: ScreenTransitionState, next: ScreenTransitionState | undefined, previous: ScreenTransitionState | undefined): string;
|
|
12
18
|
export declare const Bounds: {
|
|
13
19
|
setBounds: typeof setBounds;
|
|
14
20
|
getBounds: typeof getBounds;
|
|
15
21
|
setActiveBoundId: typeof setActiveBoundId;
|
|
16
22
|
getActiveBoundId: typeof getActiveBoundId;
|
|
23
|
+
setRouteActive: typeof setRouteActive;
|
|
24
|
+
getRouteActive: typeof getRouteActive;
|
|
25
|
+
setTransitionHint: typeof setTransitionHint;
|
|
26
|
+
getTransitionHint: typeof getTransitionHint;
|
|
17
27
|
clear: typeof clear;
|
|
18
28
|
clearActive: typeof clearActive;
|
|
29
|
+
getActiveBound: typeof getActiveBound;
|
|
19
30
|
};
|
|
20
31
|
export {};
|
|
21
32
|
//# sourceMappingURL=bounds.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bounds.d.ts","sourceRoot":"","sources":["../../../src/stores/bounds.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,kBAAkB,EAEvB,KAAK,UAAU,EACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"bounds.d.ts","sourceRoot":"","sources":["../../../src/stores/bounds.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,kBAAkB,EAEvB,KAAK,UAAU,EACf,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAkBpD,iBAAS,SAAS,CACjB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,kBAAkB,GAAG,IAAW,EACxC,MAAM,GAAE,UAAe,QAYvB;AAED,iBAAS,SAAS,CAAC,QAAQ,EAAE,MAAM;YA/BT,kBAAkB;YAAU,UAAU;GAkC/D;AAED,iBAAS,gBAAgB,CAAC,OAAO,EAAE,MAAM,QAGxC;AAED,iBAAS,gBAAgB,kBAGxB;AAED,iBAAS,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAOxD;AAED,iBAAS,cAAc,CAAC,QAAQ,EAAE,MAAM,UAGvC;AAED,iBAAS,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QASzE;AAED,iBAAS,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,iBAKxD;AAED,iBAAS,KAAK,CAAC,QAAQ,EAAE,SAAS,QAOjC;AAED,iBAAS,WAAW,SAGnB;AAgFD,iBAAS,cAAc,CACtB,OAAO,EAAE,qBAAqB,EAC9B,IAAI,EAAE,qBAAqB,GAAG,SAAS,EACvC,QAAQ,EAAE,qBAAqB,GAAG,SAAS,UA4B3C;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;CAYlB,CAAC"}
|
|
@@ -2,5 +2,7 @@ import type { NativeStackDescriptor } from "../../types/navigator";
|
|
|
2
2
|
/**
|
|
3
3
|
* Reset all stores for a given screen
|
|
4
4
|
*/
|
|
5
|
-
export declare const resetStoresForScreen: (current: NativeStackDescriptor
|
|
5
|
+
export declare const resetStoresForScreen: (current: NativeStackDescriptor, options?: {
|
|
6
|
+
clearActive?: boolean;
|
|
7
|
+
}) => void;
|
|
6
8
|
//# sourceMappingURL=reset-stores-for-screen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-stores-for-screen.d.ts","sourceRoot":"","sources":["../../../../src/stores/utils/reset-stores-for-screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAKnE;;GAEG;AACH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"reset-stores-for-screen.d.ts","sourceRoot":"","sources":["../../../../src/stores/utils/reset-stores-for-screen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAKnE;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAChC,SAAS,qBAAqB,EAC9B,UAAS;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,SAQvC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MeasuredDimensions, StyleProps } from "react-native-reanimated";
|
|
2
|
+
import type { BoundsBuilderOptions, BoundsReturnType } from "../utils/bounds/_types/builder";
|
|
2
3
|
import type { ScreenPhase } from "./core";
|
|
3
4
|
/**
|
|
4
5
|
* Target style computation.
|
|
@@ -67,7 +68,10 @@ export type BoundEntry = {
|
|
|
67
68
|
bounds: MeasuredDimensions;
|
|
68
69
|
styles: StyleProps;
|
|
69
70
|
};
|
|
70
|
-
export type BoundsAccessor =
|
|
71
|
+
export type BoundsAccessor = {
|
|
72
|
+
(id: string): BoundsBuilder;
|
|
73
|
+
(): BoundsBuilder;
|
|
74
|
+
<T extends BoundsBuilderOptions>(options: T): BoundsReturnType<T>;
|
|
71
75
|
get: (id?: string, phase?: ScreenPhase) => BoundEntry;
|
|
72
76
|
};
|
|
73
77
|
//# sourceMappingURL=bounds.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bounds.d.ts","sourceRoot":"","sources":["../../../src/types/bounds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAE5D,MAAM,MAAM,aAAa,GAAG;IAC3B;;;;OAIG;IACH,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,aAAa,CAAC;IAElE;;;OAGG;IACH,YAAY,EAAE,MAAM,aAAa,CAAC;IAElC;;;OAGG;IACH,QAAQ,EAAE,MAAM,aAAa,CAAC;IAE9B;;;OAGG;IACH,QAAQ,EAAE,MAAM,aAAa,CAAC;IAE9B;;;OAGG;IACH,SAAS,EAAE,MAAM,aAAa,CAAC;IAE/B;;OAEG;IACH,IAAI,EAAE,MAAM,aAAa,CAAC;IAE1B;;;;OAIG;IACH,OAAO,EAAE,MAAM,aAAa,CAAC;IAE7B;;OAEG;IACH,WAAW,EAAE,MAAM,aAAa,CAAC;IAEjC;;OAEG;IACH,UAAU,EAAE,MAAM,aAAa,CAAC;IAEhC;;;;OAIG;IACH,KAAK,EA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UAAU,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,UAAU,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC5B,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,CAAC;IAC5B,IAAI,aAAa,CAAC;IAClB,CAAC,CAAC,SAAS,oBAAoB,EAAE,OAAO,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAClE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,WAAW,KAAK,UAAU,CAAC;CACtD,CAAC"}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
export type GestureDirection = "horizontal" | "horizontal-inverted" | "vertical" | "vertical-inverted" | "bidirectional";
|
|
2
|
+
export type ActivationArea = "edge" | "screen";
|
|
3
|
+
export type SideActivation = {
|
|
4
|
+
left?: ActivationArea;
|
|
5
|
+
right?: ActivationArea;
|
|
6
|
+
top?: ActivationArea;
|
|
7
|
+
bottom?: ActivationArea;
|
|
8
|
+
};
|
|
9
|
+
export declare enum GestureOffsetState {
|
|
10
|
+
PENDING = 0,
|
|
11
|
+
PASSED = 1,
|
|
12
|
+
FAILED = 2
|
|
13
|
+
}
|
|
14
|
+
export type AxisActivation = ActivationArea | SideActivation;
|
|
15
|
+
export type GestureActivationArea = ActivationArea | SideActivation;
|
|
2
16
|
export type GestureValues = {
|
|
3
17
|
/**
|
|
4
18
|
* A `SharedValue` indicating if the user's finger is on the screen (0 or 1).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gesture.d.ts","sourceRoot":"","sources":["../../../src/types/gesture.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GACzB,YAAY,GACZ,qBAAqB,GACrB,UAAU,GACV,mBAAmB,GACnB,eAAe,CAAC;AAEnB,MAAM,MAAM,aAAa,GAAG;IAC3B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
1
|
+
{"version":3,"file":"gesture.d.ts","sourceRoot":"","sources":["../../../src/types/gesture.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GACzB,YAAY,GACZ,qBAAqB,GACrB,UAAU,GACV,mBAAmB,GACnB,eAAe,CAAC;AAEnB,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE/C,MAAM,MAAM,cAAc,GAAG;IAC5B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB,MAAM,CAAC,EAAE,cAAc,CAAC;CACxB,CAAC;AAEF,oBAAY,kBAAkB;IAC7B,OAAO,IAAA;IACP,MAAM,IAAA;IACN,MAAM,IAAA;CACN;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG,cAAc,CAAC;AAE7D,MAAM,MAAM,qBAAqB,GAAG,cAAc,GAAG,cAAc,CAAC;AAEpE,MAAM,MAAM,aAAa,GAAG;IAC3B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { DefaultNavigatorOptions, Descriptor, NavigationHelpers, Navigation
|
|
|
2
2
|
import type { ImageSourcePropType, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { ScreenProps, ScreenStackHeaderConfigProps, SearchBarProps } from "react-native-screens";
|
|
4
4
|
import type { ScreenStyleInterpolator, TransitionSpec } from "./animation";
|
|
5
|
-
import type { GestureDirection } from "./gesture";
|
|
5
|
+
import type { GestureActivationArea, GestureDirection } from "./gesture";
|
|
6
6
|
export type NativeStackNavigationEventMap = {
|
|
7
7
|
/**
|
|
8
8
|
* Event which fires when a transition animation starts.
|
|
@@ -128,6 +128,10 @@ export type ScreenTransitionConfig = {
|
|
|
128
128
|
* Whether the gesture drives the progress.
|
|
129
129
|
*/
|
|
130
130
|
gestureDrivesProgress?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* The area of the screen where the gesture is activated.
|
|
133
|
+
*/
|
|
134
|
+
gestureActivationArea?: GestureActivationArea;
|
|
131
135
|
/**
|
|
132
136
|
* Whether to enable transitions. It sets the presentation to containedTransparentModal, animation none, and headerShown to false.
|
|
133
137
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigator.d.ts","sourceRoot":"","sources":["../../../src/types/navigator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,EACL,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACX,mBAAmB,EACnB,SAAS,EACT,SAAS,EACT,SAAS,EACT,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACX,WAAW,EACX,4BAA4B,EAC5B,cAAc,EACd,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,W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C,EAAE,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAC/C;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;;;;;OAWG;IACH,oBAAoB,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,uBAAuB,CAC9D,aAAa,EACb,MAAM,GAAG,SAAS,EAClB,oBAAoB,CAAC,aAAa,CAAC,EACnC,4BAA4B,EAC5B,6BAA6B,EAC7B,yBAAyB,CAAC,aAAa,CAAC,CACxC,GACA,kBAAkB,GAClB,2BAA2B,CAAC;AAE7B,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAC7C,4BAA4B,EAC5B,yBAAyB,CAAC,aAAa,CAAC,EACxC,SAAS,CAAC,aAAa,CAAC,CACxB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACtC,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ScaledSize } from "react-native";
|
|
2
|
+
import type { ScreenTransitionState } from "../../types/animation";
|
|
3
|
+
interface DerivationsParams {
|
|
4
|
+
current: ScreenTransitionState;
|
|
5
|
+
next?: ScreenTransitionState;
|
|
6
|
+
previous?: ScreenTransitionState;
|
|
7
|
+
dimensions: ScaledSize;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Additional values to help make defining animations easier.
|
|
11
|
+
*/
|
|
12
|
+
export declare const derivations: ({ current, next, previous, dimensions, }: DerivationsParams) => {
|
|
13
|
+
progress: number;
|
|
14
|
+
focused: boolean;
|
|
15
|
+
activeBoundId: string;
|
|
16
|
+
bounds: import("../../types/bounds").BoundsAccessor;
|
|
17
|
+
};
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=derivations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"derivations.d.ts","sourceRoot":"","sources":["../../../../src/utils/animation/derivations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAGnE,UAAU,iBAAiB;IAC1B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,UAAU,EAAE,UAAU,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,0CAKzB,iBAAiB;;;;;CAiBnB,CAAC"}
|
|
@@ -5,7 +5,8 @@ interface RunTransitionProps {
|
|
|
5
5
|
spec?: TransitionSpec;
|
|
6
6
|
onFinish?: (finished: boolean) => void;
|
|
7
7
|
animations: AnimationMap;
|
|
8
|
+
velocity?: number;
|
|
8
9
|
}
|
|
9
|
-
export declare const runTransition: ({ target, spec, onFinish, animations, }: RunTransitionProps) => void;
|
|
10
|
+
export declare const runTransition: ({ target, spec, onFinish, animations, velocity, }: RunTransitionProps) => void;
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=run-transition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-transition.d.ts","sourceRoot":"","sources":["../../../../src/utils/animation/run-transition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG5D,UAAU,kBAAkB;IAC3B,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,UAAU,EAAE,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"run-transition.d.ts","sourceRoot":"","sources":["../../../../src/utils/animation/run-transition.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG5D,UAAU,kBAAkB;IAC3B,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,UAAU,EAAE,YAAY,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,GAAI,mDAM3B,kBAAkB,SAgCpB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ScaledSize } from "react-native";
|
|
2
|
+
import type { MeasuredDimensions, StyleProps } from "react-native-reanimated";
|
|
2
3
|
import type { ScreenTransitionState } from "../../../types/animation";
|
|
3
4
|
import type { BoundsMethod } from "../../../types/bounds";
|
|
4
5
|
/**
|
|
@@ -12,25 +13,106 @@ export type BoundsBuilderInitParams = {
|
|
|
12
13
|
progress: number;
|
|
13
14
|
dimensions: ScaledSize;
|
|
14
15
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export type
|
|
19
|
-
|
|
16
|
+
export type BoundsAnchor = "topLeading" | "top" | "topTrailing" | "leading" | "center" | "trailing" | "bottomLeading" | "bottom" | "bottomTrailing";
|
|
17
|
+
export type BoundsScaleMode = "match" | "none" | "uniform";
|
|
18
|
+
export type BoundsTarget = "bound" | "fullscreen" | MeasuredDimensions;
|
|
19
|
+
export type BoundsSpace = "relative" | "absolute";
|
|
20
|
+
export type BoundsComputeParams = BoundsBuilderInitParams;
|
|
21
|
+
export type RawSizeAbsoluteReturn = {
|
|
22
|
+
width: number;
|
|
23
|
+
height: number;
|
|
24
|
+
translateX: number;
|
|
25
|
+
translateY: number;
|
|
20
26
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
export type RawSizeRelativeReturn = {
|
|
28
|
+
translateX: number;
|
|
29
|
+
translateY: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
};
|
|
33
|
+
export type RawTransformAbsoluteReturn = {
|
|
34
|
+
translateX: number;
|
|
35
|
+
translateY: number;
|
|
36
|
+
scaleX: number;
|
|
37
|
+
scaleY: number;
|
|
38
|
+
};
|
|
39
|
+
export type RawTransformRelativeReturn = {
|
|
40
|
+
translateX: number;
|
|
41
|
+
translateY: number;
|
|
42
|
+
scaleX: number;
|
|
43
|
+
scaleY: number;
|
|
44
|
+
};
|
|
45
|
+
export type RawContentReturn = {
|
|
46
|
+
translateX: number;
|
|
47
|
+
translateY: number;
|
|
48
|
+
scale: number;
|
|
49
|
+
};
|
|
50
|
+
export type BoundsReturnType<T extends BoundsBuilderOptions> = T["raw"] extends true ? T["method"] extends "size" ? T["space"] extends "absolute" ? RawSizeAbsoluteReturn : RawSizeRelativeReturn : T["method"] extends "content" ? RawContentReturn : T["space"] extends "absolute" ? RawTransformAbsoluteReturn : RawTransformRelativeReturn : StyleProps;
|
|
25
51
|
export type BoundsBuilderOptions = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Use `content.scaleMode` instead.
|
|
54
|
+
*/
|
|
30
55
|
toFullscreen?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Use `content.anchor` instead.
|
|
58
|
+
*/
|
|
31
59
|
absolute?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated Use `content.anchor` instead.
|
|
62
|
+
*/
|
|
32
63
|
relative?: boolean;
|
|
33
|
-
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated Use `scaleMode` instead.
|
|
66
|
+
*/
|
|
34
67
|
contentScaleMode?: "aspectFill" | "aspectFit" | "auto";
|
|
68
|
+
/**
|
|
69
|
+
* The ID of the bound to compute bounds for. If not provided, uses the active bound ID.
|
|
70
|
+
*/
|
|
71
|
+
id?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The method to use to compute the bounds.
|
|
74
|
+
*
|
|
75
|
+
* - "transform": translates and scales (scaleX/scaleY), no width/height size
|
|
76
|
+
* - "size": translates and sizes (width/height), no scaleX/scaleY
|
|
77
|
+
* - "content": screen-level content transform that aligns the destination screen
|
|
78
|
+
* so the target bound matches the source at progress start
|
|
79
|
+
* @default "transform"
|
|
80
|
+
*/
|
|
81
|
+
method?: BoundsMethod;
|
|
82
|
+
/**
|
|
83
|
+
* The space to use to compute the bounds.
|
|
84
|
+
*
|
|
85
|
+
* - "relative": the bounds are computed with relative deltas, constrained by parent layout
|
|
86
|
+
* - "absolute": the bounds are computed with absolute coordinates, unconstrained by parent layout
|
|
87
|
+
* @default "relative"
|
|
88
|
+
*/
|
|
89
|
+
space?: BoundsSpace;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the bound should target the screen or the bound.
|
|
92
|
+
* @default "bound"
|
|
93
|
+
*/
|
|
94
|
+
target?: BoundsTarget;
|
|
95
|
+
/**
|
|
96
|
+
* The gesture offsets to apply to the bounds.
|
|
97
|
+
*/
|
|
98
|
+
gestures?: {
|
|
99
|
+
x?: number;
|
|
100
|
+
y?: number;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* How the bounds should be scaled between each other.
|
|
104
|
+
* @default "match"
|
|
105
|
+
*/
|
|
106
|
+
scaleMode?: BoundsScaleMode;
|
|
107
|
+
/**
|
|
108
|
+
* Where the bounds should be anchored between each other.
|
|
109
|
+
* @default "center"
|
|
110
|
+
*/
|
|
111
|
+
anchor?: BoundsAnchor;
|
|
112
|
+
/**
|
|
113
|
+
* If true, the raw values will be returned instead of the computed values.
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
raw?: boolean;
|
|
35
117
|
};
|
|
36
118
|
//# sourceMappingURL=builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../../../src/utils/bounds/_types/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACrC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,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,UAAU,CAAC;CACvB,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../../../src/utils/bounds/_types/builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACrC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,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,UAAU,CAAC;CACvB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,CAAC,KAAK,CAAC,SAAS,IAAI,GAClB,CAAC,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;AAEf,MAAM,MAAM,oBAAoB,GAAG;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,YAAY,GAAG,WAAW,GAAG,MAAM,CAAC;IAEvD;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;CACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../../src/utils/bounds/_types/geometry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IAC1B,
|
|
1
|
+
{"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../../src/utils/bounds/_types/geometry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,YAAY,GAAG;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;CACV,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flatten-styles.d.ts","sourceRoot":"","sources":["../../../../../src/utils/bounds/_utils/flatten-styles.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,UAAU,EAAE,KAAK,EAAE,UAAU,GAAG,UAAU,CAoBtE"}
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
import type { ScaledSize } from "react-native";
|
|
2
2
|
import type { MeasuredDimensions } from "react-native-reanimated";
|
|
3
|
-
import type {
|
|
4
|
-
import type { ContentTransformGeometry, RelativeGeometry } from "
|
|
3
|
+
import type { BoundsAnchor, BoundsScaleMode } from "../_types/builder";
|
|
4
|
+
import type { ContentTransformGeometry, RelativeGeometry } from "../_types/geometry";
|
|
5
5
|
/**
|
|
6
6
|
* Relative geometry between start/end bounds.
|
|
7
7
|
*/
|
|
8
|
-
export declare function computeRelativeGeometry({ start, end, entering, }: {
|
|
8
|
+
export declare function computeRelativeGeometry({ start, end, entering, anchor, scaleMode, }: {
|
|
9
9
|
start: MeasuredDimensions;
|
|
10
10
|
end: MeasuredDimensions;
|
|
11
11
|
entering: boolean;
|
|
12
|
+
anchor?: BoundsAnchor;
|
|
13
|
+
scaleMode?: BoundsScaleMode;
|
|
12
14
|
}): RelativeGeometry;
|
|
13
15
|
/**
|
|
14
16
|
* Computes the transform to apply to the entire destination screen so that
|
|
15
17
|
* its bound (end) matches the source bound (start) at progress start.
|
|
16
18
|
*/
|
|
17
|
-
export declare function computeContentTransformGeometry({ start, end, entering, dimensions,
|
|
19
|
+
export declare function computeContentTransformGeometry({ start, end, entering, dimensions, anchor, scaleMode, }: {
|
|
18
20
|
start: MeasuredDimensions;
|
|
19
21
|
end: MeasuredDimensions;
|
|
20
22
|
entering: boolean;
|
|
21
23
|
dimensions: ScaledSize;
|
|
22
|
-
|
|
24
|
+
anchor?: BoundsAnchor;
|
|
25
|
+
scaleMode?: BoundsScaleMode;
|
|
23
26
|
}): ContentTransformGeometry;
|
|
24
27
|
//# sourceMappingURL=geometry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometry.d.ts","sourceRoot":"","sources":["../../../../../src/utils/bounds/_utils/geometry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EACX,wBAAwB,EACxB,gBAAgB,EAChB,MAAM,oBAAoB,CAAC;AAsC5B;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,EACvC,KAAK,EACL,GAAG,EACH,QAAQ,EACR,MAAiB,EACjB,SAAmB,GACnB,EAAE;IACF,KAAK,EAAE,kBAAkB,CAAC;IAC1B,GAAG,EAAE,kBAAkB,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,eAAe,CAAC;CAC5B,GAAG,gBAAgB,CAoCnB;AACD;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,EAC/C,KAAK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