@comfyorg/comfyui-frontend-types 1.32.2 → 1.32.4

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 +27 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -46,6 +46,29 @@ declare interface AboutPageBadge {
46
46
  icon: string;
47
47
  }
48
48
 
49
+ declare interface ActionBarButton {
50
+ /**
51
+ * Icon class to display (e.g., "icon-[lucide--message-circle-question-mark]")
52
+ */
53
+ icon: string;
54
+ /**
55
+ * Optional label text to display next to the icon
56
+ */
57
+ label?: string;
58
+ /**
59
+ * Optional tooltip text to show on hover
60
+ */
61
+ tooltip?: string;
62
+ /**
63
+ * Optional CSS classes to apply to the button
64
+ */
65
+ class?: string;
66
+ /**
67
+ * Click handler for the button
68
+ */
69
+ onClick: () => void;
70
+ }
71
+
49
72
  declare type AnimationOptions = {
50
73
  /** Duration of the animation in milliseconds. */
51
74
  duration?: number;
@@ -1305,6 +1328,10 @@ export declare class ComfyApp {
1305
1328
  * Badges to add to the top bar
1306
1329
  */
1307
1330
  topbarBadges?: TopbarBadge[];
1331
+ /**
1332
+ * Buttons to add to the action bar
1333
+ */
1334
+ actionBarButtons?: ActionBarButton[];
1308
1335
  /**
1309
1336
  * Allows any initialisation, e.g. loading resources. Called after the canvas is created but before nodes are added
1310
1337
  * @param app The ComfyUI app instance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comfyorg/comfyui-frontend-types",
3
- "version": "1.32.2",
3
+ "version": "1.32.4",
4
4
  "types": "./index.d.ts",
5
5
  "files": [
6
6
  "index.d.ts"