tiptapify 0.2.4 → 0.2.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 (65) hide show
  1. package/README.md +1 -1
  2. package/dist/tiptapify.css +1 -1
  3. package/dist/tiptapify.mjs +74210 -54575
  4. package/dist/tiptapify.umd.js +87 -84
  5. package/index.d.ts +42 -2
  6. package/package.json +45 -45
  7. package/src/components/Tiptapify.vue +108 -9
  8. package/src/components/Toolbar/Index.vue +2 -2
  9. package/src/components/Toolbar/Items.vue +9 -2
  10. package/src/components/UI/TiptapifyDialog.vue +7 -1
  11. package/src/extensions/components/ai/Button.vue +1 -1
  12. package/src/extensions/components/ai/Dialog.vue +338 -27
  13. package/src/extensions/components/ai/backend.test.ts +314 -0
  14. package/src/extensions/components/ai/backend.ts +303 -0
  15. package/src/extensions/components/ai/charLimit.test.ts +55 -0
  16. package/src/extensions/components/ai/charLimit.ts +30 -0
  17. package/src/extensions/components/ai/characterCount.test.ts +27 -0
  18. package/src/extensions/components/media/iframe/Button.vue +1 -2
  19. package/src/extensions/components/media/iframe/IframeDialog.vue +36 -31
  20. package/src/extensions/components/media/image/Button.vue +1 -1
  21. package/src/extensions/components/media/link/Button.vue +1 -1
  22. package/src/extensions/components/media/link/LinkDialog.vue +19 -36
  23. package/src/extensions/components/media/video/Button.vue +1 -1
  24. package/src/extensions/components/media/video/VideoDialog.vue +17 -17
  25. package/src/extensions/components/misc/source/Button.vue +1 -1
  26. package/src/i18n/locales/ar.json +165 -159
  27. package/src/i18n/locales/bg.json +212 -0
  28. package/src/i18n/locales/ch.json +165 -159
  29. package/src/i18n/locales/cz.json +165 -159
  30. package/src/i18n/locales/de.json +165 -159
  31. package/src/i18n/locales/el.json +212 -0
  32. package/src/i18n/locales/en.json +166 -159
  33. package/src/i18n/locales/es.json +165 -159
  34. package/src/i18n/locales/et.json +212 -0
  35. package/src/i18n/locales/fi.json +165 -159
  36. package/src/i18n/locales/fr.json +165 -159
  37. package/src/i18n/locales/he.json +212 -0
  38. package/src/i18n/locales/hi.json +212 -0
  39. package/src/i18n/locales/hr.json +212 -0
  40. package/src/i18n/locales/hu.json +165 -159
  41. package/src/i18n/locales/id.json +212 -0
  42. package/src/i18n/locales/it.json +165 -159
  43. package/src/i18n/locales/ja.json +165 -159
  44. package/src/i18n/locales/ko.json +165 -159
  45. package/src/i18n/locales/la.json +165 -159
  46. package/src/i18n/locales/lt.json +165 -159
  47. package/src/i18n/locales/nl.json +165 -159
  48. package/src/i18n/locales/no.json +212 -0
  49. package/src/i18n/locales/pl.json +165 -159
  50. package/src/i18n/locales/pt-BR.json +212 -0
  51. package/src/i18n/locales/pt.json +165 -159
  52. package/src/i18n/locales/ro.json +212 -0
  53. package/src/i18n/locales/ru.json +165 -159
  54. package/src/i18n/locales/se.json +165 -159
  55. package/src/i18n/locales/sk.json +212 -0
  56. package/src/i18n/locales/sl.json +212 -0
  57. package/src/i18n/locales/sr.json +212 -0
  58. package/src/i18n/locales/th.json +165 -159
  59. package/src/i18n/locales/tr.json +165 -159
  60. package/src/i18n/locales/uk.json +165 -159
  61. package/src/i18n/locales/vi.json +165 -159
  62. package/src/index.ts +7 -0
  63. package/src/types/editor.ts +40 -2
  64. package/src/utils/validateHref.test.ts +68 -0
  65. package/src/utils/validateHref.ts +21 -0
