@oxy.so/services 3.0.0 → 4.0.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.
Files changed (363) hide show
  1. package/LICENSE +675 -201
  2. package/NOTICE +215 -3
  3. package/README.md +1 -3
  4. package/lib/commonjs/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  5. package/lib/commonjs/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  6. package/lib/commonjs/assets/assets/fonts/icons/manifest.json +5 -11
  7. package/lib/commonjs/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  8. package/lib/commonjs/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  9. package/lib/commonjs/assets/fonts/icons/manifest.json +5 -11
  10. package/lib/commonjs/ui/components/FollowButton.js +15 -28
  11. package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
  12. package/lib/commonjs/ui/components/FollowTargetButton.js +17 -13
  13. package/lib/commonjs/ui/components/FollowTargetButton.js.map +1 -1
  14. package/lib/commonjs/ui/components/OxyAuthPrompt.js +3 -2
  15. package/lib/commonjs/ui/components/OxyAuthPrompt.js.map +1 -1
  16. package/lib/commonjs/ui/components/OxyConsentScreen.js +4 -2
  17. package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
  18. package/lib/commonjs/ui/components/OxySignInButton.js +1 -1
  19. package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
  20. package/lib/commonjs/ui/components/OxySignInRequestSurface.js +2 -1
  21. package/lib/commonjs/ui/components/OxySignInRequestSurface.js.map +1 -1
  22. package/lib/commonjs/ui/components/ProfileButton.js +67 -267
  23. package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
  24. package/lib/commonjs/ui/components/ProfileSummaryCard.js +2 -2
  25. package/lib/commonjs/ui/components/ProfileSummaryCard.js.map +1 -1
  26. package/lib/commonjs/ui/components/SurfaceHeaderAction.js +9 -49
  27. package/lib/commonjs/ui/components/SurfaceHeaderAction.js.map +1 -1
  28. package/lib/commonjs/ui/components/SurfaceScreen.js +3 -2
  29. package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -1
  30. package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js +2 -1
  31. package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
  32. package/lib/commonjs/ui/components/authChooser/SignInEntryView.js +2 -1
  33. package/lib/commonjs/ui/components/authChooser/SignInEntryView.js.map +1 -1
  34. package/lib/commonjs/ui/components/authChooser/SignUpView.js +4 -2
  35. package/lib/commonjs/ui/components/authChooser/SignUpView.js.map +1 -1
  36. package/lib/commonjs/ui/components/authChooser/requestSurfaces.js +2 -1
  37. package/lib/commonjs/ui/components/authChooser/requestSurfaces.js.map +1 -1
  38. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +20 -14
  39. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
  40. package/lib/commonjs/ui/components/fileManagement/FileViewer.js +48 -85
  41. package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
  42. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +35 -31
  43. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
  44. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +9 -6
  45. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
  46. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +22 -19
  47. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  48. package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +6 -3
  49. package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
  50. package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +6 -3
  51. package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
  52. package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +7 -5
  53. package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
  54. package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +20 -17
  55. package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
  56. package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js +2 -1
  57. package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
  58. package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js +5 -3
  59. package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js.map +1 -1
  60. package/lib/commonjs/ui/icons/subsetGlyphMaps.js +0 -6
  61. package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
  62. package/lib/commonjs/ui/screens/AccountMembersScreen.js +36 -60
  63. package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
  64. package/lib/commonjs/ui/screens/AccountSettingsScreen.js +2 -1
  65. package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
  66. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +16 -7
  67. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
  68. package/lib/commonjs/ui/screens/AvatarCropScreen.js +7 -6
  69. package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
  70. package/lib/commonjs/ui/screens/CreateAccountScreen.js +2 -1
  71. package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
  72. package/lib/commonjs/ui/screens/FeedbackScreen.js +18 -9
  73. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  74. package/lib/commonjs/ui/screens/FileManagementScreen.js +99 -200
  75. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  76. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +8 -9
  77. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
  78. package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +19 -8
  79. package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
  80. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +2 -1
  81. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  82. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +20 -10
  83. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  84. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +4 -2
  85. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  86. package/lib/commonjs/ui/screens/ProfileScreen.js +2 -1
  87. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  88. package/lib/commonjs/ui/screens/UserListScreen.js +31 -33
  89. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  90. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +22 -11
  91. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  92. package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js +7 -18
  93. package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js.map +1 -1
  94. package/lib/commonjs/ui/screens/fileManagement/FileListSection.js +7 -16
  95. package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -1
  96. package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +6 -6
  97. package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
  98. package/lib/commonjs/ui/screens/fileManagement/UploadBar.js +23 -66
  99. package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -1
  100. package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js +17 -8
  101. package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -1
  102. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +2 -1
  103. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  104. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +3 -2
  105. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  106. package/lib/module/assets/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  107. package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  108. package/lib/module/assets/assets/fonts/icons/manifest.json +5 -11
  109. package/lib/module/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  110. package/lib/module/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  111. package/lib/module/assets/fonts/icons/manifest.json +5 -11
  112. package/lib/module/ui/components/FollowButton.js +15 -28
  113. package/lib/module/ui/components/FollowButton.js.map +1 -1
  114. package/lib/module/ui/components/FollowTargetButton.js +15 -12
  115. package/lib/module/ui/components/FollowTargetButton.js.map +1 -1
  116. package/lib/module/ui/components/OxyAuthPrompt.js +2 -1
  117. package/lib/module/ui/components/OxyAuthPrompt.js.map +1 -1
  118. package/lib/module/ui/components/OxyConsentScreen.js +4 -2
  119. package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
  120. package/lib/module/ui/components/OxySignInButton.js +1 -1
  121. package/lib/module/ui/components/OxySignInButton.js.map +1 -1
  122. package/lib/module/ui/components/OxySignInRequestSurface.js +2 -1
  123. package/lib/module/ui/components/OxySignInRequestSurface.js.map +1 -1
  124. package/lib/module/ui/components/ProfileButton.js +70 -269
  125. package/lib/module/ui/components/ProfileButton.js.map +1 -1
  126. package/lib/module/ui/components/ProfileSummaryCard.js +2 -2
  127. package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -1
  128. package/lib/module/ui/components/SurfaceHeaderAction.js +8 -48
  129. package/lib/module/ui/components/SurfaceHeaderAction.js.map +1 -1
  130. package/lib/module/ui/components/SurfaceScreen.js +2 -1
  131. package/lib/module/ui/components/SurfaceScreen.js.map +1 -1
  132. package/lib/module/ui/components/authChooser/AccountsMenuView.js +2 -1
  133. package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
  134. package/lib/module/ui/components/authChooser/SignInEntryView.js +2 -1
  135. package/lib/module/ui/components/authChooser/SignInEntryView.js.map +1 -1
  136. package/lib/module/ui/components/authChooser/SignUpView.js +4 -2
  137. package/lib/module/ui/components/authChooser/SignUpView.js.map +1 -1
  138. package/lib/module/ui/components/authChooser/requestSurfaces.js +2 -1
  139. package/lib/module/ui/components/authChooser/requestSurfaces.js.map +1 -1
  140. package/lib/module/ui/components/fileManagement/FileDetailsModal.js +12 -6
  141. package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
  142. package/lib/module/ui/components/fileManagement/FileViewer.js +38 -75
  143. package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
  144. package/lib/module/ui/components/fileManagement/UploadPreview.js +31 -27
  145. package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
  146. package/lib/module/ui/components/modals/DeleteAccountModal.js +6 -3
  147. package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
  148. package/lib/module/ui/components/payment/PaymentDetailsStep.js +6 -3
  149. package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  150. package/lib/module/ui/components/payment/PaymentMethodStep.js +6 -3
  151. package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
  152. package/lib/module/ui/components/payment/PaymentReviewStep.js +6 -3
  153. package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
  154. package/lib/module/ui/components/payment/PaymentSuccessStep.js +4 -2
  155. package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
  156. package/lib/module/ui/components/payment/PaymentSummaryStep.js +6 -3
  157. package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
  158. package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js +2 -1
  159. package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
  160. package/lib/module/ui/components/surfaces/ActionSheetSurface.js +4 -2
  161. package/lib/module/ui/components/surfaces/ActionSheetSurface.js.map +1 -1
  162. package/lib/module/ui/icons/subsetGlyphMaps.js +0 -6
  163. package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
  164. package/lib/module/ui/screens/AccountMembersScreen.js +37 -61
  165. package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
  166. package/lib/module/ui/screens/AccountSettingsScreen.js +2 -1
  167. package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
  168. package/lib/module/ui/screens/AccountVerificationScreen.js +15 -7
  169. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
  170. package/lib/module/ui/screens/AvatarCropScreen.js +2 -1
  171. package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
  172. package/lib/module/ui/screens/CreateAccountScreen.js +2 -1
  173. package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
  174. package/lib/module/ui/screens/FeedbackScreen.js +18 -9
  175. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  176. package/lib/module/ui/screens/FileManagementScreen.js +91 -192
  177. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  178. package/lib/module/ui/screens/LanguageSelectorScreen.js +9 -10
  179. package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
  180. package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +18 -7
  181. package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
  182. package/lib/module/ui/screens/PaymentGatewayScreen.js +2 -1
  183. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  184. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +20 -10
  185. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  186. package/lib/module/ui/screens/PrivacySettingsScreen.js +4 -2
  187. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  188. package/lib/module/ui/screens/ProfileScreen.js +2 -1
  189. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  190. package/lib/module/ui/screens/UserListScreen.js +32 -34
  191. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  192. package/lib/module/ui/screens/WelcomeNewUserScreen.js +22 -11
  193. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  194. package/lib/module/ui/screens/fileManagement/FileLibraryError.js +6 -17
  195. package/lib/module/ui/screens/fileManagement/FileLibraryError.js.map +1 -1
  196. package/lib/module/ui/screens/fileManagement/FileListSection.js +5 -14
  197. package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -1
  198. package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +3 -3
  199. package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
  200. package/lib/module/ui/screens/fileManagement/UploadBar.js +24 -66
  201. package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -1
  202. package/lib/module/ui/screens/trust/TrustAboutScreen.js +16 -7
  203. package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -1
  204. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +2 -1
  205. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  206. package/lib/module/ui/screens/trust/TrustRulesScreen.js +2 -1
  207. package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  208. package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
  209. package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts.map +1 -1
  210. package/lib/typescript/commonjs/ui/components/OxyAuthPrompt.d.ts.map +1 -1
  211. package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts +1 -1
  212. package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
  213. package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts +1 -20
  214. package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
  215. package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts.map +1 -1
  216. package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts +1 -5
  217. package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts.map +1 -1
  218. package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -1
  219. package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
  220. package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
  221. package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
  222. package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  223. package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  224. package/lib/typescript/commonjs/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
  225. package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
  226. package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
  227. package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
  228. package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -1
  230. package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts +1 -1
  231. package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -1
  232. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  233. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
  234. package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +0 -6
  235. package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
  236. package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts.map +1 -1
  237. package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  238. package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
  239. package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
  240. package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  241. package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
  242. package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/ui/screens/fileManagement/FileLibraryError.d.ts +0 -2
  244. package/lib/typescript/commonjs/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -1
  245. package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts.map +1 -1
  246. package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
  247. package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts +1 -14
  248. package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
  250. package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  251. package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
  252. package/lib/typescript/module/ui/components/FollowTargetButton.d.ts.map +1 -1
  253. package/lib/typescript/module/ui/components/OxyAuthPrompt.d.ts.map +1 -1
  254. package/lib/typescript/module/ui/components/OxySignInButton.d.ts +1 -1
  255. package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
  256. package/lib/typescript/module/ui/components/ProfileButton.d.ts +1 -20
  257. package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
  258. package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts.map +1 -1
  259. package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts +1 -5
  260. package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts.map +1 -1
  261. package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -1
  262. package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
  263. package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
  264. package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
  265. package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  266. package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  267. package/lib/typescript/module/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
  268. package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
  269. package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
  270. package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
  271. package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -1
  272. package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -1
  273. package/lib/typescript/module/ui/icons/Ionicons.d.ts +1 -1
  274. package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -1
  275. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  276. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
  277. package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +0 -6
  278. package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
  279. package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts.map +1 -1
  280. package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  281. package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
  282. package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
  283. package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  284. package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
  285. package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
  286. package/lib/typescript/module/ui/screens/fileManagement/FileLibraryError.d.ts +0 -2
  287. package/lib/typescript/module/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -1
  288. package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts.map +1 -1
  289. package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
  290. package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts +1 -14
  291. package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts.map +1 -1
  292. package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
  293. package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  294. package/package.json +7 -7
  295. package/src/assets/fonts/icons/OxyServicesIonicons.ttf +0 -0
  296. package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  297. package/src/assets/fonts/icons/manifest.json +5 -11
  298. package/src/ui/components/FollowButton.tsx +14 -29
  299. package/src/ui/components/FollowTargetButton.tsx +14 -12
  300. package/src/ui/components/OxyAuthPrompt.tsx +2 -7
  301. package/src/ui/components/OxyConsentScreen.tsx +2 -2
  302. package/src/ui/components/OxySignInButton.tsx +2 -2
  303. package/src/ui/components/OxySignInRequestSurface.tsx +1 -1
  304. package/src/ui/components/ProfileButton.tsx +30 -297
  305. package/src/ui/components/ProfileSummaryCard.tsx +1 -2
  306. package/src/ui/components/SurfaceHeaderAction.tsx +7 -49
  307. package/src/ui/components/SurfaceScreen.tsx +2 -1
  308. package/src/ui/components/authChooser/AccountsMenuView.tsx +1 -1
  309. package/src/ui/components/authChooser/SignInEntryView.tsx +1 -1
  310. package/src/ui/components/authChooser/SignUpView.tsx +2 -2
  311. package/src/ui/components/authChooser/requestSurfaces.tsx +1 -1
  312. package/src/ui/components/fileManagement/FileDetailsModal.tsx +8 -6
  313. package/src/ui/components/fileManagement/FileViewer.tsx +21 -50
  314. package/src/ui/components/fileManagement/UploadPreview.tsx +12 -29
  315. package/src/ui/components/modals/DeleteAccountModal.tsx +4 -3
  316. package/src/ui/components/payment/PaymentDetailsStep.tsx +4 -3
  317. package/src/ui/components/payment/PaymentMethodStep.tsx +4 -3
  318. package/src/ui/components/payment/PaymentReviewStep.tsx +4 -3
  319. package/src/ui/components/payment/PaymentSuccessStep.tsx +3 -2
  320. package/src/ui/components/payment/PaymentSummaryStep.tsx +4 -3
  321. package/src/ui/components/photogrid/JustifiedPhotoGrid.tsx +2 -1
  322. package/src/ui/components/surfaces/ActionSheetSurface.tsx +3 -2
  323. package/src/ui/icons/subsetGlyphMaps.ts +0 -6
  324. package/src/ui/screens/AccountMembersScreen.tsx +17 -65
  325. package/src/ui/screens/AccountSettingsScreen.tsx +1 -1
  326. package/src/ui/screens/AccountVerificationScreen.tsx +14 -7
  327. package/src/ui/screens/AvatarCropScreen.tsx +2 -10
  328. package/src/ui/screens/CreateAccountScreen.tsx +1 -1
  329. package/src/ui/screens/FeedbackScreen.tsx +9 -9
  330. package/src/ui/screens/FileManagementScreen.tsx +37 -184
  331. package/src/ui/screens/LanguageSelectorScreen.tsx +5 -13
  332. package/src/ui/screens/LearnMoreUsernamesScreen.tsx +17 -7
  333. package/src/ui/screens/PaymentGatewayScreen.tsx +1 -1
  334. package/src/ui/screens/PremiumSubscriptionScreen.tsx +10 -10
  335. package/src/ui/screens/PrivacySettingsScreen.tsx +2 -2
  336. package/src/ui/screens/ProfileScreen.tsx +1 -1
  337. package/src/ui/screens/UserListScreen.tsx +17 -44
  338. package/src/ui/screens/WelcomeNewUserScreen.tsx +11 -11
  339. package/src/ui/screens/fileManagement/FileLibraryError.tsx +6 -14
  340. package/src/ui/screens/fileManagement/FileListSection.tsx +4 -16
  341. package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +2 -13
  342. package/src/ui/screens/fileManagement/UploadBar.tsx +17 -56
  343. package/src/ui/screens/trust/TrustAboutScreen.tsx +16 -7
  344. package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +1 -1
  345. package/src/ui/screens/trust/TrustRulesScreen.tsx +2 -1
  346. package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +0 -61
  347. package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +0 -1
  348. package/lib/commonjs/ui/components/internal/PinInput.js +0 -118
  349. package/lib/commonjs/ui/components/internal/PinInput.js.map +0 -1
  350. package/lib/module/ui/components/fileManagement/AnimatedButton.js +0 -55
  351. package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +0 -1
  352. package/lib/module/ui/components/internal/PinInput.js +0 -113
  353. package/lib/module/ui/components/internal/PinInput.js.map +0 -1
  354. package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts +0 -17
  355. package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts.map +0 -1
  356. package/lib/typescript/commonjs/ui/components/internal/PinInput.d.ts +0 -23
  357. package/lib/typescript/commonjs/ui/components/internal/PinInput.d.ts.map +0 -1
  358. package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts +0 -17
  359. package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts.map +0 -1
  360. package/lib/typescript/module/ui/components/internal/PinInput.d.ts +0 -23
  361. package/lib/typescript/module/ui/components/internal/PinInput.d.ts.map +0 -1
  362. package/src/ui/components/fileManagement/AnimatedButton.tsx +0 -64
  363. package/src/ui/components/internal/PinInput.tsx +0 -123
