@capillarytech/creatives-library 7.12.44 → 7.12.45
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/config/app.js +0 -1
- package/package.json +1 -1
- package/v2Containers/Cap/tests/index.test.js +2 -2
- package/v2Containers/CreativesContainer/SlideBoxContent.js +8 -7
- package/v2Containers/CreativesContainer/tests/SlideBoxContent.test.js +30 -20
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +303 -12
- package/v2Containers/Line/Container/ImageCarousel/Content.js +15 -29
- package/v2Containers/Line/Container/ImageCarousel/constants.js +3 -0
- package/v2Containers/Line/Container/ImageCarousel/index.js +24 -35
- package/v2Containers/Line/Container/ImageCarousel/messages.js +4 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +9851 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +21113 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/content.test.js +71 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/index.test.js +58 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/mockData.js +1322 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/utils.test.js +13 -0
- package/v2Containers/Line/Container/ImageCarousel/utils.js +12 -0
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +84451 -0
- package/v2Containers/Line/Container/Wrapper/tests/index.test.js +58 -0
- package/v2Containers/Line/Container/Wrapper/tests/mockData.js +171 -0
- package/v2Containers/Line/Container/index.js +2 -0
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +59589 -0
- package/v2Containers/Line/Container/tests/index.test.js +105 -0
- package/v2Containers/Line/Container/tests/mockData.js +1334 -0
- package/v2Containers/mockdata.js +68 -11
package/v2Containers/mockdata.js
CHANGED
|
@@ -1191,14 +1191,6 @@ export default {
|
|
|
1191
1191
|
channel: 'RCS',
|
|
1192
1192
|
validity: true,
|
|
1193
1193
|
},
|
|
1194
|
-
lineEditTemplateData: {
|
|
1195
|
-
mode: 'edit',
|
|
1196
|
-
_id: '629f7ecf134738019b2e332e',
|
|
1197
|
-
modeType: '',
|
|
1198
|
-
type: 'LINE',
|
|
1199
|
-
channel: 'LINE',
|
|
1200
|
-
validity: true,
|
|
1201
|
-
},
|
|
1202
1194
|
getWhatsappContentOutput: '1234567890\nClick {{unsubscribe}} to unsubscribe',
|
|
1203
1195
|
getWhatsappStatusOutput: {
|
|
1204
1196
|
key: 'approved',
|
|
@@ -1430,12 +1422,61 @@ export default {
|
|
|
1430
1422
|
language: {
|
|
1431
1423
|
localeLoading: false,
|
|
1432
1424
|
},
|
|
1433
|
-
|
|
1425
|
+
linePreviewTemplateData1: {
|
|
1426
|
+
mode: 'preview',
|
|
1427
|
+
_id: '62a810e4d4715c768d6ee9cf',
|
|
1428
|
+
name: 'Demo Old Template 2(Multiple images)',
|
|
1429
|
+
type: 'LINE',
|
|
1430
|
+
versions: {
|
|
1431
|
+
$init: true,
|
|
1432
|
+
history: [],
|
|
1433
|
+
base: {
|
|
1434
|
+
content: {
|
|
1435
|
+
messages: [
|
|
1436
|
+
{
|
|
1437
|
+
altText: 'Demo Old Template 2(Multiple images)',
|
|
1438
|
+
template: {
|
|
1439
|
+
type: 'image_carousel',
|
|
1440
|
+
columns: [
|
|
1441
|
+
{
|
|
1442
|
+
action: {
|
|
1443
|
+
uri: 'https://www.demo.com',
|
|
1444
|
+
label: 'Demo Old 2',
|
|
1445
|
+
type: 'uri',
|
|
1446
|
+
},
|
|
1447
|
+
imageUrl:
|
|
1448
|
+
'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/f374edfe-1fd4-4b15-a6f7-74d5d86.jpeg',
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
imageUrl: '',
|
|
1452
|
+
},
|
|
1453
|
+
],
|
|
1454
|
+
},
|
|
1455
|
+
},
|
|
1456
|
+
],
|
|
1457
|
+
to: '{{line_id}}',
|
|
1458
|
+
},
|
|
1459
|
+
},
|
|
1460
|
+
},
|
|
1461
|
+
isActive: true,
|
|
1462
|
+
orgId: 1604,
|
|
1463
|
+
createdBy: '15000449',
|
|
1464
|
+
updatedBy: '15000449',
|
|
1465
|
+
createdAt: '2022-06-14T04:39:00.665Z',
|
|
1466
|
+
updatedAt: '2022-06-14T04:39:00.665Z',
|
|
1467
|
+
definition: {
|
|
1468
|
+
mode: 'template',
|
|
1469
|
+
},
|
|
1470
|
+
totalCount: 1,
|
|
1471
|
+
updatedByName: 'Ashish Karan fd',
|
|
1472
|
+
},
|
|
1473
|
+
linePreviewTemplateData2: {
|
|
1434
1474
|
mode: 'preview',
|
|
1435
1475
|
_id: '629f7ecf134738019b2e332e',
|
|
1436
1476
|
name: 'ggg1',
|
|
1437
1477
|
type: 'LINE',
|
|
1438
1478
|
versions: {
|
|
1479
|
+
$init: true,
|
|
1439
1480
|
history: [],
|
|
1440
1481
|
base: {
|
|
1441
1482
|
content: {
|
|
@@ -1473,8 +1514,21 @@ export default {
|
|
|
1473
1514
|
],
|
|
1474
1515
|
},
|
|
1475
1516
|
},
|
|
1517
|
+
{
|
|
1518
|
+
type: 'bubble',
|
|
1519
|
+
hero: {},
|
|
1520
|
+
footer: {
|
|
1521
|
+
type: 'box',
|
|
1522
|
+
layout: 'vertical',
|
|
1523
|
+
spacing: 'xs',
|
|
1524
|
+
contents: [{}],
|
|
1525
|
+
},
|
|
1526
|
+
},
|
|
1527
|
+
{
|
|
1528
|
+
type: 'bubble',
|
|
1529
|
+
},
|
|
1476
1530
|
],
|
|
1477
|
-
type:
|
|
1531
|
+
type: 'carousel',
|
|
1478
1532
|
},
|
|
1479
1533
|
},
|
|
1480
1534
|
],
|
|
@@ -1487,7 +1541,10 @@ export default {
|
|
|
1487
1541
|
updatedBy: '15000449',
|
|
1488
1542
|
createdAt: '2022-06-07T16:37:35.447Z',
|
|
1489
1543
|
updatedAt: '2022-06-07T16:42:02.243Z',
|
|
1490
|
-
|
|
1544
|
+
definition: {
|
|
1545
|
+
mode: 'template',
|
|
1546
|
+
},
|
|
1547
|
+
totalCount: 1,
|
|
1491
1548
|
updatedByName: 'Ashish Karan fd',
|
|
1492
1549
|
},
|
|
1493
1550
|
};
|