@capillarytech/creatives-library 2.0.84 → 2.0.86

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 (87) hide show
  1. package/app.js +9 -2
  2. package/config/app.js +4 -4
  3. package/config/path.js +1 -0
  4. package/index.js +4 -4
  5. package/package.json +2 -3
  6. package/routes.js +5 -0
  7. package/v2Components/EmailPreviewV2/index.js +3 -3
  8. package/v2Components/FormBuilder/index.js +6 -6
  9. package/v2Components/NavigationBar/index.js +235 -0
  10. package/v2Components/NavigationBar/messages.js +20 -0
  11. package/v2Components/NavigationBar/tests/index.test.js +11 -0
  12. package/v2Components/TopBar/index.js +63 -106
  13. package/v2Components/TopBar/messages.js +8 -0
  14. package/v2Containers/CallTask/index.js +1 -1
  15. package/v2Containers/CallTask/sagas.js +1 -1
  16. package/v2Containers/Cap/actions.js +12 -0
  17. package/v2Containers/Cap/constants.js +10 -0
  18. package/v2Containers/Cap/index.js +26 -142
  19. package/v2Containers/Cap/reducer.js +14 -0
  20. package/v2Containers/Cap/sagas.js +24 -0
  21. package/v2Containers/Cap/tests/selectors.test.js +1 -1
  22. package/v2Containers/ChannelTemplates/sagas.js +1 -1
  23. package/v2Containers/CreativesContainer/SlideBoxContent.js +6 -0
  24. package/v2Containers/CreativesContainer/index.js +15 -2
  25. package/v2Containers/CreativesContainer/sagas.js +1 -1
  26. package/v2Containers/Dashboard/sagas.js +1 -1
  27. package/v2Containers/Ebill/constants.js +11 -11
  28. package/v2Containers/Ebill/index.js +1 -1
  29. package/v2Containers/Email/constants.js +24 -24
  30. package/v2Containers/Email/index.js +1 -1
  31. package/v2Containers/EmailWrapper/sagas.js +1 -1
  32. package/v2Containers/Line/Create/constants.js +22 -22
  33. package/v2Containers/Line/Create/index.js +1 -1
  34. package/v2Containers/Line/Edit/constants.js +16 -16
  35. package/v2Containers/Login/index.js +2 -2
  36. package/v2Containers/MobilePush/Create/constants.js +14 -14
  37. package/v2Containers/MobilePush/Create/index.js +1 -1
  38. package/v2Containers/MobilePush/Edit/constants.js +23 -23
  39. package/v2Containers/MobilepushWrapper/index.js +8 -0
  40. package/v2Containers/Sms/Create/constants.js +6 -6
  41. package/v2Containers/Sms/Create/index.js +6 -5
  42. package/v2Containers/Sms/Create/messages.js +8 -0
  43. package/v2Containers/Sms/Edit/constants.js +8 -8
  44. package/v2Containers/Sms/Edit/index.js +6 -6
  45. package/v2Containers/Sms/commonMethods.js +18 -0
  46. package/v2Containers/TagList/index.js +1 -1
  47. package/v2Containers/TagList/sagas.js +1 -1
  48. package/v2Containers/Templates/constants.js +37 -37
  49. package/v2Containers/Templates/index.js +6 -1
  50. package/v2Containers/TestPage/constants.js +1 -1
  51. package/v2Containers/TestPage/sagas.js +1 -1
  52. package/v2Containers/Testv2/sagas.js +1 -1
  53. package/v2Containers/WeChat/MapTemplates/constants.js +16 -16
  54. package/v2Containers/WeChat/MapTemplates/index.js +1 -1
  55. package/v2Containers/WeChat/RichmediaTemplates/Create/constants.js +9 -9
  56. package/v2Containers/WeChat/RichmediaTemplates/Create/index.js +2 -2
  57. package/v2Containers/WeChat/RichmediaTemplates/Create/sagas.js +1 -1
  58. package/v2Containers/WeChat/RichmediaTemplates/Edit/constants.js +3 -3
  59. package/v2Containers/WeChat/RichmediaTemplates/Edit/sagas.js +1 -1
  60. package/v2Containers/WeChat/RichmediaTemplates/View/sagas.js +1 -1
  61. package/assets/android-message-gui-2.svg +0 -55
  62. package/components/CallTaskPreview/_callTaskPreview.scss +0 -17
  63. package/components/CallTaskPreview/images/Footer.png +0 -0
  64. package/components/CallTaskPreview/images/Header.png +0 -0
  65. package/components/CallTaskPreview/index.js +0 -37
  66. package/components/CallTaskPreview/messages.js +0 -13
  67. package/components/CallTaskPreview/tests/index.test.js +0 -15
  68. package/components/CmsTemplatesComponent/index.js +0 -33
  69. package/components/CmsTemplatesComponent/messages.js +0 -17
  70. package/components/CmsTemplatesComponent/tests/index.test.js +0 -10
  71. package/components/EmailMobilePreview/index.js +0 -129
  72. package/components/EmailMobilePreview/index.scss +0 -55
  73. package/components/EmailPreviewV2/_emailPreviewV2.scss +0 -69
  74. package/components/EmailPreviewV2/index.js +0 -132
  75. package/components/EmailPreviewV2/messages.js +0 -41
  76. package/components/EmailPreviewV2/tests/index.test.js +0 -10
  77. package/components/MobilePushPreviewV2/index.js +0 -120
  78. package/components/MobilePushPreviewV2/messages.js +0 -13
  79. package/components/MobilePushPreviewV2/tests/index.test.js +0 -10
  80. package/components/NewCallTask/_newCallTask.scss +0 -9
  81. package/components/NewCallTask/index.js +0 -152
  82. package/components/NewCallTask/messages.js +0 -29
  83. package/components/NewCallTask/tests/index.test.js +0 -10
  84. package/components/SmsPreviewV2/_smsPreviewV2.scss +0 -353
  85. package/components/SmsPreviewV2/index.js +0 -69
  86. package/components/SmsPreviewV2/messages.js +0 -13
  87. package/components/SmsPreviewV2/tests/index.test.js +0 -10
@@ -6,22 +6,22 @@
6
6
 
7
7
  export const DEFAULT_ACTION = 'app/Edit/DEFAULT_ACTION';
8
8
 
9
- export const GET_TEMPLATE_DETAILS_REQUEST = 'app/containers/line/Edit/GET_TEMPLATE_DETAILS_REQUEST';
10
- export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/containers/line/Edit/GET_TEMPLATE_DETAILS_SUCCESS';
11
- export const GET_TEMPLATE_DETAILS_FAILURE = 'app/containers/line/Edit/GET_TEMPLATE_DETAILS_FAILURE';
9
+ export const GET_TEMPLATE_DETAILS_REQUEST = 'app/v2Containers/line/Edit/GET_TEMPLATE_DETAILS_REQUEST';
10
+ export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/v2Containers/line/Edit/GET_TEMPLATE_DETAILS_SUCCESS';
11
+ export const GET_TEMPLATE_DETAILS_FAILURE = 'app/v2Containers/line/Edit/GET_TEMPLATE_DETAILS_FAILURE';
12
12
 
