@capillarytech/creatives-library 8.0.92 → 8.0.93
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.
- package/package.json +1 -1
- package/v2Components/CapWhatsappCarouselButton/index.js +3 -3
- package/v2Containers/Whatsapp/index.js +3 -3
- package/v2Containers/Whatsapp/index.scss +2 -2
- package/v2Containers/Whatsapp/styles.scss +5 -0
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +28041 -30501
- package/v2Containers/Whatsapp/utils.js +1 -2
package/package.json
CHANGED
|
@@ -309,10 +309,9 @@ export const CapWhatsappCarouselButton = (props) => {
|
|
|
309
309
|
return (
|
|
310
310
|
<CapRow
|
|
311
311
|
key={`${button.buttonType}_${index}`}
|
|
312
|
-
className=
|
|
312
|
+
className={`cap-whatsapp-saved-cta cap-whatsapp-saved-carousel-button margin-t-12 ${isEditFlow ? 'margin-l-0' : ''}`}
|
|
313
313
|
align="middle"
|
|
314
314
|
type="flex"
|
|
315
|
-
style={{ marginLeft: isEditFlow ? 0 : '' }}
|
|
316
315
|
>
|
|
317
316
|
<CapColumn
|
|
318
317
|
span={1}
|
|
@@ -345,7 +344,7 @@ export const CapWhatsappCarouselButton = (props) => {
|
|
|
345
344
|
</CapLabel>
|
|
346
345
|
</CapColumn>
|
|
347
346
|
<CapTooltip title={button?.url} placement="top">
|
|
348
|
-
<CapColumn span={7}
|
|
347
|
+
<CapColumn span={7} className="margin-r-0">
|
|
349
348
|
<CapLabel className="url">{button?.url}</CapLabel>
|
|
350
349
|
</CapColumn>
|
|
351
350
|
</CapTooltip>
|
|
@@ -415,6 +414,7 @@ export const CapWhatsappCarouselButton = (props) => {
|
|
|
415
414
|
);
|
|
416
415
|
})}
|
|
417
416
|
<CapRow>
|
|
417
|
+
{/* user can add only two button in the first carousel in other carousel user dont allow to add buttons */}
|
|
418
418
|
{buttonData?.length < 2 && !isEditFlow && parseInt(carouselIndex, 10) === 0 && (
|
|
419
419
|
<CapRow>
|
|
420
420
|
<CapTooltip
|
|
@@ -2784,8 +2784,8 @@ const isAuthenticationTemplate = isEqual(templateCategory, WHATSAPP_CATEGORIES.a
|
|
|
2784
2784
|
data.carouselTagValidationErr ||
|
|
2785
2785
|
Object.values(data.varMap).some((inputValue) => inputValue === "") ||
|
|
2786
2786
|
computeTextLength(CAROUSEL_TEXT, data) > TEMPLATE_MESSAGE_MAX_LENGTH ||
|
|
2787
|
-
(carouselMediaType ===
|
|
2788
|
-
(carouselMediaType ===
|
|
2787
|
+
(carouselMediaType === IMAGE.toLowerCase() && !data.imageSrc) ||
|
|
2788
|
+
(carouselMediaType === VIDEO.toLowerCase() && !data.videoSrc) ||
|
|
2789
2789
|
data?.buttons.some((btn) => btn?.url?.includes("{{1}}"))
|
|
2790
2790
|
);
|
|
2791
2791
|
});
|
|
@@ -2840,7 +2840,7 @@ const isAuthenticationTemplate = isEqual(templateCategory, WHATSAPP_CATEGORIES.a
|
|
|
2840
2840
|
</CapButton>
|
|
2841
2841
|
</>
|
|
2842
2842
|
)}
|
|
2843
|
-
{
|
|
2843
|
+
{!isFullMode && isEditFlow && (
|
|
2844
2844
|
<CapTooltip
|
|
2845
2845
|
title={
|
|
2846
2846
|
isEditDoneDisabled()
|