@supernova-studio/client 0.2.2 → 0.2.3
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.d.mts +72 -72
- package/dist/index.d.ts +72 -72
- package/dist/index.js +122 -406
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +122 -406
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/docs-editor/prosemirror-to-blocks.ts +2 -2
package/package.json
CHANGED
|
@@ -303,7 +303,7 @@ function parseAsCustomBlock(
|
|
|
303
303
|
return null;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
|
-
const parsedItems = itemsJson.map(i => parseItem(i, definition));
|
|
306
|
+
const parsedItems = itemsJson.map(i => parseItem(i, definition)).filter(nonNullFilter);
|
|
307
307
|
|
|
308
308
|
return {
|
|
309
309
|
id: id,
|
|
@@ -329,7 +329,7 @@ function parseItem(rawItem: unknown, definition: PageBlockDefinition): PageBlock
|
|
|
329
329
|
for (const property of definition.item.properties) {
|
|
330
330
|
const value = parsedItem.data.props[property.id];
|
|
331
331
|
if (!value) {
|
|
332
|
-
|
|
332
|
+
continue;
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
// Validate
|