@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.
Files changed (49) hide show
  1. package/LICENSE +21 -21
  2. package/README.OpenSource +10 -10
  3. package/README.md +12 -12
  4. package/RNReactNativeHapticFeedback.podspec +29 -29
  5. package/harmony/haptic_feedback/BuildProfile.ets +16 -16
  6. package/harmony/haptic_feedback/build-profile.json5 +27 -27
  7. package/harmony/haptic_feedback/hvigorfile.ts +6 -6
  8. package/harmony/haptic_feedback/index.ets +25 -25
  9. package/harmony/haptic_feedback/obfuscation-rules.txt +17 -17
  10. package/harmony/haptic_feedback/oh-package-lock.json5 +31 -0
  11. package/harmony/haptic_feedback/oh-package.json5 +12 -12
  12. package/harmony/haptic_feedback/src/main/cpp/CMakeLists.txt +6 -6
  13. package/harmony/haptic_feedback/src/main/cpp/RNHapticFeedback.cpp +21 -21
  14. package/harmony/haptic_feedback/src/main/cpp/RNHapticFeedback.h +21 -21
  15. package/harmony/haptic_feedback/src/main/cpp/RNHapticFeedbackPackage.h +37 -37
  16. package/harmony/haptic_feedback/src/main/ets/Logger.ts +45 -45
  17. package/harmony/haptic_feedback/src/main/ets/RNHapticFeedbackPackage.ts +28 -28
  18. package/harmony/haptic_feedback/src/main/ets/RNHapticFeedbackTurboModule.ts +151 -151
  19. package/harmony/haptic_feedback/src/main/ets/generated/components/ts.ts +8 -8
  20. package/harmony/haptic_feedback/src/main/ets/generated/index.ets +8 -8
  21. package/harmony/haptic_feedback/src/main/ets/generated/ts.ts +9 -9
  22. package/harmony/haptic_feedback/src/main/ets/generated/turboModules/RNHapticFeedback.ts +16 -16
  23. package/harmony/haptic_feedback/src/main/ets/generated/turboModules/ts.ts +8 -8
  24. package/harmony/haptic_feedback/src/main/module.json5 +11 -11
  25. package/harmony/haptic_feedback/src/main/resources/base/element/color.json +7 -7
  26. package/harmony/haptic_feedback/src/main/resources/base/element/string.json +15 -15
  27. package/harmony/haptic_feedback/src/main/resources/base/media/layered_image.json +6 -6
  28. package/harmony/haptic_feedback/src/main/resources/base/profile/main_pages.json +5 -5
  29. package/harmony/haptic_feedback/src/main/resources/en_US/element/string.json +15 -15
  30. package/harmony/haptic_feedback/src/main/resources/rawfile/effectClick.json +27 -27
  31. package/harmony/haptic_feedback/src/main/resources/rawfile/effectDoubleClick.json +37 -37
  32. package/harmony/haptic_feedback/src/main/resources/rawfile/effectHeavyClick.json +27 -27
  33. package/harmony/haptic_feedback/src/main/resources/rawfile/effectTick.json +27 -27
  34. package/harmony/haptic_feedback/src/main/resources/rawfile/impactHeavy.json +27 -27
  35. package/harmony/haptic_feedback/src/main/resources/rawfile/impactLight.json +27 -27
  36. package/harmony/haptic_feedback/src/main/resources/rawfile/impactMedium.json +27 -27
  37. package/harmony/haptic_feedback/src/main/resources/rawfile/notificationError.json +57 -57
  38. package/harmony/haptic_feedback/src/main/resources/rawfile/notificationSuccess.json +37 -37
  39. package/harmony/haptic_feedback/src/main/resources/rawfile/notificationWarning.json +37 -37
  40. package/harmony/haptic_feedback/src/main/resources/rawfile/rigid.json +27 -27
  41. package/harmony/haptic_feedback/src/main/resources/rawfile/selection.json +27 -27
  42. package/harmony/haptic_feedback/src/main/resources/rawfile/soft.json +27 -27
  43. package/harmony/haptic_feedback/src/main/resources/zh_CN/element/string.json +15 -15
  44. package/harmony/haptic_feedback/ts.ts +25 -25
  45. package/harmony/haptic_feedback.har +0 -0
  46. package/package.json +115 -117
  47. package/src/codegenSpec/NativeHapticFeedback.ts +14 -14
  48. package/src/index.ts +31 -31
  49. 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
+ }