prosemirror-view 1.33.0 → 1.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +0 -3
- package/package.json +1 -1
- package/src/decoration.ts +0 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -210,11 +210,21 @@ declare class DecorationSet implements DecorationSource {
|
|
|
210
210
|
*/
|
|
211
211
|
remove(decorations: Decoration[]): DecorationSet;
|
|
212
212
|
private removeInner;
|
|
213
|
+
forChild(offset: number, node: Node): DecorationSet | DecorationGroup;
|
|
213
214
|
/**
|
|
214
215
|
The empty set of decorations.
|
|
215
216
|
*/
|
|
216
217
|
static empty: DecorationSet;
|
|
217
218
|
}
|
|
219
|
+
declare class DecorationGroup implements DecorationSource {
|
|
220
|
+
readonly members: readonly DecorationSet[];
|
|
221
|
+
constructor(members: readonly DecorationSet[]);
|
|
222
|
+
map(mapping: Mapping, doc: Node): DecorationSource;
|
|
223
|
+
forChild(offset: number, child: Node): DecorationSource | DecorationSet;
|
|
224
|
+
eq(other: DecorationGroup): boolean;
|
|
225
|
+
locals(node: Node): readonly any[];
|
|
226
|
+
static from(members: readonly DecorationSource[]): DecorationSource;
|
|
227
|
+
}
|
|
218
228
|
|
|
219
229
|
declare global {
|
|
220
230
|
interface Node {
|
package/dist/index.d.ts
CHANGED
|
@@ -210,11 +210,21 @@ declare class DecorationSet implements DecorationSource {
|
|
|
210
210
|
*/
|
|
211
211
|
remove(decorations: Decoration[]): DecorationSet;
|
|
212
212
|
private removeInner;
|
|
213
|
+
forChild(offset: number, node: Node): DecorationSet | DecorationGroup;
|
|
213
214
|
/**
|
|
214
215
|
The empty set of decorations.
|
|
215
216
|
*/
|
|
216
217
|
static empty: DecorationSet;
|
|
217
218
|
}
|
|
219
|
+
declare class DecorationGroup implements DecorationSource {
|
|
220
|
+
readonly members: readonly DecorationSet[];
|
|
221
|
+
constructor(members: readonly DecorationSet[]);
|
|
222
|
+
map(mapping: Mapping, doc: Node): DecorationSource;
|
|
223
|
+
forChild(offset: number, child: Node): DecorationSource | DecorationSet;
|
|
224
|
+
eq(other: DecorationGroup): boolean;
|
|
225
|
+
locals(node: Node): readonly any[];
|
|
226
|
+
static from(members: readonly DecorationSource[]): DecorationSource;
|
|
227
|
+
}
|
|
218
228
|
|
|
219
229
|
declare global {
|
|
220
230
|
interface Node {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/src/decoration.ts
CHANGED
|
@@ -413,7 +413,6 @@ export class DecorationSet implements DecorationSource {
|
|
|
413
413
|
return local.length || children.length ? new DecorationSet(local, children) : empty
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
-
/// @internal
|
|
417
416
|
forChild(offset: number, node: Node): DecorationSet | DecorationGroup {
|
|
418
417
|
if (this == empty) return this
|
|
419
418
|
if (node.isLeaf) return DecorationSet.empty
|