@plusscommunities/pluss-circles-app 8.0.4 → 8.0.6-beta.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/dist/module/actions/ChatActions.js +3 -3
- package/dist/module/actions/ChatActions.js.map +1 -1
- package/dist/module/actions/GroupActions.js +18 -18
- package/dist/module/actions/GroupActions.js.map +1 -1
- package/dist/module/actions/index.js +3 -3
- package/dist/module/actions/index.js.map +1 -1
- package/dist/module/actions/types.js +2 -2
- package/dist/module/actions/types.js.map +1 -1
- package/dist/module/assets/fonts.js +1 -1
- package/dist/module/assets/fonts.js.map +1 -1
- package/dist/module/components/chat/Chat.js +83 -101
- package/dist/module/components/chat/Chat.js.map +1 -1
- package/dist/module/components/chat/ChatList.js +49 -49
- package/dist/module/components/chat/ChatList.js.map +1 -1
- package/dist/module/components/chat/ContactsList.js +21 -21
- package/dist/module/components/chat/ContactsList.js.map +1 -1
- package/dist/module/components/chat/KioskPeoplePage.js +38 -37
- package/dist/module/components/chat/KioskPeoplePage.js.map +1 -1
- package/dist/module/components/chat/PeopleContainer.js +5 -5
- package/dist/module/components/chat/PeopleContainer.js.map +1 -1
- package/dist/module/components/chat/PeoplePage.js +41 -41
- package/dist/module/components/chat/PeoplePage.js.map +1 -1
- package/dist/module/components/common/SwipeableUserListing.js +22 -22
- package/dist/module/components/common/SwipeableUserListing.js.map +1 -1
- package/dist/module/components/common/index.js +2 -2
- package/dist/module/components/common/index.js.map +1 -1
- package/dist/module/components/events/EventInvitePopup.js +40 -40
- package/dist/module/components/events/EventInvitePopup.js.map +1 -1
- package/dist/module/components/groups/EditGroup.js +62 -62
- package/dist/module/components/groups/EditGroup.js.map +1 -1
- package/dist/module/components/groups/GroupDetails.js +32 -32
- package/dist/module/components/groups/GroupDetails.js.map +1 -1
- package/dist/module/components/groups/GroupsList.js +10 -10
- package/dist/module/components/groups/GroupsList.js.map +1 -1
- package/dist/module/components/groups/GroupsWidget.js +18 -18
- package/dist/module/components/groups/GroupsWidget.js.map +1 -1
- package/dist/module/components/groups/NewGroup.js +101 -101
- package/dist/module/components/groups/NewGroup.js.map +1 -1
- package/dist/module/components/groups/PublicGroup.js +17 -17
- package/dist/module/components/groups/PublicGroup.js.map +1 -1
- package/dist/module/components/groups/PublicGroupAction.js +39 -39
- package/dist/module/components/groups/PublicGroupAction.js.map +1 -1
- package/dist/module/components/notifications/GroupInvite.js +25 -25
- package/dist/module/components/notifications/GroupInvite.js.map +1 -1
- package/dist/module/components/notifications/GroupInviteAction.js +44 -44
- package/dist/module/components/notifications/GroupInviteAction.js.map +1 -1
- package/dist/module/components/notifications/GroupMessage.js +17 -17
- package/dist/module/components/notifications/GroupMessage.js.map +1 -1
- package/dist/module/components/takeover/TakeoverBackground.js +5 -5
- package/dist/module/components/takeover/TakeoverBackground.js.map +1 -1
- package/dist/module/config/index.js +2 -2
- package/dist/module/config/index.js.map +1 -1
- package/dist/module/core.config.js +1 -1
- package/dist/module/core.config.js.map +1 -1
- package/dist/module/feature.config.js +27 -27
- package/dist/module/feature.config.js.map +1 -1
- package/dist/module/index.js +14 -14
- package/dist/module/index.js.map +1 -1
- package/dist/module/js/Colors.js +1 -1
- package/dist/module/js/Colors.js.map +1 -1
- package/dist/module/js/NavigationService.js +1 -1
- package/dist/module/js/NavigationService.js.map +1 -1
- package/dist/module/js/Styles.js +1 -1
- package/dist/module/js/Styles.js.map +1 -1
- package/dist/module/js/circles/MapStateToDirectMessages.js +2 -2
- package/dist/module/js/circles/MapStateToDirectMessages.js.map +1 -1
- package/dist/module/js/index.js +3 -3
- package/dist/module/js/index.js.map +1 -1
- package/dist/module/reducers/ChatsReducer.js +4 -4
- package/dist/module/reducers/ChatsReducer.js.map +1 -1
- package/dist/module/reducers/GroupsReducer.js +5 -5
- package/dist/module/reducers/GroupsReducer.js.map +1 -1
- package/dist/module/reducers/reducerKeys.js +1 -1
- package/dist/module/reducers/reducerKeys.js.map +1 -1
- package/dist/module/values.config.default.js +25 -25
- package/dist/module/values.config.default.js.map +1 -1
- package/dist/module/values.config.groups.js +25 -25
- package/dist/module/values.config.groups.js.map +1 -1
- package/dist/module/values.config.js +25 -25
- package/dist/module/values.config.js.map +1 -1
- package/dist/module/webapi/circleActions.js +31 -31
- package/dist/module/webapi/circleActions.js.map +1 -1
- package/dist/module/webapi/helper.js +1 -1
- package/dist/module/webapi/helper.js.map +1 -1
- package/dist/module/webapi/index.js +3 -3
- package/dist/module/webapi/index.js.map +1 -1
- package/dist/module/webapi/messageActions.js +10 -10
- package/dist/module/webapi/messageActions.js.map +1 -1
- package/package.json +54 -54
- package/src/actions/ChatActions.js +55 -55
- package/src/actions/GroupActions.js +245 -237
- package/src/actions/index.js +3 -3
- package/src/actions/types.js +2 -2
- package/src/assets/fonts.js +1 -1
- package/src/components/chat/Chat.js +730 -669
- package/src/components/chat/ChatList.js +603 -512
- package/src/components/chat/ContactsList.js +186 -169
- package/src/components/chat/KioskPeoplePage.js +315 -291
- package/src/components/chat/PeopleContainer.js +14 -14
- package/src/components/chat/PeoplePage.js +450 -383
- package/src/components/common/SwipeableUserListing.js +118 -106
- package/src/components/common/index.js +2 -2
- package/src/components/events/EventInvitePopup.js +587 -505
- package/src/components/groups/EditGroup.js +607 -538
- package/src/components/groups/GroupDetails.js +385 -305
- package/src/components/groups/GroupsList.js +91 -79
- package/src/components/groups/GroupsWidget.js +122 -116
- package/src/components/groups/NewGroup.js +758 -639
- package/src/components/groups/PublicGroup.js +129 -101
- package/src/components/groups/PublicGroupAction.js +312 -244
- package/src/components/notifications/GroupInvite.js +167 -139
- package/src/components/notifications/GroupInviteAction.js +371 -273
- package/src/components/notifications/GroupMessage.js +110 -102
- package/src/components/takeover/TakeoverBackground.js +24 -18
- package/src/config/index.js +4 -4
- package/src/core.config.js +27 -3
- package/src/feature.config.js +257 -245
- package/src/index.js +24 -21
- package/src/js/Colors.js +5 -3
- package/src/js/NavigationService.js +5 -4
- package/src/js/Styles.js +1 -1
- package/src/js/circles/MapStateToDirectMessages.js +6 -6
- package/src/js/index.js +3 -3
- package/src/reducers/ChatsReducer.js +66 -53
- package/src/reducers/GroupsReducer.js +203 -190
- package/src/reducers/reducerKeys.js +1 -1
- package/src/values.config.default.js +29 -29
- package/src/values.config.groups.js +29 -29
- package/src/values.config.js +29 -29
- package/src/webapi/circleActions.js +109 -109
- package/src/webapi/helper.js +1 -1
- package/src/webapi/index.js +3 -3
- package/src/webapi/messageActions.js +47 -47
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
-
import React, { Component } from
|
|
5
|
-
import { Text, View, StyleSheet } from
|
|
6
|
-
import { connect } from
|
|
7
|
-
import _ from
|
|
8
|
-
import { InlineButton } from
|
|
9
|
-
import { circleActions } from
|
|
10
|
-
import { updateGroups, updateUnreadCounter } from
|
|
11
|
-
import NavigationService from
|
|
12
|
-
import { getMainBrandingColourFromState, TEXT_DARKEST } from
|
|
13
|
-
import ChatList from
|
|
14
|
-
import { values } from
|
|
4
|
+
import React, { Component } from "react";
|
|
5
|
+
import { Text, View, StyleSheet } from "react-native";
|
|
6
|
+
import { connect } from "react-redux";
|
|
7
|
+
import _ from "lodash";
|
|
8
|
+
import { InlineButton } from "../common";
|
|
9
|
+
import { circleActions } from "../../webapi";
|
|
10
|
+
import { updateGroups, updateUnreadCounter } from "../../actions";
|
|
11
|
+
import NavigationService from "../../js/NavigationService";
|
|
12
|
+
import { getMainBrandingColourFromState, TEXT_DARKEST } from "../../js";
|
|
13
|
+
import ChatList from "../chat/ChatList";
|
|
14
|
+
import { values } from "../../values.config";
|
|
15
15
|
class GroupsWidget extends Component {
|
|
16
16
|
constructor(props) {
|
|
17
17
|
super(props);
|
|
@@ -22,7 +22,7 @@ class GroupsWidget extends Component {
|
|
|
22
22
|
this.props.updateGroups(res.data.Items);
|
|
23
23
|
this.props.updateUnreadCounter(res.data.Items, this.props.user.uid);
|
|
24
24
|
} catch (error) {
|
|
25
|
-
console.log(
|
|
25
|
+
console.log("refresh error", error);
|
|
26
26
|
} finally {
|
|
27
27
|
this.onLoadingChanged(false);
|
|
28
28
|
}
|
|
@@ -75,7 +75,7 @@ class GroupsWidget extends Component {
|
|
|
75
75
|
paddingTop: 6
|
|
76
76
|
},
|
|
77
77
|
textStyle: {
|
|
78
|
-
color:
|
|
78
|
+
color: "#fff"
|
|
79
79
|
}
|
|
80
80
|
}, "View All"))), /*#__PURE__*/React.createElement(ChatList, {
|
|
81
81
|
publicGroups: this.props.publicGroups,
|
|
@@ -89,7 +89,7 @@ class GroupsWidget extends Component {
|
|
|
89
89
|
}
|
|
90
90
|
const styles = StyleSheet.create({
|
|
91
91
|
sectionContainer: {
|
|
92
|
-
backgroundColor:
|
|
92
|
+
backgroundColor: "#fff",
|
|
93
93
|
paddingTop: 16
|
|
94
94
|
},
|
|
95
95
|
sectionPadding: {
|
|
@@ -98,12 +98,12 @@ const styles = StyleSheet.create({
|
|
|
98
98
|
},
|
|
99
99
|
sectionHeading: {
|
|
100
100
|
marginBottom: 4,
|
|
101
|
-
flexDirection:
|
|
102
|
-
alignContent:
|
|
103
|
-
justifyContent:
|
|
101
|
+
flexDirection: "row",
|
|
102
|
+
alignContent: "flex-start",
|
|
103
|
+
justifyContent: "space-between"
|
|
104
104
|
},
|
|
105
105
|
sectionTitle: {
|
|
106
|
-
fontFamily:
|
|
106
|
+
fontFamily: "sf-bold",
|
|
107
107
|
fontSize: 24,
|
|
108
108
|
color: TEXT_DARKEST
|
|
109
109
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","Text","View","StyleSheet","connect","_","InlineButton","circleActions","updateGroups","updateUnreadCounter","NavigationService","getMainBrandingColourFromState","TEXT_DARKEST","ChatList","values","GroupsWidget","constructor","props","_defineProperty","onLoadingChanged","res","getGroups","data","Items","user","uid","error","console","log","loading","callback","setState","state","navigate","screenCirclePeopleContainer","onlyGroups","title","getTitle","options","componentDidMount","refresh","componentDidUpdate","prevProps","dataUpdated","isEmpty","Title","textFeatureTitle","render","createElement","style","styles","sectionContainer","sectionPadding","sectionHeading","sectionTitle","onPress","onPressAll","color","colourBrandingMain","touchableStyle","paddingTop","textStyle","publicGroups","hideAdd","limit","isLoading","isWidget","create","backgroundColor","paddingHorizontal","paddingBottom","marginBottom","flexDirection","alignContent","justifyContent","fontFamily","fontSize","mapStateToProps","groups","reducerKey","notifications","filter","publicList","group","some","Audience","u","userId","updateKeyUserCircles","forwardRef"],"sources":["GroupsWidget.js"],"sourcesContent":["import React, { Component } from
|
|
1
|
+
{"version":3,"names":["React","Component","Text","View","StyleSheet","connect","_","InlineButton","circleActions","updateGroups","updateUnreadCounter","NavigationService","getMainBrandingColourFromState","TEXT_DARKEST","ChatList","values","GroupsWidget","constructor","props","_defineProperty","onLoadingChanged","res","getGroups","data","Items","user","uid","error","console","log","loading","callback","setState","state","navigate","screenCirclePeopleContainer","onlyGroups","title","getTitle","options","componentDidMount","refresh","componentDidUpdate","prevProps","dataUpdated","isEmpty","Title","textFeatureTitle","render","createElement","style","styles","sectionContainer","sectionPadding","sectionHeading","sectionTitle","onPress","onPressAll","color","colourBrandingMain","touchableStyle","paddingTop","textStyle","publicGroups","hideAdd","limit","isLoading","isWidget","create","backgroundColor","paddingHorizontal","paddingBottom","marginBottom","flexDirection","alignContent","justifyContent","fontFamily","fontSize","mapStateToProps","groups","reducerKey","notifications","filter","publicList","group","some","Audience","u","userId","updateKeyUserCircles","forwardRef"],"sources":["GroupsWidget.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { Text, View, StyleSheet } from \"react-native\";\nimport { connect } from \"react-redux\";\nimport _ from \"lodash\";\nimport { InlineButton } from \"../common\";\nimport { circleActions } from \"../../webapi\";\nimport { updateGroups, updateUnreadCounter } from \"../../actions\";\nimport NavigationService from \"../../js/NavigationService\";\nimport { getMainBrandingColourFromState, TEXT_DARKEST } from \"../../js\";\nimport ChatList from \"../chat/ChatList\";\nimport { values } from \"../../values.config\";\n\nclass GroupsWidget extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\n\t\tthis.state = {\n\t\t\tloading: false,\n\t\t};\n\t}\n\n\tcomponentDidMount() {\n\t\tthis.refresh();\n\t}\n\n\tcomponentDidUpdate(prevProps) {\n\t\tif (!prevProps.dataUpdated && this.props.dataUpdated) this.refresh();\n\t}\n\n\tgetTitle() {\n\t\tif (this.props.options && !_.isEmpty(this.props.options.Title)) {\n\t\t\treturn this.props.options.Title;\n\t\t}\n\t\treturn values.textFeatureTitle;\n\t}\n\n\trefresh = () => {\n\t\tthis.onLoadingChanged(true, async () => {\n\t\t\ttry {\n\t\t\t\tconst res = await circleActions.getGroups();\n\t\t\t\tthis.props.updateGroups(res.data.Items);\n\t\t\t\tthis.props.updateUnreadCounter(res.data.Items, this.props.user.uid);\n\t\t\t} catch (error) {\n\t\t\t\tconsole.log(\"refresh error\", error);\n\t\t\t} finally {\n\t\t\t\tthis.onLoadingChanged(false);\n\t\t\t}\n\t\t});\n\t};\n\n\tonLoadingChanged = (loading, callback) => {\n\t\tthis.setState({ loading }, () => {\n\t\t\tif (this.props.onLoadingChanged)\n\t\t\t\tthis.props.onLoadingChanged(this.state.loading);\n\t\t\tif (callback) callback();\n\t\t});\n\t};\n\n\tonPressAll = () => {\n\t\tNavigationService.navigate(values.screenCirclePeopleContainer, {\n\t\t\tonlyGroups: true,\n\t\t\ttitle: this.getTitle(),\n\t\t\toptions: this.props.options,\n\t\t});\n\t};\n\n\trender() {\n\t\treturn (\n\t\t\t<View style={styles.sectionContainer}>\n\t\t\t\t<View style={styles.sectionPadding}>\n\t\t\t\t\t<View style={styles.sectionHeading}>\n\t\t\t\t\t\t<Text style={styles.sectionTitle}>{this.getTitle()}</Text>\n\t\t\t\t\t\t<InlineButton\n\t\t\t\t\t\t\tonPress={this.onPressAll}\n\t\t\t\t\t\t\tcolor={this.props.colourBrandingMain}\n\t\t\t\t\t\t\ttouchableStyle={{ paddingTop: 6 }}\n\t\t\t\t\t\t\ttextStyle={{ color: \"#fff\" }}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\tView All\n\t\t\t\t\t\t</InlineButton>\n\t\t\t\t\t</View>\n\t\t\t\t</View>\n\t\t\t\t<ChatList\n\t\t\t\t\tpublicGroups={this.props.publicGroups}\n\t\t\t\t\thideAdd\n\t\t\t\t\tlimit={3}\n\t\t\t\t\tisLoading={this.state.loading}\n\t\t\t\t\toptions={this.props.options}\n\t\t\t\t\tisWidget\n\t\t\t\t/>\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tsectionContainer: {\n\t\tbackgroundColor: \"#fff\",\n\t\tpaddingTop: 16,\n\t},\n\tsectionPadding: {\n\t\tpaddingHorizontal: 16,\n\t\tpaddingBottom: 6,\n\t},\n\tsectionHeading: {\n\t\tmarginBottom: 4,\n\t\tflexDirection: \"row\",\n\t\talignContent: \"flex-start\",\n\t\tjustifyContent: \"space-between\",\n\t},\n\tsectionTitle: {\n\t\tfontFamily: \"sf-bold\",\n\t\tfontSize: 24,\n\t\tcolor: TEXT_DARKEST,\n\t},\n});\n\nconst mapStateToProps = (state) => {\n\tconst groups = state[values.reducerKey];\n\tconst { user, notifications } = state;\n\tconst publicGroups = _.filter(groups.publicList, (group) => {\n\t\treturn !_.some(group.Audience, (u) => {\n\t\t\treturn u.userId === user.uid;\n\t\t});\n\t});\n\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t\tpublicGroups,\n\t\tuser,\n\t\tdataUpdated: notifications.dataUpdated[values.updateKeyUserCircles],\n\t};\n};\n\nexport default connect(\n\tmapStateToProps,\n\t{ updateGroups, updateUnreadCounter },\n\tnull,\n\t{ forwardRef: true },\n)(GroupsWidget);\n"],"mappings":"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"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
-
import React, { Component } from
|
|
5
|
-
import _ from
|
|
6
|
-
import { connect } from
|
|
7
|
-
import { Dimensions, ImageBackground, Text, ScrollView, TouchableOpacity, View, KeyboardAvoidingView, Platform } from
|
|
8
|
-
import { Icon } from
|
|
9
|
-
import { ProfilePic, FormCard, FormCardSection, Header, Input, Spinner, ImageUploader, InlineButton, StickyFooter, Toggle } from
|
|
10
|
-
import { TEXT_DARK, LINEGREY, COLOUR_TEAL, getMainBrandingColourFromState } from
|
|
11
|
-
import stylez from
|
|
12
|
-
import NavigationService from
|
|
13
|
-
import { COLOUR_PURPLE, COLOUR_TANGERINE, TEXT_LIGHT, getSite, getSiteSettingFromState } from
|
|
14
|
-
import { createGroup } from
|
|
15
|
-
import EventInvitePopup from
|
|
16
|
-
import { circleActions } from
|
|
17
|
-
import { values } from
|
|
18
|
-
const PHOTO_WIDTH = Dimensions.get(
|
|
19
|
-
const PHOTO_HEIGHT = Dimensions.get(
|
|
4
|
+
import React, { Component } from "react";
|
|
5
|
+
import _ from "lodash";
|
|
6
|
+
import { connect } from "react-redux";
|
|
7
|
+
import { Dimensions, ImageBackground, Text, ScrollView, TouchableOpacity, View, KeyboardAvoidingView, Platform } from "react-native";
|
|
8
|
+
import { Icon } from "@rneui/themed";
|
|
9
|
+
import { ProfilePic, FormCard, FormCardSection, Header, Input, Spinner, ImageUploader, InlineButton, StickyFooter, Toggle } from "../common";
|
|
10
|
+
import { TEXT_DARK, LINEGREY, COLOUR_TEAL, getMainBrandingColourFromState } from "../../js/Colors";
|
|
11
|
+
import stylez from "../../js/Styles";
|
|
12
|
+
import NavigationService from "../../js/NavigationService";
|
|
13
|
+
import { COLOUR_PURPLE, COLOUR_TANGERINE, TEXT_LIGHT, getSite, getSiteSettingFromState } from "../../js/index";
|
|
14
|
+
import { createGroup } from "../../actions";
|
|
15
|
+
import EventInvitePopup from "../events/EventInvitePopup";
|
|
16
|
+
import { circleActions } from "../../webapi";
|
|
17
|
+
import { values } from "../../values.config";
|
|
18
|
+
const PHOTO_WIDTH = Dimensions.get("window").width - 48;
|
|
19
|
+
const PHOTO_HEIGHT = Dimensions.get("window").width > 600 ? PHOTO_WIDTH * 0.6 : PHOTO_WIDTH * 0.8;
|
|
20
20
|
class NewGroup extends Component {
|
|
21
21
|
constructor(props) {
|
|
22
22
|
super(props);
|
|
@@ -28,7 +28,7 @@ class NewGroup extends Component {
|
|
|
28
28
|
_defineProperty(this, "onUploadSuccess", uri => {
|
|
29
29
|
this.setState({
|
|
30
30
|
uploadingImage: false,
|
|
31
|
-
groupImage: uri.replace(
|
|
31
|
+
groupImage: uri.replace("/general/", "/general1400/")
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
_defineProperty(this, "onUploadFailed", () => {
|
|
@@ -38,20 +38,20 @@ class NewGroup extends Component {
|
|
|
38
38
|
});
|
|
39
39
|
});
|
|
40
40
|
this.state = {
|
|
41
|
-
title:
|
|
41
|
+
title: "",
|
|
42
42
|
submittingGroup: false,
|
|
43
43
|
groupImage: null,
|
|
44
44
|
selected: [],
|
|
45
|
-
visibility:
|
|
45
|
+
visibility: "private",
|
|
46
46
|
inviteOpen: false,
|
|
47
47
|
page: 2
|
|
48
48
|
};
|
|
49
49
|
this.visibilityOptions = [{
|
|
50
50
|
text: `Public ${values.entityName}`,
|
|
51
|
-
val:
|
|
51
|
+
val: "public"
|
|
52
52
|
}, {
|
|
53
53
|
text: `Private ${values.entityName}`,
|
|
54
|
-
val:
|
|
54
|
+
val: "private"
|
|
55
55
|
}];
|
|
56
56
|
}
|
|
57
57
|
onPressBack() {
|
|
@@ -81,7 +81,7 @@ class NewGroup extends Component {
|
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
circleActions.add(getSite(this.props.user.site), this.state.title, this.state.groupImage, audience, this.state.visibility ===
|
|
84
|
+
circleActions.add(getSite(this.props.user.site), this.state.title, this.state.groupImage, audience, this.state.visibility === "public").then(res => {
|
|
85
85
|
if (this.props.onSubmissionSuccess) this.props.onSubmissionSuccess(res.data);
|
|
86
86
|
this.props.createGroup(res.data);
|
|
87
87
|
NavigationService.navigate(values.screenCircleChat, {
|
|
@@ -90,7 +90,7 @@ class NewGroup extends Component {
|
|
|
90
90
|
back: values.screenCircleChatList
|
|
91
91
|
});
|
|
92
92
|
}).catch(err => {
|
|
93
|
-
console.log(
|
|
93
|
+
console.log("Circle creation error");
|
|
94
94
|
console.log(err);
|
|
95
95
|
this.setState({
|
|
96
96
|
submittingGroup: false
|
|
@@ -195,7 +195,7 @@ class NewGroup extends Component {
|
|
|
195
195
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
196
196
|
style: {
|
|
197
197
|
fontSize: 13,
|
|
198
|
-
fontFamily:
|
|
198
|
+
fontFamily: "sf-regular",
|
|
199
199
|
color: TEXT_LIGHT
|
|
200
200
|
}
|
|
201
201
|
}, "Upload ", values.entityName, " image"));
|
|
@@ -210,11 +210,11 @@ class NewGroup extends Component {
|
|
|
210
210
|
return /*#__PURE__*/React.createElement(ImageBackground, {
|
|
211
211
|
style: {
|
|
212
212
|
flex: 1,
|
|
213
|
-
height:
|
|
214
|
-
width:
|
|
213
|
+
height: "100%",
|
|
214
|
+
width: "100%",
|
|
215
215
|
borderRadius: 4,
|
|
216
|
-
justifyContent:
|
|
217
|
-
alignContent:
|
|
216
|
+
justifyContent: "center",
|
|
217
|
+
alignContent: "center"
|
|
218
218
|
},
|
|
219
219
|
imageStyle: {
|
|
220
220
|
borderRadius: 4
|
|
@@ -226,16 +226,16 @@ class NewGroup extends Component {
|
|
|
226
226
|
name: "camera",
|
|
227
227
|
type: "font-awesome",
|
|
228
228
|
iconStyle: {
|
|
229
|
-
color:
|
|
229
|
+
color: "#fff",
|
|
230
230
|
fontSize: 20,
|
|
231
231
|
marginBottom: 13
|
|
232
232
|
}
|
|
233
233
|
}), /*#__PURE__*/React.createElement(Text, {
|
|
234
234
|
style: {
|
|
235
235
|
fontSize: 13,
|
|
236
|
-
fontFamily:
|
|
237
|
-
color:
|
|
238
|
-
textAlign:
|
|
236
|
+
fontFamily: "sf-regular",
|
|
237
|
+
color: "#fff",
|
|
238
|
+
textAlign: "center"
|
|
239
239
|
}
|
|
240
240
|
}, "Upload ", values.entityName, " image")));
|
|
241
241
|
}
|
|
@@ -248,7 +248,7 @@ class NewGroup extends Component {
|
|
|
248
248
|
if (!this.props.circleAllowPublicCircles) {
|
|
249
249
|
return null;
|
|
250
250
|
}
|
|
251
|
-
if (this.props.user.category ===
|
|
251
|
+
if (this.props.user.category === "family") {
|
|
252
252
|
return null;
|
|
253
253
|
}
|
|
254
254
|
return /*#__PURE__*/React.createElement(View, {
|
|
@@ -273,10 +273,10 @@ class NewGroup extends Component {
|
|
|
273
273
|
}
|
|
274
274
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
275
275
|
autoFocus: true,
|
|
276
|
-
label: this.state.title.length > 0 ? `${_.capitalize(values.entityName)} name` :
|
|
276
|
+
label: this.state.title.length > 0 ? `${_.capitalize(values.entityName)} name` : " ",
|
|
277
277
|
labelStyle: {
|
|
278
278
|
fontSize: 13,
|
|
279
|
-
color:
|
|
279
|
+
color: "#fff"
|
|
280
280
|
},
|
|
281
281
|
placeholder: `${_.capitalize(values.entityName)} name`,
|
|
282
282
|
placeholderTextColor: "rgba(255,255,255,0.5)",
|
|
@@ -287,8 +287,8 @@ class NewGroup extends Component {
|
|
|
287
287
|
textStyle: {
|
|
288
288
|
marginTop: 10,
|
|
289
289
|
fontSize: 28,
|
|
290
|
-
color:
|
|
291
|
-
fontFamily:
|
|
290
|
+
color: "#fff",
|
|
291
|
+
fontFamily: "sf-semibold"
|
|
292
292
|
}
|
|
293
293
|
}))), this.state.title.length > 0 && /*#__PURE__*/React.createElement(View, {
|
|
294
294
|
style: [styles.footer, {
|
|
@@ -374,7 +374,7 @@ class NewGroup extends Component {
|
|
|
374
374
|
}
|
|
375
375
|
return /*#__PURE__*/React.createElement(View, {
|
|
376
376
|
style: {
|
|
377
|
-
flexDirection:
|
|
377
|
+
flexDirection: "row"
|
|
378
378
|
}
|
|
379
379
|
}, this.renderPreviewAtts(), /*#__PURE__*/React.createElement(View, {
|
|
380
380
|
style: styles.fill
|
|
@@ -385,11 +385,11 @@ class NewGroup extends Component {
|
|
|
385
385
|
large: true
|
|
386
386
|
}, "Select members"), /*#__PURE__*/React.createElement(Text, {
|
|
387
387
|
style: styles.tix
|
|
388
|
-
}, /*#__PURE__*/React.createElement(Text, null, this.state.selected.length),
|
|
388
|
+
}, /*#__PURE__*/React.createElement(Text, null, this.state.selected.length), " selected")));
|
|
389
389
|
}
|
|
390
390
|
render() {
|
|
391
391
|
return /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
392
|
-
behavior:
|
|
392
|
+
behavior: "padding",
|
|
393
393
|
style: styles.viewContainer
|
|
394
394
|
}, this.renderUploadMenu(), /*#__PURE__*/React.createElement(View, {
|
|
395
395
|
style: [stylez.genericPageContainer, this.state.page === 1 && {
|
|
@@ -398,22 +398,22 @@ class NewGroup extends Component {
|
|
|
398
398
|
}, /*#__PURE__*/React.createElement(Header, {
|
|
399
399
|
leftIcon: "close",
|
|
400
400
|
leftIconType: "pluss",
|
|
401
|
-
leftText: this.state.page !== 1 &&
|
|
401
|
+
leftText: this.state.page !== 1 && "Cancel",
|
|
402
402
|
leftIconStyle: this.state.page !== 1 && {
|
|
403
403
|
color: this.props.colourBrandingMain
|
|
404
404
|
},
|
|
405
405
|
onPressLeft: this.onPressBack.bind(this),
|
|
406
|
-
rightText: this.state.page !== 1 &&
|
|
406
|
+
rightText: this.state.page !== 1 && "Done",
|
|
407
407
|
onPressRight: this.clickCreate.bind(this),
|
|
408
408
|
optionalRightStyle: this.state.submittingGroup && {
|
|
409
409
|
opacity: 0.2
|
|
410
410
|
},
|
|
411
|
-
text: this.state.page === 1 ? `Create a ${values.entityName}` : this.state.title.length > 1 ? this.state.title :
|
|
411
|
+
text: this.state.page === 1 ? `Create a ${values.entityName}` : this.state.title.length > 1 ? this.state.title : " ",
|
|
412
412
|
style: this.state.page === 1 && {
|
|
413
413
|
backgroundColor: this.props.colourBrandingMain,
|
|
414
414
|
...styles.page1Header
|
|
415
415
|
},
|
|
416
|
-
textColour: this.state.page === 1 &&
|
|
416
|
+
textColour: this.state.page === 1 && "#fff"
|
|
417
417
|
}), this.renderPage(), this.state.page === 2 && /*#__PURE__*/React.createElement(StickyFooter, {
|
|
418
418
|
style: styles.footer
|
|
419
419
|
}, this.renderInviteButton())), this.renderInvitePopup());
|
|
@@ -422,8 +422,8 @@ class NewGroup extends Component {
|
|
|
422
422
|
const styles = {
|
|
423
423
|
footer: {
|
|
424
424
|
paddingHorizontal: 16,
|
|
425
|
-
flexDirection:
|
|
426
|
-
alignItems:
|
|
425
|
+
flexDirection: "row",
|
|
426
|
+
alignItems: "center"
|
|
427
427
|
},
|
|
428
428
|
footerButton: {
|
|
429
429
|
flex: 1
|
|
@@ -431,42 +431,42 @@ const styles = {
|
|
|
431
431
|
inviteButton: {
|
|
432
432
|
height: 36,
|
|
433
433
|
width: 120,
|
|
434
|
-
justifyContent:
|
|
435
|
-
alignItems:
|
|
434
|
+
justifyContent: "center",
|
|
435
|
+
alignItems: "center",
|
|
436
436
|
borderRadius: 5,
|
|
437
437
|
marginLeft: 10
|
|
438
438
|
},
|
|
439
439
|
inviteButtonText: {
|
|
440
|
-
color:
|
|
441
|
-
fontFamily:
|
|
440
|
+
color: "#fff",
|
|
441
|
+
fontFamily: "sf-semibold",
|
|
442
442
|
fontSize: 15
|
|
443
443
|
},
|
|
444
444
|
profilePic: {
|
|
445
445
|
borderWidth: 1,
|
|
446
|
-
borderColor:
|
|
446
|
+
borderColor: "#fff"
|
|
447
447
|
},
|
|
448
448
|
fill: {
|
|
449
449
|
flex: 1,
|
|
450
|
-
flexDirection:
|
|
450
|
+
flexDirection: "row-reverse"
|
|
451
451
|
},
|
|
452
452
|
attendeePreviews: {
|
|
453
453
|
width: 90,
|
|
454
454
|
height: 36,
|
|
455
|
-
flexDirection:
|
|
455
|
+
flexDirection: "row"
|
|
456
456
|
},
|
|
457
457
|
viewContainer: {
|
|
458
458
|
flex: 1,
|
|
459
|
-
backgroundColor:
|
|
459
|
+
backgroundColor: "#fff"
|
|
460
460
|
},
|
|
461
461
|
container: {
|
|
462
462
|
flex: 1,
|
|
463
|
-
position:
|
|
463
|
+
position: "relative"
|
|
464
464
|
},
|
|
465
465
|
greyContainer: {
|
|
466
|
-
backgroundColor:
|
|
466
|
+
backgroundColor: "#f0f0f5"
|
|
467
467
|
},
|
|
468
468
|
section: {
|
|
469
|
-
backgroundColor:
|
|
469
|
+
backgroundColor: "#fff",
|
|
470
470
|
marginTop: 16,
|
|
471
471
|
paddingHorizontal: 24,
|
|
472
472
|
elevation: 1
|
|
@@ -483,54 +483,54 @@ const styles = {
|
|
|
483
483
|
width: 5,
|
|
484
484
|
borderRadius: 3,
|
|
485
485
|
backgroundColor: COLOUR_TEAL,
|
|
486
|
-
alignSelf:
|
|
486
|
+
alignSelf: "center"
|
|
487
487
|
},
|
|
488
488
|
inputView: {
|
|
489
|
-
width:
|
|
489
|
+
width: "100%",
|
|
490
490
|
marginBottom: 5
|
|
491
491
|
},
|
|
492
492
|
labelStyle: {
|
|
493
493
|
fontSize: 15,
|
|
494
|
-
backgroundColor:
|
|
495
|
-
fontFamily:
|
|
494
|
+
backgroundColor: "transparent",
|
|
495
|
+
fontFamily: "sf-semibold",
|
|
496
496
|
color: TEXT_DARK
|
|
497
497
|
},
|
|
498
498
|
buttonText: {
|
|
499
|
-
textAlign:
|
|
500
|
-
fontFamily:
|
|
499
|
+
textAlign: "center",
|
|
500
|
+
fontFamily: "sf-bold",
|
|
501
501
|
fontSize: 17,
|
|
502
|
-
color:
|
|
502
|
+
color: "white",
|
|
503
503
|
borderRadius: 5
|
|
504
504
|
},
|
|
505
505
|
uploadButton: {
|
|
506
|
-
width:
|
|
506
|
+
width: "100%",
|
|
507
507
|
//height: 150,
|
|
508
|
-
alignContent:
|
|
509
|
-
position:
|
|
510
|
-
flexDirection:
|
|
511
|
-
justifyContent:
|
|
508
|
+
alignContent: "center",
|
|
509
|
+
position: "absolute",
|
|
510
|
+
flexDirection: "row",
|
|
511
|
+
justifyContent: "center",
|
|
512
512
|
top: 65
|
|
513
513
|
},
|
|
514
514
|
uploadText: {
|
|
515
|
-
fontFamily:
|
|
515
|
+
fontFamily: "sf-regular",
|
|
516
516
|
fontSize: 16,
|
|
517
|
-
textAlign:
|
|
517
|
+
textAlign: "center",
|
|
518
518
|
paddingVertical: 7,
|
|
519
|
-
backgroundColor:
|
|
519
|
+
backgroundColor: "transparent",
|
|
520
520
|
paddingHorizontal: 20,
|
|
521
521
|
color: TEXT_DARK
|
|
522
522
|
},
|
|
523
523
|
pageErrorText: {
|
|
524
|
-
backgroundColor:
|
|
524
|
+
backgroundColor: "transparent",
|
|
525
525
|
color: COLOUR_TANGERINE,
|
|
526
526
|
fontSize: 18,
|
|
527
|
-
fontFamily:
|
|
527
|
+
fontFamily: "sf-regular",
|
|
528
528
|
marginTop: 0,
|
|
529
|
-
textAlign:
|
|
529
|
+
textAlign: "center"
|
|
530
530
|
},
|
|
531
531
|
userPopupContainer: {
|
|
532
532
|
flex: 1,
|
|
533
|
-
backgroundColor:
|
|
533
|
+
backgroundColor: "#fff",
|
|
534
534
|
...Platform.select({
|
|
535
535
|
ios: {
|
|
536
536
|
paddingTop: 20
|
|
@@ -542,7 +542,7 @@ const styles = {
|
|
|
542
542
|
paddingTop: 10,
|
|
543
543
|
paddingLeft: 10,
|
|
544
544
|
paddingBottom: 10,
|
|
545
|
-
position:
|
|
545
|
+
position: "absolute",
|
|
546
546
|
right: 0,
|
|
547
547
|
top: 0,
|
|
548
548
|
borderRadius: 5,
|
|
@@ -554,7 +554,7 @@ const styles = {
|
|
|
554
554
|
})
|
|
555
555
|
},
|
|
556
556
|
close: {
|
|
557
|
-
textShadowColor:
|
|
557
|
+
textShadowColor: "rgba(0,0,0,0.3)",
|
|
558
558
|
textShadowOffset: {
|
|
559
559
|
width: 2,
|
|
560
560
|
height: 1
|
|
@@ -564,41 +564,41 @@ const styles = {
|
|
|
564
564
|
listItem: {
|
|
565
565
|
paddingBottom: 10,
|
|
566
566
|
paddingHorizontal: 0,
|
|
567
|
-
justifyContent:
|
|
568
|
-
flexDirection:
|
|
569
|
-
position:
|
|
567
|
+
justifyContent: "flex-start",
|
|
568
|
+
flexDirection: "row",
|
|
569
|
+
position: "relative"
|
|
570
570
|
},
|
|
571
571
|
listItemTextContainer: {
|
|
572
572
|
flex: 1,
|
|
573
|
-
flexDirection:
|
|
574
|
-
justifyContent:
|
|
573
|
+
flexDirection: "column",
|
|
574
|
+
justifyContent: "space-around",
|
|
575
575
|
paddingLeft: 10
|
|
576
576
|
},
|
|
577
577
|
searchingContactsContainer: {
|
|
578
|
-
flexDirection:
|
|
579
|
-
flexWrap:
|
|
580
|
-
alignItems:
|
|
578
|
+
flexDirection: "row",
|
|
579
|
+
flexWrap: "wrap",
|
|
580
|
+
alignItems: "center",
|
|
581
581
|
paddingTop: 20
|
|
582
582
|
},
|
|
583
583
|
searchingContactsInnerContainer: {
|
|
584
584
|
borderBottomWidth: 1,
|
|
585
|
-
borderBottomColor:
|
|
586
|
-
flexDirection:
|
|
587
|
-
flexWrap:
|
|
588
|
-
alignItems:
|
|
585
|
+
borderBottomColor: "#ccc",
|
|
586
|
+
flexDirection: "row",
|
|
587
|
+
flexWrap: "wrap",
|
|
588
|
+
alignItems: "center",
|
|
589
589
|
flex: 1
|
|
590
590
|
},
|
|
591
591
|
searchingContacts: {
|
|
592
592
|
flex: 1,
|
|
593
593
|
fontSize: 16,
|
|
594
|
-
fontFamily:
|
|
594
|
+
fontFamily: "sf-regular",
|
|
595
595
|
minWidth: 100
|
|
596
596
|
},
|
|
597
597
|
emptySearchingContacts: {
|
|
598
598
|
opacity: 0.5
|
|
599
599
|
},
|
|
600
600
|
toText: {
|
|
601
|
-
fontFamily:
|
|
601
|
+
fontFamily: "sf-regular",
|
|
602
602
|
fontSize: 12,
|
|
603
603
|
color: TEXT_DARK,
|
|
604
604
|
opacity: 0.5,
|
|
@@ -607,12 +607,12 @@ const styles = {
|
|
|
607
607
|
selectedContact: {
|
|
608
608
|
paddingTop: 10,
|
|
609
609
|
paddingRight: 5,
|
|
610
|
-
fontFamily:
|
|
610
|
+
fontFamily: "sf-bold",
|
|
611
611
|
fontSize: 16,
|
|
612
612
|
color: COLOUR_PURPLE
|
|
613
613
|
},
|
|
614
614
|
page1Header: {
|
|
615
|
-
shadowColor:
|
|
615
|
+
shadowColor: "transparent",
|
|
616
616
|
shadowOffset: {
|
|
617
617
|
width: 0,
|
|
618
618
|
height: 0
|
|
@@ -623,21 +623,21 @@ const styles = {
|
|
|
623
623
|
imageContainer: {
|
|
624
624
|
width: PHOTO_WIDTH,
|
|
625
625
|
height: PHOTO_HEIGHT,
|
|
626
|
-
backgroundColor:
|
|
627
|
-
borderStyle:
|
|
628
|
-
justifyContent:
|
|
629
|
-
alignItems:
|
|
626
|
+
backgroundColor: "#fff",
|
|
627
|
+
borderStyle: "dashed",
|
|
628
|
+
justifyContent: "center",
|
|
629
|
+
alignItems: "center",
|
|
630
630
|
borderWidth: 1,
|
|
631
631
|
borderColor: LINEGREY,
|
|
632
632
|
borderRadius: 4
|
|
633
633
|
},
|
|
634
634
|
tix: {
|
|
635
|
-
fontFamily:
|
|
635
|
+
fontFamily: "sf-semibold",
|
|
636
636
|
color: TEXT_LIGHT,
|
|
637
637
|
fontSize: 14,
|
|
638
|
-
textAlign:
|
|
638
|
+
textAlign: "center",
|
|
639
639
|
flex: 1,
|
|
640
|
-
alignSelf:
|
|
640
|
+
alignSelf: "center"
|
|
641
641
|
},
|
|
642
642
|
toggleContainer: {
|
|
643
643
|
paddingHorizontal: 16,
|