@capillarytech/creatives-library 7.10.15 → 7.10.17

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
@@ -17,7 +17,6 @@ const config = {
17
17
  },
18
18
  development: {
19
19
  api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/creatives',
20
- //api_endpoint: 'http://localhost:2022/arya/api/v1/creatives',
21
20
  campaigns_api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/campaigns',
22
21
  campaigns_api_org_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/org/campaign',
23
22
  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": "7.10.15",
4
+ "version": "7.10.17",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
package/services/api.js CHANGED
@@ -294,9 +294,6 @@ export const deleteAssetById = ({assetId, assetType}) => {
294
294
  };
295
295
 
296
296
  export const uploadFile = ({file, assetType, fileParams, mode, wechatParams}) => {
297
- if ( (assetType || '').toLowerCase() === 'image' && fileParams && typeof(fileParams) === 'object' ) {
298
- fileParams.isGeneratePreview = true;
299
- }
300
297
  const data = new FormData();
301
298
  data.append('file', file);
302
299
  data.append('fileParam', JSON.stringify(fileParams));
@@ -113,7 +113,7 @@ export const SmsTraiCreate = (props) => {
113
113
 
114
114
  const templateIdValidation = (templateId) => {
115
115
  let isError = false;
116
- const _templateId = templateId?.replace(/["']/g, '');
116
+ const _templateId = templateId?.replace(/[“”"'‘’`´]/g, '');
117
117
  const numbersOnly = /^\d+$/;
118
118
  if (!numbersOnly.test(_templateId)) {
119
119
  isError = true;
@@ -477,7 +477,7 @@ export const SmsTraiCreate = (props) => {
477
477
  obj[transformedResults[0][i]] = arr[i];
478
478
  });
479
479
  //removing additional single/double quotes from template_id
480
- obj['template_id'] = obj['template_id']?.replace(/["']/g, '');
480
+ obj['template_id'] = obj['template_id']?.replace(/[“”"'‘’`´]/g, '');
481
481
  obj['unicode-validity'] = true;
482
482
  obj['updated-sms-editor'] = '';
483
483
  obj['var-mapped'] = {};