@udecode/slate-utils
Advanced tools
Comparing version 21.4.1 to 22.0.2
@@ -5,7 +5,7 @@ /** | ||
*/ | ||
import { FindNodeOptions, TEditor, TNodeEntry, Value } from '@udecode/slate'; | ||
import { EDescendant, FindNodeOptions, TEditor, TNodeEntry, Value } from '@udecode/slate'; | ||
/** | ||
* Get the first descendant node matching the condition. | ||
*/ | ||
export declare const findDescendant: <N extends import("@udecode/slate").DescendantOf<TEditor<V>>, V extends Value = Value>(editor: TEditor<V>, options: FindNodeOptions<V>) => TNodeEntry<N> | undefined; | ||
export declare const findDescendant: <N extends EDescendant<V>, V extends Value = Value>(editor: TEditor<V>, options: FindNodeOptions<V>) => TNodeEntry<N> | undefined; | ||
//# sourceMappingURL=findDescendant.d.ts.map |
@@ -1,6 +0,6 @@ | ||
import { GetAboveNodeOptions, TEditor, Value } from '@udecode/slate'; | ||
import { EAncestor, GetAboveNodeOptions, TEditor, Value } from '@udecode/slate'; | ||
/** | ||
* Get the block above a location (default: selection). | ||
*/ | ||
export declare const getBlockAbove: <N extends import("@udecode/slate").AncestorOf<TEditor<V>>, V extends Value = Value>(editor: TEditor<V>, options?: GetAboveNodeOptions<V>) => import("@udecode/slate").TNodeEntry<N> | undefined; | ||
export declare const getBlockAbove: <N extends EAncestor<V>, V extends Value = Value>(editor: TEditor<V>, options?: GetAboveNodeOptions<V>) => import("@udecode/slate").TNodeEntry<N> | undefined; | ||
//# sourceMappingURL=getBlockAbove.d.ts.map |
@@ -6,3 +6,3 @@ import { ChildOf, TNode, TNodeEntry } from '@udecode/slate'; | ||
*/ | ||
export declare const getChildren: <N extends ChildOf<R, number>, R extends TNode = TNode>(nodeEntry: TNodeEntry<R>) => TNodeEntry<N>[]; | ||
export declare const getChildren: <N extends ChildOf<R>, R extends TNode = TNode>(nodeEntry: TNodeEntry<R>) => TNodeEntry<N>[]; | ||
//# sourceMappingURL=getChildren.d.ts.map |
@@ -1,6 +0,6 @@ | ||
import { GetAboveNodeOptions, TEditor, TNodeEntry, Value } from '@udecode/slate'; | ||
import { EAncestor, GetAboveNodeOptions, TEditor, TNodeEntry, Value } from '@udecode/slate'; | ||
/** | ||
* Get the edge blocks above a location (default: selection). | ||
*/ | ||
export declare const getEdgeBlocksAbove: <N1 extends import("@udecode/slate").AncestorOf<TEditor<V>>, N2 extends import("@udecode/slate").AncestorOf<TEditor<V>> = N1, V extends Value = Value>(editor: TEditor<V>, { at: _at, ...options }?: GetAboveNodeOptions<V>) => [TNodeEntry<N1>, TNodeEntry<N2>] | null; | ||
export declare const getEdgeBlocksAbove: <N1 extends EAncestor<V>, N2 extends EAncestor<V> = N1, V extends Value = Value>(editor: TEditor<V>, { at: _at, ...options }?: GetAboveNodeOptions<V>) => [TNodeEntry<N1>, TNodeEntry<N2>] | null; | ||
//# sourceMappingURL=getEdgeBlocksAbove.d.ts.map |
@@ -6,3 +6,3 @@ import { ChildOf, TNode, TNodeEntry } from '@udecode/slate'; | ||
*/ | ||
export declare const getLastChild: <N extends ChildOf<R, number>, R extends TNode>(nodeEntry: TNodeEntry<R>) => TNodeEntry<N> | null; | ||
export declare const getLastChild: <N extends ChildOf<R>, R extends TNode>(nodeEntry: TNodeEntry<R>) => TNodeEntry<N> | null; | ||
/** | ||
@@ -9,0 +9,0 @@ * Get last child path. If there is no child, last index is 0. |
@@ -1,6 +0,6 @@ | ||
import { TEditor, TOperation, Value } from '@udecode/slate'; | ||
import { EDescendant, TEditor, TOperation, Value } from '@udecode/slate'; | ||
/** | ||
* Get typed editor operations. | ||
*/ | ||
export declare const getOperations: <V extends Value>(editor: TEditor<V>) => TOperation<import("@udecode/slate").DescendantOf<TEditor<V>>>[]; | ||
export declare const getOperations: <V extends Value>(editor: TEditor<V>) => TOperation<EDescendant<V>>[]; | ||
//# sourceMappingURL=getOperations.d.ts.map |
@@ -35,3 +35,3 @@ import { TEditor, Value } from '@udecode/slate'; | ||
*/ | ||
export declare const getPointBeforeLocation: <V extends Value>(editor: TEditor<V>, at: Location, options?: PointBeforeOptions | undefined) => any; | ||
export declare const getPointBeforeLocation: <V extends Value>(editor: TEditor<V>, at: Location, options?: PointBeforeOptions) => any; | ||
//# sourceMappingURL=getPointBeforeLocation.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { QueryNodeOptions, TEditor, TNodeEntry, Value } from '@udecode/slate'; | ||
import { EElement, QueryNodeOptions, TEditor, TNodeEntry, Value } from '@udecode/slate'; | ||
/** | ||
@@ -6,3 +6,3 @@ * Find the block before a block by id. | ||
*/ | ||
export declare const getPreviousBlockById: <N extends import("@udecode/slate").ElementOf<TEditor<V>>, V extends Value = Value>(editor: TEditor<V>, id: string, query?: QueryNodeOptions | undefined) => TNodeEntry<N> | undefined; | ||
export declare const getPreviousBlockById: <N extends EElement<V>, V extends Value = Value>(editor: TEditor<V>, id: string, query?: QueryNodeOptions) => TNodeEntry<N> | undefined; | ||
//# sourceMappingURL=getPreviousBlockById.d.ts.map |
@@ -9,3 +9,3 @@ import { TEditor, Value } from '@udecode/slate'; | ||
*/ | ||
export declare const getRangeBefore: <V extends Value>(editor: TEditor<V>, at: Location, options?: RangeBeforeOptions | undefined) => Range | undefined; | ||
export declare const getRangeBefore: <V extends Value>(editor: TEditor<V>, at: Location, options?: RangeBeforeOptions) => Range | undefined; | ||
//# sourceMappingURL=getRangeBefore.d.ts.map |
@@ -12,4 +12,4 @@ import { TEditor, Value } from '@udecode/slate'; | ||
range: import("slate").BaseRange | undefined; | ||
match: false | RegExpMatchArray | null; | ||
match: RegExpMatchArray | null; | ||
}; | ||
//# sourceMappingURL=isWordAfterTrigger.d.ts.map |
@@ -5,3 +5,3 @@ import { EMarks, TEditor, Value } from '@udecode/slate'; | ||
*/ | ||
export declare const setMarks: <V extends Value>(editor: TEditor<V>, marks: import("@udecode/utils").Simplify<import("@udecode/utils").UnionToIntersection<import("@udecode/slate").TNodeProps<import("@udecode/slate").TextOf<TEditor<V>>>>>, clear?: string | string[]) => void; | ||
export declare const setMarks: <V extends Value>(editor: TEditor<V>, marks: EMarks<V>, clear?: string | string[]) => void; | ||
//# sourceMappingURL=setMarks.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import { TEditor, Value, WrapNodesOptions } from '@udecode/slate'; | ||
import { EElement, TEditor, Value, WrapNodesOptions } from '@udecode/slate'; | ||
import { Modify } from '@udecode/utils'; | ||
@@ -9,5 +9,5 @@ import { Path } from 'slate'; | ||
*/ | ||
export declare const wrapNodeChildren: <N extends import("@udecode/slate").ElementOf<TEditor<V>>, V extends Value = Value>(editor: TEditor<V>, element: N, options: Modify<WrapNodesOptions<V>, { | ||
export declare const wrapNodeChildren: <N extends EElement<V>, V extends Value = Value>(editor: TEditor<V>, element: N, options: Modify<WrapNodesOptions<V>, { | ||
at: Path; | ||
}>) => void; | ||
//# sourceMappingURL=wrapNodeChildren.d.ts.map |
{ | ||
"name": "@udecode/slate-utils", | ||
"version": "21.4.1", | ||
"version": "22.0.2", | ||
"description": "Slate utils", | ||
"license": "MIT", | ||
"homepage": "https://plate.udecode.io", | ||
"homepage": "https://platejs.org", | ||
"repository": { | ||
@@ -21,4 +21,15 @@ "type": "git", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "yarn p:build", | ||
"build:watch": "yarn p:build:watch", | ||
"brl": "yarn p:brl", | ||
"clean": "yarn p:clean", | ||
"lint": "yarn p:lint", | ||
"lint:fix": "yarn p:lint:fix", | ||
"test": "yarn p:test", | ||
"test:watch": "yarn p:test:watch", | ||
"typecheck": "yarn p:typecheck" | ||
}, | ||
"dependencies": { | ||
"@udecode/slate": "21.4.1", | ||
"@udecode/slate": "22.0.2", | ||
"@udecode/utils": "19.7.1", | ||
@@ -25,0 +36,0 @@ "lodash": "^4.17.21" |
# Slate utils | ||
## Documentation | ||
@@ -9,8 +7,4 @@ | ||
## API | ||
See the [API documentation](https://plate-api.udecode.io/globals.html). | ||
## License | ||
[MIT](../../LICENSE) |
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
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
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
710771
7622
10
+ Added@udecode/slate@22.0.2(transitive)
- Removed@udecode/slate@21.4.1(transitive)
Updated@udecode/slate@22.0.2