treege 0.4.15 → 0.4.17

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/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
1
  # [Versions](https://github.com/Tracktor/treege/releases)
2
2
 
3
- ## v0.4.15
4
- - vite config
3
+ ## v0.4.17
4
+ - file structure
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { TreeRenderCustomNodeElementFn } from '../../../features/Treege/type/TreeNode';
3
- interface TreeFormProps {
3
+ interface TreeProps {
4
4
  data: any;
5
5
  nodeSize?: {
6
6
  x: number;
@@ -8,5 +8,5 @@ interface TreeFormProps {
8
8
  };
9
9
  renderCustomNodeElement?: TreeRenderCustomNodeElementFn;
10
10
  }
11
- declare const _default: import("react").MemoExoticComponent<({ data, renderCustomNodeElement, nodeSize, }: TreeFormProps) => JSX.Element | null>;
11
+ declare const _default: import("react").MemoExoticComponent<({ data, renderCustomNodeElement, nodeSize, }: TreeProps) => JSX.Element | null>;
12
12
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const useTreeForm: () => {
1
+ declare const useTree: () => {
2
2
  dimensions: {
3
3
  height: number;
4
4
  width: number;
@@ -9,4 +9,4 @@ declare const useTreeForm: () => {
9
9
  y: number;
10
10
  };
11
11
  };
12
- export default useTreeForm;
12
+ export default useTree;
@@ -6,7 +6,7 @@ interface TreeModalProps {
6
6
  open: boolean;
7
7
  onClose?(): void;
8
8
  }
9
- export declare const TransitionRef: import("react").ForwardRefExoticComponent<{
9
+ export declare const Transition: import("react").ForwardRefExoticComponent<{
10
10
  children: ReactElement;
11
11
  } & TransitionProps & import("react").RefAttributes<unknown>>;
12
12
  declare const TreeModal: ({ children, open, onClose, title }: TreeModalProps) => JSX.Element;