@comfyorg/comfyui-frontend-types 1.6.8 → 1.6.10
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.
- package/index.d.ts +29 -17
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -825,22 +825,41 @@ export declare class ComfyApp {
|
|
|
825
825
|
}
|
|
826
826
|
|
|
827
827
|
declare class ComfySettingsDialog extends ComfyDialog<HTMLDialogElement> {
|
|
828
|
-
#private;
|
|
829
828
|
app: ComfyApp;
|
|
830
|
-
settingsValues: any;
|
|
831
|
-
settingsLookup: Record<string, Setting>;
|
|
832
|
-
settingsParamLookup: Record<string, SettingParams>;
|
|
833
829
|
constructor(app: ComfyApp);
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
830
|
+
dispatchChange<T>(id: string, value: T, oldValue?: T): void;
|
|
831
|
+
/**
|
|
832
|
+
* @deprecated Use `settingStore.settingValues` instead.
|
|
833
|
+
*/
|
|
834
|
+
get settingsValues(): Record<string, any>;
|
|
835
|
+
/**
|
|
836
|
+
* @deprecated Use `settingStore.settingsById` instead.
|
|
837
|
+
*/
|
|
838
|
+
get settingsLookup(): Record<string, SettingParams>;
|
|
839
|
+
/**
|
|
840
|
+
* @deprecated Use `settingStore.settingsById` instead.
|
|
841
|
+
*/
|
|
842
|
+
get settingsParamLookup(): Record<string, SettingParams>;
|
|
843
|
+
/**
|
|
844
|
+
* @deprecated Use `settingStore.get` instead.
|
|
845
|
+
*/
|
|
837
846
|
getSettingValue<K extends keyof Settings>(id: K, defaultValue?: Settings[K]): Settings[K];
|
|
838
|
-
|
|
847
|
+
/**
|
|
848
|
+
* @deprecated Use `settingStore.getDefaultValue` instead.
|
|
849
|
+
*/
|
|
850
|
+
getSettingDefaultValue<K extends keyof Settings>(id: K): Settings[K];
|
|
851
|
+
/**
|
|
852
|
+
* @deprecated Use `settingStore.set` instead.
|
|
853
|
+
*/
|
|
839
854
|
setSettingValueAsync<K extends keyof Settings>(id: K, value: Settings[K]): Promise<void>;
|
|
855
|
+
/**
|
|
856
|
+
* @deprecated Use `settingStore.set` instead.
|
|
857
|
+
*/
|
|
840
858
|
setSettingValue<K extends keyof Settings>(id: K, value: Settings[K]): void;
|
|
841
|
-
refreshSetting(id: keyof Settings): void;
|
|
842
859
|
/**
|
|
843
|
-
* Deprecated for external callers/extensions. Use
|
|
860
|
+
* @deprecated Deprecated for external callers/extensions. Use
|
|
861
|
+
* `ComfyExtension.settings` field instead.
|
|
862
|
+
*
|
|
844
863
|
* Example:
|
|
845
864
|
* ```ts
|
|
846
865
|
* app.registerExtension({
|
|
@@ -1085,13 +1104,6 @@ export declare class ComfyApp {
|
|
|
1085
1104
|
|
|
1086
1105
|
declare type SearchAuxScore = number[];
|
|
1087
1106
|
|
|
1088
|
-
declare interface Setting {
|
|
1089
|
-
id: keyof Settings;
|
|
1090
|
-
onChange?: (value: any, oldValue?: any) => void;
|
|
1091
|
-
name: string;
|
|
1092
|
-
render: () => HTMLElement;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
1107
|
declare type SettingCustomRenderer = (name: string, setter: (v: any) => void, value: any, attrs: any) => HTMLElement;
|
|
1096
1108
|
|
|
1097
1109
|
declare type SettingInputType = 'boolean' | 'number' | 'slider' | 'combo' | 'text' | 'image' | 'color' | 'hidden';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comfyorg/comfyui-frontend-types",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.10",
|
|
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.8.
|
|
16
|
+
"@comfyorg/litegraph": "^0.8.50"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"vue": "^3.4.31",
|