tiptapify 0.2.3 → 0.2.5
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/README.md +1 -1
- package/dist/tiptapify.css +1 -1
- package/dist/tiptapify.mjs +84035 -64532
- package/dist/tiptapify.umd.js +86 -84
- package/index.d.ts +25 -2
- package/package.json +45 -45
- package/src/components/Footer.vue +5 -4
- package/src/components/Tiptapify.vue +83 -1
- package/src/components/Toolbar/Index.vue +2 -2
- package/src/components/Toolbar/Items.vue +9 -2
- package/src/components/UI/TiptapifyDialog.vue +7 -1
- package/src/extensions/components/ai/Button.vue +1 -1
- package/src/extensions/components/ai/Dialog.vue +337 -27
- package/src/extensions/components/ai/charLimit.test.ts +55 -0
- package/src/extensions/components/ai/charLimit.ts +30 -0
- package/src/extensions/components/ai/characterCount.test.ts +27 -0
- package/src/extensions/components/media/iframe/Button.vue +1 -2
- package/src/extensions/components/media/iframe/IframeDialog.vue +36 -31
- package/src/extensions/components/media/image/Button.vue +1 -1
- package/src/extensions/components/media/link/Button.vue +1 -1
- package/src/extensions/components/media/link/LinkDialog.vue +19 -36
- package/src/extensions/components/media/video/Button.vue +1 -1
- package/src/extensions/components/media/video/VideoDialog.vue +17 -17
- package/src/extensions/components/misc/source/Button.vue +1 -1
- package/src/i18n/locales/ar.json +165 -159
- package/src/i18n/locales/bg.json +212 -0
- package/src/i18n/locales/ch.json +165 -159
- package/src/i18n/locales/cz.json +165 -159
- package/src/i18n/locales/de.json +165 -159
- package/src/i18n/locales/el.json +212 -0
- package/src/i18n/locales/en.json +166 -159
- package/src/i18n/locales/es.json +165 -159
- package/src/i18n/locales/et.json +212 -0
- package/src/i18n/locales/fi.json +165 -159
- package/src/i18n/locales/fr.json +165 -159
- package/src/i18n/locales/he.json +212 -0
- package/src/i18n/locales/hi.json +212 -0
- package/src/i18n/locales/hr.json +212 -0
- package/src/i18n/locales/hu.json +165 -159
- package/src/i18n/locales/id.json +212 -0
- package/src/i18n/locales/it.json +165 -159
- package/src/i18n/locales/ja.json +165 -159
- package/src/i18n/locales/ko.json +165 -159
- package/src/i18n/locales/la.json +165 -159
- package/src/i18n/locales/lt.json +165 -159
- package/src/i18n/locales/nl.json +165 -159
- package/src/i18n/locales/no.json +212 -0
- package/src/i18n/locales/pl.json +165 -159
- package/src/i18n/locales/pt-BR.json +212 -0
- package/src/i18n/locales/pt.json +165 -159
- package/src/i18n/locales/ro.json +212 -0
- package/src/i18n/locales/ru.json +165 -159
- package/src/i18n/locales/se.json +165 -159
- package/src/i18n/locales/sk.json +212 -0
- package/src/i18n/locales/sl.json +212 -0
- package/src/i18n/locales/sr.json +212 -0
- package/src/i18n/locales/th.json +165 -159
- package/src/i18n/locales/tr.json +165 -159
- package/src/i18n/locales/uk.json +165 -159
- package/src/i18n/locales/vi.json +165 -159
- package/src/index.ts +5 -0
- package/src/types/editor.ts +23 -2
- package/src/utils/validateHref.test.ts +68 -0
- package/src/utils/validateHref.ts +21 -0
package/src/i18n/locales/en.json
CHANGED
|
@@ -1,205 +1,212 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"
|
|
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
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
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
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
"
|
|
109
|
-
"
|
|
44
|
+
"justify": "Justify",
|
|
45
|
+
"left": "Align left",
|
|
46
|
+
"right": "Align right"
|
|
110
47
|
},
|
|
111
|
-
"
|
|
112
|
-
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
149
|
-
"class": "CSS class"
|
|
83
|
+
"title": "Add/edit link"
|
|
150
84
|
},
|
|
151
85
|
"preview": {
|
|
152
86
|
"title": "Preview"
|
|
153
87
|
},
|
|
154
88
|
"source": {
|
|
155
|
-
"
|
|
156
|
-
"
|
|
89
|
+
"prettify": "Prettify",
|
|
90
|
+
"title": "View source code"
|
|
157
91
|
},
|
|
158
92
|
"video": {
|
|
159
|
-
"
|
|
93
|
+
"height": "Height",
|
|
160
94
|
"src": "Source",
|
|
161
|
-
"
|
|
162
|
-
"
|
|
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
|
-
"
|
|
172
|
-
"
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
"
|
|
188
|
-
|
|
189
|
-
|
|
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
|
}
|