@plusscommunities/pluss-circles-app 1.0.14 → 1.1.3

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/assets/fonts.js CHANGED
@@ -1,5 +1,3 @@
1
- import { PlussCore } from '../src/feature.config';
2
-
3
- const { Fonts } = PlussCore;
1
+ import { Fonts } from '../src/core.config';
4
2
 
5
3
  export const Pl60Icon = Fonts.Pl60Icon;
package/package.json CHANGED
@@ -1,32 +1,37 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-circles-app",
3
- "version": "1.0.14",
3
+ "version": "1.1.3",
4
4
  "description": "Extension package to enable circles on Pluss Communities Platform",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
+ "betacore": "npm i @plusscommunities/pluss-core-app@beta",
7
8
  "core": "npm i @plusscommunities/pluss-core-app@latest",
9
+ "betapatch": "npm version prepatch --preid=beta",
8
10
  "patch": "npm version patch",
11
+ "betaupload": "npm publish --access public --tag beta && rm -rf node_modules",
12
+ "betaupload:p": "npm run betapatch && npm run betaupload",
13
+ "betaupload:cp": "npm run betacore && npm run betaupload:p",
9
14
  "upload": "npm publish --access public && rm -rf node_modules",
10
15
  "upload:p": "npm run patch && npm run upload",
11
- "upload:cp": "npm run core && npm run patch && npm run upload"
16
+ "upload:cp": "npm run core && npm run upload:p"
12
17
  },
13
18
  "author": "Phillip Suh",
14
19
  "license": "ISC",
15
20
  "dependencies": {
16
- "@plusscommunities/pluss-core-app": "^1.1.2",
21
+ "@plusscommunities/pluss-core-app": "1.4.8",
17
22
  "axios": "^0.16.2",
18
23
  "lodash": "^4.17.4",
19
24
  "moment": "^2.18.1",
20
- "react": "16.13.1",
21
- "react-native": "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz",
25
+ "react": "17.0.1",
26
+ "react-native": "0.64.3",
22
27
  "react-native-elements": "^0.17.0",
23
28
  "react-native-iphone-x-helper": "^1.3.1",
24
- "react-native-webview": "11.2.3",
29
+ "react-native-webview": "11.15.0",
25
30
  "react-redux": "^5.0.5"
26
31
  },
27
32
  "peerDependencies": {
28
- "expo-linear-gradient": "~9.1.0",
29
- "expo-constants": "~10.1.3",
33
+ "expo-linear-gradient": "~11.0.0",
34
+ "expo-constants": "~13.0.0",
30
35
  "redux-persist": "^4.8.3"
31
36
  }
32
37
  }
@@ -1,6 +1,4 @@
1
- import { PlussCore } from '../feature.config';
2
-
3
- const { Actions } = PlussCore;
1
+ import { Actions } from '../core.config';
4
2
 
5
3
  export const getFollowers = Actions.getFollowers;
6
4
  export const addFollower = Actions.addFollower;
@@ -1,6 +1,4 @@
1
- import { PlussCore } from '../feature.config';
2
-
3
- const { ActionTypes } = PlussCore;
1
+ import { ActionTypes } from '../core.config';
4
2
 
5
3
  export const LOGOUT = ActionTypes.LOGOUT;
6
4
  export const CHANGE_ROLE = ActionTypes.CHANGE_ROLE;
@@ -1,6 +1,5 @@
1
- import { PlussCore } from '../../feature.config';
1
+ import { Components } from '../../core.config';
2
2
 
3
- const { Components } = PlussCore;
4
3
  export const Attachment = Components.Attachment;
5
4
  export const BackButton = Components.BackButton;
6
5
  export const ConfirmPopup = Components.ConfirmPopup;
@@ -203,7 +203,7 @@ class EditGroup extends Component {
203
203
  if (this.state.uploadingImage || this.state.submittingGroup) {
204
204
  return;
205
205
  }
206
- this.imageUploader.getWrappedInstance().showUploadMenu();
206
+ this.imageUploader.showUploadMenu();
207
207
  }
208
208
 
209
209
  renderInvitePopup() {
@@ -73,4 +73,4 @@ const mapStateToProps = state => {
73
73
  };
74
74
  };
75
75
 
76
- export default connect(mapStateToProps, { updateGroups, updateUnreadCounter }, null, { withRef: true })(GroupsList);
76
+ export default connect(mapStateToProps, { updateGroups, updateUnreadCounter }, null, { forwardRef: true })(GroupsList);
@@ -125,4 +125,4 @@ const mapStateToProps = state => {
125
125
  };
126
126
  };
127
127
 
