@capillarytech/creatives-library 7.16.12 → 7.16.13
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/components/Ckeditor/index.js +1 -1
- package/containers/Cap/tests/__snapshots__/index.test.js.snap +10 -220
- package/containers/MobilePush/Create/index.js +0 -18
- package/containers/MobilePush/Create/messages.js +2 -2
- package/containers/MobilePush/Edit/index.js +0 -18
- package/containers/MobilePush/Edit/messages.js +2 -2
- package/package.json +1 -1
- package/translations/en.json +10 -220
- package/translations/ja-JP.json +2 -212
- package/translations/zh.json +2 -212
- package/v2Components/CapWhatsappCTA/index.js +1 -1
- package/v2Components/CapWhatsappCTA/messages.js +5 -1
- package/v2Components/Ckeditor/index.js +1 -1
- package/v2Components/FormBuilder/index.js +4 -48
- package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +10 -220
- package/v2Containers/CreativesContainer/constants.js +0 -2
- package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +0 -8
- package/v2Containers/LanguageProvider/index.js +0 -3
- package/v2Containers/LanguageProvider/tests/index.test.js +0 -1
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +30 -663
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +20 -440
- package/v2Containers/Line/Container/Video/index.js +2 -2
- package/v2Containers/Line/Container/Video/messages.js +0 -9
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +170 -3740
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +180 -3960
- package/v2Containers/MobilePush/Create/index.js +3 -31
- package/v2Containers/MobilePush/Create/messages.js +2 -50
- package/v2Containers/MobilePush/Edit/index.js +1 -29
- package/v2Containers/MobilePush/Edit/messages.js +2 -50
- package/v2Containers/MobilePush/commonMethods.js +2 -2
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +473 -10349
- package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +40 -880
- package/v2Containers/SmsTrai/Edit/index.js +1 -1
- package/v2Containers/SmsTrai/Edit/messages.js +1 -1
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +80 -1760
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +0 -16
- package/v2Containers/Whatsapp/index.js +3 -3
- package/v2Containers/Whatsapp/messages.js +3 -3
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +1789 -17965
- package/v2Components/FormBuilder/constants.js +0 -1
|
@@ -703,7 +703,6 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
703
703
|
};
|
|
704
704
|
|
|
705
705
|
injectMultiColSection = (section) => {
|
|
706
|
-
const { formatMessage } = this.props.intl;
|
|
707
706
|
forEach(section.inputFields, (inputField) => {
|
|
708
707
|
forEach(inputField.cols, (col) => {
|
|
709
708
|
const temp = col;
|
|
@@ -721,32 +720,6 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
721
720
|
if (temp.id === "mobile-push-preview") {
|
|
722
721
|
temp.content.appName = this.props.Templates.selectedWeChatAccount.name;
|
|
723
722
|
}
|
|
724
|
-
|
|
725
|
-
if (messages?.[temp?.value]) {
|
|
726
|
-
temp.value = formatMessage(messages[temp.value]);
|
|
727
|
-
}
|
|
728
|
-
if (messages?.[temp?.label]) {
|
|
729
|
-
temp.label = formatMessage(messages[temp.label]);
|
|
730
|
-
}
|
|
731
|
-
if (messages?.[temp?.errorMessage]) {
|
|
732
|
-
temp.errorMessage = formatMessage(messages[temp.errorMessage]);
|
|
733
|
-
}
|
|
734
|
-
if (messages?.[temp?.placeholder]) {
|
|
735
|
-
temp.placeholder = formatMessage(messages[temp.placeholder]);
|
|
736
|
-
}
|
|
737
|
-
if (messages?.[temp?.hoverText]) {
|
|
738
|
-
temp.hoverText = formatMessage(messages[temp.hoverText]);
|
|
739
|
-
}
|
|
740
|
-
if (messages?.[temp?.previewProps?.label]) {
|
|
741
|
-
temp.previewProps.label = formatMessage(messages[temp.previewProps.label]);
|
|
742
|
-
}
|
|
743
|
-
if (messages?.[temp?.previewProps?.inductiveText]) {
|
|
744
|
-
temp.previewProps.inductiveText = formatMessage(messages[temp.previewProps.inductiveText]);
|
|
745
|
-
}
|
|
746
|
-
if (messages?.[temp?.previewProps?.errorMessage]) {
|
|
747
|
-
temp.previewProps.errorMessage = formatMessage(messages[temp.previewProps.errorMessage]);
|
|
748
|
-
}
|
|
749
|
-
|
|
750
723
|
temp.injectedEvents = {};
|
|
751
724
|
|
|
752
725
|
forEach(col.supportedEvents, (event) => {
|
|
@@ -1062,7 +1035,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
1062
1035
|
metaType: "text",
|
|
1063
1036
|
datatype: "string",
|
|
1064
1037
|
options: ["Deeplink", "External Link"],
|
|
1065
|
-
inductiveText: [
|
|
1038
|
+
inductiveText: ["A page within mobile app", "An external web page"],
|
|
1066
1039
|
value: "Deeplink",
|
|
1067
1040
|
required: true,
|
|
1068
1041
|
width: 18,
|
|
@@ -1137,7 +1110,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
1137
1110
|
metaType: "text",
|
|
1138
1111
|
datatype: "string",
|
|
1139
1112
|
options: ["Deeplink", "External Link"],
|
|
1140
|
-
inductiveText: [
|
|
1113
|
+
inductiveText: ["A page within mobile app", "An external web page"],
|
|
1141
1114
|
value: "Deeplink",
|
|
1142
1115
|
required: true,
|
|
1143
1116
|
width: 18,
|
|
@@ -1243,7 +1216,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
1243
1216
|
metaType: "text",
|
|
1244
1217
|
datatype: "string",
|
|
1245
1218
|
options: ["Deeplink", "External Link"],
|
|
1246
|
-
inductiveText: [
|
|
1219
|
+
inductiveText: ["A page within mobile app", "An external web page"],
|
|
1247
1220
|
value: "Deeplink",
|
|
1248
1221
|
required: true,
|
|
1249
1222
|
width: 18,
|
|
@@ -1765,7 +1738,6 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
1765
1738
|
onTestContentClicked={this.props.onTestContentClicked}
|
|
1766
1739
|
templateData={this.props.templateData}
|
|
1767
1740
|
hideTestAndPreviewBtn={this.props.hideTestAndPreviewBtn}
|
|
1768
|
-
isFullMode={this.props.isFullMode}
|
|
1769
1741
|
/>
|
|
1770
1742
|
</CapColumn>
|
|
1771
1743
|
{this.props.iosCtasData && this.state.showIosCtaTable &&
|
|
@@ -56,7 +56,7 @@ export default defineMessages({
|
|
|
56
56
|
},
|
|
57
57
|
"Copy Title and Content From IOS": {
|
|
58
58
|
id: 'creatives.containersV2.MobilePush.Create.copyFromIos',
|
|
59
|
-
defaultMessage: 'Copy
|
|
59
|
+
defaultMessage: 'Copy title and content from IOS',
|
|
60
60
|
},
|
|
61
61
|
"Title*": {
|
|
62
62
|
id: 'creatives.containersV2.MobilePush.Create.titleLabel',
|
|
@@ -104,7 +104,7 @@ export default defineMessages({
|
|
|
104
104
|
},
|
|
105
105
|
"Copy Title and Content From Android": {
|
|
106
106
|
id: 'creatives.containersV2.MobilePush.Create.copyFromAndroid',
|
|
107
|
-
defaultMessage: 'Copy
|
|
107
|
+
defaultMessage: 'Copy title and content from android',
|
|
108
108
|
},
|
|
109
109
|
"Template title has unsupported/missing tags.": {
|
|
110
110
|
id: 'creatives.containersV2.MobilePush.Create.titleHasUnsupportedTag',
|
|
@@ -294,52 +294,4 @@ export default defineMessages({
|
|
|
294
294
|
id: 'creatives.containersV2.MobilePush.Create.change',
|
|
295
295
|
defaultMessage: 'change',
|
|
296
296
|
},
|
|
297
|
-
"Add labels": {
|
|
298
|
-
id: 'creatives.containersV2.addLabels',
|
|
299
|
-
defaultMessage: 'Add labels',
|
|
300
|
-
},
|
|
301
|
-
"Cover Image": {
|
|
302
|
-
id: `creatives.containersV2.MobilePush.Create.coverImage`,
|
|
303
|
-
defaultMessage: 'Cover image',
|
|
304
|
-
},
|
|
305
|
-
"Maximum file size acceptable is 5 MB": {
|
|
306
|
-
id: 'creatives.containersV2.MobilePush.Create.coverImageDescription',
|
|
307
|
-
defaultMessage: 'Maximum file size acceptable is 5 MB',
|
|
308
|
-
},
|
|
309
|
-
"Add action link to content": {
|
|
310
|
-
id: 'creatives.containersV2.MobilePush.Create.addActionLinkToContent',
|
|
311
|
-
defaultMessage: 'Add action link to content',
|
|
312
|
-
},
|
|
313
|
-
"Add a hyperlink of the page which customer will be directed to": {
|
|
314
|
-
id: 'creatives.containersV2.MobilePush.Create.addActionLinkToContentDescription',
|
|
315
|
-
defaultMessage: 'Add a hyperlink of the page which customer will be directed to',
|
|
316
|
-
},
|
|
317
|
-
"aPageWithMobileApp": {
|
|
318
|
-
id: 'creatives.containersV2.MobilePush.Create.aPageWithMobileApp',
|
|
319
|
-
defaultMessage: 'A page within mobile app',
|
|
320
|
-
},
|
|
321
|
-
"anExternalWebPage": {
|
|
322
|
-
id: 'creatives.containersV2.MobilePush.Create.anExternalWebPage',
|
|
323
|
-
defaultMessage: 'An external web page',
|
|
324
|
-
},
|
|
325
|
-
"Add primary button to notification": {
|
|
326
|
-
id: 'creatives.containersV2.MobilePush.Create.addPrimaryButtonToNotification',
|
|
327
|
-
defaultMessage: 'Add primary button to notification',
|
|
328
|
-
},
|
|
329
|
-
"Button label": {
|
|
330
|
-
id: 'creatives.containersV2.MobilePush.Create.buttonLabel',
|
|
331
|
-
defaultMessage: 'Button label',
|
|
332
|
-
},
|
|
333
|
-
"Add secondary button to notification": {
|
|
334
|
-
id: 'creatives.containersV2.MobilePush.Create.addSecondaryButtonToNotification',
|
|
335
|
-
defaultMessage: 'Add secondary button to notification',
|
|
336
|
-
},
|
|
337
|
-
"Add action buttons to notification": {
|
|
338
|
-
id: 'creatives.containersV2.MobilePush.Create.addActionButtonsToNotification',
|
|
339
|
-
defaultMessage: 'Add action buttons to notification',
|
|
340
|
-
},
|
|
341
|
-
"This section is being revamped. Till then it will remain disabled.": {
|
|
342
|
-
id: 'creatives.containersV2.MobilePush.Create.thisSectionDisabledHoverText',
|
|
343
|
-
defaultMessage: 'This section is being revamped. Till then it will remain disabled.',
|
|
344
|
-
},
|
|
345
297
|
});
|
|
@@ -1023,7 +1023,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
1023
1023
|
metaType: "text",
|
|
1024
1024
|
datatype: "string",
|
|
1025
1025
|
options: ["Deeplink", "External Link"],
|
|
1026
|
-
inductiveText: [
|
|
1026
|
+
inductiveText: ["A page within mobile app", "An external web page"],
|
|
1027
1027
|
value: "Deeplink",
|
|
1028
1028
|
required: true,
|
|
1029
1029
|
width: 18,
|
|
@@ -1417,7 +1417,6 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
1417
1417
|
return sections;
|
|
1418
1418
|
};
|
|
1419
1419
|
injectMultiColSection = (section) => {
|
|
1420
|
-
const { formatMessage } = this.props.intl;
|
|
1421
1420
|
_.forEach(section.inputFields, (inputField) => {
|
|
1422
1421
|
_.forEach(inputField.cols, (col) => {
|
|
1423
1422
|
const temp = col;
|
|
@@ -1426,32 +1425,6 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
1426
1425
|
temp.value.sections = this.injectSections(temp.value.sections);
|
|
1427
1426
|
return true;
|
|
1428
1427
|
}
|
|
1429
|
-
|
|
1430
|
-
if (messages?.[temp?.value]) {
|
|
1431
|
-
temp.value = formatMessage(messages[temp.value]);
|
|
1432
|
-
}
|
|
1433
|
-
if (messages?.[temp?.label]) {
|
|
1434
|
-
temp.label = formatMessage(messages[temp.label]);
|
|
1435
|
-
}
|
|
1436
|
-
if (messages?.[temp?.errorMessage]) {
|
|
1437
|
-
temp.errorMessage = formatMessage(messages[temp.errorMessage]);
|
|
1438
|
-
}
|
|
1439
|
-
if (messages?.[temp?.placeholder]) {
|
|
1440
|
-
temp.placeholder = formatMessage(messages[temp.placeholder]);
|
|
1441
|
-
}
|
|
1442
|
-
if (messages?.[temp?.hoverText]) {
|
|
1443
|
-
temp.hoverText = formatMessage(messages[temp.hoverText]);
|
|
1444
|
-
}
|
|
1445
|
-
if (messages?.[temp?.previewProps?.label]) {
|
|
1446
|
-
temp.previewProps.label = formatMessage(messages[temp.previewProps.label]);
|
|
1447
|
-
}
|
|
1448
|
-
if (messages?.[temp?.previewProps?.inductiveText]) {
|
|
1449
|
-
temp.previewProps.inductiveText = formatMessage(messages[temp.previewProps.inductiveText]);
|
|
1450
|
-
}
|
|
1451
|
-
if (messages?.[temp?.previewProps?.errorMessage]) {
|
|
1452
|
-
temp.previewProps.errorMessage = formatMessage(messages[temp.previewProps.errorMessage]);
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
1428
|
temp.injectedEvents = {};
|
|
1456
1429
|
temp.className = temp.className ? temp.className : '';
|
|
1457
1430
|
|
|
@@ -1849,7 +1822,6 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
1849
1822
|
onTestContentClicked={this.props.onTestContentClicked}
|
|
1850
1823
|
templateData={this.props.templateData}
|
|
1851
1824
|
hideTestAndPreviewBtn={this.props.hideTestAndPreviewBtn}
|
|
1852
|
-
isFullMode={this.props.isFullMode}
|
|
1853
1825
|
/>}
|
|
1854
1826
|
</CapColumn>
|
|
1855
1827
|
{this.props.iosCtasData && this.state.showIosCtaTable &&
|
|
@@ -56,7 +56,7 @@ export default defineMessages({
|
|
|
56
56
|
},
|
|
57
57
|
"Copy Title and Content From IOS": {
|
|
58
58
|
id: 'creatives.containersV2.MobilePush.Edit.copyFromIos',
|
|
59
|
-
defaultMessage: 'Copy
|
|
59
|
+
defaultMessage: 'Copy title and content from IOS',
|
|
60
60
|
},
|
|
61
61
|
"Title*": {
|
|
62
62
|
id: 'creatives.containersV2.MobilePush.Edit.titleLabel',
|
|
@@ -104,7 +104,7 @@ export default defineMessages({
|
|
|
104
104
|
},
|
|
105
105
|
"Copy Title and Content From Android": {
|
|
106
106
|
id: 'creatives.containersV2.MobilePush.Edit.copyFromAndroid',
|
|
107
|
-
defaultMessage: 'Copy
|
|
107
|
+
defaultMessage: 'Copy title and content from android',
|
|
108
108
|
},
|
|
109
109
|
"Template title has unsupported/missing tags.": {
|
|
110
110
|
id: 'creatives.containersV2.MobilePush.Edit.titleHasUnsupportedTag',
|
|
@@ -286,52 +286,4 @@ export default defineMessages({
|
|
|
286
286
|
id: 'creatives.containersV2.MobilePush.Edit.change',
|
|
287
287
|
defaultMessage: "change",
|
|
288
288
|
},
|
|
289
|
-
"aPageWithMobileApp": {
|
|
290
|
-
id: 'creatives.containersV2.MobilePush.Edit.aPageWithMobileApp',
|
|
291
|
-
defaultMessage: 'A page within mobile app',
|
|
292
|
-
},
|
|
293
|
-
"anExternalWebPage": {
|
|
294
|
-
id: 'creatives.containersV2.MobilePush.Edit.anExternalWebPage',
|
|
295
|
-
defaultMessage: 'An external web page',
|
|
296
|
-
},
|
|
297
|
-
"Button label": {
|
|
298
|
-
id: 'creatives.containersV2.MobilePush.Edit.buttonLabel',
|
|
299
|
-
defaultMessage: 'Button label',
|
|
300
|
-
},
|
|
301
|
-
"Add labels": {
|
|
302
|
-
id: 'creatives.containersV2.addLabels',
|
|
303
|
-
defaultMessage: 'Add labels',
|
|
304
|
-
},
|
|
305
|
-
"Cover Image": {
|
|
306
|
-
id: `creatives.containersV2.MobilePush.Edit.coverImage`,
|
|
307
|
-
defaultMessage: 'Cover image',
|
|
308
|
-
},
|
|
309
|
-
"Maximum file size acceptable is 5 MB": {
|
|
310
|
-
id: 'creatives.containersV2.MobilePush.Edit.coverImageDescription',
|
|
311
|
-
defaultMessage: 'Maximum file size acceptable is 5 MB',
|
|
312
|
-
},
|
|
313
|
-
"Add action link to content": {
|
|
314
|
-
id: 'creatives.containersV2.MobilePush.Edit.addActionLinkToContent',
|
|
315
|
-
defaultMessage: 'Add action link to content',
|
|
316
|
-
},
|
|
317
|
-
"Add a hyperlink of the page which customer will be directed to": {
|
|
318
|
-
id: 'creatives.containersV2.MobilePush.Edit.addActionLinkToContentDescription',
|
|
319
|
-
defaultMessage: 'Add a hyperlink of the page which customer will be directed to',
|
|
320
|
-
},
|
|
321
|
-
"Add primary button to notification": {
|
|
322
|
-
id: 'creatives.containersV2.MobilePush.Edit.addPrimaryButtonToNotification',
|
|
323
|
-
defaultMessage: 'Add primary button to notification',
|
|
324
|
-
},
|
|
325
|
-
"Add secondary button to notification": {
|
|
326
|
-
id: 'creatives.containersV2.MobilePush.Edit.addSecondaryButtonToNotification',
|
|
327
|
-
defaultMessage: 'Add secondary button to notification',
|
|
328
|
-
},
|
|
329
|
-
"Add action buttons to notification": {
|
|
330
|
-
id: 'creatives.containersV2.MobilePush.Edit.addActionButtonsToNotification',
|
|
331
|
-
defaultMessage: 'Add action buttons to notification',
|
|
332
|
-
},
|
|
333
|
-
"This section is being revamped. Till then it will remain disabled.": {
|
|
334
|
-
id: 'creatives.containersV2.MobilePush.Edit.thisSectionDisabledHoverText',
|
|
335
|
-
defaultMessage: 'This section is being revamped. Till then it will remain disabled.',
|
|
336
|
-
},
|
|
337
289
|
});
|
|
@@ -16,7 +16,7 @@ function getPrimaryCtaFields({inputFields, fieldIndex, deepLinkOptions, tab}) {
|
|
|
16
16
|
metaType: "text",
|
|
17
17
|
datatype: "string",
|
|
18
18
|
options: ["Deeplink", "External Link"],
|
|
19
|
-
inductiveText: [
|
|
19
|
+
inductiveText: ["A page within mobile app", "An external web page"],
|
|
20
20
|
value: "Deeplink",
|
|
21
21
|
required: true,
|
|
22
22
|
width: 18,
|
|
@@ -105,7 +105,7 @@ function getSecondaryCtaFields({inputFields, fieldIndex, deepLinkOptions}) {
|
|
|
105
105
|
metaType: "text",
|
|
106
106
|
datatype: "string",
|
|
107
107
|
options: ["Deeplink", "External Link"],
|
|
108
|
-
inductiveText: [
|
|
108
|
+
inductiveText: ["A page within mobile app", "An external web page"],
|
|
109
109
|
value: "Deeplink",
|
|
110
110
|
required: true,
|
|
111
111
|
width: 18,
|