@ckeditor/ckeditor5-track-changes 46.0.1-alpha.13 → 46.0.1-alpha.14
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
|
+
function _0x41c3(){const _0x44512a=['editorReady','render','acceptButton','1404008FaRXuk','delegate','</p>','ck-suggestion-wrapper','ck-suggestion-wrapper--active','div','SuggestionView','suggestionView','canAccept','35VkUawW','ck-suggestion-','author','_config','bind','getTemplate','canDiscard','commentThread','commentThreadInputView','disableComments','description','isEnabled','listitem','ck-rounded-corners','4940163YxlvZJ','type','set','discardButton','push','formatDateTime','ariaLabel','472576tKExGz','<p>','3703410MrFtyR','acceptSuggestion','2234478ioqBLS','content','setTemplate','_model','15465580OZelOo','5VMhtIl','bindTemplate','_descriptionElement','color','add','editorDestroyed','focusables','146878xlQXQV','isActive','4ouiMFS','discardSuggestion','descriptionParts','ck-suggestion--disabled-comments','ariaDescriptionView','commentsListView'];_0x41c3=function(){return _0x44512a;};return _0x41c3();}const _0x579939=_0x2df4;(function(_0x2c6321,_0x3be4e5){const _0x5f33b3=_0x2df4,_0x39ec8e=_0x2c6321();while(!![]){try{const _0x3238df=-parseInt(_0x5f33b3(0xe7))/0x1+parseInt(_0x5f33b3(0xd7))/0x2+parseInt(_0x5f33b3(0xdb))/0x3*(-parseInt(_0x5f33b3(0xb0))/0x4)+-parseInt(_0x5f33b3(0xe0))/0x5*(parseInt(_0x5f33b3(0xd9))/0x6)+parseInt(_0x5f33b3(0xc2))/0x7*(parseInt(_0x5f33b3(0xb9))/0x8)+-parseInt(_0x5f33b3(0xd0))/0x9+parseInt(_0x5f33b3(0xdf))/0xa;if(_0x3238df===_0x3be4e5)break;else _0x39ec8e['push'](_0x39ec8e['shift']());}catch(_0x3cd350){_0x39ec8e['push'](_0x39ec8e['shift']());}}}(_0x41c3,0x93189));import{BaseSuggestionThreadView as _0x415674}from'./basesuggestionthreadview.js';import{trimHtml as _0x43ea47}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x2df4(_0x37bf2d,_0x54a861){const _0x41c317=_0x41c3();return _0x2df4=function(_0x2df4f4,_0x5dd53a){_0x2df4f4=_0x2df4f4-0xb0;let _0x38dd01=_0x41c317[_0x2df4f4];return _0x38dd01;},_0x2df4(_0x37bf2d,_0x54a861);}import{renderDescription as _0x56e90c}from'../../utils/utils.js';export class SuggestionThreadView extends _0x415674{[_0x579939(0xc0)];[_0x579939(0xe2)];constructor(_0x5a2862,_0x24ab87,_0x146ccd,_0x2e83e2){const _0x43ae21=_0x579939;super(_0x5a2862,_0x24ab87,_0x146ccd,_0x2e83e2),this[_0x43ae21(0xd2)](_0x43ae21(0xd1),''),this[_0x43ae21(0xc6)](_0x43ae21(0xd1))['to'](this,_0x43ae21(0xb2),_0x587abf=>_0x587abf&&_0x587abf[0x0]?_0x587abf[0x0][_0x43ae21(0xd1)]:''),this[_0x43ae21(0xc6)](_0x43ae21(0xcc))['to'](this,_0x43ae21(0xb2),this,_0x43ae21(0xe8),(_0x296917,_0x3e48cc)=>{const _0x5b62df=_0x43ae21;let _0x456b27='';for(const _0x56d6bb of _0x296917)_0x456b27+=_0x5b62df(0xd8)+_0x56e90c(_0x56d6bb[_0x5b62df(0xdc)],_0x56d6bb[_0x5b62df(0xe3)])+_0x5b62df(0xbb);return _0x3e48cc?_0x456b27:_0x43ea47(_0x456b27,{'limit':0x8c});}),this[_0x43ae21(0xe2)]=null,this[_0x43ae21(0xc0)]=new _0x2e83e2[(_0x43ae21(0xbf))](_0x5a2862,_0x24ab87,{'formatDateTime':_0x2e83e2[_0x43ae21(0xd5)]}),this[_0x43ae21(0xc0)][_0x43ae21(0xc6)](_0x43ae21(0xcc))['to'](this),this[_0x43ae21(0xc0)][_0x43ae21(0xba)](_0x43ae21(0xda),_0x43ae21(0xb1))['to'](this),this[_0x43ae21(0xc0)][_0x43ae21(0xb8)][_0x43ae21(0xc6)](_0x43ae21(0xcd))['to'](this,_0x43ae21(0xc1)),this[_0x43ae21(0xc0)][_0x43ae21(0xd3)][_0x43ae21(0xc6)](_0x43ae21(0xcd))['to'](this,_0x43ae21(0xc8)),this[_0x43ae21(0xe6)][_0x43ae21(0xe4)](this[_0x43ae21(0xc0)]),this[_0x43ae21(0xb5)]&&this[_0x43ae21(0xe6)][_0x43ae21(0xe4)](this[_0x43ae21(0xb5)]),this[_0x43ae21(0xca)]&&this[_0x43ae21(0xe6)][_0x43ae21(0xe4)](this[_0x43ae21(0xca)]),this[_0x43ae21(0xdd)](this[_0x43ae21(0xc7)]());}[_0x579939(0xc7)](){const _0x12e04b=_0x579939,_0x2a5ab0=this[_0x12e04b(0xe1)],_0x4dea84=[this[_0x12e04b(0xc0)]];return this[_0x12e04b(0xb5)]&&_0x4dea84[_0x12e04b(0xd4)](this[_0x12e04b(0xb5)]),this[_0x12e04b(0xca)]&&_0x4dea84[_0x12e04b(0xd4)](this[_0x12e04b(0xca)]),_0x4dea84[_0x12e04b(0xd4)](this[_0x12e04b(0xb4)]),{'tag':_0x12e04b(0xbe),'attributes':{'class':['ck',_0x12e04b(0xcf),_0x12e04b(0xbc),_0x2a5ab0['if'](_0x12e04b(0xe8),_0x12e04b(0xbd)),_0x2a5ab0['to'](_0x12e04b(0xd1),_0x155a69=>_0x12e04b(0xc3)+_0x155a69),this[_0x12e04b(0xc5)][_0x12e04b(0xcb)]&&_0x12e04b(0xb3)],'data-suggestion-id':this[_0x12e04b(0xde)]['id'],'data-thread-id':this[_0x12e04b(0xde)][_0x12e04b(0xc9)]['id'],'data-author-id':this[_0x12e04b(0xde)][_0x12e04b(0xc4)]['id'],'tabindex':0x0,'role':_0x12e04b(0xce),'aria-label':_0x2a5ab0['to'](_0x12e04b(0xd6)),'aria-describedby':this[_0x12e04b(0xb4)]['id']},'children':_0x4dea84};}[_0x579939(0xb7)](){const _0x18156e=_0x579939;super[_0x18156e(0xb7)](),this[_0x18156e(0xb5)]&&(this[_0x18156e(0xb5)][_0x18156e(0xba)](_0x18156e(0xb6))['to'](this),this[_0x18156e(0xb5)][_0x18156e(0xba)](_0x18156e(0xe5))['to'](this)),this[_0x18156e(0xca)]&&(this[_0x18156e(0xca)][_0x18156e(0xba)](_0x18156e(0xb6))['to'](this),this[_0x18156e(0xca)][_0x18156e(0xba)](_0x18156e(0xe5))['to'](this));}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x3ab693,_0x103682){const _0xbf6e57=_0x5749,_0x21f09d=_0x3ab693();while(!![]){try{const _0x258c6b=parseInt(_0xbf6e57(0x1ba))/0x1+parseInt(_0xbf6e57(0x1bc))/0x2+-parseInt(_0xbf6e57(0x1c4))/0x3+parseInt(_0xbf6e57(0x1d1))/0x4+-parseInt(_0xbf6e57(0x1d8))/0x5+parseInt(_0xbf6e57(0x1e4))/0x6*(-parseInt(_0xbf6e57(0x1bb))/0x7)+-parseInt(_0xbf6e57(0x1bf))/0x8*(-parseInt(_0xbf6e57(0x1d7))/0x9);if(_0x258c6b===_0x103682)break;else _0x21f09d['push'](_0x21f09d['shift']());}catch(_0x4dfb20){_0x21f09d['push'](_0x21f09d['shift']());}}}(_0x4fbe,0xbddcb));export function normalizeDescription(_0x1fbd30){const _0x410d0f=_0x5749;return Array[_0x410d0f(0x1e8)](_0x1fbd30)||(_0x1fbd30=[_0x1fbd30]),_0x1fbd30[_0x410d0f(0x1df)](_0x2195d1=>{const _0x47aa39=_0x410d0f,_0x57407c=_0x2195d1[_0x47aa39(0x1dc)][_0x47aa39(0x1c5)](/\*/g,''),_0x58d9ab=_0x2195d1[_0x47aa39(0x1c6)]?_0x47aa39(0x1e5)+_0x2195d1[_0x47aa39(0x1c6)][_0x47aa39(0x1e6)]+']':'';return'['+_0x2195d1[_0x47aa39(0x1c0)]+']\x20'+_0x57407c+_0x58d9ab;})[_0x410d0f(0x1da)](';\x20');}function _0x5749(_0x5721f5,_0x344013){const _0x4fbeac=_0x4fbe();return _0x5749=function(_0x574918,_0x3f0eee){_0x574918=_0x574918-0x1b7;let _0xc6049d=_0x4fbeac[_0x574918];return _0xc6049d;},_0x5749(_0x5721f5,_0x344013);}function _0x4fbe(){const _0x1c09ab=['title','length','map','isObject','schema','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','createPositionBefore','4489014uIRwZb','\x20[color\x20','value','next','isArray','innerHTML','deletion','\x22></span>','sort','createRange','start','getRanges','375911dAOAIR','7ACQdmW','973220rJeRKg','createPositionAt','execute','104mvHFEv','type','isCollapsed','split','createElement','4096287zkxqMU','replace','color','add','splice','\x22\x20title=\x22','isMultiRange','span','createPositionAfter','innerText','from','isInContent','attribute','294564JJLaiX','push','isIntersecting','change','isTouching','<span\x20class=\x22ck-suggestion-type\x22>','1943649MAbJBd','4261910NWtlWG','end','join','</span>','content'];_0x4fbe=function(){return _0x1c09ab;};return _0x4fbe();}export function renderDescription(_0xd93615,_0x1ad9d8){const _0x1ce222=_0x5749;let _0x79ae8f='';return _0x79ae8f+=_0xd93615[_0x1ce222(0x1c2)]('*')[_0x1ce222(0x1df)]((_0x46df2c,_0x19532c)=>_0x19532c%0x2!=0x0?_0x1ce222(0x1d6)+Zt(_0x46df2c)+_0x1ce222(0x1db):Zt(_0x46df2c))[_0x1ce222(0x1da)](''),_0x1ad9d8&&(_0x79ae8f+=_0x1ce222(0x1e2)+_0x1ad9d8[_0x1ce222(0x1e6)]+_0x1ce222(0x1c9)+_0x1ad9d8[_0x1ce222(0x1dd)]+_0x1ce222(0x1eb)),_0x79ae8f;}function Zt(_0x4d7da1){const _0x441aef=_0x5749,_0x25c8e2=document[_0x441aef(0x1c3)](_0x441aef(0x1cb));return _0x25c8e2[_0x441aef(0x1cd)]=_0x4d7da1,_0x25c8e2[_0x441aef(0x1e9)];}export function sortSuggestions(_0x5f453c){const _0x28e349=_0x5749;return _0x5f453c[_0x28e349(0x1ec)]((_0x3b0f65,_0x5cb9fa)=>_0x28e349(0x1d0)===_0x3b0f65[_0x28e349(0x1c0)]&&_0x28e349(0x1d0)!==_0x5cb9fa[_0x28e349(0x1c0)]?-0x1:_0x28e349(0x1d0)!==_0x3b0f65[_0x28e349(0x1c0)]&&_0x28e349(0x1d0)===_0x5cb9fa[_0x28e349(0x1c0)]?0x1:_0x28e349(0x1ea)==_0x3b0f65[_0x28e349(0x1c0)]&&_0x28e349(0x1ea)!=_0x5cb9fa[_0x28e349(0x1c0)]?-0x1:_0x28e349(0x1ea)!=_0x3b0f65[_0x28e349(0x1c0)]&&_0x28e349(0x1ea)==_0x5cb9fa[_0x28e349(0x1c0)]?0x1:0x0);}export function getSelectedSuggestions(_0x4771b4,_0x177327){const _0x5b44fd=_0x5749,_0x2040e5=Array[_0x5b44fd(0x1ce)](_0x4771b4[_0x5b44fd(0x1b9)]()),_0x194677=new Set();for(const _0x16e7e9 of _0x177327)if(_0x16e7e9[_0x5b44fd(0x1cf)]){for(const _0xfb566 of _0x2040e5)for(const _0x24d1d4 of _0x16e7e9[_0x5b44fd(0x1b9)]())(_0xfb566[_0x5b44fd(0x1d3)](_0x24d1d4)||_0x4771b4[_0x5b44fd(0x1c1)]&&!_0x16e7e9[_0x5b44fd(0x1ca)]&&_0x16e7e9[_0x5b44fd(0x1e7)]&&_0x24d1d4[_0x5b44fd(0x1d9)][_0x5b44fd(0x1d5)](_0xfb566[_0x5b44fd(0x1b8)]))&&_0x194677[_0x5b44fd(0x1c7)](_0x16e7e9);}return _0x194677;}export function getRangesOfBlockGroups(_0x311df0,_0x3b6256){const _0x3b0f09=_0x5749;let _0x145c4a,_0x1c49b4=0x0;const _0x43683b=[],_0x13c4b6=_0x3b6256[_0x3b0f09(0x1e1)];for(;_0x1c49b4<_0x311df0[_0x3b0f09(0x1de)];){const _0x4d41c8=_0x311df0[_0x1c49b4],_0x42c3be=_0x311df0[_0x1c49b4+0x1];_0x145c4a||(_0x145c4a=_0x3b6256[_0x3b0f09(0x1e3)](_0x4d41c8)),tn(_0x3b6256,_0x4d41c8,_0x42c3be)||(_0x43683b[_0x3b0f09(0x1d2)](_0x3b6256[_0x3b0f09(0x1b7)](_0x145c4a,_0x13c4b6[_0x3b0f09(0x1e0)](_0x4d41c8)?_0x3b6256[_0x3b0f09(0x1cc)](_0x4d41c8):_0x3b6256[_0x3b0f09(0x1bd)](_0x4d41c8,_0x3b0f09(0x1d9)))),_0x145c4a=null),_0x1c49b4++;}return _0x43683b;}function tn(_0xdb8c45,_0x1577db,_0x5ddf6d){const _0x95e52a=_0x5749;if(!_0x5ddf6d)return!0x1;const _0x1956a2=_0xdb8c45[_0x95e52a(0x1cc)](_0x1577db),_0x1f9ea2=_0xdb8c45[_0x95e52a(0x1e3)](_0x5ddf6d);return _0x1956a2[_0x95e52a(0x1d5)](_0x1f9ea2);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x189676,_0x5896c7,_0x379c85){const _0x4f8507=_0x5749;for(;_0x379c85[_0x4f8507(0x1de)];){const _0x43ee88=_0x379c85[_0x4f8507(0x1c8)](0x0,0x64);_0x189676[_0x4f8507(0x1d4)](()=>{const _0x35eff5=_0x4f8507;for(const _0x432dab of _0x43ee88)_0x432dab[_0x35eff5(0x1cf)]&&_0x5896c7[_0x35eff5(0x1be)](_0x432dab['id']);});}}
|