@capillarytech/creatives-library 8.0.182 → 8.0.183
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 +1 -1
- package/v2Containers/Cap/reducer.js +0 -3
- package/v2Containers/Cap/sagas.js +0 -13
- package/v2Containers/Cap/selectors.js +1 -2
- package/v2Containers/Cap/tests/saga.test.js +53 -616
- package/v2Containers/Cap/tests/selectors.test.js +2 -440
- package/v2Containers/CreativesContainer/actions.js +1 -9
- package/v2Containers/CreativesContainer/constants.js +0 -1
- package/v2Containers/CreativesContainer/index.js +0 -7
- package/v2Containers/CreativesContainer/reducer.js +0 -6
- package/v2Containers/CreativesContainer/selectors.js +0 -5
- package/v2Containers/MobilePushNew/components/MediaUploaders.js +8 -19
- package/v2Containers/MobilePushNew/index.scss +1 -6
- package/v2Containers/Templates/sagas.js +2 -6
- package/v2Containers/Cap/tests/saga-coverage.test.js +0 -93
- package/v2Containers/CreativesContainer/tests/reducer.test.js +0 -72
- package/v2Containers/CreativesContainer/tests/selectors.test.js +0 -112
package/package.json
CHANGED
|
@@ -113,8 +113,6 @@ function capReducer(state = fromJS(initialState.cap), action) {
|
|
|
113
113
|
// Process extended tags
|
|
114
114
|
const extendedSubtags = getTagMapValue(action?.data?.metaEntities?.extended);
|
|
115
115
|
|
|
116
|
-
const loyaltySubTagsData = getTagMapValue(action?.data?.metaEntities?.loyaltyTags);
|
|
117
|
-
|
|
118
116
|
const getExistingTagLookupMap = (state) => {
|
|
119
117
|
if (!state || !state.get) return {};
|
|
120
118
|
const tagLookupMap = state.getIn(['metaEntities', 'tagLookupMap']);
|
|
@@ -128,7 +126,6 @@ function capReducer(state = fromJS(initialState.cap), action) {
|
|
|
128
126
|
...standardTagMap,
|
|
129
127
|
...customSubtags,
|
|
130
128
|
...extendedSubtags,
|
|
131
|
-
...loyaltySubTagsData,
|
|
132
129
|
...getExistingTagLookupMap(state),
|
|
133
130
|
};
|
|
134
131
|
const stateMeta = state.get("metaEntities");
|
|
@@ -2,7 +2,6 @@ import {
|
|
|
2
2
|
take, call, put, cancelled, takeLatest, all,
|
|
3
3
|
fork,
|
|
4
4
|
cancel,
|
|
5
|
-
select,
|
|
6
5
|
} from 'redux-saga/effects';
|
|
7
6
|
// import { normalize } from 'normalizr';
|
|
8
7
|
import * as Api from '../../services/api';
|
|
@@ -15,7 +14,6 @@ import {
|
|
|
15
14
|
getLoyaltyTopbarMenuDataValue,
|
|
16
15
|
LOYALTY,
|
|
17
16
|
} from "../App/constants";
|
|
18
|
-
import { loyaltyTagProps } from "../CreativesContainer/selectors";
|
|
19
17
|
// import {makeSelectOrgId} from './selectors';
|
|
20
18
|
|
|
21
19
|
export function* authorize(user) {
|
|
@@ -127,17 +125,6 @@ export function* fetchUserInfo(option) {
|
|
|
127
125
|
|
|
128
126
|
export function* fetchSchemaForEntity(queryParams) {
|
|
129
127
|
try {
|
|
130
|
-
// Get stored loyalty tag props from Redux state
|
|
131
|
-
const loyaltyTagPropsData = yield select(loyaltyTagProps());
|
|
132
|
-
|
|
133
|
-
// Check if loyalty module is enabled and data exists
|
|
134
|
-
const isLoyaltyModuleEnabled = loyaltyTagPropsData?.isLoyaltyModule;
|
|
135
|
-
|
|
136
|
-
// If loyalty module is enabled and data exists, we can add specific logic here
|
|
137
|
-
if (isLoyaltyModuleEnabled && loyaltyTagPropsData) {
|
|
138
|
-
queryParams.queryParams.loyaltyTagsParams = loyaltyTagPropsData;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
128
|
const result = yield call(Api.fetchSchemaForEntity, queryParams);
|
|
142
129
|
|
|
143
130
|
// const sidebar = result.response.sidebar;
|
|
@@ -31,8 +31,7 @@ const setInjectedTags = () => createSelector(
|
|
|
31
31
|
const { tags } = metaEntities;
|
|
32
32
|
const customTags = tags && (tags.custom || {});
|
|
33
33
|
const extendedTags = tags && (tags.extended || {});
|
|
34
|
-
|
|
35
|
-
return (injectedTags = _.merge({}, injectedTags, customTags, extendedTags, loyaltyTags));
|
|
34
|
+
return (injectedTags = _.merge({}, injectedTags, customTags, extendedTags));
|
|
36
35
|
}
|
|
37
36
|
);
|
|
38
37
|
|