lynkow 3.1.0 → 3.2.0

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 CHANGED
@@ -800,21 +800,21 @@ interface TipTapNode {
800
800
  content?: TipTapNode[];
801
801
  }
802
802
  /**
803
- * Content body - TipTap document format
804
- * The root node is always type: 'doc' with content array
803
+ * Content body - HTML string
804
+ * The API converts TipTap editor content to HTML server-side.
805
805
  *
806
806
  * @example
807
807
  * ```typescript
808
- * const body: ContentBody = {
809
- * type: 'doc',
810
- * content: [
811
- * { type: 'paragraph', content: [{ type: 'text', text: 'Hello world' }] },
812
- * { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Title' }] }
813
- * ]
814
- * }
808
+ * const body: ContentBody = '<p>Hello world</p><h2>Title</h2>'
809
+ *
810
+ * // Usage in React:
811
+ * <div dangerouslySetInnerHTML={{ __html: content.body }} />
812
+ *
813
+ * // Usage in Vue:
814
+ * <div v-html="content.body" />
815
815
  * ```
816
816
  */
817
- type ContentBody = TipTapNode;
817
+ type ContentBody = string;
818
818
  /**
819
819
  * Content summary (for lists)
820
820
  */
package/dist/index.d.ts CHANGED
@@ -800,21 +800,21 @@ interface TipTapNode {
800
800
  content?: TipTapNode[];
801
801
  }
802
802
  /**
803
- * Content body - TipTap document format
804
- * The root node is always type: 'doc' with content array
803
+ * Content body - HTML string
804
+ * The API converts TipTap editor content to HTML server-side.
805
805
  *
806
806
  * @example
807
807
  * ```typescript
808
- * const body: ContentBody = {
809
- * type: 'doc',
810
- * content: [
811
- * { type: 'paragraph', content: [{ type: 'text', text: 'Hello world' }] },
812
- * { type: 'heading', attrs: { level: 2 }, content: [{ type: 'text', text: 'Title' }] }
813
- * ]
814
- * }
808
+ * const body: ContentBody = '<p>Hello world</p><h2>Title</h2>'
809
+ *
810
+ * // Usage in React:
811
+ * <div dangerouslySetInnerHTML={{ __html: content.body }} />
812
+ *
813
+ * // Usage in Vue:
814
+ * <div v-html="content.body" />
815
815
  * ```
816
816
  */
817
- type ContentBody = TipTapNode;
817
+ type ContentBody = string;
818
818
  /**
819
819
  * Content summary (for lists)
820
820
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lynkow",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Official SDK for Lynkow Headless",
5
5
  "author": "Lynkow",
6
6
  "license": "SEE LICENSE IN LICENSE",