@supernova-studio/client 0.9.0 → 0.9.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
@@ -4076,8 +4076,9 @@ function pageToProsemirrorDoc(page, definitions) {
4076
4076
  }
4077
4077
  function blockDefinitionForBlock(block, definitions) {
4078
4078
  const definition = definitions.find((d) => d.id === block.data.packageId);
4079
- if (!definition)
4079
+ if (!definition) {
4080
4080
  throw new Error(`Could not find definition for ${block.id} (${block.data.packageId})`);
4081
+ }
4081
4082
  return definition;
4082
4083
  }
4083
4084
  function blockToProsemirrorNode(block, definition) {
@@ -7111,9 +7112,9 @@ function parseRichTextAttribute(mark) {
7111
7112
  case "code":
7112
7113
  return { type: "Code" };
7113
7114
  case "link":
7114
- const itemIdRaw = parseProsemirrorBlockAttribute(mark, "itemId");
7115
+ const itemIdRaw = parseProsemirrorOptionalBlockAttribute(mark, "itemId");
7115
7116
  const itemId = typeof itemIdRaw === "string" ? itemIdRaw : void 0;
7116
- const hrefRaw = parseProsemirrorBlockAttribute(mark, "href");
7117
+ const hrefRaw = parseProsemirrorOptionalBlockAttribute(mark, "href");
7117
7118
  const href = typeof hrefRaw === "string" ? hrefRaw : void 0;
7118
7119
  return {
7119
7120
  type: "Link",