@capillarytech/creatives-library 7.16.9-alpha.1 → 7.16.10
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 -2
- package/components/TemplatePreview/index.js +0 -1
- package/containers/Assets/Gallery/messages.js +1 -1
- package/containers/Cap/sagas.js +3 -4
- package/containers/Cap/tests/__snapshots__/index.test.js.snap +4 -4
- package/containers/Email/messages.js +1 -1
- package/package.json +1 -1
- package/services/api.js +9 -1
- package/styles/vendor/semantic/src/definitions/collections/form.less +2 -2
- package/styles/vendor/semantic/src/definitions/elements/flag.less +1 -1
- package/styles/vendor/semantic/src/definitions/elements/icon.less +1 -0
- package/styles/vendor/semantic/src/definitions/globals/site.less +1 -1
- package/translations/en.json +4 -4
- package/utils/common.js +0 -22
- package/utils/smsCharCountV2.js +13 -0
- package/utils/test-utils.js +17 -0
- package/utils/tests/v2Common.test.js +2 -44
- package/v2Components/CapDocumentUpload/index.js +6 -3
- package/v2Components/CapImageUpload/index.js +5 -2
- package/v2Components/CapVideoUpload/index.js +6 -2
- package/v2Components/FormBuilder/index.js +31 -9
- package/v2Containers/Assets/Gallery/index.js +3 -28
- package/v2Containers/Assets/Gallery/messages.js +1 -1
- package/v2Containers/Cap/sagas.js +3 -4
- package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +4 -4
- package/v2Containers/ChannelTemplates/actions.js +20 -0
- package/v2Containers/ChannelTemplates/constants.js +8 -0
- package/v2Containers/ChannelTemplates/index.js +47 -0
- package/v2Containers/ChannelTemplates/messages.js +13 -0
- package/v2Containers/ChannelTemplates/reducer.js +34 -0
- package/v2Containers/ChannelTemplates/sagas.js +32 -0
- package/v2Containers/ChannelTemplates/selectors.js +25 -0
- package/v2Containers/CreativesContainer/constants.js +2 -0
- package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +8 -0
- package/v2Containers/Email/index.js +2 -4
- package/v2Containers/Email/messages.js +1 -1
- package/v2Containers/LanguageProvider/index.js +0 -3
- package/v2Containers/Line/Container/Image/index.js +5 -2
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +12 -3397
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +8 -8
- package/v2Containers/Line/Container/ImageMap/index.js +2 -4
- package/v2Containers/Line/Container/Video/index.js +8 -5
- package/v2Containers/Line/Container/Video/messages.js +0 -9
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +68 -68
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +72 -72
- package/v2Containers/MobilePush/Create/index.js +3 -21
- package/v2Containers/MobilePush/Create/messages.js +0 -48
- package/v2Containers/MobilePush/Edit/index.js +1 -19
- package/v2Containers/MobilePush/Edit/messages.js +0 -16
- package/v2Containers/MobilePush/commonMethods.js +2 -2
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +197 -191
- package/v2Containers/Sms/Create/actions.js +9 -0
- package/v2Containers/Sms/Create/constants.js +2 -0
- package/v2Containers/Sms/Create/index.js +12 -0
- package/v2Containers/Sms/Create/sagas.js +19 -3
- package/v2Containers/Sms/Create/tests/sagas.test.js +82 -0
- package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +16 -16
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +32 -32
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +16 -0
- package/v2Containers/Viber/index.js +5 -2
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +336 -284
|
@@ -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,23 +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
|
-
|
|
741
723
|
temp.injectedEvents = {};
|
|
742
724
|
|
|
743
725
|
forEach(col.supportedEvents, (event) => {
|
|
@@ -1053,7 +1035,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
1053
1035
|
metaType: "text",
|
|
1054
1036
|
datatype: "string",
|
|
1055
1037
|
options: ["Deeplink", "External Link"],
|
|
1056
|
-
inductiveText: [
|
|
1038
|
+
inductiveText: ["A page within mobile app", "An external web page"],
|
|
1057
1039
|
value: "Deeplink",
|
|
1058
1040
|
required: true,
|
|
1059
1041
|
width: 18,
|
|
@@ -1128,7 +1110,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
1128
1110
|
metaType: "text",
|
|
1129
1111
|
datatype: "string",
|
|
1130
1112
|
options: ["Deeplink", "External Link"],
|
|
1131
|
-
inductiveText: [
|
|
1113
|
+
inductiveText: ["A page within mobile app", "An external web page"],
|
|
1132
1114
|
value: "Deeplink",
|
|
1133
1115
|
required: true,
|
|
1134
1116
|
width: 18,
|
|
@@ -1234,7 +1216,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
1234
1216
|
metaType: "text",
|
|
1235
1217
|
datatype: "string",
|
|
1236
1218
|
options: ["Deeplink", "External Link"],
|
|
1237
|
-
inductiveText: [
|
|
1219
|
+
inductiveText: ["A page within mobile app", "An external web page"],
|
|
1238
1220
|
value: "Deeplink",
|
|
1239
1221
|
required: true,
|
|
1240
1222
|
width: 18,
|
|
@@ -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.MobilePush.Create.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,23 +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
|
-
|
|
1446
1428
|
temp.injectedEvents = {};
|
|
1447
1429
|
temp.className = temp.className ? temp.className : '';
|
|
1448
1430
|
|
|
@@ -286,20 +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
|
-
"This section is being revamped. Till then it will remain disabled.": {
|
|
302
|
-
id: 'creatives.containersV2.MobilePush.Edit.thisSectionDisabledHoverText',
|
|
303
|
-
defaultMessage: 'This section is being revamped. Till then it will remain disabled.',
|
|
304
|
-
},
|
|
305
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,
|