@mdxeditor/editor 1.9.0 → 1.9.2

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.
@@ -15,7 +15,7 @@ function useSuspenseImage(src) {
15
15
  throw new Promise((resolve) => {
16
16
  const img = new Image();
17
17
  img.src = src;
18
- img.onload = () => {
18
+ img.onerror = img.onload = () => {
19
19
  imageCache.add(src);
20
20
  resolve(null);
21
21
  };
package/dist/style.css CHANGED
@@ -1445,7 +1445,7 @@ form._multiFieldForm_1xops_1086 ._formField_1xops_1092 {
1445
1445
  }
1446
1446
 
1447
1447
 
1448
- :root, ._light-theme_arru1_1 {
1448
+ :root, ._light-theme_7hn0e_1 {
1449
1449
  --blue1: hsl(206, 100%, 99.2%);
1450
1450
  --blue2: hsl(210, 100%, 98.0%);
1451
1451
  --blue3: hsl(209, 100%, 96.5%);
@@ -1459,7 +1459,7 @@ form._multiFieldForm_1xops_1086 ._formField_1xops_1092 {
1459
1459
  --blue11: hsl(211, 100%, 43.2%);
1460
1460
  --blue12: hsl(211, 100%, 15.0%);
1461
1461
  }
1462
- ._dark-theme_arru1_1 {
1462
+ ._dark-theme_7hn0e_1 {
1463
1463
  --blue1: hsl(212, 35.0%, 9.2%);
1464
1464
  --blue2: hsl(216, 50.0%, 11.8%);
1465
1465
  --blue3: hsl(214, 59.4%, 15.3%);
@@ -1473,7 +1473,7 @@ form._multiFieldForm_1xops_1086 ._formField_1xops_1092 {
1473
1473
  --blue11: hsl(210, 100%, 66.1%);
1474
1474
  --blue12: hsl(206, 98.0%, 95.8%);
1475
1475
  }
1476
- :root, ._light-theme_arru1_1 {
1476
+ :root, ._light-theme_7hn0e_1 {
1477
1477
  --slate1: hsl(206, 30.0%, 98.8%);
1478
1478
  --slate2: hsl(210, 16.7%, 97.6%);
1479
1479
  --slate3: hsl(209, 13.3%, 95.3%);
@@ -1487,7 +1487,7 @@ form._multiFieldForm_1xops_1086 ._formField_1xops_1092 {
1487
1487
  --slate11: hsl(206, 6.0%, 43.5%);
1488
1488
  --slate12: hsl(206, 24.0%, 9.0%);
1489
1489
  }
1490
- ._dark-theme_arru1_1 {
1490
+ ._dark-theme_7hn0e_1 {
1491
1491
  --slate1: hsl(200, 7.0%, 8.8%);
1492
1492
  --slate2: hsl(195, 7.1%, 11.0%);
1493
1493
  --slate3: hsl(197, 6.8%, 13.6%);
@@ -1501,7 +1501,7 @@ form._multiFieldForm_1xops_1086 ._formField_1xops_1092 {
1501
1501
  --slate11: hsl(206, 6.0%, 63.0%);
1502
1502
  --slate12: hsl(210, 6.0%, 93.0%);
1503
1503
  }
1504
- :root, ._light-theme_arru1_1 {
1504
+ :root, ._light-theme_7hn0e_1 {
1505
1505
  --grass1: hsl(116, 50.0%, 98.9%);
1506
1506
  --grass2: hsl(120, 60.0%, 97.1%);
1507
1507
  --grass3: hsl(120, 53.6%, 94.8%);
@@ -1515,7 +1515,7 @@ form._multiFieldForm_1xops_1086 ._formField_1xops_1092 {
1515
1515
  --grass11: hsl(133, 50.0%, 32.5%);
1516
1516
  --grass12: hsl(130, 30.0%, 14.9%);
1517
1517
  }
1518
- :root, ._light-theme_arru1_1 {
1518
+ :root, ._light-theme_7hn0e_1 {
1519
1519
  --cyan1: hsl(185, 60.0%, 98.7%);
1520
1520
  --cyan2: hsl(185, 73.3%, 97.1%);
1521
1521
  --cyan3: hsl(186, 70.2%, 94.4%);
@@ -1529,7 +1529,7 @@ form._multiFieldForm_1xops_1086 ._formField_1xops_1092 {
1529
1529
  --cyan11: hsl(192, 85.0%, 31.0%);
1530
1530
  --cyan12: hsl(192, 88.0%, 12.5%);
1531
1531
  }
1532
- :root, ._light-theme_arru1_1 {
1532
+ :root, ._light-theme_7hn0e_1 {
1533
1533
  --amber1: hsl(39, 70.0%, 99.0%);
1534
1534
  --amber2: hsl(40, 100%, 96.5%);
1535
1535
  --amber3: hsl(44, 100%, 91.7%);
@@ -1543,7 +1543,7 @@ form._multiFieldForm_1xops_1086 ._formField_1xops_1092 {
1543
1543
  --amber11: hsl(30, 100%, 34.0%);
1544
1544
  --amber12: hsl(20, 80.0%, 17.0%);
1545
1545
  }
1546
- :root, ._light-theme_arru1_1 {
1546
+ :root, ._light-theme_7hn0e_1 {
1547
1547
  --red1: hsl(359, 100%, 99.4%);
1548
1548
  --red2: hsl(359, 100%, 98.6%);
1549
1549
  --red3: hsl(360, 100%, 96.8%);
@@ -1557,51 +1557,55 @@ form._multiFieldForm_1xops_1086 ._formField_1xops_1092 {
1557
1557
  --red11: hsl(358, 65.0%, 48.7%);
1558
1558
  --red12: hsl(354, 50.0%, 14.6%);
1559
1559
  }
1560
- ._bold_arru1_10 {
1560
+ ._bold_7hn0e_10 {
1561
1561
  font-weight: bold;
1562
1562
  }
1563
- ._italic_arru1_14 {
1563
+ ._italic_7hn0e_14 {
1564
1564
  font-style: italic;
1565
1565
  }
1566
- ._underline_arru1_18 {
1566
+ ._underline_7hn0e_18 {
1567
1567
  text-decoration: underline;
1568
1568
  }
1569
- ._bold_arru1_10 {
1569
+ ._bold_7hn0e_10 {
1570
1570
  font-weight: 700
1571
1571
  }
1572
- ._italic_arru1_14 {
1572
+ ._italic_7hn0e_14 {
1573
1573
  font-style: italic
1574
1574
  }
1575
- ._underline_arru1_18 {
1575
+ ._underline_7hn0e_18 {
1576
1576
  text-decoration: underline
1577
1577
  }
1578
- ._strikethrough_arru1_34 {
1578
+ ._strikethrough_7hn0e_34 {
1579
1579
  text-decoration: line-through
1580
1580
  }
1581
- ._underlineStrikethrough_arru1_38 {
1581
+ ._underlineStrikethrough_7hn0e_38 {
1582
1582
  text-decoration: underline line-through
1583
1583
  }
1584
- ._subscript_arru1_42 {
1584
+ ._subscript_7hn0e_42 {
1585
1585
  font-size: .8em;
1586
1586
  vertical-align: sub!important
1587
1587
  }
1588
- ._superscript_arru1_47 {
1588
+ ._superscript_7hn0e_47 {
1589
1589
  font-size: .8em;
1590
1590
  vertical-align: super
1591
1591
  }
1592
- ._code_arru1_52 {
1592
+ ._code_7hn0e_52 {
1593
1593
  background-color: var(--baseBg);
1594
1594
  padding: 1px .25rem;
1595
1595
  font-family: var(--font-mono);
1596
1596
  font-size: 94%
1597
1597
  }
1598
- ._nestedListItem_arru1_59 {
1599
- list-style:none;
1598
+ ._nestedListItem_7hn0e_59 {
1599
+ list-style: none;
1600
+ list-style-type: none;
1601
+ }
1602
+ ._nestedListItem_7hn0e_59:before, ._nestedListItem_7hn0e_59:after {
1603
+ display: none;
1600
1604
  }
1601
- ._listitem_arru1_63 {
1605
+ ._listitem_7hn0e_69 {
1602
1606
  margin: var(--spacing-2) 0;
1603
1607
  }
1604
- ._listItemChecked_arru1_67, ._listItemUnchecked_arru1_68 {
1608
+ ._listItemChecked_7hn0e_73, ._listItemUnchecked_7hn0e_74 {
1605
1609
  position: relative;
1606
1610
  margin-left: 0;
1607
1611
  margin-right: 0;
@@ -1611,10 +1615,10 @@ form._multiFieldForm_1xops_1086 ._formField_1xops_1092 {
1611
1615
  list-style-type: none;
1612
1616
  outline: none;
1613
1617
  }
1614
- ._listItemChecked_arru1_67 {
1618
+ ._listItemChecked_7hn0e_73 {
1615
1619
  text-decoration: line-through;
1616
1620
  }
1617
- ._listItemUnchecked_arru1_68:before, ._listItemChecked_arru1_67:before {
1621
+ ._listItemUnchecked_7hn0e_74:before, ._listItemChecked_7hn0e_73:before {
1618
1622
  content: '';
1619
1623
  width: var(--spacing-4);
1620
1624
  height: var(--spacing-4);
@@ -1625,25 +1629,25 @@ form._multiFieldForm_1xops_1086 ._formField_1xops_1092 {
1625
1629
  background-size: cover;
1626
1630
  position: absolute;
1627
1631
  }
1628
- ._listItemUnchecked_arru1_68[dir='rtl']:before, ._listItemChecked_arru1_67[dir='rtl']:before {
1632
+ ._listItemUnchecked_7hn0e_74[dir='rtl']:before, ._listItemChecked_7hn0e_73[dir='rtl']:before {
1629
1633
  left: auto;
1630
1634
  right: 0;
1631
1635
  }
1632
- ._listItemUnchecked_arru1_68:focus:before, ._listItemChecked_arru1_67:focus:before {
1636
+ ._listItemUnchecked_7hn0e_74:focus:before, ._listItemChecked_7hn0e_73:focus:before {
1633
1637
  box-shadow: 0 0 0 2px var(--accentBgActive);
1634
1638
  border-radius: var(--radius-small);
1635
1639
  }
1636
- ._listItemUnchecked_arru1_68:before {
1640
+ ._listItemUnchecked_7hn0e_74:before {
1637
1641
  border: 1px solid var(--baseBorder);
1638
1642
  border-radius: var(--radius-small);
1639
1643
  }
1640
- ._listItemChecked_arru1_67:before {
1644
+ ._listItemChecked_7hn0e_73:before {
1641
1645
  border: 1px solid var(--accentBorder);
1642
1646
  border-radius: var(--radius-small);
1643
1647
  background-color: var(--accentSolid);
1644
1648
  background-repeat: no-repeat;
1645
1649
  }
1646
- ._listItemChecked_arru1_67:after {
1650
+ ._listItemChecked_7hn0e_73:after {
1647
1651
  content: '';
1648
1652
  cursor: pointer;
1649
1653
  border-color: var(--baseBase);
@@ -1658,30 +1662,36 @@ form._multiFieldForm_1xops_1086 ._formField_1xops_1092 {
1658
1662
  transform: rotate(45deg);
1659
1663
  border-width: 0 var(--spacing-0_5) var(--spacing-0_5) 0;
1660
1664
  }
1661
- ._admonitionDanger_arru1_136, ._admonitionInfo_arru1_136, ._admonitionNote_arru1_136, ._admonitionTip_arru1_136, ._admonitionCaution_arru1_136 {
1665
+ ._nestedListItem_7hn0e_59 {
1666
+ list-style-type: none;
1667
+ }
1668
+ ._nestedListItem_7hn0e_59:before, ._nestedListItem_7hn0e_59:after {
1669
+ display: none;
1670
+ }
1671
+ ._admonitionDanger_7hn0e_151, ._admonitionInfo_7hn0e_151, ._admonitionNote_7hn0e_151, ._admonitionTip_7hn0e_151, ._admonitionCaution_7hn0e_151 {
1662
1672
  padding: var(--spacing-2);
1663
1673
  margin-top: var(--spacing-2);
1664
1674
  margin-bottom: var(--spacing-2);
1665
1675
  border-left: 3px solid var(--admonitionBorder);
1666
1676
  background-color: var(--admonitionBg);
1667
1677
  }
1668
- ._admonitionInfo_arru1_136 {
1678
+ ._admonitionInfo_7hn0e_151 {
1669
1679
  --admonitionBorder: var(--admonitionInfoBorder);
1670
1680
  --admonitionBg: var(--admonitionInfoBg);
1671
1681
  }
1672
- ._admonitionTip_arru1_136 {
1682
+ ._admonitionTip_7hn0e_151 {
1673
1683
  --admonitionBorder: var(--admonitionTipBorder);
1674
1684
  --admonitionBg: var(--admonitionTipBg);
1675
1685
  }
1676
- ._admonitionCaution_arru1_136 {
1686
+ ._admonitionCaution_7hn0e_151 {
1677
1687
  --admonitionBorder: var(--admonitionCautionBorder);
1678
1688
  --admonitionBg: var(--admonitionCautionBg);
1679
1689
  }
1680
- ._admonitionDanger_arru1_136 {
1690
+ ._admonitionDanger_7hn0e_151 {
1681
1691
  --admonitionBorder: var(--admonitionDangerBorder);
1682
1692
  --admonitionBg: var(--admonitionDangerBg);
1683
1693
  }
1684
- ._admonitionNote_arru1_136 {
1694
+ ._admonitionNote_7hn0e_151 {
1685
1695
  --admonitionBorder: var(--admonitionNoteBorder);
1686
1696
  --admonitionBg: var(--admonitionNoteBg);
1687
1697
  }
@@ -1,22 +1,22 @@
1
- const lightTheme = "_light-theme_arru1_1";
2
- const darkTheme = "_dark-theme_arru1_1";
3
- const bold = "_bold_arru1_10";
4
- const italic = "_italic_arru1_14";
5
- const underline = "_underline_arru1_18";
6
- const strikethrough = "_strikethrough_arru1_34";
7
- const underlineStrikethrough = "_underlineStrikethrough_arru1_38";
8
- const subscript = "_subscript_arru1_42";
9
- const superscript = "_superscript_arru1_47";
10
- const code = "_code_arru1_52";
11
- const nestedListItem = "_nestedListItem_arru1_59";
12
- const listitem = "_listitem_arru1_63";
13
- const listItemChecked = "_listItemChecked_arru1_67";
14
- const listItemUnchecked = "_listItemUnchecked_arru1_68";
15
- const admonitionDanger = "_admonitionDanger_arru1_136";
16
- const admonitionInfo = "_admonitionInfo_arru1_136";
17
- const admonitionNote = "_admonitionNote_arru1_136";
18
- const admonitionTip = "_admonitionTip_arru1_136";
19
- const admonitionCaution = "_admonitionCaution_arru1_136";
1
+ const lightTheme = "_light-theme_7hn0e_1";
2
+ const darkTheme = "_dark-theme_7hn0e_1";
3
+ const bold = "_bold_7hn0e_10";
4
+ const italic = "_italic_7hn0e_14";
5
+ const underline = "_underline_7hn0e_18";
6
+ const strikethrough = "_strikethrough_7hn0e_34";
7
+ const underlineStrikethrough = "_underlineStrikethrough_7hn0e_38";
8
+ const subscript = "_subscript_7hn0e_42";
9
+ const superscript = "_superscript_7hn0e_47";
10
+ const code = "_code_7hn0e_52";
11
+ const nestedListItem = "_nestedListItem_7hn0e_59";
12
+ const listitem = "_listitem_7hn0e_69";
13
+ const listItemChecked = "_listItemChecked_7hn0e_73";
14
+ const listItemUnchecked = "_listItemUnchecked_7hn0e_74";
15
+ const admonitionDanger = "_admonitionDanger_7hn0e_151";
16
+ const admonitionInfo = "_admonitionInfo_7hn0e_151";
17
+ const admonitionNote = "_admonitionNote_7hn0e_151";
18
+ const admonitionTip = "_admonitionTip_7hn0e_151";
19
+ const admonitionCaution = "_admonitionCaution_7hn0e_151";
20
20
  const styles = {
21
21
  lightTheme,
22
22
  darkTheme,
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "private": false,
10
10
  "sideEffects": false,
11
11
  "type": "module",
12
- "version": "1.9.0",
12
+ "version": "1.9.2",
13
13
  "description": "React component for rich text markdown editing",
14
14
  "scripts": {
15
15
  "build": "vite build",