🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@udecode/plate-common

Package Overview
Dependencies
Maintainers
2
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@udecode/plate-common - npm Package Compare versions

Comparing version

to
6.0.0

dist/queries/unsetNodes.d.ts
# @udecode/plate-common
## 6.0.0
### Minor Changes
- [#1154](https://github.com/udecode/plate/pull/1154) by [@zbeyens](https://github.com/zbeyens) – `unsetNodes`
### Patch Changes
- [#1154](https://github.com/udecode/plate/pull/1154) by [@zbeyens](https://github.com/zbeyens) – fix: EditorNodesOptions `at` option
## 5.3.5

@@ -4,0 +14,0 @@

1

dist/queries/index.d.ts

@@ -48,2 +48,3 @@ /**

export * from './someNode';
export * from './unsetNodes';
//# sourceMappingURL=index.d.ts.map

4

dist/types/Editor.types.d.ts
import { TAncestor, TNode } from '@udecode/plate-core';
import { Path, Point, Range, Span } from 'slate';
import { Location, Path, Point, Range } from 'slate';
import { Predicate } from '../queries/match';

@@ -10,3 +10,3 @@ export declare type NodeMatch<T = TNode> = Predicate<T>;

export interface EditorNodesOptions<T = TNode> extends MatchOptions<T> {
at?: Range | Path | Point | Span;
at?: Location;
mode?: 'highest' | 'lowest' | 'all';

@@ -13,0 +13,0 @@ universal?: boolean;

import { TNode } from '@udecode/plate-core';
import { Location, Path, Point, Range } from 'slate';
import { MatchOptions } from './Editor.types';
export interface WrapOptions<T = TNode> extends MatchOptions<T> {
export declare type TNodeMatch<T extends TNode = TNode> = ((node: TNode, path: Path) => node is T) | ((node: TNode, path: Path) => boolean);
export interface WrapOptions<T extends TNode = TNode> extends MatchOptions<T> {
at?: Path | Point | Range;

@@ -10,3 +11,3 @@ mode?: 'highest' | 'lowest' | 'all';

}
export interface InsertNodesOptions<T = TNode> extends MatchOptions<T> {
export interface InsertNodesOptions<T extends TNode = TNode> extends MatchOptions<T> {
at?: Path | Point | Range;

@@ -18,4 +19,5 @@ mode?: 'highest' | 'lowest';

}
export interface SetNodesOptions<T = TNode> extends MatchOptions<T> {
export interface SetNodesOptions<T extends TNode = TNode> {
at?: Location;
match?: TNodeMatch<T>;
mode?: 'all' | 'highest' | 'lowest';

@@ -22,0 +24,0 @@ hanging?: boolean;

{
"name": "@udecode/plate-common",
"version": "5.3.5",
"version": "6.0.0",
"description": "Common utilities used by Plate",

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

"dependencies": {
"@udecode/plate-core": "5.3.1",
"@udecode/plate-core": "6.0.0",
"is-hotkey": "^0.1.6"

@@ -38,0 +38,0 @@ },

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 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

Sorry, the diff of this file is not supported yet