@capillarytech/creatives-library 9.0.46 → 9.0.48
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/package.json +1 -1
- package/v2Components/CommonTestAndPreview/UnifiedPreview/ViberPreviewContent.js +15 -106
- package/v2Components/CommonTestAndPreview/UnifiedPreview/_unifiedPreview.scss +1 -139
- package/v2Components/CommonTestAndPreview/constants.js +0 -2
- package/v2Components/CommonTestAndPreview/index.js +30 -241
- package/v2Components/CommonTestAndPreview/tests/UnifiedPreview/ViberPreviewContent.test.js +0 -364
- package/v2Components/CommonTestAndPreview/tests/utils.test.js +0 -49
- package/v2Components/CommonTestAndPreview/utils.js +0 -20
- package/v2Containers/SmsTrai/Edit/index.js +6 -10
- package/v2Containers/Templates/_templates.scss +1 -179
- package/v2Containers/Templates/index.js +29 -99
- package/v2Containers/Viber/constants.js +0 -21
- package/v2Containers/Viber/index.js +49 -719
- package/v2Containers/Viber/index.scss +0 -175
- package/v2Containers/Viber/messages.js +0 -121
- package/v2Containers/Viber/tests/index.test.js +0 -80
- package/v2Components/CommonTestAndPreview/UnifiedPreview/ViberCarouselPreviewCards.js +0 -127
- package/v2Components/CommonTestAndPreview/UnifiedPreview/_viberCarouselPreviewCards.scss +0 -133
|
@@ -246,8 +246,6 @@ const CommonTestAndPreview = (props) => {
|
|
|
246
246
|
const [smsFallbackPreviewText, setSmsFallbackPreviewText] = useState(undefined);
|
|
247
247
|
// Track if a preview call has been made (to know when to use previewDataHtml vs raw content)
|
|
248
248
|
const [hasPreviewCallBeenMade, setHasPreviewCallBeenMade] = useState(false);
|
|
249
|
-
// Viber: tag values applied to preview only after explicit Update preview / Discard (not while typing)
|
|
250
|
-
const [viberPreviewTagValues, setViberPreviewTagValues] = useState(null);
|
|
251
249
|
const [previewDataHtml, setPreviewDataHtml] = useState(() => {
|
|
252
250
|
// Initialize preview data based on channel
|
|
253
251
|
if (channel === CHANNELS.EMAIL && formData) {
|
|
@@ -689,159 +687,6 @@ const CommonTestAndPreview = (props) => {
|
|
|
689
687
|
return resolvedText;
|
|
690
688
|
};
|
|
691
689
|
|
|
692
|
-
const getViberMergedFormData = useCallback((formDataOverride) => {
|
|
693
|
-
const formDataObj = formDataOverride && typeof formDataOverride === 'object'
|
|
694
|
-
? formDataOverride
|
|
695
|
-
: (formData && typeof formData === 'object' ? formData : {});
|
|
696
|
-
let contentObj = {};
|
|
697
|
-
if (content && typeof content === 'object') {
|
|
698
|
-
contentObj = content;
|
|
699
|
-
} else if (typeof content === 'string' && content.trim()) {
|
|
700
|
-
try {
|
|
701
|
-
contentObj = JSON.parse(content);
|
|
702
|
-
} catch (e) {
|
|
703
|
-
contentObj = {};
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
const previewCards = formDataObj?.viberPreviewContent?.cards
|
|
707
|
-
?? formDataObj?.cards
|
|
708
|
-
?? contentObj?.viberPreviewContent?.cards
|
|
709
|
-
?? contentObj?.cards;
|
|
710
|
-
const isCarousel = Boolean(
|
|
711
|
-
formDataObj.type === MEDIA_TYPE_CAROUSEL
|
|
712
|
-
|| contentObj.type === MEDIA_TYPE_CAROUSEL
|
|
713
|
-
|| (Array.isArray(previewCards) && previewCards.length > 0),
|
|
714
|
-
);
|
|
715
|
-
const mergedPreview = {
|
|
716
|
-
...(contentObj.viberPreviewContent || {}),
|
|
717
|
-
...(formDataObj.viberPreviewContent || {}),
|
|
718
|
-
...(Array.isArray(previewCards) && previewCards.length ? { cards: previewCards } : {}),
|
|
719
|
-
...(isCarousel ? {
|
|
720
|
-
type: MEDIA_TYPE_CAROUSEL,
|
|
721
|
-
showCarouselEditorPreview: true,
|
|
722
|
-
} : {}),
|
|
723
|
-
};
|
|
724
|
-
return {
|
|
725
|
-
...contentObj,
|
|
726
|
-
...formDataObj,
|
|
727
|
-
...(Array.isArray(previewCards) && previewCards.length ? { cards: previewCards } : {}),
|
|
728
|
-
...(isCarousel ? { type: MEDIA_TYPE_CAROUSEL } : {}),
|
|
729
|
-
...(Object.keys(mergedPreview).length ? { viberPreviewContent: mergedPreview } : {}),
|
|
730
|
-
};
|
|
731
|
-
}, [formData, content]);
|
|
732
|
-
|
|
733
|
-
const getViberCarouselCardsFromFormData = (formDataObj) => {
|
|
734
|
-
const previewCards = formDataObj?.viberPreviewContent?.cards;
|
|
735
|
-
if (Array.isArray(previewCards) && previewCards.length) {
|
|
736
|
-
return previewCards;
|
|
737
|
-
}
|
|
738
|
-
const rootCards = formDataObj?.cards;
|
|
739
|
-
if (Array.isArray(rootCards) && rootCards.length) {
|
|
740
|
-
return rootCards;
|
|
741
|
-
}
|
|
742
|
-
return [];
|
|
743
|
-
};
|
|
744
|
-
|
|
745
|
-
const getViberTagExtractionContent = (formDataObj, contentStr = '') => {
|
|
746
|
-
const messageText = formDataObj?.messageContent
|
|
747
|
-
|| formDataObj?.viberPreviewContent?.messageContent
|
|
748
|
-
|| contentStr
|
|
749
|
-
|| '';
|
|
750
|
-
const cardFieldTexts = getViberCarouselCardsFromFormData(formDataObj).flatMap((card) => {
|
|
751
|
-
const fields = [card?.text || ''];
|
|
752
|
-
(card?.buttons || []).forEach((button) => {
|
|
753
|
-
fields.push(button?.title || '', button?.action || '');
|
|
754
|
-
});
|
|
755
|
-
return fields;
|
|
756
|
-
});
|
|
757
|
-
return [messageText, ...cardFieldTexts]
|
|
758
|
-
.filter((value) => typeof value === 'string' && value.trim())
|
|
759
|
-
.join(' ');
|
|
760
|
-
};
|
|
761
|
-
|
|
762
|
-
const resolveViberCarouselCards = (cards, tagValues) => {
|
|
763
|
-
if (!Array.isArray(cards) || !tagValues || !Object.keys(tagValues).length) {
|
|
764
|
-
return cards;
|
|
765
|
-
}
|
|
766
|
-
return cards.map((card) => ({
|
|
767
|
-
...card,
|
|
768
|
-
text: resolveTagsInText(card?.text || '', tagValues),
|
|
769
|
-
buttons: (card?.buttons || []).map((button) => ({
|
|
770
|
-
...button,
|
|
771
|
-
title: resolveTagsInText(button?.title || '', tagValues),
|
|
772
|
-
action: resolveTagsInText(button?.action || '', tagValues),
|
|
773
|
-
})),
|
|
774
|
-
}));
|
|
775
|
-
};
|
|
776
|
-
|
|
777
|
-
const applyViberCustomValuesToContent = (contentObj, tagValues) => {
|
|
778
|
-
if (!contentObj || typeof contentObj !== 'object' || !tagValues || !Object.keys(tagValues).length) {
|
|
779
|
-
return contentObj;
|
|
780
|
-
}
|
|
781
|
-
const result = { ...contentObj };
|
|
782
|
-
if (typeof result.messageContent === 'string') {
|
|
783
|
-
result.messageContent = resolveTagsInText(result.messageContent, tagValues);
|
|
784
|
-
}
|
|
785
|
-
if (Array.isArray(result.cards)) {
|
|
786
|
-
result.cards = resolveViberCarouselCards(result.cards, tagValues);
|
|
787
|
-
}
|
|
788
|
-
if (result.viberPreviewContent && typeof result.viberPreviewContent === 'object') {
|
|
789
|
-
const preview = result.viberPreviewContent;
|
|
790
|
-
result.viberPreviewContent = {
|
|
791
|
-
...preview,
|
|
792
|
-
messageContent: resolveTagsInText(preview.messageContent || '', tagValues),
|
|
793
|
-
cards: resolveViberCarouselCards(preview.cards, tagValues),
|
|
794
|
-
};
|
|
795
|
-
}
|
|
796
|
-
return result;
|
|
797
|
-
};
|
|
798
|
-
|
|
799
|
-
const mergeViberPreviewWithResolved = (base, resolved) => {
|
|
800
|
-
if (!resolved || typeof resolved !== 'object') {
|
|
801
|
-
return base && typeof base === 'object' ? base : {};
|
|
802
|
-
}
|
|
803
|
-
const baseObj = base && typeof base === 'object' ? base : {};
|
|
804
|
-
const basePreview = baseObj.viberPreviewContent || {};
|
|
805
|
-
const resolvedPreview = resolved.viberPreviewContent || {};
|
|
806
|
-
const baseCards = basePreview.cards || baseObj.cards || [];
|
|
807
|
-
const resolvedCards = resolvedPreview.cards || resolved.cards || [];
|
|
808
|
-
const mergedCards = baseCards.length
|
|
809
|
-
? baseCards.map((card, index) => {
|
|
810
|
-
const resolvedCard = resolvedCards[index];
|
|
811
|
-
if (!resolvedCard) {
|
|
812
|
-
return card;
|
|
813
|
-
}
|
|
814
|
-
return {
|
|
815
|
-
...card,
|
|
816
|
-
...(resolvedCard.text != null ? { text: resolvedCard.text } : {}),
|
|
817
|
-
...(resolvedCard.mediaUrl != null ? { mediaUrl: resolvedCard.mediaUrl } : {}),
|
|
818
|
-
buttons: (card.buttons || []).map((button, buttonIndex) => ({
|
|
819
|
-
...button,
|
|
820
|
-
...(resolvedCard.buttons?.[buttonIndex] || {}),
|
|
821
|
-
})),
|
|
822
|
-
};
|
|
823
|
-
})
|
|
824
|
-
: resolvedCards;
|
|
825
|
-
const resolvedMessage = resolved.messageContent ?? resolvedPreview.messageContent;
|
|
826
|
-
|
|
827
|
-
return {
|
|
828
|
-
...baseObj,
|
|
829
|
-
...resolved,
|
|
830
|
-
viberPreviewContent: {
|
|
831
|
-
...basePreview,
|
|
832
|
-
...resolvedPreview,
|
|
833
|
-
type: resolvedPreview.type || basePreview.type || baseObj.type || (mergedCards.length ? MEDIA_TYPE_CAROUSEL : ''),
|
|
834
|
-
cards: mergedCards.length ? mergedCards : (resolvedPreview.cards || basePreview.cards),
|
|
835
|
-
showCarouselEditorPreview: Boolean(
|
|
836
|
-
basePreview.showCarouselEditorPreview
|
|
837
|
-
|| resolvedPreview.showCarouselEditorPreview
|
|
838
|
-
|| mergedCards.length > 0,
|
|
839
|
-
),
|
|
840
|
-
...(resolvedMessage != null ? { messageContent: resolvedMessage } : {}),
|
|
841
|
-
},
|
|
842
|
-
};
|
|
843
|
-
};
|
|
844
|
-
|
|
845
690
|
/**
|
|
846
691
|
* Common handler for saving test customers (both new and existing)
|
|
847
692
|
*/
|
|
@@ -1120,13 +965,11 @@ const CommonTestAndPreview = (props) => {
|
|
|
1120
965
|
templateContent: formDataObj?.bodyText || contentStr,
|
|
1121
966
|
};
|
|
1122
967
|
|
|
1123
|
-
case CHANNELS.VIBER:
|
|
1124
|
-
const viberFormData = getViberMergedFormData(formDataObj);
|
|
968
|
+
case CHANNELS.VIBER:
|
|
1125
969
|
return {
|
|
1126
|
-
templateSubject:
|
|
1127
|
-
templateContent:
|
|
970
|
+
templateSubject: formDataObj?.messageTitle || '',
|
|
971
|
+
templateContent: contentStr,
|
|
1128
972
|
};
|
|
1129
|
-
}
|
|
1130
973
|
|
|
1131
974
|
case CHANNELS.WEBPUSH:
|
|
1132
975
|
return {
|
|
@@ -1507,7 +1350,10 @@ const CommonTestAndPreview = (props) => {
|
|
|
1507
1350
|
const language = formDataObj?.language || formDataObj?.templateLanguage || 'en';
|
|
1508
1351
|
const mediaType = formDataObj?.mediaType || formDataObj?.templateMediaType || MEDIA_TYPE_TEXT;
|
|
1509
1352
|
const buttonType = formDataObj?.buttonType || BUTTON_TYPE_NONE;
|
|
1510
|
-
const
|
|
1353
|
+
const existingVarMapped = formDataObj?.varMapped || {};
|
|
1354
|
+
const varMapped = Object.keys(existingVarMapped).length > 0
|
|
1355
|
+
? existingVarMapped
|
|
1356
|
+
: (customValuesObj || {});
|
|
1511
1357
|
const isPreviewUrl = formDataObj?.isPreviewUrl || false;
|
|
1512
1358
|
|
|
1513
1359
|
// Extract buttons from ctaData or quickReplyData
|
|
@@ -2181,16 +2027,11 @@ const CommonTestAndPreview = (props) => {
|
|
|
2181
2027
|
// 1. formDataObj from getTemplateContent (contains both viberPreviewContent and payload fields)
|
|
2182
2028
|
// 2. formDataObj[0] (array format - legacy)
|
|
2183
2029
|
// 3. contentStr (direct string - legacy)
|
|
2184
|
-
// Merge content prop so listing / preview-only flows include carousel card tags
|
|
2185
|
-
const viberFormData = getViberMergedFormData(formDataObj);
|
|
2186
|
-
formDataObj = viberFormData;
|
|
2187
2030
|
|
|
2188
2031
|
let messageText = '';
|
|
2189
2032
|
let imageData = null;
|
|
2190
2033
|
let videoData = null;
|
|
2191
2034
|
let buttonData = null;
|
|
2192
|
-
let cardsData = [];
|
|
2193
|
-
let messageType = '';
|
|
2194
2035
|
let accountId = null;
|
|
2195
2036
|
let accountDetails = null;
|
|
2196
2037
|
let scenarioKey = '';
|
|
@@ -2205,8 +2046,6 @@ const CommonTestAndPreview = (props) => {
|
|
|
2205
2046
|
imageData = formDataObj.image || null;
|
|
2206
2047
|
videoData = formDataObj.video || null;
|
|
2207
2048
|
buttonData = formDataObj.button || null;
|
|
2208
|
-
cardsData = formDataObj.cards || [];
|
|
2209
|
-
messageType = formDataObj.type || '';
|
|
2210
2049
|
accountId = formDataObj.accountId || null;
|
|
2211
2050
|
accountDetails = formDataObj.accountDetails || null;
|
|
2212
2051
|
scenarioKey = formDataObj.scenarioKey || VIBER_API_SCENARIO_KEY;
|
|
@@ -2233,8 +2072,6 @@ const CommonTestAndPreview = (props) => {
|
|
|
2233
2072
|
url: formDataObj?.buttonURL || '',
|
|
2234
2073
|
};
|
|
2235
2074
|
}
|
|
2236
|
-
cardsData = viberPreview.cards || formDataObj?.cards || [];
|
|
2237
|
-
messageType = viberPreview.type || formDataObj?.type || '';
|
|
2238
2075
|
// Extract account info from parent formDataObj if available
|
|
2239
2076
|
accountId = formDataObj.accountId || null;
|
|
2240
2077
|
accountDetails = formDataObj.accountDetails || null;
|
|
@@ -2277,10 +2114,6 @@ const CommonTestAndPreview = (props) => {
|
|
|
2277
2114
|
text: messageText,
|
|
2278
2115
|
};
|
|
2279
2116
|
|
|
2280
|
-
if (messageType === CHANNELS.VIBER) {
|
|
2281
|
-
messageType = '';
|
|
2282
|
-
}
|
|
2283
|
-
|
|
2284
2117
|
// Add image if present
|
|
2285
2118
|
if (imageData && imageData.url) {
|
|
2286
2119
|
viberContent.image = {
|
|
@@ -2309,34 +2142,9 @@ const CommonTestAndPreview = (props) => {
|
|
|
2309
2142
|
}
|
|
2310
2143
|
}
|
|
2311
2144
|
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
viberContent.
|
|
2315
|
-
text: card?.text || '',
|
|
2316
|
-
mediaUrl: card?.mediaUrl || '',
|
|
2317
|
-
buttons: (card?.buttons || []).map((button) => ({
|
|
2318
|
-
title: button?.title || '',
|
|
2319
|
-
action: button?.action || '',
|
|
2320
|
-
})),
|
|
2321
|
-
}));
|
|
2322
|
-
delete viberContent.button;
|
|
2323
|
-
}
|
|
2324
|
-
|
|
2325
|
-
// Resolve tags in text/cards if custom values are provided
|
|
2326
|
-
if (customValuesObj && Object.keys(customValuesObj).length > 0) {
|
|
2327
|
-
if (viberContent.text) {
|
|
2328
|
-
viberContent.text = resolveTagsInText(viberContent.text, customValuesObj);
|
|
2329
|
-
}
|
|
2330
|
-
if (Array.isArray(viberContent.cards)) {
|
|
2331
|
-
viberContent.cards = resolveViberCarouselCards(viberContent.cards, customValuesObj);
|
|
2332
|
-
}
|
|
2333
|
-
if (viberContent.button) {
|
|
2334
|
-
viberContent.button = {
|
|
2335
|
-
...viberContent.button,
|
|
2336
|
-
text: resolveTagsInText(viberContent.button.text || '', customValuesObj),
|
|
2337
|
-
url: resolveTagsInText(viberContent.button.url || '', customValuesObj),
|
|
2338
|
-
};
|
|
2339
|
-
}
|
|
2145
|
+
// Resolve tags in text if custom values are provided
|
|
2146
|
+
if (customValuesObj && Object.keys(customValuesObj).length > 0 && viberContent.text) {
|
|
2147
|
+
viberContent.text = resolveTagsInText(viberContent.text, customValuesObj);
|
|
2340
2148
|
}
|
|
2341
2149
|
|
|
2342
2150
|
// Build messageBody JSON string
|
|
@@ -2728,39 +2536,33 @@ const CommonTestAndPreview = (props) => {
|
|
|
2728
2536
|
// Only use previewDataHtml if preview call was made
|
|
2729
2537
|
if (hasPreviewCallBeenMade && previewDataHtml?.resolvedBody) {
|
|
2730
2538
|
resolvedContent = previewDataHtml.resolvedBody;
|
|
2731
|
-
if (typeof resolvedContent === 'string') {
|
|
2732
|
-
try {
|
|
2733
|
-
resolvedContent = JSON.parse(resolvedContent);
|
|
2734
|
-
} catch (e) {
|
|
2735
|
-
resolvedContent = null;
|
|
2736
|
-
}
|
|
2737
|
-
}
|
|
2738
2539
|
}
|
|
2739
2540
|
|
|
2740
|
-
// Parse content if it's a string
|
|
2741
|
-
let parsedViberContent =
|
|
2742
|
-
if (
|
|
2743
|
-
|
|
2541
|
+
// Parse content if it's a string
|
|
2542
|
+
let parsedViberContent = content;
|
|
2543
|
+
if (typeof content === 'string') {
|
|
2544
|
+
try {
|
|
2545
|
+
parsedViberContent = JSON.parse(content);
|
|
2546
|
+
} catch (e) {
|
|
2547
|
+
parsedViberContent = {};
|
|
2548
|
+
}
|
|
2744
2549
|
}
|
|
2745
|
-
//
|
|
2550
|
+
// Use resolvedContent if available (from preview call), otherwise use raw content
|
|
2746
2551
|
if (resolvedContent && typeof resolvedContent === 'object') {
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
if (
|
|
2750
|
-
contentObj.accountName =
|
|
2552
|
+
contentObj = { ...resolvedContent };
|
|
2553
|
+
// Merge in accountName and brandName from raw content if not in resolvedContent
|
|
2554
|
+
if (parsedViberContent?.accountName && !contentObj.accountName) {
|
|
2555
|
+
contentObj.accountName = parsedViberContent.accountName;
|
|
2751
2556
|
}
|
|
2752
|
-
if (
|
|
2753
|
-
contentObj.brandName =
|
|
2557
|
+
if (parsedViberContent?.brandName && !contentObj.brandName) {
|
|
2558
|
+
contentObj.brandName = parsedViberContent.brandName;
|
|
2754
2559
|
}
|
|
2755
2560
|
} else {
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
&& Object.keys(viberPreviewTagValues).length > 0
|
|
2762
|
-
) {
|
|
2763
|
-
contentObj = applyViberCustomValuesToContent(contentObj, viberPreviewTagValues);
|
|
2561
|
+
// Use raw content if no preview call was made or resolvedContent is not available
|
|
2562
|
+
contentObj = {...parsedViberContent, messageContent: resolvedContent};
|
|
2563
|
+
if (resolvedContent) {
|
|
2564
|
+
contentObj.viberPreviewContent = {...parsedViberContent?.viberPreviewContent, messageContent: resolvedContent};
|
|
2565
|
+
}
|
|
2764
2566
|
}
|
|
2765
2567
|
} else if (channel === CHANNELS.ZALO) {
|
|
2766
2568
|
// For Zalo, content is an object with templatePreviewUrl, templateStatus, etc.
|
|
@@ -3144,11 +2946,6 @@ const CommonTestAndPreview = (props) => {
|
|
|
3144
2946
|
|
|
3145
2947
|
setCustomValues(updatedValues);
|
|
3146
2948
|
|
|
3147
|
-
// Viber: do not auto-resolve tags in preview; user must click Update preview
|
|
3148
|
-
if (channel === CHANNELS.VIBER) {
|
|
3149
|
-
return;
|
|
3150
|
-
}
|
|
3151
|
-
|
|
3152
2949
|
// Update preview with prefilled values (this is a valid preview call trigger)
|
|
3153
2950
|
// For RCS: always dispatch with RCS channel/content so previewDataHtml stays RCS-shaped.
|
|
3154
2951
|
// SMS fallback preview is kept in sync by syncSmsFallbackPreview via smsFallbackPreviewText.
|
|
@@ -3231,7 +3028,6 @@ const CommonTestAndPreview = (props) => {
|
|
|
3231
3028
|
setPreviewDevice(DESKTOP);
|
|
3232
3029
|
setPreviewDataHtml('');
|
|
3233
3030
|
setHasPreviewCallBeenMade(false); // Reset preview call flag
|
|
3234
|
-
setViberPreviewTagValues(null);
|
|
3235
3031
|
setSelectedTestEntities([]);
|
|
3236
3032
|
setBeeContent('');
|
|
3237
3033
|
previousBeeContentRef.current = '';
|
|
@@ -3269,7 +3065,6 @@ const CommonTestAndPreview = (props) => {
|
|
|
3269
3065
|
const handleClearSelection = () => {
|
|
3270
3066
|
setSelectedCustomer(null);
|
|
3271
3067
|
setHasPreviewCallBeenMade(false); // Reset flag when customer is cleared
|
|
3272
|
-
setViberPreviewTagValues(null);
|
|
3273
3068
|
|
|
3274
3069
|
// Clear all preview errors when customer is cleared
|
|
3275
3070
|
actions.clearPreviewErrors();
|
|
@@ -3328,9 +3123,6 @@ const CommonTestAndPreview = (props) => {
|
|
|
3328
3123
|
emptyValues,
|
|
3329
3124
|
selectedCustomer
|
|
3330
3125
|
);
|
|
3331
|
-
if (channel === CHANNELS.VIBER) {
|
|
3332
|
-
setViberPreviewTagValues({ ...emptyValues });
|
|
3333
|
-
}
|
|
3334
3126
|
actions.updatePreviewRequested(payload);
|
|
3335
3127
|
setHasPreviewCallBeenMade(true); // Mark that preview call was made
|
|
3336
3128
|
};
|
|
@@ -3356,9 +3148,6 @@ const CommonTestAndPreview = (props) => {
|
|
|
3356
3148
|
customValues,
|
|
3357
3149
|
selectedCustomer
|
|
3358
3150
|
);
|
|
3359
|
-
if (channel === CHANNELS.VIBER) {
|
|
3360
|
-
setViberPreviewTagValues({ ...customValues });
|
|
3361
|
-
}
|
|
3362
3151
|
await actions.updatePreviewRequested(payload);
|
|
3363
3152
|
|
|
3364
3153
|
await syncSmsFallbackPreview(customValues, selectedCustomer);
|