@capillarytech/creatives-library 6.10.6 → 6.11.1

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 (52) hide show
  1. package/components/FormBuilder/index.js +3 -3
  2. package/containers/Email/index.js +1 -1
  3. package/containers/Templates/index.js +5 -5
  4. package/index.js +7 -0
  5. package/package.json +1 -1
  6. package/v2Components/EmailPreview/_emailPreview.scss +0 -3
  7. package/v2Components/FormBuilder/index.js +1 -1
  8. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/_wechatRichmediaTemplatePrev.scss +151 -151
  9. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/messages.js +33 -33
  10. package/v2Components/TemplatePreview/WechatRichmediaTemplatePreview/tests/index.test.js +10 -10
  11. package/v2Components/TemplatePreview/assets/images/androidPushMessage.svg +44 -44
  12. package/v2Components/TemplatePreview/assets/images/home-screen-android.svg +21 -21
  13. package/v2Components/TemplatePreview/assets/images/home-screen-ios.svg +16 -16
  14. package/v2Components/TemplatePreview/assets/images/iPhonePushMessage.svg +134 -134
  15. package/v2Components/TemplatePreview/assets/images/mobile.svg +23 -23
  16. package/v2Components/TemplatePreview/assets/images/sms_mobile_android.svg +22 -22
  17. package/v2Components/TemplatePreview/assets/images/user-icon.svg +18 -18
  18. package/v2Components/TemplatePreview/assets/images/wechat-home-screen-android.svg +21 -21
  19. package/v2Components/TemplatePreview/assets/images/wechat-mobile.svg +77 -77
  20. package/v2Components/TemplatePreview/assets/images/wechat_mobile_android.svg +20 -20
  21. package/v2Components/TemplatePreview/tests/index.test.js +10 -10
  22. package/v2Containers/BeeEditor/index.scss +1 -1
  23. package/v2Containers/CreativesContainer/actions.js +27 -27
  24. package/v2Containers/CreativesContainer/constants.js +17 -17
  25. package/v2Containers/CreativesContainer/index.js +4 -6
  26. package/v2Containers/CreativesContainer/index.scss +44 -44
  27. package/v2Containers/CreativesContainer/messages.js +305 -305
  28. package/v2Containers/CreativesContainer/reducer.js +29 -29
  29. package/v2Containers/CreativesContainer/sagas.js +11 -11
  30. package/v2Containers/CreativesContainer/selectors.js +30 -30
  31. package/v2Containers/CreativesContainer/tests/actions.test.js +18 -18
  32. package/v2Containers/CreativesContainer/tests/index.test.js +10 -10
  33. package/v2Containers/CreativesContainer/tests/reducer.test.js +9 -9
  34. package/v2Containers/CreativesContainer/tests/sagas.test.js +15 -15
  35. package/v2Containers/CreativesContainer/tests/selectors.test.js +10 -10
  36. package/v2Containers/Email/index.js +1 -3
  37. package/v2Containers/Templates/index.js +5 -5
  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/messages.js +61 -61
  47. package/v2Containers/TemplatesV2/selectors.js +25 -25
  48. package/v2Containers/TemplatesV2/tests/actions.test.js +18 -18
  49. package/v2Containers/TemplatesV2/tests/index.test.js +10 -10
  50. package/v2Containers/TemplatesV2/tests/reducer.test.js +9 -9
  51. package/v2Containers/TemplatesV2/tests/sagas.test.js +15 -15
  52. package/v2Containers/TemplatesV2/tests/selectors.test.js +10 -10
@@ -2912,7 +2912,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
2912
2912
  langIndex = parseInt(val.id.replace('template-content', ''), 10) - 1;
2913
2913
  }
2914
2914
 
2915
- const currentLang = (!_.isEmpty(this.state.formData) && !_.isEmpty(this.state.formData[`${this.state.currentTab - 1}`]) && !_.isEmpty(this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages) && this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages[langIndex]) ? this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages[langIndex] : this.props.baseLanguage;
2915
+ const currentLang = ((!_.isEmpty(this.state.formData) && !_.isEmpty(this.state.formData[`${this.state.currentTab - 1}`]) && !_.isEmpty(this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages) && this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages[langIndex]) ? this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages[langIndex] : this.props.baseLanguage) || 'en';
2916
2916
  const content = (!_.isEmpty(this.state.formData) && this.state.formData[`${this.state.currentTab - 1}`][currentLang]['template-content'] ? this.state.formData[`${this.state.currentTab - 1}`][currentLang]['template-content'] : '');
