overtype 2.1.1 → 2.2.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/README.md +25 -22
- package/dist/overtype-webcomponent.esm.js +1581 -97
- package/dist/overtype-webcomponent.esm.js.map +4 -4
- package/dist/overtype-webcomponent.js +1581 -97
- package/dist/overtype-webcomponent.js.map +4 -4
- package/dist/overtype-webcomponent.min.js +104 -91
- package/dist/overtype.cjs +1551 -94
- package/dist/overtype.cjs.map +4 -4
- package/dist/overtype.d.ts +16 -0
- package/dist/overtype.esm.js +1551 -94
- package/dist/overtype.esm.js.map +4 -4
- package/dist/overtype.js +1551 -94
- package/dist/overtype.js.map +4 -4
- package/dist/overtype.min.js +107 -94
- package/package.json +4 -4
- package/src/icons.js +6 -0
- package/src/link-tooltip.js +22 -67
- package/src/overtype-webcomponent.js +32 -3
- package/src/overtype.d.ts +16 -0
- package/src/overtype.js +272 -36
- package/src/parser.js +9 -3
- package/src/styles.js +36 -28
- package/src/themes.js +14 -0
- package/src/toolbar-buttons.js +23 -0
- package/src/toolbar.js +12 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OverType
|
|
2
2
|
|
|
3
|
-
A lightweight markdown editor library with perfect WYSIWYG alignment using an invisible textarea overlay technique. Includes optional toolbar. ~
|
|
3
|
+
A lightweight markdown editor library with perfect WYSIWYG alignment using an invisible textarea overlay technique. Includes optional toolbar. ~116KB minified with all features.
|
|
4
4
|
|
|
5
5
|
## Live Examples
|
|
6
6
|
|
|
@@ -19,7 +19,7 @@ A lightweight markdown editor library with perfect WYSIWYG alignment using an in
|
|
|
19
19
|
- ⌨️ **Keyboard shortcuts** - Common markdown shortcuts (Cmd/Ctrl+B for bold, etc.)
|
|
20
20
|
- 📱 **Mobile optimized** - Responsive design with mobile-specific styles
|
|
21
21
|
- 🔄 **DOM persistence aware** - Recovers from existing DOM (perfect for HyperClay and similar platforms)
|
|
22
|
-
- 🚀 **Lightweight** - ~
|
|
22
|
+
- 🚀 **Lightweight** - ~116KB minified
|
|
23
23
|
- 🎯 **Optional toolbar** - Clean, minimal toolbar with all essential formatting
|
|
24
24
|
- ✨ **Smart shortcuts** - Keyboard shortcuts with selection preservation
|
|
25
25
|
- 📝 **Smart list continuation** - GitHub-style automatic list continuation on Enter
|
|
@@ -35,7 +35,7 @@ We overlap an invisible textarea on top of styled output, giving the illusion of
|
|
|
35
35
|
|
|
36
36
|
| Feature | OverType | HyperMD | Milkdown | TUI Editor | EasyMDE |
|
|
37
37
|
|---------|----------|---------|----------|------------|---------|
|
|
38
|
-
| **Size** | ~
|
|
38
|
+
| **Size** | ~116KB | 364.02 KB | 344.51 KB | 560.99 KB | 323.69 KB |
|
|
39
39
|
| **Dependencies** | Bundled | CodeMirror | ProseMirror + plugins | Multiple libs | CodeMirror |
|
|
40
40
|
| **Setup** | Single file | Complex config | Build step required | Complex config | Moderate |
|
|
41
41
|
| **Approach** | Invisible textarea | ContentEditable | ContentEditable | ContentEditable | CodeMirror |
|
|
@@ -47,7 +47,7 @@ We overlap an invisible textarea on top of styled output, giving the illusion of
|
|
|
47
47
|
**Choose OverType when you need:**
|
|
48
48
|
- Tiny bundle size (10x smaller than alternatives)
|
|
49
49
|
- Zero dependencies - single file that works immediately
|
|
50
|
-
- Perfect native browser features (undo/redo, mobile keyboards, spellcheck)
|
|
50
|
+
- Perfect native browser features (undo/redo, mobile keyboards, optional spellcheck)
|
|
51
51
|
- Dead-simple integration without build tools
|
|
52
52
|
- Easy to understand, modify, and extend
|
|
53
53
|
- Excellent mobile support with visible markdown syntax
|
|
@@ -464,7 +464,10 @@ new OverType(target, options)
|
|
|
464
464
|
|
|
465
465
|
// Smart lists
|
|
466
466
|
smartLists: true, // Enable GitHub-style list continuation on Enter
|
|
467
|
-
|
|
467
|
+
|
|
468
|
+
// Spellcheck
|
|
469
|
+
spellcheck: false, // Enable browser spellcheck (disabled by default)
|
|
470
|
+
|
|
468
471
|
// Stats bar
|
|
469
472
|
showStats: false, // Enable/disable stats bar
|
|
470
473
|
statsFormatter: (stats) => { // Custom stats format
|
|
@@ -768,32 +771,32 @@ Special thanks to:
|
|
|
768
771
|
|
|
769
772
|
### Core Features & Fixes
|
|
770
773
|
- [Josh Doman](https://github.com/joshdoman) - Fixed inline code formatting preservation ([#6](https://github.com/panphora/overtype/pull/6)), improved code fence detection ([#19](https://github.com/panphora/overtype/pull/19))
|
|
771
|
-
- [kbhomes](https://github.com/kbhomes) - Fixed text selection
|
|
774
|
+
- [kbhomes](https://github.com/kbhomes) - Fixed text selection desync during overscroll ([#17](https://github.com/panphora/overtype/pull/17))
|
|
772
775
|
- [Kristián Kostecký](https://github.com/kristiankostecky) - Fixed toolbar option being ignored in reinit() ([#62](https://github.com/panphora/overtype/pull/62))
|
|
773
|
-
- [Lyric Wai](https://github.com/lyricat) - Fixed double-escaping of links ([#64](https://github.com/panphora/overtype/pull/64)),
|
|
774
|
-
- [kozi](https://github.com/kozi) - Reported link tooltip
|
|
775
|
-
- [1951FDG](https://github.com/1951FDG) - Reported list rendering
|
|
776
|
-
- [nodesocket](https://github.com/nodesocket) - Reported toolbarButtons
|
|
777
|
-
- [Travis Bell](https://github.com/travisbell) - Reported keyboard shortcuts
|
|
776
|
+
- [Lyric Wai](https://github.com/lyricat) - Fixed double-escaping of links ([#64](https://github.com/panphora/overtype/pull/64)), shared code block alignment fix ([#65](https://github.com/panphora/overtype/issues/65))
|
|
777
|
+
- [kozi](https://github.com/kozi) - Reported Firefox link tooltip bug ([#68](https://github.com/panphora/overtype/issues/68)), toolbar positioning ([#69](https://github.com/panphora/overtype/issues/69)), theme CSS variable issues ([#70](https://github.com/panphora/overtype/issues/70), [#71](https://github.com/panphora/overtype/issues/71))
|
|
778
|
+
- [1951FDG](https://github.com/1951FDG) - Reported unordered list rendering bug ([#74](https://github.com/panphora/overtype/issues/74)), suggested showStats() API improvement ([#77](https://github.com/panphora/overtype/issues/77))
|
|
779
|
+
- [nodesocket](https://github.com/nodesocket) - Reported toolbarButtons export issues ([#73](https://github.com/panphora/overtype/issues/73), [#78](https://github.com/panphora/overtype/issues/78))
|
|
780
|
+
- [Travis Bell](https://github.com/travisbell) - Reported keyboard shortcuts bug in ESM build ([#80](https://github.com/panphora/overtype/issues/80))
|
|
778
781
|
|
|
779
782
|
### TypeScript & Framework Support
|
|
780
|
-
- [merlinz01](https://github.com/merlinz01) -
|
|
781
|
-
- [ChasLui](https://github.com/ChasLui) - Web component implementation (
|
|
783
|
+
- [merlinz01](https://github.com/merlinz01) - Contributed TypeScript declaration file ([#20](https://github.com/panphora/overtype/pull/20))
|
|
784
|
+
- [ChasLui](https://github.com/ChasLui) - Web component implementation ([#40](https://github.com/panphora/overtype/pull/40))
|
|
782
785
|
|
|
783
786
|
### New Features & Enhancements
|
|
784
|
-
- [davidlazar](https://github.com/davidlazar) - Suggested view mode feature
|
|
785
|
-
- [Yukai Huang](https://github.com/Yukaii) -
|
|
787
|
+
- [davidlazar](https://github.com/davidlazar) - Suggested view mode feature ([#24](https://github.com/panphora/overtype/issues/24))
|
|
788
|
+
- [Yukai Huang](https://github.com/Yukaii) - Contributed syntax highlighting implementation ([#35](https://github.com/panphora/overtype/pull/35))
|
|
786
789
|
- [Rognoni](https://github.com/rognoni) - Suggested custom toolbar button API ([#61](https://github.com/panphora/overtype/issues/61))
|
|
787
|
-
- [Deyan Gigov](https://github.com/dido739) - Reported checkbox rendering
|
|
790
|
+
- [Deyan Gigov](https://github.com/dido739) - Reported checkbox rendering bug in preview mode ([#60](https://github.com/panphora/overtype/issues/60))
|
|
788
791
|
- [GregJohnStewart](https://github.com/GregJohnStewart) - Suggested data attribute configuration ([#76](https://github.com/panphora/overtype/issues/76))
|
|
789
|
-
- [boris-glumpler](https://github.com/boris-glumpler) - Suggested custom syntax
|
|
792
|
+
- [boris-glumpler](https://github.com/boris-glumpler) - Suggested custom syntax highlighting API ([#79](https://github.com/panphora/overtype/issues/79))
|
|
790
793
|
|
|
791
794
|
### Developer Experience
|
|
792
|
-
- [Ned Twigg](https://github.com/nedtwigg) -
|
|
793
|
-
- [Victor](https://github.com/ViggieM) - Suggested
|
|
794
|
-
- [Bernhard Weichel](https://github.com/bwl21) - Reported mode
|
|
795
|
-
- [Colin Devroe](https://github.com/cdevroe) - Reported
|
|
796
|
-
- [Max Bernstein](https://github.com/tekknolagi) - Fixed typo
|
|
795
|
+
- [Ned Twigg](https://github.com/nedtwigg) - Built gitcasso browser extension using OverType ([#59](https://github.com/panphora/overtype/issues/59))
|
|
796
|
+
- [Victor](https://github.com/ViggieM) - Suggested exportable MarkdownParser ([#58](https://github.com/panphora/overtype/issues/58))
|
|
797
|
+
- [Bernhard Weichel](https://github.com/bwl21) - Reported preview/edit mode sync bug ([#52](https://github.com/panphora/overtype/issues/52))
|
|
798
|
+
- [Colin Devroe](https://github.com/cdevroe) - Reported setTheme() API bug ([#54](https://github.com/panphora/overtype/issues/54))
|
|
799
|
+
- [Max Bernstein](https://github.com/tekknolagi) - Fixed typo on website ([#11](https://github.com/panphora/overtype/pull/11))
|
|
797
800
|
|
|
798
801
|
## License
|
|
799
802
|
|