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,11 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shinkom - ui
|
|
3
|
-
* @version 1.
|
|
4
|
-
* @license MIT
|
|
5
|
-
* @copyright 2026 - OneilNvM
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { CompatInspector } from "./inspector/inspector.js";
|
|
9
|
-
import { CompatControlPanel } from "./control-panel/control-panel.js";
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Shinkom - ui
|
|
3
|
+
* @version 1.1.1
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 - OneilNvM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { CompatInspector } from "./inspector/inspector.js";
|
|
9
|
+
import { CompatControlPanel } from "./control-panel/control-panel.js";
|
|
10
|
+
import { CompatView } from "./compatibility-view/compatibility-view.js";
|
|
11
|
+
import { CompatUI } from "./compat-ui/compat-ui.js";
|
|
12
|
+
export { CompatControlPanel, CompatInspector, CompatUI, CompatView };
|
package/dist/bundles/ui/index.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shinkom - ui
|
|
3
|
-
* @version 1.
|
|
4
|
-
* @license MIT
|
|
5
|
-
* @copyright 2026 - OneilNvM
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { CompatInspector } from "./inspector/inspector.js";
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Shinkom - ui
|
|
3
|
+
* @version 1.1.1
|
|
4
|
+
* @license MIT
|
|
5
|
+
* @copyright 2026 - OneilNvM
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { CompatInspector } from "./inspector/inspector.js";
|
|
9
|
+
import "./inspector/index.js";
|
|
10
|
+
import { CompatControlPanel } from "./control-panel/control-panel.js";
|
|
11
|
+
import "./control-panel/index.js";
|
|
12
|
+
import { CompatView } from "./compatibility-view/compatibility-view.js";
|
|
13
|
+
import "./compatibility-view/index.js";
|
|
14
|
+
import { CompatUI } from "./compat-ui/compat-ui.js";
|
|
15
|
+
import "./compat-ui/index.js";
|
|
16
|
+
export { CompatControlPanel, CompatInspector, CompatUI, CompatView };
|
|
@@ -1,44 +1,98 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shinkom - inspector
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
*
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Shinkom - inspector
|
|
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 { CompatInspectorElement } from "../../core/elements/inspector-element.js";
|
|
12
|
+
import { InspectorConfig as InspectorConfig$1, UISharedState as UISharedState$1, UISharedStateProps as UISharedStateProps$1 } from "../../types/public.js";
|
|
13
|
+
|
|
14
|
+
//#region src/ui/inspector/inspector.d.ts
|
|
15
|
+
/**
|
|
16
|
+
* CompatInspector manages the interactive compatibility inspector overlay.
|
|
17
|
+
*
|
|
18
|
+
* It mounts the custom element `<sk-compat-inspector>`, synchronizes
|
|
19
|
+
* the overlay state with the shared UI state, and emits inspection
|
|
20
|
+
* requests through the Shinkom event bus.
|
|
21
|
+
*
|
|
22
|
+
* The inspector supports pointer tracking, element freezing, optional
|
|
23
|
+
* keyboard shortcuts, and soft mount/unmount flows that preserve or
|
|
24
|
+
* skip event bus bindings.
|
|
25
|
+
*
|
|
26
|
+
* @extends {UIComponent}
|
|
27
|
+
*/
|
|
28
|
+
declare class CompatInspector extends UIComponent {
|
|
29
|
+
/**
|
|
30
|
+
* Register custom elements to the CustomElementRegistry.
|
|
31
|
+
*/
|
|
32
|
+
static register(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Initializes the compatibility inspector.
|
|
35
|
+
*
|
|
36
|
+
* It requires an instance of the `ShinkomBus` and `ShinkomState` to listen
|
|
37
|
+
* for event bus emits and state service notifications.
|
|
38
|
+
*
|
|
39
|
+
* It also registers the `<sk-compat-inspector>` custom element.
|
|
40
|
+
*
|
|
41
|
+
* It has an optional configuration object for disabling the inspector
|
|
42
|
+
* and toggling keyboard shortcuts.
|
|
43
|
+
*
|
|
44
|
+
* ### Keyboard Shortcuts
|
|
45
|
+
*
|
|
46
|
+
* - Create inspector: Ctrl + Alt + c
|
|
47
|
+
* - Reset inspector: Ctrl + Shift + |
|
|
48
|
+
* - Destroy inspector: Ctrl + Alt + \
|
|
49
|
+
* - Toggle element switching: Ctrl + \
|
|
50
|
+
*
|
|
51
|
+
* @param {ShinkomBus} bus
|
|
52
|
+
* @param {ShinkomState} stateService
|
|
53
|
+
* @param {InspectorConfig | undefined} config
|
|
54
|
+
*/
|
|
55
|
+
constructor(bus: ShinkomBus, stateService: ShinkomState, config?: InspectorConfig | undefined);
|
|
56
|
+
/**@type {InspectorConfig | undefined} */
|
|
57
|
+
config: InspectorConfig | undefined;
|
|
58
|
+
/**@type {boolean} */
|
|
59
|
+
enableSwitching: boolean;
|
|
60
|
+
/**@type {CompatInspectorElement | null} */
|
|
61
|
+
inspectorEl: CompatInspectorElement | null;
|
|
62
|
+
/**@type {HTMLElement | null} */
|
|
63
|
+
frozenTarget: HTMLElement | null;
|
|
64
|
+
/**@type {(() => void)[]} */
|
|
65
|
+
unsubEvents: (() => void)[];
|
|
66
|
+
/**
|
|
67
|
+
* Mounts the inspector without setting up event bus listeners or state listeners.
|
|
68
|
+
*
|
|
69
|
+
* This is useful when the inspector should be rendered and tracked visually,
|
|
70
|
+
* but the surrounding application already manages bus events separately.
|
|
71
|
+
*
|
|
72
|
+
* **Only use this if you do not need to setup listeners.**
|
|
73
|
+
*/
|
|
74
|
+
mountSoft(): void;
|
|
75
|
+
/**
|
|
76
|
+
* Resets the inspector.
|
|
77
|
+
*/
|
|
78
|
+
reset(): void;
|
|
79
|
+
/**
|
|
80
|
+
* Resets the inspector using soft operations.
|
|
81
|
+
*/
|
|
82
|
+
resetSoft(): void;
|
|
83
|
+
/**
|
|
84
|
+
* Unmounts the inspector without cleaning up event bus listeners or state listeners.
|
|
85
|
+
*
|
|
86
|
+
* This preserves any active bus subscriptions when the visual overlay is
|
|
87
|
+
* temporarily removed.
|
|
88
|
+
*
|
|
89
|
+
* **Only use this if you still need the listeners after unmounting.**
|
|
90
|
+
*/
|
|
91
|
+
unmountSoft(): void;
|
|
92
|
+
#private;
|
|
93
|
+
}
|
|
94
|
+
type UISharedState = UISharedState$1;
|
|
95
|
+
type InspectorConfig = InspectorConfig$1;
|
|
96
|
+
type UISharedStateProps = UISharedStateProps$1;
|
|
97
|
+
//#endregion
|
|
44
98
|
export { CompatInspector, InspectorConfig, UISharedState, UISharedStateProps };
|