@tamagui/react-native-web-lite 1.113.0 → 1.113.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/AccessibilityInfo/index.native.js +62 -58
- package/dist/esm/AccessibilityInfo/index.native.js.map +6 -1
- package/dist/esm/ActivityIndicator/__tests__/index-test.native.js +55 -85
- package/dist/esm/ActivityIndicator/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/ActivityIndicator/index.native.js +90 -82
- package/dist/esm/ActivityIndicator/index.native.js.map +6 -1
- package/dist/esm/Alert/index.native.js +18 -14
- package/dist/esm/Alert/index.native.js.map +6 -1
- package/dist/esm/AppRegistry/AppContainer.native.js +26 -30
- package/dist/esm/AppRegistry/AppContainer.native.js.map +6 -1
- package/dist/esm/AppRegistry/__tests__/index-test.native.js +13 -13
- package/dist/esm/AppRegistry/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/AppRegistry/__tests__/index-test.node.native.js +34 -45
- package/dist/esm/AppRegistry/__tests__/index-test.node.native.js.map +6 -1
- package/dist/esm/AppRegistry/index.native.js +55 -50
- package/dist/esm/AppRegistry/index.native.js.map +6 -1
- package/dist/esm/AppRegistry/renderApplication.native.js +27 -33
- package/dist/esm/AppRegistry/renderApplication.native.js.map +6 -1
- package/dist/esm/AppState/__tests__/index-test.native.js +10 -9
- package/dist/esm/AppState/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/AppState/index.native.js +51 -45
- package/dist/esm/AppState/index.native.js.map +6 -1
- package/dist/esm/Appearance/index.native.js +24 -27
- package/dist/esm/Appearance/index.native.js.map +6 -1
- package/dist/esm/BackHandler/index.native.js +13 -11
- package/dist/esm/BackHandler/index.native.js.map +6 -1
- package/dist/esm/Clipboard/index.native.js +26 -21
- package/dist/esm/Clipboard/index.native.js.map +6 -1
- package/dist/esm/DeviceEmitter.native.js +5 -3
- package/dist/esm/DeviceEmitter.native.js.map +6 -1
- package/dist/esm/DeviceInfo/index.native.js +33 -41
- package/dist/esm/DeviceInfo/index.native.js.map +6 -1
- package/dist/esm/Dimensions/__tests__/index-test.native.js +8 -9
- package/dist/esm/Dimensions/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/Dimensions/index.native.js +53 -49
- package/dist/esm/Dimensions/index.native.js.map +6 -1
- package/dist/esm/I18nManager/index.native.js +13 -10
- package/dist/esm/I18nManager/index.native.js.map +6 -1
- package/dist/esm/Image/index.native.js +149 -174
- package/dist/esm/Image/index.native.js.map +6 -1
- package/dist/esm/Image/types.native.js +1 -2
- package/dist/esm/Image/types.native.js.map +6 -1
- package/dist/esm/ImageBackground/__tests__/index-test.native.js +19 -27
- package/dist/esm/ImageBackground/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/ImageBackground/index.native.js +33 -35
- package/dist/esm/ImageBackground/index.native.js.map +6 -1
- package/dist/esm/Keyboard/index.native.js +17 -13
- package/dist/esm/Keyboard/index.native.js.map +6 -1
- package/dist/esm/KeyboardAvoidingView/index.native.js +44 -34
- package/dist/esm/KeyboardAvoidingView/index.native.js.map +6 -1
- package/dist/esm/Linking/__tests__/index-test.native.js +9 -9
- package/dist/esm/Linking/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/Linking/index.native.js +49 -42
- package/dist/esm/Linking/index.native.js.map +6 -1
- package/dist/esm/LogBox/index.native.js +12 -7
- package/dist/esm/LogBox/index.native.js.map +6 -1
- package/dist/esm/Modal/ModalAnimation.native.js +112 -89
- package/dist/esm/Modal/ModalAnimation.native.js.map +6 -1
- package/dist/esm/Modal/ModalContent.native.js +54 -52
- package/dist/esm/Modal/ModalContent.native.js.map +6 -1
- package/dist/esm/Modal/ModalFocusTrap.native.js +52 -49
- package/dist/esm/Modal/ModalFocusTrap.native.js.map +6 -1
- package/dist/esm/Modal/ModalPortal.native.js +11 -9
- package/dist/esm/Modal/ModalPortal.native.js.map +6 -1
- package/dist/esm/Modal/index.native.js +45 -53
- package/dist/esm/Modal/index.native.js.map +6 -1
- package/dist/esm/NativeModules/index.native.js +6 -5
- package/dist/esm/NativeModules/index.native.js.map +6 -1
- package/dist/esm/PanResponder/Alternative.js +122 -157
- package/dist/esm/PanResponder/Alternative.js.map +6 -1
- package/dist/esm/PanResponder/index.native.js +5 -3
- package/dist/esm/PanResponder/index.native.js.map +6 -1
- package/dist/esm/PixelRatio/index.native.js +59 -48
- package/dist/esm/PixelRatio/index.native.js.map +6 -1
- package/dist/esm/Pressable/index.native.js +67 -70
- package/dist/esm/Pressable/index.native.js.map +6 -1
- package/dist/esm/RefreshControl/index.native.js +6 -4
- package/dist/esm/RefreshControl/index.native.js.map +6 -1
- package/dist/esm/SafeAreaView/index.native.js +21 -24
- package/dist/esm/SafeAreaView/index.native.js.map +6 -1
- package/dist/esm/ScrollView/ScrollViewBase.native.js +50 -61
- package/dist/esm/ScrollView/ScrollViewBase.native.js.map +6 -1
- package/dist/esm/ScrollView/index.native.js +211 -183
- package/dist/esm/ScrollView/index.native.js.map +6 -1
- package/dist/esm/Share/index.native.js +36 -29
- package/dist/esm/Share/index.native.js.map +6 -1
- package/dist/esm/StatusBar/index.native.js +6 -3
- package/dist/esm/StatusBar/index.native.js.map +6 -1
- package/dist/esm/Text/index.native.js +100 -128
- package/dist/esm/Text/index.native.js.map +6 -1
- package/dist/esm/Text/types.native.js +1 -2
- package/dist/esm/Text/types.native.js.map +6 -1
- package/dist/esm/TextInput/__tests__/index-test.native.js +259 -445
- package/dist/esm/TextInput/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/TextInput/index.native.js +157 -220
- package/dist/esm/TextInput/index.native.js.map +6 -1
- package/dist/esm/TextInput/types.native.js +1 -2
- package/dist/esm/TextInput/types.native.js.map +6 -1
- package/dist/esm/TouchableOpacity.native.js +67 -63
- package/dist/esm/TouchableOpacity.native.js.map +6 -1
- package/dist/esm/TouchableWithoutFeedback.native.js +45 -49
- package/dist/esm/TouchableWithoutFeedback.native.js.map +6 -1
- package/dist/esm/UnimplementedView.native.js +30 -22
- package/dist/esm/UnimplementedView.native.js.map +6 -1
- package/dist/esm/Vibration/index.native.js +14 -14
- package/dist/esm/Vibration/index.native.js.map +6 -1
- package/dist/esm/View/index.native.js +55 -84
- package/dist/esm/View/index.native.js.map +6 -1
- package/dist/esm/View/types.native.js +1 -2
- package/dist/esm/View/types.native.js.map +6 -1
- package/dist/esm/createElement/__tests__/index-test.native.js +195 -398
- package/dist/esm/createElement/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/createElement/index.native.js +14 -16
- package/dist/esm/createElement/index.native.js.map +6 -1
- package/dist/esm/createReactDOMStyle.native.js +4 -2
- package/dist/esm/createReactDOMStyle.native.js.map +6 -1
- package/dist/esm/findNodeHandle.native.js +7 -4
- package/dist/esm/findNodeHandle.native.js.map +6 -1
- package/dist/esm/index.native.js +133 -55
- package/dist/esm/index.native.js.map +6 -1
- package/dist/esm/render/index.native.js +9 -4
- package/dist/esm/render/index.native.js.map +6 -1
- package/dist/esm/styleTypes.native.js +1 -2
- package/dist/esm/styleTypes.native.js.map +6 -1
- package/dist/esm/types.native.js +1 -2
- package/dist/esm/types.native.js.map +6 -1
- package/dist/esm/useColorScheme/index.native.js +7 -7
- package/dist/esm/useColorScheme/index.native.js.map +6 -1
- package/dist/esm/useLocaleContext/index.native.js +4 -2
- package/dist/esm/useLocaleContext/index.native.js.map +6 -1
- package/dist/esm/useWindowDimensions/index.native.js +9 -9
- package/dist/esm/useWindowDimensions/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/Animated.native.js +17 -16
- package/dist/esm/vendor/react-native/Animated/Animated.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js +99 -72
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js +436 -465
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js +91 -97
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js +1 -2
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/Easing.native.js +231 -194
- package/dist/esm/vendor/react-native/Animated/Easing.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js +222 -206
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js +5 -3
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js +5 -3
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js +5 -5
- package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js +37 -25
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js +54 -42
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js +72 -72
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js +60 -45
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/bezier.native.js +20 -23
- package/dist/esm/vendor/react-native/Animated/bezier.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js +13 -12
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js +11 -17
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js +197 -180
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js +51 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js +57 -42
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js +116 -99
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js +50 -37
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js +89 -61
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js +70 -52
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js +68 -50
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js +53 -41
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js +57 -44
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js +99 -70
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js +82 -64
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js +53 -40
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js +58 -50
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js.map +6 -1
- package/dist/esm/vendor/react-native/FeatureFlags.native.js +10 -8
- package/dist/esm/vendor/react-native/FeatureFlags.native.js.map +6 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js +5 -3
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js +55 -46
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/PanResponder/index.native.js +219 -224
- package/dist/esm/vendor/react-native/PanResponder/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js +81 -58
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js +1 -2
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js +5 -2
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js +1 -2
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js +6 -5
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js +5 -3
- package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js +1 -2
- package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js +33 -24
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js +51 -41
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js +16 -12
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js +26 -21
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js.map +6 -1
- package/dist/esm/vendor/react-native/infoLog/index.native.js +6 -3
- package/dist/esm/vendor/react-native/infoLog/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/useRefEffect.native.js +8 -4
- package/dist/esm/vendor/react-native/useRefEffect.native.js.map +6 -1
- package/dist/esm/without-animated.native.js +115 -52
- package/dist/esm/without-animated.native.js.map +6 -1
- package/package.json +6 -6
|
@@ -1,76 +1,99 @@
|
|
|
1
1
|
var TouchHistoryMath = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
2
|
+
/**
|
|
3
|
+
* This code is optimized and not intended to look beautiful. This allows
|
|
4
|
+
* computing of touch centroids that have moved after `touchesChangedAfter`
|
|
5
|
+
* timeStamp. You can compute the current centroid involving all touches
|
|
6
|
+
* moves after `touchesChangedAfter`, or you can compute the previous
|
|
7
|
+
* centroid of all touches that were moved after `touchesChangedAfter`.
|
|
8
|
+
*
|
|
9
|
+
* @param {TouchHistoryMath} touchHistory Standard Responder touch track
|
|
10
|
+
* data.
|
|
11
|
+
* @param {number} touchesChangedAfter timeStamp after which moved touches
|
|
12
|
+
* are considered "actively moving" - not just "active".
|
|
13
|
+
* @param {boolean} isXAxis Consider `x` dimension vs. `y` dimension.
|
|
14
|
+
* @param {boolean} ofCurrent Compute current centroid for actively moving
|
|
15
|
+
* touches vs. previous centroid of now actively moving touches.
|
|
16
|
+
* @return {number} value of centroid in specified dimension.
|
|
17
|
+
*/
|
|
18
|
+
centroidDimension: function(touchHistory, touchesChangedAfter, isXAxis, ofCurrent) {
|
|
19
|
+
var touchBank = touchHistory.touchBank, total = 0, count = 0, oneTouchData = touchHistory.numberActiveTouches === 1 ? touchHistory.touchBank[touchHistory.indexOfSingleActiveTouch] : null;
|
|
20
|
+
if (oneTouchData !== null)
|
|
21
|
+
oneTouchData.touchActive && oneTouchData.currentTimeStamp > touchesChangedAfter && (total += ofCurrent && isXAxis ? oneTouchData.currentPageX : ofCurrent && !isXAxis ? oneTouchData.currentPageY : !ofCurrent && isXAxis ? oneTouchData.previousPageX : oneTouchData.previousPageY, count = 1);
|
|
22
|
+
else
|
|
23
|
+
for (var i = 0; i < touchBank.length; i++) {
|
|
24
24
|
var touchTrack = touchBank[i];
|
|
25
25
|
if (touchTrack != null && touchTrack.touchActive && touchTrack.currentTimeStamp >= touchesChangedAfter) {
|
|
26
26
|
var toAdd = void 0;
|
|
27
27
|
ofCurrent && isXAxis ? toAdd = touchTrack.currentPageX : ofCurrent && !isXAxis ? toAdd = touchTrack.currentPageY : !ofCurrent && isXAxis ? toAdd = touchTrack.previousPageX : toAdd = touchTrack.previousPageY, total += toAdd, count++;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
return count > 0 ? total / count : TouchHistoryMath.noCentroid;
|
|
31
|
+
},
|
|
32
|
+
currentCentroidXOfTouchesChangedAfter: function(touchHistory, touchesChangedAfter) {
|
|
33
|
+
return TouchHistoryMath.centroidDimension(
|
|
34
|
+
touchHistory,
|
|
35
|
+
touchesChangedAfter,
|
|
36
|
+
!0,
|
|
34
37
|
// isXAxis
|
|
35
|
-
!0
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
!0
|
|
39
|
+
);
|
|
40
|
+
},
|
|
41
|
+
// ofCurrent
|
|
42
|
+
currentCentroidYOfTouchesChangedAfter: function(touchHistory, touchesChangedAfter) {
|
|
43
|
+
return TouchHistoryMath.centroidDimension(
|
|
44
|
+
touchHistory,
|
|
45
|
+
touchesChangedAfter,
|
|
46
|
+
!1,
|
|
40
47
|
// isXAxis
|
|
41
|
-
!0
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
!0
|
|
49
|
+
);
|
|
50
|
+
},
|
|
51
|
+
// ofCurrent
|
|
52
|
+
previousCentroidXOfTouchesChangedAfter: function(touchHistory, touchesChangedAfter) {
|
|
53
|
+
return TouchHistoryMath.centroidDimension(
|
|
54
|
+
touchHistory,
|
|
55
|
+
touchesChangedAfter,
|
|
56
|
+
!0,
|
|
46
57
|
// isXAxis
|
|
47
|
-
!1
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
58
|
+
!1
|
|
59
|
+
);
|
|
60
|
+
},
|
|
61
|
+
// ofCurrent
|
|
62
|
+
previousCentroidYOfTouchesChangedAfter: function(touchHistory, touchesChangedAfter) {
|
|
63
|
+
return TouchHistoryMath.centroidDimension(
|
|
64
|
+
touchHistory,
|
|
65
|
+
touchesChangedAfter,
|
|
66
|
+
!1,
|
|
52
67
|
// isXAxis
|
|
53
|
-
!1
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
68
|
+
!1
|
|
69
|
+
);
|
|
70
|
+
},
|
|
71
|
+
// ofCurrent
|
|
72
|
+
currentCentroidX: function(touchHistory) {
|
|
73
|
+
return TouchHistoryMath.centroidDimension(
|
|
74
|
+
touchHistory,
|
|
75
|
+
0,
|
|
58
76
|
// touchesChangedAfter
|
|
59
77
|
!0,
|
|
60
78
|
// isXAxis
|
|
61
|
-
!0
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
79
|
+
!0
|
|
80
|
+
);
|
|
81
|
+
},
|
|
82
|
+
// ofCurrent
|
|
83
|
+
currentCentroidY: function(touchHistory) {
|
|
84
|
+
return TouchHistoryMath.centroidDimension(
|
|
85
|
+
touchHistory,
|
|
86
|
+
0,
|
|
66
87
|
// touchesChangedAfter
|
|
67
88
|
!1,
|
|
68
89
|
// isXAxis
|
|
69
|
-
!0
|
|
70
|
-
|
|
71
|
-
// ofCurrent
|
|
72
|
-
noCentroid: -1
|
|
90
|
+
!0
|
|
91
|
+
);
|
|
73
92
|
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
93
|
+
// ofCurrent
|
|
94
|
+
noCentroid: -1
|
|
95
|
+
}, TouchHistoryMath_default = TouchHistoryMath;
|
|
96
|
+
export {
|
|
97
|
+
TouchHistoryMath_default as default
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/vendor/react-native/TouchHistoryMath/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/TouchHistoryMath/index.tsx"],
|
|
4
|
+
"mappings": "AASA,IAAMA,mBAAmB;;;;;;;;;;;;;;;;;EAiBvBC,mBAAmB,SAAUC,cAAcC,qBAAqBC,SAASC,WAAS;AAChF,QAAMC,YAAYJ,aAAaI,WAC3BC,QAAQ,GACRC,QAAQ,GAENC,eACJP,aAAaQ,wBAAwB,IACjCR,aAAaI,UAAUJ,aAAaS,wBAAwB,IAC5D;AAEN,QAAIF,iBAAiB;AACnB,MACEA,aAAaG,eACbH,aAAaI,mBAAmBV,wBAEhCI,SACEF,aAAaD,UACTK,aAAaK,eACbT,aAAa,CAACD,UACdK,aAAaM,eACb,CAACV,aAAaD,UACdK,aAAaO,gBACbP,aAAaQ,eACnBT,QAAQ;;AAGV,eAASU,IAAI,GAAGA,IAAIZ,UAAUa,QAAQD,KAAK;AACzC,YAAME,aAAad,UAAUY,CAAAA;AAC7B,YACEE,cAAe,QAEfA,WAAWR,eACXQ,WAAWP,oBAAoBV,qBAC/B;AACA,cAAIkB,QAAAA;AACJ,UAAIhB,aAAaD,UACfiB,QAAQD,WAAWN,eACVT,aAAa,CAACD,UACvBiB,QAAQD,WAAWL,eACV,CAACV,aAAaD,UACvBiB,QAAQD,WAAWJ,gBAEnBK,QAAQD,WAAWH,eAErBV,SAASc,OACTb;QACF;MACF;AAEF,WAAOA,QAAQ,IAAID,QAAQC,QAAQR,iBAAiBsB;EACtD;EAEAC,uCAAuC,SAAUrB,cAAcC,qBAAmB;AAChF,WAAOH,iBAAiBC;MACtBC;MACAC;MACA;;MACA;IAAA;EAEJ;;EAEAqB,uCAAuC,SAAUtB,cAAcC,qBAAmB;AAChF,WAAOH,iBAAiBC;MACtBC;MACAC;MACA;;MACA;IAAA;EAEJ;;EAEAsB,wCAAwC,SAAUvB,cAAcC,qBAAmB;AACjF,WAAOH,iBAAiBC;MACtBC;MACAC;MACA;;MACA;IAAA;EAEJ;;EAEAuB,wCAAwC,SAAUxB,cAAcC,qBAAmB;AACjF,WAAOH,iBAAiBC;MACtBC;MACAC;MACA;;MACA;IAAA;EAEJ;;EAEAwB,kBAAkB,SAAUzB,cAAY;AACtC,WAAOF,iBAAiBC;MACtBC;MACA;;MACA;;MACA;IAAA;EAEJ;;EAEA0B,kBAAkB,SAAU1B,cAAY;AACtC,WAAOF,iBAAiBC;MACtBC;MACA;;MACA;;MACA;IAAA;EAEJ;;EAEAoB,YAAY;AACd,GAEA,2BAAetB;",
|
|
5
|
+
"names": ["TouchHistoryMath", "centroidDimension", "touchHistory", "touchesChangedAfter", "isXAxis", "ofCurrent", "touchBank", "total", "count", "oneTouchData", "numberActiveTouches", "indexOfSingleActiveTouch", "touchActive", "currentTimeStamp", "currentPageX", "currentPageY", "previousPageX", "previousPageY", "i", "length", "touchTrack", "toAdd", "noCentroid", "currentCentroidXOfTouchesChangedAfter", "currentCentroidYOfTouchesChangedAfter", "previousCentroidXOfTouchesChangedAfter", "previousCentroidYOfTouchesChangedAfter", "currentCentroidX", "currentCentroidY"]
|
|
6
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=RCTExport.native.js.map
|
|
1
|
+
//# sourceMappingURL=RCTExport.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/vendor/react-native/TurboModule/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/TurboModule/TurboModuleRegistry.js"],
|
|
4
|
+
"mappings": "AAWO,SAASA,IAAIC,MAAI;AACtB,SAAO;AACT;AACO,SAASC,aAAaD,MAAI;AAC/B,SAAO;AACT;",
|
|
5
|
+
"names": ["get", "name", "getEnforcing"]
|
|
6
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=CoreEventTypes.native.js.map
|
|
1
|
+
//# sourceMappingURL=CoreEventTypes.js.map
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
function setAndForwardRef(_ref) {
|
|
2
|
-
var getForwardedRef = _ref.getForwardedRef,
|
|
3
|
-
|
|
4
|
-
return function (ref) {
|
|
2
|
+
var getForwardedRef = _ref.getForwardedRef, setLocalRef = _ref.setLocalRef;
|
|
3
|
+
return function(ref) {
|
|
5
4
|
var forwardedRef = getForwardedRef();
|
|
6
5
|
setLocalRef(ref), typeof forwardedRef == "function" ? forwardedRef(ref) : typeof forwardedRef == "object" && forwardedRef != null && (forwardedRef.current = ref);
|
|
7
6
|
};
|
|
8
7
|
}
|
|
9
8
|
var setAndForwardRef_default = setAndForwardRef;
|
|
10
|
-
export {
|
|
11
|
-
|
|
9
|
+
export {
|
|
10
|
+
setAndForwardRef_default as default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=setAndForwardRef.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/vendor/react-native/Utilities/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/Utilities/setAndForwardRef.js"],
|
|
4
|
+
"mappings": "AAyCA,SAASA,iBAAiBC,MAAI;AAC5B,MAAIC,kBAAkBD,KAAKC,iBACzBC,cAAcF,KAAKE;AACrB,SAAO,SAAoBC,KAAG;AAC5B,QAAIC,eAAeH,gBAAAA;AACnBC,gBAAYC,GAAAA,GAER,OAAOC,gBAAiB,aAE1BA,aAAaD,GAAAA,IACJ,OAAOC,gBAAiB,YAAYA,gBAAgB,SAE7DA,aAAaC,UAAUF;EAE3B;AACF;AAEA,IAAA,2BAAeJ;",
|
|
5
|
+
"names": ["setAndForwardRef", "_ref", "getForwardedRef", "setLocalRef", "ref", "forwardedRef", "current"]
|
|
6
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import EventEmitter from "./_EventEmitter
|
|
1
|
+
import EventEmitter from "./_EventEmitter";
|
|
2
2
|
var EventEmitter_default = EventEmitter;
|
|
3
|
-
export {
|
|
4
|
-
|
|
3
|
+
export {
|
|
4
|
+
EventEmitter_default as default
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=EventEmitter.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/vendor/react-native/emitter/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/emitter/EventEmitter.js"],
|
|
4
|
+
"mappings": "AAWA,OAAOA,kBAAkB;AACzB,IAAA,uBAAeA;",
|
|
5
|
+
"names": ["EventEmitter"]
|
|
6
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=EventSubscription.native.js.map
|
|
1
|
+
//# sourceMappingURL=EventSubscription.js.map
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import _EventSubscription from "./_EventSubscription
|
|
1
|
+
import _EventSubscription from "./_EventSubscription";
|
|
2
2
|
function _assert_this_initialized(self) {
|
|
3
|
-
if (self === void 0)
|
|
3
|
+
if (self === void 0)
|
|
4
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
5
|
return self;
|
|
5
6
|
}
|
|
6
7
|
function _call_super(_this, derived, args) {
|
|
7
8
|
return derived = _get_prototype_of(derived), _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
8
9
|
}
|
|
9
10
|
function _class_call_check(instance, Constructor) {
|
|
10
|
-
if (!(instance instanceof Constructor))
|
|
11
|
+
if (!(instance instanceof Constructor))
|
|
12
|
+
throw new TypeError("Cannot call a class as a function");
|
|
11
13
|
}
|
|
12
14
|
function _defineProperties(target, props) {
|
|
13
15
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -19,12 +21,13 @@ function _create_class(Constructor, protoProps, staticProps) {
|
|
|
19
21
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
20
22
|
}
|
|
21
23
|
function _get_prototype_of(o) {
|
|
22
|
-
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function
|
|
24
|
+
return _get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function(o2) {
|
|
23
25
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
24
26
|
}, _get_prototype_of(o);
|
|
25
27
|
}
|
|
26
28
|
function _inherits(subClass, superClass) {
|
|
27
|
-
if (typeof superClass != "function" && superClass !== null)
|
|
29
|
+
if (typeof superClass != "function" && superClass !== null)
|
|
30
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
28
31
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
29
32
|
constructor: {
|
|
30
33
|
value: subClass,
|
|
@@ -37,31 +40,35 @@ function _possible_constructor_return(self, call) {
|
|
|
37
40
|
return call && (_type_of(call) === "object" || typeof call == "function") ? call : _assert_this_initialized(self);
|
|
38
41
|
}
|
|
39
42
|
function _set_prototype_of(o, p) {
|
|
40
|
-
return _set_prototype_of = Object.setPrototypeOf || function
|
|
43
|
+
return _set_prototype_of = Object.setPrototypeOf || function(o2, p2) {
|
|
41
44
|
return o2.__proto__ = p2, o2;
|
|
42
45
|
}, _set_prototype_of(o, p);
|
|
43
46
|
}
|
|
44
47
|
function _type_of(obj) {
|
|
45
48
|
"@swc/helpers - typeof";
|
|
46
|
-
|
|
47
49
|
return obj && typeof Symbol < "u" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
48
50
|
}
|
|
49
51
|
function _is_native_reflect_construct() {
|
|
50
52
|
try {
|
|
51
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
54
|
+
}));
|
|
55
|
+
} catch {
|
|
56
|
+
}
|
|
57
|
+
return (_is_native_reflect_construct = function() {
|
|
54
58
|
return !!result;
|
|
55
59
|
})();
|
|
56
60
|
}
|
|
57
|
-
var EmitterSubscription = /* @__PURE__ */function
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
var EmitterSubscription = /* @__PURE__ */ function(_EventSubscription2) {
|
|
62
|
+
_inherits(EmitterSubscription2, _EventSubscription2);
|
|
63
|
+
function EmitterSubscription2(emitter, subscriber, listener, context) {
|
|
64
|
+
_class_call_check(this, EmitterSubscription2);
|
|
65
|
+
var _this;
|
|
66
|
+
return _this = _call_super(this, EmitterSubscription2, [
|
|
67
|
+
subscriber
|
|
68
|
+
]), _this.emitter = emitter, _this.listener = listener, _this.context = context, _this;
|
|
69
|
+
}
|
|
70
|
+
return _create_class(EmitterSubscription2, [
|
|
71
|
+
{
|
|
65
72
|
/**
|
|
66
73
|
* Removes this subscription from the emitter that registered it.
|
|
67
74
|
* Note: we're overriding the `remove()` method of _EventSubscription here
|
|
@@ -69,11 +76,13 @@ var EmitterSubscription = /* @__PURE__ */function (_EventSubscription2) {
|
|
|
69
76
|
* for removing the subscription lies with the EventEmitter.
|
|
70
77
|
*/
|
|
71
78
|
key: "remove",
|
|
72
|
-
value: function
|
|
79
|
+
value: function() {
|
|
73
80
|
this.emitter.removeSubscription(this);
|
|
74
81
|
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
export {
|
|
79
|
-
|
|
82
|
+
}
|
|
83
|
+
]), EmitterSubscription2;
|
|
84
|
+
}(_EventSubscription), EmitterSubscription_default = EmitterSubscription;
|
|
85
|
+
export {
|
|
86
|
+
EmitterSubscription_default as default
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=_EmitterSubscription.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/vendor/react-native/emitter/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/emitter/_EmitterSubscription.js"],
|
|
4
|
+
"mappings": "AAWA,OAAOA,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK/B,IAAMC,sBAAN,yBAAAD,qBAAA;YAAMC,sBAAAA,mBAAAA;WAAAA,qBAWQC,SAASC,YAAYC,UAAUC,SAAO;4BAX9CJ,oBAAAA;;mBAYF,YAAA,MAZEA,sBAAAA;MAYIE;QACN,MAAKD,UAAUA,SACf,MAAKE,WAAWA,UAChB,MAAKC,UAAUA;;uBAfbJ,sBAAAA;;;;;;;;MAwBJK,KAAAA;aAAAA,WAAAA;AACE,aAAKJ,QAAQK,mBAAmB,IAAI;MACtC;;MA1BIN;EAA4BD,kBAAAA,GA6BlC,8BAAeC;",
|
|
5
|
+
"names": ["_EventSubscription", "EmitterSubscription", "emitter", "subscriber", "listener", "context", "remove", "removeSubscription"]
|
|
6
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { invariant } from "@tamagui/react-native-web-internals";
|
|
2
|
-
import EmitterSubscription from "./_EmitterSubscription
|
|
3
|
-
import EventSubscriptionVendor from "./_EventSubscriptionVendor
|
|
2
|
+
import EmitterSubscription from "./_EmitterSubscription";
|
|
3
|
+
import EventSubscriptionVendor from "./_EventSubscriptionVendor";
|
|
4
4
|
function _class_call_check(instance, Constructor) {
|
|
5
|
-
if (!(instance instanceof Constructor))
|
|
5
|
+
if (!(instance instanceof Constructor))
|
|
6
|
+
throw new TypeError("Cannot call a class as a function");
|
|
6
7
|
}
|
|
7
8
|
function _defineProperties(target, props) {
|
|
8
9
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -13,17 +14,16 @@ function _defineProperties(target, props) {
|
|
|
13
14
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
14
15
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
15
16
|
}
|
|
16
|
-
var sparseFilterPredicate = function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return _create_class(EventEmitter2, [{
|
|
17
|
+
var sparseFilterPredicate = function() {
|
|
18
|
+
return !0;
|
|
19
|
+
}, EventEmitter = /* @__PURE__ */ function() {
|
|
20
|
+
"use strict";
|
|
21
|
+
function EventEmitter2() {
|
|
22
|
+
var subscriber = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : new EventSubscriptionVendor();
|
|
23
|
+
_class_call_check(this, EventEmitter2), this._subscriber = subscriber;
|
|
24
|
+
}
|
|
25
|
+
return _create_class(EventEmitter2, [
|
|
26
|
+
{
|
|
27
27
|
/**
|
|
28
28
|
* Adds a listener to be invoked when events of the specified type are
|
|
29
29
|
* emitted. An optional calling context may be provided. The data arguments
|
|
@@ -39,10 +39,11 @@ var sparseFilterPredicate = function () {
|
|
|
39
39
|
* listener
|
|
40
40
|
*/
|
|
41
41
|
key: "addListener",
|
|
42
|
-
value: function
|
|
42
|
+
value: function(eventType, listener, context) {
|
|
43
43
|
return this._subscriber.addSubscription(eventType, new EmitterSubscription(this, this._subscriber, listener, context));
|
|
44
44
|
}
|
|
45
|
-
},
|
|
45
|
+
},
|
|
46
|
+
{
|
|
46
47
|
/**
|
|
47
48
|
* Removes all of the registered listeners, including those registered as
|
|
48
49
|
* listener maps.
|
|
@@ -51,18 +52,20 @@ var sparseFilterPredicate = function () {
|
|
|
51
52
|
* listeners to remove
|
|
52
53
|
*/
|
|
53
54
|
key: "removeAllListeners",
|
|
54
|
-
value: function
|
|
55
|
+
value: function(eventType) {
|
|
55
56
|
this._subscriber.removeAllSubscriptions(eventType);
|
|
56
57
|
}
|
|
57
|
-
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
58
60
|
/**
|
|
59
61
|
* @deprecated Use `remove` on the EventSubscription from `addListener`.
|
|
60
62
|
*/
|
|
61
63
|
key: "removeSubscription",
|
|
62
|
-
value: function
|
|
64
|
+
value: function(subscription) {
|
|
63
65
|
invariant(subscription.emitter === this, "Subscription does not belong to this emitter."), this._subscriber.removeSubscription(subscription);
|
|
64
66
|
}
|
|
65
|
-
},
|
|
67
|
+
},
|
|
68
|
+
{
|
|
66
69
|
/**
|
|
67
70
|
* Returns the number of listeners that are currently registered for the given
|
|
68
71
|
* event.
|
|
@@ -71,16 +74,18 @@ var sparseFilterPredicate = function () {
|
|
|
71
74
|
* @returns {number}
|
|
72
75
|
*/
|
|
73
76
|
key: "listenerCount",
|
|
74
|
-
value: function
|
|
77
|
+
value: function(eventType) {
|
|
75
78
|
var subscriptions = this._subscriber.getSubscriptionsForType(eventType);
|
|
76
|
-
return subscriptions ?
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
return subscriptions ? (
|
|
80
|
+
// We filter out missing entries because the array is sparse.
|
|
81
|
+
// "callbackfn is called only for elements of the array which actually
|
|
82
|
+
// exist; it is not called for missing elements of the array."
|
|
83
|
+
// https://www.ecma-international.org/ecma-262/9.0/index.html#sec-array.prototype.filter
|
|
84
|
+
subscriptions.filter(sparseFilterPredicate).length
|
|
85
|
+
) : 0;
|
|
82
86
|
}
|
|
83
|
-
},
|
|
87
|
+
},
|
|
88
|
+
{
|
|
84
89
|
/**
|
|
85
90
|
* Emits an event of the given type with the given data. All handlers of that
|
|
86
91
|
* particular type will be notified.
|
|
@@ -96,31 +101,36 @@ var sparseFilterPredicate = function () {
|
|
|
96
101
|
* emitter.emit('someEvent', 'abc'); // logs 'abc'
|
|
97
102
|
*/
|
|
98
103
|
key: "emit",
|
|
99
|
-
value: function
|
|
104
|
+
value: function(eventType) {
|
|
100
105
|
var subscriptions = this._subscriber.getSubscriptionsForType(eventType);
|
|
101
106
|
if (subscriptions) {
|
|
102
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)
|
|
107
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++)
|
|
108
|
+
args[_key - 1] = arguments[_key];
|
|
103
109
|
for (var i = 0, l = subscriptions.length; i < l; i++) {
|
|
104
110
|
var subscription = subscriptions[i];
|
|
105
111
|
subscription && subscription.listener && subscription.listener.apply(subscription.context, args);
|
|
106
112
|
}
|
|
107
113
|
}
|
|
108
114
|
}
|
|
109
|
-
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
110
117
|
/**
|
|
111
118
|
* @deprecated Use `remove` on the EventSubscription from `addListener`.
|
|
112
119
|
*/
|
|
113
120
|
key: "removeListener",
|
|
114
|
-
value: function
|
|
121
|
+
value: function(eventType, listener) {
|
|
115
122
|
console.error("EventEmitter.removeListener('" + eventType + "', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `EventEmitter.addListener`.");
|
|
116
123
|
var subscriptions = this._subscriber.getSubscriptionsForType(eventType);
|
|
117
|
-
if (subscriptions)
|
|
118
|
-
var
|
|
119
|
-
|
|
120
|
-
|
|
124
|
+
if (subscriptions)
|
|
125
|
+
for (var i = 0, l = subscriptions.length; i < l; i++) {
|
|
126
|
+
var subscription = subscriptions[i];
|
|
127
|
+
subscription && subscription.listener === listener && subscription.remove();
|
|
128
|
+
}
|
|
121
129
|
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
export {
|
|
126
|
-
|
|
130
|
+
}
|
|
131
|
+
]), EventEmitter2;
|
|
132
|
+
}(), EventEmitter_default = EventEmitter;
|
|
133
|
+
export {
|
|
134
|
+
EventEmitter_default as default
|
|
135
|
+
};
|
|
136
|
+
//# sourceMappingURL=_EventEmitter.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/vendor/react-native/emitter/Users/n8/tamagui/code/packages/react-native-web-lite/src/vendor/react-native/emitter/_EventEmitter.js"],
|
|
4
|
+
"mappings": "AAUA,SAASA,iBAAiB;AAE1B,OAAOC,yBAAyB;AAChC,OAAOC,6BAA6B;AAJnC,SAAA,kBAAA,UAAA,aAAA;;;;;;;;;;;;;AAMD,IAAIC,wBAAwB,WAAA;SAAM;GAe5BC,eAAN,2BAAA;;WAAMA,gBAAAA;QAOQC,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAa,IAAIH,wBAAAA;4BAPzBE,aAAAA,GAQF,KAAKE,cAAcD;;uBARjBD,eAAAA;;;;;;;;;;;;;;;;MAyBJG,KAAAA;aAAAA,SACEC,WACAC,UACAC,SAAO;AAEP,eAAO,KAAKJ,YAAYK,gBACtBH,WACA,IAAIP,oBAAoB,MAAM,KAAKK,aAAaG,UAAUC,OAAAA,CAAAA;MAE9D;;;;;;;;;;MASAE,KAAAA;aAAAA,SAAmBJ,WAAS;AAC1B,aAAKF,YAAYO,uBAAuBL,SAAAA;MAC1C;;;;;;MAKAM,KAAAA;aAAAA,SAAmBC,cAAY;AAC7Bf,kBACEe,aAAaC,YAAY,MACzB,+CAAA,GAGF,KAAKV,YAAYQ,mBAAmBC,YAAAA;MACtC;;;;;;;;;;MASAE,KAAAA;aAAAA,SAAcT,WAAS;AACrB,YAAIU,gBAAgB,KAAKZ,YAAYa,wBAAwBX,SAAAA;AAE7D,eAAOU;;;;;UAIHA,cAAcE,OAAOjB,qBAAAA,EAAuBkB;YAC5C;MACN;;;;;;;;;;;;;;;;;MAgBAC,KAAAA;aAAAA,SAAKd,WAAS;AACZ,YAAIU,gBAAgB,KAAKZ,YAAYa,wBAAwBX,SAAAA;AAE7D,YAAIU,eAAe;AACjB,mBACMK,OAAOC,UAAUH,QAAQI,OAAO,IAAIC,MAAMH,OAAO,IAAIA,OAAO,IAAI,CAAA,GAAII,OAAO,GAC/EA,OAAOJ,MACPI;AAEAF,iBAAKE,OAAO,CAAA,IAAKH,UAAUG,IAAAA;AAG7B,mBAASC,IAAI,GAAGC,IAAIX,cAAcG,QAAQO,IAAIC,GAAGD,KAAK;AACpD,gBAAIb,eAAeG,cAAcU,CAAAA;AAEjC,YAAIb,gBAAgBA,aAAaN,YAC/BM,aAAaN,SAASqB,MAAMf,aAAaL,SAASe,IAAAA;UAEtD;QACF;MACF;;;;;;MAKAM,KAAAA;aAAAA,SACEvB,WACAC,UAAQ;AAERuB,gBAAQC,MACN,kCACEzB,YACA,gIAEA;AAGJ,YAAIU,gBAAgB,KAAKZ,YAAYa,wBAAwBX,SAAAA;AAE7D,YAAIU;AACF,mBAASU,IAAI,GAAGC,IAAIX,cAAcG,QAAQO,IAAIC,GAAGD,KAAK;AACpD,gBAAIb,eAAeG,cAAcU,CAAAA;AAGjC,YAAIb,gBAAgBA,aAAaN,aAAaA,YAC5CM,aAAamB,OAAM;UAEvB;MAEJ;;MA5II9B;KA+IN,uBAAeA;",
|
|
5
|
+
"names": ["invariant", "EmitterSubscription", "EventSubscriptionVendor", "sparseFilterPredicate", "EventEmitter", "subscriber", "_subscriber", "addListener", "eventType", "listener", "context", "addSubscription", "removeAllListeners", "removeAllSubscriptions", "removeSubscription", "subscription", "emitter", "listenerCount", "subscriptions", "getSubscriptionsForType", "filter", "length", "emit", "_len", "arguments", "args", "Array", "_key", "i", "l", "apply", "removeListener", "console", "error", "remove"]
|
|
6
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
function _class_call_check(instance, Constructor) {
|
|
2
|
-
if (!(instance instanceof Constructor))
|
|
2
|
+
if (!(instance instanceof Constructor))
|
|
3
|
+
throw new TypeError("Cannot call a class as a function");
|
|
3
4
|
}
|
|
4
5
|
function _defineProperties(target, props) {
|
|
5
6
|
for (var i = 0; i < props.length; i++) {
|
|
@@ -10,20 +11,23 @@ function _defineProperties(target, props) {
|
|
|
10
11
|
function _create_class(Constructor, protoProps, staticProps) {
|
|
11
12
|
return protoProps && _defineProperties(Constructor.prototype, protoProps), staticProps && _defineProperties(Constructor, staticProps), Constructor;
|
|
12
13
|
}
|
|
13
|
-
var _EventSubscription = /* @__PURE__ */function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
var _EventSubscription = /* @__PURE__ */ function() {
|
|
15
|
+
function _EventSubscription2(subscriber) {
|
|
16
|
+
_class_call_check(this, _EventSubscription2), this.subscriber = subscriber;
|
|
17
|
+
}
|
|
18
|
+
return _create_class(_EventSubscription2, [
|
|
19
|
+
{
|
|
18
20
|
/**
|
|
19
21
|
* Removes this subscription from the subscriber that controls it.
|
|
20
22
|
*/
|
|
21
23
|
key: "remove",
|
|
22
|
-
value: function
|
|
24
|
+
value: function() {
|
|
23
25
|
this.subscriber.removeSubscription(this);
|
|
24
26
|
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export {
|
|
29
|
-
|
|
27
|
+
}
|
|
28
|
+
]), _EventSubscription2;
|
|
29
|
+
}(), EventSubscription_default = _EventSubscription;
|
|
30
|
+
export {
|
|
31
|
+
EventSubscription_default as default
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=_EventSubscription.js.map
|