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

@prezly/slate-lists

Package Overview
Dependencies
Maintainers
4
Versions
303
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prezly/slate-lists - npm Package Compare versions

Comparing version

to
0.1.0-alpha.22

build/lib/canDeleteBackward.d.ts

3

build/lib/index.d.ts

@@ -0,1 +1,2 @@

export { default as canDeleteBackward } from './canDeleteBackward';
export { default as cloneContentsMonkeyPatch } from './cloneContentsMonkeyPatch';

@@ -16,2 +17,4 @@ export { default as createDefaultNode } from './createDefaultNode';

export { default as increaseListItemDepth } from './increaseListItemDepth';
export { default as isCursorAtStartOfListItem } from './isCursorAtStartOfListItem';
export { default as isCursorInEmptyListItem } from './isCursorInEmptyListItem';
export { default as isList } from './isList';

@@ -18,0 +21,0 @@ export { default as isListItem } from './isListItem';

@@ -6,3 +6,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapInList = exports.unwrapList = exports.splitListItem = exports.setListType = exports.normalizeSiblingLists = exports.normalizeOrphanNestedList = exports.normalizeOrphanListItemText = exports.normalizeOrphanListItem = exports.normalizeListItemTextChildren = exports.normalizeListItemChildren = exports.normalizeListChildren = exports.normalizeList = exports.moveListToListItem = exports.moveListItemsToAnotherList = exports.listItemContainsText = exports.isListItemText = exports.isListItem = exports.isList = exports.increaseListItemDepth = exports.increaseDepth = exports.getParentListItem = exports.getParentList = exports.getNestedList = exports.getListType = exports.getListsInRange = exports.getListItemsInRange = exports.decreaseListItemDepth = exports.decreaseDepth = exports.createListItemText = exports.createListItem = exports.createList = exports.createDefaultNode = exports.cloneContentsMonkeyPatch = void 0;
exports.wrapInList = exports.unwrapList = exports.splitListItem = exports.setListType = exports.normalizeSiblingLists = exports.normalizeOrphanNestedList = exports.normalizeOrphanListItemText = exports.normalizeOrphanListItem = exports.normalizeListItemTextChildren = exports.normalizeListItemChildren = exports.normalizeListChildren = exports.normalizeList = exports.moveListToListItem = exports.moveListItemsToAnotherList = exports.listItemContainsText = exports.isListItemText = exports.isListItem = exports.isList = exports.isCursorInEmptyListItem = exports.isCursorAtStartOfListItem = exports.increaseListItemDepth = exports.increaseDepth = exports.getParentListItem = exports.getParentList = exports.getNestedList = exports.getListType = exports.getListsInRange = exports.getListItemsInRange = exports.decreaseListItemDepth = exports.decreaseDepth = exports.createListItemText = exports.createListItem = exports.createList = exports.createDefaultNode = exports.cloneContentsMonkeyPatch = exports.canDeleteBackward = void 0;
var canDeleteBackward_1 = require("./canDeleteBackward");
Object.defineProperty(exports, "canDeleteBackward", { enumerable: true, get: function () { return __importDefault(canDeleteBackward_1).default; } });
var cloneContentsMonkeyPatch_1 = require("./cloneContentsMonkeyPatch");

@@ -38,2 +40,6 @@ Object.defineProperty(exports, "cloneContentsMonkeyPatch", { enumerable: true, get: function () { return __importDefault(cloneContentsMonkeyPatch_1).default; } });

Object.defineProperty(exports, "increaseListItemDepth", { enumerable: true, get: function () { return __importDefault(increaseListItemDepth_1).default; } });
var isCursorAtStartOfListItem_1 = require("./isCursorAtStartOfListItem");
Object.defineProperty(exports, "isCursorAtStartOfListItem", { enumerable: true, get: function () { return __importDefault(isCursorAtStartOfListItem_1).default; } });
var isCursorInEmptyListItem_1 = require("./isCursorInEmptyListItem");
Object.defineProperty(exports, "isCursorInEmptyListItem", { enumerable: true, get: function () { return __importDefault(isCursorInEmptyListItem_1).default; } });
var isList_1 = require("./isList");

@@ -40,0 +46,0 @@ Object.defineProperty(exports, "isList", { enumerable: true, get: function () { return __importDefault(isList_1).default; } });

