@react-native-oh-tpl/react-native-gesture-handler 2.12.9 → 2.14.1

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 (104) hide show
  1. package/DrawerLayout/index.ts +2 -0
  2. package/Swipeable/index.ts +2 -0
  3. package/harmony/gesture_handler.har +0 -0
  4. package/lib/commonjs/RNGestureHandlerModule.js +2 -3
  5. package/lib/commonjs/RNGestureHandlerModule.js.map +1 -1
  6. package/lib/commonjs/components/GestureHandlerRootView.js +3 -3
  7. package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -1
  8. package/lib/commonjs/handlers/createHandler.js +15 -18
  9. package/lib/commonjs/handlers/createHandler.js.map +1 -1
  10. package/lib/commonjs/index.js +94 -137
  11. package/lib/commonjs/index.js.map +1 -1
  12. package/lib/commonjs/specs/NativeRNGestureHandlerModule.js +1 -2
  13. package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +1 -1
  14. package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js +2 -3
  15. package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
  16. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js +2 -3
  17. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -1
  18. package/lib/module/RNGestureHandlerModule.js.map +1 -1
  19. package/lib/module/components/GestureHandlerRootView.js.map +1 -1
  20. package/lib/module/handlers/createHandler.js +12 -15
  21. package/lib/module/handlers/createHandler.js.map +1 -1
  22. package/lib/module/index.js +10 -141
  23. package/lib/module/index.js.map +1 -1
  24. package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -1
  25. package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
  26. package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -1
  27. package/lib/typescript/RNGestureHandlerModule.d.ts +2 -2
  28. package/lib/typescript/components/GestureHandlerRootView.d.ts +6 -6
  29. package/lib/typescript/handlers/createHandler.d.ts +11 -11
  30. package/lib/typescript/index.d.ts +42 -9
  31. package/lib/typescript/index.d.ts.map +1 -1
  32. package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +14 -14
  33. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +14 -14
  34. package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +6 -6
  35. package/package.json +74 -66
  36. package/src/RNGestureHandlerModule.ts +4 -4
  37. package/src/components/GestureHandlerRootView.tsx +23 -23
  38. package/src/handlers/createHandler.tsx +534 -534
  39. package/src/index.ts +172 -172
  40. package/src/specs/NativeRNGestureHandlerModule.ts +26 -26
  41. package/src/specs/RNGestureHandlerButtonNativeComponent.ts +18 -18
  42. package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +6 -6
  43. package/harmony/gesture_handler/BuildProfile.ets +0 -5
  44. package/harmony/gesture_handler/build-profile.json5 +0 -19
  45. package/harmony/gesture_handler/hvigorfile.ts +0 -2
  46. package/harmony/gesture_handler/index.ets +0 -3
  47. package/harmony/gesture_handler/oh-package-lock.json5 +0 -17
  48. package/harmony/gesture_handler/oh-package.json5 +0 -12
  49. package/harmony/gesture_handler/src/main/cpp/CMakeLists.txt +0 -8
  50. package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.cpp +0 -103
  51. package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +0 -21
  52. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentDescriptor.h +0 -36
  53. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentInstance.h +0 -27
  54. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonJSIBinder.h +0 -32
  55. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.cpp +0 -22
  56. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.h +0 -15
  57. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerPackage.h +0 -72
  58. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentDescriptor.h +0 -36
  59. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentInstance.h +0 -78
  60. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewJSIBinder.h +0 -25
  61. package/harmony/gesture_handler/src/main/ets/CircularBuffer.ts +0 -42
  62. package/harmony/gesture_handler/src/main/ets/Event.ts +0 -68
  63. package/harmony/gesture_handler/src/main/ets/EventDispatcher.ts +0 -53
  64. package/harmony/gesture_handler/src/main/ets/GestureHandler.ts +0 -663
  65. package/harmony/gesture_handler/src/main/ets/GestureHandlerArkUIAdapter.ts +0 -203
  66. package/harmony/gesture_handler/src/main/ets/GestureHandlerFactory.ts +0 -45
  67. package/harmony/gesture_handler/src/main/ets/GestureHandlerOrchestrator.ts +0 -280
  68. package/harmony/gesture_handler/src/main/ets/GestureHandlerPackage.ts +0 -22
  69. package/harmony/gesture_handler/src/main/ets/GestureHandlerRegistry.ts +0 -28
  70. package/harmony/gesture_handler/src/main/ets/InteractionManager.ts +0 -109
  71. package/harmony/gesture_handler/src/main/ets/LeastSquareSolver.ts +0 -182
  72. package/harmony/gesture_handler/src/main/ets/NativeViewGestureHandler.ts +0 -115
  73. package/harmony/gesture_handler/src/main/ets/OutgoingEvent.ts +0 -34
  74. package/harmony/gesture_handler/src/main/ets/PanGestureHandler.ts +0 -328
  75. package/harmony/gesture_handler/src/main/ets/PointerTracker.ts +0 -239
  76. package/harmony/gesture_handler/src/main/ets/RNGHError.ts +0 -5
  77. package/harmony/gesture_handler/src/main/ets/RNGHLogger.ts +0 -48
  78. package/harmony/gesture_handler/src/main/ets/RNGHRootTouchHandlerArkTS.ts +0 -60
  79. package/harmony/gesture_handler/src/main/ets/RNGHRootTouchHandlerCAPI.ts +0 -87
  80. package/harmony/gesture_handler/src/main/ets/RNGestureHandlerButton.ets +0 -38
  81. package/harmony/gesture_handler/src/main/ets/RNGestureHandlerModule.ts +0 -183
  82. package/harmony/gesture_handler/src/main/ets/RNGestureHandlerRootView.ets +0 -53
  83. package/harmony/gesture_handler/src/main/ets/RNOHScrollLocker.ts +0 -23
  84. package/harmony/gesture_handler/src/main/ets/State.ts +0 -47
  85. package/harmony/gesture_handler/src/main/ets/TapGestureHandler.ts +0 -206
  86. package/harmony/gesture_handler/src/main/ets/Vector2D.ts +0 -36
  87. package/harmony/gesture_handler/src/main/ets/VelocityTracker.ts +0 -98
  88. package/harmony/gesture_handler/src/main/ets/View.ts +0 -71
  89. package/harmony/gesture_handler/src/main/ets/ViewRegistry.ts +0 -43
  90. package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerButton.ts +0 -140
  91. package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerModule.ts +0 -25
  92. package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerRootView.ts +0 -101
  93. package/harmony/gesture_handler/src/main/ets/namespace/ts.ts +0 -3
  94. package/harmony/gesture_handler/src/main/ets/pages/Index.ets +0 -17
  95. package/harmony/gesture_handler/src/main/ets/types.ts +0 -25
  96. package/harmony/gesture_handler/src/main/ets/webviewability/WebviewAbility.ts +0 -41
  97. package/harmony/gesture_handler/src/main/module.json5 +0 -7
  98. package/harmony/gesture_handler/src/main/resources/base/element/color.json +0 -8
  99. package/harmony/gesture_handler/src/main/resources/base/element/string.json +0 -16
  100. package/harmony/gesture_handler/src/main/resources/base/media/icon.png +0 -0
  101. package/harmony/gesture_handler/src/main/resources/base/profile/main_pages.json +0 -5
  102. package/harmony/gesture_handler/src/main/resources/en_US/element/string.json +0 -16
  103. package/harmony/gesture_handler/src/main/resources/zh_CN/element/string.json +0 -16
  104. package/harmony/gesture_handler/ts.ts +0 -2
