tiptapify 0.2.4 → 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.
Files changed (63) hide show
  1. package/README.md +1 -1
  2. package/dist/tiptapify.css +1 -1
  3. package/dist/tiptapify.mjs +84644 -65141
  4. package/dist/tiptapify.umd.js +86 -84
  5. package/index.d.ts +23 -2
  6. package/package.json +45 -45
  7. package/src/components/Tiptapify.vue +83 -1
  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 +337 -27
  13. package/src/extensions/components/ai/charLimit.test.ts +55 -0
  14. package/src/extensions/components/ai/charLimit.ts +30 -0
  15. package/src/extensions/components/ai/characterCount.test.ts +27 -0
  16. package/src/extensions/components/media/iframe/Button.vue +1 -2
  17. package/src/extensions/components/media/iframe/IframeDialog.vue +36 -31
  18. package/src/extensions/components/media/image/Button.vue +1 -1
  19. package/src/extensions/components/media/link/Button.vue +1 -1
  20. package/src/extensions/components/media/link/LinkDialog.vue +19 -36
  21. package/src/extensions/components/media/video/Button.vue +1 -1
  22. package/src/extensions/components/media/video/VideoDialog.vue +17 -17
  23. package/src/extensions/components/misc/source/Button.vue +1 -1
  24. package/src/i18n/locales/ar.json +165 -159
  25. package/src/i18n/locales/bg.json +212 -0
  26. package/src/i18n/locales/ch.json +165 -159
  27. package/src/i18n/locales/cz.json +165 -159
  28. package/src/i18n/locales/de.json +165 -159
  29. package/src/i18n/locales/el.json +212 -0
  30. package/src/i18n/locales/en.json +166 -159
  31. package/src/i18n/locales/es.json +165 -159
  32. package/src/i18n/locales/et.json +212 -0
  33. package/src/i18n/locales/fi.json +165 -159
  34. package/src/i18n/locales/fr.json +165 -159
  35. package/src/i18n/locales/he.json +212 -0
  36. package/src/i18n/locales/hi.json +212 -0
  37. package/src/i18n/locales/hr.json +212 -0
  38. package/src/i18n/locales/hu.json +165 -159
  39. package/src/i18n/locales/id.json +212 -0
  40. package/src/i18n/locales/it.json +165 -159
  41. package/src/i18n/locales/ja.json +165 -159
  42. package/src/i18n/locales/ko.json +165 -159
  43. package/src/i18n/locales/la.json +165 -159
  44. package/src/i18n/locales/lt.json +165 -159
  45. package/src/i18n/locales/nl.json +165 -159
  46. package/src/i18n/locales/no.json +212 -0
  47. package/src/i18n/locales/pl.json +165 -159
  48. package/src/i18n/locales/pt-BR.json +212 -0
  49. package/src/i18n/locales/pt.json +165 -159
  50. package/src/i18n/locales/ro.json +212 -0
  51. package/src/i18n/locales/ru.json +165 -159
  52. package/src/i18n/locales/se.json +165 -159
  53. package/src/i18n/locales/sk.json +212 -0
  54. package/src/i18n/locales/sl.json +212 -0
  55. package/src/i18n/locales/sr.json +212 -0
  56. package/src/i18n/locales/th.json +165 -159
  57. package/src/i18n/locales/tr.json +165 -159
  58. package/src/i18n/locales/uk.json +165 -159
  59. package/src/i18n/locales/vi.json +165 -159
  60. package/src/index.ts +3 -0
  61. package/src/types/editor.ts +23 -2
  62. package/src/utils/validateHref.test.ts +68 -0
  63. package/src/utils/validateHref.ts +21 -0
