@capillarytech/creatives-library 7.12.9 → 7.12.11

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": "7.12.9",
4
+ "version": "7.12.11",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -78,7 +78,7 @@
78
78
  width: 100%;
79
79
  font-family: 'open-sans';
80
80
  .rcs-image{
81
- width: 156px;
81
+ width: 100%;
82
82
  height: 123px;
83
83
  }
84
84
  .message-pop-item{
@@ -97,9 +97,6 @@
97
97
  margin-top: 0;
98
98
  padding: 4px 8px;
99
99
  }
100
- &.rcs-desc:not(:first-child) {
101
- margin-top: -8px;
102
- }
103
100
  }
104
101
  }
105
102
  &:not(.sms){
@@ -98,12 +98,12 @@ export function SlideBoxHeader(props) {
98
98
  title={<FormattedMessage {...headerMessage} values={{ channel: getChannelLabel(channel) }} />}
99
99
  description={
100
100
  <>
101
- {showTemplateName && (
101
+ {showTemplateName ? (
102
102
  <>
103
103
  {renderWhatsappData("label1", <FormattedMessage {...globalMessages.templateNameLabel} />)}
104
104
  {renderWhatsappData("label2", templateName)}
105
105
  </>
106
- )}
106
+ ) : ""}
107
107
  {isWhatsappEdit && (
108
108
  <>
109
109
  {renderWhatsappData("label3", <FormattedMessage {...whatsppMsg.labelSeperator} />)}
@@ -121,8 +121,8 @@ export function SlideBoxHeader(props) {
121
121
  <CapIcons.backIcon onClick={onShowTemplates} />
122
122
  </PrefixWrapper>
123
123
  }
124
- />
125
- )}
124
+ />
125
+ )}
126
126
  {!showTemplateNameHeader && slidBoxContent === 'createTemplate' && ( templateStep === 'modeSelection' || (templateStep === "createTemplateContent" && weChatTemplateType !== MAP_TEMPLATE) ) && (
127
127
  <CapHeader
128
128
  title={<FormattedMessage {...(showCreateTraiSMSHeader ? messages.UploadSMStemplates : messages.createMessageContent)} values={{channel: getChannelLabel(channel)}}/>}
@@ -80,9 +80,17 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
80
80
  filteredPanes.push({content: <></>, tab: intl.formatMessage(messages.FTP), key: 'ftp'});
81
81
  defaultChannel = 'FTP';
82
82
  }
83
- if (!enableNewChannels.includes(WHATSAPP.toUpperCase())) {
84
- filteredPanes.splice(7, 1);
85
- }
83
+ const commonChannels = ['sms', 'email', 'wechat', 'mobilepush', 'line', 'viber', 'facebook', 'call_task', 'ftp', 'assets'];
84
+
85
+ // we only show channels which other than commonChannels
86
+ // if it is coming in enableNewChannels array
87
+ filteredPanes.filter((item) => {
88
+ const channel = item.key;
89
+ if (!commonChannels.includes(channel)) {
90
+ return !enableNewChannels.includes(channel.toUpperCase());
91
+ }
92
+ return true;
93
+ });
86
94
  }
87
95
 
88
96