@lvce-editor/main-area-worker 9.20.0 → 9.21.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.
@@ -272,7 +272,6 @@ const walkValue = (value, transferrables, isTransferrable) => {
272
272
  for (const property of Object.values(value)) {
273
273
  walkValue(property, transferrables, isTransferrable);
274
274
  }
275
- return;
276
275
  }
277
276
  };
278
277
  const getTransferrables = value => {
@@ -1416,15 +1415,175 @@ const create$3 = rpcId => {
1416
1415
 
1417
1416
  const None$1 = 'none';
1418
1417
 
1418
+ const Audio = 0;
1419
1419
  const Button$2 = 1;
1420
+ const Col = 2;
1421
+ const ColGroup = 3;
1420
1422
  const Div = 4;
1423
+ const H1 = 5;
1424
+ const Input = 6;
1425
+ const Kbd = 7;
1421
1426
  const Span = 8;
1427
+ const Table = 9;
1428
+ const TBody = 10;
1429
+ const Td = 11;
1422
1430
  const Text = 12;
1431
+ const Th = 13;
1432
+ const THead = 14;
1433
+ const Tr = 15;
1434
+ const I = 16;
1423
1435
  const Img = 17;
1436
+ const Root = 0;
1437
+ const Ins = 20;
1438
+ const Del = 21;
1439
+ const H2 = 22;
1440
+ const H3 = 23;
1441
+ const H4 = 24;
1442
+ const H5 = 25;
1443
+ const H6 = 26;
1444
+ const Article = 27;
1445
+ const Aside = 28;
1446
+ const Footer = 29;
1447
+ const Header = 30;
1448
+ const Nav = 40;
1449
+ const Section = 41;
1450
+ const Search = 42;
1451
+ const Dd = 43;
1452
+ const Dl = 44;
1453
+ const Figcaption = 45;
1454
+ const Figure = 46;
1455
+ const Hr = 47;
1456
+ const Li = 48;
1457
+ const Ol = 49;
1424
1458
  const P = 50;
1425
1459
  const Pre = 51;
1460
+ const A = 53;
1461
+ const Abbr = 54;
1462
+ const Br = 55;
1463
+ const Cite = 56;
1464
+ const Data = 57;
1465
+ const Time = 58;
1466
+ const Tfoot = 59;
1467
+ const Ul = 60;
1468
+ const Video = 61;
1469
+ const TextArea = 62;
1470
+ const Select = 63;
1471
+ const Option = 64;
1472
+ const Code = 65;
1473
+ const Label = 66;
1474
+ const Dt = 67;
1475
+ const Iframe = 68;
1476
+ const Main$2 = 69;
1477
+ const Strong = 70;
1478
+ const Em = 71;
1479
+ const Style = 72;
1480
+ const Html = 73;
1481
+ const Head = 74;
1482
+ const Title = 75;
1483
+ const Meta = 76;
1484
+ const Canvas = 77;
1485
+ const Form = 78;
1486
+ const BlockQuote = 79;
1487
+ const Quote = 80;
1488
+ const Circle = 81;
1489
+ const Defs = 82;
1490
+ const Ellipse = 83;
1491
+ const G = 84;
1492
+ const Line = 85;
1493
+ const Path = 86;
1494
+ const Polygon = 87;
1495
+ const Polyline = 88;
1496
+ const Rect = 89;
1497
+ const Svg = 90;
1498
+ const Use = 91;
1426
1499
  const Reference = 100;
1427
1500
 
1501
+ const VirtualDomElements = {
1502
+ __proto__: null,
1503
+ A,
1504
+ Abbr,
1505
+ Article,
1506
+ Aside,
1507
+ Audio,
1508
+ BlockQuote,
1509
+ Br,
1510
+ Button: Button$2,
1511
+ Canvas,
1512
+ Circle,
1513
+ Cite,
1514
+ Code,
1515
+ Col,
1516
+ ColGroup,
1517
+ Data,
1518
+ Dd,
1519
+ Defs,
1520
+ Del,
1521
+ Div,
1522
+ Dl,
1523
+ Dt,
1524
+ Ellipse,
1525
+ Em,
1526
+ Figcaption,
1527
+ Figure,
1528
+ Footer,
1529
+ Form,
1530
+ G,
1531
+ H1,
1532
+ H2,
1533
+ H3,
1534
+ H4,
1535
+ H5,
1536
+ H6,
1537
+ Head,
1538
+ Header,
1539
+ Hr,
1540
+ Html,
1541
+ I,
1542
+ Iframe,
1543
+ Img,
1544
+ Input,
1545
+ Ins,
1546
+ Kbd,
1547
+ Label,
1548
+ Li,
1549
+ Line,
1550
+ Main: Main$2,
1551
+ Meta,
1552
+ Nav,
1553
+ Ol,
1554
+ Option,
1555
+ P,
1556
+ Path,
1557
+ Polygon,
1558
+ Polyline,
1559
+ Pre,
1560
+ Quote,
1561
+ Rect,
1562
+ Reference,
1563
+ Root,
1564
+ Search,
1565
+ Section,
1566
+ Select,
1567
+ Span,
1568
+ Strong,
1569
+ Style,
1570
+ Svg,
1571
+ TBody,
1572
+ THead,
1573
+ Table,
1574
+ Td,
1575
+ Text,
1576
+ TextArea,
1577
+ Tfoot,
1578
+ Th,
1579
+ Time,
1580
+ Title,
1581
+ Tr,
1582
+ Ul,
1583
+ Use,
1584
+ Video
1585
+ };
1586
+
1428
1587
  const Button$1 = 'event.button';
1429
1588
  const ClientX = 'event.clientX';
1430
1589
  const ClientY = 'event.clientY';
@@ -3632,7 +3791,7 @@ const openUri = async (state, options) => {
3632
3791
  const preview = typeof options === 'string' ? false : options.preview ?? false;
3633
3792
  return openInput(state, {
3634
3793
  editorInput: getNormalizedOpenEditorInput(uri),
3635
- focu: typeof options === 'string' ? false : options.focu,
3794
+ focus: typeof options === 'string' ? false : options.focus,
3636
3795
  preview
3637
3796
  });
3638
3797
  };
@@ -3648,7 +3807,7 @@ const retryOpen = async state => {
3648
3807
  if (tab.editorInput) {
3649
3808
  return openInput(state, {
3650
3809
  editorInput: tab.editorInput,
3651
- focu: false,
3810
+ focus: false,
3652
3811
  preview: tab.isPreview
3653
3812
  });
3654
3813
  }
@@ -5235,6 +5394,8 @@ const text = data => {
5235
5394
  };
5236
5395
  };
5237
5396
 
5397
+ new Set(Object.values(VirtualDomElements));
5398
+
5238
5399
  const SetText = 1;
5239
5400
  const Replace = 2;
5240
5401
  const SetAttribute = 3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-area-worker",
3
- "version": "9.20.0",
3
+ "version": "9.21.0",
4
4
  "description": "Main Area Worker",
5
5
  "repository": {
6
6
  "type": "git",