@loftyshaky/shared 2.0.0 → 2.2.0

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.
Files changed (89) hide show
  1. package/_locales/en/messages.json +38 -20
  2. package/_locales/ru/messages.json +40 -22
  3. package/announcement.js +1 -1
  4. package/app.js +1 -1
  5. package/chunk-error.js +1 -1
  6. package/chunk-index.js +1 -1
  7. package/chunk-merge.js +5 -0
  8. package/chunk-pickr.min.js +1 -1
  9. package/chunk-title.js +3 -3
  10. package/chunk-viewport.js +1 -1
  11. package/dependencies.js +1 -1
  12. package/dependencies.txt +75 -87
  13. package/ext.js +1 -1
  14. package/inputs.js +1 -1
  15. package/js/apps.js +17 -4
  16. package/js/projects_path.js +1 -1
  17. package/package.json +1 -1
  18. package/scss/settings/ext_version.scss +2 -2
  19. package/scss/settings/main.scss +2 -1
  20. package/scss/settings/sections.scss +1 -0
  21. package/scss/shared/btns.scss +15 -1
  22. package/scss/shared/checkboxes.scss +1 -0
  23. package/scss/shared/colors.scss +1 -1
  24. package/scss/shared/group.scss +10 -1
  25. package/scss/shared/inputs.scss +2 -3
  26. package/scss/shared/main.scss +10 -0
  27. package/scss/shared/themes/general/template.scss +25 -25
  28. package/scss/shared/transitions.scss +1 -0
  29. package/settings.d.ts +1 -1
  30. package/settings.js +1 -1
  31. package/shared.d.ts +1 -1
  32. package/shared.js +1 -1
  33. package/shared_clean.d.ts +1 -1
  34. package/shared_clean.js +1 -1
  35. package/ts/error_modules/crash_handler/components/body.d.ts +1 -1
  36. package/ts/error_modules/crash_handler/components/prop_types/body.d.ts +0 -1
  37. package/ts/error_modules/error/data/error.d.ts +1 -1
  38. package/ts/error_modules/error/scripts/notification.d.ts +1 -1
  39. package/ts/error_modules_clean/error/data/error.d.ts +1 -1
  40. package/ts/error_modules_clean/error/interfaces/show_error.d.ts +1 -0
  41. package/ts/error_modules_clean/error/interfaces/show_error_state_1.d.ts +1 -0
  42. package/ts/error_modules_clean/error/interfaces/show_error_state_1_f.d.ts +1 -1
  43. package/ts/error_modules_clean/error/interfaces/show_error_state_2.d.ts +1 -0
  44. package/ts/error_modules_clean/error/interfaces/show_error_state_2_f.d.ts +1 -1
  45. package/ts/inputs/color/data/color.d.ts +1 -1
  46. package/ts/inputs/color/data/visibility.d.ts +1 -1
  47. package/ts/inputs/components/prop_types/checkbox.d.ts +1 -0
  48. package/ts/inputs/components/prop_types/input_item.d.ts +0 -1
  49. package/ts/inputs/data/input_width.d.ts +16 -15
  50. package/ts/inputs/data/nested_input.d.ts +2 -2
  51. package/ts/inputs/data/upload_box.d.ts +1 -1
  52. package/ts/inputs/scripts/resolve.d.ts +2 -3
  53. package/ts/settings/internal.d.ts +2 -2
  54. package/ts/settings/optional_permissions/data/permission.d.ts +4 -1
  55. package/ts/settings/optional_permissions/interfaces/index.d.ts +1 -0
  56. package/ts/settings/optional_permissions/interfaces/show_enable_permissions_notification_permission.d.ts +7 -0
  57. package/ts/settings/{settings → sections}/data/back_up.d.ts +1 -1
  58. package/ts/settings/sections/data/index.d.ts +2 -0
  59. package/ts/settings/{settings → sections}/data/sections.d.ts +13 -13
  60. package/ts/settings/sections/scripts/index.d.ts +1 -0
  61. package/ts/settings/{settings → sections}/scripts/theme.d.ts +1 -1
  62. package/ts/shared/data/data/cache.d.ts +15 -0
  63. package/ts/shared/data/data/index.d.ts +2 -0
  64. package/ts/shared/{settings → data}/data/settings.d.ts +1 -2
  65. package/ts/shared/internal.d.ts +1 -1
  66. package/ts/shared/schema/data/schema.d.ts +5 -3
  67. package/ts/shared/tab_index/scripts/tab_index.d.ts +2 -2
  68. package/ts/shared/tr/components/prop_types/base_tr.d.ts +0 -1
  69. package/ts/shared/tr/data/transition.d.ts +2 -2
  70. package/ts/shared_clean/css_vars/scripts/css_vars.d.ts +1 -1
  71. package/ts/shared_clean/data/data/index.d.ts +1 -0
  72. package/ts/shared_clean/{settings → data}/data/settings.d.ts +3 -8
  73. package/ts/shared_clean/data/scripts/cache.d.ts +17 -5
  74. package/ts/shared_clean/data/scripts/index.d.ts +2 -0
  75. package/ts/shared_clean/data/scripts/settings.d.ts +12 -0
  76. package/ts/shared_clean/data/scripts/sync.d.ts +11 -0
  77. package/ts/shared_clean/ext.d.ts +3 -0
  78. package/ts/shared_clean/internal.d.ts +1 -1
  79. package/ts/shared_clean/no_tr/scripts/state.d.ts +2 -2
  80. package/ts/shared_clean/schema/data/schema.d.ts +10 -6
  81. package/ts/shared_clean/service_worker/scripts/service_worker.d.ts +1 -3
  82. package/ts/shared_clean/theme/scripts/theme.d.ts +2 -2
  83. package/ts/shared_clean/utils/scripts/utils.d.ts +2 -2
  84. package/ts/shared_clean/viewport/scripts/viewport.d.ts +1 -1
  85. package/ts/shared_clean/x.d.ts +11 -1
  86. package/ts/settings/settings/data/index.d.ts +0 -2
  87. package/ts/settings/settings/scripts/index.d.ts +0 -1
  88. package/ts/shared/settings/data/index.d.ts +0 -1
  89. package/ts/shared_clean/settings/data/index.d.ts +0 -1
