@ckeditor/ckeditor5-track-changes 34.0.0 → 34.1.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/LICENSE.md +2 -2
- package/README.md +2 -2
- package/build/track-changes.js +2 -2
- package/build/translations/nl.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/lang/translations/nl.po +9 -9
- package/lang/translations/zh-cn.po +4 -4
- package/package.json +3 -3
- package/src/commands/acceptallsuggestionscommand.js +1 -1
- package/src/commands/acceptselectedsuggestionscommand.js +1 -1
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardallsuggestionscommand.js +1 -1
- package/src/commands/discardselectedsuggestionscommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +23 -0
- package/src/utils/getselectedsuggestions.js +1 -1
- package/src/utils/hashobject.js +1 -1
- package/src/utils/normalizedescription.js +1 -1
- package/src/utils/sortsuggestions.js +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2016 - 2022, 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(_0x450e30,_0xae372a,_0x1b60ec){const t=_0x450e30['t'];switch(_0xae372a){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x1b60ec);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1b60ec);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1b60ec);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1b60ec);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1b60ec);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1b60ec);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1b60ec);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1b60ec);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1b60ec);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1b60ec);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1b60ec);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1b60ec);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1b60ec);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1b60ec);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1b60ec);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1b60ec);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1b60ec);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x1b60ec);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1b60ec);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1b60ec);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1b60ec);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1b60ec);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1b60ec);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x1b60ec);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1b60ec);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1b60ec);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1b60ec);case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x1b60ec);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1b60ec);case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x1b60ec);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1b60ec);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1b60ec);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x1b60ec);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1b60ec);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x1b60ec);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1b60ec);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5239=['isMultiRange','next','getRange','isCollapsed','end','from','isIntersecting','start','getMarkers','isInContent','isTouching','add'];(function(_0x50802e,_0x5239c2){const _0x385f37=function(_0x356a14){while(--_0x356a14){_0x50802e['push'](_0x50802e['shift']());}};_0x385f37(++_0x5239c2);}(_0x5239,0x1b6));const _0x385f=function(_0x50802e,_0x5239c2){_0x50802e=_0x50802e-0x0;let _0x385f37=_0x5239[_0x50802e];return _0x385f37;};export default function jt(_0x38a219,_0x470555){const _0x53cc29=Array[_0x385f('0xb')](_0x38a219['getRanges']()),_0x42292e=new Set();for(const _0x47e721 of _0x470555)if(_0x47e721[_0x385f('0x3')])for(const _0x2df511 of _0x53cc29)for(const _0x4cad91 of _0x47e721[_0x385f('0x2')]()){const _0x257e6c=_0x4cad91[_0x385f('0x8')]();(_0x2df511[_0x385f('0x0')](_0x257e6c)||_0x38a219[_0x385f('0x9')]&&!_0x47e721[_0x385f('0x6')]&&_0x47e721[_0x385f('0x7')]&&_0x257e6c[_0x385f('0xa')][_0x385f('0x4')](_0x2df511[_0x385f('0x1')]))&&_0x42292e[_0x385f('0x5')](_0x47e721);}return _0x42292e;}
|
package/src/utils/hashobject.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c21=['sign','isArray','number','boolean','keys','object','charCodeAt'];(function(_0x1cd2bc,_0x2c213f){const _0x3a2d7b=function(_0x175396){while(--_0x175396){_0x1cd2bc['push'](_0x1cd2bc['shift']());}};_0x3a2d7b(++_0x2c213f);}(_0x2c21,0xdd));const _0x3a2d=function(_0x1cd2bc,_0x2c213f){_0x1cd2bc=_0x1cd2bc-0x0;let _0x3a2d7b=_0x2c21[_0x1cd2bc];return _0x3a2d7b;};export default function gt(_0x17e353){let _0x2ba588=0x0,_0x429d95=0x0;for(const _0x41ee34 of fe(_0x17e353))_0x2ba588=(_0x2ba588<<0x5)-_0x2ba588+_0x41ee34,_0x2ba588&=_0x2ba588,[_0x2ba588,_0x429d95]=[_0x429d95,_0x2ba588];return ce(_0x2ba588)+ce(_0x429d95);}function*ie(_0x53ff6e){_0x53ff6e?_0x3a2d('0x6')==typeof _0x53ff6e?yield 0x1:Array[_0x3a2d('0x4')](_0x53ff6e)?yield*function*(_0x5287d9){for(const _0x487144 of _0x5287d9)yield*ie(_0x487144);}(_0x53ff6e):_0x3a2d('0x1')==typeof _0x53ff6e?yield*fe(_0x53ff6e):'string'==typeof _0x53ff6e?yield*ye(_0x53ff6e):_0x3a2d('0x5')==typeof _0x53ff6e&&(yield _0x53ff6e):yield 0x0;}function*fe(_0x56abb3){if(yield de('{'),_0x56abb3){const _0x3aaf0c=Object[_0x3a2d('0x0')](_0x56abb3)['sort']();for(const _0x4fbe0c of _0x3aaf0c){yield*ye(_0x4fbe0c),yield de(':');const _0x5c306f=_0x56abb3[_0x4fbe0c];yield*ie(_0x5c306f);}}yield de('}');}function*ye(_0xdd2ebd){yield de('\x22');for(const _0x5a5c81 of _0xdd2ebd)yield de(_0x5a5c81);yield de('\x22');}function de(_0x5d2f56){return _0x5d2f56[_0x3a2d('0x2')](0x0);}function ce(_0x3c4dad){return(_0x3c4dad*=Math[_0x3a2d('0x3')](_0x3c4dad))['toString'](0x24);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe69e=['value','replace','\x20[color\x20','type','color'];(function(_0x3c868b,_0xe69e2d){const _0x21f3c3=function(_0x5a43cb){while(--_0x5a43cb){_0x3c868b['push'](_0x3c868b['shift']());}};_0x21f3c3(++_0xe69e2d);}(_0xe69e,0x162));const _0x21f3=function(_0x3c868b,_0xe69e2d){_0x3c868b=_0x3c868b-0x0;let _0x21f3c3=_0xe69e[_0x3c868b];return _0x21f3c3;};export function normalizeDescription(_0x57097){return Array['isArray'](_0x57097)||(_0x57097=[_0x57097]),_0x57097['map'](_0x27b846=>{const _0xc3cb6c=_0x27b846['content'][_0x21f3('0x2')](/\*/g,''),_0x606fde=_0x27b846['color']?_0x21f3('0x3')+_0x27b846[_0x21f3('0x0')][_0x21f3('0x1')]+']':'';return'['+_0x27b846[_0x21f3('0x4')]+']\x20'+_0xc3cb6c+_0x606fde;})['join'](';\x20');}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1215=['deletion','type'];(function(_0x1ca639,_0x1215b9){var _0x165a95=function(_0x2873b1){while(--_0x2873b1){_0x1ca639['push'](_0x1ca639['shift']());}};_0x165a95(++_0x1215b9);}(_0x1215,0xdc));var _0x165a=function(_0x1ca639,_0x1215b9){_0x1ca639=_0x1ca639-0x0;var _0x165a95=_0x1215[_0x1ca639];return _0x165a95;};export default function ts(_0x294b4b){return _0x294b4b['sort']((_0x21bb12,_0x44bbcc)=>'deletion'==_0x21bb12[_0x165a('0x1')]&&'deletion'!=_0x44bbcc[_0x165a('0x1')]?-0x1:_0x165a('0x0')!=_0x21bb12[_0x165a('0x1')]&&_0x165a('0x0')==_0x44bbcc['type']?0x1:0x0);}
|