@capillarytech/creatives-library 8.0.295 → 8.0.296

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 (39) hide show
  1. package/package.json +1 -1
  2. package/v2Components/CommonTestAndPreview/DeliverySettings/DeliverySettings.scss +33 -0
  3. package/v2Components/CommonTestAndPreview/DeliverySettings/ModifyDeliverySettings.js +425 -0
  4. package/v2Components/CommonTestAndPreview/DeliverySettings/ModifyDeliverySettings.scss +36 -0
  5. package/v2Components/CommonTestAndPreview/DeliverySettings/constants.js +92 -0
  6. package/v2Components/CommonTestAndPreview/DeliverySettings/index.js +251 -0
  7. package/v2Components/CommonTestAndPreview/DeliverySettings/messages.js +111 -0
  8. package/v2Components/CommonTestAndPreview/DeliverySettings/utils/parseSenderDetailsResponse.js +88 -0
  9. package/v2Components/CommonTestAndPreview/SendTestMessage.js +51 -1
  10. package/v2Components/CommonTestAndPreview/actions.js +20 -0
  11. package/v2Components/CommonTestAndPreview/constants.js +15 -0
  12. package/v2Components/CommonTestAndPreview/index.js +200 -16
  13. package/v2Components/CommonTestAndPreview/reducer.js +47 -0
  14. package/v2Components/CommonTestAndPreview/sagas.js +61 -0
  15. package/v2Components/CommonTestAndPreview/selectors.js +51 -0
  16. package/v2Components/CommonTestAndPreview/tests/DeliverySettings/ModifyDeliverySettings.test.js +889 -0
  17. package/v2Components/CommonTestAndPreview/tests/DeliverySettings/index.test.js +222 -0
  18. package/v2Components/CommonTestAndPreview/tests/DeliverySettings/utils/parseSenderDetailsResponse.test.js +235 -0
  19. package/v2Components/CommonTestAndPreview/tests/SendTestMessage.test.js +135 -0
  20. package/v2Components/CommonTestAndPreview/tests/actions.test.js +50 -0
  21. package/v2Components/CommonTestAndPreview/tests/constants.test.js +18 -0
  22. package/v2Components/CommonTestAndPreview/tests/index.test.js +783 -2
  23. package/v2Components/CommonTestAndPreview/tests/reducer.test.js +118 -0
  24. package/v2Components/CommonTestAndPreview/tests/sagas.test.js +145 -0
  25. package/v2Components/CommonTestAndPreview/tests/selectors.test.js +146 -0
  26. package/v2Components/FormBuilder/index.js +1 -1
  27. package/v2Components/HtmlEditor/HTMLEditor.js +0 -1
  28. package/v2Components/HtmlEditor/__tests__/HTMLEditor.test.js +0 -1
  29. package/v2Components/HtmlEditor/hooks/__tests__/useValidation.test.js +3 -132
  30. package/v2Components/HtmlEditor/hooks/useValidation.js +9 -12
  31. package/v2Components/HtmlEditor/utils/htmlValidator.js +2 -4
  32. package/v2Components/TestAndPreviewSlidebox/index.js +14 -0
  33. package/v2Containers/EmailWrapper/components/EmailHTMLEditor.js +2 -2
  34. package/v2Containers/EmailWrapper/components/__tests__/EmailHTMLEditor.test.js +18 -110
  35. package/v2Containers/Rcs/tests/__snapshots__/index.test.js.snap +697 -12
  36. package/v2Containers/SmsTrai/Edit/index.js +5 -1
  37. package/v2Containers/SmsTrai/Edit/tests/__snapshots__/index.test.js.snap +201 -0
  38. package/v2Containers/Whatsapp/index.js +1 -1
  39. package/v2Containers/Whatsapp/tests/__snapshots__/index.test.js.snap +26242 -4225
@@ -30,6 +30,12 @@ import {
30
30
  GET_PREFILLED_VALUES_REQUESTED,
31
31
  GET_PREFILLED_VALUES_SUCCESS,
32
32
  GET_PREFILLED_VALUES_FAILURE,
33
+ GET_SENDER_DETAILS_REQUESTED,
34
+ GET_SENDER_DETAILS_SUCCESS,
35
+ GET_SENDER_DETAILS_FAILURE,
36
+ GET_WECRM_ACCOUNTS_REQUESTED,
37
+ GET_WECRM_ACCOUNTS_SUCCESS,
38
+ GET_WECRM_ACCOUNTS_FAILURE,
33
39
  CLEAR_CUSTOMER_SEARCH_STATE,
34
40
  CLEAR_SEARCH_RESULTS,
35
41
  CLEAR_PREFILLED_VALUES,
@@ -137,6 +143,18 @@ describe('CommonTestAndPreview Constants', () => {
137
143
  expect(GET_PREFILLED_VALUES_FAILURE).toBe('app/CommonTestAndPreview/GET_PREFILLED_VALUES_FAILURE');
138
144
  });
139
145
 
146
+ it('should export all get sender details action types', () => {
147
+ expect(GET_SENDER_DETAILS_REQUESTED).toBe('app/CommonTestAndPreview/GET_SENDER_DETAILS_REQUESTED');
148
+ expect(GET_SENDER_DETAILS_SUCCESS).toBe('app/CommonTestAndPreview/GET_SENDER_DETAILS_SUCCESS');
149
+ expect(GET_SENDER_DETAILS_FAILURE).toBe('app/CommonTestAndPreview/GET_SENDER_DETAILS_FAILURE');
150
+ });
151
+
152
+ it('should export all get wecrm accounts action types', () => {
153
+ expect(GET_WECRM_ACCOUNTS_REQUESTED).toBe('app/CommonTestAndPreview/GET_WECRM_ACCOUNTS_REQUESTED');
154
+ expect(GET_WECRM_ACCOUNTS_SUCCESS).toBe('app/CommonTestAndPreview/GET_WECRM_ACCOUNTS_SUCCESS');
155
+ expect(GET_WECRM_ACCOUNTS_FAILURE).toBe('app/CommonTestAndPreview/GET_WECRM_ACCOUNTS_FAILURE');
156
+ });
157
+
140
158
  it('should export all clear action types', () => {
141
159
  expect(CLEAR_CUSTOMER_SEARCH_STATE).toBe('app/CommonTestAndPreview/CLEAR_CUSTOMER_SEARCH_STATE');
142
160
  expect(CLEAR_SEARCH_RESULTS).toBe('app/CommonTestAndPreview/CLEAR_SEARCH_RESULTS');