@capillarytech/creatives-library 8.0.223-alpha.1 → 8.0.223-alpha.4

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.223-alpha.1",
4
+ "version": "8.0.223-alpha.4",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -38,7 +38,7 @@ class CardGrid extends React.Component { // eslint-disable-line react/prefer-sta
38
38
  <div className={this.props.className}>
39
39
  <div style={{ marginBottom: '16px' }}>{this.props.filterContent}</div>
40
40
  <CapSpin spinning={this.props.isLoading} tip={this.props.loadingTip}>
41
- <div className={this.props.enablePagination ? 'pagination-container' : ''}>
41
+ <div className={this.props.enablePagination ? 'v2-pagination-container' : ''}>
42
42
  <CapRow gutter={this.props.gutterSize}>
43
43
  { this.props.listItem.length > 0 ? this.props.listItem.map( (item) => (
44
44
  <CapColumn style={{ width: `${100 / this.props.colNumber}%`, paddingBottom: '16px'}} key={item.id} span={parseInt(24 / this.props.colNumber, 10)}>
@@ -40,7 +40,7 @@ function CmsTemplatesComponent(props) {
40
40
  }, []);
41
41
 
42
42
  return (<CapSpin spinning={props.cmsTemplatesLoader}>
43
- <div className="pagination-container">
43
+ <div className="v2-pagination-container">
44
44
  <CapCustomCardList cardList={cardDataList} type="Email" />
45
45
  </div>
46
46
  </CapSpin>);
@@ -1,4 +1,4 @@
1
- .pagination-container{
1
+ .v2-pagination-container{
2
2
  height: calc(100vh - 400px);
3
3
  overflow-y: auto;
4
4
  overflow-x: hidden;
@@ -35,7 +35,7 @@ Pagination.propTypes = {
35
35
  };
36
36
 
37
37
  Pagination.defaultProps = {
38
- paginationContainer: "pagination-container",
38
+ paginationContainer: "v2-pagination-container",
39
39
  };
40
40
 
41
41
  export default Pagination;
@@ -371,7 +371,7 @@ export class Gallery extends React.Component { // eslint-disable-line react/pref
371
371
  return (<div>
372
372
  {filterContent}
373
373
  {!(isInitialLoading && isLoading) && <div>
374
- {!_.isEmpty(templates) || !_.isEmpty(searchText) ? <div className={`pagination-container ${this.props.isLineAsset ? 'gallery-upload' : ''}`}>
374
+ {!_.isEmpty(templates) || !_.isEmpty(searchText) ? <div className={`v2-pagination-container ${this.props.isLineAsset ? 'gallery-upload' : ''}`}>
375
375
  <CapCustomCardList key={`${currentChannel}-card-list`} cardList={cardDataList} type={'Email'} />
376
376
  {!_.isEmpty(searchText) && _.isEmpty(templates) && (
377
377
  <div style={{ height: '65vh', textAlign: 'center', lineHeight: '65vh'}}>
@@ -499,7 +499,7 @@ export class Gallery extends React.Component { // eslint-disable-line react/pref
499
499
  </div>
500
500
  </div>
501
501
  </div> :
502
- <Pagination onPageChange={() => { this.getAllAssets({getNextPage: true}); }} paginationSelector="pagination-container">
502
+ <Pagination onPageChange={() => { this.getAllAssets({getNextPage: true}); }} paginationSelector="v2-pagination-container">
503
503
  {/* <CardGrid
504
504
  listItem={this.prepareData()}
505
505
  filterContent={filterContent}
@@ -2616,7 +2616,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
2616
2616
  }) : [];
2617
2617
  return (<div>
2618
2618
  <CapSpin spinning={isLoading} tip={loadingTip}>
2619
- {!_.isEmpty(templates) && <div className="pagination-container">
2619
+ {!_.isEmpty(templates) && <div className="v2-pagination-container">
2620
2620
  <CapCustomCardList key={`${currentChannel}-card-list`} cardList={cardDataList} type={'Email'} />
2621
2621
  </div>}
2622
2622
  </CapSpin>
@@ -2734,7 +2734,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
2734
2734
  return (
2735
2735
  <div key="creatives-email-add-image-container">
2736
2736
  {this.getFilterContent()}
2737
- <Pagination onPageChange={() => { this.fetchAllAssets({getNextPage: true}); }} paginationSelector="pagination-container">
2737
+ <Pagination onPageChange={() => { this.fetchAllAssets({getNextPage: true}); }} paginationSelector="v2-pagination-container">
2738
2738
  {(!fetchingAllAssets && (!fetchAllAssetSuccess || (fetchAllAssetSuccess && !assetList.length))) ? (
2739
2739
  <FormattedMessage {...messages.noImgInGallery}/>
2740
2740
  ) : this.getTemplateDataForGrid({
@@ -95,7 +95,7 @@ export const LineDrawer = ({
95
95
  onChange={(e) => searchTemplate(e.target.value)}
96
96
  onClear={() => searchTemplate('')}
97
97
  />
98
- <Pagination onPageChange={() => { getAllLineTemplate({getNextPage: true}); }} paginationSelector="pagination-container">
98
+ <Pagination onPageChange={() => { getAllLineTemplate({getNextPage: true}); }} paginationSelector="v2-pagination-container">
99
99
  {
100
100
  !cardDataList.length
101
101
  ? (
@@ -105,7 +105,7 @@ export const LineDrawer = ({
105
105
  )
106
106
  : null
107
107
  }
108
- <div className="pagination-container">
108
+ <div className="v2-pagination-container">
109
109
  <CapCustomCardList
110
110
  key={'LINE-card-list'}
111
111
  cardList={cardDataList}
@@ -18,7 +18,7 @@
18
18
  .knSUjl .component-wrapper .cap-tab-v2.ant-tabs-line {
19
19
  height: auto;
20
20
  }
21
- .pagination-container {
21
+ .v2-pagination-container {
22
22
  .LINE {
23
23
  .ant-card-body {
24
24
  background-color: $CAP_G09;
@@ -75,7 +75,7 @@
75
75
  margin-bottom: $CAP_SPACE_12;
76
76
  }
77
77
 
78
- .pagination-container.gallery-upload {
78
+ .v2-pagination-container.gallery-upload {
79
79
  height: calc(100vh - 60px);
80
80
 
81
81
  .cap-custom-card-list-col {
@@ -9,7 +9,7 @@
9
9
 
10
10
  @media screen and (max-width: 1172px) {
11
11
  .creatives-templates-list.full-mode{
12
- .pagination-container {
12
+ .v2-pagination-container {
13
13
  .cap-custom-card-list-row {
14
14
  .cap-custom-card-list-col{
15
15
  &:nth-child(3n+3) { //every 4th child
@@ -23,7 +23,7 @@
23
23
 
24
24
  @media screen and (min-width: 1172px) {
25
25
  .creatives-templates-list.full-mode{
26
- .pagination-container {
26
+ .v2-pagination-container {
27
27
  .cap-custom-card-list-row {
28
28
  .cap-custom-card-list-col{
29
29
  &:nth-child(4n+4) { //every 4th child
@@ -55,7 +55,7 @@
55
55
  }
56
56
  }
57
57
 
58
- .pagination-container {
58
+ .v2-pagination-container {
59
59
  .FACEBOOK {
60
60
  .ant-card-body {
61
61
  background-color: $CAP_G09;
@@ -658,8 +658,8 @@
658
658
  background-image: url("https://s3.amazonaws.com/test_files_cache_bkp/intouch_creative_assets/1720b7f7e78860c1f905.svg");
659
659
  }
660
660
  }
661
- .pagination-container{
662
- height: calc(100vh - 182px);
661
+ .v2-pagination-container{
662
+ height: calc(100vh - 340px);
663
663
  overflow-y: auto;
664
664
  overflow-x: hidden;
665
665
  }
@@ -1756,7 +1756,7 @@ return (<div>
1756
1756
  {[WHATSAPP, ZALO].includes(currentChannel) && this.selectedFilters()}
1757
1757
  {<div>
1758
1758
  {!isEmpty(filteredTemplates) || !isEmpty(this.state.searchText) || !isEmpty(this.props.Templates.templateError) ? (
1759
- <div className={!isEmpty(this.state.searchText) && isEmpty(cardDataList) ? '' : "pagination-container"}>
1759
+ <div className={!isEmpty(this.state.searchText) && isEmpty(cardDataList) ? '' : "v2-pagination-container"}>
1760
1760
  <CapCustomCardList
1761
1761
  key={`${currentChannel}-card-list`}
1762
1762
  cardList={cardDataList}
@@ -3544,7 +3544,7 @@ return (<div>
3544
3544
  onPageChange={
3545
3545
  templates.length ? this.onPaginationChange : () => {}
3546
3546
  }
3547
- paginationSelector="pagination-container"
3547
+ paginationSelector="v2-pagination-container"
3548
3548
  >
3549
3549
  {this.getTemplateDataForGrid({
3550
3550
  previewTemplateId: this.state.zaloPreviewItemId,
@@ -201,7 +201,7 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
201
201
  return (<div>
202
202
  {filterContent}
203
203
  <CapSpin spinning={isLoading} tip={loadingTip}>
204
- <div className="pagination-container">
204
+ <div className="v2-pagination-container">
205
205
  <CapCustomCardList key={`${currentChannel}-card-list`} cardList={cardDataList} type={currentChannel} />
206
206
  </div>
207
207
  </CapSpin>