erl-mathtextx-editor 0.2.0 → 0.2.3

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,6 +5,50 @@ 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
21
+
22
+ ### Added
23
+
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
34
+
35
+ ### Changed
36
+
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)
46
+
47
+ ### Fixed
48
+
49
+ - **IndentBackspace** — Perbaikan backspace behavior di awal paragraph dengan indentasi
50
+ - **Serializer** — Improved HTML serialization untuk table elements
51
+
8
52
  ## [0.2.0] - 2026-05-13
9
53
 
10
54
  ### Added