@capillarytech/creatives-library 2.0.11 → 2.0.13
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.
|
@@ -8,13 +8,16 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
// import styled from 'styled-components';
|
|
11
|
-
import {
|
|
11
|
+
import { CapSpin, CapModal, CapButton, CapPopover, CapInput, CapTree } from '@capillarytech/cap-ui-library';
|
|
12
|
+
import { CapSelect } from '@capillarytech/cap-react-ui-library';
|
|
13
|
+
|
|
12
14
|
import _ from 'lodash';
|
|
13
15
|
// import { CapInput } from '@capillarytech/cap-react-ui-library/basic/input';
|
|
14
16
|
import { injectIntl, intlShape } from 'react-intl';
|
|
15
17
|
import messages from './messages';
|
|
16
18
|
|
|
17
19
|
const {Search} = CapInput;
|
|
20
|
+
const {CapTreeNode} = CapTree;
|
|
18
21
|
class CapTagList extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
19
22
|
|
|
20
23
|
constructor(props) {
|
|
@@ -201,7 +204,7 @@ class CapTagList extends React.Component { // eslint-disable-line react/prefer-s
|
|
|
201
204
|
</div>}
|
|
202
205
|
trigger="click"
|
|
203
206
|
placement="bottomRight">
|
|
204
|
-
<CapButton
|
|
207
|
+
<CapButton isAddBtn type="flat">{this.props.label !== '' ? this.props.label : ''}</CapButton>
|
|
205
208
|
</CapPopover>
|
|
206
209
|
<CapModal
|
|
207
210
|
visible={this.state.showModal}
|
|
@@ -29,6 +29,7 @@ function SlideBoxContent(props) {
|
|
|
29
29
|
toggleShowSlideBox,
|
|
30
30
|
showSlideBox,
|
|
31
31
|
} = props;
|
|
32
|
+
const type = messageDetails.type.toLowerCase(); // type is context in get tags values : outbound | dvs | referral | loyalty | coupons
|
|
32
33
|
const query = { type: 'embedded', module: 'library' };
|
|
33
34
|
const creativesLocationProps = {
|
|
34
35
|
pathname: `/sms/edit`,
|
|
@@ -87,7 +88,7 @@ function SlideBoxContent(props) {
|
|
|
87
88
|
route={{ name: 'sms' }}
|
|
88
89
|
isGetFormData={isGetFormData}
|
|
89
90
|
getFormSubscriptionData={getFormData}
|
|
90
|
-
getDefaultTags={
|
|
91
|
+
getDefaultTags={type}
|
|
91
92
|
subscriptionTemplateDetails={templateData}
|
|
92
93
|
/>
|
|
93
94
|
)}
|
|
@@ -98,7 +99,7 @@ function SlideBoxContent(props) {
|
|
|
98
99
|
isComponent
|
|
99
100
|
isGetFormData={isGetFormData}
|
|
100
101
|
getFormSubscriptionData={getFormData}
|
|
101
|
-
getDefaultTags={
|
|
102
|
+
getDefaultTags={type}
|
|
102
103
|
/>
|
|
103
104
|
)}
|
|
104
105
|
{isEditEmailWithId && (
|
|
@@ -113,7 +114,7 @@ function SlideBoxContent(props) {
|
|
|
113
114
|
params={{ id: templateData._id }}
|
|
114
115
|
templateData={templateData}
|
|
115
116
|
getFormSubscriptionData={getFormData}
|
|
116
|
-
getDefaultTags={
|
|
117
|
+
getDefaultTags={type}
|
|
117
118
|
/>
|
|
118
119
|
)}
|
|
119
120
|
{isEmailEditWithContent && (
|
|
@@ -128,7 +129,7 @@ function SlideBoxContent(props) {
|
|
|
128
129
|
params={{ id: templateData._id }}
|
|
129
130
|
templateData={templateData}
|
|
130
131
|
getFormSubscriptionData={getFormData}
|
|
131
|
-
getDefaultTags={
|
|
132
|
+
getDefaultTags={type}
|
|
132
133
|
/>
|
|
133
134
|
)}
|
|
134
135
|
</CreativesWrapper>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capillarytech/creatives-library",
|
|
3
3
|
"author": "meharaj",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.13",
|
|
5
5
|
"description": "Capillary creatives ui",
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"module": "./index.es.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"license": "LicenseRef-LICENSE",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@capillarytech/cap-react-ui-library": "latest",
|
|
16
|
-
"@capillarytech/cap-ui-library": "^1.0.
|
|
16
|
+
"@capillarytech/cap-ui-library": "^1.0.47",
|
|
17
17
|
"antd": "^3.13.1",
|
|
18
18
|
"axios": "^0.16.2",
|
|
19
19
|
"babel-polyfill": "6.20.0",
|