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.
Files changed (64) hide show
  1. package/README.md +1 -1
  2. package/dist/tiptapify.css +1 -1
  3. package/dist/tiptapify.mjs +84035 -64532
  4. package/dist/tiptapify.umd.js +86 -84
  5. package/index.d.ts +25 -2
  6. package/package.json +45 -45
  7. package/src/components/Footer.vue +5 -4
  8. package/src/components/Tiptapify.vue +83 -1
  9. package/src/components/Toolbar/Index.vue +2 -2
  10. package/src/components/Toolbar/Items.vue +9 -2
  11. package/src/components/UI/TiptapifyDialog.vue +7 -1
  12. package/src/extensions/components/ai/Button.vue +1 -1
  13. package/src/extensions/components/ai/Dialog.vue +337 -27
  14. package/src/extensions/components/ai/charLimit.test.ts +55 -0
  15. package/src/extensions/components/ai/charLimit.ts +30 -0
  16. package/src/extensions/components/ai/characterCount.test.ts +27 -0
  17. package/src/extensions/components/media/iframe/Button.vue +1 -2
  18. package/src/extensions/components/media/iframe/IframeDialog.vue +36 -31
  19. package/src/extensions/components/media/image/Button.vue +1 -1
  20. package/src/extensions/components/media/link/Button.vue +1 -1
  21. package/src/extensions/components/media/link/LinkDialog.vue +19 -36
  22. package/src/extensions/components/media/video/Button.vue +1 -1
  23. package/src/extensions/components/media/video/VideoDialog.vue +17 -17
  24. package/src/extensions/components/misc/source/Button.vue +1 -1
  25. package/src/i18n/locales/ar.json +165 -159
  26. package/src/i18n/locales/bg.json +212 -0
  27. package/src/i18n/locales/ch.json +165 -159
  28. package/src/i18n/locales/cz.json +165 -159
  29. package/src/i18n/locales/de.json +165 -159
  30. package/src/i18n/locales/el.json +212 -0
  31. package/src/i18n/locales/en.json +166 -159
  32. package/src/i18n/locales/es.json +165 -159
  33. package/src/i18n/locales/et.json +212 -0
  34. package/src/i18n/locales/fi.json +165 -159
  35. package/src/i18n/locales/fr.json +165 -159
  36. package/src/i18n/locales/he.json +212 -0
  37. package/src/i18n/locales/hi.json +212 -0
  38. package/src/i18n/locales/hr.json +212 -0
  39. package/src/i18n/locales/hu.json +165 -159
  40. package/src/i18n/locales/id.json +212 -0
  41. package/src/i18n/locales/it.json +165 -159
  42. package/src/i18n/locales/ja.json +165 -159
  43. package/src/i18n/locales/ko.json +165 -159
  44. package/src/i18n/locales/la.json +165 -159
  45. package/src/i18n/locales/lt.json +165 -159
  46. package/src/i18n/locales/nl.json +165 -159
  47. package/src/i18n/locales/no.json +212 -0
  48. package/src/i18n/locales/pl.json +165 -159
  49. package/src/i18n/locales/pt-BR.json +212 -0
  50. package/src/i18n/locales/pt.json +165 -159
  51. package/src/i18n/locales/ro.json +212 -0
  52. package/src/i18n/locales/ru.json +165 -159
  53. package/src/i18n/locales/se.json +165 -159
  54. package/src/i18n/locales/sk.json +212 -0
  55. package/src/i18n/locales/sl.json +212 -0
  56. package/src/i18n/locales/sr.json +212 -0
  57. package/src/i18n/locales/th.json +165 -159
  58. package/src/i18n/locales/tr.json +165 -159
  59. package/src/i18n/locales/uk.json +165 -159
  60. package/src/i18n/locales/vi.json +165 -159
  61. package/src/index.ts +5 -0
  62. package/src/types/editor.ts +23 -2
  63. package/src/utils/validateHref.test.ts +68 -0
  64. 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": "引用",
37
- "code": "コード",
38
- "codeblock": "コードブロック",
39
- "formatClear": "フォーマットをクリア"
2
+ "action": {
3
+ "redo": "やり直し",
4
+ "undo": "取り消し"
40
5
  },
41
- "media": {
42
- "link": "外部リンク",
43
- "iframe": "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": "このテキストを簡潔な1段落に要約してください。",
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": "iframeを追加/編集",
125
- "src": "ソース",
58
+ "frameborder": "iframe 境界線",
59
+ "height": "高さ",
126
60
  "name": "名前",
61
+ "src": "ソース",
62
+ "src_invalid": "入力された URL は無効です",
127
63
  "title": "タイトル",
128
- "width": "幅",
129
- "height": "高さ",
130
- "frameborder": "iframe 境界線",
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": "rel",
146
80
  "target": "開く場所...",
147
81
  "target_blank": "新しいウィンドウ",
148
82
  "target_self": "現在のウィンドウ",
149
- "rel": "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": "引用",
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": "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
  }