slate-vue3 0.7.13 → 0.7.14
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/dom.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DOMEditor, r as reconcileChildren, 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 } from "./hotkeys
|
|
2
|
-
import { C, G, J, L, H, F, I, v, M, w, x, O, y, P, A, z, B, K, Q, R, S, T, e, f, h, j, k, l, m, o, p, q, s, t, u, n } from "./hotkeys
|
|
1
|
+
import { D as DOMEditor, r as reconcileChildren, 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 } from "./hotkeys--QbzGJVb.js";
|
|
2
|
+
import { C, G, J, L, H, F, I, v, M, w, x, O, y, P, A, z, B, K, Q, R, S, T, e, f, h, j, k, l, m, o, p, q, s, t, u, n } from "./hotkeys--QbzGJVb.js";
|
|
3
3
|
import { E as Editor, R as Range, a as Element, c as Transforms, N as Node, P as Path } from "./batch-dirty-paths-c2XLn-yG.js";
|
|
4
4
|
import { reactive } from "vue";
|
|
5
5
|
const doRectsIntersect = (rect, compareRect) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as toRawWeakMap, R as Range, E as Editor,
|
|
1
|
+
import { S as Scrubber, t as toRawWeakMap, R as Range, E as Editor, a as Element, c as Transforms, P as Path } from "./batch-dirty-paths-c2XLn-yG.js";
|
|
2
2
|
import { markRaw } from "vue";
|
|
3
3
|
const getDefaultView = (value) => {
|
|
4
4
|
return value && value.ownerDocument && value.ownerDocument.defaultView || null;
|
|
@@ -78,6 +78,17 @@ const getEditableChildAndIndex = (parent, index, direction) => {
|
|
|
78
78
|
index = i;
|
|
79
79
|
i += direction === "forward" ? 1 : -1;
|
|
80
80
|
}
|
|
81
|
+
while (child.nodeType === 3 && child.textContent === "") {
|
|
82
|
+
index++;
|
|
83
|
+
child = childNodes[index];
|
|
84
|
+
}
|
|
85
|
+
if (!child) {
|
|
86
|
+
throw new Error(
|
|
87
|
+
`Compact on vue3 empty childNode: Failed to find adjacent nodes: ${Scrubber.stringify(
|
|
88
|
+
child
|
|
89
|
+
)}`
|
|
90
|
+
);
|
|
91
|
+
}
|
|
81
92
|
return [child, index];
|
|
82
93
|
};
|
|
83
94
|
const getEditableChild = (parent, index, direction) => {
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as SLATE_USE_ELEMENT, u as useEditor, a as SLATE_USE_SELECTION } from "./use-focused-
|
|
2
|
-
import { g, D, c, e, f, d, E, b, h, i, j } from "./use-focused-
|
|
1
|
+
import { S as SLATE_USE_ELEMENT, u as useEditor, a as SLATE_USE_SELECTION } from "./use-focused-gHKV_bJR.js";
|
|
2
|
+
import { g, D, c, e, f, d, E, b, h, i, j } from "./use-focused-gHKV_bJR.js";
|
|
3
3
|
import { E as Editor, R as Range } from "./batch-dirty-paths-c2XLn-yG.js";
|
|
4
4
|
import { t } from "./batch-dirty-paths-c2XLn-yG.js";
|
|
5
5
|
import { inject, computed } from "vue";
|
|
6
|
-
import { D as DOMEditor } from "./hotkeys
|
|
6
|
+
import { D as DOMEditor } from "./hotkeys--QbzGJVb.js";
|
|
7
7
|
const useElement = () => {
|
|
8
8
|
const element = inject(SLATE_USE_ELEMENT);
|
|
9
9
|
if (element === void 0) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, defineComponent, provide, ref, computed, onMounted, onUnmounted, renderSlot, inject, watch, renderList, onUpdated, reactive, useAttrs, toRaw } from "vue";
|
|
2
2
|
import { R as Range, N as Node, S as Scrubber, T as Text, P as Path, E as Editor, a as Element, c as Transforms } from "./batch-dirty-paths-c2XLn-yG.js";
|
|
3
|
-
import { I as IS_ANDROID, p as isDOMNode, D as DOMEditor, Q as MARK_PLACEHOLDER_SYMBOL, d as EDITOR_TO_ON_CHANGE, w as IS_FIREFOX, z as IS_WEBKIT, E as EDITOR_TO_KEY_TO_ELEMENT, L as ELEMENT_TO_NODE, R as NODE_TO_ELEMENT, S as NODE_TO_INDEX, T as NODE_TO_PARENT, r as reconcileChildren, e as applyStringDiff, q as isDOMSelection, n as normalizeStringDiff, P as IS_READ_ONLY, h as getDefaultView, J as EDITOR_TO_WINDOW, G as EDITOR_TO_ELEMENT, H as HAS_BEFORE_INPUT_SUPPORT, C as CAN_USE_DOM, f as getActiveElement, j as getSelection, O as IS_FOCUSED, s as isPlainTextOnlyPaste, M as IS_COMPOSING, F as Hotkeys, v as IS_CHROME, x as IS_FIREFOX_LEGACY, y as IS_IOS, B as IS_WECHATBROWSER, A as IS_UC_MOBILE, a as EDITOR_TO_USER_MARKS, o as isDOMElement, b as EDITOR_TO_USER_SELECTION } from "./hotkeys
|
|
3
|
+
import { I as IS_ANDROID, p as isDOMNode, D as DOMEditor, Q as MARK_PLACEHOLDER_SYMBOL, d as EDITOR_TO_ON_CHANGE, w as IS_FIREFOX, z as IS_WEBKIT, E as EDITOR_TO_KEY_TO_ELEMENT, L as ELEMENT_TO_NODE, R as NODE_TO_ELEMENT, S as NODE_TO_INDEX, T as NODE_TO_PARENT, r as reconcileChildren, e as applyStringDiff, q as isDOMSelection, n as normalizeStringDiff, P as IS_READ_ONLY, h as getDefaultView, J as EDITOR_TO_WINDOW, G as EDITOR_TO_ELEMENT, H as HAS_BEFORE_INPUT_SUPPORT, C as CAN_USE_DOM, f as getActiveElement, j as getSelection, O as IS_FOCUSED, s as isPlainTextOnlyPaste, M as IS_COMPOSING, F as Hotkeys, v as IS_CHROME, x as IS_FIREFOX_LEGACY, y as IS_IOS, B as IS_WECHATBROWSER, A as IS_UC_MOBILE, a as EDITOR_TO_USER_MARKS, o as isDOMElement, b as EDITOR_TO_USER_SELECTION } from "./hotkeys--QbzGJVb.js";
|
|
4
4
|
const SLATE_USE_EDITOR = Symbol("SLATE_USE_EDITOR");
|
|
5
5
|
const SLATE_USE_ELEMENT = Symbol("SLATE_USE_ELEMENT");
|
|
6
6
|
const SLATE_USE_FOCUSED = Symbol("SLATE_USE_FOCUSED");
|
package/dist/yjs.js
CHANGED
|
@@ -2,8 +2,8 @@ import { d as isObject, T as Text, N as Node, P as Path, E as Editor, t as toRaw
|
|
|
2
2
|
import { toRaw, ref, onMounted, onUnmounted, watch, onUpdated, computed } from "vue";
|
|
3
3
|
import { XmlText, YTextEvent, createRelativePositionFromTypeIndex, createAbsolutePositionFromRelativePosition, createRelativePositionFromJSON, decodeRelativePosition, encodeRelativePosition, UndoManager, compareRelativePositions } from "yjs";
|
|
4
4
|
import { L as Location } from "./location-CY2z7Wai.js";
|
|
5
|
-
import { u as useEditor, i as useFocused } from "./use-focused-
|
|
6
|
-
import { D as DOMEditor } from "./hotkeys
|
|
5
|
+
import { u as useEditor, i as useFocused } from "./use-focused-gHKV_bJR.js";
|
|
6
|
+
import { D as DOMEditor } from "./hotkeys--QbzGJVb.js";
|
|
7
7
|
function deepEquals(node, another) {
|
|
8
8
|
for (const key in node) {
|
|
9
9
|
const a = node[key];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slate-vue3",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@faker-js/faker": "^9.9.0",
|
|
71
|
-
"@liveblocks/client": "^3.2.
|
|
72
|
-
"@liveblocks/yjs": "^3.2.
|
|
73
|
-
"@playwright/test": "^1.54.
|
|
71
|
+
"@liveblocks/client": "^3.2.1",
|
|
72
|
+
"@liveblocks/yjs": "^3.2.1",
|
|
73
|
+
"@playwright/test": "^1.54.2",
|
|
74
74
|
"@testing-library/vue": "^8.1.0",
|
|
75
75
|
"@types/is-hotkey": "^0.1.10",
|
|
76
76
|
"@types/is-url": "^1.2.32",
|
|
77
77
|
"@types/lodash-es": "^4.17.12",
|
|
78
|
-
"@types/node": "^24.
|
|
78
|
+
"@types/node": "^24.2.0",
|
|
79
79
|
"@types/prismjs": "^1.26.5",
|
|
80
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
80
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
81
81
|
"babel-plugin-transform-regex": "^6.0.1",
|
|
82
82
|
"image-extensions": "^1.1.0",
|
|
83
83
|
"is-url": "^1.2.4",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"remark-gfm": "^4.0.1",
|
|
87
87
|
"remark-parse": "^11.0.0",
|
|
88
88
|
"remark-slate-transformer": "^0.9.0",
|
|
89
|
-
"typescript": "~5.
|
|
89
|
+
"typescript": "~5.9.2",
|
|
90
90
|
"unified": "^11.0.5",
|
|
91
|
-
"vite": "^7.
|
|
91
|
+
"vite": "^7.1.1",
|
|
92
92
|
"vite-plugin-babel": "^1.3.2",
|
|
93
93
|
"vite-plugin-dts": "^4.5.4",
|
|
94
94
|
"vitest": "^3.2.4",
|