erl-mathtextx-editor 0.2.3 → 0.2.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/CHANGELOG.md CHANGED
@@ -5,49 +5,27 @@ All notable changes to `erl-mathtextx-editor` will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [0.2.3] - 2026-05-20
9
-
10
- ### Fixed
11
-
12
- - **MathLive Latex Normalization** — Crash saat `latex` attribute bukan string
13
- - `MathTypeDialog.tsx` — `latex.trim is not a function` → semua `setLatex` sekarang pakai `normalizeLatex()` guard
14
- - `MathFieldView.tsx` — `props.updateAttributes({ latex })` selalu di-normalize ke string
15
- - Auto-fix: jika `latex` attribute terisi object/event (bukan string), otomatis dikoreksi ke string kosong
16
- - React `flushSync` warning dihindari dengan `queueMicrotask` untuk normalization effect
17
- - **MathTypeDialog** — Defensive guard pada `initialLatex` prop dan semua `setLatex` calls
18
- - **MathFieldView** — Sync effect `props.node.attrs.latex` memakai `normalizeLatex()` + `queueMicrotask`
19
-
20
- ## [0.2.2] - 2026-05-20
8
+ ## [0.2.5] - 2026-05-26
21
9
 
22
10
  ### Added
23
11
 
24
- - **🖐️ Draggable Dialogs** — Semua dialog (MathType, Link, Image, Table, Cell Properties, Table Properties, Table Templates) sekarang bisa di-drag bebas
25
- - Hook `useDraggable` untuk drag behavior yang konsisten
26
- - Drag handle di header setiap dialog
27
- - Posisi dialog tersimpan saat drag
28
- - **🌐 Localized Table Dialogs** — Dialog insert/edit table dalam Bahasa Indonesia
29
- - Insert Table, Table Properties, Cell Properties, Table Templates
30
- - Label, placeholder, dan pesan error diterjemahkan
31
- - **🔣 Enhanced Math Symbols** — Symbol palette diperluas
32
- - Tambahan simbol matematika untuk kategori yang ada
33
- - MathToolbar dengan konfigurasi yang lebih fleksibel
12
+ - **useDraggable Hook** — Reusable drag hook for dialog positioning
13
+ - **Table Theme Classes** — CustomTable extension now renders `data-theme` as CSS class (`mtx-table--plain`, etc.)
14
+ - **Popup Clamping** Dialog popups now clamp within viewport bounds
34
15
 
35
- ### Changed
16
+ ### Fixed
36
17
 
37
- - **💅 TipTap Table CSS** — Perbaikan styling table untuk tampilan yang lebih rapi
38
- - Border, spacing, dan hover state yang lebih konsisten
39
- - Resizable column handle yang lebih jelas
40
- - Selected cell highlight yang lebih visible
41
- - **🔧 MainToolbar Refactoring**Arsitektur toolbar data-driven
42
- - Konfigurasi toolbar via `toolbar-config.ts` (Basic/Advanced/Olimpiade)
43
- - Icon SVG ter-ekstrak di `toolbar-icons.tsx`
44
- - Dialog state management terpusat via `useDialogManager` hook
45
- - Kode lebih bersih dan mudah maintain (~430 lines, turun dari 1311)
18
+ - **Math Space Key** — Spacebar now inserts `\,` (LaTeX thin space) in both inline math (MathFieldView) and Equation Editor dialog (MathTypeDialog)
19
+ - Literal spaces were ignored by LaTeX math mode
20
+ - `\text{ }` caused nesting and character escaping on consecutive spaces
21
+ - `\ ` caused cursor ambiguity (next char merged into backslash as `\s`)
22
+ - `\,` avoids all above issues unambiguous, no nesting, proper cursor position
46
23
 
47
- ### Fixed
24
+ ### Changed
48
25
 
49
- - **IndentBackspace** — Perbaikan backspace behavior di awal paragraph dengan indentasi
50
- - **Serializer** — Improved HTML serialization untuk table elements
26
+ - **Toolbar Refactored** — Extracted `toolbar-config.ts`, `toolbar-icons.tsx`, `useDialogManager.ts` from MainToolbar
27
+ - **Dialog Components** — CellProperties, ImageEdit, InsertTable, Link, TableProperties, TableTemplates now use `useDraggable`
28
+ - **Editor CSS** — Refactored editor stylesheet
51
29
 
52
30
  ## [0.2.0] - 2026-05-13
53
31