react-native-gesture-handler 3.0.0-beta.2 → 3.0.0-beta.4
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/ReanimatedDrawerLayout/package.json +1 -1
- package/ReanimatedSwipeable/package.json +1 -1
- package/android/src/main/java/com/swmansion/gesturehandler/RNGestureHandlerPackage.kt +0 -5
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandler.kt +58 -28
- package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt +23 -5
- package/android/src/main/java/com/swmansion/gesturehandler/core/HoverGestureHandler.kt +3 -6
- package/android/src/main/java/com/swmansion/gesturehandler/core/ManualGestureHandler.kt +2 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/NativeViewGestureHandler.kt +67 -12
- package/android/src/main/java/com/swmansion/gesturehandler/core/OnJSResponderCancelListener.kt +6 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/PanGestureHandler.kt +2 -0
- package/android/src/main/java/com/swmansion/gesturehandler/core/PinchGestureHandler.kt +16 -6
- package/android/src/main/java/com/swmansion/gesturehandler/core/RotationGestureHandler.kt +23 -7
- package/android/src/main/java/com/swmansion/gesturehandler/core/ViewConfigurationHelper.kt +0 -1
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt +429 -135
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerDetectorView.kt +17 -0
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerInteractionManager.kt +3 -1
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.kt +4 -10
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt +18 -8
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootView.kt +15 -4
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.kt +0 -6
- package/apple/Handlers/RNFlingHandler.m +7 -7
- package/apple/Handlers/RNForceTouchHandler.m +3 -3
- package/apple/Handlers/RNHoverHandler.m +44 -13
- package/apple/Handlers/RNLongPressHandler.m +23 -10
- package/apple/Handlers/RNManualHandler.m +7 -2
- package/apple/Handlers/RNNativeViewHandler.mm +151 -36
- package/apple/Handlers/RNPanHandler.m +11 -7
- package/apple/Handlers/RNPinchHandler.m +20 -7
- package/apple/Handlers/RNRotationHandler.m +18 -6
- package/apple/Handlers/RNTapHandler.m +7 -5
- package/apple/RNGHUIKit.h +2 -0
- package/apple/RNGestureHandler.h +34 -1
- package/apple/RNGestureHandler.mm +110 -10
- package/apple/RNGestureHandlerButton.h +50 -1
- package/apple/RNGestureHandlerButton.mm +710 -49
- package/apple/RNGestureHandlerButtonComponentView.mm +134 -3
- package/apple/RNGestureHandlerDetector.mm +17 -0
- package/apple/RNGestureHandlerEvents.h +3 -1
- package/apple/RNGestureHandlerEvents.mm +8 -3
- package/apple/RNGestureHandlerManager.h +2 -0
- package/apple/RNGestureHandlerManager.mm +49 -3
- package/apple/RNGestureHandlerModule.mm +17 -10
- package/apple/RNGestureHandlerRegistry.h +2 -1
- package/apple/RNGestureHandlerRegistry.m +41 -11
- package/apple/RNManualActivationRecognizer.m +1 -1
- package/apple/RNRootViewGestureRecognizer.m +4 -15
- package/jest-utils/package.json +1 -1
- package/jestSetup.js +6 -16
- package/lib/module/RNGestureHandlerModule.web.js +2 -1
- package/lib/module/RNGestureHandlerModule.web.js.map +1 -1
- package/lib/module/RNGestureHandlerModule.windows.js +5 -6
- package/lib/module/RNGestureHandlerModule.windows.js.map +1 -1
- package/lib/module/components/GestureButtons.js +37 -20
- package/lib/module/components/GestureButtons.js.map +1 -1
- package/lib/module/components/GestureComponents.js +6 -8
- package/lib/module/components/GestureComponents.js.map +1 -1
- package/lib/module/components/GestureComponents.web.js +3 -4
- package/lib/module/components/GestureComponents.web.js.map +1 -1
- package/lib/module/components/GestureHandlerButton.js +2 -135
- package/lib/module/components/GestureHandlerButton.js.map +1 -1
- package/lib/module/components/GestureHandlerButton.web.js +160 -6
- package/lib/module/components/GestureHandlerButton.web.js.map +1 -1
- package/lib/module/components/GestureHandlerRootView.android.js.map +1 -1
- package/lib/module/components/GestureHandlerRootView.js +2 -2
- package/lib/module/components/GestureHandlerRootView.js.map +1 -1
- package/lib/module/components/GestureHandlerRootView.web.js +2 -2
- package/lib/module/components/GestureHandlerRootView.web.js.map +1 -1
- package/lib/module/components/Pressable/Pressable.js +17 -11
- package/lib/module/components/Pressable/Pressable.js.map +1 -1
- package/lib/module/components/Pressable/index.js.map +1 -1
- package/lib/module/components/Pressable/stateDefinitions.js +16 -3
- package/lib/module/components/Pressable/stateDefinitions.js.map +1 -1
- package/lib/module/components/Pressable/utils.js +1 -1
- package/lib/module/components/Pressable/utils.js.map +1 -1
- package/lib/module/components/ReanimatedDrawerLayout.js +11 -10
- package/lib/module/components/ReanimatedDrawerLayout.js.map +1 -1
- package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeable.js +16 -16
- package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeable.js.map +1 -1
- package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js.map +1 -1
- package/lib/module/components/ReanimatedSwipeable/index.js +1 -1
- package/lib/module/components/ReanimatedSwipeable/index.js.map +1 -1
- package/lib/module/components/Text.js +33 -23
- package/lib/module/components/Text.js.map +1 -1
- package/lib/module/components/touchables/GenericTouchable.js +11 -19
- package/lib/module/components/touchables/GenericTouchable.js.map +1 -1
- package/lib/module/components/touchables/TouchableHighlight.js +1 -1
- package/lib/module/components/touchables/TouchableHighlight.js.map +1 -1
- package/lib/module/components/touchables/TouchableNativeFeedback.android.js +1 -1
- package/lib/module/components/touchables/TouchableNativeFeedback.android.js.map +1 -1
- package/lib/module/components/touchables/TouchableOpacity.js +2 -2
- package/lib/module/components/touchables/TouchableOpacity.js.map +1 -1
- package/lib/module/components/touchables/TouchableWithoutFeedback.js +3 -4
- package/lib/module/components/touchables/TouchableWithoutFeedback.js.map +1 -1
- package/lib/module/components/touchables/index.js +2 -2
- package/lib/module/components/touchables/index.js.map +1 -1
- package/lib/module/findNodeHandle.web.js +4 -2
- package/lib/module/findNodeHandle.web.js.map +1 -1
- package/lib/module/handlers/FlingGestureHandler.js.map +1 -1
- package/lib/module/handlers/ForceTouchGestureHandler.js +1 -1
- package/lib/module/handlers/ForceTouchGestureHandler.js.map +1 -1
- package/lib/module/handlers/LongPressGestureHandler.js.map +1 -1
- package/lib/module/handlers/NativeViewGestureHandler.js.map +1 -1
- package/lib/module/handlers/PanGestureHandler.js.map +1 -1
- package/lib/module/handlers/PinchGestureHandler.js.map +1 -1
- package/lib/module/handlers/RotationGestureHandler.js.map +1 -1
- package/lib/module/handlers/TapGestureHandler.js.map +1 -1
- package/lib/module/handlers/createHandler.js +10 -10
- package/lib/module/handlers/createHandler.js.map +1 -1
- package/lib/module/handlers/createNativeWrapper.js +7 -3
- package/lib/module/handlers/createNativeWrapper.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/Wrap.js +1 -1
- package/lib/module/handlers/gestures/GestureDetector/Wrap.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/Wrap.web.js +5 -4
- package/lib/module/handlers/gestures/GestureDetector/Wrap.web.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/attachHandlers.js +5 -5
- package/lib/module/handlers/gestures/GestureDetector/attachHandlers.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/dropHandlers.js +2 -2
- package/lib/module/handlers/gestures/GestureDetector/dropHandlers.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/index.js +6 -6
- package/lib/module/handlers/gestures/GestureDetector/index.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/updateHandlers.js +3 -3
- package/lib/module/handlers/gestures/GestureDetector/updateHandlers.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/useAnimatedGesture.js +3 -3
- package/lib/module/handlers/gestures/GestureDetector/useAnimatedGesture.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/useDetectorUpdater.js +4 -3
- package/lib/module/handlers/gestures/GestureDetector/useDetectorUpdater.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/useMountReactions.js +2 -2
- package/lib/module/handlers/gestures/GestureDetector/useMountReactions.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/useViewRefHandler.js +2 -2
- package/lib/module/handlers/gestures/GestureDetector/useViewRefHandler.js.map +1 -1
- package/lib/module/handlers/gestures/GestureDetector/utils.js +18 -8
- package/lib/module/handlers/gestures/GestureDetector/utils.js.map +1 -1
- package/lib/module/handlers/gestures/eventReceiver.js.map +1 -1
- package/lib/module/handlers/gestures/flingGesture.js +8 -0
- package/lib/module/handlers/gestures/flingGesture.js.map +1 -1
- package/lib/module/handlers/gestures/forceTouchGesture.js +3 -3
- package/lib/module/handlers/gestures/forceTouchGesture.js.map +1 -1
- package/lib/module/handlers/gestures/gesture.js +9 -1
- package/lib/module/handlers/gestures/gesture.js.map +1 -1
- package/lib/module/handlers/gestures/gestureComposition.js +28 -0
- package/lib/module/handlers/gestures/gestureComposition.js.map +1 -1
- package/lib/module/handlers/gestures/gestureObjects.js +30 -4
- package/lib/module/handlers/gestures/gestureObjects.js.map +1 -1
- package/lib/module/handlers/gestures/gestureStateManager.js +9 -0
- package/lib/module/handlers/gestures/gestureStateManager.js.map +1 -1
- package/lib/module/handlers/gestures/hoverGesture.js +8 -0
- package/lib/module/handlers/gestures/hoverGesture.js.map +1 -1
- package/lib/module/handlers/gestures/longPressGesture.js +8 -0
- package/lib/module/handlers/gestures/longPressGesture.js.map +1 -1
- package/lib/module/handlers/gestures/manualGesture.js +8 -0
- package/lib/module/handlers/gestures/manualGesture.js.map +1 -1
- package/lib/module/handlers/gestures/nativeGesture.js +8 -0
- package/lib/module/handlers/gestures/nativeGesture.js.map +1 -1
- package/lib/module/handlers/gestures/panGesture.js +13 -0
- package/lib/module/handlers/gestures/panGesture.js.map +1 -1
- package/lib/module/handlers/gestures/pinchGesture.js +13 -0
- package/lib/module/handlers/gestures/pinchGesture.js.map +1 -1
- package/lib/module/handlers/gestures/reanimatedWrapper.js.map +1 -1
- package/lib/module/handlers/gestures/rotationGesture.js +8 -0
- package/lib/module/handlers/gestures/rotationGesture.js.map +1 -1
- package/lib/module/handlers/gestures/tapGesture.js +8 -0
- package/lib/module/handlers/gestures/tapGesture.js.map +1 -1
- package/lib/module/handlers/handlersRegistry.js.map +1 -1
- package/lib/module/handlers/utils.js +4 -4
- package/lib/module/handlers/utils.js.map +1 -1
- package/lib/module/index.js +15 -16
- package/lib/module/index.js.map +1 -1
- package/lib/module/jestUtils/index.js +1 -1
- package/lib/module/jestUtils/index.js.map +1 -1
- package/lib/module/jestUtils/jestUtils.js +0 -1
- package/lib/module/jestUtils/jestUtils.js.map +1 -1
- package/lib/module/mocks/GestureButtons.js +8 -5
- package/lib/module/mocks/GestureButtons.js.map +1 -1
- package/lib/module/mocks/Touchables.js +4 -0
- package/lib/module/mocks/Touchables.js.map +1 -0
- package/lib/module/mocks/gestureComponents.js +1 -12
- package/lib/module/mocks/gestureComponents.js.map +1 -1
- package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -1
- package/lib/module/specs/RNGestureHandlerButtonNativeComponent.ts +49 -6
- package/lib/module/specs/RNGestureHandlerDetectorNativeComponent.ts +23 -11
- package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.ts +2 -2
- package/lib/module/useIsScreenReaderEnabled.js +26 -0
- package/lib/module/useIsScreenReaderEnabled.js.map +1 -0
- package/lib/module/v3/NativeProxy.js.map +1 -1
- package/lib/module/v3/NativeProxy.web.js.map +1 -1
- package/lib/module/v3/components/GestureButtons.js +41 -25
- package/lib/module/v3/components/GestureButtons.js.map +1 -1
- package/lib/module/v3/components/GestureComponents.js +3 -3
- package/lib/module/v3/components/GestureComponents.js.map +1 -1
- package/lib/module/v3/components/GestureComponents.web.js +3 -4
- package/lib/module/v3/components/GestureComponents.web.js.map +1 -1
- package/lib/module/v3/components/Pressable.js +16 -15
- package/lib/module/v3/components/Pressable.js.map +1 -1
- package/lib/module/v3/components/Touchable/Touchable.js +132 -0
- package/lib/module/v3/components/Touchable/Touchable.js.map +1 -0
- package/lib/module/v3/components/Touchable/TouchableProps.js +4 -0
- package/lib/module/v3/components/Touchable/TouchableProps.js.map +1 -0
- package/lib/module/v3/components/index.js +3 -2
- package/lib/module/v3/components/index.js.map +1 -1
- package/lib/module/v3/createNativeWrapper.js +3 -3
- package/lib/module/v3/createNativeWrapper.js.map +1 -1
- package/lib/module/v3/detectors/GestureDetector.js +1 -1
- package/lib/module/v3/detectors/GestureDetector.js.map +1 -1
- package/lib/module/v3/detectors/HostGestureDetector.web.js +14 -10
- package/lib/module/v3/detectors/HostGestureDetector.web.js.map +1 -1
- package/lib/module/v3/detectors/NativeDetector.js +3 -3
- package/lib/module/v3/detectors/NativeDetector.js.map +1 -1
- package/lib/module/v3/detectors/ReanimatedNativeDetector.js +1 -1
- package/lib/module/v3/detectors/ReanimatedNativeDetector.js.map +1 -1
- package/lib/module/v3/detectors/VirtualDetector/InterceptingGestureDetector.js +15 -9
- package/lib/module/v3/detectors/VirtualDetector/InterceptingGestureDetector.js.map +1 -1
- package/lib/module/v3/detectors/VirtualDetector/VirtualDetector.js +10 -5
- package/lib/module/v3/detectors/VirtualDetector/VirtualDetector.js.map +1 -1
- package/lib/module/v3/detectors/VirtualDetector/useInterceptingDetectorContext.js.map +1 -1
- package/lib/module/v3/detectors/common.js +0 -3
- package/lib/module/v3/detectors/common.js.map +1 -1
- package/lib/module/v3/detectors/index.js +1 -1
- package/lib/module/v3/detectors/index.js.map +1 -1
- package/lib/module/v3/detectors/useEnsureGestureHandlerRootView.js.map +1 -1
- package/lib/module/v3/detectors/useNativeGestureRole.js +6 -0
- package/lib/module/v3/detectors/useNativeGestureRole.js.map +1 -0
- package/lib/module/v3/detectors/useNativeGestureRole.web.js +27 -0
- package/lib/module/v3/detectors/useNativeGestureRole.web.js.map +1 -0
- package/lib/module/v3/detectors/utils.js.map +1 -1
- package/lib/module/v3/gestureStateManager.js +0 -5
- package/lib/module/v3/gestureStateManager.js.map +1 -1
- package/lib/module/v3/gestureStateManager.web.js +0 -14
- package/lib/module/v3/gestureStateManager.web.js.map +1 -1
- package/lib/module/v3/hooks/callbacks/eventHandler.js +23 -19
- package/lib/module/v3/hooks/callbacks/eventHandler.js.map +1 -1
- package/lib/module/v3/hooks/callbacks/useGestureEventHandler.js +2 -2
- package/lib/module/v3/hooks/callbacks/useGestureEventHandler.js.map +1 -1
- package/lib/module/v3/hooks/callbacks/useReanimatedEventHandler.js +19 -4
- package/lib/module/v3/hooks/callbacks/useReanimatedEventHandler.js.map +1 -1
- package/lib/module/v3/hooks/composition/index.js +2 -2
- package/lib/module/v3/hooks/composition/index.js.map +1 -1
- package/lib/module/v3/hooks/composition/useCompetingGestures.js.map +1 -1
- package/lib/module/v3/hooks/composition/useComposedGesture.js +1 -1
- package/lib/module/v3/hooks/composition/useComposedGesture.js.map +1 -1
- package/lib/module/v3/hooks/composition/useExclusiveGestures.js.map +1 -1
- package/lib/module/v3/hooks/composition/useSimultaneousGestures.js.map +1 -1
- package/lib/module/v3/hooks/gestures/fling/{FlingProperties.js → FlingTypes.js} +1 -1
- package/lib/module/v3/hooks/gestures/fling/FlingTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/fling/useFlingGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/fling/useFlingGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/hover/{HoverProperties.js → HoverTypes.js} +1 -1
- package/lib/module/v3/hooks/gestures/hover/{HoverProperties.js.map → HoverTypes.js.map} +1 -1
- package/lib/module/v3/hooks/gestures/hover/useHoverGesture.js +10 -2
- package/lib/module/v3/hooks/gestures/hover/useHoverGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/index.js +4 -0
- package/lib/module/v3/hooks/gestures/index.js.map +1 -1
- package/lib/module/v3/hooks/gestures/longPress/{LongPressProperties.js → LongPressTypes.js} +1 -1
- package/lib/module/v3/hooks/gestures/longPress/LongPressTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/longPress/useLongPressGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/longPress/useLongPressGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/manual/ManualTypes.js +4 -0
- package/lib/module/v3/hooks/gestures/manual/ManualTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/manual/useManualGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/manual/useManualGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/native/NativeTypes.js +4 -0
- package/lib/module/v3/hooks/gestures/native/NativeTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/native/useNativeGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/native/useNativeGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/pan/{PanProperties.js → PanTypes.js} +1 -1
- package/lib/module/v3/hooks/gestures/pan/PanTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/pan/usePanGesture.js +9 -1
- package/lib/module/v3/hooks/gestures/pan/usePanGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/pinch/PinchTypes.js +4 -0
- package/lib/module/v3/hooks/gestures/pinch/PinchTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/pinch/usePinchGesture.js +9 -3
- package/lib/module/v3/hooks/gestures/pinch/usePinchGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/rotation/RotationTypes.js +4 -0
- package/lib/module/v3/hooks/gestures/rotation/RotationTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/rotation/useRotationGesture.js +9 -2
- package/lib/module/v3/hooks/gestures/rotation/useRotationGesture.js.map +1 -1
- package/lib/module/v3/hooks/gestures/tap/{TapProperties.js → TapTypes.js} +1 -1
- package/lib/module/v3/hooks/gestures/tap/TapTypes.js.map +1 -0
- package/lib/module/v3/hooks/gestures/tap/useTapGesture.js +2 -1
- package/lib/module/v3/hooks/gestures/tap/useTapGesture.js.map +1 -1
- package/lib/module/v3/hooks/useGesture.js +10 -11
- package/lib/module/v3/hooks/useGesture.js.map +1 -1
- package/lib/module/v3/hooks/useGestureCallbacks.js +4 -4
- package/lib/module/v3/hooks/useGestureCallbacks.js.map +1 -1
- package/lib/module/v3/hooks/utils/configUtils.js +9 -5
- package/lib/module/v3/hooks/utils/configUtils.js.map +1 -1
- package/lib/module/v3/hooks/utils/eventHandlersUtils.js +3 -7
- package/lib/module/v3/hooks/utils/eventHandlersUtils.js.map +1 -1
- package/lib/module/v3/hooks/utils/eventUtils.js +10 -0
- package/lib/module/v3/hooks/utils/eventUtils.js.map +1 -1
- package/lib/module/v3/hooks/utils/index.js +6 -6
- package/lib/module/v3/hooks/utils/index.js.map +1 -1
- package/lib/module/v3/hooks/utils/propsWhiteList.js +10 -8
- package/lib/module/v3/hooks/utils/propsWhiteList.js.map +1 -1
- package/lib/module/v3/hooks/utils/reanimatedUtils.js +1 -1
- package/lib/module/v3/hooks/utils/reanimatedUtils.js.map +1 -1
- package/lib/module/v3/index.js +3 -4
- package/lib/module/v3/index.js.map +1 -1
- package/lib/module/v3/types/GestureTypes.js.map +1 -1
- package/lib/module/v3/types/index.js +1 -1
- package/lib/module/v3/types/index.js.map +1 -1
- package/lib/module/web/Gestures.js +6 -6
- package/lib/module/web/Gestures.js.map +1 -1
- package/lib/module/web/constants.js +1 -0
- package/lib/module/web/constants.js.map +1 -1
- package/lib/module/web/detectors/RotationGestureDetector.js +22 -12
- package/lib/module/web/detectors/RotationGestureDetector.js.map +1 -1
- package/lib/module/web/detectors/ScaleGestureDetector.js +10 -2
- package/lib/module/web/detectors/ScaleGestureDetector.js.map +1 -1
- package/lib/module/web/handlers/FlingGestureHandler.js +3 -3
- package/lib/module/web/handlers/FlingGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/GestureHandler.js +60 -63
- package/lib/module/web/handlers/GestureHandler.js.map +1 -1
- package/lib/module/web/handlers/HoverGestureHandler.js +2 -5
- package/lib/module/web/handlers/HoverGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/LongPressGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/ManualGestureHandler.js +1 -0
- package/lib/module/web/handlers/ManualGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/NativeViewGestureHandler.js +66 -18
- package/lib/module/web/handlers/NativeViewGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/PanGestureHandler.js +2 -1
- package/lib/module/web/handlers/PanGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/PinchGestureHandler.js +11 -14
- package/lib/module/web/handlers/PinchGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/RotationGestureHandler.js +30 -35
- package/lib/module/web/handlers/RotationGestureHandler.js.map +1 -1
- package/lib/module/web/handlers/TapGestureHandler.js.map +1 -1
- package/lib/module/web/interfaces.js +6 -0
- package/lib/module/web/interfaces.js.map +1 -1
- package/lib/module/web/tools/GestureHandlerOrchestrator.js +8 -2
- package/lib/module/web/tools/GestureHandlerOrchestrator.js.map +1 -1
- package/lib/module/web/tools/GestureHandlerWebDelegate.js +62 -17
- package/lib/module/web/tools/GestureHandlerWebDelegate.js.map +1 -1
- package/lib/module/web/tools/GestureLifecycleEvents.js +10 -0
- package/lib/module/web/tools/GestureLifecycleEvents.js.map +1 -0
- package/lib/module/web/tools/InteractionManager.js.map +1 -1
- package/lib/module/web/tools/KeyboardEventManager.js +1 -1
- package/lib/module/web/tools/KeyboardEventManager.js.map +1 -1
- package/lib/module/web/tools/PointerEventManager.js +16 -7
- package/lib/module/web/tools/PointerEventManager.js.map +1 -1
- package/lib/module/web/tools/WheelEventManager.js +2 -2
- package/lib/module/web/tools/WheelEventManager.js.map +1 -1
- package/lib/module/web/utils.js +22 -1
- package/lib/module/web/utils.js.map +1 -1
- package/lib/typescript/RNGestureHandlerModule.web.d.ts +1 -1
- package/lib/typescript/RNGestureHandlerModule.web.d.ts.map +1 -1
- package/lib/typescript/RNGestureHandlerModule.windows.d.ts +8 -8
- package/lib/typescript/RNGestureHandlerModule.windows.d.ts.map +1 -1
- package/lib/typescript/components/GestureButtons.d.ts +16 -5
- package/lib/typescript/components/GestureButtons.d.ts.map +1 -1
- package/lib/typescript/components/GestureButtonsProps.d.ts +21 -21
- package/lib/typescript/components/GestureButtonsProps.d.ts.map +1 -1
- package/lib/typescript/components/GestureComponents.d.ts +44 -14
- package/lib/typescript/components/GestureComponents.d.ts.map +1 -1
- package/lib/typescript/components/GestureComponents.web.d.ts +26 -6
- package/lib/typescript/components/GestureComponents.web.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerButton.d.ts +114 -2
- package/lib/typescript/components/GestureHandlerButton.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerButton.web.d.ts +20 -2
- package/lib/typescript/components/GestureHandlerButton.web.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerRootView.android.d.ts +1 -1
- package/lib/typescript/components/GestureHandlerRootView.android.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerRootView.d.ts +1 -1
- package/lib/typescript/components/GestureHandlerRootView.d.ts.map +1 -1
- package/lib/typescript/components/GestureHandlerRootView.web.d.ts +2 -2
- package/lib/typescript/components/GestureHandlerRootView.web.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/Pressable.d.ts +6 -3
- package/lib/typescript/components/Pressable/Pressable.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/PressableProps.d.ts +4 -4
- package/lib/typescript/components/Pressable/PressableProps.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/StateMachine.d.ts +1 -1
- package/lib/typescript/components/Pressable/StateMachine.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/index.d.ts +1 -1
- package/lib/typescript/components/Pressable/index.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/stateDefinitions.d.ts +3 -3
- package/lib/typescript/components/Pressable/stateDefinitions.d.ts.map +1 -1
- package/lib/typescript/components/Pressable/utils.d.ts +8 -7
- package/lib/typescript/components/Pressable/utils.d.ts.map +1 -1
- package/lib/typescript/components/ReanimatedDrawerLayout.d.ts +9 -5
- package/lib/typescript/components/ReanimatedDrawerLayout.d.ts.map +1 -1
- package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeable.d.ts +2 -2
- package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeable.d.ts.map +1 -1
- package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeableProps.d.ts +9 -11
- package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeableProps.d.ts.map +1 -1
- package/lib/typescript/components/ReanimatedSwipeable/index.d.ts +1 -1
- package/lib/typescript/components/ReanimatedSwipeable/index.d.ts.map +1 -1
- package/lib/typescript/components/Text.d.ts +15 -3
- package/lib/typescript/components/Text.d.ts.map +1 -1
- package/lib/typescript/components/touchables/ExtraButtonProps.d.ts +5 -5
- package/lib/typescript/components/touchables/ExtraButtonProps.d.ts.map +1 -1
- package/lib/typescript/components/touchables/GenericTouchable.d.ts +2 -2
- package/lib/typescript/components/touchables/GenericTouchable.d.ts.map +1 -1
- package/lib/typescript/components/touchables/GenericTouchableProps.d.ts +2 -2
- package/lib/typescript/components/touchables/GenericTouchableProps.d.ts.map +1 -1
- package/lib/typescript/components/touchables/TouchableHighlight.d.ts +3 -3
- package/lib/typescript/components/touchables/TouchableHighlight.d.ts.map +1 -1
- package/lib/typescript/components/touchables/TouchableNativeFeedback.android.d.ts +2 -2
- package/lib/typescript/components/touchables/TouchableNativeFeedback.android.d.ts.map +1 -1
- package/lib/typescript/components/touchables/TouchableNativeFeedbackProps.d.ts +1 -1
- package/lib/typescript/components/touchables/TouchableNativeFeedbackProps.d.ts.map +1 -1
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts +3 -2
- package/lib/typescript/components/touchables/TouchableOpacity.d.ts.map +1 -1
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts +4 -3
- package/lib/typescript/components/touchables/TouchableWithoutFeedback.d.ts.map +1 -1
- package/lib/typescript/components/touchables/index.d.ts +3 -3
- package/lib/typescript/components/touchables/index.d.ts.map +1 -1
- package/lib/typescript/components/utils.d.ts +1 -1
- package/lib/typescript/components/utils.d.ts.map +1 -1
- package/lib/typescript/findNodeHandle.web.d.ts.map +1 -1
- package/lib/typescript/handlers/FlingGestureHandler.d.ts +1 -1
- package/lib/typescript/handlers/FlingGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/ForceTouchGestureHandler.d.ts +3 -2
- package/lib/typescript/handlers/ForceTouchGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/GestureHandlerEventPayload.d.ts +3 -3
- package/lib/typescript/handlers/GestureHandlerEventPayload.d.ts.map +1 -1
- package/lib/typescript/handlers/LongPressGestureHandler.d.ts +2 -2
- package/lib/typescript/handlers/LongPressGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts +3 -3
- package/lib/typescript/handlers/NativeViewGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/PanGestureHandler.d.ts +1 -1
- package/lib/typescript/handlers/PanGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/PinchGestureHandler.d.ts +2 -2
- package/lib/typescript/handlers/PinchGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/RotationGestureHandler.d.ts +2 -2
- package/lib/typescript/handlers/RotationGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/TapGestureHandler.d.ts +1 -1
- package/lib/typescript/handlers/TapGestureHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/createHandler.d.ts +1 -1
- package/lib/typescript/handlers/createHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/createNativeWrapper.d.ts +10 -2
- package/lib/typescript/handlers/createNativeWrapper.d.ts.map +1 -1
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts +27 -27
- package/lib/typescript/handlers/gestureHandlerCommon.d.ts.map +1 -1
- package/lib/typescript/handlers/gestureHandlerTypesCompat.d.ts +3 -3
- package/lib/typescript/handlers/gestureHandlerTypesCompat.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/Wrap.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/Wrap.web.d.ts +7 -6
- package/lib/typescript/handlers/gestures/GestureDetector/Wrap.web.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/attachHandlers.d.ts +5 -5
- package/lib/typescript/handlers/gestures/GestureDetector/attachHandlers.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/dropHandlers.d.ts +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/dropHandlers.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/index.d.ts +3 -3
- package/lib/typescript/handlers/gestures/GestureDetector/index.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/needsToReattach.d.ts +2 -2
- package/lib/typescript/handlers/gestures/GestureDetector/needsToReattach.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/types.d.ts +2 -2
- package/lib/typescript/handlers/gestures/GestureDetector/types.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/updateHandlers.d.ts +3 -3
- package/lib/typescript/handlers/gestures/GestureDetector/updateHandlers.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useAnimatedGesture.d.ts +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useAnimatedGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useDetectorUpdater.d.ts +5 -5
- package/lib/typescript/handlers/gestures/GestureDetector/useDetectorUpdater.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useMountReactions.d.ts +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useMountReactions.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/useViewRefHandler.d.ts +2 -2
- package/lib/typescript/handlers/gestures/GestureDetector/useViewRefHandler.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts +2 -2
- package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/eventReceiver.d.ts +1 -1
- package/lib/typescript/handlers/gestures/eventReceiver.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/flingGesture.d.ts +9 -2
- package/lib/typescript/handlers/gestures/flingGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/forceTouchGesture.d.ts +7 -6
- package/lib/typescript/handlers/gestures/forceTouchGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gesture.d.ts +9 -3
- package/lib/typescript/handlers/gestures/gesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gestureComposition.d.ts +23 -1
- package/lib/typescript/handlers/gestures/gestureComposition.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gestureObjects.d.ts +31 -5
- package/lib/typescript/handlers/gestures/gestureObjects.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gestureStateManager.d.ts +6 -0
- package/lib/typescript/handlers/gestures/gestureStateManager.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/gestureStateManager.web.d.ts +1 -1
- package/lib/typescript/handlers/gestures/gestureStateManager.web.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/hoverGesture.d.ts +9 -2
- package/lib/typescript/handlers/gestures/hoverGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/longPressGesture.d.ts +9 -2
- package/lib/typescript/handlers/gestures/longPressGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/manualGesture.d.ts +7 -1
- package/lib/typescript/handlers/gestures/manualGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/nativeGesture.d.ts +9 -2
- package/lib/typescript/handlers/gestures/nativeGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/panGesture.d.ts +13 -3
- package/lib/typescript/handlers/gestures/panGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/pinchGesture.d.ts +11 -2
- package/lib/typescript/handlers/gestures/pinchGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts +3 -3
- package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/rotationGesture.d.ts +8 -2
- package/lib/typescript/handlers/gestures/rotationGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/gestures/tapGesture.d.ts +9 -2
- package/lib/typescript/handlers/gestures/tapGesture.d.ts.map +1 -1
- package/lib/typescript/handlers/handlersRegistry.d.ts +6 -6
- package/lib/typescript/handlers/handlersRegistry.d.ts.map +1 -1
- package/lib/typescript/handlers/utils.d.ts +1 -1
- package/lib/typescript/handlers/utils.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +41 -42
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/jestUtils/index.d.ts +1 -1
- package/lib/typescript/jestUtils/jestUtils.d.ts +22 -21
- package/lib/typescript/jestUtils/jestUtils.d.ts.map +1 -1
- package/lib/typescript/mocks/GestureButtons.d.ts +5 -5
- package/lib/typescript/mocks/GestureButtons.d.ts.map +1 -1
- package/lib/typescript/mocks/Touchables.d.ts +2 -0
- package/lib/typescript/mocks/Touchables.d.ts.map +1 -0
- package/lib/typescript/mocks/gestureComponents.d.ts +1 -13
- package/lib/typescript/mocks/gestureComponents.d.ts.map +1 -1
- package/lib/typescript/mountRegistry.d.ts +1 -1
- package/lib/typescript/mountRegistry.d.ts.map +1 -1
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +2 -2
- package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts.map +1 -1
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +36 -3
- package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts.map +1 -1
- package/lib/typescript/specs/RNGestureHandlerDetectorNativeComponent.d.ts +8 -8
- package/lib/typescript/specs/RNGestureHandlerDetectorNativeComponent.d.ts.map +1 -1
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +1 -1
- package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts.map +1 -1
- package/lib/typescript/useIsScreenReaderEnabled.d.ts +2 -0
- package/lib/typescript/useIsScreenReaderEnabled.d.ts.map +1 -0
- package/lib/typescript/useIsomorphicLayoutEffect.d.ts +1 -1
- package/lib/typescript/useIsomorphicLayoutEffect.d.ts.map +1 -1
- package/lib/typescript/v3/NativeProxy.d.ts +3 -3
- package/lib/typescript/v3/NativeProxy.d.ts.map +1 -1
- package/lib/typescript/v3/NativeProxy.web.d.ts +3 -3
- package/lib/typescript/v3/NativeProxy.web.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureButtons.d.ts +21 -11
- package/lib/typescript/v3/components/GestureButtons.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureButtonsProps.d.ts +25 -85
- package/lib/typescript/v3/components/GestureButtonsProps.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureComponents.d.ts +27 -38
- package/lib/typescript/v3/components/GestureComponents.d.ts.map +1 -1
- package/lib/typescript/v3/components/GestureComponents.web.d.ts +26 -34
- package/lib/typescript/v3/components/GestureComponents.web.d.ts.map +1 -1
- package/lib/typescript/v3/components/Pressable.d.ts +1 -1
- package/lib/typescript/v3/components/Pressable.d.ts.map +1 -1
- package/lib/typescript/v3/components/Touchable/Touchable.d.ts +4 -0
- package/lib/typescript/v3/components/Touchable/Touchable.d.ts.map +1 -0
- package/lib/typescript/v3/components/Touchable/TouchableProps.d.ts +40 -0
- package/lib/typescript/v3/components/Touchable/TouchableProps.d.ts.map +1 -0
- package/lib/typescript/v3/components/index.d.ts +5 -3
- package/lib/typescript/v3/components/index.d.ts.map +1 -1
- package/lib/typescript/v3/createNativeWrapper.d.ts +3 -7
- package/lib/typescript/v3/createNativeWrapper.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/GestureDetector.d.ts +3 -3
- package/lib/typescript/v3/detectors/GestureDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/HostGestureDetector.web.d.ts +10 -6
- package/lib/typescript/v3/detectors/HostGestureDetector.web.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/NativeDetector.d.ts +2 -2
- package/lib/typescript/v3/detectors/NativeDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/ReanimatedNativeDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/VirtualDetector/InterceptingGestureDetector.d.ts +2 -2
- package/lib/typescript/v3/detectors/VirtualDetector/InterceptingGestureDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/VirtualDetector/VirtualDetector.d.ts +2 -2
- package/lib/typescript/v3/detectors/VirtualDetector/VirtualDetector.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/VirtualDetector/useInterceptingDetectorContext.d.ts +1 -1
- package/lib/typescript/v3/detectors/VirtualDetector/useInterceptingDetectorContext.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/common.d.ts +14 -15
- package/lib/typescript/v3/detectors/common.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/index.d.ts +1 -1
- package/lib/typescript/v3/detectors/index.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/useEnsureGestureHandlerRootView.d.ts.map +1 -1
- package/lib/typescript/v3/detectors/useNativeGestureRole.d.ts +3 -0
- package/lib/typescript/v3/detectors/useNativeGestureRole.d.ts.map +1 -0
- package/lib/typescript/v3/detectors/useNativeGestureRole.web.d.ts +3 -0
- package/lib/typescript/v3/detectors/useNativeGestureRole.web.d.ts.map +1 -0
- package/lib/typescript/v3/detectors/utils.d.ts +2 -2
- package/lib/typescript/v3/detectors/utils.d.ts.map +1 -1
- package/lib/typescript/v3/gestureStateManager.d.ts +0 -1
- package/lib/typescript/v3/gestureStateManager.d.ts.map +1 -1
- package/lib/typescript/v3/gestureStateManager.web.d.ts +1 -1
- package/lib/typescript/v3/gestureStateManager.web.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/callbacks/eventHandler.d.ts +6 -6
- package/lib/typescript/v3/hooks/callbacks/eventHandler.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/callbacks/useGestureEventHandler.d.ts +2 -2
- package/lib/typescript/v3/hooks/callbacks/useGestureEventHandler.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/callbacks/useReanimatedEventHandler.d.ts +3 -3
- package/lib/typescript/v3/hooks/callbacks/useReanimatedEventHandler.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/composition/index.d.ts +2 -2
- package/lib/typescript/v3/hooks/composition/index.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/composition/useCompetingGestures.d.ts +1 -1
- package/lib/typescript/v3/hooks/composition/useCompetingGestures.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/composition/useComposedGesture.d.ts +1 -1
- package/lib/typescript/v3/hooks/composition/useComposedGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/composition/useExclusiveGestures.d.ts +1 -1
- package/lib/typescript/v3/hooks/composition/useExclusiveGestures.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/composition/useSimultaneousGestures.d.ts +1 -1
- package/lib/typescript/v3/hooks/composition/useSimultaneousGestures.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/fling/FlingTypes.d.ts +36 -0
- package/lib/typescript/v3/hooks/gestures/fling/FlingTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/fling/useFlingGesture.d.ts +2 -15
- package/lib/typescript/v3/hooks/gestures/fling/useFlingGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/hover/HoverTypes.d.ts +38 -0
- package/lib/typescript/v3/hooks/gestures/hover/HoverTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/hover/useHoverGesture.d.ts +2 -20
- package/lib/typescript/v3/hooks/gestures/hover/useHoverGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/index.d.ts +19 -28
- package/lib/typescript/v3/hooks/gestures/index.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/longPress/{LongPressProperties.d.ts → LongPressTypes.d.ts} +16 -1
- package/lib/typescript/v3/hooks/gestures/longPress/LongPressTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/longPress/useLongPressGesture.d.ts +2 -15
- package/lib/typescript/v3/hooks/gestures/longPress/useLongPressGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/manual/ManualTypes.d.ts +10 -0
- package/lib/typescript/v3/hooks/gestures/manual/ManualTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/manual/useManualGesture.d.ts +2 -10
- package/lib/typescript/v3/hooks/gestures/manual/useManualGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/native/NativeTypes.d.ts +33 -0
- package/lib/typescript/v3/hooks/gestures/native/NativeTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/native/useNativeGesture.d.ts +2 -12
- package/lib/typescript/v3/hooks/gestures/native/useNativeGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/pan/{PanProperties.d.ts → PanTypes.d.ts} +25 -1
- package/lib/typescript/v3/hooks/gestures/pan/PanTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/pan/usePanGesture.d.ts +2 -22
- package/lib/typescript/v3/hooks/gestures/pan/usePanGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/pinch/PinchTypes.d.ts +17 -0
- package/lib/typescript/v3/hooks/gestures/pinch/PinchTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/pinch/usePinchGesture.d.ts +2 -16
- package/lib/typescript/v3/hooks/gestures/pinch/usePinchGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/rotation/RotationTypes.d.ts +17 -0
- package/lib/typescript/v3/hooks/gestures/rotation/RotationTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/rotation/useRotationGesture.d.ts +2 -16
- package/lib/typescript/v3/hooks/gestures/rotation/useRotationGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/gestures/tap/{TapProperties.d.ts → TapTypes.d.ts} +14 -1
- package/lib/typescript/v3/hooks/gestures/tap/TapTypes.d.ts.map +1 -0
- package/lib/typescript/v3/hooks/gestures/tap/useTapGesture.d.ts +2 -15
- package/lib/typescript/v3/hooks/gestures/tap/useTapGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/useGesture.d.ts +2 -2
- package/lib/typescript/v3/hooks/useGesture.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/useGestureCallbacks.d.ts +4 -4
- package/lib/typescript/v3/hooks/useGestureCallbacks.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/configUtils.d.ts +4 -4
- package/lib/typescript/v3/hooks/utils/configUtils.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/eventHandlersUtils.d.ts +4 -4
- package/lib/typescript/v3/hooks/utils/eventHandlersUtils.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/eventUtils.d.ts +8 -6
- package/lib/typescript/v3/hooks/utils/eventUtils.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/index.d.ts +6 -6
- package/lib/typescript/v3/hooks/utils/index.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/propsWhiteList.d.ts +6 -5
- package/lib/typescript/v3/hooks/utils/propsWhiteList.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/reanimatedUtils.d.ts +4 -4
- package/lib/typescript/v3/hooks/utils/reanimatedUtils.d.ts.map +1 -1
- package/lib/typescript/v3/hooks/utils/relationUtils.d.ts +2 -2
- package/lib/typescript/v3/hooks/utils/relationUtils.d.ts.map +1 -1
- package/lib/typescript/v3/index.d.ts +6 -7
- package/lib/typescript/v3/index.d.ts.map +1 -1
- package/lib/typescript/v3/types/ConfigTypes.d.ts +36 -34
- package/lib/typescript/v3/types/ConfigTypes.d.ts.map +1 -1
- package/lib/typescript/v3/types/DetectorTypes.d.ts +10 -6
- package/lib/typescript/v3/types/DetectorTypes.d.ts.map +1 -1
- package/lib/typescript/v3/types/EventTypes.d.ts +11 -8
- package/lib/typescript/v3/types/EventTypes.d.ts.map +1 -1
- package/lib/typescript/v3/types/GestureTypes.d.ts +16 -16
- package/lib/typescript/v3/types/GestureTypes.d.ts.map +1 -1
- package/lib/typescript/v3/types/NativeWrapperType.d.ts +7 -4
- package/lib/typescript/v3/types/NativeWrapperType.d.ts.map +1 -1
- package/lib/typescript/v3/types/ReanimatedTypes.d.ts +1 -1
- package/lib/typescript/v3/types/ReanimatedTypes.d.ts.map +1 -1
- package/lib/typescript/v3/types/UtilityTypes.d.ts +7 -7
- package/lib/typescript/v3/types/UtilityTypes.d.ts.map +1 -1
- package/lib/typescript/v3/types/index.d.ts +6 -6
- package/lib/typescript/v3/types/index.d.ts.map +1 -1
- package/lib/typescript/web/Gestures.d.ts +6 -6
- package/lib/typescript/web/Gestures.d.ts.map +1 -1
- package/lib/typescript/web/constants.d.ts +1 -0
- package/lib/typescript/web/constants.d.ts.map +1 -1
- package/lib/typescript/web/detectors/RotationGestureDetector.d.ts +2 -2
- package/lib/typescript/web/detectors/RotationGestureDetector.d.ts.map +1 -1
- package/lib/typescript/web/detectors/ScaleGestureDetector.d.ts +2 -2
- package/lib/typescript/web/detectors/ScaleGestureDetector.d.ts.map +1 -1
- package/lib/typescript/web/handlers/FlingGestureHandler.d.ts +3 -3
- package/lib/typescript/web/handlers/FlingGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/GestureHandler.d.ts +16 -9
- package/lib/typescript/web/handlers/GestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/HoverGestureHandler.d.ts +4 -4
- package/lib/typescript/web/handlers/HoverGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/IGestureHandler.d.ts +8 -6
- package/lib/typescript/web/handlers/IGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/LongPressGestureHandler.d.ts +4 -4
- package/lib/typescript/web/handlers/LongPressGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/ManualGestureHandler.d.ts +4 -3
- package/lib/typescript/web/handlers/ManualGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/NativeViewGestureHandler.d.ts +17 -7
- package/lib/typescript/web/handlers/NativeViewGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/PanGestureHandler.d.ts +5 -4
- package/lib/typescript/web/handlers/PanGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/PinchGestureHandler.d.ts +5 -4
- package/lib/typescript/web/handlers/PinchGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/RotationGestureHandler.d.ts +6 -6
- package/lib/typescript/web/handlers/RotationGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/handlers/TapGestureHandler.d.ts +3 -3
- package/lib/typescript/web/handlers/TapGestureHandler.d.ts.map +1 -1
- package/lib/typescript/web/interfaces.d.ts +38 -32
- package/lib/typescript/web/interfaces.d.ts.map +1 -1
- package/lib/typescript/web/tools/EventManager.d.ts +1 -1
- package/lib/typescript/web/tools/EventManager.d.ts.map +1 -1
- package/lib/typescript/web/tools/GestureHandlerDelegate.d.ts +4 -0
- package/lib/typescript/web/tools/GestureHandlerDelegate.d.ts.map +1 -1
- package/lib/typescript/web/tools/GestureHandlerOrchestrator.d.ts +1 -0
- package/lib/typescript/web/tools/GestureHandlerOrchestrator.d.ts.map +1 -1
- package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts +6 -1
- package/lib/typescript/web/tools/GestureHandlerWebDelegate.d.ts.map +1 -1
- package/lib/typescript/web/tools/GestureLifecycleEvents.d.ts +7 -0
- package/lib/typescript/web/tools/GestureLifecycleEvents.d.ts.map +1 -0
- package/lib/typescript/web/tools/InteractionManager.d.ts +2 -2
- package/lib/typescript/web/tools/InteractionManager.d.ts.map +1 -1
- package/lib/typescript/web/tools/KeyboardEventManager.d.ts +2 -1
- package/lib/typescript/web/tools/KeyboardEventManager.d.ts.map +1 -1
- package/lib/typescript/web/tools/NodeManager.d.ts +3 -3
- package/lib/typescript/web/tools/NodeManager.d.ts.map +1 -1
- package/lib/typescript/web/tools/PointerEventManager.d.ts +2 -1
- package/lib/typescript/web/tools/PointerEventManager.d.ts.map +1 -1
- package/lib/typescript/web/tools/PointerTracker.d.ts +1 -1
- package/lib/typescript/web/tools/PointerTracker.d.ts.map +1 -1
- package/lib/typescript/web/tools/Vector.d.ts +1 -1
- package/lib/typescript/web/tools/Vector.d.ts.map +1 -1
- package/lib/typescript/web/tools/VelocityTracker.d.ts +1 -1
- package/lib/typescript/web/tools/VelocityTracker.d.ts.map +1 -1
- package/lib/typescript/web/tools/WheelEventManager.d.ts +1 -1
- package/lib/typescript/web/tools/WheelEventManager.d.ts.map +1 -1
- package/lib/typescript/web/utils.d.ts +2 -1
- package/lib/typescript/web/utils.d.ts.map +1 -1
- package/package.json +11 -11
- package/react-native.config.js +0 -1
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/ComponentDescriptors.h +0 -1
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/RNGestureHandlerDetectorShadowNode.cpp +61 -30
- package/src/RNGestureHandlerModule.web.ts +2 -2
- package/src/RNGestureHandlerModule.windows.ts +8 -10
- package/src/components/GestureButtons.tsx +55 -43
- package/src/components/GestureButtonsProps.ts +22 -21
- package/src/components/GestureComponents.tsx +28 -35
- package/src/components/GestureComponents.web.tsx +9 -12
- package/src/components/GestureHandlerButton.tsx +150 -144
- package/src/components/GestureHandlerButton.web.tsx +219 -3
- package/src/components/GestureHandlerRootView.android.tsx +2 -1
- package/src/components/GestureHandlerRootView.tsx +5 -4
- package/src/components/GestureHandlerRootView.web.tsx +6 -4
- package/src/components/Pressable/Pressable.tsx +36 -28
- package/src/components/Pressable/PressableProps.tsx +9 -8
- package/src/components/Pressable/StateMachine.tsx +1 -1
- package/src/components/Pressable/index.ts +1 -1
- package/src/components/Pressable/stateDefinitions.ts +31 -5
- package/src/components/Pressable/utils.ts +16 -12
- package/src/components/ReanimatedDrawerLayout.tsx +415 -426
- package/src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx +30 -30
- package/src/components/ReanimatedSwipeable/ReanimatedSwipeableProps.ts +10 -13
- package/src/components/ReanimatedSwipeable/index.ts +2 -2
- package/src/components/Text.tsx +51 -52
- package/src/components/touchables/ExtraButtonProps.ts +5 -5
- package/src/components/touchables/GenericTouchable.tsx +19 -25
- package/src/components/touchables/GenericTouchableProps.ts +4 -3
- package/src/components/touchables/TouchableHighlight.tsx +8 -8
- package/src/components/touchables/TouchableNativeFeedback.android.tsx +5 -3
- package/src/components/touchables/TouchableNativeFeedbackProps.tsx +2 -1
- package/src/components/touchables/TouchableOpacity.tsx +5 -9
- package/src/components/touchables/TouchableWithoutFeedback.tsx +17 -24
- package/src/components/touchables/index.ts +3 -3
- package/src/components/utils.ts +1 -1
- package/src/findNodeHandle.web.ts +12 -2
- package/src/handlers/FlingGestureHandler.ts +3 -5
- package/src/handlers/ForceTouchGestureHandler.ts +6 -6
- package/src/handlers/GestureHandlerEventPayload.ts +3 -3
- package/src/handlers/LongPressGestureHandler.ts +3 -5
- package/src/handlers/NativeViewGestureHandler.ts +5 -7
- package/src/handlers/PanGestureHandler.ts +3 -5
- package/src/handlers/PinchGestureHandler.ts +3 -5
- package/src/handlers/RotationGestureHandler.ts +3 -5
- package/src/handlers/TapGestureHandler.ts +3 -5
- package/src/handlers/createHandler.tsx +19 -22
- package/src/handlers/createNativeWrapper.tsx +12 -7
- package/src/handlers/gestureHandlerCommon.ts +31 -29
- package/src/handlers/gestureHandlerTypesCompat.ts +5 -5
- package/src/handlers/gestures/GestureDetector/Wrap.tsx +2 -1
- package/src/handlers/gestures/GestureDetector/Wrap.web.tsx +34 -30
- package/src/handlers/gestures/GestureDetector/attachHandlers.ts +14 -13
- package/src/handlers/gestures/GestureDetector/dropHandlers.ts +3 -3
- package/src/handlers/gestures/GestureDetector/index.tsx +11 -10
- package/src/handlers/gestures/GestureDetector/needsToReattach.ts +2 -2
- package/src/handlers/gestures/GestureDetector/types.ts +2 -2
- package/src/handlers/gestures/GestureDetector/updateHandlers.ts +7 -7
- package/src/handlers/gestures/GestureDetector/useAnimatedGesture.ts +11 -12
- package/src/handlers/gestures/GestureDetector/useDetectorUpdater.ts +9 -8
- package/src/handlers/gestures/GestureDetector/useMountReactions.ts +5 -4
- package/src/handlers/gestures/GestureDetector/useViewRefHandler.ts +5 -4
- package/src/handlers/gestures/GestureDetector/utils.ts +24 -14
- package/src/handlers/gestures/eventReceiver.ts +8 -8
- package/src/handlers/gestures/flingGesture.ts +9 -2
- package/src/handlers/gestures/forceTouchGesture.ts +7 -6
- package/src/handlers/gestures/gesture.ts +15 -9
- package/src/handlers/gestures/gestureComposition.ts +23 -1
- package/src/handlers/gestures/gestureObjects.ts +31 -5
- package/src/handlers/gestures/gestureStateManager.ts +6 -0
- package/src/handlers/gestures/gestureStateManager.web.ts +1 -1
- package/src/handlers/gestures/hoverGesture.ts +9 -2
- package/src/handlers/gestures/longPressGesture.ts +9 -2
- package/src/handlers/gestures/manualGesture.ts +7 -1
- package/src/handlers/gestures/nativeGesture.ts +9 -2
- package/src/handlers/gestures/panGesture.ts +13 -3
- package/src/handlers/gestures/pinchGesture.ts +11 -2
- package/src/handlers/gestures/reanimatedWrapper.ts +7 -6
- package/src/handlers/gestures/rotationGesture.ts +8 -2
- package/src/handlers/gestures/tapGesture.ts +9 -2
- package/src/handlers/handlersRegistry.ts +13 -6
- package/src/handlers/utils.ts +6 -5
- package/src/index.ts +111 -117
- package/src/jestUtils/index.ts +1 -1
- package/src/jestUtils/jestUtils.ts +45 -50
- package/src/mocks/GestureButtons.tsx +9 -5
- package/src/mocks/Touchables.tsx +6 -0
- package/src/mocks/gestureComponents.tsx +7 -22
- package/src/mountRegistry.ts +1 -1
- package/src/specs/NativeRNGestureHandlerModule.ts +3 -2
- package/src/specs/RNGestureHandlerButtonNativeComponent.ts +49 -6
- package/src/specs/RNGestureHandlerDetectorNativeComponent.ts +23 -11
- package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +2 -2
- package/src/useIsScreenReaderEnabled.ts +31 -0
- package/src/v3/NativeProxy.ts +13 -5
- package/src/v3/NativeProxy.web.ts +13 -5
- package/src/v3/components/GestureButtons.tsx +52 -28
- package/src/v3/components/GestureButtonsProps.ts +38 -110
- package/src/v3/components/GestureComponents.tsx +29 -34
- package/src/v3/components/GestureComponents.web.tsx +7 -10
- package/src/v3/components/Pressable.tsx +33 -28
- package/src/v3/components/Touchable/Touchable.tsx +167 -0
- package/src/v3/components/Touchable/TouchableProps.ts +55 -0
- package/src/v3/components/index.ts +12 -13
- package/src/v3/createNativeWrapper.tsx +14 -16
- package/src/v3/detectors/GestureDetector.tsx +17 -9
- package/src/v3/detectors/HostGestureDetector.web.tsx +35 -22
- package/src/v3/detectors/NativeDetector.tsx +12 -10
- package/src/v3/detectors/ReanimatedNativeDetector.tsx +4 -5
- package/src/v3/detectors/VirtualDetector/InterceptingGestureDetector.tsx +66 -34
- package/src/v3/detectors/VirtualDetector/VirtualDetector.tsx +32 -13
- package/src/v3/detectors/VirtualDetector/useInterceptingDetectorContext.ts +2 -1
- package/src/v3/detectors/common.ts +40 -20
- package/src/v3/detectors/index.ts +1 -1
- package/src/v3/detectors/useEnsureGestureHandlerRootView.ts +1 -0
- package/src/v3/detectors/useNativeGestureRole.ts +8 -0
- package/src/v3/detectors/useNativeGestureRole.web.ts +42 -0
- package/src/v3/detectors/utils.ts +4 -3
- package/src/v3/gestureStateManager.ts +0 -6
- package/src/v3/gestureStateManager.web.ts +2 -17
- package/src/v3/hooks/callbacks/eventHandler.ts +87 -47
- package/src/v3/hooks/callbacks/useGestureEventHandler.ts +21 -9
- package/src/v3/hooks/callbacks/useReanimatedEventHandler.ts +42 -18
- package/src/v3/hooks/composition/index.ts +2 -2
- package/src/v3/hooks/composition/useCompetingGestures.ts +2 -1
- package/src/v3/hooks/composition/useComposedGesture.ts +6 -6
- package/src/v3/hooks/composition/useExclusiveGestures.ts +2 -1
- package/src/v3/hooks/composition/useSimultaneousGestures.ts +2 -1
- package/src/v3/hooks/gestures/fling/FlingTypes.ts +60 -0
- package/src/v3/hooks/gestures/fling/useFlingGesture.ts +11 -34
- package/src/v3/hooks/gestures/hover/HoverTypes.ts +76 -0
- package/src/v3/hooks/gestures/hover/useHoverGesture.ts +29 -56
- package/src/v3/hooks/gestures/index.ts +111 -32
- package/src/v3/hooks/gestures/longPress/{LongPressProperties.ts → LongPressTypes.ts} +39 -0
- package/src/v3/hooks/gestures/longPress/useLongPressGesture.ts +13 -44
- package/src/v3/hooks/gestures/manual/ManualTypes.ts +28 -0
- package/src/v3/hooks/gestures/manual/useManualGesture.ts +11 -28
- package/src/v3/hooks/gestures/native/NativeTypes.ts +62 -0
- package/src/v3/hooks/gestures/native/useNativeGesture.ts +11 -34
- package/src/v3/hooks/gestures/pan/{PanProperties.ts → PanTypes.ts} +55 -0
- package/src/v3/hooks/gestures/pan/usePanGesture.ts +34 -55
- package/src/v3/hooks/gestures/pinch/PinchTypes.ts +40 -0
- package/src/v3/hooks/gestures/pinch/usePinchGesture.ts +26 -41
- package/src/v3/hooks/gestures/rotation/RotationTypes.ts +41 -0
- package/src/v3/hooks/gestures/rotation/useRotationGesture.ts +24 -39
- package/src/v3/hooks/gestures/tap/{TapProperties.ts → TapTypes.ts} +32 -0
- package/src/v3/hooks/gestures/tap/useTapGesture.ts +14 -36
- package/src/v3/hooks/useGesture.ts +26 -18
- package/src/v3/hooks/useGestureCallbacks.ts +14 -9
- package/src/v3/hooks/utils/configUtils.ts +61 -22
- package/src/v3/hooks/utils/eventHandlersUtils.ts +23 -20
- package/src/v3/hooks/utils/eventUtils.ts +63 -21
- package/src/v3/hooks/utils/index.ts +15 -21
- package/src/v3/hooks/utils/propsWhiteList.ts +24 -12
- package/src/v3/hooks/utils/reanimatedUtils.ts +22 -10
- package/src/v3/hooks/utils/relationUtils.ts +3 -3
- package/src/v3/index.ts +51 -46
- package/src/v3/types/ConfigTypes.ts +48 -36
- package/src/v3/types/DetectorTypes.ts +29 -7
- package/src/v3/types/EventTypes.ts +27 -16
- package/src/v3/types/GestureTypes.ts +49 -22
- package/src/v3/types/NativeWrapperType.ts +21 -6
- package/src/v3/types/ReanimatedTypes.ts +1 -1
- package/src/v3/types/UtilityTypes.ts +7 -7
- package/src/v3/types/index.ts +32 -36
- package/src/web/Gestures.ts +6 -6
- package/src/web/constants.ts +1 -0
- package/src/web/detectors/RotationGestureDetector.ts +27 -14
- package/src/web/detectors/ScaleGestureDetector.ts +13 -7
- package/src/web/handlers/FlingGestureHandler.ts +6 -7
- package/src/web/handlers/GestureHandler.ts +102 -125
- package/src/web/handlers/HoverGestureHandler.ts +7 -10
- package/src/web/handlers/IGestureHandler.ts +8 -6
- package/src/web/handlers/LongPressGestureHandler.ts +4 -5
- package/src/web/handlers/ManualGestureHandler.ts +5 -3
- package/src/web/handlers/NativeViewGestureHandler.ts +128 -25
- package/src/web/handlers/PanGestureHandler.ts +9 -7
- package/src/web/handlers/PinchGestureHandler.ts +22 -22
- package/src/web/handlers/RotationGestureHandler.ts +34 -47
- package/src/web/handlers/TapGestureHandler.ts +4 -4
- package/src/web/interfaces.ts +42 -35
- package/src/web/tools/EventManager.ts +1 -1
- package/src/web/tools/GestureHandlerDelegate.ts +4 -0
- package/src/web/tools/GestureHandlerOrchestrator.ts +11 -4
- package/src/web/tools/GestureHandlerWebDelegate.ts +82 -23
- package/src/web/tools/GestureLifecycleEvents.ts +14 -0
- package/src/web/tools/InteractionManager.ts +3 -2
- package/src/web/tools/KeyboardEventManager.ts +3 -2
- package/src/web/tools/NodeManager.ts +2 -2
- package/src/web/tools/PointerEventManager.ts +30 -9
- package/src/web/tools/PointerTracker.ts +1 -1
- package/src/web/tools/Vector.ts +1 -1
- package/src/web/tools/VelocityTracker.ts +1 -1
- package/src/web/tools/WheelEventManager.ts +3 -2
- package/src/web/utils.ts +28 -2
- package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonWrapperViewManager.kt +0 -30
- package/apple/RNGestureHandlerButtonManager.h +0 -5
- package/apple/RNGestureHandlerButtonManager.mm +0 -60
- package/apple/RNGestureHandlerButtonWrapper.h +0 -19
- package/apple/RNGestureHandlerButtonWrapper.mm +0 -46
- package/lib/commonjs/ActionType.js +0 -22
- package/lib/commonjs/ActionType.js.map +0 -1
- package/lib/commonjs/Directions.js +0 -38
- package/lib/commonjs/Directions.js.map +0 -1
- package/lib/commonjs/GestureHandlerRootViewContext.js +0 -10
- package/lib/commonjs/GestureHandlerRootViewContext.js.map +0 -1
- package/lib/commonjs/PlatformConstants.js +0 -9
- package/lib/commonjs/PlatformConstants.js.map +0 -1
- package/lib/commonjs/PlatformConstants.web.js +0 -12
- package/lib/commonjs/PlatformConstants.web.js.map +0 -1
- package/lib/commonjs/PointerType.js +0 -15
- package/lib/commonjs/PointerType.js.map +0 -1
- package/lib/commonjs/RNGestureHandlerModule.js +0 -12
- package/lib/commonjs/RNGestureHandlerModule.js.map +0 -1
- package/lib/commonjs/RNGestureHandlerModule.web.js +0 -73
- package/lib/commonjs/RNGestureHandlerModule.web.js.map +0 -1
- package/lib/commonjs/RNGestureHandlerModule.windows.js +0 -53
- package/lib/commonjs/RNGestureHandlerModule.windows.js.map +0 -1
- package/lib/commonjs/RNRenderer.js +0 -14
- package/lib/commonjs/RNRenderer.js.map +0 -1
- package/lib/commonjs/RNRenderer.web.js +0 -10
- package/lib/commonjs/RNRenderer.web.js.map +0 -1
- package/lib/commonjs/State.js +0 -19
- package/lib/commonjs/State.js.map +0 -1
- package/lib/commonjs/TouchEventType.js +0 -16
- package/lib/commonjs/TouchEventType.js.map +0 -1
- package/lib/commonjs/components/GestureButtons.js +0 -220
- package/lib/commonjs/components/GestureButtons.js.map +0 -1
- package/lib/commonjs/components/GestureButtonsProps.js +0 -6
- package/lib/commonjs/components/GestureButtonsProps.js.map +0 -1
- package/lib/commonjs/components/GestureComponents.js +0 -127
- package/lib/commonjs/components/GestureComponents.js.map +0 -1
- package/lib/commonjs/components/GestureComponents.web.js +0 -61
- package/lib/commonjs/components/GestureComponents.web.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerButton.js +0 -144
- package/lib/commonjs/components/GestureHandlerButton.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerButton.web.js +0 -16
- package/lib/commonjs/components/GestureHandlerButton.web.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerRootView.android.js +0 -32
- package/lib/commonjs/components/GestureHandlerRootView.android.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerRootView.js +0 -30
- package/lib/commonjs/components/GestureHandlerRootView.js.map +0 -1
- package/lib/commonjs/components/GestureHandlerRootView.web.js +0 -30
- package/lib/commonjs/components/GestureHandlerRootView.web.js.map +0 -1
- package/lib/commonjs/components/Pressable/Pressable.js +0 -270
- package/lib/commonjs/components/Pressable/Pressable.js.map +0 -1
- package/lib/commonjs/components/Pressable/PressableProps.js +0 -6
- package/lib/commonjs/components/Pressable/PressableProps.js.map +0 -1
- package/lib/commonjs/components/Pressable/StateMachine.js +0 -44
- package/lib/commonjs/components/Pressable/StateMachine.js.map +0 -1
- package/lib/commonjs/components/Pressable/index.js +0 -14
- package/lib/commonjs/components/Pressable/index.js.map +0 -1
- package/lib/commonjs/components/Pressable/stateDefinitions.js +0 -88
- package/lib/commonjs/components/Pressable/stateDefinitions.js.map +0 -1
- package/lib/commonjs/components/Pressable/utils.js +0 -92
- package/lib/commonjs/components/Pressable/utils.js.map +0 -1
- package/lib/commonjs/components/ReanimatedDrawerLayout.js +0 -377
- package/lib/commonjs/components/ReanimatedDrawerLayout.js.map +0 -1
- package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeable.js +0 -347
- package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeable.js.map +0 -1
- package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js +0 -12
- package/lib/commonjs/components/ReanimatedSwipeable/ReanimatedSwipeableProps.js.map +0 -1
- package/lib/commonjs/components/ReanimatedSwipeable/index.js +0 -21
- package/lib/commonjs/components/ReanimatedSwipeable/index.js.map +0 -1
- package/lib/commonjs/components/Text.js +0 -60
- package/lib/commonjs/components/Text.js.map +0 -1
- package/lib/commonjs/components/touchables/ExtraButtonProps.js +0 -2
- package/lib/commonjs/components/touchables/ExtraButtonProps.js.map +0 -1
- package/lib/commonjs/components/touchables/GenericTouchable.js +0 -245
- package/lib/commonjs/components/touchables/GenericTouchable.js.map +0 -1
- package/lib/commonjs/components/touchables/GenericTouchableProps.js +0 -6
- package/lib/commonjs/components/touchables/GenericTouchableProps.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableHighlight.js +0 -93
- package/lib/commonjs/components/touchables/TouchableHighlight.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.android.js +0 -84
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.android.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.js +0 -13
- package/lib/commonjs/components/touchables/TouchableNativeFeedback.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableNativeFeedbackProps.js +0 -6
- package/lib/commonjs/components/touchables/TouchableNativeFeedbackProps.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableOpacity.js +0 -65
- package/lib/commonjs/components/touchables/TouchableOpacity.js.map +0 -1
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js +0 -33
- package/lib/commonjs/components/touchables/TouchableWithoutFeedback.js.map +0 -1
- package/lib/commonjs/components/touchables/index.js +0 -35
- package/lib/commonjs/components/touchables/index.js.map +0 -1
- package/lib/commonjs/components/utils.js +0 -17
- package/lib/commonjs/components/utils.js.map +0 -1
- package/lib/commonjs/findNodeHandle.js +0 -9
- package/lib/commonjs/findNodeHandle.js.map +0 -1
- package/lib/commonjs/findNodeHandle.web.js +0 -39
- package/lib/commonjs/findNodeHandle.web.js.map +0 -1
- package/lib/commonjs/getShadowNodeFromRef.js +0 -51
- package/lib/commonjs/getShadowNodeFromRef.js.map +0 -1
- package/lib/commonjs/getShadowNodeFromRef.web.js +0 -14
- package/lib/commonjs/getShadowNodeFromRef.web.js.map +0 -1
- package/lib/commonjs/ghQueueMicrotask.js +0 -10
- package/lib/commonjs/ghQueueMicrotask.js.map +0 -1
- package/lib/commonjs/global.d.js +0 -6
- package/lib/commonjs/global.d.js.map +0 -1
- package/lib/commonjs/globals.js +0 -6
- package/lib/commonjs/globals.js.map +0 -1
- package/lib/commonjs/handlers/FlingGestureHandler.js +0 -31
- package/lib/commonjs/handlers/FlingGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/ForceTouchGestureHandler.js +0 -46
- package/lib/commonjs/handlers/ForceTouchGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/GestureHandlerEventPayload.js +0 -6
- package/lib/commonjs/handlers/GestureHandlerEventPayload.js.map +0 -1
- package/lib/commonjs/handlers/LongPressGestureHandler.js +0 -33
- package/lib/commonjs/handlers/LongPressGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/NativeViewGestureHandler.js +0 -32
- package/lib/commonjs/handlers/NativeViewGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/PanGestureHandler.js +0 -112
- package/lib/commonjs/handlers/PanGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/PinchGestureHandler.js +0 -29
- package/lib/commonjs/handlers/PinchGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/PressabilityDebugView.js +0 -13
- package/lib/commonjs/handlers/PressabilityDebugView.js.map +0 -1
- package/lib/commonjs/handlers/PressabilityDebugView.web.js +0 -11
- package/lib/commonjs/handlers/PressabilityDebugView.web.js.map +0 -1
- package/lib/commonjs/handlers/RotationGestureHandler.js +0 -29
- package/lib/commonjs/handlers/RotationGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/TapGestureHandler.js +0 -33
- package/lib/commonjs/handlers/TapGestureHandler.js.map +0 -1
- package/lib/commonjs/handlers/createHandler.js +0 -334
- package/lib/commonjs/handlers/createHandler.js.map +0 -1
- package/lib/commonjs/handlers/createNativeWrapper.js +0 -78
- package/lib/commonjs/handlers/createNativeWrapper.js.map +0 -1
- package/lib/commonjs/handlers/customDirectEventTypes.js +0 -13
- package/lib/commonjs/handlers/customDirectEventTypes.js.map +0 -1
- package/lib/commonjs/handlers/customDirectEventTypes.web.js +0 -10
- package/lib/commonjs/handlers/customDirectEventTypes.web.js.map +0 -1
- package/lib/commonjs/handlers/gestureHandlerCommon.js +0 -27
- package/lib/commonjs/handlers/gestureHandlerCommon.js.map +0 -1
- package/lib/commonjs/handlers/gestureHandlerTypesCompat.js +0 -6
- package/lib/commonjs/handlers/gestureHandlerTypesCompat.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.js +0 -32
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.web.js +0 -41
- package/lib/commonjs/handlers/gestures/GestureDetector/Wrap.web.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/attachHandlers.js +0 -68
- package/lib/commonjs/handlers/gestures/GestureDetector/attachHandlers.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/dropHandlers.js +0 -20
- package/lib/commonjs/handlers/gestures/GestureDetector/dropHandlers.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/index.js +0 -122
- package/lib/commonjs/handlers/gestures/GestureDetector/index.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/needsToReattach.js +0 -22
- package/lib/commonjs/handlers/gestures/GestureDetector/needsToReattach.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/types.js +0 -6
- package/lib/commonjs/handlers/gestures/GestureDetector/types.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/updateHandlers.js +0 -67
- package/lib/commonjs/handlers/gestures/GestureDetector/updateHandlers.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/useAnimatedGesture.js +0 -143
- package/lib/commonjs/handlers/gestures/GestureDetector/useAnimatedGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/useDetectorUpdater.js +0 -47
- package/lib/commonjs/handlers/gestures/GestureDetector/useDetectorUpdater.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/useMountReactions.js +0 -41
- package/lib/commonjs/handlers/gestures/GestureDetector/useMountReactions.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/useViewRefHandler.js +0 -41
- package/lib/commonjs/handlers/gestures/GestureDetector/useViewRefHandler.js.map +0 -1
- package/lib/commonjs/handlers/gestures/GestureDetector/utils.js +0 -145
- package/lib/commonjs/handlers/gestures/GestureDetector/utils.js.map +0 -1
- package/lib/commonjs/handlers/gestures/eventReceiver.js +0 -106
- package/lib/commonjs/handlers/gestures/eventReceiver.js.map +0 -1
- package/lib/commonjs/handlers/gestures/flingGesture.js +0 -37
- package/lib/commonjs/handlers/gestures/flingGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/forceTouchGesture.js +0 -80
- package/lib/commonjs/handlers/gestures/forceTouchGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gesture.js +0 -344
- package/lib/commonjs/handlers/gestures/gesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureComposition.js +0 -90
- package/lib/commonjs/handlers/gestures/gestureComposition.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureObjects.js +0 -132
- package/lib/commonjs/handlers/gestures/gestureObjects.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureStateManager.js +0 -50
- package/lib/commonjs/handlers/gestures/gestureStateManager.js.map +0 -1
- package/lib/commonjs/handlers/gestures/gestureStateManager.web.js +0 -36
- package/lib/commonjs/handlers/gestures/gestureStateManager.web.js.map +0 -1
- package/lib/commonjs/handlers/gestures/hoverGesture.js +0 -57
- package/lib/commonjs/handlers/gestures/hoverGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/longPressGesture.js +0 -46
- package/lib/commonjs/handlers/gestures/longPressGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/manualGesture.js +0 -25
- package/lib/commonjs/handlers/gestures/manualGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/nativeGesture.js +0 -34
- package/lib/commonjs/handlers/gestures/nativeGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/panGesture.js +0 -197
- package/lib/commonjs/handlers/gestures/panGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/pinchGesture.js +0 -38
- package/lib/commonjs/handlers/gestures/pinchGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/reanimatedWrapper.js +0 -32
- package/lib/commonjs/handlers/gestures/reanimatedWrapper.js.map +0 -1
- package/lib/commonjs/handlers/gestures/rotationGesture.js +0 -38
- package/lib/commonjs/handlers/gestures/rotationGesture.js.map +0 -1
- package/lib/commonjs/handlers/gestures/tapGesture.js +0 -87
- package/lib/commonjs/handlers/gestures/tapGesture.js.map +0 -1
- package/lib/commonjs/handlers/getNextHandlerTag.js +0 -11
- package/lib/commonjs/handlers/getNextHandlerTag.js.map +0 -1
- package/lib/commonjs/handlers/handlersRegistry.js +0 -74
- package/lib/commonjs/handlers/handlersRegistry.js.map +0 -1
- package/lib/commonjs/handlers/utils.js +0 -79
- package/lib/commonjs/handlers/utils.js.map +0 -1
- package/lib/commonjs/index.js +0 -277
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/init.js +0 -11
- package/lib/commonjs/init.js.map +0 -1
- package/lib/commonjs/jestUtils/index.js +0 -19
- package/lib/commonjs/jestUtils/index.js.map +0 -1
- package/lib/commonjs/jestUtils/jestUtils.js +0 -350
- package/lib/commonjs/jestUtils/jestUtils.js.map +0 -1
- package/lib/commonjs/mocks/GestureButtons.js +0 -23
- package/lib/commonjs/mocks/GestureButtons.js.map +0 -1
- package/lib/commonjs/mocks/Pressable.js +0 -13
- package/lib/commonjs/mocks/Pressable.js.map +0 -1
- package/lib/commonjs/mocks/gestureComponents.js +0 -19
- package/lib/commonjs/mocks/gestureComponents.js.map +0 -1
- package/lib/commonjs/mocks/hostDetector.js +0 -10
- package/lib/commonjs/mocks/hostDetector.js.map +0 -1
- package/lib/commonjs/mocks/module.js +0 -30
- package/lib/commonjs/mocks/module.js.map +0 -1
- package/lib/commonjs/mountRegistry.js +0 -37
- package/lib/commonjs/mountRegistry.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js +0 -9
- package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +0 -1
- package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.ts +0 -27
- package/lib/commonjs/specs/RNGestureHandlerButtonWrapperNativeComponent.ts +0 -11
- package/lib/commonjs/specs/RNGestureHandlerDetectorNativeComponent.ts +0 -74
- package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.ts +0 -15
- package/lib/commonjs/typeUtils.js +0 -2
- package/lib/commonjs/typeUtils.js.map +0 -1
- package/lib/commonjs/useIsomorphicLayoutEffect.js +0 -20
- package/lib/commonjs/useIsomorphicLayoutEffect.js.map +0 -1
- package/lib/commonjs/utils.js +0 -83
- package/lib/commonjs/utils.js.map +0 -1
- package/lib/commonjs/v3/NativeProxy.js +0 -48
- package/lib/commonjs/v3/NativeProxy.js.map +0 -1
- package/lib/commonjs/v3/NativeProxy.web.js +0 -29
- package/lib/commonjs/v3/NativeProxy.web.js.map +0 -1
- package/lib/commonjs/v3/components/GestureButtons.js +0 -153
- package/lib/commonjs/v3/components/GestureButtons.js.map +0 -1
- package/lib/commonjs/v3/components/GestureButtonsProps.js +0 -6
- package/lib/commonjs/v3/components/GestureButtonsProps.js.map +0 -1
- package/lib/commonjs/v3/components/GestureComponents.js +0 -124
- package/lib/commonjs/v3/components/GestureComponents.js.map +0 -1
- package/lib/commonjs/v3/components/GestureComponents.web.js +0 -39
- package/lib/commonjs/v3/components/GestureComponents.web.js.map +0 -1
- package/lib/commonjs/v3/components/Pressable.js +0 -283
- package/lib/commonjs/v3/components/Pressable.js.map +0 -1
- package/lib/commonjs/v3/components/index.js +0 -76
- package/lib/commonjs/v3/components/index.js.map +0 -1
- package/lib/commonjs/v3/createNativeWrapper.js +0 -70
- package/lib/commonjs/v3/createNativeWrapper.js.map +0 -1
- package/lib/commonjs/v3/detectors/GestureDetector.js +0 -24
- package/lib/commonjs/v3/detectors/GestureDetector.js.map +0 -1
- package/lib/commonjs/v3/detectors/HostGestureDetector.js +0 -11
- package/lib/commonjs/v3/detectors/HostGestureDetector.js.map +0 -1
- package/lib/commonjs/v3/detectors/HostGestureDetector.web.js +0 -113
- package/lib/commonjs/v3/detectors/HostGestureDetector.web.js.map +0 -1
- package/lib/commonjs/v3/detectors/NativeDetector.js +0 -76
- package/lib/commonjs/v3/detectors/NativeDetector.js.map +0 -1
- package/lib/commonjs/v3/detectors/ReanimatedNativeDetector.js +0 -74
- package/lib/commonjs/v3/detectors/ReanimatedNativeDetector.js.map +0 -1
- package/lib/commonjs/v3/detectors/ReanimatedNativeDetector.web.js +0 -11
- package/lib/commonjs/v3/detectors/ReanimatedNativeDetector.web.js.map +0 -1
- package/lib/commonjs/v3/detectors/VirtualDetector/InterceptingGestureDetector.js +0 -167
- package/lib/commonjs/v3/detectors/VirtualDetector/InterceptingGestureDetector.js.map +0 -1
- package/lib/commonjs/v3/detectors/VirtualDetector/VirtualDetector.js +0 -74
- package/lib/commonjs/v3/detectors/VirtualDetector/VirtualDetector.js.map +0 -1
- package/lib/commonjs/v3/detectors/VirtualDetector/useInterceptingDetectorContext.js +0 -19
- package/lib/commonjs/v3/detectors/VirtualDetector/useInterceptingDetectorContext.js.map +0 -1
- package/lib/commonjs/v3/detectors/common.js +0 -22
- package/lib/commonjs/v3/detectors/common.js.map +0 -1
- package/lib/commonjs/v3/detectors/index.js +0 -34
- package/lib/commonjs/v3/detectors/index.js.map +0 -1
- package/lib/commonjs/v3/detectors/useEnsureGestureHandlerRootView.js +0 -17
- package/lib/commonjs/v3/detectors/useEnsureGestureHandlerRootView.js.map +0 -1
- package/lib/commonjs/v3/detectors/utils.js +0 -130
- package/lib/commonjs/v3/detectors/utils.js.map +0 -1
- package/lib/commonjs/v3/gestureStateManager.js +0 -42
- package/lib/commonjs/v3/gestureStateManager.js.map +0 -1
- package/lib/commonjs/v3/gestureStateManager.web.js +0 -54
- package/lib/commonjs/v3/gestureStateManager.web.js.map +0 -1
- package/lib/commonjs/v3/hooks/callbacks/eventHandler.js +0 -80
- package/lib/commonjs/v3/hooks/callbacks/eventHandler.js.map +0 -1
- package/lib/commonjs/v3/hooks/callbacks/stateChangeHandler.js +0 -50
- package/lib/commonjs/v3/hooks/callbacks/stateChangeHandler.js.map +0 -1
- package/lib/commonjs/v3/hooks/callbacks/touchEventHandler.js +0 -22
- package/lib/commonjs/v3/hooks/callbacks/touchEventHandler.js.map +0 -1
- package/lib/commonjs/v3/hooks/callbacks/updateHandler.js +0 -30
- package/lib/commonjs/v3/hooks/callbacks/updateHandler.js.map +0 -1
- package/lib/commonjs/v3/hooks/callbacks/useGestureEventHandler.js +0 -21
- package/lib/commonjs/v3/hooks/callbacks/useGestureEventHandler.js.map +0 -1
- package/lib/commonjs/v3/hooks/callbacks/useReanimatedEventHandler.js +0 -39
- package/lib/commonjs/v3/hooks/callbacks/useReanimatedEventHandler.js.map +0 -1
- package/lib/commonjs/v3/hooks/composition/index.js +0 -27
- package/lib/commonjs/v3/hooks/composition/index.js.map +0 -1
- package/lib/commonjs/v3/hooks/composition/useCompetingGestures.js +0 -12
- package/lib/commonjs/v3/hooks/composition/useCompetingGestures.js.map +0 -1
- package/lib/commonjs/v3/hooks/composition/useComposedGesture.js +0 -52
- package/lib/commonjs/v3/hooks/composition/useComposedGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/composition/useExclusiveGestures.js +0 -14
- package/lib/commonjs/v3/hooks/composition/useExclusiveGestures.js.map +0 -1
- package/lib/commonjs/v3/hooks/composition/useSimultaneousGestures.js +0 -13
- package/lib/commonjs/v3/hooks/composition/useSimultaneousGestures.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/fling/FlingProperties.js +0 -8
- package/lib/commonjs/v3/hooks/gestures/fling/FlingProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/fling/useFlingGesture.js +0 -14
- package/lib/commonjs/v3/hooks/gestures/fling/useFlingGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/hover/HoverProperties.js +0 -8
- package/lib/commonjs/v3/hooks/gestures/hover/HoverProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/hover/useHoverGesture.js +0 -27
- package/lib/commonjs/v3/hooks/gestures/hover/useHoverGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/index.js +0 -69
- package/lib/commonjs/v3/hooks/gestures/index.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/longPress/LongPressProperties.js +0 -8
- package/lib/commonjs/v3/hooks/gestures/longPress/LongPressProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/longPress/useLongPressGesture.js +0 -21
- package/lib/commonjs/v3/hooks/gestures/longPress/useLongPressGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/manual/ManualProperties.js +0 -2
- package/lib/commonjs/v3/hooks/gestures/manual/ManualProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/manual/useManualGesture.js +0 -14
- package/lib/commonjs/v3/hooks/gestures/manual/useManualGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/native/NativeProperties.js +0 -8
- package/lib/commonjs/v3/hooks/gestures/native/NativeProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/native/useNativeGesture.js +0 -14
- package/lib/commonjs/v3/hooks/gestures/native/useNativeGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/pan/PanProperties.js +0 -8
- package/lib/commonjs/v3/hooks/gestures/pan/PanProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/pan/usePanGesture.js +0 -79
- package/lib/commonjs/v3/hooks/gestures/pan/usePanGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/pinch/PinchProperties.js +0 -2
- package/lib/commonjs/v3/hooks/gestures/pinch/PinchProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/pinch/usePinchGesture.js +0 -27
- package/lib/commonjs/v3/hooks/gestures/pinch/usePinchGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/rotation/RotationProperties.js +0 -2
- package/lib/commonjs/v3/hooks/gestures/rotation/RotationProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/rotation/useRotationGesture.js +0 -26
- package/lib/commonjs/v3/hooks/gestures/rotation/useRotationGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/tap/TapProperties.js +0 -8
- package/lib/commonjs/v3/hooks/gestures/tap/TapProperties.js.map +0 -1
- package/lib/commonjs/v3/hooks/gestures/tap/useTapGesture.js +0 -15
- package/lib/commonjs/v3/hooks/gestures/tap/useTapGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/index.js +0 -28
- package/lib/commonjs/v3/hooks/index.js.map +0 -1
- package/lib/commonjs/v3/hooks/useGesture.js +0 -84
- package/lib/commonjs/v3/hooks/useGesture.js.map +0 -1
- package/lib/commonjs/v3/hooks/useGestureCallbacks.js +0 -53
- package/lib/commonjs/v3/hooks/useGestureCallbacks.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/configUtils.js +0 -73
- package/lib/commonjs/v3/hooks/utils/configUtils.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/eventHandlersUtils.js +0 -96
- package/lib/commonjs/v3/hooks/utils/eventHandlersUtils.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/eventUtils.js +0 -73
- package/lib/commonjs/v3/hooks/utils/eventUtils.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/index.js +0 -168
- package/lib/commonjs/v3/hooks/utils/index.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/propsWhiteList.js +0 -31
- package/lib/commonjs/v3/hooks/utils/propsWhiteList.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/reanimatedUtils.js +0 -85
- package/lib/commonjs/v3/hooks/utils/reanimatedUtils.js.map +0 -1
- package/lib/commonjs/v3/hooks/utils/relationUtils.js +0 -51
- package/lib/commonjs/v3/hooks/utils/relationUtils.js.map +0 -1
- package/lib/commonjs/v3/index.js +0 -180
- package/lib/commonjs/v3/index.js.map +0 -1
- package/lib/commonjs/v3/types/ConfigTypes.js +0 -6
- package/lib/commonjs/v3/types/ConfigTypes.js.map +0 -1
- package/lib/commonjs/v3/types/DetectorTypes.js +0 -6
- package/lib/commonjs/v3/types/DetectorTypes.js.map +0 -1
- package/lib/commonjs/v3/types/EventTypes.js +0 -6
- package/lib/commonjs/v3/types/EventTypes.js.map +0 -1
- package/lib/commonjs/v3/types/GestureTypes.js +0 -28
- package/lib/commonjs/v3/types/GestureTypes.js.map +0 -1
- package/lib/commonjs/v3/types/NativeWrapperType.js +0 -6
- package/lib/commonjs/v3/types/NativeWrapperType.js.map +0 -1
- package/lib/commonjs/v3/types/ReanimatedTypes.js +0 -2
- package/lib/commonjs/v3/types/ReanimatedTypes.js.map +0 -1
- package/lib/commonjs/v3/types/UtilityTypes.js +0 -6
- package/lib/commonjs/v3/types/UtilityTypes.js.map +0 -1
- package/lib/commonjs/v3/types/index.js +0 -19
- package/lib/commonjs/v3/types/index.js.map +0 -1
- package/lib/commonjs/web/Gestures.js +0 -30
- package/lib/commonjs/web/Gestures.js.map +0 -1
- package/lib/commonjs/web/constants.js +0 -9
- package/lib/commonjs/web/constants.js.map +0 -1
- package/lib/commonjs/web/detectors/RotationGestureDetector.js +0 -124
- package/lib/commonjs/web/detectors/RotationGestureDetector.js.map +0 -1
- package/lib/commonjs/web/detectors/ScaleGestureDetector.js +0 -111
- package/lib/commonjs/web/detectors/ScaleGestureDetector.js.map +0 -1
- package/lib/commonjs/web/handlers/FlingGestureHandler.js +0 -141
- package/lib/commonjs/web/handlers/FlingGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/GestureHandler.js +0 -857
- package/lib/commonjs/web/handlers/GestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/HoverGestureHandler.js +0 -50
- package/lib/commonjs/web/handlers/HoverGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/IGestureHandler.js +0 -2
- package/lib/commonjs/web/handlers/IGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/LongPressGestureHandler.js +0 -144
- package/lib/commonjs/web/handlers/LongPressGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/ManualGestureHandler.js +0 -42
- package/lib/commonjs/web/handlers/ManualGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/NativeViewGestureHandler.js +0 -147
- package/lib/commonjs/web/handlers/NativeViewGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/PanGestureHandler.js +0 -386
- package/lib/commonjs/web/handlers/PanGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/PinchGestureHandler.js +0 -126
- package/lib/commonjs/web/handlers/PinchGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/RotationGestureHandler.js +0 -133
- package/lib/commonjs/web/handlers/RotationGestureHandler.js.map +0 -1
- package/lib/commonjs/web/handlers/TapGestureHandler.js +0 -213
- package/lib/commonjs/web/handlers/TapGestureHandler.js.map +0 -1
- package/lib/commonjs/web/interfaces.js +0 -25
- package/lib/commonjs/web/interfaces.js.map +0 -1
- package/lib/commonjs/web/tools/CircularBuffer.js +0 -40
- package/lib/commonjs/web/tools/CircularBuffer.js.map +0 -1
- package/lib/commonjs/web/tools/EventManager.js +0 -102
- package/lib/commonjs/web/tools/EventManager.js.map +0 -1
- package/lib/commonjs/web/tools/GestureHandlerDelegate.js +0 -2
- package/lib/commonjs/web/tools/GestureHandlerDelegate.js.map +0 -1
- package/lib/commonjs/web/tools/GestureHandlerOrchestrator.js +0 -269
- package/lib/commonjs/web/tools/GestureHandlerOrchestrator.js.map +0 -1
- package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js +0 -219
- package/lib/commonjs/web/tools/GestureHandlerWebDelegate.js.map +0 -1
- package/lib/commonjs/web/tools/InteractionManager.js +0 -83
- package/lib/commonjs/web/tools/InteractionManager.js.map +0 -1
- package/lib/commonjs/web/tools/KeyboardEventManager.js +0 -108
- package/lib/commonjs/web/tools/KeyboardEventManager.js.map +0 -1
- package/lib/commonjs/web/tools/LeastSquareSolver.js +0 -159
- package/lib/commonjs/web/tools/LeastSquareSolver.js.map +0 -1
- package/lib/commonjs/web/tools/NodeManager.js +0 -45
- package/lib/commonjs/web/tools/NodeManager.js.map +0 -1
- package/lib/commonjs/web/tools/PointerEventManager.js +0 -186
- package/lib/commonjs/web/tools/PointerEventManager.js.map +0 -1
- package/lib/commonjs/web/tools/PointerTracker.js +0 -192
- package/lib/commonjs/web/tools/PointerTracker.js.map +0 -1
- package/lib/commonjs/web/tools/Vector.js +0 -37
- package/lib/commonjs/web/tools/Vector.js.map +0 -1
- package/lib/commonjs/web/tools/VelocityTracker.js +0 -85
- package/lib/commonjs/web/tools/VelocityTracker.js.map +0 -1
- package/lib/commonjs/web/tools/WheelEventManager.js +0 -55
- package/lib/commonjs/web/tools/WheelEventManager.js.map +0 -1
- package/lib/commonjs/web/utils.js +0 -235
- package/lib/commonjs/web/utils.js.map +0 -1
- package/lib/module/specs/RNGestureHandlerButtonWrapperNativeComponent.ts +0 -11
- package/lib/module/v3/hooks/callbacks/stateChangeHandler.js +0 -46
- package/lib/module/v3/hooks/callbacks/stateChangeHandler.js.map +0 -1
- package/lib/module/v3/hooks/callbacks/touchEventHandler.js +0 -18
- package/lib/module/v3/hooks/callbacks/touchEventHandler.js.map +0 -1
- package/lib/module/v3/hooks/callbacks/updateHandler.js +0 -26
- package/lib/module/v3/hooks/callbacks/updateHandler.js.map +0 -1
- package/lib/module/v3/hooks/gestures/fling/FlingProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/longPress/LongPressProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/manual/ManualProperties.js +0 -2
- package/lib/module/v3/hooks/gestures/manual/ManualProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/native/NativeProperties.js +0 -4
- package/lib/module/v3/hooks/gestures/native/NativeProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/pan/PanProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/pinch/PinchProperties.js +0 -2
- package/lib/module/v3/hooks/gestures/pinch/PinchProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/rotation/RotationProperties.js +0 -2
- package/lib/module/v3/hooks/gestures/rotation/RotationProperties.js.map +0 -1
- package/lib/module/v3/hooks/gestures/tap/TapProperties.js.map +0 -1
- package/lib/typescript/specs/RNGestureHandlerButtonWrapperNativeComponent.d.ts +0 -6
- package/lib/typescript/specs/RNGestureHandlerButtonWrapperNativeComponent.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/callbacks/stateChangeHandler.d.ts +0 -4
- package/lib/typescript/v3/hooks/callbacks/stateChangeHandler.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/callbacks/touchEventHandler.d.ts +0 -3
- package/lib/typescript/v3/hooks/callbacks/touchEventHandler.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/callbacks/updateHandler.d.ts +0 -4
- package/lib/typescript/v3/hooks/callbacks/updateHandler.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/fling/FlingProperties.d.ts +0 -23
- package/lib/typescript/v3/hooks/gestures/fling/FlingProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/hover/HoverProperties.d.ts +0 -18
- package/lib/typescript/v3/hooks/gestures/hover/HoverProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/longPress/LongPressProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/manual/ManualProperties.d.ts +0 -2
- package/lib/typescript/v3/hooks/gestures/manual/ManualProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/native/NativeProperties.d.ts +0 -16
- package/lib/typescript/v3/hooks/gestures/native/NativeProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/pan/PanProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/pinch/PinchProperties.d.ts +0 -2
- package/lib/typescript/v3/hooks/gestures/pinch/PinchProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/rotation/RotationProperties.d.ts +0 -2
- package/lib/typescript/v3/hooks/gestures/rotation/RotationProperties.d.ts.map +0 -1
- package/lib/typescript/v3/hooks/gestures/tap/TapProperties.d.ts.map +0 -1
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/RNGestureHandlerButtonWrapperComponentDescriptor.h +0 -32
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/RNGestureHandlerButtonWrapperShadowNode.cpp +0 -102
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/RNGestureHandlerButtonWrapperShadowNode.h +0 -56
- package/shared/shadowNodes/react/renderer/components/rngesturehandler_codegen/RNGestureHandlerButtonWrapperState.h +0 -32
- package/src/specs/RNGestureHandlerButtonWrapperNativeComponent.ts +0 -11
- package/src/v3/hooks/callbacks/stateChangeHandler.ts +0 -70
- package/src/v3/hooks/callbacks/touchEventHandler.ts +0 -32
- package/src/v3/hooks/callbacks/updateHandler.ts +0 -53
- package/src/v3/hooks/gestures/fling/FlingProperties.ts +0 -26
- package/src/v3/hooks/gestures/hover/HoverProperties.ts +0 -22
- package/src/v3/hooks/gestures/manual/ManualProperties.ts +0 -1
- package/src/v3/hooks/gestures/native/NativeProperties.ts +0 -19
- package/src/v3/hooks/gestures/pinch/PinchProperties.ts +0 -1
- package/src/v3/hooks/gestures/rotation/RotationProperties.ts +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { transformIntoHandlerTags } from '../../utils';
|
|
4
|
-
import { MountRegistry } from '../../../mountRegistry';
|
|
5
3
|
import { useEffect } from 'react';
|
|
4
|
+
import { MountRegistry } from '../../../mountRegistry';
|
|
5
|
+
import { transformIntoHandlerTags } from '../../utils';
|
|
6
6
|
function shouldUpdateDetector(relation, gesture) {
|
|
7
7
|
if (relation === undefined) {
|
|
8
8
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["useEffect","MountRegistry","transformIntoHandlerTags","shouldUpdateDetector","relation","gesture","undefined","tag","handlerTag","useMountReactions","updateDetector","state","addMountListener","attachedGesture","attachedGestures","blocksHandlers","config","requireToFail","simultaneousWith"],"sourceRoot":"../../../../../src","sources":["handlers/gestures/GestureDetector/useMountReactions.ts"],"mappings":";;AAAA,SAASA,SAAS,QAAQ,OAAO;AAEjC,SAASC,aAAa,QAAQ,wBAAwB;AACtD,SAASC,wBAAwB,QAAQ,aAAa;AAItD,SAASC,oBAAoBA,CAC3BC,QAAkC,EAClCC,OAA+B,EAC/B;EACA,IAAID,QAAQ,KAAKE,SAAS,EAAE;IAC1B,OAAO,KAAK;EACd;EAEA,KAAK,MAAMC,GAAG,IAAIL,wBAAwB,CAACE,QAAQ,CAAC,EAAE;IACpD,IAAIG,GAAG,KAAKF,OAAO,CAACG,UAAU,EAAE;MAC9B,OAAO,IAAI;IACb;EACF;EAEA,OAAO,KAAK;AACd;AAEA,OAAO,SAASC,iBAAiBA,CAC/BC,cAA0B,EAC1BC,KAA2B,EAC3B;EACAX,SAAS,CAAC,MAAM;IACd,OAAOC,aAAa,CAACW,gBAAgB,CAAEP,OAAO,IAAK;MACjD;MACA;MACA;MACA,KAAK,MAAMQ,eAAe,IAAIF,KAAK,CAACG,gBAAgB,EAAE;QACpD,MAAMC,cAAc,GAAGF,eAAe,CAACG,MAAM,CAACD,cAAc;QAC5D,MAAME,aAAa,GAAGJ,eAAe,CAACG,MAAM,CAACC,aAAa;QAC1D,MAAMC,gBAAgB,GAAGL,eAAe,CAACG,MAAM,CAACE,gBAAgB;QAEhE,IACEf,oBAAoB,CAACY,cAAc,EAAEV,OAAO,CAAC,IAC7CF,oBAAoB,CAACc,aAAa,EAAEZ,OAAO,CAAC,IAC5CF,oBAAoB,CAACe,gBAAgB,EAAEb,OAAO,CAAC,EAC/C;UACAK,cAAc,CAAC,CAAC;;UAEhB;UACA;QACF;MACF;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAACA,cAAc,EAAEC,KAAK,CAAC,CAAC;AAC7B","ignoreList":[]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { tagMessage } from '../../../utils';
|
|
4
|
-
import { getShadowNodeFromRef } from '../../../getShadowNodeFromRef';
|
|
5
3
|
import { useCallback } from 'react';
|
|
6
4
|
import findNodeHandle from '../../../findNodeHandle';
|
|
5
|
+
import { getShadowNodeFromRef } from '../../../getShadowNodeFromRef';
|
|
6
|
+
import { tagMessage } from '../../../utils';
|
|
7
7
|
// Ref handler for the Wrap component attached under the GestureDetector.
|
|
8
8
|
// It's responsible for setting the viewRef on the state and triggering the reattaching of handlers
|
|
9
9
|
// if the view has changed.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["useCallback","findNodeHandle","getShadowNodeFromRef","tagMessage","useViewRefHandler","state","updateAttachedGestures","refHandler","ref","viewRef","previousViewTag","firstRender","__DEV__","global","_isViewFlatteningDisabled","node","console","error"],"sourceRoot":"../../../../../src","sources":["handlers/gestures/GestureDetector/useViewRefHandler.ts"],"mappings":";;AACA,SAASA,WAAW,QAAQ,OAAO;AAEnC,OAAOC,cAAc,MAAM,yBAAyB;AACpD,SAASC,oBAAoB,QAAQ,+BAA+B;AACpE,SAASC,UAAU,QAAQ,gBAAgB;AAO3C;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAC/BC,KAA2B,EAC3BC,sBAA4D,EAC5D;EACA,MAAMC,UAAU,GAAGP,WAAW,CAC3BQ,GAA2B,IAAK;IAC/B,IAAIA,GAAG,KAAK,IAAI,EAAE;MAChB;IACF;IAEAH,KAAK,CAACI,OAAO,GAAGD,GAAG;;IAEnB;IACA,IAAIH,KAAK,CAACK,eAAe,KAAK,CAAC,CAAC,EAAE;MAChCL,KAAK,CAACK,eAAe,GAAGT,cAAc,CAACI,KAAK,CAACI,OAAO,CAAW;IACjE;;IAEA;IACA;IACA,IAAI,CAACJ,KAAK,CAACM,WAAW,EAAE;MACtBL,sBAAsB,CAAC,IAAI,CAAC;IAC9B;IAEA,IAAIM,OAAO,IAAIC,MAAM,CAACC,yBAAyB,EAAE;MAC/C,MAAMC,IAAI,GAAGb,oBAAoB,CAACM,GAAG,CAAC;MACtC,IAAIK,MAAM,CAACC,yBAAyB,CAACC,IAAI,CAAC,KAAK,KAAK,EAAE;QACpDC,OAAO,CAACC,KAAK,CACXd,UAAU,CACR,oEAAoE,GAClE,kGACJ,CACF,CAAC;MACH;IACF;EACF,CAAC,EACD,CAACE,KAAK,EAAEC,sBAAsB,CAChC,CAAC;EAED,OAAOC,UAAU;AACnB","ignoreList":[]}
|
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { useCallback, useRef, useState } from 'react';
|
|
3
4
|
import { Platform } from 'react-native';
|
|
5
|
+
import { RNRenderer } from '../../../RNRenderer';
|
|
4
6
|
import { isTestEnv, tagMessage } from '../../../utils';
|
|
5
|
-
import { BaseGesture } from '../gesture';
|
|
6
7
|
import { flingGestureHandlerProps } from '../../FlingGestureHandler';
|
|
7
8
|
import { forceTouchGestureHandlerProps } from '../../ForceTouchGestureHandler';
|
|
9
|
+
import { baseGestureHandlerWithDetectorProps } from '../../gestureHandlerCommon';
|
|
8
10
|
import { longPressGestureHandlerProps } from '../../LongPressGestureHandler';
|
|
9
|
-
import {
|
|
11
|
+
import { nativeViewGestureHandlerProps } from '../../NativeViewGestureHandler';
|
|
12
|
+
import { panGestureHandlerCustomNativeProps, panGestureHandlerProps } from '../../PanGestureHandler';
|
|
10
13
|
import { tapGestureHandlerProps } from '../../TapGestureHandler';
|
|
14
|
+
import { onGestureHandlerEvent } from '../eventReceiver';
|
|
15
|
+
import { BaseGesture } from '../gesture';
|
|
11
16
|
import { hoverGestureHandlerProps } from '../hoverGesture';
|
|
12
|
-
import { nativeViewGestureHandlerProps } from '../../NativeViewGestureHandler';
|
|
13
|
-
import { baseGestureHandlerWithDetectorProps } from '../../gestureHandlerCommon';
|
|
14
|
-
import { RNRenderer } from '../../../RNRenderer';
|
|
15
|
-
import { useCallback, useRef, useState } from 'react';
|
|
16
17
|
import { Reanimated } from '../reanimatedWrapper';
|
|
17
|
-
import { onGestureHandlerEvent } from '../eventReceiver';
|
|
18
18
|
export const ALLOWED_PROPS = [...baseGestureHandlerWithDetectorProps, ...tapGestureHandlerProps, ...panGestureHandlerProps, ...panGestureHandlerCustomNativeProps, ...longPressGestureHandlerProps, ...forceTouchGestureHandlerProps, ...flingGestureHandlerProps, ...hoverGestureHandlerProps, ...nativeViewGestureHandlerProps];
|
|
19
|
+
|
|
20
|
+
// In some environments (e.g. `Next.js`) Reanimated Babel plugin might not be used.
|
|
21
|
+
// In that case we would wrongly suggest to add `runOnJS` to gesture configuration, even if the user doesn't use worklets at all.
|
|
22
|
+
// To prevent this, we check whether the plugin is enabled by defining a worklet and checking if the `__workletHash` property is available.
|
|
23
|
+
function emptyWorklet() {
|
|
24
|
+
'worklet';
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// @ts-expect-error if `emptyWorklet` is a worklet, `__workletHash` will be available, if not then the check will return false.
|
|
28
|
+
const wasBabelPluginEnabled = emptyWorklet.__workletHash !== undefined;
|
|
19
29
|
function convertToHandlerTag(ref) {
|
|
20
30
|
if (typeof ref === 'number') {
|
|
21
31
|
return ref;
|
|
@@ -64,7 +74,7 @@ export function checkGestureCallbacksForWorklets(gesture) {
|
|
|
64
74
|
const areAllNotWorklets = !areSomeWorklets && areSomeNotWorklets;
|
|
65
75
|
// If none of the callbacks are worklets and the gesture is not explicitly marked with
|
|
66
76
|
// `.runOnJS(true)` show a warning
|
|
67
|
-
if (areAllNotWorklets && !isTestEnv()) {
|
|
77
|
+
if (areAllNotWorklets && wasBabelPluginEnabled && !isTestEnv()) {
|
|
68
78
|
console.warn(tagMessage(`None of the callbacks in the gesture are worklets. If you wish to run them on the JS thread use '.runOnJS(true)' modifier on the gesture to make this explicit. Otherwise, mark the callbacks as 'worklet' to run them on the UI thread.`));
|
|
69
79
|
}
|
|
70
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","
|
|
1
|
+
{"version":3,"names":["useCallback","useRef","useState","Platform","RNRenderer","isTestEnv","tagMessage","flingGestureHandlerProps","forceTouchGestureHandlerProps","baseGestureHandlerWithDetectorProps","longPressGestureHandlerProps","nativeViewGestureHandlerProps","panGestureHandlerCustomNativeProps","panGestureHandlerProps","tapGestureHandlerProps","onGestureHandlerEvent","BaseGesture","hoverGestureHandlerProps","Reanimated","ALLOWED_PROPS","emptyWorklet","wasBabelPluginEnabled","__workletHash","undefined","convertToHandlerTag","ref","handlerTag","current","extractValidHandlerTags","interactionGroup","Array","from","Set","map","filter","tag","extractGestureRelations","gesture","config","requireToFail","simultaneousWith","blocksHandlers","waitFor","simultaneousHandlers","checkGestureCallbacksForWorklets","__DEV__","runOnJS","areSomeNotWorklets","handlers","isWorklet","includes","areSomeWorklets","console","error","areAllNotWorklets","warn","validateDetectorChildren","OS","wrapType","_reactInternals","elementType","instance","findHostInstance_DEPRECATED","_internalFiberInstanceHandleDEV","sibling","Error","return","useForceRender","renderState","setRenderState","forceRender","useWebEventHandlers","e","nativeEvent","onGestureHandlerStateChange","onGestureHandlerTouchEvent"],"sourceRoot":"../../../../../src","sources":["handlers/gestures/GestureDetector/utils.ts"],"mappings":";;AAAA,SAASA,WAAW,EA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CzD,qBAAqB,CAACyD,CAAC,CAACC,WAAwC,CAAC;IACnE,CAAC;IACDC,2BAA2B,EAAGF,CAAc,IAAK;MAC/CzD,qBAAqB,CAACyD,CAAC,CAACC,WAAwC,CAAC;IACnE,CAAC;IACDE,0BAA0B,EAAEA,CAAA,KAAM;MAChC;IAAA;EAEJ,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DeviceEventEmitter","State","TouchEventType","findHandler","findOldGestureHandler","GestureStateManager","gestureHandlerEventSubscription","gestureHandlerStateChangeEventSubscription","gestureStateManagers","Map","lastUpdateEvent","isStateChangeEvent","event","oldState","isTouchEvent","eventType","onGestureHandlerEvent","handler","handlerTag","UNDETERMINED","state","BEGAN","handlers","onBegin","ACTIVE","onStart","END","onEnd","onFinalize","undefined","FAILED","CANCELLED","delete","has","set","create","manager","get","TOUCHES_DOWN","onTouchesDown","TOUCHES_MOVE","onTouchesMove","TOUCHES_UP","onTouchesUp","TOUCHES_CANCEL","onTouchesCancelled","onUpdate","onChange","changeEventCalculator","oldHandler","nativeEvent","onGestureStateChange","onGestureEvent","startListening","stopListening","addListener","remove"],"sourceRoot":"../../../../src","sources":["handlers/gestures/eventReceiver.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["DeviceEventEmitter","State","TouchEventType","findHandler","findOldGestureHandler","GestureStateManager","gestureHandlerEventSubscription","gestureHandlerStateChangeEventSubscription","gestureStateManagers","Map","lastUpdateEvent","isStateChangeEvent","event","oldState","isTouchEvent","eventType","onGestureHandlerEvent","handler","handlerTag","UNDETERMINED","state","BEGAN","handlers","onBegin","ACTIVE","onStart","END","onEnd","onFinalize","undefined","FAILED","CANCELLED","delete","has","set","create","manager","get","TOUCHES_DOWN","onTouchesDown","TOUCHES_MOVE","onTouchesMove","TOUCHES_UP","onTouchesUp","TOUCHES_CANCEL","onTouchesCancelled","onUpdate","onChange","changeEventCalculator","oldHandler","nativeEvent","onGestureStateChange","onGestureEvent","startListening","stopListening","addListener","remove"],"sourceRoot":"../../../../src","sources":["handlers/gestures/eventReceiver.ts"],"mappings":";;AACA,SAASA,kBAAkB,QAAQ,cAAc;AAEjD,SAASC,KAAK,QAAQ,aAAa;AACnC,SAASC,cAAc,QAAQ,sBAAsB;AAMrD,SAASC,WAAW,EAAEC,qBAAqB,QAAQ,qBAAqB;AAGxE,SAASC,mBAAmB,QAAQ,uBAAuB;AAE3D,IAAIC,+BAA2D,GAAG,IAAI;AACtE,IAAIC,0CAAsE,GACxE,IAAI;AAEN,MAAMC,oBAA0D,GAAG,IAAIC,GAAG,CAGxE,CAAC;AAEH,MAAMC,eAAmD,GAAG,EAAE;AAE9D,SAASC,kBAAkBA,CACzBC,KAAuE,EACrC;EAClC;EACA,OAAOA,KAAK,CAACC,QAAQ,IAAI,IAAI;AAC/B;AAEA,SAASC,YAAYA,CACnBF,KAAuE,EAC3C;EAC5B,OAAOA,KAAK,CAACG,SAAS,IAAI,IAAI;AAChC;AAEA,OAAO,SAASC,qBAAqBA,CACnCJ,KAAuE,EACvE;EACA,MAAMK,OAAO,GAAGd,WAAW,CAACS,KAAK,CAACM,UAAU,CAE3C;EAED,IAAID,OAAO,EAAE;IACX,IAAIN,kBAAkB,CAACC,KAAK,CAAC,EAAE;MAC7B,IACEA,KAAK,CAACC,QAAQ,KAAKZ,KAAK,CAACkB,YAAY,IACrCP,KAAK,CAACQ,KAAK,KAAKnB,KAAK,CAACoB,KAAK,EAC3B;QACAJ,OAAO,CAACK,QAAQ,CAACC,OAAO,GAAGX,KAAK,CAAC;MACnC,CAAC,MAAM,IACL,CAACA,KAAK,CAACC,QAAQ,KAAKZ,KAAK,CAACoB,KAAK,IAC7BT,KAAK,CAACC,QAAQ,KAAKZ,KAAK,CAACkB,YAAY,KACvCP,KAAK,CAACQ,KAAK,KAAKnB,KAAK,CAACuB,MAAM,EAC5B;QACAP,OAAO,CAACK,QAAQ,CAACG,OAAO,GAAGb,KAAK,CAAC;QACjCF,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W,EAAEtC;MAAM,CAAC;MAC1C,IAAID,kBAAkB,CAACC,KAAK,CAAC,EAAE;QAC7BqC,UAAU,CAACE,oBAAoB,CAACD,WAAW,CAAC;MAC9C,CAAC,MAAM;QACLD,UAAU,CAACG,cAAc,CAACF,WAAW,CAAC;MACxC;MACA;IACF;EACF;AACF;AAEA,OAAO,SAASG,cAAcA,CAAA,EAAG;EAC/BC,aAAa,CAAC,CAAC;EAEfhD,+BAA+B,GAAGN,kBAAkB,CAACuD,WAAW,CAC9D,uBAAuB,EACvBvC,qBACF,CAAC;EAEDT,0CAA0C,GAAGP,kBAAkB,CAACuD,WAAW,CACzE,6BAA6B,EAC7BvC,qBACF,CAAC;AACH;AAEA,OAAO,SAASsC,aAAaA,CAAA,EAAG;EAC9B,IAAIhD,+BAA+B,EAAE;IACnCA,+BAA+B,CAACkD,MAAM,CAAC,CAAC;IACxClD,+BAA+B,GAAG,IAAI;EACxC;EAEA,IAAIC,0CAA0C,EAAE;IAC9CA,0CAA0C,CAACiD,MAAM,CAAC,CAAC;IACnDjD,0CAA0C,GAAG,IAAI;EACnD;AACF","ignoreList":[]}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { BaseGesture } from './gesture';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated `FlingGesture` is deprecated and will be removed in the future. Please use `useFlingGesture` instead.
|
|
7
|
+
*/
|
|
4
8
|
export class FlingGesture extends BaseGesture {
|
|
5
9
|
config = {};
|
|
6
10
|
constructor() {
|
|
@@ -29,4 +33,8 @@ export class FlingGesture extends BaseGesture {
|
|
|
29
33
|
return this;
|
|
30
34
|
}
|
|
31
35
|
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated `FlingGestureType` is deprecated and will be removed in the future. Please use `FlingGesture` instead.
|
|
39
|
+
*/
|
|
32
40
|
//# sourceMappingURL=flingGesture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BaseGesture","FlingGesture","config","constructor","handlerName","numberOfPointers","pointers","direction"],"sourceRoot":"../../../../src","sources":["handlers/gestures/flingGesture.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["BaseGesture","FlingGesture","config","constructor","handlerName","numberOfPointers","pointers","direction"],"sourceRoot":"../../../../src","sources":["handlers/gestures/flingGesture.ts"],"mappings":";;AAGA,SAASA,WAAW,QAAQ,WAAW;;AAEvC;AACA;AACA;AACA,OAAO,MAAMC,YAAY,SAASD,WAAW,CAAkC;EAC7DE,MAAM,GAA2C,CAAC,CAAC;EAEnEC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IAEP,IAAI,CAACC,WAAW,GAAG,qBAAqB;EAC1C;;EAEA;AACF;AACA;AACA;EACEC,gBAAgBA,CAACC,QAAgB,EAAE;IACjC,IAAI,CAACJ,MAAM,CAACG,gBAAgB,GAAGC,QAAQ;IACvC,OAAO,IAAI;EACb;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,SAASA,CAACA,SAAiB,EAAE;IAC3B,IAAI,CAACL,MAAM,CAACK,SAAS,GAAGA,SAAS;IACjC,OAAO,IAAI;EACb;AACF;;AAEA;AACA;AACA","ignoreList":[]}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { ContinousBaseGesture } from './gesture';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @deprecated
|
|
6
|
+
* @deprecated `ForceTouchGestureChangeEventPayload` is deprecated and will be removed in the future.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
function changeEventCalculator(current, previous) {
|
|
@@ -26,7 +26,7 @@ function changeEventCalculator(current, previous) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* @deprecated
|
|
29
|
+
* @deprecated `ForceTouchGesture` is deprecated and will be removed in the future.
|
|
30
30
|
*/
|
|
31
31
|
export class ForceTouchGesture extends ContinousBaseGesture {
|
|
32
32
|
config = {};
|
|
@@ -71,6 +71,6 @@ export class ForceTouchGesture extends ContinousBaseGesture {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* @deprecated
|
|
74
|
+
* @deprecated `ForceTouchGestureType` is deprecated and will be removed in the future.
|
|
75
75
|
*/
|
|
76
76
|
//# sourceMappingURL=forceTouchGesture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ContinousBaseGesture","changeEventCalculator","current","previous","changePayload","undefined","forceChange","force","ForceTouchGesture","config","constructor","handlerName","minForce","maxForce","feedbackOnActivation","value","onChange","callback","handlers"],"sourceRoot":"../../../../src","sources":["handlers/gestures/forceTouchGesture.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["ContinousBaseGesture","changeEventCalculator","current","previous","changePayload","undefined","forceChange","force","ForceTouchGesture","config","constructor","handlerName","minForce","maxForce","feedbackOnActivation","value","onChange","callback","handlers"],"sourceRoot":"../../../../src","sources":["handlers/gestures/forceTouchGesture.ts"],"mappings":";;AAIA,SAASA,oBAAoB,QAAQ,WAAW;;AAEhD;AACA;AACA;;AAKA,SAASC,qBAAqBA,CAC5BC,OAAiE,EACjEC,QAAmE,EACnE;EACA,SAAS;;EACT,IAAIC,aAAkD;EACtD,IAAID,QAAQ,KAAKE,SAAS,EAAE;IAC1BD,aAAa,GAAG;MACdE,WAAW,EAAEJ,OAAO,CAACK;IACvB,CAAC;EACH,CAAC,MAAM;IACLH,aAAa,GAAG;MACdE,WAAW,EAAEJ,OAAO,CAACK,KAAK,GAAGJ,QAAQ,CAACI;IACxC,CAAC;EACH;EAEA,OAAO;IAAE,GAAGL,OAAO;IAAE,GAAGE;EAAc,CAAC;AACzC;;AAEA;AACA;AACA;AACA,OAAO,MAAMI,iBAAiB,SAASR,oBAAoB,CAGzD;EACgBS,MAAM,GAAgD,CAAC,CAAC;EAExEC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IAEP,IAAI,CAACC,WAAW,GAAG,0BAA0B;EAC/C;;EAEA;AACF;AACA;AACA;AACA;EACEC,QAAQA,CAACL,KAAa,EAAE;IACtB,IAAI,CAACE,MAAM,CAACG,QAAQ,GAAGL,KAAK;IAC5B,OAAO,IAAI;EACb;;EAEA;AACF;AACA;AACA;AACA;EACEM,QAAQA,CAACN,KAAa,EAAE;IACtB,IAAI,CAACE,MAAM,CAACI,QAAQ,GAAGN,KAAK;IAC5B,OAAO,IAAI;EACb;;EAEA;AACF;AACA;AACA;EACEO,oBAAoBA,CAACC,KAAc,EAAE;IACnC,IAAI,CAACN,MAAM,CAACK,oBAAoB,GAAGC,KAAK;IACxC,OAAO,IAAI;EACb;EAESC,QAAQA,CACfC,QAOS,EACT;IACA;IACA,IAAI,CAACC,QAAQ,CAACjB,qBAAqB,GAAGA,qBAAqB;IAC3D,OAAO,KAAK,CAACe,QAAQ,CAACC,QAAQ,CAAC;EACjC;AACF;;AAEA;AACA;AACA","ignoreList":[]}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { getNextHandlerTag } from '../getNextHandlerTag';
|
|
4
3
|
import { isRemoteDebuggingEnabled } from '../../utils';
|
|
4
|
+
import { getNextHandlerTag } from '../getNextHandlerTag';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated `GestureType` is deprecated and will be removed in the future. Please use `SingleGesture` instead.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated `GestureRef` is deprecated and will be removed in the future.
|
|
12
|
+
*/
|
|
5
13
|
|
|
6
14
|
// Allow adding a ref to a gesture handler
|
|
7
15
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["isRemoteDebuggingEnabled","getNextHandlerTag","CALLBACK_TYPE","UNDEFINED","BEGAN","START","UPDATE","CHANGE","END","FINALIZE","TOUCHES_DOWN","TOUCHES_MOVE","TOUCHES_UP","TOUCHES_CANCEL","Gesture","nextGestureId","BaseGesture","gestureId","handlerTag","handlerName","config","handlers","isWorklet","constructor","addDependency","key","gesture","value","Array","concat","withRef","ref","callback","__workletHash","undefined","onBegin","onStart","onEnd","onFinalize","onTouchesDown","needsPointerData","onTouchesMove","onTouchesUp","onTouchesCancelled","enabled","shouldCancelWhenOutside","hitSlop","activeCursor","mouseButton","runOnJS","simultaneousWithExternalGesture","gestures","requireExternalGestureToFail","blocksExternalGesture","withTestId","id","testId","cancelsTouchesInView","initialize","current","toGestureArray","prepare","shouldUseReanimated","includes","ContinousBaseGesture","onUpdate","onChange","manualActivation"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gesture.ts"],"mappings":";;AAAA,SAASA,wBAAwB,QAAQ,aAAa;AAqBtD,SAASC,iBAAiB,QAAQ,sBAAsB;;AAGxD;AACA;AACA;;AAcA;AACA;AACA;;AAK6D;;AA8C7D,OAAO,MAAMC,aAAa,GAAG;EAC3BC,SAAS,EAAE,CAAC;EACZC,KAAK,EAAE,CAAC;EACRC,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE,CAAC;EACTC,MAAM,EAAE,CAAC;EACTC,GAAG,EAAE,CAAC;EACNC,QAAQ,EAAE,CAAC;EACXC,YAAY,EAAE,CAAC;EACfC,YAAY,EAAE,CAAC;EACfC,UAAU,EAAE,CAAC;EACbC,cAAc,EAAE;AAClB,CAAU;;AAEV;AACA;;AAGA,OAAO,MAAeC,OAAO,CAAC;AAoB9B,IAAIC,aAAa,GAAG,CAAC;AACrB,OAAO,MAAeC,WAAW,SAEvBF,OAAO,CAAC;EACRG,SAAS,GAAG,CAAC,CAAC;EACfC,UAAU,GAAG,CAAC,CAAC;EACfC,WAAW,GAAG,EAAE;EAChBC,MAAM,GAAsB,CAAC,CAAC;EAC9BC,QAAQ,GAAoC;IACjDJ,SAAS,EAAE,CAAC,CAAC;IACbC,UAAU,EAAE,CAAC,CAAC;IACdI,SAAS,EAAE;EAC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,EAAE;MACnB,IAAI,CAACX,MAAM,CAACW,GAAG,CAAC4B,OAAO,GAAG,IAAmB;IAC/C;EACF;EAEAC,cAAcA,CAAA,EAAkB;IAC9B,OAAO,CAAC,IAAI,CAAgB;EAC9B;;EAEA;EACAC,OAAOA,CAAA,EAAG,CAAC;EAEX,IAAIC,mBAAmBA,CAAA,EAAY;IACjC;IACA;IACA;IACA,OACE,IAAI,CAAC1C,MAAM,CAAC6B,OAAO,KAAK,IAAI,IAC5B,CAAC,IAAI,CAAC5B,QAAQ,CAACC,SAAS,CAACyC,QAAQ,CAAC,KAAK,CAAC,IACxC,CAAC/D,wBAAwB,CAAC,CAAC;EAE/B;AACF;AAEA,OAAO,MAAegE,oBAAoB,SAGhChD,WAAW,CAAgB;EACnC;AACF;AACA;AACA;EACEiD,QAAQA,CAACjC,QAA4D,EAAE;IACrE,IAAI,CAACX,QAAQ,CAAC4C,QAAQ,GAAGjC,QAAQ;IACjC,IAAI,CAACX,QAAQ,CAACC,SAAS,CAACpB,aAAa,CAACI,MAAM,CAAC,GAAG,IAAI,CAACgB,SAAS,CAACU,QAAQ,CAAC;IACxE,OAAO,IAAI;EACb;;EAEA;AACF;AACA;AACA;AACA;EACEkC,QAAQA,CACNlC,QAES,EACT;IACA,IAAI,CAACX,QAAQ,CAAC6C,QAAQ,GAAGlC,QAAQ;IACjC,IAAI,CAACX,QAAQ,CAACC,SAAS,CAACpB,aAAa,CAACK,MAAM,CAAC,GAAG,IAAI,CAACe,SAAS,CAACU,QAAQ,CAAC;IACxE,OAAO,IAAI;EACb;;EAEA;AACF;AACA;AACA;AACA;EACEmC,gBAAgBA,CAACA,gBAAyB,EAAE;IAC1C,IAAI,CAAC/C,MAAM,CAAC+C,gBAAgB,GAAGA,gBAAgB;IAC/C,OAAO,IAAI;EACb;AACF","ignoreList":[]}
|
|
@@ -8,6 +8,10 @@ function extendRelation(currentRelation, extendWith) {
|
|
|
8
8
|
return [...currentRelation, ...extendWith];
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated `ComposedGesture` is deprecated and will be removed in the future. Please use `useCompetingGestures` instead.
|
|
14
|
+
*/
|
|
11
15
|
export class ComposedGesture extends Gesture {
|
|
12
16
|
gestures = [];
|
|
13
17
|
simultaneousGestures = [];
|
|
@@ -47,6 +51,10 @@ export class ComposedGesture extends Gesture {
|
|
|
47
51
|
return this.gestures.flatMap(gesture => gesture.toGestureArray());
|
|
48
52
|
}
|
|
49
53
|
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated `SimultaneousGesture` is deprecated and will be removed in the future. Please use `useSimultaneousGestures` instead.
|
|
57
|
+
*/
|
|
50
58
|
export class SimultaneousGesture extends ComposedGesture {
|
|
51
59
|
prepare() {
|
|
52
60
|
// This piece of magic works something like this:
|
|
@@ -66,6 +74,10 @@ export class SimultaneousGesture extends ComposedGesture {
|
|
|
66
74
|
}
|
|
67
75
|
}
|
|
68
76
|
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @deprecated `ExclusiveGesture` is deprecated and will be removed in the future. Please use `useExclusiveGestures` instead.
|
|
80
|
+
*/
|
|
69
81
|
export class ExclusiveGesture extends ComposedGesture {
|
|
70
82
|
prepare() {
|
|
71
83
|
// Transforms the array of gestures into array of grouped raw (not composed) gestures
|
|
@@ -80,4 +92,20 @@ export class ExclusiveGesture extends ComposedGesture {
|
|
|
80
92
|
}
|
|
81
93
|
}
|
|
82
94
|
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated `ComposedGestureType` is deprecated and will be removed in the future. Please use `ComposedGesture` instead.
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated `RaceGestureType` is deprecated and will be removed in the future. Please use `ComposedGesture` instead.
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @deprecated `SimultaneousGestureType` is deprecated and will be removed in the future. Please use `ComposedGesture` instead.
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @deprecated `ExclusiveGestureType` is deprecated and will be removed in the future. Please use `ComposedGesture` instead.
|
|
110
|
+
*/
|
|
83
111
|
//# sourceMappingURL=gestureComposition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BaseGesture","Gesture","extendRelation","currentRelation","extendWith","undefined","ComposedGesture","gestures","simultaneousGestures","requireGesturesToFail","constructor","prepareSingleGesture","gesture","newConfig","config","simultaneousWith","requireToFail","prepare","initialize","toGestureArray","flatMap","SimultaneousGesture","simultaneousArrays","map","filter","x","i","length","ExclusiveGesture","gestureArrays","concat"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gestureComposition.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["BaseGesture","Gesture","extendRelation","currentRelation","extendWith","undefined","ComposedGesture","gestures","simultaneousGestures","requireGesturesToFail","constructor","prepareSingleGesture","gesture","newConfig","config","simultaneousWith","requireToFail","prepare","initialize","toGestureArray","flatMap","SimultaneousGesture","simultaneousArrays","map","filter","x","i","length","ExclusiveGesture","gestureArrays","concat"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gestureComposition.ts"],"mappings":";;AACA,SAASA,WAAW,EAAEC,OAAO,QAAQ,WAAW;AAEhD,SAASC,cAAcA,CACrBC,eAAyC,EACzCC,UAAyB,EACzB;EACA,IAAID,eAAe,KAAKE,SAAS,EAAE;IACjC,OAAO,CAAC,GAAGD,UAAU,CAAC;EACxB,CAAC,MAAM;IACL,OAAO,CAAC,GAAGD,eAAe,EAAE,GAAGC,UAAU,CAAC;EAC5C;AACF;;AAEA;AACA;AACA;AACA,OAAO,MAAME,eAAe,SAASL,OAAO,CAAC;EACjCM,QAAQ,GAAc,EAAE;EACxBC,oBAAoB,GAAkB,EAAE;EACxCC,qBAAqB,GAAkB,EAAE;EAEnDC,WAAWA,CAAC,GAAGH,QAAmB,EAAE;IAClC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3
3
|
import { FlingGesture } from './flingGesture';
|
|
4
4
|
import { ForceTouchGesture } from './forceTouchGesture';
|
|
5
5
|
import { ComposedGesture, ExclusiveGesture, SimultaneousGesture } from './gestureComposition';
|
|
6
|
+
import { HoverGesture } from './hoverGesture';
|
|
6
7
|
import { LongPressGesture } from './longPressGesture';
|
|
8
|
+
import { ManualGesture } from './manualGesture';
|
|
9
|
+
import { NativeGesture } from './nativeGesture';
|
|
7
10
|
import { PanGesture } from './panGesture';
|
|
8
11
|
import { PinchGesture } from './pinchGesture';
|
|
9
12
|
import { RotationGesture } from './rotationGesture';
|
|
10
13
|
import { TapGesture } from './tapGesture';
|
|
11
|
-
import { NativeGesture } from './nativeGesture';
|
|
12
|
-
import { ManualGesture } from './manualGesture';
|
|
13
|
-
import { HoverGesture } from './hoverGesture';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
+
* @deprecated `Gesture` builder API is deprecated and will be removed in a future version of Gesture Handler. Please migrate to the new, hook-based API.
|
|
17
|
+
*
|
|
16
18
|
* `Gesture` is the object that allows you to create and compose gestures.
|
|
17
19
|
*
|
|
18
20
|
* ### Remarks
|
|
@@ -22,6 +24,8 @@ import { HoverGesture } from './hoverGesture';
|
|
|
22
24
|
*/
|
|
23
25
|
export const GestureObjects = {
|
|
24
26
|
/**
|
|
27
|
+
* @deprecated `Gesture.Tap()` is deprecated and will be removed in the future. Please use `useTapGesture` instead.
|
|
28
|
+
*
|
|
25
29
|
* A discrete gesture that recognizes one or many taps.
|
|
26
30
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/tap-gesture
|
|
27
31
|
*/
|
|
@@ -29,6 +33,8 @@ export const GestureObjects = {
|
|
|
29
33
|
return new TapGesture();
|
|
30
34
|
},
|
|
31
35
|
/**
|
|
36
|
+
* @deprecated `Gesture.Pan()` is deprecated and will be removed in the future. Please use `usePanGesture` instead.
|
|
37
|
+
*
|
|
32
38
|
* A continuous gesture that can recognize a panning (dragging) gesture and track its movement.
|
|
33
39
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pan-gesture
|
|
34
40
|
*/
|
|
@@ -36,6 +42,8 @@ export const GestureObjects = {
|
|
|
36
42
|
return new PanGesture();
|
|
37
43
|
},
|
|
38
44
|
/**
|
|
45
|
+
* @deprecated `Gesture.Pinch()` is deprecated and will be removed in the future. Please use `usePinchGesture` instead.
|
|
46
|
+
*
|
|
39
47
|
* A continuous gesture that recognizes pinch gesture. It allows for tracking the distance between two fingers and use that information to scale or zoom your content.
|
|
40
48
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/pinch-gesture
|
|
41
49
|
*/
|
|
@@ -43,6 +51,8 @@ export const GestureObjects = {
|
|
|
43
51
|
return new PinchGesture();
|
|
44
52
|
},
|
|
45
53
|
/**
|
|
54
|
+
* @deprecated `Gesture.Rotation()` is deprecated and will be removed in the future. Please use `useRotationGesture` instead.
|
|
55
|
+
*
|
|
46
56
|
* A continuous gesture that can recognize rotation and track its movement.
|
|
47
57
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/rotation-gesture
|
|
48
58
|
*/
|
|
@@ -50,6 +60,8 @@ export const GestureObjects = {
|
|
|
50
60
|
return new RotationGesture();
|
|
51
61
|
},
|
|
52
62
|
/**
|
|
63
|
+
* @deprecated `Gesture.Fling()` is deprecated and will be removed in the future. Please use `useFlingGesture` instead.
|
|
64
|
+
*
|
|
53
65
|
* A discrete gesture that activates when the movement is sufficiently fast.
|
|
54
66
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/fling-gesture
|
|
55
67
|
*/
|
|
@@ -57,6 +69,8 @@ export const GestureObjects = {
|
|
|
57
69
|
return new FlingGesture();
|
|
58
70
|
},
|
|
59
71
|
/**
|
|
72
|
+
* @deprecated `Gesture.LongPress()` is deprecated and will be removed in the future. Please use `useLongPressGesture` instead.
|
|
73
|
+
*
|
|
60
74
|
* A discrete gesture that activates when the corresponding view is pressed for a sufficiently long time.
|
|
61
75
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/long-press-gesture
|
|
62
76
|
*/
|
|
@@ -64,7 +78,7 @@ export const GestureObjects = {
|
|
|
64
78
|
return new LongPressGesture();
|
|
65
79
|
},
|
|
66
80
|
/**
|
|
67
|
-
* @deprecated ForceTouch
|
|
81
|
+
* @deprecated `Gesture.ForceTouch()` is deprecated and will be removed in the future.
|
|
68
82
|
*
|
|
69
83
|
* #### iOS only
|
|
70
84
|
* A continuous gesture that recognizes force of a touch. It allows for tracking pressure of touch on some iOS devices.
|
|
@@ -74,6 +88,8 @@ export const GestureObjects = {
|
|
|
74
88
|
return new ForceTouchGesture();
|
|
75
89
|
},
|
|
76
90
|
/**
|
|
91
|
+
* @deprecated `Gesture.Native()` is deprecated and will be removed in the future. Please use `useNativeGesture` instead.
|
|
92
|
+
*
|
|
77
93
|
* A gesture that allows other touch handling components to participate in RNGH's gesture system.
|
|
78
94
|
* When used, the other component should be the direct child of a `GestureDetector`.
|
|
79
95
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/gestures/native-gesture
|
|
@@ -82,6 +98,8 @@ export const GestureObjects = {
|
|
|
82
98
|
return new NativeGesture();
|
|
83
99
|
},
|
|
84
100
|
/**
|
|
101
|
+
* @deprecated `Gesture.Manual()` is deprecated and will be removed in the future. Please use `useManualGesture` instead.
|
|
102
|
+
*
|
|
85
103
|
* A plain gesture that has no specific activation criteria nor event data set.
|
|
86
104
|
* Its state has to be controlled manually using a state manager.
|
|
87
105
|
* It will not fail when all the pointers are lifted from the screen.
|
|
@@ -91,6 +109,8 @@ export const GestureObjects = {
|
|
|
91
109
|
return new ManualGesture();
|
|
92
110
|
},
|
|
93
111
|
/**
|
|
112
|
+
* @deprecated `Gesture.Hover()` is deprecated and will be removed in the future. Please use `useHoverGesture` instead.
|
|
113
|
+
*
|
|
94
114
|
* A continuous gesture that can recognize hovering above the view it's attached to.
|
|
95
115
|
* The hover effect may be activated by moving a mouse or a stylus over the view.
|
|
96
116
|
*
|
|
@@ -100,6 +120,8 @@ export const GestureObjects = {
|
|
|
100
120
|
return new HoverGesture();
|
|
101
121
|
},
|
|
102
122
|
/**
|
|
123
|
+
* @deprecated `Gesture.Race()` is deprecated and will be removed in the future. Please use `useCompetingGestures` instead.
|
|
124
|
+
*
|
|
103
125
|
* Builds a composed gesture consisting of gestures provided as parameters.
|
|
104
126
|
* The first one that becomes active cancels the rest of gestures.
|
|
105
127
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-composition/#race
|
|
@@ -108,6 +130,8 @@ export const GestureObjects = {
|
|
|
108
130
|
return new ComposedGesture(...gestures);
|
|
109
131
|
},
|
|
110
132
|
/**
|
|
133
|
+
* @deprecated `Gesture.Simultaneous()` is deprecated and will be removed in the future. Please use `useSimultaneousGestures` instead.
|
|
134
|
+
*
|
|
111
135
|
* Builds a composed gesture that allows all base gestures to run simultaneously.
|
|
112
136
|
* @see https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/gesture-composition/#simultaneous
|
|
113
137
|
*/
|
|
@@ -115,6 +139,8 @@ export const GestureObjects = {
|
|
|
115
139
|
return new SimultaneousGesture(...gestures);
|
|
116
140
|
},
|
|
117
141
|
/**
|
|
142
|
+
* @deprecated `Gesture.Exclusive()` is deprecated and will be removed in the future. Please use `useExclusiveGestures` instead.
|
|
143
|
+
*
|
|
118
144
|
* Builds a composed gesture where only one of the provided gestures can become active.
|
|
119
145
|
* Priority is decided through the order of gestures: the first one has higher priority
|
|
120
146
|
* than the second one, second one has higher priority than the third one, and so on.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FlingGesture","ForceTouchGesture","ComposedGesture","ExclusiveGesture","SimultaneousGesture","
|
|
1
|
+
{"version":3,"names":["FlingGesture","ForceTouchGesture","ComposedGesture","ExclusiveGesture","SimultaneousGesture","HoverGesture","LongPressGesture","ManualGesture","NativeGesture","PanGesture","PinchGesture","RotationGesture","TapGesture","GestureObjects","Tap","Pan","Pinch","Rotation","Fling","LongPress","ForceTouch","Native","Manual","Hover","Race","gestures","Simultaneous","Exclusive"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gestureObjects.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,iBAAiB,QAAQ,qBAAqB;AAEvD,SACEC,eAAe,EACfC,gBAAgB,EAChBC,mBAAmB,QACd,sBAAsB;AAC7B,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,aAAa,QAAQ,iBAAiB;AAC/C,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,eAAe,QAAQ,mBAAmB;AACnD,SAASC,UAAU,QAAQ,cAAc;;AAEzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAG;EAC5B;AACF;AACA;AACA;AACA;AACA;EACEC,GAAG,EAAEA,CAAA,KAAM;IACT,OAAO,IAAIF,UAAU,CAAC,CAAC;EACzB,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACEG,GAAG,EAAEA,CAAA,KAAM;IACT,OAAO,IAAIN,UAAU,CAAC,CAAC;EACzB,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACEO,KAAK,EAAEA,CAAA,KAAM;IACX,OAAO,IAAIN,YAAY,CAAC,CAAC;EAC3B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACEO,QAAQ,EAAEA,CAAA,KAAM;IACd,OAAO,IAAIN,eAAe,CAAC,CAAC;EAC9B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACEO,KAAK,EAAEA,CAAA,KAAM;IACX,OAAO,IAAIlB,YAAY,CAAC,CAAC;EAC3B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACEmB,SAAS,EAAEA,CAAA,KAAM;IACf,OAAO,IAAIb,gBAAgB,CAAC,CAAC;EAC/B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;EACEc,UAAU,EAAEA,CAAA,KAAM;IAChB,OAAO,IAAInB,iBAAiB,CAAC,CAAC;EAChC,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;EACEoB,MAAM,EAAEA,CAAA,KAAM;IACZ,OAAO,IAAIb,aAAa,CAAC,CAAC;EAC5B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEc,MAAM,EAAEA,CAAA,KAAM;IACZ,OAAO,IAAIf,aAAa,CAAC,CAAC;EAC5B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEgB,KAAK,EAAEA,CAAA,KAAM;IACX,OAAO,IAAIlB,YAAY,CAAC,CAAC;EAC3B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;EACEmB,IAAI,EAAEA,CAAC,GAAGC,QAAmB,KAAK;IAChC,OAAO,IAAIvB,eAAe,CAAC,GAAGuB,QAAQ,CAAC;EACzC,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACEC,YAAYA,CAAC,GAAGD,QAAmB,EAAE;IACnC,OAAO,IAAIrB,mBAAmB,CAAC,GAAGqB,QAAQ,CAAC;EAC7C,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEE,SAASA,CAAC,GAAGF,QAAmB,EAAE;IAChC,OAAO,IAAItB,gBAAgB,CAAC,GAAGsB,QAAQ,CAAC;EAC1C;AACF,CAAC","ignoreList":[]}
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import { State } from '../../State';
|
|
4
4
|
import { tagMessage } from '../../utils';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated `LegacyGestureStateManagerType` is deprecated and will be removed in the future. Please use the new, hook-based API instead.
|
|
8
|
+
*/
|
|
9
|
+
|
|
5
10
|
const wrappedSetGestureState = (handlerTag, state) => {
|
|
6
11
|
'worklet';
|
|
7
12
|
|
|
@@ -40,6 +45,10 @@ function create(handlerTag) {
|
|
|
40
45
|
}
|
|
41
46
|
};
|
|
42
47
|
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated `LegacyGestureStateManager` is deprecated and will be removed in the future. Please use the new, hook-based API instead.
|
|
51
|
+
*/
|
|
43
52
|
export const GestureStateManager = {
|
|
44
53
|
create
|
|
45
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["State","tagMessage","wrappedSetGestureState","handlerTag","state","globalThis","_setGestureStateSync","_setGestureStateAsync","Error","create","begin","BEGAN","activate","ACTIVE","fail","FAILED","end","END","GestureStateManager"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gestureStateManager.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,aAAa;AACnC,SAASC,UAAU,QAAQ,aAAa;
|
|
1
|
+
{"version":3,"names":["State","tagMessage","wrappedSetGestureState","handlerTag","state","globalThis","_setGestureStateSync","_setGestureStateAsync","Error","create","begin","BEGAN","activate","ACTIVE","fail","FAILED","end","END","GestureStateManager"],"sourceRoot":"../../../../src","sources":["handlers/gestures/gestureStateManager.ts"],"mappings":";;AAAA,SAASA,KAAK,QAAQ,aAAa;AACnC,SAASC,UAAU,QAAQ,aAAa;;AAExC;AACA;AACA;;AAUA,MAAMC,sBAAsB,GAAGA,CAACC,UAAkB,EAAEC,KAAY,KAAK;EACnE,SAAS;;EAET,IAAIC,UAAU,CAACC,oBAAoB,EAAE;IACnCD,UAAU,CAACC,oBAAoB,CAACH,UAAU,EAAEC,KAAK,CAAC;EACpD,CAAC,MAAM,IAAIC,UAAU,CAACE,qBAAqB,EAAE;IAC3CF,UAAU,CAACE,qBAAqB,CAACJ,UAAU,EAAEC,KAAK,CAAC;EACrD,CAAC,MAAM;IACL,MAAM,IAAII,KAAK,CAACP,UAAU,CAAC,6BAA6B,CAAC,CAAC;EAC5D;AACF,CAAC;AAED,SAASQ,MAAMA,CAACN,UAAkB,EAA2B;EAC3D,SAAS;;EACT,OAAO;IACLA,UAAU;IAEVO,KAAK,EAAEA,CAAA,KAAM;MACX,SAAS;;MACTR,sBAAsB,CAACC,UAAU,EAAEH,KAAK,CAACW,KAAK,CAAC;IACjD,CAAC;IAEDC,QAAQ,EAAEA,CAAA,KAAM;MACd,SAAS;;MACTV,sBAAsB,CAACC,UAAU,EAAEH,KAAK,CAACa,MAAM,CAAC;IAClD,CAAC;IAEDC,IAAI,EAAEA,CAAA,KAAM;MACV,SAAS;;MACTZ,sBAAsB,CAACC,UAAU,EAAEH,KAAK,CAACe,MAAM,CAAC;IAClD,CAAC;IAEDC,GAAG,EAAEA,CAAA,KAAM;MACT,SAAS;;MACTd,sBAAsB,CAACC,UAAU,EAAEH,KAAK,CAACiB,GAAG,CAAC;IAC/C;EACF,CAAC;AACH;;AAEA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAG;EACjCT;AACF,CAAC","ignoreList":[]}
|
|
@@ -28,6 +28,10 @@ function changeEventCalculator(current, previous) {
|
|
|
28
28
|
...changePayload
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated `HoverGesture` is deprecated and will be removed in the future. Please use `useHoverGesture` instead.
|
|
34
|
+
*/
|
|
31
35
|
export class HoverGesture extends ContinousBaseGesture {
|
|
32
36
|
config = {};
|
|
33
37
|
constructor() {
|
|
@@ -49,4 +53,8 @@ export class HoverGesture extends ContinousBaseGesture {
|
|
|
49
53
|
return super.onChange(callback);
|
|
50
54
|
}
|
|
51
55
|
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated `HoverGestureType` is deprecated and will be removed in the future. Please use `HoverGesture` instead.
|
|
59
|
+
*/
|
|
52
60
|
//# sourceMappingURL=hoverGesture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ContinousBaseGesture","HoverEffect","hoverGestureHandlerProps","changeEventCalculator","current","previous","changePayload","undefined","changeX","x","changeY","y","HoverGesture","config","constructor","handlerName","effect","hoverEffect","onChange","callback","handlers"],"sourceRoot":"../../../../src","sources":["handlers/gestures/hoverGesture.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["ContinousBaseGesture","HoverEffect","hoverGestureHandlerProps","changeEventCalculator","current","previous","changePayload","undefined","changeX","x","changeY","y","HoverGesture","config","constructor","handlerName","effect","hoverEffect","onChange","callback","handlers"],"sourceRoot":"../../../../src","sources":["handlers/gestures/hoverGesture.ts"],"mappings":";;AAGA,SAASA,oBAAoB,QAAQ,WAAW;AAOhD,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAUvB,OAAO,MAAMC,wBAAwB,GAAG,CAAC,aAAa,CAAU;AAEhE,SAASC,qBAAqBA,CAC5BC,OAA4D,EAC5DC,QAA8D,EAC9D;EACA,SAAS;;EACT,IAAIC,aAA6C;EACjD,IAAID,QAAQ,KAAKE,SAAS,EAAE;IAC1BD,aAAa,GAAG;MACdE,OAAO,EAAEJ,OAAO,CAACK,CAAC;MAClBC,OAAO,EAAEN,OAAO,CAACO;IACnB,CAAC;EACH,CAAC,MAAM;IACLL,aAAa,GAAG;MACdE,OAAO,EAAEJ,OAAO,CAACK,CAAC,GAAGJ,QAAQ,CAACI,CAAC;MAC/BC,OAAO,EAAEN,OAAO,CAACO,CAAC,GAAGN,QAAQ,CAACM;IAChC,CAAC;EACH;EAEA,OAAO;IAAE,GAAGP,OAAO;IAAE,GAAGE;EAAc,CAAC;AACzC;;AAEA;AACA;AACA;AACA,OAAO,MAAMM,YAAY,SAASZ,oBAAoB,CAGpD;EACgBa,MAAM,GAA2C,CAAC,CAAC;EAEnEC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IAEP,IAAI,CAACC,WAAW,GAAG,qBAAqB;EAC1C;;EAEA;AACF;AACA;AACA;EACEC,MAAMA,CAACA,MAAmB,EAAE;IAC1B,IAAI,CAACH,MAAM,CAACI,WAAW,GAAGD,MAAM;IAChC,OAAO,IAAI;EACb;EAESE,QAAQA,CACfC,QAIS,EACT;IACA;IACA,IAAI,CAACC,QAAQ,CAACjB,qBAAqB,GAAGA,qBAAqB;IAC3D,OAAO,KAAK,CAACe,QAAQ,CAACC,QAAQ,CAAC;EACjC;AACF;;AAEA;AACA;AACA","ignoreList":[]}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { BaseGesture } from './gesture';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated `LongPressGesture` is deprecated and will be removed in the future. Please use `useLongPressGesture` instead.
|
|
7
|
+
*/
|
|
4
8
|
export class LongPressGesture extends BaseGesture {
|
|
5
9
|
config = {};
|
|
6
10
|
constructor() {
|
|
@@ -38,4 +42,8 @@ export class LongPressGesture extends BaseGesture {
|
|
|
38
42
|
return this;
|
|
39
43
|
}
|
|
40
44
|
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated `LongPressGestureType` is deprecated and will be removed in the future. Please use `LongPressGesture` instead.
|
|
48
|
+
*/
|
|
41
49
|
//# sourceMappingURL=longPressGesture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BaseGesture","LongPressGesture","config","constructor","handlerName","shouldCancelWhenOutside","minDuration","duration","minDurationMs","maxDistance","distance","maxDist","numberOfPointers","pointers"],"sourceRoot":"../../../../src","sources":["handlers/gestures/longPressGesture.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["BaseGesture","LongPressGesture","config","constructor","handlerName","shouldCancelWhenOutside","minDuration","duration","minDurationMs","maxDistance","distance","maxDist","numberOfPointers","pointers"],"sourceRoot":"../../../../src","sources":["handlers/gestures/longPressGesture.ts"],"mappings":";;AAGA,SAASA,WAAW,QAAQ,WAAW;;AAEvC;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,SAASD,WAAW,CAAsC;EACrEE,MAAM,GAA+C,CAAC,CAAC;EAEvEC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IAEP,IAAI,CAACC,WAAW,GAAG,yBAAyB;IAC5C,IAAI,CAACC,uBAAuB,CAAC,IAAI,CAAC;EACpC;;EAEA;AACF;AACA;AACA;AACA;EACEC,WAAWA,CAACC,QAAgB,EAAE;IAC5B,IAAI,CAACL,MAAM,CAACM,aAAa,GAAGD,QAAQ;IACpC,OAAO,IAAI;EACb;;EAEA;AACF;AACA;AACA;AACA;EACEE,WAAWA,CAACC,QAAgB,EAAE;IAC5B,IAAI,CAACR,MAAM,CAACS,OAAO,GAAGD,QAAQ;IAC9B,OAAO,IAAI;EACb;;EAEA;AACF;AACA;AACA;EACEE,gBAAgBA,CAACC,QAAgB,EAAE;IACjC,IAAI,CAACX,MAAM,CAACU,gBAAgB,GAAGC,QAAQ;IACvC,OAAO,IAAI;EACb;AACF;;AAEA;AACA;AACA","ignoreList":[]}
|
|
@@ -6,6 +6,10 @@ function changeEventCalculator(current, _previous) {
|
|
|
6
6
|
|
|
7
7
|
return current;
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated `ManualGesture` is deprecated and will be removed in the future. Please use `useManualGesture` instead.
|
|
12
|
+
*/
|
|
9
13
|
export class ManualGesture extends ContinousBaseGesture {
|
|
10
14
|
constructor() {
|
|
11
15
|
super();
|
|
@@ -17,4 +21,8 @@ export class ManualGesture extends ContinousBaseGesture {
|
|
|
17
21
|
return super.onChange(callback);
|
|
18
22
|
}
|
|
19
23
|
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated `ManualGestureType` is deprecated and will be removed in the future. Please use `ManualGesture` instead.
|
|
27
|
+
*/
|
|
20
28
|
//# sourceMappingURL=manualGesture.js.map
|