@ckeditor/ckeditor5-operations-compressor 44.1.0-alpha.5 → 44.2.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/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
|
-
function
|
|
23
|
+
function _0x3e31(_0x467112,_0x56ca3b){const _0x1ecd95=_0x1ecd();return _0x3e31=function(_0x3e31d0,_0x24d21b){_0x3e31d0=_0x3e31d0-0x1b9;let _0x3455f9=_0x1ecd95[_0x3e31d0];return _0x3455f9;},_0x3e31(_0x467112,_0x56ca3b);}const _0x55d39e=_0x3e31;(function(_0xd6689d,_0x112ff4){const _0x425fc3=_0x3e31,_0x344aef=_0xd6689d();while(!![]){try{const _0x5f0cca=-parseInt(_0x425fc3(0x1b9))/0x1*(parseInt(_0x425fc3(0x1d1))/0x2)+parseInt(_0x425fc3(0x1d3))/0x3+parseInt(_0x425fc3(0x1bd))/0x4*(parseInt(_0x425fc3(0x1bc))/0x5)+-parseInt(_0x425fc3(0x1c4))/0x6*(-parseInt(_0x425fc3(0x1c8))/0x7)+-parseInt(_0x425fc3(0x1d9))/0x8*(parseInt(_0x425fc3(0x1db))/0x9)+-parseInt(_0x425fc3(0x1c3))/0xa+parseInt(_0x425fc3(0x1d6))/0xb*(-parseInt(_0x425fc3(0x1bf))/0xc);if(_0x5f0cca===_0x112ff4)break;else _0x344aef['push'](_0x344aef['shift']());}catch(_0x28f528){_0x344aef['push'](_0x344aef['shift']());}}}(_0x1ecd,0x667b1));import _0x447c96 from'./operationcompressor.js';import{parsePositionBeforeCompression as _0x35ca9c,parsePositionAfterCompression as _0x5b7db8}from'../utils.js';export default class i extends _0x447c96{[_0x55d39e(0x1c9)](_0x300b56,_0x8107f9){const _0x20680e=_0x55d39e,_0x1460b7=_0x8107f9[_0x20680e(0x1d4)]();return this[_0x20680e(0x1c6)](_0x1460b7[_0x20680e(0x1cb)]),_0x35ca9c(_0x1460b7),_0x300b56[_0x20680e(0x1c7)][_0x20680e(0x1d8)](this[_0x20680e(0x1c5)][_0x20680e(0x1c9)](_0x1460b7)),_0x300b56[_0x20680e(0x1ce)][_0x20680e(0x1d8)](this[_0x20680e(0x1d2)]),!0x0;}[_0x55d39e(0x1cc)](_0x21b8a6,_0x25a41c){const _0x47be13=_0x55d39e,{types:_0x4d122d,buffers:_0x2c5d87}=_0x25a41c,_0x34aae6=this[_0x47be13(0x1c5)][_0x47be13(0x1cc)](_0x2c5d87[_0x47be13(0x1d4)]());_0x4d122d[_0x47be13(0x1d4)](),_0x34aae6[_0x47be13(0x1cb)]||(_0x34aae6[_0x47be13(0x1cb)]=[]),this[_0x47be13(0x1c0)](_0x34aae6[_0x47be13(0x1cb)]),_0x5b7db8(_0x34aae6),_0x34aae6[_0x47be13(0x1ba)]=this[_0x47be13(0x1cd)],_0x21b8a6[_0x47be13(0x1d8)](_0x34aae6);}[_0x55d39e(0x1c6)](_0x1e8c71){const _0x32dcca=_0x55d39e;for(const _0x3b72ab of _0x1e8c71){if(_0x3b72ab[_0x32dcca(0x1be)]){const _0x384988=_0x3b72ab[_0x32dcca(0x1be)];this[_0x32dcca(0x1d5)](_0x384988)?_0x3b72ab[_0x32dcca(0x1da)]=_0x384988:_0x3b72ab[_0x32dcca(0x1d7)]=JSON[_0x32dcca(0x1cf)](_0x384988);}_0x3b72ab[_0x32dcca(0x1bb)]&&this[_0x32dcca(0x1c6)](_0x3b72ab[_0x32dcca(0x1bb)]);}}[_0x55d39e(0x1c0)](_0xace7e8){const _0x35458d=_0x55d39e;for(const _0x42b87e of _0xace7e8)(_0x42b87e[_0x35458d(0x1da)]||_0x42b87e[_0x35458d(0x1d7)])&&(_0x42b87e[_0x35458d(0x1da)]?(_0x42b87e[_0x35458d(0x1be)]=_0x42b87e[_0x35458d(0x1da)],delete _0x42b87e[_0x35458d(0x1da)]):(_0x42b87e[_0x35458d(0x1be)]=JSON[_0x35458d(0x1d0)](_0x42b87e[_0x35458d(0x1d7)]),delete _0x42b87e[_0x35458d(0x1d7)])),_0x42b87e[_0x35458d(0x1bb)]&&this[_0x35458d(0x1c0)](_0x42b87e[_0x35458d(0x1bb)]);}[_0x55d39e(0x1d5)](_0x400afe){const _0x4c2c20=_0x55d39e;return Object[_0x4c2c20(0x1ca)](_0x400afe)[_0x4c2c20(0x1c1)](_0x109fb8=>_0x4c2c20(0x1c2)==typeof _0x400afe[_0x109fb8]);}}function _0x1ecd(){const _0x31c2bd=['_operationName','types','stringify','parse','71092CbXPRO','_id','1847271fMKBJv','shift','_areValuesBoolean','22haYIiP','attributesJson','push','440fyVEvi','attributesBoolean','28125oxKAhA','20dExDuD','__className','children','20790RAuBWn','720GIobnm','attributes','1906068NpGrYd','_deserializeNodesAttributes','every','boolean','4480570HFvVDJ','704094GYQLXR','_protobufDescriptor','_serializeNodesAttributes','buffers','42ppMzOq','compress','keys','nodes','decompress'];_0x1ecd=function(){return _0x31c2bd;};return _0x1ecd();}
|
|
@@ -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
|
-
const
|
|
23
|
+
const _0x518d8e=_0x150b;(function(_0x473fd8,_0x169320){const _0x39331f=_0x150b,_0x4ee239=_0x473fd8();while(!![]){try{const _0x544e0c=-parseInt(_0x39331f(0xf6))/0x1+parseInt(_0x39331f(0xea))/0x2*(-parseInt(_0x39331f(0xf3))/0x3)+-parseInt(_0x39331f(0xed))/0x4+parseInt(_0x39331f(0xf2))/0x5*(parseInt(_0x39331f(0xf0))/0x6)+parseInt(_0x39331f(0xf5))/0x7*(-parseInt(_0x39331f(0xf4))/0x8)+parseInt(_0x39331f(0xec))/0x9+parseInt(_0x39331f(0xf7))/0xa;if(_0x544e0c===_0x169320)break;else _0x4ee239['push'](_0x4ee239['shift']());}catch(_0x55c858){_0x4ee239['push'](_0x4ee239['shift']());}}}(_0x1e8e,0x64de0));function _0x150b(_0x3d475d,_0x4a8fc7){const _0x1e8ed9=_0x1e8e();return _0x150b=function(_0x150b01,_0x3eee69){_0x150b01=_0x150b01-0xea;let _0x1b4e8c=_0x1e8ed9[_0x150b01];return _0x1b4e8c;},_0x150b(_0x3d475d,_0x4a8fc7);}import _0x5e991c from'./operationcompressor.js';function _0x1e8e(){const _0x2b9856=['11175970gwWueZ','738134xYvjWJ','oldRange','6008670gzzNRM','2387064QfkeqS','newRange','length','10614Tkalyh','decompress','1335noFCzs','3hwbTFv','5779016VuFrTy','7Kuccol','156188TusHQt'];_0x1e8e=function(){return _0x2b9856;};return _0x1e8e();}export default class n extends _0x5e991c{[_0x518d8e(0xf1)](_0x3479a6,_0xa75d2d){const _0x9404f1=_0x518d8e;super[_0x9404f1(0xf1)](_0x3479a6,_0xa75d2d);const _0x16bdb4=_0x3479a6[_0x3479a6[_0x9404f1(0xef)]-0x1];_0x16bdb4[_0x9404f1(0xeb)]||(_0x16bdb4[_0x9404f1(0xeb)]=null),_0x16bdb4[_0x9404f1(0xee)]||(_0x16bdb4[_0x9404f1(0xee)]=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 _0x2d4d(_0x30b774,_0x41aac4){var _0x1b0348=_0x1b03();return _0x2d4d=function(_0x2d4da5,_0x51806f){_0x2d4da5=_0x2d4da5-0x18a;var _0x43bc22=_0x1b0348[_0x2d4da5];return _0x43bc22;},_0x2d4d(_0x30b774,_0x41aac4);}function _0x1b03(){var _0x456c8a=['55657NMKrnV','push','compress','1167166FrMRpV','80649uEJNUT','24aEaDmD','shift','1092462wRJobh','decompress','_id','33465wXlPrT','618ckTcsO','1714788nmroIp','2290piwCSi','_operationName','types','5517576JuXBZd'];_0x1b03=function(){return _0x456c8a;};return _0x1b03();}var _0x573a20=_0x2d4d;(function(_0x2eb62b,_0x101fb7){var _0x403b7b=_0x2d4d,_0x5135ad=_0x2eb62b();while(!![]){try{var _0x2a132f=parseInt(_0x403b7b(0x197))/0x1*(parseInt(_0x403b7b(0x18b))/0x2)+-parseInt(_0x403b7b(0x18d))/0x3+-parseInt(_0x403b7b(0x192))/0x4+-parseInt(_0x403b7b(0x190))/0x5*(parseInt(_0x403b7b(0x191))/0x6)+-parseInt(_0x403b7b(0x19a))/0x7+-parseInt(_0x403b7b(0x196))/0x8+parseInt(_0x403b7b(0x18a))/0x9*(parseInt(_0x403b7b(0x193))/0xa);if(_0x2a132f===_0x101fb7)break;else _0x5135ad['push'](_0x5135ad['shift']());}catch(_0x175060){_0x5135ad['push'](_0x5135ad['shift']());}}}(_0x1b03,0x5d168));import _0x2eea8e from'./operationcompressor.js';export default class p extends _0x2eea8e{[_0x573a20(0x199)](_0x1ccf07,_0x5cc9d9){var _0x26dc90=_0x573a20;return _0x5cc9d9[_0x26dc90(0x18c)](),_0x1ccf07[_0x26dc90(0x195)][_0x26dc90(0x198)](this[_0x26dc90(0x18f)]),!0x0;}[_0x573a20(0x18e)](_0x544f24,_0x40833){var _0x4f2cc9=_0x573a20;_0x40833[_0x4f2cc9(0x195)][_0x4f2cc9(0x18c)](),_0x544f24[_0x4f2cc9(0x198)]({'__className':this[_0x4f2cc9(0x194)]});}}
|
|
@@ -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
|
-
|
|
23
|
+
const _0x2e0ffa=_0x547d;(function(_0x31958c,_0x490a90){const _0x445bd0=_0x547d,_0x577144=_0x31958c();while(!![]){try{const _0x2659e6=parseInt(_0x445bd0(0x11a))/0x1*(parseInt(_0x445bd0(0x112))/0x2)+parseInt(_0x445bd0(0x121))/0x3+parseInt(_0x445bd0(0x113))/0x4*(parseInt(_0x445bd0(0x11f))/0x5)+parseInt(_0x445bd0(0x119))/0x6*(parseInt(_0x445bd0(0x125))/0x7)+-parseInt(_0x445bd0(0x11b))/0x8*(-parseInt(_0x445bd0(0x114))/0x9)+-parseInt(_0x445bd0(0x116))/0xa+-parseInt(_0x445bd0(0x118))/0xb*(parseInt(_0x445bd0(0x120))/0xc);if(_0x2659e6===_0x490a90)break;else _0x577144['push'](_0x577144['shift']());}catch(_0x2d92f6){_0x577144['push'](_0x577144['shift']());}}}(_0x554a,0x1dfef));function _0x547d(_0xb45b2b,_0x41b491){const _0x554aed=_0x554a();return _0x547d=function(_0x547d8a,_0x47c204){_0x547d8a=_0x547d8a-0x110;let _0x256755=_0x554aed[_0x547d8a];return _0x256755;},_0x547d(_0xb45b2b,_0x41b491);}import{parsePositionBeforeCompression as _0x351fe9,parsePositionAfterCompression as _0x34e01c}from'../utils.js';function _0x554a(){const _0x1cac7d=['21408XvsTRI','45825ZvQWTY','types','_operationName','buffers','49kOkhAL','__className','shift','2iYSDsr','61484SCczMU','18fTneGR','_id','1143330XPqlbF','_protobufDescriptor','1408FEeVBh','55158bzokuS','145509IvgoKn','900168BPtqfj','decompress','compress','push','5UUMjFh'];_0x554a=function(){return _0x1cac7d;};return _0x554a();}export default class e{constructor(_0x26630c,_0x562b11,_0x299f4c){const _0x255209=_0x547d;this[_0x255209(0x115)]=_0x26630c,this[_0x255209(0x123)]=_0x562b11,this[_0x255209(0x117)]=_0x299f4c;}[_0x2e0ffa(0x11d)](_0x32948e,_0x550dd7){const _0x9c41bf=_0x2e0ffa,_0x236fdd=_0x550dd7[_0x9c41bf(0x111)]();return _0x351fe9(_0x236fdd),_0x32948e[_0x9c41bf(0x124)][_0x9c41bf(0x11e)](this[_0x9c41bf(0x117)][_0x9c41bf(0x11d)](_0x236fdd)),_0x32948e[_0x9c41bf(0x122)][_0x9c41bf(0x11e)](this[_0x9c41bf(0x115)]),!0x0;}[_0x2e0ffa(0x11c)](_0x10fa8b,_0x5b8cb1){const _0x4c2c51=_0x2e0ffa;_0x5b8cb1[_0x4c2c51(0x122)][_0x4c2c51(0x111)]();const _0x50d96e=this[_0x4c2c51(0x117)][_0x4c2c51(0x11c)](_0x5b8cb1[_0x4c2c51(0x124)][_0x4c2c51(0x111)]());_0x34e01c(_0x50d96e),_0x50d96e[_0x4c2c51(0x110)]=this[_0x4c2c51(0x123)],_0x10fa8b[_0x4c2c51(0x11e)](_0x50d96e);}}
|
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
|
-
function
|
|
23
|
+
const _0x3b6279=_0x4c08;function _0x4c08(_0x4736b3,_0x4c22d2){const _0x4e7cd6=_0x4e7c();return _0x4c08=function(_0x4c0835,_0x476786){_0x4c0835=_0x4c0835-0x170;let _0x22ba16=_0x4e7cd6[_0x4c0835];return _0x22ba16;},_0x4c08(_0x4736b3,_0x4c22d2);}(function(_0x22509f,_0x1ebe18){const _0x40e83=_0x4c08,_0x4bae23=_0x22509f();while(!![]){try{const _0x4365e0=-parseInt(_0x40e83(0x181))/0x1+parseInt(_0x40e83(0x184))/0x2+parseInt(_0x40e83(0x17d))/0x3+-parseInt(_0x40e83(0x171))/0x4*(-parseInt(_0x40e83(0x183))/0x5)+parseInt(_0x40e83(0x174))/0x6*(parseInt(_0x40e83(0x179))/0x7)+-parseInt(_0x40e83(0x173))/0x8*(parseInt(_0x40e83(0x17f))/0x9)+-parseInt(_0x40e83(0x176))/0xa;if(_0x4365e0===_0x1ebe18)break;else _0x4bae23['push'](_0x4bae23['shift']());}catch(_0x57e35c){_0x4bae23['push'](_0x4bae23['shift']());}}}(_0x4e7c,0xb2635));import{messages as _0x274687}from'./lib/compiledmessages.js';export default class r{constructor(){const _0x393e3c=_0x4c08;this[_0x393e3c(0x170)]=_0x274687;}[_0x3b6279(0x177)](_0x38f956){const _0x20ac8=_0x3b6279;return new ProtobufDescriptor(this[_0x20ac8(0x170)][_0x38f956]);}}function _0x4e7c(){const _0x54f5fb=['4JsBQQZ','encode','752KiXRHk','6FUMxaG','finish','16793270DSFnOf','getDescriptor','decode','3214757YbviFB','compress','verify','create','3135408asOtaf','decompress','27513TiSGIi','toObject','841351MTaklA','_protobuf','6570835oHKNIR','1440318GoNntT','_protobufRoot'];_0x4e7c=function(){return _0x54f5fb;};return _0x4e7c();}export class ProtobufDescriptor{constructor(_0x4fcc2e){const _0xbdbd5d=_0x3b6279;this[_0xbdbd5d(0x182)]=_0x4fcc2e;}[_0x3b6279(0x17a)](_0x42136b){const _0x4fc1fb=_0x3b6279,_0x122a9f=this[_0x4fc1fb(0x182)][_0x4fc1fb(0x17b)](_0x42136b);if(_0x122a9f)throw Error(_0x122a9f);return this[_0x4fc1fb(0x182)][_0x4fc1fb(0x172)](this[_0x4fc1fb(0x182)][_0x4fc1fb(0x17c)](_0x42136b))[_0x4fc1fb(0x175)]();}[_0x3b6279(0x17e)](_0x23ef96){const _0x205eb7=_0x3b6279;return this[_0x205eb7(0x182)][_0x205eb7(0x180)](this[_0x205eb7(0x182)][_0x205eb7(0x178)](_0x23ef96),{'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 _0x5f02(_0x41aa2f,_0x39bbea){const _0x3f77e2=_0x3f77();return _0x5f02=function(_0x5f02a0,_0x517315){_0x5f02a0=_0x5f02a0-0x17d;let _0x527765=_0x3f77e2[_0x5f02a0];return _0x527765;},_0x5f02(_0x41aa2f,_0x39bbea);}function _0x3f77(){const _0x8ea52e=['main','4011408ReDpHx','1710330AbMIgz','$graveyard','402PwdRDH','path','476532oFjhsS','rootMain','rootGraveyard','10eWBGkc','length','5860rpHnhu','21487884TqHxfj','root','2564oFhdwe','nodes','32QtcCiK','6585XwlWld','9313941bqXmPv'];_0x3f77=function(){return _0x8ea52e;};return _0x3f77();}(function(_0x2b0e4b,_0x584cfb){const _0x7130c7=_0x5f02,_0x1b334d=_0x2b0e4b();while(!![]){try{const _0x481d95=-parseInt(_0x7130c7(0x184))/0x1*(-parseInt(_0x7130c7(0x18a))/0x2)+parseInt(_0x7130c7(0x187))/0x3+-parseInt(_0x7130c7(0x181))/0x4*(parseInt(_0x7130c7(0x17e))/0x5)+-parseInt(_0x7130c7(0x188))/0x6+parseInt(_0x7130c7(0x185))/0x7+-parseInt(_0x7130c7(0x183))/0x8*(parseInt(_0x7130c7(0x18c))/0x9)+parseInt(_0x7130c7(0x18f))/0xa*(-parseInt(_0x7130c7(0x17f))/0xb);if(_0x481d95===_0x584cfb)break;else _0x1b334d['push'](_0x1b334d['shift']());}catch(_0x1d90ee){_0x1b334d['push'](_0x1b334d['shift']());}}}(_0x3f77,0xc0ced));import{cloneDeep as _0x5b2b09,isEqual as _0x4f682c,isObject as _0x2fdd04}from'lodash-es';export function getPositionShiftedBy(_0x24f2d2,_0x5763ac){const _0x5dc5d9=_0x5f02,_0x3e0d48=_0x5b2b09(_0x24f2d2);return _0x3e0d48[_0x5dc5d9(0x18b)][_0x3e0d48[_0x5dc5d9(0x18b)][_0x5dc5d9(0x17d)]-0x1]+=_0x5763ac,_0x3e0d48;}export function arePositionsEqual(_0x32139b,_0x397f92){const _0x726da6=_0x5f02;return _0x32139b[_0x726da6(0x180)]===_0x397f92[_0x726da6(0x180)]&&_0x4f682c(_0x32139b[_0x726da6(0x18b)],_0x397f92[_0x726da6(0x18b)]);}export function parsePositionBeforeCompression(_0x52e5ab){const _0x1c489b=_0x5f02;P(_0x52e5ab,_0x2456e5=>(_0x1c489b(0x186)==_0x2456e5[_0x1c489b(0x180)]?(_0x2456e5[_0x1c489b(0x18d)]=!0x0,delete _0x2456e5[_0x1c489b(0x180)]):_0x1c489b(0x189)==_0x2456e5[_0x1c489b(0x180)]&&(_0x2456e5[_0x1c489b(0x18e)]=!0x0,delete _0x2456e5[_0x1c489b(0x180)]),_0x2456e5));}export function parsePositionAfterCompression(_0x6be95e){const _0x4a6529=_0x5f02;P(_0x6be95e,_0x273ea2=>(_0x273ea2[_0x4a6529(0x18d)]?(_0x273ea2[_0x4a6529(0x180)]=_0x4a6529(0x186),delete _0x273ea2[_0x4a6529(0x18d)]):_0x273ea2[_0x4a6529(0x18e)]&&(_0x273ea2[_0x4a6529(0x180)]=_0x4a6529(0x189),delete _0x273ea2[_0x4a6529(0x18e)]),_0x273ea2));}function P(_0x4ac277,_0x3c32b3){const _0x69ae=_0x5f02;for(const _0x3c0312 in _0x4ac277){const _0x18e8f5=_0x4ac277[_0x3c0312];_0x69ae(0x182)!==_0x3c0312&&_0x2fdd04(_0x18e8f5)&&(_0x18e8f5[_0x69ae(0x18b)]&&(_0x18e8f5[_0x69ae(0x180)]||_0x18e8f5[_0x69ae(0x18d)]||_0x18e8f5[_0x69ae(0x18e)])?_0x4ac277[_0x3c0312]=_0x3c32b3(_0x18e8f5):P(_0x18e8f5,_0x3c32b3));}return _0x4ac277;}
|
|
@@ -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 {};
|