@lynx-js/web-core-server 0.19.5 → 0.19.7
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 +4 -0
- package/dist/131.js +8 -2
- package/dist/27.js +241 -129
- package/dist/legacy-wasm-chunk.js +106 -118
- package/dist/static/wasm/38288526.module.wasm +0 -0
- package/dist/static/wasm/754b96d8.module.wasm +0 -0
- package/package.json +6 -6
- package/dist/static/wasm/97be315d.module.wasm +0 -0
- package/dist/static/wasm/fbb8137e.module.wasm +0 -0
package/CHANGELOG.md
CHANGED
package/dist/131.js
CHANGED
|
@@ -98,6 +98,7 @@ __webpack_require__.add({
|
|
|
98
98
|
const queryComponentEndpoint = (0, _lynx_js_web_worker_rpc__rspack_import_0.H)('queryComponent', false, true);
|
|
99
99
|
const updateBTSTemplateCacheEndpoint = (0, _lynx_js_web_worker_rpc__rspack_import_0.H)('updateBTSTemplateCacheEndpoint', false, true);
|
|
100
100
|
(0, _lynx_js_web_worker_rpc__rspack_import_0.H)('loadTemplateMultiThread', false, true);
|
|
101
|
+
(0, _lynx_js_web_worker_rpc__rspack_import_0.H)('reload', false, false);
|
|
101
102
|
},
|
|
102
103
|
"../web-constants/dist/eventName.js" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
103
104
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -147,6 +148,7 @@ __webpack_require__.add({
|
|
|
147
148
|
JA: ()=>_constants_js__rspack_import_0.JA,
|
|
148
149
|
JW: ()=>_endpoints_js__rspack_import_2.JW,
|
|
149
150
|
Ke: ()=>_endpoints_js__rspack_import_2.Ke,
|
|
151
|
+
O4: ()=>_types_index_js__rspack_import_3.O4,
|
|
150
152
|
OE: ()=>_constants_js__rspack_import_0.OE,
|
|
151
153
|
Pb: ()=>_constants_js__rspack_import_0.Pb,
|
|
152
154
|
SP: ()=>"l-uid",
|
|
@@ -215,7 +217,10 @@ __webpack_require__.add({
|
|
|
215
217
|
CanceledBeforeDispatch: 3
|
|
216
218
|
};
|
|
217
219
|
},
|
|
218
|
-
"../web-constants/dist/types/NativeApp.js" () {
|
|
220
|
+
"../web-constants/dist/types/NativeApp.js" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
221
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
222
|
+
O: ()=>ErrorCode
|
|
223
|
+
});
|
|
219
224
|
var IdentifierType;
|
|
220
225
|
(function(IdentifierType) {
|
|
221
226
|
IdentifierType[IdentifierType["ID_SELECTOR"] = 0] = "ID_SELECTOR";
|
|
@@ -243,9 +248,10 @@ __webpack_require__.add({
|
|
|
243
248
|
"../web-constants/dist/types/index.js" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
244
249
|
__webpack_require__.d(__webpack_exports__, {
|
|
245
250
|
HO: ()=>_I18n_js__rspack_import_3.HO,
|
|
251
|
+
O4: ()=>_NativeApp_js__rspack_import_0.O,
|
|
246
252
|
gI: ()=>_I18n_js__rspack_import_3.gI
|
|
247
253
|
});
|
|
248
|
-
__webpack_require__("../web-constants/dist/types/NativeApp.js");
|
|
254
|
+
var _NativeApp_js__rspack_import_0 = __webpack_require__("../web-constants/dist/types/NativeApp.js");
|
|
249
255
|
__webpack_require__("../web-constants/dist/types/UpdateDataOptions.js");
|
|
250
256
|
__webpack_require__("../web-constants/dist/types/Element.js");
|
|
251
257
|
var _I18n_js__rspack_import_3 = __webpack_require__("../web-constants/dist/types/I18n.js");
|
package/dist/27.js
CHANGED
|
@@ -20,6 +20,7 @@ __webpack_require__.add({
|
|
|
20
20
|
},
|
|
21
21
|
"../../../node_modules/.pnpm/wasm-feature-detect@1.8.0/node_modules/wasm-feature-detect/dist/esm/index.js" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
22
22
|
__webpack_require__.d(__webpack_exports__, {
|
|
23
|
+
oR: ()=>simd,
|
|
23
24
|
rO: ()=>referenceTypes
|
|
24
25
|
});
|
|
25
26
|
const referenceTypes = async ()=>WebAssembly.validate(new Uint8Array([
|
|
@@ -50,20 +51,46 @@ __webpack_require__.add({
|
|
|
50
51
|
112,
|
|
51
52
|
26,
|
|
52
53
|
11
|
|
54
|
+
])), simd = async ()=>WebAssembly.validate(new Uint8Array([
|
|
55
|
+
0,
|
|
56
|
+
97,
|
|
57
|
+
115,
|
|
58
|
+
109,
|
|
59
|
+
1,
|
|
60
|
+
0,
|
|
61
|
+
0,
|
|
62
|
+
0,
|
|
63
|
+
1,
|
|
64
|
+
5,
|
|
65
|
+
1,
|
|
66
|
+
96,
|
|
67
|
+
0,
|
|
68
|
+
1,
|
|
69
|
+
123,
|
|
70
|
+
3,
|
|
71
|
+
2,
|
|
72
|
+
1,
|
|
73
|
+
0,
|
|
74
|
+
10,
|
|
75
|
+
10,
|
|
76
|
+
1,
|
|
77
|
+
8,
|
|
78
|
+
0,
|
|
79
|
+
65,
|
|
80
|
+
0,
|
|
81
|
+
253,
|
|
82
|
+
15,
|
|
83
|
+
253,
|
|
84
|
+
98,
|
|
85
|
+
11
|
|
53
86
|
]));
|
|
54
87
|
},
|
|
55
88
|
"../web-mainthread-apis/binary/standard.js" (__webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
56
89
|
__webpack_require__.a(__webpack_module__, async function(__rspack_load_async_deps, __rspack_async_done) {
|
|
57
90
|
try {
|
|
58
91
|
__webpack_require__.d(__webpack_exports__, {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
aC: ()=>_standard_bg_js__rspack_import_1.aC,
|
|
62
|
-
bL: ()=>_standard_bg_js__rspack_import_1.bL,
|
|
63
|
-
f: ()=>_standard_bg_js__rspack_import_1.f,
|
|
64
|
-
iG: ()=>_standard_bg_js__rspack_import_1.iG,
|
|
65
|
-
lI: ()=>_standard_bg_js__rspack_import_1.lI,
|
|
66
|
-
pY: ()=>_standard_bg_js__rspack_import_1.pY
|
|
92
|
+
a: ()=>_standard_bg_js__rspack_import_1.aC,
|
|
93
|
+
i: ()=>_standard_bg_js__rspack_import_1.iG
|
|
67
94
|
});
|
|
68
95
|
var _standard_bg_wasm__rspack_import_0 = __webpack_require__("../web-mainthread-apis/binary/standard_bg.wasm");
|
|
69
96
|
var _standard_bg_js__rspack_import_1 = __webpack_require__("../web-mainthread-apis/binary/standard_bg.js");
|
|
@@ -81,85 +108,15 @@ __webpack_require__.add({
|
|
|
81
108
|
},
|
|
82
109
|
"../web-mainthread-apis/binary/standard_bg.js" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
83
110
|
__webpack_require__.d(__webpack_exports__, {
|
|
84
|
-
|
|
85
|
-
|
|
111
|
+
NR: ()=>__wbindgen_cast_0000000000000001,
|
|
112
|
+
Yy: ()=>__wbg_push_8ffdcb2063340ba5,
|
|
86
113
|
aC: ()=>transform_raw_u16_inline_style_ptr,
|
|
87
114
|
bL: ()=>__wbindgen_init_externref_table,
|
|
88
|
-
f: ()=>__wbg_new_e17d9f43105b08be,
|
|
89
115
|
iG: ()=>transform_raw_u16_inline_style_ptr_parsed,
|
|
90
116
|
lI: ()=>__wbg_set_wasm,
|
|
91
|
-
|
|
117
|
+
oF: ()=>__wbg_new_3eb36ae241fe6f44,
|
|
118
|
+
rm: ()=>__wbg___wbindgen_throw_be289d5034ed271b
|
|
92
119
|
});
|
|
93
|
-
let wasm;
|
|
94
|
-
function __wbg_set_wasm(val) {
|
|
95
|
-
wasm = val;
|
|
96
|
-
}
|
|
97
|
-
let cachedUint8ArrayMemory0 = null;
|
|
98
|
-
function getUint8ArrayMemory0() {
|
|
99
|
-
if (null === cachedUint8ArrayMemory0 || 0 === cachedUint8ArrayMemory0.byteLength) cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
100
|
-
return cachedUint8ArrayMemory0;
|
|
101
|
-
}
|
|
102
|
-
let cachedTextDecoder = new TextDecoder('utf-8', {
|
|
103
|
-
ignoreBOM: true,
|
|
104
|
-
fatal: true
|
|
105
|
-
});
|
|
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', {
|
|
113
|
-
ignoreBOM: true,
|
|
114
|
-
fatal: true
|
|
115
|
-
});
|
|
116
|
-
cachedTextDecoder.decode();
|
|
117
|
-
numBytesDecoded = len;
|
|
118
|
-
}
|
|
119
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
120
|
-
}
|
|
121
|
-
function getStringFromWasm0(ptr, len) {
|
|
122
|
-
ptr >>>= 0;
|
|
123
|
-
return decodeText(ptr, len);
|
|
124
|
-
}
|
|
125
|
-
let WASM_VECTOR_LEN = 0;
|
|
126
|
-
const cachedTextEncoder = new TextEncoder();
|
|
127
|
-
if (!('encodeInto' in cachedTextEncoder)) cachedTextEncoder.encodeInto = function(arg, view) {
|
|
128
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
129
|
-
view.set(buf);
|
|
130
|
-
return {
|
|
131
|
-
read: arg.length,
|
|
132
|
-
written: buf.length
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
136
|
-
if (void 0 === realloc) {
|
|
137
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
138
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
139
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
140
|
-
WASM_VECTOR_LEN = buf.length;
|
|
141
|
-
return ptr;
|
|
142
|
-
}
|
|
143
|
-
let len = arg.length;
|
|
144
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
145
|
-
const mem = getUint8ArrayMemory0();
|
|
146
|
-
let offset = 0;
|
|
147
|
-
for(; offset < len; offset++){
|
|
148
|
-
const code = arg.charCodeAt(offset);
|
|
149
|
-
if (code > 0x7F) break;
|
|
150
|
-
mem[ptr + offset] = code;
|
|
151
|
-
}
|
|
152
|
-
if (offset !== len) {
|
|
153
|
-
if (0 !== offset) arg = arg.slice(offset);
|
|
154
|
-
ptr = realloc(ptr, len, len = offset + 3 * arg.length, 1) >>> 0;
|
|
155
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
156
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
157
|
-
offset += ret.written;
|
|
158
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
159
|
-
}
|
|
160
|
-
WASM_VECTOR_LEN = offset;
|
|
161
|
-
return ptr;
|
|
162
|
-
}
|
|
163
120
|
function transform_raw_u16_inline_style_ptr(str) {
|
|
164
121
|
const ptr0 = passStringToWasm0(str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
165
122
|
const len0 = WASM_VECTOR_LEN;
|
|
@@ -179,18 +136,18 @@ __webpack_require__.add({
|
|
|
179
136
|
const ret = wasm.transform_raw_u16_inline_style_ptr_parsed(ptr0, len0, ptr1, len1);
|
|
180
137
|
return ret;
|
|
181
138
|
}
|
|
182
|
-
function
|
|
139
|
+
function __wbg___wbindgen_throw_be289d5034ed271b(arg0, arg1) {
|
|
183
140
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
184
141
|
}
|
|
185
|
-
function
|
|
142
|
+
function __wbg_new_3eb36ae241fe6f44() {
|
|
186
143
|
const ret = new Array();
|
|
187
144
|
return ret;
|
|
188
145
|
}
|
|
189
|
-
function
|
|
146
|
+
function __wbg_push_8ffdcb2063340ba5(arg0, arg1) {
|
|
190
147
|
const ret = arg0.push(arg1);
|
|
191
148
|
return ret;
|
|
192
149
|
}
|
|
193
|
-
function
|
|
150
|
+
function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
194
151
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
195
152
|
return ret;
|
|
196
153
|
}
|
|
@@ -203,6 +160,76 @@ __webpack_require__.add({
|
|
|
203
160
|
table.set(offset + 2, true);
|
|
204
161
|
table.set(offset + 3, false);
|
|
205
162
|
}
|
|
163
|
+
function getStringFromWasm0(ptr, len) {
|
|
164
|
+
ptr >>>= 0;
|
|
165
|
+
return decodeText(ptr, len);
|
|
166
|
+
}
|
|
167
|
+
let cachedUint8ArrayMemory0 = null;
|
|
168
|
+
function getUint8ArrayMemory0() {
|
|
169
|
+
if (null === cachedUint8ArrayMemory0 || 0 === cachedUint8ArrayMemory0.byteLength) cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
170
|
+
return cachedUint8ArrayMemory0;
|
|
171
|
+
}
|
|
172
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
173
|
+
if (void 0 === realloc) {
|
|
174
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
175
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
176
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
177
|
+
WASM_VECTOR_LEN = buf.length;
|
|
178
|
+
return ptr;
|
|
179
|
+
}
|
|
180
|
+
let len = arg.length;
|
|
181
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
182
|
+
const mem = getUint8ArrayMemory0();
|
|
183
|
+
let offset = 0;
|
|
184
|
+
for(; offset < len; offset++){
|
|
185
|
+
const code = arg.charCodeAt(offset);
|
|
186
|
+
if (code > 0x7F) break;
|
|
187
|
+
mem[ptr + offset] = code;
|
|
188
|
+
}
|
|
189
|
+
if (offset !== len) {
|
|
190
|
+
if (0 !== offset) arg = arg.slice(offset);
|
|
191
|
+
ptr = realloc(ptr, len, len = offset + 3 * arg.length, 1) >>> 0;
|
|
192
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
193
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
194
|
+
offset += ret.written;
|
|
195
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
196
|
+
}
|
|
197
|
+
WASM_VECTOR_LEN = offset;
|
|
198
|
+
return ptr;
|
|
199
|
+
}
|
|
200
|
+
let cachedTextDecoder = new TextDecoder('utf-8', {
|
|
201
|
+
ignoreBOM: true,
|
|
202
|
+
fatal: true
|
|
203
|
+
});
|
|
204
|
+
cachedTextDecoder.decode();
|
|
205
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
206
|
+
let numBytesDecoded = 0;
|
|
207
|
+
function decodeText(ptr, len) {
|
|
208
|
+
numBytesDecoded += len;
|
|
209
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
210
|
+
cachedTextDecoder = new TextDecoder('utf-8', {
|
|
211
|
+
ignoreBOM: true,
|
|
212
|
+
fatal: true
|
|
213
|
+
});
|
|
214
|
+
cachedTextDecoder.decode();
|
|
215
|
+
numBytesDecoded = len;
|
|
216
|
+
}
|
|
217
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
218
|
+
}
|
|
219
|
+
const cachedTextEncoder = new TextEncoder();
|
|
220
|
+
if (!('encodeInto' in cachedTextEncoder)) cachedTextEncoder.encodeInto = function(arg, view) {
|
|
221
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
222
|
+
view.set(buf);
|
|
223
|
+
return {
|
|
224
|
+
read: arg.length,
|
|
225
|
+
written: buf.length
|
|
226
|
+
};
|
|
227
|
+
};
|
|
228
|
+
let WASM_VECTOR_LEN = 0;
|
|
229
|
+
let wasm;
|
|
230
|
+
function __wbg_set_wasm(val) {
|
|
231
|
+
wasm = val;
|
|
232
|
+
}
|
|
206
233
|
},
|
|
207
234
|
"../web-mainthread-apis/dist/createMainThreadGlobalThis.js" (__webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
208
235
|
__webpack_require__.a(__webpack_module__, async function(__rspack_load_async_deps, __rspack_async_done) {
|
|
@@ -248,23 +275,27 @@ __webpack_require__.add({
|
|
|
248
275
|
const lynxEventName = _lynx_js_web_constants__rspack_import_0.$4[event.type] ?? event.type;
|
|
249
276
|
const runtimeInfo = elementToRuntimeInfoMap.get(currentTarget);
|
|
250
277
|
if (runtimeInfo) {
|
|
251
|
-
const
|
|
252
|
-
|
|
253
|
-
if (
|
|
254
|
-
const
|
|
255
|
-
const
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
if (
|
|
264
|
-
|
|
265
|
-
crossThreadEvent
|
|
266
|
-
|
|
278
|
+
const handlerInfos = isCapture ? runtimeInfo.eventHandlerMap[lynxEventName]?.capture : runtimeInfo.eventHandlerMap[lynxEventName]?.bind;
|
|
279
|
+
let stopPropagation = false;
|
|
280
|
+
if (handlerInfos) for (const handlerInfo of handlerInfos){
|
|
281
|
+
const hname = handlerInfo.handler;
|
|
282
|
+
const crossThreadEvent = (0, _utils_createCrossThreadEvent_js__rspack_import_3.X)(event, lynxEventName);
|
|
283
|
+
if ('string' == typeof hname) {
|
|
284
|
+
const parentComponentUniqueId = Number(currentTarget.getAttribute(_lynx_js_web_constants__rspack_import_0.er));
|
|
285
|
+
const parentComponent = lynxUniqueIdToElement[parentComponentUniqueId].deref();
|
|
286
|
+
const componentId = parentComponent?.getAttribute(_lynx_js_web_constants__rspack_import_0.Gq) !== 'page' ? parentComponent?.getAttribute(_lynx_js_web_constants__rspack_import_0.pP) ?? void 0 : void 0;
|
|
287
|
+
if (componentId) callbacks.publicComponentEvent(componentId, hname, crossThreadEvent);
|
|
288
|
+
else callbacks.publishEvent(hname, crossThreadEvent);
|
|
289
|
+
if (1 === handlerInfos.length) stopPropagation = true;
|
|
290
|
+
} else if (hname) {
|
|
291
|
+
crossThreadEvent.target.elementRefptr = event.target;
|
|
292
|
+
if (crossThreadEvent.currentTarget) crossThreadEvent.currentTarget.elementRefptr = event.currentTarget;
|
|
293
|
+
mtsRealm.globalWindow.runWorklet?.(hname.value, [
|
|
294
|
+
crossThreadEvent
|
|
295
|
+
]);
|
|
296
|
+
}
|
|
267
297
|
}
|
|
298
|
+
return stopPropagation;
|
|
268
299
|
}
|
|
269
300
|
return false;
|
|
270
301
|
};
|
|
@@ -293,7 +324,8 @@ __webpack_require__.add({
|
|
|
293
324
|
componentAtIndex: void 0,
|
|
294
325
|
enqueueComponent: void 0
|
|
295
326
|
};
|
|
296
|
-
const
|
|
327
|
+
const handlerList = isCapture ? runtimeInfo.eventHandlerMap[eventName]?.capture : runtimeInfo.eventHandlerMap[eventName]?.bind;
|
|
328
|
+
const currentHandler = handlerList && handlerList.length > 0;
|
|
297
329
|
const currentRegisteredHandler = isCatch ? isCapture ? catchCaptureHandler : defaultCatchHandler : isCapture ? captureHandler : defaultHandler;
|
|
298
330
|
if (currentHandler) {
|
|
299
331
|
if (!newEventHandler) {
|
|
@@ -302,6 +334,8 @@ __webpack_require__.add({
|
|
|
302
334
|
});
|
|
303
335
|
const isExposure = 'uiappear' === eventName || 'uidisappear' === eventName;
|
|
304
336
|
if (isExposure && '-1' === element.getAttribute('exposure-id')) mtsGlobalThis.__SetAttribute(element, 'exposure-id', null);
|
|
337
|
+
if (runtimeInfo.eventHandlerMap[eventName]) if (isCapture) runtimeInfo.eventHandlerMap[eventName].capture = void 0;
|
|
338
|
+
else runtimeInfo.eventHandlerMap[eventName].bind = void 0;
|
|
305
339
|
}
|
|
306
340
|
} else if (newEventHandler) {
|
|
307
341
|
const htmlEventName = _lynx_js_web_constants__rspack_import_0.vQ[element.tagName]?.[eventName] ?? _lynx_js_web_constants__rspack_import_0.im[eventName] ?? eventName;
|
|
@@ -320,8 +354,16 @@ __webpack_require__.add({
|
|
|
320
354
|
capture: void 0,
|
|
321
355
|
bind: void 0
|
|
322
356
|
};
|
|
323
|
-
|
|
324
|
-
|
|
357
|
+
let targetList = isCapture ? runtimeInfo.eventHandlerMap[eventName].capture : runtimeInfo.eventHandlerMap[eventName].bind;
|
|
358
|
+
if (!Array.isArray(targetList)) targetList = targetList ? [
|
|
359
|
+
targetList
|
|
360
|
+
] : [];
|
|
361
|
+
const typeOfNew = typeof newEventHandler;
|
|
362
|
+
const index = targetList.findIndex((h)=>typeof h.handler === typeOfNew);
|
|
363
|
+
if (-1 !== index) targetList[index] = info;
|
|
364
|
+
else targetList.push(info);
|
|
365
|
+
if (isCapture) runtimeInfo.eventHandlerMap[eventName].capture = targetList;
|
|
366
|
+
else runtimeInfo.eventHandlerMap[eventName].bind = targetList;
|
|
325
367
|
}
|
|
326
368
|
elementToRuntimeInfoMap.set(element, runtimeInfo);
|
|
327
369
|
};
|
|
@@ -332,6 +374,7 @@ __webpack_require__.add({
|
|
|
332
374
|
eventName = eventName.toLowerCase();
|
|
333
375
|
const isCapture = eventType.startsWith('capture');
|
|
334
376
|
const handler = isCapture ? runtimeInfo.eventHandlerMap[eventName]?.capture : runtimeInfo.eventHandlerMap[eventName]?.bind;
|
|
377
|
+
if (Array.isArray(handler)) return handler[0]?.handler;
|
|
335
378
|
return handler?.handler;
|
|
336
379
|
}
|
|
337
380
|
};
|
|
@@ -342,12 +385,17 @@ __webpack_require__.add({
|
|
|
342
385
|
info.bind,
|
|
343
386
|
info.capture
|
|
344
387
|
])if (atomInfo) {
|
|
345
|
-
const
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
388
|
+
const handlerList = Array.isArray(atomInfo) ? atomInfo : [
|
|
389
|
+
atomInfo
|
|
390
|
+
];
|
|
391
|
+
for (const item of handlerList){
|
|
392
|
+
const { type, handler } = item;
|
|
393
|
+
if (handler) eventInfos.push({
|
|
394
|
+
type: type,
|
|
395
|
+
name: lynxEventName,
|
|
396
|
+
function: handler
|
|
397
|
+
});
|
|
398
|
+
}
|
|
351
399
|
}
|
|
352
400
|
return eventInfos;
|
|
353
401
|
};
|
|
@@ -416,8 +464,24 @@ __webpack_require__.add({
|
|
|
416
464
|
const componentAtIndex = runtimeInfo.componentAtIndex;
|
|
417
465
|
const enqueueComponent = runtimeInfo.enqueueComponent;
|
|
418
466
|
const uniqueId = (0, _pureElementPAPIs_js__rspack_import_2.Tj)(element);
|
|
419
|
-
|
|
420
|
-
|
|
467
|
+
removeAction.forEach((position, i)=>{
|
|
468
|
+
const removedEle = element.children[position - i];
|
|
469
|
+
if (removedEle) {
|
|
470
|
+
const sign = (0, _pureElementPAPIs_js__rspack_import_2.Tj)(removedEle);
|
|
471
|
+
enqueueComponent?.(element, uniqueId, sign);
|
|
472
|
+
element.removeChild(removedEle);
|
|
473
|
+
}
|
|
474
|
+
});
|
|
475
|
+
for (const action of insertAction){
|
|
476
|
+
const childSign = componentAtIndex?.(element, uniqueId, action.position, 0, false);
|
|
477
|
+
if ('number' == typeof childSign) {
|
|
478
|
+
const childElement = lynxUniqueIdToElement[childSign]?.deref();
|
|
479
|
+
if (childElement) {
|
|
480
|
+
const referenceNode = element.children[action.position];
|
|
481
|
+
if (referenceNode !== childElement) element.insertBefore(childElement, referenceNode || null);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
421
485
|
}
|
|
422
486
|
});
|
|
423
487
|
} else {
|
|
@@ -484,6 +548,55 @@ __webpack_require__.add({
|
|
|
484
548
|
exposureChangedElements.clear();
|
|
485
549
|
callbacks.flushElementTree(options, timingFlagsCopied, exposureChangedElementsArray);
|
|
486
550
|
};
|
|
551
|
+
const __InvokeUIMethod = (element, method, params, callback)=>{
|
|
552
|
+
try {
|
|
553
|
+
if ('boundingClientRect' === method) {
|
|
554
|
+
const rect = element.getBoundingClientRect();
|
|
555
|
+
callback({
|
|
556
|
+
code: _lynx_js_web_constants__rspack_import_0.O4.SUCCESS,
|
|
557
|
+
data: {
|
|
558
|
+
id: element.id,
|
|
559
|
+
width: rect.width,
|
|
560
|
+
height: rect.height,
|
|
561
|
+
left: rect.left,
|
|
562
|
+
right: rect.right,
|
|
563
|
+
top: rect.top,
|
|
564
|
+
bottom: rect.bottom
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
return;
|
|
568
|
+
}
|
|
569
|
+
if ('function' == typeof element[method]) {
|
|
570
|
+
const data = element[method](params);
|
|
571
|
+
callback({
|
|
572
|
+
code: _lynx_js_web_constants__rspack_import_0.O4.SUCCESS,
|
|
573
|
+
data
|
|
574
|
+
});
|
|
575
|
+
return;
|
|
576
|
+
}
|
|
577
|
+
callback({
|
|
578
|
+
code: _lynx_js_web_constants__rspack_import_0.O4.METHOD_NOT_FOUND
|
|
579
|
+
});
|
|
580
|
+
} catch (e) {
|
|
581
|
+
console.error("[lynx-web] invokeUIMethod: apply method failed with", e, element);
|
|
582
|
+
callback({
|
|
583
|
+
code: _lynx_js_web_constants__rspack_import_0.O4.PARAM_INVALID
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
const __QuerySelector = (element, selector)=>{
|
|
588
|
+
if (!element) return null;
|
|
589
|
+
const el = element.querySelector(selector);
|
|
590
|
+
if (el) {
|
|
591
|
+
if (!el.invoke) el.invoke = (method, params)=>new Promise((resolve, reject)=>{
|
|
592
|
+
__InvokeUIMethod(el, method, params, (res)=>{
|
|
593
|
+
if (res.code === _lynx_js_web_constants__rspack_import_0.O4.SUCCESS) resolve(res.data);
|
|
594
|
+
else reject(res);
|
|
595
|
+
});
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
return el;
|
|
599
|
+
};
|
|
487
600
|
const __GetPageElement = ()=>pageElement;
|
|
488
601
|
const templateIdToTemplate = {};
|
|
489
602
|
const createElementForElementTemplateData = (data, parentComponentUniId)=>{
|
|
@@ -611,7 +724,9 @@ __webpack_require__.add({
|
|
|
611
724
|
__FlushElementTree,
|
|
612
725
|
_I18nResourceTranslation: callbacks._I18nResourceTranslation,
|
|
613
726
|
_AddEventListener: ()=>{},
|
|
614
|
-
renderPage: void 0
|
|
727
|
+
renderPage: void 0,
|
|
728
|
+
__InvokeUIMethod,
|
|
729
|
+
__QuerySelector
|
|
615
730
|
};
|
|
616
731
|
Object.assign(mtsRealm.globalWindow, mtsGlobalThis);
|
|
617
732
|
Object.defineProperty(mtsRealm.globalWindow, 'renderPage', {
|
|
@@ -1789,8 +1904,11 @@ __webpack_require__.add({
|
|
|
1789
1904
|
var wasm_feature_detect__rspack_import_0 = __webpack_require__("../../../node_modules/.pnpm/wasm-feature-detect@1.8.0/node_modules/wasm-feature-detect/dist/esm/index.js");
|
|
1790
1905
|
let wasm;
|
|
1791
1906
|
async function initWasm() {
|
|
1792
|
-
const supportsReferenceTypes = await
|
|
1793
|
-
|
|
1907
|
+
const [supportsReferenceTypes, supportsSimd] = await Promise.all([
|
|
1908
|
+
(0, wasm_feature_detect__rspack_import_0.rO)(),
|
|
1909
|
+
(0, wasm_feature_detect__rspack_import_0.oR)()
|
|
1910
|
+
]);
|
|
1911
|
+
wasm = supportsReferenceTypes && supportsSimd ? await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "../web-mainthread-apis/wasm/standard.js")) : await import("./legacy-wasm-chunk.js").then(__webpack_require__.bind(__webpack_require__, "../web-mainthread-apis/wasm/legacy.js"));
|
|
1794
1912
|
}
|
|
1795
1913
|
await initWasm();
|
|
1796
1914
|
__rspack_async_done();
|
|
@@ -1804,14 +1922,8 @@ __webpack_require__.add({
|
|
|
1804
1922
|
try {
|
|
1805
1923
|
__webpack_require__.r(__webpack_exports__);
|
|
1806
1924
|
__webpack_require__.d(__webpack_exports__, {
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
__wbg_push_df81a39d04db858c: ()=>_binary_standard_js__rspack_import_0.RS,
|
|
1810
|
-
__wbg_set_wasm: ()=>_binary_standard_js__rspack_import_0.lI,
|
|
1811
|
-
__wbindgen_cast_2241b6af4c4b2941: ()=>_binary_standard_js__rspack_import_0.pY,
|
|
1812
|
-
__wbindgen_init_externref_table: ()=>_binary_standard_js__rspack_import_0.bL,
|
|
1813
|
-
transform_raw_u16_inline_style_ptr: ()=>_binary_standard_js__rspack_import_0.aC,
|
|
1814
|
-
transform_raw_u16_inline_style_ptr_parsed: ()=>_binary_standard_js__rspack_import_0.iG
|
|
1925
|
+
transform_raw_u16_inline_style_ptr: ()=>_binary_standard_js__rspack_import_0.a,
|
|
1926
|
+
transform_raw_u16_inline_style_ptr_parsed: ()=>_binary_standard_js__rspack_import_0.i
|
|
1815
1927
|
});
|
|
1816
1928
|
var _binary_standard_js__rspack_import_0 = __webpack_require__("../web-mainthread-apis/binary/standard.js");
|
|
1817
1929
|
var __rspack_async_deps = __rspack_load_async_deps([
|
|
@@ -1826,13 +1938,13 @@ __webpack_require__.add({
|
|
|
1826
1938
|
},
|
|
1827
1939
|
"../web-mainthread-apis/binary/standard_bg.wasm" (module, exports, __webpack_require__) {
|
|
1828
1940
|
var rspack_import_0 = __webpack_require__("../web-mainthread-apis/binary/standard_bg.js");
|
|
1829
|
-
module.exports = __webpack_require__.v(exports, module.id, "
|
|
1941
|
+
module.exports = __webpack_require__.v(exports, module.id, "382885261fffaf0c", {
|
|
1830
1942
|
"./standard_bg.js": {
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1943
|
+
__wbg_new_3eb36ae241fe6f44: rspack_import_0.oF,
|
|
1944
|
+
__wbg_push_8ffdcb2063340ba5: rspack_import_0.Yy,
|
|
1945
|
+
__wbg___wbindgen_throw_be289d5034ed271b: rspack_import_0.rm,
|
|
1834
1946
|
__wbindgen_init_externref_table: rspack_import_0.bL,
|
|
1835
|
-
|
|
1947
|
+
__wbindgen_cast_0000000000000001: rspack_import_0.NR
|
|
1836
1948
|
}
|
|
1837
1949
|
});
|
|
1838
1950
|
}
|
|
@@ -4,14 +4,8 @@ __webpack_require__.add({
|
|
|
4
4
|
__webpack_require__.a(__webpack_module__, async function(__rspack_load_async_deps, __rspack_async_done) {
|
|
5
5
|
try {
|
|
6
6
|
__webpack_require__.d(__webpack_exports__, {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
aC: ()=>_legacy_bg_js__rspack_import_1.aC,
|
|
10
|
-
bk: ()=>_legacy_bg_js__rspack_import_1.bk,
|
|
11
|
-
f: ()=>_legacy_bg_js__rspack_import_1.f,
|
|
12
|
-
iG: ()=>_legacy_bg_js__rspack_import_1.iG,
|
|
13
|
-
lI: ()=>_legacy_bg_js__rspack_import_1.lI,
|
|
14
|
-
pY: ()=>_legacy_bg_js__rspack_import_1.pY
|
|
7
|
+
a: ()=>_legacy_bg_js__rspack_import_1.aC,
|
|
8
|
+
i: ()=>_legacy_bg_js__rspack_import_1.iG
|
|
15
9
|
});
|
|
16
10
|
var _legacy_bg_wasm__rspack_import_0 = __webpack_require__("../web-mainthread-apis/binary/legacy_bg.wasm");
|
|
17
11
|
var _legacy_bg_js__rspack_import_1 = __webpack_require__("../web-mainthread-apis/binary/legacy_bg.js");
|
|
@@ -28,50 +22,59 @@ __webpack_require__.add({
|
|
|
28
22
|
},
|
|
29
23
|
"../web-mainthread-apis/binary/legacy_bg.js" (__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
30
24
|
__webpack_require__.d(__webpack_exports__, {
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
NR: ()=>__wbindgen_cast_0000000000000001,
|
|
26
|
+
Yy: ()=>__wbg_push_8ffdcb2063340ba5,
|
|
33
27
|
aC: ()=>transform_raw_u16_inline_style_ptr,
|
|
34
28
|
bk: ()=>__wbindgen_object_drop_ref,
|
|
35
|
-
f: ()=>__wbg_new_e17d9f43105b08be,
|
|
36
29
|
iG: ()=>transform_raw_u16_inline_style_ptr_parsed,
|
|
37
30
|
lI: ()=>__wbg_set_wasm,
|
|
38
|
-
|
|
31
|
+
oF: ()=>__wbg_new_3eb36ae241fe6f44,
|
|
32
|
+
rm: ()=>__wbg___wbindgen_throw_be289d5034ed271b
|
|
39
33
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
function transform_raw_u16_inline_style_ptr(str) {
|
|
35
|
+
try {
|
|
36
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
37
|
+
const ptr0 = passStringToWasm0(str, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
38
|
+
const len0 = WASM_VECTOR_LEN;
|
|
39
|
+
wasm.transform_raw_u16_inline_style_ptr(retptr, ptr0, len0);
|
|
40
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 0, true);
|
|
41
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4, true);
|
|
42
|
+
let v2;
|
|
43
|
+
if (0 !== r0) {
|
|
44
|
+
v2 = getStringFromWasm0(r0, r1).slice();
|
|
45
|
+
wasm.__wbindgen_export3(r0, +r1, 1);
|
|
46
|
+
}
|
|
47
|
+
return v2;
|
|
48
|
+
} finally{
|
|
49
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
50
|
+
}
|
|
43
51
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
52
|
+
function transform_raw_u16_inline_style_ptr_parsed(name, value) {
|
|
53
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
54
|
+
const len0 = WASM_VECTOR_LEN;
|
|
55
|
+
const ptr1 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
56
|
+
const len1 = WASM_VECTOR_LEN;
|
|
57
|
+
const ret = wasm.transform_raw_u16_inline_style_ptr_parsed(ptr0, len0, ptr1, len1);
|
|
58
|
+
return takeObject(ret);
|
|
48
59
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
fatal: true
|
|
52
|
-
});
|
|
53
|
-
cachedTextDecoder.decode();
|
|
54
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
55
|
-
let numBytesDecoded = 0;
|
|
56
|
-
function decodeText(ptr, len) {
|
|
57
|
-
numBytesDecoded += len;
|
|
58
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
59
|
-
cachedTextDecoder = new TextDecoder('utf-8', {
|
|
60
|
-
ignoreBOM: true,
|
|
61
|
-
fatal: true
|
|
62
|
-
});
|
|
63
|
-
cachedTextDecoder.decode();
|
|
64
|
-
numBytesDecoded = len;
|
|
65
|
-
}
|
|
66
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
60
|
+
function __wbg___wbindgen_throw_be289d5034ed271b(arg0, arg1) {
|
|
61
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
67
62
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
70
|
-
return
|
|
63
|
+
function __wbg_new_3eb36ae241fe6f44() {
|
|
64
|
+
const ret = new Array();
|
|
65
|
+
return addHeapObject(ret);
|
|
66
|
+
}
|
|
67
|
+
function __wbg_push_8ffdcb2063340ba5(arg0, arg1) {
|
|
68
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
69
|
+
return ret;
|
|
70
|
+
}
|
|
71
|
+
function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
72
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
73
|
+
return addHeapObject(ret);
|
|
74
|
+
}
|
|
75
|
+
function __wbindgen_object_drop_ref(arg0) {
|
|
76
|
+
takeObject(arg0);
|
|
71
77
|
}
|
|
72
|
-
let heap = new Array(128).fill(void 0);
|
|
73
|
-
heap.push(void 0, null, true, false);
|
|
74
|
-
let heap_next = heap.length;
|
|
75
78
|
function addHeapObject(obj) {
|
|
76
79
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
77
80
|
const idx = heap_next;
|
|
@@ -79,29 +82,31 @@ __webpack_require__.add({
|
|
|
79
82
|
heap[idx] = obj;
|
|
80
83
|
return idx;
|
|
81
84
|
}
|
|
82
|
-
function getObject(idx) {
|
|
83
|
-
return heap[idx];
|
|
84
|
-
}
|
|
85
85
|
function dropObject(idx) {
|
|
86
86
|
if (idx < 132) return;
|
|
87
87
|
heap[idx] = heap_next;
|
|
88
88
|
heap_next = idx;
|
|
89
89
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
return
|
|
90
|
+
let cachedDataViewMemory0 = null;
|
|
91
|
+
function getDataViewMemory0() {
|
|
92
|
+
if (null === cachedDataViewMemory0 || true === cachedDataViewMemory0.buffer.detached || void 0 === cachedDataViewMemory0.buffer.detached && cachedDataViewMemory0.buffer !== wasm.memory.buffer) cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
93
|
+
return cachedDataViewMemory0;
|
|
94
94
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
95
|
+
function getStringFromWasm0(ptr, len) {
|
|
96
|
+
ptr >>>= 0;
|
|
97
|
+
return decodeText(ptr, len);
|
|
98
|
+
}
|
|
99
|
+
let cachedUint8ArrayMemory0 = null;
|
|
100
|
+
function getUint8ArrayMemory0() {
|
|
101
|
+
if (null === cachedUint8ArrayMemory0 || 0 === cachedUint8ArrayMemory0.byteLength) cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
102
|
+
return cachedUint8ArrayMemory0;
|
|
103
|
+
}
|
|
104
|
+
function getObject(idx) {
|
|
105
|
+
return heap[idx];
|
|
106
|
+
}
|
|
107
|
+
let heap = new Array(128).fill(void 0);
|
|
108
|
+
heap.push(void 0, null, true, false);
|
|
109
|
+
let heap_next = heap.length;
|
|
105
110
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
106
111
|
if (void 0 === realloc) {
|
|
107
112
|
const buf = cachedTextEncoder.encode(arg);
|
|
@@ -130,54 +135,43 @@ __webpack_require__.add({
|
|
|
130
135
|
WASM_VECTOR_LEN = offset;
|
|
131
136
|
return ptr;
|
|
132
137
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
return cachedDataViewMemory0;
|
|
137
|
-
}
|
|
138
|
-
function transform_raw_u16_inline_style_ptr(str) {
|
|
139
|
-
try {
|
|
140
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
141
|
-
const ptr0 = passStringToWasm0(str, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
142
|
-
const len0 = WASM_VECTOR_LEN;
|
|
143
|
-
wasm.transform_raw_u16_inline_style_ptr(retptr, ptr0, len0);
|
|
144
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 0, true);
|
|
145
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4, true);
|
|
146
|
-
let v2;
|
|
147
|
-
if (0 !== r0) {
|
|
148
|
-
v2 = getStringFromWasm0(r0, r1).slice();
|
|
149
|
-
wasm.__wbindgen_export3(r0, +r1, 1);
|
|
150
|
-
}
|
|
151
|
-
return v2;
|
|
152
|
-
} finally{
|
|
153
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
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);
|
|
163
|
-
}
|
|
164
|
-
function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
|
|
165
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
166
|
-
}
|
|
167
|
-
function __wbg_new_e17d9f43105b08be() {
|
|
168
|
-
const ret = new Array();
|
|
169
|
-
return addHeapObject(ret);
|
|
170
|
-
}
|
|
171
|
-
function __wbg_push_df81a39d04db858c(arg0, arg1) {
|
|
172
|
-
const ret = getObject(arg0).push(getObject(arg1));
|
|
138
|
+
function takeObject(idx) {
|
|
139
|
+
const ret = getObject(idx);
|
|
140
|
+
dropObject(idx);
|
|
173
141
|
return ret;
|
|
174
142
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
143
|
+
let cachedTextDecoder = new TextDecoder('utf-8', {
|
|
144
|
+
ignoreBOM: true,
|
|
145
|
+
fatal: true
|
|
146
|
+
});
|
|
147
|
+
cachedTextDecoder.decode();
|
|
148
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
149
|
+
let numBytesDecoded = 0;
|
|
150
|
+
function decodeText(ptr, len) {
|
|
151
|
+
numBytesDecoded += len;
|
|
152
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
153
|
+
cachedTextDecoder = new TextDecoder('utf-8', {
|
|
154
|
+
ignoreBOM: true,
|
|
155
|
+
fatal: true
|
|
156
|
+
});
|
|
157
|
+
cachedTextDecoder.decode();
|
|
158
|
+
numBytesDecoded = len;
|
|
159
|
+
}
|
|
160
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
178
161
|
}
|
|
179
|
-
|
|
180
|
-
|
|
162
|
+
const cachedTextEncoder = new TextEncoder();
|
|
163
|
+
if (!('encodeInto' in cachedTextEncoder)) cachedTextEncoder.encodeInto = function(arg, view) {
|
|
164
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
165
|
+
view.set(buf);
|
|
166
|
+
return {
|
|
167
|
+
read: arg.length,
|
|
168
|
+
written: buf.length
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
let WASM_VECTOR_LEN = 0;
|
|
172
|
+
let wasm;
|
|
173
|
+
function __wbg_set_wasm(val) {
|
|
174
|
+
wasm = val;
|
|
181
175
|
}
|
|
182
176
|
},
|
|
183
177
|
"../web-mainthread-apis/wasm/legacy.js" (__webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
@@ -185,14 +179,8 @@ __webpack_require__.add({
|
|
|
185
179
|
try {
|
|
186
180
|
__webpack_require__.r(__webpack_exports__);
|
|
187
181
|
__webpack_require__.d(__webpack_exports__, {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
__wbg_push_df81a39d04db858c: ()=>_binary_legacy_js__rspack_import_0.RS,
|
|
191
|
-
__wbg_set_wasm: ()=>_binary_legacy_js__rspack_import_0.lI,
|
|
192
|
-
__wbindgen_cast_2241b6af4c4b2941: ()=>_binary_legacy_js__rspack_import_0.pY,
|
|
193
|
-
__wbindgen_object_drop_ref: ()=>_binary_legacy_js__rspack_import_0.bk,
|
|
194
|
-
transform_raw_u16_inline_style_ptr: ()=>_binary_legacy_js__rspack_import_0.aC,
|
|
195
|
-
transform_raw_u16_inline_style_ptr_parsed: ()=>_binary_legacy_js__rspack_import_0.iG
|
|
182
|
+
transform_raw_u16_inline_style_ptr: ()=>_binary_legacy_js__rspack_import_0.a,
|
|
183
|
+
transform_raw_u16_inline_style_ptr_parsed: ()=>_binary_legacy_js__rspack_import_0.i
|
|
196
184
|
});
|
|
197
185
|
var _binary_legacy_js__rspack_import_0 = __webpack_require__("../web-mainthread-apis/binary/legacy.js");
|
|
198
186
|
var __rspack_async_deps = __rspack_load_async_deps([
|
|
@@ -207,13 +195,13 @@ __webpack_require__.add({
|
|
|
207
195
|
},
|
|
208
196
|
"../web-mainthread-apis/binary/legacy_bg.wasm" (module, exports, __webpack_require__) {
|
|
209
197
|
var rspack_import_0 = __webpack_require__("../web-mainthread-apis/binary/legacy_bg.js");
|
|
210
|
-
module.exports = __webpack_require__.v(exports, module.id, "
|
|
198
|
+
module.exports = __webpack_require__.v(exports, module.id, "754b96d883b9cb82", {
|
|
211
199
|
"./legacy_bg.js": {
|
|
212
|
-
|
|
213
|
-
|
|
200
|
+
__wbg_new_3eb36ae241fe6f44: rspack_import_0.oF,
|
|
201
|
+
__wbg_push_8ffdcb2063340ba5: rspack_import_0.Yy,
|
|
214
202
|
__wbindgen_object_drop_ref: rspack_import_0.bk,
|
|
215
|
-
|
|
216
|
-
|
|
203
|
+
__wbg___wbindgen_throw_be289d5034ed271b: rspack_import_0.rm,
|
|
204
|
+
__wbindgen_cast_0000000000000001: rspack_import_0.NR
|
|
217
205
|
}
|
|
218
206
|
});
|
|
219
207
|
}
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-server",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
],
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"rsbuild-plugin-arethetypeswrong": "0.1.1",
|
|
27
|
-
"rsbuild-plugin-publint": "0.3.
|
|
27
|
+
"rsbuild-plugin-publint": "0.3.4",
|
|
28
28
|
"@lynx-js/offscreen-document": "0.1.4",
|
|
29
|
-
"@lynx-js/web-constants": "0.19.
|
|
30
|
-
"@lynx-js/web-elements": "0.11.
|
|
31
|
-
"@lynx-js/web-mainthread-apis": "0.19.
|
|
32
|
-
"@lynx-js/web-worker-rpc": "0.19.
|
|
29
|
+
"@lynx-js/web-constants": "0.19.7",
|
|
30
|
+
"@lynx-js/web-elements": "0.11.1",
|
|
31
|
+
"@lynx-js/web-mainthread-apis": "0.19.7",
|
|
32
|
+
"@lynx-js/web-worker-rpc": "0.19.7"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "rslib build",
|
|
Binary file
|
|
Binary file
|