@designcrowd/library.brand-page 5.10.6-ml-2 → 5.10.6-ml-test-4

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 (60) hide show
  1. package/lib/src/brand-page/components/banner-section/BannerSection.mixin.js +2 -1
  2. package/lib/src/brand-page/utils/personalisation.util.js +1 -1
  3. package/lib/src/brand-page/utils/text.util.d.ts +0 -2
  4. package/lib/src/brand-page/utils/text.util.js +0 -11
  5. package/lib/src/css/library.brand-page-brandCrowd.min.css +5 -6
  6. package/lib/src/css/library.brand-page-brandPage.min.css +5 -2
  7. package/lib/src/css/library.brand-page-designCom.min.css +5 -6
  8. package/lib/src/css/library.brand-page-preview.min.css +5 -2
  9. package/lib/src/index.d.ts +0 -1
  10. package/lib/src/index.mjs +9179 -9299
  11. package/lib/src/lib.js +0 -1
  12. package/lib/src/shared/content-settings/components/GenericTextInput.mixin.js +1 -1
  13. package/lib/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.js +1 -1
  14. package/lib/src/shared/content-settings/utils.d.ts +2 -0
  15. package/lib/src/shared/content-settings/utils.js +11 -0
  16. package/lib/src/shared/shape-library/ShapeLibrary.mixin.js +1 -1
  17. package/package.json +15 -10
  18. package/src/brand-page/components/banner-section/BannerSection.mixin.ts +2 -1
  19. package/src/brand-page/utils/personalisation.util.ts +1 -1
  20. package/src/brand-page/utils/text.util.ts +0 -16
  21. package/src/brand-page-maker/components/sensitive-content/i18n/sensitive-settings-translation_de-DE.json +4 -4
  22. package/src/brand-page-maker/components/sensitive-content/i18n/sensitive-settings-translation_es-ES.json +4 -4
  23. package/src/brand-page-maker/components/sensitive-content/i18n/sensitive-settings-translation_fr-FR.json +4 -4
  24. package/src/brand-page-maker/components/sensitive-content/i18n/sensitive-settings-translation_pt-PT.json +4 -4
  25. package/src/brand-page-maker/components/social-share/i18n/social-share-translation_de-DE.json +8 -8
  26. package/src/brand-page-maker/components/social-share/i18n/social-share-translation_es-ES.json +8 -8
  27. package/src/brand-page-maker/components/social-share/i18n/social-share-translation_fr-FR.json +8 -8
  28. package/src/brand-page-maker/components/social-share/i18n/social-share-translation_pt-PT.json +8 -8
  29. package/src/lib.ts +0 -1
  30. package/src/shared/color-picker/components/i18n/color-picker-translation_de-DE.json +5 -5
  31. package/src/shared/color-picker/components/i18n/color-picker-translation_es-ES.json +5 -5
  32. package/src/shared/color-picker/components/i18n/color-picker-translation_fr-FR.json +5 -5
  33. package/src/shared/color-picker/components/i18n/color-picker-translation_pt-PT.json +5 -5
  34. package/src/shared/common/i18n/common-translation_de-DE.json +46 -46
  35. package/src/shared/common/i18n/common-translation_es-ES.json +46 -46
  36. package/src/shared/common/i18n/common-translation_fr-FR.json +46 -46
  37. package/src/shared/common/i18n/common-translation_pt-PT.json +46 -46
  38. package/src/shared/content-settings/components/GenericTextInput.mixin.ts +1 -4
  39. package/src/shared/content-settings/components/content-settings/i18n/content-settings-translation_de-DE.json +166 -166
  40. package/src/shared/content-settings/components/content-settings/i18n/content-settings-translation_es-ES.json +166 -166
  41. package/src/shared/content-settings/components/content-settings/i18n/content-settings-translation_fr-FR.json +166 -166
  42. package/src/shared/content-settings/components/content-settings/i18n/content-settings-translation_pt-PT.json +166 -166
  43. package/src/shared/content-settings/components/logo-selection-field/i18n/logo-selection-translation_de-DE.json +5 -5
  44. package/src/shared/content-settings/components/logo-selection-field/i18n/logo-selection-translation_es-ES.json +5 -5
  45. package/src/shared/content-settings/components/logo-selection-field/i18n/logo-selection-translation_fr-FR.json +5 -5
  46. package/src/shared/content-settings/components/logo-selection-field/i18n/logo-selection-translation_pt-PT.json +5 -5
  47. package/src/shared/content-settings/components/text-items-field/TextItemsField.mixin.ts +1 -1
  48. package/src/shared/content-settings/utils.ts +16 -0
  49. package/src/shared/my-uploads/i18n/my-uploads-translation_de-DE.json +7 -7
  50. package/src/shared/my-uploads/i18n/my-uploads-translation_es-ES.json +7 -7
  51. package/src/shared/my-uploads/i18n/my-uploads-translation_fr-FR.json +7 -7
  52. package/src/shared/my-uploads/i18n/my-uploads-translation_pt-PT.json +7 -7
  53. package/src/shared/shape-library/ShapeLibrary.mixin.ts +1 -1
  54. package/src/shared/style-settings/components/i18n/style-settings-translation_de-DE.json +19 -19
  55. package/src/shared/style-settings/components/i18n/style-settings-translation_es-ES.json +19 -19
  56. package/src/shared/style-settings/components/i18n/style-settings-translation_fr-FR.json +19 -19
  57. package/src/shared/style-settings/components/i18n/style-settings-translation_pt-PT.json +19 -19
  58. package/lib/src/brand-page/utils/content-callback-util.d.ts +0 -20
  59. package/lib/src/brand-page/utils/content-callback-util.js +0 -68
  60. package/src/brand-page/utils/content-callback-util.ts +0 -116
