@ckeditor/ckeditor5-track-changes 35.3.0 → 35.3.1
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/build/track-changes.js +1 -1
- package/package.json +4 -4
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.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/ckbox.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/documentlist.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/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/importword.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/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.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 +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d29=['\x22></span>','map','.ck-annotation__content-wrapper','source','ck-suggestion-wrapper','userView','ck-annotation__info-name','ck-suggestion-','innerText','ck-annotation','ck-annotation__content-wrapper','getExternalSuggestionNote','ck-comment__info-time','descriptionParts','description','isEnabled','ck-suggestion__actions','getUserViewNotificationText','ck-suggestion--accept','_createButton','push','extendTemplate','EXTERNAL_IMPORT_WORD_SUGGESTION','render','acceptButton','getTemplate','title','ck-suggestion__main','author','ck-suggestion__info','<p>','span','ck-annotation__user','fire','element','importWord','innerHTML','</span>','<span\x20class=\x22ck-suggestion-type\x22>','color','discardSuggestion','ck-annotation__actions','EXTERNAL_SUGGESTION','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','bind','EXTERNAL_AVATAR','isActive','commentThreadInputView','change:description','time','createElement','setTemplate','value','commentsListView','ck-annotation__info-time','_model','ck-suggestion--discard','_descriptionElement','_config','ck-suggestion__user','creator','ck-suggestion--disabled-comments','attributes','check','@external','discardButton','ck-comment__external','ck-suggestion__info-name','isExternal','name','querySelector','set','type','div','locale','authoredAt'];(function(_0x4a3e3c,_0x1d2943){const _0x51d406=function(_0xaa8cfa){while(--_0xaa8cfa){_0x4a3e3c['push'](_0x4a3e3c['shift']());}};_0x51d406(++_0x1d2943);}(_0x1d29,0x19c));const _0x51d4=function(_0x4a3e3c,_0x1d2943){_0x4a3e3c=_0x4a3e3c-0x0;let _0x51d406=_0x1d29[_0x4a3e3c];return _0x51d406;};import{getTranslation as _0xa64aba}from'../../utils/common-translations';import _0x743430 from'./basesuggestionthreadview';import{ButtonView as _0x5679c9}from'ckeditor5/src/ui';import{icons as _0x26acf0}from'ckeditor5/src/core';import{trimHtml as _0x451a03,UserView as _0x1e0422}from'ckeditor5-collaboration/src/collaboration-core';export default class Ut extends _0x743430{constructor(_0x31133d,_0x486225,_0xbc42e3,_0x8c8550){super(_0x31133d,_0x486225,_0xbc42e3,_0x8c8550),this[_0x51d4('0x27')](_0x51d4('0x28'),''),this[_0x51d4('0xc')](_0x51d4('0x28'))['to'](this,_0x51d4('0x39'),_0x481297=>_0x481297&&_0x481297[0x0]?_0x481297[0x0]['type']:''),this['bind'](_0x51d4('0x3a'))['to'](this,'descriptionParts',this,_0x51d4('0xe'),(_0x10248d,_0xad154b)=>{let _0x3e3554='';for(const _0x37977b of _0x10248d)_0x3e3554+=_0x51d4('0x4a')+ns(_0x37977b['content'],_0x37977b[_0x51d4('0x7')])+'</p>';return _0xad154b?_0x3e3554:_0x451a03(_0x3e3554,{'limit':0x8c});}),this['_descriptionElement']=null,this[_0x51d4('0x44')]=this[_0x51d4('0x3f')](_0xa64aba(_0x31133d,'Accept\x20suggestion'),_0x26acf0[_0x51d4('0x1f')],_0x51d4('0x3e'),'acceptSuggestion','sw'),this[_0x51d4('0x21')]=this[_0x51d4('0x3f')](_0xa64aba(_0x31133d,'Discard\x20suggestion'),_0x26acf0['cancel'],_0x51d4('0x18'),_0x51d4('0x8'),'sw'),this['userView']=new _0x1e0422(_0x31133d,this['_model']['author'],this[_0x51d4('0x3d')]()),this[_0x51d4('0x31')][_0x51d4('0x41')]({'attributes':{'class':[_0x51d4('0x1b'),_0x51d4('0x0')]}}),this[_0x51d4('0x13')](this['getTemplate']());}[_0x51d4('0x45')](){const _0x9e56f1=this['bindTemplate'],_0x10a380=[{'tag':_0x51d4('0x29'),'attributes':{'class':[_0x51d4('0x49'),'ck-annotation__info']},'children':[{'tag':_0x51d4('0x4b'),'children':[{'text':this[_0x51d4('0x31')][_0x51d4('0x25')]}],'attributes':{'class':[_0x51d4('0x23'),_0x51d4('0x32')]}},{'tag':_0x51d4('0x11'),'attributes':{'datetime':_0x9e56f1['to'](_0x51d4('0x2b')),'class':[_0x51d4('0x38'),_0x51d4('0x16')]},'children':[{'text':_0x9e56f1['to'](_0x51d4('0x2b'),_0x5ada74=>this[_0x51d4('0x1a')]['formatDateTime'](_0x5ada74))}]}]},{'tag':_0x51d4('0x29'),'attributes':{'class':[_0x51d4('0x3c'),_0x51d4('0x9')]},'children':[this[_0x51d4('0x44')],this[_0x51d4('0x21')]]},{'tag':'div','attributes':{'class':[_0x51d4('0x36')]}}];this['_model'][_0x51d4('0x24')]&&_0x10a380['push']({'tag':_0x51d4('0x29'),'attributes':{'class':[_0x51d4('0x22')]},'children':[{'text':this[_0x51d4('0x37')]()}]});const _0x3cb1fe={'tag':_0x51d4('0x29'),'attributes':{'class':[_0x51d4('0x30'),_0x9e56f1['if']('isActive','ck-suggestion-wrapper--active'),_0x9e56f1['to']('type',_0x31594c=>_0x51d4('0x33')+_0x31594c),this[_0x51d4('0x1a')]['disableComments']&&_0x51d4('0x1d')],'data-suggestion-id':this[_0x51d4('0x17')]['id'],'data-thread-id':this[_0x51d4('0x17')]['commentThread']['id'],'data-author-id':this[_0x51d4('0x17')][_0x51d4('0x48')]['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion',_0x51d4('0x35')]},'children':[this['userView'],{'tag':_0x51d4('0x29'),'attributes':{'class':[_0x51d4('0x47'),'ck-annotation__main']},'children':_0x10a380}]}]};return this[_0x51d4('0x15')]&&this[_0x51d4('0xf')]&&_0x3cb1fe['children'][_0x51d4('0x40')](this[_0x51d4('0x15')],this[_0x51d4('0xf')]),_0x3cb1fe;}[_0x51d4('0x43')](){super[_0x51d4('0x43')](),this[_0x51d4('0x19')]=this[_0x51d4('0x2')][_0x51d4('0x26')](_0x51d4('0x2e')),this['_descriptionElement'][_0x51d4('0x4')]=this[_0x51d4('0x3a')],this['on'](_0x51d4('0x10'),(_0x1748dc,_0x14b189,_0x10b4af)=>{this[_0x51d4('0x19')][_0x51d4('0x4')]=_0x10b4af;});}['_createButton'](_0x34c05a,_0x493eef,_0x280e25,_0x3fb464,_0x351935){const _0x324bae=new _0x5679c9(this[_0x51d4('0x2a')]);return _0x324bae['set']({'label':_0x34c05a,'icon':_0x493eef,'tooltip':!0x0,'tooltipPosition':_0x351935}),_0x324bae['extendTemplate']({'attributes':{'class':_0x280e25}}),_0x324bae['on']('execute',()=>{this[_0x51d4('0x1')](_0x3fb464,this['_model']['id']);}),_0x324bae['bind'](_0x51d4('0x3b'))['to'](this),_0x324bae;}[_0x51d4('0x37')](){return'importWord'===this['_model'][_0x51d4('0x1e')]['@external'][_0x51d4('0x2f')]?_0xa64aba(this[_0x51d4('0x2a')],_0x51d4('0x42')):_0xa64aba(this['locale'],_0x51d4('0xa'));}[_0x51d4('0x3d')](){return this[_0x51d4('0x17')][_0x51d4('0x24')]?_0x51d4('0x3')===this['_model'][_0x51d4('0x1e')][_0x51d4('0x20')][_0x51d4('0x2f')]?_0xa64aba(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator'][_0x51d4('0x25')]):_0xa64aba(this[_0x51d4('0x2a')],_0x51d4('0xd'),this[_0x51d4('0x17')][_0x51d4('0x1c')][_0x51d4('0x25')]):null;}}function ns(_0x44c097,_0x342615){let _0x4d2d07='';return _0x4d2d07+=_0x44c097['split']('*')[_0x51d4('0x2d')]((_0x1d733c,_0x17a96b)=>_0x17a96b%0x2!=0x0?_0x51d4('0x6')+os(_0x1d733c)+_0x51d4('0x5'):os(_0x1d733c))['join'](''),_0x342615&&(_0x4d2d07+=_0x51d4('0xb')+_0x342615[_0x51d4('0x14')]+'\x22\x20title=\x22'+_0x342615[_0x51d4('0x46')]+_0x51d4('0x2c')),_0x4d2d07;}function os(_0x35954b){const _0x46d944=document[_0x51d4('0x12')](_0x51d4('0x4b'));return _0x46d944[_0x51d4('0x34')]=_0x35954b,_0x46d944[_0x51d4('0x4')];}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export function getTranslation(
|
|
23
|
+
export function getTranslation(_0x15a943,_0x2e0514,_0x274efe){const t=_0x15a943['t'];switch(_0x2e0514){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',_0x274efe);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x274efe);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x274efe);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x274efe);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x274efe);case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x274efe);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x274efe);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x274efe);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x274efe);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x274efe);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x274efe);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x274efe);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x274efe);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x274efe);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x274efe);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x274efe);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x274efe);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x274efe);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x274efe);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x274efe);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'},_0x274efe);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x274efe);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x274efe);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x274efe);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x274efe);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x274efe);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'},_0x274efe);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x274efe);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x274efe);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x274efe);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x274efe);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'},_0x274efe);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x274efe);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'},_0x274efe);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'},_0x274efe);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x274efe);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'},_0x274efe);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x274efe);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'},_0x274efe);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x274efe);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x274efe);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x274efe);}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b42=['add','isCollapsed','isObject','isTouching','content','isInContent','splice','schema','color','replace','execute','push','type','from','next','createPositionBefore','end','deletion','getRanges','\x20[color\x20','createPositionAfter','createPositionAt','getMarkers','createRange','sort','join','getRange','map'];(function(_0xedb91,_0x2b42b0){const _0x498e76=function(_0x395df9){while(--_0x395df9){_0xedb91['push'](_0xedb91['shift']());}};_0x498e76(++_0x2b42b0);}(_0x2b42,0x67));const _0x498e=function(_0xedb91,_0x2b42b0){_0xedb91=_0xedb91-0x0;let _0x498e76=_0x2b42[_0xedb91];return _0x498e76;};export function normalizeDescription(_0x5c7b3d){return Array['isArray'](_0x5c7b3d)||(_0x5c7b3d=[_0x5c7b3d]),_0x5c7b3d[_0x498e('0x8')](_0x4c33de=>{const _0x36429c=_0x4c33de[_0x498e('0xd')][_0x498e('0x12')](/\*/g,''),_0x5156d2=_0x4c33de[_0x498e('0x11')]?_0x498e('0x0')+_0x4c33de[_0x498e('0x11')]['value']+']':'';return'['+_0x4c33de['type']+']\x20'+_0x36429c+_0x5156d2;})[_0x498e('0x6')](';\x20');}export function sortSuggestions(_0xdbf282){return _0xdbf282[_0x498e('0x5')]((_0x593074,_0x403deb)=>_0x498e('0x1a')==_0x593074[_0x498e('0x15')]&&'deletion'!=_0x403deb[_0x498e('0x15')]?-0x1:_0x498e('0x1a')!=_0x593074[_0x498e('0x15')]&&_0x498e('0x1a')==_0x403deb[_0x498e('0x15')]?0x1:0x0);}export function getSelectedSuggestions(_0xd1340,_0x42a899){const _0x4383db=Array[_0x498e('0x16')](_0xd1340[_0x498e('0x1b')]()),_0x4bb608=new Set();for(const _0x5db911 of _0x42a899)if(_0x5db911['isInContent'])for(const _0x14479f of _0x4383db)for(const _0x4448ad of _0x5db911[_0x498e('0x3')]()){const _0xf51577=_0x4448ad[_0x498e('0x7')]();(_0x14479f['isIntersecting'](_0xf51577)||_0xd1340[_0x498e('0xa')]&&!_0x5db911['isMultiRange']&&_0x5db911[_0x498e('0x17')]&&_0xf51577[_0x498e('0x19')][_0x498e('0xc')](_0x14479f['start']))&&_0x4bb608[_0x498e('0x9')](_0x5db911);}return _0x4bb608;}export function getRangesOfBlockGroups(_0x30bb0b,_0x3fa3d5){let _0x4c815c,_0x1e139d=0x0;const _0x3b3500=[],_0x1e509c=_0x3fa3d5[_0x498e('0x10')];for(;_0x1e139d<_0x30bb0b['length'];){const _0x1ca4d1=_0x30bb0b[_0x1e139d],_0x448e18=_0x30bb0b[_0x1e139d+0x1];_0x4c815c||(_0x4c815c=_0x3fa3d5[_0x498e('0x18')](_0x1ca4d1)),no(_0x3fa3d5,_0x1ca4d1,_0x448e18)||(_0x3b3500[_0x498e('0x14')](_0x3fa3d5[_0x498e('0x4')](_0x4c815c,_0x1e509c[_0x498e('0xb')](_0x1ca4d1)?_0x3fa3d5[_0x498e('0x1')](_0x1ca4d1):_0x3fa3d5[_0x498e('0x2')](_0x1ca4d1,'end'))),_0x4c815c=null),_0x1e139d++;}return _0x3b3500;}function no(_0x59b828,_0x308adc,_0x3f1fb8){if(!_0x3f1fb8)return!0x1;const _0x3ace75=_0x59b828['createPositionAfter'](_0x308adc),_0x4c8d73=_0x59b828[_0x498e('0x18')](_0x3f1fb8);return _0x3ace75[_0x498e('0xc')](_0x4c8d73);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x14ebc2,_0x492b63,_0x2a64c0){for(;_0x2a64c0['length'];){const _0x39e3a1=_0x2a64c0[_0x498e('0xf')](0x0,0x64);_0x14ebc2['change'](()=>{for(const _0x1bebe3 of _0x39e3a1)_0x1bebe3[_0x498e('0xe')]&&_0x492b63[_0x498e('0x13')](_0x1bebe3['id']);});}}
|