@capillarytech/creatives-library 6.13.4 → 6.13.6
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/app.js +5 -2
- package/components/FormBuilder/index.js +6 -2
- package/containers/Ebill/index.js +3 -0
- package/containers/Email/index.js +16 -8
- package/containers/Sms/Create/index.js +2 -1
- package/index.js +1 -8
- package/package.json +2 -2
- package/reducers.js +0 -2
- package/routes.js +1 -7
- package/services/api.js +0 -6
- package/utils/ignoredErrorMessages.js +4 -0
- package/v2Components/FormBuilder/index.js +5 -3
- package/v2Components/TemplatePreview/_templatePreview.scss +2 -8
- package/v2Components/TemplatePreview/index.js +17 -100
- package/v2Containers/Cap/index.js +30 -9
- package/v2Containers/CreativesContainer/SlideBoxContent.js +2 -65
- package/v2Containers/CreativesContainer/constants.js +0 -2
- package/v2Containers/CreativesContainer/index.js +2 -29
- package/v2Containers/Line/Create/_lineCreate.scss +64 -0
- package/v2Containers/Line/Create/actions.js +94 -0
- package/v2Containers/Line/Create/constants.js +43 -0
- package/v2Containers/Line/Create/index.js +1112 -0
- package/v2Containers/Line/Create/initialSchema.js +378 -0
- package/v2Containers/Line/Create/messages.js +229 -0
- package/v2Containers/Line/Create/reducer.js +99 -0
- package/v2Containers/Line/Create/sagas.js +113 -0
- package/v2Containers/Line/Create/selectors.js +30 -0
- package/v2Containers/Line/CreateWrapper/constants.js +2 -0
- package/v2Containers/Line/CreateWrapper/index.js +117 -0
- package/v2Containers/Line/CreateWrapper/messages.js +55 -0
- package/v2Containers/Line/Edit/_lineEdit.scss +23 -0
- package/v2Containers/Line/Edit/actions.js +79 -0
- package/v2Containers/Line/Edit/constants.js +27 -0
- package/v2Containers/Line/Edit/index.js +1051 -0
- package/v2Containers/Line/Edit/messages.js +173 -0
- package/v2Containers/Line/Edit/reducer.js +83 -0
- package/v2Containers/Line/Edit/sagas.js +81 -0
- package/v2Containers/Line/Edit/selectors.js +29 -0
- package/v2Containers/Line/Edit/tests/actions.test.js +18 -0
- package/v2Containers/Line/Edit/tests/index.test.js +10 -0
- package/v2Containers/Line/Edit/tests/reducer.test.js +9 -0
- package/v2Containers/Line/Edit/tests/sagas.test.js +15 -0
- package/v2Containers/Line/Edit/tests/selectors.test.js +10 -0
- package/v2Containers/Templates/_templates.scss +0 -57
- package/v2Containers/Templates/index.js +5 -54
- package/v2Containers/TemplatesV2/index.js +1 -12
- package/v2Containers/TemplatesV2/messages.js +0 -4
- package/v2Containers/WeChat/MapTemplates/index.js +1 -1
- package/assets/viber.png +0 -0
- package/v2Containers/Viber/_viber.scss +0 -3
- package/v2Containers/Viber/actions.js +0 -74
- package/v2Containers/Viber/constants.js +0 -30
- package/v2Containers/Viber/index.js +0 -700
- package/v2Containers/Viber/messages.js +0 -137
- package/v2Containers/Viber/reducer.js +0 -84
- package/v2Containers/Viber/sagas.js +0 -107
- package/v2Containers/Viber/selectors.js +0 -21
|
@@ -22,7 +22,6 @@ import * as actions from './actions';
|
|
|
22
22
|
import Templates from '../Templates';
|
|
23
23
|
import CallTask from '../CallTask';
|
|
24
24
|
import Facebook from '../Facebook';
|
|
25
|
-
import Viber from '../Viber';
|
|
26
25
|
import Line from '../Line/Container';
|
|
27
26
|
import Gallery from '../Assets/Gallery';
|
|
28
27
|
import withStyles from '../../hoc/withStyles';
|
|
@@ -53,8 +52,6 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
|
|
|
53
52
|
//'wechat': {content: this.getTemplatesComponent('wechat'), tab: 'Wechat', key: 'wechat'},
|
|
54
53
|
mPush: {content: <></>, tab: intl.formatMessage(messages.pushNotification), key: 'mobilepush'},
|
|
55
54
|
line: {content: <></>, tab: intl.formatMessage(messages.line), key: 'line'},
|
|
56
|
-
viber: {content: <></>, tab: intl.formatMessage(messages.viber), key: 'viber'},
|
|
57
|
-
|
|
58
55
|
|
|
59
56
|
};
|
|
60
57
|
let filteredPanes = Object.keys(defaultPanes)
|
|
@@ -155,12 +152,7 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
|
|
|
155
152
|
/>
|
|
156
153
|
);
|
|
157
154
|
}
|
|
158
|
-
|
|
159
|
-
<Viber
|
|
160
|
-
{...this.props}
|
|
161
|
-
isCreateFlow
|
|
162
|
-
></Viber>
|
|
163
|
-
)
|
|
155
|
+
|
|
164
156
|
getLineComponent = () => (
|
|
165
157
|
<Line
|
|
166
158
|
{...this.props}
|
|
@@ -176,9 +168,6 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
|
|
|
176
168
|
if (channel === 'line') {
|
|
177
169
|
return this.getLineComponent();
|
|
178
170
|
}
|
|
179
|
-
if (channel === 'viber') {
|
|
180
|
-
return this.getViberComponent();
|
|
181
|
-
}
|
|
182
171
|
}
|
|
183
172
|
const location = {pathname: `/${channel}`, search: '', query};
|
|
184
173
|
switch (channel) {
|
|
@@ -46,10 +46,6 @@ export default defineMessages({
|
|
|
46
46
|
id: 'creatives.containersV2.TemplatesV2.facebook',
|
|
47
47
|
defaultMessage: 'Facebook',
|
|
48
48
|
},
|
|
49
|
-
viber: {
|
|
50
|
-
id: 'creatives.containersV2.TemplatesV2.viber',
|
|
51
|
-
defaultMessage: 'Viber',
|
|
52
|
-
},
|
|
53
49
|
gallery: {
|
|
54
50
|
id: 'creatives.containersV2.TemplatesV2.gallery',
|
|
55
51
|
defaultMessage: 'Gallery',
|
|
@@ -876,7 +876,7 @@ export class MapTemplates extends React.Component { // eslint-disable-line react
|
|
|
876
876
|
}
|
|
877
877
|
|
|
878
878
|
getMappedEvent(id, event) {
|
|
879
|
-
return this.state.map[id][event];
|
|
879
|
+
return (this.state.map[id] && this.state.map[id][event] ? this.state.map[id][event] : () => {});
|
|
880
880
|
}
|
|
881
881
|
|
|
882
882
|
handleOnTagsContextChange = (data) => {
|
package/assets/viber.png
DELETED
|
Binary file
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import * as types from './constants';
|
|
3
|
-
|
|
4
|
-
export function defaultAction() {
|
|
5
|
-
return {
|
|
6
|
-
type: types.DEFAULT_ACTION,
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export const uploadViberAsset = (file, assetType, fileParams, templateType) => ({
|
|
11
|
-
type: types.UPLOAD_VIBER_ASSET_REQUEST,
|
|
12
|
-
file,
|
|
13
|
-
assetType,
|
|
14
|
-
fileParams,
|
|
15
|
-
templateType,
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export function createTemplate(template, callback) {
|
|
20
|
-
return {
|
|
21
|
-
type: types.CREATE_VIBER_TEMPLATE_REQUEST,
|
|
22
|
-
template,
|
|
23
|
-
callback,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
// FOR EDIT
|
|
29
|
-
|
|
30
|
-
export function editTemplate(template, callback) {
|
|
31
|
-
console.log('action trigereed editTemplate viber @@@');
|
|
32
|
-
return {
|
|
33
|
-
type: types.EDIT_VIBER_TEMPLATE_REQUEST,
|
|
34
|
-
template,
|
|
35
|
-
callback,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function getTemplateDetails(id, callback) {
|
|
40
|
-
console.log('getting template viber @@@', id);
|
|
41
|
-
return {
|
|
42
|
-
type: types.GET_VIBER_TEMPLATE_DETAILS_REQUEST,
|
|
43
|
-
id,
|
|
44
|
-
channel: 'VIBER',
|
|
45
|
-
callback,
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function clearData() {
|
|
50
|
-
return {
|
|
51
|
-
type: types.CLEAR_VIBER_DATA,
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function clearEditResponse() {
|
|
56
|
-
return {
|
|
57
|
-
type: types.CLEAR_VIBER_EDIT_RESPONSE_REQUEST,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
export function clearCreateResponse() {
|
|
63
|
-
return {
|
|
64
|
-
type: types.CLEAR_VIBER_CREATE_RESPONSE_REQUEST,
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function clearViberAsset(templateType) {
|
|
69
|
-
return {
|
|
70
|
-
type: types.CLEAR_VIBER_ASSET,
|
|
71
|
-
templateType,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_ACTION = 'app/v2Containers/Viber/DEFAULT_ACTION';
|
|
2
|
-
export const ALLOWED_EXTENSIONS_REGEX = (/\.(jpe?g|png)$/i);
|
|
3
|
-
export const VIBER_IMG_HEIGHT = 400;
|
|
4
|
-
export const VIBER_IMG_WIDTH = 300;
|
|
5
|
-
export const VIBER_IMG_SIZE = 10000000;
|
|
6
|
-
export const charLimit = 1000;
|
|
7
|
-
|
|
8
|
-
export const UPLOAD_VIBER_ASSET_REQUEST = 'app/v2Containers/Viber/UPLOAD_ASSET_REQUEST';
|
|
9
|
-
export const UPLOAD_VIBER_ASSET_SUCCESS = 'app/v2Containers/Viber/UPLOAD_ASSET_SUCCESS';
|
|
10
|
-
export const UPLOAD_VIBER_ASSET_FAILURE = 'app/v2Containers/Viber/UPLOAD_ASSET_FAILURE';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export const CREATE_VIBER_TEMPLATE_REQUEST = 'app/v2Containers/Viber/CREATE_VIBER_TEMPLATE_REQUEST';
|
|
14
|
-
export const CREATE_VIBER_TEMPLATE_SUCCESS = 'app/v2Containers/Viber/CREATE_VIBER_TEMPLATE_SUCCESS';
|
|
15
|
-
export const CREATE_VIBER_TEMPLATE_FAILURE = 'app/v2Containers/Viber/CREATE_VIBER_TEMPLATE_FAILURE';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export const GET_VIBER_TEMPLATE_DETAILS_REQUEST = 'app/v2Containers/Viber/EDIT/CREATE_VIBER_TEMPLATE_DETAILS_REQUEST';
|
|
19
|
-
export const GET_VIBER_TEMPLATE_DETAILS_SUCCESS = 'app/v2Containers/Viber/EDIT/CREATE_VIBER_TEMPLATE_DETAILS_SUCCESS';
|
|
20
|
-
export const GET_VIBER_TEMPLATE_DETAILS_FAILURE = 'app/v2Containers/Viber/EDIT/CREATE_VIBER_TEMPLATE_DETAILS_FAILURE';
|
|
21
|
-
|
|
22
|
-
export const EDIT_VIBER_TEMPLATE_REQUEST = 'app/v2Containers/VIBER/Edit/EDIT_VIBER_TEMPLATE_REQUEST';
|
|
23
|
-
export const EDIT_VIBER_TEMPLATE_SUCCESS = 'app/v2Containers/VIBER/Edit/EDIT_VIBER_TEMPLATE_SUCCESS';
|
|
24
|
-
export const EDIT_VIBER_TEMPLATE_FAILURE = 'app/v2Containers/VIBER/Edit/EDIT_VIBER_TEMPLATE_FAILURE';
|
|
25
|
-
|
|
26
|
-
export const CLEAR_VIBER_EDIT_RESPONSE_REQUEST = 'app/v2Containers/VIBER/Edit/CLEAR_EDIT_RESPONSE_REQUEST';
|
|
27
|
-
export const CLEAR_VIBER_DATA = 'app/v2Containers/VIBER/Edit/CLEAR_DATA';
|
|
28
|
-
export const CLEAR_VIBER_CREATE_RESPONSE_REQUEST = 'app/v2Containers/VIBER/Create/CLEAR_EDIT_RESPONSE_REQUEST';
|
|
29
|
-
export const CLEAR_VIBER_ASSET = 'app/v2Containers/Viber/CLEAR_ASSET';
|
|
30
|
-
|