Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-alignment

Package Overview
Dependencies
Maintainers
1
Versions
639
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-alignment - npm Package Compare versions

Comparing version 25.0.0 to 26.0.0

build/alignment.js

38

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc