@supernova-studio/client 0.25.0 → 0.25.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.js CHANGED
@@ -5286,7 +5286,7 @@ function serializeAsCustomBlock(block, definition) {
5286
5286
  });
5287
5287
  const columns = _optionalChain([block, 'access', _14 => _14.data, 'access', _15 => _15.appearance, 'optionalAccess', _16 => _16.numberOfColumns]);
5288
5288
  return {
5289
- type: "blockNode",
5289
+ type: serializeCustomBlockNodeType(block, definition),
5290
5290
  attrs: {
5291
5291
  id: block.id,
5292
5292
  definitionId: block.data.packageId,
@@ -5296,6 +5296,14 @@ function serializeAsCustomBlock(block, definition) {
5296
5296
  }
5297
5297
  };
5298
5298
  }
5299
+ function serializeCustomBlockNodeType(block, definition) {
5300
+ switch (block.data.packageId) {
5301
+ case "io.supernova.block.image":
5302
+ return "image";
5303
+ default:
5304
+ return "blockNode";
5305
+ }
5306
+ }
5299
5307
  function nonNullFilter(item) {
5300
5308
  return !!item;
5301
5309
  }