@capillarytech/creatives-library 8.0.246-alpha.0 → 8.0.246

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 (133) hide show
  1. package/assets/Android.png +0 -0
  2. package/assets/iOS.png +0 -0
  3. package/constants/unified.js +1 -2
  4. package/initialReducer.js +0 -2
  5. package/package.json +1 -1
  6. package/services/api.js +0 -10
  7. package/services/tests/api.test.js +0 -18
  8. package/utils/common.js +0 -5
  9. package/utils/commonUtils.js +5 -28
  10. package/utils/tests/commonUtil.test.js +0 -224
  11. package/utils/transformTemplateConfig.js +10 -0
  12. package/v2Components/CapDeviceContent/index.js +56 -61
  13. package/v2Components/CapTagList/index.js +1 -6
  14. package/v2Components/CapTagListWithInput/index.js +1 -5
  15. package/v2Components/CapTagListWithInput/messages.js +1 -1
  16. package/v2Components/CapWhatsappCTA/tests/index.test.js +0 -5
  17. package/v2Components/ErrorInfoNote/index.js +72 -447
  18. package/v2Components/ErrorInfoNote/messages.js +0 -22
  19. package/v2Components/ErrorInfoNote/style.scss +4 -280
  20. package/v2Components/FormBuilder/tests/index.test.js +4 -13
  21. package/v2Components/HtmlEditor/HTMLEditor.js +94 -642
  22. package/v2Components/HtmlEditor/__tests__/HTMLEditor.test.js +133 -1135
  23. package/v2Components/HtmlEditor/__tests__/index.lazy.test.js +16 -27
  24. package/v2Components/HtmlEditor/_htmlEditor.scss +45 -108
  25. package/v2Components/HtmlEditor/_index.lazy.scss +1 -1
  26. package/v2Components/HtmlEditor/components/CodeEditorPane/_codeEditorPane.scss +101 -13
  27. package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +139 -148
  28. package/v2Components/HtmlEditor/components/DeviceToggle/_deviceToggle.scss +1 -2
  29. package/v2Components/HtmlEditor/components/DeviceToggle/index.js +3 -3
  30. package/v2Components/HtmlEditor/components/EditorToolbar/_editorToolbar.scss +0 -9
  31. package/v2Components/HtmlEditor/components/EditorToolbar/index.js +1 -1
  32. package/v2Components/HtmlEditor/components/FullscreenModal/_fullscreenModal.scss +0 -22
  33. package/v2Components/HtmlEditor/components/InAppPreviewPane/DeviceFrame.js +7 -4
  34. package/v2Components/HtmlEditor/components/InAppPreviewPane/__tests__/DeviceFrame.test.js +45 -35
  35. package/v2Components/HtmlEditor/components/InAppPreviewPane/_inAppPreviewPane.scss +3 -1
  36. package/v2Components/HtmlEditor/components/InAppPreviewPane/constants.js +33 -33
  37. package/v2Components/HtmlEditor/components/InAppPreviewPane/index.js +6 -7
  38. package/v2Components/HtmlEditor/components/PreviewPane/_previewPane.scss +6 -3
  39. package/v2Components/HtmlEditor/components/PreviewPane/index.js +13 -11
  40. package/v2Components/HtmlEditor/components/SplitContainer/_splitContainer.scss +1 -1
  41. package/v2Components/HtmlEditor/components/ValidationErrorDisplay/__tests__/index.test.js +152 -0
  42. package/v2Components/HtmlEditor/components/ValidationErrorDisplay/index.js +31 -49
  43. package/v2Components/HtmlEditor/constants.js +20 -29
  44. package/v2Components/HtmlEditor/hooks/__tests__/useInAppContent.test.js +16 -373
  45. package/v2Components/HtmlEditor/hooks/useEditorContent.js +2 -5
  46. package/v2Components/HtmlEditor/hooks/useInAppContent.js +146 -88
  47. package/v2Components/HtmlEditor/hooks/useValidation.js +45 -150
  48. package/v2Components/HtmlEditor/index.js +1 -1
  49. package/v2Components/HtmlEditor/messages.js +85 -95
  50. package/v2Components/HtmlEditor/utils/liquidTemplateSupport.js +102 -134
  51. package/v2Components/HtmlEditor/utils/properSyntaxHighlighting.js +25 -23
  52. package/v2Components/HtmlEditor/utils/validationAdapter.js +41 -66
  53. package/v2Components/MobilePushPreviewV2/index.js +7 -32
  54. package/v2Components/TemplatePreview/_templatePreview.scss +24 -44
  55. package/v2Components/TemplatePreview/index.js +32 -47
  56. package/v2Components/TemplatePreview/messages.js +0 -4
  57. package/v2Components/TestAndPreviewSlidebox/_testAndPreviewSlidebox.scss +0 -1
  58. package/v2Components/TestAndPreviewSlidebox/index.js +25 -31
  59. package/v2Containers/BeeEditor/index.js +90 -172
  60. package/v2Containers/CreativesContainer/SlideBoxContent.js +51 -128
  61. package/v2Containers/CreativesContainer/SlideBoxFooter.js +12 -113
  62. package/v2Containers/CreativesContainer/SlideBoxHeader.js +1 -2
  63. package/v2Containers/CreativesContainer/constants.js +0 -1
  64. package/v2Containers/CreativesContainer/index.js +46 -238
  65. package/v2Containers/CreativesContainer/messages.js +0 -8
  66. package/v2Containers/CreativesContainer/tests/SlideBoxFooter.test.js +2 -11
  67. package/v2Containers/CreativesContainer/tests/__snapshots__/SlideBoxContent.test.js.snap +50 -38
  68. package/v2Containers/CreativesContainer/tests/__snapshots__/index.test.js.snap +0 -91
  69. package/v2Containers/Email/actions.js +0 -7
  70. package/v2Containers/Email/constants.js +1 -5
  71. package/v2Containers/Email/index.js +30 -229
  72. package/v2Containers/Email/messages.js +0 -32
  73. package/v2Containers/Email/reducer.js +1 -12
  74. package/v2Containers/Email/sagas.js +7 -61
  75. package/v2Containers/Email/tests/__snapshots__/reducer.test.js.snap +0 -2
  76. package/v2Containers/Email/tests/sagas.test.js +1 -1
  77. package/v2Containers/EmailWrapper/components/EmailWrapperView.js +15 -210
  78. package/v2Containers/EmailWrapper/components/HTMLEditorTesting.js +74 -40
  79. package/v2Containers/EmailWrapper/components/__tests__/HTMLEditorTesting.test.js +67 -2
  80. package/v2Containers/EmailWrapper/constants.js +0 -2
  81. package/v2Containers/EmailWrapper/hooks/useEmailWrapper.js +77 -629
  82. package/v2Containers/EmailWrapper/index.js +23 -103
  83. package/v2Containers/EmailWrapper/messages.js +1 -61
  84. package/v2Containers/EmailWrapper/tests/EmailWrapperView.test.js +214 -0
  85. package/v2Containers/EmailWrapper/tests/useEmailWrapper.test.js +77 -509
  86. package/v2Containers/InApp/actions.js +0 -7
  87. package/v2Containers/InApp/constants.js +4 -20
  88. package/v2Containers/InApp/index.js +357 -801
  89. package/v2Containers/InApp/index.scss +3 -4
  90. package/v2Containers/InApp/messages.js +3 -7
  91. package/v2Containers/InApp/reducer.js +3 -21
  92. package/v2Containers/InApp/sagas.js +9 -29
  93. package/v2Containers/InApp/selectors.js +5 -25
  94. package/v2Containers/InApp/tests/index.test.js +50 -154
  95. package/v2Containers/InApp/tests/reducer.test.js +0 -34
  96. package/v2Containers/InApp/tests/sagas.test.js +9 -61
  97. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/content.test.js.snap +0 -3
  98. package/v2Containers/Line/Container/ImageCarousel/tests/__snapshots__/index.test.js.snap +0 -2
  99. package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +0 -2
  100. package/v2Containers/Line/Container/tests/__snapshots__/index.test.js.snap +0 -9
  101. package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +0 -12
  102. package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +0 -4
  103. package/v2Containers/TagList/index.js +19 -62
  104. package/v2Containers/Templates/_templates.scss +1 -60
  105. package/v2Containers/Templates/index.js +4 -89
  106. package/v2Containers/Templates/messages.js +0 -4
  107. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +0 -35
  108. package/v2Components/HtmlEditor/__tests__/HTMLEditor.apiErrors.test.js +0 -874
  109. package/v2Components/HtmlEditor/components/ValidationTabs/_validationTabs.scss +0 -254
  110. package/v2Components/HtmlEditor/components/ValidationTabs/index.js +0 -363
  111. package/v2Components/HtmlEditor/components/ValidationTabs/messages.js +0 -51
  112. package/v2Components/HtmlEditor/hooks/__tests__/useValidation.apiErrors.test.js +0 -630
  113. package/v2Containers/BeePopupEditor/constants.js +0 -10
  114. package/v2Containers/BeePopupEditor/index.js +0 -193
  115. package/v2Containers/BeePopupEditor/tests/index.test.js +0 -627
  116. package/v2Containers/EmailWrapper/components/EmailHTMLEditor.js +0 -1317
  117. package/v2Containers/EmailWrapper/components/__tests__/EmailHTMLEditor.test.js +0 -1605
  118. package/v2Containers/EmailWrapper/components/__tests__/EmailWrapperView.test.js +0 -520
  119. package/v2Containers/EmailWrapper/tests/useEmailWrapper.edgeCases.test.js +0 -643
  120. package/v2Containers/InApp/__tests__/InAppHTMLEditor.test.js +0 -376
  121. package/v2Containers/InApp/__tests__/sagas.test.js +0 -363
  122. package/v2Containers/InApp/tests/selectors.test.js +0 -612
  123. package/v2Containers/InAppWrapper/components/InAppWrapperView.js +0 -162
  124. package/v2Containers/InAppWrapper/components/__tests__/InAppWrapperView.test.js +0 -267
  125. package/v2Containers/InAppWrapper/components/inAppWrapperView.scss +0 -9
  126. package/v2Containers/InAppWrapper/constants.js +0 -16
  127. package/v2Containers/InAppWrapper/hooks/__tests__/useInAppWrapper.test.js +0 -473
  128. package/v2Containers/InAppWrapper/hooks/useInAppWrapper.js +0 -198
  129. package/v2Containers/InAppWrapper/index.js +0 -148
  130. package/v2Containers/InAppWrapper/messages.js +0 -49
  131. package/v2Containers/InappAdvance/index.js +0 -1099
  132. package/v2Containers/InappAdvance/index.scss +0 -10
  133. package/v2Containers/InappAdvance/tests/index.test.js +0 -448
