@capillarytech/creatives-library 3.1.24 → 3.1.25
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
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
// import { connect } from 'react-redux';
|
|
10
10
|
import { CapRow, CapColumn, CapButton } from '@capillarytech/cap-react-ui-library/';
|
|
11
|
-
import { CapHeading } from '@capillarytech/cap-ui-library/';
|
|
11
|
+
import { CapHeading, CapLabel } from '@capillarytech/cap-ui-library/';
|
|
12
12
|
import { FormattedMessage } from 'react-intl';
|
|
13
13
|
import _ from 'lodash';
|
|
14
14
|
import './_wechatRichmediaTemplatePrev.scss';
|
|
@@ -35,14 +35,14 @@ class WechatRichmediaTemplatePreview extends React.PureComponent { // eslint-dis
|
|
|
35
35
|
previewMsg.push(
|
|
36
36
|
<div className="name-container-with-abstract">
|
|
37
37
|
<CapHeading type="h4">{contentData.title}</CapHeading>
|
|
38
|
-
<
|
|
38
|
+
<CapLabel type="label9">{contentData.digest}</CapLabel>
|
|
39
39
|
</div>
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
42
|
content.splice(1, 2).forEach((data) => {
|
|
43
43
|
previewMsg.push(
|
|
44
44
|
<div className="additional-richmedia-container">
|
|
45
|
-
<div><
|
|
45
|
+
<div><CapLabel type="label9" style={{width: '170px', top: '12px', position: 'relative'}}>{data.title}</CapLabel></div>
|
|
46
46
|
<img alt="default" width="34px" height="34px" src={data.image_url} />
|
|
47
47
|
</div>
|
|
48
48
|
);
|
|
@@ -9,7 +9,6 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { connect } from 'react-redux';
|
|
12
|
-
import Helmet from 'react-helmet';
|
|
13
12
|
import { bindActionCreators } from 'redux';
|
|
14
13
|
import { createStructuredSelector } from 'reselect';
|
|
15
14
|
import { injectIntl, intlShape } from 'react-intl';
|
|
@@ -18,7 +17,7 @@ import cloneDeep from 'lodash/cloneDeep';
|
|
|
18
17
|
import forEach from 'lodash/forEach';
|
|
19
18
|
import isEqual from 'lodash/isEqual';
|
|
20
19
|
import get from 'lodash/get';
|
|
21
|
-
import { CapRow, CapColumn, CapButton, CapCard, CapSpin, CapInput, CapHeading, CapDivider, CapIcon, CapLink, CapNotification } from '@capillarytech/cap-ui-library';
|
|
20
|
+
import { CapRow, CapColumn, CapButton, CapCard, CapSpin, CapInput, CapHeading, CapDivider, CapIcon, CapLink, CapNotification, CapLabel } from '@capillarytech/cap-ui-library';
|
|
22
21
|
import makeSelectCreate, {makeSelectTemplates, getAssetDetails, getContentAssetDetails} from './selectors';
|
|
23
22
|
import * as actions from './actions';
|
|
24
23
|
import richmediaschema from './richmediaschema';
|
|
@@ -727,7 +726,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
727
726
|
{totalContentBlocks === 1 &&
|
|
728
727
|
<div className="custom-card">
|
|
729
728
|
<CapHeading type="h4" className="overflow-wrap-fields">{formData['title-value'] || "Title"}</CapHeading>
|
|
730
|
-
<
|
|
729
|
+
<CapLabel type="label9" className="overflow-wrap-fields">{formData['cover-abstract-value'] || "Cover abstract"}</CapLabel>
|
|
731
730
|
</div>
|
|
732
731
|
}
|
|
733
732
|
</div>
|
|
@@ -746,7 +745,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
|
|
|
746
745
|
>
|
|
747
746
|
<div className="richmedia-card-container">
|
|
748
747
|
<CapColumn span={18} className="overflow-wrap-fields title" >
|
|
749
|
-
<
|
|
748
|
+
<CapLabel type="label9">{formData['title-value'] || "Title"}</CapLabel>
|
|
750
749
|
</CapColumn>
|
|
751
750
|
<CapColumn span={6} className="image">
|
|
752
751
|
<img alt="" width="40px" height="40px" src={imageUrl} />
|