Comparing version 3.0.0-rc.0 to 3.0.0-rc.1
@@ -264,4 +264,4 @@ export declare class Attributor { | ||
descendants<T>(matcher: (blot: Blot) => boolean, index: number, length: number): T[]; | ||
insertBefore(child: Blot, refNode?: Blot): void; | ||
moveChildren(parent: Parent, refNode?: Blot): void; | ||
insertBefore(child: Blot, refNode?: Blot | null): void; | ||
moveChildren(parent: Parent, refNode?: Blot | null): void; | ||
path(index: number, inclusive?: boolean): [Blot, number][]; | ||
@@ -304,3 +304,3 @@ removeChild(child: Blot): void; | ||
length(): number; | ||
moveChildren(targetParent: Parent, refNode?: Blot): void; | ||
moveChildren(targetParent: Parent, refNode?: Blot | null): void; | ||
optimize(context?: { | ||
@@ -307,0 +307,0 @@ [key: string]: any; |
{ | ||
"name": "parchment", | ||
"version": "3.0.0-rc.0", | ||
"version": "3.0.0-rc.1", | ||
"description": "A document model for rich text editors", | ||
@@ -5,0 +5,0 @@ "author": "Jason Chen <jhchen7@gmail.com>", |
@@ -151,3 +151,3 @@ # Parchment [![Build Status](https://github.com/quilljs/parchment/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/quilljs/parchment/actions?query=branch%3Amain) | ||
Quill also provides many great example implementations in its [source code](https://github.com/quilljs/quill/tree/develop/formats). | ||
Quill also provides many great example implementations in its [source code](https://github.com/quilljs/quill/tree/develop/packages/quill/src/formats). | ||
@@ -154,0 +154,0 @@ ### Block Blot |
@@ -99,4 +99,4 @@ import type LinkedList from '../../collection/linked-list.js'; | ||
): T[]; | ||
insertBefore(child: Blot, refNode?: Blot): void; | ||
moveChildren(parent: Parent, refNode?: Blot): void; | ||
insertBefore(child: Blot, refNode?: Blot | null): void; | ||
moveChildren(parent: Parent, refNode?: Blot | null): void; | ||
path(index: number, inclusive?: boolean): [Blot, number][]; | ||
@@ -103,0 +103,0 @@ removeChild(child: Blot): void; |
@@ -246,3 +246,3 @@ import LinkedList from '../../collection/linked-list.js'; | ||
public moveChildren(targetParent: Parent, refNode?: Blot): void { | ||
public moveChildren(targetParent: Parent, refNode?: Blot | null): void { | ||
this.children.forEach((child) => { | ||
@@ -249,0 +249,0 @@ targetParent.insertBefore(child, refNode); |
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
315999