@capillarytech/creatives-library 8.0.87-alpha.18 → 8.0.87-alpha.2

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.
Files changed (41) hide show
  1. package/initialState.js +0 -1
  2. package/package.json +1 -1
  3. package/services/api.js +7 -6
  4. package/v2Components/CapWhatsappCTA/messages.js +4 -0
  5. package/v2Components/CapWhatsappCarouselButton/constant.js +51 -0
  6. package/v2Components/CapWhatsappCarouselButton/index.js +446 -0
  7. package/v2Components/CapWhatsappCarouselButton/index.scss +39 -0
  8. package/v2Components/FormBuilder/index.js +3 -7
  9. package/v2Components/TemplatePreview/_templatePreview.scss +9 -0
  10. package/v2Components/TemplatePreview/assets/images/empty_image_preview.svg +4 -0
  11. package/v2Components/TemplatePreview/assets/images/empty_video_preview.svg +4 -0
  12. package/v2Components/TemplatePreview/index.js +169 -104
  13. package/v2Containers/Cap/actions.js +0 -8
  14. package/v2Containers/Cap/constants.js +0 -4
  15. package/v2Containers/Cap/reducer.js +0 -6
  16. package/v2Containers/Cap/sagas.js +0 -23
  17. package/v2Containers/Cap/selectors.js +0 -6
  18. package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +0 -1
  19. package/v2Containers/CreativesContainer/SlideBoxContent.js +1 -11
  20. package/v2Containers/CreativesContainer/constants.js +0 -3
  21. package/v2Containers/CreativesContainer/index.js +88 -78
  22. package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +0 -25
  23. package/v2Containers/CreativesContainer/tests/index.test.js +0 -2
  24. package/v2Containers/Email/index.js +0 -1
  25. package/v2Containers/EmailWrapper/index.js +0 -2
  26. package/v2Containers/MobilePush/Create/index.js +0 -1
  27. package/v2Containers/MobilePush/Edit/index.js +0 -1
  28. package/v2Containers/MobilepushWrapper/index.js +1 -2
  29. package/v2Containers/Sms/Create/index.js +0 -1
  30. package/v2Containers/Sms/Edit/index.js +0 -1
  31. package/v2Containers/SmsWrapper/index.js +0 -2
  32. package/v2Containers/Templates/_templates.scss +35 -0
  33. package/v2Containers/Templates/index.js +64 -5
  34. package/v2Containers/TemplatesV2/index.js +0 -7
  35. package/v2Containers/Whatsapp/constants.js +83 -1
  36. package/v2Containers/Whatsapp/index.js +709 -182
  37. package/v2Containers/Whatsapp/index.scss +52 -1
  38. package/v2Containers/Whatsapp/messages.js +38 -2
  39. package/v2Containers/Whatsapp/utils.js +34 -0
  40. package/v2Containers/mockdata.js +0 -3
  41. package/utils/transformerUtils.js +0 -524
@@ -43,13 +43,15 @@ import inAppMobileIOSModal from './assets/images/inapp_mobile_ios_modal.svg';
43
43
  import inAppMobileIOSTop from './assets/images/inapp_mobile_ios_top.svg';
44
44
  import inAppMobileIOSBottom from './assets/images/inapp_mobile_ios_bottom.svg';
45
45
  import inAppMobileIOSFull from './assets/images/inapp_mobile_ios_full.svg';
46
+ import whatsappImageEmptyPreview from './assets/images/empty_image_preview.svg';
47
+ import whatsappVideoEmptyPreview from './assets/images/empty_video_preview.svg';
46
48
  import videoPlay from '../../assets/videoPlay.svg';
47
49
  import zaloMessage from '../../v2Containers/Zalo/messages';
48
50
  import { handlePreviewInNewTab } from '../../utils/common';
49
51
  import { TEMPLATE, IMAGE_CAROUSEL, IMAGE, STICKER, TEXT, IMAGE_MAP, VIDEO } from '../../v2Containers/Line/Container/constants';
50
52
  import CapFacebookPreview from '../../v2Containers/CapFacebookPreview';
