@lincle/react-native-interactive 0.0.0-semantic-release → 0.4.0-next.10

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 (36) hide show
  1. package/LICENSE.md +165 -0
  2. package/dist/base.d.ts +1 -0
  3. package/dist/base.js +1 -0
  4. package/dist/components/Edge/Path/index.d.ts +1 -0
  5. package/dist/components/Edge/Path/index.js +1 -0
  6. package/dist/components/Edge/index.d.ts +2 -0
  7. package/dist/components/Edge/index.js +2 -0
  8. package/dist/components/Edges/Connections/index.d.ts +4 -0
  9. package/dist/components/Edges/Connections/index.js +40 -0
  10. package/dist/components/Edges/index.d.ts +4 -0
  11. package/dist/components/Edges/index.js +32 -0
  12. package/dist/components/Graph/Grid/index.d.ts +4 -0
  13. package/dist/components/Graph/Grid/index.js +56 -0
  14. package/dist/components/Graph/index.d.ts +4 -0
  15. package/dist/components/Graph/index.js +16 -0
  16. package/dist/components/Interaction/index.d.ts +4 -0
  17. package/dist/components/Interaction/index.js +111 -0
  18. package/dist/components/Node/Draggable.d.ts +41 -0
  19. package/dist/components/Node/Draggable.js +271 -0
  20. package/dist/components/Node/MoveNode/index.d.ts +4 -0
  21. package/dist/components/Node/MoveNode/index.js +60 -0
  22. package/dist/components/Node/PullNode/index.d.ts +4 -0
  23. package/dist/components/Node/PullNode/index.js +122 -0
  24. package/dist/components/Node/index.d.ts +6 -0
  25. package/dist/components/Node/index.js +133 -0
  26. package/dist/components/Nodes/Interaction/index.d.ts +4 -0
  27. package/dist/components/Nodes/Interaction/index.js +27 -0
  28. package/dist/components/Nodes/index.d.ts +4 -0
  29. package/dist/components/Nodes/index.js +20 -0
  30. package/dist/components/index.d.ts +5 -0
  31. package/dist/components/index.js +5 -0
  32. package/dist/index.d.ts +2 -0
  33. package/dist/index.js +2 -0
  34. package/dist/shared.d.ts +45 -0
  35. package/dist/shared.js +2 -0
  36. package/package.json +40 -35
