@capillarytech/creatives-library 2.0.80 → 2.0.81
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/components/FormBuilder/index.js +2 -1
- package/components/FormBuilder/test +1845 -0
- package/containers/CallTask/_callTask.scss +5 -0
- package/containers/CallTask/actions.js +15 -0
- package/containers/CallTask/constants.js +7 -0
- package/containers/CallTask/index.js +141 -0
- package/containers/CallTask/messages.js +21 -0
- package/containers/CallTask/reducer.js +23 -0
- package/containers/CallTask/sagas.js +11 -0
- package/containers/CallTask/selectors.js +25 -0
- package/containers/CallTask/tests/actions.test.js +18 -0
- package/containers/CallTask/tests/index.test.js +10 -0
- package/containers/CallTask/tests/reducer.test.js +9 -0
- package/containers/CallTask/tests/sagas.test.js +15 -0
- package/containers/CallTask/tests/selectors.test.js +10 -0
- package/containers/ChannelTemplates/actions.js +20 -0
- package/containers/ChannelTemplates/constants.js +8 -0
- package/containers/ChannelTemplates/index.js +48 -0
- package/containers/ChannelTemplates/messages.js +13 -0
- package/containers/ChannelTemplates/reducer.js +34 -0
- package/containers/ChannelTemplates/sagas.js +32 -0
- package/containers/ChannelTemplates/selectors.js +25 -0
- package/containers/ChannelTemplates/tests/actions.test.js +18 -0
- package/containers/ChannelTemplates/tests/index.test.js +10 -0
- package/containers/ChannelTemplates/tests/reducer.test.js +9 -0
- package/containers/ChannelTemplates/tests/sagas.test.js +15 -0
- package/containers/ChannelTemplates/tests/selectors.test.js +10 -0
- package/containers/CreativesContainer/SlideBoxContent.js +248 -0
- package/containers/CreativesContainer/SlideBoxFooter.js +38 -0
- package/containers/CreativesContainer/SlideBoxHeader.js +65 -0
- package/containers/CreativesContainer/actions.js +27 -0
- package/containers/CreativesContainer/constants.js +13 -0
- package/containers/CreativesContainer/index.js +418 -0
- package/containers/CreativesContainer/index.scss +27 -0
- package/containers/CreativesContainer/messages.js +17 -0
- package/containers/CreativesContainer/reducer.js +29 -0
- package/containers/CreativesContainer/sagas.js +11 -0
- package/containers/CreativesContainer/selectors.js +30 -0
- package/containers/CreativesContainer/tests/actions.test.js +18 -0
- package/containers/CreativesContainer/tests/index.test.js +10 -0
- package/containers/CreativesContainer/tests/reducer.test.js +9 -0
- package/containers/CreativesContainer/tests/sagas.test.js +15 -0
- package/containers/CreativesContainer/tests/selectors.test.js +10 -0
- package/containers/EmailWrapper/actions.js +15 -0
- package/containers/EmailWrapper/constants.js +7 -0
- package/containers/EmailWrapper/index.js +238 -0
- package/containers/EmailWrapper/messages.js +57 -0
- package/containers/EmailWrapper/reducer.js +23 -0
- package/containers/EmailWrapper/sagas.js +11 -0
- package/containers/EmailWrapper/selectors.js +25 -0
- package/containers/EmailWrapper/tests/actions.test.js +18 -0
- package/containers/EmailWrapper/tests/index.test.js +10 -0
- package/containers/EmailWrapper/tests/reducer.test.js +9 -0
- package/containers/EmailWrapper/tests/sagas.test.js +15 -0
- package/containers/EmailWrapper/tests/selectors.test.js +10 -0
- package/containers/MobilePush/commonMethods.js +249 -0
- package/containers/MobilePush/eventsMap.js +127 -0
- package/containers/MobilePush/initialSchema.js +1739 -0
- package/containers/MobilepushWrapper/_mobilepushWrapper.scss +18 -0
- package/containers/MobilepushWrapper/index.js +97 -0
- package/containers/MobilepushWrapper/messages.js +25 -0
- package/containers/MobilepushWrapper/tests/index.test.js +10 -0
- package/containers/TemplatesV2/_templatesV2.scss +5 -0
- package/containers/TemplatesV2/actions.js +16 -0
- package/containers/TemplatesV2/constants.js +10 -0
- package/containers/TemplatesV2/index.js +207 -0
- package/containers/TemplatesV2/messages.js +29 -0
- package/containers/TemplatesV2/selectors.js +25 -0
- package/containers/TemplatesV2/tests/actions.test.js +18 -0
- package/containers/TemplatesV2/tests/index.test.js +10 -0
- package/containers/TemplatesV2/tests/reducer.test.js +9 -0
- package/containers/TemplatesV2/tests/sagas.test.js +15 -0
- package/containers/TemplatesV2/tests/selectors.test.js +10 -0
- package/containers/WeChat/RichmediaTemplates/Create/testschema.js +379 -0
- package/containers/WeChat/actions.js +6 -0
- package/containers/WeChat/index.js +31 -13
- package/package.json +1 -1
- package/v2Containers/MobilePush/Create/index.js +43 -9
- package/v2Containers/MobilePush/Create/messages.js +16 -0
- package/v2Containers/MobilePush/Edit/index.js +54 -22
- package/v2Containers/MobilePush/Edit/messages.js +17 -1
- package/v2Containers/MobilePush/commonMethods.js +9 -7
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import TemplatesV2 from '../TemplatesV2';
|
|
5
|
+
import TemplatePreview from '../../components/TemplatePreview';
|
|
6
|
+
import SmsCreate from '../Sms/Create';
|
|
7
|
+
import SmsEdit from '../Sms/Edit';
|
|
8
|
+
import Email from '../Email';
|
|
9
|
+
import EmailWrapper from '../EmailWrapper';
|
|
10
|
+
import MobilepusWrapper from '../MobilepushWrapper';
|
|
11
|
+
import EmailPreviewV2 from '../../components/EmailPreviewV2';
|
|
12
|
+
import MobilePushPreview from '../../components/MobilePushPreviewV2';
|
|
13
|
+
import CallTask from '../CallTask';
|
|
14
|
+
import MobliPushEdit from '../MobilePush/Edit';
|
|
15
|
+
import * as constants from './constants';
|
|
16
|
+
const CreativesWrapper = styled.div`
|
|
17
|
+
.ant-popover,
|
|
18
|
+
.ant-notification,
|
|
19
|
+
.ant-modal-wrap {
|
|
20
|
+
z-index: 10003;
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
23
|
+
function SlideBoxContent(props) {
|
|
24
|
+
const {
|
|
25
|
+
slidBoxContent,
|
|
26
|
+
onSelectTemplate,
|
|
27
|
+
onPreviewTemplate,
|
|
28
|
+
templateData,
|
|
29
|
+
location,
|
|
30
|
+
isGetFormData,
|
|
31
|
+
getFormData,
|
|
32
|
+
messageDetails,
|
|
33
|
+
onCreateNew,
|
|
34
|
+
currentChannel,
|
|
35
|
+
onChannelChange,
|
|
36
|
+
onEmailModeChange,
|
|
37
|
+
emailCreateMode,
|
|
38
|
+
onMobilepushModeChange,
|
|
39
|
+
mobilePushCreateMode,
|
|
40
|
+
templateStep,
|
|
41
|
+
onCreateNextStep,
|
|
42
|
+
cap,
|
|
43
|
+
onResetStep,
|
|
44
|
+
isFullMode,
|
|
45
|
+
onCallTaskSubmit,
|
|
46
|
+
setIsLoadingContent,
|
|
47
|
+
} = props;
|
|
48
|
+
const type = messageDetails.type.toLowerCase(); // type is context in get tags values : outbound | dvs | referral | loyalty | coupons
|
|
49
|
+
const query = { type: !isFullMode && 'embedded', module: isFullMode ? 'defualt' : 'library'};
|
|
50
|
+
const creativesLocationProps = {
|
|
51
|
+
pathname: `/sms/edit`,
|
|
52
|
+
query,
|
|
53
|
+
search: '',
|
|
54
|
+
};
|
|
55
|
+
let channel = currentChannel;//for create mode
|
|
56
|
+
const isCreateSms = slidBoxContent === 'createTemplate' && channel === constants.SMS;
|
|
57
|
+
const isCreateMPush = slidBoxContent === 'createTemplate' && channel === constants.MOBILE_PUSH;
|
|
58
|
+
const isCreateCallTask = slidBoxContent === 'createTemplate' && channel === constants.CALL_TASK;
|
|
59
|
+
let isEditSms = false;
|
|
60
|
+
let isEditEmailWithId = false;
|
|
61
|
+
let isEmailEditWithContent = false;
|
|
62
|
+
let isPreview = false;
|
|
63
|
+
let isEmailPreview = false;
|
|
64
|
+
let isMpushPreview = false;
|
|
65
|
+
let isEditCallTask = false;
|
|
66
|
+
let isEditMPush = false;
|
|
67
|
+
const isEmailCreate = slidBoxContent === 'createTemplate' && channel === constants.EMAIL;
|
|
68
|
+
if (templateData && channel) {
|
|
69
|
+
channel = templateData.type;// for edit mode with template data
|
|
70
|
+
isEditSms = slidBoxContent === 'editTemplate' && channel === constants.SMS;
|
|
71
|
+
isEditCallTask = slidBoxContent === 'editTemplate' && channel === constants.CALL_TASK;
|
|
72
|
+
isEditMPush = slidBoxContent === 'editTemplate' && channel === constants.MOBILE_PUSH;
|
|
73
|
+
isEditEmailWithId = slidBoxContent === 'editTemplate' && channel === constants.EMAIL && templateData._id;
|
|
74
|
+
isEmailEditWithContent = slidBoxContent === 'editTemplate' && channel === constants.EMAIL && !templateData._id;
|
|
75
|
+
isPreview = slidBoxContent === 'preview' && channel === constants.SMS;
|
|
76
|
+
isEmailPreview = slidBoxContent === 'preview' && channel === constants.EMAIL;
|
|
77
|
+
isMpushPreview = slidBoxContent === 'preview' && channel === constants.MOBILE_PUSH;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return (
|
|
81
|
+
<CreativesWrapper>
|
|
82
|
+
{!isFullMode && slidBoxContent === 'templates' && (
|
|
83
|
+
<TemplatesV2
|
|
84
|
+
isFullMode={isFullMode}
|
|
85
|
+
onSelectTemplate={onSelectTemplate}
|
|
86
|
+
handlePeviewTemplate={onPreviewTemplate}
|
|
87
|
+
location={location}
|
|
88
|
+
createNew={onCreateNew}
|
|
89
|
+
channel={channel.toLowerCase()}
|
|
90
|
+
onChannelChange={onChannelChange}
|
|
91
|
+
onCallTaskSubmit={onCallTaskSubmit}
|
|
92
|
+
cap={cap}
|
|
93
|
+
/>
|
|
94
|
+
)}
|
|
95
|
+
{isPreview && (
|
|
96
|
+
<TemplatePreview
|
|
97
|
+
content={templateData.versions.base['sms-editor']}
|
|
98
|
+
channel={templateData.type.toLowerCase()}
|
|
99
|
+
charCounterEnabled
|
|
100
|
+
templateData={templateData}
|
|
101
|
+
/>
|
|
102
|
+
)}
|
|
103
|
+
{isEmailPreview && (
|
|
104
|
+
<EmailPreviewV2
|
|
105
|
+
templateData={templateData}
|
|
106
|
+
/>
|
|
107
|
+
)
|
|
108
|
+
}
|
|
109
|
+
{isMpushPreview &&
|
|
110
|
+
<MobilePushPreview templateData={templateData} channel={channel}/>
|
|
111
|
+
}
|
|
112
|
+
{isEditSms && (
|
|
113
|
+
<SmsEdit
|
|
114
|
+
setIsLoadingContent={setIsLoadingContent}
|
|
115
|
+
location={creativesLocationProps}
|
|
116
|
+
isFullMode={isFullMode}
|
|
117
|
+
route={{ name: 'sms' }}
|
|
118
|
+
params={{id: templateData._id}}
|
|
119
|
+
isGetFormData={isGetFormData}
|
|
120
|
+
getFormSubscriptionData={getFormData}
|
|
121
|
+
getDefaultTags={type}
|
|
122
|
+
subscriptionTemplateDetails={templateData} // used only in library mode
|
|
123
|
+
/>
|
|
124
|
+
)}
|
|
125
|
+
{
|
|
126
|
+
isEditCallTask &&
|
|
127
|
+
<CallTask
|
|
128
|
+
mode={'edit'}
|
|
129
|
+
templateData={templateData}
|
|
130
|
+
onCallTaskSubmit={onCallTaskSubmit}
|
|
131
|
+
/>
|
|
132
|
+
}
|
|
133
|
+
{
|
|
134
|
+
isCreateCallTask &&
|
|
135
|
+
<CallTask
|
|
136
|
+
mode={'create'}
|
|
137
|
+
onCallTaskSubmit={onCallTaskSubmit}
|
|
138
|
+
/>
|
|
139
|
+
}
|
|
140
|
+
{isCreateSms && (
|
|
141
|
+
<SmsCreate
|
|
142
|
+
setIsLoadingContent={setIsLoadingContent}
|
|
143
|
+
location={creativesLocationProps}
|
|
144
|
+
route={{ name: 'sms' }}
|
|
145
|
+
isComponent
|
|
146
|
+
isGetFormData={isGetFormData}
|
|
147
|
+
getFormSubscriptionData={getFormData}
|
|
148
|
+
getDefaultTags={type}
|
|
149
|
+
isFullMode={isFullMode}
|
|
150
|
+
/>
|
|
151
|
+
)}
|
|
152
|
+
{isEmailCreate && (
|
|
153
|
+
<EmailWrapper
|
|
154
|
+
key="creatives-email-wrapper"
|
|
155
|
+
date={new Date().getMilliseconds()}
|
|
156
|
+
setIsLoadingContent={setIsLoadingContent}
|
|
157
|
+
onEmailModeChange={onEmailModeChange}
|
|
158
|
+
emailCreateMode={emailCreateMode}
|
|
159
|
+
isGetFormData={isGetFormData}
|
|
160
|
+
getFormdata={getFormData}
|
|
161
|
+
templateData={templateData}
|
|
162
|
+
type={type}
|
|
163
|
+
step={templateStep}
|
|
164
|
+
showNextStep={onCreateNextStep}
|
|
165
|
+
isFullMode={isFullMode}
|
|
166
|
+
cap={cap}
|
|
167
|
+
onResetStep={onResetStep}
|
|
168
|
+
/>
|
|
169
|
+
)}
|
|
170
|
+
{(isEditEmailWithId || isEmailEditWithContent) && (
|
|
171
|
+
<Email
|
|
172
|
+
setIsLoadingContent={setIsLoadingContent}
|
|
173
|
+
location={{
|
|
174
|
+
pathname: `/email`,
|
|
175
|
+
query,
|
|
176
|
+
}}
|
|
177
|
+
route={{ name: 'email' }}
|
|
178
|
+
isGetFormData={isGetFormData}
|
|
179
|
+
getFormdata={getFormData}
|
|
180
|
+
params={{ id: templateData._id }}
|
|
181
|
+
templateData={templateData}
|
|
182
|
+
getFormSubscriptionData={getFormData}
|
|
183
|
+
getDefaultTags={type}
|
|
184
|
+
isFullMode={isFullMode}
|
|
185
|
+
cap={cap}
|
|
186
|
+
/>
|
|
187
|
+
)}
|
|
188
|
+
{isEditMPush &&
|
|
189
|
+
<MobliPushEdit
|
|
190
|
+
getFormLibraryData={getFormData}
|
|
191
|
+
setIsLoadingContent={setIsLoadingContent}
|
|
192
|
+
location={{
|
|
193
|
+
pathname: `/mobilepush/edit/`,
|
|
194
|
+
query,
|
|
195
|
+
}}
|
|
196
|
+
params={{id: templateData._id}}
|
|
197
|
+
isFullMode={isFullMode}
|
|
198
|
+
isGetFormData={isGetFormData}
|
|
199
|
+
route={{ name: 'mobilepush' }}
|
|
200
|
+
templateData={templateData}
|
|
201
|
+
/>
|
|
202
|
+
}
|
|
203
|
+
{isCreateMPush &&
|
|
204
|
+
<MobilepusWrapper
|
|
205
|
+
key="creatives-mobilepush-wrapper"
|
|
206
|
+
date={new Date().getMilliseconds()}
|
|
207
|
+
setIsLoadingContent={setIsLoadingContent}
|
|
208
|
+
onMobilepushModeChange={onMobilepushModeChange}
|
|
209
|
+
mobilePushCreateMode={mobilePushCreateMode}
|
|
210
|
+
isGetFormData={isGetFormData}
|
|
211
|
+
getFormData={getFormData}
|
|
212
|
+
templateData={templateData}
|
|
213
|
+
type={type}
|
|
214
|
+
step={templateStep}
|
|
215
|
+
showNextStep={onCreateNextStep}
|
|
216
|
+
isFullMode={isFullMode}
|
|
217
|
+
cap={cap}
|
|
218
|
+
onResetStep={onResetStep}
|
|
219
|
+
query={query}/>
|
|
220
|
+
}
|
|
221
|
+
</CreativesWrapper>
|
|
222
|
+
);
|
|
223
|
+
}
|
|
224
|
+
SlideBoxContent.propTypes = {
|
|
225
|
+
slidBoxContent: PropTypes.node,
|
|
226
|
+
onSelectTemplate: PropTypes.func,
|
|
227
|
+
onPreviewTemplate: PropTypes.func,
|
|
228
|
+
templateData: PropTypes.object,
|
|
229
|
+
location: PropTypes.object,
|
|
230
|
+
isGetFormData: PropTypes.bool,
|
|
231
|
+
getFormData: PropTypes.func,
|
|
232
|
+
messageDetails: PropTypes.object,
|
|
233
|
+
onCreateNew: PropTypes.func,
|
|
234
|
+
onChannelChange: PropTypes.func,
|
|
235
|
+
currentChannel: PropTypes.string,
|
|
236
|
+
onEmailModeChange: PropTypes.func,
|
|
237
|
+
emailCreateMode: PropTypes.string,
|
|
238
|
+
templateStep: PropTypes.string,
|
|
239
|
+
onCreateNextStep: PropTypes.func,
|
|
240
|
+
cap: PropTypes.object,
|
|
241
|
+
onResetStep: PropTypes.func,
|
|
242
|
+
onCallTaskSubmit: PropTypes.func,
|
|
243
|
+
isFullMode: PropTypes.bool,
|
|
244
|
+
setIsLoadingContent: PropTypes.func,
|
|
245
|
+
onMobilepushModeChange: PropTypes.func,
|
|
246
|
+
mobilePushCreateMode: PropTypes.string,
|
|
247
|
+
};
|
|
248
|
+
export default SlideBoxContent;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormattedMessage } from 'react-intl';
|
|
3
|
+
import { CapButton } from '@capillarytech/cap-ui-library';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
function SlideBoxFooter(props) {
|
|
6
|
+
const { slidBoxContent, onSave, messages, onEditTemplate, onCreateNextStep} = props;
|
|
7
|
+
return (
|
|
8
|
+
<div>
|
|
9
|
+
<div>
|
|
10
|
+
{props.shouldShowDoneFooter() && (
|
|
11
|
+
<CapButton onClick={onSave}>
|
|
12
|
+
<FormattedMessage {...messages.creativesTemplatesSave} />
|
|
13
|
+
</CapButton>
|
|
14
|
+
)}
|
|
15
|
+
{props.shouldShowContinueFooter() &&
|
|
16
|
+
<CapButton onClick={onCreateNextStep}>
|
|
17
|
+
<FormattedMessage {...messages.continue} />
|
|
18
|
+
</CapButton>
|
|
19
|
+
}
|
|
20
|
+
{slidBoxContent === 'preview' && (
|
|
21
|
+
<CapButton onClick={onEditTemplate} type="secondary">
|
|
22
|
+
<FormattedMessage {...messages.creativesTemplatesEdit} />
|
|
23
|
+
</CapButton>
|
|
24
|
+
)}
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
SlideBoxFooter.propTypes = {
|
|
30
|
+
slidBoxContent: PropTypes.node,
|
|
31
|
+
onSave: PropTypes.func,
|
|
32
|
+
messages: PropTypes.object,
|
|
33
|
+
onEditTemplate: PropTypes.func,
|
|
34
|
+
onCreateNextStep: PropTypes.func,
|
|
35
|
+
shouldShowContinueFooter: PropTypes.func,
|
|
36
|
+
shouldShowDoneFooter: PropTypes.func,
|
|
37
|
+
};
|
|
38
|
+
export default SlideBoxFooter;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { FormattedMessage } from 'react-intl';
|
|
4
|
+
import { CapHeader, CapIcons } from '@capillarytech/cap-ui-library';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
|
|
7
|
+
const PrefixWrapper = styled.div`
|
|
8
|
+
margin-right: 16px;
|
|
9
|
+
`;
|
|
10
|
+
function SlideBoxHeader(props) {
|
|
11
|
+
const { slidBoxContent, messages, templateData, onShowTemplates, creativesMode, isFullMode, showPrefix } = props;
|
|
12
|
+
return (
|
|
13
|
+
<div>
|
|
14
|
+
{slidBoxContent === 'templates' && (
|
|
15
|
+
<CapHeader
|
|
16
|
+
title={<FormattedMessage {...messages.creativeTemplates} />}
|
|
17
|
+
description={
|
|
18
|
+
<FormattedMessage {...messages.creativeTemplatesDesc} />
|
|
19
|
+
}
|
|
20
|
+
inline
|
|
21
|
+
/>
|
|
22
|
+
)}
|
|
23
|
+
{slidBoxContent === 'preview' && (
|
|
24
|
+
<CapHeader
|
|
25
|
+
title={templateData.name}
|
|
26
|
+
prefix={
|
|
27
|
+
<PrefixWrapper>
|
|
28
|
+
<CapIcons.backIcon onClick={onShowTemplates} />
|
|
29
|
+
</PrefixWrapper>
|
|
30
|
+
}
|
|
31
|
+
/>
|
|
32
|
+
)}
|
|
33
|
+
{slidBoxContent === 'editTemplate' && (
|
|
34
|
+
<CapHeader
|
|
35
|
+
title={<FormattedMessage {...messages.editMessageContent} />}
|
|
36
|
+
prefix={creativesMode !== 'edit' && !isFullMode && showPrefix &&
|
|
37
|
+
<PrefixWrapper>
|
|
38
|
+
<CapIcons.backIcon onClick={onShowTemplates} />
|
|
39
|
+
</PrefixWrapper>
|
|
40
|
+
}
|
|
41
|
+
/>
|
|
42
|
+
)}
|
|
43
|
+
{slidBoxContent === 'createTemplate' && (
|
|
44
|
+
<CapHeader
|
|
45
|
+
title={<FormattedMessage {...messages.createMessageContent} />}
|
|
46
|
+
prefix={!isFullMode && showPrefix &&
|
|
47
|
+
<PrefixWrapper>
|
|
48
|
+
<CapIcons.backIcon onClick={onShowTemplates} />
|
|
49
|
+
</PrefixWrapper>
|
|
50
|
+
}
|
|
51
|
+
/>
|
|
52
|
+
)}
|
|
53
|
+
</div>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
SlideBoxHeader.propTypes = {
|
|
57
|
+
slidBoxContent: PropTypes.node,
|
|
58
|
+
messages: PropTypes.object,
|
|
59
|
+
templateData: PropTypes.object,
|
|
60
|
+
onShowTemplates: PropTypes.func,
|
|
61
|
+
creativesMode: PropTypes.string,
|
|
62
|
+
isFullMode: PropTypes.bool,
|
|
63
|
+
showPrefix: PropTypes.bool,
|
|
64
|
+
};
|
|
65
|
+
export default SlideBoxHeader;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* CreativesContainer actions
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
DEFAULT_ACTION,
|
|
9
|
+
HIDE_CONTAINER_LOADER,
|
|
10
|
+
SHOW_CONTANER_LOADER,
|
|
11
|
+
} from './constants';
|
|
12
|
+
|
|
13
|
+
export function defaultAction() {
|
|
14
|
+
return {
|
|
15
|
+
type: DEFAULT_ACTION,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export function showCreativesContainerLoader() {
|
|
19
|
+
return {
|
|
20
|
+
type: SHOW_CONTANER_LOADER,
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export function hideCreativesContanerLoader() {
|
|
24
|
+
return {
|
|
25
|
+
type: HIDE_CONTAINER_LOADER,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* CreativesContainer constants
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export const DEFAULT_ACTION = 'app/CreativesContainer/DEFAULT_ACTION';
|
|
8
|
+
export const EMAIL = "EMAIL";
|
|
9
|
+
export const SMS = "SMS";
|
|
10
|
+
export const CALL_TASK = "CALL_TASK";
|
|
11
|
+
export const MOBILE_PUSH = "MOBILEPUSH";
|
|
12
|
+
export const SHOW_CONTANER_LOADER = "app/CreativesContainer/SHOW_CONTANER_LOADER";
|
|
13
|
+
export const HIDE_CONTAINER_LOADER = "app/CreativesContainer/HIDE_CONTAINER_LOADER";
|