shinkom 1.1.1 → 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.
- package/README.md +0 -18
- 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 +8 -18
- package/dist/bundles/pkg/shinkore.js +202 -202
- 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 +201 -201
- package/dist/modules/pkg/shinkore_bg.wasm +0 -0
- package/package.json +100 -100
package/README.md
CHANGED
|
@@ -342,24 +342,6 @@ run()
|
|
|
342
342
|
|
|
343
343
|
---
|
|
344
344
|
|
|
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
345
|
## Development Scripts
|
|
364
346
|
|
|
365
347
|
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.1.
|
|
3
|
+
* @version 1.1.2
|
|
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.1.
|
|
25
|
+
const _macroVersion = "1.1.2";
|
|
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.1.
|
|
3
|
+
* @version 1.1.2
|
|
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.1.
|
|
12
|
+
const _macroVersion = "1.1.2";
|
|
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.1.
|
|
3
|
+
* @version 1.1.2
|
|
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,31 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shinkom - pkg
|
|
3
|
-
* @version 1.1.
|
|
3
|
+
* @version 1.1.2
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @copyright 2026 - OneilNvM
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
//#region pkg/shinkore.d.ts
|
|
9
|
+
/* tslint:disable */
|
|
10
|
+
/* eslint-disable */
|
|
9
11
|
/**
|
|
10
12
|
* The [`CompatEngine`] struct stores the compatibility data
|
|
11
13
|
* and acts as an entry-point for the Rust/WASM engine.
|
|
12
14
|
*/
|
|
13
15
|
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
16
|
free(): void;
|
|
17
|
+
[Symbol.dispose](): void;
|
|
25
18
|
/**
|
|
26
19
|
* Used for checking the compatibility of a single element and its attributes.
|
|
27
|
-
* @param {string} html
|
|
28
|
-
* @returns {any}
|
|
29
20
|
*/
|
|
30
21
|
check_element(html: string): any;
|
|
31
22
|
/**
|
|
@@ -35,17 +26,16 @@ declare class CompatEngine {
|
|
|
35
26
|
* returning element tags.
|
|
36
27
|
*
|
|
37
28
|
* 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
29
|
*/
|
|
42
30
|
check_elements(html: string, depth_level: number): any;
|
|
43
31
|
/**
|
|
44
32
|
* Used for performing a full page compatibility check.
|
|
45
|
-
* @param {string} html
|
|
46
|
-
* @returns {any}
|
|
47
33
|
*/
|
|
48
34
|
full_inspect(html: string): any;
|
|
35
|
+
/**
|
|
36
|
+
* Constructs an new engine instance
|
|
37
|
+
*/
|
|
38
|
+
constructor(bcd_html_data: any, bcd_svg_data: any, bcd_browser_data: any, ciu_usage_data: any);
|
|
49
39
|
}
|
|
50
40
|
//#endregion
|
|
51
41
|
export { CompatEngine };
|