@react-native-oh-tpl/react-native-gesture-handler 2.14.15 → 2.14.17-rc.0

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 (106) hide show
  1. package/DrawerLayout/index.ts +2 -2
  2. package/Swipeable/index.ts +2 -2
  3. package/harmony/gesture_handler.har +0 -0
  4. package/lib/commonjs/RNGestureHandlerModule.js.map +1 -1
  5. package/lib/commonjs/components/GestureHandlerRootView.js.map +1 -1
  6. package/lib/commonjs/handlers/createHandler.js.map +1 -1
  7. package/lib/commonjs/index.js.map +1 -1
  8. package/lib/commonjs/specs/NativeRNGestureHandlerModule.js.map +1 -1
  9. package/lib/commonjs/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
  10. package/lib/commonjs/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -1
  11. package/lib/module/RNGestureHandlerModule.js.map +1 -1
  12. package/lib/module/components/GestureHandlerRootView.js.map +1 -1
  13. package/lib/module/handlers/createHandler.js.map +1 -1
  14. package/lib/module/index.js.map +1 -1
  15. package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -1
  16. package/lib/module/specs/RNGestureHandlerButtonNativeComponent.js.map +1 -1
  17. package/lib/module/specs/RNGestureHandlerRootViewNativeComponent.js.map +1 -1
  18. package/lib/typescript/RNGestureHandlerModule.d.ts +2 -2
  19. package/lib/typescript/components/GestureHandlerRootView.d.ts +6 -6
  20. package/lib/typescript/handlers/createHandler.d.ts +11 -11
  21. package/lib/typescript/index.d.ts +47 -47
  22. package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +14 -14
  23. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +14 -14
  24. package/lib/typescript/specs/RNGestureHandlerRootViewNativeComponent.d.ts +6 -6
  25. package/package.json +83 -78
  26. package/src/RNGestureHandlerModule.ts +4 -4
  27. package/src/components/GestureHandlerRootView.tsx +23 -23
  28. package/src/handlers/createHandler.tsx +534 -534
  29. package/src/index.ts +172 -172
  30. package/src/specs/NativeRNGestureHandlerModule.ts +26 -26
  31. package/src/specs/RNGestureHandlerButtonNativeComponent.ts +18 -18
  32. package/src/specs/RNGestureHandlerRootViewNativeComponent.ts +6 -6
  33. package/harmony/gesture_handler/BuildProfile.ets +0 -17
  34. package/harmony/gesture_handler/build-profile.json5 +0 -12
  35. package/harmony/gesture_handler/hvigorfile.ts +0 -2
  36. package/harmony/gesture_handler/index.ets +0 -2
  37. package/harmony/gesture_handler/oh-package-lock.json5 +0 -18
  38. package/harmony/gesture_handler/oh-package.json5 +0 -12
  39. package/harmony/gesture_handler/src/main/cpp/CMakeLists.txt +0 -8
  40. package/harmony/gesture_handler/src/main/cpp/GestureHandlerPackage.h +0 -12
  41. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonComponentDescriptor.h +0 -36
  42. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerButtonJSIBinder.h +0 -32
  43. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.cpp +0 -22
  44. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerModule.h +0 -15
  45. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewComponentDescriptor.h +0 -36
  46. package/harmony/gesture_handler/src/main/cpp/RNGestureHandlerRootViewJSIBinder.h +0 -25
  47. package/harmony/gesture_handler/src/main/cpp/RnohReactNativeHarmonyGestureHandlerPackage.cpp +0 -157
  48. package/harmony/gesture_handler/src/main/cpp/RnohReactNativeHarmonyGestureHandlerPackage.h +0 -21
  49. package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerButtonComponentInstance.h +0 -27
  50. package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerRootViewComponentInstance.h +0 -245
  51. package/harmony/gesture_handler/src/main/ets/RNOHPackage.ets +0 -17
  52. package/harmony/gesture_handler/src/main/ets/core/CircularBuffer.ts +0 -42
  53. package/harmony/gesture_handler/src/main/ets/core/GestureHandler.ts +0 -739
  54. package/harmony/gesture_handler/src/main/ets/core/GestureHandlerOrchestrator.ts +0 -344
  55. package/harmony/gesture_handler/src/main/ets/core/GestureHandlerRegistry.ts +0 -63
  56. package/harmony/gesture_handler/src/main/ets/core/IncomingEvent.ts +0 -78
  57. package/harmony/gesture_handler/src/main/ets/core/InteractionManager.ts +0 -144
  58. package/harmony/gesture_handler/src/main/ets/core/LeastSquareSolver.ts +0 -182
  59. package/harmony/gesture_handler/src/main/ets/core/Multiset.ts +0 -26
  60. package/harmony/gesture_handler/src/main/ets/core/OutgoingEvent.ts +0 -34
  61. package/harmony/gesture_handler/src/main/ets/core/OutgoingEventDispatcher.ts +0 -12
  62. package/harmony/gesture_handler/src/main/ets/core/PointerTracker.ts +0 -239
  63. package/harmony/gesture_handler/src/main/ets/core/RNGHError.ts +0 -5
  64. package/harmony/gesture_handler/src/main/ets/core/RNGHLogger.ts +0 -16
  65. package/harmony/gesture_handler/src/main/ets/core/State.ts +0 -47
  66. package/harmony/gesture_handler/src/main/ets/core/Vector2D.ts +0 -80
  67. package/harmony/gesture_handler/src/main/ets/core/VelocityTracker.ts +0 -106
  68. package/harmony/gesture_handler/src/main/ets/core/View.ts +0 -21
  69. package/harmony/gesture_handler/src/main/ets/core/ViewRegistry.ts +0 -7
  70. package/harmony/gesture_handler/src/main/ets/core/index.ts +0 -15
  71. package/harmony/gesture_handler/src/main/ets/detectors/ScaleGestureDetector.ts +0 -169
  72. package/harmony/gesture_handler/src/main/ets/gesture-handlers/FlingGestureHandler.ts +0 -219
  73. package/harmony/gesture_handler/src/main/ets/gesture-handlers/GestureHandlerFactory.ts +0 -67
  74. package/harmony/gesture_handler/src/main/ets/gesture-handlers/LongPressGestureHandler.ts +0 -139
  75. package/harmony/gesture_handler/src/main/ets/gesture-handlers/ManualGestureHandler.ts +0 -50
  76. package/harmony/gesture_handler/src/main/ets/gesture-handlers/NativeViewGestureHandler.ts +0 -124
  77. package/harmony/gesture_handler/src/main/ets/gesture-handlers/PanGestureHandler.ts +0 -375
  78. package/harmony/gesture_handler/src/main/ets/gesture-handlers/PinchGestureHandler.ts +0 -174
  79. package/harmony/gesture_handler/src/main/ets/gesture-handlers/RotationGestureHandler.ts +0 -172
  80. package/harmony/gesture_handler/src/main/ets/gesture-handlers/TapGestureHandler.ts +0 -216
  81. package/harmony/gesture_handler/src/main/ets/gesture-handlers/detectors/RotationGestureDetector.ts +0 -167
  82. package/harmony/gesture_handler/src/main/ets/gesture-handlers/index.ts +0 -1
  83. package/harmony/gesture_handler/src/main/ets/namespace/RNGestureHandlerModule.ts +0 -24
  84. package/harmony/gesture_handler/src/main/ets/namespace/components/RNGestureHandlerButton.ts +0 -139
  85. package/harmony/gesture_handler/src/main/ets/namespace/components/RNGestureHandlerRootView.ts +0 -101
  86. package/harmony/gesture_handler/src/main/ets/namespace/components/ts.ts +0 -2
  87. package/harmony/gesture_handler/src/main/ets/namespace/ts.ts +0 -2
  88. package/harmony/gesture_handler/src/main/ets/rnoh/GestureHandlerPackage.ts +0 -25
  89. package/harmony/gesture_handler/src/main/ets/rnoh/Logger.ts +0 -107
  90. package/harmony/gesture_handler/src/main/ets/rnoh/OutgoingEventDispatchers.ts +0 -94
  91. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHRootViewController.ts +0 -196
  92. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHView.ts +0 -85
  93. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHViewController.ts +0 -255
  94. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHViewRegistry.ts +0 -19
  95. package/harmony/gesture_handler/src/main/ets/rnoh/RNGestureHandlerModule.ts +0 -267
  96. package/harmony/gesture_handler/src/main/ets/rnoh/RNOHGestureResponder.ts +0 -15
  97. package/harmony/gesture_handler/src/main/ets/rnoh/RNOHScrollLocker.ts +0 -25
  98. package/harmony/gesture_handler/src/main/ets/rnoh/types.ts +0 -25
  99. package/harmony/gesture_handler/src/main/module.json5 +0 -9
  100. package/harmony/gesture_handler/src/main/resources/base/element/color.json +0 -8
  101. package/harmony/gesture_handler/src/main/resources/base/element/string.json +0 -16
  102. package/harmony/gesture_handler/src/main/resources/base/media/icon.png +0 -0
  103. package/harmony/gesture_handler/src/main/resources/base/profile/main_pages.json +0 -5
  104. package/harmony/gesture_handler/src/main/resources/en_US/element/string.json +0 -16
  105. package/harmony/gesture_handler/src/main/resources/zh_CN/element/string.json +0 -16
  106. package/harmony/gesture_handler/ts.ts +0 -2
