@ckeditor/ckeditor5-track-changes 46.0.1-alpha.11 → 46.0.1-alpha.13
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/dist/index.js +4 -4
- package/package.json +27 -27
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tableclipboard.js +2 -2
- package/src/trackchangesediting.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
const _0xbb928e=_0x5db5;(function(_0x689935,_0x2e87c1){const _0x133192=_0x5db5,_0x47e1e1=_0x689935();while(!![]){try{const _0x5e947e=-parseInt(_0x133192(0x1b1))/0x1+-parseInt(_0x133192(0x18f))/0x2+-parseInt(_0x133192(0x18e))/0x3+-parseInt(_0x133192(0x1ae))/0x4+-parseInt(_0x133192(0x19f))/0x5*(parseInt(_0x133192(0x196))/0x6)+-parseInt(_0x133192(0x19e))/0x7*(parseInt(_0x133192(0x19b))/0x8)+parseInt(_0x133192(0x190))/0x9*(parseInt(_0x133192(0x18a))/0xa);if(_0x5e947e===_0x2e87c1)break;else _0x47e1e1['push'](_0x47e1e1['shift']());}catch(_0x4307cc){_0x47e1e1['push'](_0x47e1e1['shift']());}}}(_0x1f26,0x2ce32));function _0x1f26(){const _0x56591a=['render','acceptSuggestion','39722GdoNYl','canAccept','ck-rounded-corners','commentsListView','commentThread','add','editorDestroyed','bind','div','discardButton','ck-suggestion-wrapper','<p>','setTemplate','suggestionView','acceptButton','listitem','formatDateTime','color','4850oeYnEI','ck-suggestion-wrapper--active','canDiscard','descriptionParts','259923FFrRXA','448754BkUJgF','22563VILtuU','_descriptionElement','isEnabled','editorReady','SuggestionView','</p>','224610AkVIrR','_model','getTemplate','author','ck-suggestion--disabled-comments','2391800uBHlkh','ariaDescriptionView','disableComments','7fhoiMd','25WGfWNw','bindTemplate','type','content','delegate','description','discardSuggestion','ariaLabel','focusables','ck-suggestion-','isActive','push','_config','commentThreadInputView','set','780588LPTtqJ'];_0x1f26=function(){return _0x56591a;};return _0x1f26();}import{BaseSuggestionThreadView as _0x1519ad}from'./basesuggestionthreadview.js';import{trimHtml as _0x4084b1}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x5db5(_0x4cd288,_0x24076e){const _0x1f26aa=_0x1f26();return _0x5db5=function(_0x5db5ac,_0x388a35){_0x5db5ac=_0x5db5ac-0x183;let _0x1259e3=_0x1f26aa[_0x5db5ac];return _0x1259e3;},_0x5db5(_0x4cd288,_0x24076e);}import{renderDescription as _0x20bd26}from'../../utils/utils.js';export class SuggestionThreadView extends _0x1519ad{[_0xbb928e(0x185)];[_0xbb928e(0x191)];constructor(_0x3f8e29,_0x11c39b,_0xf57708,_0x247cad){const _0x4dbed0=_0xbb928e;super(_0x3f8e29,_0x11c39b,_0xf57708,_0x247cad),this[_0x4dbed0(0x1ad)](_0x4dbed0(0x1a1),''),this[_0x4dbed0(0x1b8)](_0x4dbed0(0x1a1))['to'](this,_0x4dbed0(0x18d),_0x3b2429=>_0x3b2429&&_0x3b2429[0x0]?_0x3b2429[0x0][_0x4dbed0(0x1a1)]:''),this[_0x4dbed0(0x1b8)](_0x4dbed0(0x1a4))['to'](this,_0x4dbed0(0x18d),this,_0x4dbed0(0x1a9),(_0x203482,_0x52669e)=>{const _0x1016f8=_0x4dbed0;let _0x535a0d='';for(const _0x139724 of _0x203482)_0x535a0d+=_0x1016f8(0x183)+_0x20bd26(_0x139724[_0x1016f8(0x1a2)],_0x139724[_0x1016f8(0x189)])+_0x1016f8(0x195);return _0x52669e?_0x535a0d:_0x4084b1(_0x535a0d,{'limit':0x8c});}),this[_0x4dbed0(0x191)]=null,this[_0x4dbed0(0x185)]=new _0x247cad[(_0x4dbed0(0x194))](_0x3f8e29,_0x11c39b,{'formatDateTime':_0x247cad[_0x4dbed0(0x188)]}),this[_0x4dbed0(0x185)][_0x4dbed0(0x1b8)](_0x4dbed0(0x1a4))['to'](this),this[_0x4dbed0(0x185)][_0x4dbed0(0x1a3)](_0x4dbed0(0x1b0),_0x4dbed0(0x1a5))['to'](this),this[_0x4dbed0(0x185)][_0x4dbed0(0x186)][_0x4dbed0(0x1b8)](_0x4dbed0(0x192))['to'](this,_0x4dbed0(0x1b2)),this[_0x4dbed0(0x185)][_0x4dbed0(0x1ba)][_0x4dbed0(0x1b8)](_0x4dbed0(0x192))['to'](this,_0x4dbed0(0x18c)),this[_0x4dbed0(0x1a7)][_0x4dbed0(0x1b6)](this[_0x4dbed0(0x185)]),this[_0x4dbed0(0x1b4)]&&this[_0x4dbed0(0x1a7)][_0x4dbed0(0x1b6)](this[_0x4dbed0(0x1b4)]),this[_0x4dbed0(0x1ac)]&&this[_0x4dbed0(0x1a7)][_0x4dbed0(0x1b6)](this[_0x4dbed0(0x1ac)]),this[_0x4dbed0(0x184)](this[_0x4dbed0(0x198)]());}[_0xbb928e(0x198)](){const _0x4fb2e8=_0xbb928e,_0x35f7e7=this[_0x4fb2e8(0x1a0)],_0x45cee7=[this[_0x4fb2e8(0x185)]];return this[_0x4fb2e8(0x1b4)]&&_0x45cee7[_0x4fb2e8(0x1aa)](this[_0x4fb2e8(0x1b4)]),this[_0x4fb2e8(0x1ac)]&&_0x45cee7[_0x4fb2e8(0x1aa)](this[_0x4fb2e8(0x1ac)]),_0x45cee7[_0x4fb2e8(0x1aa)](this[_0x4fb2e8(0x19c)]),{'tag':_0x4fb2e8(0x1b9),'attributes':{'class':['ck',_0x4fb2e8(0x1b3),_0x4fb2e8(0x1bb),_0x35f7e7['if'](_0x4fb2e8(0x1a9),_0x4fb2e8(0x18b)),_0x35f7e7['to'](_0x4fb2e8(0x1a1),_0x5cfe1b=>_0x4fb2e8(0x1a8)+_0x5cfe1b),this[_0x4fb2e8(0x1ab)][_0x4fb2e8(0x19d)]&&_0x4fb2e8(0x19a)],'data-suggestion-id':this[_0x4fb2e8(0x197)]['id'],'data-thread-id':this[_0x4fb2e8(0x197)][_0x4fb2e8(0x1b5)]['id'],'data-author-id':this[_0x4fb2e8(0x197)][_0x4fb2e8(0x199)]['id'],'tabindex':0x0,'role':_0x4fb2e8(0x187),'aria-label':_0x35f7e7['to'](_0x4fb2e8(0x1a6)),'aria-describedby':this[_0x4fb2e8(0x19c)]['id']},'children':_0x45cee7};}[_0xbb928e(0x1af)](){const _0x2ff5df=_0xbb928e;super[_0x2ff5df(0x1af)](),this[_0x2ff5df(0x1b4)]&&(this[_0x2ff5df(0x1b4)][_0x2ff5df(0x1a3)](_0x2ff5df(0x193))['to'](this),this[_0x2ff5df(0x1b4)][_0x2ff5df(0x1a3)](_0x2ff5df(0x1b7))['to'](this)),this[_0x2ff5df(0x1ac)]&&(this[_0x2ff5df(0x1ac)][_0x2ff5df(0x1a3)](_0x2ff5df(0x193))['to'](this),this[_0x2ff5df(0x1ac)][_0x2ff5df(0x1a3)](_0x2ff5df(0x1b7))['to'](this));}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x6dc5c7,_0x2eecaf){const _0x14fc08=_0x56a9,_0x58dd7b=_0x6dc5c7();while(!![]){try{const _0x32aecb=parseInt(_0x14fc08(0x1a9))/0x1+-parseInt(_0x14fc08(0x1c0))/0x2+-parseInt(_0x14fc08(0x1d8))/0x3*(parseInt(_0x14fc08(0x1bc))/0x4)+-parseInt(_0x14fc08(0x1bf))/0x5*(parseInt(_0x14fc08(0x1d7))/0x6)+-parseInt(_0x14fc08(0x1d5))/0x7+parseInt(_0x14fc08(0x1b5))/0x8+-parseInt(_0x14fc08(0x1be))/0x9*(-parseInt(_0x14fc08(0x1af))/0xa);if(_0x32aecb===_0x2eecaf)break;else _0x58dd7b['push'](_0x58dd7b['shift']());}catch(_0x522cdb){_0x58dd7b['push'](_0x58dd7b['shift']());}}}(_0x3097,0xa2a64));export function normalizeDescription(_0x20279e){const _0x28435e=_0x56a9;return Array[_0x28435e(0x1cc)](_0x20279e)||(_0x20279e=[_0x20279e]),_0x20279e[_0x28435e(0x1b6)](_0x3f7afd=>{const _0x4ab68e=_0x28435e,_0x65a770=_0x3f7afd[_0x4ab68e(0x1b1)][_0x4ab68e(0x1d2)](/\*/g,''),_0x26a4e2=_0x3f7afd[_0x4ab68e(0x1a5)]?_0x4ab68e(0x1b9)+_0x3f7afd[_0x4ab68e(0x1a5)][_0x4ab68e(0x1d6)]+']':'';return'['+_0x3f7afd[_0x4ab68e(0x1c2)]+']\x20'+_0x65a770+_0x26a4e2;})[_0x28435e(0x1ab)](';\x20');}export function renderDescription(_0x494437,_0x181240){const _0x154365=_0x56a9;let _0x55a7eb='';return _0x55a7eb+=_0x494437[_0x154365(0x1d3)]('*')[_0x154365(0x1b6)]((_0x25c2ee,_0x38e9fd)=>_0x38e9fd%0x2!=0x0?_0x154365(0x1da)+tn(_0x25c2ee)+_0x154365(0x1bd):tn(_0x25c2ee))[_0x154365(0x1ab)](''),_0x181240&&(_0x55a7eb+=_0x154365(0x1ba)+_0x181240[_0x154365(0x1d6)]+_0x154365(0x1ad)+_0x181240[_0x154365(0x1a6)]+_0x154365(0x1ce)),_0x55a7eb;}function tn(_0x47ec19){const _0x8fa85d=_0x56a9,_0x517322=document[_0x8fa85d(0x1a7)](_0x8fa85d(0x1b8));return _0x517322[_0x8fa85d(0x1c7)]=_0x47ec19,_0x517322[_0x8fa85d(0x1cf)];}export function sortSuggestions(_0x238e18){const _0x53da1c=_0x56a9;return _0x238e18[_0x53da1c(0x1d4)]((_0x2a3abf,_0x1a9709)=>_0x53da1c(0x1b4)===_0x2a3abf[_0x53da1c(0x1c2)]&&_0x53da1c(0x1b4)!==_0x1a9709[_0x53da1c(0x1c2)]?-0x1:_0x53da1c(0x1b4)!==_0x2a3abf[_0x53da1c(0x1c2)]&&_0x53da1c(0x1b4)===_0x1a9709[_0x53da1c(0x1c2)]?0x1:_0x53da1c(0x1c5)==_0x2a3abf[_0x53da1c(0x1c2)]&&_0x53da1c(0x1c5)!=_0x1a9709[_0x53da1c(0x1c2)]?-0x1:_0x53da1c(0x1c5)!=_0x2a3abf[_0x53da1c(0x1c2)]&&_0x53da1c(0x1c5)==_0x1a9709[_0x53da1c(0x1c2)]?0x1:0x0);}export function getSelectedSuggestions(_0x1f2fd1,_0x2f0674){const _0x32682f=_0x56a9,_0x2e3622=Array[_0x32682f(0x1cd)](_0x1f2fd1[_0x32682f(0x1ae)]()),_0x3763d7=new Set();for(const _0x17cb00 of _0x2f0674)if(_0x17cb00[_0x32682f(0x1db)]){for(const _0x507b5a of _0x2e3622)for(const _0x3352c0 of _0x17cb00[_0x32682f(0x1ae)]())(_0x507b5a[_0x32682f(0x1ca)](_0x3352c0)||_0x1f2fd1[_0x32682f(0x1d0)]&&!_0x17cb00[_0x32682f(0x1a8)]&&_0x17cb00[_0x32682f(0x1b0)]&&_0x3352c0[_0x32682f(0x1b2)][_0x32682f(0x1cb)](_0x507b5a[_0x32682f(0x1c8)]))&&_0x3763d7[_0x32682f(0x1b3)](_0x17cb00);}return _0x3763d7;}function _0x3097(){const _0xce614=['isMultiRange','726035kKewZS','splice','join','isObject','\x22\x20title=\x22','getRanges','50sowWLc','next','content','end','add','attribute','6470024JjIgUW','map','change','span','\x20[color\x20','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','createRange','140DDKZPi','</span>','75105ytiCgG','285RaQQtG','771922qCTfCD','length','type','schema','createPositionAfter','deletion','createPositionBefore','innerText','start','execute','isIntersecting','isTouching','isArray','from','\x22></span>','innerHTML','isCollapsed','push','replace','split','sort','2666146darXgV','value','5106FWEQyD','8139PFlRVS','createPositionAt','<span\x20class=\x22ck-suggestion-type\x22>','isInContent','color','title','createElement'];_0x3097=function(){return _0xce614;};return _0x3097();}export function getRangesOfBlockGroups(_0x533161,_0x1b061c){const _0x4f242d=_0x56a9;let _0x3ac6a6,_0x5586b8=0x0;const _0xa6fe74=[],_0x5d53e1=_0x1b061c[_0x4f242d(0x1c3)];for(;_0x5586b8<_0x533161[_0x4f242d(0x1c1)];){const _0x1b468c=_0x533161[_0x5586b8],_0x518bc7=_0x533161[_0x5586b8+0x1];_0x3ac6a6||(_0x3ac6a6=_0x1b061c[_0x4f242d(0x1c6)](_0x1b468c)),nn(_0x1b061c,_0x1b468c,_0x518bc7)||(_0xa6fe74[_0x4f242d(0x1d1)](_0x1b061c[_0x4f242d(0x1bb)](_0x3ac6a6,_0x5d53e1[_0x4f242d(0x1ac)](_0x1b468c)?_0x1b061c[_0x4f242d(0x1c4)](_0x1b468c):_0x1b061c[_0x4f242d(0x1d9)](_0x1b468c,_0x4f242d(0x1b2)))),_0x3ac6a6=null),_0x5586b8++;}return _0xa6fe74;}function nn(_0x410937,_0x14716d,_0x13c5de){const _0x54d39a=_0x56a9;if(!_0x13c5de)return!0x1;const _0x1b28c8=_0x410937[_0x54d39a(0x1c4)](_0x14716d),_0x168c1f=_0x410937[_0x54d39a(0x1c6)](_0x13c5de);return _0x1b28c8[_0x54d39a(0x1cb)](_0x168c1f);}function _0x56a9(_0x347324,_0x5ea63a){const _0x30976f=_0x3097();return _0x56a9=function(_0x56a935,_0xdb6044){_0x56a935=_0x56a935-0x1a5;let _0x1d4ec1=_0x30976f[_0x56a935];return _0x1d4ec1;},_0x56a9(_0x347324,_0x5ea63a);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x3c0f32,_0x5058b2,_0x456a8e){const _0x3ebd7d=_0x56a9;for(;_0x456a8e[_0x3ebd7d(0x1c1)];){const _0x475463=_0x456a8e[_0x3ebd7d(0x1aa)](0x0,0x64);_0x3c0f32[_0x3ebd7d(0x1b7)](()=>{const _0x5bcb13=_0x3ebd7d;for(const _0x4ba5aa of _0x475463)_0x4ba5aa[_0x5bcb13(0x1db)]&&_0x5058b2[_0x5bcb13(0x1c9)](_0x4ba5aa['id']);});}}
|