51
53
  import WhatsappStatusContainer from '../WhatsappStatusContainer';
52
- import { getWhatsappQuickReply } from '../../v2Containers/Whatsapp/utils';
54
+ import { getWhatsappQuickReply, getWhatsappCarouselButtonView } from '../../v2Containers/Whatsapp/utils';
53
55
  import { QUICK_REPLY, WHATSAPP_CATEGORIES } from '../../v2Containers/Whatsapp/constants';
54
56
  import { ANDROID, INAPP_MESSAGE_LAYOUT_TYPES } from '../../v2Containers/InApp/constants';
55
57
 
@@ -213,7 +215,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
213
215
  iosActions = _.map(content.actions, (action) => {
214
216
  if (action.label) {
215
217
  return (<div className="actions" key={`action-${action.label}`}>
216
- <span className="action">{action.label.toUpperCase()}</span>
218
+ <span className="action">{action.label.toUpperCase()}</span>
217
219
  </div>);
218
220
  }
219
221
  return undefined;
@@ -253,6 +255,15 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
253
255
  'width': '88%',
254
256
  'left': 0,
255
257
  };
258
+ const carouselWhatsappSectionStyle = {
259
+ 'padding': `4px 0 ${CAP_SPACE_08}`,
260
+ 'border-radius': '6px',
261
+ 'background-color': CAP_WHITE,
262
+ 'width': '166px',
263
+ 'cursor': 'pointer',
264
+ 'flex-shrink': 0,
265
+ 'left': 0,
266
+ };
256
267
  const getVideoContent = ({
257
268
  video,
258
269
  actionUrl,
@@ -274,53 +285,53 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
274
285
  >
275
286
  {
276
287
  video
277
- ? (
278
- <>
279
- <video style={{ opacity: 0.5, width: '100%' }}>
280
- <source src={video} type="video/mp4" />
281
- </video>
282
- <div
283
- style={{
284
- position: 'absolute',
285
- display: 'flex',
286
- flexDirection: 'column',
287
- }}
288
- >
289
- <CapButton
290
- className="preview-video-btn"
291
- type="flat"
288
+ ? (
289
+ <>
290
+ <video style={{ opacity: 0.5, width: '100%' }}>
291
+ <source src={video} type="video/mp4" />
292
+ </video>
293
+ <div
294
+ style={{
295
+ position: 'absolute',
296
+ display: 'flex',
297
+ flexDirection: 'column',
298
+ }}
292
299
  >
300
+ <CapButton
301
+ className="preview-video-btn"
302
+ type="flat"
303
+ >
293
304
  <CapIcon type="play"/>
294
- <FormattedMessage {...messages.playVideo} />
295
- </CapButton>
296
- {
297
- actionUrl
298
- ? (
299
- <CapButton
300
- className="preview-video-btn"
301
- type="flat"
302
- >
305
+ <FormattedMessage {...messages.playVideo} />
306
+ </CapButton>
307
+ {
308
+ actionUrl
309
+ ? (
310
+ <CapButton
311
+ className="preview-video-btn"
312
+ type="flat"
313
+ >
303
314
  <CapIcon type="reply" style={{ fontSize: 18 }}/>
304
- <FormattedMessage {...messages.showDetails} />
305
- </CapButton>
306
- )
307
- : null
308
- }
309
- </div>
310
- </>
311
- )
312
- : (
313
- <CapImage
314
- src={lineVideoPlaceholder}
315
- alt="brand-name"
316
- rest={{
317
- style: {
318
- width: 126,
319
- marginBottom: 5,
320
- },
321
- }}
322
- />
323
- )
315
+ <FormattedMessage {...messages.showDetails} />
316
+ </CapButton>
317
+ )
318
+ : null
319
+ }
320
+ </div>
321
+ </>
322
+ )
323
+ : (
324
+ <CapImage
325
+ src={lineVideoPlaceholder}
326
+ alt="brand-name"
327
+ rest={{
328
+ style: {
329
+ width: 126,
330
+ marginBottom: 5,
331
+ },
332
+ }}
333
+ />
334
+ )
324
335
  }
325
336
  </div>
326
337
  );
@@ -336,10 +347,10 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
336
347
  renderArray.push(
337
348
  <CapLabel type="label21" className="whatsapp-cta-preview">
338
349
  {type !== WHATSAPP_CATEGORIES.authentication && <CapIcon
339
- type={
340
- (ctaType || type) === 'PHONE_NUMBER' ? 'call' : 'launch'
341
- }
342
- size="xs"
350
+ type={
351
+ (ctaType || type) === 'PHONE_NUMBER' ? 'call' : 'launch'
352
+ }
353
+ size="xs"
343
354
  />}
344
355
  {text}
345
356
  </CapLabel>,
@@ -430,42 +441,42 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
430
441
  {this.props.showCount &&
431
442
  channel &&
432
443
  channel.toLowerCase() !== FACEBOOK && (
433
- <CapColumn span={16}>
434
- {channel && channel.toLowerCase() === "sms" && (
435
- <CapHeading type="h3">
436
- <FormattedMessage
437
- {...messages.charactersTotal}
438
- values={{
439
- smsCount: smsDetails.parts,
440
- charCount: smsDetails.chars_used,
441
- }}
442
- />
443
- {smsDetails.unicode && (
444
- <FormattedMessage {...messages.smsFormatType} />
445
- )}
446
- </CapHeading>
447
- )}
448
- {smsDetails.optoutUrlPresent && (
449
- <CapHeading type="h6">
444
+ <CapColumn span={16}>
445
+ {channel && channel.toLowerCase() === "sms" && (
446
+ <CapHeading type="h3">
447
+ <FormattedMessage
448
+ {...messages.charactersTotal}
449
+ values={{
450
+ smsCount: smsDetails.parts,
451
+ charCount: smsDetails.chars_used,
452
+ }}
453
+ />
454
+ {smsDetails.unicode && (
455
+ <FormattedMessage {...messages.smsFormatType} />
456
+ )}
457
+ </CapHeading>
458
+ )}
459
+ {smsDetails.optoutUrlPresent && (
460
+ <CapHeading type="h6">
461
+ <FormattedMessage
462
+ {...messages.optoutCharactersTotal}
463
+ values={{ optoutUrlLength: smsDetails.optouturlLength }}
464
+ />
465
+ </CapHeading>
466
+ )}
467
+ {channel?.toLowerCase() === WHATSAPP.toLowerCase() ? (
468
+ <>
469
+ <WhatsappStatusContainer template={templateData} />
470
+ <CapHeading type="h3" className="margin-t-12">
450
471
  <FormattedMessage
451
- {...messages.optoutCharactersTotal}
452
- values={{ optoutUrlLength: smsDetails.optouturlLength }}
472
+ {...messages.whatsappMessageLength}
473
+ values={{ length: whatsappUpdatedLen }}
453
474
  />
454
475
  </CapHeading>
455
- )}
456
- {channel?.toLowerCase() === WHATSAPP.toLowerCase() ? (
457
- <>
458
- <WhatsappStatusContainer template={templateData} />
459
- <CapHeading type="h3" className="margin-t-12">
460
- <FormattedMessage
461
- {...messages.whatsappMessageLength}
462
- values={{ length: whatsappUpdatedLen }}
463
- />
464
- </CapHeading>
465
- </>
466
- ) : null}
467
- </CapColumn>
468
- )}
476
+ </>
477
+ ) : null}
478
+ </CapColumn>
479
+ )}
469
480
  <CapColumn span={this.props.showCount ? 8 : 24}>
470
481
  {showTestAndPreview && (
471
482
  <div className="test-and-preview-container">
@@ -628,9 +639,9 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
628
639
  )}
629
640
  {content.actions.filter((action) => action.label)
630
641
  .length ? (
631
- <div className="actions">
632
- {_.map(
633
- content.actions,
642
+ <div className="actions">
643
+ {_.map(
644
+ content.actions,
634
645
  (action) =>
635
646
  !!action.label && (
636
647
  <span
@@ -640,11 +651,11 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
640
651
  {action.label && action.label.toUpperCase()}
641
652
  </span>
642
653
  )
643
- )}
644
- </div>
645
- ) : (
646
- ""
647
- )}
654
+ )}
655
+ </div>
656
+ ) : (
657
+ ""
658
+ )}
648
659
  </div>
