Socket
Socket
Sign inDemoInstall

@ckeditor/ckeditor5-ui

Package Overview
Dependencies
3
Maintainers
1
Versions
517
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 13.0.0 to 13.0.1

7

CHANGELOG.md
Changelog
=========
## [13.0.1](https://github.com/ckeditor/ckeditor5-ui/compare/v13.0.0...v13.0.1) (2019-07-04)
### Other changes
* Updated translations. ([1964cc0](https://github.com/ckeditor/ckeditor5-ui/commit/1964cc0)) ([11cfd41](https://github.com/ckeditor/ckeditor5-ui/commit/11cfd41))
## [13.0.0](https://github.com/ckeditor/ckeditor5-ui/compare/v12.1.0...v13.0.0) (2019-06-05)

@@ -5,0 +12,0 @@

34

package.json
{
"name": "@ckeditor/ckeditor5-ui",
"version": "13.0.0",
"version": "13.0.1",
"description": "The UI framework and standard UI library of CKEditor 5.",

@@ -12,21 +12,21 @@ "keywords": [

"dependencies": {
"@ckeditor/ckeditor5-core": "^12.1.1",
"@ckeditor/ckeditor5-utils": "^12.1.1",
"@ckeditor/ckeditor5-core": "^12.2.0",
"@ckeditor/ckeditor5-utils": "^13.0.0",
"lodash-es": "^4.17.10"
},
"devDependencies": {
"@ckeditor/ckeditor5-basic-styles": "^11.1.1",
"@ckeditor/ckeditor5-block-quote": "^11.1.0",
"@ckeditor/ckeditor5-editor-balloon": "^12.1.1",
"@ckeditor/ckeditor5-editor-classic": "^12.1.1",
"@ckeditor/ckeditor5-engine": "^13.1.1",
"@ckeditor/ckeditor5-enter": "^11.0.2",
"@ckeditor/ckeditor5-essentials": "^11.0.2",
"@ckeditor/ckeditor5-heading": "^11.0.2",
"@ckeditor/ckeditor5-image": "^13.1.0",
"@ckeditor/ckeditor5-link": "^11.0.2",
"@ckeditor/ckeditor5-list": "^12.0.2",
"@ckeditor/ckeditor5-mention": "^11.0.0",
"@ckeditor/ckeditor5-paragraph": "^11.0.2",
"@ckeditor/ckeditor5-typing": "^12.0.2",
"@ckeditor/ckeditor5-basic-styles": "^11.1.2",
"@ckeditor/ckeditor5-block-quote": "^11.1.1",
"@ckeditor/ckeditor5-editor-balloon": "^12.2.0",
"@ckeditor/ckeditor5-editor-classic": "^12.1.2",
"@ckeditor/ckeditor5-engine": "^13.2.0",
"@ckeditor/ckeditor5-enter": "^11.0.3",
"@ckeditor/ckeditor5-essentials": "^11.0.3",
"@ckeditor/ckeditor5-heading": "^11.0.3",
"@ckeditor/ckeditor5-image": "^13.1.1",
"@ckeditor/ckeditor5-link": "^11.1.0",
"@ckeditor/ckeditor5-list": "^12.0.3",
"@ckeditor/ckeditor5-mention": "^12.0.0",
"@ckeditor/ckeditor5-paragraph": "^11.0.3",
"@ckeditor/ckeditor5-typing": "^12.1.0",
"eslint": "^5.5.0",

@@ -33,0 +33,0 @@ "eslint-config-ckeditor5": "^1.0.11",

@@ -7,3 +7,2 @@ CKEditor 5 UI framework

[![Build Status](https://travis-ci.org/ckeditor/ckeditor5-ui.svg?branch=master)](https://travis-ci.org/ckeditor/ckeditor5-ui)
[![BrowserStack Status](https://automate.browserstack.com/automate/badge.svg?badge_key=d3hvenZqQVZERFQ5d09FWXdyT0ozVXhLaVltRFRjTTUyZGpvQWNmWVhUUT0tLUZqNlJ1YWRUd0RvdEVOaEptM1B2Q0E9PQ==--c9d3dee40b9b4471ff3fb516d9ecf8d09292c7e0)](https://automate.browserstack.com/public-build/d3hvenZqQVZERFQ5d09FWXdyT0ozVXhLaVltRFRjTTUyZGpvQWNmWVhUUT0tLUZqNlJ1YWRUd0RvdEVOaEptM1B2Q0E9PQ==--c9d3dee40b9b4471ff3fb516d9ecf8d09292c7e0)
[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5-ui/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5-ui?branch=master)

@@ -10,0 +9,0 @@ <br>

@@ -88,3 +88,5 @@ /**

throw new CKEditorError(
'componentfactory-item-exists: The item already exists in the component factory.', { name }
'componentfactory-item-exists: The item already exists in the component factory.',
this,
{ name }
);

@@ -117,3 +119,5 @@ }

throw new CKEditorError(
'componentfactory-item-missing: The required component is not registered in the factory.', { name }
'componentfactory-item-missing: The required component is not registered in the factory.',
this,
{ name }
);

@@ -120,0 +124,0 @@ }

/**
* @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
* For licensing, see LICENSE.md.
*/

@@ -27,3 +27,3 @@

* {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#pin pin} to any
* {@link module:utils/dom/position~Options#target target} in DOM and remain in that position
* {@link module:utils/dom/position~Options#target target} in the DOM and remain in that position
* e.g. when the web page is scrolled.

@@ -90,5 +90,5 @@ *

/**
* Balloon panel's current position. The position name is reflected in the CSS class set
* to the balloon, i.e. `.ck-balloon-panel_arrow_nw` for "arrow_nw" position. The class
* controls the minor aspects of the balloon's visual appearance like placement
* The balloon panel's current position. The position name is reflected in the CSS class set
* to the balloon, i.e. `.ck-balloon-panel_arrow_nw` for the "arrow_nw" position. The class
* controls the minor aspects of the balloon's visual appearance like the placement
* of an {@link #withArrow arrow}. To support a new position, an additional CSS must be created.

@@ -118,3 +118,3 @@ *

* Controls whether the balloon panel has an arrow. The presence of the arrow
* is reflected in `ck-balloon-panel_with-arrow` CSS class.
* is reflected in the `ck-balloon-panel_with-arrow` CSS class.
*

@@ -136,3 +136,3 @@ * @observable

/**
* A callback that starts pining the panel when {@link #isVisible} gets
* A callback that starts pinning the panel when {@link #isVisible} gets
* `true`. Used by {@link #pin}.

@@ -145,3 +145,3 @@ *

/**
* Collection of the child views which creates balloon panel contents.
* A collection of the child views that creates the balloon panel contents.
*

@@ -199,3 +199,3 @@ * @readonly

* This method accepts configuration {@link module:utils/dom/position~Options options}
* to set the `target`, optional `limiter` and `positions` the balloon should chose from.
* to set the `target`, optional `limiter` and `positions` the balloon should choose from.
*

@@ -219,6 +219,4 @@ * const panel = new BalloonPanelView( locale );

* **Note**: An attached panel will not follow its target when the window is scrolled or resized.
* See the {@link #pin} method for more permanent positioning strategy.
* See the {@link #pin} method for a more permanent positioning strategy.
*
* **Note**: If a limiter is not provided in the options the panel will use `document.body` as a default limiter.
*
* @param {module:utils/dom/position~Options} options Positioning options compatible with

@@ -265,4 +263,4 @@ * {@link module:utils/dom/position~getOptimalPosition}. Default `positions` array is

*
* Thanks to that, the panel always sticks to the {@link module:utils/dom/position~Options#target},
* immune to the changing environment.
* Thanks to that, the panel always sticks to the {@link module:utils/dom/position~Options#target}
* and is immune to the changing environment.
*

@@ -375,4 +373,4 @@ * const panel = new BalloonPanelView( locale );

// Returns the DOM element for given object or null, if there's none,
// e.g. when passed object is a Rect instance or so.
// Returns the DOM element for given object or null, if there is none,
// e.g. when the passed object is a Rect instance or so.
//

@@ -445,5 +443,5 @@ // @private

* A default set of positioning functions used by the balloon panel view
* when attaching using {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#attachTo} method.
* when attaching using the {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView#attachTo} method.
*
* The available positioning functions are as follow:
* The available positioning functions are as follows:
*

@@ -610,3 +608,3 @@ * **North**

*
* The name that position function returns will be reflected in balloon panel's class that
* The name that the position function returns will be reflected in the balloon panel's class that
* controls the placement of the "arrow". See {@link #position} to learn more.

@@ -613,0 +611,0 @@ *

@@ -30,31 +30,32 @@ /**

*
* The role of this plugin is to unified contextual balloons logic, simplifies managing the views and helps
* The role of this plugin is to unify the contextual balloons logic, simplify views management and help
* avoid the unnecessary complexity of handling multiple {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView}
* instances in the editor.
*
* This plugin allows creating single or multiple panel stacks.
* This plugin allows for creating single or multiple panel stacks.
*
* Each stack may have multiple views, the one on the top is visible. When the visible view is removed from the stack,
* the previous view becomes visible, etc. It might be useful to implement nested navigation in a balloon. For instance
* toolbar view may have a link button. When you click it, link view (which let you set the URL) is created and put on
* top of the toolbar view, so not link panel is displayed. When you finish editing link and close (remove) link view,
* the toolbar view is visible back.
* Each stack may have multiple views, with the one on the top being visible. When the visible view is removed from the stack,
* the previous view becomes visible.
*
* However, there are cases when there are multiple independent balloons to be displayed. For instance, if the selection
* It might be useful to implement nested navigation in a balloon. For instance, a toolbar view may contain a link button.
* When you click it, a link view (which lets you set the URL) is created and put on top of the toolbar view, so the link panel
* is displayed. When you finish editing the link and close (remove) the link view, the toolbar view is visible again.
*
* However, there are cases when there are multiple independent balloons to be displayed, for instance, if the selection
* is inside two inline comments at the same time. For such cases, you can create two independent panel stacks.
* Contextual balloon plugin will create a navigation bar to let users switch between these panel stacks - "next balloon"
* and "previous balloon" buttons.
* The contextual balloon plugin will create a navigation bar to let the users switch between these panel stacks using the "Next"
* and "Previous" buttons.
*
* If there are no views in the current stack, the balloon panel will try to switch to the next stack. If there are no
* panels in any stack then balloon panel will be hidden.
* panels in any stack, the balloon panel will be hidden.
*
* **Note**: To force balloon panel to show only one view - even if there are other stacks - use `singleViewMode=true` option
* when {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon#add adding} view to a panel.
* **Note**: To force the balloon panel to show only one view, even if there are other stacks, use the `singleViewMode=true` option
* when {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon#add adding} a view to a panel.
*
* From the implementation point of view, contextual ballon plugin is reusing a single
* From the implementation point of view, the contextual ballon plugin is reusing a single
* {@link module:ui/panel/balloon/balloonpanelview~BalloonPanelView} instance to display multiple contextual balloon
* panels in the editor. It also creates a special {@link module:ui/panel/balloon/contextualballoon~RotatorView rotator view},
* used to manage multiple panel stacks. Rotator view is a child of the balloon panel view and the parent of the specific
* view you want to display. If there is are more than one panel stack to be displayed, the rotator view will add a
* navigation bar. If there is only one stack, rotator view is transparent (do not add any UI elements).
* view you want to display. If there is more than one panel stack to be displayed, the rotator view will add a
* navigation bar. If there is only one stack, the rotator view is transparent (it does not add any UI elements).
*

@@ -82,3 +83,3 @@ * @extends module:core/plugin~Plugin

*
* By default, a function, which obtains the farthest DOM
* By default, a function that obtains the farthest DOM
* {@link module:engine/view/rooteditableelement~RootEditableElement}

@@ -102,3 +103,3 @@ * of the {@link module:engine/view/document~Document#selection}.

/**
* The currently visible view or `null` when there are no views in the any stack.
* The currently visible view or `null` when there are no views in any stack.
*

@@ -122,3 +123,3 @@ * @readonly

/**
* Map of views and its stacks.
* The map of views and their stacks.
*

@@ -131,3 +132,3 @@ * @private

/**
* Map of ids and stacks.
* The map of IDs and stacks.
*

@@ -150,3 +151,3 @@ * @private

/**
* Flag that controls the single view mode.
* A flag that controls the single view mode.
*

@@ -162,3 +163,3 @@ * @private

* Rotator view embedded in the contextual balloon.
* Displays currently visible view in the balloon and provides navigation for switching stacks.
* Displays the currently visible view in the balloon and provides navigation for switching stacks.
*

@@ -180,3 +181,3 @@ * @private

/**
* Returns `true` when the given view is in one of the stack. Otherwise returns `false`.
* Returns `true` when the given view is in one of the stacks. Otherwise returns `false`.
*

@@ -191,12 +192,12 @@ * @param {module:ui/view~View} view

/**
* Adds a new view to the stack and makes it visible if current stack is visible
* or it is a first view in the balloon.
* Adds a new view to the stack and makes it visible if the current stack is visible
* or it is the first view in the balloon.
*
* @param {Object} data Configuration of the view.
* @param {String} [data.stackId='main'] Id of a stack that view is added to.
* @param {module:ui/view~View} [data.view] Content of the balloon.
* @param {Object} data The configuration of the view.
* @param {String} [data.stackId='main'] The ID of the stack that the view is added to.
* @param {module:ui/view~View} [data.view] The content of the balloon.
* @param {module:utils/dom/position~Options} [data.position] Positioning options.
* @param {String} [data.balloonClassName] Additional CSS class added to the {@link #view balloon} when visible.
* @param {String} [data.balloonClassName] An additional CSS class added to the {@link #view balloon} when visible.
* @param {Boolean} [data.withArrow=true] Whether the {@link #view balloon} should be rendered with an arrow.
* @param {Boolean} [data.singleViewMode=false] Whether the view should be only visible view - even if other stacks were added.
* @param {Boolean} [data.singleViewMode=false] Whether the view should be the only visible view even if other stacks were added.
*/

@@ -210,3 +211,6 @@ add( data ) {

*/
throw new CKEditorError( 'contextualballoon-add-view-exist: Cannot add configuration of the same view twice.' );
throw new CKEditorError(
'contextualballoon-add-view-exist: Cannot add configuration of the same view twice.',
[ this, data ]
);
}

@@ -247,5 +251,5 @@

* Removes the given view from the stack. If the removed view was visible,
* then the view preceding it in the stack will become visible instead.
* When there is no view in the stack then next stack will be displayed.
* When there is not more stacks then balloon will hide.
* the view preceding it in the stack will become visible instead.
* When there is no view in the stack, the next stack will be displayed.
* When there are no more stacks, the balloon will hide.
*

@@ -257,7 +261,10 @@ * @param {module:ui/view~View} view A view to be removed from the balloon.

/**
* Trying to remove configuration of the view not defined in the stack.
* Trying to remove the configuration of the view not defined in the stack.
*
* @error contextualballoon-remove-view-not-exist
*/
throw new CKEditorError( 'contextualballoon-remove-view-not-exist: Cannot remove configuration of not existing view.' );
throw new CKEditorError(
'contextualballoon-remove-view-not-exist: Cannot remove the configuration of a non-existent view.',
[ this, view ]
);
}

@@ -298,4 +305,4 @@

/**
* Updates the position of the balloon using position data of the first visible view in the stack.
* When new position data is given then position data of currently visible view will be updated.
* Updates the position of the balloon using the position data of the first visible view in the stack.
* When new position data is given, the position data of the currently visible view will be updated.
*

@@ -314,3 +321,3 @@ * @param {module:utils/dom/position~Options} [position] position options.

/**
* Shows last view from the stack of a given id.
* Shows the last view from the stack of a given ID.
*

@@ -325,7 +332,10 @@ * @param {String} id

/**
* Trying to show not existing stack.
* Trying to show a stack that does not exist.
*
* @error contextualballoon-showstack-stack-not-exist
*/
throw new CKEditorError( 'contextualballoon-showstack-stack-not-exist: Cannot show not existing stack.' );
throw new CKEditorError(
'contextualballoon-showstack-stack-not-exist: Cannot show a stack that does not exist.',
this
);
}

@@ -341,3 +351,3 @@

/**
* Returns the stack of currently visible view.
* Returns the stack of the currently visible view.
*

@@ -352,3 +362,3 @@ * @private

/**
* Returns id of given stack.
* Returns the ID of the given stack.
*

@@ -366,3 +376,3 @@ * @private

/**
* Shows last view from the next stack.
* Shows the last view from the next stack.
*

@@ -384,3 +394,3 @@ * @private

/**
* Shows last view from the previous stack.
* Shows the last view from the previous stack.
*

@@ -476,3 +486,3 @@ * @private

/**
* Sets the view as a content of the balloon and attaches balloon using position
* Sets the view as the content of the balloon and attaches the balloon using position
* options of the first view.

@@ -482,3 +492,3 @@ *

* @param {Object} data Configuration.
* @param {module:ui/view~View} [data.view] View to show in the balloon.
* @param {module:ui/view~View} [data.view] The view to show in the balloon.
* @param {String} [data.balloonClassName=''] Additional class name which will be added to the {@link #view balloon}.

@@ -503,3 +513,3 @@ * @param {Boolean} [data.withArrow=true] Whether the {@link #view balloon} should be rendered with an arrow.

* Returns position options of the last view in the stack.
* This keeps the balloon in the same position when view is changed.
* This keeps the balloon in the same position when the view is changed.
*

@@ -526,4 +536,4 @@ * @private

* Rotator view is a helper class for the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon ContextualBalloon}.
* It is used for displaying last view from the current stack and providing navigation buttons for switching stacks.
* See {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon ContextualBalloon} documentation to learn more.
* It is used for displaying the last view from the current stack and providing navigation buttons for switching stacks.
* See the {@link module:ui/panel/balloon/contextualballoon~ContextualBalloon ContextualBalloon} documentation to learn more.
*

@@ -550,3 +560,3 @@ * @extends module:ui/view~View

/**
* Used for checking if view is focused or not.
* Used for checking if a view is focused or not.
*

@@ -558,3 +568,3 @@ * @type {module:utils/focustracker~FocusTracker}

/**
* Navigation button for switching stack to the previous one.
* Navigation button for switching the stack to the previous one.
*

@@ -566,3 +576,3 @@ * @type {module:ui/button/buttonview~ButtonView}

/**
* Navigation button for switching stack to the next one.
* Navigation button for switching the stack to the next one.
*

@@ -574,3 +584,3 @@ * @type {module:ui/button/buttonview~ButtonView}

/**
* Collection of the child views which creates rotator content.
* A collection of the child views that creates the rotator content.
*

@@ -641,3 +651,3 @@ * @readonly

/**
* Shows given view.
* Shows a given view.
*

@@ -652,3 +662,3 @@ * @param {module:ui/view~View} view The view to show.

/**
* Hides currently displayed view.
* Hides the currently displayed view.
*/

@@ -663,4 +673,4 @@ hideView() {

* @private
* @param {String} label The button's label.
* @param {String} icon The button's icon.
* @param {String} label The button label.
* @param {String} icon The button icon.
* @returns {module:ui/button/buttonview~ButtonView}

@@ -667,0 +677,0 @@ */

@@ -211,3 +211,6 @@ /**

*/
throw new CKEditorError( 'ui-template-revert-not-applied: Attempting to revert a template which has not been applied yet.' );
throw new CKEditorError(
'ui-template-revert-not-applied: Attempting to revert a template which has not been applied yet.',
[ this, node ]
);
}

@@ -413,3 +416,4 @@

throw new CKEditorError(
'ui-template-wrong-syntax: Node definition must have either "tag" or "text" when rendering a new Node.'
'ui-template-wrong-syntax: Node definition must have either "tag" or "text" when rendering a new Node.',
this
);

@@ -1361,2 +1365,3 @@ }

// @param {module:ui/template~TemplateDefinition} def A definition which is to extend the template instance.
// @param {Object} Error context.
function extendTemplate( template, def ) {

@@ -1391,3 +1396,4 @@ if ( def.attributes ) {

throw new CKEditorError(
'ui-template-extend-children-mismatch: The number of children in extended definition does not match.'
'ui-template-extend-children-mismatch: The number of children in extended definition does not match.',
template
);

@@ -1394,0 +1400,0 @@ }

@@ -470,3 +470,6 @@ /**

*/
throw new CKEditorError( 'ui-view-render-already-rendered: This View has already been rendered.' );
throw new CKEditorError(
'ui-view-render-already-rendered: This View has already been rendered.',
this
);
}

@@ -473,0 +476,0 @@

@@ -157,3 +157,6 @@ /**

*/
throw new CKEditorError( 'ui-viewcollection-delegate-wrong-events: All event names must be strings.' );
throw new CKEditorError(
'ui-viewcollection-delegate-wrong-events: All event names must be strings.',
this
);
}

@@ -160,0 +163,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

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

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

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

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc