@myissue/vue-website-page-builder 3.4.89 → 3.4.91
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.
|
@@ -1727,17 +1727,16 @@ class Lw {
|
|
|
1727
1727
|
let o = !1;
|
|
1728
1728
|
const r = e.userSettings, s = r && r.language;
|
|
1729
1729
|
if ((!r || Jt(r) || !s || Jt(s)) && (o = !0), o) {
|
|
1730
|
-
const l = {
|
|
1730
|
+
const l = r ? { ...r } : {};
|
|
1731
|
+
l.language = {
|
|
1732
|
+
default: "en",
|
|
1733
|
+
enable: i
|
|
1734
|
+
};
|
|
1735
|
+
const a = {
|
|
1731
1736
|
...e,
|
|
1732
|
-
userSettings:
|
|
1733
|
-
...r,
|
|
1734
|
-
language: {
|
|
1735
|
-
default: "en",
|
|
1736
|
-
enable: i
|
|
1737
|
-
}
|
|
1738
|
-
}
|
|
1737
|
+
userSettings: l
|
|
1739
1738
|
};
|
|
1740
|
-
this.pageBuilderStateStore.setPageBuilderConfig(
|
|
1739
|
+
this.pageBuilderStateStore.setPageBuilderConfig(a);
|
|
1741
1740
|
return;
|
|
1742
1741
|
}
|
|
1743
1742
|
if (s && Array.isArray(s.enable) && s.default && !s.enable.includes(s.default)) {
|
|
@@ -1760,13 +1759,29 @@ class Lw {
|
|
|
1760
1759
|
* @private
|
|
1761
1760
|
*/
|
|
1762
1761
|
validateConfig(e) {
|
|
1762
|
+
var o;
|
|
1763
1763
|
const t = {
|
|
1764
1764
|
updateOrCreate: {
|
|
1765
1765
|
formType: "create",
|
|
1766
1766
|
formName: "post"
|
|
1767
1767
|
}
|
|
1768
1768
|
};
|
|
1769
|
-
(!e || e && Object.keys(e).length === 0 && e.constructor === Object)
|
|
1769
|
+
if (!e || e && Object.keys(e).length === 0 && e.constructor === Object) {
|
|
1770
|
+
this.pageBuilderStateStore.setPageBuilderConfig(t);
|
|
1771
|
+
return;
|
|
1772
|
+
}
|
|
1773
|
+
e && Object.keys(e).length !== 0 && e.constructor === Object && (this.ensureUpdateOrCreateConfig(e), (!e.resourceData || typeof e.resourceData.title != "string" || !e.resourceData.title.trim()) && (!e.resourceData || typeof e.resourceData != "object" ? e.resourceData = { title: "Default Post" } : e.resourceData.title = "Default Post"));
|
|
1774
|
+
let i = e;
|
|
1775
|
+
if (!i.userSettings || typeof i.userSettings != "object" || !("autoSave" in i.userSettings)) {
|
|
1776
|
+
const r = i.userSettings ? { ...i.userSettings } : {};
|
|
1777
|
+
r.autoSave = ((o = i.userSettings) == null ? void 0 : o.autoSave) !== !1;
|
|
1778
|
+
const s = {
|
|
1779
|
+
...i,
|
|
1780
|
+
userSettings: r
|
|
1781
|
+
};
|
|
1782
|
+
this.pageBuilderStateStore.setPageBuilderConfig(s), i = s;
|
|
1783
|
+
}
|
|
1784
|
+
this.ensureLanguage(i);
|
|
1770
1785
|
}
|
|
1771
1786
|
/**
|
|
1772
1787
|
* Saves user settings to local storage.
|
|
@@ -7637,7 +7652,7 @@ const IC = /* @__PURE__ */ AC("pageBuilderState", {
|
|
|
7637
7652
|
}, G2 = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, K2 = { class: "pbx-overflow-x-auto" }, J2 = { class: "pbx-w-max" }, Y2 = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, Q2 = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, X2 = { class: "pbx-min-w-[30rem] pbx-w-max" }, Z2 = { key: 0 }, ek = { key: 1 }, tk = { key: 0 }, nk = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, ik = { class: "pbx-min-w-[30rem] pbx-w-max" }, ok = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium" }, rk = { class: "pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-px-2 pbx-border pbx-border-solid pbx-border-gray-600 pbx-rounded-xl" }, sk = { class: "pbx-mt-4 pbx-whitespace-pre-wrap pbx-text-white pbx-overflow-hidden pbx-bg-gray-900" }, lk = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-white pbx-text-xs pbx-break-all" }, ak = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-text-white" }, dk = {
|
|
7638
7653
|
__name: "PageBuilderSettings",
|
|
7639
7654
|
setup(n) {
|
|
7640
|
-
const e = "3.4.
|
|
7655
|
+
const e = "3.4.91", t = fe, i = L(() => t.getPageBuilderConfig);
|
|
7641
7656
|
return (o, r) => {
|
|
7642
7657
|
var s, l, a, d, c, u, h, f, b, m, g, S, T, v, M, P;
|
|
7643
7658
|
return y(), w("div", DC, [
|