@ckeditor/ckeditor5-operations-compressor 41.4.1 → 42.0.0-alpha.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/README.md +6 -0
- package/dist/index.js +2 -1
- package/package.json +2 -2
- package/src/actioncompressor/actioncompressor.js +1 -1
- package/src/actioncompressor/deletingactioncompressor.js +1 -1
- package/src/actioncompressor/forwarddeletingactioncompressor.js +1 -1
- package/src/actioncompressor/typingactioncompressor.js +1 -1
- package/src/actioncompressor/userselectionactioncompressor.js +1 -1
- package/src/compressor.js +1 -1
- package/src/index.js +1 -1
- package/src/lib/compiledmessages.d.ts +1 -1435
- package/src/lib/compiledmessages.js +2 -1
- package/src/lib/protobufdescriptions.js +23 -0
- package/src/operationcompressor/annotationmarkeroperationcompressor.js +1 -1
- package/src/operationcompressor/attributeoperationcompressor.js +1 -1
- package/src/operationcompressor/insertoperationcompressor.js +1 -1
- package/src/operationcompressor/markeroperationcompressor.js +1 -1
- package/src/operationcompressor/nooperationcompressor.js +1 -1
- package/src/operationcompressor/operationcompressor.js +1 -1
- package/src/protobuffactory.js +1 -1
- package/src/utils.js +1 -1
- package/dist/types/protobufdescriptions.d.ts +0 -8
- package/src/protobufdescriptions.d.ts +0 -4
- package/src/protobufdescriptions.js +0 -23
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x339a96=_0x5bdd;function _0x5bdd(_0x188716,_0x49dd2e){const _0x1eadcc=_0x1ead();return _0x5bdd=function(_0x5bdd9d,_0x559661){_0x5bdd9d=_0x5bdd9d-0x103;let _0x3b9a36=_0x1eadcc[_0x5bdd9d];return _0x3b9a36;},_0x5bdd(_0x188716,_0x49dd2e);}(function(_0x1156ec,_0x750221){const _0x23cc82=_0x5bdd,_0x587b70=_0x1156ec();while(!![]){try{const _0x143514=parseInt(_0x23cc82(0x103))/0x1*(parseInt(_0x23cc82(0x114))/0x2)+parseInt(_0x23cc82(0x112))/0x3*(-parseInt(_0x23cc82(0x106))/0x4)+parseInt(_0x23cc82(0x109))/0x5*(parseInt(_0x23cc82(0x10b))/0x6)+parseInt(_0x23cc82(0x113))/0x7*(parseInt(_0x23cc82(0x110))/0x8)+-parseInt(_0x23cc82(0x10d))/0x9+-parseInt(_0x23cc82(0x111))/0xa*(-parseInt(_0x23cc82(0x10f))/0xb)+-parseInt(_0x23cc82(0x115))/0xc;if(_0x143514===_0x750221)break;else _0x587b70['push'](_0x587b70['shift']());}catch(_0x78162c){_0x587b70['push'](_0x587b70['shift']());}}}(_0x1ead,0x2145c));function _0x1ead(){const _0x191c40=['types','shift','8088MKuYIr','_id','_protobufDescriptor','296455ugLNMt','buffers','6DIlEdz','compress','57078winFQT','push','907621iFwdGn','1025512gYuzLm','20FIgAfC','303Fjxssc','7NtYVdE','447866DJKiJE','2755044xJatmc','_operationName','__className','decompress','1PtCBTF'];_0x1ead=function(){return _0x191c40;};return _0x1ead();}import{parsePositionBeforeCompression as _0x509ed3,parsePositionAfterCompression as _0x24e065}from'../utils.js';export default class e{constructor(_0xfc088a,_0x5c7672,_0x436ab0){const _0x8abf26=_0x5bdd;this[_0x8abf26(0x107)]=_0xfc088a,this[_0x8abf26(0x116)]=_0x5c7672,this[_0x8abf26(0x108)]=_0x436ab0;}[_0x339a96(0x10c)](_0x4546e1,_0x5406ad){const _0x1d9d71=_0x339a96,_0x51ba36=_0x5406ad[_0x1d9d71(0x105)]();return _0x509ed3(_0x51ba36),_0x4546e1[_0x1d9d71(0x10a)][_0x1d9d71(0x10e)](this[_0x1d9d71(0x108)][_0x1d9d71(0x10c)](_0x51ba36)),_0x4546e1[_0x1d9d71(0x104)][_0x1d9d71(0x10e)](this[_0x1d9d71(0x107)]),!0x0;}[_0x339a96(0x118)](_0xc38585,_0x4c0675){const _0x1fc1cf=_0x339a96;_0x4c0675[_0x1fc1cf(0x104)][_0x1fc1cf(0x105)]();const _0x25bd0e=this[_0x1fc1cf(0x108)][_0x1fc1cf(0x118)](_0x4c0675[_0x1fc1cf(0x10a)][_0x1fc1cf(0x105)]());_0x24e065(_0x25bd0e),_0x25bd0e[_0x1fc1cf(0x117)]=this[_0x1fc1cf(0x116)],_0xc38585[_0x1fc1cf(0x10e)](_0x25bd0e);}}
|
package/src/protobuffactory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fbff4=_0x4b99;function _0x4b99(_0x48041e,_0x5cbb8a){const _0x29a0d7=_0x29a0();return _0x4b99=function(_0x4b9915,_0x7c0606){_0x4b9915=_0x4b9915-0x17b;let _0x1f695a=_0x29a0d7[_0x4b9915];return _0x1f695a;},_0x4b99(_0x48041e,_0x5cbb8a);}(function(_0x23505f,_0x482411){const _0x746116=_0x4b99,_0x3eb169=_0x23505f();while(!![]){try{const _0x2103d1=-parseInt(_0x746116(0x18b))/0x1+-parseInt(_0x746116(0x186))/0x2*(parseInt(_0x746116(0x18f))/0x3)+parseInt(_0x746116(0x18a))/0x4*(parseInt(_0x746116(0x17e))/0x5)+parseInt(_0x746116(0x17d))/0x6+parseInt(_0x746116(0x190))/0x7*(-parseInt(_0x746116(0x180))/0x8)+parseInt(_0x746116(0x182))/0x9*(parseInt(_0x746116(0x191))/0xa)+parseInt(_0x746116(0x185))/0xb*(-parseInt(_0x746116(0x189))/0xc);if(_0x2103d1===_0x482411)break;else _0x3eb169['push'](_0x3eb169['shift']());}catch(_0x4cbff7){_0x3eb169['push'](_0x3eb169['shift']());}}}(_0x29a0,0xee521));import{messages as _0x325a83}from'./lib/compiledmessages.js';export default class r{constructor(){const _0x9d8291=_0x4b99;this[_0x9d8291(0x181)]=_0x325a83;}[_0x1fbff4(0x183)](_0x53f32c){const _0x373d15=_0x1fbff4;return new ProtobufDescriptor(this[_0x373d15(0x181)][_0x53f32c]);}}function _0x29a0(){const _0x9d12ee=['compress','7340766QlBmUr','545yArNug','_protobuf','8yPjGut','_protobufRoot','8469NFcDfJ','getDescriptor','decode','583VIVoib','4826QqTaOQ','decompress','verify','20004fAKesC','59464znTeSf','1474728NGgYtZ','create','encode','finish','1851ESnGSp','1044337iziHSh','14170FIezmF','toObject'];_0x29a0=function(){return _0x9d12ee;};return _0x29a0();}export class ProtobufDescriptor{constructor(_0x2229aa){const _0x3288fb=_0x1fbff4;this[_0x3288fb(0x17f)]=_0x2229aa;}[_0x1fbff4(0x17c)](_0x163338){const _0x2c1e5a=_0x1fbff4,_0x284002=this[_0x2c1e5a(0x17f)][_0x2c1e5a(0x188)](_0x163338);if(_0x284002)throw Error(_0x284002);return this[_0x2c1e5a(0x17f)][_0x2c1e5a(0x18d)](this[_0x2c1e5a(0x17f)][_0x2c1e5a(0x18c)](_0x163338))[_0x2c1e5a(0x18e)]();}[_0x1fbff4(0x187)](_0x3ef724){const _0x2d75df=_0x1fbff4;return this[_0x2d75df(0x17f)][_0x2d75df(0x17b)](this[_0x2d75df(0x17f)][_0x2d75df(0x184)](_0x3ef724),{'oneofs':!0x0});}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0xcd072d,_0x3a8c3f){const _0x28519b=_0x2168,_0x27af69=_0xcd072d();while(!![]){try{const _0x936bac=parseInt(_0x28519b(0x1a4))/0x1+parseInt(_0x28519b(0x19d))/0x2+parseInt(_0x28519b(0x197))/0x3*(-parseInt(_0x28519b(0x198))/0x4)+-parseInt(_0x28519b(0x19a))/0x5*(-parseInt(_0x28519b(0x19f))/0x6)+-parseInt(_0x28519b(0x19e))/0x7+-parseInt(_0x28519b(0x1a1))/0x8*(-parseInt(_0x28519b(0x1a2))/0x9)+parseInt(_0x28519b(0x1a3))/0xa*(-parseInt(_0x28519b(0x199))/0xb);if(_0x936bac===_0x3a8c3f)break;else _0x27af69['push'](_0x27af69['shift']());}catch(_0x54f19c){_0x27af69['push'](_0x27af69['shift']());}}}(_0x5c4f,0xb77a8));import{cloneDeep as _0x557747,isEqual as _0x3c0a9a,isObject as _0x122a15}from'lodash-es';export function getPositionShiftedBy(_0x1b5a41,_0x2a46b6){const _0x38a943=_0x2168,_0x5692df=_0x557747(_0x1b5a41);return _0x5692df[_0x38a943(0x19b)][_0x5692df[_0x38a943(0x19b)][_0x38a943(0x194)]-0x1]+=_0x2a46b6,_0x5692df;}export function arePositionsEqual(_0x56f95b,_0x16f71f){const _0x5cbeb6=_0x2168;return _0x56f95b[_0x5cbeb6(0x1a5)]===_0x16f71f[_0x5cbeb6(0x1a5)]&&_0x3c0a9a(_0x56f95b[_0x5cbeb6(0x19b)],_0x16f71f[_0x5cbeb6(0x19b)]);}export function parsePositionBeforeCompression(_0xedd269){const _0x4ec0a7=_0x2168;P(_0xedd269,_0x57f1d6=>(_0x4ec0a7(0x193)==_0x57f1d6[_0x4ec0a7(0x1a5)]?(_0x57f1d6[_0x4ec0a7(0x195)]=!0x0,delete _0x57f1d6[_0x4ec0a7(0x1a5)]):_0x4ec0a7(0x1a0)==_0x57f1d6[_0x4ec0a7(0x1a5)]&&(_0x57f1d6[_0x4ec0a7(0x196)]=!0x0,delete _0x57f1d6[_0x4ec0a7(0x1a5)]),_0x57f1d6));}function _0x5c4f(){const _0x50e2a6=['$graveyard','45712htHFJV','1485ZKHHuL','70JCwZdF','846669rBikAZ','root','main','length','rootMain','rootGraveyard','2207847jtTBGC','4EobbOB','1319714oGjDch','2590hODKiA','path','nodes','963372ixwVKg','6181028iUbYzc','10878hGsOFb'];_0x5c4f=function(){return _0x50e2a6;};return _0x5c4f();}export function parsePositionAfterCompression(_0x33f714){const _0x35375a=_0x2168;P(_0x33f714,_0x57273b=>(_0x57273b[_0x35375a(0x195)]?(_0x57273b[_0x35375a(0x1a5)]=_0x35375a(0x193),delete _0x57273b[_0x35375a(0x195)]):_0x57273b[_0x35375a(0x196)]&&(_0x57273b[_0x35375a(0x1a5)]=_0x35375a(0x1a0),delete _0x57273b[_0x35375a(0x196)]),_0x57273b));}function _0x2168(_0x2ea259,_0x237f47){const _0x5c4fbf=_0x5c4f();return _0x2168=function(_0x21684c,_0x150e88){_0x21684c=_0x21684c-0x193;let _0x19bd4b=_0x5c4fbf[_0x21684c];return _0x19bd4b;},_0x2168(_0x2ea259,_0x237f47);}function P(_0x2e4cb1,_0x41e6ce){const _0x493417=_0x2168;for(const _0x4195ee in _0x2e4cb1){const _0x3764f7=_0x2e4cb1[_0x4195ee];_0x493417(0x19c)!==_0x4195ee&&_0x122a15(_0x3764f7)&&(_0x3764f7[_0x493417(0x19b)]&&(_0x3764f7[_0x493417(0x1a5)]||_0x3764f7[_0x493417(0x195)]||_0x3764f7[_0x493417(0x196)])?_0x2e4cb1[_0x4195ee]=_0x41e6ce(_0x3764f7):P(_0x3764f7,_0x41e6ce));}return _0x2e4cb1;}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
7
|
-
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
8
|
-
*/
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* +---------------------------------------------------------------------------------+
|
|
8
|
-
* | |
|
|
9
|
-
* | Hello stranger! |
|
|
10
|
-
* | |
|
|
11
|
-
* | |
|
|
12
|
-
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
-
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
-
* | are forbidden and will result in legal consequences. |
|
|
15
|
-
* | |
|
|
16
|
-
* | |
|
|
17
|
-
* +---------------------------------------------------------------------------------+
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
'use strict';function _0x405a(_0x2823d2,_0x126a2c){var _0x209138=_0x2091();return _0x405a=function(_0x405aff,_0x36f2fa){_0x405aff=_0x405aff-0x8e;var _0x32b2b8=_0x209138[_0x405aff];return _0x32b2b8;},_0x405a(_0x2823d2,_0x126a2c);}var _0x393486=_0x405a;function _0x2091(){var _0x210b4a=['3253666rdjgIb','string','168372NRKCOv','1649664YEJcjH','repeated','Element','7CHhEjH','5750312NssSAu','1KHGhtI','1357346kRpGMS','bool','11zSQxvS','30fEBJhW','Position','Range','28pPLwRx','uint32','8CDXXVc','exports','9VYTBtT','9326436tHaslx','7564170Yrmqxi'];_0x2091=function(){return _0x210b4a;};return _0x2091();}(function(_0x7f8d0c,_0x13093f){var _0x149006=_0x405a,_0x4388c0=_0x7f8d0c();while(!![]){try{var _0x154092=-parseInt(_0x149006(0x96))/0x1*(parseInt(_0x149006(0x97))/0x2)+-parseInt(_0x149006(0x91))/0x3*(-parseInt(_0x149006(0x9f))/0x4)+parseInt(_0x149006(0x9a))/0x5*(parseInt(_0x149006(0x90))/0x6)+-parseInt(_0x149006(0x94))/0x7*(-parseInt(_0x149006(0x95))/0x8)+parseInt(_0x149006(0xa1))/0x9*(parseInt(_0x149006(0xa3))/0xa)+parseInt(_0x149006(0x99))/0xb*(-parseInt(_0x149006(0xa2))/0xc)+parseInt(_0x149006(0x8e))/0xd*(-parseInt(_0x149006(0x9d))/0xe);if(_0x154092===_0x13093f)break;else _0x4388c0['push'](_0x4388c0['shift']());}catch(_0x1b3753){_0x4388c0['push'](_0x4388c0['shift']());}}}(_0x2091,0xc01e2));module[_0x393486(0xa0)]={'AttributeOperation':{'fields':{'range':{'type':_0x393486(0x9c),'id':0x1},'key':{'type':_0x393486(0x8f),'id':0x2},'oldValueBoolean':{'type':_0x393486(0x98),'id':0x3},'oldValueJson':{'type':_0x393486(0x8f),'id':0x4},'newValueBoolean':{'type':_0x393486(0x98),'id':0x5},'newValueJson':{'type':_0x393486(0x8f),'id':0x6},'wasUndone':{'type':_0x393486(0x98),'id':0x7}}},'InsertOperation':{'fields':{'position':{'type':_0x393486(0x9b),'id':0x1},'nodes':{'rule':_0x393486(0x92),'type':_0x393486(0x93),'id':0x2},'shouldReceiveAttributes':{'type':_0x393486(0x98),'id':0x3},'wasUndone':{'type':_0x393486(0x98),'id':0x4}}},'MarkerOperation':{'fields':{'name':{'type':_0x393486(0x8f),'id':0x1},'oldRange':{'type':_0x393486(0x9c),'id':0x2},'newRange':{'type':_0x393486(0x9c),'id':0x3},'affectsData':{'type':_0x393486(0x98),'id':0x4},'wasUndone':{'type':_0x393486(0x98),'id':0x5}}},'MergeOperation':{'fields':{'sourcePosition':{'type':_0x393486(0x9b),'id':0x1},'targetPosition':{'type':_0x393486(0x9b),'id':0x2},'graveyardPosition':{'type':_0x393486(0x9b),'id':0x3},'howMany':{'type':_0x393486(0x9e),'id':0x4},'wasUndone':{'type':_0x393486(0x98),'id':0x5}}},'MoveOperation':{'fields':{'sourcePosition':{'type':_0x393486(0x9b),'id':0x1},'howMany':{'type':_0x393486(0x9e),'id':0x2},'targetPosition':{'type':_0x393486(0x9b),'id':0x3},'wasUndone':{'type':_0x393486(0x98),'id':0x4}}},'RenameOperation':{'fields':{'position':{'type':_0x393486(0x9b),'id':0x1},'oldName':{'type':_0x393486(0x8f),'id':0x2},'newName':{'type':_0x393486(0x8f),'id':0x3},'wasUndone':{'type':_0x393486(0x98),'id':0x4}}},'RootAttributeOperation':{'fields':{'root':{'type':_0x393486(0x8f),'id':0x1},'key':{'type':_0x393486(0x8f),'id':0x2},'oldValueBoolean':{'type':_0x393486(0x98),'id':0x3},'oldValueJson':{'type':_0x393486(0x8f),'id':0x4},'newValueBoolean':{'type':_0x393486(0x98),'id':0x5},'newValueJson':{'type':_0x393486(0x8f),'id':0x6},'wasUndone':{'type':_0x393486(0x98),'id':0x7}}},'RootOperation':{'fields':{'rootName':{'type':_0x393486(0x8f),'id':0x1},'elementName':{'type':_0x393486(0x8f),'id':0x2},'isAdd':{'type':_0x393486(0x98),'id':0x3},'wasUndone':{'type':_0x393486(0x98),'id':0x4}}},'SplitOperation':{'fields':{'splitPosition':{'type':_0x393486(0x9b),'id':0x1},'graveyardPosition':{'type':_0x393486(0x9b),'id':0x2},'howMany':{'type':_0x393486(0x9e),'id':0x3},'insertionPosition':{'type':_0x393486(0x9b),'id':0x4},'wasUndone':{'type':_0x393486(0x98),'id':0x5}}},'Position':{'fields':{'root':{'type':_0x393486(0x8f),'id':0x1},'rootMain':{'type':_0x393486(0x98),'id':0x2},'rootGraveyard':{'type':_0x393486(0x98),'id':0x3},'path':{'rule':_0x393486(0x92),'type':_0x393486(0x9e),'id':0x4},'stickiness':{'type':_0x393486(0x8f),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x393486(0x9b),'id':0x1},'end':{'type':_0x393486(0x9b),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x393486(0x8f),'id':0x1},'children':{'rule':_0x393486(0x92),'type':_0x393486(0x93),'id':0x2},'data':{'type':_0x393486(0x8f),'id':0x3},'attributesBoolean':{'keyType':_0x393486(0x8f),'type':_0x393486(0x98),'id':0x4},'attributesJson':{'type':_0x393486(0x8f),'id':0x5}}}};
|