From d422d95620e12b435b0cf73acc186fe8858f8a7b Mon Sep 17 00:00:00 2001 From: kerasus Date: Mon, 21 Aug 2023 13:55:05 +0330 Subject: [PATCH] -update vue-tiptap-katex-core -version update --- package.json | 5 +++-- src/vue3-tiptap-katex-no-ssr.vue | 14 +++++--------- yarn.lock | 8 ++++---- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 3ab291d..81afc3b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue3-tiptap-katex", - "version": "1.1.16", + "version": "1.1.18", "description": "tiptap editor using mathlive package to render katex in vue 3", "main": "index.js", "keywords": [ @@ -30,6 +30,7 @@ "url": "https://github.com/JasGH/vue3-tiptap-katex" } ], + "type": "module", "license": "MIT", "homepage": "https://github.com/kerasus/vue3-tiptap-katex", "scripts": { @@ -66,7 +67,7 @@ "tiptap-text-direction-extension": "^1.0.7", "vue": "^3.2.47", "vue-filepond": "^7.0.3", - "vue-tiptap-katex-core": "^2.0.9", + "vue-tiptap-katex-core": "^2.1.0", "vue3-drag-resize": "^2.0.5" }, "devDependencies": { diff --git a/src/vue3-tiptap-katex-no-ssr.vue b/src/vue3-tiptap-katex-no-ssr.vue index 3b5c5ce..adfe6e6 100644 --- a/src/vue3-tiptap-katex-no-ssr.vue +++ b/src/vue3-tiptap-katex-no-ssr.vue @@ -42,15 +42,11 @@ export default { } }, mounted () { - setTimeout(() => { - import('./vue3-tiptap-katex.vue') - .then((vue3TiptapKatex) => { - setTimeout(() => { - this.editorComponent = vue3TiptapKatex.default - }, 500) - }) - .catch() - }, 500) + import('./vue3-tiptap-katex.vue') + .then((vue3TiptapKatex) => { + this.editorComponent = vue3TiptapKatex.default + }) + .catch() }, computed: { localModelValue: { diff --git a/yarn.lock b/yarn.lock index ddaf3c6..3a8436d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2734,10 +2734,10 @@ vue-notification@^1.3.20: resolved "https://registry.yarnpkg.com/vue-notification/-/vue-notification-1.3.20.tgz#d85618127763b46f3e25b8962b857947d5a97cbe" integrity sha512-vPj67Ah72p8xvtyVE8emfadqVWguOScAjt6OJDEUdcW5hW189NsqvfkOrctxHUUO9UYl9cTbIkzAEcPnHu+zBQ== -vue-tiptap-katex-core@^2.0.9: - version "2.0.9" - resolved "https://registry.yarnpkg.com/vue-tiptap-katex-core/-/vue-tiptap-katex-core-2.0.9.tgz#5be48234aaa00b542c498c3062a0fda25aed71c7" - integrity sha512-hxwEM8btnPaavmeUeybycHzAud0u7jdCGGafacRZ6Hev835RwC/+e1mme3y4Jpt4d19VDReoqqHIz2gn0rQkHg== +vue-tiptap-katex-core@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/vue-tiptap-katex-core/-/vue-tiptap-katex-core-2.1.0.tgz#e08ce729d04e1001c5a8deb5a6106958e86c2c96" + integrity sha512-mavvEjpLuZBaFxQYRCZeORa7zaxr+7jLJcg6Dv4ZYQpK5M1Lq5VxglmRt3PVArp+QR4YIluLBc/adNWRXHwZ8g== dependencies: "@mdi/font" "^6.9.96" "@tiptap/core" "^2.0.0-beta.209"