treege 0.19.0 → 0.20.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.
Files changed (83) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/main.js +5313 -4624
  3. package/dist/main.umd.cjs +54 -40
  4. package/dist/src/components/DataDisplay/Tree/Tree.d.ts +3 -3
  5. package/dist/src/components/DataDisplay/TreeCard/TreeCard.d.ts +5 -5
  6. package/dist/src/components/DataDisplay/ViewerJSON/ViewerJSON.d.ts +3 -2
  7. package/dist/src/components/DataDisplay/ViewerJSONAction/useViewerJSONAction.d.ts +1 -0
  8. package/dist/src/components/FeedBack/MainModal/MainModal.d.ts +2 -1
  9. package/dist/src/components/FeedBack/TreeModal/TreeModal.d.ts +4 -3
  10. package/dist/src/components/Layouts/Action/Action.d.ts +2 -1
  11. package/dist/src/components/Layouts/Header/Header.d.ts +2 -1
  12. package/dist/src/components/Layouts/Main/Main.d.ts +2 -1
  13. package/dist/src/components/Layouts/MosaicLayout/MosaicLayout.d.ts +2 -1
  14. package/dist/src/components/Layouts/Sidebar/Sidebar.d.ts +2 -1
  15. package/dist/src/components/Theme/DarkTheme/DarkTheme.d.ts +2 -1
  16. package/dist/src/config/i18n.config.d.ts +2 -1
  17. package/dist/src/config/query.config.d.ts +2 -1
  18. package/dist/src/config/test.config.d.ts +1 -0
  19. package/dist/src/config/theme.config.d.ts +2 -1
  20. package/dist/src/constants/TreeData.d.ts +2 -1
  21. package/dist/src/context/Auth/AuthContext.d.ts +1 -1
  22. package/dist/src/context/Auth/AuthProvider.d.ts +2 -1
  23. package/dist/src/context/Snackbar/SnackbarContext.d.ts +3 -2
  24. package/dist/src/context/Snackbar/SnackbarProvider.d.ts +2 -1
  25. package/dist/src/context/Snackbar/snackbarReducer.d.ts +2 -1
  26. package/dist/src/features/Treege/Treege.d.ts +2 -1
  27. package/dist/src/features/Treege/components/DynamicSelectFieldFromTree/DynamicSelectFieldFromTree.d.ts +2 -1
  28. package/dist/src/features/Treege/components/DynamicSelectFieldFromTree/index.d.ts +3 -2
  29. package/dist/src/features/Treege/components/DynamicSelectWarning/index.d.ts +3 -2
  30. package/dist/src/features/Treege/components/EndPointWarning/index.d.ts +3 -2
  31. package/dist/src/features/Treege/components/FieldSelect/FieldSelect.d.ts +3 -2
  32. package/dist/src/features/Treege/components/FieldSelect/index.d.ts +3 -2
  33. package/dist/src/features/Treege/components/FieldSelectAutocompleteCreatable/FieldSelectAutocompleteCreatable.d.ts +2 -1
  34. package/dist/src/features/Treege/components/FieldSelectAutocompleteCreatable/index.d.ts +3 -2
  35. package/dist/src/features/Treege/components/Forms/FormTreeCardDelete/useFormTreeCardDelete.d.ts +2 -1
  36. package/dist/src/features/Treege/components/Forms/FormTreeCardMutation/ExtraField.d.ts +3 -2
  37. package/dist/src/features/Treege/components/Forms/FormTreeCardMutation/useFormTreeCardMutation.d.ts +4 -3
  38. package/dist/src/features/Treege/components/TreeCardContainer/TreeCardContainer.d.ts +2 -1
  39. package/dist/src/features/Treege/components/TreeCardContainer/useTreeCardContainer.d.ts +3 -2
  40. package/dist/src/features/Treege/components/TreeGrid/useTreeGrid.d.ts +1 -0
  41. package/dist/src/features/Treege/components/TreeNameTextField/index.d.ts +2 -1
  42. package/dist/src/features/Treege/components/TreeNameTextField/useTreeNameTextField.d.ts +2 -1
  43. package/dist/src/features/Treege/components/TreeSelect/TreeSelect.d.ts +2 -1
  44. package/dist/src/features/Treege/components/TreeSelect/index.d.ts +2 -1
  45. package/dist/src/features/Treege/components/TreeSelect/useTreeSelect.d.ts +4 -4
  46. package/dist/src/features/Treege/context/TreegeContext.d.ts +6 -5
  47. package/dist/src/features/Treege/context/TreegeProvider.d.ts +4 -3
  48. package/dist/src/features/Treege/index.d.ts +2 -1
  49. package/dist/src/features/Treege/reducer/treeReducer.d.ts +2 -1
  50. package/dist/src/features/Treege/type/TreeNode.d.ts +4 -4
  51. package/dist/src/hooks/useSnackbar/index.d.ts +3 -2
  52. package/dist/src/hooks/useSnackbar/useSnackbar.d.ts +1 -0
  53. package/dist/src/hooks/useTreegeContext/index.d.ts +3 -2
  54. package/dist/src/locales/en/button-en.d.ts +1 -0
  55. package/dist/src/locales/en/snackMessage-en.d.ts +1 -0
  56. package/dist/src/locales/fr/button-fr.d.ts +1 -0
  57. package/dist/src/locales/fr/snackMessage-fr.d.ts +1 -0
  58. package/dist/src/services/workflows/mutation/usePatchWorkflowsMutation.d.ts +3 -2
  59. package/dist/src/services/workflows/mutation/usePostWorkflowMutation.d.ts +3 -2
  60. package/dist/src/services/workflows/query/useWorkflowQuery.d.ts +3 -2
  61. package/dist/src/services/workflows/query/useWorkflowsQuery.d.ts +3 -2
  62. package/dist/src/utils/array/index.d.ts +3 -2
  63. package/dist/src/utils/object/index.d.ts +1 -1
  64. package/dist/src/utils/tree/appendNode/appendNode.d.ts +2 -1
  65. package/dist/src/utils/tree/appendNode/test/mock.d.ts +2 -1
  66. package/dist/src/utils/tree/findNodeByNameInTree/findNodeByNameInTree.d.ts +2 -1
  67. package/dist/src/utils/tree/findNodeByNameInTree/test/mock.d.ts +2 -1
  68. package/dist/src/utils/tree/findParentNodeByNameInTree/findParentNodeByNameInTree.d.ts +2 -1
  69. package/dist/src/utils/tree/findParentNodeByNameInTree/test/mock.d.ts +2 -1
  70. package/dist/src/utils/tree/getNamesInTree/getNamesInTree.d.ts +2 -1
  71. package/dist/src/utils/tree/getNamesInTree/test/mock.d.ts +2 -1
  72. package/dist/src/utils/tree/getNode/getNode.d.ts +2 -1
  73. package/dist/src/utils/tree/getNode/test/mock.d.ts +2 -1
  74. package/dist/src/utils/tree/getTree/getTree.d.ts +2 -1
  75. package/dist/src/utils/tree/getTree/test/mock.d.ts +2 -1
  76. package/dist/src/utils/tree/getUniqueTagsInTree/getUniqueTagsInTree.d.ts +2 -1
  77. package/dist/src/utils/tree/getUniqueTagsInTree/test/mock.d.ts +2 -1
  78. package/dist/src/utils/tree/index.d.ts +9 -8
  79. package/dist/src/utils/tree/removeNode/removeNode.d.ts +2 -1
  80. package/dist/src/utils/tree/removeNode/test/mock.d.ts +2 -1
  81. package/dist/src/utils/tree/updateNodeInTree/test/mock.d.ts +2 -1
  82. package/dist/src/utils/tree/updateNodeInTree/updateNodeInTree.d.ts +2 -1
  83. package/package.json +8 -8
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import type { TreeRenderCustomNodeElementFn } from '../../../features/Treege/type/TreeNode';
1
+ import { TreeRenderCustomNodeElementFn } from '../../../features/Treege/type/TreeNode';
2
+
3
3
  interface TreeProps {
4
4
  data: any;
5
5
  renderCustomNodeElement?: TreeRenderCustomNodeElementFn;
@@ -8,5 +8,5 @@ interface TreeProps {
8
8
  y: number;
9
9
  };
10
10
  }
11
- declare const _default: import("react").MemoExoticComponent<({ data, renderCustomNodeElement, nodeSize, }: TreeProps) => import("react/jsx-runtime").JSX.Element>;
11
+ declare const _default: import('react').MemoExoticComponent<({ data, renderCustomNodeElement, nodeSize, }: TreeProps) => import("react/jsx-runtime").JSX.Element>;
12
12
  export default _default;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
2
- import type { HierarchyPointNode } from "d3-hierarchy";
3
- import type { CustomNodeElementProps, TreeNodeDatum } from "react-d3-tree/lib/types/types/common";
4
- import type { TreeNode } from '../../../features/Treege/type/TreeNode';
1
+ import { TreeNode } from '../../../features/Treege/type/TreeNode';
2
+ import { CustomNodeElementProps, TreeNodeDatum } from 'react-d3-tree/lib/types/types/common';
3
+ import { HierarchyPointNode } from 'd3-hierarchy';
4
+
5
5
  interface TreeCardProps extends Omit<CustomNodeElementProps, "nodeDatum" | "hierarchyPointNode"> {
6
6
  nodeDatum: TreeNode | TreeNodeDatum;
7
7
  size?: number;
@@ -11,5 +11,5 @@ interface TreeCardProps extends Omit<CustomNodeElementProps, "nodeDatum" | "hier
11
11
  onOpenTreeModal?(hierarchyPointNode: HierarchyPointNode<TreeNode>): void;
12
12
  hierarchyPointNode: HierarchyPointNode<TreeNode>;
13
13
  }
