@capillarytech/creatives-library 6.13.8 → 6.14.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/app.js +2 -5
- package/components/FormBuilder/index.js +2 -6
- package/containers/Ebill/index.js +0 -3
- package/containers/Email/index.js +8 -16
- package/containers/Sms/Create/index.js +1 -2
- package/containers/Templates/index.js +3 -0
- package/index.js +1 -8
- package/package.json +2 -2
- package/reducers.js +0 -2
- package/routes.js +1 -7
- package/services/api.js +3 -7
- package/translations/en.json +107 -50
- package/translations/zh.json +107 -50
- package/v2Components/FormBuilder/index.js +11 -5
- package/v2Components/TemplatePreview/_templatePreview.scss +2 -8
- package/v2Components/TemplatePreview/index.js +18 -104
- package/v2Containers/App/constants.js +1 -1
- package/v2Containers/CreativesContainer/SlideBoxContent.js +4 -71
- package/v2Containers/CreativesContainer/constants.js +0 -2
- package/v2Containers/CreativesContainer/index.js +3 -31
- package/v2Containers/Email/actions.js +1 -2
- package/v2Containers/Email/index.js +29 -45
- package/v2Containers/Email/sagas.js +2 -2
- package/v2Containers/EmailWrapper/index.js +0 -2
- package/v2Containers/Templates/_templates.scss +0 -57
- package/v2Containers/Templates/index.js +6 -59
- package/v2Containers/TemplatesV2/index.js +7 -14
- package/v2Containers/TemplatesV2/messages.js +0 -4
- package/v2Containers/WeChat/MapTemplates/index.js +1 -1
- package/assets/viber.png +0 -0
- package/utils/ignoredErrorMessages.js +0 -4
- package/v2Containers/Viber/_viber.scss +0 -3
- package/v2Containers/Viber/actions.js +0 -74
- package/v2Containers/Viber/constants.js +0 -30
- package/v2Containers/Viber/index.js +0 -707
- package/v2Containers/Viber/messages.js +0 -137
- package/v2Containers/Viber/reducer.js +0 -84
- package/v2Containers/Viber/sagas.js +0 -107
- package/v2Containers/Viber/selectors.js +0 -21
package/translations/zh.json
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"app.components.TemplatePreview.includesOptoutTag": "",
|
|
3
3
|
"app.components.TemplatePreview.optoutCharactersTotal": "",
|
|
4
|
-
"creatives.components.AccessForbidden.forbiddenDesc": "",
|
|
5
|
-
"creatives.components.AccessForbidden.forbiddenHeader": "",
|
|
6
4
|
"creatives.components.BreadCrumbs.header": "",
|
|
7
5
|
"creatives.components.CapTagList.Cancel": "",
|
|
8
6
|
"creatives.components.CapTagList.Ok": "",
|
|
@@ -145,7 +143,7 @@
|
|
|
145
143
|
"creatives.componentsV2.ImagePreview.close": "",
|
|
146
144
|
"creatives.componentsV2.ImagePreview.loadingImage": "",
|
|
147
145
|
"creatives.componentsV2.NavigationBar.businessProcesses": "",
|
|
148
|
-
"creatives.componentsV2.NavigationBar.
|
|
146
|
+
"creatives.componentsV2.NavigationBar.campaign": "",
|
|
149
147
|
"creatives.componentsV2.NavigationBar.header": "",
|
|
150
148
|
"creatives.componentsV2.NavigationBar.insights": "",
|
|
151
149
|
"creatives.componentsV2.NavigationBar.logout": "",
|
|
@@ -174,11 +172,9 @@
|
|
|
174
172
|
"creatives.componentsV2.TemplatePreview.charactersPerSms": "",
|
|
175
173
|
"creatives.componentsV2.TemplatePreview.charactersTotal": "",
|
|
176
174
|
"creatives.componentsV2.TemplatePreview.close": "",
|
|
177
|
-
"creatives.componentsV2.TemplatePreview.playVideo": "",
|
|
178
175
|
"creatives.componentsV2.TemplatePreview.preview": "",
|
|
179
176
|
"creatives.componentsV2.TemplatePreview.previewGenerated": "",
|
|
180
177
|
"creatives.componentsV2.TemplatePreview.previewGenerationMessage": "",
|
|
181
|
-
"creatives.componentsV2.TemplatePreview.showDetails": "",
|
|
182
178
|
"creatives.componentsV2.TemplatePreview.sms": "",
|
|
183
179
|
"creatives.componentsV2.TemplatePreview.smsFormatType": "",
|
|
184
180
|
"creatives.componentsV2.TemplatePreview.smsIcon": "",
|
|
@@ -251,6 +247,8 @@
|
|
|
251
247
|
"creatives.containers.Create.graphic_details_page": "",
|
|
252
248
|
"creatives.containers.Create.header": "",
|
|
253
249
|
"creatives.containers.Create.http_example": "",
|
|
250
|
+
"creatives.containers.Create.imageGallery": "",
|
|
251
|
+
"creatives.containers.Create.lineImageIncorrectSize": "",
|
|
254
252
|
"creatives.containers.Create.markFinalVersionLabel": "",
|
|
255
253
|
"creatives.containers.Create.maxContentCount": "",
|
|
256
254
|
"creatives.containers.Create.messageLabel": "",
|
|
@@ -268,9 +266,17 @@
|
|
|
268
266
|
"creatives.containers.Create.sourceLinkEmpty": "",
|
|
269
267
|
"creatives.containers.Create.tagsErrorMessage": "",
|
|
270
268
|
"creatives.containers.Create.tagsLabel": "",
|
|
269
|
+
"creatives.containers.Create.templateAddTag": "",
|
|
271
270
|
"creatives.containers.Create.templateDataNotValid": "",
|
|
272
271
|
"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": "",
|
|
273
278
|
"creatives.containers.Create.templateNamePlaceHolder": "",
|
|
279
|
+
"creatives.containers.Create.templatePlaceholder": "",
|
|
274
280
|
"creatives.containers.Create.titleCharacterCount": "",
|
|
275
281
|
"creatives.containers.Create.titleEmpty": "",
|
|
276
282
|
"creatives.containers.Create.titleNameRepeated": "",
|
|
@@ -1083,6 +1089,102 @@
|
|
|
1083
1089
|
"creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveDescription": "",
|
|
1084
1090
|
"creatives.containersV2.FacebookMarketingObjective.fbMarketingObjectiveDone": "",
|
|
1085
1091
|
"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": "",
|
|
1086
1188
|
"creatives.containersV2.LineContainer.addMessageButtonLabel": "",
|
|
1087
1189
|
"creatives.containersV2.LineContainer.cancelButtonLabel": "",
|
|
1088
1190
|
"creatives.containersV2.LineContainer.changeAccount": "",
|
|
@@ -1091,7 +1193,6 @@
|
|
|
1091
1193
|
"creatives.containersV2.LineContainer.lineAccount": "",
|
|
1092
1194
|
"creatives.containersV2.LineContainer.lineAccountHeading": "",
|
|
1093
1195
|
"creatives.containersV2.LineContainer.lineAccountHeadingChangeLabel": "",
|
|
1094
|
-
"creatives.containersV2.LineContainer.lineAccountLabel": "",
|
|
1095
1196
|
"creatives.containersV2.LineContainer.lineCreateNotification": "",
|
|
1096
1197
|
"creatives.containersV2.LineContainer.lineCreativeDescription": "",
|
|
1097
1198
|
"creatives.containersV2.LineContainer.lineCreativeTitle": "",
|
|
@@ -1183,39 +1284,6 @@
|
|
|
1183
1284
|
"creatives.containersV2.LineText.textMessageSelectTemplate": "",
|
|
1184
1285
|
"creatives.containersV2.LineText.textMessageTitleLabel": "",
|
|
1185
1286
|
"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": "",
|
|
1219
1287
|
"creatives.containersV2.LineWrapper.changeModalDescription": "",
|
|
1220
1288
|
"creatives.containersV2.LineWrapper.changeModalLabel": "",
|
|
1221
1289
|
"creatives.containersV2.LineWrapper.changeModalTitle": "",
|
|
@@ -1226,7 +1294,6 @@
|
|
|
1226
1294
|
"creatives.containersV2.LineWrapper.stickerLabel": "",
|
|
1227
1295
|
"creatives.containersV2.LineWrapper.templateLabel": "",
|
|
1228
1296
|
"creatives.containersV2.LineWrapper.textLabel": "",
|
|
1229
|
-
"creatives.containersV2.LineWrapper.videoLabel": "",
|
|
1230
1297
|
"creatives.containersV2.Login.header": "",
|
|
1231
1298
|
"creatives.containersV2.Login.invalidCredential": "",
|
|
1232
1299
|
"creatives.containersV2.Login.loginPage": "",
|
|
@@ -1414,7 +1481,6 @@
|
|
|
1414
1481
|
"creatives.containersV2.Templates.header": "",
|
|
1415
1482
|
"creatives.containersV2.Templates.imageCarouselTemplate": "",
|
|
1416
1483
|
"creatives.containersV2.Templates.imageMapTemplate": "",
|
|
1417
|
-
"creatives.containersV2.Templates.imageMapVideoTemplate": "",
|
|
1418
1484
|
"creatives.containersV2.Templates.imageTemplate": "",
|
|
1419
1485
|
"creatives.containersV2.Templates.invalidUploadFileError": "",
|
|
1420
1486
|
"creatives.containersV2.Templates.layoutSelection": "",
|
|
@@ -1531,19 +1597,10 @@
|
|
|
1531
1597
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "",
|
|
1532
1598
|
"creatives.containersV2.WeChat.wechatEditSuccess": "",
|
|
1533
1599
|
"creatives.containersV2.appName": "",
|
|
1534
|
-
"creatives.containersV2.areYouSureText": "",
|
|
1535
1600
|
"creatives.containersV2.audience": "",
|
|
1536
1601
|
"creatives.containersV2.campaignsDashboard": "",
|
|
1537
1602
|
"creatives.containersV2.campaignsHome": "",
|
|
1538
|
-
"creatives.containersV2.cancel": "",
|
|
1539
|
-
"creatives.containersV2.changeOk": "",
|
|
1540
1603
|
"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": "",
|
|
1547
1604
|
"creatives.containersV2.richMedia.Create.Anyone": "",
|
|
1548
1605
|
"creatives.containersV2.richMedia.Create.Author": "",
|
|
1549
1606
|
"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') {
|
|
@@ -2362,9 +2366,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
2362
2366
|
this.renderTextAreaContent(styling, columns, val, isVersionEnable, rows, cols, val.offset);
|
|
2363
2367
|
break;
|
|
2364
2368
|
case "contentPreview":
|
|
2365
|
-
|
|
2366
|
-
const tab = formData && formData[currentTab - 1];
|
|
2367
|
-
content = isVersionEnable ? tab && tab['sms-editor'] : formData && formData['sms-editor'];
|
|
2369
|
+
content = isVersionEnable ? this.state.formData[this.state.currentTab - 1]['sms-editor'] : this.state.formData['sms-editor'];
|
|
2368
2370
|
charList = updateCharCount(content).char_list;
|
|
2369
2371
|
columns.push(<CapColumn id={val.id} className={"preview-chars"} span={val.width}>
|
|
2370
2372
|
{charList.map((char) => char)}
|
|
@@ -3177,7 +3179,11 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
3177
3179
|
}
|
|
3178
3180
|
console.log('CKEditor Data 2', this.state.formData, this.state.formData[`${this.state.currentTab - 1}`], val, this.state.currentTab, this.state.currentLangTab, langIndex);
|
|
3179
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';
|
|
3180
|
-
const content = (!_.isEmpty(this.state.formData) && this.state.formData[`${this.state.currentTab - 1}`]
|
|
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
|
+
}
|
|
3181
3187
|
columns.push(
|
|
3182
3188
|
<CapColumn style={val.colStyle ? val.colStyle : {}} span={val.width}>
|
|
3183
3189
|
<CKEditor
|
|
@@ -3200,7 +3206,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
3200
3206
|
}
|
|
3201
3207
|
}
|
|
3202
3208
|
const { currentTab, formData } = this.state;
|
|
3203
|
-
const supportedLanguages =
|
|
3209
|
+
const supportedLanguages = formData[currentTab - 1].selectedLanguages;
|
|
3204
3210
|
const currentLang = supportedLanguages[langTab - 1];
|
|
3205
3211
|
|
|
3206
3212
|
let beeJson = '',
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
left: 23%;
|
|
22
22
|
width: 42%;
|
|
23
23
|
height: 336px;
|
|
24
|
+
display: -webkit-box;
|
|
25
|
+
display: -ms-flexbox;
|
|
24
26
|
display: flex;
|
|
25
27
|
|
|
26
28
|
.sms-icon{
|
|
@@ -49,14 +51,6 @@
|
|
|
49
51
|
left: 36px;
|
|
50
52
|
margin-top: -6px;
|
|
51
53
|
}
|
|
52
|
-
}
|
|
53
|
-
&.viber-preview{
|
|
54
|
-
width: 43%;
|
|
55
|
-
.message-pop {
|
|
56
|
-
width: 80%;
|
|
57
|
-
left: 36px;
|
|
58
|
-
margin-top: -6px;
|
|
59
|
-
}
|
|
60
54
|
}
|
|
61
55
|
|
|
62
56
|
.message-pop{
|
|
@@ -16,19 +16,15 @@ import {updateCharCount} from '../../utils/smsCharCountV2';
|
|
|
16
16
|
import messages from './messages';
|
|
17
17
|
import { WECHAT } from '../../v2Containers/CreativesContainer/constants';
|
|
18
18
|
import Carousel from '../Carousel';
|
|
19
|
-
import { VIBER } from '../../v2Containers/App/constants';
|
|
20
19
|
const wechatBodyNew = require('./assets/images/wechat_mobile_android.svg');
|
|
21
20
|
const smsMobileAndroid = require('./assets/images/sms_mobile_android.svg');
|
|
22
21
|
const lineMobileAndroid = require('../../assets/line.png');
|
|
23
|
-
const viberMobileAndroid = require('../../assets/viber.png');
|
|
24
|
-
|
|
25
22
|
const lineImgPlaceholder = require('../../assets/line-image-placeholder.svg');
|
|
26
23
|
const lineStickerPlaceholder = require('../../assets/smiley-placeholder.svg');
|
|
27
24
|
const lineVideoPlaceholder = require('../../assets/rich-video-placeholder.svg');
|
|
28
25
|
const androidPushMessagePhone = require('./assets/images/androidPushMessage.svg');
|
|
29
26
|
const iPhonePushMessagePhone = require('./assets/images/iPhonePushMessage.svg');
|
|
30
|
-
|
|
31
|
-
import { CAP_COLOR_03, CAP_WHITE, FONT_COLOR_01, CAP_G08, CAP_G06, CAP_G15, CAP_PURPLE01, CAP_G16 } from '@capillarytech/cap-ui-library/styled/variables';
|
|
27
|
+
import { CAP_COLOR_03, CAP_WHITE, FONT_COLOR_01, CAP_G08, CAP_G06 } from '@capillarytech/cap-ui-library/styled/variables';
|
|
32
28
|
import { TEMPLATE, IMAGE_CAROUSEL, IMAGE, STICKER, TEXT, IMAGE_MAP, VIDEO } from '../../v2Containers/Line/Container/constants';
|
|
33
29
|
|
|
34
30
|
class TemplatePreview extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
@@ -131,8 +127,7 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
|
|
|
131
127
|
|
|
132
128
|
render() {
|
|
133
129
|
let content = channel && channel.toLowerCase() === 'sms' ? [this.props.content] : this.props.content;
|
|
134
|
-
const { channel, showTestAndPreviewIcon, module
|
|
135
|
-
const { buttonText, imageURL, messageContent: viberMessageContent } = content || {};
|
|
130
|
+
const { channel, showTestAndPreviewIcon, module} = this.props;
|
|
136
131
|
let smsDetails = {};
|
|
137
132
|
// let smsText = '';
|
|
138
133
|
if (this.props.content && this.props.charCounterEnabled) {
|
|
@@ -160,11 +155,11 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
|
|
|
160
155
|
});
|
|
161
156
|
}
|
|
162
157
|
const disablePreviewAndTest = this.props.channel === 'MOBILEPUSH' ? !this.props.content.header : (this.props.channel === 'SMS' ? !this.props.content : false);
|
|
163
|
-
const showTestAndPreview = showTestAndPreviewIcon &&
|
|
158
|
+
const showTestAndPreview = showTestAndPreviewIcon &&
|
|
164
159
|
channel !== WECHAT &&
|
|
165
160
|
['outbound', 'library'].includes(module);
|
|
166
161
|
|
|
167
|
-
const renderLineMultiText = (content)
|
|
162
|
+
const renderLineMultiText = (content) => {
|
|
168
163
|
let textCount = 0;
|
|
169
164
|
return content.map((item) => {
|
|
170
165
|
const { type, messageContent = '' } = item || {};
|
|
@@ -175,17 +170,12 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
|
|
|
175
170
|
{this.props.intl.formatMessage(messages.textMessageLabel)}
|
|
176
171
|
{textCount}: ({messageContent.length}/{1600} {this.props.intl.formatMessage(messages.textMessageCharacter)})
|
|
177
172
|
</p>
|
|
178
|
-
)
|
|
173
|
+
)
|
|
179
174
|
}
|
|
180
|
-
return null
|
|
175
|
+
return null
|
|
181
176
|
});
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
"padding": '3.5px 0 0',
|
|
185
|
-
'border-radius': '8px',
|
|
186
|
-
'background-color': CAP_G15,
|
|
187
|
-
'width': '79%',
|
|
188
|
-
};
|
|
177
|
+
}
|
|
178
|
+
|
|
189
179
|
const getVideoContent = ({
|
|
190
180
|
video,
|
|
191
181
|
actionUrl,
|
|
@@ -255,7 +245,7 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
|
|
|
255
245
|
/>
|
|
256
246
|
)
|
|
257
247
|
}
|
|
258
|
-
</div>
|
|
248
|
+
</div>
|
|
259
249
|
);
|
|
260
250
|
|
|
261
251
|
return (
|
|
@@ -403,8 +393,7 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
|
|
|
403
393
|
marginLeft: 40,
|
|
404
394
|
}}
|
|
405
395
|
>
|
|
406
|
-
<div
|
|
407
|
-
className="sms-icon"
|
|
396
|
+
<div className="sms-icon"
|
|
408
397
|
style={{
|
|
409
398
|
left: 0,
|
|
410
399
|
top: 8,
|
|
@@ -412,7 +401,7 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
|
|
|
412
401
|
width: 20,
|
|
413
402
|
height: 20,
|
|
414
403
|
background: CAP_COLOR_03,
|
|
415
|
-
paddingRight: 5
|
|
404
|
+
paddingRight: 5
|
|
416
405
|
}}
|
|
417
406
|
>
|
|
418
407
|
{this.props.LineAccountName}
|
|
@@ -475,7 +464,7 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
|
|
|
475
464
|
},
|
|
476
465
|
}}
|
|
477
466
|
/>
|
|
478
|
-
</div>
|
|
467
|
+
</div>
|
|
479
468
|
);
|
|
480
469
|
}
|
|
481
470
|
if (type === VIDEO) {
|
|
@@ -506,7 +495,7 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
|
|
|
506
495
|
},
|
|
507
496
|
}}
|
|
508
497
|
/>
|
|
509
|
-
</div>
|
|
498
|
+
</div>
|
|
510
499
|
);
|
|
511
500
|
}
|
|
512
501
|
if (type === STICKER && selectedSticker) {
|
|
@@ -521,7 +510,7 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
|
|
|
521
510
|
alignItems: 'center',
|
|
522
511
|
}}
|
|
523
512
|
>
|
|
524
|
-
<CapImage
|
|
513
|
+
<CapImage
|
|
525
514
|
src={selectedSticker.stickerUrl}
|
|
526
515
|
style={{maxWidth: '100%', marginBottom: 5 }}
|
|
527
516
|
rest={{
|
|
@@ -530,11 +519,11 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
|
|
|
530
519
|
marginBottom: 5,
|
|
531
520
|
},
|
|
532
521
|
height: 70,
|
|
533
|
-
onMouseOut:
|
|
534
|
-
onMouseOver:
|
|
522
|
+
onMouseOut: e => (e.currentTarget.src = selectedSticker.stickerUrl),
|
|
523
|
+
onMouseOver: e => (e.currentTarget.src = selectedSticker.animatedStickerUrl || selectedSticker.stickerUrl),
|
|
535
524
|
}}
|
|
536
525
|
/>
|
|
537
|
-
</div>
|
|
526
|
+
</div>
|
|
538
527
|
);
|
|
539
528
|
}
|
|
540
529
|
if ((type === IMAGE_CAROUSEL || type === TEMPLATE) && imageCarousel) {
|
|
@@ -546,7 +535,7 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
|
|
|
546
535
|
>
|
|
547
536
|
<Carousel imageCarousel={imageCarousel}/>
|
|
548
537
|
</div>
|
|
549
|
-
)
|
|
538
|
+
)
|
|
550
539
|
}
|
|
551
540
|
return null;
|
|
552
541
|
})
|
|
@@ -557,82 +546,7 @@ class TemplatePreview extends React.Component { // eslint-disable-line react/pre
|
|
|
557
546
|
</div>
|
|
558
547
|
) : ''
|
|
559
548
|
}
|
|
560
|
-
{
|
|
561
|
-
channel && channel.toLowerCase() === VIBER ? (
|
|
562
|
-
<div className="shell-v2 align-center" id="sms-preview">
|
|
563
|
-
<CapImage className="preview-image" src={viberMobileAndroid} alt={this.props.intl.formatMessage(messages.previewGenerated)}/>
|
|
564
|
-
<div
|
|
565
|
-
className="msgContainer viber-preview"
|
|
566
|
-
style={{
|
|
567
|
-
maxHeight: 292,
|
|
568
|
-
marginLeft: 28,
|
|
569
|
-
}}
|
|
570
|
-
>
|
|
571
|
-
<div
|
|
572
|
-
className="sms-icon"
|
|
573
|
-
style={{
|
|
574
|
-
"width": 20,
|
|
575
|
-
"height": 20,
|
|
576
|
-
"margin": '0 4px 277px 0',
|
|
577
|
-
"padding": '6px 2px 7px 3px',
|
|
578
|
-
'border-radius': '4px',
|
|
579
|
-
'background-color': CAP_PURPLE01,
|
|
580
|
-
'font-size': '6px',
|
|
581
|
-
'font-weight': 900,
|
|
582
|
-
"color": CAP_WHITE,
|
|
583
|
-
}}
|
|
584
|
-
>
|
|
585
|
-
{this.props.viberAccountName}
|
|
586
|
-
</div>
|
|
587
|
-
<div
|
|
588
|
-
className="message-pop align-left"
|
|
589
|
-
style={viberSectionStyle}>
|
|
590
|
-
{/* Text Viber preview */}
|
|
591
|
-
<p
|
|
592
|
-
style={{
|
|
593
|
-
'font-size': '10px',
|
|
594
|
-
"color": CAP_G16,
|
|
595
|
-
"margin": '1.5px 6px 1px 7px',
|
|
596
|
-
}}>{viberMessageContent || ''}
|
|
597
|
-
</p>
|
|
598
|
-
{/* Image Viber preview */}
|
|
599
|
-
{imageURL && <CapImage
|
|
600
|
-
src={imageURL}
|
|
601
|
-
alt="brand-name"
|
|
602
|
-
rest={{
|
|
603
|
-
style: {
|
|
604
|
-
maxWidth: '100%',
|
|
605
|
-
marginBottom: 5,
|
|
606
|
-
},
|
|
607
|
-
}}
|
|
608
|
-
/>
|
|
609
|
-
}
|
|
610
|
-
{/* button viber preview */}
|
|
611
|
-
{buttonText && <div
|
|
612
|
-
style={{
|
|
613
|
-
'border-radius': '16px',
|
|
614
|
-
'background-color': CAP_PURPLE01,
|
|
615
|
-
"margin-top": '14px',
|
|
616
|
-
'text-align': 'center',
|
|
617
|
-
"width": '132px',
|
|
618
|
-
"height": '20px',
|
|
619
|
-
"margin-left": "5px",
|
|
620
|
-
}}>
|
|
621
|
-
<p
|
|
622
|
-
style={{ 'font-size': '12px',
|
|
623
|
-
'font-weight': '500',
|
|
624
|
-
"color": CAP_WHITE }}
|
|
625
|
-
>
|
|
626
|
-
{buttonText || ''}</p>
|
|
627
|
-
</div>
|
|
628
|
-
}
|
|
629
|
-
<div style={{ paddingBottom: 32}}></div>
|
|
630
|
-
</div>
|
|
631
549
|
|
|
632
|
-
</div>
|
|
633
|
-
</div>
|
|
634
|
-
) : ''
|
|
635
|
-
}
|
|
636
550
|
</div>
|
|
637
551
|
|
|
638
552
|
</CapColumn>
|
|
@@ -20,7 +20,7 @@ export const TRACK_CREATE_WECHAT = 'createWeChat';
|
|
|
20
20
|
export const TRACK_CREATE_IMAGE = 'createImage';
|
|
21
21
|
export const TRACK_CREATE_LINE = 'createLine';
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
export const TRACK_EDIT_SMS = 'editSms';
|
|
25
25
|
export const TRACK_EDIT_EMAIL = 'editEmail';
|
|
26
26
|
export const TRACK_EDIT_MPUSH = 'editMpush';
|