@supernova-studio/client 0.48.26 → 0.48.28

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 CHANGED
@@ -19206,11 +19206,13 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
19206
19206
  spans: {
19207
19207
  text: string;
19208
19208
  attributes: {
19209
- type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
19209
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough" | "Comment";
19210
19210
  link?: string | null | undefined;
19211
19211
  documentationItemId?: string | null | undefined;
19212
19212
  openInNewTab?: boolean | null | undefined;
19213
19213
  openInNewWindow?: boolean | null | undefined;
19214
+ commentHighlightId?: string | null | undefined;
19215
+ commentIsResolved?: boolean | null | undefined;
19214
19216
  }[];
19215
19217
  }[];
19216
19218
  } | null | undefined;
@@ -19767,11 +19769,13 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
19767
19769
  spans: {
19768
19770
  text: string;
19769
19771
  attributes: {
19770
- type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
19772
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough" | "Comment";
19771
19773
  link?: string | null | undefined;
19772
19774
  documentationItemId?: string | null | undefined;
19773
19775
  openInNewTab?: boolean | null | undefined;
19774
19776
  openInNewWindow?: boolean | null | undefined;
19777
+ commentHighlightId?: string | null | undefined;
19778
+ commentIsResolved?: boolean | null | undefined;
19775
19779
  }[];
19776
19780
  }[];
19777
19781
  } | null | undefined;
@@ -20552,11 +20556,13 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
20552
20556
  spans: {
20553
20557
  text: string;
20554
20558
  attributes: {
20555
- type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
20559
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough" | "Comment";
20556
20560
  link?: string | null | undefined;
20557
20561
  documentationItemId?: string | null | undefined;
20558
20562
  openInNewTab?: boolean | null | undefined;
20559
20563
  openInNewWindow?: boolean | null | undefined;
20564
+ commentHighlightId?: string | null | undefined;
20565
+ commentIsResolved?: boolean | null | undefined;
20560
20566
  }[];
20561
20567
  }[];
20562
20568
  } | null | undefined;
@@ -20766,11 +20772,13 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
20766
20772
  spans: {
20767
20773
  text: string;
20768
20774
  attributes: {
20769
- type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
20775
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough" | "Comment";
20770
20776
  link?: string | null | undefined;
20771
20777
  documentationItemId?: string | null | undefined;
20772
20778
  openInNewTab?: boolean | null | undefined;
20773
20779
  openInNewWindow?: boolean | null | undefined;
20780
+ commentHighlightId?: string | null | undefined;
20781
+ commentIsResolved?: boolean | null | undefined;
20774
20782
  }[];
20775
20783
  }[];
20776
20784
  } | null | undefined;
@@ -21098,11 +21106,13 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
21098
21106
  spans: {
21099
21107
  text: string;
21100
21108
  attributes: {
21101
- type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
21109
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough" | "Comment";
21102
21110
  link?: string | null | undefined;
21103
21111
  documentationItemId?: string | null | undefined;
21104
21112
  openInNewTab?: boolean | null | undefined;
21105
21113
  openInNewWindow?: boolean | null | undefined;
21114
+ commentHighlightId?: string | null | undefined;
21115
+ commentIsResolved?: boolean | null | undefined;
21106
21116
  }[];
21107
21117
  }[];
21108
21118
  } | null | undefined;
@@ -21312,11 +21322,13 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
21312
21322
  spans: {
21313
21323
  text: string;
21314
21324
  attributes: {
21315
- type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
21325
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough" | "Comment";
21316
21326
  link?: string | null | undefined;
21317
21327
  documentationItemId?: string | null | undefined;
21318
21328
  openInNewTab?: boolean | null | undefined;
21319
21329
  openInNewWindow?: boolean | null | undefined;
21330
+ commentHighlightId?: string | null | undefined;
21331
+ commentIsResolved?: boolean | null | undefined;
21320
21332
  }[];
21321
21333
  }[];
21322
21334
  } | null | undefined;
@@ -42332,7 +42344,7 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
42332
42344
  }>;
42333
42345
  type DocumentationPageEditorModel = z.infer<typeof DocumentationPageEditorModel>;
42334
42346
 
42335
- declare const pmSchema: Schema<"image" | "table" | "tableContainer" | "blockquote" | "sectionItem" | "sectionItemColumn" | "callout" | "paragraph" | "reactComponent" | "tableRow" | "tableCell" | "tableHeader" | "hardBreak" | "text" | "heading" | "listItem" | "orderedList" | "bulletList" | "horizontalRule" | "plainSection" | "tabsSection" | "doc" | "blockNode" | "embed", "code" | "bold" | "link" | "strike" | "italic">;
42347
+ declare const pmSchema: Schema<"image" | "table" | "tableContainer" | "blockquote" | "sectionItem" | "sectionItemColumn" | "callout" | "paragraph" | "reactComponent" | "tableRow" | "tableCell" | "tableHeader" | "hardBreak" | "text" | "heading" | "listItem" | "orderedList" | "bulletList" | "horizontalRule" | "plainSection" | "tabsSection" | "doc" | "blockNode" | "embed", "code" | "bold" | "link" | "strike" | "commentHighlight" | "italic">;
42336
42348
 
