@capillarytech/creatives-library 2.0.66 → 2.0.68

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 (42) hide show
  1. package/components/Ckeditor/index.js +30 -3
  2. package/components/FormBuilder/index.js +50 -27
  3. package/components/FormBuilder/test +1845 -0
  4. package/components/Header/index.js +7 -4
  5. package/components/Header/messages.js +12 -0
  6. package/components/TemplatePreview/WechatRichmediaTemplatePreview/_wechatRichmediaTemplatePrev.scss +42 -0
  7. package/components/TemplatePreview/WechatRichmediaTemplatePreview/index.js +104 -0
  8. package/components/TemplatePreview/WechatRichmediaTemplatePreview/messages.js +21 -0
  9. package/components/TemplatePreview/WechatRichmediaTemplatePreview/tests/index.test.js +10 -0
  10. package/containers/Cap/actions.js +6 -0
  11. package/containers/Cap/constants.js +2 -0
  12. package/containers/Cap/reducer.js +4 -2
  13. package/containers/Cap/selectors.js +13 -0
  14. package/containers/CreativesContainer/SlideBoxContent.js +2 -1
  15. package/containers/Ebill/index.js +4 -21
  16. package/containers/Email/index.js +9 -24
  17. package/containers/Line/Create/index.js +5 -17
  18. package/containers/Line/Edit/index.js +5 -25
  19. package/containers/MobilePush/Create/index.js +5 -22
  20. package/containers/MobilePush/Create/selectors.js +1 -1
  21. package/containers/MobilePush/Edit/index.js +9 -30
  22. package/containers/MobilePush/Edit/selectors.js +2 -2
  23. package/containers/MobilepushWrapper/index.js +3 -2
  24. package/containers/Sms/Create/index.js +17 -31
  25. package/containers/Sms/Edit/index.js +6 -20
  26. package/containers/Templates/index.js +60 -67
  27. package/containers/Templates/reducer.js +3 -3
  28. package/containers/WeChat/MapTemplates/index.js +6 -22
  29. package/containers/WeChat/RichmediaTemplates/Create/_createRichmedia.scss +46 -2
  30. package/containers/WeChat/RichmediaTemplates/Create/actions.js +4 -3
  31. package/containers/WeChat/RichmediaTemplates/Create/constants.js +1 -0
  32. package/containers/WeChat/RichmediaTemplates/Create/index.js +525 -165
  33. package/containers/WeChat/RichmediaTemplates/Create/messages.js +125 -1
  34. package/containers/WeChat/RichmediaTemplates/Create/reducer.js +15 -4
  35. package/containers/WeChat/RichmediaTemplates/Create/richmediaschema.js +497 -0
  36. package/containers/WeChat/RichmediaTemplates/Create/sagas.js +7 -3
  37. package/containers/WeChat/RichmediaTemplates/Create/selectors.js +5 -0
  38. package/containers/WeChat/RichmediaTemplates/Edit/index.js +24 -8
  39. package/containers/WeChat/RichmediaTemplates/Edit/selectors.js +6 -1
  40. package/initialState.js +1 -0
  41. package/package.json +2 -2
  42. package/routes.js +22 -4
@@ -1,5 +1,41 @@
1
- .hovered {
2
- opacity: 0.2;
1
+ .hover-container {
2
+ position: relative;
3
+ }
4
+ .richmedia-icons {
5
+ display: none;
6
+ position: absolute;
7
+ top: 50%;
8
+ }
9
+ .hover-container:hover {
10
+ .richmedia-card {
11
+ opacity: 0.2;
12
+ border: 2px solid #1D5B96!important;
13
+ }
14
+ .richmedia-card-rectangle {
15
+ opacity: 0.2;
16
+ border: 2px solid #1D5B96!important;
17
+ }
18
+ .richmedia-icons {
19
+ opacity: 1 !important;
20
+ display: inline-flex!important;
21
+ }
22
+
23
+ }
24
+ .richmedia-card-clicked {
25
+ border: 2px solid #1D5B96!important;
26
+ }
27
+ .richmedia-card-rectangle-clicked {
28
+ border: 2px solid #1D5B96!important;
29
+ }
30
+ .hover-container .richmedia-card, .hover-container .richmedia-card-rectangle {
31
+ border: 1px solid #707070;
32
+ }
33
+ .hover-icons {
34
+ font-size: 20px;
35
+ }
36
+ .richmedia-container {
37
+ height: 100%;
38
+ overflow-y: auto;
3
39
  }
4
40
  .template-form-header {
5
41
  margin-bottom: 2.5rem;
@@ -10,4 +46,12 @@
10
46
  .wechat-richmedia-row {
11
47
  margin-bottom: 1.5rem;
12
48
  width: 50rem;
49
+ }
50
+ .overflow-wrap-fields {
51
+ text-overflow: ellipsis;
52
+ overflow: hidden;
53
+ overflow-wrap: break-word;
54
+ display: -webkit-box !important;
55
+ -webkit-box-orient: vertical;
56
+ -webkit-line-clamp: 2;
13
57
  }
@@ -10,7 +10,7 @@ export function defaultAction() {
10
10
  type: types.DEFAULT_ACTION,
11
11
  };
12
12
  }
13
- export function uploadAsset(file, assetType, fileParams, mode, wechatParams, contentId) {
13
+ export function uploadAsset(file, assetType, fileParams, mode, wechatParams, contentId, uploadId) {
14
14
  return {
15
15
  type: types.UPLOAD_ASSET_REQUEST,
16
16
  file,
@@ -19,6 +19,7 @@ export function uploadAsset(file, assetType, fileParams, mode, wechatParams, con
19
19
  mode,
20
20
  wechatParams,
21
21
  contentId,
22
+ uploadId,
22
23
  };
23
24
  }
24
25
  export function saveTemplate(template) {
@@ -27,9 +28,9 @@ export function saveTemplate(template) {
27
28
  template,
28
29
  };
29
30
  }
30
- export function clearAsset() {
31
+ export function clearContentImageStore() {
31
32
  return {
32
- type: types.CLEAR_ASSET,
33
+ type: types.CLEAR_CONTENT_ASSET,
33
34
  };
34
35
  }
35
36
 
@@ -12,3 +12,4 @@ export const CLEAR_ASSET = 'app/containers/Wechat/RichmediaTemplates/Create/CLEA
12
12
  export const SAVE_TEMPLATE_REQUEST = 'app/containers/Wechat/RichmediaTemplates/Create/SAVE_TEMPLATE_REQUEST';
13
13
  export const SAVE_TEMPLATE_SUCCESS = 'app/containers/Wechat/RichmediaTemplates/Create/SAVE_TEMPLATE_SUCCESS';
14
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';