@capillarytech/creatives-library 8.0.286 → 8.0.287

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 (32) hide show
  1. package/package.json +1 -1
  2. package/utils/commonUtils.js +3 -0
  3. package/v2Components/CapTagList/index.js +6 -2
  4. package/v2Components/CapTagListWithInput/index.js +4 -0
  5. package/v2Components/FormBuilder/index.js +26 -3
  6. package/v2Components/FormBuilder/messages.js +4 -0
  7. package/v2Containers/CreativesContainer/SlideBoxContent.js +20 -0
  8. package/v2Containers/CreativesContainer/SlideBoxFooter.js +39 -3
  9. package/v2Containers/CreativesContainer/constants.js +6 -0
  10. package/v2Containers/CreativesContainer/index.js +32 -1
  11. package/v2Containers/CreativesContainer/messages.js +12 -0
  12. package/v2Containers/CreativesContainer/tests/SlideBoxFooter.test.js +339 -0
  13. package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +18 -0
  14. package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +37 -0
  15. package/v2Containers/MobilePush/Create/index.js +45 -0
  16. package/v2Containers/MobilePush/Create/messages.js +4 -0
  17. package/v2Containers/MobilePush/Edit/index.js +45 -0
  18. package/v2Containers/MobilePush/Edit/messages.js +4 -0
  19. package/v2Containers/MobilePushNew/components/PlatformContentFields.js +36 -12
  20. package/v2Containers/MobilePushNew/components/tests/PlatformContentFields.test.js +68 -27
  21. package/v2Containers/MobilePushNew/index.js +32 -3
  22. package/v2Containers/MobilePushNew/messages.js +8 -0
  23. package/v2Containers/MobilepushWrapper/index.js +7 -1
  24. package/v2Containers/SmsTrai/Create/index.scss +1 -1
  25. package/v2Containers/TagList/index.js +17 -1
  26. package/v2Containers/TagList/messages.js +4 -0
  27. package/v2Containers/TemplatesV2/index.js +43 -23
  28. package/v2Containers/Viber/index.scss +1 -1
  29. package/v2Containers/WebPush/Create/index.js +25 -6
  30. package/v2Containers/WebPush/Create/messages.js +8 -1
  31. package/v2Containers/WebPush/Create/utils/validation.js +16 -9
  32. package/v2Containers/WebPush/Create/utils/validation.test.js +28 -0
@@ -190,4 +190,343 @@ describe('shouldCheckValidation (line 79)', () => {
190
190
  const saveBtn = screen.getByRole('button', { name: /create/i });
191
191
  expect(saveBtn).toBeDisabled();
192
192
  });
