@loftyshaky/shared-app 1.3.0 → 2.1.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 (211) hide show
  1. package/_locales/en/messages.json +49 -28
  2. package/_locales/ru/messages.json +47 -29
  3. package/announcement.d.ts +1 -1
  4. package/announcement.js +1 -1
  5. package/app.d.ts +1 -1
  6. package/app.js +1 -1
  7. package/chunk-error.js +5 -0
  8. package/chunk-index.js +5 -0
  9. package/chunk-merge.js +5 -0
  10. package/chunk-pickr.min.js +1 -1
  11. package/chunk-title.js +14 -0
  12. package/chunk-viewport.js +5 -0
  13. package/dependencies.js +1 -1
  14. package/dependencies.txt +75 -87
  15. package/ext.d.ts +1 -1
  16. package/ext.js +1 -1
  17. package/globals.d.ts +17 -14
  18. package/inputs.js +1 -1
  19. package/js/apps.js +7 -1
  20. package/js/dependencies.js +4 -0
  21. package/js/webpack.config.js +2 -0
  22. package/package.json +1 -1
  23. package/scss/settings/ext_version.scss +2 -2
  24. package/scss/settings/main.scss +2 -1
  25. package/scss/settings/sections.scss +1 -0
  26. package/scss/shared/btns.scss +15 -1
  27. package/scss/shared/checkboxes.scss +1 -0
  28. package/scss/shared/colors.scss +1 -1
  29. package/scss/shared/group.scss +10 -1
  30. package/scss/shared/help.scss +4 -0
  31. package/scss/shared/inputs.scss +2 -3
  32. package/scss/shared/selects.scss +22 -16
  33. package/scss/shared/themes/general/template.scss +28 -28
  34. package/scss/shared/transitions.scss +1 -0
  35. package/settings.d.ts +1 -1
  36. package/settings.js +1 -1
  37. package/shared.d.ts +4 -0
  38. package/shared.js +5 -0
  39. package/shared_clean.d.ts +2 -0
  40. package/shared_clean.js +5 -0
  41. package/ts/announcement/internal.d.ts +0 -1
  42. package/ts/dependencies/scripts/dependencies.d.ts +5 -3
  43. package/ts/error_modules/crash_handler/components/body.d.ts +1 -1
  44. package/ts/error_modules/crash_handler/components/prop_types/body.d.ts +0 -1
  45. package/ts/error_modules/crash_handler/data/visibility.d.ts +5 -3
  46. package/ts/error_modules/crash_handler/scripts/page.d.ts +5 -3
  47. package/ts/error_modules/css/scripts/css.d.ts +10 -0
  48. package/ts/error_modules/css/scripts/index.d.ts +1 -1
  49. package/ts/error_modules/error/components/prop_types/body.d.ts +1 -1
  50. package/ts/error_modules/error/data/error.d.ts +13 -0
  51. package/ts/error_modules/error/data/index.d.ts +1 -1
  52. package/ts/error_modules/error/data/msg.d.ts +5 -3
  53. package/ts/error_modules/error/data/progress.d.ts +5 -3
  54. package/ts/error_modules/error/data/state.d.ts +6 -4
  55. package/ts/error_modules/error/scripts/flash.d.ts +5 -3
  56. package/ts/error_modules/error/scripts/notification.d.ts +7 -5
  57. package/ts/error_modules/internal.d.ts +2 -1
  58. package/ts/error_modules_clean/error/data/error.d.ts +11 -0
  59. package/ts/error_modules_clean/error/data/index.d.ts +1 -0
  60. package/ts/{error_modules → error_modules_clean}/error/interfaces/index.d.ts +4 -0
  61. package/ts/{error_modules → error_modules_clean}/error/interfaces/show_error.d.ts +3 -0
  62. package/ts/error_modules_clean/error/interfaces/show_error_state_1.d.ts +11 -0
  63. package/ts/error_modules_clean/error/interfaces/show_error_state_1_f.d.ts +2 -0
  64. package/ts/error_modules_clean/error/interfaces/show_error_state_2.d.ts +6 -0
  65. package/ts/error_modules_clean/error/interfaces/show_error_state_2_f.d.ts +2 -0
  66. package/ts/error_modules_clean/error/scripts/index.d.ts +1 -0
  67. package/ts/error_modules_clean/internal.d.ts +4 -0
  68. package/ts/inputs/color/data/color.d.ts +10 -9
  69. package/ts/inputs/color/data/visibility.d.ts +6 -4
  70. package/ts/inputs/color/interfaces/index.d.ts +0 -1
  71. package/ts/inputs/color/obj/color.d.ts +1 -1
  72. package/ts/inputs/color/scripts/color_picker.d.ts +6 -4
  73. package/ts/inputs/color/scripts/position.d.ts +5 -3
  74. package/ts/inputs/components/prop_types/checkbox.d.ts +1 -0
  75. package/ts/inputs/components/prop_types/input_item.d.ts +0 -1
  76. package/ts/inputs/components/prop_types/section_btn.d.ts +1 -1
  77. package/ts/inputs/components/prop_types/text_btn.d.ts +1 -1
  78. package/ts/inputs/data/help.d.ts +5 -3
  79. package/ts/inputs/data/index.d.ts +2 -2
  80. package/ts/inputs/data/input_error.d.ts +6 -4
  81. package/ts/inputs/data/input_width.d.ts +21 -18
  82. package/ts/inputs/data/{labelIn_in_putI_iem.d.ts → label_in_input_item.d.ts} +5 -3
  83. package/ts/inputs/data/nested_input.d.ts +7 -5
  84. package/ts/inputs/data/text.d.ts +5 -3
  85. package/ts/inputs/data/upload_box.d.ts +6 -4
  86. package/ts/inputs/data/val.d.ts +6 -4
  87. package/ts/inputs/interfaces/btn_option.d.ts +1 -1
  88. package/ts/inputs/interfaces/state_cond.d.ts +1 -0
  89. package/ts/inputs/interfaces/text_btn.d.ts +1 -1
  90. package/ts/inputs/obj/file.d.ts +1 -1
  91. package/ts/inputs/obj/input_base.d.ts +1 -1
  92. package/ts/inputs/obj/link.d.ts +1 -1
  93. package/ts/inputs/obj/text.d.ts +4 -1
  94. package/ts/inputs/scripts/resolve.d.ts +2 -3
  95. package/ts/inputs/scripts/upload_box.d.ts +5 -3
  96. package/ts/settings/components/prop_types/body.d.ts +1 -1
  97. package/ts/settings/developer_mode/data/developer_mode.d.ts +15 -0
  98. package/ts/settings/developer_mode/data/index.d.ts +1 -1
  99. package/ts/settings/internal.d.ts +2 -2
  100. package/ts/settings/optional_permissions/data/index.d.ts +1 -1
  101. package/ts/settings/optional_permissions/data/permission.d.ts +17 -0
  102. package/ts/settings/optional_permissions/interfaces/index.d.ts +1 -0
  103. package/ts/settings/optional_permissions/interfaces/show_enable_permissions_notification_permission.d.ts +7 -0
  104. package/ts/settings/{data → sections/data}/back_up.d.ts +8 -6
  105. package/ts/settings/sections/data/index.d.ts +2 -0
  106. package/ts/settings/{data → sections/data}/sections.d.ts +22 -20
  107. package/ts/settings/sections/scripts/index.d.ts +1 -0
  108. package/ts/settings/sections/scripts/theme.d.ts +14 -0
  109. package/ts/shared/data/data/cache.d.ts +15 -0
  110. package/ts/shared/data/data/index.d.ts +3 -1
  111. package/ts/shared/data/data/settings.d.ts +11 -0
  112. package/ts/shared/internal.d.ts +1 -17
  113. package/ts/shared/loading_screen/components/prop_types/body.d.ts +1 -1
  114. package/ts/shared/loading_screen/data/index.d.ts +1 -1
  115. package/ts/shared/loading_screen/data/{main.d.ts → visibility.d.ts} +5 -3
  116. package/ts/shared/loading_screen/scripts/roots.d.ts +5 -3
  117. package/ts/shared/loading_screen/scripts/tr.d.ts +5 -3
  118. package/ts/shared/offers/data/index.d.ts +1 -1
  119. package/ts/shared/offers/data/{main.d.ts → offers.d.ts} +5 -3
  120. package/ts/shared/offers/scripts/index.d.ts +1 -1
  121. package/ts/shared/offers/scripts/{main.d.ts → offers.d.ts} +5 -5
  122. package/ts/shared/schema/data/index.d.ts +1 -1
  123. package/ts/shared/schema/data/schema.d.ts +14 -0
  124. package/ts/shared/tab_index/scripts/index.d.ts +1 -1
  125. package/ts/shared/tab_index/scripts/{main.d.ts → tab_index.d.ts} +7 -5
  126. package/ts/shared/title/scripts/index.d.ts +1 -1
  127. package/ts/shared/title/scripts/title.d.ts +8 -0
  128. package/ts/shared/tr/components/prop_types/base_tr.d.ts +1 -2
  129. package/ts/shared/tr/data/transition.d.ts +9 -6
  130. package/ts/shared_clean/announcement/scripts/index.d.ts +1 -0
  131. package/ts/shared_clean/announcement/scripts/visibility.d.ts +8 -0
  132. package/ts/{shared → shared_clean}/app.d.ts +5 -3
  133. package/ts/shared_clean/color/interfaces/index.d.ts +1 -0
  134. package/ts/shared_clean/color/scripts/colors.d.ts +9 -0
  135. package/ts/shared_clean/color/scripts/index.d.ts +1 -0
  136. package/ts/{shared/css_vars/scripts/main.d.ts → shared_clean/css_vars/scripts/css_vars.d.ts} +6 -4
  137. package/ts/shared_clean/css_vars/scripts/index.d.ts +1 -0
  138. package/ts/shared_clean/data/data/data.d.ts +1 -0
  139. package/ts/shared_clean/data/data/index.d.ts +2 -0
  140. package/ts/shared_clean/data/data/settings.d.ts +21 -0
  141. package/ts/shared_clean/data/scripts/cache.d.ts +25 -0
  142. package/ts/shared_clean/data/scripts/index.d.ts +3 -0
  143. package/ts/shared_clean/data/scripts/settings.d.ts +12 -0
  144. package/ts/shared_clean/data/scripts/sync.d.ts +11 -0
  145. package/ts/{shared → shared_clean}/ext.d.ts +8 -3
  146. package/ts/shared_clean/functions.d.ts +4 -0
  147. package/ts/shared_clean/globals.d.ts +1 -0
  148. package/ts/shared_clean/internal.d.ts +22 -0
  149. package/ts/shared_clean/no_tr/scripts/index.d.ts +1 -0
  150. package/ts/shared_clean/no_tr/scripts/state.d.ts +14 -0
  151. package/ts/shared_clean/schema/data/index.d.ts +1 -0
  152. package/ts/shared_clean/schema/data/schema.d.ts +21 -0
  153. package/ts/{shared → shared_clean}/schema/obj/transform_item.d.ts +1 -0
  154. package/ts/shared_clean/service_worker/scripts/index.d.ts +1 -0
  155. package/ts/{shared/service_worker/scripts/main.d.ts → shared_clean/service_worker/scripts/service_worker.d.ts} +5 -3
  156. package/ts/shared_clean/theme/scripts/index.d.ts +1 -0
  157. package/ts/shared_clean/theme/scripts/theme.d.ts +13 -0
  158. package/ts/shared_clean/title/scripts/index.d.ts +1 -0
  159. package/ts/shared_clean/title/scripts/title.d.ts +9 -0
  160. package/ts/shared_clean/utils/scripts/index.d.ts +1 -0
  161. package/ts/shared_clean/utils/scripts/utils.d.ts +13 -0
  162. package/ts/shared_clean/viewport/scripts/index.d.ts +1 -0
  163. package/ts/shared_clean/viewport/scripts/viewport.d.ts +10 -0
  164. package/ts/{shared → shared_clean}/x.d.ts +16 -4
  165. package/chunk-main.js +0 -22
  166. package/chunk-main2.js +0 -5
  167. package/chunk-main3.js +0 -5
  168. package/chunk-main4.js +0 -5
  169. package/index.d.ts +0 -3
  170. package/index.js +0 -5
  171. package/ts/announcement/scripts/display.d.ts +0 -6
  172. package/ts/announcement/scripts/index.d.ts +0 -1
  173. package/ts/error_modules/css/scripts/main.d.ts +0 -8
  174. package/ts/error_modules/error/data/main.d.ts +0 -11
  175. package/ts/settings/data/index.d.ts +0 -2
  176. package/ts/settings/developer_mode/data/main.d.ts +0 -13
  177. package/ts/settings/optional_permissions/data/main.d.ts +0 -11
  178. package/ts/settings/scripts/index.d.ts +0 -1
  179. package/ts/settings/scripts/theme.d.ts +0 -12
  180. package/ts/shared/css_vars/scripts/index.d.ts +0 -1
  181. package/ts/shared/functions.d.ts +0 -3
  182. package/ts/shared/header/scripts/index.d.ts +0 -1
  183. package/ts/shared/header/scripts/main.d.ts +0 -6
  184. package/ts/shared/no_tr/scripts/index.d.ts +0 -1
  185. package/ts/shared/no_tr/scripts/main.d.ts +0 -12
  186. package/ts/shared/schema/data/main.d.ts +0 -12
  187. package/ts/shared/service_worker/scripts/index.d.ts +0 -1
  188. package/ts/shared/settings/data/index.d.ts +0 -1
  189. package/ts/shared/settings/data/main.d.ts +0 -15
  190. package/ts/shared/theme/scripts/index.d.ts +0 -1
  191. package/ts/shared/theme/scripts/main.d.ts +0 -11
  192. package/ts/shared/title/scripts/main.d.ts +0 -6
  193. package/ts/shared/utils/scripts/index.d.ts +0 -1
  194. package/ts/shared/utils/scripts/main.d.ts +0 -11
  195. package/ts/shared/viewport/scripts/index.d.ts +0 -1
  196. package/ts/shared/viewport/scripts/main.d.ts +0 -8
  197. /package/ts/{error_modules → error_modules_clean}/error/interfaces/error.d.ts +0 -0
  198. /package/ts/{error_modules → error_modules_clean}/error/interfaces/error_obj.d.ts +0 -0
  199. /package/ts/{error_modules → error_modules_clean}/error/interfaces/notification_type.d.ts +0 -0
  200. /package/ts/{error_modules → error_modules_clean}/error/interfaces/observable_keys.d.ts +0 -0
  201. /package/ts/{error_modules → error_modules_clean}/error/interfaces/show_unable_to_access_settings_error.d.ts +0 -0
  202. /package/ts/{error_modules → error_modules_clean}/error/interfaces/timeout_observable_keys.d.ts +0 -0
  203. /package/ts/{shared → error_modules_clean/error/scripts}/globals.d.ts +0 -0
  204. /package/ts/shared/{app_ext_globals.d.ts → data/data/data.d.ts} +0 -0
  205. /package/ts/{shared/data/data/main.d.ts → shared_clean/app_ext_globals.d.ts} +0 -0
  206. /package/ts/{inputs → shared_clean}/color/interfaces/color.d.ts +0 -0
  207. /package/ts/{shared → shared_clean}/data/interfaces/index.d.ts +0 -0
  208. /package/ts/{shared → shared_clean}/data/interfaces/val.d.ts +0 -0
  209. /package/ts/{shared → shared_clean}/schema/obj/index.d.ts +0 -0
  210. /package/ts/{shared → shared_clean}/t.d.ts +0 -0
  211. /package/ts/{shared → shared_clean}/vars.d.ts +0 -0
