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
|
@@ -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
|
*/
|
|
@@ -71,222 +71,225 @@ var CompatEngine = class {
|
|
|
71
71
|
* @param {any} ciu_usage_data
|
|
72
72
|
*/
|
|
73
73
|
constructor(bcd_html_data, bcd_svg_data, bcd_browser_data, ciu_usage_data) {
|
|
74
|
-
|
|
74
|
+
const ret = wasm.compatengine_new(bcd_html_data, bcd_svg_data, bcd_browser_data, ciu_usage_data);
|
|
75
|
+
this.__wbg_ptr = ret;
|
|
75
76
|
CompatEngineFinalization.register(this, this.__wbg_ptr, this);
|
|
76
77
|
return this;
|
|
77
78
|
}
|
|
78
79
|
};
|
|
79
80
|
if (Symbol.dispose) CompatEngine.prototype[Symbol.dispose] = CompatEngine.prototype.free;
|
|
80
81
|
function __wbg_get_imports() {
|
|
81
|
-
|
|
82
|
+
return {
|
|
82
83
|
__proto__: null,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
result
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
result
|
|
192
|
-
|
|
193
|
-
|
|
84
|
+
"./shinkore_bg.js": {
|
|
85
|
+
__proto__: null,
|
|
86
|
+
__wbg_Error_9dc85fe1bc224456: function(arg0, arg1) {
|
|
87
|
+
return Error(getStringFromWasm0(arg0, arg1));
|
|
88
|
+
},
|
|
89
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
90
|
+
const ptr1 = passStringToWasm0(String(arg1), wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
91
|
+
const len1 = WASM_VECTOR_LEN;
|
|
92
|
+
getDataViewMemory0().setInt32(arg0 + 4, len1, true);
|
|
93
|
+
getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
|
|
94
|
+
},
|
|
95
|
+
__wbg___wbindgen_bigint_get_as_i64_8ea6736501f396b6: function(arg0, arg1) {
|
|
96
|
+
const v = arg1;
|
|
97
|
+
const ret = typeof v === "bigint" ? v : void 0;
|
|
98
|
+
getDataViewMemory0().setBigInt64(arg0 + 8, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
99
|
+
getDataViewMemory0().setInt32(arg0 + 0, !isLikeNone(ret), true);
|
|
100
|
+
},
|
|
101
|
+
__wbg___wbindgen_boolean_get_b131b2f36d6b2f55: function(arg0) {
|
|
102
|
+
const v = arg0;
|
|
103
|
+
const ret = typeof v === "boolean" ? v : void 0;
|
|
104
|
+
return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
|
|
105
|
+
},
|
|
106
|
+
__wbg___wbindgen_debug_string_56c147eb1a51f0c4: function(arg0, arg1) {
|
|
107
|
+
const ptr1 = passStringToWasm0(debugString(arg1), wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
108
|
+
const len1 = WASM_VECTOR_LEN;
|
|
109
|
+
getDataViewMemory0().setInt32(arg0 + 4, len1, true);
|
|
110
|
+
getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
|
|
111
|
+
},
|
|
112
|
+
__wbg___wbindgen_in_ce8569b2fc6f5088: function(arg0, arg1) {
|
|
113
|
+
return arg0 in arg1;
|
|
114
|
+
},
|
|
115
|
+
__wbg___wbindgen_is_bigint_df272c65456269c2: function(arg0) {
|
|
116
|
+
return typeof arg0 === "bigint";
|
|
117
|
+
},
|
|
118
|
+
__wbg___wbindgen_is_function_147961669f068cd4: function(arg0) {
|
|
119
|
+
return typeof arg0 === "function";
|
|
120
|
+
},
|
|
121
|
+
__wbg___wbindgen_is_object_3a2c414391dbf751: function(arg0) {
|
|
122
|
+
const val = arg0;
|
|
123
|
+
return typeof val === "object" && val !== null;
|
|
124
|
+
},
|
|
125
|
+
__wbg___wbindgen_is_string_6541b0f6ecd4e8e5: function(arg0) {
|
|
126
|
+
return typeof arg0 === "string";
|
|
127
|
+
},
|
|
128
|
+
__wbg___wbindgen_is_undefined_4410e3c20a99fa97: function(arg0) {
|
|
129
|
+
return arg0 === void 0;
|
|
130
|
+
},
|
|
131
|
+
__wbg___wbindgen_jsval_eq_174c93ec61bab0c5: function(arg0, arg1) {
|
|
132
|
+
return arg0 === arg1;
|
|
133
|
+
},
|
|
134
|
+
__wbg___wbindgen_jsval_loose_eq_e07e3b1f5db6da6c: function(arg0, arg1) {
|
|
135
|
+
return arg0 == arg1;
|
|
136
|
+
},
|
|
137
|
+
__wbg___wbindgen_number_get_588ed6b97f0d7e14: function(arg0, arg1) {
|
|
138
|
+
const obj = arg1;
|
|
139
|
+
const ret = typeof obj === "number" ? obj : void 0;
|
|
140
|
+
getDataViewMemory0().setFloat64(arg0 + 8, isLikeNone(ret) ? 0 : ret, true);
|
|
141
|
+
getDataViewMemory0().setInt32(arg0 + 0, !isLikeNone(ret), true);
|
|
142
|
+
},
|
|
143
|
+
__wbg___wbindgen_string_get_fa2687d531ed17a5: function(arg0, arg1) {
|
|
144
|
+
const obj = arg1;
|
|
145
|
+
const ret = typeof obj === "string" ? obj : void 0;
|
|
146
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
147
|
+
var len1 = WASM_VECTOR_LEN;
|
|
148
|
+
getDataViewMemory0().setInt32(arg0 + 4, len1, true);
|
|
149
|
+
getDataViewMemory0().setInt32(arg0 + 0, ptr1, true);
|
|
150
|
+
},
|
|
151
|
+
__wbg___wbindgen_throw_bbadd78c1bac3a77: function(arg0, arg1) {
|
|
152
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
153
|
+
},
|
|
154
|
+
__wbg_call_91f00ddc43e01490: function() {
|
|
155
|
+
return handleError(function(arg0, arg1) {
|
|
156
|
+
return arg0.call(arg1);
|
|
157
|
+
}, arguments);
|
|
158
|
+
},
|
|
159
|
+
__wbg_done_6a8439e544ec6206: function(arg0) {
|
|
160
|
+
return arg0.done;
|
|
161
|
+
},
|
|
162
|
+
__wbg_entries_5a6a7e7e0df09fe5: function(arg0) {
|
|
163
|
+
return Object.entries(arg0);
|
|
164
|
+
},
|
|
165
|
+
__wbg_error_6651fee1c71e5da9: function(arg0) {
|
|
166
|
+
console.error(arg0);
|
|
167
|
+
},
|
|
168
|
+
__wbg_get_44e98e27bda25b5b: function() {
|
|
169
|
+
return handleError(function(arg0, arg1) {
|
|
170
|
+
return Reflect.get(arg0, arg1);
|
|
171
|
+
}, arguments);
|
|
172
|
+
},
|
|
173
|
+
__wbg_get_4b90d6d8c5deb5d5: function(arg0, arg1) {
|
|
174
|
+
return arg0[arg1 >>> 0];
|
|
175
|
+
},
|
|
176
|
+
__wbg_get_unchecked_46e778e3cec74b5e: function(arg0, arg1) {
|
|
177
|
+
return arg0[arg1 >>> 0];
|
|
178
|
+
},
|
|
179
|
+
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
180
|
+
return arg0[arg1];
|
|
181
|
+
},
|
|
182
|
+
__wbg_instanceof_ArrayBuffer_a581da923203f29f: function(arg0) {
|
|
183
|
+
let result;
|
|
184
|
+
try {
|
|
185
|
+
result = arg0 instanceof ArrayBuffer;
|
|
186
|
+
} catch (_) {
|
|
187
|
+
result = false;
|
|
188
|
+
}
|
|
189
|
+
return result;
|
|
190
|
+
},
|
|
191
|
+
__wbg_instanceof_Map_7f94c740225003e2: function(arg0) {
|
|
192
|
+
let result;
|
|
193
|
+
try {
|
|
194
|
+
result = arg0 instanceof Map;
|
|
195
|
+
} catch (_) {
|
|
196
|
+
result = false;
|
|
197
|
+
}
|
|
198
|
+
return result;
|
|
199
|
+
},
|
|
200
|
+
__wbg_instanceof_Uint8Array_b6fe1ac89eba107e: function(arg0) {
|
|
201
|
+
let result;
|
|
202
|
+
try {
|
|
203
|
+
result = arg0 instanceof Uint8Array;
|
|
204
|
+
} catch (_) {
|
|
205
|
+
result = false;
|
|
206
|
+
}
|
|
207
|
+
return result;
|
|
208
|
+
},
|
|
209
|
+
__wbg_isArray_139f48e3c057ede8: function(arg0) {
|
|
210
|
+
return Array.isArray(arg0);
|
|
211
|
+
},
|
|
212
|
+
__wbg_isSafeInteger_c22ccb4af2201fe9: function(arg0) {
|
|
213
|
+
return Number.isSafeInteger(arg0);
|
|
214
|
+
},
|
|
215
|
+
__wbg_iterator_9b36cebf3be7b7cd: function() {
|
|
216
|
+
return Symbol.iterator;
|
|
217
|
+
},
|
|
218
|
+
__wbg_length_68a9d5278d084f4f: function(arg0) {
|
|
219
|
+
return arg0.length;
|
|
220
|
+
},
|
|
221
|
+
__wbg_length_fb04d16d7bdf6d4c: function(arg0) {
|
|
222
|
+
return arg0.length;
|
|
223
|
+
},
|
|
224
|
+
__wbg_log_6614a4effdb4e983: function(arg0) {
|
|
225
|
+
console.log(arg0);
|
|
226
|
+
},
|
|
227
|
+
__wbg_new_0b303268aa395a38: function() {
|
|
228
|
+
return new Array();
|
|
229
|
+
},
|
|
230
|
+
__wbg_new_20b778a4c5c691c3: function() {
|
|
231
|
+
return /* @__PURE__ */ new Object();
|
|
232
|
+
},
|
|
233
|
+
__wbg_new_883c0db065f06efd: function() {
|
|
234
|
+
return /* @__PURE__ */ new Map();
|
|
235
|
+
},
|
|
236
|
+
__wbg_new_b06772b280cc6e52: function(arg0) {
|
|
237
|
+
return new Uint8Array(arg0);
|
|
238
|
+
},
|
|
239
|
+
__wbg_next_8cb028b6ba50743f: function() {
|
|
240
|
+
return handleError(function(arg0) {
|
|
241
|
+
return arg0.next();
|
|
242
|
+
}, arguments);
|
|
243
|
+
},
|
|
244
|
+
__wbg_next_cfd0b146c9538df8: function(arg0) {
|
|
245
|
+
return arg0.next;
|
|
246
|
+
},
|
|
247
|
+
__wbg_prototypesetcall_956c7493c68e29b4: function(arg0, arg1, arg2) {
|
|
248
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
249
|
+
},
|
|
250
|
+
__wbg_set_5f806304fb633ab3: function(arg0, arg1, arg2) {
|
|
251
|
+
return arg0.set(arg1, arg2);
|
|
252
|
+
},
|
|
253
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
254
|
+
arg0[arg1] = arg2;
|
|
255
|
+
},
|
|
256
|
+
__wbg_set_da33c120a6584674: function(arg0, arg1, arg2) {
|
|
257
|
+
arg0[arg1 >>> 0] = arg2;
|
|
258
|
+
},
|
|
259
|
+
__wbg_value_3d3defe09fb1ffca: function(arg0) {
|
|
260
|
+
return arg0.value;
|
|
261
|
+
},
|
|
262
|
+
__wbg_warn_633bacc13ba7e6c3: function(arg0) {
|
|
263
|
+
console.warn(arg0);
|
|
264
|
+
},
|
|
265
|
+
__wbindgen_cast_0000000000000001: function(arg0) {
|
|
266
|
+
return arg0;
|
|
267
|
+
},
|
|
268
|
+
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
269
|
+
return arg0;
|
|
270
|
+
},
|
|
271
|
+
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
272
|
+
return getStringFromWasm0(arg0, arg1);
|
|
273
|
+
},
|
|
274
|
+
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
275
|
+
return BigInt.asUintN(64, arg0);
|
|
276
|
+
},
|
|
277
|
+
__wbindgen_init_externref_table: function() {
|
|
278
|
+
const table = wasm.__wbindgen_externrefs;
|
|
279
|
+
const offset = table.grow(4);
|
|
280
|
+
table.set(0, void 0);
|
|
281
|
+
table.set(offset + 0, void 0);
|
|
282
|
+
table.set(offset + 1, null);
|
|
283
|
+
table.set(offset + 2, true);
|
|
284
|
+
table.set(offset + 3, false);
|
|
194
285
|
}
|
|
195
|
-
return result;
|
|
196
|
-
},
|
|
197
|
-
__wbg_instanceof_Uint8Array_152ba1f289edcf3f: function(arg0) {
|
|
198
|
-
let result;
|
|
199
|
-
try {
|
|
200
|
-
result = arg0 instanceof Uint8Array;
|
|
201
|
-
} catch (_) {
|
|
202
|
-
result = false;
|
|
203
|
-
}
|
|
204
|
-
return result;
|
|
205
|
-
},
|
|
206
|
-
__wbg_isArray_c3109d14ffc06469: function(arg0) {
|
|
207
|
-
return Array.isArray(arg0);
|
|
208
|
-
},
|
|
209
|
-
__wbg_isSafeInteger_4fc213d1989d6d2a: function(arg0) {
|
|
210
|
-
return Number.isSafeInteger(arg0);
|
|
211
|
-
},
|
|
212
|
-
__wbg_iterator_013bc09ec998c2a7: function() {
|
|
213
|
-
return Symbol.iterator;
|
|
214
|
-
},
|
|
215
|
-
__wbg_length_3d4ecd04bd8d22f1: function(arg0) {
|
|
216
|
-
return arg0.length;
|
|
217
|
-
},
|
|
218
|
-
__wbg_length_9f1775224cf1d815: function(arg0) {
|
|
219
|
-
return arg0.length;
|
|
220
|
-
},
|
|
221
|
-
__wbg_new_0c7403db6e782f19: function(arg0) {
|
|
222
|
-
return new Uint8Array(arg0);
|
|
223
|
-
},
|
|
224
|
-
__wbg_new_34d45cc8e36aaead: function() {
|
|
225
|
-
return /* @__PURE__ */ new Map();
|
|
226
|
-
},
|
|
227
|
-
__wbg_new_682678e2f47e32bc: function() {
|
|
228
|
-
return new Array();
|
|
229
|
-
},
|
|
230
|
-
__wbg_new_aa8d0fa9762c29bd: function() {
|
|
231
|
-
return /* @__PURE__ */ new Object();
|
|
232
|
-
},
|
|
233
|
-
__wbg_next_0340c4ae324393c3: function() {
|
|
234
|
-
return handleError(function(arg0) {
|
|
235
|
-
return arg0.next();
|
|
236
|
-
}, arguments);
|
|
237
|
-
},
|
|
238
|
-
__wbg_next_7646edaa39458ef7: function(arg0) {
|
|
239
|
-
return arg0.next;
|
|
240
|
-
},
|
|
241
|
-
__wbg_prototypesetcall_a6b02eb00b0f4ce2: function(arg0, arg1, arg2) {
|
|
242
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
243
|
-
},
|
|
244
|
-
__wbg_set_3bf1de9fab0cd644: function(arg0, arg1, arg2) {
|
|
245
|
-
arg0[arg1 >>> 0] = arg2;
|
|
246
|
-
},
|
|
247
|
-
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
248
|
-
arg0[arg1] = arg2;
|
|
249
|
-
},
|
|
250
|
-
__wbg_set_fde2cec06c23692b: function(arg0, arg1, arg2) {
|
|
251
|
-
return arg0.set(arg1, arg2);
|
|
252
|
-
},
|
|
253
|
-
__wbg_value_ee3a06f4579184fa: function(arg0) {
|
|
254
|
-
return arg0.value;
|
|
255
|
-
},
|
|
256
|
-
__wbg_warn_3cc416af27dbdc02: function(arg0) {
|
|
257
|
-
console.warn(arg0);
|
|
258
|
-
},
|
|
259
|
-
__wbindgen_cast_0000000000000001: function(arg0) {
|
|
260
|
-
return arg0;
|
|
261
|
-
},
|
|
262
|
-
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
263
|
-
return arg0;
|
|
264
|
-
},
|
|
265
|
-
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
266
|
-
return getStringFromWasm0(arg0, arg1);
|
|
267
|
-
},
|
|
268
|
-
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
269
|
-
return BigInt.asUintN(64, arg0);
|
|
270
|
-
},
|
|
271
|
-
__wbindgen_init_externref_table: function() {
|
|
272
|
-
const table = wasm.__wbindgen_externrefs;
|
|
273
|
-
const offset = table.grow(4);
|
|
274
|
-
table.set(0, void 0);
|
|
275
|
-
table.set(offset + 0, void 0);
|
|
276
|
-
table.set(offset + 1, null);
|
|
277
|
-
table.set(offset + 2, true);
|
|
278
|
-
table.set(offset + 3, false);
|
|
279
286
|
}
|
|
280
287
|
};
|
|
281
|
-
return {
|
|
282
|
-
__proto__: null,
|
|
283
|
-
"./shinkore_bg.js": import0
|
|
284
|
-
};
|
|
285
288
|
}
|
|
286
289
|
const CompatEngineFinalization = typeof FinalizationRegistry === "undefined" ? {
|
|
287
290
|
register: () => {},
|
|
288
291
|
unregister: () => {}
|
|
289
|
-
} : new FinalizationRegistry((ptr) => wasm.__wbg_compatengine_free(ptr
|
|
292
|
+
} : new FinalizationRegistry((ptr) => wasm.__wbg_compatengine_free(ptr, 1));
|
|
290
293
|
function addToExternrefTable0(obj) {
|
|
291
294
|
const idx = wasm.__externref_table_alloc();
|
|
292
295
|
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
@@ -336,8 +339,7 @@ function getDataViewMemory0() {
|
|
|
336
339
|
return cachedDataViewMemory0;
|
|
337
340
|
}
|
|
338
341
|
function getStringFromWasm0(ptr, len) {
|
|
339
|
-
|
|
340
|
-
return decodeText(ptr, len);
|
|
342
|
+
return decodeText(ptr >>> 0, len);
|
|
341
343
|
}
|
|
342
344
|
let cachedUint8ArrayMemory0 = null;
|
|
343
345
|
function getUint8ArrayMemory0() {
|
|
Binary file
|
package/dist/bundles/shinkom.js
CHANGED
package/dist/bundles/ui/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @type {string}
|
|
4
4
|
*/
|
|
5
|
-
const _macroVersion = "1.
|
|
5
|
+
const _macroVersion = "1.2.0";
|
|
6
6
|
const compatViewHTML = `
|
|
7
7
|
<button id="sk-toggle-compat-view" class="sk-toggle-compat-view sk-button-style">
|
|
8
8
|
<svg style="pointer-events: none;" version="1.0" xmlns="http://www.w3.org/2000/svg" width="57" height="26"
|
|
@@ -28,9 +28,20 @@ var ShinkomState = class {
|
|
|
28
28
|
this.#listeners.forEach((fn) => fn(prop, val));
|
|
29
29
|
};
|
|
30
30
|
this.#state = new Proxy(initalState, {
|
|
31
|
+
/**
|
|
32
|
+
* @param {UISharedState} obj
|
|
33
|
+
* @param {UISharedStateProps} prop
|
|
34
|
+
* @returns {any}
|
|
35
|
+
*/
|
|
31
36
|
get(obj, prop) {
|
|
32
37
|
return obj[prop];
|
|
33
38
|
},
|
|
39
|
+
/**
|
|
40
|
+
* @param {UISharedState} obj
|
|
41
|
+
* @param {UISharedStateProps} prop
|
|
42
|
+
* @param {any} val
|
|
43
|
+
* @returns {boolean}
|
|
44
|
+
*/
|
|
34
45
|
set(obj, prop, val) {
|
|
35
46
|
if (obj[prop] === val) return true;
|
|
36
47
|
notify(prop, val);
|