builder-settings-types 0.0.335 → 0.0.337
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/base/settings-group/settingsGroup.d.ts +8 -0
- package/dist/base/settings.d.ts +12 -0
- package/dist/builder-settings-types.cjs.js +233 -82
- package/dist/builder-settings-types.es.js +4299 -3089
- package/dist/groups/image-setting-set/imageSettingSet.d.ts +21 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/settings/gradient-settings/GradientSetting.d.ts +17 -0
- package/dist/settings/gradient-settings/components/EmbeddedColorPicker.d.ts +28 -28
- package/dist/settings/gradient-settings/utils/icon.d.ts +3 -0
- package/dist/settings/gradient-settings/utils/types.d.ts +1 -0
- package/dist/settings/image-map-settings/ImageMapSetting.d.ts +76 -0
- package/dist/settings/image-map-settings/index.d.ts +2 -0
- package/dist/settings/image-map-settings/types.d.ts +19 -0
- package/dist/settings/multi-language-settings/multiLanguageSettings.d.ts +6 -0
- package/dist/settings/select-api/select-api.d.ts +1 -0
- package/dist/types/index.d.ts +10 -2
- package/package.json +1 -1
|
@@ -58,6 +58,7 @@ export declare class SettingGroup<TSettings extends SettingsMap> implements IDra
|
|
|
58
58
|
private propagateNestingLevel;
|
|
59
59
|
getNestingLevel(): number;
|
|
60
60
|
setNestingLevel(level: number): void;
|
|
61
|
+
setTitle(title: string): void;
|
|
61
62
|
getDataPropsPath(): string;
|
|
62
63
|
setDataPropsPath(path: string): void;
|
|
63
64
|
private propagateDataPropsPath;
|
|
@@ -65,6 +66,9 @@ export declare class SettingGroup<TSettings extends SettingsMap> implements IDra
|
|
|
65
66
|
private forceChildUIRefresh;
|
|
66
67
|
removeSetting(key: string): void;
|
|
67
68
|
updateVisibility(): void;
|
|
69
|
+
updateSettings(newSettings: SettingsMap, options?: {
|
|
70
|
+
preserveValues?: boolean;
|
|
71
|
+
}): void;
|
|
68
72
|
clone(): SettingGroupWithSettings<TSettings>;
|
|
69
73
|
resetDefault(): void;
|
|
70
74
|
setMobileValues(values: MobileSettingValues<TSettings>): void;
|
|
@@ -101,6 +105,10 @@ export declare class TabSettingGroup<TSettings extends SettingsMap = SettingsMap
|
|
|
101
105
|
constructor(groupProps: SettingGroupProps<TSettings>);
|
|
102
106
|
getActiveTabId(): string;
|
|
103
107
|
switchToTab(tabId: string): void;
|
|
108
|
+
getValues(): ExtractSettingValues<TSettings> & {
|
|
109
|
+
activeTabId: string;
|
|
110
|
+
};
|
|
111
|
+
getValues<K extends keyof TSettings>(childKey: K): unknown;
|
|
104
112
|
private updateTabUI;
|
|
105
113
|
draw(): HTMLElement;
|
|
106
114
|
}
|
package/dist/base/settings.d.ts
CHANGED
|
@@ -27,8 +27,20 @@ export declare abstract class Setting<T, P extends SettingProps<T>> implements I
|
|
|
27
27
|
protected props: P;
|
|
28
28
|
static DefaultUploadUrl: string;
|
|
29
29
|
static DefaultLanguage: string;
|
|
30
|
+
private static currentLanguage;
|
|
31
|
+
private static currentLanguageExplicitlySet;
|
|
32
|
+
private static languageChangeCallbacks;
|
|
30
33
|
static SetUploadUrl(url: string): void;
|
|
31
34
|
static SetDefaultLanguage(lng: string): void;
|
|
35
|
+
static CurrentLanguage(lang?: string): string;
|
|
36
|
+
static HasExplicitCurrentLanguage(): boolean;
|
|
37
|
+
static onLanguageChange(callback: (lang: string) => void): () => void;
|
|
38
|
+
static GlobalVariables: Record<string, string>;
|
|
39
|
+
static GlobalVariableGroups: {
|
|
40
|
+
title: string;
|
|
41
|
+
keys: string[];
|
|
42
|
+
}[];
|
|
43
|
+
static SetGlobalVariables(variables: Record<string, string>): void;
|
|
32
44
|
destroy(): void;
|
|
33
45
|
protected inputEl?: HTMLInputElement;
|
|
34
46
|
id: string;
|