@lvce-editor/renderer-process 21.15.0 → 21.17.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/dist/rendererProcessMain.js +38 -0
- package/package.json +1 -1
|
@@ -242,6 +242,11 @@ const Code$2 = 'code';
|
|
|
242
242
|
const Label$2 = 'label';
|
|
243
243
|
const Dt$2 = 'dt';
|
|
244
244
|
const Iframe$1 = 'iframe';
|
|
245
|
+
const Style$1 = 'style';
|
|
246
|
+
const Html$1 = 'html';
|
|
247
|
+
const Head$1 = 'head';
|
|
248
|
+
const Title$1 = 'title';
|
|
249
|
+
const Meta$1 = 'meta';
|
|
245
250
|
const Audio$1$1 = 0;
|
|
246
251
|
const Button$1 = 1;
|
|
247
252
|
const Col$1 = 2;
|
|
@@ -298,6 +303,11 @@ const Code$1 = 65;
|
|
|
298
303
|
const Label$1 = 66;
|
|
299
304
|
const Dt$1 = 67;
|
|
300
305
|
const Iframe = 68;
|
|
306
|
+
const Style = 72;
|
|
307
|
+
const Html = 73;
|
|
308
|
+
const Head = 74;
|
|
309
|
+
const Title = 75;
|
|
310
|
+
const Meta = 76;
|
|
301
311
|
const Reference$1 = 100;
|
|
302
312
|
const VirtualDomElements$1 = {
|
|
303
313
|
__proto__: null,
|
|
@@ -355,10 +365,14 @@ const getElementTag$1 = type => {
|
|
|
355
365
|
return H5$2;
|
|
356
366
|
case H6$1:
|
|
357
367
|
return H6$2;
|
|
368
|
+
case Head:
|
|
369
|
+
return Head$1;
|
|
358
370
|
case Header$1:
|
|
359
371
|
return Header$2;
|
|
360
372
|
case Hr$1:
|
|
361
373
|
return Hr$2;
|
|
374
|
+
case Html:
|
|
375
|
+
return Html$1;
|
|
362
376
|
case I$1:
|
|
363
377
|
return I$2;
|
|
364
378
|
case Iframe:
|
|
@@ -375,6 +389,8 @@ const getElementTag$1 = type => {
|
|
|
375
389
|
return Label$2;
|
|
376
390
|
case Li$1:
|
|
377
391
|
return Li$2;
|
|
392
|
+
case Meta:
|
|
393
|
+
return Meta$1;
|
|
378
394
|
case Nav$1:
|
|
379
395
|
return Nav$2;
|
|
380
396
|
case Ol$1:
|
|
@@ -393,6 +409,8 @@ const getElementTag$1 = type => {
|
|
|
393
409
|
return Select$2;
|
|
394
410
|
case Span$1:
|
|
395
411
|
return Span$2;
|
|
412
|
+
case Style:
|
|
413
|
+
return Style$1;
|
|
396
414
|
case Table$1:
|
|
397
415
|
return Table$2;
|
|
398
416
|
case TBody$1:
|
|
@@ -409,6 +427,8 @@ const getElementTag$1 = type => {
|
|
|
409
427
|
return THead$2;
|
|
410
428
|
case Time$1:
|
|
411
429
|
return Time$2;
|
|
430
|
+
case Title:
|
|
431
|
+
return Title$1;
|
|
412
432
|
case Tr$1:
|
|
413
433
|
return Tr$2;
|
|
414
434
|
case Ul$1:
|
|
@@ -432,6 +452,11 @@ const getEventListenerOptions$1 = (eventName, value) => {
|
|
|
432
452
|
passive: true
|
|
433
453
|
};
|
|
434
454
|
}
|
|
455
|
+
if (value.capture) {
|
|
456
|
+
return {
|
|
457
|
+
capture: true
|
|
458
|
+
};
|
|
459
|
+
}
|
|
435
460
|
switch (eventName) {
|
|
436
461
|
case 'wheel':
|
|
437
462
|
return {
|
|
@@ -518,6 +543,11 @@ const getOptions = fn => {
|
|
|
518
543
|
passive: true
|
|
519
544
|
};
|
|
520
545
|
}
|
|
546
|
+
if (fn.capture) {
|
|
547
|
+
return {
|
|
548
|
+
capture: true
|
|
549
|
+
};
|
|
550
|
+
}
|
|
521
551
|
return undefined;
|
|
522
552
|
};
|
|
523
553
|
const attachEvent$1 = ($Node, eventMap, key, value, newEventMap) => {
|
|
@@ -915,10 +945,14 @@ const getEventListenerArg = (param, event) => {
|
|
|
915
945
|
return event.key;
|
|
916
946
|
case 'event.shiftKey':
|
|
917
947
|
return event.shiftKey;
|
|
948
|
+
case 'event.target.checked':
|
|
949
|
+
return event.target.checked;
|
|
918
950
|
case 'event.target.className':
|
|
919
951
|
return event.target.className;
|
|
920
952
|
case 'event.target.dataset.groupIndex':
|
|
921
953
|
return event.target.dataset.groupIndex;
|
|
954
|
+
case 'event.target.dataset.id':
|
|
955
|
+
return event.target.dataset.id;
|
|
922
956
|
case 'event.target.dataset.index':
|
|
923
957
|
return event.target.dataset.index;
|
|
924
958
|
case 'event.target.dataset.name':
|
|
@@ -1006,6 +1040,10 @@ const createFn = (info, map) => {
|
|
|
1006
1040
|
// TODO avoid mutating function property, maybe return an object with function and options
|
|
1007
1041
|
fn.passive = true;
|
|
1008
1042
|
}
|
|
1043
|
+
if (info.capture) {
|
|
1044
|
+
// TODO avoid mutating function property, maybe return an object with function and options
|
|
1045
|
+
fn.capture = true;
|
|
1046
|
+
}
|
|
1009
1047
|
return fn;
|
|
1010
1048
|
};
|
|
1011
1049
|
const listeners = Object.create(null);
|