@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.182",
4
+ "version": "8.0.183",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -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
- const loyaltyTags = tags && (tags.loyaltyTags || {});
35
- return (injectedTags = _.merge({}, injectedTags, customTags, extendedTags, loyaltyTags));
34
+ return (injectedTags = _.merge({}, injectedTags, customTags, extendedTags));
36
35
  }
37
36
  );
38
37