slate-vue3 0.12.1 → 0.12.2
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 +2 -2
- package/dist/{create-editor-BkI-rJBD.js → create-editor-CKqY-8iC.js} +1 -1
- package/dist/dom.js +3 -3
- package/dist/history.js +1 -1
- package/dist/{hotkeys-BWK8d0gT.js → hotkeys-D6R9vfnD.js} +1 -1
- package/dist/hyperscript.js +2 -2
- package/dist/{index-C8h894nI.js → index-BzxeM0Pe.js} +2 -0
- package/dist/index.js +4 -4
- package/dist/{use-focused-CpGUia8W.js → use-focused-rvrvwwCw.js} +2 -2
- package/dist/yjs.js +3 -3
- package/package.json +8 -8
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, L as L2, N as N2, O as O2, P as P2, b as b2, R as R2, c as c2, S as S2, T as T2, d as d2, i as i2, e as e2 } from "./index-
|
|
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-CKqY-8iC.js";
|
|
2
|
+
import { E as E2, a as a10, L as L2, N as N2, O as O2, P as P2, b as b2, R as R2, c as c2, S as S2, T as T2, d as d2, i as i2, e as e2 } from "./index-BzxeM0Pe.js";
|
|
3
3
|
export {
|
|
4
4
|
E2 as Editor,
|
|
5
5
|
a10 as Element,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Path, b as Point, R as Range, E as Editor, d as Transforms, N as Node, T as Text, L as Location, g as getDefaultInsertLocation, c as Scrubber } from "./index-
|
|
1
|
+
import { P as Path, b as Point, R as Range, E as Editor, d as Transforms, N as Node, T as Text, L as Location, g as getDefaultInsertLocation, c as Scrubber } from "./index-BzxeM0Pe.js";
|
|
2
2
|
import { shallowReactive, ref } from "vue";
|
|
3
3
|
const PathRef = {
|
|
4
4
|
transform(ref2, op) {
|
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, N as Node, d as Transforms, 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-D6R9vfnD.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-D6R9vfnD.js";
|
|
3
|
+
import { E as Editor, R as Range, N as Node, d as Transforms, P as Path } from "./index-BzxeM0Pe.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 { e as isObject, O as Operation, E as Editor, d as Transforms, P as Path } from "./index-
|
|
1
|
+
import { e as isObject, O as Operation, E as Editor, d as Transforms, P as Path } from "./index-BzxeM0Pe.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 { c as Scrubber, R as Range, E as Editor, N as Node, d as Transforms, P as Path } from "./index-
|
|
2
|
+
import { c as Scrubber, R as Range, E as Editor, N as Node, d as Transforms, P as Path } from "./index-BzxeM0Pe.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;
|
package/dist/hyperscript.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as Range, N as Node, T as Text, a as Element, e as isObject } from "./index-
|
|
2
|
-
import { c as createEditor$1 } from "./create-editor-
|
|
1
|
+
import { R as Range, N as Node, T as Text, a as Element, e as isObject } from "./index-BzxeM0Pe.js";
|
|
2
|
+
import { c as createEditor$1 } from "./create-editor-CKqY-8iC.js";
|
|
3
3
|
import "vue";
|
|
4
4
|
import { t as toRawWeakMap } from "./index-Ban80MbP.js";
|
|
5
5
|
const ANCHOR = new toRawWeakMap();
|
|
@@ -797,6 +797,7 @@ const Node = {
|
|
|
797
797
|
const index = end.path[i];
|
|
798
798
|
node.children = node.children.slice(0, index + 1);
|
|
799
799
|
if (Node.isElement(node.children[index])) {
|
|
800
|
+
node.children[index] = { ...node.children[index] };
|
|
800
801
|
node = node.children[index];
|
|
801
802
|
}
|
|
802
803
|
}
|
|
@@ -805,6 +806,7 @@ const Node = {
|
|
|
805
806
|
const index = start.path[i];
|
|
806
807
|
node.children = node.children.slice(index);
|
|
807
808
|
if (Node.isElement(node.children[0])) {
|
|
809
|
+
node.children[0] = { ...node.children[0] };
|
|
808
810
|
node = node.children[0];
|
|
809
811
|
}
|
|
810
812
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as useElementIf, a as useEditor, S as SLATE_USE_SELECTION } from "./use-focused-
|
|
2
|
-
import { n, p, k, l, o, D, m, E, b, j, h, g, i, c, f, d, e } from "./use-focused-
|
|
3
|
-
import { E as Editor, R as Range } from "./index-
|
|
1
|
+
import { u as useElementIf, a as useEditor, S as SLATE_USE_SELECTION } from "./use-focused-rvrvwwCw.js";
|
|
2
|
+
import { n, p, k, l, o, D, m, E, b, j, h, g, i, c, f, d, e } from "./use-focused-rvrvwwCw.js";
|
|
3
|
+
import { E as Editor, R as Range } from "./index-BzxeM0Pe.js";
|
|
4
4
|
import { computed, inject } from "vue";
|
|
5
|
-
import { D as DOMEditor } from "./hotkeys-
|
|
5
|
+
import { D as DOMEditor } from "./hotkeys-D6R9vfnD.js";
|
|
6
6
|
import { t } from "./index-Ban80MbP.js";
|
|
7
7
|
const useSelected = () => {
|
|
8
8
|
const element = useElementIf();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, inject, provide, computed, defineComponent, ref, onMounted, onUnmounted, renderSlot, renderList, watch, onUpdated, useAttrs, reactive, toRaw } from "vue";
|
|
2
|
-
import { R as Range, N as Node, c as Scrubber, T as Text, E as Editor, P as Path, d as Transforms, a as Element } from "./index-
|
|
3
|
-
import { F as IS_ANDROID, m as isDOMNode, D as DOMEditor, a5 as MARK_PLACEHOLDER_SYMBOL, e as EDITOR_TO_ON_CHANGE, f as EDITOR_TO_ON_IMMEDIATE_CHANGE, H as IS_WEBKIT, E as EDITOR_TO_KEY_TO_ELEMENT, a0 as ELEMENT_TO_NODE, a1 as NODE_TO_ELEMENT, Y as NODE_TO_INDEX, Z as NODE_TO_PARENT, G as IS_FIREFOX, g as getChunkTreeForNode, X as reconcileChildren, h as applyStringDiff, o as isDOMSelection, n as normalizeStringDiff, a2 as IS_READ_ONLY, j as getDefaultView, _ as EDITOR_TO_WINDOW, $ as EDITOR_TO_ELEMENT, v as getSelection, T as HAS_BEFORE_INPUT_SUPPORT, R as CAN_USE_DOM, B as containsShadowAware, x as getActiveElement, a3 as IS_FOCUSED, p as isPlainTextOnlyPaste, a4 as IS_COMPOSING, U as Hotkeys, K as IS_CHROME, O as IS_FIREFOX_LEGACY, I as IS_IOS, Q as IS_WECHATBROWSER, P as IS_UC_MOBILE, a as EDITOR_TO_USER_MARKS, l as isDOMElement, b as EDITOR_TO_USER_SELECTION } from "./hotkeys-
|
|
2
|
+
import { R as Range, N as Node, c as Scrubber, T as Text, E as Editor, P as Path, d as Transforms, a as Element } from "./index-BzxeM0Pe.js";
|
|
3
|
+
import { F as IS_ANDROID, m as isDOMNode, D as DOMEditor, a5 as MARK_PLACEHOLDER_SYMBOL, e as EDITOR_TO_ON_CHANGE, f as EDITOR_TO_ON_IMMEDIATE_CHANGE, H as IS_WEBKIT, E as EDITOR_TO_KEY_TO_ELEMENT, a0 as ELEMENT_TO_NODE, a1 as NODE_TO_ELEMENT, Y as NODE_TO_INDEX, Z as NODE_TO_PARENT, G as IS_FIREFOX, g as getChunkTreeForNode, X as reconcileChildren, h as applyStringDiff, o as isDOMSelection, n as normalizeStringDiff, a2 as IS_READ_ONLY, j as getDefaultView, _ as EDITOR_TO_WINDOW, $ as EDITOR_TO_ELEMENT, v as getSelection, T as HAS_BEFORE_INPUT_SUPPORT, R as CAN_USE_DOM, B as containsShadowAware, x as getActiveElement, a3 as IS_FOCUSED, p as isPlainTextOnlyPaste, a4 as IS_COMPOSING, U as Hotkeys, K as IS_CHROME, O as IS_FIREFOX_LEGACY, I as IS_IOS, Q as IS_WECHATBROWSER, P as IS_UC_MOBILE, a as EDITOR_TO_USER_MARKS, l as isDOMElement, b as EDITOR_TO_USER_SELECTION } from "./hotkeys-D6R9vfnD.js";
|
|
4
4
|
const SLATE_USE_EDITOR = /* @__PURE__ */ Symbol("SLATE_USE_EDITOR");
|
|
5
5
|
const SLATE_USE_ELEMENT = /* @__PURE__ */ Symbol("SLATE_USE_ELEMENT");
|
|
6
6
|
const SLATE_USE_FOCUSED = /* @__PURE__ */ Symbol("SLATE_USE_FOCUSED");
|
package/dist/yjs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { e as isObject, N as Node, P as Path, E as Editor, L as Location, d as Transforms, R as Range } from "./index-
|
|
1
|
+
import { e as isObject, N as Node, P as Path, E as Editor, L as Location, d as Transforms, R as Range } from "./index-BzxeM0Pe.js";
|
|
2
2
|
import { ref, onMounted, onUnmounted, watch, onUpdated, computed } from "vue";
|
|
3
3
|
import { XmlText, YTextEvent, createRelativePositionFromTypeIndex, createAbsolutePositionFromRelativePosition, createRelativePositionFromJSON, decodeRelativePosition, encodeRelativePosition, UndoManager, compareRelativePositions } from "yjs";
|
|
4
|
-
import { a as useEditor, d as useFocused } from "./use-focused-
|
|
5
|
-
import { D as DOMEditor } from "./hotkeys-
|
|
4
|
+
import { a as useEditor, d as useFocused } from "./use-focused-rvrvwwCw.js";
|
|
5
|
+
import { D as DOMEditor } from "./hotkeys-D6R9vfnD.js";
|
|
6
6
|
function deepEquals(node, another) {
|
|
7
7
|
for (const key in node) {
|
|
8
8
|
const a = node[key];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slate-vue3",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -79,20 +79,20 @@
|
|
|
79
79
|
"@actions/core": "^2.0.2",
|
|
80
80
|
"@eslint/js": "^9.39.2",
|
|
81
81
|
"@faker-js/faker": "^10.2.0",
|
|
82
|
-
"@liveblocks/client": "^3.
|
|
83
|
-
"@liveblocks/yjs": "^3.
|
|
82
|
+
"@liveblocks/client": "^3.13.1",
|
|
83
|
+
"@liveblocks/yjs": "^3.13.1",
|
|
84
84
|
"@playwright/test": "^1.57.0",
|
|
85
85
|
"@testing-library/vue": "^8.1.0",
|
|
86
86
|
"@types/is-hotkey": "^0.1.10",
|
|
87
87
|
"@types/is-url": "^1.2.32",
|
|
88
88
|
"@types/lodash-es": "^4.17.12",
|
|
89
|
-
"@types/node": "^25.0.
|
|
89
|
+
"@types/node": "^25.0.9",
|
|
90
90
|
"@types/prismjs": "^1.26.5",
|
|
91
91
|
"@vitejs/plugin-vue": "^6.0.3",
|
|
92
92
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
93
93
|
"babel-plugin-transform-regex": "^6.1.0",
|
|
94
94
|
"eslint": "^9.39.2",
|
|
95
|
-
"eslint-plugin-vue": "^10.
|
|
95
|
+
"eslint-plugin-vue": "^10.7.0",
|
|
96
96
|
"globals": "^17.0.0",
|
|
97
97
|
"husky": "^9.1.7",
|
|
98
98
|
"image-extensions": "^1.1.0",
|
|
@@ -105,13 +105,13 @@
|
|
|
105
105
|
"remark-parse": "^11.0.0",
|
|
106
106
|
"remark-slate-transformer": "^0.9.0",
|
|
107
107
|
"typescript": "~5.9.3",
|
|
108
|
-
"typescript-eslint": "^8.
|
|
108
|
+
"typescript-eslint": "^8.53.0",
|
|
109
109
|
"unified": "^11.0.5",
|
|
110
110
|
"vite": "^7.3.1",
|
|
111
|
-
"vite-plugin-babel": "^1.
|
|
111
|
+
"vite-plugin-babel": "^1.4.1",
|
|
112
112
|
"vite-plugin-dts": "^4.5.4",
|
|
113
113
|
"vite-plugin-eslint": "^1.8.1",
|
|
114
|
-
"vitest": "^4.0.
|
|
114
|
+
"vitest": "^4.0.17",
|
|
115
115
|
"vue-router": "^4.6.4",
|
|
116
116
|
"yjs": "^13.6.29"
|
|
117
117
|
},
|