128
- export default connect(mapStateToProps, { updateGroups, updateUnreadCounter }, null, { withRef: true })(GroupsWidget);
128
+ export default connect(mapStateToProps, { updateGroups, updateUnreadCounter }, null, { forwardRef: true })(GroupsWidget);
@@ -172,7 +172,7 @@ class NewGroup extends Component {
172
172
  if (this.state.uploadingImage || this.state.submittingGroup) {
173
173
  return;
174
174
  }
175
- this.imageUploader.getWrappedInstance().showUploadMenu();
175
+ this.imageUploader.showUploadMenu();
176
176
  }
177
177
 
178
178
  renderInvitePopup() {
@@ -1,6 +1,4 @@
1
- import { PlussCore } from '../feature.config';
2
-
3
- const { Config } = PlussCore;
1
+ import { Config } from '../core.config';
4
2
 
5
3
  export const CONST_STRINGS = {
6
4
  EMPTY_GROUPS: "You aren't in any Circles",
@@ -0,0 +1,5 @@
1
+ // import * as PlussCore from '../../pluss-core/src';
2
+ import * as PlussCore from '@plusscommunities/pluss-core-app';
3
+
4
+ const { Apis, Fonts, Actions, ActionTypes, Config, Components, Styles, Session, Helper, Constants, Colours } = PlussCore;
5
+ export { Apis, Fonts, Actions, ActionTypes, Config, Components, Styles, Session, Helper, Constants, Colours };
@@ -5,8 +5,6 @@ import { CIRCLE_INVITES_LOADED, CIRCLES_LOAD_INITIALISE, UPDATE_CIRCLE_UNREAD }
5
5
  import { getSessionTokenAWS } from './js';
6
6
  import { circleActions } from './webapi';
7
7
 
8
- export { PlussCore };
9
-
10
8
  export const Services = {
11
9
  navigation: null,
12
10
  };
package/src/js/Colors.js CHANGED
@@ -1,6 +1,4 @@
1
- import { PlussCore } from '../feature.config';
2
-
3
- const { Colours } = PlussCore;
1
+ import { Colours } from '../core.config';
4
2
 
5
3
  export const getMainBrandingColourFromState = Colours.getMainBrandingColourFromState;
6
4
  export const getLightBrandingColourFromState = Colours.getLightBrandingColourFromState;
package/src/js/Styles.js CHANGED
@@ -1,3 +1,3 @@
1
- import { PlussCore } from '../feature.config';
1
+ import { Styles } from '../core.config';
2
2
 
3
- export default PlussCore.Styles;
3
+ export default Styles;
package/src/js/index.js CHANGED
@@ -1,6 +1,4 @@
1
- import { PlussCore } from '../feature.config';
2
-
3
- const { Session, Helper } = PlussCore;
1
+ import { Session, Helper } from '../core.config';
4
2
 
5
3
  // Session
6
4
  export const authedFunction = Session.authedFunction;
@@ -1,4 +1,4 @@
1
- import { REHYDRATE } from 'redux-persist/constants';
1
+ import { REHYDRATE } from 'redux-persist';
2
2
  import {
3
3
  SOFT_ADD_CIRCLE_CHAT,
4
4
  CREATED_CIRCLE_CHAT,
@@ -35,6 +35,7 @@ export default (state = INITIAL_STATE, action) => {
35
35
  return { ...state, blockedUsers: action.payload };
36
36
 
37
37
  case REHYDRATE:
38
+ if (!action.payload) return state;
38
39
  if (action.payload[CHAT_REDUCER_KEY] && Array.isArray(action.payload[CHAT_REDUCER_KEY])) {
39
40
  return {
40
41
  list: action.payload[CHAT_REDUCER_KEY],
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable no-param-reassign */
2
2
  /* eslint-disable no-case-declarations */
3
- import { REHYDRATE } from 'redux-persist/constants';
3
+ import { REHYDRATE } from 'redux-persist';
4
4
  import _ from 'lodash';
5
5
  import {
6
6
  LOGOUT,
@@ -120,6 +120,7 @@ export default (state = INITIAL_STATE, action) => {
120
120
  case CLEAR_CIRCLES:
121
121
  return { list: [], invites: [] };
122
122
  case REHYDRATE:
123
+ if (!action.payload) return state;
123
124
  if (action.payload[GROUPS_REDUCER_KEY]) {
124
125
  if (action.payload[GROUPS_REDUCER_KEY].list == null) {
125
126
  action.payload[GROUPS_REDUCER_KEY].list = [];
@@ -1,6 +1,4 @@
1
- import { PlussCore } from '../feature.config';
2
-
3
- const { Helper } = PlussCore;
1
+ import { Helper } from '../core.config';
4
2
 
5
3
  export const getUrl = Helper.getUrl;
6
4
  export const getAuthTokenHeader = Helper.getAuthTokenHeader;
@@ -1,6 +1,4 @@
1
- import { PlussCore } from '../feature.config';
2
-
3
- const { Apis } = PlussCore;
1
+ import { Apis } from '../core.config';
4
2
 
5
3
  export const userActions = Apis.userActions;
6
4
  export const contactActions = Apis.contactActions;