@capillarytech/creatives-library 9.0.44 → 9.0.46
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/constants/unified.js +1 -0
- package/package.json +1 -1
- package/v2Components/CommonTestAndPreview/UnifiedPreview/SmsPreviewContent.js +21 -1
- package/v2Components/CommonTestAndPreview/UnifiedPreview/ViberCarouselPreviewCards.js +127 -0
- package/v2Components/CommonTestAndPreview/UnifiedPreview/ViberPreviewContent.js +106 -15
- package/v2Components/CommonTestAndPreview/UnifiedPreview/_unifiedPreview.scss +144 -1
- package/v2Components/CommonTestAndPreview/UnifiedPreview/_viberCarouselPreviewCards.scss +133 -0
- package/v2Components/CommonTestAndPreview/constants.js +2 -0
- package/v2Components/CommonTestAndPreview/index.js +241 -26
- package/v2Components/CommonTestAndPreview/tests/UnifiedPreview/SmsPreviewContent.test.js +32 -0
- package/v2Components/CommonTestAndPreview/tests/UnifiedPreview/ViberPreviewContent.test.js +364 -0
- package/v2Components/CommonTestAndPreview/tests/utils.test.js +49 -0
- package/v2Components/CommonTestAndPreview/utils.js +20 -0
- package/v2Components/SmsFallback/constants.js +19 -0
- package/v2Components/SmsFallback/index.js +0 -3
- package/v2Containers/SmsTrai/Edit/constants.js +2 -0
- package/v2Containers/SmsTrai/Edit/dltVarTypes.js +88 -0
- package/v2Containers/SmsTrai/Edit/index.js +206 -96
- package/v2Containers/SmsTrai/Edit/index.scss +117 -1
- package/v2Containers/SmsTrai/Edit/messages.js +40 -0
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +21164 -4559
- package/v2Containers/SmsTrai/Edit/tests/dltVarTypes.test.js +100 -0
- package/v2Containers/Templates/_templates.scss +203 -2
- package/v2Containers/Templates/index.js +193 -42
- package/v2Containers/Templates/messages.js +12 -0
- package/v2Containers/Viber/constants.js +21 -0
- package/v2Containers/Viber/index.js +719 -49
- package/v2Containers/Viber/index.scss +175 -0
- package/v2Containers/Viber/messages.js +121 -0
- package/v2Containers/Viber/tests/index.test.js +80 -0
- package/v2Containers/Whatsapp/index.js +2 -0
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +612 -0
- package/v2Containers/Whatsapp/tests/index.test.js +8 -0
|
@@ -1491,6 +1491,14 @@ describe('WhatsApp edit Done button whitespace validation', () => {
|
|
|
1491
1491
|
expect(getDoneButton().props().disabled).toBe(true);
|
|
1492
1492
|
});
|
|
1493
1493
|
|
|
1494
|
+
it('propagates templateId from edit content into TestAndPreviewSlidebox formData', () => {
|
|
1495
|
+
mountEditFlow(mockData.editData1);
|
|
1496
|
+
const slidebox = renderedComponent.find('TestAndPreviewSlidebox').first();
|
|
1497
|
+
expect(slidebox.exists()).toBe(true);
|
|
1498
|
+
expect(slidebox.prop('formData').templateId).toBe('HT9bb4d61eea1699d2dbcaecd1cb558345');
|
|
1499
|
+
expect(slidebox.prop('content').templateId).toBe('HT9bb4d61eea1699d2dbcaecd1cb558345');
|
|
1500
|
+
});
|
|
1501
|
+
|
|
1494
1502
|
it('keeps Done disabled for whitespace-only carousel variable', () => {
|
|
1495
1503
|
const editData = {
|
|
1496
1504
|
templateDetails: {
|