@designcrowd/library.brand-page 5.17.2 → 5.17.3

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 (28) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-DVbX019x.js → CreatedOnBrandCrowd-de-de-yFg0wq_8.js} +3 -3
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-U7ZUILmi.js → CreatedOnBrandCrowd-en-us-D4sUyR-U.js} +3 -3
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-D97zjmv_.js → CreatedOnBrandCrowd-es-es-CjXHshc0.js} +3 -3
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-BuOAG7-D.js → CreatedOnBrandCrowd-fr-ca-CtsyncLl.js} +3 -3
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-BuOAG7-D.js → CreatedOnBrandCrowd-fr-fr-CtsyncLl.js} +3 -3
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-DMTRsNBz.js → CreatedOnBrandCrowd-pt-br-D8Z-gS4q.js} +3 -3
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-DMTRsNBz.js → CreatedOnBrandCrowd-pt-pt-D8Z-gS4q.js} +3 -3
  8. package/lib/src/{CreatedOnDcom-de-de-B_jbp2ga.js → CreatedOnDcom-de-de-k7a8-Akd.js} +3 -3
  9. package/lib/src/{CreatedOnDcom-en-us-DQQQhn-z.js → CreatedOnDcom-en-us-Bh5mbVcr.js} +3 -3
  10. package/lib/src/{CreatedOnDcom-es-es-q3MzWO6e.js → CreatedOnDcom-es-es-DkEBWtQn.js} +3 -3
  11. package/lib/src/{CreatedOnDcom-fr-ca-Bep30mu7.js → CreatedOnDcom-fr-ca-DcarvQ1r.js} +3 -3
  12. package/lib/src/{CreatedOnDcom-fr-fr-DTF8Zzzc.js → CreatedOnDcom-fr-fr-Cbe-yOPu.js} +3 -3
  13. package/lib/src/{CreatedOnDcom-pt-br-ByR1GU2L.js → CreatedOnDcom-pt-br-DlWu_Kwc.js} +3 -3
  14. package/lib/src/{CreatedOnDcom-pt-pt-A0L4zTr0.js → CreatedOnDcom-pt-pt-DZp9RWfH.js} +3 -3
  15. package/lib/src/brand-page-maker/validators/section-button.validator.js +4 -1
  16. package/lib/src/css/library.brand-page-brandCrowd.min.css +43 -41
  17. package/lib/src/css/library.brand-page-brandPage.min.css +44 -43
  18. package/lib/src/css/library.brand-page-designCom.min.css +43 -41
  19. package/lib/src/css/library.brand-page-preview.min.css +43 -41
  20. package/lib/src/index.mjs +1 -1
  21. package/lib/src/{lib-CvEpWvWA.js → lib-DOfGX3z2.js} +12109 -12015
  22. package/lib/src/mockServiceWorker.js +1 -1
  23. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.js +14 -0
  24. package/package.json +1 -1
  25. package/src/brand-page/components/about-section/AboutSection.vue +7 -1
  26. package/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.vue +1 -1
  27. package/src/brand-page-maker/validators/section-button.validator.ts +5 -1
  28. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.ts +17 -0
@@ -7,7 +7,7 @@
7
7
  * - Please do NOT modify this file.
8
8
  */
9
9
 
10
- const PACKAGE_VERSION = '2.12.3'
10
+ const PACKAGE_VERSION = '2.12.10'
11
11
  const INTEGRITY_CHECKSUM = '4db4a41e972cec1b64cc569c66952d82'
12
12
  const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
13
13
  const activeClientIds = new Set()
@@ -206,6 +206,20 @@ export default defineComponent({
206
206
  this.clearFieldValue();
207
207
  },
208
208
  },
