@capillarytech/creatives-library 8.0.3 → 8.0.4

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.3",
4
+ "version": "8.0.4",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -40,7 +40,7 @@ import RenderRoute from '../../v2Components/RenderRoute';
40
40
  import injectReducer from '../../utils/injectReducer';
41
41
  import injectSaga from '../../utils/injectSaga';
42
42
  import reducer from './reducer';
43
- import { v2CapSagas } from './sagas';
43
+ import { capSagaExcludingFetchSchemaForEntity } from './sagas';
44
44
  import { v2SmsCreateSagas } from '../Sms/Create/sagas';
45
45
  import { v2EbillSagas } from '../Ebill/sagas';
46
46
  import { v2EmailSagas } from '../Email/sagas';
@@ -606,7 +606,7 @@ function mapDispatchToProps(dispatch) {
606
606
 
607
607
  const withConnect = connect(mapStateToProps, mapDispatchToProps);
608
608
  const withReducer = injectReducer({ key: 'cap', reducer });
609
- const withSaga = injectSaga({ key: 'cap', saga: v2CapSagas });
609
+ const withSaga = injectSaga({ key: 'cap', saga: capSagaExcludingFetchSchemaForEntity });
610
610
  const withSmsCreateSaga = injectSaga({ key: 'create', saga: v2SmsCreateSagas });
611
611
  const withEbillSaga = injectSaga({ key: 'ebill', saga: v2EbillSagas });
612
612
  const withEmailSaga = injectSaga({ key: 'email', saga: v2EmailSagas });
@@ -239,4 +239,15 @@ export function* v2CapSagas() {
239
239
  watchGetTopbarMenuData(),
240
240
  watchForGetVideosConfig(),
241
241
  ])
242
+ }
243
+
244
+ export function* capSagaExcludingFetchSchemaForEntity() {
245
+ yield all([
246
+ loginFlow(),
247
+ watchForOrgChange(),
248
+ watchForLogoutFlow(),
249
+ watchForFetchUserInfo(),
250
+ watchGetTopbarMenuData(),
251
+ watchForGetVideosConfig(),
252
+ ])
242
253
  }
@@ -42,8 +42,10 @@ import { WHATSAPP_STATUSES, WHATSAPP_MEDIA_TYPES } from '../Whatsapp/constants';
42
42
  import { updateImagesInHtml } from '../../utils/cdnTransformation';
43
43
  import { IOS } from '../InApp/constants';
44
44
  import injectReducer from '../../utils/injectReducer'
45
+ import injectSaga from '../../utils/injectSaga';
45
46
  import creativesContainerReducer from './reducer';
46
47
  import { compose } from 'redux';
48
+ import { v2CapSagas } from '../Cap/sagas';
47
49
 
48
50
  const classPrefix = 'add-creatives-section';
49
51
  const CREATIVES_CONTAINER = 'creativesContainer';
@@ -1353,5 +1355,6 @@ function mapDispatchToProps(dispatch) {
1353
1355
 
1354
1356
  const withConnect = connect(mapStatesToProps, mapDispatchToProps);
1355
1357
  const withReducer = injectReducer({ key: 'creativesContainer', reducer: creativesContainerReducer });
1358
+ const withSaga = injectSaga({ key: 'cap', saga: v2CapSagas });
1356
1359
 
1357
- export default compose(withReducer, withConnect)(injectIntl(Creatives));
1360
+ export default compose(withSaga, withReducer, withConnect)(injectIntl(Creatives));
@@ -31,6 +31,7 @@ import { GA } from '@capillarytech/cap-ui-utils';
31
31
  import { CREATE, TRACK_CREATE_SMS } from '../../App/constants';
32
32
  import injectReducer from '../../../utils/injectReducer';
33
33
  import v2SmsCreateReducer from './reducer';
34
+ import * as globalActions from '../../Cap/actions';
34
35
 
35
36
  export class Create extends React.Component { // eslint-disable-line react/prefer-stateless-function
36
37
  constructor(props) {
@@ -1031,6 +1032,7 @@ const mapStateToProps = createStructuredSelector({
1031
1032
  function mapDispatchToProps(dispatch) {
1032
1033
  return {
1033
1034
  actions: bindActionCreators(actions, dispatch),
1035
+ globalActions: bindActionCreators(globalActions, dispatch),
1034
1036
  creativesContainerActions: bindActionCreators(creativesContainerActions, dispatch),
1035
1037
  };
1036
1038
  }
@@ -32,6 +32,7 @@ import { GA } from '@capillarytech/cap-ui-utils';
32
32
  import { SMS } from '../../CreativesContainer/constants';
33
33
  import v2EditSmsReducer from './reducer';
34
34
  import { v2SmsEditSagas } from './sagas';
35
+ import * as globalActions from '../../Cap/actions'
35
36
 
36
37
  export class Edit extends React.Component { // eslint-disable-line react/prefer-stateless-function
37
38
  constructor(props) {
@@ -1034,6 +1035,7 @@ const mapStateToProps = createStructuredSelector({
1034
1035
  function mapDispatchToProps(dispatch) {
1035
1036
  return {
1036
1037
  actions: bindActionCreators(actions, dispatch),
1038
+ globalActions: bindActionCreators(globalActions, dispatch),
1037
1039
  creativesContainerActions: bindActionCreators(creativesContainerActions, dispatch),
1038
1040
  };
1039
1041
  }