@ckeditor/ckeditor5-operations-compressor 44.1.0 → 44.2.0-alpha.1
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/LICENSE.md +1 -1
- package/README.md +1 -1
- package/dist/index-content.css +2 -2
- package/dist/index-editor.css +2 -2
- package/dist/index.css +2 -2
- package/dist/index.js +3 -3
- package/package.json +21 -3
- package/src/actioncompressor/actioncompressor.d.ts +1 -1
- package/src/actioncompressor/actioncompressor.js +2 -2
- package/src/actioncompressor/deletingactioncompressor.d.ts +1 -1
- package/src/actioncompressor/deletingactioncompressor.js +2 -2
- package/src/actioncompressor/forwarddeletingactioncompressor.d.ts +1 -1
- package/src/actioncompressor/forwarddeletingactioncompressor.js +2 -2
- package/src/actioncompressor/typingactioncompressor.d.ts +1 -1
- package/src/actioncompressor/typingactioncompressor.js +2 -2
- package/src/actioncompressor/userselectionactioncompressor.d.ts +1 -1
- package/src/actioncompressor/userselectionactioncompressor.js +2 -2
- package/src/compressor.d.ts +1 -1
- package/src/compressor.js +2 -2
- package/src/index.d.ts +1 -1
- package/src/index.js +2 -2
- package/src/lib/compiledmessages.js +3 -3
- package/src/lib/protobufdescriptions.js +2 -2
- package/src/operationcompressor/annotationmarkeroperationcompressor.d.ts +1 -1
- package/src/operationcompressor/annotationmarkeroperationcompressor.js +2 -2
- package/src/operationcompressor/attributeoperationcompressor.d.ts +1 -1
- package/src/operationcompressor/attributeoperationcompressor.js +2 -2
- package/src/operationcompressor/insertoperationcompressor.d.ts +1 -1
- package/src/operationcompressor/insertoperationcompressor.js +2 -2
- package/src/operationcompressor/markeroperationcompressor.d.ts +1 -1
- package/src/operationcompressor/markeroperationcompressor.js +2 -2
- package/src/operationcompressor/nooperationcompressor.d.ts +1 -1
- package/src/operationcompressor/nooperationcompressor.js +2 -2
- package/src/operationcompressor/operationcompressor.d.ts +1 -1
- package/src/operationcompressor/operationcompressor.js +2 -2
- package/src/protobuffactory.d.ts +1 -1
- package/src/protobuffactory.js +2 -2
- package/src/utils.d.ts +1 -1
- package/src/utils.js +2 -2
- package/dist/actioncompressor/actioncompressor.d.ts +0 -64
- package/dist/actioncompressor/deletingactioncompressor.d.ts +0 -32
- package/dist/actioncompressor/forwarddeletingactioncompressor.d.ts +0 -32
- package/dist/actioncompressor/typingactioncompressor.d.ts +0 -32
- package/dist/actioncompressor/userselectionactioncompressor.d.ts +0 -20
- package/dist/compressor.d.ts +0 -49
- package/dist/index.d.ts +0 -9
- package/dist/operationcompressor/annotationmarkeroperationcompressor.d.ts +0 -26
- package/dist/operationcompressor/attributeoperationcompressor.d.ts +0 -21
- package/dist/operationcompressor/insertoperationcompressor.d.ts +0 -21
- package/dist/operationcompressor/markeroperationcompressor.d.ts +0 -17
- package/dist/operationcompressor/nooperationcompressor.d.ts +0 -24
- package/dist/operationcompressor/operationcompressor.d.ts +0 -32
- package/dist/protobuffactory.d.ts +0 -9
- package/dist/utils.d.ts +0 -34
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, 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
|
|
23
|
+
function _0x4589(){const _0x181fba=['attributes','keys','types','64569YuuxCd','children','every','997070RbgJEF','4751032bPdKSu','stringify','_serializeNodesAttributes','34qWCwBv','28RaysNL','push','parse','296702wshSmJ','nodes','_id','attributesBoolean','shift','27271776pElSIS','__className','1841170hansPg','5904429jokJRo','_protobufDescriptor','_deserializeNodesAttributes','44oYtgfo','162RmhcUl','boolean','decompress','_operationName','compress','_areValuesBoolean','9CttIQd','attributesJson','buffers'];_0x4589=function(){return _0x181fba;};return _0x4589();}const _0x3464f4=_0x4025;function _0x4025(_0x3116f8,_0x3091b6){const _0x4589b7=_0x4589();return _0x4025=function(_0x402595,_0x3e2d84){_0x402595=_0x402595-0x8a;let _0x23a3ae=_0x4589b7[_0x402595];return _0x23a3ae;},_0x4025(_0x3116f8,_0x3091b6);}(function(_0x6c4aa1,_0x3e8171){const _0x3be1c0=_0x4025,_0x4a2302=_0x6c4aa1();while(!![]){try{const _0x7687d2=parseInt(_0x3be1c0(0xa0))/0x1*(-parseInt(_0x3be1c0(0xa7))/0x2)+parseInt(_0x3be1c0(0x90))/0x3+-parseInt(_0x3be1c0(0xa8))/0x4*(-parseInt(_0x3be1c0(0xa3))/0x5)+parseInt(_0x3be1c0(0x94))/0x6*(parseInt(_0x3be1c0(0xab))/0x7)+-parseInt(_0x3be1c0(0xa4))/0x8*(-parseInt(_0x3be1c0(0x9a))/0x9)+parseInt(_0x3be1c0(0x8f))/0xa*(-parseInt(_0x3be1c0(0x93))/0xb)+-parseInt(_0x3be1c0(0x8d))/0xc;if(_0x7687d2===_0x3e8171)break;else _0x4a2302['push'](_0x4a2302['shift']());}catch(_0x16e0dc){_0x4a2302['push'](_0x4a2302['shift']());}}}(_0x4589,0xf30e1));import _0xc0ac10 from'./operationcompressor.js';import{parsePositionBeforeCompression as _0x12cdba,parsePositionAfterCompression as _0x57e67d}from'../utils.js';export default class i extends _0xc0ac10{[_0x3464f4(0x98)](_0x5a3b4b,_0x51cd64){const _0x7ff4ce=_0x3464f4,_0x35994a=_0x51cd64[_0x7ff4ce(0x8c)]();return this[_0x7ff4ce(0xa6)](_0x35994a[_0x7ff4ce(0xac)]),_0x12cdba(_0x35994a),_0x5a3b4b[_0x7ff4ce(0x9c)][_0x7ff4ce(0xa9)](this[_0x7ff4ce(0x91)][_0x7ff4ce(0x98)](_0x35994a)),_0x5a3b4b[_0x7ff4ce(0x9f)][_0x7ff4ce(0xa9)](this[_0x7ff4ce(0x8a)]),!0x0;}[_0x3464f4(0x96)](_0x339f6e,_0x374dc5){const _0x3cbcda=_0x3464f4,{types:_0x5bf025,buffers:_0x1cbc47}=_0x374dc5,_0x260e99=this[_0x3cbcda(0x91)][_0x3cbcda(0x96)](_0x1cbc47[_0x3cbcda(0x8c)]());_0x5bf025[_0x3cbcda(0x8c)](),_0x260e99[_0x3cbcda(0xac)]||(_0x260e99[_0x3cbcda(0xac)]=[]),this[_0x3cbcda(0x92)](_0x260e99[_0x3cbcda(0xac)]),_0x57e67d(_0x260e99),_0x260e99[_0x3cbcda(0x8e)]=this[_0x3cbcda(0x97)],_0x339f6e[_0x3cbcda(0xa9)](_0x260e99);}[_0x3464f4(0xa6)](_0x338bdd){const _0x3af0ce=_0x3464f4;for(const _0x4566aa of _0x338bdd){if(_0x4566aa[_0x3af0ce(0x9d)]){const _0x2e72b9=_0x4566aa[_0x3af0ce(0x9d)];this[_0x3af0ce(0x99)](_0x2e72b9)?_0x4566aa[_0x3af0ce(0x8b)]=_0x2e72b9:_0x4566aa[_0x3af0ce(0x9b)]=JSON[_0x3af0ce(0xa5)](_0x2e72b9);}_0x4566aa[_0x3af0ce(0xa1)]&&this[_0x3af0ce(0xa6)](_0x4566aa[_0x3af0ce(0xa1)]);}}[_0x3464f4(0x92)](_0x46b505){const _0x1f26d5=_0x3464f4;for(const _0x4af73c of _0x46b505)(_0x4af73c[_0x1f26d5(0x8b)]||_0x4af73c[_0x1f26d5(0x9b)])&&(_0x4af73c[_0x1f26d5(0x8b)]?(_0x4af73c[_0x1f26d5(0x9d)]=_0x4af73c[_0x1f26d5(0x8b)],delete _0x4af73c[_0x1f26d5(0x8b)]):(_0x4af73c[_0x1f26d5(0x9d)]=JSON[_0x1f26d5(0xaa)](_0x4af73c[_0x1f26d5(0x9b)]),delete _0x4af73c[_0x1f26d5(0x9b)])),_0x4af73c[_0x1f26d5(0xa1)]&&this[_0x1f26d5(0x92)](_0x4af73c[_0x1f26d5(0xa1)]);}[_0x3464f4(0x99)](_0xfa9719){const _0x28d59d=_0x3464f4;return Object[_0x28d59d(0x9e)](_0xfa9719)[_0x28d59d(0xa2)](_0x273965=>_0x28d59d(0x95)==typeof _0xfa9719[_0x273965]);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import OperationCompressor from './operationcompressor.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, 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
|
-
function
|
|
23
|
+
function _0x5ca5(_0x33c658,_0x2e86cd){const _0x3f246c=_0x3f24();return _0x5ca5=function(_0x5ca56f,_0x11cede){_0x5ca56f=_0x5ca56f-0x1d7;let _0x782ecb=_0x3f246c[_0x5ca56f];return _0x782ecb;},_0x5ca5(_0x33c658,_0x2e86cd);}const _0x350cbc=_0x5ca5;function _0x3f24(){const _0x109d9c=['818912BeZFTU','10328584sopKZm','oldRange','4210290CvSXlU','1238485fpUDtY','decompress','4500153YEeXMK','1150432PbgVfb','1117276ekRxEY','length','newRange','12MQJPUt'];_0x3f24=function(){return _0x109d9c;};return _0x3f24();}(function(_0x256645,_0x28c1dc){const _0x3a4d1c=_0x5ca5,_0x25ade5=_0x256645();while(!![]){try{const _0x549b6a=-parseInt(_0x3a4d1c(0x1d7))/0x1+-parseInt(_0x3a4d1c(0x1db))/0x2+parseInt(_0x3a4d1c(0x1da))/0x3*(parseInt(_0x3a4d1c(0x1e2))/0x4)+-parseInt(_0x3a4d1c(0x1df))/0x5+-parseInt(_0x3a4d1c(0x1de))/0x6+parseInt(_0x3a4d1c(0x1e1))/0x7+parseInt(_0x3a4d1c(0x1dc))/0x8;if(_0x549b6a===_0x28c1dc)break;else _0x25ade5['push'](_0x25ade5['shift']());}catch(_0x1bc124){_0x25ade5['push'](_0x25ade5['shift']());}}}(_0x3f24,0x947f0));import _0x3278e7 from'./operationcompressor.js';export default class n extends _0x3278e7{[_0x350cbc(0x1e0)](_0x3f3e9d,_0x3387ad){const _0x4bb772=_0x350cbc;super[_0x4bb772(0x1e0)](_0x3f3e9d,_0x3387ad);const _0x3811f4=_0x3f3e9d[_0x3f3e9d[_0x4bb772(0x1d8)]-0x1];_0x3811f4[_0x4bb772(0x1dd)]||(_0x3811f4[_0x4bb772(0x1dd)]=null),_0x3811f4[_0x4bb772(0x1d9)]||(_0x3811f4[_0x4bb772(0x1d9)]=null);}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import OperationCompressor from './operationcompressor.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, 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
|
|
23
|
+
function _0x4c30(_0x394ad0,_0x30337b){var _0x2d9bdd=_0x2d9b();return _0x4c30=function(_0x4c30fb,_0x2b4705){_0x4c30fb=_0x4c30fb-0x11a;var _0x2f170c=_0x2d9bdd[_0x4c30fb];return _0x2f170c;},_0x4c30(_0x394ad0,_0x30337b);}var _0x5c612b=_0x4c30;(function(_0x19f57e,_0x49d73d){var _0x3b5a63=_0x4c30,_0x7c9288=_0x19f57e();while(!![]){try{var _0x11b081=parseInt(_0x3b5a63(0x11a))/0x1*(-parseInt(_0x3b5a63(0x12a))/0x2)+parseInt(_0x3b5a63(0x121))/0x3*(parseInt(_0x3b5a63(0x128))/0x4)+-parseInt(_0x3b5a63(0x122))/0x5*(parseInt(_0x3b5a63(0x11d))/0x6)+parseInt(_0x3b5a63(0x127))/0x7+-parseInt(_0x3b5a63(0x120))/0x8*(-parseInt(_0x3b5a63(0x11f))/0x9)+parseInt(_0x3b5a63(0x126))/0xa+parseInt(_0x3b5a63(0x11c))/0xb;if(_0x11b081===_0x49d73d)break;else _0x7c9288['push'](_0x7c9288['shift']());}catch(_0x5bfb6e){_0x7c9288['push'](_0x7c9288['shift']());}}}(_0x2d9b,0x6822f));import _0x55cc48 from'./operationcompressor.js';export default class p extends _0x55cc48{[_0x5c612b(0x123)](_0x28620c,_0xa7633d){var _0x481eee=_0x5c612b;return _0xa7633d[_0x481eee(0x124)](),_0x28620c[_0x481eee(0x11b)][_0x481eee(0x12b)](this[_0x481eee(0x11e)]),!0x0;}[_0x5c612b(0x129)](_0x22441b,_0x5553b3){var _0x1bc50a=_0x5c612b;_0x5553b3[_0x1bc50a(0x11b)][_0x1bc50a(0x124)](),_0x22441b[_0x1bc50a(0x12b)]({'__className':this[_0x1bc50a(0x125)]});}}function _0x2d9b(){var _0x2c9d6c=['9299532RZISfb','198ZoqGFC','_id','261TRPTkz','59928TVkffJ','93843wZggPr','72835nTtAiW','compress','shift','_operationName','1257780XQfTHN','343777MeYeoA','52tXsUDF','decompress','2oIxdnL','push','736939ZndMVW','types'];_0x2d9b=function(){return _0x2c9d6c;};return _0x2d9b();}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import type { CompressedOperationsData } from '../compressor.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, 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
|
|
23
|
+
function _0x5bb7(){const _0x19f4e3=['compress','types','4502124iZLNZd','_operationName','_protobufDescriptor','1841589kjwAQw','5927978zIdhid','5619640SVeUJt','6080450RzCxJK','9oHTBpd','_id','30230XPKDZs','buffers','shift','push','1730776sUhvGh','__className','68QvMmnS','decompress','10HThABV'];_0x5bb7=function(){return _0x19f4e3;};return _0x5bb7();}function _0xb784(_0x21040d,_0x526c16){const _0x5bb720=_0x5bb7();return _0xb784=function(_0xb78477,_0x1ae809){_0xb78477=_0xb78477-0xc4;let _0x3e3c0c=_0x5bb720[_0xb78477];return _0x3e3c0c;},_0xb784(_0x21040d,_0x526c16);}const _0x231d21=_0xb784;(function(_0x40c006,_0x2ce3b5){const _0x575953=_0xb784,_0x372418=_0x40c006();while(!![]){try{const _0x4e89f4=parseInt(_0x575953(0xcd))/0x1*(-parseInt(_0x575953(0xd3))/0x2)+-parseInt(_0x575953(0xc7))/0x3+-parseInt(_0x575953(0xd1))/0x4*(-parseInt(_0x575953(0xd5))/0x5)+parseInt(_0x575953(0xc4))/0x6+parseInt(_0x575953(0xc8))/0x7+-parseInt(_0x575953(0xc9))/0x8+-parseInt(_0x575953(0xcb))/0x9*(-parseInt(_0x575953(0xca))/0xa);if(_0x4e89f4===_0x2ce3b5)break;else _0x372418['push'](_0x372418['shift']());}catch(_0x150606){_0x372418['push'](_0x372418['shift']());}}}(_0x5bb7,0xb15e7));import{parsePositionBeforeCompression as _0x38b1f6,parsePositionAfterCompression as _0x5722be}from'../utils.js';export default class e{constructor(_0x5a1230,_0x196ad8,_0x4635d4){const _0x2365e4=_0xb784;this[_0x2365e4(0xcc)]=_0x5a1230,this[_0x2365e4(0xc5)]=_0x196ad8,this[_0x2365e4(0xc6)]=_0x4635d4;}[_0x231d21(0xd6)](_0x1b6cd6,_0xf3e285){const _0x1573e9=_0x231d21,_0x52180d=_0xf3e285[_0x1573e9(0xcf)]();return _0x38b1f6(_0x52180d),_0x1b6cd6[_0x1573e9(0xce)][_0x1573e9(0xd0)](this[_0x1573e9(0xc6)][_0x1573e9(0xd6)](_0x52180d)),_0x1b6cd6[_0x1573e9(0xd7)][_0x1573e9(0xd0)](this[_0x1573e9(0xcc)]),!0x0;}[_0x231d21(0xd4)](_0x20f5c7,_0x48d2e6){const _0x449b88=_0x231d21;_0x48d2e6[_0x449b88(0xd7)][_0x449b88(0xcf)]();const _0x191f09=this[_0x449b88(0xc6)][_0x449b88(0xd4)](_0x48d2e6[_0x449b88(0xce)][_0x449b88(0xcf)]());_0x5722be(_0x191f09),_0x191f09[_0x449b88(0xd2)]=this[_0x449b88(0xc5)],_0x20f5c7[_0x449b88(0xd0)](_0x191f09);}}
|
package/src/protobuffactory.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
export {};
|
package/src/protobuffactory.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, 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
|
-
|
|
23
|
+
function _0x20a0(_0x28baed,_0x4e95c4){const _0x250528=_0x2505();return _0x20a0=function(_0x20a08c,_0x4d4778){_0x20a08c=_0x20a08c-0x82;let _0x41d96e=_0x250528[_0x20a08c];return _0x41d96e;},_0x20a0(_0x28baed,_0x4e95c4);}const _0xf4929b=_0x20a0;(function(_0x1dc3c6,_0x5a288e){const _0x9b40e8=_0x20a0,_0x283331=_0x1dc3c6();while(!![]){try{const _0x1ef78e=-parseInt(_0x9b40e8(0x88))/0x1+parseInt(_0x9b40e8(0x87))/0x2+-parseInt(_0x9b40e8(0x94))/0x3+-parseInt(_0x9b40e8(0x93))/0x4+parseInt(_0x9b40e8(0x85))/0x5+-parseInt(_0x9b40e8(0x8d))/0x6*(parseInt(_0x9b40e8(0x8f))/0x7)+parseInt(_0x9b40e8(0x91))/0x8*(parseInt(_0x9b40e8(0x83))/0x9);if(_0x1ef78e===_0x5a288e)break;else _0x283331['push'](_0x283331['shift']());}catch(_0x3b4654){_0x283331['push'](_0x283331['shift']());}}}(_0x2505,0x5c4c7));import{messages as _0x29d101}from'./lib/compiledmessages.js';function _0x2505(){const _0x2b1a60=['372056DwkJQC','encode','616412ceVhtR','374586VJyCMS','compress','_protobufRoot','27xREoiL','decode','3582315YopJLG','create','867738NfBclZ','585882QgrSiW','_protobuf','verify','toObject','getDescriptor','6Skbtcz','finish','328657hNCHKo','decompress'];_0x2505=function(){return _0x2b1a60;};return _0x2505();}export default class r{constructor(){const _0x5aa190=_0x20a0;this[_0x5aa190(0x82)]=_0x29d101;}[_0xf4929b(0x8c)](_0x384c79){const _0x293926=_0xf4929b;return new ProtobufDescriptor(this[_0x293926(0x82)][_0x384c79]);}}export class ProtobufDescriptor{constructor(_0x27fec9){const _0x562a4c=_0xf4929b;this[_0x562a4c(0x89)]=_0x27fec9;}[_0xf4929b(0x95)](_0x405ee3){const _0x9e4ee6=_0xf4929b,_0x412b4f=this[_0x9e4ee6(0x89)][_0x9e4ee6(0x8a)](_0x405ee3);if(_0x412b4f)throw Error(_0x412b4f);return this[_0x9e4ee6(0x89)][_0x9e4ee6(0x92)](this[_0x9e4ee6(0x89)][_0x9e4ee6(0x86)](_0x405ee3))[_0x9e4ee6(0x8e)]();}[_0xf4929b(0x90)](_0x422f98){const _0x2d33b4=_0xf4929b;return this[_0x2d33b4(0x89)][_0x2d33b4(0x8b)](this[_0x2d33b4(0x89)][_0x2d33b4(0x84)](_0x422f98),{'oneofs':!0x0});}}
|
package/src/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
/**
|
package/src/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) 2003-
|
|
2
|
+
* Copyright (c) 2003-2025, 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
|
-
(function(
|
|
23
|
+
(function(_0x48fddf,_0x45e3fc){const _0x36d57c=_0x48d0,_0x45d594=_0x48fddf();while(!![]){try{const _0x352f8c=-parseInt(_0x36d57c(0x111))/0x1+-parseInt(_0x36d57c(0x119))/0x2+-parseInt(_0x36d57c(0x113))/0x3*(-parseInt(_0x36d57c(0x117))/0x4)+-parseInt(_0x36d57c(0x11d))/0x5*(-parseInt(_0x36d57c(0x115))/0x6)+-parseInt(_0x36d57c(0x11c))/0x7+parseInt(_0x36d57c(0x11b))/0x8*(parseInt(_0x36d57c(0x10e))/0x9)+-parseInt(_0x36d57c(0x112))/0xa*(-parseInt(_0x36d57c(0x110))/0xb);if(_0x352f8c===_0x45e3fc)break;else _0x45d594['push'](_0x45d594['shift']());}catch(_0x5bb8a3){_0x45d594['push'](_0x45d594['shift']());}}}(_0x3214,0x22fd1));import{cloneDeep as _0x3fdfc8,isEqual as _0x3c8118,isObject as _0x57be23}from'lodash-es';export function getPositionShiftedBy(_0x24e03c,_0x594b3c){const _0x24abef=_0x48d0,_0x2c9669=_0x3fdfc8(_0x24e03c);return _0x2c9669[_0x24abef(0x116)][_0x2c9669[_0x24abef(0x116)][_0x24abef(0x10c)]-0x1]+=_0x594b3c,_0x2c9669;}export function arePositionsEqual(_0x298ef9,_0x1ce103){const _0x4581a3=_0x48d0;return _0x298ef9[_0x4581a3(0x118)]===_0x1ce103[_0x4581a3(0x118)]&&_0x3c8118(_0x298ef9[_0x4581a3(0x116)],_0x1ce103[_0x4581a3(0x116)]);}function _0x48d0(_0x3e0e65,_0x265308){const _0x32148d=_0x3214();return _0x48d0=function(_0x48d0c8,_0x279359){_0x48d0c8=_0x48d0c8-0x10c;let _0xf1083b=_0x32148d[_0x48d0c8];return _0xf1083b;},_0x48d0(_0x3e0e65,_0x265308);}export function parsePositionBeforeCompression(_0xabc508){const _0xb31f69=_0x48d0;P(_0xabc508,_0x5f5261=>(_0xb31f69(0x11e)==_0x5f5261[_0xb31f69(0x118)]?(_0x5f5261[_0xb31f69(0x10d)]=!0x0,delete _0x5f5261[_0xb31f69(0x118)]):_0xb31f69(0x11a)==_0x5f5261[_0xb31f69(0x118)]&&(_0x5f5261[_0xb31f69(0x10f)]=!0x0,delete _0x5f5261[_0xb31f69(0x118)]),_0x5f5261));}function _0x3214(){const _0x3d3276=['length','rootMain','18pJsKYt','rootGraveyard','220iWTiEe','209246aHHbID','93430vgbjjB','21kTFYbL','nodes','6efvvCW','path','135092iczrEl','root','179206tqFsPb','$graveyard','48008TjFiQz','228522LKYgGE','197675GahQWd','main'];_0x3214=function(){return _0x3d3276;};return _0x3214();}export function parsePositionAfterCompression(_0xe04de5){const _0x5532fe=_0x48d0;P(_0xe04de5,_0x58f46d=>(_0x58f46d[_0x5532fe(0x10d)]?(_0x58f46d[_0x5532fe(0x118)]=_0x5532fe(0x11e),delete _0x58f46d[_0x5532fe(0x10d)]):_0x58f46d[_0x5532fe(0x10f)]&&(_0x58f46d[_0x5532fe(0x118)]=_0x5532fe(0x11a),delete _0x58f46d[_0x5532fe(0x10f)]),_0x58f46d));}function P(_0x42170d,_0x288729){const _0x393995=_0x48d0;for(const _0x45a09f in _0x42170d){const _0x5cdd71=_0x42170d[_0x45a09f];_0x393995(0x114)!==_0x45a09f&&_0x57be23(_0x5cdd71)&&(_0x5cdd71[_0x393995(0x116)]&&(_0x5cdd71[_0x393995(0x118)]||_0x5cdd71[_0x393995(0x10d)]||_0x5cdd71[_0x393995(0x10f)])?_0x42170d[_0x45a09f]=_0x288729(_0x5cdd71):P(_0x5cdd71,_0x288729));}return _0x42170d;}
|
|
@@ -1,64 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import type { CompressedOperationsData, default as Compressor } from '../compressor.js';
|
|
10
|
-
/**
|
|
11
|
-
* * Compresses and decompresses multiple operations into the one buffer.
|
|
12
|
-
*/
|
|
13
|
-
export default abstract class ActionCompressor {
|
|
14
|
-
constructor(id: number, context: Compressor);
|
|
15
|
-
/**
|
|
16
|
-
* Combines and compress operations from the list.
|
|
17
|
-
* Operations are consumed as long as match this compressor.
|
|
18
|
-
*
|
|
19
|
-
* @param result Object to which compression result should be added.
|
|
20
|
-
* @param operations List of operations in JSON format to compress.
|
|
21
|
-
* @returns `true` when operation is consumed `false` otherwise.
|
|
22
|
-
*/
|
|
23
|
-
compress(result: CompressedOperationsData, operations: Array<any>): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Decompress and split compressed operations. Decompressed operations are consumed (removed from the input data).
|
|
26
|
-
*
|
|
27
|
-
* @param result Decompressed operations in JSON format.
|
|
28
|
-
* @param data Compressed operations data.
|
|
29
|
-
*/
|
|
30
|
-
decompress(result: Array<any>, data: CompressedOperationsData): void;
|
|
31
|
-
/**
|
|
32
|
-
* Compresses single operation using a proper compressor.
|
|
33
|
-
*
|
|
34
|
-
* @param operation Operation in JSON format.
|
|
35
|
-
* @returns Operation JSON compressed to the binary format.
|
|
36
|
-
*/
|
|
37
|
-
protected abstract _compressSingleOperation(operation: any): Uint8Array;
|
|
38
|
-
/**
|
|
39
|
-
* Decompresses combined operation using a proper compressor.
|
|
40
|
-
*
|
|
41
|
-
* @param data Data to compress.
|
|
42
|
-
* @returns Decompressed operation in JSON format.
|
|
43
|
-
*/
|
|
44
|
-
protected abstract _decompressSingleOperation(data: CompressedOperationsData): any;
|
|
45
|
-
/**
|
|
46
|
-
* Combine next operation into the combined one.
|
|
47
|
-
*
|
|
48
|
-
* @param nextOperation Operation to combine in JSON format.
|
|
49
|
-
* @param combined Combined operation in JSON format.
|
|
50
|
-
* @returns Combined operation in JSON format.
|
|
51
|
-
*/
|
|
52
|
-
protected abstract _combineNext(nextOperation: any, combined: any): any;
|
|
53
|
-
/**
|
|
54
|
-
* Split operation from combined one.
|
|
55
|
-
*
|
|
56
|
-
* @param combined Combined operation in JSON format.
|
|
57
|
-
* @returns Split operation in JSON format.
|
|
58
|
-
*/
|
|
59
|
-
protected abstract _splitCurrent(combined: any): any;
|
|
60
|
-
/**
|
|
61
|
-
* Checks if two operations can be combined.
|
|
62
|
-
*/
|
|
63
|
-
protected abstract _compareOperations(opA: any, opB: any): boolean;
|
|
64
|
-
}
|
|
@@ -1,32 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import ActionCompressor from './actioncompressor.js';
|
|
10
|
-
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
-
export default class DeletingActionCompressor extends ActionCompressor {
|
|
12
|
-
/**
|
|
13
|
-
* @inheritDoc
|
|
14
|
-
*/
|
|
15
|
-
protected _combineNext(nextOperation: any, combined: any): any;
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
protected _splitCurrent(combined: any): any;
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
protected _compareOperations(opA: any, opB: any): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
protected _compressSingleOperation(operation: any): Uint8Array;
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
protected _decompressSingleOperation(data: CompressedOperationsData): any;
|
|
32
|
-
}
|
|
@@ -1,32 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import ActionCompressor from './actioncompressor.js';
|
|
10
|
-
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
-
export default class ForwardDeletingActionCompressor extends ActionCompressor {
|
|
12
|
-
/**
|
|
13
|
-
* @inheritDoc
|
|
14
|
-
*/
|
|
15
|
-
protected _combineNext(nextOperation: any, combined: any): any;
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
protected _splitCurrent(combined: any): any;
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
protected _compareOperations(opA: any, opB: any): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
protected _compressSingleOperation(operation: any): Uint8Array;
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
protected _decompressSingleOperation(data: CompressedOperationsData): any;
|
|
32
|
-
}
|
|
@@ -1,32 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import ActionCompressor from './actioncompressor.js';
|
|
10
|
-
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
-
export default class TypingActionCompressor extends ActionCompressor {
|
|
12
|
-
/**
|
|
13
|
-
* @inheritDocs
|
|
14
|
-
*/
|
|
15
|
-
protected _combineNext(nextOperation: any, combined: any): any;
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
protected _splitCurrent(combined: any): any;
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
protected _compareOperations(opA: any, opB: any): boolean;
|
|
24
|
-
/**
|
|
25
|
-
* @inheritDoc
|
|
26
|
-
*/
|
|
27
|
-
protected _compressSingleOperation(operation: any): Uint8Array;
|
|
28
|
-
/**
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
protected _decompressSingleOperation(data: CompressedOperationsData): any;
|
|
32
|
-
}
|
|
@@ -1,20 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import ActionCompressor from './actioncompressor.js';
|
|
10
|
-
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
-
export default class UserSelectionActionCompressor extends ActionCompressor {
|
|
12
|
-
/**
|
|
13
|
-
* @inheritDoc
|
|
14
|
-
*/
|
|
15
|
-
compress(result: CompressedOperationsData, operations: Array<any>): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
decompress(result: Array<any>, data: CompressedOperationsData): void;
|
|
20
|
-
}
|
package/dist/compressor.d.ts
DELETED
|
@@ -1,49 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Compresses and decompresses given set of operations in JSON format to/from the binary format using `Protocol Buffers`.
|
|
11
|
-
*/
|
|
12
|
-
export default class Compressor {
|
|
13
|
-
constructor();
|
|
14
|
-
/**
|
|
15
|
-
* Compress given list of operations in JSON format.
|
|
16
|
-
*
|
|
17
|
-
* **Note** It tries to combine typing-like or deleting-like operations into the one buffer.
|
|
18
|
-
* **Note** Input data will be consumed and modified during compression process. If you need untouched data
|
|
19
|
-
* you need to copy it before the compression.
|
|
20
|
-
*/
|
|
21
|
-
compress(operations: Array<any>): CompressedOperationsData;
|
|
22
|
-
/**
|
|
23
|
-
* Decompress given data to the list of operations in JSON format.
|
|
24
|
-
*
|
|
25
|
-
* **Note** Input data will be consumed during decompression process. If you need untouched data
|
|
26
|
-
* you need to copy it before the decompression.
|
|
27
|
-
*
|
|
28
|
-
* @param data Compressed operations.
|
|
29
|
-
* @returns List of operations in JSON format.
|
|
30
|
-
*/
|
|
31
|
-
decompress(data: CompressedOperationsData): Array<any>;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Compressed operations data.
|
|
35
|
-
*/
|
|
36
|
-
export type CompressedOperationsData = {
|
|
37
|
-
/**
|
|
38
|
-
* List of operations compressed to the binary format.
|
|
39
|
-
*/
|
|
40
|
-
buffers: Array<Uint8Array>;
|
|
41
|
-
/**
|
|
42
|
-
* List of compressor identifiers. According to this types a proper compressor will be used for the decompression.
|
|
43
|
-
*/
|
|
44
|
-
types: Array<number>;
|
|
45
|
-
/**
|
|
46
|
-
* Base version of the first compressed operation.
|
|
47
|
-
*/
|
|
48
|
-
baseVersion: number;
|
|
49
|
-
};
|
package/dist/index.d.ts
DELETED
|
@@ -1,9 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
export { default as Compressor, type CompressedOperationsData } from './compressor.js';
|
|
@@ -1,26 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import MarkerOperationCompressor from './markeroperationcompressor.js';
|
|
10
|
-
import type { ProtobufDescriptor } from '../protobuffactory.js';
|
|
11
|
-
import type { CompressedOperationsData } from '../compressor.js';
|
|
12
|
-
import type { MarkerOperation } from 'ckeditor5/src/engine.js';
|
|
13
|
-
export default class AnnotationMarkerOperationCompressor extends MarkerOperationCompressor {
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
constructor(id: number, name: string, descriptor: ProtobufDescriptor, namespaceToOmit: string);
|
|
18
|
-
/**
|
|
19
|
-
* @inheritDoc
|
|
20
|
-
*/
|
|
21
|
-
compress(result: CompressedOperationsData, operations: Array<MarkerOperation>): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* @inheritDoc
|
|
24
|
-
*/
|
|
25
|
-
decompress(result: Array<MarkerOperation>, data: CompressedOperationsData): void;
|
|
26
|
-
}
|
|
@@ -1,21 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import OperationCompressor from './operationcompressor.js';
|
|
10
|
-
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
-
import type { AttributeOperation } from 'ckeditor5/src/engine.js';
|
|
12
|
-
export default class AttributeOperationCompressor extends OperationCompressor {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
compress(result: CompressedOperationsData, operations: Array<AttributeOperation>): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
decompress(result: Array<AttributeOperation>, data: CompressedOperationsData): void;
|
|
21
|
-
}
|
|
@@ -1,21 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import OperationCompressor from './operationcompressor.js';
|
|
10
|
-
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
-
import type { InsertOperation } from 'ckeditor5/src/engine.js';
|
|
12
|
-
export default class InsertOperationCompressor extends OperationCompressor {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
compress(result: CompressedOperationsData, operations: Array<InsertOperation>): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
decompress(result: Array<InsertOperation>, data: CompressedOperationsData): void;
|
|
21
|
-
}
|
|
@@ -1,17 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import OperationCompressor from './operationcompressor.js';
|
|
10
|
-
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
-
import type { MarkerOperation } from 'ckeditor5/src/engine.js';
|
|
12
|
-
export default class MarkerOperationCompressor extends OperationCompressor {
|
|
13
|
-
/**
|
|
14
|
-
* @inheritDoc
|
|
15
|
-
*/
|
|
16
|
-
decompress(result: Array<MarkerOperation>, data: CompressedOperationsData): void;
|
|
17
|
-
}
|
|
@@ -1,24 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import OperationCompressor from './operationcompressor.js';
|
|
10
|
-
import type { CompressedOperationsData } from '../compressor.js';
|
|
11
|
-
import type { Operation } from 'ckeditor5/src/engine.js';
|
|
12
|
-
/**
|
|
13
|
-
* @extends OperationCompressor
|
|
14
|
-
*/
|
|
15
|
-
export default class NoOperationCompressor extends OperationCompressor {
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
compress(result: CompressedOperationsData, operations: Array<Operation>): boolean;
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
decompress(result: Array<any>, data: CompressedOperationsData): void;
|
|
24
|
-
}
|
|
@@ -1,32 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
import type { CompressedOperationsData } from '../compressor.js';
|
|
10
|
-
import type { ProtobufDescriptor } from '../protobuffactory.js';
|
|
11
|
-
import type { Operation } from 'ckeditor5/src/engine.js';
|
|
12
|
-
/**
|
|
13
|
-
* Compresses and decompresses single operation to the binary format.
|
|
14
|
-
*/
|
|
15
|
-
export default class OperationCompressor {
|
|
16
|
-
constructor(id: number, operationName: string, protobufDescriptor: ProtobufDescriptor);
|
|
17
|
-
/**
|
|
18
|
-
* Serializes and consumes the first operation from the list.
|
|
19
|
-
*
|
|
20
|
-
* @param result Object to which compression result will be added.
|
|
21
|
-
* @param operations List of operations to compress. The first one will be compressed
|
|
22
|
-
* and removed from the list.
|
|
23
|
-
*/
|
|
24
|
-
compress(result: CompressedOperationsData, operations: Array<Operation>): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Deserializes and consumes buffered operation.
|
|
27
|
-
*
|
|
28
|
-
* @param result Decompressed operation.
|
|
29
|
-
* @param data Data to decompress.
|
|
30
|
-
*/
|
|
31
|
-
decompress(result: Array<Operation>, data: CompressedOperationsData): void;
|
|
32
|
-
}
|
|
@@ -1,9 +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-licensing-options
|
|
8
|
-
*/
|
|
9
|
-
export {};
|