@designcrowd/library.brand-page 5.18.9 → 5.19.1-error-html2canvas-1

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 (142) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-CDdi84ti.js → CreatedOnBrandCrowd-de-de-CxCJU9cc.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-BvRiqC8_.js → CreatedOnBrandCrowd-en-us-zDJCWP5n.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-BGjpqIbV.js → CreatedOnBrandCrowd-es-es-DNna1Sh9.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-BSLrflaD.js → CreatedOnBrandCrowd-fr-ca-C5XVf_hD.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-BSLrflaD.js → CreatedOnBrandCrowd-fr-fr-C5XVf_hD.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-CYdUgcJs.js → CreatedOnBrandCrowd-pt-br-9eUHV_M3.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-CYdUgcJs.js → CreatedOnBrandCrowd-pt-pt-9eUHV_M3.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-D3gzpYgh.js → CreatedOnDcom-de-de-D9HMpK8Q.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-V6QwvLNX.js → CreatedOnDcom-en-us-BCTkchV5.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-BmgxqURo.js → CreatedOnDcom-es-es-B0N7VoTp.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-DEAawXEa.js → CreatedOnDcom-fr-ca-Gi4oz_Mm.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-Da7MhYpI.js → CreatedOnDcom-fr-fr-DJI8eJo1.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-D6WUdxFK.js → CreatedOnDcom-pt-br-YNWMAuQf.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-CS5m0sQX.js → CreatedOnDcom-pt-pt-DCIIK3sy.js} +1 -1
  15. package/lib/src/brand-page/components/contact-form/ContactForm.mixin.d.ts +4 -0
  16. package/lib/src/brand-page/components/contact-form/ContactForm.mixin.js +8 -4
  17. package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.d.ts +4 -0
  18. package/lib/src/brand-page/components/image-gallery/ImageGallery.mixin.js +4 -0
  19. package/lib/src/brand-page/components/mailing-list/MailingList.mixin.d.ts +4 -0
  20. package/lib/src/brand-page/components/mailing-list/MailingList.mixin.js +4 -1
  21. package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.d.ts +4 -0
  22. package/lib/src/brand-page/components/payment/request-payment/RequestPayment.mixin.js +4 -0
  23. package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.d.ts +4 -0
  24. package/lib/src/brand-page/components/payment/support-me/SupportMe.mixin.js +4 -1
  25. package/lib/src/brand-page/components/video/Video.mixin.d.ts +4 -0
  26. package/lib/src/brand-page/components/video/Video.mixin.js +4 -0
  27. package/lib/src/brand-page/constants/font.constants.d.ts +4 -4
  28. package/lib/src/brand-page/constants/font.constants.js +4 -4
  29. package/lib/src/brand-page/constants/misc.constants.d.ts +35 -0
  30. package/lib/src/brand-page/constants/misc.constants.js +51 -0
  31. package/lib/src/brand-page/models/content.model.d.ts +2 -0
  32. package/lib/src/brand-page/utils/content-padding.util.d.ts +13 -0
  33. package/lib/src/brand-page/utils/content-padding.util.js +10 -0
  34. package/lib/src/brand-page/utils/index.d.ts +1 -0
  35. package/lib/src/brand-page/utils/index.js +1 -0
  36. package/lib/src/brand-page/utils/migration/migration-17.d.ts +2 -0
  37. package/lib/src/brand-page/utils/migration/migration-17.js +60 -0
  38. package/lib/src/brand-page/utils/migration.util.js +10 -0
  39. package/lib/src/brand-page-maker/components/admin-logo-settings/AdminLogoSettings.mixin.d.ts +2 -0
  40. package/lib/src/brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin.d.ts +12 -0
  41. package/lib/src/brand-page-maker/components/brandpage-maker-page/BrandPageMakerPage.mixin.d.ts +14 -0
  42. package/lib/src/brand-page-maker/constants/config-settings-constant.js +39 -0
  43. package/lib/src/brand-page-maker/convertors/about-display-style.convertor.js +9 -1
  44. package/lib/src/brand-page-maker/convertors/banner-align-display-style.convertor.js +7 -1
  45. package/lib/src/brand-page-maker/convertors/contact-layout-style.convertor.js +6 -1
  46. package/lib/src/brand-page-maker/models/content-settings.js +39 -2
  47. package/lib/src/brand-page-maker/stores/ai-checkpoint/ai-checkpoint-store.d.ts +12 -0
  48. package/lib/src/{bundled-translations-D1q3rSEz.js → bundled-translations-BUyt4scr.js} +9 -9
  49. package/lib/src/{bundled-translations.de-DE-BxqLLwbh.js → bundled-translations.de-DE-DEw_OVai.js} +1 -1
  50. package/lib/src/{bundled-translations.es-ES-uh249NlJ.js → bundled-translations.es-ES-CFKWmkgY.js} +17 -17
  51. package/lib/src/{bundled-translations.fr-CA-BEQmv2fX.js → bundled-translations.fr-CA-DCl5LJS4.js} +1 -1
  52. package/lib/src/{bundled-translations.fr-FR-BnNuCojH.js → bundled-translations.fr-FR-B5BjgllA.js} +1 -1
  53. package/lib/src/{bundled-translations.pt-BR-CJUOxVlq.js → bundled-translations.pt-BR-5PWpMPuM.js} +1 -1
  54. package/lib/src/{bundled-translations.pt-PT-Ds9cMEqK.js → bundled-translations.pt-PT-B9_wN0HR.js} +9 -9
  55. package/lib/src/bundles/bundled-translations.de-DE.json +2 -0
  56. package/lib/src/bundles/bundled-translations.es-ES.json +2 -0
  57. package/lib/src/bundles/bundled-translations.fr-CA.json +2 -0
  58. package/lib/src/bundles/bundled-translations.fr-FR.json +2 -0
  59. package/lib/src/bundles/bundled-translations.json +2 -0
  60. package/lib/src/bundles/bundled-translations.pt-BR.json +2 -0
  61. package/lib/src/bundles/bundled-translations.pt-PT.json +2 -0
  62. package/lib/src/clients/asset-library-clients.js +19 -12
  63. package/lib/src/composables/useSnapshot.js +18 -18
  64. package/lib/src/css/library.brand-page-brandCrowd.min.css +141 -155
  65. package/lib/src/css/library.brand-page-brandPage.min.css +141 -155
  66. package/lib/src/css/library.brand-page-designCom.min.css +141 -155
  67. package/lib/src/css/library.brand-page-preview.min.css +141 -155
  68. package/lib/src/index.mjs +1 -1
  69. package/lib/src/{lib--1xJXw4j.js → lib-CaY174HB.js} +21176 -21027
  70. package/lib/src/shared/content-settings/components/content-settings/ContentSettings.mixin.d.ts +14 -0
  71. package/lib/src/shared/content-settings/components/content-settings/ReplaceImageSettingsForContent.mixin.d.ts +14 -0
  72. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.mixin.d.ts +12 -0
  73. package/lib/src/shared/content-settings/components/content-settings-item/ContentSettingsItemField.mixin.d.ts +12 -0
  74. package/lib/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.mixin.d.ts +12 -0
  75. package/lib/src/shared/content-settings/components/slider-field/SliderField.mixin.js +9 -0
  76. package/lib/src/shared/content-settings/store/content-settings-store.d.ts +12 -0
  77. package/lib/src/shared/page-settings/components/page-settings/PageSettings.mixin.d.ts +16 -0
  78. package/lib/src/shared/page-settings/components/page-settings-section-styles/PageSettingsSectionStyles.mixin.d.ts +14 -0
  79. package/lib/src/utils/minify-brand-page-metadata.js +11 -1
  80. package/package.json +1 -1
  81. package/src/brand-page/components/about-section/AboutSection.vue +10 -4
  82. package/src/brand-page/components/banner-section/BannerSection.vue +11 -4
  83. package/src/brand-page/components/booking-section/BookingSection.vue +11 -3
  84. package/src/brand-page/components/contact-form/ContactForm.mixin.ts +12 -6
  85. package/src/brand-page/components/contact-form/ContactForm.vue +105 -104
  86. package/src/brand-page/components/image-gallery/ImageGallery.mixin.ts +5 -0
  87. package/src/brand-page/components/image-gallery/ImageGallery.vue +1 -1
  88. package/src/brand-page/components/mailing-list/MailingList.mixin.ts +8 -1
  89. package/src/brand-page/components/mailing-list/MailingList.vue +1 -1
  90. package/src/brand-page/components/map/Map.vue +5 -1
  91. package/src/brand-page/components/payment/request-payment/RequestPayment.mixin.ts +5 -0
  92. package/src/brand-page/components/payment/request-payment/RequestPayment.vue +1 -0
  93. package/src/brand-page/components/payment/support-me/SupportMe.mixin.ts +8 -1
  94. package/src/brand-page/components/payment/support-me/SupportMe.vue +1 -0
  95. package/src/brand-page/components/shop/Shop.vue +7 -2
  96. package/src/brand-page/components/social-links/SocialLinks.vue +7 -3
  97. package/src/brand-page/components/testimonial-section/TestimonialSection.vue +120 -11
  98. package/src/brand-page/components/text/Text.vue +12 -5
  99. package/src/brand-page/components/text-media-section/TextMediaSection.vue +11 -3
  100. package/src/brand-page/components/video/Video.mixin.ts +5 -0
  101. package/src/brand-page/components/video/Video.vue +1 -1
  102. package/src/brand-page/constants/font.constants.ts +4 -4
  103. package/src/brand-page/constants/misc.constants.ts +58 -0
  104. package/src/brand-page/models/content.model.ts +2 -0
  105. package/src/brand-page/utils/__snapshots__/migration.util.test.ts.snap +9 -3
  106. package/src/brand-page/utils/__snapshots__/migration2.util.test.ts.snap +6 -6
  107. package/src/brand-page/utils/__snapshots__/model.util.test.ts.snap +12 -12
  108. package/src/brand-page/utils/content-padding.util.test.ts +29 -0
  109. package/src/brand-page/utils/content-padding.util.ts +13 -0
  110. package/src/brand-page/utils/index.ts +1 -0
  111. package/src/brand-page/utils/migration/migration-17.ts +77 -0
  112. package/src/brand-page/utils/migration.util.test.ts +290 -0
  113. package/src/brand-page/utils/migration.util.ts +11 -0
  114. package/src/brand-page-maker/constants/config-settings-constant.ts +45 -0
  115. package/src/brand-page-maker/convertors/about-display-style.convertor.ts +10 -0
  116. package/src/brand-page-maker/convertors/banner-align-display-style.convertor.ts +8 -0
  117. package/src/brand-page-maker/convertors/contact-layout-style.convertor.test.ts +50 -0
  118. package/src/brand-page-maker/convertors/contact-layout-style.convertor.ts +8 -0
  119. package/src/brand-page-maker/models/content-settings.ts +43 -2
  120. package/src/bundles/bundled-translations.de-DE.json +2 -0
  121. package/src/bundles/bundled-translations.es-ES.json +2 -0
  122. package/src/bundles/bundled-translations.fr-CA.json +2 -0
  123. package/src/bundles/bundled-translations.fr-FR.json +2 -0
  124. package/src/bundles/bundled-translations.json +2 -0
  125. package/src/bundles/bundled-translations.pt-BR.json +2 -0
  126. package/src/bundles/bundled-translations.pt-PT.json +2 -0
  127. package/src/clients/asset-library-clients.ts +26 -13
  128. package/src/composables/useSnapshot.ts +19 -22
  129. package/src/shared/content-settings/components/content-settings/i18n/content-settings.de-DE.json +2 -0
  130. package/src/shared/content-settings/components/content-settings/i18n/content-settings.es-ES.json +2 -0
  131. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-CA.json +2 -0
  132. package/src/shared/content-settings/components/content-settings/i18n/content-settings.fr-FR.json +2 -0
  133. package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +2 -0
  134. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-BR.json +2 -0
  135. package/src/shared/content-settings/components/content-settings/i18n/content-settings.pt-PT.json +2 -0
  136. package/src/shared/content-settings/components/content-settings-item/ContentSettingsItem.vue +1 -1
  137. package/src/shared/content-settings/components/focused-content-item-settings/FocusedContentItemSettings.vue +2 -2
  138. package/src/shared/content-settings/components/slider-field/SliderField.mixin.ts +9 -0
  139. package/src/utils/minify-brand-page-metadata.ts +11 -1
  140. package/lib/src/brand-page/components/testimonial-section/TestimonialSection.mixin.d.ts +0 -97
  141. package/lib/src/brand-page/components/testimonial-section/TestimonialSection.mixin.js +0 -112
  142. package/src/brand-page/components/testimonial-section/TestimonialSection.mixin.ts +0 -132
