@g1cloud/page-builder-editor 1.0.0-alpha.28 → 1.0.0-alpha.29
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-Ph16JiGf.js → PbPropertyEditorColor-DD1lLnyZ.js} +1 -1
- package/dist/{PbPropertyEditorHtml-BQ9llP6f.js → PbPropertyEditorHtml-DOIdxTYF.js} +1 -1
- package/dist/{PbPropertyEditorImage-6ebH3rsd.js → PbPropertyEditorImage-CyRHBdCX.js} +1 -1
- package/dist/{PbPropertyEditorMultilineText-BjnxPdTc.js → PbPropertyEditorMultilineText-BgUqY40C.js} +1 -1
- package/dist/{PbPropertyEditorText-B19310oG.js → PbPropertyEditorText-C01cWJn3.js} +1 -1
- package/dist/{PbPropertyEditorYoutube-DJlDigCR.js → PbPropertyEditorYoutube-ybr-RA1K.js} +1 -1
- package/dist/{PbWidgetAddModal-DQYPJftS.js → PbWidgetAddModal-axGuf3UA.js} +1 -1
- package/dist/{index-D6sT9Qxe.js → index-D0CfudH-.js} +14 -9
- package/dist/page-builder-editor.js +1 -1
- package/dist/page-builder-editor.umd.cjs +7 -2
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, unref } from "vue";
|
|
2
2
|
import { BSTextInput } from "@g1cloud/bluesea";
|
|
3
|
-
import { P as PbColorPicker } from "./index-
|
|
3
|
+
import { P as PbColorPicker } from "./index-D0CfudH-.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-color" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _hoisted_3 = ["textContent"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, defineAsyncComponent } from "vue";
|
|
2
2
|
import { useModal } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-D0CfudH-.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 _hoisted_3 = ["textContent"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString } from "vue";
|
|
2
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
2
|
+
import { u as usePageBuilderEditor } from "./index-D0CfudH-.js";
|
|
3
3
|
import { useModal } from "@g1cloud/bluesea";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-image flex-align-center" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
package/dist/{PbPropertyEditorMultilineText-BjnxPdTc.js → PbPropertyEditorMultilineText-BgUqY40C.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, unref } from "vue";
|
|
2
2
|
import { BSMultiLangTextArea, BSTextArea } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-D0CfudH-.js";
|
|
4
4
|
const _hoisted_1 = { class: "property-editor property-editor-multiline-text" };
|
|
5
5
|
const _hoisted_2 = { class: "title" };
|
|
6
6
|
const _hoisted_3 = ["textContent"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, openBlock, createElementBlock, createElementVNode, toDisplayString, createBlock, unref } from "vue";
|
|
2
2
|
import { BSMultiLangTextInput, BSTextInput } from "@g1cloud/bluesea";
|
|
3
|
-
import { u as usePageBuilderEditor } from "./index-
|
|
3
|
+
import { u as usePageBuilderEditor } from "./index-D0CfudH-.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 _hoisted_3 = ["textContent"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString } from "vue";
|
|
2
2
|
import { useModal } from "@g1cloud/bluesea";
|
|
3
|
-
import { s as selectYoutubeVideo } from "./index-
|
|
3
|
+
import { s as selectYoutubeVideo } from "./index-D0CfudH-.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 _hoisted_3 = ["textContent"];
|
|
@@ -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-D0CfudH-.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"];
|
|
@@ -8131,13 +8131,13 @@ class PartManager {
|
|
|
8131
8131
|
const defaultPartPropertyEditors = () => {
|
|
8132
8132
|
return {
|
|
8133
8133
|
"readonly-text": () => defineAsyncComponent(() => import("./PbPropertyEditorReadonlyText-Dgp_AVOD.js")),
|
|
8134
|
-
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-
|
|
8135
|
-
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-
|
|
8134
|
+
"text": () => defineAsyncComponent(() => import("./PbPropertyEditorText-C01cWJn3.js")),
|
|
8135
|
+
"multiline-text": () => defineAsyncComponent(() => import("./PbPropertyEditorMultilineText-BgUqY40C.js")),
|
|
8136
8136
|
"select": () => defineAsyncComponent(() => import("./PbPropertyEditorSelect-CWedbXJI.js")),
|
|
8137
|
-
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-
|
|
8138
|
-
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-
|
|
8139
|
-
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-
|
|
8140
|
-
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-
|
|
8137
|
+
"color": () => defineAsyncComponent(() => import("./PbPropertyEditorColor-DD1lLnyZ.js")),
|
|
8138
|
+
"image": () => defineAsyncComponent(() => import("./PbPropertyEditorImage-CyRHBdCX.js")),
|
|
8139
|
+
"html": () => defineAsyncComponent(() => import("./PbPropertyEditorHtml-DOIdxTYF.js")),
|
|
8140
|
+
"youtube": () => defineAsyncComponent(() => import("./PbPropertyEditorYoutube-ybr-RA1K.js"))
|
|
8141
8141
|
};
|
|
8142
8142
|
};
|
|
8143
8143
|
const getPropertyValueOfParts = (parts, propertyName) => {
|
|
@@ -12415,7 +12415,7 @@ __publicField(_OpenAddWidgetModalCommand, "COMMAND_ID", "OpenAddWidgetModal");
|
|
|
12415
12415
|
let OpenAddWidgetModalCommand = _OpenAddWidgetModalCommand;
|
|
12416
12416
|
const openWidgetAddModal = (modal, args, callback) => {
|
|
12417
12417
|
modal.openModal({
|
|
12418
|
-
component: defineAsyncComponent(() => import("./PbWidgetAddModal-
|
|
12418
|
+
component: defineAsyncComponent(() => import("./PbWidgetAddModal-axGuf3UA.js")),
|
|
12419
12419
|
style: {
|
|
12420
12420
|
width: "80%",
|
|
12421
12421
|
height: "80%",
|
|
@@ -14263,6 +14263,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
14263
14263
|
setup(__props) {
|
|
14264
14264
|
const props = __props;
|
|
14265
14265
|
const editor = usePageBuilderEditor();
|
|
14266
|
+
const classNames = computed(() => {
|
|
14267
|
+
return [
|
|
14268
|
+
props.part.getClassNames()
|
|
14269
|
+
];
|
|
14270
|
+
});
|
|
14266
14271
|
const styleTag = computed(() => props.part.getStyleTag());
|
|
14267
14272
|
const style = computed(() => {
|
|
14268
14273
|
var _a, _b;
|
|
@@ -14312,9 +14317,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
14312
14317
|
innerHTML: styleTag.value
|
|
14313
14318
|
}, null, 8, ["innerHTML"])) : createCommentVNode("", true),
|
|
14314
14319
|
createElementVNode("div", {
|
|
14320
|
+
class: normalizeClass([classNames.value, "pb-page"]),
|
|
14315
14321
|
"data-part-id": (_a = _ctx.part) == null ? void 0 : _a.partId,
|
|
14316
14322
|
style: normalizeStyle(style.value),
|
|
14317
|
-
class: "pb-page",
|
|
14318
14323
|
onContextmenu: showContextMenu,
|
|
14319
14324
|
onMousedown: withModifiers(handleClick, ["stop"])
|
|
14320
14325
|
}, [
|
|
@@ -14335,7 +14340,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
14335
14340
|
}, _cache[0] || (_cache[0] = [
|
|
14336
14341
|
createElementVNode("i", { class: "material-icons-outlined" }, "add_circle_outline", -1)
|
|
14337
14342
|
]))
|
|
14338
|
-
],
|
|
14343
|
+
], 46, _hoisted_1$3),
|
|
14339
14344
|
_cache[1] || (_cache[1] = createElementVNode("div", { style: { "height": "100px" } }, null, -1))
|
|
14340
14345
|
], 64);
|
|
14341
14346
|
};
|
|
@@ -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, t, v, x, y, z, A, C } 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, t, v, x, y, z, A, C } from "./index-D0CfudH-.js";
|
|
2
2
|
export {
|
|
3
3
|
B as BLOCK_TYPE,
|
|
4
4
|
b as Block,
|
|
@@ -14264,6 +14264,11 @@ ${_html.style}
|
|
|
14264
14264
|
setup(__props) {
|
|
14265
14265
|
const props = __props;
|
|
14266
14266
|
const editor = usePageBuilderEditor();
|
|
14267
|
+
const classNames = vue.computed(() => {
|
|
14268
|
+
return [
|
|
14269
|
+
props.part.getClassNames()
|
|
14270
|
+
];
|
|
14271
|
+
});
|
|
14267
14272
|
const styleTag = vue.computed(() => props.part.getStyleTag());
|
|
14268
14273
|
const style = vue.computed(() => {
|
|
14269
14274
|
var _a, _b;
|
|
@@ -14313,9 +14318,9 @@ ${_html.style}
|
|
|
14313
14318
|
innerHTML: styleTag.value
|
|
14314
14319
|
}, null, 8, ["innerHTML"])) : vue.createCommentVNode("", true),
|
|
14315
14320
|
vue.createElementVNode("div", {
|
|
14321
|
+
class: vue.normalizeClass([classNames.value, "pb-page"]),
|
|
14316
14322
|
"data-part-id": (_a = _ctx.part) == null ? void 0 : _a.partId,
|
|
14317
14323
|
style: vue.normalizeStyle(style.value),
|
|
14318
|
-
class: "pb-page",
|
|
14319
14324
|
onContextmenu: showContextMenu,
|
|
14320
14325
|
onMousedown: vue.withModifiers(handleClick, ["stop"])
|
|
14321
14326
|
}, [
|
|
@@ -14336,7 +14341,7 @@ ${_html.style}
|
|
|
14336
14341
|
}, _cache[0] || (_cache[0] = [
|
|
14337
14342
|
vue.createElementVNode("i", { class: "material-icons-outlined" }, "add_circle_outline", -1)
|
|
14338
14343
|
]))
|
|
14339
|
-
],
|
|
14344
|
+
], 46, _hoisted_1$f),
|
|
14340
14345
|
_cache[1] || (_cache[1] = vue.createElementVNode("div", { style: { "height": "100px" } }, null, -1))
|
|
14341
14346
|
], 64);
|
|
14342
14347
|
};
|
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.29",
|
|
5
5
|
"engins": {
|
|
6
6
|
"node": ">= 20.0.0"
|
|
7
7
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"vue-router": "^4.4.3",
|
|
31
31
|
"vue3-click-away": "^1.2.4",
|
|
32
32
|
"yjs": "^13.6.14",
|
|
33
|
-
"@g1cloud/page-builder-viewer": "1.0.0-alpha.
|
|
33
|
+
"@g1cloud/page-builder-viewer": "1.0.0-alpha.29"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^20.12.7",
|