builder-settings-types 0.0.278 → 0.0.279
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 +30 -30
- package/dist/builder-settings-types.es.js +446 -414
- package/dist/settings/gradient-settings/GradientSetting.d.ts +1 -1
- package/dist/settings/gradient-settings/components/EmbeddedColorPicker.d.ts +2 -0
- package/dist/settings/gradient-settings/recent/RecentColorManager.d.ts +3 -3
- package/dist/settings/gradient-settings/recent/createRecentColorsSection.d.ts +2 -2
- package/dist/settings/gradient-settings/utils/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -13,11 +13,11 @@ export declare class GradientSetting extends Setting<GradientValue, SettingProps
|
|
|
13
13
|
private popoverEl;
|
|
14
14
|
private isPopoverOpen;
|
|
15
15
|
private isEditing;
|
|
16
|
-
private forText;
|
|
17
16
|
detectChange?: (value: GradientValue | undefined) => void;
|
|
18
17
|
private previewUpdateTimeout;
|
|
19
18
|
private solidPicker;
|
|
20
19
|
private pendingSolidColor;
|
|
20
|
+
private recentGradientRefresh?;
|
|
21
21
|
constructor(props?: GradientSettingProps);
|
|
22
22
|
private originalDefault;
|
|
23
23
|
private defaultValue;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { RecentColorDisplayScope } from '../utils/types';
|
|
1
2
|
export interface EmbeddedColorPickerOptions {
|
|
2
3
|
initialColor: string;
|
|
3
4
|
initialOpacity: number;
|
|
4
5
|
onColorChange: (color: string, opacity: number) => void;
|
|
6
|
+
scope?: RecentColorDisplayScope;
|
|
5
7
|
}
|
|
6
8
|
export declare class EmbeddedColorPicker {
|
|
7
9
|
private currentColor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RecentColorDisplayScope } from '../utils/types';
|
|
2
2
|
export declare class RecentColorManager {
|
|
3
3
|
private static readonly STORAGE_KEY;
|
|
4
4
|
private static readonly MAX_COLORS;
|
|
@@ -8,6 +8,6 @@ export declare class RecentColorManager {
|
|
|
8
8
|
private static ensureLoaded;
|
|
9
9
|
private static persist;
|
|
10
10
|
private static list;
|
|
11
|
-
static getColors(scope:
|
|
12
|
-
static addColor(color: string | undefined, scope:
|
|
11
|
+
static getColors(scope: RecentColorDisplayScope): string[];
|
|
12
|
+
static addColor(color: string | undefined, scope: RecentColorDisplayScope): void;
|
|
13
13
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const createRecentColorsSection: (onSelect: (color: string) => void, scope:
|
|
1
|
+
import { RecentColorsSection, RecentColorDisplayScope } from '../utils/types';
|
|
2
|
+
export declare const createRecentColorsSection: (onSelect: (color: string) => void, scope: RecentColorDisplayScope) => RecentColorsSection;
|
|
@@ -9,13 +9,13 @@ export interface GradientValue {
|
|
|
9
9
|
stops: GradientStop[];
|
|
10
10
|
}
|
|
11
11
|
export type RecentColorScope = "solid" | "gradient";
|
|
12
|
+
export type RecentColorDisplayScope = RecentColorScope | "all";
|
|
12
13
|
export interface RecentColorsSection {
|
|
13
14
|
container: HTMLElement;
|
|
14
15
|
refresh: () => void;
|
|
15
16
|
}
|
|
16
17
|
export interface GradientSettingProps {
|
|
17
18
|
detectChange?: (value: GradientValue | undefined) => void;
|
|
18
|
-
forText?: boolean;
|
|
19
19
|
default?: GradientValue | string;
|
|
20
20
|
title?: string;
|
|
21
21
|
placeholder?: string;
|
package/package.json
CHANGED