@capillarytech/creatives-library 8.0.40 → 8.0.41

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.40",
4
+ "version": "8.0.41",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -51,7 +51,6 @@ import {
51
51
  CapStatus,
52
52
  CapColoredTag,
53
53
  } from '@capillarytech/cap-ui-library';
54
- import injectSaga from '../../utils/injectSaga';
55
54
  import { makeSelectTemplates, makeSelectTemplatesResponse } from './selectors';
56
55
  import { makeSelectCreate as makeSelectCreateSms} from '../Sms/Create/selectors';
57
56
  import { makeSelectCreate as makeSelectCreateMobilePush } from '../MobilePush/Create/selectors';
@@ -136,7 +135,6 @@ import { GA } from '@capillarytech/cap-ui-utils';
136
135
  import { MAPP_SDK } from '../InApp/constants';
137
136
  import injectReducer from '../../utils/injectReducer';
138
137
  import v2TemplateReducer from './reducer';
139
- import { v2ZaloSagas } from '../Zalo/saga';
140
138
  import { compose } from 'redux';
141
139
 
142
140
  const { timeTracker } = GA;
@@ -3238,7 +3236,6 @@ const withReducer = injectReducer({ key: 'templates', reducer: v2TemplateReducer
3238
3236
  const withConnect = connect(mapStateToProps, mapDispatchToProps);
3239
3237
 
3240
3238
  export default compose(
3241
- injectSaga({ key: 'zalo', saga: v2ZaloSagas }),
3242
3239
  UserIsAuthenticated,
3243
3240
  withReducer,
3244
3241
  withConnect,
@@ -52,6 +52,7 @@ import injectSaga from '../../utils/injectSaga';
52
52
  import injectReducer from '../../utils/injectReducer';
53
53
  import * as globalActions from '../Cap/actions';
54
54
  import v2ZaloReducer from './reducer';
55
+ import { v2ZaloSagas } from './saga';
55
56
 
56
57
  export const Zalo = (props) => {
57
58
  const {
@@ -505,6 +506,7 @@ const mapDispatchToProps = (dispatch) => ({
505
506
 
506
507
 
507
508
  const withReducer = injectReducer({ key: 'zalo', reducer: v2ZaloReducer });
509
+ const withZaloSaga = injectSaga({ key: 'zalo', saga: v2ZaloSagas });
508
510
 
509
511
  export default withCreatives({
510
512
  WrappedComponent: Zalo,
@@ -512,4 +514,5 @@ export default withCreatives({
512
514
  mapDispatchToProps,
513
515
  userAuth: true,
514
516
  reducers: [withReducer],
517
+ sagas: [withZaloSaga],
515
518
  });