@capillarytech/creatives-library 8.0.60 → 8.0.61-alpha.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.
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
.action-text-reply{
|
|
9
9
|
position: absolute;
|
|
10
10
|
left: 34%;
|
|
11
|
-
top:
|
|
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:
|
|
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:
|
|
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:
|
|
142
|
-
top:
|
|
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:
|
|
154
|
-
left:
|
|
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;
|
package/hoc/withCreatives.js
CHANGED
|
@@ -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/package.json
CHANGED
|
@@ -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));
|
|
@@ -135,6 +135,7 @@ function capReducer(state = fromJS(initialState.cap), action) {
|
|
|
135
135
|
return state.set('metaEntities', {
|
|
136
136
|
layouts: [],
|
|
137
137
|
tags: [],
|
|
138
|
+
tagLookupMap: {},
|
|
138
139
|
});
|
|
139
140
|
// eslint-disable-next-line no-case-declarations
|
|
140
141
|
case types.HIDE_TAGS:
|
|
@@ -142,7 +143,7 @@ function capReducer(state = fromJS(initialState.cap), action) {
|
|
|
142
143
|
metaEntities.tags.standard = _.filter(state.get('metaEntities').tags.standard, (tag) => action.tagList.indexOf(tag.definition.value) === -1);
|
|
143
144
|
metaEntities.tags.custom = _.filter(state.get('metaEntities').tags.custom, (tag) => action.tagList.indexOf(tag.name) === -1);
|
|
144
145
|
return state.setIn(['metaEntities'], metaEntities);
|
|
145
|
-
case types.SET_INJECTED_TAGS:
|
|
146
|
+
case types.SET_INJECTED_TAGS:
|
|
146
147
|
|
|
147
148
|
// Deep clone the tagLookupMap to avoid direct mutations
|
|
148
149
|
let updatedMetaEntitiesTagLookUp = _.cloneDeep(state.getIn(['metaEntities', 'tagLookupMap']));
|
|
@@ -152,9 +153,13 @@ function capReducer(state = fromJS(initialState.cap), action) {
|
|
|
152
153
|
...formattedInjectedTags || {},
|
|
153
154
|
...updatedMetaEntitiesTagLookUp || {},
|
|
154
155
|
};
|
|
155
|
-
return state
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
return state.set("injectedTags", action.injectedTags).setIn(
|
|
157
|
+
["metaEntities"],
|
|
158
|
+
fromJS({
|
|
159
|
+
...state.get("metaEntities"),
|
|
160
|
+
tagLookupMap: updatedMetaEntitiesTagLookUp
|
|
161
|
+
})
|
|
162
|
+
);
|
|
158
163
|
case types.GET_TOPBAR_MENU_DATA_REQUEST:
|
|
159
164
|
return state.set('topbarMenuData', fromJS({ status: 'request' }));
|
|
160
165
|
case types.GET_TOPBAR_MENU_DATA_SUCCESS:
|
|
@@ -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
|
-
|
|
518
|
+
zaloSaga: true,
|
|
519
|
+
// sagas: [withZaloSaga],
|
|
518
520
|
});
|