overtype 2.0.3 → 2.0.5
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/README.md +1 -1
- package/dist/overtype-webcomponent.esm.js +46 -6
- package/dist/overtype-webcomponent.esm.js.map +2 -2
- package/dist/overtype-webcomponent.js +46 -6
- package/dist/overtype-webcomponent.js.map +2 -2
- package/dist/overtype-webcomponent.min.js +13 -10
- package/dist/overtype.cjs +43 -6
- package/dist/overtype.cjs.map +2 -2
- package/dist/overtype.d.ts +25 -19
- package/dist/overtype.esm.js +43 -6
- package/dist/overtype.esm.js.map +2 -2
- package/dist/overtype.js +43 -6
- package/dist/overtype.js.map +2 -2
- package/dist/overtype.min.js +6 -3
- package/package.json +3 -2
- package/src/overtype-webcomponent.js +5 -1
- package/src/overtype.d.ts +25 -19
- package/src/overtype.js +10 -0
- package/src/styles.js +3 -0
- package/src/themes.js +17 -3
package/dist/overtype.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* OverType v2.0.
|
|
2
|
+
* OverType v2.0.5
|
|
3
3
|
* A lightweight markdown editor library with perfect WYSIWYG alignment
|
|
4
4
|
* @license MIT
|
|
5
5
|
* @author David Miranda
|
|
@@ -1686,16 +1686,22 @@ ${blockSuffix}` : suffix;
|
|
|
1686
1686
|
// White - editor background
|
|
1687
1687
|
text: "#0d3b66",
|
|
1688
1688
|
// Yale Blue - main text
|
|
1689
|
+
textPrimary: "#0d3b66",
|
|
1690
|
+
// Yale Blue - primary text (same as text)
|
|
1691
|
+
textSecondary: "#5a7a9b",
|
|
1692
|
+
// Muted blue - secondary text
|
|
1689
1693
|
h1: "#f95738",
|
|
1690
1694
|
// Tomato - h1 headers
|
|
1691
1695
|
h2: "#ee964b",
|
|
1692
|
-
// Sandy Brown - h2 headers
|
|
1696
|
+
// Sandy Brown - h2 headers
|
|
1693
1697
|
h3: "#3d8a51",
|
|
1694
1698
|
// Forest green - h3 headers
|
|
1695
1699
|
strong: "#ee964b",
|
|
1696
1700
|
// Sandy Brown - bold text
|
|
1697
1701
|
em: "#f95738",
|
|
1698
1702
|
// Tomato - italic text
|
|
1703
|
+
del: "#ee964b",
|
|
1704
|
+
// Sandy Brown - deleted text (same as strong)
|
|
1699
1705
|
link: "#0d3b66",
|
|
1700
1706
|
// Yale Blue - links
|
|
1701
1707
|
code: "#0d3b66",
|
|
@@ -1708,17 +1714,25 @@ ${blockSuffix}` : suffix;
|
|
|
1708
1714
|
// Muted blue - horizontal rules
|
|
1709
1715
|
syntaxMarker: "rgba(13, 59, 102, 0.52)",
|
|
1710
1716
|
// Yale Blue with transparency
|
|
1717
|
+
syntax: "#999999",
|
|
1718
|
+
// Gray - syntax highlighting fallback
|
|
1711
1719
|
cursor: "#f95738",
|
|
1712
1720
|
// Tomato - cursor
|
|
1713
1721
|
selection: "rgba(244, 211, 94, 0.4)",
|
|
1714
1722
|
// Naples Yellow with transparency
|
|
1715
1723
|
listMarker: "#ee964b",
|
|
1716
1724
|
// Sandy Brown - list markers
|
|
1725
|
+
rawLine: "#5a7a9b",
|
|
1726
|
+
// Muted blue - raw line indicators
|
|
1727
|
+
border: "#e0e0e0",
|
|
1728
|
+
// Light gray - borders
|
|
1729
|
+
hoverBg: "#f0f0f0",
|
|
1730
|
+
// Very light gray - hover backgrounds
|
|
1731
|
+
primary: "#0d3b66",
|
|
1732
|
+
// Yale Blue - primary accent
|
|
1717
1733
|
// Toolbar colors
|
|
1718
1734
|
toolbarBg: "#ffffff",
|
|
1719
1735
|
// White - toolbar background
|
|
1720
|
-
toolbarBorder: "rgba(13, 59, 102, 0.15)",
|
|
1721
|
-
// Yale Blue border
|
|
1722
1736
|
toolbarIcon: "#0d3b66",
|
|
1723
1737
|
// Yale Blue - icon color
|
|
1724
1738
|
toolbarHover: "#f5f5f5",
|
|
@@ -1736,6 +1750,10 @@ ${blockSuffix}` : suffix;
|
|
|
1736
1750
|
// Darker charcoal - editor background
|
|
1737
1751
|
text: "#c5dde8",
|
|
1738
1752
|
// Light blue-gray - main text
|
|
1753
|
+
textPrimary: "#c5dde8",
|
|
1754
|
+
// Light blue-gray - primary text (same as text)
|
|
1755
|
+
textSecondary: "#9fcfec",
|
|
1756
|
+
// Brighter blue - secondary text
|
|
1739
1757
|
h1: "#d4a5ff",
|
|
1740
1758
|
// Rich lavender - h1 headers
|
|
1741
1759
|
h2: "#f6ae2d",
|
|
@@ -1746,6 +1764,8 @@ ${blockSuffix}` : suffix;
|
|
|
1746
1764
|
// Hunyadi Yellow - bold text
|
|
1747
1765
|
em: "#9fcfec",
|
|
1748
1766
|
// Brighter blue - italic text
|
|
1767
|
+
del: "#f6ae2d",
|
|
1768
|
+
// Hunyadi Yellow - deleted text (same as strong)
|
|
1749
1769
|
link: "#9fcfec",
|
|
1750
1770
|
// Brighter blue - links
|
|
1751
1771
|
code: "#c5dde8",
|
|
@@ -1758,17 +1778,25 @@ ${blockSuffix}` : suffix;
|
|
|
1758
1778
|
// Light blue-gray - horizontal rules
|
|
1759
1779
|
syntaxMarker: "rgba(159, 207, 236, 0.73)",
|
|
1760
1780
|
// Brighter blue semi-transparent
|
|
1781
|
+
syntax: "#7a8c98",
|
|
1782
|
+
// Muted gray-blue - syntax highlighting fallback
|
|
1761
1783
|
cursor: "#f26419",
|
|
1762
1784
|
// Orange Pantone - cursor
|
|
1763
1785
|
selection: "rgba(51, 101, 138, 0.4)",
|
|
1764
1786
|
// Lapis Lazuli with transparency
|
|
1765
1787
|
listMarker: "#f6ae2d",
|
|
1766
1788
|
// Hunyadi Yellow - list markers
|
|
1789
|
+
rawLine: "#9fcfec",
|
|
1790
|
+
// Brighter blue - raw line indicators
|
|
1791
|
+
border: "#2a3f52",
|
|
1792
|
+
// Dark blue-gray - borders
|
|
1793
|
+
hoverBg: "#243546",
|
|
1794
|
+
// Slightly lighter charcoal - hover backgrounds
|
|
1795
|
+
primary: "#9fcfec",
|
|
1796
|
+
// Brighter blue - primary accent
|
|
1767
1797
|
// Toolbar colors for dark theme
|
|
1768
1798
|
toolbarBg: "#1D2D3E",
|
|
1769
1799
|
// Darker charcoal - toolbar background
|
|
1770
|
-
toolbarBorder: "rgba(197, 221, 232, 0.1)",
|
|
1771
|
-
// Light blue-gray border
|
|
1772
1800
|
toolbarIcon: "#c5dde8",
|
|
1773
1801
|
// Light blue-gray - icon color
|
|
1774
1802
|
toolbarHover: "#243546",
|
|
@@ -2249,6 +2277,8 @@ ${blockSuffix}` : suffix;
|
|
|
2249
2277
|
font-size: 0.85rem !important;
|
|
2250
2278
|
color: #666 !important;
|
|
2251
2279
|
flex-shrink: 0 !important; /* Don't shrink */
|
|
2280
|
+
z-index: 10001 !important; /* Above link tooltip */
|
|
2281
|
+
position: relative !important; /* Enable z-index */
|
|
2252
2282
|
}
|
|
2253
2283
|
|
|
2254
2284
|
/* Dark theme stats bar */
|
|
@@ -2286,6 +2316,7 @@ ${blockSuffix}` : suffix;
|
|
|
2286
2316
|
gap: 4px !important;
|
|
2287
2317
|
padding: 8px !important; /* Override reset */
|
|
2288
2318
|
background: var(--toolbar-bg, var(--bg-primary, #f8f9fa)) !important; /* Override reset */
|
|
2319
|
+
border-bottom: 1px solid var(--toolbar-border, transparent) !important; /* Override reset */
|
|
2289
2320
|
overflow-x: auto !important; /* Allow horizontal scrolling */
|
|
2290
2321
|
overflow-y: hidden !important; /* Hide vertical overflow */
|
|
2291
2322
|
-webkit-overflow-scrolling: touch !important;
|
|
@@ -3359,6 +3390,12 @@ ${blockSuffix}` : suffix;
|
|
|
3359
3390
|
}
|
|
3360
3391
|
this.shortcuts = new ShortcutsManager(this);
|
|
3361
3392
|
this.linkTooltip = new LinkTooltip(this);
|
|
3393
|
+
requestAnimationFrame(() => {
|
|
3394
|
+
requestAnimationFrame(() => {
|
|
3395
|
+
this.textarea.scrollTop = this.preview.scrollTop;
|
|
3396
|
+
this.textarea.scrollLeft = this.preview.scrollLeft;
|
|
3397
|
+
});
|
|
3398
|
+
});
|
|
3362
3399
|
this.initialized = true;
|
|
3363
3400
|
if (this.options.onChange) {
|
|
3364
3401
|
this.options.onChange(this.getValue(), this);
|