@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.
Files changed (211) hide show
  1. package/dist/module/actions/FollowerActions.js +34 -0
  2. package/dist/module/actions/FollowerActions.js.map +1 -0
  3. package/dist/module/actions/MediaActions.js +29 -0
  4. package/dist/module/actions/MediaActions.js.map +1 -0
  5. package/dist/module/actions/ResidentActions.js +26 -0
  6. package/dist/module/actions/ResidentActions.js.map +1 -0
  7. package/dist/module/actions/UserActions.js +223 -0
  8. package/dist/module/actions/UserActions.js.map +1 -0
  9. package/dist/module/actions/UserSettingsActions.js +14 -0
  10. package/dist/module/actions/UserSettingsActions.js.map +1 -0
  11. package/dist/module/actions/index.js +6 -0
  12. package/dist/module/actions/index.js.map +1 -0
  13. package/dist/module/actions/types.js +17 -0
  14. package/dist/module/actions/types.js.map +1 -0
  15. package/dist/module/apis/analyticsActions.js +20 -0
  16. package/dist/module/apis/analyticsActions.js.map +1 -0
  17. package/dist/module/apis/contactActions.js +27 -0
  18. package/dist/module/apis/contactActions.js.map +1 -0
  19. package/dist/module/apis/eventActions.js +161 -0
  20. package/dist/module/apis/eventActions.js.map +1 -0
  21. package/dist/module/apis/fileActions.js +93 -0
  22. package/dist/module/apis/fileActions.js.map +1 -0
  23. package/dist/module/apis/followerActions.js +38 -0
  24. package/dist/module/apis/followerActions.js.map +1 -0
  25. package/dist/module/apis/index.js +13 -0
  26. package/dist/module/apis/index.js.map +1 -0
  27. package/dist/module/apis/notificationActions.js +60 -0
  28. package/dist/module/apis/notificationActions.js.map +1 -0
  29. package/dist/module/apis/profileActions.js +14 -0
  30. package/dist/module/apis/profileActions.js.map +1 -0
  31. package/dist/module/apis/reactionActions.js +76 -0
  32. package/dist/module/apis/reactionActions.js.map +1 -0
  33. package/dist/module/apis/settingActions.js +22 -0
  34. package/dist/module/apis/settingActions.js.map +1 -0
  35. package/dist/module/apis/stringActions.js +30 -0
  36. package/dist/module/apis/stringActions.js.map +1 -0
  37. package/dist/module/apis/typeActions.js +15 -0
  38. package/dist/module/apis/typeActions.js.map +1 -0
  39. package/dist/module/apis/userActions.js +104 -0
  40. package/dist/module/apis/userActions.js.map +1 -0
  41. package/dist/module/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
  42. package/dist/module/assets/icons/fontawesome/fa-light-300.ttf +0 -0
  43. package/dist/module/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
  44. package/dist/module/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
  45. package/dist/module/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
  46. package/dist/module/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
  47. package/dist/module/assets/icons/reactions/heart.png +0 -0
  48. package/dist/module/assets/icons/reactions/party.png +0 -0
  49. package/dist/module/assets/icons/reactions/sad.png +0 -0
  50. package/dist/module/assets/icons/reactions/smile.png +0 -0
  51. package/dist/module/colours.js +165 -0
  52. package/dist/module/colours.js.map +1 -0
  53. package/dist/module/components/AddButton.js +43 -0
  54. package/dist/module/components/AddButton.js.map +1 -0
  55. package/dist/module/components/AddToCalendarButton.js +225 -0
  56. package/dist/module/components/AddToCalendarButton.js.map +1 -0
  57. package/dist/module/components/Attachment.js +55 -0
  58. package/dist/module/components/Attachment.js.map +1 -0
  59. package/dist/module/components/AudienceSelectorLauncher.js +64 -0
  60. package/dist/module/components/AudienceSelectorLauncher.js.map +1 -0
  61. package/dist/module/components/AudienceSelectorPage.js +351 -0
  62. package/dist/module/components/AudienceSelectorPage.js.map +1 -0
  63. package/dist/module/components/AutoOffsetImage.js +184 -0
  64. package/dist/module/components/AutoOffsetImage.js.map +1 -0
  65. package/dist/module/components/BackButton.js +58 -0
  66. package/dist/module/components/BackButton.js.map +1 -0
  67. package/dist/module/components/CalendarPopup.js +126 -0
  68. package/dist/module/components/CalendarPopup.js.map +1 -0
  69. package/dist/module/components/CategoryTabs.js +155 -0
  70. package/dist/module/components/CategoryTabs.js.map +1 -0
  71. package/dist/module/components/CommentReply.js +334 -0
  72. package/dist/module/components/CommentReply.js.map +1 -0
  73. package/dist/module/components/CommentSection.js +823 -0
  74. package/dist/module/components/CommentSection.js.map +1 -0
  75. package/dist/module/components/ConfirmPopup.js +109 -0
  76. package/dist/module/components/ConfirmPopup.js.map +1 -0
  77. package/dist/module/components/ConfirmationPopup.js +72 -0
  78. package/dist/module/components/ConfirmationPopup.js.map +1 -0
  79. package/dist/module/components/DocumentUploader.js +253 -0
  80. package/dist/module/components/DocumentUploader.js.map +1 -0
  81. package/dist/module/components/DropDownItem.js +75 -0
  82. package/dist/module/components/DropDownItem.js.map +1 -0
  83. package/dist/module/components/DropDownMenu.js +41 -0
  84. package/dist/module/components/DropDownMenu.js.map +1 -0
  85. package/dist/module/components/EmptyStateMain.js +51 -0
  86. package/dist/module/components/EmptyStateMain.js.map +1 -0
  87. package/dist/module/components/EmptyStateWidget.js +48 -0
  88. package/dist/module/components/EmptyStateWidget.js.map +1 -0
  89. package/dist/module/components/FontScaleButton.js +37 -0
  90. package/dist/module/components/FontScaleButton.js.map +1 -0
  91. package/dist/module/components/FontScalePopup.js +76 -0
  92. package/dist/module/components/FontScalePopup.js.map +1 -0
  93. package/dist/module/components/Forbidden.js +58 -0
  94. package/dist/module/components/Forbidden.js.map +1 -0
  95. package/dist/module/components/FormCard.js +25 -0
  96. package/dist/module/components/FormCard.js.map +1 -0
  97. package/dist/module/components/FormCardSection.js +214 -0
  98. package/dist/module/components/FormCardSection.js.map +1 -0
  99. package/dist/module/components/FormCardSectionOptionLauncher.js +73 -0
  100. package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -0
  101. package/dist/module/components/FormattedText.js +133 -0
  102. package/dist/module/components/FormattedText.js.map +1 -0
  103. package/dist/module/components/GenericInput.js +151 -0
  104. package/dist/module/components/GenericInput.js.map +1 -0
  105. package/dist/module/components/GenericInputSection.js +173 -0
  106. package/dist/module/components/GenericInputSection.js.map +1 -0
  107. package/dist/module/components/Header.js +459 -0
  108. package/dist/module/components/Header.js.map +1 -0
  109. package/dist/module/components/Icon.js +109 -0
  110. package/dist/module/components/Icon.js.map +1 -0
  111. package/dist/module/components/ImagePopup.js +400 -0
  112. package/dist/module/components/ImagePopup.js.map +1 -0
  113. package/dist/module/components/ImageUploadProgress.js +69 -0
  114. package/dist/module/components/ImageUploadProgress.js.map +1 -0
  115. package/dist/module/components/ImageUploader.js +831 -0
  116. package/dist/module/components/ImageUploader.js.map +1 -0
  117. package/dist/module/components/InlineButton.js +66 -0
  118. package/dist/module/components/InlineButton.js.map +1 -0
  119. package/dist/module/components/Input.js +156 -0
  120. package/dist/module/components/Input.js.map +1 -0
  121. package/dist/module/components/LoadingCircles.js +219 -0
  122. package/dist/module/components/LoadingCircles.js.map +1 -0
  123. package/dist/module/components/LoadingIndicator.js +86 -0
  124. package/dist/module/components/LoadingIndicator.js.map +1 -0
  125. package/dist/module/components/LoadingStateWidget.js +46 -0
  126. package/dist/module/components/LoadingStateWidget.js.map +1 -0
  127. package/dist/module/components/MediaPlayer.js +407 -0
  128. package/dist/module/components/MediaPlayer.js.map +1 -0
  129. package/dist/module/components/MiddlePopup.js +49 -0
  130. package/dist/module/components/MiddlePopup.js.map +1 -0
  131. package/dist/module/components/PDFPopup.js +296 -0
  132. package/dist/module/components/PDFPopup.js.map +1 -0
  133. package/dist/module/components/PlussChat.js +1078 -0
  134. package/dist/module/components/PlussChat.js.map +1 -0
  135. package/dist/module/components/PlussChatMessage.js +299 -0
  136. package/dist/module/components/PlussChatMessage.js.map +1 -0
  137. package/dist/module/components/PlussChatTime.js +59 -0
  138. package/dist/module/components/PlussChatTime.js.map +1 -0
  139. package/dist/module/components/Popup.js +126 -0
  140. package/dist/module/components/Popup.js.map +1 -0
  141. package/dist/module/components/PopupMenu.js +120 -0
  142. package/dist/module/components/PopupMenu.js.map +1 -0
  143. package/dist/module/components/PositionedImage.js +313 -0
  144. package/dist/module/components/PositionedImage.js.map +1 -0
  145. package/dist/module/components/ProfilePic.js +105 -0
  146. package/dist/module/components/ProfilePic.js.map +1 -0
  147. package/dist/module/components/RadioButton.js +78 -0
  148. package/dist/module/components/RadioButton.js.map +1 -0
  149. package/dist/module/components/Reaction.js +117 -0
  150. package/dist/module/components/Reaction.js.map +1 -0
  151. package/dist/module/components/Reactions.js +71 -0
  152. package/dist/module/components/Reactions.js.map +1 -0
  153. package/dist/module/components/SharingTools.js +189 -0
  154. package/dist/module/components/SharingTools.js.map +1 -0
  155. package/dist/module/components/Spinner.js +22 -0
  156. package/dist/module/components/Spinner.js.map +1 -0
  157. package/dist/module/components/StickyFooter.js +34 -0
  158. package/dist/module/components/StickyFooter.js.map +1 -0
  159. package/dist/module/components/Text.js +57 -0
  160. package/dist/module/components/Text.js.map +1 -0
  161. package/dist/module/components/TickIcon.js +24 -0
  162. package/dist/module/components/TickIcon.js.map +1 -0
  163. package/dist/module/components/Toggle.js +66 -0
  164. package/dist/module/components/Toggle.js.map +1 -0
  165. package/dist/module/components/TouchableSearchBar.js +68 -0
  166. package/dist/module/components/TouchableSearchBar.js.map +1 -0
  167. package/dist/module/components/UserListPopup.js +136 -0
  168. package/dist/module/components/UserListPopup.js.map +1 -0
  169. package/dist/module/components/UserListing.js +268 -0
  170. package/dist/module/components/UserListing.js.map +1 -0
  171. package/dist/module/components/VideoPopup.js +113 -0
  172. package/dist/module/components/VideoPopup.js.map +1 -0
  173. package/dist/module/components/WarningPopup.js +85 -0
  174. package/dist/module/components/WarningPopup.js.map +1 -0
  175. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +289 -0
  176. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -0
  177. package/dist/module/components/expo-image-picker-multiple/ImageTile.js +117 -0
  178. package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -0
  179. package/dist/module/components/index.js +60 -0
  180. package/dist/module/components/index.js.map +1 -0
  181. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +422 -0
  182. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -0
  183. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +387 -0
  184. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -0
  185. package/dist/module/config.js +27 -0
  186. package/dist/module/config.js.map +1 -0
  187. package/dist/module/constants.js +18 -0
  188. package/dist/module/constants.js.map +1 -0
  189. package/dist/module/helper.js +424 -0
  190. package/dist/module/helper.js.map +1 -0
  191. package/dist/module/index.js +13 -0
  192. package/dist/module/index.js.map +1 -0
  193. package/dist/module/js/images/detectFaces.js +31 -0
  194. package/dist/module/js/images/detectFaces.js.map +1 -0
  195. package/dist/module/js/images/findLandmarkRange.js +93 -0
  196. package/dist/module/js/images/findLandmarkRange.js.map +1 -0
  197. package/dist/module/js/images/getScaledOffset.js +81 -0
  198. package/dist/module/js/images/getScaledOffset.js.map +1 -0
  199. package/dist/module/js/site/getSiteLevelFromState.js +29 -0
  200. package/dist/module/js/site/getSiteLevelFromState.js.map +1 -0
  201. package/dist/module/js/site/isTVEnabled.js +10 -0
  202. package/dist/module/js/site/isTVEnabled.js.map +1 -0
  203. package/dist/module/session.js +58 -0
  204. package/dist/module/session.js.map +1 -0
  205. package/dist/module/styles.js +67 -0
  206. package/dist/module/styles.js.map +1 -0
  207. package/dist/module/withNavigationFocus.js +30 -0
  208. package/dist/module/withNavigationFocus.js.map +1 -0
  209. package/package.json +1 -1
  210. package/src/components/PDFPopup.js +130 -35
  211. 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
