@supernova-studio/client 0.48.27 → 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 +19 -7
- package/dist/index.d.ts +19 -7
- package/dist/index.js +84 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +84 -31
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/yjs/docs-editor/blocks-to-prosemirror.ts +8 -0
- package/src/yjs/docs-editor/prosemirror/schema.ts +56 -28
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +15 -0
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
|
@@ -956,14 +956,18 @@ var PageBlockTableProperties = _zod.z.object({
|
|
|
956
956
|
showHeaderColumn: _zod.z.boolean(),
|
|
957
957
|
columns: _zod.z.array(PageBlockTableColumn)
|
|
958
958
|
});
|
|
959
|
-
var PageBlockTextSpanAttributeType = _zod.z.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
|
|
959
|
+
var PageBlockTextSpanAttributeType = _zod.z.enum(["Bold", "Italic", "Link", "Strikethrough", "Code", "Comment"]);
|
|
960
960
|
var PageBlockTextSpanAttribute = _zod.z.object({
|
|
961
961
|
type: PageBlockTextSpanAttributeType,
|
|
962
|
+
// Link attributes
|
|
962
963
|
link: nullishToOptional(_zod.z.string()),
|
|
963
964
|
documentationItemId: nullishToOptional(_zod.z.string()),
|
|
964
965
|
openInNewWindow: nullishToOptional(_zod.z.boolean()),
|
|
965
966
|
// deprecated. use openInNewTab
|
|
966
|
-
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())
|
|
967
971
|
});
|
|
968
972
|
var PageBlockTextSpan = _zod.z.object({
|
|
969
973
|
text: _zod.z.string(),
|
|
@@ -7066,7 +7070,7 @@ var newSchema = {
|
|
|
7066
7070
|
name: "link",
|
|
7067
7071
|
rank: 0,
|
|
7068
7072
|
spec: {
|
|
7069
|
-
inclusive:
|
|
7073
|
+
inclusive: false,
|
|
7070
7074
|
attrs: {
|
|
7071
7075
|
href: {
|
|
7072
7076
|
default: null
|
|
@@ -7078,10 +7082,7 @@ var newSchema = {
|
|
|
7078
7082
|
default: "noopener noreferrer nofollow"
|
|
7079
7083
|
},
|
|
7080
7084
|
class: {
|
|
7081
|
-
default:
|
|
7082
|
-
},
|
|
7083
|
-
itemId: {
|
|
7084
|
-
default: null
|
|
7085
|
+
default: "tiptap-link"
|
|
7085
7086
|
}
|
|
7086
7087
|
},
|
|
7087
7088
|
parseDOM: [
|
|
@@ -7105,11 +7106,7 @@ var newSchema = {
|
|
|
7105
7106
|
},
|
|
7106
7107
|
class: {
|
|
7107
7108
|
hasDefault: true,
|
|
7108
|
-
default:
|
|
7109
|
-
},
|
|
7110
|
-
itemId: {
|
|
7111
|
-
hasDefault: true,
|
|
7112
|
-
default: null
|
|
7109
|
+
default: "tiptap-link"
|
|
7113
7110
|
}
|
|
7114
7111
|
},
|
|
7115
7112
|
instance: {
|
|
@@ -7118,47 +7115,65 @@ var newSchema = {
|
|
|
7118
7115
|
href: null,
|
|
7119
7116
|
target: "_blank",
|
|
7120
7117
|
rel: "noopener noreferrer nofollow",
|
|
7121
|
-
class:
|
|
7122
|
-
itemId: null
|
|
7118
|
+
class: "tiptap-link"
|
|
7123
7119
|
}
|
|
7124
7120
|
}
|
|
7125
7121
|
},
|
|
7126
|
-
|
|
7127
|
-
name: "
|
|
7122
|
+
commentHighlight: {
|
|
7123
|
+
name: "commentHighlight",
|
|
7128
7124
|
rank: 1,
|
|
7129
7125
|
spec: {
|
|
7130
|
-
|
|
7131
|
-
{
|
|
7132
|
-
|
|
7133
|
-
},
|
|
7134
|
-
{
|
|
7135
|
-
tag: "b"
|
|
7126
|
+
attrs: {
|
|
7127
|
+
highlightId: {
|
|
7128
|
+
default: null
|
|
7136
7129
|
},
|
|
7130
|
+
resolved: {
|
|
7131
|
+
default: false
|
|
7132
|
+
}
|
|
7133
|
+
},
|
|
7134
|
+
parseDOM: [
|
|
7137
7135
|
{
|
|
7138
|
-
|
|
7136
|
+
tag: "commenthighlight"
|
|
7139
7137
|
}
|
|
7140
7138
|
]
|
|
7141
7139
|
},
|
|
7142
|
-
attrs: {
|
|
7140
|
+
attrs: {
|
|
7141
|
+
highlightId: {
|
|
7142
|
+
hasDefault: true,
|
|
7143
|
+
default: null
|
|
7144
|
+
},
|
|
7145
|
+
resolved: {
|
|
7146
|
+
hasDefault: true,
|
|
7147
|
+
default: false
|
|
7148
|
+
}
|
|
7149
|
+
},
|
|
7143
7150
|
instance: {
|
|
7144
|
-
type: "
|
|
7151
|
+
type: "commentHighlight",
|
|
7152
|
+
attrs: {
|
|
7153
|
+
highlightId: null,
|
|
7154
|
+
resolved: false
|
|
7155
|
+
}
|
|
7145
7156
|
}
|
|
7146
7157
|
},
|
|
7147
|
-
|
|
7148
|
-
name: "
|
|
7158
|
+
bold: {
|
|
7159
|
+
name: "bold",
|
|
7149
7160
|
rank: 2,
|
|
7150
7161
|
spec: {
|
|
7151
|
-
excludes: "_",
|
|
7152
|
-
code: true,
|
|
7153
7162
|
parseDOM: [
|
|
7154
7163
|
{
|
|
7155
|
-
tag: "
|
|
7164
|
+
tag: "strong"
|
|
7165
|
+
},
|
|
7166
|
+
{
|
|
7167
|
+
tag: "b"
|
|
7168
|
+
},
|
|
7169
|
+
{
|
|
7170
|
+
style: "font-weight"
|
|
7156
7171
|
}
|
|
7157
7172
|
]
|
|
7158
7173
|
},
|
|
7159
7174
|
attrs: {},
|
|
7160
7175
|
instance: {
|
|
7161
|
-
type: "
|
|
7176
|
+
type: "bold"
|
|
7162
7177
|
}
|
|
7163
7178
|
},
|
|
7164
7179
|
italic: {
|
|
@@ -7206,6 +7221,23 @@ var newSchema = {
|
|
|
7206
7221
|
instance: {
|
|
7207
7222
|
type: "strike"
|
|
7208
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
|
+
}
|
|
7209
7241
|
}
|
|
7210
7242
|
}
|
|
7211
7243
|
};
|
|
@@ -7813,6 +7845,14 @@ function serializeTextSpanAttribute(spanAttribute) {
|
|
|
7813
7845
|
return { type: "strike", attrs: {} };
|
|
7814
7846
|
case "Code":
|
|
7815
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
|
+
};
|
|
7816
7856
|
case "Link":
|
|
7817
7857
|
if (spanAttribute.link) {
|
|
7818
7858
|
return serializeLinkMark(
|
|
@@ -10543,6 +10583,8 @@ function parseRichTextAttribute(mark) {
|
|
|
10543
10583
|
return { type: "Code" };
|
|
10544
10584
|
case "link":
|
|
10545
10585
|
return parseProsemirrorLink(mark);
|
|
10586
|
+
case "commentHighlight":
|
|
10587
|
+
return parseProsemirrorCommentHighlight(mark);
|
|
10546
10588
|
}
|
|
10547
10589
|
return null;
|
|
10548
10590
|
}
|
|
@@ -10568,6 +10610,17 @@ function parseProsemirrorLink(mark) {
|
|
|
10568
10610
|
};
|
|
10569
10611
|
}
|
|
10570
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
|
+
}
|
|
10571
10624
|
function parseAsTable(prosemirrorNode, definition, property) {
|
|
10572
10625
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
10573
10626
|
if (!id)
|