@capillarytech/creatives-library 8.0.3 → 8.0.5

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.5",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -229,13 +229,18 @@ export default [
229
229
  ];
230
230
 
231
231
 
232
+ export function* capSagaForFetchSchemaForEntity() {
233
+ yield all([
234
+ watchFetchSchemaForEntity(),
235
+ ])
236
+ }
237
+
232
238
  export function* v2CapSagas() {
233
239
  yield all([
234
240
  loginFlow(),
235
241
  watchForOrgChange(),
236
242
  watchForLogoutFlow(),
237
243
  watchForFetchUserInfo(),
238
- watchFetchSchemaForEntity(),
239
244
  watchGetTopbarMenuData(),
240
245
  watchForGetVideosConfig(),
241
246
  ])
@@ -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 { capSagaForFetchSchemaForEntity } 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: capSagaForFetchSchemaForEntity });
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
  }