@capillarytech/creatives-library 8.0.338 → 8.0.339
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 +1 -1
- package/utils/tests/tagValidations.test.js +0 -20
- package/v2Components/CapTagList/index.js +23 -28
- package/v2Components/CapTagList/style.scss +0 -29
- package/v2Components/CapTagListWithInput/index.js +0 -4
- package/v2Components/CapWhatsappCTA/index.js +0 -2
- package/v2Components/FormBuilder/index.js +0 -7
- package/v2Components/HtmlEditor/HTMLEditor.js +1 -6
- package/v2Components/HtmlEditor/__tests__/HTMLEditor.apiErrors.test.js +0 -1
- package/v2Components/HtmlEditor/__tests__/HTMLEditor.test.js +2 -927
- package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +0 -3
- package/v2Containers/BeeEditor/index.js +0 -3
- package/v2Containers/CreativesContainer/SlideBoxContent.js +1 -28
- package/v2Containers/CreativesContainer/index.js +7 -9
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +0 -47
- package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +0 -5
- package/v2Containers/Email/index.js +0 -1
- package/v2Containers/EmailWrapper/components/EmailHTMLEditor.js +1 -6
- package/v2Containers/EmailWrapper/components/EmailWrapperView.js +0 -3
- package/v2Containers/EmailWrapper/components/__tests__/EmailHTMLEditor.test.js +2 -20
- package/v2Containers/EmailWrapper/components/__tests__/EmailWrapperView.test.js +1 -16
- package/v2Containers/EmailWrapper/hooks/useEmailWrapper.js +0 -3
- package/v2Containers/EmailWrapper/index.js +0 -4
- package/v2Containers/EmailWrapper/tests/useEmailWrapper.edgeCases.test.js +0 -1
- package/v2Containers/EmailWrapper/tests/useEmailWrapper.test.js +0 -9
- package/v2Containers/InAppWrapper/hooks/__tests__/useInAppWrapper.test.js +0 -1
- package/v2Containers/MobilePush/Create/index.js +0 -2
- package/v2Containers/MobilePush/Edit/index.js +0 -2
- package/v2Containers/MobilepushWrapper/index.js +1 -3
- package/v2Containers/Rcs/index.js +7 -1
- package/v2Containers/Sms/Create/index.js +0 -2
- package/v2Containers/Sms/Edit/index.js +0 -2
- package/v2Containers/SmsTrai/Edit/index.js +0 -2
- package/v2Containers/SmsWrapper/index.js +0 -2
- package/v2Containers/TagList/index.js +5 -62
- package/v2Containers/TagList/messages.js +0 -4
- package/v2Containers/TagList/tests/TagList.test.js +20 -124
- package/v2Containers/TagList/tests/mockdata.js +0 -17
- package/v2Containers/Viber/index.js +0 -3
- package/v2Containers/WebPush/Create/hooks/useTagManagement.js +2 -0
- package/v2Containers/WebPush/Create/index.js +1 -9
- package/v2Containers/Whatsapp/index.js +0 -5
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +0 -20
- package/v2Containers/Zalo/index.js +0 -2
- package/v2Components/CapTagListWithInput/__tests__/CapTagListWithInput.test.js +0 -63
|
@@ -59,7 +59,6 @@ const CodeEditorPaneComponent = ({
|
|
|
59
59
|
injectedTags = {},
|
|
60
60
|
location,
|
|
61
61
|
eventContextTags = [],
|
|
62
|
-
waitEventContextTags = {},
|
|
63
62
|
selectedOfferDetails = [],
|
|
64
63
|
channel,
|
|
65
64
|
userLocale = 'en',
|
|
@@ -290,7 +289,6 @@ const CodeEditorPaneComponent = ({
|
|
|
290
289
|
location={location}
|
|
291
290
|
selectedOfferDetails={selectedOfferDetails}
|
|
292
291
|
eventContextTags={eventContextTags}
|
|
293
|
-
waitEventContextTags={waitEventContextTags}
|
|
294
292
|
popoverPlacement="rightTop"
|
|
295
293
|
/>
|
|
296
294
|
</CapRow>
|
|
@@ -329,7 +327,6 @@ CodeEditorPane.propTypes = {
|
|
|
329
327
|
injectedTags: PropTypes.object,
|
|
330
328
|
location: PropTypes.object,
|
|
331
329
|
eventContextTags: PropTypes.array,
|
|
332
|
-
waitEventContextTags: PropTypes.object,
|
|
333
330
|
selectedOfferDetails: PropTypes.array,
|
|
334
331
|
channel: PropTypes.string,
|
|
335
332
|
userLocale: PropTypes.string,
|
|
@@ -53,7 +53,6 @@ function BeeEditor(props) {
|
|
|
53
53
|
BEESelect,
|
|
54
54
|
currentOrgDetails,
|
|
55
55
|
eventContextTags,
|
|
56
|
-
waitEventContextTags,
|
|
57
56
|
isGetBeeData,
|
|
58
57
|
getBEEData,
|
|
59
58
|
} = props;
|
|
@@ -382,7 +381,6 @@ function BeeEditor(props) {
|
|
|
382
381
|
}}
|
|
383
382
|
onContextChange={onContextChange}
|
|
384
383
|
eventContextTags={eventContextTags}
|
|
385
|
-
waitEventContextTags={waitEventContextTags}
|
|
386
384
|
/>
|
|
387
385
|
<CapModal
|
|
388
386
|
className="custom-row-modal"
|
|
@@ -429,7 +427,6 @@ BeeEditor.propTypes = {
|
|
|
429
427
|
onContextChange: PropTypes.func,
|
|
430
428
|
userLocale: PropTypes.string,
|
|
431
429
|
eventContextTags: PropTypes.array,
|
|
432
|
-
waitEventContextTags: PropTypes.object,
|
|
433
430
|
isGetBeeData: PropTypes.bool,
|
|
434
431
|
getBEEData: PropTypes.func,
|
|
435
432
|
};
|
|
@@ -168,7 +168,6 @@ export function SlideBoxContent(props) {
|
|
|
168
168
|
creativesMode,
|
|
169
169
|
hostName = '',
|
|
170
170
|
eventContextTags,
|
|
171
|
-
waitEventContextTags = {},
|
|
172
171
|
isLoyaltyModule,
|
|
173
172
|
loyaltyMetaData = {},
|
|
174
173
|
showTestAndPreviewSlidebox,
|
|
@@ -425,7 +424,6 @@ export function SlideBoxContent(props) {
|
|
|
425
424
|
selectedOfferDetails,
|
|
426
425
|
getFormData,
|
|
427
426
|
eventContextTags,
|
|
428
|
-
waitEventContextTags,
|
|
429
427
|
};
|
|
430
428
|
|
|
431
429
|
return (
|
|
@@ -460,7 +458,6 @@ export function SlideBoxContent(props) {
|
|
|
460
458
|
enableNewChannels={enableNewChannels}
|
|
461
459
|
hideTestAndPreviewBtn={hideTestAndPreviewBtn}
|
|
462
460
|
eventContextTags={eventContextTags}
|
|
463
|
-
waitEventContextTags={waitEventContextTags}
|
|
464
461
|
loyaltyMetaData={loyaltyMetaData}
|
|
465
462
|
isLoyaltyModule={isLoyaltyModule}
|
|
466
463
|
/>
|
|
@@ -564,7 +561,6 @@ export function SlideBoxContent(props) {
|
|
|
564
561
|
onCreateComplete={onCreateComplete}
|
|
565
562
|
smsRegister={smsRegister}
|
|
566
563
|
eventContextTags={eventContextTags}
|
|
567
|
-
waitEventContextTags={waitEventContextTags}
|
|
568
564
|
getLiquidTags={getLiquidTags}
|
|
569
565
|
showTestAndPreviewSlidebox={showTestAndPreviewSlidebox}
|
|
570
566
|
handleTestAndPreview={handleTestAndPreview}
|
|
@@ -608,7 +604,6 @@ export function SlideBoxContent(props) {
|
|
|
608
604
|
}}
|
|
609
605
|
hostName={hostName}
|
|
610
606
|
eventContextTags={eventContextTags}
|
|
611
|
-
waitEventContextTags={waitEventContextTags}
|
|
612
607
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
613
608
|
showTestAndPreviewSlidebox={showTestAndPreviewSlidebox}
|
|
614
609
|
handleTestAndPreview={handleTestAndPreview}
|
|
@@ -649,7 +644,6 @@ export function SlideBoxContent(props) {
|
|
|
649
644
|
eventContextTags={eventContextTags}
|
|
650
645
|
restrictPersonalization={restrictPersonalization}
|
|
651
646
|
isAnonymousType={isAnonymousType}
|
|
652
|
-
waitEventContextTags={waitEventContextTags}
|
|
653
647
|
/>
|
|
654
648
|
)}
|
|
655
649
|
|
|
@@ -683,7 +677,6 @@ export function SlideBoxContent(props) {
|
|
|
683
677
|
moduleType={moduleType}
|
|
684
678
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
685
679
|
eventContextTags={eventContextTags}
|
|
686
|
-
waitEventContextTags={waitEventContextTags}
|
|
687
680
|
isLoyaltyModule={isLoyaltyModule}
|
|
688
681
|
showTestAndPreviewSlidebox={showTestAndPreviewSlidebox}
|
|
689
682
|
handleTestAndPreview={handleTestAndPreview}
|
|
@@ -728,7 +721,6 @@ export function SlideBoxContent(props) {
|
|
|
728
721
|
moduleType={moduleType}
|
|
729
722
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
730
723
|
eventContextTags={eventContextTags}
|
|
731
|
-
waitEventContextTags={waitEventContextTags}
|
|
732
724
|
isLoyaltyModule={isLoyaltyModule}
|
|
733
725
|
showTestAndPreviewSlidebox={showTestAndPreviewSlidebox}
|
|
734
726
|
handleTestAndPreview={handleTestAndPreview}
|
|
@@ -768,7 +760,6 @@ export function SlideBoxContent(props) {
|
|
|
768
760
|
moduleType={moduleType}
|
|
769
761
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
770
762
|
eventContextTags={eventContextTags}
|
|
771
|
-
waitEventContextTags={waitEventContextTags}
|
|
772
763
|
isLoyaltyModule={isLoyaltyModule}
|
|
773
764
|
showTestAndPreviewSlidebox={showTestAndPreviewSlidebox}
|
|
774
765
|
handleTestAndPreview={handleTestAndPreview}
|
|
@@ -812,7 +803,6 @@ export function SlideBoxContent(props) {
|
|
|
812
803
|
hideTestAndPreviewBtn={hideTestAndPreviewBtn}
|
|
813
804
|
creativesMode={creativesMode}
|
|
814
805
|
eventContextTags={eventContextTags}
|
|
815
|
-
waitEventContextTags={waitEventContextTags}
|
|
816
806
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
817
807
|
showTestAndPreviewSlidebox={showTestAndPreviewSlidebox}
|
|
818
808
|
handleTestAndPreview={handleTestAndPreview}
|
|
@@ -845,7 +835,6 @@ export function SlideBoxContent(props) {
|
|
|
845
835
|
hideTestAndPreviewBtn={hideTestAndPreviewBtn}
|
|
846
836
|
creativesMode={creativesMode}
|
|
847
837
|
eventContextTags={eventContextTags}
|
|
848
|
-
waitEventContextTags={waitEventContextTags}
|
|
849
838
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
850
839
|
handleClose={handleClose}
|
|
851
840
|
restrictPersonalization={restrictPersonalization}
|
|
@@ -885,7 +874,6 @@ export function SlideBoxContent(props) {
|
|
|
885
874
|
hideTestAndPreviewBtn={hideTestAndPreviewBtn}
|
|
886
875
|
onTestContentClicked={onTestContentClicked}
|
|
887
876
|
eventContextTags={eventContextTags}
|
|
888
|
-
waitEventContextTags={waitEventContextTags}
|
|
889
877
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
890
878
|
showTestAndPreviewSlidebox={showTestAndPreviewSlidebox}
|
|
891
879
|
handleTestAndPreview={handleTestAndPreview}
|
|
@@ -924,7 +912,6 @@ export function SlideBoxContent(props) {
|
|
|
924
912
|
hideTestAndPreviewBtn={hideTestAndPreviewBtn}
|
|
925
913
|
onTestContentClicked={onTestContentClicked}
|
|
926
914
|
eventContextTags={eventContextTags}
|
|
927
|
-
waitEventContextTags={waitEventContextTags}
|
|
928
915
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
929
916
|
onCreateComplete={onCreateComplete}
|
|
930
917
|
creativesMode={creativesMode}
|
|
@@ -950,7 +937,6 @@ export function SlideBoxContent(props) {
|
|
|
950
937
|
onSelectTemplate={onSelectTemplate}
|
|
951
938
|
orgUnitId={orgUnitId}
|
|
952
939
|
eventContextTags={eventContextTags}
|
|
953
|
-
waitEventContextTags={waitEventContextTags}
|
|
954
940
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
955
941
|
/>
|
|
956
942
|
)
|
|
@@ -972,7 +958,6 @@ export function SlideBoxContent(props) {
|
|
|
972
958
|
fbAdManager={fbAdManager}
|
|
973
959
|
onSelectTemplate={onSelectTemplate}
|
|
974
960
|
eventContextTags={eventContextTags}
|
|
975
|
-
waitEventContextTags={waitEventContextTags}
|
|
976
961
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
977
962
|
/>
|
|
978
963
|
)
|
|
@@ -996,7 +981,6 @@ export function SlideBoxContent(props) {
|
|
|
996
981
|
handleClose={handleClose}
|
|
997
982
|
selectedOfferDetails={selectedOfferDetails}
|
|
998
983
|
eventContextTags={eventContextTags}
|
|
999
|
-
waitEventContextTags={waitEventContextTags}
|
|
1000
984
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
1001
985
|
/>
|
|
1002
986
|
)
|
|
@@ -1017,7 +1001,6 @@ export function SlideBoxContent(props) {
|
|
|
1017
1001
|
handleClose={handleClose}
|
|
1018
1002
|
selectedOfferDetails={selectedOfferDetails}
|
|
1019
1003
|
eventContextTags={eventContextTags}
|
|
1020
|
-
waitEventContextTags={waitEventContextTags}
|
|
1021
1004
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
1022
1005
|
/>
|
|
1023
1006
|
)
|
|
@@ -1034,7 +1017,6 @@ export function SlideBoxContent(props) {
|
|
|
1034
1017
|
templateData={templateData}
|
|
1035
1018
|
selectedOfferDetails={selectedOfferDetails}
|
|
1036
1019
|
eventContextTags={eventContextTags}
|
|
1037
|
-
waitEventContextTags={waitEventContextTags}
|
|
1038
1020
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
1039
1021
|
showTestAndPreviewSlidebox={showTestAndPreviewSlidebox}
|
|
1040
1022
|
handleTestAndPreview={handleTestAndPreview}
|
|
@@ -1059,7 +1041,6 @@ export function SlideBoxContent(props) {
|
|
|
1059
1041
|
handleTestAndPreview={handleTestAndPreview}
|
|
1060
1042
|
handleCloseTestAndPreview={handleCloseTestAndPreview}
|
|
1061
1043
|
eventContextTags={eventContextTags}
|
|
1062
|
-
waitEventContextTags={waitEventContextTags}
|
|
1063
1044
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
1064
1045
|
createNew/> }
|
|
1065
1046
|
|
|
@@ -1067,7 +1048,6 @@ export function SlideBoxContent(props) {
|
|
|
1067
1048
|
isFullMode={isFullMode}
|
|
1068
1049
|
onCreateComplete={onCreateComplete}
|
|
1069
1050
|
eventContextTags={eventContextTags}
|
|
1070
|
-
waitEventContextTags={waitEventContextTags}
|
|
1071
1051
|
handleClose={handleClose}
|
|
1072
1052
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
1073
1053
|
showTestAndPreviewSlidebox={showTestAndPreviewSlidebox}
|
|
@@ -1085,7 +1065,6 @@ export function SlideBoxContent(props) {
|
|
|
1085
1065
|
forwardedTags={forwardedTags}
|
|
1086
1066
|
selectedOfferDetails={selectedOfferDetails}
|
|
1087
1067
|
eventContextTags={eventContextTags}
|
|
1088
|
-
waitEventContextTags={waitEventContextTags}
|
|
1089
1068
|
showTestAndPreviewSlidebox={showTestAndPreviewSlidebox}
|
|
1090
1069
|
handleTestAndPreview={handleTestAndPreview}
|
|
1091
1070
|
handleCloseTestAndPreview={handleCloseTestAndPreview}
|
|
@@ -1124,7 +1103,6 @@ export function SlideBoxContent(props) {
|
|
|
1124
1103
|
onPreviewContentClicked={onPreviewContentClicked}
|
|
1125
1104
|
onTestContentClicked={onTestContentClicked}
|
|
1126
1105
|
eventContextTags={eventContextTags}
|
|
1127
|
-
waitEventContextTags={waitEventContextTags}
|
|
1128
1106
|
onCreateComplete={onCreateComplete}
|
|
1129
1107
|
handleClose={handleClose}
|
|
1130
1108
|
moduleType={moduleType}
|
|
@@ -1160,7 +1138,6 @@ export function SlideBoxContent(props) {
|
|
|
1160
1138
|
moduleType={moduleType}
|
|
1161
1139
|
showLiquidErrorInFooter={showLiquidErrorInFooter}
|
|
1162
1140
|
eventContextTags={eventContextTags}
|
|
1163
|
-
waitEventContextTags={waitEventContextTags}
|
|
1164
1141
|
onCreateComplete={onCreateComplete}
|
|
1165
1142
|
handleClose={handleClose}
|
|
1166
1143
|
getDefaultTags={type}
|
|
@@ -1184,7 +1161,6 @@ export function SlideBoxContent(props) {
|
|
|
1184
1161
|
onCreateComplete={onCreateComplete}
|
|
1185
1162
|
selectedOfferDetails={selectedOfferDetails}
|
|
1186
1163
|
eventContextTags={eventContextTags}
|
|
1187
|
-
waitEventContextTags={waitEventContextTags}
|
|
1188
1164
|
params={{
|
|
1189
1165
|
id: templateData._id,
|
|
1190
1166
|
}}
|
|
@@ -1223,7 +1199,6 @@ export function SlideBoxContent(props) {
|
|
|
1223
1199
|
eventContextTags={eventContextTags}
|
|
1224
1200
|
restrictPersonalization={restrictPersonalization}
|
|
1225
1201
|
isAnonymousType={isAnonymousType}
|
|
1226
|
-
waitEventContextTags={waitEventContextTags}
|
|
1227
1202
|
/>
|
|
1228
1203
|
)}
|
|
1229
1204
|
{isCreateRcs && (<Rcs
|
|
@@ -1317,8 +1292,6 @@ SlideBoxContent.propTypes = {
|
|
|
1317
1292
|
showTestAndPreviewSlidebox: PropTypes.bool,
|
|
1318
1293
|
handleTestAndPreview: PropTypes.func,
|
|
1319
1294
|
handleCloseTestAndPreview: PropTypes.func,
|
|
1320
|
-
isTestAndPreviewMode: PropTypes.bool
|
|
1321
|
-
waitEventContextTags: PropTypes.object,
|
|
1322
|
-
eventContextTags: PropTypes.array,
|
|
1295
|
+
isTestAndPreviewMode: PropTypes.bool
|
|
1323
1296
|
};
|
|
1324
1297
|
export default SlideBoxContent;
|
|
@@ -762,6 +762,7 @@ export class Creatives extends React.Component {
|
|
|
762
762
|
smsFallBackContent = {},
|
|
763
763
|
creativeName = "",
|
|
764
764
|
channel = constants.RCS,
|
|
765
|
+
accountId = "",
|
|
765
766
|
} = templateData || {};
|
|
766
767
|
const cardContent = (rcsContent.cardContent && rcsContent.cardContent[0]) || {};
|
|
767
768
|
const Status = RCS_STATUSES.approved || '';
|
|
@@ -776,6 +777,7 @@ export class Creatives extends React.Component {
|
|
|
776
777
|
RCS: {
|
|
777
778
|
rcsContent: {
|
|
778
779
|
...rcsContent,
|
|
780
|
+
...(accountId && !isFullMode && { accountId }),
|
|
779
781
|
cardContent: [
|
|
780
782
|
{
|
|
781
783
|
...cardContent,
|
|
@@ -1223,7 +1225,7 @@ export class Creatives extends React.Component {
|
|
|
1223
1225
|
};
|
|
1224
1226
|
}
|
|
1225
1227
|
break;
|
|
1226
|
-
case constants.FACEBOOK:
|
|
1228
|
+
case constants.FACEBOOK:
|
|
1227
1229
|
if (template.value) {
|
|
1228
1230
|
const FacebookAd = template?.value?.versions?.base?.content?.FacebookAd;
|
|
1229
1231
|
const { type } = FacebookAd[0];
|
|
@@ -1267,9 +1269,8 @@ export class Creatives extends React.Component {
|
|
|
1267
1269
|
selectedMarketingObjective: template.value.selectedMarketingObjective,
|
|
1268
1270
|
};
|
|
1269
1271
|
}
|
|
1270
|
-
}
|
|
1271
1272
|
break;
|
|
1272
|
-
case constants.RCS:
|
|
1273
|
+
case constants.RCS:
|
|
1273
1274
|
if (template.value) {
|
|
1274
1275
|
const { name = "", versions = {} } = {
|
|
1275
1276
|
} = template.value || {};
|
|
@@ -1279,6 +1280,7 @@ export class Creatives extends React.Component {
|
|
|
1279
1280
|
contentType = "",
|
|
1280
1281
|
cardType = "",
|
|
1281
1282
|
cardSettings = {},
|
|
1283
|
+
accountId = "",
|
|
1282
1284
|
} = get(versions, 'base.content.RCS.rcsContent', {});
|
|
1283
1285
|
const rcsContent = {
|
|
1284
1286
|
contentType,
|
|
@@ -1290,11 +1292,11 @@ export class Creatives extends React.Component {
|
|
|
1290
1292
|
channel,
|
|
1291
1293
|
creativeName: name,
|
|
1292
1294
|
rcsContent,
|
|
1295
|
+
accountId,
|
|
1293
1296
|
};
|
|
1294
1297
|
}
|
|
1295
|
-
}
|
|
1296
1298
|
break;
|
|
1297
|
-
case constants.ZALO:
|
|
1299
|
+
case constants.ZALO:
|
|
1298
1300
|
if (template.value) {
|
|
1299
1301
|
templateData = {
|
|
1300
1302
|
...template.value,
|
|
@@ -1303,7 +1305,6 @@ export class Creatives extends React.Component {
|
|
|
1303
1305
|
delete templateData.type;
|
|
1304
1306
|
}
|
|
1305
1307
|
}
|
|
1306
|
-
}
|
|
1307
1308
|
break;
|
|
1308
1309
|
case constants.WEBPUSH: {
|
|
1309
1310
|
if (template.value) {
|
|
@@ -1949,7 +1950,6 @@ export class Creatives extends React.Component {
|
|
|
1949
1950
|
smsRegister,
|
|
1950
1951
|
enableNewChannels,
|
|
1951
1952
|
eventContextTags,
|
|
1952
|
-
waitEventContextTags = {},
|
|
1953
1953
|
isLoyaltyModule,
|
|
1954
1954
|
loyaltyMetaData = {},
|
|
1955
1955
|
} = this.props;
|
|
@@ -2117,7 +2117,6 @@ export class Creatives extends React.Component {
|
|
|
2117
2117
|
creativesMode={creativesMode} // An existing prop that we're using here. Required to ensure correct account details in Edit or Preview in case of Embedded mode.
|
|
2118
2118
|
hostName={this.props?.hostName || ''}
|
|
2119
2119
|
eventContextTags={eventContextTags}
|
|
2120
|
-
waitEventContextTags={waitEventContextTags}
|
|
2121
2120
|
isLoyaltyModule={isLoyaltyModule}
|
|
2122
2121
|
loyaltyMetaData={loyaltyMetaData}
|
|
2123
2122
|
showTestAndPreviewSlidebox={showTestAndPreviewSlidebox}
|
|
@@ -2210,7 +2209,6 @@ Creatives.propTypes = {
|
|
|
2210
2209
|
orgUnitId: PropTypes.number,
|
|
2211
2210
|
hostName: PropTypes.string,
|
|
2212
2211
|
eventContextTags: PropTypes.array,
|
|
2213
|
-
waitEventContextTags: PropTypes.object,
|
|
2214
2212
|
loyaltyTagFetchingDependencies: PropTypes.object,
|
|
2215
2213
|
customerType: PropTypes.string,
|
|
2216
2214
|
intl: PropTypes.shape({
|
|
@@ -47,7 +47,6 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
type=""
|
|
50
|
-
waitEventContextTags={Object {}}
|
|
51
50
|
/>
|
|
52
51
|
</SlideBoxContent__CreativesWrapper>
|
|
53
52
|
`;
|
|
@@ -99,7 +98,6 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
|
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
type=""
|
|
102
|
-
waitEventContextTags={Object {}}
|
|
103
101
|
/>
|
|
104
102
|
</SlideBoxContent__CreativesWrapper>
|
|
105
103
|
`;
|
|
@@ -150,7 +148,6 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
|
|
|
150
148
|
}
|
|
151
149
|
}
|
|
152
150
|
type=""
|
|
153
|
-
waitEventContextTags={Object {}}
|
|
154
151
|
/>
|
|
155
152
|
</SlideBoxContent__CreativesWrapper>
|
|
156
153
|
`;
|
|
@@ -201,7 +198,6 @@ exports[`Test SlideBoxContent container Email component isTestAndPreviewMode IIF
|
|
|
201
198
|
}
|
|
202
199
|
}
|
|
203
200
|
type=""
|
|
204
|
-
waitEventContextTags={Object {}}
|
|
205
201
|
/>
|
|
206
202
|
</SlideBoxContent__CreativesWrapper>
|
|
207
203
|
`;
|
|
@@ -229,7 +225,6 @@ exports[`Test SlideBoxContent container InApp vs InAppWrapper rendering conditio
|
|
|
229
225
|
"mode": "create",
|
|
230
226
|
}
|
|
231
227
|
}
|
|
232
|
-
waitEventContextTags={Object {}}
|
|
233
228
|
/>
|
|
234
229
|
</SlideBoxContent__CreativesWrapper>
|
|
235
230
|
`;
|
|
@@ -257,7 +252,6 @@ exports[`Test SlideBoxContent container InApp vs InAppWrapper rendering conditio
|
|
|
257
252
|
"mode": "create",
|
|
258
253
|
}
|
|
259
254
|
}
|
|
260
|
-
waitEventContextTags={Object {}}
|
|
261
255
|
/>
|
|
262
256
|
</SlideBoxContent__CreativesWrapper>
|
|
263
257
|
`;
|
|
@@ -285,7 +279,6 @@ exports[`Test SlideBoxContent container InApp vs InAppWrapper rendering conditio
|
|
|
285
279
|
"mode": "create",
|
|
286
280
|
}
|
|
287
281
|
}
|
|
288
|
-
waitEventContextTags={Object {}}
|
|
289
282
|
/>
|
|
290
283
|
</SlideBoxContent__CreativesWrapper>
|
|
291
284
|
`;
|
|
@@ -313,7 +306,6 @@ exports[`Test SlideBoxContent container InApp vs InAppWrapper rendering conditio
|
|
|
313
306
|
"mode": "create",
|
|
314
307
|
}
|
|
315
308
|
}
|
|
316
|
-
waitEventContextTags={Object {}}
|
|
317
309
|
/>
|
|
318
310
|
</SlideBoxContent__CreativesWrapper>
|
|
319
311
|
`;
|
|
@@ -323,7 +315,6 @@ exports[`Test SlideBoxContent container Should handle isTestAndPreviewMode IIFE
|
|
|
323
315
|
<ForwardRef
|
|
324
316
|
isTestAndPreviewMode={true}
|
|
325
317
|
onCreateComplete={[MockFunction]}
|
|
326
|
-
waitEventContextTags={Object {}}
|
|
327
318
|
/>
|
|
328
319
|
</SlideBoxContent__CreativesWrapper>
|
|
329
320
|
`;
|
|
@@ -333,7 +324,6 @@ exports[`Test SlideBoxContent container Should handle isTestAndPreviewMode IIFE
|
|
|
333
324
|
<ForwardRef
|
|
334
325
|
isTestAndPreviewMode={false}
|
|
335
326
|
onCreateComplete={[MockFunction]}
|
|
336
|
-
waitEventContextTags={Object {}}
|
|
337
327
|
/>
|
|
338
328
|
</SlideBoxContent__CreativesWrapper>
|
|
339
329
|
`;
|
|
@@ -496,7 +486,6 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
496
486
|
},
|
|
497
487
|
}
|
|
498
488
|
}
|
|
499
|
-
waitEventContextTags={Object {}}
|
|
500
489
|
/>
|
|
501
490
|
</SlideBoxContent__CreativesWrapper>
|
|
502
491
|
`;
|
|
@@ -727,7 +716,6 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
727
716
|
},
|
|
728
717
|
}
|
|
729
718
|
}
|
|
730
|
-
waitEventContextTags={Object {}}
|
|
731
719
|
/>
|
|
732
720
|
</SlideBoxContent__CreativesWrapper>
|
|
733
721
|
`;
|
|
@@ -851,7 +839,6 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
851
839
|
},
|
|
852
840
|
}
|
|
853
841
|
}
|
|
854
|
-
waitEventContextTags={Object {}}
|
|
855
842
|
/>
|
|
856
843
|
</SlideBoxContent__CreativesWrapper>
|
|
857
844
|
`;
|
|
@@ -872,7 +859,6 @@ exports[`Test SlideBoxContent container Should render correct component for rcs
|
|
|
872
859
|
}
|
|
873
860
|
}
|
|
874
861
|
onCreateComplete={[MockFunction]}
|
|
875
|
-
waitEventContextTags={Object {}}
|
|
876
862
|
/>
|
|
877
863
|
</SlideBoxContent__CreativesWrapper>
|
|
878
864
|
`;
|
|
@@ -908,7 +894,6 @@ exports[`Test SlideBoxContent container Should render correct component for rcs
|
|
|
908
894
|
"validity": true,
|
|
909
895
|
}
|
|
910
896
|
}
|
|
911
|
-
waitEventContextTags={Object {}}
|
|
912
897
|
/>
|
|
913
898
|
</SlideBoxContent__CreativesWrapper>
|
|
914
899
|
`;
|
|
@@ -987,7 +972,6 @@ exports[`Test SlideBoxContent container Should render correct component for rcs
|
|
|
987
972
|
messageDetails={Object {}}
|
|
988
973
|
onCreateComplete={[MockFunction]}
|
|
989
974
|
slidBoxContent="templates"
|
|
990
|
-
waitEventContextTags={Object {}}
|
|
991
975
|
/>
|
|
992
976
|
</SlideBoxContent__CreativesWrapper>
|
|
993
977
|
`;
|
|
@@ -1221,7 +1205,6 @@ exports[`Test SlideBoxContent container Should render correct component for what
|
|
|
1221
1205
|
<SlideBoxContent__CreativesWrapper>
|
|
1222
1206
|
<ForwardRef
|
|
1223
1207
|
onCreateComplete={[MockFunction]}
|
|
1224
|
-
waitEventContextTags={Object {}}
|
|
1225
1208
|
/>
|
|
1226
1209
|
</SlideBoxContent__CreativesWrapper>
|
|
1227
1210
|
`;
|
|
@@ -1248,7 +1231,6 @@ exports[`Test SlideBoxContent container Should render correct component for what
|
|
|
1248
1231
|
"mode": "create",
|
|
1249
1232
|
}
|
|
1250
1233
|
}
|
|
1251
|
-
waitEventContextTags={Object {}}
|
|
1252
1234
|
/>
|
|
1253
1235
|
</SlideBoxContent__CreativesWrapper>
|
|
1254
1236
|
`;
|
|
@@ -1286,7 +1268,6 @@ exports[`Test SlideBoxContent container Should render correct component for what
|
|
|
1286
1268
|
"whatsappTemplateName": "amit123456",
|
|
1287
1269
|
}
|
|
1288
1270
|
}
|
|
1289
|
-
waitEventContextTags={Object {}}
|
|
1290
1271
|
/>
|
|
1291
1272
|
</SlideBoxContent__CreativesWrapper>
|
|
1292
1273
|
`;
|
|
@@ -1399,7 +1380,6 @@ exports[`Test SlideBoxContent container Should render correct component for what
|
|
|
1399
1380
|
messageDetails={Object {}}
|
|
1400
1381
|
onCreateComplete={[MockFunction]}
|
|
1401
1382
|
slidBoxContent="templates"
|
|
1402
|
-
waitEventContextTags={Object {}}
|
|
1403
1383
|
/>
|
|
1404
1384
|
</SlideBoxContent__CreativesWrapper>
|
|
1405
1385
|
`;
|
|
@@ -1409,7 +1389,6 @@ exports[`Test SlideBoxContent container Should render correctly with isTestAndPr
|
|
|
1409
1389
|
<ForwardRef
|
|
1410
1390
|
isTestAndPreviewMode={false}
|
|
1411
1391
|
onCreateComplete={[MockFunction]}
|
|
1412
|
-
waitEventContextTags={Object {}}
|
|
1413
1392
|
/>
|
|
1414
1393
|
</SlideBoxContent__CreativesWrapper>
|
|
1415
1394
|
`;
|
|
@@ -1430,7 +1409,6 @@ exports[`Test SlideBoxContent container Should render correctly with isTestAndPr
|
|
|
1430
1409
|
}
|
|
1431
1410
|
}
|
|
1432
1411
|
type=""
|
|
1433
|
-
waitEventContextTags={Object {}}
|
|
1434
1412
|
/>
|
|
1435
1413
|
</SlideBoxContent__CreativesWrapper>
|
|
1436
1414
|
`;
|
|
@@ -1489,7 +1467,6 @@ exports[`Test SlideBoxContent container Should render correctly with isTestAndPr
|
|
|
1489
1467
|
<ForwardRef
|
|
1490
1468
|
isTestAndPreviewMode={true}
|
|
1491
1469
|
onCreateComplete={[MockFunction]}
|
|
1492
|
-
waitEventContextTags={Object {}}
|
|
1493
1470
|
/>
|
|
1494
1471
|
</SlideBoxContent__CreativesWrapper>
|
|
1495
1472
|
`;
|
|
@@ -1510,7 +1487,6 @@ exports[`Test SlideBoxContent container Should render correctly with isTestAndPr
|
|
|
1510
1487
|
}
|
|
1511
1488
|
}
|
|
1512
1489
|
type=""
|
|
1513
|
-
waitEventContextTags={Object {}}
|
|
1514
1490
|
/>
|
|
1515
1491
|
</SlideBoxContent__CreativesWrapper>
|
|
1516
1492
|
`;
|
|
@@ -1588,7 +1564,6 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should han
|
|
|
1588
1564
|
"tag2",
|
|
1589
1565
|
]
|
|
1590
1566
|
}
|
|
1591
|
-
waitEventContextTags={Object {}}
|
|
1592
1567
|
/>
|
|
1593
1568
|
</SlideBoxContent__CreativesWrapper>
|
|
1594
1569
|
`;
|
|
@@ -1638,7 +1613,6 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should han
|
|
|
1638
1613
|
},
|
|
1639
1614
|
}
|
|
1640
1615
|
}
|
|
1641
|
-
waitEventContextTags={Object {}}
|
|
1642
1616
|
/>
|
|
1643
1617
|
</SlideBoxContent__CreativesWrapper>
|
|
1644
1618
|
`;
|
|
@@ -1672,7 +1646,6 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should han
|
|
|
1672
1646
|
"tag1",
|
|
1673
1647
|
]
|
|
1674
1648
|
}
|
|
1675
|
-
waitEventContextTags={Object {}}
|
|
1676
1649
|
/>
|
|
1677
1650
|
</SlideBoxContent__CreativesWrapper>
|
|
1678
1651
|
`;
|
|
@@ -1727,7 +1700,6 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should han
|
|
|
1727
1700
|
},
|
|
1728
1701
|
}
|
|
1729
1702
|
}
|
|
1730
|
-
waitEventContextTags={Object {}}
|
|
1731
1703
|
/>
|
|
1732
1704
|
</SlideBoxContent__CreativesWrapper>
|
|
1733
1705
|
`;
|
|
@@ -1751,7 +1723,6 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should ren
|
|
|
1751
1723
|
onCreateComplete={[MockFunction]}
|
|
1752
1724
|
restrictPersonalization={false}
|
|
1753
1725
|
supportedTags={Array []}
|
|
1754
|
-
waitEventContextTags={Object {}}
|
|
1755
1726
|
/>
|
|
1756
1727
|
</SlideBoxContent__CreativesWrapper>
|
|
1757
1728
|
`;
|
|
@@ -1796,7 +1767,6 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should ren
|
|
|
1796
1767
|
},
|
|
1797
1768
|
}
|
|
1798
1769
|
}
|
|
1799
|
-
waitEventContextTags={Object {}}
|
|
1800
1770
|
/>
|
|
1801
1771
|
</SlideBoxContent__CreativesWrapper>
|
|
1802
1772
|
`;
|
|
@@ -2070,7 +2040,6 @@ exports[`Test SlideBoxContent container getChannelPreviewContent utility functio
|
|
|
2070
2040
|
},
|
|
2071
2041
|
}
|
|
2072
2042
|
}
|
|
2073
|
-
waitEventContextTags={Object {}}
|
|
2074
2043
|
/>
|
|
2075
2044
|
</SlideBoxContent__CreativesWrapper>
|
|
2076
2045
|
`;
|
|
@@ -2181,7 +2150,6 @@ exports[`Test SlideBoxContent container getChannelPreviewContent utility functio
|
|
|
2181
2150
|
},
|
|
2182
2151
|
}
|
|
2183
2152
|
}
|
|
2184
|
-
waitEventContextTags={Object {}}
|
|
2185
2153
|
/>
|
|
2186
2154
|
</SlideBoxContent__CreativesWrapper>
|
|
2187
2155
|
`;
|
|
@@ -2524,7 +2492,6 @@ exports[`Test SlideBoxContent container getChannelPreviewContent utility functio
|
|
|
2524
2492
|
},
|
|
2525
2493
|
}
|
|
2526
2494
|
}
|
|
2527
|
-
waitEventContextTags={Object {}}
|
|
2528
2495
|
/>
|
|
2529
2496
|
</SlideBoxContent__CreativesWrapper>
|
|
2530
2497
|
`;
|
|
@@ -2617,7 +2584,6 @@ exports[`Test SlideBoxContent container getChannelPreviewContent utility functio
|
|
|
2617
2584
|
},
|
|
2618
2585
|
}
|
|
2619
2586
|
}
|
|
2620
|
-
waitEventContextTags={Object {}}
|
|
2621
2587
|
/>
|
|
2622
2588
|
</SlideBoxContent__CreativesWrapper>
|
|
2623
2589
|
`;
|
|
@@ -2710,7 +2676,6 @@ exports[`Test SlideBoxContent container getChannelPreviewContent utility functio
|
|
|
2710
2676
|
},
|
|
2711
2677
|
}
|
|
2712
2678
|
}
|
|
2713
|
-
waitEventContextTags={Object {}}
|
|
2714
2679
|
/>
|
|
2715
2680
|
</SlideBoxContent__CreativesWrapper>
|
|
2716
2681
|
`;
|
|
@@ -2803,7 +2768,6 @@ exports[`Test SlideBoxContent container getChannelPreviewContent utility functio
|
|
|
2803
2768
|
},
|
|
2804
2769
|
}
|
|
2805
2770
|
}
|
|
2806
|
-
waitEventContextTags={Object {}}
|
|
2807
2771
|
/>
|
|
2808
2772
|
</SlideBoxContent__CreativesWrapper>
|
|
2809
2773
|
`;
|
|
@@ -2903,7 +2867,6 @@ exports[`Test SlideBoxContent container getChannelPreviewContent utility functio
|
|
|
2903
2867
|
},
|
|
2904
2868
|
}
|
|
2905
2869
|
}
|
|
2906
|
-
waitEventContextTags={Object {}}
|
|
2907
2870
|
/>
|
|
2908
2871
|
</SlideBoxContent__CreativesWrapper>
|
|
2909
2872
|
`;
|
|
@@ -2996,7 +2959,6 @@ exports[`Test SlideBoxContent container getChannelPreviewContent utility functio
|
|
|
2996
2959
|
},
|
|
2997
2960
|
}
|
|
2998
2961
|
}
|
|
2999
|
-
waitEventContextTags={Object {}}
|
|
3000
2962
|
/>
|
|
3001
2963
|
</SlideBoxContent__CreativesWrapper>
|
|
3002
2964
|
`;
|
|
@@ -3089,7 +3051,6 @@ exports[`Test SlideBoxContent container getChannelPreviewContent utility functio
|
|
|
3089
3051
|
},
|
|
3090
3052
|
}
|
|
3091
3053
|
}
|
|
3092
|
-
waitEventContextTags={Object {}}
|
|
3093
3054
|
/>
|
|
3094
3055
|
</SlideBoxContent__CreativesWrapper>
|
|
3095
3056
|
`;
|
|
@@ -3192,7 +3153,6 @@ exports[`Test SlideBoxContent container getChannelPreviewContent utility functio
|
|
|
3192
3153
|
},
|
|
3193
3154
|
}
|
|
3194
3155
|
}
|
|
3195
|
-
waitEventContextTags={Object {}}
|
|
3196
3156
|
/>
|
|
3197
3157
|
</SlideBoxContent__CreativesWrapper>
|
|
3198
3158
|
`;
|
|
@@ -3215,7 +3175,6 @@ exports[`Test SlideBoxContent container getLineType utility function Should hand
|
|
|
3215
3175
|
}
|
|
3216
3176
|
onCreateComplete={[MockFunction]}
|
|
3217
3177
|
templateData={null}
|
|
3218
|
-
waitEventContextTags={Object {}}
|
|
3219
3178
|
/>
|
|
3220
3179
|
</SlideBoxContent__CreativesWrapper>
|
|
3221
3180
|
`;
|
|
@@ -3252,7 +3211,6 @@ exports[`Test SlideBoxContent container getLineType utility function Should hand
|
|
|
3252
3211
|
"type": "LINE",
|
|
3253
3212
|
}
|
|
3254
3213
|
}
|
|
3255
|
-
waitEventContextTags={Object {}}
|
|
3256
3214
|
/>
|
|
3257
3215
|
</SlideBoxContent__CreativesWrapper>
|
|
3258
3216
|
`;
|
|
@@ -3279,7 +3237,6 @@ exports[`Test SlideBoxContent container getLineType utility function Should hand
|
|
|
3279
3237
|
"isDefault": true,
|
|
3280
3238
|
}
|
|
3281
3239
|
}
|
|
3282
|
-
waitEventContextTags={Object {}}
|
|
3283
3240
|
/>
|
|
3284
3241
|
</SlideBoxContent__CreativesWrapper>
|
|
3285
3242
|
`;
|
|
@@ -3328,7 +3285,6 @@ exports[`Test SlideBoxContent container getLineType utility function Should hand
|
|
|
3328
3285
|
},
|
|
3329
3286
|
}
|
|
3330
3287
|
}
|
|
3331
|
-
waitEventContextTags={Object {}}
|
|
3332
3288
|
/>
|
|
3333
3289
|
</SlideBoxContent__CreativesWrapper>
|
|
3334
3290
|
`;
|
|
@@ -3350,7 +3306,6 @@ exports[`Test SlideBoxContent container getViber utility function Should handle
|
|
|
3350
3306
|
}
|
|
3351
3307
|
onCreateComplete={[MockFunction]}
|
|
3352
3308
|
templateData={null}
|
|
3353
|
-
waitEventContextTags={Object {}}
|
|
3354
3309
|
/>
|
|
3355
3310
|
</SlideBoxContent__CreativesWrapper>
|
|
3356
3311
|
`;
|
|
@@ -3381,7 +3336,6 @@ exports[`Test SlideBoxContent container getViber utility function Should handle
|
|
|
3381
3336
|
"type": "VIBER",
|
|
3382
3337
|
}
|
|
3383
3338
|
}
|
|
3384
|
-
waitEventContextTags={Object {}}
|
|
3385
3339
|
/>
|
|
3386
3340
|
</SlideBoxContent__CreativesWrapper>
|
|
3387
3341
|
`;
|
|
@@ -3411,7 +3365,6 @@ exports[`Test SlideBoxContent container getViber utility function Should handle
|
|
|
3411
3365
|
"name": "sms",
|
|
3412
3366
|
}
|
|
3413
3367
|
}
|
|
3414
|
-
waitEventContextTags={Object {}}
|
|
3415
3368
|
/>
|
|
3416
3369
|
</SlideBoxContent__CreativesWrapper>
|
|
3417
3370
|
`;
|