@supernova-studio/client 0.47.62 → 0.47.63

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/client",
3
- "version": "0.47.62",
3
+ "version": "0.47.63",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -267,11 +267,10 @@ function parseAsRichText(
267
267
  id: id,
268
268
  type: "Block",
269
269
 
270
- ...(variantId && { variantId: variantId }),
271
-
272
270
  data: {
273
271
  packageId: definition.id,
274
272
  indentLevel: 0,
273
+ ...(variantId && { variantId: variantId }),
275
274
  items: [
276
275
  {
277
276
  id: id,
@@ -528,6 +527,7 @@ function parseAsTableCell(prosemirrorNode: ProsemirrorNode): PageBlockItemTableC
528
527
  const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z.array(z.number()).optional());
529
528
  if (columnWidthArray) {
530
529
  columnWidth = columnWidthArray[0];
530
+ columnWidth = Math.round(columnWidth * 100) / 100;
531
531
  }
532
532
 
533
533
  const tableNodes = (prosemirrorNode.content ?? []).map(parseAsTableNode).filter(nonNullFilter);