@ckeditor/ckeditor5-track-changes 46.0.1-alpha.3 → 46.0.1-alpha.4
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.
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x92e59f=_0x5efd;(function(_0x1c7045,_0x5642b7){const _0x453a6e=_0x5efd,_0x196571=_0x1c7045();while(!![]){try{const _0x41de58=-parseInt(_0x453a6e(0x1c0))/0x1*(parseInt(_0x453a6e(0x1a6))/0x2)+-parseInt(_0x453a6e(0x1ac))/0x3*(parseInt(_0x453a6e(0x1a1))/0x4)+-parseInt(_0x453a6e(0x1b4))/0x5*(parseInt(_0x453a6e(0x1b8))/0x6)+-parseInt(_0x453a6e(0x1c7))/0x7*(parseInt(_0x453a6e(0x199))/0x8)+parseInt(_0x453a6e(0x1ca))/0x9*(parseInt(_0x453a6e(0x19c))/0xa)+parseInt(_0x453a6e(0x1c8))/0xb*(parseInt(_0x453a6e(0x1b7))/0xc)+-parseInt(_0x453a6e(0x1a7))/0xd*(-parseInt(_0x453a6e(0x1c9))/0xe);if(_0x41de58===_0x5642b7)break;else _0x196571['push'](_0x196571['shift']());}catch(_0x36d449){_0x196571['push'](_0x196571['shift']());}}}(_0x454d,0x648db));function _0x454d(){const _0x46d843=['suggestionView','canAccept','ck-rounded-corners','setTemplate','4781329OkTEfq','12067ivEYGV','14mtTTnZ','63QfhKKr','<p>','content','editorReady','push','editorDestroyed','set','descriptionParts','acceptButton','ck-suggestion-wrapper','canDiscard','getTemplate','8OxHoWk','commentsListView','listitem','15690szbFjP','description','disableComments','ariaLabel','div','452NfJHdX','commentThreadInputView','color','type','render','8522tcnVgV','25735385dSvfnR','author','</p>','ck-suggestion-wrapper--active','ck-suggestion-','8676jAMGFL','SuggestionView','add','ariaDescriptionView','bind','_model','isEnabled','commentThread','505zDESNo','focusables','delegate','2928TYWEkV','11982LDHYij','discardButton','formatDateTime','discardSuggestion','bindTemplate','_descriptionElement','_config','ck-suggestion--disabled-comments','149CYjUuw','isActive','acceptSuggestion'];_0x454d=function(){return _0x46d843;};return _0x454d();}import{BaseSuggestionThreadView as _0x116c15}from'./basesuggestionthreadview.js';import{trimHtml as _0x1c7d92}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x5efd(_0x3acd91,_0x3f8f26){const _0x454d8a=_0x454d();return _0x5efd=function(_0x5efd87,_0x2b4bbe){_0x5efd87=_0x5efd87-0x194;let _0x4d3acd=_0x454d8a[_0x5efd87];return _0x4d3acd;},_0x5efd(_0x3acd91,_0x3f8f26);}import{renderDescription as _0x1a2f4e}from'../../utils/utils.js';export class SuggestionThreadView extends _0x116c15{[_0x92e59f(0x1c3)];[_0x92e59f(0x1bd)];constructor(_0x485606,_0x8c26c9,_0xd8f313,_0x2adab7){const _0x5d7069=_0x92e59f;super(_0x485606,_0x8c26c9,_0xd8f313,_0x2adab7),this[_0x5d7069(0x1d0)](_0x5d7069(0x1a4),''),this[_0x5d7069(0x1b0)](_0x5d7069(0x1a4))['to'](this,_0x5d7069(0x194),_0x473c8f=>_0x473c8f&&_0x473c8f[0x0]?_0x473c8f[0x0][_0x5d7069(0x1a4)]:''),this[_0x5d7069(0x1b0)](_0x5d7069(0x19d))['to'](this,_0x5d7069(0x194),this,_0x5d7069(0x1c1),(_0x27d497,_0x5a4303)=>{const _0x216bca=_0x5d7069;let _0x37e949='';for(const _0x544c8c of _0x27d497)_0x37e949+=_0x216bca(0x1cb)+_0x1a2f4e(_0x544c8c[_0x216bca(0x1cc)],_0x544c8c[_0x216bca(0x1a3)])+_0x216bca(0x1a9);return _0x5a4303?_0x37e949:_0x1c7d92(_0x37e949,{'limit':0x8c});}),this[_0x5d7069(0x1bd)]=null,this[_0x5d7069(0x1c3)]=new _0x2adab7[(_0x5d7069(0x1ad))](_0x485606,_0x8c26c9,{'formatDateTime':_0x2adab7[_0x5d7069(0x1ba)]}),this[_0x5d7069(0x1c3)][_0x5d7069(0x1b0)](_0x5d7069(0x19d))['to'](this),this[_0x5d7069(0x1c3)][_0x5d7069(0x1b6)](_0x5d7069(0x1c2),_0x5d7069(0x1bb))['to'](this),this[_0x5d7069(0x1c3)][_0x5d7069(0x195)][_0x5d7069(0x1b0)](_0x5d7069(0x1b2))['to'](this,_0x5d7069(0x1c4)),this[_0x5d7069(0x1c3)][_0x5d7069(0x1b9)][_0x5d7069(0x1b0)](_0x5d7069(0x1b2))['to'](this,_0x5d7069(0x197)),this[_0x5d7069(0x1b5)][_0x5d7069(0x1ae)](this[_0x5d7069(0x1c3)]),this[_0x5d7069(0x19a)]&&this[_0x5d7069(0x1b5)][_0x5d7069(0x1ae)](this[_0x5d7069(0x19a)]),this[_0x5d7069(0x1a2)]&&this[_0x5d7069(0x1b5)][_0x5d7069(0x1ae)](this[_0x5d7069(0x1a2)]),this[_0x5d7069(0x1c6)](this[_0x5d7069(0x198)]());}[_0x92e59f(0x198)](){const _0x32eb77=_0x92e59f,_0x32465c=this[_0x32eb77(0x1bc)],_0x33a55c=[this[_0x32eb77(0x1c3)]];return this[_0x32eb77(0x19a)]&&_0x33a55c[_0x32eb77(0x1ce)](this[_0x32eb77(0x19a)]),this[_0x32eb77(0x1a2)]&&_0x33a55c[_0x32eb77(0x1ce)](this[_0x32eb77(0x1a2)]),_0x33a55c[_0x32eb77(0x1ce)](this[_0x32eb77(0x1af)]),{'tag':_0x32eb77(0x1a0),'attributes':{'class':['ck',_0x32eb77(0x1c5),_0x32eb77(0x196),_0x32465c['if'](_0x32eb77(0x1c1),_0x32eb77(0x1aa)),_0x32465c['to'](_0x32eb77(0x1a4),_0x10e498=>_0x32eb77(0x1ab)+_0x10e498),this[_0x32eb77(0x1be)][_0x32eb77(0x19e)]&&_0x32eb77(0x1bf)],'data-suggestion-id':this[_0x32eb77(0x1b1)]['id'],'data-thread-id':this[_0x32eb77(0x1b1)][_0x32eb77(0x1b3)]['id'],'data-author-id':this[_0x32eb77(0x1b1)][_0x32eb77(0x1a8)]['id'],'tabindex':0x0,'role':_0x32eb77(0x19b),'aria-label':_0x32465c['to'](_0x32eb77(0x19f)),'aria-describedby':this[_0x32eb77(0x1af)]['id']},'children':_0x33a55c};}[_0x92e59f(0x1a5)](){const _0x4123ac=_0x92e59f;super[_0x4123ac(0x1a5)](),this[_0x4123ac(0x19a)]&&(this[_0x4123ac(0x19a)][_0x4123ac(0x1b6)](_0x4123ac(0x1cd))['to'](this),this[_0x4123ac(0x19a)][_0x4123ac(0x1b6)](_0x4123ac(0x1cf))['to'](this)),this[_0x4123ac(0x1a2)]&&(this[_0x4123ac(0x1a2)][_0x4123ac(0x1b6)](_0x4123ac(0x1cd))['to'](this),this[_0x4123ac(0x1a2)][_0x4123ac(0x1b6)](_0x4123ac(0x1cf))['to'](this));}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x7ac65f,_0x4a0837){const _0x5b59e1=_0x2c7b,_0x40dc40=_0x7ac65f();while(!![]){try{const _0x51d896=parseInt(_0x5b59e1(0xba))/0x1+parseInt(_0x5b59e1(0x92))/0x2*(-parseInt(_0x5b59e1(0xbc))/0x3)+parseInt(_0x5b59e1(0xb9))/0x4*(parseInt(_0x5b59e1(0xb2))/0x5)+-parseInt(_0x5b59e1(0xbf))/0x6*(-parseInt(_0x5b59e1(0x9f))/0x7)+parseInt(_0x5b59e1(0x9d))/0x8+parseInt(_0x5b59e1(0xab))/0x9*(parseInt(_0x5b59e1(0x98))/0xa)+-parseInt(_0x5b59e1(0xa7))/0xb;if(_0x51d896===_0x4a0837)break;else _0x40dc40['push'](_0x40dc40['shift']());}catch(_0x30783f){_0x40dc40['push'](_0x40dc40['shift']());}}}(_0x37ec,0xe2a23));export function normalizeDescription(_0x1ca99e){const _0x56f4a2=_0x2c7b;return Array[_0x56f4a2(0xc5)](_0x1ca99e)||(_0x1ca99e=[_0x1ca99e]),_0x1ca99e[_0x56f4a2(0x8f)](_0x5cd373=>{const _0x2a50b4=_0x56f4a2,_0x180940=_0x5cd373[_0x2a50b4(0x9b)][_0x2a50b4(0xb7)](/\*/g,''),_0x41313c=_0x5cd373[_0x2a50b4(0xa0)]?_0x2a50b4(0xb5)+_0x5cd373[_0x2a50b4(0xa0)][_0x2a50b4(0x9a)]+']':'';return'['+_0x5cd373[_0x2a50b4(0xbb)]+']\x20'+_0x180940+_0x41313c;})[_0x56f4a2(0x91)](';\x20');}export function renderDescription(_0x35d57a,_0x415667){const _0x3eee17=_0x2c7b;let _0x2f6f37='';return _0x2f6f37+=_0x35d57a[_0x3eee17(0xc3)]('*')[_0x3eee17(0x8f)]((_0x231995,_0x3439ea)=>_0x3439ea%0x2!=0x0?_0x3eee17(0xa1)+tn(_0x231995)+_0x3eee17(0xaa):tn(_0x231995))[_0x3eee17(0x91)](''),_0x415667&&(_0x2f6f37+=_0x3eee17(0xb4)+_0x415667[_0x3eee17(0x9a)]+_0x3eee17(0xad)+_0x415667[_0x3eee17(0xa4)]+_0x3eee17(0xa3)),_0x2f6f37;}function tn(_0x474137){const _0x27290d=_0x2c7b,_0x5bf857=document[_0x27290d(0xb0)](_0x27290d(0xbd));return _0x5bf857[_0x27290d(0x9c)]=_0x474137,_0x5bf857[_0x27290d(0xb6)];}export function sortSuggestions(_0xa606ff){const _0x2869a7=_0x2c7b;return _0xa606ff[_0x2869a7(0x96)]((_0x4500a7,_0x14e768)=>_0x2869a7(0xc6)===_0x4500a7[_0x2869a7(0xbb)]&&_0x2869a7(0xc6)!==_0x14e768[_0x2869a7(0xbb)]?-0x1:_0x2869a7(0xc6)!==_0x4500a7[_0x2869a7(0xbb)]&&_0x2869a7(0xc6)===_0x14e768[_0x2869a7(0xbb)]?0x1:_0x2869a7(0x90)==_0x4500a7[_0x2869a7(0xbb)]&&_0x2869a7(0x90)!=_0x14e768[_0x2869a7(0xbb)]?-0x1:_0x2869a7(0x90)!=_0x4500a7[_0x2869a7(0xbb)]&&_0x2869a7(0x90)==_0x14e768[_0x2869a7(0xbb)]?0x1:0x0);}export function getSelectedSuggestions(_0x1b3086,_0x2f1c62){const _0x34ab81=_0x2c7b,_0x9a4404=Array[_0x34ab81(0xb3)](_0x1b3086[_0x34ab81(0xb8)]()),_0x36eb06=new Set();for(const _0x1bba0d of _0x2f1c62)if(_0x1bba0d[_0x34ab81(0xc1)]){for(const _0x1c5f70 of _0x9a4404)for(const _0x27e793 of _0x1bba0d[_0x34ab81(0xb8)]())(_0x1c5f70[_0x34ab81(0x94)](_0x27e793)||_0x1b3086[_0x34ab81(0xa9)]&&!_0x1bba0d[_0x34ab81(0xc0)]&&_0x1bba0d[_0x34ab81(0xc2)]&&_0x27e793[_0x34ab81(0xbe)][_0x34ab81(0x99)](_0x1c5f70[_0x34ab81(0xac)]))&&_0x36eb06[_0x34ab81(0xb1)](_0x1bba0d);}return _0x36eb06;}function _0x2c7b(_0xfab98e,_0x4bcff1){const _0x37ecfa=_0x37ec();return _0x2c7b=function(_0x2c7bcd,_0x264f6e){_0x2c7bcd=_0x2c7bcd-0x8f;let _0x55292e=_0x37ecfa[_0x2c7bcd];return _0x55292e;},_0x2c7b(_0xfab98e,_0x4bcff1);}function _0x37ec(){const _0xf418f1=['\x20[color\x20','innerHTML','replace','getRanges','168UKyTif','1096298SueuOF','type','4610643myMqrV','span','end','4644036nHcHxl','isMultiRange','isInContent','next','split','splice','isArray','attribute','map','deletion','join','2QyLwCN','schema','isIntersecting','execute','sort','push','90UehLOf','isTouching','value','content','innerText','4016552cqhBjD','createPositionAt','14bfCbPT','color','<span\x20class=\x22ck-suggestion-type\x22>','isObject','\x22></span>','title','length','createPositionAfter','31778307zgMYup','change','isCollapsed','</span>','813960WvyLBK','start','\x22\x20title=\x22','createRange','createPositionBefore','createElement','add','165925cEuVjW','from','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'];_0x37ec=function(){return _0xf418f1;};return _0x37ec();}export function getRangesOfBlockGroups(_0x4d784c,_0xd91a00){const _0x1e9944=_0x2c7b;let _0x53788d,_0x589049=0x0;const _0x39b51f=[],_0x359363=_0xd91a00[_0x1e9944(0x93)];for(;_0x589049<_0x4d784c[_0x1e9944(0xa5)];){const _0x4255bf=_0x4d784c[_0x589049],_0x3debdc=_0x4d784c[_0x589049+0x1];_0x53788d||(_0x53788d=_0xd91a00[_0x1e9944(0xaf)](_0x4255bf)),nn(_0xd91a00,_0x4255bf,_0x3debdc)||(_0x39b51f[_0x1e9944(0x97)](_0xd91a00[_0x1e9944(0xae)](_0x53788d,_0x359363[_0x1e9944(0xa2)](_0x4255bf)?_0xd91a00[_0x1e9944(0xa6)](_0x4255bf):_0xd91a00[_0x1e9944(0x9e)](_0x4255bf,_0x1e9944(0xbe)))),_0x53788d=null),_0x589049++;}return _0x39b51f;}function nn(_0x51b869,_0x3dbbff,_0x130a43){const _0xa8f398=_0x2c7b;if(!_0x130a43)return!0x1;const _0x39e8bb=_0x51b869[_0xa8f398(0xa6)](_0x3dbbff),_0x30540c=_0x51b869[_0xa8f398(0xaf)](_0x130a43);return _0x39e8bb[_0xa8f398(0x99)](_0x30540c);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x3fe81a,_0x34bbd2,_0xb5c842){const _0x16d3bb=_0x2c7b;for(;_0xb5c842[_0x16d3bb(0xa5)];){const _0x16c3ed=_0xb5c842[_0x16d3bb(0xc4)](0x0,0x64);_0x3fe81a[_0x16d3bb(0xa8)](()=>{const _0x5e1454=_0x16d3bb;for(const _0x2391f3 of _0x16c3ed)_0x2391f3[_0x5e1454(0xc1)]&&_0x34bbd2[_0x5e1454(0x95)](_0x2391f3['id']);});}}
|