@capillarytech/creatives-library 7.12.49 → 7.12.50

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/config/app.js +1 -0
  2. package/package.json +1 -1
  3. package/v2Components/TemplatePreview/index.js +1 -1
  4. package/v2Containers/Cap/tests/index.test.js +2 -2
  5. package/v2Containers/CreativesContainer/SlideBoxContent.js +7 -8
  6. package/v2Containers/CreativesContainer/tests/SlideBoxContent.test.js +36 -28
  7. package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +337 -160
  8. package/v2Containers/CreativesContainer/tests/index.test.js +3 -0
  9. package/v2Containers/Line/Container/ImageCarousel/Content.js +29 -15
  10. package/v2Containers/Line/Container/ImageCarousel/constants.js +0 -3
  11. package/v2Containers/Line/Container/ImageCarousel/index.js +40 -28
  12. package/v2Containers/Line/Container/ImageCarousel/messages.js +2 -2
  13. package/v2Containers/Line/Container/index.js +1 -5
  14. package/v2Containers/Templates/constants.js +1 -1
  15. package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +1 -381
  16. package/v2Containers/Templates/tests/index.test.js +1 -7
  17. package/v2Containers/mockdata.js +156 -60
  18. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +0 -9851
  19. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +0 -21113
  20. package/v2Containers/Line/Container/ImageCarousel/tests/content.test.js +0 -71
  21. package/v2Containers/Line/Container/ImageCarousel/tests/index.test.js +0 -58
  22. package/v2Containers/Line/Container/ImageCarousel/tests/mockData.js +0 -1322
  23. package/v2Containers/Line/Container/ImageCarousel/tests/utils.test.js +0 -13
  24. package/v2Containers/Line/Container/ImageCarousel/utils.js +0 -12
  25. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +0 -84451
  26. package/v2Containers/Line/Container/Wrapper/tests/index.test.js +0 -58
  27. package/v2Containers/Line/Container/Wrapper/tests/mockData.js +0 -171
  28. package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +0 -63597
  29. package/v2Containers/Line/Container/tests/index.test.js +0 -105
  30. package/v2Containers/Line/Container/tests/mockData.js +0 -1334
@@ -1,5 +1,47 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`Test SlideBoxContent container Should render correct component for line channel create mode 1`] = `<SlideBoxContent__CreativesWrapper />`;
4
+
5
+ exports[`Test SlideBoxContent container Should render correct component for line channel edit mode 1`] = `
6
+ <SlideBoxContent__CreativesWrapper>
7
+ <Connect(UserIsAuthenticated(Connect(InjectIntl(CreativesCommon))))
8
+ location={
9
+ Object {
10
+ "pathname": "/sms/edit",
11
+ "query": Object {
12
+ "isEditFromCampaigns": undefined,
13
+ "module": "library",
14
+ "type": "embedded",
15
+ },
16
+ "search": "",
17
+ }
18
+ }
19
+ onCreateComplete={[MockFunction]}
20
+ params={
21
+ Object {
22
+ "id": "629f7ecf134738019b2e332e",
23
+ "mode": undefined,
24
+ }
25
+ }
26
+ route={
27
+ Object {
28
+ "name": "edit_text",
29
+ }
30
+ }
31
+ templateData={
32
+ Object {
33
+ "_id": "629f7ecf134738019b2e332e",
34
+ "channel": "LINE",
35
+ "mode": "edit",
36
+ "modeType": "",
37
+ "type": "LINE",
38
+ "validity": true,
39
+ }
40
+ }
41
+ />
42
+ </SlideBoxContent__CreativesWrapper>
43
+ `;
44
+
3
45
  exports[`Test SlideBoxContent container Should render correct component for line channel preview mode 1`] = `
4
46
  <SlideBoxContent__CreativesWrapper>
5
47
  <InjectIntl(TemplatePreview)
@@ -12,12 +54,192 @@ exports[`Test SlideBoxContent container Should render correct component for line
12
54
  "baseUrl": undefined,
13
55
  "imageCarousel": Array [
14
56
  Object {
15
- "actionLabel": "Demo Old 2",
16
- "imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/f374edfe-1fd4-4b15-a6f7-74d5d86.jpeg",
57
+ "actionLabel": "ggg",
58
+ "imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/b9f2aa7a-3f1a-4a20-a737-8d50841.jpeg",
17
59
  },
60
+ ],
61
+ "messageContent": undefined,
62
+ "previewImageUrl": undefined,
63
+ "selectedSticker": Object {
64
+ "animatedStickerUrl": undefined,
65
+ "packageId": undefined,
66
+ "stickerId": undefined,
67
+ "stickerUrl": undefined,
68
+ },
69
+ "type": "image_carousel",
70
+ "video": undefined,
71
+ },
72
+ ]
73
+ }
74
+ showCount={true}
75
+ templateData={
76
+ Object {
77
+ "_id": "629f7ecf134738019b2e332e",
78
+ "createdAt": "2022-06-07T16:37:35.447Z",
79
+ "createdBy": "15000449",
80
+ "isActive": true,
81
+ "mode": "preview",
82
+ "name": "ggg1",
83
+ "orgId": 1604,
84
+ "totalCount": 31,
85
+ "type": "LINE",
86
+ "updatedAt": "2022-06-07T16:42:02.243Z",
87
+ "updatedBy": "15000449",
88
+ "updatedByName": "Ashish Karan fd",
89
+ "versions": Object {
90
+ "base": Object {
91
+ "content": Object {
92
+ "messages": Array [
93
+ Object {
94
+ "altText": "ggg",
95
+ "contents": Object {
96
+ "contents": Array [
97
+ Object {
98
+ "footer": Object {
99
+ "contents": Array [
100
+ Object {
101
+ "action": Object {
102
+ "label": "ggg",
103
+ "text": "ggg",
104
+ "type": "message",
105
+ },
106
+ "height": "sm",
107
+ "style": "link",
108
+ "type": "button",
109
+ },
110
+ ],
111
+ "layout": "vertical",
112
+ "spacing": "xs",
113
+ "type": "box",
114
+ },
115
+ "hero": Object {
116
+ "aspectMode": "cover",
117
+ "aspectRatio": "1:1",
118
+ "size": "full",
119
+ "type": "image",
120
+ "url": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/b9f2aa7a-3f1a-4a20-a737-8d50841.jpeg",
121
+ },
122
+ "type": "bubble",
123
+ },
124
+ ],
125
+ "type": "carousel",
126
+ },
127
+ "type": "flex",
128
+ },
129
+ ],
130
+ "to": "{{line_id}}",
131
+ },
132
+ },
133
+ "history": Array [],
134
+ },
135
+ }
136
+ }
137
+ viberBrandName=""
138
+ />
139
+ <Connect(UserIsAuthenticated(Connect(InjectIntl(CreativesCommon))))
140
+ location={
141
+ Object {
142
+ "pathname": "/sms/edit",
143
+ "query": Object {
144
+ "isEditFromCampaigns": undefined,
145
+ "module": "library",
146
+ "type": "embedded",
147
+ },
148
+ "search": "",
149
+ }
150
+ }
151
+ onCreateComplete={[MockFunction]}
152
+ params={
153
+ Object {
154
+ "id": "629f7ecf134738019b2e332e",
155
+ "mode": undefined,
156
+ }
157
+ }
158
+ route={
159
+ Object {
160
+ "name": "edit_text",
161
+ }
162
+ }
163
+ templateData={
164
+ Object {
165
+ "_id": "629f7ecf134738019b2e332e",
166
+ "createdAt": "2022-06-07T16:37:35.447Z",
167
+ "createdBy": "15000449",
168
+ "isActive": true,
169
+ "mode": "preview",
170
+ "name": "ggg1",
171
+ "orgId": 1604,
172
+ "totalCount": 31,
173
+ "type": "LINE",
174
+ "updatedAt": "2022-06-07T16:42:02.243Z",
175
+ "updatedBy": "15000449",
176
+ "updatedByName": "Ashish Karan fd",
177
+ "versions": Object {
178
+ "base": Object {
179
+ "content": Object {
180
+ "messages": Array [
181
+ Object {
182
+ "altText": "ggg",
183
+ "contents": Object {
184
+ "contents": Array [
185
+ Object {
186
+ "footer": Object {
187
+ "contents": Array [
188
+ Object {
189
+ "action": Object {
190
+ "label": "ggg",
191
+ "text": "ggg",
192
+ "type": "message",
193
+ },
194
+ "height": "sm",
195
+ "style": "link",
196
+ "type": "button",
197
+ },
198
+ ],
199
+ "layout": "vertical",
200
+ "spacing": "xs",
201
+ "type": "box",
202
+ },
203
+ "hero": Object {
204
+ "aspectMode": "cover",
205
+ "aspectRatio": "1:1",
206
+ "size": "full",
207
+ "type": "image",
208
+ "url": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/b9f2aa7a-3f1a-4a20-a737-8d50841.jpeg",
209
+ },
210
+ "type": "bubble",
211
+ },
212
+ ],
213
+ "type": "carousel",
214
+ },
215
+ "type": "flex",
216
+ },
217
+ ],
218
+ "to": "{{line_id}}",
219
+ },
220
+ },
221
+ "history": Array [],
222
+ },
223
+ }
224
+ }
225
+ />
226
+ </SlideBoxContent__CreativesWrapper>
227
+ `;
228
+
229
+ exports[`Test SlideBoxContent container Should render correct component for line channel preview mode 2`] = `
230
+ <SlideBoxContent__CreativesWrapper>
231
+ <InjectIntl(TemplatePreview)
232
+ channel="line"
233
+ charCounterEnabled={false}
234
+ content={
235
+ Array [
236
+ Object {
237
+ "actionUrl": undefined,
238
+ "baseUrl": undefined,
239
+ "imageCarousel": Array [
18
240
  Object {
19
- "actionLabel": undefined,
20
- "imageUrl": "",
241
+ "actionLabel": "rkr",
242
+ "imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/a7be98a7-c138-4f9a-a1ab-47b8995.jpeg",
21
243
  },
22
244
  ],
23
245
  "messageContent": undefined,
@@ -36,19 +258,16 @@ exports[`Test SlideBoxContent container Should render correct component for line
36
258
  showCount={true}
37
259
  templateData={
38
260
  Object {
39
- "_id": "62a810e4d4715c768d6ee9cf",
40
- "createdAt": "2022-06-14T04:39:00.665Z",
261
+ "_id": "62a2e0dd22c5bf412b6a5bae",
262
+ "createdAt": "2022-06-10T06:12:46.099Z",
41
263
  "createdBy": "15000449",
42
- "definition": Object {
43
- "mode": "template",
44
- },
45
264
  "isActive": true,
46
265
  "mode": "preview",
47
- "name": "Demo Old Template 2(Multiple images)",
266
+ "name": "rkrkrk",
48
267
  "orgId": 1604,
49
- "totalCount": 1,
268
+ "totalCount": 41,
50
269
  "type": "LINE",
51
- "updatedAt": "2022-06-14T04:39:00.665Z",
270
+ "updatedAt": "2022-06-10T06:12:46.099Z",
52
271
  "updatedBy": "15000449",
53
272
  "updatedByName": "Ashish Karan fd",
54
273
  "versions": Object {
@@ -57,23 +276,21 @@ exports[`Test SlideBoxContent container Should render correct component for line
57
276
  "content": Object {
58
277
  "messages": Array [
59
278
  Object {
60
- "altText": "Demo Old Template 2(Multiple images)",
279
+ "altText": "rlrlr",
61
280
  "template": Object {
62
281
  "columns": Array [
63
282
  Object {
64
283
  "action": Object {
65
- "label": "Demo Old 2",
66
- "type": "uri",
67
- "uri": "https://www.demo.com",
284
+ "label": "rkr",
285
+ "text": "rkrk",
286
+ "type": "message",
68
287
  },
69
- "imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/f374edfe-1fd4-4b15-a6f7-74d5d86.jpeg",
70
- },
71
- Object {
72
- "imageUrl": "",
288
+ "imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/a7be98a7-c138-4f9a-a1ab-47b8995.jpeg",
73
289
  },
74
290
  ],
75
291
  "type": "image_carousel",
76
292
  },
293
+ "type": "template",
77
294
  },
78
295
  ],
79
296
  "to": "{{line_id}}",
@@ -100,8 +317,8 @@ exports[`Test SlideBoxContent container Should render correct component for line
100
317
  onCreateComplete={[MockFunction]}
101
318
  params={
102
319
  Object {
103
- "id": "62a810e4d4715c768d6ee9cf",
104
- "mode": "template",
320
+ "id": "62a2e0dd22c5bf412b6a5bae",
321
+ "mode": undefined,
105
322
  }
106
323
  }
107
324
  route={
@@ -111,19 +328,16 @@ exports[`Test SlideBoxContent container Should render correct component for line
111
328
  }
112
329
  templateData={
113
330
  Object {
114
- "_id": "62a810e4d4715c768d6ee9cf",
115
- "createdAt": "2022-06-14T04:39:00.665Z",
331
+ "_id": "62a2e0dd22c5bf412b6a5bae",
332
+ "createdAt": "2022-06-10T06:12:46.099Z",
116
333
  "createdBy": "15000449",
117
- "definition": Object {
118
- "mode": "template",
119
- },
120
334
  "isActive": true,
121
335
  "mode": "preview",
122
- "name": "Demo Old Template 2(Multiple images)",
336
+ "name": "rkrkrk",
123
337
  "orgId": 1604,
124
- "totalCount": 1,
338
+ "totalCount": 41,
125
339
  "type": "LINE",
126
- "updatedAt": "2022-06-14T04:39:00.665Z",
340
+ "updatedAt": "2022-06-10T06:12:46.099Z",
127
341
  "updatedBy": "15000449",
128
342
  "updatedByName": "Ashish Karan fd",
129
343
  "versions": Object {
@@ -132,23 +346,21 @@ exports[`Test SlideBoxContent container Should render correct component for line
132
346
  "content": Object {
133
347
  "messages": Array [
134
348
  Object {
135
- "altText": "Demo Old Template 2(Multiple images)",
349
+ "altText": "rlrlr",
136
350
  "template": Object {
137
351
  "columns": Array [
138
352
  Object {
139
353
  "action": Object {
140
- "label": "Demo Old 2",
141
- "type": "uri",
142
- "uri": "https://www.demo.com",
354
+ "label": "rkr",
355
+ "text": "rkrk",
356
+ "type": "message",
143
357
  },
144
- "imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/f374edfe-1fd4-4b15-a6f7-74d5d86.jpeg",
145
- },
146
- Object {
147
- "imageUrl": "",
358
+ "imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/a7be98a7-c138-4f9a-a1ab-47b8995.jpeg",
148
359
  },
149
360
  ],
150
361
  "type": "image_carousel",
151
362
  },
363
+ "type": "template",
152
364
  },
153
365
  ],
154
366
  "to": "{{line_id}}",
@@ -162,7 +374,7 @@ exports[`Test SlideBoxContent container Should render correct component for line
162
374
  </SlideBoxContent__CreativesWrapper>
163
375
  `;
164
376
 
165
- exports[`Test SlideBoxContent container Should render correct component for line channel preview mode 2`] = `
377
+ exports[`Test SlideBoxContent container Should render correct component for line channel preview mode 3`] = `
166
378
  <SlideBoxContent__CreativesWrapper>
167
379
  <InjectIntl(TemplatePreview)
168
380
  channel="line"
@@ -173,14 +385,6 @@ exports[`Test SlideBoxContent container Should render correct component for line
173
385
  "actionUrl": undefined,
174
386
  "baseUrl": undefined,
175
387
  "imageCarousel": Array [
176
- Object {
177
- "actionLabel": "ggg",
178
- "imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/b9f2aa7a-3f1a-4a20-a737-8d50841.jpeg",
179
- },
180
- Object {
181
- "actionLabel": "",
182
- "imageUrl": "",
183
- },
184
388
  Object {
185
389
  "actionLabel": "",
186
390
  "imageUrl": "",
@@ -205,20 +409,16 @@ exports[`Test SlideBoxContent container Should render correct component for line
205
409
  "_id": "629f7ecf134738019b2e332e",
206
410
  "createdAt": "2022-06-07T16:37:35.447Z",
207
411
  "createdBy": "15000449",
208
- "definition": Object {
209
- "mode": "template",
210
- },
211
412
  "isActive": true,
212
413
  "mode": "preview",
213
414
  "name": "ggg1",
214
415
  "orgId": 1604,
215
- "totalCount": 1,
416
+ "totalCount": 31,
216
417
  "type": "LINE",
217
418
  "updatedAt": "2022-06-07T16:42:02.243Z",
218
419
  "updatedBy": "15000449",
219
420
  "updatedByName": "Ashish Karan fd",
220
421
  "versions": Object {
221
- "$init": true,
222
422
  "base": Object {
223
423
  "content": Object {
224
424
  "messages": Array [
@@ -226,45 +426,6 @@ exports[`Test SlideBoxContent container Should render correct component for line
226
426
  "altText": "ggg",
227
427
  "contents": Object {
228
428
  "contents": Array [
229
- Object {
230
- "footer": Object {
231
- "contents": Array [
232
- Object {
233
- "action": Object {
234
- "label": "ggg",
235
- "text": "ggg",
236
- "type": "message",
237
- },
238
- "height": "sm",
239
- "style": "link",
240
- "type": "button",
241
- },
242
- ],
243
- "layout": "vertical",
244
- "spacing": "xs",
245
- "type": "box",
246
- },
247
- "hero": Object {
248
- "aspectMode": "cover",
249
- "aspectRatio": "1:1",
250
- "size": "full",
251
- "type": "image",
252
- "url": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/b9f2aa7a-3f1a-4a20-a737-8d50841.jpeg",
253
- },
254
- "type": "bubble",
255
- },
256
- Object {
257
- "footer": Object {
258
- "contents": Array [
259
- Object {},
260
- ],
261
- "layout": "vertical",
262
- "spacing": "xs",
263
- "type": "box",
264
- },
265
- "hero": Object {},
266
- "type": "bubble",
267
- },
268
429
  Object {
269
430
  "type": "bubble",
270
431
  },
@@ -299,7 +460,7 @@ exports[`Test SlideBoxContent container Should render correct component for line
299
460
  params={
300
461
  Object {
301
462
  "id": "629f7ecf134738019b2e332e",
302
- "mode": "template",
463
+ "mode": undefined,
303
464
  }
304
465
  }
305
466
  route={
@@ -312,20 +473,16 @@ exports[`Test SlideBoxContent container Should render correct component for line
312
473
  "_id": "629f7ecf134738019b2e332e",
313
474
  "createdAt": "2022-06-07T16:37:35.447Z",
314
475
  "createdBy": "15000449",
315
- "definition": Object {
316
- "mode": "template",
317
- },
318
476
  "isActive": true,
319
477
  "mode": "preview",
320
478
  "name": "ggg1",
321
479
  "orgId": 1604,
322
- "totalCount": 1,
480
+ "totalCount": 31,
323
481
  "type": "LINE",
324
482
  "updatedAt": "2022-06-07T16:42:02.243Z",
325
483
  "updatedBy": "15000449",
326
484
  "updatedByName": "Ashish Karan fd",
327
485
  "versions": Object {
328
- "$init": true,
329
486
  "base": Object {
330
487
  "content": Object {
331
488
  "messages": Array [
@@ -333,45 +490,6 @@ exports[`Test SlideBoxContent container Should render correct component for line
333
490
  "altText": "ggg",
334
491
  "contents": Object {
335
492
  "contents": Array [
336
- Object {
337
- "footer": Object {
338
- "contents": Array [
339
- Object {
340
- "action": Object {
341
- "label": "ggg",
342
- "text": "ggg",
343
- "type": "message",
344
- },
345
- "height": "sm",
346
- "style": "link",
347
- "type": "button",
348
- },
349
- ],
350
- "layout": "vertical",
351
- "spacing": "xs",
352
- "type": "box",
353
- },
354
- "hero": Object {
355
- "aspectMode": "cover",
356
- "aspectRatio": "1:1",
357
- "size": "full",
358
- "type": "image",
359
- "url": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/b9f2aa7a-3f1a-4a20-a737-8d50841.jpeg",
360
- },
361
- "type": "bubble",
362
- },
363
- Object {
364
- "footer": Object {
365
- "contents": Array [
366
- Object {},
367
- ],
368
- "layout": "vertical",
369
- "spacing": "xs",
370
- "type": "box",
371
- },
372
- "hero": Object {},
373
- "type": "bubble",
374
- },
375
493
  Object {
376
494
  "type": "bubble",
377
495
  },
@@ -392,7 +510,7 @@ exports[`Test SlideBoxContent container Should render correct component for line
392
510
  </SlideBoxContent__CreativesWrapper>
393
511
  `;
394
512
 
395
- exports[`Test SlideBoxContent container Should render correct component for line channel preview mode 3`] = `
513
+ exports[`Test SlideBoxContent container Should render correct component for line channel preview mode 4`] = `
396
514
  <SlideBoxContent__CreativesWrapper>
397
515
  <InjectIntl(TemplatePreview)
398
516
  channel="line"
@@ -402,7 +520,12 @@ exports[`Test SlideBoxContent container Should render correct component for line
402
520
  Object {
403
521
  "actionUrl": undefined,
404
522
  "baseUrl": undefined,
405
- "imageCarousel": Array [],
523
+ "imageCarousel": Array [
524
+ Object {
525
+ "actionLabel": undefined,
526
+ "imageUrl": undefined,
527
+ },
528
+ ],
406
529
  "messageContent": undefined,
407
530
  "previewImageUrl": undefined,
408
531
  "selectedSticker": Object {
@@ -419,19 +542,16 @@ exports[`Test SlideBoxContent container Should render correct component for line
419
542
  showCount={true}
420
543
  templateData={
421
544
  Object {
422
- "_id": "629f7ecf134738019b2e332e",
423
- "createdAt": "2022-06-07T16:37:35.447Z",
545
+ "_id": "62a2e0dd22c5bf412b6a5bae",
546
+ "createdAt": "2022-06-10T06:12:46.099Z",
424
547
  "createdBy": "15000449",
425
- "definition": Object {
426
- "mode": "template",
427
- },
428
548
  "isActive": true,
429
549
  "mode": "preview",
430
- "name": "ggg1",
550
+ "name": "rkrkrk",
431
551
  "orgId": 1604,
432
- "totalCount": 1,
552
+ "totalCount": 41,
433
553
  "type": "LINE",
434
- "updatedAt": "2022-06-07T16:42:02.243Z",
554
+ "updatedAt": "2022-06-10T06:12:46.099Z",
435
555
  "updatedBy": "15000449",
436
556
  "updatedByName": "Ashish Karan fd",
437
557
  "versions": Object {
@@ -440,8 +560,11 @@ exports[`Test SlideBoxContent container Should render correct component for line
440
560
  "content": Object {
441
561
  "messages": Array [
442
562
  Object {
443
- "altText": "ggg",
444
- "type": "flex",
563
+ "altText": "rlrlr",
564
+ "template": Object {
565
+ "type": "image_carousel",
566
+ },
567
+ "type": "template",
445
568
  },
446
569
  ],
447
570
  "to": "{{line_id}}",
@@ -468,8 +591,8 @@ exports[`Test SlideBoxContent container Should render correct component for line
468
591
  onCreateComplete={[MockFunction]}
469
592
  params={
470
593
  Object {
471
- "id": "629f7ecf134738019b2e332e",
472
- "mode": "template",
594
+ "id": "62a2e0dd22c5bf412b6a5bae",
595
+ "mode": undefined,
473
596
  }
474
597
  }
475
598
  route={
@@ -479,19 +602,16 @@ exports[`Test SlideBoxContent container Should render correct component for line
479
602
  }
480
603
  templateData={
481
604
  Object {
482
- "_id": "629f7ecf134738019b2e332e",
483
- "createdAt": "2022-06-07T16:37:35.447Z",
605
+ "_id": "62a2e0dd22c5bf412b6a5bae",
606
+ "createdAt": "2022-06-10T06:12:46.099Z",
484
607
  "createdBy": "15000449",
485
- "definition": Object {
486
- "mode": "template",
487
- },
488
608
  "isActive": true,
489
609
  "mode": "preview",
490
- "name": "ggg1",
610
+ "name": "rkrkrk",
491
611
  "orgId": 1604,
492
- "totalCount": 1,
612
+ "totalCount": 41,
493
613
  "type": "LINE",
494
- "updatedAt": "2022-06-07T16:42:02.243Z",
614
+ "updatedAt": "2022-06-10T06:12:46.099Z",
495
615
  "updatedBy": "15000449",
496
616
  "updatedByName": "Ashish Karan fd",
497
617
  "versions": Object {
@@ -500,8 +620,11 @@ exports[`Test SlideBoxContent container Should render correct component for line
500
620
  "content": Object {
501
621
  "messages": Array [
502
622
  Object {
503
- "altText": "ggg",
504
- "type": "flex",
623
+ "altText": "rlrlr",
624
+ "template": Object {
625
+ "type": "image_carousel",
626
+ },
627
+ "type": "template",
505
628
  },
506
629
  ],
507
630
  "to": "{{line_id}}",
@@ -515,6 +638,8 @@ exports[`Test SlideBoxContent container Should render correct component for line
515
638
  </SlideBoxContent__CreativesWrapper>
516
639
  `;
517
640
 
641
+ exports[`Test SlideBoxContent container Should render correct component for line channel preview mode 5`] = `<SlideBoxContent__CreativesWrapper />`;
642
+
518
643
  exports[`Test SlideBoxContent container Should render correct component for rcs channel create mode 1`] = `
519
644
  <SlideBoxContent__CreativesWrapper>
520
645
  <Connect(UserIsAuthenticated(Connect(InjectIntl(CreativesCommon))))
@@ -658,6 +783,58 @@ exports[`Test SlideBoxContent container Should render correct component for rcs
658
783
  </SlideBoxContent__CreativesWrapper>
659
784
  `;
660
785
 
786
+ exports[`Test SlideBoxContent container Should render correct component for viber channel preview mode 1`] = `
787
+ <SlideBoxContent__CreativesWrapper>
788
+ <InjectIntl(TemplatePreview)
789
+ channel="viber"
790
+ charCounterEnabled={false}
791
+ content={
792
+ Object {
793
+ "buttonText": "",
794
+ "imageURL": "",
795
+ "messageContent": "testetsetst",
796
+ }
797
+ }
798
+ showCount={true}
799
+ templateData={
800
+ Object {
801
+ "_id": "6238426399910ee787e92a87",
802
+ "createdAt": "2022-03-21T09:16:19.972Z",
803
+ "createdBy": "15000449",
804
+ "isActive": true,
805
+ "mode": "preview",
806
+ "name": "testetsetst",
807
+ "orgId": 1604,
808
+ "totalCount": 2,
809
+ "type": "VIBER",
810
+ "updatedAt": "2022-03-21T09:16:19.972Z",
811
+ "updatedBy": "15000449",
812
+ "updatedByName": "Ashish Karan fd",
813
+ "versions": Object {
814
+ "$init": true,
815
+ "base": Object {
816
+ "content": Object {
817
+ "destinations": Array [
818
+ Object {
819
+ "to": Object {
820
+ "phoneNumber": "{{viber_user_id}}",
821
+ },
822
+ },
823
+ ],
824
+ "viber": Object {
825
+ "text": "testetsetst",
826
+ },
827
+ },
828
+ },
829
+ "history": Array [],
830
+ },
831
+ }
832
+ }
833
+ viberBrandName=""
834
+ />
835
+ </SlideBoxContent__CreativesWrapper>
836
+ `;
837
+
661
838
  exports[`Test SlideBoxContent container Should render correct component for whatsapp channel create mode 1`] = `
662
839
  <SlideBoxContent__CreativesWrapper>
663
840
  <Connect(UserIsAuthenticated(Connect(InjectIntl(CreativesCommon))))