@capillarytech/creatives-library 6.13.3 → 6.13.4

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.
Files changed (57) hide show
  1. package/app.js +2 -5
  2. package/assets/viber.png +0 -0
  3. package/components/FormBuilder/index.js +2 -6
  4. package/containers/Ebill/index.js +0 -3
  5. package/containers/Email/index.js +8 -16
  6. package/containers/Sms/Create/index.js +1 -2
  7. package/index.js +8 -1
  8. package/package.json +2 -2
  9. package/reducers.js +2 -0
  10. package/routes.js +7 -1
  11. package/services/api.js +6 -0
  12. package/v2Components/FormBuilder/index.js +3 -5
  13. package/v2Components/TemplatePreview/_templatePreview.scss +8 -2
  14. package/v2Components/TemplatePreview/index.js +100 -17
  15. package/v2Containers/Cap/index.js +9 -30
  16. package/v2Containers/CreativesContainer/SlideBoxContent.js +65 -2
  17. package/v2Containers/CreativesContainer/constants.js +2 -0
  18. package/v2Containers/CreativesContainer/index.js +29 -2
  19. package/v2Containers/Templates/_templates.scss +57 -0
  20. package/v2Containers/Templates/index.js +54 -5
  21. package/v2Containers/TemplatesV2/index.js +12 -1
  22. package/v2Containers/TemplatesV2/messages.js +4 -0
  23. package/v2Containers/Viber/_viber.scss +3 -0
  24. package/v2Containers/Viber/actions.js +74 -0
  25. package/v2Containers/Viber/constants.js +30 -0
  26. package/v2Containers/Viber/index.js +700 -0
  27. package/v2Containers/Viber/messages.js +137 -0
  28. package/v2Containers/Viber/reducer.js +84 -0
  29. package/v2Containers/Viber/sagas.js +107 -0
  30. package/v2Containers/Viber/selectors.js +21 -0
  31. package/v2Containers/WeChat/MapTemplates/index.js +1 -1
  32. package/utils/ignoredErrorMessages.js +0 -4
  33. package/v2Containers/Line/Create/_lineCreate.scss +0 -64
  34. package/v2Containers/Line/Create/actions.js +0 -94
  35. package/v2Containers/Line/Create/constants.js +0 -43
  36. package/v2Containers/Line/Create/index.js +0 -1112
  37. package/v2Containers/Line/Create/initialSchema.js +0 -378
  38. package/v2Containers/Line/Create/messages.js +0 -229
  39. package/v2Containers/Line/Create/reducer.js +0 -99
  40. package/v2Containers/Line/Create/sagas.js +0 -113
  41. package/v2Containers/Line/Create/selectors.js +0 -30
  42. package/v2Containers/Line/CreateWrapper/constants.js +0 -2
  43. package/v2Containers/Line/CreateWrapper/index.js +0 -117
  44. package/v2Containers/Line/CreateWrapper/messages.js +0 -55
  45. package/v2Containers/Line/Edit/_lineEdit.scss +0 -23
  46. package/v2Containers/Line/Edit/actions.js +0 -79
  47. package/v2Containers/Line/Edit/constants.js +0 -27
  48. package/v2Containers/Line/Edit/index.js +0 -1051
  49. package/v2Containers/Line/Edit/messages.js +0 -173
  50. package/v2Containers/Line/Edit/reducer.js +0 -83
  51. package/v2Containers/Line/Edit/sagas.js +0 -81
  52. package/v2Containers/Line/Edit/selectors.js +0 -29
  53. package/v2Containers/Line/Edit/tests/actions.test.js +0 -18
  54. package/v2Containers/Line/Edit/tests/index.test.js +0 -10
  55. package/v2Containers/Line/Edit/tests/reducer.test.js +0 -9
  56. package/v2Containers/Line/Edit/tests/sagas.test.js +0 -15
  57. package/v2Containers/Line/Edit/tests/selectors.test.js +0 -10
