Repository navigation
@stll/folio-react@0.34.1
Patch Changes
-
#2506
059c99fThanks @jan-kubica! - A change the experimental canonical session cannot make yet now shows a translated message from the folio catalog ("This change can't be made here yet.") instead of the session's internal description.canonicalRefusalNotice(ground, translate)no longer takes the session's message: every ground reads a catalog key, and the neweditor.changeUnavailablemessage is in every shipped locale. The session's message stays on the error passed toonError. -
#2501
fa82c15Thanks @jan-kubica! - Typing in the experimental canonical session no longer copies the whole document after each edit to bring the header, footer and note editors up to date: they read the session's document, which each edit replaces. A change notification now makes one copy for the host instead of three. -
#2510
d97919fThanks @jan-kubica! - Dragging a table's column border, right edge or row border now resizes the table in the experimental canonical session, in React and Vue, instead of being refused. A resize is a command (columnResizeCommand,rightEdgeResizeCommand,rowResizeCommand) that the hosts run through the editor; the session applies it as the grid and row and cell formatting edits it makes, records it as a revision while suggesting, and undoes it. -
#2494
a42d8eeThanks @jan-kubica! - A keystroke in the React editor no longer re-renders the editor to hide the caret while the typed text lays out again: the selection overlay is hidden directly and shown again with the next caret.getFolioCaretViewportRectreturnsnullwhile the caret is hidden this way, as it did when the caret was cleared. -
#2465
cbce650Thanks @jan-kubica! - Comment edits are part of the editor's undo history. Deleting a thread (with its replies and anchors), resolving or reopening it, replying and adding a comment can each be undone and redone, in React and Vue, and the save writes the restored threads. Accepting or rejecting a change that removes everything a comment covers removes the comment with it, in the same undo step, and each accept or reject is an undo step of its own. Comments that document operations add join the editor's threads in the operation's own transaction, so undoing the operation removes them too. With a controlledcommentsprop, undo and redo report the restored list throughonCommentsChange. New in core:@stll/folio-core/prosemirror/commentRecords. -
#2514
038646bThanks @jan-kubica! - Typing no longer makes the browser rebuild paint data for the whole hidden editor twice per keystroke: the input anchor that follows the caret removed its transform to measure and set it again, and now measures in place and writes only when its offset changes. -
#2530
83eca02Thanks @jan-kubica! - The input method's candidate window stays beside the text being composed. The box that clips the hidden editor is now kept at its scroll origin, so the browser revealing the caret no longer moves the composition away from where it is painted. -
#2525
b922b4fThanks @jan-kubica! - The editor positions a painted element carries are read and written through one module,utils/paintedPositions, and a lint rule keeps every other reader off the attributes. Painted output is unchanged, except that a table cell whose last block has no end position no longer carries the text "undefined" as its end. -
#2469
018198eThanks @jan-kubica! - A comment that a pending suggestion proposes is no longer saved on its own. The saved package holds back the suggested text, and now the comment's thread too, so reopening the file no longer shows a card with nothing to point at. Accepting the suggestion saves both.withHostCommentThreadstakes the comment ids the editor's document anchors, and leaves out a thread that the editor anchors but the saved document does not. -
#2474
67b4185Thanks @jan-kubica! - Typing in the React editor commits React updates less often: about 2 commits per keystroke instead of 5 on a long contract. Caret and selection geometry, overlay rectangles, toolbar context and the outline keep the value they hold when a keystroke produces an equal one, so an unchanged value no longer re-renders and commits. Each commit made while the editor has focus reads the editor's whole document structure to save the selection, so fewer commits make typing in long documents faster. -
#2464
b3176d2Thanks @jan-kubica! - The Vue editor saves the comment threads its sidebar shows: added comments, replies, resolutions and deleted threads now reach the saved document, andgetDocument()returns them, as in React. Both editors write their threads through one helper,withHostCommentThreads. -
Updated dependencies [
a2afcb1,c850dcd,348cc23,46dda37,c850dcd,cb82e3a,bcee67a,17f7f28,9fad4c9,c850dcd,059bb5c,5679c59,892aafa,7924362,059c99f,217941f,49a28c4,aaa7474,95488ec,bf42917,fa82c15,d97919f,97b5ca5,a42d8ee,ce6733d,cbce650,8aba24a,0b98ce9,32e7052,ff9b892,46dd26f,a31cf4c,038646b,83eca02,5e5824b,97167fc,cdf13e7,4e28f6b,aa33ac1,4fef6cc,9c33010,b922b4f,018198e,49dab25,a5c78ac,bb6a653,2711d93,0df0787,3420da1,50448ad,d8eb0ed,b6be1b9,11a46ec,f42e5be,a98b594,db7d15f,31832a7,3bc0f8d,b3176d2]:- @stll/folio-core@0.69.0
@stll/folio-react@0.34.1 is published through npm trusted publishing with provenance. The attached tarball is the artifact submitted by this release workflow.