@capillarytech/creatives-library 8.0.40 → 8.0.42
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
|
@@ -82,6 +82,7 @@ function capReducer(state = fromJS(initialState.cap), action) {
|
|
|
82
82
|
case types.GET_SCHEMA_FOR_ENTITY_REQUEST:
|
|
83
83
|
return state
|
|
84
84
|
.set('fetchingSchema', true)
|
|
85
|
+
.set('fetchingLiquidTags', false)
|
|
85
86
|
.set('fetchingSchemaError', false);
|
|
86
87
|
case types.GET_SCHEMA_FOR_ENTITY_FAILURE:
|
|
87
88
|
return state
|
|
@@ -121,6 +122,7 @@ function capReducer(state = fromJS(initialState.cap), action) {
|
|
|
121
122
|
const stateMeta = state.get("metaEntities");
|
|
122
123
|
return state
|
|
123
124
|
.set('fetchingSchema', false)
|
|
125
|
+
.set('fetchingLiquidTags', false)
|
|
124
126
|
.set('metaEntities', {
|
|
125
127
|
layouts: action.data && action.entityType === 'LAYOUT' ? action.data.metaEntities : stateMeta.layouts,
|
|
126
128
|
tags: action.data && action.entityType === 'TAG' ? action.data.metaEntities : stateMeta.tags,
|
|
@@ -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
|
});
|