@capillarytech/creatives-library 8.0.240 → 8.0.241

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/config/app.js CHANGED
@@ -21,7 +21,6 @@ const config = {
21
21
  },
22
22
  development: {
23
23
  api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/creatives',
24
- // api_endpoint: 'http://localhost:2022/arya/api/v1/creatives',
25
24
  campaigns_api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/campaigns',
26
25
  campaigns_api_org_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/org/campaign',
27
26
  auth_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/auth',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.240",
4
+ "version": "8.0.241",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
package/services/api.js CHANGED
@@ -264,7 +264,6 @@ export const getUserData = () => {
264
264
 
265
265
  export const createTemplate = ({template}) => {
266
266
  const url = `${API_ENDPOINT}/templates/SMS`;
267
- console.log("creating template",template);
268
267
  return request(url, getAPICallObject('POST', template));
269
268
  };
270
269
 
@@ -347,7 +346,6 @@ export const getAllTemplates = async ({channel, queryParams = {}}) => {
347
346
 
348
347
  export const deleteTemplate = ({channel, id}) => {
349
348
  const url = `${API_ENDPOINT}/templates/${id}/${channel}`;
350
- console.log("deleting template", url);
351
349
  return request(url, getAPICallObject('DELETE'));
352
350
  //return API.deleteResource(url);
353
351
  };
@@ -675,7 +675,7 @@ export class Creatives extends React.Component {
675
675
  } = templateData || {};
676
676
  const cardContent = (rcsContent.cardContent && rcsContent.cardContent[0]) || {};
677
677
  const Status = RCS_STATUSES.approved || '';
678
- console.log("onedit data--------->",templateData);
678
+
679
679
  creativesTemplateData = {
680
680
  type: channel,
681
681
  edit: true,
@@ -3,7 +3,10 @@ import React, { useState, useEffect, useCallback } from 'react';
3
3
  import { bindActionCreators } from 'redux';
4
4
  import { createStructuredSelector } from 'reselect';
5
5
  import { injectIntl, FormattedMessage } from 'react-intl';
6
- import { get, isEmpty, cloneDeep, isNil } from 'lodash';
6
+ import get from 'lodash/get';
7
+ import isEmpty from 'lodash/isEmpty';
8
+ import cloneDeep from 'lodash/cloneDeep';
9
+ import isNil from 'lodash/isNil';
7
10
  import styled from 'styled-components';
8
11
  import CapSpin from '@capillarytech/cap-ui-library/CapSpin';
9
12
  import CapRow from '@capillarytech/cap-ui-library/CapRow';
@@ -1146,7 +1146,6 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
1146
1146
  }
1147
1147
 
1148
1148
  filterRcsTemplates = (templates) => {
1149
- console.log('templates', templates);
1150
1149
  let { selectedRcsStatus } = this.state;
1151
1150
  selectedRcsStatus = !this.props.isFullMode ? RCS_STATUSES.approved : '';
1152
1151
  if (selectedRcsStatus) {
@@ -290,7 +290,6 @@ export const Whatsapp = (props) => {
290
290
  //gets account details
291
291
  useEffect(() => {
292
292
  const accountObj = accountData.selectedWhatsappAccount || {};
293
- console.log('accountObj', accountObj);
294
293
  if (!isEmpty(accountObj)) {
295
294
  const {
296
295
  sourceAccountIdentifier = '',