@capillarytech/creatives-library 8.0.49 → 8.0.51

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.49",
4
+ "version": "8.0.51",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -25,7 +25,9 @@
25
25
  margin-left: initial !important;
26
26
  }
27
27
  }
28
-
28
+ .error .error-message{
29
+ top: revert;
30
+ }
29
31
  .tabs-error {
30
32
  .ant-tabs-ink-bar .ant-tabs-ink-bar-animated {
31
33
  background-color: #F34F56;
@@ -53,6 +53,7 @@ import { v2InAppSagas } from '../InApp/sagas';
53
53
  import { v2ViberSagas } from '../Viber/sagas';
54
54
  import { v2FacebookSagas } from '../Facebook/sagas';
55
55
  import createReducer from '../Line/Container/reducer';
56
+ import { v2ZaloSagas } from '../Zalo/saga';
56
57
 
57
58
  const gtm = window.dataLayer || [];
58
59
  const {
@@ -615,6 +616,7 @@ const withEbillSaga = injectSaga({ key: 'ebill', saga: v2EbillSagas });
615
616
  const withEmailSaga = injectSaga({ key: 'email', saga: v2EmailDuplicateTemplateSaga });
616
617
  const withLineContainerSaga = injectSaga({ key: 'lineCreate', saga: v2LineContainerSagas });
617
618
  const withMobilePushCreateSaga = injectSaga({ key: 'mobileCreate', saga: v2MobilePushCreateSagas });
619
+ const withZaloSaga = injectSaga({ key: 'zalo', saga: v2ZaloSagas });
618
620
  const withWechatMapTemplatesSaga = injectSaga({ key: 'weChatMapTemplate', saga: v2WechatMapTemplatesSagas });
619
621
  const withRcsSaga = injectSaga({ key: 'rcs', saga: v2RcsSagas });
620
622
  const withInAppSaga = injectSaga({ key: 'inapp', saga: v2InAppSagas });
@@ -630,6 +632,7 @@ export default compose(
630
632
  withLineContainerSaga,
631
633
  withMobilePushCreateSaga,
632
634
  withWechatMapTemplatesSaga,
635
+ withZaloSaga,
633
636
  withRcsSaga,
634
637
  withInAppSaga,
635
638
  withViberSaga,
@@ -60,16 +60,16 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
60
60
 
61
61
  const defaultPanes = {
62
62
  sms: {content: <></>, tab: intl.formatMessage(messages.sms), key: 'sms'},
63
- rcs: { content: <></>, tab: intl.formatMessage(messages.rcs), key: RCS },
64
63
  email: {content: <></>, tab: intl.formatMessage(messages.email), key: 'email'},
65
64
  //'wechat': {content: this.getTemplatesComponent('wechat'), tab: 'Wechat', key: 'wechat'},
66
65
  mPush: {content: <></>, tab: intl.formatMessage(messages.pushNotification), key: 'mobilepush'},
67
- inApp: { content: <div></div>, tab: intl.formatMessage(messages.inapp), key: INAPP },
68
- line: {content: <></>, tab: intl.formatMessage(messages.line), key: 'line'},
69
66
  viber: {content: <></>, tab: intl.formatMessage(messages.viber), key: 'viber'},
70
- facebook: {content: <div></div>, tab: intl.formatMessage(messages.facebook), key: 'facebook'},
71
67
  whatsapp: { content: <></>, tab: intl.formatMessage(messages.whatsapp), key: WHATSAPP },
72
68
  zalo: { content: <div></div>, tab: intl.formatMessage(messages.zalo), key: ZALO },
69
+ facebook: {content: <div></div>, tab: intl.formatMessage(messages.facebook), key: 'facebook'},
70
+ rcs: { content: <></>, tab: intl.formatMessage(messages.rcs), key: RCS },
71
+ inApp: { content: <div></div>, tab: intl.formatMessage(messages.inapp), key: INAPP },
72
+ line: {content: <></>, tab: intl.formatMessage(messages.line), key: 'line'},
73
73
  };
74
74
  //Hiding we chat for all orgs across UI for now and enabling it based on feature 'ENABLE_WECHAT'
75
75
 
@@ -1,5 +1,9 @@
1
1
  @import '~@capillarytech/cap-ui-library/styles/_variables';
2
2
 
3
+ .ant-select-dropdown .ant-select-dropdown-menu .ant-select-dropdown-menu-item{
4
+ font-family: 'Roboto', Arial, sans-serif !important;
5
+ }
6
+
3
7
  .cap-whatsapp-creatives {
4
8
  .whatsapp-heading-spacing {
5
9
  margin-top: $CAP_SPACE_16;
@@ -53,6 +53,7 @@ import injectReducer from '../../utils/injectReducer';
53
53
  import * as globalActions from '../Cap/actions';
54
54
  import v2ZaloReducer from './reducer';
55
55
  import { v2ZaloSagas } from './saga';
56
+ import { DAEMON } from '@capillarytech/vulcan-react-sdk/utils/sagaInjectorTypes';
56
57
 
57
58
  export const Zalo = (props) => {
58
59
  const {
@@ -506,7 +507,9 @@ const mapDispatchToProps = (dispatch) => ({
506
507
 
507
508
 
508
509
  const withReducer = injectReducer({ key: 'zalo', reducer: v2ZaloReducer });
509
- const withZaloSaga = injectSaga({ key: 'zalo', saga: v2ZaloSagas });
510
+
511
+ //DAEMON mode ensures that this saga is not injected twice
512
+ const withZaloSaga = injectSaga({ key: 'zalo', saga: v2ZaloSagas, mode: DAEMON });
510
513
 
511
514
  export default withCreatives({
512
515
  WrappedComponent: Zalo,