react-native-drax 0.10.3 → 0.11.0-alpha.2

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 (47) hide show
  1. package/.eslintrc.js +2 -73
  2. package/.prettierrc +16 -0
  3. package/README.md +81 -1
  4. package/build/AllHoverViews.d.ts +0 -0
  5. package/build/AllHoverViews.js +30 -0
  6. package/build/DraxContext.d.ts +0 -1
  7. package/build/DraxList.d.ts +3 -3
  8. package/build/DraxList.js +231 -216
  9. package/build/DraxListItem.d.ts +7 -0
  10. package/build/DraxListItem.js +121 -0
  11. package/build/DraxProvider.d.ts +1 -3
  12. package/build/DraxProvider.js +322 -259
  13. package/build/DraxScrollView.d.ts +1 -1
  14. package/build/DraxScrollView.js +29 -90
  15. package/build/DraxSubprovider.d.ts +2 -2
  16. package/build/DraxSubprovider.js +1 -1
  17. package/build/DraxView.d.ts +7 -2
  18. package/build/DraxView.js +60 -383
  19. package/build/HoverView.d.ts +8 -0
  20. package/build/HoverView.js +40 -0
  21. package/build/PanGestureDetector.d.ts +3 -0
  22. package/build/PanGestureDetector.js +49 -0
  23. package/build/hooks/useContent.d.ts +23 -0
  24. package/build/hooks/useContent.js +212 -0
  25. package/build/hooks/useDraxProtocol.d.ts +5 -0
  26. package/build/hooks/useDraxProtocol.js +32 -0
  27. package/build/hooks/useDraxRegistry.d.ts +21 -20
  28. package/build/hooks/useDraxRegistry.js +195 -182
  29. package/build/hooks/useDraxScrollHandler.d.ts +25 -0
  30. package/build/hooks/useDraxScrollHandler.js +89 -0
  31. package/build/hooks/useDraxState.d.ts +1 -1
  32. package/build/hooks/useDraxState.js +9 -6
  33. package/build/hooks/useMeasurements.d.ts +9 -0
  34. package/build/hooks/useMeasurements.js +119 -0
  35. package/build/hooks/useStatus.d.ts +11 -0
  36. package/build/hooks/useStatus.js +96 -0
  37. package/build/index.d.ts +2 -0
  38. package/build/index.js +4 -1
  39. package/build/math.d.ts +2 -2
  40. package/build/math.js +10 -6
  41. package/build/params.d.ts +9 -0
  42. package/build/params.js +7 -1
  43. package/build/transform.d.ts +11 -4
  44. package/build/transform.js +50 -8
  45. package/build/types.d.ts +238 -87
  46. package/build/types.js +10 -7
  47. package/package.json +43 -45
package/package.json CHANGED
@@ -1,47 +1,45 @@
1
1
  {
2
- "name": "react-native-drax",
3
- "version": "0.10.3",
4
- "description": "A drag-and-drop system for React Native",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+ssh://git@github.com/nuclearpasta/react-native-drax.git"
8
- },
9
- "main": "build/index.js",
10
- "types": "build/index.d.ts",
11
- "scripts": {
12
- "lint": "yarn run eslint src",
13
- "build": "yarn run tsc",
14
- "prepublish": "yarn run build"
15
- },
16
- "author": "Joe Lafiosca <joe@proxi.gg>",
17
- "license": "MIT",
18
- "dependencies": {
19
- "lodash.isequal": "^4.5.0",
20
- "lodash.throttle": "^4.1.1",
21
- "typesafe-actions": "^5.1.0"
22
- },
23
- "peerDependencies": {
24
- "react": "*",
25
- "react-native": ">=0.65.0",
26
- "react-native-gesture-handler": ">=1.8.0"
27
- },
28
- "devDependencies": {
29
- "@types/lodash.isequal": "^4.5.5",
30
- "@types/lodash.throttle": "^4.1.6",
31
- "@types/node": "^14.14.43",
32
- "@types/react-native": "^0.65.22",
33
- "@typescript-eslint/eslint-plugin": "^4.22.0",
34
- "@typescript-eslint/parser": "^4.22.0",
35
- "eslint": "^7.25.0",
36
- "eslint-config-airbnb-typescript": "^12.3.1",
37
- "eslint-plugin-import": "^2.22.1",
38
- "eslint-plugin-jsx-a11y": "^6.4.1",
39
- "eslint-plugin-react": "^7.23.2",
40
- "eslint-plugin-react-hooks": "^4.2.0",
41
- "eslint-plugin-react-native": "^3.10.0",
42
- "react": "^17.0.2",
43
- "react-native": "^0.65.2",
44
- "react-native-gesture-handler": "^1.8.0",
45
- "typescript": "^4.7.3"
46
- }
2
+ "name": "react-native-drax",
3
+ "version": "0.11.0-alpha.2",
4
+ "description": "A drag-and-drop system for React Native",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+ssh://git@github.com/nuclearpasta/react-native-drax.git"
8
+ },
9
+ "main": "build/index.js",
10
+ "types": "build/index.d.ts",
11
+ "scripts": {
12
+ "lint": "yarn run eslint src",
13
+ "build": "yarn run tsc",
14
+ "prepublish": "yarn run build",
15
+ "publish:alpha": "npm publish --tag alpha"
16
+ },
17
+ "author": "Joe Lafiosca <joe@proxi.gg>",
18
+ "license": "MIT",
19
+ "dependencies": {
20
+ "lodash.isequal": "^4.5.0",
21
+ "lodash.throttle": "^4.1.1",
22
+ "typesafe-actions": "^5.1.0"
23
+ },
24
+ "peerDependencies": {
25
+ "react": "*",
26
+ "react-native": ">=0.65.0",
27
+ "react-native-gesture-handler": ">=1.8.0"
28
+ },
29
+ "devDependencies": {
30
+ "@types/lodash.isequal": "^4.5.5",
31
+ "@types/lodash.throttle": "^4.1.6",
32
+ "@types/node": "^14.14.43",
33
+ "@types/react": "~18.3.14",
34
+ "eslint": "8",
35
+ "eslint-config-prettier": "^10.0.1",
36
+ "eslint-config-universe": "^13.0.0",
37
+ "eslint-plugin-prettier": "^5.2.3",
38
+ "prettier": "^3.5.1",
39
+ "react": "^18.3.1",
40
+ "react-native": "^0.75.4",
41
+ "react-native-gesture-handler": "^2.20.0",
42
+ "react-native-reanimated": "^3.15.5",
43
+ "typescript": "^5.6.3"
44
+ }
47
45
  }