New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ckeditor/ckeditor5-list

Package Overview
Dependencies
Maintainers
1
Versions
848
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckeditor/ckeditor5-list - npm Package Compare versions

Comparing version 0.0.0-nightly-20250211.0 to 0.0.0-nightly-next-20250211.0

12

ckeditor5-metadata.json

@@ -13,3 +13,3 @@ {

"name": "numberedList",
"iconPath": "@ckeditor/ckeditor5-core/theme/icons/numberedlist.svg"
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/numbered-list.svg"
},

@@ -19,3 +19,3 @@ {

"name": "bulletedList",
"iconPath": "@ckeditor/ckeditor5-core/theme/icons/bulletedlist.svg"
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/bulleted-list.svg"
}

@@ -46,3 +46,3 @@ ],

"name": "todoList",
"iconPath": "@ckeditor/ckeditor5-core/theme/icons/todolist.svg"
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/todo-list.svg"
}

@@ -109,3 +109,3 @@ ],

"name": "numberedList",
"iconPath": "@ckeditor/ckeditor5-core/theme/icons/numberedlist.svg"
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/numbered-list.svg"
},

@@ -115,3 +115,3 @@ {

"name": "bulletedList",
"iconPath": "@ckeditor/ckeditor5-core/theme/icons/bulletedlist.svg"
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/bulleted-list.svg"
}

@@ -144,3 +144,3 @@ ],

"name": "todoList",
"iconPath": "@ckeditor/ckeditor5-core/theme/icons/todolist.svg"
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/todo-list.svg"
}

@@ -147,0 +147,0 @@ ],

