@superdoc/cli 0.34.1-next.3 → 0.34.1-next.4

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 (2) hide show
  1. package/dist/index.js +17 -12
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -305385,17 +305385,22 @@ function mirrorStoryBlocksFromSession(input) {
305385
305385
  return;
305386
305386
  }
305387
305387
  case "paragraphRangeCollapse": {
305388
+ const tracked = source.changeMode === "tracked";
305388
305389
  resolveStoryShardScope(input.doc).doc.transact(() => {
305389
- for (const blockId of input.extension.targetBlockIds) {
305390
- if (blockId === source.on.startBlockId || !findBlockMap(input.doc, blockId))
305391
- continue;
305392
- deleteBlock({
305393
- doc: input.doc,
305394
- blockId,
305395
- origin: STORY_SURFACE_BACKEND_ORIGIN
305396
- });
305390
+ if (tracked) {
305391
+ syncBlocksFromSession(input.session, input.storyId, input.doc, input.extension.targetBlockIds);
305392
+ } else {
305393
+ for (const blockId of input.extension.targetBlockIds) {
305394
+ if (blockId === source.on.startBlockId || !findBlockMap(input.doc, blockId))
305395
+ continue;
305396
+ deleteBlock({
305397
+ doc: input.doc,
305398
+ blockId,
305399
+ origin: STORY_SURFACE_BACKEND_ORIGIN
305400
+ });
305401
+ }
305402
+ syncBlocksFromSession(input.session, input.storyId, input.doc, [source.on.startBlockId]);
305397
305403
  }
305398
- syncBlocksFromSession(input.session, input.storyId, input.doc, [source.on.startBlockId]);
305399
305404
  reconcileTableOverlaysFromSession(input.session, input.prepared, input.storyId, input.doc, { rebuildLiveTables: false, lastDeltaKind: "paragraph.rangeCollapse" });
305400
305405
  }, STORY_SURFACE_BACKEND_ORIGIN);
305401
305406
  return;
@@ -419138,7 +419143,7 @@ var _0x1b9e99, _0x5b0dcb, _0x497d74 = (_0x302c51, _0xf65676) => () => (_0xf65676
419138
419143
  }, _0x1c1e66, _0x3722e3, _0x12c439, _0x4ac1e3, _0x33fd67, _0x19180d, _0x367c63, _0x3cddee, _0x1667b1, _0x8f4729, _0x47fc7a, _0x33d3dc, _0x188603, _0x243c08, _0x2b69c3, _0x45602d = 25000, _0x3195bb, _0x12715a = 2147483647, _0x3119ab = 63, _0x3db78c, _0x52aead, _0x12ff20, _0x38da00 = 1638, _0x2b660f = 255, _0x2824ac = 2147483647, _0x138d8a = 63, _0xcaed29, _0x4dbf37, _0x5ac7d0 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x2f77e0 = "http://schemas.microsoft.com/office/word/2010/wordml", _0x30aaff = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", _0x3907c4 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x1d237b, _0x10e79f, _0x1120e4, _0x3bd22e = "Content control mutations outside the document body are not supported by this adapter.", _0x1002f7, _0x331f0c, _0x4a7fae = 128, _0x110dc4 = 16, _0x5a9c6b, _0x24cb7b, _0x32bf97, _0x48a6da, _0x37e4b9, _0x1afadf, _0x33b80e, _0x4e2980, _0x3ec130, _0x30b495, _0x30164b, _0x237d7c, _0x34c261, _0xb9c8b0, _0x4b5325, _0x182db2 = "v2-text:", _0x32a56f, _0x5bb94b, _0x1cfe02, _0x6c97fb, _0x497d61 = "tc-comment:", _0x2e1406, _0x555108, _0x152ca8, _0x2d07d4, _0x37bd2e, _0xb82018, _0x205011, _0x2b12a8, _0x27b893 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x226de0 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships", _0x5826b0, _0x4007a8 = 32, _0x3fbb94, _0x17233c, _0x18f42d, _0x1cae79, _0x28d328, _0x8857a8 = 256, _0x47377b, _0x11f7a0, _0xf86cb8 = 4096, _0x38e46f = 256, _0x2f6171, _0x27b0fb, _0x32efa9, _0x22e26a, _0x31a4b4, _0x5b741b, _0x208e72, _0x31069b, _0x1993c7, _0xad745a, _0x131138, _0x3b610d, _0x4e3827, _0xebefc3, _0x29f1b2, _0x462494, _0x5c799a, _0x494629 = "v2-range:", _0x3905d1, _0x264f62, _0x2e56f0, _0x4fe679, _0x4420c8, _0x420f04, _0x45a0b4, _0x5236c2, _0x42b8d1, _0x14a5ec, _0x3150e9, _0x1cce2c, _0xb328d2, _0x42a8e1, _0x3ab46d, _0x27ae77 = 32, _0x130811, _0x3397c1, _0x6da9ff, _0x3a59af, _0x550cb1, _0x32edf2, _0x22a17e = "/word/document.xml", _0x1d403, _0xb82596, _0x16081c, _0x3303fb = "/word/settings.xml", _0x1e0b7c = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x3b5dc7, _0x327640, _0x2048b9, _0x1c0b86 = "/word/document.xml", _0x509ae6 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps", _0x2de873, _0x1f05b0, _0x2a3818 = "/[Content_Types].xml", _0x130046 = "/", _0x24808c, _0x1cb845 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x326fa4, _0x1b2056, _0x63c447 = "http://schemas.openxmlformats.org/package/2006/relationships", _0x233faf = "http://schemas.openxmlformats.org/package/2006/content-types", _0x4f24fb, _0x56751a = "/relationships/header", _0x465834 = "/relationships/footer", _0x4dbbe1 = "/word/_rels/document.xml.rels", _0x591285 = "/[Content_Types].xml", _0x5f4749 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x1a754e, _0x5caee4, _0xebe1d6, _0x50b4a2, _0x38ac12, _0x1c17a0, _0x8136e8, _0xeccc0b = 9525, _0x3606d6, _0x11019a, _0x158089, _0x2e2d05, _0xd6a0b8, _0x5b3ac0, _0x13ab37 = "/word/_rels/document.xml.rels", _0x349ecd = "/[Content_Types].xml", _0x6bd9e0 = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"></Relationships>', _0x4749f8 = "/relationships/header", _0x3e1156 = "/relationships/footer", _0x4b6261, _0x44f10b, _0x15348f = "/word/styles.xml", _0x110230, _0x2f3a16, _0x20779a, _0x4a1428, _0x1a36ee = "/word/document.xml", _0x530bc0 = "body:/word/document.xml", _0x484c02 = "snapshot", _0x52cb06 = "superdoc-v2", _0x41bc0e, _0x29acb3, _0x12ab7f = "superdoc-v2-full-diff-snapshot", _0x992050 = "sd-diff-v2/full-snapshot/v1", _0x648801 = "superdoc-v2-full-diff-payload", _0x557ed3 = "sd-diff-v2/full-payload/v1", _0x390e95, _0x372f2e = "/word/_rels/document.xml.rels", _0x2ae29b = "/word/document.xml", _0x2874f6 = "/[Content_Types].xml", _0x58bfc7, _0x51f32d, _0x19ceef, _0x51e07f = "http://schemas.openxmlformats.org/package/2006/relationships", _0x13d18b = "http://schemas.openxmlformats.org/package/2006/content-types", _0x366b97 = "http://schemas.openxmlformats.org/drawingml/2006/main", _0x330273 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x2f4cd9 = "http://schemas.openxmlformats.org/package/2006/metadata/core-properties", _0x37b97f = "http://purl.org/dc/terms/", _0x3c3b2c = "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties", _0x427850, _0x443264, _0x480495 = "body:/word/document.xml", _0x31ee49 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x11d866 = "http://schemas.microsoft.com/office/word/2010/wordml", _0x757fa0 = "http://schemas.openxmlformats.org/markup-compatibility/2006", _0x3f7958, _0x125098, _0x5da35f, _0x55f00e, _0x34f82d = 64, _0x37968e = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x5e2f0b, _0x348cac, _0x26ba9e, _0x139dec = "/word/document.xml", _0x46fc37 = "/word/numbering.xml", _0x4ffbc6, _0x3d66c7, _0x193ec4 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x2a5b8c = "http://schemas.microsoft.com/office/word/2010/wordml", _0x52adcf = "http://schemas.openxmlformats.org/officeDocument/2006/math", _0x2953c5 = "http://schemas.openxmlformats.org/markup-compatibility/2006", _0x330e06 = "urn:schemas-microsoft-com:vml", _0xe16fd0, _0x527e63, _0x4000db, _0x47e31e, _0x5537b3, _0x3906b0, _0x2879f9, _0x3f2176, _0x30c359, _0x1311f1 = "\x00unresolved", _0x5aacfb, _0x3c2b54, _0x5d4c8a, _0x5ea840, _0x87f8f5, _0x589db7, _0x4e280d = "/word/numbering.xml", _0x16e241 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x50494e, _0x408e65, _0x4a6327, _0x40dda0, _0x5ee5ac, _0x7ce958, _0xa20fc9, _0x126699, _0x3708a2 = "/word/document.xml", _0x185dd9, _0x49093f, _0x58314b, _0x2d6585, _0x20c70b, _0x1ac056, _0x3c0fef = 100, _0x50cef7 = 100, _0x5e7c45 = 100, _0x15c99f = 1000, _0x505afc = 500, _0x2e1262, _0x345eab = "v2-textbox-geometry", _0x44171b, _0x2d1fa8, _0x6c047a, _0x10e6cf, _0x5ebc09 = 100, _0x1f104e, _0x4e9aaf, _0x25a287, _0x274d08 = "hl-field:", _0x427127 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", _0x3481e2, _0x3290a5, _0x44f6cf, _0x309dce, _0x1b7f92, _0x4e9707, _0x3dbc43, _0x4b0bf3, _0x1fc7fe, _0x58f2b1 = 9525, _0x24ffa7 = 1000, _0x444fe0, _0x96e1ff, _0x158ce4, _0x4a325e = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink", _0x4f1f5c = 9525, _0x5058be = 1000, _0x725338 = 251659264, _0xbc537 = "{C183D7F6-B498-43B3-948B-1728B52AA6E4}", _0x2f406a = "http://schemas.microsoft.com/office/drawing/2017/decorative", _0x149f34, _0x33202e, _0x11e911, _0x41fef7 = 12240, _0x2d3522 = 1440, _0xb0d9b9 = 15, _0x50b302, _0x35c19b = "http://schemas.microsoft.com/office/word/2010/wordml", _0x3a9130 = "/word/footnotes.xml", _0x27ded2 = "/word/endnotes.xml", _0x142a8b = "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml", _0x53f078 = "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml", _0x214942 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes", _0x4c5734 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes", _0x5cd848, _0x13e8a3, _0x2ce2c6, _0x40b7da, _0x368868, _0x27c5df = 63, _0x450091 = 1638, _0xc525c8 = 255, _0x5dd095, _0x15c9ce, _0x6e04c5, _0x10effd = 64, _0x59c1a4 = 8000, _0x1a8009 = 256, _0x2dd666, _0x46cdcb, _0x50b4b0, _0x47cedb = 9525, _0x5bdd4d = 1024, _0x28890d, _0x217a5f, _0x2483cc, _0x39b9a4, _0x14d7e8, _0x24c284, _0xbf689d, _0x5921d4, _0x47abf8, _0x244199, _0x20a523, _0x4e19b6 = "Anchored metadata", _0xf4226c = "http://schemas.microsoft.com/office/word/2012/wordml", _0x4241df = 2147483646, _0x6397a8, _0x29bed4, _0x3dd6c4 = "all", _0x5dec0a, _0xbc0e4b, _0x17bfab, _0x2201ed = "[Content_Types].xml", _0x2b423d = "/[Content_Types].xml", _0x51eac3 = "/word/document.xml", _0x2cd464 = "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml", _0xf06d5c = "http://purl.oclc.org/ooxml/wordprocessingml/main", _0x2f3d81 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme", _0x40345f = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable", _0x50d9f0 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings", _0xad4dbe = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header", _0x3ae729 = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer", _0xd9bb7b = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", _0x557223, _0x4d186d = "word/styles.xml", _0x4e06f5, _0x22c476 = "word/numbering.xml", _0x170ee4 = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", _0x4a0c5d, _0x5705ac, _0x238ce2, _0x538410 = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"></Relationships>', _0x1c9963, _0xa684da, _0x35fda2, _0x3cc20d, _0x2ad796, _0x1e6f07, _0x3e0745, _0x3700c8, _0x48ab04;
419139
419144
  var init_document_runtime = __esm(() => {
419140
419145
  /*!
419141
- * DOCX Engine v0.13.1-next.2
419146
+ * DOCX Engine v0.13.1-next.3
419142
419147
  * Proprietary software. Copyright © 2026 Harbour Enterprises, Inc., d/b/a SuperDoc.
419143
419148
  * Use governed by the DOCX Engine Proprietary License Agreement.
419144
419149
  * No reverse engineering, deobfuscation, redistribution,
@@ -435017,7 +435022,7 @@ var _0x415384, _0x34c367, _0xf69747 = "host.request.timeoutMs", _0x458db1 = 2147
435017
435022
  var init_document_host = __esm(() => {
435018
435023
  init_document_runtime();
435019
435024
  /*!
435020
- * DOCX Engine v0.13.1-next.2
435025
+ * DOCX Engine v0.13.1-next.3
435021
435026
  * Proprietary software. Copyright © 2026 Harbour Enterprises, Inc., d/b/a SuperDoc.
435022
435027
  * Use governed by the DOCX Engine Proprietary License Agreement.
435023
435028
  * No reverse engineering, deobfuscation, redistribution,
@@ -757930,7 +757935,7 @@ var init_host2 = __esm(() => {
757930
757935
  });
757931
757936
 
757932
757937
  // ../../packages/sdk/langs/node/src/runtime/sdk-version.generated.ts
757933
- var SDK_VERSION = "2.11.1-next.3";
757938
+ var SDK_VERSION = "2.11.1-next.4";
757934
757939
 
757935
757940
  // ../../packages/sdk/langs/node/src/runtime/embedded-platform.ts
757936
757941
  import { chmodSync, existsSync } from "node:fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc/cli",
3
- "version": "0.34.1-next.3",
3
+ "version": "0.34.1-next.4",
4
4
  "description": "Command-line interface for SuperDoc: inspect, convert, and edit .docx files from a terminal or a script.",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0",
@@ -29,15 +29,15 @@
29
29
  "fast-glob": "^3.3.3",
30
30
  "happy-dom": "^20.3.4",
31
31
  "ws": "^8.18.0",
32
- "superdoc": "2.14.1-next.4",
32
+ "superdoc": "2.14.1-next.5",
33
33
  "y-websocket": "^3.0.0",
34
34
  "yjs": "13.6.31"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@hocuspocus/server": "^2.13.6",
38
- "@superdoc/sdk": "2.11.1-next.3",
38
+ "@superdoc/sdk": "2.11.1-next.4",
39
39
  "@superdoc/document-api": "0.1.0-alpha.0",
40
- "@superdoc/docx-engine": "0.13.1-next.2",
40
+ "@superdoc/docx-engine": "0.13.1-next.3",
41
41
  "@types/bun": "^1.3.8",
42
42
  "@types/node": "22.19.2",
43
43
  "@types/ws": "^8.5.13",
@@ -51,11 +51,11 @@
51
51
  "access": "public"
52
52
  },
53
53
  "optionalDependencies": {
54
- "@superdoc/cli-darwin-arm64": "0.34.1-next.3",
55
- "@superdoc/cli-darwin-x64": "0.34.1-next.3",
56
- "@superdoc/cli-linux-x64": "0.34.1-next.3",
57
- "@superdoc/cli-linux-arm64": "0.34.1-next.3",
58
- "@superdoc/cli-windows-x64": "0.34.1-next.3"
54
+ "@superdoc/cli-darwin-arm64": "0.34.1-next.4",
55
+ "@superdoc/cli-darwin-x64": "0.34.1-next.4",
56
+ "@superdoc/cli-linux-x64": "0.34.1-next.4",
57
+ "@superdoc/cli-linux-arm64": "0.34.1-next.4",
58
+ "@superdoc/cli-windows-x64": "0.34.1-next.4"
59
59
  },
60
60
  "scripts": {
61
61
  "predev": "node scripts/ensure-superdoc-build.js",