shinkom 1.1.0 → 1.1.2

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 (85) hide show
  1. package/README.md +0 -18
  2. package/dist/bundles/_virtual/_rolldown/runtime.js +14 -14
  3. package/dist/bundles/core/constants.d.ts +15 -15
  4. package/dist/bundles/core/constants.js +23 -23
  5. package/dist/bundles/core/elements/compat-view-element.d.ts +99 -99
  6. package/dist/bundles/core/elements/compat-view-element.js +440 -440
  7. package/dist/bundles/core/elements/control-panel-element.d.ts +44 -44
  8. package/dist/bundles/core/elements/control-panel-element.js +99 -99
  9. package/dist/bundles/core/elements/index.d.ts +12 -12
  10. package/dist/bundles/core/elements/index.js +13 -13
  11. package/dist/bundles/core/elements/inspector-element.d.ts +26 -26
  12. package/dist/bundles/core/elements/inspector-element.js +58 -58
  13. package/dist/bundles/core/elements/recent-result-item.js +46 -46
  14. package/dist/bundles/core/elements/results-history-item.js +46 -46
  15. package/dist/bundles/core/elements/templates/compat-view.templates.js +462 -462
  16. package/dist/bundles/core/elements/templates/control-panel.templates.js +335 -335
  17. package/dist/bundles/core/elements/templates/root-styles.template.js +40 -40
  18. package/dist/bundles/core/event-bus.d.ts +46 -46
  19. package/dist/bundles/core/event-bus.js +49 -49
  20. package/dist/bundles/core/helpers.js +47 -47
  21. package/dist/bundles/core/index.d.ts +14 -14
  22. package/dist/bundles/core/index.js +16 -16
  23. package/dist/bundles/core/state-service.d.ts +56 -56
  24. package/dist/bundles/core/state-service.js +91 -80
  25. package/dist/bundles/core/ui-component.d.ts +63 -63
  26. package/dist/bundles/core/ui-component.js +71 -71
  27. package/dist/bundles/engine/engine.d.ts +108 -108
  28. package/dist/bundles/engine/engine.js +238 -238
  29. package/dist/bundles/engine/index.js +8 -8
  30. package/dist/bundles/gen/index.js +14 -14
  31. package/dist/bundles/index.d.ts +19 -19
  32. package/dist/bundles/index.js +23 -23
  33. package/dist/bundles/pkg/shinkore.d.ts +40 -50
  34. package/dist/bundles/pkg/shinkore.js +465 -465
  35. package/dist/bundles/pkg/shinkore_bg.wasm +0 -0
  36. package/dist/bundles/shinkom.d.ts +41 -41
  37. package/dist/bundles/shinkom.js +80 -80
  38. package/dist/bundles/ui/compat-ui/compat-ui.d.ts +42 -42
  39. package/dist/bundles/ui/compat-ui/compat-ui.js +59 -59
  40. package/dist/bundles/ui/compat-ui/index.js +8 -8
  41. package/dist/bundles/ui/compatibility-view/compatibility-view.d.ts +41 -41
  42. package/dist/bundles/ui/compatibility-view/compatibility-view.js +229 -229
  43. package/dist/bundles/ui/compatibility-view/index.js +8 -8
  44. package/dist/bundles/ui/control-panel/control-panel.d.ts +52 -52
  45. package/dist/bundles/ui/control-panel/control-panel.js +320 -320
  46. package/dist/bundles/ui/control-panel/index.js +8 -8
  47. package/dist/bundles/ui/index.d.ts +11 -11
  48. package/dist/bundles/ui/index.js +16 -16
  49. package/dist/bundles/ui/inspector/index.js +8 -8
  50. package/dist/bundles/ui/inspector/inspector.d.ts +97 -97
  51. package/dist/bundles/ui/inspector/inspector.js +394 -394
  52. package/dist/modules/core/constants.cjs +17 -17
  53. package/dist/modules/core/elements/compat-view-element.cjs +434 -434
  54. package/dist/modules/core/elements/control-panel-element.cjs +93 -93
  55. package/dist/modules/core/elements/index.cjs +11 -11
  56. package/dist/modules/core/elements/inspector-element.cjs +52 -52
  57. package/dist/modules/core/elements/recent-result-item.cjs +39 -39
  58. package/dist/modules/core/elements/results-history-item.cjs +39 -39
  59. package/dist/modules/core/elements/templates/compat-view.templates.cjs +458 -458
  60. package/dist/modules/core/elements/templates/control-panel.templates.cjs +332 -332
  61. package/dist/modules/core/elements/templates/root-styles.template.cjs +33 -33
  62. package/dist/modules/core/event-bus.cjs +43 -43
  63. package/dist/modules/core/helpers.cjs +41 -41
  64. package/dist/modules/core/index.cjs +16 -16
  65. package/dist/modules/core/state-service.cjs +85 -74
  66. package/dist/modules/core/ui-component.cjs +65 -65
  67. package/dist/modules/engine/engine.cjs +232 -232
  68. package/dist/modules/gen/browser-data.cjs +100 -100
  69. package/dist/modules/gen/browser-usage-data.cjs +675 -675
  70. package/dist/modules/gen/compat-data.cjs +31015 -31015
  71. package/dist/modules/gen/index.cjs +7 -7
  72. package/dist/modules/index.cjs +27 -27
  73. package/dist/modules/pkg/shinkore.cjs +459 -459
  74. package/dist/modules/pkg/shinkore_bg.wasm +0 -0
  75. package/dist/modules/shinkom.cjs +73 -73
  76. package/dist/modules/ui/compat-ui/compat-ui.cjs +53 -53
  77. package/dist/modules/ui/compat-ui/index.cjs +1 -1
  78. package/dist/modules/ui/compatibility-view/compatibility-view.cjs +223 -223
  79. package/dist/modules/ui/compatibility-view/index.cjs +1 -1
  80. package/dist/modules/ui/control-panel/control-panel.cjs +314 -314
  81. package/dist/modules/ui/control-panel/index.cjs +1 -1
  82. package/dist/modules/ui/index.cjs +13 -13
  83. package/dist/modules/ui/inspector/index.cjs +1 -1
  84. package/dist/modules/ui/inspector/inspector.cjs +388 -388
  85. package/package.json +100 -100