package/NOTICE CHANGED
@@ -4,8 +4,13 @@
4
4
  Copyright (c) 2025-present The Oxy Collective, Inc.
5
5
  ============================================================================
6
6
 
7
- This product is licensed under the Apache License, Version 2.0. See the
8
- LICENSE file in this directory.
7
+ This product is licensed under the Breathe License 1.0, license identifier
8
+ LicenseRef-Breathe-1.0. See the LICENSE file in this directory. Commercial
9
+ terms are available at
10
+ https://github.com/OxyHQ/.github/blob/main/LICENSE-COMMERCIAL.md
11
+
12
+ Attribution under Section 3.1 of the Breathe License is required of
13
+ everyone, including paying commercial licensees, and cannot be waived.
9
14
 
10
15
  ----------------------------------------------------------------------------
11
16
  THIRD PARTY COMPONENTS
@@ -22,7 +27,7 @@ Licensed under the MIT License.
22
27
  Material Design Icons / Material Community Icons
23
28
  Copyright Pictogrammers and the respective icon authors.
24
29
  Fonts and icons are licensed under the Apache License, Version 2.0. The full
25
- Apache License is reproduced in this package's LICENSE file.
30
+ Apache License is reproduced at the end of this file.
26
31
 
27
32
  The vector-icon integration and glyph-map distribution are derived from
