@comfyorg/comfyui-frontend-types 1.16.3 → 1.16.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.
Files changed (2) hide show
  1. package/index.d.ts +21 -22
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -27,7 +27,6 @@ import { FunctionalComponent } from 'vue';
27
27
  import { HistoryTaskItem } from '../schemas/apiSchema';
28
28
  import { IntlDateTimeFormat } from 'vue-i18n';
29
29
  import { IntlNumberFormat } from 'vue-i18n';
30
- import { ISerialisedGraph } from '@comfyorg/litegraph';
31
30
  import { IWidget } from '@comfyorg/litegraph';
32
31
  import { LGraph } from '@comfyorg/litegraph';
33
32
  import { LGraphCanvas } from '@comfyorg/litegraph';
@@ -551,12 +550,6 @@ export declare class ComfyApp {
551
550
  showMissingModelsDialog?: boolean | undefined;
552
551
  checkForRerouteMigration?: boolean | undefined;
553
552
  }): Promise<void>;
554
- /**
555
- * Serializes a graph using preferred user settings.
556
- * @param graph The litegraph to serialize.
557
- * @returns A serialized graph (aka workflow) with preferred user settings.
558
- */
559
- serializeGraph(graph?: LGraph): ISerialisedGraph;
560
553
  graphToPrompt(graph?: LGraph): Promise<{
561
554
  workflow: ComfyWorkflowJSON;
562
555
  output: ComfyApiWorkflow;
@@ -5222,6 +5215,7 @@ export declare class ComfyApp {
5222
5215
  1: z.ZodNumber;
5223
5216
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
5224
5217
  }, z.ZodTypeAny, "passthrough">>>;
5218
+ frontendVersion: z.ZodOptional<z.ZodString>;
5225
5219
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
5226
5220
  id: z.ZodNumber;
5227
5221
  parentId: z.ZodNumber;
@@ -5352,6 +5346,7 @@ export declare class ComfyApp {
5352
5346
  1: z.ZodNumber;
5353
5347
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
5354
5348
  }, z.ZodTypeAny, "passthrough">>>;
5349
+ frontendVersion: z.ZodOptional<z.ZodString>;
5355
5350
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
5356
5351
  id: z.ZodNumber;
5357
5352
  parentId: z.ZodNumber;
@@ -5482,6 +5477,7 @@ export declare class ComfyApp {
5482
5477
  1: z.ZodNumber;
5483
5478
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
5484
5479
  }, z.ZodTypeAny, "passthrough">>>;
5480
+ frontendVersion: z.ZodOptional<z.ZodString>;
5485
5481
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
5486
5482
  id: z.ZodNumber;
5487
5483
  parentId: z.ZodNumber;
@@ -6168,6 +6164,7 @@ export declare class ComfyApp {
6168
6164
  1: z.ZodNumber;
6169
6165
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
6170
6166
  }, z.ZodTypeAny, "passthrough">>>;
6167
+ frontendVersion: z.ZodOptional<z.ZodString>;
6171
6168
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
6172
6169
  id: z.ZodNumber;
6173
6170
  parentId: z.ZodNumber;
@@ -6298,6 +6295,7 @@ export declare class ComfyApp {
6298
6295
  1: z.ZodNumber;
6299
6296
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
6300
6297
  }, z.ZodTypeAny, "passthrough">>>;
6298
+ frontendVersion: z.ZodOptional<z.ZodString>;
6301
6299
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
6302
6300
  id: z.ZodNumber;
6303
6301
  parentId: z.ZodNumber;
@@ -6428,6 +6426,7 @@ export declare class ComfyApp {
6428
6426
  1: z.ZodNumber;
6429
6427
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
6430
6428
  }, z.ZodTypeAny, "passthrough">>>;
6429
+ frontendVersion: z.ZodOptional<z.ZodString>;
6431
6430
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
6432
6431
  id: z.ZodNumber;
6433
6432
  parentId: z.ZodNumber;
@@ -7114,6 +7113,7 @@ export declare class ComfyApp {
7114
7113
  1: z.ZodNumber;
7115
7114
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
7116
7115
  }, z.ZodTypeAny, "passthrough">>>;
7116
+ frontendVersion: z.ZodOptional<z.ZodString>;
7117
7117
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
7118
7118
  id: z.ZodNumber;
7119
7119
  parentId: z.ZodNumber;
@@ -7244,6 +7244,7 @@ export declare class ComfyApp {
7244
7244
  1: z.ZodNumber;
7245
7245
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
7246
7246
  }, z.ZodTypeAny, "passthrough">>>;
7247
+ frontendVersion: z.ZodOptional<z.ZodString>;
7247
7248
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
7248
7249
  id: z.ZodNumber;
7249
7250
  parentId: z.ZodNumber;
@@ -7374,6 +7375,7 @@ export declare class ComfyApp {
7374
7375
  1: z.ZodNumber;
7375
7376
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
7376
7377
  }, z.ZodTypeAny, "passthrough">>>;
7378
+ frontendVersion: z.ZodOptional<z.ZodString>;
7377
7379
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
7378
7380
  id: z.ZodNumber;
7379
7381
  parentId: z.ZodNumber;
@@ -8175,6 +8177,7 @@ export declare class ComfyApp {
8175
8177
  1: z.ZodNumber;
8176
8178
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
8177
8179
  }, z.ZodTypeAny, "passthrough">>>;
8180
+ frontendVersion: z.ZodOptional<z.ZodString>;
8178
8181
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
8179
8182
  id: z.ZodNumber;
8180
8183
  parentId: z.ZodNumber;
@@ -8305,6 +8308,7 @@ export declare class ComfyApp {
8305
8308
  1: z.ZodNumber;
8306
8309
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
8307
8310
  }, z.ZodTypeAny, "passthrough">>>;
8311
+ frontendVersion: z.ZodOptional<z.ZodString>;
8308
8312
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
8309
8313
  id: z.ZodNumber;
8310
8314
  parentId: z.ZodNumber;
@@ -8435,6 +8439,7 @@ export declare class ComfyApp {
8435
8439
  1: z.ZodNumber;
8436
8440
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
8437
8441
  }, z.ZodTypeAny, "passthrough">>>;
8442
+ frontendVersion: z.ZodOptional<z.ZodString>;
8438
8443
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
8439
8444
  id: z.ZodNumber;
8440
8445
  parentId: z.ZodNumber;
@@ -9232,6 +9237,7 @@ export declare class ComfyApp {
9232
9237
  1: z.ZodNumber;
9233
9238
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
9234
9239
  }, z.ZodTypeAny, "passthrough">>>;
9240
+ frontendVersion: z.ZodOptional<z.ZodString>;
9235
9241
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
9236
9242
  id: z.ZodNumber;
9237
9243
  parentId: z.ZodNumber;
@@ -9362,6 +9368,7 @@ export declare class ComfyApp {
9362
9368
  1: z.ZodNumber;
9363
9369
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
9364
9370
  }, z.ZodTypeAny, "passthrough">>>;
9371
+ frontendVersion: z.ZodOptional<z.ZodString>;
9365
9372
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
9366
9373
  id: z.ZodNumber;
9367
9374
  parentId: z.ZodNumber;
@@ -9492,6 +9499,7 @@ export declare class ComfyApp {
9492
9499
  1: z.ZodNumber;
9493
9500
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
9494
9501
  }, z.ZodTypeAny, "passthrough">>>;
9502
+ frontendVersion: z.ZodOptional<z.ZodString>;
9495
9503
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
9496
9504
  id: z.ZodNumber;
9497
9505
  parentId: z.ZodNumber;
@@ -10289,6 +10297,7 @@ export declare class ComfyApp {
10289
10297
  1: z.ZodNumber;
10290
10298
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
10291
10299
  }, z.ZodTypeAny, "passthrough">>>;
10300
+ frontendVersion: z.ZodOptional<z.ZodString>;
10292
10301
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
10293
10302
  id: z.ZodNumber;
10294
10303
  parentId: z.ZodNumber;
@@ -10419,6 +10428,7 @@ export declare class ComfyApp {
10419
10428
  1: z.ZodNumber;
10420
10429
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
10421
10430
  }, z.ZodTypeAny, "passthrough">>>;
10431
+ frontendVersion: z.ZodOptional<z.ZodString>;
10422
10432
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
10423
10433
  id: z.ZodNumber;
10424
10434
  parentId: z.ZodNumber;
@@ -10549,6 +10559,7 @@ export declare class ComfyApp {
10549
10559
  1: z.ZodNumber;
10550
10560
  }, z.ZodTypeAny, "passthrough">>, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
10551
10561
  }, z.ZodTypeAny, "passthrough">>>;
