treege 0.6.4 → 0.7.0

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 (25) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/components/DataDisplay/Icons/TreePlusIcon.d.ts +0 -1
  3. package/dist/components/DataDisplay/Logo/Logo.d.ts +0 -1
  4. package/dist/components/DataDisplay/ViewerJSON/ViewerJSON.d.ts +0 -1
  5. package/dist/components/DataDisplay/ViewerJSONAction/ViewerJSONAction.d.ts +0 -1
  6. package/dist/components/FeedBack/TreeModal/TreeModal.d.ts +1 -1
  7. package/dist/config/theme.d.ts +1 -1
  8. package/dist/context/Snackbar/SnackbarContext.d.ts +1 -1
  9. package/dist/features/Treege/Treege.d.ts +1 -2
  10. package/dist/features/Treege/components/ButtonCreateTree/ButtonCreateTree.d.ts +0 -1
  11. package/dist/features/Treege/components/FieldsSelect/FieldsSelect.d.ts +1 -2
  12. package/dist/features/Treege/components/Forms/FormTreeCardDelete/FormTreeCardDelete.d.ts +0 -1
  13. package/dist/features/Treege/components/Forms/FormTreeCardMutation/ExtraField.d.ts +1 -1
  14. package/dist/features/Treege/components/Forms/FormTreeCardMutation/FormTreeCardMutation.d.ts +0 -1
  15. package/dist/features/Treege/components/Forms/FormTreeCardMutation/useFormTreeCardMutation.d.ts +2 -2
  16. package/dist/features/Treege/components/TreeCardContainer/TreeCardContainer.d.ts +0 -1
  17. package/dist/features/Treege/components/TreeGrid/TreeGrid.d.ts +0 -1
  18. package/dist/features/Treege/components/TreeNameTextField/TreeNameTextField.d.ts +0 -1
  19. package/dist/features/Treege/components/TreeSelect/TreeSelect.d.ts +1 -2
  20. package/dist/features/Treege/components/TreeSelect/useTreeSelect.d.ts +1 -1
  21. package/dist/features/Treege/context/TreegeContext.d.ts +3 -3
  22. package/dist/features/Treege/type/TreeNode.d.ts +2 -3
  23. package/dist/main.js +3663 -3340
  24. package/dist/main.umd.cjs +32 -32
  25. package/package.json +13 -13
package/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
1
  # [Versions](https://github.com/Tracktor/treege/releases)
2
2
 