13
- export const EDIT_TEMPLATE_REQUEST = 'app/containers/line/Edit/EDIT_TEMPLATE_REQUEST';
14
- export const EDIT_TEMPLATE_SUCCESS = 'app/containers/line/Edit/EDIT_TEMPLATE_SUCCESS';
15
- export const EDIT_TEMPLATE_FAILURE = 'app/containers/line/Edit/EDIT_TEMPLATE_FAILURE';
13
+ export const EDIT_TEMPLATE_REQUEST = 'app/v2Containers/line/Edit/EDIT_TEMPLATE_REQUEST';
14
+ export const EDIT_TEMPLATE_SUCCESS = 'app/v2Containers/line/Edit/EDIT_TEMPLATE_SUCCESS';
15
+ export const EDIT_TEMPLATE_FAILURE = 'app/v2Containers/line/Edit/EDIT_TEMPLATE_FAILURE';
16
16
 
17
- export const CLEAR_EDIT_RESPONSE_REQUEST = 'app/containers/line/Edit/CLEAR_EDIT_RESPONSE_REQUEST';
18
- export const UPLOAD_ASSET_REQUEST = 'app/containers/Line/Edit/UPLOAD_ASSET_REQUEST';
19
- export const UPLOAD_ASSET_SUCCESS = 'app/containers/Line/Edit/UPLOAD_ASSET_SUCCESS';
20
- export const UPLOAD_ASSET_FAILURE = 'app/containers/Line/Edit/UPLOAD_ASSET_FAILURE';
21
- export const CLEAR_DATA = 'app/containers/Line/Edit/CLEAR_DATA';
22
- export const CLEAR_ASSET = 'app/containers/Line/Edit/CLEAR_ASSET';
23
- export const SET_SELECTED_TEMPLATE = 'app/containers/Line/Edit/SET_SELECTED_TEMPLATE';
17
+ export const CLEAR_EDIT_RESPONSE_REQUEST = 'app/v2Containers/line/Edit/CLEAR_EDIT_RESPONSE_REQUEST';
18
+ export const UPLOAD_ASSET_REQUEST = 'app/v2Containers/Line/Edit/UPLOAD_ASSET_REQUEST';
19
+ export const UPLOAD_ASSET_SUCCESS = 'app/v2Containers/Line/Edit/UPLOAD_ASSET_SUCCESS';
20
+ export const UPLOAD_ASSET_FAILURE = 'app/v2Containers/Line/Edit/UPLOAD_ASSET_FAILURE';
21
+ export const CLEAR_DATA = 'app/v2Containers/Line/Edit/CLEAR_DATA';
22
+ export const CLEAR_ASSET = 'app/v2Containers/Line/Edit/CLEAR_ASSET';
23
+ export const SET_SELECTED_TEMPLATE = 'app/v2Containers/Line/Edit/SET_SELECTED_TEMPLATE';
24
24
 
25
- export const GET_LINE_TEMPLATES_LIST_REQUEST = 'app/containers/Line/GET_LINE_TEMPLATES_LIST_REQUEST';
26
- export const GET_LINE_TEMPLATES_LIST_SUCCESS = 'app/containers/Line/GET_LINE_TEMPLATES_LIST_SUCCESS';
27
- export const GET_LINE_TEMPLATES_LIST_FAILURE = 'app/containers/Line/GET_LINE_TEMPLATES_LIST_FAILURE';
25
+ export const GET_LINE_TEMPLATES_LIST_REQUEST = 'app/v2Containers/Line/GET_LINE_TEMPLATES_LIST_REQUEST';
26
+ export const GET_LINE_TEMPLATES_LIST_SUCCESS = 'app/v2Containers/Line/GET_LINE_TEMPLATES_LIST_SUCCESS';
27
+ export const GET_LINE_TEMPLATES_LIST_FAILURE = 'app/v2Containers/Line/GET_LINE_TEMPLATES_LIST_FAILURE';
@@ -10,8 +10,8 @@ import { createStructuredSelector } from 'reselect';
10
10
  import makeSelectLogin from './selectors';
11
11
  import messages from './messages';
12
12
  import config from '../../config/app';
13
- import LoginForm from './v2Components/LoginForm';
14
- import * as actions from '../../containers/Cap/actions';
13
+ import LoginForm from './components/LoginForm';
14
+ import * as actions from '../Cap/actions';
15
15
  import { UserIsNotAuthenticated } from '../../utils/authWrapper';
16
16
  import loaderGif from '../../assets/loading_img.gif';
17
17
  const logo = require('./assets/images/capillary_logo.png');
@@ -7,18 +7,18 @@
7
7
  export const DEFAULT_ACTION = 'app/Create/DEFAULT_ACTION';
8
8
 
9
9
 
10
- export const CREATE_TEMPLATE_REQUEST = 'app/containers/PushMessage/Create/CREATE_TEMPLATE_REQUEST';
11
- export const CREATE_TEMPLATE_SUCCESS = 'app/containers/PushMessage/Create/CREATE_TEMPLATE_SUCCESS';
12
- export const CREATE_TEMPLATE_FAILURE = 'app/containers/PushMessage/Create/CREATE_TEMPLATE_FAILURE';
13
- export const UPLOAD_ASSET_REQUEST = 'app/containers/PushMessage/Create/UPLOAD_ASSET_REQUEST';
14
- export const UPLOAD_ASSET_SUCCESS = 'app/containers/PushMessage/Create/UPLOAD_ASSET_SUCCESS';
15
- export const UPLOAD_ASSET_FAILURE = 'app/containers/PushMessage/Create/UPLOAD_ASSET_FAILURE';
16
- export const CLEAR_ASSET = 'app/containers/PushMessage/Create/CLEAR_ASSET';
10
+ export const CREATE_TEMPLATE_REQUEST = 'app/v2Containers/PushMessage/Create/CREATE_TEMPLATE_REQUEST';
11
+ export const CREATE_TEMPLATE_SUCCESS = 'app/v2Containers/PushMessage/Create/CREATE_TEMPLATE_SUCCESS';
12
+ export const CREATE_TEMPLATE_FAILURE = 'app/v2Containers/PushMessage/Create/CREATE_TEMPLATE_FAILURE';
13
+ export const UPLOAD_ASSET_REQUEST = 'app/v2Containers/PushMessage/Create/UPLOAD_ASSET_REQUEST';
14
+ export const UPLOAD_ASSET_SUCCESS = 'app/v2Containers/PushMessage/Create/UPLOAD_ASSET_SUCCESS';
15
+ export const UPLOAD_ASSET_FAILURE = 'app/v2Containers/PushMessage/Create/UPLOAD_ASSET_FAILURE';
16
+ export const CLEAR_ASSET = 'app/v2Containers/PushMessage/Create/CLEAR_ASSET';
17
17
 
