@capillarytech/creatives-library 9.0.15-alpha.3 → 9.0.16-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/AppRoot.js +80 -0
- package/app.js +5 -3
- package/constants/unified.js +0 -29
- package/entry.js +67 -1
- package/global-styles.js +1 -1
- package/mfe-exposed-components.js +2 -4
- package/package.json +2 -2
- package/services/api.js +1 -1
- package/services/tests/api.test.js +20 -35
- package/styles/containers/layout/_layoutPage.scss +8 -6
- package/utils/commonUtils.js +1 -19
- package/utils/getDataLayer.js +15 -0
- package/utils/gtmTrackers/gtmEvents/creativeDetails.js +2 -1
- package/utils/mfeDetect.js +1 -0
- package/v2Components/CapActionButton/constants.js +1 -8
- package/v2Components/CapActionButton/index.js +144 -202
- package/v2Components/CapActionButton/index.scss +14 -232
- package/v2Components/CapActionButton/messages.js +3 -19
- package/v2Components/CapActionButton/tests/index.test.js +18 -42
- package/v2Components/CapImageUpload/index.js +2 -2
- package/v2Components/CapTagList/index.js +0 -10
- package/v2Components/CommonTestAndPreview/CustomValuesEditor.js +48 -70
- package/v2Components/CommonTestAndPreview/DeliverySettings/DeliverySettings.scss +2 -8
- package/v2Components/CommonTestAndPreview/DeliverySettings/ModifyDeliverySettings.js +21 -214
- package/v2Components/CommonTestAndPreview/DeliverySettings/constants.js +0 -16
- package/v2Components/CommonTestAndPreview/DeliverySettings/index.js +9 -83
- package/v2Components/CommonTestAndPreview/DeliverySettings/messages.js +0 -30
- package/v2Components/CommonTestAndPreview/DeliverySettings/utils/parseSenderDetailsResponse.js +11 -60
- package/v2Components/CommonTestAndPreview/SendTestMessage.js +5 -10
- package/v2Components/CommonTestAndPreview/UnifiedPreview/RcsPreviewContent.js +22 -202
- package/v2Components/CommonTestAndPreview/UnifiedPreview/_unifiedPreview.scss +80 -381
- package/v2Components/CommonTestAndPreview/UnifiedPreview/index.js +8 -155
- package/v2Components/CommonTestAndPreview/_commonTestAndPreview.scss +0 -11
- package/v2Components/CommonTestAndPreview/constants.js +2 -38
- package/v2Components/CommonTestAndPreview/index.js +222 -761
- package/v2Components/CommonTestAndPreview/messages.js +3 -45
- package/v2Components/CommonTestAndPreview/sagas.js +6 -25
- package/v2Components/CommonTestAndPreview/tests/CommonTestAndPreview.addTestCustomer.test.js +0 -1
- package/v2Components/CommonTestAndPreview/tests/CustomValuesEditor.test.js +267 -284
- package/v2Components/CommonTestAndPreview/tests/DeliverySettings/ModifyDeliverySettings.test.js +65 -231
- package/v2Components/CommonTestAndPreview/tests/DeliverySettings/index.test.js +5 -118
- package/v2Components/CommonTestAndPreview/tests/DeliverySettings/utils/parseSenderDetailsResponse.test.js +0 -341
- package/v2Components/CommonTestAndPreview/tests/PreviewSection.test.js +1 -8
- package/v2Components/CommonTestAndPreview/tests/SendTestMessage.test.js +13 -34
- package/v2Components/CommonTestAndPreview/tests/UnifiedPreview/RcsPreviewContent.test.js +283 -281
- package/v2Components/CommonTestAndPreview/tests/UnifiedPreview/index.test.js +1 -199
- package/v2Components/CommonTestAndPreview/tests/index.test.js +4 -133
- package/v2Components/CommonTestAndPreview/tests/sagas.test.js +24 -31
- package/v2Components/NavigationBar/index.js +9 -7
- package/v2Components/NavigationBar/mfeModuleHeader.config.js +16 -0
- package/v2Components/Pagination/_pagination.scss +2 -0
- package/v2Components/TemplatePreview/_templatePreview.scss +25 -45
- package/v2Components/TemplatePreview/index.js +32 -147
- package/v2Components/TemplatePreview/tests/index.test.js +0 -142
- package/v2Components/TestAndPreviewSlidebox/CustomValuesEditor.js +6 -6
- package/v2Components/TestAndPreviewSlidebox/index.js +1 -13
- package/v2Components/TestAndPreviewSlidebox/sagas.js +4 -11
- package/v2Components/TestAndPreviewSlidebox/tests/saga.test.js +1 -3
- package/v2Containers/Cap/constants.js +1 -0
- package/v2Containers/Cap/index.js +47 -21
- package/v2Containers/Cap/sagas.js +19 -0
- package/v2Containers/CommunicationFlow/Tests/CommunicationFlow.test.js +1 -4
- package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/Tests/DeliverySettingsSection.test.js +0 -4
- package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/Tests/SenderDetails.test.js +20 -20
- package/v2Containers/CreativesContainer/SlideBoxContent.js +7 -37
- package/v2Containers/CreativesContainer/SlideBoxFooter.js +5 -14
- package/v2Containers/CreativesContainer/SlideBoxHeader.js +5 -36
- package/v2Containers/CreativesContainer/constants.js +0 -11
- package/v2Containers/CreativesContainer/index.js +104 -323
- package/v2Containers/CreativesContainer/index.scss +1 -83
- package/v2Containers/CreativesContainer/tests/SlideBoxFooter.test.js +34 -79
- package/v2Containers/CreativesContainer/tests/SlideBoxHeader.test.js +16 -79
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +0 -8
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxHeader.test.js.snap +90 -333
- package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +15 -20
- package/v2Containers/CreativesContainer/tests/index.test.js +9 -71
- package/v2Containers/MobilePush/Create/test/saga.test.js +2 -2
- package/v2Containers/Rcs/constants.js +11 -131
- package/v2Containers/Rcs/index.js +829 -2682
- package/v2Containers/Rcs/index.scss +8 -443
- package/v2Containers/Rcs/messages.js +6 -45
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +39409 -74176
- package/v2Containers/Rcs/tests/__snapshots__/utils.test.js.snap +74 -10
- package/v2Containers/Rcs/tests/index.test.js +40 -151
- package/v2Containers/Rcs/tests/mockData.js +0 -38
- package/v2Containers/Rcs/tests/utils.test.js +30 -643
- package/v2Containers/Rcs/utils.js +12 -466
- package/v2Containers/Sms/Create/index.js +48 -115
- package/v2Containers/SmsTrai/Create/index.js +4 -9
- package/v2Containers/SmsTrai/Edit/constants.js +0 -2
- package/v2Containers/SmsTrai/Edit/index.js +169 -678
- package/v2Containers/SmsTrai/Edit/messages.js +4 -14
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +2854 -5455
- package/v2Containers/SmsWrapper/index.js +8 -37
- package/v2Containers/TagList/index.js +0 -6
- package/v2Containers/Templates/_templates.scss +11 -196
- package/v2Containers/Templates/actions.js +0 -11
- package/v2Containers/Templates/constants.js +0 -2
- package/v2Containers/Templates/index.js +60 -131
- package/v2Containers/Templates/sagas.js +13 -57
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +1015 -1060
- package/v2Containers/Templates/tests/sagas.test.js +16 -199
- package/v2Containers/TemplatesV2/TemplatesV2.style.js +10 -75
- package/v2Containers/TemplatesV2/index.js +43 -86
- package/v2Containers/WeChat/MapTemplates/test/saga.test.js +9 -9
- package/v2Containers/Whatsapp/index.js +25 -4
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +34 -578
- package/utils/rcsPayloadUtils.js +0 -92
- package/utils/templateVarUtils.js +0 -201
- package/utils/tests/rcsPayloadUtils.test.js +0 -226
- package/utils/tests/templateVarUtils.test.js +0 -204
- package/v2Components/CommonTestAndPreview/previewApiUtils.js +0 -59
- package/v2Components/CommonTestAndPreview/tests/previewApiUtils.test.js +0 -67
- package/v2Components/CommonTestAndPreview/utils.js +0 -84
- package/v2Components/SmsFallback/SmsFallbackLocalSelector.js +0 -91
- package/v2Components/SmsFallback/constants.js +0 -94
- package/v2Components/SmsFallback/index.js +0 -958
- package/v2Components/SmsFallback/index.scss +0 -266
- package/v2Components/SmsFallback/messages.js +0 -78
- package/v2Components/SmsFallback/smsFallbackUtils.js +0 -120
- package/v2Components/SmsFallback/tests/SmsFallbackLocalSelector.test.js +0 -50
- package/v2Components/SmsFallback/tests/rcsSmsFallback.acceptance.test.js +0 -147
- package/v2Components/SmsFallback/tests/smsFallbackHandlers.test.js +0 -304
- package/v2Components/SmsFallback/tests/smsFallbackUi.test.js +0 -208
- package/v2Components/SmsFallback/tests/smsFallbackUtils.test.js +0 -309
- package/v2Components/SmsFallback/tests/useLocalTemplateList.test.js +0 -422
- package/v2Components/SmsFallback/useLocalTemplateList.js +0 -92
- package/v2Components/TemplatePreview/constants.js +0 -2
- package/v2Components/VarSegmentMessageEditor/constants.js +0 -2
- package/v2Components/VarSegmentMessageEditor/index.js +0 -125
- package/v2Components/VarSegmentMessageEditor/index.scss +0 -46
- package/v2Containers/CreativesContainer/CreativesSlideBoxWrapper.js +0 -17
- package/v2Containers/CreativesContainer/embeddedSlideboxUtils.js +0 -79
- package/v2Containers/CreativesContainer/tests/SlideBoxContent.localTemplates.test.js +0 -90
- package/v2Containers/CreativesContainer/tests/embeddedSlideboxUtils.test.js +0 -258
- package/v2Containers/CreativesContainer/tests/useLocalTemplatesProp.test.js +0 -125
- package/v2Containers/Rcs/rcsLibraryHydrationUtils.js +0 -227
- package/v2Containers/Rcs/tests/rcsLibraryHydrationUtils.test.js +0 -318
- package/v2Containers/Sms/smsFormDataHelpers.js +0 -67
- package/v2Containers/Sms/tests/smsFormDataHelpers.test.js +0 -253
- package/v2Containers/SmsTrai/Edit/index.scss +0 -126
- package/v2Containers/Templates/TemplatesActionBar.js +0 -101
- package/v2Containers/Templates/tests/TemplatesActionBar.test.js +0 -120
- package/v2Containers/Templates/tests/smsTemplatesListApi.test.js +0 -180
- package/v2Containers/Templates/utils/smsTemplatesListApi.js +0 -79
- package/v2Containers/TemplatesV2/tests/TemplatesV2.localTemplates.test.js +0 -131
|
@@ -10,14 +10,12 @@ import { isTraiDLTEnable } from '../../utils/common';
|
|
|
10
10
|
import SmsEdit from '../Sms/Edit';
|
|
11
11
|
import SmsTraiCreate from '../SmsTrai/Create';
|
|
12
12
|
import SmsTraiEdit from '../SmsTrai/Edit';
|
|
13
|
-
|
|
14
13
|
const SmsWrapper = (props) => {
|
|
15
14
|
const {
|
|
16
15
|
isCreateSms,
|
|
17
16
|
isEditSms,
|
|
18
17
|
setIsLoadingContent,
|
|
19
18
|
location,
|
|
20
|
-
route: routeFromProps,
|
|
21
19
|
isGetFormData,
|
|
22
20
|
getFormSubscriptionData,
|
|
23
21
|
isFullMode,
|
|
@@ -40,33 +38,15 @@ const SmsWrapper = (props) => {
|
|
|
40
38
|
handleCloseTestAndPreview,
|
|
41
39
|
isTestAndPreviewMode,
|
|
42
40
|
onValidationFail,
|
|
43
|
-
embeddedSmsFallback = false,
|
|
44
|
-
onEmbeddedSmsFooterValidity,
|
|
45
|
-
forceFullTagContext = false,
|
|
46
41
|
} = props;
|
|
47
42
|
|
|
48
|
-
/** FormBuilder / SMS Create assume `location.query`; connected-router shapes may omit it. */
|
|
49
|
-
const smsLocation = (() => {
|
|
50
|
-
const loc = location || {};
|
|
51
|
-
const q = loc.query;
|
|
52
|
-
if (q && typeof q === 'object') {
|
|
53
|
-
return { ...loc, query: { ...q } };
|
|
54
|
-
}
|
|
55
|
-
return {
|
|
56
|
-
pathname: loc.pathname || '/sms/create',
|
|
57
|
-
search: loc.search || '',
|
|
58
|
-
query: { type: 'embedded', module: 'library' },
|
|
59
|
-
};
|
|
60
|
-
})();
|
|
61
|
-
|
|
62
43
|
const smsProps = {
|
|
63
44
|
onCreateComplete,
|
|
64
45
|
setIsLoadingContent,
|
|
65
|
-
location
|
|
66
|
-
route:
|
|
46
|
+
location,
|
|
47
|
+
route: { name: 'sms' },
|
|
67
48
|
isGetFormData,
|
|
68
49
|
getFormSubscriptionData,
|
|
69
|
-
templateData,
|
|
70
50
|
getDefaultTags,
|
|
71
51
|
isFullMode,
|
|
72
52
|
forwardedTags,
|
|
@@ -82,33 +62,24 @@ const SmsWrapper = (props) => {
|
|
|
82
62
|
handleCloseTestAndPreview,
|
|
83
63
|
isTestAndPreviewMode,
|
|
84
64
|
onValidationFail,
|
|
85
|
-
forceFullTagContext,
|
|
86
|
-
embeddedSmsFallback,
|
|
87
|
-
onEmbeddedSmsFooterValidity,
|
|
88
|
-
...(embeddedSmsFallback
|
|
89
|
-
? {
|
|
90
|
-
tagListGetPopupContainer: () => document.body,
|
|
91
|
-
tagListPopoverOverlayStyle: { zIndex: 10020 },
|
|
92
|
-
tagListPopoverOverlayClassName: 'sms-fallback-taglist-popover rcs-sms-fallback-taglist-popover',
|
|
93
|
-
}
|
|
94
|
-
: {}),
|
|
95
65
|
};
|
|
96
|
-
const
|
|
66
|
+
const isTraiDlt = isTraiDLTEnable(isFullMode, smsRegister);
|
|
97
67
|
return <>
|
|
98
68
|
{
|
|
99
|
-
isCreateSms && (
|
|
69
|
+
isCreateSms && (isTraiDlt ?
|
|
100
70
|
<SmsTraiCreate
|
|
101
71
|
isComponent
|
|
102
72
|
{...smsProps}
|
|
103
73
|
onShowTemplates={onShowTemplates}
|
|
104
74
|
/> :
|
|
105
75
|
<SmsCreate
|
|
106
|
-
isComponent
|
|
107
|
-
|
|
76
|
+
isComponent {
|
|
77
|
+
...smsProps
|
|
78
|
+
}
|
|
108
79
|
/>
|
|
109
80
|
)
|
|
110
81
|
}
|
|
111
|
-
{isEditSms && (
|
|
82
|
+
{isEditSms && (isTraiDlt ?
|
|
112
83
|
<SmsTraiEdit
|
|
113
84
|
{...smsProps}
|
|
114
85
|
params={{id: templateData._id}}
|
|
@@ -477,9 +477,6 @@ export class TagList extends React.Component { // eslint-disable-line react/pref
|
|
|
477
477
|
disableTooltipMsg={tooltipMsg}
|
|
478
478
|
fetchingSchemaError={this?.state?.tagsError}
|
|
479
479
|
popoverPlacement={this.props.popoverPlacement}
|
|
480
|
-
overlayStyle={this.props.popoverOverlayStyle}
|
|
481
|
-
overlayClassName={this.props.popoverOverlayClassName}
|
|
482
|
-
getPopupContainer={this.props.getPopupContainer}
|
|
483
480
|
/>
|
|
484
481
|
</div>
|
|
485
482
|
);
|
|
@@ -516,9 +513,6 @@ TagList.propTypes = {
|
|
|
516
513
|
// message to show when Add Label button is disabled (e.g. personalization restriction)
|
|
517
514
|
disableTooltipMsg: PropTypes.string,
|
|
518
515
|
restrictPersonalization: PropTypes.bool,
|
|
519
|
-
popoverOverlayStyle: PropTypes.object,
|
|
520
|
-
popoverOverlayClassName: PropTypes.string,
|
|
521
|
-
getPopupContainer: PropTypes.func,
|
|
522
516
|
intl: PropTypes.shape({
|
|
523
517
|
formatMessage: PropTypes.func.isRequired,
|
|
524
518
|
locale: PropTypes.string,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
@import '~@capillarytech/cap-ui-library/styles/_variables.scss';
|
|
2
2
|
|
|
3
3
|
.ant-tabs-content{
|
|
4
|
-
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
padding: unset;
|
|
8
|
-
}
|
|
4
|
+
margin-top: $CAP_SPACE_08;
|
|
5
|
+
.ant-tabs-tabpane-active{
|
|
6
|
+
padding: unset;
|
|
9
7
|
}
|
|
10
|
-
}
|
|
8
|
+
}
|
|
11
9
|
//removing current one as not required now in each row we'll have 3 cards for which css has been added
|
|
12
10
|
|
|
13
11
|
// 3 cards per row across all breakpoints
|
|
@@ -26,7 +24,6 @@
|
|
|
26
24
|
}
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
|
|
30
27
|
.creatives-templates-list {
|
|
31
28
|
position: relative;
|
|
32
29
|
|
|
@@ -48,10 +45,8 @@
|
|
|
48
45
|
.ant-modal-footer {
|
|
49
46
|
padding: $CAP_SPACE_16 $CAP_SPACE_24 $CAP_SPACE_24 $CAP_SPACE_24;
|
|
50
47
|
}
|
|
51
|
-
}
|
|
52
48
|
|
|
53
49
|
.ant-modal-header {
|
|
54
|
-
.v2-pagination-container, .v2-pagination-container-half {
|
|
55
50
|
padding: $CAP_SPACE_24 $CAP_SPACE_24 $CAP_SPACE_08 $CAP_SPACE_24;
|
|
56
51
|
}
|
|
57
52
|
|
|
@@ -64,8 +59,7 @@
|
|
|
64
59
|
}
|
|
65
60
|
}
|
|
66
61
|
|
|
67
|
-
.v2-pagination-container
|
|
68
|
-
.v2-pagination-container-half {
|
|
62
|
+
.v2-pagination-container {
|
|
69
63
|
.FACEBOOK {
|
|
70
64
|
.ant-card-body {
|
|
71
65
|
background-color: $CAP_G09;
|
|
@@ -198,14 +192,10 @@
|
|
|
198
192
|
.whatsapp-container {
|
|
199
193
|
background-color: $CAP_WHITE;
|
|
200
194
|
padding: $CAP_SPACE_12;
|
|
201
|
-
overflow-y: hidden;
|
|
202
195
|
}
|
|
203
196
|
.scroll-container {
|
|
204
197
|
overflow-x: auto;
|
|
205
|
-
overflow-y: hidden;
|
|
206
198
|
display: flex;
|
|
207
|
-
flex-wrap: nowrap;
|
|
208
|
-
width: 100%;
|
|
209
199
|
padding-top: $CAP_SPACE_06;
|
|
210
200
|
padding-right: $CAP_SPACE_06;
|
|
211
201
|
white-space: nowrap;
|
|
@@ -213,8 +203,9 @@
|
|
|
213
203
|
&::-webkit-scrollbar {
|
|
214
204
|
display: none; // Hide scrollbar in Chrome/Safari/Opera
|
|
215
205
|
}
|
|
206
|
+
overflow: hidden;
|
|
216
207
|
.whatsapp-carousel-container {
|
|
217
|
-
padding: $CAP_SPACE_04
|
|
208
|
+
padding: $CAP_SPACE_04 0px $CAP_SPACE_08;
|
|
218
209
|
border-radius: $CAP_SPACE_06;
|
|
219
210
|
background-color: $CAP_WHITE;
|
|
220
211
|
width: 80%;
|
|
@@ -262,119 +253,6 @@
|
|
|
262
253
|
}
|
|
263
254
|
}
|
|
264
255
|
|
|
265
|
-
// RCS template listing preview: match WhatsApp carousel "peek" behavior
|
|
266
|
-
.RCS {
|
|
267
|
-
.cap-custom-card {
|
|
268
|
-
.ant-card-body {
|
|
269
|
-
.ant-card-meta {
|
|
270
|
-
background-color: $CAP_G09;
|
|
271
|
-
padding: 0;
|
|
272
|
-
.ant-card-meta-description {
|
|
273
|
-
.whatsapp-container,.cap-rcs-creatives {
|
|
274
|
-
background-color: $CAP_WHITE;
|
|
275
|
-
padding: $CAP_SPACE_12;
|
|
276
|
-
border-radius: 0.25rem;
|
|
277
|
-
overflow-y: hidden;
|
|
278
|
-
.cap-divider-v2{
|
|
279
|
-
margin: $CAP_SPACE_12 0;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
// Listing preview shows only the first card — no scroll/peek (Figma).
|
|
283
|
-
.whatsapp-carousel-container {
|
|
284
|
-
padding: $CAP_SPACE_04;
|
|
285
|
-
width: 100%;
|
|
286
|
-
box-sizing: border-box;
|
|
287
|
-
white-space: pre-wrap;
|
|
288
|
-
word-break: break-word;
|
|
289
|
-
overflow: auto;
|
|
290
|
-
text-align: left;
|
|
291
|
-
.whatsapp-carousel-card {
|
|
292
|
-
display: flex;
|
|
293
|
-
flex-direction: column;
|
|
294
|
-
gap: $CAP_SPACE_04;
|
|
295
|
-
}
|
|
296
|
-
// Text and media are two separate rounded cards, not one merged
|
|
297
|
-
// box (Figma listing reference) — text first, then media below it.
|
|
298
|
-
// Borderless + shadow-only elevation, matching the established
|
|
299
|
-
// convention for preview carousel cards (see .mobile-push-carousel-card
|
|
300
|
-
// in v2Components/TemplatePreview/_templatePreview.scss) — a visible
|
|
301
|
-
// border read as "boxed in" against the $CAP_G09 card background.
|
|
302
|
-
.rcs-carousel-listing-text-box {
|
|
303
|
-
background-color: $CAP_WHITE;
|
|
304
|
-
border-radius: $CAP_SPACE_04;
|
|
305
|
-
padding: $CAP_SPACE_12;
|
|
306
|
-
box-shadow: 0 0 0.625rem 0 rgba(0, 0, 0, 0.08);
|
|
307
|
-
.whatsapp-carousel-body {
|
|
308
|
-
white-space: pre-wrap;
|
|
309
|
-
overflow: hidden;
|
|
310
|
-
text-overflow: ellipsis;
|
|
311
|
-
display: -webkit-box;
|
|
312
|
-
-webkit-line-clamp: 2;
|
|
313
|
-
line-clamp: 2;
|
|
314
|
-
-webkit-box-orient: vertical;
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
.rcs-carousel-listing-media-box {
|
|
318
|
-
background-color: $CAP_WHITE;
|
|
319
|
-
border-radius: $CAP_SPACE_08;
|
|
320
|
-
padding: $CAP_SPACE_04;
|
|
321
|
-
box-sizing: border-box;
|
|
322
|
-
box-shadow: 0 0 0.625rem 0 rgba(0, 0, 0, 0.08);
|
|
323
|
-
.whatsapp-image,
|
|
324
|
-
.rcs-video-preview-placeholder {
|
|
325
|
-
display: block;
|
|
326
|
-
width: 100%;
|
|
327
|
-
// Neutralize the global .whatsapp-image { max-height: 123px;
|
|
328
|
-
// margin-bottom: 4px; } rule (_templates.scss line ~1202) — that
|
|
329
|
-
// margin was leaving a background sliver inside this rounded box,
|
|
330
|
-
// making the radius clip look uneven between top and bottom.
|
|
331
|
-
height: 11rem;
|
|
332
|
-
max-height: none;
|
|
333
|
-
margin: 0;
|
|
334
|
-
object-fit: cover;
|
|
335
|
-
overflow: hidden;
|
|
336
|
-
border-radius: $CAP_SPACE_04;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
// RCS CTA buttons in listing (reuse WhatsApp-ish look)
|
|
342
|
-
.rcs-cta-preview {
|
|
343
|
-
margin: $CAP_SPACE_12 0;
|
|
344
|
-
display: flex;
|
|
345
|
-
justify-content: center;
|
|
346
|
-
font-size: $FONT_SIZE_M;
|
|
347
|
-
align-items: center;
|
|
348
|
-
color: #1970DA;
|
|
349
|
-
svg {
|
|
350
|
-
margin-right: $CAP_SPACE_04;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
.rcs-video-preview-placeholder {
|
|
355
|
-
background: #f5f5f5;
|
|
356
|
-
display: flex;
|
|
357
|
-
align-items: center;
|
|
358
|
-
justify-content: center;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
.rcs-video-preview-label {
|
|
362
|
-
color: #7a7a7a;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
.rcs-listing-title {
|
|
366
|
-
font-weight: 600;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
.whatsapp-divider {
|
|
370
|
-
margin: 0;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
|
|
378
256
|
.MOBILEPUSH {
|
|
379
257
|
.ant-card-body {
|
|
380
258
|
padding: 0;
|
|
@@ -420,7 +298,6 @@
|
|
|
420
298
|
}
|
|
421
299
|
.scroll-container {
|
|
422
300
|
overflow-x: auto;
|
|
423
|
-
overflow-y: hidden;
|
|
424
301
|
display: flex;
|
|
425
302
|
padding-top: $CAP_SPACE_06;
|
|
426
303
|
padding-right: $CAP_SPACE_06;
|
|
@@ -429,11 +306,12 @@
|
|
|
429
306
|
&::-webkit-scrollbar {
|
|
430
307
|
display: none; // Hide scrollbar in Chrome/Safari/Opera
|
|
431
308
|
}
|
|
309
|
+
overflow: hidden;
|
|
432
310
|
height: 100%;
|
|
433
311
|
width: 100%;
|
|
434
312
|
margin-left: 1.65rem;
|
|
435
313
|
.whatsapp-carousel-container {
|
|
436
|
-
padding: $CAP_SPACE_04
|
|
314
|
+
padding: $CAP_SPACE_04 0px $CAP_SPACE_08;
|
|
437
315
|
border-radius: $CAP_SPACE_06;
|
|
438
316
|
background-color: $CAP_WHITE;
|
|
439
317
|
width: 80%;
|
|
@@ -823,30 +701,11 @@
|
|
|
823
701
|
}
|
|
824
702
|
|
|
825
703
|
.action-container{
|
|
826
|
-
margin-top:
|
|
827
|
-
margin-bottom:
|
|
704
|
+
margin-top: 8px;
|
|
705
|
+
margin-bottom: 16px;
|
|
828
706
|
display: flex;
|
|
829
707
|
justify-content: space-between;
|
|
830
708
|
align-items: center;
|
|
831
|
-
|
|
832
|
-
&__toolbar-row {
|
|
833
|
-
display: flex;
|
|
834
|
-
align-items: center;
|
|
835
|
-
gap: 0.75rem;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
&__toolbar-row .search-text {
|
|
839
|
-
width: 13.125rem;
|
|
840
|
-
min-width: 13.125rem;
|
|
841
|
-
flex: 1;
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
&__create-row {
|
|
845
|
-
display: flex;
|
|
846
|
-
justify-content: space-between;
|
|
847
|
-
align-items: center;
|
|
848
|
-
margin-right: $CAP_SPACE_32;
|
|
849
|
-
}
|
|
850
709
|
}
|
|
851
710
|
|
|
852
711
|
.popover-action-container:hover{
|
|
@@ -1305,49 +1164,6 @@
|
|
|
1305
1164
|
overflow: 'auto';
|
|
1306
1165
|
}
|
|
1307
1166
|
|
|
1308
|
-
/* Local SMS / slidebox: viewport-based .v2-pagination-container-half height leaves empty space below and clips cards */
|
|
1309
|
-
.creatives-templates-container--local-sms.library-mode {
|
|
1310
|
-
.creatives-templates-list.library-mode > .cap-row:first-of-type > div {
|
|
1311
|
-
display: flex;
|
|
1312
|
-
flex-direction: column;
|
|
1313
|
-
flex: 1 1 auto;
|
|
1314
|
-
min-height: 0;
|
|
1315
|
-
overflow: hidden;
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
.creatives-templates-list.library-mode > .cap-row:first-of-type > div > div:first-child {
|
|
1319
|
-
display: flex;
|
|
1320
|
-
flex-direction: column;
|
|
1321
|
-
flex: 1 1 auto;
|
|
1322
|
-
min-height: 0;
|
|
1323
|
-
overflow: hidden;
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
/* Block below search/filter: grid + skeletons — must grow to use space above footer */
|
|
1327
|
-
.creatives-templates-list.library-mode > .cap-row:first-of-type > div > div:first-child > div:nth-child(2) {
|
|
1328
|
-
flex: 1 1 auto;
|
|
1329
|
-
min-height: 0;
|
|
1330
|
-
display: flex;
|
|
1331
|
-
flex-direction: column;
|
|
1332
|
-
overflow: hidden;
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
/*
|
|
1336
|
-
* Scroll needs a definite height. Pure flex + height:auto + max-height:100% often won’t bound (no % base), so no scrollbar.
|
|
1337
|
-
* Use a taller slice than global 100vh-20rem so the grid uses space under search; still overflow-y:auto for long lists.
|
|
1338
|
-
*/
|
|
1339
|
-
.v2-pagination-container,
|
|
1340
|
-
.v2-pagination-container-half {
|
|
1341
|
-
flex: 0 1 auto;
|
|
1342
|
-
min-height: 0;
|
|
1343
|
-
height: calc(100vh - 12rem);
|
|
1344
|
-
max-height: calc(100vh - 12rem);
|
|
1345
|
-
overflow-y: auto;
|
|
1346
|
-
overflow-x: hidden;
|
|
1347
|
-
-webkit-overflow-scrolling: touch;
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
1167
|
// Archive feature layout classes
|
|
1352
1168
|
.illustration-scroll-wrapper {
|
|
1353
1169
|
height: calc(100vh - 20.3125rem);
|
|
@@ -1427,7 +1243,6 @@
|
|
|
1427
1243
|
justify-content: space-between;
|
|
1428
1244
|
align-items: center;
|
|
1429
1245
|
gap: $CAP_SPACE_08;
|
|
1430
|
-
margin-right: $CAP_SPACE_32;
|
|
1431
1246
|
}
|
|
1432
1247
|
|
|
1433
1248
|
.template-listing-more-btn {
|
|
@@ -15,17 +15,6 @@ export function getAllTemplates(channel, queryParams, intlCopyOf = '') {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
export function getLocalSmsTemplates(queryParams, intlCopyOf = '', onSuccess, onFailure) {
|
|
20
|
-
return {
|
|
21
|
-
type: types.GET_LOCAL_SMS_TEMPLATES_REQUEST,
|
|
22
|
-
queryParams,
|
|
23
|
-
intlCopyOf,
|
|
24
|
-
onSuccess,
|
|
25
|
-
onFailure,
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
18
|
export function resetTemplate() {
|
|
30
19
|
return {
|
|
31
20
|
type: types.RESET_TEMPLATE,
|
|
@@ -10,8 +10,6 @@ export const GET_ALL_TEMPLATES_REQUEST = 'app/v2Containers/Templates/GET_ALL_TEM
|
|
|
10
10
|
export const GET_ALL_TEMPLATES_SUCCESS = 'app/v2Containers/Templates/GET_ALL_TEMPLATES_SUCCESS';
|
|
11
11
|
export const GET_ALL_TEMPLATES_FAILURE = 'app/v2Containers/Templates/GET_ALL_TEMPLATES_FAILURE';
|
|
12
12
|
|
|
13
|
-
export const GET_LOCAL_SMS_TEMPLATES_REQUEST = 'app/v2Containers/Templates/GET_LOCAL_SMS_TEMPLATES_REQUEST';
|
|
14
|
-
|
|
15
13
|
export const DELETE_TEMPLATE_REQUEST = 'app/v2Containers/Templates/DELETE_TEMPLATE_REQUEST';
|
|
16
14
|
export const DELETE_RCS_TEMPLATE_REQUEST = 'app/v2Containers/Templates/DELETE_RCS_TEMPLATE_REQUEST';
|
|
17
15
|
export const DELETE_TEMPLATE_SUCCESS = 'app/v2Containers/Templates/DELETE_TEMPLATE_SUCCESS';
|