42337
42349
  type ProsemirrorNode = {
42338
42350
  type: string;
package/dist/index.d.ts CHANGED
@@ -19206,11 +19206,13 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
19206
19206
  spans: {
19207
19207
  text: string;
19208
19208
  attributes: {
19209
- type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
19209
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough" | "Comment";
19210
19210
  link?: string | null | undefined;
19211
19211
  documentationItemId?: string | null | undefined;
19212
19212
  openInNewTab?: boolean | null | undefined;
19213
19213
  openInNewWindow?: boolean | null | undefined;
19214
+ commentHighlightId?: string | null | undefined;
19215
+ commentIsResolved?: boolean | null | undefined;
19214
19216
  }[];
19215
19217
  }[];
19216
19218
  } | null | undefined;
@@ -19767,11 +19769,13 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
19767
19769
  spans: {
19768
19770
  text: string;
19769
19771
  attributes: {
19770
- type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
19772
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough" | "Comment";
19771
19773
  link?: string | null | undefined;
19772
19774
  documentationItemId?: string | null | undefined;
19773
19775
  openInNewTab?: boolean | null | undefined;
19774
19776
  openInNewWindow?: boolean | null | undefined;
19777
+ commentHighlightId?: string | null | undefined;
19778
+ commentIsResolved?: boolean | null | undefined;
19775
19779
  }[];
19776
19780
  }[];
19777
19781
  } | null | undefined;
@@ -20552,11 +20556,13 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
20552
20556
  spans: {
20553
20557
  text: string;
20554
20558
  attributes: {
20555
- type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
20559
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough" | "Comment";
20556
20560
  link?: string | null | undefined;
20557
20561
  documentationItemId?: string | null | undefined;
20558
20562
  openInNewTab?: boolean | null | undefined;
20559
20563
  openInNewWindow?: boolean | null | undefined;
20564
+ commentHighlightId?: string | null | undefined;
20565
+ commentIsResolved?: boolean | null | undefined;
20560
20566
  }[];
20561
20567
  }[];
20562
20568
  } | null | undefined;
@@ -20766,11 +20772,13 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
20766
20772
  spans: {
20767
20773
  text: string;
20768
20774
  attributes: {
20769
- type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
20775
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough" | "Comment";
20770
20776
  link?: string | null | undefined;
20771
20777
  documentationItemId?: string | null | undefined;
20772
20778
  openInNewTab?: boolean | null | undefined;
20773
20779
  openInNewWindow?: boolean | null | undefined;
20780
+ commentHighlightId?: string | null | undefined;
20781
+ commentIsResolved?: boolean | null | undefined;
20774
20782
  }[];
20775
20783
  }[];
20776
20784
  } | null | undefined;
@@ -21098,11 +21106,13 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
21098
21106
  spans: {
21099
21107
  text: string;
21100
21108
  attributes: {
21101
- type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
21109
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough" | "Comment";
21102
21110
  link?: string | null | undefined;
21103
21111
  documentationItemId?: string | null | undefined;
21104
21112
  openInNewTab?: boolean | null | undefined;
21105
21113
  openInNewWindow?: boolean | null | undefined;
21114
+ commentHighlightId?: string | null | undefined;
21115
+ commentIsResolved?: boolean | null | undefined;
21106
21116
  }[];
21107
21117
  }[];
21108
21118
  } | null | undefined;
@@ -21312,11 +21322,13 @@ declare const DocumentationPageV1DTO: z.ZodObject<z.objectUtil.extendShape<Omit<
21312
21322
  spans: {
21313
21323
  text: string;
21314
21324
  attributes: {
21315
- type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
21325
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough" | "Comment";
21316
21326
  link?: string | null | undefined;
21317
21327
  documentationItemId?: string | null | undefined;
21318
21328
  openInNewTab?: boolean | null | undefined;
21319
21329
  openInNewWindow?: boolean | null | undefined;
21330
+ commentHighlightId?: string | null | undefined;
21331
+ commentIsResolved?: boolean | null | undefined;
21320
21332
  }[];
21321
21333
  }[];
21322
21334
  } | null | undefined;
@@ -42332,7 +42344,7 @@ declare const DocumentationPageEditorModel: z.ZodObject<{
42332
42344
  }>;
