revise 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +94 -0
- package/assets/historyMaterializeWorker-B51R08XN.js +612 -0
- package/backend.d.ts +8 -2
- package/backend.js +1 -1
- package/chunks/AgentPageRenderer-CH8kSTJn.js +1 -0
- package/chunks/AgentPageRenderer-P23XVguo.js +1 -0
- package/chunks/AttachmentDocumentImporter-B1WOaa7d.js +1 -0
- package/chunks/AttachmentDocumentImporter-CT_PJp_e.js +1 -0
- package/chunks/{BidiText-C8PBPSQY.js → BidiText-Swm5fl9J.js} +74 -74
- package/chunks/DocumentMutator-btiDK57e.js +31 -0
- package/chunks/{DocumentScrubber-DS4LFDKS.js → DocumentScrubber-CMPfm_HF.js} +1 -1
- package/chunks/{DocumentScrubber-COPepQKE.js → DocumentScrubber-Cm2kH8op.js} +1 -1
- package/chunks/{DocumentScrubber-Cf_QqHhF.js → DocumentScrubber-bJoKijol.js} +1 -1
- package/chunks/DocumentStylesheet-DreoD7sD.js +7 -0
- package/chunks/DocxConverter-BcVG-p5K.js +13 -0
- package/chunks/DocxConverter-D2bO5RE-.js +1125 -0
- package/chunks/DocxConverter-haCfRuWb.js +13 -0
- package/chunks/{DocxGraft-Ba63IRP4.js → DocxGraft-BRKh4mHQ.js} +1 -1
- package/chunks/{DocxGraft-DjERgl-z.js → DocxGraft-BxSQtl12.js} +2 -2
- package/chunks/{DocxGraft-cYlmw4Ab.js → DocxGraft-C9MBQCnf.js} +1 -1
- package/chunks/FileImporter-CszqRfVU.js +1 -0
- package/chunks/FileImporter-DObFoCCn.js +1 -0
- package/chunks/{HtmlConverter-Sd9t49vH.js → HtmlConverter-DwXB4IDh.js} +12 -12
- package/chunks/{MarkdownConverter-BdJgh8xt.js → MarkdownConverter-CUC8GgsS.js} +1 -1
- package/chunks/MathRenderer-DT6GyJXb.js +68 -0
- package/chunks/OdtConverter-7h9HHMpL.js +125 -0
- package/chunks/OdtConverter-Ct4qypJk.js +6 -0
- package/chunks/OdtConverter-DFl__sJc.js +6 -0
- package/chunks/OfficeImportShared-BY6FdZ8d.js +1 -0
- package/chunks/OfficeImportShared-BrZoDM0j.js +30 -0
- package/chunks/OfficeImportShared-Bvm-mOyj.js +1 -0
- package/chunks/PdfConverter-1wyvoT7X.js +21 -0
- package/chunks/PdfConverter-BAoEHILo.js +21 -0
- package/chunks/PdfConverter-CKEvFj11.js +448 -0
- package/chunks/{PdfImportService-CQCgsRX1.js → PdfImportService-BhLPp5uG.js} +2 -2
- package/chunks/{PdfImportService-xl7fstr-.js → PdfImportService-xbzrN__L.js} +2 -2
- package/chunks/RtfConverter-Bxn-enp8.js +15 -0
- package/chunks/RtfConverter-LZPzBDSr.js +15 -0
- package/chunks/RtfConverter-_bacXqr1.js +186 -0
- package/chunks/{TableBorders-Cdkc62cX.js → TableBorders-CwnF3jvH.js} +1 -1
- package/chunks/{TxtConverter-C-oiFUAp.js → TxtConverter-C7FOwHpH.js} +1 -1
- package/chunks/XmlConverter-7oo8oeQB.js +2 -0
- package/chunks/XmlConverter-DGORHJcZ.js +96 -0
- package/chunks/XmlConverter-DeLHReK_.js +2 -0
- package/chunks/ar-ComXvtmh.js +13 -0
- package/chunks/backend-DecaBz-I.js +490 -0
- package/chunks/base64-sSPOzq-u.js +198 -0
- package/chunks/{browser-module-CYGCfEyx.js → browser-module-Dj5o3kuL.js} +1 -1
- package/chunks/{browser-module-DgvTMhpA.js → browser-module-UuM_O36W.js} +1 -1
- package/chunks/{capture-BAJ2in5p.js → capture-1btcWcPF.js} +1 -1
- package/chunks/{carrier-C5VZRMxZ.js → carrier-DQeng6yq.js} +1 -1
- package/chunks/de-BkbpIKxx.js +13 -0
- package/chunks/es-CKkXujOF.js +13 -0
- package/chunks/fil-piIHMc8F.js +13 -0
- package/chunks/{footnoteFlatten-Bekh8ZfM.js → footnoteFlatten-DUQticYy.js} +1 -1
- package/chunks/fr-DuA8qLje.js +13 -0
- package/chunks/{graftExport-CRRm1Oe_.js → graftExport-CYnStOdU.js} +1 -1
- package/chunks/index-2TBhRkX7.js +387 -0
- package/chunks/{index-B1idHquf.js → index-Bf14eTEW.js} +231 -229
- package/chunks/index-BwcX_r62.js +387 -0
- package/chunks/{index.es-Bwt05m_b.js → index.es-CI7cDExj.js} +1 -1
- package/chunks/{index.es-DAQD57G4.js → index.es-DHpGt6Y5.js} +1 -1
- package/chunks/ja-DgrSs555.js +13 -0
- package/chunks/{jspdf.es.min-DlTF8uTw.js → jspdf.es.min--GshOuIm.js} +1 -1
- package/chunks/{jspdf.es.min-CnNRolk9.js → jspdf.es.min-DurJZ1zW.js} +1 -1
- package/chunks/pseudoLocale-BoYTjmiK.js +1 -0
- package/chunks/pseudoLocale-DG2NnZmz.js +1 -0
- package/chunks/serverDocumentSession-CJ1EH3Tp.js +15 -0
- package/chunks/{signatures-CBF7NZUy.js → signatures-Bwt_OGik.js} +1 -1
- package/chunks/suggestionAuthorship-B-IuLQlE.js +1 -0
- package/chunks/zh-9OF3SWWO.js +13 -0
- package/full.js +1 -1
- package/index.d.ts +13 -5
- package/index.js +1 -1
- package/package.json +1 -1
- package/root.js +2 -2
- package/style.css +1 -1
- package/assets/historyMaterializeWorker-C4uxcZEh.js +0 -607
- package/chunks/AgentPageRenderer-BFB0arQL.js +0 -1
- package/chunks/AgentPageRenderer-Dn6SaRjW.js +0 -1
- package/chunks/AttachmentDocumentImporter-BHDJAdky.js +0 -1
- package/chunks/AttachmentDocumentImporter-CxOZqzt1.js +0 -1
- package/chunks/DocumentMutator-4vBJQ74L.js +0 -31
- package/chunks/DocumentStylesheet-byN5dtC6.js +0 -7
- package/chunks/DocxConverter-BCEB7jWY.js +0 -1083
- package/chunks/DocxConverter-C3NflpDr.js +0 -11
- package/chunks/DocxConverter-D9ZNn4nX.js +0 -11
- package/chunks/FileImporter-CHXj9sNX.js +0 -1
- package/chunks/FileImporter-DetvRoJc.js +0 -1
- package/chunks/MathRenderer-B0Y1h1JU.js +0 -62
- package/chunks/OdtConverter-BKtyx012.js +0 -1
- package/chunks/OdtConverter-Ce9j8PRt.js +0 -1
- package/chunks/OdtConverter-D709qfYb.js +0 -31
- package/chunks/PdfConverter-BA8XLTAM.js +0 -21
- package/chunks/PdfConverter-CkDClffR.js +0 -438
- package/chunks/PdfConverter-CxLxd-LJ.js +0 -21
- package/chunks/RtfConverter-BZOnMUGH.js +0 -14
- package/chunks/RtfConverter-Bs81AfXt.js +0 -14
- package/chunks/RtfConverter-DfuE5olb.js +0 -45
- package/chunks/XmlConverter-C0FnrVYk.js +0 -70
- package/chunks/XmlConverter-CQa8baOF.js +0 -2
- package/chunks/XmlConverter-DjEYaIyf.js +0 -2
- package/chunks/ar-BdmGnaKI.js +0 -14
- package/chunks/backend-BIhAX-Gi.js +0 -484
- package/chunks/base64-Qx0OzT4p.js +0 -196
- package/chunks/de-DldIXRFC.js +0 -14
- package/chunks/es-CnyKlSPK.js +0 -14
- package/chunks/index-C-4H81OE.js +0 -378
- package/chunks/index-iZC8xN0t.js +0 -378
- package/chunks/pseudoLocale-BoJwIubw.js +0 -1
- package/chunks/pseudoLocale-DWAm7Dpa.js +0 -1
- package/chunks/serverDocumentSession-DASrQAbW.js +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,99 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **ODT and RTF input.** `ReviseDocumentFormat` and `ReviseServerFormat` gain
|
|
8
|
+
`"odt"` and `"rtf"`, detected from `.odt` / `.rtf` filenames and from the
|
|
9
|
+
`application/vnd.oasis.opendocument.text`, `application/rtf`, and
|
|
10
|
+
`text/rtf` MIME types. Both import fonts, sizes, colors, highlighting,
|
|
11
|
+
character and paragraph formatting, headings, lists with their numbering,
|
|
12
|
+
tables with merged cells and column widths, images, hyperlinks, footnotes
|
|
13
|
+
and endnotes, headers and footers, comments, tracked changes, and page
|
|
14
|
+
size and margins. RTF from Word, WordPad, TextEdit, and LibreOffice is
|
|
15
|
+
supported, in any Windows code page or East Asian encoding. Each converter
|
|
16
|
+
loads only when a host first opens that format. `revise/server`'s
|
|
17
|
+
`parseDocument`, `fileToYDoc`, and `seedYDocFromFile` accept both. Host
|
|
18
|
+
code with an exhaustive `switch` over either type needs cases for the two
|
|
19
|
+
new values.
|
|
20
|
+
- **Delete whole table rows, columns, or tables from a cell selection.**
|
|
21
|
+
Backspace or Delete over fully selected rows or columns removes them, and
|
|
22
|
+
over every cell removes the table; a partial selection still clears only
|
|
23
|
+
the cell contents. Removing several rows is one undo step, and a table that
|
|
24
|
+
was the only block leaves an empty paragraph. Shift+click in another cell
|
|
25
|
+
of the same table now extends a cell selection, as dragging does.
|
|
26
|
+
- **Move connectors.** When a tracked move is focused, a line in the left
|
|
27
|
+
margin links where the text moved from to where it moved to, across pages.
|
|
28
|
+
It is not drawn in print preview.
|
|
29
|
+
- **Pleading-paper line numbers.** Documents whose page layout carries a
|
|
30
|
+
pleading grid show numbered rows (for example 1 to 28) at fixed positions
|
|
31
|
+
on every page, independent of the text, on screen and in PDF export. DOCX
|
|
32
|
+
export writes them as Word line numbers restarting on each page.
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
36
|
+
- **Margin line numbers behave like Word's.** Each number sits on its line's
|
|
37
|
+
baseline, table lines are not counted on screen (PDF already skipped
|
|
38
|
+
them), and a section that turns numbering off shows none instead of
|
|
39
|
+
inheriting the document setting. Numbers are set in the font that
|
|
40
|
+
dominates each page's text, on screen and in PDF, where they were always
|
|
41
|
+
Helvetica before.
|
|
42
|
+
- **The delegated agent can move blocks.** `agent.run()` and comment agents
|
|
43
|
+
can move paragraphs, lists, and tables as one tracked move (applied
|
|
44
|
+
directly in editing mode); blocks with anchored comments are not moved.
|
|
45
|
+
`move_blocks` is not part of the embedded tool list for `tools.*` hosts.
|
|
46
|
+
The delegated agent also recovers more reliably: it repairs a run that
|
|
47
|
+
edited and then reported no change, checks table fill work before it
|
|
48
|
+
finishes, and keeps the request and latest tool results when it recovers
|
|
49
|
+
from a context limit.
|
|
50
|
+
- **Suggestion cards show a date once a change is over a week old.** Old
|
|
51
|
+
changes read "Sep 4" or "Oct 11, 2013" instead of "4739d ago".
|
|
52
|
+
- **The footnote card is a compact row.** Clicking a footnote reference shows
|
|
53
|
+
its label with **Go to note** and **Remove**; the note is edited in the
|
|
54
|
+
note itself. In narrow layouts the card is centered under its reference
|
|
55
|
+
mark.
|
|
56
|
+
|
|
57
|
+
### Fixed
|
|
58
|
+
|
|
59
|
+
- **Links.** Bare email addresses link and autolink as `mailto:`;
|
|
60
|
+
`mailto:` and `tel:` URLs are kept as typed; an `@` before the path is not
|
|
61
|
+
read as `https://` user info. Cmd+K uses the selected text as the link
|
|
62
|
+
target only when it is a full URL or an email address, and the link popup
|
|
63
|
+
finds a link Cmd+K just made on a backward selection.
|
|
64
|
+
- **Link, footnote, and inline-math popups line up at every zoom level.**
|
|
65
|
+
- **Math is no longer clipped when it renders before the KaTeX fonts load.**
|
|
66
|
+
Such results show provisionally and re-render once the fonts arrive, and
|
|
67
|
+
failed font or stylesheet fetches are not cached.
|
|
68
|
+
- **DOCX tracked moves of whole paragraphs, lists, and tables.** On import,
|
|
69
|
+
Word's paragraph-mark `w:moveFrom` / `w:moveTo` make the whole block part
|
|
70
|
+
of the move, so accepting it removes the source paragraph instead of
|
|
71
|
+
leaving an empty one, and a list split across a move becomes two lists.
|
|
72
|
+
Export writes paragraph marks and table rows with the move, and accepting
|
|
73
|
+
or rejecting resolves both halves together.
|
|
74
|
+
- **Accepting the deletion of every row of a table removes the table**, as
|
|
75
|
+
in Word, instead of leaving a table with no rows.
|
|
76
|
+
- **DOCX header and footer line breaks.** `w:br` in headers and footers is
|
|
77
|
+
imported, and export writes `w:br` instead of a raw newline that Word
|
|
78
|
+
showed as a space.
|
|
79
|
+
- **Header and footer layout.** In multi-column sections, headers and
|
|
80
|
+
footers span the full text width instead of one column; a zone is as wide
|
|
81
|
+
as its widest line; a bordered zone, such as a footer rule, spans the whole
|
|
82
|
+
band; and empty zones give up their space.
|
|
83
|
+
- **`replace_block` and `append_to_paragraph` on a non-text target**, such as
|
|
84
|
+
a table, fail with `target_type_mismatch` instead of doing nothing.
|
|
85
|
+
- **DOCX, ODT, and RTF open where `Blob.arrayBuffer` is missing** (Safari
|
|
86
|
+
before 14, jsdom). Files are read with a `FileReader` fallback.
|
|
87
|
+
|
|
88
|
+
### Security
|
|
89
|
+
|
|
90
|
+
- **ODT and RTF import is hardened against hostile files.** Links pass a
|
|
91
|
+
scheme allowlist (http, https, mailto, tel, ftp, and relative), so
|
|
92
|
+
`javascript:` and similar are dropped. Self-referencing ODT deletions and
|
|
93
|
+
RTF control words such as `\constructor` can no longer overflow the stack
|
|
94
|
+
or swallow text, and imported tables are capped at 1,000 columns and
|
|
95
|
+
100,000 cells.
|
|
96
|
+
|
|
3
97
|
## 2.1.0
|
|
4
98
|
|
|
5
99
|
### Added
|