@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.92",
4
+ "version": "8.0.93",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -309,10 +309,9 @@ export const CapWhatsappCarouselButton = (props) => {
309
309
  return (
310
310
  <CapRow
311
311
  key={`${button.buttonType}_${index}`}
312
- className="cap-whatsapp-saved-cta cap-whatsapp-saved-carousel-button margin-t-12"
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} style={{ marginRight: '0px' }}>
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 === "image" && !data.imageSrc) ||
2788
- (carouselMediaType === "video" && !data.videoSrc) ||
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
- {isEditFlow && isEditFlow && (
2843
+ {!isFullMode && isEditFlow && (
2844
2844
  <CapTooltip
2845
2845
  title={
2846
2846
  isEditDoneDisabled()
@@ -111,11 +111,11 @@
111
111
  }
112
112
 
113
113
  #select-whatsapp-category {
114
- padding-right: 5px;
114
+ padding-right: 0.357rem;
115
115
  }
116
116
 
117
117
  #select-whatsapp-media {
118
- padding-left: 5px;
118
+ padding-left: 0.357rem;
119
119
  }
120
120
 
121
121
  #select-whatsapp-category,
@@ -71,6 +71,11 @@
71
71
  margin: 0;
72
72
  }
73
73
 
74
+ .whatsapp-list-view-text-align {
75
+ text-align: center;
76
+ margin-top: $CAP_SPACE_12;
77
+ }
78
+
74
79
  .whatsapp-autofill-btn {
75
80
  text-align: center;
76
81
  margin-top: $CAP_SPACE_12;