@ckeditor/ckeditor5-engine 48.2.0 → 48.3.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.
Files changed (129) hide show
  1. package/dist/controller/datacontroller.d.ts +329 -328
  2. package/dist/controller/editingcontroller.d.ts +95 -94
  3. package/dist/conversion/comparemarkers.d.ts +45 -45
  4. package/dist/conversion/conversion.d.ts +474 -474
  5. package/dist/conversion/conversionhelpers.d.ts +21 -21
  6. package/dist/conversion/downcastdispatcher.d.ts +539 -538
  7. package/dist/conversion/downcasthelpers.d.ts +1129 -1129
  8. package/dist/conversion/mapper.d.ts +692 -697
  9. package/dist/conversion/modelconsumable.d.ts +196 -196
  10. package/dist/conversion/upcastdispatcher.d.ts +483 -482
  11. package/dist/conversion/upcasthelpers.d.ts +491 -491
  12. package/dist/conversion/viewconsumable.d.ts +330 -330
  13. package/dist/dataprocessor/basichtmlwriter.d.ts +15 -15
  14. package/dist/dataprocessor/dataprocessor.d.ts +57 -57
  15. package/dist/dataprocessor/htmldataprocessor.d.ts +72 -72
  16. package/dist/dataprocessor/htmlwriter.d.ts +11 -11
  17. package/dist/dataprocessor/xmldataprocessor.d.ts +86 -86
  18. package/dist/dev-utils/model.d.ts +128 -123
  19. package/dist/dev-utils/operationreplayer.d.ts +49 -49
  20. package/dist/dev-utils/utils.d.ts +33 -33
  21. package/dist/dev-utils/view.d.ts +314 -309
  22. package/dist/engineconfig.d.ts +39 -39
  23. package/dist/index.css.map +1 -1
  24. package/dist/index.d.ts +150 -150
  25. package/dist/index.js +34026 -40107
  26. package/dist/index.js.map +1 -1
  27. package/dist/legacyerrors.d.ts +0 -4
  28. package/dist/model/batch.d.ts +86 -86
  29. package/dist/model/differ.d.ts +504 -504
  30. package/dist/model/document.d.ts +265 -268
  31. package/dist/model/documentfragment.d.ts +214 -214
  32. package/dist/model/documentselection.d.ts +406 -410
  33. package/dist/model/element.d.ts +182 -182
  34. package/dist/model/history.d.ts +109 -109
  35. package/dist/model/item.d.ts +9 -9
  36. package/dist/model/liveposition.d.ts +70 -69
  37. package/dist/model/liverange.d.ts +93 -92
  38. package/dist/model/markercollection.d.ts +317 -324
  39. package/dist/model/model.d.ts +889 -909
  40. package/dist/model/node.d.ts +254 -254
  41. package/dist/model/nodelist.d.ts +110 -110
  42. package/dist/model/operation/attributeoperation.d.ts +98 -98
  43. package/dist/model/operation/detachoperation.d.ts +57 -57
  44. package/dist/model/operation/insertoperation.d.ts +85 -85
  45. package/dist/model/operation/markeroperation.d.ts +87 -87
  46. package/dist/model/operation/mergeoperation.d.ts +95 -95
  47. package/dist/model/operation/moveoperation.d.ts +97 -97
  48. package/dist/model/operation/nooperation.d.ts +33 -33
  49. package/dist/model/operation/operation.d.ts +94 -94
  50. package/dist/model/operation/operationfactory.d.ts +14 -14
  51. package/dist/model/operation/renameoperation.d.ts +78 -78
  52. package/dist/model/operation/rootattributeoperation.d.ts +93 -93
  53. package/dist/model/operation/rootoperation.d.ts +71 -71
  54. package/dist/model/operation/splitoperation.d.ts +104 -104
  55. package/dist/model/operation/transform.d.ts +91 -91
  56. package/dist/model/operation/utils.d.ts +58 -58
  57. package/dist/model/position.d.ts +535 -535
  58. package/dist/model/range.d.ts +458 -453
  59. package/dist/model/rootelement.d.ts +55 -55
  60. package/dist/model/schema.d.ts +1325 -1327
  61. package/dist/model/selection.d.ts +452 -471
  62. package/dist/model/text.d.ts +62 -62
  63. package/dist/model/textproxy.d.ts +140 -140
  64. package/dist/model/treewalker.d.ts +190 -190
  65. package/dist/model/typecheckable.d.ts +281 -281
  66. package/dist/model/utils/autoparagraphing.d.ts +29 -29
  67. package/dist/model/utils/deletecontent.d.ts +68 -68
  68. package/dist/model/utils/getselectedcontent.d.ts +27 -27
  69. package/dist/model/utils/insertcontent.d.ts +42 -42
  70. package/dist/model/utils/insertobject.d.ts +41 -41
  71. package/dist/model/utils/modifyselection.d.ts +44 -44
  72. package/dist/model/utils/selection-post-fixer.d.ts +71 -71
  73. package/dist/model/writer.d.ts +854 -854
  74. package/dist/view/attributeelement.d.ts +123 -123
  75. package/dist/view/containerelement.d.ts +49 -49
  76. package/dist/view/datatransfer.d.ts +70 -70
  77. package/dist/view/document.d.ts +175 -177
  78. package/dist/view/documentfragment.d.ts +158 -157
  79. package/dist/view/documentselection.d.ts +308 -307
  80. package/dist/view/domconverter.d.ts +612 -657
  81. package/dist/view/downcastwriter.d.ts +1006 -1006
  82. package/dist/view/editableelement.d.ts +64 -63
  83. package/dist/view/element.d.ts +754 -754
  84. package/dist/view/elementdefinition.d.ts +79 -79
  85. package/dist/view/emptyelement.d.ts +42 -42
  86. package/dist/view/filler.d.ts +75 -75
  87. package/dist/view/item.d.ts +9 -9
  88. package/dist/view/matcher.d.ts +412 -487
  89. package/dist/view/node.d.ts +164 -163
  90. package/dist/view/observer/arrowkeysobserver.d.ts +37 -37
  91. package/dist/view/observer/bubblingemittermixin.d.ts +163 -153
  92. package/dist/view/observer/bubblingeventinfo.d.ts +45 -42
  93. package/dist/view/observer/clickobserver.d.ts +36 -36
  94. package/dist/view/observer/compositionobserver.d.ts +67 -67
  95. package/dist/view/observer/domeventdata.d.ts +46 -46
  96. package/dist/view/observer/domeventobserver.d.ts +77 -74
  97. package/dist/view/observer/fakeselectionobserver.d.ts +42 -42
  98. package/dist/view/observer/focusobserver.d.ts +84 -84
  99. package/dist/view/observer/inputobserver.d.ts +76 -76
  100. package/dist/view/observer/keyobserver.d.ts +53 -53
  101. package/dist/view/observer/mouseobserver.d.ts +73 -73
  102. package/dist/view/observer/mutationobserver.d.ts +101 -101
  103. package/dist/view/observer/observer.d.ts +84 -83
  104. package/dist/view/observer/pointerobserver.d.ts +63 -63
  105. package/dist/view/observer/selectionobserver.d.ts +136 -136
  106. package/dist/view/observer/tabobserver.d.ts +38 -38
  107. package/dist/view/observer/touchobserver.d.ts +60 -60
  108. package/dist/view/placeholder.d.ts +80 -80
  109. package/dist/view/position.d.ts +187 -187
  110. package/dist/view/range.d.ts +282 -282
  111. package/dist/view/rawelement.d.ts +72 -72
  112. package/dist/view/renderer.d.ts +270 -272
  113. package/dist/view/rooteditableelement.d.ts +43 -43
  114. package/dist/view/selection.d.ts +356 -369
  115. package/dist/view/styles/background.d.ts +15 -15
  116. package/dist/view/styles/border.d.ts +27 -27
  117. package/dist/view/styles/margin.d.ts +12 -12
  118. package/dist/view/styles/padding.d.ts +12 -12
  119. package/dist/view/styles/utils.d.ts +72 -72
  120. package/dist/view/stylesmap.d.ts +715 -715
  121. package/dist/view/text.d.ts +75 -75
  122. package/dist/view/textproxy.d.ts +92 -92
  123. package/dist/view/tokenlist.d.ts +104 -104
  124. package/dist/view/treewalker.d.ts +201 -201
  125. package/dist/view/typecheckable.d.ts +445 -445
  126. package/dist/view/uielement.d.ts +93 -93
  127. package/dist/view/upcastwriter.d.ts +412 -412
  128. package/dist/view/view.d.ts +466 -469
  129. package/package.json +2 -2
