revise 3.1.7 → 4.0.1

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.
Files changed (91) hide show
  1. package/CHANGELOG.md +1677 -184
  2. package/FONT-LICENSE-HAN-EXT-B.txt +91 -0
  3. package/FONT-LICENSE-KATEX.txt +95 -0
  4. package/FONT-LICENSE-LIBERATION.txt +102 -0
  5. package/FONT-LICENSE-NOTO-MULTILINGUAL.txt +93 -0
  6. package/FONT-LICENSE-NOTO-SANS-SC.txt +93 -0
  7. package/FONT-LICENSE-NOTO.txt +94 -0
  8. package/FONT-LICENSE-SOURCE-CODE-PRO.txt +94 -0
  9. package/FONT-LICENSE-SOURCE-SERIF-4.txt +93 -0
  10. package/LICENSE +41 -21
  11. package/README.md +29 -121
  12. package/THIRD-PARTY-NOTICES.md +2751 -0
  13. package/assets/historyMaterializeWorker-ZFUHJDWr.js +619 -0
  14. package/chunks/AgentPageRenderer-CHHktDQ1.js +1 -0
  15. package/chunks/AgentPageRenderer-CN-N65JC.js +1 -0
  16. package/chunks/AttachmentDocumentImporter-DnHC9t7I.js +1 -0
  17. package/chunks/AttachmentDocumentImporter-Dqg7IPtK.js +1 -0
  18. package/chunks/ColorParserFull-BKH72fK8.js +446 -0
  19. package/chunks/DocumentScrubber-Ch_bOtHW.js +1 -0
  20. package/chunks/DocumentScrubber-DRzACkWJ.js +1 -0
  21. package/chunks/DocxConverter-BGPkGmyg.js +13 -0
  22. package/chunks/DocxConverter-DeurS5EF.js +13 -0
  23. package/chunks/DocxGraft-D71OgoMh.js +1 -0
  24. package/chunks/DocxGraft-QLkGEcwQ.js +1 -0
  25. package/chunks/FileImporter-BIT0ZBDY.js +1 -0
  26. package/chunks/FileImporter-Cgwoawuk.js +1 -0
  27. package/chunks/OdtConverter-2pm0SH5c.js +6 -0
  28. package/chunks/OdtConverter-CSUQTfVp.js +6 -0
  29. package/chunks/OfficeImportShared-C_mYnG5V.js +1 -0
  30. package/chunks/OfficeImportShared-O-d47J7O.js +1 -0
  31. package/chunks/PdfConverter-BYg_pr5J.js +21 -0
  32. package/chunks/PdfConverter-Z2HlY84F.js +21 -0
  33. package/chunks/PdfImportService-C2gwK1Sq.js +2 -0
  34. package/chunks/PdfImportService-CxtUtxM6.js +2 -0
  35. package/chunks/RtfConverter-BrtojpDV.js +15 -0
  36. package/chunks/RtfConverter-DlztsAoK.js +15 -0
  37. package/chunks/XmlConverter-3XWISlqr.js +2 -0
  38. package/chunks/XmlConverter-B1Kcohr0.js +2 -0
  39. package/chunks/__vite-browser-external-l0sNRNKZ.js +0 -0
  40. package/chunks/_revise-sdk-lazy-harfbuzz-X8gnYTZL.js +1 -0
  41. package/chunks/ar-vDYSGTpE.js +13 -0
  42. package/chunks/browser-module-BVdVmrPb.js +3 -0
  43. package/chunks/browser-module-CWlRHeO2.js +3 -0
  44. package/chunks/bundle.min-DRpfgV69.js +782 -0
  45. package/chunks/de-CWX4cvtt.js +13 -0
  46. package/chunks/es-DoAhvF6_.js +13 -0
  47. package/chunks/fil-DdAeD8Br.js +13 -0
  48. package/chunks/fr-CazsUjNQ.js +13 -0
  49. package/chunks/html2canvas.esm-CntiHiYW.js +997 -0
  50. package/chunks/index-BWdRWxoH.js +1807 -0
  51. package/chunks/index-D9_PwgOX.js +402 -0
  52. package/chunks/index-DcIXw_KB.js +402 -0
  53. package/chunks/ja-alh_QHTB.js +13 -0
  54. package/chunks/jspdf.es.min-BuJNZ-oY.js +1882 -0
  55. package/chunks/katex-DWj8TvwO.js +1462 -0
  56. package/chunks/pdf-BLWDCiFF.js +1828 -0
  57. package/chunks/persistInlineDocumentImages-DQj2iaqg.js +1 -0
  58. package/chunks/pseudoLocale-Bld5ZUFr.js +1 -0
  59. package/chunks/pseudoLocale-CLm3_c4X.js +1 -0
  60. package/chunks/tree-sitter-D6zWWUMP.js +4 -0
  61. package/chunks/wasmInline.generated-CBYFkdSM.js +1 -0
  62. package/chunks/web-tree-sitter-BXGZGnNj.js +2 -0
  63. package/chunks/zh-20eXwzFZ.js +13 -0
  64. package/cli-shim.js +34 -0
  65. package/full.js +1 -0
  66. package/index.d.ts +995 -13
  67. package/index.js +1 -31
  68. package/legacy/server.d.ts +19 -19
  69. package/legacy/server.js +39 -23
  70. package/package.json +55 -45
  71. package/serverToolContract.d.ts +420 -0
  72. package/serverToolInputs.generated.d.ts +269 -0
  73. package/style.css +1 -0
  74. package/version.d.ts +4 -0
  75. package/version.js +2 -0
  76. package/agent.d.ts +0 -139
  77. package/chunks/chunk-SMTOJL2X.js +0 -2436
  78. package/chunks/chunk-U5X47PZ6.js +0 -135
  79. package/chunks/chunk-U6YKQBKL.js +0 -15
  80. package/chunks/package-5SHL5FOJ.js +0 -14
  81. package/chunks/render-QD5VWKSV.js +0 -109
  82. package/cli-output.schema.json +0 -2159
  83. package/cli.js +0 -4152
  84. package/document.d.ts +0 -439
  85. package/docx.d.ts +0 -73
  86. package/errors.d.ts +0 -14
  87. package/legacy/editor.d.ts +0 -19
  88. package/legacy/editor.js +0 -16
  89. package/legacy/style.css +0 -2
  90. package/package.d.ts +0 -23
  91. package/render.d.ts +0 -27
