tiptapify 0.0.4 → 0.0.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.
Files changed (36) hide show
  1. package/README.md +9 -1
  2. package/dist/tiptapify.css +1 -1
  3. package/dist/tiptapify.es.js +20861 -19932
  4. package/dist/tiptapify.umd.js +39 -32
  5. package/package.json +23 -10
  6. package/src/components/MenuBubble.vue +25 -20
  7. package/src/components/MenuFloating.vue +35 -31
  8. package/src/components/Tiptapify.vue +51 -14
  9. package/src/components/Toolbar/Group.vue +78 -0
  10. package/src/components/Toolbar/Index.vue +44 -71
  11. package/src/components/Toolbar/Toggle.vue +33 -0
  12. package/src/components/Toolbar/fonts.ts +118 -0
  13. package/src/components/Toolbar/items/actions.ts +32 -0
  14. package/src/components/Toolbar/items/alignment.ts +60 -0
  15. package/src/components/Toolbar/items/format.ts +73 -0
  16. package/src/components/Toolbar/items/formatExtra.ts +73 -0
  17. package/src/components/Toolbar/items/list.ts +70 -0
  18. package/src/components/Toolbar/items/media.ts +25 -0
  19. package/src/components/Toolbar/items/misc.ts +50 -0
  20. package/src/components/Toolbar/items/style.ts +146 -0
  21. package/src/components/Toolbar/items.ts +72 -635
  22. package/src/components/editorExtensions.ts +3 -1
  23. package/src/components/extensions/components/LinkDialog.vue +1 -1
  24. package/src/components/extensions/components/ShowSource.vue +124 -0
  25. package/src/components/extensions/view-source.ts +53 -0
  26. package/src/i18n/locales/de.json +67 -0
  27. package/src/i18n/locales/en.json +11 -2
  28. package/src/i18n/locales/es.json +67 -0
  29. package/src/i18n/locales/fr.json +67 -0
  30. package/src/i18n/locales/it.json +67 -0
  31. package/src/i18n/locales/pl.json +67 -0
  32. package/src/i18n/locales/ru.json +11 -2
  33. package/src/i18n/locales/ua.json +11 -2
  34. package/components.d.ts +0 -20
  35. package/tsconfig.json +0 -22
  36. package/vite.config.ts +0 -86
package/vite.config.ts DELETED
@@ -1,86 +0,0 @@
1
- import { fileURLToPath, URL } from 'node:url'
2
- import vue from '@vitejs/plugin-vue'
3
- import vueJsx from '@vitejs/plugin-vue-jsx'
4
- import Components from 'unplugin-vue-components/vite'
5
- import { defineConfig } from 'vite'
6
- import vuetify from 'vite-plugin-vuetify'
7
- import svgLoader from 'vite-svg-loader'
8
- import tsconfigPaths from 'vite-tsconfig-paths'
9
- import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
10
- import path from 'path'
11
- import alias from '@rollup/plugin-alias'
12
-
13
- // https://vitejs.dev/config/
14
- export default defineConfig({
15
- plugins: [
16
- tsconfigPaths({
17
- loose: true,
18
- extensions: ['.ts', '.tsx', '.js', '.jsx', '.vue']
19
- }),
20
- vue(),
21
- vueJsx(),
22
- VueI18nPlugin({
23
- runtimeOnly: true,
24
- compositionOnly: true,
25
- include: [
26
- fileURLToPath(new URL('./src/i18n/locales/**', import.meta.url)),
27
- ],
28
- }),
29
- vuetify({
30
- autoImport: { labs: true },
31
- }),
32
- Components({
33
- dirs: ['src/components'],
34
- dts: true,
35
- }),
36
- svgLoader(),
37
- ],
38
- define: { 'process.env': {} },
39
- resolve: {
40
- preserveSymlinks: true,
41
- alias: {
42
- '@tiptapify': fileURLToPath(new URL('./src', import.meta.url)),
43
- },
44
- },
45
- build: {
46
- lib: {
47
- entry: path.resolve(__dirname, 'src/index.ts'),
48
- name: 'Tiptapify',
49
- formats: ['es', 'umd'],
50
- fileName: (format) => `tiptapify.${format}.js`
51
- },
52
- cssCodeSplit: false,
53
- rollupOptions: {
54
- plugins: [
55
- alias({
56
- entries: [
57
- { find: '@', replacement: path.resolve(__dirname, 'src') }
58
- ]
59
- })
60
- ],
61
- external: ['vue', 'vuetify'],
62
- output: {
63
- exports: "named",
64
- globals: {
65
- vue: 'Vue',
66
- vuetify: 'Vuetify'
67
- },
68
- assetFileNames: (assetInfo) => {
69
- if (assetInfo.name === 'style.css') return 'tiptapify.css';
70
- return assetInfo.name;
71
- }
72
- }
73
- },
74
- chunkSizeWarningLimit: 5000,
75
- },
76
- optimizeDeps: {
77
- exclude: ['vuetify'],
78
- include: [
79
- 'vue',
80
- '@tiptapify/components/Tiptapify.vue'
81
- ],
82
- entries: [
83
- './src/**/*.vue',
84
- ],
85
- },
86
- })