Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-link

Package Overview
Dependencies
Maintainers
1
Versions
710
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-link - npm Package Compare versions

Comparing version 23.1.0 to 24.0.0

32

package.json
{
"name": "@ckeditor/ckeditor5-link",
"version": "23.1.0",
"version": "24.0.0",
"description": "Link feature for CKEditor 5.",

@@ -13,20 +13,20 @@ "keywords": [

"dependencies": {
"@ckeditor/ckeditor5-clipboard": "^23.1.0",
"@ckeditor/ckeditor5-core": "^23.1.0",
"@ckeditor/ckeditor5-engine": "^23.1.0",
"@ckeditor/ckeditor5-image": "^23.1.0",
"@ckeditor/ckeditor5-typing": "^23.1.0",
"@ckeditor/ckeditor5-ui": "^23.1.0",
"@ckeditor/ckeditor5-utils": "^23.1.0",
"@ckeditor/ckeditor5-clipboard": "^24.0.0",
"@ckeditor/ckeditor5-core": "^24.0.0",
"@ckeditor/ckeditor5-engine": "^24.0.0",
"@ckeditor/ckeditor5-image": "^24.0.0",
"@ckeditor/ckeditor5-typing": "^24.0.0",
"@ckeditor/ckeditor5-ui": "^24.0.0",
"@ckeditor/ckeditor5-utils": "^24.0.0",
"lodash-es": "^4.17.15"
},
"devDependencies": {
"@ckeditor/ckeditor5-basic-styles": "^23.1.0",
"@ckeditor/ckeditor5-block-quote": "^23.1.0",
"@ckeditor/ckeditor5-code-block": "^23.1.0",
"@ckeditor/ckeditor5-editor-classic": "^23.1.0",
"@ckeditor/ckeditor5-enter": "^23.1.0",
"@ckeditor/ckeditor5-paragraph": "^23.1.0",
"@ckeditor/ckeditor5-theme-lark": "^23.1.0",
"@ckeditor/ckeditor5-undo": "^23.1.0"
"@ckeditor/ckeditor5-basic-styles": "^24.0.0",
"@ckeditor/ckeditor5-block-quote": "^24.0.0",
"@ckeditor/ckeditor5-code-block": "^24.0.0",
"@ckeditor/ckeditor5-editor-classic": "^24.0.0",
"@ckeditor/ckeditor5-enter": "^24.0.0",
"@ckeditor/ckeditor5-paragraph": "^24.0.0",
"@ckeditor/ckeditor5-theme-lark": "^24.0.0",
"@ckeditor/ckeditor5-undo": "^24.0.0"
},

@@ -33,0 +33,0 @@ "engines": {

@@ -17,3 +17,3 @@ /**

// This was tweak from https://gist.github.com/dperini/729294.
// This was a tweak from https://gist.github.com/dperini/729294.
const URL_REG_EXP = new RegExp(

@@ -99,3 +99,3 @@ // Group 1: Line start or after a space.

const watcher = new TextWatcher( editor.model, text => {
// 1. Detect "Space" after a text with a potential link.
// 1. Detect <kbd>Space</kbd> after a text with a potential link.
if ( !isSingleSpaceAtTheEnd( text ) ) {

@@ -105,3 +105,3 @@ return;

// 2. Check text before last typed "Space".
// 2. Check text before last typed <kbd>Space</kbd>.
const url = getUrlAtTextEnd( text.substr( 0, text.length - 1 ) );

@@ -108,0 +108,0 @@

@@ -201,8 +201,7 @@ /**

const node = writer.createText( href, attributes );
const { end: positionAfter } = model.insertContent( writer.createText( href, attributes ), position );
model.insertContent( node, position );
// Put the selection at the end of the inserted link.
writer.setSelection( writer.createPositionAfter( node ) );
// Using end of range returned from insertContent in case nodes with the same attributes got merged.
writer.setSelection( positionAfter );
}

@@ -209,0 +208,0 @@

@@ -166,3 +166,3 @@ /**

const formView = new LinkFormView( editor.locale, linkCommand, defaultProtocol );
const formView = new LinkFormView( editor.locale, linkCommand );

@@ -318,2 +318,4 @@ formView.urlInputView.fieldView.bind( 'value' ).to( linkCommand, 'value' );

this.formView.disableCssTransitions();
this._balloon.add( {

@@ -329,2 +331,4 @@ view: this.formView,

this.formView.enableCssTransitions();
// Make sure that each time the panel shows up, the URL field remains in sync with the value of

@@ -331,0 +335,0 @@ // the command. If the user typed in the input, then canceled the balloon (`urlInputView.fieldView#value` stays

@@ -18,2 +18,3 @@ /**

import { createLabeledInputText } from '@ckeditor/ckeditor5-ui/src/labeledfield/utils';
import injectCssTransitionDisabler from '@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler';

@@ -47,3 +48,3 @@ import submitHandler from '@ckeditor/ckeditor5-ui/src/bindings/submithandler';

*/
constructor( locale, linkCommand, protocol ) {
constructor( locale, linkCommand ) {
super( locale );

@@ -74,3 +75,3 @@

*/
this.urlInputView = this._createUrlInput( protocol );
this.urlInputView = this._createUrlInput();

@@ -158,2 +159,4 @@ /**

} );
injectCssTransitionDisabler( this );
}

@@ -216,6 +219,5 @@

* @private
* @param {String} [protocol=http://] A value of a protocol to be displayed in the input's placeholder.
* @returns {module:ui/labeledfield/labeledfieldview~LabeledFieldView} Labeled field view instance.
*/
_createUrlInput( protocol = 'https://' ) {
_createUrlInput() {
const t = this.locale.t;

@@ -225,3 +227,2 @@ const labeledInput = new LabeledFieldView( this.locale, createLabeledInputText );

labeledInput.label = t( 'Link URL' );
labeledInput.fieldView.placeholder = protocol + 'example.com';

@@ -228,0 +229,0 @@ return labeledInput;

@@ -67,3 +67,3 @@ /**

) ] :
selection.getRanges();
model.schema.getValidRanges( selection.getRanges(), 'linkHref' );

@@ -70,0 +70,0 @@ // Remove `linkHref` attribute from specified ranges.

@@ -38,3 +38,3 @@ /**

/**
* Creates link {@link module:engine/view/attributeelement~AttributeElement} with the provided `href` attribute.
* Creates a link {@link module:engine/view/attributeelement~AttributeElement} with the provided `href` attribute.
*

@@ -158,7 +158,7 @@ * @param {String} href

/**
* Adds protocol prefix to the specified `link` when:
* Adds the protocol prefix to the specified `link` when:
*
* * it doesn't contain it already, and there is a {@link module:link/link~LinkConfig#defaultProtocol `defaultProtocol` }
* config value provided
* * or the link is an email address
* * it does not contain it already, and there is a {@link module:link/link~LinkConfig#defaultProtocol `defaultProtocol` }
* configuration value provided,
* * or the link is an email address.
*

@@ -165,0 +165,0 @@ *

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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