@supernova-studio/client 0.48.4 → 0.48.5
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/dist/index.js
CHANGED
|
@@ -10439,8 +10439,7 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
10439
10439
|
let columnWidth;
|
|
10440
10440
|
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", _zod.z.array(_zod.z.number()).optional());
|
|
10441
10441
|
if (columnWidthArray) {
|
|
10442
|
-
columnWidth = columnWidthArray[0];
|
|
10443
|
-
columnWidth = Math.round(columnWidth * 100) / 100;
|
|
10442
|
+
columnWidth = roundDimension(columnWidthArray[0]);
|
|
10444
10443
|
}
|
|
10445
10444
|
const tableNodes = (_nullishCoalesce(prosemirrorNode.content, () => ( []))).map(parseAsTableNode).filter(nonNullFilter);
|
|
10446
10445
|
return {
|
|
@@ -10737,6 +10736,9 @@ function mapByUnique2(items, keyFn) {
|
|
|
10737
10736
|
}
|
|
10738
10737
|
return result;
|
|
10739
10738
|
}
|
|
10739
|
+
function roundDimension(dimension) {
|
|
10740
|
+
return Math.round(dimension * 100) / 100;
|
|
10741
|
+
}
|
|
10740
10742
|
|
|
10741
10743
|
// src/yjs/version-room/backend.ts
|
|
10742
10744
|
var BackendVersionRoomYDoc = class {
|