@capillarytech/creatives-library 8.0.9 → 8.0.11

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 (46) hide show
  1. package/config/app.js +2 -0
  2. package/containers/App/constants.js +1 -0
  3. package/initialState.js +3 -0
  4. package/package.json +1 -1
  5. package/services/api.js +20 -0
  6. package/services/tests/api.test.js +148 -0
  7. package/utils/common.js +7 -0
  8. package/utils/commonUtils.js +7 -1
  9. package/utils/tagValidations.js +99 -1
  10. package/utils/tests/commonUtil.test.js +37 -1
  11. package/utils/tests/tagValidations.test.js +392 -2
  12. package/v2Components/Ckeditor/index.js +12 -10
  13. package/v2Components/ErrorInfoNote/index.js +89 -0
  14. package/v2Components/ErrorInfoNote/messages.js +29 -0
  15. package/v2Components/ErrorInfoNote/style.scss +72 -0
  16. package/v2Components/FormBuilder/_formBuilder.scss +4 -1
  17. package/v2Components/FormBuilder/index.js +171 -70
  18. package/v2Components/FormBuilder/messages.js +8 -0
  19. package/v2Containers/Cap/actions.js +8 -0
  20. package/v2Containers/Cap/constants.js +4 -0
  21. package/v2Containers/Cap/mockData.js +74 -0
  22. package/v2Containers/Cap/reducer.js +12 -0
  23. package/v2Containers/Cap/sagas.js +28 -1
  24. package/v2Containers/Cap/selectors.js +5 -0
  25. package/v2Containers/Cap/tests/__snapshots__/index.test.js.snap +1 -0
  26. package/v2Containers/Cap/tests/reducer.test.js +50 -0
  27. package/v2Containers/Cap/tests/saga.test.js +81 -1
  28. package/v2Containers/CreativesContainer/SlideBoxContent.js +7 -0
  29. package/v2Containers/CreativesContainer/SlideBoxFooter.js +40 -17
  30. package/v2Containers/CreativesContainer/constants.js +1 -0
  31. package/v2Containers/CreativesContainer/index.js +45 -4
  32. package/v2Containers/CreativesContainer/index.scss +13 -1
  33. package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +16 -0
  34. package/v2Containers/Email/_email.scss +3 -0
  35. package/v2Containers/Email/index.js +2 -0
  36. package/v2Containers/EmailWrapper/index.js +3 -0
  37. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +3 -0
  38. package/v2Containers/Line/Container/sagas.js +1 -1
  39. package/v2Containers/MobilePush/Edit/constants.js +2 -0
  40. package/v2Containers/MobilePush/Edit/index.js +91 -24
  41. package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +93 -0
  42. package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +12 -0
  43. package/v2Containers/Viber/constants.js +1 -1
  44. package/v2Containers/Viber/index.js +19 -19
  45. package/v2Containers/Viber/messages.js +0 -4
  46. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +12 -0