193
+
194
+ describe('personalization tokens handling', () => {
195
+ it('disables Save and Test & Preview when anonymous mobile push template has personalization tokens', () => {
196
+ const { hasSupportCKEditor } = require('../../../utils/common');
197
+ hasSupportCKEditor.mockReturnValue(false);
198
+
199
+ renderComponent({
200
+ ...baseFooterProps,
201
+ currentChannel: 'MOBILE_PUSH',
202
+ slidBoxContent: 'editTemplate',
203
+ showTestAndPreviewButton: true,
204
+ restrictPersonalization: true,
205
+ isAnonymousType: true,
206
+ templateData: {
207
+ versions: {
208
+ ANDROID: {
209
+ base: {
210
+ title: 'Hello {{name}}',
211
+ expandibleDetails: {
212
+ message: 'Body',
213
+ },
214
+ },
215
+ },
216
+ },
217
+ },
218
+ });
219
+
220
+ const updateBtn = screen.getByRole('button', { name: /update/i });
221
+ expect(updateBtn).toBeDisabled();
222
+
223
+ const previewBtn = screen.getByRole('button', { name: /preview and test/i });
224
+ expect(previewBtn).toBeDisabled();
225
+ });
226
+
227
+ it('uses hasPersonalizationTokenError prop override even when templateData has no tokens', () => {
228
+ const { hasSupportCKEditor } = require('../../../utils/common');
229
+ hasSupportCKEditor.mockReturnValue(false);
230
+
231
+ renderComponent({
232
+ ...baseFooterProps,
233
+ currentChannel: 'MOBILE_PUSH',
234
+ slidBoxContent: 'editTemplate',
235
+ showTestAndPreviewButton: true,
236
+ restrictPersonalization: true,
237
+ isAnonymousType: true,
238
+ templateData: {}, // no personalization tokens in template data
239
+ hasPersonalizationTokenError: true,
240
+ });
241
+
242
+ const updateBtn = screen.getByRole('button', { name: /update/i });
243
+ expect(updateBtn).toBeDisabled();
244
+
245
+ const previewBtn = screen.getByRole('button', { name: /preview and test/i });
246
+ expect(previewBtn).toBeDisabled();
247
+ });
248
+
249
+ it('does not disable buttons when isAnonymousType is false even with liquid tags', () => {
250
+ const { hasSupportCKEditor } = require('../../../utils/common');
251
+ hasSupportCKEditor.mockReturnValue(false);
252
+
253
+ renderComponent({
254
+ ...baseFooterProps,
255
+ currentChannel: 'MOBILE_PUSH',
256
+ slidBoxContent: 'editTemplate',
257
+ showTestAndPreviewButton: true,
258
+ restrictPersonalization: true,
259
+ isAnonymousType: false, // non-anonymous user
260
+ templateData: {
261
+ versions: {
262
+ ANDROID: {
263
+ base: {
264
+ title: 'Hello {{name}}',
265
+ expandibleDetails: {
266
+ message: 'Welcome',
267
+ },
268
+ },
269
+ },
270
+ },
271
+ },
272
+ });
273
+
274
+ const updateBtn = screen.getByRole('button', { name: /update/i });
275
+ expect(updateBtn).toBeEnabled();
276
+
277
+ const previewBtn = screen.getByRole('button', { name: /preview and test/i });
278
+ expect(previewBtn).toBeEnabled();
279
+ });
280
+
281
+ it('does not disable buttons when restrictPersonalization is false even for anonymous users with tokens', () => {
282
+ const { hasSupportCKEditor } = require('../../../utils/common');
283
+ hasSupportCKEditor.mockReturnValue(false);
284
+
285
+ renderComponent({
286
+ ...baseFooterProps,
287
+ currentChannel: 'MOBILE_PUSH',
288
+ slidBoxContent: 'editTemplate',
289
+ showTestAndPreviewButton: true,
290
+ restrictPersonalization: false, // personalization is allowed
291
+ isAnonymousType: true,
292
+ templateData: {
293
+ versions: {
294
+ ANDROID: {
295
+ base: {
296
+ title: 'Hello {{name}}',
297
+ expandibleDetails: {
298
+ message: 'Welcome',
299
+ },
300
+ },
301
+ },
302
+ },
303
+ },
304
+ });
305
+
306
+ const updateBtn = screen.getByRole('button', { name: /update/i });
307
+ expect(updateBtn).toBeEnabled();
308
+ });
309
+
310
+ it('detects liquid tags {{ }} in Android title and disables buttons', () => {
311
+ const { hasSupportCKEditor } = require('../../../utils/common');
312
+ hasSupportCKEditor.mockReturnValue(false);
313
+
314
+ renderComponent({
315
+ ...baseFooterProps,
316
+ currentChannel: 'MOBILE_PUSH',
317
+ slidBoxContent: 'editTemplate',
318
+ restrictPersonalization: true,
319
+ isAnonymousType: true,
320
+ templateData: {
321
+ versions: {
322
+ ANDROID: {
323
+ base: {
324
+ title: '{{dynamicTitle}}',
325
+ expandibleDetails: {
326
+ message: 'Static body',
327
+ },
328
+ },
329
+ },
330
+ },
331
+ },
332
+ });
333
+
334
+ const updateBtn = screen.getByRole('button', { name: /update/i });
335
+ expect(updateBtn).toBeDisabled();
336
+ });
337
+
338
+ it('detects liquid tags {{ }} in iOS message body and disables buttons', () => {
339
+ const { hasSupportCKEditor } = require('../../../utils/common');
340
+ hasSupportCKEditor.mockReturnValue(false);
341
+
342
+ renderComponent({
343
+ ...baseFooterProps,
344
+ currentChannel: 'MOBILE_PUSH',
345
+ slidBoxContent: 'editTemplate',
346
+ restrictPersonalization: true,
347
+ isAnonymousType: true,
348
+ templateData: {
349
+ versions: {
350
+ IOS: {
351
+ base: {
352
+ title: 'Static',
353
+ expandibleDetails: {
354
+ message: 'Message with {{variable}}',
355
+ },
356
+ },
357
+ },
358
+ },
359
+ },
360
+ });
361
+
362
+ const updateBtn = screen.getByRole('button', { name: /update/i });
363
+ expect(updateBtn).toBeDisabled();
364
+ });
365
+
366
+ it('detects event context tags [ ] and disables buttons', () => {
367
+ const { hasSupportCKEditor } = require('../../../utils/common');
368
+ hasSupportCKEditor.mockReturnValue(false);
369
+
370
+ renderComponent({
371
+ ...baseFooterProps,
372
+ currentChannel: 'MOBILE_PUSH',
373
+ slidBoxContent: 'editTemplate',
374
+ restrictPersonalization: true,
375
+ isAnonymousType: true,
376
+ templateData: {
377
+ versions: {
378
+ ANDROID: {
379
+ base: {
380
+ title: 'Hello [eventContext]',
381
+ expandibleDetails: {
382
+ message: 'Body',
383
+ },
384
+ },
385
+ },
386
+ },
387
+ },
388
+ });
389
+
390
+ const updateBtn = screen.getByRole('button', { name: /update/i });
391
+ expect(updateBtn).toBeDisabled();
392
+ });
393
+
394
+ it('allows buttons when template has no personalization tokens', () => {
395
+ const { hasSupportCKEditor } = require('../../../utils/common');
396
+ hasSupportCKEditor.mockReturnValue(false);
397
+
398
+ renderComponent({
399
+ ...baseFooterProps,
400
+ currentChannel: 'MOBILE_PUSH',
401
+ slidBoxContent: 'editTemplate',
402
+ showTestAndPreviewButton: true,
403
+ restrictPersonalization: true,
404
+ isAnonymousType: true,
405
+ templateData: {
406
+ versions: {
407
+ ANDROID: {
408
+ base: {
409
+ title: 'Static Title',
410
+ expandibleDetails: {
411
+ message: 'Static Message Body',
412
+ },
413
+ },
414
+ },
415
+ IOS: {
416
+ base: {
417
+ title: 'iOS Title',
418
+ expandibleDetails: {
419
+ message: 'iOS Message',
420
+ },
421
+ },
422
+ },
423
+ },
424
+ },
425
+ });
426
+
427
+ const updateBtn = screen.getByRole('button', { name: /update/i });
428
+ expect(updateBtn).toBeEnabled();
429
+
430
+ const previewBtn = screen.getByRole('button', { name: /preview and test/i });
431
+ expect(previewBtn).toBeEnabled();
432
+ });
433
+
434
+ it('handles expandableDetails spelling variant (corrected spelling)', () => {
435
+ const { hasSupportCKEditor } = require('../../../utils/common');
436
+ hasSupportCKEditor.mockReturnValue(false);
437
+
438
+ renderComponent({
439
+ ...baseFooterProps,
440
+ currentChannel: 'MOBILE_PUSH',
441
+ slidBoxContent: 'editTemplate',
442
+ restrictPersonalization: true,
443
+ isAnonymousType: true,
444
+ templateData: {
445
+ versions: {
446
+ ANDROID: {
447
+ base: {
448
+ title: 'Static',
449
+ expandableDetails: { // correct spelling
450
+ message: 'Message with {{token}}',
451
+ },
452
+ },
453
+ },
454
+ },
455
+ },
456
+ });
457
+
458
+ const updateBtn = screen.getByRole('button', { name: /update/i });
459
+ expect(updateBtn).toBeDisabled();
460
+ });
461
+
462
+ it('checks both Android and iOS versions for tokens', () => {
463
+ const { hasSupportCKEditor } = require('../../../utils/common');
464
+ hasSupportCKEditor.mockReturnValue(false);
465
+
466
+ renderComponent({
467
+ ...baseFooterProps,
468
+ currentChannel: 'MOBILE_PUSH',
469
+ slidBoxContent: 'editTemplate',
470
+ restrictPersonalization: true,
471
+ isAnonymousType: true,
472
+ templateData: {
473
+ versions: {
474
+ ANDROID: {
475
+ base: {
476
+ title: 'Android Title',
477
+ expandibleDetails: {
478
+ message: 'Android Message',
479
+ },
480
+ },
481
+ },
482
+ IOS: {
483
+ base: {
484
+ title: 'iOS [context]',
485
+ expandibleDetails: {
486
+ message: 'iOS Message',
487
+ },
488
+ },
489
+ },
490
+ },
491
+ },
492
+ });
493
+
494
+ const updateBtn = screen.getByRole('button', { name: /update/i });
495
+ expect(updateBtn).toBeDisabled();
496
+ });
497
+
498
+ it('returns false when templateData is null', () => {
499
+ const { hasSupportCKEditor } = require('../../../utils/common');
500
+ hasSupportCKEditor.mockReturnValue(false);
501
+
502
+ renderComponent({
503
+ ...baseFooterProps,
504
+ currentChannel: 'MOBILE_PUSH',
505
+ slidBoxContent: 'editTemplate',
506
+ restrictPersonalization: true,
507
+ isAnonymousType: true,
508
+ templateData: null,
509
+ });
510
+
511
+ const updateBtn = screen.getByRole('button', { name: /update/i });
512
+ expect(updateBtn).toBeEnabled();
513
+ });
514
+
515
+ it('returns false when templateData is undefined', () => {
516
+ const { hasSupportCKEditor } = require('../../../utils/common');
517
+ hasSupportCKEditor.mockReturnValue(false);
518
+
519
+ renderComponent({
520
+ ...baseFooterProps,
521
+ currentChannel: 'MOBILE_PUSH',
522
+ slidBoxContent: 'editTemplate',
523
+ restrictPersonalization: true,
524
+ isAnonymousType: true,
525
+ templateData: undefined,
526
+ });
527
+
528
+ const updateBtn = screen.getByRole('button', { name: /update/i });
529
+ expect(updateBtn).toBeEnabled();
530
+ });
531
+ });
193
532
  });