209
+ mounted() {
210
+ if (this.field.fieldTypeAssessor && this.field.validator) {
211
+ const validatorResult = this.field.validator(this.content);
212
+ const isInvalid = validatorResult === false ||
213
+ (typeof validatorResult === 'object' && !validatorResult.isValid);
214
+ if (isInvalid) {
215
+ this.clearFieldValue();
216
+ }
217
+ this.contentSettingsStore.validateItem({
218
+ id: this.id,
219
+ name: this.field.name,
220
+ });
221
+ }
222
+ },
209
223
  methods: {
210
224
  onFieldChanged(payload) {
211
225
  if (payload.multipleValues) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@designcrowd/library.brand-page",
3
3
  "description": "A collection of Maker/Designer applications",
4
- "version": "5.17.2",
4
+ "version": "5.17.3",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -9,6 +9,8 @@
9
9
  'about-container': context.isBrandSite,
10
10
  'about-container--padding tw-py-10': !isFullImage,
11
11
  'mobile-about-container--padding': isFullImage,
12
+ 'side-full-media-container':
13
+ isFullImage && (isRightAligned || isLeftAligned),
12
14
  }"
13
15
  >
14
16
  <Media
@@ -64,6 +66,7 @@
64
66
  'tw-relative tw-overflow-hidden': !viewModel.imageUrl,
65
67
  'full-square-image': isFullImage,
66
68
  'container-image': !isFullImage,
69
+ 'tw-mb-4': isMobileDevice,
67
70
  }"
68
71
  :class="{
69
72
  'tw-flex tw-justify-center': isDividedContent,
@@ -117,6 +120,9 @@ export default {
117
120
  max-width: var(--brandsite-max-width);
118
121
  margin: 0 auto;
119
122
  }
123
+ .side-full-media-container {
124
+ max-width: 100% !important;
125
+ }
120
126
  .about-container--padding {
121
127
  padding-left: var(--page-padding);
122
128
  padding-right: var(--page-padding);
@@ -177,7 +183,6 @@ export default {
177
183
  }
178
184
 
179
185
  .about-container :deep(.full-square-image) {
180
- @apply tw-mb-4;
181
186
  width: 100%;
182
187
  aspect-ratio: 1/1;
183
188
  object-fit: cover;
@@ -195,6 +200,7 @@ export default {
195
200
  width: 100%;
196
201
  height: fit-content;
197
202
  }
203
+
198
204
  @media (max-width: 767px) {
199
205
  .about-container :deep(.mob_img--left) {
200
206
  @apply tw-block tw-w-full;
@@ -258,7 +258,7 @@ export default {
258
258
  }
259
259
 
260
260
  .c-save-bar {
261
- @apply tw-absolute tw-top-0 tw-left-0 tw-w-full tw-p-4 tw-box-border tw-z-20 tw-transition-all tw-duration-300 tw-ease-out tw-transform tw--translate-y-1/2 tw-opacity-0;
261
+ @apply tw-absolute tw-top-0 tw-left-0 tw-w-full tw-p-4 tw-box-border tw-z-[100] tw-transition-all tw-duration-300 tw-ease-out tw-transform tw--translate-y-1/2 tw-opacity-0;
262
262
  }
263
263
 
264
264
  .c-save-bar--visible {
@@ -14,6 +14,10 @@ const MISSING_BUTTON_TEL_MESSAGE = () => validatorTr('invalidTelMessage');
14
14
 
15
15
  const MISSING_PAGE_SLUG_MESSAGE = () => validatorTr('selectAPage');
16
16
 
17
+ const containsAtSymbol = (value: unknown): boolean => {
18
+ return typeof value === 'string' && value.includes('@');
19
+ };
20
+
17
21
  export const textValidator: ContentValidator<BannerSectionContent> = (
18
22
  section,
19
23
  ): ValidateResult => {
@@ -39,7 +43,7 @@ export const urlValidator: ContentValidator<
39
43
  > = (section): ValidateResult => {
40
44
  if (
41
45
  section.buttonLinkType === BUTTON_LINK_TYPE.url &&
42
- !isURL(section.url) &&
46
+ (!isURL(section.url) || containsAtSymbol(section.url)) &&
43
47
  section.buttonText !== false &&
44
48
  section.buttonText?.length > 0
45
49
  ) {
@@ -249,6 +249,23 @@ export default defineComponent({
249
249
  this.clearFieldValue();
250
250
  },
251
251
  },
252
+ mounted() {
253
+ if (this.field.fieldTypeAssessor && this.field.validator) {
254
+ const validatorResult = this.field.validator(this.content);
255
+ const isInvalid =
256
+ validatorResult === false ||
257
+ (typeof validatorResult === 'object' && !validatorResult.isValid);
258
+
259
+ if (isInvalid) {
260
+ this.clearFieldValue();
261
+ }
262
+
263
+ this.contentSettingsStore.validateItem({
264
+ id: this.id,
265
+ name: this.field.name,
266
+ });
267
+ }
268
+ },
252
269
  methods: {
253
270
  onFieldChanged(payload: UpdateItemValuePayload<unknown>) {
254
271
  if (payload.multipleValues) {