@mirus/tiptap-editor 2.1.8 → 3.0.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/README.md +5 -0
- package/dist/tiptap-editor.js +20289 -0
- package/dist/tiptap-editor.umd.cjs +114 -0
- package/package.json +75 -79
- package/src/App.vue +132 -57
- package/src/index.js +0 -1
- package/src/main.js +2 -7
- package/src/tiptap-editor.vue +675 -548
- package/src/warnings.js +3 -1
- package/vite.config.js +9 -2
- package/vitest.config.js +8 -8
- package/babel.config.js +0 -10
- package/dist/tiptap-editor.mjs +0 -22403
- package/vue.config.js +0 -18
package/src/warnings.js
CHANGED
package/vite.config.js
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
import { resolve } from 'path';
|
|
2
2
|
import { defineConfig } from 'vite';
|
|
3
|
-
import vue from '@vitejs/plugin-
|
|
3
|
+
import vue from '@vitejs/plugin-vue';
|
|
4
4
|
import cssInjectedByJsPlugin from 'vite-plugin-css-injected-by-js';
|
|
5
5
|
|
|
6
6
|
export default defineConfig({
|
|
7
7
|
plugins: [vue(), cssInjectedByJsPlugin()],
|
|
8
8
|
build: {
|
|
9
|
+
rollupOptions: {
|
|
10
|
+
external: ['vue'],
|
|
11
|
+
output: {
|
|
12
|
+
globals: {
|
|
13
|
+
vue: 'Vue',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
9
17
|
lib: {
|
|
10
18
|
entry: resolve(__dirname, 'src/index.js'),
|
|
11
19
|
name: 'TiptapEditor',
|
|
12
20
|
fileName: 'tiptap-editor',
|
|
13
|
-
formats: ['es'],
|
|
14
21
|
},
|
|
15
22
|
},
|
|
16
23
|
});
|
package/vitest.config.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineConfig } from
|
|
2
|
-
import vue from
|
|
1
|
+
import { defineConfig } from 'vitest/config';
|
|
2
|
+
import vue from '@vitejs/plugin-vue';
|
|
3
3
|
|
|
4
4
|
export default defineConfig({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
});
|
|
5
|
+
plugins: [vue()],
|
|
6
|
+
test: {
|
|
7
|
+
globals: true,
|
|
8
|
+
environment: 'happy-dom',
|
|
9
|
+
},
|
|
10
|
+
});
|