@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250703.0 → 0.0.0-nightly-20250704.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/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +27 -27
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- 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
|
-
const
|
|
23
|
+
const _0x1ba457=_0x2938;(function(_0x2f5d83,_0x17a2e3){const _0x299a3a=_0x2938,_0x4f1e69=_0x2f5d83();while(!![]){try{const _0x5e528e=parseInt(_0x299a3a(0x8d))/0x1*(parseInt(_0x299a3a(0x7b))/0x2)+-parseInt(_0x299a3a(0x82))/0x3*(parseInt(_0x299a3a(0x84))/0x4)+-parseInt(_0x299a3a(0x68))/0x5+parseInt(_0x299a3a(0x8a))/0x6+-parseInt(_0x299a3a(0x66))/0x7*(parseInt(_0x299a3a(0x94))/0x8)+-parseInt(_0x299a3a(0x81))/0x9+-parseInt(_0x299a3a(0x8e))/0xa*(-parseInt(_0x299a3a(0x95))/0xb);if(_0x5e528e===_0x17a2e3)break;else _0x4f1e69['push'](_0x4f1e69['shift']());}catch(_0x335dc0){_0x4f1e69['push'](_0x4f1e69['shift']());}}}(_0x4b39,0x805ec));import{BaseSuggestionThreadView as _0x10c64d}from'./basesuggestionthreadview.js';function _0x4b39(){const _0x467d8d=['discardSuggestion','content','suggestionView','descriptionParts','<p>','987jMdduR','render','2947915TIxHwF','editorDestroyed','type','ariaDescriptionView','isActive','ck-suggestion-wrapper','color','ck-suggestion--disabled-comments','canAccept','commentThreadInputView','editorReady','ck-suggestion-wrapper--active','canDiscard','getTemplate','discardButton','add','acceptSuggestion','acceptButton','bind','588494pTCUZa','</p>','_descriptionElement','isEnabled','commentThread','focusables','6769008vUTjHb','71061UFKMwq','listitem','52GamtMf','disableComments','ck-suggestion-','set','description','bindTemplate','290910CNCFpM','author','_model','1LRpVGg','22917940YsUwVX','push','ariaLabel','_config','commentsListView','div','26048mJSFRz','11FgkxgS','SuggestionView','formatDateTime','ck-rounded-corners','setTemplate','delegate'];_0x4b39=function(){return _0x467d8d;};return _0x4b39();}function _0x2938(_0xde911a,_0x43d392){const _0x4b39ec=_0x4b39();return _0x2938=function(_0x2938d8,_0xd91940){_0x2938d8=_0x2938d8-0x66;let _0x50f677=_0x4b39ec[_0x2938d8];return _0x50f677;},_0x2938(_0xde911a,_0x43d392);}import{trimHtml as _0x53e7a5}from'ckeditor5-collaboration/src/collaboration-core.js';import{renderDescription as _0x5c8346}from'../../utils/utils.js';export class SuggestionThreadView extends _0x10c64d{[_0x1ba457(0x9d)];[_0x1ba457(0x7d)];constructor(_0x21a8ed,_0x13f626,_0x4cb0e8,_0x39ed88){const _0x3fe449=_0x1ba457;super(_0x21a8ed,_0x13f626,_0x4cb0e8,_0x39ed88),this[_0x3fe449(0x87)](_0x3fe449(0x6a),''),this[_0x3fe449(0x7a)](_0x3fe449(0x6a))['to'](this,_0x3fe449(0x9e),_0x559b35=>_0x559b35&&_0x559b35[0x0]?_0x559b35[0x0][_0x3fe449(0x6a)]:''),this[_0x3fe449(0x7a)](_0x3fe449(0x88))['to'](this,_0x3fe449(0x9e),this,_0x3fe449(0x6c),(_0x3d460e,_0x194d50)=>{const _0x429449=_0x3fe449;let _0x41aacc='';for(const _0xb07070 of _0x3d460e)_0x41aacc+=_0x429449(0x9f)+_0x5c8346(_0xb07070[_0x429449(0x9c)],_0xb07070[_0x429449(0x6e)])+_0x429449(0x7c);return _0x194d50?_0x41aacc:_0x53e7a5(_0x41aacc,{'limit':0x8c});}),this[_0x3fe449(0x7d)]=null,this[_0x3fe449(0x9d)]=new _0x39ed88[(_0x3fe449(0x96))](_0x21a8ed,_0x13f626,{'formatDateTime':_0x39ed88[_0x3fe449(0x97)]}),this[_0x3fe449(0x9d)][_0x3fe449(0x7a)](_0x3fe449(0x88))['to'](this),this[_0x3fe449(0x9d)][_0x3fe449(0x9a)](_0x3fe449(0x78),_0x3fe449(0x9b))['to'](this),this[_0x3fe449(0x9d)][_0x3fe449(0x79)][_0x3fe449(0x7a)](_0x3fe449(0x7e))['to'](this,_0x3fe449(0x70)),this[_0x3fe449(0x9d)][_0x3fe449(0x76)][_0x3fe449(0x7a)](_0x3fe449(0x7e))['to'](this,_0x3fe449(0x74)),this[_0x3fe449(0x80)][_0x3fe449(0x77)](this[_0x3fe449(0x9d)]),this[_0x3fe449(0x92)]&&this[_0x3fe449(0x80)][_0x3fe449(0x77)](this[_0x3fe449(0x92)]),this[_0x3fe449(0x71)]&&this[_0x3fe449(0x80)][_0x3fe449(0x77)](this[_0x3fe449(0x71)]),this[_0x3fe449(0x99)](this[_0x3fe449(0x75)]());}[_0x1ba457(0x75)](){const _0x3647b3=_0x1ba457,_0x5896e7=this[_0x3647b3(0x89)],_0x3ae8fd=[this[_0x3647b3(0x9d)]];return this[_0x3647b3(0x92)]&&_0x3ae8fd[_0x3647b3(0x8f)](this[_0x3647b3(0x92)]),this[_0x3647b3(0x71)]&&_0x3ae8fd[_0x3647b3(0x8f)](this[_0x3647b3(0x71)]),_0x3ae8fd[_0x3647b3(0x8f)](this[_0x3647b3(0x6b)]),{'tag':_0x3647b3(0x93),'attributes':{'class':['ck',_0x3647b3(0x98),_0x3647b3(0x6d),_0x5896e7['if'](_0x3647b3(0x6c),_0x3647b3(0x73)),_0x5896e7['to'](_0x3647b3(0x6a),_0xd470a3=>_0x3647b3(0x86)+_0xd470a3),this[_0x3647b3(0x91)][_0x3647b3(0x85)]&&_0x3647b3(0x6f)],'data-suggestion-id':this[_0x3647b3(0x8c)]['id'],'data-thread-id':this[_0x3647b3(0x8c)][_0x3647b3(0x7f)]['id'],'data-author-id':this[_0x3647b3(0x8c)][_0x3647b3(0x8b)]['id'],'tabindex':0x0,'role':_0x3647b3(0x83),'aria-label':_0x5896e7['to'](_0x3647b3(0x90)),'aria-describedby':this[_0x3647b3(0x6b)]['id']},'children':_0x3ae8fd};}[_0x1ba457(0x67)](){const _0x58deb7=_0x1ba457;super[_0x58deb7(0x67)](),this[_0x58deb7(0x92)]&&(this[_0x58deb7(0x92)][_0x58deb7(0x9a)](_0x58deb7(0x72))['to'](this),this[_0x58deb7(0x92)][_0x58deb7(0x9a)](_0x58deb7(0x69))['to'](this)),this[_0x58deb7(0x71)]&&(this[_0x58deb7(0x71)][_0x58deb7(0x9a)](_0x58deb7(0x72))['to'](this),this[_0x58deb7(0x71)][_0x58deb7(0x9a)](_0x58deb7(0x69))['to'](this));}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x1ffe(_0x558a02,_0x4cc47e){const _0x1f3e4d=_0x1f3e();return _0x1ffe=function(_0x1ffec1,_0x17307a){_0x1ffec1=_0x1ffec1-0x154;let _0x162669=_0x1f3e4d[_0x1ffec1];return _0x162669;},_0x1ffe(_0x558a02,_0x4cc47e);}(function(_0x1ad9d7,_0x2d0c1c){const _0x5cea7a=_0x1ffe,_0x12898a=_0x1ad9d7();while(!![]){try{const _0x2e81fa=parseInt(_0x5cea7a(0x155))/0x1*(-parseInt(_0x5cea7a(0x164))/0x2)+parseInt(_0x5cea7a(0x15c))/0x3*(-parseInt(_0x5cea7a(0x159))/0x4)+parseInt(_0x5cea7a(0x185))/0x5+parseInt(_0x5cea7a(0x177))/0x6+parseInt(_0x5cea7a(0x188))/0x7+parseInt(_0x5cea7a(0x160))/0x8*(parseInt(_0x5cea7a(0x189))/0x9)+-parseInt(_0x5cea7a(0x15a))/0xa;if(_0x2e81fa===_0x2d0c1c)break;else _0x12898a['push'](_0x12898a['shift']());}catch(_0x34375b){_0x12898a['push'](_0x12898a['shift']());}}}(_0x1f3e,0xd2c56));export function normalizeDescription(_0x479fd9){const _0x46b214=_0x1ffe;return Array[_0x46b214(0x162)](_0x479fd9)||(_0x479fd9=[_0x479fd9]),_0x479fd9[_0x46b214(0x175)](_0x4ac961=>{const _0x48bc96=_0x46b214,_0x30b516=_0x4ac961[_0x48bc96(0x16f)][_0x48bc96(0x15d)](/\*/g,''),_0x4dcbec=_0x4ac961[_0x48bc96(0x17c)]?_0x48bc96(0x18a)+_0x4ac961[_0x48bc96(0x17c)][_0x48bc96(0x181)]+']':'';return'['+_0x4ac961[_0x48bc96(0x182)]+']\x20'+_0x30b516+_0x4dcbec;})[_0x46b214(0x16d)](';\x20');}export function renderDescription(_0x59ef8b,_0x5664bc){const _0x1a7256=_0x1ffe;let _0x470db9='';return _0x470db9+=_0x59ef8b[_0x1a7256(0x169)]('*')[_0x1a7256(0x175)]((_0x5abca8,_0xbec616)=>_0xbec616%0x2!=0x0?_0x1a7256(0x178)+Yt(_0x5abca8)+_0x1a7256(0x165):Yt(_0x5abca8))[_0x1a7256(0x16d)](''),_0x5664bc&&(_0x470db9+=_0x1a7256(0x17b)+_0x5664bc[_0x1a7256(0x181)]+_0x1a7256(0x171)+_0x5664bc[_0x1a7256(0x179)]+_0x1a7256(0x15e)),_0x470db9;}function Yt(_0x50174a){const _0x128913=_0x1ffe,_0xa78df3=document[_0x128913(0x186)](_0x128913(0x170));return _0xa78df3[_0x128913(0x167)]=_0x50174a,_0xa78df3[_0x128913(0x161)];}export function sortSuggestions(_0x106b07){const _0xb9f9aa=_0x1ffe;return _0x106b07[_0xb9f9aa(0x163)]((_0x584889,_0x56ff0a)=>_0xb9f9aa(0x17f)===_0x584889[_0xb9f9aa(0x182)]&&_0xb9f9aa(0x17f)!==_0x56ff0a[_0xb9f9aa(0x182)]?-0x1:_0xb9f9aa(0x17f)!==_0x584889[_0xb9f9aa(0x182)]&&_0xb9f9aa(0x17f)===_0x56ff0a[_0xb9f9aa(0x182)]?0x1:_0xb9f9aa(0x17d)==_0x584889[_0xb9f9aa(0x182)]&&_0xb9f9aa(0x17d)!=_0x56ff0a[_0xb9f9aa(0x182)]?-0x1:_0xb9f9aa(0x17d)!=_0x584889[_0xb9f9aa(0x182)]&&_0xb9f9aa(0x17d)==_0x56ff0a[_0xb9f9aa(0x182)]?0x1:0x0);}export function getSelectedSuggestions(_0x42ea40,_0x168039){const _0x42b906=_0x1ffe,_0x9175e0=Array[_0x42b906(0x154)](_0x42ea40[_0x42b906(0x16b)]()),_0x474e8f=new Set();for(const _0x58be64 of _0x168039)if(_0x58be64[_0x42b906(0x166)]){for(const _0x41b9c0 of _0x9175e0)for(const _0xfdda02 of _0x58be64[_0x42b906(0x16b)]())(_0x41b9c0[_0x42b906(0x184)](_0xfdda02)||_0x42ea40[_0x42b906(0x15f)]&&!_0x58be64[_0x42b906(0x172)]&&_0x58be64[_0x42b906(0x187)]&&_0xfdda02[_0x42b906(0x173)][_0x42b906(0x17e)](_0x41b9c0[_0x42b906(0x15b)]))&&_0x474e8f[_0x42b906(0x16c)](_0x58be64);}return _0x474e8f;}function _0x1f3e(){const _0x5867b4=['value','type','length','isIntersecting','4147865NrJtiP','createElement','next','10384381KhLvwW','5382JOvaKB','\x20[color\x20','from','4yaEXus','isObject','createPositionAfter','execute','4BUhShB','25355410qRnHbK','start','1460718IhMnLh','replace','\x22></span>','isCollapsed','8416ACXeea','innerHTML','isArray','sort','219752qkvNhX','</span>','isInContent','innerText','schema','split','splice','getRanges','add','join','createPositionAt','content','span','\x22\x20title=\x22','isMultiRange','end','createRange','map','push','8298702gUopKs','<span\x20class=\x22ck-suggestion-type\x22>','title','change','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','color','deletion','isTouching','attribute','createPositionBefore'];_0x1f3e=function(){return _0x5867b4;};return _0x1f3e();}export function getRangesOfBlockGroups(_0xc41fac,_0x4590e7){const _0x572686=_0x1ffe;let _0x201cf2,_0x487782=0x0;const _0x2ae1aa=[],_0x462afc=_0x4590e7[_0x572686(0x168)];for(;_0x487782<_0xc41fac[_0x572686(0x183)];){const _0x44cf65=_0xc41fac[_0x487782],_0x2895e9=_0xc41fac[_0x487782+0x1];_0x201cf2||(_0x201cf2=_0x4590e7[_0x572686(0x180)](_0x44cf65)),Zt(_0x4590e7,_0x44cf65,_0x2895e9)||(_0x2ae1aa[_0x572686(0x176)](_0x4590e7[_0x572686(0x174)](_0x201cf2,_0x462afc[_0x572686(0x156)](_0x44cf65)?_0x4590e7[_0x572686(0x157)](_0x44cf65):_0x4590e7[_0x572686(0x16e)](_0x44cf65,_0x572686(0x173)))),_0x201cf2=null),_0x487782++;}return _0x2ae1aa;}function Zt(_0x243595,_0x1ef403,_0x292ffc){const _0x12301=_0x1ffe;if(!_0x292ffc)return!0x1;const _0x53ae5b=_0x243595[_0x12301(0x157)](_0x1ef403),_0x59ab29=_0x243595[_0x12301(0x180)](_0x292ffc);return _0x53ae5b[_0x12301(0x17e)](_0x59ab29);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x59ea3f,_0x42bc77,_0x2190e1){const _0xb91d3f=_0x1ffe;for(;_0x2190e1[_0xb91d3f(0x183)];){const _0x6240cb=_0x2190e1[_0xb91d3f(0x16a)](0x0,0x64);_0x59ea3f[_0xb91d3f(0x17a)](()=>{const _0x43bcf0=_0xb91d3f;for(const _0x3f8b78 of _0x6240cb)_0x3f8b78[_0x43bcf0(0x166)]&&_0x42bc77[_0x43bcf0(0x158)](_0x3f8b78['id']);});}}
|