@capillarytech/creatives-library 7.15.4 → 7.15.7
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 +2 -7
- package/package.json +1 -1
- package/reducers.js +2 -0
- package/services/api.js +9 -1
- package/tests/integration/TemplateCreation/TemplateCreation.integration.test.js +420 -0
- package/tests/integration/TemplateCreation/api-response.js +1663 -0
- package/tests/integration/TemplateCreation/helper.js +23 -0
- package/tests/integration/TemplateCreation/mocks/initialState.js +428 -0
- package/tests/integration/TemplateCreation/msw-handler.js +48 -0
- package/translations/en.json +4 -192
- package/translations/zh.json +3 -191
- package/v2Components/CapActionButton/index.js +1 -0
- package/v2Components/FormBuilder/index.js +28 -4
- package/v2Containers/Assets/Gallery/index.js +1 -1
- package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +4 -193
- package/v2Containers/CreativesContainer/constants.js +2 -0
- package/v2Containers/CreativesContainer/selectors.js +2 -2
- package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +8 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +15 -579
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +8 -386
- package/v2Containers/Line/Container/Text/index.js +3 -2
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +72 -3281
- 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 +3 -0
- package/v2Containers/Rcs/messages.js +1 -1
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +500 -9136
- 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 -772
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +32 -1544
- package/v2Containers/Templates/messages.js +2 -2
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +16 -0
- package/v2Containers/TemplatesV2/index.js +1 -1
- package/v2Containers/Viber/index.js +1 -0
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +336 -13703
- package/translations/ja-JP.json +0 -2013
|
@@ -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,7 +219,9 @@ exports[`Test Templates container Should render temlates when whatsapp templates
|
|
|
219
219
|
<CapRow />
|
|
220
220
|
<CapRow>
|
|
221
221
|
<CapSlideBox
|
|
222
|
+
closeIconPosition="right"
|
|
222
223
|
closeIconSize="m"
|
|
224
|
+
closeIconType="close"
|
|
223
225
|
content={
|
|
224
226
|
<CardGrid
|
|
225
227
|
className=""
|
|
@@ -511,7 +513,9 @@ exports[`Test Templates container Should render temlates when whatsapp templates
|
|
|
511
513
|
<CapRow />
|
|
512
514
|
<CapRow>
|
|
513
515
|
<CapSlideBox
|
|
516
|
+
closeIconPosition="right"
|
|
514
517
|
closeIconSize="m"
|
|
518
|
+
closeIconType="close"
|
|
515
519
|
content={
|
|
516
520
|
<CardGrid
|
|
517
521
|
className=""
|
|
@@ -978,7 +982,9 @@ Click {{3}} to unsubscribe",
|
|
|
978
982
|
<CapRow />
|
|
979
983
|
<CapRow>
|
|
980
984
|
<CapSlideBox
|
|
985
|
+
closeIconPosition="right"
|
|
981
986
|
closeIconSize="m"
|
|
987
|
+
closeIconType="close"
|
|
982
988
|
content={
|
|
983
989
|
<CardGrid
|
|
984
990
|
className=""
|
|
@@ -1413,7 +1419,9 @@ Click {{3}} to unsubscribe",
|
|
|
1413
1419
|
<CapRow />
|
|
1414
1420
|
<CapRow>
|
|
1415
1421
|
<CapSlideBox
|
|
1422
|
+
closeIconPosition="right"
|
|
1416
1423
|
closeIconSize="m"
|
|
1424
|
+
closeIconType="close"
|
|
1417
1425
|
content={
|
|
1418
1426
|
<CardGrid
|
|
1419
1427
|
className=""
|
|
@@ -1848,7 +1856,9 @@ Click {{3}} to unsubscribe",
|
|
|
1848
1856
|
<CapRow />
|
|
1849
1857
|
<CapRow>
|
|
1850
1858
|
<CapSlideBox
|
|
1859
|
+
closeIconPosition="right"
|
|
1851
1860
|
closeIconSize="m"
|
|
1861
|
+
closeIconType="close"
|
|
1852
1862
|
content={
|
|
1853
1863
|
<CardGrid
|
|
1854
1864
|
className=""
|
|
@@ -2110,7 +2120,9 @@ exports[`Test Templates container Test removing all whatsapp filterss 1`] = `
|
|
|
2110
2120
|
<CapRow />
|
|
2111
2121
|
<CapRow>
|
|
2112
2122
|
<CapSlideBox
|
|
2123
|
+
closeIconPosition="right"
|
|
2113
2124
|
closeIconSize="m"
|
|
2125
|
+
closeIconType="close"
|
|
2114
2126
|
content={
|
|
2115
2127
|
<CardGrid
|
|
2116
2128
|
className=""
|
|
@@ -2346,7 +2358,9 @@ exports[`Test Templates container Test removing all whatsapp filterss 2`] = `
|
|
|
2346
2358
|
<CapRow />
|
|
2347
2359
|
<CapRow>
|
|
2348
2360
|
<CapSlideBox
|
|
2361
|
+
closeIconPosition="right"
|
|
2349
2362
|
closeIconSize="m"
|
|
2363
|
+
closeIconType="close"
|
|
2350
2364
|
content={
|
|
2351
2365
|
<CardGrid
|
|
2352
2366
|
className=""
|
|
@@ -2582,7 +2596,9 @@ exports[`Test Templates container Test removing single filter 1`] = `
|
|
|
2582
2596
|
<CapRow />
|
|
2583
2597
|
<CapRow>
|
|
2584
2598
|
<CapSlideBox
|
|
2599
|
+
closeIconPosition="right"
|
|
2585
2600
|
closeIconSize="m"
|
|
2601
|
+
closeIconType="close"
|
|
2586
2602
|
content={
|
|
2587
2603
|
<CardGrid
|
|
2588
2604
|
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'}`} data-testid="cap-wrapper">
|
|
301
301
|
{isFullMode && <Helmet
|
|
302
302
|
title={this.props.intl.formatMessage(messages.creatives)}
|
|
303
303
|
meta={[
|