package/package.json CHANGED
@@ -1,78 +1,83 @@
1
- {
2
- "name": "@react-native-oh-tpl/react-native-gesture-handler",
3
- "harmony": {
4
- "alias": "react-native-gesture-handler",
5
- "codegenConfig": {
6
- "specPaths": [
7
- "./src/specs"
8
- ]
9
- },
10
- "redirectInternalImports": true,
11
- "autolinking": {
12
- "cmakeLibraryTargetName": "rnoh_gesture_handler",
13
- "ohPackageName": "@react-native-oh-tpl/react-native-gesture-handler"
14
- }
15
- },
16
- "repository": {
17
- "type": "git",
18
- "url": "https://github.com/react-native-oh-library/react-native-harmony-gesture-handler.git"
19
- },
20
- "version": "2.14.15",
21
- "description": "",
22
- "react-native": "src/index.ts",
23
- "main": "lib/commonjs/index.js",
24
- "module": "lib/module/index.js",
25
- "types": "lib/typescript/index.d.ts",
26
- "scripts": {
27
- "prepack": "bob build",
28
- "test": "jest",
29
- "pack:prod": "npm pack",
30
- "update_version": "node ./scripts/update-version.js",
31
- "deploy": "node ./scripts/deploy.js"
32
- },
33
- "peerDependencies": {
34
- "react": "*",
35
- "react-native": "*",
36
- "react-native-harmony": "*",
37
- "react-native-gesture-handler": "2.14.1"
38
- },
39
- "keywords": [],
40
- "author": "",
41
- "license": "ISC",
42
- "devDependencies": {
43
- "@types/hoist-non-react-statics": "^3.3.1",
44
- "react-native-gesture-handler": "2.14.1",
45
- "@babel/core": "^7.12.9",
46
- "@babel/plugin-proposal-class-properties": "^7.12.1",
47
- "@babel/preset-env": "^7.12.11",
48
- "@babel/preset-typescript": "^7.12.7",
49
- "@babel/runtime": "^7.12.5",
50
- "@types/react": "^18.2.18",
51
- "metro-react-native-babel-preset": "^0.64.0",
52
- "react": "^18.2.0",
53
- "react-native": "^0.72.0",
54
- "react-native-builder-bob": "^0.21.3",
55
- "typescript": "4.5.5"
56
- },
57
- "files": [
58
- "./harmony/*",
59
- "src",
60
- "lib",
61
- "DrawerLayout/",
62
- "Swipeable/"
63
- ],
64
- "react-native-builder-bob": {
65
- "source": "src",
66
- "output": "lib",
67
- "targets": [
68
- "commonjs",
69
- "module",
70
- [
71
- "typescript",
72
- {
73
- "project": "tsconfig.build.json"
74
- }
75
- ]
76
- ]
77
- }
78
- }
1
+ {
2
+ "name": "@react-native-oh-tpl/react-native-gesture-handler",
3
+ "harmony": {
4
+ "alias": "react-native-gesture-handler",
5
+ "codegenConfig": {
6
+ "specPaths": [
7
+ "./src/specs"
8
+ ]
9
+ },
10
+ "redirectInternalImports": true,
11
+ "autolinking": {
12
+ "cmakeLibraryTargetName": "rnoh_gesture_handler",
13
+ "ohPackageName": "@react-native-oh-tpl/react-native-gesture-handler"
14
+ }
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/react-native-oh-library/react-native-harmony-gesture-handler.git"
19
+ },
20
+ "version": "2.14.17-rc.0",
21
+ "description": "",
22
+ "react-native": "src/index.ts",
23
+ "main": "lib/commonjs/index.js",
24
+ "module": "lib/module/index.js",
25
+ "types": "lib/typescript/index.d.ts",
26
+ "scripts": {
27
+ "prepack": "bob build",
28
+ "test": "jest",
29
+ "pack:prod": "npm pack",
30
+ "prepublishOnly": "npm run prepack",
31
+ "update_version": "node ./scripts/update-version.js",
32
+ "deploy": "node ./scripts/deploy.js"
33
+ },
34
+ "peerDependencies": {
35
+ "react": "*",
36
+ "react-native": "*",
37
+ "react-native-harmony": "*",
38
+ "react-native-gesture-handler": "2.14.1"
39
+ },
40
+ "publishConfig": {
41
+ "registry": "https://registry.npmjs.org/",
42
+ "access": "public"
43
+ },
44
+ "keywords": [],
45
+ "author": "",
46
+ "license": "ISC",
47
+ "devDependencies": {
48
+ "@types/hoist-non-react-statics": "^3.3.1",
49
+ "react-native-gesture-handler": "2.14.1",
50
+ "@babel/core": "^7.12.9",
51
+ "@babel/plugin-proposal-class-properties": "^7.12.1",
52
+ "@babel/preset-env": "^7.12.11",
53
+ "@babel/preset-typescript": "^7.12.7",
54
+ "@babel/runtime": "^7.12.5",
55
+ "@types/react": "^18.2.18",
56
+ "metro-react-native-babel-preset": "^0.64.0",
57
+ "react": "^18.2.0",
58
+ "react-native": "^0.72.0",
59
+ "react-native-builder-bob": "^0.21.3",
60
+ "typescript": "4.5.5"
61
+ },
62
+ "files": [
63
+ "./harmony/*",
64
+ "src",
65
+ "lib",
66
+ "DrawerLayout/",
67
+ "Swipeable/"
68
+ ],
69
+ "react-native-builder-bob": {
70
+ "source": "src",
71
+ "output": "lib",
72
+ "targets": [
73
+ "commonjs",
74
+ "module",
75
+ [
76
+ "typescript",
77
+ {
78
+ "project": "tsconfig.build.json"
79
+ }
80
+ ]
81
+ ]
82
+ }
83
+ }
@@ -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
+ }