@capillarytech/creatives-library 7.12.50 → 7.12.51
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/config/app.js +0 -1
- package/package.json +1 -1
- package/v2Containers/Cap/tests/index.test.js +2 -2
- package/v2Containers/CreativesContainer/SlideBoxContent.js +8 -7
- package/v2Containers/CreativesContainer/tests/SlideBoxContent.test.js +28 -36
- package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +160 -337
- package/v2Containers/CreativesContainer/tests/index.test.js +0 -3
- package/v2Containers/Line/Container/ImageCarousel/Content.js +15 -29
- package/v2Containers/Line/Container/ImageCarousel/constants.js +3 -0
- package/v2Containers/Line/Container/ImageCarousel/index.js +24 -35
- package/v2Containers/Line/Container/ImageCarousel/messages.js +2 -2
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +9851 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +21113 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/content.test.js +71 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/index.test.js +58 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/mockData.js +1322 -0
- package/v2Containers/Line/Container/ImageCarousel/tests/utils.test.js +13 -0
- package/v2Containers/Line/Container/ImageCarousel/utils.js +12 -0
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +84451 -0
- package/v2Containers/Line/Container/Wrapper/tests/index.test.js +58 -0
- package/v2Containers/Line/Container/Wrapper/tests/mockData.js +171 -0
- package/v2Containers/Line/Container/index.js +2 -0
- package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +59589 -0
- package/v2Containers/Line/Container/tests/index.test.js +105 -0
- package/v2Containers/Line/Container/tests/mockData.js +1334 -0
- package/v2Containers/mockdata.js +60 -156
|
@@ -1,47 +1,5 @@
|
|
|
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
|
-
|
|
45
3
|
exports[`Test SlideBoxContent container Should render correct component for line channel preview mode 1`] = `
|
|
46
4
|
<SlideBoxContent__CreativesWrapper>
|
|
47
5
|
<InjectIntl(TemplatePreview)
|
|
@@ -54,192 +12,12 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
54
12
|
"baseUrl": undefined,
|
|
55
13
|
"imageCarousel": Array [
|
|
56
14
|
Object {
|
|
57
|
-
"actionLabel": "
|
|
58
|
-
"imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/
|
|
15
|
+
"actionLabel": "Demo Old 2",
|
|
16
|
+
"imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/f374edfe-1fd4-4b15-a6f7-74d5d86.jpeg",
|
|
59
17
|
},
|
|
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 [
|
|
240
18
|
Object {
|
|
241
|
-
"actionLabel":
|
|
242
|
-
"imageUrl": "
|
|
19
|
+
"actionLabel": undefined,
|
|
20
|
+
"imageUrl": "",
|
|
243
21
|
},
|
|
244
22
|
],
|
|
245
23
|
"messageContent": undefined,
|
|
@@ -258,16 +36,19 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
258
36
|
showCount={true}
|
|
259
37
|
templateData={
|
|
260
38
|
Object {
|
|
261
|
-
"_id": "
|
|
262
|
-
"createdAt": "2022-06-
|
|
39
|
+
"_id": "62a810e4d4715c768d6ee9cf",
|
|
40
|
+
"createdAt": "2022-06-14T04:39:00.665Z",
|
|
263
41
|
"createdBy": "15000449",
|
|
42
|
+
"definition": Object {
|
|
43
|
+
"mode": "template",
|
|
44
|
+
},
|
|
264
45
|
"isActive": true,
|
|
265
46
|
"mode": "preview",
|
|
266
|
-
"name": "
|
|
47
|
+
"name": "Demo Old Template 2(Multiple images)",
|
|
267
48
|
"orgId": 1604,
|
|
268
|
-
"totalCount":
|
|
49
|
+
"totalCount": 1,
|
|
269
50
|
"type": "LINE",
|
|
270
|
-
"updatedAt": "2022-06-
|
|
51
|
+
"updatedAt": "2022-06-14T04:39:00.665Z",
|
|
271
52
|
"updatedBy": "15000449",
|
|
272
53
|
"updatedByName": "Ashish Karan fd",
|
|
273
54
|
"versions": Object {
|
|
@@ -276,21 +57,23 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
276
57
|
"content": Object {
|
|
277
58
|
"messages": Array [
|
|
278
59
|
Object {
|
|
279
|
-
"altText": "
|
|
60
|
+
"altText": "Demo Old Template 2(Multiple images)",
|
|
280
61
|
"template": Object {
|
|
281
62
|
"columns": Array [
|
|
282
63
|
Object {
|
|
283
64
|
"action": Object {
|
|
284
|
-
"label": "
|
|
285
|
-
"
|
|
286
|
-
"
|
|
65
|
+
"label": "Demo Old 2",
|
|
66
|
+
"type": "uri",
|
|
67
|
+
"uri": "https://www.demo.com",
|
|
287
68
|
},
|
|
288
|
-
"imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/
|
|
69
|
+
"imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/f374edfe-1fd4-4b15-a6f7-74d5d86.jpeg",
|
|
70
|
+
},
|
|
71
|
+
Object {
|
|
72
|
+
"imageUrl": "",
|
|
289
73
|
},
|
|
290
74
|
],
|
|
291
75
|
"type": "image_carousel",
|
|
292
76
|
},
|
|
293
|
-
"type": "template",
|
|
294
77
|
},
|
|
295
78
|
],
|
|
296
79
|
"to": "{{line_id}}",
|
|
@@ -317,8 +100,8 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
317
100
|
onCreateComplete={[MockFunction]}
|
|
318
101
|
params={
|
|
319
102
|
Object {
|
|
320
|
-
"id": "
|
|
321
|
-
"mode":
|
|
103
|
+
"id": "62a810e4d4715c768d6ee9cf",
|
|
104
|
+
"mode": "template",
|
|
322
105
|
}
|
|
323
106
|
}
|
|
324
107
|
route={
|
|
@@ -328,16 +111,19 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
328
111
|
}
|
|
329
112
|
templateData={
|
|
330
113
|
Object {
|
|
331
|
-
"_id": "
|
|
332
|
-
"createdAt": "2022-06-
|
|
114
|
+
"_id": "62a810e4d4715c768d6ee9cf",
|
|
115
|
+
"createdAt": "2022-06-14T04:39:00.665Z",
|
|
333
116
|
"createdBy": "15000449",
|
|
117
|
+
"definition": Object {
|
|
118
|
+
"mode": "template",
|
|
119
|
+
},
|
|
334
120
|
"isActive": true,
|
|
335
121
|
"mode": "preview",
|
|
336
|
-
"name": "
|
|
122
|
+
"name": "Demo Old Template 2(Multiple images)",
|
|
337
123
|
"orgId": 1604,
|
|
338
|
-
"totalCount":
|
|
124
|
+
"totalCount": 1,
|
|
339
125
|
"type": "LINE",
|
|
340
|
-
"updatedAt": "2022-06-
|
|
126
|
+
"updatedAt": "2022-06-14T04:39:00.665Z",
|
|
341
127
|
"updatedBy": "15000449",
|
|
342
128
|
"updatedByName": "Ashish Karan fd",
|
|
343
129
|
"versions": Object {
|
|
@@ -346,21 +132,23 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
346
132
|
"content": Object {
|
|
347
133
|
"messages": Array [
|
|
348
134
|
Object {
|
|
349
|
-
"altText": "
|
|
135
|
+
"altText": "Demo Old Template 2(Multiple images)",
|
|
350
136
|
"template": Object {
|
|
351
137
|
"columns": Array [
|
|
352
138
|
Object {
|
|
353
139
|
"action": Object {
|
|
354
|
-
"label": "
|
|
355
|
-
"
|
|
356
|
-
"
|
|
140
|
+
"label": "Demo Old 2",
|
|
141
|
+
"type": "uri",
|
|
142
|
+
"uri": "https://www.demo.com",
|
|
357
143
|
},
|
|
358
|
-
"imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/
|
|
144
|
+
"imageUrl": "https://crm-nightly-new-fileservice.s3.amazonaws.com/intouch_creative_assets/f374edfe-1fd4-4b15-a6f7-74d5d86.jpeg",
|
|
145
|
+
},
|
|
146
|
+
Object {
|
|
147
|
+
"imageUrl": "",
|
|
359
148
|
},
|
|
360
149
|
],
|
|
361
150
|
"type": "image_carousel",
|
|
362
151
|
},
|
|
363
|
-
"type": "template",
|
|
364
152
|
},
|
|
365
153
|
],
|
|
366
154
|
"to": "{{line_id}}",
|
|
@@ -374,7 +162,7 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
374
162
|
</SlideBoxContent__CreativesWrapper>
|
|
375
163
|
`;
|
|
376
164
|
|
|
377
|
-
exports[`Test SlideBoxContent container Should render correct component for line channel preview mode
|
|
165
|
+
exports[`Test SlideBoxContent container Should render correct component for line channel preview mode 2`] = `
|
|
378
166
|
<SlideBoxContent__CreativesWrapper>
|
|
379
167
|
<InjectIntl(TemplatePreview)
|
|
380
168
|
channel="line"
|
|
@@ -385,6 +173,14 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
385
173
|
"actionUrl": undefined,
|
|
386
174
|
"baseUrl": undefined,
|
|
387
175
|
"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
|
+
},
|
|
388
184
|
Object {
|
|
389
185
|
"actionLabel": "",
|
|
390
186
|
"imageUrl": "",
|
|
@@ -409,16 +205,20 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
409
205
|
"_id": "629f7ecf134738019b2e332e",
|
|
410
206
|
"createdAt": "2022-06-07T16:37:35.447Z",
|
|
411
207
|
"createdBy": "15000449",
|
|
208
|
+
"definition": Object {
|
|
209
|
+
"mode": "template",
|
|
210
|
+
},
|
|
412
211
|
"isActive": true,
|
|
413
212
|
"mode": "preview",
|
|
414
213
|
"name": "ggg1",
|
|
415
214
|
"orgId": 1604,
|
|
416
|
-
"totalCount":
|
|
215
|
+
"totalCount": 1,
|
|
417
216
|
"type": "LINE",
|
|
418
217
|
"updatedAt": "2022-06-07T16:42:02.243Z",
|
|
419
218
|
"updatedBy": "15000449",
|
|
420
219
|
"updatedByName": "Ashish Karan fd",
|
|
421
220
|
"versions": Object {
|
|
221
|
+
"$init": true,
|
|
422
222
|
"base": Object {
|
|
423
223
|
"content": Object {
|
|
424
224
|
"messages": Array [
|
|
@@ -426,6 +226,45 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
426
226
|
"altText": "ggg",
|
|
427
227
|
"contents": Object {
|
|
428
228
|
"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
|
+
},
|
|
429
268
|
Object {
|
|
430
269
|
"type": "bubble",
|
|
431
270
|
},
|
|
@@ -460,7 +299,7 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
460
299
|
params={
|
|
461
300
|
Object {
|
|
462
301
|
"id": "629f7ecf134738019b2e332e",
|
|
463
|
-
"mode":
|
|
302
|
+
"mode": "template",
|
|
464
303
|
}
|
|
465
304
|
}
|
|
466
305
|
route={
|
|
@@ -473,16 +312,20 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
473
312
|
"_id": "629f7ecf134738019b2e332e",
|
|
474
313
|
"createdAt": "2022-06-07T16:37:35.447Z",
|
|
475
314
|
"createdBy": "15000449",
|
|
315
|
+
"definition": Object {
|
|
316
|
+
"mode": "template",
|
|
317
|
+
},
|
|
476
318
|
"isActive": true,
|
|
477
319
|
"mode": "preview",
|
|
478
320
|
"name": "ggg1",
|
|
479
321
|
"orgId": 1604,
|
|
480
|
-
"totalCount":
|
|
322
|
+
"totalCount": 1,
|
|
481
323
|
"type": "LINE",
|
|
482
324
|
"updatedAt": "2022-06-07T16:42:02.243Z",
|
|
483
325
|
"updatedBy": "15000449",
|
|
484
326
|
"updatedByName": "Ashish Karan fd",
|
|
485
327
|
"versions": Object {
|
|
328
|
+
"$init": true,
|
|
486
329
|
"base": Object {
|
|
487
330
|
"content": Object {
|
|
488
331
|
"messages": Array [
|
|
@@ -490,6 +333,45 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
490
333
|
"altText": "ggg",
|
|
491
334
|
"contents": Object {
|
|
492
335
|
"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
|
+
},
|
|
493
375
|
Object {
|
|
494
376
|
"type": "bubble",
|
|
495
377
|
},
|
|
@@ -510,7 +392,7 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
510
392
|
</SlideBoxContent__CreativesWrapper>
|
|
511
393
|
`;
|
|
512
394
|
|
|
513
|
-
exports[`Test SlideBoxContent container Should render correct component for line channel preview mode
|
|
395
|
+
exports[`Test SlideBoxContent container Should render correct component for line channel preview mode 3`] = `
|
|
514
396
|
<SlideBoxContent__CreativesWrapper>
|
|
515
397
|
<InjectIntl(TemplatePreview)
|
|
516
398
|
channel="line"
|
|
@@ -520,12 +402,7 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
520
402
|
Object {
|
|
521
403
|
"actionUrl": undefined,
|
|
522
404
|
"baseUrl": undefined,
|
|
523
|
-
"imageCarousel": Array [
|
|
524
|
-
Object {
|
|
525
|
-
"actionLabel": undefined,
|
|
526
|
-
"imageUrl": undefined,
|
|
527
|
-
},
|
|
528
|
-
],
|
|
405
|
+
"imageCarousel": Array [],
|
|
529
406
|
"messageContent": undefined,
|
|
530
407
|
"previewImageUrl": undefined,
|
|
531
408
|
"selectedSticker": Object {
|
|
@@ -542,16 +419,19 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
542
419
|
showCount={true}
|
|
543
420
|
templateData={
|
|
544
421
|
Object {
|
|
545
|
-
"_id": "
|
|
546
|
-
"createdAt": "2022-06-
|
|
422
|
+
"_id": "629f7ecf134738019b2e332e",
|
|
423
|
+
"createdAt": "2022-06-07T16:37:35.447Z",
|
|
547
424
|
"createdBy": "15000449",
|
|
425
|
+
"definition": Object {
|
|
426
|
+
"mode": "template",
|
|
427
|
+
},
|
|
548
428
|
"isActive": true,
|
|
549
429
|
"mode": "preview",
|
|
550
|
-
"name": "
|
|
430
|
+
"name": "ggg1",
|
|
551
431
|
"orgId": 1604,
|
|
552
|
-
"totalCount":
|
|
432
|
+
"totalCount": 1,
|
|
553
433
|
"type": "LINE",
|
|
554
|
-
"updatedAt": "2022-06-
|
|
434
|
+
"updatedAt": "2022-06-07T16:42:02.243Z",
|
|
555
435
|
"updatedBy": "15000449",
|
|
556
436
|
"updatedByName": "Ashish Karan fd",
|
|
557
437
|
"versions": Object {
|
|
@@ -560,11 +440,8 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
560
440
|
"content": Object {
|
|
561
441
|
"messages": Array [
|
|
562
442
|
Object {
|
|
563
|
-
"altText": "
|
|
564
|
-
"
|
|
565
|
-
"type": "image_carousel",
|
|
566
|
-
},
|
|
567
|
-
"type": "template",
|
|
443
|
+
"altText": "ggg",
|
|
444
|
+
"type": "flex",
|
|
568
445
|
},
|
|
569
446
|
],
|
|
570
447
|
"to": "{{line_id}}",
|
|
@@ -591,8 +468,8 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
591
468
|
onCreateComplete={[MockFunction]}
|
|
592
469
|
params={
|
|
593
470
|
Object {
|
|
594
|
-
"id": "
|
|
595
|
-
"mode":
|
|
471
|
+
"id": "629f7ecf134738019b2e332e",
|
|
472
|
+
"mode": "template",
|
|
596
473
|
}
|
|
597
474
|
}
|
|
598
475
|
route={
|
|
@@ -602,16 +479,19 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
602
479
|
}
|
|
603
480
|
templateData={
|
|
604
481
|
Object {
|
|
605
|
-
"_id": "
|
|
606
|
-
"createdAt": "2022-06-
|
|
482
|
+
"_id": "629f7ecf134738019b2e332e",
|
|
483
|
+
"createdAt": "2022-06-07T16:37:35.447Z",
|
|
607
484
|
"createdBy": "15000449",
|
|
485
|
+
"definition": Object {
|
|
486
|
+
"mode": "template",
|
|
487
|
+
},
|
|
608
488
|
"isActive": true,
|
|
609
489
|
"mode": "preview",
|
|
610
|
-
"name": "
|
|
490
|
+
"name": "ggg1",
|
|
611
491
|
"orgId": 1604,
|
|
612
|
-
"totalCount":
|
|
492
|
+
"totalCount": 1,
|
|
613
493
|
"type": "LINE",
|
|
614
|
-
"updatedAt": "2022-06-
|
|
494
|
+
"updatedAt": "2022-06-07T16:42:02.243Z",
|
|
615
495
|
"updatedBy": "15000449",
|
|
616
496
|
"updatedByName": "Ashish Karan fd",
|
|
617
497
|
"versions": Object {
|
|
@@ -620,11 +500,8 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
620
500
|
"content": Object {
|
|
621
501
|
"messages": Array [
|
|
622
502
|
Object {
|
|
623
|
-
"altText": "
|
|
624
|
-
"
|
|
625
|
-
"type": "image_carousel",
|
|
626
|
-
},
|
|
627
|
-
"type": "template",
|
|
503
|
+
"altText": "ggg",
|
|
504
|
+
"type": "flex",
|
|
628
505
|
},
|
|
629
506
|
],
|
|
630
507
|
"to": "{{line_id}}",
|
|
@@ -638,8 +515,6 @@ exports[`Test SlideBoxContent container Should render correct component for line
|
|
|
638
515
|
</SlideBoxContent__CreativesWrapper>
|
|
639
516
|
`;
|
|
640
517
|
|
|
641
|
-
exports[`Test SlideBoxContent container Should render correct component for line channel preview mode 5`] = `<SlideBoxContent__CreativesWrapper />`;
|
|
642
|
-
|
|
643
518
|
exports[`Test SlideBoxContent container Should render correct component for rcs channel create mode 1`] = `
|
|
644
519
|
<SlideBoxContent__CreativesWrapper>
|
|
645
520
|
<Connect(UserIsAuthenticated(Connect(InjectIntl(CreativesCommon))))
|
|
@@ -783,58 +658,6 @@ exports[`Test SlideBoxContent container Should render correct component for rcs
|
|
|
783
658
|
</SlideBoxContent__CreativesWrapper>
|
|
784
659
|
`;
|
|
785
660
|
|
|
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
|
-
|
|
838
661
|
exports[`Test SlideBoxContent container Should render correct component for whatsapp channel create mode 1`] = `
|
|
839
662
|
<SlideBoxContent__CreativesWrapper>
|
|
840
663
|
<Connect(UserIsAuthenticated(Connect(InjectIntl(CreativesCommon))))
|