@tiptap/extension-drag-handle-vue-3 3.22.4 → 3.23.1
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 +27 -0
- package/dist/index.d.ts +27 -0
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -1229,6 +1229,15 @@ interface EditorOptions {
|
|
|
1229
1229
|
clipboardTextSerializer?: {
|
|
1230
1230
|
blockSeparator?: string;
|
|
1231
1231
|
};
|
|
1232
|
+
/**
|
|
1233
|
+
* Options for the `tabindex` core extension.
|
|
1234
|
+
*/
|
|
1235
|
+
tabindex?: {
|
|
1236
|
+
/**
|
|
1237
|
+
* The value for the `tabindex` attribute on the editor element.
|
|
1238
|
+
*/
|
|
1239
|
+
value?: string;
|
|
1240
|
+
};
|
|
1232
1241
|
delete?: {
|
|
1233
1242
|
/**
|
|
1234
1243
|
* Whether the `delete` extension should be called asynchronously to avoid blocking the editor while processing deletions
|
|
@@ -1629,6 +1638,8 @@ type MarkdownToken = {
|
|
|
1629
1638
|
type MarkdownParseHelpers = {
|
|
1630
1639
|
/** Parse an array of inline tokens into text nodes with marks */
|
|
1631
1640
|
parseInline: (tokens: MarkdownToken[]) => JSONContent[];
|
|
1641
|
+
/** Tokenize source text as inline markdown when supported by the markdown parser */
|
|
1642
|
+
tokenizeInline?: (src: string) => MarkdownToken[];
|
|
1632
1643
|
/** Parse an array of block-level tokens */
|
|
1633
1644
|
parseChildren: (tokens: MarkdownToken[]) => JSONContent[];
|
|
1634
1645
|
/** Parse block-level tokens while preserving implicit empty paragraphs from blank lines */
|
|
@@ -1844,6 +1855,21 @@ declare class ExtensionManager {
|
|
|
1844
1855
|
*/
|
|
1845
1856
|
transformPastedHTML(baseTransform?: (html: string, view?: any) => string): (html: string, view?: EditorView) => string;
|
|
1846
1857
|
get markViews(): Record<string, MarkViewConstructor>;
|
|
1858
|
+
/**
|
|
1859
|
+
* Destroy the extension manager and clean up all extension references
|
|
1860
|
+
* to prevent memory leaks through parent/child extension chains.
|
|
1861
|
+
*
|
|
1862
|
+
* Walks each extension's full parent chain and nulls every forward
|
|
1863
|
+
* `parent.child → current` link where the parent still points to the
|
|
1864
|
+
* current node. This breaks the retention path from module-scope
|
|
1865
|
+
* singleton roots through deep extend() chains.
|
|
1866
|
+
*
|
|
1867
|
+
* Only ancestor `.child` links matching the current chain are cleared.
|
|
1868
|
+
* The `.parent` pointer on ancestors is never touched — extensions
|
|
1869
|
+
* may be shared across live editors, so their own backward references
|
|
1870
|
+
* and non-matching forward links must remain intact.
|
|
1871
|
+
*/
|
|
1872
|
+
destroy(): void;
|
|
1847
1873
|
/**
|
|
1848
1874
|
* Go through all extensions, create extension storages & setup marks
|
|
1849
1875
|
* & bind editor event listener.
|
|
@@ -2815,6 +2841,7 @@ declare class Editor extends EventEmitter<EditorEvents> {
|
|
|
2815
2841
|
schema: Schema;
|
|
2816
2842
|
private editorView;
|
|
2817
2843
|
isFocused: boolean;
|
|
2844
|
+
private destroyed;
|
|
2818
2845
|
private editorState;
|
|
2819
2846
|
/**
|
|
2820
2847
|
* The editor is considered initialized after the `create` event has been emitted.
|
package/dist/index.d.ts
CHANGED
|
@@ -1229,6 +1229,15 @@ interface EditorOptions {
|
|
|
1229
1229
|
clipboardTextSerializer?: {
|
|
1230
1230
|
blockSeparator?: string;
|
|
1231
1231
|
};
|
|
1232
|
+
/**
|
|
1233
|
+
* Options for the `tabindex` core extension.
|
|
1234
|
+
*/
|
|
1235
|
+
tabindex?: {
|
|
1236
|
+
/**
|
|
1237
|
+
* The value for the `tabindex` attribute on the editor element.
|
|
1238
|
+
*/
|
|
1239
|
+
value?: string;
|
|
1240
|
+
};
|
|
1232
1241
|
delete?: {
|
|
1233
1242
|
/**
|
|
1234
1243
|
* Whether the `delete` extension should be called asynchronously to avoid blocking the editor while processing deletions
|
|
@@ -1629,6 +1638,8 @@ type MarkdownToken = {
|
|
|
1629
1638
|
type MarkdownParseHelpers = {
|
|
1630
1639
|
/** Parse an array of inline tokens into text nodes with marks */
|
|
1631
1640
|
parseInline: (tokens: MarkdownToken[]) => JSONContent[];
|
|
1641
|
+
/** Tokenize source text as inline markdown when supported by the markdown parser */
|
|
1642
|
+
tokenizeInline?: (src: string) => MarkdownToken[];
|
|
1632
1643
|
/** Parse an array of block-level tokens */
|
|
1633
1644
|
parseChildren: (tokens: MarkdownToken[]) => JSONContent[];
|
|
1634
1645
|
/** Parse block-level tokens while preserving implicit empty paragraphs from blank lines */
|
|
@@ -1844,6 +1855,21 @@ declare class ExtensionManager {
|
|
|
1844
1855
|
*/
|
|
1845
1856
|
transformPastedHTML(baseTransform?: (html: string, view?: any) => string): (html: string, view?: EditorView) => string;
|
|
1846
1857
|
get markViews(): Record<string, MarkViewConstructor>;
|
|
1858
|
+
/**
|
|
1859
|
+
* Destroy the extension manager and clean up all extension references
|
|
1860
|
+
* to prevent memory leaks through parent/child extension chains.
|
|
1861
|
+
*
|
|
1862
|
+
* Walks each extension's full parent chain and nulls every forward
|
|
1863
|
+
* `parent.child → current` link where the parent still points to the
|
|
1864
|
+
* current node. This breaks the retention path from module-scope
|
|
1865
|
+
* singleton roots through deep extend() chains.
|
|
1866
|
+
*
|
|
1867
|
+
* Only ancestor `.child` links matching the current chain are cleared.
|
|
1868
|
+
* The `.parent` pointer on ancestors is never touched — extensions
|
|
1869
|
+
* may be shared across live editors, so their own backward references
|
|
1870
|
+
* and non-matching forward links must remain intact.
|
|
1871
|
+
*/
|
|
1872
|
+
destroy(): void;
|
|
1847
1873
|
/**
|
|
1848
1874
|
* Go through all extensions, create extension storages & setup marks
|
|
1849
1875
|
* & bind editor event listener.
|
|
@@ -2815,6 +2841,7 @@ declare class Editor extends EventEmitter<EditorEvents> {
|
|
|
2815
2841
|
schema: Schema;
|
|
2816
2842
|
private editorView;
|
|
2817
2843
|
isFocused: boolean;
|
|
2844
|
+
private destroyed;
|
|
2818
2845
|
private editorState;
|
|
2819
2846
|
/**
|
|
2820
2847
|
* The editor is considered initialized after the `create` event has been emitted.
|
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.
|
|
4
|
+
"version": "3.23.1",
|
|
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.
|
|
41
|
-
"@tiptap/pm": "3.
|
|
42
|
-
"@tiptap/vue-3": "3.
|
|
40
|
+
"@tiptap/extension-drag-handle": "3.23.1",
|
|
41
|
+
"@tiptap/pm": "3.23.1",
|
|
42
|
+
"@tiptap/vue-3": "3.23.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"vue": "^3.0.0",
|
|
46
|
-
"@tiptap/extension-drag-handle": "^3.
|
|
47
|
-
"@tiptap/pm": "^3.
|
|
48
|
-
"@tiptap/vue-3": "^3.
|
|
46
|
+
"@tiptap/extension-drag-handle": "^3.23.1",
|
|
47
|
+
"@tiptap/pm": "^3.23.1",
|
|
48
|
+
"@tiptap/vue-3": "^3.23.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsup",
|