14
- declare const _default: import("react").MemoExoticComponent<({ nodeDatum, onAddChildren, onEditChildren, onDeleteChildren, onOpenTreeModal, hierarchyPointNode, size, }: TreeCardProps) => import("react/jsx-runtime").JSX.Element>;
14
+ declare const _default: import('react').MemoExoticComponent<({ nodeDatum, onAddChildren, onEditChildren, onDeleteChildren, onOpenTreeModal, hierarchyPointNode, size, }: TreeCardProps) => import("react/jsx-runtime").JSX.Element>;
15
15
  export default _default;
@@ -1,5 +1,6 @@
1
1
  interface ViewerJSONProps {
2
- value: any;
2
+ value: unknown;
3
+ onChange?: (value: any) => void;
3
4
  }
4
- declare const ViewerJSON: ({ value }: ViewerJSONProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const ViewerJSON: ({ value, onChange }: ViewerJSONProps) => import("react/jsx-runtime").JSX.Element;
5
6
  export default ViewerJSON;
@@ -1,4 +1,5 @@
1
1
  declare const useViewerJSONAction: () => {
2
+ copyToClipboard: (value: unknown) => () => void;
2
3
  formatJSON: (value: any) => string;
3
4
  getDownloadLink: (value: any) => string;
4
5
  handleClose: () => void;
@@ -1,4 +1,5 @@
1
- import type { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  interface TreeModalProps {
3
4
  children?: ReactNode;
4
5
  description?: string;
@@ -1,12 +1,13 @@
1
- import { TransitionProps } from "@tracktor/design-system";
2
- import { ReactElement, ReactNode } from "react";
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { TransitionProps } from '@tracktor/design-system';
3
+
3
4
  interface TreeModalProps {
4
5
  children?: ReactNode;
5
6
  title?: string;
6
7
  open: boolean;
7
8
  onClose?(): void;
8
9
  }
9
- export declare const Transition: import("react").ForwardRefExoticComponent<{
10
+ export declare const Transition: import('react').ForwardRefExoticComponent<{
10
11
  children: ReactElement;
11
12
  } & TransitionProps & import("react").RefAttributes<unknown>>;
12
13
  declare const TreeModal: ({ children, open, onClose, title }: TreeModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
- import type { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  interface ActionProps {
3
4
  children?: ReactNode;
4
5
  }
@@ -1,4 +1,5 @@
1
- import type { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  interface HeaderProps {
3
4
  children?: ReactNode;
4
5
  }
@@ -1,4 +1,5 @@
1
- import type { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  interface MainProps {
3
4
  children?: ReactNode;
4
5
  }
@@ -1,4 +1,5 @@
1
- import { ReactElement } from "react";
1
+ import { ReactElement } from 'react';
2
+
2
3
  interface GridLayoutProps {
3
4
  children: ReactElement<any, any>[];
4
5
  }
@@ -1,4 +1,5 @@
1
- import type { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  interface SidebarProps {
3
4
  children?: ReactNode;
4
5
  }
@@ -1,4 +1,5 @@
1
- import type { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  interface DarkThemeProps {
3
4
  children?: ReactNode;
4
5
  }
@@ -1,2 +1,3 @@
1
- import i18n from "i18next";
1
+ import { default as i18n } from 'i18next';
2
+
2
3
  export default i18n;
@@ -1,3 +1,4 @@
1
- import { QueryClient } from "@tanstack/react-query";
1
+ import { QueryClient } from '@tanstack/react-query';
2
+
2
3
  declare const queryConfig: QueryClient;
3
4
  export default queryConfig;
@@ -0,0 +1 @@
1
+
@@ -1,3 +1,4 @@
1
- import type { ThemeOptions } from "@tracktor/design-system";
1
+ import { ThemeOptions } from '@tracktor/design-system';
2
+
2
3
  declare const darkTheme: ThemeOptions;
3
4
  export default darkTheme;
@@ -1,4 +1,5 @@
1
- import type { TreeNode } from '../features/Treege/type/TreeNode';
1
+ import { TreeNode } from '../features/Treege/type/TreeNode';
2
+
2
3
  declare const TreeData: {
3
4
  id: string;
4
5
  label: string;
@@ -5,4 +5,4 @@ export interface Auth {
5
5
  export declare const authDefaultValue: {
6
6
  authToken: undefined;
7
7
  };
8
- export declare const AuthContext: import("react").Context<Auth>;
8
+ export declare const AuthContext: import('react').Context<Auth>;
@@ -1,4 +1,5 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  interface AuthProviderProps {
3
4
  children: ReactNode;
4
5
  authToken?: string;
@@ -1,4 +1,5 @@
1
- import { ReducerAction } from "react";
1
+ import { ReducerAction } from 'react';
2
+
2
3
  type Severity = "error" | "warning" | "info" | "success";
3
4
  export interface SnackbarState {
4
5
  open: boolean;
@@ -15,5 +16,5 @@ export declare const snackbarDefaultValue: {
15
16
  open: boolean;
16
17
  };
17
18
  };
18
- export declare const SnackbarContext: import("react").Context<SnackbarValue>;
19
+ export declare const SnackbarContext: import('react').Context<SnackbarValue>;
19
20
  export {};
@@ -1,4 +1,5 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
+
2
3
  interface SnackbarProviderProps {
3
4
  children: ReactNode;
4
5
  }
@@ -1,4 +1,5 @@
1
- import type { SnackbarState } from '../../context/Snackbar/SnackbarContext';
1
+ import { SnackbarState } from './SnackbarContext';
2
+
2
3
  export declare const snackbarReducerActionType: {
3
4
  readonly closeSnackbar: "closeSnackbar";
4
5
  readonly openSnackbar: "openSnackbar";
@@ -1,4 +1,5 @@
1
- import type { TreeNode } from '../../features/Treege/type/TreeNode';
1
+ import { TreeNode } from './type/TreeNode';
2
+
2
3
  export interface BackendConfig {
3
4
  baseUrl: string;
4
5
  authToken?: string;
@@ -1,4 +1,5 @@
1
- import { SelectChangeEvent } from "@tracktor/design-system";
1
+ import { SelectChangeEvent } from '@tracktor/design-system';
2
+
2
3
  interface DynamicSelectFieldFromTreeProps {
3
4
  value: string | null;
4
5
  onChange?: (event: SelectChangeEvent<string | undefined>, newValue: string | undefined) => void;
@@ -1,3 +1,4 @@
1
- import DynamicSelectFieldFromTree from "./DynamicSelectFieldFromTree";
1
+ import { default as DynamicSelectFieldFromTree } from './DynamicSelectFieldFromTree';
2
+
2
3
  export default DynamicSelectFieldFromTree;
3
- export * from "./DynamicSelectFieldFromTree";
4
+ export * from './DynamicSelectFieldFromTree';
@@ -1,3 +1,4 @@
1
- import DynamicSelectWarning from "./DynamicSelectWarning";
1
+ import { default as DynamicSelectWarning } from './DynamicSelectWarning';
2
+
2
3
  export default DynamicSelectWarning;
3
- export * from "./DynamicSelectWarning";
4
+ export * from './DynamicSelectWarning';
@@ -1,3 +1,4 @@
1
- import EndPointWarning from "./EndPointWarning";
1
+ import { default as EndPointWarning } from './EndPointWarning';
2
+
2
3
  export default EndPointWarning;
3
- export * from "./EndPointWarning";
4
+ export * from './EndPointWarning';
@@ -1,5 +1,6 @@
1
- import { SelectChangeEvent } from "@tracktor/design-system";
2
- import type { TreeNodeField } from '../../../../features/Treege/type/TreeNode';
1
+ import { TreeNodeField } from '../../type/TreeNode';
2
+ import { SelectChangeEvent } from '@tracktor/design-system';
3
+
3
4
  interface FieldsSelectProps {
4
5
  value: TreeNodeField["type"];
5
6
  onChange?: (event: SelectChangeEvent<TreeNodeField["type"]>) => void;
@@ -1,3 +1,4 @@
1
- import FieldSelect from "./FieldSelect";
1
+ import { default as FieldSelect } from './FieldSelect';
2
+
2
3
  export default FieldSelect;
3
- export * from "./FieldSelect";
4
+ export * from './FieldSelect';
@@ -1,4 +1,5 @@
1
- import { SyntheticEvent } from "react";
1
+ import { SyntheticEvent } from 'react';
2
+
2
3
  interface TagOption {
3
4
  inputValue: string;
4
5
  label: string;
@@ -1,3 +1,4 @@
1
- import FieldSelectAutocompleteCreatable from "./FieldSelectAutocompleteCreatable";
1
+ import { default as FieldSelectAutocompleteCreatable } from './FieldSelectAutocompleteCreatable';
2
+
2
3
  export default FieldSelectAutocompleteCreatable;
3
- export * from "./FieldSelectAutocompleteCreatable";
4
+ export * from './FieldSelectAutocompleteCreatable';
@@ -1,4 +1,5 @@
1
- import type { FormEvent } from "react";
1
+ import { FormEvent } from 'react';
2
+
2
3
  declare const useFormTreeCardDelete: () => {
3
4
  handleSubmit: (e: FormEvent) => void;
4
5
  };
@@ -1,5 +1,6 @@
1
- import { SelectChangeEvent } from "@tracktor/design-system";
2
- import type { ChangeEvent } from "react";
1
+ import { ChangeEvent } from 'react';
2
+ import { SelectChangeEvent } from '@tracktor/design-system';
3
+
3
4
  interface ExtraFieldProps {
4
5
  helperText: string;
5
6
  hiddenValue: string;
@@ -1,6 +1,7 @@
1
- import type { SelectChangeEvent } from "@tracktor/design-system";
2
- import { ChangeEvent, FormEvent, MouseEvent, SyntheticEvent } from "react";
3
- import type { Params, Route, TreeNodeField } from '../../../../../features/Treege/type/TreeNode';
1
+ import { Params, Route, TreeNodeField } from '../../../type/TreeNode';
2
+ import { ChangeEvent, FormEvent, MouseEvent, SyntheticEvent } from 'react';
3
+ import { SelectChangeEvent } from '@tracktor/design-system';
4
+
4
5
  declare const useFormTreeCardMutation: () => {
5
6
  getDisabledValueField: (index: number) => boolean;
6
7
  handleAddParams: () => void;
@@ -1,3 +1,4 @@
1
- import type { TreeCustomNodeElementProps } from '../../../../features/Treege/type/TreeNode';
1
+ import { TreeCustomNodeElementProps } from '../../type/TreeNode';
2
+
2
3
  declare const TreeCardContainer: ({ nodeDatum, hierarchyPointNode, toggleNode, onNodeClick, onNodeMouseOver, onNodeMouseOut, addChildren, }: TreeCustomNodeElementProps) => import("react/jsx-runtime").JSX.Element;
3
4
  export default TreeCardContainer;
@@ -1,5 +1,6 @@
1
- import type { HierarchyPointNode } from "d3-hierarchy";
2
- import type { TreeNode } from '../../../../features/Treege/type/TreeNode';
1
+ import { TreeNode } from '../../type/TreeNode';
2
+ import { HierarchyPointNode } from 'd3-hierarchy';
3
+
3
4
  declare const useTreeCardContainer: () => {
4
5
  handleAddChildren: (hierarchyPointNode: HierarchyPointNode<TreeNode>) => void;
5
6
  handleCloseTreeModal: () => void;
@@ -2,6 +2,7 @@ declare const useTreeGrid: () => {
2
2
  closeModal: () => void;
3
3
  getTitleModalDelete: () => "Are you sure to delete « {{name}} »";
4
4
  getTitleModalMutation: () => "Add a field" | "Add a field to « {{name}} »" | "Edit field « {{name}} »";
5
+ handleChangeTree: (tree: any) => false | undefined;
5
6
  isDeleteModal: boolean;
6
7
  isModalMutationOpen: boolean;
7
8
  };
@@ -1,2 +1,3 @@
1
- import TreeNameTextField from "./TreeNameTextField";
1
+ import { default as TreeNameTextField } from './TreeNameTextField';
2
+
2
3
  export default TreeNameTextField;
@@ -1,4 +1,5 @@
1
- import type { ChangeEvent } from "react";
1
+ import { ChangeEvent } from 'react';
2
+
2
3
  declare const useTreeNameTextField: () => {
3
4
  disabled: boolean;
4
5
  errorName: string | undefined;
@@ -1,4 +1,5 @@
1
- import { FormControlProps, SelectChangeEvent } from "@tracktor/design-system";
1
+ import { FormControlProps, SelectChangeEvent } from '@tracktor/design-system';
2
+
2
3
  interface TreeSelectProps {
3
4
  arrowOnly?: boolean;
4
5
  size?: FormControlProps["size"];
@@ -1,2 +1,3 @@
1
- import TreeSelect from "./TreeSelect";
1
+ import { default as TreeSelect } from './TreeSelect';
2
+
2
3
  export default TreeSelect;
@@ -1,5 +1,5 @@
1
- /// <reference types="react" />
2
- import type { SelectChangeEvent } from "@tracktor/design-system";
1
+ import { SelectChangeEvent } from '@tracktor/design-system';
2
+
3
3
  interface useTreeSelectProps {
4
4
  isControlled: boolean;
5
5
  fetchWorkflowsOnOpen?: boolean;
@@ -10,10 +10,10 @@ declare const useTreeSelect: ({ isControlled, fetchWorkflowsOnOpen }: useTreeSel
10
10
  name?: string | undefined;
11
11
  errorName?: string | undefined;
12
12
  };
13
- fetchWorkflowSuggestions: <TPageData>(options?: (import("@tanstack/query-core").RefetchOptions & import("@tanstack/query-core").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/query-core").QueryObserverResult<import('../../../../services/workflows/query/useWorkflowsQuery').WorkflowsResponse[], unknown>>;
13
+ fetchWorkflowSuggestions: <TPageData>(options?: (import('@tanstack/query-core').RefetchOptions & import('@tanstack/query-core').RefetchQueryFilters<TPageData>) | undefined) => Promise<import('@tanstack/query-core').QueryObserverResult<import("@/services/workflows/query/useWorkflowsQuery").WorkflowsResponse[], unknown>>;
14
14
  handleChangeTree: ({ target }: SelectChangeEvent) => Promise<void>;
15
15
  handleOnOpen: () => Promise<void>;
16
- setTreeSelected: import("react").Dispatch<import("react").SetStateAction<string>>;
16
+ setTreeSelected: import('react').Dispatch<import("react").SetStateAction<string>>;
17
17
  treeSelected: string;
18
18
  workflowsSuggestions: import('../../../../services/workflows/query/useWorkflowsQuery').WorkflowsResponse[] | undefined;
19
19
  workflowsSuggestionsLoading: boolean;
@@ -1,7 +1,8 @@
1
- import type { HierarchyPointNode } from "d3-hierarchy";
2
- import { ReducerAction, SetStateAction } from "react";
3
- import { BackendConfig } from '../../../features/Treege/Treege';
4
- import type { TreeNode } from '../../../features/Treege/type/TreeNode';
1
+ import { TreeNode } from '../type/TreeNode';
2
+ import { BackendConfig } from '../Treege';
3
+ import { ReducerAction, SetStateAction } from 'react';
4
+ import { HierarchyPointNode } from 'd3-hierarchy';
5
+
5
6
  type ModalType = "add" | "edit" | "delete" | "save" | null;
6
7
  type TreePath = {
7
8
  path: string;
@@ -83,5 +84,5 @@ export interface TreeDefaultValue {
83
84
  version: string;
84
85
  }
85
86
  export declare const treeDefaultValue: TreeDefaultValue;
86
- export declare const TreegeContext: import("react").Context<TreeDefaultValue>;
87
+ export declare const TreegeContext: import('react').Context<TreeDefaultValue>;
87
88
  export {};
@@ -1,6 +1,7 @@
1
- import { ReactNode } from "react";
2
- import { BackendConfig } from '../../../features/Treege/Treege';
3
- import type { TreeNode } from '../../../features/Treege/type/TreeNode';
1
+ import { TreeNode } from '../type/TreeNode';
2
+ import { BackendConfig } from '../Treege';
3
+ import { ReactNode } from 'react';
4
+
4
5
  interface TreegeProviderProps {
5
6
  children: ReactNode;
6
7
  initialTree?: TreeNode;
@@ -1,2 +1,3 @@
1
- import Treege from "./Treege";
1
+ import { default as Treege } from './Treege';
2
+
2
3
  export default Treege;
@@ -1,4 +1,5 @@
1
- import type { TreeNode } from '../../../features/Treege/type/TreeNode';
1
+ import { TreeNode } from '../type/TreeNode';
2
+
2
3
  export declare const treeReducerActionType: {
3
4
  readonly appendTreeCard: "appendTreeCard";
4
5
  readonly deleteTreeCard: "deleteTreeCard";
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
2
- import type { HierarchyPointNode } from "d3-hierarchy";
3
- import type { CustomNodeElementProps, RawNodeDatum } from "react-d3-tree/lib/types/types/common";
4
- import type fields from '../../../constants/fields';
1
+ import { default as fields } from '../../../constants/fields';
2
+ import { CustomNodeElementProps, RawNodeDatum } from 'react-d3-tree/lib/types/types/common';
3
+ import { HierarchyPointNode } from 'd3-hierarchy';
4
+
5
5
  export interface TreeValues {
6
6
  id: string;
7
7
  label: string;
@@ -1,3 +1,4 @@
1
- import useSnackbar from "./useSnackbar";
1
+ import { default as useSnackbar } from './useSnackbar';
2
+
2
3
  export default useSnackbar;
3
- export * from "./useSnackbar";
4
+ export * from './useSnackbar';
@@ -1,4 +1,5 @@
1
1
  import { SnackbarState } from '../../context/Snackbar/SnackbarContext';
2
+
2
3
  declare const useSnackbar: () => {
3
4
  close: () => void;
4
5
  open: (message: SnackbarState["message"], severity?: SnackbarState["severity"]) => void;
@@ -1,3 +1,4 @@
1
- import useTreegeContext from "./useTreegeContext";
1
+ import { default as useTreegeContext } from './useTreegeContext';
2
+
2
3
  export default useTreegeContext;
3
- export * from "./useTreegeContext";
4
+ export * from './useTreegeContext';
@@ -1,5 +1,6 @@
1
1
  declare const BUTTON_EN: {
2
2
  readonly close: "Close";
3
+ readonly copyToClipboard: "Copy tree to clipboard";
3
4
  readonly createTree: "Create Tree";
4
5
  readonly downloadJSONFile: "Download JSON File";
5
6
  readonly reset: "Reset";
@@ -5,6 +5,7 @@ declare const SNACK_MESSAGE_EN: {
5
5
  readonly updateTree: "An error has occurred. Please try again";
6
6
  };
7
7
  readonly success: {
8
+ readonly copyToClipboard: "Copied to clipboard";
8
9
  readonly saveTree: "Tree registered";
9
10
  readonly updateTree: "Tree updated";
10
11
  };
@@ -1,5 +1,6 @@
1
1
  declare const BUTTON_FR: {
2
2
  readonly close: "Fermer";
3
+ readonly copyToClipboard: "Copier l'arbre dans le presse-papiers";
3
4
  readonly createTree: "Créer un arbre";
4
5
  readonly downloadJSONFile: "Télécharger le fichier JSON";
5
6
  readonly reset: "Réinitialiser";
@@ -5,6 +5,7 @@ declare const SNACK_MESSAGE_FR: {
5
5
  readonly updateTree: "Une erreur est survenue veuillez réessayer";
6
6
  };
7
7
  readonly success: {
8
+ readonly copyToClipboard: "Copié dans le presse-papiers";
8
9
  readonly saveTree: "Arbre enregistré";
9
10
  readonly updateTree: "Arbre mis à jour";
10
11
  };
@@ -1,5 +1,6 @@
1
- import { MutateOptions } from "@tanstack/react-query";
2
1
  import { TreeNode } from '../../../features/Treege/type/TreeNode';
2
+ import { MutateOptions } from '@tanstack/react-query';
3
+
3
4
  interface PatchWorkflowVariables {
4
5
  workflow: TreeNode;
5
6
  version: string;
@@ -9,5 +10,5 @@ interface PatchWorkflowVariables {
9
10
  interface PatchWorkflowResponse {
10
11
  status: string;
11
12
  }
12
- declare const usePatchWorkflowsMutation: (options?: MutateOptions<PatchWorkflowResponse, any, PatchWorkflowVariables>) => import("@tanstack/react-query").UseMutationResult<PatchWorkflowResponse, any, PatchWorkflowVariables, unknown>;
13
+ declare const usePatchWorkflowsMutation: (options?: MutateOptions<PatchWorkflowResponse, any, PatchWorkflowVariables>) => import('@tanstack/react-query').UseMutationResult<PatchWorkflowResponse, any, PatchWorkflowVariables, unknown>;
13
14
  export default usePatchWorkflowsMutation;
@@ -1,5 +1,6 @@
1
- import { MutateOptions } from "@tanstack/react-query";
2
1
  import { TreeNode } from '../../../features/Treege/type/TreeNode';
2
+ import { MutateOptions } from '@tanstack/react-query';
3
+
3
4
  interface PostWorkflowVariables {
4
5
  workflow: TreeNode;
5
6
  version: string;
@@ -8,5 +9,5 @@ interface PostWorkflowVariables {
8
9
  interface PostWorkflowResponse {
9
10
  workflow_id: string;
10
11
  }
11
- declare const usePostWorkflowMutation: (options?: MutateOptions<PostWorkflowResponse, any, PostWorkflowVariables>) => import("@tanstack/react-query").UseMutationResult<PostWorkflowResponse, any, PostWorkflowVariables, unknown>;
12
+ declare const usePostWorkflowMutation: (options?: MutateOptions<PostWorkflowResponse, any, PostWorkflowVariables>) => import('@tanstack/react-query').UseMutationResult<PostWorkflowResponse, any, PostWorkflowVariables, unknown>;
12
13
  export default usePostWorkflowMutation;
@@ -1,10 +1,11 @@
1
- import { UseQueryOptions } from "@tanstack/react-query";
2
1
  import { TreeNode } from '../../../features/Treege/type/TreeNode';
2
+ import { UseQueryOptions } from '@tanstack/react-query';
3
+
3
4
  interface WorkflowResponse {
4
5
  id: string;
5
6
  label: string;
6
7
  version: string;
7
8
  workflow: TreeNode;
8
9
  }
9
- declare const useWorkflowQuery: (id?: string, options?: UseQueryOptions<WorkflowResponse>) => import("@tanstack/react-query").UseQueryResult<WorkflowResponse, unknown>;
10
+ declare const useWorkflowQuery: (id?: string, options?: UseQueryOptions<WorkflowResponse>) => import('@tanstack/react-query').UseQueryResult<WorkflowResponse, unknown>;
10
11
  export default useWorkflowQuery;
@@ -1,10 +1,11 @@
1
- import { UseQueryOptions } from "@tanstack/react-query";
2
1
  import { TreeNode } from '../../../features/Treege/type/TreeNode';
2
+ import { UseQueryOptions } from '@tanstack/react-query';
3
+
3
4
  export interface WorkflowsResponse {
4
5
  id: string;
5
6
  label: string;
6
7
  version: string;
7
8
  workflow: TreeNode;
8
9
  }
9
- declare const useWorkflowsQuery: (options?: UseQueryOptions<WorkflowsResponse[]>) => import("@tanstack/react-query").UseQueryResult<WorkflowsResponse[], unknown>;
10
+ declare const useWorkflowsQuery: (options?: UseQueryOptions<WorkflowsResponse[]>) => import('@tanstack/react-query').UseQueryResult<WorkflowsResponse[], unknown>;
10
11
  export default useWorkflowsQuery;
@@ -1,3 +1,4 @@
1
- import isUniqueArrayItem from "./isUniqueArrayItem/isUniqueArrayItem";
2
- import isUniqueArrayItemWithNewEntry from "./isUniqueArrayItemWithNewEntry/isUniqueArrayItemWithNewEntry";
1
+ import { default as isUniqueArrayItemWithNewEntry } from './isUniqueArrayItemWithNewEntry/isUniqueArrayItemWithNewEntry';
2
+ import { default as isUniqueArrayItem } from './isUniqueArrayItem/isUniqueArrayItem';
3
+
3
4
  export { isUniqueArrayItem, isUniqueArrayItemWithNewEntry };
@@ -1 +1 @@
1
- export * from "./removeObjectProperty/removeObjectProperty";
1
+ export * from './removeObjectProperty/removeObjectProperty';
@@ -1,4 +1,5 @@
1
- import type { TreeNode } from '../../../features/Treege/type/TreeNode';
1
+ import { TreeNode } from '../../../features/Treege/type/TreeNode';
2
+
2
3
  interface AppendChildParams {
3
4
  tree: TreeNode | null;
4
5
  path: string | null;
@@ -1,4 +1,5 @@
1
- import type { TreeNode } from '../../../../features/Treege/type/TreeNode';
1
+ import { TreeNode } from '../../../../features/Treege/type/TreeNode';
2
+
2
3
  type Mock = {
3
4
  tree: TreeNode | null;
4
5
  output: TreeNode;