@capillarytech/creatives-library 8.0.96 → 8.0.97

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.96",
4
+ "version": "8.0.97",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -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
  });