Comparing version 0.111.1-20241126185440 to 0.112.0-20241207072658
@@ -15,2 +15,9 @@ import { Range } from '..'; | ||
} | ||
export type DecoratedRange = Range & { | ||
/** | ||
* Customize how another decoration is merged into a text node. If not specified, `Object.assign` would be used. | ||
* It is useful for overlapping decorations with the same key but different values. | ||
*/ | ||
merge?: (leaf: Text, decoration: object) => void; | ||
}; | ||
export interface TextInterface { | ||
@@ -46,5 +53,5 @@ /** | ||
*/ | ||
decorations: (node: Text, decorations: Range[]) => Text[]; | ||
decorations: (node: Text, decorations: DecoratedRange[]) => Text[]; | ||
} | ||
export declare const Text: TextInterface; | ||
//# sourceMappingURL=text.d.ts.map |
{ | ||
"name": "slate", | ||
"description": "A completely customizable framework for building rich text editors.", | ||
"version": "0.111.1-20241126185440", | ||
"version": "0.112.0-20241207072658", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/ianstormtaylor/slate.git", |
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 too big to display
Sorry, the diff of this file is too big to display
2115056
22419