@capillarytech/creatives-library 8.0.113-alpha.0 → 8.0.113

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": "8.0.113-alpha.0",
4
+ "version": "8.0.113",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -183,9 +183,9 @@ export const CapWhatsappCTA = (props) => {
183
183
  } = ctaData[index] || {};
184
184
  if (text === '' || buttonError) {
185
185
  return true;
186
- } if (ctaType === PHONE_NUMBER && phone_number.length < 5) {
186
+ } else if (ctaType === PHONE_NUMBER && phone_number.length < 5) {
187
187
  return true;
188
- } if (ctaType === WEBSITE && (url === '' || urlError)) {
188
+ } else if (ctaType === WEBSITE && (url === '' || urlError)) {
189
189
  return true;
190
190
  }
191
191
  return false;
@@ -240,10 +240,7 @@ export const CapWhatsappCTA = (props) => {
240
240
  </CapColumn>
241
241
  {ctaIsPhone && (
242
242
  <CapColumn span={10} align="left">
243
- <CapLabel className="phone">
244
- +
245
- {phone_number}
246
- </CapLabel>
243
+ <CapLabel className="phone">+{phone_number}</CapLabel>
247
244
  </CapColumn>
248
245
  )}
249
246
  {!ctaIsPhone && (
@@ -108,11 +108,11 @@ export class TagList extends React.Component { // eslint-disable-line react/pref
108
108
  if (eventContextTags?.length) {
109
109
  const TAG_HEADER_MSG_LABEL = this.props.intl.formatMessage(messages.entryEvent);
110
110
  eventContextTagsObj.eventContextTags = {
111
- "name": TAG_HEADER_MSG_LABEL,
112
- "desc": TAG_HEADER_MSG_LABEL,
113
- "resolved": true,
111
+ name: TAG_HEADER_MSG_LABEL,
112
+ desc: TAG_HEADER_MSG_LABEL,
113
+ resolved: true,
114
114
  'tag-header': true,
115
- "subtags": {},
115
+ subtags: {},
116
116
  };
117
117
 
118
118
  eventContextTags.forEach((tag) => {
@@ -123,11 +123,11 @@ export class TagList extends React.Component { // eslint-disable-line react/pref
123
123
  // Initializing the tags profile if it doesn't exist
124
124
  if (!eventContextTagsObj?.eventContextTags?.subtags?.[profileId]) {
125
125
  eventContextTagsObj.eventContextTags.subtags[profileId] = {
126
- "name": profileName,
127
- "desc": profileName,
128
- "resolved": true,
129
- "tag-header": true,
130
- "subtags": {},
126
+ name: profileName,
127
+ desc: profileName,
128
+ resolved: true,
129
+ 'tag-header': true,
130
+ subtags: {},
131
131
  };
132
132
  }
133
133
  // Adding the current tag to the profile group
@@ -167,8 +167,8 @@ export class TagList extends React.Component { // eslint-disable-line react/pref
167
167
  }
168
168
  if (!tag['tag-header']) {
169
169
  mainTags[tag.value] = {
170
- name: tag?.label[userLocale] ? tag?.label[userLocale] : tag?.label?.en,
171
- desc: tag?.label[userLocale] ? tag?.label[userLocale] : tag?.label?.en,
170
+ "name": tag?.label[userLocale] ? tag?.label[userLocale] : tag?.label?.en,
171
+ "desc": tag?.label[userLocale] ? tag?.label[userLocale] : tag?.label?.en,
172
172
  };
173
173
  } else if (tag['tag-header'] && mainTags[tag.value]) {
174
174
  mainTags[tag.value].subtags = _.concat(mainTags[tag.value].subtags, tag.subtags);