@comfyorg/comfyui-frontend-types 1.26.0 → 1.26.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 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -155,6 +155,7 @@ declare enum BadgePosition {
155
155
  declare interface BaseBottomPanelExtension {
156
156
  id: string;
157
157
  title: string;
158
+ targetPanel?: 'terminal' | 'shortcuts';
158
159
  }
159
160
 
160
161
  declare interface BaseDOMWidget<V extends object | string = object | string> extends IBaseWidget<V, string, DOMWidgetOptions<V>> {
@@ -1148,6 +1149,7 @@ export declare class ComfyApp {
1148
1149
  versionAdded?: string;
1149
1150
  confirmation?: string;
1150
1151
  source?: string;
1152
+ category?: 'essentials' | 'view-controls';
1151
1153
  }
1152
1154
 
1153
1155
  declare interface ComfyComponent<T extends HTMLElement = HTMLElement> {
@@ -6867,6 +6869,12 @@ export declare class ComfyApp {
6867
6869
  * @returns The slot at the given position, otherwise `undefined`.
6868
6870
  */
6869
6871
  getSlotInPosition(x: number, y: number): TSlot | undefined;
6872
+ /**
6873
+ * Handles double-click on an IO slot to rename it.
6874
+ * @param slot The slot that was double-clicked.
6875
+ * @param event The event that triggered the double-click.
6876
+ */
6877
+ protected handleSlotDoubleClick(slot: TSlot, event: CanvasPointerEvent): void;
6870
6878
  /**
6871
6879
  * Shows the context menu for an IO slot.
6872
6880
  * @param slot The slot to show the context menu for.
@@ -7139,6 +7147,7 @@ export declare class ComfyApp {
7139
7147
  connectToOutput(): void;
7140
7148
  connectToSubgraphInput(): void;
7141
7149
  connectToRerouteOutput(): void;
7150
+ disconnect(): boolean;
7142
7151
  }
7143
7152
 
7144
7153
  /** Connecting TO an input slot. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.26.0",
3
+ "version": "1.26.2",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"