Commit Graph
10499 Commits
Author SHA1 Message Date
Tlntin 488bbb7461 feat: Line-height adjustments for Chinese, Japanese and Korean documents (#13822) 2026-09-22 03:18:17 +00:00
Tom Moor ce33ca5b5f chore: Upgrade react-merge-refs to 3.x (#13841) 2026-09-21 23:14:30 -04:00
Tom Moor e0bbaec12d fix: Editor steals focus when opening a document that was never edited (#13847) 2026-09-21 23:14:13 -04:00
Tom Moor 86041f3d0c Replace react-portal with createPortal (#13842)
* Replace react-portal with createPortal

* Fix HoverPreview positioning by rendering into document.body
2026-09-21 22:49:27 -04: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 8db64ddb04 fix: Prevent update loop in link editor search on focus (#13840)
Fixes OUTLINE-CLOUD-D7M
2026-09-21 21:50:58 -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
dependabot[bot] be6a43991f chore(deps): bump the sentry group with 2 updates (#13826)
Bumps the sentry group with 2 updates: [@sentry/node](https://github.com/getsentry/sentry-javascript) and [@sentry/react](https://github.com/getsentry/sentry-javascript).


Updates `@sentry/node` from 10.74.0 to 10.75.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/10.75.0/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/10.74.0...10.75.0)

Updates `@sentry/react` from 10.74.0 to 10.75.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/10.75.0/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/10.74.0...10.75.0)

---
updated-dependencies:
- dependency-name: "@sentry/node"
  dependency-version: 10.75.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry
- dependency-name: "@sentry/react"
  dependency-version: 10.75.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: sentry
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 20:32:42 -04:00
dependabot[bot] d502fce2de chore(deps): bump the aws group with 5 updates (#13827)
Bumps the aws group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [@aws-sdk/client-s3](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-s3) | `3.1130.0` | `3.1135.0` |
| [@aws-sdk/lib-storage](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/lib/lib-storage) | `3.1130.0` | `3.1135.0` |
| [@aws-sdk/s3-presigned-post](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/packages/s3-presigned-post) | `3.1130.0` | `3.1135.0` |
| [@aws-sdk/s3-request-presigner](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/packages/s3-request-presigner) | `3.1130.0` | `3.1135.0` |
| [@aws-sdk/signature-v4-crt](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/packages/signature-v4-crt) | `3.1130.0` | `3.1135.0` |


Updates `@aws-sdk/client-s3` from 3.1130.0 to 3.1135.0
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-s3/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1135.0/clients/client-s3)

Updates `@aws-sdk/lib-storage` from 3.1130.0 to 3.1135.0
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/lib/lib-storage/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1135.0/lib/lib-storage)

Updates `@aws-sdk/s3-presigned-post` from 3.1130.0 to 3.1135.0
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/s3-presigned-post/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1135.0/packages/s3-presigned-post)

Updates `@aws-sdk/s3-request-presigner` from 3.1130.0 to 3.1135.0
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/s3-request-presigner/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1135.0/packages/s3-request-presigner)

Updates `@aws-sdk/signature-v4-crt` from 3.1130.0 to 3.1135.0
- [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
- [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/signature-v4-crt/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1135.0/packages/signature-v4-crt)

---
updated-dependencies:
- dependency-name: "@aws-sdk/client-s3"
  dependency-version: 3.1135.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws
- dependency-name: "@aws-sdk/lib-storage"
  dependency-version: 3.1135.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws
- dependency-name: "@aws-sdk/s3-presigned-post"
  dependency-version: 3.1135.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws
- dependency-name: "@aws-sdk/s3-request-presigner"
  dependency-version: 3.1135.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws
- dependency-name: "@aws-sdk/signature-v4-crt"
  dependency-version: 3.1135.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: aws
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 20:32:30 -04:00
dependabot[bot] fa5e29a8d1 chore(deps): bump i18next-fs-backend from 2.6.7 to 2.6.8 (#13828)
Bumps [i18next-fs-backend](https://github.com/i18next/i18next-fs-backend) from 2.6.7 to 2.6.8.
- [Changelog](https://github.com/i18next/i18next-fs-backend/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/i18next-fs-backend/compare/v2.6.7...v2.6.8)

---
updated-dependencies:
- dependency-name: i18next-fs-backend
  dependency-version: 2.6.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 20:32:20 -04:00
dependabot[bot] 7e824bf4b1 chore(deps): bump markdown-it from 14.3.1 to 14.3.2 (#13829)
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 14.3.1 to 14.3.2.
- [Changelog](https://github.com/markdown-it/markdown-it/blob/14.3.2/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/14.3.1...14.3.2)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-version: 14.3.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 20:32:01 -04:00
dependabot[bot] b60058eafd chore(deps): bump yjs from 13.6.31 to 13.6.32 (#13830)
Bumps [yjs](https://github.com/yjs/yjs) from 13.6.31 to 13.6.32.
- [Release notes](https://github.com/yjs/yjs/releases)
- [Commits](https://github.com/yjs/yjs/compare/v13.6.31...v13.6.32)

---
updated-dependencies:
- dependency-name: yjs
  dependency-version: 13.6.32
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-21 20:31:49 -04:00
Tom Moor 18a7099e8f fix: Document search trigger fails when tsvector exceeds size limit (#13832)
* fix: Document search trigger fails when tsvector exceeds size limit

* test: Assert previous titles are indexed in the tsvector fallback
2026-09-21 20:31:34 -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 ad04aed6ef fix: Editor content delayed by React 19 Suspense reveal throttle (#13817)
Lazy components now render synchronously once their chunk is loaded and share a
preload promise, so the editor no longer commits a fallback and waits out the
300ms retry throttle. Editor chunks are preloaded from the document route, the
sidebar hover, and the data loader. A lint rule blocks direct imports of the
editor chunk.
2026-09-20 16:54:56 -04:00
Tom Moor 5693562624 fix: Revisions sometimes attributed to the wrong user in collaborative edits (#13809)
* fix: Revision and document attribution to the wrong user in collaborative edits

Capture the editing user synchronously with each Yjs update and persist an
ordered, sequenced collaborator set in Redis so that snapshots and revisions
are attributed to the user who actually made the change.

* fix: Do not fail a committed save when the update event cannot be scheduled

* fix: Consume collaborator attribution when a revision is skipped as identical

* refactor: Add zlatestWithSequence to the Redis adapter
2026-09-20 14:05:50 -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 a7c1907aa6 Strip top-level domain from generated team subdomain (#13816)
* fix: Strip top-level domain from generated team subdomain

* Move subdomain generation into Team.findAvailableSubdomain and reuse in installation
2026-09-20 13:31:39 -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
mehmet turac f9ae2dcd6d fix: Imported attachment keys end in "null" when no name is set (#13750)
uploadAttachments reads the name off alt for images and title for video
and attachment nodes. Both come through as null when the markup doesn't
set one, and String(null) is "null" - 4 chars, so the name.length !== 0
check passes and the node.type.name fallback never runs. getKey then
sticks "null" on the end of the key: uploads/<userId>/<uuid>/null.

Fall back to the node type before the String(). Left the length check in,
it still catches a whitespace-only name. Only hits importers on the
default shouldUploadAttachmentsPerPage(); markdown import opts out.
2026-09-19 10:51:53 -04:00
Tom Moor d22d3137af fix: Crash when pasting code over a selection near the end of a document (#13807)
Fixes OUTLINE-CLOUD-619
2026-09-19 10:15:15 -04:00
Tom Moor 099a0dbc06 Remove CLAUDE.md (#13806) 2026-09-19 14:03:58 +00:00
Tom Moor c17d2c52b3 fix: Patch edit mode drops content spliced inside container blocks (#13794)
* fix: Patch edit mode drops content spliced inside container blocks

* fix: Only join adjacent lists that share attrs other than start number
2026-09-19 09:16:52 -04:00
Tom Moor e62a2f7aeb fix: Permission select text color too dim outside nude variant (#13805) 2026-09-19 12:17:55 +00:00
Tom Moor a27d1244a8 fix: Use xmax to detect inserted subscription in upsert (#13803) 2026-09-19 11:24:55 +00: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 ed7a1e9ffc fix: Validate custom theme colors (#13800) 2026-09-18 17:52:22 -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 6ac407de84 chore: Run server tests with a shared module registry (#13799)
Adds a server-shared Vitest project with isolate disabled and moves every
server test into it by default. Files that mock or reset modules opt out
with a header marker and stay in the isolated project.

Restores env values that leaked between files: the test URL is reset after
each file, and tests that mutate env restore the previous value. The test
server no longer closes the shared sequelize pool.
2026-09-18 17:45:39 -04:00
Tom Moor 3a446d1e37 chore: Speed up CI (#13797)
* chore: Speed up CI with TypeScript 7 and Blacksmith runners

Upgrade TypeScript to 7.0.2, the native compiler, which cuts a full type
check from ~57s to ~12s locally. Yarn is bumped to 4.18.0 because older
versions fail to apply the builtin compat patch to TypeScript 7.

Fix two type errors the stricter compiler surfaces: the collection drop
target used unrelated item and monitor types, and Store.add relied on the
error type of an abstract construct call to satisfy the generic return.

Move CI jobs to Blacksmith runners, with a fallback to GitHub-hosted
runners for forks.

* chore: Match enterprise CI runner sizes

* chore: Persist node_modules on a sticky disk and use more test workers

* chore: Use the preinstalled PostgreSQL in CI instead of a service container

* chore: Skip the setup-node yarn cache when a sticky disk is mounted

* chore: Persist the Node.js toolcache and run server tests in 6 shards

* chore: Disable the setup-node package manager cache on Blacksmith

* chore: Keep pull requests from forks off Blacksmith runners and sticky disks
2026-09-18 17:45:25 -04:00
Tom Moor 9839ad8182 fix: Send analytics events through gtag and track WebMCP tool registration (#13792)
* fix: Send analytics events through gtag and track WebMCP tool registration

* Track WebMCP registration without a tool count
2026-09-18 08:58:01 -04:00
Tom Moor 3c655d55a3 fix: Store group description on creation (#13791) 2026-09-18 08:00:03 -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 Moor d281e991d9 fix: Sidebar selection changes when a Prompt blocks navigation (#13785) 2026-09-17 20:45:01 -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
Tom Moor da6cbc123e feat: Multi-select controls on the child document list (#13782)
* feat: Multi-select controls on the child document list

* Remove redundant selectable gate
2026-09-17 08:04:21 -04:00
Tom Moor 9f7069d083 fix: Reduce gap between archived/deleted banner and document title (#13780)
* fix: Reduce gap between archived/deleted banner and document title

* refactor: Move notice spacing rule to the editor container
2026-09-17 11:59:27 +00:00
Tom Moor 29287f6e1e fix: Table of contents closes immediately when another tab's header is under 700px (#13781) 2026-09-17 07:39:00 -04:00
Tom Moor d195e29651 feat: Show file extensions and print shortcut in the export menu (#13778) 2026-09-17 07:31:06 -04:00
Tom Moor 06a62f096c fix: Hide scrollbars on the suggestion menu (#13779) 2026-09-17 07:29:42 -04:00
Tom Moor 1a0c7f47c8 fix: Backspace inside a notice orphans the emptied paragraph in Chrome (#13770) 2026-09-16 23:48:02 -04:00
Tom Moor 9eb49d76b7 fix: Selection lands after a newly inserted notice instead of inside it (#13768) 2026-09-16 23:19:19 -04:00
Tom Moor 324b2b94ef fix: Validate share id on public share endpoints (#13766)
* fix: Validate share id on shares.sitemap, shares.info, and shares.subscribe

Fixes OUTLINE-CLOUD-CWY

* test: Add regression tests for invalid share ids on shares.info and shares.subscribe

* test: Use an id that fails share slug validation and assert the message
2026-09-17 02:43:57 +00:00
Tom Moor 35fe31e56f test: Use unique subdomains in test factories to prevent sporadic collisions (#13765) 2026-09-16 22:39:25 -04:00
Tom Moor 85deb8934b Fix GitLab webhook integration updates (#13764)
* fix GitLab webhook integration updates

* support shared GitLab webhook credentials
2026-09-16 22:11:24 -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