@os-team/profile 1.0.46 → 1.0.48

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 (310) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/{emotion.d.js → @types/emotion.d.js} +0 -0
  3. package/dist/cjs/@types/emotion.d.js.map +1 -0
  4. package/dist/cjs/@types/i18next.d.js +4 -0
  5. package/dist/cjs/@types/i18next.d.js.map +1 -0
  6. package/dist/cjs/components/profile/ProfileButton.js +0 -6
  7. package/dist/cjs/components/profile/ProfileButton.js.map +1 -1
  8. package/dist/cjs/components/profile/ProfileConfigContext.js +0 -8
  9. package/dist/cjs/components/profile/ProfileConfigContext.js.map +1 -1
  10. package/dist/cjs/components/profile/ProfileContext.js +0 -8
  11. package/dist/cjs/components/profile/ProfileContext.js.map +1 -1
  12. package/dist/cjs/components/profile/ProfileDrawer.js +2 -20
  13. package/dist/cjs/components/profile/ProfileDrawer.js.map +1 -1
  14. package/dist/cjs/components/profile/ProfileDrawerContent.js +30 -86
  15. package/dist/cjs/components/profile/ProfileDrawerContent.js.map +1 -1
  16. package/dist/cjs/components/profile/ProfileNavigationItem.js +4 -18
  17. package/dist/cjs/components/profile/ProfileNavigationItem.js.map +1 -1
  18. package/dist/cjs/components/profile/ProfileUpdateNameForm.js +3 -14
  19. package/dist/cjs/components/profile/ProfileUpdateNameForm.js.map +1 -1
  20. package/dist/cjs/components/profile/ProfileUpdateNameModal.js +21 -49
  21. package/dist/cjs/components/profile/ProfileUpdateNameModal.js.map +1 -1
  22. package/dist/cjs/components/profile/ProfileUpdatePasswordForm.js +3 -14
  23. package/dist/cjs/components/profile/ProfileUpdatePasswordForm.js.map +1 -1
  24. package/dist/cjs/components/profile/ProfileUpdatePasswordModal.js +19 -45
  25. package/dist/cjs/components/profile/ProfileUpdatePasswordModal.js.map +1 -1
  26. package/dist/cjs/components/profile/ProtectedWrapper.js +4 -19
  27. package/dist/cjs/components/profile/ProtectedWrapper.js.map +1 -1
  28. package/dist/cjs/components/profile/UserAvatar.js +5 -17
  29. package/dist/cjs/components/profile/UserAvatar.js.map +1 -1
  30. package/dist/cjs/components/profile/UserAvatarAddon.js +2 -19
  31. package/dist/cjs/components/profile/UserAvatarAddon.js.map +1 -1
  32. package/dist/cjs/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js +4 -9
  33. package/dist/cjs/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js.map +1 -1
  34. package/dist/cjs/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js +33 -42
  35. package/dist/cjs/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js.map +1 -1
  36. package/dist/cjs/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.js +4 -9
  37. package/dist/cjs/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.js.map +1 -1
  38. package/dist/cjs/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.js +33 -42
  39. package/dist/cjs/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.js.map +1 -1
  40. package/dist/cjs/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js +31 -48
  41. package/dist/cjs/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js.map +1 -1
  42. package/dist/cjs/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js +27 -36
  43. package/dist/cjs/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js.map +1 -1
  44. package/dist/cjs/components/profile/__generated__/ProtectedWrapperQuery.graphql.js +4 -9
  45. package/dist/cjs/components/profile/__generated__/ProtectedWrapperQuery.graphql.js.map +1 -1
  46. package/dist/cjs/components/session/SessionDrawer.js +2 -20
  47. package/dist/cjs/components/session/SessionDrawer.js.map +1 -1
  48. package/dist/cjs/components/session/SessionDrawerContent.js +0 -15
  49. package/dist/cjs/components/session/SessionDrawerContent.js.map +1 -1
  50. package/dist/cjs/components/session/SessionList.js +6 -39
  51. package/dist/cjs/components/session/SessionList.js.map +1 -1
  52. package/dist/cjs/components/session/SessionListItem.js +22 -84
  53. package/dist/cjs/components/session/SessionListItem.js.map +1 -1
  54. package/dist/cjs/components/session/SessionListSkeleton.js +2 -15
  55. package/dist/cjs/components/session/SessionListSkeleton.js.map +1 -1
  56. package/dist/cjs/components/session/__generated__/SessionDrawerContentQuery.graphql.js +1 -2
  57. package/dist/cjs/components/session/__generated__/SessionDrawerContentQuery.graphql.js.map +1 -1
  58. package/dist/cjs/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js +4 -9
  59. package/dist/cjs/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js.map +1 -1
  60. package/dist/cjs/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js +27 -36
  61. package/dist/cjs/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js.map +1 -1
  62. package/dist/cjs/components/session/__generated__/SessionListItem_session.graphql.js +1 -2
  63. package/dist/cjs/components/session/__generated__/SessionListItem_session.graphql.js.map +1 -1
  64. package/dist/cjs/components/session/__generated__/SessionListRefetchQuery.graphql.js +1 -2
  65. package/dist/cjs/components/session/__generated__/SessionListRefetchQuery.graphql.js.map +1 -1
  66. package/dist/cjs/components/session/__generated__/SessionList_sessions.graphql.js +1 -2
  67. package/dist/cjs/components/session/__generated__/SessionList_sessions.graphql.js.map +1 -1
  68. package/dist/cjs/components/session/formatDate.js +0 -2
  69. package/dist/cjs/components/session/formatDate.js.map +1 -1
  70. package/dist/cjs/components/session/getLastSeen.js +0 -2
  71. package/dist/cjs/components/session/getLastSeen.js.map +1 -1
  72. package/dist/cjs/components/shared/ButtonUpdate.js +2 -9
  73. package/dist/cjs/components/shared/ButtonUpdate.js.map +1 -1
  74. package/dist/cjs/components/shared/ErrorResult.js +4 -17
  75. package/dist/cjs/components/shared/ErrorResult.js.map +1 -1
  76. package/dist/cjs/components/shared/MainLoader.js +0 -10
  77. package/dist/cjs/components/shared/MainLoader.js.map +1 -1
  78. package/dist/cjs/components/shared/icons/AndroidIcon.js +0 -6
  79. package/dist/cjs/components/shared/icons/AndroidIcon.js.map +1 -1
  80. package/dist/cjs/components/shared/icons/AppleIcon.js +0 -6
  81. package/dist/cjs/components/shared/icons/AppleIcon.js.map +1 -1
  82. package/dist/cjs/components/shared/icons/BrowserIcon.js +0 -6
  83. package/dist/cjs/components/shared/icons/BrowserIcon.js.map +1 -1
  84. package/dist/cjs/components/shared/icons/ProfileIcon.js +0 -6
  85. package/dist/cjs/components/shared/icons/ProfileIcon.js.map +1 -1
  86. package/dist/cjs/components/shared/icons/UnknownDeviceIcon.js +0 -6
  87. package/dist/cjs/components/shared/icons/UnknownDeviceIcon.js.map +1 -1
  88. package/dist/cjs/index.js +0 -19
  89. package/dist/cjs/index.js.map +1 -1
  90. package/dist/cjs/utils/getUserFullName.js +2 -4
  91. package/dist/cjs/utils/getUserFullName.js.map +1 -1
  92. package/dist/esm/{emotion.d.js → @types/emotion.d.js} +0 -0
  93. package/dist/esm/@types/emotion.d.js.map +1 -0
  94. package/dist/esm/@types/i18next.d.js +2 -0
  95. package/dist/esm/@types/i18next.d.js.map +1 -0
  96. package/dist/esm/components/profile/ProfileButton.js +0 -3
  97. package/dist/esm/components/profile/ProfileButton.js.map +1 -1
  98. package/dist/esm/components/profile/ProfileConfigContext.js.map +1 -1
  99. package/dist/esm/components/profile/ProfileContext.js.map +1 -1
  100. package/dist/esm/components/profile/ProfileDrawer.js +0 -3
  101. package/dist/esm/components/profile/ProfileDrawer.js.map +1 -1
  102. package/dist/esm/components/profile/ProfileDrawerContent.js +5 -16
  103. package/dist/esm/components/profile/ProfileDrawerContent.js.map +1 -1
  104. package/dist/esm/components/profile/ProfileNavigationItem.js +1 -4
  105. package/dist/esm/components/profile/ProfileNavigationItem.js.map +1 -1
  106. package/dist/esm/components/profile/ProfileUpdateNameForm.js +1 -4
  107. package/dist/esm/components/profile/ProfileUpdateNameForm.js.map +1 -1
  108. package/dist/esm/components/profile/ProfileUpdateNameModal.js +3 -5
  109. package/dist/esm/components/profile/ProfileUpdateNameModal.js.map +1 -1
  110. package/dist/esm/components/profile/ProfileUpdatePasswordForm.js +1 -4
  111. package/dist/esm/components/profile/ProfileUpdatePasswordForm.js.map +1 -1
  112. package/dist/esm/components/profile/ProfileUpdatePasswordModal.js +3 -5
  113. package/dist/esm/components/profile/ProfileUpdatePasswordModal.js.map +1 -1
  114. package/dist/esm/components/profile/ProtectedWrapper.js +0 -4
  115. package/dist/esm/components/profile/ProtectedWrapper.js.map +1 -1
  116. package/dist/esm/components/profile/UserAvatar.js +0 -3
  117. package/dist/esm/components/profile/UserAvatar.js.map +1 -1
  118. package/dist/esm/components/profile/UserAvatarAddon.js +0 -3
  119. package/dist/esm/components/profile/UserAvatarAddon.js.map +1 -1
  120. package/dist/esm/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js +4 -8
  121. package/dist/esm/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js.map +1 -1
  122. package/dist/esm/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js +33 -41
  123. package/dist/esm/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js.map +1 -1
  124. package/dist/esm/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.js +4 -8
  125. package/dist/esm/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.js.map +1 -1
  126. package/dist/esm/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.js +33 -41
  127. package/dist/esm/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.js.map +1 -1
  128. package/dist/esm/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js +31 -47
  129. package/dist/esm/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js.map +1 -1
  130. package/dist/esm/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js +27 -35
  131. package/dist/esm/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js.map +1 -1
  132. package/dist/esm/components/profile/__generated__/ProtectedWrapperQuery.graphql.js +4 -8
  133. package/dist/esm/components/profile/__generated__/ProtectedWrapperQuery.graphql.js.map +1 -1
  134. package/dist/esm/components/session/SessionDrawer.js +1 -4
  135. package/dist/esm/components/session/SessionDrawer.js.map +1 -1
  136. package/dist/esm/components/session/SessionDrawerContent.js +0 -5
  137. package/dist/esm/components/session/SessionDrawerContent.js.map +1 -1
  138. package/dist/esm/components/session/SessionList.js +1 -4
  139. package/dist/esm/components/session/SessionList.js.map +1 -1
  140. package/dist/esm/components/session/SessionListItem.js +3 -17
  141. package/dist/esm/components/session/SessionListItem.js.map +1 -1
  142. package/dist/esm/components/session/SessionListSkeleton.js +1 -3
  143. package/dist/esm/components/session/SessionListSkeleton.js.map +1 -1
  144. package/dist/esm/components/session/__generated__/SessionDrawerContentQuery.graphql.js +1 -1
  145. package/dist/esm/components/session/__generated__/SessionDrawerContentQuery.graphql.js.map +1 -1
  146. package/dist/esm/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js +4 -8
  147. package/dist/esm/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js.map +1 -1
  148. package/dist/esm/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js +27 -35
  149. package/dist/esm/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js.map +1 -1
  150. package/dist/esm/components/session/__generated__/SessionListItem_session.graphql.js +1 -1
  151. package/dist/esm/components/session/__generated__/SessionListItem_session.graphql.js.map +1 -1
  152. package/dist/esm/components/session/__generated__/SessionListRefetchQuery.graphql.js +1 -1
  153. package/dist/esm/components/session/__generated__/SessionListRefetchQuery.graphql.js.map +1 -1
  154. package/dist/esm/components/session/__generated__/SessionList_sessions.graphql.js +1 -1
  155. package/dist/esm/components/session/__generated__/SessionList_sessions.graphql.js.map +1 -1
  156. package/dist/esm/components/session/formatDate.js +0 -1
  157. package/dist/esm/components/session/formatDate.js.map +1 -1
  158. package/dist/esm/components/session/getLastSeen.js +0 -1
  159. package/dist/esm/components/session/getLastSeen.js.map +1 -1
  160. package/dist/esm/components/shared/ButtonUpdate.js +1 -3
  161. package/dist/esm/components/shared/ButtonUpdate.js.map +1 -1
  162. package/dist/esm/components/shared/ErrorResult.js +3 -5
  163. package/dist/esm/components/shared/ErrorResult.js.map +1 -1
  164. package/dist/esm/components/shared/MainLoader.js +0 -2
  165. package/dist/esm/components/shared/MainLoader.js.map +1 -1
  166. package/dist/esm/components/shared/icons/AndroidIcon.js +0 -1
  167. package/dist/esm/components/shared/icons/AndroidIcon.js.map +1 -1
  168. package/dist/esm/components/shared/icons/AppleIcon.js +0 -1
  169. package/dist/esm/components/shared/icons/AppleIcon.js.map +1 -1
  170. package/dist/esm/components/shared/icons/BrowserIcon.js +0 -1
  171. package/dist/esm/components/shared/icons/BrowserIcon.js.map +1 -1
  172. package/dist/esm/components/shared/icons/ProfileIcon.js +0 -1
  173. package/dist/esm/components/shared/icons/ProfileIcon.js.map +1 -1
  174. package/dist/esm/components/shared/icons/UnknownDeviceIcon.js +0 -1
  175. package/dist/esm/components/shared/icons/UnknownDeviceIcon.js.map +1 -1
  176. package/dist/esm/index.js.map +1 -1
  177. package/dist/esm/utils/getUserFullName.js +0 -1
  178. package/dist/esm/utils/getUserFullName.js.map +1 -1
  179. package/dist/types/{components → src/lib/components}/profile/ProfileButton.d.ts +0 -0
  180. package/dist/types/src/lib/components/profile/ProfileButton.d.ts.map +1 -0
  181. package/dist/types/{components → src/lib/components}/profile/ProfileConfigContext.d.ts +0 -0
  182. package/dist/types/src/lib/components/profile/ProfileConfigContext.d.ts.map +1 -0
  183. package/dist/types/{components → src/lib/components}/profile/ProfileContext.d.ts +0 -0
  184. package/dist/types/src/lib/components/profile/ProfileContext.d.ts.map +1 -0
  185. package/dist/types/{components → src/lib/components}/profile/ProfileDrawer.d.ts +0 -0
  186. package/dist/types/src/lib/components/profile/ProfileDrawer.d.ts.map +1 -0
  187. package/dist/types/{components → src/lib/components}/profile/ProfileDrawerContent.d.ts +0 -0
  188. package/dist/types/src/lib/components/profile/ProfileDrawerContent.d.ts.map +1 -0
  189. package/dist/types/{components → src/lib/components}/profile/ProfileNavigationItem.d.ts +0 -0
  190. package/dist/types/src/lib/components/profile/ProfileNavigationItem.d.ts.map +1 -0
  191. package/dist/types/{components → src/lib/components}/profile/ProfileUpdateNameForm.d.ts +0 -0
  192. package/dist/types/src/lib/components/profile/ProfileUpdateNameForm.d.ts.map +1 -0
  193. package/dist/types/{components → src/lib/components}/profile/ProfileUpdateNameModal.d.ts +0 -0
  194. package/dist/types/src/lib/components/profile/ProfileUpdateNameModal.d.ts.map +1 -0
  195. package/dist/types/{components → src/lib/components}/profile/ProfileUpdatePasswordForm.d.ts +0 -0
  196. package/dist/types/src/lib/components/profile/ProfileUpdatePasswordForm.d.ts.map +1 -0
  197. package/dist/types/{components → src/lib/components}/profile/ProfileUpdatePasswordModal.d.ts +0 -0
  198. package/dist/types/src/lib/components/profile/ProfileUpdatePasswordModal.d.ts.map +1 -0
  199. package/dist/types/{components → src/lib/components}/profile/ProtectedWrapper.d.ts +0 -0
  200. package/dist/types/src/lib/components/profile/ProtectedWrapper.d.ts.map +1 -0
  201. package/dist/types/{components → src/lib/components}/profile/UserAvatar.d.ts +0 -0
  202. package/dist/types/src/lib/components/profile/UserAvatar.d.ts.map +1 -0
  203. package/dist/types/{components → src/lib/components}/profile/UserAvatarAddon.d.ts +0 -0
  204. package/dist/types/src/lib/components/profile/UserAvatarAddon.d.ts.map +1 -0
  205. package/dist/types/{components → src/lib/components}/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.d.ts +0 -0
  206. package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.d.ts.map +1 -0
  207. package/dist/types/{components → src/lib/components}/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.d.ts +0 -0
  208. package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.d.ts.map +1 -0
  209. package/dist/types/{components → src/lib/components}/profile/__generated__/ProfileDrawerSignOutMutation.graphql.d.ts +0 -0
  210. package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.d.ts.map +1 -0
  211. package/dist/types/{components → src/lib/components}/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.d.ts +0 -0
  212. package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.d.ts.map +1 -0
  213. package/dist/types/{components → src/lib/components}/profile/__generated__/ProfileUpdateNameModalMutation.graphql.d.ts +0 -0
  214. package/dist/types/src/lib/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.d.ts.map +1 -0
  215. package/dist/types/{components → src/lib/components}/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.d.ts +0 -0
  216. package/dist/types/src/lib/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.d.ts.map +1 -0
  217. package/dist/types/{components → src/lib/components}/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts +0 -0
  218. package/dist/types/src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts.map +1 -0
  219. package/dist/types/{components → src/lib/components}/session/SessionDrawer.d.ts +0 -0
  220. package/dist/types/src/lib/components/session/SessionDrawer.d.ts.map +1 -0
  221. package/dist/types/{components → src/lib/components}/session/SessionDrawerContent.d.ts +0 -0
  222. package/dist/types/src/lib/components/session/SessionDrawerContent.d.ts.map +1 -0
  223. package/dist/types/{components → src/lib/components}/session/SessionList.d.ts +0 -0
  224. package/dist/types/src/lib/components/session/SessionList.d.ts.map +1 -0
  225. package/dist/types/{components → src/lib/components}/session/SessionListItem.d.ts +0 -0
  226. package/dist/types/src/lib/components/session/SessionListItem.d.ts.map +1 -0
  227. package/dist/types/{components → src/lib/components}/session/SessionListSkeleton.d.ts +0 -0
  228. package/dist/types/src/lib/components/session/SessionListSkeleton.d.ts.map +1 -0
  229. package/dist/types/{components → src/lib/components}/session/__generated__/SessionDrawerContentQuery.graphql.d.ts +0 -0
  230. package/dist/types/src/lib/components/session/__generated__/SessionDrawerContentQuery.graphql.d.ts.map +1 -0
  231. package/dist/types/{components → src/lib/components}/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.d.ts +0 -0
  232. package/dist/types/src/lib/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.d.ts.map +1 -0
  233. package/dist/types/{components → src/lib/components}/session/__generated__/SessionListItemDestroySessionMutation.graphql.d.ts +0 -0
  234. package/dist/types/src/lib/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.d.ts.map +1 -0
  235. package/dist/types/{components → src/lib/components}/session/__generated__/SessionListItem_session.graphql.d.ts +0 -0
  236. package/dist/types/src/lib/components/session/__generated__/SessionListItem_session.graphql.d.ts.map +1 -0
  237. package/dist/types/{components → src/lib/components}/session/__generated__/SessionListRefetchQuery.graphql.d.ts +0 -0
  238. package/dist/types/src/lib/components/session/__generated__/SessionListRefetchQuery.graphql.d.ts.map +1 -0
  239. package/dist/types/{components → src/lib/components}/session/__generated__/SessionList_sessions.graphql.d.ts +0 -0
  240. package/dist/types/src/lib/components/session/__generated__/SessionList_sessions.graphql.d.ts.map +1 -0
  241. package/dist/types/{components → src/lib/components}/session/formatDate.d.ts +0 -0
  242. package/dist/types/src/lib/components/session/formatDate.d.ts.map +1 -0
  243. package/dist/types/{components → src/lib/components}/session/getLastSeen.d.ts +0 -0
  244. package/dist/types/src/lib/components/session/getLastSeen.d.ts.map +1 -0
  245. package/dist/types/{components → src/lib/components}/shared/ButtonUpdate.d.ts +0 -0
  246. package/dist/types/src/lib/components/shared/ButtonUpdate.d.ts.map +1 -0
  247. package/dist/types/{components → src/lib/components}/shared/ErrorResult.d.ts +0 -0
  248. package/dist/types/src/lib/components/shared/ErrorResult.d.ts.map +1 -0
  249. package/dist/types/{components → src/lib/components}/shared/MainLoader.d.ts +0 -0
  250. package/dist/types/src/lib/components/shared/MainLoader.d.ts.map +1 -0
  251. package/dist/types/{components → src/lib/components}/shared/icons/AndroidIcon.d.ts +0 -0
  252. package/dist/types/src/lib/components/shared/icons/AndroidIcon.d.ts.map +1 -0
  253. package/dist/types/{components → src/lib/components}/shared/icons/AppleIcon.d.ts +0 -0
  254. package/dist/types/src/lib/components/shared/icons/AppleIcon.d.ts.map +1 -0
  255. package/dist/types/{components → src/lib/components}/shared/icons/BrowserIcon.d.ts +0 -0
  256. package/dist/types/src/lib/components/shared/icons/BrowserIcon.d.ts.map +1 -0
  257. package/dist/types/{components → src/lib/components}/shared/icons/ProfileIcon.d.ts +0 -0
  258. package/dist/types/src/lib/components/shared/icons/ProfileIcon.d.ts.map +1 -0
  259. package/dist/types/{components → src/lib/components}/shared/icons/UnknownDeviceIcon.d.ts +0 -0
  260. package/dist/types/src/lib/components/shared/icons/UnknownDeviceIcon.d.ts.map +1 -0
  261. package/dist/types/{index.d.ts → src/lib/index.d.ts} +0 -0
  262. package/dist/types/src/lib/index.d.ts.map +1 -0
  263. package/dist/types/{utils → src/lib/utils}/getUserFullName.d.ts +0 -0
  264. package/dist/types/src/lib/utils/getUserFullName.d.ts.map +1 -0
  265. package/package.json +32 -34
  266. package/dist/cjs/emotion.d.js.map +0 -1
  267. package/dist/esm/emotion.d.js.map +0 -1
  268. package/dist/types/components/profile/ProfileButton.d.ts.map +0 -1
  269. package/dist/types/components/profile/ProfileConfigContext.d.ts.map +0 -1
  270. package/dist/types/components/profile/ProfileContext.d.ts.map +0 -1
  271. package/dist/types/components/profile/ProfileDrawer.d.ts.map +0 -1
  272. package/dist/types/components/profile/ProfileDrawerContent.d.ts.map +0 -1
  273. package/dist/types/components/profile/ProfileNavigationItem.d.ts.map +0 -1
  274. package/dist/types/components/profile/ProfileUpdateNameForm.d.ts.map +0 -1
  275. package/dist/types/components/profile/ProfileUpdateNameModal.d.ts.map +0 -1
  276. package/dist/types/components/profile/ProfileUpdatePasswordForm.d.ts.map +0 -1
  277. package/dist/types/components/profile/ProfileUpdatePasswordModal.d.ts.map +0 -1
  278. package/dist/types/components/profile/ProtectedWrapper.d.ts.map +0 -1
  279. package/dist/types/components/profile/UserAvatar.d.ts.map +0 -1
  280. package/dist/types/components/profile/UserAvatarAddon.d.ts.map +0 -1
  281. package/dist/types/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.d.ts.map +0 -1
  282. package/dist/types/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.d.ts.map +0 -1
  283. package/dist/types/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.d.ts.map +0 -1
  284. package/dist/types/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.d.ts.map +0 -1
  285. package/dist/types/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.d.ts.map +0 -1
  286. package/dist/types/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.d.ts.map +0 -1
  287. package/dist/types/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts.map +0 -1
  288. package/dist/types/components/session/SessionDrawer.d.ts.map +0 -1
  289. package/dist/types/components/session/SessionDrawerContent.d.ts.map +0 -1
  290. package/dist/types/components/session/SessionList.d.ts.map +0 -1
  291. package/dist/types/components/session/SessionListItem.d.ts.map +0 -1
  292. package/dist/types/components/session/SessionListSkeleton.d.ts.map +0 -1
  293. package/dist/types/components/session/__generated__/SessionDrawerContentQuery.graphql.d.ts.map +0 -1
  294. package/dist/types/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.d.ts.map +0 -1
  295. package/dist/types/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.d.ts.map +0 -1
  296. package/dist/types/components/session/__generated__/SessionListItem_session.graphql.d.ts.map +0 -1
  297. package/dist/types/components/session/__generated__/SessionListRefetchQuery.graphql.d.ts.map +0 -1
  298. package/dist/types/components/session/__generated__/SessionList_sessions.graphql.d.ts.map +0 -1
  299. package/dist/types/components/session/formatDate.d.ts.map +0 -1
  300. package/dist/types/components/session/getLastSeen.d.ts.map +0 -1
  301. package/dist/types/components/shared/ButtonUpdate.d.ts.map +0 -1
  302. package/dist/types/components/shared/ErrorResult.d.ts.map +0 -1
  303. package/dist/types/components/shared/MainLoader.d.ts.map +0 -1
  304. package/dist/types/components/shared/icons/AndroidIcon.d.ts.map +0 -1
  305. package/dist/types/components/shared/icons/AppleIcon.d.ts.map +0 -1
  306. package/dist/types/components/shared/icons/BrowserIcon.d.ts.map +0 -1
  307. package/dist/types/components/shared/icons/ProfileIcon.d.ts.map +0 -1
  308. package/dist/types/components/shared/icons/UnknownDeviceIcon.d.ts.map +0 -1
  309. package/dist/types/index.d.ts.map +0 -1
  310. package/dist/types/utils/getUserFullName.d.ts.map +0 -1
