@capillarytech/creatives-library 8.0.340-0 → 8.0.340-beta.0.1

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 (139) hide show
  1. package/app.js +8 -1
  2. package/global-styles.js +4 -0
  3. package/package.json +2 -2
  4. package/styles/components/navigation/_leftnav.scss +1 -1
  5. package/styles/containers/layout/_layoutPage.scss +1 -1
  6. package/v2Components/AccessForbidden/index.js +1 -1
  7. package/v2Components/CapActionButton/index.js +5 -5
  8. package/v2Components/CapCustomSkeleton/index.js +1 -1
  9. package/v2Components/CapDeviceContent/index.js +5 -5
  10. package/v2Components/CapDocumentUpload/index.js +1 -1
  11. package/v2Components/CapImageUpload/index.js +1 -1
  12. package/v2Components/CapInAppCTA/index.js +118 -112
  13. package/v2Components/CapMpushCTA/index.js +72 -66
  14. package/v2Components/CapTagList/index.js +23 -11
  15. package/v2Components/CapVideoUpload/index.js +1 -1
  16. package/v2Components/CapWhatsappCTA/index.js +128 -124
  17. package/v2Components/CapWhatsappCarouselButton/index.js +27 -29
  18. package/v2Components/CapWhatsappQuickReply/index.js +7 -7
  19. package/v2Components/Carousel/index.js +1 -1
  20. package/v2Components/CommonTestAndPreview/AddTestCustomer.js +1 -1
  21. package/v2Components/CommonTestAndPreview/CustomValuesEditor.js +10 -11
  22. package/v2Components/CommonTestAndPreview/CustomerCreationModal.js +1 -1
  23. package/v2Components/CommonTestAndPreview/DeliverySettings/ModifyDeliverySettings.js +4 -4
  24. package/v2Components/CommonTestAndPreview/DeliverySettings/index.js +1 -1
  25. package/v2Components/CommonTestAndPreview/ExistingCustomerModal.js +6 -6
  26. package/v2Components/CommonTestAndPreview/LeftPanelContent.js +5 -5
  27. package/v2Components/CommonTestAndPreview/PreviewSection.js +1 -1
  28. package/v2Components/CommonTestAndPreview/UnifiedPreview/DeviceFrame.js +1 -1
  29. package/v2Components/CommonTestAndPreview/UnifiedPreview/EmailPreviewContent.js +8 -8
  30. package/v2Components/CommonTestAndPreview/UnifiedPreview/InAppPreviewContent.js +14 -13
  31. package/v2Components/CommonTestAndPreview/UnifiedPreview/MobilePushPreviewContent.js +22 -21
  32. package/v2Components/CommonTestAndPreview/UnifiedPreview/PreviewHeader.js +1 -1
  33. package/v2Components/CommonTestAndPreview/UnifiedPreview/RcsPreviewContent.js +9 -9
  34. package/v2Components/CommonTestAndPreview/UnifiedPreview/SmsPreviewContent.js +13 -11
  35. package/v2Components/CommonTestAndPreview/UnifiedPreview/ViberPreviewContent.js +10 -10
  36. package/v2Components/CommonTestAndPreview/UnifiedPreview/WhatsAppPreviewContent.js +13 -12
  37. package/v2Components/CommonTestAndPreview/UnifiedPreview/ZaloPreviewContent.js +4 -3
  38. package/v2Components/CommonTestAndPreview/UnifiedPreview/_unifiedPreview.scss +17 -8
  39. package/v2Components/CommonTestAndPreview/UnifiedPreview/index.js +1 -1
  40. package/v2Components/CommonTestAndPreview/_commonTestAndPreview.scss +30 -5
  41. package/v2Components/CommonTestAndPreview/index.js +3 -3
  42. package/v2Components/CustomerSearchSection/_customerSearch.scss +2 -1
  43. package/v2Components/CustomerSearchSection/index.js +9 -9
  44. package/v2Components/EmailMobilePreview/index.js +1 -1
  45. package/v2Components/ErrorInfoNote/index.js +13 -11
  46. package/v2Components/ErrorInfoNote/style.scss +1 -1
  47. package/v2Components/FormBuilder/_formBuilder.scss +1 -0
  48. package/v2Components/FormBuilder/index.js +32 -40
  49. package/v2Components/HtmlEditor/HTMLEditor.js +4 -4
  50. package/v2Components/HtmlEditor/_htmlEditor.scss +2 -1
  51. package/v2Components/HtmlEditor/components/CodeEditorPane/index.js +1 -1
  52. package/v2Components/HtmlEditor/components/DeviceToggle/_deviceToggle.scss +2 -2
  53. package/v2Components/HtmlEditor/components/DeviceToggle/index.js +2 -2
  54. package/v2Components/HtmlEditor/components/EditorToolbar/PreviewModeGroup.js +2 -2
  55. package/v2Components/HtmlEditor/components/EditorToolbar/index.js +2 -2
  56. package/v2Components/HtmlEditor/components/InAppPreviewPane/index.js +1 -0
  57. package/v2Components/HtmlEditor/components/PreviewPane/index.js +2 -2
  58. package/v2Components/HtmlEditor/components/SplitContainer/SplitContainer.js +2 -2
  59. package/v2Components/HtmlEditor/components/SplitContainer/_splitContainer.scss +2 -1
  60. package/v2Components/HtmlEditor/components/ValidationPanel/index.js +6 -9
  61. package/v2Components/HtmlEditor/components/ValidationTabs/index.js +2 -2
  62. package/v2Components/NavigationBar/index.js +7 -1
  63. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/index.js +3 -4
  64. package/v2Components/TemplatePreview/_templatePreview.scss +5 -3
  65. package/v2Components/TemplatePreview/index.js +11 -9
  66. package/v2Components/TestAndPreviewSlidebox/CustomValuesEditor.js +4 -4
  67. package/v2Components/TestAndPreviewSlidebox/LeftPanelContent.js +5 -5
  68. package/v2Components/TestAndPreviewSlidebox/PreviewSection.js +3 -3
  69. package/v2Components/TestAndPreviewSlidebox/_testAndPreviewSlidebox.scss +4 -2
  70. package/v2Containers/BeePopupEditor/index.js +1 -1
  71. package/v2Containers/CommunicationFlow/CommunicationFlow.js +5 -5
  72. package/v2Containers/CommunicationFlow/steps/ChannelSelectionStep/ChannelSelectionStep.js +4 -3
  73. package/v2Containers/CommunicationFlow/steps/CommunicationStrategyStep/CommunicationStrategyStep.js +2 -2
  74. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/DeliverySettingsSection.js +3 -2
  75. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/SenderDetails.js +7 -7
  76. package/v2Containers/CommunicationFlow/steps/DeliverySettingsStep/SenderDetails.scss +0 -5
  77. package/v2Containers/CommunicationFlow/steps/DynamicControlsStep/DynamicControlsStep.js +2 -2
  78. package/v2Containers/CommunicationFlow/steps/MessageTypeStep/MessageTypeStep.js +2 -2
  79. package/v2Containers/CreativesContainer/SlideBoxFooter.js +1 -1
  80. package/v2Containers/CreativesContainer/index.js +1 -1
  81. package/v2Containers/Ebill/index.js +10 -9
  82. package/v2Containers/Email/index.js +7 -7
  83. package/v2Containers/Email/initialSchema.js +1 -1
  84. package/v2Containers/FTP/index.js +1 -1
  85. package/v2Containers/Facebook/Advertisement/index.js +4 -4
  86. package/v2Containers/Facebook/index.js +2 -2
  87. package/v2Containers/InApp/index.js +21 -16
  88. package/v2Containers/InApp/index.scss +0 -7
  89. package/v2Containers/InAppWrapper/components/InAppWrapperView.js +2 -2
  90. package/v2Containers/InappAdvance/index.js +4 -4
  91. package/v2Containers/LanguageProvider/index.js +3 -3
  92. package/v2Containers/LanguageProvider/tests/index.test.js +3 -3
  93. package/v2Containers/Line/Container/Image/index.js +1 -1
  94. package/v2Containers/Line/Container/ImageCarousel/Content.js +1 -1
  95. package/v2Containers/Line/Container/ImageCarousel/index.js +5 -5
  96. package/v2Containers/Line/Container/ImageMap/index.js +3 -3
  97. package/v2Containers/Line/Container/Sticker/index.js +2 -2
  98. package/v2Containers/Line/Container/Sticker/utils.js +1 -1
  99. package/v2Containers/Line/Container/Video/index.js +1 -1
  100. package/v2Containers/Line/Container/Wrapper/index.js +3 -3
  101. package/v2Containers/Line/Container/Wrapper/style.js +1 -5
  102. package/v2Containers/Line/Container/index.js +2 -2
  103. package/v2Containers/Login/components/LoginForm/index.js +34 -47
  104. package/v2Containers/Login/index.js +5 -5
  105. package/v2Containers/MobilePushNew/components/CtaButtons.js +2 -2
  106. package/v2Containers/MobilePushNew/components/MediaUploaders.js +9 -9
  107. package/v2Containers/MobilePushNew/components/PlatformContentFields.js +4 -4
  108. package/v2Containers/MobilePushNew/index.js +2 -2
  109. package/v2Containers/MobilePushNew/index.scss +9 -6
  110. package/v2Containers/Rcs/index.js +24 -19
  111. package/v2Containers/Rcs/index.scss +0 -7
  112. package/v2Containers/Sms/Create/_smsCreate.scss +9 -2
  113. package/v2Containers/Sms/SCHEMA_FORMBUILDER_MAP.md +922 -0
  114. package/v2Containers/Sms/initialSchema.js +7 -1
  115. package/v2Containers/SmsTrai/Edit/index.js +3 -2
  116. package/v2Containers/Templates/index.js +16 -16
  117. package/v2Containers/Viber/constants.js +0 -8
  118. package/v2Containers/Viber/index.js +19 -19
  119. package/v2Containers/Viber/index.scss +0 -7
  120. package/v2Containers/Viber/reducer.js +21 -44
  121. package/v2Containers/Viber/sagas.js +21 -62
  122. package/v2Containers/Viber/tests/index.test.js +0 -80
  123. package/v2Containers/Viber/tests/saga.test.js +40 -365
  124. package/v2Containers/WeChat/RichmediaTemplates/Create/_createRichmedia.scss +1 -1
  125. package/v2Containers/WeChat/RichmediaTemplates/Create/index.js +2 -2
  126. package/v2Containers/WebPush/Create/components/BrandIconSection.js +1 -1
  127. package/v2Containers/WebPush/Create/components/ButtonForm.js +2 -2
  128. package/v2Containers/WebPush/Create/components/ButtonList.js +4 -4
  129. package/v2Containers/WebPush/Create/components/ButtonsLinksSection.js +4 -4
  130. package/v2Containers/WebPush/Create/components/FormActions.js +3 -3
  131. package/v2Containers/WebPush/Create/components/MessageSection.js +2 -2
  132. package/v2Containers/WebPush/Create/components/NotificationTitleSection.js +2 -2
  133. package/v2Containers/WebPush/Create/components/_buttons.scss +2 -2
  134. package/v2Containers/WebPush/Create/index.scss +6 -3
  135. package/v2Containers/WebPush/Create/preview/WebPushPreview.js +1 -1
  136. package/v2Containers/Whatsapp/index.js +28 -28
  137. package/v2Containers/Zalo/index.js +3 -3
  138. package/.npmrc copy +0 -2
  139. package/v2Containers/Viber/tests/reducer.test.js +0 -297
