@ckeditor/ckeditor5-track-changes 46.0.1-alpha.4 → 46.0.1-alpha.5
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 _0x36bec4=_0xd337;function _0x39a4(){const _0xd39255=['canDiscard','author','suggestionView','disableComments','ck-suggestion-','acceptSuggestion','getTemplate','set','discardSuggestion','setTemplate','3961632IoTmze','isEnabled','commentThread','22727240UTLKeQ','bind','49pMfIkW','descriptionParts','532585KfZLFz','focusables','type','477016wtrkYK','commentsListView','ck-rounded-corners','5YkShLy','ariaDescriptionView','editorDestroyed','bindTemplate','acceptButton','_descriptionElement','render','isActive','discardButton','description','color','commentThreadInputView','editorReady','_config','canAccept','ck-suggestion--disabled-comments','ariaLabel','_model','1759804dYlLdw','156238wjiRko','3PAalBN','listitem','ck-suggestion-wrapper','ck-suggestion-wrapper--active','add','push','307647uNRNQU','formatDateTime','delegate','</p>','div','SuggestionView','content','<p>'];_0x39a4=function(){return _0xd39255;};return _0x39a4();}(function(_0x2e5278,_0x56358b){const _0x419d54=_0xd337,_0xb95a6f=_0x2e5278();while(!![]){try{const _0x34f9ed=-parseInt(_0x419d54(0xdd))/0x1*(parseInt(_0x419d54(0xf0))/0x2)+parseInt(_0x419d54(0xf1))/0x3*(-parseInt(_0x419d54(0xef))/0x4)+parseInt(_0x419d54(0x110))/0x5+-parseInt(_0x419d54(0x109))/0x6+parseInt(_0x419d54(0x10e))/0x7*(-parseInt(_0x419d54(0x113))/0x8)+-parseInt(_0x419d54(0xf7))/0x9+parseInt(_0x419d54(0x10c))/0xa;if(_0x34f9ed===_0x56358b)break;else _0xb95a6f['push'](_0xb95a6f['shift']());}catch(_0x24e98f){_0xb95a6f['push'](_0xb95a6f['shift']());}}}(_0x39a4,0x6aa73));import{BaseSuggestionThreadView as _0x5295c6}from'./basesuggestionthreadview.js';import{trimHtml as _0x3e3717}from'ckeditor5-collaboration/src/collaboration-core.js';function _0xd337(_0x393a7d,_0xcd1fa){const _0x39a4d9=_0x39a4();return _0xd337=function(_0xd337f6,_0x466d24){_0xd337f6=_0xd337f6-0xdd;let _0x3591d6=_0x39a4d9[_0xd337f6];return _0x3591d6;},_0xd337(_0x393a7d,_0xcd1fa);}import{renderDescription as _0x2c4eaf}from'../../utils/utils.js';export class SuggestionThreadView extends _0x5295c6{[_0x36bec4(0x101)];[_0x36bec4(0xe2)];constructor(_0x5675ca,_0x195a42,_0x495845,_0x3c0db6){const _0x561103=_0x36bec4;super(_0x5675ca,_0x195a42,_0x495845,_0x3c0db6),this[_0x561103(0x106)](_0x561103(0x112),''),this[_0x561103(0x10d)](_0x561103(0x112))['to'](this,_0x561103(0x10f),_0x36fae6=>_0x36fae6&&_0x36fae6[0x0]?_0x36fae6[0x0][_0x561103(0x112)]:''),this[_0x561103(0x10d)](_0x561103(0xe6))['to'](this,_0x561103(0x10f),this,_0x561103(0xe4),(_0x47cdf5,_0x3337b5)=>{const _0x4d630e=_0x561103;let _0x115ba2='';for(const _0x4d71f1 of _0x47cdf5)_0x115ba2+=_0x4d630e(0xfe)+_0x2c4eaf(_0x4d71f1[_0x4d630e(0xfd)],_0x4d71f1[_0x4d630e(0xe7)])+_0x4d630e(0xfa);return _0x3337b5?_0x115ba2:_0x3e3717(_0x115ba2,{'limit':0x8c});}),this[_0x561103(0xe2)]=null,this[_0x561103(0x101)]=new _0x3c0db6[(_0x561103(0xfc))](_0x5675ca,_0x195a42,{'formatDateTime':_0x3c0db6[_0x561103(0xf8)]}),this[_0x561103(0x101)][_0x561103(0x10d)](_0x561103(0xe6))['to'](this),this[_0x561103(0x101)][_0x561103(0xf9)](_0x561103(0x104),_0x561103(0x107))['to'](this),this[_0x561103(0x101)][_0x561103(0xe1)][_0x561103(0x10d)](_0x561103(0x10a))['to'](this,_0x561103(0xeb)),this[_0x561103(0x101)][_0x561103(0xe5)][_0x561103(0x10d)](_0x561103(0x10a))['to'](this,_0x561103(0xff)),this[_0x561103(0x111)][_0x561103(0xf5)](this[_0x561103(0x101)]),this[_0x561103(0x114)]&&this[_0x561103(0x111)][_0x561103(0xf5)](this[_0x561103(0x114)]),this[_0x561103(0xe8)]&&this[_0x561103(0x111)][_0x561103(0xf5)](this[_0x561103(0xe8)]),this[_0x561103(0x108)](this[_0x561103(0x105)]());}[_0x36bec4(0x105)](){const _0x94c8cd=_0x36bec4,_0x589623=this[_0x94c8cd(0xe0)],_0x2692cd=[this[_0x94c8cd(0x101)]];return this[_0x94c8cd(0x114)]&&_0x2692cd[_0x94c8cd(0xf6)](this[_0x94c8cd(0x114)]),this[_0x94c8cd(0xe8)]&&_0x2692cd[_0x94c8cd(0xf6)](this[_0x94c8cd(0xe8)]),_0x2692cd[_0x94c8cd(0xf6)](this[_0x94c8cd(0xde)]),{'tag':_0x94c8cd(0xfb),'attributes':{'class':['ck',_0x94c8cd(0x115),_0x94c8cd(0xf3),_0x589623['if'](_0x94c8cd(0xe4),_0x94c8cd(0xf4)),_0x589623['to'](_0x94c8cd(0x112),_0x5d18a7=>_0x94c8cd(0x103)+_0x5d18a7),this[_0x94c8cd(0xea)][_0x94c8cd(0x102)]&&_0x94c8cd(0xec)],'data-suggestion-id':this[_0x94c8cd(0xee)]['id'],'data-thread-id':this[_0x94c8cd(0xee)][_0x94c8cd(0x10b)]['id'],'data-author-id':this[_0x94c8cd(0xee)][_0x94c8cd(0x100)]['id'],'tabindex':0x0,'role':_0x94c8cd(0xf2),'aria-label':_0x589623['to'](_0x94c8cd(0xed)),'aria-describedby':this[_0x94c8cd(0xde)]['id']},'children':_0x2692cd};}[_0x36bec4(0xe3)](){const _0x21d97d=_0x36bec4;super[_0x21d97d(0xe3)](),this[_0x21d97d(0x114)]&&(this[_0x21d97d(0x114)][_0x21d97d(0xf9)](_0x21d97d(0xe9))['to'](this),this[_0x21d97d(0x114)][_0x21d97d(0xf9)](_0x21d97d(0xdf))['to'](this)),this[_0x21d97d(0xe8)]&&(this[_0x21d97d(0xe8)][_0x21d97d(0xf9)](_0x21d97d(0xe9))['to'](this),this[_0x21d97d(0xe8)][_0x21d97d(0xf9)](_0x21d97d(0xdf))['to'](this));}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x104484,_0x17ef8c){const _0x41847e=_0xf015,_0x39be10=_0x104484();while(!![]){try{const _0x19f47e=-parseInt(_0x41847e(0x111))/0x1*(-parseInt(_0x41847e(0x13e))/0x2)+-parseInt(_0x41847e(0x13d))/0x3+-parseInt(_0x41847e(0x141))/0x4+parseInt(_0x41847e(0x10e))/0x5*(parseInt(_0x41847e(0x123))/0x6)+parseInt(_0x41847e(0x13f))/0x7+parseInt(_0x41847e(0x112))/0x8+-parseInt(_0x41847e(0x10c))/0x9;if(_0x19f47e===_0x17ef8c)break;else _0x39be10['push'](_0x39be10['shift']());}catch(_0xa4f6a){_0x39be10['push'](_0x39be10['shift']());}}}(_0x443e,0x7e7d2));export function normalizeDescription(_0x17f0a4){const _0x29373f=_0xf015;return Array[_0x29373f(0x133)](_0x17f0a4)||(_0x17f0a4=[_0x17f0a4]),_0x17f0a4[_0x29373f(0x121)](_0x1c5ef4=>{const _0x31a024=_0x29373f,_0x30a7fa=_0x1c5ef4[_0x31a024(0x12c)][_0x31a024(0x120)](/\*/g,''),_0xd3810e=_0x1c5ef4[_0x31a024(0x122)]?_0x31a024(0x140)+_0x1c5ef4[_0x31a024(0x122)][_0x31a024(0x11c)]+']':'';return'['+_0x1c5ef4[_0x31a024(0x113)]+']\x20'+_0x30a7fa+_0xd3810e;})[_0x29373f(0x11a)](';\x20');}export function renderDescription(_0x57c715,_0x3216d7){const _0x3422e3=_0xf015;let _0x40d834='';return _0x40d834+=_0x57c715[_0x3422e3(0x126)]('*')[_0x3422e3(0x121)]((_0x4fe012,_0x257079)=>_0x257079%0x2!=0x0?_0x3422e3(0x135)+Zt(_0x4fe012)+_0x3422e3(0x131):Zt(_0x4fe012))[_0x3422e3(0x11a)](''),_0x3216d7&&(_0x40d834+=_0x3422e3(0x110)+_0x3216d7[_0x3422e3(0x11c)]+_0x3422e3(0x137)+_0x3216d7[_0x3422e3(0x114)]+_0x3422e3(0x10f)),_0x40d834;}function _0x443e(){const _0x42a62d=['isCollapsed','end','change','isMultiRange','createPositionAt','content','start','createElement','span','innerText','</span>','attribute','isArray','createPositionBefore','<span\x20class=\x22ck-suggestion-type\x22>','next','\x22\x20title=\x22','isInContent','add','isIntersecting','splice','innerHTML','2429052YSFbgv','33190Vhzdog','4797604wNsqln','\x20[color\x20','3823356WOnRhc','1700172uGUOSJ','schema','52280bRALLT','\x22></span>','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','9JszmHk','5992336lsfSjL','type','title','createRange','push','getRanges','isObject','from','join','sort','value','createPositionAfter','deletion','isTouching','replace','map','color','510XbOWxd','length','execute','split'];_0x443e=function(){return _0x42a62d;};return _0x443e();}function Zt(_0x3c1f20){const _0x59ccae=_0xf015,_0x2dd410=document[_0x59ccae(0x12e)](_0x59ccae(0x12f));return _0x2dd410[_0x59ccae(0x130)]=_0x3c1f20,_0x2dd410[_0x59ccae(0x13c)];}export function sortSuggestions(_0x2cb977){const _0x3cbd4e=_0xf015;return _0x2cb977[_0x3cbd4e(0x11b)]((_0x3b4964,_0x16bac3)=>_0x3cbd4e(0x132)===_0x3b4964[_0x3cbd4e(0x113)]&&_0x3cbd4e(0x132)!==_0x16bac3[_0x3cbd4e(0x113)]?-0x1:_0x3cbd4e(0x132)!==_0x3b4964[_0x3cbd4e(0x113)]&&_0x3cbd4e(0x132)===_0x16bac3[_0x3cbd4e(0x113)]?0x1:_0x3cbd4e(0x11e)==_0x3b4964[_0x3cbd4e(0x113)]&&_0x3cbd4e(0x11e)!=_0x16bac3[_0x3cbd4e(0x113)]?-0x1:_0x3cbd4e(0x11e)!=_0x3b4964[_0x3cbd4e(0x113)]&&_0x3cbd4e(0x11e)==_0x16bac3[_0x3cbd4e(0x113)]?0x1:0x0);}export function getSelectedSuggestions(_0x5d3041,_0x4e169f){const _0x386f8d=_0xf015,_0xa1bc3c=Array[_0x386f8d(0x119)](_0x5d3041[_0x386f8d(0x117)]()),_0x295b44=new Set();for(const _0x5e26c4 of _0x4e169f)if(_0x5e26c4[_0x386f8d(0x138)]){for(const _0x501f13 of _0xa1bc3c)for(const _0x1eff43 of _0x5e26c4[_0x386f8d(0x117)]())(_0x501f13[_0x386f8d(0x13a)](_0x1eff43)||_0x5d3041[_0x386f8d(0x127)]&&!_0x5e26c4[_0x386f8d(0x12a)]&&_0x5e26c4[_0x386f8d(0x136)]&&_0x1eff43[_0x386f8d(0x128)][_0x386f8d(0x11f)](_0x501f13[_0x386f8d(0x12d)]))&&_0x295b44[_0x386f8d(0x139)](_0x5e26c4);}return _0x295b44;}export function getRangesOfBlockGroups(_0x3a2e60,_0xbc35ae){const _0xaa60ec=_0xf015;let _0x812811,_0x566410=0x0;const _0x3f37a9=[],_0x5d597e=_0xbc35ae[_0xaa60ec(0x10d)];for(;_0x566410<_0x3a2e60[_0xaa60ec(0x124)];){const _0x37f71f=_0x3a2e60[_0x566410],_0x1d56e6=_0x3a2e60[_0x566410+0x1];_0x812811||(_0x812811=_0xbc35ae[_0xaa60ec(0x134)](_0x37f71f)),tn(_0xbc35ae,_0x37f71f,_0x1d56e6)||(_0x3f37a9[_0xaa60ec(0x116)](_0xbc35ae[_0xaa60ec(0x115)](_0x812811,_0x5d597e[_0xaa60ec(0x118)](_0x37f71f)?_0xbc35ae[_0xaa60ec(0x11d)](_0x37f71f):_0xbc35ae[_0xaa60ec(0x12b)](_0x37f71f,_0xaa60ec(0x128)))),_0x812811=null),_0x566410++;}return _0x3f37a9;}function tn(_0x25a7e2,_0x479980,_0xd10118){const _0x3e176c=_0xf015;if(!_0xd10118)return!0x1;const _0xa83c36=_0x25a7e2[_0x3e176c(0x11d)](_0x479980),_0x5a182e=_0x25a7e2[_0x3e176c(0x134)](_0xd10118);return _0xa83c36[_0x3e176c(0x11f)](_0x5a182e);}function _0xf015(_0x2d5ba9,_0x3b456b){const _0x443e17=_0x443e();return _0xf015=function(_0xf01557,_0x203ea7){_0xf01557=_0xf01557-0x10c;let _0x81326f=_0x443e17[_0xf01557];return _0x81326f;},_0xf015(_0x2d5ba9,_0x3b456b);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x37e70c,_0x49143e,_0x33fd45){const _0x5df463=_0xf015;for(;_0x33fd45[_0x5df463(0x124)];){const _0x160abd=_0x33fd45[_0x5df463(0x13b)](0x0,0x64);_0x37e70c[_0x5df463(0x129)](()=>{const _0x3ef07b=_0x5df463;for(const _0x3a266c of _0x160abd)_0x3a266c[_0x3ef07b(0x138)]&&_0x49143e[_0x3ef07b(0x125)](_0x3a266c['id']);});}}
|