@@ -0,0 +1,137 @@
1
+ import { defineMessages } from 'react-intl';
2
+ const scope = `creatives.containersV2.viber`;
3
+
4
+ export default defineMessages({
5
+ search: {
6
+ id: `${scope}.search`,
7
+ defaultMessage: 'Search',
8
+ },
9
+ gettingAllTemplates: {
10
+ id: `${scope}.gettingAllTemplates`,
11
+ defaultMessage: "Getting all templates...",
12
+ },
13
+ viberCreativeTitle: {
14
+ id: `${scope}.viberCreativeTitle`,
15
+ defaultMessage: "Viber creative",
16
+ },
17
+ viberCreativeDesc: {
18
+ id: `${scope}.viberCreativeDesc`,
19
+ defaultMessage: "Select any of the existing templates or create new",
20
+ },
21
+ message: {
22
+ id: `${scope}.message`,
23
+ defaultMessage: 'Message',
24
+ },
25
+ textMessage: {
26
+ id: `${scope}.textMessage`,
27
+ defaultMessage: 'Text message',
28
+ },
29
+ characters: {
30
+ id: `${scope}.characters`,
31
+ defaultMessage: 'characters',
32
+ },
33
+ addLabels: {
34
+ id: `${scope}.addLabels`,
35
+ defaultMessage: 'Add labels',
36
+ },
37
+ image: {
38
+ id: `${scope}.image`,
39
+ defaultMessage: 'Image',
40
+ },
41
+ button: {
42
+ id: `${scope}.button`,
43
+ defaultMessage: 'Button',
44
+ },
45
+ buttonText: {
46
+ id: `${scope}.buttonText`,
47
+ defaultMessage: 'Button text',
48
+ },
49
+ buttonUrl: {
50
+ id: `${scope}.buttonUrl`,
51
+ defaultMessage: 'Button url',
52
+ },
53
+ uploadImage: {
54
+ id: `${scope}.uploadImage`,
55
+ defaultMessage: 'Upload Image',
56
+ },
57
+ imageDesc: {
58
+ id: `${scope}.imageDesc`,
59
+ defaultMessage: 'The relevant image that complements the message context.',
60
+ },
61
+ uploadGallery: {
62
+ id: `${scope}.uploadGallery`,
63
+ defaultMessage: 'Gallery',
64
+ },
65
+ uploadComputer: {
66
+ id: `${scope}.uploadComputer`,
67
+ defaultMessage: 'Your computer',
68
+ },
69
+ or: {
70
+ id: `${scope}.or`,
71
+ defaultMessage: 'OR',
72
+ },
73
+ dragAndDrop: {
74
+ id: `${scope}.dragAndDrop`,
75
+ defaultMessage: 'Drag and drop image here',
76
+ },
77
+ uploadImageDescription: {
78
+ id: `${scope}.uploadImageDescription`,
79
+ defaultMessage: 'The relevant image that complements the message context.',
80
+ },
81
+ imageReUpload: {
82
+ id: `${scope}.imageReUpload`,
83
+ defaultMessage: 'Re upload',
84
+ },
85
+ imageDimenstionDescription: {
86
+ id: `${scope}.imageDimenstionDescription`,
87
+ defaultMessage: 'Dimensions: 300px x 400px',
88
+ },
89
+ imageSizeDescription: {
90
+ id: `${scope}.imageSizeDescription`,
91
+ defaultMessage: ' Size: 10mb',
92
+ },
93
+ doneButtonLabel: {
94
+ id: `${scope}.doneButtonLabel`,
95
+ defaultMessage: 'Done',
96
+ },
97
+ cancelButtonLabel: {
98
+ id: `${scope}.cancelButtonLabel`,
99
+ defaultMessage: 'Cancel',
100
+ },
101
+ imageGallery: {
102
+ id: `${scope}.imageGallery`,
103
+ defaultMessage: 'Gallery',
104
+ },
105
+ emptyContentErrorMessage: {
106
+ id: `${scope}.emptyContentErrorMessage`,
107
+ defaultMessage: 'Template content can not be empty',
108
+ },
109
+ limitExceededContentErrorMessage: {
110
+ id: `${scope}.limitExceededContentErrorMessage`,
111
+ defaultMessage: 'Template content can not be more than 1000',
112
+ },
113
+ invalidTagError: {
114
+ id: `${scope}.invalidTagError`,
115
+ defaultMessage: 'Please check the message content for unsupported/missing tags',
116
+ },
117
+ viberImageIncorrectSize: {
118
+ id: `${scope}.viberImageIncorrectSize`,
119
+ defaultMessage: 'Please upload the image with correct type, size and dimension',
120
+ },
121
+ viberCreateNotification: {
122
+ id: `${scope}.viberCreateNotification`,
123
+ defaultMessage: 'Viber template created successfully',
124
+ },
125
+ textMessageTitlePlaceholder: {
126
+ id: `${scope}.textMessageTitlePlaceholder`,
127
+ defaultMessage: 'Enter template name',
128
+ },
129
+ textMessageTitleLabel: {
130
+ id: `${scope}.textMessageTitleLabel`,
131
+ defaultMessage: 'Creative name',
132
+ },
133
+ emptyTitleErrorMessage: {
134
+ id: `${scope}.emptyTitleErrorMessage`,
135
+ defaultMessage: 'Template title can not be empty',
136
+ },
137
+ });
@@ -0,0 +1,84 @@
1
+ /*
2
+ *
3
+ * Faceboook reducer
4
+ *
5
+ */
6
+
7
+ import { fromJS } from 'immutable';
8
+ import * as types from './constants';
9
+
10
+ const initialState = fromJS({
11
+ uploadedAssetData: {},
12
+ createTemplateInProgress: false,
13
+ });
14
+
15
+ function viberReducer(state = initialState, action) {
16
+ switch (action.type) {
17
+ case types.CREATE_VIBER_TEMPLATE_REQUEST:
18
+ return state
19
+ .set('createTemplateInProgress', true)
20
+ .set('createTemplateError', false)
21
+ .set('createTemplateErrorMessage', fromJS(""));
22
+ case types.CREATE_VIBER_TEMPLATE_SUCCESS:
23
+ return state.set('createTemplateInProgress', false)
24
+ .set('response', action.data)
25
+ .set('createTemplateError', (action.statusCode !== undefined && action.statusCode > 300))
26
+ .set('createTemplateErrorMessage', fromJS(action.errorMsg));
27
+ case types.CREATE_VIBER_TEMPLATE_FAILURE:
28
+ return state
29
+ .set('createTemplateInProgress', false)
30
+ .set('createTemplateError', true)
31
+ .set('createTemplateErrorMessage', fromJS(action.errorMsg));
32
+ case types.UPLOAD_VIBER_ASSET_REQUEST:
33
+ return state
34
+ .set('uploadAssetSuccess', false)
35
+ .set('assetUploading', true);
36
+ case types.UPLOAD_VIBER_ASSET_SUCCESS:
37
+ return state
38
+ .set('uploadAssetSuccess', (action.statusCode !== undefined && action.statusCode !== '' && action.statusCode < 300))
39
+ .set('assetUploading', false)
40
+ .set(action.templateType !== undefined ? `uploadedAssetData${action.templateType}` : 'uploadedAssetData', action.data);
41
+ case types.UPLOAD_VIBER_ASSET_FAILURE:
42
+ return state
43
+ .set('uploadAssetSuccess', false)
44
+ .set('assetUploading', false);
45
+ case types.CLEAR_VIBER_ASSET:
46
+ return state
47
+ .delete(action.templateType !== undefined ? `uploadedAssetData${action.templateType}` : 'uploadedAssetData');
48
+ // FOR EDIT
49
+ case types.EDIT_VIBER_TEMPLATE_REQUEST:
50
+ return state
51
+ .set('editTemplateInProgress', true)
52
+ .set('editTemplateError', false)
53
+ .set('editTemplateErrorMessage', fromJS(""));
54
+ case types.EDIT_VIBER_TEMPLATE_SUCCESS:
55
+ return state.set('editTemplateInProgress', false)
56
+ .set('editResponse', action.data)
57
+ .set('editTemplateError', (action.statusCode !== undefined && action.statusCode > 300))
58
+ .set('editTemplateErrorMessage', fromJS(action.errorMsg));
59
+ case types.EDIT_VIBER_TEMPLATE_FAILURE:
60
+ return state
61
+ .set('editTemplateInProgress', false)
62
+ .set('editTemplateError', true)
63
+ .set('editTemplateErrorMessage', fromJS(action.errorMsg));
64
+ case types.GET_VIBER_TEMPLATE_DETAILS_REQUEST:
65
+ return state.set('getTemplateDetailsInProgress', true);
66
+ case types.GET_VIBER_TEMPLATE_DETAILS_SUCCESS:
67
+ return state.set('getTemplateDetailsInProgress', false)
68
+ .set('templateDetails', action.data);
69
+ case types.GET_VIBER_TEMPLATE_DETAILS_FAILURE:
70
+ case types.CLEAR_VIBER_EDIT_RESPONSE_REQUEST:
71
+ return state.set('editResponse', {});
72
+ case types.CLEAR_VIBER_CREATE_RESPONSE_REQUEST:
73
+ return state.set('response', {});
74
+ case types.CLEAR_VIBER_DATA:
75
+ return state
76
+ .delete('uploadedAssetData')
77
+ .delete('metaEntities')
78
+ .delete('templateDetails');
79
+ default:
80
+ return state;
81
+ }
82
+ }
83
+
84
+ export default viberReducer;
@@ -0,0 +1,107 @@
1
+
2
+ import { take, cancel, call, put, takeLatest } from 'redux-saga/effects';
3
+ import { LOCATION_CHANGE } from 'react-router-redux';
4
+ import * as Api from '../../services/api';
5
+ import * as types from './constants';
6
+
7
+ export function* uploadViberAsset(file, assetType, fileParams ) {
8
+ try {
9
+ const result = yield call(Api.uploadFile, file, assetType, fileParams);
10
+ yield put({
11
+ type: types.UPLOAD_VIBER_ASSET_SUCCESS,
12
+ data: result.response.asset,
13
+ statusCode: result.status ? result.status.code : '',
14
+ templateType: file.templateType,
15
+ });
16
+ } catch (error) {
17
+ yield put({ type: types.UPLOAD_VIBER_ASSET_FAILURE, error });
18
+ }
19
+ }
20
+
21
+ export function* createViberTemplate({ template, callback }) {
22
+ let errorMsg;
23
+ try {
24
+ const result = yield call(Api.createViberTemplate, { template });
25
+ if (result.status.code >= 400) {
26
+ errorMsg = result.message;
27
+ throw errorMsg;
28
+ }
29
+ yield put({ type: types.CREATE_VIBER_TEMPLATE_SUCCESS, data: result.response, statusCode: result.status ? result.status.code : '', errorMsg });
30
+ if (callback) {
31
+ callback(result.response);
32
+ }
33
+ } catch (error) {
34
+ yield put({ type: types.CREATE_VIBER_TEMPLATE_FAILURE, error, errorMsg });
35
+ if (callback) {
36
+ callback(null, errorMsg);
37
+ }
38
+ }
39
+ }
40
+
41
+
42
+ export function* editTemplate({ template, callback }) {
43
+ let errorMsg;
44
+ try {
45
+ const result = yield call(Api.createViberTemplate, {template});
46
+ if (result.status.code >= 400) {
47
+ errorMsg = result.message;
48
+ throw errorMsg;
49
+ }
50
+ if (callback) {
51
+ callback(result.response);
52
+ }
53
+ yield put({ type: types.EDIT_TEMPLATE_VIBER_SUCCESS, data: result.response, statusCode: result.status ? result.status.code : '', errorMsg });
54
+ } catch (error) {
55
+ yield put({ type: types.EDIT_VIBER_TEMPLATE_FAILURE, error, errorMsg });
56
+ if (callback) {
57
+ callback(null, errorMsg);
58
+ }
59
+ }
60
+ }
61
+
62
+ export function* getTemplateDetails({id, callback}) {
63
+ try {
64
+ console.log('saga get Template details viber', id);
65
+ const result = yield call(Api.getTemplateDetails, {id, channel: 'VIBER'});
66
+ yield put({ type: types.GET_VIBER_TEMPLATE_DETAILS_SUCCESS, data: result.response });
67
+ if (callback) {
68
+ callback(false);
69
+ }
70
+ } catch (error) {
71
+ yield put({ type: types.GET_VIBER_TEMPLATE_DETAILS_FAILURE, error });
72
+ }
73
+ }
74
+
75
+
76
+ function* watchUploadViberAsset() {
77
+ const watcher = yield takeLatest(types.UPLOAD_VIBER_ASSET_REQUEST, uploadViberAsset);
78
+ yield take(LOCATION_CHANGE);
79
+ yield cancel(watcher);
80
+ }
81
+
82
+
83
+ function* watchCreateTemplate() {
84
+ console.log('inside watch vibee saga createTemplate@@@');
85
+ const watcher = yield takeLatest(types.CREATE_VIBER_TEMPLATE_REQUEST, createViberTemplate);
86
+ yield take(LOCATION_CHANGE);
87
+ yield cancel(watcher);
88
+ }
89
+
90
+ function* watchGetTemplateDetails() {
91
+ const watcher = yield takeLatest(types.GET_VIBER_TEMPLATE_DETAILS_REQUEST, getTemplateDetails);
92
+ yield take(LOCATION_CHANGE);
93
+ yield cancel(watcher);
94
+ }
95
+
96
+ function* watchEditTemplate() {
97
+ const watcher = yield takeLatest(types.EDIT_VIBER_TEMPLATE_REQUEST, editTemplate);
98
+ yield take(LOCATION_CHANGE);
99
+ yield cancel(watcher);
100
+ }
101
+
102
+ export default [
103
+ watchUploadViberAsset,
104
+ watchCreateTemplate,
105
+ watchGetTemplateDetails,
106
+ watchEditTemplate,
107
+ ];
@@ -0,0 +1,21 @@
1
+ import { createSelector } from 'reselect';
2
+
3
+ /**
4
+ * Direct selector to the create state domain
5
+ */
6
+ const selectViberDomain = () => (state) => state.get('templates');
7
+ const selectViberMessageEditDomain = () => (state) => state.get('viber');
8
+
9
+ const makeSelectViber = () => createSelector(
10
+ selectViberDomain(),
11
+ (substate) => substate && substate.toJS()
12
+ );
13
+
14
+ const makeSelectCreateViber = () => createSelector(
15
+ selectViberMessageEditDomain(),
16
+ (substate) => substate && substate.toJS()
17
+ );
18
+
19
+ export {
20
+ makeSelectViber, makeSelectCreateViber,
21
+ };
@@ -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] && this.state.map[id][event] ? this.state.map[id][event] : () => {});
879
+ return this.state.map[id][event];
880
880
  }
