@capillarytech/creatives-library 8.0.353-alpha.6 → 8.0.354
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 +0 -29
- package/index.html +1 -0
- package/package.json +1 -1
- package/services/tests/api.test.js +20 -35
- package/utils/cdnTransformation.js +63 -3
- package/utils/commonUtils.js +1 -19
- package/utils/tests/cdnTransformation.test.js +111 -0
- package/v2Components/CapActionButton/constants.js +0 -7
- package/v2Components/CapActionButton/index.js +108 -166
- package/v2Components/CapActionButton/index.scss +6 -157
- package/v2Components/CapActionButton/messages.js +3 -19
- package/v2Components/CapActionButton/tests/index.test.js +17 -41
- package/v2Components/CapTagList/index.js +0 -10
- package/v2Components/CommonTestAndPreview/CustomValuesEditor.js +49 -72
- package/v2Components/CommonTestAndPreview/DeliverySettings/DeliverySettings.scss +2 -8
- package/v2Components/CommonTestAndPreview/DeliverySettings/ModifyDeliverySettings.js +21 -213
- package/v2Components/CommonTestAndPreview/DeliverySettings/constants.js +0 -16
- package/v2Components/CommonTestAndPreview/DeliverySettings/index.js +10 -85
- package/v2Components/CommonTestAndPreview/DeliverySettings/messages.js +0 -30
- package/v2Components/CommonTestAndPreview/DeliverySettings/utils/parseSenderDetailsResponse.js +11 -79
- package/v2Components/CommonTestAndPreview/SendTestMessage.js +5 -10
- package/v2Components/CommonTestAndPreview/UnifiedPreview/RcsPreviewContent.js +15 -157
- package/v2Components/CommonTestAndPreview/UnifiedPreview/_unifiedPreview.scss +76 -346
- package/v2Components/CommonTestAndPreview/UnifiedPreview/index.js +4 -133
- package/v2Components/CommonTestAndPreview/_commonTestAndPreview.scss +0 -11
- package/v2Components/CommonTestAndPreview/constants.js +2 -38
- package/v2Components/CommonTestAndPreview/index.js +186 -691
- package/v2Components/CommonTestAndPreview/messages.js +3 -45
- package/v2Components/CommonTestAndPreview/sagas.js +6 -25
- package/v2Components/CommonTestAndPreview/tests/CustomValuesEditor.test.js +284 -308
- 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 -132
- package/v2Components/CommonTestAndPreview/tests/sagas.test.js +26 -36
- package/v2Components/FormBuilder/index.js +6 -11
- package/v2Components/TemplatePreview/_templatePreview.scss +23 -38
- package/v2Components/TemplatePreview/index.js +31 -143
- package/v2Components/TemplatePreview/tests/index.test.js +0 -142
- 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/CreativesContainer/SlideBoxContent.js +4 -36
- package/v2Containers/CreativesContainer/SlideBoxFooter.js +1 -10
- package/v2Containers/CreativesContainer/SlideBoxHeader.js +4 -29
- package/v2Containers/CreativesContainer/constants.js +0 -9
- package/v2Containers/CreativesContainer/index.js +103 -322
- package/v2Containers/CreativesContainer/index.scss +1 -51
- package/v2Containers/CreativesContainer/tests/SlideBoxFooter.test.js +34 -78
- 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 +98 -357
- 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 +10 -119
- package/v2Containers/Rcs/index.js +818 -2450
- package/v2Containers/Rcs/index.scss +8 -280
- package/v2Containers/Rcs/messages.js +3 -34
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +70073 -98018
- package/v2Containers/Rcs/tests/__snapshots__/utils.test.js.snap +5 -0
- package/v2Containers/Rcs/tests/index.test.js +121 -152
- package/v2Containers/Rcs/tests/mockData.js +0 -38
- package/v2Containers/Rcs/tests/utils.test.js +30 -646
- package/v2Containers/Rcs/utils.js +11 -478
- package/v2Containers/Sms/Create/index.js +40 -106
- package/v2Containers/SmsTrai/Create/index.js +4 -9
- package/v2Containers/SmsTrai/Edit/constants.js +0 -2
- package/v2Containers/SmsTrai/Edit/index.js +130 -640
- package/v2Containers/SmsTrai/Edit/messages.js +4 -14
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +2296 -4249
- package/v2Containers/SmsWrapper/index.js +8 -37
- package/v2Containers/TagList/index.js +0 -6
- package/v2Containers/Templates/_templates.scss +9 -166
- package/v2Containers/Templates/actions.js +0 -11
- package/v2Containers/Templates/constants.js +0 -2
- package/v2Containers/Templates/index.js +52 -120
- package/v2Containers/Templates/sagas.js +18 -57
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +1017 -1062
- package/v2Containers/Templates/tests/sagas.test.js +39 -205
- package/v2Containers/TemplatesV2/TemplatesV2.style.js +1 -72
- package/v2Containers/TemplatesV2/index.js +23 -86
- package/v2Containers/WeChat/MapTemplates/test/saga.test.js +9 -9
- package/v2Containers/Whatsapp/index.js +20 -3
- 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/SmsFallback/SmsFallbackLocalSelector.js +0 -91
- package/v2Components/SmsFallback/constants.js +0 -73
- package/v2Components/SmsFallback/index.js +0 -956
- package/v2Components/SmsFallback/index.scss +0 -265
- package/v2Components/SmsFallback/messages.js +0 -78
- package/v2Components/SmsFallback/smsFallbackUtils.js +0 -119
- 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 -223
- 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 -43
- 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 -225
- 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 -121
- 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_16;
|
|
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;
|
|
@@ -191,14 +185,10 @@
|
|
|
191
185
|
.whatsapp-container {
|
|
192
186
|
background-color: $CAP_WHITE;
|
|
193
187
|
padding: $CAP_SPACE_12;
|
|
194
|
-
overflow-y: hidden;
|
|
195
188
|
}
|
|
196
189
|
.scroll-container {
|
|
197
190
|
overflow-x: auto;
|
|
198
|
-
overflow-y: hidden;
|
|
199
191
|
display: flex;
|
|
200
|
-
flex-wrap: nowrap;
|
|
201
|
-
width: 100%;
|
|
202
192
|
padding-top: $CAP_SPACE_06;
|
|
203
193
|
padding-right: $CAP_SPACE_06;
|
|
204
194
|
white-space: nowrap;
|
|
@@ -206,6 +196,7 @@
|
|
|
206
196
|
&::-webkit-scrollbar {
|
|
207
197
|
display: none; // Hide scrollbar in Chrome/Safari/Opera
|
|
208
198
|
}
|
|
199
|
+
overflow: hidden;
|
|
209
200
|
.whatsapp-carousel-container {
|
|
210
201
|
padding: $CAP_SPACE_04 0px $CAP_SPACE_08;
|
|
211
202
|
border-radius: $CAP_SPACE_06;
|
|
@@ -231,92 +222,6 @@
|
|
|
231
222
|
}
|
|
232
223
|
}
|
|
233
224
|
|
|
234
|
-
// RCS template listing preview: match WhatsApp carousel "peek" behavior
|
|
235
|
-
.RCS {
|
|
236
|
-
.cap-custom-card {
|
|
237
|
-
.ant-card-body {
|
|
238
|
-
.ant-card-meta {
|
|
239
|
-
background-color: $CAP_G09;
|
|
240
|
-
padding: 0;
|
|
241
|
-
.ant-card-meta-description {
|
|
242
|
-
.whatsapp-container,.cap-rcs-creatives {
|
|
243
|
-
background-color: $CAP_WHITE;
|
|
244
|
-
padding: $CAP_SPACE_12;
|
|
245
|
-
border-radius: 0.25rem;
|
|
246
|
-
.cap-divider-v2{
|
|
247
|
-
margin: $CAP_SPACE_12 0;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
.scroll-container {
|
|
251
|
-
overflow-x: auto;
|
|
252
|
-
overflow-y: hidden;
|
|
253
|
-
display: flex;
|
|
254
|
-
flex-wrap: nowrap;
|
|
255
|
-
padding-top: $CAP_SPACE_06;
|
|
256
|
-
padding-right: $CAP_SPACE_06;
|
|
257
|
-
white-space: nowrap;
|
|
258
|
-
scrollbar-width: none; // Hide scrollbar in Firefox
|
|
259
|
-
&::-webkit-scrollbar {
|
|
260
|
-
display: none; // Hide scrollbar in Chrome/Safari/Opera
|
|
261
|
-
}
|
|
262
|
-
.whatsapp-carousel-container {
|
|
263
|
-
padding: $CAP_SPACE_04 0px $CAP_SPACE_08;
|
|
264
|
-
border-radius: $CAP_SPACE_06;
|
|
265
|
-
background-color: $CAP_WHITE;
|
|
266
|
-
width: 80%;
|
|
267
|
-
flex-shrink: 0;
|
|
268
|
-
margin-right: $CAP_SPACE_04;
|
|
269
|
-
white-space: pre-wrap;
|
|
270
|
-
word-break: break-word;
|
|
271
|
-
overflow: auto;
|
|
272
|
-
text-align: left;
|
|
273
|
-
.whatsapp-carousel-card {
|
|
274
|
-
margin: $CAP_SPACE_02 $CAP_SPACE_06 $CAP_SPACE_01 $CAP_SPACE_08;
|
|
275
|
-
.whatsapp-carousel-body {
|
|
276
|
-
margin-bottom: $CAP_SPACE_08;
|
|
277
|
-
white-space: pre-wrap;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
// RCS CTA buttons in listing (reuse WhatsApp-ish look)
|
|
284
|
-
.rcs-cta-preview {
|
|
285
|
-
margin: $CAP_SPACE_12 0;
|
|
286
|
-
display: flex;
|
|
287
|
-
justify-content: center;
|
|
288
|
-
font-size: $FONT_SIZE_M;
|
|
289
|
-
align-items: center;
|
|
290
|
-
color: #1970DA;
|
|
291
|
-
svg {
|
|
292
|
-
margin-right: $CAP_SPACE_04;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.rcs-video-preview-placeholder {
|
|
297
|
-
background: #f5f5f5;
|
|
298
|
-
display: flex;
|
|
299
|
-
align-items: center;
|
|
300
|
-
justify-content: center;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.rcs-video-preview-label {
|
|
304
|
-
color: #7a7a7a;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.rcs-listing-title {
|
|
308
|
-
font-weight: 600;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.whatsapp-divider {
|
|
312
|
-
margin: 0;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
225
|
.MOBILEPUSH {
|
|
321
226
|
.ant-card-body {
|
|
322
227
|
padding: 0;
|
|
@@ -362,7 +267,6 @@
|
|
|
362
267
|
}
|
|
363
268
|
.scroll-container {
|
|
364
269
|
overflow-x: auto;
|
|
365
|
-
overflow-y: hidden;
|
|
366
270
|
display: flex;
|
|
367
271
|
padding-top: $CAP_SPACE_06;
|
|
368
272
|
padding-right: $CAP_SPACE_06;
|
|
@@ -371,6 +275,7 @@
|
|
|
371
275
|
&::-webkit-scrollbar {
|
|
372
276
|
display: none; // Hide scrollbar in Chrome/Safari/Opera
|
|
373
277
|
}
|
|
278
|
+
overflow: hidden;
|
|
374
279
|
height: 100%;
|
|
375
280
|
width: 100%;
|
|
376
281
|
margin-left: 1.65rem;
|
|
@@ -758,30 +663,11 @@
|
|
|
758
663
|
}
|
|
759
664
|
|
|
760
665
|
.action-container{
|
|
761
|
-
margin-top:
|
|
762
|
-
margin-bottom:
|
|
666
|
+
margin-top: 8px;
|
|
667
|
+
margin-bottom: 16px;
|
|
763
668
|
display: flex;
|
|
764
669
|
justify-content: space-between;
|
|
765
670
|
align-items: center;
|
|
766
|
-
|
|
767
|
-
&__toolbar-row {
|
|
768
|
-
display: flex;
|
|
769
|
-
align-items: center;
|
|
770
|
-
gap: 0.75rem;
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
&__toolbar-row .search-text {
|
|
774
|
-
width: 13.125rem;
|
|
775
|
-
min-width: 13.125rem;
|
|
776
|
-
flex: 1;
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
&__create-row {
|
|
780
|
-
display: flex;
|
|
781
|
-
justify-content: space-between;
|
|
782
|
-
align-items: center;
|
|
783
|
-
margin-right: $CAP_SPACE_32;
|
|
784
|
-
}
|
|
785
671
|
}
|
|
786
672
|
|
|
787
673
|
.popover-action-container:hover{
|
|
@@ -1252,49 +1138,6 @@
|
|
|
1252
1138
|
overflow: 'auto';
|
|
1253
1139
|
}
|
|
1254
1140
|
|
|
1255
|
-
/* Local SMS / slidebox: viewport-based .v2-pagination-container-half height leaves empty space below and clips cards */
|
|
1256
|
-
.creatives-templates-container--local-sms.library-mode {
|
|
1257
|
-
.creatives-templates-list.library-mode > .cap-row:first-of-type > div {
|
|
1258
|
-
display: flex;
|
|
1259
|
-
flex-direction: column;
|
|
1260
|
-
flex: 1 1 auto;
|
|
1261
|
-
min-height: 0;
|
|
1262
|
-
overflow: hidden;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
.creatives-templates-list.library-mode > .cap-row:first-of-type > div > div:first-child {
|
|
1266
|
-
display: flex;
|
|
1267
|
-
flex-direction: column;
|
|
1268
|
-
flex: 1 1 auto;
|
|
1269
|
-
min-height: 0;
|
|
1270
|
-
overflow: hidden;
|
|
1271
|
-
}
|
|
1272
|
-
|
|
1273
|
-
/* Block below search/filter: grid + skeletons — must grow to use space above footer */
|
|
1274
|
-
.creatives-templates-list.library-mode > .cap-row:first-of-type > div > div:first-child > div:nth-child(2) {
|
|
1275
|
-
flex: 1 1 auto;
|
|
1276
|
-
min-height: 0;
|
|
1277
|
-
display: flex;
|
|
1278
|
-
flex-direction: column;
|
|
1279
|
-
overflow: hidden;
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
/*
|
|
1283
|
-
* Scroll needs a definite height. Pure flex + height:auto + max-height:100% often won’t bound (no % base), so no scrollbar.
|
|
1284
|
-
* Use a taller slice than global 100vh-20rem so the grid uses space under search; still overflow-y:auto for long lists.
|
|
1285
|
-
*/
|
|
1286
|
-
.v2-pagination-container,
|
|
1287
|
-
.v2-pagination-container-half {
|
|
1288
|
-
flex: 0 1 auto;
|
|
1289
|
-
min-height: 0;
|
|
1290
|
-
height: calc(100vh - 12rem);
|
|
1291
|
-
max-height: calc(100vh - 12rem);
|
|
1292
|
-
overflow-y: auto;
|
|
1293
|
-
overflow-x: hidden;
|
|
1294
|
-
-webkit-overflow-scrolling: touch;
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
1141
|
// Archive feature layout classes
|
|
1299
1142
|
.illustration-scroll-wrapper {
|
|
1300
1143
|
height: calc(100vh - 20.3125rem);
|
|
@@ -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';
|