@react-native-ohos/react-native-haptic-feedback 2.3.4-rc.1 → 2.3.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/LICENSE +21 -21
- package/README.OpenSource +10 -10
- package/README.md +12 -12
- package/RNReactNativeHapticFeedback.podspec +29 -29
- package/harmony/haptic_feedback/BuildProfile.ets +16 -16
- package/harmony/haptic_feedback/build-profile.json5 +27 -27
- package/harmony/haptic_feedback/hvigorfile.ts +6 -6
- package/harmony/haptic_feedback/index.ets +25 -25
- package/harmony/haptic_feedback/obfuscation-rules.txt +17 -17
- package/harmony/haptic_feedback/oh-package-lock.json5 +31 -0
- package/harmony/haptic_feedback/oh-package.json5 +12 -12
- package/harmony/haptic_feedback/src/main/cpp/CMakeLists.txt +6 -6
- package/harmony/haptic_feedback/src/main/cpp/RNHapticFeedback.cpp +21 -21
- package/harmony/haptic_feedback/src/main/cpp/RNHapticFeedback.h +21 -21
- package/harmony/haptic_feedback/src/main/cpp/RNHapticFeedbackPackage.h +37 -37
- package/harmony/haptic_feedback/src/main/ets/Logger.ts +45 -45
- package/harmony/haptic_feedback/src/main/ets/RNHapticFeedbackPackage.ts +28 -28
- package/harmony/haptic_feedback/src/main/ets/RNHapticFeedbackTurboModule.ts +151 -151
- package/harmony/haptic_feedback/src/main/ets/generated/components/ts.ts +8 -8
- package/harmony/haptic_feedback/src/main/ets/generated/index.ets +8 -8
- package/harmony/haptic_feedback/src/main/ets/generated/ts.ts +9 -9
- package/harmony/haptic_feedback/src/main/ets/generated/turboModules/RNHapticFeedback.ts +16 -16
- package/harmony/haptic_feedback/src/main/ets/generated/turboModules/ts.ts +8 -8
- package/harmony/haptic_feedback/src/main/module.json5 +11 -11
- package/harmony/haptic_feedback/src/main/resources/base/element/color.json +7 -7
- package/harmony/haptic_feedback/src/main/resources/base/element/string.json +15 -15
- package/harmony/haptic_feedback/src/main/resources/base/media/layered_image.json +6 -6
- package/harmony/haptic_feedback/src/main/resources/base/profile/main_pages.json +5 -5
- package/harmony/haptic_feedback/src/main/resources/en_US/element/string.json +15 -15
- package/harmony/haptic_feedback/src/main/resources/rawfile/effectClick.json +27 -27
- package/harmony/haptic_feedback/src/main/resources/rawfile/effectDoubleClick.json +37 -37
- package/harmony/haptic_feedback/src/main/resources/rawfile/effectHeavyClick.json +27 -27
- package/harmony/haptic_feedback/src/main/resources/rawfile/effectTick.json +27 -27
- package/harmony/haptic_feedback/src/main/resources/rawfile/impactHeavy.json +27 -27
- package/harmony/haptic_feedback/src/main/resources/rawfile/impactLight.json +27 -27
- package/harmony/haptic_feedback/src/main/resources/rawfile/impactMedium.json +27 -27
- package/harmony/haptic_feedback/src/main/resources/rawfile/notificationError.json +57 -57
- package/harmony/haptic_feedback/src/main/resources/rawfile/notificationSuccess.json +37 -37
- package/harmony/haptic_feedback/src/main/resources/rawfile/notificationWarning.json +37 -37
- package/harmony/haptic_feedback/src/main/resources/rawfile/rigid.json +27 -27
- package/harmony/haptic_feedback/src/main/resources/rawfile/selection.json +27 -27
- package/harmony/haptic_feedback/src/main/resources/rawfile/soft.json +27 -27
- package/harmony/haptic_feedback/src/main/resources/zh_CN/element/string.json +15 -15
- package/harmony/haptic_feedback/ts.ts +25 -25
- package/harmony/haptic_feedback.har +0 -0
- package/package.json +115 -117
- package/src/codegenSpec/NativeHapticFeedback.ts +14 -14
- package/src/index.ts +31 -31
- package/src/types.ts +29 -29
package/src/types.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export enum HapticFeedbackTypes {
|
|
2
|
-
selection = "selection",
|
|
3
|
-
impactLight = "impactLight",
|
|
4
|
-
impactMedium = "impactMedium",
|
|
5
|
-
impactHeavy = "impactHeavy",
|
|
6
|
-
rigid = "rigid",
|
|
7
|
-
soft = "soft",
|
|
8
|
-
notificationSuccess = "notificationSuccess",
|
|
9
|
-
notificationWarning = "notificationWarning",
|
|
10
|
-
notificationError = "notificationError",
|
|
11
|
-
clockTick = "clockTick",
|
|
12
|
-
contextClick = "contextClick",
|
|
13
|
-
keyboardPress = "keyboardPress",
|
|
14
|
-
keyboardRelease = "keyboardRelease",
|
|
15
|
-
keyboardTap = "keyboardTap",
|
|
16
|
-
longPress = "longPress",
|
|
17
|
-
textHandleMove = "textHandleMove",
|
|
18
|
-
virtualKey = "virtualKey",
|
|
19
|
-
virtualKeyRelease = "virtualKeyRelease",
|
|
20
|
-
effectClick = "effectClick",
|
|
21
|
-
effectDoubleClick = "effectDoubleClick",
|
|
22
|
-
effectHeavyClick = "effectHeavyClick",
|
|
23
|
-
effectTick = "effectTick",
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface HapticOptions {
|
|
27
|
-
enableVibrateFallback?: boolean;
|
|
28
|
-
ignoreAndroidSystemSettings?: boolean;
|
|
29
|
-
}
|
|
1
|
+
export enum HapticFeedbackTypes {
|
|
2
|
+
selection = "selection",
|
|
3
|
+
impactLight = "impactLight",
|
|
4
|
+
impactMedium = "impactMedium",
|
|
5
|
+
impactHeavy = "impactHeavy",
|
|
6
|
+
rigid = "rigid",
|
|
7
|
+
soft = "soft",
|
|
8
|
+
notificationSuccess = "notificationSuccess",
|
|
9
|
+
notificationWarning = "notificationWarning",
|
|
10
|
+
notificationError = "notificationError",
|
|
11
|
+
clockTick = "clockTick",
|
|
12
|
+
contextClick = "contextClick",
|
|
13
|
+
keyboardPress = "keyboardPress",
|
|
14
|
+
keyboardRelease = "keyboardRelease",
|
|
15
|
+
keyboardTap = "keyboardTap",
|
|
16
|
+
longPress = "longPress",
|
|
17
|
+
textHandleMove = "textHandleMove",
|
|
18
|
+
virtualKey = "virtualKey",
|
|
19
|
+
virtualKeyRelease = "virtualKeyRelease",
|
|
20
|
+
effectClick = "effectClick",
|
|
21
|
+
effectDoubleClick = "effectDoubleClick",
|
|
22
|
+
effectHeavyClick = "effectHeavyClick",
|
|
23
|
+
effectTick = "effectTick",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface HapticOptions {
|
|
27
|
+
enableVibrateFallback?: boolean;
|
|
28
|
+
ignoreAndroidSystemSettings?: boolean;
|
|
29
|
+
}
|