@zipify/wysiwyg 1.0.0-dev.49 → 1.0.0-dev.51
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/config/jest/setupTests.js +3 -0
- package/config/vite/lib.config.js +1 -1
- package/dist/wysiwyg.css +1 -1
- package/dist/wysiwyg.mjs +107 -107
- package/dist/wysiwyg.mjs.map +1 -1
- package/example/ExampleApp.vue +1 -1
- package/example/example.js +3 -0
- package/lib/Wysiwyg.vue +1 -1
- package/lib/__tests__/utils/withComponentContext.js +1 -1
- package/lib/components/base/Button.vue +1 -1
- package/lib/components/base/Icon.vue +1 -1
- package/lib/components/base/Modal.vue +1 -1
- package/lib/components/base/NumberField.vue +1 -1
- package/lib/components/base/Range.vue +1 -1
- package/lib/components/base/ScrollView.vue +1 -1
- package/lib/components/base/TextField.vue +1 -1
- package/lib/components/base/__tests__/Modal.test.js +1 -1
- package/lib/components/base/colorPicker/ColorPicker.vue +1 -1
- package/lib/components/base/colorPicker/composables/__tests__/usePickerApi.test.js +1 -1
- package/lib/components/base/colorPicker/composables/usePickerApi.js +1 -1
- package/lib/components/base/colorPicker/composables/usePickerHotkeys.js +1 -1
- package/lib/components/base/composables/__tests__/useActivatedListener.test.js +1 -1
- package/lib/components/base/composables/__tests__/useDeselectionLock.test.js +1 -1
- package/lib/components/base/composables/__tests__/useElementRef.test.js +1 -1
- package/lib/components/base/composables/__tests__/useModalToggler.test.js +1 -1
- package/lib/components/base/composables/__tests__/useNumberValue.test.js +1 -1
- package/lib/components/base/composables/__tests__/useScrollView.test.js +1 -1
- package/lib/components/base/composables/__tests__/useTempValue.test.js +1 -1
- package/lib/components/base/composables/useActivatedListener.js +1 -1
- package/lib/components/base/composables/useDeselectionLock.js +1 -1
- package/lib/components/base/composables/useElementRef.js +1 -1
- package/lib/components/base/composables/useModalToggler.js +1 -1
- package/lib/components/base/composables/useScrollView.js +1 -1
- package/lib/components/base/composables/useTempValue.js +1 -1
- package/lib/components/base/composables/useValidator.js +1 -1
- package/lib/components/base/dropdown/Dropdown.vue +1 -1
- package/lib/components/base/dropdown/DropdownActivator.vue +1 -1
- package/lib/components/base/dropdown/DropdownGroup.vue +1 -1
- package/lib/components/base/dropdown/DropdownMenu.vue +1 -1
- package/lib/components/base/dropdown/DropdownOption.vue +1 -1
- package/lib/components/base/dropdown/__tests__/DropdownActivator.test.js +1 -1
- package/lib/components/base/dropdown/__tests__/DropdownMenu.test.js +1 -1
- package/lib/components/base/dropdown/__tests__/DropdownOption.test.js +1 -1
- package/lib/components/base/dropdown/composables/__tests__/useActiveOptionManager.test.js +1 -1
- package/lib/components/base/dropdown/composables/__tests__/useDropdownEntityTitle.test.js +1 -1
- package/lib/components/base/dropdown/composables/useActiveOptionManager.js +1 -1
- package/lib/components/base/dropdown/composables/useDropdownEntityTitle.js +1 -1
- package/lib/components/toolbar/Toolbar.vue +1 -1
- package/lib/components/toolbar/ToolbarDivider.vue +1 -1
- package/lib/components/toolbar/__tests__/Toolbar.test.js +2 -2
- package/lib/components/toolbar/controls/AlignmentControl.vue +1 -1
- package/lib/components/toolbar/controls/AlignmentDeviceControl.vue +1 -1
- package/lib/components/toolbar/controls/BackgroundColorControl.vue +1 -1
- package/lib/components/toolbar/controls/CaseStyleControl.vue +1 -1
- package/lib/components/toolbar/controls/FontColorControl.vue +1 -1
- package/lib/components/toolbar/controls/FontFamilyControl.vue +1 -1
- package/lib/components/toolbar/controls/FontSizeControl.vue +1 -1
- package/lib/components/toolbar/controls/FontWeightControl.vue +1 -1
- package/lib/components/toolbar/controls/ItalicControl.vue +1 -1
- package/lib/components/toolbar/controls/LineHeightControl.vue +1 -1
- package/lib/components/toolbar/controls/ListControl.vue +1 -1
- package/lib/components/toolbar/controls/RemoveFormatControl.vue +1 -1
- package/lib/components/toolbar/controls/StrikeThroughControl.vue +1 -1
- package/lib/components/toolbar/controls/StylePresetControl.vue +1 -1
- package/lib/components/toolbar/controls/SuperscriptControl.vue +1 -1
- package/lib/components/toolbar/controls/UnderlineControl.vue +1 -1
- package/lib/components/toolbar/controls/__tests__/AlignmentControl.test.js +1 -1
- package/lib/components/toolbar/controls/__tests__/AlignmentDeviceControl.test.js +1 -1
- package/lib/components/toolbar/controls/__tests__/BackgroundColorControl.test.js +1 -1
- package/lib/components/toolbar/controls/__tests__/CaseStyleControl.test.js +1 -1
- package/lib/components/toolbar/controls/__tests__/FontColorControl.test.js +1 -1
- package/lib/components/toolbar/controls/__tests__/FontFamilyControl.test.js +1 -1
- package/lib/components/toolbar/controls/__tests__/FontSizeControl.test.js +1 -1
- package/lib/components/toolbar/controls/__tests__/FontWeightControl.test.js +1 -1
- package/lib/components/toolbar/controls/__tests__/ItalicControl.test.js +1 -1
- package/lib/components/toolbar/controls/__tests__/LineHeightControl.test.js +1 -1
- package/lib/components/toolbar/controls/__tests__/ListControl.test.js +1 -1
- package/lib/components/toolbar/controls/__tests__/StrikeThroughControl.test.js +1 -1
- package/lib/components/toolbar/controls/__tests__/StylePresetControl.test.js +1 -1
- package/lib/components/toolbar/controls/__tests__/UnderlineControl.test.js +1 -1
- package/lib/components/toolbar/controls/composables/useRecentFonts.js +1 -1
- package/lib/components/toolbar/controls/link/LinkControl.vue +1 -1
- package/lib/components/toolbar/controls/link/LinkControlHeader.vue +1 -1
- package/lib/components/toolbar/controls/link/__tests__/LinkControl.test.js +1 -1
- package/lib/components/toolbar/controls/link/composables/__tests__/useLink.test.js +1 -1
- package/lib/components/toolbar/controls/link/composables/useLink.js +1 -1
- package/lib/components/toolbar/controls/link/destination/LinkControlDestination.vue +1 -1
- package/lib/components/toolbar/controls/link/destination/LinkControlPageBlock.vue +1 -1
- package/lib/components/toolbar/controls/link/destination/__tests__/LinkControlPageBlock.test.js +1 -1
- package/lib/components/toolbar/controls/link/destination/__tests__/LinkControlUrl.test.js +1 -1
- package/lib/composables/__tests__/useEditor.test.js +1 -1
- package/lib/composables/useEditor.js +1 -1
- package/lib/extensions/Alignment.js +1 -1
- package/lib/extensions/BackgroundColor.js +1 -1
- package/lib/extensions/DeviceManager.js +1 -2
- package/lib/extensions/FontColor.js +1 -1
- package/lib/extensions/FontFamily.js +1 -1
- package/lib/extensions/FontSize.js +1 -1
- package/lib/extensions/FontStyle.js +1 -1
- package/lib/extensions/FontWeight.js +1 -1
- package/lib/extensions/LineHeight.js +1 -1
- package/lib/extensions/StylePreset.js +12 -7
- package/lib/extensions/TextDecoration.js +1 -1
- package/lib/extensions/__tests__/Alignment.test.js +2 -2
- package/lib/extensions/__tests__/BackgroundColor.test.js +1 -1
- package/lib/extensions/__tests__/FontColor.test.js +1 -1
- package/lib/extensions/__tests__/FontFamily.test.js +1 -1
- package/lib/extensions/__tests__/FontSize.test.js +2 -2
- package/lib/extensions/__tests__/FontStyle.test.js +1 -1
- package/lib/extensions/__tests__/FontWeight.test.js +1 -1
- package/lib/extensions/__tests__/LineHeight.test.js +2 -2
- package/lib/extensions/__tests__/Link.test.js +1 -1
- package/lib/extensions/__tests__/StylePreset.test.js +2 -1
- package/lib/extensions/__tests__/TextDecoration.test.js +1 -1
- package/lib/extensions/core/NodeProcessor.js +1 -1
- package/lib/extensions/list/List.js +1 -1
- package/lib/extensions/list/__tests__/List.test.js +3 -2
- package/lib/services/__tests__/FavoriteColors.test.js +1 -1
- package/lib/styles/content.css +6 -4
- package/package.json +7 -6
package/dist/wysiwyg.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ty = Object.defineProperty;
|
|
2
2
|
var ry = (r, e, t) => e in r ? ty(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var xn = (r, e, t) => (ry(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { computed as T, ref as q, watch as tn, inject as z, onUnmounted as Dl, nextTick as pp, provide as ut, onMounted as mp, toRef as
|
|
4
|
+
import { computed as T, ref as q, watch as tn, inject as z, onUnmounted as Dl, nextTick as pp, provide as ut, onMounted as mp, toRef as ve, reactive as ny } from "@vue/composition-api";
|
|
5
5
|
import { ColorModel as iy, ZipifyColorPicker as oy } from "@zipify/colorpicker";
|
|
6
6
|
function ce(r) {
|
|
7
7
|
this.content = r;
|
|
@@ -5729,7 +5729,7 @@ class ue {
|
|
|
5729
5729
|
this.local = e.length ? e : Br, this.children = t.length ? t : Br;
|
|
5730
5730
|
}
|
|
5731
5731
|
static create(e, t) {
|
|
5732
|
-
return t.length ? uo(t, e, 0, hr) :
|
|
5732
|
+
return t.length ? uo(t, e, 0, hr) : me;
|
|
5733
5733
|
}
|
|
5734
5734
|
find(e, t, n) {
|
|
5735
5735
|
let i = [];
|
|
@@ -5747,7 +5747,7 @@ class ue {
|
|
|
5747
5747
|
}
|
|
5748
5748
|
}
|
|
5749
5749
|
map(e, t, n) {
|
|
5750
|
-
return this ==
|
|
5750
|
+
return this == me || e.maps.length == 0 ? this : this.mapInner(e, t, 0, 0, n || hr);
|
|
5751
5751
|
}
|
|
5752
5752
|
mapInner(e, t, n, i, o) {
|
|
5753
5753
|
let s;
|
|
@@ -5755,10 +5755,10 @@ class ue {
|
|
|
5755
5755
|
let l = this.local[a].map(e, n, i);
|
|
5756
5756
|
l && l.type.valid(t, l) ? (s || (s = [])).push(l) : o.onRemove && o.onRemove(this.local[a].spec);
|
|
5757
5757
|
}
|
|
5758
|
-
return this.children.length ? ab(this.children, s || [], e, t, n, i, o) : s ? new ue(s.sort(pr), Br) :
|
|
5758
|
+
return this.children.length ? ab(this.children, s || [], e, t, n, i, o) : s ? new ue(s.sort(pr), Br) : me;
|
|
5759
5759
|
}
|
|
5760
5760
|
add(e, t) {
|
|
5761
|
-
return t.length ? this ==
|
|
5761
|
+
return t.length ? this == me ? ue.create(e, t) : this.addInner(e, t, 0) : this;
|
|
5762
5762
|
}
|
|
5763
5763
|
addInner(e, t, n) {
|
|
5764
5764
|
let i, o = 0;
|
|
@@ -5776,7 +5776,7 @@ class ue {
|
|
|
5776
5776
|
return new ue(s.length ? this.local.concat(s).sort(pr) : this.local, i || this.children);
|
|
5777
5777
|
}
|
|
5778
5778
|
remove(e) {
|
|
5779
|
-
return e.length == 0 || this ==
|
|
5779
|
+
return e.length == 0 || this == me ? this : this.removeInner(e, 0);
|
|
5780
5780
|
}
|
|
5781
5781
|
removeInner(e, t) {
|
|
5782
5782
|
let n = this.children, i = this.local;
|
|
@@ -5788,7 +5788,7 @@ class ue {
|
|
|
5788
5788
|
continue;
|
|
5789
5789
|
n == this.children && (n = this.children.slice());
|
|
5790
5790
|
let u = n[o + 2].removeInner(s, a + 1);
|
|
5791
|
-
u !=
|
|
5791
|
+
u != me ? n[o + 2] = u : (n.splice(o, 3), o -= 3);
|
|
5792
5792
|
}
|
|
5793
5793
|
if (i.length) {
|
|
5794
5794
|
for (let o = 0, s; o < e.length; o++)
|
|
@@ -5796,10 +5796,10 @@ class ue {
|
|
|
5796
5796
|
for (let a = 0; a < i.length; a++)
|
|
5797
5797
|
i[a].eq(s, t) && (i == this.local && (i = this.local.slice()), i.splice(a--, 1));
|
|
5798
5798
|
}
|
|
5799
|
-
return n == this.children && i == this.local ? this : i.length || n.length ? new ue(i, n) :
|
|
5799
|
+
return n == this.children && i == this.local ? this : i.length || n.length ? new ue(i, n) : me;
|
|
5800
5800
|
}
|
|
5801
5801
|
forChild(e, t) {
|
|
5802
|
-
if (this ==
|
|
5802
|
+
if (this == me)
|
|
5803
5803
|
return this;
|
|
5804
5804
|
if (t.isLeaf)
|
|
5805
5805
|
return ue.empty;
|
|
@@ -5821,7 +5821,7 @@ class ue {
|
|
|
5821
5821
|
let a = new ue(i.sort(pr), Br);
|
|
5822
5822
|
return n ? new Bt([a, n]) : a;
|
|
5823
5823
|
}
|
|
5824
|
-
return n ||
|
|
5824
|
+
return n || me;
|
|
5825
5825
|
}
|
|
5826
5826
|
eq(e) {
|
|
5827
5827
|
if (this == e)
|
|
@@ -5840,7 +5840,7 @@ class ue {
|
|
|
5840
5840
|
return Pl(this.localsInner(e));
|
|
5841
5841
|
}
|
|
5842
5842
|
localsInner(e) {
|
|
5843
|
-
if (this ==
|
|
5843
|
+
if (this == me)
|
|
5844
5844
|
return Br;
|
|
5845
5845
|
if (e.inlineContent || !this.local.some(Ht.is))
|
|
5846
5846
|
return this.local;
|
|
@@ -5852,7 +5852,7 @@ class ue {
|
|
|
5852
5852
|
}
|
|
5853
5853
|
ue.empty = new ue([], []);
|
|
5854
5854
|
ue.removeOverlap = Pl;
|
|
5855
|
-
const
|
|
5855
|
+
const me = ue.empty;
|
|
5856
5856
|
class Bt {
|
|
5857
5857
|
constructor(e) {
|
|
5858
5858
|
this.members = e;
|
|
@@ -5867,7 +5867,7 @@ class Bt {
|
|
|
5867
5867
|
let n = [];
|
|
5868
5868
|
for (let i = 0; i < this.members.length; i++) {
|
|
5869
5869
|
let o = this.members[i].forChild(e, t);
|
|
5870
|
-
o !=
|
|
5870
|
+
o != me && (o instanceof Bt ? n = n.concat(o.members) : n.push(o));
|
|
5871
5871
|
}
|
|
5872
5872
|
return Bt.from(n);
|
|
5873
5873
|
}
|
|
@@ -5897,7 +5897,7 @@ class Bt {
|
|
|
5897
5897
|
static from(e) {
|
|
5898
5898
|
switch (e.length) {
|
|
5899
5899
|
case 0:
|
|
5900
|
-
return
|
|
5900
|
+
return me;
|
|
5901
5901
|
case 1:
|
|
5902
5902
|
return e[0];
|
|
5903
5903
|
default:
|
|
@@ -5932,7 +5932,7 @@ function ab(r, e, t, n, i, o, s) {
|
|
|
5932
5932
|
let h = t.map(r[c + 1] + o, -1), p = h - i, { index: m, offset: v } = n.content.findIndex(d), g = n.maybeChild(m);
|
|
5933
5933
|
if (g && v == d && v + g.nodeSize == p) {
|
|
5934
5934
|
let y = a[c + 2].mapInner(t, g, f + 1, r[c] + o + 1, s);
|
|
5935
|
-
y !=
|
|
5935
|
+
y != me ? (a[c] = d, a[c + 1] = p, a[c + 2] = y) : (a[c + 1] = -2, u = !0);
|
|
5936
5936
|
} else
|
|
5937
5937
|
u = !0;
|
|
5938
5938
|
}
|
|
@@ -5994,13 +5994,13 @@ function uo(r, e, t, n) {
|
|
|
5994
5994
|
if (u) {
|
|
5995
5995
|
o = !0;
|
|
5996
5996
|
let c = uo(u, a, t + l + 1, n);
|
|
5997
|
-
c !=
|
|
5997
|
+
c != me && i.push(l, l + a.nodeSize, c);
|
|
5998
5998
|
}
|
|
5999
5999
|
});
|
|
6000
6000
|
let s = ym(o ? _m(r) : r, -t).sort(pr);
|
|
6001
6001
|
for (let a = 0; a < s.length; a++)
|
|
6002
6002
|
s[a].type.valid(e, s[a]) || (n.onRemove && n.onRemove(s[a].spec), s.splice(a--, 1));
|
|
6003
|
-
return s.length || i.length ? new ue(s, i) :
|
|
6003
|
+
return s.length || i.length ? new ue(s, i) : me;
|
|
6004
6004
|
}
|
|
6005
6005
|
function pr(r, e) {
|
|
6006
6006
|
return r.from - e.from || r.to - e.to;
|
|
@@ -6032,7 +6032,7 @@ function Rs(r) {
|
|
|
6032
6032
|
let e = [];
|
|
6033
6033
|
return r.someProp("decorations", (t) => {
|
|
6034
6034
|
let n = t(r.state);
|
|
6035
|
-
n && n !=
|
|
6035
|
+
n && n != me && e.push(n);
|
|
6036
6036
|
}), r.cursorWrapper && e.push(ue.create(r.state.doc, [r.cursorWrapper.deco])), Bt.from(e);
|
|
6037
6037
|
}
|
|
6038
6038
|
const cb = {
|
|
@@ -6620,12 +6620,12 @@ var Gt = {
|
|
|
6620
6620
|
222: '"',
|
|
6621
6621
|
229: "Q"
|
|
6622
6622
|
}, Vu = typeof navigator < "u" && /Chrome\/(\d+)/.exec(navigator.userAgent), Db = typeof navigator < "u" && /Apple Computer/.test(navigator.vendor), wb = typeof navigator < "u" && /Gecko\/\d+/.test(navigator.userAgent), Hu = typeof navigator < "u" && /Mac/.test(navigator.platform), xb = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent), Cb = Vu && (Hu || +Vu[1] < 57) || wb && Hu;
|
|
6623
|
-
for (var
|
|
6624
|
-
Gt[48 +
|
|
6625
|
-
for (var
|
|
6626
|
-
Gt[
|
|
6627
|
-
for (var
|
|
6628
|
-
Gt[
|
|
6623
|
+
for (var fe = 0; fe < 10; fe++)
|
|
6624
|
+
Gt[48 + fe] = Gt[96 + fe] = String(fe);
|
|
6625
|
+
for (var fe = 1; fe <= 24; fe++)
|
|
6626
|
+
Gt[fe + 111] = "F" + fe;
|
|
6627
|
+
for (var fe = 65; fe <= 90; fe++)
|
|
6628
|
+
Gt[fe] = String.fromCharCode(fe + 32), fo[fe] = String.fromCharCode(fe);
|
|
6629
6629
|
for (var Bs in Gt)
|
|
6630
6630
|
fo.hasOwnProperty(Bs) || (fo[Bs] = Gt[Bs]);
|
|
6631
6631
|
function Ob(r) {
|
|
@@ -10156,7 +10156,7 @@ var rE = /* @__PURE__ */ $(
|
|
|
10156
10156
|
eE,
|
|
10157
10157
|
!1,
|
|
10158
10158
|
nE,
|
|
10159
|
-
"
|
|
10159
|
+
"045b370b",
|
|
10160
10160
|
null,
|
|
10161
10161
|
null
|
|
10162
10162
|
);
|
|
@@ -10281,7 +10281,7 @@ var yE = /* @__PURE__ */ $(
|
|
|
10281
10281
|
vE,
|
|
10282
10282
|
!1,
|
|
10283
10283
|
bE,
|
|
10284
|
-
"
|
|
10284
|
+
"3271aefb",
|
|
10285
10285
|
null,
|
|
10286
10286
|
null
|
|
10287
10287
|
);
|
|
@@ -10513,7 +10513,7 @@ var oD = /* @__PURE__ */ $(
|
|
|
10513
10513
|
nD,
|
|
10514
10514
|
!1,
|
|
10515
10515
|
sD,
|
|
10516
|
-
"
|
|
10516
|
+
"00c3ad92",
|
|
10517
10517
|
null,
|
|
10518
10518
|
null
|
|
10519
10519
|
);
|
|
@@ -12918,7 +12918,7 @@ var LF = /* @__PURE__ */ $(
|
|
|
12918
12918
|
PF,
|
|
12919
12919
|
!1,
|
|
12920
12920
|
zF,
|
|
12921
|
-
"
|
|
12921
|
+
"656e8490",
|
|
12922
12922
|
null,
|
|
12923
12923
|
null
|
|
12924
12924
|
);
|
|
@@ -13014,7 +13014,7 @@ const JF = {
|
|
|
13014
13014
|
},
|
|
13015
13015
|
setup(r, { emit: e }) {
|
|
13016
13016
|
const t = Tg({
|
|
13017
|
-
valueRef:
|
|
13017
|
+
valueRef: ve(r, "value"),
|
|
13018
13018
|
format: Number
|
|
13019
13019
|
}), n = T(() => {
|
|
13020
13020
|
const o = Number(r.min), s = Number(r.max), a = Number(r.step);
|
|
@@ -13036,7 +13036,7 @@ var YF = /* @__PURE__ */ $(
|
|
|
13036
13036
|
GF,
|
|
13037
13037
|
!1,
|
|
13038
13038
|
XF,
|
|
13039
|
-
"
|
|
13039
|
+
"00b1b266",
|
|
13040
13040
|
null,
|
|
13041
13041
|
null
|
|
13042
13042
|
);
|
|
@@ -13141,7 +13141,7 @@ const tI = {
|
|
|
13141
13141
|
},
|
|
13142
13142
|
setup(r, { emit: e }) {
|
|
13143
13143
|
const t = (l) => l === null ? null : Number(l), n = FF({
|
|
13144
|
-
valueRef:
|
|
13144
|
+
valueRef: ve(r, "value"),
|
|
13145
13145
|
onChange: (l) => e("input", l),
|
|
13146
13146
|
digits: Number(r.digits),
|
|
13147
13147
|
min: t(r.min),
|
|
@@ -13164,7 +13164,7 @@ var rI = /* @__PURE__ */ $(
|
|
|
13164
13164
|
eI,
|
|
13165
13165
|
!1,
|
|
13166
13166
|
nI,
|
|
13167
|
-
"
|
|
13167
|
+
"c36402da",
|
|
13168
13168
|
null,
|
|
13169
13169
|
null
|
|
13170
13170
|
);
|
|
@@ -13369,7 +13369,7 @@ const Fc = {
|
|
|
13369
13369
|
$a(!1, Vi.get(r).callback);
|
|
13370
13370
|
}
|
|
13371
13371
|
};
|
|
13372
|
-
function
|
|
13372
|
+
function he(r, { value: e }) {
|
|
13373
13373
|
const t = typeof e == "string" ? { text: e } : e, { text: n, hotkey: i } = t;
|
|
13374
13374
|
n && (r.dataset.tooltip = n), n && i && (r.dataset.tooltipHotkey = i);
|
|
13375
13375
|
}
|
|
@@ -13440,7 +13440,7 @@ var uI = /* @__PURE__ */ $(
|
|
|
13440
13440
|
lI,
|
|
13441
13441
|
!1,
|
|
13442
13442
|
fI,
|
|
13443
|
-
"
|
|
13443
|
+
"176ee9f5",
|
|
13444
13444
|
null,
|
|
13445
13445
|
null
|
|
13446
13446
|
);
|
|
@@ -13515,7 +13515,7 @@ var mI = /* @__PURE__ */ $(
|
|
|
13515
13515
|
hI,
|
|
13516
13516
|
!1,
|
|
13517
13517
|
vI,
|
|
13518
|
-
"
|
|
13518
|
+
"5201153a",
|
|
13519
13519
|
null,
|
|
13520
13520
|
null
|
|
13521
13521
|
);
|
|
@@ -13650,7 +13650,7 @@ const CI = {
|
|
|
13650
13650
|
}
|
|
13651
13651
|
},
|
|
13652
13652
|
setup(r) {
|
|
13653
|
-
const e = z(Wt.ACTIVE_MANAGER), t = z(Wt.TOGGLER), n =
|
|
13653
|
+
const e = z(Wt.ACTIVE_MANAGER), t = z(Wt.TOGGLER), n = ve(r, "color"), i = Ic(e.activeOption), o = T(() => ({
|
|
13654
13654
|
"zw-dropdown__activator--active": t.isOpened.value,
|
|
13655
13655
|
"zw-dropdown__activator--gray": n.value === "gray"
|
|
13656
13656
|
}));
|
|
@@ -13668,7 +13668,7 @@ var OI = /* @__PURE__ */ $(
|
|
|
13668
13668
|
xI,
|
|
13669
13669
|
!1,
|
|
13670
13670
|
kI,
|
|
13671
|
-
"
|
|
13671
|
+
"86a4a284",
|
|
13672
13672
|
null,
|
|
13673
13673
|
null
|
|
13674
13674
|
);
|
|
@@ -13704,7 +13704,7 @@ const $I = {
|
|
|
13704
13704
|
}
|
|
13705
13705
|
},
|
|
13706
13706
|
setup(r) {
|
|
13707
|
-
const e = z(Wt.ACTIVE_MANAGER), t = z(Wt.TOGGLER), n = z(Wt.SESSION), i = q(null), o = NF(), s = Ic(
|
|
13707
|
+
const e = z(Wt.ACTIVE_MANAGER), t = z(Wt.TOGGLER), n = z(Wt.SESSION), i = q(null), o = NF(), s = Ic(ve(r, "option")), a = T(() => {
|
|
13708
13708
|
var c;
|
|
13709
13709
|
return r.option.id === ((c = e.activeOption.value) == null ? void 0 : c.id);
|
|
13710
13710
|
}), l = T(() => ({ "zw-dropdown__option--active": a.value }));
|
|
@@ -13732,7 +13732,7 @@ var FI = /* @__PURE__ */ $(
|
|
|
13732
13732
|
MI,
|
|
13733
13733
|
!1,
|
|
13734
13734
|
II,
|
|
13735
|
-
"
|
|
13735
|
+
"763d3764",
|
|
13736
13736
|
null,
|
|
13737
13737
|
null
|
|
13738
13738
|
);
|
|
@@ -13773,7 +13773,7 @@ const PI = {
|
|
|
13773
13773
|
}
|
|
13774
13774
|
},
|
|
13775
13775
|
setup(r) {
|
|
13776
|
-
return { groupTitle: Ic(
|
|
13776
|
+
return { groupTitle: Ic(ve(r, "group")) };
|
|
13777
13777
|
}
|
|
13778
13778
|
}, Ch = {};
|
|
13779
13779
|
var BI = /* @__PURE__ */ $(
|
|
@@ -13782,7 +13782,7 @@ var BI = /* @__PURE__ */ $(
|
|
|
13782
13782
|
RI,
|
|
13783
13783
|
!1,
|
|
13784
13784
|
LI,
|
|
13785
|
-
"
|
|
13785
|
+
"82d71c28",
|
|
13786
13786
|
null,
|
|
13787
13787
|
null
|
|
13788
13788
|
);
|
|
@@ -13953,8 +13953,8 @@ const tN = {
|
|
|
13953
13953
|
},
|
|
13954
13954
|
setup(r, { emit: e }) {
|
|
13955
13955
|
const t = q(null), n = q(null), i = DI({
|
|
13956
|
-
optionsRef:
|
|
13957
|
-
inputRef:
|
|
13956
|
+
optionsRef: ve(r, "options"),
|
|
13957
|
+
inputRef: ve(r, "value"),
|
|
13958
13958
|
stateless: r.value === null,
|
|
13959
13959
|
onChange: (s) => e("change", s.id)
|
|
13960
13960
|
}), o = yi({
|
|
@@ -13974,7 +13974,7 @@ var rN = /* @__PURE__ */ $(
|
|
|
13974
13974
|
eN,
|
|
13975
13975
|
!1,
|
|
13976
13976
|
nN,
|
|
13977
|
-
"
|
|
13977
|
+
"75f6270e",
|
|
13978
13978
|
null,
|
|
13979
13979
|
null
|
|
13980
13980
|
);
|
|
@@ -14095,7 +14095,7 @@ const lN = {
|
|
|
14095
14095
|
n.commands.storeSelection(), e("before-opened");
|
|
14096
14096
|
},
|
|
14097
14097
|
pickerRef: i,
|
|
14098
|
-
initialColorRef:
|
|
14098
|
+
initialColorRef: ve(r, "value")
|
|
14099
14099
|
});
|
|
14100
14100
|
oN({
|
|
14101
14101
|
isOpenedRef: o.isOpened,
|
|
@@ -14187,7 +14187,7 @@ const hN = [ne.FONT_SIZE, ne.FONT_WEIGHT], pN = {
|
|
|
14187
14187
|
Dropdown: er
|
|
14188
14188
|
},
|
|
14189
14189
|
directives: {
|
|
14190
|
-
tooltip:
|
|
14190
|
+
tooltip: he
|
|
14191
14191
|
},
|
|
14192
14192
|
setup() {
|
|
14193
14193
|
const r = z(L.EDITOR), e = r.commands.getPresetList(), t = r.commands.getPreset(), n = r.commands.getPresetCustomization(), i = T(() => {
|
|
@@ -14214,7 +14214,7 @@ var mN = /* @__PURE__ */ $(
|
|
|
14214
14214
|
dN,
|
|
14215
14215
|
!1,
|
|
14216
14216
|
vN,
|
|
14217
|
-
"
|
|
14217
|
+
"3c79694d",
|
|
14218
14218
|
null,
|
|
14219
14219
|
null
|
|
14220
14220
|
);
|
|
@@ -14278,7 +14278,7 @@ const _N = {
|
|
|
14278
14278
|
DropdownOption: En
|
|
14279
14279
|
},
|
|
14280
14280
|
directives: {
|
|
14281
|
-
tooltip:
|
|
14281
|
+
tooltip: he
|
|
14282
14282
|
},
|
|
14283
14283
|
setup() {
|
|
14284
14284
|
const r = z(L.FONTS), e = z(L.EDITOR), t = gN({ limit: 5 }), n = T(() => ({
|
|
@@ -14311,7 +14311,7 @@ var SN = /* @__PURE__ */ $(
|
|
|
14311
14311
|
bN,
|
|
14312
14312
|
!1,
|
|
14313
14313
|
EN,
|
|
14314
|
-
"
|
|
14314
|
+
"7424744b",
|
|
14315
14315
|
null,
|
|
14316
14316
|
null
|
|
14317
14317
|
);
|
|
@@ -14349,7 +14349,7 @@ const CN = {
|
|
|
14349
14349
|
Dropdown: er
|
|
14350
14350
|
},
|
|
14351
14351
|
directives: {
|
|
14352
|
-
tooltip:
|
|
14352
|
+
tooltip: he
|
|
14353
14353
|
},
|
|
14354
14354
|
setup() {
|
|
14355
14355
|
const r = z(L.EDITOR), e = r.commands.getFont(), t = T(() => e.value.weights.map((o) => ({ id: o }))), n = r.commands.getFontWeight();
|
|
@@ -14405,7 +14405,7 @@ const $N = {
|
|
|
14405
14405
|
Dropdown: er
|
|
14406
14406
|
},
|
|
14407
14407
|
directives: {
|
|
14408
|
-
tooltip:
|
|
14408
|
+
tooltip: he
|
|
14409
14409
|
},
|
|
14410
14410
|
setup() {
|
|
14411
14411
|
const r = z(L.FONT_SIZES), e = z(L.EDITOR), t = T(() => r.map((o) => ({ id: o, title: `${o}px` }))), n = e.commands.getFontSize();
|
|
@@ -14422,7 +14422,7 @@ var FN = /* @__PURE__ */ $(
|
|
|
14422
14422
|
MN,
|
|
14423
14423
|
!1,
|
|
14424
14424
|
IN,
|
|
14425
|
-
"
|
|
14425
|
+
"3494faec",
|
|
14426
14426
|
null,
|
|
14427
14427
|
null
|
|
14428
14428
|
);
|
|
@@ -14480,7 +14480,7 @@ const PN = {
|
|
|
14480
14480
|
Icon: ye
|
|
14481
14481
|
},
|
|
14482
14482
|
directives: {
|
|
14483
|
-
tooltip:
|
|
14483
|
+
tooltip: he
|
|
14484
14484
|
},
|
|
14485
14485
|
setup() {
|
|
14486
14486
|
const r = z(L.EDITOR);
|
|
@@ -14554,7 +14554,7 @@ const HN = {
|
|
|
14554
14554
|
Icon: ye
|
|
14555
14555
|
},
|
|
14556
14556
|
directives: {
|
|
14557
|
-
tooltip:
|
|
14557
|
+
tooltip: he
|
|
14558
14558
|
},
|
|
14559
14559
|
setup() {
|
|
14560
14560
|
const r = z(L.EDITOR);
|
|
@@ -14617,7 +14617,7 @@ const JN = {
|
|
|
14617
14617
|
Icon: ye
|
|
14618
14618
|
},
|
|
14619
14619
|
directives: {
|
|
14620
|
-
tooltip:
|
|
14620
|
+
tooltip: he
|
|
14621
14621
|
},
|
|
14622
14622
|
setup() {
|
|
14623
14623
|
const r = z(L.EDITOR), e = r.commands.isItalic();
|
|
@@ -14680,7 +14680,7 @@ const tR = {
|
|
|
14680
14680
|
Icon: ye
|
|
14681
14681
|
},
|
|
14682
14682
|
directives: {
|
|
14683
|
-
tooltip:
|
|
14683
|
+
tooltip: he
|
|
14684
14684
|
},
|
|
14685
14685
|
setup() {
|
|
14686
14686
|
const r = z(L.EDITOR);
|
|
@@ -14739,7 +14739,7 @@ const aR = {
|
|
|
14739
14739
|
Icon: ye
|
|
14740
14740
|
},
|
|
14741
14741
|
directives: {
|
|
14742
|
-
tooltip:
|
|
14742
|
+
tooltip: he
|
|
14743
14743
|
},
|
|
14744
14744
|
setup() {
|
|
14745
14745
|
const r = z(L.EDITOR);
|
|
@@ -14798,7 +14798,7 @@ const hR = {
|
|
|
14798
14798
|
Icon: ye
|
|
14799
14799
|
},
|
|
14800
14800
|
directives: {
|
|
14801
|
-
tooltip:
|
|
14801
|
+
tooltip: he
|
|
14802
14802
|
},
|
|
14803
14803
|
setup() {
|
|
14804
14804
|
const r = z(L.EDITOR);
|
|
@@ -14872,7 +14872,7 @@ const bR = {
|
|
|
14872
14872
|
Icon: ye
|
|
14873
14873
|
},
|
|
14874
14874
|
directives: {
|
|
14875
|
-
tooltip:
|
|
14875
|
+
tooltip: he
|
|
14876
14876
|
},
|
|
14877
14877
|
styles: [
|
|
14878
14878
|
{ id: Qr.UPPERCASE, title: "UPPERCASE" },
|
|
@@ -14967,7 +14967,7 @@ const xR = {
|
|
|
14967
14967
|
Icon: ye
|
|
14968
14968
|
},
|
|
14969
14969
|
directives: {
|
|
14970
|
-
tooltip:
|
|
14970
|
+
tooltip: he
|
|
14971
14971
|
},
|
|
14972
14972
|
setup(r, { emit: e }) {
|
|
14973
14973
|
const t = z(L.EDITOR), n = t.commands.getAlignment();
|
|
@@ -15045,7 +15045,7 @@ const TR = {
|
|
|
15045
15045
|
AlignmentControl: Bg
|
|
15046
15046
|
},
|
|
15047
15047
|
directives: {
|
|
15048
|
-
tooltip:
|
|
15048
|
+
tooltip: he
|
|
15049
15049
|
},
|
|
15050
15050
|
setup() {
|
|
15051
15051
|
const e = z(L.EDITOR).commands.getAlignment(), t = q(null), n = q(null), i = yi({ wrapperRef: t, modalRef: n });
|
|
@@ -15064,7 +15064,7 @@ var MR = /* @__PURE__ */ $(
|
|
|
15064
15064
|
AR,
|
|
15065
15065
|
!1,
|
|
15066
15066
|
$R,
|
|
15067
|
-
"
|
|
15067
|
+
"61ce8243",
|
|
15068
15068
|
null,
|
|
15069
15069
|
null
|
|
15070
15070
|
);
|
|
@@ -15150,7 +15150,7 @@ const RR = {
|
|
|
15150
15150
|
FieldLabel: $c
|
|
15151
15151
|
},
|
|
15152
15152
|
directives: {
|
|
15153
|
-
tooltip:
|
|
15153
|
+
tooltip: he
|
|
15154
15154
|
},
|
|
15155
15155
|
setup() {
|
|
15156
15156
|
const r = q(null), e = q(null), t = z(L.EDITOR), n = yi({ wrapperRef: r, modalRef: e }), i = t.commands.getLineHeight(), o = (s) => t.commands.applyLineHeight(String(s));
|
|
@@ -15170,7 +15170,7 @@ var PR = /* @__PURE__ */ $(
|
|
|
15170
15170
|
NR,
|
|
15171
15171
|
!1,
|
|
15172
15172
|
BR,
|
|
15173
|
-
"
|
|
15173
|
+
"4a0a2202",
|
|
15174
15174
|
null,
|
|
15175
15175
|
null
|
|
15176
15176
|
);
|
|
@@ -15251,7 +15251,7 @@ const jR = {
|
|
|
15251
15251
|
Icon: ye
|
|
15252
15252
|
},
|
|
15253
15253
|
directives: {
|
|
15254
|
-
tooltip:
|
|
15254
|
+
tooltip: he
|
|
15255
15255
|
},
|
|
15256
15256
|
setup() {
|
|
15257
15257
|
const r = z(L.EDITOR), e = r.commands.getListType(), t = T(() => !!e.value), n = T(() => e.value || "none"), i = T(() => `list-${e.value || Te.DISC}`);
|
|
@@ -15269,7 +15269,7 @@ var VR = /* @__PURE__ */ $(
|
|
|
15269
15269
|
zR,
|
|
15270
15270
|
!1,
|
|
15271
15271
|
HR,
|
|
15272
|
-
"
|
|
15272
|
+
"76bd3ee8",
|
|
15273
15273
|
null,
|
|
15274
15274
|
null
|
|
15275
15275
|
);
|
|
@@ -15311,7 +15311,7 @@ const KR = {
|
|
|
15311
15311
|
Button: ie
|
|
15312
15312
|
},
|
|
15313
15313
|
directives: {
|
|
15314
|
-
tooltip:
|
|
15314
|
+
tooltip: he
|
|
15315
15315
|
},
|
|
15316
15316
|
setup() {
|
|
15317
15317
|
const r = z(L.EDITOR);
|
|
@@ -15372,7 +15372,7 @@ var eP = /* @__PURE__ */ $(
|
|
|
15372
15372
|
ZR,
|
|
15373
15373
|
!1,
|
|
15374
15374
|
tP,
|
|
15375
|
-
"
|
|
15375
|
+
"f7266b5e",
|
|
15376
15376
|
null,
|
|
15377
15377
|
null
|
|
15378
15378
|
);
|
|
@@ -15663,7 +15663,7 @@ const wP = {
|
|
|
15663
15663
|
}
|
|
15664
15664
|
},
|
|
15665
15665
|
setup(r, { emit: e }) {
|
|
15666
|
-
const t =
|
|
15666
|
+
const t = ve(r, "link"), n = T(() => t.value.currentDestination.value.id === "url");
|
|
15667
15667
|
return {
|
|
15668
15668
|
isTargetBlank: T(() => t.value.linkData.value.target === jt.BLANK),
|
|
15669
15669
|
isURLDestination: n,
|
|
@@ -15770,7 +15770,7 @@ const TP = {
|
|
|
15770
15770
|
Button: ie
|
|
15771
15771
|
},
|
|
15772
15772
|
directives: {
|
|
15773
|
-
tooltip:
|
|
15773
|
+
tooltip: he
|
|
15774
15774
|
},
|
|
15775
15775
|
setup() {
|
|
15776
15776
|
const r = q(null), e = q(null), t = z(L.EDITOR), n = cP(), i = /(^(https?:\/\/|\/)(?:www\.|(?!www))?[^\s])/, o = () => n.linkData.value.text ? !1 : "Can't be empty", s = () => n.currentDestination.value.id !== "url" || i.test(n.destinationHrefs.value.url) ? !1 : "Please enter a valid URL", a = mh({
|
|
@@ -15813,7 +15813,7 @@ var MP = /* @__PURE__ */ $(
|
|
|
15813
15813
|
AP,
|
|
15814
15814
|
!1,
|
|
15815
15815
|
$P,
|
|
15816
|
-
"
|
|
15816
|
+
"0418dcf7",
|
|
15817
15817
|
null,
|
|
15818
15818
|
null
|
|
15819
15819
|
);
|
|
@@ -15998,7 +15998,7 @@ var JP = /* @__PURE__ */ $(
|
|
|
15998
15998
|
KP,
|
|
15999
15999
|
!1,
|
|
16000
16000
|
YP,
|
|
16001
|
-
"
|
|
16001
|
+
"863e2d50",
|
|
16002
16002
|
null,
|
|
16003
16003
|
null
|
|
16004
16004
|
);
|
|
@@ -16183,7 +16183,7 @@ const rB = te.create({
|
|
|
16183
16183
|
isRequired: !1,
|
|
16184
16184
|
default: { id: this.options.defaultId },
|
|
16185
16185
|
parseHTML: (r) => {
|
|
16186
|
-
const e = this.options.
|
|
16186
|
+
const e = this.options.presetsRef.value;
|
|
16187
16187
|
if (r.parentElement.tagName === "LI")
|
|
16188
16188
|
return null;
|
|
16189
16189
|
for (const { id: t, node: n, fallbackClass: i } of e) {
|
|
@@ -16208,7 +16208,7 @@ const rB = te.create({
|
|
|
16208
16208
|
return e.find((n) => t === n.id);
|
|
16209
16209
|
}
|
|
16210
16210
|
return {
|
|
16211
|
-
getPresetList: O(() => T(() => this.options.
|
|
16211
|
+
getPresetList: O(() => T(() => this.options.presetsRef.value.filter((e) => !e.hidden))),
|
|
16212
16212
|
getPreset: O(({ commands: e }) => {
|
|
16213
16213
|
const t = e.getBlockAttributes("preset", { id: this.options.defaultId }), n = e.getPresetList();
|
|
16214
16214
|
return T(() => r(n.value, t.value.id));
|
|
@@ -16230,7 +16230,7 @@ const rB = te.create({
|
|
|
16230
16230
|
e.setNode(ee.PARAGRAPH, { preset: null });
|
|
16231
16231
|
}),
|
|
16232
16232
|
getPresetCustomization: O(({ editor: e }) => {
|
|
16233
|
-
const t =
|
|
16233
|
+
const t = ve(e, "state");
|
|
16234
16234
|
return T(() => {
|
|
16235
16235
|
const n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), { from: o, to: s } = t.value.selection;
|
|
16236
16236
|
return t.value.doc.nodesBetween(o, s, (a) => {
|
|
@@ -16247,8 +16247,8 @@ const rB = te.create({
|
|
|
16247
16247
|
removePresetCustomization: O(({ chain: e }) => {
|
|
16248
16248
|
e().storeSelection().expandSelectionToBlock().unsetMarks(ne.marks).resetAttributes(ee.PARAGRAPH, ne.attributes).resetAttributes(ee.HEADING, ne.attributes).restoreSelection().run();
|
|
16249
16249
|
}),
|
|
16250
|
-
removeFormat: O(({
|
|
16251
|
-
e.
|
|
16250
|
+
removeFormat: O(({ chain: e }) => {
|
|
16251
|
+
e().storeSelection().expandSelectionToBlock().unsetAllMarks().applyDefaultPreset().restoreSelection().run();
|
|
16252
16252
|
})
|
|
16253
16253
|
};
|
|
16254
16254
|
},
|
|
@@ -16259,7 +16259,7 @@ const rB = te.create({
|
|
|
16259
16259
|
return;
|
|
16260
16260
|
}
|
|
16261
16261
|
this.storage.presetStyleEl = wt.document.createElement("style"), this.storage.presetStyleEl.dataset.zwStyles = "";
|
|
16262
|
-
for (const e of this.options.
|
|
16262
|
+
for (const e of this.options.presetsRef.value) {
|
|
16263
16263
|
const n = [` ${np(this.options.baseClass, e)} {`];
|
|
16264
16264
|
for (const i of vo.values)
|
|
16265
16265
|
for (const o of Object.keys(e[i])) {
|
|
@@ -16478,7 +16478,7 @@ const rB = te.create({
|
|
|
16478
16478
|
name: "device_manager",
|
|
16479
16479
|
addCommands() {
|
|
16480
16480
|
return {
|
|
16481
|
-
getDevice: O(() =>
|
|
16481
|
+
getDevice: O(() => this.options.deviceRef)
|
|
16482
16482
|
};
|
|
16483
16483
|
}
|
|
16484
16484
|
}), lB = je.create({
|
|
@@ -17041,7 +17041,7 @@ function Qi(r) {
|
|
|
17041
17041
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
17042
17042
|
}, Qi(r);
|
|
17043
17043
|
}
|
|
17044
|
-
var
|
|
17044
|
+
var pe = {
|
|
17045
17045
|
defaultProtocol: "http",
|
|
17046
17046
|
events: null,
|
|
17047
17047
|
format: lp,
|
|
@@ -17057,8 +17057,8 @@ var me = {
|
|
|
17057
17057
|
ignoreTags: []
|
|
17058
17058
|
};
|
|
17059
17059
|
function SB(r) {
|
|
17060
|
-
r = r || {}, this.defaultProtocol = "defaultProtocol" in r ? r.defaultProtocol :
|
|
17061
|
-
for (var e = ("ignoreTags" in r) ? r.ignoreTags :
|
|
17060
|
+
r = r || {}, this.defaultProtocol = "defaultProtocol" in r ? r.defaultProtocol : pe.defaultProtocol, this.events = "events" in r ? r.events : pe.events, this.format = "format" in r ? r.format : pe.format, this.formatHref = "formatHref" in r ? r.formatHref : pe.formatHref, this.nl2br = "nl2br" in r ? r.nl2br : pe.nl2br, this.tagName = "tagName" in r ? r.tagName : pe.tagName, this.target = "target" in r ? r.target : pe.target, this.rel = "rel" in r ? r.rel : pe.rel, this.validate = "validate" in r ? r.validate : pe.validate, this.truncate = "truncate" in r ? r.truncate : pe.truncate, this.className = "className" in r ? r.className : pe.className, this.attributes = r.attributes || pe.attributes, this.ignoreTags = [];
|
|
17061
|
+
for (var e = ("ignoreTags" in r) ? r.ignoreTags : pe.ignoreTags, t = 0; t < e.length; t++)
|
|
17062
17062
|
this.ignoreTags.push(e[t].toUpperCase());
|
|
17063
17063
|
}
|
|
17064
17064
|
SB.prototype = {
|
|
@@ -17088,7 +17088,7 @@ SB.prototype = {
|
|
|
17088
17088
|
case "function":
|
|
17089
17089
|
return i(t, n.t);
|
|
17090
17090
|
case "object":
|
|
17091
|
-
return o = n.t in i ? i[n.t] :
|
|
17091
|
+
return o = n.t in i ? i[n.t] : pe[e], typeof o == "function" ? o(t, n.t) : o;
|
|
17092
17092
|
}
|
|
17093
17093
|
return i;
|
|
17094
17094
|
},
|
|
@@ -17124,7 +17124,7 @@ Ho.prototype = {
|
|
|
17124
17124
|
return this.tk[this.tk.length - 1].e;
|
|
17125
17125
|
},
|
|
17126
17126
|
toObject: function() {
|
|
17127
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
17127
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : pe.defaultProtocol;
|
|
17128
17128
|
return {
|
|
17129
17129
|
type: this.t,
|
|
17130
17130
|
value: this.v,
|
|
@@ -17151,7 +17151,7 @@ var jg = Ar("email", {
|
|
|
17151
17151
|
}), El = Ar("text"), Vg = Ar("nl"), It = Ar("url", {
|
|
17152
17152
|
isLink: !0,
|
|
17153
17153
|
toHref: function() {
|
|
17154
|
-
for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
17154
|
+
for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : pe.defaultProtocol, t = this.tk, n = !1, i = !1, o = [], s = 0; t[s].t === hn; )
|
|
17155
17155
|
n = !0, o.push(t[s].v), s++;
|
|
17156
17156
|
for (; t[s].t === Dt; )
|
|
17157
17157
|
i = !0, o.push(t[s].v), s++;
|
|
@@ -17572,36 +17572,36 @@ const $B = je.create({
|
|
|
17572
17572
|
];
|
|
17573
17573
|
}
|
|
17574
17574
|
});
|
|
17575
|
-
var Wo = 200,
|
|
17575
|
+
var Wo = 200, de = function() {
|
|
17576
17576
|
};
|
|
17577
|
-
|
|
17578
|
-
return e.length ? (e =
|
|
17577
|
+
de.prototype.append = function(e) {
|
|
17578
|
+
return e.length ? (e = de.from(e), !this.length && e || e.length < Wo && this.leafAppend(e) || this.length < Wo && e.leafPrepend(this) || this.appendInner(e)) : this;
|
|
17579
17579
|
};
|
|
17580
|
-
|
|
17581
|
-
return e.length ?
|
|
17580
|
+
de.prototype.prepend = function(e) {
|
|
17581
|
+
return e.length ? de.from(e).append(this) : this;
|
|
17582
17582
|
};
|
|
17583
|
-
|
|
17583
|
+
de.prototype.appendInner = function(e) {
|
|
17584
17584
|
return new zB(this, e);
|
|
17585
17585
|
};
|
|
17586
|
-
|
|
17587
|
-
return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ?
|
|
17586
|
+
de.prototype.slice = function(e, t) {
|
|
17587
|
+
return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? de.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
|
|
17588
17588
|
};
|
|
17589
|
-
|
|
17589
|
+
de.prototype.get = function(e) {
|
|
17590
17590
|
if (!(e < 0 || e >= this.length))
|
|
17591
17591
|
return this.getInner(e);
|
|
17592
17592
|
};
|
|
17593
|
-
|
|
17593
|
+
de.prototype.forEach = function(e, t, n) {
|
|
17594
17594
|
t === void 0 && (t = 0), n === void 0 && (n = this.length), t <= n ? this.forEachInner(e, t, n, 0) : this.forEachInvertedInner(e, t, n, 0);
|
|
17595
17595
|
};
|
|
17596
|
-
|
|
17596
|
+
de.prototype.map = function(e, t, n) {
|
|
17597
17597
|
t === void 0 && (t = 0), n === void 0 && (n = this.length);
|
|
17598
17598
|
var i = [];
|
|
17599
17599
|
return this.forEach(function(o, s) {
|
|
17600
17600
|
return i.push(e(o, s));
|
|
17601
17601
|
}, t, n), i;
|
|
17602
17602
|
};
|
|
17603
|
-
|
|
17604
|
-
return e instanceof
|
|
17603
|
+
de.from = function(e) {
|
|
17604
|
+
return e instanceof de ? e : e && e.length ? new Wg(e) : de.empty;
|
|
17605
17605
|
};
|
|
17606
17606
|
var Wg = /* @__PURE__ */ function(r) {
|
|
17607
17607
|
function e(n) {
|
|
@@ -17634,8 +17634,8 @@ var Wg = /* @__PURE__ */ function(r) {
|
|
|
17634
17634
|
}, t.depth.get = function() {
|
|
17635
17635
|
return 0;
|
|
17636
17636
|
}, Object.defineProperties(e.prototype, t), e;
|
|
17637
|
-
}(
|
|
17638
|
-
|
|
17637
|
+
}(de);
|
|
17638
|
+
de.empty = new Wg([]);
|
|
17639
17639
|
var zB = /* @__PURE__ */ function(r) {
|
|
17640
17640
|
function e(t, n) {
|
|
17641
17641
|
r.call(this), this.left = t, this.right = n, this.length = t.length + n.length, this.depth = Math.max(t.depth, n.depth) + 1;
|
|
@@ -17668,7 +17668,7 @@ var zB = /* @__PURE__ */ function(r) {
|
|
|
17668
17668
|
}, e.prototype.appendInner = function(n) {
|
|
17669
17669
|
return this.left.depth >= Math.max(this.right.depth, n.depth) + 1 ? new e(this.left, new e(this.right, n)) : new e(this, n);
|
|
17670
17670
|
}, e;
|
|
17671
|
-
}(
|
|
17671
|
+
}(de), qg = de;
|
|
17672
17672
|
const jB = 500;
|
|
17673
17673
|
class Je {
|
|
17674
17674
|
constructor(e, t) {
|
|
@@ -18247,30 +18247,30 @@ const Ra = 5, dp = 112, mL = {
|
|
|
18247
18247
|
return ((h = i.value) == null ? void 0 : h.$el) || document.body;
|
|
18248
18248
|
}), s = QP({
|
|
18249
18249
|
wrapperRef: i,
|
|
18250
|
-
isActiveRef:
|
|
18250
|
+
isActiveRef: ve(r, "active"),
|
|
18251
18251
|
offsets: r.toolbarOffsets
|
|
18252
18252
|
}), a = () => s.update();
|
|
18253
18253
|
function l(h) {
|
|
18254
18254
|
e("input", h), a();
|
|
18255
18255
|
}
|
|
18256
|
-
const u =
|
|
18257
|
-
content:
|
|
18256
|
+
const u = ve(r, "pageBlocks"), c = ZP({
|
|
18257
|
+
content: ve(r, "value"),
|
|
18258
18258
|
onChange: (h) => l(h),
|
|
18259
18259
|
extensions: fL({
|
|
18260
18260
|
fonts: t,
|
|
18261
18261
|
minFontSize: Ra,
|
|
18262
18262
|
maxFontSize: dp,
|
|
18263
|
-
presetsRef:
|
|
18263
|
+
presetsRef: ve(r, "presets"),
|
|
18264
18264
|
defaultPresetId: r.defaultPresetId,
|
|
18265
18265
|
makePresetVariable: r.makePresetVariable,
|
|
18266
18266
|
basePresetClass: r.basePresetClass,
|
|
18267
18267
|
baseListClass: r.baseListClass,
|
|
18268
|
-
deviceRef:
|
|
18268
|
+
deviceRef: ve(r, "device"),
|
|
18269
18269
|
pageBlocksRef: u,
|
|
18270
18270
|
wrapperRef: o
|
|
18271
18271
|
})
|
|
18272
18272
|
}), f = new Array(dp - Ra + 1).fill(0).map((h, p) => String(p + Ra)), d = new sI({
|
|
18273
|
-
listRef:
|
|
18273
|
+
listRef: ve(r, "favoriteColors"),
|
|
18274
18274
|
triggerUpdate: (h) => e("updateFavoriteColors", h)
|
|
18275
18275
|
});
|
|
18276
18276
|
return ut(L.EDITOR, c), ut(L.FONTS, t), ut(L.FONT_SIZES, f), ut(L.LOCAL_STORAGE, new oI(localStorage)), ut(L.FAVORITE_COLORS, d), ut(L.PAGE_BLOCKS, u), {
|