@capillarytech/creatives-library 8.0.6 → 8.0.7

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.6",
4
+ "version": "8.0.7",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -43,7 +43,7 @@ import reducer from './reducer';
43
43
  import { v2CapSagas } from './sagas';
44
44
  import { v2SmsCreateSagas } from '../Sms/Create/sagas';
45
45
  import { v2EbillSagas } from '../Ebill/sagas';
46
- import { v2EmailSagas } from '../Email/sagas';
46
+ import { v2EmailDuplicateTemplateSaga } from '../Email/sagas';
47
47
  import { v2LineContainerSagas } from '../Line/Container/sagas'
48
48
  import { v2MobilePushCreateSagas } from '../MobilePush/Create/sagas';
49
49
  import { v2WechatMapTemplatesSagas } from '../WeChat/MapTemplates/sagas';
@@ -609,7 +609,7 @@ const withReducer = injectReducer({ key: 'cap', reducer });
609
609
  const withSaga = injectSaga({ key: 'cap', saga: v2CapSagas });
610
610
  const withSmsCreateSaga = injectSaga({ key: 'create', saga: v2SmsCreateSagas });
611
611
  const withEbillSaga = injectSaga({ key: 'ebill', saga: v2EbillSagas });
612
- const withEmailSaga = injectSaga({ key: 'email', saga: v2EmailSagas });
612
+ const withEmailSaga = injectSaga({ key: 'email', saga: v2EmailDuplicateTemplateSaga });
613
613
  const withLineContainerSaga = injectSaga({ key: 'lineCreate', saga: v2LineContainerSagas });
614
614
  const withMobilePushCreateSaga = injectSaga({ key: 'mobileCreate', saga: v2MobilePushCreateSagas });
615
615
  const withWechatMapTemplatesSaga = injectSaga({ key: 'weChatMapTemplate', saga: v2WechatMapTemplatesSagas });
@@ -46,6 +46,7 @@ import injectSaga from '../../utils/injectSaga';
46
46
  import creativesContainerReducer from './reducer';
47
47
  import { compose } from 'redux';
48
48
  import { capSagaForFetchSchemaForEntity } from '../Cap/sagas';
49
+ import { v2TemplateSagaWatchGetDefaultBeeTemplates } from '../Templates/sagas';
49
50
 
50
51
  const classPrefix = 'add-creatives-section';
51
52
  const CREATIVES_CONTAINER = 'creativesContainer';
@@ -1356,5 +1357,6 @@ function mapDispatchToProps(dispatch) {
1356
1357
  const withConnect = connect(mapStatesToProps, mapDispatchToProps);
1357
1358
  const withReducer = injectReducer({ key: 'creativesContainer', reducer: creativesContainerReducer });
1358
1359
  const withSaga = injectSaga({ key: 'cap', saga: capSagaForFetchSchemaForEntity });
1360
+ const withDefaultTempSaga = injectSaga({ key: 'templates', saga: v2TemplateSagaWatchGetDefaultBeeTemplates });
1359
1361
 
1360
- export default compose(withSaga, withReducer, withConnect)(injectIntl(Creatives));
1362
+ export default compose(withSaga, withDefaultTempSaga, withReducer, withConnect)(injectIntl(Creatives));
@@ -41,6 +41,8 @@ import {transformEmailTemplates, storeS3FileSizeDetails, CREATIVES_S3_ASSET_FILE
41
41
  import { CUSTOMER_BARCODE_TAG } from '../../containers/App/constants';
42
42
  import injectReducer from '../../utils/injectReducer';
43
43
  import v2EmailReducer from './reducer';
44
+ import { v2EmailSagas } from './sagas';
45
+ import injectSaga from '../../utils/injectSaga';
44
46
 
45
47
  export class Email extends React.Component { // eslint-disable-line react/prefer-stateless-function
46
48
  constructor(props) {
@@ -2813,11 +2815,13 @@ function mapDispatchToProps(dispatch) {
2813
2815
  }
2814
2816
 
2815
2817
  const withReducer = injectReducer({ key: 'email', reducer: v2EmailReducer });
2818
+ const withEmailSaga = injectSaga({ key: 'email', saga: v2EmailSagas });
2816
2819
 
2817
2820
  export default withCreatives({
2818
2821
  WrappedComponent: Email,
2819
2822
  mapStateToProps,
2820
2823
  mapDispatchToProps,
2821
2824
  userAuth: true,
2825
+ sagas: [withEmailSaga],
2822
2826
  reducers: [withReducer],
2823
2827
  });
@@ -150,6 +150,11 @@ export function* v2EmailSagas() {
150
150
  watchGetCmsSetting(),
151
151
  watchGetCmsData(),
152
152
  watchUploadAsset(),
153
+ ]);
154
+ }
155
+
156
+ export function* v2EmailDuplicateTemplateSaga() {
157
+ yield all([
153
158
  watchDuplicateTemplate(),
154
159
  ]);
155
160
  }
@@ -254,11 +254,16 @@ export function* v2TemplateSaga() {
254
254
  watchDeleteTemplate(),
255
255
  watchGetUserList(),
256
256
  watchFetchWeCrmAccounts(),
257
- watchSendingFile(),
258
- watchGetDefaultBeeTemplates(),
259
257
  watchGetTemplateDetails(),
260
258
  watchGetOrgLevelCampaignSettings(),
261
259
  watchGetSenderDetails(),
262
260
  watchGetCdnTransformationConfig(),
263
261
  ]);
262
+ }
263
+
264
+ export function* v2TemplateSagaWatchGetDefaultBeeTemplates() {
265
+ yield all([
266
+ watchSendingFile(),
267
+ watchGetDefaultBeeTemplates(),
268
+ ]);
264
269
  }