slate-vue3 0.11.2 → 0.11.3
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.js +3 -3
- package/dist/{create-editor-CJfHnQdq.js → create-editor-RQTAM5kE.js} +2 -2
- package/dist/dom.js +3 -3
- package/dist/history.js +1 -1
- package/dist/{hotkeys-FU5gHPpY.js → hotkeys-DXUCas_1.js} +2 -2
- package/dist/hyperscript.js +2 -2
- package/dist/{index-CeEqNjuc.js → index-DJmB_lg7.js} +933 -987
- package/dist/index.js +4 -4
- package/dist/{location-TwW6GZ1v.js → location-Ca_c2xzH.js} +1 -1
- package/dist/{use-focused-c2_pK4Hd.js → use-focused-BiHFnmtu.js} +23 -23
- package/dist/yjs.js +7 -7
- package/package.json +16 -16
- package/dist/slate/utils/modify.d.ts +0 -16
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a6, a7, a8, d, e, f, a, h, aj, c, i, j, k, ap, ak, l, m, o, p, q, g, b, r, t, u, v, w, x, aq, y, a9, z, A, B, C, D, E, F, G, H, I, J, aa, K, ab, al, ac, L, M, N, O, n, P, S, Q, R, V, T, U, W, X, _, Y, Z, $, ad, am, ae, a0, an, ao, a5, s, af, a1, a2, a3, ag, ah, a4, ai } from "./create-editor-
|
|
2
|
-
import { E as E2, a as a10, I as I2, N as N2, O as O2, P as P2, b as b2, R as R2, S as S2, T as T2, c as c2, i as i2, d as d2 } from "./index-
|
|
3
|
-
import { L as L2, S as S3 } from "./location-
|
|
1
|
+
import { a6, a7, a8, d, e, f, a, h, aj, c, i, j, k, ap, ak, l, m, o, p, q, g, b, r, t, u, v, w, x, aq, y, a9, z, A, B, C, D, E, F, G, H, I, J, aa, K, ab, al, ac, L, M, N, O, n, P, S, Q, R, V, T, U, W, X, _, Y, Z, $, ad, am, ae, a0, an, ao, a5, s, af, a1, a2, a3, ag, ah, a4, ai } from "./create-editor-RQTAM5kE.js";
|
|
2
|
+
import { E as E2, a as a10, I as I2, N as N2, O as O2, P as P2, b as b2, R as R2, S as S2, T as T2, c as c2, i as i2, d as d2 } from "./index-DJmB_lg7.js";
|
|
3
|
+
import { L as L2, S as S3 } from "./location-Ca_c2xzH.js";
|
|
4
4
|
export {
|
|
5
5
|
E2 as Editor,
|
|
6
6
|
a10 as Element,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as Path, b as Point, R as Range, E as Editor, c as Transforms, T as Text, N as Node, a as Element, e as cloneDeep, g as getDefaultInsertLocation, S as Scrubber, I as IS_EDITOR_SET } from "./index-
|
|
1
|
+
import { P as Path, b as Point, R as Range, E as Editor, c as Transforms, T as Text, N as Node, a as Element, e as cloneDeep, g as getDefaultInsertLocation, S as Scrubber, I as IS_EDITOR_SET } from "./index-DJmB_lg7.js";
|
|
2
2
|
import { shallowReactive, ref } from "vue";
|
|
3
|
-
import { S as Span } from "./location-
|
|
3
|
+
import { S as Span } from "./location-Ca_c2xzH.js";
|
|
4
4
|
const PathRef = {
|
|
5
5
|
transform(ref2, op) {
|
|
6
6
|
const { current, affinity } = ref2;
|
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, g as getChunkTreeForNode, b as EDITOR_TO_USER_SELECTION, N as NODE_TO_KEY, i as isDOMText, c as getPlainText, d as getSlateFragmentAttribute, e as EDITOR_TO_ON_CHANGE, f as EDITOR_TO_ON_IMMEDIATE_CHANGE } from "./hotkeys-
|
|
2
|
-
import { R, $, _, a0, T, U, F, M, C, K, L, a4, J, G, O, a3, I, a2, S, P, H, Q, W, V, a5, a1, Y, Z, h, A, B, x, u, j, t, s, v, r, z, y, k, l, m, o, p, w, q, n, X } from "./hotkeys-
|
|
3
|
-
import { E as Editor, R as Range, a as Element, c as Transforms, N as Node, P as Path } from "./index-
|
|
1
|
+
import { D as DOMEditor, E as EDITOR_TO_KEY_TO_ELEMENT, a as EDITOR_TO_USER_MARKS, g as getChunkTreeForNode, b as EDITOR_TO_USER_SELECTION, N as NODE_TO_KEY, i as isDOMText, c as getPlainText, d as getSlateFragmentAttribute, e as EDITOR_TO_ON_CHANGE, f as EDITOR_TO_ON_IMMEDIATE_CHANGE } from "./hotkeys-DXUCas_1.js";
|
|
2
|
+
import { R, $, _, a0, T, U, F, M, C, K, L, a4, J, G, O, a3, I, a2, S, P, H, Q, W, V, a5, a1, Y, Z, h, A, B, x, u, j, t, s, v, r, z, y, k, l, m, o, p, w, q, n, X } from "./hotkeys-DXUCas_1.js";
|
|
3
|
+
import { E as Editor, R as Range, a as Element, c as Transforms, N as Node, P as Path } from "./index-DJmB_lg7.js";
|
|
4
4
|
import "vue";
|
|
5
5
|
const doRectsIntersect = (rect, compareRect) => {
|
|
6
6
|
const middle = (compareRect.top + compareRect.bottom) / 2;
|
package/dist/history.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as isObject, O as Operation, E as Editor, c as Transforms, P as Path } from "./index-
|
|
1
|
+
import { d as isObject, O as Operation, E as Editor, c as Transforms, P as Path } from "./index-DJmB_lg7.js";
|
|
2
2
|
import { shallowReactive } from "vue";
|
|
3
3
|
const History = {
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallowReactive } from "vue";
|
|
2
|
-
import { S as Scrubber, R as Range, E as Editor, a as Element, c as Transforms, P as Path } from "./index-
|
|
2
|
+
import { S as Scrubber, R as Range, E as Editor, a as Element, c as Transforms, P as Path } from "./index-DJmB_lg7.js";
|
|
3
3
|
import { t as toRawWeakMap } from "./index-Ban80MbP.js";
|
|
4
4
|
const getDefaultView = (value) => {
|
|
5
5
|
return value && value.ownerDocument && value.ownerDocument.defaultView || null;
|
|
@@ -264,7 +264,7 @@ const EDITOR_TO_USER_SELECTION = /* @__PURE__ */ new WeakMap();
|
|
|
264
264
|
const EDITOR_TO_ON_CHANGE = /* @__PURE__ */ new WeakMap();
|
|
265
265
|
const EDITOR_TO_ON_IMMEDIATE_CHANGE = /* @__PURE__ */ new WeakMap();
|
|
266
266
|
const EDITOR_TO_USER_MARKS = /* @__PURE__ */ new WeakMap();
|
|
267
|
-
const MARK_PLACEHOLDER_SYMBOL = Symbol(
|
|
267
|
+
const MARK_PLACEHOLDER_SYMBOL = /* @__PURE__ */ Symbol(
|
|
268
268
|
"mark-placeholder"
|
|
269
269
|
);
|
|
270
270
|
function compatEmptyNode([node, offset]) {
|
package/dist/hyperscript.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as Range, N as Node, T as Text, a as Element, d as isObject } from "./index-
|
|
2
|
-
import { c as createEditor$1 } from "./create-editor-CJfHnQdq.js";
|
|
1
|
+
import { R as Range, N as Node, T as Text, a as Element, d as isObject } from "./index-DJmB_lg7.js";
|
|
3
2
|
import "vue";
|
|
3
|
+
import { c as createEditor$1 } from "./create-editor-RQTAM5kE.js";
|
|
4
4
|
import { t as toRawWeakMap } from "./index-Ban80MbP.js";
|
|
5
5
|
const ANCHOR = new toRawWeakMap();
|
|
6
6
|
const FOCUS = new toRawWeakMap();
|