import { ListsOptions } from './types';
declare const Lists: (options: ListsOptions) => {
canDeleteBackward: (editor: import("slate").Editor) => boolean;
decreaseDepth: (editor: import("slate").Editor) => void;

@@ -13,2 +14,4 @@ decreaseListItemDepth: (editor: import("slate").Editor, listItemPath: import("slate").Path) => void;

increaseListItemDepth: (editor: import("slate").Editor, listItemPath: import("slate").Path) => void;
isCursorAtStartOfListItem: (editor: import("slate").Editor) => boolean;
isCursorInEmptyListItem: (editor: import("slate").Editor) => boolean;
isList: (node: import("slate").Node) => boolean;

@@ -15,0 +18,0 @@ isListItem: (node: import("slate").Node) => boolean;

@@ -5,2 +5,3 @@ "use strict";

var Lists = function (options) { return ({
canDeleteBackward: lib_1.canDeleteBackward.bind(null, options),
decreaseDepth: lib_1.decreaseDepth.bind(null, options),

@@ -16,2 +17,4 @@ decreaseListItemDepth: lib_1.decreaseListItemDepth.bind(null, options),

increaseListItemDepth: lib_1.increaseListItemDepth.bind(null, options),
isCursorAtStartOfListItem: lib_1.isCursorAtStartOfListItem.bind(null, options),
isCursorInEmptyListItem: lib_1.isCursorInEmptyListItem.bind(null, options),
isList: lib_1.isList.bind(null, options),

@@ -18,0 +21,0 @@ isListItem: lib_1.isListItem.bind(null, options),

@@ -13,2 +13,3 @@ import { Editor } from 'slate';

export declare const lists: {
canDeleteBackward: (editor: Editor) => boolean;
decreaseDepth: (editor: Editor) => void;

@@ -24,2 +25,4 @@ decreaseListItemDepth: (editor: Editor, listItemPath: import("slate").Path) => void;

increaseListItemDepth: (editor: Editor, listItemPath: import("slate").Path) => void;
isCursorAtStartOfListItem: (editor: Editor) => boolean;
isCursorInEmptyListItem: (editor: Editor) => boolean;
isList: (node: import("slate").Node) => boolean;

@@ -26,0 +29,0 @@ isListItem: (node: import("slate").Node) => boolean;

8

package.json
{
"name": "@prezly/slate-lists",
"version": "0.1.0-alpha.21",
"version": "0.1.0-alpha.22",
"description": "The best Slate lists extension out there",

@@ -30,4 +30,4 @@ "license": "MIT",

"dependencies": {
"@prezly/slate-commons": "^0.1.0-alpha.21",
"@prezly/slate-hyperscript": "^0.1.0-alpha.21",
"@prezly/slate-commons": "^0.1.0-alpha.22",
"@prezly/slate-hyperscript": "^0.1.0-alpha.22",
"uuid": "^8.3.2"

@@ -39,3 +39,3 @@ },

},
"gitHead": "f976f56acbf40fd4c58ddc82e272be3f80db26cf"
"gitHead": "e6180ea6f508a88bc79f93b3acc6153c8b50c776"
}

@@ -0,1 +1,2 @@

export { default as canDeleteBackward } from './canDeleteBackward';
export { default as cloneContentsMonkeyPatch } from './cloneContentsMonkeyPatch';

@@ -16,2 +17,4 @@ export { default as createDefaultNode } from './createDefaultNode';

export { default as increaseListItemDepth } from './increaseListItemDepth';
export { default as isCursorAtStartOfListItem } from './isCursorAtStartOfListItem';
export { default as isCursorInEmptyListItem } from './isCursorInEmptyListItem';
export { default as isList } from './isList';

@@ -18,0 +21,0 @@ export { default as isListItem } from './isListItem';

import {
canDeleteBackward,
decreaseDepth,

@@ -12,2 +13,4 @@ decreaseListItemDepth,

increaseListItemDepth,
isCursorAtStartOfListItem,
isCursorInEmptyListItem,
isList,

@@ -27,2 +30,3 @@ isListItem,

const Lists = (options: ListsOptions) => ({
canDeleteBackward: canDeleteBackward.bind(null, options),
decreaseDepth: decreaseDepth.bind(null, options),

@@ -38,2 +42,4 @@ decreaseListItemDepth: decreaseListItemDepth.bind(null, options),

increaseListItemDepth: increaseListItemDepth.bind(null, options),
isCursorAtStartOfListItem: isCursorAtStartOfListItem.bind(null, options),
isCursorInEmptyListItem: isCursorInEmptyListItem.bind(null, options),
isList: isList.bind(null, options),

@@ -40,0 +46,0 @@ isListItem: isListItem.bind(null, options),

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet