@superdoc-dev/cli 0.17.0-next.10 → 0.17.0-next.11

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 +46 -18
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -68327,7 +68327,7 @@ var init_remark_gfm_BhnWr3yf_es = __esm(() => {
68327
68327
  emptyOptions2 = {};
68328
68328
  });
68329
68329
 
68330
- // ../../packages/superdoc/dist/chunks/SuperConverter-BSDZ3hYr.es.js
68330
+ // ../../packages/superdoc/dist/chunks/SuperConverter-DJyHekqW.es.js
68331
68331
  function getExtensionConfigField(extension$1, field, context = { name: "" }) {
68332
68332
  const fieldValue = extension$1.config[field];
68333
68333
  if (typeof fieldValue === "function")
@@ -111701,6 +111701,7 @@ function groupTrackedChanges(editor) {
111701
111701
  return cached.grouped;
111702
111702
  const marks = getRawTrackedMarks(editor);
111703
111703
  const byRawId = /* @__PURE__ */ new Map;
111704
+ const segmentsByRawId = /* @__PURE__ */ new Map;
111704
111705
  for (const item of marks) {
111705
111706
  const attrs = item.mark?.attrs ?? {};
111706
111707
  const id2 = toNonEmptyString(attrs.id);
@@ -111716,6 +111717,17 @@ function groupTrackedChanges(editor) {
111716
111717
  const wordRevisionIdKey = getWordRevisionIdKey(markType);
111717
111718
  const excerptText = !wordRevisionId || !hasChildTrackedMarkOnNode(item, id2) ? getTrackedMarkText(editor, item) : "";
111718
111719
  const range = [item.from, item.to];
111720
+ const priorSegments = segmentsByRawId.get(groupKey);
111721
+ if (priorSegments)
111722
+ priorSegments.push({
111723
+ from: item.from,
111724
+ to: item.to
111725
+ });
111726
+ else
111727
+ segmentsByRawId.set(groupKey, [{
111728
+ from: item.from,
111729
+ to: item.to
111730
+ }]);
111719
111731
  if (!existing) {
111720
111732
  byRawId.set(groupKey, {
111721
111733
  rawId: groupKey,
@@ -111763,7 +111775,23 @@ function groupTrackedChanges(editor) {
111763
111775
  return a.id.localeCompare(b.id);
111764
111776
  });
111765
111777
  attachOverlapMetadata(grouped);
111766
- for (const structural of enumerateStructuralRowChanges(editor.state)) {
111778
+ const structuralChanges = enumerateStructuralRowChanges(editor.state);
111779
+ const wholeTableRanges = structuralChanges.filter((structural) => structural.decidable && structural.wholeTable).map((structural) => ({
111780
+ from: structural.tableFrom,
111781
+ to: structural.tableTo
111782
+ }));
111783
+ if (wholeTableRanges.length > 0) {
111784
+ const segmentInsideSomeTable = (segment) => wholeTableRanges.some((range) => segment.from >= range.from && segment.to <= range.to);
111785
+ for (let i$1 = grouped.length - 1;i$1 >= 0; i$1 -= 1) {
111786
+ const change = grouped[i$1];
111787
+ if ((segmentsByRawId.get(change.rawId) ?? [{
111788
+ from: change.from,
111789
+ to: change.to
111790
+ }]).every(segmentInsideSomeTable))
111791
+ grouped.splice(i$1, 1);
111792
+ }
111793
+ }
111794
+ for (const structural of structuralChanges) {
111767
111795
  const excerpt = normalizeExcerpt(editor.state.doc.textBetween(structural.tableFrom, structural.tableTo, " ", ""));
111768
111796
  const stableRawId = structural.sourceId ? `word:structural:${structural.sourceId}` : structural.id;
111769
111797
  grouped.push({
@@ -134284,7 +134312,7 @@ var isRegExp = (value) => {
134284
134312
  state.kern = kernNode.attributes["w:val"];
134285
134313
  }
134286
134314
  }, SuperConverter;
134287
- var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
134315
+ var init_SuperConverter_DJyHekqW_es = __esm(() => {
134288
134316
  init_rolldown_runtime_Bg48TavK_es();
134289
134317
  init_jszip_C49i9kUs_es();
134290
134318
  init_xml_js_CqGKpaft_es();
@@ -174316,7 +174344,7 @@ var init_SuperConverter_BSDZ3hYr_es = __esm(() => {
174316
174344
  };
174317
174345
  });
174318
174346
 
174319
- // ../../packages/superdoc/dist/chunks/create-headless-toolbar-CKZ579SH.es.js
174347
+ // ../../packages/superdoc/dist/chunks/create-headless-toolbar-Jmx2i-9i.es.js
174320
174348
  function parseSizeUnit(val = "0") {
174321
174349
  const length3 = val.toString() || "0";
174322
174350
  const value = Number.parseFloat(length3);
@@ -184674,8 +184702,8 @@ var CSS_DIMENSION_REGEX, DOM_SIZE_UNITS, normalizeActorId = (value) => {
184674
184702
  }
184675
184703
  };
184676
184704
  };
184677
- var init_create_headless_toolbar_CKZ579SH_es = __esm(() => {
184678
- init_SuperConverter_BSDZ3hYr_es();
184705
+ var init_create_headless_toolbar_Jmx2i_9i_es = __esm(() => {
184706
+ init_SuperConverter_DJyHekqW_es();
184679
184707
  init_uuid_B2wVPhPi_es();
184680
184708
  init_constants_D9qj59G2_es();
184681
184709
  init_dist_B8HfvhaK_es();
@@ -233838,7 +233866,7 @@ var init_remark_gfm_eZN6yzWQ_es = __esm(() => {
233838
233866
  init_remark_gfm_BhnWr3yf_es();
233839
233867
  });
233840
233868
 
233841
- // ../../packages/superdoc/dist/chunks/src-BXck1nRd.es.js
233869
+ // ../../packages/superdoc/dist/chunks/src-BB_FFFud.es.js
233842
233870
  function deleteProps(obj, propOrProps) {
233843
233871
  const props = typeof propOrProps === "string" ? [propOrProps] : propOrProps;
233844
233872
  const removeNested = (target, pathParts, index2 = 0) => {
@@ -331429,13 +331457,13 @@ menclose::after {
331429
331457
  return;
331430
331458
  console.log(...args$1);
331431
331459
  }, HEADER_FOOTER_INIT_BUDGET_MS = 200, MAX_ZOOM_WARNING_THRESHOLD = 10, MAX_SELECTION_RECTS_PER_USER = 100, SEMANTIC_RESIZE_DEBOUNCE_MS = 120, MIN_SEMANTIC_CONTENT_WIDTH_PX = 1, GLOBAL_PERFORMANCE, PresentationEditor, ICONS, TEXTS, tableActionsOptions, TRACKED_MARK_NAMES;
331432
- var init_src_BXck1nRd_es = __esm(() => {
331460
+ var init_src_BB_FFFud_es = __esm(() => {
331433
331461
  init_rolldown_runtime_Bg48TavK_es();
331434
- init_SuperConverter_BSDZ3hYr_es();
331462
+ init_SuperConverter_DJyHekqW_es();
331435
331463
  init_jszip_C49i9kUs_es();
331436
331464
  init_xml_js_CqGKpaft_es();
331437
331465
  init_uuid_B2wVPhPi_es();
331438
- init_create_headless_toolbar_CKZ579SH_es();
331466
+ init_create_headless_toolbar_Jmx2i_9i_es();
331439
331467
  init_constants_D9qj59G2_es();
331440
331468
  init_dist_B8HfvhaK_es();
331441
331469
  init_unified_Dsuw2be5_es();
@@ -366400,11 +366428,11 @@ function print() { __p += __j.call(arguments, '') }
366400
366428
  ]);
366401
366429
  });
366402
366430
 
366403
- // ../../packages/superdoc/dist/chunks/create-super-doc-ui---bNCP-9.es.js
366431
+ // ../../packages/superdoc/dist/chunks/create-super-doc-ui-Cjo_Z85j.es.js
366404
366432
  var headlessToolbarConstants, MOD_ALIASES, ALT_ALIASES, CTRL_ALIASES, SHIFT_ALIASES, BUILTIN_CONTEXT_MENU_GROUPS, BUILTIN_GROUP_ORDER, RESERVED_PROXY_PROPERTY_NAMES, ALL_TOOLBAR_COMMAND_IDS, EMPTY_ACTIVE_IDS;
366405
- var init_create_super_doc_ui_bNCP_9_es = __esm(() => {
366406
- init_SuperConverter_BSDZ3hYr_es();
366407
- init_create_headless_toolbar_CKZ579SH_es();
366433
+ var init_create_super_doc_ui_Cjo_Z85j_es = __esm(() => {
366434
+ init_SuperConverter_DJyHekqW_es();
366435
+ init_create_headless_toolbar_Jmx2i_9i_es();
366408
366436
  headlessToolbarConstants = {
366409
366437
  DEFAULT_TEXT_ALIGN_OPTIONS: [
366410
366438
  {
@@ -366686,16 +366714,16 @@ var init_zipper_yaJVJ4z9_es = __esm(() => {
366686
366714
 
366687
366715
  // ../../packages/superdoc/dist/super-editor.es.js
366688
366716
  var init_super_editor_es = __esm(() => {
366689
- init_src_BXck1nRd_es();
366690
- init_SuperConverter_BSDZ3hYr_es();
366717
+ init_src_BB_FFFud_es();
366718
+ init_SuperConverter_DJyHekqW_es();
366691
366719
  init_jszip_C49i9kUs_es();
366692
366720
  init_xml_js_CqGKpaft_es();
366693
- init_create_headless_toolbar_CKZ579SH_es();
366721
+ init_create_headless_toolbar_Jmx2i_9i_es();
366694
366722
  init_constants_D9qj59G2_es();
366695
366723
  init_dist_B8HfvhaK_es();
366696
366724
  init_unified_Dsuw2be5_es();
366697
366725
  init_DocxZipper_FUsfThjV_es();
366698
- init_create_super_doc_ui_bNCP_9_es();
366726
+ init_create_super_doc_ui_Cjo_Z85j_es();
366699
366727
  init_ui_C5PAS9hY_es();
366700
366728
  init_eventemitter3_BnGqBE_Q_es();
366701
366729
  init_errors_CNaD6vcg_es();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superdoc-dev/cli",
3
- "version": "0.17.0-next.10",
3
+ "version": "0.17.0-next.11",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "superdoc": "./dist/index.js"
@@ -24,20 +24,20 @@
24
24
  "@types/node": "22.19.2",
25
25
  "@types/ws": "^8.5.13",
26
26
  "typescript": "^5.9.2",
27
- "@superdoc/document-api": "0.0.1",
28
27
  "@superdoc/super-editor": "0.0.1",
29
- "superdoc": "1.39.0"
28
+ "superdoc": "1.39.0",
29
+ "@superdoc/document-api": "0.0.1"
30
30
  },
31
31
  "module": "src/index.ts",
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
35
  "optionalDependencies": {
36
- "@superdoc-dev/cli-darwin-x64": "0.17.0-next.10",
37
- "@superdoc-dev/cli-darwin-arm64": "0.17.0-next.10",
38
- "@superdoc-dev/cli-linux-x64": "0.17.0-next.10",
39
- "@superdoc-dev/cli-linux-arm64": "0.17.0-next.10",
40
- "@superdoc-dev/cli-windows-x64": "0.17.0-next.10"
36
+ "@superdoc-dev/cli-darwin-x64": "0.17.0-next.11",
37
+ "@superdoc-dev/cli-darwin-arm64": "0.17.0-next.11",
38
+ "@superdoc-dev/cli-linux-x64": "0.17.0-next.11",
39
+ "@superdoc-dev/cli-linux-arm64": "0.17.0-next.11",
40
+ "@superdoc-dev/cli-windows-x64": "0.17.0-next.11"
41
41
  },
42
42
  "scripts": {
43
43
  "predev": "node scripts/ensure-superdoc-build.js",