@loftyshaky/shared 0.0.41 → 0.0.44
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-30216ab6.js +9 -0
- package/chunk-main-3fee580d.js +1 -0
- package/{chunk-main-51a53080.js → chunk-main-70539558.js} +1 -1
- package/chunk-pickr.min-f7ab594a.js +1 -0
- package/ext.js +1 -1
- package/fonts/noto_sans.woff2 +0 -0
- 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/locales.js → locales.js} +4 -1
- package/js/package/plugins/watcher.js +5 -3
- package/js/{ext/webpack.config.js → webpack.config.js} +166 -136
- package/package.json +1 -1
- package/scss/shared/embed/font_face.scss +1 -1
- 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/general/template.scss +3 -3
- package/scss/shared/themes/general/template_focus.scss +1 -1
- package/scss/shared/transitions.scss +1 -1
- package/settings.js +1 -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 +2 -1
- package/ts/shared/ext.d.ts +2 -2
- package/ts/shared/internal.d.ts +1 -0
- package/ts/shared/loading_screen/components/body.d.ts +3 -2
- package/ts/shared/loading_screen/components/prop_types/body.d.ts +4 -0
- package/ts/shared/loading_screen/components/prop_types/index.d.ts +1 -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-a79e7a18.js +0 -1
package/scss/shared/mods.scss
CHANGED
|
@@ -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,7 +25,7 @@ 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 {
|
package/settings.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aa as Body,ab as BackUp,S as Sections,_ as __awaiter,m as makeObservable,d as action}from"./chunk-main-
|
|
1
|
+
import{aa as Body,ab as BackUp,S as Sections,_ as __awaiter,m as makeObservable,d as action}from"./chunk-main-30216ab6.js";import"react";import{a as Main$2}from"./chunk-main-70539558.js";import"react-dom";var index$6=Object.freeze({__proto__:null,Body:Body});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:BackUp,Sections: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((()=>__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"),makeObservable(this,{set_checkbox_val: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((()=>__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"),makeObservable(this,{transform: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$2.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});export{index$6 as c_settings,index$3 as d_optional_permissions,index$2 as d_schema,index$4 as d_settings,index as i_optional_permissions,index$5 as o_schema,index$1 as s_settings};
|
package/ts/shared/app.d.ts
CHANGED
package/ts/shared/ext.d.ts
CHANGED
|
@@ -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
|
@@ -21,6 +21,7 @@ export * as s_theme from "./theme/scripts";
|
|
|
21
21
|
export * as s_title from "./title/scripts";
|
|
22
22
|
export * as s_utils from "./utils/scripts";
|
|
23
23
|
export * as s_viewport from "./viewport/scripts";
|
|
24
|
+
export * as p_loading_screen from "./loading_screen/components/prop_types";
|
|
24
25
|
export * as p_tr from "./tr/components/prop_types";
|
|
25
26
|
export * as i_data from "./data/interfaces";
|
|
26
27
|
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;
|