3
- ## v0.6.4
4
- - Improve theme options
3
+ ## v0.7.0
4
+ - update dependencies
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface TreePlusIconProps {
3
2
  color?: string;
4
3
  height?: string | number;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Logo: () => JSX.Element;
3
2
  export default Logo;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ViewerJSONProps {
3
2
  value: any;
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ViewerJSONProps {
3
2
  value: any;
4
3
  downloadedFileName?: string;
@@ -1,4 +1,4 @@
1
- import { TransitionProps } from "design-system-tracktor";
1
+ import { TransitionProps } from "@tracktor/design-system";
2
2
  import { ReactElement, ReactNode } from "react";
3
3
  interface TreeModalProps {
4
4
  children?: ReactNode;
@@ -1,3 +1,3 @@
1
- import type { ThemeOptions } from "design-system-tracktor";
1
+ import type { ThemeOptions } from "@tracktor/design-system";
2
2
  declare const darkTheme: ThemeOptions;
3
3
  export default darkTheme;
@@ -1,5 +1,5 @@
1
1
  import { ReducerAction } from "react";
2
- declare type Severity = "error" | "warning" | "info" | "success";
2
+ type Severity = "error" | "warning" | "info" | "success";
3
3
  export interface SnackbarState {
4
4
  open: boolean;
5
5
  message?: string;
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  import type { TreeNode } from '../../features/Treege/type/TreeNode';
3
- declare type TreegeProps = {
2
+ type TreegeProps = {
4
3
  authToken?: string;
5
4
  endPoint?: string;
6
5
  initialTree?: never;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const ButtonCreateTree: () => JSX.Element;
3
2
  export default ButtonCreateTree;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import { SelectChangeEvent } from "design-system-tracktor";
1
+ import { SelectChangeEvent } from "@tracktor/design-system";
3
2
  import type { TreeNodeField } from '../../../../features/Treege/type/TreeNode';
4
3
  interface FieldsSelectProps {
5
4
  value: TreeNodeField["type"];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FormTreeCardMutationProps {
3
2
  onClose?(): void;
4
3
  }
@@ -1,4 +1,4 @@
1
- import { SelectChangeEvent } from "design-system-tracktor";
1
+ import { SelectChangeEvent } from "@tracktor/design-system";
2
2
  import type { ChangeEvent } from "react";
3
3
  interface ExtraFieldProps {
4
4
  helperText: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface FormTreeCardMutationProps {
3
2
  onClose?(): void;
4
3
  }
@@ -1,4 +1,4 @@
1
- import type { SelectChangeEvent } from "design-system-tracktor";
1
+ import type { SelectChangeEvent } from "@tracktor/design-system";
2
2
  import { ChangeEvent, FormEvent } from "react";
3
3
  import type { TreeNodeField } from '../../../../../features/Treege/type/TreeNode';
4
4
  declare const useFormTreeCardMutation: () => {
@@ -40,7 +40,7 @@ declare const useFormTreeCardMutation: () => {
40
40
  required: boolean;
41
41
  step: string;
42
42
  treeSelected: string;
43
- type: "number" | "text" | "address" | "select" | "time" | "switch" | "hidden" | "checkbox" | "radio" | "tree" | "tel" | "url" | "email" | "file" | "password" | "date";
43
+ type: "number" | "text" | "address" | "select" | "time" | "switch" | "hidden" | "email" | "file" | "password" | "tel" | "url" | "date" | "checkbox" | "radio" | "tree";
44
44
  uniqueNameErrorMessage: string;
45
45
  values: {
46
46
  id: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { TreeCustomNodeElementProps } from '../../../../features/Treege/type/TreeNode';
3
2
  declare const TreeCardContainer: ({ nodeDatum, hierarchyPointNode, toggleNode, onNodeClick, onNodeMouseOver, onNodeMouseOut, }: TreeCustomNodeElementProps) => JSX.Element;
4
3
  export default TreeCardContainer;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TreeGrid: () => JSX.Element;
3
2
  export default TreeGrid;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const TreeNameTextField: () => JSX.Element;
3
2
  export default TreeNameTextField;
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import { FormControlProps, SelectChangeEvent } from "design-system-tracktor";
1
+ import { FormControlProps, SelectChangeEvent } from "@tracktor/design-system";
3
2
  interface TreeSelectProps {
4
3
  arrowOnly?: boolean;
5
4
  size?: FormControlProps["size"];
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { SelectChangeEvent } from "design-system-tracktor";
2
+ import type { SelectChangeEvent } from "@tracktor/design-system";
3
3
  declare const useTreeSelect: (isControlled: boolean) => {
4
4
  currentTree: {
5
5
  id?: string | undefined;
@@ -1,12 +1,12 @@
1
1
  import type { HierarchyPointNode } from "d3-hierarchy";
2
2
  import { ReducerAction, SetStateAction } from "react";
3
3
  import type { TreeNode } from '../../../features/Treege/type/TreeNode';
4
- declare type ModalType = "add" | "edit" | "delete" | "save" | null;
5
- declare type TreePath = {
4
+ type ModalType = "add" | "edit" | "delete" | "save" | null;
5
+ type TreePath = {
6
6
  path: string;
7
7
  label: string;
8
8
  };
9
- declare type CurrentTree = {
9
+ type CurrentTree = {
10
10
  id?: string;
11
11
  name?: string;
12
12
  errorName?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { HierarchyPointNode } from "d3-hierarchy";
3
2
  import type { CustomNodeElementProps, RawNodeDatum } from "react-d3-tree/lib/types/common";
4
3
  import type fields from '../../../constants/fields';
@@ -49,7 +48,7 @@ export interface TreeNodeValues {
49
48
  repeatable?: never;
50
49
  hiddenValue?: never;
51
50
  }
52
- export declare type TreeNodeAttributes = TreeNodeField | TreeNodeValues;
51
+ export type TreeNodeAttributes = TreeNodeField | TreeNodeValues;
53
52
  export interface TreeNode extends Omit<RawNodeDatum, "attributes" | "children"> {
54
53
  name: string;
55
54
  attributes: TreeNodeAttributes;
@@ -59,4 +58,4 @@ export interface TreeNode extends Omit<RawNodeDatum, "attributes" | "children">
59
58
  export interface TreeCustomNodeElementProps extends Omit<CustomNodeElementProps, "hierarchyPointNode"> {
60
59
  hierarchyPointNode: HierarchyPointNode<TreeNode>;
61
60
  }
62
- export declare type TreeRenderCustomNodeElementFn = (rd3tNodeProps: TreeCustomNodeElementProps) => JSX.Element;
61
+ export type TreeRenderCustomNodeElementFn = (rd3tNodeProps: TreeCustomNodeElementProps) => JSX.Element;