refactor(editor): Migrate ndv.store to composition API (#11574)

This commit is contained in:
Ricardo Espinoza
2024-11-08 08:11:36 -05:00
committed by GitHub
parent aec372793b
commit 38fefff348
10 changed files with 458 additions and 315 deletions

View File

@@ -1585,3 +1585,44 @@ export type ApiKey = {
createdAt: string;
updatedAt: string;
};
export type InputPanel = {
displayMode: IRunDataDisplayMode;
nodeName?: string;
run?: number;
branch?: number;
data: {
isEmpty: boolean;
};
};
export type OutputPanel = {
branch?: number;
displayMode: IRunDataDisplayMode;
data: {
isEmpty: boolean;
};
editMode: {
enabled: boolean;
value: string;
};
};
export type Draggable = {
isDragging: boolean;
type: string;
data: string;
dimensions: DOMRect | null;
activeTarget: { id: string; stickyPosition: null | XYPosition } | null;
};
export type MainPanelType = 'regular' | 'dragless' | 'inputless' | 'unknown' | 'wide';
export type MainPanelDimensions = Record<
MainPanelType,
{
relativeLeft: number;
relativeRight: number;
relativeWidth: number;
}
>;