@ckeditor/ckeditor5-operations-compressor 41.3.1 → 41.4.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/dist/index-content.css +4 -0
- package/dist/index-editor.css +4 -0
- package/dist/index.css +4 -0
- package/dist/index.js +23 -0
- package/dist/types/actioncompressor/actioncompressor.d.ts +64 -0
- package/dist/types/actioncompressor/deletingactioncompressor.d.ts +32 -0
- package/dist/types/actioncompressor/forwarddeletingactioncompressor.d.ts +32 -0
- package/dist/types/actioncompressor/typingactioncompressor.d.ts +32 -0
- package/dist/types/actioncompressor/userselectionactioncompressor.d.ts +20 -0
- package/dist/types/compressor.d.ts +49 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/operationcompressor/annotationmarkeroperationcompressor.d.ts +26 -0
- package/dist/types/operationcompressor/attributeoperationcompressor.d.ts +21 -0
- package/dist/types/operationcompressor/insertoperationcompressor.d.ts +21 -0
- package/dist/types/operationcompressor/markeroperationcompressor.d.ts +17 -0
- package/dist/types/operationcompressor/nooperationcompressor.d.ts +24 -0
- package/dist/types/operationcompressor/operationcompressor.d.ts +32 -0
- package/dist/types/protobufdescriptions.d.ts +8 -0
- package/dist/types/protobuffactory.d.ts +9 -0
- package/dist/types/utils.d.ts +34 -0
- package/package.json +5 -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.d.ts +5 -0
- package/src/index.js +23 -0
- package/src/lib/compiledmessages.js +1 -1
- 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/protobufdescriptions.js +1 -1
- package/src/protobuffactory.js +1 -1
- package/src/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
'use strict';
|
|
23
|
+
'use strict';var _0x2238b4=_0x3ee5;(function(_0x1d479e,_0x266b89){var _0x5f46b2=_0x3ee5,_0x3f9c34=_0x1d479e();while(!![]){try{var _0x4175f5=parseInt(_0x5f46b2(0x1e4))/0x1+parseInt(_0x5f46b2(0x1e5))/0x2+parseInt(_0x5f46b2(0x1e8))/0x3+-parseInt(_0x5f46b2(0x1e6))/0x4+-parseInt(_0x5f46b2(0x1ed))/0x5*(parseInt(_0x5f46b2(0x1ef))/0x6)+parseInt(_0x5f46b2(0x1f3))/0x7*(parseInt(_0x5f46b2(0x1f1))/0x8)+-parseInt(_0x5f46b2(0x1f0))/0x9*(parseInt(_0x5f46b2(0x1f4))/0xa);if(_0x4175f5===_0x266b89)break;else _0x3f9c34['push'](_0x3f9c34['shift']());}catch(_0x500647){_0x3f9c34['push'](_0x3f9c34['shift']());}}}(_0xd89a,0xc4272));function _0x3ee5(_0x16e687,_0x197e0a){var _0xd89a61=_0xd89a();return _0x3ee5=function(_0x3ee54e,_0x1ec4d6){_0x3ee54e=_0x3ee54e-0x1e3;var _0x1c2fd1=_0xd89a61[_0x3ee54e];return _0x1c2fd1;},_0x3ee5(_0x16e687,_0x197e0a);}function _0xd89a(){var _0xbb1426=['string','126ZgFRiX','855954wLRTqa','3896QZKXmi','exports','21763ExVAba','200NXHITk','bool','979517zuCVci','957572ABsbkk','2227300UvkRKs','Position','2630727SHxlwL','Element','Range','uint32','repeated','139740uDfAgK'];_0xd89a=function(){return _0xbb1426;};return _0xd89a();}module[_0x2238b4(0x1f2)]={'AttributeOperation':{'fields':{'range':{'type':_0x2238b4(0x1ea),'id':0x1},'key':{'type':_0x2238b4(0x1ee),'id':0x2},'oldValueBoolean':{'type':_0x2238b4(0x1e3),'id':0x3},'oldValueJson':{'type':_0x2238b4(0x1ee),'id':0x4},'newValueBoolean':{'type':_0x2238b4(0x1e3),'id':0x5},'newValueJson':{'type':_0x2238b4(0x1ee),'id':0x6},'wasUndone':{'type':_0x2238b4(0x1e3),'id':0x7}}},'InsertOperation':{'fields':{'position':{'type':_0x2238b4(0x1e7),'id':0x1},'nodes':{'rule':_0x2238b4(0x1ec),'type':_0x2238b4(0x1e9),'id':0x2},'shouldReceiveAttributes':{'type':_0x2238b4(0x1e3),'id':0x3},'wasUndone':{'type':_0x2238b4(0x1e3),'id':0x4}}},'MarkerOperation':{'fields':{'name':{'type':_0x2238b4(0x1ee),'id':0x1},'oldRange':{'type':_0x2238b4(0x1ea),'id':0x2},'newRange':{'type':_0x2238b4(0x1ea),'id':0x3},'affectsData':{'type':_0x2238b4(0x1e3),'id':0x4},'wasUndone':{'type':_0x2238b4(0x1e3),'id':0x5}}},'MergeOperation':{'fields':{'sourcePosition':{'type':_0x2238b4(0x1e7),'id':0x1},'targetPosition':{'type':_0x2238b4(0x1e7),'id':0x2},'graveyardPosition':{'type':_0x2238b4(0x1e7),'id':0x3},'howMany':{'type':_0x2238b4(0x1eb),'id':0x4},'wasUndone':{'type':_0x2238b4(0x1e3),'id':0x5}}},'MoveOperation':{'fields':{'sourcePosition':{'type':_0x2238b4(0x1e7),'id':0x1},'howMany':{'type':_0x2238b4(0x1eb),'id':0x2},'targetPosition':{'type':_0x2238b4(0x1e7),'id':0x3},'wasUndone':{'type':_0x2238b4(0x1e3),'id':0x4}}},'RenameOperation':{'fields':{'position':{'type':_0x2238b4(0x1e7),'id':0x1},'oldName':{'type':_0x2238b4(0x1ee),'id':0x2},'newName':{'type':_0x2238b4(0x1ee),'id':0x3},'wasUndone':{'type':_0x2238b4(0x1e3),'id':0x4}}},'RootAttributeOperation':{'fields':{'root':{'type':_0x2238b4(0x1ee),'id':0x1},'key':{'type':_0x2238b4(0x1ee),'id':0x2},'oldValueBoolean':{'type':_0x2238b4(0x1e3),'id':0x3},'oldValueJson':{'type':_0x2238b4(0x1ee),'id':0x4},'newValueBoolean':{'type':_0x2238b4(0x1e3),'id':0x5},'newValueJson':{'type':_0x2238b4(0x1ee),'id':0x6},'wasUndone':{'type':_0x2238b4(0x1e3),'id':0x7}}},'RootOperation':{'fields':{'rootName':{'type':_0x2238b4(0x1ee),'id':0x1},'elementName':{'type':_0x2238b4(0x1ee),'id':0x2},'isAdd':{'type':_0x2238b4(0x1e3),'id':0x3},'wasUndone':{'type':_0x2238b4(0x1e3),'id':0x4}}},'SplitOperation':{'fields':{'splitPosition':{'type':_0x2238b4(0x1e7),'id':0x1},'graveyardPosition':{'type':_0x2238b4(0x1e7),'id':0x2},'howMany':{'type':_0x2238b4(0x1eb),'id':0x3},'insertionPosition':{'type':_0x2238b4(0x1e7),'id':0x4},'wasUndone':{'type':_0x2238b4(0x1e3),'id':0x5}}},'Position':{'fields':{'root':{'type':_0x2238b4(0x1ee),'id':0x1},'rootMain':{'type':_0x2238b4(0x1e3),'id':0x2},'rootGraveyard':{'type':_0x2238b4(0x1e3),'id':0x3},'path':{'rule':_0x2238b4(0x1ec),'type':_0x2238b4(0x1eb),'id':0x4},'stickiness':{'type':_0x2238b4(0x1ee),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x2238b4(0x1e7),'id':0x1},'end':{'type':_0x2238b4(0x1e7),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x2238b4(0x1ee),'id':0x1},'children':{'rule':_0x2238b4(0x1ec),'type':_0x2238b4(0x1e9),'id':0x2},'data':{'type':_0x2238b4(0x1ee),'id':0x3},'attributesBoolean':{'keyType':_0x2238b4(0x1ee),'type':_0x2238b4(0x1e3),'id':0x4},'attributesJson':{'type':_0x2238b4(0x1ee),'id':0x5}}}};
|
package/src/protobuffactory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x234d0a=_0x1e35;function _0x5f0f(){const _0x137da7=['decode','finish','202TJAjZm','_protobuf','verify','412518wvrbOo','171900siePzg','593qxVeCn','527632JWhpdK','toObject','compress','21uCWhzZ','_protobufRoot','2004228XuyvJJ','8eHThKq','getDescriptor','1141385dgmkLv','526938KNJYPx','create','encode','143XwsbmU','decompress'];_0x5f0f=function(){return _0x137da7;};return _0x5f0f();}(function(_0x1b75aa,_0x5eceb3){const _0x5a788c=_0x1e35,_0x585b46=_0x1b75aa();while(!![]){try{const _0x165727=parseInt(_0x5a788c(0x91))/0x1*(parseInt(_0x5a788c(0x8c))/0x2)+parseInt(_0x5a788c(0x85))/0x3+-parseInt(_0x5a788c(0x92))/0x4+parseInt(_0x5a788c(0x84))/0x5+-parseInt(_0x5a788c(0x8f))/0x6*(parseInt(_0x5a788c(0x95))/0x7)+parseInt(_0x5a788c(0x82))/0x8*(-parseInt(_0x5a788c(0x81))/0x9)+parseInt(_0x5a788c(0x90))/0xa*(parseInt(_0x5a788c(0x88))/0xb);if(_0x165727===_0x5eceb3)break;else _0x585b46['push'](_0x585b46['shift']());}catch(_0x55e0dd){_0x585b46['push'](_0x585b46['shift']());}}}(_0x5f0f,0x1eddb));import*as _0x52e042 from'./lib/compiledmessages.js';function _0x1e35(_0x45c60f,_0x476856){const _0x5f0f08=_0x5f0f();return _0x1e35=function(_0x1e3555,_0x14b661){_0x1e3555=_0x1e3555-0x80;let _0x3e388a=_0x5f0f08[_0x1e3555];return _0x3e388a;},_0x1e35(_0x45c60f,_0x476856);}export default class r{constructor(){const _0x50bec1=_0x1e35;this[_0x50bec1(0x80)]=_0x52e042;}[_0x234d0a(0x83)](_0x43b230){const _0xab9890=_0x234d0a;return new ProtobufDescriptor(this[_0xab9890(0x80)][_0x43b230]);}}export class ProtobufDescriptor{constructor(_0x1cdee1){const _0x408395=_0x234d0a;this[_0x408395(0x8d)]=_0x1cdee1;}[_0x234d0a(0x94)](_0x3ca971){const _0x382de0=_0x234d0a,_0xdac2e5=this[_0x382de0(0x8d)][_0x382de0(0x8e)](_0x3ca971);if(_0xdac2e5)throw Error(_0xdac2e5);return this[_0x382de0(0x8d)][_0x382de0(0x87)](this[_0x382de0(0x8d)][_0x382de0(0x86)](_0x3ca971))[_0x382de0(0x8b)]();}[_0x234d0a(0x89)](_0x1e661d){const _0x4e7ffd=_0x234d0a;return this[_0x4e7ffd(0x8d)][_0x4e7ffd(0x93)](this[_0x4e7ffd(0x8d)][_0x4e7ffd(0x8a)](_0x1e661d),{'oneofs':!0x0});}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x2bb575,_0x1254e7){const _0x5f4db4=_0x57d7,_0x42eb8a=_0x2bb575();while(!![]){try{const _0x681ae0=parseInt(_0x5f4db4(0x126))/0x1*(parseInt(_0x5f4db4(0x123))/0x2)+parseInt(_0x5f4db4(0x120))/0x3*(parseInt(_0x5f4db4(0x125))/0x4)+parseInt(_0x5f4db4(0x127))/0x5+-parseInt(_0x5f4db4(0x11d))/0x6+parseInt(_0x5f4db4(0x119))/0x7*(-parseInt(_0x5f4db4(0x128))/0x8)+parseInt(_0x5f4db4(0x122))/0x9+parseInt(_0x5f4db4(0x118))/0xa*(-parseInt(_0x5f4db4(0x11c))/0xb);if(_0x681ae0===_0x1254e7)break;else _0x42eb8a['push'](_0x42eb8a['shift']());}catch(_0x376a5d){_0x42eb8a['push'](_0x42eb8a['shift']());}}}(_0x3b85,0x5e6c5));function _0x3b85(){const _0x100ea9=['rootMain','length','11870sgnhgB','31157UZdEAQ','main','path','1166HVWALi','1705656WjXjYy','root','rootGraveyard','114GQzfyb','$graveyard','1986669JfDOze','1214WCwhXA','nodes','73876hoEbww','811TpZsEr','493130monBfG','1288RnSoRb'];_0x3b85=function(){return _0x100ea9;};return _0x3b85();}import{cloneDeep as _0x5a5d88,isEqual as _0x1d1180,isObject as _0x51982c}from'lodash-es';function _0x57d7(_0x175000,_0x1764b4){const _0x3b85b1=_0x3b85();return _0x57d7=function(_0x57d750,_0xa8e72e){_0x57d750=_0x57d750-0x117;let _0x43e98a=_0x3b85b1[_0x57d750];return _0x43e98a;},_0x57d7(_0x175000,_0x1764b4);}export function getPositionShiftedBy(_0x504642,_0xb98742){const _0x348e6b=_0x57d7,_0x5cf083=_0x5a5d88(_0x504642);return _0x5cf083[_0x348e6b(0x11b)][_0x5cf083[_0x348e6b(0x11b)][_0x348e6b(0x117)]-0x1]+=_0xb98742,_0x5cf083;}export function arePositionsEqual(_0x442d59,_0x3c4a9e){const _0x37f8d4=_0x57d7;return _0x442d59[_0x37f8d4(0x11e)]===_0x3c4a9e[_0x37f8d4(0x11e)]&&_0x1d1180(_0x442d59[_0x37f8d4(0x11b)],_0x3c4a9e[_0x37f8d4(0x11b)]);}export function parsePositionBeforeCompression(_0x5537e8){const _0x2cf632=_0x57d7;P(_0x5537e8,_0x256f97=>(_0x2cf632(0x11a)==_0x256f97[_0x2cf632(0x11e)]?(_0x256f97[_0x2cf632(0x129)]=!0x0,delete _0x256f97[_0x2cf632(0x11e)]):_0x2cf632(0x121)==_0x256f97[_0x2cf632(0x11e)]&&(_0x256f97[_0x2cf632(0x11f)]=!0x0,delete _0x256f97[_0x2cf632(0x11e)]),_0x256f97));}export function parsePositionAfterCompression(_0x4424bb){const _0x3bd9c9=_0x57d7;P(_0x4424bb,_0x36b7e6=>(_0x36b7e6[_0x3bd9c9(0x129)]?(_0x36b7e6[_0x3bd9c9(0x11e)]=_0x3bd9c9(0x11a),delete _0x36b7e6[_0x3bd9c9(0x129)]):_0x36b7e6[_0x3bd9c9(0x11f)]&&(_0x36b7e6[_0x3bd9c9(0x11e)]=_0x3bd9c9(0x121),delete _0x36b7e6[_0x3bd9c9(0x11f)]),_0x36b7e6));}function P(_0x385c79,_0x814fa9){const _0x16064f=_0x57d7;for(const _0x588ed7 in _0x385c79){const _0x525e12=_0x385c79[_0x588ed7];_0x16064f(0x124)!==_0x588ed7&&_0x51982c(_0x525e12)&&(_0x525e12[_0x16064f(0x11b)]&&(_0x525e12[_0x16064f(0x11e)]||_0x525e12[_0x16064f(0x129)]||_0x525e12[_0x16064f(0x11f)])?_0x385c79[_0x588ed7]=_0x814fa9(_0x525e12):P(_0x525e12,_0x814fa9));}return _0x385c79;}
|