@capillarytech/creatives-library 7.14.41 → 7.15.3
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/containers/Cap/tests/__snapshots__/index.test.js.snap +4 -193
- package/containers/LanguageProvider/index.js +0 -2
- package/containers/LanguageProvider/tests/index.test.js +0 -1
- package/i18n.js +8 -11
- package/package.json +1 -1
- package/reducers.js +0 -2
- package/services/api.js +1 -9
- package/translations/en.json +4 -192
- package/translations/zh.json +3 -191
- package/v2Components/CapActionButton/index.js +0 -1
- package/v2Components/CapVideoUpload/index.scss +5 -0
- package/v2Components/FormBuilder/index.js +4 -28
- package/v2Containers/Assets/Gallery/index.js +1 -1
- package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +4 -193
- package/v2Containers/CreativesContainer/constants.js +0 -2
- package/v2Containers/CreativesContainer/index.js +2 -2
- package/v2Containers/CreativesContainer/selectors.js +2 -2
- package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +0 -8
- package/v2Containers/CreativesContainer/tests/index.test.js +0 -28
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +12 -582
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +8 -386
- package/v2Containers/Line/Container/Text/index.js +2 -3
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +68 -3285
- package/v2Containers/Line/Container/index.js +1 -1
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +72 -3474
- package/v2Containers/Rcs/index.js +0 -3
- package/v2Containers/Rcs/messages.js +1 -1
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +253 -9383
- package/v2Containers/Sms/Create/actions.js +0 -9
- package/v2Containers/Sms/Create/constants.js +0 -2
- package/v2Containers/Sms/Create/index.js +0 -12
- package/v2Containers/Sms/Create/sagas.js +3 -19
- package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +16 -772
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +32 -1544
- package/v2Containers/Templates/index.js +3 -2
- package/v2Containers/Templates/messages.js +2 -2
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +0 -16
- package/v2Containers/TemplatesV2/index.js +1 -1
- package/v2Containers/Viber/index.js +0 -1
- package/v2Containers/Whatsapp/index.js +1 -0
- package/v2Containers/Whatsapp/messages.js +1 -1
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +284 -13755
- package/v2Containers/mockdata.js +0 -128
- package/tests/integration/TemplateCreation/TemplateCreation.integration.test.js +0 -420
- package/tests/integration/TemplateCreation/api-response.js +0 -1663
- package/tests/integration/TemplateCreation/helper.js +0 -23
- package/tests/integration/TemplateCreation/mocks/initialState.js +0 -428
- package/tests/integration/TemplateCreation/msw-handler.js +0 -48
- package/translations/ja-JP.json +0 -2013
- package/v2Containers/Sms/Create/tests/sagas.test.js +0 -82
- package/v2Containers/SmsTrai/Create/tests/selectors.test.js +0 -10
|
@@ -801,8 +801,9 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
801
801
|
default:
|
|
802
802
|
return selectedWhatsappCategory === category;
|
|
803
803
|
}
|
|
804
|
-
}
|
|
805
|
-
|
|
804
|
+
} else {
|
|
805
|
+
return true;
|
|
806
|
+
}
|
|
806
807
|
}
|
|
807
808
|
filterWhatsappTemplates = (templates) => {
|
|
808
809
|
const { selectedWhatsappStatus, selectedWhatsappCategory } = this.state;
|
|
@@ -355,11 +355,11 @@ export default defineMessages({
|
|
|
355
355
|
defaultMessage: 'Please try searching with another term or apply different filter',
|
|
356
356
|
},
|
|
357
357
|
"noApprovedWhatsappTemplatesTitle": {
|
|
358
|
-
id: `${scope}.
|
|
358
|
+
id: `${scope}.noFilteredWhatsappTemplatesDesc`,
|
|
359
359
|
defaultMessage: 'Sorry, we couldn’t find any approved templates',
|
|
360
360
|
},
|
|
361
361
|
"noApprovedWhatsappTemplatesDesc": {
|
|
362
|
-
id: `${scope}.
|
|
362
|
+
id: `${scope}.noFilteredWhatsappTemplatesDesc`,
|
|
363
363
|
defaultMessage: 'Please try creating a new template, once it is approved by Whatsapp it will be available here',
|
|
364
364
|
},
|
|
365
365
|
"smsTitleIllustartion": {
|
|
@@ -219,9 +219,7 @@ exports[`Test Templates container Should render temlates when whatsapp templates
|
|
|
219
219
|
<CapRow />
|
|
220
220
|
<CapRow>
|
|
221
221
|
<CapSlideBox
|
|
222
|
-
closeIconPosition="right"
|
|
223
222
|
closeIconSize="m"
|
|
224
|
-
closeIconType="close"
|
|
225
223
|
content={
|
|
226
224
|
<CardGrid
|
|
227
225
|
className=""
|
|
@@ -513,9 +511,7 @@ exports[`Test Templates container Should render temlates when whatsapp templates
|
|
|
513
511
|
<CapRow />
|
|
514
512
|
<CapRow>
|
|
515
513
|
<CapSlideBox
|
|
516
|
-
closeIconPosition="right"
|
|
517
514
|
closeIconSize="m"
|
|
518
|
-
closeIconType="close"
|
|
519
515
|
content={
|
|
520
516
|
<CardGrid
|
|
521
517
|
className=""
|
|
@@ -982,9 +978,7 @@ Click {{3}} to unsubscribe",
|
|
|
982
978
|
<CapRow />
|
|
983
979
|
<CapRow>
|
|
984
980
|
<CapSlideBox
|
|
985
|
-
closeIconPosition="right"
|
|
986
981
|
closeIconSize="m"
|
|
987
|
-
closeIconType="close"
|
|
988
982
|
content={
|
|
989
983
|
<CardGrid
|
|
990
984
|
className=""
|
|
@@ -1419,9 +1413,7 @@ Click {{3}} to unsubscribe",
|
|
|
1419
1413
|
<CapRow />
|
|
1420
1414
|
<CapRow>
|
|
1421
1415
|
<CapSlideBox
|
|
1422
|
-
closeIconPosition="right"
|
|
1423
1416
|
closeIconSize="m"
|
|
1424
|
-
closeIconType="close"
|
|
1425
1417
|
content={
|
|
1426
1418
|
<CardGrid
|
|
1427
1419
|
className=""
|
|
@@ -1856,9 +1848,7 @@ Click {{3}} to unsubscribe",
|
|
|
1856
1848
|
<CapRow />
|
|
1857
1849
|
<CapRow>
|
|
1858
1850
|
<CapSlideBox
|
|
1859
|
-
closeIconPosition="right"
|
|
1860
1851
|
closeIconSize="m"
|
|
1861
|
-
closeIconType="close"
|
|
1862
1852
|
content={
|
|
1863
1853
|
<CardGrid
|
|
1864
1854
|
className=""
|
|
@@ -2120,9 +2110,7 @@ exports[`Test Templates container Test removing all whatsapp filterss 1`] = `
|
|
|
2120
2110
|
<CapRow />
|
|
2121
2111
|
<CapRow>
|
|
2122
2112
|
<CapSlideBox
|
|
2123
|
-
closeIconPosition="right"
|
|
2124
2113
|
closeIconSize="m"
|
|
2125
|
-
closeIconType="close"
|
|
2126
2114
|
content={
|
|
2127
2115
|
<CardGrid
|
|
2128
2116
|
className=""
|
|
@@ -2358,9 +2346,7 @@ exports[`Test Templates container Test removing all whatsapp filterss 2`] = `
|
|
|
2358
2346
|
<CapRow />
|
|
2359
2347
|
<CapRow>
|
|
2360
2348
|
<CapSlideBox
|
|
2361
|
-
closeIconPosition="right"
|
|
2362
2349
|
closeIconSize="m"
|
|
2363
|
-
closeIconType="close"
|
|
2364
2350
|
content={
|
|
2365
2351
|
<CardGrid
|
|
2366
2352
|
className=""
|
|
@@ -2596,9 +2582,7 @@ exports[`Test Templates container Test removing single filter 1`] = `
|
|
|
2596
2582
|
<CapRow />
|
|
2597
2583
|
<CapRow>
|
|
2598
2584
|
<CapSlideBox
|
|
2599
|
-
closeIconPosition="right"
|
|
2600
2585
|
closeIconSize="m"
|
|
2601
|
-
closeIconType="close"
|
|
2602
2586
|
content={
|
|
2603
2587
|
<CardGrid
|
|
2604
2588
|
className=""
|
|
@@ -297,7 +297,7 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
|
|
|
297
297
|
}
|
|
298
298
|
return (
|
|
299
299
|
!isCreativeAccessible ? <AccessForbidden /> : (
|
|
300
|
-
<div className={`${className} creatives-templates-container ${isFullMode ? 'fullmode' : 'library-mode'}`}
|
|
300
|
+
<div className={`${className} creatives-templates-container ${isFullMode ? 'fullmode' : 'library-mode'}`}>
|
|
301
301
|
{isFullMode && <Helmet
|
|
302
302
|
title={this.props.intl.formatMessage(messages.creatives)}
|
|
303
303
|
meta={[
|
|
@@ -24,6 +24,7 @@ import CapNotification from '@capillarytech/cap-ui-library/CapNotification';
|
|
|
24
24
|
import CapAlert from '@capillarytech/cap-ui-library/CapAlert';
|
|
25
25
|
import CapCheckbox from '@capillarytech/cap-ui-library/CapCheckbox';
|
|
26
26
|
import CapLink from '@capillarytech/cap-ui-library/CapLink';
|
|
27
|
+
|
|
27
28
|
import moment from 'moment';
|
|
28
29
|
import {
|
|
29
30
|
CAP_SPACE_04,
|
|
@@ -246,7 +246,7 @@ export default defineMessages({
|
|
|
246
246
|
IncorrectCategoryError: {
|
|
247
247
|
id: `${prefix}.IncorrectCategoryError`,
|
|
248
248
|
defaultMessage:
|
|
249
|
-
'INCORRECT CATEGORY: Message content different from expected content in the
|
|
249
|
+
'INCORRECT CATEGORY: Message content different from expected content in the Category selected. Refer {here} for expected content in each Category.',
|
|
250
250
|
},
|
|
251
251
|
awaitingStatusMsg: {
|
|
252
252
|
id: `${prefix}.awaitingStatusMsg`,
|