@@ -0,0 +1,45 @@
1
+ import { type EdgeControlProps, type GraphProps as InteractiveGraphProps, type MoveNodeProps as SharedMoveNodeProps, type NodeProps as SharedNodeProps, type Position, type PullNodeProps as SharedPullNodeProps, type PullProps as SharedPullProps } from '@lincle/react-interactive-shared';
2
+ import { type EdgeProps as BaseEdgeProps, type EdgesProps as BaseEdgesProps, type NodeProps as BaseNodeProps, type NodesProps as BaseNodesProps } from '@lincle/react-native-base';
3
+ import { type PropsWithChildren } from 'react';
4
+ import { type GestureResponderEvent, type PanResponderGestureState, type ViewStyle } from 'react-native';
5
+ export type DraggableEvent = GestureResponderEvent;
6
+ export type DraggableData = PanResponderGestureState;
7
+ export type NodeControlProps = {
8
+ onDrag?: (event: DraggableEvent, data: DraggableData) => void;
9
+ onEdgeDrop?: (event: DraggableEvent, sourceId: number | string, targetId?: number | string) => void;
10
+ onSelect?: () => void;
11
+ onStart?: (event: DraggableEvent) => void;
12
+ onStop?: (event: DraggableEvent, data: DraggableData) => void;
13
+ };
14
+ export type GraphNodeControlProps = {
15
+ onNodeDrag?: (event: DraggableEvent, nodeId: number | string, data: DraggableData) => void;
16
+ onNodeSelect?: (nodeId: number | string) => void;
17
+ onNodeStart?: (event: DraggableEvent, nodeId: number | string) => void;
18
+ onNodeStop?: (event: DraggableEvent, nodeId: number | string, data: DraggableData) => void;
19
+ };
20
+ export type NodeProps = SharedNodeProps & Omit<BaseNodeProps, 'ref'> & NodeControlProps;
21
+ export type PullProps = Omit<EdgeProps, 'children' | 'id' | 'path' | 'targetId'> & Omit<NodeProps, 'children' | 'id'> & SharedPullProps & {
22
+ style?: {
23
+ pull?: ViewStyle;
24
+ };
25
+ };
26
+ export type PullNodeProps = Omit<NodeProps, 'id'> & SharedPullNodeProps & {
27
+ style?: {
28
+ node?: ViewStyle;
29
+ pull?: ViewStyle;
30
+ };
31
+ };
32
+ export type NodeContextProps = EdgeControlProps & GraphNodeControlProps;
33
+ export type InteractionControlProps = {
34
+ onPointerUp?: (event: GestureResponderEvent) => void;
35
+ };
36
+ export type InteractionProps = PropsWithChildren<InteractionControlProps>;
37
+ export type NodesProps = BaseNodesProps;
38
+ export type EdgeProps = BaseEdgeProps;
39
+ export type EdgesProps = BaseEdgesProps;
40
+ export type MoveNodeProps = Omit<NodeProps, 'onDrag' | 'onSelect'> & SharedMoveNodeProps & BaseNodeProps & {
41
+ readonly onDrag?: (event: GestureResponderEvent, data: DraggableData, position: Position) => void;
42
+ };
43
+ export type GraphProps = Omit<InteractiveGraphProps, 'onNodeDrag' | 'onNodeSelect' | 'onNodeStart' | 'onNodeStop'> & GraphNodeControlProps;
44
+ export { type Connection, type Connections, type ConnectionsProps, type EdgeNodeProps, type GridProps, type ModeType, type Position, Providers, useConnection, useConnections, useDefaultLine, useDefaultNodeHeight, useDefaultNodeWidth, useDefaultShape, useDiagramId, useMode, useModeGiven, useMove, useNodePositions, useOnMode, useOnNodeDrag, useOnNodeEdgeDrop, useOnNodeSelect, useOnNodeStart, useOnNodeStop, useOnScale, useOnTranslateThrottle, usePull, useScale, useSetConnection, useSnap, useTranslate } from '@lincle/react-interactive-shared';
45
+ export { Graph as GraphBase, Marker, useUpdateEdge } from '@lincle/react-native-base';
package/dist/shared.js ADDED
@@ -0,0 +1,2 @@
1
+ export { Providers, useConnection, useConnections, useDefaultLine, useDefaultNodeHeight, useDefaultNodeWidth, useDefaultShape, useDiagramId, useMode, useModeGiven, useMove, useNodePositions, useOnMode, useOnNodeDrag, useOnNodeEdgeDrop, useOnNodeSelect, useOnNodeStart, useOnNodeStop, useOnScale, useOnTranslateThrottle, usePull, useScale, useSetConnection, useSnap, useTranslate } from '@lincle/react-interactive-shared';
2
+ export { Graph as GraphBase, Marker, useUpdateEdge } from '@lincle/react-native-base';
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@lincle/react-native-interactive",
3
- "title": "lincle react web interactive",
3
+ "title": "lincle react native interactive",
4
4
  "license": "LGPL-3.0-or-later",
5
- "version": "0.0.0-semantic-release",
5
+ "version": "0.4.0-next.10",
6
+ "private": false,
6
7
  "description": "A 'reactive' React node and edge generator",
7
8
  "author": "wallzero @wallzeroblog (http://wallzero.com)",
8
9
  "contributors": [
@@ -19,20 +20,19 @@
19
20
  "COPYING.md",
20
21
  "COPYING.LESSER.md"
21
22
  ],
22
- "homepage": "https://gitlab.com/lincle/lincle/tree/master/packages/react-native-interactive/",
23
+ "homepage": "https://gitlab.com/digested/lincle/tree/master/packages/react-native-interactive/",
23
24
  "repository": {
24
25
  "type": "git",
25
- "url": "https://gitlab.com/lincle/lincle.git"
26
+ "url": "https://gitlab.com/digested/lincle.git"
26
27
  },
27
28
  "bugs": {
28
- "url": "https://gitlab.com/lincle/lincle/issues"
29
+ "url": "https://gitlab.com/digested/lincle/issues"
29
30
  },
30
31
  "scripts": {
31
- "build": "run-s clean:dist build:prod build:styles",
32
+ "build": "run-s clean:dist build:prod",
32
33
  "build:prod": "tsc -p ./tsconfig.json",
33
- "build:watch": "run-s clean:dist build:prod build:styles build:watch:tsc",
34
+ "build:watch": "run-s clean:dist build:prod build:watch:tsc",
34
35
  "build:watch:tsc": "tsc -p ./tsconfig.json --watch --pretty --preserveWatchOutput",
35
- "build:styles": "ncp src/styles.g.css dist/styles.g.css",
36
36
  "----------------------------------------------------------------": "",
37
37
  "build:prod:config": "",
38
38
  "---------------------------------------------------------------": "",
@@ -43,40 +43,44 @@
43
43
  "clean:dist": "rimraf dist"
44
44
  },
