@capillarytech/creatives-library 2.0.94 → 2.0.95
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.
|
@@ -1287,7 +1287,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
1287
1287
|
header={this.state.previewTemplate.name}
|
|
1288
1288
|
content={slideboxContent}
|
|
1289
1289
|
show={this.state.showEmailPreviewModal}
|
|
1290
|
-
handleClose={this.
|
|
1290
|
+
handleClose={this.togglePreview}
|
|
1291
1291
|
width={60}
|
|
1292
1292
|
/>
|
|
1293
1293
|
);
|
|
@@ -14,7 +14,7 @@ import { createStructuredSelector } from 'reselect';
|
|
|
14
14
|
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
|
15
15
|
import _ from 'lodash';
|
|
16
16
|
import { Menu, Dropdown } from 'antd';
|
|
17
|
-
import { CapRow, CapColumn, CapButton, CapCard,
|
|
17
|
+
import { CapRow, CapColumn, CapButton, CapCard, CapSpin } from '@capillarytech/cap-react-ui-library';
|
|
18
18
|
import makeSelectCreate, {makeSelectTemplates, getAssetDetails, getContentAssetDetails} from './selectors';
|
|
19
19
|
import * as actions from './actions';
|
|
20
20
|
import richmediaschema from './richmediaschema';
|
|
@@ -970,7 +970,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
970
970
|
}
|
|
971
971
|
return (
|
|
972
972
|
<div className="richmedia-container">
|
|
973
|
-
<
|
|
973
|
+
<CapSpin spinning={this.state.loading}>
|
|
974
974
|
{this.state.showPreview && <WechatRichmediaTemplatePreview
|
|
975
975
|
show={this.state.showPreview}
|
|
976
976
|
closeSlideBox={this.closeSlideBox}
|
|
@@ -1012,7 +1012,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
1012
1012
|
</CapRow>
|
|
1013
1013
|
</div>
|
|
1014
1014
|
</div>
|
|
1015
|
-
</
|
|
1015
|
+
</CapSpin>
|
|
1016
1016
|
</div>
|
|
1017
1017
|
);
|
|
1018
1018
|
}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { connect } from 'react-redux';
|
|
12
|
-
import { CapRow, CapColumn,
|
|
12
|
+
import { CapRow, CapColumn, CapSpin, CapNotification } from '@capillarytech/cap-ui-library';
|
|
13
13
|
import { injectIntl, intlShape } from 'react-intl';
|
|
14
14
|
import { createStructuredSelector } from 'reselect';
|
|
15
15
|
import _ from 'lodash';
|
|
@@ -932,7 +932,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
932
932
|
}
|
|
933
933
|
return (
|
|
934
934
|
<div className="sms-email-container">
|
|
935
|
-
<
|
|
935
|
+
<CapSpin tip={tipText} spinning={spinning}>
|
|
936
936
|
{/*<CapRow style={{marginBottom: '16px', marginLeft: '-40px'}}>
|
|
937
937
|
<CapColumn offset={1}>
|
|
938
938
|
<Breadcrumb>
|
|
@@ -973,7 +973,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
973
973
|
/>
|
|
974
974
|
</CapColumn>
|
|
975
975
|
</CapRow>
|
|
976
|
-
</
|
|
976
|
+
</CapSpin>
|
|
977
977
|
</div>
|
|
978
978
|
);
|
|
979
979
|
}
|
|
@@ -392,7 +392,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
392
392
|
}
|
|
393
393
|
onPaginationChange = () => { this.getAllTemplates({getNextPage: true}); }
|
|
394
394
|
onCreateComplete = () => {
|
|
395
|
-
this.setState({routeParams: null});
|
|
395
|
+
this.setState({routeParams: null, previewOpen: false});
|
|
396
396
|
}
|
|
397
397
|
getCurrentWindow(e) {
|
|
398
398
|
const response = {
|
|
@@ -1291,7 +1291,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
1291
1291
|
};
|
|
1292
1292
|
|
|
1293
1293
|
toggleEmailPreview = () => {
|
|
1294
|
-
this.setState({ showHtmlPreview: !this.state.showHtmlPreview }, () => {
|
|
1294
|
+
this.setState({ showHtmlPreview: !this.state.showHtmlPreview, previewOpen: !this.state.previewOpen }, () => {
|
|
1295
1295
|
if (!this.state.showHtmlPreview) {
|
|
1296
1296
|
this.setState({previewTemplate: {}});
|
|
1297
1297
|
}
|
|
@@ -1362,7 +1362,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
1362
1362
|
header={this.state.previewTemplate.name}
|
|
1363
1363
|
content={slideboxContent}
|
|
1364
1364
|
show={this.state.showEmailPreviewModal}
|
|
1365
|
-
handleClose={this.
|
|
1365
|
+
handleClose={this.togglePreview}
|
|
1366
1366
|
width={60}
|
|
1367
1367
|
/>
|
|
1368
1368
|
);
|
|
@@ -14,7 +14,7 @@ import { createStructuredSelector } from 'reselect';
|
|
|
14
14
|
import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
|
|
15
15
|
import _ from 'lodash';
|
|
16
16
|
import { Menu, Dropdown } from 'antd';
|
|
17
|
-
import { CapRow, CapColumn, CapButton, CapCard,
|
|
17
|
+
import { CapRow, CapColumn, CapButton, CapCard, CapSpin } from '@capillarytech/cap-ui-library';
|
|
18
18
|
import makeSelectCreate, {makeSelectTemplates, getAssetDetails, getContentAssetDetails} from './selectors';
|
|
19
19
|
import * as actions from './actions';
|
|
20
20
|
import richmediaschema from './richmediaschema';
|
|
@@ -970,7 +970,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
970
970
|
}
|
|
971
971
|
return (
|
|
972
972
|
<div className="richmedia-container">
|
|
973
|
-
<
|
|
973
|
+
<CapSpin spinning={this.state.loading}>
|
|
974
974
|
{this.state.showPreview && <WechatRichmediaTemplatePreview
|
|
975
975
|
show={this.state.showPreview}
|
|
976
976
|
closeSlideBox={this.closeSlideBox}
|
|
@@ -1012,7 +1012,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
1012
1012
|
</CapRow>
|
|
1013
1013
|
</div>
|
|
1014
1014
|
</div>
|
|
1015
|
-
</
|
|
1015
|
+
</CapSpin>
|
|
1016
1016
|
</div>
|
|
1017
1017
|
);
|
|
1018
1018
|
}
|