@@ -1,205 +1,212 @@
1
1
  {
2
- "defaultValue": "Default value",
3
- "content": {
4
- "placeholder": "Write something here..."
5
- },
6
- "style": {
7
- "paragraph": "Paragraph",
8
- "heading": "Heading",
9
- "headings": {
10
- "h1": "Heading level 1",
11
- "h2": "Heading level 2",
12
- "h3": "Heading level 3",
13
- "h4": "Heading level 4",
14
- "h5": "Heading level 5",
15
- "h6": "Heading level 6"
16
- },
17
- "fontFamily": "Font family",
18
- "fontSize": "Font size",
19
- "lineHeight": "Line height",
20
- "color": {
21
- "highlight": "Highlight color",
22
- "text": "Text color",
23
- "unset": "Unset color",
24
- "custom": "Custom color"
25
- }
26
- },
27
- "format": {
28
- "bold": "Bold",
29
- "italic": "Italic",
30
- "strike": "Strikethrough",
31
- "underline": "Underline",
32
- "sup": "Superscript",
33
- "sub": "Subscript",
34
- "break": "Hard break",
35
- "line": "Horizontal line",
36
- "blockquote": "Cite",
37
- "code": "Code",
38
- "codeblock": "Code block",
39
- "formatClear": "Format clear"
2
+ "action": {
3
+ "redo": "Redo",
4
+ "undo": "Undo"
40
5
  },
41
- "media": {
42
- "link": "External link",
43
- "iframe": "iframe",
44
- "image": "Image",
45
- "emoji": {
46
- "title": "Emoji",
47
- "search": "Search emoji...",
48
- "categories": {
49
- "activities": "Activities",
50
- "animals_and_nature": "Animals & nature",
51
- "component": "Component",
52
- "flags": "Flags",
53
- "food_and_drink": "Food and drink",
54
- "objects": "Objects",
55
- "people_and_body": "People & body",
56
- "smileys_and_emotion": "Smileys and emotion",
57
- "symbols": "Symbols",
58
- "travel_and_places": "Travel and places"
6
+ "ai": {
7
+ "append": "Append",
8
+ "defaultExamples": {
9
+ "expand": {
10
+ "prompt": "Expand this into a more detailed version.",
11
+ "title": "Expand"
12
+ },
13
+ "improve": {
14
+ "prompt": "Improve the clarity and tone of this text.",
15
+ "title": "Improve writing"
16
+ },
17
+ "proofReading": {
18
+ "prompt": "Correct grammar, spelling, and punctuation without changing the meaning.",
19
+ "title": "Proof-reading"
20
+ },
21
+ "summarize": {
22
+ "prompt": "Summarize this text in a concise paragraph.",
23
+ "title": "Summarize"
59
24
  }
60
25
  },
61
- "tables": {
62
- "table": "Table",
63
- "insertTable": "Insert table",
64
- "deleteTable": "Delete table",
65
- "insertWithHeaderRow": "Insert table with header row",
66
- "rows": "Rows",
67
- "row": "Row",
68
- "insertRowBefore": "Insert row before",
69
- "insertRowAfter": "Insert row after",
70
- "deleteRow": "Delete row",
71
- "cols": "Columns",
72
- "col": "Column",
73
- "insertColBefore": "Insert column before",
74
- "insertColAfter": "Insert column after",
75
- "deleteCol": "Delete column",
76
- "mergeCells": "Merge cells",
77
- "splitCell": "Split cell"
78
- },
79
- "video": "Video",
80
- "charmap": {
81
- "title": "Special characters",
82
- "search": "Search characters...",
83
- "noResults": "No matching characters found",
84
- "categories": {
85
- "punctuation": "Punctuation",
86
- "symbols": "Symbols",
87
- "math": "Math",
88
- "currency": "Currency",
89
- "greek": "Greek letters",
90
- "extended_letters": "Extended letters",
91
- "diacritics": "Diacritics",
92
- "typography": "Typography",
93
- "cyrillic": "Cyrillic",
94
- "hebrew": "Hebrew",
95
- "arrows": "Arrows",
96
- "box_drawing": "Box drawing"
97
- }
98
- }
99
- },
100
- "action": {
101
- "undo": "Undo",
102
- "redo": "Redo"
26
+ "error": "AI generation failed",
27
+ "generate": "Generate",
28
+ "insert": "Insert",
29
+ "limit_exceeded": "Result exceeds the editor's character limit. Shorten the text and apply again.",
30
+ "loading": "Generating...",
31
+ "prompt": "Prompt",
32
+ "quick_prompts": "Quick Prompts",
33
+ "reasoning_effort": "Reasoning effort",
34
+ "replace": "Replace",
35
+ "result": "Result",
36
+ "stop": "Stop",
37
+ "thinking": "Thinking",
38
+ "title": "AI Writing",
39
+ "unavailable": "Configure an AI provider to use this action"
103
40
  },
104
41
  "alignment": "Alignment",
105
42
  "alignments": {
106
- "left": "Align left",
107
43
  "center": "Align center",
108
- "right": "Align right",
109
- "justify": "Justify"
44
+ "justify": "Justify",
45
+ "left": "Align left",
46
+ "right": "Align right"
110
47
  },
111
- "list": "List",
112
- "lists": {
113
- "bullet": "Unordered list",
114
- "numbered": "Ordered list",
115
- "task": "Task list",
116
- "indent": "List item indent",
117
- "outdent": "List item outdent"
48
+ "content": {
49
+ "placeholder": "Write something here..."
118
50
  },
51
+ "defaultValue": "Default value",
119
52
  "dialog": {
120
53
  "apply": "Apply",
121
54
  "clear": "Clear",
122
55
  "close": "Close",
123
56
  "iframe": {
124
57
  "dialog_title": "Add/edit iframe",
125
- "src": "Source",
58
+ "frameborder": "iframe border",
59
+ "height": "Height",
126
60
  "name": "Name",
61
+ "src": "Source",
62
+ "src_invalid": "The input is invalid URL",
127
63
  "title": "Title",
128
- "width": "Width",
129
- "height": "Height",
130
- "frameborder": "iframe border",
131
- "src_invalid": "The input is invalid URL"
64
+ "width": "Width"
132
65
  },
133
66
  "image": {
134
- "title": "Add/edit image",
135
- "src": "Source",
136
- "keep_ratio": "Keep ratio",
137
67
  "alt": "Alt",
138
- "width": "Width",
139
- "height": "Height"
68
+ "dialog_title": "Add/edit image",
69
+ "height": "Height",
70
+ "keep_ratio": "Keep ratio",
71
+ "src": "Source",
72
+ "title": "Add/edit image",
73
+ "width": "Width"
140
74
  },
141
75
  "link": {
142
- "title": "Add/edit link",
76
+ "class": "CSS class",
143
77
  "href": "Link address",
144
78
  "href_error": "Invalid link address",
79
+ "rel": "Rel",
145
80
  "target": "Open in...",
146
81
  "target_blank": "New window",
147
82
  "target_self": "Current window",
148
- "rel": "Rel",
149
- "class": "CSS class"
83
+ "title": "Add/edit link"
150
84
  },
151
85
  "preview": {
152
86
  "title": "Preview"
153
87
  },
154
88
  "source": {
155
- "title": "View source code",
156
- "prettify": "Prettify"
89
+ "prettify": "Prettify",
90
+ "title": "View source code"
157
91
  },
158
92
  "video": {
159
- "title": "Add/edit video",
93
+ "height": "Height",
160
94
  "src": "Source",
161
- "width": "Width",
162
- "height": "Height"
95
+ "title": "Add/edit video",
96
+ "width": "Width"
163
97
  }
164
98
  },
99
+ "footer": {
100
+ "chars": "characters",
101
+ "limit": "characters limit",
102
+ "words": "words"
103
+ },
104
+ "format": {
105
+ "blockquote": "Cite",
106
+ "bold": "Bold",
107
+ "break": "Hard break",
108
+ "code": "Code",
109
+ "codeblock": "Code block",
110
+ "formatClear": "Format clear",
111
+ "italic": "Italic",
112
+ "line": "Horizontal line",
113
+ "strike": "Strikethrough",
114
+ "sub": "Subscript",
115
+ "sup": "Superscript",
116
+ "underline": "Underline"
117
+ },
118
+ "list": "List",
119
+ "lists": {
120
+ "bullet": "Unordered list",
121
+ "indent": "List item indent",
122
+ "numbered": "Ordered list",
123
+ "outdent": "List item outdent",
124
+ "task": "Task list"
125
+ },
126
+ "media": {
127
+ "charmap": {
128
+ "categories": {
129
+ "arrows": "Arrows",
130
+ "box_drawing": "Box drawing",
131
+ "currency": "Currency",
132
+ "cyrillic": "Cyrillic",
133
+ "diacritics": "Diacritics",
134
+ "extended_letters": "Extended letters",
135
+ "greek": "Greek letters",
136
+ "hebrew": "Hebrew",
137
+ "math": "Math",
138
+ "punctuation": "Punctuation",
139
+ "symbols": "Symbols",
140
+ "typography": "Typography"
141
+ },
142
+ "noResults": "No matching characters found",
143
+ "search": "Search characters...",
144
+ "title": "Special characters"
145
+ },
146
+ "emoji": {
147
+ "categories": {
148
+ "activities": "Activities",
149
+ "animals_and_nature": "Animals & nature",
150
+ "component": "Component",
151
+ "flags": "Flags",
152
+ "food_and_drink": "Food and drink",
153
+ "objects": "Objects",
154
+ "people_and_body": "People & body",
155
+ "smileys_and_emotion": "Smileys and emotion",
156
+ "symbols": "Symbols",
157
+ "travel_and_places": "Travel and places"
158
+ },
159
+ "search": "Search emoji...",
160
+ "title": "Emoji"
161
+ },
162
+ "iframe": "iframe",
163
+ "image": "Image",
164
+ "link": "External link",
165
+ "tables": {
166
+ "col": "Column",
167
+ "cols": "Columns",
168
+ "deleteCol": "Delete column",
169
+ "deleteRow": "Delete row",
170
+ "deleteTable": "Delete table",
171
+ "insertColAfter": "Insert column after",
172
+ "insertColBefore": "Insert column before",
173
+ "insertRowAfter": "Insert row after",
174
+ "insertRowBefore": "Insert row before",
175
+ "insertTable": "Insert table",
176
+ "insertWithHeaderRow": "Insert table with header row",
177
+ "mergeCells": "Merge cells",
178
+ "row": "Row",
179
+ "rows": "Rows",
180
+ "splitCell": "Split cell",
181
+ "table": "Table"
182
+ },
183
+ "video": "Video"
184
+ },
165
185
  "misc": {
166
186
  "fullscreen": "Fullscreen mode",
167
187
  "preview": "Preview",
168
188
  "source": "View source code",
169
189
  "toggleInvisibleCharacters": "Show/hide invisible characters"
170
190
  },
171
- "footer": {
172
- "words": "words",
173
- "chars": "characters",
174
- "limit": "characters limit"
175
- },
176
- "ai": {
177
- "title": "AI assistant",
178
- "prompt": "Prompt",
179
- "examples": "Examples",
180
- "generate": "Generate",
181
- "apply": "Apply",
182
- "result": "Result",
183
- "loading": "Generating...",
184
- "unavailable": "Configure an AI provider to use this action",
185
- "error": "AI generation failed",
186
- "defaultExamples": {
187
- "improve": {
188
- "title": "Improve writing",
189
- "prompt": "Improve the clarity and tone of this text."
190
- },
191
- "proofReading": {
192
- "title": "Proof-reading",
193
- "prompt": "Correct grammar, spelling, and punctuation without changing the meaning."
194
- },
195
- "summarize": {
196
- "title": "Summarize",
197
- "prompt": "Summarize this text in a concise paragraph."
198
- },
199
- "expand": {
200
- "title": "Expand",
201
- "prompt": "Expand this into a more detailed version."
202
- }
203
- }
191
+ "style": {
192
+ "color": {
193
+ "custom": "Custom color",
194
+ "highlight": "Highlight color",
195
+ "text": "Text color",
196
+ "unset": "Unset color"
197
+ },
198
+ "fontFamily": "Font family",
199
+ "fontSize": "Font size",
200
+ "heading": "Heading",
201
+ "headings": {
202
+ "h1": "Heading level 1",
203
+ "h2": "Heading level 2",
204
+ "h3": "Heading level 3",
205
+ "h4": "Heading level 4",
206
+ "h5": "Heading level 5",
207
+ "h6": "Heading level 6"
208
+ },
209
+ "lineHeight": "Line height",
210
+ "paragraph": "Paragraph"
204
211
  }
205
212
  }