@ckeditor/ckeditor5-operations-compressor 40.1.0 → 41.0.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +16 -16
  2. package/LICENSE.md +1 -1
  3. package/README.md +2 -2
  4. package/package.json +3 -2
  5. package/src/actioncompressor/actioncompressor.d.ts +2 -2
  6. package/src/actioncompressor/actioncompressor.js +2 -2
  7. package/src/actioncompressor/deletingactioncompressor.d.ts +3 -3
  8. package/src/actioncompressor/deletingactioncompressor.js +2 -2
  9. package/src/actioncompressor/forwarddeletingactioncompressor.d.ts +3 -3
  10. package/src/actioncompressor/forwarddeletingactioncompressor.js +2 -2
  11. package/src/actioncompressor/typingactioncompressor.d.ts +3 -3
  12. package/src/actioncompressor/typingactioncompressor.js +2 -2
  13. package/src/actioncompressor/userselectionactioncompressor.d.ts +3 -3
  14. package/src/actioncompressor/userselectionactioncompressor.js +2 -2
  15. package/src/compressor.d.ts +1 -1
  16. package/src/compressor.js +2 -2
  17. package/src/lib/compiledmessages.js +2 -2
  18. package/src/operationcompressor/annotationmarkeroperationcompressor.d.ts +5 -5
  19. package/src/operationcompressor/annotationmarkeroperationcompressor.js +2 -2
  20. package/src/operationcompressor/attributeoperationcompressor.d.ts +4 -4
  21. package/src/operationcompressor/attributeoperationcompressor.js +2 -2
  22. package/src/operationcompressor/insertoperationcompressor.d.ts +4 -4
  23. package/src/operationcompressor/insertoperationcompressor.js +2 -2
  24. package/src/operationcompressor/markeroperationcompressor.d.ts +4 -4
  25. package/src/operationcompressor/markeroperationcompressor.js +2 -2
  26. package/src/operationcompressor/nooperationcompressor.d.ts +4 -4
  27. package/src/operationcompressor/nooperationcompressor.js +2 -2
  28. package/src/operationcompressor/operationcompressor.d.ts +4 -4
  29. package/src/operationcompressor/operationcompressor.js +2 -2
  30. package/src/protobufdescriptions.d.ts +1 -1
  31. package/src/protobufdescriptions.js +2 -2
  32. package/src/protobuffactory.d.ts +1 -1
  33. package/src/protobuffactory.js +2 -2
  34. package/src/utils.d.ts +1 -1
  35. package/src/utils.js +2 -2
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3da0=['_protobufDescriptor','keys','_id','decompress','every','attributes','_deserializeNodesAttributes','boolean','__className','parse','nodes','_areValuesBoolean','children','shift','push','compress','stringify','attributesBoolean','types','_serializeNodesAttributes','attributesJson'];(function(_0x495018,_0x3da04f){const _0x40987b=function(_0x52933e){while(--_0x52933e){_0x495018['push'](_0x495018['shift']());}};_0x40987b(++_0x3da04f);}(_0x3da0,0x198));const _0x4098=function(_0x495018,_0x3da04f){_0x495018=_0x495018-0x0;let _0x40987b=_0x3da0[_0x495018];return _0x40987b;};import _0x3be053 from'./operationcompressor';import{parsePositionBeforeCompression as _0x82d58b,parsePositionAfterCompression as _0x8f6c5d}from'../utils';export default class s extends _0x3be053{[_0x4098('0x6')](_0x4bc9fa,_0x39f4ec){const _0x5349d1=_0x39f4ec[_0x4098('0x4')]();return this['_serializeNodesAttributes'](_0x5349d1['nodes']),_0x82d58b(_0x5349d1),_0x4bc9fa['buffers']['push'](this[_0x4098('0xc')]['compress'](_0x5349d1)),_0x4bc9fa[_0x4098('0x9')]['push'](this[_0x4098('0xe')]),!0x0;}['decompress'](_0x3929de,_0x49870f){const {types:_0xf4d157,buffers:_0x5b2179}=_0x49870f,_0xa2536f=this[_0x4098('0xc')][_0x4098('0xf')](_0x5b2179[_0x4098('0x4')]());_0xf4d157[_0x4098('0x4')](),_0xa2536f[_0x4098('0x1')]||(_0xa2536f['nodes']=[]),this[_0x4098('0x12')](_0xa2536f['nodes']),_0x8f6c5d(_0xa2536f),_0xa2536f[_0x4098('0x14')]=this['_operationName'],_0x3929de[_0x4098('0x5')](_0xa2536f);}[_0x4098('0xa')](_0x3765e4){for(const _0xf19693 of _0x3765e4){if(_0xf19693[_0x4098('0x11')]){const _0x5e25ac=_0xf19693[_0x4098('0x11')];this[_0x4098('0x2')](_0x5e25ac)?_0xf19693['attributesBoolean']=_0x5e25ac:_0xf19693[_0x4098('0xb')]=JSON[_0x4098('0x7')](_0x5e25ac);}_0xf19693[_0x4098('0x3')]&&this['_serializeNodesAttributes'](_0xf19693['children']);}}[_0x4098('0x12')](_0x30ba00){for(const _0x14da21 of _0x30ba00)(_0x14da21[_0x4098('0x8')]||_0x14da21[_0x4098('0xb')])&&(_0x14da21['attributesBoolean']?(_0x14da21['attributes']=_0x14da21[_0x4098('0x8')],delete _0x14da21[_0x4098('0x8')]):(_0x14da21[_0x4098('0x11')]=JSON[_0x4098('0x0')](_0x14da21[_0x4098('0xb')]),delete _0x14da21[_0x4098('0xb')])),_0x14da21[_0x4098('0x3')]&&this[_0x4098('0x12')](_0x14da21['children']);}[_0x4098('0x2')](_0x53e46e){return Object[_0x4098('0xd')](_0x53e46e)[_0x4098('0x10')](_0x3a8fad=>_0x4098('0x13')==typeof _0x53e46e[_0x3a8fad]);}}
23
+ const _0x4b21=['_id','parse','_protobufDescriptor','compress','push','attributesBoolean','nodes','_serializeNodesAttributes','stringify','decompress','types','every','keys','boolean','attributesJson','shift','children','_areValuesBoolean','attributes','_deserializeNodesAttributes'];(function(_0x64e502,_0x4b219b){const _0x4c9440=function(_0x36fece){while(--_0x36fece){_0x64e502['push'](_0x64e502['shift']());}};_0x4c9440(++_0x4b219b);}(_0x4b21,0x7e));const _0x4c94=function(_0x64e502,_0x4b219b){_0x64e502=_0x64e502-0x0;let _0x4c9440=_0x4b21[_0x64e502];return _0x4c9440;};import _0x164eae from'./operationcompressor.js';import{parsePositionBeforeCompression as _0x138d41,parsePositionAfterCompression as _0x2b90f1}from'../utils.js';export default class i extends _0x164eae{[_0x4c94('0x11')](_0x46176f,_0xe6dd58){const _0x324135=_0xe6dd58[_0x4c94('0x9')]();return this['_serializeNodesAttributes'](_0x324135[_0x4c94('0x0')]),_0x138d41(_0x324135),_0x46176f['buffers'][_0x4c94('0x12')](this[_0x4c94('0x10')][_0x4c94('0x11')](_0x324135)),_0x46176f[_0x4c94('0x4')][_0x4c94('0x12')](this[_0x4c94('0xe')]),!0x0;}[_0x4c94('0x3')](_0x4c3efe,_0x57de24){const {types:_0x2eafe0,buffers:_0x4195b7}=_0x57de24,_0x1fd451=this[_0x4c94('0x10')][_0x4c94('0x3')](_0x4195b7['shift']());_0x2eafe0[_0x4c94('0x9')](),_0x1fd451[_0x4c94('0x0')]||(_0x1fd451['nodes']=[]),this[_0x4c94('0xd')](_0x1fd451[_0x4c94('0x0')]),_0x2b90f1(_0x1fd451),_0x1fd451['__className']=this['_operationName'],_0x4c3efe['push'](_0x1fd451);}['_serializeNodesAttributes'](_0x4738c2){for(const _0x5975af of _0x4738c2){if(_0x5975af[_0x4c94('0xc')]){const _0xeef328=_0x5975af[_0x4c94('0xc')];this[_0x4c94('0xb')](_0xeef328)?_0x5975af[_0x4c94('0x13')]=_0xeef328:_0x5975af[_0x4c94('0x8')]=JSON[_0x4c94('0x2')](_0xeef328);}_0x5975af[_0x4c94('0xa')]&&this[_0x4c94('0x1')](_0x5975af[_0x4c94('0xa')]);}}['_deserializeNodesAttributes'](_0x5796ee){for(const _0x3a653f of _0x5796ee)(_0x3a653f[_0x4c94('0x13')]||_0x3a653f['attributesJson'])&&(_0x3a653f[_0x4c94('0x13')]?(_0x3a653f[_0x4c94('0xc')]=_0x3a653f[_0x4c94('0x13')],delete _0x3a653f[_0x4c94('0x13')]):(_0x3a653f[_0x4c94('0xc')]=JSON[_0x4c94('0xf')](_0x3a653f['attributesJson']),delete _0x3a653f[_0x4c94('0x8')])),_0x3a653f[_0x4c94('0xa')]&&this[_0x4c94('0xd')](_0x3a653f['children']);}['_areValuesBoolean'](_0x378216){return Object[_0x4c94('0x6')](_0x378216)[_0x4c94('0x5')](_0x230036=>_0x4c94('0x7')==typeof _0x378216[_0x230036]);}}
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import OperationCompressor from './operationcompressor';
6
- import type { CompressedOperationsData } from '../compressor';
7
- import type { MarkerOperation } from 'ckeditor5/src/engine';
5
+ import OperationCompressor from './operationcompressor.js';
6
+ import type { CompressedOperationsData } from '../compressor.js';
7
+ import type { MarkerOperation } from 'ckeditor5/src/engine.js';
8
8
  export default class MarkerOperationCompressor extends OperationCompressor {
9
9
  /**
10
10
  * @inheritDoc
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3249=['length','decompress','oldRange','newRange'];(function(_0x5b438a,_0x3249f6){const _0x4a5be6=function(_0x3072f1){while(--_0x3072f1){_0x5b438a['push'](_0x5b438a['shift']());}};_0x4a5be6(++_0x3249f6);}(_0x3249,0x1e3));const _0x4a5b=function(_0x5b438a,_0x3249f6){_0x5b438a=_0x5b438a-0x0;let _0x4a5be6=_0x3249[_0x5b438a];return _0x4a5be6;};import _0x1a0937 from'./operationcompressor';export default class n extends _0x1a0937{[_0x4a5b('0x2')](_0x5c5ce0,_0x11fac4){super[_0x4a5b('0x2')](_0x5c5ce0,_0x11fac4);const _0x5cf88c=_0x5c5ce0[_0x5c5ce0[_0x4a5b('0x1')]-0x1];_0x5cf88c[_0x4a5b('0x3')]||(_0x5cf88c[_0x4a5b('0x3')]=null),_0x5cf88c[_0x4a5b('0x0')]||(_0x5cf88c[_0x4a5b('0x0')]=null);}}
23
+ const _0x4bfb=['decompress','newRange','oldRange','length'];(function(_0x38d14c,_0x4bfbcb){const _0x4f95af=function(_0x52d519){while(--_0x52d519){_0x38d14c['push'](_0x38d14c['shift']());}};_0x4f95af(++_0x4bfbcb);}(_0x4bfb,0x152));const _0x4f95=function(_0x38d14c,_0x4bfbcb){_0x38d14c=_0x38d14c-0x0;let _0x4f95af=_0x4bfb[_0x38d14c];return _0x4f95af;};import _0x4e83e6 from'./operationcompressor.js';export default class n extends _0x4e83e6{[_0x4f95('0x2')](_0x1c6048,_0x540e77){super[_0x4f95('0x2')](_0x1c6048,_0x540e77);const _0x4f046e=_0x1c6048[_0x1c6048[_0x4f95('0x1')]-0x1];_0x4f046e[_0x4f95('0x0')]||(_0x4f046e['oldRange']=null),_0x4f046e[_0x4f95('0x3')]||(_0x4f046e[_0x4f95('0x3')]=null);}}
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import OperationCompressor from './operationcompressor';
6
- import type { CompressedOperationsData } from '../compressor';
7
- import type { Operation } from 'ckeditor5/src/engine';
5
+ import OperationCompressor from './operationcompressor.js';
6
+ import type { CompressedOperationsData } from '../compressor.js';
7
+ import type { Operation } from 'ckeditor5/src/engine.js';
8
8
  /**
9
9
  * @extends OperationCompressor
10
10
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x20f8=['shift','push','compress','_operationName','decompress'];(function(_0x3a8b26,_0x20f8e9){var _0xeb9eea=function(_0x345346){while(--_0x345346){_0x3a8b26['push'](_0x3a8b26['shift']());}};_0xeb9eea(++_0x20f8e9);}(_0x20f8,0x15a));var _0xeb9e=function(_0x3a8b26,_0x20f8e9){_0x3a8b26=_0x3a8b26-0x0;var _0xeb9eea=_0x20f8[_0x3a8b26];return _0xeb9eea;};import _0x1f9bf0 from'./operationcompressor';export default class p extends _0x1f9bf0{[_0xeb9e('0x1')](_0x171638,_0x57c5ed){return _0x57c5ed[_0xeb9e('0x4')](),_0x171638['types']['push'](this['_id']),!0x0;}[_0xeb9e('0x3')](_0x6adf99,_0x3e8ff6){_0x3e8ff6['types'][_0xeb9e('0x4')](),_0x6adf99[_0xeb9e('0x0')]({'__className':this[_0xeb9e('0x2')]});}}
23
+ var _0x4119=['_id','push','types','shift','_operationName','decompress','compress'];(function(_0x2e08c3,_0x41193d){var _0x21c123=function(_0x3acb69){while(--_0x3acb69){_0x2e08c3['push'](_0x2e08c3['shift']());}};_0x21c123(++_0x41193d);}(_0x4119,0x125));var _0x21c1=function(_0x2e08c3,_0x41193d){_0x2e08c3=_0x2e08c3-0x0;var _0x21c123=_0x4119[_0x2e08c3];return _0x21c123;};import _0x4c0469 from'./operationcompressor.js';export default class p extends _0x4c0469{[_0x21c1('0x0')](_0x28d61d,_0x4203e8){return _0x4203e8['shift'](),_0x28d61d[_0x21c1('0x3')]['push'](this[_0x21c1('0x1')]),!0x0;}[_0x21c1('0x6')](_0x5628ec,_0x15519c){_0x15519c[_0x21c1('0x3')][_0x21c1('0x4')](),_0x5628ec[_0x21c1('0x2')]({'__className':this[_0x21c1('0x5')]});}}
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import type { CompressedOperationsData } from '../compressor';
6
- import type { ProtobufDescriptor } from '../protobuffactory';
7
- import type { Operation } from 'ckeditor5/src/engine';
5
+ import type { CompressedOperationsData } from '../compressor.js';
6
+ import type { ProtobufDescriptor } from '../protobuffactory.js';
7
+ import type { Operation } from 'ckeditor5/src/engine.js';
8
8
  /**
9
9
  * Compresses and decompresses single operation to the binary format.
10
10
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1120=['compress','__className','types','_operationName','buffers','_id','_protobufDescriptor','decompress','shift','push'];(function(_0x53b09a,_0x112069){const _0xb09c12=function(_0x520be2){while(--_0x520be2){_0x53b09a['push'](_0x53b09a['shift']());}};_0xb09c12(++_0x112069);}(_0x1120,0x1c3));const _0xb09c=function(_0x53b09a,_0x112069){_0x53b09a=_0x53b09a-0x0;let _0xb09c12=_0x1120[_0x53b09a];return _0xb09c12;};import{parsePositionBeforeCompression as _0x369ca5,parsePositionAfterCompression as _0x4740fe}from'../utils';export default class e{constructor(_0x50a516,_0x323277,_0x5e2a54){this[_0xb09c('0x4')]=_0x50a516,this['_operationName']=_0x323277,this['_protobufDescriptor']=_0x5e2a54;}[_0xb09c('0x9')](_0x29ed02,_0x795629){const _0x19e362=_0x795629[_0xb09c('0x7')]();return _0x369ca5(_0x19e362),_0x29ed02[_0xb09c('0x3')][_0xb09c('0x8')](this[_0xb09c('0x5')]['compress'](_0x19e362)),_0x29ed02[_0xb09c('0x1')][_0xb09c('0x8')](this[_0xb09c('0x4')]),!0x0;}['decompress'](_0x5ecefa,_0x295e6e){_0x295e6e[_0xb09c('0x1')][_0xb09c('0x7')]();const _0x599733=this[_0xb09c('0x5')][_0xb09c('0x6')](_0x295e6e[_0xb09c('0x3')]['shift']());_0x4740fe(_0x599733),_0x599733[_0xb09c('0x0')]=this[_0xb09c('0x2')],_0x5ecefa['push'](_0x599733);}}
23
+ const _0x15d7=['buffers','shift','types','_protobufDescriptor','compress','push','_id','_operationName','decompress'];(function(_0x252523,_0x15d7e1){const _0x34560b=function(_0x1eb30e){while(--_0x1eb30e){_0x252523['push'](_0x252523['shift']());}};_0x34560b(++_0x15d7e1);}(_0x15d7,0x100));const _0x3456=function(_0x252523,_0x15d7e1){_0x252523=_0x252523-0x0;let _0x34560b=_0x15d7[_0x252523];return _0x34560b;};import{parsePositionBeforeCompression as _0x48ddec,parsePositionAfterCompression as _0x457c6e}from'../utils.js';export default class e{constructor(_0x4212b5,_0x5aff1f,_0x5952b0){this[_0x3456('0x2')]=_0x4212b5,this[_0x3456('0x3')]=_0x5aff1f,this['_protobufDescriptor']=_0x5952b0;}[_0x3456('0x0')](_0x5a5222,_0x450230){const _0x10bde1=_0x450230[_0x3456('0x6')]();return _0x48ddec(_0x10bde1),_0x5a5222[_0x3456('0x5')][_0x3456('0x1')](this[_0x3456('0x8')][_0x3456('0x0')](_0x10bde1)),_0x5a5222[_0x3456('0x7')]['push'](this['_id']),!0x0;}[_0x3456('0x4')](_0x3c6e6c,_0xb5b881){_0xb5b881[_0x3456('0x7')][_0x3456('0x6')]();const _0x23d9a5=this[_0x3456('0x8')]['decompress'](_0xb5b881[_0x3456('0x5')][_0x3456('0x6')]());_0x457c6e(_0x23d9a5),_0x23d9a5['__className']=this[_0x3456('0x3')],_0x3c6e6c[_0x3456('0x1')](_0x23d9a5);}}
@@ -1,4 +1,4 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x2aad=['Position','exports','Element','Range','bool','uint32','string','repeated'];(function(_0x34bc72,_0x2aadb8){var _0x519a7f=function(_0x5602f4){while(--_0x5602f4){_0x34bc72['push'](_0x34bc72['shift']());}};_0x519a7f(++_0x2aadb8);}(_0x2aad,0x141));var _0x519a=function(_0x34bc72,_0x2aadb8){_0x34bc72=_0x34bc72-0x0;var _0x519a7f=_0x2aad[_0x34bc72];return _0x519a7f;};'use strict';module[_0x519a('0x0')]={'AttributeOperation':{'fields':{'range':{'type':_0x519a('0x2'),'id':0x1},'key':{'type':'string','id':0x2},'oldValueBoolean':{'type':_0x519a('0x3'),'id':0x3},'oldValueJson':{'type':_0x519a('0x5'),'id':0x4},'newValueBoolean':{'type':_0x519a('0x3'),'id':0x5},'newValueJson':{'type':'string','id':0x6},'wasUndone':{'type':'bool','id':0x7}}},'InsertOperation':{'fields':{'position':{'type':_0x519a('0x7'),'id':0x1},'nodes':{'rule':'repeated','type':_0x519a('0x1'),'id':0x2},'shouldReceiveAttributes':{'type':_0x519a('0x3'),'id':0x3},'wasUndone':{'type':_0x519a('0x3'),'id':0x4}}},'MarkerOperation':{'fields':{'name':{'type':_0x519a('0x5'),'id':0x1},'oldRange':{'type':_0x519a('0x2'),'id':0x2},'newRange':{'type':'Range','id':0x3},'affectsData':{'type':'bool','id':0x4},'wasUndone':{'type':'bool','id':0x5}}},'MergeOperation':{'fields':{'sourcePosition':{'type':_0x519a('0x7'),'id':0x1},'targetPosition':{'type':_0x519a('0x7'),'id':0x2},'graveyardPosition':{'type':_0x519a('0x7'),'id':0x3},'howMany':{'type':_0x519a('0x4'),'id':0x4},'wasUndone':{'type':'bool','id':0x5}}},'MoveOperation':{'fields':{'sourcePosition':{'type':'Position','id':0x1},'howMany':{'type':_0x519a('0x4'),'id':0x2},'targetPosition':{'type':_0x519a('0x7'),'id':0x3},'wasUndone':{'type':_0x519a('0x3'),'id':0x4}}},'RenameOperation':{'fields':{'position':{'type':'Position','id':0x1},'oldName':{'type':_0x519a('0x5'),'id':0x2},'newName':{'type':_0x519a('0x5'),'id':0x3},'wasUndone':{'type':_0x519a('0x3'),'id':0x4}}},'RootAttributeOperation':{'fields':{'root':{'type':'string','id':0x1},'key':{'type':_0x519a('0x5'),'id':0x2},'oldValueBoolean':{'type':'bool','id':0x3},'oldValueJson':{'type':_0x519a('0x5'),'id':0x4},'newValueBoolean':{'type':_0x519a('0x3'),'id':0x5},'newValueJson':{'type':_0x519a('0x5'),'id':0x6},'wasUndone':{'type':_0x519a('0x3'),'id':0x7}}},'RootOperation':{'fields':{'rootName':{'type':_0x519a('0x5'),'id':0x1},'elementName':{'type':'string','id':0x2},'isAdd':{'type':_0x519a('0x3'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}},'SplitOperation':{'fields':{'splitPosition':{'type':'Position','id':0x1},'graveyardPosition':{'type':'Position','id':0x2},'howMany':{'type':'uint32','id':0x3},'insertionPosition':{'type':'Position','id':0x4},'wasUndone':{'type':_0x519a('0x3'),'id':0x5}}},'Position':{'fields':{'root':{'type':'string','id':0x1},'rootMain':{'type':_0x519a('0x3'),'id':0x2},'rootGraveyard':{'type':_0x519a('0x3'),'id':0x3},'path':{'rule':'repeated','type':_0x519a('0x4'),'id':0x4},'stickiness':{'type':_0x519a('0x5'),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x519a('0x7'),'id':0x1},'end':{'type':_0x519a('0x7'),'id':0x2}}},'Element':{'fields':{'name':{'type':'string','id':0x1},'children':{'rule':_0x519a('0x6'),'type':_0x519a('0x1'),'id':0x2},'data':{'type':_0x519a('0x5'),'id':0x3},'attributesBoolean':{'keyType':_0x519a('0x5'),'type':_0x519a('0x3'),'id':0x4},'attributesJson':{'type':_0x519a('0x5'),'id':0x5}}}};
23
+ var _0x5060=['Position','Range','Element','repeated','string','uint32','bool'];(function(_0x288abf,_0x506097){var _0x2f78a6=function(_0x431c6f){while(--_0x431c6f){_0x288abf['push'](_0x288abf['shift']());}};_0x2f78a6(++_0x506097);}(_0x5060,0x10e));var _0x2f78=function(_0x288abf,_0x506097){_0x288abf=_0x288abf-0x0;var _0x2f78a6=_0x5060[_0x288abf];return _0x2f78a6;};'use strict';module['exports']={'AttributeOperation':{'fields':{'range':{'type':_0x2f78('0x4'),'id':0x1},'key':{'type':_0x2f78('0x0'),'id':0x2},'oldValueBoolean':{'type':_0x2f78('0x2'),'id':0x3},'oldValueJson':{'type':_0x2f78('0x0'),'id':0x4},'newValueBoolean':{'type':_0x2f78('0x2'),'id':0x5},'newValueJson':{'type':_0x2f78('0x0'),'id':0x6},'wasUndone':{'type':_0x2f78('0x2'),'id':0x7}}},'InsertOperation':{'fields':{'position':{'type':_0x2f78('0x3'),'id':0x1},'nodes':{'rule':_0x2f78('0x6'),'type':_0x2f78('0x5'),'id':0x2},'shouldReceiveAttributes':{'type':_0x2f78('0x2'),'id':0x3},'wasUndone':{'type':_0x2f78('0x2'),'id':0x4}}},'MarkerOperation':{'fields':{'name':{'type':_0x2f78('0x0'),'id':0x1},'oldRange':{'type':_0x2f78('0x4'),'id':0x2},'newRange':{'type':'Range','id':0x3},'affectsData':{'type':_0x2f78('0x2'),'id':0x4},'wasUndone':{'type':_0x2f78('0x2'),'id':0x5}}},'MergeOperation':{'fields':{'sourcePosition':{'type':_0x2f78('0x3'),'id':0x1},'targetPosition':{'type':_0x2f78('0x3'),'id':0x2},'graveyardPosition':{'type':'Position','id':0x3},'howMany':{'type':_0x2f78('0x1'),'id':0x4},'wasUndone':{'type':_0x2f78('0x2'),'id':0x5}}},'MoveOperation':{'fields':{'sourcePosition':{'type':'Position','id':0x1},'howMany':{'type':'uint32','id':0x2},'targetPosition':{'type':_0x2f78('0x3'),'id':0x3},'wasUndone':{'type':_0x2f78('0x2'),'id':0x4}}},'RenameOperation':{'fields':{'position':{'type':_0x2f78('0x3'),'id':0x1},'oldName':{'type':_0x2f78('0x0'),'id':0x2},'newName':{'type':_0x2f78('0x0'),'id':0x3},'wasUndone':{'type':'bool','id':0x4}}},'RootAttributeOperation':{'fields':{'root':{'type':_0x2f78('0x0'),'id':0x1},'key':{'type':_0x2f78('0x0'),'id':0x2},'oldValueBoolean':{'type':'bool','id':0x3},'oldValueJson':{'type':_0x2f78('0x0'),'id':0x4},'newValueBoolean':{'type':_0x2f78('0x2'),'id':0x5},'newValueJson':{'type':_0x2f78('0x0'),'id':0x6},'wasUndone':{'type':_0x2f78('0x2'),'id':0x7}}},'RootOperation':{'fields':{'rootName':{'type':_0x2f78('0x0'),'id':0x1},'elementName':{'type':_0x2f78('0x0'),'id':0x2},'isAdd':{'type':_0x2f78('0x2'),'id':0x3},'wasUndone':{'type':_0x2f78('0x2'),'id':0x4}}},'SplitOperation':{'fields':{'splitPosition':{'type':_0x2f78('0x3'),'id':0x1},'graveyardPosition':{'type':_0x2f78('0x3'),'id':0x2},'howMany':{'type':_0x2f78('0x1'),'id':0x3},'insertionPosition':{'type':'Position','id':0x4},'wasUndone':{'type':_0x2f78('0x2'),'id':0x5}}},'Position':{'fields':{'root':{'type':_0x2f78('0x0'),'id':0x1},'rootMain':{'type':_0x2f78('0x2'),'id':0x2},'rootGraveyard':{'type':_0x2f78('0x2'),'id':0x3},'path':{'rule':_0x2f78('0x6'),'type':_0x2f78('0x1'),'id':0x4},'stickiness':{'type':_0x2f78('0x0'),'id':0x5}}},'Range':{'fields':{'start':{'type':_0x2f78('0x3'),'id':0x1},'end':{'type':_0x2f78('0x3'),'id':0x2}}},'Element':{'fields':{'name':{'type':_0x2f78('0x0'),'id':0x1},'children':{'rule':'repeated','type':'Element','id':0x2},'data':{'type':_0x2f78('0x0'),'id':0x3},'attributesBoolean':{'keyType':_0x2f78('0x0'),'type':_0x2f78('0x2'),'id':0x4},'attributesJson':{'type':'string','id':0x5}}}};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  export {};
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19ea=['encode','_protobuf','decompress','getDescriptor','verify','decode','finish','toObject','create'];(function(_0xe1cb2,_0x19ea62){const _0x3df0f2=function(_0x59e17b){while(--_0x59e17b){_0xe1cb2['push'](_0xe1cb2['shift']());}};_0x3df0f2(++_0x19ea62);}(_0x19ea,0x67));const _0x3df0=function(_0xe1cb2,_0x19ea62){_0xe1cb2=_0xe1cb2-0x0;let _0x3df0f2=_0x19ea[_0xe1cb2];return _0x3df0f2;};import*as _0x459e97 from'./lib/compiledmessages';export default class r{constructor(){this['_protobufRoot']=_0x459e97;}[_0x3df0('0x8')](_0x59ffdf){return new ProtobufDescriptor(this['_protobufRoot'][_0x59ffdf]);}}export class ProtobufDescriptor{constructor(_0x5c79fe){this[_0x3df0('0x6')]=_0x5c79fe;}['compress'](_0x542bec){const _0x1ecf8b=this[_0x3df0('0x6')][_0x3df0('0x0')](_0x542bec);if(_0x1ecf8b)throw Error(_0x1ecf8b);return this['_protobuf'][_0x3df0('0x5')](this[_0x3df0('0x6')][_0x3df0('0x4')](_0x542bec))[_0x3df0('0x2')]();}[_0x3df0('0x7')](_0x585364){return this[_0x3df0('0x6')][_0x3df0('0x3')](this['_protobuf'][_0x3df0('0x1')](_0x585364),{'oneofs':!0x0});}}
23
+ const _0x50c1=['create','finish','_protobufRoot','encode','getDescriptor','decompress','compress','_protobuf','toObject'];(function(_0x50d9cc,_0x50c1d9){const _0xd19151=function(_0x36f699){while(--_0x36f699){_0x50d9cc['push'](_0x50d9cc['shift']());}};_0xd19151(++_0x50c1d9);}(_0x50c1,0x1b7));const _0xd191=function(_0x50d9cc,_0x50c1d9){_0x50d9cc=_0x50d9cc-0x0;let _0xd19151=_0x50c1[_0x50d9cc];return _0xd19151;};import*as _0x14e97a from'./lib/compiledmessages.js';export default class r{constructor(){this[_0xd191('0x4')]=_0x14e97a;}[_0xd191('0x6')](_0x555669){return new ProtobufDescriptor(this[_0xd191('0x4')][_0x555669]);}}export class ProtobufDescriptor{constructor(_0xa668ee){this[_0xd191('0x0')]=_0xa668ee;}[_0xd191('0x8')](_0x3683e8){const _0x54d86a=this['_protobuf']['verify'](_0x3683e8);if(_0x54d86a)throw Error(_0x54d86a);return this[_0xd191('0x0')][_0xd191('0x5')](this['_protobuf'][_0xd191('0x2')](_0x3683e8))[_0xd191('0x3')]();}[_0xd191('0x7')](_0x58bc46){return this[_0xd191('0x0')][_0xd191('0x1')](this[_0xd191('0x0')]['decode'](_0x58bc46),{'oneofs':!0x0});}}
package/src/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5
  /**
package/src/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1af7=['rootGraveyard','$graveyard','nodes','path','main','rootMain','root','length'];(function(_0x2151e3,_0x1af759){const _0x2fa6b9=function(_0x55b952){while(--_0x55b952){_0x2151e3['push'](_0x2151e3['shift']());}};_0x2fa6b9(++_0x1af759);}(_0x1af7,0xf0));const _0x2fa6=function(_0x2151e3,_0x1af759){_0x2151e3=_0x2151e3-0x0;let _0x2fa6b9=_0x1af7[_0x2151e3];return _0x2fa6b9;};import{cloneDeep as _0xe716f3,isEqual as _0x636864,isObject as _0x4855b8}from'lodash-es';export function getPositionShiftedBy(_0x15317d,_0x22c708){const _0x51a837=_0xe716f3(_0x15317d);return _0x51a837[_0x2fa6('0x3')][_0x51a837[_0x2fa6('0x3')][_0x2fa6('0x7')]-0x1]+=_0x22c708,_0x51a837;}export function arePositionsEqual(_0x153293,_0x355530){return _0x153293[_0x2fa6('0x6')]===_0x355530[_0x2fa6('0x6')]&&_0x636864(_0x153293['path'],_0x355530[_0x2fa6('0x3')]);}export function parsePositionBeforeCompression(_0x3425f2){P(_0x3425f2,_0xa5ec4d=>('main'==_0xa5ec4d[_0x2fa6('0x6')]?(_0xa5ec4d[_0x2fa6('0x5')]=!0x0,delete _0xa5ec4d[_0x2fa6('0x6')]):_0x2fa6('0x1')==_0xa5ec4d[_0x2fa6('0x6')]&&(_0xa5ec4d[_0x2fa6('0x0')]=!0x0,delete _0xa5ec4d[_0x2fa6('0x6')]),_0xa5ec4d));}export function parsePositionAfterCompression(_0x46fd37){P(_0x46fd37,_0x740ef6=>(_0x740ef6[_0x2fa6('0x5')]?(_0x740ef6['root']=_0x2fa6('0x4'),delete _0x740ef6['rootMain']):_0x740ef6[_0x2fa6('0x0')]&&(_0x740ef6[_0x2fa6('0x6')]=_0x2fa6('0x1'),delete _0x740ef6['rootGraveyard']),_0x740ef6));}function P(_0x42c688,_0x58e5e8){for(const _0x243ff1 in _0x42c688){const _0x486f8b=_0x42c688[_0x243ff1];_0x2fa6('0x2')!==_0x243ff1&&_0x4855b8(_0x486f8b)&&(_0x486f8b[_0x2fa6('0x3')]&&(_0x486f8b[_0x2fa6('0x6')]||_0x486f8b[_0x2fa6('0x5')]||_0x486f8b[_0x2fa6('0x0')])?_0x42c688[_0x243ff1]=_0x58e5e8(_0x486f8b):P(_0x486f8b,_0x58e5e8));}return _0x42c688;}
23
+ const _0x2546=['path','rootGraveyard','main','rootMain','nodes','root','$graveyard'];(function(_0x19b7a3,_0x254635){const _0x361e6c=function(_0x3e7bba){while(--_0x3e7bba){_0x19b7a3['push'](_0x19b7a3['shift']());}};_0x361e6c(++_0x254635);}(_0x2546,0xd0));const _0x361e=function(_0x19b7a3,_0x254635){_0x19b7a3=_0x19b7a3-0x0;let _0x361e6c=_0x2546[_0x19b7a3];return _0x361e6c;};import{cloneDeep as _0x53cfec,isEqual as _0x33e4e1,isObject as _0x33b9cc}from'lodash-es';export function getPositionShiftedBy(_0x3b9ce7,_0x14b0db){const _0xad546a=_0x53cfec(_0x3b9ce7);return _0xad546a['path'][_0xad546a[_0x361e('0x2')]['length']-0x1]+=_0x14b0db,_0xad546a;}export function arePositionsEqual(_0x471869,_0x58dc6b){return _0x471869[_0x361e('0x0')]===_0x58dc6b['root']&&_0x33e4e1(_0x471869[_0x361e('0x2')],_0x58dc6b[_0x361e('0x2')]);}export function parsePositionBeforeCompression(_0x1f49b3){P(_0x1f49b3,_0x4a9207=>('main'==_0x4a9207[_0x361e('0x0')]?(_0x4a9207[_0x361e('0x5')]=!0x0,delete _0x4a9207[_0x361e('0x0')]):_0x361e('0x1')==_0x4a9207[_0x361e('0x0')]&&(_0x4a9207[_0x361e('0x3')]=!0x0,delete _0x4a9207[_0x361e('0x0')]),_0x4a9207));}export function parsePositionAfterCompression(_0x4ad3b6){P(_0x4ad3b6,_0x16f3d1=>(_0x16f3d1['rootMain']?(_0x16f3d1['root']=_0x361e('0x4'),delete _0x16f3d1[_0x361e('0x5')]):_0x16f3d1[_0x361e('0x3')]&&(_0x16f3d1[_0x361e('0x0')]=_0x361e('0x1'),delete _0x16f3d1[_0x361e('0x3')]),_0x16f3d1));}function P(_0xc113b1,_0x4fae8c){for(const _0x3202af in _0xc113b1){const _0x163591=_0xc113b1[_0x3202af];_0x361e('0x6')!==_0x3202af&&_0x33b9cc(_0x163591)&&(_0x163591[_0x361e('0x2')]&&(_0x163591['root']||_0x163591['rootMain']||_0x163591[_0x361e('0x3')])?_0xc113b1[_0x3202af]=_0x4fae8c(_0x163591):P(_0x163591,_0x4fae8c));}return _0xc113b1;}