@ckeditor/ckeditor5-engine 35.0.1 → 35.2.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/CHANGELOG.md +4 -4
- package/package.json +30 -24
- package/src/controller/datacontroller.js +467 -561
- package/src/controller/editingcontroller.js +168 -204
- package/src/conversion/conversion.js +541 -565
- package/src/conversion/conversionhelpers.js +24 -28
- package/src/conversion/downcastdispatcher.js +457 -686
- package/src/conversion/downcasthelpers.js +1583 -1965
- package/src/conversion/mapper.js +518 -707
- package/src/conversion/modelconsumable.js +240 -283
- package/src/conversion/upcastdispatcher.js +372 -718
- package/src/conversion/upcasthelpers.js +707 -818
- package/src/conversion/viewconsumable.js +524 -581
- package/src/dataprocessor/basichtmlwriter.js +12 -16
- package/src/dataprocessor/dataprocessor.js +5 -0
- package/src/dataprocessor/htmldataprocessor.js +100 -116
- package/src/dataprocessor/htmlwriter.js +1 -18
- package/src/dataprocessor/xmldataprocessor.js +116 -137
- package/src/dev-utils/model.js +260 -352
- package/src/dev-utils/operationreplayer.js +106 -126
- package/src/dev-utils/utils.js +34 -51
- package/src/dev-utils/view.js +632 -753
- package/src/index.js +0 -11
- package/src/model/batch.js +111 -127
- package/src/model/differ.js +988 -1233
- package/src/model/document.js +340 -449
- package/src/model/documentfragment.js +327 -364
- package/src/model/documentselection.js +996 -1189
- package/src/model/element.js +306 -410
- package/src/model/history.js +224 -262
- package/src/model/item.js +5 -0
- package/src/model/liveposition.js +84 -145
- package/src/model/liverange.js +108 -185
- package/src/model/markercollection.js +379 -480
- package/src/model/model.js +883 -1034
- package/src/model/node.js +419 -463
- package/src/model/nodelist.js +176 -201
- package/src/model/operation/attributeoperation.js +153 -182
- package/src/model/operation/detachoperation.js +64 -83
- package/src/model/operation/insertoperation.js +135 -166
- package/src/model/operation/markeroperation.js +114 -140
- package/src/model/operation/mergeoperation.js +163 -191
- package/src/model/operation/moveoperation.js +157 -187
- package/src/model/operation/nooperation.js +28 -38
- package/src/model/operation/operation.js +106 -125
- package/src/model/operation/operationfactory.js +30 -34
- package/src/model/operation/renameoperation.js +109 -135
- package/src/model/operation/rootattributeoperation.js +155 -188
- package/src/model/operation/splitoperation.js +196 -232
- package/src/model/operation/transform.js +1833 -2204
- package/src/model/operation/utils.js +140 -204
- package/src/model/position.js +980 -1053
- package/src/model/range.js +910 -1028
- package/src/model/rootelement.js +77 -97
- package/src/model/schema.js +1189 -1835
- package/src/model/selection.js +745 -862
- package/src/model/text.js +90 -114
- package/src/model/textproxy.js +204 -240
- package/src/model/treewalker.js +316 -397
- package/src/model/typecheckable.js +16 -0
- package/src/model/utils/autoparagraphing.js +32 -44
- package/src/model/utils/deletecontent.js +334 -418
- package/src/model/utils/findoptimalinsertionrange.js +25 -36
- package/src/model/utils/getselectedcontent.js +96 -118
- package/src/model/utils/insertcontent.js +757 -773
- package/src/model/utils/insertobject.js +96 -119
- package/src/model/utils/modifyselection.js +120 -158
- package/src/model/utils/selection-post-fixer.js +153 -201
- package/src/model/writer.js +1305 -1474
- package/src/view/attributeelement.js +189 -225
- package/src/view/containerelement.js +75 -85
- package/src/view/document.js +172 -215
- package/src/view/documentfragment.js +200 -249
- package/src/view/documentselection.js +338 -367
- package/src/view/domconverter.js +1370 -1617
- package/src/view/downcastwriter.js +1747 -2076
- package/src/view/editableelement.js +81 -97
- package/src/view/element.js +739 -890
- package/src/view/elementdefinition.js +5 -0
- package/src/view/emptyelement.js +82 -92
- package/src/view/filler.js +35 -50
- package/src/view/item.js +5 -0
- package/src/view/matcher.js +260 -559
- package/src/view/node.js +274 -360
- package/src/view/observer/arrowkeysobserver.js +19 -28
- package/src/view/observer/bubblingemittermixin.js +120 -263
- package/src/view/observer/bubblingeventinfo.js +47 -55
- package/src/view/observer/clickobserver.js +7 -13
- package/src/view/observer/compositionobserver.js +14 -24
- package/src/view/observer/domeventdata.js +57 -67
- package/src/view/observer/domeventobserver.js +40 -64
- package/src/view/observer/fakeselectionobserver.js +81 -96
- package/src/view/observer/focusobserver.js +45 -61
- package/src/view/observer/inputobserver.js +7 -13
- package/src/view/observer/keyobserver.js +17 -27
- package/src/view/observer/mouseobserver.js +7 -14
- package/src/view/observer/mutationobserver.js +220 -315
- package/src/view/observer/observer.js +81 -102
- package/src/view/observer/selectionobserver.js +199 -246
- package/src/view/observer/tabobserver.js +23 -36
- package/src/view/placeholder.js +128 -173
- package/src/view/position.js +350 -401
- package/src/view/range.js +453 -513
- package/src/view/rawelement.js +85 -112
- package/src/view/renderer.js +874 -1018
- package/src/view/rooteditableelement.js +80 -90
- package/src/view/selection.js +608 -689
- package/src/view/styles/background.js +43 -44
- package/src/view/styles/border.js +220 -276
- package/src/view/styles/margin.js +8 -17
- package/src/view/styles/padding.js +8 -16
- package/src/view/styles/utils.js +127 -160
- package/src/view/stylesmap.js +728 -905
- package/src/view/text.js +102 -126
- package/src/view/textproxy.js +144 -170
- package/src/view/treewalker.js +383 -479
- package/src/view/typecheckable.js +19 -0
- package/src/view/uielement.js +166 -187
- package/src/view/upcastwriter.js +395 -449
- package/src/view/view.js +569 -664
- package/src/dataprocessor/dataprocessor.jsdoc +0 -64
- package/src/model/item.jsdoc +0 -14
- package/src/view/elementdefinition.jsdoc +0 -59
- package/src/view/item.jsdoc +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -307,7 +307,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
307
307
|
|
|
308
308
|
* `ContainerElement#getFillerOffset()` can now be re-used in other places in the code (it is now exported by the module). See [ckeditor/ckeditor5-list#117](https://github.com/ckeditor/ckeditor5-list/issues/117). ([12f28bb](https://github.com/ckeditor/ckeditor5-engine/commit/12f28bb))
|
|
309
309
|
* Moved `Position`, `Range` and `Selection` static factories from those classes to the model/view writers and `Model`/`View` instances. Previously, those factories were available as static methods of the `Position`, `Range` and `Selection` classes which meant that you needed to import those classes to your plugin's code to create new instances. That required your package to depend on `@ckeditor/ckeditor5-engine` and was not very useful in general. After this change, you can create instances of those classes without importing anything. See the "Breaking changes" section for more details. Closes [#1555](https://github.com/ckeditor/ckeditor5-engine/issues/1555). ([e7f8467](https://github.com/ckeditor/ckeditor5-engine/commit/e7f8467))
|
|
310
|
-
*
|
|
310
|
+
* Various fixes in the API docs. Thanks to [@denisname](https://github.com/denisname)!
|
|
311
311
|
|
|
312
312
|
### BREAKING CHANGES
|
|
313
313
|
|
|
@@ -470,7 +470,7 @@ Internal changes only (updated dependencies, documentation, etc.).
|
|
|
470
470
|
|
|
471
471
|
* Increased the specificity of CSS rules. Introduced the `.ck` class for editor UI components (see: [ckeditor/ckeditor5#494](https://github.com/ckeditor/ckeditor5/issues/494)). ([6bf32c0](https://github.com/ckeditor/ckeditor5-engine/commit/6bf32c0))
|
|
472
472
|
* Refactored how markers removal is converted from the model to the view. Closes [#1226](https://github.com/ckeditor/ckeditor5-engine/issues/1226). ([f6de5f5](https://github.com/ckeditor/ckeditor5-engine/commit/f6de5f5))
|
|
473
|
-
* Removed the
|
|
473
|
+
* Removed the unnecessary `model.Writer#setTextData()` method. Closes [#1363](https://github.com/ckeditor/ckeditor5-engine/issues/1363). ([b484822](https://github.com/ckeditor/ckeditor5-engine/commit/b484822))
|
|
474
474
|
* Renamed plural method names to singular and singular attribute names to plural. See [ckeditor/ckeditor5#742](https://github.com/ckeditor/ckeditor5/issues/742). ([9465c82](https://github.com/ckeditor/ckeditor5-engine/commit/9465c82))
|
|
475
475
|
* View selection is now split onto Selection and DocumentSelection. Closes [#1304](https://github.com/ckeditor/ckeditor5-engine/issues/1304) . ([b466e3f](https://github.com/ckeditor/ckeditor5-engine/commit/b466e3f))
|
|
476
476
|
|
|
@@ -547,7 +547,7 @@ The good news is that the our focus when designing the new API was on developer
|
|
|
547
547
|
Fixed: Markers are cleared now before an operation is applied to `model.Document` tree to fix scenarios where marker range could not be converted to the view after the model changed.
|
|
548
548
|
* Prevented `Writer` from usage outside of the `change` block. Closes [#1212](https://github.com/ckeditor/ckeditor5-engine/issues/1212). ([2592bf1](https://github.com/ckeditor/ckeditor5-engine/commit/2592bf1))
|
|
549
549
|
* Provided one API for two types of markers, improved docs. Closes [#1086](https://github.com/ckeditor/ckeditor5-engine/issues/1086). ([bfe23c9](https://github.com/ckeditor/ckeditor5-engine/commit/bfe23c9))
|
|
550
|
-
* Refactor: engine/model reorganization, introducing new
|
|
550
|
+
* Refactor: engine/model reorganization, introducing new change and enqueueChange block, split batch/writer. Related: [#1186](https://github.com/ckeditor/ckeditor5-engine/issues/1186). ([5be1ad6](https://github.com/ckeditor/ckeditor5-engine/commit/5be1ad6))
|
|
551
551
|
* Refactored events fired by model classes. Closes [#1207](https://github.com/ckeditor/ckeditor5-engine/issues/1207). ([f56bddf](https://github.com/ckeditor/ckeditor5-engine/commit/f56bddf))
|
|
552
552
|
* Refactoring of the view API. Closes [#1210](https://github.com/ckeditor/ckeditor5-engine/issues/1210). ([dd9ae51](https://github.com/ckeditor/ckeditor5-engine/commit/dd9ae51))
|
|
553
553
|
* Refactoring: Conversion refactoring. Introduced `model.Differ`. Changes now will be converted after all changes in a change block are done. Closes [#1172](https://github.com/ckeditor/ckeditor5-engine/issues/1172). ([6479bfd](https://github.com/ckeditor/ckeditor5-engine/commit/6479bfd))
|
|
@@ -572,7 +572,7 @@ The good news is that the our focus when designing the new API was on developer
|
|
|
572
572
|
* Format od data object passed across conversion callback has been changed.
|
|
573
573
|
Feature: `Schema#findAllowedParent` has been introduced.
|
|
574
574
|
Feature: `SchemaContext#concat` has been introduced.
|
|
575
|
-
* `DataController#parse`, `DataController#toModel`, `ViewConversionDispatcher#convert` gets `SchemaContextDefinition` as a
|
|
575
|
+
* `DataController#parse`, `DataController#toModel`, `ViewConversionDispatcher#convert` gets `SchemaContextDefinition` as a context instead of `String`.
|
|
576
576
|
|
|
577
577
|
|
|
578
578
|
## [1.0.0-alpha.2](https://github.com/ckeditor/ckeditor5-engine/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2017-11-14)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-engine",
|
|
3
|
-
"version": "35.0
|
|
3
|
+
"version": "35.2.0",
|
|
4
4
|
"description": "The editing engine of CKEditor 5 – the best browser-based rich text editor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wysiwyg",
|
|
@@ -23,30 +23,31 @@
|
|
|
23
23
|
],
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-utils": "^35.0
|
|
26
|
+
"@ckeditor/ckeditor5-utils": "^35.2.0",
|
|
27
27
|
"lodash-es": "^4.17.15"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@ckeditor/ckeditor5-basic-styles": "^35.0
|
|
31
|
-
"@ckeditor/ckeditor5-block-quote": "^35.0
|
|
32
|
-
"@ckeditor/ckeditor5-clipboard": "^35.0
|
|
33
|
-
"@ckeditor/ckeditor5-cloud-services": "^35.0
|
|
34
|
-
"@ckeditor/ckeditor5-core": "^35.0
|
|
35
|
-
"@ckeditor/ckeditor5-editor-classic": "^35.0
|
|
36
|
-
"@ckeditor/ckeditor5-enter": "^35.0
|
|
37
|
-
"@ckeditor/ckeditor5-essentials": "^35.0
|
|
38
|
-
"@ckeditor/ckeditor5-heading": "^35.0
|
|
39
|
-
"@ckeditor/ckeditor5-image": "^35.0
|
|
40
|
-
"@ckeditor/ckeditor5-link": "^35.0
|
|
41
|
-
"@ckeditor/ckeditor5-list": "^35.0
|
|
42
|
-
"@ckeditor/ckeditor5-mention": "^35.0
|
|
43
|
-
"@ckeditor/ckeditor5-paragraph": "^35.0
|
|
44
|
-
"@ckeditor/ckeditor5-table": "^35.0
|
|
45
|
-
"@ckeditor/ckeditor5-theme-lark": "^35.0
|
|
46
|
-
"@ckeditor/ckeditor5-typing": "^35.0
|
|
47
|
-
"@ckeditor/ckeditor5-ui": "^35.0
|
|
48
|
-
"@ckeditor/ckeditor5-undo": "^35.0
|
|
49
|
-
"@ckeditor/ckeditor5-widget": "^35.0
|
|
30
|
+
"@ckeditor/ckeditor5-basic-styles": "^35.2.0",
|
|
31
|
+
"@ckeditor/ckeditor5-block-quote": "^35.2.0",
|
|
32
|
+
"@ckeditor/ckeditor5-clipboard": "^35.2.0",
|
|
33
|
+
"@ckeditor/ckeditor5-cloud-services": "^35.2.0",
|
|
34
|
+
"@ckeditor/ckeditor5-core": "^35.2.0",
|
|
35
|
+
"@ckeditor/ckeditor5-editor-classic": "^35.2.0",
|
|
36
|
+
"@ckeditor/ckeditor5-enter": "^35.2.0",
|
|
37
|
+
"@ckeditor/ckeditor5-essentials": "^35.2.0",
|
|
38
|
+
"@ckeditor/ckeditor5-heading": "^35.2.0",
|
|
39
|
+
"@ckeditor/ckeditor5-image": "^35.2.0",
|
|
40
|
+
"@ckeditor/ckeditor5-link": "^35.2.0",
|
|
41
|
+
"@ckeditor/ckeditor5-list": "^35.2.0",
|
|
42
|
+
"@ckeditor/ckeditor5-mention": "^35.2.0",
|
|
43
|
+
"@ckeditor/ckeditor5-paragraph": "^35.2.0",
|
|
44
|
+
"@ckeditor/ckeditor5-table": "^35.2.0",
|
|
45
|
+
"@ckeditor/ckeditor5-theme-lark": "^35.2.0",
|
|
46
|
+
"@ckeditor/ckeditor5-typing": "^35.2.0",
|
|
47
|
+
"@ckeditor/ckeditor5-ui": "^35.2.0",
|
|
48
|
+
"@ckeditor/ckeditor5-undo": "^35.2.0",
|
|
49
|
+
"@ckeditor/ckeditor5-widget": "^35.2.0",
|
|
50
|
+
"typescript": "^4.6.4",
|
|
50
51
|
"webpack": "^5.58.1",
|
|
51
52
|
"webpack-cli": "^4.9.0"
|
|
52
53
|
},
|
|
@@ -65,9 +66,14 @@
|
|
|
65
66
|
},
|
|
66
67
|
"files": [
|
|
67
68
|
"lang",
|
|
68
|
-
"src",
|
|
69
|
+
"src/**/*.js",
|
|
70
|
+
"src/**/*.d.ts",
|
|
69
71
|
"theme",
|
|
70
72
|
"ckeditor5-metadata.json",
|
|
71
73
|
"CHANGELOG.md"
|
|
72
|
-
]
|
|
74
|
+
],
|
|
75
|
+
"scripts": {
|
|
76
|
+
"build": "tsc -p ./tsconfig.release.json",
|
|
77
|
+
"postversion": "npm run build"
|
|
78
|
+
}
|
|
73
79
|
}
|