package/package.json CHANGED
@@ -1,66 +1,74 @@
1
- {
2
- "name": "@react-native-oh-tpl/react-native-gesture-handler",
3
- "harmony": {
4
- "alias": "react-native-gesture-handler",
5
- "redirectInternalImports": true
6
- },
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/react-native-oh-library/react-native-harmony-gesture-handler.git"
10
- },
11
- "version": "2.12.9",
12
- "description": "",
13
- "react-native": "src/index.ts",
14
- "main": "lib/commonjs/index.js",
15
- "module": "lib/module/index.js",
16
- "types": "lib/typescript/index.d.ts",
17
- "scripts": {
18
- "prepack": "bob build",
19
- "test": "jest",
20
- "pack:harmony": "react-native pack-harmony --oh-module-path ../tester/harmony/react_native_modules/gesture_handler --harmony-dir-path ./harmony --package-json-path ./package.json",
21
- "pack:prod": "npm run pack:harmony && npm pack"
22
- },
23
- "peerDependencies": {
24
- "react": "*",
25
- "react-native": "*",
26
- "react-native-harmony": "*"
27
- },
28
- "keywords": [],
29
- "author": "",
30
- "license": "ISC",
31
- "dependencies": {
32
- "react-native-gesture-handler": "2.12.1"
33
- },
34
- "devDependencies": {
35
- "@babel/core": "^7.12.9",
36
- "@babel/plugin-proposal-class-properties": "^7.12.1",
37
- "@babel/preset-env": "^7.12.11",
38
- "@babel/preset-typescript": "^7.12.7",
39
- "@babel/runtime": "^7.12.5",
40
- "@types/react": "^18.2.18",
41
- "metro-react-native-babel-preset": "^0.64.0",
42
- "react": "^18.2.0",
43
- "react-native": "^0.72.0",
44
- "react-native-builder-bob": "^0.21.3",
45
- "typescript": "4.5.5"
46
- },
47
- "files": [
48
- "harmony",
49
- "src",
50
- "lib"
51
- ],
52
- "react-native-builder-bob": {
53
- "source": "src",
54
- "output": "lib",
55
- "targets": [
56
- "commonjs",
57
- "module",
58
- [
59
- "typescript",
60
- {
61
- "project": "tsconfig.build.json"
62
- }
63
- ]
64
- ]
65
- }
66
- }
1
+ {
2
+ "name": "@react-native-oh-tpl/react-native-gesture-handler",
3
+ "harmony": {
4
+ "alias": "react-native-gesture-handler",
5
+ "redirectInternalImports": true
6
+ },
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/react-native-oh-library/react-native-harmony-gesture-handler.git"
10
+ },
11
+ "version": "2.14.1",
12
+ "description": "",
13
+ "react-native": "src/index.ts",
14
+ "main": "lib/commonjs/index.js",
15
+ "module": "lib/module/index.js",
16
+ "types": "lib/typescript/index.d.ts",
17
+ "scripts": {
18
+ "prepack": "bob build",
19
+ "test": "jest",
20
+ "pack:prod": "npm pack",
21
+ "update_version": "node ./scripts/update-version.js",
22
+ "deploy": "node ./scripts/deploy.js"
23
+ },
24
+ "peerDependencies": {
25
+ "react": "*",
26
+ "react-native": "*",
27
+ "react-native-gesture-handler": "2.14.1",
28
+ "react-native-harmony": "*"
29
+ },
30
+ "keywords": [],
31
+ "author": "",
32
+ "license": "ISC",
33
+ "dependencies": {
34
+ "react-native-gesture-handler": "2.14.1"
35
+ },
36
+ "devDependencies": {
37
+ "@babel/core": "^7.12.9",
38
+ "@babel/plugin-proposal-class-properties": "^7.12.1",
39
+ "@babel/preset-env": "^7.12.11",
40
+ "@babel/preset-typescript": "^7.12.7",
41
+ "@babel/runtime": "^7.12.5",
42
+ "@types/hoist-non-react-statics": "^3.3.1",
43
+ "@types/invariant": "^2.2.37",
44
+ "@types/react": "^18.2.18",
45
+ "metro-react-native-babel-preset": "^0.64.0",
46
+ "react": "^18.2.0",
47
+ "react-native": "^0.72.0",
48
+ "react-native-builder-bob": "^0.21.3",
49
+ "react-native-gesture-handler": "2.14.1",
50
+ "react-native-harmony": "*",
51
+ "typescript": "4.5.5"
52
+ },
53
+ "files": [
54
+ "./harmony/*",
55
+ "src",
56
+ "lib",
57
+ "DrawerLayout/",
58
+ "Swipeable/"
59
+ ],
60
+ "react-native-builder-bob": {
61
+ "source": "src",
62
+ "output": "lib",
63
+ "targets": [
64
+ "commonjs",
65
+ "module",
66
+ [
67
+ "typescript",
68
+ {
69
+ "project": "tsconfig.build.json"
70
+ }
71
+ ]
72
+ ]
73
+ }
74
+ }
@@ -1,5 +1,5 @@
1
- import NativeRNGestureHandlerModule from '../src/specs/NativeRNGestureHandlerModule';
2
-
3
- const RNGestureHandlerModule = NativeRNGestureHandlerModule;
4
-
1
+ import NativeRNGestureHandlerModule from '../src/specs/NativeRNGestureHandlerModule';
2
+
3
+ const RNGestureHandlerModule = NativeRNGestureHandlerModule;
4
+
5
5
  export default RNGestureHandlerModule;
