builder-settings-types 0.0.90 → 0.0.92
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/dist/builder-settings-types.cjs.js +26 -26
- package/dist/builder-settings-types.es.js +233 -224
- package/dist/index.d.ts +6 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -99,6 +99,7 @@ export declare interface ButtonSettingProps extends SettingProps<void> {
|
|
|
99
99
|
|
|
100
100
|
export declare class ColorSetting extends StringSetting {
|
|
101
101
|
inputType: InputTypes;
|
|
102
|
+
detectChange?: (value: string | undefined) => void;
|
|
102
103
|
constructor(props: ColorSettingProps);
|
|
103
104
|
private hexToRgb;
|
|
104
105
|
private rgbToHex;
|
|
@@ -106,6 +107,7 @@ export declare class ColorSetting extends StringSetting {
|
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
export declare interface ColorSettingProps extends StringSettingsProps {
|
|
110
|
+
detectChange?: (value: string | undefined) => void;
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
export declare class DimensionSetting extends Setting<DimensionValue, DimensionSettingProps> {
|
|
@@ -310,7 +312,7 @@ export declare interface SelectApiSettingProps<T = any> extends SettingProps<T>
|
|
|
310
312
|
getOptionsAsync?: () => Promise<SelectApiOption[]>;
|
|
311
313
|
loadingText?: string;
|
|
312
314
|
onChange?: (value: T) => void;
|
|
313
|
-
|
|
315
|
+
detectChange?: (value: T | undefined) => void;
|
|
314
316
|
}
|
|
315
317
|
|
|
316
318
|
export declare class SelectApiSettings<T = any> extends Setting<T, SelectApiSettingProps<T>> {
|
|
@@ -324,6 +326,7 @@ export declare class SelectApiSettings<T = any> extends Setting<T, SelectApiSett
|
|
|
324
326
|
private isLoading;
|
|
325
327
|
private container;
|
|
326
328
|
private hasInitializedOptions;
|
|
329
|
+
private detectChangeCallback?;
|
|
327
330
|
constructor(props?: SelectApiSettingProps<T>);
|
|
328
331
|
private initializeOptions;
|
|
329
332
|
private createOption;
|
|
@@ -331,6 +334,7 @@ export declare class SelectApiSettings<T = any> extends Setting<T, SelectApiSett
|
|
|
331
334
|
private selectApiOption;
|
|
332
335
|
private updateOptionsList;
|
|
333
336
|
private updateButtonText;
|
|
337
|
+
setDetectChange(callback: (value: T | undefined) => void): void;
|
|
334
338
|
}
|
|
335
339
|
|
|
336
340
|
export declare interface SelectOption {
|
|
@@ -429,6 +433,7 @@ export declare interface SettingProps<T> {
|
|
|
429
433
|
icon?: string;
|
|
430
434
|
inputProps?: InputProps;
|
|
431
435
|
id?: string;
|
|
436
|
+
detectChange?: (value: T | undefined) => void;
|
|
432
437
|
}
|
|
433
438
|
|
|
434
439
|
export declare class StringSetting extends Setting<string, StringSettingsProps> {
|
package/package.json
CHANGED