10562
+ frontendVersion: z.ZodOptional<z.ZodString>;
10552
10563
  linkExtensions: z.ZodOptional<z.ZodArray<z.ZodObject<{
10553
10564
  id: z.ZodNumber;
10554
10565
  parentId: z.ZodNumber;
@@ -11304,6 +11315,9 @@ declare module '@comfyorg/litegraph/dist/types/widgets' {
11304
11315
  * Controls whether the widget's value is included in the API workflow/prompt.
11305
11316
  * - If false, the value will be excluded from the API workflow but still serialized as part of the graph state
11306
11317
  * - If true or undefined, the value will be included in both the API workflow and graph state
11318
+ * @default true
11319
+ * @use {@link IBaseWidget.serialize} if you don't want the widget value to be included in both
11320
+ * the API workflow and graph state.
11307
11321
  */
11308
11322
  serialize?: boolean
11309
11323
  /**
@@ -11314,21 +11328,6 @@ declare module '@comfyorg/litegraph/dist/types/widgets' {
11314
11328
  * The minimum size of the node if the widget is present.
11315
11329
  */
11316
11330
  minNodeSize?: Size
11317
- /**
11318
- * Whether the widget is optional.
11319
- */
11320
- inputIsOptional?: boolean
11321
- /**
11322
- * Whether the widget is forced to be an input.
11323
- */
11324
- forceInput?: boolean
11325
- /**
11326
- * Whether the widget defaults to input state. Can still be converted back
11327
- * to widget state.
11328
- * @deprecated Widget to input conversion is no longer necessary, as they co-exist now.
11329
- * This option no longer has any effect.
11330
- */
11331
- defaultInput?: boolean
11332
11331
  }
11333
11332
 
11334
11333
  interface IBaseWidget {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.16.3",
3
+ "version": "1.16.6",
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.13.0"
16
+ "@comfyorg/litegraph": "^0.13.1"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "vue": "^3.5.13",