@g1cloud/page-builder-editor 1.0.0-alpha.53 → 1.0.0-alpha.54
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/css/property-editor-image.scss +1 -1
- package/css/property-group-editor-media.scss +1 -1
- package/dist/{PbPropertyEditorColor-Db3UUuLc.js → PbPropertyEditorColor-kyvEt6xI.js} +1 -1
- package/dist/{PbPropertyEditorHtml-CoxUtACW.js → PbPropertyEditorHtml-BuKh8j3Z.js} +1 -1
- package/dist/PbPropertyEditorImage-CMomDUUw.js +106 -0
- package/dist/{PbPropertyEditorMultilineText-C43eDCgk.js → PbPropertyEditorMultilineText-Cpz6njhD.js} +1 -1
- package/dist/{PbPropertyEditorText-DmTjpx6J.js → PbPropertyEditorText-BPFRUHyB.js} +1 -1
- package/dist/{PbPropertyEditorYoutube-DPX-k3c5.js → PbPropertyEditorYoutube-D88m-cfy.js} +1 -1
- package/dist/{PbWidgetAddModal-CoT-pyXr.js → PbWidgetAddModal-3npSogG0.js} +1 -1
- package/dist/components/sidebar/property/PbPropertyEditorImage.vue.d.ts +4 -8
- package/dist/{index-DkU6TZPE.js → index-BrJ6BLmW.js} +124 -189
- package/dist/page-builder-editor.js +14 -15
- package/dist/page-builder-editor.umd.cjs +244 -247
- package/package.json +2 -2
- package/dist/PbPropertyEditorImage-B73oOweb.js +0 -43
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.54",
|
|
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.54"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^20.12.7",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createElementVNode, withDirectives, unref } from "vue";
|
|
2
|
-
import { u as usePageBuilderEditor } from "./index-DkU6TZPE.js";
|
|
3
|
-
import { useModal, vT } from "@g1cloud/bluesea";
|
|
4
|
-
const _hoisted_1 = { class: "property-editor property-editor-image flex-align-center" };
|
|
5
|
-
const _hoisted_2 = { class: "title" };
|
|
6
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
|
-
__name: "PbPropertyEditorImage",
|
|
8
|
-
props: {
|
|
9
|
-
property: {},
|
|
10
|
-
value: {}
|
|
11
|
-
},
|
|
12
|
-
emits: ["update-property-value"],
|
|
13
|
-
setup(__props, { emit: __emit }) {
|
|
14
|
-
const pageBuilder = usePageBuilderEditor();
|
|
15
|
-
const modal = useModal();
|
|
16
|
-
const emit = __emit;
|
|
17
|
-
const selectImage = () => {
|
|
18
|
-
const imageProvider = pageBuilder.getProvider("imageProvider");
|
|
19
|
-
if (imageProvider) {
|
|
20
|
-
imageProvider({ modal }, (media) => {
|
|
21
|
-
emit("update-property-value", { media, altText: media.altText });
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
return (_ctx, _cache) => {
|
|
26
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
27
|
-
createElementVNode("div", _hoisted_2, [
|
|
28
|
-
withDirectives(createElementVNode("label", null, null, 512), [
|
|
29
|
-
[unref(vT), { key: _ctx.property.caption }]
|
|
30
|
-
])
|
|
31
|
-
]),
|
|
32
|
-
createElementVNode("div", null, [
|
|
33
|
-
withDirectives(createElementVNode("button", { onClick: selectImage }, null, 512), [
|
|
34
|
-
[unref(vT), { key: "pb.prop.selectImage" }]
|
|
35
|
-
])
|
|
36
|
-
])
|
|
37
|
-
]);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
export {
|
|
42
|
-
_sfc_main as default
|
|
43
|
-
};
|