slate-vue3 0.0.39 → 0.0.41
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/README.md +4 -12
- package/dist/dom.js +4 -4
- package/dist/{hotkeys-1OnMQ7H6.js → hotkeys-DpsWjIJe.js} +1 -1
- package/dist/index.js +6 -18
- package/dist/share-tools/index.d.ts +22 -0
- package/dist/slate/core/apply.d.ts +3 -0
- package/dist/slate/core/batch-dirty-paths.d.ts +3 -0
- package/dist/slate/core/get-dirty-paths.d.ts +6 -0
- package/dist/slate/core/get-fragment.d.ts +3 -0
- package/dist/slate/core/index.d.ts +5 -0
- package/dist/slate/core/normalize-node.d.ts +3 -0
- package/dist/slate/core/should-normalize.d.ts +3 -0
- package/dist/slate/core/update-dirty-paths.d.ts +9 -0
- package/dist/slate/create-editor.d.ts +5 -0
- package/dist/slate/editor/above.d.ts +2 -0
- package/dist/slate/editor/add-mark.d.ts +2 -0
- package/dist/slate/editor/after.d.ts +2 -0
- package/dist/slate/editor/before.d.ts +2 -0
- package/dist/slate/editor/delete-backward.d.ts +3 -0
- package/dist/slate/editor/delete-forward.d.ts +3 -0
- package/dist/slate/editor/delete-fragment.d.ts +2 -0
- package/dist/slate/editor/edges.d.ts +2 -0
- package/dist/slate/editor/element-read-only.d.ts +2 -0
- package/dist/slate/editor/end.d.ts +2 -0
- package/dist/slate/editor/first.d.ts +2 -0
- package/dist/slate/editor/fragment.d.ts +2 -0
- package/dist/slate/editor/get-void.d.ts +2 -0
- package/dist/slate/editor/has-blocks.d.ts +2 -0
- package/dist/slate/editor/has-inlines.d.ts +2 -0
- package/dist/slate/editor/has-path.d.ts +2 -0
- package/dist/slate/editor/has-texts.d.ts +2 -0
- package/dist/slate/editor/index.d.ts +55 -0
- package/dist/slate/editor/insert-break.d.ts +2 -0
- package/dist/slate/editor/insert-node.d.ts +2 -0
- package/dist/slate/editor/insert-soft-break.d.ts +2 -0
- package/dist/slate/editor/insert-text.d.ts +2 -0
- package/dist/slate/editor/is-block.d.ts +2 -0
- package/dist/slate/editor/is-edge.d.ts +2 -0
- package/dist/slate/editor/is-editor.d.ts +2 -0
- package/dist/slate/editor/is-empty.d.ts +2 -0
- package/dist/slate/editor/is-end.d.ts +2 -0
- package/dist/slate/editor/is-normalizing.d.ts +2 -0
- package/dist/slate/editor/is-start.d.ts +2 -0
- package/dist/slate/editor/last.d.ts +2 -0
- package/dist/slate/editor/leaf.d.ts +2 -0
- package/dist/slate/editor/levels.d.ts +3 -0
- package/dist/slate/editor/marks.d.ts +2 -0
- package/dist/slate/editor/next.d.ts +2 -0
- package/dist/slate/editor/node.d.ts +2 -0
- package/dist/slate/editor/nodes.d.ts +3 -0
- package/dist/slate/editor/normalize.d.ts +2 -0
- package/dist/slate/editor/parent.d.ts +2 -0
- package/dist/slate/editor/path-ref.d.ts +2 -0
- package/dist/slate/editor/path-refs.d.ts +2 -0
- package/dist/slate/editor/path.d.ts +2 -0
- package/dist/slate/editor/point-ref.d.ts +2 -0
- package/dist/slate/editor/point-refs.d.ts +2 -0
- package/dist/slate/editor/point.d.ts +2 -0
- package/dist/slate/editor/positions.d.ts +3 -0
- package/dist/slate/editor/previous.d.ts +2 -0
- package/dist/slate/editor/range-ref.d.ts +2 -0
- package/dist/slate/editor/range-refs.d.ts +2 -0
- package/dist/slate/editor/range.d.ts +2 -0
- package/dist/slate/editor/remove-mark.d.ts +2 -0
- package/dist/slate/editor/set-normalizing.d.ts +2 -0
- package/dist/slate/editor/should-merge-nodes-remove-prev-node.d.ts +2 -0
- package/dist/slate/editor/start.d.ts +2 -0
- package/dist/slate/editor/string.d.ts +2 -0
- package/dist/slate/editor/unhang-range.d.ts +2 -0
- package/dist/slate/editor/without-normalizing.d.ts +2 -0
- package/dist/slate/index.d.ts +21 -0
- package/dist/slate/interfaces/editor.d.ts +502 -0
- package/dist/slate/interfaces/element.d.ts +46 -0
- package/dist/slate/interfaces/index.d.ts +14 -0
- package/dist/slate/interfaces/location.d.ts +29 -0
- package/dist/slate/interfaces/node.d.ts +177 -0
- package/dist/slate/interfaces/operation.d.ts +107 -0
- package/dist/slate/interfaces/path-ref.d.ts +18 -0
- package/dist/slate/interfaces/path.d.ts +132 -0
- package/dist/slate/interfaces/point-ref.d.ts +19 -0
- package/dist/slate/interfaces/point.d.ts +49 -0
- package/dist/slate/interfaces/range-ref.d.ts +18 -0
- package/dist/slate/interfaces/range.d.ts +84 -0
- package/dist/slate/interfaces/scrubber.d.ts +21 -0
- package/dist/slate/interfaces/text.d.ts +54 -0
- package/dist/slate/interfaces/transforms/general.d.ts +8 -0
- package/dist/slate/interfaces/transforms/index.d.ts +5 -0
- package/dist/slate/interfaces/transforms/node.d.ts +118 -0
- package/dist/slate/interfaces/transforms/selection.d.ts +41 -0
- package/dist/slate/interfaces/transforms/text.d.ts +37 -0
- package/dist/slate/transforms-node/index.d.ts +10 -0
- package/dist/slate/transforms-node/insert-nodes.d.ts +2 -0
- package/dist/slate/transforms-node/lift-nodes.d.ts +2 -0
- package/dist/slate/transforms-node/merge-nodes.d.ts +2 -0
- package/dist/slate/transforms-node/move-nodes.d.ts +2 -0
- package/dist/slate/transforms-node/remove-nodes.d.ts +2 -0
- package/dist/slate/transforms-node/set-nodes.d.ts +2 -0
- package/dist/slate/transforms-node/split-nodes.d.ts +2 -0
- package/dist/slate/transforms-node/unset-nodes.d.ts +2 -0
- package/dist/slate/transforms-node/unwrap-nodes.d.ts +2 -0
- package/dist/slate/transforms-node/wrap-nodes.d.ts +2 -0
- package/dist/slate/transforms-selection/collapse.d.ts +2 -0
- package/dist/slate/transforms-selection/deselect.d.ts +2 -0
- package/dist/slate/transforms-selection/index.d.ts +6 -0
- package/dist/slate/transforms-selection/move.d.ts +2 -0
- package/dist/slate/transforms-selection/select.d.ts +2 -0
- package/dist/slate/transforms-selection/set-point.d.ts +2 -0
- package/dist/slate/transforms-selection/set-selection.d.ts +2 -0
- package/dist/slate/transforms-text/delete-text.d.ts +2 -0
- package/dist/slate/transforms-text/index.d.ts +2 -0
- package/dist/slate/transforms-text/insert-fragment.d.ts +2 -0
- package/dist/slate/types/custom-types.d.ts +9 -0
- package/dist/slate/types/index.d.ts +2 -0
- package/dist/slate/types/types.d.ts +10 -0
- package/dist/slate/utils/deep-equal.d.ts +1 -0
- package/dist/slate/utils/get-default-insert-location.d.ts +8 -0
- package/dist/slate/utils/index.d.ts +6 -0
- package/dist/slate/utils/match-path.d.ts +4 -0
- package/dist/slate/utils/string.d.ts +17 -0
- package/dist/slate/utils/types.d.ts +4 -0
- package/dist/slate/utils/weak-maps.d.ts +9 -0
- package/dist/slate-dom/custom-types.d.ts +35 -0
- package/dist/slate-dom/index.d.ts +11 -0
- package/dist/slate-dom/plugin/dom-editor.d.ts +148 -0
- package/dist/slate-dom/plugin/with-dom.d.ts +11 -0
- package/dist/slate-dom/utils/diff-text.d.ts +16 -0
- package/dist/slate-dom/utils/dom.d.ts +94 -0
- package/dist/slate-dom/utils/environment.d.ts +15 -0
- package/dist/slate-dom/utils/hotkeys.d.ts +29 -0
- package/dist/slate-dom/utils/key.d.ts +11 -0
- package/dist/slate-dom/utils/lines.d.ts +11 -0
- package/dist/slate-dom/utils/range-list.d.ts +22 -0
- package/dist/slate-dom/utils/types.d.ts +1 -0
- package/dist/slate-dom/utils/weak-maps.d.ts +42 -0
- package/dist/slate-history/history-editor.d.ts +67 -0
- package/dist/slate-history/history.d.ts +20 -0
- package/dist/slate-history/index.d.ts +3 -0
- package/dist/slate-history/with-history.d.ts +12 -0
- package/dist/slate-hyperscript/creators.d.ts +50 -0
- package/dist/slate-hyperscript/hyperscript.d.ts +33 -0
- package/dist/slate-hyperscript/index.d.ts +18 -0
- package/dist/slate-hyperscript/tokens.d.ts +44 -0
- package/dist/slate-vue/components/children.d.ts +3 -0
- package/dist/slate-vue/components/editable.d.ts +360 -0
- package/dist/slate-vue/components/element.d.ts +8 -0
- package/dist/slate-vue/components/placeholder.d.ts +10 -0
- package/dist/slate-vue/components/slate.d.ts +25 -0
- package/dist/slate-vue/components/string.d.ts +14 -0
- package/dist/slate-vue/components/text.d.ts +10 -0
- package/dist/slate-vue/components/utils.d.ts +24 -0
- package/dist/slate-vue/hooks/use-android-manager.d.ts +5 -0
- package/dist/slate-vue/hooks/use-composing.d.ts +5 -0
- package/dist/slate-vue/hooks/use-decorate.d.ts +5 -0
- package/dist/slate-vue/hooks/use-editor.d.ts +5 -0
- package/dist/slate-vue/hooks/use-focused.d.ts +5 -0
- package/dist/slate-vue/hooks/use-inherit-ref.d.ts +4 -0
- package/dist/slate-vue/hooks/use-read-only.d.ts +5 -0
- package/dist/slate-vue/hooks/use-render.d.ts +8 -0
- package/dist/slate-vue/hooks/use-selected.d.ts +5 -0
- package/dist/slate-vue/hooks/use-selection.d.ts +7 -0
- package/dist/slate-vue/index.d.ts +12 -0
- package/dist/slate-vue/utils/constants.d.ts +13 -0
- package/dist/slate-vue/utils/interface.d.ts +37 -0
- package/package.json +6 -6
- package/dist/core.d.ts +0 -1821
- package/dist/dom.d.ts +0 -2021
- package/dist/history.d.ts +0 -1742
- package/dist/hyperscript.d.ts +0 -1753
- package/dist/index.d.ts +0 -2258
package/README.md
CHANGED
|
@@ -33,8 +33,11 @@ npm install slate-vue3
|
|
|
33
33
|
## 2. Now, you can use it in vue-sfc :point_right: [**live demo**](https://guan-erjia.github.io/slate-vue3/)
|
|
34
34
|
```vue
|
|
35
35
|
<script setup lang="ts">
|
|
36
|
-
import { withDOM, Slate, Editable, defaultRenderLeaf, defaultRenderPlaceHolder, createEditor, withHistory } from "slate-vue3"
|
|
37
36
|
import { h } from "vue"
|
|
37
|
+
import { Slate, Editable, defaultRenderLeaf, defaultRenderPlaceHolder } from "slate-vue3"
|
|
38
|
+
import { createEditor } from "slate-vue3/core"
|
|
39
|
+
import { withDOM } from "slate-vue3/dom"
|
|
40
|
+
import { withHistory } from "slate-vue3/history"
|
|
38
41
|
|
|
39
42
|
const initialValue = [
|
|
40
43
|
{
|
|
@@ -260,17 +263,6 @@ Vue uses lazy updates, rendering with components generates additional state, whi
|
|
|
260
263
|
3. packages/slate/src/interfaces/range.ts 224:224
|
|
261
264
|
4. packages/slate/src/interfaces/transforms/general.ts 322:333
|
|
262
265
|
|
|
263
|
-
**rewrite implement for WeakMap**
|
|
264
|
-
|
|
265
|
-
1. packages/share-tools/index.ts
|
|
266
|
-
2. packages/slate-dom/src/utils/weak-maps.ts
|
|
267
|
-
|
|
268
|
-
**import types from globalThis in slate-dom**
|
|
269
|
-
|
|
270
|
-
1. packages/slate-dom/src/index.ts
|
|
271
|
-
2. packages/slate-dom/src/plugin/dom-editor.ts
|
|
272
|
-
3. packages/slate-dom/src/utils/dom.ts
|
|
273
|
-
|
|
274
266
|
**other compact**
|
|
275
267
|
|
|
276
268
|
1. packages/slate/src/core/normalize-node.ts
|
package/dist/dom.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as DOMEditor, E as EDITOR_TO_KEY_TO_ELEMENT, a as EDITOR_TO_USER_MARKS, b as EDITOR_TO_USER_SELECTION, N as NODE_TO_KEY, i as isDOMText, g as getPlainText, c as getSlateFragmentAttribute, d as EDITOR_TO_ON_CHANGE, P as PLACEHOLDER_SYMBOL } from "./hotkeys-
|
|
2
|
-
import { C, F, G, J, H, B, I, u, L, v, w, M, x, O, z, y, A, K, Q, R, S, T, e, f, h, j, k, l, m, o, p, q, r, s, t, n } from "./hotkeys-
|
|
3
|
-
import { E as Editor, R as Range,
|
|
1
|
+
import { D as DOMEditor, E as EDITOR_TO_KEY_TO_ELEMENT, a as EDITOR_TO_USER_MARKS, b as EDITOR_TO_USER_SELECTION, N as NODE_TO_KEY, i as isDOMText, g as getPlainText, c as getSlateFragmentAttribute, d as EDITOR_TO_ON_CHANGE, P as PLACEHOLDER_SYMBOL } from "./hotkeys-DpsWjIJe.js";
|
|
2
|
+
import { C, F, G, J, H, B, I, u, L, v, w, M, x, O, z, y, A, K, Q, R, S, T, e, f, h, j, k, l, m, o, p, q, r, s, t, n } from "./hotkeys-DpsWjIJe.js";
|
|
3
|
+
import { E as Editor, R as Range, a as Element, c as Transforms, P as Path, N as Node } from "./batch-dirty-paths-CZqHWmdq.js";
|
|
4
4
|
import "vue";
|
|
5
5
|
const doRectsIntersect = (rect, compareRect) => {
|
|
6
6
|
const middle = (compareRect.top + compareRect.bottom) / 2;
|
|
@@ -48,7 +48,7 @@ const findCurrentLineRange = (editor, parentRange) => {
|
|
|
48
48
|
const withDOM = (editor, clipboardFormatKey = "x-slate-fragment") => {
|
|
49
49
|
const e2 = editor;
|
|
50
50
|
const { apply, onChange, deleteBackward, addMark, removeMark } = e2;
|
|
51
|
-
EDITOR_TO_KEY_TO_ELEMENT.set(e2, new
|
|
51
|
+
EDITOR_TO_KEY_TO_ELEMENT.set(e2, /* @__PURE__ */ new WeakMap());
|
|
52
52
|
e2.addMark = (key, value) => {
|
|
53
53
|
EDITOR_TO_USER_MARKS.delete(e2);
|
|
54
54
|
addMark(key, value);
|
|
@@ -118,7 +118,7 @@ const getSelection = (root) => {
|
|
|
118
118
|
};
|
|
119
119
|
const isTrackedMutation = (editor, mutation, batch) => {
|
|
120
120
|
const { target } = mutation;
|
|
121
|
-
if (isDOMElement(target) && target.matches('[
|
|
121
|
+
if (isDOMElement(target) && target.matches('[contenteditable="false"]')) {
|
|
122
122
|
return false;
|
|
123
123
|
}
|
|
124
124
|
const { document: document2 } = DOMEditor.getWindow(editor);
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, provide, ref, computed, onMounted, onUnmounted, renderSlot, inject, h, watch, renderList, Fragment, useAttrs, reactive } from "vue";
|
|
2
2
|
import { e as isObjectLike, f as baseGetTag, g as Symbol$1, h as isArray, j as defineProperty, M as MapCache, k as isArguments, l as arrayPush, m as getPrototype, n as copyObject, o as getAllKeysIn, p as baseClone, N as Node, S as Scrubber, P as Path, E as Editor, R as Range, T as Text, a as Element, c as Transforms } from "./batch-dirty-paths-CZqHWmdq.js";
|
|
3
|
-
import { D as DOMEditor, d as EDITOR_TO_ON_CHANGE, Q as MARK_PLACEHOLDER_SYMBOL, I as IS_ANDROID, x as IS_IOS, E as EDITOR_TO_KEY_TO_ELEMENT, J as ELEMENT_TO_NODE, R as NODE_TO_ELEMENT, S as NODE_TO_INDEX, T as NODE_TO_PARENT, p as isDOMNode, y as IS_WEBKIT, e as applyStringDiff, q as isDOMSelection, n as normalizeStringDiff, O as IS_READ_ONLY, h as getDefaultView, G as EDITOR_TO_WINDOW, F as EDITOR_TO_ELEMENT, H as HAS_BEFORE_INPUT_SUPPORT, C as CAN_USE_DOM, f as getActiveElement, j as getSelection, M as IS_FOCUSED, b as EDITOR_TO_USER_SELECTION, L as IS_COMPOSING, o as isDOMElement, w as IS_FIREFOX_LEGACY, A as IS_WECHATBROWSER, z as IS_UC_MOBILE, a as EDITOR_TO_USER_MARKS, v as IS_FIREFOX, B as Hotkeys, u as IS_CHROME, r as isPlainTextOnlyPaste } from "./hotkeys-
|
|
3
|
+
import { D as DOMEditor, d as EDITOR_TO_ON_CHANGE, Q as MARK_PLACEHOLDER_SYMBOL, I as IS_ANDROID, x as IS_IOS, E as EDITOR_TO_KEY_TO_ELEMENT, J as ELEMENT_TO_NODE, R as NODE_TO_ELEMENT, S as NODE_TO_INDEX, T as NODE_TO_PARENT, p as isDOMNode, y as IS_WEBKIT, e as applyStringDiff, q as isDOMSelection, n as normalizeStringDiff, O as IS_READ_ONLY, h as getDefaultView, G as EDITOR_TO_WINDOW, F as EDITOR_TO_ELEMENT, H as HAS_BEFORE_INPUT_SUPPORT, C as CAN_USE_DOM, f as getActiveElement, j as getSelection, M as IS_FOCUSED, b as EDITOR_TO_USER_SELECTION, L as IS_COMPOSING, o as isDOMElement, w as IS_FIREFOX_LEGACY, A as IS_WECHATBROWSER, z as IS_UC_MOBILE, a as EDITOR_TO_USER_MARKS, v as IS_FIREFOX, B as Hotkeys, u as IS_CHROME, r as isPlainTextOnlyPaste } from "./hotkeys-DpsWjIJe.js";
|
|
4
4
|
const SLATE_USE_EDITOR = Symbol("SLATE_USE_EDITOR");
|
|
5
5
|
const SLATE_USE_DECORATE = Symbol("SLATE_USE_DECORATE");
|
|
6
6
|
const SLATE_USE_SELECTED = Symbol("SLATE_USE_SELECTED");
|
|
@@ -568,25 +568,13 @@ const ElementComp = defineComponent({
|
|
|
568
568
|
setup(props) {
|
|
569
569
|
const element = props.element;
|
|
570
570
|
const editor = useEditor();
|
|
571
|
-
const
|
|
571
|
+
const selected = computed(() => {
|
|
572
572
|
const path = DOMEditor.findPath(editor, element);
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
while (parent2[1].length) {
|
|
576
|
-
elemList.unshift(parent2);
|
|
577
|
-
parent2 = Editor.parent(editor, parent2[1]);
|
|
578
|
-
}
|
|
579
|
-
let sel = editor.selection;
|
|
580
|
-
for (const item of elemList) {
|
|
581
|
-
if (sel) {
|
|
582
|
-
sel = Range.intersection(Editor.range(editor, item[1]), sel);
|
|
583
|
-
} else {
|
|
584
|
-
break;
|
|
585
|
-
}
|
|
573
|
+
if (!editor.selection) {
|
|
574
|
+
return false;
|
|
586
575
|
}
|
|
587
|
-
return
|
|
576
|
+
return !!Range.intersection(Editor.range(editor, path), editor.selection);
|
|
588
577
|
});
|
|
589
|
-
const selected = computed(() => !!selection.value);
|
|
590
578
|
provide(SLATE_USE_SELECTED, selected);
|
|
591
579
|
const elementRef = ref(null);
|
|
592
580
|
onMounted(() => {
|
|
@@ -1284,7 +1272,7 @@ const Editable = defineComponent({
|
|
|
1284
1272
|
const slateRange = DOMEditor.toSlateRange(editor, domSelection, {
|
|
1285
1273
|
exactMatch: true,
|
|
1286
1274
|
// domSelection is not necessarily a valid Slate range
|
|
1287
|
-
// (e.g. when clicking on
|
|
1275
|
+
// (e.g. when clicking on contenteditable:false element)
|
|
1288
1276
|
suppressThrow: true
|
|
1289
1277
|
});
|
|
1290
1278
|
if (slateRange && Range.equals(slateRange, editor.selection)) {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare function isPlainObject(o: any): boolean;
|
|
2
|
+
export declare class toRawWeakMap<K extends WeakKey, V> extends WeakMap {
|
|
3
|
+
constructor();
|
|
4
|
+
/**
|
|
5
|
+
* Removes the specified element from the toRawWeakMap.
|
|
6
|
+
* @returns true if the element was successfully removed, or false if it was not present.
|
|
7
|
+
*/
|
|
8
|
+
delete(key: K): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* @returns a specified element.
|
|
11
|
+
*/
|
|
12
|
+
get(key: K): any;
|
|
13
|
+
/**
|
|
14
|
+
* @returns a boolean indicating whether an element with the specified key exists or not.
|
|
15
|
+
*/
|
|
16
|
+
has(key: K): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Adds a new element with a specified key and value.
|
|
19
|
+
* @param key Must be an object or symbol.
|
|
20
|
+
*/
|
|
21
|
+
set(key: K, value: V): this;
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Path } from '../interfaces/path';
|
|
2
|
+
import { Editor } from '../interfaces/editor';
|
|
3
|
+
/**
|
|
4
|
+
* update editor dirty paths
|
|
5
|
+
*
|
|
6
|
+
* @param newDirtyPaths: Path[]; new dirty paths
|
|
7
|
+
* @param transform: (p: Path) => Path | null; how to transform existing dirty paths
|
|
8
|
+
*/
|
|
9
|
+
export declare function updateDirtyPaths(editor: Editor, newDirtyPaths: Path[], transform?: (p: Path) => Path | null): void;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export * from './above';
|
|
2
|
+
export * from './add-mark';
|
|
3
|
+
export * from './after';
|
|
4
|
+
export * from './before';
|
|
5
|
+
export * from './delete-backward';
|
|
6
|
+
export * from './delete-forward';
|
|
7
|
+
export * from './delete-fragment';
|
|
8
|
+
export * from './edges';
|
|
9
|
+
export * from './element-read-only';
|
|
10
|
+
export * from './end';
|
|
11
|
+
export * from './first';
|
|
12
|
+
export * from './fragment';
|
|
13
|
+
export * from './get-void';
|
|
14
|
+
export * from './has-blocks';
|
|
15
|
+
export * from './has-inlines';
|
|
16
|
+
export * from './has-path';
|
|
17
|
+
export * from './has-texts';
|
|
18
|
+
export * from './insert-break';
|
|
19
|
+
export * from './insert-node';
|
|
20
|
+
export * from './insert-soft-break';
|
|
21
|
+
export * from './insert-text';
|
|
22
|
+
export * from './is-block';
|
|
23
|
+
export * from './is-edge';
|
|
24
|
+
export * from './is-editor';
|
|
25
|
+
export * from './is-empty';
|
|
26
|
+
export * from './is-end';
|
|
27
|
+
export * from './is-normalizing';
|
|
28
|
+
export * from './is-start';
|
|
29
|
+
export * from './last';
|
|
30
|
+
export * from './leaf';
|
|
31
|
+
export * from './levels';
|
|
32
|
+
export * from './marks';
|
|
33
|
+
export * from './next';
|
|
34
|
+
export * from './node';
|
|
35
|
+
export * from './nodes';
|
|
36
|
+
export * from './normalize';
|
|
37
|
+
export * from './parent';
|
|
38
|
+
export * from './path-ref';
|
|
39
|
+
export * from './path-refs';
|
|
40
|
+
export * from './path';
|
|
41
|
+
export * from './point-ref';
|
|
42
|
+
export * from './point-refs';
|
|
43
|
+
export * from './point';
|
|
44
|
+
export * from './positions';
|
|
45
|
+
export * from './previous';
|
|
46
|
+
export * from './range-ref';
|
|
47
|
+
export * from './range-refs';
|
|
48
|
+
export * from './range';
|
|
49
|
+
export * from './remove-mark';
|
|
50
|
+
export * from './set-normalizing';
|
|
51
|
+
export * from './start';
|
|
52
|
+
export * from './string';
|
|
53
|
+
export * from './unhang-range';
|
|
54
|
+
export * from './without-normalizing';
|
|
55
|
+
export * from './should-merge-nodes-remove-prev-node';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './core';
|
|
2
|
+
export * from './create-editor';
|
|
3
|
+
export * from './editor';
|
|
4
|
+
export * from './interfaces/editor';
|
|
5
|
+
export * from './interfaces/element';
|
|
6
|
+
export * from './interfaces/location';
|
|
7
|
+
export * from './interfaces/node';
|
|
8
|
+
export * from './interfaces/operation';
|
|
9
|
+
export * from './interfaces/path-ref';
|
|
10
|
+
export * from './interfaces/path';
|
|
11
|
+
export * from './interfaces/point-ref';
|
|
12
|
+
export * from './interfaces/point';
|
|
13
|
+
export * from './interfaces/range-ref';
|
|
14
|
+
export * from './interfaces/range';
|
|
15
|
+
export * from './interfaces/scrubber';
|
|
16
|
+
export * from './interfaces/text';
|
|
17
|
+
export * from './interfaces/transforms/index';
|
|
18
|
+
export * from './transforms-node';
|
|
19
|
+
export * from './transforms-selection';
|
|
20
|
+
export * from './transforms-text';
|
|
21
|
+
export * from './types';
|