@@ -5325,11 +5325,14 @@ new message content.",
5325
5325
  Object {
5326
5326
  "app": Object {},
5327
5327
  "cap": Object {
5328
+ "fetchingLiquidTags": false,
5328
5329
  "fetchingSchema": true,
5329
5330
  "fetchingSchemaError": "",
5331
+ "liquidTags": Array [],
5330
5332
  "messages": Array [],
5331
5333
  "metaEntities": Object {
5332
5334
  "layouts": Array [],
5335
+ "tagLookupMap": Object {},
5333
5336
  "tags": Array [],
5334
5337
  },
5335
5338
  "orgID": "",
@@ -12856,11 +12859,14 @@ new message content.",
12856
12859
  Object {
12857
12860
  "app": Object {},
12858
12861
  "cap": Object {
12862
+ "fetchingLiquidTags": false,
12859
12863
  "fetchingSchema": true,
12860
12864
  "fetchingSchemaError": "",
12865
+ "liquidTags": Array [],
12861
12866
  "messages": Array [],
12862
12867
  "metaEntities": Object {
12863
12868
  "layouts": Array [],
12869
+ "tagLookupMap": Object {},
12864
12870
  "tags": Array [],
12865
12871
  },
12866
12872
  "orgID": "",
@@ -29694,11 +29700,14 @@ new message content.",
29694
29700
  Object {
29695
29701
  "app": Object {},
29696
29702
  "cap": Object {
29703
+ "fetchingLiquidTags": false,
29697
29704
  "fetchingSchema": true,
29698
29705
  "fetchingSchemaError": "",
29706
+ "liquidTags": Array [],
29699
29707
  "messages": Array [],
29700
29708
  "metaEntities": Object {
29701
29709
  "layouts": Array [],
29710
+ "tagLookupMap": Object {},
29702
29711
  "tags": Array [],
29703
29712
  },
29704
29713
  "orgID": "",
@@ -37225,11 +37234,14 @@ new message content.",
37225
37234
  Object {
37226
37235
  "app": Object {},
37227
37236
  "cap": Object {
37237
+ "fetchingLiquidTags": false,
37228
37238
  "fetchingSchema": true,
37229
37239
  "fetchingSchemaError": "",
37240
+ "liquidTags": Array [],
37230
37241
  "messages": Array [],
37231
37242
  "metaEntities": Object {
37232
37243
  "layouts": Array [],
37244
+ "tagLookupMap": Object {},
37233
37245
  "tags": Array [],
37234
37246
  },
37235
37247
  "orgID": "",
@@ -52587,11 +52599,14 @@ new message content.",
52587
52599
  Object {
52588
52600
  "app": Object {},
52589
52601
  "cap": Object {
52602
+ "fetchingLiquidTags": false,
52590
52603
  "fetchingSchema": true,
52591
52604
  "fetchingSchemaError": "",
52605
+ "liquidTags": Array [],
52592
52606
  "messages": Array [],
52593
52607
  "metaEntities": Object {
52594
52608
  "layouts": Array [],
52609
+ "tagLookupMap": Object {},
52595
52610
  "tags": Array [],
52596
52611
  },
52597
52612
  "orgID": "",
@@ -60118,11 +60133,14 @@ new message content.",
60118
60133
  Object {
60119
60134
  "app": Object {},
60120
60135
  "cap": Object {
60136
+ "fetchingLiquidTags": false,
60121
60137
  "fetchingSchema": true,
60122
60138
  "fetchingSchemaError": "",
60139
+ "liquidTags": Array [],
60123
60140
  "messages": Array [],
60124
60141
  "metaEntities": Object {
60125
60142
  "layouts": Array [],
60143
+ "tagLookupMap": Object {},
60126
60144
  "tags": Array [],
60127
60145
  },
60128
60146
  "orgID": "",
@@ -73223,11 +73241,14 @@ new message content.",
73223
73241
  Object {
73224
73242
  "app": Object {},
73225
73243
  "cap": Object {
73244
+ "fetchingLiquidTags": false,
73226
73245
  "fetchingSchema": true,
73227
73246
  "fetchingSchemaError": "",
73247
+ "liquidTags": Array [],
73228
73248
  "messages": Array [],
73229
73249
  "metaEntities": Object {
73230
73250
  "layouts": Array [],
73251
+ "tagLookupMap": Object {},
73231
73252
  "tags": Array [],
73232
73253
  },
73233
73254
  "orgID": "",
@@ -80754,11 +80775,14 @@ new message content.",
80754
80775
  Object {
80755
80776
  "app": Object {},
80756
80777
  "cap": Object {
80778
+ "fetchingLiquidTags": false,
80757
80779
  "fetchingSchema": true,
80758
80780
  "fetchingSchemaError": "",
80781
+ "liquidTags": Array [],
80759
80782
  "messages": Array [],
80760
80783
  "metaEntities": Object {
80761
80784
  "layouts": Array [],
80785
+ "tagLookupMap": Object {},
80762
80786
  "tags": Array [],
80763
80787
  },
80764
80788
  "orgID": "",
@@ -96054,11 +96078,14 @@ new message content.",
96054
96078
  Object {
96055
96079
  "app": Object {},
96056
96080
  "cap": Object {
96081
+ "fetchingLiquidTags": false,
96057
96082
  "fetchingSchema": true,
96058
96083
  "fetchingSchemaError": "",
96084
+ "liquidTags": Array [],
96059
96085
  "messages": Array [],
96060
96086
  "metaEntities": Object {
96061
96087
  "layouts": Array [],
96088
+ "tagLookupMap": Object {},
96062
96089
  "tags": Array [],
96063
96090
  },
96064
96091
  "orgID": "",
@@ -116964,11 +116991,14 @@ new message content.",
116964
116991
  Object {
116965
116992
  "app": Object {},
116966
116993
  "cap": Object {
116994
+ "fetchingLiquidTags": false,
116967
116995
  "fetchingSchema": true,
116968
116996
  "fetchingSchemaError": "",
116997
+ "liquidTags": Array [],
116969
116998
  "messages": Array [],
116970
116999
  "metaEntities": Object {
116971
117000
  "layouts": Array [],
117001
+ "tagLookupMap": Object {},
116972
117002
  "tags": Array [],
116973
117003
  },
116974
117004
  "orgID": "",
@@ -137768,11 +137798,14 @@ new message content.",
137768
137798
  Object {
137769
137799
  "app": Object {},
137770
137800
  "cap": Object {
137801
+ "fetchingLiquidTags": false,
137771
137802
  "fetchingSchema": true,
137772
137803
  "fetchingSchemaError": "",
137804
+ "liquidTags": Array [],
137773
137805
  "messages": Array [],
137774
137806
  "metaEntities": Object {
137775
137807
  "layouts": Array [],
137808
+ "tagLookupMap": Object {},
137776
137809
  "tags": Array [],
137777
137810
  },
137778
137811
  "orgID": "",
@@ -158678,11 +158711,14 @@ new message content.",
158678
158711
  Object {
158679
158712
  "app": Object {},
158680
158713
  "cap": Object {
158714
+ "fetchingLiquidTags": false,
158681
158715
  "fetchingSchema": true,
158682
158716
  "fetchingSchemaError": "",
158717
+ "liquidTags": Array [],
158683
158718
  "messages": Array [],
158684
158719
  "metaEntities": Object {
158685
158720
  "layouts": Array [],
158721
+ "tagLookupMap": Object {},
158686
158722
  "tags": Array [],
158687
158723
  },
158688
158724
  "orgID": "",
@@ -176733,11 +176769,14 @@ new message content.",
176733
176769
  Object {
176734
176770
  "app": Object {},
176735
176771
  "cap": Object {
176772
+ "fetchingLiquidTags": false,
176736
176773
  "fetchingSchema": true,
176737
176774
  "fetchingSchemaError": "",
176775
+ "liquidTags": Array [],
176738
176776
  "messages": Array [],
176739
176777
  "metaEntities": Object {
176740
176778
  "layouts": Array [],
176779
+ "tagLookupMap": Object {},
176741
176780
  "tags": Array [],
176742
176781
  },
176743
176782
  "orgID": "",
@@ -184264,11 +184303,14 @@ new message content.",
184264
184303
  Object {
184265
184304
  "app": Object {},
184266
184305
  "cap": Object {
184306
+ "fetchingLiquidTags": false,
184267
184307
  "fetchingSchema": true,
184268
184308
  "fetchingSchemaError": "",
184309
+ "liquidTags": Array [],
184269
184310
  "messages": Array [],
184270
184311
  "metaEntities": Object {
184271
184312
  "layouts": Array [],
184313
+ "tagLookupMap": Object {},
184272
184314
  "tags": Array [],
184273
184315
  },
184274
184316
  "orgID": "",
@@ -199573,11 +199615,14 @@ new message content.",
199573
199615
  Object {
199574
199616
  "app": Object {},
199575
199617
  "cap": Object {
199618
+ "fetchingLiquidTags": false,
199576
199619
  "fetchingSchema": true,
199577
199620
  "fetchingSchemaError": "",
199621
+ "liquidTags": Array [],
199578
199622
  "messages": Array [],
199579
199623
  "metaEntities": Object {
199580
199624
  "layouts": Array [],
199625
+ "tagLookupMap": Object {},
199581
199626
  "tags": Array [],
199582
199627
  },
199583
199628
  "orgID": "",
@@ -210296,11 +210341,14 @@ new message content.",
210296
210341
  Object {
210297
210342
  "app": Object {},
210298
210343
  "cap": Object {
210344
+ "fetchingLiquidTags": false,
210299
210345
  "fetchingSchema": true,
210300
210346
  "fetchingSchemaError": "",
210347
+ "liquidTags": Array [],
210301
210348
  "messages": Array [],
210302
210349
  "metaEntities": Object {
210303
210350
  "layouts": Array [],
210351
+ "tagLookupMap": Object {},
210304
210352
  "tags": Array [],
210305
210353
  },
210306
210354
  "orgID": "",
@@ -222805,11 +222853,14 @@ new message content.",
222805
222853
  Object {
222806
222854
  "app": Object {},
222807
222855
  "cap": Object {
222856
+ "fetchingLiquidTags": false,
222808
222857
  "fetchingSchema": true,
222809
222858
  "fetchingSchemaError": "",
222859
+ "liquidTags": Array [],
222810
222860
  "messages": Array [],
222811
222861
  "metaEntities": Object {
222812
222862
  "layouts": Array [],
222863
+ "tagLookupMap": Object {},
222813
222864
  "tags": Array [],
222814
222865
  },
222815
222866
  "orgID": "",
@@ -227095,11 +227146,14 @@ new message content.",
227095
227146
  Object {
227096
227147
  "app": Object {},
227097
227148
  "cap": Object {
227149
+ "fetchingLiquidTags": false,
227098
227150
  "fetchingSchema": true,
227099
227151
  "fetchingSchemaError": "",
227152
+ "liquidTags": Array [],
227100
227153
  "messages": Array [],
227101
227154
  "metaEntities": Object {
227102
227155
  "layouts": Array [],
227156
+ "tagLookupMap": Object {},
227103
227157
  "tags": Array [],
227104
227158
  },
227105
227159
  "orgID": "",
@@ -234626,11 +234680,14 @@ new message content.",
234626
234680
  Object {
234627
234681
  "app": Object {},
234628
234682
  "cap": Object {
234683
+ "fetchingLiquidTags": false,
234629
234684
  "fetchingSchema": true,
234630
234685
  "fetchingSchemaError": "",
234686
+ "liquidTags": Array [],
234631
234687
  "messages": Array [],
234632
234688
  "metaEntities": Object {
234633
234689
  "layouts": Array [],
234690
+ "tagLookupMap": Object {},
234634
234691
  "tags": Array [],
234635
234692
  },
234636
234693
  "orgID": "",
@@ -247753,11 +247810,14 @@ new message content.",
247753
247810
  Object {
247754
247811
  "app": Object {},
247755
247812
  "cap": Object {
247813
+ "fetchingLiquidTags": false,
247756
247814
  "fetchingSchema": true,
247757
247815
  "fetchingSchemaError": "",
247816
+ "liquidTags": Array [],
247758
247817
  "messages": Array [],
247759
247818
  "metaEntities": Object {
247760
247819
  "layouts": Array [],
247820
+ "tagLookupMap": Object {},
247761
247821
  "tags": Array [],
247762
247822
  },
247763
247823
  "orgID": "",
@@ -255278,11 +255338,14 @@ new message content.",
255278
255338
  Object {
255279
255339
  "app": Object {},
255280
255340
  "cap": Object {
255341
+ "fetchingLiquidTags": false,
255281
255342
  "fetchingSchema": true,
255282
255343
  "fetchingSchemaError": "",
255344
+ "liquidTags": Array [],
255283
255345
  "messages": Array [],
255284
255346
  "metaEntities": Object {
255285
255347
  "layouts": Array [],
255348
+ "tagLookupMap": Object {},
255286
255349
  "tags": Array [],
255287
255350
  },
255288
255351
  "orgID": "",
@@ -267829,11 +267892,14 @@ new message content.",
267829
267892
  Object {
267830
267893
  "app": Object {},
267831
267894
  "cap": Object {
267895
+ "fetchingLiquidTags": false,
267832
267896
  "fetchingSchema": true,
267833
267897
  "fetchingSchemaError": "",
267898
+ "liquidTags": Array [],
267834
267899
  "messages": Array [],
267835
267900
  "metaEntities": Object {
267836
267901
  "layouts": Array [],
267902
+ "tagLookupMap": Object {},
267837
267903
  "tags": Array [],
267838
267904
  },
267839
267905
  "orgID": "",
@@ -275360,11 +275426,14 @@ new message content.",
275360
275426
  Object {
275361
275427
  "app": Object {},
275362
275428
  "cap": Object {
275429
+ "fetchingLiquidTags": false,
275363
275430
  "fetchingSchema": true,
275364
275431
  "fetchingSchemaError": "",
275432
+ "liquidTags": Array [],
275365
275433
  "messages": Array [],
275366
275434
  "metaEntities": Object {
275367
275435
  "layouts": Array [],
275436
+ "tagLookupMap": Object {},
275368
275437
  "tags": Array [],
275369
275438
  },
275370
275439
  "orgID": "",
@@ -288188,11 +288257,14 @@ new message content.",
288188
288257
  Object {
288189
288258
  "app": Object {},
288190
288259
  "cap": Object {
288260
+ "fetchingLiquidTags": false,
288191
288261
  "fetchingSchema": true,
288192
288262
  "fetchingSchemaError": "",
288263
+ "liquidTags": Array [],
288193
288264
  "messages": Array [],
288194
288265
  "metaEntities": Object {
288195
288266
  "layouts": Array [],
288267
+ "tagLookupMap": Object {},
288196
288268
  "tags": Array [],
288197
288269
  },
288198
288270
  "orgID": "",
@@ -295719,11 +295791,14 @@ new message content.",
295719
295791
  Object {
295720
295792
  "app": Object {},
295721
295793
  "cap": Object {
295794
+ "fetchingLiquidTags": false,
295722
295795
  "fetchingSchema": true,
295723
295796
  "fetchingSchemaError": "",
295797
+ "liquidTags": Array [],
295724
295798
  "messages": Array [],
295725
295799
  "metaEntities": Object {
295726
295800
  "layouts": Array [],
295801
+ "tagLookupMap": Object {},
295727
295802
  "tags": Array [],
295728
295803
  },
295729
295804
  "orgID": "",
@@ -308831,11 +308906,14 @@ new message content.",
308831
308906
  Object {
308832
308907
  "app": Object {},
308833
308908
  "cap": Object {
308909
+ "fetchingLiquidTags": false,
308834
308910
  "fetchingSchema": true,
308835
308911
  "fetchingSchemaError": "",
308912
+ "liquidTags": Array [],
308836
308913
  "messages": Array [],
308837
308914
  "metaEntities": Object {
308838
308915
  "layouts": Array [],
308916
+ "tagLookupMap": Object {},
308839
308917
  "tags": Array [],
308840
308918
  },
308841
308919
  "orgID": "",
@@ -316362,11 +316440,14 @@ new message content.",
316362
316440
  Object {
316363
316441
  "app": Object {},
316364
316442
  "cap": Object {
316443
+ "fetchingLiquidTags": false,
316365
316444
  "fetchingSchema": true,
316366
316445
  "fetchingSchemaError": "",
316446
+ "liquidTags": Array [],
316367
316447
  "messages": Array [],
316368
316448
  "metaEntities": Object {
316369
316449
  "layouts": Array [],
316450
+ "tagLookupMap": Object {},
316370
316451
  "tags": Array [],
316371
316452
  },
316372
316453
  "orgID": "",
@@ -329190,11 +329271,14 @@ new message content.",
329190
329271
  Object {
329191
329272
  "app": Object {},
329192
329273
  "cap": Object {
329274
+ "fetchingLiquidTags": false,
329193
329275
  "fetchingSchema": true,
329194
329276
  "fetchingSchemaError": "",
329277
+ "liquidTags": Array [],
329195
329278
  "messages": Array [],
329196
329279
  "metaEntities": Object {
329197
329280
  "layouts": Array [],
329281
+ "tagLookupMap": Object {},
329198
329282
  "tags": Array [],
329199
329283
  },
329200
329284
  "orgID": "",
@@ -336721,11 +336805,14 @@ new message content.",
336721
336805
  Object {
336722
336806
  "app": Object {},
336723
336807
  "cap": Object {
336808
+ "fetchingLiquidTags": false,
336724
336809
  "fetchingSchema": true,
336725
336810
  "fetchingSchemaError": "",
336811
+ "liquidTags": Array [],
336726
336812
  "messages": Array [],
336727
336813
  "metaEntities": Object {
336728
336814
  "layouts": Array [],
336815
+ "tagLookupMap": Object {},
336729
336816
  "tags": Array [],
336730
336817
  },
336731
336818
  "orgID": "",
@@ -349840,11 +349927,14 @@ new message content.",
349840
349927
  Object {
349841
349928
  "app": Object {},
349842
349929
  "cap": Object {
349930
+ "fetchingLiquidTags": false,
349843
349931
  "fetchingSchema": true,
349844
349932
  "fetchingSchemaError": "",
349933
+ "liquidTags": Array [],
349845
349934
  "messages": Array [],
349846
349935
  "metaEntities": Object {
349847
349936
  "layouts": Array [],
349937
+ "tagLookupMap": Object {},
349848
349938
  "tags": Array [],
349849
349939
  },
349850
349940
  "orgID": "",
@@ -357371,11 +357461,14 @@ new message content.",
357371
357461
  Object {
357372
357462
  "app": Object {},
357373
357463
  "cap": Object {
357464
+ "fetchingLiquidTags": false,
357374
357465
  "fetchingSchema": true,
357375
357466
  "fetchingSchemaError": "",
357467
+ "liquidTags": Array [],
357376
357468
  "messages": Array [],
357377
357469
  "metaEntities": Object {
357378
357470
  "layouts": Array [],
357471
+ "tagLookupMap": Object {},
357379
357472
  "tags": Array [],
357380
357473
  },
357381
357474
  "orgID": "",
@@ -3195,11 +3195,14 @@ FREE GIFTS-
3195
3195
  Object {
3196
3196
  "app": Object {},
3197
3197
  "cap": Object {
3198
+ "fetchingLiquidTags": false,
3198
3199
  "fetchingSchema": true,
3199
3200
  "fetchingSchemaError": "",
3201
+ "liquidTags": Array [],
3200
3202
  "messages": Array [],
3201
3203
  "metaEntities": Object {
3202
3204
  "layouts": Array [],
3205
+ "tagLookupMap": Object {},
3203
3206
  "tags": Array [],
3204
3207
  },
3205
3208
  "orgID": "",
@@ -10525,11 +10528,14 @@ FREE GIFTS-
10525
10528
  Object {
10526
10529
  "app": Object {},
10527
10530
  "cap": Object {
10531
+ "fetchingLiquidTags": false,
10528
10532
  "fetchingSchema": true,
10529
10533
  "fetchingSchemaError": "",
10534
+ "liquidTags": Array [],
10530
10535
  "messages": Array [],
10531
10536
  "metaEntities": Object {
10532
10537
  "layouts": Array [],
10538
+ "tagLookupMap": Object {},
10533
10539
  "tags": Array [],
10534
10540
  },
10535
10541
  "orgID": "",
@@ -18275,11 +18281,14 @@ FREE GIFTS-
18275
18281
  Object {
18276
18282
  "app": Object {},
18277
18283
  "cap": Object {
18284
+ "fetchingLiquidTags": false,
18278
18285
  "fetchingSchema": true,
18279
18286
  "fetchingSchemaError": "",
18287
+ "liquidTags": Array [],
18280
18288
  "messages": Array [],
18281
18289
  "metaEntities": Object {
18282
18290
  "layouts": Array [],
18291
+ "tagLookupMap": Object {},
18283
18292
  "tags": Array [],
18284
18293
  },
18285
18294
  "orgID": "",
@@ -26134,11 +26143,14 @@ FREE GIFTS-
26134
26143
  Object {
26135
26144
  "app": Object {},
26136
26145
  "cap": Object {
26146
+ "fetchingLiquidTags": false,
26137
26147
  "fetchingSchema": true,
26138
26148
  "fetchingSchemaError": "",
26149
+ "liquidTags": Array [],
26139
26150
  "messages": Array [],
26140
26151
  "metaEntities": Object {
26141
26152
  "layouts": Array [],
26153
+ "tagLookupMap": Object {},
26142
26154
  "tags": Array [],
26143
26155
  },
26144
26156
  "orgID": "",
@@ -7,7 +7,7 @@ import messages from "./messages";
7
7
  export const DEFAULT_ACTION = 'app/v2Containers/Viber/DEFAULT_ACTION';
8
8
  export const ALLOWED_EXTENSIONS_REGEX = (/\.(jpe?g|png)$/i);
9
9
  export const VIBER_IMG_HEIGHT = 400;
10
- export const VIBER_IMG_WIDTH = 300;
10
+ export const VIBER_IMG_WIDTH = 400;
11
11
  export const VIBER_IMG_SIZE = 10000000;
12
12
  export const VIBER_VIDEO_SIZE = 209715200;
13
13
  export const charLimit = 1000;
@@ -17,7 +17,7 @@ import CapNotification from '@capillarytech/cap-ui-library/CapNotification';
17
17
  import CapTooltip from '@capillarytech/cap-ui-library/CapTooltip';
18
18
  import CapIcon from '@capillarytech/cap-ui-library/CapIcon';
19
19
  import CapRadioGroup from '@capillarytech/cap-ui-library/CapRadioGroup';
20
- import CapAskAira from '@capillarytech/cap-ui-library/CapAskAira';
20
+ import CapAskAira from '@capillarytech/cap-ui-library/CapAskAira';
21
21
  import { GA } from '@capillarytech/cap-ui-utils';
22
22
  import { makeSelectViber, makeSelectCreateViber } from './selectors';
23
23
  import * as viberActions from './actions';
@@ -26,7 +26,7 @@ import TemplatePreview from '../../v2Components/TemplatePreview';
26
26
  import { isUrl } from '../Line/Container/Wrapper/utils';
27
27
  import messages from './messages';
28
28
  import TagList from '../TagList';
29
- import { makeSelectMetaEntities, setInjectedTags,selectCurrentOrgDetails } from '../Cap/selectors';
29
+ import { makeSelectMetaEntities, setInjectedTags, selectCurrentOrgDetails } from '../Cap/selectors';
30
30
  import {
31
31
  ALLOWED_IMAGE_EXTENSIONS_REGEX_VIBER,
32
32
  ALLOWED_EXTENSIONS_VIDEO_REGEX_VIBER,
@@ -40,7 +40,7 @@ import {
40
40
  NONE,
41
41
  mediaRadioOptions,
42
42
  buttonRadioOptions,
43
- AI_CONTENT_BOT_DISABLED
43
+ AI_CONTENT_BOT_DISABLED,
44
44
  } from './constants';
45
45
  import withCreatives from '../../hoc/withCreatives';
46
46
  import { CREATE, EDIT, TRACK_CREATE_VIBER, TRACK_EDIT_VIBER } from '../App/constants';
@@ -74,7 +74,7 @@ export const Viber = (props) => {
74
74
  getFormSubscriptionData,
75
75
  viberData = {},
76
76
  selectedOfferDetails = [],
77
- currentOrgDetails
77
+ currentOrgDetails,
78
78
  } = props || {};
79
79
 
80
80
  const { formatMessage } = intl;
@@ -276,20 +276,20 @@ export const Viber = (props) => {
276
276
  selectedOfferDetails={selectedOfferDetails}
277
277
  />
278
278
  </CapColumn>
279
- <div className='viber-textarea-wrapper'>
280
- <TextArea
281
- id={"viber_textarea"}
282
- autosize={false}
283
- onChange={onTextContentChange}
284
- className={`${errorMessageTextarea ? "error" : ""}`}
285
- errorMessage={errorMessageTextarea}
286
- defaultValue={messageContent || ""}
287
- value={messageContent || ""}
288
- rows={5}
289
- cols={2}
290
- placeholder={formatMessage(messages.enterMessage)}
291
- />
292
- {!isAiContentBotDisabled && (
279
+ <div className="viber-textarea-wrapper">
280
+ <TextArea
281
+ id={"viber_textarea"}
282
+ autosize={false}
283
+ onChange={onTextContentChange}
284
+ className={`${errorMessageTextarea ? "error" : ""}`}
285
+ errorMessage={errorMessageTextarea}
286
+ defaultValue={messageContent || ""}
287
+ value={messageContent || ""}
288
+ rows={5}
289
+ cols={2}
290
+ placeholder={formatMessage(messages.enterMessage)}
291
+ />
292
+ {!isAiContentBotDisabled && (
293
293
  <CapAskAira.ContentGenerationBot
294
294
  text={messageContent || ""}
295
295
  setText={(text) => {
@@ -301,7 +301,7 @@ export const Viber = (props) => {
301
301
  bottom: "0.2rem",
302
302
  right: "0.2rem",
303
303
  left: "auto",
304
- position: "absolute"
304
+ position: "absolute",
305
305
  }}
306
306
  />
307
307
  )}
@@ -78,10 +78,6 @@ export default defineMessages({
78
78
  id: `${scope}.imageReUpload`,
79
79
  defaultMessage: 'Re upload',
80
80
  },
81
- imageDimenstionDescription: {
82
- id: `${scope}.imageDimenstionDescription`,
83
- defaultMessage: 'Dimensions: 300px x 400px',
84
- },
85
81
  imageSizeDescription: {
86
82
  id: `${scope}.imageSizeDescription`,
87
83
  defaultMessage: ' Size: 10mb',