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 +14 -36
- package/README.md +453 -448
- package/dist/{CellPropertiesDialogImpl-DZbHddu7.js → CellPropertiesDialogImpl-JG2__RK-.js} +1 -1
- package/dist/{ImageInsertDialog-a8M3Bu9J.js → ImageInsertDialog-BmtubShO.js} +1 -1
- package/dist/{InsertTableDialogImpl-DW6XdEGa.js → InsertTableDialogImpl-B9TOH3MR.js} +1 -1
- package/dist/{LinkDialogImpl-BnwDPNXW.js → LinkDialogImpl-BYg4TdMx.js} +1 -1
- package/dist/{TablePropertiesDialogImpl-0oWYiW79.js → TablePropertiesDialogImpl-BEfLAF3p.js} +1 -1
- package/dist/{TableTemplatesDialogImpl-C4nHsvmY.js → TableTemplatesDialogImpl-aZLEIlHx.js} +1 -1
- package/dist/erl-mathtextx-editor.js +1 -1
- package/dist/erl-mathtextx-editor.umd.cjs +154 -154
- package/dist/{index-CkhZlaGj.js → index-BDLqhZzn.js} +3445 -3428
- package/dist/{index-DY8l0shJ.js → index-BixqDyZL.js} +1 -1
- package/dist/{index-BlrG3sms.js → index-C94Hi5lI.js} +1 -1
- package/package.json +1 -1
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.
|
|
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
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
###
|
|
16
|
+
### Fixed
|
|
36
17
|
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
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
|
-
###
|
|
24
|
+
### Changed
|
|
48
25
|
|
|
49
|
-
- **
|
|
50
|
-
- **
|
|
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
|
|