- <View style={styles.container}>
296
- <SafeAreaView style={[{ width }, styles.headerContainer]}>
297
- {!cropMode ? (
298
- <View
299
- style={[
300
- styles.headerButtonContainer,
301
- { justifyContent: "flex-end" },
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
- <Text style={styles.headerButtonText}>{"Cancel"}</Text>
321
- </TouchableOpacity>
322
- <TouchableOpacity
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
- style={styles.headerButton}
333
- >
334
- <Text style={styles.headerButtonText}>
335
- {processing ? "Processing" : "Done"}
336
- </Text>
337
- </TouchableOpacity>
338
- </View>
339
- )}
340
- </SafeAreaView>
341
- <View
342
- onLayout={this.onContentLayout}
343
- style={[styles.contentContainer, { width }]}
344
- >
345
- <ScrollView
346
- style={{ position: "relative", flex: 1 }}
347
- contentContainerStyle={{ backgroundColor: "black" }}
348
- maximumZoomScale={5}
349
- minimumZoomScale={0.5}
350
- onScroll={this.onHandleScroll}
351
- bounces={false}
352
- showsHorizontalScrollIndicator={false}
353
- showsVerticalScrollIndicator={false}
354
- ref={(c) => (this.scrollView = c)}
355
- scrollEventThrottle={16}
356
- scrollEnabled={false}
357
- pinchGestureEnabled={false}
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
- <AutoHeightImage
360
- style={{ backgroundColor: "black" }}
361
- source={{ uri }}
362
- resizeMode={imageRatio >= 1 ? "contain" : "contain"}
363
- width={width}
364
- height={originalHeight}
365
- onLayout={this.calculateMaxSizes}
366
- />
367
- {!!cropMode && (
368
- <ImageCropOverlay
369
- onLayoutChanged={(top, left, width, height) => {
370
- this.currentSize.width = width;
371
- this.currentSize.height = height;
372
- this.currentPos.top = top;
373
- this.currentPos.left = left;
374
- }}
375
- initialWidth={cropWidth}
376
- initialHeight={cropHeight}
377
- initialTop={cropInitialTop}
378
- initialLeft={cropInitialLeft}
379
- minHeight={100}
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
- </ScrollView>
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
- </View>
390
+ </SafeAreaProvider>
387
391
  ) : (
388
392
  <View style={styles.container}>
389
393
  <Text style={styles.prepareMessageText}>Preparing...</Text>