@@ -67,14 +67,16 @@
67
67
 
68
68
  .input-group {
69
69
  display: flex;
70
- flex-direction: column;
70
+ flex-direction: column !important;
71
+ flex-flow: column nowrap;
71
72
  gap: $CAP_SPACE_16;
72
73
  }
73
74
 
74
75
  .creatives-mpush-title,
75
76
  .creatives-mpush-message {
76
77
  display: flex;
77
- flex-direction: column;
78
+ flex-direction: column !important;
79
+ flex-flow: column nowrap;
78
80
  gap: $CAP_SPACE_08;
79
81
  }
80
82
 
@@ -122,8 +124,9 @@
122
124
  background: #fafafa;
123
125
  }
124
126
 
127
+ /* TODO: cap-react-ui-library class removed — review this override */
125
128
  .button-form .cap-input,
126
- .button-form .cap-select {
129
+ .button-form .cap-select-v2 {
127
130
  margin-bottom: $CAP_SPACE_16;
128
131
  }
129
132
 
@@ -329,9 +332,9 @@
329
332
  }
330
333
  }
331
334
 
332
- .note-message-container {
333
- display: flex;
334
- align-items: center;
335
+ .note-message-container.cap-row-vertical {
336
+ flex-direction: row !important;
337
+ flex-wrap: nowrap;
335
338
  }
336
339
 
337
340
  .save-section {
@@ -16,6 +16,7 @@ import CapInput from '@capillarytech/cap-ui-library/CapInput';
16
16
  import CapAlert from '@capillarytech/cap-ui-library/CapAlert';
17
17
  import CapHeading from '@capillarytech/cap-ui-library/CapHeading';
18
18
  import CapRadioGroup from '@capillarytech/cap-ui-library/CapRadioGroup';
19
+ import ConfigProvider from 'antd/lib/config-provider';
19
20
  import CapTooltip from '@capillarytech/cap-ui-library/CapTooltip';
20
21
  import CapLabel from '@capillarytech/cap-ui-library/CapLabel';
21
22
  import CapHeader from '@capillarytech/cap-ui-library/CapHeader';
@@ -1144,7 +1145,7 @@ const splitTemplateVarString = (str) => {
1144
1145
  ) : (
1145
1146
  <CapButton
1146
1147
  data-testid="suffix-button"
1147
- type="flat"
1148
+ type="link"
1148
1149
  isAddBtn
1149
1150
  onClick={onTitleAddVar}
1150
1151
  disabled={!!templateTitleError}
@@ -1183,7 +1184,7 @@ const splitTemplateVarString = (str) => {
1183
1184
  )}
1184
1185
 
1185
1186
  {/* Template Message */}
1186
- <CapRow id="rcs-template-message-label">
1187
+ <CapRow useLegacy id="rcs-template-message-label">
1187
1188
  <CapHeader
1188
1189
  title={(
1189
1190
  <CapRow type="flex">
@@ -1206,7 +1207,7 @@ const splitTemplateVarString = (str) => {
1206
1207
  ) : (
1207
1208
  <CapButton
1208
1209
  data-testid="suffix-button"
1209
- type="flat"
1210
+ type="link"
1210
1211
  isAddBtn
1211
1212
  onClick={onMessageAddVar}
1212
1213
  disabled={templateDescError && templateDesc}
@@ -1217,7 +1218,7 @@ const splitTemplateVarString = (str) => {
1217
1218
  }
1218
1219
  />
1219
1220
  </CapRow>
1220
- <CapRow className="rcs-create-template-message-input">
1221
+ <CapRow useLegacy className="rcs-create-template-message-input">
1221
1222
  <div className="rcs_text_area_wrapper">
1222
1223
  {(isEditFlow || !isFullMode)
1223
1224
  ? renderedRCSEditMessage(splitTemplateVarString(templateDesc), MESSAGE_TEXT)
@@ -2276,7 +2277,7 @@ const splitTemplateVarString = (str) => {
2276
2277
 
2277
2278
  return (
2278
2279
  <>
2279
- {templateStatus !== '' && (<CapRow className="template-status-container">
2280
+ {templateStatus !== '' && (<CapRow useLegacy className="template-status-container">
2280
2281
  <CapLabel type="label2">
2281
2282
  {formatMessage(messages.templateStatusLabel)}
2282
2283
  </CapLabel>
@@ -2308,25 +2309,29 @@ const splitTemplateVarString = (str) => {
2308
2309
  />
2309
2310
  )}
2310
2311
  {renderLabel('templateTypeLabel')}
2311
- <CapRadioGroup
2312
- id="select-rcs-template-type"
2313
- options={TEMPLATE_TYPE_OPTIONS}
2314
- onChange={onTemplateTypeChange}
2315
- value={templateType}
2316
- disabled={(isEditFlow || !isFullMode)}
2317
- />
2312
+ <ConfigProvider theme={{ components: { Radio: { radioSize: 20, dotSize: 8 } } }}>
2313
+ <CapRadioGroup
2314
+ id="select-rcs-template-type"
2315
+ options={TEMPLATE_TYPE_OPTIONS}
2316
+ onChange={onTemplateTypeChange}
2317
+ value={templateType}
2318
+ disabled={(isEditFlow || !isFullMode)}
2319
+ />
2320
+ </ConfigProvider>
2318
2321
 
2319
2322
  {/* Show media only for rich_card or carousel */}
2320
2323
  {(templateType === contentType.rich_card || templateType === contentType.carousel) && (
2321
2324
  <>
2322
2325
  {renderLabel('mediaLabel')}
2323
- <CapRadioGroup
2324
- options={mediaRadioOptions || []}
2325
- value={templateMediaType}
2326
- onChange={onTemplateMediaTypeChange}
2327
- disabled={(isEditFlow || !isFullMode)}
2328
- className="rcs-radio"
2329
- />
2326
+ <ConfigProvider theme={{ components: { Radio: { radioSize: 20, dotSize: 8 } } }}>
2327
+ <CapRadioGroup
2328
+ options={mediaRadioOptions || []}
2329
+ value={templateMediaType}
2330
+ onChange={onTemplateMediaTypeChange}
2331
+ disabled={(isEditFlow || !isFullMode)}
2332
+ className="rcs-radio"
2333
+ />
2334
+ </ConfigProvider>
2330
2335
  <div className="rcs-container-image">
2331
2336
  {getMediaBasedComponent()}
2332
2337
  </div>
@@ -44,13 +44,6 @@
44
44
  margin-right: 50px;
45
45
  }
46
46
 
47
- .ant-radio-inner::after{
48
- top: 3px;
49
- left: 3px;
50
- }
51
- .ant-radio-inner{
52
- border: 1px solid #d9d9d9;
53
- }
54
47
  .ant-radio-checked .ant-radio-inner{
55
48
  border: 1px solid #47af46;
56
49
  }
@@ -1,13 +1,20 @@
1
- .creatives-sms-footer{
2
- display: inline-flex;
1
+ @import '~@capillarytech/cap-ui-library/styles/_variables';
2
+
3
+ .cap-row-v2.ant-row-legacy.creatives-sms-footer {
4
+ display: flex !important;
3
5
  }
4
6
  .tag-container{
5
7
  .add-label{
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: flex-end;
11
+
6
12
  button{
7
13
  float: right;
8
14
  top: 8px;
9
15
  z-index: 100;
10
16
  padding: unset !important;;
17
+ color: map-get($CAP_SECONDARY, base);
11
18
  }
12
19
  }
13
20
  }