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.
@@ -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
  }
@@ -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;