@comfyorg/comfyui-frontend-types 1.19.7 → 1.19.9

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 +28 -4
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -52,6 +52,7 @@ import { PendingTaskItem } from '../schemas/apiSchema';
52
52
  import { PluralizationRules } from '@intlify/core-base';
53
53
  import { Positionable } from '@comfyorg/litegraph/dist/interfaces';
54
54
  import { PostTranslationHandler } from 'vue-i18n';
55
+ import { ProgressTextWsMessage } from '../schemas/apiSchema';
55
56
  import { ProgressWsMessage } from '../schemas/apiSchema';
56
57
  import { PromptResponse } from '../schemas/apiSchema';
57
58
  import { RenderFunction } from 'vue';
@@ -117,6 +118,7 @@ declare interface BackendApiCalls {
117
118
  logs: LogsWsMessage;
118
119
  /** Binary preview/progress data */
119
120
  b_preview: Blob;
121
+ progress_text: ProgressTextWsMessage;
120
122
  }
121
123
 
122
124
  declare interface BaseBottomPanelExtension {
@@ -160,8 +162,6 @@ declare class ChangeTracker {
160
162
  offset: [number, number];
161
163
  };
162
164
  nodeOutputs?: Record<string, any>;
163
- static app?: ComfyApp;
164
- get app(): ComfyApp;
165
165
  constructor(
166
166
  /**
167
167
  * The workflow that this change tracker is tracking
@@ -185,8 +185,8 @@ declare class ChangeTracker {
185
185
  undoRedo(e: KeyboardEvent): Promise<true | undefined>;
186
186
  beforeChange(): void;
187
187
  afterChange(): void;
188
- static init(app: ComfyApp): void;
189
- static bindInput(_app: ComfyApp, activeEl: Element | null): boolean;
188
+ static init(): void;
189
+ static bindInput(activeEl: Element | null): boolean;
190
190
  static graphEqual(a: ComfyWorkflowJSON, b: ComfyWorkflowJSON): boolean;
191
191
  private static graphDiff;
192
192
  }
@@ -7160,18 +7160,21 @@ export declare class ComfyApp {
7160
7160
  parentId: z.ZodOptional<z.ZodNumber>;
7161
7161
  }, z.ZodTypeAny, "passthrough">>, "many">>;
7162
7162
  groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
7163
+ id: z.ZodOptional<z.ZodNumber>;
7163
7164
  title: z.ZodString;
7164
7165
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
7165
7166
  color: z.ZodOptional<z.ZodString>;
7166
7167
  font_size: z.ZodOptional<z.ZodNumber>;
7167
7168
  locked: z.ZodOptional<z.ZodBoolean>;
7168
7169
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7170
+ id: z.ZodOptional<z.ZodNumber>;
7169
7171
  title: z.ZodString;
7170
7172
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
7171
7173
  color: z.ZodOptional<z.ZodString>;
7172
7174
  font_size: z.ZodOptional<z.ZodNumber>;
7173
7175
  locked: z.ZodOptional<z.ZodBoolean>;
7174
7176
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7177
+ id: z.ZodOptional<z.ZodNumber>;
7175
7178
  title: z.ZodString;
7176
7179
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
7177
7180
  color: z.ZodOptional<z.ZodString>;
@@ -8109,18 +8112,21 @@ export declare class ComfyApp {
8109
8112
  parentId: z.ZodOptional<z.ZodNumber>;
8110
8113
  }, z.ZodTypeAny, "passthrough">>, "many">>;
8111
8114
  groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
8115
+ id: z.ZodOptional<z.ZodNumber>;
8112
8116
  title: z.ZodString;
8113
8117
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
8114
8118
  color: z.ZodOptional<z.ZodString>;
8115
8119
  font_size: z.ZodOptional<z.ZodNumber>;
8116
8120
  locked: z.ZodOptional<z.ZodBoolean>;
8117
8121
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8122
+ id: z.ZodOptional<z.ZodNumber>;
8118
8123
  title: z.ZodString;
8119
8124
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
8120
8125
  color: z.ZodOptional<z.ZodString>;
8121
8126
  font_size: z.ZodOptional<z.ZodNumber>;
8122
8127
  locked: z.ZodOptional<z.ZodBoolean>;
8123
8128
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8129
+ id: z.ZodOptional<z.ZodNumber>;
8124
8130
  title: z.ZodString;
8125
8131
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
8126
8132
  color: z.ZodOptional<z.ZodString>;
@@ -9058,18 +9064,21 @@ export declare class ComfyApp {
9058
9064
  parentId: z.ZodOptional<z.ZodNumber>;
9059
9065
  }, z.ZodTypeAny, "passthrough">>, "many">>;
9060
9066
  groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
9067
+ id: z.ZodOptional<z.ZodNumber>;
9061
9068
  title: z.ZodString;
9062
9069
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
9063
9070
  color: z.ZodOptional<z.ZodString>;
9064
9071
  font_size: z.ZodOptional<z.ZodNumber>;
9065
9072
  locked: z.ZodOptional<z.ZodBoolean>;
9066
9073
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9074
+ id: z.ZodOptional<z.ZodNumber>;
9067
9075
  title: z.ZodString;
9068
9076
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
9069
9077
  color: z.ZodOptional<z.ZodString>;
9070
9078
  font_size: z.ZodOptional<z.ZodNumber>;
9071
9079
  locked: z.ZodOptional<z.ZodBoolean>;
9072
9080
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9081
+ id: z.ZodOptional<z.ZodNumber>;
9073
9082
  title: z.ZodString;
9074
9083
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
9075
9084
  color: z.ZodOptional<z.ZodString>;
@@ -9534,18 +9543,21 @@ export declare class ComfyApp {
9534
9543
  lastRerouteId: z.ZodOptional<z.ZodNumber>;
9535
9544
  }, z.ZodTypeAny, "passthrough">>;
9536
9545
  groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
9546
+ id: z.ZodOptional<z.ZodNumber>;
9537
9547
  title: z.ZodString;
9538
9548
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
9539
9549
  color: z.ZodOptional<z.ZodString>;
9540
9550
  font_size: z.ZodOptional<z.ZodNumber>;
9541
9551
  locked: z.ZodOptional<z.ZodBoolean>;
9542
9552
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
9553
+ id: z.ZodOptional<z.ZodNumber>;
9543
9554
  title: z.ZodString;
9544
9555
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
9545
9556
  color: z.ZodOptional<z.ZodString>;
9546
9557
  font_size: z.ZodOptional<z.ZodNumber>;
9547
9558
  locked: z.ZodOptional<z.ZodBoolean>;
9548
9559
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
9560
+ id: z.ZodOptional<z.ZodNumber>;
9549
9561
  title: z.ZodString;
9550
9562
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
9551
9563
  color: z.ZodOptional<z.ZodString>;
@@ -10594,18 +10606,21 @@ export declare class ComfyApp {
10594
10606
  lastRerouteId: z.ZodOptional<z.ZodNumber>;
10595
10607
  }, z.ZodTypeAny, "passthrough">>;
10596
10608
  groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
10609
+ id: z.ZodOptional<z.ZodNumber>;
10597
10610
  title: z.ZodString;
10598
10611
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
10599
10612
  color: z.ZodOptional<z.ZodString>;
10600
10613
  font_size: z.ZodOptional<z.ZodNumber>;
10601
10614
  locked: z.ZodOptional<z.ZodBoolean>;
10602
10615
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10616
+ id: z.ZodOptional<z.ZodNumber>;
10603
10617
  title: z.ZodString;
10604
10618
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
10605
10619
  color: z.ZodOptional<z.ZodString>;
10606
10620
  font_size: z.ZodOptional<z.ZodNumber>;
10607
10621
  locked: z.ZodOptional<z.ZodBoolean>;
10608
10622
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10623
+ id: z.ZodOptional<z.ZodNumber>;
10609
10624
  title: z.ZodString;
10610
10625
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
10611
10626
  color: z.ZodOptional<z.ZodString>;
@@ -11654,18 +11669,21 @@ export declare class ComfyApp {
11654
11669
  lastRerouteId: z.ZodOptional<z.ZodNumber>;
11655
11670
  }, z.ZodTypeAny, "passthrough">>;
11656
11671
  groups: z.ZodOptional<z.ZodArray<z.ZodObject<{
11672
+ id: z.ZodOptional<z.ZodNumber>;
11657
11673
  title: z.ZodString;
11658
11674
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
11659
11675
  color: z.ZodOptional<z.ZodString>;
11660
11676
  font_size: z.ZodOptional<z.ZodNumber>;
11661
11677
  locked: z.ZodOptional<z.ZodBoolean>;
11662
11678
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11679
+ id: z.ZodOptional<z.ZodNumber>;
11663
11680
  title: z.ZodString;
11664
11681
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
11665
11682
  color: z.ZodOptional<z.ZodString>;
11666
11683
  font_size: z.ZodOptional<z.ZodNumber>;
11667
11684
  locked: z.ZodOptional<z.ZodBoolean>;
11668
11685
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11686
+ id: z.ZodOptional<z.ZodNumber>;
11669
11687
  title: z.ZodString;
11670
11688
  bounding: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
11671
11689
  color: z.ZodOptional<z.ZodString>;
@@ -13381,6 +13399,12 @@ declare module '@comfyorg/litegraph/dist/types/widgets' {
13381
13399
  * The minimum size of the node if the widget is present.
13382
13400
  */
13383
13401
  minNodeSize?: Size
13402
+
13403
+ /** If the widget is advanced, this will be set to true. */
13404
+ advanced?: boolean
13405
+
13406
+ /** If the widget is hidden, this will be set to true. */
13407
+ hidden?: boolean
13384
13408
  }
13385
13409
 
13386
13410
  interface IBaseWidget {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.19.7",
3
+ "version": "1.19.9",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"
@@ -13,7 +13,7 @@
13
13
  "description": "TypeScript definitions for @comfyorg/comfyui-frontend",
14
14
  "license": "GPL-3.0-only",
15
15
  "dependencies": {
16
- "@comfyorg/litegraph": "^0.15.8"
16
+ "@comfyorg/litegraph": "^0.15.9"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "vue": "^3.5.13",