@@ -1,112 +0,0 @@
1
- import { defineComponent } from 'vue';
2
- import ComponentCommonMixin from '../mixins/component-common.mixin';
3
- import { getRenderText } from '@brand-page/utils';
4
- import debounce from 'lodash.debounce';
5
- import { DEVICE_CSS_TRANSITION_DELAY } from '@brand-page-maker/constants';
6
- const DEBOUNCE_WAIT_MS = 100;
7
- export default defineComponent({
8
- mixins: [ComponentCommonMixin],
9
- props: {
10
- viewModel: {
11
- type: Object,
12
- required: true,
13
- },
14
- isPreview: {
15
- type: Boolean,
16
- required: false,
17
- default: false,
18
- },
19
- context: {
20
- type: Object,
21
- required: true,
22
- },
23
- contentIndex: {
24
- type: Number,
25
- required: false,
26
- default: undefined,
27
- },
28
- },
29
- data() {
30
- return {
31
- debouncedForceCarouselUpdate: undefined,
32
- carouselRef: 'testimonial-carousel',
33
- };
34
- },
35
- created() {
36
- this.debouncedForceCarouselUpdate = debounce(() => {
37
- this.forceCarouselUpdate();
38
- }, DEBOUNCE_WAIT_MS);
39
- },
40
- computed: {
41
- textAlignClass() {
42
- return {
43
- 'c_testimonial-big-image-text-item': this.viewModel.displayStyle === 'big-image',
44
- 'tw-mb-2': this.viewModel.displayStyle !== 'big-image',
45
- };
46
- },
47
- navigationUniqueIndexer() {
48
- return `testimonial-${this.viewModel.id}`;
49
- },
50
- swiperOptions() {
51
- return {
52
- autoHeight: true,
53
- navigation: {
54
- prevEl: `.carousel__button-prev--${this.navigationUniqueIndexer}`,
55
- nextEl: `.carousel__button-next--${this.navigationUniqueIndexer}`,
56
- },
57
- pagination: {
58
- el: `.pagination--${this.navigationUniqueIndexer}`,
59
- clickable: true,
60
- },
61
- };
62
- },
63
- },
64
- methods: {
65
- renderText(val) {
66
- if (val) {
67
- return getRenderText(val);
68
- }
69
- return '';
70
- },
71
- forceCarouselUpdate() {
72
- const shouldUpdateCarousel = Boolean(this.isPreview &&
73
- (this.viewModel.items.length > 1 ||
74
- this.viewModel.displayStyle === 'big-image') &&
75
- this.$refs[this.carouselRef]);
76
- if (shouldUpdateCarousel) {
77
- this.$refs[this.carouselRef].update();
78
- return true;
79
- }
80
- return false;
81
- },
82
- forceCarouselUpdateSlideWidth() {
83
- if (this.forceCarouselUpdate()) {
84
- try {
85
- const width = this.$refs[this.carouselRef].swiper.slidesEl.scrollWidth;
86
- this.$refs[this.carouselRef].swiper.slidesEl.children.forEach((slide) => {
87
- const slideWidth = parseFloat(slide.style.width);
88
- if (slideWidth !== width) {
89
- slide.style.width = width + 'px';
90
- }
91
- });
92
- }
93
- catch (error) {
94
- console.warn('Testimonial: Unable to auto update slide width');
95
- }
96
- }
97
- },
98
- },
99
- watch: {
100
- viewModel: {
101
- handler() {
102
- this.debouncedForceCarouselUpdate();
103
- },
104
- deep: true,
105
- },
106
- isMobileDevice(next, old) {
107
- if (next !== old) {
108
- setTimeout(this.forceCarouselUpdateSlideWidth, DEVICE_CSS_TRANSITION_DELAY + 1);
109
- }
110
- },
111
- },
112
- });
@@ -1,132 +0,0 @@
1
- import { defineComponent } from 'vue';
2
- import type { PropType } from 'vue';
3
- import ComponentCommonMixin from '../mixins/component-common.mixin';
4
- import type { TestimonialSectionViewModel } from '@brand-page/view-models';
5
- import type { BrandPageContext } from '@brand-page/models';
6
- import { getRenderText } from '@brand-page/utils';
7
- import type { DebounceHandle } from 'lodash.debounce';
8
- import debounce from 'lodash.debounce';
9
- import { DEVICE_CSS_TRANSITION_DELAY } from '@brand-page-maker/constants';
10
-
11
- const DEBOUNCE_WAIT_MS = 100;
12
-
13
- export default defineComponent({
14
- mixins: [ComponentCommonMixin],
15
- props: {
16
- viewModel: {
17
- type: Object as PropType<TestimonialSectionViewModel>,
18
- required: true,
19
- },
20
- isPreview: {
21
- type: Boolean,
22
- required: false,
23
- default: false,
24
- },
25
- context: {
26
- type: Object as PropType<BrandPageContext>,
27
- required: true,
28
- },
29
- contentIndex: {
30
- type: Number,
31
- required: false,
32
- default: undefined,
33
- },
34
- },
35
- data() {
36
- return {
37
- debouncedForceCarouselUpdate: undefined as DebounceHandle | undefined,
38
- carouselRef: 'testimonial-carousel',
39
- };
40
- },
41
- created() {
42
- this.debouncedForceCarouselUpdate = debounce(() => {
43
- this.forceCarouselUpdate();
44
- }, DEBOUNCE_WAIT_MS);
45
- },
46
- computed: {
47
- textAlignClass() {
48
- return {
49
- 'c_testimonial-big-image-text-item':
50
- this.viewModel.displayStyle === 'big-image',
51
- 'tw-mb-2': this.viewModel.displayStyle !== 'big-image',
52
- };
53
- },
54
- navigationUniqueIndexer() {
55
- return `testimonial-${this.viewModel.id}`;
56
- },
57
- swiperOptions() {
58
- return {
59
- autoHeight: true,
60
- navigation: {
61
- prevEl: `.carousel__button-prev--${this.navigationUniqueIndexer}`,
62
- nextEl: `.carousel__button-next--${this.navigationUniqueIndexer}`,
63
- },
64
- pagination: {
65
- el: `.pagination--${this.navigationUniqueIndexer}`,
66
- clickable: true,
67
- },
68
- };
69
- },
70
- },
71
- methods: {
72
- renderText(val: string): string {
73
- if (val) {
74
- return getRenderText(val);
75
- }
76
-
77
- return '';
78
- },
79
- forceCarouselUpdate() {
80
- const shouldUpdateCarousel = Boolean(
81
- this.isPreview &&
82
- (this.viewModel.items.length > 1 ||
83
- this.viewModel.displayStyle === 'big-image') &&
84
- this.$refs[this.carouselRef],
85
- );
86
-
87
- if (shouldUpdateCarousel) {
88
- this.$refs[this.carouselRef].update();
89
-
90
- return true;
91
- }
92
-
93
- return false;
94
- },
95
- forceCarouselUpdateSlideWidth() {
96
- if (this.forceCarouselUpdate()) {
97
- try {
98
- const width =
99
- this.$refs[this.carouselRef].swiper.slidesEl.scrollWidth;
100
-
101
- this.$refs[this.carouselRef].swiper.slidesEl.children.forEach(
102
- (slide: HTMLElement) => {
103
- const slideWidth = parseFloat(slide.style.width);
104
-
105
- if (slideWidth !== width) {
106
- slide.style.width = width + 'px';
107
- }
108
- },
109
- );
110
- } catch (error) {
111
- console.warn('Testimonial: Unable to auto update slide width');
112
- }
113
- }
114
- },
115
- },
116
- watch: {
117
- viewModel: {
118
- handler() {
119
- this.debouncedForceCarouselUpdate();
120
- },
121
- deep: true,
122
- },
123
- isMobileDevice(next, old) {
124
- if (next !== old) {
125
- setTimeout(
126
- this.forceCarouselUpdateSlideWidth,
127
- DEVICE_CSS_TRANSITION_DELAY + 1,
128
- );
129
- }
130
- },
131
- },
132
- });