18
- export const CLEAR_CREATE_RESPONSE_REQUEST = 'app/containers/PushMessage/Create/CLEAR_CREATE_RESPONSE_REQUEST';
19
- export const CLEAR_CREATE_RESPONSE_SUCCESS = 'app/containers/PushMessage/Create/CLEAR_CREATE_RESPONSE_SUCCESS';
20
- export const CLEAR_CREATE_RESPONSE_FAILURE = 'app/containers/PushMessage/Create/CLEAR_CREATE_RESPONSE_FAILURE';
21
- export const GET_IOS_CTAS = 'app/containers/PushMessage/Create/GET_IOS_CTAS';
22
- export const GET_IOS_CTAS_SUCCESS = 'app/containers/PushMessage/Create/GET_IOS_CTAS_SUCCESS';
23
- export const GET_IOS_CTAS_FAILURE = 'app/containers/PushMessage/Create/GET_IOS_CTAS_FAILURE';
24
- export const RESET_STORE = 'app/containers/PushMessage/Create/RESET_STORE';
18
+ export const CLEAR_CREATE_RESPONSE_REQUEST = 'app/v2Containers/PushMessage/Create/CLEAR_CREATE_RESPONSE_REQUEST';
19
+ export const CLEAR_CREATE_RESPONSE_SUCCESS = 'app/v2Containers/PushMessage/Create/CLEAR_CREATE_RESPONSE_SUCCESS';
20
+ export const CLEAR_CREATE_RESPONSE_FAILURE = 'app/v2Containers/PushMessage/Create/CLEAR_CREATE_RESPONSE_FAILURE';
21
+ export const GET_IOS_CTAS = 'app/v2Containers/PushMessage/Create/GET_IOS_CTAS';
22
+ export const GET_IOS_CTAS_SUCCESS = 'app/v2Containers/PushMessage/Create/GET_IOS_CTAS_SUCCESS';
23
+ export const GET_IOS_CTAS_FAILURE = 'app/v2Containers/PushMessage/Create/GET_IOS_CTAS_FAILURE';
24
+ export const RESET_STORE = 'app/v2Containers/PushMessage/Create/RESET_STORE';
@@ -17,7 +17,7 @@ import styled from 'styled-components';
17
17
  import { CapSlideBox, CapHeader, CapTable, CapLink, CapRow, CapColumn, CapIcons, CapSpin, CapNotification } from '@capillarytech/cap-ui-library';
18
18
  import { makeSelectCreate, makeSelectCreateResponse, makeSelectIosCta } from './selectors';
19
19
  import { makeSelectMetaEntities, setInjectedTags } from '../../Cap/selectors';
20
- import * as globalActions from '../../../containers/Cap/actions';
20
+ import * as globalActions from '../../Cap/actions';
21
21
  import FormBuilder from '../../../v2Components/FormBuilder';
22
22
  import './_mobilePushCreate.scss';
23
23
  import * as actions from './actions';
@@ -6,30 +6,30 @@
6
6
 
7
7
  export const DEFAULT_ACTION = 'app/Edit/DEFAULT_ACTION';
8
8
 
9
- export const GET_TEMPLATE_DETAILS_REQUEST = 'app/containers/mobilePush/Edit/GET_TEMPLATE_DETAILS_REQUEST';
10
- export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/containers/mobilePush/Edit/GET_TEMPLATE_DETAILS_SUCCESS';
11
- export const GET_TEMPLATE_DETAILS_FAILURE = 'app/containers/mobilePush/Edit/GET_TEMPLATE_DETAILS_FAILURE';
9
+ export const GET_TEMPLATE_DETAILS_REQUEST = 'app/v2Containers/mobilePush/Edit/GET_TEMPLATE_DETAILS_REQUEST';
10
+ export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/v2Containers/mobilePush/Edit/GET_TEMPLATE_DETAILS_SUCCESS';
11
+ export const GET_TEMPLATE_DETAILS_FAILURE = 'app/v2Containers/mobilePush/Edit/GET_TEMPLATE_DETAILS_FAILURE';
12
12
 
13
- export const EDIT_TEMPLATE_REQUEST = 'app/containers/mobilePush/Edit/EDIT_TEMPLATE_REQUEST';
14
- export const EDIT_TEMPLATE_SUCCESS = 'app/containers/mobilePush/Edit/EDIT_TEMPLATE_SUCCESS';
15
- export const EDIT_TEMPLATE_FAILURE = 'app/containers/mobilePush/Edit/EDIT_TEMPLATE_FAILURE';
13
+ export const EDIT_TEMPLATE_REQUEST = 'app/v2Containers/mobilePush/Edit/EDIT_TEMPLATE_REQUEST';
14
+ export const EDIT_TEMPLATE_SUCCESS = 'app/v2Containers/mobilePush/Edit/EDIT_TEMPLATE_SUCCESS';
15
+ export const EDIT_TEMPLATE_FAILURE = 'app/v2Containers/mobilePush/Edit/EDIT_TEMPLATE_FAILURE';
16
16
 
17
- export const CLEAR_EDIT_RESPONSE_REQUEST = 'app/containers/mobilePush/Edit/CLEAR_EDIT_RESPONSE_REQUEST';
18
- export const GET_IOS_CTAS = 'app/containers/PushMessage/Edit/GET_IOS_CTAS';
19
- export const GET_IOS_CTAS_SUCCESS = 'app/containers/PushMessage/Edit/GET_IOS_CTAS_SUCCESS';
20
- export const GET_IOS_CTAS_FAILURE = 'app/containers/PushMessage/Edit/GET_IOS_CTAS_FAILURE';
21
- export const UPLOAD_ASSET_REQUEST = 'app/containers/PushMessage/Edit/UPLOAD_ASSET_REQUEST';
22
- export const UPLOAD_ASSET_SUCCESS = 'app/containers/PushMessage/Edit/UPLOAD_ASSET_SUCCESS';
23
- export const UPLOAD_ASSET_FAILURE = 'app/containers/PushMessage/Edit/UPLOAD_ASSET_FAILURE';
24
- export const CLEAR_DATA = 'app/containers/PushMessage/Edit/CLEAR_DATA';
25
- export const CLEAR_ASSET = 'app/containers/PushMessage/Edit/CLEAR_ASSET';
26
- export const SET_SELECTED_TEMPLATE = 'app/containers/PushMessage/Edit/SET_SELECTED_TEMPLATE';
17
+ export const CLEAR_EDIT_RESPONSE_REQUEST = 'app/v2Containers/mobilePush/Edit/CLEAR_EDIT_RESPONSE_REQUEST';
18
+ export const GET_IOS_CTAS = 'app/v2Containers/PushMessage/Edit/GET_IOS_CTAS';
19
+ export const GET_IOS_CTAS_SUCCESS = 'app/v2Containers/PushMessage/Edit/GET_IOS_CTAS_SUCCESS';
20
+ export const GET_IOS_CTAS_FAILURE = 'app/v2Containers/PushMessage/Edit/GET_IOS_CTAS_FAILURE';
21
+ export const UPLOAD_ASSET_REQUEST = 'app/v2Containers/PushMessage/Edit/UPLOAD_ASSET_REQUEST';
22
+ export const UPLOAD_ASSET_SUCCESS = 'app/v2Containers/PushMessage/Edit/UPLOAD_ASSET_SUCCESS';
23
+ export const UPLOAD_ASSET_FAILURE = 'app/v2Containers/PushMessage/Edit/UPLOAD_ASSET_FAILURE';
24
+ export const CLEAR_DATA = 'app/v2Containers/PushMessage/Edit/CLEAR_DATA';
25
+ export const CLEAR_ASSET = 'app/v2Containers/PushMessage/Edit/CLEAR_ASSET';
26
+ export const SET_SELECTED_TEMPLATE = 'app/v2Containers/PushMessage/Edit/SET_SELECTED_TEMPLATE';
27
27
 
