@ai-matrx/office 0.8.43 → 0.8.45
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 +21 -0
- package/dist/collab-sheets-transform.cjs +12 -0
- package/dist/collab-sheets-transform.cjs.map +1 -1
- package/dist/collab-sheets-transform.js +12 -0
- package/dist/collab-sheets-transform.js.map +1 -1
- package/dist/docs.cjs +85 -24
- package/dist/docs.cjs.map +1 -1
- package/dist/docs.d.cts +15 -1
- package/dist/docs.d.ts +15 -1
- package/dist/docs.js +65 -4
- package/dist/docs.js.map +1 -1
- package/dist/univer-collab.cjs +199 -17
- package/dist/univer-collab.cjs.map +1 -1
- package/dist/univer-collab.d.cts +72 -7
- package/dist/univer-collab.d.ts +72 -7
- package/dist/univer-collab.js +199 -17
- package/dist/univer-collab.js.map +1 -1
- package/package.json +6 -5
|
@@ -1054,6 +1054,18 @@ function transformCell(X, Y, side) {
|
|
|
1054
1054
|
if (styleKeys(xs).length !== styleKeys(kept ?? {}).length) xLost = true;
|
|
1055
1055
|
}
|
|
1056
1056
|
}
|
|
1057
|
+
if (hasContent(X) && hasContent(Y)) {
|
|
1058
|
+
const has = (s) => !!s && typeof s === "object" && "n" in s;
|
|
1059
|
+
const outS = out.s;
|
|
1060
|
+
if (side === "left" && !has(X.s) && has(Y.s) && X.s !== null) {
|
|
1061
|
+
out.s = { ...outS && typeof outS === "object" ? outS : {}, n: null };
|
|
1062
|
+
} else if (side === "right" && outS && typeof outS === "object" && "n" in outS) {
|
|
1063
|
+
const rest = withoutStyleKeys(outS, /* @__PURE__ */ new Set(["n"]));
|
|
1064
|
+
if (rest) out.s = rest;
|
|
1065
|
+
else delete out.s;
|
|
1066
|
+
xLost = true;
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1057
1069
|
return { entries: Object.keys(out).length ? [out, ...tail] : tail, xLost, yLost };
|
|
1058
1070
|
}
|
|
1059
1071
|
function transformCellsOverCells(x, y, side) {
|