@capillarytech/creatives-library 8.0.90 → 8.0.91
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/services/api.js +7 -1
- package/services/tests/api.test.js +5 -1
- package/v2Components/CapImageUpload/index.js +13 -10
- package/v2Components/CapVideoUpload/index.js +12 -9
- package/v2Components/CapWhatsappCTA/messages.js +4 -0
- package/v2Components/CapWhatsappCarouselButton/constant.js +56 -0
- package/v2Components/CapWhatsappCarouselButton/index.js +446 -0
- package/v2Components/CapWhatsappCarouselButton/index.scss +39 -0
- package/v2Components/CapWhatsappCarouselButton/tests/index.test.js +237 -0
- package/v2Components/TemplatePreview/_templatePreview.scss +9 -0
- package/v2Components/TemplatePreview/assets/images/empty_image_preview.svg +4 -0
- package/v2Components/TemplatePreview/assets/images/empty_video_preview.svg +4 -0
- package/v2Components/TemplatePreview/index.js +171 -105
- package/v2Components/TemplatePreview/tests/__snapshots__/index.test.js.snap +6 -6
- package/v2Containers/CreativesContainer/index.js +91 -4
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +1 -0
- package/v2Containers/Templates/_templates.scss +47 -0
- package/v2Containers/Templates/index.js +55 -5
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +177 -156
- package/v2Containers/Whatsapp/constants.js +87 -1
- package/v2Containers/Whatsapp/index.js +707 -189
- package/v2Containers/Whatsapp/index.scss +52 -1
- package/v2Containers/Whatsapp/messages.js +38 -2
- package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +30183 -90694
- package/v2Containers/Whatsapp/tests/__snapshots__/utils.test.js.snap +6 -0
- package/v2Containers/Whatsapp/tests/utils.test.js +80 -1
- package/v2Containers/Whatsapp/utils.js +34 -0
- package/v2Containers/mockdata.js +2 -0
|
@@ -110,7 +110,16 @@
|
|
|
110
110
|
width: 95%;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
#select-whatsapp-category {
|
|
114
|
+
padding-right: 5px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
#select-whatsapp-media {
|
|
118
|
+
padding-left: 5px;
|
|
119
|
+
}
|
|
120
|
+
|
|
113
121
|
#select-whatsapp-category,
|
|
122
|
+
#select-whatsapp-media,
|
|
114
123
|
#select-whatsapp-language {
|
|
115
124
|
width: 100%;
|
|
116
125
|
}
|
|
@@ -249,10 +258,52 @@
|
|
|
249
258
|
color: $CAP_G10;
|
|
250
259
|
}
|
|
251
260
|
|
|
261
|
+
.carousel-media-selection {
|
|
262
|
+
display: flex;
|
|
263
|
+
align-items: center;
|
|
264
|
+
.carousel-media-selection-heading {
|
|
265
|
+
margin-right: $CAP_SPACE_20;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.whatsapp-carousel-tab {
|
|
270
|
+
.ant-tabs-extra-content {
|
|
271
|
+
padding: 0;
|
|
272
|
+
line-height: normal;
|
|
273
|
+
.add-carousel-content-button {
|
|
274
|
+
padding: 9px 0px;
|
|
275
|
+
margin: 0;
|
|
276
|
+
}
|
|
277
|
+
.cap-divider-v2{
|
|
278
|
+
height: 1.5rem;
|
|
279
|
+
margin-bottom: 7px;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.whatsapp-carousel-card {
|
|
285
|
+
.ant-card-head {
|
|
286
|
+
border-bottom: none;
|
|
287
|
+
}
|
|
288
|
+
.ant-card-body {
|
|
289
|
+
padding-top: 0px;
|
|
290
|
+
}
|
|
291
|
+
.ant-card-head-wrapper {
|
|
292
|
+
.ant-card-extra {
|
|
293
|
+
.cap-button-v2 {
|
|
294
|
+
padding: 0px;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.whatsapp-carousel-message-heading {
|
|
301
|
+
margin-top: $CAP_SPACE_24;
|
|
302
|
+
}
|
|
252
303
|
.template-status-font{
|
|
253
304
|
font-weight: 500;
|
|
254
305
|
}
|
|
255
306
|
|
|
256
307
|
.template-status-margin{
|
|
257
308
|
margin: $CAP_SPACE_04 0 $CAP_SPACE_04;
|
|
258
|
-
}
|
|
309
|
+
}
|
|
@@ -110,9 +110,13 @@ export default defineMessages({
|
|
|
110
110
|
id: `${prefix}.templateLanguageEnglish`,
|
|
111
111
|
defaultMessage: 'English',
|
|
112
112
|
},
|
|
113
|
+
none: {
|
|
114
|
+
id: `${prefix}.none`,
|
|
115
|
+
defaultMessage: 'None',
|
|
116
|
+
},
|
|
113
117
|
mediaLabel: {
|
|
114
118
|
id: `${prefix}.mediaLabel`,
|
|
115
|
-
defaultMessage: 'Media',
|
|
119
|
+
defaultMessage: 'Media type',
|
|
116
120
|
},
|
|
117
121
|
mediaText: {
|
|
118
122
|
id: `${prefix}.mediaText`,
|
|
@@ -130,13 +134,17 @@ export default defineMessages({
|
|
|
130
134
|
id: `${prefix}.mediaDocument`,
|
|
131
135
|
defaultMessage: 'Document',
|
|
132
136
|
},
|
|
137
|
+
mediaCarousel: {
|
|
138
|
+
id: `${prefix}.mediaCarousel`,
|
|
139
|
+
defaultMessage: 'Carousel',
|
|
140
|
+
},
|
|
133
141
|
disabledFeatureTooltip: {
|
|
134
142
|
id: `${prefix}.disabledFeatureTooltip`,
|
|
135
143
|
defaultMessage: 'Not yet enabled. Coming soon!',
|
|
136
144
|
},
|
|
137
145
|
templateMessageLabel: {
|
|
138
146
|
id: `${prefix}.templateMessageLabel`,
|
|
139
|
-
defaultMessage: '
|
|
147
|
+
defaultMessage: 'Body text',
|
|
140
148
|
},
|
|
141
149
|
templateMessageTooltip: {
|
|
142
150
|
id: `${prefix}.templateMessageTooltip`,
|
|
@@ -729,6 +737,34 @@ export default defineMessages({
|
|
|
729
737
|
id: `${prefix}.checkExpiryTooltipDesc`,
|
|
730
738
|
defaultMessage: 'To check the configured expiry time that is same for all OTPs',
|
|
731
739
|
},
|
|
740
|
+
carouselMediaType: {
|
|
741
|
+
id: `${prefix}.carouselMediaType`,
|
|
742
|
+
defaultMessage: 'Carousel media type',
|
|
743
|
+
},
|
|
744
|
+
card: {
|
|
745
|
+
id: `${prefix}.card`,
|
|
746
|
+
defaultMessage: 'Card',
|
|
747
|
+
},
|
|
748
|
+
carouselCardBodyMessageLabel: {
|
|
749
|
+
id: `${prefix}.carouselCardBodyMessageLabel`,
|
|
750
|
+
defaultMessage: 'Card body text',
|
|
751
|
+
},
|
|
752
|
+
carouselCardBodyMessagePlaceholder: {
|
|
753
|
+
id: `${prefix}.carouselCardBodyMessagePlaceholder`,
|
|
754
|
+
defaultMessage: 'Enter card body text',
|
|
755
|
+
},
|
|
756
|
+
buttonType: {
|
|
757
|
+
id: `${prefix}.buttonType`,
|
|
758
|
+
defaultMessage: 'Button type',
|
|
759
|
+
},
|
|
760
|
+
emptyCardBodyeErrorMessage: {
|
|
761
|
+
id: `${prefix}.emptyCardBodyeErrorMessage`,
|
|
762
|
+
defaultMessage: 'Card body text cannot be empty',
|
|
763
|
+
},
|
|
764
|
+
carouselButtonInfo: {
|
|
765
|
+
id: `${prefix}.carouselButtonInfo`,
|
|
766
|
+
defaultMessage: 'Number of buttons and their types setup in the first card will be same for all the other cards in the carousel',
|
|
767
|
+
},
|
|
732
768
|
pending: {
|
|
733
769
|
id: `${prefix}.pending`,
|
|
734
770
|
defaultMessage: 'Pending',
|