@@ -1,23 +1,23 @@
1
- import * as React from 'react';
2
- import { PropsWithChildren } from 'react';
3
- import { ViewProps } from 'react-native';
4
- import { maybeInitializeFabric } from "react-native-gesture-handler/src/init";
5
- import GestureHandlerRootViewContext from 'react-native-gesture-handler/src/GestureHandlerRootViewContext';
6
- import RNGestureHandlerRootViewNativeComponent from '../specs/RNGestureHandlerRootViewNativeComponent';
7
- export interface GestureHandlerRootViewProps
8
- extends PropsWithChildren<ViewProps> {}
9
-
10
- export default function GestureHandlerRootView(
11
- props: GestureHandlerRootViewProps
12
- ) {
13
- // try initialize fabric on the first render, at this point we can
14
- // reliably check if fabric is enabled (the function contains a flag
15
- // to make sure it's called only once)
16
- maybeInitializeFabric();
17
-
18
- return (
19
- <GestureHandlerRootViewContext.Provider value>
20
- <RNGestureHandlerRootViewNativeComponent {...props} />
21
- </GestureHandlerRootViewContext.Provider>
22
- );
23
- }
1
+ import * as React from 'react';
2
+ import { PropsWithChildren } from 'react';
3
+ import { ViewProps } from 'react-native';
4
+ import { maybeInitializeFabric } from "react-native-gesture-handler/src/init";
5
+ import GestureHandlerRootViewContext from 'react-native-gesture-handler/src/GestureHandlerRootViewContext';
6
+ import RNGestureHandlerRootViewNativeComponent from '../specs/RNGestureHandlerRootViewNativeComponent';
7
+ export interface GestureHandlerRootViewProps
8
+ extends PropsWithChildren<ViewProps> {}
9
+
10
+ export default function GestureHandlerRootView(
11
+ props: GestureHandlerRootViewProps
12
+ ) {
13
+ // try initialize fabric on the first render, at this point we can
14
+ // reliably check if fabric is enabled (the function contains a flag
15
+ // to make sure it's called only once)
16
+ maybeInitializeFabric();
17
+
18
+ return (
19
+ <GestureHandlerRootViewContext.Provider value>
20
+ <RNGestureHandlerRootViewNativeComponent {...props} />
21
+ </GestureHandlerRootViewContext.Provider>
22
+ );
23
+ }