shinkom 1.1.1 → 1.2.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/README.md +0 -20
- package/dist/bundles/_virtual/_rolldown/runtime.js +1 -1
- package/dist/bundles/core/constants.d.ts +1 -1
- package/dist/bundles/core/constants.js +1 -1
- package/dist/bundles/core/elements/compat-view-element.d.ts +1 -1
- package/dist/bundles/core/elements/compat-view-element.js +2 -2
- package/dist/bundles/core/elements/control-panel-element.d.ts +1 -1
- package/dist/bundles/core/elements/control-panel-element.js +1 -1
- package/dist/bundles/core/elements/index.d.ts +1 -1
- package/dist/bundles/core/elements/index.js +1 -1
- package/dist/bundles/core/elements/inspector-element.d.ts +1 -1
- package/dist/bundles/core/elements/inspector-element.js +1 -1
- package/dist/bundles/core/elements/recent-result-item.js +1 -1
- package/dist/bundles/core/elements/results-history-item.js +1 -1
- package/dist/bundles/core/elements/templates/compat-view.templates.js +2 -2
- package/dist/bundles/core/elements/templates/control-panel.templates.js +1 -1
- package/dist/bundles/core/elements/templates/root-styles.template.js +1 -1
- package/dist/bundles/core/event-bus.d.ts +1 -1
- package/dist/bundles/core/event-bus.js +1 -1
- package/dist/bundles/core/helpers.js +1 -1
- package/dist/bundles/core/index.d.ts +1 -1
- package/dist/bundles/core/index.js +1 -1
- package/dist/bundles/core/state-service.d.ts +1 -1
- package/dist/bundles/core/state-service.js +12 -1
- package/dist/bundles/core/ui-component.d.ts +1 -1
- package/dist/bundles/core/ui-component.js +1 -1
- package/dist/bundles/engine/engine.d.ts +1 -1
- package/dist/bundles/engine/engine.js +1 -1
- package/dist/bundles/engine/index.js +1 -1
- package/dist/bundles/gen/index.js +1 -1
- package/dist/bundles/index.d.ts +1 -1
- package/dist/bundles/index.js +1 -1
- package/dist/bundles/pkg/shinkore.d.ts +3 -3
- package/dist/bundles/pkg/shinkore.js +207 -205
- package/dist/bundles/pkg/shinkore_bg.wasm +0 -0
- package/dist/bundles/shinkom.d.ts +1 -1
- package/dist/bundles/shinkom.js +1 -1
- package/dist/bundles/ui/compat-ui/compat-ui.d.ts +1 -1
- package/dist/bundles/ui/compat-ui/compat-ui.js +1 -1
- package/dist/bundles/ui/compat-ui/index.js +1 -1
- package/dist/bundles/ui/compatibility-view/compatibility-view.d.ts +1 -1
- package/dist/bundles/ui/compatibility-view/compatibility-view.js +1 -1
- package/dist/bundles/ui/compatibility-view/index.js +1 -1
- package/dist/bundles/ui/control-panel/control-panel.d.ts +1 -1
- package/dist/bundles/ui/control-panel/control-panel.js +1 -1
- package/dist/bundles/ui/control-panel/index.js +1 -1
- package/dist/bundles/ui/index.d.ts +1 -1
- package/dist/bundles/ui/index.js +1 -1
- package/dist/bundles/ui/inspector/index.js +1 -1
- package/dist/bundles/ui/inspector/inspector.d.ts +1 -1
- package/dist/bundles/ui/inspector/inspector.js +1 -1
- package/dist/modules/core/elements/compat-view-element.cjs +1 -1
- package/dist/modules/core/elements/templates/compat-view.templates.cjs +1 -1
- package/dist/modules/core/state-service.cjs +11 -0
- package/dist/modules/pkg/shinkore.cjs +206 -204
- package/dist/modules/pkg/shinkore_bg.wasm +0 -0
- package/package.json +100 -100
package/README.md
CHANGED
|
@@ -148,8 +148,6 @@ then consider contributing by creating a **pull request** on the **dev** branch
|
|
|
148
148
|
|
|
149
149
|
### Basic
|
|
150
150
|
|
|
151
|
-
https://github.com/user-attachments/assets/fc0dda8d-1f1b-44cf-bcbe-db7a5f4c76c9
|
|
152
|
-
|
|
153
151
|
The simplest and **recommended** way to utilize Shinkom is through the main entry-point.
|
|
154
152
|
|
|
155
153
|
```javascript
|
|
@@ -342,24 +340,6 @@ run()
|
|
|
342
340
|
|
|
343
341
|
---
|
|
344
342
|
|
|
345
|
-
## Contributing
|
|
346
|
-
|
|
347
|
-
In order to contribute to this project, there are a few prerequisites before doing so:
|
|
348
|
-
|
|
349
|
-
- Install the latest stable version of Rust on the [official Rust website](https://rust-lang.org/learn/get-started/)
|
|
350
|
-
- Install `wasm-pack` via this command:
|
|
351
|
-
|
|
352
|
-
```bash
|
|
353
|
-
cargo install wasm-pack
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
After that, make sure to run `npm i` to install project dependencies, create a branch **from the dev branch**, add your code,
|
|
357
|
-
and **create a pull request to the dev branch**.
|
|
358
|
-
|
|
359
|
-
After review and approval of the pull request, we can introduce your changes to the dev branch and eventually to the main branch.
|
|
360
|
-
|
|
361
|
-
---
|
|
362
|
-
|
|
363
343
|
## Development Scripts
|
|
364
344
|
|
|
365
345
|
When cloning or forking this library, refer to this table in regards to the NPM scripts:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shinkom - elements
|
|
3
|
-
* @version 1.
|
|
3
|
+
* @version 1.2.0
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - OneilNvM
|
|
6
6
|
*/
|
|
@@ -22,7 +22,7 @@ let cachedTransitions = null;
|
|
|
22
22
|
/**
|
|
23
23
|
* @type {string}
|
|
24
24
|
*/
|
|
25
|
-
const _macroVersion = "1.
|
|
25
|
+
const _macroVersion = "1.2.0";
|
|
26
26
|
/**
|
|
27
27
|
* A custom element for the `CompatView` UI component.
|
|
28
28
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shinkom - core\elements\templates\compat-view
|
|
3
|
-
* @version 1.
|
|
3
|
+
* @version 1.2.0
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - OneilNvM
|
|
6
6
|
*/
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
/**
|
|
10
10
|
* @type {string}
|
|
11
11
|
*/
|
|
12
|
-
const _macroVersion = "1.
|
|
12
|
+
const _macroVersion = "1.2.0";
|
|
13
13
|
const compatViewHTML = `
|
|
14
14
|
<button id="sk-toggle-compat-view" class="sk-toggle-compat-view sk-button-style">
|
|
15
15
|
<svg style="pointer-events: none;" version="1.0" xmlns="http://www.w3.org/2000/svg" width="57" height="26"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shinkom - core
|
|
3
|
-
* @version 1.
|
|
3
|
+
* @version 1.2.0
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - OneilNvM
|
|
6
6
|
*/
|
|
@@ -34,9 +34,20 @@ var ShinkomState = class {
|
|
|
34
34
|
this.#listeners.forEach((fn) => fn(prop, val));
|
|
35
35
|
};
|
|
36
36
|
this.#state = new Proxy(initalState, {
|
|
37
|
+
/**
|
|
38
|
+
* @param {UISharedState} obj
|
|
39
|
+
* @param {UISharedStateProps} prop
|
|
40
|
+
* @returns {any}
|
|
41
|
+
*/
|
|
37
42
|
get(obj, prop) {
|
|
38
43
|
return obj[prop];
|
|
39
44
|
},
|
|
45
|
+
/**
|
|
46
|
+
* @param {UISharedState} obj
|
|
47
|
+
* @param {UISharedStateProps} prop
|
|
48
|
+
* @param {any} val
|
|
49
|
+
* @returns {boolean}
|
|
50
|
+
*/
|
|
40
51
|
set(obj, prop, val) {
|
|
41
52
|
if (obj[prop] === val) return true;
|
|
42
53
|
notify(prop, val);
|
package/dist/bundles/index.d.ts
CHANGED
package/dist/bundles/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shinkom - pkg
|
|
3
|
-
* @version 1.
|
|
3
|
+
* @version 1.2.0
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - OneilNvM
|
|
6
6
|
*/
|
|
@@ -19,8 +19,8 @@ declare class CompatEngine {
|
|
|
19
19
|
* @param {any} ciu_usage_data
|
|
20
20
|
*/
|
|
21
21
|
constructor(bcd_html_data: any, bcd_svg_data: any, bcd_browser_data: any, ciu_usage_data: any);
|
|
22
|
-
__destroy_into_raw():
|
|
23
|
-
__wbg_ptr:
|
|
22
|
+
__destroy_into_raw(): any;
|
|
23
|
+
__wbg_ptr: any;
|
|
24
24
|
free(): void;
|
|
25
25
|
/**
|
|
26
26
|
* Used for checking the compatibility of a single element and its attributes.
|