@comfyorg/comfyui-frontend-types 1.5.5 → 1.5.6
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/index.d.ts +6 -76
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -13,8 +13,6 @@ declare interface AboutPageBadge {
|
|
|
13
13
|
icon: string;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
declare function addStylesheet(urlOrFile: string, relativeTo?: string): Promise<void>;
|
|
17
|
-
|
|
18
16
|
/** Dictionary of all api calls */
|
|
19
17
|
declare interface ApiCalls extends BackendApiCalls, FrontendApiCalls {
|
|
20
18
|
}
|
|
@@ -30,8 +28,6 @@ declare type ApiToEventType<T = ApiCalls> = {
|
|
|
30
28
|
[K in keyof T]: K extends 'status' ? StatusWsMessageStatus : K extends 'executing' ? NodeId : T[K];
|
|
31
29
|
};
|
|
32
30
|
|
|
33
|
-
declare function applyTextReplacements(app: ComfyApp, value: string): string;
|
|
34
|
-
|
|
35
31
|
/** Wraps all properties in {@link CustomEvent}. */
|
|
36
32
|
declare type AsCustomEvents<T> = {
|
|
37
33
|
readonly [K in keyof T]: CustomEvent<T[K]>;
|
|
@@ -375,14 +371,8 @@ export declare class ComfyApp {
|
|
|
375
371
|
static clipspace_invalidate_handler: (() => void) | null;
|
|
376
372
|
static open_maskeditor: any;
|
|
377
373
|
static clipspace_return_node: any;
|
|
378
|
-
static utils: {
|
|
379
|
-
applyTextReplacements: typeof applyTextReplacements;
|
|
380
|
-
addStylesheet: typeof addStylesheet;
|
|
381
|
-
DraggableList: typeof DraggableList;
|
|
382
|
-
};
|
|
383
374
|
vueAppReady: boolean;
|
|
384
375
|
ui: ComfyUI;
|
|
385
|
-
logging: ComfyLogging;
|
|
386
376
|
extensions: ComfyExtension[];
|
|
387
377
|
extensionManager: ExtensionManager;
|
|
388
378
|
_nodeOutputs: Record<string, any>;
|
|
@@ -577,6 +567,8 @@ export declare class ComfyApp {
|
|
|
577
567
|
/** Menubar item label, if different from command label */
|
|
578
568
|
menubarLabel?: string | (() => string);
|
|
579
569
|
versionAdded?: string;
|
|
570
|
+
/** If non-nullish, this command will prompt for confirmation. */
|
|
571
|
+
confirmation?: string;
|
|
580
572
|
}
|
|
581
573
|
|
|
582
574
|
declare interface ComfyComponent<T extends HTMLElement = HTMLElement> {
|
|
@@ -593,8 +585,6 @@ export declare class ComfyApp {
|
|
|
593
585
|
show(html: any): void;
|
|
594
586
|
}
|
|
595
587
|
|
|
596
|
-
declare const ComfyDialog_2: typeof ComfyDialog;
|
|
597
|
-
|
|
598
588
|
export declare interface ComfyExtension {
|
|
599
589
|
/**
|
|
600
590
|
* The name of the extension
|
|
@@ -723,38 +713,6 @@ export declare class ComfyApp {
|
|
|
723
713
|
toggle(): boolean;
|
|
724
714
|
}
|
|
725
715
|
|
|
726
|
-
declare class ComfyLogging {
|
|
727
|
-
#private;
|
|
728
|
-
/**
|
|
729
|
-
* @type Array<{ source: string, type: string, timestamp: Date, message: any }>
|
|
730
|
-
*/
|
|
731
|
-
entries: any[];
|
|
732
|
-
app: ComfyApp;
|
|
733
|
-
dialog: ComfyLoggingDialog;
|
|
734
|
-
get enabled(): any;
|
|
735
|
-
set enabled(value: any);
|
|
736
|
-
constructor(app: any);
|
|
737
|
-
addSetting(): void;
|
|
738
|
-
patchConsole(): void;
|
|
739
|
-
unpatchConsole(): void;
|
|
740
|
-
catchUnhandled(): void;
|
|
741
|
-
clear(): void;
|
|
742
|
-
addEntry(source: any, type: any, ...args: any[]): void;
|
|
743
|
-
log(source: any, ...args: any[]): void;
|
|
744
|
-
addInitData(): Promise<void>;
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
declare class ComfyLoggingDialog extends ComfyDialog_2 {
|
|
748
|
-
logging: any;
|
|
749
|
-
constructor(logging: any);
|
|
750
|
-
clear(): void;
|
|
751
|
-
export(): void;
|
|
752
|
-
import(): void;
|
|
753
|
-
createButtons(): HTMLButtonElement[];
|
|
754
|
-
getTypeColor(type: any): "dodgerblue" | "orange" | "red";
|
|
755
|
-
show(entries?: any[]): void;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
716
|
declare type ComfyNodeDef = z.infer<typeof zComfyNodeDef>;
|
|
759
717
|
|
|
760
718
|
/**
|
|
@@ -933,6 +891,7 @@ export declare class ComfyApp {
|
|
|
933
891
|
declare type ComfyWorkflowJSON = z.infer<typeof zComfyWorkflow | typeof zComfyWorkflow1>;
|
|
934
892
|
|
|
935
893
|
declare interface CommandManager {
|
|
894
|
+
commands: ComfyCommand[];
|
|
936
895
|
execute(command: string, errorHandler?: (error: any) => void): void;
|
|
937
896
|
}
|
|
938
897
|
|
|
@@ -950,38 +909,6 @@ export declare class ComfyApp {
|
|
|
950
909
|
|
|
951
910
|
declare type CustomSidebarTabExtension = BaseSidebarTabExtension & CustomExtension;
|
|
952
911
|
|
|
953
|
-
declare class DraggableList extends EventTarget {
|
|
954
|
-
listContainer: any;
|
|
955
|
-
draggableItem: any;
|
|
956
|
-
pointerStartX: any;
|
|
957
|
-
pointerStartY: any;
|
|
958
|
-
scrollYMax: any;
|
|
959
|
-
itemsGap: number;
|
|
960
|
-
items: any[];
|
|
961
|
-
itemSelector: any;
|
|
962
|
-
handleClass: string;
|
|
963
|
-
off: any[];
|
|
964
|
-
offDrag: any[];
|
|
965
|
-
constructor(element: any, itemSelector: any);
|
|
966
|
-
getAllItems(): any[];
|
|
967
|
-
getIdleItems(): any[];
|
|
968
|
-
isItemAbove(item: any): any;
|
|
969
|
-
isItemToggled(item: any): any;
|
|
970
|
-
on(source: any, event: any, listener: any, options?: any): () => any;
|
|
971
|
-
dragStart(e: any): void;
|
|
972
|
-
setItemsGap(): void;
|
|
973
|
-
initItemsState(): void;
|
|
974
|
-
initDraggableItem(): void;
|
|
975
|
-
drag(e: any): void;
|
|
976
|
-
updateIdleItemsStateAndPosition(): void;
|
|
977
|
-
dragEnd(): void;
|
|
978
|
-
applyNewItemsOrder(): void;
|
|
979
|
-
cleanup(): void;
|
|
980
|
-
unsetDraggableItem(): void;
|
|
981
|
-
unsetItemState(): void;
|
|
982
|
-
dispose(): void;
|
|
983
|
-
}
|
|
984
|
-
|
|
985
912
|
declare type EmbeddingsResponse = z.infer<typeof zEmbeddingsResponse>;
|
|
986
913
|
|
|
987
914
|
declare type ExecutedWsMessage = z.infer<typeof zExecutedWsMessage>;
|
|
@@ -31827,6 +31754,7 @@ export declare class ComfyApp {
|
|
|
31827
31754
|
'Comfy.Server.ServerConfigValues': z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
31828
31755
|
'Comfy.Server.LaunchArgs': z.ZodRecord<z.ZodString, z.ZodString>;
|
|
31829
31756
|
'LiteGraph.Canvas.MaximumFps': z.ZodNumber;
|
|
31757
|
+
'Comfy.Workflow.ConfirmDelete': z.ZodBoolean;
|
|
31830
31758
|
}, "strip", z.ZodTypeAny, {
|
|
31831
31759
|
'Comfy.ColorPalette'?: string;
|
|
31832
31760
|
'Comfy.CustomColorPalettes'?: Record<string, {
|
|
@@ -31997,6 +31925,7 @@ export declare class ComfyApp {
|
|
|
31997
31925
|
'Comfy.Server.ServerConfigValues'?: Record<string, any>;
|
|
31998
31926
|
'Comfy.Server.LaunchArgs'?: Record<string, string>;
|
|
31999
31927
|
'LiteGraph.Canvas.MaximumFps'?: number;
|
|
31928
|
+
'Comfy.Workflow.ConfirmDelete'?: boolean;
|
|
32000
31929
|
}, {
|
|
32001
31930
|
'Comfy.ColorPalette'?: string;
|
|
32002
31931
|
'Comfy.CustomColorPalettes'?: Record<string, {
|
|
@@ -32167,6 +32096,7 @@ export declare class ComfyApp {
|
|
|
32167
32096
|
'Comfy.Server.ServerConfigValues'?: Record<string, any>;
|
|
32168
32097
|
'Comfy.Server.LaunchArgs'?: Record<string, string>;
|
|
32169
32098
|
'LiteGraph.Canvas.MaximumFps'?: number;
|
|
32099
|
+
'Comfy.Workflow.ConfirmDelete'?: boolean;
|
|
32170
32100
|
}>>>;
|
|
32171
32101
|
|
|
32172
32102
|
declare const zStatusWsMessage: z.ZodObject<{
|