erl-mathtextx-editor 0.1.7 → 0.1.9
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/CHANGELOG.md +157 -0
- package/README.md +268 -253
- package/dist/{CellPropertiesDialogImpl-HPT77uxM.js → CellPropertiesDialogImpl-DBgs-7H9.js} +1 -1
- package/dist/{ContentViewer-CWZ30KYR.js → ContentViewer-CsFSAN_B.js} +15 -15
- package/dist/ImageInsertDialog-B24KHrgt.js +238 -0
- package/dist/{InsertTableDialogImpl-DZrLgDKN.js → InsertTableDialogImpl-B6_PRu5m.js} +1 -1
- package/dist/{LinkDialogImpl-DTHugWZM.js → LinkDialogImpl-BTA8u_qQ.js} +60 -45
- package/dist/TablePropertiesDialogImpl-CuRRWS4H.js +56 -0
- package/dist/{TableTemplatesDialogImpl-D0sFSAKl.js → TableTemplatesDialogImpl-CU8seEdV.js} +1 -1
- package/dist/assets/erl-mathtextx-editor.css +1 -1
- package/dist/assets/viewer.css +1 -1
- package/dist/components/TablePropertiesDialog.d.ts +4 -0
- package/dist/components/TablePropertiesDialogImpl.d.ts +11 -0
- package/dist/core/extensions.d.ts +6 -0
- package/dist/erl-mathtextx-editor.js +14 -13
- package/dist/erl-mathtextx-editor.umd.cjs +163 -153
- package/dist/extensions/CustomIndent.d.ts +10 -0
- package/dist/extensions/IndentBackspace.d.ts +2 -0
- package/dist/extensions/SlashGraph.d.ts +2 -0
- package/dist/extensions/TableAlignPlugin.d.ts +7 -0
- package/dist/{index-CLGg8QXp.js → index-CB1g0gXh.js} +177 -199
- package/dist/index-UCSefQk0.js +53830 -0
- package/dist/index.d.ts +2 -0
- package/dist/math/MathFieldView.d.ts +5 -0
- package/dist/{tiptap-Bc1mIOtx.js → tiptap-K3rU-Wjn.js} +4325 -3155
- package/dist/utils/logger.d.ts +40 -0
- package/dist/viewer.js +1 -1
- package/package.json +7 -18
- package/dist/ImageInsertDialog-DzLFhSDK.js +0 -217
- package/dist/index-Ci20X1Rj.js +0 -5281
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `erl-mathtextx-editor` will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.1.9] - 2026-04-01
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **README Not Showing on NPM** — Added `README.md`, `CHANGELOG.md`, and `LICENSE` to `files` array in package.json
|
|
12
|
+
- **TypeScript Errors** — Added proper type annotations to `CustomTableView` class parameters
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- **Package Files** — Expanded `files` field from `["dist"]` to `["dist", "README.md", "CHANGELOG.md", "LICENSE"]`
|
|
16
|
+
- **Version Bump** — 0.1.8 → 0.1.9 (previous version had missing README on npm)
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## [0.1.8] - 2026-04-01
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
- **Documentation Consistency** — Updated all .md files to reflect current version
|
|
24
|
+
- **CONTRIBUTING.md** — Fixed duplicate "Development Workflow" section and numbering issues
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
- **Version Bump** — 0.1.7 → 0.1.8 (previous version already published)
|
|
28
|
+
- **Documentation Sync** — All markdown files now reference v0.1.8 consistently
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## [0.1.7] - 2026-03-31
|
|
33
|
+
|
|
34
|
+
### Added
|
|
35
|
+
- **Code Block Syntax Highlighting** — Added `@tiptap/extension-code-block-lowlight` with lowlight for syntax highlighting in code blocks
|
|
36
|
+
- Supports 100+ programming languages
|
|
37
|
+
- Dark theme with syntax colors (keywords, strings, numbers, comments, functions, etc.)
|
|
38
|
+
- Works in both editor and viewer
|
|
39
|
+
- **Table Column Resize** — TipTap built-in `resizable: true` for column width adjustment
|
|
40
|
+
- **Cell Selection Highlight** — Light blue background with dashed border when selecting multiple cells for merge
|
|
41
|
+
- **Collapsible Details/Summary** — CSS styles ready for TipTap v3 details extension
|
|
42
|
+
|
|
43
|
+
### Fixed
|
|
44
|
+
- **Table Selection Visibility** — Fixed `.selectedCell` CSS selector to work with TipTap's default table structure
|
|
45
|
+
- **DOM Nesting Warning** — Removed invalid `<div>` inside `<tbody>` structure
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
- **Removed Duplicate Dependencies** — Removed 16 packages already included in `@tiptap/starter-kit`:
|
|
49
|
+
- `@tiptap/extension-bold`, `bullet-list`, `code-block`, `document`
|
|
50
|
+
- `@tiptap/extension-dropcursor`, `gapcursor`, `hard-break`, `heading`
|
|
51
|
+
- `@tiptap/extension-history`, `horizontal-rule`, `italic`, `list-item`
|
|
52
|
+
- `@tiptap/extension-ordered-list`, `paragraph`, `strike`, `text`
|
|
53
|
+
- **Code Organization** — Extracted inline extensions to separate files:
|
|
54
|
+
- `IndentBackspace` → `src/extensions/IndentBackspace.ts`
|
|
55
|
+
- `SlashGraph` → `src/extensions/SlashGraph.ts`
|
|
56
|
+
|
|
57
|
+
### Internal
|
|
58
|
+
- Cleaner dependency tree with reduced bundle overhead
|
|
59
|
+
- Better code maintainability with separated extension files
|
|
60
|
+
|
|
61
|
+
## [0.1.6] - 2026-03-31
|
|
62
|
+
|
|
63
|
+
### Fixed
|
|
64
|
+
- **Backspace Join Behavior** — Backspace at start of paragraph now properly joins with previous paragraph when no indentation exists
|
|
65
|
+
- **Tab Key Dual Behavior** — Tab now inserts 4 spaces when cursor is in the middle of a paragraph, and indents paragraph when cursor is at the start
|
|
66
|
+
- **Tab Character Rendering** — Added `white-space: pre-wrap` to editor and viewer CSS for consistent whitespace display
|
|
67
|
+
- **Indent Extension Conflict** — Created CustomIndent extension to override base package Tab keyboard shortcuts that were conflicting with custom handlers
|
|
68
|
+
|
|
69
|
+
### Added
|
|
70
|
+
- **CustomIndent Extension** — New extension that extends `@weiruo/tiptap-extension-indent` and removes its Tab keyboard shortcuts to prevent conflicts
|
|
71
|
+
- **Improved IndentBackspace** — Now checks actual indent level before attempting outdent, allowing default joinBackward behavior when no indentation exists
|
|
72
|
+
|
|
73
|
+
### Changed
|
|
74
|
+
- Enhanced Tab key behavior for better UX (similar to Notion/modern editors)
|
|
75
|
+
- Improved paragraph joining behavior to match expected editor behavior
|
|
76
|
+
|
|
77
|
+
## [0.1.5] - 2026-03-26
|
|
78
|
+
|
|
79
|
+
### Added
|
|
80
|
+
- **Custom CSS Tooltips** - Replace native browser tooltips
|
|
81
|
+
- Instant appearance (no delay)
|
|
82
|
+
- Dark-themed with smooth fade-in animation
|
|
83
|
+
- Arrow indicator pointing to button
|
|
84
|
+
- Consistent styling across all browsers
|
|
85
|
+
- **Tactile Button Feedback** - Physical feedback on click
|
|
86
|
+
- Toolbar buttons: scale(0.96) on click
|
|
87
|
+
- Math buttons: scale(0.96) on click
|
|
88
|
+
- Dialog buttons: scale(0.98) on click
|
|
89
|
+
- Provides satisfying micro-interaction
|
|
90
|
+
|
|
91
|
+
### Changed
|
|
92
|
+
- Use `data-tooltip` attribute instead of native `title`
|
|
93
|
+
- Enhanced button `:active` states across all components
|
|
94
|
+
|
|
95
|
+
## [0.1.4] - 2026-03-26
|
|
96
|
+
|
|
97
|
+
### Added
|
|
98
|
+
- **Export MathTypeDialog** - Now available for standalone import
|
|
99
|
+
- `import { MathTypeDialog } from 'erl-mathtextx-editor'`
|
|
100
|
+
- Export both component and `MathTypeDialogProps` type
|
|
101
|
+
- **Export TemplatePanel** - Now available for standalone import
|
|
102
|
+
- `import { TemplatePanel } from 'erl-mathtextx-editor'`
|
|
103
|
+
- Export both component and `TemplatePanelProps` type
|
|
104
|
+
|
|
105
|
+
### Changed
|
|
106
|
+
- **Package naming consistency** - All documentation now uses `erl-mathtextx-editor` (not `@mathtextx/editor`)
|
|
107
|
+
- **Static imports** - MathTypeDialog and TemplatePanel now statically imported in MathTextXEditor.tsx
|
|
108
|
+
- **Removed Suspense wrappers** - No longer needed for static imports
|
|
109
|
+
- **Build warnings fixed** - Eliminated dynamic/static import conflict warnings
|
|
110
|
+
|
|
111
|
+
### Fixed
|
|
112
|
+
- Build warnings about dual import patterns
|
|
113
|
+
- Documentation inconsistencies across README, docs, and integration guides
|
|
114
|
+
|
|
115
|
+
### Internal
|
|
116
|
+
- ImageInsertDialog remains internal (not exported)
|
|
117
|
+
- Optimized bundle structure
|
|
118
|
+
|
|
119
|
+
## [0.1.3] - 2026-03-19
|
|
120
|
+
|
|
121
|
+
### Published
|
|
122
|
+
- Initial release to npm registry
|
|
123
|
+
- Package: `erl-mathtextx-editor@0.1.3`
|
|
124
|
+
|
|
125
|
+
## [0.1.0] - 2026-03-03
|
|
126
|
+
|
|
127
|
+
### Added
|
|
128
|
+
|
|
129
|
+
- **MathTextXEditor** — React component utama untuk rich text + math editing
|
|
130
|
+
- TipTap/ProseMirror editor engine
|
|
131
|
+
- MathLive visual math input (inline & block)
|
|
132
|
+
- Toolbar: bold, italic, underline, strike, heading, lists, table, image, link, code, blockquote
|
|
133
|
+
- Math toolbar: fraction, sqrt, power, subscript, sum, integral, limit, matrix, symbols
|
|
134
|
+
- Symbol palette dengan 100+ simbol matematika
|
|
135
|
+
- Graph extension (function plotting via Function Plot)
|
|
136
|
+
- Keyboard shortcut: Ctrl+S untuk save
|
|
137
|
+
- Slash command: `/graph` untuk insert grafik
|
|
138
|
+
|
|
139
|
+
- **ContentViewer** — Komponen read-only untuk menampilkan konten di frontend quiz/ujian
|
|
140
|
+
- XSS sanitization via DOMPurify
|
|
141
|
+
- Auto-render rumus matematika via KaTeX
|
|
142
|
+
- Standalone CSS (`content-style.css`) untuk styling konsisten
|
|
143
|
+
|
|
144
|
+
- **Template Library** — 60+ preset rumus matematika
|
|
145
|
+
- Kategori: Algebra, Geometri, Trigonometri, Kalkulus, Statistik, Fisika, Kimia
|
|
146
|
+
- Filter by level: SD, SMP, SMA
|
|
147
|
+
- Utility functions: `getTemplatesByLevel()`, `getTemplatesByCategory()`, `getTemplateCategories()`
|
|
148
|
+
|
|
149
|
+
- **Serializer Utilities**
|
|
150
|
+
- `getHTML()` — export konten sebagai HTML
|
|
151
|
+
- `toCompatibleHTML()` — konversi ke format CKEditor-compatible
|
|
152
|
+
- `sanitizeCKEditorHTML()` — bersihkan HTML dari CKEditor
|
|
153
|
+
|
|
154
|
+
- **Build Output**
|
|
155
|
+
- ES Module (`mathtextx-editor.js`)
|
|
156
|
+
- UMD (`mathtextx-editor.umd.cjs`)
|
|
157
|
+
- TypeScript declarations (`.d.ts`)
|