@designcrowd/library.brand-page 5.16.43-ast-keywords-9 → 5.16.43

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 (89) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-BB7-Udfw.js → CreatedOnBrandCrowd-de-de-C5cH1T-1.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-BQ_EOlyY.js → CreatedOnBrandCrowd-en-us-CYMnCJLK.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-D_fz6Hsl.js → CreatedOnBrandCrowd-es-es-lj9In06n.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-BpAcXUJr.js → CreatedOnBrandCrowd-fr-ca-d2eXSGxp.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-BpAcXUJr.js → CreatedOnBrandCrowd-fr-fr-d2eXSGxp.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-CA-Vyv8y.js → CreatedOnBrandCrowd-pt-br-B0KA6Yz2.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-CA-Vyv8y.js → CreatedOnBrandCrowd-pt-pt-B0KA6Yz2.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-QThUiqHF.js → CreatedOnDcom-de-de-BVVrQTkJ.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-yMOm1UJI.js → CreatedOnDcom-en-us-DFt3dW1K.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-CUd-zqSY.js → CreatedOnDcom-es-es-DwdbeJO4.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-BZ1ltqpi.js → CreatedOnDcom-fr-ca-jlQTAkBO.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-CLHtcAKV.js → CreatedOnDcom-fr-fr-OFLmEho0.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-CrIJXuBQ.js → CreatedOnDcom-pt-br-BHqtceac.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-fYAUvCNC.js → CreatedOnDcom-pt-pt-DIrlJ6nF.js} +1 -1
  15. package/lib/src/brand-page/__fixtures__/brand-page-sample-data.js +0 -2
  16. package/lib/src/brand-page/clients/brand-page.client.d.ts +2 -2
  17. package/lib/src/brand-page/clients/brand-page.client.js +2 -4
  18. package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +1 -10
  19. package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +2 -18
  20. package/lib/src/brand-page/components/image-gallery/ImageGallery.stories.js +1 -2
  21. package/lib/src/brand-page/components/images-section/ImagesSection.stories.js +1 -2
  22. package/lib/src/brand-page/components/mailing-list/MailingList.mixin.d.ts +0 -8
  23. package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +7 -22
  24. package/lib/src/brand-page/components/payment/__fixtures__/request-payment.d.ts +0 -1
  25. package/lib/src/brand-page/components/payment/__fixtures__/support-me.d.ts +0 -1
  26. package/lib/src/brand-page/components/profile/Profile.stories.js +1 -2
  27. package/lib/src/brand-page/constants/misc.constants.d.ts +0 -3
  28. package/lib/src/brand-page/constants/misc.constants.js +0 -4
  29. package/lib/src/brand-page/models/brand-page-context.model.d.ts +0 -2
  30. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +0 -2
  31. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +0 -2
  32. package/lib/src/brand-page-maker/components/preview/Preview.mixin.js +0 -1
  33. package/lib/src/brand-page-maker/components/quick-link-bar/QuickLinkBar.mixin.d.ts +0 -2
  34. package/lib/src/brand-page-maker/components/seo-settings/SeoPageSettings.mixin.d.ts +0 -2
  35. package/lib/src/brand-page-maker/components/seo-settings/UrlSettings.mixin.d.ts +0 -2
  36. package/lib/src/brand-page-maker/components/seo-settings/UseExistingDomainModal.mixin.d.ts +0 -2
  37. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.d.ts +0 -2
  38. package/lib/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.js +0 -1
  39. package/lib/src/brand-page-maker/components/upgrade-to-premium-button/UpgradeToPremiumButton.mixin.d.ts +0 -2
  40. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.d.ts +0 -3
  41. package/lib/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.js +0 -2
  42. package/lib/src/css/library.brand-page-brandCrowd.min.css +16 -16
  43. package/lib/src/css/library.brand-page-brandPage.min.css +16 -16
  44. package/lib/src/css/library.brand-page-designCom.min.css +16 -16
  45. package/lib/src/css/library.brand-page-preview.min.css +16 -16
  46. package/lib/src/index.d.ts +1 -3
  47. package/lib/src/index.mjs +123 -127
  48. package/lib/src/{lib-D0UAtR4g.js → lib-CnJZ6ibD.js} +14257 -14366
  49. package/lib/src/lib.js +1 -2
  50. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.js +0 -1
  51. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.js +0 -1
  52. package/lib/src/shared/content-settings/components/payment-config-field/PaymentConfigField.mixin.d.ts +0 -2
  53. package/lib/src/shared/content-settings/components/radio-field/RadioField.mixin.js +0 -1
  54. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.d.ts +0 -292
  55. package/lib/src/shared/logo-settings/components/EditLogoSettings.mixin.js +1 -16
  56. package/lib/src/shared/logo-settings/components/LogoSettings.mixin.d.ts +0 -2
  57. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +0 -2
  58. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +0 -2
  59. package/lib/src/shared/publish-brand-page-with-state/PublishBrandPageModalWithState.mixin.d.ts +0 -2
  60. package/lib/src/shared/side-bar/components/SideBar.mixin.d.ts +0 -2
  61. package/lib/src/shared/style-settings/components/StyleSettings.mixin.d.ts +0 -2
  62. package/package.json +2 -2
  63. package/src/brand-page/__fixtures__/brand-page-sample-data.ts +0 -2
  64. package/src/brand-page/clients/brand-page.client.ts +0 -5
  65. package/src/brand-page/components/about-section/AboutSection.vue.test.ts +0 -1
  66. package/src/brand-page/components/contact-form/ContactForm.mixin.ts +0 -23
  67. package/src/brand-page/components/contact-form/ContactForm.vue +0 -5
  68. package/src/brand-page/components/image/Image.test.ts +0 -1
  69. package/src/brand-page/components/image-gallery/ImageGallery.stories.ts +1 -2
  70. package/src/brand-page/components/image-gallery/ImageGallery.test.ts +0 -1
  71. package/src/brand-page/components/images-section/ImagesSection.stories.ts +1 -2
  72. package/src/brand-page/components/mailing-list/MailingList.mixin.ts +12 -32
  73. package/src/brand-page/components/profile/Profile.stories.ts +1 -2
  74. package/src/brand-page/components/social-links/SocialLinks.vue.test.ts +0 -1
  75. package/src/brand-page/constants/misc.constants.ts +0 -5
  76. package/src/brand-page/models/brand-page-context.model.ts +0 -2
  77. package/src/brand-page-maker/components/preview/Preview.mixin.ts +0 -1
  78. package/src/brand-page-maker/components/template-preview/TemplatePreview.mixin.ts +0 -1
  79. package/src/brand-page-maker/stores/brandpage-container/brand-page-container-store.ts +0 -3
  80. package/src/lib.ts +0 -5
  81. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.ts +0 -1
  82. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.ts +0 -1
  83. package/src/shared/content-settings/components/radio-field/RadioField.mixin.ts +0 -1
  84. package/src/shared/logo-settings/components/EditLogoSettings.mixin.ts +1 -22
  85. package/src/shared/logo-settings/components/EditLogoSettings.vue +0 -1
  86. package/src/shared/logo-settings/components/LogoTemplateSearch.vue +13 -10
  87. package/lib/src/brand-page/composables/recaptcha.composable.d.ts +0 -23
  88. package/lib/src/brand-page/composables/recaptcha.composable.js +0 -109
  89. package/src/brand-page/composables/recaptcha.composable.ts +0 -159
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as l, createStaticVNode as a } from "vue";
2
- import { _ as t } from "./lib-D0UAtR4g.js";
2
+ import { _ as t } from "./lib-CnJZ6ibD.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-D0UAtR4g.js";
2
+ import { _ as t } from "./lib-CnJZ6ibD.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-D0UAtR4g.js";
2
+ import { _ as t } from "./lib-CnJZ6ibD.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-D0UAtR4g.js";
2
+ import { _ as t } from "./lib-CnJZ6ibD.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-D0UAtR4g.js";
2
+ import { _ as t } from "./lib-CnJZ6ibD.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-D0UAtR4g.js";
2
+ import { _ as t } from "./lib-CnJZ6ibD.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-D0UAtR4g.js";
2
+ import { _ as t } from "./lib-CnJZ6ibD.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-D0UAtR4g.js";
2
+ import { _ as e } from "./lib-CnJZ6ibD.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-D0UAtR4g.js";
2
+ import { _ as e } from "./lib-CnJZ6ibD.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-D0UAtR4g.js";
2
+ import { _ as e } from "./lib-CnJZ6ibD.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-D0UAtR4g.js";
2
+ import { _ as e } from "./lib-CnJZ6ibD.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-D0UAtR4g.js";
2
+ import { _ as e } from "./lib-CnJZ6ibD.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-D0UAtR4g.js";
2
+ import { _ as M } from "./lib-CnJZ6ibD.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-D0UAtR4g.js";
2
+ import { _ as M } from "./lib-CnJZ6ibD.js";
3
3
  const Z = {}, e = {
4
4
  width: "232",
5
5
  height: "36",
@@ -97,7 +97,6 @@ export const context = {
97
97
  mediaSizes: MEDIA_SIZES.sizeThumb,
98
98
  },
99
99
  isCapturingPreview: false,
100
- recaptchaSiteKey: undefined,
101
100
  };