649
660
  ) : (
650
661
  <div className="message-pop align-left">
@@ -980,14 +991,14 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
980
991
  <CapLabel className="whatsapp-brand-name">
981
992
  {whatsappUpdatedAccountName || ""}
982
993
  </CapLabel>
983
- <div className="msg-container whatsapp-message-container">
994
+ <div className={`msg-container whatsapp-message-container ${content?.carouselData && 'msg-container-carousel'}`}>
984
995
  <div
985
- className="message-pop align-left"
996
+ className={`message-pop align-left ${content?.carouselData && 'message-pop-carousel'}`}
986
997
  style={whatsappSectionStyle}
987
998
  >
988
999
  <div className="whatsapp-content">
989
- {content?.showUrlPreview &&
990
- renderUrlPreview(content?.metaTagsDetails)}
1000
+ {content?.showUrlPreview
1001
+ && renderUrlPreview(content?.metaTagsDetails)}
991
1002
  {content?.whatsappImageSrc && (
992
1003
  <CapImage
993
1004
  src={content.whatsappImageSrc}
@@ -1026,6 +1037,60 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
1026
1037
  {renderQuickReplyPreview()}
1027
1038
  </div>
1028
1039
  </div>
1040
+ {content?.carouselData && (
1041
+ <div
1042
+ style={{
1043
+ overflowX: "auto",
1044
+ display: "flex",
1045
+ paddingTop: "5px",
1046
+ paddingRight: "5px",
1047
+ whiteSpace: "nowrap",
1048
+ scrollbarWidth: "none", // Hide scrollbar in Firefox
1049
+ msOverflowStyle: "none", // Hide scrollbar in IE/Edge
1050
+ }}
1051
+ className="scroll-container"
1052
+ >
1053
+ {content?.carouselData?.map((data, index) => (
1054
+ <div
1055
+ key={`carousel-${index}`}
1056
+ className="message-pop align-left message-pop-carousel"
1057
+ style={carouselWhatsappSectionStyle}>
1058
+ <div className="whatsapp-content">
1059
+ {content?.carouselMediaType === "image" && (
1060
+ <CapImage
1061
+ src={data?.imageSrc ? data?.imageSrc : whatsappImageEmptyPreview}
1062
+ className="whatsapp-image"
1063
+ alt={formatMessage(messages.previewGenerated)}
1064
+ />
1065
+ )}
1066
+ {content?.carouselMediaType === "video" && (
1067
+ <CapTooltip
1068
+ title={formatMessage(messages.videoPreviewTooltip)}
1069
+ >
1070
+ <div className="video-preview">
1071
+ <CapImage
1072
+ src={data?.videoPreviewImg ? data?.videoPreviewImg : whatsappVideoEmptyPreview}
1073
+ className="whatsapp-image"
1074
+ alt={formatMessage(messages.previewGenerated)}
1075
+ />
1076
+ <div className="icon-position">
1077
+ <CapImage
1078
+ className="video-icon"
1079
+ src={videoPlay}
1080
+ />
1081
+ </div>
1082
+ </div>
1083
+ </CapTooltip>
1084
+ )}
1085
+ <CapLabel type="label5">
1086
+ {content?.isEditFlow ? data?.updatedBodyText?.join("") : data?.bodyText}
1087
+ </CapLabel>
1088
+ {getWhatsappCarouselButtonView(data?.buttons, true)}
1089
+ </div>
1090
+ </div>
1091
+ ))}
1092
+ </div>
1093
+ )}
1029
1094
  </div>
1030
1095
  </div>
1031
1096
  <CapHeading
@@ -1205,21 +1270,21 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
1205
1270
  {ctaData &&
1206
1271
  !isEmpty(ctaData) &&
1207
1272
  ctaData[0]?.text !== "" && (
1208
- <CapButton
1209
- type="primary"
1210
- className={`inapp-button-${templateLayoutType}-${device} ${
1273
+ <CapButton
1274
+ type="primary"
1275
+ className={`inapp-button-${templateLayoutType}-${device} ${
1211
1276
  mediaPreview?.inAppImageSrcAndroid
1212
1277
  ? ""
1213
1278
  : `without-image-button-${templateLayoutType}-android`
1214
- } ${
1279
+ } ${
1215
1280
  mediaPreview?.inAppImageSrcIos
1216
1281
  ? ""
1217
1282
  : `without-image-button-${templateLayoutType}-ios`
1218
- }`}
1219
- >
1220
- {ctaData[0]?.text}
1221
- </CapButton>
1222
- )}
1283
+ }`}
1284
+ >
1285
+ {ctaData[0]?.text}
1286
+ </CapButton>
1287
+ )}
1223
1288
  </div>
1224
1289
  </div>
1225
1290
  </div>
@@ -85,11 +85,3 @@ export const getLiquidTags = (data,callback) => {
85
85
  callback,
86
86
  };
87
87
  };
88
-
89
- export const createCentralCommsMetaId = (data, callback) => {
90
- return {
91
- type: types.CREATE_CENTRAL_COMMS_META_ID_REQUEST,
92
- data,
93
- callback,
94
- };
95
- };
@@ -63,7 +63,3 @@ export const DEFAULT_MODULE = 'creatives';
63
63
  export const GET_LIQUID_TAGS_FAILURE = 'cap/GET_LIQUID_TAGS_FAILURE_V2';
64
64
  export const GET_LIQUID_TAGS_REQUEST = 'cap/GET_LIQUID_TAGS_REQUEST_V2';
65
65
  export const GET_LIQUID_TAGS_SUCCESS = 'cap/GET_LIQUID_TAGS_SUCCESS_V2';
66
-
67
- export const CREATE_CENTRAL_COMMS_META_ID_FAILURE = 'cap/CREATE_CENTRAL_COMMS_META_ID_FAILURE_V2';
68
- export const CREATE_CENTRAL_COMMS_META_ID_REQUEST = 'cap/CREATE_CENTRAL_COMMS_META_ID_REQUEST_V2';
69
- export const CREATE_CENTRAL_COMMS_META_ID_SUCCESS = 'cap/CREATE_CENTRAL_COMMS_META_ID_SUCCESS_V2';
@@ -199,12 +199,6 @@ function capReducer(state = fromJS(initialState.cap), action) {
199
199
  return state
200
200
  .set('demoVideoAndLinkJSONStatus', types.FAILURE)
201
201
  .set('demoVideoAndLinkJSONError', action?.error);
202
- case types.CREATE_CENTRAL_COMMS_META_ID_REQUEST:
203
- return state.set('metaTagsStatus', types.REQUEST);
204
- case types.CREATE_CENTRAL_COMMS_META_ID_SUCCESS:
205
- return state.set('metaTagsStatus', types.SUCCESS);
206
- case types.CREATE_CENTRAL_COMMS_META_ID_FAILURE:
207
- return state.set('metaTagsStatus', types.FAILURE);
208
202
  default:
209
203
  return state;
210
204
  }
@@ -186,22 +186,6 @@ const getTopbarData = (parentModule) => {
186
186
  }
187
187
  };
188
188
 
189
- export function* createCentralCommsMetaId(action) {
190
- try {
191
- const result = yield call(Api.createCentralCommsMetaId, action?.data);
192
- if (result?.status?.code === 200) {
193
- if (action?.callback) {
194
- yield call(action?.callback, result);
195
- }
196
- yield put({ type: types.CREATE_CENTRAL_COMMS_META_ID_SUCCESS, result });
197
- } else {
198
- yield put({ type: types.CREATE_CENTRAL_COMMS_META_ID_FAILURE, error: result?.message });
199
- }
200
- } catch (error) {
201
- yield put({ type: types.CREATE_CENTRAL_COMMS_META_ID_FAILURE, error });
202
- }
203
- }
204
-
205
189
  function* getTopbarMenuData(params) {
206
190
  const {parentModule} = params;
207
191
  try {
@@ -241,10 +225,6 @@ export function* watchLiquidEntity() {
241
225
  yield takeLatest(types.GET_LIQUID_TAGS_REQUEST, getLiquidTags);
242
226
  }
243
227
 
244
- export function* watchMetaId() {
245
- yield takeLatest(types.CREATE_CENTRAL_COMMS_META_ID_REQUEST, createCentralCommsMetaId);
246
- }
247
-
248
228
  function* watchForOrgChange() {
249
229
  yield takeLatest(types.SWITCH_ORG_REQUEST, switchOrg);
250
230
  }
@@ -277,7 +257,6 @@ export default [
277
257
  watchGetTopbarMenuData,
278
258
  watchForGetVideosConfig,
279
259
  watchLiquidEntity,
280
- watchMetaId,
281
260
  ];
282
261
 
283
262
 
@@ -289,7 +268,6 @@ export function* capSagaForFetchSchemaForEntity() {
289
268
  export function* capSagaLiquidEntity() {
290
269
  yield all([
291
270
  watchLiquidEntity(),
292
- watchMetaId(),
293
271
  ]);
294
272
  };
295
273
 
@@ -301,6 +279,5 @@ export function* v2CapSagas() {
301
279
  watchForFetchUserInfo(),
302
280
  watchGetTopbarMenuData(),
303
281
  watchForGetVideosConfig(),
304
- watchMetaId(),
305
282
  ]);
306
283
  }
@@ -72,11 +72,6 @@ const selectLiquidStateDetails = () => createSelector(
72
72
  (globalState) => globalState.get('fetchingLiquidTags')
73
73
  );
74
74
 
75
- const selectMetaTagsStatus = () => createSelector(
76
- selectCapDomain,
77
- (globalState) => globalState.get('metaTagsStatus')
78
- );
79
-
80
75
  const makeSelectFetchingSchema = () => createSelector(
81
76
  selectCapDomain,
82
77
  (globalState) => globalState.get('fetchingSchema')
@@ -118,5 +113,4 @@ export {
118
113
  makeSelectFetchingSchemaError,
119
114
  makeSelectDemoVideoAndLink,
120
115
  selectLiquidStateDetails,
121
- selectMetaTagsStatus,
122
116
  };
@@ -40,7 +40,6 @@ exports[`<Cap /> should render correct component 1`] = `
40
40
  "changeOrg": [Function],
41
41
  "clearMetaEntities": [Function],
42
42
  "clearTopbarMenuData": [Function],
43
- "createCentralCommsMetaId": [Function],
44
43
  "fetchSchemaForEntity": [Function],
45
44
  "getLiquidTags": [Function],
46
45
  "getSupportVideosConfig": [Function],
@@ -158,7 +158,6 @@ export function SlideBoxContent(props) {
158
158
  hostName = '',
159
159
  eventContextTags,
160
160
  isLoyaltyModule,
161
- loyaltyMetaData = {},
162
161
  } = props;
163
162
  const type = (messageDetails.type || '').toLowerCase(); // type is context in get tags values : outbound | dvs | referral | loyalty | coupons
164
163
  const query = { type: !isFullMode && 'embedded', module: isFullMode ? 'default' : 'library', isEditFromCampaigns: (templateData || {}).isEditFromCampaigns};
@@ -435,8 +434,6 @@ export function SlideBoxContent(props) {
435
434
  enableNewChannels={enableNewChannels}
436
435
  hideTestAndPreviewBtn={hideTestAndPreviewBtn}
437
436
  eventContextTags={eventContextTags}
438
- loyaltyMetaData={loyaltyMetaData}
439
- isLoyaltyModule={isLoyaltyModule}
440
437
  />
441
438
  )}
442
439
  {isPreview && (
@@ -517,7 +514,6 @@ export function SlideBoxContent(props) {
517
514
  onCreateComplete={onCreateComplete}
518
515
  smsRegister={smsRegister}
519
516
  eventContextTags={eventContextTags}
520
- messageDetails={messageDetails}
521
517
  />
522
518
  )}
523
519
  {isEditFTP && (
@@ -586,7 +582,6 @@ export function SlideBoxContent(props) {
586
582
  smsRegister={smsRegister}
587
583
  onShowTemplates={onShowTemplates}
588
584
  eventContextTags={eventContextTags}
589
- messageDetails={messageDetails}
590
585
  />
591
586
  )}
592
587
 
@@ -620,7 +615,6 @@ export function SlideBoxContent(props) {
620
615
  showLiquidErrorInFooter={showLiquidErrorInFooter}
621
616
  eventContextTags={eventContextTags}
622
617
  isLoyaltyModule={isLoyaltyModule}
623
- messageDetails={messageDetails}
624
618
  />
625
619
  )}
626
620
  {(isEditEmailWithId || isEmailEditWithContent) && (
@@ -651,7 +645,6 @@ export function SlideBoxContent(props) {
651
645
  showLiquidErrorInFooter={showLiquidErrorInFooter}
652
646
  eventContextTags={eventContextTags}
653
647
  isLoyaltyModule={isLoyaltyModule}
654
- messageDetails={messageDetails}
655
648
  />
656
649
  )}
657
650
  {isEditMPush &&
@@ -678,7 +671,6 @@ export function SlideBoxContent(props) {
678
671
  hideTestAndPreviewBtn={hideTestAndPreviewBtn}
679
672
  creativesMode={creativesMode}
680
673
  eventContextTags={eventContextTags}
681
- messageDetails={messageDetails}
682
674
  />
683
675
  }
684
676
  {isCreateMPush &&
@@ -708,7 +700,6 @@ export function SlideBoxContent(props) {
708
700
  hideTestAndPreviewBtn={hideTestAndPreviewBtn}
709
701
  onTestContentClicked={onTestContentClicked}
710
702
  eventContextTags={eventContextTags}
711
- messageDetails={messageDetails}
712
703
  />
713
704
  }
714
705
  {
@@ -943,7 +934,6 @@ SlideBoxContent.propTypes = {
943
934
  weChatTemplateType: PropTypes.string,
944
935
  onWechatTemplateChange: PropTypes.func,
945
936
  selectedWeChatAccount: PropTypes.object,
946
- loyaltyMetaData: PropTypes.object,
947
937
  onWeChatMaptemplateStepChange: PropTypes.func,
948
938
  weChatMaptemplateStep: PropTypes.string,
949
939
  onFacebookSubmit: PropTypes.func,
@@ -960,6 +950,6 @@ SlideBoxContent.propTypes = {
960
950
  moduleType: PropTypes.string,
961
951
  showLiquidErrorInFooter: PropTypes.bool,
962
952
  creativesMode: PropTypes.string,
963
- hostName: PropTypes.string
953
+ hostName: PropTypes.string,
964
954
  };
965
955
  export default SlideBoxContent;
@@ -17,7 +17,6 @@ export const FTP = "FTP";
17
17
  export const NO_COMMUNICATION = "NO_COMMUNICATION";
18
18
  export const VIBER = "VIBER";
19
19
  export const WHATSAPP = "WHATSAPP";
20
- export const PUSH = "PUSH";
21
20
  export const RCS = "RCS";
22
21
  export const ZALO = "ZALO";
23
22
  export const INAPP = "INAPP";
@@ -25,8 +24,6 @@ export const PREVIEW = "preview";
25
24
  export const EDIT_TEMPLATE = "editTemplate";
26
25
  export const JOURNEY = "journey";
27
26
 
28
- export const LOYALTY_SUPPORTED_ACTION = "SEND_COMMUNICATION_ACTION";
29
-
30
27
  export const SHOW_CONTANER_LOADER = "app/CreativesContainer/SHOW_CONTANER_LOADER";
31
28
  export const HIDE_CONTAINER_LOADER = "app/CreativesContainer/HIDE_CONTAINER_LOADER";
32
29