@capillarytech/creatives-library 8.0.7 → 8.0.8

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.7",
4
+ "version": "8.0.8",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -33,7 +33,9 @@ import { MOBILE_PUSH } from '../../CreativesContainer/constants';
33
33
  import { getContent } from '../commonMethods';
34
34
  import { getCdnUrl } from '../../../utils/cdnTransformation';
35
35
  import injectReducer from '../../../utils/injectReducer';
36
+ import injectSaga from '../../../utils/injectSaga';
36
37
  import v2MobilePushCreateReducer from './reducer';
38
+ import { v2MobilePushWatchDuplicateTemplateSaga } from './sagas';
37
39
 
38
40
  const PrefixWrapper = styled.div`
39
41
  margin-right: 16px;
@@ -1901,11 +1903,13 @@ function mapDispatchToProps(dispatch) {
1901
1903
  }
1902
1904
 
1903
1905
  const withReducer = injectReducer({ key: 'mobileCreate', reducer: v2MobilePushCreateReducer });
1906
+ const withSaga = injectSaga({ key: 'mobileCreate', saga: v2MobilePushWatchDuplicateTemplateSaga});
1904
1907
 
1905
1908
  export default withCreatives({
1906
1909
  WrappedComponent: Create,
1907
1910
  mapStateToProps,
1908
1911
  mapDispatchToProps,
1909
1912
  userAuth: false,
1913
+ sagas: [withSaga],
1910
1914
  reducers: [withReducer],
1911
1915
  });
@@ -66,7 +66,12 @@ export default [
66
66
  export function* v2MobilePushCreateSagas() {
67
67
  yield all([
68
68
  watchCreateTemplate(),
69
- watchUploadAsset(),
69
+ ]);
70
+ }
71
+
72
+ export function* v2MobilePushWatchDuplicateTemplateSaga() {
73
+ yield all([
70
74
  watchGetIosCtas(),
75
+ watchUploadAsset(),
71
76
  ]);
72
77
  }