@g1cloud/page-builder-editor 1.0.0-alpha.93 → 1.0.0-alpha.95

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.
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createVNode } from "vue";
2
2
  import { vT, BSTextInput } from "@g1cloud/bluesea";
3
- import { P as PbColorPicker } from "./index-BU6dS8qI.js";
3
+ import { P as PbColorPicker } from "./index-B1eN8cQ9.js";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-color" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _hoisted_3 = { class: "bs-layout-horizontal flex-align-center color" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createVNode } from "vue";
2
2
  import { vT, BSTextInput } from "@g1cloud/bluesea";
3
- import { t as toCssLength } from "./index-BU6dS8qI.js";
3
+ import { t as toCssLength } from "./index-B1eN8cQ9.js";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-number flex-align-center" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createTextVNode, defineAsyncComponent } from "vue";
2
2
  import { useModal, vT } from "@g1cloud/bluesea";
3
- import { u as usePageBuilderEditor } from "./index-BU6dS8qI.js";
3
+ import { u as usePageBuilderEditor } from "./index-B1eN8cQ9.js";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-html flex-align-center" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createTextVNode, toDisplayString, createVNode, createCommentVNode, Fragment } from "vue";
2
- import { u as usePageBuilderEditor, C as ChangePropertyCommand } from "./index-BU6dS8qI.js";
2
+ import { u as usePageBuilderEditor, C as ChangePropertyCommand } from "./index-B1eN8cQ9.js";
3
3
  import { useModal, vT, BSButton, BSMultiLangTextInput, showNotification } from "@g1cloud/bluesea";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-image" };
5
5
  const _hoisted_2 = { class: "title" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createBlock } from "vue";
2
2
  import { vT, BSMultiLangTextArea, BSTextArea } from "@g1cloud/bluesea";
3
- import { u as usePageBuilderEditor } from "./index-BU6dS8qI.js";
3
+ import { u as usePageBuilderEditor } from "./index-B1eN8cQ9.js";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-multiline-text" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, withDirectives, unref, createBlock } from "vue";
2
2
  import { vT, BSMultiLangTextInput, BSTextInput } from "@g1cloud/bluesea";
3
- import { u as usePageBuilderEditor } from "./index-BU6dS8qI.js";
3
+ import { u as usePageBuilderEditor } from "./index-B1eN8cQ9.js";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-text flex-align-center" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref } from "vue";
2
2
  import { useModal, vT } from "@g1cloud/bluesea";
3
- import { s as selectYoutubeVideo } from "./index-BU6dS8qI.js";
3
+ import { s as selectYoutubeVideo } from "./index-B1eN8cQ9.js";
4
4
  const _hoisted_1 = { class: "property-editor property-editor-image flex-align-center" };
5
5
  const _hoisted_2 = { class: "title" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, withCtx, createElementVNode, createElementBlock, Fragment, renderList, toDisplayString } from "vue";
2
2
  import { useModalHandle, BSModalFrame } from "@g1cloud/bluesea";
3
- import { w as widgetPartDefinitions } from "./index-BU6dS8qI.js";
3
+ import { w as widgetPartDefinitions } from "./index-B1eN8cQ9.js";
4
4
  const _hoisted_1 = { class: "bs-layout-vertical pb-part-add-modal" };
5
5
  const _hoisted_2 = { class: "bs-layout-horizontal-wrap ml-16 mb-8 gap-8" };
6
6
  const _hoisted_3 = ["onClick", "textContent"];
