revise 2.2.0 → 3.0.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 +47 -1182
- package/LICENSE +24 -41
- package/README.md +103 -26
- package/agent.d.ts +139 -0
- package/chunks/chunk-U5X47PZ6.js +135 -0
- package/chunks/chunk-U6YKQBKL.js +15 -0
- package/chunks/chunk-ZLQVPMBN.js +1650 -0
- package/chunks/package-5SHL5FOJ.js +14 -0
- package/chunks/render-QD5VWKSV.js +109 -0
- package/cli-output.schema.json +1984 -0
- package/cli.js +3604 -0
- package/document.d.ts +320 -0
- package/docx.d.ts +73 -0
- package/errors.d.ts +14 -0
- package/index.d.ts +13 -975
- package/index.js +31 -1
- package/legacy/editor.d.ts +19 -0
- package/legacy/editor.js +16 -0
- package/legacy/server.d.ts +37 -0
- package/legacy/server.js +25 -0
- package/legacy/style.css +2 -0
- package/package.d.ts +23 -0
- package/package.json +49 -55
- package/render.d.ts +27 -0
- package/FONT-LICENSE-HAN-EXT-B.txt +0 -91
- package/FONT-LICENSE-KATEX.txt +0 -95
- package/FONT-LICENSE-LIBERATION.txt +0 -102
- package/FONT-LICENSE-NOTO-MULTILINGUAL.txt +0 -93
- package/FONT-LICENSE-NOTO-SANS-SC.txt +0 -93
- package/FONT-LICENSE-NOTO.txt +0 -94
- package/FONT-LICENSE-SOURCE-CODE-PRO.txt +0 -94
- package/FONT-LICENSE-SOURCE-SERIF-4.txt +0 -93
- package/THIRD-PARTY-NOTICES.md +0 -3376
- package/assets/historyMaterializeWorker-B51R08XN.js +0 -612
- package/backend.d.ts +0 -161
- package/backend.js +0 -3
- package/chunks/AgentPageRenderer-CH8kSTJn.js +0 -1
- package/chunks/AgentPageRenderer-P23XVguo.js +0 -1
- package/chunks/AttachmentDocumentImporter-B1WOaa7d.js +0 -1
- package/chunks/AttachmentDocumentImporter-CT_PJp_e.js +0 -1
- package/chunks/BidiText-Swm5fl9J.js +0 -160
- package/chunks/ColorParserFull-BKH72fK8.js +0 -446
- package/chunks/DocumentMutator-btiDK57e.js +0 -31
- package/chunks/DocumentScrubber-CMPfm_HF.js +0 -18
- package/chunks/DocumentScrubber-Cm2kH8op.js +0 -1
- package/chunks/DocumentScrubber-bJoKijol.js +0 -1
- package/chunks/DocumentStylesheet-DreoD7sD.js +0 -7
- package/chunks/DocxConverter-BcVG-p5K.js +0 -13
- package/chunks/DocxConverter-D2bO5RE-.js +0 -1125
- package/chunks/DocxConverter-haCfRuWb.js +0 -13
- package/chunks/DocxGraft-BRKh4mHQ.js +0 -1
- package/chunks/DocxGraft-BxSQtl12.js +0 -7
- package/chunks/DocxGraft-C9MBQCnf.js +0 -1
- package/chunks/FileImporter-CszqRfVU.js +0 -1
- package/chunks/FileImporter-DObFoCCn.js +0 -1
- package/chunks/HorizontalRuleOrnaments-gmUZ3R7Q.js +0 -3
- package/chunks/HtmlConverter-DwXB4IDh.js +0 -267
- package/chunks/ListNumbering-Qlu6AuRZ.js +0 -23
- package/chunks/MarkdownConverter-CUC8GgsS.js +0 -57
- package/chunks/MathRenderer-DT6GyJXb.js +0 -68
- package/chunks/OdtConverter-7h9HHMpL.js +0 -125
- package/chunks/OdtConverter-Ct4qypJk.js +0 -6
- package/chunks/OdtConverter-DFl__sJc.js +0 -6
- package/chunks/OfficeImportShared-BY6FdZ8d.js +0 -1
- package/chunks/OfficeImportShared-BrZoDM0j.js +0 -30
- package/chunks/OfficeImportShared-Bvm-mOyj.js +0 -1
- package/chunks/ParagraphDiffAnalysis-DrmStvmz.js +0 -36
- package/chunks/PdfConverter-1wyvoT7X.js +0 -21
- package/chunks/PdfConverter-BAoEHILo.js +0 -21
- package/chunks/PdfConverter-CKEvFj11.js +0 -448
- package/chunks/PdfImportService-BhLPp5uG.js +0 -2
- package/chunks/PdfImportService-xbzrN__L.js +0 -2
- package/chunks/RtfConverter-Bxn-enp8.js +0 -15
- package/chunks/RtfConverter-LZPzBDSr.js +0 -15
- package/chunks/RtfConverter-_bacXqr1.js +0 -186
- package/chunks/TableBorders-CwnF3jvH.js +0 -30
- package/chunks/TableGrid-DbroRucl.js +0 -12
- package/chunks/TextFileDecoder--rsVs3NR.js +0 -9
- package/chunks/TxtConverter-C7FOwHpH.js +0 -14
- package/chunks/UnicodeUtils-CXtusU4g.js +0 -10
- package/chunks/XmlConverter-7oo8oeQB.js +0 -2
- package/chunks/XmlConverter-DGORHJcZ.js +0 -96
- package/chunks/XmlConverter-DeLHReK_.js +0 -2
- package/chunks/__vite-browser-external-l0sNRNKZ.js +0 -0
- package/chunks/_commonjsHelpers-DaMA6jEr.js +0 -2
- package/chunks/_revise-sdk-lazy-harfbuzz-CDWdjF9f.js +0 -1
- package/chunks/_revise-sdk-lazy-harfbuzz-X8gnYTZL.js +0 -1
- package/chunks/ar-ComXvtmh.js +0 -13
- package/chunks/backend-DecaBz-I.js +0 -490
- package/chunks/base64-sSPOzq-u.js +0 -198
- package/chunks/browser-module-CFmqfGkE.js +0 -1791
- package/chunks/browser-module-Dj5o3kuL.js +0 -3
- package/chunks/browser-module-UuM_O36W.js +0 -3
- package/chunks/bundle.min-DRpfgV69.js +0 -782
- package/chunks/capture-1btcWcPF.js +0 -9
- package/chunks/carrier-DQeng6yq.js +0 -6
- package/chunks/de-BkbpIKxx.js +0 -13
- package/chunks/es-CKkXujOF.js +0 -13
- package/chunks/fil-piIHMc8F.js +0 -13
- package/chunks/footnoteFlatten-DUQticYy.js +0 -6
- package/chunks/fr-DuA8qLje.js +0 -13
- package/chunks/graftExport-CYnStOdU.js +0 -82
- package/chunks/html2canvas.esm-CntiHiYW.js +0 -997
- package/chunks/index-2TBhRkX7.js +0 -387
- package/chunks/index-BWdRWxoH.js +0 -1807
- package/chunks/index-Bf14eTEW.js +0 -1096
- package/chunks/index-BwcX_r62.js +0 -387
- package/chunks/index.es-CI0QPo8w.js +0 -780
- package/chunks/index.es-CI7cDExj.js +0 -5
- package/chunks/index.es-DHpGt6Y5.js +0 -5
- package/chunks/ja-DgrSs555.js +0 -13
- package/chunks/jspdf.es.min--GshOuIm.js +0 -77
- package/chunks/jspdf.es.min-DU74zN8b.js +0 -1792
- package/chunks/jspdf.es.min-DurJZ1zW.js +0 -77
- package/chunks/jszip.min-CPW0h1Kx.js +0 -476
- package/chunks/katex-DWj8TvwO.js +0 -1462
- package/chunks/pdf-BLWDCiFF.js +0 -1828
- package/chunks/persistInlineDocumentImages-DQj2iaqg.js +0 -1
- package/chunks/pseudoLocale-BoYTjmiK.js +0 -1
- package/chunks/pseudoLocale-DG2NnZmz.js +0 -1
- package/chunks/purify.es-BwLardii.js +0 -107
- package/chunks/serverDocumentSession-CJ1EH3Tp.js +0 -15
- package/chunks/signatures-Bwt_OGik.js +0 -17
- package/chunks/suggestionAuthorship-B-IuLQlE.js +0 -1
- package/chunks/tree-sitter-D6zWWUMP.js +0 -4
- package/chunks/wasmInline.generated-CBYFkdSM.js +0 -1
- package/chunks/web-tree-sitter-BXGZGnNj.js +0 -2
- package/chunks/zh-9OF3SWWO.js +0 -13
- package/full.js +0 -1
- package/root.d.ts +0 -5
- package/root.js +0 -2
- package/serverToolContract.d.ts +0 -391
- package/serverToolInputs.generated.d.ts +0 -250
- package/style.css +0 -1
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{ag as g,r as h,ab as j,b8 as A,b9 as k}from"./backend-DecaBz-I.js";const c=2;function s(e){return e===null||typeof e!="object"?JSON.stringify(e)??"null":Array.isArray(e)?`[${e.map(s).join(",")}\
|
|
2
|
-
]`:`{${Object.entries(e).filter(([,t])=>t!==void 0).sort(([t],[r])=>t<r?-1:t>r?1:0).map(([t,r])=>`${JSON.stringify(t)}:${s(r)}`).join(",")}}`}function i(e,t=c){if(e===null||typeof e!="object")return e;
|
|
3
|
-
if(Array.isArray(e))return e.map(o=>i(o,t));const r=e;if(r.type==="text")return{...r,marks:(t===1?A:k)(r.marks)};const n={};for(const[o,a]of Object.entries(r))o==="indentLevel"&&r.type==="list-item"&&
|
|
4
|
-
!a||o==="hasHeader"&&r.type==="table"&&!a||o==="footnoteNumber"&&r.type==="footnote"||(n[o]=i(a,t));if(Array.isArray(n.children)){const o=[];for(const a of n.children){const f=o[o.length-1];if(f&&f.type===
|
|
5
|
-
"text"&&a.type==="text"&&s(f.marks)===s(a.marks)){f.text=`${f.text}${a.text}`;continue}o.push(a)}n.children=o}return n}function u(e){return`${d(e,0).toString(36)}-${d(e,2654435769).toString(36)}`}function d(e,t){
|
|
6
|
-
let r=3735928559^t,n=1103547991^t;for(let o=0;o<e.length;o++){const a=e.charCodeAt(o);r=Math.imul(r^a,2654435761),n=Math.imul(n^a,1597334677)}return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>
|
|
7
|
-
13,3266489909),n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)}function b(e,t=c){return s(i(e,t))}function x(e,t=c){return u(b(e,t))}function O(e){return u(
|
|
8
|
-
s(h(e.pageLayout)))}function l(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(l);const t=e;if(t.type==="text"&&t.marks&&typeof t.marks=="object"&&"fontFamily"in t.marks){
|
|
9
|
-
const n={...t.marks};return delete n.fontFamily,{...t,marks:n}}const r={};for(const[n,o]of Object.entries(t))r[n]=l(o);return r}function $(e,t=c){const r=[...e.children.filter(n=>n.type==="footnote"),
|
|
10
|
-
...e.notes??[]];return u(s(r.map(n=>i(l(n),t))))}function m(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(m);const t={};for(const[r,n]of Object.entries(e))r!=="id"&&(t[r]=
|
|
11
|
-
m(n));return t}function v(e,t=c){let r=[...e.children.filter(n=>n.type==="header-footer"),...e.chrome??[]];return r.length===0&&(e.headers||e.footers)&&(r=j(e.headers,e.footers)),u(s(i({blocks:r.map(n=>m(
|
|
12
|
-
n)),watermark:e.watermark??null,chromeImages:e.chromeImages??[]},t)))}function M(e,t=c){const r=n=>[...n].sort((o,a)=>{const f=s(i(o,t)),p=s(i(a,t));return f<p?-1:f>p?1:0});return u(s(i({sdtWrappers:r(
|
|
13
|
-
e.sdtWrappers??[]),oxmlRanges:r(e.oxmlRanges??[])},t)))}function S(e,t=c){return u(s(i({stylesXml:e.stylesXml??null,stylesheet:e.stylesheet??null},t)))}function y(e){if(e===null||typeof e!="object")return!1;
|
|
14
|
-
if(Array.isArray(e))return e.some(y);const t=e;if(t.type==="toc")return!0;const r=t.marks;return r&&typeof r=="object"&&typeof r.fieldInstr=="string"?!0:Object.values(t).some(y)}function F(e){const t=[
|
|
15
|
-
...e.children.filter(n=>n.type==="header-footer"),...e.chrome??[]],r=!!(e.headers?.even||e.footers?.even)||t.some(n=>n.slot==="even"&&g(n));return u(s({autoHyphenation:h(e.pageLayout).hyphenationEnabled,
|
|
16
|
-
evenAndOddHeaders:r,updateFields:y(e.children)}))}function N(e,t=c){return u(s([...e.comments??[]].sort((r,n)=>r.id<n.id?-1:r.id>n.id?1:0).map(r=>i(r,t))))}function C(e){return u(s(e.coreProperties??{}))}
|
|
17
|
-
export{c as C,b as a,x as b,M as c,F as d,S as e,v as f,N as g,C as h,i,s as j,$ as n,O as p,u as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const s="Revise Agent",e="Anonymous";function o(t){const n=t?.trim();return!n||n===s}export{e as A,s as R,o as i};
|