* feat: Add filtering to tables in the editor
* Show the column filter button on header hover in edit mode
* Keep the filter button shown while its menu is open
* Move focusEditor to its own module
* Anchor the filter menu to the filter button
* Address review feedback on table filtering
* Show the filter button background while its menu is open
* Always show the filter button background with its icon
* Remove value counts and hide Clear when there is no filter
* Translations
* placeholder
* fix: Viewers attributed as editors when their editor repairs remote changes
* fix: Rescan after remote changes and assign block ids when parsing markdown
* chore: Import uuid as generateUuid in ToggleBlock
* refactor: Add RepairPlugin to repair only on local changes, checking remote changes for pending repairs
* fix: Assign block ids on the server so patches keep existing ids, keep unchanged mention ids
* fix: Store API edits in the editor's trailing node form
* feat: Show code block line numbers alongside line wrapping
Render line numbers as a widget at the start of each line so they align
with wrapped lines and stay fixed during horizontal scroll.
* fix: Keep line number gutter size inside table cells
* chore: Prune redundant comments and normalize lint directives
Removes comments that restate the following line and stale TODOs, drops
the passive event listener feature check now that all supported browsers
support it, and renames eslint directives to oxlint.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BehTjuZwKbN5csMCp3H4QH
* fix: Evaluate restricted team domains at validation time
The restricted email provider list was captured when the model loaded, so
it could not follow the hosting environment and the tests that covered it
never reached the model.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BehTjuZwKbN5csMCp3H4QH
* chore: Replace type suppressions with accurate types
Adds a Concrete helper type for registries of abstract classes, declares
missing Sequelize and refractor typings, uses public ProseMirror APIs, a
typed mock context helper in middleware tests, and a StaticLink component
for sidebar rows being edited.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BehTjuZwKbN5csMCp3H4QH
---------
Co-authored-by: Claude <noreply@anthropic.com>
* feat: Render uploading images and videos with their node component
* fix: Insert uploaded block nodes next to the paragraph instead of inside it
* fix: Insert dropped block nodes on the nearest side of the paragraph
* feat: Fade in uploaded images and videos from their placeholder
* feat: Preview the new image while it replaces an existing one
* fix: Keep the placeholder size and preload pasted images after upload
* fix: Move the selection off an image while an upload replaces it
* feat: Play uploaded videos from the local file in the uploading editor
* feat: Display uploaded images from the local file in the uploading editor
* feat: Soften image and video corners, round them fully when selected
* feat: Render uploading attachments with the attachment component
* feat: Show the file size of an attachment while it uploads
* feat: Show upload progress on the placeholder instead of a toast
* fix: Fade the content of an uploading file but not its progress bar
* fix: Keep the local file of an upload when its placeholder is mapped away
* chore: Simplify upload placeholder state and remove unused progress callback
* Remove test
* fix: Address review feedback on upload placeholders
Expose upload progress to assistive technology outside the inert placeholder, free local files when the editor state is replaced, reuse the fadeIn animation and move the video wrapper class to EditorStyleHelper.
* chore: Move image and PDF wrapper class names to EditorStyleHelper
* feat: Scale in an upload placeholder when it appears
* chore: Make the upload placeholder scale-in more subtle
* fix: Repair table cells with invalid spans
Fixes OUTLINE-CLOUD-AG8
Fixes OUTLINE-CLOUD-D9J
* fix: Check every table on the first edit, lowercase JSDoc params
Every remote change is applied as a full document replacement, which
invalidates the column resize handle while the drag is still active.
Releasing the pointer then resolved position -1 and threw.
Cancel the drag when the handle no longer points at a cell.
Fixes OUTLINE-CLOUD-B3R
* feat: Highlight trigger text while suggestion menu is open
Adds an inline decoration around the trigger character and search term
while the block, emoji, or mention menu is open.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix: Multiplayer edits
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat: Add [[ trigger for mentioning or creating a document
Opens a suggestions menu filtered to documents, backed by a title search,
with options to create a new or nested document from the search term.
Generalizes the suggestion machinery to support multi-character triggers,
and extracts the mention menu item builders into app/editor/menus/mention.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix: Trim the mention search term
Spaces are allowed in the search term, so a whitespace-only query rendered
create-document items with an empty title and issued a title search that the
server rejects.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix: Close suggestion menus on a space directly after the trigger
Spaces remain allowed within a search term, they are only rejected as its
first character.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix: Return models from fetchNamedPage
The raw API payload was returned rather than the models added to the store,
so callers that render the result are missing computed properties.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* refactor: Render the document menu from the store
Matches the mention menu and paginated lists, where the request populates the
store and the list is rendered from observables.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat: Order people above documents in the mention menu
Uses a mention specific section so the command bar, where the section holds
user management actions, is unaffected.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix: Hide create document options without a create handler
Editors that do not pass onCreateLink, such as comments, inserted a mention
pointing at a document that was never created.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Avoid full document traversal on every keystroke by mapping decorations
through the transaction when no relevant nodes changed. Uses
changedDescendants to detect when a heading, image, or code_inline-marked
text actually changes; otherwise the existing DecorationSet is mapped to
new positions cheaply.
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
* chore: Replace lodash with es-toolkit
Migrate all direct lodash imports to es-toolkit/compat for a smaller,
faster, lodash-compatible utility library. Transitive lodash usage from
other packages remains unchanged.
* fix: Restore isPlainObject semantics in CanCan policy
The lodash migration aliased `isObject` to `lodash/isPlainObject` and
the codemod incorrectly mapped the local name to es-toolkit's `isObject`,
which also returns true for arrays and functions. This caused condition
objects in policy definitions to be skipped, breaking authorization
checks across the codebase.
* fix: Restore unicode-aware length counting in validators
es-toolkit/compat's size() returns string.length, while lodash's _.size()
counts unicode code points. Switch to [...value].length to preserve the
previous behavior so multi-byte characters like emoji count as one.
* chore: resolve remaining unbound-method lint warnings
Apply targeted fixes per call pattern: arrow wrappers when passing a
method as a callback, arrow-function class fields when the method
doesn't depend on `this`, and `.bind()` when capturing for later
invocation.
Also replaces the rfc6902 hasOwnProperty re-export with a small wrapper
function so callers don't reference an unbound prototype method.
* chore: memoize history.goBack callbacks
Stable identity prevents Button re-renders and avoids re-subscribing
the global keydown handler in RegisterKeyDown when the parent renders.
* chore: Address code quality findings
* Round 2, quality findings
* fix: Add fallback for MediaQueryList.addEventListener in test env
The jsdom test environment doesn't implement addEventListener on
MediaQueryList. Prefer addEventListener but fall back to the
deprecated addListener when unavailable.
* Apply suggested fix to shared/editor/plugins/SuggestionsMenuPlugin.ts from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
* Apply suggested fix to shared/editor/plugins/SuggestionsMenuPlugin.ts from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
* Apply suggested fix to shared/editor/plugins/SuggestionsMenuPlugin.ts from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
---------
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
* fix: This means the single-column table fix never actually works.
* fix: parseInt in map passed index to radix
* fix: Column sizing
* fix: Incorrect corner radius on single column table
* feat: enable commenting on image nodes
* chore: make anchorPlugin a top level plugin
* fix: className
* fix: review
* fix: tsc
* fix: checks
* Tweak menu order to match
---------
Co-authored-by: Tom Moor <tom@getoutline.com>
* Add table cell merge/unmerge functionality
- Add new tableCell menu with merge and unmerge options
- Update SelectionToolbar to show tableCell menu for CellSelection
- Add mergeCells and splitCell commands to Table node
- Add dictionary entries for merge/split cell tooltips
- Use placeholder icons (PlusIcon for merge, MoreIcon for split)
Fixes#6977
* fixes
* fix: Header cells end up floating with some effort
* refactor
* collapse
---------
Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com>
Co-authored-by: Tom Moor <tom@getoutline.com>
* fix: refactor to make configurable
* fix: make it a reusable plugin so that it can be colocated with nodes eligible for placeholders
* fix: cond -> condition
* fix: `pos` -> `$start` as param
* fix: cleanup