@capillarytech/creatives-library 0.1.22 → 0.1.23

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.
@@ -18,3 +18,4 @@ export const GET_USER_DATA_FAILURE = 'cap/GET_USER_DATA_FAILURE';
18
18
  export const GET_SCHEMA_FOR_ENTITY_FAILURE = 'cap/GET_SCHEMA_FOR_ENTITY_FAILURE';
19
19
  export const GET_SCHEMA_FOR_ENTITY_REQUEST = 'cap/GET_SCHEMA_FOR_ENTITY_REQUEST';
20
20
  export const GET_SCHEMA_FOR_ENTITY_SUCCESS = 'cap/GET_SCHEMA_FOR_ENTITY_SUCCESS';
21
+ export const CLEAR_META_ENTITIES = 'cap/CLEAR_META_ENTITIES';
@@ -90,6 +90,11 @@ function capReducer(state = fromJS(initialState), action) {
90
90
  tags: action.data && action.entityType === 'TAG' ? action.data.metaEntities : stateMeta.tags,
91
91
  });
92
92
  }
93
+ case types.CLEAR_META_ENTITIES:
94
+ return state.set('metaEntities', {
95
+ layouts: [],
96
+ tags: [],
97
+ });
93
98
  default:
94
99
  return state;
95
100
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "0.1.22",
4
+ "version": "0.1.23",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",