@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250629.0 → 0.0.0-nightly-20250630.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 _0x5563b2=_0x1749;function _0x1749(_0x2d2b16,_0x119651){const _0x25244a=_0x2524();return _0x1749=function(_0x174922,_0x3407b9){_0x174922=_0x174922-0xbb;let _0x4e4360=_0x25244a[_0x174922];return _0x4e4360;},_0x1749(_0x2d2b16,_0x119651);}(function(_0x400aae,_0x2c1b86){const _0x1f6d95=_0x1749,_0x49d9fa=_0x400aae();while(!![]){try{const _0x5caa93=-parseInt(_0x1f6d95(0xc2))/0x1+parseInt(_0x1f6d95(0xc8))/0x2+parseInt(_0x1f6d95(0xc9))/0x3*(-parseInt(_0x1f6d95(0xf2))/0x4)+parseInt(_0x1f6d95(0xcf))/0x5+-parseInt(_0x1f6d95(0xc6))/0x6*(parseInt(_0x1f6d95(0xc0))/0x7)+-parseInt(_0x1f6d95(0xcb))/0x8+parseInt(_0x1f6d95(0xdf))/0x9;if(_0x5caa93===_0x2c1b86)break;else _0x49d9fa['push'](_0x49d9fa['shift']());}catch(_0x4f4b82){_0x49d9fa['push'](_0x49d9fa['shift']());}}}(_0x2524,0x69bec));function _0x2524(){const _0x34259c=['discardButton','isActive','commentThreadInputView','11403360Lxvpwc','commentThread','render','editorReady','set','discardSuggestion','listitem','ck-rounded-corners','acceptButton','suggestionView','author','bindTemplate','ck-suggestion-wrapper','<p>','SuggestionView','disableComments','_descriptionElement','content','_config','2596732eRWQqR','add','delegate','descriptionParts','</p>','focusables','367654osytGO','description','210499AhDivs','type','div','setTemplate','36TvVggu','acceptSuggestion','389462pAeYAS','3MjdMCB','editorDestroyed','1362280Flvmja','push','color','ck-suggestion-wrapper--active','1582300YdilXb','canAccept','canDiscard','formatDateTime','ck-suggestion--disabled-comments','ariaLabel','commentsListView','ariaDescriptionView','getTemplate','bind','_model','ck-suggestion-','isEnabled'];_0x2524=function(){return _0x34259c;};return _0x2524();}import{BaseSuggestionThreadView as _0x4ab56b}from'./basesuggestionthreadview.js';import{trimHtml as _0xcfa1d}from'ckeditor5-collaboration/src/collaboration-core.js';import{renderDescription as _0x2535d2}from'../../utils/utils.js';export class SuggestionThreadView extends _0x4ab56b{[_0x5563b2(0xe8)];[_0x5563b2(0xef)];constructor(_0x1eadfb,_0x407224,_0x1fe3e5,_0x5c065b){const _0x26f298=_0x5563b2;super(_0x1eadfb,_0x407224,_0x1fe3e5,_0x5c065b),this[_0x26f298(0xe3)](_0x26f298(0xc3),''),this[_0x26f298(0xd8)](_0x26f298(0xc3))['to'](this,_0x26f298(0xbd),_0x5f39f3=>_0x5f39f3&&_0x5f39f3[0x0]?_0x5f39f3[0x0][_0x26f298(0xc3)]:''),this[_0x26f298(0xd8)](_0x26f298(0xc1))['to'](this,_0x26f298(0xbd),this,_0x26f298(0xdd),(_0x108436,_0x2f6ec1)=>{const _0x422019=_0x26f298;let _0x4bb18b='';for(const _0x4aa360 of _0x108436)_0x4bb18b+=_0x422019(0xec)+_0x2535d2(_0x4aa360[_0x422019(0xf0)],_0x4aa360[_0x422019(0xcd)])+_0x422019(0xbe);return _0x2f6ec1?_0x4bb18b:_0xcfa1d(_0x4bb18b,{'limit':0x8c});}),this[_0x26f298(0xef)]=null,this[_0x26f298(0xe8)]=new _0x5c065b[(_0x26f298(0xed))](_0x1eadfb,_0x407224,{'formatDateTime':_0x5c065b[_0x26f298(0xd2)]}),this[_0x26f298(0xe8)][_0x26f298(0xd8)](_0x26f298(0xc1))['to'](this),this[_0x26f298(0xe8)][_0x26f298(0xbc)](_0x26f298(0xc7),_0x26f298(0xe4))['to'](this),this[_0x26f298(0xe8)][_0x26f298(0xe7)][_0x26f298(0xd8)](_0x26f298(0xdb))['to'](this,_0x26f298(0xd0)),this[_0x26f298(0xe8)][_0x26f298(0xdc)][_0x26f298(0xd8)](_0x26f298(0xdb))['to'](this,_0x26f298(0xd1)),this[_0x26f298(0xbf)][_0x26f298(0xbb)](this[_0x26f298(0xe8)]),this[_0x26f298(0xd5)]&&this[_0x26f298(0xbf)][_0x26f298(0xbb)](this[_0x26f298(0xd5)]),this[_0x26f298(0xde)]&&this[_0x26f298(0xbf)][_0x26f298(0xbb)](this[_0x26f298(0xde)]),this[_0x26f298(0xc5)](this[_0x26f298(0xd7)]());}[_0x5563b2(0xd7)](){const _0x3808c0=_0x5563b2,_0x5630a9=this[_0x3808c0(0xea)],_0x1b6930=[this[_0x3808c0(0xe8)]];return this[_0x3808c0(0xd5)]&&_0x1b6930[_0x3808c0(0xcc)](this[_0x3808c0(0xd5)]),this[_0x3808c0(0xde)]&&_0x1b6930[_0x3808c0(0xcc)](this[_0x3808c0(0xde)]),_0x1b6930[_0x3808c0(0xcc)](this[_0x3808c0(0xd6)]),{'tag':_0x3808c0(0xc4),'attributes':{'class':['ck',_0x3808c0(0xe6),_0x3808c0(0xeb),_0x5630a9['if'](_0x3808c0(0xdd),_0x3808c0(0xce)),_0x5630a9['to'](_0x3808c0(0xc3),_0x3f6918=>_0x3808c0(0xda)+_0x3f6918),this[_0x3808c0(0xf1)][_0x3808c0(0xee)]&&_0x3808c0(0xd3)],'data-suggestion-id':this[_0x3808c0(0xd9)]['id'],'data-thread-id':this[_0x3808c0(0xd9)][_0x3808c0(0xe0)]['id'],'data-author-id':this[_0x3808c0(0xd9)][_0x3808c0(0xe9)]['id'],'tabindex':0x0,'role':_0x3808c0(0xe5),'aria-label':_0x5630a9['to'](_0x3808c0(0xd4)),'aria-describedby':this[_0x3808c0(0xd6)]['id']},'children':_0x1b6930};}[_0x5563b2(0xe1)](){const _0x2a29db=_0x5563b2;super[_0x2a29db(0xe1)](),this[_0x2a29db(0xd5)]&&(this[_0x2a29db(0xd5)][_0x2a29db(0xbc)](_0x2a29db(0xe2))['to'](this),this[_0x2a29db(0xd5)][_0x2a29db(0xbc)](_0x2a29db(0xca))['to'](this)),this[_0x2a29db(0xde)]&&(this[_0x2a29db(0xde)][_0x2a29db(0xbc)](_0x2a29db(0xe2))['to'](this),this[_0x2a29db(0xde)][_0x2a29db(0xbc)](_0x2a29db(0xca))['to'](this));}}
|
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5f3174,_0xbb537d){const _0x4876b2=_0x4828,_0x37b987=_0x5f3174();while(!![]){try{const _0x5476d2=parseInt(_0x4876b2(0x13c))/0x1*(-parseInt(_0x4876b2(0x132))/0x2)+-parseInt(_0x4876b2(0x12a))/0x3+-parseInt(_0x4876b2(0x154))/0x4*(-parseInt(_0x4876b2(0x12d))/0x5)+parseInt(_0x4876b2(0x131))/0x6*(-parseInt(_0x4876b2(0x147))/0x7)+parseInt(_0x4876b2(0x12e))/0x8+parseInt(_0x4876b2(0x126))/0x9*(parseInt(_0x4876b2(0x14a))/0xa)+parseInt(_0x4876b2(0x141))/0xb;if(_0x5476d2===_0xbb537d)break;else _0x37b987['push'](_0x37b987['shift']());}catch(_0x22a2bf){_0x37b987['push'](_0x37b987['shift']());}}}(_0x3de3,0x88da5));export function normalizeDescription(_0x4e876c){const _0x4722a3=_0x4828;return Array[_0x4722a3(0x129)](_0x4e876c)||(_0x4e876c=[_0x4e876c]),_0x4e876c[_0x4722a3(0x153)](_0x1930bb=>{const _0x4bf381=_0x4722a3,_0x118505=_0x1930bb[_0x4bf381(0x125)][_0x4bf381(0x12f)](/\*/g,''),_0x5bfea3=_0x1930bb[_0x4bf381(0x12c)]?_0x4bf381(0x15a)+_0x1930bb[_0x4bf381(0x12c)][_0x4bf381(0x138)]+']':'';return'['+_0x1930bb[_0x4bf381(0x123)]+']\x20'+_0x118505+_0x5bfea3;})[_0x4722a3(0x151)](';\x20');}export function renderDescription(_0x57e331,_0x4a664e){const _0x26b683=_0x4828;let _0x52580a='';return _0x52580a+=_0x57e331[_0x26b683(0x150)]('*')[_0x26b683(0x153)]((_0x2423f8,_0x13745a)=>_0x13745a%0x2!=0x0?_0x26b683(0x14e)+Yt(_0x2423f8)+_0x26b683(0x155):Yt(_0x2423f8))[_0x26b683(0x151)](''),_0x4a664e&&(_0x52580a+=_0x26b683(0x14c)+_0x4a664e[_0x26b683(0x138)]+_0x26b683(0x134)+_0x4a664e[_0x26b683(0x13a)]+_0x26b683(0x13f)),_0x52580a;}function Yt(_0x50041e){const _0x4a9c37=_0x4828,_0x2d88cf=document[_0x4a9c37(0x142)](_0x4a9c37(0x139));return _0x2d88cf[_0x4a9c37(0x159)]=_0x50041e,_0x2d88cf[_0x4a9c37(0x156)];}export function sortSuggestions(_0x36437b){const _0x644da8=_0x4828;return _0x36437b[_0x644da8(0x146)]((_0x8c8eb7,_0x3d3cad)=>_0x644da8(0x14d)===_0x8c8eb7[_0x644da8(0x123)]&&_0x644da8(0x14d)!==_0x3d3cad[_0x644da8(0x123)]?-0x1:_0x644da8(0x14d)!==_0x8c8eb7[_0x644da8(0x123)]&&_0x644da8(0x14d)===_0x3d3cad[_0x644da8(0x123)]?0x1:_0x644da8(0x130)==_0x8c8eb7[_0x644da8(0x123)]&&_0x644da8(0x130)!=_0x3d3cad[_0x644da8(0x123)]?-0x1:_0x644da8(0x130)!=_0x8c8eb7[_0x644da8(0x123)]&&_0x644da8(0x130)==_0x3d3cad[_0x644da8(0x123)]?0x1:0x0);}export function getSelectedSuggestions(_0x24f0c0,_0xc143d2){const _0x4b88fd=_0x4828,_0x3ef739=Array[_0x4b88fd(0x145)](_0x24f0c0[_0x4b88fd(0x127)]()),_0x224f84=new Set();for(const _0xf68feb of _0xc143d2)if(_0xf68feb[_0x4b88fd(0x128)]){for(const _0x466f5d of _0x3ef739)for(const _0x229ad3 of _0xf68feb[_0x4b88fd(0x127)]())(_0x466f5d[_0x4b88fd(0x13e)](_0x229ad3)||_0x24f0c0[_0x4b88fd(0x14b)]&&!_0xf68feb[_0x4b88fd(0x149)]&&_0xf68feb[_0x4b88fd(0x135)]&&_0x229ad3[_0x4b88fd(0x133)][_0x4b88fd(0x124)](_0x466f5d[_0x4b88fd(0x13b)]))&&_0x224f84[_0x4b88fd(0x136)](_0xf68feb);}return _0x224f84;}export function getRangesOfBlockGroups(_0x31e169,_0x37ffa8){const _0x104c68=_0x4828;let _0x4207aa,_0x2a6466=0x0;const _0x431691=[],_0x402afc=_0x37ffa8[_0x104c68(0x13d)];for(;_0x2a6466<_0x31e169[_0x104c68(0x137)];){const _0x3a9573=_0x31e169[_0x2a6466],_0x12aad4=_0x31e169[_0x2a6466+0x1];_0x4207aa||(_0x4207aa=_0x37ffa8[_0x104c68(0x152)](_0x3a9573)),Zt(_0x37ffa8,_0x3a9573,_0x12aad4)||(_0x431691[_0x104c68(0x158)](_0x37ffa8[_0x104c68(0x143)](_0x4207aa,_0x402afc[_0x104c68(0x14f)](_0x3a9573)?_0x37ffa8[_0x104c68(0x148)](_0x3a9573):_0x37ffa8[_0x104c68(0x144)](_0x3a9573,_0x104c68(0x133)))),_0x4207aa=null),_0x2a6466++;}return _0x431691;}function Zt(_0x13c766,_0x33dd45,_0x362f3b){const _0x6599c9=_0x4828;if(!_0x362f3b)return!0x1;const _0x2d8409=_0x13c766[_0x6599c9(0x148)](_0x33dd45),_0x3a0256=_0x13c766[_0x6599c9(0x152)](_0x362f3b);return _0x2d8409[_0x6599c9(0x124)](_0x3a0256);}function _0x3de3(){const _0xa9d2d2=['createPositionBefore','map','124GNUtWI','</span>','innerHTML','execute','push','innerText','\x20[color\x20','type','isTouching','content','2924217VWhbWt','getRanges','isInContent','isArray','1499454UFZBEb','change','color','28485fTheFl','7526152KqyHCQ','replace','deletion','18006WcPRMw','166096aifyiT','end','\x22\x20title=\x22','next','add','length','value','span','title','start','4MDDkXg','schema','isIntersecting','\x22></span>','splice','9455303aIvqYq','createElement','createRange','createPositionAt','from','sort','2121njiKZK','createPositionAfter','isMultiRange','10kycPns','isCollapsed','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','attribute','<span\x20class=\x22ck-suggestion-type\x22>','isObject','split','join'];_0x3de3=function(){return _0xa9d2d2;};return _0x3de3();}function _0x4828(_0x3509ff,_0x317a90){const _0x3de3fd=_0x3de3();return _0x4828=function(_0x48282d,_0xc47b91){_0x48282d=_0x48282d-0x123;let _0x51a943=_0x3de3fd[_0x48282d];return _0x51a943;},_0x4828(_0x3509ff,_0x317a90);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x3edaf5,_0x438f49,_0x1374b1){const _0x55d825=_0x4828;for(;_0x1374b1[_0x55d825(0x137)];){const _0x8aaa9c=_0x1374b1[_0x55d825(0x140)](0x0,0x64);_0x3edaf5[_0x55d825(0x12b)](()=>{const _0x17d97d=_0x55d825;for(const _0x21b49f of _0x8aaa9c)_0x21b49f[_0x17d97d(0x128)]&&_0x438f49[_0x17d97d(0x157)](_0x21b49f['id']);});}}
|