28
- export const SET_WECHAT_ACCOUNT = "app/containers/MobilePush/SET_WECHAT_ACCOUNT";
29
- export const GET_WECRM_ACCOUNTS_REQUEST = "app/containers/MobilePush/GET_WECRM_ACCOUNTS_REQUEST";
30
- export const GET_WECRM_ACCOUNTS_SUCCESS = "app/containers/MobilePush/GET_WECRM_ACCOUNTS_SUCCESS";
31
- export const GET_WECRM_ACCOUNTS_FAILURE = "app/containers/MobilePush/GET_WECRM_ACCOUNTS_FAILURE";
28
+ export const SET_WECHAT_ACCOUNT = "app/v2Containers/MobilePush/SET_WECHAT_ACCOUNT";
29
+ export const GET_WECRM_ACCOUNTS_REQUEST = "app/v2Containers/MobilePush/GET_WECRM_ACCOUNTS_REQUEST";
30
+ export const GET_WECRM_ACCOUNTS_SUCCESS = "app/v2Containers/MobilePush/GET_WECRM_ACCOUNTS_SUCCESS";
31
+ export const GET_WECRM_ACCOUNTS_FAILURE = "app/v2Containers/MobilePush/GET_WECRM_ACCOUNTS_FAILURE";
32
32
 
33
- export const GET_MOBILEPUSH_TEMPLATES_LIST_REQUEST = 'app/containers/WeChat/GET_MOBILEPUSH_TEMPLATES_LIST_REQUEST';
34
- export const GET_MOBILEPUSH_TEMPLATES_LIST_SUCCESS = 'app/containers/WeChat/GET_MOBILEPUSH_TEMPLATES_LIST_SUCCESS';
35
- export const GET_MOBILEPUSH_TEMPLATES_LIST_FAILURE = 'app/containers/WeChat/GET_MOBILEPUSH_TEMPLATES_LIST_FAILURE';
33
+ export const GET_MOBILEPUSH_TEMPLATES_LIST_REQUEST = 'app/v2Containers/WeChat/GET_MOBILEPUSH_TEMPLATES_LIST_REQUEST';
34
+ export const GET_MOBILEPUSH_TEMPLATES_LIST_SUCCESS = 'app/v2Containers/WeChat/GET_MOBILEPUSH_TEMPLATES_LIST_SUCCESS';
35
+ export const GET_MOBILEPUSH_TEMPLATES_LIST_FAILURE = 'app/v2Containers/WeChat/GET_MOBILEPUSH_TEMPLATES_LIST_FAILURE';
@@ -60,7 +60,13 @@ export class MobilepushWrapper extends React.Component { // eslint-disable-line
60
60
  this.props.onMobilepushModeChange( e.target.value );
61
61
  };
62
62
  onTemplateNameChange = (ev) => {
63
+ const {onEnterTemplateName, onRemoveTemplateName} = this.props;
63
64
  this.setState({templateName: ev.target.value});
65
+ if (ev.target.value && onEnterTemplateName) {
66
+ onEnterTemplateName();
67
+ } else if (onRemoveTemplateName) {
68
+ onRemoveTemplateName();
69
+ }
64
70
  }
