@capillarytech/creatives-library 8.0.340-0 → 8.0.340-beta.0
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/app.js +8 -1
- package/global-styles.js +4 -0
- package/package.json +2 -2
- package/styles/components/navigation/_leftnav.scss +1 -1
- package/v2Components/AccessForbidden/index.js +1 -1
- package/v2Components/CapActionButton/index.js +5 -5
- package/v2Components/CapCustomSkeleton/index.js +1 -1
- package/v2Components/CapDeviceContent/index.js +5 -5
- package/v2Components/CapDocumentUpload/index.js +1 -1
- package/v2Components/CapImageUpload/index.js +1 -1
- package/v2Components/CapInAppCTA/index.js +118 -112
- package/v2Components/CapMpushCTA/index.js +72 -66
- package/v2Components/CapTagList/index.js +5 -5
- package/v2Components/CapVideoUpload/index.js +1 -1
- package/v2Components/CapWhatsappCTA/index.js +128 -124
- package/v2Components/CapWhatsappCarouselButton/index.js +27 -29
- package/v2Components/CapWhatsappQuickReply/index.js +7 -7
- package/v2Components/Carousel/index.js +1 -1
- package/v2Components/CommonTestAndPreview/AddTestCustomer.js +1 -1
- package/v2Components/CommonTestAndPreview/CustomValuesEditor.js +3 -3
- package/v2Components/CommonTestAndPreview/CustomerCreationModal.js +1 -1
- package/v2Components/CommonTestAndPreview/DeliverySettings/ModifyDeliverySettings.js +4 -4
- package/v2Components/CommonTestAndPreview/DeliverySettings/index.js +1 -1
- package/v2Components/CommonTestAndPreview/ExistingCustomerModal.js +6 -6
- package/v2Components/CommonTestAndPreview/LeftPanelContent.js +5 -5
- package/v2Components/CommonTestAndPreview/PreviewSection.js +1 -1
- package/v2Components/CommonTestAndPreview/UnifiedPreview/DeviceFrame.js +1 -1
- package/v2Components/CommonTestAndPreview/UnifiedPreview/EmailPreviewContent.js +8 -8
- package/v2Components/CommonTestAndPreview/UnifiedPreview/InAppPreviewContent.js +14 -13
- package/v2Components/CommonTestAndPreview/UnifiedPreview/MobilePushPreviewContent.js +22 -21
- package/v2Components/CommonTestAndPreview/UnifiedPreview/RcsPreviewContent.js +9 -9
- package/v2Components/CommonTestAndPreview/UnifiedPreview/SmsPreviewContent.js +8 -8
- package/v2Components/CommonTestAndPreview/UnifiedPreview/ViberPreviewContent.js +10 -10
- package/v2Components/CommonTestAndPreview/UnifiedPreview/WhatsAppPreviewContent.js +13 -12
- package/v2Components/CommonTestAndPreview/UnifiedPreview/ZaloPreviewContent.js +4 -3
- package/v2Components/CommonTestAndPreview/UnifiedPreview/_unifiedPreview.scss +10 -5
- package/v2Components/CommonTestAndPreview/UnifiedPreview/index.js +1 -1
- package/v2Components/CommonTestAndPreview/_commonTestAndPreview.scss +3 -4
- package/v2Components/CommonTestAndPreview/index.js +1 -1
- package/v2Components/CustomerSearchSection/_customerSearch.scss +2 -1
- package/v2Components/CustomerSearchSection/index.js +9 -9
- package/v2Components/EmailMobilePreview/index.js +1 -1
- package/v2Components/ErrorInfoNote/index.js +13 -11
- package/v2Components/ErrorInfoNote/style.scss +1 -1
- package/v2Components/FormBuilder/_formBuilder.scss +1 -0
- package/v2Components/FormBuilder/index.js +32 -40
- package/v2Components/HtmlEditor/HTMLEditor.js +4 -4
- package/v2Components/HtmlEditor/_htmlEditor.scss +2 -1
- package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +1 -1
- package/v2Components/HtmlEditor/components/DeviceToggle/_deviceToggle.scss +2 -2
- package/v2Components/HtmlEditor/components/DeviceToggle/index.js +2 -2
- package/v2Components/HtmlEditor/components/EditorToolbar/PreviewModeGroup.js +2 -2
- package/v2Components/HtmlEditor/components/EditorToolbar/index.js +2 -2
- package/v2Components/HtmlEditor/components/InAppPreviewPane/index.js +1 -0
- package/v2Components/HtmlEditor/components/PreviewPane/index.js +2 -2
- package/v2Components/HtmlEditor/components/SplitContainer/SplitContainer.js +2 -2
- package/v2Components/HtmlEditor/components/SplitContainer/_splitContainer.scss +2 -1
- package/v2Components/HtmlEditor/components/ValidationPanel/index.js +6 -9
- package/v2Components/HtmlEditor/components/ValidationTabs/index.js +2 -2
- package/v2Components/NavigationBar/index.js +7 -1
- package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/index.js +3 -4
- package/v2Components/TemplatePreview/_templatePreview.scss +5 -3
- package/v2Components/TemplatePreview/index.js +11 -9
- package/v2Components/TestAndPreviewSlidebox/CustomValuesEditor.js +3 -3
- package/v2Components/TestAndPreviewSlidebox/LeftPanelContent.js +5 -5
- package/v2Components/TestAndPreviewSlidebox/PreviewSection.js +3 -3
- package/v2Components/TestAndPreviewSlidebox/_testAndPreviewSlidebox.scss +4 -2
- package/v2Containers/BeePopupEditor/index.js +1 -1
- package/v2Containers/CommunicationFlow/CommunicationFlow.js +5 -5
- package/v2Containers/CommunicationFlow/steps/ChannelSelectionStep/ChannelSelectionStep.js +4 -3
- package/v2Containers/CommunicationFlow/steps/CommunicationStrategyStep/CommunicationStrategyStep.js +2 -2
- package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/DeliverySettingsSection.js +3 -2
- package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/SenderDetails.js +7 -7
- package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/SenderDetails.scss +0 -5
- package/v2Containers/CommunicationFlow/steps/DynamicControlsStep/DynamicControlsStep.js +2 -2
- package/v2Containers/CommunicationFlow/steps/MessageTypeStep/MessageTypeStep.js +2 -2
- package/v2Containers/CreativesContainer/SlideBoxFooter.js +1 -1
- package/v2Containers/CreativesContainer/index.js +1 -1
- package/v2Containers/Ebill/index.js +10 -9
- package/v2Containers/Email/index.js +7 -7
- package/v2Containers/Email/initialSchema.js +1 -1
- package/v2Containers/FTP/index.js +1 -1
- package/v2Containers/Facebook/Advertisement/index.js +4 -4
- package/v2Containers/Facebook/index.js +2 -2
- package/v2Containers/InApp/index.js +21 -16
- package/v2Containers/InApp/index.scss +0 -7
- package/v2Containers/InAppWrapper/components/InAppWrapperView.js +2 -2
- package/v2Containers/InappAdvance/index.js +4 -4
- package/v2Containers/LanguageProvider/index.js +3 -3
- package/v2Containers/LanguageProvider/tests/index.test.js +3 -3
- package/v2Containers/Line/Container/Image/index.js +1 -1
- package/v2Containers/Line/Container/ImageCarousel/Content.js +1 -1
- package/v2Containers/Line/Container/ImageCarousel/index.js +5 -5
- package/v2Containers/Line/Container/ImageMap/index.js +3 -3
- package/v2Containers/Line/Container/Sticker/index.js +2 -2
- package/v2Containers/Line/Container/Sticker/utils.js +1 -1
- package/v2Containers/Line/Container/Video/index.js +1 -1
- package/v2Containers/Line/Container/Wrapper/index.js +3 -3
- package/v2Containers/Line/Container/Wrapper/style.js +1 -5
- package/v2Containers/Line/Container/index.js +2 -2
- package/v2Containers/Login/components/LoginForm/index.js +34 -47
- package/v2Containers/Login/index.js +5 -5
- package/v2Containers/MobilePushNew/components/CtaButtons.js +2 -2
- package/v2Containers/MobilePushNew/components/MediaUploaders.js +9 -9
- package/v2Containers/MobilePushNew/components/PlatformContentFields.js +4 -4
- package/v2Containers/MobilePushNew/index.js +2 -2
- package/v2Containers/MobilePushNew/index.scss +6 -3
- package/v2Containers/Rcs/index.js +24 -19
- package/v2Containers/Rcs/index.scss +0 -7
- package/v2Containers/SmsTrai/Edit/index.js +3 -2
- package/v2Containers/Templates/index.js +16 -16
- package/v2Containers/Viber/constants.js +0 -8
- package/v2Containers/Viber/index.js +19 -19
- package/v2Containers/Viber/index.scss +0 -7
- package/v2Containers/Viber/reducer.js +21 -44
- package/v2Containers/Viber/sagas.js +21 -62
- package/v2Containers/Viber/tests/index.test.js +0 -80
- package/v2Containers/Viber/tests/saga.test.js +40 -365
- package/v2Containers/WeChat/RichmediaTemplates/Create/_createRichmedia.scss +1 -1
- package/v2Containers/WeChat/RichmediaTemplates/Create/index.js +2 -2
- package/v2Containers/WebPush/Create/components/BrandIconSection.js +1 -1
- package/v2Containers/WebPush/Create/components/ButtonForm.js +2 -2
- package/v2Containers/WebPush/Create/components/ButtonList.js +4 -4
- package/v2Containers/WebPush/Create/components/ButtonsLinksSection.js +4 -4
- package/v2Containers/WebPush/Create/components/FormActions.js +3 -3
- package/v2Containers/WebPush/Create/components/MessageSection.js +2 -2
- package/v2Containers/WebPush/Create/components/NotificationTitleSection.js +2 -2
- package/v2Containers/WebPush/Create/components/_buttons.scss +2 -2
- package/v2Containers/WebPush/Create/index.scss +6 -3
- package/v2Containers/WebPush/Create/preview/WebPushPreview.js +1 -1
- package/v2Containers/Whatsapp/index.js +28 -28
- package/v2Containers/Zalo/index.js +3 -3
- package/.npmrc copy +0 -2
- package/v2Containers/Viber/tests/reducer.test.js +0 -297
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
// import { connect } from 'react-redux';
|
|
10
|
-
import { CapRow, CapColumn, CapButton } from '@capillarytech/cap-
|
|
11
|
-
import { CapHeading, CapLabel, CapTab, CapIcon, CapImage } from '@capillarytech/cap-ui-library/';
|
|
10
|
+
import { CapRow, CapColumn, CapButton, CapHeading, CapLabel, CapTab, CapIcon, CapImage } from '@capillarytech/cap-ui-library';
|
|
12
11
|
import { FormattedMessage } from 'react-intl';
|
|
13
12
|
import _ from 'lodash';
|
|
14
13
|
import './_wechatRichmediaTemplatePrev.scss';
|
|
@@ -61,12 +60,12 @@ class WechatRichmediaTemplatePreview extends React.PureComponent { // eslint-dis
|
|
|
61
60
|
if (id === 0) {
|
|
62
61
|
returnObj.push(
|
|
63
62
|
<div style={{ width: "100%", height: 116, position: "relative" }}>
|
|
64
|
-
<CapRow>
|
|
63
|
+
<CapRow useLegacy>
|
|
65
64
|
<CapImage alt="default" width="100%" height="110px" src={contentData.image_url} />
|
|
66
65
|
<div className="preview-overflow-wrap-fields" style={{ position: "absolute", bottom: "5%", left: "10%", width: "auto" }}>{contentData.title ? contentData.title : ""}</div>
|
|
67
66
|
</CapRow>
|
|
68
67
|
{Object.keys(mediaList).length === 1 ?
|
|
69
|
-
<CapRow style={{ height: 32, left: "12%" }}>
|
|
68
|
+
<CapRow useLegacy style={{ height: 32, left: "12%" }}>
|
|
70
69
|
{contentData.digest ? contentData.digest : ""}
|
|
71
70
|
</CapRow>
|
|
72
71
|
:
|
|
@@ -818,7 +818,8 @@
|
|
|
818
818
|
|
|
819
819
|
.msg-container-carousel {
|
|
820
820
|
display: flex;
|
|
821
|
-
flex-direction: column;
|
|
821
|
+
flex-direction: column !important;
|
|
822
|
+
flex-flow: column nowrap;
|
|
822
823
|
.scroll-container {
|
|
823
824
|
overflow-x: auto;
|
|
824
825
|
display: flex;
|
|
@@ -987,7 +988,7 @@
|
|
|
987
988
|
margin-bottom: 12px;
|
|
988
989
|
}
|
|
989
990
|
|
|
990
|
-
.ant-btn.cap-button-v2.
|
|
991
|
+
.ant-btn.cap-button-v2.ant-btn-link.preview-video-btn {
|
|
991
992
|
padding: 0;
|
|
992
993
|
background-color: transparent;
|
|
993
994
|
height: auto;
|
|
@@ -1218,7 +1219,8 @@
|
|
|
1218
1219
|
padding: $CAP_SPACE_08;
|
|
1219
1220
|
text-align: center;
|
|
1220
1221
|
display: flex;
|
|
1221
|
-
flex-direction: column;
|
|
1222
|
+
flex-direction: column !important;
|
|
1223
|
+
flex-flow: column nowrap;
|
|
1222
1224
|
align-items: center;
|
|
1223
1225
|
justify-content: center;
|
|
1224
1226
|
gap: $CAP_SPACE_08;
|
|
@@ -196,7 +196,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
|
|
|
196
196
|
</CapRow>
|
|
197
197
|
</CapRow>
|
|
198
198
|
)}
|
|
199
|
-
<CapRow className="carousel-content">
|
|
199
|
+
<CapRow useLegacy className="carousel-content">
|
|
200
200
|
<CapLabel className="carousel-title">
|
|
201
201
|
{item?.title || item?.header || ""}
|
|
202
202
|
</CapLabel>
|
|
@@ -350,7 +350,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
|
|
|
350
350
|
>
|
|
351
351
|
<CapButton
|
|
352
352
|
className="preview-video-btn"
|
|
353
|
-
type="
|
|
353
|
+
type="link"
|
|
354
354
|
>
|
|
355
355
|
<CapIcon type="play"/>
|
|
356
356
|
<FormattedMessage {...messages.playVideo} />
|
|
@@ -360,7 +360,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
|
|
|
360
360
|
? (
|
|
361
361
|
<CapButton
|
|
362
362
|
className="preview-video-btn"
|
|
363
|
-
type="
|
|
363
|
+
type="link"
|
|
364
364
|
>
|
|
365
365
|
<CapIcon type="reply" style={{ fontSize: 18 }}/>
|
|
366
366
|
<FormattedMessage {...messages.showDetails} />
|
|
@@ -739,6 +739,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
|
|
|
739
739
|
!!content.bodyText ||
|
|
740
740
|
!!content.bodyImage || !!content.bodyVideo?.videoSrc || !!content.bodyGif) && (
|
|
741
741
|
<CapRow
|
|
742
|
+
useLegacy
|
|
742
743
|
className={`${
|
|
743
744
|
this.props.device === "ios" ? "iphone" : this.props.device
|
|
744
745
|
}-push-message-Container`}
|
|
@@ -757,7 +758,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
|
|
|
757
758
|
</CapRow>
|
|
758
759
|
<CapLabel className="body-text">{content.bodyText}</CapLabel>
|
|
759
760
|
{(content.bodyImage || content?.bodyVideo?.videoSrc || content?.bodyGif) && (
|
|
760
|
-
<CapRow className="body-image">
|
|
761
|
+
<CapRow useLegacy className="body-image">
|
|
761
762
|
{(() => {
|
|
762
763
|
if (content?.bodyVideo?.videoSrc && !content?.bodyImage && !content?.bodyGif) {
|
|
763
764
|
return (
|
|
@@ -821,7 +822,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
|
|
|
821
822
|
</CapRow>
|
|
822
823
|
<CapLabel className="body-text">{content.bodyText}</CapLabel>
|
|
823
824
|
{(content?.bodyImage || content?.bodyVideo?.videoSrc || content?.bodyGif) && (
|
|
824
|
-
<CapRow className="body-image">
|
|
825
|
+
<CapRow useLegacy className="body-image">
|
|
825
826
|
{(() => {
|
|
826
827
|
if (content?.bodyVideo?.videoSrc && !content?.bodyImage && !content?.bodyGif) {
|
|
827
828
|
return (
|
|
@@ -1303,23 +1304,24 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
|
|
|
1303
1304
|
)}
|
|
1304
1305
|
{channel?.toUpperCase() === ZALO && (
|
|
1305
1306
|
<CapRow
|
|
1307
|
+
useLegacy
|
|
1306
1308
|
className={`zalo-preview-container ${
|
|
1307
1309
|
templateData?.fullMode
|
|
1308
1310
|
? "zalo-preview-container-creative"
|
|
1309
1311
|
: "zalo-preview-container-campaign"
|
|
1310
1312
|
}`}
|
|
1311
1313
|
>
|
|
1312
|
-
<CapRow>
|
|
1314
|
+
<CapRow useLegacy>
|
|
1313
1315
|
<CapLabel className="preview-head">
|
|
1314
1316
|
{formatMessage(zaloMessage.previewHead)}
|
|
1315
1317
|
</CapLabel>
|
|
1316
1318
|
</CapRow>
|
|
1317
|
-
<CapRow>
|
|
1319
|
+
<CapRow useLegacy>
|
|
1318
1320
|
<CapLabel className="preview-text">
|
|
1319
1321
|
{formatMessage(zaloMessage.previewText)}
|
|
1320
1322
|
</CapLabel>
|
|
1321
1323
|
</CapRow>
|
|
1322
|
-
<CapRow>
|
|
1324
|
+
<CapRow useLegacy>
|
|
1323
1325
|
<CapLabel
|
|
1324
1326
|
data-testid="preview-link-button"
|
|
1325
1327
|
onClick={handlePreview}
|
|
@@ -1356,7 +1358,7 @@ export class TemplatePreview extends React.Component { // eslint-disable-line re
|
|
|
1356
1358
|
{channel?.toUpperCase() === INAPP && (
|
|
1357
1359
|
isBeeFreeTemplate ? (
|
|
1358
1360
|
<div className="shell-v2 align-center">
|
|
1359
|
-
<CapRow className="preview-image-container">
|
|
1361
|
+
<CapRow useLegacy className="preview-image-container">
|
|
1360
1362
|
<CapImage
|
|
1361
1363
|
className="preview-image"
|
|
1362
1364
|
src={this.props.device === ANDROID ? inAppMobileDeviceAndroid : inAppMobileDeviceIos}
|
|
@@ -27,9 +27,9 @@ const CustomValuesEditor = ({
|
|
|
27
27
|
}) => {
|
|
28
28
|
if (isExtractingTags) {
|
|
29
29
|
return (
|
|
30
|
-
<CapRow className="loading-container">
|
|
30
|
+
<CapRow useLegacy className="loading-container">
|
|
31
31
|
<CapSpin size="large" />
|
|
32
|
-
<CapRow className="loading-text">
|
|
32
|
+
<CapRow useLegacy className="loading-text">
|
|
33
33
|
<FormattedMessage {...messages.extractingTags} />
|
|
34
34
|
</CapRow>
|
|
35
35
|
</CapRow>
|
|
@@ -128,7 +128,7 @@ const CustomValuesEditor = ({
|
|
|
128
128
|
<div className="editor-actions">
|
|
129
129
|
<CapButton
|
|
130
130
|
className="discard-button"
|
|
131
|
-
type="
|
|
131
|
+
type="link"
|
|
132
132
|
size="small"
|
|
133
133
|
onClick={handleDiscardCustomValues}
|
|
134
134
|
icon="close"
|
|
@@ -25,9 +25,9 @@ const LeftPanelContent = ({
|
|
|
25
25
|
}) => {
|
|
26
26
|
if (isExtractingTags) {
|
|
27
27
|
return (
|
|
28
|
-
<CapRow className="loading-container">
|
|
28
|
+
<CapRow useLegacy className="loading-container">
|
|
29
29
|
<CapSpin size="large" />
|
|
30
|
-
<CapRow className="loading-text">
|
|
30
|
+
<CapRow useLegacy className="loading-text">
|
|
31
31
|
<FormattedMessage {...messages.extractingTags} />
|
|
32
32
|
</CapRow>
|
|
33
33
|
</CapRow>
|
|
@@ -37,7 +37,7 @@ const LeftPanelContent = ({
|
|
|
37
37
|
return (
|
|
38
38
|
<>
|
|
39
39
|
{/* Customer Search Section */}
|
|
40
|
-
<CapRow className="panel-section customer-section">
|
|
40
|
+
<CapRow useLegacy className="panel-section customer-section">
|
|
41
41
|
<CapHeader size="label1" title={<FormattedMessage {...messages.customerSearchTitle} />} />
|
|
42
42
|
<CustomerSearchSection
|
|
43
43
|
selectedCustomer={selectedCustomer}
|
|
@@ -50,8 +50,8 @@ const LeftPanelContent = ({
|
|
|
50
50
|
</CapRow>
|
|
51
51
|
{/* Tags Section */}
|
|
52
52
|
{!tagsExtracted && (
|
|
53
|
-
<CapRow className="panel-section">
|
|
54
|
-
<CapButton type="
|
|
53
|
+
<CapRow useLegacy className="panel-section">
|
|
54
|
+
<CapButton type="link" className="extract-tags-button" onClick={handleExtractTags}>
|
|
55
55
|
<CapLabel type="label33">
|
|
56
56
|
<FormattedMessage {...messages.enterCustomValuesForTags} />
|
|
57
57
|
</CapLabel>
|
|
@@ -15,7 +15,7 @@ const PreviewSection = ({
|
|
|
15
15
|
formatMessage,
|
|
16
16
|
PreviewChrome,
|
|
17
17
|
}) => (
|
|
18
|
-
<CapRow className="test-and-preview-section panel-section">
|
|
18
|
+
<CapRow useLegacy className="test-and-preview-section panel-section">
|
|
19
19
|
<PreviewChrome
|
|
20
20
|
device={previewDevice}
|
|
21
21
|
onDeviceChange={setPreviewDevice}
|
|
@@ -23,9 +23,9 @@ const PreviewSection = ({
|
|
|
23
23
|
subject={previewDataHtml?.resolvedTitle || formData['template-subject']}
|
|
24
24
|
>
|
|
25
25
|
{isUpdatingPreview && (
|
|
26
|
-
<CapRow className="loading-container">
|
|
26
|
+
<CapRow useLegacy className="loading-container">
|
|
27
27
|
<CapSpin />
|
|
28
|
-
<CapRow className="loading-text">{formatMessage(messages.updatingPreview)}</CapRow>
|
|
28
|
+
<CapRow useLegacy className="loading-text">{formatMessage(messages.updatingPreview)}</CapRow>
|
|
29
29
|
</CapRow>
|
|
30
30
|
)}
|
|
31
31
|
{!isUpdatingPreview && previewDataHtml && (
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
margin-left: 2%;
|
|
32
32
|
height: 100%;
|
|
33
33
|
display: flex;
|
|
34
|
-
flex-direction: column;
|
|
34
|
+
flex-direction: column !important;
|
|
35
|
+
flex-flow: column nowrap;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
.discard-button {
|
|
@@ -79,7 +80,8 @@
|
|
|
79
80
|
|
|
80
81
|
.loading-container {
|
|
81
82
|
display: flex;
|
|
82
|
-
flex-direction: column;
|
|
83
|
+
flex-direction: column !important;
|
|
84
|
+
flex-flow: column nowrap;
|
|
83
85
|
align-items: center;
|
|
84
86
|
justify-content: center;
|
|
85
87
|
padding: $CAP_SPACE_32;
|
|
@@ -127,7 +127,7 @@ const CommunicationFlow = ({
|
|
|
127
127
|
switch (step) {
|
|
128
128
|
case STEPS.MESSAGE_TYPE:
|
|
129
129
|
return (
|
|
130
|
-
<CapRow key={step}>
|
|
130
|
+
<CapRow useLegacy key={step}>
|
|
131
131
|
<MessageTypeStep
|
|
132
132
|
{...commonProps}
|
|
133
133
|
value={stepData.messageType}
|
|
@@ -140,7 +140,7 @@ const CommunicationFlow = ({
|
|
|
140
140
|
);
|
|
141
141
|
case STEPS.COMMUNICATION_STRATEGY:
|
|
142
142
|
return (
|
|
143
|
-
<CapRow key={step}>
|
|
143
|
+
<CapRow useLegacy key={step}>
|
|
144
144
|
<CommunicationStrategyStep
|
|
145
145
|
{...commonProps}
|
|
146
146
|
value={stepData.communicationStrategy}
|
|
@@ -158,7 +158,7 @@ const CommunicationFlow = ({
|
|
|
158
158
|
return null;
|
|
159
159
|
}
|
|
160
160
|
return (
|
|
161
|
-
<CapRow key={step}>
|
|
161
|
+
<CapRow useLegacy key={step}>
|
|
162
162
|
<ChannelSelectionStep
|
|
163
163
|
{...commonProps}
|
|
164
164
|
value={stepData}
|
|
@@ -206,10 +206,10 @@ const CommunicationFlow = ({
|
|
|
206
206
|
}), [enabledSteps, stepData, validationErrors, config, handleStepChange, messageTypeData, communicationStrategyData, contentTemplateData]);
|
|
207
207
|
|
|
208
208
|
return (
|
|
209
|
-
<CapRow className="communication-flow-container">
|
|
209
|
+
<CapRow useLegacy className="communication-flow-container">
|
|
210
210
|
{renderSteps()}
|
|
211
211
|
{onSave && (
|
|
212
|
-
<CapRow className="communication-flow-container__footer">
|
|
212
|
+
<CapRow useLegacy className="communication-flow-container__footer">
|
|
213
213
|
<CapButton type="primary" onClick={() => onSave(getAggregatedData())}>
|
|
214
214
|
{formatMessage(messages.save)}
|
|
215
215
|
</CapButton>
|
|
@@ -367,7 +367,7 @@ const ChannelSelectionStep = ({
|
|
|
367
367
|
onVisibleChange={(visible) => handleIncentivesVisibleChange(visible, item.contentId)}
|
|
368
368
|
visible={!!showIncentivesMenuMap[item.contentId]}
|
|
369
369
|
>
|
|
370
|
-
<CapButton isAddBtn type="
|
|
370
|
+
<CapButton isAddBtn type="link" className="add-incentives-button add-incentive-link">
|
|
371
371
|
{formatMessage(messages.addIncentive)}
|
|
372
372
|
</CapButton>
|
|
373
373
|
</CapDropdown>
|
|
@@ -389,6 +389,7 @@ const ChannelSelectionStep = ({
|
|
|
389
389
|
</CapHeading>
|
|
390
390
|
|
|
391
391
|
<CapRow
|
|
392
|
+
useLegacy
|
|
392
393
|
className={`content-template-container ${contentItems?.length > 0 ? 'content-template-container--has-content' : ''}`}
|
|
393
394
|
>
|
|
394
395
|
{contentItems?.length === 0 ? (
|
|
@@ -427,7 +428,7 @@ const ChannelSelectionStep = ({
|
|
|
427
428
|
onVisibleChange={(visible) => handleIncentivesVisibleChange(visible, 'standalone')}
|
|
428
429
|
visible={!!showIncentivesMenuMap.standalone}
|
|
429
430
|
>
|
|
430
|
-
<CapButton isAddBtn type="
|
|
431
|
+
<CapButton isAddBtn type="link" className="add-incentive-button">
|
|
431
432
|
{formatMessage(messages.addIncentive)}
|
|
432
433
|
</CapButton>
|
|
433
434
|
</CapDropdown>
|
|
@@ -449,7 +450,7 @@ const ChannelSelectionStep = ({
|
|
|
449
450
|
</CapRow>
|
|
450
451
|
|
|
451
452
|
{error && (
|
|
452
|
-
<CapRow className="validation-error">
|
|
453
|
+
<CapRow useLegacy className="validation-error">
|
|
453
454
|
{error}
|
|
454
455
|
</CapRow>
|
|
455
456
|
)}
|
package/v2Containers/CommunicationFlow/steps/CommunicationStrategyStep/CommunicationStrategyStep.js
CHANGED
|
@@ -53,7 +53,7 @@ const CommunicationStrategyStep = ({
|
|
|
53
53
|
const selectValue = (value === null || value === '') ? undefined : value;
|
|
54
54
|
|
|
55
55
|
return (
|
|
56
|
-
<CapRow className="communication-strategy-step">
|
|
56
|
+
<CapRow useLegacy className="communication-strategy-step">
|
|
57
57
|
<CapHeading type="h3" className="heading-style">
|
|
58
58
|
{formatMessage(messages.communicationStrategyHeading)}
|
|
59
59
|
</CapHeading>
|
|
@@ -68,7 +68,7 @@ const CommunicationStrategyStep = ({
|
|
|
68
68
|
/>
|
|
69
69
|
|
|
70
70
|
{error && (
|
|
71
|
-
<CapRow className="validation-error">
|
|
71
|
+
<CapRow useLegacy className="validation-error">
|
|
72
72
|
{error}
|
|
73
73
|
</CapRow>
|
|
74
74
|
)}
|
package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/DeliverySettingsSection.js
CHANGED
|
@@ -216,13 +216,14 @@ const DeliverySettingsSection = ({
|
|
|
216
216
|
return (
|
|
217
217
|
<>
|
|
218
218
|
<CapRow
|
|
219
|
+
useLegacy
|
|
219
220
|
type="flex"
|
|
220
221
|
align="middle"
|
|
221
222
|
justify="space-between"
|
|
222
223
|
className="delivery-settings-section delivery-settings-section--clickable"
|
|
223
224
|
onClick={() => setShowSlidebox(true)}
|
|
224
225
|
>
|
|
225
|
-
<CapRow type="flex" className="delivery-settings-section__content">
|
|
226
|
+
<CapRow useLegacy type="flex" className="delivery-settings-section__content">
|
|
226
227
|
<CapHeading type="h5">
|
|
227
228
|
{formatMessage(messages.senderDetails)}
|
|
228
229
|
</CapHeading>
|
|
@@ -236,7 +237,7 @@ const DeliverySettingsSection = ({
|
|
|
236
237
|
return value != null && value !== '';
|
|
237
238
|
})
|
|
238
239
|
.map((channelConfig) => (
|
|
239
|
-
<CapRow key={`${channel}-${channelConfig.valueKey}`} type="flex" align="middle" justify="space-between" className="delivery-settings-section__field-row">
|
|
240
|
+
<CapRow useLegacy key={`${channel}-${channelConfig.valueKey}`} type="flex" align="middle" justify="space-between" className="delivery-settings-section__field-row">
|
|
240
241
|
<CapHeading type="label4" className="delivery-settings-section__label">
|
|
241
242
|
{formatMessage(messages[channelConfig.labelKey])}
|
|
242
243
|
</CapHeading>
|
|
@@ -180,7 +180,7 @@ const SenderDetails = ({
|
|
|
180
180
|
);
|
|
181
181
|
|
|
182
182
|
const footer = (
|
|
183
|
-
<CapRow className="sender-details__footer">
|
|
183
|
+
<CapRow useLegacy className="sender-details__footer">
|
|
184
184
|
<CapButton type="primary" onClick={handleSave} disabled={!hasChanges || !hasAllValues}>
|
|
185
185
|
{formatMessage(messages.saveChanges)}
|
|
186
186
|
</CapButton>
|
|
@@ -209,11 +209,11 @@ const SenderDetails = ({
|
|
|
209
209
|
/>
|
|
210
210
|
);
|
|
211
211
|
return (
|
|
212
|
-
<CapRow key={fieldKey} className="sender-details__field">
|
|
212
|
+
<CapRow useLegacy key={fieldKey} className="sender-details__field">
|
|
213
213
|
<CapHeading type="h4">{formatMessage(messages[messageKey] || { defaultMessage: messageKey })}</CapHeading>
|
|
214
|
-
<CapRow type="flex" align="middle" className="sender-details__field-row">
|
|
214
|
+
<CapRow useLegacy type="flex" align="middle" className="sender-details__field-row">
|
|
215
215
|
{fieldKey === 'whatsappAccount' ? (
|
|
216
|
-
<CapTooltip title={formatMessage(messages.whatsappAccountTooltip)}
|
|
216
|
+
<CapTooltip title={formatMessage(messages.whatsappAccountTooltip)} overlayStyle={{ width: '21.3rem' }}>
|
|
217
217
|
{selectNode}
|
|
218
218
|
</CapTooltip>
|
|
219
219
|
) : selectNode}
|
|
@@ -236,9 +236,9 @@ const SenderDetails = ({
|
|
|
236
236
|
? formatMessage(messages.domainGatewayError)
|
|
237
237
|
: formatMessage(messages.senderNotConfiguredError);
|
|
238
238
|
return (
|
|
239
|
-
<CapRow key={fieldKey} className="sender-details__field">
|
|
239
|
+
<CapRow useLegacy key={fieldKey} className="sender-details__field">
|
|
240
240
|
<CapHeading type="h4">{formatMessage(messages[messageKey] || { defaultMessage: messageKey })}</CapHeading>
|
|
241
|
-
<CapRow type="flex" align="middle" className="sender-details__field-row">
|
|
241
|
+
<CapRow useLegacy type="flex" align="middle" className="sender-details__field-row">
|
|
242
242
|
<CapSelect
|
|
243
243
|
value={value}
|
|
244
244
|
onChange={(val) => handleFieldChange(fieldKey, val)}
|
|
@@ -271,7 +271,7 @@ const SenderDetails = ({
|
|
|
271
271
|
|
|
272
272
|
const content = (
|
|
273
273
|
<CapSpin spinning={loading}>
|
|
274
|
-
<CapRow className="sender-details__content">
|
|
274
|
+
<CapRow useLegacy className="sender-details__content">
|
|
275
275
|
{error && <CapLabel type="label2" className="sender-details__error">{error}</CapLabel>}
|
|
276
276
|
{!loading && !error && entity && fieldConfigs.length > 0 && (
|
|
277
277
|
<>
|
|
@@ -49,7 +49,7 @@ const DynamicControlsStep = ({
|
|
|
49
49
|
justify="space-between"
|
|
50
50
|
className="dynamic-controls-step__row"
|
|
51
51
|
>
|
|
52
|
-
<CapRow className="dynamic-controls-step__label-wrap">
|
|
52
|
+
<CapRow useLegacy className="dynamic-controls-step__label-wrap">
|
|
53
53
|
<CapHeading type="h4" className="dynamic-controls-step__label">
|
|
54
54
|
{displayLabel}
|
|
55
55
|
</CapHeading>
|
|
@@ -69,7 +69,7 @@ const DynamicControlsStep = ({
|
|
|
69
69
|
})}
|
|
70
70
|
|
|
71
71
|
{error && (
|
|
72
|
-
<CapRow className="validation-error dynamic-controls-step__error">
|
|
72
|
+
<CapRow useLegacy className="validation-error dynamic-controls-step__error">
|
|
73
73
|
{error}
|
|
74
74
|
</CapRow>
|
|
75
75
|
)}
|
|
@@ -34,7 +34,7 @@ const MessageTypeStep = ({
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
return (
|
|
37
|
-
<CapRow className="message-type-step">
|
|
37
|
+
<CapRow useLegacy className="message-type-step">
|
|
38
38
|
<CapHeading type="h3" className="heading-style">
|
|
39
39
|
{formatMessage(messages.messageTypeHeading)}
|
|
40
40
|
</CapHeading>
|
|
@@ -53,7 +53,7 @@ const MessageTypeStep = ({
|
|
|
53
53
|
</CapRow>
|
|
54
54
|
|
|
55
55
|
{error && (
|
|
56
|
-
<CapRow className="validation-error">
|
|
56
|
+
<CapRow useLegacy className="validation-error">
|
|
57
57
|
{error}
|
|
58
58
|
</CapRow>
|
|
59
59
|
)}
|
|
@@ -181,7 +181,7 @@ function SlideBoxFooter(props) {
|
|
|
181
181
|
<FormattedMessage {...messages.templateNameEmpty} />
|
|
182
182
|
</CapError>
|
|
183
183
|
)}
|
|
184
|
-
<CapRow>
|
|
184
|
+
<CapRow useLegacy>
|
|
185
185
|
<CapButton
|
|
186
186
|
onClick={onSave}
|
|
187
187
|
disabled={isTemplateNameEmpty || fetchingCmsData || shouldDisableButtons || hasPersonalizationTokenError}
|
|
@@ -2165,7 +2165,7 @@ export class Creatives extends React.Component {
|
|
|
2165
2165
|
hasPersonalizationTokenError={this.state.hasPersonalizationTokenError}
|
|
2166
2166
|
/>
|
|
2167
2167
|
) : isLiquidValidationError && (
|
|
2168
|
-
<CapRow className="template-footer-width">
|
|
2168
|
+
<CapRow useLegacy className="template-footer-width">
|
|
2169
2169
|
{(() => {
|
|
2170
2170
|
const errorsToShow = get(liquidErrorMessage, constants.LIQUID_ERROR_MSG, []);
|
|
2171
2171
|
const standardErrorsToShow = get(liquidErrorMessage, constants.STANDARD_ERROR_MSG, []);
|
|
@@ -8,7 +8,8 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { bindActionCreators } from 'redux';
|
|
11
|
-
import { Spin,
|
|
11
|
+
import { Spin, Breadcrumb } from 'antd';
|
|
12
|
+
import { CapRow, CapColumn } from '@capillarytech/cap-ui-library';
|
|
12
13
|
import Helmet from 'react-helmet';
|
|
13
14
|
import { intlShape } from 'react-intl';
|
|
14
15
|
import _ from 'lodash';
|
|
@@ -1168,8 +1169,8 @@ export class Ebill extends React.Component { // eslint-disable-line react/prefer
|
|
|
1168
1169
|
title="Ebill"
|
|
1169
1170
|
/>
|
|
1170
1171
|
<Spin spinning={spinning}>
|
|
1171
|
-
{this.props.location.query.type !== 'embedded' && <
|
|
1172
|
-
<
|
|
1172
|
+
{this.props.location.query.type !== 'embedded' && <CapRow>
|
|
1173
|
+
<CapColumn span={24}>
|
|
1173
1174
|
{this.props.location.query.type !== "embedded" &&
|
|
1174
1175
|
<Breadcrumb>
|
|
1175
1176
|
<BreadcrumbItem>{this.props.intl.formatMessage(messages.campaigns)}</BreadcrumbItem>
|
|
@@ -1177,10 +1178,10 @@ export class Ebill extends React.Component { // eslint-disable-line react/prefer
|
|
|
1177
1178
|
<BreadcrumbItem>{this.props.intl.formatMessage(messages.ebill)}</BreadcrumbItem>
|
|
1178
1179
|
</Breadcrumb>
|
|
1179
1180
|
}
|
|
1180
|
-
</
|
|
1181
|
-
</
|
|
1182
|
-
<
|
|
1183
|
-
<
|
|
1181
|
+
</CapColumn>
|
|
1182
|
+
</CapRow>}
|
|
1183
|
+
<CapRow>
|
|
1184
|
+
<CapColumn>
|
|
1184
1185
|
<FormBuilder
|
|
1185
1186
|
schema={schema}
|
|
1186
1187
|
onSubmit={this.saveFormData}
|
|
@@ -1208,8 +1209,8 @@ export class Ebill extends React.Component { // eslint-disable-line react/prefer
|
|
|
1208
1209
|
// supportedLanguages={this.props.Global.currentOrgDetails.basic_details.supported_languages}
|
|
1209
1210
|
// isSchemaChanged={this.state.isSchemaChanged}
|
|
1210
1211
|
/>
|
|
1211
|
-
</
|
|
1212
|
-
</
|
|
1212
|
+
</CapColumn>
|
|
1213
|
+
</CapRow>
|
|
1213
1214
|
</Spin>
|
|
1214
1215
|
{/* <div style={{display: 'inline-block', verticalAlign: 'top', width: '100%', height: '450px', borderLeft: '1px solid #b7b7b7'}}>
|
|
1215
1216
|
<div style={{width: "100%", height: '100%'}}>
|
|
@@ -8,9 +8,9 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { bindActionCreators } from 'redux';
|
|
11
|
-
import {
|
|
11
|
+
import { Popover, Modal } from 'antd';
|
|
12
12
|
import { intlShape, FormattedMessage } from 'react-intl';
|
|
13
|
-
import { CapButton, CapIcon, CapInput, CapSpin, CapSlideBox, CapCustomCard, CapNotification, CapImage } from '@capillarytech/cap-ui-library';
|
|
13
|
+
import { CapButton, CapIcon, CapInput, CapSpin, CapSlideBox, CapCustomCard, CapNotification, CapImage, CapRow, CapColumn } from '@capillarytech/cap-ui-library';
|
|
14
14
|
import { createStructuredSelector } from 'reselect';
|
|
15
15
|
import _ from 'lodash';
|
|
16
16
|
import moment from "moment";
|
|
@@ -3024,7 +3024,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
3024
3024
|
display: 'inline-block',
|
|
3025
3025
|
padding: '0 6px',
|
|
3026
3026
|
}}
|
|
3027
|
-
type="
|
|
3027
|
+
type="link"
|
|
3028
3028
|
onClick={() => action === 'PREVIEW' ? onPreviewContentClicked(testOrPreviewProps) : onTestContentClicked(testOrPreviewProps)}
|
|
3029
3029
|
>
|
|
3030
3030
|
<CapIcon type={action === 'PREVIEW' ? "eye" : "lab"}/>
|
|
@@ -3118,8 +3118,8 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
3118
3118
|
return (
|
|
3119
3119
|
<div className="email-container">
|
|
3120
3120
|
<CapSpin spinning={isLoading}>
|
|
3121
|
-
<
|
|
3122
|
-
<
|
|
3121
|
+
<CapRow>
|
|
3122
|
+
<CapColumn>
|
|
3123
3123
|
{ !_.isEmpty(schema) && (this.state.formData[0] || this.state.formData["0"]) ?
|
|
3124
3124
|
<FormBuilder
|
|
3125
3125
|
editor={this.props.editor}
|
|
@@ -3177,8 +3177,8 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
3177
3177
|
getBEEData={this.getBEEData}
|
|
3178
3178
|
isTestAndPreviewMode={this.state.isTestAndPreviewMode} // Add flag to prevent validation
|
|
3179
3179
|
/> : ''}
|
|
3180
|
-
</
|
|
3181
|
-
</
|
|
3180
|
+
</CapColumn>
|
|
3181
|
+
</CapRow>
|
|
3182
3182
|
</CapSpin>
|
|
3183
3183
|
{!_.isEmpty(this.state.formData[(this.state.currentTab - 1)]) && <EmailPreview
|
|
3184
3184
|
header={previewHeader}
|
|
@@ -269,7 +269,7 @@ export const response = {
|
|
|
269
269
|
metaType: "label",
|
|
270
270
|
type: "div",
|
|
271
271
|
primitive: true,
|
|
272
|
-
value: <CapButton isAddBtn type="
|
|
272
|
+
value: <CapButton isAddBtn type="link"><FormattedMessage {...messages.image} /></CapButton>,
|
|
273
273
|
fluid: true,
|
|
274
274
|
onlyDisplay: false,
|
|
275
275
|
styling: "semantic",
|
|
@@ -724,7 +724,7 @@ export const Advertisement = (props) => {
|
|
|
724
724
|
<>
|
|
725
725
|
<CapButton
|
|
726
726
|
onClick={addContent}
|
|
727
|
-
type="
|
|
727
|
+
type="link"
|
|
728
728
|
disabled={MAX_CAROUSEL_ALLOWED === carouselData.length}
|
|
729
729
|
isAddBtn
|
|
730
730
|
style={{ padding: 0, marginTop: 12 }}
|
|
@@ -744,7 +744,7 @@ export const Advertisement = (props) => {
|
|
|
744
744
|
<CapButton
|
|
745
745
|
onClick={shiftLeftContent}
|
|
746
746
|
disabled={defaultActiveIndex === Number(activeIndex)}
|
|
747
|
-
type="
|
|
747
|
+
type="link">
|
|
748
748
|
<CapIcon type="left" size="s" />
|
|
749
749
|
</CapButton>
|
|
750
750
|
</CapTooltip>
|
|
@@ -753,7 +753,7 @@ export const Advertisement = (props) => {
|
|
|
753
753
|
<CapButton
|
|
754
754
|
onClick={shiftRightContent}
|
|
755
755
|
disabled={carouselData.length === (Number(activeIndex) + 1)}
|
|
756
|
-
type="
|
|
756
|
+
type="link">
|
|
757
757
|
<CapIcon type="right" size="s" />
|
|
758
758
|
</CapButton>
|
|
759
759
|
</CapTooltip>
|
|
@@ -762,7 +762,7 @@ export const Advertisement = (props) => {
|
|
|
762
762
|
<CapButton
|
|
763
763
|
onClick={deleteContent}
|
|
764
764
|
disabled={carouselData.length === 1}
|
|
765
|
-
type="
|
|
765
|
+
type="link">
|
|
766
766
|
<CapIcon type="delete" size="s" />
|
|
767
767
|
</CapButton>
|
|
768
768
|
</CapTooltip>
|
|
@@ -326,7 +326,7 @@ const Facebook = (props) => {
|
|
|
326
326
|
span={index % 2 === 0 ? 6 : 14}
|
|
327
327
|
key={label}
|
|
328
328
|
>
|
|
329
|
-
<CapRow>
|
|
329
|
+
<CapRow useLegacy>
|
|
330
330
|
<CapLabel type="label2">
|
|
331
331
|
<FormattedMessage {...messages[label]} />
|
|
332
332
|
</CapLabel>
|
|
@@ -334,7 +334,7 @@ const Facebook = (props) => {
|
|
|
334
334
|
{value}
|
|
335
335
|
{!socialRemoteCampaignId && onChange && (
|
|
336
336
|
<CapButton
|
|
337
|
-
type="
|
|
337
|
+
type="link"
|
|
338
338
|
className="marketingObjective-change-button facebook-marketing-objective-change"
|
|
339
339
|
onClick={onChange}
|
|
340
340
|
>
|