@visitscotland/component-library 5.36.0 → 5.37.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.
@@ -25502,6 +25502,15 @@ const VsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_ren
25502
25502
  isTest: {
25503
25503
  type: Boolean,
25504
25504
  default: !0
25505
+ },
25506
+ /**
25507
+ * Defines a set of consents which are implied by submission, to be stored in BREG. If this
25508
+ * is defined it should be included as part of the submission.
25509
+ */
25510
+ consentList: {
25511
+ type: Array,
25512
+ required: !1,
25513
+ default: null
25505
25514
  }
25506
25515
  },
25507
25516
  data() {
@@ -25765,7 +25774,8 @@ const VsTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_ren
25765
25774
  ...this.form,
25766
25775
  ...n,
25767
25776
  formType: this.formData.content ? this.formData.content.formType : "",
25768
- "g-recaptcha-response": e
25777
+ "g-recaptcha-response": e,
25778
+ consentList: this.consentList
25769
25779
  }
25770
25780
  ).then(() => (this.submitting = !1, this.submitted = !0, this.attachEmail(), !1)).catch(() => (this.submitError = !0, !1));
25771
25781
  },