reactjs-tiptap-editor 0.1.12 → 0.1.14

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/lib/index.d.ts CHANGED
@@ -9,6 +9,7 @@ import { CharacterCountOptions } from '@tiptap/extension-character-count';
9
9
  import { CodeBlockOptions as CodeBlockOptions_2 } from '@tiptap/extension-code-block';
10
10
  import { CodeOptions as CodeOptions_2 } from '@tiptap/extension-code';
11
11
  import { ColorOptions as ColorOptions_2 } from '@tiptap/extension-color';
12
+ import { default as default_2 } from 'mammoth';
12
13
  import { DropcursorOptions } from '@tiptap/extension-dropcursor';
13
14
  import { Editor } from '@tiptap/react';
14
15
  import { Editor as Editor_2 } from '@tiptap/core';
@@ -399,7 +400,6 @@ export declare const en: {
399
400
  'editor.table_of_content': string;
400
401
  'editor.draghandle.tooltip': string;
401
402
  'editor.copyToClipboard': string;
402
- 'editor.importWord.tooltip': string;
403
403
  'editor.slash': string;
404
404
  'editor.slash.empty': string;
405
405
  'editor.slash.format': string;
@@ -537,7 +537,11 @@ export declare const en: {
537
537
  'editor.katex.tooltip': string;
538
538
  'editor.exportPdf.tooltip': string;
539
539
  'editor.exportWord.tooltip': string;
540
- 'editor.importWrod.tooltip': string;
540
+ 'editor.importWord.tooltip': string;
541
+ 'editor.importWord.limitSize': string;
542
+ 'editor.importWord.converting': string;
543
+ 'editor.importWord.convertError': string;
544
+ 'editor.importWord.importError': string;
541
545
  'editor.textDirection.tooltip': string;
542
546
  'editor.textDirection.auto.tooltip': string;
543
547
  'editor.textDirection.ltr.tooltip': string;
@@ -648,7 +652,6 @@ export declare const hu_HU: {
648
652
  'editor.table_of_content': string;
649
653
  'editor.draghandle.tooltip': string;
650
654
  'editor.copyToClipboard': string;
651
- 'editor.importWord.tooltip': string;
652
655
  'editor.slash': string;
653
656
  'editor.slash.empty': string;
654
657
  'editor.slash.format': string;
@@ -786,7 +789,11 @@ export declare const hu_HU: {
786
789
  'editor.katex.tooltip': string;
787
790
  'editor.exportPdf.tooltip': string;
788
791
  'editor.exportWord.tooltip': string;
789
- 'editor.importWrod.tooltip': string;
792
+ 'editor.importWord.tooltip': string;
793
+ 'editor.importWord.limitSize': string;
794
+ 'editor.importWord.converting': string;
795
+ 'editor.importWord.convertError': string;
796
+ 'editor.importWord.importError': string;
790
797
  'editor.textDirection.tooltip': string;
791
798
  'editor.textDirection.auto.tooltip': string;
792
799
  'editor.textDirection.ltr.tooltip': string;
@@ -833,12 +840,17 @@ declare interface ImageGifOptions extends ImageOptions {
833
840
  export declare const ImportWord: Extension<ImportWordOptions, any>;
834
841
 
835
842
  declare interface ImportWordOptions extends GeneralOptions<ImportWordOptions> {
836
- /**
837
- * 将word 转换成html的接口
838
- */
843
+ /** Function for converting Word files to HTML */
839
844
  convert?: (file: File) => Promise<string>;
840
845
  /** Function for uploading images */
841
846
  upload?: (files: File[]) => Promise<unknown>;
847
+ /**
848
+ * File Size limit(10 MB)
849
+ *
850
+ * @default 1024 * 1024 * 10
851
+ */
852
+ limit?: number;
853
+ mammothOptions?: Parameters<typeof default_2['convertToHtml']>[1];
842
854
  }
843
855
 
844
856
  export declare const Indent: Extension<IndentOptions, any>;
@@ -949,7 +961,6 @@ export declare const pt_BR: {
949
961
  'editor.table_of_content': string;
950
962
  'editor.draghandle.tooltip': string;
951
963
  'editor.copyToClipboard': string;
952
- 'editor.importWord.tooltip': string;
953
964
  'editor.slash': string;
954
965
  'editor.slash.empty': string;
955
966
  'editor.slash.format': string;
@@ -1087,7 +1098,11 @@ export declare const pt_BR: {
1087
1098
  'editor.katex.tooltip': string;
1088
1099
  'editor.exportPdf.tooltip': string;
1089
1100
  'editor.exportWord.tooltip': string;
1090
- 'editor.importWrod.tooltip': string;
1101
+ 'editor.importWord.tooltip': string;
1102
+ 'editor.importWord.limitSize': string;
1103
+ 'editor.importWord.converting': string;
1104
+ 'editor.importWord.convertError': string;
1105
+ 'editor.importWord.importError': string;
1091
1106
  'editor.textDirection.tooltip': string;
1092
1107
  'editor.textDirection.auto.tooltip': string;
1093
1108
  'editor.textDirection.ltr.tooltip': string;
@@ -1148,6 +1163,8 @@ declare interface RichTextEditorProps {
1148
1163
  onChangeContent?: (val: any) => void;
1149
1164
  /** Bubble menu props */
1150
1165
  bubbleMenu?: BubbleMenuProps;
1166
+ /** Toolbar props */
1167
+ toolbar?: ToolbarProps;
1151
1168
  /** Use editor options */
1152
1169
  useEditorOptions?: UseEditorOptions;
1153
1170
  /** Use editor options */
@@ -1271,6 +1288,29 @@ declare interface TextBubbleOptions extends GeneralOptions<TextBubbleOptions> {
1271
1288
 
1272
1289
  export declare const TextDirection: Extension<any, any>;
1273
1290
 
1291
+ /**
1292
+ * Represents the ToolbarItemProps.
1293
+ */
1294
+ declare interface ToolbarItemProps {
1295
+ button: {
1296
+ component: React.ComponentType<any>;
1297
+ componentProps: Record<string, any>;
1298
+ };
1299
+ divider: boolean;
1300
+ spacer: boolean;
1301
+ type: string;
1302
+ name: string;
1303
+ }
1304
+
1305
+ declare interface ToolbarProps {
1306
+ render?: (props: ToolbarRenderProps, toolbarItems: ToolbarItemProps[], dom: JSX.Element[], containerDom: (innerContent: React.ReactNode) => React.ReactNode) => React.ReactNode;
1307
+ }
1308
+
1309
+ declare interface ToolbarRenderProps {
1310
+ editor: Editor;
1311
+ disabled: boolean;
1312
+ }
1313
+
1274
1314
  /**
1275
1315
  * Extension based on:
1276
1316
  * - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
@@ -1340,7 +1380,6 @@ export declare const vi: {
1340
1380
  'editor.table_of_content': string;
1341
1381
  'editor.draghandle.tooltip': string;
1342
1382
  'editor.copyToClipboard': string;
1343
- 'editor.importWord.tooltip': string;
1344
1383
  'editor.slash': string;
1345
1384
  'editor.slash.empty': string;
1346
1385
  'editor.slash.format': string;
@@ -1478,7 +1517,11 @@ export declare const vi: {
1478
1517
  'editor.katex.tooltip': string;
1479
1518
  'editor.exportPdf.tooltip': string;
1480
1519
  'editor.exportWord.tooltip': string;
1481
- 'editor.importWrod.tooltip': string;
1520
+ 'editor.importWord.tooltip': string;
1521
+ 'editor.importWord.limitSize': string;
1522
+ 'editor.importWord.converting': string;
1523
+ 'editor.importWord.convertError': string;
1524
+ 'editor.importWord.importError': string;
1482
1525
  'editor.textDirection.tooltip': string;
1483
1526
  'editor.textDirection.auto.tooltip': string;
1484
1527
  'editor.textDirection.ltr.tooltip': string;
@@ -1543,7 +1586,6 @@ export declare const zh_CN: {
1543
1586
  'editor.table_of_content': string;
1544
1587
  'editor.draghandle.tooltip': string;
1545
1588
  'editor.copyToClipboard': string;
1546
- 'editor.importWord.tooltip': string;
1547
1589
  'editor.slash': string;
1548
1590
  'editor.slash.empty': string;
1549
1591
  'editor.slash.format': string;
@@ -1681,7 +1723,11 @@ export declare const zh_CN: {
1681
1723
  'editor.katex.tooltip': string;
1682
1724
  'editor.exportPdf.tooltip': string;
1683
1725
  'editor.exportWord.tooltip': string;
1684
- 'editor.importWrod.tooltip': string;
1726
+ 'editor.importWord.tooltip': string;
1727
+ 'editor.importWord.limitSize': string;
1728
+ 'editor.importWord.converting': string;
1729
+ 'editor.importWord.convertError': string;
1730
+ 'editor.importWord.importError': string;
1685
1731
  'editor.textDirection.tooltip': string;
1686
1732
  'editor.textDirection.auto.tooltip': string;
1687
1733
  'editor.textDirection.ltr.tooltip': string;
@@ -1734,26 +1780,6 @@ declare module '@tiptap/core' {
1734
1780
  }
1735
1781
 
1736
1782
 
1737
- declare module '@tiptap/core' {
1738
- interface Commands<ReturnType> {
1739
- lineHeight: {
1740
- setLineHeight: (lineHeight: string) => ReturnType;
1741
- unsetLineHeight: () => ReturnType;
1742
- };
1743
- }
1744
- }
1745
-
1746
-
1747
- declare module '@tiptap/core' {
1748
- interface Commands<ReturnType> {
1749
- tableCellBackground: {
1750
- setTableCellBackground: (color: string) => ReturnType;
1751
- unsetTableCellBackground: () => ReturnType;
1752
- };
1753
- }
1754
- }
1755
-
1756
-
1757
1783
  declare module '@tiptap/core' {
1758
1784
  interface Commands<ReturnType> {
1759
1785
  indent: {
@@ -1770,6 +1796,16 @@ declare module '@tiptap/core' {
1770
1796
  }
1771
1797
 
1772
1798
 
1799
+ declare module '@tiptap/core' {
1800
+ interface Commands<ReturnType> {
1801
+ lineHeight: {
1802
+ setLineHeight: (lineHeight: string) => ReturnType;
1803
+ unsetLineHeight: () => ReturnType;
1804
+ };
1805
+ }
1806
+ }
1807
+
1808
+
1773
1809
  declare module '@tiptap/core' {
1774
1810
  interface Commands<ReturnType> {
1775
1811
  imageUpload: {
@@ -1790,6 +1826,30 @@ declare module '@tiptap/core' {
1790
1826
  }
1791
1827
 
1792
1828
 
1829
+ declare module '@tiptap/core' {
1830
+ interface Commands<ReturnType> {
1831
+ tableCellBackground: {
1832
+ setTableCellBackground: (color: string) => ReturnType;
1833
+ unsetTableCellBackground: () => ReturnType;
1834
+ };
1835
+ }
1836
+ }
1837
+
1838
+
1839
+ declare module '@tiptap/core' {
1840
+ interface Commands<ReturnType> {
1841
+ columns: {
1842
+ insertColumns: (attrs?: {
1843
+ cols: number;
1844
+ }) => ReturnType;
1845
+ addColBefore: () => ReturnType;
1846
+ addColAfter: () => ReturnType;
1847
+ deleteCol: () => ReturnType;
1848
+ };
1849
+ }
1850
+ }
1851
+
1852
+
1793
1853
  declare module '@tiptap/core' {
1794
1854
  interface Commands<ReturnType> {
1795
1855
  painter: {
@@ -1799,6 +1859,27 @@ declare module '@tiptap/core' {
1799
1859
  }
1800
1860
 
1801
1861
 
1862
+ declare module '@tiptap/core' {
1863
+ interface Commands<ReturnType> {
1864
+ emoji: {
1865
+ setEmoji: (emoji: {
1866
+ name: string;
1867
+ emoji: string;
1868
+ }) => ReturnType;
1869
+ };
1870
+ }
1871
+ }
1872
+
1873
+
1874
+ declare module '@tiptap/core' {
1875
+ interface Commands<ReturnType> {
1876
+ katex: {
1877
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1878
+ };
1879
+ }
1880
+ }
1881
+
1882
+
1802
1883
  declare module '@tiptap/core' {
1803
1884
  interface Commands<ReturnType> {
1804
1885
  search: {
@@ -1831,25 +1912,8 @@ declare module '@tiptap/core' {
1831
1912
 
1832
1913
  declare module '@tiptap/core' {
1833
1914
  interface Commands<ReturnType> {
1834
- columns: {
1835
- insertColumns: (attrs?: {
1836
- cols: number;
1837
- }) => ReturnType;
1838
- addColBefore: () => ReturnType;
1839
- addColAfter: () => ReturnType;
1840
- deleteCol: () => ReturnType;
1841
- };
1842
- }
1843
- }
1844
-
1845
-
1846
- declare module '@tiptap/core' {
1847
- interface Commands<ReturnType> {
1848
- emoji: {
1849
- setEmoji: (emoji: {
1850
- name: string;
1851
- emoji: string;
1852
- }) => ReturnType;
1915
+ exportWord: {
1916
+ exportToWord: () => ReturnType;
1853
1917
  };
1854
1918
  }
1855
1919
  }
@@ -1876,14 +1940,8 @@ declare module '@tiptap/core' {
1876
1940
 
1877
1941
  declare module '@tiptap/core' {
1878
1942
  interface Commands<ReturnType> {
1879
- twitter: {
1880
- /**
1881
- * Insert a tweet
1882
- * @param options The tweet attributes
1883
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1884
- */
1885
- setTweet: (options: SetTweetOptions) => ReturnType;
1886
- updateTweet: (options: SetTweetOptions) => ReturnType;
1943
+ attachment: {
1944
+ setAttachment: (attrs?: unknown) => ReturnType;
1887
1945
  };
1888
1946
  }
1889
1947
  }
@@ -1921,26 +1979,14 @@ declare module '@tiptap/core' {
1921
1979
 
1922
1980
  declare module '@tiptap/core' {
1923
1981
  interface Commands<ReturnType> {
1924
- attachment: {
1925
- setAttachment: (attrs?: unknown) => ReturnType;
1926
- };
1927
- }
1928
- }
1929
-
1930
-
1931
- declare module '@tiptap/core' {
1932
- interface Commands<ReturnType> {
1933
- exportWord: {
1934
- exportToWord: () => ReturnType;
1935
- };
1936
- }
1937
- }
1938
-
1939
-
1940
- declare module '@tiptap/core' {
1941
- interface Commands<ReturnType> {
1942
- katex: {
1943
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1982
+ twitter: {
1983
+ /**
1984
+ * Insert a tweet
1985
+ * @param options The tweet attributes
1986
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1987
+ */
1988
+ setTweet: (options: SetTweetOptions) => ReturnType;
1989
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1944
1990
  };
1945
1991
  }
1946
1992
  }
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { P as p, k as x, h as C, B, e as S, f as h, C as g, a as k, c as E, t as I, v as R, E as H, G as M, y as T, A as b, F as A, b as L, s as y, H as z, d as F, j as v, i as w, w as K, q as O, Q as P, z as U, n as W, I as _, K as j, o as q, L as D, N as G, W as N, M as V, u as J, O as Q, x as X, p as Y, S as Z, l as $, r as aa, D as sa, g as ea, T as ta, J as oa, X as ra, U as ia, V as na, R as la } from "./utils-BwnMHOHQ.js";
2
- import { m as ua, n as ca, k as ma, p as fa, v as pa, z as xa } from "./locales-0_7hd40-.js";
1
+ import { P as p, k as x, h as C, B, e as S, f as h, C as g, a as k, c as E, t as I, v as R, E as H, G as M, y as T, A as b, F as A, b as L, s as y, H as z, d as F, j as v, i as w, w as K, q as O, Q as P, z as U, n as W, I as _, K as j, o as q, L as D, N as G, W as N, M as V, u as J, O as Q, x as X, p as Y, S as Z, l as $, r as aa, D as sa, g as ea, T as ta, J as oa, X as ra, U as ia, V as na, R as la } from "./utils-DvW-fR8u.js";
2
+ import { m as ua, n as ca, k as ma, p as fa, v as pa, z as xa } from "./locales--osbCzs-.js";
3
3
  import { useRef as l, useState as t, useEffect as d } from "react";
4
- import { B as Ba } from "./tiptap-BSVYcz58.js";
4
+ import { B as Ba } from "./tiptap-CibBmg3k.js";
5
5
  function c() {
6
6
  var s;
7
7
  const a = l({ editor: null }), [o, r] = t(!1), [i, n] = t(null);
@@ -1,9 +1,9 @@
1
1
  var p = Object.defineProperty;
2
2
  var s = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
3
  var a = (e, t, o) => s(e, typeof t != "symbol" ? t + "" : t, o);
4
- import { useMemo as g, useEffect as m } from "react";
5
- import { createSignal as u, useSignal as c } from "reactjs-signal";
6
- import { m as h } from "./utils-BwnMHOHQ.js";
4
+ import { useMemo as m, useEffect as g } from "react";
5
+ import { A as u, g as c } from "./vendor-CDx3V-R7.js";
6
+ import { m as h } from "./utils-DvW-fR8u.js";
7
7
  const b = {
8
8
  "editor.remove": "Remove",
9
9
  "editor.copy": "Copy",
@@ -19,7 +19,6 @@ const b = {
19
19
  "editor.table_of_content": "Table of Content",
20
20
  "editor.draghandle.tooltip": "Modify",
21
21
  "editor.copyToClipboard": "CopyToClipboard",
22
- "editor.importWord.tooltip": "Import Word",
23
22
  "editor.slash": "Press '/' for commands",
24
23
  "editor.slash.empty": "No Result",
25
24
  "editor.slash.format": "Format",
@@ -157,7 +156,11 @@ const b = {
157
156
  "editor.katex.tooltip": "Math Formula",
158
157
  "editor.exportPdf.tooltip": "Export PDF",
159
158
  "editor.exportWord.tooltip": "Export Word",
160
- "editor.importWrod.tooltip": "Import Word",
159
+ "editor.importWord.tooltip": "Import Word",
160
+ "editor.importWord.limitSize": "File size cannot exceed",
161
+ "editor.importWord.converting": "Converting Word document, please wait...",
162
+ "editor.importWord.convertError": "Error parsing Word document",
163
+ "editor.importWord.importError": "Error importing Word document",
161
164
  "editor.textDirection.tooltip": "Text Direction",
162
165
  "editor.textDirection.auto.tooltip": "Auto",
163
166
  "editor.textDirection.ltr.tooltip": "Left to Right",
@@ -186,7 +189,6 @@ const b = {
186
189
  "editor.table_of_content": "Tabela de conteúdos",
187
190
  "editor.draghandle.tooltip": "Modificar",
188
191
  "editor.copyToClipboard": "Copiar para a área de transferência",
189
- "editor.importWord.tooltip": "Importar Word",
190
192
  "editor.slash": "Pressione '/' para comandos",
191
193
  "editor.slash.empty": "Nenhum resultado",
192
194
  "editor.slash.format": "Formato",
@@ -324,7 +326,11 @@ const b = {
324
326
  "editor.katex.tooltip": "Fórmula matemática",
325
327
  "editor.exportPdf.tooltip": "Exportar PDF",
326
328
  "editor.exportWord.tooltip": "Exportar Word",
327
- "editor.importWrod.tooltip": "Importar Word",
329
+ "editor.importWord.tooltip": "Importar Word",
330
+ "editor.importWord.limitSize": "O tamanho do arquivo não pode exceder",
331
+ "editor.importWord.converting": "Convertendo documento do Word, aguarde...",
332
+ "editor.importWord.convertError": "Erro ao analisar documento do Word",
333
+ "editor.importWord.importError": "Erro ao importar documento do Word",
328
334
  "editor.textDirection.tooltip": "Direção do texto",
329
335
  "editor.textDirection.auto.tooltip": "Automático",
330
336
  "editor.textDirection.ltr.tooltip": "Esquerda para Direita",
@@ -353,7 +359,6 @@ const b = {
353
359
  "editor.table_of_content": "Mục lục",
354
360
  "editor.draghandle.tooltip": "Sửa đổi",
355
361
  "editor.copyToClipboard": "CopyToClipboard",
356
- "editor.importWord.tooltip": "Nhập Word",
357
362
  "editor.slash": "Nhấn '/' để biết lệnh",
358
363
  "editor.slash.empty": "Không có kết quả",
359
364
  "editor.slash.format": "Định dạng",
@@ -491,7 +496,11 @@ const b = {
491
496
  "editor.katex.tooltip": "Công thức toán học",
492
497
  "editor.exportPdf.tooltip": "Xuất PDF",
493
498
  "editor.exportWord.tooltip": "Xuất Word",
494
- "editor.importWrod.tooltip": "Nhập Word",
499
+ "editor.importWord.tooltip": "Nhập Word",
500
+ "editor.importWord.limitSize": "Kích thước tệp không được vượt quá",
501
+ "editor.importWord.converting": "Đang chuyển đổi tài liệu Word, vui lòng đợi...",
502
+ "editor.importWord.convertError": "Lỗi khi phân tích tài liệu Word",
503
+ "editor.importWord.importError": "Lỗi khi nhập tài liệu Word",
495
504
  "editor.textDirection.tooltip": "Hướng văn bản",
496
505
  "editor.textDirection.auto.tooltip": "Tự động",
497
506
  "editor.textDirection.ltr.tooltip": "Trái sang Phải",
@@ -520,7 +529,6 @@ const b = {
520
529
  "editor.table_of_content": "目录",
521
530
  "editor.draghandle.tooltip": "修改",
522
531
  "editor.copyToClipboard": "复制到剪贴板",
523
- "editor.importWord.tooltip": "导入 Word",
524
532
  "editor.slash": "按 '/' 使用命令",
525
533
  "editor.slash.empty": "无结果",
526
534
  "editor.slash.format": "格式",
@@ -658,7 +666,11 @@ const b = {
658
666
  "editor.katex.tooltip": "数学公式",
659
667
  "editor.exportPdf.tooltip": "导出 PDF",
660
668
  "editor.exportWord.tooltip": "导出 Word",
661
- "editor.importWrod.tooltip": "导入 Word",
669
+ "editor.importWord.tooltip": "导入 Word",
670
+ "editor.importWord.limitSize": "文件大小不能超过",
671
+ "editor.importWord.converting": "正在转换 Word 文档,请稍后...",
672
+ "editor.importWord.convertError": "解析 Word 文档出错",
673
+ "editor.importWord.importError": "导入 Word 文档出错",
662
674
  "editor.textDirection.tooltip": "文本方向",
663
675
  "editor.textDirection.auto.tooltip": "自动",
664
676
  "editor.textDirection.ltr.tooltip": "从左到右",
@@ -672,7 +684,7 @@ const b = {
672
684
  "editor.twitter.tooltip": "Twitter",
673
685
  "editor.tooltip.flipX": "水平翻转",
674
686
  "editor.tooltip.flipY": "垂直翻转"
675
- }, x = _, A = {
687
+ }, v = _, x = {
676
688
  "editor.remove": "Eltávolítás",
677
689
  "editor.copy": "Másolás",
678
690
  "editor.words": "SZAVAK",
@@ -687,7 +699,6 @@ const b = {
687
699
  "editor.table_of_content": "Tartalomjegyzék",
688
700
  "editor.draghandle.tooltip": "Módosítás",
689
701
  "editor.copyToClipboard": "Másolás vágólapra",
690
- "editor.importWord.tooltip": "Word importálása",
691
702
  "editor.slash": "Nyomja meg a '/' gombot a parancsokhoz",
692
703
  "editor.slash.empty": "Nincs találat",
693
704
  "editor.slash.format": "Formátum",
@@ -825,7 +836,11 @@ const b = {
825
836
  "editor.katex.tooltip": "Matematikai formula",
826
837
  "editor.exportPdf.tooltip": "PDF exportálása",
827
838
  "editor.exportWord.tooltip": "Word exportálása",
828
- "editor.importWrod.tooltip": "Word importálása",
839
+ "editor.importWord.tooltip": "Word importálása",
840
+ "editor.importWord.limitSize": "A fájl mérete nem haladhatja meg",
841
+ "editor.importWord.converting": "Word dokumentum konvertálása, kérjük, várjon...",
842
+ "editor.importWord.convertError": "Hiba a Word-dokumentum elemzésekor",
843
+ "editor.importWord.importError": "Hiba a Word dokumentum importálásakor",
829
844
  "editor.textDirection.tooltip": "Szövegirány",
830
845
  "editor.textDirection.auto.tooltip": "Automatikus",
831
846
  "editor.textDirection.ltr.tooltip": "Balról jobbra",
@@ -839,7 +854,7 @@ const b = {
839
854
  "editor.twitter.tooltip": "Twitter",
840
855
  "editor.tooltip.flipX": "Vízszintes tükrözés",
841
856
  "editor.tooltip.flipY": "Függőleges tükrözés"
842
- }, z = A, v = "en", y = 200, I = y - 80, U = 20, N = 1e5, P = 16, M = 10, j = 10, W = 2, H = [
857
+ }, A = x, z = "en", y = 200, I = y - 80, W = 20, U = 1e5, j = 16, N = 10, P = 10, M = 2, H = [
843
858
  "#000000",
844
859
  "#262626",
845
860
  "#595959",
@@ -967,16 +982,16 @@ const V = ["100%", "115%", "150%", "200%", "250%", "300%"], $ = "1", Y = [
967
982
  "highlight",
968
983
  "textAlign"
969
984
  ], i = {
970
- lang: v,
985
+ lang: z,
971
986
  message: {
972
987
  en: f,
973
- hu_HU: z,
988
+ hu_HU: A,
974
989
  vi: T,
975
- zh_CN: x,
990
+ zh_CN: v,
976
991
  pt_BR: F
977
992
  }
978
993
  };
979
- class S {
994
+ class E {
980
995
  constructor() {
981
996
  a(this, "emitter");
982
997
  this.emitter = h();
@@ -1029,17 +1044,17 @@ class S {
1029
1044
  buildLocalesHandler(t) {
1030
1045
  t || (t = this.lang);
1031
1046
  const o = this.loadLangMessage(t);
1032
- return function(l) {
1033
- return o[l] || l;
1047
+ return function(r) {
1048
+ return o[r] || r;
1034
1049
  };
1035
1050
  }
1036
1051
  }
1037
- const r = new S(), n = u(i.lang);
1052
+ const l = new E(), n = c(i.lang);
1038
1053
  function J() {
1039
- const [e, t] = c(n), o = g(() => r.buildLocalesHandler(e), [e]);
1040
- return m(() => {
1041
- const d = r.registerWatchLang((l) => {
1042
- t(l);
1054
+ const [e, t] = u(n), o = m(() => l.buildLocalesHandler(e), [e]);
1055
+ return g(() => {
1056
+ const d = l.registerWatchLang((r) => {
1057
+ t(r);
1043
1058
  });
1044
1059
  return () => {
1045
1060
  d.unsubscribe();
@@ -1050,8 +1065,8 @@ function J() {
1050
1065
  };
1051
1066
  }
1052
1067
  const Q = {
1053
- t: (e) => r.buildLocalesHandler(n.get())(e)
1054
- }, Z = r;
1068
+ t: (e) => l.buildLocalesHandler(n.get())(e)
1069
+ }, Z = l;
1055
1070
  export {
1056
1071
  Y as B,
1057
1072
  H as C,
@@ -1059,24 +1074,24 @@ export {
1059
1074
  I as E,
1060
1075
  D as I,
1061
1076
  O as M,
1062
- j as T,
1077
+ P as T,
1063
1078
  L as V,
1064
1079
  q as a,
1065
1080
  G as b,
1066
1081
  X as c,
1067
1082
  $ as d,
1068
1083
  V as e,
1069
- N as f,
1070
- P as g,
1071
- U as h,
1072
- M as i,
1073
- W as j,
1084
+ U as f,
1085
+ j as g,
1086
+ W as h,
1087
+ N as i,
1088
+ M as j,
1074
1089
  Z as k,
1075
1090
  Q as l,
1076
1091
  f as m,
1077
- z as n,
1092
+ A as n,
1078
1093
  F as p,
1079
1094
  J as u,
1080
1095
  T as v,
1081
- x as z
1096
+ v as z
1082
1097
  };