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

@udecode/plate-list

Package Overview
Dependencies
Maintainers
2
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@udecode/plate-list - npm Package Compare versions

Comparing version 38.0.0 to 38.0.1

dist/BaseListPlugin-B0eGlA5x.d.mts

17

dist/index.d.ts

@@ -1,5 +0,6 @@

import { T as TodoListConfig, L as ListConfig, a as ListPluginOptions } from './ListPlugin-EdXwNYSg.js';
export { B as BulletedListPlugin, c as ListItemContentPlugin, b as ListItemPlugin, d as ListPlugin, N as NumberedListPlugin, e as TTodoListItemElement, f as TodoListPlugin, g as toggleBulletedList, t as toggleList, h as toggleNumberedList } from './ListPlugin-EdXwNYSg.js';
import { T as TodoListConfig, L as ListConfig, a as ListPluginOptions } from './BaseListPlugin-B0eGlA5x.js';
export { B as BaseBulletedListPlugin, d as BaseListItemContentPlugin, c as BaseListItemPlugin, e as BaseListPlugin, b as BaseNumberedListPlugin, g as BaseTodoListPlugin, f as TTodoListItemElement, h as toggleBulletedList, t as toggleList, i as toggleNumberedList } from './BaseListPlugin-B0eGlA5x.js';
import { SlateEditor, TElementEntry, GetNodeEntriesOptions, MoveChildrenOptions, ExtendEditor, TNodeEntry, TDescendant, TAncestor } from '@udecode/plate-common';
import { Path, Location, Point, Range } from 'slate';
import '@udecode/plate-core';

@@ -12,3 +13,3 @@ declare const indentListItems: (editor: SlateEditor) => void;

/** Insert todo list item if selection in li>p. TODO: test */
declare const insertTodoListItem: (editor: SlateEditor, { inheritCheckStateOnLineEndBreak, inheritCheckStateOnLineStartBreak, }: TodoListConfig['options']) => boolean;
declare const insertTodoListItem: (editor: SlateEditor, { inheritCheckStateOnLineEndBreak, inheritCheckStateOnLineStartBreak, }: TodoListConfig["options"]) => boolean;

@@ -65,3 +66,3 @@ interface MoveListItemDownOptions {

/** List position where to move the list items. */
toListIndex?: null | number;
toListIndex?: number | null;
}

