@capillarytech/creatives-library 6.8.7 → 6.8.8

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.
Files changed (30) hide show
  1. package/components/TemplatePreview/_templatePreview.scss +6 -0
  2. package/components/TemplatePreview/index.js +35 -28
  3. package/package.json +1 -1
  4. package/v2Components/Carousel/index.js +120 -0
  5. package/v2Components/Carousel/style.scss +40 -0
  6. package/v2Components/TemplatePreview/_templatePreview.scss +381 -380
  7. package/v2Components/TemplatePreview/index.js +36 -29
  8. package/v2Containers/CreativesContainer/SlideBoxContent.js +7 -1
  9. package/v2Containers/Line/Container/Image/index.js +21 -19
  10. package/v2Containers/Line/Container/ImageCarousel/Content.js +554 -0
  11. package/v2Containers/Line/Container/ImageCarousel/constants.js +10 -0
  12. package/v2Containers/Line/Container/ImageCarousel/index.js +526 -0
  13. package/v2Containers/Line/Container/ImageCarousel/messages.js +178 -0
  14. package/v2Containers/Line/Container/ImageCarousel/style.js +61 -0
  15. package/v2Containers/Line/Container/ImageMap/constants.js +2 -1
  16. package/v2Containers/Line/Container/ImageMap/index.js +31 -6
  17. package/v2Containers/Line/Container/ImageMap/messages.js +12 -0
  18. package/v2Containers/Line/Container/Wrapper/index.js +5 -1
  19. package/v2Containers/Line/Container/Wrapper/messages.js +4 -0
  20. package/v2Containers/Line/Container/Wrapper/utils.js +15 -16
  21. package/v2Containers/Line/Container/_lineCreate.scss +2 -2
  22. package/v2Containers/Line/Container/actions.js +4 -2
  23. package/v2Containers/Line/Container/constants.js +3 -0
  24. package/v2Containers/Line/Container/index.js +49 -11
  25. package/v2Containers/Line/Container/reducer.js +2 -2
  26. package/v2Containers/Line/Container/sagas.js +2 -2
  27. package/v2Containers/Line/Container/style.js +2 -1
  28. package/v2Containers/Templates/_templates.scss +414 -405
  29. package/v2Containers/Templates/index.js +29 -2
  30. package/v2Containers/Templates/messages.js +4 -0
@@ -1,381 +1,382 @@
1
- @import '~@capillarytech/cap-ui-library/styles/_variables.scss';
2
-
3
- .shell-v2 {
4
- position: relative;
5
- -webkit-transform: translate(-50%);
6
- transform: translate(-50%);
7
- left: 50%;
8
- padding: 0 10px;
9
- width: 450px;
10
-
11
- .preview-image {
12
- width: 51%;
13
- &.sms {
14
- width: 45%;
15
- }
16
- }
17
-
18
- .msgContainer {
19
- position: absolute;
20
- top: 20%;
21
- left: 23%;
22
- width: 42%;
23
- height: 336px;
24
- display: -webkit-box;
25
- display: -ms-flexbox;
26
- display: flex;
27
-
28
- .sms-icon{
29
- top: 0;
30
- left: 2px;
31
- width: 25px;
32
- position: absolute;
33
- }
34
- &.sms{
35
- height: 290px;
36
- width: 40%;
37
- .sms-icon{
38
- width: 20px;
39
- left: 14px;
40
- }
41
- }
42
- &.wechat{
43
- width: 52%;
44
- }
45
- &.line-preview {
46
- margin-left: $CAP_SPACE_16;
47
-
48
- .message-pop {
49
- width: 80%;
50
- left: 36px;
51
- margin-top: -6px;
52
- }
53
- }
54
-
55
- .message-pop{
56
- .unicode-disabled{
57
- font-size: 16px;
58
- }
59
- &.sms {
60
- max-height: 100%;
61
- position: absolute;
62
- // width: initial;
63
- overflow: auto;
64
- top: 0;
65
- left: 17%;
66
- white-space: pre-wrap;
67
- word-break: break-word;
68
- line-height: 14px;
69
- padding: 0 8px 8px 8px;
70
- font-size: 10px;
71
- width: 100%;
72
- font-family: 'open-sans';
73
- .message-pop-item{
74
- padding: 4px;
75
- background: #3F51B5;
76
- color: #FFFFFF;
77
- margin-top: 8px;
78
- border-radius: 4px;
79
- min-height: 26px;
80
- &:first-child{
81
- margin-top: 0;
82
- }
83
- }
84
- }
85
- &:not(.sms){
86
- padding: 4px;
87
- background: #3F51B5;
88
- position: absolute;
89
- // width: initial;
90
- overflow: auto;
91
- top: 0;
92
- left: 17%;
93
- white-space: pre-wrap;
94
- word-break: break-word;
95
- border-radius: 4px;
96
- max-height: 100%;
97
- color: #FFFFFF;
98
- width: 70%;
99
- min-height: 26px;
100
- line-height: 14px;
101
- padding: 8px;
102
- font-size: 10px;
103
- font-family: 'open-sans';
104
- }
105
- }
106
- }
107
- .android-push-message-Container, .iphone-push-message-Container{
108
- position: absolute;
109
- top: 11%;
110
- left: 28.8%;
111
- width: 42%;
112
- height: 336px;
113
- overflow: auto;
114
- display: -webkit-box;
115
- display: -ms-flexbox;
116
- display: flex;
117
- .message-pop{
118
- position: absolute;
119
- // width: initial;
120
- overflow: auto;
121
- word-wrap: break-word;
122
- white-space: pre-wrap;
123
- border-top-left-radius: 4px;
124
- border-top-right-radius: 4px;
125
- max-height: 100%;
126
- width: 100%;
127
- min-height: 26px;
128
- line-height: 15px;
129
- font-size: 10px;
130
- .body-image{
131
- img{
132
- max-width: 100%;
133
- max-height: 90px;
134
- margin: auto;
135
- display: block;
136
- }
137
- }
138
- }
139
- }
140
- .android-push-message-Container{
141
- .title, .body-text, .body-image, .app-name{
142
- background-color: #FFFFFF;
143
- color: #333333;
144
- }
145
- .app-name{
146
- color: #5D5D5D;
147
- font-weight: 600;
148
- padding: 8px 8px 4px 8px;
149
- }
150
- .title, .body-image{
151
- padding: 0 8px 0 8px;
152
-
153
- }
154
- .body-text{
155
- padding: 0 8px 4px 8px;
156
- color: #5a5959;
157
- }
158
- .title{
159
- overflow: hidden;
160
- white-space: nowrap;
161
- text-overflow: ellipsis;
162
- }
163
- .actions{
164
- background-color: #EEEEEE;
165
- height: 32px;
166
- padding: 4px;
167
- .action{
168
- line-height: 24px;
169
- font-size: 10px;
170
- font-weight: 600;
171
- color: #1970DA;
172
- height: 12px;
173
- margin-left: 8px;
174
- }
175
- }
176
- }
177
- .iphone-push-message-Container{
178
- top: 8%;
179
- .message-pop{
180
- border-radius: 4px;
181
- word-wrap: break-word;
182
- }
183
- .title, .body-text, .body-image, .app-name{
184
- background-color: #FFFFFF;
185
- color: #333333;
186
- }
187
- .body-image{
188
- padding-top: 8px;
189
- }
190
- .title{
191
- overflow: hidden;
192
- white-space: nowrap;
193
- text-overflow: ellipsis;
194
- }
195
- .app-name{
196
- padding: 8px;
197
- color: #5D5D5D;
198
- border-bottom: solid 1px #D6D6D6;
199
- .material-icons{
200
- font-size: 12px;
201
- float: right;
202
- }
203
- }
204
- .title, .body-text{
205
- padding: 4px;
206
- }
207
- .title{
208
- overflow: hidden;
209
- white-space: nowrap;
210
- text-overflow: ellipsis;
211
- }
212
- .body-text{
213
- border-bottom-left-radius: 4px;
214
- border-bottom-right-radius: 4px;
215
- }
216
- .actions{
217
- background-color: #FFFFFF;
218
- opacity: 0.8;
219
- height: 32px;
220
- line-height: 26px;
221
- margin-top: 4px;
222
- border-radius: 6px;
223
- text-align: center;
224
- padding: 4px;
225
- .action{
226
- font-size: 12px;
227
- font-weight: 600;
228
- color: #000000;
229
- text-align: center;
230
- margin-left: 8px;
231
- }
232
- }
233
- }
234
- }
235
-
236
- .align-center {
237
- text-align: center;
238
- }
239
-
240
- .align-left {
241
- text-align: left;
242
- }
243
-
244
- .preview-container{
245
- .preview-info {
246
- // font-family: 'proxima-nova';
247
- font-weight: 600;
248
- font-size: 16px;
249
- text-align: center;
250
- }
251
- }
252
-
253
- .preview-container.embedded-preview{
254
- .preview-image {
255
- width: 38% !important;
256
- }
257
- .message-pop{
258
- left: 21% !important;
259
- width: 67% !important;
260
- }
261
- .sms-icon{
262
- left: 12% !important;
263
- }
264
- }
265
-
266
-
267
-
268
- #slidebox-container {
269
- left: 60vw;
270
- width: 40vw;
271
-
272
- .shell {
273
- position: relative;
274
- -webkit-transform: translate(-50%);
275
- transform: translate(-50%);
276
- left: 50%;
277
- padding: 0 10px;
278
- width: initial;
279
-
280
- .preview-image {
281
- &.sms{
282
- width: 45%;
283
- }
284
- }
285
-
286
-
287
- .msgContainer {
288
- position: absolute;
289
- top: 14%;
290
- left: 29%;
291
- width: 42%;
292
- height: 275px;
293
- display: -webkit-box;
294
- display: -ms-flexbox;
295
- display: flex;
296
-
297
- .sms-icon{
298
- top: 6%;
299
- left: 2%;
300
- width: 12%;
301
- position: absolute;
302
- }
303
-
304
- &.sms{
305
- height: 290px;
306
- width: 40%;
307
- top: 16%;
308
- .sms-icon{
309
- left: 7%;
310
- }
311
- }
312
- .message-pop{
313
- &.sms {
314
- max-height: 100%;
315
- position: absolute;
316
- // width: initial;
317
- overflow: auto;
318
- top: 6%;
319
- left: 17%;
320
- width: 80%;
321
- white-space: pre-wrap;
322
- word-break: break-word;
323
- line-height: 14px;
324
- padding: 0 8px 8px 8px;
325
- font-size: 10px;
326
- font-family: 'open-sans';
327
- .message-pop-item{
328
- padding: 8px;
329
- background: #3F51B5;
330
- color: #FFFFFF;
331
- margin-top: 8px;
332
- border-radius: 4px;
333
- min-height: 26px;
334
- &:first-child{
335
- margin-top: 0;
336
- }
337
- }
338
- }
339
- &:not(.sms){
340
- padding: 8px 8px;
341
- background: #3F51B5;
342
- position: absolute;
343
- width: 65%;
344
- top: 15%;
345
- left: 19%;
346
- word-break: break-all;
347
- border-radius: 6px;
348
- max-height: 100%;
349
- overflow: auto;
350
- color: #FFFFFF;
351
- line-height: 14px;
352
- font-family: "open-sans";
353
- font-size: 10px;
354
- }
355
- }
356
- }
357
- }
358
- }
359
- .app-icon{
360
- width: 10px;
361
- height: 10px;
362
- opacity: 1;
363
- display: inline-block;
364
- background-color: #333333;
365
- margin-right: 4px;
366
- }
367
-
368
- .character-count-col{
369
- margin-top: 8px;
370
- text-align: center;
371
- width: 100%;
372
- .optout-tag-heading{
373
- font-size: 12px;
374
- }
375
- }
376
-
377
- .test-and-preview-container{
378
- display: flex;
379
- margin-top: -12px;
380
- margin-bottom: 12px;
1
+ @import '~@capillarytech/cap-ui-library/styles/_variables.scss';
2
+
3
+ .shell-v2 {
4
+ position: relative;
5
+ -webkit-transform: translate(-50%);
6
+ transform: translate(-50%);
7
+ left: 50%;
8
+ padding: 0 10px;
9
+ width: 450px;
10
+
11
+ .preview-image {
12
+ width: 51%;
13
+ &.sms {
14
+ width: 45%;
15
+ }
16
+ }
17
+
18
+ .msgContainer {
19
+ position: absolute;
20
+ top: 20%;
21
+ left: 23%;
22
+ width: 42%;
23
+ height: 336px;
24
+ display: -webkit-box;
25
+ display: -ms-flexbox;
26
+ display: flex;
27
+
28
+ .sms-icon{
29
+ top: 0;
30
+ left: 2px;
31
+ width: 25px;
32
+ position: absolute;
33
+ }
34
+ &.sms{
35
+ height: 290px;
36
+ width: 40%;
37
+ .sms-icon{
38
+ width: 20px;
39
+ left: 14px;
40
+ }
41
+ }
42
+ &.wechat{
43
+ width: 52%;
44
+ }
45
+ &.line-preview {
46
+ margin-left: $CAP_SPACE_16;
47
+ width: 40%;
48
+
49
+ .message-pop {
50
+ width: 80%;
51
+ left: 36px;
52
+ margin-top: -6px;
53
+ }
54
+ }
55
+
56
+ .message-pop{
57
+ .unicode-disabled{
58
+ font-size: 16px;
59
+ }
60
+ &.sms {
61
+ max-height: 100%;
62
+ position: absolute;
63
+ // width: initial;
64
+ overflow: auto;
65
+ top: 0;
66
+ left: 17%;
67
+ white-space: pre-wrap;
68
+ word-break: break-word;
69
+ line-height: 14px;
70
+ padding: 0 8px 8px 8px;
71
+ font-size: 10px;
72
+ width: 100%;
73
+ font-family: 'open-sans';
74
+ .message-pop-item{
75
+ padding: 4px;
76
+ background: #3F51B5;
77
+ color: #FFFFFF;
78
+ margin-top: 8px;
79
+ border-radius: 4px;
80
+ min-height: 26px;
81
+ &:first-child{
82
+ margin-top: 0;
83
+ }
84
+ }
85
+ }
86
+ &:not(.sms){
87
+ padding: 4px;
88
+ background: #3F51B5;
89
+ position: absolute;
90
+ // width: initial;
91
+ overflow: auto;
92
+ top: 0;
93
+ left: 17%;
94
+ white-space: pre-wrap;
95
+ word-break: break-word;
96
+ border-radius: 4px;
97
+ max-height: 100%;
98
+ color: #FFFFFF;
99
+ width: 70%;
100
+ min-height: 26px;
101
+ line-height: 14px;
102
+ padding: 8px;
103
+ font-size: 10px;
104
+ font-family: 'open-sans';
105
+ }
106
+ }
107
+ }
108
+ .android-push-message-Container, .iphone-push-message-Container{
109
+ position: absolute;
110
+ top: 11%;
111
+ left: 28.8%;
112
+ width: 42%;
113
+ height: 336px;
114
+ overflow: auto;
115
+ display: -webkit-box;
116
+ display: -ms-flexbox;
117
+ display: flex;
118
+ .message-pop{
119
+ position: absolute;
120
+ // width: initial;
121
+ overflow: auto;
122
+ word-wrap: break-word;
123
+ white-space: pre-wrap;
124
+ border-top-left-radius: 4px;
125
+ border-top-right-radius: 4px;
126
+ max-height: 100%;
127
+ width: 100%;
128
+ min-height: 26px;
129
+ line-height: 15px;
130
+ font-size: 10px;
131
+ .body-image{
132
+ img{
133
+ max-width: 100%;
134
+ max-height: 90px;
135
+ margin: auto;
136
+ display: block;
137
+ }
138
+ }
139
+ }
140
+ }
141
+ .android-push-message-Container{
142
+ .title, .body-text, .body-image, .app-name{
143
+ background-color: #FFFFFF;
144
+ color: #333333;
145
+ }
146
+ .app-name{
147
+ color: #5D5D5D;
148
+ font-weight: 600;
149
+ padding: 8px 8px 4px 8px;
150
+ }
151
+ .title, .body-image{
152
+ padding: 0 8px 0 8px;
153
+
154
+ }
155
+ .body-text{
156
+ padding: 0 8px 4px 8px;
157
+ color: #5a5959;
158
+ }
159
+ .title{
160
+ overflow: hidden;
161
+ white-space: nowrap;
162
+ text-overflow: ellipsis;
163
+ }
164
+ .actions{
165
+ background-color: #EEEEEE;
166
+ height: 32px;
167
+ padding: 4px;
168
+ .action{
169
+ line-height: 24px;
170
+ font-size: 10px;
171
+ font-weight: 600;
172
+ color: #1970DA;
173
+ height: 12px;
174
+ margin-left: 8px;
175
+ }
176
+ }
177
+ }
178
+ .iphone-push-message-Container{
179
+ top: 8%;
180
+ .message-pop{
181
+ border-radius: 4px;
182
+ word-wrap: break-word;
183
+ }
184
+ .title, .body-text, .body-image, .app-name{
185
+ background-color: #FFFFFF;
186
+ color: #333333;
187
+ }
188
+ .body-image{
189
+ padding-top: 8px;
190
+ }
191
+ .title{
192
+ overflow: hidden;
193
+ white-space: nowrap;
194
+ text-overflow: ellipsis;
195
+ }
196
+ .app-name{
197
+ padding: 8px;
198
+ color: #5D5D5D;
199
+ border-bottom: solid 1px #D6D6D6;
200
+ .material-icons{
201
+ font-size: 12px;
202
+ float: right;
203
+ }
204
+ }
205
+ .title, .body-text{
206
+ padding: 4px;
207
+ }
208
+ .title{
209
+ overflow: hidden;
210
+ white-space: nowrap;
211
+ text-overflow: ellipsis;
212
+ }
213
+ .body-text{
214
+ border-bottom-left-radius: 4px;
215
+ border-bottom-right-radius: 4px;
216
+ }
217
+ .actions{
218
+ background-color: #FFFFFF;
219
+ opacity: 0.8;
220
+ height: 32px;
221
+ line-height: 26px;
222
+ margin-top: 4px;
223
+ border-radius: 6px;
224
+ text-align: center;
225
+ padding: 4px;
226
+ .action{
227
+ font-size: 12px;
228
+ font-weight: 600;
229
+ color: #000000;
230
+ text-align: center;
231
+ margin-left: 8px;
232
+ }
233
+ }
234
+ }
235
+ }
236
+
237
+ .align-center {
238
+ text-align: center;
239
+ }
240
+
241
+ .align-left {
242
+ text-align: left;
243
+ }
244
+
245
+ .preview-container{
246
+ .preview-info {
247
+ // font-family: 'proxima-nova';
248
+ font-weight: 600;
249
+ font-size: 16px;
250
+ text-align: center;
251
+ }
252
+ }
253
+
254
+ .preview-container.embedded-preview{
255
+ .preview-image {
256
+ width: 38% !important;
257
+ }
258
+ .message-pop{
259
+ left: 21% !important;
260
+ width: 67% !important;
261
+ }
262
+ .sms-icon{
263
+ left: 12% !important;
264
+ }
265
+ }
266
+
267
+
268
+
269
+ #slidebox-container {
270
+ left: 60vw;
271
+ width: 40vw;
272
+
273
+ .shell {
274
+ position: relative;
275
+ -webkit-transform: translate(-50%);
276
+ transform: translate(-50%);
277
+ left: 50%;
278
+ padding: 0 10px;
279
+ width: initial;
280
+
281
+ .preview-image {
282
+ &.sms{
283
+ width: 45%;
284
+ }
285
+ }
286
+
287
+
288
+ .msgContainer {
289
+ position: absolute;
290
+ top: 14%;
291
+ left: 29%;
292
+ width: 42%;
293
+ height: 275px;
294
+ display: -webkit-box;
295
+ display: -ms-flexbox;
296
+ display: flex;
297
+
298
+ .sms-icon{
299
+ top: 6%;
300
+ left: 2%;
301
+ width: 12%;
302
+ position: absolute;
303
+ }
304
+
305
+ &.sms{
306
+ height: 290px;
307
+ width: 40%;
308
+ top: 16%;
309
+ .sms-icon{
310
+ left: 7%;
311
+ }
312
+ }
313
+ .message-pop{
314
+ &.sms {
315
+ max-height: 100%;
316
+ position: absolute;
317
+ // width: initial;
318
+ overflow: auto;
319
+ top: 6%;
320
+ left: 17%;
321
+ width: 80%;
322
+ white-space: pre-wrap;
323
+ word-break: break-word;
324
+ line-height: 14px;
325
+ padding: 0 8px 8px 8px;
326
+ font-size: 10px;
327
+ font-family: 'open-sans';
328
+ .message-pop-item{
329
+ padding: 8px;
330
+ background: #3F51B5;
331
+ color: #FFFFFF;
332
+ margin-top: 8px;
333
+ border-radius: 4px;
334
+ min-height: 26px;
335
+ &:first-child{
336
+ margin-top: 0;
337
+ }
338
+ }
339
+ }
340
+ &:not(.sms){
341
+ padding: 8px 8px;
342
+ background: #3F51B5;
343
+ position: absolute;
344
+ width: 65%;
345
+ top: 15%;
346
+ left: 19%;
347
+ word-break: break-all;
348
+ border-radius: 6px;
349
+ max-height: 100%;
350
+ overflow: auto;
351
+ color: #FFFFFF;
352
+ line-height: 14px;
353
+ font-family: "open-sans";
354
+ font-size: 10px;
355
+ }
356
+ }
357
+ }
358
+ }
359
+ }
360
+ .app-icon{
361
+ width: 10px;
362
+ height: 10px;
363
+ opacity: 1;
364
+ display: inline-block;
365
+ background-color: #333333;
366
+ margin-right: 4px;
367
+ }
368
+
369
+ .character-count-col{
370
+ margin-top: 8px;
371
+ text-align: center;
372
+ width: 100%;
373
+ .optout-tag-heading{
374
+ font-size: 12px;
375
+ }
376
+ }
377
+
378
+ .test-and-preview-container{
379
+ display: flex;
380
+ margin-top: -12px;
381
+ margin-bottom: 12px;
381
382
  }