@plusscommunities/pluss-circles-app-groups 8.0.9-beta.3 → 8.0.10

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.
Files changed (46) hide show
  1. package/dist/module/components/chat/ChatList.js +5 -4
  2. package/dist/module/components/chat/ChatList.js.map +1 -1
  3. package/dist/module/components/chat/ContactsList.js +2 -1
  4. package/dist/module/components/chat/ContactsList.js.map +1 -1
  5. package/dist/module/components/chat/KioskPeoplePage.js +2 -1
  6. package/dist/module/components/chat/KioskPeoplePage.js.map +1 -1
  7. package/dist/module/components/common/SwipeableUserListing.js +2 -1
  8. package/dist/module/components/common/SwipeableUserListing.js.map +1 -1
  9. package/dist/module/components/common/index.js +1 -1
  10. package/dist/module/components/common/index.js.map +1 -1
  11. package/dist/module/components/events/EventInvitePopup.js +2 -1
  12. package/dist/module/components/events/EventInvitePopup.js.map +1 -1
  13. package/dist/module/components/groups/EditGroup.js +4 -3
  14. package/dist/module/components/groups/EditGroup.js.map +1 -1
  15. package/dist/module/components/groups/GroupDetails.js +6 -5
  16. package/dist/module/components/groups/GroupDetails.js.map +1 -1
  17. package/dist/module/components/groups/GroupsWidget.js +2 -1
  18. package/dist/module/components/groups/GroupsWidget.js.map +1 -1
  19. package/dist/module/components/groups/NewGroup.js +2 -1
  20. package/dist/module/components/groups/NewGroup.js.map +1 -1
  21. package/dist/module/components/groups/PublicGroup.js +2 -1
  22. package/dist/module/components/groups/PublicGroup.js.map +1 -1
  23. package/dist/module/components/groups/PublicGroupAction.js +2 -1
  24. package/dist/module/components/groups/PublicGroupAction.js.map +1 -1
  25. package/dist/module/components/notifications/GroupInvite.js +2 -1
  26. package/dist/module/components/notifications/GroupInvite.js.map +1 -1
  27. package/dist/module/components/notifications/GroupInviteAction.js +2 -1
  28. package/dist/module/components/notifications/GroupInviteAction.js.map +1 -1
  29. package/dist/module/components/notifications/GroupMessage.js +2 -1
  30. package/dist/module/components/notifications/GroupMessage.js.map +1 -1
  31. package/package.json +1 -1
  32. package/src/components/chat/ChatList.js +7 -12
  33. package/src/components/chat/ContactsList.js +2 -1
  34. package/src/components/chat/KioskPeoplePage.js +2 -1
  35. package/src/components/common/SwipeableUserListing.js +2 -1
  36. package/src/components/common/index.js +1 -1
  37. package/src/components/events/EventInvitePopup.js +1 -1
  38. package/src/components/groups/EditGroup.js +2 -3
  39. package/src/components/groups/GroupDetails.js +6 -6
  40. package/src/components/groups/GroupsWidget.js +2 -1
  41. package/src/components/groups/NewGroup.js +1 -1
  42. package/src/components/groups/PublicGroup.js +2 -1
  43. package/src/components/groups/PublicGroupAction.js +2 -7
  44. package/src/components/notifications/GroupInvite.js +161 -160
  45. package/src/components/notifications/GroupInviteAction.js +2 -7
  46. package/src/components/notifications/GroupMessage.js +2 -1
@@ -1,182 +1,183 @@
1
1
  import React, { Component } from "react";
2
- import { Text, View, ImageBackground, TouchableOpacity } from "react-native";
2
+ import { View, ImageBackground, TouchableOpacity } from "react-native";
3
+ import { Text } from "@plusscommunities/pluss-core-app/components";
3
4
  import { connect } from "react-redux";
4
5
  import _ from "lodash";
5
6
  import {
6
- TEXT_LIGHT,
7
- TEXT_DARK,
8
- getFirstName,
9
- getMainBrandingColourFromState,
7
+ TEXT_LIGHT,
8
+ TEXT_DARK,
9
+ getFirstName,
10
+ getMainBrandingColourFromState,
10
11
  } from "../../js";
11
- import { FontAwesome } from "../common"
12
+ import { FontAwesome } from "../common";
12
13
  import GroupInviteAction from "./GroupInviteAction";
13
14
 