@@ -98,3 +99,3 @@ /**

declare const unwrapList: (editor: SlateEditor, { at }?: {
at?: Path | undefined;
at?: Path;
}) => void;

@@ -143,4 +144,4 @@

declare const getHighestEmptyList: (editor: SlateEditor, { diffListPath, liPath, }: {
diffListPath?: Path | undefined;
liPath: Path;
diffListPath?: Path;
}) => Path | undefined;

@@ -153,3 +154,3 @@

declare const getListItemEntry: (editor: SlateEditor, { at }?: {
at?: Location | null | undefined;
at?: Location | null;
}) => {

@@ -170,3 +171,3 @@ list: TElementEntry;

declare const getTodoListItemEntry: (editor: SlateEditor, { at }?: {
at?: Location | null | undefined;
at?: Location | null;
}) => {

@@ -173,0 +174,0 @@ list: TElementEntry;

@@ -40,8 +40,8 @@ "use strict";

__export(src_exports, {
BulletedListPlugin: () => BulletedListPlugin,
ListItemContentPlugin: () => ListItemContentPlugin,
ListItemPlugin: () => ListItemPlugin,
ListPlugin: () => ListPlugin,
NumberedListPlugin: () => NumberedListPlugin,
TodoListPlugin: () => TodoListPlugin,
BaseBulletedListPlugin: () => BaseBulletedListPlugin,
BaseListItemContentPlugin: () => BaseListItemContentPlugin,
BaseListItemPlugin: () => BaseListItemPlugin,
BaseListPlugin: () => BaseListPlugin,
BaseNumberedListPlugin: () => BaseNumberedListPlugin,
BaseTodoListPlugin: () => BaseTodoListPlugin,
getDeepInlineChildren: () => getDeepInlineChildren,

@@ -84,3 +84,3 @@ getHighestEmptyList: () => getHighestEmptyList,

// src/lib/ListPlugin.ts
// src/lib/BaseListPlugin.ts
var import_plate_common21 = require("@udecode/plate-common");

@@ -97,3 +97,3 @@

const listParentNode = (_a = (0, import_plate_common.getParentNode)(editor, listPath)) == null ? void 0 : _a[0];
return (listParentNode == null ? void 0 : listParentNode.type) === editor.getType(ListItemPlugin);
return (listParentNode == null ? void 0 : listParentNode.type) === editor.getType(BaseListItemPlugin);
};

@@ -112,4 +112,4 @@

return [
editor.getType(NumberedListPlugin),
editor.getType(BulletedListPlugin)
editor.getType(BaseNumberedListPlugin),
editor.getType(BaseBulletedListPlugin)
];

@@ -127,4 +127,3 @@ };

});
if (!list)
return;
if (!list) return;
const [listNode, listPath] = list;

@@ -135,3 +134,3 @@ if (!diffListPath || !import_slate.Path.equals(listPath, diffListPath)) {

at: listPath,
match: { type: editor.getType(ListItemPlugin) }
match: { type: editor.getType(BaseListItemPlugin) }
});

@@ -150,3 +149,3 @@ if (liParent) {

var getListItemEntry = (editor, { at = editor.selection } = {}) => {
const liType = editor.getType(ListItemPlugin);
const liType = editor.getType(BaseListItemPlugin);
let _at;

@@ -179,4 +178,3 @@ if (import_slate2.Range.isRange(at) && !(0, import_plate_common3.isCollapsed)(at)) {

var _a;
if (!at)
return;
if (!at) return;
const parentList = (0, import_plate_common4.getAboveNode)(editor, {

@@ -186,4 +184,4 @@ at,

type: [
editor.getType(BulletedListPlugin),
editor.getType(NumberedListPlugin)
editor.getType(BaseBulletedListPlugin),
editor.getType(BaseNumberedListPlugin)
]

@@ -202,3 +200,3 @@ }

// src/lib/TodoListPlugin.ts
// src/lib/BaseTodoListPlugin.ts
var import_plate_common5 = require("@udecode/plate-common");

@@ -214,13 +212,10 @@

const insertBreakTodoList = () => {
if (!editor.selection)
return;
if (!editor.selection) return;
const res = getTodoListItemEntry(editor);
if (res) {
const inserted = insertTodoListItem(editor, getOptions());
if (inserted)
return true;
if (inserted) return true;
}
};
if (insertBreakTodoList())
return;
if (insertBreakTodoList()) return;
insertBreak();

@@ -231,6 +226,6 @@ };

// src/lib/TodoListPlugin.ts
var TodoListPlugin = (0, import_plate_common5.createTSlatePlugin)({
// src/lib/BaseTodoListPlugin.ts
var BaseTodoListPlugin = (0, import_plate_common5.createTSlatePlugin)({
key: "action_item",
extendEditor: withTodoList,
key: "action_item",
node: { isElement: true }

@@ -241,3 +236,3 @@ });

var getTodoListItemEntry = (editor, { at = editor.selection } = {}) => {
const todoType = editor.getType(TodoListPlugin);
const todoType = editor.getType(BaseTodoListPlugin);
let _at;

@@ -278,6 +273,5 @@ if (import_slate3.Range.isRange(at) && !(0, import_plate_common6.isCollapsed)(at)) {

const isAcrossBlocks = (0, import_plate_common8.isRangeAcrossBlocks)(editor);
if (!isAcrossBlocks)
return false;
if (!isAcrossBlocks) return false;
return (0, import_plate_common8.someNode)(editor, {
match: { type: editor.getType(ListItemPlugin) }
match: { type: editor.getType(BaseListItemPlugin) }
});

@@ -363,4 +357,3 @@ };

});
if (!fromListItemSublist)
return;
if (!fromListItemSublist) return;
fromListPath = fromListItemSublist == null ? void 0 : fromListItemSublist[1];

@@ -373,4 +366,3 @@ } else if (fromList) {

let to = null;
if (_to)
to = _to;
if (_to) to = _to;
if (toList) {

@@ -384,4 +376,3 @@ if (toListIndex === null) {

}
if (!to)
return;
if (!to) return;
moved = (0, import_plate_common11.moveChildren)(editor, {

@@ -422,3 +413,3 @@ at: fromListPath,

at,
match: { type: editor.getType(ListItemContentPlugin) }
match: { type: editor.getType(BaseListItemContentPlugin) }
});

@@ -428,3 +419,3 @@ if (licEntry) {

at,
type: editor.getType(import_plate_common12.ParagraphPlugin)
type: editor.getType(import_plate_common12.BaseParagraphPlugin)
});

@@ -434,3 +425,3 @@ }

at,
match: { type: editor.getType(ListItemPlugin) },
match: { type: editor.getType(BaseListItemPlugin) },
split: true

@@ -442,4 +433,4 @@ });

type: [
editor.getType(BulletedListPlugin),
editor.getType(NumberedListPlugin)
editor.getType(BaseBulletedListPlugin),
editor.getType(BaseNumberedListPlugin)
]

@@ -460,3 +451,3 @@ },

at: listPath,
match: { type: editor.getType(ListItemPlugin) }
match: { type: editor.getType(BaseListItemPlugin) }
});

@@ -484,4 +475,3 @@ if (!liParent) {

const toListNode = (0, import_plate_common13.getNode)(editor, toListPath2);
if (!toListNode)
return;
if (!toListNode) return;
moveListItemsToList(editor, {

@@ -494,4 +484,3 @@ fromListItem: listItem,

const toListNode = (0, import_plate_common13.getNode)(editor, toListPath2);
if (!toListNode)
return;
if (!toListNode) return;
moveListItemsToList(editor, {

@@ -521,4 +510,3 @@ deleteFromList: false,

const toListNode = (0, import_plate_common13.getNode)(editor, toListPath);
if (!toListNode)
return;
if (!toListNode) return;
moveListItemsToList(editor, {

@@ -567,8 +555,7 @@ deleteFromList: false,

match: {
type: editor.getType(ListItemContentPlugin)
type: editor.getType(BaseListItemContentPlugin)
}
});
const lics = Array.from(_nodes);
if (lics.length === 0)
return;
if (lics.length === 0) return;
const highestLicPaths = [];

@@ -593,10 +580,7 @@ const highestLicPathRefs = [];

const licPath = licPathRef.unref();
if (!licPath)
return;
if (!licPath) return;
const listItem = (0, import_plate_common14.getParentNode)(editor, licPath);
if (!listItem)
return;
if (!listItem) return;
const parentList = (0, import_plate_common14.getParentNode)(editor, listItem[1]);
if (!parentList)
return;
if (!parentList) return;
let _moved;

@@ -634,4 +618,4 @@ if (increase) {

var insertListItem = (editor) => {
const liType = editor.getType(ListItemPlugin);
const licType = editor.getType(ListItemContentPlugin);
const liType = editor.getType(BaseListItemPlugin);
const licType = editor.getType(BaseListItemContentPlugin);
if (!editor.selection) {

@@ -641,11 +625,8 @@ return false;

const licEntry = (0, import_plate_common15.getAboveNode)(editor, { match: { type: licType } });
if (!licEntry)
return false;
if (!licEntry) return false;
const [, paragraphPath] = licEntry;
const listItemEntry = (0, import_plate_common15.getParentNode)(editor, paragraphPath);
if (!listItemEntry)
return false;
if (!listItemEntry) return false;
const [listItemNode, listItemPath] = listItemEntry;
if (listItemNode.type !== liType)
return false;
if (listItemNode.type !== liType) return false;
let success = false;

@@ -726,3 +707,3 @@ (0, import_plate_common15.withoutNormalizing)(editor, () => {

}) => {
const todoType = editor.getType(TodoListPlugin);
const todoType = editor.getType(BaseTodoListPlugin);
if (!editor.selection) {

@@ -732,4 +713,3 @@ return false;

const todoEntry = (0, import_plate_common16.getAboveNode)(editor, { match: { type: todoType } });
if (!todoEntry)
return false;
if (!todoEntry) return false;
const [todo, paragraphPath] = todoEntry;

@@ -801,4 +781,3 @@ let success = false;

});
if (!fromListItemSublist)
return;
if (!fromListItemSublist) return;
const [, fromListItemSublistPath] = fromListItemSublist;

@@ -814,4 +793,3 @@ const toListItemSublist = (0, import_plate_common17.findDescendant)(editor, {

const fromList = (0, import_plate_common17.getParentNode)(editor, fromListItemPath);
if (!fromList)
return;
if (!fromList) return;
const [fromListNode] = fromList;

@@ -875,4 +853,3 @@ const fromListType = fromListNode.type;

const previousLi = (0, import_plate_common19.getNodeEntry)(editor, previousLiPath);
if (!previousLi)
return;
if (!previousLi) return;
let tempLiPath = import_slate12.Path.next(liPath);

@@ -885,6 +862,6 @@ (0, import_plate_common19.insertElements)(

children: [{ text: "" }],
type: editor.getType(ListItemContentPlugin)
type: editor.getType(BaseListItemContentPlugin)
}
],
type: editor.getType(ListItemPlugin)
type: editor.getType(BaseListItemPlugin)
},

@@ -894,4 +871,3 @@ { at: tempLiPath }

const tempLi = (0, import_plate_common19.getNodeEntry)(editor, tempLiPath);
if (!tempLi)
return;
if (!tempLi) return;
const tempLiPathRef = (0, import_plate_common19.createPathRef)(editor, tempLi[1]);

@@ -930,3 +906,3 @@ moveListItemSublistItemsToListItemSublist(editor, {

}
const { validLiChildrenTypes } = editor.getOptions(ListPlugin);
const { validLiChildrenTypes } = editor.getOptions(BaseListPlugin);
if ((0, import_plate_common20.isCollapsed)(editor.selection) || !(0, import_plate_common20.isRangeAcrossBlocks)(editor)) {

@@ -953,3 +929,3 @@ const res = getListItemEntry(editor);

const _nodes = (0, import_plate_common20.getNodeEntries)(editor, {
match: { type: editor.getType(import_plate_common20.ParagraphPlugin) }
match: { type: editor.getType(import_plate_common20.BaseParagraphPlugin) }
});

@@ -962,3 +938,3 @@ const nodes = Array.from(_nodes);

(0, import_plate_common20.setElements)(editor, {
type: editor.getType(ListItemContentPlugin)
type: editor.getType(BaseListItemContentPlugin)
});

@@ -968,3 +944,3 @@ }

children: [],
type: editor.getType(ListItemPlugin)
type: editor.getType(BaseListItemPlugin)
};

@@ -984,3 +960,3 @@ for (const [, path] of nodes) {

);
if (getListTypes(editor).includes(commonEntry[0].type) || commonEntry[0].type === editor.getType(ListItemPlugin)) {
if (getListTypes(editor).includes(commonEntry[0].type) || commonEntry[0].type === editor.getType(BaseListItemPlugin)) {
if (commonEntry[0].type === type) {

@@ -1036,3 +1012,3 @@ unwrapList(editor);

editor,
{ type: editor.getType(ListItemContentPlugin) },
{ type: editor.getType(BaseListItemContentPlugin) },
{ at: n[1] }

@@ -1043,3 +1019,3 @@ );

children: [],
type: editor.getType(ListItemPlugin)
type: editor.getType(BaseListItemPlugin)
};

@@ -1056,4 +1032,4 @@ (0, import_plate_common20.wrapNodes)(editor, listItem, {

});
var toggleBulletedList = (editor) => toggleList(editor, { type: editor.getType(BulletedListPlugin) });
var toggleNumberedList = (editor) => toggleList(editor, { type: editor.getType(NumberedListPlugin) });
var toggleBulletedList = (editor) => toggleList(editor, { type: editor.getType(BaseBulletedListPlugin) });
var toggleNumberedList = (editor) => toggleList(editor, { type: editor.getType(BaseNumberedListPlugin) });

@@ -1063,4 +1039,4 @@ // src/lib/transforms/unindentListItems.ts

// src/lib/ListPlugin.ts
var BulletedListPlugin = (0, import_plate_common21.createSlatePlugin)({
// src/lib/BaseListPlugin.ts
var BaseBulletedListPlugin = (0, import_plate_common21.createSlatePlugin)({
key: "ul",

@@ -1080,3 +1056,3 @@ node: { isElement: true },

});
var NumberedListPlugin = (0, import_plate_common21.createSlatePlugin)({
var BaseNumberedListPlugin = (0, import_plate_common21.createSlatePlugin)({
key: "ol",

@@ -1086,3 +1062,3 @@ node: { isElement: true },

});
var ListItemPlugin = (0, import_plate_common21.createSlatePlugin)({
var BaseListItemPlugin = (0, import_plate_common21.createSlatePlugin)({
key: "li",

@@ -1104,7 +1080,7 @@ node: { isElement: true },

}));
var ListItemContentPlugin = (0, import_plate_common21.createSlatePlugin)({
var BaseListItemContentPlugin = (0, import_plate_common21.createSlatePlugin)({
key: "lic",
node: { isElement: true }
});
var ListPlugin = (0, import_plate_common21.createTSlatePlugin)({
var BaseListPlugin = (0, import_plate_common21.createTSlatePlugin)({
key: "list",

@@ -1114,6 +1090,6 @@ // TODO react

plugins: [
BulletedListPlugin,
NumberedListPlugin,
ListItemPlugin,
ListItemContentPlugin
BaseBulletedListPlugin,
BaseNumberedListPlugin,
BaseListItemPlugin,
BaseListItemContentPlugin
]

@@ -1162,3 +1138,3 @@ }).extendEditorTransforms(({ editor }) => ({

if (!hasListChild(editor, listItem[0])) {
const liType = editor.getType(ListItemPlugin);
const liType = editor.getType(BaseListItemPlugin);
const _nodes = (0, import_plate_common22.getNodeEntries)(editor, {

@@ -1200,4 +1176,3 @@ at: listItem[1],

);
if (!siblingListItem)
return false;
if (!siblingListItem) return false;
const siblingList = (0, import_plate_common22.getParentNode)(editor, siblingListItem[1]);

@@ -1220,3 +1195,3 @@ if (siblingList && removeListItem(editor, {

}
const licType = editor.getType(ListItemContentPlugin);
const licType = editor.getType(BaseListItemContentPlugin);
const _licNodes = (0, import_plate_common22.getNodeEntries)(editor, {

@@ -1228,4 +1203,3 @@ at: pointAfterListItem.path,

const nextSelectableLic = [..._licNodes][0];
if (nextSelectableLic[0].children.length < 2)
return false;
if (nextSelectableLic[0].children.length < 2) return false;
defaultDelete(unit);

@@ -1245,4 +1219,3 @@ const leftoverListItem = (0, import_plate_common22.getNodeEntry)(

);
if (!nestedList)
return false;
if (!nestedList) return false;
const nestedListItem = (0, import_plate_common22.getChildren)(nestedList)[0];

@@ -1289,4 +1262,3 @@ if (removeFirstListItem(editor, {

};
if (deleteForwardList())
return;
if (deleteForwardList()) return;
deleteForward(unit);

@@ -1303,3 +1275,3 @@ };

at: start,
match: { type: editor.getType(ListItemPlugin) }
match: { type: editor.getType(BaseListItemPlugin) }
});

@@ -1315,8 +1287,7 @@ };

(0, import_plate_common23.withoutNormalizing)(editor, () => {
if (!isAcrossListItems(editor))
return;
if (!isAcrossListItems(editor)) return;
const end = (0, import_plate_common23.getEndPoint)(editor, editor.selection);
const liEnd = (0, import_plate_common23.getAboveNode)(editor, {
at: end,
match: { type: editor.getType(ListItemPlugin) }
match: { type: editor.getType(BaseListItemPlugin) }
});

@@ -1346,4 +1317,3 @@ const liEndCanBeDeleted = liEnd && !hasListChild(editor, liEnd[0]);

};
if (deleteFragmentList())
return;
if (deleteFragmentList()) return;
deleteFragment(direction);

@@ -1361,4 +1331,4 @@ };

const { insertFragment } = editor;
const listItemType = editor.getType(ListItemPlugin);
const listItemContentType = editor.getType(ListItemContentPlugin);
const listItemType = editor.getType(BaseListItemPlugin);
const listItemContentType = editor.getType(BaseListItemContentPlugin);
const getFirstAncestorOfType = (root, entry, type) => {

@@ -1529,5 +1499,5 @@ let ancestor = import_slate15.Path.parent(entry[1]);

const allValidLiChildrenTypes = /* @__PURE__ */ new Set([
editor.getType(BulletedListPlugin),
editor.getType(NumberedListPlugin),
editor.getType(ListItemContentPlugin),
editor.getType(BaseBulletedListPlugin),
editor.getType(BaseListItemContentPlugin),
editor.getType(BaseNumberedListPlugin),
...validLiChildrenTypes

@@ -1541,3 +1511,3 @@ ]);

