* Validate awareness identity against connection context
* Validate awareness messages on the sending connection
* Encode real removal states and isolate ownership check in tests
* React 19 upgrade
Bumps react and react-dom to 19.2.8, with the dependency changes React 19
requires: react-is 19, @types/react 19, @types/react-dom 19,
react-helmet-async 3 and react-avatar-editor 15 (which now ships its own
types). framer-motion moves to 13 — its v6 types reference React.ReactHTML,
removed from @types/react 19.
The type changes fall into a few classes:
- The global JSX namespace is gone, so JSX.Element becomes React.JSX.Element
and the custom element declarations move into a module augmentation.
- useRef() now requires an initial value.
- A ref created with a null initial value is typed nullable, so consumers
that accept one are widened to RefObject<T | null>.
- React.ReactChild was removed; tooltips take React.ReactNode.
- Ref callbacks may only return a cleanup function. react-dnd connectors
return the connected node, so useDragRef and useDropRef wrap useDrag and
useDrop and hand back a ref callback.
react-i18next stays on v12: i18next 23 drops compatibilityJSON "v3", which
would rewrite all 64 _plural keys across every locale.
outline-icons, oy-vey and react-waypoint have no release that lists React 19
as a peer. All three render correctly under it; the install reports them as
unmet peers.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* Remove react-helmet and forwardRef
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat: Add reasons for archived and deleted documents
* feat: Add deprecation reasons to archived collections
* fix: Refine deprecation reason display for readers
* feat: Accept reasons when archiving or deleting
* Support reasons in archive and delete MCP tools
* Fix placeholder after clearing content editable text
* Keep the caret before content editable placeholders
* Remove test
* feat: Add archive reasons to the confirmation dialog
* fix: Warn before leaving a document with unsynced edits
* refactor: Move unsynced change tracking into CollaborationProvider
* refactor: Move collaboration event types next to CollaborationProvider
* fix: Pending changes stuck after the collaboration connection is restored
* chore: Log collaboration sync state changes in development
* fix: Report lost local persistence in the leave prompt
* fix: Stop local persistence when the initial read fails
* fix: Stop local persistence when a write aborts
* Remove test
* Show toast with actions when a file download completes
In the desktop app a toast is now displayed when a file finishes
downloading, with the option to open the file or reveal it in the file
manager of the operating system.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kat47mueTm3CUZSbDVfBas
* Guard download bridge calls for older desktop apps
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kat47mueTm3CUZSbDVfBas
* Change protocol in dev for easier testing
* Use standard buttons stacked below the file name in download toast
---------
Co-authored-by: Claude <noreply@anthropic.com>
* fix: New Czech translations
* fix: New French translations
* fix: New Spanish translations
* fix: New Catalan translations
* fix: New Danish translations
* fix: New German translations
* fix: New Hebrew translations
* fix: New Hungarian translations
* fix: New Italian translations
* fix: New Japanese translations
* fix: New Korean translations
* fix: New Dutch translations
* fix: New Polish translations
* fix: New Portuguese translations
* fix: New Swedish translations
* fix: New Turkish translations
* fix: New Ukrainian translations
* fix: New Chinese Simplified translations
* fix: New Chinese Traditional translations
* fix: New Vietnamese translations
* fix: New Portuguese, Brazilian translations
* fix: New Indonesian translations
* fix: New Persian translations
* fix: New Thai translations
* fix: New English, United Kingdom translations
* fix: New Norwegian Bokmal translations
Treat checkbox list attribute changes as structural for id repair, keep
remote transactions on the rebuild path for table decorations, and map
column grip decorations through local inline edits.
* perf: Map editor decorations through inline edits instead of rebuilding
* fix: Repair missing block ids on first edit and keep remote edits on the rebuild path
* test: Add isInlineTransaction query tests
* fix: Crash when image caption blurs during node view teardown
The caption blur handler ran setNodeMarkup using a position from a node
view that had already been destroyed, so the position was undefined and
ProseMirror threw a RangeError walking the document. Guard that the
position still resolves to the same node type before dispatching, for
both image and video captions.
Fixes OUTLINE-CLOUD-D6D
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hggmor4gWv2Ei4pMNeeMh4
* chore: Remove caption blur tests
Native drags (ProseMirror nodes leaving the editor, text, files) are
tracked by react-dnd as native item types. The sidebar drag placeholder
rendered a document row for any active drag, so dragging an editor node
past the editor edge showed an "Untitled" document ghost.
Also makes notice blocks non-draggable.
* fix: History changes indicator missing on load and stuck on "N changes"
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix: Match changes param check to RevisionViewer
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix: Disable change nav buttons until Diff extension is available
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix: Reset changes count only on unmount to avoid flicker
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix: Signed file downloads rejected when an API key lacks scope for the route
Adds a skip option to the auth middleware so routes authorized by other means can ignore credentials on the request, and applies it to signed file requests. Also maps the get method to the read scope.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* Restrict skip option to optional authentication
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* feat: Alt-click toggle disclosure folds or unfolds all toggle blocks
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* Alt toggles nested blocks, Mod toggles all blocks
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* fix: Current version history entry loads forever
Assigning the primary key on a built Revision is a silent no-op in
Sequelize, so revisions.info returned a random UUID instead of the
synthetic latest id the client waits for.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* fix: Apply policies from fetchLatest response
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* fix: Allow document mentions to wrap
* fix: Prevent mention icons from shrinking
* fix: Preserve mention icon and text styles
* fix: Prevent Font Awesome icons from shrinking
* fix: Mermaid diagrams laid out with nodes thousands of pixels apart
Render diagrams with SVG text labels instead of HTML labels, except mindmaps. HTML labels are measured through foreignObject elements that some browsers size incorrectly in Mermaid's hidden render container, inflating node sizes for layout. Also removes the render container that was never passed to Mermaid.
* chore: Clarify Mermaid render container comment
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* fix(editor): preserve toggle fold state across remote and local document edits
Fold state was re-derived from localStorage on every remote collaborative
transaction (and partially on local doc-changing ones), so a silently
failed Storage.set (quota exceeded, blocked storage) left a stale
{fold:true} and the next edit re-folded blocks the user had expanded —
the plugin seed from previous state was ineffective because
toggleFoldPluginKey.getState(newState) is always undefined during the
plugin's own apply.
Track a knownIds set alongside foldedIds and reconcile from the previous
plugin state (the second apply argument, which is reliable): existing
fold decisions are preserved verbatim and storage is only consulted for
toggle blocks seen for the first time.
Fixes#13424
* fix(editor): bound and harden toggle fold state persistence
Fold state was stored under a localStorage key per toggle block id with
no bound on how many keys accumulate, and a write that failed silently
(quota exceeded, storage unavailable) left a stale value that the next
edit would re-fold from. Two complementary changes:
- Storage falls back to session storage when a write to the primary
interface fails at runtime, so values at least survive the browsing
session; reads prefer the fallback copy while it is the most recent
successful write, and successful writes drop it again.
- Toggle fold state now lives in an LRUCache mirrored to local storage,
capping the number of stored keys and evicting the least recently used
fold states first. The persisted key format is unchanged so fold state
continues to sync across tabs via storage events.
Follow-up to #13425, addressing the underlying feedback in #13424.
Co-Authored-By: Claude <noreply@anthropic.com>
* docs: add development workflow best practices to CLAUDE.md
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(editor): rename persistTo option to storage in LRUCache
Rename the `persistTo` cache option to `storage` with a union type of
`"memory" | "localStorage" | "sessionStorage"` per review feedback.
The option is now required instead of optional; callers that only need
an in-memory cache pass `storage: "memory"`.
The private Storage instance field is renamed from `storage` to `store`
to avoid colliding with the new option name, and the mapping from
user-facing values to Storage constructor arguments is handled in
`hydrate()`.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(editor): eliminate redundant findBlockNodes scan in reconcileFoldState
The hot path for every local document change previously called
findBlockNodes twice on the same document — once in reconcileFoldState
and again in createDecorations. Now reconcileFoldState collects the
blocks once and passes them directly to the decoration builder.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(editor): fix createDecorations signature to accept optional blocks parameter
The init and ACTION branches pass a NodeWithPos[] as the second argument,
which previously landed in the foldedIds parameter — a type error missed
due to missing tsc validation.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(editor): correct createDecorations argument order and NodeWithPos import
The createDecorations signature is (doc, foldedIds, blocks?) but both the
init and ACTION branches passed arguments in the old order (doc, blocks,
foldedIds). Because the Set is always truthy, the ?? fallback never fired
and buildDecorationsFromBlocks iterated over strings, crashing on
block.node.attrs. NodeWithPos is also not exported from findChildren.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(editor): address review feedback and fix CI
- Document the default-folded fallback for evicted blocks in the
fold-state cache comment.
- Cast the Storage test mock through unknown so the type check passes.
- Provide in-memory web storage for the shared jsdom test project so the
persistence tests run instead of crashing on a missing implementation.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(editor): scope storage fallback writes and drop unrelated changes
- Track keys mirrored to the storage fallback and clear only those,
rather than clearing all of session storage
- Restore CLAUDE.md as a symlink to AGENTS.md
- Remove the unrelated scrollToNonce changes
- Make the fallback interface private and probe with a namespaced key
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Tom Moor <tom@getoutline.com>
* feat: Add Open Knowledge Format (OKF) export
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* Separate OKF frontmatter from body, use team URL for resource
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* Use OKF initials avatar in export dialog
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* Use GlobeIcon for OKF export format
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* React 18 upgrade
* fix: Force synchronous React rendering in server HTML export
React 18 can defer a legacy ReactDOM.render commit when sync work is
queued, leaving exported component nodes empty. Wrap the render in
flushSync, and flush unmount-scheduled passive effects before global
env cleanup so React never runs without a window.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* refactor: Move server ComponentView to createRoot
ReactDOM.render and unmountComponentAtNode are removed in React 19.
flushSync around root.render keeps the mount synchronous for the
HTML-export path, which reads the DOM immediately after.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Enable CI
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
* fix: New Spanish translations
* fix: New Catalan translations
* fix: New Czech translations
* fix: New Danish translations
* fix: New German translations
* fix: New Hebrew translations
* fix: New Hungarian translations
* fix: New Italian translations
* fix: New Japanese translations
* fix: New Korean translations
* fix: New Dutch translations
* fix: New Polish translations
* fix: New Portuguese translations
* fix: New Swedish translations
* fix: New Turkish translations
* fix: New Ukrainian translations
* fix: New Chinese Simplified translations
* fix: New Chinese Traditional translations
* fix: New Vietnamese translations
* fix: New Portuguese, Brazilian translations
* fix: New Indonesian translations
* fix: New Persian translations
* fix: New Thai translations
* fix: New English, United Kingdom translations
* fix: New Norwegian Bokmal translations
* fix: New French translations
* fix: New Spanish translations
* fix: New Catalan translations
* fix: New Czech translations
* fix: New Danish translations
* fix: New German translations
* fix: New Hebrew translations
* fix: New Hungarian translations
* fix: New Italian translations
* fix: New Japanese translations
* fix: New Korean translations
* fix: New Dutch translations
* fix: New Polish translations
* fix: New Portuguese translations
* fix: New Swedish translations
* fix: New Turkish translations
* fix: New Ukrainian translations
* fix: New Vietnamese translations
* fix: New Portuguese, Brazilian translations
* fix: New Indonesian translations
* fix: New Persian translations
* fix: New Thai translations
* fix: New Norwegian Bokmal translations
* fix: New French translations
* fix: New Spanish translations
* fix: New Catalan translations
* fix: New Czech translations
* fix: New Danish translations
* fix: New German translations
* fix: New Hebrew translations
* fix: New Hungarian translations
* fix: New Italian translations
* fix: New Japanese translations
* fix: New Korean translations
* fix: New Dutch translations
* fix: New Polish translations
* fix: New Portuguese translations
* fix: New Swedish translations
* fix: New Turkish translations
* fix: New Ukrainian translations
* fix: New Chinese Simplified translations
* fix: New Chinese Traditional translations
* fix: New Vietnamese translations
* fix: New Portuguese, Brazilian translations
* fix: New Indonesian translations
* fix: New Persian translations
* fix: New Thai translations
* fix: New English, United Kingdom translations
* fix: New Norwegian Bokmal translations
* fix: New French translations
* fix: New Swedish translations
Dynamic client registration rejected any client sending more than 10
redirect URIs. The limit is now 20, shared between the register and
update schemas, and the error reports how many were received.
OAuth client errors were swallowed without reaching logs or Sentry,
leaving a failing integration invisible beyond its status code. 4xx
responses are now logged with the reason.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat: Support HEIC avatar uploads with in-browser conversion
HEIC and HEIF images picked for an avatar are now converted to JPEG in
the browser before the cropper opens. The browser's own decoder is used
when it supports the format, otherwise a WebAssembly decoder is loaded
on demand.
Also collects the image utilities into an ImageHelper class, fixes the
crop dialog's submit button never disabling, and stops the upload from
forwarding request headers the browser controls itself.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* refactor: Use only the browser's own HEIC decoder
Drops the bundled WebAssembly decoder in favour of the browser's native
support. This removes an LGPL dependency and a 3MB lazy chunk, and lets
the Content Security Policy stay as it was.
Browsers without HEIC support now get a message asking for a JPEG or PNG.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* docs: Add class-level JSDoc to ImageHelper
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* checkpoint
* feat: Convert @ prefixed links to mentions on server Markdown writes
A Markdown link preceded by "@" now becomes a mention when brought in
through the documents API, MCP, or an import, so an exported mention
survives a round trip instead of degrading to a plain link.
The editor rule creates a generic mention carrying the href, and the
type of resource it points at is resolved by the plugin that recognizes
the URL through a new MentionProvider hook. Mentions of external
resources also serialize to their real URL rather than a mention:// URI,
so the reference resolves outside of Outline.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix: Escape values interpolated into rendered mention HTML
markdown-it leaves markup in a link label intact when html is disabled,
so the label and attributes are escaped before being written into the
tag.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Dropping a file in the margins around a document previously did nothing.
react-dnd's window level dragover handler forced dropEffect to "none" for
any target outside of .ProseMirror, so the browser never dispatched a drop
event there.
Heading numbers are drawn by a ProseMirror decoration, and the server
strips all plugin decorations before it serializes, so exported HTML
always came out unnumbered.
Compute the same labels during export and write them to the rendered
headings as a data attribute, which the exported editor styles already
render. A revision takes the preference from the document it belongs to.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>