@capillarytech/creatives-library 6.15.2 → 6.16.0

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 (80) hide show
  1. package/app.js +1 -1
  2. package/package.json +1 -1
  3. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/_wechatRichmediaTemplatePrev.scss +151 -151
  4. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/messages.js +33 -33
  5. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/tests/index.test.js +10 -10
  6. package/v2Components/TemplatePreview/assets/images/androidPushMessage.svg +44 -44
  7. package/v2Components/TemplatePreview/assets/images/home-screen-android.svg +21 -21
  8. package/v2Components/TemplatePreview/assets/images/home-screen-ios.svg +16 -16
  9. package/v2Components/TemplatePreview/assets/images/iPhonePushMessage.svg +134 -134
  10. package/v2Components/TemplatePreview/assets/images/mobile.svg +23 -23
  11. package/v2Components/TemplatePreview/assets/images/sms_mobile_android.svg +22 -22
  12. package/v2Components/TemplatePreview/assets/images/user-icon.svg +18 -18
  13. package/v2Components/TemplatePreview/assets/images/wechat-home-screen-android.svg +21 -21
  14. package/v2Components/TemplatePreview/assets/images/wechat-mobile.svg +77 -77
  15. package/v2Components/TemplatePreview/assets/images/wechat_mobile_android.svg +20 -20
  16. package/v2Components/TemplatePreview/tests/index.test.js +10 -10
  17. package/v2Containers/CreativesContainer/actions.js +27 -27
  18. package/v2Containers/CreativesContainer/index.scss +44 -44
  19. package/v2Containers/CreativesContainer/messages.js +305 -305
  20. package/v2Containers/CreativesContainer/reducer.js +29 -29
  21. package/v2Containers/CreativesContainer/sagas.js +11 -11
  22. package/v2Containers/CreativesContainer/selectors.js +30 -30
  23. package/v2Containers/CreativesContainer/tests/actions.test.js +18 -18
  24. package/v2Containers/CreativesContainer/tests/index.test.js +10 -10
  25. package/v2Containers/CreativesContainer/tests/reducer.test.js +9 -9
  26. package/v2Containers/CreativesContainer/tests/sagas.test.js +15 -15
  27. package/v2Containers/CreativesContainer/tests/selectors.test.js +10 -10
  28. package/v2Containers/Email/index.js +1 -1
  29. package/v2Containers/FTP/_FTP.scss +103 -0
  30. package/v2Containers/FTP/actions.js +7 -0
  31. package/v2Containers/FTP/constants.js +3 -0
  32. package/v2Containers/FTP/index.js +509 -0
  33. package/v2Containers/FTP/messages.js +60 -0
  34. package/v2Containers/FTP/reducer.js +32 -0
  35. package/v2Containers/FTP/sagas.js +26 -0
  36. package/v2Containers/FTP/selectors.js +20 -0
  37. package/v2Containers/FTP/temp.js +11838 -0
  38. package/v2Containers/Templates/tests/actions.test.js +18 -18
  39. package/v2Containers/Templates/tests/index.test.js +10 -10
  40. package/v2Containers/Templates/tests/reducer.test.js +9 -9
  41. package/v2Containers/Templates/tests/sagas.test.js +15 -15
  42. package/v2Containers/Templates/tests/selectors.test.js +10 -10
  43. package/v2Containers/TemplatesV2/TemplatesV2.style.js +29 -29
  44. package/v2Containers/TemplatesV2/actions.js +16 -16
  45. package/v2Containers/TemplatesV2/constants.js +10 -10
  46. package/v2Containers/TemplatesV2/selectors.js +25 -25
  47. package/v2Containers/TemplatesV2/tests/actions.test.js +18 -18
  48. package/v2Containers/TemplatesV2/tests/index.test.js +10 -10
  49. package/v2Containers/TemplatesV2/tests/reducer.test.js +9 -9
  50. package/v2Containers/TemplatesV2/tests/sagas.test.js +15 -15
  51. package/v2Containers/TemplatesV2/tests/selectors.test.js +10 -10
  52. package/v2Components/BeeEditor/index.js +0 -263
  53. package/v2Components/BeeEditor/index.scss +0 -11
  54. package/v2Components/BeeEditor/messages.js +0 -71
  55. package/v2Components/BeeEditor/tests/index.test.js +0 -10
  56. package/v2Containers/Line/Create/_lineCreate.scss +0 -64
  57. package/v2Containers/Line/Create/actions.js +0 -94
  58. package/v2Containers/Line/Create/constants.js +0 -43
  59. package/v2Containers/Line/Create/index.js +0 -1132
  60. package/v2Containers/Line/Create/initialSchema.js +0 -378
  61. package/v2Containers/Line/Create/messages.js +0 -229
  62. package/v2Containers/Line/Create/reducer.js +0 -99
  63. package/v2Containers/Line/Create/sagas.js +0 -113
  64. package/v2Containers/Line/Create/selectors.js +0 -30
  65. package/v2Containers/Line/CreateWrapper/constants.js +0 -2
  66. package/v2Containers/Line/CreateWrapper/index.js +0 -117
  67. package/v2Containers/Line/CreateWrapper/messages.js +0 -55
  68. package/v2Containers/Line/Edit/_lineEdit.scss +0 -23
  69. package/v2Containers/Line/Edit/actions.js +0 -79
  70. package/v2Containers/Line/Edit/constants.js +0 -27
  71. package/v2Containers/Line/Edit/index.js +0 -1051
  72. package/v2Containers/Line/Edit/messages.js +0 -173
  73. package/v2Containers/Line/Edit/reducer.js +0 -83
  74. package/v2Containers/Line/Edit/sagas.js +0 -81
  75. package/v2Containers/Line/Edit/selectors.js +0 -29
  76. package/v2Containers/Line/Edit/tests/actions.test.js +0 -18
  77. package/v2Containers/Line/Edit/tests/index.test.js +0 -10
  78. package/v2Containers/Line/Edit/tests/reducer.test.js +0 -9
  79. package/v2Containers/Line/Edit/tests/sagas.test.js +0 -15
  80. package/v2Containers/Line/Edit/tests/selectors.test.js +0 -10
