Skip to content

@stll/folio-react@0.34.0

Choose a tag to compare

@github-actions github-actions released this 08 Nov 14:55
· 673 commits to main since this release
5df383f

Minor Changes

  • #2376 755cce9 Thanks @jan-kubica! - A refusal from the experimental canonical session now says why: CanonicalSessionRefusalError carries a ground, either { gap } for a capability the session does not have yet or { rule } for a rule the document states, starting with contentControlLock. The editor shows a rule refusal as its own translated message, "This part of the document is locked." in English, which hosts can translate through the editor messages. CanonicalSessionRefusalError no longer has a top-level gap; read error.ground.gap.

Patch Changes

  • #2414 bb3018d Thanks @jan-kubica! - The experimental canonical session supports pending suggestions. A document operation batch in suggested mode records tracked changes that carry the operation's suggestion id, never folding into a suggestion already pending. The review surface lists them as suggestions, including formatting suggestions. Accepting one adopts it as ordinary tracked changes by the accepting author; rejecting one rejects its revisions. Both are journalled, so undo restores the suggestion, and the React and Vue editors route accept and reject to the session. The engine gains setRevisionInfo, which rewrites revision metadata with an exact inverse, suggestionRevisionInfos and pendingSuggestionIdsIn.

  • #2380 0ee8fd2 Thanks @jan-kubica! - Accepting or rejecting a tracked change now honours a content control's w:lock. A change stays pending as it is when resolving it would change the content of a control locked with contentLocked or sdtContentLocked, or remove one locked with sdtLocked or sdtContentLocked.

    • FolioDocxReviewer.acceptChange and rejectChange return false for such a change.
    • acceptAll() and rejectAll() resolve every other change and now return { resolved, skipped }, listing each held change with the reason contentControlLock. They previously returned the number of changes resolved, which is now resolved.
    • The editor commands acceptChange, rejectChange, acceptAIEditRevision, rejectAIEditRevision, acceptAllChanges and rejectAllChanges refuse the same changes. changeResolutionLockViolation and lockHeldRevisions tell a host which changes a lock holds.
    • In the React editor, the toolbar's accept and reject buttons and the context menu's Accept Change and Reject Change are disabled for such a change, with the reason. In the Vue editor, the change card's buttons are.
  • #2416 d3dc5fd Thanks @jan-kubica! - A read-only editor no longer changes comment threads from the review sidebar in the ProseMirror session: resolve, reopen, reply and delete report a read-only edit attempt and publish nothing, as the canonical session already did. Template preview reads only the values the host set itself, so a marker named after an inherited property such as {{constructor}}, or a value that is neither text nor text spans, keeps its authored text.

  • #2350 d1774b2 Thanks @jan-kubica! - Track Changes turned on before the first click into a document now applies to the edits that follow. They used to go in untracked while the button showed tracking on.

  • Updated dependencies [15a57b5, 0f183b9, 092679b, 51443e1, d80f8be, 1f78c5a, c059c72, 6dd481b, 6b17597, b305fdf, d0a0fc7, 43583a8, cf290cf, 06a61cb, 904374b, fa3b0bf, eee1b05, 5051d11, 1dd7133, f21b924, 5b5bf69, 755cce9, 05285fc, bb3018d, 06c4073, 229f36f, 544fb6d, d4c8b0d, 1e274a9, 49f92f8, 347abca, db7686a, 33c708f, 0ee8fd2, e53e82a, c8e91a8, d83837b, 082dd7f, 9ccf3b0, 48777e9, 2d9d34c, 682b38b, 8b3264b, 89f01cf, 87d19aa, 3fea100, 3dfa847, 0ac64d2, 44185f7, 38fefb9, 780dbc1, 77b4891, f537fc8, 81df722, 9283e80, d7de454, 6ff1721, d3dc5fd, 5e57e40, 05463ce, 1786d7f, 0bedd8c, e903801, 6453655, aa961c5, 4d553c2, 8477a98, 11d6ed2, c9c64ae, e2aa240, 1474723, 308af12, 4b5714e, 4cb7cb7, a5228eb, 98682ef]:

    • @stll/folio-core@0.68.0

@stll/folio-react@0.34.0 is published through npm trusted publishing with provenance. The attached tarball is the artifact submitted by this release workflow.