28
33
  @expo/vector-icons and react-native-vector-icons:
@@ -49,3 +54,210 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
49
54
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
50
55
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
51
56
  SOFTWARE.
57
+
58
+ ----------------------------------------------------------------------------
59
+ Apache License, Version 2.0 (Material Design Icons)
60
+ ----------------------------------------------------------------------------
61
+
62
+
63
+ Apache License
64
+ Version 2.0, January 2004
65
+ http://www.apache.org/licenses/
66
+
67
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
68
+
69
+ 1. Definitions.
70
+
71
+ "License" shall mean the terms and conditions for use, reproduction,
72
+ and distribution as defined by Sections 1 through 9 of this document.
73
+
74
+ "Licensor" shall mean the copyright owner or entity authorized by
75
+ the copyright owner that is granting the License.
76
+
77
+ "Legal Entity" shall mean the union of the acting entity and all
78
+ other entities that control, are controlled by, or are under common
79
+ control with that entity. For the purposes of this definition,
80
+ "control" means (i) the power, direct or indirect, to cause the
81
+ direction or management of such entity, whether by contract or
82
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
83
+ outstanding shares, or (iii) beneficial ownership of such entity.
84
+
85
+ "You" (or "Your") shall mean an individual or Legal Entity
86
+ exercising permissions granted by this License.
87
+
88
+ "Source" form shall mean the preferred form for making modifications,
89
+ including but not limited to software source code, documentation
90
+ source, and configuration files.
91
+
92
+ "Object" form shall mean any form resulting from mechanical
93
+ transformation or translation of a Source form, including but
94
+ not limited to compiled object code, generated documentation,
95
+ and conversions to other media types.
96
+
97
+ "Work" shall mean the work of authorship, whether in Source or
98
+ Object form, made available under the License, as indicated by a
99
+ copyright notice that is included in or attached to the work
100
+ (an example is provided in the Appendix below).
101
+
102
+ "Derivative Works" shall mean any work, whether in Source or Object
103
+ form, that is based on (or derived from) the Work and for which the
104
+ editorial revisions, annotations, elaborations, or other modifications
105
+ represent, as a whole, an original work of authorship. For the purposes
106
+ of this License, Derivative Works shall not include works that remain
107
+ separable from, or merely link (or bind by name) to the interfaces of,
108
+ the Work and Derivative Works thereof.
109
+
110
+ "Contribution" shall mean any work of authorship, including
111
+ the original version of the Work and any modifications or additions
112
+ to that Work or Derivative Works thereof, that is intentionally
113
+ submitted to Licensor for inclusion in the Work by the copyright owner
114
+ or by an individual or Legal Entity authorized to submit on behalf of
115
+ the copyright owner. For the purposes of this definition, "submitted"
116
+ means any form of electronic, verbal, or written communication sent
117
+ to the Licensor or its representatives, including but not limited to
118
+ communication on electronic mailing lists, source code control systems,
119
+ and issue tracking systems that are managed by, or on behalf of, the
120
+ Licensor for the purpose of discussing and improving the Work, but
121
+ excluding communication that is conspicuously marked or otherwise
122
+ designated in writing by the copyright owner as "Not a Contribution."
123
+
124
+ "Contributor" shall mean Licensor and any individual or Legal Entity
125
+ on behalf of whom a Contribution has been received by Licensor and
126
+ subsequently incorporated within the Work.
127
+
128
+ 2. Grant of Copyright License. Subject to the terms and conditions of
129
+ this License, each Contributor hereby grants to You a perpetual,
130
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
131
+ copyright license to reproduce, prepare Derivative Works of,
132
+ publicly display, publicly perform, sublicense, and distribute the
133
+ Work and such Derivative Works in Source or Object form.
134
+
135
+ 3. Grant of Patent License. Subject to the terms and conditions of
136
+ this License, each Contributor hereby grants to You a perpetual,
137
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
138
+ (except as stated in this section) patent license to make, have made,
139
+ use, offer to sell, sell, import, and otherwise transfer the Work,
140
+ where such license applies only to those patent claims licensable
141
+ by such Contributor that are necessarily infringed by their
142
+ Contribution(s) alone or by combination of their Contribution(s)
143
+ with the Work to which such Contribution(s) was submitted. If You
144
+ institute patent litigation against any entity (including a
145
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
146
+ or a Contribution incorporated within the Work constitutes direct
147
+ or contributory patent infringement, then any patent licenses
148
+ granted to You under this License for that Work shall terminate
149
+ as of the date such litigation is filed.
150
+
151
+ 4. Redistribution. You may reproduce and distribute copies of the
152
+ Work or Derivative Works thereof in any medium, with or without
153
+ modifications, and in Source or Object form, provided that You
154
+ meet the following conditions:
155
+
156
+ (a) You must give any other recipients of the Work or
157
+ Derivative Works a copy of this License; and
158
+
159
+ (b) You must cause any modified files to carry prominent notices
160
+ stating that You changed the files; and
161
+
162
+ (c) You must retain, in the Source form of any Derivative Works
163
+ that You distribute, all copyright, patent, trademark, and
164
+ attribution notices from the Source form of the Work,
165
+ excluding those notices that do not pertain to any part of
166
+ the Derivative Works; and
167
+
168
+ (d) If the Work includes a "NOTICE" text file as part of its
169
+ distribution, then any Derivative Works that You distribute must
170
+ include a readable copy of the attribution notices contained
171
+ within such NOTICE file, excluding those notices that do not
172
+ pertain to any part of the Derivative Works, in at least one
173
+ of the following places: within a NOTICE text file distributed
174
+ as part of the Derivative Works; within the Source form or
175
+ documentation, if provided along with the Derivative Works; or,
176
+ within a display generated by the Derivative Works, if and
177
+ wherever such third-party notices normally appear. The contents
178
+ of the NOTICE file are for informational purposes only and
179
+ do not modify the License. You may add Your own attribution
180
+ notices within Derivative Works that You distribute, alongside
181
+ or as an addendum to the NOTICE text from the Work, provided
182
+ that such additional attribution notices cannot be construed
183
+ as modifying the License.
184
+
185
+ You may add Your own copyright statement to Your modifications and
186
+ may provide additional or different license terms and conditions
187
+ for use, reproduction, or distribution of Your modifications, or
188
+ for any such Derivative Works as a whole, provided Your use,
189
+ reproduction, and distribution of the Work otherwise complies with
190
+ the conditions stated in this License.
191
+
192
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
193
+ any Contribution intentionally submitted for inclusion in the Work
194
+ by You to the Licensor shall be under the terms and conditions of
195
+ this License, without any additional terms or conditions.
196
+ Notwithstanding the above, nothing herein shall supersede or modify
197
+ the terms of any separate license agreement you may have executed
198
+ with Licensor regarding such Contributions.
199
+
200
+ 6. Trademarks. This License does not grant permission to use the trade
201
+ names, trademarks, service marks, or product names of the Licensor,
202
+ except as required for reasonable and customary use in describing the
203
+ origin of the Work and reproducing the content of the NOTICE file.
204
+
205
+ 7. Disclaimer of Warranty. Unless required by applicable law or
206
+ agreed to in writing, Licensor provides the Work (and each
207
+ Contributor provides its Contributions) on an "AS IS" BASIS,
208
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
209
+ implied, including, without limitation, any warranties or conditions
210
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
211
+ PARTICULAR PURPOSE. You are solely responsible for determining the
212
+ appropriateness of using or redistributing the Work and assume any
213
+ risks associated with Your exercise of permissions under this License.
214
+
215
+ 8. Limitation of Liability. In no event and under no legal theory,
216
+ whether in tort (including negligence), contract, or otherwise,
217
+ unless required by applicable law (such as deliberate and grossly
218
+ negligent acts) or agreed to in writing, shall any Contributor be
219
+ liable to You for damages, including any direct, indirect, special,
220
+ incidental, or consequential damages of any character arising as a
221
+ result of this License or out of the use or inability to use the
222
+ Work (including but not limited to damages for loss of goodwill,
223
+ work stoppage, computer failure or malfunction, or any and all
224
+ other commercial damages or losses), even if such Contributor
225
+ has been advised of the possibility of such damages.
226
+
227
+ 9. Accepting Warranty or Additional Liability. While redistributing
228
+ the Work or Derivative Works thereof, You may choose to offer,
229
+ and charge a fee for, acceptance of support, warranty, indemnity,
230
+ or other liability obligations and/or rights consistent with this
231
+ License. However, in accepting such obligations, You may act only
232
+ on Your own behalf and on Your sole responsibility, not on behalf
233
+ of any other Contributor, and only if You agree to indemnify,
234
+ defend, and hold each Contributor harmless for any liability
235
+ incurred by, or claims asserted against, such Contributor by reason
236
+ of your accepting any such warranty or additional liability.
237
+
238
+ END OF TERMS AND CONDITIONS
239
+
240
+ APPENDIX: How to apply the Apache License to your work.
241
+
242
+ To apply the Apache License to your work, attach the following
243
+ boilerplate notice, with the fields enclosed by brackets "[]"
244
+ replaced with your own identifying information. (Don't include
245
+ the brackets!) The text should be enclosed in the appropriate
246
+ comment syntax for the file format. We also recommend that a
247
+ file or class name and description of purpose be included on the
248
+ same "printed page" as the copyright notice for easier
249
+ identification within third-party archives.
250
+
251
+ Copyright [yyyy] [name of copyright owner]
252
+
253
+ Licensed under the Apache License, Version 2.0 (the "License");
254
+ you may not use this file except in compliance with the License.
255
+ You may obtain a copy of the License at
256
+
257
+ http://www.apache.org/licenses/LICENSE-2.0
258
+
259
+ Unless required by applicable law or agreed to in writing, software
260
+ distributed under the License is distributed on an "AS IS" BASIS,
261
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
262
+ See the License for the specific language governing permissions and
263
+ limitations under the License.
package/README.md CHANGED
@@ -861,6 +861,4 @@ Comprehensive documentation is available in the `/docs` directory:
861
861
 
862
862
  ## License
863
863
 
864
- This package is licensed under the Apache License, Version 2.0, (c) The Oxy Collective, Inc. See the [LICENSE](LICENSE) and [NOTICE](NOTICE) files for details.
865
-
866
- Versions published before `28.0.0` were AGPL-3.0-only and stay that way; a licence change binds future versions only.
864
+ This package is licensed under the **Breathe License 1.0** (`LicenseRef-Breathe-1.0`), (c) The Oxy Collective, Inc. See the [LICENSE](LICENSE) and [NOTICE](NOTICE) files for details.
@@ -5,8 +5,8 @@
5
5
  "ionicons": {
6
6
  "fontFamily": "OxyServicesIonicons",
7
7
  "file": "src/assets/fonts/icons/OxyServicesIonicons.ttf",
8
- "bytes": 44700,
9
- "sha256": "7969090b6130bbc4a976e021f83b1d089996cd351ba51f4f1f02ca1edeb75a65",
8
+ "bytes": 44452,
9
+ "sha256": "97cf3d3cdc13101469ee334ccd9a61d36cb5290094a3ea8c222a05da7ead7530",
10
10
  "names": [
11
11
  "add",
12
12
  "add-circle-outline",
@@ -119,7 +119,6 @@
119
119
  "qr-code-outline",
120
120
  "radio",
121
121
  "receipt-outline",
122
- "refresh",
123
122
  "refresh-outline",
124
123
  "remove",
125
124
  "repeat-outline",
@@ -158,8 +157,8 @@
158
157
  "materialCommunityIcons": {
159
158
  "fontFamily": "OxyServicesMaterialCommunityIcons",
160
159
  "file": "src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf",
161
- "bytes": 30472,
162
- "sha256": "a55d926d948aaddfa848a9c5b509946bb4d35c2fcc4df9670e9a039899878958",
160
+ "bytes": 29976,
161
+ "sha256": "46cbd591663526f6b23df1c721d894a76f1b5a530bd03088795580716811c35b",
163
162
  "names": [
164
163
  "account",
165
164
  "account-circle",
@@ -271,7 +270,6 @@
271
270
  "history",
272
271
  "hub",
273
272
  "image",
274
- "image-multiple",
275
273
  "image-multiple-outline",
276
274
  "image-outline",
277
275
  "information",
@@ -285,7 +283,6 @@
285
283
  "link-variant",
286
284
  "loading",
287
285
  "lock-outline",
288
- "login",
289
286
  "logout",
290
287
  "magnify",
291
288
  "map-marker",
@@ -297,7 +294,6 @@
297
294
  "minus",
298
295
  "minus-circle",
299
296
  "motion",
300
- "music-note",
301
297
  "music-note-outline",
302
298
  "network",
303
299
  "null",
@@ -321,7 +317,6 @@
321
317
  "react",
322
318
  "read",
323
319
  "receipt-outline",
324
- "refresh",
325
320
  "resize",
326
321
  "rocket",
327
322
  "scale",
@@ -355,7 +350,6 @@
355
350
  "trophy",
356
351
  "trophy-outline",
357
352
  "update",
358
- "video",
359
353
  "video-outline",
360
354
  "volume-off",
361
355
  "wallet",
@@ -371,5 +365,5 @@
371
365
  }
372
366
  },
373
367
  "glyphMapsFile": "src/ui/icons/subsetGlyphMaps.ts",
374
- "glyphMapsSha256": "12084bd6049feab579495b00cd07a78cc1d0500a823768e98acd12e0930fd463"
368
+ "glyphMapsSha256": "830b8f898ed83c963906097d4a922941c2ca3b5da4e455ca1c83ea9a9cddb5f3"
375
369
  }
@@ -5,8 +5,8 @@
5
5
  "ionicons": {
6
6
  "fontFamily": "OxyServicesIonicons",
7
7
  "file": "src/assets/fonts/icons/OxyServicesIonicons.ttf",
8
- "bytes": 44700,
9
- "sha256": "7969090b6130bbc4a976e021f83b1d089996cd351ba51f4f1f02ca1edeb75a65",
8
+ "bytes": 44452,
9
+ "sha256": "97cf3d3cdc13101469ee334ccd9a61d36cb5290094a3ea8c222a05da7ead7530",
10
10
  "names": [
11
11
  "add",
12
12
  "add-circle-outline",
@@ -119,7 +119,6 @@
119
119
  "qr-code-outline",
120
120
  "radio",
121
121
  "receipt-outline",
122
- "refresh",
123
122
  "refresh-outline",
124
123
  "remove",
125
124
  "repeat-outline",
@@ -158,8 +157,8 @@
158
157
  "materialCommunityIcons": {
159
158
  "fontFamily": "OxyServicesMaterialCommunityIcons",
160
159
  "file": "src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf",
161
- "bytes": 30472,
162
- "sha256": "a55d926d948aaddfa848a9c5b509946bb4d35c2fcc4df9670e9a039899878958",
160
+ "bytes": 29976,
161
+ "sha256": "46cbd591663526f6b23df1c721d894a76f1b5a530bd03088795580716811c35b",
163
162
  "names": [
164
163
  "account",
165
164
  "account-circle",
@@ -271,7 +270,6 @@
271
270
  "history",
272
271
  "hub",
273
272
  "image",
274
- "image-multiple",
275
273
  "image-multiple-outline",
276
274
  "image-outline",
277
275
  "information",
@@ -285,7 +283,6 @@
285
283
  "link-variant",
286
284
  "loading",
287
285
  "lock-outline",
288
- "login",
289
286
  "logout",
290
287
  "magnify",
291
288
  "map-marker",
@@ -297,7 +294,6 @@
297
294
  "minus",
298
295
  "minus-circle",
299
296
  "motion",
300
- "music-note",
301
297
  "music-note-outline",
302
298
  "network",
303
299
  "null",
@@ -321,7 +317,6 @@
321
317
  "react",
322
318
  "read",
323
319
  "receipt-outline",
324
- "refresh",
325
320
  "resize",
326
321
  "rocket",
327
322
  "scale",
@@ -355,7 +350,6 @@
355
350
  "trophy",
356
351
  "trophy-outline",
357
352
  "update",
358
- "video",
359
353
  "video-outline",
360
354
  "volume-off",
361
355
  "wallet",
@@ -371,5 +365,5 @@
371
365
  }
372
366
  },
373
367
  "glyphMapsFile": "src/ui/icons/subsetGlyphMaps.ts",
374
- "glyphMapsSha256": "12084bd6049feab579495b00cd07a78cc1d0500a823768e98acd12e0930fd463"
368
+ "glyphMapsSha256": "830b8f898ed83c963906097d4a922941c2ca3b5da4e455ca1c83ea9a9cddb5f3"
375
369
  }
@@ -5,13 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = exports.FollowButton = void 0;
7
7
  var _react = require("react");
8
- var _reactNative = require("react-native");
9
8
  var _OxyContext = require("../context/OxyContext.js");
10
9
  var _toast = require("@oxy.so/bloom/toast");
11
- var _button = require("@oxy.so/bloom/button");
10
+ var _mediaHeader = require("@oxy.so/bloom/media-header");
12
11
  var _useFollow = require("../hooks/useFollow.js");
13
12
  var _followStore = require("../stores/followStore.js");
14
- var _theme = require("@oxy.so/bloom/theme");
15
13
  var _shallow = require("zustand/react/shallow");
16
14
  var _jsxRuntime = require("react/jsx-runtime");
17
15
  const DEFAULT_FOLLOW_ALL_LABEL = 'Follow all';
@@ -41,9 +39,6 @@ const FollowButtonInner = /*#__PURE__*/(0, _react.memo)(function FollowButtonInn
41
39
  showLoadingState = true,
42
40
  preventParentActions = true
43
41
  }) {
44
- const {
45
- colors
46
- } = (0, _theme.useTheme)();
47
42
  const {
48
43
  isFollowing,
49
44
  isKnown,
@@ -80,20 +75,17 @@ const FollowButtonInner = /*#__PURE__*/(0, _react.memo)(function FollowButtonInn
80
75
  const isBusy = isLoading || !isKnown;
81
76
  const showFollowing = isKnown && isFollowing;
82
77
  const showSpinner = showLoadingState && isBusy;
83
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
84
- variant: showFollowing ? 'secondary' : 'primary',
85
- size: size,
86
- onPress: () => {
78
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mediaHeader.FollowButton, {
79
+ following: showFollowing,
80
+ onFollowChange: () => {
87
81
  void handlePress();
88
82
  },
83
+ size: size,
84
+ loading: showSpinner,
89
85
  disabled: disabled || isBusy,
90
86
  style: style,
91
87
  textStyle: textStyle,
92
- icon: showSpinner ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
93
- size: "small",
94
- color: showFollowing ? colors.text : colors.primaryForeground
95
- }) : undefined,
96
- children: showSpinner ? undefined : isKnown ? isFollowing ? 'Following' : 'Follow' : undefined
88
+ label: isKnown || showSpinner ? 'Follow' : ''
97
89
  });
98
90
  });
99
91
  const FollowButtonMultiInner = /*#__PURE__*/(0, _react.memo)(function FollowButtonMultiInner({
@@ -111,9 +103,6 @@ const FollowButtonMultiInner = /*#__PURE__*/(0, _react.memo)(function FollowButt
111
103
  showLoadingState = true,
112
104
  preventParentActions = true
113
105
  }) {
114
- const {
115
- colors
116
- } = (0, _theme.useTheme)();
117
106
  const follow = (0, _useFollow.useFollow)(userIds);
118
107
  const followAllUsers = 'followAllUsers' in follow ? follow.followAllUsers : undefined;
119
108
  const unfollowAllUsers = 'unfollowAllUsers' in follow ? follow.unfollowAllUsers : undefined;
@@ -190,20 +179,18 @@ const FollowButtonMultiInner = /*#__PURE__*/(0, _react.memo)(function FollowButt
190
179
  }
191
180
  }, [disabled, isLoading, allFollowing, followAllUsers, unfollowAllUsers, onFollowChange, onBulkFollow, onBulkUnfollow, preventParentActions]);
192
181
  const showSpinner = showLoadingState && isLoading;
193
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
194
- variant: allFollowing ? 'secondary' : 'primary',
195
- size: size,
196
- onPress: () => {
182
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mediaHeader.FollowButton, {
183
+ following: allFollowing,
184
+ onFollowChange: () => {
197
185
  void handlePress();
198
186
  },
187
+ label: followAllLabel,
188
+ followingLabel: followedAllLabel,
189
+ size: size,
190
+ loading: showSpinner,
199
191
  disabled: disabled || isLoading,
200
192
  style: style,
201
- textStyle: textStyle,
202
- icon: showSpinner ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ActivityIndicator, {
203
- size: "small",
204
- color: allFollowing ? colors.text : colors.primaryForeground
205
- }) : undefined,
206
- children: showSpinner ? undefined : allFollowing ? followedAllLabel : followAllLabel
193
+ textStyle: textStyle
207
194
  });
208
195
  });