@@ -1,11 +1,11 @@
1
- // import { take, call, put, select } from 'redux-saga/effects';
2
-
3
- // Individual exports for testing
4
- export function* defaultSaga() {
5
- // See example in v2Containers/HomePage/sagas.js
6
- }
7
-
8
- // All sagas to be loaded
9
- export default [
10
- defaultSaga,
11
- ];
1
+ // import { take, call, put, select } from 'redux-saga/effects';
2
+
3
+ // Individual exports for testing
4
+ export function* defaultSaga() {
5
+ // See example in v2Containers/HomePage/sagas.js
6
+ }
7
+
8
+ // All sagas to be loaded
9
+ export default [
10
+ defaultSaga,
11
+ ];
@@ -1,30 +1,30 @@
1
- import { createSelector } from 'reselect';
2
-
3
- /**
4
- * Direct selector to the creativesContainer state domain
5
- */
6
- const selectCreativesContainerDomain = () => (state) => state.get('creativesContainer');
7
-
8
- /**
9
- * Other specific selectors
10
- */
11
-
12
-
13
- /**
14
- * Default selector used by CreativesContainer
15
- */
16
-
17
- const makeSelectCreativesContainer = () => createSelector(
18
- selectCreativesContainerDomain(),
19
- (substate) => substate.toJS()
20
- );
21
- const isLoading = () => createSelector(
22
- makeSelectCreativesContainer(),
23
- (substate) => substate.containerLoader
24
- );
25
-
26
- export default makeSelectCreativesContainer;
27
- export {
28
- selectCreativesContainerDomain,
29
- isLoading,
30
- };
1
+ import { createSelector } from 'reselect';
2
+
3
+ /**
4
+ * Direct selector to the creativesContainer state domain
5
+ */
6
+ const selectCreativesContainerDomain = () => (state) => state.get('creativesContainer');
7
+
8
+ /**
9
+ * Other specific selectors
10
+ */
11
+
12
+
13
+ /**
14
+ * Default selector used by CreativesContainer
15
+ */
16
+
17
+ const makeSelectCreativesContainer = () => createSelector(
18
+ selectCreativesContainerDomain(),
19
+ (substate) => substate.toJS()
20
+ );
21
+ const isLoading = () => createSelector(
22
+ makeSelectCreativesContainer(),
23
+ (substate) => substate.containerLoader
24
+ );
25
+
26
+ export default makeSelectCreativesContainer;
27
+ export {
28
+ selectCreativesContainerDomain,
29
+ isLoading,
30
+ };
@@ -1,18 +1,18 @@
1
-
2
- import {
3
- defaultAction,
4
- } from '../actions';
5
- import {
6
- DEFAULT_ACTION,
7
- } from '../constants';
8
-
9
- describe('CreativesContainer actions', () => {
10
- describe('Default Action', () => {
11
- it('has a type of DEFAULT_ACTION', () => {
12
- const expected = {
13
- type: DEFAULT_ACTION,
14
- };
15
- expect(defaultAction()).toEqual(expected);
16
- });
17
- });
18
- });
1
+
2
+ import {
3
+ defaultAction,
4
+ } from '../actions';
5
+ import {
6
+ DEFAULT_ACTION,
7
+ } from '../constants';
8
+
9
+ describe('CreativesContainer actions', () => {
10
+ describe('Default Action', () => {
11
+ it('has a type of DEFAULT_ACTION', () => {
12
+ const expected = {
13
+ type: DEFAULT_ACTION,
14
+ };
15
+ expect(defaultAction()).toEqual(expected);
16
+ });
17
+ });
18
+ });
@@ -1,10 +1,10 @@
1
- // import React from 'react';
2
- // import { shallow } from 'enzyme';
3
-
4
- // import { CreativesContainer } from '../index';
5
-
6
- describe('<CreativesContainer />', () => {
7
- it('Expect to have unit tests specified', () => {
8
- expect(true).toEqual(true);
9
- });
10
- });
1
+ // import React from 'react';
2
+ // import { shallow } from 'enzyme';
3
+
4
+ // import { CreativesContainer } from '../index';
5
+
6
+ describe('<CreativesContainer />', () => {
7
+ it('Expect to have unit tests specified', () => {
8
+ expect(true).toEqual(true);
9
+ });
10
+ });
@@ -1,9 +1,9 @@
1
-
2
- import { fromJS } from 'immutable';
3
- import creativesContainerReducer from '../reducer';
4
-
5
- describe('creativesContainerReducer', () => {
6
- it('returns the initial state', () => {
7
- expect(creativesContainerReducer(undefined, {})).toEqual(fromJS({}));
8
- });
9
- });
1
+
2
+ import { fromJS } from 'immutable';
3
+ import creativesContainerReducer from '../reducer';
4
+
5
+ describe('creativesContainerReducer', () => {
6
+ it('returns the initial state', () => {
7
+ expect(creativesContainerReducer(undefined, {})).toEqual(fromJS({}));
8
+ });
9
+ });
@@ -1,15 +1,15 @@
1
- /**
2
- * Test sagas
3
- */
4
-
5
- /* eslint-disable redux-saga/yield-effects */
6
- // import { take, call, put, select } from 'redux-saga/effects';
7
- // import { defaultSaga } from '../sagas';
8
-
9
- // const generator = defaultSaga();
10
-
11
- describe('defaultSaga Saga', () => {
12
- it('Expect to have unit tests specified', () => {
13
- expect(true).toEqual(true);
14
- });
15
- });
1
+ /**
2
+ * Test sagas
3
+ */
4
+
5
+ /* eslint-disable redux-saga/yield-effects */
6
+ // import { take, call, put, select } from 'redux-saga/effects';
7
+ // import { defaultSaga } from '../sagas';
8
+
9
+ // const generator = defaultSaga();
10
+
11
+ describe('defaultSaga Saga', () => {
12
+ it('Expect to have unit tests specified', () => {
13
+ expect(true).toEqual(true);
14
+ });
15
+ });
@@ -1,10 +1,10 @@
1
- // import { fromJS } from 'immutable';
2
- // import { makeSelectCreativesContainerDomain } from '../selectors';
3
-
4
- // const selector = makeSelectCreativesContainerDomain();
5
-
6
- describe('makeSelectCreativesContainerDomain', () => {
7
- it('Expect to have unit tests specified', () => {
8
- expect(true).toEqual(true);
9
- });
10
- });
1
+ // import { fromJS } from 'immutable';
2
+ // import { makeSelectCreativesContainerDomain } from '../selectors';
3
+
4
+ // const selector = makeSelectCreativesContainerDomain();
5
+
6
+ describe('makeSelectCreativesContainerDomain', () => {
7
+ it('Expect to have unit tests specified', () => {
8
+ expect(true).toEqual(true);
9
+ });
10
+ });
@@ -217,7 +217,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
217
217
 
