mhz-ui 1.3.10 → 1.3.11
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/UiEditor/UiEditor.js +7 -6
- package/package.json +14 -14
|
@@ -3503,12 +3503,13 @@ function bu(n, e, t) {
|
|
|
3503
3503
|
}
|
|
3504
3504
|
function zt(n) {
|
|
3505
3505
|
let t = n.parent.content.cutByIndex(n.startIndex, n.endIndex);
|
|
3506
|
-
for (let r = n.depth; ; --r) {
|
|
3507
|
-
let
|
|
3508
|
-
if (r < n.depth &&
|
|
3506
|
+
for (let r = n.depth, s = 0, i = 0; ; --r) {
|
|
3507
|
+
let o = n.$from.node(r), l = n.$from.index(r) + s, a = n.$to.indexAfter(r) - i;
|
|
3508
|
+
if (r < n.depth && o.canReplace(l, a, t))
|
|
3509
3509
|
return r;
|
|
3510
|
-
if (r == 0 ||
|
|
3510
|
+
if (r == 0 || o.type.spec.isolating || !bu(o, l, a))
|
|
3511
3511
|
break;
|
|
3512
|
+
l && (s = 1), a < o.childCount && (i = 1);
|
|
3512
3513
|
}
|
|
3513
3514
|
return null;
|
|
3514
3515
|
}
|
|
@@ -3922,7 +3923,7 @@ function Pu(n, e, t, r) {
|
|
|
3922
3923
|
let s = n.doc.resolve(e), i = n.doc.resolve(t);
|
|
3923
3924
|
if (Il(s, i, r))
|
|
3924
3925
|
return n.step(new K(e, t, r));
|
|
3925
|
-
let o = Pl(s,
|
|
3926
|
+
let o = Pl(s, i);
|
|
3926
3927
|
o[o.length - 1] == 0 && o.pop();
|
|
3927
3928
|
let l = -(s.depth + 1);
|
|
3928
3929
|
o.unshift(l);
|
|
@@ -16050,7 +16051,7 @@ function Cg(n = {}) {
|
|
|
16050
16051
|
handleDOMEvents: {
|
|
16051
16052
|
beforeinput(e, t) {
|
|
16052
16053
|
let r = t.inputType, s = r == "historyUndo" ? Nc : r == "historyRedo" ? Oc : null;
|
|
16053
|
-
return s ? (t.preventDefault(), s(e.state, e.dispatch))
|
|
16054
|
+
return !s || !e.editable ? !1 : (t.preventDefault(), s(e.state, e.dispatch));
|
|
16054
16055
|
}
|
|
16055
16056
|
}
|
|
16056
16057
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mhz-ui",
|
|
3
3
|
"description": "Mhz ui kit",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.11",
|
|
5
5
|
"author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"test:cov": "vitest run --coverage"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@tiptap/pm": "3.10.
|
|
29
|
-
"@tiptap/starter-kit": "3.10.
|
|
30
|
-
"@tiptap/vue-3": "3.10.
|
|
28
|
+
"@tiptap/pm": "3.10.7",
|
|
29
|
+
"@tiptap/starter-kit": "3.10.7",
|
|
30
|
+
"@tiptap/vue-3": "3.10.7",
|
|
31
31
|
"@vueform/slider": "2.1.10",
|
|
32
32
|
"@vueuse/core": "14.0.0",
|
|
33
33
|
"@vueuse/integrations": "14.0.0",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@eslint/js": "9.39.1",
|
|
43
|
-
"@storybook/addon-docs": "10.0.
|
|
44
|
-
"@storybook/addon-themes": "10.0.
|
|
45
|
-
"@storybook/vue3": "10.0.
|
|
46
|
-
"@storybook/vue3-vite": "10.0.
|
|
47
|
-
"@types/node": "24.10.
|
|
43
|
+
"@storybook/addon-docs": "10.0.8",
|
|
44
|
+
"@storybook/addon-themes": "10.0.8",
|
|
45
|
+
"@storybook/vue3": "10.0.8",
|
|
46
|
+
"@storybook/vue3-vite": "10.0.8",
|
|
47
|
+
"@types/node": "24.10.1",
|
|
48
48
|
"@vitejs/plugin-vue": "6.0.1",
|
|
49
|
-
"@vitest/coverage-v8": "4.0.
|
|
49
|
+
"@vitest/coverage-v8": "4.0.10",
|
|
50
50
|
"@vue/test-utils": "2.4.6",
|
|
51
51
|
"eslint": "9.39.1",
|
|
52
52
|
"eslint-config-prettier": "10.1.8",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"postcss-scss": "4.0.9",
|
|
63
63
|
"prettier": "3.6.2",
|
|
64
64
|
"sass-embedded": "1.93.3",
|
|
65
|
-
"storybook": "10.0.
|
|
65
|
+
"storybook": "10.0.8",
|
|
66
66
|
"stylelint": "16.25.0",
|
|
67
67
|
"stylelint-config-recess-order": "7.4.0",
|
|
68
68
|
"stylelint-config-recommended-scss": "16.0.2",
|
|
@@ -70,15 +70,15 @@
|
|
|
70
70
|
"stylelint-order": "7.0.0",
|
|
71
71
|
"stylelint-prettier": "5.0.3",
|
|
72
72
|
"typescript": "5.9.3",
|
|
73
|
-
"typescript-eslint": "8.
|
|
73
|
+
"typescript-eslint": "8.47.0",
|
|
74
74
|
"vite": "7.2.2",
|
|
75
75
|
"vite-plugin-dts": "4.5.4",
|
|
76
76
|
"vite-plugin-static-copy": "3.1.4",
|
|
77
77
|
"vite-svg-loader": "5.1.0",
|
|
78
|
-
"vitest": "4.0.
|
|
78
|
+
"vitest": "4.0.10",
|
|
79
79
|
"vue-eslint-parser": "10.2.0",
|
|
80
80
|
"vue-linters-config": "0.5.4",
|
|
81
|
-
"vue-tsc": "3.1.
|
|
81
|
+
"vue-tsc": "3.1.4"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"vue": "3.5.24",
|