@ckeditor/ckeditor5-ui
Advanced tools
Comparing version 19.0.0 to 19.0.1
Changelog | ||
========= | ||
All changes in the package are documented in the main repository. See: https://github.com/ckeditor/ckeditor5/blob/master/CHANGELOG.md. | ||
Changes for the past releases are available below. | ||
## [19.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v18.0.0...v19.0.0) (2020-04-29) | ||
@@ -5,0 +9,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-ui", | ||
"version": "19.0.0", | ||
"version": "19.0.1", | ||
"description": "The UI framework and standard UI library of CKEditor 5.", | ||
@@ -12,27 +12,21 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^19.0.0", | ||
"@ckeditor/ckeditor5-utils": "^19.0.0", | ||
"@ckeditor/ckeditor5-core": "^19.0.1", | ||
"@ckeditor/ckeditor5-utils": "^19.0.1", | ||
"lodash-es": "^4.17.10" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^19.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^19.0.0", | ||
"@ckeditor/ckeditor5-editor-balloon": "^19.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^19.0.0", | ||
"@ckeditor/ckeditor5-engine": "^19.0.0", | ||
"@ckeditor/ckeditor5-enter": "^19.0.0", | ||
"@ckeditor/ckeditor5-essentials": "^19.0.0", | ||
"@ckeditor/ckeditor5-heading": "^19.0.0", | ||
"@ckeditor/ckeditor5-image": "^19.0.0", | ||
"@ckeditor/ckeditor5-link": "^19.0.0", | ||
"@ckeditor/ckeditor5-list": "^19.0.0", | ||
"@ckeditor/ckeditor5-mention": "^19.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^19.0.0", | ||
"@ckeditor/ckeditor5-typing": "^19.0.0", | ||
"eslint": "^5.5.0", | ||
"eslint-config-ckeditor5": "^2.0.0", | ||
"husky": "^1.3.1", | ||
"lint-staged": "^7.0.0", | ||
"stylelint": "^11.1.1", | ||
"stylelint-config-ckeditor5": "^1.0.0" | ||
"@ckeditor/ckeditor5-basic-styles": "^19.0.1", | ||
"@ckeditor/ckeditor5-block-quote": "^19.0.1", | ||
"@ckeditor/ckeditor5-editor-balloon": "^19.0.1", | ||
"@ckeditor/ckeditor5-editor-classic": "^19.0.1", | ||
"@ckeditor/ckeditor5-engine": "^19.0.1", | ||
"@ckeditor/ckeditor5-enter": "^19.0.1", | ||
"@ckeditor/ckeditor5-essentials": "^19.0.1", | ||
"@ckeditor/ckeditor5-heading": "^19.0.1", | ||
"@ckeditor/ckeditor5-image": "^19.0.1", | ||
"@ckeditor/ckeditor5-link": "^19.0.1", | ||
"@ckeditor/ckeditor5-list": "^19.0.1", | ||
"@ckeditor/ckeditor5-mention": "^19.0.1", | ||
"@ckeditor/ckeditor5-paragraph": "^19.1.0", | ||
"@ckeditor/ckeditor5-typing": "^19.0.1" | ||
}, | ||
@@ -49,3 +43,4 @@ "engines": { | ||
"type": "git", | ||
"url": "https://github.com/ckeditor/ckeditor5-ui.git" | ||
"url": "https://github.com/ckeditor/ckeditor5.git", | ||
"directory": "packages/ckeditor5-ui" | ||
}, | ||
@@ -56,24 +51,3 @@ "files": [ | ||
"theme" | ||
], | ||
"scripts": { | ||
"lint": "eslint --quiet '**/*.js'", | ||
"stylelint": "stylelint --quiet --allow-empty-input 'theme/**/*.css' 'docs/**/*.css'" | ||
}, | ||
"lint-staged": { | ||
"**/*.js": [ | ||
"eslint --quiet" | ||
], | ||
"**/*.css": [ | ||
"stylelint --quiet --allow-empty-input" | ||
] | ||
}, | ||
"eslintIgnore": [ | ||
"src/lib/**", | ||
"packages/**" | ||
], | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged" | ||
} | ||
} | ||
] | ||
} |
@@ -5,5 +5,2 @@ CKEditor 5 UI framework | ||
[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-ui.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-ui) | ||
[![Build Status](https://travis-ci.org/ckeditor/ckeditor5-ui.svg?branch=master)](https://travis-ci.org/ckeditor/ckeditor5-ui) | ||
[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5-ui/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5-ui?branch=master) | ||
<br> | ||
[![Dependency Status](https://david-dm.org/ckeditor/ckeditor5-ui/status.svg)](https://david-dm.org/ckeditor/ckeditor5-ui) | ||
@@ -10,0 +7,0 @@ [![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-ui/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-ui?type=dev) |
@@ -98,10 +98,10 @@ /** | ||
colorDefinitions.forEach( item => { | ||
colorDefinitions.forEach( color => { | ||
const colorTile = new ColorTileView(); | ||
colorTile.set( { | ||
color: item.color, | ||
label: item.label, | ||
color: color.color, | ||
label: color.label, | ||
tooltip: true, | ||
hasBorder: item.options.hasBorder | ||
hasBorder: color.options.hasBorder | ||
} ); | ||
@@ -111,5 +111,5 @@ | ||
this.fire( 'execute', { | ||
value: item.color, | ||
hasBorder: item.options.hasBorder, | ||
label: item.label | ||
value: color.color, | ||
hasBorder: color.options.hasBorder, | ||
label: color.label | ||
} ); | ||
@@ -180,2 +180,15 @@ } ); | ||
} | ||
/** | ||
* Fired when the `ColorTileView` for the picked item is executed. | ||
* | ||
* @event execute | ||
* @param {Object} data Additional information about the event. | ||
* @param {String} data.value The value of the selected color | ||
* ({@link module:ui/colorgrid/colorgrid~ColorDefinition#color `color.color`}). | ||
* @param {Boolean} data.hasBorder The `hasBorder` property of the selected color | ||
* ({@link module:ui/colorgrid/colorgrid~ColorDefinition#options `color.options.hasBorder`}). | ||
* @param {String} data.Label The label of the selected color | ||
* ({@link module:ui/colorgrid/colorgrid~ColorDefinition#label `color.label`}) | ||
*/ | ||
} | ||
@@ -187,3 +200,3 @@ | ||
* { | ||
* color: hsl(0, 0%, 75%), | ||
* color: 'hsl(0, 0%, 75%)', | ||
* label: 'Light Grey', | ||
@@ -190,0 +203,0 @@ * options: { |
@@ -67,2 +67,5 @@ /** | ||
// Creates a normalized color definition from the user-defined configuration. | ||
// The "normalization" means it will create full | ||
// {@link module:ui/colorgrid/colorgrid~ColorDefinition `ColorDefinition-like`} | ||
// object for string values, and add a `view` property, for each definition. | ||
// | ||
@@ -74,3 +77,3 @@ // @param {String|module:ui/colorgrid/colorgrid~ColorDefinition} | ||
return { | ||
model: color.replace( / /g, '' ), | ||
model: color, | ||
label: color, | ||
@@ -87,3 +90,3 @@ hasBorder: false, | ||
return { | ||
model: color.color.replace( / /g, '' ), | ||
model: color.color, | ||
label: color.label || color.color, | ||
@@ -90,0 +93,0 @@ hasBorder: color.hasBorder === undefined ? false : color.hasBorder, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
574126
14
142
10475
17