@g1cloud/page-builder-editor 1.0.0-alpha.84 → 1.0.0-alpha.85
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/dist/{PbPropertyEditorColor-Drq7aJIZ.js → PbPropertyEditorColor-Bti0mVmo.js} +1 -1
- package/dist/{PbPropertyEditorCssLength-OmHOXifI.js → PbPropertyEditorCssLength-BwkrC9am.js} +1 -1
- package/dist/{PbPropertyEditorHtml-Ce3uSfj1.js → PbPropertyEditorHtml-wnS2l_pT.js} +1 -1
- package/dist/{PbPropertyEditorImage-Dv6SR-r1.js → PbPropertyEditorImage-Bv5gVaiP.js} +1 -1
- package/dist/{PbPropertyEditorMultilineText-BGl9Ymfs.js → PbPropertyEditorMultilineText-BpFMGEOv.js} +1 -1
- package/dist/{PbPropertyEditorText-_pmqNt0Q.js → PbPropertyEditorText-E92cKCb2.js} +1 -1
- package/dist/{PbPropertyEditorYoutube-C9V3otnf.js → PbPropertyEditorYoutube-DRguFXvJ.js} +1 -1
- package/dist/{PbWidgetAddModal-DTdNz5d_.js → PbWidgetAddModal-_yFu9o2c.js} +1 -1
- package/dist/{index-7cKWXpSb.js → index-yhrcYaQY.js} +31 -23
- package/dist/page-builder-editor.js +1 -1
- package/dist/page-builder-editor.umd.cjs +23 -15
- package/package.json +2 -2
|
@@ -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-
|
|
3
|
+
import { P as PbColorPicker } from "./index-yhrcYaQY.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" };
|
package/dist/{PbPropertyEditorCssLength-OmHOXifI.js → PbPropertyEditorCssLength-BwkrC9am.js}
RENAMED
|
@@ -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-
|
|
3
|
+
import { t as toCssLength } from "./index-yhrcYaQY.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-
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-yhrcYaQY.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-
|
|
2
|
+
import { u as usePageBuilderEditor, C as ChangePropertyCommand } from "./index-yhrcYaQY.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" };
|
package/dist/{PbPropertyEditorMultilineText-BGl9Ymfs.js → PbPropertyEditorMultilineText-BpFMGEOv.js}
RENAMED
|
@@ -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-
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-yhrcYaQY.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-
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-yhrcYaQY.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-
|
|
3
|
+
import { s as selectYoutubeVideo } from "./index-yhrcYaQY.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-
|
|
3
|
+
import { w as widgetPartDefinitions } from "./index-yhrcYaQY.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"];
|
|
@@ -7083,7 +7083,7 @@ const _sfc_main$9$1 = /* @__PURE__ */ defineComponent({
|
|
|
7083
7083
|
}
|
|
7084
7084
|
});
|
|
7085
7085
|
const _hoisted_1$7$1 = ["href", "target"];
|
|
7086
|
-
const _hoisted_2$
|
|
7086
|
+
const _hoisted_2$4$1 = ["alt", "src"];
|
|
7087
7087
|
const _hoisted_3$d = ["alt", "src"];
|
|
7088
7088
|
const _hoisted_4$b = ["poster"];
|
|
7089
7089
|
const _hoisted_5$8 = ["src"];
|
|
@@ -7142,7 +7142,7 @@ const _sfc_main$8$1 = /* @__PURE__ */ defineComponent({
|
|
|
7142
7142
|
src: ((_d = _ctx.part.properties) == null ? void 0 : _d.media).fileUrl,
|
|
7143
7143
|
style: normalizeStyle(style.value),
|
|
7144
7144
|
class: "image"
|
|
7145
|
-
}, null, 12, _hoisted_2$
|
|
7145
|
+
}, null, 12, _hoisted_2$4$1)
|
|
7146
7146
|
], 8, _hoisted_1$7$1)) : (openBlock(), createElementBlock("img", {
|
|
7147
7147
|
key: 1,
|
|
7148
7148
|
alt: altText.value,
|
|
@@ -7168,7 +7168,7 @@ const _sfc_main$8$1 = /* @__PURE__ */ defineComponent({
|
|
|
7168
7168
|
}
|
|
7169
7169
|
});
|
|
7170
7170
|
const _hoisted_1$6$1 = ["textContent"];
|
|
7171
|
-
const _hoisted_2$
|
|
7171
|
+
const _hoisted_2$3$1 = {
|
|
7172
7172
|
key: 1,
|
|
7173
7173
|
class: "placeholder",
|
|
7174
7174
|
textContent: "Empty Text"
|
|
@@ -7208,12 +7208,12 @@ const _sfc_main$7$1 = /* @__PURE__ */ defineComponent({
|
|
|
7208
7208
|
style: normalizeStyle(style.value),
|
|
7209
7209
|
class: "text",
|
|
7210
7210
|
textContent: toDisplayString(text.value)
|
|
7211
|
-
}, null, 12, _hoisted_1$6$1)) : _ctx.placeholder ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
7211
|
+
}, null, 12, _hoisted_1$6$1)) : _ctx.placeholder ? (openBlock(), createElementBlock("div", _hoisted_2$3$1)) : createCommentVNode("", true);
|
|
7212
7212
|
};
|
|
7213
7213
|
}
|
|
7214
7214
|
});
|
|
7215
7215
|
const _hoisted_1$5$1 = ["innerHTML"];
|
|
7216
|
-
const _hoisted_2$
|
|
7216
|
+
const _hoisted_2$2$1 = {
|
|
7217
7217
|
key: 1,
|
|
7218
7218
|
class: "placeholder",
|
|
7219
7219
|
textContent: "Empty HTML"
|
|
@@ -7302,12 +7302,12 @@ const _sfc_main$6$1 = /* @__PURE__ */ defineComponent({
|
|
|
7302
7302
|
ref: partRef,
|
|
7303
7303
|
class: "html",
|
|
7304
7304
|
innerHTML: (_b = html.value) == null ? void 0 : _b.tags
|
|
7305
|
-
}, null, 8, _hoisted_1$5$1)) : _ctx.placeholder ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
7305
|
+
}, null, 8, _hoisted_1$5$1)) : _ctx.placeholder ? (openBlock(), createElementBlock("div", _hoisted_2$2$1)) : createCommentVNode("", true);
|
|
7306
7306
|
};
|
|
7307
7307
|
}
|
|
7308
7308
|
});
|
|
7309
7309
|
const _hoisted_1$4$1 = ["src"];
|
|
7310
|
-
const _hoisted_2$
|
|
7310
|
+
const _hoisted_2$1$1 = {
|
|
7311
7311
|
key: 1,
|
|
7312
7312
|
class: "placeholder",
|
|
7313
7313
|
textContent: "Empty URL"
|
|
@@ -7455,7 +7455,7 @@ const _sfc_main$5$1 = /* @__PURE__ */ defineComponent({
|
|
|
7455
7455
|
ref: iframeRef,
|
|
7456
7456
|
src: url.value,
|
|
7457
7457
|
style: normalizeStyle(style.value)
|
|
7458
|
-
}, null, 12, _hoisted_1$4$1)) : _ctx.placeholder ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
7458
|
+
}, null, 12, _hoisted_1$4$1)) : _ctx.placeholder ? (openBlock(), createElementBlock("div", _hoisted_2$1$1)) : createCommentVNode("", true);
|
|
7459
7459
|
};
|
|
7460
7460
|
}
|
|
7461
7461
|
});
|
|
@@ -7772,7 +7772,8 @@ const _sfc_main$3$1 = /* @__PURE__ */ defineComponent({
|
|
|
7772
7772
|
};
|
|
7773
7773
|
}
|
|
7774
7774
|
});
|
|
7775
|
-
const _hoisted_1$1$1 =
|
|
7775
|
+
const _hoisted_1$1$1 = ["innerHTML"];
|
|
7776
|
+
const _hoisted_2$i = { class: "pb-viewer" };
|
|
7776
7777
|
const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
7777
7778
|
__name: "PageBuilderViewer",
|
|
7778
7779
|
props: {
|
|
@@ -7788,6 +7789,7 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
7788
7789
|
if (props.plugin) viewer.registerCustomPlugin(props.plugin);
|
|
7789
7790
|
providePageBuilderViewer(viewer);
|
|
7790
7791
|
providePageBuilder(viewer);
|
|
7792
|
+
const externalCss = viewer.getExternalCss();
|
|
7791
7793
|
const part = computed(() => {
|
|
7792
7794
|
const parts = viewer.model.rootPart.value.children;
|
|
7793
7795
|
if (!parts || !parts.length) return;
|
|
@@ -7834,13 +7836,19 @@ const _sfc_main$2$1 = /* @__PURE__ */ defineComponent({
|
|
|
7834
7836
|
removeStyleTag();
|
|
7835
7837
|
});
|
|
7836
7838
|
return (_ctx, _cache) => {
|
|
7837
|
-
return openBlock(), createElementBlock(
|
|
7838
|
-
|
|
7839
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
7840
|
+
unref(externalCss) ? (openBlock(), createElementBlock("div", {
|
|
7839
7841
|
key: 0,
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7842
|
+
innerHTML: unref(externalCss)
|
|
7843
|
+
}, null, 8, _hoisted_1$1$1)) : createCommentVNode("", true),
|
|
7844
|
+
createElementVNode("div", _hoisted_2$i, [
|
|
7845
|
+
part.value ? (openBlock(), createBlock$1(_sfc_main$3$1, {
|
|
7846
|
+
key: 0,
|
|
7847
|
+
"is-mobile-page": _ctx.isMobilePage,
|
|
7848
|
+
part: part.value
|
|
7849
|
+
}, null, 8, ["is-mobile-page", "part"])) : createCommentVNode("", true)
|
|
7850
|
+
])
|
|
7851
|
+
], 64);
|
|
7844
7852
|
};
|
|
7845
7853
|
}
|
|
7846
7854
|
});
|
|
@@ -8473,16 +8481,16 @@ class PartManager {
|
|
|
8473
8481
|
const defaultPartPropertyEditors = () => {
|
|
8474
8482
|
return {
|
|
8475
8483
|
"readonly-text": () => defineAsyncComponent(() => import("./PbPropertyEditorReadonlyText-BJ5qx69O.js")),
|
|
8476
|
-
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-
|
|
8484
|
+
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-E92cKCb2.js")),
|
|
8477
8485
|
"number": () => defineAsyncComponent(() => import("./PbPropertyEditorNumber-B76ArSb5.js")),
|
|
8478
8486
|
"boolean": () => defineAsyncComponent(() => import("./PbPropertyEditorBoolean-c5CNiTpt.js")),
|
|
8479
|
-
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-
|
|
8487
|
+
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-BpFMGEOv.js")),
|
|
8480
8488
|
"select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-B5sfulvx.js")),
|
|
8481
|
-
"css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-
|
|
8482
|
-
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-
|
|
8483
|
-
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-
|
|
8484
|
-
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-
|
|
8485
|
-
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-
|
|
8489
|
+
"css-length": () => defineAsyncComponent(() => import("./PbPropertyEditorCssLength-BwkrC9am.js")),
|
|
8490
|
+
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-Bti0mVmo.js")),
|
|
8491
|
+
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-Bv5gVaiP.js")),
|
|
8492
|
+
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-wnS2l_pT.js")),
|
|
8493
|
+
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-DRguFXvJ.js"))
|
|
8486
8494
|
};
|
|
8487
8495
|
};
|
|
8488
8496
|
const getPropertyValueOfParts = (parts, propertyName) => {
|
|
@@ -13122,7 +13130,7 @@ __publicField(_OpenAddWidgetModalCommand, "COMMAND_ID", "OpenAddWidgetModal");
|
|
|
13122
13130
|
let OpenAddWidgetModalCommand = _OpenAddWidgetModalCommand;
|
|
13123
13131
|
const openWidgetAddModal = (modal, args, callback) => {
|
|
13124
13132
|
modal.openModal({
|
|
13125
|
-
component: defineAsyncComponent(() => import("./PbWidgetAddModal-
|
|
13133
|
+
component: defineAsyncComponent(() => import("./PbWidgetAddModal-_yFu9o2c.js")),
|
|
13126
13134
|
style: {
|
|
13127
13135
|
width: "80%",
|
|
13128
13136
|
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-
|
|
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-yhrcYaQY.js";
|
|
2
2
|
export {
|
|
3
3
|
B as BLOCK_TYPE,
|
|
4
4
|
b as Block,
|
|
@@ -7084,7 +7084,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7084
7084
|
}
|
|
7085
7085
|
});
|
|
7086
7086
|
const _hoisted_1$7$1 = ["href", "target"];
|
|
7087
|
-
const _hoisted_2$
|
|
7087
|
+
const _hoisted_2$4$1 = ["alt", "src"];
|
|
7088
7088
|
const _hoisted_3$k = ["alt", "src"];
|
|
7089
7089
|
const _hoisted_4$f = ["poster"];
|
|
7090
7090
|
const _hoisted_5$b = ["src"];
|
|
@@ -7143,7 +7143,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7143
7143
|
src: ((_d = _ctx.part.properties) == null ? void 0 : _d.media).fileUrl,
|
|
7144
7144
|
style: vue.normalizeStyle(style.value),
|
|
7145
7145
|
class: "image"
|
|
7146
|
-
}, null, 12, _hoisted_2$
|
|
7146
|
+
}, null, 12, _hoisted_2$4$1)
|
|
7147
7147
|
], 8, _hoisted_1$7$1)) : (vue.openBlock(), vue.createElementBlock("img", {
|
|
7148
7148
|
key: 1,
|
|
7149
7149
|
alt: altText.value,
|
|
@@ -7169,7 +7169,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7169
7169
|
}
|
|
7170
7170
|
});
|
|
7171
7171
|
const _hoisted_1$6$1 = ["textContent"];
|
|
7172
|
-
const _hoisted_2$
|
|
7172
|
+
const _hoisted_2$3$1 = {
|
|
7173
7173
|
key: 1,
|
|
7174
7174
|
class: "placeholder",
|
|
7175
7175
|
textContent: "Empty Text"
|
|
@@ -7209,12 +7209,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7209
7209
|
style: vue.normalizeStyle(style.value),
|
|
7210
7210
|
class: "text",
|
|
7211
7211
|
textContent: vue.toDisplayString(text.value)
|
|
7212
|
-
}, null, 12, _hoisted_1$6$1)) : _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
7212
|
+
}, null, 12, _hoisted_1$6$1)) : _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$3$1)) : vue.createCommentVNode("", true);
|
|
7213
7213
|
};
|
|
7214
7214
|
}
|
|
7215
7215
|
});
|
|
7216
7216
|
const _hoisted_1$5$1 = ["innerHTML"];
|
|
7217
|
-
const _hoisted_2$
|
|
7217
|
+
const _hoisted_2$2$1 = {
|
|
7218
7218
|
key: 1,
|
|
7219
7219
|
class: "placeholder",
|
|
7220
7220
|
textContent: "Empty HTML"
|
|
@@ -7303,12 +7303,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7303
7303
|
ref: partRef,
|
|
7304
7304
|
class: "html",
|
|
7305
7305
|
innerHTML: (_b = html.value) == null ? void 0 : _b.tags
|
|
7306
|
-
}, null, 8, _hoisted_1$5$1)) : _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
7306
|
+
}, null, 8, _hoisted_1$5$1)) : _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$2$1)) : vue.createCommentVNode("", true);
|
|
7307
7307
|
};
|
|
7308
7308
|
}
|
|
7309
7309
|
});
|
|
7310
7310
|
const _hoisted_1$4$1 = ["src"];
|
|
7311
|
-
const _hoisted_2$
|
|
7311
|
+
const _hoisted_2$1$1 = {
|
|
7312
7312
|
key: 1,
|
|
7313
7313
|
class: "placeholder",
|
|
7314
7314
|
textContent: "Empty URL"
|
|
@@ -7456,7 +7456,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7456
7456
|
ref: iframeRef,
|
|
7457
7457
|
src: url.value,
|
|
7458
7458
|
style: vue.normalizeStyle(style.value)
|
|
7459
|
-
}, null, 12, _hoisted_1$4$1)) : _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$
|
|
7459
|
+
}, null, 12, _hoisted_1$4$1)) : _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$1$1)) : vue.createCommentVNode("", true);
|
|
7460
7460
|
};
|
|
7461
7461
|
}
|
|
7462
7462
|
});
|
|
@@ -7773,7 +7773,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7773
7773
|
};
|
|
7774
7774
|
}
|
|
7775
7775
|
});
|
|
7776
|
-
const _hoisted_1$1$1 =
|
|
7776
|
+
const _hoisted_1$1$1 = ["innerHTML"];
|
|
7777
|
+
const _hoisted_2$w = { class: "pb-viewer" };
|
|
7777
7778
|
const _sfc_main$2$1 = /* @__PURE__ */ vue.defineComponent({
|
|
7778
7779
|
__name: "PageBuilderViewer",
|
|
7779
7780
|
props: {
|
|
@@ -7789,6 +7790,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7789
7790
|
if (props.plugin) viewer.registerCustomPlugin(props.plugin);
|
|
7790
7791
|
providePageBuilderViewer(viewer);
|
|
7791
7792
|
providePageBuilder(viewer);
|
|
7793
|
+
const externalCss = viewer.getExternalCss();
|
|
7792
7794
|
const part = vue.computed(() => {
|
|
7793
7795
|
const parts = viewer.model.rootPart.value.children;
|
|
7794
7796
|
if (!parts || !parts.length) return;
|
|
@@ -7835,13 +7837,19 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
7835
7837
|
removeStyleTag();
|
|
7836
7838
|
});
|
|
7837
7839
|
return (_ctx, _cache) => {
|
|
7838
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
7839
|
-
|
|
7840
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
7841
|
+
vue.unref(externalCss) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
7840
7842
|
key: 0,
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7843
|
+
innerHTML: vue.unref(externalCss)
|
|
7844
|
+
}, null, 8, _hoisted_1$1$1)) : vue.createCommentVNode("", true),
|
|
7845
|
+
vue.createElementVNode("div", _hoisted_2$w, [
|
|
7846
|
+
part.value ? (vue.openBlock(), vue.createBlock(_sfc_main$3$1, {
|
|
7847
|
+
key: 0,
|
|
7848
|
+
"is-mobile-page": _ctx.isMobilePage,
|
|
7849
|
+
part: part.value
|
|
7850
|
+
}, null, 8, ["is-mobile-page", "part"])) : vue.createCommentVNode("", true)
|
|
7851
|
+
])
|
|
7852
|
+
], 64);
|
|
7845
7853
|
};
|
|
7846
7854
|
}
|
|
7847
7855
|
});
|
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.
|
|
4
|
+
"version": "1.0.0-alpha.85",
|
|
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.
|
|
34
|
+
"@g1cloud/page-builder-viewer": "1.0.0-alpha.85"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^20.12.7",
|