slate 0.94.1 → 0.100.0
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/core/apply.d.ts +3 -3
- package/dist/core/apply.d.ts.map +1 -1
- package/dist/core/get-dirty-paths.d.ts +6 -6
- package/dist/core/get-dirty-paths.d.ts.map +1 -1
- package/dist/core/get-fragment.d.ts +3 -3
- package/dist/core/get-fragment.d.ts.map +1 -1
- package/dist/core/index.d.ts +5 -5
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/normalize-node.d.ts +3 -3
- package/dist/core/normalize-node.d.ts.map +1 -1
- package/dist/core/should-normalize.d.ts +3 -3
- package/dist/core/should-normalize.d.ts.map +1 -1
- package/dist/create-editor.d.ts +5 -5
- package/dist/create-editor.d.ts.map +1 -1
- package/dist/editor/above.d.ts +2 -2
- package/dist/editor/above.d.ts.map +1 -1
- package/dist/editor/add-mark.d.ts +2 -2
- package/dist/editor/add-mark.d.ts.map +1 -1
- package/dist/editor/after.d.ts +2 -2
- package/dist/editor/after.d.ts.map +1 -1
- package/dist/editor/before.d.ts +2 -2
- package/dist/editor/before.d.ts.map +1 -1
- package/dist/editor/delete-backward.d.ts +3 -3
- package/dist/editor/delete-backward.d.ts.map +1 -1
- package/dist/editor/delete-forward.d.ts +3 -3
- package/dist/editor/delete-forward.d.ts.map +1 -1
- package/dist/editor/delete-fragment.d.ts +2 -2
- package/dist/editor/delete-fragment.d.ts.map +1 -1
- package/dist/editor/edges.d.ts +2 -2
- package/dist/editor/edges.d.ts.map +1 -1
- package/dist/editor/element-read-only.d.ts +2 -2
- package/dist/editor/element-read-only.d.ts.map +1 -1
- package/dist/editor/end.d.ts +2 -2
- package/dist/editor/end.d.ts.map +1 -1
- package/dist/editor/first.d.ts +2 -2
- package/dist/editor/first.d.ts.map +1 -1
- package/dist/editor/fragment.d.ts +2 -2
- package/dist/editor/fragment.d.ts.map +1 -1
- package/dist/editor/get-void.d.ts +2 -2
- package/dist/editor/get-void.d.ts.map +1 -1
- package/dist/editor/has-blocks.d.ts +2 -2
- package/dist/editor/has-blocks.d.ts.map +1 -1
- package/dist/editor/has-inlines.d.ts +2 -2
- package/dist/editor/has-inlines.d.ts.map +1 -1
- package/dist/editor/has-path.d.ts +2 -2
- package/dist/editor/has-path.d.ts.map +1 -1
- package/dist/editor/has-texts.d.ts +2 -2
- package/dist/editor/has-texts.d.ts.map +1 -1
- package/dist/editor/index.d.ts +54 -54
- package/dist/editor/index.d.ts.map +1 -1
- package/dist/editor/insert-break.d.ts +2 -2
- package/dist/editor/insert-break.d.ts.map +1 -1
- package/dist/editor/insert-node.d.ts +2 -2
- package/dist/editor/insert-node.d.ts.map +1 -1
- package/dist/editor/insert-soft-break.d.ts +2 -2
- package/dist/editor/insert-soft-break.d.ts.map +1 -1
- package/dist/editor/insert-text.d.ts +2 -2
- package/dist/editor/insert-text.d.ts.map +1 -1
- package/dist/editor/is-block.d.ts +2 -2
- package/dist/editor/is-block.d.ts.map +1 -1
- package/dist/editor/is-edge.d.ts +2 -2
- package/dist/editor/is-edge.d.ts.map +1 -1
- package/dist/editor/is-editor.d.ts +2 -2
- package/dist/editor/is-editor.d.ts.map +1 -1
- package/dist/editor/is-empty.d.ts +2 -2
- package/dist/editor/is-empty.d.ts.map +1 -1
- package/dist/editor/is-end.d.ts +2 -2
- package/dist/editor/is-end.d.ts.map +1 -1
- package/dist/editor/is-normalizing.d.ts +2 -2
- package/dist/editor/is-normalizing.d.ts.map +1 -1
- package/dist/editor/is-start.d.ts +2 -2
- package/dist/editor/is-start.d.ts.map +1 -1
- package/dist/editor/last.d.ts +2 -2
- package/dist/editor/last.d.ts.map +1 -1
- package/dist/editor/leaf.d.ts +2 -2
- package/dist/editor/leaf.d.ts.map +1 -1
- package/dist/editor/levels.d.ts +3 -3
- package/dist/editor/levels.d.ts.map +1 -1
- package/dist/editor/marks.d.ts +2 -2
- package/dist/editor/marks.d.ts.map +1 -1
- package/dist/editor/next.d.ts +2 -2
- package/dist/editor/next.d.ts.map +1 -1
- package/dist/editor/node.d.ts +2 -2
- package/dist/editor/node.d.ts.map +1 -1
- package/dist/editor/nodes.d.ts +3 -3
- package/dist/editor/nodes.d.ts.map +1 -1
- package/dist/editor/normalize.d.ts +2 -2
- package/dist/editor/normalize.d.ts.map +1 -1
- package/dist/editor/parent.d.ts +2 -2
- package/dist/editor/parent.d.ts.map +1 -1
- package/dist/editor/path-ref.d.ts +2 -2
- package/dist/editor/path-ref.d.ts.map +1 -1
- package/dist/editor/path-refs.d.ts +2 -2
- package/dist/editor/path-refs.d.ts.map +1 -1
- package/dist/editor/path.d.ts +2 -2
- package/dist/editor/path.d.ts.map +1 -1
- package/dist/editor/point-ref.d.ts +2 -2
- package/dist/editor/point-ref.d.ts.map +1 -1
- package/dist/editor/point-refs.d.ts +2 -2
- package/dist/editor/point-refs.d.ts.map +1 -1
- package/dist/editor/point.d.ts +2 -2
- package/dist/editor/point.d.ts.map +1 -1
- package/dist/editor/positions.d.ts +3 -3
- package/dist/editor/positions.d.ts.map +1 -1
- package/dist/editor/previous.d.ts +2 -2
- package/dist/editor/previous.d.ts.map +1 -1
- package/dist/editor/range-ref.d.ts +2 -2
- package/dist/editor/range-ref.d.ts.map +1 -1
- package/dist/editor/range-refs.d.ts +2 -2
- package/dist/editor/range-refs.d.ts.map +1 -1
- package/dist/editor/range.d.ts +2 -2
- package/dist/editor/range.d.ts.map +1 -1
- package/dist/editor/remove-mark.d.ts +2 -2
- package/dist/editor/remove-mark.d.ts.map +1 -1
- package/dist/editor/set-normalizing.d.ts +2 -2
- package/dist/editor/set-normalizing.d.ts.map +1 -1
- package/dist/editor/start.d.ts +2 -2
- package/dist/editor/start.d.ts.map +1 -1
- package/dist/editor/string.d.ts +2 -2
- package/dist/editor/string.d.ts.map +1 -1
- package/dist/editor/unhang-range.d.ts +2 -2
- package/dist/editor/unhang-range.d.ts.map +1 -1
- package/dist/editor/without-normalizing.d.ts +2 -2
- package/dist/editor/without-normalizing.d.ts.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +641 -1551
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1227 -2191
- package/dist/index.js.map +1 -1
- package/dist/interfaces/editor.d.ts +497 -497
- package/dist/interfaces/editor.d.ts.map +1 -1
- package/dist/interfaces/element.d.ts +46 -46
- package/dist/interfaces/element.d.ts.map +1 -1
- package/dist/interfaces/index.d.ts +14 -14
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/interfaces/location.d.ts +29 -29
- package/dist/interfaces/location.d.ts.map +1 -1
- package/dist/interfaces/node.d.ts +173 -173
- package/dist/interfaces/node.d.ts.map +1 -1
- package/dist/interfaces/operation.d.ts +107 -107
- package/dist/interfaces/operation.d.ts.map +1 -1
- package/dist/interfaces/path-ref.d.ts +18 -18
- package/dist/interfaces/path-ref.d.ts.map +1 -1
- package/dist/interfaces/path.d.ts +132 -132
- package/dist/interfaces/path.d.ts.map +1 -1
- package/dist/interfaces/point-ref.d.ts +19 -19
- package/dist/interfaces/point-ref.d.ts.map +1 -1
- package/dist/interfaces/point.d.ts +49 -49
- package/dist/interfaces/point.d.ts.map +1 -1
- package/dist/interfaces/range-ref.d.ts +18 -18
- package/dist/interfaces/range-ref.d.ts.map +1 -1
- package/dist/interfaces/range.d.ts +80 -80
- package/dist/interfaces/range.d.ts.map +1 -1
- package/dist/interfaces/scrubber.d.ts +21 -21
- package/dist/interfaces/scrubber.d.ts.map +1 -1
- package/dist/interfaces/text.d.ts +47 -47
- package/dist/interfaces/text.d.ts.map +1 -1
- package/dist/interfaces/transforms/general.d.ts +8 -8
- package/dist/interfaces/transforms/general.d.ts.map +1 -1
- package/dist/interfaces/transforms/index.d.ts +5 -5
- package/dist/interfaces/transforms/index.d.ts.map +1 -1
- package/dist/interfaces/transforms/node.d.ts +117 -117
- package/dist/interfaces/transforms/node.d.ts.map +1 -1
- package/dist/interfaces/transforms/selection.d.ts +41 -41
- package/dist/interfaces/transforms/selection.d.ts.map +1 -1
- package/dist/interfaces/transforms/text.d.ts +36 -36
- package/dist/interfaces/transforms/text.d.ts.map +1 -1
- package/dist/slate.js +2152 -3123
- package/dist/slate.min.js +2 -2
- package/dist/transforms-node/index.d.ts +10 -10
- package/dist/transforms-node/index.d.ts.map +1 -1
- package/dist/transforms-node/insert-nodes.d.ts +2 -2
- package/dist/transforms-node/insert-nodes.d.ts.map +1 -1
- package/dist/transforms-node/lift-nodes.d.ts +2 -2
- package/dist/transforms-node/lift-nodes.d.ts.map +1 -1
- package/dist/transforms-node/merge-nodes.d.ts +2 -2
- package/dist/transforms-node/merge-nodes.d.ts.map +1 -1
- package/dist/transforms-node/move-nodes.d.ts +2 -2
- package/dist/transforms-node/move-nodes.d.ts.map +1 -1
- package/dist/transforms-node/remove-nodes.d.ts +2 -2
- package/dist/transforms-node/remove-nodes.d.ts.map +1 -1
- package/dist/transforms-node/set-nodes.d.ts +2 -2
- package/dist/transforms-node/set-nodes.d.ts.map +1 -1
- package/dist/transforms-node/split-nodes.d.ts +2 -2
- package/dist/transforms-node/split-nodes.d.ts.map +1 -1
- package/dist/transforms-node/unset-nodes.d.ts +2 -2
- package/dist/transforms-node/unset-nodes.d.ts.map +1 -1
- package/dist/transforms-node/unwrap-nodes.d.ts +2 -2
- package/dist/transforms-node/unwrap-nodes.d.ts.map +1 -1
- package/dist/transforms-node/wrap-nodes.d.ts +2 -2
- package/dist/transforms-node/wrap-nodes.d.ts.map +1 -1
- package/dist/transforms-selection/collapse.d.ts +2 -2
- package/dist/transforms-selection/collapse.d.ts.map +1 -1
- package/dist/transforms-selection/deselect.d.ts +2 -2
- package/dist/transforms-selection/deselect.d.ts.map +1 -1
- package/dist/transforms-selection/index.d.ts +6 -6
- package/dist/transforms-selection/index.d.ts.map +1 -1
- package/dist/transforms-selection/move.d.ts +2 -2
- package/dist/transforms-selection/move.d.ts.map +1 -1
- package/dist/transforms-selection/select.d.ts +2 -2
- package/dist/transforms-selection/select.d.ts.map +1 -1
- package/dist/transforms-selection/set-point.d.ts +2 -2
- package/dist/transforms-selection/set-point.d.ts.map +1 -1
- package/dist/transforms-selection/set-selection.d.ts +2 -2
- package/dist/transforms-selection/set-selection.d.ts.map +1 -1
- package/dist/transforms-text/delete-text.d.ts +2 -2
- package/dist/transforms-text/delete-text.d.ts.map +1 -1
- package/dist/transforms-text/index.d.ts +2 -2
- package/dist/transforms-text/index.d.ts.map +1 -1
- package/dist/transforms-text/insert-fragment.d.ts +2 -2
- package/dist/transforms-text/insert-fragment.d.ts.map +1 -1
- package/dist/types/custom-types.d.ts +9 -9
- package/dist/types/custom-types.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types.d.ts +10 -10
- package/dist/types/types.d.ts.map +1 -1
- package/dist/utils/deep-equal.d.ts +1 -1
- package/dist/utils/deep-equal.d.ts.map +1 -1
- package/dist/utils/get-default-insert-location.d.ts +8 -8
- package/dist/utils/get-default-insert-location.d.ts.map +1 -1
- package/dist/utils/index.d.ts +6 -6
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/match-path.d.ts +4 -4
- package/dist/utils/match-path.d.ts.map +1 -1
- package/dist/utils/string.d.ts +17 -17
- package/dist/utils/string.d.ts.map +1 -1
- package/dist/utils/types.d.ts +4 -4
- package/dist/utils/types.d.ts.map +1 -1
- package/dist/utils/weak-maps.d.ts +8 -8
- package/dist/utils/weak-maps.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { ExtendedType, Operation, Path } from '..';
|
|
2
|
-
import { TextDirection } from '../types/types';
|
|
3
|
-
/**
|
|
4
|
-
* `Point` objects refer to a specific location in a text node in a Slate
|
|
5
|
-
* document. Its path refers to the location of the node in the tree, and its
|
|
6
|
-
* offset refers to the distance into the node's string of text. Points can
|
|
7
|
-
* only refer to `Text` nodes.
|
|
8
|
-
*/
|
|
9
|
-
export interface BasePoint {
|
|
10
|
-
path: Path;
|
|
11
|
-
offset: number;
|
|
12
|
-
}
|
|
13
|
-
export
|
|
14
|
-
export interface PointTransformOptions {
|
|
15
|
-
affinity?: TextDirection | null;
|
|
16
|
-
}
|
|
17
|
-
export interface PointInterface {
|
|
18
|
-
/**
|
|
19
|
-
* Compare a point to another, returning an integer indicating whether the
|
|
20
|
-
* point was before, at, or after the other.
|
|
21
|
-
*/
|
|
22
|
-
compare: (point: Point, another: Point) => -1 | 0 | 1;
|
|
23
|
-
/**
|
|
24
|
-
* Check if a point is after another.
|
|
25
|
-
*/
|
|
26
|
-
isAfter: (point: Point, another: Point) => boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Check if a point is before another.
|
|
29
|
-
*/
|
|
30
|
-
isBefore: (point: Point, another: Point) => boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Check if a point is exactly equal to another.
|
|
33
|
-
*/
|
|
34
|
-
equals: (point: Point, another: Point) => boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Check if a value implements the `Point` interface.
|
|
37
|
-
*/
|
|
38
|
-
isPoint: (value: any) => value is Point;
|
|
39
|
-
/**
|
|
40
|
-
* Transform a point by an operation.
|
|
41
|
-
*/
|
|
42
|
-
transform: (point: Point, op: Operation, options?: PointTransformOptions) => Point | null;
|
|
43
|
-
}
|
|
44
|
-
export declare const Point: PointInterface;
|
|
45
|
-
/**
|
|
46
|
-
* `PointEntry` objects are returned when iterating over `Point` objects that
|
|
47
|
-
* belong to a range.
|
|
48
|
-
*/
|
|
49
|
-
export
|
|
1
|
+
import { ExtendedType, Operation, Path } from '..';
|
|
2
|
+
import { TextDirection } from '../types/types';
|
|
3
|
+
/**
|
|
4
|
+
* `Point` objects refer to a specific location in a text node in a Slate
|
|
5
|
+
* document. Its path refers to the location of the node in the tree, and its
|
|
6
|
+
* offset refers to the distance into the node's string of text. Points can
|
|
7
|
+
* only refer to `Text` nodes.
|
|
8
|
+
*/
|
|
9
|
+
export interface BasePoint {
|
|
10
|
+
path: Path;
|
|
11
|
+
offset: number;
|
|
12
|
+
}
|
|
13
|
+
export type Point = ExtendedType<'Point', BasePoint>;
|
|
14
|
+
export interface PointTransformOptions {
|
|
15
|
+
affinity?: TextDirection | null;
|
|
16
|
+
}
|
|
17
|
+
export interface PointInterface {
|
|
18
|
+
/**
|
|
19
|
+
* Compare a point to another, returning an integer indicating whether the
|
|
20
|
+
* point was before, at, or after the other.
|
|
21
|
+
*/
|
|
22
|
+
compare: (point: Point, another: Point) => -1 | 0 | 1;
|
|
23
|
+
/**
|
|
24
|
+
* Check if a point is after another.
|
|
25
|
+
*/
|
|
26
|
+
isAfter: (point: Point, another: Point) => boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Check if a point is before another.
|
|
29
|
+
*/
|
|
30
|
+
isBefore: (point: Point, another: Point) => boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Check if a point is exactly equal to another.
|
|
33
|
+
*/
|
|
34
|
+
equals: (point: Point, another: Point) => boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Check if a value implements the `Point` interface.
|
|
37
|
+
*/
|
|
38
|
+
isPoint: (value: any) => value is Point;
|
|
39
|
+
/**
|
|
40
|
+
* Transform a point by an operation.
|
|
41
|
+
*/
|
|
42
|
+
transform: (point: Point, op: Operation, options?: PointTransformOptions) => Point | null;
|
|
43
|
+
}
|
|
44
|
+
export declare const Point: PointInterface;
|
|
45
|
+
/**
|
|
46
|
+
* `PointEntry` objects are returned when iterating over `Point` objects that
|
|
47
|
+
* belong to a range.
|
|
48
|
+
*/
|
|
49
|
+
export type PointEntry = [Point, 'anchor' | 'focus'];
|
|
50
50
|
//# sourceMappingURL=point.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../../packages/slate/src/interfaces/point.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,IAAI,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAE9C;;;;;GAKG;AAEH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;AAEpD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAErD;;OAEG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,OAAO,CAAA;IAElD;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,OAAO,CAAA;IAEnD;;OAEG;IACH,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,OAAO,CAAA;IAEjD;;OAEG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,KAAK,CAAA;IAEvC;;OAEG;IACH,SAAS,EAAE,CACT,KAAK,EAAE,KAAK,EACZ,EAAE,EAAE,SAAS,EACb,OAAO,CAAC,EAAE,qBAAqB,KAC5B,KAAK,GAAG,IAAI,CAAA;CAClB;AAGD,eAAO,MAAM,KAAK,EAAE,cAqHnB,CAAA;AAED;;;GAGG;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAA"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { Operation, Range } from '..';
|
|
2
|
-
/**
|
|
3
|
-
* `RangeRef` objects keep a specific range in a document synced over time as new
|
|
4
|
-
* operations are applied to the editor. You can access their `current` property
|
|
5
|
-
* at any time for the up-to-date range value.
|
|
6
|
-
*/
|
|
7
|
-
export interface RangeRef {
|
|
8
|
-
current: Range | null;
|
|
9
|
-
affinity: 'forward' | 'backward' | 'outward' | 'inward' | null;
|
|
10
|
-
unref(): Range | null;
|
|
11
|
-
}
|
|
12
|
-
export interface RangeRefInterface {
|
|
13
|
-
/**
|
|
14
|
-
* Transform the range ref's current value by an operation.
|
|
15
|
-
*/
|
|
16
|
-
transform: (ref: RangeRef, op: Operation) => void;
|
|
17
|
-
}
|
|
18
|
-
export declare const RangeRef: RangeRefInterface;
|
|
1
|
+
import { Operation, Range } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* `RangeRef` objects keep a specific range in a document synced over time as new
|
|
4
|
+
* operations are applied to the editor. You can access their `current` property
|
|
5
|
+
* at any time for the up-to-date range value.
|
|
6
|
+
*/
|
|
7
|
+
export interface RangeRef {
|
|
8
|
+
current: Range | null;
|
|
9
|
+
affinity: 'forward' | 'backward' | 'outward' | 'inward' | null;
|
|
10
|
+
unref(): Range | null;
|
|
11
|
+
}
|
|
12
|
+
export interface RangeRefInterface {
|
|
13
|
+
/**
|
|
14
|
+
* Transform the range ref's current value by an operation.
|
|
15
|
+
*/
|
|
16
|
+
transform: (ref: RangeRef, op: Operation) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const RangeRef: RangeRefInterface;
|
|
19
19
|
//# sourceMappingURL=range-ref.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range-ref.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"range-ref.d.ts","sourceRoot":"","sources":["../../../../packages/slate/src/interfaces/range-ref.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,IAAI,CAAA;AAErC;;;;GAIG;AAEH,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,KAAK,GAAG,IAAI,CAAA;IACrB,QAAQ,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,IAAI,CAAA;IAC9D,KAAK,IAAI,KAAK,GAAG,IAAI,CAAA;CACtB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,KAAK,IAAI,CAAA;CAClD;AAGD,eAAO,MAAM,QAAQ,EAAE,iBAetB,CAAA"}
|
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { ExtendedType, Operation, Path, Point, PointEntry } from '..';
|
|
2
|
-
import { RangeDirection } from '../types/types';
|
|
3
|
-
/**
|
|
4
|
-
* `Range` objects are a set of points that refer to a specific span of a Slate
|
|
5
|
-
* document. They can define a span inside a single node or a can span across
|
|
6
|
-
* multiple nodes.
|
|
7
|
-
*/
|
|
8
|
-
export interface BaseRange {
|
|
9
|
-
anchor: Point;
|
|
10
|
-
focus: Point;
|
|
11
|
-
}
|
|
12
|
-
export
|
|
13
|
-
export interface RangeEdgesOptions {
|
|
14
|
-
reverse?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface RangeTransformOptions {
|
|
17
|
-
affinity?: RangeDirection | null;
|
|
18
|
-
}
|
|
19
|
-
export interface RangeInterface {
|
|
20
|
-
/**
|
|
21
|
-
* Get the start and end points of a range, in the order in which they appear
|
|
22
|
-
* in the document.
|
|
23
|
-
*/
|
|
24
|
-
edges: (range: Range, options?: RangeEdgesOptions) => [Point, Point];
|
|
25
|
-
/**
|
|
26
|
-
* Get the end point of a range.
|
|
27
|
-
*/
|
|
28
|
-
end: (range: Range) => Point;
|
|
29
|
-
/**
|
|
30
|
-
* Check if a range is exactly equal to another.
|
|
31
|
-
*/
|
|
32
|
-
equals: (range: Range, another: Range) => boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Check if a range includes a path, a point or part of another range.
|
|
35
|
-
*/
|
|
36
|
-
includes: (range: Range, target: Path | Point | Range) => boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Get the intersection of a range with another.
|
|
39
|
-
*/
|
|
40
|
-
intersection: (range: Range, another: Range) => Range | null;
|
|
41
|
-
/**
|
|
42
|
-
* Check if a range is backward, meaning that its anchor point appears in the
|
|
43
|
-
* document _after_ its focus point.
|
|
44
|
-
*/
|
|
45
|
-
isBackward: (range: Range) => boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Check if a range is collapsed, meaning that both its anchor and focus
|
|
48
|
-
* points refer to the exact same position in the document.
|
|
49
|
-
*/
|
|
50
|
-
isCollapsed: (range: Range) => boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Check if a range is expanded.
|
|
53
|
-
*
|
|
54
|
-
* This is the opposite of [[Range.isCollapsed]] and is provided for legibility.
|
|
55
|
-
*/
|
|
56
|
-
isExpanded: (range: Range) => boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Check if a range is forward.
|
|
59
|
-
*
|
|
60
|
-
* This is the opposite of [[Range.isBackward]] and is provided for legibility.
|
|
61
|
-
*/
|
|
62
|
-
isForward: (range: Range) => boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Check if a value implements the [[Range]] interface.
|
|
65
|
-
*/
|
|
66
|
-
isRange: (value: any) => value is Range;
|
|
67
|
-
/**
|
|
68
|
-
* Iterate through all of the point entries in a range.
|
|
69
|
-
*/
|
|
70
|
-
points: (range: Range) => Generator<PointEntry, void, undefined>;
|
|
71
|
-
/**
|
|
72
|
-
* Get the start point of a range.
|
|
73
|
-
*/
|
|
74
|
-
start: (range: Range) => Point;
|
|
75
|
-
/**
|
|
76
|
-
* Transform a range by an operation.
|
|
77
|
-
*/
|
|
78
|
-
transform: (range: Range, op: Operation, options?: RangeTransformOptions) => Range | null;
|
|
79
|
-
}
|
|
80
|
-
export declare const Range: RangeInterface;
|
|
1
|
+
import { ExtendedType, Operation, Path, Point, PointEntry } from '..';
|
|
2
|
+
import { RangeDirection } from '../types/types';
|
|
3
|
+
/**
|
|
4
|
+
* `Range` objects are a set of points that refer to a specific span of a Slate
|
|
5
|
+
* document. They can define a span inside a single node or a can span across
|
|
6
|
+
* multiple nodes.
|
|
7
|
+
*/
|
|
8
|
+
export interface BaseRange {
|
|
9
|
+
anchor: Point;
|
|
10
|
+
focus: Point;
|
|
11
|
+
}
|
|
12
|
+
export type Range = ExtendedType<'Range', BaseRange>;
|
|
13
|
+
export interface RangeEdgesOptions {
|
|
14
|
+
reverse?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface RangeTransformOptions {
|
|
17
|
+
affinity?: RangeDirection | null;
|
|
18
|
+
}
|
|
19
|
+
export interface RangeInterface {
|
|
20
|
+
/**
|
|
21
|
+
* Get the start and end points of a range, in the order in which they appear
|
|
22
|
+
* in the document.
|
|
23
|
+
*/
|
|
24
|
+
edges: (range: Range, options?: RangeEdgesOptions) => [Point, Point];
|
|
25
|
+
/**
|
|
26
|
+
* Get the end point of a range.
|
|
27
|
+
*/
|
|
28
|
+
end: (range: Range) => Point;
|
|
29
|
+
/**
|
|
30
|
+
* Check if a range is exactly equal to another.
|
|
31
|
+
*/
|
|
32
|
+
equals: (range: Range, another: Range) => boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Check if a range includes a path, a point or part of another range.
|
|
35
|
+
*/
|
|
36
|
+
includes: (range: Range, target: Path | Point | Range) => boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Get the intersection of a range with another.
|
|
39
|
+
*/
|
|
40
|
+
intersection: (range: Range, another: Range) => Range | null;
|
|
41
|
+
/**
|
|
42
|
+
* Check if a range is backward, meaning that its anchor point appears in the
|
|
43
|
+
* document _after_ its focus point.
|
|
44
|
+
*/
|
|
45
|
+
isBackward: (range: Range) => boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Check if a range is collapsed, meaning that both its anchor and focus
|
|
48
|
+
* points refer to the exact same position in the document.
|
|
49
|
+
*/
|
|
50
|
+
isCollapsed: (range: Range) => boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Check if a range is expanded.
|
|
53
|
+
*
|
|
54
|
+
* This is the opposite of [[Range.isCollapsed]] and is provided for legibility.
|
|
55
|
+
*/
|
|
56
|
+
isExpanded: (range: Range) => boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Check if a range is forward.
|
|
59
|
+
*
|
|
60
|
+
* This is the opposite of [[Range.isBackward]] and is provided for legibility.
|
|
61
|
+
*/
|
|
62
|
+
isForward: (range: Range) => boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Check if a value implements the [[Range]] interface.
|
|
65
|
+
*/
|
|
66
|
+
isRange: (value: any) => value is Range;
|
|
67
|
+
/**
|
|
68
|
+
* Iterate through all of the point entries in a range.
|
|
69
|
+
*/
|
|
70
|
+
points: (range: Range) => Generator<PointEntry, void, undefined>;
|
|
71
|
+
/**
|
|
72
|
+
* Get the start point of a range.
|
|
73
|
+
*/
|
|
74
|
+
start: (range: Range) => Point;
|
|
75
|
+
/**
|
|
76
|
+
* Transform a range by an operation.
|
|
77
|
+
*/
|
|
78
|
+
transform: (range: Range, op: Operation, options?: RangeTransformOptions) => Range | null;
|
|
79
|
+
}
|
|
80
|
+
export declare const Range: RangeInterface;
|
|
81
81
|
//# sourceMappingURL=range.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../../packages/slate/src/interfaces/range.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAE/C;;;;GAIG;AAEH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,KAAK,CAAA;IACb,KAAK,EAAE,KAAK,CAAA;CACb;AAED,MAAM,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;AAEpD,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,iBAAiB,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;IAEpE;;OAEG;IACH,GAAG,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,CAAA;IAE5B;;OAEG;IACH,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,OAAO,CAAA;IAEjD;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,GAAG,KAAK,GAAG,KAAK,KAAK,OAAO,CAAA;IAEjE;;OAEG;IACH,YAAY,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,KAAK,GAAG,IAAI,CAAA;IAE5D;;;OAGG;IACH,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAA;IAErC;;;OAGG;IACH,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAA;IAEtC;;;;OAIG;IACH,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAA;IAErC;;;;OAIG;IACH,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,OAAO,CAAA;IAEpC;;OAEG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,KAAK,CAAA;IAEvC;;OAEG;IACH,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;IAEhE;;OAEG;IACH,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,KAAK,CAAA;IAE9B;;OAEG;IACH,SAAS,EAAE,CACT,KAAK,EAAE,KAAK,EACZ,EAAE,EAAE,SAAS,EACb,OAAO,CAAC,EAAE,qBAAqB,KAC5B,KAAK,GAAG,IAAI,CAAA;CAClB;AAGD,eAAO,MAAM,KAAK,EAAE,cAoJnB,CAAA"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export
|
|
2
|
-
export interface ScrubberInterface {
|
|
3
|
-
setScrubber(scrubber: Scrubber | undefined): void;
|
|
4
|
-
stringify(value: any): string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* This interface implements a stringify() function, which is used by Slate
|
|
8
|
-
* internally when generating exceptions containing end user data. Developers
|
|
9
|
-
* using Slate may call Scrubber.setScrubber() to alter the behavior of this
|
|
10
|
-
* stringify() function.
|
|
11
|
-
*
|
|
12
|
-
* For example, to prevent the cleartext logging of 'text' fields within Nodes:
|
|
13
|
-
*
|
|
14
|
-
* import { Scrubber } from 'slate';
|
|
15
|
-
* Scrubber.setScrubber((key, val) => {
|
|
16
|
-
* if (key === 'text') return '...scrubbed...'
|
|
17
|
-
* return val
|
|
18
|
-
* });
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
export declare const Scrubber: ScrubberInterface;
|
|
1
|
+
export type Scrubber = (key: string, value: unknown) => unknown;
|
|
2
|
+
export interface ScrubberInterface {
|
|
3
|
+
setScrubber(scrubber: Scrubber | undefined): void;
|
|
4
|
+
stringify(value: any): string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* This interface implements a stringify() function, which is used by Slate
|
|
8
|
+
* internally when generating exceptions containing end user data. Developers
|
|
9
|
+
* using Slate may call Scrubber.setScrubber() to alter the behavior of this
|
|
10
|
+
* stringify() function.
|
|
11
|
+
*
|
|
12
|
+
* For example, to prevent the cleartext logging of 'text' fields within Nodes:
|
|
13
|
+
*
|
|
14
|
+
* import { Scrubber } from 'slate';
|
|
15
|
+
* Scrubber.setScrubber((key, val) => {
|
|
16
|
+
* if (key === 'text') return '...scrubbed...'
|
|
17
|
+
* return val
|
|
18
|
+
* });
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare const Scrubber: ScrubberInterface;
|
|
22
22
|
//# sourceMappingURL=scrubber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrubber.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"scrubber.d.ts","sourceRoot":"","sources":["../../../../packages/slate/src/interfaces/scrubber.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,CAAA;AAE/D,MAAM,WAAW,iBAAiB;IAChC,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,CAAA;IACjD,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,MAAM,CAAA;CAC9B;AAID;;;;;;;;;;;;;;GAcG;AAEH,eAAO,MAAM,QAAQ,EAAE,iBAQtB,CAAA"}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { Range } from '..';
|
|
2
|
-
import { ExtendedType } from '../types/custom-types';
|
|
3
|
-
/**
|
|
4
|
-
* `Text` objects represent the nodes that contain the actual text content of a
|
|
5
|
-
* Slate document along with any formatting properties. They are always leaf
|
|
6
|
-
* nodes in the document tree as they cannot contain any children.
|
|
7
|
-
*/
|
|
8
|
-
export interface BaseText {
|
|
9
|
-
text: string;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
12
|
-
export interface TextEqualsOptions {
|
|
13
|
-
loose?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface TextInterface {
|
|
16
|
-
/**
|
|
17
|
-
* Check if two text nodes are equal.
|
|
18
|
-
*
|
|
19
|
-
* When loose is set, the text is not compared. This is
|
|
20
|
-
* used to check whether sibling text nodes can be merged.
|
|
21
|
-
*/
|
|
22
|
-
equals: (text: Text, another: Text, options?: TextEqualsOptions) => boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Check if a value implements the `Text` interface.
|
|
25
|
-
*/
|
|
26
|
-
isText: (value: any) => value is Text;
|
|
27
|
-
/**
|
|
28
|
-
* Check if a value is a list of `Text` objects.
|
|
29
|
-
*/
|
|
30
|
-
isTextList: (value: any) => value is Text[];
|
|
31
|
-
/**
|
|
32
|
-
* Check if some props are a partial of Text.
|
|
33
|
-
*/
|
|
34
|
-
isTextProps: (props: any) => props is Partial<Text>;
|
|
35
|
-
/**
|
|
36
|
-
* Check if an text matches set of properties.
|
|
37
|
-
*
|
|
38
|
-
* Note: this is for matching custom properties, and it does not ensure that
|
|
39
|
-
* the `text` property are two nodes equal.
|
|
40
|
-
*/
|
|
41
|
-
matches: (text: Text, props: Partial<Text>) => boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Get the leaves for a text node given decorations.
|
|
44
|
-
*/
|
|
45
|
-
decorations: (node: Text, decorations: Range[]) => Text[];
|
|
46
|
-
}
|
|
47
|
-
export declare const Text: TextInterface;
|
|
1
|
+
import { Range } from '..';
|
|
2
|
+
import { ExtendedType } from '../types/custom-types';
|
|
3
|
+
/**
|
|
4
|
+
* `Text` objects represent the nodes that contain the actual text content of a
|
|
5
|
+
* Slate document along with any formatting properties. They are always leaf
|
|
6
|
+
* nodes in the document tree as they cannot contain any children.
|
|
7
|
+
*/
|
|
8
|
+
export interface BaseText {
|
|
9
|
+
text: string;
|
|
10
|
+
}
|
|
11
|
+
export type Text = ExtendedType<'Text', BaseText>;
|
|
12
|
+
export interface TextEqualsOptions {
|
|
13
|
+
loose?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface TextInterface {
|
|
16
|
+
/**
|
|
17
|
+
* Check if two text nodes are equal.
|
|
18
|
+
*
|
|
19
|
+
* When loose is set, the text is not compared. This is
|
|
20
|
+
* used to check whether sibling text nodes can be merged.
|
|
21
|
+
*/
|
|
22
|
+
equals: (text: Text, another: Text, options?: TextEqualsOptions) => boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Check if a value implements the `Text` interface.
|
|
25
|
+
*/
|
|
26
|
+
isText: (value: any) => value is Text;
|
|
27
|
+
/**
|
|
28
|
+
* Check if a value is a list of `Text` objects.
|
|
29
|
+
*/
|
|
30
|
+
isTextList: (value: any) => value is Text[];
|
|
31
|
+
/**
|
|
32
|
+
* Check if some props are a partial of Text.
|
|
33
|
+
*/
|
|
34
|
+
isTextProps: (props: any) => props is Partial<Text>;
|
|
35
|
+
/**
|
|
36
|
+
* Check if an text matches set of properties.
|
|
37
|
+
*
|
|
38
|
+
* Note: this is for matching custom properties, and it does not ensure that
|
|
39
|
+
* the `text` property are two nodes equal.
|
|
40
|
+
*/
|
|
41
|
+
matches: (text: Text, props: Partial<Text>) => boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Get the leaves for a text node given decorations.
|
|
44
|
+
*/
|
|
45
|
+
decorations: (node: Text, decorations: Range[]) => Text[];
|
|
46
|
+
}
|
|
47
|
+
export declare const Text: TextInterface;
|
|
48
48
|
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../packages/slate/src/interfaces/text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAA;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGpD;;;;GAIG;AAEH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,MAAM,IAAI,GAAG,YAAY,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;AAEjD,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,iBAAiB,KAAK,OAAO,CAAA;IAE3E;;OAEG;IACH,MAAM,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,IAAI,CAAA;IAErC;;OAEG;IACH,UAAU,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,IAAI,EAAE,CAAA;IAE3C;;OAEG;IACH,WAAW,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAEnD;;;;;OAKG;IACH,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAA;IAEtD;;OAEG;IACH,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,CAAA;CAC1D;AAGD,eAAO,MAAM,IAAI,EAAE,aAqHlB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Editor, Operation } from '../../index';
|
|
2
|
-
export interface GeneralTransforms {
|
|
3
|
-
/**
|
|
4
|
-
* Transform the editor by an operation.
|
|
5
|
-
*/
|
|
6
|
-
transform: (editor: Editor, op: Operation) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const GeneralTransforms: GeneralTransforms;
|
|
1
|
+
import { Editor, Operation } from '../../index';
|
|
2
|
+
export interface GeneralTransforms {
|
|
3
|
+
/**
|
|
4
|
+
* Transform the editor by an operation.
|
|
5
|
+
*/
|
|
6
|
+
transform: (editor: Editor, op: Operation) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const GeneralTransforms: GeneralTransforms;
|
|
9
9
|
//# sourceMappingURL=general.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../../packages/slate/src/interfaces/transforms/general.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,MAAM,EAIN,SAAS,EAOV,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,KAAK,IAAI,CAAA;CACnD;AAySD,eAAO,MAAM,iBAAiB,EAAE,iBAmB/B,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GeneralTransforms } from './general';
|
|
2
|
-
import { NodeTransforms } from './node';
|
|
3
|
-
import { SelectionTransforms } from './selection';
|
|
4
|
-
import { TextTransforms } from './text';
|
|
5
|
-
export declare const Transforms: GeneralTransforms & NodeTransforms & SelectionTransforms & TextTransforms;
|
|
1
|
+
import { GeneralTransforms } from './general';
|
|
2
|
+
import { NodeTransforms } from './node';
|
|
3
|
+
import { SelectionTransforms } from './selection';
|
|
4
|
+
import { TextTransforms } from './text';
|
|
5
|
+
export declare const Transforms: GeneralTransforms & NodeTransforms & SelectionTransforms & TextTransforms;
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/slate/src/interfaces/transforms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AAEvC,eAAO,MAAM,UAAU,EAAE,iBAAiB,GACxC,cAAc,GACd,mBAAmB,GACnB,cAKD,CAAA"}
|