@supernova-studio/client 0.52.7 → 0.52.8
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 +30 -30
- package/dist/index.d.ts +30 -30
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/yjs/docs-editor/prosemirror-to-blocks.ts +3 -0
package/dist/index.mjs
CHANGED
|
@@ -2058,6 +2058,9 @@ var PageBlockItemRichTextValue = z40.object({
|
|
|
2058
2058
|
value: PageBlockText,
|
|
2059
2059
|
calloutType: PageBlockCalloutType.optional()
|
|
2060
2060
|
});
|
|
2061
|
+
var PageBlockItemRichTextEditorValue = z40.object({
|
|
2062
|
+
value: z40.any()
|
|
2063
|
+
});
|
|
2061
2064
|
var PageBlockItemSingleSelectValue = z40.object({
|
|
2062
2065
|
value: z40.string()
|
|
2063
2066
|
});
|
|
@@ -3178,6 +3181,7 @@ var PageBlockDefinitionVariant = z99.object({
|
|
|
3178
3181
|
var PageBlockDefinitionPropertyType = z100.enum([
|
|
3179
3182
|
"RichText",
|
|
3180
3183
|
"MultiRichText",
|
|
3184
|
+
"RichTextEditor",
|
|
3181
3185
|
"Text",
|
|
3182
3186
|
"Boolean",
|
|
3183
3187
|
"Number",
|
|
@@ -3214,6 +3218,7 @@ var PageBlockDefinitionRichTextPropertyStyle = z100.enum([
|
|
|
3214
3218
|
"Default"
|
|
3215
3219
|
]);
|
|
3216
3220
|
var PageBlockDefinitionMultiRichTextPropertyStyle = z100.enum(["OL", "UL", "Default"]);
|
|
3221
|
+
var PageBlockDefinitionRichTextEditorPropertyStyle = z100.enum(["OL", "UL", "Bold", "Italic", "Link", "Strikethrough", "InlineCode"]);
|
|
3217
3222
|
var PageBlockDefinitionTextPropertyStyle = z100.enum([
|
|
3218
3223
|
"Title1",
|
|
3219
3224
|
"Title2",
|
|
@@ -3273,6 +3278,10 @@ var PageBlockDefinitionRichTextOptions = z100.object({
|
|
|
3273
3278
|
var PageBlockDefinitionMutiRichTextOptions = z100.object({
|
|
3274
3279
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
3275
3280
|
});
|
|
3281
|
+
var PageBlockDefinitionRichTextEditorOptions = z100.object({
|
|
3282
|
+
placeholder: z100.string().optional(),
|
|
3283
|
+
allowedInlineStyles: z100.array(PageBlockDefinitionRichTextEditorPropertyStyle).optional()
|
|
3284
|
+
});
|
|
3276
3285
|
var PageBlockDefinitionTextOptions = z100.object({
|
|
3277
3286
|
placeholder: z100.string().optional(),
|
|
3278
3287
|
defaultValue: z100.string().optional(),
|
|
@@ -11191,6 +11200,8 @@ function valueSchemaForPropertyType(type) {
|
|
|
11191
11200
|
return PageBlockItemColorValue;
|
|
11192
11201
|
case "FigmaComponent":
|
|
11193
11202
|
return PageBlockItemFigmaComponentValue;
|
|
11203
|
+
case "RichTextEditor":
|
|
11204
|
+
return PageBlockItemRichTextEditorValue;
|
|
11194
11205
|
}
|
|
11195
11206
|
}
|
|
11196
11207
|
function getProsemirrorBlockId(prosemirrorNode) {
|