@capillarytech/creatives-library 7.12.14 → 7.12.16

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.
@@ -1,8 +1,8 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`galleryReducer Initial State should match snapshot returns the initial state 1`] = `
4
- Immutable.Map {
5
- "assetList": Immutable.List [],
4
+ Object {
5
+ "assetList": Array [],
6
6
  "assetUploading": false,
7
7
  "fetchingAllAssets": false,
8
8
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.12.14",
4
+ "version": "7.12.16",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -1,8 +1,8 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`galleryReducer Initial State should match snapshot returns the initial state 1`] = `
4
- Immutable.Map {
5
- "assetList": Immutable.List [],
4
+ Object {
5
+ "assetList": Array [],
6
6
  "assetUploading": false,
7
7
  "fetchingAllAssets": false,
8
8
  }
@@ -7,8 +7,8 @@ import moment from 'moment';
7
7
  import PropTypes from 'prop-types';
8
8
  import messages from './messages';
9
9
  import whatsppMsg from '../Whatsapp/messages';
10
- import { LANGUAGE_OPTIONS } from '../Whatsapp/constants'
11
- import globalMessages from '../Cap/messages'
10
+ import { LANGUAGE_OPTIONS } from '../Whatsapp/constants';
11
+ import globalMessages from '../Cap/messages';
12
12
  import { MAP_TEMPLATE } from '../WeChat/Wrapper/constants';
13
13
  import { NO_COMMUNICATION, FTP, WHATSAPP, RCS } from '../App/constants';
14
14
  import { isTraiDLTEnable } from '../../utils/common';
@@ -37,7 +37,7 @@ export function SlideBoxHeader(props) {
37
37
  const mapTemplateCreate = !showTemplateNameHeader && slidBoxContent === 'createTemplate' && weChatTemplateType === MAP_TEMPLATE && templateStep !== 'modeSelection';
38
38
  const isTraiDlt = isTraiDLTEnable(isFullMode, smsRegister);
39
39
  const showCreateTraiSMSHeader = isTraiDlt && channel.toLowerCase() === "sms";
40
- const showTemplateName = [WHATSAPP, RCS].includes(channel.toLowerCase()) & slidBoxContent === 'editTemplate';
40
+ const showTemplateName = [WHATSAPP, RCS].includes(channel.toLowerCase()) & slidBoxContent === 'editTemplate' & !isFullMode;
41
41
  const isWhatsappEdit = channel.toLowerCase() === WHATSAPP && slidBoxContent === 'editTemplate';
42
42
  const isWhatsappCreate = channel.toLowerCase() === WHATSAPP && slidBoxContent === 'createTemplate';
43
43
  const whatsappOverview = isWhatsappEdit && isFullMode;
@@ -111,7 +111,7 @@ export function SlideBoxHeader(props) {
111
111
  {renderWhatsappData("label2", formatString(whatsappCategory))}
112
112
  {renderWhatsappData("label3", <FormattedMessage {...whatsppMsg.labelSeperator} />)}
113
113
  {renderWhatsappData("label1", <FormattedMessage {...whatsppMsg.languageLabel} />)}
114
- {renderWhatsappData("label2", LANGUAGE_OPTIONS?.find(option => option.value === whatsappLanguageCode)?.label)}
114
+ {renderWhatsappData("label2", LANGUAGE_OPTIONS?.find((option) => option.value === whatsappLanguageCode)?.label)}
115
115
  </>)
116
116
  }
117
117
  </>
@@ -201,7 +201,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
201
201
  this.setState({currentTab: data});
202
202
  };
203
203
  onTemplateNameChange = () => {
204
- //
204
+ //
205
205
  };
206
206
 
207
207
 
@@ -1411,10 +1411,10 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
1411
1411
  //this function gets called from form bulder only when the form data is valid
1412
1412
  const obj = this.getTransformedData(formData);
1413
1413
  const content = getContent(obj);
1414
- const {
1414
+ const {
1415
1415
  definition: {
1416
- mode: definitionMode,
1417
- },
1416
+ mode: definitionMode
1417
+ }
1418
1418
  } = obj || {};
1419
1419
  const label = this.props.location.pathname.indexOf('image') >= 0 ? 'image' : 'text';
1420
1420
  this.props.actions.createTemplate(obj, (response) => {
@@ -1430,9 +1430,9 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
1430
1430
  timeTaken,
1431
1431
  content,
1432
1432
  mode: CREATE,
1433
- imageAdded: definitionMode === 'image',
1433
+ imageAdded: definitionMode === 'image'
1434
1434
  });
1435
-
1435
+
1436
1436
  this.discardValues();
1437
1437
  const message = this.props.intl.formatMessage(messages.messageCreateSuccess);
1438
1438
  CapNotification.success({message, key: 'createMpushSuccess'});
@@ -70,6 +70,7 @@ export const SmsTraiEdit = (props) => {
70
70
  isFullMode,
71
71
  getFormSubscriptionData,
72
72
  templateData = {},
73
+ selectedOfferDetails,
73
74
  } = props || {};
74
75
  const { formatMessage } = intl;
75
76
  const [loading, updateLoading] = useState(true);
@@ -565,6 +566,7 @@ export const SmsTraiEdit = (props) => {
565
566
  onContextChange={handleOnTagsContextChange}
566
567
  injectedTags={injectedTags || {}}
567
568
  hidePopover={disablehandler()}
569
+ selectedOfferDetails={selectedOfferDetails}
568
570
  />
569
571
  }
570
572
  />