@@ -1,40 +1,40 @@
1
- /**
2
- * Shinkom - core\elements\templates\root-styles
3
- * @version 1.1.0
4
- * @license MIT
5
- * @copyright 2026 - OneilNvM
6
- */
7
-
8
- //#region src/core/elements/templates/root-styles.template.js
9
- const hostStyles = `
10
- :host {
11
- --sk-primary: #050021;
12
- --sk-secondary: #1E0074;
13
- --sk-accent: #C9D1FF;
14
- --sk-hover-color: #03001a;
15
- --sk-background-variant-1: #191B1C;
16
- --sk-background-variant-2: #1E1E1E;
17
- --sk-background-variant-3: #0c0c0c;
18
-
19
- --sk-text-grey: #5f5f5f;
20
- --sk-results-blue-foreground: #3172ff;
21
- --sk-results-yellow-foreground: #ffe600;
22
- --sk-results-green-foreground: #40ff2f;
23
- --sk-results-red-foreground: #ff2b2b;
24
- --sk-indicator-green: #36ff46;
25
- --sk-indicator-yellow: #fafe09;
26
- --sk-indicator-red: #de291f;
27
- --sk-indicator-blue: #1b72e4;
28
-
29
- --sk-text-xs: 0.75rem;
30
- --sk-text-sm: 0.875rem;
31
- --sk-text-base: 1rem;
32
- --sk-text-md: 1.075rem;
33
- --sk-text-lg: 1.125rem;
34
- --sk-text-xl: 1.25rem;
35
- --sk-text-2xl: 1.5rem;
36
- --sk-text-3xl: 2rem;
37
- --sk-text-4xl: 3rem;
38
- }`;
39
- //#endregion
40
- export { hostStyles };
1
+ /**
2
+ * Shinkom - core\elements\templates\root-styles
3
+ * @version 1.1.2
4
+ * @license MIT
5
+ * @copyright 2026 - OneilNvM
6
+ */
7
+
8
+ //#region src/core/elements/templates/root-styles.template.js
9
+ const hostStyles = `
10
+ :host {
11
+ --sk-primary: #050021;
12
+ --sk-secondary: #1E0074;
13
+ --sk-accent: #C9D1FF;
14
+ --sk-hover-color: #03001a;
15
+ --sk-background-variant-1: #191B1C;
16
+ --sk-background-variant-2: #1E1E1E;
17
+ --sk-background-variant-3: #0c0c0c;
18
+
19
+ --sk-text-grey: #5f5f5f;
20
+ --sk-results-blue-foreground: #3172ff;
21
+ --sk-results-yellow-foreground: #ffe600;
22
+ --sk-results-green-foreground: #40ff2f;
23
+ --sk-results-red-foreground: #ff2b2b;
24
+ --sk-indicator-green: #36ff46;
25
+ --sk-indicator-yellow: #fafe09;
26
+ --sk-indicator-red: #de291f;
27
+ --sk-indicator-blue: #1b72e4;
28
+
29
+ --sk-text-xs: 0.75rem;
30
+ --sk-text-sm: 0.875rem;
31
+ --sk-text-base: 1rem;
32
+ --sk-text-md: 1.075rem;
33
+ --sk-text-lg: 1.125rem;
34
+ --sk-text-xl: 1.25rem;
35
+ --sk-text-2xl: 1.5rem;
36
+ --sk-text-3xl: 2rem;
37
+ --sk-text-4xl: 3rem;
38
+ }`;
39
+ //#endregion
40
+ export { hostStyles };
@@ -1,47 +1,47 @@
1
- /**
2
- * Shinkom - core
3
- * @version 1.1.0
4
- * @license MIT
5
- * @copyright 2026 - OneilNvM
6
- */
7
-
8
- import { ShinkomEventListener as ShinkomEventListener$1, ShinkomEventMap as ShinkomEventMap$1, ShinkomEventTarget as ShinkomEventTarget$1 } from "../types/types.js";
9
-
10
- //#region src/core/event-bus.d.ts
11
- /**@typedef {import("../types/types").ShinkomEventTarget} ShinkomEventTarget */
12
- /**@typedef {import("../types/types").ShinkomEventMap} ShinkomEventMap */
13
- /**@typedef {import("../types/types").ShinkomEventListener<keyof ShinkomEventMap>} ShinkomEventListener */
14
- /**
15
- * ShinkomBus is the application event bus used to coordinate cross-cutting
16
- * actions across Shinkom UI components and the engine.
17
- *
18
- * It wraps a standard `EventTarget` and exposes a small typed API for
19
- * emitting custom events and subscribing to them with cleanup support.
20
- */
21
- declare class ShinkomBus {
22
- /**
23
- * Emits an event to the event bus.
24
- *
25
- * @param {string} event
26
- * @param {object | undefined} detail
27
- */
28
- emit(event: string, detail?: object | undefined): void;
29
- /**
30
- * Registers a listener on the event bus.
31
- *
32
- * The returned cleanup function removes the listener so callers can stop
33
- * receiving events and avoid leaking handlers when the listener is no
34
- * longer needed.
35
- *
36
- * @param {keyof ShinkomEventMap} eventName
37
- * @param {Function} cb
38
- * @returns {() => void} cleanup function
39
- */
40
- on(eventName: keyof ShinkomEventMap, cb: Function): () => void;
41
- #private;
42
- }
43
- type ShinkomEventTarget = ShinkomEventTarget$1;
44
- type ShinkomEventMap = ShinkomEventMap$1;
45
- type ShinkomEventListener = ShinkomEventListener$1<keyof ShinkomEventMap>;
46
- //#endregion
1
+ /**
2
+ * Shinkom - core
3
+ * @version 1.1.2
4
+ * @license MIT
5
+ * @copyright 2026 - OneilNvM
6
+ */
7
+
8
+ import { ShinkomEventListener as ShinkomEventListener$1, ShinkomEventMap as ShinkomEventMap$1, ShinkomEventTarget as ShinkomEventTarget$1 } from "../types/types.js";
9
+
10
+ //#region src/core/event-bus.d.ts
11
+ /**@typedef {import("../types/types").ShinkomEventTarget} ShinkomEventTarget */
12
+ /**@typedef {import("../types/types").ShinkomEventMap} ShinkomEventMap */
13
+ /**@typedef {import("../types/types").ShinkomEventListener<keyof ShinkomEventMap>} ShinkomEventListener */
14
+ /**
15
+ * ShinkomBus is the application event bus used to coordinate cross-cutting
16
+ * actions across Shinkom UI components and the engine.
17
+ *
18
+ * It wraps a standard `EventTarget` and exposes a small typed API for
19
+ * emitting custom events and subscribing to them with cleanup support.
20
+ */
21
+ declare class ShinkomBus {
22
+ /**
23
+ * Emits an event to the event bus.
24
+ *
25
+ * @param {string} event
26
+ * @param {object | undefined} detail
27
+ */
28
+ emit(event: string, detail?: object | undefined): void;
29
+ /**
30
+ * Registers a listener on the event bus.
31
+ *
32
+ * The returned cleanup function removes the listener so callers can stop
33
+ * receiving events and avoid leaking handlers when the listener is no
34
+ * longer needed.
35
+ *
36
+ * @param {keyof ShinkomEventMap} eventName
37
+ * @param {Function} cb
38
+ * @returns {() => void} cleanup function
39
+ */
40
+ on(eventName: keyof ShinkomEventMap, cb: Function): () => void;
41
+ #private;
42
+ }
43
+ type ShinkomEventTarget = ShinkomEventTarget$1;
44
+ type ShinkomEventMap = ShinkomEventMap$1;
45
+ type ShinkomEventListener = ShinkomEventListener$1<keyof ShinkomEventMap>;
46
+ //#endregion
47
47
  export { ShinkomBus, ShinkomEventListener, ShinkomEventMap, ShinkomEventTarget };
