@capillarytech/creatives-library 7.12.50 → 7.12.51
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 +28 -36
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +160 -337
- package/v2Containers/CreativesContainer/tests/index.test.js +0 -3
- 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 +2 -2
- 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 +60 -156
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',
|
|
@@ -1432,68 +1424,8 @@ export default {
|
|
|
1432
1424
|
},
|
|
1433
1425
|
linePreviewTemplateData1: {
|
|
1434
1426
|
mode: 'preview',
|
|
1435
|
-
_id: '
|
|
1436
|
-
name: '
|
|
1437
|
-
type: 'LINE',
|
|
1438
|
-
versions: {
|
|
1439
|
-
history: [],
|
|
1440
|
-
base: {
|
|
1441
|
-
content: {
|
|
1442
|
-
to: '{{line_id}}',
|
|
1443
|
-
messages: [
|
|
1444
|
-
{
|
|
1445
|
-
type: 'flex',
|
|
1446
|
-
altText: 'ggg',
|
|
1447
|
-
contents: {
|
|
1448
|
-
contents: [
|
|
1449
|
-
{
|
|
1450
|
-
type: 'bubble',
|
|
1451
|
-
hero: {
|
|
1452
|
-
type: 'image',
|
|
1453
|
-
url: 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/b9f2aa7a-3f1a-4a20-a737-8d50841.jpeg',
|
|
1454
|
-
size: 'full',
|
|
1455
|
-
aspectRatio: '1:1',
|
|
1456
|
-
aspectMode: 'cover',
|
|
1457
|
-
},
|
|
1458
|
-
footer: {
|
|
1459
|
-
type: 'box',
|
|
1460
|
-
layout: 'vertical',
|
|
1461
|
-
spacing: 'xs',
|
|
1462
|
-
contents: [
|
|
1463
|
-
{
|
|
1464
|
-
type: 'button',
|
|
1465
|
-
style: 'link',
|
|
1466
|
-
height: 'sm',
|
|
1467
|
-
action: {
|
|
1468
|
-
type: 'message',
|
|
1469
|
-
label: 'ggg',
|
|
1470
|
-
text: 'ggg',
|
|
1471
|
-
},
|
|
1472
|
-
},
|
|
1473
|
-
],
|
|
1474
|
-
},
|
|
1475
|
-
},
|
|
1476
|
-
],
|
|
1477
|
-
type: "carousel",
|
|
1478
|
-
},
|
|
1479
|
-
},
|
|
1480
|
-
],
|
|
1481
|
-
},
|
|
1482
|
-
},
|
|
1483
|
-
},
|
|
1484
|
-
isActive: true,
|
|
1485
|
-
orgId: 1604,
|
|
1486
|
-
createdBy: '15000449',
|
|
1487
|
-
updatedBy: '15000449',
|
|
1488
|
-
createdAt: '2022-06-07T16:37:35.447Z',
|
|
1489
|
-
updatedAt: '2022-06-07T16:42:02.243Z',
|
|
1490
|
-
totalCount: 31,
|
|
1491
|
-
updatedByName: 'Ashish Karan fd',
|
|
1492
|
-
},
|
|
1493
|
-
linePreviewTemplateData2: {
|
|
1494
|
-
mode: 'preview',
|
|
1495
|
-
_id: '62a2e0dd22c5bf412b6a5bae',
|
|
1496
|
-
name: 'rkrkrk',
|
|
1427
|
+
_id: '62a810e4d4715c768d6ee9cf',
|
|
1428
|
+
name: 'Demo Old Template 2(Multiple images)',
|
|
1497
1429
|
type: 'LINE',
|
|
1498
1430
|
versions: {
|
|
1499
1431
|
$init: true,
|
|
@@ -1502,21 +1434,24 @@ export default {
|
|
|
1502
1434
|
content: {
|
|
1503
1435
|
messages: [
|
|
1504
1436
|
{
|
|
1505
|
-
altText: '
|
|
1437
|
+
altText: 'Demo Old Template 2(Multiple images)',
|
|
1506
1438
|
template: {
|
|
1507
1439
|
type: 'image_carousel',
|
|
1508
1440
|
columns: [
|
|
1509
1441
|
{
|
|
1510
1442
|
action: {
|
|
1511
|
-
|
|
1512
|
-
label: '
|
|
1513
|
-
type: '
|
|
1443
|
+
uri: 'https://www.demo.com',
|
|
1444
|
+
label: 'Demo Old 2',
|
|
1445
|
+
type: 'uri',
|
|
1514
1446
|
},
|
|
1515
|
-
imageUrl:
|
|
1447
|
+
imageUrl:
|
|
1448
|
+
'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/f374edfe-1fd4-4b15-a6f7-74d5d86.jpeg',
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
imageUrl: '',
|
|
1516
1452
|
},
|
|
1517
1453
|
],
|
|
1518
1454
|
},
|
|
1519
|
-
type: 'template',
|
|
1520
1455
|
},
|
|
1521
1456
|
],
|
|
1522
1457
|
to: '{{line_id}}',
|
|
@@ -1527,17 +1462,21 @@ export default {
|
|
|
1527
1462
|
orgId: 1604,
|
|
1528
1463
|
createdBy: '15000449',
|
|
1529
1464
|
updatedBy: '15000449',
|
|
1530
|
-
createdAt: '2022-06-
|
|
1531
|
-
updatedAt: '2022-06-
|
|
1532
|
-
|
|
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,
|
|
1533
1471
|
updatedByName: 'Ashish Karan fd',
|
|
1534
1472
|
},
|
|
1535
|
-
|
|
1473
|
+
linePreviewTemplateData2: {
|
|
1536
1474
|
mode: 'preview',
|
|
1537
1475
|
_id: '629f7ecf134738019b2e332e',
|
|
1538
1476
|
name: 'ggg1',
|
|
1539
1477
|
type: 'LINE',
|
|
1540
1478
|
versions: {
|
|
1479
|
+
$init: true,
|
|
1541
1480
|
history: [],
|
|
1542
1481
|
base: {
|
|
1543
1482
|
content: {
|
|
@@ -1548,11 +1487,48 @@ export default {
|
|
|
1548
1487
|
altText: 'ggg',
|
|
1549
1488
|
contents: {
|
|
1550
1489
|
contents: [
|
|
1490
|
+
{
|
|
1491
|
+
type: 'bubble',
|
|
1492
|
+
hero: {
|
|
1493
|
+
type: 'image',
|
|
1494
|
+
url: 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/b9f2aa7a-3f1a-4a20-a737-8d50841.jpeg',
|
|
1495
|
+
size: 'full',
|
|
1496
|
+
aspectRatio: '1:1',
|
|
1497
|
+
aspectMode: 'cover',
|
|
1498
|
+
},
|
|
1499
|
+
footer: {
|
|
1500
|
+
type: 'box',
|
|
1501
|
+
layout: 'vertical',
|
|
1502
|
+
spacing: 'xs',
|
|
1503
|
+
contents: [
|
|
1504
|
+
{
|
|
1505
|
+
type: 'button',
|
|
1506
|
+
style: 'link',
|
|
1507
|
+
height: 'sm',
|
|
1508
|
+
action: {
|
|
1509
|
+
type: 'message',
|
|
1510
|
+
label: 'ggg',
|
|
1511
|
+
text: 'ggg',
|
|
1512
|
+
},
|
|
1513
|
+
},
|
|
1514
|
+
],
|
|
1515
|
+
},
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
type: 'bubble',
|
|
1519
|
+
hero: {},
|
|
1520
|
+
footer: {
|
|
1521
|
+
type: 'box',
|
|
1522
|
+
layout: 'vertical',
|
|
1523
|
+
spacing: 'xs',
|
|
1524
|
+
contents: [{}],
|
|
1525
|
+
},
|
|
1526
|
+
},
|
|
1551
1527
|
{
|
|
1552
1528
|
type: 'bubble',
|
|
1553
1529
|
},
|
|
1554
1530
|
],
|
|
1555
|
-
type:
|
|
1531
|
+
type: 'carousel',
|
|
1556
1532
|
},
|
|
1557
1533
|
},
|
|
1558
1534
|
],
|
|
@@ -1565,82 +1541,10 @@ export default {
|
|
|
1565
1541
|
updatedBy: '15000449',
|
|
1566
1542
|
createdAt: '2022-06-07T16:37:35.447Z',
|
|
1567
1543
|
updatedAt: '2022-06-07T16:42:02.243Z',
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
},
|
|
1571
|
-
linePreviewTemplateData4: {
|
|
1572
|
-
mode: 'preview',
|
|
1573
|
-
_id: '62a2e0dd22c5bf412b6a5bae',
|
|
1574
|
-
name: 'rkrkrk',
|
|
1575
|
-
type: 'LINE',
|
|
1576
|
-
versions: {
|
|
1577
|
-
$init: true,
|
|
1578
|
-
history: [],
|
|
1579
|
-
base: {
|
|
1580
|
-
content: {
|
|
1581
|
-
messages: [
|
|
1582
|
-
{
|
|
1583
|
-
altText: 'rlrlr',
|
|
1584
|
-
template: {
|
|
1585
|
-
type: 'image_carousel',
|
|
1586
|
-
},
|
|
1587
|
-
type: 'template',
|
|
1588
|
-
},
|
|
1589
|
-
],
|
|
1590
|
-
to: '{{line_id}}',
|
|
1591
|
-
},
|
|
1592
|
-
},
|
|
1593
|
-
},
|
|
1594
|
-
isActive: true,
|
|
1595
|
-
orgId: 1604,
|
|
1596
|
-
createdBy: '15000449',
|
|
1597
|
-
updatedBy: '15000449',
|
|
1598
|
-
createdAt: '2022-06-10T06:12:46.099Z',
|
|
1599
|
-
updatedAt: '2022-06-10T06:12:46.099Z',
|
|
1600
|
-
totalCount: 41,
|
|
1601
|
-
updatedByName: 'Ashish Karan fd',
|
|
1602
|
-
},
|
|
1603
|
-
linePreviewTemplateContent: {
|
|
1604
|
-
mode: 'preview',
|
|
1605
|
-
selectedSticker: {},
|
|
1606
|
-
imageCarousel: [
|
|
1607
|
-
{
|
|
1608
|
-
imageUrl: 'https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/a7be98a7-c138-4f9a-a1ab-47b8995.jpeg',
|
|
1609
|
-
actionLabel: 'rkr',
|
|
1610
|
-
},
|
|
1611
|
-
],
|
|
1612
|
-
type: 'image_carousel',
|
|
1613
|
-
},
|
|
1614
|
-
viberPreviewTemplateData: {
|
|
1615
|
-
mode: 'preview',
|
|
1616
|
-
_id: '6238426399910ee787e92a87',
|
|
1617
|
-
name: 'testetsetst',
|
|
1618
|
-
type: 'VIBER',
|
|
1619
|
-
versions: {
|
|
1620
|
-
$init: true,
|
|
1621
|
-
history: [],
|
|
1622
|
-
base: {
|
|
1623
|
-
content: {
|
|
1624
|
-
viber: {
|
|
1625
|
-
text: 'testetsetst',
|
|
1626
|
-
},
|
|
1627
|
-
destinations: [
|
|
1628
|
-
{
|
|
1629
|
-
to: {
|
|
1630
|
-
phoneNumber: '{{viber_user_id}}',
|
|
1631
|
-
},
|
|
1632
|
-
},
|
|
1633
|
-
],
|
|
1634
|
-
},
|
|
1635
|
-
},
|
|
1544
|
+
definition: {
|
|
1545
|
+
mode: 'template',
|
|
1636
1546
|
},
|
|
1637
|
-
|
|
1638
|
-
orgId: 1604,
|
|
1639
|
-
createdBy: '15000449',
|
|
1640
|
-
updatedBy: '15000449',
|
|
1641
|
-
createdAt: '2022-03-21T09:16:19.972Z',
|
|
1642
|
-
updatedAt: '2022-03-21T09:16:19.972Z',
|
|
1643
|
-
totalCount: 2,
|
|
1547
|
+
totalCount: 1,
|
|
1644
1548
|
updatedByName: 'Ashish Karan fd',
|
|
1645
1549
|
},
|
|
1646
1550
|
};
|