slate 0.134.0 → 0.134.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/dist/index.es.js +16 -5
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +14 -7
- package/dist/index.js.map +1 -1
- package/dist/slate.js +14 -7
- package/dist/slate.min.js +1 -1
- package/dist/utils/modify.d.ts +4 -3
- package/dist/utils/modify.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/utils/modify.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Ancestor, Descendant, Path, Text } from '../interfaces';
|
|
2
|
-
export declare const insertChildren: <T>(
|
|
3
|
-
export declare const replaceChildren: <T>(
|
|
4
|
-
export declare const
|
|
2
|
+
export declare const insertChildren: <T>(children: T[], index: number, ...newValues: T[]) => T[];
|
|
3
|
+
export declare const replaceChildren: <T>(children: T[], index: number, removeCount: number, ...newValues: T[]) => T[];
|
|
4
|
+
export declare const replaceChild: <T>(children: T[], index: number, newValue: T) => T[];
|
|
5
|
+
export declare const removeChildren: <T>(children: T[], index: number, removeCount: number, ...newValues: T[]) => T[];
|
|
5
6
|
/**
|
|
6
7
|
* Replace a descendant with a new node, replacing all ancestors
|
|
7
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modify.d.ts","sourceRoot":"","sources":["../../../../packages/slate/src/utils/modify.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,UAAU,EAGV,IAAI,EAEJ,IAAI,EACL,MAAM,eAAe,CAAA;AAEtB,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"modify.d.ts","sourceRoot":"","sources":["../../../../packages/slate/src/utils/modify.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,UAAU,EAGV,IAAI,EAEJ,IAAI,EACL,MAAM,eAAe,CAAA;AAEtB,eAAO,MAAM,cAAc,4BAElB,MAAM,2BAId,CAAA;AAED,eAAO,MAAM,eAAe,4BAEnB,MAAM,eACA,MAAM,2BAMpB,CAAA;AAED,eAAO,MAAM,YAAY,4BAA6B,MAAM,qBAI3D,CAAA;AAED,eAAO,MAAM,cAAc,4BAflB,MAAM,eACA,MAAM,2BAcwB,CAAA;AAE7C;;GAEG;AACH,eAAO,MAAM,gBAAgB,+BACrB,QAAQ,wCAwBf,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,SACnB,QAAQ,4BAEA,UAAU,EAAE,KAAK,UAAU,EAAE,SAiB5C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,SACf,QAAQ,wBAEJ,IAAI,KAAK,IAAI,SAYrB,CAAA"}
|
package/package.json
CHANGED