@designcrowd/library.brand-page 6.0.6-json-prereq-4 → 6.0.6-json-prereq-5

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 (26) hide show
  1. package/lib/src/{CreatedOnBrandCrowd-de-de-B75jYGAG.js → CreatedOnBrandCrowd-de-de-CZmzW2kQ.js} +1 -1
  2. package/lib/src/{CreatedOnBrandCrowd-en-us-CoDbU42G.js → CreatedOnBrandCrowd-en-us-D2tXzTdS.js} +1 -1
  3. package/lib/src/{CreatedOnBrandCrowd-es-es-CkQBC_E2.js → CreatedOnBrandCrowd-es-es-BDXmktFP.js} +1 -1
  4. package/lib/src/{CreatedOnBrandCrowd-fr-fr-BueYGoqR.js → CreatedOnBrandCrowd-fr-ca-BniZQPhE.js} +1 -1
  5. package/lib/src/{CreatedOnBrandCrowd-fr-ca-BueYGoqR.js → CreatedOnBrandCrowd-fr-fr-BniZQPhE.js} +1 -1
  6. package/lib/src/{CreatedOnBrandCrowd-pt-pt-iVkkV5mY.js → CreatedOnBrandCrowd-pt-br-mngAiD6i.js} +1 -1
  7. package/lib/src/{CreatedOnBrandCrowd-pt-br-iVkkV5mY.js → CreatedOnBrandCrowd-pt-pt-mngAiD6i.js} +1 -1
  8. package/lib/src/{CreatedOnDcom-de-de-DTcMQ9rQ.js → CreatedOnDcom-de-de-Bacn6DYk.js} +1 -1
  9. package/lib/src/{CreatedOnDcom-en-us-C6KX2pNG.js → CreatedOnDcom-en-us-CtQMBrOW.js} +1 -1
  10. package/lib/src/{CreatedOnDcom-es-es-Bx2DoOtp.js → CreatedOnDcom-es-es-ndMBMTWL.js} +1 -1
  11. package/lib/src/{CreatedOnDcom-fr-ca-CMnpCJqe.js → CreatedOnDcom-fr-ca-dQuX1eXb.js} +1 -1
  12. package/lib/src/{CreatedOnDcom-fr-fr-CIDsOdaw.js → CreatedOnDcom-fr-fr-74uI3jen.js} +1 -1
  13. package/lib/src/{CreatedOnDcom-pt-br-CbrdeuQe.js → CreatedOnDcom-pt-br-BAr2KEUU.js} +1 -1
  14. package/lib/src/{CreatedOnDcom-pt-pt-nOvChX6_.js → CreatedOnDcom-pt-pt-CIOnL7w9.js} +1 -1
  15. package/lib/src/{bundled-translations-BUyt4scr.js → bundled-translations-DY44n5a1.js} +1 -1
  16. package/lib/src/bundles/bundled-translations.json +1 -0
  17. package/lib/src/css/library.brand-page-brandCrowd.min.css +36 -36
  18. package/lib/src/css/library.brand-page-brandPage.min.css +36 -36
  19. package/lib/src/css/library.brand-page-designCom.min.css +36 -36
  20. package/lib/src/css/library.brand-page-preview.min.css +36 -36
  21. package/lib/src/index.mjs +1 -1
  22. package/lib/src/{lib-BXP4Pl2X.js → lib-CfYQhXJl.js} +5841 -5831
  23. package/package.json +1 -1
  24. package/src/brand-page-maker/components/rich-text-editor/RichTextEditor.vue +19 -0
  25. package/src/bundles/bundled-translations.json +1 -0
  26. package/src/shared/content-settings/components/content-settings/i18n/content-settings.json +1 -0
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": "6.0.6-json-prereq-4",
4
+ "version": "6.0.6-json-prereq-5",
5
5
  "author": "Design.com Eng",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -342,7 +342,15 @@
342
342
  <TextInput
343
343
  v-model="markedText"
344
344
  :placeholder="contentSettingsTr('displayTextPlaceholder')"
345
+ :error="isDisplayTextTooLong"
345
346
  />
347
+ <p
348
+ v-if="isDisplayTextTooLong"
349
+ class="tw-text-error-500 tw-text-sm"
350
+ data-test-tag="hyperlink-display-text-error"
351
+ >
352
+ {{ contentSettingsTr('displayTextMaxLimitError') }}
353
+ </p>
346
354
 
347
355
  <FieldSubHeader :title="contentSettingsTr('linkToLabel')" />
348
356
  <ButtonGroup
@@ -661,7 +669,18 @@ const urlValidationSettings = computed(() => {
661
669
  };
662
670
  });
663
671
 
672
+ // BP-5859: the hyperlink display text is inserted into the RTE, so it must
673
+ // respect the same max-char limit. Without this the over-limit text was
674
+ // silently truncated on insert with no feedback.
675
+ const isDisplayTextTooLong = computed(
676
+ () => markedText.value.length > props.maxLength,
677
+ );
678
+
664
679
  const isAddLinkButtonDisabled = computed(() => {
680
+ if (isDisplayTextTooLong.value) {
681
+ return true;
682
+ }
683
+
665
684
  if (selectedLinkType.value === HYPERLINK_TYPE.url) {
666
685
  const urlValue = hyperlinkUrlValue.value;
667
686
  // Check if URL is invalid OR doesn't have https protocol
@@ -1609,6 +1609,7 @@
1609
1609
  "linkToLabel": "Link to",
1610
1610
  "addLinkButtonText": "Add Link",
1611
1611
  "enterValidUrlError": "Please enter a valid URL",
1612
+ "displayTextMaxLimitError": "Display text exceeds the maximum character limit",
1612
1613
  "enterTextHerePlaceholder": "Enter text here...",
1613
1614
  "bookNowLabel": "Book Now",
1614
1615
  "shippingLabel": "Enable Shipping Address",
@@ -203,6 +203,7 @@
203
203
  "linkToLabel": "Link to",
204
204
  "addLinkButtonText": "Add Link",
205
205
  "enterValidUrlError": "Please enter a valid URL",
206
+ "displayTextMaxLimitError": "Display text exceeds the maximum character limit",
206
207
  "enterTextHerePlaceholder": "Enter text here...",
207
208
  "bookNowLabel": "Book Now",
208
209
  "shippingLabel": "Enable Shipping Address",