@supernova-studio/client 0.52.7 → 0.52.9
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 +36 -30
- package/dist/index.d.ts +36 -30
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/yjs/docs-editor/list-tree-builder.ts +3 -11
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +3 -0
package/dist/index.mjs
CHANGED
|
@@ -1742,7 +1742,8 @@ var PageBlockGuideline = z39.object({
|
|
|
1742
1742
|
asset: nullishToOptional(PageBlockAsset),
|
|
1743
1743
|
type: z39.string(),
|
|
1744
1744
|
imageAlt: nullishToOptional(z39.string()),
|
|
1745
|
-
imageCaption: nullishToOptional(z39.string())
|
|
1745
|
+
imageCaption: nullishToOptional(z39.string()),
|
|
1746
|
+
imageAlignment: nullishToOptional(PageBlockAlignment)
|
|
1746
1747
|
});
|
|
1747
1748
|
var PageBlockBaseV1 = z39.object({
|
|
1748
1749
|
persistentId: z39.string(),
|
|
@@ -2058,6 +2059,9 @@ var PageBlockItemRichTextValue = z40.object({
|
|
|
2058
2059
|
value: PageBlockText,
|
|
2059
2060
|
calloutType: PageBlockCalloutType.optional()
|
|
2060
2061
|
});
|
|
2062
|
+
var PageBlockItemRichTextEditorValue = z40.object({
|
|
2063
|
+
value: z40.any()
|
|
2064
|
+
});
|
|
2061
2065
|
var PageBlockItemSingleSelectValue = z40.object({
|
|
2062
2066
|
value: z40.string()
|
|
2063
2067
|
});
|
|
@@ -3178,6 +3182,7 @@ var PageBlockDefinitionVariant = z99.object({
|
|
|
3178
3182
|
var PageBlockDefinitionPropertyType = z100.enum([
|
|
3179
3183
|
"RichText",
|
|
3180
3184
|
"MultiRichText",
|
|
3185
|
+
"RichTextEditor",
|
|
3181
3186
|
"Text",
|
|
3182
3187
|
"Boolean",
|
|
3183
3188
|
"Number",
|
|
@@ -3214,6 +3219,7 @@ var PageBlockDefinitionRichTextPropertyStyle = z100.enum([
|
|
|
3214
3219
|
"Default"
|
|
3215
3220
|
]);
|
|
3216
3221
|
var PageBlockDefinitionMultiRichTextPropertyStyle = z100.enum(["OL", "UL", "Default"]);
|
|
3222
|
+
var PageBlockDefinitionRichTextEditorPropertyStyle = z100.enum(["OL", "UL", "Bold", "Italic", "Link", "Strikethrough", "InlineCode"]);
|
|
3217
3223
|
var PageBlockDefinitionTextPropertyStyle = z100.enum([
|
|
3218
3224
|
"Title1",
|
|
3219
3225
|
"Title2",
|
|
@@ -3273,6 +3279,10 @@ var PageBlockDefinitionRichTextOptions = z100.object({
|
|
|
3273
3279
|
var PageBlockDefinitionMutiRichTextOptions = z100.object({
|
|
3274
3280
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
3275
3281
|
});
|
|
3282
|
+
var PageBlockDefinitionRichTextEditorOptions = z100.object({
|
|
3283
|
+
placeholder: z100.string().optional(),
|
|
3284
|
+
allowedInlineStyles: z100.array(PageBlockDefinitionRichTextEditorPropertyStyle).optional()
|
|
3285
|
+
});
|
|
3276
3286
|
var PageBlockDefinitionTextOptions = z100.object({
|
|
3277
3287
|
placeholder: z100.string().optional(),
|
|
3278
3288
|
defaultValue: z100.string().optional(),
|
|
@@ -7595,14 +7605,9 @@ var ListTreeBuilder = class {
|
|
|
7595
7605
|
return void 0;
|
|
7596
7606
|
}
|
|
7597
7607
|
if (block.data.indentLevel <= 0) {
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
} else {
|
|
7602
|
-
const flushed = this.flush();
|
|
7603
|
-
this.rootNode = list;
|
|
7604
|
-
return flushed;
|
|
7605
|
-
}
|
|
7608
|
+
const flushed = this.flush();
|
|
7609
|
+
this.rootNode = list;
|
|
7610
|
+
return flushed;
|
|
7606
7611
|
}
|
|
7607
7612
|
const listParent = this.getParentOfDepth(block.data.indentLevel);
|
|
7608
7613
|
const lastChild = listParent.children[listParent.children.length - 1];
|
|
@@ -11191,6 +11196,8 @@ function valueSchemaForPropertyType(type) {
|
|
|
11191
11196
|
return PageBlockItemColorValue;
|
|
11192
11197
|
case "FigmaComponent":
|
|
11193
11198
|
return PageBlockItemFigmaComponentValue;
|
|
11199
|
+
case "RichTextEditor":
|
|
11200
|
+
return PageBlockItemRichTextEditorValue;
|
|
11194
11201
|
}
|
|
11195
11202
|
}
|
|
11196
11203
|
function getProsemirrorBlockId(prosemirrorNode) {
|