@@ -1,206 +1,212 @@
1
1
  {
2
- "defaultValue": "ค่าเริ่มต้น",
3
- "content": {
4
- "placeholder": "พิมพ์อะไรสักอย่าง..."
5
- },
6
- "style": {
7
- "paragraph": "ย่อหน้า",
8
- "heading": "หัวเรื่อง",
9
- "headings": {
10
- "h1": "หัวข้อระดับ 1",
11
- "h2": "หัวข้อระดับ 2",
12
- "h3": "หัวข้อระดับ 3",
13
- "h4": "หัวข้อระดับ 4",
14
- "h5": "หัวข้อระดับ 5",
15
- "h6": "หัวข้อระดับ 6"
16
- },
17
- "fontFamily": "ตระกูลฟอนต์",
18
- "fontSize": "ขนาดตัวอักษร",
19
- "lineHeight": "ความสูงบรรทัด",
20
- "color": {
21
- "highlight": "สีเน้น",
22
- "text": "สีข้อความ",
23
- "unset": "ลบสี",
24
- "custom": "เลือกเอง"
25
- }
26
- },
27
- "format": {
28
- "bold": "ตัวหนา",
29
- "italic": "ตัวเอียง",
30
- "strike": "ขีดฆ่า",
31
- "underline": "ขีดเส้นใต้",
32
- "sup": "ตัวยก",
33
- "sub": "ตัวห้อย",
34
- "break": "ขึ้นบรรทัดใหม่",
35
- "line": "เส้นแนวนอน",
36
- "blockquote": "คำ trích",
37
- "code": "โค้ด",
38
- "codeblock": "บล็อกโค้ด",
39
- "formatClear": "ล้างรูปแบบ"
2
+ "action": {
3
+ "redo": "ทำซ้ำ",
4
+ "undo": "ยกเลิก"
40
5
  },
41
- "media": {
42
- "link": "ลิงก์ภายนอก",
43
- "iframe": "กรอบฝังตัว",
44
- "image": "รูปภาพ",
45
- "emoji": {
46
- "title": "อิโมจิ",
47
- "search": "ค้นหาอิโมจิ...",
48
- "categories": {
49
- "activities": "กิจกรรม",
50
- "animals_and_nature": "สัตว์และธรรมชาติ",
51
- "component": "คอมโพเนนต์",
52
- "flags": "ธง",
53
- "food_and_drink": "อาหารและเครื่องดื่ม",
54
- "objects": "วัตถุ",
55
- "people_and_body": "คนและร่างกาย",
56
- "smileys_and_emotion": "อิโมจิและอารมณ์",
57
- "symbols": "สัญลักษณ์",
58
- "travel_and_places": "การเดินทางและสถานที่"
6
+ "ai": {
7
+ "append": "เพิ่มที่ท้าย",
8
+ "defaultExamples": {
9
+ "expand": {
10
+ "prompt": "ขยายข้อความนี้ให้เป็นเวอร์ชันที่ละเอียดขึ้น",
11
+ "title": "ขยาย"
12
+ },
13
+ "improve": {
14
+ "prompt": "ปรับปรุงความชัดเจนและน้ำเสียงของข้อความนี้",
15
+ "title": "ปรับปรุงการเขียน"
16
+ },
17
+ "proofReading": {
18
+ "prompt": "แก้ไขไวยากรณ์ ตัวสะกด และเครื่องหมายวรรคตอน โดยไม่เปลี่ยนความหมาย",
19
+ "title": "ตรวจทาน"
20
+ },
21
+ "summarize": {
22
+ "prompt": "สรุปข้อความนี้ในย่อหน้าสั้นกระชับ",
23
+ "title": "สรุป"
59
24
  }
60
25
  },
61
- "tables": {
62
- "table": "ตาราง",
63
- "insertTable": "แทรกตาราง",
64
- "deleteTable": "ลบตาราง",
65
- "insertWithHeaderRow": "แทรกตารางที่มีแถวหัวเรื่อง",
66
- "rows": "แถว",
67
- "row": "แถว",
68
- "insertRowBefore": "แทรกแถวก่อนหน้า",
69
- "insertRowAfter": "แทรกแถวถัดไป",
70
- "deleteRow": "ลบแถว",
71
- "cols": "คอลัมน์",
72
- "col": "คอลัมน์",
73
- "insertColBefore": "แทรกคอลัมน์ก่อนหน้า",
74
- "insertColAfter": "แทรกคอลัมน์ถัดไป",
75
- "deleteCol": "ลบคอลัมน์",
76
- "mergeCells": "รวมเซลล์",
77
- "splitCell": "แยกเซลล์"
78
- },
79
- "video": "วิดีโอ",
80
- "charmap": {
81
- "title": "แทรกอักขระพิเศษ",
82
- "search": "ค้นหาอักขระ...",
83
- "noResults": "ไม่พบอักขระที่ตรงกัน",
84
- "categories": {
85
- "punctuation": "เครื่องหมายวรรคตอน",
86
- "symbols": "สัญลักษณ์",
87
- "math": "คณิตศาสตร์",
88
- "currency": "สกุลเงิน",
89
- "greek": "ตัวอักษรกรีก",
90
- "extended_letters": "ตัวอักษรขยาย",
91
- "diacritics": "เครื่องหมายกำกับ",
92
- "typography": "การพิมพ์",
93
- "cyrillic": "ซีริลลิก",
94
- "hebrew": "ฮีบรู",
95
- "arrows": "ลูกศร",
96
- "box_drawing": "การวาดกรอบ"
97
- }
98
- }
99
- },
100
- "action": {
101
- "undo": "ยกเลิก",
102
- "redo": "ทำซ้ำ"
26
+ "error": "การสร้างด้วย AI ล้มเหลว",
27
+ "generate": "สร้าง",
28
+ "insert": "แทรก",
29
+ "limit_exceeded": "ผลลัพธ์เกินขีดจำกัดอักขระของเอดิเตอร์ ให้ลดความยาวข้อความแล้วลองใหม่",
30
+ "loading": "กำลังสร้าง...",
31
+ "prompt": "คำสั่ง",
32
+ "quick_prompts": "คำสั่งด่วน",
33
+ "reasoning_effort": "ระดับการให้เหตุผล",
34
+ "replace": "แทนที่",
35
+ "result": "ผลลัพธ์",
36
+ "stop": "หยุด",
37
+ "thinking": "การคิด",
38
+ "title": "การเขียนด้วย AI",
39
+ "unavailable": "ตั้งค่าผู้ให้บริการ AI เพื่อใช้การนี้"
103
40
  },
104
41
  "alignment": "การจัดแนว",
105
42
  "alignments": {
106
- "left": "จัดชิดซ้าย",
107
43
  "center": "จัดกึ่งกลาง",
108
- "right": "จัดชิดขวา",
109
- "justify": "จัดเต็มบรรทัด"
44
+ "justify": "จัดเต็มบรรทัด",
45
+ "left": "จัดชิดซ้าย",
46
+ "right": "จัดชิดขวา"
110
47
  },
111
- "list": "รายการ",
112
- "lists": {
113
- "bullet": "รายการแบบไม่มีตัวเลข",
114
- "numbered": "รายการแบบมีหมายเลข",
115
- "task": "รายการงาน",
116
- "indent": "เพิ่มการเยื้อง",
117
- "outdent": "ลดการเยื้อง"
48
+ "content": {
49
+ "placeholder": "พิมพ์อะไรสักอย่าง..."
118
50
  },
51
+ "defaultValue": "ค่าเริ่มต้น",
119
52
  "dialog": {
120
53
  "apply": "ใช้",
121
54
  "clear": "ล้าง",
122
55
  "close": "ปิด",
123
56
  "iframe": {
124
57
  "dialog_title": "เพิ่ม/แก้ไขกรอบฝังตัว",
125
- "src": "แหล่งที่มา",
58
+ "frameborder": "ขอบกรอบ",
59
+ "height": "ความสูง",
126
60
  "name": "ชื่อ",
61
+ "src": "แหล่งที่มา",
62
+ "src_invalid": "URL ที่ป้อนไม่ถูกต้อง",
127
63
  "title": "หัวข้อ",
128
- "width": "ความกว้าง",
129
- "height": "ความสูง",
130
- "frameborder": "ขอบกรอบ",
131
- "src_invalid": "URL ที่ป้อนไม่ถูกต้อง"
64
+ "width": "ความกว้าง"
132
65
  },
133
66
  "image": {
134
- "title": "หัวข้อ",
135
- "src": "แหล่งที่มา",
136
- "keep_ratio": "รักษาสัดส่วน",
137
67
  "alt": "ข้อความทางเลือก",
138
- "width": "ความกว้าง",
68
+ "dialog_title": "เพิ่ม/แก้ไขรูปภาพ",
139
69
  "height": "ความสูง",
140
- "dialog_title": "เพิ่ม/แก้ไขรูปภาพ"
70
+ "keep_ratio": "รักษาสัดส่วน",
71
+ "src": "แหล่งที่มา",
72
+ "title": "หัวข้อ",
73
+ "width": "ความกว้าง"
141
74
  },
142
75
  "link": {
143
- "title": "เพิ่ม/แก้ไขลิงก์",
76
+ "class": "คลาส CSS",
144
77
  "href": "ที่อยู่ลิงก์",
145
78
  "href_error": "ที่อยู่ลิงก์ไม่ถูกต้อง",
79
+ "rel": "ความสัมพันธ์",
146
80
  "target": "เปิดที่...",
147
81
  "target_blank": "หน้าต่างใหม่",
148
82
  "target_self": "หน้าต่างปัจจุบัน",
149
- "rel": "ความสัมพันธ์",
150
- "class": "คลาส CSS"
83
+ "title": "เพิ่ม/แก้ไขลิงก์"
151
84
  },
152
85
  "preview": {
153
86
  "title": "ดูตัวอย่าง"
154
87
  },
155
88
  "source": {
156
- "title": "ดูรหัสแหล่งที่มา",
157
- "prettify": "ทำให้สวยงาม"
89
+ "prettify": "ทำให้สวยงาม",
90
+ "title": "ดูรหัสแหล่งที่มา"
158
91
  },
159
92
  "video": {
160
- "title": "เพิ่ม/แก้ไขวิดีโอ",
93
+ "height": "ความสูง",
161
94
  "src": "แหล่งที่มา",
162
- "width": "ความกว้าง",
163
- "height": "ความสูง"
95
+ "title": "เพิ่ม/แก้ไขวิดีโอ",
96
+ "width": "ความกว้าง"
164
97
  }
165
98
  },
99
+ "footer": {
100
+ "chars": "ตัวอักษร",
101
+ "limit": "ขีดจำกัดตัวอักษร",
102
+ "words": "คำ"
103
+ },
104
+ "format": {
105
+ "blockquote": "คำ trích",
106
+ "bold": "ตัวหนา",
107
+ "break": "ขึ้นบรรทัดใหม่",
108
+ "code": "โค้ด",
109
+ "codeblock": "บล็อกโค้ด",
110
+ "formatClear": "ล้างรูปแบบ",
111
+ "italic": "ตัวเอียง",
112
+ "line": "เส้นแนวนอน",
113
+ "strike": "ขีดฆ่า",
114
+ "sub": "ตัวห้อย",
115
+ "sup": "ตัวยก",
116
+ "underline": "ขีดเส้นใต้"
117
+ },
118
+ "list": "รายการ",
119
+ "lists": {
120
+ "bullet": "รายการแบบไม่มีตัวเลข",
121
+ "indent": "เพิ่มการเยื้อง",
122
+ "numbered": "รายการแบบมีหมายเลข",
123
+ "outdent": "ลดการเยื้อง",
124
+ "task": "รายการงาน"
125
+ },
126
+ "media": {
127
+ "charmap": {
128
+ "categories": {
129
+ "arrows": "ลูกศร",
130
+ "box_drawing": "การวาดกรอบ",
131
+ "currency": "สกุลเงิน",
132
+ "cyrillic": "ซีริลลิก",
133
+ "diacritics": "เครื่องหมายกำกับ",
134
+ "extended_letters": "ตัวอักษรขยาย",
135
+ "greek": "ตัวอักษรกรีก",
136
+ "hebrew": "ฮีบรู",
137
+ "math": "คณิตศาสตร์",
138
+ "punctuation": "เครื่องหมายวรรคตอน",
139
+ "symbols": "สัญลักษณ์",
140
+ "typography": "การพิมพ์"
141
+ },
142
+ "noResults": "ไม่พบอักขระที่ตรงกัน",
143
+ "search": "ค้นหาอักขระ...",
144
+ "title": "แทรกอักขระพิเศษ"
145
+ },
146
+ "emoji": {
147
+ "categories": {
148
+ "activities": "กิจกรรม",
149
+ "animals_and_nature": "สัตว์และธรรมชาติ",
150
+ "component": "คอมโพเนนต์",
151
+ "flags": "ธง",
152
+ "food_and_drink": "อาหารและเครื่องดื่ม",
153
+ "objects": "วัตถุ",
154
+ "people_and_body": "คนและร่างกาย",
155
+ "smileys_and_emotion": "อิโมจิและอารมณ์",
156
+ "symbols": "สัญลักษณ์",
157
+ "travel_and_places": "การเดินทางและสถานที่"
158
+ },
159
+ "search": "ค้นหาอิโมจิ...",
160
+ "title": "อิโมจิ"
161
+ },
162
+ "iframe": "กรอบฝังตัว",
163
+ "image": "รูปภาพ",
164
+ "link": "ลิงก์ภายนอก",
165
+ "tables": {
166
+ "col": "คอลัมน์",
167
+ "cols": "คอลัมน์",
168
+ "deleteCol": "ลบคอลัมน์",
169
+ "deleteRow": "ลบแถว",
170
+ "deleteTable": "ลบตาราง",
171
+ "insertColAfter": "แทรกคอลัมน์ถัดไป",
172
+ "insertColBefore": "แทรกคอลัมน์ก่อนหน้า",
173
+ "insertRowAfter": "แทรกแถวถัดไป",
174
+ "insertRowBefore": "แทรกแถวก่อนหน้า",
175
+ "insertTable": "แทรกตาราง",
176
+ "insertWithHeaderRow": "แทรกตารางที่มีแถวหัวเรื่อง",
177
+ "mergeCells": "รวมเซลล์",
178
+ "row": "แถว",
179
+ "rows": "แถว",
180
+ "splitCell": "แยกเซลล์",
181
+ "table": "ตาราง"
182
+ },
183
+ "video": "วิดีโอ"
184
+ },
166
185
  "misc": {
167
186
  "fullscreen": "โหมดเต็มหน้าจอ",
168
187
  "preview": "ดูตัวอย่าง",
169
188
  "source": "ดูรหัสแหล่งที่มา",
170
189
  "toggleInvisibleCharacters": "แสดง/ซ่อนอักขระที่มองไม่เห็น"
171
190
  },
172
- "footer": {
173
- "words": "คำ",
174
- "chars": "ตัวอักษร",
175
- "limit": "ขีดจำกัดตัวอักษร"
176
- },
177
- "ai": {
178
- "title": "AI assistant",
179
- "prompt": "Prompt",
180
- "examples": "Examples",
181
- "generate": "Generate",
182
- "apply": "Apply",
183
- "result": "Result",
184
- "loading": "Generating...",
185
- "unavailable": "Configure an AI provider to use this action",
186
- "error": "AI generation failed",
187
- "defaultExamples": {
188
- "improve": {
189
- "title": "Improve writing",
190
- "prompt": "Improve the clarity and tone of this text."
191
- },
192
- "proofReading": {
193
- "title": "Proof-reading",
194
- "prompt": "Correct grammar, spelling, and punctuation without changing the meaning."
195
- },
196
- "summarize": {
197
- "title": "Summarize",
198
- "prompt": "Summarize this text in a concise paragraph."
199
- },
200
- "expand": {
201
- "title": "Expand",
202
- "prompt": "Expand this into a more detailed version."
203
- }
204
- }
191
+ "style": {
192
+ "color": {
193
+ "custom": "เลือกเอง",
194
+ "highlight": "สีเน้น",
195
+ "text": "สีข้อความ",
196
+ "unset": "ลบสี"
197
+ },
198
+ "fontFamily": "ตระกูลฟอนต์",
199
+ "fontSize": "ขนาดตัวอักษร",
200
+ "heading": "หัวเรื่อง",
201
+ "headings": {
202
+ "h1": "หัวข้อระดับ 1",
203
+ "h2": "หัวข้อระดับ 2",
204
+ "h3": "หัวข้อระดับ 3",
205
+ "h4": "หัวข้อระดับ 4",
206
+ "h5": "หัวข้อระดับ 5",
207
+ "h6": "หัวข้อระดับ 6"
208
+ },
209
+ "lineHeight": "ความสูงบรรทัด",
210
+ "paragraph": "ย่อหน้า"
205
211
  }
206
212
  }