@@ -0,0 +1,17 @@
1
+ import { i_optional_permissions } from '../../internal';
2
+ declare class Class {
3
+ private static instance;
4
+ static get_instance(): Class;
5
+ private constructor();
6
+ set: ({ name, optional_permission_checkbox_dict, set_checkbox_val, }: {
7
+ name: string;
8
+ optional_permission_checkbox_dict: i_optional_permissions.OptionalPermissionCheckboxDict;
9
+ set_checkbox_val?: boolean;
10
+ }) => Promise<boolean>;
11
+ private set_checkbox_val;
12
+ show_enable_permissions_notification: ({ permissions, }: {
13
+ permissions: i_optional_permissions.ShowEnablePermissionsNotificationPermission[];
14
+ }) => Promise<void>;
15
+ }
16
+ export declare const Permission: Class;
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
+ }
@@ -1,13 +1,13 @@
1
1
  import { ChangeEvent } from 'react';
2
- import { t } from '../../shared/internal';
3
- import { o_inputs } from '../../inputs/internal';
4
- export declare class BackUp {
5
- private static i0;
6
- static i(): BackUp;
2
+ import { t } from '../../../shared_clean/internal';
3
+ import { o_inputs } from '../../../inputs/internal';
4
+ declare class Class {
5
+ private static instance;
6
+ static get_instance(): 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, }: {
@@ -15,3 +15,5 @@ export declare class BackUp {
15
15
  }, e: ChangeEvent) => Promise<void>;
16
16
  private read;
17
17
  }
