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