@capillarytech/creatives-library 7.17.83 → 7.17.85
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/CapWhatsappQuickReply/index.scss +2 -2
- package/v2Components/TemplatePreview/_templatePreview.scss +1 -0
- package/v2Containers/Whatsapp/index.js +31 -28
- package/v2Containers/Whatsapp/index.scss +2 -1
- package/v2Containers/Whatsapp/styles.scss +1 -0
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +1912 -11354
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
.cap-whatsapp-quick-reply {
|
|
4
4
|
border: solid 0.063rem $CAP_G06;
|
|
5
5
|
margin-left: $CAP_SPACE_24;
|
|
6
|
-
margin-top:
|
|
6
|
+
margin-top: 0.75rem;
|
|
7
7
|
border-radius: 0.285rem;
|
|
8
8
|
.whatsapp-button-text-container {
|
|
9
9
|
padding: $CAP_SPACE_16 $CAP_SPACE_24;
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
.whatsapp-quick-reply-edit-container {
|
|
40
40
|
padding: $CAP_SPACE_12;
|
|
41
41
|
margin-left: 0;
|
|
42
|
-
margin-top:
|
|
42
|
+
margin-top: 0.75rem;
|
|
43
43
|
}
|
|
@@ -499,35 +499,37 @@ export const Whatsapp = (props) => {
|
|
|
499
499
|
};
|
|
500
500
|
|
|
501
501
|
// as per change in message body we filter out url using regex
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
502
|
+
// we will open once preview url support
|
|
503
|
+
// useEffect(() => {
|
|
504
|
+
// if (updatedSmsEditor?.length > 0) {
|
|
505
|
+
// const previewUrlArr = updatedSmsEditor.join("").match(previewUrlMatchingRegex) || [];
|
|
506
|
+
// if (previewUrlArr?.length > 0) {
|
|
507
|
+
// setPreviewUrl(previewUrlArr[0]);
|
|
508
|
+
// } else {
|
|
509
|
+
// setPreviewUrl('');
|
|
510
|
+
// }
|
|
511
|
+
// }
|
|
512
|
+
// }, [updatedSmsEditor])
|
|
513
|
+
|
|
514
|
+
// const debounceFn = useCallback(
|
|
515
|
+
// debounce(url => {
|
|
516
|
+
// actions.getMetaTags({
|
|
517
|
+
// previewUrl: url,
|
|
518
|
+
// callBack: actionCallback,
|
|
519
|
+
// })
|
|
520
|
+
// }, 500),
|
|
521
|
+
// [],
|
|
522
|
+
// );
|
|
522
523
|
|
|
523
524
|
// as per change in url and preview checkbox we call api and extract the meta information of url
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
}
|
|
525
|
+
// we will open once preview url support
|
|
526
|
+
// useEffect(() => {
|
|
527
|
+
// if (!isEmpty(previewUrl) && showUrlPreview) {
|
|
528
|
+
// debounceFn(previewUrl);
|
|
529
|
+
// } else {
|
|
530
|
+
// actions.resetMetaTags();
|
|
531
|
+
// }
|
|
532
|
+
// }, [previewUrl, showUrlPreview])
|
|
531
533
|
|
|
532
534
|
//performs tag validation
|
|
533
535
|
useEffect(() => {
|
|
@@ -1910,6 +1912,7 @@ export const Whatsapp = (props) => {
|
|
|
1910
1912
|
) : (
|
|
1911
1913
|
""
|
|
1912
1914
|
)}
|
|
1915
|
+
{/* we will open once preview url support
|
|
1913
1916
|
<CapRow>
|
|
1914
1917
|
<CapCheckbox
|
|
1915
1918
|
className={`whatsapp-unsubscribe-checkbox ${'whatsapp-create-unsubscribe-checkbox'}`}
|
|
@@ -1922,7 +1925,7 @@ export const Whatsapp = (props) => {
|
|
|
1922
1925
|
{formatMessage(messages.showUrlPreview)}
|
|
1923
1926
|
</span>
|
|
1924
1927
|
</CapCheckbox>
|
|
1925
|
-
</CapRow>
|
|
1928
|
+
</CapRow> */}
|
|
1926
1929
|
{templateFooter && isHostIsNotTwilio && (
|
|
1927
1930
|
<>
|
|
1928
1931
|
<CapHeader
|
|
@@ -130,6 +130,7 @@
|
|
|
130
130
|
.whatsapp-button-quick-reply {
|
|
131
131
|
display: inline-grid;
|
|
132
132
|
margin-top: $CAP_SPACE_24;
|
|
133
|
+
margin-bottom: 0.75rem;
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
.whatsapp-optional-label {
|
|
@@ -190,7 +191,7 @@
|
|
|
190
191
|
.whatsapp-template-footer-preview {
|
|
191
192
|
color: $CAP_G04;
|
|
192
193
|
font-weight: $FONT_WEIGHT_REGULAR;
|
|
193
|
-
font-size: 0.
|
|
194
|
+
font-size: 0.5rem;
|
|
194
195
|
margin-top: $CAP_SPACE_08;
|
|
195
196
|
}
|
|
196
197
|
|