@@ -2281,7 +2281,6 @@ new message content.",
2281
2281
  "email": [Function],
2282
2282
  "facebookPreview": [Function],
2283
2283
  "gallery": [Function],
2284
- "inApp": [Function],
2285
2284
  "language": [Function],
2286
2285
  "navigationConfig": [Function],
2287
2286
  "previewAndTest": [Function],
@@ -19029,7 +19028,6 @@ new message content.",
19029
19028
  "email": [Function],
19030
19029
  "facebookPreview": [Function],
19031
19030
  "gallery": [Function],
19032
- "inApp": [Function],
19033
19031
  "language": [Function],
19034
19032
  "navigationConfig": [Function],
19035
19033
  "previewAndTest": [Function],
@@ -35741,7 +35739,6 @@ new message content.",
35741
35739
  "email": [Function],
35742
35740
  "facebookPreview": [Function],
35743
35741
  "gallery": [Function],
35744
- "inApp": [Function],
35745
35742
  "language": [Function],
35746
35743
  "navigationConfig": [Function],
35747
35744
  "previewAndTest": [Function],
@@ -54373,7 +54370,6 @@ new message content.",
54373
54370
  "email": [Function],
54374
54371
  "facebookPreview": [Function],
54375
54372
  "gallery": [Function],
54376
- "inApp": [Function],
54377
54373
  "language": [Function],