42333
42345
  type DocumentationPageEditorModel = z.infer<typeof DocumentationPageEditorModel>;
42334
42346
 
42335
- declare const pmSchema: Schema<"image" | "table" | "tableContainer" | "blockquote" | "sectionItem" | "sectionItemColumn" | "callout" | "paragraph" | "reactComponent" | "tableRow" | "tableCell" | "tableHeader" | "hardBreak" | "text" | "heading" | "listItem" | "orderedList" | "bulletList" | "horizontalRule" | "plainSection" | "tabsSection" | "doc" | "blockNode" | "embed", "code" | "bold" | "link" | "strike" | "italic">;
42347
+ declare const pmSchema: Schema<"image" | "table" | "tableContainer" | "blockquote" | "sectionItem" | "sectionItemColumn" | "callout" | "paragraph" | "reactComponent" | "tableRow" | "tableCell" | "tableHeader" | "hardBreak" | "text" | "heading" | "listItem" | "orderedList" | "bulletList" | "horizontalRule" | "plainSection" | "tabsSection" | "doc" | "blockNode" | "embed", "code" | "bold" | "link" | "strike" | "commentHighlight" | "italic">;
42336
42348
 
42337
42349
  type ProsemirrorNode = {
42338
42350
  type: string;
package/dist/index.js CHANGED
@@ -476,7 +476,8 @@ var ExporterPulsarDetails = _zod.z.object({
476
476
  customBlocks: nullishToOptional(_zod.z.array(PulsarCustomBlock)).default([]),
477
477
  blockVariants: nullishToOptional(_zod.z.record(_zod.z.string(), _zod.z.array(PulsarContributionVariant))).default({}),
478
478
  usesBrands: nullishToOptional(_zod.z.boolean()).default(false),
479
- usesThemes: nullishToOptional(_zod.z.boolean()).default(false)
479
+ usesThemes: nullishToOptional(_zod.z.boolean()).default(false),
480
+ usesLocale: nullishToOptional(_zod.z.boolean()).default(false)
480
481
  });
481
482
  var ExporterDetails = ExporterPulsarDetails.extend({
482
483
  source: ExporterSource,
@@ -955,14 +956,18 @@ var PageBlockTableProperties = _zod.z.object({
955
956
  showHeaderColumn: _zod.z.boolean(),
956
957
  columns: _zod.z.array(PageBlockTableColumn)
957
958
  });
958
- var PageBlockTextSpanAttributeType = _zod.z.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
959
+ var PageBlockTextSpanAttributeType = _zod.z.enum(["Bold", "Italic", "Link", "Strikethrough", "Code", "Comment"]);
959
960
  var PageBlockTextSpanAttribute = _zod.z.object({
960
961
  type: PageBlockTextSpanAttributeType,
962
+ // Link attributes
961
963
  link: nullishToOptional(_zod.z.string()),
962
964
  documentationItemId: nullishToOptional(_zod.z.string()),
963
965
  openInNewWindow: nullishToOptional(_zod.z.boolean()),
964
966
  // deprecated. use openInNewTab
965
- openInNewTab: nullishToOptional(_zod.z.boolean())
967
+ openInNewTab: nullishToOptional(_zod.z.boolean()),
968
+ // Comment attributes
969
+ commentHighlightId: nullishToOptional(_zod.z.string()),
970
+ commentIsResolved: nullishToOptional(_zod.z.boolean())
966
971
  });
967
972
  var PageBlockTextSpan = _zod.z.object({
968
973
  text: _zod.z.string(),
@@ -7065,7 +7070,7 @@ var newSchema = {
7065
7070
  name: "link",
7066
7071
  rank: 0,
7067
7072
  spec: {
7068
- inclusive: true,
7073
+ inclusive: false,
7069
7074
  attrs: {
7070
7075
  href: {
7071
7076
  default: null
@@ -7077,10 +7082,7 @@ var newSchema = {
7077
7082
  default: "noopener noreferrer nofollow"
7078
7083
  },
7079
7084
  class: {
7080
- default: null
7081
- },
7082
- itemId: {
7083
- default: null
7085
+ default: "tiptap-link"
7084
7086
  }
7085
7087
  },
7086
7088
  parseDOM: [
@@ -7104,11 +7106,7 @@ var newSchema = {
7104
7106
  },
7105
7107
  class: {
7106
7108
  hasDefault: true,
7107
- default: null
7108
- },
7109
- itemId: {
7110
- hasDefault: true,
7111
- default: null
7109
+ default: "tiptap-link"
7112
7110
  }
7113
7111
  },
7114
7112
  instance: {
@@ -7117,47 +7115,65 @@ var newSchema = {
7117
7115
  href: null,
7118
7116
  target: "_blank",
7119
7117
  rel: "noopener noreferrer nofollow",
7120
- class: null,
7121
- itemId: null
7118
+ class: "tiptap-link"
7122
7119
  }
7123
7120
  }
7124
7121
  },
7125
- bold: {
7126
- name: "bold",
7122
+ commentHighlight: {
7123
+ name: "commentHighlight",
7127
7124
  rank: 1,
7128
7125
  spec: {
7129
- parseDOM: [
7130
- {
7131
- tag: "strong"
7132
- },
7133
- {
7134
- tag: "b"
7126
+ attrs: {
7127
+ highlightId: {
7128
+ default: null
7135
7129
  },
7130
+ resolved: {
7131
+ default: false
7132
+ }
7133
+ },
7134
+ parseDOM: [
7136
7135
  {
7137
- style: "font-weight"
7136
+ tag: "commenthighlight"
7138
7137
  }
7139
7138
  ]
7140
7139
  },
7141
- attrs: {},
7140
+ attrs: {
7141
+ highlightId: {
7142
+ hasDefault: true,
7143
+ default: null
7144
+ },
7145
+ resolved: {
7146
+ hasDefault: true,
7147
+ default: false
7148
+ }
7149
+ },
7142
7150
  instance: {
7143
- type: "bold"
7151
+ type: "commentHighlight",
7152
+ attrs: {
7153
+ highlightId: null,
7154
+ resolved: false
7155
+ }
7144
7156
  }
7145
7157
  },
7146
- code: {
7147
- name: "code",
7158
+ bold: {
7159
+ name: "bold",
7148
7160
  rank: 2,
7149
7161
  spec: {
7150
- excludes: "_",
7151
- code: true,
7152
7162
  parseDOM: [
7153
7163
  {
7154
- tag: "code"
7164
+ tag: "strong"
7165
+ },
7166
+ {
7167
+ tag: "b"
7168
+ },
7169
+ {
7170
+ style: "font-weight"
7155
7171
  }
7156
7172
  ]
7157
7173
  },
7158
7174
  attrs: {},
7159
7175
  instance: {
7160
- type: "code"
7176
+ type: "bold"
7161
7177
  }
7162
7178
  },
7163
7179
  italic: {
@@ -7205,6 +7221,23 @@ var newSchema = {
7205
7221
  instance: {
7206
7222
  type: "strike"
7207
7223
  }
7224
+ },
7225
+ code: {
7226
+ name: "code",
7227
+ rank: 5,
7228
+ spec: {
7229
+ excludes: "bold code italic strike link",
7230
+ code: true,
7231
+ parseDOM: [
7232
+ {
7233
+ tag: "code"
7234
+ }
7235
+ ]
7236
+ },
7237
+ attrs: {},
7238
+ instance: {
7239
+ type: "code"
7240
+ }
7208
7241
  }
7209
7242
  }
7210
7243
  };
@@ -7812,6 +7845,14 @@ function serializeTextSpanAttribute(spanAttribute) {
7812
7845
  return { type: "strike", attrs: {} };
7813
7846
  case "Code":
7814
7847
  return { type: "code", attrs: {} };
7848
+ case "Comment":
7849
+ return {
7850
+ type: "commentHighlight",
7851
+ attrs: {
7852
+ highlightId: spanAttribute.commentHighlightId,
7853
+ resolved: spanAttribute.commentIsResolved
7854
+ }
7855
+ };
7815
7856
  case "Link":
7816
7857
  if (spanAttribute.link) {
7817
7858
  return serializeLinkMark(
@@ -10542,6 +10583,8 @@ function parseRichTextAttribute(mark) {
10542
10583
  return { type: "Code" };
10543
10584
  case "link":
10544
10585
  return parseProsemirrorLink(mark);
10586
+ case "commentHighlight":
10587
+ return parseProsemirrorCommentHighlight(mark);
10545
10588
  }
10546
10589
  return null;
10547
10590
  }
@@ -10567,6 +10610,17 @@ function parseProsemirrorLink(mark) {
10567
10610
  };
10568
10611
  }
10569
10612
  }
10613
+ function parseProsemirrorCommentHighlight(mark) {
10614
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", _zod.z.string().optional());
10615
+ if (!highlightId)
10616
+ return null;
10617
+ const isResolved = _nullishCoalesce(getProsemirrorAttribute(mark, "resolved", _zod.z.boolean().optional()), () => ( false));
10618
+ return {
10619
+ type: "Comment",
10620
+ commentHighlightId: highlightId,
10621
+ commentIsResolved: isResolved
10622
+ };
10623
+ }
10570
10624
  function parseAsTable(prosemirrorNode, definition, property) {
10571
10625
  const id = getProsemirrorBlockId(prosemirrorNode);
10572
10626
  if (!id)