@capillarytech/creatives-library 7.17.82-alpha.0 → 7.17.82

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.
@@ -1174,7 +1174,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
1174
1174
  break;
1175
1175
  }
1176
1176
  case WHATSAPP: {
1177
- const { whatsappImageSrc = '', templateMsg, docPreview, whatsappVideoPreviewImg = '', headerMsg, footerMsg} = getWhatsappContent(template);
1177
+ const { whatsappImageSrc = '', templateMsg, docPreview, whatsappVideoPreviewImg = '', templateHeaderPreview, templateFooterPreview} = getWhatsappContent(template);
1178
1178
  templateData.title = (
1179
1179
  <CapRow>
1180
1180
  <CapLabel className="whatsapp-rcs-template-name">{template?.name}</CapLabel>
@@ -1205,9 +1205,9 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
1205
1205
  : 'whatsapp-message-without-media'
1206
1206
  }`}
1207
1207
  >
1208
- {headerMsg}
1208
+ {templateHeaderPreview}
1209
1209
  {templateMsg}
1210
- {footerMsg}
1210
+ {templateFooterPreview}
1211
1211
  </span>
1212
1212
  {getWhatsappCta(template)}
1213
1213
  {getWhatsappQuickReply(template)}
@@ -13,7 +13,7 @@ export const UNSUBSCRIBE_TEXT_LENGTH = 36;
13
13
  export const TEMPLATE_MESSAGE_MAX_LENGTH = 1024;
14
14
  export const WHATSAPP = 'WHATSAPP';
15
15
  export const TEMPLATE_HEADER_MAX_LENGTH = 60;
16
- export const TEMPLATE_BUTTON_TEXT_MAX_LENGTH = 20;
16
+ export const QUICK_REPLY_BUTTON_TEXT_MAX_LENGTH = 20;
17
17
 
18
18
  const prefix = 'app/v2Containers/Whatsapp';
19
19
  export const TEMPLATE_CREATE_REQUEST = `${prefix}/TEMPLATE_CREATE_REQUEST`;
@@ -183,6 +183,7 @@ export const QUICK_REPLY = 'QUICK_REPLY';
183
183
  export const HEADER_TEXT = 'header';
184
184
  export const FOOTER_TEXT = 'footer';
185
185
  export const MESSAGE_TEXT = 'message';
186
+ export const BUTTON_TEXT = 'buttonText'
186
187
  export const WHATSAPP_BUTTON_TYPES = {
187
188
  NONE,
188
189
  CTA,