218
218
  checkBeeEditorAllowedForLibrary = () => {
219
219
  const { isFullMode = false, editor } = this.props || {};
220
- if (editor === "BEE" && !isFullMode) {
220
+ if ((editor === "BEE" && !isFullMode) || isFullMode) {
221
221
  return true;
222
222
  }
223
223
  return false;
@@ -0,0 +1,103 @@
1
+ @import '~@capillarytech/cap-ui-library/styles/_variables.scss';
2
+
3
+ .selected-server-name{
4
+ display: flex;
5
+ align-items: center;
6
+ margin-top: $CAP_SPACE_16;
7
+ .server-avtar, .server-name, .server-change{
8
+ display: inline-block;
9
+ }
10
+ .server-change{
11
+ margin-left: $CAP_SPACE_24;
12
+ }
13
+ }
14
+ .select-server{
15
+ display: inline-block;
16
+ }
17
+ .configure-csv-container{
18
+ margin-top: $CAP_SPACE_32;
19
+ .configure-csv, .add-column{
20
+ display: inline-block;
21
+ }
22
+ }
23
+ .column-selection-container{
24
+ width: 200px;
25
+ display: inline-block;
26
+ margin: $CAP_SPACE_04;
27
+ }
28
+ .column-selection-container-cid{
29
+ width: 120px;
30
+ display: inline-block;
31
+ }
32
+ .select-csv-column{
33
+ width: 80%;
34
+ border: 1px solid #d9d9d9 !important;
35
+ border-radius: 4px !important;
36
+ display: inline-block;
37
+ }
38
+ .select-csv-col-dropdown ul{
39
+ padding: 0 $CAP_SPACE_04;
40
+ }
41
+ .select-csv-col-dropdown ul li{
42
+ margin: $CAP_SPACE_08 0 !important;
43
+ padding: 0;
44
+ white-space: nowrap;
45
+ list-style: none;
46
+ outline: 0;
47
+ }
48
+ .select-csv-col-dropdown {
49
+ .ant-select-tree-switcher-noop, .ant-select-tree-node-content-wrapper{
50
+ display: inline-block !important;
51
+ margin: 0 !important;
52
+ }
53
+ .ant-select-tree-child-tree-open {
54
+ display: block !important;
55
+ padding: 0 0 0 $CAP_SPACE_16 !important;
56
+ }
57
+ }
58
+ .remove-csv-column{
59
+ display: inline-block;
60
+ margin-left: $CAP_SPACE_08;
61
+ }
62
+ .scrollable-section{
63
+ height: calc(100vh - 220px);
64
+ overflow-y: auto;
65
+ }
66
+ .FTP-tagList {
67
+ position: absolute;
68
+ right: 0;
69
+ top: -10px;
70
+ }
71
+ .ftp-message-container{
72
+ margin-top: $CAP_SPACE_32;
73
+ .message-content-title{
74
+ margin-top: $CAP_SPACE_24;
75
+ position: relative;
76
+ }
77
+ }
78
+
79
+ .ftp-preview-container{
80
+ .ftp-preview-message-title{
81
+ margin-top: $CAP_SPACE_16;
82
+ }
83
+ .ftp-preview-message-content{
84
+ max-width: 450px;
85
+ margin-top: 4px;
86
+ color: $FONT_COLOR_02;
87
+ }
88
+ .ftp-preview-data-title{
89
+ margin-top: $CAP_SPACE_40;
90
+ }
91
+ .ftp-preview-data-col-container{
92
+ margin-top: $CAP_SPACE_16;
93
+ .ant-tag.cap-tag-v2{
94
+ background-color: $CAP_WHITE;
95
+ font-weight: 500;
96
+ }
97
+ }
98
+ }
99
+
100
+ .manage-ftp-setting-div{
101
+ display: flex;
102
+ align-items: baseline;
103
+ }
@@ -0,0 +1,7 @@
1
+ import * as types from './constants';
2
+
3
+ export function getFTPServers() {
4
+ return {
5
+ type: types.GET_FTP_SERVERS_REQUEST,
6
+ };
7
+ }
@@ -0,0 +1,3 @@
1
+ export const GET_FTP_SERVERS_REQUEST = 'app/v2Containers/FTP/GET_FTP_SERVERS_REQUEST';
2
+ export const GET_FTP_SERVERS_SUCCESS = 'app/v2Containers/FTP/GET_FTP_SERVERS_SUCCESS';
3
+ export const GET_FTP_SERVERS_FAILURE = 'app/v2Containers/FTP/GET_FTP_SERVERS_FAILURE';