@dcodegroup-au/page-builder 0.6.9 → 0.7.0

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.
@@ -12037,6 +12037,8 @@ const _sfc_main$J = {
12037
12037
  const type = useModel(__props, "type");
12038
12038
  const url = useModel(__props, "url");
12039
12039
  const openInNewTab = useModel(__props, "openInNewTab");
12040
+ const props = __props;
12041
+ console.log("LinkedTo", props);
12040
12042
  const toReadableWords = (input) => {
12041
12043
  return input.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
12042
12044
  };
@@ -45240,13 +45242,18 @@ const _hoisted_18$2 = { key: 2 };
45240
45242
  const _sfc_main$C = {
45241
45243
  __name: "Links",
45242
45244
  props: {
45243
- ...defaultProps
45245
+ ...defaultProps,
45246
+ forms: {
45247
+ type: Array,
45248
+ default: () => []
45249
+ }
45244
45250
  },
45245
45251
  emits: ["update"],
45246
45252
  setup(__props, { emit: __emit }) {
45247
45253
  const VFileUpload = inject("VFileUpload", _sfc_main$O);
45248
45254
  const emit = __emit;
45249
45255
  const props = __props;
45256
+ console.log("Links", props);
45250
45257
  const options = [{ value: "content", label: "Content" }, { value: "image_only", label: "Image Only" }];
45251
45258
  const componentData = ref(props.data.component);
45252
45259
  const modalRef = ref(null);
@@ -45429,8 +45436,9 @@ const _sfc_main$C = {
45429
45436
  "onUpdate:url": ($event) => item.url = $event,
45430
45437
  openInNewTab: item.open_in_new_tab,
45431
45438
  "onUpdate:openInNewTab": ($event) => item.open_in_new_tab = $event,
45432
- sites: _ctx.sites
45433
- }, null, 8, ["name", "type", "onUpdate:type", "url", "onUpdate:url", "openInNewTab", "onUpdate:openInNewTab", "sites"])) : createCommentVNode("", true)
45439
+ sites: _ctx.sites,
45440
+ forms: __props.forms
45441
+ }, null, 8, ["name", "type", "onUpdate:type", "url", "onUpdate:url", "openInNewTab", "onUpdate:openInNewTab", "sites", "forms"])) : createCommentVNode("", true)
45434
45442
  ])) : (openBlock(), createElementBlock("div", _hoisted_18$2, [
45435
45443
  createVNode(_sfc_main$P, {
45436
45444
  "is-vertical": "",
@@ -12040,6 +12040,8 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
12040
12040
  const type = vue.useModel(__props, "type");
12041
12041
  const url = vue.useModel(__props, "url");
12042
12042
  const openInNewTab = vue.useModel(__props, "openInNewTab");
12043
+ const props = __props;
12044
+ console.log("LinkedTo", props);
12043
12045
  const toReadableWords = (input) => {
12044
12046
  return input.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" ");
12045
12047
  };
@@ -45243,13 +45245,18 @@ ${escapeText(this.code(index, length))}
45243
45245
  const _sfc_main$C = {
45244
45246
  __name: "Links",
45245
45247
  props: {
45246
- ...defaultProps
45248
+ ...defaultProps,
45249
+ forms: {
45250
+ type: Array,
45251
+ default: () => []
45252
+ }
45247
45253
  },
45248
45254
  emits: ["update"],
45249
45255
  setup(__props, { emit: __emit }) {
45250
45256
  const VFileUpload = vue.inject("VFileUpload", _sfc_main$O);
45251
45257
  const emit = __emit;
45252
45258
  const props = __props;
45259
+ console.log("Links", props);
45253
45260
  const options = [{ value: "content", label: "Content" }, { value: "image_only", label: "Image Only" }];
45254
45261
  const componentData = vue.ref(props.data.component);
45255
45262
  const modalRef = vue.ref(null);
@@ -45432,8 +45439,9 @@ ${escapeText(this.code(index, length))}
45432
45439
  "onUpdate:url": ($event) => item.url = $event,
45433
45440
  openInNewTab: item.open_in_new_tab,
45434
45441
  "onUpdate:openInNewTab": ($event) => item.open_in_new_tab = $event,
45435
- sites: _ctx.sites
45436
- }, null, 8, ["name", "type", "onUpdate:type", "url", "onUpdate:url", "openInNewTab", "onUpdate:openInNewTab", "sites"])) : vue.createCommentVNode("", true)
45442
+ sites: _ctx.sites,
45443
+ forms: __props.forms
45444
+ }, null, 8, ["name", "type", "onUpdate:type", "url", "onUpdate:url", "openInNewTab", "onUpdate:openInNewTab", "sites", "forms"])) : vue.createCommentVNode("", true)
45437
45445
  ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_18$2, [
45438
45446
  vue.createVNode(_sfc_main$P, {
45439
45447
  "is-vertical": "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcodegroup-au/page-builder",
3
- "version": "0.6.9",
3
+ "version": "0.7.0",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/page-builder.es.js"
@@ -107,6 +107,7 @@
107
107
  v-model:url="item.url"
108
108
  v-model:openInNewTab="item.open_in_new_tab"
109
109
  :sites="sites"
110
+ :forms="forms"
110
111
  />
111
112
  </div>
112
113
  <div v-else>
@@ -144,8 +145,13 @@ const VFileUpload = inject("VFileUpload", DefaultFileUpload);
144
145
  const emit = defineEmits(["update"]);
145
146
  const props = defineProps({
146
147
  ...defaultProps,
148
+ forms: {
149
+ type: Array,
150
+ default: () => []
151
+ }
147
152
  });
148
153
 
154
+ console.log('Links', props);
149
155
  const options = [{value: 'content', label: 'Content'}, {value: 'image_only', label: 'Image Only'}];
150
156
 
151
157
  const componentData = ref(props.data.component);
@@ -40,7 +40,7 @@ const type = defineModel("type", { default: "site-content" });
40
40
  const url = defineModel("url");
41
41
  const openInNewTab = defineModel("openInNewTab");
42
42
 
43
- defineProps({
43
+ const props = defineProps({
44
44
  label: { type: String, required: false },
45
45
  sites: { type: Array, required: false, default: () => []}, // Todo refactor sites to items as generic usage
46
46
  forms: { type: Array, required: false, default: () => []},
@@ -48,6 +48,8 @@ defineProps({
48
48
  options: { type: Array, required: false, default: ["site-content", "external-page", 'download', 'form'] },
49
49
  });
50
50
 
51
+ console.log('LinkedTo', props);
52
+
51
53
  const toReadableWords = (input) => {
52
54
  return input
53
55
  .split('-') // Split the string by hyphens