@@ -1,5 +1,6 @@
1
1
  export interface ShowErrorState2 {
2
2
  error_msg_key: string;
3
+ alt_msg: string;
3
4
  error_ui_is_visible: boolean;
4
5
  silent_final: boolean;
5
6
  }
@@ -1,2 +1,2 @@
1
1
  import { i_error } from '../../internal';
2
- export type ShowErrorState2F = (error_obj: i_error.ErrorObj | undefined, error_code: string | undefined, { error_msg_key, error_ui_is_visible, silent_final }: i_error.ShowErrorState2) => void;
2
+ export type ShowErrorState2F = (error_obj: i_error.ErrorObj | undefined, error_code: string | undefined, { error_msg_key, alt_msg, error_ui_is_visible, silent_final }: i_error.ShowErrorState2) => void;
@@ -47,7 +47,7 @@ declare class Class {
47
47
  }) => void;
48
48
  restore_default_palette: ({ input, default_colors, }: {
49
49
  input: o_color.Color;
50
- default_colors?: i_color_shared_clean.Color[] | undefined;
50
+ default_colors?: i_color_shared_clean.Color[];
51
51
  }) => void;
52
52
  reset_previous_vars: () => void;
53
53
  }
@@ -21,7 +21,7 @@ declare class Class {
21
21
  change_visibility: ({ input, i, color_picker_state, }: {
22
22
  input: o_color.Color;
23
23
  i: i_color.I;
24
- color_picker_state: 'is_initialized' | 'is_visible';
24
+ color_picker_state: "is_initialized" | "is_visible";
25
25
  }, e: MouseEvent | FocusEvent) => Promise<void>;
26
26
  hide_main_and_palette: ({ input }: {
27
27
  input: o_color.Color;
@@ -1,4 +1,5 @@
1
1
  import { o_inputs } from '../../internal';
2
2
  export interface Checkbox {
3
3
  input: o_inputs.Checkbox;
4
+ calculate_width: boolean;
4
5
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { i_inputs } from '../../internal';
3
2
  export interface InputItem {
4
3
  input: i_inputs.Input;
@@ -3,26 +3,27 @@ declare class Class {
3
3
  private static instance;
4
4
  static get_instance(): Class;
5
5
  private constructor();
6
- width: Record<string, string | undefined>;
7
- private max_width;
6
+ width: number;
8
7
  private min_width;
9
- private old_max_width;
8
+ private max_width;
9
+ max_width_ob: Record<string, string | undefined>;
10
+ private old_width;
11
+ width_style?: ((this: Class, { input, input_w, calculate_width, }: {
12
+ input: i_inputs.Input;
13
+ input_w?: HTMLElement | undefined;
14
+ calculate_width?: boolean;
15
+ }) => string) | undefined;
10
16
  calculate_width_cls: ({ calculate_width }: {
11
17
  calculate_width: boolean;
12
18
  }) => string;
13
- max_width_style?: ((this: Class) => number | string | undefined) | undefined;
14
- min_width_style?: ((this: Class, { input, calculate_width, }: {
19
+ set_min_and_max_width: ({ min_width }?: {
20
+ min_width?: number;
21
+ }) => void;
22
+ calculate: () => Promise<void>;
23
+ resize_textarea_with_resize_handle: ({ input, textarea, }: {
15
24
  input: i_inputs.Input;
16
- calculate_width?: boolean | undefined;
17
- }) => number | string | undefined) | undefined;
18
- calculate_for_section: ({ section_name }: {
19
- section_name: string;
20
- }) => Promise<void>;
21
- calculate_for_all_sections: ({ sections, all_sections_inputs_equal_width, }: {
22
- sections: i_inputs.Sections;
23
- all_sections_inputs_equal_width?: boolean | undefined;
24
- }) => Promise<void>;
25
- set_max_width: () => void;
25
+ textarea: HTMLTextAreaElement | null;
26
+ }) => void;
26
27
  }
27
28
  export declare const InputWidth: Class;
28
29
  export {};
@@ -9,11 +9,11 @@ declare class Class {
9
9
  set_parent_disbled_vals: ({ input, sections, set_to_all_sections, }: {
10
10
  input: i_inputs.Input;
11
11
  sections: i_inputs.Sections;
12
- set_to_all_sections?: boolean | undefined;
12
+ set_to_all_sections?: boolean;
13
13
  }) => void;
14
14
  set_all_parents_disbled_vals: ({ sections, set_to_all_sections, }: {
15
15
  sections: i_inputs.Sections;
16
- set_to_all_sections?: boolean | undefined;
16
+ set_to_all_sections?: boolean;
17
17
  }) => void;
18
18
  }
19
19
  export declare const NestedInput: Class;
@@ -9,7 +9,7 @@ declare class Class {
9
9
  }) => void;
10
10
  upload_files: (e: ChangeEvent | DragEvent, { input, file_input, }: {
11
11
  input: o_inputs.UploadBox;
12
- file_input?: HTMLInputElement | null | undefined;
12
+ file_input?: HTMLInputElement | null;
13
13
  }) => Promise<void>;
14
14
  highlight: ({ input }: {
15
15
  input: o_inputs.UploadBox;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  import { o_inputs, i_inputs } from '../internal';
3
2
  export declare const resolve: ({ input, calculate_width, include_label, }: {
4
3
  input: i_inputs.Input | o_inputs.Link;
5
- calculate_width?: boolean | undefined;
6
- include_label?: boolean | undefined;
4
+ calculate_width?: boolean;
5
+ include_label?: boolean;
7
6
  }) => JSX.Element;
@@ -1,8 +1,8 @@
1
1
  export * from './init';
2
2
  export * as c_settings from './components';
3
- export * as d_settings from './settings/data';
4
3
  export * as d_developer_mode from './developer_mode/data';
5
4
  export * as d_optional_permissions from './optional_permissions/data';
6
- export * as s_settings from './settings/scripts';
5
+ export * as d_sections from './sections/data';
6
+ export * as s_sections from './sections/scripts';
7
7
  export * as p_settings from './components/prop_types';
8
8
  export * as i_optional_permissions from './optional_permissions/interfaces';
@@ -6,9 +6,12 @@ declare class Class {
6
6
  set: ({ name, optional_permission_checkbox_dict, set_checkbox_val, }: {
7
7
  name: string;
8
8
  optional_permission_checkbox_dict: i_optional_permissions.OptionalPermissionCheckboxDict;
9
- set_checkbox_val?: boolean | undefined;
9
+ set_checkbox_val?: boolean;
10
10
  }) => Promise<boolean>;
11
11
  private set_checkbox_val;
12
+ show_enable_permissions_notification: ({ permissions, }: {
13
+ permissions: i_optional_permissions.ShowEnablePermissionsNotificationPermission[];
14
+ }) => Promise<void>;
12
15
  }
13
16
  export declare const Permission: Class;
14
17
  export {};
@@ -1 +1,2 @@
1
1
  export * from '../../optional_permissions/interfaces/optional_permission_checkbox_dict';
2
+ export * from '../../optional_permissions/interfaces/show_enable_permissions_notification_permission';
@@ -0,0 +1,7 @@
1
+ export interface ShowEnablePermissionsNotificationPermission {
2
+ name: string;
3
+ permission: {
4
+ permissions?: string[];
5
+ origins?: string[];
6
+ };
7
+ }
@@ -7,7 +7,7 @@ declare class Class {
7
7
  private constructor();
8
8
  download: ({ data_obj, part_i, }: {
9
9
  data_obj: t.AnyRecord | string;
10
- part_i: number | 'none';
10
+ part_i: number | "none";
11
11
  }) => void;
12
12
  open_file_browser: () => void;
13
13
  upload: ({ input, }: {
@@ -0,0 +1,2 @@
1
+ export * from '../../sections/data/back_up';
2
+ export * from '../../sections/data/sections';
@@ -20,25 +20,25 @@ declare class Class {
20
20
  }) => number | undefined;
21
21
  change: ({ section_name, callback, }: {
22
22
  section_name: string;
23
- callback?: t.CallbackVoid | undefined;
23
+ callback?: t.CallbackVoid;
24
24
  }) => void;
25
25
  private reload_ext;
26
- make_shared_sections: ({ download_back_up_callback, download_back_up_final_callback, upload_back_up_callback, restore_defaults_callback, input_change_val_callback, admin_inputs, back_up_inputs, restore_inputs, include_back_up_help, back_up_help_msg, download_backup, include_part_i_in_back_up_name, allow_multiple_file_backup_upload, admin_content_is_hideable, admin_change_visibility_of_content_save_callback, }: {
26
+ make_shared_sections: ({ download_back_up_callback, download_back_up_final_callback, upload_back_up_callback, restore_defaults_callback, input_change_val_callback, admin_inputs, back_up_inputs, restore_inputs, include_back_up_help, restore_help_msg, download_backup, include_part_i_in_back_up_name, allow_multiple_file_backup_upload, admin_content_is_hideable, admin_change_visibility_of_content_save_callback, }: {
27
27
  download_back_up_callback: t.CallbackAnyObj;
28
- download_back_up_final_callback?: t.CallbackVoid | undefined;
28
+ download_back_up_final_callback?: t.CallbackVoid;
29
29
  upload_back_up_callback: t.CallbackVariadicVoid;
30
30
  restore_defaults_callback: t.CallbackVoid;
31
31
  input_change_val_callback: t.CallbackVariadicVoid;
32
- admin_inputs?: i_inputs.Input[] | undefined;
33
- back_up_inputs?: i_inputs.Input[] | undefined;
34
- restore_inputs?: i_inputs.Input[] | undefined;
35
- include_back_up_help?: boolean | undefined;
36
- back_up_help_msg?: string | undefined;
37
- download_backup?: boolean | undefined;
38
- include_part_i_in_back_up_name?: boolean | undefined;
39
- allow_multiple_file_backup_upload?: boolean | undefined;
40
- admin_content_is_hideable?: boolean | undefined;
41
- admin_change_visibility_of_content_save_callback?: t.CallbackVariadicVoid | undefined;
32
+ admin_inputs?: i_inputs.Input[];
33
+ back_up_inputs?: i_inputs.Input[];
34
+ restore_inputs?: i_inputs.Input[];
35
+ include_back_up_help?: boolean;
36
+ restore_help_msg?: string | undefined;
37
+ download_backup?: boolean;
38
+ include_part_i_in_back_up_name?: boolean;
39
+ allow_multiple_file_backup_upload?: boolean;
40
+ admin_content_is_hideable?: boolean;
41
+ admin_change_visibility_of_content_save_callback?: t.CallbackVariadicVoid;
42
42
  }) => o_inputs.Section[];
43
43
  }
44
44
  export declare const Sections: Class;
@@ -0,0 +1 @@
1
+ export * from '../../sections/scripts/theme';
@@ -7,7 +7,7 @@ declare class Class {
7
7
  change: ({ input, name, additional_theme_callback, }: {
8
8
  input: i_inputs.Input;
9
9
  name: string;
10
- additional_theme_callback?: t.CallbackVariadicVoid | undefined;
10
+ additional_theme_callback?: t.CallbackVariadicVoid;
11
11
  }) => void;
12
12
  }
13
13
  export declare const Theme: Class;
@@ -0,0 +1,15 @@
1
+ declare class Class {
2
+ private static instance;
3
+ static get_instance(): Class;
4
+ private constructor();
5
+ set_data: () => Promise<any>;
6
+ set_settings: ({ settings }: {
7
+ settings: any;
8
+ }) => Promise<any>;
9
+ set: ({ key, val }: {
10
+ key: string;
11
+ val: any;
12
+ }) => Promise<void>;
13
+ }
14
+ export declare const Cache: Class;
15
+ export {};
@@ -1 +1,3 @@
1
1
  import '../../data/data/data';
2
+ export * from '../../data/data/cache';
3
+ export * from '../../data/data/settings';
@@ -2,9 +2,8 @@ declare class Class {
2
2
  private static instance;
3
3
  static get_instance(): Class;
4
4
  private constructor();
5
- set: ({ settings, settings_are_corrupt, }: {
5
+ set: ({ settings }: {
6
6
  settings?: any;
7
- settings_are_corrupt?: boolean | undefined;
8
7
  }) => Promise<void>;
9
8
  set_from_storage: () => Promise<any>;
10
9
  }
@@ -7,10 +7,10 @@ export * as c_offers from './offers/components';
7
7
  export * as c_tr from './tr/components';
8
8
  export * as o_offers from './offers/obj';
9
9
  export * as o_tr from './tr/obj';
10
+ export * as d_data from './data/data';
10
11
  export * as d_loading_screen from './loading_screen/data';
11
12
  export * as d_offers from './offers/data';
12
13
  export * as d_schema from './schema/data';
13
- export * as d_settings from './settings/data';
14
14
  export * as d_tr from './tr/data';
15
15
  export * as s_loading_screen from './loading_screen/scripts';
16
16
  export * as s_offers from './offers/scripts';
@@ -2,10 +2,12 @@ import { o_schema } from '../../../shared_clean/internal';
2
2
  declare class Class {
3
3
  private static instance;
4
4
  static get_instance(): Class;
5
- transform: ({ data, transform_items, keys_to_remove, }: {
6
- data: any;
5
+ transform: ({ data_obj, version, transform_items, keys_to_remove, force, }: {
6
+ data_obj: any;
7
+ version: number;
7
8
  transform_items: o_schema.TransformItem[];
8
- keys_to_remove?: string[] | undefined;
9
+ keys_to_remove?: string[];
10
+ force?: boolean;
9
11
  }) => Promise<any>;
10
12
  }
11
13
  export declare const Schema: Class;
@@ -7,8 +7,8 @@ declare class Class {
7
7
  inner_is_none: boolean;
8
8
  private set_input_type;
9
9
  bind_set_input_type_f: ({ parent, app_id, }?: {
10
- parent?: HTMLElement | undefined;
11
- app_id?: string | undefined;
10
+ parent?: HTMLElement;
11
+ app_id?: string;
12
12
  }) => void;
13
13
  simulate_click_on_enter: (e: KeyboardEvent) => void;
14
14
  simulate_color_visualization_click_on_enter: ({ input, i, }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { t } from '../../../../shared_clean/internal';
3
2
  export interface BaseTr {
4
3
  name: string;
@@ -8,8 +8,8 @@ declare class Class {
8
8
  handle_transition: ({ name, state, tr_end_unactive, tr_end_active, tr_el_ref, called_from_component_did_update, }: {
9
9
  name: string;
10
10
  state: boolean;
11
- tr_end_unactive?: t.CallbackVoid[] | undefined;
12
- tr_end_active?: t.CallbackVoid[] | undefined;
11
+ tr_end_unactive?: t.CallbackVoid[];
12
+ tr_end_active?: t.CallbackVoid[];
13
13
  tr_el_ref: React.RefObject<HTMLElement>;
14
14
  called_from_component_did_update: boolean;
15
15
  }, e?: React.TransitionEvent) => void;
@@ -4,7 +4,7 @@ declare class Class {
4
4
  private constructor();
5
5
  get: ({ name, el }: {
6
6
  name: string;
7
- el?: HTMLElement | undefined;
7
+ el?: HTMLElement;
8
8
  }) => string;
9
9
  set_var: ({ roots, name, val, }: {
10
10
  roots: HTMLElement[];
@@ -1 +1,2 @@
1
1
  import '../../data/data/data';
2
+ export * from '../../data/data/settings';
@@ -1,20 +1,15 @@
1
- import { t } from '../../internal';
2
1
  declare class Class {
3
2
  private static instance;
4
3
  static get_instance(): Class;
5
4
  private constructor();
6
- set: ({ settings, settings_are_corrupt, run_in_action, }: {
5
+ set: ({ settings, run_in_action, }: {
7
6
  settings?: any;
8
- settings_are_corrupt?: boolean | undefined;
9
7
  run_in_action?: any;
10
8
  }) => Promise<void>;
11
- change: ({ key, val }: {
12
- key: string;
13
- val: t.AnyUndefined;
14
- }) => Promise<void>;
15
- set_from_storage: ({ to_js, run_in_action, }?: {
9
+ set_from_storage: ({ to_js, run_in_action, set_data, }?: {
16
10
  to_js?: any;
17
11
  run_in_action?: any;
12
+ set_data?: any;
18
13
  }) => Promise<any>;
19
14
  }
20
15
  export declare const Settings: Class;
@@ -2,12 +2,24 @@ declare class Class {
2
2
  private static instance;
3
3
  static get_instance(): Class;
4
4
  private constructor();
5
- get_data: () => Promise<any>;
6
- set_data: ({ data, replace, non_replaceable_keys, }: {
7
- data: any;
8
- replace?: boolean | undefined;
9
- non_replaceable_keys?: string[] | undefined;
5
+ get_data: ({ set_from_storage, }?: {
6
+ set_from_storage?: boolean;
7
+ }) => Promise<any>;
8
+ set_data: ({ run_in_action, }?: {
9
+ run_in_action?: any;
10
10
  }) => Promise<void>;
11
+ set_settings: ({ settings, run_in_action, }?: {
12
+ settings?: any;
13
+ run_in_action?: any;
14
+ }) => Promise<void>;
15
+ set: ({ key, val, run_in_action, }: {
16
+ key: string;
17
+ val: any;
18
+ run_in_action?: any;
19
+ }) => Promise<void>;
20
+ get: ({ key }: {
21
+ key: string;
22
+ }) => Promise<any>;
11
23
  }
12
24
  export declare const Cache: Class;
13
25
  export {};
@@ -1 +1,3 @@
1
1
  export * from '../../data/scripts/cache';
2
+ export * from '../../data/scripts/settings';
3
+ export * from '../../data/scripts/sync';
@@ -0,0 +1,12 @@
1
+ import { t } from '../../internal';
2
+ declare class Class {
3
+ private static instance;
4
+ static get_instance(): Class;
5
+ private constructor();
6
+ apply_unchanged_prefs: ({ settings, additional_unchanged_prefs, }: {
7
+ settings: any;
8
+ additional_unchanged_prefs?: t.AnyRecord;
9
+ }) => t.AnyRecord;
10
+ }
11
+ export declare const Settings: Class;
12
+ export {};
@@ -0,0 +1,11 @@
1
+ import { t, s_data } from '../../internal';
2
+ export declare class Class {
3
+ private static instance;
4
+ static get_instance(): Class;
5
+ private constructor();
6
+ react_sync: ({ changes, callback, }: {
7
+ changes: any;
8
+ callback: t.CallbackVoid;
9
+ }) => Promise<void>;
10
+ }
11
+ export declare const Sync: s_data.Class;
@@ -6,6 +6,9 @@ declare class Class {
6
6
  static get_instance(): Class;
7
7
  private constructor();
8
8
  private force_local_storage;
9
+ updating_storage: boolean;
10
+ only_cache: never[];
11
+ private remove_only_cache;
9
12
  ext_context_invalidated: () => boolean;
10
13
  private log_error;
11
14
  get_app_version: () => string;
@@ -6,8 +6,8 @@ export * as t from './t';
6
6
  export * as vars from './vars';
7
7
  export * from './functions';
8
8
  export * as o_schema from './schema/obj';
9
+ export * as d_data from './data/data';
9
10
  export * as d_schema from './schema/data';
10
- export * as d_settings from './settings/data';
11
11
  export * as s_announcement from './announcement/scripts';
12
12
  export * as s_color from './color/scripts';
13
13
  export * as s_css_vars from './css_vars/scripts';
@@ -4,10 +4,10 @@ declare class Class {
4
4
  private constructor();
5
5
  private cls;
6
6
  enable: ({ el }?: {
7
- el?: HTMLElement | ShadowRoot | undefined;
7
+ el?: HTMLElement | ShadowRoot;
8
8
  }) => void;
9
9
  disable: ({ el }?: {
10
- el?: HTMLElement | ShadowRoot | undefined;
10
+ el?: HTMLElement | ShadowRoot;
11
11
  }) => Promise<void>;
12
12
  }
13
13
  export declare const State: Class;
@@ -2,16 +2,20 @@ import { o_schema } from '../../internal';
2
2
  declare class Class {
3
3
  private static instance;
4
4
  static get_instance(): Class;
5
- transform: ({ data, transform_items, keys_to_remove, force, run_in_action, }: {
6
- data: any;
5
+ transform: ({ data_obj, version, transform_items, keys_to_remove, force, run_in_action, }: {
6
+ data_obj: any;
7
+ version: number;
7
8
  transform_items: o_schema.TransformItem[];
8
- keys_to_remove?: string[] | undefined;
9
- force?: boolean | undefined;
9
+ keys_to_remove?: string[];
10
+ force: boolean;
10
11
  run_in_action?: any;
11
12
  }) => Promise<any>;
12
- replace: ({ data }: {
13
- data: any;
13
+ replace: ({ settings }: {
14
+ settings: any;
14
15
  }) => Promise<void>;
16
+ get_version_legacy: ({ settings }: {
17
+ settings: any;
18
+ }) => number;
15
19
  }
16
20
  export declare const Schema: Class;
17
21
  export {};
@@ -4,9 +4,7 @@ declare class Class {
4
4
  private constructor();
5
5
  private make_persistent_intervals;
6
6
  private persistent_service_worker;
7
- make_persistent: ({ settings }?: {
8
- settings?: any;
9
- }) => Promise<void>;
7
+ make_persistent: () => Promise<void>;
10
8
  private clear_make_persistent_intervals;
11
9
  }
12
10
  export declare const ServiceWorker: Class;
@@ -5,8 +5,8 @@ declare class Class {
5
5
  private constructor();
6
6
  set: ({ name, el, additional_theme_callback, }: {
7
7
  name: string;
8
- el?: HTMLElement | undefined;
9
- additional_theme_callback?: t.CallbackVariadicVoid | undefined;
8
+ el?: HTMLElement;
9
+ additional_theme_callback?: t.CallbackVariadicVoid;
10
10
  }) => Promise<void>;
11
11
  }
12
12
  export declare const Theme: Class;
@@ -5,8 +5,8 @@ declare class Class {
5
5
  private constructor();
6
6
  to_object: ({ arr, section, subsection, }: {
7
7
  arr: t.AnyRecord[];
8
- section?: string | undefined;
9
- subsection?: string | undefined;
8
+ section?: string;
9
+ subsection?: string;
10
10
  }) => t.AnyRecord;
11
11
  }
12
12
  export declare const Utils: Class;
@@ -3,7 +3,7 @@ declare class Class {
3
3
  static get_instance(): Class;
4
4
  private constructor();
5
5
  get_dim: ({ dim }: {
6
- dim: 'width' | 'height';
6
+ dim: "width" | "height";
7
7
  }) => number;
8
8
  }
9
9
  export declare const Viewport: Class;
@@ -47,12 +47,22 @@ declare class Class {
47
47
  copy_img: (img_url: string) => void;
48
48
  px: (val: string | number | undefined) => string;
49
49
  insert_invisible_chars_in_title: () => void;
50
- async_debounce<F extends (...args: any[]) => Promise<any>>(f: F, wait?: number): (...args: Parameters<F>) => ReturnType<F>;
50
+ async_debounce<T extends (...args: any[]) => Promise<any>>(f: T, wait: number, options?: {
51
+ leading?: boolean;
52
+ trailing?: boolean;
53
+ maxWait?: number;
54
+ }): (...args: Parameters<T>) => Promise<ReturnType<T>>;
55
+ async_throttle<F extends (...args: any[]) => Promise<any>>(f: F, wait: number, options?: {
56
+ leading?: boolean;
57
+ trailing?: boolean;
58
+ }): (...args: Parameters<F>) => Promise<ReturnType<F>>;
51
59
  private gcd;
52
60
  get_aspect_ratio: (width: number, height: number) => string;
53
61
  percentage: (partial_val: number, total_val: number, round_down?: boolean) => number;
54
62
  wrap_link_in_a: (text: string) => string;
55
63
  pastel_color: () => string;
64
+ settings_are_filled: () => boolean;
65
+ prefs_are_filled: () => boolean;
56
66
  }
57
67
  export declare const X: Class;
58
68
  export {};
@@ -1,2 +0,0 @@
1
- export * from '../../settings/data/back_up';
2
- export * from '../../settings/data/sections';
@@ -1 +0,0 @@
1
- export * from '../../settings/scripts/theme';
@@ -1 +0,0 @@
1
- export * from '../../../shared_clean/settings/data/settings';
@@ -1 +0,0 @@
1
- export * from '../../settings/data/settings';