if (!firstLiChild || !(0, import_plate_common25.isBlock)(editor, firstLiChildNode)) {
(0, import_plate_common25.insertEmptyElement)(editor, editor.getType(ListItemContentPlugin), {
(0, import_plate_common25.insertEmptyElement)(editor, editor.getType(BaseListItemContentPlugin), {
at: liPath.concat([0])

@@ -1548,3 +1518,3 @@ });

if ((0, import_plate_common25.isBlock)(editor, firstLiChildNode) && !(0, import_plate_common25.match)(firstLiChildNode, [], {
type: editor.getType(ListItemContentPlugin)
type: editor.getType(BaseListItemContentPlugin)
})) {

@@ -1572,3 +1542,3 @@ if ((0, import_plate_common25.match)(firstLiChildNode, [], {

{
type: editor.getType(ListItemContentPlugin)
type: editor.getType(BaseListItemContentPlugin)
},

@@ -1613,4 +1583,3 @@ {

}
if (changed)
return true;
if (changed) return true;
invalidLiChildrenPathRefs.reverse().forEach((ref) => {

@@ -1665,5 +1634,5 @@ const path = ref.unref();

var _a;
const liType = editor.getType(ListItemPlugin);
const licType = editor.getType(ListItemContentPlugin);
const defaultType = editor.getType(import_plate_common27.ParagraphPlugin);
const liType = editor.getType(BaseListItemPlugin);
const licType = editor.getType(BaseListItemContentPlugin);
const defaultType = editor.getType(import_plate_common27.BaseParagraphPlugin);
if (!(0, import_plate_common27.isElement)(node)) {

@@ -1707,3 +1676,3 @@ return normalizeNode([node, path]);

}
if (node.type === editor.getType(ListItemPlugin) && normalizeListItem(editor, {
if (node.type === editor.getType(BaseListItemPlugin) && normalizeListItem(editor, {
listItem: [node, path],

@@ -1724,8 +1693,8 @@ validLiChildrenTypes: getOptions().validLiChildrenTypes

0 && (module.exports = {
BulletedListPlugin,
ListItemContentPlugin,
ListItemPlugin,
ListPlugin,
NumberedListPlugin,
TodoListPlugin,
BaseBulletedListPlugin,
BaseListItemContentPlugin,
BaseListItemPlugin,
BaseListPlugin,
BaseNumberedListPlugin,
BaseTodoListPlugin,
getDeepInlineChildren,

@@ -1732,0 +1701,0 @@ getHighestEmptyList,

import * as _udecode_plate_core_react from '@udecode/plate-core/react';
import * as _udecode_plate_core from '@udecode/plate-core';
import { a as ListPluginOptions, L as ListConfig, e as TTodoListItemElement } from '../ListPlugin-EdXwNYSg.js';
import * as _udecode_utils from '@udecode/utils';
import { a as ListPluginOptions, h as toggleBulletedList, t as toggleList, i as toggleNumberedList, L as ListConfig, f as TTodoListItemElement } from '../BaseListPlugin-B0eGlA5x.js';
import { KeyboardHandler, ExtendEditor } from '@udecode/plate-common/react';

@@ -9,7 +10,5 @@ import '@udecode/plate-common';

toggle: {
bulletedList: () => boolean;
list: (args_0: {
type: string;
}) => boolean;
numberedList: () => boolean;
bulletedList: _udecode_utils.OmitFirst<typeof toggleBulletedList>;
list: _udecode_utils.OmitFirst<typeof toggleList>;
numberedList: _udecode_utils.OmitFirst<typeof toggleNumberedList>;
};

@@ -19,7 +18,5 @@ }>>;

toggle: {
bulletedList: () => boolean;
list: (args_0: {
type: string;
}) => boolean;
numberedList: () => boolean;
bulletedList: _udecode_utils.OmitFirst<typeof toggleBulletedList>;
list: _udecode_utils.OmitFirst<typeof toggleList>;
numberedList: _udecode_utils.OmitFirst<typeof toggleNumberedList>;
};

@@ -35,7 +32,5 @@ }>>;

toggle: {
bulletedList: () => boolean;
list: (args_0: {
type: string;
}) => boolean;
numberedList: () => boolean;
bulletedList: _udecode_utils.OmitFirst<typeof toggleBulletedList>;
list: _udecode_utils.OmitFirst<typeof toggleList>;
numberedList: _udecode_utils.OmitFirst<typeof toggleNumberedList>;
};

@@ -73,5 +68,5 @@ } & {

props: {
pressed: boolean;
onClick: () => void;
onMouseDown: (e: React.MouseEvent<HTMLButtonElement>) => void;
pressed: boolean;
};

@@ -78,0 +73,0 @@ };

{
"name": "@udecode/plate-list",
"version": "38.0.0",
"version": "38.0.1",
"description": "List plugin for Plate",

@@ -53,3 +53,3 @@ "keywords": [

"dependencies": {
"@udecode/plate-reset-node": "38.0.0",
"@udecode/plate-reset-node": "38.0.1",
"lodash": "^4.17.21"

@@ -61,3 +61,3 @@ },

"peerDependencies": {
"@udecode/plate-common": ">=38.0.0",
"@udecode/plate-common": ">=38.0.1",
"react": ">=16.8.0",

@@ -64,0 +64,0 @@ "react-dom": ">=16.8.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 too big to display

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