@ckeditor/ckeditor5-media-embed
Advanced tools
Comparing version
{ | ||
"name": "@ckeditor/ckeditor5-media-embed", | ||
"version": "23.1.0", | ||
"version": "24.0.0", | ||
"description": "Media Embed 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-ui": "^23.1.0", | ||
"@ckeditor/ckeditor5-undo": "^23.1.0", | ||
"@ckeditor/ckeditor5-utils": "^23.1.0", | ||
"@ckeditor/ckeditor5-widget": "^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-ui": "^24.0.0", | ||
"@ckeditor/ckeditor5-undo": "^24.0.0", | ||
"@ckeditor/ckeditor5-utils": "^24.0.0", | ||
"@ckeditor/ckeditor5-widget": "^24.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^23.1.0", | ||
"@ckeditor/ckeditor5-editor-balloon": "^23.1.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^23.1.0", | ||
"@ckeditor/ckeditor5-link": "^23.1.0", | ||
"@ckeditor/ckeditor5-list": "^23.1.0", | ||
"@ckeditor/ckeditor5-paragraph": "^23.1.0", | ||
"@ckeditor/ckeditor5-typing": "^23.1.0", | ||
"@ckeditor/ckeditor5-table": "^23.1.0" | ||
"@ckeditor/ckeditor5-basic-styles": "^24.0.0", | ||
"@ckeditor/ckeditor5-editor-balloon": "^24.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^24.0.0", | ||
"@ckeditor/ckeditor5-link": "^24.0.0", | ||
"@ckeditor/ckeditor5-list": "^24.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^24.0.0", | ||
"@ckeditor/ckeditor5-typing": "^24.0.0", | ||
"@ckeditor/ckeditor5-table": "^24.0.0" | ||
}, | ||
@@ -33,0 +33,0 @@ "engines": { |
@@ -56,2 +56,8 @@ /** | ||
/** | ||
* @private | ||
* @param {module:ui/dropdown/dropdownview~DropdownView} dropdown | ||
* @param {module:ui/view~View} form | ||
* @param {module:media-embed/mediaembedcommand~MediaEmbedCommand} command | ||
*/ | ||
_setUpDropdown( dropdown, form, command ) { | ||
@@ -75,2 +81,4 @@ const editor = this.editor; | ||
button.on( 'open', () => { | ||
form.disableCssTransitions(); | ||
// Make sure that each time the panel shows up, the URL field remains in sync with the value of | ||
@@ -84,2 +92,3 @@ // the command. If the user typed in the input, then canceled (`urlInputView#fieldView#value` stays | ||
form.focus(); | ||
form.enableCssTransitions(); | ||
}, { priority: 'low' } ); | ||
@@ -103,2 +112,8 @@ | ||
/** | ||
* @private | ||
* @param {module:ui/dropdown/dropdownview~DropdownView} dropdown | ||
* @param {module:ui/view~View} form | ||
* @param {module:media-embed/mediaembedcommand~MediaEmbedCommand} command | ||
*/ | ||
_setUpForm( dropdown, form, command ) { | ||
@@ -105,0 +120,0 @@ form.delegate( 'submit', 'cancel' ).to( dropdown ); |
@@ -15,2 +15,3 @@ /** | ||
import { logWarning } from '@ckeditor/ckeditor5-utils/src/ckeditorerror'; | ||
import toArray from '@ckeditor/ckeditor5-utils/src/toarray'; | ||
@@ -117,8 +118,4 @@ const mediaPlaceholderIconViewBox = '0 0 64 42'; | ||
const previewRenderer = definition.html; | ||
let pattern = definition.url; | ||
const pattern = toArray( definition.url ); | ||
if ( !Array.isArray( pattern ) ) { | ||
pattern = [ pattern ]; | ||
} | ||
for ( const subPattern of pattern ) { | ||
@@ -125,0 +122,0 @@ const match = this._getUrlMatches( url, subPattern ); |
@@ -22,2 +22,3 @@ /** | ||
import KeystrokeHandler from '@ckeditor/ckeditor5-utils/src/keystrokehandler'; | ||
import injectCssTransitionDisabler from '@ckeditor/ckeditor5-ui/src/bindings/injectcsstransitiondisabler'; | ||
@@ -47,3 +48,3 @@ import checkIcon from '@ckeditor/ckeditor5-core/theme/icons/check.svg'; | ||
/** | ||
* Tracks information about DOM focus in the form. | ||
* Tracks information about the DOM focus in the form. | ||
* | ||
@@ -115,6 +116,6 @@ * @readonly | ||
actions: { | ||
// Navigate form fields backwards using the Shift + Tab keystroke. | ||
// Navigate form fields backwards using the <kbd>Shift</kbd> + <kbd>Tab</kbd> keystroke. | ||
focusPrevious: 'shift + tab', | ||
// Navigate form fields forwards using the Tab key. | ||
// Navigate form fields forwards using the <kbd>Tab</kbd> key. | ||
focusNext: 'tab' | ||
@@ -153,2 +154,4 @@ } | ||
injectCssTransitionDisabler( this ); | ||
/** | ||
@@ -207,5 +210,5 @@ * The default info text for the {@link #urlInputView}. | ||
// Intercept the "selectstart" event, which is blocked by default because of the default behavior | ||
// Intercept the `selectstart` event, which is blocked by default because of the default behavior | ||
// of the DropdownView#panelView. | ||
// TODO: blocking "selectstart" in the #panelView should be configurable per–drop–down instance. | ||
// TODO: blocking `selectstart` in the #panelView should be configurable per–drop–down instance. | ||
this.listenTo( this.urlInputView.element, 'selectstart', ( evt, domEvt ) => { | ||
@@ -290,6 +293,5 @@ domEvt.stopPropagation(); | ||
labeledInput.infoText = this._urlInputViewInfoDefault; | ||
inputField.placeholder = 'https://example.com'; | ||
inputField.on( 'input', () => { | ||
// Display the tip text only when there's some value. Otherwise fall back to the default info text. | ||
// Display the tip text only when there is some value. Otherwise fall back to the default info text. | ||
labeledInput.infoText = inputField.element.value ? this._urlInputViewInfoTip : this._urlInputViewInfoDefault; | ||
@@ -343,5 +345,5 @@ this.mediaURLInputValue = inputField.element.value.trim(); | ||
/** | ||
* Fired when the form view is canceled, e.g. click on {@link #cancelButtonView}. | ||
* Fired when the form view is canceled, e.g. by a click on {@link #cancelButtonView}. | ||
* | ||
* @event cancel | ||
*/ |
Sorry, the diff of this file is not supported yet
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
156311
0.4%1676
0.78%0
-100%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed