* feat: Show a display menu on hover for mentions that can be cards
Mentions that can display as a card show an overflow button on hover,
inside the end of the pill or in the top corner of the card. The button
opens a menu to switch between the mention and card display, which
replaces the selection toolbar for these mentions.
* fix: Resolve the mention position on click and hide the button on scroll
The menu looks up the mention position when an item is chosen, as edits
by collaborators can move it while the menu is open. The button follows
the mention when content above it changes and hides when a table is
scrolled.
* feat: Show the mention display button for a selected mention
The button shows for the selected mention as well as the hovered one, so
keyboard users can reach it. Touch devices show it for the selected mention
only. Only the button takes the pointer, so the fade does not block clicks
on short mentions.
* 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
* Redesign search filters
* Design refinement
* Search filter polish: chip states, Text components, Published filter
* Encode search filters as <field>.<operator> URL params
Filters read and write a standard <field>.<operator>=<value> format, a
bare key reads as eq, and the previous dateFilter, statusFilter and
titleFilter params are still read.
* Add custom date ranges to search date filters
Updated, Created and Published get a Custom option that opens a range
calendar in a modal. The range is stored as <field>.gte and <field>.lte
dates and sent to the API as whole days in local time.
* Keep date filter chip shown while its range dialog is open
* Align calendar with modal edges
The calendar had its own 12px padding, so in modals it sat inside the
title and footer edges. The popovers that need the space now pad it.
* Search filter refinements: menu height, chip spacing, steady results line
* Simplify search filters and address review comments
Parse each filter once per URL change, unify URL writes, share status and
date helpers with the server, add a maxHeight prop to MenuContent, ignore
counts from obsolete searches, and show the empty state for filter-only
searches.
* Refine filter chip remove button and skip animation on auto-opened menus
* fix: Keep notices and rules nested in lists and quotes when serialized to Markdown
* fix: Keep the blank line above notices and rules, written per line
* feat: Display links as preview cards
Adds a display attribute to mentions so a link can render either inline
or as a card with image, title and description from its unfurl. Pasting
a URL offers a "Card" option, and selecting a link mention shows a
toolbar to switch between the two displays.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016MJXFgeTUqKhSTriUHfG3z
* feat: Arrow key selection, full width and Return for link cards
Cards fill the document width, hide the blank line below them, are selected
by the up and down arrow keys like images, and Return on a selected card
adds a paragraph below it.
* feat: Display document and collection mentions as cards
Document and collection mentions can be switched to a card from the
selection toolbar. Document cards show the summary, collection and the
first image larger than 100x100. Collection cards show the first line of
the description. On public shares the preview image is signed, as the
share page already signs the attachments of that document. Card images
are hidden until they load and removed if they fail.
* feat: Keep mention cards through Markdown
The card display is written as the link title, so URLs are not changed.
Document and collection cards are written as @ links to their id and
parsed back into mentions.
* refactor: Move mention cards to their own file
Document cards show the collection after the title instead of below it.
* fix: Address review feedback on mention cards
- Include the share id in the document card unfurl URL for root shares.
- Return on a card in a heading adds a paragraph.
- URL cards keep their URL in Markdown, and the server does not narrow
their type.
- Unfurl results apply to the current node, not the node at first render.
- Collection card descriptions stop at the first line break.
* refactor: Reuse existing helpers for mention cards
- Sign the preview image with TextHelper.attachmentsToSignedUrls.
- Check document and collection ids with isUUID.
- Return lines from getFirstText without changing an input array.
* fix: Preserve JSON output for inline mentions
* refactor: Centralize mention selection classes
---------
Co-authored-by: Claude <noreply@anthropic.com>
* fix: Clicking Edit scrolls to the top of the document
* fix: Restore scroll after node views render
* fix: Switch to editing without redrawing the document
* fix: Keep Yjs undo working after switching to editing
* chore: Move plugin-specific integration code into plugins
Core no longer imports from or names the settings of individual plugins.
Plugins now register mention providers, issue status icons, instance URLs,
settings keys, settings and import schemas, and OAuth clients through hooks.
* fix: Recompute embed instance URLs after plugins load and match legacy issue icons by URL
* fix: Skip logo upload jobs queued without a settings path
* chore: Choose issue status icons from the unfurl state
* 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
Move the header row with a CSS scroll-driven animation so the browser updates it in the same frame as the scroll. Browsers without support keep the scroll listener.
* perf: Copy only the patched path when recreating transforms
recreateTransform deep copied the whole document for each patch
operation, and diffArrays compared elements with a generic isEqual. Copy
only the containers on the operation path and compare with a JSON-only
equality check. Revision changesets are about 6x faster.
* Use fast-deep-equal in place of a custom JSON equality check
* Restore isJSONEqual, fast-deep-equal throws on null-prototype attrs
* feat: Allow tables inside notices
Blend table, rule and code colors onto the notice background, keep table
scroll shadows inside the notice, hide full width for tables in notices,
and fit new table columns to the available width.
* fix: Leave room for table row controls in notices
* fix: Blend table grips onto the notice background
* fix: Derive notice content colors from the softer notice styles
* 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
A heading whose text ends in a number could get the same slug as a
numbered duplicate. Heading slugs now come from one HeadingSlugger that
skips taken IDs, and the server section lookup counts nested headings
like the editor does.
The document container and editor exposed their measured widths as inherited
CSS variables, so each frame of a width animation restyled every element in
the document. Full width blocks now use a container unit, and media resizing
measures the editor content width when it is needed.
* 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: Add selection toolbar for video nodes
* fix: Keep video caption on replace, download video as a file
* fix: Drop removed upload progress prop from video replace
* 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
* perf: Coalesce editor React renders into an animation frame
dispatchTransaction ran calculateDir and forceUpdate synchronously on every
transaction, adding a style read and a React render to each keystroke. These
now run in an animation frame, at most once every 50ms.
Refs #14069
* fix: Reset the pending render frame on unmount
StrictMode remounts the same instance, and a stale handle would stop all later renders.
* perf: Render editor UI from observable state instead of forceUpdate
Replace the coalesced animation frame render with an observable editorState.
The editor no longer re-renders its widget tree on every transaction; the
selection toolbar observes the state only while it is active, so updates stay
synchronous and typing with a collapsed caret renders nothing. The floating
toolbar no longer measures the selection while hidden.
Refs #14069