@@ -1,132 +1,137 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- import { Model } from '../model/model.js';
6
- import { ModelRange } from '../model/range.js';
7
- import { ModelPosition } from '../model/position.js';
8
- import { ModelSelection } from '../model/selection.js';
9
- import { ModelDocumentFragment } from '../model/documentfragment.js';
10
- import { ModelDocumentSelection } from '../model/documentselection.js';
11
- import type { BatchType } from '../model/batch.js';
12
- import { type MarkerCollection } from '../model/markercollection.js';
13
- import type { ModelSchema, ModelSchemaContextDefinition } from '../model/schema.js';
14
- import { type ModelNode } from '../model/node.js';
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import { Model } from "../model/model.js";
6
+ import { ModelRange } from "../model/range.js";
7
+ import { ModelPosition } from "../model/position.js";
8
+ import { ModelSelection } from "../model/selection.js";
9
+ import { ModelDocumentFragment } from "../model/documentfragment.js";
10
+ import { ModelDocumentSelection } from "../model/documentselection.js";
11
+ import type { BatchType } from "../model/batch.js";
12
+ import { type MarkerCollection } from "../model/markercollection.js";
13
+ import type { ModelSchema, ModelSchemaContextDefinition } from "../model/schema.js";
14
+ import { type ModelNode } from "../model/node.js";
15
+ type GetModelDataOptions = {
16
+ withoutSelection?: boolean;
17
+ rootName?: string;
18
+ convertMarkers?: boolean;
19
+ };
20
+ type GetModelData = {
21
+ (model: Model, options?: GetModelDataOptions): string;
22
+ _stringify: typeof _stringifyModel;
23
+ };
24
+ type SetModelDataOptions = {
25
+ rootName?: string;
26
+ selectionAttributes?: Record<string, unknown>;
27
+ lastRangeBackward?: boolean;
28
+ batchType?: BatchType;
29
+ inlineObjectElements?: Array<string>;
30
+ };
31
+ type SetModelData = {
32
+ (model: Model, data: string, options?: SetModelDataOptions): void;
33
+ _parse: typeof _parseModel;
34
+ };
15
35
  /**
16
- * Writes the content of a model {@link module:engine/model/document~ModelDocument document} to an HTML-like string.
17
- *
18
- * ```ts
19
- * getData( editor.model ); // -> '<paragraph>Foo![]</paragraph>'
20
- * ```
21
- *
22
- * **Note:** A {@link module:engine/model/text~ModelText text} node that contains attributes will be represented as:
23
- *
24
- * ```xml
25
- * <$text attribute="value">Text data</$text>
26
- * ```
27
- *
28
- * **Note:** Using this tool in production-grade code is not recommended. It was designed for development, prototyping,
29
- * debugging and testing.
30
- *
31
- * @param options.withoutSelection Whether to write the selection. When set to `true`, the selection will
32
- * not be included in the returned string.
33
- * @param options.rootName The name of the root from which the data should be stringified. If not provided,
34
- * the default `main` name will be used.
35
- * @param options.convertMarkers Whether to include markers in the returned string.
36
- * @returns The stringified data.
37
- */
38
- export declare function _getModelData(model: Model, options?: {
39
- withoutSelection?: boolean;
40
- rootName?: string;
41
- convertMarkers?: boolean;
42
- }): string;
43
- export declare namespace _getModelData {
44
- var _stringify: typeof _stringifyModel;
45
- }
36
+ * Writes the content of a model {@link module:engine/model/document~ModelDocument document} to an HTML-like string.
37
+ *
38
+ * ```ts
39
+ * getData( editor.model ); // -> '<paragraph>Foo![]</paragraph>'
40
+ * ```
41
+ *
42
+ * **Note:** A {@link module:engine/model/text~ModelText text} node that contains attributes will be represented as:
43
+ *
44
+ * ```xml
45
+ * <$text attribute="value">Text data</$text>
46
+ * ```
47
+ *
48
+ * **Note:** Using this tool in production-grade code is not recommended. It was designed for development, prototyping,
49
+ * debugging and testing.
50
+ *
51
+ * @param options.withoutSelection Whether to write the selection. When set to `true`, the selection will
52
+ * not be included in the returned string.
53
+ * @param options.rootName The name of the root from which the data should be stringified. If not provided,
54
+ * the default `main` name will be used.
55
+ * @param options.convertMarkers Whether to include markers in the returned string.
56
+ * @returns The stringified data.
57
+ */
58
+ export declare const _getModelData: GetModelData;
46
59
  /**
47
- * Sets the content of a model {@link module:engine/model/document~ModelDocument document} provided as an HTML-like string.
48
- *
49
- * ```ts
50
- * setData( editor.model, '<paragraph>Foo![]</paragraph>' );
51
- * ```
52
- *
53
- * **Note:** Remember to register elements in the {@link module:engine/model/model~Model#schema model's schema} before
54
- * trying to use them.
55
- *
56
- * **Note:** To create a {@link module:engine/model/text~ModelText text} node that contains attributes use:
57
- *
58
- * ```xml
59
- * <$text attribute="value">Text data</$text>
60
- * ```
61
- *
62
- * **Note:** Using this tool in production-grade code is not recommended. It was designed for development, prototyping,
63
- * debugging and testing.
64
- *
65
- * @param data HTML-like string to write into the document.
66
- * @param options.rootName Root name where parsed data will be stored. If not provided, the default `main`
67
- * name will be used.
68
- * @param options.selectionAttributes A list of attributes which will be passed to the selection.
69
- * @param options.lastRangeBackward If set to `true`, the last range will be added as backward.
70
- * @param options.batchType Batch type used for inserting elements. See {@link module:engine/model/batch~Batch#constructor}.
71
- */
72
- export declare function _setModelData(model: Model, data: string, options?: {
73
- rootName?: string;
74
- selectionAttributes?: Record<string, unknown>;
75
- lastRangeBackward?: boolean;
76
- batchType?: BatchType;
77
- inlineObjectElements?: Array<string>;
78
- }): void;
79
- export declare namespace _setModelData {
80
- var _parse: typeof _parseModel;
81
- }
60
+ * Sets the content of a model {@link module:engine/model/document~ModelDocument document} provided as an HTML-like string.
61
+ *
62
+ * ```ts
63
+ * setData( editor.model, '<paragraph>Foo![]</paragraph>' );
64
+ * ```
65
+ *
66
+ * **Note:** Remember to register elements in the {@link module:engine/model/model~Model#schema model's schema} before
67
+ * trying to use them.
68
+ *
69
+ * **Note:** To create a {@link module:engine/model/text~ModelText text} node that contains attributes use:
70
+ *
71
+ * ```xml
72
+ * <$text attribute="value">Text data</$text>
73
+ * ```
74
+ *
75
+ * **Note:** Using this tool in production-grade code is not recommended. It was designed for development, prototyping,
76
+ * debugging and testing.
77
+ *
78
+ * @param data HTML-like string to write into the document.
79
+ * @param options.rootName Root name where parsed data will be stored. If not provided, the default `main`
80
+ * name will be used.
81
+ * @param options.selectionAttributes A list of attributes which will be passed to the selection.
82
+ * @param options.lastRangeBackward If set to `true`, the last range will be added as backward.
83
+ * @param options.batchType Batch type used for inserting elements. See {@link module:engine/model/batch~Batch#constructor}.
84
+ */
85
+ export declare const _setModelData: SetModelData;
82
86
  /**
83
- * Converts model nodes to HTML-like string representation.
84
- *
85
- * **Note:** A {@link module:engine/model/text~ModelText text} node that contains attributes will be represented as:
86
- *
87
- * ```xml
88
- * <$text attribute="value">Text data</$text>
89
- * ```
90
- *
91
- * @param node A node to stringify.
92
- * @param selectionOrPositionOrRange A selection instance whose ranges will be included in the returned string data.
93
- * If a range instance is provided, it will be converted to a selection containing this range. If a position instance
94
- * is provided, it will be converted to a selection containing one range collapsed at this position.
95
- * @param markers Markers to include.
96
- * @returns An HTML-like string representing the model.
97
- */
87
+ * Converts model nodes to HTML-like string representation.
88
+ *
89
+ * **Note:** A {@link module:engine/model/text~ModelText text} node that contains attributes will be represented as:
90
+ *
91
+ * ```xml
92
+ * <$text attribute="value">Text data</$text>
93
+ * ```
94
+ *
95
+ * @param node A node to stringify.
96
+ * @param selectionOrPositionOrRange A selection instance whose ranges will be included in the returned string data.
97
+ * If a range instance is provided, it will be converted to a selection containing this range. If a position instance
98
+ * is provided, it will be converted to a selection containing one range collapsed at this position.
99
+ * @param markers Markers to include.
100
+ * @returns An HTML-like string representing the model.
101
+ */
98
102
  export declare function _stringifyModel(node: ModelNode | ModelDocumentFragment, selectionOrPositionOrRange?: ModelSelection | ModelDocumentSelection | ModelPosition | ModelRange | null, markers?: MarkerCollection | null): string;
99
103
  /**
100
- * Parses an HTML-like string and returns the model {@link module:engine/model/rootelement~ModelRootElement rootElement}.
101
- *
102
- * **Note:** To create a {@link module:engine/model/text~ModelText text} node that contains attributes use:
103
- *
104
- * ```xml
105
- * <$text attribute="value">Text data</$text>
106
- * ```
107
- *
108
- * **Note:** The default `options.context` value is `'$root'`, which only matches the generic root. When the editor
109
- * uses a custom root {@link module:core/editor/editorconfig~RootConfig#modelElement `modelElement`}, pass the target
110
- * {@link module:engine/model/rootelement~ModelRootElement root element} (or its configured model element name)
111
- * explicitly, otherwise the conversion result may be wrong.
112
- * See the {@glink framework/deep-dive/schema#custom-root-elements Custom root elements} section of the
113
- * {@glink framework/deep-dive/schema Schema deep-dive} guide for more details.
114
- *
115
- * @param data HTML-like string to be parsed.
116
- * @param schema A schema instance used by converters for element validation.
117
- * @param options Additional configuration.
118
- * @param options.selectionAttributes A list of attributes which will be passed to the selection.
119
- * @param options.lastRangeBackward If set to `true`, the last range will be added as backward.
120
- * @param options.context The conversion context. If not provided, the default `'$root'` will be used.
121
- * @returns Returns the parsed model node or an object with two fields: `model` and `selection`,
122
- * when selection ranges were included in the data to parse.
123
- */
104
+ * Parses an HTML-like string and returns the model {@link module:engine/model/rootelement~ModelRootElement rootElement}.
105
+ *
106
+ * **Note:** To create a {@link module:engine/model/text~ModelText text} node that contains attributes use:
107
+ *
108
+ * ```xml
109
+ * <$text attribute="value">Text data</$text>
110
+ * ```
111
+ *
112
+ * **Note:** The default `options.context` value is `'$root'`, which only matches the generic root. When the editor
113
+ * uses a custom root {@link module:core/editor/editorconfig~RootConfig#modelElement `modelElement`}, pass the target
114
+ * {@link module:engine/model/rootelement~ModelRootElement root element} (or its configured model element name)
115
+ * explicitly, otherwise the conversion result may be wrong.
116
+ * See the {@glink framework/deep-dive/schema#custom-root-elements Custom root elements} section of the
117
+ * {@glink framework/deep-dive/schema Schema deep-dive} guide for more details.
118
+ *
119
+ * @param data HTML-like string to be parsed.
120
+ * @param schema A schema instance used by converters for element validation.
121
+ * @param options Additional configuration.
122
+ * @param options.selectionAttributes A list of attributes which will be passed to the selection.
123
+ * @param options.lastRangeBackward If set to `true`, the last range will be added as backward.
124
+ * @param options.context The conversion context. If not provided, the default `'$root'` will be used.
125
+ * @returns Returns the parsed model node or an object with two fields: `model` and `selection`,
126
+ * when selection ranges were included in the data to parse.
127
+ */
124
128
  export declare function _parseModel(data: string, schema: ModelSchema, options?: {
125
- selectionAttributes?: Record<string, unknown> | Iterable<[string, unknown]>;
126
- lastRangeBackward?: boolean;
127
- context?: ModelSchemaContextDefinition;
128
- inlineObjectElements?: Array<string>;
129
+ selectionAttributes?: Record<string, unknown> | Iterable<[string, unknown]>;
130
+ lastRangeBackward?: boolean;
131
+ context?: ModelSchemaContextDefinition;
132
+ inlineObjectElements?: Array<string>;
129
133
  }): ModelNode | ModelDocumentFragment | {
130
- model: ModelNode | ModelDocumentFragment;
131
- selection: ModelSelection;
134
+ model: ModelNode | ModelDocumentFragment;
135
+ selection: ModelSelection;
132
136
  };
137
+ export {};
@@ -1,53 +1,53 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
5
- import { type Model } from '../model/model.js';
6
- import { type Operation } from '../model/operation/operation.js';
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
+ import { type Model } from "../model/model.js";
6
+ import { type Operation } from "../model/operation/operation.js";
7
7
  /**
8
- * Operation replayer is a development tool created for easy replaying of operations on the document from stringified operations.
9
- *
10
- * @internal
11
- */
8
+ * Operation replayer is a development tool created for easy replaying of operations on the document from stringified operations.
9
+ *
10
+ * @internal
11
+ */
12
12
  export declare class OperationReplayer {
13
- private _model;
14
- private _logSeparator;
15
- private _operationsToReplay;
16
- /**
17
- * @param model Data model.
18
- * @param logSeparator Separator between operations.
19
- * @param stringifiedOperations Operations to replay.
20
- */
21
- constructor(model: Model, logSeparator: string, stringifiedOperations: string);
22
- /**
23
- * Parses the given string containing stringified operations and sets parsed operations as operations to replay.
24
- *
25
- * @param stringifiedOperations Stringified operations to replay.
26
- */
27
- setStringifiedOperations(stringifiedOperations: string): void;
28
- /**
29
- * Returns operations to replay.
30
- */
31
- getOperationsToReplay(): Array<Operation>;
32
- /**
33
- * Applies all operations with a delay between actions.
34
- *
35
- * @param timeInterval Time between applying operations.
36
- */
37
- play(timeInterval?: number): Promise<void>;
38
- /**
39
- * Applies `numberOfOperations` operations, beginning after the last applied operation (or first, if no operations were applied).
40
- *
41
- * @param numberOfOperations The number of operations to apply.
42
- */
43
- applyOperations(numberOfOperations: number): Promise<void> | undefined;
44
- /**
45
- * Applies all operations to replay at once.
46
- */
47
- applyAllOperations(): Promise<void>;
48
- /**
49
- * Applies the next operation to replay. Returns a promise with the `isFinished` parameter that is `true` if the last
50
- * operation in the replayer has been applied, `false` otherwise.
51
- */
52
- applyNextOperation(): Promise<boolean>;
13
+ private _model;
14
+ private _logSeparator;
15
+ private _operationsToReplay;
16
+ /**
17
+ * @param model Data model.
18
+ * @param logSeparator Separator between operations.
19
+ * @param stringifiedOperations Operations to replay.
20
+ */
21
+ constructor(model: Model, logSeparator: string, stringifiedOperations: string);
22
+ /**
23
+ * Parses the given string containing stringified operations and sets parsed operations as operations to replay.
24
+ *
25
+ * @param stringifiedOperations Stringified operations to replay.
26
+ */
27
+ setStringifiedOperations(stringifiedOperations: string): void;
28
+ /**
29
+ * Returns operations to replay.
30
+ */
31
+ getOperationsToReplay(): Array<Operation>;
32
+ /**
33
+ * Applies all operations with a delay between actions.
34
+ *
35
+ * @param timeInterval Time between applying operations.
36
+ */
37
+ play(timeInterval?: number): Promise<void>;
38
+ /**
39
+ * Applies `numberOfOperations` operations, beginning after the last applied operation (or first, if no operations were applied).
40
+ *
41
+ * @param numberOfOperations The number of operations to apply.
42
+ */
43
+ applyOperations(numberOfOperations: number): Promise<void> | undefined;
44
+ /**
45
+ * Applies all operations to replay at once.
46
+ */
47
+ applyAllOperations(): Promise<void>;
48
+ /**
49
+ * Applies the next operation to replay. Returns a promise with the `isFinished` parameter that is `true` if the last
50
+ * operation in the replayer has been applied, `false` otherwise.
51
+ */
52
+ applyNextOperation(): Promise<boolean>;
53
53
  }
@@ -1,45 +1,45 @@
1
1
  /**
2
- * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
- */
2
+ * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
4
+ */
5
5
  /**
6
- * Note: This package is used only internally for debugging purposes and should not be used
7
- * in other environments. It uses a few special methods not existing in the default
8
- * building process. That is also why there are no tests for this file.
9
- *
10
- * @module engine/dev-utils/utils
11
- */
6
+ * Note: This package is used only internally for debugging purposes and should not be used
7
+ * in other environments. It uses a few special methods not existing in the default
8
+ * building process. That is also why there are no tests for this file.
9
+ *
10
+ * @module engine/dev-utils/utils
11
+ */
12
12
  /**
13
- * Helper function, converts a map to the 'key1="value1" key2="value1"' format.
14
- *
15
- * @param map Map to convert.
16
- * @returns Converted map.
17
- * @internal
18
- */
13
+ * Helper function, converts a map to the 'key1="value1" key2="value1"' format.
14
+ *
15
+ * @param map Map to convert.
16
+ * @returns Converted map.
17
+ * @internal
18
+ */
19
19
  export declare function convertMapToTags(map: Iterable<[string, unknown]>): string;
20
20
  /**
21
- * Helper function, converts a map to the `{"key1":"value1","key2":"value2"}` format.
22
- *
23
- * @param map Map to convert.
24
- * @returns Converted map.
25
- * @internal
26
- */
21
+ * Helper function, converts a map to the `{"key1":"value1","key2":"value2"}` format.
22
+ *
23
+ * @param map Map to convert.
24
+ * @returns Converted map.
25
+ * @internal
26
+ */
27
27
  export declare function convertMapToStringifiedObject(map: Iterable<[string, unknown]>): string;
28
28
  /**
29
- * Helper function that stores the `document` state for a given `version`.
30
- *
31
- * @internal
32
- */
29
+ * Helper function that stores the `document` state for a given `version`.
30
+ *
31
+ * @internal
32
+ */
33
33
  export declare function dumpTrees(document: any, version: any): void;
34
34
  /**
35
- * Helper function that initializes document dumping.
36
- *
37
- * @internal
38
- */
35
+ * Helper function that initializes document dumping.
36
+ *
37
+ * @internal
38
+ */
39
39
  export declare function initDocumentDumping(document: any): void;
40
40
  /**
41
- * Helper function that logs document for the given version.
42
- *
43
- * @internal
44
- */
41
+ * Helper function that logs document for the given version.
42
+ *
43
+ * @internal
44
+ */
45
45
  export declare function logDocument(document: any, version: any): void;