65
71
  render() {
66
72
  const {mobilePushCreateMode, step, getFormData, setIsLoadingContent, isGetFormData, query, isFullMode, showTemplateName, type} = this.props;
@@ -121,6 +127,8 @@ MobilepushWrapper.propTypes = {
121
127
  step: PropTypes.string,
122
128
  getFormData: PropTypes.string,
123
129
  setIsLoadingContent: PropTypes.func,
130
+ onEnterTemplateName: PropTypes.func,
131
+ onRemoveTemplateName: PropTypes.func,
124
132
  isGetFormData: PropTypes.bool,
125
133
  query: PropTypes.object,
126
134
  isFullMode: PropTypes.bool,
@@ -7,10 +7,10 @@
7
7
  export const DEFAULT_ACTION = 'app/Create/DEFAULT_ACTION';
8
8
 
9
9
 
10
- export const CREATE_TEMPLATE_REQUEST = 'app/containers/Sms/Create/CREATE_TEMPLATE_REQUEST';
11
- export const CREATE_TEMPLATE_SUCCESS = 'app/containers/Sms/Create/CREATE_TEMPLATE_SUCCESS';
12
- export const CREATE_TEMPLATE_FAILURE = 'app/containers/Sms/Create/CREATE_TEMPLATE_FAILURE';
10
+ export const CREATE_TEMPLATE_REQUEST = 'app/v2Containers/Sms/Create/CREATE_TEMPLATE_REQUEST';
11
+ export const CREATE_TEMPLATE_SUCCESS = 'app/v2Containers/Sms/Create/CREATE_TEMPLATE_SUCCESS';
12
+ export const CREATE_TEMPLATE_FAILURE = 'app/v2Containers/Sms/Create/CREATE_TEMPLATE_FAILURE';
13
13
 
14
- export const CLEAR_CREATE_RESPONSE_REQUEST = 'app/containers/Sms/Create/CLEAR_CREATE_RESPONSE_REQUEST';
15
- export const CLEAR_CREATE_RESPONSE_SUCCESS = 'app/containers/Sms/Create/CLEAR_CREATE_RESPONSE_SUCCESS';
16
- export const CLEAR_CREATE_RESPONSE_FAILURE = 'app/containers/Sms/Create/CLEAR_CREATE_RESPONSE_FAILURE';
14
+ export const CLEAR_CREATE_RESPONSE_REQUEST = 'app/v2Containers/Sms/Create/CLEAR_CREATE_RESPONSE_REQUEST';
15
+ export const CLEAR_CREATE_RESPONSE_SUCCESS = 'app/v2Containers/Sms/Create/CLEAR_CREATE_RESPONSE_SUCCESS';
16
+ export const CLEAR_CREATE_RESPONSE_FAILURE = 'app/v2Containers/Sms/Create/CLEAR_CREATE_RESPONSE_FAILURE';
@@ -22,11 +22,11 @@ import * as actions from './actions';
22
22
  import messages from './messages';
23
23
  import * as charCount from '../../../utils/smsCharCount';
24
24
  import {checkUnicode, updateCharCount} from '../../../utils/smsCharCountV2';
25
- import * as globalActions from '../../../containers/Cap/actions';
25
+ import * as globalActions from '../../Cap/actions';
26
26
  import {getMessageObject} from '../../../utils/messageUtils';
27
27
  import * as creativesContainerActions from '../../CreativesContainer/actions';
28
28
  // import callNativeEvent from '../../../utils/callNativeEvent';
29
-
29
+ import {showError} from '../commonMethods';
30
30
  export class Create extends React.Component { // eslint-disable-line react/prefer-stateless-function
31
31
  constructor(props) {
32
32
  super(props);
@@ -87,6 +87,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
87
87
  this.componentRefs = {
88
88
  'sms-count': this.smsCount,
89
89
  };
90
+ this.showError = showError.bind(this);
90
91
  }
91
92
 
92
93
  componentWillMount() {
@@ -318,8 +319,8 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
318
319
  return map[id][event];
319
320
  }
320
321
 
321
- setFormValidity(isFormValid) {
322
- this.setState({isFormValid});
322
+ setFormValidity(isFormValid, errorData) {
323
+ this.setState({isFormValid, errorData});
323
324
  }
324
325
 
325
326
  injectMessages(elem) {
@@ -921,7 +922,7 @@ export class Create extends React.Component { // eslint-disable-line react/prefe
921
922
  this.setState({startValidation: false});
922
923
  }
923
924
  startValidation = () => {
924
- this.setState({startValidation: true});
925
+ this.setState({startValidation: true}, this.showError);
925
926
  }
926
927
  render() {
927
928
  console.log("this.props sms create: ", this.props);
@@ -82,4 +82,12 @@ export default defineMessages({
82
82
  id: 'app.containers.Create.somethingWentWrong',
83
83
  defaultMessage: "Something Went Wrong!!",
84
84
  },
85
+ "invalidTags": {
86
+ id: 'app.containers.Create.invalidTags',
87
+ defaultMessage: 'Invalid tags',
88
+ },
89
+ "validationError": {
90
+ id: 'app.containers.Create.validationError',
91
+ defaultMessage: 'Validation error',
92
+ },
85
93
  });
@@ -6,13 +6,13 @@
6
6
 
7
7
  export const DEFAULT_ACTION = 'app/Edit/DEFAULT_ACTION';
8
8
 
9
- export const GET_TEMPLATE_DETAILS_REQUEST = 'app/containers/Sms/Edit/GET_TEMPLATE_DETAILS_REQUEST';
10
- export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/containers/Sms/Edit/GET_TEMPLATE_DETAILS_SUCCESS';
11
- export const GET_TEMPLATE_DETAILS_FAILURE = 'app/containers/Sms/Edit/GET_TEMPLATE_DETAILS_FAILURE';
9
+ export const GET_TEMPLATE_DETAILS_REQUEST = 'app/v2Containers/Sms/Edit/GET_TEMPLATE_DETAILS_REQUEST';
10
+ export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/v2Containers/Sms/Edit/GET_TEMPLATE_DETAILS_SUCCESS';
11
+ export const GET_TEMPLATE_DETAILS_FAILURE = 'app/v2Containers/Sms/Edit/GET_TEMPLATE_DETAILS_FAILURE';
12
12
 
13
- export const EDIT_TEMPLATE_REQUEST = 'app/containers/Sms/Edit/EDIT_TEMPLATE_REQUEST';
14
- export const EDIT_TEMPLATE_SUCCESS = 'app/containers/Sms/Edit/EDIT_TEMPLATE_SUCCESS';
15
- export const EDIT_TEMPLATE_FAILURE = 'app/containers/Sms/Edit/EDIT_TEMPLATE_FAILURE';
13
+ export const EDIT_TEMPLATE_REQUEST = 'app/v2Containers/Sms/Edit/EDIT_TEMPLATE_REQUEST';
14
+ export const EDIT_TEMPLATE_SUCCESS = 'app/v2Containers/Sms/Edit/EDIT_TEMPLATE_SUCCESS';
15
+ export const EDIT_TEMPLATE_FAILURE = 'app/v2Containers/Sms/Edit/EDIT_TEMPLATE_FAILURE';
16
16
 
17
- export const CLEAR_EDIT_RESPONSE_REQUEST = 'app/containers/Sms/Create/CLEAR_EDIT_RESPONSE_REQUEST';
18
- export const RESET_EDIT_TEMPLATE = 'app/containers/Sms/Create/RESET_EDIT_TEMPLATE';
17
+ export const CLEAR_EDIT_RESPONSE_REQUEST = 'app/v2Containers/Sms/Create/CLEAR_EDIT_RESPONSE_REQUEST';
18
+ export const RESET_EDIT_TEMPLATE = 'app/v2Containers/Sms/Create/RESET_EDIT_TEMPLATE';
@@ -22,11 +22,11 @@ import * as actions from './actions';
22
22
  import {checkUnicode, updateCharCount} from '../../../utils/smsCharCountV2';
23
23
  import '../Create/_smsCreate.scss';
24
24
  import messages from './messages';
25
- import * as globalActions from '../../../containers/Cap/actions';
25
+ import * as globalActions from '../../Cap/actions';
26
26
  import {getMessageObject} from '../../../utils/messageUtils';
27
27
  import * as creativesContainerActions from '../../CreativesContainer/actions';
28
28
  // import callNativeEvent from '../../../utils/callNativeEvent';
29
-
29
+ import {showError} from '../commonMethods';
30
30
  export class Edit extends React.Component { // eslint-disable-line react/prefer-stateless-function
31
31
  constructor(props) {
32
32
  super(props);
@@ -83,7 +83,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
83
83
  this.showNext = this.showNext.bind(this);
84
84
  this.injectMessages = this.injectMessages.bind(this);
85
85
  this.smsCount = React.createRef();
86
-
86
+ this.showError = showError.bind(this);
87
87
  this.componentRefs = {
88
88
  'sms-count': this.smsCount,
89
89
  };
@@ -291,8 +291,8 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
291
291
  });
292
292
  }
293
293
 
294
- setFormValidity(isFormValid) {
295
- this.setState({isFormValid});
294
+ setFormValidity(isFormValid, errorData) {
295
+ this.setState({isFormValid, errorData});
296
296
  }
297
297
 
298
298
  getFormData(e, value) {
@@ -322,7 +322,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
322
322
  validity: this.state.isFormValid,
323
323
  type: 'SMS',
324
324
  };
325
- this.setState({checkValidation: true});
325
+ this.setState({checkValidation: true}, this.showError);
326
326
 
327
327
  if (e) {
328
328
  e.source.postMessage(JSON.stringify(response), e.origin);
@@ -0,0 +1,18 @@
1
+ import isEmpty from 'lodash/isEmpty';
2
+ import { CapNotification } from '@capillarytech/cap-ui-library';
3
+ import messages from './Create/messages';
4
+ export function showError() {
5
+ const {intl} = this.props;
6
+ const {errorData} = this.state;
7
+ const errorMessage = {key: 'validation-error', message: intl.formatMessage(messages.validationError)};
8
+ if (!isEmpty(this.state.formData) && !this.state.isFormValid) {
9
+ const isSmsInvalid = Object.values(errorData[0]).includes(true);
10
+ if (isSmsInvalid) {
11
+ const invalidTags = errorData[0]['invalid-tags'];
12
+ if (!isEmpty(invalidTags)) {
13
+ errorMessage.description = `${intl.formatMessage(messages.invalidTags)}: ${invalidTags.join(',')} `;
14
+ }
15
+ CapNotification.error(errorMessage);
16
+ }
17
+ }
18
+ }
@@ -15,7 +15,7 @@ import { bindActionCreators } from 'redux';
15
15
  import makeSelectTagList from './selectors';
16
16
  import { UserIsAuthenticated } from '../../utils/authWrapper';
17
17
  import * as actions from './actions';
18
- import * as globalActions from '../../containers/Cap/actions';
18
+ import * as globalActions from '../Cap/actions';
19
19
  // import styled from styled-components;
20
20
  import CapTagList from '../../v2Components/CapTagList';
21
21
  import './_tagList.scss';
@@ -2,7 +2,7 @@
2
2
 
3
3
  // Individual exports for testing
4
4
  export function* defaultSaga() {
5
- // See example in containers/HomePage/sagas.js
5
+ // See example in v2Containers/HomePage/sagas.js
6
6
  }
7
7
 
8
8
  // All sagas to be loaded
@@ -6,40 +6,40 @@
6
6
 
7
7
  export const DEFAULT_ACTION = 'app/Templates/DEFAULT_ACTION';
8
8
 
9
- export const GET_ALL_TEMPLATES_REQUEST = 'app/containers/Templates/GET_ALL_TEMPLATES_REQUEST';
10
- export const GET_ALL_TEMPLATES_SUCCESS = 'app/containers/Templates/GET_ALL_TEMPLATES_SUCCESS';
11
- export const GET_ALL_TEMPLATES_FAILURE = 'app/containers/Templates/GET_ALL_TEMPLATES_FAILURE';
12
-
13
- export const DELETE_TEMPLATE_REQUEST = 'app/containers/Templates/DELETE_TEMPLATE_REQUEST';
14
- export const DELETE_TEMPLATE_SUCCESS = 'app/containers/Templates/DELETE_TEMPLATE_SUCCESS';
15
- export const DELETE_TEMPLATE_FAILURE = 'app/containers/Templates/DELETE_TEMPLATE_FAILURE';
16
-
17
- export const GET_USER_LIST_REQUEST = "app/containers/GET_USER_LIST_REQUEST";
18
- export const GET_USER_LIST_SUCCESS = "app/containers/GET_USER_LIST_SUCCESS";
19
- export const GET_USER_LIST_FAILURE = "app/containers/GET_USER_LIST_FAILURE";
20
-
21
- export const GET_WECRM_ACCOUNTS_REQUEST = "app/containers/Templates/GET_WECRM_ACCOUNTS_REQUEST";
22
- export const GET_WECRM_ACCOUNTS_SUCCESS = "app/containers/Templates/GET_WECRM_ACCOUNTS_SUCCESS";
23
- export const GET_WECRM_ACCOUNTS_FAILURE = "app/containers/Templates/GET_WECRM_ACCOUNTS_FAILURE";
24
- export const SET_WECHAT_ACCOUNT = "app/containers/Templates/SET_WECHAT_ACCOUNT";
25
-
26
- export const SET_SELECTED_LAYOUT = "app/containers/Templates/SET_SELECTED_LAYOUT";
27
- export const SEND_ZIPPED_FILE_REQUEST = "app/containers/Templates/SEND_ZIPPED_FILE_REQUEST";
28
- export const SEND_ZIPPED_FILE_SUCCESS = "app/containers/Templates/SEND_ZIPPED_FILE_SUCCESS";
29
- export const SEND_ZIPPED_FILE_FAILURE = "app/containers/Templates/SEND_ZIPPED_FILE_FAILURE";
30
-
31
- export const GET_EDM_DEAFULT_TEMPLATES_REQUEST = 'app/containers/Templates/GET_EDM_DEAFULT_TEMPLATES_REQUEST';
32
- export const GET_EDM_DEAFULT_TEMPLATES_SUCCESS = 'app/containers/Templates/GET_EDM_DEAFULT_TEMPLATES_SUCCESS';
33
- export const GET_EDM_DEAFULT_TEMPLATES_FAILURE = 'app/containers/Templates/GET_EDM_DEAFULT_TEMPLATES_FAILURE';
34
-
35
- export const GET_TEMPLATE_DETAILS_REQUEST = 'app/containers/Templates/GET_TEMPLATE_DETAILS_REQUEST';
36
- export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/containers/Templates/GET_TEMPLATE_DETAILS_SUCCESS';
37
- export const GET_TEMPLATE_DETAILS_FAILURE = 'app/containers/Templates/GET_TEMPLATE_DETAILS_FAILURE';
38
-
39
-
40
- export const SET_EDM_TEMPLATE = "app/containers/Templates/SET_EDM_TEMPLATE";
41
- export const RESET_ACCOUNT = "app/containers/Templates/RESET_ACCOUNT";
42
- export const RESET_TEMPLATE = "app/containers/Templates/RESET_TEMPLATE";
43
- export const RESET_TEMPLATE_DATA = "app/containers/Templates/RESET_TEMPLATE_DATA";
44
- export const RESET_UPLOAD_DATA = "app/containers/Templates/RESET_UPLOAD_DATA";
45
- export const CLEAR_TEMPLATE_STORE_DATA = "app/containers/Templates/CLEAR_TEMPLATE_STORE_DATA";
9
+ export const GET_ALL_TEMPLATES_REQUEST = 'app/v2Containers/Templates/GET_ALL_TEMPLATES_REQUEST';
10
+ export const GET_ALL_TEMPLATES_SUCCESS = 'app/v2Containers/Templates/GET_ALL_TEMPLATES_SUCCESS';
11
+ export const GET_ALL_TEMPLATES_FAILURE = 'app/v2Containers/Templates/GET_ALL_TEMPLATES_FAILURE';
12
+
13
+ export const DELETE_TEMPLATE_REQUEST = 'app/v2Containers/Templates/DELETE_TEMPLATE_REQUEST';
14
+ export const DELETE_TEMPLATE_SUCCESS = 'app/v2Containers/Templates/DELETE_TEMPLATE_SUCCESS';
15
+ export const DELETE_TEMPLATE_FAILURE = 'app/v2Containers/Templates/DELETE_TEMPLATE_FAILURE';
16
+
17
+ export const GET_USER_LIST_REQUEST = "app/v2Containers/GET_USER_LIST_REQUEST";
18
+ export const GET_USER_LIST_SUCCESS = "app/v2Containers/GET_USER_LIST_SUCCESS";
19
+ export const GET_USER_LIST_FAILURE = "app/v2Containers/GET_USER_LIST_FAILURE";
20
+
21
+ export const GET_WECRM_ACCOUNTS_REQUEST = "app/v2Containers/Templates/GET_WECRM_ACCOUNTS_REQUEST";
22
+ export const GET_WECRM_ACCOUNTS_SUCCESS = "app/v2Containers/Templates/GET_WECRM_ACCOUNTS_SUCCESS";
23
+ export const GET_WECRM_ACCOUNTS_FAILURE = "app/v2Containers/Templates/GET_WECRM_ACCOUNTS_FAILURE";
24
+ export const SET_WECHAT_ACCOUNT = "app/v2Containers/Templates/SET_WECHAT_ACCOUNT";
25
+
26
+ export const SET_SELECTED_LAYOUT = "app/v2Containers/Templates/SET_SELECTED_LAYOUT";
27
+ export const SEND_ZIPPED_FILE_REQUEST = "app/v2Containers/Templates/SEND_ZIPPED_FILE_REQUEST";
28
+ export const SEND_ZIPPED_FILE_SUCCESS = "app/v2Containers/Templates/SEND_ZIPPED_FILE_SUCCESS";
29
+ export const SEND_ZIPPED_FILE_FAILURE = "app/v2Containers/Templates/SEND_ZIPPED_FILE_FAILURE";
30
+
31
+ export const GET_EDM_DEAFULT_TEMPLATES_REQUEST = 'app/v2Containers/Templates/GET_EDM_DEAFULT_TEMPLATES_REQUEST';
32
+ export const GET_EDM_DEAFULT_TEMPLATES_SUCCESS = 'app/v2Containers/Templates/GET_EDM_DEAFULT_TEMPLATES_SUCCESS';
33
+ export const GET_EDM_DEAFULT_TEMPLATES_FAILURE = 'app/v2Containers/Templates/GET_EDM_DEAFULT_TEMPLATES_FAILURE';
34
+
35
+ export const GET_TEMPLATE_DETAILS_REQUEST = 'app/v2Containers/Templates/GET_TEMPLATE_DETAILS_REQUEST';
36
+ export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/v2Containers/Templates/GET_TEMPLATE_DETAILS_SUCCESS';
37
+ export const GET_TEMPLATE_DETAILS_FAILURE = 'app/v2Containers/Templates/GET_TEMPLATE_DETAILS_FAILURE';
38
+
39
+
40
+ export const SET_EDM_TEMPLATE = "app/v2Containers/Templates/SET_EDM_TEMPLATE";
41
+ export const RESET_ACCOUNT = "app/v2Containers/Templates/RESET_ACCOUNT";
42
+ export const RESET_TEMPLATE = "app/v2Containers/Templates/RESET_TEMPLATE";
43
+ export const RESET_TEMPLATE_DATA = "app/v2Containers/Templates/RESET_TEMPLATE_DATA";
44
+ export const RESET_UPLOAD_DATA = "app/v2Containers/Templates/RESET_UPLOAD_DATA";
45
+ export const CLEAR_TEMPLATE_STORE_DATA = "app/v2Containers/Templates/CLEAR_TEMPLATE_STORE_DATA";
@@ -521,7 +521,12 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
521
521
  if (currentChannel === "SMS") {
522
522
  templateData.content = template.versions.base['sms-editor'];
523
523
  } else if (currentChannel === "EMAIL") {
524
- templateData.url = template.versions.base.preview_http_url;
524
+ const url = template.versions.base.preview_http_url;
525
+ if (url) {
526
+ templateData.url = url;
527
+ } else {
528
+ templateData.content = template.versions.base.subject;
529
+ }
525
530
  } else if (currentChannel === "MOBILEPUSH" && template.type === "MOBILEPUSH") {
526
531
  templateData.content = template;
527
532
  }
@@ -4,4 +4,4 @@
4
4
  *
5
5
  */
6
6
 
7
- export const DEFAULT_ACTION = 'app/containers/TestPage/DEFAULT_ACTION';
7
+ export const DEFAULT_ACTION = 'app/v2Containers/TestPage/DEFAULT_ACTION';
@@ -2,7 +2,7 @@
2
2
 
3
3
  // Individual exports for testing
4
4
  export function* defaultSaga() {
5
- // See example in containers/HomePage/sagas.js
5
+ // See example in v2Containers/HomePage/sagas.js
6
6
  }
7
7
 
8
8
  // All sagas to be loaded
@@ -2,7 +2,7 @@
2
2
 
3
3
  // Individual exports for testing
4
4
  export function* defaultSaga() {
5
- // See example in containers/HomePage/sagas.js
5
+ // See example in v2Containers/HomePage/sagas.js
6
6
  }
7
7
 
8
8
  // All sagas to be loaded
@@ -4,25 +4,25 @@
4
4
  *
5
5
  */
6
6
 
7
- export const GET_WECHAT_DEFAULT_TEMPLATES_REQUEST = 'app/containers/WeChat/GET_WECHAT_DEFAULT_TEMPLATES_REQUEST';
8
- export const GET_WECHAT_DEFAULT_TEMPLATES_SUCCESS = 'app/containers/WeChat/GET_WECHAT_DEFAULT_TEMPLATES_SUCCESS';
9
- export const GET_WECHAT_DEFAULT_TEMPLATES_FAILURE = 'app/containers/WeChat/GET_WECHAT_DEFAULT_TEMPLATES_FAILURE';
7
+ export const GET_WECHAT_DEFAULT_TEMPLATES_REQUEST = 'app/v2Containers/WeChat/GET_WECHAT_DEFAULT_TEMPLATES_REQUEST';
8
+ export const GET_WECHAT_DEFAULT_TEMPLATES_SUCCESS = 'app/v2Containers/WeChat/GET_WECHAT_DEFAULT_TEMPLATES_SUCCESS';
9
+ export const GET_WECHAT_DEFAULT_TEMPLATES_FAILURE = 'app/v2Containers/WeChat/GET_WECHAT_DEFAULT_TEMPLATES_FAILURE';
10
10
 
11
- export const CREATE_TEMPLATE_REQUEST = 'app/containers/WeChat/CREATE_TEMPLATE_REQUEST';
12
- export const CREATE_TEMPLATE_SUCCESS = 'app/containers/WeChat/CREATE_TEMPLATE_SUCCESS';
13
- export const CREATE_TEMPLATE_FAILURE = 'app/containers/WeChat/CREATE_TEMPLATE_FAILURE';
11
+ export const CREATE_TEMPLATE_REQUEST = 'app/v2Containers/WeChat/CREATE_TEMPLATE_REQUEST';
12
+ export const CREATE_TEMPLATE_SUCCESS = 'app/v2Containers/WeChat/CREATE_TEMPLATE_SUCCESS';
13
+ export const CREATE_TEMPLATE_FAILURE = 'app/v2Containers/WeChat/CREATE_TEMPLATE_FAILURE';
14
14
 
15
- export const CLEAR_CREATE_RESPONSE_REQUEST = 'app/containers/WeChat/CLEAR_CREATE_RESPONSE_REQUEST';
16
- export const CLEAR_CREATE_RESPONSE_SUCCESS = 'app/containers/WeChat/CLEAR_CREATE_RESPONSE_SUCCESS';
17
- export const CLEAR_CREATE_RESPONSE_FAILURE = 'app/containers/WeChat/CLEAR_CREATE_RESPONSE_FAILURE';
15
+ export const CLEAR_CREATE_RESPONSE_REQUEST = 'app/v2Containers/WeChat/CLEAR_CREATE_RESPONSE_REQUEST';
16
+ export const CLEAR_CREATE_RESPONSE_SUCCESS = 'app/v2Containers/WeChat/CLEAR_CREATE_RESPONSE_SUCCESS';
17
+ export const CLEAR_CREATE_RESPONSE_FAILURE = 'app/v2Containers/WeChat/CLEAR_CREATE_RESPONSE_FAILURE';
18
18
 
19
- export const GET_WECRM_ACCOUNTS_REQUEST = "app/containers/WeChat/GET_WECRM_ACCOUNTS_REQUEST";
20
- export const GET_WECRM_ACCOUNTS_SUCCESS = "app/containers/WeChat/GET_WECRM_ACCOUNTS_SUCCESS";
21
- export const GET_WECRM_ACCOUNTS_FAILURE = "app/containers/WeChat/GET_WECRM_ACCOUNTS_FAILURE";
19
+ export const GET_WECRM_ACCOUNTS_REQUEST = "app/v2Containers/WeChat/GET_WECRM_ACCOUNTS_REQUEST";
20
+ export const GET_WECRM_ACCOUNTS_SUCCESS = "app/v2Containers/WeChat/GET_WECRM_ACCOUNTS_SUCCESS";
21
+ export const GET_WECRM_ACCOUNTS_FAILURE = "app/v2Containers/WeChat/GET_WECRM_ACCOUNTS_FAILURE";
22
22
 
23
- export const GET_TEMPLATE_DETAILS_REQUEST = 'app/containers/WeChat/GET_TEMPLATE_DETAILS_REQUEST';
24
- export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/containers/WeChat/GET_TEMPLATE_DETAILS_SUCCESS';
25
- export const GET_TEMPLATE_DETAILS_FAILURE = 'app/containers/WeChat/GET_TEMPLATE_DETAILS_FAILURE';
23
+ export const GET_TEMPLATE_DETAILS_REQUEST = 'app/v2Containers/WeChat/GET_TEMPLATE_DETAILS_REQUEST';
24
+ export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/v2Containers/WeChat/GET_TEMPLATE_DETAILS_SUCCESS';
25
+ export const GET_TEMPLATE_DETAILS_FAILURE = 'app/v2Containers/WeChat/GET_TEMPLATE_DETAILS_FAILURE';
26
26
 
27
27
 
28
- export const SET_WECHAT_ACCOUNT = "app/containers/WeChat/SET_WECHAT_ACCOUNT";
28
+ export const SET_WECHAT_ACCOUNT = "app/v2Containers/WeChat/SET_WECHAT_ACCOUNT";
@@ -21,7 +21,7 @@ import messages from './messages';
21
21
  import * as actions from './actions';
22
22
  import FormBuilder from '../../../v2Components/FormBuilder';
23
23
  import { UserIsAuthenticated } from '../../../utils/authWrapper';
24
- import * as globalActions from '../../../containers/Cap/actions';
24
+ import * as globalActions from '../../Cap/actions';
25
25
  import {getMessageObject} from '../../../utils/messageUtils';
26
26
  import * as templateActions from '../../Templates/actions';
27
27
  // import SlideBox from '../../v2Components/SlideBox';
@@ -4,12 +4,12 @@
4
4
  *
5
5
  */
6
6
 
7
- export const DEFAULT_ACTION = 'app/containers/Wechat/RichmediaTemplates/Create/DEFAULT_ACTION';
8
- export const UPLOAD_ASSET_REQUEST = 'app/containers/Wechat/RichmediaTemplates/Create/UPLOAD_ASSET_REQUEST';
9
- export const UPLOAD_ASSET_SUCCESS = 'app/containers/Wechat/RichmediaTemplates/Create/UPLOAD_ASSET_SUCCESS';
10
- export const UPLOAD_ASSET_FAILURE = 'app/containers/Wechat/RichmediaTemplates/Create/UPLOAD_ASSET_FAILURE';
11
- export const CLEAR_ASSET = 'app/containers/Wechat/RichmediaTemplates/Create/CLEAR_ASSET';
12
- export const SAVE_TEMPLATE_REQUEST = 'app/containers/Wechat/RichmediaTemplates/Create/SAVE_TEMPLATE_REQUEST';
13
- export const SAVE_TEMPLATE_SUCCESS = 'app/containers/Wechat/RichmediaTemplates/Create/SAVE_TEMPLATE_SUCCESS';
14
- export const SAVE_TEMPLATE_FAILURE = 'app/containers/Wechat/RichmediaTemplates/Create/SAVE_TEMPLATE_FAILURE';
15
- export const CLEAR_CONTENT_ASSET = 'app/containers/Wechat/RichmediaTemplates/Create/CLEAR_CONTENT_ASSET';
7
+ export const DEFAULT_ACTION = 'app/v2Containers/Wechat/RichmediaTemplates/Create/DEFAULT_ACTION';
8
+ export const UPLOAD_ASSET_REQUEST = 'app/v2Containers/Wechat/RichmediaTemplates/Create/UPLOAD_ASSET_REQUEST';
9
+ export const UPLOAD_ASSET_SUCCESS = 'app/v2Containers/Wechat/RichmediaTemplates/Create/UPLOAD_ASSET_SUCCESS';
10
+ export const UPLOAD_ASSET_FAILURE = 'app/v2Containers/Wechat/RichmediaTemplates/Create/UPLOAD_ASSET_FAILURE';
11
+ export const CLEAR_ASSET = 'app/v2Containers/Wechat/RichmediaTemplates/Create/CLEAR_ASSET';
12
+ export const SAVE_TEMPLATE_REQUEST = 'app/v2Containers/Wechat/RichmediaTemplates/Create/SAVE_TEMPLATE_REQUEST';
13
+ export const SAVE_TEMPLATE_SUCCESS = 'app/v2Containers/Wechat/RichmediaTemplates/Create/SAVE_TEMPLATE_SUCCESS';
14
+ export const SAVE_TEMPLATE_FAILURE = 'app/v2Containers/Wechat/RichmediaTemplates/Create/SAVE_TEMPLATE_FAILURE';
15
+ export const CLEAR_CONTENT_ASSET = 'app/v2Containers/Wechat/RichmediaTemplates/Create/CLEAR_CONTENT_ASSET';
@@ -20,8 +20,8 @@ import * as actions from './actions';
20
20
  import richmediaschema from './richmediaschema';
21
21
  import './_createRichmedia.scss';
22
22
  import messages from './messages';
23
- import * as globalActions from '../../../../containers/Cap/actions';
24
- import {getMessageObject} from '../../../../../utils/messageUtils';
23
+ import * as globalActions from '../../../Cap/actions';
24
+ import {getMessageObject} from '../../../../utils/messageUtils';
25
25
  import FormBuilder from '../../../../v2Components/FormBuilder';
26
26
  import Header from '../../../../v2Components/Header';
27
27
  import WechatRichmediaTemplatePreview from '../../../../v2Components/TemplatePreview/WechatRichmediaTemplatePreview';
@@ -5,7 +5,7 @@ import * as types from './constants';
5
5
  // import testschema from './testschema';
6
6
  // Individual exports for testing
7
7
  export function* defaultSaga() {
8
- // See example in containers/HomePage/sagas.js
8
+ // See example in v2Containers/HomePage/sagas.js
9
9
  }
10
10
  export function* uploadAsset({file, assetType, fileParams, mode, wechatParams, contentId, uploadId}) {
11
11
  try {
@@ -5,6 +5,6 @@
5
5
  */
6
6
 
7
7
  export const DEFAULT_ACTION = 'app/Edit/DEFAULT_ACTION';
8
- export const GET_TEMPLATE_DETAILS_REQUEST = 'app/containers/WeChat/RichmediaTemplates/Edit/GET_TEMPLATE_DETAILS_REQUEST';
9
- export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/containers/WeChat/RichmediaTemplates/Edit/GET_TEMPLATE_DETAILS_SUCCESS';
10
- export const GET_TEMPLATE_DETAILS_FAILURE = 'app/containers/WeChat/RichmediaTemplates/Edit/GET_TEMPLATE_DETAILS_FAILURE';
8
+ export const GET_TEMPLATE_DETAILS_REQUEST = 'app/v2Containers/WeChat/RichmediaTemplates/Edit/GET_TEMPLATE_DETAILS_REQUEST';
9
+ export const GET_TEMPLATE_DETAILS_SUCCESS = 'app/v2Containers/WeChat/RichmediaTemplates/Edit/GET_TEMPLATE_DETAILS_SUCCESS';
10
+ export const GET_TEMPLATE_DETAILS_FAILURE = 'app/v2Containers/WeChat/RichmediaTemplates/Edit/GET_TEMPLATE_DETAILS_FAILURE';