881
881
 
882
882
  handleOnTagsContextChange = (data) => {
@@ -1,4 +0,0 @@
1
- export default [
2
- // ref: https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded
3
- 'ResizeObserver loop limit exceeded'
4
- ];
@@ -1,64 +0,0 @@
1
- @import '~@capillarytech/cap-ui-library/styles/_variables.scss';
2
-
3
- .line-row{
4
- margin-bottom: 16px;
5
- }
6
- .slidebox-content-container {
7
- overflow-x: hidden;
8
- }
9
- .line-image {
10
- position: relative;
11
- }
12
- .image-container {
13
- display: flex;
14
- & > div {
15
- min-width: 516px;
16
- }
17
- border-radius: 5px;
18
- .image-placeholder{
19
- line-height: 150px;
20
- }
21
- img {
22
- object-fit: cover;
23
- max-width: 100%;
24
- max-height: 100%;
25
- height: auto !important;
26
- width: auto !important;
27
- }
28
- }
29
-
30
- .pagination-container.gallery-upload {
31
- height: calc(100vh - 60px);
32
-
33
- .cap-custom-card-list-col {
34
- max-width: 156px;
35
- max-height: 156px;
36
- display: inline-block;
37
- margin-left: $CAP_SPACE_04;
38
- margin-right: $CAP_SPACE_04;
39
- }
40
-
41
- .ant-card-body {
42
- padding-top: 0;
43
-
44
- .ant-card-meta-description img {
45
- height: 80px;
46
- width: auto;
47
- }
48
- }
49
- }
50
-
51
- .gallery-image {
52
- height: 156px;
53
- width: 156px;
54
- border-radius: 4px;
55
- margin: 3px;
56
- }
57
-
58
- .sms-text {
59
- img {
60
- display: block;
61
- max-width: 100%;
62
- object-fit: cover;
63
- }
64
- }
@@ -1,94 +0,0 @@
1
- /*
2
- *
3
- * Create actions
4
- *
5
- */
6
-
7
- import * as types from './constants';
8
-
9
- export function createTemplate(template, callback) {
10
- console.log('action trigereed createtemplate');
11
- return {
12
- type: types.CREATE_TEMPLATE_REQUEST,
13
- template,
14
- callback,
15
- };
16
- }
17
-
18
- export function clearCreateResponse() {
19
- console.log('clearCreateResponse');
20
- return {
21
- type: types.CLEAR_CREATE_RESPONSE_REQUEST,
22
- };
23
- }
24
-
25
- export function defaultAction() {
26
- return {
27
- type: types.DEFAULT_ACTION,
28
- };
29
- }
30
-
31
- export function uploadAsset(file, assetType, fileParams) {
32
- return {
33
- type: types.UPLOAD_ASSET_REQUEST,
34
- file,
35
- assetType,
36
- fileParams,
37
- };
38
- }
39
-
40
- export function clearAsset() {
41
- return {
42
- type: types.CLEAR_ASSET,
43
- };
44
- }
45
-
46
-
47
- // FOR EDIT
48
-
49
-
50
- export function editTemplate(template, callback) {
51
- console.log('action trigereed editTemplate line @@@');
52
- return {
53
- type: types.EDIT_TEMPLATE_REQUEST,
54
- template,
55
- callback,
56
- };
57
- }
58
-
59
- export function getTemplateDetails(id) {
60
- console.log('getting template line @@@', id);
61
- return {
62
- type: types.GET_TEMPLATE_DETAILS_REQUEST,
63
- id,
64
- channel: 'LINE',
65
- };
66
- }
67
-
68
- export function clearEditResponse() {
69
- console.log('clearEditResponse');
70
- return {
71
- type: types.CLEAR_EDIT_RESPONSE_REQUEST,
72
- };
73
- }
74
-
75
- export function clearData() {
76
- return {
77
- type: types.CLEAR_DATA,
78
- };
79
- }
80
-
81
- export function getLineTemplatesList(channel, queryParams) {
82
- return {
83
- type: types.GET_LINE_TEMPLATES_LIST_REQUEST,
84
- channel,
85
- queryParams,
86
- };
87
- }
88
-
89
- export function setSelectedTemplate(templateData) {
90
- return {
91
- type: types.SET_SELECTED_TEMPLATE,
92
- data: templateData,
93
- };
94
- }
@@ -1,43 +0,0 @@
1
- /*
2
- *
3
- * Create constants
4
- *
5
- */
6
-
7
- export const DEFAULT_ACTION = 'app/Create/DEFAULT_ACTION';
8
-
9
-
10
- export const CREATE_TEMPLATE_REQUEST = 'app/v2Containers/Line/Create/CREATE_TEMPLATE_REQUEST';
11
- export const CREATE_TEMPLATE_SUCCESS = 'app/v2Containers/Line/Create/CREATE_TEMPLATE_SUCCESS';
12
- export const CREATE_TEMPLATE_FAILURE = 'app/v2Containers/Line/Create/CREATE_TEMPLATE_FAILURE';
13
- export const UPLOAD_ASSET_REQUEST = 'app/v2Containers/Line/Create/UPLOAD_ASSET_REQUEST';
14
- export const UPLOAD_ASSET_SUCCESS = 'app/v2Containers/Line/Create/UPLOAD_ASSET_SUCCESS';
15
- export const UPLOAD_ASSET_FAILURE = 'app/v2Containers/Line/Create/UPLOAD_ASSET_FAILURE';
16
- export const CLEAR_ASSET = 'app/v2Containers/Line/Create/CLEAR_ASSET';
17
-
18
- export const CLEAR_CREATE_RESPONSE_REQUEST = 'app/v2Containers/Line/Create/CLEAR_CREATE_RESPONSE_REQUEST';
19
- export const CLEAR_CREATE_RESPONSE_SUCCESS = 'app/v2Containers/Line/Create/CLEAR_CREATE_RESPONSE_SUCCESS';
20
- export const CLEAR_CREATE_RESPONSE_FAILURE = 'app/v2Containers/Line/Create/CLEAR_CREATE_RESPONSE_FAILURE';
21
-
22
- export const LINE_IMG_HEIGHT = 400;
23
- export const LINE_IMG_WIDTH = 300;
24
- export const LINE_IMG_SIZE = 30000000;
25
-
26
-
27
- // edit
28
-
29
- export const GET_TEMPLATE_DETAILS_REQUEST = 'app/v2Containers/line/Edit/GET_TEMPLATE_DETAILS_REQUEST';
30
- export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/v2Containers/line/Edit/GET_TEMPLATE_DETAILS_SUCCESS';
31
- export const GET_TEMPLATE_DETAILS_FAILURE = 'app/v2Containers/line/Edit/GET_TEMPLATE_DETAILS_FAILURE';
32
-
33
- export const EDIT_TEMPLATE_REQUEST = 'app/v2Containers/line/Edit/EDIT_TEMPLATE_REQUEST';
34
- export const EDIT_TEMPLATE_SUCCESS = 'app/v2Containers/line/Edit/EDIT_TEMPLATE_SUCCESS';
35
- export const EDIT_TEMPLATE_FAILURE = 'app/v2Containers/line/Edit/EDIT_TEMPLATE_FAILURE';
36
-
37
- export const CLEAR_EDIT_RESPONSE_REQUEST = 'app/v2Containers/line/Edit/CLEAR_EDIT_RESPONSE_REQUEST';
38
- export const CLEAR_DATA = 'app/v2Containers/Line/Edit/CLEAR_DATA';
39
- export const SET_SELECTED_TEMPLATE = 'app/v2Containers/Line/Edit/SET_SELECTED_TEMPLATE';
40
-
41
- export const GET_LINE_TEMPLATES_LIST_REQUEST = 'app/v2Containers/Line/GET_LINE_TEMPLATES_LIST_REQUEST';
42
- export const GET_LINE_TEMPLATES_LIST_SUCCESS = 'app/v2Containers/Line/GET_LINE_TEMPLATES_LIST_SUCCESS';
43
- export const GET_LINE_TEMPLATES_LIST_FAILURE = 'app/v2Containers/Line/GET_LINE_TEMPLATES_LIST_FAILURE';