54378
54374
  "navigationConfig": [Function],
54379
54375
  "previewAndTest": [Function],
@@ -73223,7 +73219,6 @@ new message content.",
73223
73219
  "email": [Function],
73224
73220
  "facebookPreview": [Function],
73225
73221
  "gallery": [Function],
73226
- "inApp": [Function],
73227
73222
  "language": [Function],
73228
73223
  "navigationConfig": [Function],
73229
73224
  "previewAndTest": [Function],
@@ -92830,7 +92825,6 @@ new message content.",
92830
92825
  "email": [Function],
92831
92826
  "facebookPreview": [Function],
92832
92827
  "gallery": [Function],
92833
- "inApp": [Function],
92834
92828
  "language": [Function],
92835
92829
  "navigationConfig": [Function],
92836
92830
  "previewAndTest": [Function],
@@ -109552,7 +109546,6 @@ new message content.",
109552
109546
  "email": [Function],
109553
109547
  "facebookPreview": [Function],
109554
109548
  "gallery": [Function],
109555
- "inApp": [Function],
109556
109549
  "language": [Function],
109557
109550
  "navigationConfig": [Function],
109558
109551
  "previewAndTest": [Function],
@@ -126264,7 +126257,6 @@ new message content.",
126264
126257
  "email": [Function],
