tiptapify 0.0.13 → 0.0.15

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 (80) hide show
  1. package/README.md +12 -4
  2. package/dist/tiptapify.css +1 -1
  3. package/dist/tiptapify.mjs +44219 -43771
  4. package/dist/tiptapify.umd.js +38 -38
  5. package/package.json +47 -41
  6. package/src/components/Footer.vue +1 -3
  7. package/src/components/Tiptapify.vue +39 -33
  8. package/src/components/Toolbar/GroupBtn.vue +0 -1
  9. package/src/components/Toolbar/Items.vue +0 -2
  10. package/src/components/Toolbar/defaultExtensionComponents.ts +13 -1
  11. package/src/components/Toolbar/items.ts +1 -6
  12. package/src/components/UI/TiptapifyDialog.vue +2 -3
  13. package/src/components/editorExtensions.ts +5 -0
  14. package/src/composables/Toolbar/Actions/useRedo.ts +1 -2
  15. package/src/composables/Toolbar/Actions/useUndo.ts +1 -2
  16. package/src/composables/Toolbar/Alignment/useAlignmentCenter.ts +1 -2
  17. package/src/composables/Toolbar/Alignment/useAlignmentJustify.ts +1 -2
  18. package/src/composables/Toolbar/Alignment/useAlignmentLeft.ts +1 -2
  19. package/src/composables/Toolbar/Alignment/useAlignmentRight.ts +1 -2
  20. package/src/composables/Toolbar/Format/useBold.ts +1 -2
  21. package/src/composables/Toolbar/Format/useItalic.ts +1 -2
  22. package/src/composables/Toolbar/Format/useStrike.ts +1 -2
  23. package/src/composables/Toolbar/Format/useUnderline.ts +1 -2
  24. package/src/composables/Toolbar/FormatExtra/useBlockquote.ts +1 -2
  25. package/src/composables/Toolbar/FormatExtra/useCode.ts +1 -2
  26. package/src/composables/Toolbar/FormatExtra/useCodeBlock.ts +1 -2
  27. package/src/composables/Toolbar/FormatExtra/useSub.ts +1 -2
  28. package/src/composables/Toolbar/FormatExtra/useSup.ts +1 -2
  29. package/src/composables/Toolbar/List/useBullet.ts +1 -2
  30. package/src/composables/Toolbar/List/useIndent.ts +1 -2
  31. package/src/composables/Toolbar/List/useNumbered.ts +1 -2
  32. package/src/composables/Toolbar/List/useOutdent.ts +1 -2
  33. package/src/composables/Toolbar/List/useTask.ts +1 -2
  34. package/src/composables/Toolbar/Media/useEmoji.ts +4 -5
  35. package/src/composables/Toolbar/Media/useImage.ts +1 -2
  36. package/src/composables/Toolbar/Media/useLink.ts +1 -2
  37. package/src/composables/Toolbar/Media/useTable.ts +1 -2
  38. package/src/composables/Toolbar/Media/useVideo.ts +22 -0
  39. package/src/composables/Toolbar/Misc/useBreak.ts +1 -2
  40. package/src/composables/Toolbar/Misc/useFormatClear.ts +1 -2
  41. package/src/composables/Toolbar/Misc/useInvisibleCharacters.ts +2 -3
  42. package/src/composables/Toolbar/Misc/useLine.ts +1 -2
  43. package/src/composables/Toolbar/Misc/usePreview.ts +1 -2
  44. package/src/composables/Toolbar/Misc/useSource.ts +1 -2
  45. package/src/composables/Toolbar/Style/useColor.ts +1 -2
  46. package/src/composables/Toolbar/Style/useFontFamily.ts +1 -2
  47. package/src/composables/Toolbar/Style/useFontSize.ts +1 -2
  48. package/src/composables/Toolbar/Style/useHeading.ts +1 -2
  49. package/src/composables/Toolbar/Style/useHighlight.ts +1 -2
  50. package/src/composables/Toolbar/Style/useLineHeight.ts +1 -2
  51. package/src/composables/Toolbar/useMediaItems.ts +2 -0
  52. package/src/extensions/components/Emoji.vue +1 -2
  53. package/src/extensions/components/FontFamily.vue +1 -2
  54. package/src/extensions/components/FontSize.vue +1 -2
  55. package/src/extensions/components/ImageDialog.vue +1 -2
  56. package/src/extensions/components/LineHeight.vue +1 -2
  57. package/src/extensions/components/LinkDialog.vue +1 -2
  58. package/src/extensions/components/ShowSourceDialog.vue +1 -2
  59. package/src/extensions/components/StyleColor.vue +1 -2
  60. package/src/extensions/components/TableBuilder.vue +1 -2
  61. package/src/extensions/components/VideoDialog.vue +138 -0
  62. package/src/i18n/index.ts +23 -10
  63. package/src/i18n/locales/ch.json +6 -0
  64. package/src/i18n/locales/cz.json +6 -0
  65. package/src/i18n/locales/de.json +6 -0
  66. package/src/i18n/locales/en.json +9 -1
  67. package/src/i18n/locales/es.json +6 -0
  68. package/src/i18n/locales/fr.json +6 -0
  69. package/src/i18n/locales/it.json +6 -0
  70. package/src/i18n/locales/la.json +6 -0
  71. package/src/i18n/locales/lt.json +6 -0
  72. package/src/i18n/locales/nl.json +6 -0
  73. package/src/i18n/locales/pl.json +6 -0
  74. package/src/i18n/locales/pt.json +6 -0
  75. package/src/i18n/locales/ru.json +9 -1
  76. package/src/i18n/locales/se.json +6 -0
  77. package/src/i18n/locales/ua.json +9 -1
  78. package/src/index.ts +0 -3
  79. package/src/types/toolbarItems.ts +0 -2
  80. package/src/components/Toolbar/Toggle.vue +0 -31
