Repository navigation
@stll/folio-react@0.34.0
Minor Changes
- #2376
755cce9Thanks @jan-kubica! - A refusal from the experimental canonical session now says why:CanonicalSessionRefusalErrorcarries aground, either{ gap }for a capability the session does not have yet or{ rule }for a rule the document states, starting withcontentControlLock. 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.CanonicalSessionRefusalErrorno longer has a top-levelgap; readerror.ground.gap.
Patch Changes
-
#2414
bb3018dThanks @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 gainssetRevisionInfo, which rewrites revision metadata with an exact inverse,suggestionRevisionInfosandpendingSuggestionIdsIn. -
#2380
0ee8fd2Thanks @jan-kubica! - Accepting or rejecting a tracked change now honours a content control'sw:lock. A change stays pending as it is when resolving it would change the content of a control locked withcontentLockedorsdtContentLocked, or remove one locked withsdtLockedorsdtContentLocked.FolioDocxReviewer.acceptChangeandrejectChangereturnfalsefor such a change.acceptAll()andrejectAll()resolve every other change and now return{ resolved, skipped }, listing each held change with the reasoncontentControlLock. They previously returned the number of changes resolved, which is nowresolved.- The editor commands
acceptChange,rejectChange,acceptAIEditRevision,rejectAIEditRevision,acceptAllChangesandrejectAllChangesrefuse the same changes.changeResolutionLockViolationandlockHeldRevisionstell 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
d3dc5fdThanks @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
d1774b2Thanks @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.