package/index.js CHANGED
@@ -1,31 +1 @@
1
- // revise: MIT License. https://revise.io/developer/docs
2
- import {
3
- ReviseDocument,
4
- agentTools,
5
- compare,
6
- convert,
7
- formatForPath,
8
- formatToolResult,
9
- seedYDoc
10
- } from "./chunks/chunk-SMTOJL2X.js";
11
- import {
12
- catPart,
13
- listParts,
14
- patchPackage
15
- } from "./chunks/chunk-U5X47PZ6.js";
16
- import {
17
- ReviseError
18
- } from "./chunks/chunk-U6YKQBKL.js";
19
- export {
20
- ReviseDocument,
21
- ReviseError,
22
- agentTools,
23
- catPart,
24
- compare,
25
- convert,
26
- formatForPath,
27
- formatToolResult,
28
- listParts,
29
- patchPackage,
30
- seedYDoc
31
- };
1
+ import{cv as s,cu as a,cx as e,cA as r,cy as c,cw as o,cx as E,cB as t,cz as R}from"./chunks/index-D9_PwgOX.js";export{s as REVISE_SDK_BUILD,a as REVISE_SDK_VERSION,e as ReviseEditor,r as ReviseRoleError,c as ReviseToolError,o as createEmptyDocx,E as default,t as rolePolicy,R as setAssetBaseUrl};
@@ -1,37 +1,37 @@
1
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
2
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
1
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
2
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
3
3
  export declare const RESERVED_DOCUMENT_KEYS: never;
4
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
4
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
5
5
  export declare const createReviseYDoc: never;
6
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
6
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
7
7
  export declare const assertUsableSharedDocument: never;
8
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
8
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
9
9
  export declare const installDomShims: never;
10
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
10
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
11
11
  export declare const parseDocument: never;
12
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
12
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
13
13
  export declare const documentToDocx: never;
14
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
14
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
15
15
  export declare const fileToYDoc: never;
16
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
16
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
17
17
  export declare const seedYDocFromFile: never;
18
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
18
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
19
19
  export declare const repairSeedRace: never;
20
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
20
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
21
21
  export declare const ydocToDocument: never;
22
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
22
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
23
23
  export declare const ydocToDocx: never;
24
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
24
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
25
25
  export declare const exportDocument: never;
26
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
26
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
27
27
  export declare const ydocSourceFidelity: never;
28
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
28
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
29
29
  export declare const hasDocument: never;
30
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
30
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
31
31
  export declare const encodeYDoc: never;
32
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
32
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
33
33
  export declare const decodeYDoc: never;
34
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
34
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
35
35
  export declare const ReviseToolError: never;
36
- /** @deprecated revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x */
36
+ /** @deprecated revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli. See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version */
37
37
  export declare const createServerDocumentSession: never;
