@capillarytech/creatives-library 7.10.62 → 7.10.65

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.62",
4
+ "version": "7.10.65",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -12,7 +12,6 @@
12
12
  },
13
13
  "license": "LicenseRef-LICENSE",
14
14
  "dependencies": {
15
- "@babel/polyfill": "7.4.3",
16
15
  "@bugsnag/js": "^7.2.1",
17
16
  "@bugsnag/plugin-react": "^7.2.1",
18
17
  "@capillarytech/cap-ui-utils": "1.4.2",
@@ -391,10 +391,10 @@ class Creatives extends React.Component {
391
391
  languages: [
392
392
  {
393
393
  language,
394
- content: `$'${template}'`,
395
- }
396
- ]
397
- }
394
+ content: template,
395
+ },
396
+ ],
397
+ },
398
398
  },
399
399
  },
400
400
  },
@@ -550,7 +550,7 @@ class Creatives extends React.Component {
550
550
  templateData = {
551
551
  channel,
552
552
  accountId,
553
- accountName: accountDetails.name,
553
+ accountName: accountDetails?.name || '',
554
554
  messageBody: languages[0].content,
555
555
  templateConfigs: {
556
556
  id: template._id,
@@ -191,7 +191,9 @@ export const Whatsapp = (props) => {
191
191
  '',
192
192
  );
193
193
  //removing last var added for Click {{unsubscribe}} to unsubscribe
194
- validVarArr.pop();
194
+ if (isFullMode) {
195
+ validVarArr.pop();
196
+ }
195
197
  while (msg.length !== 0) {
196
198
  //converting content string to an array split at var
197
199
  const index = msg.indexOf(validVarArr[0]);