@morphika/andami 0.2.6 → 0.2.7
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.
|
@@ -221,7 +221,7 @@ function convertBlockNode(node: TiptapNode): PortableTextBlock {
|
|
|
221
221
|
* Convert a Tiptap JSON document to Sanity Portable Text content.
|
|
222
222
|
* Accepts the Tiptap editor's `getJSON()` output.
|
|
223
223
|
*/
|
|
224
|
-
export function tiptapToPortableText(doc: { type
|
|
224
|
+
export function tiptapToPortableText(doc: { type?: string; content?: TiptapNode[] }): PortableTextContent {
|
|
225
225
|
if (!doc.content || doc.content.length === 0) {
|
|
226
226
|
return [
|
|
227
227
|
{
|
package/package.json
CHANGED