@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 +1 -3
- package/package.json +13 -8
- package/src/actions/index.js +1 -3
- package/src/actions/types.js +1 -3
- package/src/components/common/index.js +1 -2
- package/src/components/groups/EditGroup.js +1 -1
- package/src/components/groups/GroupsList.js +1 -1
- package/src/components/groups/GroupsWidget.js +1 -1
- package/src/components/groups/NewGroup.js +1 -1
- package/src/config/index.js +1 -3
- package/src/core.config.js +5 -0
- package/src/feature.config.js +0 -2
- package/src/js/Colors.js +1 -3
- package/src/js/Styles.js +2 -2
- package/src/js/index.js +1 -3
- package/src/reducers/ChatsReducer.js +2 -1
- package/src/reducers/GroupsReducer.js +2 -1
- package/src/webapi/helper.js +1 -3
- package/src/webapi/index.js +1 -3
package/assets/fonts.js
CHANGED
package/package.json
CHANGED
|
@@ -1,32 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plusscommunities/pluss-circles-app",
|
|
3
|
-
"version": "1.
|
|
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
|
|
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": "
|
|
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": "
|
|
21
|
-
"react-native": "
|
|
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.
|
|
29
|
+
"react-native-webview": "11.15.0",
|
|
25
30
|
"react-redux": "^5.0.5"
|
|
26
31
|
},
|
|
27
32
|
"peerDependencies": {
|
|
28
|
-
"expo-linear-gradient": "~
|
|
29
|
-
"expo-constants": "~
|
|
33
|
+
"expo-linear-gradient": "~11.0.0",
|
|
34
|
+
"expo-constants": "~13.0.0",
|
|
30
35
|
"redux-persist": "^4.8.3"
|
|
31
36
|
}
|
|
32
37
|
}
|
package/src/actions/index.js
CHANGED
package/src/actions/types.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
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.
|
|
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, {
|
|
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, {
|
|
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.
|
|
175
|
+
this.imageUploader.showUploadMenu();
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
renderInvitePopup() {
|
package/src/config/index.js
CHANGED
|
@@ -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 };
|
package/src/feature.config.js
CHANGED
package/src/js/Colors.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
1
|
+
import { Styles } from '../core.config';
|
|
2
2
|
|
|
3
|
-
export default
|
|
3
|
+
export default Styles;
|
package/src/js/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { REHYDRATE } from 'redux-persist
|
|
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
|
|
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 = [];
|
package/src/webapi/helper.js
CHANGED