@comfyorg/comfyui-frontend-types 1.41.9 → 1.41.11

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 (2) hide show
  1. package/index.d.ts +30 -19
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2179,6 +2179,7 @@ export declare class ComfyApp {
2179
2179
  'Comfy.VueNodes.AutoScaleLayout'?: boolean | undefined;
2180
2180
  'Comfy.Assets.UseAssetAPI'?: boolean | undefined;
2181
2181
  'Comfy.Queue.QPOV2'?: boolean | undefined;
2182
+ 'Comfy.Queue.ShowRunProgressBar'?: boolean | undefined;
2182
2183
  'Comfy-Desktop.AutoUpdate'?: boolean | undefined;
2183
2184
  'Comfy-Desktop.SendStatistics'?: boolean | undefined;
2184
2185
  'Comfy-Desktop.WindowStyle'?: string | undefined;
@@ -2318,11 +2319,6 @@ export declare class ComfyApp {
2318
2319
  * Takes precedence over initialMode when present.
2319
2320
  */
2320
2321
  activeMode: AppMode | null;
2321
- /**
2322
- * In-progress builder selections not yet persisted via save.
2323
- * Preserved across tab switches, discarded on exitBuilder.
2324
- */
2325
- dirtyLinearData: LinearData | null;
2326
2322
  /**
2327
2323
  * @param options The path, modified, and size of the workflow.
2328
2324
  * Note: path is the full path, including the 'workflows/' prefix.
@@ -2489,6 +2485,22 @@ export declare class ComfyApp {
2489
2485
  */
2490
2486
  export declare function createNodeLocatorId(subgraphUuid: string, localNodeId: NodeId_2): NodeLocatorId;
2491
2487
 
2488
+ /** Options for {@link LiteGraphGlobal.createNode}. Shallow-copied onto the new node. */
2489
+ declare interface CreateNodeOptions {
2490
+ pos?: Point;
2491
+ size?: Size;
2492
+ properties?: Dictionary<NodeProperty | undefined>;
2493
+ flags?: Partial<INodeFlags>;
2494
+ mode?: LGraphEventMode;
2495
+ color?: string;
2496
+ bgcolor?: string;
2497
+ boxcolor?: string;
2498
+ title?: string;
2499
+ shape?: RenderShape;
2500
+ inputs?: Partial<INodeInputSlot>[];
2501
+ outputs?: Partial<INodeOutputSlot>[];
2502
+ }
2503
+
2492
2504
  /**
2493
2505
  * Creates a UUIDv4 string.
2494
2506
  * @returns A new UUIDv4 string
@@ -4530,6 +4542,7 @@ export declare class ComfyApp {
4530
4542
  dispatch<T extends keyof NeverNever<LGraphCanvasEventMap>>(type: T, detail: LGraphCanvasEventMap[T]): boolean;
4531
4543
  dispatch<T extends keyof PickNevers<LGraphCanvasEventMap>>(type: T): boolean;
4532
4544
  dispatchEvent<TEvent extends keyof LGraphCanvasEventMap>(type: TEvent, detail: LGraphCanvasEventMap[TEvent]): void;
4545
+ private _setCursor;
4533
4546
  private _updateCursorStyle;
4534
4547
  private _previously_dragging_canvas;
4535
4548
  /** @deprecated @inheritdoc {@link LGraphCanvasState.readOnly} */
@@ -6531,11 +6544,6 @@ export declare class ComfyApp {
6531
6544
  type: A;
6532
6545
  }>;
6533
6546
 
6534
- declare interface LinearData {
6535
- inputs: [NodeId, string][];
6536
- outputs: NodeId[];
6537
- }
6538
-
6539
6547
  /**
6540
6548
  * Component of {@link LGraphCanvas} that handles connecting and moving links.
6541
6549
  * @see {@link LLink}
@@ -7123,7 +7131,7 @@ export declare class ComfyApp {
7123
7131
  * @param title a name to distinguish from other nodes
7124
7132
  * @param options to set options
7125
7133
  */
7126
- createNode(type: string, title?: string, options?: Dictionary<unknown>): LGraphNode | null;
7134
+ createNode(type: string, title?: string, options?: CreateNodeOptions): LGraphNode | null;
7127
7135
  /**
7128
7136
  * Returns a registered node type with a given name
7129
7137
  * @param type full name of the node class. p.e. "math/sin"
@@ -9470,18 +9478,18 @@ export declare class ComfyApp {
9470
9478
  status: "running" | "completed" | "failed" | "created";
9471
9479
  progress: number;
9472
9480
  task_id: string;
9473
- bytes_downloaded: number;
9474
9481
  asset_name: string;
9475
9482
  bytes_total: number;
9483
+ bytes_downloaded: number;
9476
9484
  error?: string | undefined;
9477
9485
  asset_id?: string | undefined;
9478
9486
  }, {
9479
9487
  status: "running" | "completed" | "failed" | "created";
9480
9488
  progress: number;
9481
9489
  task_id: string;
9482
- bytes_downloaded: number;
9483
9490
  asset_name: string;
9484
9491
  bytes_total: number;
9492
+ bytes_downloaded: number;
9485
9493
  error?: string | undefined;
9486
9494
  asset_id?: string | undefined;
9487
9495
  }>;
@@ -14993,9 +15001,6 @@ export declare class ComfyApp {
14993
15001
  }, z.ZodTypeAny, "passthrough"> | undefined;
14994
15002
  };
14995
15003
  prompt_id?: string | undefined;
14996
- exec_info?: {
14997
- queue_remaining?: number | undefined;
14998
- } | undefined;
14999
15004
  node_errors?: Record<string | number, {
15000
15005
  class_type: string;
15001
15006
  errors: {
@@ -15008,6 +15013,9 @@ export declare class ComfyApp {
15008
15013
  }[];
15009
15014
  dependent_outputs: any[];
15010
15015
  }> | undefined;
15016
+ exec_info?: {
15017
+ queue_remaining?: number | undefined;
15018
+ } | undefined;
15011
15019
  }, {
15012
15020
  error: string | {
15013
15021
  type: string;
@@ -15018,9 +15026,6 @@ export declare class ComfyApp {
15018
15026
  }, z.ZodTypeAny, "passthrough"> | undefined;
15019
15027
  };
15020
15028
  prompt_id?: string | undefined;
15021
- exec_info?: {
15022
- queue_remaining?: number | undefined;
15023
- } | undefined;
15024
15029
  node_errors?: Record<string | number, {
15025
15030
  class_type: string;
15026
15031
  errors: {
@@ -15033,6 +15038,9 @@ export declare class ComfyApp {
15033
15038
  }[];
15034
15039
  dependent_outputs: any[];
15035
15040
  }> | undefined;
15041
+ exec_info?: {
15042
+ queue_remaining?: number | undefined;
15043
+ } | undefined;
15036
15044
  }>;
15037
15045
 
15038
15046
  /**
@@ -16578,6 +16586,7 @@ export declare class ComfyApp {
16578
16586
  'Comfy.VueNodes.AutoScaleLayout': z.ZodBoolean;
16579
16587
  'Comfy.Assets.UseAssetAPI': z.ZodBoolean;
16580
16588
  'Comfy.Queue.QPOV2': z.ZodBoolean;
16589
+ 'Comfy.Queue.ShowRunProgressBar': z.ZodBoolean;
16581
16590
  'Comfy-Desktop.AutoUpdate': z.ZodBoolean;
16582
16591
  'Comfy-Desktop.SendStatistics': z.ZodBoolean;
16583
16592
  'Comfy-Desktop.WindowStyle': z.ZodString;
@@ -17131,6 +17140,7 @@ export declare class ComfyApp {
17131
17140
  'Comfy.VueNodes.AutoScaleLayout': boolean;
17132
17141
  'Comfy.Assets.UseAssetAPI': boolean;
17133
17142
  'Comfy.Queue.QPOV2': boolean;
17143
+ 'Comfy.Queue.ShowRunProgressBar': boolean;
17134
17144
  'Comfy-Desktop.AutoUpdate': boolean;
17135
17145
  'Comfy-Desktop.SendStatistics': boolean;
17136
17146
  'Comfy-Desktop.WindowStyle': string;
@@ -17681,6 +17691,7 @@ export declare class ComfyApp {
17681
17691
  'Comfy.VueNodes.AutoScaleLayout': boolean;
17682
17692
  'Comfy.Assets.UseAssetAPI': boolean;
17683
17693
  'Comfy.Queue.QPOV2': boolean;
17694
+ 'Comfy.Queue.ShowRunProgressBar': boolean;
17684
17695
  'Comfy-Desktop.AutoUpdate': boolean;
17685
17696
  'Comfy-Desktop.SendStatistics': boolean;
17686
17697
  'Comfy-Desktop.WindowStyle': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.41.9",
3
+ "version": "1.41.11",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"