@@ -1,49 +1,49 @@
1
- /**
2
- * Shinkom - core
3
- * @version 1.1.0
4
- * @license MIT
5
- * @copyright 2026 - OneilNvM
6
- */
7
-
8
- //#region src/core/event-bus.js
9
- /**@typedef {import("../types/types").ShinkomEventTarget} ShinkomEventTarget */
10
- /**@typedef {import("../types/types").ShinkomEventMap} ShinkomEventMap */
11
- /**@typedef {import("../types/types").ShinkomEventListener<keyof ShinkomEventMap>} ShinkomEventListener */
12
- /**
13
- * ShinkomBus is the application event bus used to coordinate cross-cutting
14
- * actions across Shinkom UI components and the engine.
15
- *
16
- * It wraps a standard `EventTarget` and exposes a small typed API for
17
- * emitting custom events and subscribing to them with cleanup support.
18
- */
19
- var ShinkomBus = class {
20
- #customEventTarget = new EventTarget();
21
- /**
22
- * Emits an event to the event bus.
23
- *
24
- * @param {string} event
25
- * @param {object | undefined} detail
26
- */
27
- emit(event, detail = void 0) {
28
- this.#customEventTarget.dispatchEvent(new CustomEvent(event, detail));
29
- }
30
- /**
31
- * Registers a listener on the event bus.
32
- *
33
- * The returned cleanup function removes the listener so callers can stop
34
- * receiving events and avoid leaking handlers when the listener is no
35
- * longer needed.
36
- *
37
- * @param {keyof ShinkomEventMap} eventName
38
- * @param {Function} cb
39
- * @returns {() => void} cleanup function
40
- */
41
- on(eventName, cb) {
42
- /**@type {ShinkomEventListener} */
43
- const wrapper = (e) => cb(e.detail);
44
- this.#customEventTarget.addEventListener(eventName, wrapper);
45
- return () => this.#customEventTarget.removeEventListener(eventName, wrapper);
46
- }
47
- };
48
- //#endregion
49
- export { ShinkomBus };
1
+ /**
2
+ * Shinkom - core
3
+ * @version 1.1.2
4
+ * @license MIT
5
+ * @copyright 2026 - OneilNvM
6
+ */
7
+
8
+ //#region src/core/event-bus.js
9
+ /**@typedef {import("../types/types").ShinkomEventTarget} ShinkomEventTarget */
10
+ /**@typedef {import("../types/types").ShinkomEventMap} ShinkomEventMap */
11
+ /**@typedef {import("../types/types").ShinkomEventListener<keyof ShinkomEventMap>} ShinkomEventListener */
12
+ /**
13
+ * ShinkomBus is the application event bus used to coordinate cross-cutting
14
+ * actions across Shinkom UI components and the engine.
15
+ *
16
+ * It wraps a standard `EventTarget` and exposes a small typed API for
17
+ * emitting custom events and subscribing to them with cleanup support.
18
+ */
19
+ var ShinkomBus = class {
20
+ #customEventTarget = new EventTarget();
21
+ /**
22
+ * Emits an event to the event bus.
23
+ *
24
+ * @param {string} event
25
+ * @param {object | undefined} detail
26
+ */
27
+ emit(event, detail = void 0) {
28
+ this.#customEventTarget.dispatchEvent(new CustomEvent(event, detail));
29
+ }
30
+ /**
31
+ * Registers a listener on the event bus.
32
+ *
33
+ * The returned cleanup function removes the listener so callers can stop
34
+ * receiving events and avoid leaking handlers when the listener is no
35
+ * longer needed.
36
+ *
37
+ * @param {keyof ShinkomEventMap} eventName
38
+ * @param {Function} cb
39
+ * @returns {() => void} cleanup function
40
+ */
41
+ on(eventName, cb) {
42
+ /**@type {ShinkomEventListener} */
43
+ const wrapper = (e) => cb(e.detail);
44
+ this.#customEventTarget.addEventListener(eventName, wrapper);
45
+ return () => this.#customEventTarget.removeEventListener(eventName, wrapper);
46
+ }
47
+ };
48
+ //#endregion
49
+ export { ShinkomBus };
@@ -1,47 +1,47 @@
1
- /**
2
- * Shinkom - core\helpers
3
- * @version 1.1.0
4
- * @license MIT
5
- * @copyright 2026 - OneilNvM
6
- */
7
-
8
- import { __require } from "../_virtual/_rolldown/runtime.js";
9
- //#region src/core/helpers.js
10
- /**
11
- * Get the resolved module path as a string or URL.
12
- * @param {string} modulePath
13
- * @returns {Promise<string | URL>} module path
14
- */
15
- const getModulePath = async (modulePath) => {
16
- const path = await import("node:url");
17
- const module = await import("node:module");
18
- try {
19
- return module.createRequire(import.meta.url).resolve(modulePath);
20
- } catch (_error) {
21
- return path.pathToFileURL(__require.resolve(modulePath));
22
- }
23
- };
24
- /**
25
- * Splits a version string into parts.
26
- * @param {string} version
27
- * @returns {number[]} version number in parts
28
- */
29
- function versionToParts(version) {
30
- return version.replace(/^v/, "").split(".").map(Number);
31
- }
32
- /**
33
- * Creates a CSSStyleSheet and applies styles to it.
34
- * @param {CSSStyleSheet | null} cache
35
- * @param {string} styles
36
- * @returns {CSSStyleSheet | null} A CSS stylesheet
37
- */
38
- function getStyleSheet(cache, styles) {
39
- if (typeof window === "undefined") return null;
40
- if (!cache) {
41
- cache = new CSSStyleSheet();
42
- cache.replaceSync(styles);
43
- }
44
- return cache;
45
- }
46
- //#endregion
47
- export { getModulePath, getStyleSheet, versionToParts };
1
+ /**
2
+ * Shinkom - core\helpers
3
+ * @version 1.1.2
4
+ * @license MIT
5
+ * @copyright 2026 - OneilNvM
6
+ */
7
+
8
+ import { __require } from "../_virtual/_rolldown/runtime.js";
9
+ //#region src/core/helpers.js
10
+ /**
11
+ * Get the resolved module path as a string or URL.
12
+ * @param {string} modulePath
13
+ * @returns {Promise<string | URL>} module path
14
+ */
15
+ const getModulePath = async (modulePath) => {
16
+ const path = await import("node:url");
17
+ const module = await import("node:module");
18
+ try {
19
+ return module.createRequire(import.meta.url).resolve(modulePath);
20
+ } catch (_error) {
21
+ return path.pathToFileURL(__require.resolve(modulePath));
22
+ }
23
+ };
24
+ /**
25
+ * Splits a version string into parts.
26
+ * @param {string} version
27
+ * @returns {number[]} version number in parts
28
+ */
29
+ function versionToParts(version) {
30
+ return version.replace(/^v/, "").split(".").map(Number);
31
+ }
32
+ /**
33
+ * Creates a CSSStyleSheet and applies styles to it.
34
+ * @param {CSSStyleSheet | null} cache
35
+ * @param {string} styles
36
+ * @returns {CSSStyleSheet | null} A CSS stylesheet
37
+ */
38
+ function getStyleSheet(cache, styles) {
39
+ if (typeof window === "undefined") return null;
40
+ if (!cache) {
41
+ cache = new CSSStyleSheet();
42
+ cache.replaceSync(styles);
43
+ }
44
+ return cache;
45
+ }
46
+ //#endregion
47
+ export { getModulePath, getStyleSheet, versionToParts };
@@ -1,15 +1,15 @@
1
- /**
2
- * Shinkom - core
3
- * @version 1.1.0
4
- * @license MIT
5
- * @copyright 2026 - OneilNvM
6
- */
7
-
8
- import { ShinkomBus } from "./event-bus.js";
9
- import { DEFAULT_STATE } from "./constants.js";
10
- import { ShinkomState } from "./state-service.js";
11
- import { UIComponent } from "./ui-component.js";
12
- import { CompatViewElement } from "./elements/compat-view-element.js";
13
- import { CompatControlPanelElement } from "./elements/control-panel-element.js";
14
- import { CompatInspectorElement } from "./elements/inspector-element.js";
1
+ /**
2
+ * Shinkom - core
3
+ * @version 1.1.2
4
+ * @license MIT
5
+ * @copyright 2026 - OneilNvM
6
+ */
7
+
8
+ import { ShinkomBus } from "./event-bus.js";
9
+ import { DEFAULT_STATE } from "./constants.js";
10
+ import { ShinkomState } from "./state-service.js";
11
+ import { UIComponent } from "./ui-component.js";
12
+ import { CompatViewElement } from "./elements/compat-view-element.js";
13
+ import { CompatControlPanelElement } from "./elements/control-panel-element.js";
14
+ import { CompatInspectorElement } from "./elements/inspector-element.js";
15
15
  export { CompatControlPanelElement, CompatInspectorElement, CompatViewElement, DEFAULT_STATE, ShinkomBus, ShinkomState, UIComponent };
