@dcodegroup-au/page-builder 0.5.7 → 0.5.8

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.
@@ -45943,14 +45943,18 @@ const _sfc_main$t = {
45943
45943
  title: ((_a = dataRef.value) == null ? void 0 : _a.upload_title) ? dataRef.value.upload_title : "Featured Image",
45944
45944
  supporting_text: "Recommended dimension: 1200*1060px"
45945
45945
  }, {
45946
- default: withCtx(() => [
45947
- createVNode(unref(VFileUpload), {
45948
- name: "image",
45949
- height: "h-[395px]",
45950
- modelValue: dataRef.value.featured_image,
45951
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dataRef.value.featured_image = $event)
45952
- }, null, 8, ["modelValue"])
45953
- ]),
45946
+ default: withCtx(() => {
45947
+ var _a2;
45948
+ return [
45949
+ createVNode(unref(VFileUpload), {
45950
+ name: "image",
45951
+ type: ((_a2 = dataRef.value) == null ? void 0 : _a2.source_type) ?? "image",
45952
+ height: "h-[395px]",
45953
+ modelValue: dataRef.value.featured_image,
45954
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dataRef.value.featured_image = $event)
45955
+ }, null, 8, ["type", "modelValue"])
45956
+ ];
45957
+ }),
45954
45958
  _: 1
45955
45959
  }, 8, ["title"])
45956
45960
  ])) : createCommentVNode("", true),
@@ -45946,14 +45946,18 @@ ${escapeText(this.code(index, length))}
45946
45946
  title: ((_a = dataRef.value) == null ? void 0 : _a.upload_title) ? dataRef.value.upload_title : "Featured Image",
45947
45947
  supporting_text: "Recommended dimension: 1200*1060px"
45948
45948
  }, {
45949
- default: vue.withCtx(() => [
45950
- vue.createVNode(vue.unref(VFileUpload), {
45951
- name: "image",
45952
- height: "h-[395px]",
45953
- modelValue: dataRef.value.featured_image,
45954
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dataRef.value.featured_image = $event)
45955
- }, null, 8, ["modelValue"])
45956
- ]),
45949
+ default: vue.withCtx(() => {
45950
+ var _a2;
45951
+ return [
45952
+ vue.createVNode(vue.unref(VFileUpload), {
45953
+ name: "image",
45954
+ type: ((_a2 = dataRef.value) == null ? void 0 : _a2.source_type) ?? "image",
45955
+ height: "h-[395px]",
45956
+ modelValue: dataRef.value.featured_image,
45957
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => dataRef.value.featured_image = $event)
45958
+ }, null, 8, ["type", "modelValue"])
45959
+ ];
45960
+ }),
45957
45961
  _: 1
45958
45962
  }, 8, ["title"])
45959
45963
  ])) : vue.createCommentVNode("", true),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcodegroup-au/page-builder",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/page-builder.es.js"
@@ -60,6 +60,7 @@
60
60
  supporting_text="Recommended dimension: 1200*1060px">
61
61
  <VFileUpload
62
62
  name="image"
63
+ :type="dataRef?.source_type ?? 'image'"
63
64
  height="h-[395px]"
64
65
  v-model="dataRef.featured_image"
65
66
  />