tiptapify 0.0.8 → 0.0.10

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 (44) hide show
  1. package/README.md +25 -2
  2. package/dist/tiptapify.css +1 -1
  3. package/dist/tiptapify.mjs +26215 -22992
  4. package/dist/tiptapify.umd.js +39 -39
  5. package/index.d.ts +49 -0
  6. package/package.json +10 -8
  7. package/src/components/Footer.vue +48 -6
  8. package/src/components/Tiptapify.vue +37 -29
  9. package/src/components/Toolbar/Group.vue +13 -14
  10. package/src/components/Toolbar/GroupBtn.vue +30 -0
  11. package/src/components/Toolbar/GroupDropdown.vue +4 -8
  12. package/src/components/Toolbar/Index.vue +26 -77
  13. package/src/components/Toolbar/Items.vue +77 -0
  14. package/src/components/Toolbar/defaultExtensionComponents.ts +32 -0
  15. package/src/components/Toolbar/items/format.ts +7 -20
  16. package/src/components/Toolbar/items/formatExtra.ts +1 -1
  17. package/src/components/Toolbar/items/media.ts +1 -1
  18. package/src/components/Toolbar/items/misc.ts +1 -1
  19. package/src/components/Toolbar/items/style.ts +60 -2
  20. package/src/components/Toolbar/items.ts +6 -4
  21. package/src/components/UI/Dialog.vue +141 -0
  22. package/src/components/editorExtensions.ts +3 -7
  23. package/src/extensions/components/ImageDialog.vue +17 -29
  24. package/src/extensions/components/LinkDialog.vue +58 -43
  25. package/src/extensions/components/PreviewDialog.vue +8 -16
  26. package/src/extensions/components/ShowSourceDialog.vue +14 -16
  27. package/src/extensions/components/StyleColor.vue +230 -0
  28. package/src/extensions/components/TableBuilder.vue +4 -8
  29. package/src/i18n/locales/ch.json +118 -0
  30. package/src/i18n/locales/cz.json +118 -0
  31. package/src/i18n/locales/de.json +90 -72
  32. package/src/i18n/locales/en.json +89 -71
  33. package/src/i18n/locales/es.json +90 -72
  34. package/src/i18n/locales/fr.json +91 -72
  35. package/src/i18n/locales/it.json +90 -72
  36. package/src/i18n/locales/la.json +118 -0
  37. package/src/i18n/locales/lt.json +118 -0
  38. package/src/i18n/locales/nl.json +118 -0
  39. package/src/i18n/locales/pl.json +90 -72
  40. package/src/i18n/locales/pt.json +118 -0
  41. package/src/i18n/locales/ru.json +85 -67
  42. package/src/i18n/locales/se.json +118 -0
  43. package/src/i18n/locales/ua.json +86 -68
  44. package/src/types/overridable-extensions.ts +6 -0
package/README.md CHANGED
@@ -17,6 +17,7 @@
17
17
  - Bubble Menu
18
18
  - Floating Menu
19
19
  - Slash Command
20
+ - Dark theme
20
21
 
21
22
  ## Installation
22
23
  Install package
@@ -65,6 +66,28 @@ app.use(TiptapifyPlugin, { locale: 'en' });
65
66
  app.mount('#app')
66
67
  ```
67
68
 
69
+ ## Usage
70
+
71
+ ```vue
72
+ <script setup>
73
+ const handleEditorReady = (options: { editor: any, getHTML: Function, getJSON: Function, echo: Function }) => {
74
+ console.log('The editor is ready', options.editor);
75
+ console.log('editor html', options.getHTML());
76
+ console.log('editor json', options.getJSON());
77
+ };
78
+ </script>
79
+
80
+ <template>
81
+ <Tiptapify
82
+ :content="content"
83
+ :bubble-menu="true"
84
+ :floating-menu="false"
85
+ :slash-commands="true"
86
+ @editor-ready="handleEditorReady"
87
+ />
88
+ </template>
89
+ ```
90
+
68
91
 
69
92
  ### TODO
70
93
 
@@ -74,7 +97,8 @@ app.mount('#app')
74
97
  - [x] tables extension
75
98
  - [x] preview extension
76
99
  - [x] image extension
77
- - [ ] text styling (background & font color)
100
+ - [x] text styling (background & font color)
101
+ - [x] dark theme
78
102
  - [ ] print hotkey in tooltip
79
103
  - [ ] video extensions
80
104
  - [ ] emoji plugin
@@ -82,7 +106,6 @@ app.mount('#app')
82
106
  - [ ] option to provide custom extension
83
107
  - [ ] demo
84
108
  - [ ] documentation
85
- - [ ] dark theme
86
109
  - [ ] AI features
87
110
 
88
111
  ## Licence