@seorii/tiptap 0.3.0-next.4 → 0.3.0-next.6
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/tiptap/TipTap.svelte +9 -5
- package/package.json +50 -49
|
@@ -104,12 +104,14 @@
|
|
|
104
104
|
});
|
|
105
105
|
|
|
106
106
|
$effect(() => {
|
|
107
|
-
|
|
107
|
+
const r = untrack(() => san(body));
|
|
108
|
+
body = r;
|
|
109
|
+
last = r;
|
|
108
110
|
mounted = true;
|
|
109
111
|
Promise.all([import('./tiptap'), import('@justinribeiro/lite-youtube')]).then(
|
|
110
112
|
([{ default: tt }]) => {
|
|
111
|
-
if (!mounted) return;
|
|
112
|
-
tiptap.v = ref = tt(element,
|
|
113
|
+
if (!untrack(() => mounted)) return;
|
|
114
|
+
tiptap.v = ref = tt(element, r, {
|
|
113
115
|
placeholder,
|
|
114
116
|
editable,
|
|
115
117
|
onTransaction: () => (tiptap.v = ref = tiptap.v),
|
|
@@ -133,13 +135,15 @@
|
|
|
133
135
|
);
|
|
134
136
|
return () => {
|
|
135
137
|
mounted = false;
|
|
136
|
-
tiptap.v?.destroy?.();
|
|
138
|
+
untrack(() => tiptap.v?.destroy?.());
|
|
137
139
|
};
|
|
138
140
|
});
|
|
139
141
|
|
|
140
142
|
$effect.pre(() => {
|
|
141
143
|
if (last === body) return;
|
|
142
|
-
|
|
144
|
+
const r = san(body);
|
|
145
|
+
body = r;
|
|
146
|
+
last = r;
|
|
143
147
|
tiptap.v?.commands?.setContent?.(body);
|
|
144
148
|
});
|
|
145
149
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seorii/tiptap",
|
|
3
|
-
"version": "0.3.0-next.
|
|
3
|
+
"version": "0.3.0-next.6",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "svelte-kit sync && svelte-package",
|
|
@@ -14,72 +14,73 @@
|
|
|
14
14
|
"page": "npm run build-page && node gh-pages.js"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@sveltejs/adapter-auto": "^
|
|
18
|
-
"@sveltejs/adapter-static": "^3.0.
|
|
19
|
-
"@sveltejs/kit": "^2.
|
|
17
|
+
"@sveltejs/adapter-auto": "^4.0.0",
|
|
18
|
+
"@sveltejs/adapter-static": "^3.0.8",
|
|
19
|
+
"@sveltejs/kit": "^2.16.1",
|
|
20
20
|
"@sveltejs/package": "^2.3.7",
|
|
21
21
|
"@sveltejs/vite-plugin-svelte": "4.0.0",
|
|
22
|
-
"@tiptap/extension-code-block": "^2.9.1",
|
|
23
22
|
"@types/sanitize-html": "^2.13.0",
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
25
|
-
"@typescript-eslint/parser": "^8.
|
|
26
|
-
"eslint": "^9.
|
|
27
|
-
"eslint-config-prettier": "^
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
24
|
+
"@typescript-eslint/parser": "^8.21.0",
|
|
25
|
+
"eslint": "^9.19.0",
|
|
26
|
+
"eslint-config-prettier": "^10.0.1",
|
|
28
27
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
29
|
-
"gh-pages": "^6.
|
|
30
|
-
"highlight.js": "^11.
|
|
31
|
-
"prettier": "^3.
|
|
32
|
-
"prettier-plugin-svelte": "^3.
|
|
28
|
+
"gh-pages": "^6.3.0",
|
|
29
|
+
"highlight.js": "^11.11.1",
|
|
30
|
+
"prettier": "^3.4.2",
|
|
31
|
+
"prettier-plugin-svelte": "^3.3.3",
|
|
33
32
|
"publint": "^0.2.12",
|
|
33
|
+
"sass-embedded": "^1.83.4",
|
|
34
|
+
"svelte": "^5.19.3",
|
|
34
35
|
"svelte-check": "^4.0.5",
|
|
35
36
|
"tslib": "^2.8.1",
|
|
36
|
-
"typescript": "^5.
|
|
37
|
+
"typescript": "^5.7.3",
|
|
37
38
|
"vite": "^5.4.10"
|
|
38
39
|
},
|
|
40
|
+
"peerDependencies": {
|
|
41
|
+
"svelte": "^5.0.0"
|
|
42
|
+
},
|
|
39
43
|
"type": "module",
|
|
40
44
|
"dependencies": {
|
|
41
|
-
"@justinribeiro/lite-youtube": "^1.
|
|
45
|
+
"@justinribeiro/lite-youtube": "^1.6.0",
|
|
42
46
|
"@seorii/prosemirror-math": "^0.4.2",
|
|
43
|
-
"@tiptap/core": "^2.
|
|
44
|
-
"@tiptap/extension-code": "^2.
|
|
45
|
-
"@tiptap/extension-code-block
|
|
46
|
-
"@tiptap/extension-
|
|
47
|
-
"@tiptap/extension-
|
|
48
|
-
"@tiptap/extension-
|
|
49
|
-
"@tiptap/extension-
|
|
50
|
-
"@tiptap/extension-
|
|
51
|
-
"@tiptap/extension-
|
|
52
|
-
"@tiptap/extension-
|
|
53
|
-
"@tiptap/extension-
|
|
54
|
-
"@tiptap/extension-
|
|
55
|
-
"@tiptap/extension-
|
|
56
|
-
"@tiptap/extension-table
|
|
57
|
-
"@tiptap/extension-table-
|
|
58
|
-
"@tiptap/extension-table-
|
|
59
|
-
"@tiptap/extension-
|
|
60
|
-
"@tiptap/extension-text-
|
|
61
|
-
"@tiptap/extension-
|
|
62
|
-
"@tiptap/
|
|
63
|
-
"@tiptap/
|
|
64
|
-
"@tiptap/
|
|
65
|
-
"@tiptap/
|
|
47
|
+
"@tiptap/core": "^2.11.3",
|
|
48
|
+
"@tiptap/extension-code": "^2.11.3",
|
|
49
|
+
"@tiptap/extension-code-block": "^2.11.3",
|
|
50
|
+
"@tiptap/extension-code-block-lowlight": "^2.11.3",
|
|
51
|
+
"@tiptap/extension-color": "^2.11.3",
|
|
52
|
+
"@tiptap/extension-dropcursor": "^2.11.3",
|
|
53
|
+
"@tiptap/extension-highlight": "^2.11.3",
|
|
54
|
+
"@tiptap/extension-image": "^2.11.3",
|
|
55
|
+
"@tiptap/extension-link": "^2.11.3",
|
|
56
|
+
"@tiptap/extension-ordered-list": "^2.11.3",
|
|
57
|
+
"@tiptap/extension-placeholder": "^2.11.3",
|
|
58
|
+
"@tiptap/extension-subscript": "^2.11.3",
|
|
59
|
+
"@tiptap/extension-superscript": "^2.11.3",
|
|
60
|
+
"@tiptap/extension-table": "^2.11.3",
|
|
61
|
+
"@tiptap/extension-table-cell": "^2.11.3",
|
|
62
|
+
"@tiptap/extension-table-header": "^2.11.3",
|
|
63
|
+
"@tiptap/extension-table-row": "^2.11.3",
|
|
64
|
+
"@tiptap/extension-text-align": "^2.11.3",
|
|
65
|
+
"@tiptap/extension-text-style": "^2.11.3",
|
|
66
|
+
"@tiptap/extension-underline": "^2.11.3",
|
|
67
|
+
"@tiptap/html": "^2.11.3",
|
|
68
|
+
"@tiptap/pm": "^2.11.3",
|
|
69
|
+
"@tiptap/starter-kit": "^2.11.3",
|
|
70
|
+
"@tiptap/suggestion": "^2.11.3",
|
|
66
71
|
"emojis-keywords": "2.0.0",
|
|
67
72
|
"emojis-list": "3.0.0",
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"nunui": "2.0.0-next.13",
|
|
73
|
+
"lowlight": "^3.3.0",
|
|
74
|
+
"nunui": "2.0.0-next.30",
|
|
71
75
|
"prosemirror-commands": "^1.6.2",
|
|
72
|
-
"prosemirror-model": "^1.
|
|
76
|
+
"prosemirror-model": "^1.24.1",
|
|
73
77
|
"prosemirror-state": "^1.4.3",
|
|
74
|
-
"prosemirror-tables": "^1.6.
|
|
78
|
+
"prosemirror-tables": "^1.6.2",
|
|
75
79
|
"prosemirror-transform": "^1.10.2",
|
|
76
|
-
"prosemirror-view": "^1.
|
|
77
|
-
"sanitize-html": "^2.
|
|
78
|
-
"sass-embedded": "^1.80.6",
|
|
79
|
-
"shiki": "^1.22.2",
|
|
80
|
-
"svelte": "^5.1.9",
|
|
80
|
+
"prosemirror-view": "^1.37.2",
|
|
81
|
+
"sanitize-html": "^2.14.0",
|
|
81
82
|
"svelte-awesome-color-picker": "^3.1.4",
|
|
82
|
-
"svelte-tiptap": "^2.0
|
|
83
|
+
"svelte-tiptap": "^2.1.0",
|
|
83
84
|
"tippy.js": "^6.3.7"
|
|
84
85
|
},
|
|
85
86
|
"exports": {
|