14
15
  class GroupInvite extends Component {
15
- constructor(props) {
16
- super(props);
17
- this.state = {
18
- event: {},
19
- showingAction: false,
20
- };
21
- }
16
+ constructor(props) {
17
+ super(props);
18
+ this.state = {
19
+ event: {},
20
+ showingAction: false,
21
+ };
22
+ }
22
23
 
23
- UNSAFE_componentWillMount() {
24
- this.setState({ event: this.props.event });
25
- }
24
+ UNSAFE_componentWillMount() {
25
+ this.setState({ event: this.props.event });
26
+ }
26
27
 
27
- onPressEvent() {
28
- this.setState({ showingAction: true });
29
- }
28
+ onPressEvent() {
29
+ this.setState({ showingAction: true });
30
+ }
30
31
 
31
- getShortName(name) {
32
- if (!name) {
33
- return name;
34
- }
35
- const names = name.split(",")[0].match(/\b\w/g);
36
- return names && names.length > 0
37
- ? `${names[0]}${names.length > 1 ? names[names.length - 1] : ""}`
38
- : "";
39
- }
32
+ getShortName(name) {
33
+ if (!name) {
34
+ return name;
35
+ }
36
+ const names = name.split(",")[0].match(/\b\w/g);
37
+ return names && names.length > 0
38
+ ? `${names[0]}${names.length > 1 ? names[names.length - 1] : ""}`
39
+ : "";
40
+ }
40
41
 
41
- renderInviteAction() {
42
- return (
43
- <GroupInviteAction
44
- group={this.state.event}
45
- onClose={() => {
46
- this.setState({ showingAction: false });
47
- }}
48
- showingAction={this.state.showingAction}
49
- />
50
- );
51
- }
42
+ renderInviteAction() {
43
+ return (
44
+ <GroupInviteAction
45
+ group={this.state.event}
46
+ onClose={() => {
47
+ this.setState({ showingAction: false });
48
+ }}
49
+ showingAction={this.state.showingAction}
50
+ />
51
+ );
52
+ }
52
53
 
53
- render() {
54
- if (_.isEmpty(this.state.event)) {
55
- return null;
56
- }
57
- return (
58
- <View>
59
- {this.renderInviteAction()}
60
- {this.props.showHeader && (
61
- <View style={styles.sectionTitleContainer}>
62
- <Text style={styles.sectionTitle} allowFontScaling={false}>
63
- {this.props.index === 0 ? "Invitations" : ""}
64
- </Text>
65
- </View>
66
- )}
67
- <TouchableOpacity
68
- onPress={this.onPressEvent.bind(this)}
69
- style={[
70
- styles.inviteCard,
71
- this.props.index === 0 && { marginLeft: 16 },
72
- ]}
73
- >
74
- <ImageBackground
75
- style={[
76
- styles.inviteImage,
77
- {
78
- backgroundColor: this.props.colourBrandingMain,
79
- justifyContent: "center",
80
- alignItems: "center",
81
- },
82
- ]}
83
- imageStyle={{ borderRadius: 5 }}
84
- source={this.state.event.Image && { uri: this.state.event.Image }}
85
- >
86
- {!this.state.event.Image && this.state.event.Title && (
87
- <Text style={styles.groupText}>
88
- {this.getShortName(this.state.event.Title)}
89
- </Text>
90
- )}
91
- <View style={styles.iconWrapper}>
92
- <FontAwesome
93
- name="users"
94
- style={[
95
- styles.iconStyle,
96
- { color: this.props.colourBrandingMain },
97
- ]}
98
- />
99
- </View>
100
- </ImageBackground>
101
- <View>
102
- <Text numberOfLines={1} style={styles.inviteTitle}>
103
- {this.state.event.Title}
104
- </Text>
105
- <Text numberOfLines={1} style={styles.inviteText}>
106
- {`${getFirstName(this.props.invite.InvitedBy)} invited you`}
107
- </Text>
108
- </View>
109
- </TouchableOpacity>
110
- </View>
111
- );
112
- }
54
+ render() {
55
+ if (_.isEmpty(this.state.event)) {
56
+ return null;
57
+ }
58
+ return (
59
+ <View>
60
+ {this.renderInviteAction()}
61
+ {this.props.showHeader && (
62
+ <View style={styles.sectionTitleContainer}>
63
+ <Text style={styles.sectionTitle} allowFontScaling={false}>
64
+ {this.props.index === 0 ? "Invitations" : ""}
65
+ </Text>
66
+ </View>
67
+ )}
68
+ <TouchableOpacity
69
+ onPress={this.onPressEvent.bind(this)}
70
+ style={[
71
+ styles.inviteCard,
72
+ this.props.index === 0 && { marginLeft: 16 },
73
+ ]}
74
+ >
75
+ <ImageBackground
76
+ style={[
77
+ styles.inviteImage,
78
+ {
79
+ backgroundColor: this.props.colourBrandingMain,
80
+ justifyContent: "center",
81
+ alignItems: "center",
82
+ },
83
+ ]}
84
+ imageStyle={{ borderRadius: 5 }}
85
+ source={this.state.event.Image && { uri: this.state.event.Image }}
86
+ >
87
+ {!this.state.event.Image && this.state.event.Title && (
88
+ <Text style={styles.groupText}>
89
+ {this.getShortName(this.state.event.Title)}
90
+ </Text>
91
+ )}
92
+ <View style={styles.iconWrapper}>
93
+ <FontAwesome
94
+ name="users"
95
+ style={[
96
+ styles.iconStyle,
97
+ { color: this.props.colourBrandingMain },
98
+ ]}
99
+ />
100
+ </View>
101
+ </ImageBackground>
102
+ <View>
103
+ <Text numberOfLines={1} style={styles.inviteTitle}>
104
+ {this.state.event.Title}
105
+ </Text>
106
+ <Text numberOfLines={1} style={styles.inviteText}>
107
+ {`${getFirstName(this.props.invite.InvitedBy)} invited you`}
108
+ </Text>
109
+ </View>
110
+ </TouchableOpacity>
111
+ </View>
112
+ );
113
+ }
113
114
  }
