@ai-matrx/office 0.8.38 → 0.8.39

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.
@@ -1089,7 +1089,7 @@ import { isOpBarrier, openOpSession } from "@ai-matrx/data/realtime/collab";
1089
1089
  // src/docs/comment-anchors.ts
1090
1090
  import { BuildTextUtils, CustomRangeType, JSONX as JSONX2 } from "@univerjs/core";
1091
1091
  var COMMENT_ANCHOR_RANGE_TYPE = CustomRangeType.COMMENT;
1092
- var RETAIN_KEYS = /* @__PURE__ */ new Set(["t", "len", "body", "coverType"]);
1092
+ var RETAIN_KEYS = /* @__PURE__ */ new Set(["t", "len", "body", "coverType", "oldBody"]);
1093
1093
  var RANGE_KEYS = /* @__PURE__ */ new Set(["rangeId", "rangeType", "startIndex", "endIndex", "properties"]);
1094
1094
  var isObj = (v) => !!v && typeof v === "object" && !Array.isArray(v);
1095
1095
  var keysOf = (o) => Object.keys(o).filter((k) => o[k] !== void 0);
@@ -1834,13 +1834,10 @@ var SHEET_MUTATIONS = {
1834
1834
  "data-validation.mutation.updateRule": covered("dv", "ruleId", "payload", "source", "derived"),
1835
1835
  "data-validation.mutation.removeRule": covered("dv", "ruleId", "source", "derived"),
1836
1836
  "sheet.mutation.set-filter-range": covered("filter", "range", "derived"),
1837
- // C5f: Univer's cell notes. Their transform is built (comment-anchor-transform.ts `transformCellNote`, pairwise and
1838
- // chained fuzz green) but the session fuzz still diverges on note cells (seed 1015, 6 seats: a note at column 5 on
1839
- // one seat, 8 on another), so they stay barriers until that seed is green. Covered form, for the next lane:
1840
- // covered("note", "sheetId", "row", "col", "note" | "noteId", "newPosition", "silent", "derived")
1841
- "sheet.mutation.update-note": barrier("C5c", "cell note: the session fuzz diverges on note cells (seed 1015)"),
1842
- "sheet.mutation.remove-note": barrier("C5c", "cell note: the session fuzz diverges on note cells (seed 1015)"),
1843
- "sheet.mutation.update-note-position": barrier("C5c", "cell note: the session fuzz diverges on note cells (seed 1015)"),
1837
+ // C5f/C5g: Univer's cell notes, keyed by note id, anchored to one cell (their transform: comment-anchor-transform.ts)
1838
+ "sheet.mutation.update-note": covered("note", "sheetId", "row", "col", "note", "silent", "derived"),
1839
+ "sheet.mutation.remove-note": covered("note", "sheetId", "noteId", "row", "col", "silent", "derived"),
1840
+ "sheet.mutation.update-note-position": covered("note", "sheetId", "noteId", "row", "col", "newPosition", "silent", "derived"),
1844
1841
  "sheet.mutation.set-filter-criteria": covered("filter", "col", "criteria", "reCalc", "derived"),
1845
1842
  "sheet.mutation.remove-filter": covered("filter", "derived"),
1846
1843
  "sheet.mutation.add-table": barrier("C5c", RESOURCE),