shinkom 1.0.3 → 1.1.1
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/README.md +3 -2
- package/dist/bundles/_virtual/_rolldown/runtime.js +14 -14
- package/dist/bundles/core/constants.d.ts +15 -15
- package/dist/bundles/core/constants.js +23 -20
- package/dist/bundles/core/elements/compat-view-element.d.ts +100 -0
- package/dist/bundles/core/elements/compat-view-element.js +440 -0
- package/dist/bundles/core/elements/control-panel-element.d.ts +45 -0
- package/dist/bundles/core/elements/control-panel-element.js +99 -0
- package/dist/bundles/core/elements/index.d.ts +13 -0
- package/dist/bundles/core/elements/index.js +13 -0
- package/dist/bundles/core/elements/inspector-element.d.ts +27 -0
- package/dist/bundles/core/elements/inspector-element.js +58 -0
- package/dist/bundles/core/elements/recent-result-item.js +46 -0
- package/dist/bundles/core/elements/results-history-item.js +46 -0
- package/dist/bundles/core/elements/templates/compat-view.templates.js +462 -0
- package/dist/bundles/core/elements/templates/control-panel.templates.js +335 -0
- package/dist/bundles/core/elements/templates/root-styles.template.js +40 -0
- package/dist/bundles/core/event-bus.d.ts +46 -32
- package/dist/bundles/core/event-bus.js +49 -36
- package/dist/bundles/core/helpers.js +47 -25
- package/dist/bundles/core/index.d.ts +15 -12
- package/dist/bundles/core/index.js +16 -12
- package/dist/bundles/core/state-service.d.ts +56 -36
- package/dist/bundles/core/state-service.js +80 -60
- package/dist/bundles/core/ui-component.d.ts +63 -44
- package/dist/bundles/core/ui-component.js +71 -52
- package/dist/bundles/engine/engine.d.ts +108 -60
- package/dist/bundles/engine/engine.js +238 -154
- package/dist/bundles/engine/index.js +8 -8
- package/dist/bundles/gen/browser-data.js +96 -96
- package/dist/bundles/gen/browser-usage-data.js +671 -671
- package/dist/bundles/gen/index.js +14 -14
- package/dist/bundles/index.d.ts +20 -16
- package/dist/bundles/index.js +23 -17
- package/dist/bundles/pkg/shinkore.d.ts +50 -50
- package/dist/bundles/pkg/shinkore.js +465 -465
- package/dist/bundles/pkg/shinkore_bg.wasm +0 -0
- package/dist/bundles/shinkom.d.ts +41 -33
- package/dist/bundles/shinkom.js +80 -55
- package/dist/bundles/types/public.d.ts +13 -29
- package/dist/bundles/types/types.d.ts +99 -0
- package/dist/bundles/ui/compat-ui/compat-ui.d.ts +43 -33
- package/dist/bundles/ui/compat-ui/compat-ui.js +59 -49
- package/dist/bundles/ui/compat-ui/index.js +8 -0
- package/dist/bundles/ui/compatibility-view/compatibility-view.d.ts +42 -0
- package/dist/bundles/ui/compatibility-view/compatibility-view.js +229 -0
- package/dist/bundles/ui/compatibility-view/index.js +8 -0
- package/dist/bundles/ui/control-panel/control-panel.d.ts +52 -38
- package/dist/bundles/ui/control-panel/control-panel.js +320 -409
- package/dist/bundles/ui/control-panel/index.js +8 -0
- package/dist/bundles/ui/index.d.ts +12 -11
- package/dist/bundles/ui/index.js +16 -11
- package/dist/bundles/ui/inspector/index.js +8 -0
- package/dist/bundles/ui/inspector/inspector.d.ts +97 -43
- package/dist/bundles/ui/inspector/inspector.js +394 -314
- package/dist/modules/core/constants.cjs +17 -1
- package/dist/modules/core/elements/compat-view-element.cjs +434 -0
- package/dist/modules/core/elements/control-panel-element.cjs +93 -0
- package/dist/modules/core/elements/index.cjs +11 -0
- package/dist/modules/core/elements/inspector-element.cjs +52 -0
- package/dist/modules/core/elements/recent-result-item.cjs +39 -0
- package/dist/modules/core/elements/results-history-item.cjs +39 -0
- package/dist/modules/core/elements/templates/compat-view.templates.cjs +458 -0
- package/dist/modules/core/elements/templates/control-panel.templates.cjs +332 -0
- package/dist/modules/core/elements/templates/root-styles.template.cjs +33 -0
- package/dist/modules/core/event-bus.cjs +43 -1
- package/dist/modules/core/helpers.cjs +41 -1
- package/dist/modules/core/index.cjs +16 -1
- package/dist/modules/core/state-service.cjs +74 -1
- package/dist/modules/core/ui-component.cjs +65 -1
- package/dist/modules/engine/engine.cjs +232 -1
- package/dist/modules/gen/browser-data.cjs +100 -1
- package/dist/modules/gen/browser-usage-data.cjs +675 -1
- package/dist/modules/gen/compat-data.cjs +31015 -1
- package/dist/modules/gen/index.cjs +7 -1
- package/dist/modules/index.cjs +27 -1
- package/dist/modules/pkg/shinkore.cjs +459 -1
- package/dist/modules/pkg/shinkore_bg.wasm +0 -0
- package/dist/modules/shinkom.cjs +73 -1
- package/dist/modules/ui/compat-ui/compat-ui.cjs +53 -1
- package/dist/modules/ui/compat-ui/index.cjs +1 -0
- package/dist/modules/ui/compatibility-view/compatibility-view.cjs +223 -0
- package/dist/modules/ui/compatibility-view/index.cjs +1 -0
- package/dist/modules/ui/control-panel/control-panel.cjs +314 -182
- package/dist/modules/ui/control-panel/index.cjs +1 -0
- package/dist/modules/ui/index.cjs +13 -1
- package/dist/modules/ui/inspector/index.cjs +1 -0
- package/dist/modules/ui/inspector/inspector.cjs +388 -1
- package/package.json +13 -6
- package/dist/bundles/node_modules/@mdn/browser-compat-data/types.d.ts +0 -78
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shinkom - gen
|
|
3
|
-
* @version 1.
|
|
4
|
-
* @license MIT
|
|
5
|
-
* @copyright 2026 - OneilNvM
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import compat_data_default from "./compat-data.js";
|
|
9
|
-
import "./browser-data.js";
|
|
10
|
-
import "./browser-usage-data.js";
|
|
11
|
-
//#region gen/index.js
|
|
12
|
-
var gen_default = compat_data_default;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { gen_default as default };
|
|
1
|
+
/**
|
|
2
|
+
* Shinkom - gen
|
|
3
|
+
* @version 1.1.1
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 - OneilNvM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import compat_data_default from "./compat-data.js";
|
|
9
|
+
import "./browser-data.js";
|
|
10
|
+
import "./browser-usage-data.js";
|
|
11
|
+
//#region gen/index.js
|
|
12
|
+
var gen_default = compat_data_default;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { gen_default as default };
|
package/dist/bundles/index.d.ts
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shinkom - index
|
|
3
|
-
* @version 1.
|
|
4
|
-
* @license MIT
|
|
5
|
-
* @copyright 2026 - OneilNvM
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { ShinkomBus } from "./core/event-bus.js";
|
|
9
|
-
import { ShinkomState } from "./core/state-service.js";
|
|
10
|
-
import { UIComponent } from "./core/ui-component.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Shinkom - index
|
|
3
|
+
* @version 1.1.1
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 - OneilNvM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { ShinkomBus } from "./core/event-bus.js";
|
|
9
|
+
import { ShinkomState } from "./core/state-service.js";
|
|
10
|
+
import { UIComponent } from "./core/ui-component.js";
|
|
11
|
+
import { CompatViewElement } from "./core/elements/compat-view-element.js";
|
|
12
|
+
import { CompatControlPanelElement } from "./core/elements/control-panel-element.js";
|
|
13
|
+
import { CompatInspectorElement } from "./core/elements/inspector-element.js";
|
|
14
|
+
import { CompatInspector } from "./ui/inspector/inspector.js";
|
|
15
|
+
import { CompatControlPanel } from "./ui/control-panel/control-panel.js";
|
|
16
|
+
import { CompatView } from "./ui/compatibility-view/compatibility-view.js";
|
|
17
|
+
import { CompatUI } from "./ui/compat-ui/compat-ui.js";
|
|
18
|
+
import { SKEngine } from "./engine/engine.js";
|
|
19
|
+
import { Shinkom } from "./shinkom.js";
|
|
20
|
+
export { CompatControlPanel, CompatControlPanelElement, CompatInspector, CompatInspectorElement, CompatUI, CompatView, CompatViewElement, SKEngine, Shinkom, ShinkomBus, ShinkomState, UIComponent };
|
package/dist/bundles/index.js
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shinkom - index
|
|
3
|
-
* @version 1.
|
|
4
|
-
* @license MIT
|
|
5
|
-
* @copyright 2026 - OneilNvM
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { ShinkomBus } from "./core/event-bus.js";
|
|
9
|
-
import { ShinkomState } from "./core/state-service.js";
|
|
10
|
-
import { UIComponent } from "./core/ui-component.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import "./
|
|
16
|
-
import {
|
|
17
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Shinkom - index
|
|
3
|
+
* @version 1.1.1
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 - OneilNvM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { ShinkomBus } from "./core/event-bus.js";
|
|
9
|
+
import { ShinkomState } from "./core/state-service.js";
|
|
10
|
+
import { UIComponent } from "./core/ui-component.js";
|
|
11
|
+
import { CompatViewElement } from "./core/elements/compat-view-element.js";
|
|
12
|
+
import { CompatControlPanelElement } from "./core/elements/control-panel-element.js";
|
|
13
|
+
import { CompatInspectorElement } from "./core/elements/inspector-element.js";
|
|
14
|
+
import "./core/index.js";
|
|
15
|
+
import { CompatInspector } from "./ui/inspector/inspector.js";
|
|
16
|
+
import { CompatControlPanel } from "./ui/control-panel/control-panel.js";
|
|
17
|
+
import { CompatView } from "./ui/compatibility-view/compatibility-view.js";
|
|
18
|
+
import { CompatUI } from "./ui/compat-ui/compat-ui.js";
|
|
19
|
+
import "./ui/index.js";
|
|
20
|
+
import { SKEngine } from "./engine/engine.js";
|
|
21
|
+
import "./engine/index.js";
|
|
22
|
+
import { Shinkom } from "./shinkom.js";
|
|
23
|
+
export { CompatControlPanel, CompatControlPanelElement, CompatInspector, CompatInspectorElement, CompatUI, CompatView, CompatViewElement, SKEngine, Shinkom, ShinkomBus, ShinkomState, UIComponent };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shinkom - pkg
|
|
3
|
-
* @version 1.
|
|
4
|
-
* @license MIT
|
|
5
|
-
* @copyright 2026 - OneilNvM
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
//#region pkg/shinkore.d.ts
|
|
9
|
-
/**
|
|
10
|
-
* The [`CompatEngine`] struct stores the compatibility data
|
|
11
|
-
* and acts as an entry-point for the Rust/WASM engine.
|
|
12
|
-
*/
|
|
13
|
-
declare class CompatEngine {
|
|
14
|
-
/**
|
|
15
|
-
* Constructs an new engine instance
|
|
16
|
-
* @param {any} bcd_html_data
|
|
17
|
-
* @param {any} bcd_svg_data
|
|
18
|
-
* @param {any} bcd_browser_data
|
|
19
|
-
* @param {any} ciu_usage_data
|
|
20
|
-
*/
|
|
21
|
-
constructor(bcd_html_data: any, bcd_svg_data: any, bcd_browser_data: any, ciu_usage_data: any);
|
|
22
|
-
__destroy_into_raw(): number;
|
|
23
|
-
__wbg_ptr: number;
|
|
24
|
-
free(): void;
|
|
25
|
-
/**
|
|
26
|
-
* Used for checking the compatibility of a single element and its attributes.
|
|
27
|
-
* @param {string} html
|
|
28
|
-
* @returns {any}
|
|
29
|
-
*/
|
|
30
|
-
check_element(html: string): any;
|
|
31
|
-
/**
|
|
32
|
-
* Used for checking the compatibility of multiple elements and their attributes
|
|
33
|
-
*
|
|
34
|
-
* `depth_level` is used to control how far down in a nested HTML structure to go before
|
|
35
|
-
* returning element tags.
|
|
36
|
-
*
|
|
37
|
-
* See [`preprocess::pre_process_html`] to learn more about how `depth_level` works.
|
|
38
|
-
* @param {string} html
|
|
39
|
-
* @param {number} depth_level
|
|
40
|
-
* @returns {any}
|
|
41
|
-
*/
|
|
42
|
-
check_elements(html: string, depth_level: number): any;
|
|
43
|
-
/**
|
|
44
|
-
* Used for performing a full page compatibility check.
|
|
45
|
-
* @param {string} html
|
|
46
|
-
* @returns {any}
|
|
47
|
-
*/
|
|
48
|
-
full_inspect(html: string): any;
|
|
49
|
-
}
|
|
50
|
-
//#endregion
|
|
1
|
+
/**
|
|
2
|
+
* Shinkom - pkg
|
|
3
|
+
* @version 1.1.1
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 - OneilNvM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
//#region pkg/shinkore.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* The [`CompatEngine`] struct stores the compatibility data
|
|
11
|
+
* and acts as an entry-point for the Rust/WASM engine.
|
|
12
|
+
*/
|
|
13
|
+
declare class CompatEngine {
|
|
14
|
+
/**
|
|
15
|
+
* Constructs an new engine instance
|
|
16
|
+
* @param {any} bcd_html_data
|
|
17
|
+
* @param {any} bcd_svg_data
|
|
18
|
+
* @param {any} bcd_browser_data
|
|
19
|
+
* @param {any} ciu_usage_data
|
|
20
|
+
*/
|
|
21
|
+
constructor(bcd_html_data: any, bcd_svg_data: any, bcd_browser_data: any, ciu_usage_data: any);
|
|
22
|
+
__destroy_into_raw(): number;
|
|
23
|
+
__wbg_ptr: number;
|
|
24
|
+
free(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Used for checking the compatibility of a single element and its attributes.
|
|
27
|
+
* @param {string} html
|
|
28
|
+
* @returns {any}
|
|
29
|
+
*/
|
|
30
|
+
check_element(html: string): any;
|
|
31
|
+
/**
|
|
32
|
+
* Used for checking the compatibility of multiple elements and their attributes
|
|
33
|
+
*
|
|
34
|
+
* `depth_level` is used to control how far down in a nested HTML structure to go before
|
|
35
|
+
* returning element tags.
|
|
36
|
+
*
|
|
37
|
+
* See [`preprocess::pre_process_html`] to learn more about how `depth_level` works.
|
|
38
|
+
* @param {string} html
|
|
39
|
+
* @param {number} depth_level
|
|
40
|
+
* @returns {any}
|
|
41
|
+
*/
|
|
42
|
+
check_elements(html: string, depth_level: number): any;
|
|
43
|
+
/**
|
|
44
|
+
* Used for performing a full page compatibility check.
|
|
45
|
+
* @param {string} html
|
|
46
|
+
* @returns {any}
|
|
47
|
+
*/
|
|
48
|
+
full_inspect(html: string): any;
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
51
|
export { CompatEngine };
|