@react-native-oh-tpl/react-native-gesture-handler 2.14.16 → 2.14.17-rc.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 (95) 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 +79 -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 -19
  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/RnohReactNativeHarmonyGestureHandlerPackage.cpp +0 -123
  42. package/harmony/gesture_handler/src/main/cpp/RnohReactNativeHarmonyGestureHandlerPackage.h +0 -15
  43. package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerButtonComponentInstance.h +0 -27
  44. package/harmony/gesture_handler/src/main/cpp/componentInstances/RNGestureHandlerRootViewComponentInstance.h +0 -245
  45. package/harmony/gesture_handler/src/main/ets/RNOHPackage.ets +0 -17
  46. package/harmony/gesture_handler/src/main/ets/core/CircularBuffer.ts +0 -42
  47. package/harmony/gesture_handler/src/main/ets/core/GestureHandler.ts +0 -739
  48. package/harmony/gesture_handler/src/main/ets/core/GestureHandlerOrchestrator.ts +0 -344
  49. package/harmony/gesture_handler/src/main/ets/core/GestureHandlerRegistry.ts +0 -63
  50. package/harmony/gesture_handler/src/main/ets/core/IncomingEvent.ts +0 -78
  51. package/harmony/gesture_handler/src/main/ets/core/InteractionManager.ts +0 -144
  52. package/harmony/gesture_handler/src/main/ets/core/LeastSquareSolver.ts +0 -182
  53. package/harmony/gesture_handler/src/main/ets/core/Multiset.ts +0 -26
  54. package/harmony/gesture_handler/src/main/ets/core/OutgoingEvent.ts +0 -34
  55. package/harmony/gesture_handler/src/main/ets/core/OutgoingEventDispatcher.ts +0 -12
  56. package/harmony/gesture_handler/src/main/ets/core/PointerTracker.ts +0 -239
  57. package/harmony/gesture_handler/src/main/ets/core/RNGHError.ts +0 -5
  58. package/harmony/gesture_handler/src/main/ets/core/RNGHLogger.ts +0 -16
  59. package/harmony/gesture_handler/src/main/ets/core/State.ts +0 -47
  60. package/harmony/gesture_handler/src/main/ets/core/Vector2D.ts +0 -80
  61. package/harmony/gesture_handler/src/main/ets/core/VelocityTracker.ts +0 -106
  62. package/harmony/gesture_handler/src/main/ets/core/View.ts +0 -21
  63. package/harmony/gesture_handler/src/main/ets/core/ViewRegistry.ts +0 -7
  64. package/harmony/gesture_handler/src/main/ets/core/index.ts +0 -15
  65. package/harmony/gesture_handler/src/main/ets/detectors/ScaleGestureDetector.ts +0 -169
  66. package/harmony/gesture_handler/src/main/ets/gesture-handlers/FlingGestureHandler.ts +0 -219
  67. package/harmony/gesture_handler/src/main/ets/gesture-handlers/GestureHandlerFactory.ts +0 -67
  68. package/harmony/gesture_handler/src/main/ets/gesture-handlers/LongPressGestureHandler.ts +0 -139
  69. package/harmony/gesture_handler/src/main/ets/gesture-handlers/ManualGestureHandler.ts +0 -50
  70. package/harmony/gesture_handler/src/main/ets/gesture-handlers/NativeViewGestureHandler.ts +0 -124
  71. package/harmony/gesture_handler/src/main/ets/gesture-handlers/PanGestureHandler.ts +0 -375
  72. package/harmony/gesture_handler/src/main/ets/gesture-handlers/PinchGestureHandler.ts +0 -174
  73. package/harmony/gesture_handler/src/main/ets/gesture-handlers/RotationGestureHandler.ts +0 -172
  74. package/harmony/gesture_handler/src/main/ets/gesture-handlers/TapGestureHandler.ts +0 -216
  75. package/harmony/gesture_handler/src/main/ets/gesture-handlers/detectors/RotationGestureDetector.ts +0 -167
  76. package/harmony/gesture_handler/src/main/ets/gesture-handlers/index.ts +0 -1
  77. package/harmony/gesture_handler/src/main/ets/rnoh/GestureHandlerPackage.ts +0 -25
  78. package/harmony/gesture_handler/src/main/ets/rnoh/Logger.ts +0 -107
  79. package/harmony/gesture_handler/src/main/ets/rnoh/OutgoingEventDispatchers.ts +0 -94
  80. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHRootViewController.ts +0 -196
  81. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHView.ts +0 -89
  82. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHViewController.ts +0 -255
  83. package/harmony/gesture_handler/src/main/ets/rnoh/RNGHViewRegistry.ts +0 -19
  84. package/harmony/gesture_handler/src/main/ets/rnoh/RNGestureHandlerModule.ts +0 -267
  85. package/harmony/gesture_handler/src/main/ets/rnoh/RNOHGestureResponder.ts +0 -15
  86. package/harmony/gesture_handler/src/main/ets/rnoh/RNOHScrollLocker.ts +0 -25
  87. package/harmony/gesture_handler/src/main/ets/rnoh/types.ts +0 -25
  88. package/harmony/gesture_handler/src/main/module.json5 +0 -9
  89. package/harmony/gesture_handler/src/main/resources/base/element/color.json +0 -8
  90. package/harmony/gesture_handler/src/main/resources/base/element/string.json +0 -16
  91. package/harmony/gesture_handler/src/main/resources/base/media/icon.png +0 -0
  92. package/harmony/gesture_handler/src/main/resources/base/profile/main_pages.json +0 -5
  93. package/harmony/gesture_handler/src/main/resources/en_US/element/string.json +0 -16
  94. package/harmony/gesture_handler/src/main/resources/zh_CN/element/string.json +0 -16
  95. package/harmony/gesture_handler/ts.ts +0 -2
package/package.json CHANGED
@@ -1,78 +1,79 @@
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.16",
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.1",
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
+ "keywords": [],
41
+ "author": "",
42
+ "license": "ISC",
43
+ "devDependencies": {
44
+ "@types/hoist-non-react-statics": "^3.3.1",
45
+ "react-native-gesture-handler": "2.14.1",
46
+ "@babel/core": "^7.12.9",
47
+ "@babel/plugin-proposal-class-properties": "^7.12.1",
48
+ "@babel/preset-env": "^7.12.11",
49
+ "@babel/preset-typescript": "^7.12.7",
50
+ "@babel/runtime": "^7.12.5",
51
+ "@types/react": "^18.2.18",
52
+ "metro-react-native-babel-preset": "^0.64.0",
53
+ "react": "^18.2.0",
54
+ "react-native": "^0.72.0",
55
+ "react-native-builder-bob": "^0.21.3",
56
+ "typescript": "4.5.5"
57
+ },
58
+ "files": [
59
+ "./harmony/*",
60
+ "src",
61
+ "lib",
62
+ "DrawerLayout/",
63
+ "Swipeable/"
64
+ ],
65
+ "react-native-builder-bob": {
66
+ "source": "src",
67
+ "output": "lib",
68
+ "targets": [
69
+ "commonjs",
70
+ "module",
71
+ [
72
+ "typescript",
73
+ {
74
+ "project": "tsconfig.build.json"
75
+ }
76
+ ]
77
+ ]
78
+ }
79
+ }
@@ -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
+ }