@capillarytech/creatives-library 8.0.306 → 8.0.307-alpha.5

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/package.json +1 -1
  2. package/utils/commonUtils.js +3 -1
  3. package/utils/tagValidations.js +12 -4
  4. package/utils/tests/tagValidations.test.js +34 -0
  5. package/v2Components/CapTagListWithInput/index.js +4 -0
  6. package/v2Components/CapWhatsappCTA/index.js +2 -0
  7. package/v2Components/FormBuilder/index.js +15 -0
  8. package/v2Components/HtmlEditor/HTMLEditor.js +5 -0
  9. package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +3 -0
  10. package/v2Containers/BeeEditor/index.js +3 -0
  11. package/v2Containers/CreativesContainer/SlideBoxContent.js +25 -0
  12. package/v2Containers/CreativesContainer/index.js +3 -0
  13. package/v2Containers/Email/index.js +1 -0
  14. package/v2Containers/EmailWrapper/components/EmailHTMLEditor.js +10 -1
  15. package/v2Containers/EmailWrapper/components/EmailWrapperView.js +3 -0
  16. package/v2Containers/EmailWrapper/components/__tests__/EmailHTMLEditor.test.js +1 -0
  17. package/v2Containers/EmailWrapper/components/__tests__/EmailWrapperView.test.js +1 -0
  18. package/v2Containers/EmailWrapper/hooks/useEmailWrapper.js +3 -0
  19. package/v2Containers/EmailWrapper/index.js +4 -0
  20. package/v2Containers/EmailWrapper/tests/useEmailWrapper.edgeCases.test.js +1 -0
  21. package/v2Containers/EmailWrapper/tests/useEmailWrapper.test.js +1 -0
  22. package/v2Containers/InApp/index.js +3 -0
  23. package/v2Containers/InAppWrapper/hooks/__tests__/useInAppWrapper.test.js +1 -0
  24. package/v2Containers/InAppWrapper/hooks/useInAppWrapper.js +3 -0
  25. package/v2Containers/InAppWrapper/index.js +3 -0
  26. package/v2Containers/InappAdvance/index.js +3 -0
  27. package/v2Containers/MobilePush/Create/index.js +2 -0
  28. package/v2Containers/MobilePush/Edit/index.js +2 -0
  29. package/v2Containers/MobilePushNew/index.js +1 -0
  30. package/v2Containers/MobilepushWrapper/index.js +3 -1
  31. package/v2Containers/Rcs/index.js +2 -0
  32. package/v2Containers/Sms/Create/index.js +2 -0
  33. package/v2Containers/Sms/Edit/index.js +2 -0
  34. package/v2Containers/SmsTrai/Edit/index.js +4 -0
  35. package/v2Containers/SmsWrapper/index.js +2 -0
  36. package/v2Containers/TagList/index.js +41 -2
  37. package/v2Containers/TagList/messages.js +4 -0
  38. package/v2Containers/TagList/tests/TagList.test.js +13 -1
  39. package/v2Containers/TagList/tests/mockdata.js +17 -0
  40. package/v2Containers/Viber/index.js +5 -0
  41. package/v2Containers/WebPush/Create/hooks/useTagManagement.js +3 -1
  42. package/v2Containers/WebPush/Create/hooks/useTagManagement.test.js +3 -0
  43. package/v2Containers/WebPush/Create/index.js +9 -1
  44. package/v2Containers/WebPush/Create/utils/validation.test.js +2 -0
  45. package/v2Containers/Whatsapp/index.js +6 -0
  46. package/v2Containers/Zalo/index.js +3 -0
