@plusscommunities/pluss-core-app 1.4.8 → 1.5.2
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/FollowerActions.js +34 -0
- package/dist/module/actions/FollowerActions.js.map +1 -0
- package/dist/module/actions/MediaActions.js +20 -0
- package/dist/module/actions/MediaActions.js.map +1 -0
- package/dist/module/actions/ResidentActions.js +26 -0
- package/dist/module/actions/ResidentActions.js.map +1 -0
- package/dist/module/actions/UserActions.js +214 -0
- package/dist/module/actions/UserActions.js.map +1 -0
- package/dist/module/actions/index.js +5 -0
- package/dist/module/actions/index.js.map +1 -0
- package/dist/module/actions/types.js +14 -0
- package/dist/module/actions/types.js.map +1 -0
- package/dist/module/apis/analyticsActions.js +20 -0
- package/dist/module/apis/analyticsActions.js.map +1 -0
- package/dist/module/apis/contactActions.js +27 -0
- package/dist/module/apis/contactActions.js.map +1 -0
- package/dist/module/apis/eventActions.js +163 -0
- package/dist/module/apis/eventActions.js.map +1 -0
- package/dist/module/apis/fileActions.js +96 -0
- package/dist/module/apis/fileActions.js.map +1 -0
- package/dist/module/apis/followerActions.js +38 -0
- package/dist/module/apis/followerActions.js.map +1 -0
- package/dist/module/apis/index.js +11 -0
- package/dist/module/apis/index.js.map +1 -0
- package/dist/module/apis/notificationActions.js +60 -0
- package/dist/module/apis/notificationActions.js.map +1 -0
- package/dist/module/apis/profileActions.js +14 -0
- package/dist/module/apis/profileActions.js.map +1 -0
- package/dist/module/apis/reactionActions.js +78 -0
- package/dist/module/apis/reactionActions.js.map +1 -0
- package/dist/module/apis/typeActions.js +15 -0
- package/dist/module/apis/typeActions.js.map +1 -0
- package/dist/module/apis/userActions.js +104 -0
- package/dist/module/apis/userActions.js.map +1 -0
- package/{assets → dist/module/assets}/icons/reactions/heart.png +0 -0
- package/{assets → dist/module/assets}/icons/reactions/party.png +0 -0
- package/{assets → dist/module/assets}/icons/reactions/sad.png +0 -0
- package/{assets → dist/module/assets}/icons/reactions/smile.png +0 -0
- package/dist/module/colours.js +149 -0
- package/dist/module/colours.js.map +1 -0
- package/dist/module/components/AddButton.js +45 -0
- package/dist/module/components/AddButton.js.map +1 -0
- package/dist/module/components/Attachment.js +59 -0
- package/dist/module/components/Attachment.js.map +1 -0
- package/dist/module/components/AudienceSelectorLauncher.js +70 -0
- package/dist/module/components/AudienceSelectorLauncher.js.map +1 -0
- package/dist/module/components/AudienceSelectorPage.js +376 -0
- package/dist/module/components/AudienceSelectorPage.js.map +1 -0
- package/dist/module/components/BackButton.js +62 -0
- package/dist/module/components/BackButton.js.map +1 -0
- package/dist/module/components/CategoryTabs.js +171 -0
- package/dist/module/components/CategoryTabs.js.map +1 -0
- package/dist/module/components/CommentReply.js +363 -0
- package/dist/module/components/CommentReply.js.map +1 -0
- package/dist/module/components/CommentSection.js +785 -0
- package/dist/module/components/CommentSection.js.map +1 -0
- package/dist/module/components/ConfirmPopup.js +85 -0
- package/dist/module/components/ConfirmPopup.js.map +1 -0
- package/dist/module/components/ConfirmationPopup.js +77 -0
- package/dist/module/components/ConfirmationPopup.js.map +1 -0
- package/dist/module/components/DropDownItem.js +82 -0
- package/dist/module/components/DropDownItem.js.map +1 -0
- package/dist/module/components/DropDownMenu.js +46 -0
- package/dist/module/components/DropDownMenu.js.map +1 -0
- package/dist/module/components/EmptyStateMain.js +50 -0
- package/dist/module/components/EmptyStateMain.js.map +1 -0
- package/dist/module/components/EmptyStateWidget.js +52 -0
- package/dist/module/components/EmptyStateWidget.js.map +1 -0
- package/dist/module/components/FontScaleButton.js +37 -0
- package/dist/module/components/FontScaleButton.js.map +1 -0
- package/dist/module/components/FontScalePopup.js +77 -0
- package/dist/module/components/FontScalePopup.js.map +1 -0
- package/dist/module/components/FormCard.js +28 -0
- package/dist/module/components/FormCard.js.map +1 -0
- package/dist/module/components/FormCardSection.js +240 -0
- package/dist/module/components/FormCardSection.js.map +1 -0
- package/dist/module/components/FormCardSectionOptionLauncher.js +77 -0
- package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -0
- package/dist/module/components/FormattedText.js +145 -0
- package/dist/module/components/FormattedText.js.map +1 -0
- package/dist/module/components/GenericInput.js +161 -0
- package/dist/module/components/GenericInput.js.map +1 -0
- package/dist/module/components/GenericInputSection.js +174 -0
- package/dist/module/components/GenericInputSection.js.map +1 -0
- package/dist/module/components/Header.js +491 -0
- package/dist/module/components/Header.js.map +1 -0
- package/dist/module/components/ImagePopup.js +257 -0
- package/dist/module/components/ImagePopup.js.map +1 -0
- package/dist/module/components/ImageUploadProgress.js +72 -0
- package/dist/module/components/ImageUploadProgress.js.map +1 -0
- package/dist/module/components/ImageUploader.js +850 -0
- package/dist/module/components/ImageUploader.js.map +1 -0
- package/dist/module/components/InlineButton.js +72 -0
- package/dist/module/components/InlineButton.js.map +1 -0
- package/dist/module/components/Input.js +164 -0
- package/dist/module/components/Input.js.map +1 -0
- package/dist/module/components/LoadingCircles.js +224 -0
- package/dist/module/components/LoadingCircles.js.map +1 -0
- package/dist/module/components/LoadingIndicator.js +95 -0
- package/dist/module/components/LoadingIndicator.js.map +1 -0
- package/dist/module/components/LoadingStateWidget.js +51 -0
- package/dist/module/components/LoadingStateWidget.js.map +1 -0
- package/dist/module/components/MediaPlayer.js +453 -0
- package/dist/module/components/MediaPlayer.js.map +1 -0
- package/dist/module/components/MiddlePopup.js +46 -0
- package/dist/module/components/MiddlePopup.js.map +1 -0
- package/dist/module/components/PDFPopup.js +188 -0
- package/dist/module/components/PDFPopup.js.map +1 -0
- package/dist/module/components/PlussChat.js +997 -0
- package/dist/module/components/PlussChat.js.map +1 -0
- package/dist/module/components/PlussChatMessage.js +204 -0
- package/dist/module/components/PlussChatMessage.js.map +1 -0
- package/dist/module/components/PlussChatTime.js +66 -0
- package/dist/module/components/PlussChatTime.js.map +1 -0
- package/dist/module/components/Popup.js +138 -0
- package/dist/module/components/Popup.js.map +1 -0
- package/dist/module/components/PopupMenu.js +128 -0
- package/dist/module/components/PopupMenu.js.map +1 -0
- package/dist/module/components/PositionedImage.js +333 -0
- package/dist/module/components/PositionedImage.js.map +1 -0
- package/dist/module/components/ProfilePic.js +119 -0
- package/dist/module/components/ProfilePic.js.map +1 -0
- package/dist/module/components/RadioButton.js +84 -0
- package/dist/module/components/RadioButton.js.map +1 -0
- package/dist/module/components/Reaction.js +129 -0
- package/dist/module/components/Reaction.js.map +1 -0
- package/dist/module/components/Reactions.js +84 -0
- package/dist/module/components/Reactions.js.map +1 -0
- package/dist/module/components/SharingTools.js +162 -0
- package/dist/module/components/SharingTools.js.map +1 -0
- package/dist/module/components/Spinner.js +25 -0
- package/dist/module/components/Spinner.js.map +1 -0
- package/dist/module/components/StickyFooter.js +37 -0
- package/dist/module/components/StickyFooter.js.map +1 -0
- package/dist/module/components/TextStyle.js +34 -0
- package/dist/module/components/TextStyle.js.map +1 -0
- package/dist/module/components/Toggle.js +70 -0
- package/dist/module/components/Toggle.js.map +1 -0
- package/dist/module/components/TouchableSearchBar.js +73 -0
- package/dist/module/components/TouchableSearchBar.js.map +1 -0
- package/dist/module/components/UserListPopup.js +146 -0
- package/dist/module/components/UserListPopup.js.map +1 -0
- package/dist/module/components/UserListing.js +291 -0
- package/dist/module/components/UserListing.js.map +1 -0
- package/dist/module/components/VideoPopup.js +123 -0
- package/dist/module/components/VideoPopup.js.map +1 -0
- package/dist/module/components/WarningPopup.js +87 -0
- package/dist/module/components/WarningPopup.js.map +1 -0
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +325 -0
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -0
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js +123 -0
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -0
- package/dist/module/components/index.js +53 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +416 -0
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -0
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +405 -0
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -0
- package/dist/module/config.js +27 -0
- package/dist/module/config.js.map +1 -0
- package/dist/module/constants.js +16 -0
- package/dist/module/constants.js.map +1 -0
- package/dist/module/fonts/index.js +2 -0
- package/dist/module/fonts/index.js.map +1 -0
- package/dist/module/fonts/pluss60-icons.js +5 -0
- package/dist/module/fonts/pluss60-icons.js.map +1 -0
- package/dist/module/fonts/pluss60-icons.json +1097 -0
- package/dist/module/helper.js +436 -0
- package/dist/module/helper.js.map +1 -0
- package/dist/module/index.js +13 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/session.js +54 -0
- package/dist/module/session.js.map +1 -0
- package/dist/module/styles.js +67 -0
- package/dist/module/styles.js.map +1 -0
- package/package.json +24 -7
- package/src/assets/icons/reactions/heart.png +0 -0
- package/src/assets/icons/reactions/party.png +0 -0
- package/src/assets/icons/reactions/sad.png +0 -0
- package/src/assets/icons/reactions/smile.png +0 -0
- package/src/components/CommentReply.js +3 -5
- package/src/components/CommentSection.js +4 -4
- package/src/components/MediaPlayer.js +14 -4
- package/src/components/VideoPopup.js +1 -1
- package/src/constants.js +4 -4
- package/src/helper.js +4 -4
package/package.json
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plusscommunities/pluss-core-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Core extension package for Pluss Communities platform",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "dist/module/index.js",
|
|
6
|
+
"module": "dist/module/index.js",
|
|
7
|
+
"react-native": "src/index.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/",
|
|
10
|
+
"src/"
|
|
11
|
+
],
|
|
6
12
|
"scripts": {
|
|
7
|
-
"
|
|
13
|
+
"build": "bob build",
|
|
14
|
+
"betapatch": "npm version prepatch --preid=beta",
|
|
8
15
|
"patch": "npm version patch",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"upload": "npm publish --access public
|
|
16
|
+
"betaupload": "npm run build && npm publish --access public --tag beta",
|
|
17
|
+
"betaupload:p": "npm run betapatch && npm run betaupload",
|
|
18
|
+
"upload": "npm run build && npm publish --access public",
|
|
12
19
|
"upload:p": "npm run patch && npm run upload"
|
|
13
20
|
},
|
|
14
21
|
"author": "Phillip Suh",
|
|
@@ -43,10 +50,20 @@
|
|
|
43
50
|
"react-native-vimeo-iframe": "^1.0.4",
|
|
44
51
|
"react-native-webview": "11.15.0",
|
|
45
52
|
"react-native-youtube-iframe": "^2.2.1",
|
|
46
|
-
"react-redux": "^
|
|
53
|
+
"react-redux": "^7.2.6"
|
|
47
54
|
},
|
|
48
55
|
"peerDependencies": {
|
|
49
56
|
"react-native-gifted-chat": "^0.16.3",
|
|
50
57
|
"axios": "^0.16.2"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"react-native-builder-bob": "^0.18.2"
|
|
61
|
+
},
|
|
62
|
+
"react-native-builder-bob": {
|
|
63
|
+
"source": "src",
|
|
64
|
+
"output": "dist",
|
|
65
|
+
"targets": [
|
|
66
|
+
"module"
|
|
67
|
+
]
|
|
51
68
|
}
|
|
52
69
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -29,7 +29,7 @@ class CommentReply extends Component {
|
|
|
29
29
|
componentDidMount() {
|
|
30
30
|
if (this.props.commentSection && this.props.commentSection.current) {
|
|
31
31
|
this.setState({
|
|
32
|
-
commentsLoading: this.props.commentSection.current.
|
|
32
|
+
commentsLoading: this.props.commentSection.current.isLoading(),
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -94,13 +94,13 @@ class CommentReply extends Component {
|
|
|
94
94
|
});
|
|
95
95
|
Keyboard.dismiss();
|
|
96
96
|
if (this.props.commentSection) {
|
|
97
|
-
this.props.commentSection?.current?.
|
|
97
|
+
this.props.commentSection?.current?.startedAddingComment();
|
|
98
98
|
}
|
|
99
99
|
reactionActions
|
|
100
100
|
.addComment(this.props.entityId, this.props.entityType, this.props.entityName, this.props.site, text, image, this.props.threadId)
|
|
101
101
|
.then(res => {
|
|
102
102
|
if (this.props.commentSection) {
|
|
103
|
-
this.props.commentSection?.current?.
|
|
103
|
+
this.props.commentSection?.current?.commentAdded(res.data);
|
|
104
104
|
}
|
|
105
105
|
this.setState({
|
|
106
106
|
addingComment: false,
|
|
@@ -182,11 +182,9 @@ class CommentReply extends Component {
|
|
|
182
182
|
|
|
183
183
|
render() {
|
|
184
184
|
if (_.includes(this.props.user.hidden, 'addComment')) {
|
|
185
|
-
console.log('no way');
|
|
186
185
|
return null;
|
|
187
186
|
}
|
|
188
187
|
if (this.state.commentsLoading) {
|
|
189
|
-
console.log('still loading');
|
|
190
188
|
return null;
|
|
191
189
|
}
|
|
192
190
|
return (
|
|
@@ -179,7 +179,7 @@ class CommentSection extends Component {
|
|
|
179
179
|
commentsLoadStarted: true,
|
|
180
180
|
commentsLoading: true,
|
|
181
181
|
});
|
|
182
|
-
this.props.commentReply?.current?.
|
|
182
|
+
this.props.commentReply?.current?.loadingStarted();
|
|
183
183
|
|
|
184
184
|
this.loadComments();
|
|
185
185
|
}
|
|
@@ -221,7 +221,7 @@ class CommentSection extends Component {
|
|
|
221
221
|
},
|
|
222
222
|
);
|
|
223
223
|
//if (this.props.commentReply) {
|
|
224
|
-
this.props.commentReply?.current?.
|
|
224
|
+
this.props.commentReply?.current?.loadingCompleted();
|
|
225
225
|
//}
|
|
226
226
|
if (this.props.live) {
|
|
227
227
|
this.loadTimer = setTimeout(() => {
|
|
@@ -231,9 +231,9 @@ class CommentSection extends Component {
|
|
|
231
231
|
});
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
isLoading() {
|
|
234
|
+
isLoading = () => {
|
|
235
235
|
return this.state.commentsLoading;
|
|
236
|
-
}
|
|
236
|
+
};
|
|
237
237
|
|
|
238
238
|
startedAddingComment() {
|
|
239
239
|
this.setState({
|
|
@@ -4,7 +4,7 @@ import * as ScreenOrientation from 'expo-screen-orientation';
|
|
|
4
4
|
import { DeviceMotion } from 'expo-sensors';
|
|
5
5
|
import YoutubePlayer, { getYoutubeMeta } from 'react-native-youtube-iframe';
|
|
6
6
|
import { Vimeo } from 'react-native-vimeo-iframe';
|
|
7
|
-
import WebView from 'react-native-webview';
|
|
7
|
+
import { WebView } from 'react-native-webview';
|
|
8
8
|
import { Video } from 'expo-av';
|
|
9
9
|
import VideoPlayer from 'expo-video-player';
|
|
10
10
|
import { Spinner } from './Spinner';
|
|
@@ -259,14 +259,14 @@ class MediaPlayer extends Component {
|
|
|
259
259
|
</View>
|
|
260
260
|
);
|
|
261
261
|
|
|
262
|
-
getWebviewPlayer = embedUrl => (
|
|
262
|
+
getWebviewPlayer = (embedUrl, width, height) => (
|
|
263
263
|
<WebView
|
|
264
264
|
startInLoadingState
|
|
265
265
|
javaScriptEnabled
|
|
266
266
|
scrollEnabled={false}
|
|
267
267
|
automaticallyAdjustContentInsets={false}
|
|
268
268
|
mediaPlaybackRequiresUserAction
|
|
269
|
-
style={styles.webView}
|
|
269
|
+
style={[styles.webView, { width, height }]}
|
|
270
270
|
source={{ uri: embedUrl }}
|
|
271
271
|
/>
|
|
272
272
|
);
|
|
@@ -333,23 +333,28 @@ class MediaPlayer extends Component {
|
|
|
333
333
|
if (isYoutube) {
|
|
334
334
|
const youtubeId = this.getYoutubeVideoId(source);
|
|
335
335
|
embedUrl = youtubeId ? `https://www.youtube.com/embed/${youtubeId}` : source;
|
|
336
|
+
// console.log('getYoutubePlayer', youtubeId, width, height, autoPlay);
|
|
336
337
|
player = this.getYoutubePlayer(youtubeId, width, height, autoPlay);
|
|
337
338
|
} else if (isVimeo) {
|
|
338
339
|
const vimeoId = this.getVimeoId(source);
|
|
339
340
|
embedUrl = source;
|
|
341
|
+
// console.log('getVimeoPlayer', vimeoId, width, height, autoPlay);
|
|
340
342
|
player = this.getVimeoPlayer(vimeoId, width, height, autoPlay);
|
|
341
343
|
} else if (playbackId) {
|
|
342
344
|
embedUrl = this.getStreamPlaybackUrl();
|
|
345
|
+
// console.log('getStreamPlayer', embedUrl, width, height, autoPlay);
|
|
343
346
|
player = this.getStreamPlayer(embedUrl, width, height, autoPlay);
|
|
344
347
|
showLoading = true;
|
|
345
348
|
} else if (useVideoPlayer) {
|
|
346
349
|
embedUrl = source;
|
|
350
|
+
// console.log('getVideoPlayer', embedUrl, width, height, autoPlay);
|
|
347
351
|
player = this.getVideoPlayer(embedUrl, width, height, autoPlay);
|
|
348
352
|
}
|
|
349
353
|
}
|
|
350
354
|
if (!player && isUrlLink) {
|
|
351
355
|
embedUrl = source;
|
|
352
|
-
|
|
356
|
+
console.log('getWebviewPlayer', embedUrl, width, height);
|
|
357
|
+
player = this.getWebviewPlayer(embedUrl, width, height);
|
|
353
358
|
}
|
|
354
359
|
|
|
355
360
|
// console.log({
|
|
@@ -361,6 +366,10 @@ class MediaPlayer extends Component {
|
|
|
361
366
|
// Width: width,
|
|
362
367
|
// Height: height,
|
|
363
368
|
// HeightFactor: heightFactor,
|
|
369
|
+
// isYoutube,
|
|
370
|
+
// isVimeo,
|
|
371
|
+
// playbackId,
|
|
372
|
+
// useVideoPlayer,
|
|
364
373
|
// });
|
|
365
374
|
return (
|
|
366
375
|
<View style={styles.container}>
|
|
@@ -377,6 +386,7 @@ class MediaPlayer extends Component {
|
|
|
377
386
|
|
|
378
387
|
const styles = StyleSheet.create({
|
|
379
388
|
container: {
|
|
389
|
+
flex: 1,
|
|
380
390
|
backgroundColor: '#000',
|
|
381
391
|
alignItems: 'center',
|
|
382
392
|
justifyContent: 'center',
|
|
@@ -4,7 +4,7 @@ import * as ScreenOrientation from 'expo-screen-orientation';
|
|
|
4
4
|
import { StatusBarHeight, getCompressed, imageExists } from '../helper';
|
|
5
5
|
import { Pl60Icon } from '../fonts';
|
|
6
6
|
import { SharingTools } from './SharingTools';
|
|
7
|
-
import
|
|
7
|
+
import MediaPlayer from './MediaPlayer';
|
|
8
8
|
|
|
9
9
|
class VideoPopup extends Component {
|
|
10
10
|
constructor(props) {
|
package/src/constants.js
CHANGED
|
@@ -5,10 +5,10 @@ const HEADER_HEIGHT = 70;
|
|
|
5
5
|
|
|
6
6
|
// const getFooterIcons = () => {
|
|
7
7
|
// return {
|
|
8
|
-
// events: require(
|
|
9
|
-
// foryou: require(
|
|
10
|
-
// friends: require(
|
|
11
|
-
// home: require(
|
|
8
|
+
// events: require(`./assets/icons/footer/whats-on.png`),
|
|
9
|
+
// foryou: require(`./assets/icons/footer/hub.png`),
|
|
10
|
+
// friends: require(`./assets/icons/footer/people.png`),
|
|
11
|
+
// home: require(`./assets/icons/footer/home.png`),
|
|
12
12
|
// };
|
|
13
13
|
// };
|
|
14
14
|
|
package/src/helper.js
CHANGED
|
@@ -287,19 +287,19 @@ const getReactions = () => {
|
|
|
287
287
|
return [
|
|
288
288
|
{
|
|
289
289
|
key: 'heart',
|
|
290
|
-
icon: require('
|
|
290
|
+
icon: require('./assets/icons/reactions/heart.png'),
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
key: 'smile',
|
|
294
|
-
icon: require('
|
|
294
|
+
icon: require('./assets/icons/reactions/smile.png'),
|
|
295
295
|
},
|
|
296
296
|
{
|
|
297
297
|
key: 'sad',
|
|
298
|
-
icon: require('
|
|
298
|
+
icon: require('./assets/icons/reactions/sad.png'),
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
301
|
key: 'party',
|
|
302
|
-
icon: require('
|
|
302
|
+
icon: require('./assets/icons/reactions/party.png'),
|
|
303
303
|
},
|
|
304
304
|
];
|
|
305
305
|
};
|