@myissue/vue-website-page-builder 3.3.15 → 3.3.18

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/README.md CHANGED
@@ -66,7 +66,6 @@ The Page Builder is packed with features:
66
66
  - **Reordering**: Change the order of your content without hassle.
67
67
  - **True Visual Editing**: See your changes in real-time as you make them.
68
68
  - **Media Library**: Easily inject your own custom media library component.
69
- -
70
69
  - **Local Storage & Auto-Save**: Never lose your work - changes are saved as you go.
71
70
  - **Unsplash**: Unsplash Integration.
72
71
  - **Responsive Editing**: Ensure your site looks great on all devices.
@@ -1542,13 +1542,10 @@ class hx {
1542
1542
  }
1543
1543
  cloneCompObjForDOMInsertion(t) {
1544
1544
  const e = { ...t }, o = document.querySelector("#contains-pagebuilder");
1545
- o && (this.getComponentArrayAddMethod.value === "unshift" && o.scrollTo({
1545
+ o && this.getComponentArrayAddMethod.value === "unshift" && o.scrollTo({
1546
1546
  top: 0,
1547
1547
  behavior: "smooth"
1548
- }), this.getComponentArrayAddMethod.value === "push" && o.scrollTo({
1549
- top: o.scrollHeight + 400,
1550
- behavior: "smooth"
1551
- }));
1548
+ });
1552
1549
  const i = new DOMParser().parseFromString(e.html_code || "", "text/html");
1553
1550
  i.querySelectorAll("*").forEach((l) => {
1554
1551
  V(this, R, Rc).call(this, l);
@@ -1871,7 +1868,12 @@ class hx {
1871
1868
  });
1872
1869
  this.pageBuilderStateStore.setPushComponents({
1873
1870
  component: e,
1874
- componentArrayAddMethod: this.getComponentArrayAddMethod.value || "push"
1871
+ componentArrayAddMethod: this.getComponentArrayAddMethod.value ? this.getComponentArrayAddMethod.value : "push"
1872
+ });
1873
+ const o = document.querySelector("#contains-pagebuilder");
1874
+ o && this.getComponentArrayAddMethod.value === "push" && o.scrollTo({
1875
+ top: o.scrollHeight + 50,
1876
+ behavior: "smooth"
1875
1877
  }), await lt(), await Jt(this, oe).call(this), await this.handleAutoSave();
1876
1878
  } catch (e) {
1877
1879
  console.error("Error adding component:", e);
@@ -23257,7 +23259,7 @@ const h3 = ["src"], f3 = {
23257
23259
  }, Z4 = { class: "pbx-overflow-hidden pbx-shadow pbx-ring-1 pbx-ring-black pbx-ring-opacity-5 md:pbx-rounded-lg" }, tS = { class: "pbx-overflow-x-auto" }, eS = { class: "pbx-w-max" }, rS = { class: "pbx-bg-white pbx-divide-y pbx-divide-gray-200" }, oS = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, nS = { class: "pbx-min-w-[30rem] pbx-w-max" }, iS = { key: 0 }, aS = { key: 1 }, sS = { key: 0 }, lS = { class: "pbx-px-6 pbx-py-4 pbx-whitespace-nowrap pbx-text-sm pbx-text-gray-500" }, pS = { class: "pbx-min-w-[30rem] pbx-w-max" }, dS = { class: "pbx-inline-flex pbx-items-center pbx-px-2.5 pbx-py-0.5 pbx-rounded-full pbx-text-xs pbx-font-medium" }, cS = { class: "pbx-mt-4 pbx-mb-4 pbx-py-8 pbx-border-b pbx-border-myPrimbryLightGrayColor" }, mS = { class: "pbx-mt-4 pbx-whitespace-pre-wrap pbx-text-white pbx-overflow-hidden pbx-bg-gray-900" }, bS = { class: "pbx-px-4 pbx-pb-8 pbx-pt-4 pbx-text-white pbx-text-xs pbx-break-all" }, uS = { class: "pbx-myPrimaryParagraph pbx-text-xs pbx-text-white" }, xS = {
23258
23260
  __name: "PageBuilderSettings",
23259
23261
  setup(r) {
23260
- const t = "v3.3.15", e = Et, o = S(null), n = $(() => e.getPageBuilderConfig), i = $(() => e.getComponents), a = function(l, p) {
23262
+ const t = "3.3.18", e = Et, o = S(null), n = $(() => e.getPageBuilderConfig), i = $(() => e.getComponents), a = function(l, p) {
23261
23263
  const d = document.createElement("a");
23262
23264
  d.setAttribute(
23263
23265
  "href",
@@ -23597,7 +23599,7 @@ const h3 = ["src"], f3 = {
23597
23599
  m("div", cS, [
23598
23600
  p[29] || (p[29] = m("div", { class: "pbx-flex pbx-items-left pbx-flex-col pbx-gap-1" }, [
23599
23601
  m("h3", { class: "pbx-myQuaternaryHeader" }, "Complete Configuration Overview"),
23600
- m("p", { class: "pbx-myPrimaryParagraph pbx-text-xs" }, " omplete configuration object currently used by the Page Builder. It includes information about the user, form behavior, branding settings, and other context-specific data needed for rendering and managing the builder environment. ")
23602
+ m("p", { class: "pbx-myPrimaryParagraph pbx-text-xs" }, " Complete configuration object currently used by the Page Builder. Includes user information, branding settings, and other context-specific data needed for rendering and managing the builder environment. ")
23601
23603
  ], -1)),
23602
23604
  m("div", mS, [
23603
23605
  p[28] || (p[28] = m("div", { class: "pbx-flex bg-gray-800/40 pbx-ring-1 ring-white/5" }, [
@@ -24026,7 +24028,7 @@ const V6 = /* @__PURE__ */ Za(F6, [["render", j6]]), W6 = { class: "pbx-font-san
24026
24028
  }, aC = { class: "pbx-flex pbx-items-center pbx-justify-center pbx-gap-4" }, sC = {
24027
24029
  id: "contains-pagebuilder",
24028
24030
  class: "pbx-pl-4 pbx-pr-4 pbx-pb-4 pbx-overflow-y-auto pbx-pt-1 pbx-h-[39rem]"
24029
- }, lC = { id: "pagebuilder" }, pC = ["onMouseup"], dC = ["innerHTML"], cC = { class: "pbx-flex pbx-items-center pbx-justify-center pbx-border-t pbx-border-gray-200 pbx-cursor-pointer pbx-py-4" }, hC = {
24031
+ }, lC = { id: "pagebuilder" }, pC = ["onMouseup"], dC = ["innerHTML"], cC = { class: "pbx-flex pbx-items-center pbx-justify-center pbx-border-t pbx-border-gray-200 pbx-py-4" }, hC = {
24030
24032
  __name: "PageBuilder",
24031
24033
  props: {
24032
24034
  CustomMediaLibraryComponent: {
@@ -24420,7 +24422,7 @@ const V6 = /* @__PURE__ */ Za(F6, [["render", j6]]), W6 = { class: "pbx-font-san
24420
24422
  onClick: L[16] || (L[16] = () => {
24421
24423
  O(n).setComponentArrayAddMethod("push"), k();
24422
24424
  }),
24423
- class: "pbx-flex pbx-items-center pbx-justify-center pbx-gap-2"
24425
+ class: "pbx-flex pbx-items-center pbx-justify-center pbx-gap-2 pbx-cursor-pointer"
24424
24426
  }, L[32] || (L[32] = [
24425
24427
  Bp('<span class="lg:pbx-block pbx-hidden"><div class="pbx-whitespace-nowrap">Add to the bottom</div></span><div class="pbx-flex pbx-gap-2 pbx-items-center pbx-justify-center"><button type="button" class="pbx-h-10 pbx-w-10 pbx-cursor-pointer pbx-rounded-full pbx-flex pbx-items-center pbx-border-none pbx-justify-center pbx-bg-gray-50 pbx-aspect-square hover:pbx-bg-myPrimaryLinkColor hover:pbx-text-white focus-visible:pbx-ring-0"><span class="pbx-myMediumIcon material-symbols-outlined"> interests </span></button></div>', 2)
24426
24428
  ]))