@capillarytech/creatives-library 9.0.33 → 9.0.34

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": "9.0.33",
4
+ "version": "9.0.34",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -1066,9 +1066,9 @@ export const Rcs = (props) => {
1066
1066
  if (mediaType) {
1067
1067
  setTemplateMediaType(mediaType);
1068
1068
  }
1069
- const tempOrientation = cardSettings.cardOrientation;
1070
- const tempAlignment = cardSettings.mediaAlignment;
1071
- const tempHeight = mediaData.height;
1069
+ const tempOrientation = cardSettings?.cardOrientation;
1070
+ const tempAlignment = cardSettings?.mediaAlignment;
1071
+ const tempHeight = mediaData?.height;
1072
1072
 
1073
1073
  // Map to actual RCS_IMAGE_DIMENSIONS keys
1074
1074
  let tempDimension;
@@ -239,6 +239,7 @@ exports[`Test Templates container Should render sms illustration when no templat
239
239
  <CapButton
240
240
  className="create-new-sms margin-l-8 margin-b-12"
241
241
  disabled={false}
242
+ isAddBtn={true}
242
243
  onClick={[Function]}
243
244
  type="primary"
244
245
  >
@@ -813,6 +814,7 @@ exports[`Test Templates container Should render temlates when whatsapp templates
813
814
  <CapButton
814
815
  className="create-new-whatsapp margin-l-8 margin-b-12"
815
816
  disabled={false}
817
+ isAddBtn={true}
816
818
  onClick={[Function]}
817
819
  type="primary"
818
820
  >
@@ -1223,6 +1225,7 @@ exports[`Test Templates container Test max templates exceeded 1`] = `
1223
1225
  <CapButton
1224
1226
  className="create-new-whatsapp margin-l-8 margin-b-12"
1225
1227
  disabled={false}
1228
+ isAddBtn={true}
1226
1229
  onClick={[Function]}
1227
1230
  type="primary"
1228
1231
  >
@@ -1696,6 +1699,7 @@ exports[`Test Templates container Test max templates not exceeded 1`] = `
1696
1699
  <CapButton
1697
1700
  className="create-new-whatsapp margin-l-8 margin-b-12"
1698
1701
  disabled={false}
1702
+ isAddBtn={true}
1699
1703
  onClick={[Function]}
1700
1704
  type="primary"
1701
1705
  >
@@ -2169,6 +2173,7 @@ exports[`Test Templates container Test max templates warning 1`] = `
2169
2173
  <CapButton
2170
2174
  className="create-new-whatsapp margin-l-8 margin-b-12"
2171
2175
  disabled={false}
2176
+ isAddBtn={true}
2172
2177
  onClick={[Function]}
2173
2178
  type="primary"
2174
2179
  >
@@ -10,7 +10,6 @@ export default css`
10
10
 
11
11
  .component-wrapper {
12
12
  ${(props) => props.isFullMode ? `
13
- max-width: 71.25rem;
14
13
  margin: 0 auto;
15
14
  width: 100%;
16
15
  padding: 0;
@@ -10,7 +10,7 @@ import { connect } from 'react-redux';
10
10
  import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
11
11
  import { createStructuredSelector } from 'reselect';
12
12
  import { bindActionCreators, compose } from 'redux';
13
- import { CapTab, CapCustomCard, CapButton, CapHeader, CapIcon, CapSpin, CapTooltip } from '@capillarytech/cap-ui-library';
13
+ import { CapTab, CapCustomCard, CapButton, CapIcon, CapSpin, CapTooltip } from '@capillarytech/cap-ui-library';
14
14
  import { find, get, pick } from 'lodash';
15
15
  import Helmet from 'react-helmet';
16
16
 
@@ -443,14 +443,6 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
443
443
  />
444
444
  )}
445
445
  <section className="component-wrapper">
446
- {isFullMode && (
447
- <CapHeader
448
- title={<FormattedMessage {...messages.creatives} />}
449
- {...(!useLocalTemplates && {
450
- description: <FormattedMessage {...messages.creativesDesc} />,
451
- })}
452
- />
453
- )}
454
446
  {hideChannelTabsForLocalSms ? (
455
447
  <section className="templates-v2-local-sms-pane">{activeLocalPane?.content}</section>
456
448
  ) : (