@@ -187,6 +187,7 @@ describe('validation', () => {
187
187
  location: {},
188
188
  tagModule: '',
189
189
  eventContextTags: [],
190
+ waitEventContextTags: {},
190
191
  };
191
192
 
192
193
  beforeEach(() => {
@@ -261,6 +262,7 @@ describe('validation', () => {
261
262
  location: { query: { type: 'test' } },
262
263
  tagModule: 'custom',
263
264
  eventContextTags: [{ id: 3, name: 'Tag3' }],
265
+ waitEventContextTags: {},
264
266
  };
265
267
  validateTags.mockReturnValue({});
266
268
  validateMessageContent('Valid message', mockFormatMessage, mockMessages, customConfig);
@@ -182,6 +182,7 @@ export const Whatsapp = (props) => {
182
182
  selectedOfferDetails,
183
183
  currentOrgDetails,
184
184
  eventContextTags,
185
+ waitEventContextTags,
185
186
  metaDataStatus = "",
186
187
  showTestAndPreviewSlidebox: propsShowTestAndPreviewSlidebox,
187
188
  handleTestAndPreview: propsHandleTestAndPreview,
@@ -641,6 +642,7 @@ export const Whatsapp = (props) => {
641
642
  location,
642
643
  tagModule: getDefaultTags,
643
644
  eventContextTags,
645
+ waitEventContextTags,
644
646
  isFullMode,
645
647
  }) || {};
646
648
  const unsupportedTagsLengthCheck =
@@ -956,6 +958,7 @@ const isAuthenticationTemplate = isEqual(templateCategory, WHATSAPP_CATEGORIES.a
956
958
  injectedTags={injectedTags || {}}
957
959
  selectedOfferDetails={selectedOfferDetails}
958
960
  eventContextTags={eventContextTags}
961
+ waitEventContextTags={waitEventContextTags}
959
962
  />
960
963
  )}
961
964
  </>
@@ -1957,6 +1960,7 @@ const isAuthenticationTemplate = isEqual(templateCategory, WHATSAPP_CATEGORIES.a
1957
1960
  injectedTags={injectedTags || {}}
1958
1961
  selectedOfferDetails={selectedOfferDetails}
1959
1962
  eventContextTags={eventContextTags}
1963
+ waitEventContextTags={waitEventContextTags}
1960
1964
  />
1961
1965
  )
1962
1966
  : !isAuthenticationTemplate && (
@@ -2770,6 +2774,7 @@ const isAuthenticationTemplate = isEqual(templateCategory, WHATSAPP_CATEGORIES.a
2770
2774
  injectedTags={injectedTags || {}}
2771
2775
  selectedOfferDetails={selectedOfferDetails}
2772
2776
  eventContextTags={eventContextTags}
2777
+ waitEventContextTags={waitEventContextTags}
2773
2778
  />
2774
2779
  )
2775
2780
  }
@@ -2888,6 +2893,7 @@ const isAuthenticationTemplate = isEqual(templateCategory, WHATSAPP_CATEGORIES.a
2888
2893
  injectedTags={injectedTags || {}}
2889
2894
  selectedOfferDetails={selectedOfferDetails}
2890
2895
  eventContextTags={eventContextTags}
2896
+ waitEventContextTags={waitEventContextTags}
2891
2897
  />
2892
2898
  )}
2893
2899
  {isBtnTypeQuickReply && (
@@ -76,6 +76,7 @@ export const Zalo = (props) => {
76
76
  selectedOfferDetails,
77
77
  hostName: zaloHostName = '',
78
78
  eventContextTags,
79
+ waitEventContextTags,
79
80
  metaDataStatus = "",
80
81
  // TestAndPreviewSlidebox props
81
82
  showTestAndPreviewSlidebox: propsShowTestAndPreviewSlidebox,
@@ -274,6 +275,7 @@ export const Zalo = (props) => {
274
275
  location,
275
276
  tagModule: getDefaultTags,
276
277
  eventContextTags,
278
+ waitEventContextTags,
277
279
  isFullMode,
278
280
  }) || {};
279
281
  const { unsupportedTags = [], isBraceError } = tagValidationResponse;
@@ -527,6 +529,7 @@ export const Zalo = (props) => {
527
529
  injectedTags={injectedTags || {}}
528
530
  selectedOfferDetails={selectedOfferDetails}
529
531
  eventContextTags={eventContextTags}
532
+ waitEventContextTags={waitEventContextTags}
530
533
  />
531
534
  }
532
535
  />