builder-settings-types 0.0.277 → 0.0.278
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 +33 -33
- package/dist/builder-settings-types.es.js +266 -220
- package/dist/settings/gradient-settings/GradientSetting.d.ts +6 -1
- package/dist/settings/gradient-settings/components/EmbeddedColorPicker.d.ts +4 -0
- package/dist/settings/gradient-settings/recent/RecentColorManager.d.ts +1 -0
- package/package.json +1 -1
|
@@ -16,6 +16,8 @@ export declare class GradientSetting extends Setting<GradientValue, SettingProps
|
|
|
16
16
|
private forText;
|
|
17
17
|
detectChange?: (value: GradientValue | undefined) => void;
|
|
18
18
|
private previewUpdateTimeout;
|
|
19
|
+
private solidPicker;
|
|
20
|
+
private pendingSolidColor;
|
|
19
21
|
constructor(props?: GradientSettingProps);
|
|
20
22
|
private originalDefault;
|
|
21
23
|
private defaultValue;
|
|
@@ -39,13 +41,16 @@ export declare class GradientSetting extends Setting<GradientValue, SettingProps
|
|
|
39
41
|
private repositionPopover;
|
|
40
42
|
private refreshPopoverContent;
|
|
41
43
|
private onBackgroundClick;
|
|
44
|
+
private handlePopoverKeydown;
|
|
42
45
|
private closePopover;
|
|
46
|
+
private commitPendingSolidColor;
|
|
43
47
|
private handlePaste;
|
|
44
48
|
private handleTextInput;
|
|
45
49
|
private parseAndSet;
|
|
46
50
|
private triggerChange;
|
|
47
51
|
getElement(): HTMLElement | null;
|
|
48
|
-
getValue(): string
|
|
52
|
+
getValue(): string;
|
|
49
53
|
getCSSValue(): string;
|
|
54
|
+
getCSSForText(): Record<string, string>;
|
|
50
55
|
getRawValue(): GradientValue | undefined;
|
|
51
56
|
}
|
|
@@ -8,11 +8,15 @@ export declare class EmbeddedColorPicker {
|
|
|
8
8
|
private currentOpacity;
|
|
9
9
|
private onColorChange;
|
|
10
10
|
private container;
|
|
11
|
+
private recentScope;
|
|
12
|
+
private recentSectionRefresh?;
|
|
11
13
|
constructor(options: EmbeddedColorPickerOptions);
|
|
12
14
|
private createContainer;
|
|
13
15
|
private initializePicker;
|
|
14
16
|
private updateOpacityBackground;
|
|
15
17
|
private updateColorInput;
|
|
18
|
+
private applyRecentColor;
|
|
19
|
+
commitRecentColor(): void;
|
|
16
20
|
private setupColorAreaEvents;
|
|
17
21
|
private setupHueSliderEvents;
|
|
18
22
|
private setupOpacitySliderEvents;
|
package/package.json
CHANGED