react-native-screen-transitions 2.4.1 → 2.4.2-beta.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/lib/commonjs/__configs__/presets.js.map +1 -1
- package/lib/commonjs/components/root-transition-aware.js.map +1 -1
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/commonjs/hooks/animation/use-screen-animation.js +9 -5
- package/lib/commonjs/hooks/animation/use-screen-animation.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/integrations/blank-stack/components/Header.js +142 -0
- package/lib/commonjs/integrations/blank-stack/components/Header.js.map +1 -0
- package/lib/commonjs/integrations/blank-stack/components/Screens.js +64 -0
- package/lib/commonjs/integrations/blank-stack/components/Screens.js.map +1 -0
- package/lib/commonjs/integrations/blank-stack/components/StackView.js +94 -0
- package/lib/commonjs/integrations/blank-stack/components/StackView.js.map +1 -0
- package/lib/commonjs/integrations/blank-stack/navigators/createBlankStackNavigator.js +74 -0
- package/lib/commonjs/integrations/blank-stack/navigators/createBlankStackNavigator.js.map +1 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js +66 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +1 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js +16 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +1 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js +208 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +1 -0
- package/lib/commonjs/{types/navigator.js → integrations/blank-stack/utils/with-stack-navigation/_types.js} +1 -1
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_types.js.map +1 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js +15 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +1 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.js +23 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.js.map +1 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js +15 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +1 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js +14 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +1 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js +13 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +1 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/index.js +71 -0
- package/lib/commonjs/integrations/blank-stack/utils/with-stack-navigation/index.js.map +1 -0
- package/lib/commonjs/integrations/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/commonjs/integrations/native-stack/utils/getModalRoutesKeys.js.map +1 -1
- package/lib/commonjs/integrations/native-stack/utils/useInvalidPreventRemoveError.js.map +1 -1
- package/lib/commonjs/integrations/native-stack/views/NativeStackView.js.map +1 -1
- package/lib/commonjs/integrations/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/commonjs/integrations/native-stack/views/useHeaderConfigProps.js.map +1 -1
- package/lib/commonjs/providers/keys.js.map +1 -1
- package/lib/commonjs/providers/screen-transition-provider.js.map +1 -1
- package/lib/commonjs/providers/transition-styles.js +18 -4
- package/lib/commonjs/providers/transition-styles.js.map +1 -1
- package/lib/commonjs/stores/animations.js.map +1 -1
- package/lib/commonjs/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/stores/gestures.js.map +1 -1
- package/lib/commonjs/stores/utils/reset-stores-for-screen.js.map +1 -1
- package/lib/commonjs/types/blank-stack.navigator.js +6 -0
- package/lib/commonjs/types/{navigator.js.map → blank-stack.navigator.js.map} +1 -1
- package/lib/commonjs/types/native-stack.navigator.js +6 -0
- package/lib/commonjs/types/native-stack.navigator.js.map +1 -0
- package/lib/commonjs/utils/animation/derivations.js +1 -14
- package/lib/commonjs/utils/animation/derivations.js.map +1 -1
- package/lib/commonjs/utils/bounds/constants.js.map +1 -1
- package/lib/commonjs/utils/bounds/index.js +23 -90
- package/lib/commonjs/utils/bounds/index.js.map +1 -1
- package/lib/commonjs/utils/gesture/apply-offset-rules.js.map +1 -1
- package/lib/commonjs/utils/gesture/check-gesture-activation.js.map +1 -1
- package/lib/module/__configs__/presets.js.map +1 -1
- package/lib/module/components/root-transition-aware.js.map +1 -1
- package/lib/module/constants.js.map +1 -1
- package/lib/module/hooks/animation/use-screen-animation.js +9 -5
- package/lib/module/hooks/animation/use-screen-animation.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/integrations/blank-stack/components/Header.js +138 -0
- package/lib/module/integrations/blank-stack/components/Header.js.map +1 -0
- package/lib/module/integrations/blank-stack/components/Screens.js +58 -0
- package/lib/module/integrations/blank-stack/components/Screens.js.map +1 -0
- package/lib/module/integrations/blank-stack/components/StackView.js +90 -0
- package/lib/module/integrations/blank-stack/components/StackView.js.map +1 -0
- package/lib/module/integrations/blank-stack/navigators/createBlankStackNavigator.js +68 -0
- package/lib/module/integrations/blank-stack/navigators/createBlankStackNavigator.js.map +1 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js +60 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.js.map +1 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js +11 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.js.map +1 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js +202 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.js.map +1 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_types.js +4 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_types.js.map +1 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js +10 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.js.map +1 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.js +19 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.js.map +1 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js +10 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.js.map +1 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js +9 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.js.map +1 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js +8 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.js.map +1 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/index.js +65 -0
- package/lib/module/integrations/blank-stack/utils/with-stack-navigation/index.js.map +1 -0
- package/lib/module/integrations/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/module/integrations/native-stack/utils/getModalRoutesKeys.js.map +1 -1
- package/lib/module/integrations/native-stack/utils/useInvalidPreventRemoveError.js.map +1 -1
- package/lib/module/integrations/native-stack/views/NativeStackView.js.map +1 -1
- package/lib/module/integrations/native-stack/views/NativeStackView.native.js.map +1 -1
- package/lib/module/integrations/native-stack/views/useHeaderConfigProps.js.map +1 -1
- package/lib/module/providers/keys.js.map +1 -1
- package/lib/module/providers/screen-transition-provider.js.map +1 -1
- package/lib/module/providers/transition-styles.js +19 -5
- package/lib/module/providers/transition-styles.js.map +1 -1
- package/lib/module/stores/animations.js.map +1 -1
- package/lib/module/stores/bounds/index.js.map +1 -1
- package/lib/module/stores/gestures.js.map +1 -1
- package/lib/module/stores/utils/reset-stores-for-screen.js.map +1 -1
- package/lib/module/types/blank-stack.navigator.js +4 -0
- package/lib/module/types/{navigator.js.map → blank-stack.navigator.js.map} +1 -1
- package/lib/module/types/native-stack.navigator.js +4 -0
- package/lib/module/types/native-stack.navigator.js.map +1 -0
- package/lib/module/utils/animation/derivations.js +1 -14
- package/lib/module/utils/animation/derivations.js.map +1 -1
- package/lib/module/utils/bounds/constants.js.map +1 -1
- package/lib/module/utils/bounds/index.js +24 -91
- package/lib/module/utils/bounds/index.js.map +1 -1
- package/lib/module/utils/gesture/apply-offset-rules.js.map +1 -1
- package/lib/module/utils/gesture/check-gesture-activation.js.map +1 -1
- package/lib/typescript/__configs__/index.d.ts +9 -9
- package/lib/typescript/__configs__/index.d.ts.map +1 -1
- package/lib/typescript/__configs__/presets.d.ts +1 -1
- package/lib/typescript/__configs__/presets.d.ts.map +1 -1
- package/lib/typescript/components/root-transition-aware.d.ts.map +1 -1
- package/lib/typescript/constants.d.ts +2 -2
- package/lib/typescript/constants.d.ts.map +1 -1
- package/lib/typescript/hooks/animation/use-screen-animation.d.ts +1 -1
- package/lib/typescript/hooks/animation/use-screen-animation.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +20 -18
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/integrations/blank-stack/components/Header.d.ts +5 -0
- package/lib/typescript/integrations/blank-stack/components/Header.d.ts.map +1 -0
- package/lib/typescript/integrations/blank-stack/components/Screens.d.ts +15 -0
- package/lib/typescript/integrations/blank-stack/components/Screens.d.ts.map +1 -0
- package/lib/typescript/integrations/blank-stack/components/StackView.d.ts +2 -0
- package/lib/typescript/integrations/blank-stack/components/StackView.d.ts.map +1 -0
- package/lib/typescript/integrations/blank-stack/navigators/createBlankStackNavigator.d.ts +109 -0
- package/lib/typescript/integrations/blank-stack/navigators/createBlankStackNavigator.d.ts.map +1 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.d.ts +8 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.d.ts.map +1 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.d.ts +2 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.d.ts.map +1 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.d.ts +20 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.d.ts.map +1 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_types.d.ts +23 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_types.d.ts.map +1 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.d.ts +3 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.d.ts.map +1 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.d.ts +4 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.d.ts.map +1 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.d.ts +4 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.d.ts.map +1 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.d.ts +3 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.d.ts.map +1 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.d.ts +3 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.d.ts.map +1 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/index.d.ts +6 -0
- package/lib/typescript/integrations/blank-stack/utils/with-stack-navigation/index.d.ts.map +1 -0
- package/lib/typescript/integrations/native-stack/navigators/createNativeStackNavigator.d.ts +1 -1
- package/lib/typescript/integrations/native-stack/navigators/createNativeStackNavigator.d.ts.map +1 -1
- package/lib/typescript/integrations/native-stack/utils/getModalRoutesKeys.d.ts +1 -1
- package/lib/typescript/integrations/native-stack/utils/getModalRoutesKeys.d.ts.map +1 -1
- package/lib/typescript/integrations/native-stack/utils/useInvalidPreventRemoveError.d.ts +1 -1
- package/lib/typescript/integrations/native-stack/utils/useInvalidPreventRemoveError.d.ts.map +1 -1
- package/lib/typescript/integrations/native-stack/views/NativeStackView.d.ts +1 -1
- package/lib/typescript/integrations/native-stack/views/NativeStackView.d.ts.map +1 -1
- package/lib/typescript/integrations/native-stack/views/NativeStackView.native.d.ts +1 -1
- package/lib/typescript/integrations/native-stack/views/NativeStackView.native.d.ts.map +1 -1
- package/lib/typescript/integrations/native-stack/views/useHeaderConfigProps.d.ts +1 -1
- package/lib/typescript/integrations/native-stack/views/useHeaderConfigProps.d.ts.map +1 -1
- package/lib/typescript/providers/keys.d.ts +1 -1
- package/lib/typescript/providers/keys.d.ts.map +1 -1
- package/lib/typescript/providers/screen-transition-provider.d.ts +1 -1
- package/lib/typescript/providers/screen-transition-provider.d.ts.map +1 -1
- package/lib/typescript/providers/transition-styles.d.ts.map +1 -1
- package/lib/typescript/stores/animations.d.ts +1 -1
- package/lib/typescript/stores/animations.d.ts.map +1 -1
- package/lib/typescript/stores/bounds/index.d.ts +1 -1
- package/lib/typescript/stores/bounds/index.d.ts.map +1 -1
- package/lib/typescript/stores/gestures.d.ts +1 -1
- package/lib/typescript/stores/gestures.d.ts.map +1 -1
- package/lib/typescript/stores/utils/reset-stores-for-screen.d.ts +1 -1
- package/lib/typescript/stores/utils/reset-stores-for-screen.d.ts.map +1 -1
- package/lib/typescript/types/animation.d.ts +2 -4
- package/lib/typescript/types/animation.d.ts.map +1 -1
- package/lib/typescript/types/blank-stack.navigator.d.ts +219 -0
- package/lib/typescript/types/blank-stack.navigator.d.ts.map +1 -0
- package/lib/typescript/types/bounds.d.ts +0 -57
- package/lib/typescript/types/bounds.d.ts.map +1 -1
- package/lib/typescript/types/{navigator.d.ts → native-stack.navigator.d.ts} +5 -1
- package/lib/typescript/types/native-stack.navigator.d.ts.map +1 -0
- package/lib/typescript/utils/animation/derivations.d.ts +1 -4
- package/lib/typescript/utils/animation/derivations.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/_types/builder.d.ts +2 -2
- package/lib/typescript/utils/bounds/_types/builder.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/_utils/geometry.d.ts +2 -2
- package/lib/typescript/utils/bounds/_utils/geometry.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/constants.d.ts +2 -2
- package/lib/typescript/utils/bounds/constants.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/index.d.ts +4 -4
- package/lib/typescript/utils/bounds/index.d.ts.map +1 -1
- package/lib/typescript/utils/gesture/apply-offset-rules.d.ts +2 -2
- package/lib/typescript/utils/gesture/apply-offset-rules.d.ts.map +1 -1
- package/lib/typescript/utils/gesture/check-gesture-activation.d.ts +2 -2
- package/lib/typescript/utils/gesture/check-gesture-activation.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__configs__/presets.ts +590 -590
- package/src/components/root-transition-aware.tsx +27 -27
- package/src/constants.ts +47 -47
- package/src/hooks/animation/use-screen-animation.tsx +52 -47
- package/src/index.ts +33 -22
- package/src/integrations/blank-stack/components/Header.tsx +143 -0
- package/src/integrations/blank-stack/components/Screens.tsx +96 -0
- package/src/integrations/blank-stack/components/StackView.tsx +106 -0
- package/src/integrations/blank-stack/navigators/createBlankStackNavigator.tsx +122 -0
- package/src/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-closing-route-keys.tsx +62 -0
- package/src/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-previous.tsx +11 -0
- package/src/integrations/blank-stack/utils/with-stack-navigation/_hooks/use-stack-navigation-state.tsx +280 -0
- package/src/integrations/blank-stack/utils/with-stack-navigation/_types.ts +36 -0
- package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/are-descriptors-equal.ts +15 -0
- package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/calculateActiveScreensLimit.ts +29 -0
- package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/compose-descriptors.ts +17 -0
- package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/have-same-route-keys.ts +12 -0
- package/src/integrations/blank-stack/utils/with-stack-navigation/_utils/routes-are-identical.ts +11 -0
- package/src/integrations/blank-stack/utils/with-stack-navigation/index.tsx +93 -0
- package/src/integrations/native-stack/navigators/createNativeStackNavigator.tsx +95 -95
- package/src/integrations/native-stack/utils/getModalRoutesKeys.ts +14 -14
- package/src/integrations/native-stack/utils/useInvalidPreventRemoveError.tsx +23 -23
- package/src/integrations/native-stack/views/NativeStackView.native.tsx +608 -608
- package/src/integrations/native-stack/views/NativeStackView.tsx +188 -188
- package/src/integrations/native-stack/views/useHeaderConfigProps.tsx +260 -260
- package/src/providers/keys.tsx +22 -22
- package/src/providers/screen-transition-provider.tsx +20 -20
- package/src/providers/transition-styles.tsx +24 -11
- package/src/stores/animations.ts +23 -23
- package/src/stores/bounds/index.ts +82 -82
- package/src/stores/gestures.ts +36 -36
- package/src/stores/utils/reset-stores-for-screen.ts +4 -4
- package/src/types/animation.ts +2 -4
- package/src/types/blank-stack.navigator.ts +271 -0
- package/src/types/bounds.ts +0 -64
- package/src/types/{navigator.ts → native-stack.navigator.ts} +5 -0
- package/src/utils/animation/derivations.ts +3 -20
- package/src/utils/bounds/_types/builder.ts +111 -111
- package/src/utils/bounds/_utils/geometry.ts +2 -2
- package/src/utils/bounds/constants.ts +29 -29
- package/src/utils/bounds/index.ts +35 -105
- package/src/utils/gesture/apply-offset-rules.ts +271 -271
- package/src/utils/gesture/check-gesture-activation.ts +260 -260
- package/lib/module/types/navigator.js +0 -4
- package/lib/typescript/types/navigator.d.ts.map +0 -1
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import type { ScaledSize } from "react-native";
|
|
2
1
|
import type { GestureStateManagerType } from "react-native-gesture-handler/lib/typescript/handlers/gestures/gestureStateManager";
|
|
3
2
|
import type { SharedValue } from "react-native-reanimated";
|
|
4
3
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
type ActivationArea,
|
|
5
|
+
type GestureActivationArea,
|
|
6
|
+
GestureOffsetState,
|
|
7
|
+
type SideActivation,
|
|
9
8
|
} from "../../types/gesture";
|
|
9
|
+
import type { Layout } from "../../types/native-stack.navigator";
|
|
10
10
|
|
|
11
11
|
type Directions = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
vertical: boolean;
|
|
13
|
+
verticalInverted: boolean;
|
|
14
|
+
horizontal: boolean;
|
|
15
|
+
horizontalInverted: boolean;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
interface CheckGestureActivationProps {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
initialTouch: { x: number; y: number };
|
|
20
|
+
touch: { x: number; y: number };
|
|
21
|
+
directions: Directions;
|
|
22
|
+
manager?: GestureStateManagerType;
|
|
23
|
+
gestureOffsetState: SharedValue<GestureOffsetState>;
|
|
24
|
+
activationArea?: GestureActivationArea;
|
|
25
|
+
dimensions: Layout;
|
|
26
|
+
responseDistance?: number;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
type NormalizedSides = {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
left: ActivationArea;
|
|
31
|
+
right: ActivationArea;
|
|
32
|
+
top: ActivationArea;
|
|
33
|
+
bottom: ActivationArea;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
interface ShouldActivateOrFailProps {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
37
|
+
deltaX: number;
|
|
38
|
+
deltaY: number;
|
|
39
|
+
hasHorizontal: boolean;
|
|
40
|
+
hasVertical: boolean;
|
|
41
|
+
isHorizontalSwipe: boolean;
|
|
42
|
+
isVerticalSwipe: boolean;
|
|
43
|
+
allowedRight: boolean;
|
|
44
|
+
allowedLeft: boolean;
|
|
45
|
+
allowedUp: boolean;
|
|
46
|
+
allowedDown: boolean;
|
|
47
|
+
horizontalGateRight: boolean;
|
|
48
|
+
horizontalGateLeft: boolean;
|
|
49
|
+
verticalGateUp: boolean;
|
|
50
|
+
verticalGateDown: boolean;
|
|
51
|
+
isSwipingRight: boolean;
|
|
52
|
+
isSwipingLeft: boolean;
|
|
53
|
+
isSwipingUp: boolean;
|
|
54
|
+
isSwipingDown: boolean;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
interface ReturnValues {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
isSwipingDown: boolean;
|
|
59
|
+
isSwipingUp: boolean;
|
|
60
|
+
isSwipingRight: boolean;
|
|
61
|
+
isSwipingLeft: boolean;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
@@ -73,238 +73,238 @@ const DEFAULT_EDGE_DISTANCE_VERTICAL = 135;
|
|
|
73
73
|
const DEFAULT_ACTIVATION_AREA = "screen" as const;
|
|
74
74
|
|
|
75
75
|
function normalizeSides(area?: GestureActivationArea): NormalizedSides {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
76
|
+
"worklet";
|
|
77
|
+
if (!area || typeof area === "string") {
|
|
78
|
+
const mode: ActivationArea = area ?? DEFAULT_ACTIVATION_AREA;
|
|
79
|
+
return { left: mode, right: mode, top: mode, bottom: mode };
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const s: SideActivation = area as SideActivation;
|
|
83
|
+
return {
|
|
84
|
+
left: s.left ?? DEFAULT_ACTIVATION_AREA,
|
|
85
|
+
right: s.right ?? DEFAULT_ACTIVATION_AREA,
|
|
86
|
+
top: s.top ?? DEFAULT_ACTIVATION_AREA,
|
|
87
|
+
bottom: s.bottom ?? DEFAULT_ACTIVATION_AREA,
|
|
88
|
+
};
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
function computeEdgeConstraints(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
initialTouch: { x: number; y: number },
|
|
93
|
+
dimensions: Layout,
|
|
94
|
+
sides: NormalizedSides,
|
|
95
|
+
responseDistance?: number
|
|
96
96
|
) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
97
|
+
"worklet";
|
|
98
|
+
const xDist = responseDistance ?? DEFAULT_EDGE_DISTANCE_HORIZONTAL;
|
|
99
|
+
const yDist = responseDistance ?? DEFAULT_EDGE_DISTANCE_VERTICAL;
|
|
100
|
+
|
|
101
|
+
const horizontalRight = sides.left === "screen" || initialTouch.x <= xDist; // right swipe checks left edge
|
|
102
|
+
const horizontalLeft =
|
|
103
|
+
sides.right === "screen" || initialTouch.x >= dimensions.width - xDist; // left swipe checks right edge
|
|
104
|
+
const verticalDown = sides.top === "screen" || initialTouch.y <= yDist; // down swipe checks top edge
|
|
105
|
+
const verticalUp =
|
|
106
|
+
sides.bottom === "screen" || initialTouch.y >= dimensions.height - yDist; // up swipe checks bottom edge
|
|
107
|
+
|
|
108
|
+
return { horizontalRight, horizontalLeft, verticalDown, verticalUp } as const;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
function calculateSwipeDirs(deltaX: number, deltaY: number) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
112
|
+
"worklet";
|
|
113
|
+
|
|
114
|
+
const isVerticalSwipe = Math.abs(deltaY) > Math.abs(deltaX);
|
|
115
|
+
const isHorizontalSwipe = Math.abs(deltaX) > Math.abs(deltaY);
|
|
116
|
+
|
|
117
|
+
const isSwipingDown = isVerticalSwipe && deltaY > 0;
|
|
118
|
+
const isSwipingUp = isVerticalSwipe && deltaY < 0;
|
|
119
|
+
const isSwipingRight = isHorizontalSwipe && deltaX > 0;
|
|
120
|
+
const isSwipingLeft = isHorizontalSwipe && deltaX < 0;
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
isSwipingDown,
|
|
124
|
+
isSwipingUp,
|
|
125
|
+
isSwipingRight,
|
|
126
|
+
isSwipingLeft,
|
|
127
|
+
isVerticalSwipe,
|
|
128
|
+
isHorizontalSwipe,
|
|
129
|
+
};
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
function shouldActivateOrFail(params: ShouldActivateOrFailProps) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
133
|
+
"worklet";
|
|
134
|
+
|
|
135
|
+
const {
|
|
136
|
+
deltaX,
|
|
137
|
+
deltaY,
|
|
138
|
+
hasHorizontal,
|
|
139
|
+
hasVertical,
|
|
140
|
+
isHorizontalSwipe,
|
|
141
|
+
isVerticalSwipe,
|
|
142
|
+
allowedRight,
|
|
143
|
+
allowedLeft,
|
|
144
|
+
allowedUp,
|
|
145
|
+
allowedDown,
|
|
146
|
+
horizontalGateRight,
|
|
147
|
+
horizontalGateLeft,
|
|
148
|
+
verticalGateUp,
|
|
149
|
+
verticalGateDown,
|
|
150
|
+
isSwipingRight,
|
|
151
|
+
isSwipingLeft,
|
|
152
|
+
isSwipingUp,
|
|
153
|
+
isSwipingDown,
|
|
154
|
+
} = params;
|
|
155
|
+
|
|
156
|
+
let shouldActivate = false;
|
|
157
|
+
let shouldFail = false;
|
|
158
|
+
|
|
159
|
+
if (hasHorizontal && isHorizontalSwipe) {
|
|
160
|
+
const hasEnoughHorizontalMovement =
|
|
161
|
+
Math.abs(deltaX) >= GESTURE_ACTIVATION_THRESHOLD_X;
|
|
162
|
+
|
|
163
|
+
const hasAcceptableVerticalDeviation =
|
|
164
|
+
Math.abs(deltaY) <= GESTURE_FAIL_TOLERANCE_X;
|
|
165
|
+
|
|
166
|
+
if (hasEnoughHorizontalMovement && hasAcceptableVerticalDeviation) {
|
|
167
|
+
const rightOk = isSwipingRight && allowedRight && horizontalGateRight;
|
|
168
|
+
const leftOk = isSwipingLeft && allowedLeft && horizontalGateLeft;
|
|
169
|
+
if (rightOk || leftOk) {
|
|
170
|
+
shouldActivate = true;
|
|
171
|
+
}
|
|
172
|
+
} else if (!hasAcceptableVerticalDeviation) {
|
|
173
|
+
shouldFail = true;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (hasVertical && isVerticalSwipe) {
|
|
178
|
+
const hasEnoughVerticalMovement =
|
|
179
|
+
Math.abs(deltaY) >= GESTURE_ACTIVATION_THRESHOLD_Y;
|
|
180
|
+
const hasAcceptableHorizontalDeviation =
|
|
181
|
+
Math.abs(deltaX) <= GESTURE_FAIL_TOLERANCE_Y;
|
|
182
|
+
|
|
183
|
+
if (hasEnoughVerticalMovement && hasAcceptableHorizontalDeviation) {
|
|
184
|
+
const upOk = isSwipingUp && allowedUp && verticalGateUp;
|
|
185
|
+
const downOk = isSwipingDown && allowedDown && verticalGateDown;
|
|
186
|
+
if (upOk || downOk) {
|
|
187
|
+
shouldActivate = true;
|
|
188
|
+
}
|
|
189
|
+
} else if (!hasAcceptableHorizontalDeviation) {
|
|
190
|
+
shouldFail = true;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (hasHorizontal && isHorizontalSwipe) {
|
|
195
|
+
if ((isSwipingLeft && !allowedLeft) || (isSwipingRight && !allowedRight)) {
|
|
196
|
+
shouldFail = true;
|
|
197
|
+
}
|
|
198
|
+
// If gating prohibits the dominant horizontal swipe, fail early
|
|
199
|
+
if (
|
|
200
|
+
(isSwipingRight && allowedRight && !horizontalGateRight) ||
|
|
201
|
+
(isSwipingLeft && allowedLeft && !horizontalGateLeft)
|
|
202
|
+
) {
|
|
203
|
+
shouldFail = true;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if (hasVertical && isVerticalSwipe) {
|
|
208
|
+
if ((isSwipingUp && !allowedUp) || (isSwipingDown && !allowedDown)) {
|
|
209
|
+
shouldFail = true;
|
|
210
|
+
}
|
|
211
|
+
// If gating prohibits the dominant vertical swipe, fail early
|
|
212
|
+
if (
|
|
213
|
+
(isSwipingUp && allowedUp && !verticalGateUp) ||
|
|
214
|
+
(isSwipingDown && allowedDown && !verticalGateDown)
|
|
215
|
+
) {
|
|
216
|
+
shouldFail = true;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
return { shouldActivate, shouldFail };
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
224
|
* Since we're using onTouchesMove to activate our pan, faillOffset and activateOffset don't actually work. In that case we'll create this function to use in onTouchesMove which acts simarly to the original functionality.
|
|
225
225
|
*/
|
|
226
226
|
export const applyOffsetRules = ({
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
227
|
+
initialTouch,
|
|
228
|
+
touch,
|
|
229
|
+
directions,
|
|
230
|
+
manager,
|
|
231
|
+
gestureOffsetState,
|
|
232
|
+
activationArea,
|
|
233
|
+
dimensions,
|
|
234
|
+
responseDistance,
|
|
235
235
|
}: CheckGestureActivationProps): ReturnValues => {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
236
|
+
"worklet";
|
|
237
|
+
|
|
238
|
+
const deltaX = touch.x - initialTouch.x;
|
|
239
|
+
const deltaY = touch.y - initialTouch.y;
|
|
240
|
+
|
|
241
|
+
const allowedDown = directions.vertical;
|
|
242
|
+
const allowedUp = directions.verticalInverted;
|
|
243
|
+
const allowedRight = directions.horizontal;
|
|
244
|
+
const allowedLeft = directions.horizontalInverted;
|
|
245
|
+
|
|
246
|
+
const hasHorizontal = allowedLeft || allowedRight;
|
|
247
|
+
const hasVertical = allowedUp || allowedDown;
|
|
248
|
+
|
|
249
|
+
const {
|
|
250
|
+
isSwipingDown,
|
|
251
|
+
isSwipingUp,
|
|
252
|
+
isSwipingRight,
|
|
253
|
+
isSwipingLeft,
|
|
254
|
+
isVerticalSwipe,
|
|
255
|
+
isHorizontalSwipe,
|
|
256
|
+
} = calculateSwipeDirs(deltaX, deltaY);
|
|
257
|
+
|
|
258
|
+
if (gestureOffsetState.value !== GestureOffsetState.PENDING) {
|
|
259
|
+
return {
|
|
260
|
+
isSwipingDown,
|
|
261
|
+
isSwipingUp,
|
|
262
|
+
isSwipingRight,
|
|
263
|
+
isSwipingLeft,
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const sides = normalizeSides(activationArea);
|
|
268
|
+
|
|
269
|
+
const {
|
|
270
|
+
horizontalRight: horizontalGateRight,
|
|
271
|
+
horizontalLeft: horizontalGateLeft,
|
|
272
|
+
verticalDown: verticalGateDown,
|
|
273
|
+
verticalUp: verticalGateUp,
|
|
274
|
+
} = computeEdgeConstraints(initialTouch, dimensions, sides, responseDistance);
|
|
275
|
+
|
|
276
|
+
const { shouldActivate, shouldFail } = shouldActivateOrFail({
|
|
277
|
+
deltaX,
|
|
278
|
+
deltaY,
|
|
279
|
+
hasHorizontal,
|
|
280
|
+
hasVertical,
|
|
281
|
+
isHorizontalSwipe,
|
|
282
|
+
isVerticalSwipe,
|
|
283
|
+
allowedRight,
|
|
284
|
+
allowedLeft,
|
|
285
|
+
allowedUp,
|
|
286
|
+
allowedDown,
|
|
287
|
+
horizontalGateRight,
|
|
288
|
+
horizontalGateLeft,
|
|
289
|
+
verticalGateUp,
|
|
290
|
+
verticalGateDown,
|
|
291
|
+
isSwipingRight,
|
|
292
|
+
isSwipingLeft,
|
|
293
|
+
isSwipingUp,
|
|
294
|
+
isSwipingDown,
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
if (shouldActivate) {
|
|
298
|
+
gestureOffsetState.value = GestureOffsetState.PASSED;
|
|
299
|
+
} else if (shouldFail) {
|
|
300
|
+
gestureOffsetState.value = GestureOffsetState.FAILED;
|
|
301
|
+
manager?.fail();
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
return {
|
|
305
|
+
isSwipingDown,
|
|
306
|
+
isSwipingUp,
|
|
307
|
+
isSwipingRight,
|
|
308
|
+
isSwipingLeft,
|
|
309
|
+
};
|
|
310
310
|
};
|
|
@@ -1 +0,0 @@
|
|
|
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,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAEzE,MAAM,MAAM,6BAA6B,GAAG;IAC3C;;OAEG;IACH,eAAe,EAAE;QAAE,IAAI,EAAE;YAAE,OAAO,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAC;IAChD;;OA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