mhz-ui 1.4.18 → 1.4.20
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.
|
@@ -2183,8 +2183,8 @@ var Bt = class e extends T {
|
|
|
2183
2183
|
return new e(this.from, this.from + this.slice.size, t.slice(this.from, this.to));
|
|
2184
2184
|
}
|
|
2185
2185
|
map(t) {
|
|
2186
|
-
let n = t.mapResult(this.
|
|
2187
|
-
return
|
|
2186
|
+
let n = t.mapResult(this.to, -1), r = this.from == this.to && e.MAP_BIAS < 0 ? n : t.mapResult(this.from, 1);
|
|
2187
|
+
return r.deletedAcross && n.deletedAcross ? null : new e(r.pos, Math.max(r.pos, n.pos), this.slice, this.structure);
|
|
2188
2188
|
}
|
|
2189
2189
|
merge(t) {
|
|
2190
2190
|
if (!(t instanceof e) || t.structure || this.structure) return null;
|
|
@@ -2209,7 +2209,7 @@ var Bt = class e extends T {
|
|
|
2209
2209
|
return new e(n.from, n.to, w.fromJSON(t, n.slice), !!n.structure);
|
|
2210
2210
|
}
|
|
2211
2211
|
};
|
|
2212
|
-
T.jsonID("replace", Bt);
|
|
2212
|
+
Bt.MAP_BIAS = 1, T.jsonID("replace", Bt);
|
|
2213
2213
|
var D = class e extends T {
|
|
2214
2214
|
constructor(e, t, n, r, i, a, o = !1) {
|
|
2215
2215
|
super(), this.from = e, this.to = t, this.gapFrom = n, this.gapTo = r, this.slice = i, this.insert = a, this.structure = o;
|
|
@@ -2770,7 +2770,18 @@ function En(e, t, n, r) {
|
|
|
2770
2770
|
e.replaceRange(t, n, new w(S.from(r), 0, 0));
|
|
2771
2771
|
}
|
|
2772
2772
|
function Dn(e, t, n) {
|
|
2773
|
-
let r = e.doc.resolve(t), i = e.doc.resolve(n)
|
|
2773
|
+
let r = e.doc.resolve(t), i = e.doc.resolve(n);
|
|
2774
|
+
if (r.parent.isTextblock && i.parent.isTextblock && r.start() != i.start() && r.parentOffset == 0 && i.parentOffset == 0) {
|
|
2775
|
+
let a = r.sharedDepth(n), o = !1;
|
|
2776
|
+
for (let e = r.depth; e > a; e--) r.node(e).type.spec.isolating && (o = !0);
|
|
2777
|
+
for (let e = i.depth; e > a; e--) i.node(e).type.spec.isolating && (o = !0);
|
|
2778
|
+
if (!o) {
|
|
2779
|
+
for (let e = r.depth; e > 0 && t == r.start(e); e--) t = r.before(e);
|
|
2780
|
+
for (let e = i.depth; e > 0 && n == i.start(e); e--) n = i.before(e);
|
|
2781
|
+
r = e.doc.resolve(t), i = e.doc.resolve(n);
|
|
2782
|
+
}
|
|
2783
|
+
}
|
|
2784
|
+
let a = On(r, i);
|
|
2774
2785
|
for (let t = 0; t < a.length; t++) {
|
|
2775
2786
|
let n = a[t], o = t == a.length - 1;
|
|
2776
2787
|
if (o && n == 0 || r.node(n).type.contentMatch.validEnd) return e.delete(r.start(n), i.end(n));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mhz-ui",
|
|
3
3
|
"description": "Mhz ui kit",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.20",
|
|
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": "NODE_OPTIONS='--no-experimental-webstorage' vitest run --coverage"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@tiptap/pm": "3.
|
|
29
|
-
"@tiptap/starter-kit": "3.
|
|
30
|
-
"@tiptap/vue-3": "3.
|
|
28
|
+
"@tiptap/pm": "3.21.0",
|
|
29
|
+
"@tiptap/starter-kit": "3.21.0",
|
|
30
|
+
"@tiptap/vue-3": "3.21.0",
|
|
31
31
|
"@vueform/slider": "2.1.10",
|
|
32
32
|
"@vueuse/core": "14.2.1",
|
|
33
33
|
"@vueuse/integrations": "14.2.1",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@storybook/vue3-vite": "10.3.3",
|
|
47
47
|
"@types/node": "25.5.0",
|
|
48
48
|
"@vitejs/plugin-vue": "6.0.5",
|
|
49
|
-
"@vitest/coverage-v8": "4.1.
|
|
49
|
+
"@vitest/coverage-v8": "4.1.2",
|
|
50
50
|
"@vue/test-utils": "2.4.6",
|
|
51
51
|
"eslint": "10.1.0",
|
|
52
52
|
"eslint-config-prettier": "10.1.8",
|
|
@@ -54,28 +54,28 @@
|
|
|
54
54
|
"eslint-plugin-import-x": "4.16.2",
|
|
55
55
|
"eslint-plugin-prettier": "5.5.5",
|
|
56
56
|
"eslint-plugin-sonarjs": "4.0.2",
|
|
57
|
-
"eslint-plugin-unicorn": "
|
|
57
|
+
"eslint-plugin-unicorn": "64.0.0",
|
|
58
58
|
"eslint-plugin-vue": "10.8.0",
|
|
59
59
|
"globals": "17.4.0",
|
|
60
|
-
"happy-dom": "20.8.
|
|
60
|
+
"happy-dom": "20.8.9",
|
|
61
61
|
"postcss-html": "1.8.1",
|
|
62
62
|
"postcss-scss": "4.0.9",
|
|
63
63
|
"prettier": "3.8.1",
|
|
64
64
|
"sass-embedded": "1.98.0",
|
|
65
65
|
"storybook": "10.3.3",
|
|
66
|
-
"stylelint": "17.
|
|
66
|
+
"stylelint": "17.6.0",
|
|
67
67
|
"stylelint-config-recess-order": "7.7.0",
|
|
68
68
|
"stylelint-config-recommended-scss": "17.0.0",
|
|
69
69
|
"stylelint-config-recommended-vue": "1.6.1",
|
|
70
70
|
"stylelint-order": "8.1.1",
|
|
71
71
|
"stylelint-prettier": "5.0.3",
|
|
72
|
-
"typescript": "
|
|
73
|
-
"typescript-eslint": "8.
|
|
72
|
+
"typescript": "6.0.2",
|
|
73
|
+
"typescript-eslint": "8.58.0",
|
|
74
74
|
"vite": "8.0.3",
|
|
75
75
|
"vite-plugin-dts": "4.5.4",
|
|
76
76
|
"vite-plugin-static-copy": "4.0.0",
|
|
77
77
|
"vite-svg-loader": "5.1.1",
|
|
78
|
-
"vitest": "4.1.
|
|
78
|
+
"vitest": "4.1.2",
|
|
79
79
|
"vue-eslint-parser": "10.4.0",
|
|
80
80
|
"vue-linters-config": "0.5.7",
|
|
81
81
|
"vue-tsc": "3.2.6"
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export { default as UiBreadcrumbs } from './UiBreadcrumbs/UiBreadcrumbs';
|
|
2
|
-
export { default as UiButton } from './UiButton/UiButton';
|
|
3
|
-
export { default as UiButtongroup } from './UiButtongroup/UiButtongroup';
|
|
4
|
-
export { default as UiCalendar } from './UiCalendar/UiCalendar';
|
|
5
|
-
export { default as UiChart } from './UiChart/UiChart';
|
|
6
|
-
export { default as UiCheckbox } from './UiCheckbox/UiCheckbox';
|
|
7
|
-
export { default as UiChip } from './UiChip/UiChip';
|
|
8
|
-
export { default as UiClose } from './UiClose/UiClose';
|
|
9
|
-
export { default as UiEditor } from './UiEditor/UiEditor';
|
|
10
|
-
export { default as UiField } from './UiField/UiField';
|
|
11
|
-
export { default as UiFlex } from './UiFlex/UiFlex';
|
|
12
|
-
export { default as UiInput } from './UiInput/UiInput';
|
|
13
|
-
export { default as UiModal } from './UiModal/UiModal';
|
|
14
|
-
export { default as UiPagination } from './UiPagination/UiPagination';
|
|
15
|
-
export { default as UiRange } from './UiRange/UiRange';
|
|
16
|
-
export { default as UiSearch } from './UiSearch/UiSearch';
|
|
17
|
-
export { default as UiSelect } from './UiSelect/UiSelect';
|
|
18
|
-
export { default as UiSpoiler } from './UiSpoiler/UiSpoiler';
|
|
19
|
-
export { default as UiSlider } from './UiSlider/UiSlider';
|
|
20
|
-
export { default as UiTable } from './UiTable/UiTable';
|
|
21
|
-
export { default as UiTabs } from './UiTabs/UiTabs';
|
|
22
|
-
export { default as UiTextarea } from './UiTextarea/UiTextarea';
|
|
23
|
-
export { default as UiUpload } from './UiUpload/UiUpload';
|
|
24
|
-
export { default as toast } from './toast/toast';
|
|
25
|
-
export { uiStubs } from './stubs/stubs';
|
|
File without changes
|