@capillarytech/creatives-library 8.0.33 → 8.0.34-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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "8.0.33",
4
+ "version": "8.0.34-alpha.0",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
package/reducers.js ADDED
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Combine all reducers in this file and export the combined reducers.
3
+ * If we were to do this in store.js, reducers wouldn't be hot reloadable.
4
+ */
5
+
6
+ import { combineReducers } from 'redux-immutable';
7
+ import { connectRouter } from 'connected-react-router/immutable';
8
+ // import { fromJS } from 'immutable';
9
+
10
+ import languageProviderReducer from 'v2Containers/LanguageProvider/reducer';
11
+ import beeEditorReducer from 'v2Containers/BeeEditor/reducer';
12
+ import CapFacebookPreviewReducer from 'v2Containers/CapFacebookPreview/reducer';
13
+
14
+ import capReducer from 'containers/Cap/reducer';
15
+ import appReducer from 'containers/App/reducer';
16
+ import createSmsReducer from 'containers/Sms/Create/reducer';
17
+ import editSmsReducer from 'containers/Sms/Edit/reducer';
18
+ import templateReducer from 'containers/Templates/reducer';
19
+ import tagsReducer from 'containers/TagList/reducer';
20
+ import emailReducer from 'containers/Email/reducer';
21
+ import ebillReducer from 'containers/Ebill/reducer';
22
+ import ftpReducer from 'v2Containers/FTP/reducer';
23
+ import galleryReducer from './v2Containers/Assets/Gallery/reducer';
24
+ import { AIRA_REDUCER_DOMAIN, askAiraReducer } from '@capillarytech/cap-ui-library/CapAskAira';
25
+ import CapCollapsibleLeftNavigationReducer from '@capillarytech/cap-ui-library/CapCollapsibleLeftNavigation/reducer';
26
+ import history from './utils/history';
27
+ /**
28
+ * Creates the main reducer with the asynchronously loaded ones
29
+ */
30
+ export default function createReducer(asyncReducers = {}) {
31
+ const rootReducer = combineReducers({
32
+ language: languageProviderReducer,
33
+ cap: capReducer,
34
+ app: appReducer,
35
+ create: createSmsReducer,
36
+ edit: editSmsReducer,
37
+ templates: templateReducer,
38
+ tagList: tagsReducer,
39
+ email: emailReducer,
40
+ ebill: ebillReducer,
41
+ beeEditor: beeEditorReducer,
42
+ facebookPreview: CapFacebookPreviewReducer,
43
+ FTP: ftpReducer,
44
+ gallery: galleryReducer,
45
+ navigationConfig: CapCollapsibleLeftNavigationReducer,
46
+ [AIRA_REDUCER_DOMAIN]: askAiraReducer,
47
+ ...asyncReducers,
48
+ router: connectRouter(history),
49
+ });
50
+
51
+ // Wrap the root reducer and return a new root reducer with router state
52
+ const mergeWithRouterState = connectRouter(history);
53
+ return mergeWithRouterState(rootReducer);
54
+ }
@@ -25,14 +25,14 @@ import CapAskAira from '@capillarytech/cap-ui-library/CapAskAira';
25
25
  import { request,getAPICallObject } from '../../services/api';
26
26
  import messages from './messages';
27
27
  import * as beeActions from './actions';
28
+ import { selectCurrentOrgDetails } from '../Cap/selectors';
29
+ import { ENABLE_AI_SUGGESTIONS } from './constants';
28
30
  import injectSaga from '../../utils/injectSaga';
29
31
  import injectReducer from '../../utils/injectReducer';
30
32
  import { v2BeeEditionSagas } from './sagas';
31
33
  import v2BeeEditionReducer from './reducer';
32
34
  import { compose } from 'redux';
33
35
 
