@capillarytech/creatives-library 8.0.50 → 8.0.52-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.
package/package.json
CHANGED
|
@@ -53,6 +53,7 @@ import { v2InAppSagas } from '../InApp/sagas';
|
|
|
53
53
|
import { v2ViberSagas } from '../Viber/sagas';
|
|
54
54
|
import { v2FacebookSagas } from '../Facebook/sagas';
|
|
55
55
|
import createReducer from '../Line/Container/reducer';
|
|
56
|
+
import { v2ZaloSagas } from '../Zalo/saga';
|
|
56
57
|
|
|
57
58
|
const gtm = window.dataLayer || [];
|
|
58
59
|
const {
|
|
@@ -615,6 +616,7 @@ const withEbillSaga = injectSaga({ key: 'ebill', saga: v2EbillSagas });
|
|
|
615
616
|
const withEmailSaga = injectSaga({ key: 'email', saga: v2EmailDuplicateTemplateSaga });
|
|
616
617
|
const withLineContainerSaga = injectSaga({ key: 'lineCreate', saga: v2LineContainerSagas });
|
|
617
618
|
const withMobilePushCreateSaga = injectSaga({ key: 'mobileCreate', saga: v2MobilePushCreateSagas });
|
|
619
|
+
const withZaloSaga = injectSaga({ key: 'zalo', saga: v2ZaloSagas });
|
|
618
620
|
const withWechatMapTemplatesSaga = injectSaga({ key: 'weChatMapTemplate', saga: v2WechatMapTemplatesSagas });
|
|
619
621
|
const withRcsSaga = injectSaga({ key: 'rcs', saga: v2RcsSagas });
|
|
620
622
|
const withInAppSaga = injectSaga({ key: 'inapp', saga: v2InAppSagas });
|
|
@@ -630,6 +632,7 @@ export default compose(
|
|
|
630
632
|
withLineContainerSaga,
|
|
631
633
|
withMobilePushCreateSaga,
|
|
632
634
|
withWechatMapTemplatesSaga,
|
|
635
|
+
withZaloSaga,
|
|
633
636
|
withRcsSaga,
|
|
634
637
|
withInAppSaga,
|
|
635
638
|
withViberSaga,
|
|
@@ -265,6 +265,11 @@ export function* capSagaForFetchSchemaForEntity() {
|
|
|
265
265
|
watchFetchSchemaForEntity(),
|
|
266
266
|
]);
|
|
267
267
|
}
|
|
268
|
+
export function* capSagaLiquidEntity() {
|
|
269
|
+
yield all([
|
|
270
|
+
watchLiquidEntity(),
|
|
271
|
+
]);
|
|
272
|
+
};
|
|
268
273
|
|
|
269
274
|
export function* v2CapSagas() {
|
|
270
275
|
yield all([
|
|
@@ -51,7 +51,7 @@ import injectReducer from '../../utils/injectReducer';
|
|
|
51
51
|
import injectSaga from '../../utils/injectSaga';
|
|
52
52
|
import creativesContainerReducer from './reducer';
|
|
53
53
|
import { compose } from 'redux';
|
|
54
|
-
import { capSagaForFetchSchemaForEntity } from '../Cap/sagas';
|
|
54
|
+
import { capSagaForFetchSchemaForEntity,capSagaLiquidEntity } from '../Cap/sagas';
|
|
55
55
|
import { v2TemplateSagaWatchGetDefaultBeeTemplates } from '../Templates/sagas';
|
|
56
56
|
import {
|
|
57
57
|
CAP_SPACE_32, CAP_SPACE_56, CAP_SPACE_64,
|
|
@@ -1447,6 +1447,7 @@ function mapDispatchToProps(dispatch) {
|
|
|
1447
1447
|
const withConnect = connect(mapStatesToProps, mapDispatchToProps);
|
|
1448
1448
|
const withReducer = injectReducer({ key: 'creativesContainer', reducer: creativesContainerReducer });
|
|
1449
1449
|
const withSaga = injectSaga({ key: 'cap', saga: capSagaForFetchSchemaForEntity });
|
|
1450
|
+
const withLiquidSaga = injectSaga({ key: 'liquid', saga: capSagaLiquidEntity });
|
|
1450
1451
|
const withDefaultTempSaga = injectSaga({ key: 'creativesContainer', saga: v2TemplateSagaWatchGetDefaultBeeTemplates });
|
|
1451
1452
|
|
|
1452
|
-
export default compose(withSaga, withDefaultTempSaga, withReducer, withConnect)(injectIntl(Creatives));
|
|
1453
|
+
export default compose(withSaga,withLiquidSaga, withDefaultTempSaga, withReducer, withConnect)(injectIntl(Creatives));
|
|
@@ -53,6 +53,7 @@ import injectReducer from '../../utils/injectReducer';
|
|
|
53
53
|
import * as globalActions from '../Cap/actions';
|
|
54
54
|
import v2ZaloReducer from './reducer';
|
|
55
55
|
import { v2ZaloSagas } from './saga';
|
|
56
|
+
import { DAEMON } from '@capillarytech/vulcan-react-sdk/utils/sagaInjectorTypes';
|
|
56
57
|
|
|
57
58
|
export const Zalo = (props) => {
|
|
58
59
|
const {
|
|
@@ -506,7 +507,9 @@ const mapDispatchToProps = (dispatch) => ({
|
|
|
506
507
|
|
|
507
508
|
|
|
508
509
|
const withReducer = injectReducer({ key: 'zalo', reducer: v2ZaloReducer });
|
|
509
|
-
|
|
510
|
+
|
|
511
|
+
//DAEMON mode ensures that this saga is not injected twice
|
|
512
|
+
const withZaloSaga = injectSaga({ key: 'zalo', saga: v2ZaloSagas, mode: DAEMON });
|
|
510
513
|
|
|
511
514
|
export default withCreatives({
|
|
512
515
|
WrappedComponent: Zalo,
|