@ckeditor/ckeditor5-export-word 42.0.2-alpha.2 → 43.0.0-alpha.0
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/CHANGELOG.md +1 -1
- package/build/export-word.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/dist/exportword.d.ts +9 -6
- package/dist/index.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/utils/common-translations.d.ts +13 -0
- package/dist/utils.d.ts +5 -3
- package/lang/translations/sr-latn.po +4 -4
- package/package.json +5 -4
- package/src/exportword.d.ts +9 -6
- package/src/exportword.js +1 -1
- package/src/exportwordcommand.js +1 -1
- package/src/exportwordui.js +1 -1
- package/src/index.js +1 -1
- package/src/utils/common-translations.d.ts +9 -0
- package/src/utils/common-translations.js +23 -0
- package/src/utils.d.ts +5 -3
- package/src/utils.js +1 -1
package/dist/translations/ur.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ur':{'dictionary':{'Export\x20to\x20Word':'ورڈ\x20دستاویز\x20برآمد','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'ورڈ\x20دستاویز\x20بناننے\x20میں\x20نقص\x20واقع\x20ہوا۔','Word\x20document\x20export\x20started':'','Word\x20document\x20export\x20failed':'','Word\x20document\x20export\x20successful':'','Exporting\x20Word\x20document':''},'getPluralForm':
|
|
23
|
+
export default{'ur':{'dictionary':{'Export\x20to\x20Word':'ورڈ\x20دستاویز\x20برآمد','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'ورڈ\x20دستاویز\x20بناننے\x20میں\x20نقص\x20واقع\x20ہوا۔','Word\x20document\x20export\x20started':'','Word\x20document\x20export\x20failed':'','Word\x20document\x20export\x20successful':'','Exporting\x20Word\x20document':''},'getPluralForm':_0x5e7f79=>0x1!=_0x5e7f79}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4b5972=>{const {ur:{dictionary:_0x294d7a,getPluralForm:_0x56d51d}}={'ur':{'dictionary':{'Export\x20to\x20Word':'ورڈ\x20دستاویز\x20برآمد','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'ورڈ\x20دستاویز\x20بناننے\x20میں\x20نقص\x20واقع\x20ہوا۔','Word\x20document\x20export\x20started':'','Word\x20document\x20export\x20failed':'','Word\x20document\x20export\x20successful':'','Exporting\x20Word\x20document':''},'getPluralForm':_0x10b461=>0x1!=_0x10b461}};_0x4b5972['ur']||={'dictionary':{},'getPluralForm':null},_0x4b5972['ur']['dictionary']=Object['assign'](_0x4b5972['ur']['dictionary'],_0x294d7a),_0x4b5972['ur']['getPluralForm']=_0x56d51d;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/vi.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'vi':{'dictionary':{'Export\x20to\x20Word':'Xuất\x20ra\x20định\x20dạng\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20tạo\x20tệp\x20Word.','Word\x20document\x20export\x20started':'Đã\x20bắt\x20đầu\x20xuất\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20failed':'Không\x20xuất\x20được\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20successful':'Đã\x20xuất\x20tài\x20liệu\x20Word\x20thành\x20công','Exporting\x20Word\x20document':'Đang\x20xuất\x20tài\x20liệu\x20Word'},'getPluralForm':
|
|
23
|
+
export default{'vi':{'dictionary':{'Export\x20to\x20Word':'Xuất\x20ra\x20định\x20dạng\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20tạo\x20tệp\x20Word.','Word\x20document\x20export\x20started':'Đã\x20bắt\x20đầu\x20xuất\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20failed':'Không\x20xuất\x20được\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20successful':'Đã\x20xuất\x20tài\x20liệu\x20Word\x20thành\x20công','Exporting\x20Word\x20document':'Đang\x20xuất\x20tài\x20liệu\x20Word'},'getPluralForm':_0x59243b=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x2b821a=>{const {vi:{dictionary:_0x1176bd,getPluralForm:_0x11cb9f}}={'vi':{'dictionary':{'Export\x20to\x20Word':'Xuất\x20ra\x20định\x20dạng\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'Đã\x20xảy\x20ra\x20lỗi\x20khi\x20tạo\x20tệp\x20Word.','Word\x20document\x20export\x20started':'Đã\x20bắt\x20đầu\x20xuất\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20failed':'Không\x20xuất\x20được\x20tài\x20liệu\x20Word','Word\x20document\x20export\x20successful':'Đã\x20xuất\x20tài\x20liệu\x20Word\x20thành\x20công','Exporting\x20Word\x20document':'Đang\x20xuất\x20tài\x20liệu\x20Word'},'getPluralForm':_0x249bef=>0x0}};_0x2b821a['vi']||={'dictionary':{},'getPluralForm':null},_0x2b821a['vi']['dictionary']=Object['assign'](_0x2b821a['vi']['dictionary'],_0x1176bd),_0x2b821a['vi']['getPluralForm']=_0x11cb9f;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'zh-cn':{'dictionary':{'Export\x20to\x20Word':'导出Word文档','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'生成Word文档时发生了异常。','Word\x20document\x20export\x20started':'Word\x20文档导出开始','Word\x20document\x20export\x20failed':'Word\x20文档导出失败','Word\x20document\x20export\x20successful':'Word\x20文档导出成功','Exporting\x20Word\x20document':'正在导出\x20Word\x20文档'},'getPluralForm':
|
|
23
|
+
export default{'zh-cn':{'dictionary':{'Export\x20to\x20Word':'导出Word文档','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'生成Word文档时发生了异常。','Word\x20document\x20export\x20started':'Word\x20文档导出开始','Word\x20document\x20export\x20failed':'Word\x20文档导出失败','Word\x20document\x20export\x20successful':'Word\x20文档导出成功','Exporting\x20Word\x20document':'正在导出\x20Word\x20文档'},'getPluralForm':_0x192626=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5df6d3=>{const {'zh-cn':{dictionary:_0x17c729,getPluralForm:_0x30ff16}}={'zh-cn':{'dictionary':{'Export\x20to\x20Word':'导出Word文档','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'生成Word文档时发生了异常。','Word\x20document\x20export\x20started':'Word\x20文档导出开始','Word\x20document\x20export\x20failed':'Word\x20文档导出失败','Word\x20document\x20export\x20successful':'Word\x20文档导出成功','Exporting\x20Word\x20document':'正在导出\x20Word\x20文档'},'getPluralForm':_0x5a4804=>0x0}};_0x5df6d3['zh-cn']||={'dictionary':{},'getPluralForm':null},_0x5df6d3['zh-cn']['dictionary']=Object['assign'](_0x5df6d3['zh-cn']['dictionary'],_0x17c729),_0x5df6d3['zh-cn']['getPluralForm']=_0x30ff16;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/zh.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':
|
|
23
|
+
export default{'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':_0x3b821c=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x1cdcf1=>{const {zh:{dictionary:_0x44e43f,getPluralForm:_0x52ea22}}={'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':_0x5c244e=>0x0}};_0x1cdcf1['zh']||={'dictionary':{},'getPluralForm':null},_0x1cdcf1['zh']['dictionary']=Object['assign'](_0x1cdcf1['zh']['dictionary'],_0x44e43f),_0x1cdcf1['zh']['getPluralForm']=_0x52ea22;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @module export-word/utils/common-translations
|
|
11
|
+
*/
|
|
12
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
13
|
+
export declare function getTranslation(locale: Locale, id: string): string;
|
package/dist/utils.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import type { Collection } from 'ckeditor5/src/utils.js';
|
|
11
|
-
import type { ExportWordConverterOptions, ExportWordConverterCommentsOption, ExportWordConverterSuggestionsOption, ExportWordConverterCommentsThreadOptionsV2, ExportWordConverterOptionsV2, ExportWordConverterSuggestionsOptionsV2 } from './exportword.js';
|
|
11
|
+
import type { ExportWordConverterOptions, ExportWordConverterInternalOptions, ExportWordConverterCommentsOption, ExportWordConverterSuggestionsOption, ExportWordConverterCommentsThreadOptionsV2, ExportWordConverterOptionsV2, ExportWordConverterInternalOptionsV2, ExportWordConverterSuggestionsOptionsV2 } from './exportword.js';
|
|
12
12
|
import type { CommentThread } from '@ckeditor/ckeditor5-comments';
|
|
13
13
|
import type { SuggestionJSON } from '@ckeditor/ckeditor5-track-changes';
|
|
14
14
|
import type { User } from '@ckeditor/ckeditor5-collaboration-core';
|
|
@@ -23,8 +23,9 @@ export declare function getStyles(stylesheets?: Array<string>): Promise<string>;
|
|
|
23
23
|
* comments, suggestions and the browser's timezone for the "Export to Word" converter.
|
|
24
24
|
*
|
|
25
25
|
* @param editor An editor instance.
|
|
26
|
+
* @param converterOptionsFromConfig Converter options passed through `editor.config.exportWord.converterOptions`.
|
|
26
27
|
*/
|
|
27
|
-
export declare function getConverterOptions(editor: Editor):
|
|
28
|
+
export declare function getConverterOptions(editor: Editor, converterOptionsFromConfig?: ExportWordConverterOptions): ExportWordConverterInternalOptions;
|
|
28
29
|
/**
|
|
29
30
|
* A helper function for getting a comments object for the converter options.
|
|
30
31
|
*
|
|
@@ -43,8 +44,9 @@ export declare function getSuggestions(suggestions: Array<SuggestionJSON>, users
|
|
|
43
44
|
* comments, suggestions and the browser's timezone for the "Export to Word" converter for V2 API.
|
|
44
45
|
*
|
|
45
46
|
* @param editor An editor instance.
|
|
47
|
+
* @param converterOptionsFromConfig Converter options passed through `editor.config.exportWord.converterOptions`.
|
|
46
48
|
*/
|
|
47
|
-
export declare function getConverterOptionsV2(editor: Editor):
|
|
49
|
+
export declare function getConverterOptionsV2(editor: Editor, converterOptionsFromConfig?: ExportWordConverterOptionsV2): ExportWordConverterInternalOptionsV2;
|
|
48
50
|
/**
|
|
49
51
|
* A helper function for getting a comments object for the converter options in V2 API.
|
|
50
52
|
*
|
|
@@ -27,16 +27,16 @@ msgstr "Došlo je do greške pri generisanju Word datoteke."
|
|
|
27
27
|
|
|
28
28
|
msgctxt "Aria status message indicating start of word document export. Example: 'Word document export started'."
|
|
29
29
|
msgid "Word document export started"
|
|
30
|
-
msgstr ""
|
|
30
|
+
msgstr "Počeo je izvoz Vord dokumenta"
|
|
31
31
|
|
|
32
32
|
msgctxt "Aria status message indicating failed Word document export. Example: 'Word document export failed'."
|
|
33
33
|
msgid "Word document export failed"
|
|
34
|
-
msgstr ""
|
|
34
|
+
msgstr "Izvoz Vord dokumenta nije uspeo"
|
|
35
35
|
|
|
36
36
|
msgctxt "Aria status message indicating successful Word document export. Example: 'Word document export successful'."
|
|
37
37
|
msgid "Word document export successful"
|
|
38
|
-
msgstr ""
|
|
38
|
+
msgstr "Izvoz Vord dokumenta je uspeo"
|
|
39
39
|
|
|
40
40
|
msgctxt "Aria label set on Export to Word button while exporting the Word file."
|
|
41
41
|
msgid "Exporting Word document"
|
|
42
|
-
msgstr ""
|
|
42
|
+
msgstr "Izvoz Vord dokumenta"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-word",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "43.0.0-alpha.0",
|
|
4
4
|
"description": "Export to Word feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -30,9 +30,10 @@
|
|
|
30
30
|
"type": "module",
|
|
31
31
|
"main": "src/index.js",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ckeditor/ckeditor5-core": "
|
|
34
|
-
"@ckeditor/ckeditor5-
|
|
35
|
-
"ckeditor5": "
|
|
33
|
+
"@ckeditor/ckeditor5-core": "43.0.0-alpha.0",
|
|
34
|
+
"@ckeditor/ckeditor5-utils": "43.0.0-alpha.0",
|
|
35
|
+
"@ckeditor/ckeditor5-ui": "43.0.0-alpha.0",
|
|
36
|
+
"ckeditor5": "43.0.0-alpha.0"
|
|
36
37
|
},
|
|
37
38
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
38
39
|
"author": "CKSource (https://cksource.com/)",
|
package/src/exportword.d.ts
CHANGED
|
@@ -151,7 +151,6 @@ export interface ExportWordConfig {
|
|
|
151
151
|
* orientation: 'portrait',
|
|
152
152
|
* auto_pagination: true,
|
|
153
153
|
* base_url: undefined,
|
|
154
|
-
* timezone: 'UTC'
|
|
155
154
|
* }`
|
|
156
155
|
*/
|
|
157
156
|
converterOptions?: ExportWordConverterOptions | ExportWordConverterOptionsV2;
|
|
@@ -213,7 +212,6 @@ export type ExportWordConverterOptions = {
|
|
|
213
212
|
orientation?: ExportWordConverterOrientationOption;
|
|
214
213
|
auto_pagination?: boolean;
|
|
215
214
|
base_url?: string;
|
|
216
|
-
timezone?: string;
|
|
217
215
|
};
|
|
218
216
|
export type ExportWordConverterFormatOption = 'Letter' | 'Legal' | 'Tabloid' | 'Statement' | 'Executive' | 'A3' | 'A4' | 'A5' | 'A6' | 'B4' | 'B5' | string & Record<never, never>;
|
|
219
217
|
export type ExportWordConverterOrientationOption = 'portrait' | 'landscape' | string & Record<never, never>;
|
|
@@ -238,17 +236,17 @@ export type ExportWordConverterSuggestionsOption = {
|
|
|
238
236
|
};
|
|
239
237
|
export type ExportWordConverterOptionsV2 = {
|
|
240
238
|
document?: ExportWordConverterDocumentOptionsV2;
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
collaboration_features?: ExportWordConverterCollaborationFeaturesOptionsV2;
|
|
239
|
+
headers?: ExportWordConverterHeaderFooterOptionsV2;
|
|
240
|
+
footers?: ExportWordConverterHeaderFooterOptionsV2;
|
|
244
241
|
extra_http_headers?: ExportWordConverterExtraHttpHeaders;
|
|
245
|
-
timezone?: string;
|
|
246
242
|
base_url?: string;
|
|
243
|
+
auto_pagination?: boolean;
|
|
247
244
|
};
|
|
248
245
|
export type ExportWordConverterDocumentOptionsV2 = {
|
|
249
246
|
margins?: ExportWordConverterMarginsOptionsV2;
|
|
250
247
|
size?: ExportWordConverterFormatOptionsV2;
|
|
251
248
|
orientation?: ExportWordConverterOrientationOptionsV2;
|
|
249
|
+
language?: string;
|
|
252
250
|
};
|
|
253
251
|
export type ExportWordConverterMarginsOptionsV2 = {
|
|
254
252
|
top?: string;
|
|
@@ -313,3 +311,8 @@ export type ExportWordConverterSuggestionsOptionsV2 = Array<{
|
|
|
313
311
|
author: string;
|
|
314
312
|
created_at: Date | null;
|
|
315
313
|
}>;
|
|
314
|
+
export type ExportWordConverterMergeFieldsOptionsV2 = {
|
|
315
|
+
prefix: string;
|
|
316
|
+
suffix: string;
|
|
317
|
+
data?: Record<string, string>;
|
|
318
|
+
};
|
package/src/exportword.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x4b43(_0x1cd618,_0x239470){const _0x3d8371=_0x3d83();return _0x4b43=function(_0x4b43ee,_0x30ff39){_0x4b43ee=_0x4b43ee-0x1e3;let _0x381a25=_0x3d8371[_0x4b43ee];return _0x381a25;},_0x4b43(_0x1cd618,_0x239470);}const _0x13dfad=_0x4b43;(function(_0x2771fe,_0x1b81a1){const _0x14b9bc=_0x4b43,_0x44086b=_0x2771fe();while(!![]){try{const _0x2ab53a=-parseInt(_0x14b9bc(0x1fb))/0x1*(parseInt(_0x14b9bc(0x1fa))/0x2)+parseInt(_0x14b9bc(0x1ed))/0x3+-parseInt(_0x14b9bc(0x1f6))/0x4*(-parseInt(_0x14b9bc(0x1fd))/0x5)+-parseInt(_0x14b9bc(0x1e5))/0x6+-parseInt(_0x14b9bc(0x1f5))/0x7*(parseInt(_0x14b9bc(0x1eb))/0x8)+parseInt(_0x14b9bc(0x1f7))/0x9+parseInt(_0x14b9bc(0x1ef))/0xa;if(_0x2ab53a===_0x1b81a1)break;else _0x44086b['push'](_0x44086b['shift']());}catch(_0x16daf9){_0x44086b['push'](_0x44086b['shift']());}}}(_0x3d83,0x569de));import{Plugin as _0x4b0d3d}from'ckeditor5/src/core.js';import{Notification as _0x1b8013}from'ckeditor5/src/ui.js';function _0x3d83(){const _0x40697a=['77thFdjX','tokenUrl','75xgrIcr','editor','exportWord','3512226nSrMmG','pluginName','init','then','token','_token','4607992KOEEHG','CloudServices','373428jGkECG','plugins','17324690VDxMok','add','requires','config','commands','ExportWord','7HmUFHM','28652kvzTUz','1891701bIWnaO','get','registerTokenUrl','17102FXrWda'];_0x3d83=function(){return _0x40697a;};return _0x3d83();}import _0x35d644 from'./exportwordcommand.js';import _0x569a5a from'./exportwordui.js';export default class s extends _0x4b0d3d{static get[_0x13dfad(0x1e6)](){const _0x4730c0=_0x13dfad;return _0x4730c0(0x1f4);}static get[_0x13dfad(0x1f1)](){const _0x50e998=_0x13dfad;return[_0x50e998(0x1ec),_0x1b8013,_0x569a5a];}[_0x13dfad(0x1e7)](){const _0x591f08=_0x13dfad,_0x142f68=this[_0x591f08(0x1e3)],_0x200c95=_0x142f68[_0x591f08(0x1f2)][_0x591f08(0x1f8)](_0x591f08(0x1e4))||{};_0x142f68[_0x591f08(0x1f3)][_0x591f08(0x1f0)](_0x591f08(0x1e4),new _0x35d644(_0x142f68));const _0x5ee6d0=_0x142f68[_0x591f08(0x1ee)][_0x591f08(0x1f8)](_0x591f08(0x1ec));!0x1===_0x200c95[_0x591f08(0x1fc)]?this[_0x591f08(0x1ea)]=null:_0x200c95[_0x591f08(0x1fc)]?_0x5ee6d0[_0x591f08(0x1f9)](_0x200c95[_0x591f08(0x1fc)])[_0x591f08(0x1e8)](_0xe9268=>{const _0x39b097=_0x591f08;this[_0x39b097(0x1ea)]=_0xe9268;}):this[_0x591f08(0x1ea)]=_0x5ee6d0[_0x591f08(0x1e9)];}}
|
package/src/exportwordcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
const _0xd7f109=_0x316e;(function(_0x480cae,_0x59efa2){const _0x111c6c=_0x316e,_0x4bb1fa=_0x480cae();while(!![]){try{const _0x271436=parseInt(_0x111c6c(0x1f1))/0x1*(parseInt(_0x111c6c(0x1e3))/0x2)+-parseInt(_0x111c6c(0x1ed))/0x3+parseInt(_0x111c6c(0x1cb))/0x4+parseInt(_0x111c6c(0x1ec))/0x5*(parseInt(_0x111c6c(0x20a))/0x6)+-parseInt(_0x111c6c(0x1f4))/0x7*(-parseInt(_0x111c6c(0x1fb))/0x8)+parseInt(_0x111c6c(0x1dd))/0x9*(-parseInt(_0x111c6c(0x1e0))/0xa)+parseInt(_0x111c6c(0x1fe))/0xb*(parseInt(_0x111c6c(0x1d2))/0xc);if(_0x271436===_0x59efa2)break;else _0x4bb1fa['push'](_0x4bb1fa['shift']());}catch(_0x5d0c37){_0x4bb1fa['push'](_0x4bb1fa['shift']());}}}(_0x5404,0x2c359));import{Command as _0x49a82b}from'ckeditor5/src/core.js';import{logWarning as _0x1aa5dc}from'ckeditor5/src/utils.js';function _0x316e(_0x5a1a18,_0x4f3070){const _0x540443=_0x5404();return _0x316e=function(_0x316edc,_0x36257c){_0x316edc=_0x316edc-0x1bf;let _0x5af23a=_0x540443[_0x316edc];return _0x5af23a;},_0x316e(_0x5a1a18,_0x4f3070);}import{getStyles as _0x377c64,getConverterOptions as _0x467ea7,getConverterOptionsV2 as _0x105447}from'./utils.js';import{getTranslation as _0x3d1d7e}from'./utils/common-translations.js';const h=[_0xd7f109(0x1d1),_0xd7f109(0x1c0),_0xd7f109(0x1e7),_0xd7f109(0x1d3),_0xd7f109(0x1ff),_0xd7f109(0x1df),_0xd7f109(0x210),_0xd7f109(0x1fc),_0xd7f109(0x205),_0xd7f109(0x1ee)];export default class e extends _0x49a82b{constructor(_0xa87abe){const _0x2243c6=_0xd7f109;super(_0xa87abe),this[_0x2243c6(0x1e6)](_0x2243c6(0x1c2),!0x1),this[_0x2243c6(0x1fd)]=!0x1;}[_0xd7f109(0x1e9)](){const _0x2ab380=_0xd7f109;this[_0x2ab380(0x204)]=!this[_0x2ab380(0x1c2)],this[_0x2ab380(0x1cf)]=this[_0x2ab380(0x1c2)]?_0x2ab380(0x1bf):void 0x0;}[_0xd7f109(0x1dc)](_0x4ef25f={}){const _0x14b30f=_0xd7f109,_0x3eb94c=this[_0x14b30f(0x1e8)],_0x2b381d=_0x4ef25f[_0x14b30f(0x1eb)]||0x2,_0x5eef4a=0x1===_0x2b381d,_0x25064e=_0x4ef25f[_0x14b30f(0x1d5)]||(_0x5eef4a?_0x14b30f(0x1cd):_0x14b30f(0x1ca)),_0x516489=_0x4ef25f[_0x14b30f(0x1d7)]||{},_0x9ea04e=_0x3eb94c[_0x14b30f(0x1f7)][_0x14b30f(0x1c7)](_0x14b30f(0x20d)),_0x345ff7=_0x4ef25f[_0x14b30f(0x1de)]||_0x9ea04e[_0x14b30f(0x201)],_0x4758dc=!0x0===_0x516489[_0x14b30f(0x208)],_0xc05be4=_0x4ef25f[_0x14b30f(0x1e2)]||(_0x2d7a12=>_0x2d7a12[_0x14b30f(0x1c8)][_0x14b30f(0x1c7)]({'pagination':_0x4758dc}));return 0x2===_0x2b381d&&function(_0x1057a5){for(const _0x1877a3 of h)if(void 0x0!==_0x1057a5[_0x1877a3])return!0x0;return!0x1;}(_0x516489)&&_0x1aa5dc(_0x14b30f(0x1f6)),this[_0x14b30f(0x1c2)]=!0x0,this[_0x14b30f(0x1e9)](),_0x377c64(_0x4ef25f[_0x14b30f(0x1c1)]||[_0x14b30f(0x209)])[_0x14b30f(0x1cc)](async _0xe1605a=>{const _0x5f4caa=_0x14b30f;_0x3eb94c['ui'][_0x5f4caa(0x1c6)][_0x5f4caa(0x1e4)](_0x3d1d7e(_0x3eb94c[_0x5f4caa(0x1c5)],_0x5f4caa(0x200)));const _0x43c2d1=await _0xc05be4(_0x3eb94c),_0x419f4f={'html':_0x5f4caa(0x207)+_0x3eb94c[_0x5f4caa(0x1c5)][_0x5f4caa(0x1d0)]+'\x22>'+_0x43c2d1+_0x5f4caa(0x1f2),'css':_0xe1605a,[_0x5eef4a?_0x5f4caa(0x1ce):_0x5f4caa(0x1c4)]:{..._0x516489,..._0x5eef4a?_0x467ea7(_0x3eb94c,_0x516489):_0x105447(_0x3eb94c,_0x516489)}},_0x14cfb8={'method':_0x5f4caa(0x20c),'headers':{'Content-Type':_0x5f4caa(0x1fa),'Accept':_0x5f4caa(0x211),..._0x345ff7?{'Authorization':_0x345ff7[_0x5f4caa(0x1cf)]}:null},'body':JSON[_0x5f4caa(0x1d4)](_0x419f4f)};return window[_0x5f4caa(0x20f)](_0x25064e,_0x14cfb8)[_0x5f4caa(0x1cc)](_0x1d4f20=>{const _0x4dda83=_0x5f4caa;if(0xc8!==_0x1d4f20[_0x4dda83(0x1ea)])throw _0x1d4f20;return _0x1d4f20[_0x4dda83(0x206)]();})[_0x5f4caa(0x1cc)](_0x330a17=>{const _0x2935bc=_0x5f4caa;_0x3eb94c['ui'][_0x2935bc(0x1c6)][_0x2935bc(0x1e4)](_0x3d1d7e(_0x3eb94c[_0x2935bc(0x1c5)],_0x2935bc(0x1c9)));const _0x25028e=_0x2935bc(0x20e)==typeof _0x4ef25f[_0x2935bc(0x1d6)]?_0x4ef25f[_0x2935bc(0x1d6)]():_0x4ef25f[_0x2935bc(0x1d6)];this[_0x2935bc(0x1c3)](_0x330a17,_0x25028e||_0x2935bc(0x1f5));});})[_0x14b30f(0x202)](_0x16ce61=>{const _0x3848b0=_0x14b30f,_0x56e092=_0x3eb94c[_0x3848b0(0x1f7)][_0x3848b0(0x1c7)](_0x3848b0(0x1e1));throw _0x3eb94c['ui'][_0x3848b0(0x1c6)][_0x3848b0(0x1e4)](_0x3d1d7e(_0x3eb94c[_0x3848b0(0x1c5)],_0x3848b0(0x1f9)),{'politeness':_0x3848b0(0x20b)}),_0x56e092[_0x3848b0(0x1f3)](_0x3d1d7e(_0x3eb94c[_0x3848b0(0x1c5)],_0x3848b0(0x1e5))),_0x16ce61;})[_0x14b30f(0x1da)](()=>{const _0x186c55=_0x14b30f;this[_0x186c55(0x1c2)]=!0x1,this[_0x186c55(0x1e9)]();});}[_0xd7f109(0x1c3)](_0x220c75,_0x4e734d){const _0x4efc7e=_0xd7f109,_0x50d7b3=document[_0x4efc7e(0x1ef)]('a');_0x50d7b3[_0x4efc7e(0x1db)]=window[_0x4efc7e(0x1f0)][_0x4efc7e(0x203)](_0x220c75),_0x50d7b3[_0x4efc7e(0x1d8)]=_0x4e734d,_0x50d7b3[_0x4efc7e(0x1f8)](),_0x50d7b3[_0x4efc7e(0x1d9)]();}}function _0x5404(){const _0x5e7f69=['1021485inFyca','suggestions','createElement','URL','1rnUfzz','</div>','showWarning','368648yXFOIL','document.docx','export-word-v1-api-is-deprecated','plugins','click','Word\x20document\x20export\x20failed','application/json','8GwlQne','footer','affectsData','11UCwjcG','margin_left','Word\x20document\x20export\x20started','_token','catch','createObjectURL','isEnabled','comments','blob','<div\x20class=\x22ck-content\x22\x20dir=\x22','auto_pagination','EDITOR_STYLES','1375722poEDRA','assertive','POST','ExportWord','function','fetch','header','application/docx','pending','margin_top','stylesheets','isBusy','_downloadFile','config','locale','ariaLiveAnnouncer','get','data','Word\x20document\x20export\x20successful','https://docx-converter.cke-cs.com/v2/convert/html-docx','335720ESIDmD','then','https://docx-converter.cke-cs.com/v1/convert','options','value','contentLanguageDirection','orientation','2811396zyPTGT','margin_bottom','stringify','converterUrl','fileName','converterOptions','download','remove','finally','href','execute','9XedaUl','token','format','2741450AENiri','Notification','dataCallback','391114jOSrRm','announce','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.','set','margin_right','editor','refresh','status','version','5UHagVH'];_0x5404=function(){return _0x5e7f69;};return _0x5404();}
|
package/src/exportwordui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
const _0x234b1b=_0x355c;(function(_0x437ee8,_0x5a5da3){const _0x190dbb=_0x355c,_0xf2b69e=_0x437ee8();while(!![]){try{const _0x343a98=parseInt(_0x190dbb(0xe0))/0x1+parseInt(_0x190dbb(0xe6))/0x2*(-parseInt(_0x190dbb(0xe8))/0x3)+-parseInt(_0x190dbb(0xd3))/0x4+-parseInt(_0x190dbb(0xcf))/0x5+parseInt(_0x190dbb(0xd4))/0x6+parseInt(_0x190dbb(0xdd))/0x7*(parseInt(_0x190dbb(0xeb))/0x8)+parseInt(_0x190dbb(0xd2))/0x9*(parseInt(_0x190dbb(0xed))/0xa);if(_0x343a98===_0x5a5da3)break;else _0xf2b69e['push'](_0xf2b69e['shift']());}catch(_0x54a14e){_0xf2b69e['push'](_0xf2b69e['shift']());}}}(_0x10eb,0x35608));import{Plugin as _0x4fd1d3}from'ckeditor5/src/core.js';function _0x355c(_0x36bcb5,_0x3927ff){const _0x10ebf8=_0x10eb();return _0x355c=function(_0x355cad,_0xf18ae){_0x355cad=_0x355cad-0xce;let _0x17478a=_0x10ebf8[_0x355cad];return _0x17478a;},_0x355c(_0x36bcb5,_0x3927ff);}import{ButtonView as _0x3ada69,MenuBarMenuListItemButtonView as _0x3ff54d,SpinnerView as _0x9c77aa}from'ckeditor5/src/ui.js';import _0x59691d from'../theme/icons/exportword.svg';function _0x10eb(){const _0x224a71=['49iyghqr','execute','commands','256016NlWkBB','focus','config','editor','Exporting\x20Word\x20document','label','53594NPDAMw','bind','33AfIPig','isEnabled','pluginName','94152kVOKio','_createButton','3669410FIjCOZ','iconView','add','set','get','listenTo','isOn','editing','isBusy','576225CdgQZp','locale','exportWord','9SDPdjJ','439076gByJmM','198438HKPdda','init','componentFactory','ExportWordUI','Export\x20to\x20Word','menuBar:exportWord','view','children','isVisible'];_0x10eb=function(){return _0x224a71;};return _0x10eb();}import{getTranslation as _0x6be98e}from'./utils/common-translations.js';export default class i extends _0x4fd1d3{static get[_0x234b1b(0xea)](){const _0x3c3648=_0x234b1b;return _0x3c3648(0xd7);}[_0x234b1b(0xd5)](){const _0x535c59=_0x234b1b,_0x3270e3=this[_0x535c59(0xe3)];_0x3270e3['ui'][_0x535c59(0xd6)][_0x535c59(0xef)](_0x535c59(0xd1),()=>{const _0x44c284=_0x535c59,_0x22d7b3=_0x3270e3[_0x44c284(0xdf)][_0x44c284(0xf1)](_0x44c284(0xd1)),_0x5b406b=this[_0x44c284(0xec)](_0x3ada69);return _0x5b406b[_0x44c284(0xf0)]({'tooltip':!0x0}),_0x5b406b[_0x44c284(0xe7)](_0x44c284(0xf3))['to'](_0x22d7b3,_0x44c284(0xce)),_0x5b406b;}),_0x3270e3['ui'][_0x535c59(0xd6)][_0x535c59(0xef)](_0x535c59(0xd9),()=>this[_0x535c59(0xec)](_0x3ff54d));}[_0x234b1b(0xec)](_0x4a4938){const _0x4110c3=_0x234b1b,_0x56222c=this[_0x4110c3(0xe3)],_0x14623a=_0x56222c[_0x4110c3(0xe2)][_0x4110c3(0xf1)](_0x4110c3(0xd1))||{},_0x522430=_0x56222c[_0x4110c3(0xdf)][_0x4110c3(0xf1)](_0x4110c3(0xd1)),_0x4b00f9=new _0x4a4938(_0x56222c[_0x4110c3(0xd0)]),_0x46e23a=new _0x9c77aa();return _0x4b00f9[_0x4110c3(0xdb)][_0x4110c3(0xef)](_0x46e23a),_0x46e23a[_0x4110c3(0xe7)](_0x4110c3(0xdc))['to'](_0x522430,_0x4110c3(0xce)),_0x4b00f9[_0x4110c3(0xee)][_0x4110c3(0xe7)](_0x4110c3(0xdc))['to'](_0x522430,_0x4110c3(0xce),_0x20b6f3=>!_0x20b6f3),_0x4b00f9[_0x4110c3(0xf0)]({'icon':_0x59691d}),_0x4b00f9[_0x4110c3(0xe7)](_0x4110c3(0xe9))['to'](_0x522430,_0x4110c3(0xe9)),_0x4b00f9[_0x4110c3(0xe7)](_0x4110c3(0xe5))['to'](_0x522430,_0x4110c3(0xce),_0xed0343=>_0x6be98e(_0x56222c[_0x4110c3(0xd0)],_0xed0343?_0x4110c3(0xe4):_0x4110c3(0xd8))),this[_0x4110c3(0xf2)](_0x4b00f9,_0x4110c3(0xde),()=>{const _0x3542d0=_0x4110c3;_0x56222c[_0x3542d0(0xde)](_0x3542d0(0xd1),_0x14623a),_0x56222c[_0x3542d0(0xf4)][_0x3542d0(0xda)][_0x3542d0(0xe1)]();}),_0x4b00f9;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x590c1c,_0x5e8bbc){var _0xf994a3=_0x3701,_0x14fa09=_0x590c1c();while(!![]){try{var _0x55300f=parseInt(_0xf994a3(0xeb))/0x1+parseInt(_0xf994a3(0xee))/0x2+parseInt(_0xf994a3(0xed))/0x3*(-parseInt(_0xf994a3(0xf3))/0x4)+-parseInt(_0xf994a3(0xef))/0x5+-parseInt(_0xf994a3(0xf1))/0x6+parseInt(_0xf994a3(0xf2))/0x7*(-parseInt(_0xf994a3(0xf0))/0x8)+-parseInt(_0xf994a3(0xea))/0x9*(-parseInt(_0xf994a3(0xec))/0xa);if(_0x55300f===_0x5e8bbc)break;else _0x14fa09['push'](_0x14fa09['shift']());}catch(_0x25df41){_0x14fa09['push'](_0x14fa09['shift']());}}}(_0x5cb1,0x3c575));function _0x5cb1(){var _0x1cea13=['112imQpBf','4rCNoZP','9mwwMKz','202266KqGnCQ','6796310DLFRmi','964596mvQICn','887874bcePTq','1684205hnnKzM','54224JNmHdy','1871136tzpGIg'];_0x5cb1=function(){return _0x1cea13;};return _0x5cb1();}export{default as ExportWord}from'./exportword.js';function _0x3701(_0x484533,_0x18454e){var _0x5cb173=_0x5cb1();return _0x3701=function(_0x370135,_0x4f6616){_0x370135=_0x370135-0xea;var _0xc9037d=_0x5cb173[_0x370135];return _0xc9037d;},_0x3701(_0x484533,_0x18454e);}import'./augmentation.js';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module export-word/utils/common-translations
|
|
7
|
+
*/
|
|
8
|
+
import type { Locale } from 'ckeditor5/src/utils.js';
|
|
9
|
+
export declare function getTranslation(locale: Locale, id: string): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export function getTranslation(_0x2cf22b,_0x42332b){const t=_0x2cf22b['t'];switch(_0x42332b){case'Export\x20to\x20Word':return t('Export\x20to\x20Word');case'An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':return t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.');case'Word\x20document\x20export\x20started':return t('Word\x20document\x20export\x20started');case'Word\x20document\x20export\x20failed':return t('Word\x20document\x20export\x20failed');case'Word\x20document\x20export\x20successful':return t('Word\x20document\x20export\x20successful');case'Exporting\x20Word\x20document':return t('Exporting\x20Word\x20document');default:return _0x42332b;}}
|
package/src/utils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import type { Editor } from 'ckeditor5/src/core.js';
|
|
6
6
|
import type { Collection } from 'ckeditor5/src/utils.js';
|
|
7
|
-
import type { ExportWordConverterOptions, ExportWordConverterCommentsOption, ExportWordConverterSuggestionsOption, ExportWordConverterCommentsThreadOptionsV2, ExportWordConverterOptionsV2, ExportWordConverterSuggestionsOptionsV2 } from './exportword.js';
|
|
7
|
+
import type { ExportWordConverterOptions, ExportWordConverterInternalOptions, ExportWordConverterCommentsOption, ExportWordConverterSuggestionsOption, ExportWordConverterCommentsThreadOptionsV2, ExportWordConverterOptionsV2, ExportWordConverterInternalOptionsV2, ExportWordConverterSuggestionsOptionsV2 } from './exportword.js';
|
|
8
8
|
import type { CommentThread } from '@ckeditor/ckeditor5-comments';
|
|
9
9
|
import type { SuggestionJSON } from '@ckeditor/ckeditor5-track-changes';
|
|
10
10
|
import type { User } from '@ckeditor/ckeditor5-collaboration-core';
|
|
@@ -19,8 +19,9 @@ export declare function getStyles(stylesheets?: Array<string>): Promise<string>;
|
|
|
19
19
|
* comments, suggestions and the browser's timezone for the "Export to Word" converter.
|
|
20
20
|
*
|
|
21
21
|
* @param editor An editor instance.
|
|
22
|
+
* @param converterOptionsFromConfig Converter options passed through `editor.config.exportWord.converterOptions`.
|
|
22
23
|
*/
|
|
23
|
-
export declare function getConverterOptions(editor: Editor):
|
|
24
|
+
export declare function getConverterOptions(editor: Editor, converterOptionsFromConfig?: ExportWordConverterOptions): ExportWordConverterInternalOptions;
|
|
24
25
|
/**
|
|
25
26
|
* A helper function for getting a comments object for the converter options.
|
|
26
27
|
*
|
|
@@ -39,8 +40,9 @@ export declare function getSuggestions(suggestions: Array<SuggestionJSON>, users
|
|
|
39
40
|
* comments, suggestions and the browser's timezone for the "Export to Word" converter for V2 API.
|
|
40
41
|
*
|
|
41
42
|
* @param editor An editor instance.
|
|
43
|
+
* @param converterOptionsFromConfig Converter options passed through `editor.config.exportWord.converterOptions`.
|
|
42
44
|
*/
|
|
43
|
-
export declare function getConverterOptionsV2(editor: Editor):
|
|
45
|
+
export declare function getConverterOptionsV2(editor: Editor, converterOptionsFromConfig?: ExportWordConverterOptionsV2): ExportWordConverterInternalOptionsV2;
|
|
44
46
|
/**
|
|
45
47
|
* A helper function for getting a comments object for the converter options in V2 API.
|
|
46
48
|
*
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4bd7dd,_0x5481e0){const _0x35242b=_0x5b3a,_0x34bae4=_0x4bd7dd();while(!![]){try{const _0x3e34cc=parseInt(_0x35242b(0x20b))/0x1+-parseInt(_0x35242b(0x1ed))/0x2*(parseInt(_0x35242b(0x1e8))/0x3)+parseInt(_0x35242b(0x209))/0x4*(-parseInt(_0x35242b(0x1ef))/0x5)+-parseInt(_0x35242b(0x20a))/0x6+parseInt(_0x35242b(0x204))/0x7*(parseInt(_0x35242b(0x1ea))/0x8)+parseInt(_0x35242b(0x1fe))/0x9+parseInt(_0x35242b(0x21e))/0xa;if(_0x3e34cc===_0x5481e0)break;else _0x34bae4['push'](_0x34bae4['shift']());}catch(_0x50e988){_0x34bae4['push'](_0x34bae4['shift']());}}}(_0x8622,0x44714));function _0x8622(){const _0x5ccb36=['Users','MergeFields','suggestions','from','TrackChanges','length','isResolved','content','cssText','CommentsRepository','9735420rHorep','data','text','author','document','.ck-content','join','trim','authorName','comment_threads','collaboration_features','map','getDataSetValues','contentLanguage','previewMode','config','getLabel','plugins','DateTimeFormat','ownerNode','56946zNjanJ','then','104ptfVwH','timezone','push','28SPZdqP','getSuggestions','25975igQLSU','mergeFields','createdAt','merge_fields','keys','indexOf','styleSheets','users','language','The\x20editor\x20stylesheet\x20could\x20not\x20be\x20found\x20in\x20the\x20document.\x20Check\x20your\x20webpack\x20config\x20–\x20style-loader\x20should\x20use\x20data-cke=true\x20attribute\x20for\x20the\x20editor\x20stylesheet.','get','@external','hasAttribute','fetch','MergeFieldsEditing','1443150GOIAaI','comments','warn','resolvedOptions','getCommentThreads','name','3297qfFaoO','cssRules','EDITOR_STYLES','data-cke','$labels','212lIcfeB','2366358dnfQQF','75801DexPXL','has','$defaultValues','entries',':root','all','getDefaultValues','timeZone','locale'];_0x8622=function(){return _0x5ccb36;};return _0x8622();}export function getStyles(_0x3ee742){const _0x50aab5=_0x5b3a;if(!_0x3ee742)return new Promise(_0x337da5=>_0x337da5(''));const _0x4e2366=[];for(const _0x46d9d4 of _0x3ee742)_0x50aab5(0x206)!==_0x46d9d4?_0x4e2366[_0x50aab5(0x1ec)](window[_0x50aab5(0x1fc)](_0x46d9d4)[_0x50aab5(0x1e9)](_0x5584a6=>_0x5584a6[_0x50aab5(0x220)]())):_0x4e2366[_0x50aab5(0x1ec)](f());return Promise[_0x50aab5(0x210)](_0x4e2366)[_0x50aab5(0x1e9)](_0x2dbc39=>_0x2dbc39[_0x50aab5(0x224)]('\x20')[_0x50aab5(0x225)]());}function f(){const _0x1031ac=_0x5b3a,_0x24a66d=[],_0x2228ab=[];for(const _0xf5260 of Array[_0x1031ac(0x217)](document[_0x1031ac(0x1f5)])){if(_0xf5260[_0x1031ac(0x1e7)][_0x1031ac(0x1fb)](_0x1031ac(0x207))){for(const _0x3d2ab0 of Array[_0x1031ac(0x217)](_0xf5260[_0x1031ac(0x205)]))-0x1!==_0x3d2ab0[_0x1031ac(0x21c)][_0x1031ac(0x1f4)](_0x1031ac(0x223))?_0x24a66d[_0x1031ac(0x1ec)](_0x3d2ab0[_0x1031ac(0x21c)]):-0x1!==_0x3d2ab0[_0x1031ac(0x21c)][_0x1031ac(0x1f4)](_0x1031ac(0x20f))&&_0x2228ab[_0x1031ac(0x1ec)](_0x3d2ab0[_0x1031ac(0x21c)]);}}return _0x24a66d[_0x1031ac(0x219)]||console[_0x1031ac(0x200)](_0x1031ac(0x1f8)),[..._0x2228ab,..._0x24a66d][_0x1031ac(0x224)]('\x20')[_0x1031ac(0x225)]();}export function getConverterOptions(_0x3ee8b6,_0x1ff76b={}){const _0x43a3b1=_0x5b3a,_0x7b47c1=_0x3ee8b6[_0x43a3b1(0x1e5)][_0x43a3b1(0x20c)](_0x43a3b1(0x214)),_0x3dc457=_0x3ee8b6[_0x43a3b1(0x1e5)][_0x43a3b1(0x20c)](_0x43a3b1(0x21d)),_0x39ea34=_0x3ee8b6[_0x43a3b1(0x1e5)][_0x43a3b1(0x20c)](_0x43a3b1(0x218)),_0x10a333=_0x1ff76b;if(_0x7b47c1&&_0x3dc457){const _0x2d145f=getComments(_0x3ee8b6[_0x43a3b1(0x1e5)][_0x43a3b1(0x1f9)](_0x43a3b1(0x21d))[_0x43a3b1(0x202)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x43a3b1(0x1f3)](_0x2d145f)[_0x43a3b1(0x219)]&&(_0x10a333[_0x43a3b1(0x1ff)]=_0x2d145f);}if(_0x7b47c1&&_0x39ea34){const _0x28f7ba=_0x3ee8b6[_0x43a3b1(0x1e5)][_0x43a3b1(0x1f9)](_0x43a3b1(0x218)),_0x48657b=_0x3ee8b6[_0x43a3b1(0x1e5)][_0x43a3b1(0x1f9)](_0x43a3b1(0x214)),_0x2991c1=getSuggestions(_0x28f7ba[_0x43a3b1(0x1ee)]({'toJSON':!0x0}),_0x48657b[_0x43a3b1(0x1f6)]);Object[_0x43a3b1(0x1f3)](_0x2991c1)[_0x43a3b1(0x219)]&&(_0x10a333[_0x43a3b1(0x216)]=_0x2991c1);}return(_0x10a333[_0x43a3b1(0x216)]||_0x10a333[_0x43a3b1(0x1ff)])&&(_0x10a333[_0x43a3b1(0x1eb)]=new Intl[(_0x43a3b1(0x1e6))]()[_0x43a3b1(0x201)]()[_0x43a3b1(0x212)]),_0x10a333;}export function getComments(_0x33949d){const _0x45b700=_0x5b3a,_0xc6bc53={};if(!_0x33949d[_0x45b700(0x219)])return _0xc6bc53;for(const _0x8fbd36 of _0x33949d)_0x8fbd36[_0x45b700(0x1ff)][_0x45b700(0x1df)](_0x3244eb=>{const _0x167f69=_0x45b700;void 0x0===_0xc6bc53[_0x8fbd36['id']]&&(_0xc6bc53[_0x8fbd36['id']]=[]),_0xc6bc53[_0x8fbd36['id']][_0x167f69(0x1ec)]({'author':_0x3244eb[_0x167f69(0x221)][_0x167f69(0x203)],'content':_0x3244eb[_0x167f69(0x21b)],'created':_0x3244eb[_0x167f69(0x1f1)],'is_resolved':_0x8fbd36[_0x167f69(0x21a)]});});return _0xc6bc53;}export function getSuggestions(_0x233e34,_0xf18cbe){const _0x32850f=_0x5b3a,_0x5d197c={};if(!_0x233e34[_0x32850f(0x219)]||!_0xf18cbe[_0x32850f(0x219)])return _0x5d197c;for(const {id:_0x5ca332,createdAt:_0x207f67,authorId:_0x52edce,attributes:_0x44d87a}of _0x233e34){const _0x3a9271=_0x44d87a&&_0x44d87a[_0x32850f(0x1fa)],_0x190bf5=_0x3a9271?_0x3a9271[_0x32850f(0x1dc)]:_0xf18cbe[_0x32850f(0x1f9)](_0x52edce)[_0x32850f(0x203)];_0x5d197c[_0x5ca332]={'author':_0x190bf5,'created':_0x207f67};}return _0x5d197c;}export function getConverterOptionsV2(_0x5d2b02,_0x532011={}){const _0x4870ae=_0x5b3a,_0x1d1218=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x20c)](_0x4870ae(0x214)),_0x9394e5=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x20c)](_0x4870ae(0x21d)),_0x142697=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x20c)](_0x4870ae(0x218)),_0x6cf67c=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x20c)](_0x4870ae(0x215)),_0x5c7e87=_0x5d2b02[_0x4870ae(0x213)][_0x4870ae(0x1e1)],_0x2c6bb8=_0x532011,_0x257054={};if(_0x2c6bb8[_0x4870ae(0x222)]=_0x2c6bb8[_0x4870ae(0x222)]||{},_0x2c6bb8[_0x4870ae(0x222)][_0x4870ae(0x1f7)]=_0x2c6bb8[_0x4870ae(0x222)][_0x4870ae(0x1f7)]||_0x5c7e87,_0x1d1218&&_0x9394e5){const _0x4c6468=getCommentsV2(_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x1f9)](_0x4870ae(0x21d))[_0x4870ae(0x202)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));_0x4c6468[_0x4870ae(0x219)]&&(_0x257054[_0x4870ae(0x1dd)]=_0x4c6468);}if(_0x1d1218&&_0x142697){const _0x45bd5b=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x1f9)](_0x4870ae(0x218)),_0x513543=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x1f9)](_0x4870ae(0x214)),_0x386bff=getSuggestionsV2(_0x45bd5b[_0x4870ae(0x1ee)]({'toJSON':!0x0}),_0x513543[_0x4870ae(0x1f6)]);_0x386bff[_0x4870ae(0x219)]&&(_0x257054[_0x4870ae(0x216)]=_0x386bff);}if(_0x6cf67c){const _0x480601=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x1f9)](_0x4870ae(0x215)),_0x105392=_0x5d2b02[_0x4870ae(0x1e5)][_0x4870ae(0x1f9)](_0x4870ae(0x1fd)),_0x58a090=_0x105392[_0x4870ae(0x1e2)],{prefix:_0x1574c1,suffix:_0x58fecf}=_0x5d2b02[_0x4870ae(0x1e3)][_0x4870ae(0x1f9)](_0x4870ae(0x1f0));if(_0x2c6bb8[_0x4870ae(0x1f2)]={'prefix':_0x1574c1,'suffix':_0x58fecf},_0x4870ae(0x208)!==_0x58a090){_0x2c6bb8[_0x4870ae(0x1f2)][_0x4870ae(0x21f)]={};const _0x5a225c=_0x4870ae(0x20d)===_0x58a090?_0x480601[_0x4870ae(0x211)]():_0x480601[_0x4870ae(0x1e0)](_0x58a090,!0x0);for(const _0x3baf21 of Object[_0x4870ae(0x20e)](_0x5a225c)){const [_0x57d90b,_0x3c59ab]=_0x3baf21;_0x2c6bb8[_0x4870ae(0x1f2)][_0x4870ae(0x21f)][_0x57d90b]=null!==_0x3c59ab?_0x3c59ab:_0x105392[_0x4870ae(0x1e4)](_0x57d90b);}}}return(_0x257054[_0x4870ae(0x1dd)]||_0x257054[_0x4870ae(0x216)])&&(_0x2c6bb8[_0x4870ae(0x1eb)]=new Intl[(_0x4870ae(0x1e6))]()[_0x4870ae(0x201)]()[_0x4870ae(0x212)],_0x2c6bb8[_0x4870ae(0x1de)]=_0x257054),_0x2c6bb8;}function _0x5b3a(_0x32af3c,_0x1013d9){const _0x862267=_0x8622();return _0x5b3a=function(_0x5b3a23,_0x4f4c71){_0x5b3a23=_0x5b3a23-0x1dc;let _0x691690=_0x862267[_0x5b3a23];return _0x691690;},_0x5b3a(_0x32af3c,_0x1013d9);}export function getCommentsV2(_0x14d201){const _0x1889ce=_0x5b3a,_0x405c58=[];if(!_0x14d201[_0x1889ce(0x219)])return _0x405c58;for(const _0x5db6c8 of _0x14d201){const _0x59c3ba=_0x5db6c8[_0x1889ce(0x1ff)][_0x1889ce(0x1df)](_0x339fc6=>({'author':_0x339fc6[_0x1889ce(0x221)][_0x1889ce(0x203)],'content':_0x339fc6[_0x1889ce(0x21b)],'created_at':_0x339fc6[_0x1889ce(0x1f1)]}));_0x405c58[_0x1889ce(0x1ec)]({'thread_id':_0x5db6c8['id'],'is_resolved':_0x5db6c8[_0x1889ce(0x21a)],'comments':_0x59c3ba});}return _0x405c58;}export function getSuggestionsV2(_0x2e8346,_0x596985){const _0x662de0=_0x5b3a;return _0x2e8346[_0x662de0(0x219)]&&_0x596985[_0x662de0(0x219)]?_0x2e8346[_0x662de0(0x1df)](({id:_0x5818f7,createdAt:_0x206268,authorId:_0x57c1f8,attributes:_0x4d6ea3})=>{const _0x4189e8=_0x662de0,_0x107b0e=_0x4d6ea3&&_0x4d6ea3[_0x4189e8(0x1fa)];return{'id':_0x5818f7,'author':_0x107b0e?_0x107b0e[_0x4189e8(0x1dc)]:_0x596985[_0x4189e8(0x1f9)](_0x57c1f8)[_0x4189e8(0x203)],'created_at':_0x206268};}):[];}
|