@plusscommunities/pluss-core-app 8.0.28 → 8.0.31
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 +29 -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 +223 -0
- package/dist/module/actions/UserActions.js.map +1 -0
- package/dist/module/actions/UserSettingsActions.js +14 -0
- package/dist/module/actions/UserSettingsActions.js.map +1 -0
- package/dist/module/actions/index.js +6 -0
- package/dist/module/actions/index.js.map +1 -0
- package/dist/module/actions/types.js +17 -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 +161 -0
- package/dist/module/apis/eventActions.js.map +1 -0
- package/dist/module/apis/fileActions.js +93 -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 +13 -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 +76 -0
- package/dist/module/apis/reactionActions.js.map +1 -0
- package/dist/module/apis/settingActions.js +22 -0
- package/dist/module/apis/settingActions.js.map +1 -0
- package/dist/module/apis/stringActions.js +30 -0
- package/dist/module/apis/stringActions.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/dist/module/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-light-300.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
- package/dist/module/assets/icons/reactions/heart.png +0 -0
- package/dist/module/assets/icons/reactions/party.png +0 -0
- package/dist/module/assets/icons/reactions/sad.png +0 -0
- package/dist/module/assets/icons/reactions/smile.png +0 -0
- package/dist/module/colours.js +165 -0
- package/dist/module/colours.js.map +1 -0
- package/dist/module/components/AddButton.js +43 -0
- package/dist/module/components/AddButton.js.map +1 -0
- package/dist/module/components/AddToCalendarButton.js +225 -0
- package/dist/module/components/AddToCalendarButton.js.map +1 -0
- package/dist/module/components/Attachment.js +55 -0
- package/dist/module/components/Attachment.js.map +1 -0
- package/dist/module/components/AudienceSelectorLauncher.js +64 -0
- package/dist/module/components/AudienceSelectorLauncher.js.map +1 -0
- package/dist/module/components/AudienceSelectorPage.js +351 -0
- package/dist/module/components/AudienceSelectorPage.js.map +1 -0
- package/dist/module/components/AutoOffsetImage.js +184 -0
- package/dist/module/components/AutoOffsetImage.js.map +1 -0
- package/dist/module/components/BackButton.js +58 -0
- package/dist/module/components/BackButton.js.map +1 -0
- package/dist/module/components/CalendarPopup.js +126 -0
- package/dist/module/components/CalendarPopup.js.map +1 -0
- package/dist/module/components/CategoryTabs.js +155 -0
- package/dist/module/components/CategoryTabs.js.map +1 -0
- package/dist/module/components/CommentReply.js +334 -0
- package/dist/module/components/CommentReply.js.map +1 -0
- package/dist/module/components/CommentSection.js +823 -0
- package/dist/module/components/CommentSection.js.map +1 -0
- package/dist/module/components/ConfirmPopup.js +109 -0
- package/dist/module/components/ConfirmPopup.js.map +1 -0
- package/dist/module/components/ConfirmationPopup.js +72 -0
- package/dist/module/components/ConfirmationPopup.js.map +1 -0
- package/dist/module/components/DocumentUploader.js +253 -0
- package/dist/module/components/DocumentUploader.js.map +1 -0
- package/dist/module/components/DropDownItem.js +75 -0
- package/dist/module/components/DropDownItem.js.map +1 -0
- package/dist/module/components/DropDownMenu.js +41 -0
- package/dist/module/components/DropDownMenu.js.map +1 -0
- package/dist/module/components/EmptyStateMain.js +51 -0
- package/dist/module/components/EmptyStateMain.js.map +1 -0
- package/dist/module/components/EmptyStateWidget.js +48 -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 +76 -0
- package/dist/module/components/FontScalePopup.js.map +1 -0
- package/dist/module/components/Forbidden.js +58 -0
- package/dist/module/components/Forbidden.js.map +1 -0
- package/dist/module/components/FormCard.js +25 -0
- package/dist/module/components/FormCard.js.map +1 -0
- package/dist/module/components/FormCardSection.js +214 -0
- package/dist/module/components/FormCardSection.js.map +1 -0
- package/dist/module/components/FormCardSectionOptionLauncher.js +73 -0
- package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -0
- package/dist/module/components/FormattedText.js +133 -0
- package/dist/module/components/FormattedText.js.map +1 -0
- package/dist/module/components/GenericInput.js +151 -0
- package/dist/module/components/GenericInput.js.map +1 -0
- package/dist/module/components/GenericInputSection.js +173 -0
- package/dist/module/components/GenericInputSection.js.map +1 -0
- package/dist/module/components/Header.js +459 -0
- package/dist/module/components/Header.js.map +1 -0
- package/dist/module/components/Icon.js +109 -0
- package/dist/module/components/Icon.js.map +1 -0
- package/dist/module/components/ImagePopup.js +400 -0
- package/dist/module/components/ImagePopup.js.map +1 -0
- package/dist/module/components/ImageUploadProgress.js +69 -0
- package/dist/module/components/ImageUploadProgress.js.map +1 -0
- package/dist/module/components/ImageUploader.js +831 -0
- package/dist/module/components/ImageUploader.js.map +1 -0
- package/dist/module/components/InlineButton.js +66 -0
- package/dist/module/components/InlineButton.js.map +1 -0
- package/dist/module/components/Input.js +156 -0
- package/dist/module/components/Input.js.map +1 -0
- package/dist/module/components/LoadingCircles.js +219 -0
- package/dist/module/components/LoadingCircles.js.map +1 -0
- package/dist/module/components/LoadingIndicator.js +86 -0
- package/dist/module/components/LoadingIndicator.js.map +1 -0
- package/dist/module/components/LoadingStateWidget.js +46 -0
- package/dist/module/components/LoadingStateWidget.js.map +1 -0
- package/dist/module/components/MediaPlayer.js +407 -0
- package/dist/module/components/MediaPlayer.js.map +1 -0
- package/dist/module/components/MiddlePopup.js +49 -0
- package/dist/module/components/MiddlePopup.js.map +1 -0
- package/dist/module/components/PDFPopup.js +296 -0
- package/dist/module/components/PDFPopup.js.map +1 -0
- package/dist/module/components/PlussChat.js +1078 -0
- package/dist/module/components/PlussChat.js.map +1 -0
- package/dist/module/components/PlussChatMessage.js +299 -0
- package/dist/module/components/PlussChatMessage.js.map +1 -0
- package/dist/module/components/PlussChatTime.js +59 -0
- package/dist/module/components/PlussChatTime.js.map +1 -0
- package/dist/module/components/Popup.js +126 -0
- package/dist/module/components/Popup.js.map +1 -0
- package/dist/module/components/PopupMenu.js +120 -0
- package/dist/module/components/PopupMenu.js.map +1 -0
- package/dist/module/components/PositionedImage.js +313 -0
- package/dist/module/components/PositionedImage.js.map +1 -0
- package/dist/module/components/ProfilePic.js +105 -0
- package/dist/module/components/ProfilePic.js.map +1 -0
- package/dist/module/components/RadioButton.js +78 -0
- package/dist/module/components/RadioButton.js.map +1 -0
- package/dist/module/components/Reaction.js +117 -0
- package/dist/module/components/Reaction.js.map +1 -0
- package/dist/module/components/Reactions.js +71 -0
- package/dist/module/components/Reactions.js.map +1 -0
- package/dist/module/components/SharingTools.js +189 -0
- package/dist/module/components/SharingTools.js.map +1 -0
- package/dist/module/components/Spinner.js +22 -0
- package/dist/module/components/Spinner.js.map +1 -0
- package/dist/module/components/StickyFooter.js +34 -0
- package/dist/module/components/StickyFooter.js.map +1 -0
- package/dist/module/components/Text.js +57 -0
- package/dist/module/components/Text.js.map +1 -0
- package/dist/module/components/TickIcon.js +24 -0
- package/dist/module/components/TickIcon.js.map +1 -0
- package/dist/module/components/Toggle.js +66 -0
- package/dist/module/components/Toggle.js.map +1 -0
- package/dist/module/components/TouchableSearchBar.js +68 -0
- package/dist/module/components/TouchableSearchBar.js.map +1 -0
- package/dist/module/components/UserListPopup.js +136 -0
- package/dist/module/components/UserListPopup.js.map +1 -0
- package/dist/module/components/UserListing.js +268 -0
- package/dist/module/components/UserListing.js.map +1 -0
- package/dist/module/components/VideoPopup.js +113 -0
- package/dist/module/components/VideoPopup.js.map +1 -0
- package/dist/module/components/WarningPopup.js +85 -0
- package/dist/module/components/WarningPopup.js.map +1 -0
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +289 -0
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -0
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js +117 -0
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -0
- package/dist/module/components/index.js +60 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +422 -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 +387 -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 +18 -0
- package/dist/module/constants.js.map +1 -0
- package/dist/module/helper.js +424 -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/js/images/detectFaces.js +31 -0
- package/dist/module/js/images/detectFaces.js.map +1 -0
- package/dist/module/js/images/findLandmarkRange.js +93 -0
- package/dist/module/js/images/findLandmarkRange.js.map +1 -0
- package/dist/module/js/images/getScaledOffset.js +81 -0
- package/dist/module/js/images/getScaledOffset.js.map +1 -0
- package/dist/module/js/site/getSiteLevelFromState.js +29 -0
- package/dist/module/js/site/getSiteLevelFromState.js.map +1 -0
- package/dist/module/js/site/isTVEnabled.js +10 -0
- package/dist/module/js/site/isTVEnabled.js.map +1 -0
- package/dist/module/session.js +58 -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/dist/module/withNavigationFocus.js +30 -0
- package/dist/module/withNavigationFocus.js.map +1 -0
- package/package.json +1 -1
- package/src/components/PDFPopup.js +130 -35
- package/src/components/react-native-expo-image-cropper/ExpoImageManipulator.js +91 -87
|
@@ -19,6 +19,7 @@ import AutoHeightImage from "react-native-auto-height-image";
|
|
|
19
19
|
import {
|
|
20
20
|
withSafeAreaInsets,
|
|
21
21
|
SafeAreaView,
|
|
22
|
+
SafeAreaProvider,
|
|
22
23
|
} from "react-native-safe-area-context";
|
|
23
24
|
import ImageCropOverlay from "./ImageCropOverlay";
|
|
24
25
|
|
|
@@ -292,98 +293,101 @@ class ExpoImageManipulator extends Component {
|
|
|
292
293
|
}}
|
|
293
294
|
>
|
|
294
295
|
{uri !== undefined ? (
|
|
295
|
-
<
|
|
296
|
-
<
|
|
297
|
-
{
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
<TouchableOpacity
|
|
305
|
-
onPress={() => {
|
|
306
|
-
onPictureChoosed({ uri, base64 });
|
|
307
|
-
this.onToggleModal();
|
|
308
|
-
}}
|
|
309
|
-
style={styles.headerButton}
|
|
310
|
-
>
|
|
311
|
-
<Text style={styles.headerButtonText}>{"Done"}</Text>
|
|
312
|
-
</TouchableOpacity>
|
|
313
|
-
</View>
|
|
314
|
-
) : (
|
|
315
|
-
<View style={styles.headerButtonContainer}>
|
|
316
|
-
<TouchableOpacity
|
|
317
|
-
onPress={this.onToggleModal}
|
|
318
|
-
style={styles.headerButton}
|
|
296
|
+
<SafeAreaProvider>
|
|
297
|
+
<View style={styles.container}>
|
|
298
|
+
<SafeAreaView style={[{ width }, styles.headerContainer]}>
|
|
299
|
+
{!cropMode ? (
|
|
300
|
+
<View
|
|
301
|
+
style={[
|
|
302
|
+
styles.headerButtonContainer,
|
|
303
|
+
{ justifyContent: "flex-end" },
|
|
304
|
+
]}
|
|
319
305
|
>
|
|
320
|
-
<
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
onPress={() => {
|
|
324
|
-
this.onCropImage(() => {
|
|
325
|
-
onPictureChoosed({
|
|
326
|
-
uri: this.state.uri,
|
|
327
|
-
base64: this.state.base64,
|
|
328
|
-
});
|
|
306
|
+
<TouchableOpacity
|
|
307
|
+
onPress={() => {
|
|
308
|
+
onPictureChoosed({ uri, base64 });
|
|
329
309
|
this.onToggleModal();
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
310
|
+
}}
|
|
311
|
+
style={styles.headerButton}
|
|
312
|
+
>
|
|
313
|
+
<Text style={styles.headerButtonText}>{"Done"}</Text>
|
|
314
|
+
</TouchableOpacity>
|
|
315
|
+
</View>
|
|
316
|
+
) : (
|
|
317
|
+
<View style={styles.headerButtonContainer}>
|
|
318
|
+
<TouchableOpacity
|
|
319
|
+
onPress={this.onToggleModal}
|
|
320
|
+
style={styles.headerButton}
|
|
321
|
+
>
|
|
322
|
+
<Text style={styles.headerButtonText}>{"Cancel"}</Text>
|
|
323
|
+
</TouchableOpacity>
|
|
324
|
+
<TouchableOpacity
|
|
325
|
+
onPress={() => {
|
|
326
|
+
this.onCropImage(() => {
|
|
327
|
+
onPictureChoosed({
|
|
328
|
+
uri: this.state.uri,
|
|
329
|
+
base64: this.state.base64,
|
|
330
|
+
});
|
|
331
|
+
this.onToggleModal();
|
|
332
|
+
});
|
|
333
|
+
}}
|
|
334
|
+
style={styles.headerButton}
|
|
335
|
+
>
|
|
336
|
+
<Text style={styles.headerButtonText}>
|
|
337
|
+
{processing ? "Processing" : "Done"}
|
|
338
|
+
</Text>
|
|
339
|
+
</TouchableOpacity>
|
|
340
|
+
</View>
|
|
341
|
+
)}
|
|
342
|
+
</SafeAreaView>
|
|
343
|
+
<SafeAreaView
|
|
344
|
+
onLayout={this.onContentLayout}
|
|
345
|
+
style={[styles.contentContainer, { width }]}
|
|
346
|
+
edges={["bottom"]}
|
|
358
347
|
>
|
|
359
|
-
<
|
|
360
|
-
style={{
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
minWidth={100}
|
|
381
|
-
topMargin={topMargin}
|
|
348
|
+
<ScrollView
|
|
349
|
+
style={{ position: "relative", flex: 1 }}
|
|
350
|
+
contentContainerStyle={{ backgroundColor: "black" }}
|
|
351
|
+
maximumZoomScale={5}
|
|
352
|
+
minimumZoomScale={0.5}
|
|
353
|
+
onScroll={this.onHandleScroll}
|
|
354
|
+
bounces={false}
|
|
355
|
+
showsHorizontalScrollIndicator={false}
|
|
356
|
+
showsVerticalScrollIndicator={false}
|
|
357
|
+
ref={(c) => (this.scrollView = c)}
|
|
358
|
+
scrollEventThrottle={16}
|
|
359
|
+
scrollEnabled={false}
|
|
360
|
+
pinchGestureEnabled={false}
|
|
361
|
+
>
|
|
362
|
+
<AutoHeightImage
|
|
363
|
+
style={{ backgroundColor: "black" }}
|
|
364
|
+
source={{ uri }}
|
|
365
|
+
resizeMode={imageRatio >= 1 ? "contain" : "contain"}
|
|
366
|
+
width={width}
|
|
367
|
+
height={originalHeight}
|
|
368
|
+
onLayout={this.calculateMaxSizes}
|
|
382
369
|
/>
|
|
383
|
-
|
|
384
|
-
|
|
370
|
+
{!!cropMode && (
|
|
371
|
+
<ImageCropOverlay
|
|
372
|
+
onLayoutChanged={(top, left, width, height) => {
|
|
373
|
+
this.currentSize.width = width;
|
|
374
|
+
this.currentSize.height = height;
|
|
375
|
+
this.currentPos.top = top;
|
|
376
|
+
this.currentPos.left = left;
|
|
377
|
+
}}
|
|
378
|
+
initialWidth={cropWidth}
|
|
379
|
+
initialHeight={cropHeight}
|
|
380
|
+
initialTop={cropInitialTop}
|
|
381
|
+
initialLeft={cropInitialLeft}
|
|
382
|
+
minHeight={100}
|
|
383
|
+
minWidth={100}
|
|
384
|
+
topMargin={topMargin}
|
|
385
|
+
/>
|
|
386
|
+
)}
|
|
387
|
+
</ScrollView>
|
|
388
|
+
</SafeAreaView>
|
|
385
389
|
</View>
|
|
386
|
-
</
|
|
390
|
+
</SafeAreaProvider>
|
|
387
391
|
) : (
|
|
388
392
|
<View style={styles.container}>
|
|
389
393
|
<Text style={styles.prepareMessageText}>Preparing...</Text>
|