102
101
  export const BScontext = {
103
102
  isTemplate: false,
@@ -120,7 +119,6 @@ export const BScontext = {
120
119
  mediaSizes: MEDIA_SIZES.sizeThumb,
121
120
  },
122
121
  isCapturingPreview: false,
123
- recaptchaSiteKey: undefined,
124
122
  };
125
123
  export const logoTheme = {
126
124
  logoTextColor: {
@@ -16,8 +16,8 @@ export interface CartForShopRequest {
16
16
  unitPrice: number;
17
17
  }
18
18
  declare const _default: {
19
- addMailSubscriber: (brandPageToken: string, email: string, name?: string | undefined, recaptchaToken?: string | undefined) => Promise<FormResult>;
20
- submitContactForm: (brandPageToken: string, contentBlockId: string, values: ContactFormField[], recaptchaToken?: string | undefined) => Promise<FormResult>;
19
+ addMailSubscriber: (brandPageToken: string, email: string, name?: string | undefined) => Promise<FormResult>;
20
+ submitContactForm: (brandPageToken: string, contentBlockId: string, values: ContactFormField[]) => Promise<FormResult>;
21
21
  getPaymentConfigStatusByPaymentConfigId: (paymentConfigId: string) => Promise<string>;
22
22
  getStoreProductsByBrandPageToken: (brandPageToken: string) => Promise<string>;
23
23
  createBrandPageCart: (request: {
@@ -1,13 +1,12 @@
1
1
  import axios from 'axios';
2
2
  import * as constants from '../constants';
3
3
  import * as csrfUtil from '../utils/csrf.util';
4
- const addMailSubscriber = async (brandPageToken, email, name, recaptchaToken) => {
4
+ const addMailSubscriber = async (brandPageToken, email, name) => {
5
5
  try {
6
6
  const csrfToken = csrfUtil.getCsrfTokenFromMetaHeader();
7
7
  await axios.post(`/api/mailing-lists/${brandPageToken}`, {
8
8
  email,
9
9
  name,
10
- recaptchaToken,
11
10
  }, {
12
11
  headers: {
13
12
  'Content-Type': 'application/json',
@@ -29,13 +28,12 @@ const addMailSubscriber = async (brandPageToken, email, name, recaptchaToken) =>
29
28
  };
30
29
  }
31
30
  };
32
- const submitContactForm = async (brandPageToken, contentBlockId, values, recaptchaToken) => {
31
+ const submitContactForm = async (brandPageToken, contentBlockId, values) => {
33
32
  try {
34
33
  const csrfToken = csrfUtil.getCsrfTokenFromMetaHeader();
35
34
  const formBody = {
36
35
  contentBlockId,
37
36
  fields: values,
38
- recaptchaToken,
39
37
  };
40
38
  await axios.post(`/api/contact/${brandPageToken}`, formBody, {
41
39
  headers: {
@@ -28,16 +28,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
28
28
  required: false;
29
29
  default: undefined;
30
30
  };
31
- }>, {
32
- recaptcha: {
33
- isReady: import("vue").ComputedRef<boolean>;
34
- initialise: (config: import("../../composables/recaptcha.composable").ReCaptchaConfig) => Promise<void>;
35
- executeAsync: (action: string) => Promise<string | undefined>;
36
- error: import("vue").ComputedRef<string | undefined>;
37
- isLoading: import("vue").ComputedRef<boolean>;
38
- siteKey: import("vue").ComputedRef<string>;
39
- };
40
- }, {
31
+ }>, {}, {
41
32
  values: FieldValue[];
42
33
  hasSubmitted: boolean;
43
34
  isSubmitting: boolean;
@@ -3,9 +3,8 @@ import { FORM_FIELD_TYPES } from '../../models';
3
3
  import { getEmailValidationError, getMessageValidationError, getNameValidationError, getPhoneValidationError, } from '../../utils';
4
4
  import brandPageClient from '../../clients/brand-page.client';
5
5
  import { isEmail } from '../../../utils/validator.util';
6
- import { ALIGN_CARD_CENTER, ALIGN_CARD_CENTER_IMAGE, ALIGN_CENTERED, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_FULL_IMAGE, DISPLAY_STYLE_COLLAPSED, RECAPTCHA_ACTION_CONTACT_FORM, TEXT_ONLY, } from '../../constants';
6
+ import { ALIGN_CARD_CENTER, ALIGN_CARD_CENTER_IMAGE, ALIGN_CENTERED, ALIGN_LEFT_FULL_IMAGE, ALIGN_RIGHT_FULL_IMAGE, DISPLAY_STYLE_COLLAPSED, TEXT_ONLY, } from '../../constants';
7
7
  import { getRenderText } from '../../utils';
8
- import { useReCaptcha } from '../../composables/recaptcha.composable';
9
8
  export default defineComponent({
10
9
  props: {
11
10
  context: {
@@ -30,12 +29,6 @@ export default defineComponent({
30
29
  default: undefined,
31
30
  },
32
31
  },
33
- setup() {
34
- const recaptcha = useReCaptcha();
35
- return {
36
- recaptcha,
37
- };
38
- },
39
32
  data: () => ({
40
33
  values: [],
41
34
  hasSubmitted: false,
@@ -143,11 +136,6 @@ export default defineComponent({
143
136
  field: f,
144
137
  }));
145
138
  },
146
- mounted() {
147
- if (this.context?.recaptchaSiteKey && !this.isPreview && this.recaptcha) {
148
- this.recaptcha.initialise({ siteKey: this.context.recaptchaSiteKey });
149
- }
150
- },
151
139
  methods: {
152
140
  async submitContactForm() {
153
141
  this.validateFormValues();
@@ -164,16 +152,12 @@ export default defineComponent({
164
152
  let result;
165
153
  this.isSubmitting = true;
166
154
  try {
167
- let recaptchaToken;
168
- if (this.context?.recaptchaSiteKey && this.recaptcha?.isReady?.value) {
169
- recaptchaToken = await this.recaptcha.executeAsync(RECAPTCHA_ACTION_CONTACT_FORM);
170
- }
171
155
  result = await brandPageClient.submitContactForm(this.context.brandPageToken, this.viewModel.id, this.values.map((v) => ({
172
156
  id: v.field.id,
173
157
  name: v.field.name,
174
158
  type: v.field.type,
175
159
  value: v.value,
176
- })), recaptchaToken);
160
+ })));
177
161
  }
178
162
  finally {
179
163
  this.isSubmitting = false;
@@ -29,8 +29,7 @@ const context = {
29
29
  options: {
30
30
  mediaSizes: MEDIA_SIZES.sizeThumb,
31
31
  },
32
- isCapturingPreview: false,
33
- recaptchaSiteKey: undefined,
32
+ isCapturingPreview: false
34
33
  };
35
34
  export const Carousel = () => {
36
35
  return defineComponent({
@@ -29,8 +29,7 @@ const context = {
29
29
  options: {
30
30
  mediaSizes: MEDIA_SIZES.sizeThumb,
31
31
  },
32
- isCapturingPreview: false,
33
- recaptchaSiteKey: undefined,
32
+ isCapturingPreview: false
34
33
  };
35
34
  export const Images = () => {
36
35
  return defineComponent({
@@ -21,14 +21,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
21
21
  };
22
22
  }>, {
23
23
  mailingListTr: (key: any, valuesToInterpolate?: {}) => any;
24
- recaptcha: {
25
- isReady: import("vue").ComputedRef<boolean>;
26
- initialise: (config: import("../../composables/recaptcha.composable").ReCaptchaConfig) => Promise<void>;
27
- executeAsync: (action: string) => Promise<string | undefined>;
28
- error: import("vue").ComputedRef<string | undefined>;
29
- isLoading: import("vue").ComputedRef<boolean>;
30
- siteKey: import("vue").ComputedRef<string>;
31
- };
32
24
  }, {
33
25
  email: string;
34
26
  emailError: string | undefined;
@@ -2,8 +2,6 @@ import { defineComponent } from 'vue';
2
2
  import brandPageClient from '../../clients/brand-page.client';
3
3
  import { getEmailValidationError } from '../../utils';
4
4
  import { contentSettingsTr, mailingListTr, } from '../../../composables/useTranslate';
5
- import { useReCaptcha } from '../../composables/recaptcha.composable';
6
- import { RECAPTCHA_ACTION_MAILING_LIST } from '../../constants';
7
5
  const MAX_NAME_LENGTH = 200;
8
6
  export default defineComponent({
9
7
  props: {
@@ -26,10 +24,8 @@ export default defineComponent({
26
24
  },
27
25
  },
28
26
  setup() {
29
- const recaptcha = useReCaptcha();
30
27
  return {
31
28
  mailingListTr,
32
- recaptcha,
33
29
  };
34
30
  },
35
31
  data() {
@@ -46,9 +42,6 @@ export default defineComponent({
46
42
  },
47
43
  mounted() {
48
44
  this.show = true;
49
- if (this.context?.recaptchaSiteKey && !this.isPreview && this.recaptcha) {
50
- this.recaptcha.initialise({ siteKey: this.context.recaptchaSiteKey });
51
- }
52
45
  },
53
46
  computed: {
54
47
  hasNameError() {
@@ -114,22 +107,14 @@ export default defineComponent({
114
107
  return;
115
108
  }
116
109
  this.isSubmitting = true;
117
- try {
118
- let recaptchaToken;
119
- if (this.context?.recaptchaSiteKey && this.recaptcha?.isReady?.value) {
120
- recaptchaToken = await this.recaptcha.executeAsync(RECAPTCHA_ACTION_MAILING_LIST);
121
- }
122
- const result = await brandPageClient.addMailSubscriber(this.brandPageToken, this.email, this.name === '' ? undefined : this.name, recaptchaToken);
123
- if (!result.success) {
124
- this.submitError = result.errMessage;
125
- return;
126
- }
127
- this.submitError = undefined;
128
- this.hasSubscribed = result.success;
129
- }
130
- finally {
131
- this.isSubmitting = false;
110
+ const result = await brandPageClient.addMailSubscriber(this.brandPageToken, this.email, this.name === '' ? undefined : this.name);
111
+ this.isSubmitting = false;
112
+ if (!result.success) {
113
+ this.submitError = result.errMessage;
114
+ return;
132
115
  }
116
+ this.submitError = undefined;
117
+ this.hasSubscribed = result.success;
133
118
  },
134
119
  validateName() {
135
120
  if (this.name.trim() === '') {
@@ -12,7 +12,6 @@ export declare const context: {
12
12
  pages?: import("../../../view-models").PageViewModel[] | undefined;
13
13
  currentPageSlug?: string | undefined;
14
14
  runtimeEnvironment: string;
15
- recaptchaSiteKey: string | undefined;
16
15
  pageTitle: string;
17
16
  customDomain: string | undefined;
18
17
  brandPageType: "default" | "brandSite" | "brandContact";
@@ -12,7 +12,6 @@ export declare const context: {
12
12
  pages?: import("../../../view-models").PageViewModel[] | undefined;
13
13
  currentPageSlug?: string | undefined;
14
14
  runtimeEnvironment: string;
15
- recaptchaSiteKey: string | undefined;
16
15
  pageTitle: string;
17
16
  customDomain: string | undefined;
18
17
  brandPageType: "default" | "brandSite" | "brandContact";
@@ -51,8 +51,7 @@ export const Sample = () => {
51
51
  options: {
52
52
  mediaSizes: MEDIA_SIZES.sizeThumb,
53
53
  },
54
- isCapturingPreview: false,
55
- recaptchaSiteKey: undefined,
54
+ isCapturingPreview: false
56
55
  };
57
56
  return { viewModel, context };
58
57
  },
@@ -51,9 +51,6 @@ export declare const STATUS_CODE_CONFLICT = 409;
51
51
  export declare const MESSAGE_ADD_MAIL_SUBSCRIBER_CONFLICT: () => any;
52
52
  export declare const MESSAGE_ADD_MAIL_SUBSCRIBER_FAILED: () => any;
53
53
  export declare const MESSAGE_CONTACT_MESSAGE_FAILED: () => any;
54
- export declare const RECAPTCHA_ACTION_MAILING_LIST = "MAILING_LIST_SUBSCRIBE";
55
- export declare const RECAPTCHA_ACTION_CONTACT_FORM = "CONTACT_FORM_SUBMIT";
56
- export declare const RECAPTCHA_MIN_SCORE = 0.5;
57
54
  export declare const stripeDefaultStyle: {
58
55
  readonly base: {
59
56
  readonly color: "#7d8284";
@@ -61,10 +61,6 @@ export const STATUS_CODE_CONFLICT = 409;
61
61
  export const MESSAGE_ADD_MAIL_SUBSCRIBER_CONFLICT = () => errorTr('alreadySubscribedError');
62
62
  export const MESSAGE_ADD_MAIL_SUBSCRIBER_FAILED = () => errorTr('mailingListError');
63
63
  export const MESSAGE_CONTACT_MESSAGE_FAILED = () => errorTr('contactMessageError');
64
- // reCAPTCHA constants
65
- export const RECAPTCHA_ACTION_MAILING_LIST = 'MAILING_LIST_SUBSCRIBE';
66
- export const RECAPTCHA_ACTION_CONTACT_FORM = 'CONTACT_FORM_SUBMIT';
67
- export const RECAPTCHA_MIN_SCORE = 0.5;
68
64
  export const stripeDefaultStyle = {
69
65
  base: {
70
66
  color: '#7d8284',
@@ -59,8 +59,6 @@ export interface BrandPageContext {
59
59
  currentPageSlug?: string;
60
60
  runtimeEnvironment: string;
61
61
  stripePublishableKey: string | undefined;
62
- /** reCAPTCHA Enterprise site key for spam protection */
63
- recaptchaSiteKey: string | undefined;
64
62
  pageTitle: string;
65
63
  customDomain: string | undefined;
66
64
  brandPageType: BrandPageType;
@@ -273,7 +273,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
273
273
  isSubsequentPublish: boolean;
274
274
  isContextualUpgradeModalVisible: boolean;
275
275
  contextualUpgradeType: string | number | symbol | undefined;
276
- templateSearchTerm: string | undefined;
277
276
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
278
277
  isUserDraft: (state: {
279
278
  availableTaxes: any[];
@@ -335,7 +334,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
335
334
  isSubsequentPublish: boolean;
336
335
  isContextualUpgradeModalVisible: boolean;
337
336
  contextualUpgradeType: string | number | symbol | undefined;
338
- templateSearchTerm: string | undefined;
339
337
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
340
338
  }, {
341
339
  initialise(payload: import("../../stores/brandpage-container").InitialisePayload): void;
@@ -705,7 +705,6 @@ declare const _default: import("vue").DefineComponent<{}, {
705
705
  isSubsequentPublish: boolean;
706
706
  isContextualUpgradeModalVisible: boolean;
707
707
  contextualUpgradeType: string | number | symbol | undefined;
708
- templateSearchTerm: string | undefined;
709
708
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
710
709
  isUserDraft: (state: {
711
710
  availableTaxes: any[];
@@ -767,7 +766,6 @@ declare const _default: import("vue").DefineComponent<{}, {
767
766
  isSubsequentPublish: boolean;
768
767
  isContextualUpgradeModalVisible: boolean;
769
768
  contextualUpgradeType: string | number | symbol | undefined;
770
- templateSearchTerm: string | undefined;
771
769
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
772
770
  }, {
773
771
  initialise(payload: import("../../stores/brandpage-container").InitialisePayload): void;
@@ -97,7 +97,6 @@ export default defineComponent({
97
97
  isBrandContact: this.viewModel.brandPageType === BRAND_PAGE_TYPES.brandContact,
98
98
  isCapturingPreview: false,
99
99
  abTests: this.abTests,
100
- recaptchaSiteKey: undefined,
101
100
  };
102
101
  },
103
102
  hasContents() {
@@ -71,7 +71,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
71
71
  isSubsequentPublish: boolean;
72
72
  isContextualUpgradeModalVisible: boolean;
73
73
  contextualUpgradeType: string | number | symbol | undefined;
74
- templateSearchTerm: string | undefined;
75
74
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
76
75
  isUserDraft: (state: {
77
76
  availableTaxes: any[];
@@ -133,7 +132,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
133
132
  isSubsequentPublish: boolean;
134
133
  isContextualUpgradeModalVisible: boolean;
135
134
  contextualUpgradeType: string | number | symbol | undefined;
136
- templateSearchTerm: string | undefined;
137
135
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
138
136
  }, {
139
137
  initialise(payload: import("../../stores/brandpage-container").InitialisePayload): void;
@@ -87,7 +87,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
87
87
  isSubsequentPublish: boolean;
88
88
  isContextualUpgradeModalVisible: boolean;
89
89
  contextualUpgradeType: string | number | symbol | undefined;
90
- templateSearchTerm: string | undefined;
91
90
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
92
91
  isUserDraft: (state: {
93
92
  availableTaxes: any[];
@@ -149,7 +148,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
149
148
  isSubsequentPublish: boolean;
150
149
  isContextualUpgradeModalVisible: boolean;
151
150
  contextualUpgradeType: string | number | symbol | undefined;
152
- templateSearchTerm: string | undefined;
153
151
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
154
152
  }, {
155
153
  initialise(payload: import("../../stores/brandpage-container").InitialisePayload): void;
@@ -92,7 +92,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
92
92
  isSubsequentPublish: boolean;
93
93
  isContextualUpgradeModalVisible: boolean;
94
94
  contextualUpgradeType: string | number | symbol | undefined;
95
- templateSearchTerm: string | undefined;
96
95
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
97
96
  isUserDraft: (state: {
98
97
  availableTaxes: any[];
@@ -154,7 +153,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
154
153
  isSubsequentPublish: boolean;
155
154
  isContextualUpgradeModalVisible: boolean;
156
155
  contextualUpgradeType: string | number | symbol | undefined;
157
- templateSearchTerm: string | undefined;
158
156
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
159
157
  }, {
160
158
  initialise(payload: import("../../stores/brandpage-container").InitialisePayload): void;
@@ -68,7 +68,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
68
68
  isSubsequentPublish: boolean;
69
69
  isContextualUpgradeModalVisible: boolean;
70
70
  contextualUpgradeType: string | number | symbol | undefined;
71
- templateSearchTerm: string | undefined;
72
71
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
73
72
  isUserDraft: (state: {
74
73
  availableTaxes: any[];
@@ -130,7 +129,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
130
129
  isSubsequentPublish: boolean;
131
130
  isContextualUpgradeModalVisible: boolean;
132
131
  contextualUpgradeType: string | number | symbol | undefined;
133
- templateSearchTerm: string | undefined;
134
132
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
135
133
  }, {
136
134
  initialise(payload: import("../../stores/brandpage-container").InitialisePayload): void;
@@ -143,7 +143,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
143
143
  isSubsequentPublish: boolean;
144
144
  isContextualUpgradeModalVisible: boolean;
145
145
  contextualUpgradeType: string | number | symbol | undefined;
146
- templateSearchTerm: string | undefined;
147
146
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
148
147
  isUserDraft: (state: {
149
148
  availableTaxes: any[];
@@ -205,7 +204,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
205
204
  isSubsequentPublish: boolean;
206
205
  isContextualUpgradeModalVisible: boolean;
207
206
  contextualUpgradeType: string | number | symbol | undefined;
208
- templateSearchTerm: string | undefined;
209
207
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
210
208
  }, {
211
209
  initialise(payload: import("../../stores/brandpage-container").InitialisePayload): void;
@@ -121,7 +121,6 @@ export default defineComponent({
121
121
  enableSaveContact: false,
122
122
  },
123
123
  isCapturingPreview: false,
124
- recaptchaSiteKey: undefined,
125
124
  };
126
125
  },
127
126
  previewViewport() {
@@ -68,7 +68,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
68
68
  isSubsequentPublish: boolean;
69
69
  isContextualUpgradeModalVisible: boolean;
70
70
  contextualUpgradeType: string | number | symbol | undefined;
71
- templateSearchTerm: string | undefined;
72
71
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
73
72
  isUserDraft: (state: {
74
73
  availableTaxes: any[];
@@ -130,7 +129,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
130
129
  isSubsequentPublish: boolean;
131
130
  isContextualUpgradeModalVisible: boolean;
132
131
  contextualUpgradeType: string | number | symbol | undefined;
133
- templateSearchTerm: string | undefined;
134
132
  } & import("pinia").PiniaCustomStateProperties<import("../../stores").BrandPageContainerState>) => boolean;
135
133
  }, {
136
134
  initialise(payload: import("../../stores/brandpage-container").InitialisePayload): void;
@@ -51,7 +51,6 @@ export interface BrandPageContainerState {
51
51
  isSubsequentPublish: boolean;
52
52
  isContextualUpgradeModalVisible: boolean;
53
53
  contextualUpgradeType: WebsiteContextUpgradeType | undefined;
54
- templateSearchTerm: string | undefined;
55
54
  }
56
55
  export type GettyVideoEditorViewModelResponse = {
57
56
  assetId: string;
@@ -140,7 +139,6 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
140
139
  isSubsequentPublish: boolean;
141
140
  isContextualUpgradeModalVisible: boolean;
142
141
  contextualUpgradeType: WebsiteContextUpgradeType | undefined;
143
- templateSearchTerm: string | undefined;
144
142
  } & import("pinia").PiniaCustomStateProperties<BrandPageContainerState>) => boolean;
145
143
  isUserDraft: (state: {
146
144
  availableTaxes: any[];
@@ -202,7 +200,6 @@ export declare const useBrandPageContainerStore: import("pinia").StoreDefinition
202
200
  isSubsequentPublish: boolean;
203
201
  isContextualUpgradeModalVisible: boolean;
204
202
  contextualUpgradeType: WebsiteContextUpgradeType | undefined;
205
- templateSearchTerm: string | undefined;
206
203
  } & import("pinia").PiniaCustomStateProperties<BrandPageContainerState>) => boolean;
207
204
  }, {
208
205
  initialise(payload: InitialisePayload): void;
@@ -67,7 +67,6 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
67
67
  isSubsequentPublish: false,
68
68
  isContextualUpgradeModalVisible: false,
69
69
  contextualUpgradeType: undefined,
70
- templateSearchTerm: undefined,
71
70
  };
72
71
  },
73
72
  actions: {
@@ -124,7 +123,6 @@ export const useBrandPageContainerStore = defineStore('brandPageContainer', {
124
123
  this.showPublishOptionModal = payload.showPublishOptionModal;
125
124
  this.abTests = getAbTestResults(payload.abTests || {});
126
125
  this.isSubsequentPublish = payload.isSubsequentPublish;
127
- this.templateSearchTerm = payload.templateSearchTerm;
128
126
  const logoStore = useLogoStore();
129
127
  logoStore.initialise({
130
128
  logoTemplateAsset: payload.logoTemplateAsset,