@powerduck/md-editor 0.8.1 → 0.8.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/README.md CHANGED
@@ -247,6 +247,21 @@ npm run build # vite build + d.ts generation
247
247
 
248
248
  ## Changelog
249
249
 
250
+ ### v0.8.3
251
+
252
+ - **Changed**: Task list checkbox semantics inverted per project convention. `- [ ]` now renders as **checked** (green checkmark); `- [x]` / `- [X]` renders as **unchecked** (empty box). `toggleTaskList()` and all tests updated accordingly.
253
+ - **Improved**: Clicking the @mention or document-link toolbar button without configuring the search hook now logs a clear `console.warn` explaining that `mention.onMentionSearch` / `docLink.onDocSearch` must be provided.
254
+ - **Test**: 310 tests, all passing, zero unhandled errors.
255
+
256
+ ### v0.8.2
257
+
258
+ - **Fixed**: @mention and `/` doc-link dropdowns did not appear. Root cause: v0.8.1 mounted dropdowns inside `.md-editor-root` where ancestor `overflow:hidden` / stacking contexts could clip or misplace `position:fixed` elements. Reverted to `document.body` mounting with `position:fixed`, and added explicit light/dark colors via `data-theme` attribute (no dependency on editor-scoped CSS variables).
259
+ - **Fixed**: Clicking toolbar button icons (SVG) did not open popups. Root cause: `mousedown` event bubbled to `document` and triggered the newly-opened Popup's outside-click handler (because `e.target` was the SVG, not the button). Fixed in two ways: Popup now uses `anchor.contains(target)` instead of `target !== anchor`; toolbar `mousedown` handler calls `e.stopPropagation()`.
260
+ - **Fixed**: Task list checkboxes now render with a clear green checkmark when checked (`- [x]` or `- [X]`). Previously used native `accent-color` (orange) which was hard to distinguish in disabled state. Custom checkbox: gray border when unchecked, solid green with white checkmark when checked.
261
+ - **Added**: Help dialog now includes a "Syntax" section with quick-reference guidance for task lists, @mentions, document links, math, mindmaps, and callouts.
262
+ - **Fixed**: Help dialog and all popup-internal styles no longer use editor-scoped CSS variables (undefined when popup is on `document.body`), ensuring consistent light/dark rendering.
263
+ - **Test**: 310 tests, all passing, zero unhandled errors.
264
+
250
265
  ### v0.8.1
251
266
 
252
267
  - **Fixed**: Toolbar buttons now use `mousedown` + `preventDefault` instead of `click`, preventing the editor from losing focus and collapsing the selection before wrap operations. This fixes the long-standing issue where selecting text and clicking quote/list/other toolbar buttons replaced the selection with placeholder text ("quoted text", "list item").
package/dist/Editor.d.ts CHANGED
@@ -55,10 +55,9 @@ export declare class CodeEditor {
55
55
  insertDocLink(): void;
56
56
  /**
57
57
  * Toggle task list (checkbox) markers on the current line or selected
58
- * lines. If a line already has `- [ ]` or `- [x]`, the marker is removed.
59
- * If a line has `- ` (plain list), it is converted to `- [ ] `. Otherwise
60
- * `- [ ] ` is prepended. Lines with `- [x]` are toggled to `- [ ]` and
61
- * vice versa when all selected lines are task items.
58
+ * lines. Project convention: `- [ ]` = checked (green), `- [x]` = unchecked.
59
+ * If all selected lines are task items: all-checked uncheck all;
60
+ * otherwise check all. Plain lines or `- ` lists get `- [ ] ` prepended.
62
61
  */
63
62
  toggleTaskList(): void;
64
63
  destroy(): void;