@capillarytech/creatives-library 7.17.47 → 7.17.49
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/containers/App/constants.js +2 -1
- package/package.json +1 -1
- package/v2Components/CapTagList/index.js +1 -1
- package/v2Components/CapTagList/style.scss +5 -0
- package/v2Components/FormBuilder/index.js +2 -2
- package/v2Containers/Email/index.js +1 -1
- package/v2Containers/Line/Container/Wrapper/tests/__snapshots__/index.test.js.snap +88 -18114
- package/v2Containers/Templates/actions.js +2 -2
- package/v2Containers/Templates/index.js +8 -5
- package/v2Containers/Templates/sagas.js +9 -7
- package/v2Containers/Templates/tests/__snapshots__/index.test.js.snap +20 -20
- package/v2Containers/Templates/tests/actions.test.js +2 -1
- package/v2Containers/Templates/tests/mockData.js +4 -0
- package/v2Containers/Templates/tests/sagas.test.js +25 -3
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ import moment from 'moment';
|
|
|
11
11
|
import { FONT_COLOR_05 } from '@capillarytech/cap-ui-library/styled/variables';
|
|
12
12
|
// import styled from 'styled-components';
|
|
13
13
|
import { CapSpin, CapModal, CapButton, CapPopover, CapInput, CapTree, CapSelect, CapTooltip, CapLink, CapIcon } from '@capillarytech/cap-ui-library';
|
|
14
|
-
|
|
14
|
+
import './style.scss';
|
|
15
15
|
import _ from 'lodash';
|
|
16
16
|
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
|
17
17
|
import { createStructuredSelector } from 'reselect';
|
|
@@ -54,7 +54,7 @@ import { convert } from 'html-to-text';
|
|
|
54
54
|
import { AI_SUGGESTION_API_URL } from './constants';
|
|
55
55
|
import { GET_TRANSLATION_MAPPED } from '../../containers/TagList/constants';
|
|
56
56
|
import moment from 'moment';
|
|
57
|
-
import { CUSTOMER_BARCODE_TAG } from '../../containers/App/constants';
|
|
57
|
+
import { CUSTOMER_BARCODE_TAG , COPY_OF} from '../../containers/App/constants';
|
|
58
58
|
const TabPane = Tabs.TabPane;
|
|
59
59
|
const {Column} = Table;
|
|
60
60
|
const {TextArea} = CapInput;
|
|
@@ -1669,7 +1669,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
1669
1669
|
} else {
|
|
1670
1670
|
const tempTab = ifError ? currentTab : this.state.currentTab;
|
|
1671
1671
|
const version = `Version ${this.state.currentTab}`;
|
|
1672
|
-
formData[tabCount].name = `${
|
|
1672
|
+
formData[tabCount].name = `${COPY_OF} ${formData[tempTab - 1].name ? formData[tempTab - 1].name : version}`;
|
|
1673
1673
|
formData[tabCount].base = false;
|
|
1674
1674
|
const initialTab = this.state.currentTab;
|
|
1675
1675
|
this.setState({formData, tabCount: tabCount + 1, currentTab: tabCount + 1, tabKey: formData[tabCount].tabKey}, () => {
|
|
@@ -2554,7 +2554,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
2554
2554
|
<CapInput
|
|
2555
2555
|
className="search-text"
|
|
2556
2556
|
style={{width: '210px'}}
|
|
2557
|
-
placeholder=
|
|
2557
|
+
placeholder={`${this.props.intl.formatMessage(messages.searchText)}`}
|
|
2558
2558
|
prefix={<i className="material-icons" style={{color: '#707070', fontSize: '16px'}}>search</i>}
|
|
2559
2559
|
value={this.state.searchText}
|
|
2560
2560
|
onChange={(e) => this.searchAsset(e.target.value)}
|