@capillarytech/creatives-library 0.0.7 → 0.0.9

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": "0.0.7",
4
+ "version": "0.0.9",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
package/routes.js CHANGED
@@ -277,7 +277,7 @@ export default function createRoutes(store) {
277
277
  },
278
278
  }, {
279
279
  path: '/email/create',
280
- name: 'Email',
280
+ name: 'EmailCreate',
281
281
  getComponent(nextState, cb) {
282
282
  const importModules = Promise.all([
283
283
  import('containers/Email/reducer'),
package/services/api.js CHANGED
@@ -273,13 +273,13 @@ export const getCmsTemplateSettings = (cmsType, projectId, cmsMode, langId) => {
273
273
  return API.get(url);
274
274
  };
275
275
 
276
- export const getCmsTemplateData = (cmsType, projectId) => {
277
- const url = `${API_ENDPOINT}/cms/getContent?type=${cmsType}&projectId=${projectId}`;
276
+ export const getCmsTemplateData = (cmsType, projectId, langId) => {
277
+ const url = `${API_ENDPOINT}/cms/getContent?type=${cmsType}&projectId=${projectId}&langId=${langId}`;
278
278
  return API.get(url);
279
279
  };
280
280
 
281
- export const getCmsData = (cmsType, projectId) => {
282
- const url = `${API_ENDPOINT}/cms/getCmsData?type=${cmsType}&projectId=${projectId}`;
281
+ export const getCmsData = (cmsType, projectId, langId) => {
282
+ const url = `${API_ENDPOINT}/cms/getCmsData?type=${cmsType}&projectId=${projectId}&langId=${langId}`;
283
283
  return API.get(url);
284
284
  };
285
285