@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.
@@ -1,3 +1,2 @@
1
- export { SfcEditPopover } from './SfcEditPopover';
2
1
  export { SfcActionTableEditPopover } from './SfcActionTableEditPopover';
3
2
  export { SfcEdgeEditPopover } from './SfcEdgeEditPopover';
@@ -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: import('react').ForwardRefExoticComponent<CustomEdgeToolbarProps & import('react').RefAttributes<SVGForeignObjectElement>>;
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 {};
@@ -3,3 +3,4 @@ export declare const MAX_SCALE_TO_ZOOM_IN = 2.5;
3
3
  export declare const MOUSE_UP_OFFSET_IN_PIXELS = 5;
4
4
  export declare const SNAP_TO_GRID_PX = 10;
5
5
  export declare const EXTRA_SPACE_FOR_EXTENTION = 10;
6
+ export declare const PASTE_OFFSET = 20;
@@ -14,4 +14,4 @@ export * from './useStepPathEdge';
14
14
  export * from './useStraightPathEdge';
15
15
  export * from './useMessagePositioning';
16
16
  export * from './useAssessmentSelection';
17
- export * from './useAssessmentSelectionMode';
17
+ export * from './usePaneClicked';
@@ -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,3 @@
1
+ export declare const usePaneClicked: () => {
2
+ onPaneClicked: () => void;
3
+ };
@@ -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
+ };