@capillarytech/creatives-library 3.1.46 → 3.1.49

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.
@@ -209,10 +209,7 @@ export class Cap extends React.Component { // eslint-disable-line react/prefer-s
209
209
  if (!_.isEmpty(orgList)) {
210
210
  _.forEach(orgList, (item) => {
211
211
  const id = item.orgID;
212
- let name = item.orgName;
213
- if (id === 486) {
214
- name = 'Demo Org';
215
- }
212
+ const name = item.orgName;
216
213
  proxyOrgList.push({ key: id, text: name, value: id });
217
214
  });
218
215
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "3.1.46",
4
+ "version": "3.1.49",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -70,6 +70,8 @@
70
70
  "creatives.components.ToastrMessage.close": "close",
71
71
  "creatives.components.ToastrMessage.header": "This is the ToastrMessage component !",
72
72
  "creatives.components.TopBar.brand.dropdown": "Hi",
73
+ "creatives.components.TopBar.brand.noResultText": "No results found",
74
+ "creatives.components.TopBar.brand.organization": "Organization",
73
75
  "creatives.components.WechatRichmediaTemplatePreview.edit": "Edit",
74
76
  "creatives.components.WechatRichmediaTemplatePreview.header": "This is the WechatRichmediaTemplatePreview component !",
75
77
  "creatives.components.WechatRichmediaTemplatePreview.select": "Select",
@@ -125,11 +127,18 @@
125
127
  "creatives.componentsV2.Header.save": "Save",
126
128
  "creatives.componentsV2.ImagePreview.close": "close",
127
129
  "creatives.componentsV2.ImagePreview.loadingImage": "Loading images !!!!",
130
+ "creatives.componentsV2.NavigationBar.businessProcesses": "Workbench",
131
+ "creatives.componentsV2.NavigationBar.campaign": "Campaigns",
128
132
  "creatives.componentsV2.NavigationBar.header": "This is the NavigationBar component!",
129
133
  "creatives.componentsV2.NavigationBar.insights": "Insights+",
130
134
  "creatives.componentsV2.NavigationBar.logout": "Logout",
135
+ "creatives.componentsV2.NavigationBar.loyaltyProgram": "Loyalty+",
136
+ "creatives.componentsV2.NavigationBar.memberCare": "Member Care",
131
137
  "creatives.componentsV2.NavigationBar.orgSettings": "Organisation settings",
132
138
  "creatives.componentsV2.NavigationBar.selectedProductDefault": "Engage+",
139
+ "creatives.componentsV2.NavigationBar.storeCare": "Store Care",
140
+ "creatives.componentsV2.NavigationBar.storePerformance": "Store Performance",
141
+ "creatives.componentsV2.NavigationBar.wecrm": "Wecrm",
133
142
  "creatives.componentsV2.NewCallTask.callTaskTitle": "Call Task title",
134
143
  "creatives.componentsV2.NewCallTask.description": "Description",
135
144
  "creatives.componentsV2.NewCallTask.done": "Done",
@@ -300,6 +309,8 @@
300
309
  "creatives.containers.Email.Create.creatives": "Creatives",
301
310
  "creatives.containers.Email.Create.descriptionEmail": "Description of Email",
302
311
  "creatives.containers.Email.Create.goBackConfirmation": "Going back will discard all the changes you've made. Continue?",
312
+ "creatives.containers.Email.Create.h3emailPreview": "Email preview",
313
+ "creatives.containers.Email.Create.h3imageSelection": "Image selection",
303
314
  "creatives.containers.Email.Create.invalidFileMessage": "Invalid file type added! Please Give a proper zip/html file",
304
315
  "creatives.containers.Email.Create.newVersion": "New Version",
305
316
  "creatives.containers.Email.Create.uploadFile": "Upload File",
@@ -905,6 +916,7 @@
905
916
  "creatives.containersV2.Email.Save": "Save",
906
917
  "creatives.containersV2.Email.Subject": "Subject",
907
918
  "creatives.containersV2.Email.Tags": "Tags",
919
+ "creatives.containersV2.Email.addLabel": "Add label",
908
920
  "creatives.containersV2.Email.alert": "Alert",
909
921
  "creatives.containersV2.Email.alertMessage": "Alert",
910
922
  "creatives.containersV2.Email.alphabetically": "Alphabetically",
@@ -930,7 +942,10 @@
930
942
  "creatives.containersV2.Email.emailSubject": "Enter email subject",
931
943
  "creatives.containersV2.Email.emailSubjectNotEmplty": "Email subject cannot be empty.",
932
944
  "creatives.containersV2.Email.emailText": "Email",
945
+ "creatives.containersV2.Email.english": "English",
933
946
  "creatives.containersV2.Email.goBackTemporaryChangesLost": "Do you really want to go back? All your temporary changes will be lost!",
947
+ "creatives.containersV2.Email.h3emailPreview": "Email preview",
948
+ "creatives.containersV2.Email.h3imageSelection": "Image selection",
934
949
  "creatives.containersV2.Email.imageSelection": "Image selection",
935
950
  "creatives.containersV2.Email.invalidFileMessage": "Invalid file type added! Please Give a proper zip/html file",
936
951
  "creatives.containersV2.Email.kmage": "Image",
@@ -1082,6 +1097,7 @@
1082
1097
  "creatives.containersV2.MobilePush.Create.button2": "Button 2",
1083
1098
  "creatives.containersV2.MobilePush.Create.cancel": "Cancel",
1084
1099
  "creatives.containersV2.MobilePush.Create.cantCopyEmptyFieldValues": "Cannot copy empty field values.",
1100
+ "creatives.containersV2.MobilePush.Create.change": "change",
1085
1101
  "creatives.containersV2.MobilePush.Create.copyFromAndroid": "Copy title and content from android",
1086
1102
  "creatives.containersV2.MobilePush.Create.copyFromIos": "Copy title and content from IOS",
1087
1103
  "creatives.containersV2.MobilePush.Create.ctaLabelCantEmpty": "CTA label cannot be empty.",
@@ -1153,6 +1169,7 @@
1153
1169
  "creatives.containersV2.MobilePush.Edit.button2": "Button 2",
1154
1170
  "creatives.containersV2.MobilePush.Edit.cancel": "Cancel",
1155
1171
  "creatives.containersV2.MobilePush.Edit.cantCopyEmptyFieldValues": "Cannot copy empty field values.",
1172
+ "creatives.containersV2.MobilePush.Edit.change": "change",
1156
1173
  "creatives.containersV2.MobilePush.Edit.copyFromAndroid": "Copy title and content from android",
1157
1174
  "creatives.containersV2.MobilePush.Edit.copyFromIos": "Copy title and content from IOS",
1158
1175
  "creatives.containersV2.MobilePush.Edit.ctaLabelCantEmpty": "CTA label cannot be empty.",
@@ -1344,66 +1361,66 @@
1344
1361
  "creatives.containersV2.campaignsDashboard": "Campaigns",
1345
1362
  "creatives.containersV2.campaignsHome": "Campaigns Home",
1346
1363
  "creatives.containersV2.incentive": "Incentive",
1347
- "creatives.containersV2.richMedia.create.Anyone": "Anyone",
1348
- "creatives.containersV2.richMedia.create.Author": "Author",
1349
- "creatives.containersV2.richMedia.create.Content": "Content",
1350
- "creatives.containersV2.richMedia.create.Cover_abstract": "Cover abstract",
1351
- "creatives.containersV2.richMedia.create.Cover_image": "Cover image",
1352
- "creatives.containersV2.richMedia.create.No_one": "No one",
1353
- "creatives.containersV2.richMedia.create.Only_followers": "Only followers",
1354
- "creatives.containersV2.richMedia.create.Please_input_author": "Please input author",
1355
- "creatives.containersV2.richMedia.create.Please_input_content": "Please input content",
1356
- "creatives.containersV2.richMedia.create.Please_input_cover_abstract": "Please input cover abstract",
1357
- "creatives.containersV2.richMedia.create.Please_input_title": "Please input title",
1358
- "creatives.containersV2.richMedia.create.Show_cover_picture": "Show cover picture",
1359
- "creatives.containersV2.richMedia.create.Title": "Title",
1360
- "creatives.containersV2.richMedia.create.Who_can_post_comments_on_this_content": "Who can post comments on this content",
1361
- "creatives.containersV2.richMedia.create.addNewRichmedia": "Add richmedia content",
1362
- "creatives.containersV2.richMedia.create.addRichMediaContent": "Add rich media content",
1363
- "creatives.containersV2.richMedia.create.articleContent": "Article content",
1364
- "creatives.containersV2.richMedia.create.authorCharacterCount": "Author exceeds character count limit by",
1365
- "creatives.containersV2.richMedia.create.authorInductiveText": "Brand/name that your customer will recognise",
1366
- "creatives.containersV2.richMedia.create.contentEmpty": "Cannot leave content field empty",
1367
- "creatives.containersV2.richMedia.create.coverAbstractCharacterCount": "Cover abstract exceeds character count limit by",
1368
- "creatives.containersV2.richMedia.create.coverAbstractInductive": "A short description help customers learn more",
1369
- "creatives.containersV2.richMedia.create.coverImageTitle": "The relevant image that complements title.",
1370
- "creatives.containersV2.richMedia.create.delete": "delete",
1371
- "creatives.containersV2.richMedia.create.deleteContent": "Do you really want to delete? All your temporary changes will be lost!",
1372
- "creatives.containersV2.richMedia.create.emptyTemplateName": "Cannot leave template name empty",
1373
- "creatives.containersV2.richMedia.create.fileContentFailed": "Failed to get File content",
1374
- "creatives.containersV2.richMedia.create.formEmpty": "Cannot leave form empty",
1375
- "creatives.containersV2.richMedia.create.header": "This is Create container !",
1376
- "creatives.containersV2.richMedia.create.insertImage": "Insert Image",
1377
- "creatives.containersV2.richMedia.create.linkInductiveText": "Link to help customers discover more about the brand.",
1378
- "creatives.containersV2.richMedia.create.maxContentCount": "You have reached the maximum template size",
1379
- "creatives.containersV2.richMedia.create.modalBody": "Do you really want to go back? All your temporary changes will be lost!",
1380
- "creatives.containersV2.richMedia.create.modalTitle": "Alert",
1381
- "creatives.containersV2.richMedia.create.nameOfTemplate": "Name of the template",
1382
- "creatives.containersV2.richMedia.create.newMedia": "New media",
1383
- "creatives.containersV2.richMedia.create.noImage": "Please upload an image",
1384
- "creatives.containersV2.richMedia.create.payloadMissing": "Please provide payload to create wechat template",
1385
- "creatives.containersV2.richMedia.create.readMoreLink": "Read more link",
1386
- "creatives.containersV2.richMedia.create.requiredField": "This field is required!",
1387
- "creatives.containersV2.richMedia.create.resolutionText": "Resolution 360 x 200",
1388
- "creatives.containersV2.richMedia.create.sameTemplateExists": "Template with the same name exists",
1389
- "creatives.containersV2.richMedia.create.saveSuccess": "Template saved successfully",
1390
- "creatives.containersV2.richMedia.create.somethingWentWrong": "Something went wrong!!",
1391
- "creatives.containersV2.richMedia.create.sourceIdentMissing": "Please provide source account identifier",
1392
- "creatives.containersV2.richMedia.create.sourceLinkEmpty": "Cannot leave source link field empty",
1393
- "creatives.containersV2.richMedia.create.sufficientParam": "Please provide sufficient params to create richmedia wechat template",
1394
- "creatives.containersV2.richMedia.create.sufficientPayload": "Please provide sufficient parameters to generate richmedia message payload",
1395
- "creatives.containersV2.richMedia.create.templateNameBlank": "Template name cannot be blank",
1396
- "creatives.containersV2.richMedia.create.templateNameContainsWS": "Template name contains only whitespaces",
1397
- "creatives.containersV2.richMedia.create.templateNameExists": "Template with the same name exists. Please try another template name.",
1398
- "creatives.containersV2.richMedia.create.titleCharacterCount": "Title exceeds character count limit by",
1399
- "creatives.containersV2.richMedia.create.titleEmpty": "Cannot leave title field empty",
1400
- "creatives.containersV2.richMedia.create.titleInductiveText": "Write a brief headline to draw customer's attention",
1401
- "creatives.containersV2.richMedia.create.titleNameRepeated": "Title name cannot be repeated",
1402
- "creatives.containersV2.richMedia.create.uploadFailed": "Upload has failed",
1403
- "creatives.containersV2.richMedia.create.uploadImage": "Upload Image",
1404
- "creatives.containersV2.richMedia.create.visibility": "visibility",
1405
- "creatives.containersV2.richMedia.create.wrongFormatFile": "Wrong file upoaded. Please upload image file",
1406
- "creatives.containersV2.richMedia.create.wrongUrl": "Enter correct URL",
1364
+ "creatives.containersV2.richMedia.Create.Anyone": "Anyone",
1365
+ "creatives.containersV2.richMedia.Create.Author": "Author",
1366
+ "creatives.containersV2.richMedia.Create.Content": "Content",
1367
+ "creatives.containersV2.richMedia.Create.Cover_abstract": "Cover abstract",
1368
+ "creatives.containersV2.richMedia.Create.Cover_image": "Cover image",
1369
+ "creatives.containersV2.richMedia.Create.No_one": "No one",
1370
+ "creatives.containersV2.richMedia.Create.Only_followers": "Only followers",
1371
+ "creatives.containersV2.richMedia.Create.Please_input_author": "Please input author",
1372
+ "creatives.containersV2.richMedia.Create.Please_input_content": "Please input content",
1373
+ "creatives.containersV2.richMedia.Create.Please_input_cover_abstract": "Please input cover abstract",
1374
+ "creatives.containersV2.richMedia.Create.Please_input_title": "Please input title",
1375
+ "creatives.containersV2.richMedia.Create.Show_cover_picture": "Show cover picture",
1376
+ "creatives.containersV2.richMedia.Create.Title": "Title",
1377
+ "creatives.containersV2.richMedia.Create.Who_can_post_comments_on_this_content": "Who can post comments on this content",
1378
+ "creatives.containersV2.richMedia.Create.addNewRichmedia": "Add richmedia content",
1379
+ "creatives.containersV2.richMedia.Create.addRichMediaContent": "Add rich media content",
1380
+ "creatives.containersV2.richMedia.Create.articleContent": "Article content",
1381
+ "creatives.containersV2.richMedia.Create.authorCharacterCount": "Author exceeds character count limit by",
1382
+ "creatives.containersV2.richMedia.Create.authorInductiveText": "Brand/name that your customer will recognise",
1383
+ "creatives.containersV2.richMedia.Create.contentEmpty": "Cannot leave content field empty",
1384
+ "creatives.containersV2.richMedia.Create.coverAbstractCharacterCount": "Cover abstract exceeds character count limit by",
1385
+ "creatives.containersV2.richMedia.Create.coverAbstractInductive": "A short description help customers learn more",
1386
+ "creatives.containersV2.richMedia.Create.coverImageTitle": "The relevant image that complements title.",
1387
+ "creatives.containersV2.richMedia.Create.delete": "delete",
1388
+ "creatives.containersV2.richMedia.Create.deleteContent": "Do you really want to delete? All your temporary changes will be lost!",
1389
+ "creatives.containersV2.richMedia.Create.emptyTemplateName": "Cannot leave template name empty",
1390
+ "creatives.containersV2.richMedia.Create.fileContentFailed": "Failed to get File content",
1391
+ "creatives.containersV2.richMedia.Create.formEmpty": "Cannot leave form empty",
1392
+ "creatives.containersV2.richMedia.Create.header": "This is Create container !",
1393
+ "creatives.containersV2.richMedia.Create.insertImage": "Insert Image",
1394
+ "creatives.containersV2.richMedia.Create.linkInductiveText": "Link to help customers discover more about the brand.",
1395
+ "creatives.containersV2.richMedia.Create.maxContentCount": "You have reached the maximum template size",
1396
+ "creatives.containersV2.richMedia.Create.modalBody": "Do you really want to go back? All your temporary changes will be lost!",
1397
+ "creatives.containersV2.richMedia.Create.modalTitle": "Alert",
1398
+ "creatives.containersV2.richMedia.Create.nameOfTemplate": "Name of the template",
1399
+ "creatives.containersV2.richMedia.Create.newMedia": "New media",
1400
+ "creatives.containersV2.richMedia.Create.noImage": "Please upload an image",
1401
+ "creatives.containersV2.richMedia.Create.payloadMissing": "Please provide payload to create wechat template",
1402
+ "creatives.containersV2.richMedia.Create.readMoreLink": "Read more link",
1403
+ "creatives.containersV2.richMedia.Create.requiredField": "This field is required!",
1404
+ "creatives.containersV2.richMedia.Create.resolutionText": "Resolution 360 x 200",
1405
+ "creatives.containersV2.richMedia.Create.sameTemplateExists": "Template with the same name exists",
1406
+ "creatives.containersV2.richMedia.Create.saveSuccess": "Template saved successfully",
1407
+ "creatives.containersV2.richMedia.Create.somethingWentWrong": "Something went wrong!!",
1408
+ "creatives.containersV2.richMedia.Create.sourceIdentMissing": "Please provide source account identifier",
1409
+ "creatives.containersV2.richMedia.Create.sourceLinkEmpty": "Cannot leave source link field empty",
1410
+ "creatives.containersV2.richMedia.Create.sufficientParam": "Please provide sufficient params to create richmedia wechat template",
1411
+ "creatives.containersV2.richMedia.Create.sufficientPayload": "Please provide sufficient parameters to generate richmedia message payload",
1412
+ "creatives.containersV2.richMedia.Create.templateNameBlank": "Template name cannot be blank",
1413
+ "creatives.containersV2.richMedia.Create.templateNameContainsWS": "Template name contains only whitespaces",
1414
+ "creatives.containersV2.richMedia.Create.templateNameExists": "Template with the same name exists. Please try another template name.",
1415
+ "creatives.containersV2.richMedia.Create.titleCharacterCount": "Title exceeds character count limit by",
1416
+ "creatives.containersV2.richMedia.Create.titleEmpty": "Cannot leave title field empty",
1417
+ "creatives.containersV2.richMedia.Create.titleInductiveText": "Write a brief headline to draw customer's attention",
1418
+ "creatives.containersV2.richMedia.Create.titleNameRepeated": "Title name cannot be repeated",
1419
+ "creatives.containersV2.richMedia.Create.uploadFailed": "Upload has failed",
1420
+ "creatives.containersV2.richMedia.Create.uploadImage": "Upload Image",
1421
+ "creatives.containersV2.richMedia.Create.visibility": "visibility",
1422
+ "creatives.containersV2.richMedia.Create.wrongFormatFile": "Wrong file upoaded. Please upload image file",
1423
+ "creatives.containersV2.richMedia.Create.wrongUrl": "Enter correct URL",
1407
1424
  "customdatepicker.cancel": "Cancel",
1408
1425
  "customdatepicker.done": "Done",
1409
1426
  "reon.components.Cap.Workbench": "WorkBench",
@@ -70,6 +70,8 @@
70
70
  "creatives.components.ToastrMessage.close": "",
71
71
  "creatives.components.ToastrMessage.header": "",
72
72
  "creatives.components.TopBar.brand.dropdown": "",
73
+ "creatives.components.TopBar.brand.noResultText": "",
74
+ "creatives.components.TopBar.brand.organization": "",
73
75
  "creatives.components.WechatRichmediaTemplatePreview.edit": "",
74
76
  "creatives.components.WechatRichmediaTemplatePreview.header": "",
75
77
  "creatives.components.WechatRichmediaTemplatePreview.select": "",
@@ -125,11 +127,18 @@
125
127
  "creatives.componentsV2.Header.save": "",
126
128
  "creatives.componentsV2.ImagePreview.close": "",
127
129
  "creatives.componentsV2.ImagePreview.loadingImage": "",
130
+ "creatives.componentsV2.NavigationBar.businessProcesses": "",
131
+ "creatives.componentsV2.NavigationBar.campaign": "",
128
132
  "creatives.componentsV2.NavigationBar.header": "",
129
133
  "creatives.componentsV2.NavigationBar.insights": "",
130
134
  "creatives.componentsV2.NavigationBar.logout": "",
135
+ "creatives.componentsV2.NavigationBar.loyaltyProgram": "",
136
+ "creatives.componentsV2.NavigationBar.memberCare": "",
131
137
  "creatives.componentsV2.NavigationBar.orgSettings": "",
132
138
  "creatives.componentsV2.NavigationBar.selectedProductDefault": "",
139
+ "creatives.componentsV2.NavigationBar.storeCare": "",
140
+ "creatives.componentsV2.NavigationBar.storePerformance": "",
141
+ "creatives.componentsV2.NavigationBar.wecrm": "",
133
142
  "creatives.componentsV2.NewCallTask.callTaskTitle": "",
134
143
  "creatives.componentsV2.NewCallTask.description": "",
135
144
  "creatives.componentsV2.NewCallTask.done": "",
@@ -300,6 +309,8 @@
300
309
  "creatives.containers.Email.Create.creatives": "",
301
310
  "creatives.containers.Email.Create.descriptionEmail": "",
302
311
  "creatives.containers.Email.Create.goBackConfirmation": "",
312
+ "creatives.containers.Email.Create.h3emailPreview": "",
313
+ "creatives.containers.Email.Create.h3imageSelection": "",
303
314
  "creatives.containers.Email.Create.invalidFileMessage": "",
304
315
  "creatives.containers.Email.Create.newVersion": "",
305
316
  "creatives.containers.Email.Create.uploadFile": "",
@@ -905,6 +916,7 @@
905
916
  "creatives.containersV2.Email.Save": "",
906
917
  "creatives.containersV2.Email.Subject": "",
907
918
  "creatives.containersV2.Email.Tags": "",
919
+ "creatives.containersV2.Email.addLabel": "",
908
920
  "creatives.containersV2.Email.alert": "",
909
921
  "creatives.containersV2.Email.alertMessage": "",
910
922
  "creatives.containersV2.Email.alphabetically": "",
@@ -930,7 +942,10 @@
930
942
  "creatives.containersV2.Email.emailSubject": "",
931
943
  "creatives.containersV2.Email.emailSubjectNotEmplty": "",
932
944
  "creatives.containersV2.Email.emailText": "",
945
+ "creatives.containersV2.Email.english": "",
933
946
  "creatives.containersV2.Email.goBackTemporaryChangesLost": "",
947
+ "creatives.containersV2.Email.h3emailPreview": "",
948
+ "creatives.containersV2.Email.h3imageSelection": "",
934
949
  "creatives.containersV2.Email.imageSelection": "",
935
950
  "creatives.containersV2.Email.invalidFileMessage": "",
936
951
  "creatives.containersV2.Email.kmage": "",
@@ -1082,6 +1097,7 @@
1082
1097
  "creatives.containersV2.MobilePush.Create.button2": "",
1083
1098
  "creatives.containersV2.MobilePush.Create.cancel": "",
1084
1099
  "creatives.containersV2.MobilePush.Create.cantCopyEmptyFieldValues": "",
1100
+ "creatives.containersV2.MobilePush.Create.change": "",
1085
1101
  "creatives.containersV2.MobilePush.Create.copyFromAndroid": "",
1086
1102
  "creatives.containersV2.MobilePush.Create.copyFromIos": "",
1087
1103
  "creatives.containersV2.MobilePush.Create.ctaLabelCantEmpty": "",
@@ -1153,6 +1169,7 @@
1153
1169
  "creatives.containersV2.MobilePush.Edit.button2": "",
1154
1170
  "creatives.containersV2.MobilePush.Edit.cancel": "",
1155
1171
  "creatives.containersV2.MobilePush.Edit.cantCopyEmptyFieldValues": "",
1172
+ "creatives.containersV2.MobilePush.Edit.change": "",
1156
1173
  "creatives.containersV2.MobilePush.Edit.copyFromAndroid": "",
1157
1174
  "creatives.containersV2.MobilePush.Edit.copyFromIos": "",
1158
1175
  "creatives.containersV2.MobilePush.Edit.ctaLabelCantEmpty": "",
@@ -1344,66 +1361,66 @@
1344
1361
  "creatives.containersV2.campaignsDashboard": "",
1345
1362
  "creatives.containersV2.campaignsHome": "",
1346
1363
  "creatives.containersV2.incentive": "",
1347
- "creatives.containersV2.richMedia.create.Anyone": "",
1348
- "creatives.containersV2.richMedia.create.Author": "",
1349
- "creatives.containersV2.richMedia.create.Content": "",
1350
- "creatives.containersV2.richMedia.create.Cover_abstract": "",
1351
- "creatives.containersV2.richMedia.create.Cover_image": "",
1352
- "creatives.containersV2.richMedia.create.No_one": "",
1353
- "creatives.containersV2.richMedia.create.Only_followers": "",
1354
- "creatives.containersV2.richMedia.create.Please_input_author": "",
1355
- "creatives.containersV2.richMedia.create.Please_input_content": "",
1356
- "creatives.containersV2.richMedia.create.Please_input_cover_abstract": "",
1357
- "creatives.containersV2.richMedia.create.Please_input_title": "",
1358
- "creatives.containersV2.richMedia.create.Show_cover_picture": "",
1359
- "creatives.containersV2.richMedia.create.Title": "",
1360
- "creatives.containersV2.richMedia.create.Who_can_post_comments_on_this_content": "",
1361
- "creatives.containersV2.richMedia.create.addNewRichmedia": "",
1362
- "creatives.containersV2.richMedia.create.addRichMediaContent": "",
1363
- "creatives.containersV2.richMedia.create.articleContent": "",
1364
- "creatives.containersV2.richMedia.create.authorCharacterCount": "",
1365
- "creatives.containersV2.richMedia.create.authorInductiveText": "",
1366
- "creatives.containersV2.richMedia.create.contentEmpty": "",
1367
- "creatives.containersV2.richMedia.create.coverAbstractCharacterCount": "",
1368
- "creatives.containersV2.richMedia.create.coverAbstractInductive": "",
1369
- "creatives.containersV2.richMedia.create.coverImageTitle": "",
1370
- "creatives.containersV2.richMedia.create.delete": "",
1371
- "creatives.containersV2.richMedia.create.deleteContent": "",
1372
- "creatives.containersV2.richMedia.create.emptyTemplateName": "",
1373
- "creatives.containersV2.richMedia.create.fileContentFailed": "",
1374
- "creatives.containersV2.richMedia.create.formEmpty": "",
1375
- "creatives.containersV2.richMedia.create.header": "",
1376
- "creatives.containersV2.richMedia.create.insertImage": "",
1377
- "creatives.containersV2.richMedia.create.linkInductiveText": "",
1378
- "creatives.containersV2.richMedia.create.maxContentCount": "",
1379
- "creatives.containersV2.richMedia.create.modalBody": "",
1380
- "creatives.containersV2.richMedia.create.modalTitle": "",
1381
- "creatives.containersV2.richMedia.create.nameOfTemplate": "",
1382
- "creatives.containersV2.richMedia.create.newMedia": "",
1383
- "creatives.containersV2.richMedia.create.noImage": "",
1384
- "creatives.containersV2.richMedia.create.payloadMissing": "",
1385
- "creatives.containersV2.richMedia.create.readMoreLink": "",
1386
- "creatives.containersV2.richMedia.create.requiredField": "",
1387
- "creatives.containersV2.richMedia.create.resolutionText": "",
1388
- "creatives.containersV2.richMedia.create.sameTemplateExists": "",
1389
- "creatives.containersV2.richMedia.create.saveSuccess": "",
1390
- "creatives.containersV2.richMedia.create.somethingWentWrong": "",
1391
- "creatives.containersV2.richMedia.create.sourceIdentMissing": "",
1392
- "creatives.containersV2.richMedia.create.sourceLinkEmpty": "",
1393
- "creatives.containersV2.richMedia.create.sufficientParam": "",
1394
- "creatives.containersV2.richMedia.create.sufficientPayload": "",
1395
- "creatives.containersV2.richMedia.create.templateNameBlank": "",
1396
- "creatives.containersV2.richMedia.create.templateNameContainsWS": "",
1397
- "creatives.containersV2.richMedia.create.templateNameExists": "",
1398
- "creatives.containersV2.richMedia.create.titleCharacterCount": "",
1399
- "creatives.containersV2.richMedia.create.titleEmpty": "",
1400
- "creatives.containersV2.richMedia.create.titleInductiveText": "",
1401
- "creatives.containersV2.richMedia.create.titleNameRepeated": "",
1402
- "creatives.containersV2.richMedia.create.uploadFailed": "",
1403
- "creatives.containersV2.richMedia.create.uploadImage": "",
1404
- "creatives.containersV2.richMedia.create.visibility": "",
1405
- "creatives.containersV2.richMedia.create.wrongFormatFile": "",
1406
- "creatives.containersV2.richMedia.create.wrongUrl": "",
1364
+ "creatives.containersV2.richMedia.Create.Anyone": "",
1365
+ "creatives.containersV2.richMedia.Create.Author": "",
1366
+ "creatives.containersV2.richMedia.Create.Content": "",
1367
+ "creatives.containersV2.richMedia.Create.Cover_abstract": "",
1368
+ "creatives.containersV2.richMedia.Create.Cover_image": "",
1369
+ "creatives.containersV2.richMedia.Create.No_one": "",
1370
+ "creatives.containersV2.richMedia.Create.Only_followers": "",
1371
+ "creatives.containersV2.richMedia.Create.Please_input_author": "",
1372
+ "creatives.containersV2.richMedia.Create.Please_input_content": "",
1373
+ "creatives.containersV2.richMedia.Create.Please_input_cover_abstract": "",
1374
+ "creatives.containersV2.richMedia.Create.Please_input_title": "",
1375
+ "creatives.containersV2.richMedia.Create.Show_cover_picture": "",
1376
+ "creatives.containersV2.richMedia.Create.Title": "",
1377
+ "creatives.containersV2.richMedia.Create.Who_can_post_comments_on_this_content": "",
1378
+ "creatives.containersV2.richMedia.Create.addNewRichmedia": "",
1379
+ "creatives.containersV2.richMedia.Create.addRichMediaContent": "",
1380
+ "creatives.containersV2.richMedia.Create.articleContent": "",
1381
+ "creatives.containersV2.richMedia.Create.authorCharacterCount": "",
1382
+ "creatives.containersV2.richMedia.Create.authorInductiveText": "",
1383
+ "creatives.containersV2.richMedia.Create.contentEmpty": "",
1384
+ "creatives.containersV2.richMedia.Create.coverAbstractCharacterCount": "",
1385
+ "creatives.containersV2.richMedia.Create.coverAbstractInductive": "",
1386
+ "creatives.containersV2.richMedia.Create.coverImageTitle": "",
1387
+ "creatives.containersV2.richMedia.Create.delete": "",
1388
+ "creatives.containersV2.richMedia.Create.deleteContent": "",
1389
+ "creatives.containersV2.richMedia.Create.emptyTemplateName": "",
1390
+ "creatives.containersV2.richMedia.Create.fileContentFailed": "",
1391
+ "creatives.containersV2.richMedia.Create.formEmpty": "",
1392
+ "creatives.containersV2.richMedia.Create.header": "",
1393
+ "creatives.containersV2.richMedia.Create.insertImage": "",
1394
+ "creatives.containersV2.richMedia.Create.linkInductiveText": "",
1395
+ "creatives.containersV2.richMedia.Create.maxContentCount": "",
1396
+ "creatives.containersV2.richMedia.Create.modalBody": "",
1397
+ "creatives.containersV2.richMedia.Create.modalTitle": "",
1398
+ "creatives.containersV2.richMedia.Create.nameOfTemplate": "",
1399
+ "creatives.containersV2.richMedia.Create.newMedia": "",
1400
+ "creatives.containersV2.richMedia.Create.noImage": "",
1401
+ "creatives.containersV2.richMedia.Create.payloadMissing": "",
1402
+ "creatives.containersV2.richMedia.Create.readMoreLink": "",
1403
+ "creatives.containersV2.richMedia.Create.requiredField": "",
1404
+ "creatives.containersV2.richMedia.Create.resolutionText": "",
1405
+ "creatives.containersV2.richMedia.Create.sameTemplateExists": "",
1406
+ "creatives.containersV2.richMedia.Create.saveSuccess": "",
1407
+ "creatives.containersV2.richMedia.Create.somethingWentWrong": "",
1408
+ "creatives.containersV2.richMedia.Create.sourceIdentMissing": "",
1409
+ "creatives.containersV2.richMedia.Create.sourceLinkEmpty": "",
1410
+ "creatives.containersV2.richMedia.Create.sufficientParam": "",
1411
+ "creatives.containersV2.richMedia.Create.sufficientPayload": "",
1412
+ "creatives.containersV2.richMedia.Create.templateNameBlank": "",
1413
+ "creatives.containersV2.richMedia.Create.templateNameContainsWS": "",
1414
+ "creatives.containersV2.richMedia.Create.templateNameExists": "",
1415
+ "creatives.containersV2.richMedia.Create.titleCharacterCount": "",
1416
+ "creatives.containersV2.richMedia.Create.titleEmpty": "",
1417
+ "creatives.containersV2.richMedia.Create.titleInductiveText": "",
1418
+ "creatives.containersV2.richMedia.Create.titleNameRepeated": "",
1419
+ "creatives.containersV2.richMedia.Create.uploadFailed": "",
1420
+ "creatives.containersV2.richMedia.Create.uploadImage": "",
1421
+ "creatives.containersV2.richMedia.Create.visibility": "",
1422
+ "creatives.containersV2.richMedia.Create.wrongFormatFile": "",
1423
+ "creatives.containersV2.richMedia.Create.wrongUrl": "",
1407
1424
  "customdatepicker.cancel": "",
1408
1425
  "customdatepicker.done": "",
1409
1426
  "reon.components.Cap.Workbench": "",
@@ -7,7 +7,7 @@
7
7
  import React from 'react';
8
8
  import PropTypes from 'prop-types';
9
9
  import styled from 'styled-components';
10
- import { isEmpty, forEach, find } from 'lodash';
10
+ import { isEmpty, forEach } from 'lodash';
11
11
  import { loadItem } from 'services/localStorageApi';
12
12
  import { intlShape, injectIntl } from 'react-intl';
13
13
  import TopBar from '../TopBar';
@@ -74,10 +74,7 @@ class NavigationBar extends React.Component {
74
74
  if (!isEmpty(orgList)) {
75
75
  forEach(orgList, (item) => {
76
76
  const id = item.orgID;
77
- let name = item.orgName;
78
- if (id === 486) {
79
- name = 'Demo Org';
80
- }
77
+ const name = item.orgName;
81
78
  if (id !== defaultOrgId) {
82
79
  proxyOrgList.push({ label: name, value: id, key: id });
83
80
  }
@@ -89,14 +86,16 @@ class NavigationBar extends React.Component {
89
86
 
90
87
  getProductsList = () => {
91
88
  const { formatMessage } = this.props.intl;
92
- const { campaignOrgV2Status } = this.props;
93
89
  const { currentOrgDetails } = this.props.userData;
94
90
  const productsList = [];
95
91
  if (!isEmpty(currentOrgDetails)) {
96
92
  forEach(currentOrgDetails.module_details, (module) => {
97
93
  if (module.name.toLowerCase() !== PRODUCT_MASTERS) {
94
+ const productName = module.code;
95
+ const intlProductName = messages[productName];
96
+ const moduleName = intlProductName ? formatMessage(intlProductName) : module.name.toLowerCase();
98
97
  productsList.push({
99
- value: module.name.toLowerCase(),
98
+ value: moduleName,
100
99
  url: module.url,
101
100
  key: module.code,
102
101
  });
@@ -104,10 +103,6 @@ class NavigationBar extends React.Component {
104
103
  });
105
104
  //below changes are temporary and should be fixed once we get correct modules list
106
105
  //changing campaigns module name to engage+
107
- if ( !campaignOrgV2Status ) {
108
- const campaignsModule = find(productsList, ['value', 'campaigns']);
109
- campaignsModule.value = 'Engage+';
110
- }
111
106
  //adding insights+ to module list
112
107
  productsList.push({
113
108
  value: formatMessage(messages.insights),
@@ -202,11 +197,11 @@ class NavigationBar extends React.Component {
202
197
  {...customTopBarProps}
203
198
  />
204
199
  }
205
- <CapWrapper isEmbedded={type === EMBEDDED}>
206
- <ComponentWrapper>
207
- {React.Children.toArray(this.props.children)}
208
- </ComponentWrapper>
209
- </CapWrapper>
200
+ <CapWrapper isEmbedded={type === EMBEDDED}>
201
+ <ComponentWrapper>
202
+ {React.Children.toArray(this.props.children)}
203
+ </ComponentWrapper>
204
+ </CapWrapper>
210
205
  </div>
211
206
  );
212
207
  }
@@ -225,7 +220,6 @@ NavigationBar.propTypes = {
225
220
  intl: intlShape.isRequired,
226
221
  location: PropTypes.object,
227
222
  type: PropTypes.string,
228
- campaignOrgV2Status: PropTypes.bool,
229
223
  };
230
224
 
231
225
  export default injectIntl(NavigationBar);
@@ -29,4 +29,32 @@ export default defineMessages({
29
29
  id: `${scope}.logout`,
30
30
  defaultMessage: 'Logout',
31
31
  },
32
+ businessProcesses: {
33
+ id: `${scope}.businessProcesses`,
34
+ defaultMessage: 'Workbench',
35
+ },
36
+ campaign: {
37
+ id: `${scope}.campaign`,
38
+ defaultMessage: 'Engage+',
39
+ },
40
+ wecrm: {
41
+ id: `${scope}.wecrm`,
42
+ defaultMessage: 'Wecrm',
43
+ },
44
+ loyaltyProgram: {
45
+ id: `${scope}.loyaltyProgram`,
46
+ defaultMessage: 'Loyalty+',
47
+ },
48
+ storePerformance: {
49
+ id: `${scope}.storePerformance`,
50
+ defaultMessage: 'Store Performance',
51
+ },
52
+ memberCare: {
53
+ id: `${scope}.memberCare`,
54
+ defaultMessage: 'Member Care',
55
+ },
56
+ storeCare: {
57
+ id: `${scope}.storeCare`,
58
+ defaultMessage: 'Store Care',
59
+ },
32
60
  });
@@ -43,6 +43,9 @@ const TopBar = (props) => {
43
43
  selectPlaceholder: intl.formatMessage(messages.selectOrganization),
44
44
  showSearch: true,
45
45
  showHeader: true,
46
+ title: intl.formatMessage(messages.selectOrganization),
47
+ placeholder: intl.formatMessage(messages.organization),
48
+ noResultText: intl.formatMessage(messages.noResultText),
46
49
  }}
47
50
  menuProps={{
48
51
  items: topbarMenuData,
@@ -34,4 +34,12 @@ export default defineMessages({
34
34
  id: 'creatives.componentsV2.TopBar.brand.selectProduct',
35
35
  defaultMessage: 'Select product',
36
36
  },
37
+ organization: {
38
+ id: 'creatives.components.TopBar.brand.organization',
39
+ defaultMessage: 'Organization',
40
+ },
41
+ noResultText: {
42
+ id: 'creatives.components.TopBar.brand.noResultText',
43
+ defaultMessage: 'No results found',
44
+ },
37
45
  });
@@ -120,15 +120,18 @@ export class Gallery extends React.Component { // eslint-disable-line react/pref
120
120
  getAllAssets = ({params, getNextPage, resetPage}, isReRender = false) => {
121
121
  let queryParams = params;
122
122
  let page = this.state.page;
123
+ let shouldFetchGalleryAssets = false;
123
124
  if (!this.props.Gallery.fetchingAllAssets && ((resetPage || (page === 1 && this.state.totalCount === 0) || page <= (this.state.totalCount / this.state.perPageLimit)) || isReRender )) {
124
125
  if (getNextPage) {
125
126
  page += 1;
127
+ shouldFetchGalleryAssets = true;
126
128
  }
127
129
 
128
130
  let totalCount = this.state.totalCount;
129
131
  if (resetPage) {
130
132
  page = 1;
131
133
  totalCount = 0;
134
+ shouldFetchGalleryAssets = true;
132
135
  }
133
136
  if ((!params || _.isEmpty(params))) {
134
137
  queryParams = {
@@ -137,12 +140,15 @@ export class Gallery extends React.Component { // eslint-disable-line react/pref
137
140
  }
138
141
  if (this.state.searchText !== "") {
139
142
  queryParams = {...queryParams, name: this.state.searchText};
143
+ shouldFetchGalleryAssets = true;
144
+ }
145
+ if (!this.props.Gallery.fetchingAllAssets && (_.isEmpty(this.props.Gallery.assetList) || shouldFetchGalleryAssets)) {
146
+ this.setState({page, totalCount}, () => {
147
+ queryParams.page = page;
148
+ queryParams.perPage = this.state.perPageLimit;
149
+ this.props.actions.getAllAssets('image', queryParams);
150
+ });
140
151
  }
141
- this.setState({page, totalCount}, () => {
142
- queryParams.page = page;
143
- queryParams.perPage = this.state.perPageLimit;
144
- this.props.actions.getAllAssets('image', queryParams);
145
- });
146
152
  }
147
153
  };
148
154
  handleGallery = (e) => {
@@ -74,7 +74,6 @@ export class Cap extends React.Component { // eslint-disable-line react/prefer-s
74
74
  //locale = 'zh';
75
75
  console.log('Setting final locale as', locale);
76
76
  moment.locale(locale);
77
- this.props.locationActions.changeLocale(locale);
78
77
  }
79
78
 
80
79
  componentWillReceiveProps(nextProps) {
@@ -286,4 +286,12 @@ export default defineMessages({
286
286
  id: 'creatives.containersV2.Email.h3imageSelection',
287
287
  defaultMessage: 'Image selection',
288
288
  },
289
+ "English": {
290
+ id: 'creatives.containersV2.Email.english',
291
+ defaultMessage: 'English',
292
+ },
293
+ "Add label": {
294
+ id: 'creatives.containersV2.Email.addLabel',
295
+ defaultMessage: 'Add label',
296
+ },
289
297
  });