@supernova-studio/client 0.0.13 → 0.0.15
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/docs-editor/mock.ts +1 -1
- package/src/docs-editor/utils.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1463,7 +1463,7 @@ declare function blockToProsemirrorNode(block: PageBlockEditorModel, definition:
|
|
|
1463
1463
|
declare function serializeAsRichTextBlock(input: Input): ProsemirrorNode;
|
|
1464
1464
|
declare function serializeAsCustomBlock(block: PageBlockEditorModel, definition: PageBlockDefinition): ProsemirrorNode;
|
|
1465
1465
|
|
|
1466
|
-
declare function getMockPageBlockDefinitions():
|
|
1466
|
+
declare function getMockPageBlockDefinitions(): PageBlockDefinition[];
|
|
1467
1467
|
|
|
1468
1468
|
declare function yXmlFragmetToPage(fragment: Y.XmlFragment, definitions: PageBlockDefinition[]): DocumentationPageEditorModel;
|
|
1469
1469
|
declare function prosemirrorDocToPage(prosemirrorDoc: ProsemirrorNode, definitions: PageBlockDefinition[]): DocumentationPageEditorModel;
|
package/dist/index.d.ts
CHANGED
|
@@ -1463,7 +1463,7 @@ declare function blockToProsemirrorNode(block: PageBlockEditorModel, definition:
|
|
|
1463
1463
|
declare function serializeAsRichTextBlock(input: Input): ProsemirrorNode;
|
|
1464
1464
|
declare function serializeAsCustomBlock(block: PageBlockEditorModel, definition: PageBlockDefinition): ProsemirrorNode;
|
|
1465
1465
|
|
|
1466
|
-
declare function getMockPageBlockDefinitions():
|
|
1466
|
+
declare function getMockPageBlockDefinitions(): PageBlockDefinition[];
|
|
1467
1467
|
|
|
1468
1468
|
declare function yXmlFragmetToPage(fragment: Y.XmlFragment, definitions: PageBlockDefinition[]): DocumentationPageEditorModel;
|
|
1469
1469
|
declare function prosemirrorDocToPage(prosemirrorDoc: ProsemirrorNode, definitions: PageBlockDefinition[]): DocumentationPageEditorModel;
|
package/dist/index.js
CHANGED
|
@@ -3860,7 +3860,7 @@ var BlockParsingUtils = {
|
|
|
3860
3860
|
},
|
|
3861
3861
|
richTextPropertyValue(item, propertyKey) {
|
|
3862
3862
|
const objectValue = this.objectPropertyValue(item, propertyKey);
|
|
3863
|
-
const richText = PageBlockText.parse(objectValue);
|
|
3863
|
+
const richText = PageBlockText.parse(objectValue.value);
|
|
3864
3864
|
return richText;
|
|
3865
3865
|
},
|
|
3866
3866
|
objectPropertyValue(item, propertyKey) {
|
|
@@ -4125,7 +4125,7 @@ function nonNullFilter(item) {
|
|
|
4125
4125
|
}
|
|
4126
4126
|
|
|
4127
4127
|
// src/docs-editor/mock.ts
|
|
4128
|
-
|
|
4128
|
+
function getMockPageBlockDefinitions() {
|
|
4129
4129
|
return blocks;
|
|
4130
4130
|
}
|
|
4131
4131
|
var blocks = [
|