@tiptap/vue-2 3.23.6 → 3.24.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.cjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/menus/index.cjs +54 -13
- package/dist/menus/index.cjs.map +1 -1
- package/dist/menus/index.js +54 -13
- package/dist/menus/index.js.map +1 -1
- package/package.json +24 -25
- package/src/VueNodeViewRenderer.ts +6 -2
- package/src/VueRenderer.ts +1 -1
package/package.json
CHANGED
|
@@ -1,17 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/vue-2",
|
|
3
|
+
"version": "3.24.0",
|
|
3
4
|
"description": "Vue components for tiptap",
|
|
4
|
-
"version": "3.23.6",
|
|
5
|
-
"homepage": "https://tiptap.dev",
|
|
6
5
|
"keywords": [
|
|
7
6
|
"tiptap",
|
|
8
7
|
"tiptap vue components"
|
|
9
8
|
],
|
|
9
|
+
"homepage": "https://tiptap.dev",
|
|
10
10
|
"license": "MIT",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/ueberdosis/tiptap",
|
|
14
|
+
"directory": "packages/vue-2"
|
|
15
|
+
},
|
|
11
16
|
"funding": {
|
|
12
17
|
"type": "github",
|
|
13
18
|
"url": "https://github.com/sponsors/ueberdosis"
|
|
14
19
|
},
|
|
20
|
+
"files": [
|
|
21
|
+
"src",
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"type": "module",
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"main": "dist/index.cjs",
|
|
27
|
+
"module": "dist/index.js",
|
|
28
|
+
"types": "dist/index.d.ts",
|
|
15
29
|
"exports": {
|
|
16
30
|
".": {
|
|
17
31
|
"types": {
|
|
@@ -30,39 +44,24 @@
|
|
|
30
44
|
"require": "./dist/menus/index.cjs"
|
|
31
45
|
}
|
|
32
46
|
},
|
|
33
|
-
"main": "dist/index.cjs",
|
|
34
|
-
"module": "dist/index.js",
|
|
35
|
-
"types": "dist/index.d.ts",
|
|
36
|
-
"type": "module",
|
|
37
|
-
"files": [
|
|
38
|
-
"src",
|
|
39
|
-
"dist"
|
|
40
|
-
],
|
|
41
47
|
"dependencies": {
|
|
42
48
|
"vue-ts-types": "1.6.2"
|
|
43
49
|
},
|
|
44
50
|
"devDependencies": {
|
|
45
51
|
"vue": "^2.7.16",
|
|
46
|
-
"@tiptap/
|
|
47
|
-
"@tiptap/
|
|
48
|
-
},
|
|
49
|
-
"optionalDependencies": {
|
|
50
|
-
"@tiptap/extension-bubble-menu": "^3.23.6",
|
|
51
|
-
"@tiptap/extension-floating-menu": "^3.23.6"
|
|
52
|
+
"@tiptap/core": "^3.24.0",
|
|
53
|
+
"@tiptap/pm": "^3.24.0"
|
|
52
54
|
},
|
|
53
55
|
"peerDependencies": {
|
|
54
56
|
"vue": "^2.6.0",
|
|
55
|
-
"@tiptap/core": "3.
|
|
56
|
-
"@tiptap/pm": "3.
|
|
57
|
+
"@tiptap/core": "3.24.0",
|
|
58
|
+
"@tiptap/pm": "3.24.0"
|
|
57
59
|
},
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"directory": "packages/vue-2"
|
|
60
|
+
"optionalDependencies": {
|
|
61
|
+
"@tiptap/extension-bubble-menu": "^3.24.0",
|
|
62
|
+
"@tiptap/extension-floating-menu": "^3.24.0"
|
|
62
63
|
},
|
|
63
|
-
"sideEffects": false,
|
|
64
64
|
"scripts": {
|
|
65
|
-
"build": "tsup"
|
|
66
|
-
"lint": "prettier ./src/ --check && eslint --cache --quiet --no-error-on-unmatched-pattern ./src/"
|
|
65
|
+
"build": "tsup"
|
|
67
66
|
}
|
|
68
67
|
}
|
|
@@ -94,7 +94,7 @@ class VueNodeView extends NodeView<Vue | VueConstructor, Editor, VueNodeViewRend
|
|
|
94
94
|
})
|
|
95
95
|
|
|
96
96
|
// @ts-ignore
|
|
97
|
-
const vue = this.editor.contentComponent?.$options._base ?? Vue //
|
|
97
|
+
const vue = this.editor.contentComponent?.$options._base ?? Vue // oxlint-disable-line
|
|
98
98
|
|
|
99
99
|
const Component = vue.extend(this.component).extend({
|
|
100
100
|
props: Object.keys(props),
|
|
@@ -178,7 +178,11 @@ class VueNodeView extends NodeView<Vue | VueConstructor, Editor, VueNodeViewRend
|
|
|
178
178
|
* On update, update the React component.
|
|
179
179
|
* To prevent unnecessary updates, the `update` option can be used.
|
|
180
180
|
*/
|
|
181
|
-
update(
|
|
181
|
+
update(
|
|
182
|
+
node: ProseMirrorNode,
|
|
183
|
+
decorations: readonly Decoration[],
|
|
184
|
+
innerDecorations: DecorationSource,
|
|
185
|
+
): boolean {
|
|
182
186
|
const rerenderComponent = (props?: Record<string, any>) => {
|
|
183
187
|
this.decorationClasses.value = this.getDecorationClasses()
|
|
184
188
|
this.renderer.updateProps(props)
|
package/src/VueRenderer.ts
CHANGED
|
@@ -25,7 +25,7 @@ export class VueRenderer {
|
|
|
25
25
|
|
|
26
26
|
// prevents `Avoid mutating a prop directly` error message
|
|
27
27
|
// Fix: `VueNodeViewRenderer` change vue Constructor `config.silent` not working
|
|
28
|
-
const currentVueConstructor = this.ref.$props.editor?.contentComponent?.$options._base ?? Vue //
|
|
28
|
+
const currentVueConstructor = this.ref.$props.editor?.contentComponent?.$options._base ?? Vue // oxlint-disable-line
|
|
29
29
|
const originalSilent = currentVueConstructor.config.silent
|
|
30
30
|
|
|
31
31
|
currentVueConstructor.config.silent = true
|