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