mirror of
https://github.com/danderson1988/visual-notes.git
synced 2026-07-22 08:30:17 +00:00
- Converts all 24 activeDocument.createElementNS(...) SVG element creations to Obsidian's createSvg() helper (obsidianmd/prefer-create-el). The previous pass fixed the redundant type assertions on these calls but missed that the creation method itself was still non-idiomatic. - save-queue.ts now genuinely uses window.setTimeout/clearTimeout instead of reverting to bare globals: its test moved to the jsdom environment (which provides a real `window`) rather than avoiding window.* in production code for the sake of a Node-only test environment. - Implements PluginSettingTab.getSettingDefinitions() so every setting is indexed in Obsidian's settings search on 1.13.0+, alongside the existing display() imperative renderer kept as the documented fallback for Obsidian < 1.13.0. Every setting's construction now lives in one shared buildX(setting) method called from both paths, so they can't drift out of sync. Bumps the obsidian devDependency to 1.13.0 for the new types (pinned below 1.13.1, which has an upstream HistoryHandler typing bug in Menu/Modal/PopoverSuggest). Runtime behavior on Obsidian < 1.13 is unchanged, so minAppVersion stays at 1.7.2 — the new method is simply never called by older versions. |
||
|---|---|---|
| .. | ||
| asset-organize.test.ts | ||
| asset-relink.test.ts | ||
| canvas-format.test.ts | ||
| dated-items.test.ts | ||
| fake-app.ts | ||
| fake-vault.ts | ||
| file-io.test.ts | ||
| kanban-migrate.test.ts | ||
| obsidian-dom-polyfill.ts | ||
| obsidian-stub.ts | ||
| save-queue.test.ts | ||
| template-ids.test.ts | ||
| ui-smoke.test.ts | ||