126265
126258
  "facebookPreview": [Function],
126266
126259
  "gallery": [Function],
126267
- "inApp": [Function],
126268
126260
  "language": [Function],
126269
126261
  "navigationConfig": [Function],
126270
126262
  "previewAndTest": [Function],
@@ -145448,7 +145440,6 @@ new message content.",
145448
145440
  "email": [Function],
145449
145441
  "facebookPreview": [Function],
145450
145442
  "gallery": [Function],
145451
- "inApp": [Function],
145452
145443
  "language": [Function],
145453
145444
  "navigationConfig": [Function],
145454
145445
  "previewAndTest": [Function],
@@ -164850,7 +164841,6 @@ new message content.",
164850
164841
  "email": [Function],
164851
164842
  "facebookPreview": [Function],
164852
164843
  "gallery": [Function],
164853
- "inApp": [Function],
164854
164844
  "language": [Function],
164855
164845
  "navigationConfig": [Function],
164856
164846
  "previewAndTest": [Function],
@@ -185009,7 +184999,6 @@ new message content.",
185009
184999
  "email": [Function],
185010
185000
  "facebookPreview": [Function],
185011
185001
  "gallery": [Function],
185012
- "inApp": [Function],
185013
185002
  "language": [Function],
185014
185003
  "navigationConfig": [Function],
185015
185004
  "previewAndTest": [Function],
@@ -205380,7 +205369,6 @@ new message content.",
205380
205369
  "email": [Function],
205381
205370
  "facebookPreview": [Function],
205382
205371
  "gallery": [Function],
205383
- "inApp": [Function],
205384
205372
  "language": [Function],
205385
205373
  "navigationConfig": [Function],
205386
205374
  "previewAndTest": [Function],
@@ -216246,7 +216234,6 @@ new message content.",
216246
216234
  "email": [Function],
216247
216235
  "facebookPreview": [Function],
216248
216236
  "gallery": [Function],
216249
- "inApp": [Function],
216250
216237
  "language": [Function],
216251
216238
  "navigationConfig": [Function],
216252
216239
  "previewAndTest": [Function],
@@ -224396,7 +224383,6 @@ new message content.",
224396
224383
  "email": [Function],
