@ckeditor/ckeditor5-engine 45.0.0-alpha.0 → 45.0.0-alpha.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-engine",
3
- "version": "45.0.0-alpha.0",
3
+ "version": "45.0.0-alpha.10",
4
4
  "description": "The editing engine of CKEditor 5 – the best browser-based rich text editor.",
5
5
  "keywords": [
6
6
  "wysiwyg",
@@ -24,7 +24,7 @@
24
24
  "type": "module",
25
25
  "main": "src/index.js",
26
26
  "dependencies": {
27
- "@ckeditor/ckeditor5-utils": "45.0.0-alpha.0",
27
+ "@ckeditor/ckeditor5-utils": "45.0.0-alpha.10",
28
28
  "es-toolkit": "1.32.0"
29
29
  },
30
30
  "author": "CKSource (http://cksource.com/)",
@@ -314,7 +314,7 @@ export default class UpcastHelpers extends ConversionHelpers<UpcastDispatcher> {
314
314
  };
315
315
  model: string | {
316
316
  key: string;
317
- value: unknown | ((viewElement: ViewElement, conversionApi: UpcastConversionApi) => unknown);
317
+ value: unknown | ((viewElement: ViewElement, conversionApi: UpcastConversionApi, data: UpcastConversionData<ViewElement>) => unknown);
318
318
  name?: string;
319
319
  };
320
320
  converterPriority?: PriorityString;
@@ -842,7 +842,7 @@ function prepareToAttributeConverter(config, shallow) {
842
842
  }
843
843
  const modelKey = config.model.key;
844
844
  const modelValue = typeof config.model.value == 'function' ?
845
- config.model.value(data.viewItem, conversionApi) : config.model.value;
845
+ config.model.value(data.viewItem, conversionApi, data) : config.model.value;
846
846
  // Do not convert if attribute building function returned falsy value.
847
847
  if (modelValue === null) {
848
848
  return;