@@ -6892,9 +6892,10 @@ const _sfc_main$b$1 = /* @__PURE__ */ defineComponent({
6892
6892
  const emit = __emit;
6893
6893
  const visible = ref(true);
6894
6894
  const updateVisible = (value) => {
6895
- var _a;
6895
+ var _a, _b;
6896
6896
  visible.value = value;
6897
- emit("update:visible", value, !!((_a = props.part.properties) == null ? void 0 : _a.hideParentWhenInvisible));
6897
+ const hideParentWhenInvisible = ((_a = props.part.properties) == null ? void 0 : _a.hideParentWhenInvisible) === true || ((_b = props.part.properties) == null ? void 0 : _b.hideParentWhenInvisible) === "true";
6898
+ emit("update:visible", value, hideParentWhenInvisible);
6898
6899
  };
6899
6900
  const classNames = computed(() => [getPartClassName(props.part), props.part.getClassNames()]);
6900
6901
  const style = computed(() => ({
@@ -7566,6 +7567,7 @@ const _sfc_main$4$1 = /* @__PURE__ */ defineComponent({
7566
7567
  isYTReady.value ? (openBlock(), createBlock$1(unref(YouTube), {
7567
7568
  key: 0,
7568
7569
  ref: "youtube",
7570
+ host: "https://www.youtube-nocookie.com",
7569
7571
  src: ((_b = _ctx.part.properties) == null ? void 0 : _b.url) || "",
7570
7572
  style: normalizeStyle(style.value),
7571
7573
  class: "youtube",
@@ -8559,16 +8561,16 @@ class PartManager {
8559
8561
  const defaultPartPropertyEditors = () => {
8560
8562
  return {
8561
8563
  "readonly-text": () => defineAsyncComponent(() => import("./PbPropertyEditorReadonlyText-BJ5qx69O.js")),
8562
- "text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-Clss82Du.js")),
8564
+ "text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-D8hq-KlF.js")),
8563
8565
  "number": () => defineAsyncComponent(() => import("./PbPropertyEditorNumber-B76ArSb5.js")),
8564
8566
  "boolean": () => defineAsyncComponent(() => import("./PbPropertyEditorBoolean-c5CNiTpt.js")),
8565
- "multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-DMBS1a7P.js")),
8567
+ "multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-C2rwaj4r.js")),
8566
8568
  "select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-B5sfulvx.js")),
8567
- "css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-BFWU-ySt.js")),
8568
- "color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-C50t8sK7.js")),
8569
- "image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-DpgO4tVs.js")),
8570
- "html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-VL8HtKGb.js")),
8571
- "youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-B6Lmr4k5.js"))
8569
+ "css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-BKKA6dk_.js")),
8570
+ "color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-BiBguem_.js")),
8571
+ "image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-C1IQgc0P.js")),
8572
+ "html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-CUPmDi2l.js")),
8573
+ "youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-DkkynkuY.js"))
8572
8574
  };
8573
8575
  };
8574
8576
  const getPropertyValueOfParts = (parts, propertyName) => {
@@ -13309,7 +13311,7 @@ __publicField(_OpenAddWidgetModalCommand, "COMMAND_ID", "OpenAddWidgetModal");
13309
13311
  let OpenAddWidgetModalCommand = _OpenAddWidgetModalCommand;
13310
13312
  const openWidgetAddModal = (modal, args, callback) => {
13311
13313
  modal.openModal({
13312
- component: defineAsyncComponent(() => import("./PbWidgetAddModal-BlxH-g-r.js")),
13314
+ component: defineAsyncComponent(() => import("./PbWidgetAddModal-C125UBym.js")),
13313
13315
  style: {
13314
13316
  width: "80%",
13315
13317
  height: "80%",
@@ -1,4 +1,4 @@
1
- import { B, b, M, c, d, e, _, a, f, g, h, i, j, k, l, m, n, R, o, S, p, W, q, r, v, x, y, z, A, D, E } from "./index-BU6dS8qI.js";
1
+ import { B, b, M, c, d, e, _, a, f, g, h, i, j, k, l, m, n, R, o, S, p, W, q, r, v, x, y, z, A, D, E } from "./index-B1eN8cQ9.js";
2
2
  export {
3
3
  B as BLOCK_TYPE,
4
4
  b as Block,
@@ -6893,9 +6893,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
6893
6893
  const emit = __emit;
6894
6894
  const visible = vue.ref(true);
6895
6895
  const updateVisible = (value) => {
6896
- var _a;
6896
+ var _a, _b;
6897
6897
  visible.value = value;
6898
- emit("update:visible", value, !!((_a = props.part.properties) == null ? void 0 : _a.hideParentWhenInvisible));
6898
+ const hideParentWhenInvisible = ((_a = props.part.properties) == null ? void 0 : _a.hideParentWhenInvisible) === true || ((_b = props.part.properties) == null ? void 0 : _b.hideParentWhenInvisible) === "true";
6899
+ emit("update:visible", value, hideParentWhenInvisible);
6899
6900
  };
6900
6901
  const classNames = vue.computed(() => [getPartClassName(props.part), props.part.getClassNames()]);
6901
6902
  const style = vue.computed(() => ({
@@ -7567,6 +7568,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
7567
7568
  isYTReady.value ? (vue.openBlock(), vue.createBlock(vue.unref(YouTube), {
7568
7569
  key: 0,
7569
7570
  ref: "youtube",
7571
+ host: "https://www.youtube-nocookie.com",
7570
7572
  src: ((_b = _ctx.part.properties) == null ? void 0 : _b.url) || "",
7571
7573
  style: vue.normalizeStyle(style.value),
7572
7574
  class: "youtube",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@g1cloud/page-builder-editor",
3
3
  "private": false,
4
- "version": "1.0.0-alpha.93",
4
+ "version": "1.0.0-alpha.95",
5
5
  "engins": {
6
6
  "node": ">= 20.0.0"
7
7
  },
@@ -31,7 +31,7 @@
31
31
  "vue-router": "^4.4.3",
32
32
  "vue3-click-away": "^1.2.4",
33
33
  "yjs": "^13.6.14",
34
- "@g1cloud/page-builder-viewer": "1.0.0-alpha.93"
34
+ "@g1cloud/page-builder-viewer": "1.0.0-alpha.95"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^20.12.7",