@capillarytech/creatives-library 8.0.61-alpha.1 → 8.0.62

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.
@@ -5,9 +5,6 @@ import { injectIntl } from 'react-intl';
5
5
  import * as globalActions from '../v2Containers/Cap/actions';
6
6
  import * as creativesContainerActions from '../v2Containers/CreativesContainer/actions';
7
7
  import { UserIsAuthenticated } from '../utils/authWrapper';
8
- import { v2ZaloSagas } from '../v2Containers/Zalo/saga';
9
- import { injectSaga } from '@capillarytech/vulcan-react-sdk/utils';
10
- import { DAEMON } from '@capillarytech/vulcan-react-sdk/utils/sagaInjectorTypes';
11
8
 
12
9
  /**
13
10
  * Higher Order Component to common out creatives channel logic
@@ -21,7 +18,6 @@ export default ({
21
18
  userAuth,
22
19
  sagas = [],
23
20
  reducers = [],
24
- zaloSaga = false,
25
21
  }) => {
26
22
  const CreativesCommon = (props) => {
27
23
  useEffect(() => {
@@ -48,9 +44,7 @@ export default ({
48
44
  };
49
45
 
50
46
  const withConnect = connect(mapStateToProps, hocMapDispatchToProps);
51
- const withZaloSaga = injectSaga({ key: 'zalo', saga: v2ZaloSagas,mode: DAEMON });
52
47
  return compose(
53
- withZaloSaga,
54
48
  ...sagas,
55
49
  ...reducers,
56
50
  withConnect,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.61-alpha.1",
4
+ "version": "8.0.62",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -54,8 +54,6 @@ import { v2ViberSagas } from '../Viber/sagas';
54
54
  import { v2FacebookSagas } from '../Facebook/sagas';
55
55
  import createReducer from '../Line/Container/reducer';
56
56
  import { DAEMON } from '@capillarytech/vulcan-react-sdk/utils/sagaInjectorTypes';
57
- import { v2ZaloSagas } from '../Zalo/saga';
58
-
59
57
  const gtm = window.dataLayer || [];
60
58
  const {
61
59
  logNewTab,
@@ -611,7 +609,6 @@ function mapDispatchToProps(dispatch) {
611
609
  const withConnect = connect(mapStateToProps, mapDispatchToProps);
612
610
  const withReducer = injectReducer({ key: 'cap', reducer });
613
611
  const withZaloReducer = injectReducer({ key: 'zalo', reducer: zaloReducer });
614
- const withZaloSagas = injectSaga({ key: 'zalo', saga: v2ZaloSagas });
615
612
  const withSaga = injectSaga({ key: 'cap', saga: v2CapSagas });
616
613
  const withLiquidSaga = injectSaga({ key: 'liquid', saga: capSagaLiquidEntity, mode : DAEMON });
617
614
  const withSmsCreateSaga = injectSaga({ key: 'create', saga: v2SmsCreateSagas });
@@ -641,7 +638,6 @@ export default compose(
641
638
  withFacebookSaga,
642
639
  withReducer,
643
640
  withZaloReducer,
644
- withZaloSagas,
645
641
  withLineReducer,
646
642
  withConnect,
647
643
  )(injectIntl(Cap));
@@ -506,8 +506,7 @@ const mapDispatchToProps = (dispatch) => ({
506
506
 
507
507
 
508
508
  const withReducer = injectReducer({ key: 'zalo', reducer: v2ZaloReducer });
509
- // const withZaloSaga = injectSaga({ key: 'zalo', saga: v2ZaloSagas });
510
- //
509
+ const withZaloSaga = injectSaga({ key: 'zalo', saga: v2ZaloSagas });
511
510
 
512
511
  export default withCreatives({
513
512
  WrappedComponent: Zalo,
@@ -515,6 +514,5 @@ export default withCreatives({
515
514
  mapDispatchToProps,
516
515
  userAuth: true,
517
516
  reducers: [withReducer],
518
- zaloSaga: true,
519
- // sagas: [withZaloSaga],
517
+ sagas: [withZaloSaga],
520
518
  });