noteloom

What's new

A running list of what's been added, newest first. Every item links to its full doc page — this page is the map, not the manual.

0.6.0

  • Slash menu stays out of the way on phones/tablets — Typing "/" no longer opens the slash-command menu on a real phone/tablet, via the new useTouchOnlyDevice — a static per-device classification, unaffected by a single touch/mouse event, unlike the live-tracking useCoarsePointer. MobileActionBar's own "+" picker (already pinned above the keyboard) is the intended way to insert a block there. A touchscreen laptop is unaffected — its trackpad still opens "/" as usual.
  • A mic button in the floating toolbar — FloatingToolbar and NoteloomEditor take an optional voice prop — pass what useVoiceTyping({ store }) (from noteloom/voice) returns and a dictation toggle appears in the selection toolbar. useVoiceTyping also gains a store option, for calling it from outside an EditorProvider. Omit voice (the default) and none of the voice-typing code enters your bundle.

0.5.0

  • defineBlock / defineInline / defineExtension — Typed, validating factories for authoring a block, inline type, or behavior extension. Pass them to useEditor({ extensions: [...] }); starterKit() is every built-in as one array. The old registerBlocks / registerBuiltInBlocks callbacks still work.
  • Opt-in subpath entry points — Heavy features move to their own imports — noteloom/collab, /persistence, /comments, /versions, /voice, /canvas, /starter-kit, /theme — so a bundle that does not use them drops the code. Every name is still on the main noteloom entry (deprecated).
  • Behavior extensions + a stable ctx facade — defineExtension carries keymap / onBeforeInput / onPaste / setup(ctx), run by <NoteloomEditor> against a documented ctx. smartQuotes() and autoPairBrackets() are the useSmartQuotes / useAutoPairBrackets behaviors in this form.
  • One canonical document format — editor.toJSON() returns the simple self-contained shape ({ version, blocks }); useEditor({ doc }) accepts either it or the internal graph, auto-detected. A versioned JSON Schema is published, and { format: "internal" } is the escape hatch.
  • npx noteloom new — Scaffold a block or inline type from a template: npx noteloom new block <name> / new inline <name>.
  • Framework-free core, smaller default bundle — The engine no longer imports React (lint-enforced); the multi-entry build ships shared code as chunks so the common case is lighter.
  • Default-theme auto-injection is deprecated — It still injects automatically, with a one-time dev console warning. A future major will stop — add import "noteloom/theme" now, or theme="none" if you style the editor yourself.

0.3.3

  • Configurable file uploads — A new uploadFile option sends embed-block files to your own server/S3/storage instead of inlining them as data: URLs — shows an "Uploading…" state, rejects cleanly on error.
  • Voice typing in embedded webviews — A new engine option lets you supply your own recognition backend for Tauri/Electron, where the browser Speech API is absent or silently broken.
  • Ctrl/Cmd+S save shortcut — usePersistedDocument now intercepts the browser’s own save dialog and saves immediately; flush() also now returns a Promise that resolves once the write lands.
  • Smart quotes & auto-pair brackets — Two opt-in typing-behavior hooks (useSmartQuotes / useAutoPairBrackets); 0.5 also ships them as smartQuotes() / autoPairBrackets() extensions.
  • Code block line numbers — A showLineNumbers option renders a display-only line-number gutter.
  • Mentionable custom field types — End users creating their own select field type in-editor can now also make it reachable via "@", not just code-defined ones.
  • Collaboration-aware people list — addPerson/updatePerson/removePerson/usePeople — real, synced document data everyone editing together sees the same version of, meant as an Assignee field’s options source.
  • Faster, smoother Select dropdowns — Every dropdown/combobox (custom field types, table select columns) is now windowed/virtualized — scrolls smoothly regardless of option count. An inserted select/mention chip also now auto-opens its picker immediately instead of requiring a second click.

0.3.1

  • Version history, reworked — Now a self-contained <VersionHistory docId /> component — Google Docs-style automatic capture (no manual "save" step), author attribution via currentUserId, and a word-level diff view.

0.3.0

  • Comments — Select a range, leave a comment — built-in composer/popover/panel, or full control via onComment.
  • Templates — Reusable block snippets insertable via "/", plus starter document templates.
  • Version history — Point-in-time document snapshots, periodic or manual, with one-click restore.

0.2.0

Upgrading is always npm install noteloom@latest — the useEditor()/<NoteloomEditor /> surface itself has never had a breaking change across any release above.
0.3.1 removed createPeriodicVersionSnapshotter — if you called it directly (rather than through the old manual version-history pattern shown in the 0.3.0 announcement post below), switch to <VersionHistory docId /> or createAutoVersionHistory; see Version history for the replacement.

See the 0.3.1 and 0.3.0 announcement posts for the full write-ups with code examples.