2917
2917
 
2918
2918
  if (this.state.formData[`${this.state.currentTab - 1}`][currentLang].is_drag_drop) {
@@ -2942,14 +2942,14 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
2942
2942
  langTab = val.id.charAt(9);
2943
2943
  }
2944
2944
  }
2945
- const supportedLanguages = this.state.formData[this.state.currentTab - 1].selectedLanguages;
2945
+ const supportedLanguages = (this.state.formData[this.state.currentTab - 1] || {}).selectedLanguages;
2946
2946
  // let langIndex = 0;
2947
2947
  // if (val.id.indexOf('edmeditor') > -1 && val.id !== 'edmeditorsrc') {
2948
2948
  // const test = val.id.replace('src', '');
2949
2949
  // langIndex = parseInt(test.replace('edmeditor', ''), 10) - 1;
2950
2950
  // }
2951
2951
  // const currentLang = (!_.isEmpty(this.state.formData) && !_.isEmpty(this.state.formData[`${this.state.currentTab - 1}`]) && !_.isEmpty(this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages) && this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages[langIndex]) ? this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages[langIndex] : this.props.baseLanguage;
2952
- const currentLang = supportedLanguages[langTab - 1];
2952
+ const currentLang = supportedLanguages && supportedLanguages[langTab - 1];
2953
2953
  const edmSrc = this.state.formData[`${this.state.currentTab - 1}`][currentLang] && this.state.formData[`${this.state.currentTab - 1}`][currentLang][`edmeditor${this.state.currentTab > 1 ? this.state.currentTab : ''}src`];
2954
2954
 
2955
2955
 
@@ -871,7 +871,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
871
871
  const schema = _.cloneDeep(this.state.schema);
872
872
  const langIndex = formData[this.state.currentTab - 1].selectedLanguages.indexOf(langId);
873
873
  console.log('edm trying to set data', langIndex, langId, formData[this.state.currentTab - 1].activeTab, apiLangId);