114
115
 
115
116
  const styles = {
116
- inviteCard: {
117
- width: 125,
118
- marginRight: 28,
119
- },
120
- inviteImage: {
121
- height: 125,
122
- width: 125,
123
- borderRadius: 5,
124
- },
125
- inviteTitle: {
126
- marginTop: 8,
127
- fontFamily: "sf-semibold",
128
- fontSize: 14,
129
- lineHeight: 16,
130
- color: TEXT_DARK,
131
- backgroundColor: "transparent",
132
- },
133
- inviteText: {
134
- fontFamily: "sf-regular",
135
- fontSize: 12,
136
- lineHeight: 16,
137
- color: TEXT_LIGHT,
138
- backgroundColor: "transparent",
139
- },
140
- groupText: {
141
- fontFamily: "sf-semibold",
142
- fontSize: 24,
143
- color: "#fff",
144
- backgroundColor: "transparent",
145
- },
146
- iconWrapper: {
147
- height: 24,
148
- width: 24,
149
- backgroundColor: "#fff",
150
- borderRadius: 12,
151
- position: "absolute",
152
- bottom: 5,
153
- right: 5,
154
- zIndex: 2,
155
- elevation: 2,
156
- justifyContent: "center",
157
- },
158
- iconStyle: {
159
- fontSize: 16,
160
- alignSelf: "center",
161
- },
162
- sectionTitleContainer: {
163
- height: 30,
164
- paddingHorizontal: 16,
165
- paddingBottom: 8,
166
- justifyContent: "center",
167
- },
168
- sectionTitle: {
169
- fontSize: 16,
170
- fontFamily: "sf-semibold",
171
- color: TEXT_DARK,
172
- },
117
+ inviteCard: {
118
+ width: 125,
119
+ marginRight: 28,
120
+ },
121
+ inviteImage: {
122
+ height: 125,
123
+ width: 125,
124
+ borderRadius: 5,
125
+ },
126
+ inviteTitle: {
127
+ marginTop: 8,
128
+ fontFamily: "sf-semibold",
129
+ fontSize: 14,
130
+ lineHeight: 16,
131
+ color: TEXT_DARK,
132
+ backgroundColor: "transparent",
133
+ },
134
+ inviteText: {
135
+ fontFamily: "sf-regular",
136
+ fontSize: 12,
137
+ lineHeight: 16,
138
+ color: TEXT_LIGHT,
139
+ backgroundColor: "transparent",
140
+ },
141
+ groupText: {
142
+ fontFamily: "sf-semibold",
143
+ fontSize: 24,
144
+ color: "#fff",
145
+ backgroundColor: "transparent",
146
+ },
147
+ iconWrapper: {
148
+ height: 24,
149
+ width: 24,
150
+ backgroundColor: "#fff",
151
+ borderRadius: 12,
152
+ position: "absolute",
153
+ bottom: 5,
154
+ right: 5,
155
+ zIndex: 2,
156
+ elevation: 2,
157
+ justifyContent: "center",
158
+ },
159
+ iconStyle: {
160
+ fontSize: 16,
161
+ alignSelf: "center",
162
+ },
163
+ sectionTitleContainer: {
164
+ height: 30,
165
+ paddingHorizontal: 16,
166
+ paddingBottom: 8,
167
+ justifyContent: "center",
168
+ },
169
+ sectionTitle: {
170
+ fontSize: 16,
171
+ fontFamily: "sf-semibold",
172
+ color: TEXT_DARK,
173
+ },
173
174
  };
174
175
 
175
176
  const mapStateToProps = (state) => {
176
- return {
177
- user: state.user,
178
- colourBrandingMain: getMainBrandingColourFromState(state),
179
- };
177
+ return {
178
+ user: state.user,
179
+ colourBrandingMain: getMainBrandingColourFromState(state),
180
+ };
180
181
  };
181
182
 
182
183
  export default connect(mapStateToProps, {})(GroupInvite);
@@ -1,11 +1,6 @@
1
1
  import React, { Component } from "react";
2
- import {
3
- ScrollView,
4
- Text,
5
- View,
6
- ImageBackground,
7
- Dimensions,
8
- } from "react-native";
2
+ import { Text } from "@plusscommunities/pluss-core-app/components";
3
+ import { ScrollView, View, ImageBackground, Dimensions } from "react-native";
9
4
  import { connect } from "react-redux";
10
5
  import _ from "lodash";
11
6
  import moment from "moment";
@@ -1,5 +1,6 @@
1
1
  import React, { Component } from "react";
2
- import { Text, View, TouchableOpacity, StyleSheet } from "react-native";
2
+ import { View, TouchableOpacity, StyleSheet } from "react-native";
3
+ import { Text } from "@plusscommunities/pluss-core-app/components";
3
4
  import { connect } from "react-redux";
4
5
  import _ from "lodash";
5
6
  import { ProfilePic } from "../common";