18
+ export declare const BackUp: Class;
19
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from '../../sections/data/back_up';
2
+ export * from '../../sections/data/sections';
@@ -1,8 +1,8 @@
1
- import { t } from '../../shared/internal';
2
- import { o_inputs, i_inputs } from '../../inputs/internal';
3
- export declare class Sections {
4
- private static i0;
5
- static i(): Sections;
1
+ import { t } from '../../../shared_clean/internal';
2
+ import { o_inputs, i_inputs } from '../../../inputs/internal';
3
+ declare class Class {
4
+ private static instance;
5
+ static get_instance(): Class;
6
6
  private constructor();
7
7
  current_section: string;
8
8
  private options;
@@ -12,32 +12,34 @@ export declare class Sections {
12
12
  }) => {
13
13
  [index: string]: i_inputs.Input;
14
14
  };
15
- selected_cls: (this: Sections, { section_name }: {
15
+ selected_cls: (this: Class, { section_name }: {
16
16
  section_name: string;
17
17
  }) => string;
18
- tab_index: (this: Sections, { section_name }: {
18
+ tab_index: (this: Class, { section_name }: {
19
19
  section_name: string;
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
+ export declare const Sections: Class;
45
+ export {};
@@ -0,0 +1 @@
1
+ export * from '../../sections/scripts/theme';
@@ -0,0 +1,14 @@
1
+ import { t } from '../../../shared_clean/internal';
2
+ import { i_inputs } from '../../../inputs/internal';
3
+ declare class Class {
4
+ private static instance;
5
+ static get_instance(): Class;
6
+ private constructor();
7
+ change: ({ input, name, additional_theme_callback, }: {
8
+ input: i_inputs.Input;
9
+ name: string;
10
+ additional_theme_callback?: t.CallbackVariadicVoid;
11
+ }) => void;
12
+ }
13
+ export declare const Theme: Class;
14
+ export {};
@@ -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
- import '../../data/data/main';
1
+ import '../../data/data/data';
2
+ export * from '../../data/data/cache';
3
+ export * from '../../data/data/settings';
@@ -0,0 +1,11 @@
1
+ declare class Class {
2
+ private static instance;
3
+ static get_instance(): Class;
4
+ private constructor();
5
+ set: ({ settings }: {
6
+ settings?: any;
7
+ }) => Promise<void>;
8
+ set_from_storage: () => Promise<any>;
9
+ }
10
+ export declare const Settings: Class;
11
+ export {};
@@ -1,40 +1,24 @@
1
- import './app_ext_globals';
2
- import './globals';
3
1
  import './data/data';
4
- export * from './x';
5
2
  export * from './svg';
6
- export * as svg_namespace from './svg';
7
- export * as t from './t';
8
- export * as vars from './vars';
9
- export * from './functions';
10
3
  export * from './init';
11
4
  export * as c_app_version from './app_version/components';
12
5
  export * as c_loading_screen from './loading_screen/components';
13
6
  export * as c_offers from './offers/components';
14
7
  export * as c_tr from './tr/components';
15
8
  export * as o_offers from './offers/obj';
16
- export * as o_schema from './schema/obj';
17
9
  export * as o_tr from './tr/obj';
10
+ export * as d_data from './data/data';
18
11
  export * as d_loading_screen from './loading_screen/data';
19
12
  export * as d_offers from './offers/data';
20
13
  export * as d_schema from './schema/data';
21
- export * as d_settings from './settings/data';
22
14
  export * as d_tr from './tr/data';
23
- export * as s_css_vars from './css_vars/scripts';
24
- export * as s_header from './header/scripts';
25
15
  export * as s_loading_screen from './loading_screen/scripts';
26
- export * as s_no_tr from './no_tr/scripts';
27
16
  export * as s_offers from './offers/scripts';
28
- export * as s_service_worker from './service_worker/scripts';
29
17
  export * as s_tab_index from './tab_index/scripts';
30
- export * as s_theme from './theme/scripts';
31
18
  export * as s_title from './title/scripts';
32
- export * as s_utils from './utils/scripts';
33
- export * as s_viewport from './viewport/scripts';
34
19
  export * as p_loading_screen from './loading_screen/components/prop_types';
35
20
  export * as p_offers from './offers/components/prop_types';
36
21
  export * as p_tr from './tr/components/prop_types';
37
- export * as i_data from './data/interfaces';
38
22
  export * as i_offers from './offers/interfaces';
39
23
  export * as i_tab_index from './tab_index/interfaces';
40
24
  export * as i_tr from './tr/interfaces';
@@ -1,4 +1,4 @@
1
- import { t } from '../../../internal';
1
+ import { t } from '../../../../shared_clean/internal';
2
2
  export interface Body {
3
3
  app_id: string;
4
4
  on_render: t.CallbackVoid;
@@ -1 +1 @@
1
- export * from '../../loading_screen/data/main';
1
+ export * from '../../loading_screen/data/visibility';
@@ -1,6 +1,6 @@
1
- export declare class Main {
2
- private static i0;
3
- static i(): Main;
1
+ declare class Class {
2
+ private static instance;
3
+ static get_instance(): Class;
4
4
  private constructor();
5
5
  outer_is_visible: boolean;
6
6
  private inner_is_none;
@@ -10,3 +10,5 @@ export declare class Main {
10
10
  app_id: string;
11
11
  }) => Promise<void>;
12
12
  }
13
+ export declare const Visibility: Class;
14
+ export {};
@@ -1,6 +1,6 @@
1
- export declare class Roots {
2
- private static i0;
3
- static i(): Roots;
1
+ declare class Class {
2
+ private static instance;
3
+ static get_instance(): Class;
4
4
  private constructor();
5
5
  hide_roots: ({ app_id }: {
6
6
  app_id: string;
@@ -9,3 +9,5 @@ export declare class Roots {
9
9
  app_id: string;
10
10
  }) => void;
11
11
  }
12
+ export declare const Roots: Class;
13
+ export {};
@@ -1,8 +1,10 @@
1
- export declare class Tr {
2
- private static i0;
3
- static i(): Tr;
1
+ declare class Class {
2
+ private static instance;
3
+ static get_instance(): Class;
4
4
  private constructor();
5
5
  private loading_screen_root_selector;
6
6
  enable_no_tr: () => void;
7
7
  disable_no_tr: () => void;
8
8
  }
9
+ export declare const Tr: Class;
10
+ export {};
@@ -1 +1 @@
1
- export * from '../../offers/data/main';
1
+ export * from '../../offers/data/offers';
@@ -1,7 +1,7 @@
1
1
  import { o_offers, i_offers } from '../../internal';
2
- export declare class Main {
3
- private static i0;
4
- static i(): Main;
2
+ declare class Class {
3
+ private static instance;
4
+ static get_instance(): Class;
5
5
  private constructor();
6
6
  offers_of_type: o_offers.Offer[];
7
7
  current_offer_i: number;
@@ -21,3 +21,5 @@ export declare class Main {
21
21
  get current_offer_banner_link(): string;
22
22
  get current_offer_no(): number;
23
23
  }
24
+ export declare const Offers: Class;
25
+ export {};
@@ -1 +1 @@
1
- export * from '../../offers/scripts/main';
1
+ export * from '../../offers/scripts/offers';
@@ -1,11 +1,11 @@
1
1
  import { o_offers } from '../../internal';
2
- export declare class Main {
3
- private static i0;
4
- static i(): Main;
2
+ declare class Class {
3
+ private static instance;
4
+ static get_instance(): Class;
5
5
  private constructor();
6
6
  private enable_offers;
7
7
  private clear_new_tab;
8
- private search_enhancer_for_google;
9
- private advanced_extension_reloader;
10
8
  offers: o_offers.Offer[];
11
9
  }
10
+ export declare const Offers: Class;
11
+ export {};
@@ -1 +1 @@
1
- export * from '../../schema/data/main';
1
+ export * from '../../schema/data/schema';
@@ -0,0 +1,14 @@
1
+ import { o_schema } from '../../../shared_clean/internal';
2
+ declare class Class {
3
+ private static instance;
4
+ static get_instance(): Class;
5
+ transform: ({ data_obj, version, transform_items, keys_to_remove, force, }: {
6
+ data_obj: any;
7
+ version: number;
8
+ transform_items: o_schema.TransformItem[];
9
+ keys_to_remove?: string[];
10
+ force?: boolean;
11
+ }) => Promise<any>;
12
+ }
13
+ export declare const Schema: Class;
14
+ export {};
@@ -1 +1 @@
1
- export * from '../../tab_index/scripts/main';
1
+ export * from '../../tab_index/scripts/tab_index';
@@ -1,14 +1,14 @@
1
1
  import { KeyboardEvent } from 'react';
2
2
  import { o_color, i_color } from '../../../inputs/internal';
3
- export declare class Main {
4
- private static i0;
5
- static i(): Main;
3
+ declare class Class {
4
+ private static instance;
5
+ static get_instance(): Class;
6
6
  outer_is_visible: boolean;
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, }: {
@@ -16,3 +16,5 @@ export declare class Main {
16
16
  i: i_color.I;
17
17
  }, e: KeyboardEvent) => void;
18
18
  }
19
+ export declare const TabIndex: Class;
20
+ export {};
@@ -1 +1 @@
1
- export * from '../../title/scripts/main';
1
+ export * from '../../title/scripts/title';
@@ -0,0 +1,8 @@
1
+ declare class Class {
2
+ private static instance;
3
+ static get_instance(): Class;
4
+ private constructor();
5
+ set: () => void;
6
+ }
7
+ export declare const Title: Class;
8
+ export {};
@@ -1,5 +1,4 @@
1
- /// <reference types="react" />
2
- import { t } from '../../../internal';
1
+ import { t } from '../../../../shared_clean/internal';
3
2
  export interface BaseTr {
4
3
  name: string;
5
4
  tag: any;
@@ -1,14 +1,15 @@
1
1
  import React from 'react';
2
- import { t, i_tr } from '../../internal';
3
- export declare class Transition {
4
- private static i0;
5
- static i(): Transition;
2
+ import { t } from '../../../shared_clean/internal';
3
+ import { i_tr } from '../../internal';
4
+ declare class Class {
5
+ private static instance;
6
+ static get_instance(): Class;
6
7
  private constructor();
7
8
  handle_transition: ({ name, state, tr_end_unactive, tr_end_active, tr_el_ref, called_from_component_did_update, }: {
8
9
  name: string;
9
10
  state: boolean;
10
- tr_end_unactive?: t.CallbackVoid[] | undefined;
11
- tr_end_active?: t.CallbackVoid[] | undefined;
11
+ tr_end_unactive?: t.CallbackVoid[];
12
+ tr_end_active?: t.CallbackVoid[];
12
13
  tr_el_ref: React.RefObject<HTMLElement>;
13
14
  called_from_component_did_update: boolean;
14
15
  }, e?: React.TransitionEvent) => void;
@@ -21,3 +22,5 @@ export declare class Transition {
21
22
  tr_end_callbacks: t.CallbackVariadicVoid[];
22
23
  }, e: React.TransitionEvent) => void;
23
24
  }
25
+ export declare const Transition: Class;
26
+ export {};
@@ -0,0 +1 @@
1
+ export * from '../../announcement/scripts/visibility';
@@ -0,0 +1,8 @@
1
+ declare class Class {
2
+ private static instance;
3
+ static get_instance(): Class;
4
+ private constructor();
5
+ display: () => Promise<void>;
6
+ }
7
+ export declare const Visibility: Class;
8
+ export {};
@@ -1,7 +1,7 @@
1
1
  export declare const init_page: () => void;
2
- export declare class App {
3
- private static i0;
4
- static i(): App;
2
+ declare class Class {
3
+ private static instance;
4
+ static get_instance(): Class;
5
5
  private constructor();
6
6
  private log_error;
7
7
  [index: string]: any;
@@ -23,3 +23,5 @@ export declare class App {
23
23
  input_error: string;
24
24
  }[]) => string[];
25
25
  }
26
+ export declare const App: Class;
27
+ export {};
@@ -0,0 +1 @@
1
+ export * from '../../color/interfaces/color';
@@ -0,0 +1,9 @@
1
+ import { i_color } from '../../internal';
2
+ declare class Class {
3
+ private static instance;
4
+ static get_instance(): Class;
5
+ private constructor();
6
+ default_colors: i_color.Color[];
7
+ }
8
+ export declare const Colors: Class;
9
+ export {};
@@ -0,0 +1 @@
1
+ export * from '../../color/scripts/colors';
@@ -1,10 +1,10 @@
1
- export declare class Main {
2
- private static i0;
3
- static i(): Main;
1
+ declare class Class {
2
+ private static instance;
3
+ static get_instance(): 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[];
@@ -16,3 +16,5 @@ export declare class Main {
16
16
  transition_duration: string;
17
17
  }) => void;
18
18
  }
19
+ export declare const CssVars: Class;
20
+ export {};
@@ -0,0 +1 @@
1
+ export * from '../../css_vars/scripts/css_vars';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import '../../data/data/data';
2
+ export * from '../../data/data/settings';
@@ -0,0 +1,21 @@
1
+ import { t } from '../../internal';
2
+ declare class Class {
3
+ private static instance;
4
+ static get_instance(): Class;
5
+ private constructor();
6
+ set: ({ settings, run_in_action, }: {
7
+ settings?: any;
8
+ run_in_action?: any;
9
+ }) => Promise<void>;
10
+ change: ({ key, val }: {
11
+ key: string;
12
+ val: t.AnyUndefined;
13
+ }) => Promise<void>;
14
+ set_from_storage: ({ to_js, run_in_action, set_data, }?: {
15
+ to_js?: any;
16
+ run_in_action?: any;
17
+ set_data?: any;
18
+ }) => Promise<any>;
19
+ }
20
+ export declare const Settings: Class;
21
+ export {};
@@ -0,0 +1,25 @@
1
+ declare class Class {
2
+ private static instance;
3
+ static get_instance(): Class;
4
+ private constructor();
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
+ }) => 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>;
23
+ }
24
+ export declare const Cache: Class;
25
+ export {};
@@ -0,0 +1,3 @@
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;
@@ -1,11 +1,14 @@
1
1
  import { Tabs } from 'webextension-polyfill';
2
2
  import { t } from './internal';
3
3
  export declare const init_page: () => void;
4
- export declare class Ext {
5
- private static i0;
6
- static i(): Ext;
4
+ declare class Class {
5
+ private static instance;
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;
@@ -26,3 +29,5 @@ export declare class Ext {
26
29
  storage_remove: (keys: string[]) => Promise<void>;
27
30
  inject_js_and_css_in_content_script: (js_file_paths: string[], css_file_paths: string[]) => Promise<void>;
28
31
  }
32
+ export declare const Ext: Class;
33
+ export {};
@@ -0,0 +1,4 @@
1
+ import { t } from './internal';
2
+ export declare const prevent_default: (e: any) => void;
3
+ export declare const stop_propagation: (e: any) => void;
4
+ export declare const run_in_action_placeholder: (callback: t.CallbackUndefined) => void;
@@ -0,0 +1 @@
1
+ export {};