@supernova-studio/client 0.48.4 → 0.48.6
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
|
@@ -2861,6 +2861,8 @@ var DesignSystemVersionRoomInternalSettings = _zod.z.object({
|
|
|
2861
2861
|
var DesignSystemVersionRoomInitialState = _zod.z.object({
|
|
2862
2862
|
pages: _zod.z.array(DocumentationPageV2),
|
|
2863
2863
|
groups: _zod.z.array(ElementGroup),
|
|
2864
|
+
pageSnapshots: _zod.z.array(DocumentationPageSnapshot),
|
|
2865
|
+
groupSnapshots: _zod.z.array(ElementGroupSnapshot),
|
|
2864
2866
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
2865
2867
|
});
|
|
2866
2868
|
var DesignSystemVersionRoomUpdate = _zod.z.object({
|
|
@@ -10439,8 +10441,7 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
10439
10441
|
let columnWidth;
|
|
10440
10442
|
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", _zod.z.array(_zod.z.number()).optional());
|
|
10441
10443
|
if (columnWidthArray) {
|
|
10442
|
-
columnWidth = columnWidthArray[0];
|
|
10443
|
-
columnWidth = Math.round(columnWidth * 100) / 100;
|
|
10444
|
+
columnWidth = roundDimension(columnWidthArray[0]);
|
|
10444
10445
|
}
|
|
10445
10446
|
const tableNodes = (_nullishCoalesce(prosemirrorNode.content, () => ( []))).map(parseAsTableNode).filter(nonNullFilter);
|
|
10446
10447
|
return {
|
|
@@ -10737,6 +10738,9 @@ function mapByUnique2(items, keyFn) {
|
|
|
10737
10738
|
}
|
|
10738
10739
|
return result;
|
|
10739
10740
|
}
|
|
10741
|
+
function roundDimension(dimension) {
|
|
10742
|
+
return Math.round(dimension * 100) / 100;
|
|
10743
|
+
}
|
|
10740
10744
|
|
|
10741
10745
|
// src/yjs/version-room/backend.ts
|
|
10742
10746
|
var BackendVersionRoomYDoc = class {
|