erl-mathtextx-editor 0.1.8 → 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.
Files changed (2) hide show
  1. package/CHANGELOG.md +157 -0
  2. package/package.json +5 -2
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`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "erl-mathtextx-editor",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Visual math editor component for solutest.id — CKEditor replacement with zero-LaTeX approach",
5
5
  "type": "module",
6
6
  "main": "./dist/erl-mathtextx-editor.umd.cjs",
@@ -20,7 +20,10 @@
20
20
  "./viewer/styles": "./dist/viewer-styles.js"
21
21
  },
22
22
  "files": [
23
- "dist"
23
+ "dist",
24
+ "README.md",
25
+ "CHANGELOG.md",
26
+ "LICENSE"
24
27
  ],
25
28
  "scripts": {
26
29
  "dev": "vite",