@seorii/tiptap 0.4.0 → 0.4.2

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.
@@ -24,6 +24,8 @@ declare const _default: {
24
24
  codeBlock: string;
25
25
  mathBlock: string;
26
26
  table: string;
27
+ twoColumns: string;
28
+ threeColumns: string;
27
29
  image: string;
28
30
  iframe: string;
29
31
  youtube: string;
@@ -36,6 +38,8 @@ declare const _default: {
36
38
  codeBlockInfo: string;
37
39
  mathBlockInfo: string;
38
40
  tableInfo: string;
41
+ twoColumnsInfo: string;
42
+ threeColumnsInfo: string;
39
43
  imageInfo: string;
40
44
  iframeInfo: string;
41
45
  youtubeInfo: string;
@@ -24,6 +24,8 @@ export default {
24
24
  codeBlock: 'Code block',
25
25
  mathBlock: 'Math block',
26
26
  table: 'Table',
27
+ twoColumns: '2 Columns',
28
+ threeColumns: '3 Columns',
27
29
  image: 'Image',
28
30
  iframe: 'iframe',
29
31
  youtube: 'Youtube',
@@ -36,6 +38,8 @@ export default {
36
38
  codeBlockInfo: 'Code block with syntax highlighting',
37
39
  mathBlockInfo: 'Math block',
38
40
  tableInfo: 'Table',
41
+ twoColumnsInfo: 'Two-column layout',
42
+ threeColumnsInfo: 'Three-column layout',
39
43
  imageInfo: 'Image',
40
44
  iframeInfo: 'Embed another website',
41
45
  youtubeInfo: 'Embed Youtube video',
@@ -0,0 +1,51 @@
1
+ declare const _default: {
2
+ target: string[];
3
+ lang: string;
4
+ country: string;
5
+ text: string;
6
+ block: string;
7
+ loading: string;
8
+ delete: string;
9
+ close: string;
10
+ cancel: string;
11
+ insert: string;
12
+ noResult: string;
13
+ default: string;
14
+ auto: string;
15
+ title: string;
16
+ paragraph: string;
17
+ link: string;
18
+ alignLeft: string;
19
+ alignCenter: string;
20
+ alignRight: string;
21
+ alignJustify: string;
22
+ unorderedList: string;
23
+ numberList: string;
24
+ codeBlock: string;
25
+ mathBlock: string;
26
+ table: string;
27
+ twoColumns: string;
28
+ threeColumns: string;
29
+ image: string;
30
+ iframe: string;
31
+ youtube: string;
32
+ blockquote: string;
33
+ title1Info: string;
34
+ title2Info: string;
35
+ title3Info: string;
36
+ unorderedListInfo: string;
37
+ numberListInfo: string;
38
+ codeBlockInfo: string;
39
+ mathBlockInfo: string;
40
+ tableInfo: string;
41
+ twoColumnsInfo: string;
42
+ threeColumnsInfo: string;
43
+ imageInfo: string;
44
+ iframeInfo: string;
45
+ youtubeInfo: string;
46
+ blockquoteInfo: string;
47
+ newLineInfo: string;
48
+ placeholder: string;
49
+ insertCode: string;
50
+ };
51
+ export default _default;
@@ -0,0 +1,50 @@
1
+ export default {
2
+ target: ['es', 'es-ES', 'es-419', 'es-MX'],
3
+ lang: 'es',
4
+ country: 'ES',
5
+ text: 'Texto',
6
+ block: 'Bloque',
7
+ loading: 'Cargando...',
8
+ delete: 'Eliminar',
9
+ close: 'Cerrar',
10
+ cancel: 'Cancelar',
11
+ insert: 'Insertar',
12
+ noResult: 'Sin resultados',
13
+ default: 'predeterminado',
14
+ auto: 'auto',
15
+ title: 'Título',
16
+ paragraph: 'Párrafo',
17
+ link: 'Enlace',
18
+ alignLeft: 'Alinear a la izquierda',
19
+ alignCenter: 'Centrar',
20
+ alignRight: 'Alinear a la derecha',
21
+ alignJustify: 'Justificar',
22
+ unorderedList: 'Lista con viñetas',
23
+ numberList: 'Lista numerada',
24
+ codeBlock: 'Bloque de código',
25
+ mathBlock: 'Bloque matemático',
26
+ table: 'Tabla',
27
+ twoColumns: '2 columnas',
28
+ threeColumns: '3 columnas',
29
+ image: 'Imagen',
30
+ iframe: 'iframe',
31
+ youtube: 'YouTube',
32
+ blockquote: 'Cita',
33
+ title1Info: 'Título grande',
34
+ title2Info: 'Título más pequeño',
35
+ title3Info: 'Título mediano',
36
+ unorderedListInfo: 'Lista sin orden',
37
+ numberListInfo: '1, 2, 3, 4',
38
+ codeBlockInfo: 'Bloque de código con resaltado de sintaxis',
39
+ mathBlockInfo: 'Bloque matemático',
40
+ tableInfo: 'Tabla',
41
+ twoColumnsInfo: 'Diseño de dos columnas',
42
+ threeColumnsInfo: 'Diseño de tres columnas',
43
+ imageInfo: 'Imagen',
44
+ iframeInfo: 'Insertar otro sitio web',
45
+ youtubeInfo: 'Insertar video de YouTube',
46
+ blockquoteInfo: 'Cita',
47
+ newLineInfo: 'Pulsa / para abrir comandos. O',
48
+ placeholder: 'Escribe contenido aquí...',
49
+ insertCode: 'Insertar código'
50
+ };
@@ -24,6 +24,8 @@ declare const locales: readonly [{
24
24
  codeBlock: string;
25
25
  mathBlock: string;
26
26
  table: string;
27
+ twoColumns: string;
28
+ threeColumns: string;
27
29
  image: string;
28
30
  iframe: string;
29
31
  youtube: string;
@@ -36,6 +38,8 @@ declare const locales: readonly [{
36
38
  codeBlockInfo: string;
37
39
  mathBlockInfo: string;
38
40
  tableInfo: string;
41
+ twoColumnsInfo: string;
42
+ threeColumnsInfo: string;
39
43
  imageInfo: string;
40
44
  iframeInfo: string;
41
45
  youtubeInfo: string;
@@ -69,6 +73,8 @@ declare const locales: readonly [{
69
73
  codeBlock: string;
70
74
  mathBlock: string;
71
75
  table: string;
76
+ twoColumns: string;
77
+ threeColumns: string;
72
78
  image: string;
73
79
  iframe: string;
74
80
  youtube: string;
@@ -81,6 +87,204 @@ declare const locales: readonly [{
81
87
  codeBlockInfo: string;
82
88
  mathBlockInfo: string;
83
89
  tableInfo: string;
90
+ twoColumnsInfo: string;
91
+ threeColumnsInfo: string;
92
+ imageInfo: string;
93
+ iframeInfo: string;
94
+ youtubeInfo: string;
95
+ blockquoteInfo: string;
96
+ newLineInfo: string;
97
+ placeholder: string;
98
+ insertCode: string;
99
+ }, {
100
+ target: string[];
101
+ lang: string;
102
+ country: string;
103
+ text: string;
104
+ block: string;
105
+ loading: string;
106
+ delete: string;
107
+ close: string;
108
+ cancel: string;
109
+ insert: string;
110
+ noResult: string;
111
+ default: string;
112
+ auto: string;
113
+ title: string;
114
+ paragraph: string;
115
+ link: string;
116
+ alignLeft: string;
117
+ alignCenter: string;
118
+ alignRight: string;
119
+ alignJustify: string;
120
+ unorderedList: string;
121
+ numberList: string;
122
+ codeBlock: string;
123
+ mathBlock: string;
124
+ table: string;
125
+ twoColumns: string;
126
+ threeColumns: string;
127
+ image: string;
128
+ iframe: string;
129
+ youtube: string;
130
+ blockquote: string;
131
+ title1Info: string;
132
+ title2Info: string;
133
+ title3Info: string;
134
+ unorderedListInfo: string;
135
+ numberListInfo: string;
136
+ codeBlockInfo: string;
137
+ mathBlockInfo: string;
138
+ tableInfo: string;
139
+ twoColumnsInfo: string;
140
+ threeColumnsInfo: string;
141
+ imageInfo: string;
142
+ iframeInfo: string;
143
+ youtubeInfo: string;
144
+ blockquoteInfo: string;
145
+ newLineInfo: string;
146
+ placeholder: string;
147
+ insertCode: string;
148
+ }, {
149
+ target: string[];
150
+ lang: string;
151
+ country: string;
152
+ text: string;
153
+ block: string;
154
+ loading: string;
155
+ delete: string;
156
+ close: string;
157
+ cancel: string;
158
+ insert: string;
159
+ noResult: string;
160
+ default: string;
161
+ auto: string;
162
+ title: string;
163
+ paragraph: string;
164
+ link: string;
165
+ alignLeft: string;
166
+ alignCenter: string;
167
+ alignRight: string;
168
+ alignJustify: string;
169
+ unorderedList: string;
170
+ numberList: string;
171
+ codeBlock: string;
172
+ mathBlock: string;
173
+ table: string;
174
+ twoColumns: string;
175
+ threeColumns: string;
176
+ image: string;
177
+ iframe: string;
178
+ youtube: string;
179
+ blockquote: string;
180
+ title1Info: string;
181
+ title2Info: string;
182
+ title3Info: string;
183
+ unorderedListInfo: string;
184
+ numberListInfo: string;
185
+ codeBlockInfo: string;
186
+ mathBlockInfo: string;
187
+ tableInfo: string;
188
+ twoColumnsInfo: string;
189
+ threeColumnsInfo: string;
190
+ imageInfo: string;
191
+ iframeInfo: string;
192
+ youtubeInfo: string;
193
+ blockquoteInfo: string;
194
+ newLineInfo: string;
195
+ placeholder: string;
196
+ insertCode: string;
197
+ }, {
198
+ target: string[];
199
+ lang: string;
200
+ country: string;
201
+ text: string;
202
+ block: string;
203
+ loading: string;
204
+ delete: string;
205
+ close: string;
206
+ cancel: string;
207
+ insert: string;
208
+ noResult: string;
209
+ default: string;
210
+ auto: string;
211
+ title: string;
212
+ paragraph: string;
213
+ link: string;
214
+ alignLeft: string;
215
+ alignCenter: string;
216
+ alignRight: string;
217
+ alignJustify: string;
218
+ unorderedList: string;
219
+ numberList: string;
220
+ codeBlock: string;
221
+ mathBlock: string;
222
+ table: string;
223
+ twoColumns: string;
224
+ threeColumns: string;
225
+ image: string;
226
+ iframe: string;
227
+ youtube: string;
228
+ blockquote: string;
229
+ title1Info: string;
230
+ title2Info: string;
231
+ title3Info: string;
232
+ unorderedListInfo: string;
233
+ numberListInfo: string;
234
+ codeBlockInfo: string;
235
+ mathBlockInfo: string;
236
+ tableInfo: string;
237
+ twoColumnsInfo: string;
238
+ threeColumnsInfo: string;
239
+ imageInfo: string;
240
+ iframeInfo: string;
241
+ youtubeInfo: string;
242
+ blockquoteInfo: string;
243
+ newLineInfo: string;
244
+ placeholder: string;
245
+ insertCode: string;
246
+ }, {
247
+ target: string[];
248
+ lang: string;
249
+ country: string;
250
+ text: string;
251
+ block: string;
252
+ loading: string;
253
+ delete: string;
254
+ close: string;
255
+ cancel: string;
256
+ insert: string;
257
+ noResult: string;
258
+ default: string;
259
+ auto: string;
260
+ title: string;
261
+ paragraph: string;
262
+ link: string;
263
+ alignLeft: string;
264
+ alignCenter: string;
265
+ alignRight: string;
266
+ alignJustify: string;
267
+ unorderedList: string;
268
+ numberList: string;
269
+ codeBlock: string;
270
+ mathBlock: string;
271
+ table: string;
272
+ twoColumns: string;
273
+ threeColumns: string;
274
+ image: string;
275
+ iframe: string;
276
+ youtube: string;
277
+ blockquote: string;
278
+ title1Info: string;
279
+ title2Info: string;
280
+ title3Info: string;
281
+ unorderedListInfo: string;
282
+ numberListInfo: string;
283
+ codeBlockInfo: string;
284
+ mathBlockInfo: string;
285
+ tableInfo: string;
286
+ twoColumnsInfo: string;
287
+ threeColumnsInfo: string;
84
288
  imageInfo: string;
85
289
  iframeInfo: string;
86
290
  youtubeInfo: string;
@@ -1,8 +1,25 @@
1
1
  import enUs from './en-us/index';
2
2
  import koKr from './ko-kr/index';
3
- const locales = [enUs, koKr];
3
+ import es from './es/index';
4
+ import ja from './ja/index';
5
+ import zhHans from './zh-hans/index';
6
+ import zhHant from './zh-hant/index';
7
+ const locales = [enUs, koKr, es, ja, zhHans, zhHant];
4
8
  export const I18N_CONTEXT = Symbol('tiptap-i18n');
5
- const normalizeLocaleCode = (value) => (value ?? '').trim().replace(/_/g, '-').toLowerCase();
9
+ const normalizeLocaleCode = (value) => {
10
+ const normalized = (value ?? '').trim().replace(/_/g, '-').toLowerCase();
11
+ if (!normalized)
12
+ return '';
13
+ if (!normalized.startsWith('zh'))
14
+ return normalized;
15
+ if (normalized.includes('hant') ||
16
+ normalized.startsWith('zh-tw') ||
17
+ normalized.startsWith('zh-hk') ||
18
+ normalized.startsWith('zh-mo')) {
19
+ return 'zh-hant';
20
+ }
21
+ return 'zh-hans';
22
+ };
6
23
  const findLocale = (localeList, language) => {
7
24
  const normalized = normalizeLocaleCode(language);
8
25
  if (!normalized)
@@ -0,0 +1,51 @@
1
+ declare const _default: {
2
+ target: string[];
3
+ lang: string;
4
+ country: string;
5
+ text: string;
6
+ block: string;
7
+ loading: string;
8
+ delete: string;
9
+ close: string;
10
+ cancel: string;
11
+ insert: string;
12
+ noResult: string;
13
+ default: string;
14
+ auto: string;
15
+ title: string;
16
+ paragraph: string;
17
+ link: string;
18
+ alignLeft: string;
19
+ alignCenter: string;
20
+ alignRight: string;
21
+ alignJustify: string;
22
+ unorderedList: string;
23
+ numberList: string;
24
+ codeBlock: string;
25
+ mathBlock: string;
26
+ table: string;
27
+ twoColumns: string;
28
+ threeColumns: string;
29
+ image: string;
30
+ iframe: string;
31
+ youtube: string;
32
+ blockquote: string;
33
+ title1Info: string;
34
+ title2Info: string;
35
+ title3Info: string;
36
+ unorderedListInfo: string;
37
+ numberListInfo: string;
38
+ codeBlockInfo: string;
39
+ mathBlockInfo: string;
40
+ tableInfo: string;
41
+ twoColumnsInfo: string;
42
+ threeColumnsInfo: string;
43
+ imageInfo: string;
44
+ iframeInfo: string;
45
+ youtubeInfo: string;
46
+ blockquoteInfo: string;
47
+ newLineInfo: string;
48
+ placeholder: string;
49
+ insertCode: string;
50
+ };
51
+ export default _default;
@@ -0,0 +1,50 @@
1
+ export default {
2
+ target: ['ja', 'ja-JP'],
3
+ lang: 'ja',
4
+ country: 'JP',
5
+ text: 'テキスト',
6
+ block: 'ブロック',
7
+ loading: '読み込み中...',
8
+ delete: '削除',
9
+ close: '閉じる',
10
+ cancel: 'キャンセル',
11
+ insert: '挿入',
12
+ noResult: '結果なし',
13
+ default: 'デフォルト',
14
+ auto: '自動',
15
+ title: '見出し',
16
+ paragraph: '本文',
17
+ link: 'リンク',
18
+ alignLeft: '左揃え',
19
+ alignCenter: '中央揃え',
20
+ alignRight: '右揃え',
21
+ alignJustify: '両端揃え',
22
+ unorderedList: '箇条書き',
23
+ numberList: '番号付きリスト',
24
+ codeBlock: 'コードブロック',
25
+ mathBlock: '数式ブロック',
26
+ table: '表',
27
+ twoColumns: '2カラム',
28
+ threeColumns: '3カラム',
29
+ image: '画像',
30
+ iframe: 'iframe',
31
+ youtube: 'YouTube',
32
+ blockquote: '引用',
33
+ title1Info: '大きな見出し',
34
+ title2Info: 'やや小さい見出し',
35
+ title3Info: '中くらいの見出し',
36
+ unorderedListInfo: '順序なしリスト',
37
+ numberListInfo: '1, 2, 3, 4',
38
+ codeBlockInfo: 'シンタックスハイライト付きコードブロック',
39
+ mathBlockInfo: '数式ブロック',
40
+ tableInfo: '表',
41
+ twoColumnsInfo: '2カラムレイアウト',
42
+ threeColumnsInfo: '3カラムレイアウト',
43
+ imageInfo: '画像',
44
+ iframeInfo: '別のウェブサイトを埋め込む',
45
+ youtubeInfo: 'YouTube動画を埋め込む',
46
+ blockquoteInfo: '引用ブロック',
47
+ newLineInfo: '/ でコマンドを開く。または',
48
+ placeholder: 'ここに内容を入力...',
49
+ insertCode: 'コードを挿入'
50
+ };
@@ -24,6 +24,8 @@ declare const _default: {
24
24
  codeBlock: string;
25
25
  mathBlock: string;
26
26
  table: string;
27
+ twoColumns: string;
28
+ threeColumns: string;
27
29
  image: string;
28
30
  iframe: string;
29
31
  youtube: string;
@@ -36,6 +38,8 @@ declare const _default: {
36
38
  codeBlockInfo: string;
37
39
  mathBlockInfo: string;
38
40
  tableInfo: string;
41
+ twoColumnsInfo: string;
42
+ threeColumnsInfo: string;
39
43
  imageInfo: string;
40
44
  iframeInfo: string;
41
45
  youtubeInfo: string;
@@ -24,6 +24,8 @@ export default {
24
24
  codeBlock: '코드 블록',
25
25
  mathBlock: '수식 블록',
26
26
  table: '테이블',
27
+ twoColumns: '2열',
28
+ threeColumns: '3열',
27
29
  image: '이미지',
28
30
  iframe: 'iframe',
29
31
  youtube: '유튜브',
@@ -36,6 +38,8 @@ export default {
36
38
  codeBlockInfo: '하이라이팅되는 코드 블록',
37
39
  mathBlockInfo: '가운데로 정렬되는 수식 블록',
38
40
  tableInfo: '표 삽입',
41
+ twoColumnsInfo: '2열 레이아웃',
42
+ threeColumnsInfo: '3열 레이아웃',
39
43
  imageInfo: '이미지',
40
44
  iframeInfo: '다른 웹사이트 삽입',
41
45
  youtubeInfo: 'Youtube 동영상 삽입',
@@ -0,0 +1,51 @@
1
+ declare const _default: {
2
+ target: string[];
3
+ lang: string;
4
+ country: string;
5
+ text: string;
6
+ block: string;
7
+ loading: string;
8
+ delete: string;
9
+ close: string;
10
+ cancel: string;
11
+ insert: string;
12
+ noResult: string;
13
+ default: string;
14
+ auto: string;
15
+ title: string;
16
+ paragraph: string;
17
+ link: string;
18
+ alignLeft: string;
19
+ alignCenter: string;
20
+ alignRight: string;
21
+ alignJustify: string;
22
+ unorderedList: string;
23
+ numberList: string;
24
+ codeBlock: string;
25
+ mathBlock: string;
26
+ table: string;
27
+ twoColumns: string;
28
+ threeColumns: string;
29
+ image: string;
30
+ iframe: string;
31
+ youtube: string;
32
+ blockquote: string;
33
+ title1Info: string;
34
+ title2Info: string;
35
+ title3Info: string;
36
+ unorderedListInfo: string;
37
+ numberListInfo: string;
38
+ codeBlockInfo: string;
39
+ mathBlockInfo: string;
40
+ tableInfo: string;
41
+ twoColumnsInfo: string;
42
+ threeColumnsInfo: string;
43
+ imageInfo: string;
44
+ iframeInfo: string;
45
+ youtubeInfo: string;
46
+ blockquoteInfo: string;
47
+ newLineInfo: string;
48
+ placeholder: string;
49
+ insertCode: string;
50
+ };
51
+ export default _default;
@@ -0,0 +1,50 @@
1
+ export default {
2
+ target: ['zh', 'zh-CN', 'zh-SG', 'zh-Hans'],
3
+ lang: 'zh',
4
+ country: 'CN',
5
+ text: '文本',
6
+ block: '区块',
7
+ loading: '加载中...',
8
+ delete: '删除',
9
+ close: '关闭',
10
+ cancel: '取消',
11
+ insert: '插入',
12
+ noResult: '无结果',
13
+ default: '默认',
14
+ auto: '自动',
15
+ title: '标题',
16
+ paragraph: '正文',
17
+ link: '链接',
18
+ alignLeft: '左对齐',
19
+ alignCenter: '居中对齐',
20
+ alignRight: '右对齐',
21
+ alignJustify: '两端对齐',
22
+ unorderedList: '无序列表',
23
+ numberList: '有序列表',
24
+ codeBlock: '代码块',
25
+ mathBlock: '公式块',
26
+ table: '表格',
27
+ twoColumns: '2 列',
28
+ threeColumns: '3 列',
29
+ image: '图片',
30
+ iframe: 'iframe',
31
+ youtube: 'YouTube',
32
+ blockquote: '引用',
33
+ title1Info: '大标题',
34
+ title2Info: '较小标题',
35
+ title3Info: '中等标题',
36
+ unorderedListInfo: '无序列表',
37
+ numberListInfo: '1, 2, 3, 4',
38
+ codeBlockInfo: '带语法高亮的代码块',
39
+ mathBlockInfo: '公式块',
40
+ tableInfo: '插入表格',
41
+ twoColumnsInfo: '两列布局',
42
+ threeColumnsInfo: '三列布局',
43
+ imageInfo: '图片',
44
+ iframeInfo: '嵌入其他网站',
45
+ youtubeInfo: '嵌入 YouTube 视频',
46
+ blockquoteInfo: '引用块',
47
+ newLineInfo: '按 / 输入命令,或',
48
+ placeholder: '在此输入内容...',
49
+ insertCode: '插入代码'
50
+ };
@@ -0,0 +1,51 @@
1
+ declare const _default: {
2
+ target: string[];
3
+ lang: string;
4
+ country: string;
5
+ text: string;
6
+ block: string;
7
+ loading: string;
8
+ delete: string;
9
+ close: string;
10
+ cancel: string;
11
+ insert: string;
12
+ noResult: string;
13
+ default: string;
14
+ auto: string;
15
+ title: string;
16
+ paragraph: string;
17
+ link: string;
18
+ alignLeft: string;
19
+ alignCenter: string;
20
+ alignRight: string;
21
+ alignJustify: string;
22
+ unorderedList: string;
23
+ numberList: string;
24
+ codeBlock: string;
25
+ mathBlock: string;
26
+ table: string;
27
+ twoColumns: string;
28
+ threeColumns: string;
29
+ image: string;
30
+ iframe: string;
31
+ youtube: string;
32
+ blockquote: string;
33
+ title1Info: string;
34
+ title2Info: string;
35
+ title3Info: string;
36
+ unorderedListInfo: string;
37
+ numberListInfo: string;
38
+ codeBlockInfo: string;
39
+ mathBlockInfo: string;
40
+ tableInfo: string;
41
+ twoColumnsInfo: string;
42
+ threeColumnsInfo: string;
43
+ imageInfo: string;
44
+ iframeInfo: string;
45
+ youtubeInfo: string;
46
+ blockquoteInfo: string;
47
+ newLineInfo: string;
48
+ placeholder: string;
49
+ insertCode: string;
50
+ };
51
+ export default _default;