@@ -119,6 +119,12 @@
119
119
  "source": {
120
120
  "title": "Voir le code source",
121
121
  "prettify": "prettify"
122
+ },
123
+ "video": {
124
+ "title": "Ajouter/modifier une vidéo",
125
+ "src": "Source",
126
+ "width": "Largeur",
127
+ "height": "Hauteur"
122
128
  }
123
129
  },
124
130
  "misc": {
@@ -118,6 +118,12 @@
118
118
  "source": {
119
119
  "title": "Visualizza codice sorgente",
120
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Aggiungi/modifica video",
124
+ "src": "Sorgente",
125
+ "width": "Larghezza",
126
+ "height": "Altezza"
121
127
  }
122
128
  },
123
129
  "misc": {
@@ -118,6 +118,12 @@
118
118
  "source": {
119
119
  "title": "Codicem fontem videre",
120
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Addere/mutare video",
124
+ "src": "Fons",
125
+ "width": "Latitudo",
126
+ "height": "Altitudo"
121
127
  }
122
128
  },
123
129
  "misc": {
@@ -118,6 +118,12 @@
118
118
  "source": {
119
119
  "title": "Žiūrėti išeities kodą",
120
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Pridėti/redaguoti vaizdo įrašą",
124
+ "src": "Šaltinis",
125
+ "width": "Plotis",
126
+ "height": "Aukštis"
121
127
  }
122
128
  },
123
129
  "misc": {
@@ -118,6 +118,12 @@
118
118
  "source": {
119
119
  "title": "Broncode bekijken",
120
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Video toevoegen/bewerken",
124
+ "src": "Bron",
125
+ "width": "Breedte",
126
+ "height": "Hoogte"
121
127
  }
122
128
  },
123
129
  "misc": {
@@ -118,6 +118,12 @@
118
118
  "source": {
119
119
  "title": "Pokaż kod źródłowy",
120
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Dodaj/edytuj wideo",
124
+ "src": "Źródło",
125
+ "width": "Szerokość",
126
+ "height": "Wysokość"
121
127
  }
122
128
  },
123
129
  "misc": {
@@ -118,6 +118,12 @@
118
118
  "source": {
119
119
  "title": "Ver código fonte",
120
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Adicionar/editar vídeo",
124
+ "src": "Fonte",
125
+ "width": "Largura",
126
+ "height": "Altura"
121
127
  }
122
128
  },
123
129
  "misc": {
@@ -42,6 +42,7 @@
42
42
  "link": "Внешняя ссылка",
43
43
  "image": "Изображение",
44
44
  "emoji": {
45
+ "title": "Эмодзи",
45
46
  "activities": "Активности",
46
47
  "animals_and_nature": "Животные и природа",
47
48
  "component": "Компонент",
@@ -70,7 +71,8 @@
70
71
  "deleteCol": "Удалить колонку",
71
72
  "mergeCells": "Объединить ячейки",
72
73
  "splitCell": "Разделить ячейку"
73
- }
74
+ },
75
+ "video": "Видео"
74
76
  },
