@designcrowd/library.brand-page 5.12.18 → 5.12.19

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 (21) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-BEJZW9EU.js → CreatedOnBrandCrowd-de-de-43-I42BH.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-DnqipZ0K.js → CreatedOnBrandCrowd-en-us-0dcuU1jY.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-DPH6Tvc7.js → CreatedOnBrandCrowd-es-es-EIZ2SjX9.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-CwxOWdgN.js → CreatedOnBrandCrowd-fr-fr-CSrtj5tD.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-pt-pt-HWDXi_vy.js → CreatedOnBrandCrowd-pt-pt-dR4Vgg8X.js} +1 -1
  6. package/lib/src/{CreatedOnDcom-de-de-DeDtODBP.js → CreatedOnDcom-de-de-DHZBQQcr.js} +1 -1
  7. package/lib/src/{CreatedOnDcom-en-us-CdgFJhDz.js → CreatedOnDcom-en-us-CIs5j_R9.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-es-es-Vt-agxSv.js → CreatedOnDcom-es-es-DR6cddAg.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-fr-fr-CH_phXpq.js → CreatedOnDcom-fr-fr-VBiAtQPb.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-pt-pt-BKuQlzwh.js → CreatedOnDcom-pt-pt-BJ4nZ3_O.js} +1 -1
  11. package/lib/src/brand-page/components/text-media-section/TextMediaSection.mixin.d.ts +2 -0
  12. package/lib/src/brand-page/components/text-media-section/TextMediaSection.mixin.js +9 -1
  13. package/lib/src/css/library.brand-page-brandCrowd.min.css +14 -14
  14. package/lib/src/css/library.brand-page-brandPage.min.css +14 -14
  15. package/lib/src/css/library.brand-page-designCom.min.css +14 -14
  16. package/lib/src/css/library.brand-page-preview.min.css +14 -14
  17. package/lib/src/index.mjs +1 -1
  18. package/lib/src/{lib-DjMCRkcx.js → lib-A6QaGj8a.js} +683 -677
  19. package/package.json +1 -1
  20. package/src/brand-page/components/text-media-section/TextMediaSection.mixin.ts +14 -1
  21. package/src/brand-page/components/text-media-section/TextMediaSection.vue +2 -2
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.12.18",
4
+ "version": "5.12.19",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -12,7 +12,7 @@ import {
12
12
  MEDIA_ONLY,
13
13
  } from '../../constants';
14
14
  import { isHexTransparent } from '../../utils/color.util';
15
- import { getRenderText } from '../../utils';
15
+ import { escapeContentText, getRenderText } from '../../utils';
16
16
 
17
17
  export default defineComponent({
18
18
  mixins: [ComponentCommonMixin],
@@ -38,6 +38,19 @@ export default defineComponent({
38
38
  return this.context.isBrandSite && this.viewModel.areImagesFullWidth;
39
39
  },
40
40
 
41
+ hasTitle() {
42
+ const sanitizedTitle = escapeContentText(this.viewModel.title) || '';
43
+
44
+ return sanitizedTitle.length > 0;
45
+ },
46
+
47
+ hasDescription() {
48
+ const sanitizedDescription =
49
+ escapeContentText(this.viewModel.description) || '';
50
+
51
+ return sanitizedDescription.length > 0;
52
+ },
53
+
41
54
  shouldHorizontalAlign() {
42
55
  return (
43
56
  this.viewModel.displayStyle === ALIGN_LEFT_ALIGNED ||
@@ -18,7 +18,7 @@
18
18
  ]"
19
19
  >
20
20
  <TextWrapper
21
- v-if="viewModel.title"
21
+ v-if="hasTitle"
22
22
  :text-style="viewModel.titleStyle"
23
23
  :text="viewModel.title"
24
24
  :slug="context.brandPageSlug"
@@ -29,7 +29,7 @@
29
29
  }"
30
30
  />
31
31
  <TextWrapper
32
- v-if="viewModel.description"
32
+ v-if="hasDescription"
33
33
  :text-style="viewModel.descriptionStyle"
34
34
  :text="viewModel.description"
35
35
  :slug="context.brandPageSlug"