@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.
- package/dist/controller/datacontroller.d.ts +329 -328
- package/dist/controller/editingcontroller.d.ts +95 -94
- package/dist/conversion/comparemarkers.d.ts +45 -45
- package/dist/conversion/conversion.d.ts +474 -474
- package/dist/conversion/conversionhelpers.d.ts +21 -21
- package/dist/conversion/downcastdispatcher.d.ts +539 -538
- package/dist/conversion/downcasthelpers.d.ts +1129 -1129
- package/dist/conversion/mapper.d.ts +692 -697
- package/dist/conversion/modelconsumable.d.ts +196 -196
- package/dist/conversion/upcastdispatcher.d.ts +483 -482
- package/dist/conversion/upcasthelpers.d.ts +491 -491
- package/dist/conversion/viewconsumable.d.ts +330 -330
- package/dist/dataprocessor/basichtmlwriter.d.ts +15 -15
- package/dist/dataprocessor/dataprocessor.d.ts +57 -57
- package/dist/dataprocessor/htmldataprocessor.d.ts +72 -72
- package/dist/dataprocessor/htmlwriter.d.ts +11 -11
- package/dist/dataprocessor/xmldataprocessor.d.ts +86 -86
- package/dist/dev-utils/model.d.ts +128 -123
- package/dist/dev-utils/operationreplayer.d.ts +49 -49
- package/dist/dev-utils/utils.d.ts +33 -33
- package/dist/dev-utils/view.d.ts +314 -309
- package/dist/engineconfig.d.ts +39 -39
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +150 -150
- package/dist/index.js +34026 -40107
- package/dist/index.js.map +1 -1
- package/dist/legacyerrors.d.ts +0 -4
- package/dist/model/batch.d.ts +86 -86
- package/dist/model/differ.d.ts +504 -504
- package/dist/model/document.d.ts +265 -268
- package/dist/model/documentfragment.d.ts +214 -214
- package/dist/model/documentselection.d.ts +406 -410
- package/dist/model/element.d.ts +182 -182
- package/dist/model/history.d.ts +109 -109
- package/dist/model/item.d.ts +9 -9
- package/dist/model/liveposition.d.ts +70 -69
- package/dist/model/liverange.d.ts +93 -92
- package/dist/model/markercollection.d.ts +317 -324
- package/dist/model/model.d.ts +889 -909
- package/dist/model/node.d.ts +254 -254
- package/dist/model/nodelist.d.ts +110 -110
- package/dist/model/operation/attributeoperation.d.ts +98 -98
- package/dist/model/operation/detachoperation.d.ts +57 -57
- package/dist/model/operation/insertoperation.d.ts +85 -85
- package/dist/model/operation/markeroperation.d.ts +87 -87
- package/dist/model/operation/mergeoperation.d.ts +95 -95
- package/dist/model/operation/moveoperation.d.ts +97 -97
- package/dist/model/operation/nooperation.d.ts +33 -33
- package/dist/model/operation/operation.d.ts +94 -94
- package/dist/model/operation/operationfactory.d.ts +14 -14
- package/dist/model/operation/renameoperation.d.ts +78 -78
- package/dist/model/operation/rootattributeoperation.d.ts +93 -93
- package/dist/model/operation/rootoperation.d.ts +71 -71
- package/dist/model/operation/splitoperation.d.ts +104 -104
- package/dist/model/operation/transform.d.ts +91 -91
- package/dist/model/operation/utils.d.ts +58 -58
- package/dist/model/position.d.ts +535 -535
- package/dist/model/range.d.ts +458 -453
- package/dist/model/rootelement.d.ts +55 -55
- package/dist/model/schema.d.ts +1325 -1327
- package/dist/model/selection.d.ts +452 -471
- package/dist/model/text.d.ts +62 -62
- package/dist/model/textproxy.d.ts +140 -140
- package/dist/model/treewalker.d.ts +190 -190
- package/dist/model/typecheckable.d.ts +281 -281
- package/dist/model/utils/autoparagraphing.d.ts +29 -29
- package/dist/model/utils/deletecontent.d.ts +68 -68
- package/dist/model/utils/getselectedcontent.d.ts +27 -27
- package/dist/model/utils/insertcontent.d.ts +42 -42
- package/dist/model/utils/insertobject.d.ts +41 -41
- package/dist/model/utils/modifyselection.d.ts +44 -44
- package/dist/model/utils/selection-post-fixer.d.ts +71 -71
- package/dist/model/writer.d.ts +854 -854
- package/dist/view/attributeelement.d.ts +123 -123
- package/dist/view/containerelement.d.ts +49 -49
- package/dist/view/datatransfer.d.ts +70 -70
- package/dist/view/document.d.ts +175 -177
- package/dist/view/documentfragment.d.ts +158 -157
- package/dist/view/documentselection.d.ts +308 -307
- package/dist/view/domconverter.d.ts +612 -657
- package/dist/view/downcastwriter.d.ts +1006 -1006
- package/dist/view/editableelement.d.ts +64 -63
- package/dist/view/element.d.ts +754 -754
- package/dist/view/elementdefinition.d.ts +79 -79
- package/dist/view/emptyelement.d.ts +42 -42
- package/dist/view/filler.d.ts +75 -75
- package/dist/view/item.d.ts +9 -9
- package/dist/view/matcher.d.ts +412 -487
- package/dist/view/node.d.ts +164 -163
- package/dist/view/observer/arrowkeysobserver.d.ts +37 -37
- package/dist/view/observer/bubblingemittermixin.d.ts +163 -153
- package/dist/view/observer/bubblingeventinfo.d.ts +45 -42
- package/dist/view/observer/clickobserver.d.ts +36 -36
- package/dist/view/observer/compositionobserver.d.ts +67 -67
- package/dist/view/observer/domeventdata.d.ts +46 -46
- package/dist/view/observer/domeventobserver.d.ts +77 -74
- package/dist/view/observer/fakeselectionobserver.d.ts +42 -42
- package/dist/view/observer/focusobserver.d.ts +84 -84
- package/dist/view/observer/inputobserver.d.ts +76 -76
- package/dist/view/observer/keyobserver.d.ts +53 -53
- package/dist/view/observer/mouseobserver.d.ts +73 -73
- package/dist/view/observer/mutationobserver.d.ts +101 -101
- package/dist/view/observer/observer.d.ts +84 -83
- package/dist/view/observer/pointerobserver.d.ts +63 -63
- package/dist/view/observer/selectionobserver.d.ts +136 -136
- package/dist/view/observer/tabobserver.d.ts +38 -38
- package/dist/view/observer/touchobserver.d.ts +60 -60
- package/dist/view/placeholder.d.ts +80 -80
- package/dist/view/position.d.ts +187 -187
- package/dist/view/range.d.ts +282 -282
- package/dist/view/rawelement.d.ts +72 -72
- package/dist/view/renderer.d.ts +270 -272
- package/dist/view/rooteditableelement.d.ts +43 -43
- package/dist/view/selection.d.ts +356 -369
- package/dist/view/styles/background.d.ts +15 -15
- package/dist/view/styles/border.d.ts +27 -27
- package/dist/view/styles/margin.d.ts +12 -12
- package/dist/view/styles/padding.d.ts +12 -12
- package/dist/view/styles/utils.d.ts +72 -72
- package/dist/view/stylesmap.d.ts +715 -715
- package/dist/view/text.d.ts +75 -75
- package/dist/view/textproxy.d.ts +92 -92
- package/dist/view/tokenlist.d.ts +104 -104
- package/dist/view/treewalker.d.ts +201 -201
- package/dist/view/typecheckable.d.ts +445 -445
- package/dist/view/uielement.d.ts +93 -93
- package/dist/view/upcastwriter.d.ts +412 -412
- package/dist/view/view.d.ts +466 -469
- package/package.json +2 -2
|
@@ -1,132 +1,137 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Model } from
|
|
6
|
-
import { ModelRange } from
|
|
7
|
-
import { ModelPosition } from
|
|
8
|
-
import { ModelSelection } from
|
|
9
|
-
import { ModelDocumentFragment } from
|
|
10
|
-
import { ModelDocumentSelection } from
|
|
11
|
-
import type { BatchType } from
|
|
12
|
-
import { type MarkerCollection } from
|
|
13
|
-
import type { ModelSchema, ModelSchemaContextDefinition } from
|
|
14
|
-
import { type ModelNode } from
|
|
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
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export declare
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
export declare
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
+
selectionAttributes?: Record<string, unknown> | Iterable<[string, unknown]>;
|
|
130
|
+
lastRangeBackward?: boolean;
|
|
131
|
+
context?: ModelSchemaContextDefinition;
|
|
132
|
+
inlineObjectElements?: Array<string>;
|
|
129
133
|
}): ModelNode | ModelDocumentFragment | {
|
|
130
|
-
|
|
131
|
-
|
|
134
|
+
model: ModelNode | ModelDocumentFragment;
|
|
135
|
+
selection: ModelSelection;
|
|
132
136
|
};
|
|
137
|
+
export {};
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { type Model } from
|
|
6
|
-
import { type Operation } from
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
* Helper function that initializes document dumping.
|
|
36
|
+
*
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
39
|
export declare function initDocumentDumping(document: any): void;
|
|
40
40
|
/**
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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;
|