package/legacy/server.js CHANGED
@@ -1,25 +1,41 @@
1
- // Generated from the export list of revise@2.2.0 (frozen). revise 2.x was
2
- // the Revise editor; these names exist only so that 2.x import statements
3
- // link and reach the message below instead of an opaque linking error.
4
1
  throw new Error(
5
- "revise/server is gone. Server-side work in revise 3 goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc, from the revise package root. See https://revise.io/developer/docs/editor-sdk/installation#migrate-from-revise-2x",
2
+ "revise/server is gone. Server-side work goes through ReviseDocument (open, fromYDoc, tools, export) and seedYDoc from @reviseio/cli (npm i @reviseio/cli). See https://revise.io/developer/docs/editor-sdk/installation#upgrade-from-an-earlier-version"
6
3
  );
7
-
8
- export const RESERVED_DOCUMENT_KEYS = undefined;
9
- export const createReviseYDoc = undefined;
10
- export const assertUsableSharedDocument = undefined;
11
- export const installDomShims = undefined;
12
- export const parseDocument = undefined;
13
- export const documentToDocx = undefined;
14
- export const fileToYDoc = undefined;
15
- export const seedYDocFromFile = undefined;
16
- export const repairSeedRace = undefined;
17
- export const ydocToDocument = undefined;
18
- export const ydocToDocx = undefined;
19
- export const exportDocument = undefined;
20
- export const ydocSourceFidelity = undefined;
21
- export const hasDocument = undefined;
22
- export const encodeYDoc = undefined;
23
- export const decodeYDoc = undefined;
24
- export const ReviseToolError = undefined;
25
- export const createServerDocumentSession = undefined;
4
+ const RESERVED_DOCUMENT_KEYS = void 0;
5
+ const createReviseYDoc = void 0;
6
+ const assertUsableSharedDocument = void 0;
7
+ const installDomShims = void 0;
8
+ const parseDocument = void 0;
9
+ const documentToDocx = void 0;
10
+ const fileToYDoc = void 0;
11
+ const seedYDocFromFile = void 0;
12
+ const repairSeedRace = void 0;
13
+ const ydocToDocument = void 0;
14
+ const ydocToDocx = void 0;
15
+ const exportDocument = void 0;
16
+ const ydocSourceFidelity = void 0;
17
+ const hasDocument = void 0;
18
+ const encodeYDoc = void 0;
19
+ const decodeYDoc = void 0;
20
+ const ReviseToolError = void 0;
21
+ const createServerDocumentSession = void 0;
22
+ export {
23
+ RESERVED_DOCUMENT_KEYS,
24
+ ReviseToolError,
25
+ assertUsableSharedDocument,
26
+ createReviseYDoc,
27
+ createServerDocumentSession,
28
+ decodeYDoc,
29
+ documentToDocx,
30
+ encodeYDoc,
31
+ exportDocument,
32
+ fileToYDoc,
33
+ hasDocument,
34
+ installDomShims,
35
+ parseDocument,
36
+ repairSeedRace,
37
+ seedYDocFromFile,
38
+ ydocSourceFidelity,
39
+ ydocToDocument,
40
+ ydocToDocx
41
+ };
package/package.json CHANGED
@@ -1,93 +1,103 @@
1
1
  {
2
2
  "name": "revise",
3
- "version": "3.1.7",
4
- "reviseBuild": "e75a6f834",
5
- "description": "Read, edit, and redline Word documents from the command line or TypeScript, with tracked changes, comments, and tools for AI agents.",
3
+ "version": "4.0.1",
4
+ "description": "A word processor for React: DOCX in and out, real pagination, tracked changes, comments, collaboration, and agent tools. Free for evaluation, personal projects, and education.",
6
5
  "keywords": [
7
6
  "docx",
8
7
  "word",
9
- "cli",
8
+ "word-processor",
9
+ "document-editor",
10
+ "rich-text-editor",
11
+ "react",
10
12
  "tracked-changes",
11
13
  "redlines",
12
14
  "comments",
13
- "agent",
15
+ "yjs",
14
16
  "ai",
15
- "mcp"
17
+ "agent"
16
18
  ],
17
19
  "type": "module",
18
20
  "main": "./index.js",
19
21
  "module": "./index.js",
20
22
  "types": "./index.d.ts",
21
- "bin": {
22
- "revise": "./cli.js"
23
- },
24
23
  "exports": {
25
24
  ".": {
26
25
  "types": "./index.d.ts",
27
26
  "import": "./index.js"
28
27
  },
29
- "./editor": {
30
- "types": "./legacy/editor.d.ts",
31
- "import": "./legacy/editor.js"
28
+ "./full": {
29
+ "types": "./index.d.ts",
30
+ "import": "./full.js"
32
31
  },
33
- "./editor/full": {
34
- "types": "./legacy/editor.d.ts",
35
- "import": "./legacy/editor.js"
32
+ "./version": {
33
+ "types": "./version.d.ts",
34
+ "import": "./version.js"
36
35
  },
36
+ "./style.css": "./style.css",
37
37
  "./server": {
38
38
  "types": "./legacy/server.d.ts",
39
39
  "import": "./legacy/server.js"
40
40
  },
41
- "./style.css": "./legacy/style.css",
42
- "./cli-output.schema.json": "./cli-output.schema.json",
43
41
  "./package.json": "./package.json"
44
42
  },
43
+ "bin": {
44
+ "revise": "./cli-shim.js"
45
+ },
45
46
  "files": [
46
- "index.js",
47
- "cli.js",
47
+ "cli-shim.js",
48
48
  "legacy",
49
- "cli-output.schema.json",
50
- "*.d.ts",
49
+ "version.js",
50
+ "version.d.ts",
51
+ "index.js",
52
+ "index.d.ts",
53
+ "full.js",
54
+ "serverToolContract.d.ts",
55
+ "serverToolInputs.generated.d.ts",
56
+ "style.css",
51
57
  "chunks",
58
+ "assets",
52
59
  "README.md",
53
60
  "CHANGELOG.md",
54
- "LICENSE"
61
+ "LICENSE",
62
+ "THIRD-PARTY-NOTICES.md",
63
+ "FONT-LICENSE-LIBERATION.txt",
64
+ "FONT-LICENSE-NOTO-SANS-SC.txt",
65
+ "FONT-LICENSE-NOTO-MULTILINGUAL.txt",
66
+ "FONT-LICENSE-NOTO.txt",
67
+ "FONT-LICENSE-HAN-EXT-B.txt",
68
+ "FONT-LICENSE-SOURCE-SERIF-4.txt",
69
+ "FONT-LICENSE-SOURCE-CODE-PRO.txt",
70
+ "FONT-LICENSE-KATEX.txt"
71
+ ],
72
+ "sideEffects": [
73
+ "*.css"
55
74
  ],
56
- "sideEffects": false,
57
- "dependencies": {
58
- "@reviseio/engine": "3.1.7",
59
- "jszip": "^3.10.1",
60
- "yjs": "^13.6.27"
61
- },
62
75
  "peerDependencies": {
63
- "@napi-rs/canvas": ">=0.1.0",
64
- "canvas": ">=2.11.0"
76
+ "react": ">=18",
77
+ "react-dom": ">=18",
78
+ "yjs": "^13.6.0",
79
+ "y-protocols": "^1.0.6",
80
+ "@reviseio/cli": "4.0.1"
65
81
  },
66
82
  "peerDependenciesMeta": {
67
- "@napi-rs/canvas": {
68
- "optional": true
69
- },
70
- "canvas": {
83
+ "@reviseio/cli": {
71
84
  "optional": true
72
85
  }
73
86
  },
74
87
  "engines": {
75
- "node": ">=20"
76
- },
77
- "license": "MIT",
78
- "homepage": "https://revise.io/developer/docs",
79
- "repository": {
80
- "type": "git",
81
- "url": "git+https://github.com/reviseio/revise.git"
88
+ "node": ">=18"
82
89
  },
90
+ "license": "SEE LICENSE IN LICENSE",
91
+ "homepage": "https://revise.io/sdk",
83
92
  "bugs": {
84
- "url": "https://github.com/reviseio/revise/issues",
85
- "email": "sdk@revise.io"
93
+ "email": "sdk@revise.io",
94
+ "url": "https://revise.io/developer/docs/editor-sdk/support"
86
95
  },
87
96
  "publishConfig": {
88
97
  "access": "public"
89
98
  },
90
99
  "scripts": {
91
- "prepublishOnly": "node -e \"if(process.env.REVISE_SDK_VERIFIED_PUBLISH!=='1'){console.error('Refusing to publish: use the audited publish in frontend/ (verify-sdk-tarball.mjs --publish).');process.exit(1)}\""
92
- }
100
+ "prepublishOnly": "node -e \"if(process.env.REVISE_SDK_VERIFIED_PUBLISH!=='1'){console.error('Refusing to publish: use npm run publish:sdk in frontend/, which audits the exact tarball first.');process.exit(1)}\""
101
+ },
102
+ "reviseBuild": "bcee747d6"
93
103
  }