@capillarytech/creatives-library 8.0.60 → 8.0.61-alpha.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.
@@ -8,14 +8,14 @@
8
8
  .action-text-reply{
9
9
  position: absolute;
10
10
  left: 34%;
11
- top: 59%;
11
+ top: 43% !important;
12
12
  color: #3861ca;
13
13
  font-weight: $FONT_WEIGHT_MEDIUM;
14
14
  }
15
15
  .action-text-cancel{
16
16
  position: absolute;
17
17
  left: 33.5%;
18
- top: 66%;
18
+ top: 48% !important;
19
19
  color: #3861ca;
20
20
  font-weight: $FONT_WEIGHT_MEDIUM;
21
21
  }
@@ -25,7 +25,7 @@
25
25
  }
26
26
  .lock-screen-preview .lock-msgContainer{
27
27
  position: absolute;
28
- top: 40%;
28
+ top: 30% !important;
29
29
  left: 25.9%;
30
30
  width: 21.5%;
31
31
  height: 60px;
@@ -55,7 +55,7 @@
55
55
  }
56
56
  .main-screen-preview .msgContainer{
57
57
  position: absolute;
58
- top: 30%;
58
+ top: 30% !important;
59
59
  left: 53%;
60
60
  width: 42%;
61
61
  height: 336px;
@@ -138,8 +138,8 @@
138
138
  margin: 0 20px 0 auto;
139
139
  .action-text{
140
140
  position: absolute;
141
- left: 27.5%;
142
- top: 54%;
141
+ left: 28.5%;
142
+ top: 39% !important;
143
143
  font-size: $FONT_SIZE_VS;
144
144
  color: #3861ca;
145
145
  font-weight: $FONT_WEIGHT_MEDIUM;
@@ -150,8 +150,8 @@
150
150
  }
151
151
  .lock-screen-preview .lock-msgContainer{
152
152
  position: absolute;
153
- top: 43%;
154
- left: 25.9%;
153
+ top: 32% !important;
154
+ left: 26.9%;
155
155
  width: 21.5%;
156
156
  height: 52px;
157
157
  display: -webkit-box;
@@ -181,7 +181,7 @@
181
181
 
182
182
  .main-screen-preview .msgContainer{
183
183
  position: absolute;
184
- top: 30%;
184
+ top: 30% !important;
185
185
  left: 53%;
186
186
  width: 42%;
187
187
  height: 336px;
@@ -5,6 +5,9 @@ import { injectIntl } from 'react-intl';
5
5
  import * as globalActions from '../v2Containers/Cap/actions';
6
6
  import * as creativesContainerActions from '../v2Containers/CreativesContainer/actions';
7
7
  import { UserIsAuthenticated } from '../utils/authWrapper';
8
+ import { v2ZaloSagas } from '../v2Containers/Zalo/saga';
9
+ import { injectSaga } from '@capillarytech/vulcan-react-sdk/utils';
10
+ import { DAEMON } from '@capillarytech/vulcan-react-sdk/utils/sagaInjectorTypes';
8
11
 
9
12
  /**
10
13
  * Higher Order Component to common out creatives channel logic
@@ -18,6 +21,7 @@ export default ({
18
21
  userAuth,
19
22
  sagas = [],
20
23
  reducers = [],
24
+ zaloSaga = false,
21
25
  }) => {
22
26
  const CreativesCommon = (props) => {
23
27
  useEffect(() => {
@@ -44,7 +48,9 @@ export default ({
44
48
  };
45
49
 
46
50
  const withConnect = connect(mapStateToProps, hocMapDispatchToProps);
51
+ const withZaloSaga = injectSaga({ key: 'zalo', saga: v2ZaloSagas,mode: DAEMON });
47
52
  return compose(
53
+ withZaloSaga,
48
54
  ...sagas,
49
55
  ...reducers,
50
56
  withConnect,
package/index.js CHANGED
@@ -93,7 +93,7 @@ import whatsappSaga from './v2Containers/Whatsapp/sagas';
93
93
 
94
94
  import Zalo from './v2Containers/Zalo';
95
95
  import zaloReducer from './v2Containers/Zalo/reducer';
96
- import zaloSaga from './v2Containers/Zalo/saga';
96
+ import { v2ZaloSagas } from './v2Containers/Zalo/sagas';
97
97
 
98
98
  import InApp from './v2Containers/InApp';
99
99
  import inAppReducer from './v2Containers/InApp/reducer';
@@ -129,7 +129,7 @@ const FacebookPreviewContainer = { FacebookPreview, facebookPreviewReducer, face
129
129
  const SmsTraiContainer = {SmsTraiCreate, SmsTraiCreateReducer, SmsTraiCreateSaga};
130
130
  const WhatsappContainer = { Whatsapp, whatsappReducer, whatsappSaga };
131
131
  const RcsContainer = { Rcs, rcsReducer, rcsSaga };
132
- const ZaloContainer = { Zalo, zaloReducer, zaloSaga };
132
+ const ZaloContainer = { Zalo, zaloReducer, v2ZaloSagas };
133
133
  const InAppContainer = { InApp, inAppReducer, inAppSaga };
134
134
 
135
135
  const GalleryContainer = {Gallery, galleryReducer, gallerySagas};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.60",
4
+ "version": "8.0.61-alpha.0",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -54,6 +54,8 @@ import { v2ViberSagas } from '../Viber/sagas';
54
54
  import { v2FacebookSagas } from '../Facebook/sagas';
55
55
  import createReducer from '../Line/Container/reducer';
56
56
  import { DAEMON } from '@capillarytech/vulcan-react-sdk/utils/sagaInjectorTypes';
57
+ import { v2ZaloSagas } from '../Zalo/saga';
58
+
57
59
  const gtm = window.dataLayer || [];
58
60
  const {
59
61
  logNewTab,
@@ -609,6 +611,7 @@ function mapDispatchToProps(dispatch) {
609
611
  const withConnect = connect(mapStateToProps, mapDispatchToProps);
610
612
  const withReducer = injectReducer({ key: 'cap', reducer });
611
613
  const withZaloReducer = injectReducer({ key: 'zalo', reducer: zaloReducer });
614
+ const withZaloSagas = injectSaga({ key: 'zalo', saga: v2ZaloSagas });
612
615
  const withSaga = injectSaga({ key: 'cap', saga: v2CapSagas });
613
616
  const withLiquidSaga = injectSaga({ key: 'liquid', saga: capSagaLiquidEntity, mode : DAEMON });
614
617
  const withSmsCreateSaga = injectSaga({ key: 'create', saga: v2SmsCreateSagas });
@@ -638,6 +641,7 @@ export default compose(
638
641
  withFacebookSaga,
639
642
  withReducer,
640
643
  withZaloReducer,
644
+ withZaloSagas,
641
645
  withLineReducer,
642
646
  withConnect,
643
647
  )(injectIntl(Cap));
@@ -506,7 +506,8 @@ const mapDispatchToProps = (dispatch) => ({
506
506
 
507
507
 
508
508
  const withReducer = injectReducer({ key: 'zalo', reducer: v2ZaloReducer });
509
- const withZaloSaga = injectSaga({ key: 'zalo', saga: v2ZaloSagas });
509
+ // const withZaloSaga = injectSaga({ key: 'zalo', saga: v2ZaloSagas });
510
+ //
510
511
 
511
512
  export default withCreatives({
512
513
  WrappedComponent: Zalo,
@@ -514,5 +515,6 @@ export default withCreatives({
514
515
  mapDispatchToProps,
515
516
  userAuth: true,
516
517
  reducers: [withReducer],
517
- sagas: [withZaloSaga],
518
+ zaloSaga: true,
519
+ // sagas: [withZaloSaga],
518
520
  });