@@ -1281,9 +1281,11 @@ exports[`Test SlideBoxContent container Should render correctly with isTestAndPr
1281
1281
  <Connect(UserIsAuthenticated(Component))
1282
1282
  date={0}
1283
1283
  getCmsTemplatesInProgress={false}
1284
+ isAnonymousType={false}
1284
1285
  isEditEmail={false}
1285
1286
  isTestAndPreviewMode={false}
1286
1287
  key="creatives-email-wrapper"
1288
+ restrictPersonalization={false}
1287
1289
  templateData={
1288
1290
  Object {
1289
1291
  "mode": "create",
@@ -1357,9 +1359,11 @@ exports[`Test SlideBoxContent container Should render correctly with isTestAndPr
1357
1359
  <Connect(UserIsAuthenticated(Component))
1358
1360
  date={0}
1359
1361
  getCmsTemplatesInProgress={false}
1362
+ isAnonymousType={false}
1360
1363
  isEditEmail={false}
1361
1364
  isTestAndPreviewMode={true}
1362
1365
  key="creatives-email-wrapper"
1366
+ restrictPersonalization={false}
1363
1367
  templateData={
1364
1368
  Object {
1365
1369
  "mode": "create",
@@ -1423,6 +1427,7 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should han
1423
1427
  <SlideBoxContent__CreativesWrapper>
1424
1428
  <_default
1425
1429
  getDefaultTags=""
1430
+ isAnonymousType={false}
1426
1431
  location={
1427
1432
  Object {
1428
1433
  "pathname": "/webpush/create",
@@ -1435,6 +1440,7 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should han
1435
1440
  }
1436
1441
  }
1437
1442
  onCreateComplete={[MockFunction]}
1443
+ restrictPersonalization={false}
1438
1444
  supportedTags={
1439
1445
  Array [
1440
1446
  "tag1",
@@ -1449,6 +1455,7 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should han
1449
1455
  <SlideBoxContent__CreativesWrapper>
1450
1456
  <_default
1451
1457
  getDefaultTags=""
1458
+ isAnonymousType={false}
1452
1459
  location={
1453
1460
  Object {
1454
1461
  "pathname": "/webpush/edit",
@@ -1466,6 +1473,7 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should han
1466
1473
  "id": "123",
1467
1474
  }
1468
1475
  }
1476
+ restrictPersonalization={false}
1469
1477
  supportedTags={
1470
1478
  Array [
1471
1479
  "tag1",
@@ -1500,6 +1508,7 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should han
1500
1508
  forwardedTags={Object {}}
1501
1509
  getDefaultTags=""
1502
1510
  handleClose={[MockFunction]}
1511
+ isAnonymousType={false}
1503
1512
  isFullMode={true}
1504
1513
  location={
1505
1514
  Object {
@@ -1513,6 +1522,7 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should han
1513
1522
  }
1514
1523
  }
1515
1524
  onCreateComplete={[MockFunction]}
1525
+ restrictPersonalization={false}
1516
1526
  selectedOfferDetails={Array []}
1517
1527
  supportedTags={
1518
1528
  Array [
@@ -1531,6 +1541,7 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should han
1531
1541
  forwardedTags={Object {}}
1532
1542
  getDefaultTags=""
1533
1543
  handleClose={[MockFunction]}
1544
+ isAnonymousType={false}
1534
1545
  isFullMode={true}
1535
1546
  location={
1536
1547
  Object {
@@ -1549,6 +1560,7 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should han
1549
1560
  "id": "123",
1550
1561
  }
1551
1562
  }
1563
+ restrictPersonalization={false}
1552
1564
  selectedOfferDetails={Array []}
1553
1565
  supportedTags={
1554
1566
  Array [
@@ -1579,6 +1591,7 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should ren
1579
1591
  <SlideBoxContent__CreativesWrapper>
1580
1592
  <_default
1581
1593
  getDefaultTags=""
1594
+ isAnonymousType={false}
1582
1595
  location={
1583
1596
  Object {
1584
1597
  "pathname": "/webpush/create",
@@ -1591,6 +1604,7 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should ren
1591
1604
  }
1592
1605
  }
1593
1606
  onCreateComplete={[MockFunction]}
1607
+ restrictPersonalization={false}
1594
1608
  supportedTags={Array []}
1595
1609
  />
1596
1610
  </SlideBoxContent__CreativesWrapper>
@@ -1600,6 +1614,7 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should ren
1600
1614
  <SlideBoxContent__CreativesWrapper>
1601
1615
  <_default
1602
1616
  getDefaultTags=""
1617
+ isAnonymousType={false}
1603
1618
  location={
1604
1619
  Object {
1605
1620
  "pathname": "/webpush/edit",
@@ -1617,6 +1632,7 @@ exports[`Test SlideBoxContent container WebPush channel functionality Should ren
1617
1632
  "id": "123",
1618
1633
  }
1619
1634
  }
1635
+ restrictPersonalization={false}
1620
1636
  supportedTags={Array []}
1621
1637
  templateData={
1622
1638
  Object {
@@ -3211,6 +3227,7 @@ exports[`Test SlideBoxContent container getViber utility function Should handle
3211
3227
  <SlideBoxContent__CreativesWrapper>
3212
3228
  <SmsWrapper
3213
3229
  getDefaultTags=""
3230
+ isAnonymousType={false}
3214
3231
  isComponent={true}
3215
3232
  isCreateSms={true}
3216
3233
  location={
@@ -3225,6 +3242,7 @@ exports[`Test SlideBoxContent container getViber utility function Should handle
3225
3242
  }
3226
3243
  }
3227
3244
  onCreateComplete={[MockFunction]}
3245
+ restrictPersonalization={false}
3228
3246
  route={
3229
3247
  Object {
3230
3248
  "name": "sms",
@@ -12,13 +12,16 @@ exports[`Test SlideBoxContent container campaign message, add creative click rcs
12
12
  closeIconType="close"
13
13
  content={
14
14
  <SlideBoxContent
15
+ channelsToHide={Array []}
15
16
  currentChannel="RCS"
17
+ customerType=""
16
18
  getFormData={[Function]}
17
19
  handleClose={[Function]}
18
20
  handleCloseTestAndPreview={[Function]}
19
21
  handleTestAndPreview={[Function]}
20
22
  hostName=""
21
23
  inAppEditorType={null}
24
+ isAnonymousType={false}
22
25
  isTestAndPreviewMode={false}
23
26
  loyaltyMetaData={
24
27
  Object {
@@ -38,6 +41,7 @@ exports[`Test SlideBoxContent container campaign message, add creative click rcs
38
41
  onInAppEditorTypeChange={[Function]}
39
42
  onInAppModeChange={[Function]}
40
43
  onMobilepushModeChange={[Function]}
44
+ onPersonalizationTokensChange={[Function]}
41
45
  onPreviewTemplate={[Function]}
42
46
  onRemoveTemplateName={[Function]}
43
47
  onResetStep={[Function]}
@@ -46,6 +50,7 @@ exports[`Test SlideBoxContent container campaign message, add creative click rcs
46
50
  onValidationFail={[Function]}
47
51
  onWeChatMaptemplateStepChange={[Function]}
48
52
  onWechatTemplateChange={[Function]}
53
+ restrictPersonalization={false}
49
54
  saveMessage={[Function]}
50
55
  setIsLoadingContent={[Function]}
51
56
  showLiquidErrorInFooter={[Function]}
@@ -103,13 +108,16 @@ exports[`Test SlideBoxContent container campaign message, add creative click wha
103
108
  closeIconType="close"
104
109
  content={
105
110
  <SlideBoxContent
111
+ channelsToHide={Array []}
106
112
  currentChannel="WHATSAPP"
113
+ customerType=""
107
114
  getFormData={[Function]}
108
115
  handleClose={[Function]}
109
116
  handleCloseTestAndPreview={[Function]}
110
117
  handleTestAndPreview={[Function]}
111
118
  hostName=""
112
119
  inAppEditorType={null}
120
+ isAnonymousType={false}
113
121
  isTestAndPreviewMode={false}
114
122
  loyaltyMetaData={
115
123
  Object {
@@ -129,6 +137,7 @@ exports[`Test SlideBoxContent container campaign message, add creative click wha
129
137
  onInAppEditorTypeChange={[Function]}
130
138
  onInAppModeChange={[Function]}
131
139
  onMobilepushModeChange={[Function]}
140
+ onPersonalizationTokensChange={[Function]}
132
141
  onPreviewTemplate={[Function]}
133
142
  onRemoveTemplateName={[Function]}
134
143
  onResetStep={[Function]}
@@ -137,6 +146,7 @@ exports[`Test SlideBoxContent container campaign message, add creative click wha
137
146
  onValidationFail={[Function]}
138
147
  onWeChatMaptemplateStepChange={[Function]}
139
148
  onWechatTemplateChange={[Function]}
149
+ restrictPersonalization={false}
140
150
  saveMessage={[Function]}
141
151
  setIsLoadingContent={[Function]}
142
152
  showLiquidErrorInFooter={[Function]}
@@ -194,13 +204,16 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
194
204
  closeIconType="close"
195
205
  content={
196
206
  <SlideBoxContent
207
+ channelsToHide={Array []}
197
208
  currentChannel="WHATSAPP"
209
+ customerType=""
198
210
  getFormData={[Function]}
199
211
  handleClose={[Function]}
200
212
  handleCloseTestAndPreview={[Function]}
201
213
  handleTestAndPreview={[Function]}
202
214
  hostName=""
203
215
  inAppEditorType={null}
216
+ isAnonymousType={false}
204
217
  isTestAndPreviewMode={false}
205
218
  loyaltyMetaData={
206
219
  Object {
@@ -220,6 +233,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
220
233
  onInAppEditorTypeChange={[Function]}
221
234
  onInAppModeChange={[Function]}
222
235
  onMobilepushModeChange={[Function]}
236
+ onPersonalizationTokensChange={[Function]}
223
237
  onPreviewTemplate={[Function]}
224
238
  onRemoveTemplateName={[Function]}
225
239
  onResetStep={[Function]}
@@ -228,6 +242,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
228
242
  onValidationFail={[Function]}
229
243
  onWeChatMaptemplateStepChange={[Function]}
230
244
  onWechatTemplateChange={[Function]}
245
+ restrictPersonalization={false}
231
246
  saveMessage={[Function]}
232
247
  setIsLoadingContent={[Function]}
233
248
  showLiquidErrorInFooter={[Function]}
@@ -257,6 +272,8 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
257
272
  }
258
273
  }
259
274
  fetchingCmsData={false}
275
+ formData={Array []}
276
+ hasPersonalizationTokenError={false}
260
277
  htmlEditorValidationState={
261
278
  Object {
262
279
  "errorsAcknowledged": false,
@@ -269,6 +286,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
269
286
  "validationComplete": false,
270
287
  }
271
288
  }
289
+ isAnonymousType={false}
272
290
  isContinueButtonDisabled={false}
273
291
  isCreatingTemplate={false}
274
292
  isEmptyContent={false}
@@ -280,6 +298,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit all data
280
298
  onEditTemplate={[Function]}
281
299
  onSave={[Function]}
282
300
  onTestAndPreview={[Function]}
301
+ restrictPersonalization={false}
283
302
  selectedEmailCreateMode={null}
284
303
  shouldShowContinueFooter={[Function]}
285
304
  shouldShowDoneFooter={[Function]}
@@ -323,13 +342,16 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
323
342
  closeIconType="close"
324
343
  content={
325
344
  <SlideBoxContent
345
+ channelsToHide={Array []}
326
346
  currentChannel="WHATSAPP"
347
+ customerType=""
327
348
  getFormData={[Function]}
328
349
  handleClose={[Function]}
329
350
  handleCloseTestAndPreview={[Function]}
330
351
  handleTestAndPreview={[Function]}
331
352
  hostName=""
332
353
  inAppEditorType={null}
354
+ isAnonymousType={false}
333
355
  isTestAndPreviewMode={false}
334
356
  loyaltyMetaData={
335
357
  Object {
@@ -349,6 +371,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
349
371
  onInAppEditorTypeChange={[Function]}
350
372
  onInAppModeChange={[Function]}
351
373
  onMobilepushModeChange={[Function]}
374
+ onPersonalizationTokensChange={[Function]}
352
375
  onPreviewTemplate={[Function]}
353
376
  onRemoveTemplateName={[Function]}
354
377
  onResetStep={[Function]}
@@ -357,6 +380,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
357
380
  onValidationFail={[Function]}
358
381
  onWeChatMaptemplateStepChange={[Function]}
359
382
  onWechatTemplateChange={[Function]}
383
+ restrictPersonalization={false}
360
384
  saveMessage={[Function]}
361
385
  setIsLoadingContent={[Function]}
362
386
  showLiquidErrorInFooter={[Function]}
@@ -386,6 +410,8 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
386
410
  }
387
411
  }
388
412
  fetchingCmsData={false}
413
+ formData={Array []}
414
+ hasPersonalizationTokenError={false}
389
415
  htmlEditorValidationState={
390
416
  Object {
391
417
  "errorsAcknowledged": false,
@@ -398,6 +424,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
398
424
  "validationComplete": false,
399
425
  }
400
426
  }
427
+ isAnonymousType={false}
401
428
  isContinueButtonDisabled={false}
402
429
  isCreatingTemplate={false}
403
430
  isEmptyContent={false}
@@ -409,6 +436,7 @@ exports[`Test SlideBoxContent container campaign message, whatsapp edit min data
409
436
  onEditTemplate={[Function]}
410
437
  onSave={[Function]}
411
438
  onTestAndPreview={[Function]}
439
+ restrictPersonalization={false}
412
440
  selectedEmailCreateMode={null}
413
441
  shouldShowContinueFooter={[Function]}
414
442
  shouldShowDoneFooter={[Function]}
@@ -452,13 +480,16 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
452
480
  closeIconType="close"
453
481
  content={
454
482
  <SlideBoxContent
483
+ channelsToHide={Array []}
455
484
  currentChannel="WHATSAPP"
485
+ customerType=""
456
486
  getFormData={[Function]}
457
487
  handleClose={[Function]}
458
488
  handleCloseTestAndPreview={[Function]}
459
489
  handleTestAndPreview={[Function]}
460
490
  hostName=""
461
491
  inAppEditorType={null}
492
+ isAnonymousType={false}
462
493
  isTestAndPreviewMode={false}
463
494
  loyaltyMetaData={
464
495
  Object {
@@ -478,6 +509,7 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
478
509
  onInAppEditorTypeChange={[Function]}
479
510
  onInAppModeChange={[Function]}
480
511
  onMobilepushModeChange={[Function]}
512
+ onPersonalizationTokensChange={[Function]}
481
513
  onPreviewTemplate={[Function]}
482
514
  onRemoveTemplateName={[Function]}
483
515
  onResetStep={[Function]}
@@ -486,6 +518,7 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
486
518
  onValidationFail={[Function]}
487
519
  onWeChatMaptemplateStepChange={[Function]}
488
520
  onWechatTemplateChange={[Function]}
521
+ restrictPersonalization={false}
489
522
  saveMessage={[Function]}
490
523
  setIsLoadingContent={[Function]}
491
524
  showLiquidErrorInFooter={[Function]}
@@ -515,6 +548,8 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
515
548
  }
516
549
  }
517
550
  fetchingCmsData={false}
551
+ formData={Array []}
552
+ hasPersonalizationTokenError={false}
518
553
  htmlEditorValidationState={
519
554
  Object {
520
555
  "errorsAcknowledged": false,
@@ -527,6 +562,7 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
527
562
  "validationComplete": false,
528
563
  }
529
564
  }
565
+ isAnonymousType={false}
530
566
  isContinueButtonDisabled={false}
531
567
  isCreatingTemplate={false}
532
568
  isEmptyContent={false}
@@ -538,6 +574,7 @@ exports[`Test SlideBoxContent container it should clear the url, on channel chan
538
574
  onEditTemplate={[Function]}
539
575
  onSave={[Function]}
540
576
  onTestAndPreview={[Function]}
577
+ restrictPersonalization={false}
541
578
  selectedEmailCreateMode={null}
542
579
  shouldShowContinueFooter={[Function]}
543
580
  shouldShowDoneFooter={[Function]}