@comfyorg/comfyui-frontend-types 1.31.1 → 1.31.2

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 +9 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1335,15 +1335,15 @@ export declare class ComfyApp {
1335
1335
  /**
1336
1336
  * Allows the extension to add context menu items to canvas right-click menus
1337
1337
  * @param canvas The canvas instance
1338
- * @returns An array of context menu items to add
1338
+ * @returns An array of context menu items to add (null values represent separators)
1339
1339
  */
1340
- getCanvasMenuItems?(canvas: LGraphCanvas): IContextMenuValue[];
1340
+ getCanvasMenuItems?(canvas: LGraphCanvas): (IContextMenuValue | null)[];
1341
1341
  /**
1342
1342
  * Allows the extension to add context menu items to node right-click menus
1343
1343
  * @param node The node being right-clicked
1344
- * @returns An array of context menu items to add
1344
+ * @returns An array of context menu items to add (null values represent separators)
1345
1345
  */
1346
- getNodeMenuItems?(node: LGraphNode): IContextMenuValue[];
1346
+ getNodeMenuItems?(node: LGraphNode): (IContextMenuValue | null)[];
1347
1347
  /**
1348
1348
  * Allows the extension to add additional handling to the node before it is registered with **LGraph**
1349
1349
  * @param nodeType The node class (not an instance)
@@ -4200,6 +4200,10 @@ export declare class ComfyApp {
4200
4200
  closingGraph: LGraph;
4201
4201
  fromNode: SubgraphNode;
4202
4202
  };
4203
+ /** Dispatched after a group of items has been converted to a subgraph*/
4204
+ 'subgraph-converted': {
4205
+ subgraphNode: SubgraphNode;
4206
+ };
4203
4207
  'litegraph:canvas': {
4204
4208
  subType: 'before-change' | 'after-change';
4205
4209
  } | {
@@ -7432,6 +7436,7 @@ export declare class ComfyApp {
7432
7436
  * This ensures nested subgraph widget values are preserved when saving.
7433
7437
  */
7434
7438
  serialize(): ISerialisedNode;
7439
+ clone(): LGraphNode | null;
7435
7440
  }
7436
7441
 
7437
7442
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.31.1",
3
+ "version": "1.31.2",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"