@ckeditor/ckeditor5-track-changes 46.0.0-alpha.7 → 46.0.0-alpha.8
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
|
-
|
|
23
|
+
function _0x4201(){const _0x44b038=['ck-rounded-corners','render','div','description','push','</p>','focusables','_model','editorReady','isActive','ck-suggestion-wrapper','commentThread','type','8625606yGuOll','264633LnGLlS','ariaLabel','21TSPxUZ','add','canDiscard','canAccept','169860blLPGC','11vVBBhV','discardSuggestion','ck-suggestion--disabled-comments','bindTemplate','set','65LFYseB','setTemplate','_config','6ZAJgxp','commentThreadInputView','content','isEnabled','14538816xDCQtt','discardButton','getTemplate','suggestionView','color','delegate','486892KlOGVP','3481640lmvNOZ','bind','acceptSuggestion','author','listitem','8525890awwqPk','_descriptionElement','ck-suggestion-wrapper--active','SuggestionView','commentsListView','disableComments','formatDateTime','editorDestroyed','acceptButton','descriptionParts','ariaDescriptionView','<p>','ck-suggestion-'];_0x4201=function(){return _0x44b038;};return _0x4201();}function _0x5d47(_0x51c37b,_0x1b658e){const _0x420137=_0x4201();return _0x5d47=function(_0x5d4747,_0x16f6d2){_0x5d4747=_0x5d4747-0x103;let _0x4cc62f=_0x420137[_0x5d4747];return _0x4cc62f;},_0x5d47(_0x51c37b,_0x1b658e);}const _0x5038cc=_0x5d47;(function(_0x850ce2,_0x4dffd3){const _0x5058e=_0x5d47,_0x5815b0=_0x850ce2();while(!![]){try{const _0x311034=-parseInt(_0x5058e(0x10a))/0x1+-parseInt(_0x5058e(0x110))/0x2*(-parseInt(_0x5058e(0x119))/0x3)+parseInt(_0x5058e(0x123))/0x4*(-parseInt(_0x5058e(0x116))/0x5)+parseInt(_0x5058e(0x109))/0x6+-parseInt(_0x5058e(0x10c))/0x7*(parseInt(_0x5058e(0x124))/0x8)+parseInt(_0x5058e(0x11d))/0x9+parseInt(_0x5058e(0x129))/0xa*(parseInt(_0x5058e(0x111))/0xb);if(_0x311034===_0x4dffd3)break;else _0x5815b0['push'](_0x5815b0['shift']());}catch(_0x5136a9){_0x5815b0['push'](_0x5815b0['shift']());}}}(_0x4201,0xe14cb));import{BaseSuggestionThreadView as _0x392524}from'./basesuggestionthreadview.js';import{trimHtml as _0x22e1b5}from'ckeditor5-collaboration/src/collaboration-core.js';import{renderDescription as _0x104bda}from'../../utils/utils.js';export class SuggestionThreadView extends _0x392524{[_0x5038cc(0x120)];[_0x5038cc(0x12a)];constructor(_0x1b146b,_0x32eea1,_0x18f0c0,_0x1e9a32){const _0x428bd6=_0x5038cc;super(_0x1b146b,_0x32eea1,_0x18f0c0,_0x1e9a32),this[_0x428bd6(0x115)](_0x428bd6(0x108),''),this[_0x428bd6(0x125)](_0x428bd6(0x108))['to'](this,_0x428bd6(0x132),_0x56fc06=>_0x56fc06&&_0x56fc06[0x0]?_0x56fc06[0x0][_0x428bd6(0x108)]:''),this[_0x428bd6(0x125)](_0x428bd6(0x139))['to'](this,_0x428bd6(0x132),this,_0x428bd6(0x105),(_0x529377,_0x1444bc)=>{const _0x176db3=_0x428bd6;let _0x49941c='';for(const _0x312e56 of _0x529377)_0x49941c+=_0x176db3(0x134)+_0x104bda(_0x312e56[_0x176db3(0x11b)],_0x312e56[_0x176db3(0x121)])+_0x176db3(0x13b);return _0x1444bc?_0x49941c:_0x22e1b5(_0x49941c,{'limit':0x8c});}),this[_0x428bd6(0x12a)]=null,this[_0x428bd6(0x120)]=new _0x1e9a32[(_0x428bd6(0x12c))](_0x1b146b,_0x32eea1,{'formatDateTime':_0x1e9a32[_0x428bd6(0x12f)]}),this[_0x428bd6(0x120)][_0x428bd6(0x125)](_0x428bd6(0x139))['to'](this),this[_0x428bd6(0x120)][_0x428bd6(0x122)](_0x428bd6(0x126),_0x428bd6(0x112))['to'](this),this[_0x428bd6(0x120)][_0x428bd6(0x131)][_0x428bd6(0x125)](_0x428bd6(0x11c))['to'](this,_0x428bd6(0x10f)),this[_0x428bd6(0x120)][_0x428bd6(0x11e)][_0x428bd6(0x125)](_0x428bd6(0x11c))['to'](this,_0x428bd6(0x10e)),this[_0x428bd6(0x13c)][_0x428bd6(0x10d)](this[_0x428bd6(0x120)]),this[_0x428bd6(0x12d)]&&this[_0x428bd6(0x13c)][_0x428bd6(0x10d)](this[_0x428bd6(0x12d)]),this[_0x428bd6(0x11a)]&&this[_0x428bd6(0x13c)][_0x428bd6(0x10d)](this[_0x428bd6(0x11a)]),this[_0x428bd6(0x117)](this[_0x428bd6(0x11f)]());}[_0x5038cc(0x11f)](){const _0x165fee=_0x5038cc,_0xd41477=this[_0x165fee(0x114)],_0x2c258d=[this[_0x165fee(0x120)]];return this[_0x165fee(0x12d)]&&_0x2c258d[_0x165fee(0x13a)](this[_0x165fee(0x12d)]),this[_0x165fee(0x11a)]&&_0x2c258d[_0x165fee(0x13a)](this[_0x165fee(0x11a)]),_0x2c258d[_0x165fee(0x13a)](this[_0x165fee(0x133)]),{'tag':_0x165fee(0x138),'attributes':{'class':['ck',_0x165fee(0x136),_0x165fee(0x106),_0xd41477['if'](_0x165fee(0x105),_0x165fee(0x12b)),_0xd41477['to'](_0x165fee(0x108),_0x223ade=>_0x165fee(0x135)+_0x223ade),this[_0x165fee(0x118)][_0x165fee(0x12e)]&&_0x165fee(0x113)],'data-suggestion-id':this[_0x165fee(0x103)]['id'],'data-thread-id':this[_0x165fee(0x103)][_0x165fee(0x107)]['id'],'data-author-id':this[_0x165fee(0x103)][_0x165fee(0x127)]['id'],'tabindex':0x0,'role':_0x165fee(0x128),'aria-label':_0xd41477['to'](_0x165fee(0x10b)),'aria-describedby':this[_0x165fee(0x133)]['id']},'children':_0x2c258d};}[_0x5038cc(0x137)](){const _0x29a0ee=_0x5038cc;super[_0x29a0ee(0x137)](),this[_0x29a0ee(0x12d)]&&(this[_0x29a0ee(0x12d)][_0x29a0ee(0x122)](_0x29a0ee(0x104))['to'](this),this[_0x29a0ee(0x12d)][_0x29a0ee(0x122)](_0x29a0ee(0x130))['to'](this)),this[_0x29a0ee(0x11a)]&&(this[_0x29a0ee(0x11a)][_0x29a0ee(0x122)](_0x29a0ee(0x104))['to'](this),this[_0x29a0ee(0x11a)][_0x29a0ee(0x122)](_0x29a0ee(0x130))['to'](this));}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x4317b5,_0x2a3738){const _0x33a425=_0x11fa,_0x23675c=_0x4317b5();while(!![]){try{const _0x23d2e6=-parseInt(_0x33a425(0xdd))/0x1*(-parseInt(_0x33a425(0xce))/0x2)+-parseInt(_0x33a425(0xbd))/0x3*(parseInt(_0x33a425(0xe6))/0x4)+-parseInt(_0x33a425(0xc8))/0x5+-parseInt(_0x33a425(0xcd))/0x6+parseInt(_0x33a425(0xe1))/0x7+parseInt(_0x33a425(0xec))/0x8*(-parseInt(_0x33a425(0xb8))/0x9)+-parseInt(_0x33a425(0xd9))/0xa*(-parseInt(_0x33a425(0xcc))/0xb);if(_0x23d2e6===_0x2a3738)break;else _0x23675c['push'](_0x23675c['shift']());}catch(_0x36f5d4){_0x23675c['push'](_0x23675c['shift']());}}}(_0x21ac,0x5259e));export function normalizeDescription(_0x2dd586){const _0x3f04ee=_0x11fa;return Array[_0x3f04ee(0xe5)](_0x2dd586)||(_0x2dd586=[_0x2dd586]),_0x2dd586[_0x3f04ee(0xe2)](_0x4fd8ba=>{const _0xb65326=_0x3f04ee,_0x1ae4c4=_0x4fd8ba[_0xb65326(0xc5)][_0xb65326(0xcf)](/\*/g,''),_0x3df5ad=_0x4fd8ba[_0xb65326(0xd0)]?_0xb65326(0xe8)+_0x4fd8ba[_0xb65326(0xd0)][_0xb65326(0xc3)]+']':'';return'['+_0x4fd8ba[_0xb65326(0xc6)]+']\x20'+_0x1ae4c4+_0x3df5ad;})[_0x3f04ee(0xde)](';\x20');}function _0x11fa(_0x3314fe,_0x2a4616){const _0x21ac9f=_0x21ac();return _0x11fa=function(_0x11fa50,_0x54e89f){_0x11fa50=_0x11fa50-0xb8;let _0x4f6799=_0x21ac9f[_0x11fa50];return _0x4f6799;},_0x11fa(_0x3314fe,_0x2a4616);}export function renderDescription(_0x249cd9,_0x51f0bc){const _0x3bc114=_0x11fa;let _0x18f024='';return _0x18f024+=_0x249cd9[_0x3bc114(0xd4)]('*')[_0x3bc114(0xe2)]((_0x445a2f,_0x285126)=>_0x285126%0x2!=0x0?_0x3bc114(0xb9)+Yt(_0x445a2f)+_0x3bc114(0xee):Yt(_0x445a2f))[_0x3bc114(0xde)](''),_0x51f0bc&&(_0x18f024+=_0x3bc114(0xdb)+_0x51f0bc[_0x3bc114(0xc3)]+_0x3bc114(0xc2)+_0x51f0bc[_0x3bc114(0xbf)]+_0x3bc114(0xd8)),_0x18f024;}function Yt(_0x54ee8d){const _0x46fcba=_0x11fa,_0x159ada=document[_0x46fcba(0xca)](_0x46fcba(0xd6));return _0x159ada[_0x46fcba(0xbe)]=_0x54ee8d,_0x159ada[_0x46fcba(0xef)];}export function sortSuggestions(_0x2ae4eb){const _0x29d7c7=_0x11fa;return _0x2ae4eb[_0x29d7c7(0xd3)]((_0x532c66,_0x4af60d)=>_0x29d7c7(0xc0)===_0x532c66[_0x29d7c7(0xc6)]&&_0x29d7c7(0xc0)!==_0x4af60d[_0x29d7c7(0xc6)]?-0x1:_0x29d7c7(0xc0)!==_0x532c66[_0x29d7c7(0xc6)]&&_0x29d7c7(0xc0)===_0x4af60d[_0x29d7c7(0xc6)]?0x1:_0x29d7c7(0xe3)==_0x532c66[_0x29d7c7(0xc6)]&&_0x29d7c7(0xe3)!=_0x4af60d[_0x29d7c7(0xc6)]?-0x1:_0x29d7c7(0xe3)!=_0x532c66[_0x29d7c7(0xc6)]&&_0x29d7c7(0xe3)==_0x4af60d[_0x29d7c7(0xc6)]?0x1:0x0);}export function getSelectedSuggestions(_0x4672b5,_0x14f6a3){const _0x56ec81=_0x11fa,_0x4f32e6=Array[_0x56ec81(0xcb)](_0x4672b5[_0x56ec81(0xc9)]()),_0x5344e1=new Set();for(const _0x35ecdd of _0x14f6a3)if(_0x35ecdd[_0x56ec81(0xba)]){for(const _0x513328 of _0x4f32e6)for(const _0x58b767 of _0x35ecdd[_0x56ec81(0xc9)]())(_0x513328[_0x56ec81(0xc7)](_0x58b767)||_0x4672b5[_0x56ec81(0xd1)]&&!_0x35ecdd[_0x56ec81(0xe7)]&&_0x35ecdd[_0x56ec81(0xe9)]&&_0x58b767[_0x56ec81(0xdf)][_0x56ec81(0xd5)](_0x513328[_0x56ec81(0xe0)]))&&_0x5344e1[_0x56ec81(0xed)](_0x35ecdd);}return _0x5344e1;}export function getRangesOfBlockGroups(_0x65ac0,_0xd83748){const _0x3a7891=_0x11fa;let _0x306c18,_0xb3bd53=0x0;const _0x396e76=[],_0x2d193e=_0xd83748[_0x3a7891(0xc1)];for(;_0xb3bd53<_0x65ac0[_0x3a7891(0xc4)];){const _0x5d77f4=_0x65ac0[_0xb3bd53],_0x145c6b=_0x65ac0[_0xb3bd53+0x1];_0x306c18||(_0x306c18=_0xd83748[_0x3a7891(0xdc)](_0x5d77f4)),Zt(_0xd83748,_0x5d77f4,_0x145c6b)||(_0x396e76[_0x3a7891(0xd7)](_0xd83748[_0x3a7891(0xd2)](_0x306c18,_0x2d193e[_0x3a7891(0xbc)](_0x5d77f4)?_0xd83748[_0x3a7891(0xeb)](_0x5d77f4):_0xd83748[_0x3a7891(0xe4)](_0x5d77f4,_0x3a7891(0xdf)))),_0x306c18=null),_0xb3bd53++;}return _0x396e76;}function _0x21ac(){const _0x11016c=['join','end','start','3388252qEzlWb','map','deletion','createPositionAt','isArray','852iEOHlU','isMultiRange','\x20[color\x20','next','change','createPositionAfter','11824coCAKs','add','</span>','innerHTML','1701xBLHzg','<span\x20class=\x22ck-suggestion-type\x22>','isInContent','execute','isObject','8367qWePkr','innerText','title','attribute','schema','\x22\x20title=\x22','value','length','content','type','isIntersecting','2829000vUavlv','getRanges','createElement','from','11sxDTJl','1391268tFEKjp','13760FObtDs','replace','color','isCollapsed','createRange','sort','split','isTouching','span','push','\x22></span>','12216310uCEyXy','splice','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','createPositionBefore','44rmiMMu'];_0x21ac=function(){return _0x11016c;};return _0x21ac();}function Zt(_0x1021bc,_0x3d2547,_0x18369b){const _0x61d61c=_0x11fa;if(!_0x18369b)return!0x1;const _0x2841d4=_0x1021bc[_0x61d61c(0xeb)](_0x3d2547),_0xf9bb35=_0x1021bc[_0x61d61c(0xdc)](_0x18369b);return _0x2841d4[_0x61d61c(0xd5)](_0xf9bb35);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x181ff4,_0x521583,_0x40694f){const _0x2ca014=_0x11fa;for(;_0x40694f[_0x2ca014(0xc4)];){const _0x40be61=_0x40694f[_0x2ca014(0xda)](0x0,0x64);_0x181ff4[_0x2ca014(0xea)](()=>{const _0x56cc0c=_0x2ca014;for(const _0x4322bd of _0x40be61)_0x4322bd[_0x56cc0c(0xba)]&&_0x521583[_0x56cc0c(0xbb)](_0x4322bd['id']);});}}
|