@capillarytech/creatives-library 6.12.22 → 6.13.0
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/config/app.js +1 -1
- package/package.json +1 -1
- package/services/api.js +3 -2
- package/translations/en.json +50 -107
- package/translations/zh.json +50 -107
- package/v2Components/FormBuilder/index.js +8 -0
- package/v2Containers/CreativesContainer/SlideBoxContent.js +2 -6
- package/v2Containers/CreativesContainer/index.js +9 -6
- package/v2Containers/Email/actions.js +1 -2
- package/v2Containers/Email/index.js +47 -70
- package/v2Containers/Email/sagas.js +2 -2
- package/v2Containers/EmailWrapper/index.js +0 -2
- package/v2Containers/TemplatesV2/index.js +6 -5
package/config/app.js
CHANGED
|
@@ -14,7 +14,7 @@ const config = {
|
|
|
14
14
|
accountConfig: (strs, accountId) => `${window.location.origin}/org/config/AccountAdd?q=a&channelId=2&accountId=${accountId}&edit=1`,
|
|
15
15
|
},
|
|
16
16
|
development: {
|
|
17
|
-
api_endpoint: '
|
|
17
|
+
api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/creatives',
|
|
18
18
|
campaigns_api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/campaigns',
|
|
19
19
|
auth_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/auth',
|
|
20
20
|
arya_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1',
|
package/package.json
CHANGED
package/services/api.js
CHANGED
|
@@ -319,11 +319,12 @@ export const getCmsTemplateSettings = (cmsType, projectId, cmsMode, langId, isEd
|
|
|
319
319
|
return API.get(url);
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
-
export const getCmsTemplateSettingsV2 = (cmsType, projectId, cmsMode, langId, isEdmSupport
|
|
323
|
-
const url = `${API_ENDPOINT}/cms/v2/getDetails/?type=${cmsType}&projectId=${projectId}&cmsMode=${cmsMode}&langId=${langId}&isEdmSupport=${isEdmSupport ? 1 : 0}
|
|
322
|
+
export const getCmsTemplateSettingsV2 = (cmsType, projectId, cmsMode, langId, isEdmSupport) => {
|
|
323
|
+
const url = `${API_ENDPOINT}/cms/v2/getDetails/?type=${cmsType}&projectId=${projectId}&cmsMode=${cmsMode}&langId=${langId}&isEdmSupport=${isEdmSupport ? 1 : 0}`;
|
|
324
324
|
return API.get(url);
|
|
325
325
|
};
|
|
326
326
|
|
|
327
|
+
|
|
327
328
|
export const getCmsTemplateData = (cmsType, projectId, langId) => {
|
|
328
329
|
const url = `${API_ENDPOINT}/cms/getContent?type=${cmsType}&projectId=${projectId}&langId=${langId}`;
|
|
329
330
|
return API.get(url);
|
package/translations/en.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"app.components.TemplatePreview.includesOptoutTag": "Includes optout tag",
|
|
3
3
|
"app.components.TemplatePreview.optoutCharactersTotal": "Includes optout tag ({optoutUrlLength} characters)",
|
|
4
|
+
"creatives.components.AccessForbidden.forbiddenDesc": "This page access has not been provided to you.",
|
|
5
|
+
"creatives.components.AccessForbidden.forbiddenHeader": "Access Forbidden",
|
|
4
6
|
"creatives.components.BreadCrumbs.header": "This is the BreadCrumbs component !",
|
|
5
7
|
"creatives.components.CapTagList.Cancel": "Cancel",
|
|
6
8
|
"creatives.components.CapTagList.Ok": "Ok",
|
|
@@ -143,7 +145,7 @@
|
|
|
143
145
|
"creatives.componentsV2.ImagePreview.close": "close",
|
|
144
146
|
"creatives.componentsV2.ImagePreview.loadingImage": "Loading images !!!!",
|
|
145
147
|
"creatives.componentsV2.NavigationBar.businessProcesses": "Workbench",
|
|
146
|
-
"creatives.componentsV2.NavigationBar.
|
|
148
|
+
"creatives.componentsV2.NavigationBar.campaigns/ui/list": "Engage+",
|
|
147
149
|
"creatives.componentsV2.NavigationBar.header": "This is the NavigationBar component!",
|
|
148
150
|
"creatives.componentsV2.NavigationBar.insights": "Insights+",
|
|
149
151
|
"creatives.componentsV2.NavigationBar.logout": "Logout",
|
|
@@ -172,9 +174,11 @@
|
|
|
172
174
|
"creatives.componentsV2.TemplatePreview.charactersPerSms": "SMS chars",
|
|
173
175
|
"creatives.componentsV2.TemplatePreview.charactersTotal": "{smsCount} SMS ({charCount} characters)",
|
|
174
176
|
"creatives.componentsV2.TemplatePreview.close": "close",
|
|
177
|
+
"creatives.componentsV2.TemplatePreview.playVideo": "Play",
|
|
175
178
|
"creatives.componentsV2.TemplatePreview.preview": "Preview",
|
|
176
179
|
"creatives.componentsV2.TemplatePreview.previewGenerated": "Preview is being generated",
|
|
177
180
|
"creatives.componentsV2.TemplatePreview.previewGenerationMessage": "Preview is being generated",
|
|
181
|
+
"creatives.componentsV2.TemplatePreview.showDetails": "Show details",
|
|
178
182
|
"creatives.componentsV2.TemplatePreview.sms": "SMS",
|
|
179
183
|
"creatives.componentsV2.TemplatePreview.smsFormatType": "Message has unicode characters",
|
|
180
184
|
"creatives.componentsV2.TemplatePreview.smsIcon": "Sms Icon",
|
|
@@ -247,8 +251,6 @@
|
|
|
247
251
|
"creatives.containers.Create.graphic_details_page": "Whether to display the graphic cover on the graphic details page",
|
|
248
252
|
"creatives.containers.Create.header": "This is Create container !",
|
|
249
253
|
"creatives.containers.Create.http_example": "Example: http://example.com",
|
|
250
|
-
"creatives.containers.Create.imageGallery": "Gallery",
|
|
251
|
-
"creatives.containers.Create.lineImageIncorrectSize": "Please upload the image with correct type, size and dimension",
|
|
252
254
|
"creatives.containers.Create.markFinalVersionLabel": "Mark as final",
|
|
253
255
|
"creatives.containers.Create.maxContentCount": "You have reached the maximum template size",
|
|
254
256
|
"creatives.containers.Create.messageLabel": "Message",
|
|
@@ -266,17 +268,9 @@
|
|
|
266
268
|
"creatives.containers.Create.sourceLinkEmpty": "Cannot leave source link field empty",
|
|
267
269
|
"creatives.containers.Create.tagsErrorMessage": "Message cannot be empty",
|
|
268
270
|
"creatives.containers.Create.tagsLabel": "Tags",
|
|
269
|
-
"creatives.containers.Create.templateAddTag": "Add tag",
|
|
270
271
|
"creatives.containers.Create.templateDataNotValid": "Template data is not valid",
|
|
271
272
|
"creatives.containers.Create.templateMarkedFinal": "Template Marked as Final Successfully",
|
|
272
|
-
"creatives.containers.Create.templateMessageError": "Template content cannot be empty!",
|
|
273
|
-
"creatives.containers.Create.templateMessagePlaceholder": "Please input line template content.",
|
|
274
|
-
"creatives.containers.Create.templateMessagePreviewPropsError": "Please upload image",
|
|
275
|
-
"creatives.containers.Create.templateMessagePreviewPropsInductiveText": "The relevant image that complements the message context.",
|
|
276
|
-
"creatives.containers.Create.templateMessagePreviewPropsLabel": "Upload image content",
|
|
277
|
-
"creatives.containers.Create.templateNameErrorPlaceholder": "Template name cannot be empty.",
|
|
278
273
|
"creatives.containers.Create.templateNamePlaceHolder": "Enter template name",
|
|
279
|
-
"creatives.containers.Create.templatePlaceholder": "Enter template name",
|
|
280
274
|
"creatives.containers.Create.titleCharacterCount": "Title exceeds character count limit by",
|
|
281
275
|
"creatives.containers.Create.titleEmpty": "Cannot leave title field empty",
|
|
282
276
|
"creatives.containers.Create.titleNameRepeated": "Title name cannot be repeated",
|
|
@@ -1089,102 +1083,6 @@
|
|
|
1089
1083
|
"creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveDescription": "Objectives help break reporting into a more granular level",
|
|
1090
1084
|
"creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveDone": "Done",
|
|
1091
1085
|
"creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveTitle": "Facebook Marketing Objective",
|
|
1092
|
-
"creatives.containersV2.Line.Create.Campaigns": "Campaigns",
|
|
1093
|
-
"creatives.containersV2.Line.Create.Creatives": "Creatives",
|
|
1094
|
-
"creatives.containersV2.Line.Create.Image": "Image",
|
|
1095
|
-
"creatives.containersV2.Line.Create.ImageUploadLabel": "Upload image",
|
|
1096
|
-
"creatives.containersV2.Line.Create.Tags": "Tags",
|
|
1097
|
-
"creatives.containersV2.Line.Create.accountId": "Account id",
|
|
1098
|
-
"creatives.containersV2.Line.Create.alertMessage": "Alert",
|
|
1099
|
-
"creatives.containersV2.Line.Create.button1": "Button 1",
|
|
1100
|
-
"creatives.containersV2.Line.Create.button2": "Button 2",
|
|
1101
|
-
"creatives.containersV2.Line.Create.cancel": "Cancel",
|
|
1102
|
-
"creatives.containersV2.Line.Create.discardChanges": "Discard changes",
|
|
1103
|
-
"creatives.containersV2.Line.Create.enterTemplateName": "Enter template name",
|
|
1104
|
-
"creatives.containersV2.Line.Create.enterTemplateNameImportant": "Enter template name*",
|
|
1105
|
-
"creatives.containersV2.Line.Create.goBackTemporaryLost": "Do you really want to go back? All your temporary changes will be lost!",
|
|
1106
|
-
"creatives.containersV2.Line.Create.image": "Please upload an image to proceed",
|
|
1107
|
-
"creatives.containersV2.Line.Create.inputLineTemplateContent": "Please enter the message content",
|
|
1108
|
-
"creatives.containersV2.Line.Create.line": "Line",
|
|
1109
|
-
"creatives.containersV2.Line.Create.lineTemplateCreatedSuccessfully": "Line template created successfully",
|
|
1110
|
-
"creatives.containersV2.Line.Create.maxUploadFileSize": "Max file size acceptable is 5mb",
|
|
1111
|
-
"creatives.containersV2.Line.Create.maximumCharacterLengthExceeds": "Maximum characters length exceeds",
|
|
1112
|
-
"creatives.containersV2.Line.Create.message": "Message",
|
|
1113
|
-
"creatives.containersV2.Line.Create.messageHasUnsupportedTag": "Please check the message content for unsupported/missing tags",
|
|
1114
|
-
"creatives.containersV2.Line.Create.messageLabel": "Message*",
|
|
1115
|
-
"creatives.containersV2.Line.Create.messageTitleWithUnsupportedTag": "Please check the message content for unsupported/missing tags",
|
|
1116
|
-
"creatives.containersV2.Line.Create.nameAndDescription": "Name and description",
|
|
1117
|
-
"creatives.containersV2.Line.Create.pleaseUploadImage": "Please upload image",
|
|
1118
|
-
"creatives.containersV2.Line.Create.save": "Save",
|
|
1119
|
-
"creatives.containersV2.Line.Create.selectLineAccount": "Select line account",
|
|
1120
|
-
"creatives.containersV2.Line.Create.selectLineTemplate": "Select line template",
|
|
1121
|
-
"creatives.containersV2.Line.Create.somethingWentWrong": "Something went wrong!!",
|
|
1122
|
-
"creatives.containersV2.Line.Create.template": "Template",
|
|
1123
|
-
"creatives.containersV2.Line.Create.templateCantEmpty": "Template name cannot be empty",
|
|
1124
|
-
"creatives.containersV2.Line.Create.templateEditedSuccessfully": "Line template edited successfully",
|
|
1125
|
-
"creatives.containersV2.Line.Create.templateNameNotEmpty": "Please provide a template name",
|
|
1126
|
-
"creatives.containersV2.Line.Create.templateNotConfigured": "template not configured,",
|
|
1127
|
-
"creatives.containersV2.Line.Create.title": "Title",
|
|
1128
|
-
"creatives.containersV2.Line.Create.titleHasUnsupportedTag": "Please check the message content for unsupported/missing tags",
|
|
1129
|
-
"creatives.containersV2.Line.Create.titleLabel": "Title*",
|
|
1130
|
-
"creatives.containersV2.Line.Create.titleNameInvalid": "Please enter the message title",
|
|
1131
|
-
"creatives.containersV2.Line.Create.uploadFileSizeError": "File size cannot be more than 1mb",
|
|
1132
|
-
"creatives.containersV2.Line.Create.uploadImage": "Upload image",
|
|
1133
|
-
"creatives.containersV2.Line.Create.uploadSuccess": "Photo uploaded successfully",
|
|
1134
|
-
"creatives.containersV2.Line.Create.uploadingImage": "Uploading image...",
|
|
1135
|
-
"creatives.containersV2.Line.Create.valueCantEmpty": "value cannot be empty.",
|
|
1136
|
-
"creatives.containersV2.Line.CreateWrapper.accountLineListDescription": "Choose the account to send content",
|
|
1137
|
-
"creatives.containersV2.Line.CreateWrapper.accountLineListTitle": "Line accounts",
|
|
1138
|
-
"creatives.containersV2.Line.CreateWrapper.accountLineNoListTitle": "No line accounts present",
|
|
1139
|
-
"creatives.containersV2.Line.CreateWrapper.continue": "Continue",
|
|
1140
|
-
"creatives.containersV2.Line.CreateWrapper.hybridTemplateDescription": "Used to create combined text & image or video content",
|
|
1141
|
-
"creatives.containersV2.Line.CreateWrapper.hybridTemplateTitle": "Hybrid",
|
|
1142
|
-
"creatives.containersV2.Line.CreateWrapper.imageTemplateDescription": "Used for creating image or video content",
|
|
1143
|
-
"creatives.containersV2.Line.CreateWrapper.imageTemplateTitle": "Image/video template",
|
|
1144
|
-
"creatives.containersV2.Line.CreateWrapper.templateType": "Select the type of content",
|
|
1145
|
-
"creatives.containersV2.Line.CreateWrapper.textTemplateDescription": "Used for announcing offers and transaction related information",
|
|
1146
|
-
"creatives.containersV2.Line.CreateWrapper.textTemplateTitle": "Text template",
|
|
1147
|
-
"creatives.containersV2.Line.Edit.Campaigns": "Campaigns",
|
|
1148
|
-
"creatives.containersV2.Line.Edit.Creatives": "Creatives",
|
|
1149
|
-
"creatives.containersV2.Line.Edit.Image": "Image",
|
|
1150
|
-
"creatives.containersV2.Line.Edit.ImageUploadLabel": "Upload image",
|
|
1151
|
-
"creatives.containersV2.Line.Edit.Tags": "Tags",
|
|
1152
|
-
"creatives.containersV2.Line.Edit.alertMessage": "Alert",
|
|
1153
|
-
"creatives.containersV2.Line.Edit.androidNotConfigured": "Android template is not configured. Save without Android template",
|
|
1154
|
-
"creatives.containersV2.Line.Edit.button1": "Button 1",
|
|
1155
|
-
"creatives.containersV2.Line.Edit.button2": "Button 2",
|
|
1156
|
-
"creatives.containersV2.Line.Edit.cancel": "Cancel",
|
|
1157
|
-
"creatives.containersV2.Line.Edit.discardChanges": "Discard changes",
|
|
1158
|
-
"creatives.containersV2.Line.Edit.enterTemplateName": "Enter template name",
|
|
1159
|
-
"creatives.containersV2.Line.Edit.enterTemplateNameImportant": "Enter template name*",
|
|
1160
|
-
"creatives.containersV2.Line.Edit.goBackConfirmation": "Going back will discard all the changes you've made. Continue?",
|
|
1161
|
-
"creatives.containersV2.Line.Edit.goBackTemporaryChangesLost": "Do you really want to go back? All your temporary changes will be lost!",
|
|
1162
|
-
"creatives.containersV2.Line.Edit.inputLineTemplateContent": "Please enter the message content",
|
|
1163
|
-
"creatives.containersV2.Line.Edit.iosNotConfigured": "IOS template is not configured, Save without IOS template",
|
|
1164
|
-
"creatives.containersV2.Line.Edit.maxUploadFileSize": "Max file size acceptable is 5mb",
|
|
1165
|
-
"creatives.containersV2.Line.Edit.message": "Message",
|
|
1166
|
-
"creatives.containersV2.Line.Edit.messageHasUnsupportedTag": "Please check the message content for unsupported/missing tags",
|
|
1167
|
-
"creatives.containersV2.Line.Edit.messageLabel": "Message*",
|
|
1168
|
-
"creatives.containersV2.Line.Edit.messageTitleWithUnsupportedTag": "Please check the message content for unsupported/missing tags",
|
|
1169
|
-
"creatives.containersV2.Line.Edit.mobilePush": "Mobile Push",
|
|
1170
|
-
"creatives.containersV2.Line.Edit.nameAndDescription": "Name and description",
|
|
1171
|
-
"creatives.containersV2.Line.Edit.pleaseUploadImage": "Please upload image",
|
|
1172
|
-
"creatives.containersV2.Line.Edit.save": "Save",
|
|
1173
|
-
"creatives.containersV2.Line.Edit.selectLineTemplate": "Select line template",
|
|
1174
|
-
"creatives.containersV2.Line.Edit.somethingWentWrong": "Something went wrong!!",
|
|
1175
|
-
"creatives.containersV2.Line.Edit.template": "Template",
|
|
1176
|
-
"creatives.containersV2.Line.Edit.templateCantEmpty": "Template name cannot be empty",
|
|
1177
|
-
"creatives.containersV2.Line.Edit.templateEditedSuccessfully": "Line template edited successfully",
|
|
1178
|
-
"creatives.containersV2.Line.Edit.templateNameNotEmpty": "Please provide a template name",
|
|
1179
|
-
"creatives.containersV2.Line.Edit.templateNotConfigured": "template not configured,",
|
|
1180
|
-
"creatives.containersV2.Line.Edit.title": "Title",
|
|
1181
|
-
"creatives.containersV2.Line.Edit.titleHasUnsupportedTag": "Please check the message content for unsupported/missing tags",
|
|
1182
|
-
"creatives.containersV2.Line.Edit.titleLabel": "Title*",
|
|
1183
|
-
"creatives.containersV2.Line.Edit.titleNameInvalid": "Please enter the message title",
|
|
1184
|
-
"creatives.containersV2.Line.Edit.uploadFileSizeError": "File size cannot be more than 5mb",
|
|
1185
|
-
"creatives.containersV2.Line.Edit.uploadImage": "Upload image",
|
|
1186
|
-
"creatives.containersV2.Line.Edit.uploadingImage": "Uploading image...",
|
|
1187
|
-
"creatives.containersV2.Line.Edit.valueCantEmpty": "value cannot be empty.",
|
|
1188
1086
|
"creatives.containersV2.LineContainer.addMessageButtonLabel": "Add message",
|
|
1189
1087
|
"creatives.containersV2.LineContainer.cancelButtonLabel": "Cancel",
|
|
1190
1088
|
"creatives.containersV2.LineContainer.changeAccount": "Change",
|
|
@@ -1193,6 +1091,7 @@
|
|
|
1193
1091
|
"creatives.containersV2.LineContainer.lineAccount": "Line account",
|
|
1194
1092
|
"creatives.containersV2.LineContainer.lineAccountHeading": "Line account",
|
|
1195
1093
|
"creatives.containersV2.LineContainer.lineAccountHeadingChangeLabel": "Change",
|
|
1094
|
+
"creatives.containersV2.LineContainer.lineAccountLabel": "Line account",
|
|
1196
1095
|
"creatives.containersV2.LineContainer.lineCreateNotification": "Line template created successfully",
|
|
1197
1096
|
"creatives.containersV2.LineContainer.lineCreativeDescription": "Select any of the existing templates or create new",
|
|
1198
1097
|
"creatives.containersV2.LineContainer.lineCreativeTitle": "Line creative",
|
|
@@ -1284,6 +1183,39 @@
|
|
|
1284
1183
|
"creatives.containersV2.LineText.textMessageSelectTemplate": "Select template",
|
|
1285
1184
|
"creatives.containersV2.LineText.textMessageTitleLabel": "Template name",
|
|
1286
1185
|
"creatives.containersV2.LineText.textMessageTitlePlaceholder": "Enter template name",
|
|
1186
|
+
"creatives.containersV2.LineVideo.actionButtonLabel": "Action button",
|
|
1187
|
+
"creatives.containersV2.LineVideo.actionLabelInductiveTitle": "Make your own action button label",
|
|
1188
|
+
"creatives.containersV2.LineVideo.actionLabelPlaceholder": "Enter Label",
|
|
1189
|
+
"creatives.containersV2.LineVideo.actionLabelTitle": "Action button label",
|
|
1190
|
+
"creatives.containersV2.LineVideo.actionUrlPlaceholder": "Enter URL",
|
|
1191
|
+
"creatives.containersV2.LineVideo.actionUrlTitle": "Link Url",
|
|
1192
|
+
"creatives.containersV2.LineVideo.dragAndDrop": "Drag and drop video here",
|
|
1193
|
+
"creatives.containersV2.LineVideo.emptyAltTextErrorMessage": "Title can not be empty",
|
|
1194
|
+
"creatives.containersV2.LineVideo.emptyLabelErrorMessage": "Action label can not be more empty",
|
|
1195
|
+
"creatives.containersV2.LineVideo.emptyTitleErrorMessage": "Template title can not be empty",
|
|
1196
|
+
"creatives.containersV2.LineVideo.emptyUrlErrorMessage": "Action URL can not be more empty",
|
|
1197
|
+
"creatives.containersV2.LineVideo.imageGallery": "Gallery",
|
|
1198
|
+
"creatives.containersV2.LineVideo.imageReUpload": "Re upload",
|
|
1199
|
+
"creatives.containersV2.LineVideo.inValidUrlErrorMessage": "Action url is not valid",
|
|
1200
|
+
"creatives.containersV2.LineVideo.lineTemplateImage": "Line templates - Image",
|
|
1201
|
+
"creatives.containersV2.LineVideo.lineVideoIncorrectSize": "This file format/size is not supported.",
|
|
1202
|
+
"creatives.containersV2.LineVideo.maxActionLabelErrorMessage": "Action label can not be more than 20 character",
|
|
1203
|
+
"creatives.containersV2.LineVideo.or": "OR",
|
|
1204
|
+
"creatives.containersV2.LineVideo.searchImages": "Search Images",
|
|
1205
|
+
"creatives.containersV2.LineVideo.select": "Select",
|
|
1206
|
+
"creatives.containersV2.LineVideo.textMessageAddLabel": "How do you want to upload the image?",
|
|
1207
|
+
"creatives.containersV2.LineVideo.textMessageCreateNew": "Create new",
|
|
1208
|
+
"creatives.containersV2.LineVideo.textMessageORLabel": "OR",
|
|
1209
|
+
"creatives.containersV2.LineVideo.textMessageSelectTemplate": "Select template",
|
|
1210
|
+
"creatives.containersV2.LineVideo.textMessageTitleLabel": "Template name",
|
|
1211
|
+
"creatives.containersV2.LineVideo.textMessageTitlePlaceholder": "Enter template name",
|
|
1212
|
+
"creatives.containersV2.LineVideo.titleDescription": "The title is shown in push notifications and in the user's chat list.",
|
|
1213
|
+
"creatives.containersV2.LineVideo.titleLabel": "Title",
|
|
1214
|
+
"creatives.containersV2.LineVideo.uploadComputer": "Your computer",
|
|
1215
|
+
"creatives.containersV2.LineVideo.uploadGallery": "Gallery",
|
|
1216
|
+
"creatives.containersV2.LineVideo.uploadVideoLabel": "Upload Video",
|
|
1217
|
+
"creatives.containersV2.LineVideo.videoFormatDescription": "File formats: MP4",
|
|
1218
|
+
"creatives.containersV2.LineVideo.videoSizeDescription": "File size: Up to 200 MB",
|
|
1287
1219
|
"creatives.containersV2.LineWrapper.changeModalDescription": "The already added content for this card will be lost by changing the content tab.",
|
|
1288
1220
|
"creatives.containersV2.LineWrapper.changeModalLabel": "Do you still want to make the changes to content tab",
|
|
1289
1221
|
"creatives.containersV2.LineWrapper.changeModalTitle": "Changing content tab?",
|
|
@@ -1294,6 +1226,7 @@
|
|
|
1294
1226
|
"creatives.containersV2.LineWrapper.stickerLabel": "Sticker",
|
|
1295
1227
|
"creatives.containersV2.LineWrapper.templateLabel": "Card message",
|
|
1296
1228
|
"creatives.containersV2.LineWrapper.textLabel": "Text",
|
|
1229
|
+
"creatives.containersV2.LineWrapper.videoLabel": "Rich video message",
|
|
1297
1230
|
"creatives.containersV2.Login.header": "This is login container change !",
|
|
1298
1231
|
"creatives.containersV2.Login.invalidCredential": "Invalid username or password",
|
|
1299
1232
|
"creatives.containersV2.Login.loginPage": "Login Page",
|
|
@@ -1481,6 +1414,7 @@
|
|
|
1481
1414
|
"creatives.containersV2.Templates.header": "This is Templates container !",
|
|
1482
1415
|
"creatives.containersV2.Templates.imageCarouselTemplate": "Card message",
|
|
1483
1416
|
"creatives.containersV2.Templates.imageMapTemplate": "Rich message",
|
|
1417
|
+
"creatives.containersV2.Templates.imageMapVideoTemplate": "Rich video message",
|
|
1484
1418
|
"creatives.containersV2.Templates.imageTemplate": "Image",
|
|
1485
1419
|
"creatives.containersV2.Templates.invalidUploadFileError": "File cannot be uploaded. Please select another file with valid file format.",
|
|
1486
1420
|
"creatives.containersV2.Templates.layoutSelection": "Select layout",
|
|
@@ -1597,10 +1531,19 @@
|
|
|
1597
1531
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
1598
1532
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
1599
1533
|
"creatives.containersV2.appName": "App Name",
|
|
1534
|
+
"creatives.containersV2.areYouSureText": "Are you sure?",
|
|
1600
1535
|
"creatives.containersV2.audience": "Audience",
|
|
1601
1536
|
"creatives.containersV2.campaignsDashboard": "Campaigns",
|
|
1602
1537
|
"creatives.containersV2.campaignsHome": "Campaigns Home",
|
|
1538
|
+
"creatives.containersV2.cancel": "Cancel",
|
|
1539
|
+
"creatives.containersV2.changeOk": "Ok, change",
|
|
1603
1540
|
"creatives.containersV2.incentive": "Incentive",
|
|
1541
|
+
"creatives.containersV2.newOrgName": "{newOrgName}",
|
|
1542
|
+
"creatives.containersV2.orgChangeText": "Changing from <b>{oldOrgName}</b> to <b>{newOrgName}</b> will change the organisation for applications open in other tabs as well.<br/>Do you want to make the change to <b>{newOrgName}</b>?",
|
|
1543
|
+
"creatives.containersV2.orgChangedText": "Organization changed to",
|
|
1544
|
+
"creatives.containersV2.orgRefreshHeading": "Org refresh",
|
|
1545
|
+
"creatives.containersV2.refreshOrgText": "Refreshing this page & changing the Org from <b>{oldOrgName}</b> to <b>{newOrgName}</b>. At a time only one Org can be selected on the browser.",
|
|
1546
|
+
"creatives.containersV2.refreshText": "Refreshing in {time}...",
|
|
1604
1547
|
"creatives.containersV2.richMedia.Create.Anyone": "Anyone",
|
|
1605
1548
|
"creatives.containersV2.richMedia.Create.Author": "Author",
|
|
1606
1549
|
"creatives.containersV2.richMedia.Create.Content": "Content",
|
package/translations/zh.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"app.components.TemplatePreview.includesOptoutTag": "",
|
|
3
3
|
"app.components.TemplatePreview.optoutCharactersTotal": "",
|
|
4
|
+
"creatives.components.AccessForbidden.forbiddenDesc": "",
|
|
5
|
+
"creatives.components.AccessForbidden.forbiddenHeader": "",
|
|
4
6
|
"creatives.components.BreadCrumbs.header": "",
|
|
5
7
|
"creatives.components.CapTagList.Cancel": "",
|
|
6
8
|
"creatives.components.CapTagList.Ok": "",
|
|
@@ -143,7 +145,7 @@
|
|
|
143
145
|
"creatives.componentsV2.ImagePreview.close": "",
|
|
144
146
|
"creatives.componentsV2.ImagePreview.loadingImage": "",
|
|
145
147
|
"creatives.componentsV2.NavigationBar.businessProcesses": "",
|
|
146
|
-
"creatives.componentsV2.NavigationBar.
|
|
148
|
+
"creatives.componentsV2.NavigationBar.campaigns/ui/list": "",
|
|
147
149
|
"creatives.componentsV2.NavigationBar.header": "",
|
|
148
150
|
"creatives.componentsV2.NavigationBar.insights": "",
|
|
149
151
|
"creatives.componentsV2.NavigationBar.logout": "",
|
|
@@ -172,9 +174,11 @@
|
|
|
172
174
|
"creatives.componentsV2.TemplatePreview.charactersPerSms": "",
|
|
173
175
|
"creatives.componentsV2.TemplatePreview.charactersTotal": "",
|
|
174
176
|
"creatives.componentsV2.TemplatePreview.close": "",
|
|
177
|
+
"creatives.componentsV2.TemplatePreview.playVideo": "",
|
|
175
178
|
"creatives.componentsV2.TemplatePreview.preview": "",
|
|
176
179
|
"creatives.componentsV2.TemplatePreview.previewGenerated": "",
|
|
177
180
|
"creatives.componentsV2.TemplatePreview.previewGenerationMessage": "",
|
|
181
|
+
"creatives.componentsV2.TemplatePreview.showDetails": "",
|
|
178
182
|
"creatives.componentsV2.TemplatePreview.sms": "",
|
|
179
183
|
"creatives.componentsV2.TemplatePreview.smsFormatType": "",
|
|
180
184
|
"creatives.componentsV2.TemplatePreview.smsIcon": "",
|
|
@@ -247,8 +251,6 @@
|
|
|
247
251
|
"creatives.containers.Create.graphic_details_page": "",
|
|
248
252
|
"creatives.containers.Create.header": "",
|
|
249
253
|
"creatives.containers.Create.http_example": "",
|
|
250
|
-
"creatives.containers.Create.imageGallery": "",
|
|
251
|
-
"creatives.containers.Create.lineImageIncorrectSize": "",
|
|
252
254
|
"creatives.containers.Create.markFinalVersionLabel": "",
|
|
253
255
|
"creatives.containers.Create.maxContentCount": "",
|
|
254
256
|
"creatives.containers.Create.messageLabel": "",
|
|
@@ -266,17 +268,9 @@
|
|
|
266
268
|
"creatives.containers.Create.sourceLinkEmpty": "",
|
|
267
269
|
"creatives.containers.Create.tagsErrorMessage": "",
|
|
268
270
|
"creatives.containers.Create.tagsLabel": "",
|
|
269
|
-
"creatives.containers.Create.templateAddTag": "",
|
|
270
271
|
"creatives.containers.Create.templateDataNotValid": "",
|
|
271
272
|
"creatives.containers.Create.templateMarkedFinal": "",
|
|
272
|
-
"creatives.containers.Create.templateMessageError": "",
|
|
273
|
-
"creatives.containers.Create.templateMessagePlaceholder": "",
|
|
274
|
-
"creatives.containers.Create.templateMessagePreviewPropsError": "",
|
|
275
|
-
"creatives.containers.Create.templateMessagePreviewPropsInductiveText": "",
|
|
276
|
-
"creatives.containers.Create.templateMessagePreviewPropsLabel": "",
|
|
277
|
-
"creatives.containers.Create.templateNameErrorPlaceholder": "",
|
|
278
273
|
"creatives.containers.Create.templateNamePlaceHolder": "",
|
|
279
|
-
"creatives.containers.Create.templatePlaceholder": "",
|
|
280
274
|
"creatives.containers.Create.titleCharacterCount": "",
|
|
281
275
|
"creatives.containers.Create.titleEmpty": "",
|
|
282
276
|
"creatives.containers.Create.titleNameRepeated": "",
|
|
@@ -1089,102 +1083,6 @@
|
|
|
1089
1083
|
"creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveDescription": "",
|
|
1090
1084
|
"creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveDone": "",
|
|
1091
1085
|
"creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveTitle": "",
|
|
1092
|
-
"creatives.containersV2.Line.Create.Campaigns": "",
|
|
1093
|
-
"creatives.containersV2.Line.Create.Creatives": "",
|
|
1094
|
-
"creatives.containersV2.Line.Create.Image": "",
|
|
1095
|
-
"creatives.containersV2.Line.Create.ImageUploadLabel": "",
|
|
1096
|
-
"creatives.containersV2.Line.Create.Tags": "",
|
|
1097
|
-
"creatives.containersV2.Line.Create.accountId": "",
|
|
1098
|
-
"creatives.containersV2.Line.Create.alertMessage": "",
|
|
1099
|
-
"creatives.containersV2.Line.Create.button1": "",
|
|
1100
|
-
"creatives.containersV2.Line.Create.button2": "",
|
|
1101
|
-
"creatives.containersV2.Line.Create.cancel": "",
|
|
1102
|
-
"creatives.containersV2.Line.Create.discardChanges": "",
|
|
1103
|
-
"creatives.containersV2.Line.Create.enterTemplateName": "",
|
|
1104
|
-
"creatives.containersV2.Line.Create.enterTemplateNameImportant": "",
|
|
1105
|
-
"creatives.containersV2.Line.Create.goBackTemporaryLost": "",
|
|
1106
|
-
"creatives.containersV2.Line.Create.image": "",
|
|
1107
|
-
"creatives.containersV2.Line.Create.inputLineTemplateContent": "",
|
|
1108
|
-
"creatives.containersV2.Line.Create.line": "",
|
|
1109
|
-
"creatives.containersV2.Line.Create.lineTemplateCreatedSuccessfully": "",
|
|
1110
|
-
"creatives.containersV2.Line.Create.maxUploadFileSize": "",
|
|
1111
|
-
"creatives.containersV2.Line.Create.maximumCharacterLengthExceeds": "",
|
|
1112
|
-
"creatives.containersV2.Line.Create.message": "",
|
|
1113
|
-
"creatives.containersV2.Line.Create.messageHasUnsupportedTag": "",
|
|
1114
|
-
"creatives.containersV2.Line.Create.messageLabel": "",
|
|
1115
|
-
"creatives.containersV2.Line.Create.messageTitleWithUnsupportedTag": "",
|
|
1116
|
-
"creatives.containersV2.Line.Create.nameAndDescription": "",
|
|
1117
|
-
"creatives.containersV2.Line.Create.pleaseUploadImage": "",
|
|
1118
|
-
"creatives.containersV2.Line.Create.save": "",
|
|
1119
|
-
"creatives.containersV2.Line.Create.selectLineAccount": "",
|
|
1120
|
-
"creatives.containersV2.Line.Create.selectLineTemplate": "",
|
|
1121
|
-
"creatives.containersV2.Line.Create.somethingWentWrong": "",
|
|
1122
|
-
"creatives.containersV2.Line.Create.template": "",
|
|
1123
|
-
"creatives.containersV2.Line.Create.templateCantEmpty": "",
|
|
1124
|
-
"creatives.containersV2.Line.Create.templateEditedSuccessfully": "",
|
|
1125
|
-
"creatives.containersV2.Line.Create.templateNameNotEmpty": "",
|
|
1126
|
-
"creatives.containersV2.Line.Create.templateNotConfigured": "",
|
|
1127
|
-
"creatives.containersV2.Line.Create.title": "",
|
|
1128
|
-
"creatives.containersV2.Line.Create.titleHasUnsupportedTag": "",
|
|
1129
|
-
"creatives.containersV2.Line.Create.titleLabel": "",
|
|
1130
|
-
"creatives.containersV2.Line.Create.titleNameInvalid": "",
|
|
1131
|
-
"creatives.containersV2.Line.Create.uploadFileSizeError": "",
|
|
1132
|
-
"creatives.containersV2.Line.Create.uploadImage": "",
|
|
1133
|
-
"creatives.containersV2.Line.Create.uploadSuccess": "",
|
|
1134
|
-
"creatives.containersV2.Line.Create.uploadingImage": "",
|
|
1135
|
-
"creatives.containersV2.Line.Create.valueCantEmpty": "",
|
|
1136
|
-
"creatives.containersV2.Line.CreateWrapper.accountLineListDescription": "",
|
|
1137
|
-
"creatives.containersV2.Line.CreateWrapper.accountLineListTitle": "",
|
|
1138
|
-
"creatives.containersV2.Line.CreateWrapper.accountLineNoListTitle": "",
|
|
1139
|
-
"creatives.containersV2.Line.CreateWrapper.continue": "",
|
|
1140
|
-
"creatives.containersV2.Line.CreateWrapper.hybridTemplateDescription": "",
|
|
1141
|
-
"creatives.containersV2.Line.CreateWrapper.hybridTemplateTitle": "",
|
|
1142
|
-
"creatives.containersV2.Line.CreateWrapper.imageTemplateDescription": "",
|
|
1143
|
-
"creatives.containersV2.Line.CreateWrapper.imageTemplateTitle": "",
|
|
1144
|
-
"creatives.containersV2.Line.CreateWrapper.templateType": "",
|
|
1145
|
-
"creatives.containersV2.Line.CreateWrapper.textTemplateDescription": "",
|
|
1146
|
-
"creatives.containersV2.Line.CreateWrapper.textTemplateTitle": "",
|
|
1147
|
-
"creatives.containersV2.Line.Edit.Campaigns": "",
|
|
1148
|
-
"creatives.containersV2.Line.Edit.Creatives": "",
|
|
1149
|
-
"creatives.containersV2.Line.Edit.Image": "",
|
|
1150
|
-
"creatives.containersV2.Line.Edit.ImageUploadLabel": "",
|
|
1151
|
-
"creatives.containersV2.Line.Edit.Tags": "",
|
|
1152
|
-
"creatives.containersV2.Line.Edit.alertMessage": "",
|
|
1153
|
-
"creatives.containersV2.Line.Edit.androidNotConfigured": "",
|
|
1154
|
-
"creatives.containersV2.Line.Edit.button1": "",
|
|
1155
|
-
"creatives.containersV2.Line.Edit.button2": "",
|
|
1156
|
-
"creatives.containersV2.Line.Edit.cancel": "",
|
|
1157
|
-
"creatives.containersV2.Line.Edit.discardChanges": "",
|
|
1158
|
-
"creatives.containersV2.Line.Edit.enterTemplateName": "",
|
|
1159
|
-
"creatives.containersV2.Line.Edit.enterTemplateNameImportant": "",
|
|
1160
|
-
"creatives.containersV2.Line.Edit.goBackConfirmation": "",
|
|
1161
|
-
"creatives.containersV2.Line.Edit.goBackTemporaryChangesLost": "",
|
|
1162
|
-
"creatives.containersV2.Line.Edit.inputLineTemplateContent": "",
|
|
1163
|
-
"creatives.containersV2.Line.Edit.iosNotConfigured": "",
|
|
1164
|
-
"creatives.containersV2.Line.Edit.maxUploadFileSize": "",
|
|
1165
|
-
"creatives.containersV2.Line.Edit.message": "",
|
|
1166
|
-
"creatives.containersV2.Line.Edit.messageHasUnsupportedTag": "",
|
|
1167
|
-
"creatives.containersV2.Line.Edit.messageLabel": "",
|
|
1168
|
-
"creatives.containersV2.Line.Edit.messageTitleWithUnsupportedTag": "",
|
|
1169
|
-
"creatives.containersV2.Line.Edit.mobilePush": "",
|
|
1170
|
-
"creatives.containersV2.Line.Edit.nameAndDescription": "",
|
|
1171
|
-
"creatives.containersV2.Line.Edit.pleaseUploadImage": "",
|
|
1172
|
-
"creatives.containersV2.Line.Edit.save": "",
|
|
1173
|
-
"creatives.containersV2.Line.Edit.selectLineTemplate": "",
|
|
1174
|
-
"creatives.containersV2.Line.Edit.somethingWentWrong": "",
|
|
1175
|
-
"creatives.containersV2.Line.Edit.template": "",
|
|
1176
|
-
"creatives.containersV2.Line.Edit.templateCantEmpty": "",
|
|
1177
|
-
"creatives.containersV2.Line.Edit.templateEditedSuccessfully": "",
|
|
1178
|
-
"creatives.containersV2.Line.Edit.templateNameNotEmpty": "",
|
|
1179
|
-
"creatives.containersV2.Line.Edit.templateNotConfigured": "",
|
|
1180
|
-
"creatives.containersV2.Line.Edit.title": "",
|
|
1181
|
-
"creatives.containersV2.Line.Edit.titleHasUnsupportedTag": "",
|
|
1182
|
-
"creatives.containersV2.Line.Edit.titleLabel": "",
|
|
1183
|
-
"creatives.containersV2.Line.Edit.titleNameInvalid": "",
|
|
1184
|
-
"creatives.containersV2.Line.Edit.uploadFileSizeError": "",
|
|
1185
|
-
"creatives.containersV2.Line.Edit.uploadImage": "",
|
|
1186
|
-
"creatives.containersV2.Line.Edit.uploadingImage": "",
|
|
1187
|
-
"creatives.containersV2.Line.Edit.valueCantEmpty": "",
|
|
1188
1086
|
"creatives.containersV2.LineContainer.addMessageButtonLabel": "",
|
|
1189
1087
|
"creatives.containersV2.LineContainer.cancelButtonLabel": "",
|
|
1190
1088
|
"creatives.containersV2.LineContainer.changeAccount": "",
|
|
@@ -1193,6 +1091,7 @@
|
|
|
1193
1091
|
"creatives.containersV2.LineContainer.lineAccount": "",
|
|
1194
1092
|
"creatives.containersV2.LineContainer.lineAccountHeading": "",
|
|
1195
1093
|
"creatives.containersV2.LineContainer.lineAccountHeadingChangeLabel": "",
|
|
1094
|
+
"creatives.containersV2.LineContainer.lineAccountLabel": "",
|
|
1196
1095
|
"creatives.containersV2.LineContainer.lineCreateNotification": "",
|
|
1197
1096
|
"creatives.containersV2.LineContainer.lineCreativeDescription": "",
|
|
1198
1097
|
"creatives.containersV2.LineContainer.lineCreativeTitle": "",
|
|
@@ -1284,6 +1183,39 @@
|
|
|
1284
1183
|
"creatives.containersV2.LineText.textMessageSelectTemplate": "",
|
|
1285
1184
|
"creatives.containersV2.LineText.textMessageTitleLabel": "",
|
|
1286
1185
|
"creatives.containersV2.LineText.textMessageTitlePlaceholder": "",
|
|
1186
|
+
"creatives.containersV2.LineVideo.actionButtonLabel": "",
|
|
1187
|
+
"creatives.containersV2.LineVideo.actionLabelInductiveTitle": "",
|
|
1188
|
+
"creatives.containersV2.LineVideo.actionLabelPlaceholder": "",
|
|
1189
|
+
"creatives.containersV2.LineVideo.actionLabelTitle": "",
|
|
1190
|
+
"creatives.containersV2.LineVideo.actionUrlPlaceholder": "",
|
|
1191
|
+
"creatives.containersV2.LineVideo.actionUrlTitle": "",
|
|
1192
|
+
"creatives.containersV2.LineVideo.dragAndDrop": "",
|
|
1193
|
+
"creatives.containersV2.LineVideo.emptyAltTextErrorMessage": "",
|
|
1194
|
+
"creatives.containersV2.LineVideo.emptyLabelErrorMessage": "",
|
|
1195
|
+
"creatives.containersV2.LineVideo.emptyTitleErrorMessage": "",
|
|
1196
|
+
"creatives.containersV2.LineVideo.emptyUrlErrorMessage": "",
|
|
1197
|
+
"creatives.containersV2.LineVideo.imageGallery": "",
|
|
1198
|
+
"creatives.containersV2.LineVideo.imageReUpload": "",
|
|
1199
|
+
"creatives.containersV2.LineVideo.inValidUrlErrorMessage": "",
|
|
1200
|
+
"creatives.containersV2.LineVideo.lineTemplateImage": "",
|
|
1201
|
+
"creatives.containersV2.LineVideo.lineVideoIncorrectSize": "",
|
|
1202
|
+
"creatives.containersV2.LineVideo.maxActionLabelErrorMessage": "",
|
|
1203
|
+
"creatives.containersV2.LineVideo.or": "",
|
|
1204
|
+
"creatives.containersV2.LineVideo.searchImages": "",
|
|
1205
|
+
"creatives.containersV2.LineVideo.select": "",
|
|
1206
|
+
"creatives.containersV2.LineVideo.textMessageAddLabel": "",
|
|
1207
|
+
"creatives.containersV2.LineVideo.textMessageCreateNew": "",
|
|
1208
|
+
"creatives.containersV2.LineVideo.textMessageORLabel": "",
|
|
1209
|
+
"creatives.containersV2.LineVideo.textMessageSelectTemplate": "",
|
|
1210
|
+
"creatives.containersV2.LineVideo.textMessageTitleLabel": "",
|
|
1211
|
+
"creatives.containersV2.LineVideo.textMessageTitlePlaceholder": "",
|
|
1212
|
+
"creatives.containersV2.LineVideo.titleDescription": "",
|
|
1213
|
+
"creatives.containersV2.LineVideo.titleLabel": "",
|
|
1214
|
+
"creatives.containersV2.LineVideo.uploadComputer": "",
|
|
1215
|
+
"creatives.containersV2.LineVideo.uploadGallery": "",
|
|
1216
|
+
"creatives.containersV2.LineVideo.uploadVideoLabel": "",
|
|
1217
|
+
"creatives.containersV2.LineVideo.videoFormatDescription": "",
|
|
1218
|
+
"creatives.containersV2.LineVideo.videoSizeDescription": "",
|
|
1287
1219
|
"creatives.containersV2.LineWrapper.changeModalDescription": "",
|
|
1288
1220
|
"creatives.containersV2.LineWrapper.changeModalLabel": "",
|
|
1289
1221
|
"creatives.containersV2.LineWrapper.changeModalTitle": "",
|
|
@@ -1294,6 +1226,7 @@
|
|
|
1294
1226
|
"creatives.containersV2.LineWrapper.stickerLabel": "",
|
|
1295
1227
|
"creatives.containersV2.LineWrapper.templateLabel": "",
|
|
1296
1228
|
"creatives.containersV2.LineWrapper.textLabel": "",
|
|
1229
|
+
"creatives.containersV2.LineWrapper.videoLabel": "",
|
|
1297
1230
|
"creatives.containersV2.Login.header": "",
|
|
1298
1231
|
"creatives.containersV2.Login.invalidCredential": "",
|
|
1299
1232
|
"creatives.containersV2.Login.loginPage": "",
|
|
@@ -1481,6 +1414,7 @@
|
|
|
1481
1414
|
"creatives.containersV2.Templates.header": "",
|
|
1482
1415
|
"creatives.containersV2.Templates.imageCarouselTemplate": "",
|
|
1483
1416
|
"creatives.containersV2.Templates.imageMapTemplate": "",
|
|
1417
|
+
"creatives.containersV2.Templates.imageMapVideoTemplate": "",
|
|
1484
1418
|
"creatives.containersV2.Templates.imageTemplate": "",
|
|
1485
1419
|
"creatives.containersV2.Templates.invalidUploadFileError": "",
|
|
1486
1420
|
"creatives.containersV2.Templates.layoutSelection": "",
|
|
@@ -1597,10 +1531,19 @@
|
|
|
1597
1531
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "",
|
|
1598
1532
|
"creatives.containersV2.WeChat.wechatEditSuccess": "",
|
|
1599
1533
|
"creatives.containersV2.appName": "",
|
|
1534
|
+
"creatives.containersV2.areYouSureText": "",
|
|
1600
1535
|
"creatives.containersV2.audience": "",
|
|
1601
1536
|
"creatives.containersV2.campaignsDashboard": "",
|
|
1602
1537
|
"creatives.containersV2.campaignsHome": "",
|
|
1538
|
+
"creatives.containersV2.cancel": "",
|
|
1539
|
+
"creatives.containersV2.changeOk": "",
|
|
1603
1540
|
"creatives.containersV2.incentive": "",
|
|
1541
|
+
"creatives.containersV2.newOrgName": "",
|
|
1542
|
+
"creatives.containersV2.orgChangeText": "",
|
|
1543
|
+
"creatives.containersV2.orgChangedText": "",
|
|
1544
|
+
"creatives.containersV2.orgRefreshHeading": "",
|
|
1545
|
+
"creatives.containersV2.refreshOrgText": "",
|
|
1546
|
+
"creatives.containersV2.refreshText": "",
|
|
1604
1547
|
"creatives.containersV2.richMedia.Create.Anyone": "",
|
|
1605
1548
|
"creatives.containersV2.richMedia.Create.Author": "",
|
|
1606
1549
|
"creatives.containersV2.richMedia.Create.Content": "",
|
|
@@ -1470,6 +1470,10 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
1470
1470
|
} else if (key === this.props.baseLanguage) {
|
|
1471
1471
|
formData[newTabIndex][key] = {};
|
|
1472
1472
|
_.forEach(val, (subVal, index) => {
|
|
1473
|
+
// if (subVal === 'is_drag_drop' || subVal === 'lang_id' || subVal === 'iso_code' === 'language') {
|
|
1474
|
+
//
|
|
1475
|
+
// formData[newTabIndex][key][index] = formData[0][this.props.baseLanguage][subVal];
|
|
1476
|
+
// } else {
|
|
1473
1477
|
if (index === 'tabKey') {
|
|
1474
1478
|
formData[newTabIndex][key][index] = _.uniqueId();
|
|
1475
1479
|
} else if (index === 'template-content') {
|
|
@@ -3176,6 +3180,10 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
3176
3180
|
console.log('CKEditor Data 2', this.state.formData, this.state.formData[`${this.state.currentTab - 1}`], val, this.state.currentTab, this.state.currentLangTab, langIndex);
|
|
3177
3181
|
const currentLang = ((!_.isEmpty(this.state.formData) && !_.isEmpty(this.state.formData[`${this.state.currentTab - 1}`]) && !_.isEmpty(this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages) && this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages[langIndex]) ? this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages[langIndex] : this.props.baseLanguage) || 'en';
|
|
3178
3182
|
const content = (!_.isEmpty(this.state.formData) && this.state.formData[`${this.state.currentTab - 1}`][currentLang]['template-content'] ? this.state.formData[`${this.state.currentTab - 1}`][currentLang]['template-content'] : '');
|
|
3183
|
+
console.log('ckeditor current lang', currentLang, content);
|
|
3184
|
+
if (this.state.formData[`${this.state.currentTab - 1}`][currentLang].is_drag_drop) {
|
|
3185
|
+
// content = "";
|
|
3186
|
+
}
|
|
3179
3187
|
columns.push(
|
|
3180
3188
|
<CapColumn style={val.colStyle ? val.colStyle : {}} span={val.width}>
|
|
3181
3189
|
<CKEditor
|
|
@@ -69,7 +69,7 @@ const getLineType = ({
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
return {};
|
|
72
|
-
}
|
|
72
|
+
}
|
|
73
73
|
|
|
74
74
|
function SlideBoxContent(props) {
|
|
75
75
|
const {
|
|
@@ -96,7 +96,6 @@ function SlideBoxContent(props) {
|
|
|
96
96
|
cap,
|
|
97
97
|
onResetStep,
|
|
98
98
|
isFullMode,
|
|
99
|
-
editor,
|
|
100
99
|
onCallTaskSubmit,
|
|
101
100
|
setIsLoadingContent,
|
|
102
101
|
showTemplateName,
|
|
@@ -185,7 +184,7 @@ function SlideBoxContent(props) {
|
|
|
185
184
|
} = {},
|
|
186
185
|
template,
|
|
187
186
|
}) => {
|
|
188
|
-
|
|
187
|
+
let previewContent = {};
|
|
189
188
|
previewContent.messageContent = text;
|
|
190
189
|
previewContent.previewImageUrl = previewImageUrl;
|
|
191
190
|
previewContent.selectedSticker = selectedSticker || {
|
|
@@ -367,7 +366,6 @@ function SlideBoxContent(props) {
|
|
|
367
366
|
step={templateStep}
|
|
368
367
|
showNextStep={onCreateNextStep}
|
|
369
368
|
isFullMode={isFullMode}
|
|
370
|
-
editor={editor}
|
|
371
369
|
cap={cap}
|
|
372
370
|
onResetStep={onResetStep}
|
|
373
371
|
showTemplateName={showTemplateName}
|
|
@@ -394,7 +392,6 @@ function SlideBoxContent(props) {
|
|
|
394
392
|
getFormSubscriptionData={getFormData}
|
|
395
393
|
getDefaultTags={type}
|
|
396
394
|
isFullMode={isFullMode}
|
|
397
|
-
editor={editor}
|
|
398
395
|
cap={cap}
|
|
399
396
|
showTemplateName={showTemplateName}
|
|
400
397
|
onValidationFail={onValidationFail}
|
|
@@ -459,7 +456,6 @@ function SlideBoxContent(props) {
|
|
|
459
456
|
messageDetails={messageDetails}
|
|
460
457
|
cap={cap}
|
|
461
458
|
onFacebookSubmit={onFacebookSubmit}
|
|
462
|
-
isFullMode={isFullMode}
|
|
463
459
|
/>
|
|
464
460
|
)
|
|
465
461
|
}
|
|
@@ -255,7 +255,7 @@ class Creatives extends React.Component {
|
|
|
255
255
|
return templateData || null;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
getCreativesData = (channel, template) => { //from creatives to consumers
|
|
258
|
+
getCreativesData = (channel, template, templateRecords) => { //from creatives to consumers
|
|
259
259
|
let templateData = {channel };
|
|
260
260
|
switch (channel) {
|
|
261
261
|
case constants.SMS:
|
|
@@ -265,8 +265,12 @@ class Creatives extends React.Component {
|
|
|
265
265
|
break;
|
|
266
266
|
case constants.EMAIL:
|
|
267
267
|
if (template.value.base) {
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
let emailBase = template.value.base;
|
|
269
|
+
const { html_content } = emailBase || {};
|
|
270
|
+
if (!html_content) {
|
|
271
|
+
emailBase = templateRecords.base;
|
|
272
|
+
}
|
|
273
|
+
templateData = {...templateData, ...emailBase, emailBody: html_content, emailSubject: (emailBase && emailBase.subject) ? emailBase.subject : ''};
|
|
270
274
|
delete templateData.html_content;
|
|
271
275
|
delete templateData.subject;
|
|
272
276
|
}
|
|
@@ -356,7 +360,7 @@ class Creatives extends React.Component {
|
|
|
356
360
|
() => {
|
|
357
361
|
const templateData = this.state.templateData ? this.state.templateData : template; //select existing or create new content
|
|
358
362
|
const channel = templateData.type;
|
|
359
|
-
const creativesData = this.getCreativesData(channel, template);// convers data to consumer understandable format
|
|
363
|
+
const creativesData = this.getCreativesData(channel, template, templateData );// convers data to consumer understandable format
|
|
360
364
|
this.props.getCreativesData(creativesData);// send data to consumer
|
|
361
365
|
},
|
|
362
366
|
);
|
|
@@ -529,7 +533,7 @@ class Creatives extends React.Component {
|
|
|
529
533
|
}
|
|
530
534
|
render() {
|
|
531
535
|
const {slidBoxContent, isGetFormData, showSlideBox, templateData, currentChannel, emailCreateMode, templateStep, isLoadingContent, mobilePushCreateMode, isDiscardMessage, weChatTemplateType, weChatMaptemplateStep} = this.state;
|
|
532
|
-
const {isFullMode, creativesMode, cap, isUploading, channelsToHide, selectedWeChatAccount, forwardedTags, channelsToDisable, selectedOfferDetails, onTestContentClicked, onPreviewContentClicked, getCreativesData, fetchingCmsData
|
|
536
|
+
const {isFullMode, creativesMode, cap, isUploading, channelsToHide, selectedWeChatAccount, forwardedTags, channelsToDisable, selectedOfferDetails, onTestContentClicked, onPreviewContentClicked, getCreativesData, fetchingCmsData} = this.props;
|
|
533
537
|
const mapTemplateCreate = slidBoxContent === 'createTemplate' && weChatTemplateType === MAP_TEMPLATE && templateStep !== 'modeSelection';
|
|
534
538
|
/* TODO: Instead of passing down same props separately to each component down, write common function to these props and pass it accordingly */
|
|
535
539
|
return (
|
|
@@ -602,7 +606,6 @@ class Creatives extends React.Component {
|
|
|
602
606
|
selectedAccount={this.props.selectedAccount}
|
|
603
607
|
onShowTemplates={this.onShowTemplates}
|
|
604
608
|
handleClose={this.handleCloseSlideBox}
|
|
605
|
-
editor={editor}
|
|
606
609
|
/>
|
|
607
610
|
}
|
|
608
611
|
footer={this.shouldShowFooter() &&
|
|
@@ -38,7 +38,7 @@ export function getAllAssets(assetType, queryParams) {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
export function getCmsSetting(cmsType, projectId, cmsMode, langId, isEdmSupport
|
|
41
|
+
export function getCmsSetting(cmsType, projectId, cmsMode, langId, isEdmSupport) {
|
|
42
42
|
return {
|
|
43
43
|
type: types.GET_CMS_EDITOR_DETAILS_REQUEST,
|
|
44
44
|
cmsType,
|
|
@@ -46,7 +46,6 @@ export function getCmsSetting(cmsType, projectId, cmsMode, langId, isEdmSupport,
|
|
|
46
46
|
cmsMode,
|
|
47
47
|
langId,
|
|
48
48
|
isEdmSupport,
|
|
49
|
-
disableBEE,
|
|
50
49
|
};
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -183,15 +183,15 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
183
183
|
this.props.templatesActions.resetTemplateData();
|
|
184
184
|
}
|
|
185
185
|
const isBEESupport = (this.props.location.query.isBEESupport !== "false") || false;
|
|
186
|
-
|
|
187
|
-
if (!_.isEmpty(this.props.Templates.BEETemplate)) {
|
|
188
|
-
if (this.props.Templates.BEETemplate.versions.base.is_drag_drop
|
|
186
|
+
|
|
187
|
+
if (!_.isEmpty(this.props.Templates.BEETemplate) ) {
|
|
188
|
+
if (this.props.Templates.BEETemplate.versions.base.is_drag_drop) {
|
|
189
189
|
this.setState({isDragDrop: true});
|
|
190
190
|
}
|
|
191
191
|
if (this.props.params.id) {
|
|
192
|
-
this.props.actions.getCmsSetting(BEE_PLUGIN, this.props.Templates.BEETemplate._id, 'open', undefined, isBEESupport
|
|
192
|
+
this.props.actions.getCmsSetting(BEE_PLUGIN, this.props.Templates.BEETemplate._id, 'open', undefined, isBEESupport);
|
|
193
193
|
} else if (this.props.location.query.module !== "library" || (this.props.location.query.module === "library" && !this.props.templateData)) {
|
|
194
|
-
this.props.actions.getCmsSetting(BEE_PLUGIN, this.props.Templates.BEETemplate._id, 'create', undefined, isBEESupport
|
|
194
|
+
this.props.actions.getCmsSetting(BEE_PLUGIN, this.props.Templates.BEETemplate._id, 'create', undefined, isBEESupport);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
this.setState({ content: (this.props.Templates.selectedEmailLayout ? this.props.Templates.selectedEmailLayout : ''), formData});
|
|
@@ -214,15 +214,6 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
214
214
|
this.showNext();
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
|
|
218
|
-
checkBeeEditorAllowedForLibrary = () => {
|
|
219
|
-
const { isFullMode = false, editor } = this.props || {};
|
|
220
|
-
if (editor === "BEE" && !isFullMode) {
|
|
221
|
-
return true;
|
|
222
|
-
}
|
|
223
|
-
return false;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
217
|
componentWillReceiveProps(nextProps) {
|
|
227
218
|
// if (this.props.location.query.type === 'embedded') {
|
|
228
219
|
// this.showNext();
|
|
@@ -324,9 +315,8 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
324
315
|
if (nextProps.location.query.module === 'library' && nextProps.isGetFormData) {
|
|
325
316
|
const formData = this.state.formData;
|
|
326
317
|
let isBeeEditor = false;
|
|
327
|
-
const isBEEEnable = this.checkBeeEditorAllowedForLibrary();
|
|
328
318
|
_.forEach(formData[0].selectedLanguages, (language) => {
|
|
329
|
-
if (formData[0][language].is_drag_drop
|
|
319
|
+
if (formData[0][language].is_drag_drop) {
|
|
330
320
|
isBeeEditor = true;
|
|
331
321
|
}
|
|
332
322
|
});
|
|
@@ -359,7 +349,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
359
349
|
const temp = (schema.containers || {})[this.state.currentTab - 1];
|
|
360
350
|
|
|
361
351
|
const { currentTab } = this.state;
|
|
362
|
-
if (nextProps.Email.CmsSettings.isDragDrop
|
|
352
|
+
if (nextProps.Email.CmsSettings.isDragDrop) {
|
|
363
353
|
const beeJson = `BEEeditor${currentTab > 1 ? currentTab : ''}json`;
|
|
364
354
|
const beeToken = `BEEeditor${currentTab > 1 ? currentTab : ''}token`;
|
|
365
355
|
let beeJsonValue = _.get(nextProps, 'Templates.BEETemplate.versions.base.json-content', '');
|
|
@@ -419,8 +409,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
419
409
|
}
|
|
420
410
|
|
|
421
411
|
this.setState({ formData }, () => {
|
|
422
|
-
|
|
423
|
-
this.hideEdmOptions(isDragDrop);
|
|
412
|
+
this.hideEdmOptions(nextProps.Email.CmsSettings.isDragDrop);
|
|
424
413
|
});
|
|
425
414
|
}
|
|
426
415
|
if (nextProps.Email.createTemplateError && !_.isEqual(nextProps.Email.createTemplateError, this.props.Email.createTemplateError)) {
|
|
@@ -480,7 +469,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
480
469
|
if ( !_.isEqual(nextProps.Email.uploadAssetSuccess, this.props.Email.uploadAssetSuccess) && nextProps.Email.uploadAssetSuccess) {
|
|
481
470
|
const isDragDrop = this.state.formData[`${this.state.currentTab - 1}`][this.state.formData[`${this.state.currentTab - 1}`].activeTab].is_drag_drop;
|
|
482
471
|
const isBEESupport = (this.props.location.query.isBEESupport !== "false") || false;
|
|
483
|
-
if (isDragDrop && isBEESupport
|
|
472
|
+
if (isDragDrop && isBEESupport) {
|
|
484
473
|
const evtData = JSON.parse(this.edmEvent.data);
|
|
485
474
|
if (evtData.action === 'editBackground') {
|
|
486
475
|
this.edmEvent.source.postMessage(JSON.stringify({
|
|
@@ -526,7 +515,8 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
526
515
|
}
|
|
527
516
|
if (!_.isEmpty(nextProps.Email.templateDetails) && _.isEmpty(this.props.Email.templateDetails) ) {
|
|
528
517
|
const base = nextProps.Email.templateDetails.versions.base;
|
|
529
|
-
|
|
518
|
+
const activeBase = nextProps.Email.templateDetails.versions.base[base.activeTab];
|
|
519
|
+
if (activeBase && activeBase.is_drag_drop) {
|
|
530
520
|
this.setState({isDragDrop: true});
|
|
531
521
|
}
|
|
532
522
|
}
|
|
@@ -591,7 +581,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
591
581
|
//this.resetCkEditorInstance(data, formData);
|
|
592
582
|
const schema = _.cloneDeep(this.state.schema);
|
|
593
583
|
const container = schema.containers[`${data - 1}`];
|
|
594
|
-
if (formData[`${data - 1}`][formData[`${data - 1}`].activeTab].is_drag_drop
|
|
584
|
+
if (formData[`${data - 1}`][formData[`${data - 1}`].activeTab].is_drag_drop) {
|
|
595
585
|
container.tabBarExtraContent.sections[0].inputFields[0].cols[4].content.sections[0].inputFields[3].cols[0].style = {display: ""};
|
|
596
586
|
container.tabBarExtraContent.sections[0].inputFields[0].cols[2].style.display = "none";
|
|
597
587
|
} else {
|
|
@@ -616,7 +606,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
616
606
|
const formData = _.cloneDeep(this.state.formData);
|
|
617
607
|
const isBEESupport = (this.props.location.query.isBEESupport !== "false") || false;
|
|
618
608
|
|
|
619
|
-
if (isDragDrop && isBEESupport
|
|
609
|
+
if (isDragDrop && isBEESupport) {
|
|
620
610
|
let msg = {};
|
|
621
611
|
if (data === "unsubscribe") {
|
|
622
612
|
const anchor = `<a href='{{${data}}}'>${data}</a>`;
|
|
@@ -659,9 +649,9 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
659
649
|
const base = formData.base || {};
|
|
660
650
|
const isDragDrop = _.get(base[base.activeTab], 'is_drag_drop');
|
|
661
651
|
let editorType = '';
|
|
662
|
-
if ( isDragDrop === true
|
|
652
|
+
if ( isDragDrop === true) {
|
|
663
653
|
editorType = 'edmEditor';
|
|
664
|
-
} else if (isDragDrop === false
|
|
654
|
+
} else if (isDragDrop === false) {
|
|
665
655
|
editorType = 'ckEditor';
|
|
666
656
|
}
|
|
667
657
|
GA.timeTracker.stopTimer(isEdit ? TRACK_EDIT_EMAIL : TRACK_CREATE_EMAIL, {
|
|
@@ -716,7 +706,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
716
706
|
_.forEach(formData, (val, index) => {
|
|
717
707
|
if (!isNaN(index)) {
|
|
718
708
|
_.forEach(val.selectedLanguages, (language) => {
|
|
719
|
-
if (val[language].is_drag_drop
|
|
709
|
+
if (val[language].is_drag_drop) {
|
|
720
710
|
that.props.actions.getCmsData(BEE_PLUGIN, id, language);
|
|
721
711
|
}
|
|
722
712
|
});
|
|
@@ -917,7 +907,6 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
917
907
|
if (this.props.isFullMode) {
|
|
918
908
|
this.props.showTemplateName({formData, onFormDataChange: this.onFormDataChange});
|
|
919
909
|
}
|
|
920
|
-
const isBEEAppEnable = this.checkBeeEditorAllowedForLibrary();
|
|
921
910
|
_.forEach((editData.versions.base.selectedLanguages), (language) => {
|
|
922
911
|
// if (formData[this.state.currentTab - 1].tabKey === formData[this.state.currentTab - 1][language].tabKey) {
|
|
923
912
|
// formData[this.state.currentTab - 1].activeTab = language;
|
|
@@ -925,8 +914,8 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
925
914
|
// if (formData.base.tabKey === formData.base[language].tabKey) {
|
|
926
915
|
// formData.base.activeTab = language;
|
|
927
916
|
// }
|
|
928
|
-
if (language && editData.versions.base[language].is_drag_drop
|
|
929
|
-
this.props.actions.getCmsSetting(BEE_PLUGIN, editData._id, 'open', language, isBEESupport
|
|
917
|
+
if (language && editData.versions.base[language].is_drag_drop) {
|
|
918
|
+
this.props.actions.getCmsSetting(BEE_PLUGIN, editData._id, 'open', language, isBEESupport);
|
|
930
919
|
}
|
|
931
920
|
});
|
|
932
921
|
|
|
@@ -1009,12 +998,11 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
1009
998
|
}
|
|
1010
999
|
saveValidationData = () => {
|
|
1011
1000
|
let saveCount = 0;
|
|
1012
|
-
const isBeeEnable = this.checkBeeEditorAllowedForLibrary();
|
|
1013
1001
|
this.setState({saveEdmDataMode: 'validation', saveCount: 0, cmsDataCount: 0}, () => {
|
|
1014
1002
|
_.forEach(this.state.formData, (newdata, index) => {
|
|
1015
1003
|
if (!isNaN(index)) {
|
|
1016
1004
|
_.forEach(newdata.selectedLanguages, (language) => {
|
|
1017
|
-
if (newdata[language].is_drag_drop &&
|
|
1005
|
+
if (newdata[language].is_drag_drop && ((parseInt(index, 10) + 1) === this.state.currentTab)) {
|
|
1018
1006
|
saveCount += 1;
|
|
1019
1007
|
}
|
|
1020
1008
|
});
|
|
@@ -1131,14 +1119,14 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
1131
1119
|
|
|
1132
1120
|
copyPrimaryLanguage = () => {
|
|
1133
1121
|
const isEdmSupport = (this.props.location.query.isEdmSupport !== "false") || false;
|
|
1134
|
-
|
|
1122
|
+
|
|
1135
1123
|
this.setState({addLanguageType: "copyPrimaryLanguage"}, () => {
|
|
1136
1124
|
this.setState({showModal: false});
|
|
1137
1125
|
const formData = _.cloneDeep(this.state.formData);
|
|
1138
1126
|
const currentTab = this.state.currentTab - 1;
|
|
1139
1127
|
const baseLanguage = this.props.currentOrgDetails.basic_details.base_language ? this.props.currentOrgDetails.basic_details.base_language : 'en';
|
|
1140
|
-
if (formData[currentTab][baseLanguage].is_drag_drop
|
|
1141
|
-
this.props.actions.getCmsSetting(BEE_PLUGIN, formData[currentTab][baseLanguage].drag_drop_id, 'duplicate', baseLanguage, isEdmSupport
|
|
1128
|
+
if (formData[currentTab][baseLanguage].is_drag_drop) {
|
|
1129
|
+
this.props.actions.getCmsSetting(BEE_PLUGIN, formData[currentTab][baseLanguage].drag_drop_id, 'duplicate', baseLanguage, isEdmSupport);
|
|
1142
1130
|
}
|
|
1143
1131
|
});
|
|
1144
1132
|
}
|
|
@@ -1289,34 +1277,25 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
1289
1277
|
base: {},
|
|
1290
1278
|
secondary_templates: [],
|
|
1291
1279
|
};
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
return;
|
|
1298
|
-
}
|
|
1299
|
-
tmpData.html_content = content['template-content'];
|
|
1300
|
-
tmpData.json_content = content['json-content'];
|
|
1301
|
-
tmpData.is_drag_drop = content.is_drag_drop;
|
|
1302
|
-
tmpData.lang_id = content.lang_id;
|
|
1303
|
-
tmpData.iso_code = content.iso_code;
|
|
1304
|
-
tmpData.language = content.language;
|
|
1305
|
-
if (content.id) {
|
|
1306
|
-
tmpData.id = content.id;
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
if (index === this.props.currentOrgDetails.basic_details.base_language) {
|
|
1310
|
-
newFormData.base = _.cloneDeep(tmpData);
|
|
1311
|
-
}
|
|
1312
|
-
newFormData.secondary_templates.push({template_data: tmpData});
|
|
1280
|
+
const content = formData.base[formData.base.activeTab];
|
|
1281
|
+
const tmpData = {};
|
|
1282
|
+
if (content && content.constructor === Object) {
|
|
1283
|
+
if (_.isEmpty(content)) {
|
|
1284
|
+
return;
|
|
1313
1285
|
}
|
|
1314
|
-
|
|
1315
|
-
|
|
1286
|
+
tmpData.html_content = content['template-content'];
|
|
1287
|
+
tmpData.json_content = content['json-content'];
|
|
1288
|
+
tmpData.is_drag_drop = content.is_drag_drop;
|
|
1289
|
+
tmpData.lang_id = content.lang_id;
|
|
1290
|
+
tmpData.iso_code = content.iso_code;
|
|
1291
|
+
tmpData.language = content.language;
|
|
1292
|
+
if (content.id) {
|
|
1293
|
+
tmpData.id = content.id;
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
newFormData.base = _.cloneDeep(tmpData);
|
|
1297
|
+
newFormData.secondary_templates.push({template_data: tmpData});
|
|
1316
1298
|
newFormData.base.subject = formData['template-subject'];
|
|
1317
|
-
// }
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
1299
|
return newFormData;
|
|
1321
1300
|
}
|
|
1322
1301
|
|
|
@@ -1525,7 +1504,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
1525
1504
|
const data = _.find(this.props.Email.assetList, {_id: id});
|
|
1526
1505
|
|
|
1527
1506
|
if (data) {
|
|
1528
|
-
if (isDragDrop && isEdmSupport
|
|
1507
|
+
if (isDragDrop && isEdmSupport) {
|
|
1529
1508
|
const evtData = JSON.parse(this.edmEvent.data);
|
|
1530
1509
|
if (evtData.action === 'editBackground') {
|
|
1531
1510
|
this.edmEvent.source.postMessage(JSON.stringify({
|
|
@@ -1560,7 +1539,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
1560
1539
|
|
|
1561
1540
|
toggleEmailPreview = () => {
|
|
1562
1541
|
const isDragDrop = this.state.formData[`${this.state.currentTab - 1}`][this.state.formData[`${this.state.currentTab - 1}`].activeTab].is_drag_drop;
|
|
1563
|
-
if (isDragDrop && !this.state.showEmailPreview
|
|
1542
|
+
if (isDragDrop && !this.state.showEmailPreview) {
|
|
1564
1543
|
this.handleEdmSave();
|
|
1565
1544
|
this.setState({mode: "preview", gettingPreviewData: true});
|
|
1566
1545
|
} else if (this.state.showEmailPreview) {
|
|
@@ -2139,10 +2118,9 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
2139
2118
|
"language": this.supportedLanguages[languageIndex].language,
|
|
2140
2119
|
"template-content": templates.html_content,
|
|
2141
2120
|
};
|
|
2142
|
-
|
|
2143
|
-
if (templates.drag_drop_id && isBEEAppEnable) {
|
|
2121
|
+
if (templates.drag_drop_id) {
|
|
2144
2122
|
tempData.drag_drop_id = templates.drag_drop_id;
|
|
2145
|
-
this.props.actions.getCmsSetting(BEE_PLUGIN, tempData._id, 'open', tempData.iso_code, isEdmSupport
|
|
2123
|
+
this.props.actions.getCmsSetting(BEE_PLUGIN, tempData._id, 'open', tempData.iso_code, isEdmSupport);
|
|
2146
2124
|
}
|
|
2147
2125
|
// formData.usingTabContainer = true;
|
|
2148
2126
|
// formData.tabCount = 1;
|
|
@@ -2166,10 +2144,9 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
2166
2144
|
|
|
2167
2145
|
this.setState({formData, loading: false, injectedTags: data.tags, tabKey, isDragDrop: (data.base.is_drag_drop !== 0 )}, () => {
|
|
2168
2146
|
// this.setState({tabKey: ''});
|
|
2169
|
-
const isBEEEnable = this.checkBeeEditorAllowedForLibrary();
|
|
2170
2147
|
_.forEach(formData[0].selectedLanguages, (language) => {
|
|
2171
|
-
if (formData[0][language].is_drag_drop
|
|
2172
|
-
this.props.actions.getCmsSetting(BEE_PLUGIN, formData[0][language].drag_drop_id, 'open', language, isEdmSupport
|
|
2148
|
+
if (formData[0][language].is_drag_drop) {
|
|
2149
|
+
this.props.actions.getCmsSetting(BEE_PLUGIN, formData[0][language].drag_drop_id, 'open', language, isEdmSupport);
|
|
2173
2150
|
}
|
|
2174
2151
|
});
|
|
2175
2152
|
});
|
|
@@ -2506,8 +2483,8 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
2506
2483
|
// const isEdmSupport = (this.props.location.query.isEdmSupport) ? this.props.location.query.isEdmSupport : true;
|
|
2507
2484
|
// let getQuery = '';
|
|
2508
2485
|
const isEdmSupport = (this.props.location.query.isEdmSupport !== "false") || false;
|
|
2509
|
-
|
|
2510
|
-
this.props.actions.getCmsSetting(BEE_PLUGIN, data._id, 'create', this.state.formData[this.state.currentTab - 1].activeTab, isEdmSupport
|
|
2486
|
+
|
|
2487
|
+
this.props.actions.getCmsSetting(BEE_PLUGIN, data._id, 'create', this.state.formData[this.state.currentTab - 1].activeTab, isEdmSupport);
|
|
2511
2488
|
// this.props.templatesActions.setEdmTemplate(data);
|
|
2512
2489
|
this.toggleEdmEmailTemplateSelection();
|
|
2513
2490
|
// if (type && type.toLowerCase() === 'email') {
|
|
@@ -51,9 +51,9 @@ export function* getAllAssets(assetType, queryParams) {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
export function* getCmsSetting({cmsType, projectId, cmsMode, langId, isEdmSupport
|
|
54
|
+
export function* getCmsSetting({cmsType, projectId, cmsMode, langId, isEdmSupport}) {
|
|
55
55
|
try {
|
|
56
|
-
const result = yield call(Api.getCmsTemplateSettingsV2, cmsType, projectId, cmsMode, langId, isEdmSupport
|
|
56
|
+
const result = yield call(Api.getCmsTemplateSettingsV2, cmsType, projectId, cmsMode, langId, isEdmSupport);
|
|
57
57
|
|
|
58
58
|
yield put({ type: types.GET_CMS_EDITOR_DETAILS_SUCCESS, settings: result.data.response.cmsDetails });
|
|
59
59
|
} catch (error) {
|
|
@@ -196,7 +196,6 @@ export class EmailWrapper extends React.Component { // eslint-disable-line react
|
|
|
196
196
|
onPreviewContentClicked,
|
|
197
197
|
onTestContentClicked,
|
|
198
198
|
cmsTemplatesLoader,
|
|
199
|
-
editor,
|
|
200
199
|
} = this.props;
|
|
201
200
|
const {
|
|
202
201
|
templateName,
|
|
@@ -260,7 +259,6 @@ export class EmailWrapper extends React.Component { // eslint-disable-line react
|
|
|
260
259
|
selectedOfferDetails={selectedOfferDetails}
|
|
261
260
|
onPreviewContentClicked={onPreviewContentClicked}
|
|
262
261
|
onTestContentClicked={onTestContentClicked}
|
|
263
|
-
editor={editor}
|
|
264
262
|
/>}
|
|
265
263
|
{!isShowEmailCreate && (
|
|
266
264
|
<CmsTemplatesComponent
|
|
@@ -52,7 +52,6 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
|
|
|
52
52
|
//'wechat': {content: this.getTemplatesComponent('wechat'), tab: 'Wechat', key: 'wechat'},
|
|
53
53
|
mPush: {content: <></>, tab: intl.formatMessage(messages.pushNotification), key: 'mobilepush'},
|
|
54
54
|
line: {content: <></>, tab: intl.formatMessage(messages.line), key: 'line'},
|
|
55
|
-
|
|
56
55
|
};
|
|
57
56
|
let filteredPanes = Object.keys(defaultPanes)
|
|
58
57
|
.filter((key) => !channelsToHide.includes(key)).reduce((obj = [], key) => {
|
|
@@ -153,12 +152,14 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
|
|
|
153
152
|
);
|
|
154
153
|
}
|
|
155
154
|
|
|
156
|
-
getLineComponent = () =>
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
155
|
+
getLineComponent = () => {
|
|
156
|
+
return (
|
|
157
|
+
<Line
|
|
158
|
+
{...this.props}
|
|
159
|
+
isCreateFlow
|
|
160
160
|
/>
|
|
161
161
|
)
|
|
162
|
+
}
|
|
162
163
|
|
|
163
164
|
getTemplatesComponent(channel) {
|
|
164
165
|
// const templates = this.props.Templates[`${channel}Templates`];
|