224397
224384
  "facebookPreview": [Function],
224398
224385
  "gallery": [Function],
224399
- "inApp": [Function],
224400
224386
  "language": [Function],
224401
224387
  "navigationConfig": [Function],
224402
224388
  "previewAndTest": [Function],
@@ -232982,7 +232968,6 @@ new message content.",
232982
232968
  "email": [Function],
232983
232969
  "facebookPreview": [Function],
232984
232970
  "gallery": [Function],
232985
- "inApp": [Function],
232986
232971
  "language": [Function],
232987
232972
  "navigationConfig": [Function],
232988
232973
  "previewAndTest": [Function],
@@ -246291,7 +246276,6 @@ new message content.",
246291
246276
  "email": [Function],
246292
246277
  "facebookPreview": [Function],
246293
246278
  "gallery": [Function],
246294
- "inApp": [Function],
246295
246279
  "language": [Function],
246296
246280
  "navigationConfig": [Function],
246297
246281
  "previewAndTest": [Function],
@@ -260950,7 +260934,6 @@ new message content.",
260950
260934
  "email": [Function],
260951
260935
  "facebookPreview": [Function],
260952
260936
  "gallery": [Function],
260953
- "inApp": [Function],
260954
260937
  "language": [Function],
260955
260938
  "navigationConfig": [Function],
260956
260939
  "previewAndTest": [Function],
@@ -272149,7 +272132,6 @@ new message content.",
272149
272132
  "email": [Function],
272150
272133
  "facebookPreview": [Function],
272151
272134
  "gallery": [Function],
272152
- "inApp": [Function],
272153
272135
  "language": [Function],
272154
272136
  "navigationConfig": [Function],
272155
272137
  "previewAndTest": [Function],
@@ -288861,7 +288843,6 @@ new message content.",
288861
288843
  "email": [Function],
288862
288844
  "facebookPreview": [Function],
288863
288845
  "gallery": [Function],
288864
- "inApp": [Function],
288865
288846
  "language": [Function],
288866
288847
  "navigationConfig": [Function],
288867
288848
  "previewAndTest": [Function],
@@ -308045,7 +308026,6 @@ new message content.",
308045
308026
  "email": [Function],
308046
308027
  "facebookPreview": [Function],
308047
308028
  "gallery": [Function],
308048
- "inApp": [Function],
308049
308029
  "language": [Function],
308050
308030
  "navigationConfig": [Function],
308051
308031
  "previewAndTest": [Function],
@@ -324757,7 +324737,6 @@ new message content.",
324757
324737
  "email": [Function],
324758
324738
  "facebookPreview": [Function],
324759
324739
  "gallery": [Function],
324760
- "inApp": [Function],
324761
324740
  "language": [Function],
324762
324741
  "navigationConfig": [Function],
324763
324742
  "previewAndTest": [Function],
@@ -341695,7 +341674,6 @@ new message content.",
341695
341674
  "email": [Function],
341696
341675
  "facebookPreview": [Function],
341697
341676
  "gallery": [Function],
341698
- "inApp": [Function],
341699
341677
  "language": [Function],
341700
341678
  "navigationConfig": [Function],
341701
341679
  "previewAndTest": [Function],
@@ -358873,7 +358851,6 @@ new message content.",
358873
358851
  "email": [Function],
358874
358852
  "facebookPreview": [Function],
358875
358853
  "gallery": [Function],
358876
- "inApp": [Function],
358877
358854
  "language": [Function],
358878
358855
  "navigationConfig": [Function],
358879
358856
  "previewAndTest": [Function],
@@ -376277,7 +376254,6 @@ new message content.",
376277
376254
  "email": [Function],
376278
376255
  "facebookPreview": [Function],
376279
376256
  "gallery": [Function],
376280
- "inApp": [Function],
376281
376257
  "language": [Function],
376282
376258
  "navigationConfig": [Function],
376283
376259
  "previewAndTest": [Function],
@@ -393922,7 +393898,6 @@ new message content.",
393922
393898
  "email": [Function],