209
196
  const FollowButton = props => {
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_reactNative","_OxyContext","_toast","_button","_useFollow","_followStore","_theme","_shallow","_jsxRuntime","DEFAULT_FOLLOW_ALL_LABEL","DEFAULT_FOLLOWED_ALL_LABEL","isMultiMode","props","Array","isArray","userIds","FollowButtonInner","memo","userId","oxyServices","initiallyFollowing","size","onFollowChange","style","textStyle","disabled","showLoadingState","preventParentActions","colors","useTheme","isFollowing","isKnown","isLoading","toggleFollow","resolveStatus","useFollowForButton","handlePress","useCallback","event","preventDefault","stopPropagation","accepted","err","error","Error","String","toast","message","useEffect","isBusy","showFollowing","showSpinner","jsx","Button","variant","onPress","icon","ActivityIndicator","color","text","primaryForeground","undefined","children","FollowButtonMultiInner","initiallyAllFollowing","followAllLabel","followedAllLabel","onBulkFollow","onBulkUnfollow","follow","useFollow","followAllUsers","unfollowAllUsers","isAnyLoading","initialFollowStatuses","useFollowStore","useShallow","state","statuses","uid","Object","prototype","hasOwnProperty","call","followingUsers","hasKnownNotFollowing","some","storeAllFollowing","allFollowing","fetchAllStatuses","isSubmitting","setIsSubmitting","useState","result","allAlreadyFollowing","followedCount","results","length","every","entry","alreadyFollowing","anyFollowed","success","FollowButton","canUsePrivateApi","user","currentUser","useOxy","currentUserId","id","trim","rawUserIds","multiUserIds","useMemo","seen","Set","cleaned","raw","has","add","push","targetUserId","exports","_default","default"],"sourceRoot":"../../../../src","sources":["ui/components/FollowButton.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAMA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAA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uG,YAAa;IACrBtG,WAAW,EAAEA;EAAY,CAC1B,CAAC;AAEN,CAAC;AAACuG,OAAA,CAAAnB,YAAA,GAAAA,YAAA;AAAA,IAAAoB,QAAA,GAAAD,OAAA,CAAAE,OAAA,GAGarB,YAAY","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_OxyContext","_toast","_mediaHeader","_useFollow","_followStore","_shallow","_jsxRuntime","DEFAULT_FOLLOW_ALL_LABEL","DEFAULT_FOLLOWED_ALL_LABEL","isMultiMode","props","Array","isArray","userIds","FollowButtonInner","memo","userId","oxyServices","initiallyFollowing","size","onFollowChange","style","textStyle","disabled","showLoadingState","preventParentActions","isFollowing","isKnown","isLoading","toggleFollow","resolveStatus","useFollowForButton","handlePress","useCallback","event","preventDefault","stopPropagation","accepted","err","error","Error","String","toast","message","useEffect","isBusy","showFollowing","showSpinner","jsx","FollowButton","following","loading","label","FollowButtonMultiInner","initiallyAllFollowing","followAllLabel","followedAllLabel","onBulkFollow","onBulkUnfollow","follow","useFollow","followAllUsers","undefined","unfollowAllUsers","isAnyLoading","initialFollowStatuses","useFollowStore","useShallow","state","statuses","uid","Object","prototype","hasOwnProperty","call","followingUsers","hasKnownNotFollowing","some","storeAllFollowing","allFollowing","fetchAllStatuses","isSubmitting","setIsSubmitting","useState","result","allAlreadyFollowing","followedCount","results","length","every","entry","alreadyFollowing","anyFollowed","success","followingLabel","canUsePrivateApi","user","currentUser","useOxy","currentUserId","id","trim","rawUserIds","multiUserIds","useMemo","seen","Set","cleaned","raw","has","add","push","targetUserId","exports","_default","default"],"sourceRoot":"../../../../src","sources":["ui/components/FollowButton.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AAMA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AAEA,IAAAM,QAAA,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C,GAAA,EAACK,sBAAsB;MAAA,GACjB3C,KAAK;MACTG,OAAO,EAAE0F;IAAa,CACvB,CAAC;EAEN;EAEA,MAAMS,YAAY,GAAGtG,KAAK,CAACM,MAAM,GAAGyB,MAAM,CAAC/B,KAAK,CAACM,MAAM,CAAC,CAACqF,IAAI,CAAC,CAAC,GAAG,EAAE;EACpE,IAAI,CAACW,YAAY,IAAKb,aAAa,IAAIA,aAAa,KAAKa,YAAa,EAAE;IACtE,OAAO,IAAI;EACb;EAEA,oBACE,IAAA1G,WAAA,CAAA0C,GAAA,EAAClC,iBAAiB;IAAA,GACZJ,KAAK;IACTM,MAAM,EAAEgG,YAAa;IACrB/F,WAAW,EAAEA;EAAY,CAC1B,CAAC;AAEN,CAAC;AAACgG,OAAA,CAAAhE,YAAA,GAAAA,YAAA;AAAA,IAAAiE,QAAA,GAAAD,OAAA,CAAAE,OAAA,GAGalE,YAAY","ignoreList":[]}
@@ -8,8 +8,9 @@ exports.buildFollowMenuItems = buildFollowMenuItems;
8
8
  exports.resolveFollowPrimaryAction = resolveFollowPrimaryAction;
9
9
  var _react = require("react");
10
10
  var _reactNative = require("react-native");
11
+ var _mediaHeader = require("@oxy.so/bloom/media-header");
11
12
  var _button = require("@oxy.so/bloom/button");
12
- var _icons = require("@oxy.so/bloom/icons");
13
+ var _RiArrowDownSLine = require("@oxy.so/bloom/icons/RiArrowDownSLine");
13
14
  var _dropdownMenu = require("@oxy.so/bloom/dropdown-menu");
14
15
  var _toast = require("@oxy.so/bloom/toast");
15
16
  var _useFollowTarget = require("../hooks/useFollowTarget.js");
@@ -48,6 +49,11 @@ var _jsxRuntime = require("react/jsx-runtime");
48
49
  * name — not aliased, not deprecated in place.
49
50
  */
50
51
 
52
+ // Per glyph, never `@oxy.so/bloom/icons`. That barrel re-exports all 461 Remix
53
+ // glyphs and Metro does not tree-shake, so one import of it here re-ships every
54
+ // glyph — 313,123 B, measured — to every app in this package's graph, and no
55
+ // consumer can opt out of what a dependency asks for.
56
+
51
57
  /**
52
58
  * The small vocabulary of verbs the ecosystem actually uses. An application
53
59
  * whose verb is not here passes `labels` instead — the escape hatch exists so
@@ -300,17 +306,14 @@ const FollowTargetButton = exports.FollowTargetButton = /*#__PURE__*/(0, _react.
300
306
  });
