@loftyshaky/shared 0.0.42 → 1.0.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.
- package/_locales/en/messages.json +1 -1
- package/_locales/ru/messages.json +1 -1
- package/announcement.js +1 -1
- package/app.js +1 -1
- package/chunk-main-4661c4ad.js +1 -0
- package/chunk-main-536b8e4c.js +9 -0
- package/chunk-main-53e40464.js +1 -0
- package/chunk-pickr.min-e4e11a57.js +1 -0
- package/ext.js +1 -1
- package/fonts/noto_sans.woff2 +0 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/inputs.js +1 -1
- package/js/apps.js +60 -0
- package/js/{ext/env.js → env.js} +1 -1
- package/js/ext/manifest.js +58 -58
- package/js/{ext/locales.js → locales.js} +4 -1
- package/js/package/plugins/watcher.js +5 -3
- package/js/{ext/webpack.config.js → webpack.config.js} +167 -138
- package/package.json +1 -1
- package/scss/shared/embed/font_face.scss +1 -1
- package/scss/shared/embed/hidden_roots.scss +3 -0
- package/scss/shared/focus.scss +1 -1
- package/scss/shared/mods.scss +1 -1
- package/scss/shared/scrollbar.scss +1 -1
- package/scss/shared/themes/colors/dark.scss +2 -2
- package/scss/shared/themes/colors/light.scss +5 -5
- package/scss/shared/themes/colors/very_dark.scss +2 -2
- package/scss/shared/themes/general/template.scss +3 -3
- package/scss/shared/themes/general/template_focus.scss +5 -5
- package/scss/shared/transitions.scss +1 -1
- package/settings.js +1 -1
- package/ts/error_modules/crash_handler/data/index.d.ts +0 -1
- package/ts/error_modules/error/components/prop_types/body.d.ts +2 -0
- package/ts/inputs/interfaces/text_btn.d.ts +1 -1
- package/ts/shared/app.d.ts +11 -2
- package/ts/shared/{ext_version → app_version}/components/body.d.ts +0 -0
- package/ts/shared/{ext_version → app_version}/components/index.d.ts +0 -0
- package/ts/shared/ext.d.ts +3 -3
- package/ts/shared/internal.d.ts +3 -1
- package/ts/shared/loading_screen/components/body.d.ts +3 -2
- package/ts/shared/loading_screen/components/prop_types/body.d.ts +5 -0
- package/ts/shared/loading_screen/components/prop_types/index.d.ts +1 -0
- package/ts/shared/loading_screen/data/main.d.ts +3 -1
- package/ts/shared/loading_screen/scripts/index.d.ts +2 -0
- package/ts/shared/loading_screen/scripts/roots.d.ts +11 -0
- package/ts/shared/loading_screen/scripts/tr.d.ts +8 -0
- package/ts/shared/tr/data/transition.d.ts +1 -1
- package/ts/shared/x.d.ts +1 -1
- package/chunk-main-2e2ed3a2.js +0 -9
- package/chunk-main-51a53080.js +0 -1
- package/chunk-main-a79e7a18.js +0 -1
- package/ts/error_modules/crash_handler/data/fatal_error.d.ts +0 -7
package/scss/shared/focus.scss
CHANGED
|
@@ -26,7 +26,7 @@ body.keyboard .btn.text:focus,
|
|
|
26
26
|
.keyboard .link:focus,
|
|
27
27
|
.keyboard .link_btn:focus,
|
|
28
28
|
.keyboard .help_btn:focus,
|
|
29
|
-
.keyboard .input_item .input_w:not(.text
|
|
29
|
+
.keyboard .input_item .input_w:not(.text, .textarea).is_in_focus_state::before,
|
|
30
30
|
.keyboard .input_item.range .input.is_in_focus_state {
|
|
31
31
|
@include outline_solid_thick;
|
|
32
32
|
}
|
package/scss/shared/mods.scss
CHANGED
|
@@ -2,12 +2,12 @@ $htc: white;
|
|
|
2
2
|
$gaq: #efefef;
|
|
3
3
|
$hev: #bbb;
|
|
4
4
|
$lpe: $black;
|
|
5
|
-
$yos: #
|
|
6
|
-
$htm: #
|
|
7
|
-
$qgp: #
|
|
5
|
+
$yos: #90efff;
|
|
6
|
+
$htm: #ffa96c;
|
|
7
|
+
$qgp: #66ff8e;
|
|
8
8
|
$ycp: #2e8cff;
|
|
9
9
|
$cop: #14bf0a;
|
|
10
|
-
$ptn: #
|
|
11
|
-
$uzf: #
|
|
10
|
+
$ptn: #ca26dd;
|
|
11
|
+
$uzf: #e8720c;
|
|
12
12
|
$dfp: #a2d4ff;
|
|
13
13
|
$nqp: rgb(255 77 85 / 99%);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
color: white !important;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
:not(html
|
|
10
|
+
:not(html, body, select) {
|
|
11
11
|
&::-webkit-scrollbar-corner,
|
|
12
12
|
&::-webkit-resizer {
|
|
13
13
|
background-color: $hev;
|
|
@@ -191,7 +191,7 @@ hr {
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
.color_picker_w {
|
|
194
|
-
*:not(.pcr-last-color
|
|
194
|
+
*:not(.pcr-last-color, .pcr-current-color) {
|
|
195
195
|
color: $lpe !important;
|
|
196
196
|
}
|
|
197
197
|
|
|
@@ -199,7 +199,7 @@ hr {
|
|
|
199
199
|
background-color: $gaq !important;
|
|
200
200
|
outline-color: $hev !important;
|
|
201
201
|
|
|
202
|
-
&:hover:not(.pcr-result
|
|
202
|
+
&:hover:not(.pcr-result, .active) {
|
|
203
203
|
background-color: $qgp !important;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
@@ -25,18 +25,18 @@ body.keyboard .btn.text:focus,
|
|
|
25
25
|
.keyboard .input_item .checkbox .box:focus,
|
|
26
26
|
.keyboard .link:focus,
|
|
27
27
|
.keyboard .link_btn:focus,
|
|
28
|
-
.keyboard .input_item .input_w:not(.text
|
|
28
|
+
.keyboard .input_item .input_w:not(.text, .textarea).is_in_focus_state::before,
|
|
29
29
|
.keyboard .input_item.range .input.is_in_focus_state,
|
|
30
30
|
.keyboard .input_item .visualization_w .visualization:focus,
|
|
31
31
|
.keyboard .input_item .palette_visualization_w .palette_visualization:focus {
|
|
32
|
-
outline-color: $
|
|
32
|
+
outline-color: $ptn;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.keyboard .input_item .pcr-palette:focus,
|
|
36
36
|
.keyboard .input_item .pcr-slider:focus,
|
|
37
37
|
.keyboard .input_item .pcr-picker:focus,
|
|
38
38
|
.keyboard .input_item .color_picker_w input:not(.pcr-result):focus {
|
|
39
|
-
outline-color: $
|
|
39
|
+
outline-color: $ptn !important;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
.input_item .pcr-result:focus {
|
|
@@ -44,9 +44,9 @@ body.keyboard .btn.text:focus,
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.keyboard .input_item .pcr-result:focus {
|
|
47
|
-
outline-color: $
|
|
47
|
+
outline-color: $ptn !important;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.keyboard .section_btn:not(.selected):focus {
|
|
51
|
-
box-shadow: inset 0 0 0 2px $
|
|
51
|
+
box-shadow: inset 0 0 0 2px $ptn, inset -2px 0 0 0 $ptn;
|
|
52
52
|
}
|
package/settings.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var main=require("./chunk-main-536b8e4c.js");require("react");var main$1=require("./chunk-main-4661c4ad.js");require("react-dom");var index$6=Object.freeze({__proto__:null,Body:main.Body$2});var index$5=Object.freeze({__proto__:null,TransformItem:class{constructor(obj){this.create_property_if_it_doesnt_exist=!0,Object.assign(this,obj),this.old_key=obj.old_key,this.new_key=obj.new_key,this.new_val=obj.new_val}}}),index$4=Object.freeze({__proto__:null,BackUp:main.BackUp,Sections:main.Sections});var index$3=Object.freeze({__proto__:null,Main:class{constructor(){this.set_permission=({name:name,optional_permission_checkbox_dict:optional_permission_checkbox_dict})=>err_async((()=>main.__awaiter(this,void 0,void 0,(function*(){const permissions=optional_permission_checkbox_dict[name];if(yield we.permissions.contains(permissions)){(yield we.permissions.remove(permissions))&&this.set_checkbox_val({name:name,val:!1})}else{(yield we.permissions.request(permissions))&&this.set_checkbox_val({name:name,val:!0})}}))),"shr_1221"),this.set_checkbox_val=({name:name,val:val})=>err((()=>{data.ui[name]=val}),"shr_1222"),main.makeObservable(this,{set_checkbox_val:main.action})}static i(){return this.i0||(this.i0=new this)}}});var index$2=Object.freeze({__proto__:null,Main:class{constructor(){this.transform=({settings:settings,transform_items:transform_items})=>err_async((()=>main.__awaiter(this,void 0,void 0,(function*(){const properties_to_remove=[];return transform_items.forEach((transform_item=>err((()=>{n(transform_item.new_key)&&!n(settings[transform_item.new_key])&&(transform_item.create_property_if_it_doesnt_exist||!transform_item.create_property_if_it_doesnt_exist&&n(transform_item.old_key)&&n(settings[transform_item.old_key]))&&(n(transform_item.new_val)?settings[transform_item.new_key]=transform_item.new_val:n(transform_item.old_key)&&(settings[transform_item.new_key]=settings[transform_item.old_key])),n(transform_item.old_key)&&!properties_to_remove.includes(transform_item.old_key)&&properties_to_remove.push(transform_item.old_key)}),"shr_1227"))),properties_to_remove.forEach((property_to_remove=>err((()=>{delete settings[property_to_remove]}),"shr_1228"))),yield ext.storage_remove(properties_to_remove),settings}))),"shr_1226"),main.makeObservable(this,{transform:main.action})}static i(){return this.i0||(this.i0=new this)}}});var index$1=Object.freeze({__proto__:null,Theme:class{constructor(){this.change=({input:input,name:name,additional_theme_callback:additional_theme_callback})=>err((()=>{"options_page_theme"===input.name&&main$1.Main$1.i().set({name:name,additional_theme_callback:additional_theme_callback})}),"shr_1088")}static i(){return this.i0||(this.i0=new this)}}}),index=Object.freeze({__proto__:null});exports.c_settings=index$6,exports.d_optional_permissions=index$3,exports.d_schema=index$2,exports.d_settings=index$4,exports.i_optional_permissions=index,exports.o_schema=index$5,exports.s_settings=index$1;
|
package/ts/shared/app.d.ts
CHANGED
|
@@ -4,6 +4,15 @@ export declare class App {
|
|
|
4
4
|
static i(): App;
|
|
5
5
|
private constructor();
|
|
6
6
|
private log_error;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
[index: string]: any;
|
|
8
|
+
private origin;
|
|
9
|
+
private package_json;
|
|
10
|
+
private messages_en_json;
|
|
11
|
+
private messages_ru_json;
|
|
12
|
+
private messages_de_json;
|
|
13
|
+
private resolve;
|
|
14
|
+
read_data_into_vars: () => Promise<string>;
|
|
15
|
+
get_app_version: () => string;
|
|
16
|
+
msg: (msg: string) => string;
|
|
17
|
+
read_env_into_global_var: () => Promise<void>;
|
|
9
18
|
}
|
|
File without changes
|
|
File without changes
|
package/ts/shared/ext.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare class Ext {
|
|
|
9
9
|
static i(): Ext;
|
|
10
10
|
private constructor();
|
|
11
11
|
private log_error;
|
|
12
|
-
|
|
12
|
+
get_app_version: () => string;
|
|
13
13
|
iterate_all_tabs: (callback: t.CallbackVariadicVoid) => Promise<void>;
|
|
14
14
|
msg: (msg: string) => string;
|
|
15
15
|
get_active_tab: () => Promise<Tabs.Tab | undefined>;
|
|
@@ -20,8 +20,8 @@ export declare class Ext {
|
|
|
20
20
|
send_msg_to_active_tab: (msg: t.Msg) => Promise<void>;
|
|
21
21
|
send_msg_to_active_tab_resp: (msg: t.Msg) => Promise<any>;
|
|
22
22
|
send_msg_to_all_tabs: (msg: t.Msg) => Promise<void>;
|
|
23
|
-
storage_get: (keys?: string | string[]
|
|
24
|
-
storage_set: (obj: t.AnyRecord, replace?: boolean
|
|
23
|
+
storage_get: (keys?: string | string[]) => Promise<any>;
|
|
24
|
+
storage_set: (obj: t.AnyRecord, replace?: boolean) => Promise<void>;
|
|
25
25
|
storage_remove: (keys: string[]) => Promise<void>;
|
|
26
26
|
inject_js_and_css_in_content_script: (js_file_paths: string[], css_file_paths: string[]) => Promise<void>;
|
|
27
27
|
}
|
package/ts/shared/internal.d.ts
CHANGED
|
@@ -8,19 +8,21 @@ export * as t from "./t";
|
|
|
8
8
|
export * as vars from "./vars";
|
|
9
9
|
export * from "./functions";
|
|
10
10
|
export * from "./init";
|
|
11
|
-
export * as
|
|
11
|
+
export * as c_app_version from "./app_version/components";
|
|
12
12
|
export * as c_loading_screen from "./loading_screen/components";
|
|
13
13
|
export * as c_tr from "./tr/components";
|
|
14
14
|
export * as o_tr from "./tr/obj";
|
|
15
15
|
export * as d_loading_screen from "./loading_screen/data";
|
|
16
16
|
export * as d_tr from "./tr/data";
|
|
17
17
|
export * as s_css_vars from "./css_vars/scripts";
|
|
18
|
+
export * as s_loading_screen from "./loading_screen/scripts";
|
|
18
19
|
export * as s_no_tr from "./no_tr/scripts";
|
|
19
20
|
export * as s_tab_index from "./tab_index/scripts";
|
|
20
21
|
export * as s_theme from "./theme/scripts";
|
|
21
22
|
export * as s_title from "./title/scripts";
|
|
22
23
|
export * as s_utils from "./utils/scripts";
|
|
23
24
|
export * as s_viewport from "./viewport/scripts";
|
|
25
|
+
export * as p_loading_screen from "./loading_screen/components/prop_types";
|
|
24
26
|
export * as p_tr from "./tr/components/prop_types";
|
|
25
27
|
export * as i_data from "./data/interfaces";
|
|
26
28
|
export * as i_tab_index from "./tab_index/interfaces";
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { p_loading_screen } from "../../internal";
|
|
3
|
+
export declare const Body: React.FunctionComponent<p_loading_screen.Body>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./body";
|
|
@@ -11,7 +11,7 @@ export declare class Transition {
|
|
|
11
11
|
tr_end_active?: t.CallbackVoid[] | undefined;
|
|
12
12
|
tr_el_ref: React.RefObject<HTMLElement>;
|
|
13
13
|
called_from_component_did_update: boolean;
|
|
14
|
-
}, e?: React.TransitionEvent
|
|
14
|
+
}, e?: React.TransitionEvent) => void;
|
|
15
15
|
transit: ({ transitions, name, state, }: {
|
|
16
16
|
transitions: i_tr.Transitions;
|
|
17
17
|
name: string;
|
package/ts/shared/x.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare class X {
|
|
|
34
34
|
insert_item: (position: number, items: t.AnyArray, arr: t.AnyArray) => any[];
|
|
35
35
|
remove_item: (i: number, arr: t.AnyArray) => void;
|
|
36
36
|
bind: (els: Window | Document | t.XEls, event: string, f: t.CallbackVariadicVoid) => void;
|
|
37
|
-
css: (filename: string, parent: HTMLHeadElement | ShadowRoot | undefined, cls?: string
|
|
37
|
+
css: (filename: string, parent: HTMLHeadElement | ShadowRoot | undefined, cls?: string) => HTMLLinkElement | undefined;
|
|
38
38
|
dynamic_css: (parent: HTMLHeadElement | ShadowRoot, cls: string, css: string) => HTMLStyleElement;
|
|
39
39
|
get_css_val: (el: HTMLElement, key: string) => string;
|
|
40
40
|
get_numeric_css_val: (el: HTMLElement, key: string) => number;
|