@supernova-studio/client 0.7.0 → 0.7.1
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.mjs
CHANGED
|
@@ -4429,6 +4429,7 @@ function serializeAsCustomBlock(block, definition) {
|
|
|
4429
4429
|
linksTo: i.linksTo
|
|
4430
4430
|
};
|
|
4431
4431
|
});
|
|
4432
|
+
const columns = block.data.appearance?.numberOfColumns;
|
|
4432
4433
|
return {
|
|
4433
4434
|
type: "blockNode",
|
|
4434
4435
|
attrs: {
|
|
@@ -4436,7 +4437,7 @@ function serializeAsCustomBlock(block, definition) {
|
|
|
4436
4437
|
definitionId: block.data.packageId,
|
|
4437
4438
|
variantId: block.data.variantId,
|
|
4438
4439
|
items: JSON.stringify(items),
|
|
4439
|
-
|
|
4440
|
+
...columns && { columns }
|
|
4440
4441
|
}
|
|
4441
4442
|
};
|
|
4442
4443
|
}
|
|
@@ -6180,7 +6181,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
|
|
|
6180
6181
|
packageId: definition.id,
|
|
6181
6182
|
indentLevel: 0,
|
|
6182
6183
|
...variantId && { variantId },
|
|
6183
|
-
appearance,
|
|
6184
|
+
...appearance && { appearance },
|
|
6184
6185
|
items: parsedItems
|
|
6185
6186
|
}
|
|
6186
6187
|
};
|
|
@@ -6209,6 +6210,8 @@ function parseAppearance(prosemirrorNode) {
|
|
|
6209
6210
|
appearance.itemBackgroundColor = parsedColor.data;
|
|
6210
6211
|
}
|
|
6211
6212
|
}
|
|
6213
|
+
if (!Object.keys(appearance).length)
|
|
6214
|
+
return void 0;
|
|
6212
6215
|
return appearance;
|
|
6213
6216
|
}
|
|
6214
6217
|
function parseItem(rawItem, definition) {
|