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

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.17.6-alpha.0",
4
+ "version": "7.17.6",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -351,7 +351,7 @@ export const response = {
351
351
  fontFamily: "open-sans, sans-serif",
352
352
  fontStyle: "normal",
353
353
  fontWeight: "600",
354
- justifyContent: "flex-end",
354
+ marginLeft: "5px",
355
355
  },
356
356
  customComponent: true,
357
357
  width: 2,
@@ -32,7 +32,6 @@ import styles, { CapTabStyle } from './TemplatesV2.style';
32
32
  import { CREATIVES_UI_VIEW, LOYALTY, WHATSAPP, RCS } from '../App/constants';
33
33
  import AccessForbidden from '../../v2Components/AccessForbidden';
34
34
  import { getObjFromQueryParams } from '../../utils/v2common';
35
- import { selectCurrentOrgDetails } from "../../v2Containers/Cap/selectors";
36
35
 
37
36
  const {CapCustomCardList} = CapCustomCard;
38
37
 
@@ -52,8 +51,6 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
52
51
  onChannelChange,
53
52
  showDisabledFBInfo,
54
53
  enableNewChannels = [],
55
- currentOrgDetails = {},
56
- cap = {},
57
54
  } = props;
58
55
 
59
56
  const defaultPanes = {
@@ -115,14 +112,6 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
115
112
  return pane;
116
113
  });
117
114
 
118
- const { accessibleFeatures = [] } = currentOrgDetails || {};
119
- const { currentOrgDetails: { accessibleFeatures: libModeAccessibleFeatures = [] } = {} } = cap || {};
120
- const hideEngagementChannel = (accessibleFeatures || libModeAccessibleFeatures).includes("HIDE_ENGAGEMENT_CHANNELS");
121
- // Show only line and email channel content with both channel tabs if the HIDE_ENGAGEMENT_CHANNELS feature is enabled;
122
- filteredPanes = hideEngagementChannel ? filteredPanes?.filter((pane) => ['email', 'line', ].includes(pane?.key) && pane) : filteredPanes;
123
- defaultChannel = hideEngagementChannel ? 'email' : defaultChannel;
124
- // console.log("Test ### filter ", filteredPanes)
125
-
126
115
  const channel = ['sms', 'email', 'mobilepush', 'line', 'call_task'];
127
116
  if (!isEmpty(channelsToDisable)) {
128
117
  channel.some((ch) => {
@@ -151,7 +140,7 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
151
140
  if (queryItems.channel === WHATSAPP) {
152
141
  this.channelChange(WHATSAPP);
153
142
  }
154
- if (this.props?.isFullMode) {
143
+ if(this.props?.isFullMode){
155
144
  this.props.templateActions.getCdnTransformationConfig();
156
145
  }
157
146
  }
@@ -306,9 +295,6 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
306
295
  if (!accessiblePermissions.includes(CREATIVES_UI_VIEW)) {
307
296
  isCreativeAccessible = false;
308
297
  }
309
-
310
- console.log("Test ### panes ", { pane: this.state.panes, activeKey: this.state.selectedChannel});
311
-
312
298
  return (
313
299
  !isCreativeAccessible ? <AccessForbidden /> : (
314
300
  <div className={`${className} creatives-templates-container ${isFullMode ? 'fullmode' : 'library-mode'}`} data-testid="cap-wrapper">
@@ -355,18 +341,15 @@ TemplatesV2.propTypes = {
355
341
  authData: PropTypes.object,
356
342
  FTPMode: PropTypes.string,
357
343
  messageStrategy: PropTypes.string,
358
- currentOrgDetails: PropTypes.object,
359
344
  };
360
345
 
361
346
  TemplatesV2.defaultProps = {
362
347
  isFullMode: true,
363
- currentOrgDetails: {},
364
348
  };
365
349
 
366
350
  const mapStateToProps = createStructuredSelector({
367
351
  Templates: makeSelectTemplates(),
368
352
  TemplatesList: makeSelectTemplatesResponse(),
369
- currentOrgDetails: selectCurrentOrgDetails(),
370
353
  });
371
354
 
372
355
  function mapDispatchToProps(dispatch) {