@@ -1,16 +1,16 @@
1
- /**
2
- * Shinkom - core
3
- * @version 1.1.0
4
- * @license MIT
5
- * @copyright 2026 - OneilNvM
6
- */
7
-
8
- import { ShinkomBus } from "./event-bus.js";
9
- import { DEFAULT_STATE } from "./constants.js";
10
- import { ShinkomState } from "./state-service.js";
11
- import { UIComponent } from "./ui-component.js";
12
- import { CompatViewElement } from "./elements/compat-view-element.js";
13
- import { CompatControlPanelElement } from "./elements/control-panel-element.js";
14
- import { CompatInspectorElement } from "./elements/inspector-element.js";
15
- import "./elements/index.js";
16
- export { CompatControlPanelElement, CompatInspectorElement, CompatViewElement, DEFAULT_STATE, ShinkomBus, ShinkomState, UIComponent };
1
+ /**
2
+ * Shinkom - core
3
+ * @version 1.1.2
4
+ * @license MIT
5
+ * @copyright 2026 - OneilNvM
6
+ */
7
+
8
+ import { ShinkomBus } from "./event-bus.js";
9
+ import { DEFAULT_STATE } from "./constants.js";
10
+ import { ShinkomState } from "./state-service.js";
11
+ import { UIComponent } from "./ui-component.js";
12
+ import { CompatViewElement } from "./elements/compat-view-element.js";
13
+ import { CompatControlPanelElement } from "./elements/control-panel-element.js";
14
+ import { CompatInspectorElement } from "./elements/inspector-element.js";
15
+ import "./elements/index.js";
16
+ export { CompatControlPanelElement, CompatInspectorElement, CompatViewElement, DEFAULT_STATE, ShinkomBus, ShinkomState, UIComponent };
@@ -1,57 +1,57 @@
1
- /**
2
- * Shinkom - core
3
- * @version 1.1.0
4
- * @license MIT
5
- * @copyright 2026 - OneilNvM
6
- */
7
-
8
- import { UISharedState as UISharedState$1, UISharedStateProps as UISharedStateProps$1 } from "../types/public.js";
9
-
10
- //#region src/core/state-service.d.ts
11
- /**
12
- * ShinkomState provides shared UI state management for the application.
13
- *
14
- * It wraps a proxied state object and notifies subscribed listeners whenever
15
- * a state property changes. Components can subscribe to update events and
16
- * access the reactive state through `getState()`.
17
- */
18
- declare class ShinkomState {
19
- /**
20
- * Initializes the shared state service.
21
- *
22
- * The returned state object is proxied so that property assignments
23
- * automatically notify listeners when values change.
24
- *
25
- * @param {UISharedState} initalState
26
- */
27
- constructor(initalState?: UISharedState);
28
- /**
29
- * @callback Listener
30
- * @param {UISharedStateProps} prop
31
- * @param {any} val
32
- */
33
- /**
34
- * Subscribes a listener to state change notifications.
35
- *
36
- * When any property on the shared state changes, the callback receives the
37
- * changed property and its new value.
38
- *
39
- * @param {Listener} callback
40
- * @returns {() => void} cleanup function
41
- */
42
- subscribe(callback: (prop: UISharedStateProps, val: any) => any): () => void;
43
- /**
44
- * Returns the proxied shared state object.
45
- *
46
- * Callers can read and write state properties directly, and writes will
47
- * trigger listener notifications when values change.
48
- *
49
- * @returns {UISharedState}
50
- */
51
- getState: () => UISharedState;
52
- #private;
53
- }
54
- type UISharedState = UISharedState$1;
55
- type UISharedStateProps = UISharedStateProps$1;
56
- //#endregion
1
+ /**
2
+ * Shinkom - core
3
+ * @version 1.1.2
4
+ * @license MIT
5
+ * @copyright 2026 - OneilNvM
6
+ */
7
+
8
+ import { UISharedState as UISharedState$1, UISharedStateProps as UISharedStateProps$1 } from "../types/public.js";
9
+
10
+ //#region src/core/state-service.d.ts
11
+ /**
12
+ * ShinkomState provides shared UI state management for the application.
13
+ *
14
+ * It wraps a proxied state object and notifies subscribed listeners whenever
15
+ * a state property changes. Components can subscribe to update events and
16
+ * access the reactive state through `getState()`.
17
+ */
18
+ declare class ShinkomState {
19
+ /**
20
+ * Initializes the shared state service.
21
+ *
22
+ * The returned state object is proxied so that property assignments
23
+ * automatically notify listeners when values change.
24
+ *
25
+ * @param {UISharedState} initalState
26
+ */
27
+ constructor(initalState?: UISharedState);
28
+ /**
29
+ * @callback Listener
30
+ * @param {UISharedStateProps} prop
31
+ * @param {any} val
32
+ */
33
+ /**
34
+ * Subscribes a listener to state change notifications.
35
+ *
36
+ * When any property on the shared state changes, the callback receives the
37
+ * changed property and its new value.
38
+ *
39
+ * @param {Listener} callback
40
+ * @returns {() => void} cleanup function
41
+ */
42
+ subscribe(callback: (prop: UISharedStateProps, val: any) => any): () => void;
43
+ /**
44
+ * Returns the proxied shared state object.
45
+ *
46
+ * Callers can read and write state properties directly, and writes will
47
+ * trigger listener notifications when values change.
48
+ *
49
+ * @returns {UISharedState}
50
+ */
51
+ getState: () => UISharedState;
52
+ #private;
53
+ }
54
+ type UISharedState = UISharedState$1;
55
+ type UISharedStateProps = UISharedStateProps$1;
56
+ //#endregion
57
57
  export { ShinkomState, UISharedState, UISharedStateProps };