@tiptap/extension-drag-handle-vue-2 3.24.0 → 3.25.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.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -69,6 +69,12 @@ interface MarkConfig<Options = any, Storage = any> extends ExtendableConfig<Opti
|
|
|
69
69
|
* Keep mark after split node
|
|
70
70
|
*/
|
|
71
71
|
keepOnSplit?: boolean | (() => boolean);
|
|
72
|
+
/**
|
|
73
|
+
* Whether this mark is removed by `unsetAllMarks`.
|
|
74
|
+
* Set to `false` for semantic marks (comments, suggestions) that should survive "clear formatting".
|
|
75
|
+
* @default true
|
|
76
|
+
*/
|
|
77
|
+
clearable?: boolean | (() => boolean);
|
|
72
78
|
/**
|
|
73
79
|
* Inclusive
|
|
74
80
|
*/
|
|
@@ -1818,6 +1824,7 @@ declare class ExtensionManager {
|
|
|
1818
1824
|
*/
|
|
1819
1825
|
baseExtensions: Extensions;
|
|
1820
1826
|
splittableMarks: string[];
|
|
1827
|
+
nonClearableMarks: string[];
|
|
1821
1828
|
constructor(extensions: Extensions, editor: Editor);
|
|
1822
1829
|
static resolve: typeof resolveExtensions;
|
|
1823
1830
|
static sort: typeof sortExtensions;
|
|
@@ -2737,10 +2744,15 @@ declare module '@tiptap/core' {
|
|
|
2737
2744
|
interface Commands<ReturnType> {
|
|
2738
2745
|
unsetAllMarks: {
|
|
2739
2746
|
/**
|
|
2740
|
-
* Remove all marks in the current selection.
|
|
2747
|
+
* Remove all clearable marks in the current selection.
|
|
2748
|
+
* Marks with `clearable: false` are preserved
|
|
2749
|
+
* @param options.ignoreClearable If true, removes all marks regardless of `clearable` setting. Defaults to `false`.
|
|
2741
2750
|
* @example editor.commands.unsetAllMarks()
|
|
2751
|
+
* @example editor.commands.unsetAllMarks({ ignoreClearable: true })
|
|
2742
2752
|
*/
|
|
2743
|
-
unsetAllMarks: (
|
|
2753
|
+
unsetAllMarks: (options?: {
|
|
2754
|
+
ignoreClearable?: boolean;
|
|
2755
|
+
}) => ReturnType;
|
|
2744
2756
|
};
|
|
2745
2757
|
}
|
|
2746
2758
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -69,6 +69,12 @@ interface MarkConfig<Options = any, Storage = any> extends ExtendableConfig<Opti
|
|
|
69
69
|
* Keep mark after split node
|
|
70
70
|
*/
|
|
71
71
|
keepOnSplit?: boolean | (() => boolean);
|
|
72
|
+
/**
|
|
73
|
+
* Whether this mark is removed by `unsetAllMarks`.
|
|
74
|
+
* Set to `false` for semantic marks (comments, suggestions) that should survive "clear formatting".
|
|
75
|
+
* @default true
|
|
76
|
+
*/
|
|
77
|
+
clearable?: boolean | (() => boolean);
|
|
72
78
|
/**
|
|
73
79
|
* Inclusive
|
|
74
80
|
*/
|
|
@@ -1818,6 +1824,7 @@ declare class ExtensionManager {
|
|
|
1818
1824
|
*/
|
|
1819
1825
|
baseExtensions: Extensions;
|
|
1820
1826
|
splittableMarks: string[];
|
|
1827
|
+
nonClearableMarks: string[];
|
|
1821
1828
|
constructor(extensions: Extensions, editor: Editor);
|
|
1822
1829
|
static resolve: typeof resolveExtensions;
|
|
1823
1830
|
static sort: typeof sortExtensions;
|
|
@@ -2737,10 +2744,15 @@ declare module '@tiptap/core' {
|
|
|
2737
2744
|
interface Commands<ReturnType> {
|
|
2738
2745
|
unsetAllMarks: {
|
|
2739
2746
|
/**
|
|
2740
|
-
* Remove all marks in the current selection.
|
|
2747
|
+
* Remove all clearable marks in the current selection.
|
|
2748
|
+
* Marks with `clearable: false` are preserved
|
|
2749
|
+
* @param options.ignoreClearable If true, removes all marks regardless of `clearable` setting. Defaults to `false`.
|
|
2741
2750
|
* @example editor.commands.unsetAllMarks()
|
|
2751
|
+
* @example editor.commands.unsetAllMarks({ ignoreClearable: true })
|
|
2742
2752
|
*/
|
|
2743
|
-
unsetAllMarks: (
|
|
2753
|
+
unsetAllMarks: (options?: {
|
|
2754
|
+
ignoreClearable?: boolean;
|
|
2755
|
+
}) => ReturnType;
|
|
2744
2756
|
};
|
|
2745
2757
|
}
|
|
2746
2758
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/extension-drag-handle-vue-2",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"description": "drag handle extension for tiptap with vue 2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tiptap",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"vue": "^2.0.0",
|
|
40
40
|
"vue-ts-types": "1.6.2",
|
|
41
|
-
"@tiptap/extension-drag-handle": "^3.
|
|
42
|
-
"@tiptap/pm": "^3.
|
|
43
|
-
"@tiptap/vue-2": "^3.
|
|
41
|
+
"@tiptap/extension-drag-handle": "^3.25.0",
|
|
42
|
+
"@tiptap/pm": "^3.25.0",
|
|
43
|
+
"@tiptap/vue-2": "^3.25.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"vue": "^2.0.0",
|
|
47
|
-
"@tiptap/
|
|
48
|
-
"@tiptap/
|
|
49
|
-
"@tiptap/
|
|
47
|
+
"@tiptap/extension-drag-handle": "3.25.0",
|
|
48
|
+
"@tiptap/vue-2": "3.25.0",
|
|
49
|
+
"@tiptap/pm": "3.25.0"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsup"
|