874
- const temp = schema.containers[this.state.currentTab - 1];
874
+ const temp = (schema.containers || {})[this.state.currentTab - 1];
875
875
  if (baseLanguage === langId && (apiLangId === "undefined" || apiLangId === formData[this.state.currentTab - 1].activeTab)) {
876
876
  temp.tabBarExtraContent.sections[0].inputFields[0].cols[4].content.sections[0].inputFields[2].cols[0].style = {display: "none"};
877
877
  } else if (apiLangId === "undefined" || apiLangId === formData[this.state.currentTab - 1].activeTab) {
@@ -191,8 +191,8 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
191
191
  this.setState({ channel }, () => {
192
192
  if (this.state.channel.toLowerCase() === 'line' || this.state.channel.toLowerCase() === 'sms' || this.state.channel.toLowerCase() === 'email' || this.state.channel.toLowerCase() === 'ebill' || (this.state.channel.toLowerCase() === 'wechat' && !_.isEmpty(nextProps.Templates.selectedWeChatAccount))) {
193
193
  if (this.state.channel.toLowerCase() === 'wechat' && !_.isEmpty(nextProps.Templates.selectedWeChatAccount)) {
194
- params.wecrmId = nextProps.Templates.selectedWeChatAccount.configs.wecrm_app_id;
195
- params.wecrmToken = nextProps.Templates.selectedWeChatAccount.configs.wecrm_token;
194
+ params.wecrmId = (nextProps.Templates.selectedWeChatAccount.configs || {}).wecrm_app_id;
195
+ params.wecrmToken = (nextProps.Templates.selectedWeChatAccount.configs || {}).wecrm_token;
196
196
  params.originalId = nextProps.Templates.selectedWeChatAccount.sourceAccountIdentifier;
197
197
  }
198
198
  if (this.state.channel.toLowerCase() === "mobilepush" && !_.isEmpty(nextProps.Templates.selectedWeChatAccount)) {
@@ -203,8 +203,8 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
203
203
  });
204
204
  }
205
205
  if (this.state.channel.toLowerCase() === 'wechat' && nextProps.Templates.selectedWeChatAccount) {
206
- params.wecrmId = nextProps.Templates.selectedWeChatAccount.configs.wecrm_app_id;
207
- params.wecrmToken = nextProps.Templates.selectedWeChatAccount.configs.wecrm_token;
206
+ params.wecrmId = (nextProps.Templates.selectedWeChatAccount.configs || {}).wecrm_app_id;
207
+ params.wecrmToken = (nextProps.Templates.selectedWeChatAccount.configs || {}).wecrm_token;
208
208
  params.originalId = nextProps.Templates.selectedWeChatAccount.sourceAccountIdentifier;
209
209
  }
210
210
  if (this.state.channel.toLowerCase() === "mobilepush" && nextProps.Templates.selectedWeChatAccount) {
@@ -1536,7 +1536,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
1536
1536
  if (this.state.channel.toLowerCase() === 'ebill') {
1537
1537
  htmlPreviewContent = this.state.previewTemplate && this.state.previewTemplate.versions && this.state.previewTemplate.versions.base && this.state.previewTemplate.versions.base['ebill-editor'];
1538
1538
  } else if (this.state.channel.toLowerCase() === 'email') {
1539
- htmlPreviewContent = this.state.previewTemplate && this.state.previewTemplate.versions && this.state.previewTemplate.versions.base && this.state.previewTemplate.versions.base[this.props.Global.currentOrgDetails.basic_details.base_language ? this.props.Global.currentOrgDetails.basic_details.base_language : 'en']['template-content'];
1539
+ htmlPreviewContent = this.state.previewTemplate && this.state.previewTemplate.versions && this.state.previewTemplate.versions.base && (this.state.previewTemplate.versions.base[this.props.Global.currentOrgDetails.basic_details.base_language ? this.props.Global.currentOrgDetails.basic_details.base_language : 'en'] || {})['template-content'];
1540
1540
  }
1541
1541
 
1542
1542
  const templateList = this.populateTemplatesList(this.props.TemplatesList, true);
package/index.js CHANGED
@@ -23,6 +23,11 @@ import Email from './v2Containers/Email/index';
23
23
  import emailReducer from './v2Containers/Email/reducer';
24
24
  import emailSaga from './v2Containers/Email/sagas';
25
25
 
26
+ import BeeEditor from './v2Containers/BeeEditor/index';
27
+ import beeReducer from './v2Containers/BeeEditor/reducer';
28
+ import beeSaga from './v2Containers/BeeEditor/sagas';
29
+
30
+
26
31
  import CallTask from './v2Containers/CallTask/index';
27
32
  import callTaskReducer from './v2Containers/CallTask/reducer';
28
33
  import callTaskSaga from './v2Containers/CallTask/sagas';
@@ -80,6 +85,7 @@ const TemplatesContainer = {Templates, templateReducer, templateSaga};
80
85
  const SmsCreateContainer = {SmsCreate, smsCreateReducer, smsCreateSaga};
81
86
  const SmsEditContainer = {SmsEdit, smsEditReducer, smsEditSaga};
82
87
  const EmailContainer = {Email, emailReducer, emailSaga};
88
+ const BeeContainer ={ BeeEditor,beeReducer,beeSaga}
83
89
  const CallTaskContainer = {CallTask, callTaskReducer, callTaskSaga};
84
90
  const WeChatMapTemplateContainer = {WeChatMapTemplate, weChatMapTemplateReducer, weChatMapTemplateSaga};
85
91
  const WeChatRichMediaCreateContainer = {WeChatRichMediaCreate, weChatRichMediaCreateReducer, weChatRichMediaCreateSaga};
@@ -111,6 +117,7 @@ export { CapContainer,
111
117
  SmsCreateContainer,
112
118
  SmsEditContainer,
113
119
  EmailContainer,
120
+ BeeContainer,
114
121
  CallTaskContainer,
115
122
  WeChatMapTemplateContainer,
116
123
  WeChatRichMediaCreateContainer,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "6.10.6",
4
+ "version": "6.11.1",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -1,9 +1,6 @@
1
1
  .modal-emailPreivew-wrapper {
2
2
  width: 100vw;
3
3
  height: 100vh;
4
- position: fixed;
5
- top: 0;
6
- left: 0;
7
4
  background: rgba(0,0,0,0.56);
8
5
  z-index: 10002;
9
6
 
@@ -3178,7 +3178,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
3178
3178
  langIndex = parseInt(val.id.replace('template-content', ''), 10) - 1;
3179
3179
  }
3180
3180
  console.log('CKEditor Data 2', this.state.formData, this.state.formData[`${this.state.currentTab - 1}`], val, this.state.currentTab, this.state.currentLangTab, langIndex);
3181
- const currentLang = (!_.isEmpty(this.state.formData) && !_.isEmpty(this.state.formData[`${this.state.currentTab - 1}`]) && !_.isEmpty(this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages) && this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages[langIndex]) ? this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages[langIndex] : this.props.baseLanguage;
3181
+ const currentLang = ((!_.isEmpty(this.state.formData) && !_.isEmpty(this.state.formData[`${this.state.currentTab - 1}`]) && !_.isEmpty(this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages) && this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages[langIndex]) ? this.state.formData[`${this.state.currentTab - 1}`].selectedLanguages[langIndex] : this.props.baseLanguage) || 'en';
3182
3182
  const content = (!_.isEmpty(this.state.formData) && this.state.formData[`${this.state.currentTab - 1}`][currentLang]['template-content'] ? this.state.formData[`${this.state.currentTab - 1}`][currentLang]['template-content'] : '');
3183
3183
  console.log('ckeditor current lang', currentLang, content);
3184
3184
  if (this.state.formData[`${this.state.currentTab - 1}`][currentLang].is_drag_drop) {
@@ -1,152 +1,152 @@
1
- @import '~@capillarytech/cap-ui-library/styles/_variables.scss';
2
-
3
- .shell-lock-screen-android .main-screen-preview .wechatMsgContainer{
4
- position: absolute;
5
- left: 53.5%;
6
- top:28%;
7
- background: white;
8
- width: 19.5%;
9
- text-align: left;
10
- height: fit-content;
11
- border-radius: 0.285rem;
12
- }
13
-
14
- .shell-lock-screen-android .lock-screen-preview{
15
- .wechat-android-sender-id{
16
- position: absolute;
17
- top: 46%;
18
- font-size: 10px;
19
- left: 28%;
20
- }
21
- .wechat-android-title{
22
- position: absolute;
23
- top: 49%;
24
- font-size: 10px;
25
- left: 28%;
26
- color: #5e6c84;
27
- }
28
- .wechat-android-action-buttons{
29
- position: absolute;
30
- left: 28%;
31
- top: 53%;
32
- font-size: 10px;
33
- color: #3861ca;
34
- font-weight: 500;
35
- }
36
- .wechat-ios-sender-id{
37
- position: absolute;
38
- top: 44%;
39
- font-size: 10px;
40
- left: 28.5%;
41
- }
42
- .wechat-ios-title{
43
- position: absolute;
44
- top: 47%;
45
- font-size: 10px;
46
- left: 28.5%;
47
- color: #5e6c84;
48
- }
49
- .wechat-ios-action-reply{
50
- position: absolute;
51
- left: 35%;
52
- top: 59%;
53
- font-size: 12px;
54
- color: #3861ca;
55
- font-weight: 500;
56
- }
57
- .wechat-ios-action-cancel{
58
- position: absolute;
59
- left: 34.5%;
60
- top: 66%;
61
- font-size: 12px;
62
- color: #3861ca;
63
- font-weight: 500;
64
- }
65
- }
66
-
67
- .wechatMsgContainer{
68
- position: absolute;
69
- left: 30%;
70
- top: 20%;
71
- background: white;
72
- width: 40%;
73
- text-align: left;
74
- height: fit-content;
75
- border-radius: $CAP_SPACE_04;
76
- .richmedia-template {
77
- .richmedia-image-container {
78
- width: 100%;
79
- height: 102px;
80
- position: relative;
81
- img {
82
- border-top-left-radius: 4px;
83
- border-top-right-radius: 4px;
84
- }
85
- }
86
- .name-container-with-abstract {
87
- padding: $CAP_SPACE_12;
88
- height: 68px;
89
- }
90
- .name-container {
91
- position: absolute;
92
- bottom: 0px;
93
- height: 44px;
94
- padding-top: 16px;
95
- padding-left: 12px;
96
- color: $CAP_WHITE;
97
- opacity: 0.7;
98
- width: 100%;
99
- background-image: linear-gradient(to top,black 0% ,transparent 100%);
100
- }
101
- .additional-richmedia-container {
102
- display: flex;
103
- justify-content: space-between;
104
- margin: 8px;
105
- padding-bottom: 8px;
106
- img {
107
- border-radius: 4px;
108
- }
109
- }
110
- .additional-richmedia-container:not(:last-child) {
111
- border-bottom: 1px solid #dfe2e7;
112
- }
113
- div {
114
- text-overflow: ellipsis;
115
- overflow: hidden;
116
- white-space: nowrap;
117
- }
118
- }
119
- }
120
- .wechatMsgContainerOutbound{
121
- position: absolute;
122
- left: 35%;
123
- top: 20%;
124
- background: white;
125
- width: 30%;
126
- text-align: left;
127
- }
128
- .wechatMsgContainerCardLayout {
129
- position: absolute;
130
- left: 20%;
131
- top: 20%;
132
- background: white;
133
- width: 60%;
134
- text-align: left;
135
- }
136
- .overflow-handle-preview {
137
- overflow-y: auto;
138
- }
139
- .overflow-handle-preview-outbound {
140
- height: 330px;
141
- overflow-y: auto;
142
- }
143
- .preview-overflow-wrap-fields {
144
- text-overflow: ellipsis;
145
- overflow: hidden;
146
- overflow-wrap: break-word;
147
- display: -webkit-box !important;
148
- -webkit-box-orient: vertical;
149
- -webkit-line-clamp: 2;
150
- text-align: left;
151
- width: 200px;
1
+ @import '~@capillarytech/cap-ui-library/styles/_variables.scss';
2
+
3
+ .shell-lock-screen-android .main-screen-preview .wechatMsgContainer{
4
+ position: absolute;
5
+ left: 53.5%;
6
+ top:28%;
7
+ background: white;
8
+ width: 19.5%;
9
+ text-align: left;
10
+ height: fit-content;
11
+ border-radius: 0.285rem;
12
+ }
13
+
14
+ .shell-lock-screen-android .lock-screen-preview{
15
+ .wechat-android-sender-id{
16
+ position: absolute;
17
+ top: 46%;
18
+ font-size: 10px;
19
+ left: 28%;
20
+ }
21
+ .wechat-android-title{
22
+ position: absolute;
23
+ top: 49%;
24
+ font-size: 10px;
25
+ left: 28%;
26
+ color: #5e6c84;
27
+ }
28
+ .wechat-android-action-buttons{
29
+ position: absolute;
30
+ left: 28%;
31
+ top: 53%;
32
+ font-size: 10px;
33
+ color: #3861ca;
34
+ font-weight: 500;
35
+ }
36
+ .wechat-ios-sender-id{
37
+ position: absolute;
38
+ top: 44%;
39
+ font-size: 10px;
40
+ left: 28.5%;
41
+ }
42
+ .wechat-ios-title{
43
+ position: absolute;
44
+ top: 47%;
45
+ font-size: 10px;
46
+ left: 28.5%;
47
+ color: #5e6c84;
48
+ }
49
+ .wechat-ios-action-reply{
50
+ position: absolute;
51
+ left: 35%;
52
+ top: 59%;
53
+ font-size: 12px;
54
+ color: #3861ca;
55
+ font-weight: 500;
56
+ }
57
+ .wechat-ios-action-cancel{
58
+ position: absolute;
59
+ left: 34.5%;
60
+ top: 66%;
61
+ font-size: 12px;
62
+ color: #3861ca;
63
+ font-weight: 500;
64
+ }
65
+ }
66
+
67
+ .wechatMsgContainer{
68
+ position: absolute;
69
+ left: 30%;
70
+ top: 20%;
71
+ background: white;
72
+ width: 40%;
73
+ text-align: left;
74
+ height: fit-content;
75
+ border-radius: $CAP_SPACE_04;
76
+ .richmedia-template {
77
+ .richmedia-image-container {
78
+ width: 100%;
79
+ height: 102px;
80
+ position: relative;
81
+ img {
82
+ border-top-left-radius: 4px;
83
+ border-top-right-radius: 4px;
84
+ }
85
+ }
86
+ .name-container-with-abstract {
87
+ padding: $CAP_SPACE_12;
88
+ height: 68px;
89
+ }
90
+ .name-container {
91
+ position: absolute;
92
+ bottom: 0px;
93
+ height: 44px;
94
+ padding-top: 16px;
95
+ padding-left: 12px;
96
+ color: $CAP_WHITE;
97
+ opacity: 0.7;
98
+ width: 100%;
99
+ background-image: linear-gradient(to top,black 0% ,transparent 100%);
100
+ }
101
+ .additional-richmedia-container {
102
+ display: flex;
103
+ justify-content: space-between;
104
+ margin: 8px;
105
+ padding-bottom: 8px;
106
+ img {
107
+ border-radius: 4px;
108
+ }
109
+ }
110
+ .additional-richmedia-container:not(:last-child) {
111
+ border-bottom: 1px solid #dfe2e7;
112
+ }
113
+ div {
114
+ text-overflow: ellipsis;
115
+ overflow: hidden;
116
+ white-space: nowrap;
117
+ }
118
+ }
119
+ }
120
+ .wechatMsgContainerOutbound{
121
+ position: absolute;
122
+ left: 35%;
123
+ top: 20%;
124
+ background: white;
125
+ width: 30%;
126
+ text-align: left;
127
+ }
128
+ .wechatMsgContainerCardLayout {
129
+ position: absolute;
130
+ left: 20%;
131
+ top: 20%;
132
+ background: white;
133
+ width: 60%;
134
+ text-align: left;
135
+ }
136
+ .overflow-handle-preview {
137
+ overflow-y: auto;
138
+ }
139
+ .overflow-handle-preview-outbound {
140
+ height: 330px;
141
+ overflow-y: auto;
142
+ }
143
+ .preview-overflow-wrap-fields {
144
+ text-overflow: ellipsis;
145
+ overflow: hidden;
146
+ overflow-wrap: break-word;
147
+ display: -webkit-box !important;
148
+ -webkit-box-orient: vertical;
149
+ -webkit-line-clamp: 2;
150
+ text-align: left;
151
+ width: 200px;
152
152
  }
@@ -1,33 +1,33 @@
1
- /*
2
- * WechatRichmediaTemplatePreview Messages
3
- *
4
- * This contains all the text for the WechatRichmediaTemplatePreview component.
5
- */
6
- import { defineMessages } from 'react-intl';
7
-
8
- export default defineMessages({
9
- header: {
10
- id: 'creatives.components.WechatRichmediaTemplatePreview.header',
11
- defaultMessage: 'This is the WechatRichmediaTemplatePreview component !',
12
- },
13
- select: {
14
- id: 'creatives.components.WechatRichmediaTemplatePreview.select',
15
- defaultMessage: 'Select',
16
- },
17
- edit: {
18
- id: 'creatives.components.WechatRichmediaTemplatePreview.edit',
19
- defaultMessage: 'Edit',
20
- },
21
- MarkAsRead: {
22
- id: 'creatives.components.WechatRichmediaTemplatePreview.MarkAsRead',
23
- defaultMessage: 'Mark as read',
24
- },
25
- reply: {
26
- id: 'creatives.components.WechatRichmediaTemplatePreview.reply',
27
- defaultMessage: 'Reply',
28
- },
29
- cancel: {
30
- id: 'creatives.components.WechatRichmediaTemplatePreview.cancel',
31
- defaultMessage: 'Cancel',
32
- },
33
- });
1
+ /*
2
+ * WechatRichmediaTemplatePreview Messages
3
+ *
4
+ * This contains all the text for the WechatRichmediaTemplatePreview component.
5
+ */
6
+ import { defineMessages } from 'react-intl';
7
+
8
+ export default defineMessages({
9
+ header: {
10
+ id: 'creatives.components.WechatRichmediaTemplatePreview.header',
11
+ defaultMessage: 'This is the WechatRichmediaTemplatePreview component !',
12
+ },
13
+ select: {
14
+ id: 'creatives.components.WechatRichmediaTemplatePreview.select',
15
+ defaultMessage: 'Select',
16
+ },
17
+ edit: {
18
+ id: 'creatives.components.WechatRichmediaTemplatePreview.edit',
19
+ defaultMessage: 'Edit',
20
+ },
21
+ MarkAsRead: {
22
+ id: 'creatives.components.WechatRichmediaTemplatePreview.MarkAsRead',
23
+ defaultMessage: 'Mark as read',
24
+ },
25
+ reply: {
26
+ id: 'creatives.components.WechatRichmediaTemplatePreview.reply',
27
+ defaultMessage: 'Reply',
28
+ },
29
+ cancel: {
30
+ id: 'creatives.components.WechatRichmediaTemplatePreview.cancel',
31
+ defaultMessage: 'Cancel',
32
+ },
33
+ });
@@ -1,10 +1,10 @@
1
- // import React from 'react';
2
- // import { shallow } from 'enzyme';
3
-
4
- // import WechatRichmediaTemplatePreview from '../index';
5
-
6
- describe('<WechatRichmediaTemplatePreview />', () => {
7
- it('Expect to have unit tests specified', () => {
8
- expect(true).toEqual(false);
9
- });
10
- });
1
+ // import React from 'react';
2
+ // import { shallow } from 'enzyme';
3
+
4
+ // import WechatRichmediaTemplatePreview from '../index';
5
+
6
+ describe('<WechatRichmediaTemplatePreview />', () => {
7
+ it('Expect to have unit tests specified', () => {
8
+ expect(true).toEqual(false);
9
+ });
10
+ });