Commit Graph
2379 Commits
Author SHA1 Message Date
Tom Moor 179d7dd7be fix: Improve table controls around merged cells (#13897)
* wip

* fix: Position grips in merged cells from the rendered layout

* fix: Only merge row and column selections that cover whole rows or columns

* perf: Find merged cell spans without scanning the table map

* refactor: Extract helpers for cells starting in a row or column
2026-09-27 13:10:43 -04:00
Tom Moor 42f29a1a55 feat: Add plan-based feature entitlements (#13896)
* feat: Add plan-based feature entitlements

* feat: Gate audit log behind AuditLog entitlement

* Guard guests

* features
2026-09-27 09:40:50 -04:00
Tom Moor d5bc88f893 perf: Memoize Prosemirror parsing in DocumentHelper (#13892)
Nodes are cached against the content or state they were parsed from, so
repeated helper calls on the same document parse it once. JSON transform
helpers now replace attrs instead of mutating them, as Node.toJSON shares
attrs with the cached node.
2026-09-25 20:57:58 -04:00
Tom MoorandClaude Fable 5.1 abc47b442a feat: Sync group descriptions and re-sync groups on SSO validation (#13889)
* feat: Sync group descriptions and re-sync groups on SSO validation

- Sync group descriptions from group sync providers alongside names
- Lock name and description edits for externally synced groups at the
  API layer and in the edit dialog
- Move group sync into a SyncUserGroupsTask, scheduled from login and
  from ValidateSSOAccessTask after a fresh provider validation
- Add authenticationProviders.startGroupSync for providers that require
  an admin consent flow before group sync can be enabled

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* fix: Make group sync setup generic and deduplicate sync jobs

- Expose groupSyncRequiresSetup from the provider list and use it in the
  settings scene instead of checking for the azure provider name
- Rename the setup redirect query param to groupSync
- Give SyncUserGroupsTask a job id per user authentication so concurrent
  syncs for the same authentication are not queued twice

* Use existing hook

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-25 19:49:26 -04:00
Tom Moor 9e405b50a4 refactor: Attach observers in ref callbacks instead of effects (#13881)
* refactor: Attach observers in ref callbacks instead of effects

Use React 19 ref callback cleanup for the ResizeObserver in Scrollable and
PDF and the IntersectionObserver in useOnScreen, which now returns a ref
callback rather than taking a ref object.

* fix: Remove unused ts-expect-error directives
2026-09-25 07:30:34 -04:00
Tom Moor 9313fd22da Revert "fix(editor): reserve layout space for images (#13850)" (#13885)
This reverts commit 361f4b126d.
2026-09-25 07:12:31 -04:00
Tom Moor 6763206927 fix: Preserve line breaks in Markdown table cells (#13866) 2026-09-24 21:27:32 -04:00
Translate-O-Tron b0fc1e6814 New Crowdin updates (#13767)
* fix: New French translations

* fix: New Spanish translations

* fix: New Polish translations

* fix: New Portuguese translations

* fix: New Swedish translations

* fix: New Turkish translations

* fix: New Ukrainian translations

* 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

* 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

* fix: New Czech translations

* fix: New French translations

* fix: New Spanish 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 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 Persian translations

* fix: New Thai translations

* 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

* fix: New Czech translations

* fix: New French translations

* fix: New Spanish translations

* fix: New German translations

* fix: New Hebrew translations

* fix: New Italian translations

* fix: New Japanese translations

* fix: New Korean 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 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

* 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 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 Chinese Simplified translations
2026-09-24 10:39:27 -04:00
Tom Moor 621b00ffc7 Add uncollapse sidebar button in header (#13872)
* Add collapse button in header

* Upgrade React fix useEffectEvent bug
2026-09-23 23:01:37 -04:00
Tom Moor ad6d39ac55 perf: Render simple read-only comments without an editor view (#13871)
* perf: Render simple read-only comments without an editor view

Read-only editor content made of paragraphs, basic marks, hard breaks,
emoji and lists is rendered from the schema DOMSerializer instead of
mounting a ProseMirror view per comment. Anything needing a node view or
plugin falls back to the full editor. Notification comment previews now
use the same read-only path.

* fix: Forward className on the static editor path
2026-09-23 21:54:33 -04:00
Tom Moor b72fd33e9c fix(editor): Use lazyWithRetry for shared editor lazy components (#13868)
Moves lazyWithRetry to shared/utils so the editor's ColorSwatch and
Mentions components can use it instead of React.lazy, avoiding the
Suspense reveal throttle once the chunk is loaded.
2026-09-23 20:50:37 -04:00
Sathvik3819 361f4b126d fix(editor): reserve layout space for images (#13850) 2026-09-23 23:00:40 +00:00
Tlntin 488bbb7461 feat: Line-height adjustments for Chinese, Japanese and Korean documents (#13822) 2026-09-22 03:18:17 +00:00
Tom Moor 4a2d36e2fa chore: Remove useIsMounted guards that only avoid the unmounted setState warning (#13843)
React 18+ no longer warns on setState after unmount, so the guards in
useRequest, useIdle, ActionButton, useDocumentSave and MultiplayerEditor are
removed. The Mentions guards protect an editor transaction against a destroyed
node view, so they are replaced with an effect-scoped cancel flag. Both
useIsMounted hook files are deleted.

Closes #13839
2026-09-21 22:37:27 -04:00
Tom Moor 70ea374543 fix: Language detection stores nothing for Chinese, Arabic, Persian and other macrolanguages (#13833) 2026-09-21 20:35:45 -04:00
Tom Moor cced36fc01 fix: Tab after a toggle block throws for non-paragraph blocks (#13825)
Fixes OUTLINE-CLOUD-B9M
2026-09-21 07:36:30 -04:00
Tom Moor c3d2ae54c3 Add close button and two-line layout to find panel on mobile (#13818)
* Add close button and two-line layout to find panel on mobile

* Use viewport-relative width for mobile find panel
2026-09-20 17:25:29 -04:00
Tom Moor 4ed1665728 Do not auto-collapse a code block that is most of the document (#13815)
* Do not auto-collapse a code block that is most of the document

* Address review: keep collapseKey private, clarify comment
2026-09-20 13:46:58 -04:00
Tom Moor 57cf871c9a Increase max comment length to 10k characters (#13814) 2026-09-20 11:40:23 -04:00
Tom Moor 2f57a36d50 Validate awareness identity in collaboration service (#13804)
* Validate awareness identity against connection context

* Validate awareness messages on the sending connection

* Encode real removal states and isolate ownership check in tests
2026-09-19 13:24:35 -04:00
Tom MoorandClaude Opus 5 4b4c7d3281 chore: React 19 upgrade (#13562)
* 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>
2026-09-18 22:22:50 -04:00
Tom Moor 7f00defd62 feat: Add archive and deletion reasons (#13784)
* 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
2026-09-18 21:09:35 -04:00
Tom Moor b57d02c4fc fix: Enforce maxLength for all input paths in ContentEditable (#13793)
* fix: Enforce maxLength on paste, drop and IME input in ContentEditable

* fix: Count code points and hold over-limit change during IME composition
2026-09-18 18:28:26 -04:00
Tom Moor f0f8553521 feat: Section header menus in the sidebar (#13801)
* wip

* feat: Share sidebar actions overlay between headers and links, add quick create button
2026-09-18 17:52:16 -04:00
Tom Moor fe409306f4 fix: Warn before leaving a document with unsynced edits (#13738)
* 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
2026-09-17 20:54:06 -04:00
Tom MoorandClaude Opus 5 cc15b088ec feat: Show a toast with actions when a file download completes in the desktop app (#13769)
* 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>
2026-09-17 19:36:47 -04:00
Translate-O-Tron e43ffc061c New Crowdin updates (#13763)
* 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
2026-09-16 22:05:29 -04:00
Tom Moor 143da3ff87 fix: Address review follow-ups for mapped editor decorations (#13762)
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.
2026-09-16 21:45:20 -04:00
Tom Moor 30b8e681cf Add Gmail and Outlook links after email sign-in requests (#13761)
* Add inbox links after email magic-link requests

* Add and align Gmail and Outlook button icons
2026-09-16 21:30:57 -04:00
Tom Moor 07aab19000 perf: Map editor decorations through inline edits instead of rebuilding (#13759)
* 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
2026-09-16 20:44:03 -04:00
Tom Moor 11abb1c752 perf: Filter placeholder candidates before evaluating conditions (#13760) 2026-09-16 20:38:26 -04:00
Tom Moor f852339c57 fix: Remove source uploads after imports (#13757)
* fix: Remove source uploads after imports

* fix: Defer import upload cleanup

* fix: Initialize import cleanup state
2026-09-16 23:58:03 +00:00
dependabot[bot]andTom Moor 0ed4a80336 chore(deps): bump markdown-it and @types/markdown-it (#13743)
* chore(deps): bump markdown-it and @types/markdown-it

Bumps [markdown-it](https://github.com/markdown-it/markdown-it) and [@types/markdown-it](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/markdown-it). These dependencies needed to be updated together.

Updates `markdown-it` from 14.3.0 to 14.3.1
- [Changelog](https://github.com/markdown-it/markdown-it/blob/14.3.1/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/14.3.0...14.3.1)

Updates `@types/markdown-it` from 14.1.2 to 14.2.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/markdown-it)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-version: 14.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: "@types/markdown-it"
  dependency-version: 14.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: align markdown-it rule types

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom@getoutline.com>
2026-09-14 19:31:07 -04:00
Translate-O-Tron b70bb4d02d fix: New Czech translations (#13692) 2026-09-13 15:53:58 -04:00
Tom Moor c2c7200151 fix: Show notice type for list selections (#13721) 2026-09-13 15:42:34 -04:00
Tom MoorandClaude Fable 5.1 2507471f7c fix: Crash when image caption blurs during node view teardown (#13731)
* 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
2026-09-12 23:23:50 -04:00
Tom Moor ab40dda966 fix: Checklist conversion corrupts neighbouring lists (#13724) 2026-09-11 18:44:21 -04:00
Tom Moor 37e790a00d fix: Editor node drags show the sidebar document ghost (#13723)
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.
2026-09-10 22:06:13 -04:00
UmbraCi 040e8332a7 fix(editor): prevent native img drag copying selected images (#13635) 2026-09-09 12:06:10 -04:00
Tom Moor fcfab6452c fix: Links in view mode ignore modifier clicks, drag and keyboard activation (#13689)
* fix: Links in read-only documents follow browser behavior for modifier clicks, drag and keyboard

* Address feedback
2026-09-07 04:29:40 -04:00
Tom MoorandClaude Opus 4.8 70ef12bd27 fix: History changes indicator missing on load and stuck on "N changes" (#13673)
* 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>
2026-09-07 00:48:56 -04:00
Tom MoorandClaude Fable 5.1 90f7091316 fix: Signed file downloads rejected when an API key lacks scope for the route (#13681)
* 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>
2026-09-06 04:05:12 -04:00
Tom MoorandClaude Fable 5.1 d3c8be2dbc feat: Alt/Mod-click toggle disclosure folds nested or all toggle blocks (#13678)
* 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>
2026-09-06 00:45:30 -04:00
Tom MoorandClaude Fable 5.1 07aa125b58 fix: Expand folded toggle blocks when printing (#13677)
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-06 00:11:51 -04:00
Tom MoorandClaude Fable 5.1 7bd59ba1b3 fix: History "Current version" entry never finishes loading (#13669)
* 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>
2026-09-05 18:40:27 -04:00
Tom Moor cd082e7e3b fix: Allow document mentions to wrap (#13639)
* 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
2026-09-05 03:08:31 +00:00
Tom MoorandClaude Fable 5.1 62bfc7b5f5 fix: Markdown list dropped when a plain item precedes a checkbox item (#13665)
Closes #13661

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-04 22:42:31 -04:00
Tom Moor f3f30d1335 fix: Guard null (#13660)
Allow toggling block with selection content
2026-09-04 21:36:18 -04:00
Tom Moor 7e94a38cf6 fix: Editor crash when placeholder targets a position with no node (#13658)
Returning the plugin state instead of undefined keeps the decoration set valid on subsequent transactions.
2026-09-05 00:19:18 +00:00
Tom Moor d40bfc6f09 fix: Cannot sort observable array 2026-09-05 09:13:46 +09:00