393923
393899
  "facebookPreview": [Function],
393924
393900
  "gallery": [Function],
393925
- "inApp": [Function],
393926
393901
  "language": [Function],
393927
393902
  "navigationConfig": [Function],
393928
393903
  "previewAndTest": [Function],
@@ -411807,7 +411782,6 @@ new message content.",
411807
411782
  "email": [Function],
411808
411783
  "facebookPreview": [Function],
411809
411784
  "gallery": [Function],
411810
- "inApp": [Function],
411811
411785
  "language": [Function],
411812
411786
  "navigationConfig": [Function],
411813
411787
  "previewAndTest": [Function],
@@ -429929,7 +429903,6 @@ new message content.",
429929
429903
  "email": [Function],
429930
429904
  "facebookPreview": [Function],
429931
429905
  "gallery": [Function],
429932
- "inApp": [Function],
429933
429906
  "language": [Function],
429934
429907
  "navigationConfig": [Function],
429935
429908
  "previewAndTest": [Function],
@@ -448288,7 +448261,6 @@ new message content.",
448288
448261
  "email": [Function],
448289
448262
  "facebookPreview": [Function],
448290
448263
  "gallery": [Function],
448291
- "inApp": [Function],
448292
448264
  "language": [Function],
448293
448265
  "navigationConfig": [Function],
448294
448266
  "previewAndTest": [Function],
@@ -466885,7 +466857,6 @@ new message content.",
466885
466857
  "email": [Function],
466886
466858
  "facebookPreview": [Function],
466887
466859
  "gallery": [Function],
466888
- "inApp": [Function],
466889
466860
  "language": [Function],
466890
466861
  "navigationConfig": [Function],
466891
466862
  "previewAndTest": [Function],
@@ -483844,7 +483815,6 @@ new message content.",
483844
483815
  "email": [Function],
483845
483816
  "facebookPreview": [Function],
483846
483817
  "gallery": [Function],
483847
- "inApp": [Function],
483848
483818
  "language": [Function],
483849
483819
  "navigationConfig": [Function],
483850
483820
  "previewAndTest": [Function],
@@ -501036,7 +501006,6 @@ new message content.",
501036
501006
  "email": [Function],
501037
501007
  "facebookPreview": [Function],
501038
501008
  "gallery": [Function],
501039
- "inApp": [Function],
501040
501009
  "language": [Function],
501041
501010
  "navigationConfig": [Function],
501042
501011
  "previewAndTest": [Function],
@@ -518485,7 +518454,6 @@ new message content.",
518485
518454
  "email": [Function],
518486
518455
  "facebookPreview": [Function],
518487
518456
  "gallery": [Function],
518488
- "inApp": [Function],
518489
518457
  "language": [Function],
518490
518458
  "navigationConfig": [Function],
518491
518459
  "previewAndTest": [Function],
@@ -535197,7 +535165,6 @@ new message content.",
535197
535165
  "email": [Function],
535198
535166
  "facebookPreview": [Function],
535199
535167
  "gallery": [Function],
535200
- "inApp": [Function],
535201
535168
  "language": [Function],
535202
535169
  "navigationConfig": [Function],
535203
535170
  "previewAndTest": [Function],
@@ -554160,7 +554127,6 @@ new message content.",
554160
554127
  "email": [Function],
554161
554128
  "facebookPreview": [Function],
554162
554129
  "gallery": [Function],
554163
- "inApp": [Function],
554164
554130
  "language": [Function],
554165
554131
  "navigationConfig": [Function],
554166
554132
  "previewAndTest": [Function],
@@ -573205,7 +573171,6 @@ new message content.",
573205
573171
  "email": [Function],
573206
573172
  "facebookPreview": [Function],
573207
573173
  "gallery": [Function],
573208
- "inApp": [Function],
573209
573174
  "language": [Function],
573210
573175
  "navigationConfig": [Function],
573211
573176
  "previewAndTest": [Function],