treege 1.4.1 → 1.5.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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "treege",
3
3
  "description": "Form decision tree generator",
4
4
  "license": "ISC",
5
- "version": "1.4.1",
5
+ "version": "1.5.1",
6
6
  "type": "module",
7
7
  "types": "./dist/main.d.ts",
8
8
  "main": "./dist/main.umd.cjs",
@@ -1,81 +0,0 @@
1
- import { CurrentTree, ModalType, TreeNode, TreePath } from '@tracktor/types-treege';
2
- import { HierarchyPointNode } from 'd3-hierarchy';
3
- import { ReducerAction, SetStateAction } from 'react';
4
- import { BackendConfig } from '../../../src/features/Treege/Treege';
5
- export interface TreeDefaultValue {
6
- /**
7
- * This is the backend configuration
8
- */
9
- backendConfig?: BackendConfig;
10
- /**
11
- * CurrentHierarchyPointNode is the current node selected
12
- */
13
- currentHierarchyPointNode: null | HierarchyPointNode<TreeNode>;
14
- /**
15
- * This is the current tree information
16
- * {
17
- * "id": "treeId",
18
- * "name": "Tree name"
19
- * }
20
- */
21
- currentTree: CurrentTree;
22
- /**
23
- * This is the tree node object
24
- */
25
- tree: null | TreeNode;
26
- /**
27
- * This is the tree modal open state
28
- */
29
- treeModalOpen: boolean;
30
- /**
31
- * This is the tree path
32
- * [
33
- * {
34
- * "label": "Tree name",
35
- * "path": "uuid"
36
- * }
37
- * ]
38
- */
39
- treePath: TreePath[] | [];
40
- /**
41
- * This is the modal open state
42
- */
43
- modalOpen: ModalType;
44
- /**
45
- * This is the version of Treege
46
- */
47
- version: string;
48
- /**
49
- * This is the tree node dispatch function
50
- * @param state
51
- */
52
- dispatchTree(state: ReducerAction<any>): void;
53
- /**
54
- * This is the function to set the modal open state
55
- * @param state
56
- */
57
- setCurrentHierarchyPointNode(state: SetStateAction<null | HierarchyPointNode<TreeNode>>): void;
58
- /**
59
- * This is the function to set the current tree information
60
- * Not the node to display tree
61
- * @param state
62
- */
63
- setCurrentTree(state: SetStateAction<CurrentTree>): void;
64
- /**
65
- * This is the function to set the modal open state
66
- * @param state
67
- */
68
- setModalOpen(state: SetStateAction<ModalType>): void;
69
- /**
70
- * This is the function to set the modal open state
71
- * @param state
72
- */
73
- setTreeModalOpen(state: SetStateAction<boolean>): void;
74
- /**
75
- * This is the function to set the tree path
76
- * @param state
77
- */
78
- setTreePath(state: SetStateAction<TreePath[] | []>): void;
79
- }
80
- export declare const treeDefaultValue: TreeDefaultValue;
81
- export declare const TreegeContext: import('react').Context<TreeDefaultValue>;
@@ -1,2 +0,0 @@
1
- import { default as Treege } from './Treege';
2
- export default Treege;