@lynx-js/web-mainthread-apis-canary 0.19.6-canary-20260119-82b4052d → 0.19.6-canary-20260119-51d6b269

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lynx-js/web-mainthread-apis
2
2
 
3
- ## 0.19.6-canary-20260119040640-82b4052d9f1292c161ba6f428a24c759cca11123
3
+ ## 0.19.6-canary-20260119071537-51d6b26913abc28420373381de059cc3d48264eb
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -9,7 +9,7 @@
9
9
  - feat: support main thread invoke ui method ([#2104](https://github.com/lynx-family/lynx-stack/pull/2104))
10
10
 
11
11
  - Updated dependencies [[`179f984`](https://github.com/lynx-family/lynx-stack/commit/179f9844adf00ff4b2cd450ffb943649441c87d3), [`6c2b51a`](https://github.com/lynx-family/lynx-stack/commit/6c2b51a661ae244eb40671f63f29ee971e084ed4)]:
12
- - @lynx-js/web-constants@0.19.6-canary-20260119040640-82b4052d9f1292c161ba6f428a24c759cca11123
12
+ - @lynx-js/web-constants@0.19.6-canary-20260119071537-51d6b26913abc28420373381de059cc3d48264eb
13
13
 
14
14
  ## 0.19.5
15
15
 
package/binary/debug.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+
3
4
  export function transform_raw_u16_inline_style_ptr(str: string): string | undefined;
5
+
4
6
  export function transform_raw_u16_inline_style_ptr_parsed(name: string, value: string): Array<any> | undefined;
package/binary/debug.js CHANGED
@@ -1,5 +1,9 @@
1
+ /* @ts-self-types="./debug.d.ts" */
2
+
1
3
  import * as wasm from "./debug_bg.wasm";
2
- export * from "./debug_bg.js";
3
4
  import { __wbg_set_wasm } from "./debug_bg.js";
4
5
  __wbg_set_wasm(wasm);
5
6
  wasm.__wbindgen_start();
7
+ export {
8
+ transform_raw_u16_inline_style_ptr, transform_raw_u16_inline_style_ptr_parsed
9
+ } from "./debug_bg.js";
@@ -1,56 +1,71 @@
1
- let wasm;
2
- export function __wbg_set_wasm(val) {
3
- wasm = val;
4
- }
5
-
6
-
7
- let cachedUint8ArrayMemory0 = null;
8
-
9
- function getUint8ArrayMemory0() {
10
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
11
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
1
+ /**
2
+ * @param {string} str
3
+ * @returns {string | undefined}
4
+ */
5
+ export function transform_raw_u16_inline_style_ptr(str) {
6
+ const ptr0 = passStringToWasm0(str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7
+ const len0 = WASM_VECTOR_LEN;
8
+ const ret = wasm.transform_raw_u16_inline_style_ptr(ptr0, len0);
9
+ let v2;
10
+ if (ret[0] !== 0) {
11
+ v2 = getStringFromWasm0(ret[0], ret[1]).slice();
12
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
12
13
  }
13
- return cachedUint8ArrayMemory0;
14
+ return v2;
14
15
  }
15
16
 
16
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
17
-
18
- cachedTextDecoder.decode();
19
-
20
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
21
- let numBytesDecoded = 0;
22
- function decodeText(ptr, len) {
23
- numBytesDecoded += len;
24
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
25
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
26
- cachedTextDecoder.decode();
27
- numBytesDecoded = len;
28
- }
29
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
17
+ /**
18
+ * @param {string} name
19
+ * @param {string} value
20
+ * @returns {Array<any> | undefined}
21
+ */
22
+ export function transform_raw_u16_inline_style_ptr_parsed(name, value) {
23
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
24
+ const len0 = WASM_VECTOR_LEN;
25
+ const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
26
+ const len1 = WASM_VECTOR_LEN;
27
+ const ret = wasm.transform_raw_u16_inline_style_ptr_parsed(ptr0, len0, ptr1, len1);
28
+ return ret;
29
+ }
30
+ export function __wbg___wbindgen_throw_be289d5034ed271b(arg0, arg1) {
31
+ throw new Error(getStringFromWasm0(arg0, arg1));
32
+ }
33
+ export function __wbg_new_3eb36ae241fe6f44() {
34
+ const ret = new Array();
35
+ return ret;
36
+ }
37
+ export function __wbg_push_8ffdcb2063340ba5(arg0, arg1) {
38
+ const ret = arg0.push(arg1);
39
+ return ret;
40
+ }
41
+ export function __wbindgen_cast_0000000000000001(arg0, arg1) {
42
+ // Cast intrinsic for `Ref(String) -> Externref`.
43
+ const ret = getStringFromWasm0(arg0, arg1);
44
+ return ret;
45
+ }
46
+ export function __wbindgen_init_externref_table() {
47
+ const table = wasm.__wbindgen_externrefs;
48
+ const offset = table.grow(4);
49
+ table.set(0, undefined);
50
+ table.set(offset + 0, undefined);
51
+ table.set(offset + 1, null);
52
+ table.set(offset + 2, true);
53
+ table.set(offset + 3, false);
30
54
  }
31
-
32
55
  function getStringFromWasm0(ptr, len) {
33
56
  ptr = ptr >>> 0;
34
57
  return decodeText(ptr, len);
35
58
  }
36
59
 
37
- let WASM_VECTOR_LEN = 0;
38
-
39
- const cachedTextEncoder = new TextEncoder();
40
-
41
- if (!('encodeInto' in cachedTextEncoder)) {
42
- cachedTextEncoder.encodeInto = function (arg, view) {
43
- const buf = cachedTextEncoder.encode(arg);
44
- view.set(buf);
45
- return {
46
- read: arg.length,
47
- written: buf.length
48
- };
60
+ let cachedUint8ArrayMemory0 = null;
61
+ function getUint8ArrayMemory0() {
62
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
63
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
49
64
  }
65
+ return cachedUint8ArrayMemory0;
50
66
  }
51
67
 
52
68
  function passStringToWasm0(arg, malloc, realloc) {
53
-
54
69
  if (realloc === undefined) {
55
70
  const buf = cachedTextEncoder.encode(arg);
56
71
  const ptr = malloc(buf.length, 1) >>> 0;
@@ -71,7 +86,6 @@ function passStringToWasm0(arg, malloc, realloc) {
71
86
  if (code > 0x7F) break;
72
87
  mem[ptr + offset] = code;
73
88
  }
74
-
75
89
  if (offset !== len) {
76
90
  if (offset !== 0) {
77
91
  arg = arg.slice(offset);
@@ -87,64 +101,38 @@ function passStringToWasm0(arg, malloc, realloc) {
87
101
  WASM_VECTOR_LEN = offset;
88
102
  return ptr;
89
103
  }
90
- /**
91
- * @param {string} str
92
- * @returns {string | undefined}
93
- */
94
- export function transform_raw_u16_inline_style_ptr(str) {
95
- const ptr0 = passStringToWasm0(str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
96
- const len0 = WASM_VECTOR_LEN;
97
- const ret = wasm.transform_raw_u16_inline_style_ptr(ptr0, len0);
98
- let v2;
99
- if (ret[0] !== 0) {
100
- v2 = getStringFromWasm0(ret[0], ret[1]).slice();
101
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
102
- }
103
- return v2;
104
- }
105
104
 
106
- /**
107
- * @param {string} name
108
- * @param {string} value
109
- * @returns {Array<any> | undefined}
110
- */
111
- export function transform_raw_u16_inline_style_ptr_parsed(name, value) {
112
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
113
- const len0 = WASM_VECTOR_LEN;
114
- const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
115
- const len1 = WASM_VECTOR_LEN;
116
- const ret = wasm.transform_raw_u16_inline_style_ptr_parsed(ptr0, len0, ptr1, len1);
117
- return ret;
105
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
106
+ cachedTextDecoder.decode();
107
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
108
+ let numBytesDecoded = 0;
109
+ function decodeText(ptr, len) {
110
+ numBytesDecoded += len;
111
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
112
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
113
+ cachedTextDecoder.decode();
114
+ numBytesDecoded = len;
115
+ }
116
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
118
117
  }
119
118
 
120
- export function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
121
- throw new Error(getStringFromWasm0(arg0, arg1));
122
- };
123
-
124
- export function __wbg_new_e17d9f43105b08be() {
125
- const ret = new Array();
126
- return ret;
127
- };
119
+ const cachedTextEncoder = new TextEncoder();
128
120
 
129
- export function __wbg_push_df81a39d04db858c(arg0, arg1) {
130
- const ret = arg0.push(arg1);
131
- return ret;
132
- };
121
+ if (!('encodeInto' in cachedTextEncoder)) {
122
+ cachedTextEncoder.encodeInto = function (arg, view) {
123
+ const buf = cachedTextEncoder.encode(arg);
124
+ view.set(buf);
125
+ return {
126
+ read: arg.length,
127
+ written: buf.length
128
+ };
129
+ };
130
+ }
133
131
 
134
- export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
135
- // Cast intrinsic for `Ref(String) -> Externref`.
136
- const ret = getStringFromWasm0(arg0, arg1);
137
- return ret;
138
- };
132
+ let WASM_VECTOR_LEN = 0;
139
133
 
140
- export function __wbindgen_init_externref_table() {
141
- const table = wasm.__wbindgen_externrefs;
142
- const offset = table.grow(4);
143
- table.set(0, undefined);
144
- table.set(offset + 0, undefined);
145
- table.set(offset + 1, null);
146
- table.set(offset + 2, true);
147
- table.set(offset + 3, false);
148
- ;
149
- };
150
134
 
135
+ let wasm;
136
+ export function __wbg_set_wasm(val) {
137
+ wasm = val;
138
+ }
Binary file
@@ -1,4 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+
3
4
  export function transform_raw_u16_inline_style_ptr(str: string): string | undefined;
5
+
4
6
  export function transform_raw_u16_inline_style_ptr_parsed(name: string, value: string): Array<any> | undefined;
package/binary/legacy.js CHANGED
@@ -1,4 +1,9 @@
1
+ /* @ts-self-types="./legacy.d.ts" */
2
+
1
3
  import * as wasm from "./legacy_bg.wasm";
2
- export * from "./legacy_bg.js";
3
4
  import { __wbg_set_wasm } from "./legacy_bg.js";
4
- __wbg_set_wasm(wasm);
5
+ __wbg_set_wasm(wasm);
6
+
7
+ export {
8
+ transform_raw_u16_inline_style_ptr, transform_raw_u16_inline_style_ptr_parsed
9
+ } from "./legacy_bg.js";
@@ -1,45 +1,58 @@
1
- let wasm;
2
- export function __wbg_set_wasm(val) {
3
- wasm = val;
4
- }
5
-
6
-
7
- let cachedUint8ArrayMemory0 = null;
8
-
9
- function getUint8ArrayMemory0() {
10
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
11
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
1
+ /**
2
+ * @param {string} str
3
+ * @returns {string | undefined}
4
+ */
5
+ export function transform_raw_u16_inline_style_ptr(str) {
6
+ try {
7
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
8
+ const ptr0 = passStringToWasm0(str, wasm.__wbindgen_export, wasm.__wbindgen_export2);
9
+ const len0 = WASM_VECTOR_LEN;
10
+ wasm.transform_raw_u16_inline_style_ptr(retptr, ptr0, len0);
11
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
12
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
13
+ let v2;
14
+ if (r0 !== 0) {
15
+ v2 = getStringFromWasm0(r0, r1).slice();
16
+ wasm.__wbindgen_export3(r0, r1 * 1, 1);
17
+ }
18
+ return v2;
19
+ } finally {
20
+ wasm.__wbindgen_add_to_stack_pointer(16);
12
21
  }
13
- return cachedUint8ArrayMemory0;
14
22
  }
15
23
 
16
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
17
-
18
- cachedTextDecoder.decode();
19
-
20
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
21
- let numBytesDecoded = 0;
22
- function decodeText(ptr, len) {
23
- numBytesDecoded += len;
24
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
25
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
26
- cachedTextDecoder.decode();
27
- numBytesDecoded = len;
28
- }
29
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
24
+ /**
25
+ * @param {string} name
26
+ * @param {string} value
27
+ * @returns {Array<any> | undefined}
28
+ */
29
+ export function transform_raw_u16_inline_style_ptr_parsed(name, value) {
30
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
31
+ const len0 = WASM_VECTOR_LEN;
32
+ const ptr1 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
33
+ const len1 = WASM_VECTOR_LEN;
34
+ const ret = wasm.transform_raw_u16_inline_style_ptr_parsed(ptr0, len0, ptr1, len1);
35
+ return takeObject(ret);
30
36
  }
31
-
32
- function getStringFromWasm0(ptr, len) {
33
- ptr = ptr >>> 0;
34
- return decodeText(ptr, len);
37
+ export function __wbg___wbindgen_throw_be289d5034ed271b(arg0, arg1) {
38
+ throw new Error(getStringFromWasm0(arg0, arg1));
39
+ }
40
+ export function __wbg_new_3eb36ae241fe6f44() {
41
+ const ret = new Array();
42
+ return addHeapObject(ret);
43
+ }
44
+ export function __wbg_push_8ffdcb2063340ba5(arg0, arg1) {
45
+ const ret = getObject(arg0).push(getObject(arg1));
46
+ return ret;
47
+ }
48
+ export function __wbindgen_cast_0000000000000001(arg0, arg1) {
49
+ // Cast intrinsic for `Ref(String) -> Externref`.
50
+ const ret = getStringFromWasm0(arg0, arg1);
51
+ return addHeapObject(ret);
52
+ }
53
+ export function __wbindgen_object_drop_ref(arg0) {
54
+ takeObject(arg0);
35
55
  }
36
-
37
- let heap = new Array(128).fill(undefined);
38
-
39
- heap.push(undefined, null, true, false);
40
-
41
- let heap_next = heap.length;
42
-
43
56
  function addHeapObject(obj) {
44
57
  if (heap_next === heap.length) heap.push(heap.length + 1);
45
58
  const idx = heap_next;
@@ -49,37 +62,41 @@ function addHeapObject(obj) {
49
62
  return idx;
50
63
  }
51
64
 
52
- function getObject(idx) { return heap[idx]; }
53
-
54
65
  function dropObject(idx) {
55
66
  if (idx < 132) return;
56
67
  heap[idx] = heap_next;
57
68
  heap_next = idx;
58
69
  }
59
70
 
60
- function takeObject(idx) {
61
- const ret = getObject(idx);
62
- dropObject(idx);
63
- return ret;
71
+ let cachedDataViewMemory0 = null;
72
+ function getDataViewMemory0() {
73
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
74
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
75
+ }
76
+ return cachedDataViewMemory0;
64
77
  }
65
78
 
66
- let WASM_VECTOR_LEN = 0;
67
-
68
- const cachedTextEncoder = new TextEncoder();
79
+ function getStringFromWasm0(ptr, len) {
80
+ ptr = ptr >>> 0;
81
+ return decodeText(ptr, len);
82
+ }
69
83
 
70
- if (!('encodeInto' in cachedTextEncoder)) {
71
- cachedTextEncoder.encodeInto = function (arg, view) {
72
- const buf = cachedTextEncoder.encode(arg);
73
- view.set(buf);
74
- return {
75
- read: arg.length,
76
- written: buf.length
77
- };
84
+ let cachedUint8ArrayMemory0 = null;
85
+ function getUint8ArrayMemory0() {
86
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
87
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
78
88
  }
89
+ return cachedUint8ArrayMemory0;
79
90
  }
80
91
 
81
- function passStringToWasm0(arg, malloc, realloc) {
92
+ function getObject(idx) { return heap[idx]; }
82
93
 
94
+ let heap = new Array(128).fill(undefined);
95
+ heap.push(undefined, null, true, false);
96
+
97
+ let heap_next = heap.length;
98
+
99
+ function passStringToWasm0(arg, malloc, realloc) {
83
100
  if (realloc === undefined) {
84
101
  const buf = cachedTextEncoder.encode(arg);
85
102
  const ptr = malloc(buf.length, 1) >>> 0;
@@ -100,7 +117,6 @@ function passStringToWasm0(arg, malloc, realloc) {
100
117
  if (code > 0x7F) break;
101
118
  mem[ptr + offset] = code;
102
119
  }
103
-
104
120
  if (offset !== len) {
105
121
  if (offset !== 0) {
106
122
  arg = arg.slice(offset);
@@ -117,72 +133,43 @@ function passStringToWasm0(arg, malloc, realloc) {
117
133
  return ptr;
118
134
  }
119
135
 
120
- let cachedDataViewMemory0 = null;
121
-
122
- function getDataViewMemory0() {
123
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
124
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
125
- }
126
- return cachedDataViewMemory0;
127
- }
128
- /**
129
- * @param {string} str
130
- * @returns {string | undefined}
131
- */
132
- export function transform_raw_u16_inline_style_ptr(str) {
133
- try {
134
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
135
- const ptr0 = passStringToWasm0(str, wasm.__wbindgen_export, wasm.__wbindgen_export2);
136
- const len0 = WASM_VECTOR_LEN;
137
- wasm.transform_raw_u16_inline_style_ptr(retptr, ptr0, len0);
138
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
139
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
140
- let v2;
141
- if (r0 !== 0) {
142
- v2 = getStringFromWasm0(r0, r1).slice();
143
- wasm.__wbindgen_export3(r0, r1 * 1, 1);
144
- }
145
- return v2;
146
- } finally {
147
- wasm.__wbindgen_add_to_stack_pointer(16);
148
- }
136
+ function takeObject(idx) {
137
+ const ret = getObject(idx);
138
+ dropObject(idx);
139
+ return ret;
149
140
  }
150
141
 
151
- /**
152
- * @param {string} name
153
- * @param {string} value
154
- * @returns {Array<any> | undefined}
155
- */
156
- export function transform_raw_u16_inline_style_ptr_parsed(name, value) {
157
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
158
- const len0 = WASM_VECTOR_LEN;
159
- const ptr1 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
160
- const len1 = WASM_VECTOR_LEN;
161
- const ret = wasm.transform_raw_u16_inline_style_ptr_parsed(ptr0, len0, ptr1, len1);
162
- return takeObject(ret);
142
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
143
+ cachedTextDecoder.decode();
144
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
145
+ let numBytesDecoded = 0;
146
+ function decodeText(ptr, len) {
147
+ numBytesDecoded += len;
148
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
149
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
150
+ cachedTextDecoder.decode();
151
+ numBytesDecoded = len;
152
+ }
153
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
163
154
  }
164
155
 
165
- export function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
166
- throw new Error(getStringFromWasm0(arg0, arg1));
167
- };
168
-
169
- export function __wbg_new_e17d9f43105b08be() {
170
- const ret = new Array();
171
- return addHeapObject(ret);
172
- };
156
+ const cachedTextEncoder = new TextEncoder();
173
157
 
174
- export function __wbg_push_df81a39d04db858c(arg0, arg1) {
175
- const ret = getObject(arg0).push(getObject(arg1));
176
- return ret;
177
- };
158
+ if (!('encodeInto' in cachedTextEncoder)) {
159
+ cachedTextEncoder.encodeInto = function (arg, view) {
160
+ const buf = cachedTextEncoder.encode(arg);
161
+ view.set(buf);
162
+ return {
163
+ read: arg.length,
164
+ written: buf.length
165
+ };
166
+ };
167
+ }
178
168
 
179
- export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
180
- // Cast intrinsic for `Ref(String) -> Externref`.
181
- const ret = getStringFromWasm0(arg0, arg1);
182
- return addHeapObject(ret);
183
- };
169
+ let WASM_VECTOR_LEN = 0;
184
170
 
185
- export function __wbindgen_object_drop_ref(arg0) {
186
- takeObject(arg0);
187
- };
188
171
 
172
+ let wasm;
173
+ export function __wbg_set_wasm(val) {
174
+ wasm = val;
175
+ }
Binary file
@@ -1,4 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+
3
4
  export function transform_raw_u16_inline_style_ptr(str: string): string | undefined;
5
+
4
6
  export function transform_raw_u16_inline_style_ptr_parsed(name: string, value: string): Array<any> | undefined;
@@ -1,5 +1,9 @@
1
+ /* @ts-self-types="./standard.d.ts" */
2
+
1
3
  import * as wasm from "./standard_bg.wasm";
2
- export * from "./standard_bg.js";
3
4
  import { __wbg_set_wasm } from "./standard_bg.js";
4
5
  __wbg_set_wasm(wasm);
5
6
  wasm.__wbindgen_start();
7
+ export {
8
+ transform_raw_u16_inline_style_ptr, transform_raw_u16_inline_style_ptr_parsed
9
+ } from "./standard_bg.js";
@@ -1,56 +1,71 @@
1
- let wasm;
2
- export function __wbg_set_wasm(val) {
3
- wasm = val;
4
- }
5
-
6
-
7
- let cachedUint8ArrayMemory0 = null;
8
-
9
- function getUint8ArrayMemory0() {
10
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
11
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
1
+ /**
2
+ * @param {string} str
3
+ * @returns {string | undefined}
4
+ */
5
+ export function transform_raw_u16_inline_style_ptr(str) {
6
+ const ptr0 = passStringToWasm0(str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7
+ const len0 = WASM_VECTOR_LEN;
8
+ const ret = wasm.transform_raw_u16_inline_style_ptr(ptr0, len0);
9
+ let v2;
10
+ if (ret[0] !== 0) {
11
+ v2 = getStringFromWasm0(ret[0], ret[1]).slice();
12
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
12
13
  }
13
- return cachedUint8ArrayMemory0;
14
+ return v2;
14
15
  }
15
16
 
16
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
17
-
18
- cachedTextDecoder.decode();
19
-
20
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
21
- let numBytesDecoded = 0;
22
- function decodeText(ptr, len) {
23
- numBytesDecoded += len;
24
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
25
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
26
- cachedTextDecoder.decode();
27
- numBytesDecoded = len;
28
- }
29
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
17
+ /**
18
+ * @param {string} name
19
+ * @param {string} value
20
+ * @returns {Array<any> | undefined}
21
+ */
22
+ export function transform_raw_u16_inline_style_ptr_parsed(name, value) {
23
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
24
+ const len0 = WASM_VECTOR_LEN;
25
+ const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
26
+ const len1 = WASM_VECTOR_LEN;
27
+ const ret = wasm.transform_raw_u16_inline_style_ptr_parsed(ptr0, len0, ptr1, len1);
28
+ return ret;
29
+ }
30
+ export function __wbg___wbindgen_throw_be289d5034ed271b(arg0, arg1) {
31
+ throw new Error(getStringFromWasm0(arg0, arg1));
32
+ }
33
+ export function __wbg_new_3eb36ae241fe6f44() {
34
+ const ret = new Array();
35
+ return ret;
36
+ }
37
+ export function __wbg_push_8ffdcb2063340ba5(arg0, arg1) {
38
+ const ret = arg0.push(arg1);
39
+ return ret;
40
+ }
41
+ export function __wbindgen_cast_0000000000000001(arg0, arg1) {
42
+ // Cast intrinsic for `Ref(String) -> Externref`.
43
+ const ret = getStringFromWasm0(arg0, arg1);
44
+ return ret;
45
+ }
46
+ export function __wbindgen_init_externref_table() {
47
+ const table = wasm.__wbindgen_externrefs;
48
+ const offset = table.grow(4);
49
+ table.set(0, undefined);
50
+ table.set(offset + 0, undefined);
51
+ table.set(offset + 1, null);
52
+ table.set(offset + 2, true);
53
+ table.set(offset + 3, false);
30
54
  }
31
-
32
55
  function getStringFromWasm0(ptr, len) {
33
56
  ptr = ptr >>> 0;
34
57
  return decodeText(ptr, len);
35
58
  }
36
59
 
37
- let WASM_VECTOR_LEN = 0;
38
-
39
- const cachedTextEncoder = new TextEncoder();
40
-
41
- if (!('encodeInto' in cachedTextEncoder)) {
42
- cachedTextEncoder.encodeInto = function (arg, view) {
43
- const buf = cachedTextEncoder.encode(arg);
44
- view.set(buf);
45
- return {
46
- read: arg.length,
47
- written: buf.length
48
- };
60
+ let cachedUint8ArrayMemory0 = null;
61
+ function getUint8ArrayMemory0() {
62
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
63
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
49
64
  }
65
+ return cachedUint8ArrayMemory0;
50
66
  }
51
67
 
52
68
  function passStringToWasm0(arg, malloc, realloc) {
53
-
54
69
  if (realloc === undefined) {
55
70
  const buf = cachedTextEncoder.encode(arg);
56
71
  const ptr = malloc(buf.length, 1) >>> 0;
@@ -71,7 +86,6 @@ function passStringToWasm0(arg, malloc, realloc) {
71
86
  if (code > 0x7F) break;
72
87
  mem[ptr + offset] = code;
73
88
  }
74
-
75
89
  if (offset !== len) {
76
90
  if (offset !== 0) {
77
91
  arg = arg.slice(offset);
@@ -87,64 +101,38 @@ function passStringToWasm0(arg, malloc, realloc) {
87
101
  WASM_VECTOR_LEN = offset;
88
102
  return ptr;
89
103
  }
90
- /**
91
- * @param {string} str
92
- * @returns {string | undefined}
93
- */
94
- export function transform_raw_u16_inline_style_ptr(str) {
95
- const ptr0 = passStringToWasm0(str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
96
- const len0 = WASM_VECTOR_LEN;
97
- const ret = wasm.transform_raw_u16_inline_style_ptr(ptr0, len0);
98
- let v2;
99
- if (ret[0] !== 0) {
100
- v2 = getStringFromWasm0(ret[0], ret[1]).slice();
101
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
102
- }
103
- return v2;
104
- }
105
104
 
106
- /**
107
- * @param {string} name
108
- * @param {string} value
109
- * @returns {Array<any> | undefined}
110
- */
111
- export function transform_raw_u16_inline_style_ptr_parsed(name, value) {
112
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
113
- const len0 = WASM_VECTOR_LEN;
114
- const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
115
- const len1 = WASM_VECTOR_LEN;
116
- const ret = wasm.transform_raw_u16_inline_style_ptr_parsed(ptr0, len0, ptr1, len1);
117
- return ret;
105
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
106
+ cachedTextDecoder.decode();
107
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
108
+ let numBytesDecoded = 0;
109
+ function decodeText(ptr, len) {
110
+ numBytesDecoded += len;
111
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
112
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
113
+ cachedTextDecoder.decode();
114
+ numBytesDecoded = len;
115
+ }
116
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
118
117
  }
119
118
 
120
- export function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
121
- throw new Error(getStringFromWasm0(arg0, arg1));
122
- };
123
-
124
- export function __wbg_new_e17d9f43105b08be() {
125
- const ret = new Array();
126
- return ret;
127
- };
119
+ const cachedTextEncoder = new TextEncoder();
128
120
 
129
- export function __wbg_push_df81a39d04db858c(arg0, arg1) {
130
- const ret = arg0.push(arg1);
131
- return ret;
132
- };
121
+ if (!('encodeInto' in cachedTextEncoder)) {
122
+ cachedTextEncoder.encodeInto = function (arg, view) {
123
+ const buf = cachedTextEncoder.encode(arg);
124
+ view.set(buf);
125
+ return {
126
+ read: arg.length,
127
+ written: buf.length
128
+ };
129
+ };
130
+ }
133
131
 
134
- export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
135
- // Cast intrinsic for `Ref(String) -> Externref`.
136
- const ret = getStringFromWasm0(arg0, arg1);
137
- return ret;
138
- };
132
+ let WASM_VECTOR_LEN = 0;
139
133
 
140
- export function __wbindgen_init_externref_table() {
141
- const table = wasm.__wbindgen_externrefs;
142
- const offset = table.grow(4);
143
- table.set(0, undefined);
144
- table.set(offset + 0, undefined);
145
- table.set(offset + 1, null);
146
- table.set(offset + 2, true);
147
- table.set(offset + 3, false);
148
- ;
149
- };
150
134
 
135
+ let wasm;
136
+ export function __wbg_set_wasm(val) {
137
+ wasm = val;
138
+ }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-mainthread-apis-canary",
3
- "version": "0.19.6-canary-20260119-82b4052d",
3
+ "version": "0.19.6-canary-20260119-51d6b269",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -26,7 +26,7 @@
26
26
  "**/*.css"
27
27
  ],
28
28
  "dependencies": {
29
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.6-canary-20260119-82b4052d",
29
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.6-canary-20260119-51d6b269",
30
30
  "hyphenate-style-name": "^1.1.0",
31
31
  "wasm-feature-detect": "^1.8.0"
32
32
  },