@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/src/warnings.js CHANGED
@@ -247,7 +247,9 @@ const Warning = Node.create({
247
247
  })
248
248
  );
249
249
  });
250
- return DecorationSet.create(state.doc, decos);
250
+ if (decos.length > 0) {
251
+ return DecorationSet.create(state.doc, decos);
252
+ }
251
253
  },
252
254
  },
253
255
  }),
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-vue2';
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 "vitest/config";
2
- import vue from "@vitejs/plugin-vue2";
1
+ import { defineConfig } from 'vitest/config';
2
+ import vue from '@vitejs/plugin-vue';
3
3
 
4
4
  export default defineConfig({
5
- plugins: [vue()],
6
- test: {
7
- globals: true,
8
- environment: "happy-dom",
9
- },
10
- });
5
+ plugins: [vue()],
6
+ test: {
7
+ globals: true,
8
+ environment: 'happy-dom',
9
+ },
10
+ });
package/babel.config.js DELETED
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- presets: [
3
- [
4
- '@vue/babel-preset-app',
5
- {
6
- usebuiltins: 'entry',
7
- },
8
- ],
9
- ],
10
- };