@capillarytech/creatives-library 8.0.61 → 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
@@ -47,9 +44,7 @@ export default ({
47
44
  };
48
45
 
49
46
  const withConnect = connect(mapStateToProps, hocMapDispatchToProps);
50
- const withZaloSaga = injectSaga({ key: 'zalo', saga: v2ZaloSagas,mode: DAEMON });
51
47
  return compose(
52
- withZaloSaga,
53
48
  ...sagas,
54
49
  ...reducers,
55
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",
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,6 +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 });
509
510
 
510
511
  export default withCreatives({
511
512
  WrappedComponent: Zalo,
@@ -513,4 +514,5 @@ export default withCreatives({
513
514
  mapDispatchToProps,
514
515
  userAuth: true,
515
516
  reducers: [withReducer],
517
+ sagas: [withZaloSaga],
516
518
  });