34
- import { selectCurrentOrgDetails } from '../Cap/selectors';
35
- import { ENABLE_AI_SUGGESTIONS } from './constants';
36
36
  function BeeEditor(props) {
37
37
  const {
38
38
  uid,
@@ -41,13 +41,13 @@ import { WHATSAPP_STATUSES, WHATSAPP_MEDIA_TYPES } from '../Whatsapp/constants';
41
41
 
42
42
  import { updateImagesInHtml } from '../../utils/cdnTransformation';
43
43
  import { IOS } from '../InApp/constants';
44
+ import { CAP_SPACE_28, CAP_SPACE_32, CAP_SPACE_56, CAP_SPACE_64, CAP_SPACE_72, CAP_SPACE_80 } from '@capillarytech/cap-ui-library/styled/variables';
44
45
  import injectReducer from '../../utils/injectReducer'
45
46
  import injectSaga from '../../utils/injectSaga';
46
47
  import creativesContainerReducer from './reducer';
47
48
  import { compose } from 'redux';
48
49
  import { capSagaForFetchSchemaForEntity } from '../Cap/sagas';
49
50
  import { v2TemplateSagaWatchGetDefaultBeeTemplates } from '../Templates/sagas';
50
- import { CAP_SPACE_28, CAP_SPACE_32, CAP_SPACE_56, CAP_SPACE_64, CAP_SPACE_72, CAP_SPACE_80 } from '@capillarytech/cap-ui-library/styled/variables';
51
51
 
52
52
  const classPrefix = 'add-creatives-section';
53
53
  const CREATIVES_CONTAINER = 'creativesContainer';
@@ -32,11 +32,11 @@ import { CREATE, TRACK_CREATE_MPUSH } from '../../App/constants';
32
32
  import { MOBILE_PUSH } from '../../CreativesContainer/constants';
33
33
  import { getContent } from '../commonMethods';
34
34
  import { getCdnUrl } from '../../../utils/cdnTransformation';
35
+ import { EXTERNAL_LINK_LOWERCASE } from './constants';
35
36
  import injectReducer from '../../../utils/injectReducer';
36
37
  import injectSaga from '../../../utils/injectSaga';
37
38
  import v2MobilePushCreateReducer from './reducer';
38
39
  import { v2MobilePushWatchDuplicateTemplateSaga } from './sagas';
39
- import { EXTERNAL_LINK_LOWERCASE } from './constants';
40
40
 
41
41
  const PrefixWrapper = styled.div`
42
42
  margin-right: 16px;
@@ -34,16 +34,15 @@ import { GA } from '@capillarytech/cap-ui-utils';
34
34
  import { EDIT, TRACK_EDIT_MPUSH } from '../../App/constants';
35
35
  import { MOBILE_PUSH } from '../../CreativesContainer/constants';
36
36
  import { getCdnUrl } from '../../../utils/cdnTransformation';
37
+ import { MAPP_SDK } from './constants';
38
+ import { isEmbeddedEditOrPreview } from '../../../utils/commonUtils';
39
+ import { EMBEDDED } from '../../Whatsapp/constants';
40
+ import { OUTBOUND } from '../../../v2Components/FormBuilder/constants';
37
41
  import injectSaga from '../../../utils/injectSaga';
38
42
  import injectReducer from '../../../utils/injectReducer';
39
43
  import { v2MobilePushEditSagas } from './sagas';
40
44
  import v2MobilePushEditReducer from './reducer';
41
45
  import * as globalActions from '../../Cap/actions';
42
- import { MAPP_SDK } from './constants';
43
- import { isEmbeddedEditOrPreview } from '../../../utils/commonUtils';
44
- import { EMBEDDED } from '../../Whatsapp/constants';
45
- import { OUTBOUND } from '../../../v2Components/FormBuilder/constants';
46
-
47
46
  const PrefixWrapper = styled.div`
48
47
  margin-right: 16px;
49
48
  `;
@@ -8,8 +8,8 @@ import { TagList } from '../index';
8
8
  import { TagListData, eventContextTags } from './mockdata';
9
9
  import { Provider } from 'react-redux';
10
10
  import { screen, render } from '../../../utils/test-utils';
11
- import history from '../../../utils/history';
12
11
  const { getByText } = screen;
12
+ import history from '../../../utils/history';
13
13
 
14
14
 
15
15
  const initializeTagList = (props) => {
@@ -1,5 +1,5 @@
1
- import { call, put, takeLatest, select, all } from 'redux-saga/effects';
2
1
  import get from 'lodash/get';
2
+ import { call, put, takeLatest, select, all } from 'redux-saga/effects';
3
3
  // import { schema, normalize } from 'normalizr';
4
4
  import * as Api from '../../services/api';
5
5
  import * as types from './constants';