@@ -2,8 +2,9 @@ import { defineComponent } from 'vue';
2
2
  import ComponentCommonMixin from '../mixins/component-common.mixin';
3
3
  import { isURL } from '../../../utils/validator.util';
4
4
  import { ALIGN_CENTERED, ALIGN_LEFT_ALIGNED, ALIGN_RIGHT_ALIGNED, BIG_IMAGE, ALIGN_LEFT_BIG_IMAGE, ALIGN_RIGHT_FULL_IMAGE, ALIGN_LEFT_FULL_IMAGE, ALIGN_CARD_CENTER_IMAGE, ALIGN_CARD_LEFT_IMAGE, } from '../../constants';
5
- import { getRenderText, escapeContentText } from '../../utils';
5
+ import { getRenderText } from '../../utils';
6
6
  import { hasRTEContent } from '../../../brand-page-maker/utils';
7
+ import { escapeContentText } from '../../../shared/content-settings/utils';
7
8
  export default defineComponent({
8
9
  mixins: [ComponentCommonMixin],
9
10
  props: {
@@ -1,4 +1,4 @@
1
- import { escapeContentText } from '../../brand-page/utils';
1
+ import { escapeContentText } from '../../shared/content-settings/utils';
2
2
  import { DEFAULT_PERSONALISATION_MAPPING, PERSONALISATION_MAPPINGS, TEXT_MEDIA_CONTENT_TYPES, } from '../../brand-page-maker/constants/personalisation.constant';
3
3
  import { BRAND_PAGE_TYPES, ShapeAspectRatioCategory } from '../models';
4
4
  import { getColorReplacementsFromSvgString, getColorReplacementsFromSvgStringServer, } from './svg-color.util';
@@ -1,3 +1 @@
1
1
  export declare const getRenderText: (text: string) => string;
2
- export declare const escapeContentText: (text: string | undefined) => string | undefined;
3
- export declare const unescapeContentText: (text: string) => string;
@@ -2,14 +2,3 @@ import { ESCAPED_NEWLINE_CHARACTER } from '../../constants/ui';
2
2
  export const getRenderText = (text) => {
3
3
  return text.replace(new RegExp(`(${ESCAPED_NEWLINE_CHARACTER}|\\n)`, 'g'), '<br/>');
4
4
  };
5
- export const escapeContentText = (text) => {
6
- if (!text) {
7
- return text;
8
- }
9
- return text
10
- .replace(/(<([^>]+)>)/gi, '')
11
- .replace(/(\r\n|\r|\n)/g, ESCAPED_NEWLINE_CHARACTER);
12
- };
13
- export const unescapeContentText = (text) => {
14
- return text.replace(new RegExp(`${ESCAPED_NEWLINE_CHARACTER}`, 'g'), '\n');
15
- };
@@ -2020,6 +2020,9 @@ a.maker-anchor {
2020
2020
  .tw-rounded-sm {
2021
2021
  border-radius: 0.125rem
2022
2022
  }
2023
+ .tw-rounded-xl {
2024
+ border-radius: 0.75rem
2025
+ }
2023
2026
  .\!tw-rounded-l-none {
2024
2027
  border-top-left-radius: 0px !important;
2025
2028
  border-bottom-left-radius: 0px !important
@@ -3153,10 +3156,6 @@ a.maker-anchor {
3153
3156
  --tw-bg-opacity: 1;
3154
3157
  background-color: rgb(0 121 172 / var(--tw-bg-opacity))
3155
3158
  }
3156
- .hover\:tw-bg-primary-100:hover {
3157
- --tw-bg-opacity: 1;
3158
- background-color: rgb(252 209 217 / var(--tw-bg-opacity))
3159
- }
3160
3159
  .hover\:tw-bg-primary-400:hover {
3161
3160
  --tw-bg-opacity: 1;
3162
3161
  background-color: rgb(245 73 101 / var(--tw-bg-opacity))
@@ -4260,13 +4259,13 @@ a.maker-anchor {
4260
4259
  }
4261
4260
 
4262
4261
  @media (max-width: 640px) {
4263
- [data-v-59d8988e] .publish-bp--modal {
4262
+ [data-v-49ca1551] .publish-bp--modal {
4264
4263
  max-height: 90vh;
4265
4264
  width: 90vw;
4266
4265
  }
4267
4266
  }
4268
4267
  @media (min-width: 640px) {
4269
- [data-v-59d8988e] .publish-bp--modal {
4268
+ [data-v-49ca1551] .publish-bp--modal {
4270
4269
  max-height: 80vh;
4271
4270
  width: 90vw;
4272
4271
  }
@@ -2444,6 +2444,9 @@ a.maker-anchor {
2444
2444
  .tw-rounded-sm {
2445
2445
  border-radius: 0.125rem;
2446
2446
  }
2447
+ .tw-rounded-xl {
2448
+ border-radius: 0.75rem;
2449
+ }
2447
2450
  .\!tw-rounded-l-none {
2448
2451
  border-top-left-radius: 0px !important;
2449
2452
  border-bottom-left-radius: 0px !important;
@@ -4587,13 +4590,13 @@ a.maker-anchor {
4587
4590
  }
4588
4591
 
4589
4592
  @media (max-width: 640px) {
4590
- [data-v-59d8988e] .publish-bp--modal {
4593
+ [data-v-49ca1551] .publish-bp--modal {
4591
4594
  max-height: 90vh;
4592
4595
  width: 90vw;
4593
4596
  }
4594
4597
  }
4595
4598
  @media (min-width: 640px) {
4596
- [data-v-59d8988e] .publish-bp--modal {
4599
+ [data-v-49ca1551] .publish-bp--modal {
4597
4600
  max-height: 80vh;
4598
4601
  width: 90vw;
4599
4602
  }
@@ -2038,6 +2038,9 @@ a:not(.tw-lowercase) {
2038
2038
  .tw-rounded-sm {
2039
2039
  border-radius: 0.125rem
2040
2040
  }
2041
+ .tw-rounded-xl {
2042
+ border-radius: 0.1rem
2043
+ }
2041
2044
  .\!tw-rounded-l-none {
2042
2045
  border-top-left-radius: 0px !important;
2043
2046
  border-bottom-left-radius: 0px !important
@@ -3171,10 +3174,6 @@ a:not(.tw-lowercase) {
3171
3174
  --tw-bg-opacity: 1;
3172
3175
  background-color: rgb(50 71 197 / var(--tw-bg-opacity))
3173
3176
  }
3174
- .hover\:tw-bg-primary-100:hover {
3175
- --tw-bg-opacity: 1;
3176
- background-color: rgb(236 238 254 / var(--tw-bg-opacity))
3177
- }
3178
3177
  .hover\:tw-bg-primary-400:hover {
3179
3178
  --tw-bg-opacity: 1;
3180
3179
  background-color: rgb(121 139 249 / var(--tw-bg-opacity))
@@ -4278,13 +4277,13 @@ a:not(.tw-lowercase) {
4278
4277
  }
4279
4278
 
4280
4279
  @media (max-width: 640px) {
4281
- [data-v-59d8988e] .publish-bp--modal {
4280
+ [data-v-49ca1551] .publish-bp--modal {
4282
4281
  max-height: 90vh;
4283
4282
  width: 90vw;
4284
4283
  }
4285
4284
  }
4286
4285
  @media (min-width: 640px) {
4287
- [data-v-59d8988e] .publish-bp--modal {
4286
+ [data-v-49ca1551] .publish-bp--modal {
4288
4287
  max-height: 80vh;
4289
4288
  width: 90vw;
4290
4289
  }
@@ -2020,6 +2020,9 @@ a.maker-anchor {
2020
2020
  .bp .tw-rounded-sm {
2021
2021
  border-radius: 0.125rem
2022
2022
  }
2023
+ .bp .tw-rounded-xl {
2024
+ border-radius: 0.75rem
2025
+ }
2023
2026
  .bp .\!tw-rounded-l-none {
2024
2027
  border-top-left-radius: 0px !important;
2025
2028
  border-bottom-left-radius: 0px !important
@@ -4020,13 +4023,13 @@ a.maker-anchor {
4020
4023
  }
4021
4024
 
4022
4025
  @media (max-width: 640px) {
4023
- [data-v-59d8988e] .publish-bp--modal {
4026
+ [data-v-49ca1551] .publish-bp--modal {
4024
4027
  max-height: 90vh;
4025
4028
  width: 90vw;
4026
4029
  }
4027
4030
  }
4028
4031
  @media (min-width: 640px) {
4029
- [data-v-59d8988e] .publish-bp--modal {
4032
+ [data-v-49ca1551] .publish-bp--modal {
4030
4033
  max-height: 80vh;
4031
4034
  width: 90vw;
4032
4035
  }
@@ -4,7 +4,6 @@ export * from './brand-page/view-models';
4
4
  export type { SetSelectedTabNamePayload } from './shared/side-bar/models';
5
5
  export type { BrandPageMakerViewModel } from './brand-page-maker/components/brand-page-maker/BrandPageMaker.mixin';
6
6
  export * from './shared/models';
7
- export * from './brand-page/utils/content-callback-util';
8
7
  export { DEFAULT_FONT_FAMILY_KEY, DEFAULT_LOGO_TEXT_COLOR_RGB, DEFAULT_LOGO_BACKGROUND_COLOR_RGB, type FontFamilyKey, type FontFamilyConfig, FONT_FAMILY_CONFIGS, type GoogleFontFamilyConfig, isGoogleType, isUrlType, HEADER_DISPLAY, NAVIGATION_DISPLAY, } from './brand-page/constants';
9
8
  export * from './brand-page-maker/constants';
10
9
  export * as BackgroundShapeStarterKit from './brand-page-maker/components/brand-page-maker/starter-kits/background-shapes';