45
45
  "devDependencies": {
46
- "@digest/eslint-config-jest": "^4.2.5",
47
- "@digest/eslint-config-react": "^4.2.5",
48
- "@digest/eslint-config-typescript": "^4.2.5",
49
- "@digest/jest-junit": "^4.2.5",
50
- "@digest/jest-react": "^4.2.5",
51
- "@digest/jest-typescript": "^4.2.5",
52
- "@digest/typescript": "^4.2.5",
53
- "@types/bezier-js": "^4.1.0",
54
- "@types/jest": "^29.5.4",
55
- "@types/lodash.throttle": "^4.1.6",
56
- "@types/lodash.debounce": "^4.0.6",
57
- "@types/node": "^20.5.9",
58
- "@types/react": "^18.2.21",
59
- "@types/react-native": "^0.72.3",
60
- "@types/react-test-renderer": "^18.0.1",
46
+ "@digest/eslint-config-jest": "^4.4.3",
47
+ "@digest/eslint-config-react": "^4.4.3",
48
+ "@digest/eslint-config-typescript": "^4.4.3",
49
+ "@digest/jest-junit": "^4.4.3",
50
+ "@digest/jest-react": "^4.4.3",
51
+ "@digest/jest-typescript": "^4.4.3",
52
+ "@digest/typescript": "^4.4.3",
53
+ "@openspacelabs/react-native-zoomable-view": "^2.1.6",
54
+ "@types/jest": "^29.5.12",
55
+ "@types/node": "^22.1.0",
56
+ "@types/react": "^18.3.3",
57
+ "@types/react-native": "^0.73.0",
58
+ "@types/react-test-renderer": "^18.3.0",
61
59
  "cross-env": "^7.0.3",
62
- "jest-environment-jsdom": "^29.6.2",
60
+ "jest-environment-jsdom": "^29.7.0",
63
61
  "jest-environment-jsdom-global": "^4.0.0",
64
62
  "ncp": "^2.0.0",
65
63
  "npm-run-all": "^4.1.5",
66
- "react": "^18.2.0",
67
- "react-native": "^0.72.5",
68
- "react-test-renderer": "^18.2.0",
69
- "rimraf": "^5.0.1"
64
+ "react": "^18.3.1",
65
+ "react-native": "^0.74.5",
66
+ "react-native-draggable": "^3.3.0",
67
+ "react-native-reanimated": "^3.14.0",
68
+ "react-native-svg": "^15.4.0",
69
+ "react-test-renderer": "^18.3.1",
70
+ "rimraf": "^6.0.1"
70
71
  },
71
72
  "dependencies": {
72
- "@lincle/react-interactive-shared": "^0.0.1",
73
- "@lincle/react-shared": "^0.0.1",
74
- "@lincle/react-native-base": "^0.0.1",
75
- "react-native-draggable": "^3.3.0"
73
+ "@lincle/react-interactive-shared": "^0.4.0-next.10",
74
+ "@lincle/react-native-base": "^0.4.0-next.10",
75
+ "@lincle/react-shared": "^0.4.0-next.10"
76
76
  },
77
77
  "peerDependencies": {
78
+ "@openspacelabs/react-native-zoomable-view": "^2.1.0",
78
79
  "react": "^16.0.0 || ^17.0.0 || ^18.0.0",
79
- "react-native": "^0.72.5"
80
+ "react-native": "^0.72.0",
81
+ "react-native-draggable": "^3.3.0",
82
+ "react-native-reanimated": "^3.0.0",
83
+ "react-native-svg": "^13.0.0"
80
84
  },
81
85
  "keywords": [
82
86
  "library",
@@ -85,7 +89,7 @@
85
89
  "react",
86
90
  "reactjs",
87
91
  "react-dom",
88
- "react-web",
92
+ "react-native",
89
93
  "reactive",
90
94
  "react-draggable",
91
95
  "interactive",
@@ -96,5 +100,6 @@
96
100
  "cyclical graph",
97
101
  "dragndrop",
98
102
  "drag"
99
- ]
103
+ ],
104
+ "gitHead": "c672cbc4ddbc1944133ea10ac26a4c04e7d8e3ba"
100
105
  }