@@ -1,5 +1,4 @@
1
1
  var _ProfileUpdateNameModalMutation;
2
-
3
2
  import React, { useCallback, useEffect, useMemo, useState } from 'react';
4
3
  import { message, Modal } from '@os-design/core';
5
4
  import { useTranslation } from 'react-i18next';
@@ -7,14 +6,13 @@ import { handleFormErrors, FormContext } from '@os-team/form-utils';
7
6
  import { useMutation } from 'react-relay/hooks';
8
7
  import ProfileUpdateNameForm from './ProfileUpdateNameForm';
9
8
  import { useProfile } from './ProfileContext';
10
-
11
9
  const ProfileUpdateNameModal = ({
12
10
  visibility,
13
11
  onClose
14
12
  }) => {
15
13
  const {
16
14
  t
17
- } = useTranslation('profile');
15
+ } = useTranslation(['profile']);
18
16
  const {
19
17
  firstName,
20
18
  lastName
@@ -25,8 +23,9 @@ const ProfileUpdateNameModal = ({
25
23
  firstName: firstName || '',
26
24
  lastName: lastName || ''
27
25
  });
28
- const [commit, loading] = useMutation(_ProfileUpdateNameModalMutation !== void 0 ? _ProfileUpdateNameModalMutation : (_ProfileUpdateNameModalMutation = require("./__generated__/ProfileUpdateNameModalMutation.graphql"), _ProfileUpdateNameModalMutation.hash && _ProfileUpdateNameModalMutation.hash !== "7264a05b6738d5417df9f1dc462486aa" && console.error("The definition of 'ProfileUpdateNameModalMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _ProfileUpdateNameModalMutation)); // Reset the data if the modal is visible
26
+ const [commit, loading] = useMutation(_ProfileUpdateNameModalMutation !== void 0 ? _ProfileUpdateNameModalMutation : (_ProfileUpdateNameModalMutation = require("./__generated__/ProfileUpdateNameModalMutation.graphql"), _ProfileUpdateNameModalMutation.hash && _ProfileUpdateNameModalMutation.hash !== "7264a05b6738d5417df9f1dc462486aa" && console.error("The definition of 'ProfileUpdateNameModalMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _ProfileUpdateNameModalMutation));
29
27
 
28
+ // Reset the data if the modal is visible
30
29
  useEffect(() => {
31
30
  if (visibility) {
32
31
  setData({
@@ -73,6 +72,5 @@ const ProfileUpdateNameModal = ({
73
72
  value: formContext
74
73
  }, /*#__PURE__*/React.createElement(ProfileUpdateNameForm, null)));
75
74
  };
76
-
77
75
  export default ProfileUpdateNameModal;
78
76
  //# sourceMappingURL=ProfileUpdateNameModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileUpdateNameModal.js","names":["React","useCallback","useEffect","useMemo","useState","message","Modal","useTranslation","handleFormErrors","FormContext","useMutation","ProfileUpdateNameForm","useProfile","ProfileUpdateNameModal","visibility","onClose","t","firstName","lastName","fieldErrors","setFieldErrors","formError","setFormError","data","setData","commit","loading","onSubmit","variables","input","onError","error","onCompleted","undefined","success","formContext"],"sources":["../../../../src/lib/components/profile/ProfileUpdateNameModal.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { message, Modal } from '@os-design/core';\nimport { useTranslation } from 'react-i18next';\nimport { Constraint, handleFormErrors, FormContext } from '@os-team/form-utils';\nimport { graphql } from 'babel-plugin-relay/macro';\nimport { useMutation } from 'react-relay/hooks';\nimport ProfileUpdateNameForm, {\n ProfileUpdateNameFormData,\n} from './ProfileUpdateNameForm';\nimport { useProfile } from './ProfileContext';\nimport { ProfileUpdateNameModalMutation } from './__generated__/ProfileUpdateNameModalMutation.graphql';\n\ninterface ProfileUpdateNameModalProps {\n visibility: boolean;\n onClose: () => void;\n}\n\nconst ProfileUpdateNameModal: React.FC<ProfileUpdateNameModalProps> = ({\n visibility,\n onClose,\n}) => {\n const { t } = useTranslation('profile');\n const { firstName, lastName } = useProfile();\n\n const [fieldErrors, setFieldErrors] = useState<Record<string, Constraint>>(\n {}\n );\n const [formError, setFormError] = useState<string | undefined>();\n const [data, setData] = useState<ProfileUpdateNameFormData>({\n firstName: firstName || '',\n lastName: lastName || '',\n });\n\n const [commit, loading] = useMutation<ProfileUpdateNameModalMutation>(graphql`\n mutation ProfileUpdateNameModalMutation($input: UpdateProfileInput!) {\n updateProfile(input: $input) {\n firstName\n lastName\n }\n }\n `);\n\n // Reset the data if the modal is visible\n useEffect(() => {\n if (visibility) {\n setData({\n firstName: firstName || '',\n lastName: lastName || '',\n });\n }\n }, [firstName, lastName, visibility]);\n\n const onSubmit = useCallback(() => {\n commit({\n variables: {\n input: data,\n },\n onError: (error) => {\n handleFormErrors(error, { setFieldErrors, setFormError });\n },\n onCompleted: () => {\n setFieldErrors({});\n setFormError(undefined);\n message.success(t('profile:updated'));\n onClose();\n },\n });\n }, [commit, data, onClose, t]);\n\n const formContext = useMemo(\n () => ({\n data,\n setData,\n fieldErrors,\n setFieldErrors,\n formError,\n setFormError,\n }),\n [data, fieldErrors, formError]\n );\n\n return (\n <Modal\n title={t('profile:updateNameModal.title')}\n visible={visibility}\n okText={t('profile:update')}\n okLoading={loading}\n onOk={onSubmit}\n onClose={onClose}\n >\n <FormContext.Provider value={formContext}>\n <ProfileUpdateNameForm />\n </FormContext.Provider>\n </Modal>\n );\n};\n\nexport default ProfileUpdateNameModal;\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAgBC,WAAhB,EAA6BC,SAA7B,EAAwCC,OAAxC,EAAiDC,QAAjD,QAAiE,OAAjE;AACA,SAASC,OAAT,EAAkBC,KAAlB,QAA+B,iBAA/B;AACA,SAASC,cAAT,QAA+B,eAA/B;AACA,SAAqBC,gBAArB,EAAuCC,WAAvC,QAA0D,qBAA1D;AAEA,SAASC,WAAT,QAA4B,mBAA5B;AACA,OAAOC,qBAAP,MAEO,yBAFP;AAGA,SAASC,UAAT,QAA2B,kBAA3B;;AAQA,MAAMC,sBAA6D,GAAG,CAAC;EACrEC,UADqE;EAErEC;AAFqE,CAAD,KAGhE;EACJ,MAAM;IAAEC;EAAF,IAAQT,cAAc,CAAC,SAAD,CAA5B;EACA,MAAM;IAAEU,SAAF;IAAaC;EAAb,IAA0BN,UAAU,EAA1C;EAEA,MAAM,CAACO,WAAD,EAAcC,cAAd,IAAgChB,QAAQ,CAC5C,EAD4C,CAA9C;EAGA,MAAM,CAACiB,SAAD,EAAYC,YAAZ,IAA4BlB,QAAQ,EAA1C;EACA,MAAM,CAACmB,IAAD,EAAOC,OAAP,IAAkBpB,QAAQ,CAA4B;IAC1Da,SAAS,EAAEA,SAAS,IAAI,EADkC;IAE1DC,QAAQ,EAAEA,QAAQ,IAAI;EAFoC,CAA5B,CAAhC;EAKA,MAAM,CAACO,MAAD,EAASC,OAAT,IAAoBhB,WAAW,6fAArC,CAbI,CAsBJ;;EACAR,SAAS,CAAC,MAAM;IACd,IAAIY,UAAJ,EAAgB;MACdU,OAAO,CAAC;QACNP,SAAS,EAAEA,SAAS,IAAI,EADlB;QAENC,QAAQ,EAAEA,QAAQ,IAAI;MAFhB,CAAD,CAAP;IAID;EACF,CAPQ,EAON,CAACD,SAAD,EAAYC,QAAZ,EAAsBJ,UAAtB,CAPM,CAAT;EASA,MAAMa,QAAQ,GAAG1B,WAAW,CAAC,MAAM;IACjCwB,MAAM,CAAC;MACLG,SAAS,EAAE;QACTC,KAAK,EAAEN;MADE,CADN;MAILO,OAAO,EAAGC,KAAD,IAAW;QAClBvB,gBAAgB,CAACuB,KAAD,EAAQ;UAAEX,cAAF;UAAkBE;QAAlB,CAAR,CAAhB;MACD,CANI;MAOLU,WAAW,EAAE,MAAM;QACjBZ,cAAc,CAAC,EAAD,CAAd;QACAE,YAAY,CAACW,SAAD,CAAZ;QACA5B,OAAO,CAAC6B,OAAR,CAAgBlB,CAAC,CAAC,iBAAD,CAAjB;QACAD,OAAO;MACR;IAZI,CAAD,CAAN;EAcD,CAf2B,EAezB,CAACU,MAAD,EAASF,IAAT,EAAeR,OAAf,EAAwBC,CAAxB,CAfyB,CAA5B;EAiBA,MAAMmB,WAAW,GAAGhC,OAAO,CACzB,OAAO;IACLoB,IADK;IAELC,OAFK;IAGLL,WAHK;IAILC,cAJK;IAKLC,SALK;IAMLC;EANK,CAAP,CADyB,EASzB,CAACC,IAAD,EAAOJ,WAAP,EAAoBE,SAApB,CATyB,CAA3B;EAYA,oBACE,oBAAC,KAAD;IACE,KAAK,EAAEL,CAAC,CAAC,+BAAD,CADV;IAEE,OAAO,EAAEF,UAFX;IAGE,MAAM,EAAEE,CAAC,CAAC,gBAAD,CAHX;IAIE,SAAS,EAAEU,OAJb;IAKE,IAAI,EAAEC,QALR;IAME,OAAO,EAAEZ;EANX,gBAQE,oBAAC,WAAD,CAAa,QAAb;IAAsB,KAAK,EAAEoB;EAA7B,gBACE,oBAAC,qBAAD,OADF,CARF,CADF;AAcD,CA9ED;;AAgFA,eAAetB,sBAAf"}
1
+ {"version":3,"file":"ProfileUpdateNameModal.js","names":["React","useCallback","useEffect","useMemo","useState","message","Modal","useTranslation","handleFormErrors","FormContext","useMutation","ProfileUpdateNameForm","useProfile","ProfileUpdateNameModal","visibility","onClose","t","firstName","lastName","fieldErrors","setFieldErrors","formError","setFormError","data","setData","commit","loading","onSubmit","variables","input","onError","error","onCompleted","undefined","success","formContext"],"sources":["../../../../src/lib/components/profile/ProfileUpdateNameModal.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { message, Modal } from '@os-design/core';\nimport { useTranslation } from 'react-i18next';\nimport { Constraint, handleFormErrors, FormContext } from '@os-team/form-utils';\nimport { graphql } from 'babel-plugin-relay/macro';\nimport { useMutation } from 'react-relay/hooks';\nimport ProfileUpdateNameForm, {\n ProfileUpdateNameFormData,\n} from './ProfileUpdateNameForm';\nimport { useProfile } from './ProfileContext';\nimport { ProfileUpdateNameModalMutation } from './__generated__/ProfileUpdateNameModalMutation.graphql';\n\ninterface ProfileUpdateNameModalProps {\n visibility: boolean;\n onClose: () => void;\n}\n\nconst ProfileUpdateNameModal: React.FC<ProfileUpdateNameModalProps> = ({\n visibility,\n onClose,\n}) => {\n const { t } = useTranslation(['profile']);\n const { firstName, lastName } = useProfile();\n\n const [fieldErrors, setFieldErrors] = useState<Record<string, Constraint>>(\n {}\n );\n const [formError, setFormError] = useState<string | undefined>();\n const [data, setData] = useState<ProfileUpdateNameFormData>({\n firstName: firstName || '',\n lastName: lastName || '',\n });\n\n const [commit, loading] = useMutation<ProfileUpdateNameModalMutation>(graphql`\n mutation ProfileUpdateNameModalMutation($input: UpdateProfileInput!) {\n updateProfile(input: $input) {\n firstName\n lastName\n }\n }\n `);\n\n // Reset the data if the modal is visible\n useEffect(() => {\n if (visibility) {\n setData({\n firstName: firstName || '',\n lastName: lastName || '',\n });\n }\n }, [firstName, lastName, visibility]);\n\n const onSubmit = useCallback(() => {\n commit({\n variables: {\n input: data,\n },\n onError: (error) => {\n handleFormErrors(error, { setFieldErrors, setFormError });\n },\n onCompleted: () => {\n setFieldErrors({});\n setFormError(undefined);\n message.success(t('profile:updated'));\n onClose();\n },\n });\n }, [commit, data, onClose, t]);\n\n const formContext = useMemo(\n () => ({\n data,\n setData,\n fieldErrors,\n setFieldErrors,\n formError,\n setFormError,\n }),\n [data, fieldErrors, formError]\n );\n\n return (\n <Modal\n title={t('profile:updateNameModal.title')}\n visible={visibility}\n okText={t('profile:update')}\n okLoading={loading}\n onOk={onSubmit}\n onClose={onClose}\n >\n <FormContext.Provider value={formContext}>\n <ProfileUpdateNameForm />\n </FormContext.Provider>\n </Modal>\n );\n};\n\nexport default ProfileUpdateNameModal;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACxE,SAASC,OAAO,EAAEC,KAAK,QAAQ,iBAAiB;AAChD,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAAqBC,gBAAgB,EAAEC,WAAW,QAAQ,qBAAqB;AAE/E,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,OAAOC,qBAAqB,MAErB,yBAAyB;AAChC,SAASC,UAAU,QAAQ,kBAAkB;AAQ7C,MAAMC,sBAA6D,GAAG,CAAC;EACrEC,UAAU;EACVC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAE,CAAC,GAAGT,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC;EACzC,MAAM;IAAEU,SAAS;IAAEC;EAAS,CAAC,GAAGN,UAAU,EAAE;EAE5C,MAAM,CAACO,WAAW,EAAEC,cAAc,CAAC,GAAGhB,QAAQ,CAC5C,CAAC,CAAC,CACH;EACD,MAAM,CAACiB,SAAS,EAAEC,YAAY,CAAC,GAAGlB,QAAQ,EAAsB;EAChE,MAAM,CAACmB,IAAI,EAAEC,OAAO,CAAC,GAAGpB,QAAQ,CAA4B;IAC1Da,SAAS,EAAEA,SAAS,IAAI,EAAE;IAC1BC,QAAQ,EAAEA,QAAQ,IAAI;EACxB,CAAC,CAAC;EAEF,MAAM,CAACO,MAAM,EAAEC,OAAO,CAAC,GAAGhB,WAAW,6fAOnC;;EAEF;EACAR,SAAS,CAAC,MAAM;IACd,IAAIY,UAAU,EAAE;MACdU,OAAO,CAAC;QACNP,SAAS,EAAEA,SAAS,IAAI,EAAE;QAC1BC,QAAQ,EAAEA,QAAQ,IAAI;MACxB,CAAC,CAAC;IACJ;EACF,CAAC,EAAE,CAACD,SAAS,EAAEC,QAAQ,EAAEJ,UAAU,CAAC,CAAC;EAErC,MAAMa,QAAQ,GAAG1B,WAAW,CAAC,MAAM;IACjCwB,MAAM,CAAC;MACLG,SAAS,EAAE;QACTC,KAAK,EAAEN;MACT,CAAC;MACDO,OAAO,EAAGC,KAAK,IAAK;QAClBvB,gBAAgB,CAACuB,KAAK,EAAE;UAAEX,cAAc;UAAEE;QAAa,CAAC,CAAC;MAC3D,CAAC;MACDU,WAAW,EAAE,MAAM;QACjBZ,cAAc,CAAC,CAAC,CAAC,CAAC;QAClBE,YAAY,CAACW,SAAS,CAAC;QACvB5B,OAAO,CAAC6B,OAAO,CAAClB,CAAC,CAAC,iBAAiB,CAAC,CAAC;QACrCD,OAAO,EAAE;MACX;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAACU,MAAM,EAAEF,IAAI,EAAER,OAAO,EAAEC,CAAC,CAAC,CAAC;EAE9B,MAAMmB,WAAW,GAAGhC,OAAO,CACzB,OAAO;IACLoB,IAAI;IACJC,OAAO;IACPL,WAAW;IACXC,cAAc;IACdC,SAAS;IACTC;EACF,CAAC,CAAC,EACF,CAACC,IAAI,EAAEJ,WAAW,EAAEE,SAAS,CAAC,CAC/B;EAED,oBACE,oBAAC,KAAK;IACJ,KAAK,EAAEL,CAAC,CAAC,+BAA+B,CAAE;IAC1C,OAAO,EAAEF,UAAW;IACpB,MAAM,EAAEE,CAAC,CAAC,gBAAgB,CAAE;IAC5B,SAAS,EAAEU,OAAQ;IACnB,IAAI,EAAEC,QAAS;IACf,OAAO,EAAEZ;EAAQ,gBAEjB,oBAAC,WAAW,CAAC,QAAQ;IAAC,KAAK,EAAEoB;EAAY,gBACvC,oBAAC,qBAAqB,OAAG,CACJ,CACjB;AAEZ,CAAC;AAED,eAAetB,sBAAsB"}
@@ -1,16 +1,14 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
2
  import React from 'react';
4
3
  import { useForm, useFormItem } from '@os-team/form-utils';
5
4
  import { Alert, Form, FormItem, InputPassword } from '@os-design/core';
6
5
  import { useTranslation } from 'react-i18next';
7
-
8
6
  const ProfileUpdatePasswordForm = ({
9
7
  children
10
8
  }) => {
11
9
  const {
12
10
  t
13
- } = useTranslation('profile');
11
+ } = useTranslation(['profile']);
14
12
  const {
15
13
  formError
16
14
  } = useForm();
@@ -32,6 +30,5 @@ const ProfileUpdatePasswordForm = ({
32
30
  type: "error"
33
31
  }, formError), children);
34
32
  };
35
-
36
33
  export default ProfileUpdatePasswordForm;
37
34
  //# sourceMappingURL=ProfileUpdatePasswordForm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileUpdatePasswordForm.js","names":["React","useForm","useFormItem","Alert","Form","FormItem","InputPassword","useTranslation","ProfileUpdatePasswordForm","children","t","formError","currentPassword","password","returnObjects"],"sources":["../../../../src/lib/components/profile/ProfileUpdatePasswordForm.tsx"],"sourcesContent":["import React from 'react';\nimport { useForm, useFormItem } from '@os-team/form-utils';\nimport { Alert, Form, FormItem, InputPassword } from '@os-design/core';\nimport { useTranslation } from 'react-i18next';\n\nexport interface ProfileUpdatePasswordFormData {\n currentPassword: string;\n password: string;\n}\n\ninterface ProfileUpdatePasswordFormProps {\n children?: React.ReactNode;\n}\n\nconst ProfileUpdatePasswordForm: React.FC<ProfileUpdatePasswordFormProps> = ({\n children,\n}) => {\n const { t } = useTranslation('profile');\n const { formError } = useForm();\n\n const currentPassword = useFormItem('currentPassword');\n const password = useFormItem('password');\n\n return (\n <Form>\n <FormItem\n label={t('profile:updatePasswordModal.currentPassword.label')}\n {...currentPassword[0]}\n >\n <InputPassword\n placeholder={t(\n 'profile:updatePasswordModal.currentPassword.placeholder'\n )}\n {...currentPassword[1]}\n />\n </FormItem>\n\n <FormItem\n label={t('profile:updatePasswordModal.newPassword.label')}\n {...password[0]}\n >\n <InputPassword\n placeholder={t('profile:updatePasswordModal.newPassword.placeholder')}\n showStrengthMeter\n strengthNames={t(\n 'profile:updatePasswordModal.passwordStrengthNames',\n {\n returnObjects: true,\n }\n )}\n {...password[1]}\n />\n </FormItem>\n\n {formError && <Alert type='error'>{formError}</Alert>}\n\n {children}\n </Form>\n );\n};\n\nexport default ProfileUpdatePasswordForm;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,OAAT,EAAkBC,WAAlB,QAAqC,qBAArC;AACA,SAASC,KAAT,EAAgBC,IAAhB,EAAsBC,QAAtB,EAAgCC,aAAhC,QAAqD,iBAArD;AACA,SAASC,cAAT,QAA+B,eAA/B;;AAWA,MAAMC,yBAAmE,GAAG,CAAC;EAC3EC;AAD2E,CAAD,KAEtE;EACJ,MAAM;IAAEC;EAAF,IAAQH,cAAc,CAAC,SAAD,CAA5B;EACA,MAAM;IAAEI;EAAF,IAAgBV,OAAO,EAA7B;EAEA,MAAMW,eAAe,GAAGV,WAAW,CAAC,iBAAD,CAAnC;EACA,MAAMW,QAAQ,GAAGX,WAAW,CAAC,UAAD,CAA5B;EAEA,oBACE,oBAAC,IAAD,qBACE,oBAAC,QAAD;IACE,KAAK,EAAEQ,CAAC,CAAC,mDAAD;EADV,GAEME,eAAe,CAAC,CAAD,CAFrB,gBAIE,oBAAC,aAAD;IACE,WAAW,EAAEF,CAAC,CACZ,yDADY;EADhB,GAIME,eAAe,CAAC,CAAD,CAJrB,EAJF,CADF,eAaE,oBAAC,QAAD;IACE,KAAK,EAAEF,CAAC,CAAC,+CAAD;EADV,GAEMG,QAAQ,CAAC,CAAD,CAFd,gBAIE,oBAAC,aAAD;IACE,WAAW,EAAEH,CAAC,CAAC,qDAAD,CADhB;IAEE,iBAAiB,MAFnB;IAGE,aAAa,EAAEA,CAAC,CACd,mDADc,EAEd;MACEI,aAAa,EAAE;IADjB,CAFc;EAHlB,GASMD,QAAQ,CAAC,CAAD,CATd,EAJF,CAbF,EA8BGF,SAAS,iBAAI,oBAAC,KAAD;IAAO,IAAI,EAAC;EAAZ,GAAqBA,SAArB,CA9BhB,EAgCGF,QAhCH,CADF;AAoCD,CA7CD;;AA+CA,eAAeD,yBAAf"}
1
+ {"version":3,"file":"ProfileUpdatePasswordForm.js","names":["React","useForm","useFormItem","Alert","Form","FormItem","InputPassword","useTranslation","ProfileUpdatePasswordForm","children","t","formError","currentPassword","password","returnObjects"],"sources":["../../../../src/lib/components/profile/ProfileUpdatePasswordForm.tsx"],"sourcesContent":["import React from 'react';\nimport { useForm, useFormItem } from '@os-team/form-utils';\nimport { Alert, Form, FormItem, InputPassword } from '@os-design/core';\nimport { useTranslation } from 'react-i18next';\n\nexport interface ProfileUpdatePasswordFormData {\n currentPassword: string;\n password: string;\n}\n\ninterface ProfileUpdatePasswordFormProps {\n children?: React.ReactNode;\n}\n\nconst ProfileUpdatePasswordForm: React.FC<ProfileUpdatePasswordFormProps> = ({\n children,\n}) => {\n const { t } = useTranslation(['profile']);\n const { formError } = useForm();\n\n const currentPassword = useFormItem('currentPassword');\n const password = useFormItem('password');\n\n return (\n <Form>\n <FormItem\n label={t('profile:updatePasswordModal.currentPassword.label')}\n {...currentPassword[0]}\n >\n <InputPassword\n placeholder={t(\n 'profile:updatePasswordModal.currentPassword.placeholder'\n )}\n {...currentPassword[1]}\n />\n </FormItem>\n\n <FormItem\n label={t('profile:updatePasswordModal.newPassword.label')}\n {...password[0]}\n >\n <InputPassword\n placeholder={t('profile:updatePasswordModal.newPassword.placeholder')}\n showStrengthMeter\n strengthNames={t(\n 'profile:updatePasswordModal.passwordStrengthNames',\n {\n returnObjects: true,\n }\n )}\n {...password[1]}\n />\n </FormItem>\n\n {formError && <Alert type='error'>{formError}</Alert>}\n\n {children}\n </Form>\n );\n};\n\nexport default ProfileUpdatePasswordForm;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,EAAEC,WAAW,QAAQ,qBAAqB;AAC1D,SAASC,KAAK,EAAEC,IAAI,EAAEC,QAAQ,EAAEC,aAAa,QAAQ,iBAAiB;AACtE,SAASC,cAAc,QAAQ,eAAe;AAW9C,MAAMC,yBAAmE,GAAG,CAAC;EAC3EC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAE,CAAC,GAAGH,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC;EACzC,MAAM;IAAEI;EAAU,CAAC,GAAGV,OAAO,EAAE;EAE/B,MAAMW,eAAe,GAAGV,WAAW,CAAC,iBAAiB,CAAC;EACtD,MAAMW,QAAQ,GAAGX,WAAW,CAAC,UAAU,CAAC;EAExC,oBACE,oBAAC,IAAI,qBACH,oBAAC,QAAQ;IACP,KAAK,EAAEQ,CAAC,CAAC,mDAAmD;EAAE,GAC1DE,eAAe,CAAC,CAAC,CAAC,gBAEtB,oBAAC,aAAa;IACZ,WAAW,EAAEF,CAAC,CACZ,yDAAyD;EACzD,GACEE,eAAe,CAAC,CAAC,CAAC,EACtB,CACO,eAEX,oBAAC,QAAQ;IACP,KAAK,EAAEF,CAAC,CAAC,+CAA+C;EAAE,GACtDG,QAAQ,CAAC,CAAC,CAAC,gBAEf,oBAAC,aAAa;IACZ,WAAW,EAAEH,CAAC,CAAC,qDAAqD,CAAE;IACtE,iBAAiB;IACjB,aAAa,EAAEA,CAAC,CACd,mDAAmD,EACnD;MACEI,aAAa,EAAE;IACjB,CAAC;EACD,GACED,QAAQ,CAAC,CAAC,CAAC,EACf,CACO,EAEVF,SAAS,iBAAI,oBAAC,KAAK;IAAC,IAAI,EAAC;EAAO,GAAEA,SAAS,CAAS,EAEpDF,QAAQ,CACJ;AAEX,CAAC;AAED,eAAeD,yBAAyB"}
@@ -1,27 +1,26 @@
1
1
  var _ProfileUpdatePasswordModalMutation;
2
-
3
2
  import React, { useCallback, useEffect, useMemo, useState } from 'react';
4
3
  import { message, Modal } from '@os-design/core';
5
4
  import { useMutation } from 'react-relay/hooks';
6
5
  import { useTranslation } from 'react-i18next';
7
6
  import { handleFormErrors, FormContext } from '@os-team/form-utils';
8
7
  import ProfileUpdatePasswordForm from './ProfileUpdatePasswordForm';
9
-
10
8
  const ProfileUpdatePasswordModal = ({
11
9
  visibility,
12
10
  onClose
13
11
  }) => {
14
12
  const {
15
13
  t
16
- } = useTranslation('profile');
14
+ } = useTranslation(['profile']);
17
15
  const [fieldErrors, setFieldErrors] = useState({});
18
16
  const [formError, setFormError] = useState();
19
17
  const [data, setData] = useState({
20
18
  currentPassword: '',
21
19
  password: ''
22
20
  });
23
- const [commit, loading] = useMutation(_ProfileUpdatePasswordModalMutation !== void 0 ? _ProfileUpdatePasswordModalMutation : (_ProfileUpdatePasswordModalMutation = require("./__generated__/ProfileUpdatePasswordModalMutation.graphql"), _ProfileUpdatePasswordModalMutation.hash && _ProfileUpdatePasswordModalMutation.hash !== "efa37ccbe82fbace709f7e3992643c05" && console.error("The definition of 'ProfileUpdatePasswordModalMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _ProfileUpdatePasswordModalMutation)); // Reset the data if the modal is visible
21
+ const [commit, loading] = useMutation(_ProfileUpdatePasswordModalMutation !== void 0 ? _ProfileUpdatePasswordModalMutation : (_ProfileUpdatePasswordModalMutation = require("./__generated__/ProfileUpdatePasswordModalMutation.graphql"), _ProfileUpdatePasswordModalMutation.hash && _ProfileUpdatePasswordModalMutation.hash !== "efa37ccbe82fbace709f7e3992643c05" && console.error("The definition of 'ProfileUpdatePasswordModalMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _ProfileUpdatePasswordModalMutation));
24
22
 
23
+ // Reset the data if the modal is visible
25
24
  useEffect(() => {
26
25
  if (visibility) {
27
26
  setData({
@@ -68,6 +67,5 @@ const ProfileUpdatePasswordModal = ({
68
67
  value: formContext
69
68
  }, /*#__PURE__*/React.createElement(ProfileUpdatePasswordForm, null)));
70
69
  };
71
-
72
70
  export default ProfileUpdatePasswordModal;
73
71
  //# sourceMappingURL=ProfileUpdatePasswordModal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileUpdatePasswordModal.js","names":["React","useCallback","useEffect","useMemo","useState","message","Modal","useMutation","useTranslation","handleFormErrors","FormContext","ProfileUpdatePasswordForm","ProfileUpdatePasswordModal","visibility","onClose","t","fieldErrors","setFieldErrors","formError","setFormError","data","setData","currentPassword","password","commit","loading","onSubmit","variables","input","onError","error","onCompleted","undefined","success","formContext"],"sources":["../../../../src/lib/components/profile/ProfileUpdatePasswordModal.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { message, Modal } from '@os-design/core';\nimport { graphql } from 'babel-plugin-relay/macro';\nimport { useMutation } from 'react-relay/hooks';\nimport { useTranslation } from 'react-i18next';\nimport { Constraint, handleFormErrors, FormContext } from '@os-team/form-utils';\nimport ProfileUpdatePasswordForm, {\n ProfileUpdatePasswordFormData,\n} from './ProfileUpdatePasswordForm';\nimport { ProfileUpdatePasswordModalMutation } from './__generated__/ProfileUpdatePasswordModalMutation.graphql';\n\ninterface ProfileUpdatePasswordModalProps {\n visibility: boolean;\n onClose: () => void;\n}\n\nconst ProfileUpdatePasswordModal: React.FC<ProfileUpdatePasswordModalProps> = ({\n visibility,\n onClose,\n}) => {\n const { t } = useTranslation('profile');\n\n const [fieldErrors, setFieldErrors] = useState<Record<string, Constraint>>(\n {}\n );\n const [formError, setFormError] = useState<string | undefined>();\n const [data, setData] = useState<ProfileUpdatePasswordFormData>({\n currentPassword: '',\n password: '',\n });\n\n const [commit, loading] =\n useMutation<ProfileUpdatePasswordModalMutation>(graphql`\n mutation ProfileUpdatePasswordModalMutation(\n $input: UpdatePasswordInput!\n ) {\n updatePassword(input: $input) {\n id\n }\n }\n `);\n\n // Reset the data if the modal is visible\n useEffect(() => {\n if (visibility) {\n setData({\n currentPassword: '',\n password: '',\n });\n }\n }, [visibility]);\n\n const onSubmit = useCallback(() => {\n commit({\n variables: {\n input: data,\n },\n onError: (error) => {\n handleFormErrors(error, { setFieldErrors, setFormError });\n },\n onCompleted: () => {\n setFieldErrors({});\n setFormError(undefined);\n message.success(t('profile:updatePasswordModal.success'));\n onClose();\n },\n });\n }, [commit, data, onClose, t]);\n\n const formContext = useMemo(\n () => ({\n data,\n setData,\n fieldErrors,\n setFieldErrors,\n formError,\n setFormError,\n }),\n [data, fieldErrors, formError]\n );\n\n return (\n <Modal\n title={t('profile:updatePasswordModal.title')}\n visible={visibility}\n okText={t('profile:updatePasswordModal.button')}\n okLoading={loading}\n onOk={onSubmit}\n onClose={onClose}\n >\n <FormContext.Provider value={formContext}>\n <ProfileUpdatePasswordForm />\n </FormContext.Provider>\n </Modal>\n );\n};\n\nexport default ProfileUpdatePasswordModal;\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAgBC,WAAhB,EAA6BC,SAA7B,EAAwCC,OAAxC,EAAiDC,QAAjD,QAAiE,OAAjE;AACA,SAASC,OAAT,EAAkBC,KAAlB,QAA+B,iBAA/B;AAEA,SAASC,WAAT,QAA4B,mBAA5B;AACA,SAASC,cAAT,QAA+B,eAA/B;AACA,SAAqBC,gBAArB,EAAuCC,WAAvC,QAA0D,qBAA1D;AACA,OAAOC,yBAAP,MAEO,6BAFP;;AAUA,MAAMC,0BAAqE,GAAG,CAAC;EAC7EC,UAD6E;EAE7EC;AAF6E,CAAD,KAGxE;EACJ,MAAM;IAAEC;EAAF,IAAQP,cAAc,CAAC,SAAD,CAA5B;EAEA,MAAM,CAACQ,WAAD,EAAcC,cAAd,IAAgCb,QAAQ,CAC5C,EAD4C,CAA9C;EAGA,MAAM,CAACc,SAAD,EAAYC,YAAZ,IAA4Bf,QAAQ,EAA1C;EACA,MAAM,CAACgB,IAAD,EAAOC,OAAP,IAAkBjB,QAAQ,CAAgC;IAC9DkB,eAAe,EAAE,EAD6C;IAE9DC,QAAQ,EAAE;EAFoD,CAAhC,CAAhC;EAKA,MAAM,CAACC,MAAD,EAASC,OAAT,IACJlB,WAAW,6hBADb,CAZI,CAuBJ;;EACAL,SAAS,CAAC,MAAM;IACd,IAAIW,UAAJ,EAAgB;MACdQ,OAAO,CAAC;QACNC,eAAe,EAAE,EADX;QAENC,QAAQ,EAAE;MAFJ,CAAD,CAAP;IAID;EACF,CAPQ,EAON,CAACV,UAAD,CAPM,CAAT;EASA,MAAMa,QAAQ,GAAGzB,WAAW,CAAC,MAAM;IACjCuB,MAAM,CAAC;MACLG,SAAS,EAAE;QACTC,KAAK,EAAER;MADE,CADN;MAILS,OAAO,EAAGC,KAAD,IAAW;QAClBrB,gBAAgB,CAACqB,KAAD,EAAQ;UAAEb,cAAF;UAAkBE;QAAlB,CAAR,CAAhB;MACD,CANI;MAOLY,WAAW,EAAE,MAAM;QACjBd,cAAc,CAAC,EAAD,CAAd;QACAE,YAAY,CAACa,SAAD,CAAZ;QACA3B,OAAO,CAAC4B,OAAR,CAAgBlB,CAAC,CAAC,qCAAD,CAAjB;QACAD,OAAO;MACR;IAZI,CAAD,CAAN;EAcD,CAf2B,EAezB,CAACU,MAAD,EAASJ,IAAT,EAAeN,OAAf,EAAwBC,CAAxB,CAfyB,CAA5B;EAiBA,MAAMmB,WAAW,GAAG/B,OAAO,CACzB,OAAO;IACLiB,IADK;IAELC,OAFK;IAGLL,WAHK;IAILC,cAJK;IAKLC,SALK;IAMLC;EANK,CAAP,CADyB,EASzB,CAACC,IAAD,EAAOJ,WAAP,EAAoBE,SAApB,CATyB,CAA3B;EAYA,oBACE,oBAAC,KAAD;IACE,KAAK,EAAEH,CAAC,CAAC,mCAAD,CADV;IAEE,OAAO,EAAEF,UAFX;IAGE,MAAM,EAAEE,CAAC,CAAC,oCAAD,CAHX;IAIE,SAAS,EAAEU,OAJb;IAKE,IAAI,EAAEC,QALR;IAME,OAAO,EAAEZ;EANX,gBAQE,oBAAC,WAAD,CAAa,QAAb;IAAsB,KAAK,EAAEoB;EAA7B,gBACE,oBAAC,yBAAD,OADF,CARF,CADF;AAcD,CA/ED;;AAiFA,eAAetB,0BAAf"}
1
+ {"version":3,"file":"ProfileUpdatePasswordModal.js","names":["React","useCallback","useEffect","useMemo","useState","message","Modal","useMutation","useTranslation","handleFormErrors","FormContext","ProfileUpdatePasswordForm","ProfileUpdatePasswordModal","visibility","onClose","t","fieldErrors","setFieldErrors","formError","setFormError","data","setData","currentPassword","password","commit","loading","onSubmit","variables","input","onError","error","onCompleted","undefined","success","formContext"],"sources":["../../../../src/lib/components/profile/ProfileUpdatePasswordModal.tsx"],"sourcesContent":["import React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport { message, Modal } from '@os-design/core';\nimport { graphql } from 'babel-plugin-relay/macro';\nimport { useMutation } from 'react-relay/hooks';\nimport { useTranslation } from 'react-i18next';\nimport { Constraint, handleFormErrors, FormContext } from '@os-team/form-utils';\nimport ProfileUpdatePasswordForm, {\n ProfileUpdatePasswordFormData,\n} from './ProfileUpdatePasswordForm';\nimport { ProfileUpdatePasswordModalMutation } from './__generated__/ProfileUpdatePasswordModalMutation.graphql';\n\ninterface ProfileUpdatePasswordModalProps {\n visibility: boolean;\n onClose: () => void;\n}\n\nconst ProfileUpdatePasswordModal: React.FC<ProfileUpdatePasswordModalProps> = ({\n visibility,\n onClose,\n}) => {\n const { t } = useTranslation(['profile']);\n\n const [fieldErrors, setFieldErrors] = useState<Record<string, Constraint>>(\n {}\n );\n const [formError, setFormError] = useState<string | undefined>();\n const [data, setData] = useState<ProfileUpdatePasswordFormData>({\n currentPassword: '',\n password: '',\n });\n\n const [commit, loading] =\n useMutation<ProfileUpdatePasswordModalMutation>(graphql`\n mutation ProfileUpdatePasswordModalMutation(\n $input: UpdatePasswordInput!\n ) {\n updatePassword(input: $input) {\n id\n }\n }\n `);\n\n // Reset the data if the modal is visible\n useEffect(() => {\n if (visibility) {\n setData({\n currentPassword: '',\n password: '',\n });\n }\n }, [visibility]);\n\n const onSubmit = useCallback(() => {\n commit({\n variables: {\n input: data,\n },\n onError: (error) => {\n handleFormErrors(error, { setFieldErrors, setFormError });\n },\n onCompleted: () => {\n setFieldErrors({});\n setFormError(undefined);\n message.success(t('profile:updatePasswordModal.success'));\n onClose();\n },\n });\n }, [commit, data, onClose, t]);\n\n const formContext = useMemo(\n () => ({\n data,\n setData,\n fieldErrors,\n setFieldErrors,\n formError,\n setFormError,\n }),\n [data, fieldErrors, formError]\n );\n\n return (\n <Modal\n title={t('profile:updatePasswordModal.title')}\n visible={visibility}\n okText={t('profile:updatePasswordModal.button')}\n okLoading={loading}\n onOk={onSubmit}\n onClose={onClose}\n >\n <FormContext.Provider value={formContext}>\n <ProfileUpdatePasswordForm />\n </FormContext.Provider>\n </Modal>\n );\n};\n\nexport default ProfileUpdatePasswordModal;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACxE,SAASC,OAAO,EAAEC,KAAK,QAAQ,iBAAiB;AAEhD,SAASC,WAAW,QAAQ,mBAAmB;AAC/C,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAAqBC,gBAAgB,EAAEC,WAAW,QAAQ,qBAAqB;AAC/E,OAAOC,yBAAyB,MAEzB,6BAA6B;AAQpC,MAAMC,0BAAqE,GAAG,CAAC;EAC7EC,UAAU;EACVC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAE,CAAC,GAAGP,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC;EAEzC,MAAM,CAACQ,WAAW,EAAEC,cAAc,CAAC,GAAGb,QAAQ,CAC5C,CAAC,CAAC,CACH;EACD,MAAM,CAACc,SAAS,EAAEC,YAAY,CAAC,GAAGf,QAAQ,EAAsB;EAChE,MAAM,CAACgB,IAAI,EAAEC,OAAO,CAAC,GAAGjB,QAAQ,CAAgC;IAC9DkB,eAAe,EAAE,EAAE;IACnBC,QAAQ,EAAE;EACZ,CAAC,CAAC;EAEF,MAAM,CAACC,MAAM,EAAEC,OAAO,CAAC,GACrBlB,WAAW,6hBAQT;;EAEJ;EACAL,SAAS,CAAC,MAAM;IACd,IAAIW,UAAU,EAAE;MACdQ,OAAO,CAAC;QACNC,eAAe,EAAE,EAAE;QACnBC,QAAQ,EAAE;MACZ,CAAC,CAAC;IACJ;EACF,CAAC,EAAE,CAACV,UAAU,CAAC,CAAC;EAEhB,MAAMa,QAAQ,GAAGzB,WAAW,CAAC,MAAM;IACjCuB,MAAM,CAAC;MACLG,SAAS,EAAE;QACTC,KAAK,EAAER;MACT,CAAC;MACDS,OAAO,EAAGC,KAAK,IAAK;QAClBrB,gBAAgB,CAACqB,KAAK,EAAE;UAAEb,cAAc;UAAEE;QAAa,CAAC,CAAC;MAC3D,CAAC;MACDY,WAAW,EAAE,MAAM;QACjBd,cAAc,CAAC,CAAC,CAAC,CAAC;QAClBE,YAAY,CAACa,SAAS,CAAC;QACvB3B,OAAO,CAAC4B,OAAO,CAAClB,CAAC,CAAC,qCAAqC,CAAC,CAAC;QACzDD,OAAO,EAAE;MACX;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAACU,MAAM,EAAEJ,IAAI,EAAEN,OAAO,EAAEC,CAAC,CAAC,CAAC;EAE9B,MAAMmB,WAAW,GAAG/B,OAAO,CACzB,OAAO;IACLiB,IAAI;IACJC,OAAO;IACPL,WAAW;IACXC,cAAc;IACdC,SAAS;IACTC;EACF,CAAC,CAAC,EACF,CAACC,IAAI,EAAEJ,WAAW,EAAEE,SAAS,CAAC,CAC/B;EAED,oBACE,oBAAC,KAAK;IACJ,KAAK,EAAEH,CAAC,CAAC,mCAAmC,CAAE;IAC9C,OAAO,EAAEF,UAAW;IACpB,MAAM,EAAEE,CAAC,CAAC,oCAAoC,CAAE;IAChD,SAAS,EAAEU,OAAQ;IACnB,IAAI,EAAEC,QAAS;IACf,OAAO,EAAEZ;EAAQ,gBAEjB,oBAAC,WAAW,CAAC,QAAQ;IAAC,KAAK,EAAEoB;EAAY,gBACvC,oBAAC,yBAAyB,OAAG,CACR,CACjB;AAEZ,CAAC;AAED,eAAetB,0BAA0B"}
@@ -1,11 +1,9 @@
1
1
  var _ProtectedWrapperQuery;
2
-
3
2
  import React, { useMemo } from 'react';
4
3
  import { useLazyLoadQuery } from 'react-relay/hooks';
5
4
  import { ErrorBoundary } from '@os-design/utils';
6
5
  import ProfileConfigContext from './ProfileConfigContext';
7
6
  import ProfileContext from './ProfileContext';
8
-
9
7
  const ProtectedWrapperLoader = ({
10
8
  children
11
9
  }) => {
@@ -25,7 +23,6 @@ const ProtectedWrapperLoader = ({
25
23
  value: profileContext
26
24
  }, children);
27
25
  };
28
-
29
26
  const ProtectedWrapper = ({
30
27
  bucketId,
31
28
  children
@@ -42,6 +39,5 @@ const ProtectedWrapper = ({
42
39
  }
43
40
  }, /*#__PURE__*/React.createElement(ProtectedWrapperLoader, null, children)));
44
41
  };
45
-
46
42
  export default ProtectedWrapper;
47
43
  //# sourceMappingURL=ProtectedWrapper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProtectedWrapper.js","names":["React","useMemo","useLazyLoadQuery","ErrorBoundary","ProfileConfigContext","ProfileContext","ProtectedWrapperLoader","children","profile","fetchPolicy","profileContext","id","email","firstName","undefined","lastName","avatar","ProtectedWrapper","bucketId","profileConfigContext","window","location","href"],"sources":["../../../../src/lib/components/profile/ProtectedWrapper.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport graphql from 'babel-plugin-relay/macro';\nimport { useLazyLoadQuery } from 'react-relay/hooks';\nimport { ErrorBoundary } from '@os-design/utils';\nimport ProfileConfigContext from './ProfileConfigContext';\nimport ProfileContext from './ProfileContext';\nimport { ProtectedWrapperQuery } from './__generated__/ProtectedWrapperQuery.graphql';\n\ninterface ProtectedWrapperLoaderProps {\n children?: React.ReactNode;\n}\n\nconst ProtectedWrapperLoader: React.FC<ProtectedWrapperLoaderProps> = ({\n children,\n}) => {\n const { profile } = useLazyLoadQuery<ProtectedWrapperQuery>(\n graphql`\n query ProtectedWrapperQuery {\n profile {\n id\n email\n firstName\n lastName\n avatar\n }\n }\n `,\n {},\n { fetchPolicy: 'store-or-network' }\n );\n\n const profileContext = useMemo(\n () => ({\n id: profile.id,\n email: profile.email,\n firstName: profile.firstName || undefined,\n lastName: profile.lastName || undefined,\n avatar: profile.avatar || undefined,\n }),\n [\n profile.avatar,\n profile.email,\n profile.firstName,\n profile.id,\n profile.lastName,\n ]\n );\n\n return (\n <ProfileContext.Provider value={profileContext}>\n {children}\n </ProfileContext.Provider>\n );\n};\n\nexport interface ProtectedWrapperProps {\n bucketId: string;\n children?: React.ReactNode;\n}\n\nconst ProtectedWrapper: React.FC<ProtectedWrapperProps> = ({\n bucketId,\n children,\n}) => {\n const profileConfigContext = useMemo(() => ({ bucketId }), [bucketId]);\n\n return (\n <ProfileConfigContext.Provider value={profileConfigContext}>\n <ErrorBoundary\n fallback={() => {\n window.location.href = '/auth/';\n return null;\n }}\n >\n <ProtectedWrapperLoader>{children}</ProtectedWrapperLoader>\n </ErrorBoundary>\n </ProfileConfigContext.Provider>\n );\n};\n\nexport default ProtectedWrapper;\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AAEA,SAASC,gBAAT,QAAiC,mBAAjC;AACA,SAASC,aAAT,QAA8B,kBAA9B;AACA,OAAOC,oBAAP,MAAiC,wBAAjC;AACA,OAAOC,cAAP,MAA2B,kBAA3B;;AAOA,MAAMC,sBAA6D,GAAG,CAAC;EACrEC;AADqE,CAAD,KAEhE;EACJ,MAAM;IAAEC;EAAF,IAAcN,gBAAgB,sbAYlC,EAZkC,EAalC;IAAEO,WAAW,EAAE;EAAf,CAbkC,CAApC;EAgBA,MAAMC,cAAc,GAAGT,OAAO,CAC5B,OAAO;IACLU,EAAE,EAAEH,OAAO,CAACG,EADP;IAELC,KAAK,EAAEJ,OAAO,CAACI,KAFV;IAGLC,SAAS,EAAEL,OAAO,CAACK,SAAR,IAAqBC,SAH3B;IAILC,QAAQ,EAAEP,OAAO,CAACO,QAAR,IAAoBD,SAJzB;IAKLE,MAAM,EAAER,OAAO,CAACQ,MAAR,IAAkBF;EALrB,CAAP,CAD4B,EAQ5B,CACEN,OAAO,CAACQ,MADV,EAEER,OAAO,CAACI,KAFV,EAGEJ,OAAO,CAACK,SAHV,EAIEL,OAAO,CAACG,EAJV,EAKEH,OAAO,CAACO,QALV,CAR4B,CAA9B;EAiBA,oBACE,oBAAC,cAAD,CAAgB,QAAhB;IAAyB,KAAK,EAAEL;EAAhC,GACGH,QADH,CADF;AAKD,CAzCD;;AAgDA,MAAMU,gBAAiD,GAAG,CAAC;EACzDC,QADyD;EAEzDX;AAFyD,CAAD,KAGpD;EACJ,MAAMY,oBAAoB,GAAGlB,OAAO,CAAC,OAAO;IAAEiB;EAAF,CAAP,CAAD,EAAuB,CAACA,QAAD,CAAvB,CAApC;EAEA,oBACE,oBAAC,oBAAD,CAAsB,QAAtB;IAA+B,KAAK,EAAEC;EAAtC,gBACE,oBAAC,aAAD;IACE,QAAQ,EAAE,MAAM;MACdC,MAAM,CAACC,QAAP,CAAgBC,IAAhB,GAAuB,QAAvB;MACA,OAAO,IAAP;IACD;EAJH,gBAME,oBAAC,sBAAD,QAAyBf,QAAzB,CANF,CADF,CADF;AAYD,CAlBD;;AAoBA,eAAeU,gBAAf"}
1
+ {"version":3,"file":"ProtectedWrapper.js","names":["React","useMemo","useLazyLoadQuery","ErrorBoundary","ProfileConfigContext","ProfileContext","ProtectedWrapperLoader","children","profile","fetchPolicy","profileContext","id","email","firstName","undefined","lastName","avatar","ProtectedWrapper","bucketId","profileConfigContext","window","location","href"],"sources":["../../../../src/lib/components/profile/ProtectedWrapper.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport graphql from 'babel-plugin-relay/macro';\nimport { useLazyLoadQuery } from 'react-relay/hooks';\nimport { ErrorBoundary } from '@os-design/utils';\nimport ProfileConfigContext from './ProfileConfigContext';\nimport ProfileContext from './ProfileContext';\nimport { ProtectedWrapperQuery } from './__generated__/ProtectedWrapperQuery.graphql';\n\ninterface ProtectedWrapperLoaderProps {\n children?: React.ReactNode;\n}\n\nconst ProtectedWrapperLoader: React.FC<ProtectedWrapperLoaderProps> = ({\n children,\n}) => {\n const { profile } = useLazyLoadQuery<ProtectedWrapperQuery>(\n graphql`\n query ProtectedWrapperQuery {\n profile {\n id\n email\n firstName\n lastName\n avatar\n }\n }\n `,\n {},\n { fetchPolicy: 'store-or-network' }\n );\n\n const profileContext = useMemo(\n () => ({\n id: profile.id,\n email: profile.email,\n firstName: profile.firstName || undefined,\n lastName: profile.lastName || undefined,\n avatar: profile.avatar || undefined,\n }),\n [\n profile.avatar,\n profile.email,\n profile.firstName,\n profile.id,\n profile.lastName,\n ]\n );\n\n return (\n <ProfileContext.Provider value={profileContext}>\n {children}\n </ProfileContext.Provider>\n );\n};\n\nexport interface ProtectedWrapperProps {\n bucketId: string;\n children?: React.ReactNode;\n}\n\nconst ProtectedWrapper: React.FC<ProtectedWrapperProps> = ({\n bucketId,\n children,\n}) => {\n const profileConfigContext = useMemo(() => ({ bucketId }), [bucketId]);\n\n return (\n <ProfileConfigContext.Provider value={profileConfigContext}>\n <ErrorBoundary\n fallback={() => {\n window.location.href = '/auth/';\n return null;\n }}\n >\n <ProtectedWrapperLoader>{children}</ProtectedWrapperLoader>\n </ErrorBoundary>\n </ProfileConfigContext.Provider>\n );\n};\n\nexport default ProtectedWrapper;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AAEtC,SAASC,gBAAgB,QAAQ,mBAAmB;AACpD,SAASC,aAAa,QAAQ,kBAAkB;AAChD,OAAOC,oBAAoB,MAAM,wBAAwB;AACzD,OAAOC,cAAc,MAAM,kBAAkB;AAO7C,MAAMC,sBAA6D,GAAG,CAAC;EACrEC;AACF,CAAC,KAAK;EACJ,MAAM;IAAEC;EAAQ,CAAC,GAAGN,gBAAgB,sbAYlC,CAAC,CAAC,EACF;IAAEO,WAAW,EAAE;EAAmB,CAAC,CACpC;EAED,MAAMC,cAAc,GAAGT,OAAO,CAC5B,OAAO;IACLU,EAAE,EAAEH,OAAO,CAACG,EAAE;IACdC,KAAK,EAAEJ,OAAO,CAACI,KAAK;IACpBC,SAAS,EAAEL,OAAO,CAACK,SAAS,IAAIC,SAAS;IACzCC,QAAQ,EAAEP,OAAO,CAACO,QAAQ,IAAID,SAAS;IACvCE,MAAM,EAAER,OAAO,CAACQ,MAAM,IAAIF;EAC5B,CAAC,CAAC,EACF,CACEN,OAAO,CAACQ,MAAM,EACdR,OAAO,CAACI,KAAK,EACbJ,OAAO,CAACK,SAAS,EACjBL,OAAO,CAACG,EAAE,EACVH,OAAO,CAACO,QAAQ,CACjB,CACF;EAED,oBACE,oBAAC,cAAc,CAAC,QAAQ;IAAC,KAAK,EAAEL;EAAe,GAC5CH,QAAQ,CACe;AAE9B,CAAC;AAOD,MAAMU,gBAAiD,GAAG,CAAC;EACzDC,QAAQ;EACRX;AACF,CAAC,KAAK;EACJ,MAAMY,oBAAoB,GAAGlB,OAAO,CAAC,OAAO;IAAEiB;EAAS,CAAC,CAAC,EAAE,CAACA,QAAQ,CAAC,CAAC;EAEtE,oBACE,oBAAC,oBAAoB,CAAC,QAAQ;IAAC,KAAK,EAAEC;EAAqB,gBACzD,oBAAC,aAAa;IACZ,QAAQ,EAAE,MAAM;MACdC,MAAM,CAACC,QAAQ,CAACC,IAAI,GAAG,QAAQ;MAC/B,OAAO,IAAI;IACb;EAAE,gBAEF,oBAAC,sBAAsB,QAAEf,QAAQ,CAA0B,CAC7C,CACc;AAEpC,CAAC;AAED,eAAeU,gBAAgB"}
@@ -1,10 +1,8 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
2
  import React, { useMemo } from 'react';
4
3
  import { Avatar } from '@os-design/core';
5
4
  import { useProfile } from './ProfileContext';
6
5
  import { useProfileConfig } from './ProfileConfigContext';
7
-
8
6
  const UserAvatar = props => {
9
7
  const {
10
8
  email,
@@ -32,6 +30,5 @@ const UserAvatar = props => {
32
30
  image: image
33
31
  }, props));
34
32
  };
35
-
36
33
  export default UserAvatar;
37
34
  //# sourceMappingURL=UserAvatar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserAvatar.js","names":["React","useMemo","Avatar","useProfile","useProfileConfig","UserAvatar","props","email","firstName","lastName","avatar","bucketId","avatarProps","image","undefined"],"sources":["../../../../src/lib/components/profile/UserAvatar.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { Avatar, AvatarProps } from '@os-design/core';\nimport { useProfile } from './ProfileContext';\nimport { useProfileConfig } from './ProfileConfigContext';\n\nconst UserAvatar: React.FC<AvatarProps> = (props) => {\n const { email, firstName, lastName, avatar } = useProfile();\n const { bucketId } = useProfileConfig();\n\n const avatarProps = useMemo(() => {\n if (firstName || lastName) return { firstName, lastName };\n return { firstName: email };\n }, [email, firstName, lastName]);\n\n const image = useMemo(() => {\n if (!avatar) return undefined;\n return `https://storage.yandexcloud.net/${bucketId}/users/${avatar}`;\n }, [avatar, bucketId]);\n\n return <Avatar {...avatarProps} image={image} {...props} />;\n};\n\nexport default UserAvatar;\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAgBC,OAAhB,QAA+B,OAA/B;AACA,SAASC,MAAT,QAAoC,iBAApC;AACA,SAASC,UAAT,QAA2B,kBAA3B;AACA,SAASC,gBAAT,QAAiC,wBAAjC;;AAEA,MAAMC,UAAiC,GAAIC,KAAD,IAAW;EACnD,MAAM;IAAEC,KAAF;IAASC,SAAT;IAAoBC,QAApB;IAA8BC;EAA9B,IAAyCP,UAAU,EAAzD;EACA,MAAM;IAAEQ;EAAF,IAAeP,gBAAgB,EAArC;EAEA,MAAMQ,WAAW,GAAGX,OAAO,CAAC,MAAM;IAChC,IAAIO,SAAS,IAAIC,QAAjB,EAA2B,OAAO;MAAED,SAAF;MAAaC;IAAb,CAAP;IAC3B,OAAO;MAAED,SAAS,EAAED;IAAb,CAAP;EACD,CAH0B,EAGxB,CAACA,KAAD,EAAQC,SAAR,EAAmBC,QAAnB,CAHwB,CAA3B;EAKA,MAAMI,KAAK,GAAGZ,OAAO,CAAC,MAAM;IAC1B,IAAI,CAACS,MAAL,EAAa,OAAOI,SAAP;IACb,OAAQ,mCAAkCH,QAAS,UAASD,MAAO,EAAnE;EACD,CAHoB,EAGlB,CAACA,MAAD,EAASC,QAAT,CAHkB,CAArB;EAKA,oBAAO,oBAAC,MAAD,eAAYC,WAAZ;IAAyB,KAAK,EAAEC;EAAhC,GAA2CP,KAA3C,EAAP;AACD,CAfD;;AAiBA,eAAeD,UAAf"}
1
+ {"version":3,"file":"UserAvatar.js","names":["React","useMemo","Avatar","useProfile","useProfileConfig","UserAvatar","props","email","firstName","lastName","avatar","bucketId","avatarProps","image","undefined"],"sources":["../../../../src/lib/components/profile/UserAvatar.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport { Avatar, AvatarProps } from '@os-design/core';\nimport { useProfile } from './ProfileContext';\nimport { useProfileConfig } from './ProfileConfigContext';\n\nconst UserAvatar: React.FC<AvatarProps> = (props) => {\n const { email, firstName, lastName, avatar } = useProfile();\n const { bucketId } = useProfileConfig();\n\n const avatarProps = useMemo(() => {\n if (firstName || lastName) return { firstName, lastName };\n return { firstName: email };\n }, [email, firstName, lastName]);\n\n const image = useMemo(() => {\n if (!avatar) return undefined;\n return `https://storage.yandexcloud.net/${bucketId}/users/${avatar}`;\n }, [avatar, bucketId]);\n\n return <Avatar {...avatarProps} image={image} {...props} />;\n};\n\nexport default UserAvatar;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,MAAM,QAAqB,iBAAiB;AACrD,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,gBAAgB,QAAQ,wBAAwB;AAEzD,MAAMC,UAAiC,GAAIC,KAAK,IAAK;EACnD,MAAM;IAAEC,KAAK;IAAEC,SAAS;IAAEC,QAAQ;IAAEC;EAAO,CAAC,GAAGP,UAAU,EAAE;EAC3D,MAAM;IAAEQ;EAAS,CAAC,GAAGP,gBAAgB,EAAE;EAEvC,MAAMQ,WAAW,GAAGX,OAAO,CAAC,MAAM;IAChC,IAAIO,SAAS,IAAIC,QAAQ,EAAE,OAAO;MAAED,SAAS;MAAEC;IAAS,CAAC;IACzD,OAAO;MAAED,SAAS,EAAED;IAAM,CAAC;EAC7B,CAAC,EAAE,CAACA,KAAK,EAAEC,SAAS,EAAEC,QAAQ,CAAC,CAAC;EAEhC,MAAMI,KAAK,GAAGZ,OAAO,CAAC,MAAM;IAC1B,IAAI,CAACS,MAAM,EAAE,OAAOI,SAAS;IAC7B,OAAQ,mCAAkCH,QAAS,UAASD,MAAO,EAAC;EACtE,CAAC,EAAE,CAACA,MAAM,EAAEC,QAAQ,CAAC,CAAC;EAEtB,oBAAO,oBAAC,MAAM,eAAKC,WAAW;IAAE,KAAK,EAAEC;EAAM,GAAKP,KAAK,EAAI;AAC7D,CAAC;AAED,eAAeD,UAAU"}
@@ -1,5 +1,4 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
2
  import React from 'react';
4
3
  import { ThemeOverrider } from '@os-design/theming';
5
4
  import styled from '@emotion/styled';
@@ -26,7 +25,6 @@ const StyledUserAvatar = styled(UserAvatar)`
26
25
  ${transitionStyles('opacity')};
27
26
  }
28
27
  `;
29
-
30
28
  const UserAvatarAddon = ({
31
29
  onClick = () => {},
32
30
  ...rest
@@ -45,6 +43,5 @@ const UserAvatarAddon = ({
45
43
  },
46
44
  onMouseDown: e => e.preventDefault()
47
45
  }, rest))));
48
-
49
46
  export default UserAvatarAddon;
50
47
  //# sourceMappingURL=UserAvatarAddon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserAvatarAddon.js","names":["React","ThemeOverrider","styled","resetFocusStyles","transitionStyles","UserAvatar","Addon","div","p","theme","navigationSideWidth","AVATAR_SIZE","StyledUserAvatar","UserAvatarAddon","onClick","rest","avatarOnlineColorScoop","navigationColorBg","e","key","preventDefault"],"sources":["../../../../src/lib/components/profile/UserAvatarAddon.tsx"],"sourcesContent":["import React from 'react';\nimport { ThemeOverrider } from '@os-design/theming';\nimport styled from '@emotion/styled';\nimport { resetFocusStyles, transitionStyles } from '@os-design/styles';\nimport { AvatarProps } from '@os-design/core';\nimport UserAvatar from './UserAvatar';\n\nexport interface UserAvatarAddonProps extends AvatarProps {\n onClick?: () => void;\n}\n\nconst Addon = styled.div`\n width: 100%;\n height: ${(p) => p.theme.navigationSideWidth}em;\n min-height: ${(p) => p.theme.navigationSideWidth}em;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst AVATAR_SIZE = 2.5;\n\nconst StyledUserAvatar = styled(UserAvatar)`\n ${resetFocusStyles};\n cursor: pointer;\n\n @media (hover: hover) {\n &:hover,\n &:focus {\n opacity: 0.7;\n }\n ${transitionStyles('opacity')};\n }\n`;\n\nconst UserAvatarAddon: React.FC<UserAvatarAddonProps> = ({\n onClick = () => {},\n ...rest\n}) => (\n <Addon>\n <ThemeOverrider\n overrides={(theme) => ({\n avatarOnlineColorScoop: theme.navigationColorBg,\n })}\n >\n <StyledUserAvatar\n online\n size={`${AVATAR_SIZE}em`}\n tabIndex={0}\n role='button'\n onClick={onClick}\n onKeyDown={(e) => {\n if (e.key === 'Enter') onClick();\n }}\n onMouseDown={(e) => e.preventDefault()}\n {...rest}\n />\n </ThemeOverrider>\n </Addon>\n);\n\nexport default UserAvatarAddon;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,cAAT,QAA+B,oBAA/B;AACA,OAAOC,MAAP,MAAmB,iBAAnB;AACA,SAASC,gBAAT,EAA2BC,gBAA3B,QAAmD,mBAAnD;AAEA,OAAOC,UAAP,MAAuB,cAAvB;AAMA,MAAMC,KAAK,GAAGJ,MAAM,CAACK,GAAI;AACzB;AACA,YAAaC,CAAD,IAAOA,CAAC,CAACC,KAAF,CAAQC,mBAAoB;AAC/C,gBAAiBF,CAAD,IAAOA,CAAC,CAACC,KAAF,CAAQC,mBAAoB;AACnD;AACA;AACA;AACA,CAPA;AASA,MAAMC,WAAW,GAAG,GAApB;AAEA,MAAMC,gBAAgB,GAAGV,MAAM,CAACG,UAAD,CAAa;AAC5C,IAAIF,gBAAiB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,gBAAgB,CAAC,SAAD,CAAY;AAClC;AACA,CAXA;;AAaA,MAAMS,eAA+C,GAAG,CAAC;EACvDC,OAAO,GAAG,MAAM,CAAE,CADqC;EAEvD,GAAGC;AAFoD,CAAD,kBAItD,oBAAC,KAAD,qBACE,oBAAC,cAAD;EACE,SAAS,EAAGN,KAAD,KAAY;IACrBO,sBAAsB,EAAEP,KAAK,CAACQ;EADT,CAAZ;AADb,gBAKE,oBAAC,gBAAD;EACE,MAAM,MADR;EAEE,IAAI,EAAG,GAAEN,WAAY,IAFvB;EAGE,QAAQ,EAAE,CAHZ;EAIE,IAAI,EAAC,QAJP;EAKE,OAAO,EAAEG,OALX;EAME,SAAS,EAAGI,CAAD,IAAO;IAChB,IAAIA,CAAC,CAACC,GAAF,KAAU,OAAd,EAAuBL,OAAO;EAC/B,CARH;EASE,WAAW,EAAGI,CAAD,IAAOA,CAAC,CAACE,cAAF;AATtB,GAUML,IAVN,EALF,CADF,CAJF;;AA0BA,eAAeF,eAAf"}
1
+ {"version":3,"file":"UserAvatarAddon.js","names":["React","ThemeOverrider","styled","resetFocusStyles","transitionStyles","UserAvatar","Addon","div","p","theme","navigationSideWidth","AVATAR_SIZE","StyledUserAvatar","UserAvatarAddon","onClick","rest","avatarOnlineColorScoop","navigationColorBg","e","key","preventDefault"],"sources":["../../../../src/lib/components/profile/UserAvatarAddon.tsx"],"sourcesContent":["import React from 'react';\nimport { ThemeOverrider } from '@os-design/theming';\nimport styled from '@emotion/styled';\nimport { resetFocusStyles, transitionStyles } from '@os-design/styles';\nimport { AvatarProps } from '@os-design/core';\nimport UserAvatar from './UserAvatar';\n\nexport interface UserAvatarAddonProps extends AvatarProps {\n onClick?: () => void;\n}\n\nconst Addon = styled.div`\n width: 100%;\n height: ${(p) => p.theme.navigationSideWidth}em;\n min-height: ${(p) => p.theme.navigationSideWidth}em;\n display: flex;\n justify-content: center;\n align-items: center;\n`;\n\nconst AVATAR_SIZE = 2.5;\n\nconst StyledUserAvatar = styled(UserAvatar)`\n ${resetFocusStyles};\n cursor: pointer;\n\n @media (hover: hover) {\n &:hover,\n &:focus {\n opacity: 0.7;\n }\n ${transitionStyles('opacity')};\n }\n`;\n\nconst UserAvatarAddon: React.FC<UserAvatarAddonProps> = ({\n onClick = () => {},\n ...rest\n}) => (\n <Addon>\n <ThemeOverrider\n overrides={(theme) => ({\n avatarOnlineColorScoop: theme.navigationColorBg,\n })}\n >\n <StyledUserAvatar\n online\n size={`${AVATAR_SIZE}em`}\n tabIndex={0}\n role='button'\n onClick={onClick}\n onKeyDown={(e) => {\n if (e.key === 'Enter') onClick();\n }}\n onMouseDown={(e) => e.preventDefault()}\n {...rest}\n />\n </ThemeOverrider>\n </Addon>\n);\n\nexport default UserAvatarAddon;\n"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,cAAc,QAAQ,oBAAoB;AACnD,OAAOC,MAAM,MAAM,iBAAiB;AACpC,SAASC,gBAAgB,EAAEC,gBAAgB,QAAQ,mBAAmB;AAEtE,OAAOC,UAAU,MAAM,cAAc;AAMrC,MAAMC,KAAK,GAAGJ,MAAM,CAACK,GAAI;AACzB;AACA,YAAaC,CAAC,IAAKA,CAAC,CAACC,KAAK,CAACC,mBAAoB;AAC/C,gBAAiBF,CAAC,IAAKA,CAAC,CAACC,KAAK,CAACC,mBAAoB;AACnD;AACA;AACA;AACA,CAAC;AAED,MAAMC,WAAW,GAAG,GAAG;AAEvB,MAAMC,gBAAgB,GAAGV,MAAM,CAACG,UAAU,CAAE;AAC5C,IAAIF,gBAAiB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,gBAAgB,CAAC,SAAS,CAAE;AAClC;AACA,CAAC;AAED,MAAMS,eAA+C,GAAG,CAAC;EACvDC,OAAO,GAAG,MAAM,CAAC,CAAC;EAClB,GAAGC;AACL,CAAC,kBACC,oBAAC,KAAK,qBACJ,oBAAC,cAAc;EACb,SAAS,EAAGN,KAAK,KAAM;IACrBO,sBAAsB,EAAEP,KAAK,CAACQ;EAChC,CAAC;AAAE,gBAEH,oBAAC,gBAAgB;EACf,MAAM;EACN,IAAI,EAAG,GAAEN,WAAY,IAAI;EACzB,QAAQ,EAAE,CAAE;EACZ,IAAI,EAAC,QAAQ;EACb,OAAO,EAAEG,OAAQ;EACjB,SAAS,EAAGI,CAAC,IAAK;IAChB,IAAIA,CAAC,CAACC,GAAG,KAAK,OAAO,EAAEL,OAAO,EAAE;EAClC,CAAE;EACF,WAAW,EAAGI,CAAC,IAAKA,CAAC,CAACE,cAAc;AAAG,GACnCL,IAAI,EACR,CACa,CAEpB;AAED,eAAeF,eAAe"}
@@ -5,9 +5,9 @@
5
5
  */
6
6
 
7
7
  /* tslint:disable */
8
-
9
8
  /* eslint-disable */
10
9
  // @ts-nocheck
10
+
11
11
  const node = function () {
12
12
  var v0 = [{
13
13
  "alias": null,
@@ -31,9 +31,7 @@ const node = function () {
31
31
  "kind": "Fragment",
32
32
  "metadata": null,
33
33
  "name": "ProfileDrawerContentSignOutMutation",
34
- "selections": v0
35
- /*: any*/
36
- ,
34
+ "selections": v0 /*: any*/,
37
35
  "type": "Mutation",
38
36
  "abstractKey": null
39
37
  },
@@ -42,10 +40,9 @@ const node = function () {
42
40
  "argumentDefinitions": [],
43
41
  "kind": "Operation",
44
42
  "name": "ProfileDrawerContentSignOutMutation",
45
- "selections": v0
46
- /*: any*/
47
-
43
+ "selections": v0 /*: any*/
48
44
  },
45
+
49
46
  "params": {
50
47
  "cacheID": "f5241cc562af19628cf38a9731067807",
51
48
  "id": null,
@@ -56,7 +53,6 @@ const node = function () {
56
53
  }
57
54
  };
58
55
  }();
59
-
60
56
  node.hash = "c7ca96e9e713315606b0c22d196b6f7b";
61
57
  export default node;
62
58
  //# sourceMappingURL=ProfileDrawerContentSignOutMutation.graphql.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileDrawerContentSignOutMutation.graphql.js","names":["node","v0","hash"],"sources":["../../../../../src/lib/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.ts"],"sourcesContent":["/**\n * @generated SignedSource<<18d60633cb83d877d559aeac0b4d25c9>>\n * @lightSyntaxTransform\n * @nogrep\n */\n\n/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest, Mutation } from 'relay-runtime';\nexport type ProfileDrawerContentSignOutMutation$variables = {};\nexport type ProfileDrawerContentSignOutMutation$data = {\n readonly signOut: {\n readonly ok: boolean;\n };\n};\nexport type ProfileDrawerContentSignOutMutation = {\n response: ProfileDrawerContentSignOutMutation$data;\n variables: ProfileDrawerContentSignOutMutation$variables;\n};\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"alias\": null,\n \"args\": null,\n \"concreteType\": \"StatusPayload\",\n \"kind\": \"LinkedField\",\n \"name\": \"signOut\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"ok\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileDrawerContentSignOutMutation\",\n \"selections\": (v0/*: any*/),\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Operation\",\n \"name\": \"ProfileDrawerContentSignOutMutation\",\n \"selections\": (v0/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"f5241cc562af19628cf38a9731067807\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileDrawerContentSignOutMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileDrawerContentSignOutMutation {\\n signOut {\\n ok\\n }\\n}\\n\"\n }\n};\n})();\n\n(node as any).hash = \"c7ca96e9e713315606b0c22d196b6f7b\";\n\nexport default node;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;;AACA;AACA;AAcA,MAAMA,IAAqB,GAAI,YAAU;EACzC,IAAIC,EAAE,GAAG,CACP;IACE,SAAS,IADX;IAEE,QAAQ,IAFV;IAGE,gBAAgB,eAHlB;IAIE,QAAQ,aAJV;IAKE,QAAQ,SALV;IAME,UAAU,KANZ;IAOE,cAAc,CACZ;MACE,SAAS,IADX;MAEE,QAAQ,IAFV;MAGE,QAAQ,aAHV;MAIE,QAAQ,IAJV;MAKE,cAAc;IALhB,CADY,CAPhB;IAgBE,cAAc;EAhBhB,CADO,CAAT;EAoBA,OAAO;IACL,YAAY;MACV,uBAAuB,EADb;MAEV,QAAQ,UAFE;MAGV,YAAY,IAHF;MAIV,QAAQ,qCAJE;MAKV,cAAeA;MAAE;MALP;MAMV,QAAQ,UANE;MAOV,eAAe;IAPL,CADP;IAUL,QAAQ,SAVH;IAWL,aAAa;MACX,uBAAuB,EADZ;MAEX,QAAQ,WAFG;MAGX,QAAQ,qCAHG;MAIX,cAAeA;MAAE;;IAJN,CAXR;IAiBL,UAAU;MACR,WAAW,kCADH;MAER,MAAM,IAFE;MAGR,YAAY,EAHJ;MAIR,QAAQ,qCAJA;MAKR,iBAAiB,UALT;MAMR,QAAQ;IANA;EAjBL,CAAP;AA0BC,CA/C6B,EAA9B;;AAiDCD,IAAD,CAAcE,IAAd,GAAqB,kCAArB;AAEA,eAAeF,IAAf"}
1
+ {"version":3,"file":"ProfileDrawerContentSignOutMutation.graphql.js","names":["node","v0","hash"],"sources":["../../../../../src/lib/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.ts"],"sourcesContent":["/**\n * @generated SignedSource<<18d60633cb83d877d559aeac0b4d25c9>>\n * @lightSyntaxTransform\n * @nogrep\n */\n\n/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest, Mutation } from 'relay-runtime';\nexport type ProfileDrawerContentSignOutMutation$variables = {};\nexport type ProfileDrawerContentSignOutMutation$data = {\n readonly signOut: {\n readonly ok: boolean;\n };\n};\nexport type ProfileDrawerContentSignOutMutation = {\n response: ProfileDrawerContentSignOutMutation$data;\n variables: ProfileDrawerContentSignOutMutation$variables;\n};\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"alias\": null,\n \"args\": null,\n \"concreteType\": \"StatusPayload\",\n \"kind\": \"LinkedField\",\n \"name\": \"signOut\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"ok\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileDrawerContentSignOutMutation\",\n \"selections\": (v0/*: any*/),\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Operation\",\n \"name\": \"ProfileDrawerContentSignOutMutation\",\n \"selections\": (v0/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"f5241cc562af19628cf38a9731067807\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileDrawerContentSignOutMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileDrawerContentSignOutMutation {\\n signOut {\\n ok\\n }\\n}\\n\"\n }\n};\n})();\n\n(node as any).hash = \"c7ca96e9e713315606b0c22d196b6f7b\";\n\nexport default node;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAcA,MAAMA,IAAqB,GAAI,YAAU;EACzC,IAAIC,EAAE,GAAG,CACP;IACE,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,eAAe;IAC/B,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,SAAS;IACjB,QAAQ,EAAE,KAAK;IACf,YAAY,EAAE,CACZ;MACE,OAAO,EAAE,IAAI;MACb,MAAM,EAAE,IAAI;MACZ,MAAM,EAAE,aAAa;MACrB,MAAM,EAAE,IAAI;MACZ,YAAY,EAAE;IAChB,CAAC,CACF;IACD,YAAY,EAAE;EAChB,CAAC,CACF;EACD,OAAO;IACL,UAAU,EAAE;MACV,qBAAqB,EAAE,EAAE;MACzB,MAAM,EAAE,UAAU;MAClB,UAAU,EAAE,IAAI;MAChB,MAAM,EAAE,qCAAqC;MAC7C,YAAY,EAAGA,EAAE,UAAU;MAC3B,MAAM,EAAE,UAAU;MAClB,aAAa,EAAE;IACjB,CAAC;IACD,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE;MACX,qBAAqB,EAAE,EAAE;MACzB,MAAM,EAAE,WAAW;MACnB,MAAM,EAAE,qCAAqC;MAC7C,YAAY,EAAGA,EAAE;IACnB,CAAC;;IACD,QAAQ,EAAE;MACR,SAAS,EAAE,kCAAkC;MAC7C,IAAI,EAAE,IAAI;MACV,UAAU,EAAE,CAAC,CAAC;MACd,MAAM,EAAE,qCAAqC;MAC7C,eAAe,EAAE,UAAU;MAC3B,MAAM,EAAE;IACV;EACF,CAAC;AACD,CAAC,EAAG;AAEHD,IAAI,CAASE,IAAI,GAAG,kCAAkC;AAEvD,eAAeF,IAAI"}
@@ -5,66 +5,59 @@
5
5
  */
6
6
 
7
7
  /* tslint:disable */
8
-
9
8
  /* eslint-disable */
10
9
  // @ts-nocheck
10
+
11
11
  const node = function () {
12
12
  var v0 = [{
13
- "defaultValue": null,
14
- "kind": "LocalArgument",
15
- "name": "input"
16
- }],
17
- v1 = [{
18
- "alias": null,
19
- "args": [{
20
- "kind": "Variable",
21
- "name": "input",
22
- "variableName": "input"
13
+ "defaultValue": null,
14
+ "kind": "LocalArgument",
15
+ "name": "input"
23
16
  }],
24
- "concreteType": "User",
25
- "kind": "LinkedField",
26
- "name": "updateAvatar",
27
- "plural": false,
28
- "selections": [{
29
- "alias": null,
30
- "args": null,
31
- "kind": "ScalarField",
32
- "name": "id",
33
- "storageKey": null
34
- }, {
17
+ v1 = [{
35
18
  "alias": null,
36
- "args": null,
37
- "kind": "ScalarField",
38
- "name": "avatar",
19
+ "args": [{
20
+ "kind": "Variable",
21
+ "name": "input",
22
+ "variableName": "input"
23
+ }],
24
+ "concreteType": "User",
25
+ "kind": "LinkedField",
26
+ "name": "updateAvatar",
27
+ "plural": false,
28
+ "selections": [{
29
+ "alias": null,
30
+ "args": null,
31
+ "kind": "ScalarField",
32
+ "name": "id",
33
+ "storageKey": null
34
+ }, {
35
+ "alias": null,
36
+ "args": null,
37
+ "kind": "ScalarField",
38
+ "name": "avatar",
39
+ "storageKey": null
40
+ }],
39
41
  "storageKey": null
40
- }],
41
- "storageKey": null
42
- }];
42
+ }];
43
43
  return {
44
44
  "fragment": {
45
- "argumentDefinitions": v0
46
- /*: any*/
47
- ,
45
+ "argumentDefinitions": v0 /*: any*/,
48
46
  "kind": "Fragment",
49
47
  "metadata": null,
50
48
  "name": "ProfileDrawerContentUpdateAvatarMutation",
51
- "selections": v1
52
- /*: any*/
53
- ,
49
+ "selections": v1 /*: any*/,
54
50
  "type": "Mutation",
55
51
  "abstractKey": null
56
52
  },
57
53
  "kind": "Request",
58
54
  "operation": {
59
- "argumentDefinitions": v0
60
- /*: any*/
61
- ,
55
+ "argumentDefinitions": v0 /*: any*/,
62
56
  "kind": "Operation",
63
57
  "name": "ProfileDrawerContentUpdateAvatarMutation",
64
- "selections": v1
65
- /*: any*/
66
-
58
+ "selections": v1 /*: any*/
67
59
  },
60
+
68
61
  "params": {
69
62
  "cacheID": "b749732615af9f8027386d69ffb57b63",
70
63
  "id": null,
@@ -75,7 +68,6 @@ const node = function () {
75
68
  }
76
69
  };
77
70
  }();
78
-
79
71
  node.hash = "cf72a6314772ed0d1f182b197c858505";
80
72
  export default node;
81
73
  //# sourceMappingURL=ProfileDrawerContentUpdateAvatarMutation.graphql.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileDrawerContentUpdateAvatarMutation.graphql.js","names":["node","v0","v1","hash"],"sources":["../../../../../src/lib/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.ts"],"sourcesContent":["/**\n * @generated SignedSource<<2487042845b2bf81808599c32befd518>>\n * @lightSyntaxTransform\n * @nogrep\n */\n\n/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest, Mutation } from 'relay-runtime';\nexport type UpdateAvatarInput = {\n avatar?: any | null;\n};\nexport type ProfileDrawerContentUpdateAvatarMutation$variables = {\n input: UpdateAvatarInput;\n};\nexport type ProfileDrawerContentUpdateAvatarMutation$data = {\n readonly updateAvatar: {\n readonly avatar: string | null;\n readonly id: string;\n };\n};\nexport type ProfileDrawerContentUpdateAvatarMutation = {\n response: ProfileDrawerContentUpdateAvatarMutation$data;\n variables: ProfileDrawerContentUpdateAvatarMutation$variables;\n};\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"defaultValue\": null,\n \"kind\": \"LocalArgument\",\n \"name\": \"input\"\n }\n],\nv1 = [\n {\n \"alias\": null,\n \"args\": [\n {\n \"kind\": \"Variable\",\n \"name\": \"input\",\n \"variableName\": \"input\"\n }\n ],\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"updateAvatar\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"id\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"avatar\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileDrawerContentUpdateAvatarMutation\",\n \"selections\": (v1/*: any*/),\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Operation\",\n \"name\": \"ProfileDrawerContentUpdateAvatarMutation\",\n \"selections\": (v1/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"b749732615af9f8027386d69ffb57b63\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileDrawerContentUpdateAvatarMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileDrawerContentUpdateAvatarMutation(\\n $input: UpdateAvatarInput!\\n) {\\n updateAvatar(input: $input) {\\n id\\n avatar\\n }\\n}\\n\"\n }\n};\n})();\n\n(node as any).hash = \"cf72a6314772ed0d1f182b197c858505\";\n\nexport default node;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;;AACA;AACA;AAoBA,MAAMA,IAAqB,GAAI,YAAU;EACzC,IAAIC,EAAE,GAAG,CACP;IACE,gBAAgB,IADlB;IAEE,QAAQ,eAFV;IAGE,QAAQ;EAHV,CADO,CAAT;EAAA,IAOAC,EAAE,GAAG,CACH;IACE,SAAS,IADX;IAEE,QAAQ,CACN;MACE,QAAQ,UADV;MAEE,QAAQ,OAFV;MAGE,gBAAgB;IAHlB,CADM,CAFV;IASE,gBAAgB,MATlB;IAUE,QAAQ,aAVV;IAWE,QAAQ,cAXV;IAYE,UAAU,KAZZ;IAaE,cAAc,CACZ;MACE,SAAS,IADX;MAEE,QAAQ,IAFV;MAGE,QAAQ,aAHV;MAIE,QAAQ,IAJV;MAKE,cAAc;IALhB,CADY,EAQZ;MACE,SAAS,IADX;MAEE,QAAQ,IAFV;MAGE,QAAQ,aAHV;MAIE,QAAQ,QAJV;MAKE,cAAc;IALhB,CARY,CAbhB;IA6BE,cAAc;EA7BhB,CADG,CAPL;EAwCA,OAAO;IACL,YAAY;MACV,uBAAwBD;MAAE;MADhB;MAEV,QAAQ,UAFE;MAGV,YAAY,IAHF;MAIV,QAAQ,0CAJE;MAKV,cAAeC;MAAE;MALP;MAMV,QAAQ,UANE;MAOV,eAAe;IAPL,CADP;IAUL,QAAQ,SAVH;IAWL,aAAa;MACX,uBAAwBD;MAAE;MADf;MAEX,QAAQ,WAFG;MAGX,QAAQ,0CAHG;MAIX,cAAeC;MAAE;;IAJN,CAXR;IAiBL,UAAU;MACR,WAAW,kCADH;MAER,MAAM,IAFE;MAGR,YAAY,EAHJ;MAIR,QAAQ,0CAJA;MAKR,iBAAiB,UALT;MAMR,QAAQ;IANA;EAjBL,CAAP;AA0BC,CAnE6B,EAA9B;;AAqECF,IAAD,CAAcG,IAAd,GAAqB,kCAArB;AAEA,eAAeH,IAAf"}
1
+ {"version":3,"file":"ProfileDrawerContentUpdateAvatarMutation.graphql.js","names":["node","v0","v1","hash"],"sources":["../../../../../src/lib/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.ts"],"sourcesContent":["/**\n * @generated SignedSource<<2487042845b2bf81808599c32befd518>>\n * @lightSyntaxTransform\n * @nogrep\n */\n\n/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest, Mutation } from 'relay-runtime';\nexport type UpdateAvatarInput = {\n avatar?: any | null;\n};\nexport type ProfileDrawerContentUpdateAvatarMutation$variables = {\n input: UpdateAvatarInput;\n};\nexport type ProfileDrawerContentUpdateAvatarMutation$data = {\n readonly updateAvatar: {\n readonly avatar: string | null;\n readonly id: string;\n };\n};\nexport type ProfileDrawerContentUpdateAvatarMutation = {\n response: ProfileDrawerContentUpdateAvatarMutation$data;\n variables: ProfileDrawerContentUpdateAvatarMutation$variables;\n};\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"defaultValue\": null,\n \"kind\": \"LocalArgument\",\n \"name\": \"input\"\n }\n],\nv1 = [\n {\n \"alias\": null,\n \"args\": [\n {\n \"kind\": \"Variable\",\n \"name\": \"input\",\n \"variableName\": \"input\"\n }\n ],\n \"concreteType\": \"User\",\n \"kind\": \"LinkedField\",\n \"name\": \"updateAvatar\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"id\",\n \"storageKey\": null\n },\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"avatar\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileDrawerContentUpdateAvatarMutation\",\n \"selections\": (v1/*: any*/),\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": (v0/*: any*/),\n \"kind\": \"Operation\",\n \"name\": \"ProfileDrawerContentUpdateAvatarMutation\",\n \"selections\": (v1/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"b749732615af9f8027386d69ffb57b63\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileDrawerContentUpdateAvatarMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileDrawerContentUpdateAvatarMutation(\\n $input: UpdateAvatarInput!\\n) {\\n updateAvatar(input: $input) {\\n id\\n avatar\\n }\\n}\\n\"\n }\n};\n})();\n\n(node as any).hash = \"cf72a6314772ed0d1f182b197c858505\";\n\nexport default node;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAoBA,MAAMA,IAAqB,GAAI,YAAU;EACzC,IAAIC,EAAE,GAAG,CACP;MACE,cAAc,EAAE,IAAI;MACpB,MAAM,EAAE,eAAe;MACvB,MAAM,EAAE;IACV,CAAC,CACF;IACDC,EAAE,GAAG,CACH;MACE,OAAO,EAAE,IAAI;MACb,MAAM,EAAE,CACN;QACE,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,OAAO;QACf,cAAc,EAAE;MAClB,CAAC,CACF;MACD,cAAc,EAAE,MAAM;MACtB,MAAM,EAAE,aAAa;MACrB,MAAM,EAAE,cAAc;MACtB,QAAQ,EAAE,KAAK;MACf,YAAY,EAAE,CACZ;QACE,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE;MAChB,CAAC,EACD;QACE,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,QAAQ;QAChB,YAAY,EAAE;MAChB,CAAC,CACF;MACD,YAAY,EAAE;IAChB,CAAC,CACF;EACD,OAAO;IACL,UAAU,EAAE;MACV,qBAAqB,EAAGD,EAAE,UAAU;MACpC,MAAM,EAAE,UAAU;MAClB,UAAU,EAAE,IAAI;MAChB,MAAM,EAAE,0CAA0C;MAClD,YAAY,EAAGC,EAAE,UAAU;MAC3B,MAAM,EAAE,UAAU;MAClB,aAAa,EAAE;IACjB,CAAC;IACD,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE;MACX,qBAAqB,EAAGD,EAAE,UAAU;MACpC,MAAM,EAAE,WAAW;MACnB,MAAM,EAAE,0CAA0C;MAClD,YAAY,EAAGC,EAAE;IACnB,CAAC;;IACD,QAAQ,EAAE;MACR,SAAS,EAAE,kCAAkC;MAC7C,IAAI,EAAE,IAAI;MACV,UAAU,EAAE,CAAC,CAAC;MACd,MAAM,EAAE,0CAA0C;MAClD,eAAe,EAAE,UAAU;MAC3B,MAAM,EAAE;IACV;EACF,CAAC;AACD,CAAC,EAAG;AAEHF,IAAI,CAASG,IAAI,GAAG,kCAAkC;AAEvD,eAAeH,IAAI"}
@@ -5,9 +5,9 @@
5
5
  */
6
6
 
7
7
  /* tslint:disable */
8
-
9
8
  /* eslint-disable */
10
9
  // @ts-nocheck
10
+
11
11
  const node = function () {
12
12
  var v0 = [{
13
13
  "alias": null,
@@ -31,9 +31,7 @@ const node = function () {
31
31
  "kind": "Fragment",
32
32
  "metadata": null,
33
33
  "name": "ProfileDrawerSignOutMutation",
34
- "selections": v0
35
- /*: any*/
36
- ,
34
+ "selections": v0 /*: any*/,
37
35
  "type": "Mutation",
38
36
  "abstractKey": null
39
37
  },
@@ -42,10 +40,9 @@ const node = function () {
42
40
  "argumentDefinitions": [],
43
41
  "kind": "Operation",
44
42
  "name": "ProfileDrawerSignOutMutation",
45
- "selections": v0
46
- /*: any*/
47
-
43
+ "selections": v0 /*: any*/
48
44
  },
45
+
49
46
  "params": {
50
47
  "cacheID": "79648ed72d7cb7d656929f005dbf8371",
51
48
  "id": null,
@@ -56,7 +53,6 @@ const node = function () {
56
53
  }
57
54
  };
58
55
  }();
59
-
60
56
  node.hash = "8510e6462e8f7839ce100254080ba293";
61
57
  export default node;
62
58
  //# sourceMappingURL=ProfileDrawerSignOutMutation.graphql.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProfileDrawerSignOutMutation.graphql.js","names":["node","v0","hash"],"sources":["../../../../../src/lib/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.ts"],"sourcesContent":["/**\n * @generated SignedSource<<51909761cb1c71a922e242d469a3408c>>\n * @lightSyntaxTransform\n * @nogrep\n */\n\n/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest, Mutation } from 'relay-runtime';\nexport type ProfileDrawerSignOutMutation$variables = {};\nexport type ProfileDrawerSignOutMutation$data = {\n readonly signOut: {\n readonly ok: boolean;\n };\n};\nexport type ProfileDrawerSignOutMutation = {\n variables: ProfileDrawerSignOutMutation$variables;\n response: ProfileDrawerSignOutMutation$data;\n};\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"alias\": null,\n \"args\": null,\n \"concreteType\": \"StatusPayload\",\n \"kind\": \"LinkedField\",\n \"name\": \"signOut\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"ok\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileDrawerSignOutMutation\",\n \"selections\": (v0/*: any*/),\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Operation\",\n \"name\": \"ProfileDrawerSignOutMutation\",\n \"selections\": (v0/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"79648ed72d7cb7d656929f005dbf8371\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileDrawerSignOutMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileDrawerSignOutMutation {\\n signOut {\\n ok\\n }\\n}\\n\"\n }\n};\n})();\n\n(node as any).hash = \"8510e6462e8f7839ce100254080ba293\";\n\nexport default node;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;;AACA;AACA;AAcA,MAAMA,IAAqB,GAAI,YAAU;EACzC,IAAIC,EAAE,GAAG,CACP;IACE,SAAS,IADX;IAEE,QAAQ,IAFV;IAGE,gBAAgB,eAHlB;IAIE,QAAQ,aAJV;IAKE,QAAQ,SALV;IAME,UAAU,KANZ;IAOE,cAAc,CACZ;MACE,SAAS,IADX;MAEE,QAAQ,IAFV;MAGE,QAAQ,aAHV;MAIE,QAAQ,IAJV;MAKE,cAAc;IALhB,CADY,CAPhB;IAgBE,cAAc;EAhBhB,CADO,CAAT;EAoBA,OAAO;IACL,YAAY;MACV,uBAAuB,EADb;MAEV,QAAQ,UAFE;MAGV,YAAY,IAHF;MAIV,QAAQ,8BAJE;MAKV,cAAeA;MAAE;MALP;MAMV,QAAQ,UANE;MAOV,eAAe;IAPL,CADP;IAUL,QAAQ,SAVH;IAWL,aAAa;MACX,uBAAuB,EADZ;MAEX,QAAQ,WAFG;MAGX,QAAQ,8BAHG;MAIX,cAAeA;MAAE;;IAJN,CAXR;IAiBL,UAAU;MACR,WAAW,kCADH;MAER,MAAM,IAFE;MAGR,YAAY,EAHJ;MAIR,QAAQ,8BAJA;MAKR,iBAAiB,UALT;MAMR,QAAQ;IANA;EAjBL,CAAP;AA0BC,CA/C6B,EAA9B;;AAiDCD,IAAD,CAAcE,IAAd,GAAqB,kCAArB;AAEA,eAAeF,IAAf"}
1
+ {"version":3,"file":"ProfileDrawerSignOutMutation.graphql.js","names":["node","v0","hash"],"sources":["../../../../../src/lib/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.ts"],"sourcesContent":["/**\n * @generated SignedSource<<51909761cb1c71a922e242d469a3408c>>\n * @lightSyntaxTransform\n * @nogrep\n */\n\n/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n\nimport { ConcreteRequest, Mutation } from 'relay-runtime';\nexport type ProfileDrawerSignOutMutation$variables = {};\nexport type ProfileDrawerSignOutMutation$data = {\n readonly signOut: {\n readonly ok: boolean;\n };\n};\nexport type ProfileDrawerSignOutMutation = {\n variables: ProfileDrawerSignOutMutation$variables;\n response: ProfileDrawerSignOutMutation$data;\n};\n\nconst node: ConcreteRequest = (function(){\nvar v0 = [\n {\n \"alias\": null,\n \"args\": null,\n \"concreteType\": \"StatusPayload\",\n \"kind\": \"LinkedField\",\n \"name\": \"signOut\",\n \"plural\": false,\n \"selections\": [\n {\n \"alias\": null,\n \"args\": null,\n \"kind\": \"ScalarField\",\n \"name\": \"ok\",\n \"storageKey\": null\n }\n ],\n \"storageKey\": null\n }\n];\nreturn {\n \"fragment\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Fragment\",\n \"metadata\": null,\n \"name\": \"ProfileDrawerSignOutMutation\",\n \"selections\": (v0/*: any*/),\n \"type\": \"Mutation\",\n \"abstractKey\": null\n },\n \"kind\": \"Request\",\n \"operation\": {\n \"argumentDefinitions\": [],\n \"kind\": \"Operation\",\n \"name\": \"ProfileDrawerSignOutMutation\",\n \"selections\": (v0/*: any*/)\n },\n \"params\": {\n \"cacheID\": \"79648ed72d7cb7d656929f005dbf8371\",\n \"id\": null,\n \"metadata\": {},\n \"name\": \"ProfileDrawerSignOutMutation\",\n \"operationKind\": \"mutation\",\n \"text\": \"mutation ProfileDrawerSignOutMutation {\\n signOut {\\n ok\\n }\\n}\\n\"\n }\n};\n})();\n\n(node as any).hash = \"8510e6462e8f7839ce100254080ba293\";\n\nexport default node;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAcA,MAAMA,IAAqB,GAAI,YAAU;EACzC,IAAIC,EAAE,GAAG,CACP;IACE,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,eAAe;IAC/B,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,SAAS;IACjB,QAAQ,EAAE,KAAK;IACf,YAAY,EAAE,CACZ;MACE,OAAO,EAAE,IAAI;MACb,MAAM,EAAE,IAAI;MACZ,MAAM,EAAE,aAAa;MACrB,MAAM,EAAE,IAAI;MACZ,YAAY,EAAE;IAChB,CAAC,CACF;IACD,YAAY,EAAE;EAChB,CAAC,CACF;EACD,OAAO;IACL,UAAU,EAAE;MACV,qBAAqB,EAAE,EAAE;MACzB,MAAM,EAAE,UAAU;MAClB,UAAU,EAAE,IAAI;MAChB,MAAM,EAAE,8BAA8B;MACtC,YAAY,EAAGA,EAAE,UAAU;MAC3B,MAAM,EAAE,UAAU;MAClB,aAAa,EAAE;IACjB,CAAC;IACD,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE;MACX,qBAAqB,EAAE,EAAE;MACzB,MAAM,EAAE,WAAW;MACnB,MAAM,EAAE,8BAA8B;MACtC,YAAY,EAAGA,EAAE;IACnB,CAAC;;IACD,QAAQ,EAAE;MACR,SAAS,EAAE,kCAAkC;MAC7C,IAAI,EAAE,IAAI;MACV,UAAU,EAAE,CAAC,CAAC;MACd,MAAM,EAAE,8BAA8B;MACtC,eAAe,EAAE,UAAU;MAC3B,MAAM,EAAE;IACV;EACF,CAAC;AACD,CAAC,EAAG;AAEHD,IAAI,CAASE,IAAI,GAAG,kCAAkC;AAEvD,eAAeF,IAAI"}