@capillarytech/creatives-library 8.0.241 → 8.0.242-alpha.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/package.json +1 -1
- package/sagas/__tests__/assetPolling.test.js +607 -0
- package/sagas/assetPolling.js +156 -0
- package/services/api.js +16 -0
- package/services/tests/api.test.js +124 -0
- package/translations/en.json +1 -0
- package/utils/assetStatusConstants.js +12 -0
- package/utils/asyncAssetUpload.js +161 -0
- package/utils/tests/asyncAssetUpload.test.js +292 -0
- package/utils/transformerUtils.js +42 -0
- package/v2Components/CapImageUpload/constants.js +2 -0
- package/v2Components/CapImageUpload/index.js +54 -14
- package/v2Components/CapImageUpload/index.scss +4 -1
- package/v2Components/CapImageUpload/messages.js +4 -0
- package/v2Components/CapImageUrlUpload/constants.js +19 -0
- package/v2Components/CapImageUrlUpload/index.js +455 -0
- package/v2Components/CapImageUrlUpload/index.scss +35 -0
- package/v2Components/CapImageUrlUpload/messages.js +47 -0
- package/v2Containers/App/constants.js +5 -0
- package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +1 -0
- package/v2Containers/CreativesContainer/SlideBoxContent.js +57 -2
- package/v2Containers/CreativesContainer/SlideBoxHeader.js +1 -0
- package/v2Containers/CreativesContainer/constants.js +2 -0
- package/v2Containers/CreativesContainer/index.js +152 -0
- package/v2Containers/CreativesContainer/messages.js +4 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +3 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +2 -0
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +25 -0
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +18 -0
- package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +46 -0
- package/v2Containers/SmsTrai/Create/tests/__snapshots__/index.test.js.snap +4 -0
- package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +8 -0
- package/v2Containers/Templates/ChannelTypeIllustration.js +13 -1
- package/v2Containers/Templates/_templates.scss +203 -0
- package/v2Containers/Templates/actions.js +2 -1
- package/v2Containers/Templates/constants.js +1 -0
- package/v2Containers/Templates/index.js +273 -30
- package/v2Containers/Templates/messages.js +24 -0
- package/v2Containers/Templates/reducer.js +2 -0
- package/v2Containers/Templates/tests/index.test.js +10 -0
- package/v2Containers/TemplatesV2/index.js +3 -2
- package/v2Containers/TemplatesV2/messages.js +4 -0
- package/v2Containers/WebPush/Create/components/ButtonForm.js +175 -0
- package/v2Containers/WebPush/Create/components/ButtonItem.js +101 -0
- package/v2Containers/WebPush/Create/components/ButtonList.js +144 -0
- package/v2Containers/WebPush/Create/components/_buttons.scss +246 -0
- package/v2Containers/WebPush/Create/components/tests/ButtonForm.test.js +554 -0
- package/v2Containers/WebPush/Create/components/tests/ButtonItem.test.js +607 -0
- package/v2Containers/WebPush/Create/components/tests/ButtonList.test.js +633 -0
- package/v2Containers/WebPush/Create/components/tests/__snapshots__/ButtonForm.test.js.snap +666 -0
- package/v2Containers/WebPush/Create/components/tests/__snapshots__/ButtonItem.test.js.snap +74 -0
- package/v2Containers/WebPush/Create/components/tests/__snapshots__/ButtonList.test.js.snap +80 -0
- package/v2Containers/WebPush/Create/index.js +1755 -0
- package/v2Containers/WebPush/Create/index.scss +123 -0
- package/v2Containers/WebPush/Create/messages.js +199 -0
- package/v2Containers/WebPush/Create/preview/DevicePreviewContent.js +241 -0
- package/v2Containers/WebPush/Create/preview/NotificationContainer.js +290 -0
- package/v2Containers/WebPush/Create/preview/PreviewContent.js +81 -0
- package/v2Containers/WebPush/Create/preview/PreviewControls.js +240 -0
- package/v2Containers/WebPush/Create/preview/PreviewDisclaimer.js +23 -0
- package/v2Containers/WebPush/Create/preview/WebPushPreview.js +144 -0
- package/v2Containers/WebPush/Create/preview/assets/Light.svg +53 -0
- package/v2Containers/WebPush/Create/preview/assets/Top.svg +5 -0
- package/v2Containers/WebPush/Create/preview/assets/chrome-icon.png +0 -0
- package/v2Containers/WebPush/Create/preview/assets/edge-icon.png +0 -0
- package/v2Containers/WebPush/Create/preview/assets/firefox-icon.svg +106 -0
- package/v2Containers/WebPush/Create/preview/assets/iOS.svg +26 -0
- package/v2Containers/WebPush/Create/preview/assets/opera-icon.svg +18 -0
- package/v2Containers/WebPush/Create/preview/assets/safari-icon.svg +29 -0
- package/v2Containers/WebPush/Create/preview/components/AndroidMobileChromeHeader.js +44 -0
- package/v2Containers/WebPush/Create/preview/components/AndroidMobileExpanded.js +110 -0
- package/v2Containers/WebPush/Create/preview/components/IOSHeader.js +45 -0
- package/v2Containers/WebPush/Create/preview/components/NotificationExpandedContent.js +72 -0
- package/v2Containers/WebPush/Create/preview/components/NotificationHeader.js +55 -0
- package/v2Containers/WebPush/Create/preview/components/WindowsChromeExpanded.js +70 -0
- package/v2Containers/WebPush/Create/preview/components/tests/AndroidMobileExpanded.test.js +512 -0
- package/v2Containers/WebPush/Create/preview/components/tests/__snapshots__/AndroidMobileExpanded.test.js.snap +77 -0
- package/v2Containers/WebPush/Create/preview/config/notificationMappings.js +527 -0
- package/v2Containers/WebPush/Create/preview/constants.js +162 -0
- package/v2Containers/WebPush/Create/preview/notification-container.scss +104 -0
- package/v2Containers/WebPush/Create/preview/preview.scss +409 -0
- package/v2Containers/WebPush/Create/preview/styles/_android-mobile-chrome.scss +300 -0
- package/v2Containers/WebPush/Create/preview/styles/_android-mobile-edge.scss +12 -0
- package/v2Containers/WebPush/Create/preview/styles/_android-mobile-firefox.scss +12 -0
- package/v2Containers/WebPush/Create/preview/styles/_android-mobile-opera.scss +12 -0
- package/v2Containers/WebPush/Create/preview/styles/_android-tablet-chrome.scss +303 -0
- package/v2Containers/WebPush/Create/preview/styles/_android-tablet-edge.scss +11 -0
- package/v2Containers/WebPush/Create/preview/styles/_android-tablet-firefox.scss +11 -0
- package/v2Containers/WebPush/Create/preview/styles/_android-tablet-opera.scss +11 -0
- package/v2Containers/WebPush/Create/preview/styles/_base.scss +188 -0
- package/v2Containers/WebPush/Create/preview/styles/_ios.scss +106 -0
- package/v2Containers/WebPush/Create/preview/styles/_ipados.scss +107 -0
- package/v2Containers/WebPush/Create/preview/styles/_macos-chrome.scss +75 -0
- package/v2Containers/WebPush/Create/preview/styles/_windows-chrome.scss +174 -0
- package/v2Containers/WebPush/Create/preview/tests/DevicePreviewContent.test.js +909 -0
- package/v2Containers/WebPush/Create/preview/tests/NotificationContainer.test.js +1077 -0
- package/v2Containers/WebPush/Create/preview/tests/PreviewControls.test.js +723 -0
- package/v2Containers/WebPush/Create/preview/tests/WebPushPreview.test.js +943 -0
- package/v2Containers/WebPush/Create/preview/tests/__snapshots__/DevicePreviewContent.test.js.snap +128 -0
- package/v2Containers/WebPush/Create/preview/tests/__snapshots__/NotificationContainer.test.js.snap +121 -0
- package/v2Containers/WebPush/Create/preview/tests/__snapshots__/PreviewControls.test.js.snap +144 -0
- package/v2Containers/WebPush/Create/preview/tests/__snapshots__/WebPushPreview.test.js.snap +127 -0
- package/v2Containers/WebPush/Create/utils/urlValidation.js +116 -0
- package/v2Containers/WebPush/Create/utils/urlValidation.test.js +449 -0
- package/v2Containers/WebPush/actions.js +60 -0
- package/v2Containers/WebPush/constants.js +108 -0
- package/v2Containers/WebPush/index.js +2 -0
- package/v2Containers/WebPush/reducer.js +104 -0
- package/v2Containers/WebPush/sagas.js +119 -0
- package/v2Containers/WebPush/selectors.js +65 -0
- package/v2Containers/WebPush/tests/reducer.test.js +863 -0
- package/v2Containers/WebPush/tests/sagas.test.js +566 -0
- package/v2Containers/WebPush/tests/selectors.test.js +960 -0
- package/v2Containers/Whatsapp/constants.js +9 -0
- package/v2Containers/Whatsapp/reducer.js +34 -5
- package/v2Containers/Whatsapp/sagas.js +61 -10
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +132 -0
- package/v2Containers/Whatsapp/tests/reducer.test.js +188 -0
- package/v2Containers/Whatsapp/tests/saga.test.js +420 -7
|
@@ -1896,6 +1896,7 @@ new message content.",
|
|
|
1896
1896
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
1897
1897
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
1898
1898
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
1899
|
+
"creatives.containersV2.WebPush.addLabels": "Add labels",
|
|
1899
1900
|
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
1900
1901
|
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
1901
1902
|
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|
|
@@ -6366,6 +6367,7 @@ new message content.",
|
|
|
6366
6367
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
6367
6368
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
6368
6369
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
6370
|
+
"creatives.containersV2.WebPush.addLabels": "Add labels",
|
|
6369
6371
|
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
6370
6372
|
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
6371
6373
|
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|
|
@@ -8950,6 +8952,7 @@ new message content.",
|
|
|
8950
8952
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
8951
8953
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
8952
8954
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
8955
|
+
"creatives.containersV2.WebPush.addLabels": "Add labels",
|
|
8953
8956
|
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
8954
8957
|
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
8955
8958
|
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|
|
@@ -13254,6 +13257,7 @@ new message content.",
|
|
|
13254
13257
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
13255
13258
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
13256
13259
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
13260
|
+
"creatives.containersV2.WebPush.addLabels": "Add labels",
|
|
13257
13261
|
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
13258
13262
|
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
13259
13263
|
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|
|
@@ -15810,6 +15814,7 @@ new message content.",
|
|
|
15810
15814
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
15811
15815
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
15812
15816
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
15817
|
+
"creatives.containersV2.WebPush.addLabels": "Add labels",
|
|
15813
15818
|
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
15814
15819
|
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
15815
15820
|
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|
|
@@ -20114,6 +20119,7 @@ new message content.",
|
|
|
20114
20119
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
20115
20120
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
20116
20121
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
20122
|
+
"creatives.containersV2.WebPush.addLabels": "Add labels",
|
|
20117
20123
|
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
20118
20124
|
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
20119
20125
|
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|
|
@@ -22670,6 +22676,7 @@ new message content.",
|
|
|
22670
22676
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
22671
22677
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
22672
22678
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
22679
|
+
"creatives.containersV2.WebPush.addLabels": "Add labels",
|
|
22673
22680
|
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
22674
22681
|
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
22675
22682
|
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|
|
@@ -27295,6 +27302,7 @@ new message content.",
|
|
|
27295
27302
|
"creatives.containersV2.WeChat.templateName": "Template Name",
|
|
27296
27303
|
"creatives.containersV2.WeChat.wechatCreateSuccess": "WeChat template mapped successfully",
|
|
27297
27304
|
"creatives.containersV2.WeChat.wechatEditSuccess": "WeChat template edited successfully",
|
|
27305
|
+
"creatives.containersV2.WebPush.addLabels": "Add labels",
|
|
27298
27306
|
"creatives.containersV2.Whatsapp.IncorrectCategoryError": "INCORRECT CATEGORY: Message content different from expected content in the category selected. Refer {here} for expected content in each category.",
|
|
27299
27307
|
"creatives.containersV2.Whatsapp.accountUpdate": "Account update",
|
|
27300
27308
|
"creatives.containersV2.Whatsapp.accountUpdateTooltip": "Let customers know about updates or changes to their accounts.",
|
|
@@ -14,7 +14,7 @@ import inAppIllustration from '@capillarytech/cap-ui-library/assets/images/featu
|
|
|
14
14
|
import messages from './messages';
|
|
15
15
|
import { FormattedMessage } from 'react-intl';
|
|
16
16
|
import { CapIllustration } from "@capillarytech/cap-ui-library";
|
|
17
|
-
import { MOBILE_PUSH, SMS, EMAIL, LINE, VIBER, FACEBOOK, WHATSAPP, RCS, ZALO, INAPP } from '../CreativesContainer/constants';
|
|
17
|
+
import { MOBILE_PUSH, SMS, EMAIL, LINE, VIBER, FACEBOOK, WHATSAPP, RCS, ZALO, INAPP, WEBPUSH } from '../CreativesContainer/constants';
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
// Configuration object for channel types
|
|
@@ -133,6 +133,18 @@ function ChannelTypeIllustration(props) {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
if (type === WEBPUSH) {
|
|
137
|
+
return {
|
|
138
|
+
buttonLabel: <FormattedMessage {...messages.newWebPushTemplate} values={{ template: templateText }} />,
|
|
139
|
+
onClick: createTemplate,
|
|
140
|
+
illustrationImage: pushIllustration,
|
|
141
|
+
title: <FormattedMessage {...messages.webPushTitleIllustration} values={{ template: templateText }} />,
|
|
142
|
+
description: <FormattedMessage {...messages.webPushDescIllustration} />,
|
|
143
|
+
descriptionPosition: 'bottom',
|
|
144
|
+
descriptionClassName: 'illustration-desc',
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
136
148
|
// Handle standard channels using configuration
|
|
137
149
|
const config = CHANNEL_CONFIG[type];
|
|
138
150
|
if (!config) {
|
|
@@ -133,17 +133,20 @@
|
|
|
133
133
|
.ant-card-meta-description{
|
|
134
134
|
display: -webkit-box;
|
|
135
135
|
-webkit-line-clamp: 13;
|
|
136
|
+
line-clamp: 13;
|
|
136
137
|
-webkit-box-orient: vertical;
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
140
|
.truncate-text-with-button{
|
|
140
141
|
.ant-card-meta-description{
|
|
141
142
|
-webkit-line-clamp: 13;
|
|
143
|
+
line-clamp: 13;
|
|
142
144
|
}
|
|
143
145
|
}
|
|
144
146
|
.truncate-text-with-image{
|
|
145
147
|
.ant-card-meta-description{
|
|
146
148
|
-webkit-line-clamp: 3;
|
|
149
|
+
line-clamp: 3;
|
|
147
150
|
}
|
|
148
151
|
}
|
|
149
152
|
|
|
@@ -315,6 +318,73 @@
|
|
|
315
318
|
}
|
|
316
319
|
}
|
|
317
320
|
|
|
321
|
+
.WEBPUSH {
|
|
322
|
+
.cap-custom-card {
|
|
323
|
+
.ant-card-body {
|
|
324
|
+
height: 19rem;
|
|
325
|
+
padding: $CAP_SPACE_16;
|
|
326
|
+
overflow: hidden;
|
|
327
|
+
|
|
328
|
+
.ant-card-meta {
|
|
329
|
+
height: 100%;
|
|
330
|
+
|
|
331
|
+
.ant-card-meta-description {
|
|
332
|
+
height: 100%;
|
|
333
|
+
display: flex;
|
|
334
|
+
flex-direction: column;
|
|
335
|
+
|
|
336
|
+
.sms-template-content.webpush-template-content {
|
|
337
|
+
height: 100%;
|
|
338
|
+
overflow: hidden;
|
|
339
|
+
|
|
340
|
+
.webpush-template-card {
|
|
341
|
+
height: 100%;
|
|
342
|
+
overflow: hidden;
|
|
343
|
+
|
|
344
|
+
.webpush-template-meta {
|
|
345
|
+
flex-shrink: 0;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.webpush-template-text {
|
|
349
|
+
flex: 1;
|
|
350
|
+
min-height: 0;
|
|
351
|
+
overflow: hidden;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.webpush-media-image {
|
|
355
|
+
max-height: 7.142rem;
|
|
356
|
+
flex-shrink: 0;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.webpush-template-cta-section {
|
|
360
|
+
flex-shrink: 0;
|
|
361
|
+
margin-top: $CAP_SPACE_08;
|
|
362
|
+
padding-top: $CAP_SPACE_08;
|
|
363
|
+
border-top: 1px solid $CAP_G07;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.cap-custom-card.has-hover-option:hover {
|
|
373
|
+
.sms-template-content.webpush-template-content {
|
|
374
|
+
opacity: 0.2;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
&.no-image .ant-card-meta {
|
|
379
|
+
background: $CAP_WHITE;
|
|
380
|
+
padding: $CAP_SPACE_16;
|
|
381
|
+
|
|
382
|
+
.ant-card-meta-description {
|
|
383
|
+
height: 100%;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
318
388
|
.create-new-link{
|
|
319
389
|
.ant-anchor-link {
|
|
320
390
|
display: flex;
|
|
@@ -368,6 +438,134 @@
|
|
|
368
438
|
width: 100%;
|
|
369
439
|
}
|
|
370
440
|
|
|
441
|
+
.sms-template-content.webpush-template-content {
|
|
442
|
+
padding: 0;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.webpush-template-card {
|
|
446
|
+
display: flex;
|
|
447
|
+
flex-direction: column;
|
|
448
|
+
|
|
449
|
+
.webpush-template-meta {
|
|
450
|
+
display: flex;
|
|
451
|
+
align-items: flex-start;
|
|
452
|
+
gap: $CAP_SPACE_08;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.webpush-brand-icon,
|
|
456
|
+
.webpush-brand-icon-placeholder {
|
|
457
|
+
width: $CAP_SPACE_20;
|
|
458
|
+
height: $CAP_SPACE_20;
|
|
459
|
+
border-radius: 50%;
|
|
460
|
+
flex-shrink: 0;
|
|
461
|
+
object-fit: cover;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.webpush-brand-icon-placeholder {
|
|
465
|
+
background-color: $CAP_G07;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.webpush-template-text {
|
|
469
|
+
display: flex;
|
|
470
|
+
flex-direction: column;
|
|
471
|
+
gap: $CAP_SPACE_04;
|
|
472
|
+
width: 100%;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.webpush-template-header {
|
|
476
|
+
display: flex;
|
|
477
|
+
align-items: flex-start;
|
|
478
|
+
justify-content: space-between;
|
|
479
|
+
gap: $CAP_SPACE_08;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.webpush-template-title {
|
|
483
|
+
width: 1px; // Required for text truncation with flex: 1
|
|
484
|
+
font-weight: 600;
|
|
485
|
+
color: $CAP_G02;
|
|
486
|
+
font-size: $FONT_SIZE_S;
|
|
487
|
+
line-height: $CAP_SPACE_16;
|
|
488
|
+
word-break: break-word;
|
|
489
|
+
flex: 1;
|
|
490
|
+
overflow: hidden;
|
|
491
|
+
text-overflow: ellipsis;
|
|
492
|
+
white-space: nowrap;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.webpush-template-time {
|
|
496
|
+
color: $CAP_G04;
|
|
497
|
+
font-size: $FONT_SIZE_VS;
|
|
498
|
+
line-height: $CAP_SPACE_16;
|
|
499
|
+
white-space: nowrap;
|
|
500
|
+
flex-shrink: 0;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.webpush-template-message {
|
|
504
|
+
color: $CAP_G04;
|
|
505
|
+
font-size: $FONT_SIZE_S;
|
|
506
|
+
line-height: $CAP_SPACE_16;
|
|
507
|
+
word-break: break-word;
|
|
508
|
+
display: -webkit-box;
|
|
509
|
+
-webkit-line-clamp: 3;
|
|
510
|
+
line-clamp: 3;
|
|
511
|
+
-webkit-box-orient: vertical;
|
|
512
|
+
overflow: hidden;
|
|
513
|
+
text-overflow: ellipsis;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.webpush-media-image {
|
|
517
|
+
width: 100%;
|
|
518
|
+
height: auto;
|
|
519
|
+
max-height: 8.571rem;
|
|
520
|
+
border-radius: $CAP_SPACE_08;
|
|
521
|
+
object-fit: cover;
|
|
522
|
+
margin-top: $CAP_SPACE_04;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.webpush-template-cta-section {
|
|
526
|
+
display: flex;
|
|
527
|
+
margin-top: $CAP_SPACE_08;
|
|
528
|
+
padding-top: $CAP_SPACE_08;
|
|
529
|
+
width: 100%;
|
|
530
|
+
|
|
531
|
+
&.single-cta {
|
|
532
|
+
justify-content: center;
|
|
533
|
+
|
|
534
|
+
.webpush-template-cta-item {
|
|
535
|
+
flex: 0 1 auto;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.webpush-template-cta-item {
|
|
540
|
+
flex: 1;
|
|
541
|
+
padding: 0 $CAP_SPACE_08;
|
|
542
|
+
display: flex;
|
|
543
|
+
align-items: center;
|
|
544
|
+
justify-content: center;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
.webpush-template-cta-item + .webpush-template-cta-item {
|
|
548
|
+
border-left: 1px solid $CAP_G07;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.webpush-template-cta-text {
|
|
552
|
+
font-weight: 600;
|
|
553
|
+
font-size: $FONT_SIZE_VS;
|
|
554
|
+
line-height: 1rem;
|
|
555
|
+
color: $CAP_G02;
|
|
556
|
+
text-align: center;
|
|
557
|
+
white-space: nowrap;
|
|
558
|
+
overflow: hidden;
|
|
559
|
+
text-overflow: ellipsis;
|
|
560
|
+
width: 100%;
|
|
561
|
+
user-select: none;
|
|
562
|
+
-webkit-user-select: none;
|
|
563
|
+
-moz-user-select: none;
|
|
564
|
+
-ms-user-select: none;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
|
|
371
569
|
.footer-container{
|
|
372
570
|
padding: 8px 0 8px 16px;
|
|
373
571
|
}
|
|
@@ -572,6 +770,7 @@
|
|
|
572
770
|
text-overflow: ellipsis;
|
|
573
771
|
display: -webkit-box;
|
|
574
772
|
-webkit-line-clamp: 3;
|
|
773
|
+
line-clamp: 3;
|
|
575
774
|
-webkit-box-orient: vertical;
|
|
576
775
|
}
|
|
577
776
|
.title{
|
|
@@ -634,6 +833,7 @@
|
|
|
634
833
|
text-overflow: ellipsis;
|
|
635
834
|
display: -webkit-box;
|
|
636
835
|
-webkit-line-clamp: 2;
|
|
836
|
+
line-clamp: 2;
|
|
637
837
|
-webkit-box-orient: vertical;
|
|
638
838
|
}
|
|
639
839
|
.actions{
|
|
@@ -711,6 +911,7 @@
|
|
|
711
911
|
overflow: hidden;
|
|
712
912
|
&.desc{
|
|
713
913
|
-webkit-line-clamp: 5;
|
|
914
|
+
line-clamp: 5;
|
|
714
915
|
}
|
|
715
916
|
}
|
|
716
917
|
|
|
@@ -808,6 +1009,7 @@
|
|
|
808
1009
|
.whatsapp-message-with-media {
|
|
809
1010
|
display: -webkit-box;
|
|
810
1011
|
-webkit-line-clamp: 3;
|
|
1012
|
+
line-clamp: 3;
|
|
811
1013
|
-webkit-box-orient: vertical;
|
|
812
1014
|
overflow: hidden;
|
|
813
1015
|
}
|
|
@@ -815,6 +1017,7 @@
|
|
|
815
1017
|
.whatsapp-message-without-media {
|
|
816
1018
|
display: -webkit-box;
|
|
817
1019
|
-webkit-line-clamp: 10;
|
|
1020
|
+
line-clamp: 10;
|
|
818
1021
|
-webkit-box-orient: vertical;
|
|
819
1022
|
overflow: hidden;
|
|
820
1023
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as types from './constants';
|
|
8
8
|
import {
|
|
9
|
-
LINE, WHATSAPP, RCS, ZALO,
|
|
9
|
+
LINE, WHATSAPP, RCS, ZALO, WEBPUSH,
|
|
10
10
|
} from '../CreativesContainer/constants';
|
|
11
11
|
|
|
12
12
|
export function getAllTemplates(channel, queryParams, intlCopyOf = '') {
|
|
@@ -68,6 +68,7 @@ export function setChannelAccount(channel, account) {
|
|
|
68
68
|
[LINE]: types.SET_LINE_ACCOUNT,
|
|
69
69
|
[WHATSAPP]: types.SET_WHATSAPP_ACCOUNT,
|
|
70
70
|
[ZALO]: types.SET_ZALO_ACCOUNT,
|
|
71
|
+
[WEBPUSH]: types.SET_WEBPUSH_ACCOUNT,
|
|
71
72
|
[RCS]: types.SET_RCS_ACCOUNT,
|
|
72
73
|
};
|
|
73
74
|
|
|
@@ -51,6 +51,7 @@ export const SET_FACEBOOK_ACCOUNT = "app/v2Containers/Templates/SET_FACEBOOK_ACC
|
|
|
51
51
|
export const SET_WHATSAPP_ACCOUNT = "app/v2Containers/Templates/SET_WHATSAPP_ACCOUNT";
|
|
52
52
|
export const SET_RCS_ACCOUNT = "app/v2Containers/Templates/SET_RCS_ACCOUNT";
|
|
53
53
|
export const SET_ZALO_ACCOUNT = "app/v2Containers/Templates/SET_ZALO_ACCOUNT";
|
|
54
|
+
export const SET_WEBPUSH_ACCOUNT = "app/v2Containers/Templates/SET_WEBPUSH_ACCOUNT";
|
|
54
55
|
|
|
55
56
|
export const GET_DEAFULT_BEE_TEMPLATES_REQUEST = 'app/v2Containers/Templates/GET_DEAFULT_BEE_TEMPLATES_REQUEST';
|
|
56
57
|
export const GET_DEAFULT_BEE_TEMPLATES_SUCCESS = 'app/v2Containers/Templates/GET_DEAFULT_BEE_TEMPLATES_SUCCESS';
|