75
77
  "action": {
76
78
  "undo": "Отмена",
@@ -118,6 +120,12 @@
118
120
  "source": {
119
121
  "title": "Просмотр исходного кода",
120
122
  "prettify": "prettify"
123
+ },
124
+ "video": {
125
+ "title": "Добавление/изменение видео",
126
+ "src": "Источник",
127
+ "width": "Ширина",
128
+ "height": "Высота"
121
129
  }
122
130
  },
123
131
  "misc": {
@@ -118,6 +118,12 @@
118
118
  "source": {
119
119
  "title": "Visa källkod",
120
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Lägg till/redigera video",
124
+ "src": "Källa",
125
+ "width": "Bredd",
126
+ "height": "Höjd"
121
127
  }
122
128
  },
123
129
  "misc": {
@@ -42,6 +42,7 @@
42
42
  "link": "Зовнішнє посилання",
43
43
  "image": "Зображення",
44
44
  "emoji": {
45
+ "title": "Емодзі",
45
46
  "activities": "Активності",
46
47
  "animals_and_nature": "Тварини та природа",
47
48
  "component": "Компонент",
@@ -70,7 +71,8 @@
70
71
  "deleteCol": "Видалити колонку",
71
72
  "mergeCells": "Об'єднати клітинки",
72
73
  "splitCell": "Розділити клітинки"
73
- }
74
+ },
75
+ "video": "Відео"
74
76
  },
75
77
  "action": {
76
78
  "undo": "Відміна",
@@ -118,6 +120,12 @@
118
120
  "source": {
119
121
  "title": "Перегляд вихідного коду",
120
122
  "prettify": "prettify"
123
+ },
124
+ "video": {
125
+ "title": "Добавление/изменение відео",
126
+ "src": "Джерело",
127
+ "width": "Ширина",
128
+ "height": "Висота"
121
129
  }
122
130
  },
123
131
  "misc": {
package/src/index.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { Plugin } from 'vue';
2
2
  import Tiptapify from '@tiptapify/components/Tiptapify.vue';
3
3
  import TiptapifyDialog from '@tiptapify/components/UI/TiptapifyDialog.vue';
4
- import { getI18n } from "@tiptapify/i18n";
5
4
 
6
5
  interface PackageOptions {
7
6
  locale?: string;
@@ -9,8 +8,6 @@ interface PackageOptions {
9
8
 
10
9
  const TiptapifyPlugin: Plugin = {
11
10
  install(app, options: PackageOptions = {}) {
12
- const locale = options.locale || 'en'
13
- app.use(getI18n(locale));
14
11
  app.component('Tiptapify', Tiptapify);
15
12
  app.component('TiptapifyDialog', TiptapifyDialog);
16
13
  }
@@ -20,7 +20,6 @@ export type ToolbarItem = {
20
20
  component?: any,
21
21
  modelValue?: any,
22
22
  group?: boolean,
23
- toggle?: boolean,
24
23
  icon2Props?: ToolbarItemProps,
25
24
  componentProps?: ToolbarItemProps,
26
25
  props?: ToolbarItemProps,
@@ -34,7 +33,6 @@ export type ToolbarItems = {
34
33
 
35
34
  export type ToolbarItemSection = {
36
35
  group?: boolean,
37
- toggle?: boolean,
38
36
  items: ToolbarItems | {},
39
37
  }
40
38
 
@@ -1,31 +0,0 @@
1
- <script setup lang="ts">
2
- import { defineProps, PropType } from 'vue'
3
- import { useI18n } from "vue-i18n";
4
- import * as mdi from '@mdi/js'
5
-
6
- import { ToolbarItemSection } from "@tiptapify/components/Toolbar/items";
7
-
8
- defineProps({
9
- variant: { type: String, default () { return 'flat' }},
10
- toolbarSection: { type: Object as PropType<ToolbarItemSection>, default() { return {} }}
11
- })
12
-
13
- const { t } = useI18n();
14
-
15
- </script>
16
-
17
- <template>
18
- <VBtnToggle :variant="variant" elevation="4">
19
- <template v-for="(item, key) in toolbarSection.items" :key="key">
20
- <VBtn v-bind="item.props" v-on="item.attrs" size="32">
21
- <VTooltip :text="item.name" location="top" activator="parent" />
22
-
23
- <VIcon :icon="item.icon || `mdiSvg:${mdi.mdiImageBrokenVariant}`" size="small" />
24
- </VBtn>
25
- </template>
26
- </VBtnToggle>
27
- </template>
28
-
29
- <style lang="scss" scoped>
30
-
31
- </style>