@capillarytech/creatives-library 7.12.19 → 7.12.20

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": "7.12.19",
4
+ "version": "7.12.20",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -18,7 +18,6 @@
18
18
  "@capillarytech/cap-ui-utils": "1.4.2",
19
19
  "@mailupinc/bee-plugin": "^1.2.0",
20
20
  "babel-cli": "^6.26.0",
21
- "babel-node": "0.0.1-security",
22
21
  "chalk": "1.1.3",
23
22
  "flow": "^0.2.3",
24
23
  "git": "^0.1.5",
@@ -236,6 +236,7 @@ export const Rcs = (props) => {
236
236
  mediaType = RCS_MEDIA_TYPES.NONE,
237
237
  title = '',
238
238
  description = '',
239
+ suggestions: rcsSuggestions = [],
239
240
  } = cardContent[0] || {};
240
241
  const { message, templateConfigs = {} } = smsFallBackContent;
241
242
  setTemplateName(name);
@@ -245,6 +246,11 @@ export const Rcs = (props) => {
245
246
  setTemplateDesc(description);
246
247
  setFallbackMessage(message);
247
248
  setEditFlow(true);
249
+ if (rcsSuggestions.length > 0) {
250
+ setSuggestions(rcsSuggestions);
251
+ setButtonType(["CTA"]);
252
+ }
253
+
248
254
  // for DLT Fallback message
249
255
  if (isDltEnabled) {
250
256
  const {
@@ -449,6 +455,7 @@ export const Rcs = (props) => {
449
455
  };
450
456
  const onChangeButtonTypes = (val) => {
451
457
  setButtonType(val[0]);
458
+ setSuggestions([]);
452
459
  };
453
460
  const renderTextComponent = (
454
461
  <>