{
"name": "@ckeditor/ckeditor5-list",
"version": "0.0.0-nightly-20250211.0",
"version": "0.0.0-nightly-next-20250211.0",
"description": "Ordered and unordered lists feature to CKEditor 5.",

@@ -16,10 +16,11 @@ "keywords": [

"dependencies": {
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20250211.0",
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250211.0",
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20250211.0",
"@ckeditor/ckeditor5-enter": "0.0.0-nightly-20250211.0",
"@ckeditor/ckeditor5-typing": "0.0.0-nightly-20250211.0",
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250211.0",
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250211.0",
"ckeditor5": "0.0.0-nightly-20250211.0"
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-next-20250211.0",
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250211.0",
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-20250211.0",
"@ckeditor/ckeditor5-enter": "0.0.0-nightly-next-20250211.0",
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250211.0",
"@ckeditor/ckeditor5-typing": "0.0.0-nightly-next-20250211.0",
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250211.0",
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250211.0",
"ckeditor5": "0.0.0-nightly-next-20250211.0"
},

@@ -26,0 +27,0 @@ "author": "CKSource (http://cksource.com/)",

@@ -12,2 +12,6 @@ /**

/**
* Determines by how much the command will change the list item's indent attribute.
*/
_indentBy;
/**
* Creates an instance of the command.

@@ -14,0 +18,0 @@ *

@@ -12,2 +12,6 @@ /**

/**
* The type of the list created by the command.
*/
type;
/**
* Creates an instance of the command.

@@ -14,0 +18,0 @@ *

@@ -19,2 +19,6 @@ /**

/**
* The default type of the list style.
*/
defaultType;
/**
* Creates an instance of the command.

@@ -21,0 +25,0 @@ *

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

/**
* A list of to-do list items selected by the {@link module:engine/model/selection~Selection}.
*
* @internal
*/
_selectedElements;
/**
* @inheritDoc

@@ -20,0 +26,0 @@ */

@@ -12,2 +12,13 @@ /**

/**
* The type of the list created by the command.
*/
type;
/**
* List Walker options that change the range of the list items to be changed when the selection is collapsed within a list item.
*
* In a multi-level list, when the selection is collapsed within a list item, instead of changing only the list items of the same list
* type and current indent level, the entire list structure is changed (all list items at all indent levels of any list type).
*/
_listWalkerOptions;
/**
* Creates an instance of the command.

@@ -14,0 +25,0 @@ *

@@ -34,2 +34,6 @@ /**

/**
* The list of registered downcast strategies.
*/
_downcastStrategies = [];
/**
* @inheritDoc

@@ -57,6 +61,2 @@ */

super(editor);
/**
* The list of registered downcast strategies.
*/
this._downcastStrategies = [];
editor.config.define('list.multiBlock', true);

@@ -63,0 +63,0 @@ }

@@ -16,2 +16,6 @@ /**

/**
* Determines by how much the command will change the list item's indent attribute.
*/
_direction;
/**
* Creates an instance of the command.

@@ -18,0 +22,0 @@ *

@@ -16,2 +16,6 @@ /**

/**
* Whether list item should be merged before or after the selected block.
*/
_direction;
/**
* Creates an instance of the command.

@@ -18,0 +22,0 @@ *

@@ -14,2 +14,6 @@ /**

/**
* Whether list item should be split before or after the selected block.
*/
_direction;
/**
* Creates an instance of the command.

@@ -16,0 +20,0 @@ *

@@ -9,3 +9,4 @@ /**

import { createUIComponents } from './utils.js';
import { icons, Plugin } from 'ckeditor5/src/core.js';
import { Plugin } from 'ckeditor5/src/core.js';
import { IconBulletedList, IconNumberedList } from 'ckeditor5/src/icons.js';
/**

@@ -35,9 +36,9 @@ * The list UI feature. It introduces the `'numberedList'` and `'bulletedList'` buttons that

if (!this.editor.ui.componentFactory.has('numberedList')) {
createUIComponents(this.editor, 'numberedList', t('Numbered List'), icons.numberedList);
createUIComponents(this.editor, 'numberedList', t('Numbered List'), IconNumberedList);
}
// Create button bulletedList.
if (!this.editor.ui.componentFactory.has('bulletedList')) {
createUIComponents(this.editor, 'bulletedList', t('Bulleted List'), icons.bulletedList);
createUIComponents(this.editor, 'bulletedList', t('Bulleted List'), IconBulletedList);
}
}
}

@@ -15,2 +15,34 @@ /**

/**
* The start list item block element.
*/
_startElement;
/**
* The reference indent. Initialized by the indent of the start block.
*/
_referenceIndent;
/**
* The iterating direction.
*/
_isForward;
/**
* Whether start block should be included in the result (if it's matching other criteria).
*/
_includeSelf;
/**
* Additional attributes that must be the same for each block.
*/
_sameAttributes;
/**
* Whether blocks with the same indent level as the start block should be included in the result.
*/
_sameIndent;
/**
* Whether blocks with a lower indent level than the start block should be included in the result.
*/
_lowerIndent;
/**
* Whether blocks with a higher indent level than the start block should be included in the result.
*/
_higherIndent;
/**
* Creates a document list iterator.

@@ -130,2 +162,7 @@ *

export class SiblingListBlocksIterator {
_node;
_isForward;
_previousNodesByIndent = [];
_previous = null;
_previousNodeIndent = null;
/**

@@ -136,5 +173,2 @@ * @param node The model node.

constructor(node, direction = 'forward') {
this._previousNodesByIndent = [];
this._previous = null;
this._previousNodeIndent = null;
this._node = node;

@@ -186,2 +220,3 @@ this._isForward = direction === 'forward';

export class ListBlocksIterable {
_listHead;
/**

@@ -188,0 +223,0 @@ * @param listHead The head element of a list.

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

*/
import { icons, Plugin } from 'ckeditor5/src/core.js';
import { Plugin } from 'ckeditor5/src/core.js';
import { IconBulletedList, IconNumberedList, IconListStyleCircle, IconListStyleDecimal, IconListStyleDecimalLeadingZero, IconListStyleDisc, IconListStyleLowerLatin, IconListStyleLowerRoman, IconListStyleSquare, IconListStyleUpperLatin, IconListStyleUpperRoman } from 'ckeditor5/src/icons.js';
import { ButtonView, SplitButtonView, createDropdown, focusChildOnDropdownOpen, MenuBarMenuView } from 'ckeditor5/src/ui.js';
import ListPropertiesView from './ui/listpropertiesview.js';
import { getNormalizedConfig } from './utils/config.js';
import listStyleDiscIcon from '../../theme/icons/liststyledisc.svg';
import listStyleCircleIcon from '../../theme/icons/liststylecircle.svg';
import listStyleSquareIcon from '../../theme/icons/liststylesquare.svg';
import listStyleDecimalIcon from '../../theme/icons/liststyledecimal.svg';
import listStyleDecimalWithLeadingZeroIcon from '../../theme/icons/liststyledecimalleadingzero.svg';
import listStyleLowerRomanIcon from '../../theme/icons/liststylelowerroman.svg';
import listStyleUpperRomanIcon from '../../theme/icons/liststyleupperroman.svg';
import listStyleLowerLatinIcon from '../../theme/icons/liststylelowerlatin.svg';
import listStyleUpperLatinIcon from '../../theme/icons/liststyleupperlatin.svg';
import '../../theme/liststyles.css';

@@ -58,3 +50,3 @@ /**

type: 'disc',
icon: listStyleDiscIcon
icon: IconListStyleDisc
},

@@ -65,3 +57,3 @@ {

type: 'circle',
icon: listStyleCircleIcon
icon: IconListStyleCircle
},

@@ -72,3 +64,3 @@ {

type: 'square',
icon: listStyleSquareIcon
icon: IconListStyleSquare
}

@@ -84,3 +76,3 @@ ];

buttonLabel,
buttonIcon: icons.bulletedList,
buttonIcon: IconBulletedList,
styleGridAriaLabel,

@@ -108,3 +100,3 @@ styleDefinitions

type: 'decimal',
icon: listStyleDecimalIcon
icon: IconListStyleDecimal
},

@@ -115,3 +107,3 @@ {

type: 'decimal-leading-zero',
icon: listStyleDecimalWithLeadingZeroIcon
icon: IconListStyleDecimalLeadingZero
},

@@ -122,3 +114,3 @@ {

type: 'lower-roman',
icon: listStyleLowerRomanIcon
icon: IconListStyleLowerRoman
},

@@ -129,3 +121,3 @@ {

type: 'upper-roman',
icon: listStyleUpperRomanIcon
icon: IconListStyleUpperRoman
},

@@ -136,3 +128,3 @@ {

type: 'lower-latin',
icon: listStyleLowerLatinIcon
icon: IconListStyleLowerLatin
},

@@ -143,3 +135,3 @@ {

type: 'upper-latin',
icon: listStyleUpperLatinIcon
icon: IconListStyleUpperLatin
}

@@ -155,3 +147,3 @@ ];

buttonLabel,
buttonIcon: icons.numberedList,
buttonIcon: IconNumberedList,
styleGridAriaLabel,

@@ -382,3 +374,3 @@ styleDefinitions

label: buttonLabel,
icon: icons[parentCommandName]
icon: parentCommandName === 'bulletedList' ? IconBulletedList : IconNumberedList
});

@@ -385,0 +377,0 @@ menuView.panelView.children.add(listPropertiesView);

@@ -19,2 +19,10 @@ /**

/**
* The default type of the list style.
*/
defaultType;
/**
* The list of supported style types by this command.
*/
_supportedTypes;
/**
* Creates an instance of the command.

@@ -21,0 +29,0 @@ *

@@ -20,2 +20,54 @@ /**

/**
* A collection of the child views.
*/
children;
/**
* A view that renders the grid of list styles.
*/
stylesView = null;
/**
* A collapsible view that hosts additional list property fields ({@link #startIndexFieldView} and
* {@link #reversedSwitchButtonView}) to visually separate them from the {@link #stylesView grid of styles}.
*
* **Note**: Only present when:
* * the view represents **numbered** list properties,
* * and the {@link #stylesView} is rendered,
* * and either {@link #startIndexFieldView} or {@link #reversedSwitchButtonView} is rendered.
*
* @readonly
*/
additionalPropertiesCollapsibleView = null;
/**
* A labeled number field allowing the user to set the start index of the list.
*
* **Note**: Only present when the view represents **numbered** list properties.
*
* @readonly
*/
startIndexFieldView = null;
/**
* A switch button allowing the user to make the edited list reversed.
*
* **Note**: Only present when the view represents **numbered** list properties.
*
* @readonly
*/
reversedSwitchButtonView = null;
/**
* Tracks information about the DOM focus in the view.
*/
focusTracker = new FocusTracker();
/**
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
*/
keystrokes = new KeystrokeHandler();
/**
* A collection of views that can be focused in the properties view.
*/
focusables = new ViewCollection();
/**
* Helps cycling over {@link #focusables} in the view.
*/
focusCycler;
/**
* Creates an instance of the list properties view.

@@ -33,46 +85,2 @@ *

super(locale);
/**
* A view that renders the grid of list styles.
*/
this.stylesView = null;
/**
* A collapsible view that hosts additional list property fields ({@link #startIndexFieldView} and
* {@link #reversedSwitchButtonView}) to visually separate them from the {@link #stylesView grid of styles}.
*
* **Note**: Only present when:
* * the view represents **numbered** list properties,
* * and the {@link #stylesView} is rendered,
* * and either {@link #startIndexFieldView} or {@link #reversedSwitchButtonView} is rendered.
*
* @readonly
*/
this.additionalPropertiesCollapsibleView = null;
/**
* A labeled number field allowing the user to set the start index of the list.
*
* **Note**: Only present when the view represents **numbered** list properties.
*
* @readonly
*/
this.startIndexFieldView = null;
/**
* A switch button allowing the user to make the edited list reversed.
*
* **Note**: Only present when the view represents **numbered** list properties.
*
* @readonly
*/
this.reversedSwitchButtonView = null;
/**
* Tracks information about the DOM focus in the view.
*/
this.focusTracker = new FocusTracker();
/**
* An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
*/
this.keystrokes = new KeystrokeHandler();
/**
* A collection of views that can be focused in the properties view.
*/
this.focusables = new ViewCollection();
const elementCssClasses = [

@@ -79,0 +87,0 @@ 'ck',

@@ -16,12 +16,9 @@ /**

export default class TodoCheckboxChangeObserver extends DomEventObserver {
constructor() {
super(...arguments);
/**
* @inheritDoc
*/
this.domEventType = ['change'];
}
/**
* @inheritDoc
*/
domEventType = ['change'];
/**
* @inheritDoc
*/
onDomEvent(domEvent) {

@@ -28,0 +25,0 @@ if (domEvent.target) {

@@ -9,3 +9,4 @@ /**

import { createUIComponents } from '../list/utils.js';
import { icons, Plugin } from 'ckeditor5/src/core.js';
import { Plugin } from 'ckeditor5/src/core.js';
import { IconTodoList } from 'ckeditor5/src/icons.js';
/**

@@ -33,4 +34,4 @@ * The to-do list UI feature. It introduces the `'todoList'` button that

const t = this.editor.t;
createUIComponents(this.editor, 'todoList', t('To-do List'), icons.todoList);
createUIComponents(this.editor, 'todoList', t('To-do List'), IconTodoList);
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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