@designcrowd/library.brand-page 5.16.11-contact-1 → 5.16.11

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.
Files changed (92) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-D79Mwrx5.js → CreatedOnBrandCrowd-de-de-bzhKDyJv.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-CtyUXDxl.js → CreatedOnBrandCrowd-en-us-j4ZI_pqK.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-CGhK163V.js → CreatedOnBrandCrowd-es-es--kt8fo5B.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-sSzV7xsY.js → CreatedOnBrandCrowd-fr-ca-CiCdKxFb.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-sSzV7xsY.js → CreatedOnBrandCrowd-fr-fr-CiCdKxFb.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-Bx8PU5VO.js → CreatedOnBrandCrowd-pt-br-CgEfKC9V.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-Bx8PU5VO.js → CreatedOnBrandCrowd-pt-pt-CgEfKC9V.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-CrAZimT2.js → CreatedOnDcom-de-de-CUZ6g2BX.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-DgjW71Ea.js → CreatedOnDcom-en-us-Dk3tpBIt.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-BBjjpycu.js → CreatedOnDcom-es-es-UMt6sl46.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-85Eax8i4.js → CreatedOnDcom-fr-ca-DB-oAlcL.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-jiyAEqxK.js → CreatedOnDcom-fr-fr-DDQ5o8K8.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-DnKsyaNG.js → CreatedOnDcom-pt-br-Bp6ian7l.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-DyCaX6iL.js → CreatedOnDcom-pt-pt-DNRtLje1.js} +1 -1
  15. package/lib/src/brand-page/clients/brand-page.client.d.ts +0 -2
  16. package/lib/src/brand-page/clients/brand-page.client.js +1 -1
  17. package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +1 -6
  18. package/lib/src/brand-page/models/index.d.ts +0 -3
  19. package/lib/src/brand-page/models/index.js +0 -3
  20. package/lib/src/brand-page/utils/migration.util.js +0 -6
  21. package/lib/src/brand-page/utils/validation.util.js +10 -15
  22. package/lib/src/brand-page-maker/constants/config-settings-constant.js +18 -39
  23. package/lib/src/brand-page-maker/models/content-settings.js +0 -21
  24. package/lib/src/{bundled-translations-B0_1x7FR.js → bundled-translations-0k_bW9M3.js} +18 -18
  25. package/lib/src/{bundled-translations.de-DE-DI_6-gFc.js → bundled-translations.de-DE-alPJDdV5.js} +21 -21
  26. package/lib/src/bundled-translations.es-ES-DvG6dxbl.js +163 -0
  27. package/lib/src/bundled-translations.fr-CA-uKGhZH2y.js +163 -0
  28. package/lib/src/bundled-translations.fr-FR-DsR3NACS.js +163 -0
  29. package/lib/src/bundled-translations.pt-BR-Bh9w3i0j.js +163 -0
  30. package/lib/src/bundled-translations.pt-PT-BzegT--8.js +163 -0
  31. package/lib/src/bundles/bundled-translations.de-DE.json +2 -20
  32. package/lib/src/bundles/bundled-translations.es-ES.json +2 -20
  33. package/lib/src/bundles/bundled-translations.fr-CA.json +2 -20
  34. package/lib/src/bundles/bundled-translations.fr-FR.json +2 -20
  35. package/lib/src/bundles/bundled-translations.json +2 -20
  36. package/lib/src/bundles/bundled-translations.pt-BR.json +2 -20
  37. package/lib/src/bundles/bundled-translations.pt-PT.json +2 -20
  38. package/lib/src/css/library.brand-page-brandCrowd.min.css +3 -0
  39. package/lib/src/css/library.brand-page-brandPage.min.css +3 -0
  40. package/lib/src/css/library.brand-page-designCom.min.css +3 -0
  41. package/lib/src/css/library.brand-page-preview.min.css +3 -0
  42. package/lib/src/index.mjs +1 -1
  43. package/lib/src/{lib-DR2sH6pk.js → lib-cP7DqVjt.js} +16334 -16525
  44. package/lib/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.d.ts +1 -34
  45. package/lib/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.js +1 -41
  46. package/package.json +1 -1
  47. package/src/brand-page/clients/brand-page.client.ts +1 -3
  48. package/src/brand-page/components/contact-form/ContactForm.mixin.ts +1 -6
  49. package/src/brand-page/models/index.ts +0 -3
  50. package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +3 -3
  51. package/src/brand-page/utils/migration.util.ts +0 -6
  52. package/src/brand-page/utils/validation.util.ts +10 -15
  53. package/src/brand-page-maker/constants/config-settings-constant.ts +18 -40
  54. package/src/brand-page-maker/models/content-settings.ts +0 -21
  55. package/src/bundles/bundled-translations.de-DE.json +2 -20
  56. package/src/bundles/bundled-translations.es-ES.json +2 -20
  57. package/src/bundles/bundled-translations.fr-CA.json +2 -20
  58. package/src/bundles/bundled-translations.fr-FR.json +2 -20
  59. package/src/bundles/bundled-translations.json +2 -20
  60. package/src/bundles/bundled-translations.pt-BR.json +2 -20
  61. package/src/bundles/bundled-translations.pt-PT.json +2 -20
  62. package/src/shared/common/i18n/error.de-DE.json +1 -9
  63. package/src/shared/common/i18n/error.es-ES.json +1 -9
  64. package/src/shared/common/i18n/error.fr-CA.json +1 -9
  65. package/src/shared/common/i18n/error.fr-FR.json +1 -9
  66. package/src/shared/common/i18n/error.json +1 -9
  67. package/src/shared/common/i18n/error.pt-BR.json +1 -9
  68. package/src/shared/common/i18n/error.pt-PT.json +1 -9
  69. package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +0 -2
  70. package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +0 -2
  71. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +0 -2
  72. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +0 -2
  73. package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +0 -2
  74. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +0 -2
  75. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +0 -2
  76. package/src/shared/content-settings/components/form-fields-field/FormFieldsField.mixin.ts +1 -45
  77. package/src/shared/content-settings/components/form-fields-field/FormFieldsField.vue +32 -107
  78. package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.de-DE.json +1 -10
  79. package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.es-ES.json +1 -10
  80. package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.fr-CA.json +1 -10
  81. package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.fr-FR.json +1 -10
  82. package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.json +1 -10
  83. package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.pt-BR.json +1 -10
  84. package/src/shared/content-settings/components/form-fields-field/i18n/form-fields.pt-PT.json +1 -10
  85. package/lib/src/brand-page/utils/migration/migration-09.d.ts +0 -2
  86. package/lib/src/brand-page/utils/migration/migration-09.js +0 -34
  87. package/lib/src/bundled-translations.es-ES-pnVLlL9X.js +0 -163
  88. package/lib/src/bundled-translations.fr-CA-Bu6ZL2ix.js +0 -163
  89. package/lib/src/bundled-translations.fr-FR-DTEQ7K4e.js +0 -163
  90. package/lib/src/bundled-translations.pt-BR-Cr5hOHkN.js +0 -163
  91. package/lib/src/bundled-translations.pt-PT-75HRywbu.js +0 -163
  92. package/src/brand-page/utils/migration/migration-09.ts +0 -43
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DR2sH6pk.js";
2
+ import { _ as t } from "./lib-cP7DqVjt.js";
3
3
  const i = {}, h = {
4
4
  width: "275",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DR2sH6pk.js";
2
+ import { _ as t } from "./lib-cP7DqVjt.js";
3
3
  const i = {}, h = {
4
4
  width: "251",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DR2sH6pk.js";
2
+ import { _ as t } from "./lib-cP7DqVjt.js";
3
3
  const i = {}, h = {
4
4
  width: "250",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DR2sH6pk.js";
2
+ import { _ as t } from "./lib-cP7DqVjt.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DR2sH6pk.js";
2
+ import { _ as t } from "./lib-cP7DqVjt.js";
3
3
  const i = {}, h = {
4
4
  width: "237",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DR2sH6pk.js";
2
+ import { _ as t } from "./lib-cP7DqVjt.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-DR2sH6pk.js";
2
+ import { _ as t } from "./lib-cP7DqVjt.js";
3
3
  const i = {}, h = {
4
4
  width: "263",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-DR2sH6pk.js";
2
+ import { _ as e } from "./lib-cP7DqVjt.js";
3
3
  const M = {}, Z = {
4
4
  width: "242",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-DR2sH6pk.js";
2
+ import { _ as e } from "./lib-cP7DqVjt.js";
3
3
  const i = {}, M = {
4
4
  width: "231",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-DR2sH6pk.js";
2
+ import { _ as e } from "./lib-cP7DqVjt.js";
3
3
  const M = {}, Z = {
4
4
  width: "230",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-DR2sH6pk.js";
2
+ import { _ as e } from "./lib-cP7DqVjt.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as e } from "./lib-DR2sH6pk.js";
2
+ import { _ as e } from "./lib-cP7DqVjt.js";
3
3
  const i = {}, l = {
4
4
  width: "216",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-DR2sH6pk.js";
2
+ import { _ as M } from "./lib-cP7DqVjt.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as H, openBlock as V, createStaticVNode as t } from "vue";
2
- import { _ as M } from "./lib-DR2sH6pk.js";
2
+ import { _ as M } from "./lib-cP7DqVjt.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -5,8 +5,6 @@ export interface FormResult {
5
5
  }
6
6
  export interface ContactFormField {
7
7
  id: string;
8
- name: string;
9
- type: string;
10
8
  value: string;
11
9
  }
12
10
  export interface CartForShopRequest {
@@ -33,7 +33,7 @@ const submitContactForm = async (brandPageToken, contentBlockId, values) => {
33
33
  const csrfToken = csrfUtil.getCsrfTokenFromMetaHeader();
34
34
  const formBody = {
35
35
  contentBlockId,
36
- fields: values,
36
+ ...values.reduce((b, i) => ({ ...b, [i.id]: i.value }), {}),
37
37
  };
38
38
  await axios.post(`/api/contact/${brandPageToken}`, formBody, {
39
39
  headers: {
@@ -146,12 +146,7 @@ export default defineComponent({
146
146
  let result;
147
147
  this.isSubmitting = true;
148
148
  try {
149
- result = await brandPageClient.submitContactForm(this.context.brandPageToken, this.viewModel.id, this.values.map((v) => ({
150
- id: v.field.id,
151
- name: v.field.name,
152
- type: v.field.type,
153
- value: v.value,
154
- })));
149
+ result = await brandPageClient.submitContactForm(this.context.brandPageToken, this.viewModel.id, this.values.map((v) => ({ id: v.field.id, value: v.value })));
155
150
  }
156
151
  finally {
157
152
  this.isSubmitting = false;
@@ -200,9 +200,6 @@ export declare const FORM_FIELD_IDS: {
200
200
  readonly emailAddress: "emailAddress";
201
201
  readonly phoneNumber: "phoneNumber";
202
202
  readonly message: "message";
203
- readonly customField1: "customField1";
204
- readonly customField2: "customField2";
205
- readonly customField3: "customField3";
206
203
  };
207
204
  export declare const BUTTON_LINK_TYPE: {
208
205
  readonly url: "url";
@@ -131,9 +131,6 @@ export const FORM_FIELD_IDS = {
131
131
  emailAddress: 'emailAddress',
132
132
  phoneNumber: 'phoneNumber',
133
133
  message: 'message',
134
- customField1: 'customField1',
135
- customField2: 'customField2',
136
- customField3: 'customField3',
137
134
  };
138
135
  export const BUTTON_LINK_TYPE = {
139
136
  url: 'url',
@@ -11,7 +11,6 @@ import { migration05_1 } from './migration/migration-05_1';
11
11
  import { migration05_2 } from './migration/migration-05_2';
12
12
  import { migration07 } from './migration/migration-07';
13
13
  import { migration08 } from './migration/migration-08';
14
- import { migration09 } from './migration/migration-09';
15
14
  const MIGRATION_TABLE = [
16
15
  {
17
16
  version: 1,
@@ -69,11 +68,6 @@ const MIGRATION_TABLE = [
69
68
  migrateFn: migration08,
70
69
  description: 'Migrating logo content sizes for brandPage and brandContact',
71
70
  },
72
- {
73
- version: 9,
74
- migrateFn: migration09,
75
- description: 'Migrating contact form with additional 3 custom fields',
76
- },
77
71
  ];
78
72
  export const GetLatestModelVersion = () => Math.max(...MIGRATION_TABLE.map((x) => x.version));
79
73
  export const migrateBrandPageModel = async (brandPageModel, options) => {
@@ -1,20 +1,19 @@
1
1
  import { isEmail } from '../../utils/validator.util';
2
- import { errorTr } from '../../composables/useTranslate';
3
2
  const MAX_EMAIL_LENGTH = 320;
4
3
  const MAX_PHONE_LENGTH = 50;
5
4
  const MAX_NAME_LENGTH = 250;
6
- const MAX_MESSAGE_LENGTH = 1000;
5
+ const MAX_MESSAGE_LENGTH = 600;
7
6
  export const getEmailValidationError = (email, isRequired) => {
8
7
  if (email.trim() === '') {
9
8
  if (isRequired) {
10
- return errorTr('contactFormEmailFieldRequired');
9
+ return 'Please enter your email address.';
11
10
  }
12
11
  }
13
12
  else if (!isEmail(email)) {
14
- return errorTr('contactFormEmailFieldInvalid');
13
+ return 'The email address you entered is invalid.';
15
14
  }
16
15
  else if (email.length >= MAX_EMAIL_LENGTH) {
17
- return errorTr('contactFormEmailFieldTooLong');
16
+ return 'The email address you entered is too long.';
18
17
  }
19
18
  else {
20
19
  return undefined;
@@ -22,29 +21,25 @@ export const getEmailValidationError = (email, isRequired) => {
22
21
  };
23
22
  export const getPhoneValidationError = (phone, isRequired) => {
24
23
  if (phone.trim() === '' && isRequired) {
25
- return errorTr('contactFormPhoneFieldRequired');
24
+ return 'Please enter your phone number.';
26
25
  }
27
26
  else if (phone.length > MAX_PHONE_LENGTH) {
28
- return errorTr('contactFormPhoneFieldTooLong');
27
+ return 'The phone number you entered is too long.';
29
28
  }
30
29
  };
31
30
  export const getNameValidationError = (name, isRequired) => {
32
31
  if (name.trim() === '' && isRequired) {
33
- return errorTr('contactFormFieldRequired');
32
+ return 'Please enter your name.';
34
33
  }
35
34
  else if (name.length > MAX_NAME_LENGTH) {
36
- return errorTr('contactFormFieldTooLong', {
37
- MAX_LENGTH: MAX_NAME_LENGTH,
38
- });
35
+ return 'The name you entered is too long.';
39
36
  }
40
37
  };
41
38
  export const getMessageValidationError = (message, isRequired) => {
42
39
  if (message.trim() === '' && isRequired) {
43
- return errorTr('contactFormFieldRequired');
40
+ return 'Please enter your message.';
44
41
  }
45
42
  else if (message.length > MAX_MESSAGE_LENGTH) {
46
- return errorTr('contactFormFieldTooLong', {
47
- MAX_LENGTH: MAX_MESSAGE_LENGTH,
48
- });
43
+ return `The message you entered is too long. The maximum length is ${MAX_MESSAGE_LENGTH}`;
49
44
  }
50
45
  };
@@ -1665,11 +1665,6 @@ export const SUPPORT_ME_CONTENT_SETTINGS_CONFIG = () => ({
1665
1665
  isLocked: false,
1666
1666
  type: 'support-me',
1667
1667
  });
1668
- const CONTACT_FORM_GROUPS = {
1669
- formFields: 'formFields',
1670
- settings: 'settings',
1671
- style: 'style',
1672
- };
1673
1668
  export const CONTACT_FORM_SETTINGS_CONFIG = () => ({
1674
1669
  type: 'contact-form',
1675
1670
  category: 'general',
@@ -1677,41 +1672,25 @@ export const CONTACT_FORM_SETTINGS_CONFIG = () => ({
1677
1672
  defaultIconName: 'form',
1678
1673
  displayMode: CONTENT_SETTINGS_DISPLAY_MODES.focused,
1679
1674
  displayName: contentSettingsTr(`contactFormDisplayName`),
1680
- fieldGroups: [
1681
- {
1682
- id: CONTACT_FORM_GROUPS.settings,
1683
- displayName: contentSettingsTr(`settingsDisplayName`),
1684
- isCollapsed: false,
1685
- },
1686
- {
1687
- id: CONTACT_FORM_GROUPS.formFields,
1688
- displayName: contentSettingsTr(`formFieldsDisplayName`),
1689
- isCollapsed: false,
1690
- },
1691
- {
1692
- id: CONTACT_FORM_GROUPS.style,
1693
- displayName: contentSettingsTr(`styleDisplayName`),
1694
- isCollapsed: true,
1695
- },
1696
- ],
1675
+ fieldGroups: SETTINGS_STYLE_FIElD_GROUPS(),
1697
1676
  fields: {
1698
1677
  imageUrl: {
1699
1678
  type: 'image',
1700
1679
  replaceImageSettings: contactFormReplaceImageSettings(),
1701
1680
  title: contentSettingsTr(`imageTitle`),
1702
- groupId: CONTACT_FORM_GROUPS.settings,
1681
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
1703
1682
  visibilityAssessor: imageUrlVisibilityAssessor,
1704
1683
  },
1705
1684
  imageUrlOverride: {
1706
1685
  type: 'personalisation-override',
1707
- groupId: CONTACT_FORM_GROUPS.settings,
1686
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
1708
1687
  visibilityAssessor: (c, b) => imageUrlVisibilityAssessor(c, b) &&
1709
1688
  personalisationOverrideVisibility(c, b, 'imageUrl'),
1710
1689
  },
1711
1690
  colorReplacements: {
1712
1691
  type: 'color-replacements',
1713
1692
  title: contentSettingsTr(`shapeColorsTitle`),
1714
- groupId: CONTACT_FORM_GROUPS.settings,
1693
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
1715
1694
  visibilityAssessor: colorReplacementVisibilityTypeAssessor,
1716
1695
  },
1717
1696
  displayStyle: {
@@ -1720,67 +1699,67 @@ export const CONTACT_FORM_SETTINGS_CONFIG = () => ({
1720
1699
  defaultValue: DISPLAY_STYLE_PREVIEW,
1721
1700
  title: contentSettingsTr(`displayStyleTitle`),
1722
1701
  optionsConvertor: displayStyleConvertor,
1723
- groupId: CONTACT_FORM_GROUPS.settings,
1702
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
1724
1703
  visibilityAssessor: displayTypeVisibilityAssessor,
1725
1704
  },
1726
1705
  title: {
1727
1706
  type: 'text',
1728
1707
  placeholder: contentSettingsTr(`titlePlaceholder`),
1729
1708
  title: contentSettingsTr(`titleTitle`),
1730
- groupId: CONTACT_FORM_GROUPS.settings,
1709
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
1731
1710
  maxLength: 200,
1732
1711
  },
1733
1712
  titleOverride: {
1734
1713
  type: 'personalisation-override',
1735
- groupId: CONTACT_FORM_GROUPS.settings,
1714
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
1736
1715
  visibilityAssessor: (c, b) => personalisationOverrideVisibility(c, b, 'title'),
1737
1716
  },
1738
1717
  description: {
1739
1718
  type: 'textarea',
1740
1719
  placeholder: contentSettingsTr(`descriptionPlaceholder`),
1741
1720
  title: contentSettingsTr(`descriptionTitle`),
1742
- groupId: CONTACT_FORM_GROUPS.settings,
1721
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
1743
1722
  maxLength: 1000,
1744
1723
  },
1745
1724
  descriptionOverride: {
1746
1725
  type: 'personalisation-override',
1747
- groupId: CONTACT_FORM_GROUPS.settings,
1726
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
1748
1727
  visibilityAssessor: (c, b) => personalisationOverrideVisibility(c, b, 'description'),
1749
1728
  },
1750
1729
  buttonText: {
1751
1730
  type: 'text',
1752
1731
  title: contentSettingsTr(`buttonTitle`),
1753
- groupId: CONTACT_FORM_GROUPS.settings,
1732
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
1754
1733
  showToggle: false,
1755
1734
  maxLength: 60,
1756
1735
  },
1757
1736
  buttonTextOverride: {
1758
1737
  type: 'personalisation-override',
1759
- groupId: CONTACT_FORM_GROUPS.settings,
1738
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
1760
1739
  visibilityAssessor: (c, b) => personalisationOverrideVisibility(c, b, 'buttonText'),
1761
1740
  },
1762
1741
  fields: {
1763
1742
  type: 'form-fields',
1764
- groupId: CONTACT_FORM_GROUPS.formFields,
1743
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
1765
1744
  },
1766
1745
  successMessage: {
1767
1746
  type: 'textarea',
1768
1747
  placeholder: contentSettingsTr(`successMessagePlaceholder`),
1769
1748
  title: contentSettingsTr(`successMessageTitle`),
1770
- groupId: CONTACT_FORM_GROUPS.settings,
1749
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
1771
1750
  },
1772
1751
  responseEmail: {
1773
1752
  type: 'email',
1774
1753
  title: contentSettingsTr(`sendResponsesToTitle`),
1775
1754
  placeholder: contentSettingsTr(`recipientEmailPlaceholder`),
1776
- groupId: CONTACT_FORM_GROUPS.settings,
1755
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.settings,
1777
1756
  },
1778
1757
  layoutStyle: {
1779
1758
  type: 'radio',
1780
1759
  role: 'multi',
1781
1760
  title: contentSettingsTr(`displayStyleTitle`),
1782
1761
  optionsConvertor: contactLayoutStyleConvertor,
1783
- groupId: CONTACT_FORM_GROUPS.style,
1762
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.style,
1784
1763
  variant: 'icon',
1785
1764
  visibilityAssessor: brandSiteTypeVisibilityAssessor,
1786
1765
  },
@@ -1789,7 +1768,7 @@ export const CONTACT_FORM_SETTINGS_CONFIG = () => ({
1789
1768
  buttonTextStyle: DEFAULT_BUTTON_TEXT_STYLE_FIELD(),
1790
1769
  cardStyle: {
1791
1770
  type: 'color',
1792
- groupId: CONTACT_FORM_GROUPS.style,
1771
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.style,
1793
1772
  defaultValue: {},
1794
1773
  isInline: true,
1795
1774
  showToggle: false,
@@ -1800,7 +1779,7 @@ export const CONTACT_FORM_SETTINGS_CONFIG = () => ({
1800
1779
  },
1801
1780
  backgroundStyle: {
1802
1781
  type: 'color',
1803
- groupId: CONTACT_FORM_GROUPS.style,
1782
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.style,
1804
1783
  defaultValue: {},
1805
1784
  isInline: true,
1806
1785
  showToggle: false,
@@ -1809,7 +1788,7 @@ export const CONTACT_FORM_SETTINGS_CONFIG = () => ({
1809
1788
  },
1810
1789
  messageTextColor: {
1811
1790
  type: 'color',
1812
- groupId: CONTACT_FORM_GROUPS.style,
1791
+ groupId: SETTINGS_STYLE_FIELD_GROUP_IDS.style,
1813
1792
  defaultValue: {},
1814
1793
  isInline: true,
1815
1794
  showToggle: false,
@@ -397,27 +397,6 @@ export const createInitialContactFormContent = (options) => {
397
397
  required: true,
398
398
  type: 'text-area',
399
399
  },
400
- {
401
- id: FORM_FIELD_IDS.customField1,
402
- name: contentSettingsTr(`customFieldLabel`),
403
- enabled: false,
404
- required: false,
405
- type: 'text',
406
- },
407
- {
408
- id: FORM_FIELD_IDS.customField2,
409
- name: contentSettingsTr(`customFieldLabel`),
410
- enabled: false,
411
- required: false,
412
- type: 'text',
413
- },
414
- {
415
- id: FORM_FIELD_IDS.customField3,
416
- name: contentSettingsTr(`customFieldLabel`),
417
- enabled: false,
418
- required: false,
419
- type: 'text',
420
- },
421
400
  ],
422
401
  successMessage: contentSettingsTr(`formSuccessMessage`),
423
402
  responseEmail: options?.userState.emailAddress || '',