301
307
  }
302
308
  }, [handleTimed, enableHere, disableHere, unfollow, onChange, reportMutationFailure]);
303
- const primary = /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
304
- variant: isFollowing ? 'secondary' : 'primary',
305
- size: size
306
- // Unknown is not "not following": the button stays inert until the first
307
- // read settles rather than inviting a follow that may already exist.
308
- ,
309
+ const primary = /*#__PURE__*/(0, _jsxRuntime.jsx)(_mediaHeader.FollowButton, {
310
+ following: isFollowing,
311
+ label: isFollowing ? text.idle : label,
312
+ followingLabel: label,
313
+ size: size,
309
314
  disabled: disabled || isUnknown,
310
- loading: isPending,
311
- onPress: () => void handlePrimary(),
312
- accessibilityLabel: label,
313
- children: label
315
+ loading: isPending || isUnknown,
316
+ onFollowChange: () => void handlePrimary()
314
317
  });
315
318
  if (!showOptions || menuItems.length === 0) {
316
319
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
@@ -329,9 +332,10 @@ const FollowTargetButton = exports.FollowTargetButton = /*#__PURE__*/(0, _react.
329
332
  asChild: true,
330
333
  disabled: disabled || isUnknown,
331
334
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.Button, {
332
- variant: "secondary",
335
+ appearance: "subtle",
336
+ tone: "support",
333
337
  size: size === 'large' ? 'large' : 'small',
334
- icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_icons.RiArrowDownSLine, {
338
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RiArrowDownSLine.RiArrowDownSLine, {
335
339
  width: 16
336
340
  }),
337
341
  disabled: disabled || isUnknown,