@ckeditor/ckeditor5-alignment
Advanced tools
Comparing version 25.0.0 to 26.0.0
{ | ||
"name": "@ckeditor/ckeditor5-alignment", | ||
"version": "25.0.0", | ||
"version": "26.0.0", | ||
"description": "Text alignment feature for CKEditor 5.", | ||
@@ -12,17 +12,21 @@ "keywords": [ | ||
], | ||
"main": "src/index.js", | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^25.0.0", | ||
"@ckeditor/ckeditor5-ui": "^25.0.0", | ||
"@ckeditor/ckeditor5-utils": "^25.0.0" | ||
"ckeditor5": "^26.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-block-quote": "^25.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^25.0.0", | ||
"@ckeditor/ckeditor5-engine": "^25.0.0", | ||
"@ckeditor/ckeditor5-enter": "^25.0.0", | ||
"@ckeditor/ckeditor5-heading": "^25.0.0", | ||
"@ckeditor/ckeditor5-image": "^25.0.0", | ||
"@ckeditor/ckeditor5-list": "^25.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^25.0.0", | ||
"@ckeditor/ckeditor5-typing": "^25.0.0" | ||
"@ckeditor/ckeditor5-block-quote": "^26.0.0", | ||
"@ckeditor/ckeditor5-core": "^26.0.0", | ||
"@ckeditor/ckeditor5-dev-utils": "^24.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^26.0.0", | ||
"@ckeditor/ckeditor5-engine": "^26.0.0", | ||
"@ckeditor/ckeditor5-enter": "^26.0.0", | ||
"@ckeditor/ckeditor5-heading": "^26.0.0", | ||
"@ckeditor/ckeditor5-image": "^26.0.0", | ||
"@ckeditor/ckeditor5-list": "^26.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^26.0.0", | ||
"@ckeditor/ckeditor5-theme-lark": "^26.0.0", | ||
"@ckeditor/ckeditor5-typing": "^26.0.0", | ||
"webpack": "^4.43.0", | ||
"webpack-cli": "^3.3.11" | ||
}, | ||
@@ -45,4 +49,8 @@ "engines": { | ||
"src", | ||
"theme" | ||
] | ||
"theme", | ||
"build" | ||
], | ||
"scripts": { | ||
"dll:build": "webpack" | ||
} | ||
} |
@@ -10,3 +10,3 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
@@ -13,0 +13,0 @@ import AlignmentEditing from './alignmentediting'; |
@@ -10,4 +10,4 @@ /** | ||
import Command from '@ckeditor/ckeditor5-core/src/command'; | ||
import first from '@ckeditor/ckeditor5-utils/src/first'; | ||
import { Command } from 'ckeditor5/src/core'; | ||
import { first } from 'ckeditor5/src/utils'; | ||
@@ -14,0 +14,0 @@ import { isDefault } from './utils'; |
@@ -10,3 +10,3 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import { Plugin } from 'ckeditor5/src/core'; | ||
@@ -13,0 +13,0 @@ import AlignmentCommand from './alignmentcommand'; |
@@ -10,18 +10,12 @@ /** | ||
import Plugin from '@ckeditor/ckeditor5-core/src/plugin'; | ||
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview'; | ||
import { createDropdown, addToolbarToDropdown } from '@ckeditor/ckeditor5-ui/src/dropdown/utils'; | ||
import { Plugin, icons } from 'ckeditor5/src/core'; | ||
import { ButtonView, createDropdown, addToolbarToDropdown } from 'ckeditor5/src/ui'; | ||
import { isSupported } from './utils'; | ||
import alignLeftIcon from '@ckeditor/ckeditor5-core/theme/icons/align-left.svg'; | ||
import alignRightIcon from '@ckeditor/ckeditor5-core/theme/icons/align-right.svg'; | ||
import alignCenterIcon from '@ckeditor/ckeditor5-core/theme/icons/align-center.svg'; | ||
import alignJustifyIcon from '@ckeditor/ckeditor5-core/theme/icons/align-justify.svg'; | ||
const icons = new Map( [ | ||
[ 'left', alignLeftIcon ], | ||
[ 'right', alignRightIcon ], | ||
[ 'center', alignCenterIcon ], | ||
[ 'justify', alignJustifyIcon ] | ||
const iconsMap = new Map( [ | ||
[ 'left', icons.alignLeft ], | ||
[ 'right', icons.alignRight ], | ||
[ 'center', icons.alignCenter ], | ||
[ 'justify', icons.alignJustify ] | ||
] ); | ||
@@ -106,3 +100,3 @@ | ||
// The default icon depends on the direction of the content. | ||
const defaultIcon = locale.contentLanguageDirection === 'rtl' ? alignRightIcon : alignLeftIcon; | ||
const defaultIcon = locale.contentLanguageDirection === 'rtl' ? iconsMap.get( 'right' ) : iconsMap.get( 'left' ); | ||
@@ -145,3 +139,3 @@ // Change icon to reflect current selection's alignment. | ||
label: this.localizedOptionTitles[ option ], | ||
icon: icons.get( option ), | ||
icon: iconsMap.get( option ), | ||
tooltip: true, | ||
@@ -148,0 +142,0 @@ isToggleable: true |
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
127988
1
63
440
14
+ Addedckeditor5@^26.0.0
+ Added@ckeditor/ckeditor5-clipboard@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-core@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-engine@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-enter@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-paragraph@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-typing@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-ui@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-undo@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-upload@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-utils@26.0.0(transitive)
+ Added@ckeditor/ckeditor5-widget@26.0.0(transitive)
+ Addedckeditor5@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@^25.0.0
- Removed@ckeditor/ckeditor5-ui@^25.0.0
- Removed@ckeditor/ckeditor5-utils@^25.0.0
- Removed@ckeditor/ckeditor5-core@25.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@25.0.0(transitive)
- Removed@ckeditor/ckeditor5-ui@25.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@25.0.0(transitive)