@tumaet/apollon 4.2.0-alpha.0 → 4.2.2-alpha.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.
- package/dist/components/popovers/sfcDiagram/index.d.ts +0 -1
- package/dist/components/toolbars/edgeToolBar/CustomEdgeToolBar.d.ts +2 -1
- package/dist/components/ui/StyleEditor/NodeStyleEditor.d.ts +3 -0
- package/dist/constants/canvasConstants.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useClipboard.d.ts +11 -0
- package/dist/hooks/usePaneClicked.d.ts +3 -0
- package/dist/hooks/useSelectionForCopyPaste.d.ts +9 -0
- package/dist/index.js +17446 -17011
- package/dist/types/nodes/NodeProps.d.ts +1 -2
- package/dist/typings.d.ts +1 -1
- package/dist/utils/copyPasteUtils.d.ts +32 -0
- package/package.json +1 -1
- package/dist/components/popovers/sfcDiagram/SfcEditPopover.d.ts +0 -2
- package/dist/hooks/useAssessmentSelectionMode.d.ts +0 -3
|
@@ -4,6 +4,7 @@ interface CustomEdgeToolbarProps {
|
|
|
4
4
|
position: IPoint;
|
|
5
5
|
onEditClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
6
6
|
onDeleteClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
7
|
+
anchorRef: React.RefObject<SVGForeignObjectElement>;
|
|
7
8
|
}
|
|
8
|
-
export declare const CustomEdgeToolbar:
|
|
9
|
+
export declare const CustomEdgeToolbar: React.FC<CustomEdgeToolbarProps>;
|
|
9
10
|
export {};
|
|
@@ -3,9 +3,12 @@ import { DefaultNodeProps } from '../../../types';
|
|
|
3
3
|
interface NodeStyleEditorProps {
|
|
4
4
|
nodeData: DefaultNodeProps;
|
|
5
5
|
handleDataFieldUpdate: (key: keyof DefaultNodeProps, value: string) => void;
|
|
6
|
+
preElements?: React.ReactNode[];
|
|
6
7
|
sideElements?: React.ReactNode[];
|
|
7
8
|
inputPlaceholder?: string;
|
|
8
9
|
noStrokeUpdate?: boolean;
|
|
10
|
+
showNameInputChange?: boolean;
|
|
11
|
+
title?: string;
|
|
9
12
|
}
|
|
10
13
|
export declare const NodeStyleEditor: React.FC<NodeStyleEditorProps>;
|
|
11
14
|
export {};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Node, Edge } from '@xyflow/react';
|
|
2
|
+
interface ClipboardData {
|
|
3
|
+
nodes: Node[];
|
|
4
|
+
edges: Edge[];
|
|
5
|
+
timestamp: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const useClipboard: () => {
|
|
8
|
+
copyToClipboard: (data: ClipboardData) => Promise<boolean>;
|
|
9
|
+
readFromClipboard: () => Promise<ClipboardData | null>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const useSelectionForCopyPaste: () => {
|
|
2
|
+
selectedElementIds: string[];
|
|
3
|
+
hasSelectedElements: () => boolean;
|
|
4
|
+
selectAll: () => void;
|
|
5
|
+
clearSelection: () => void;
|
|
6
|
+
copySelectedElements: () => Promise<boolean>;
|
|
7
|
+
pasteElements: (pasteCount?: number) => Promise<boolean>;
|
|
8
|
+
cutSelectedElements: () => Promise<boolean>;
|
|
9
|
+
};
|