@ckeditor/ckeditor5-operations-compressor 41.3.1 → 41.4.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/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 _0x403df1=_0x4f40;(function(_0x5c7c55,_0x2c8578){var _0x51ac85=_0x4f40,_0x124b48=_0x5c7c55();while(!![]){try{var _0x35a811=parseInt(_0x51ac85(0xb1))/0x1+parseInt(_0x51ac85(0xb8))/0x2+parseInt(_0x51ac85(0xb7))/0x3*(-parseInt(_0x51ac85(0xaf))/0x4)+parseInt(_0x51ac85(0xb9))/0x5*(-parseInt(_0x51ac85(0xbe))/0x6)+parseInt(_0x51ac85(0xb5))/0x7*(-parseInt(_0x51ac85(0xbd))/0x8)+parseInt(_0x51ac85(0xb6))/0x9*(-parseInt(_0x51ac85(0xbb))/0xa)+parseInt(_0x51ac85(0xb2))/0xb*(parseInt(_0x51ac85(0xc1))/0xc);if(_0x35a811===_0x2c8578)break;else _0x124b48['push'](_0x124b48['shift']());}catch(_0x1ab5d3){_0x124b48['push'](_0x124b48['shift']());}}}(_0x21a4,0x894ba));function _0x4f40(_0x4f1aa8,_0x413086){var _0x21a424=_0x21a4();return _0x4f40=function(_0x4f40e6,_0x4bcb02){_0x4f40e6=_0x4f40e6-0xae;var _0x5c591e=_0x21a424[_0x4f40e6];return _0x5c591e;},_0x4f40(_0x4f1aa8,_0x413086);}module[_0x403df1(0xb0)]={'AttributeOperation':{'fields':{'range':{'type':_0x403df1(0xbc),'id':0x1},'key':{'type':_0x403df1(0xc0),'id':0x2},'oldValueBoolean':{'type':_0x403df1(0xb3),'id':0x3},'oldValueJson':{'type':_0x403df1(0xc0),'id':0x4},'newValueBoolean':{'type':_0x403df1(0xb3),'id':0x5},'newValueJson':{'type':_0x403df1(0xc0),'id':0x6},'wasUndone':{'type':_0x403df1(0xb3),'id':0x7}}},'InsertOperation':{'fields':{'position':{'type':_0x403df1(0xba),'id':0x1},'nodes':{'rule':_0x403df1(0xbf),'type':_0x403df1(0xae),'id':0x2},'shouldReceiveAttributes':{'type':_0x403df1(0xb3),'id':0x3},'wasUndone':{'type':_0x403df1(0xb3),'id':0x4}}},'MarkerOperation':{'fields':{'name':{'type':_0x403df1(0xc0),'id':0x1},'oldRange':{'type':_0x403df1(0xbc),'id':0x2},'newRange':{'type':_0x403df1(0xbc),'id':0x3},'affectsData':{'type':_0x403df1(0xb3),'id':0x4},'wasUndone':{'type':_0x403df1(0xb3),'id':0x5}}},'MergeOperation':{'fields':{'sourcePosition':{'type':_0x403df1(0xba),'id':0x1},'targetPosition':{'type':_0x403df1(0xba),'id':0x2},'graveyardPosition':{'type':_0x403df1(0xba),'id':0x3},'howMany':{'type':_0x403df1(0xb4),'id':0x4},'wasUndone':{'type':_0x403df1(0xb3),'id':0x5}}},'MoveOperation':{'fields':{'sourcePosition':{'type':_0x403df1(0xba),'id':0x1},'howMany':{'type':_0x403df1(0xb4),'id':0x2},'targetPosition':{'type':_0x403df1(0xba),'id':0x3},'wasUndone':{'type':_0x403df1(0xb3),'id':0x4}}},'RenameOperation':{'fields':{'position':{'type':_0x403df1(0xba),'id':0x1},'oldName':{'type':_0x403df1(0xc0),'id':0x2},'newName':{'type':_0x403df1(0xc0),'id':0x3},'wasUndone':{'type':_0x403df1(0xb3),'id':0x4}}},'RootAttributeOperation':{'fields':{'root':{'type':_0x403df1(0xc0),'id':0x1},'key':{'type':_0x403df1(0xc0),'id':0x2},'oldValueBoolean':{'type':_0x403df1(0xb3),'id':0x3},'oldValueJson':{'type':_0x403df1(0xc0),'id':0x4},'newValueBoolean':{'type':_0x403df1(0xb3),'id':0x5},'newValueJson':{'type':_0x403df1(0xc0),'id':0x6},'wasUndone':{'type':_0x403df1(0xb3),'id':0x7}}},'RootOperation':{'fields':{'rootName':{'type':_0x403df1(0xc0),'id':0x1},'elementName':{'type':_0x403df1(0xc0),'id':0x2},'isAdd':{'type':_0x403df1(0xb3),'id':0x3},'wasUndone':{'type':_0x403df1(0xb3),'id':0x4}}},'SplitOperation':{'fields':{'splitPosition':{'type':_0x403df1(0xba),'id':0x1},'graveyardPosition':{'type':_0x403df1(0xba),'id':0x2},'howMany':{'type':_0x403df1(0xb4),'id':0x3},'insertionPosition':{'type':_0x403df1(0xba),'id':0x4},'wasUndone':{'type':_0x403df1(0xb3),'id':0x5}}},'Position':{'fields':{'root':{'type':_0x403df1(0xc0),'id':0x1},'rootMain':{'type':_0x403df1(0xb3),'id':0x2},'rootGraveyard':{'type':_0x403df1(0xb3),'id':0x3},'path':{'rule':_0x403df1(0xbf),'type':_0x403df1(0xb4),'id':0x4},'stickiness':{'type':_0x403df1(0xc0),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x403df1(0xba),'id':0x1},'end':{'type':_0x403df1(0xba),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x403df1(0xc0),'id':0x1},'children':{'rule':_0x403df1(0xbf),'type':_0x403df1(0xae),'id':0x2},'data':{'type':_0x403df1(0xc0),'id':0x3},'attributesBoolean':{'keyType':_0x403df1(0xc0),'type':_0x403df1(0xb3),'id':0x4},'attributesJson':{'type':_0x403df1(0xc0),'id':0x5}}}};function _0x21a4(){var _0x36544d=['string','3071352FqLQLx','Element','60lvrucK','exports','949556RzNPHk','44oyfzbl','bool','uint32','2926ONGgUT','155889eDucel','122706WXyLsk','1857404mpIpym','445CIJEpq','Position','530wIfwlD','Range','15448nrGXXN','66ZjwzwL','repeated'];_0x21a4=function(){return _0x36544d;};return _0x21a4();}
|
package/src/protobuffactory.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x311c30=_0x5567;function _0x5567(_0x3eb73b,_0x2fa188){const _0x295a12=_0x295a();return _0x5567=function(_0x556780,_0x13987a){_0x556780=_0x556780-0x80;let _0x412d3e=_0x295a12[_0x556780];return _0x412d3e;},_0x5567(_0x3eb73b,_0x2fa188);}(function(_0x373c0b,_0x1ec4a0){const _0x59d35f=_0x5567,_0x384870=_0x373c0b();while(!![]){try{const _0x5ba932=parseInt(_0x59d35f(0x8a))/0x1+-parseInt(_0x59d35f(0x92))/0x2*(-parseInt(_0x59d35f(0x8b))/0x3)+-parseInt(_0x59d35f(0x88))/0x4+-parseInt(_0x59d35f(0x87))/0x5+parseInt(_0x59d35f(0x8f))/0x6*(parseInt(_0x59d35f(0x8d))/0x7)+-parseInt(_0x59d35f(0x83))/0x8+-parseInt(_0x59d35f(0x82))/0x9*(-parseInt(_0x59d35f(0x81))/0xa);if(_0x5ba932===_0x1ec4a0)break;else _0x384870['push'](_0x384870['shift']());}catch(_0xccd2e5){_0x384870['push'](_0x384870['shift']());}}}(_0x295a,0x34218));import*as _0x33a0b2 from'./lib/compiledmessages.js';export default class r{constructor(){const _0x221ea4=_0x5567;this[_0x221ea4(0x8e)]=_0x33a0b2;}[_0x311c30(0x86)](_0xd2ca02){const _0x5d6efd=_0x311c30;return new ProtobufDescriptor(this[_0x5d6efd(0x8e)][_0xd2ca02]);}}function _0x295a(){const _0x3950df=['decode','getDescriptor','1492180DfghOH','373220uFllsa','encode','227863TGTVas','100668kQtSYQ','create','4396hLxeBh','_protobufRoot','198EXskAj','finish','toObject','2ZDYbYx','compress','verify','_protobuf','10JEIDfs','5587902hsmYqw','2382016aSOutz','decompress'];_0x295a=function(){return _0x3950df;};return _0x295a();}export class ProtobufDescriptor{constructor(_0x2ed9ba){const _0x48634c=_0x311c30;this[_0x48634c(0x80)]=_0x2ed9ba;}[_0x311c30(0x93)](_0x4a2d3a){const _0x1f59dc=_0x311c30,_0x54fde5=this[_0x1f59dc(0x80)][_0x1f59dc(0x94)](_0x4a2d3a);if(_0x54fde5)throw Error(_0x54fde5);return this[_0x1f59dc(0x80)][_0x1f59dc(0x89)](this[_0x1f59dc(0x80)][_0x1f59dc(0x8c)](_0x4a2d3a))[_0x1f59dc(0x90)]();}[_0x311c30(0x84)](_0x45f9c3){const _0xe6df7=_0x311c30;return this[_0xe6df7(0x80)][_0xe6df7(0x91)](this[_0xe6df7(0x80)][_0xe6df7(0x85)](_0x45f9c3),{'oneofs':!0x0});}}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x3538(_0x23969a,_0x291efd){const _0x5792a5=_0x5792();return _0x3538=function(_0x35383f,_0x4ad988){_0x35383f=_0x35383f-0x18a;let _0x107c63=_0x5792a5[_0x35383f];return _0x107c63;},_0x3538(_0x23969a,_0x291efd);}(function(_0x304415,_0x38fa0c){const _0x5b7ff0=_0x3538,_0x144587=_0x304415();while(!![]){try{const _0x5df573=-parseInt(_0x5b7ff0(0x18d))/0x1*(parseInt(_0x5b7ff0(0x18f))/0x2)+-parseInt(_0x5b7ff0(0x191))/0x3+-parseInt(_0x5b7ff0(0x18b))/0x4*(parseInt(_0x5b7ff0(0x194))/0x5)+-parseInt(_0x5b7ff0(0x195))/0x6+-parseInt(_0x5b7ff0(0x199))/0x7+-parseInt(_0x5b7ff0(0x198))/0x8*(parseInt(_0x5b7ff0(0x197))/0x9)+parseInt(_0x5b7ff0(0x192))/0xa;if(_0x5df573===_0x38fa0c)break;else _0x144587['push'](_0x144587['shift']());}catch(_0x3da0ab){_0x144587['push'](_0x144587['shift']());}}}(_0x5792,0x69f51));function _0x5792(){const _0x3b8740=['rootMain','6qxykLs','root','1393191ZdnKrC','35100810JpKNNh','length','25ibjUOE','4717998cwramb','main','424494FXzeNE','96yogCHR','6029723hgUzjO','nodes','rootGraveyard','path','16160PHoygX','$graveyard','125923uwYRTZ'];_0x5792=function(){return _0x3b8740;};return _0x5792();}import{cloneDeep as _0x5f0eb3,isEqual as _0x907a05,isObject as _0x89d318}from'lodash-es';export function getPositionShiftedBy(_0x3610e2,_0x7bbc4f){const _0x433252=_0x3538,_0x40465c=_0x5f0eb3(_0x3610e2);return _0x40465c[_0x433252(0x18a)][_0x40465c[_0x433252(0x18a)][_0x433252(0x193)]-0x1]+=_0x7bbc4f,_0x40465c;}export function arePositionsEqual(_0x592fc8,_0x3a5e29){const _0x2bf1fa=_0x3538;return _0x592fc8[_0x2bf1fa(0x190)]===_0x3a5e29[_0x2bf1fa(0x190)]&&_0x907a05(_0x592fc8[_0x2bf1fa(0x18a)],_0x3a5e29[_0x2bf1fa(0x18a)]);}export function parsePositionBeforeCompression(_0x182343){const _0x95a6dc=_0x3538;P(_0x182343,_0x431dfb=>(_0x95a6dc(0x196)==_0x431dfb[_0x95a6dc(0x190)]?(_0x431dfb[_0x95a6dc(0x18e)]=!0x0,delete _0x431dfb[_0x95a6dc(0x190)]):_0x95a6dc(0x18c)==_0x431dfb[_0x95a6dc(0x190)]&&(_0x431dfb[_0x95a6dc(0x19b)]=!0x0,delete _0x431dfb[_0x95a6dc(0x190)]),_0x431dfb));}export function parsePositionAfterCompression(_0x5caea2){const _0x5e0bcd=_0x3538;P(_0x5caea2,_0x2a5012=>(_0x2a5012[_0x5e0bcd(0x18e)]?(_0x2a5012[_0x5e0bcd(0x190)]=_0x5e0bcd(0x196),delete _0x2a5012[_0x5e0bcd(0x18e)]):_0x2a5012[_0x5e0bcd(0x19b)]&&(_0x2a5012[_0x5e0bcd(0x190)]=_0x5e0bcd(0x18c),delete _0x2a5012[_0x5e0bcd(0x19b)]),_0x2a5012));}function P(_0x34a1dc,_0x5156bb){const _0x4664e1=_0x3538;for(const _0x4b735e in _0x34a1dc){const _0x4eb5e1=_0x34a1dc[_0x4b735e];_0x4664e1(0x19a)!==_0x4b735e&&_0x89d318(_0x4eb5e1)&&(_0x4eb5e1[_0x4664e1(0x18a)]&&(_0x4eb5e1[_0x4664e1(0x190)]||_0x4eb5e1[_0x4664e1(0x18e)]||_0x4eb5e1[_0x4664e1(0x19b)])?_0x34a1dc[_0x4b735e]=_0x5156bb(_0x4eb5e1):P(_0x4eb5e1,_0x5156bb));}return _0x34a1dc;}
|