@tiptap/extension-drag-handle-vue-3 3.20.0 → 3.20.2

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.cts CHANGED
@@ -1610,6 +1610,8 @@ type MarkdownParseHelpers = {
1610
1610
  parseInline: (tokens: MarkdownToken[]) => JSONContent[];
1611
1611
  /** Parse an array of block-level tokens */
1612
1612
  parseChildren: (tokens: MarkdownToken[]) => JSONContent[];
1613
+ /** Parse block-level tokens while preserving implicit empty paragraphs from blank lines */
1614
+ parseBlockChildren?: (tokens: MarkdownToken[]) => JSONContent[];
1613
1615
  /** Create a text node with optional marks */
1614
1616
  createTextNode: (text: string, marks?: Array<{
1615
1617
  type: string;
@@ -1640,6 +1642,7 @@ type RenderContext = {
1640
1642
  level: number;
1641
1643
  meta?: Record<string, any>;
1642
1644
  parentType?: string | null;
1645
+ previousNode?: JSONContent | null;
1643
1646
  };
1644
1647
  /**
1645
1648
  * Configuration object passed to custom marked.js tokenizers
@@ -1677,6 +1680,8 @@ type MarkdownRendererHelpers = {
1677
1680
  * @returns The rendered markdown string
1678
1681
  */
1679
1682
  renderChildren: (nodes: JSONContent | JSONContent[], separator?: string) => string;
1683
+ /** Render a single child node with its sibling index preserved */
1684
+ renderChild?: (node: JSONContent, index: number) => string;
1680
1685
  /**
1681
1686
  * Render a text token to a markdown string
1682
1687
  * @param prefix The prefix to add before the content
package/dist/index.d.ts CHANGED
@@ -1610,6 +1610,8 @@ type MarkdownParseHelpers = {
1610
1610
  parseInline: (tokens: MarkdownToken[]) => JSONContent[];
1611
1611
  /** Parse an array of block-level tokens */
1612
1612
  parseChildren: (tokens: MarkdownToken[]) => JSONContent[];
1613
+ /** Parse block-level tokens while preserving implicit empty paragraphs from blank lines */
1614
+ parseBlockChildren?: (tokens: MarkdownToken[]) => JSONContent[];
1613
1615
  /** Create a text node with optional marks */
1614
1616
  createTextNode: (text: string, marks?: Array<{
1615
1617
  type: string;
@@ -1640,6 +1642,7 @@ type RenderContext = {
1640
1642
  level: number;
1641
1643
  meta?: Record<string, any>;
1642
1644
  parentType?: string | null;
1645
+ previousNode?: JSONContent | null;
1643
1646
  };
1644
1647
  /**
1645
1648
  * Configuration object passed to custom marked.js tokenizers
@@ -1677,6 +1680,8 @@ type MarkdownRendererHelpers = {
1677
1680
  * @returns The rendered markdown string
1678
1681
  */
1679
1682
  renderChildren: (nodes: JSONContent | JSONContent[], separator?: string) => string;
1683
+ /** Render a single child node with its sibling index preserved */
1684
+ renderChild?: (node: JSONContent, index: number) => string;
1680
1685
  /**
1681
1686
  * Render a text token to a markdown string
1682
1687
  * @param prefix The prefix to add before the content
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/extension-drag-handle-vue-3",
3
3
  "description": "drag handle extension for tiptap with vue 3",
4
- "version": "3.20.0",
4
+ "version": "3.20.2",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -37,15 +37,15 @@
37
37
  ],
38
38
  "peerDependencies": {
39
39
  "vue": "^3.0.0",
40
- "@tiptap/extension-drag-handle": "^3.20.0",
41
- "@tiptap/pm": "^3.20.0",
42
- "@tiptap/vue-3": "^3.20.0"
40
+ "@tiptap/extension-drag-handle": "^3.20.2",
41
+ "@tiptap/pm": "^3.20.2",
42
+ "@tiptap/vue-3": "^3.20.2"
43
43
  },
44
44
  "devDependencies": {
45
45
  "vue": "^3.0.0",
46
- "@tiptap/pm": "^3.20.0",
47
- "@tiptap/extension-drag-handle": "^3.20.0",
48
- "@tiptap/vue-3": "^3.20.0"
46
+ "@tiptap/extension-drag-handle": "^3.20.2",
47
+ "@tiptap/pm": "^3.20.2",
48
+ "@tiptap/vue-3": "^3.20.2"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsup",