@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.
- package/README.md +1 -1
- package/dist/cjs/{emotion.d.js → @types/emotion.d.js} +0 -0
- package/dist/cjs/@types/emotion.d.js.map +1 -0
- package/dist/cjs/@types/i18next.d.js +4 -0
- package/dist/cjs/@types/i18next.d.js.map +1 -0
- package/dist/cjs/components/profile/ProfileButton.js +0 -6
- package/dist/cjs/components/profile/ProfileButton.js.map +1 -1
- package/dist/cjs/components/profile/ProfileConfigContext.js +0 -8
- package/dist/cjs/components/profile/ProfileConfigContext.js.map +1 -1
- package/dist/cjs/components/profile/ProfileContext.js +0 -8
- package/dist/cjs/components/profile/ProfileContext.js.map +1 -1
- package/dist/cjs/components/profile/ProfileDrawer.js +2 -20
- package/dist/cjs/components/profile/ProfileDrawer.js.map +1 -1
- package/dist/cjs/components/profile/ProfileDrawerContent.js +30 -86
- package/dist/cjs/components/profile/ProfileDrawerContent.js.map +1 -1
- package/dist/cjs/components/profile/ProfileNavigationItem.js +4 -18
- package/dist/cjs/components/profile/ProfileNavigationItem.js.map +1 -1
- package/dist/cjs/components/profile/ProfileUpdateNameForm.js +3 -14
- package/dist/cjs/components/profile/ProfileUpdateNameForm.js.map +1 -1
- package/dist/cjs/components/profile/ProfileUpdateNameModal.js +21 -49
- package/dist/cjs/components/profile/ProfileUpdateNameModal.js.map +1 -1
- package/dist/cjs/components/profile/ProfileUpdatePasswordForm.js +3 -14
- package/dist/cjs/components/profile/ProfileUpdatePasswordForm.js.map +1 -1
- package/dist/cjs/components/profile/ProfileUpdatePasswordModal.js +19 -45
- package/dist/cjs/components/profile/ProfileUpdatePasswordModal.js.map +1 -1
- package/dist/cjs/components/profile/ProtectedWrapper.js +4 -19
- package/dist/cjs/components/profile/ProtectedWrapper.js.map +1 -1
- package/dist/cjs/components/profile/UserAvatar.js +5 -17
- package/dist/cjs/components/profile/UserAvatar.js.map +1 -1
- package/dist/cjs/components/profile/UserAvatarAddon.js +2 -19
- package/dist/cjs/components/profile/UserAvatarAddon.js.map +1 -1
- package/dist/cjs/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js +4 -9
- package/dist/cjs/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js.map +1 -1
- package/dist/cjs/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js +33 -42
- package/dist/cjs/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js.map +1 -1
- package/dist/cjs/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.js +4 -9
- package/dist/cjs/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.js.map +1 -1
- package/dist/cjs/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.js +33 -42
- package/dist/cjs/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.js.map +1 -1
- package/dist/cjs/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js +31 -48
- package/dist/cjs/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js.map +1 -1
- package/dist/cjs/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js +27 -36
- package/dist/cjs/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js.map +1 -1
- package/dist/cjs/components/profile/__generated__/ProtectedWrapperQuery.graphql.js +4 -9
- package/dist/cjs/components/profile/__generated__/ProtectedWrapperQuery.graphql.js.map +1 -1
- package/dist/cjs/components/session/SessionDrawer.js +2 -20
- package/dist/cjs/components/session/SessionDrawer.js.map +1 -1
- package/dist/cjs/components/session/SessionDrawerContent.js +0 -15
- package/dist/cjs/components/session/SessionDrawerContent.js.map +1 -1
- package/dist/cjs/components/session/SessionList.js +6 -39
- package/dist/cjs/components/session/SessionList.js.map +1 -1
- package/dist/cjs/components/session/SessionListItem.js +22 -84
- package/dist/cjs/components/session/SessionListItem.js.map +1 -1
- package/dist/cjs/components/session/SessionListSkeleton.js +2 -15
- package/dist/cjs/components/session/SessionListSkeleton.js.map +1 -1
- package/dist/cjs/components/session/__generated__/SessionDrawerContentQuery.graphql.js +1 -2
- package/dist/cjs/components/session/__generated__/SessionDrawerContentQuery.graphql.js.map +1 -1
- package/dist/cjs/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js +4 -9
- package/dist/cjs/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js.map +1 -1
- package/dist/cjs/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js +27 -36
- package/dist/cjs/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js.map +1 -1
- package/dist/cjs/components/session/__generated__/SessionListItem_session.graphql.js +1 -2
- package/dist/cjs/components/session/__generated__/SessionListItem_session.graphql.js.map +1 -1
- package/dist/cjs/components/session/__generated__/SessionListRefetchQuery.graphql.js +1 -2
- package/dist/cjs/components/session/__generated__/SessionListRefetchQuery.graphql.js.map +1 -1
- package/dist/cjs/components/session/__generated__/SessionList_sessions.graphql.js +1 -2
- package/dist/cjs/components/session/__generated__/SessionList_sessions.graphql.js.map +1 -1
- package/dist/cjs/components/session/formatDate.js +0 -2
- package/dist/cjs/components/session/formatDate.js.map +1 -1
- package/dist/cjs/components/session/getLastSeen.js +0 -2
- package/dist/cjs/components/session/getLastSeen.js.map +1 -1
- package/dist/cjs/components/shared/ButtonUpdate.js +2 -9
- package/dist/cjs/components/shared/ButtonUpdate.js.map +1 -1
- package/dist/cjs/components/shared/ErrorResult.js +4 -17
- package/dist/cjs/components/shared/ErrorResult.js.map +1 -1
- package/dist/cjs/components/shared/MainLoader.js +0 -10
- package/dist/cjs/components/shared/MainLoader.js.map +1 -1
- package/dist/cjs/components/shared/icons/AndroidIcon.js +0 -6
- package/dist/cjs/components/shared/icons/AndroidIcon.js.map +1 -1
- package/dist/cjs/components/shared/icons/AppleIcon.js +0 -6
- package/dist/cjs/components/shared/icons/AppleIcon.js.map +1 -1
- package/dist/cjs/components/shared/icons/BrowserIcon.js +0 -6
- package/dist/cjs/components/shared/icons/BrowserIcon.js.map +1 -1
- package/dist/cjs/components/shared/icons/ProfileIcon.js +0 -6
- package/dist/cjs/components/shared/icons/ProfileIcon.js.map +1 -1
- package/dist/cjs/components/shared/icons/UnknownDeviceIcon.js +0 -6
- package/dist/cjs/components/shared/icons/UnknownDeviceIcon.js.map +1 -1
- package/dist/cjs/index.js +0 -19
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils/getUserFullName.js +2 -4
- package/dist/cjs/utils/getUserFullName.js.map +1 -1
- package/dist/esm/{emotion.d.js → @types/emotion.d.js} +0 -0
- package/dist/esm/@types/emotion.d.js.map +1 -0
- package/dist/esm/@types/i18next.d.js +2 -0
- package/dist/esm/@types/i18next.d.js.map +1 -0
- package/dist/esm/components/profile/ProfileButton.js +0 -3
- package/dist/esm/components/profile/ProfileButton.js.map +1 -1
- package/dist/esm/components/profile/ProfileConfigContext.js.map +1 -1
- package/dist/esm/components/profile/ProfileContext.js.map +1 -1
- package/dist/esm/components/profile/ProfileDrawer.js +0 -3
- package/dist/esm/components/profile/ProfileDrawer.js.map +1 -1
- package/dist/esm/components/profile/ProfileDrawerContent.js +5 -16
- package/dist/esm/components/profile/ProfileDrawerContent.js.map +1 -1
- package/dist/esm/components/profile/ProfileNavigationItem.js +1 -4
- package/dist/esm/components/profile/ProfileNavigationItem.js.map +1 -1
- package/dist/esm/components/profile/ProfileUpdateNameForm.js +1 -4
- package/dist/esm/components/profile/ProfileUpdateNameForm.js.map +1 -1
- package/dist/esm/components/profile/ProfileUpdateNameModal.js +3 -5
- package/dist/esm/components/profile/ProfileUpdateNameModal.js.map +1 -1
- package/dist/esm/components/profile/ProfileUpdatePasswordForm.js +1 -4
- package/dist/esm/components/profile/ProfileUpdatePasswordForm.js.map +1 -1
- package/dist/esm/components/profile/ProfileUpdatePasswordModal.js +3 -5
- package/dist/esm/components/profile/ProfileUpdatePasswordModal.js.map +1 -1
- package/dist/esm/components/profile/ProtectedWrapper.js +0 -4
- package/dist/esm/components/profile/ProtectedWrapper.js.map +1 -1
- package/dist/esm/components/profile/UserAvatar.js +0 -3
- package/dist/esm/components/profile/UserAvatar.js.map +1 -1
- package/dist/esm/components/profile/UserAvatarAddon.js +0 -3
- package/dist/esm/components/profile/UserAvatarAddon.js.map +1 -1
- package/dist/esm/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js +4 -8
- package/dist/esm/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js.map +1 -1
- package/dist/esm/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js +33 -41
- package/dist/esm/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js.map +1 -1
- package/dist/esm/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.js +4 -8
- package/dist/esm/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.js.map +1 -1
- package/dist/esm/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.js +33 -41
- package/dist/esm/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.js.map +1 -1
- package/dist/esm/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js +31 -47
- package/dist/esm/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js.map +1 -1
- package/dist/esm/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js +27 -35
- package/dist/esm/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js.map +1 -1
- package/dist/esm/components/profile/__generated__/ProtectedWrapperQuery.graphql.js +4 -8
- package/dist/esm/components/profile/__generated__/ProtectedWrapperQuery.graphql.js.map +1 -1
- package/dist/esm/components/session/SessionDrawer.js +1 -4
- package/dist/esm/components/session/SessionDrawer.js.map +1 -1
- package/dist/esm/components/session/SessionDrawerContent.js +0 -5
- package/dist/esm/components/session/SessionDrawerContent.js.map +1 -1
- package/dist/esm/components/session/SessionList.js +1 -4
- package/dist/esm/components/session/SessionList.js.map +1 -1
- package/dist/esm/components/session/SessionListItem.js +3 -17
- package/dist/esm/components/session/SessionListItem.js.map +1 -1
- package/dist/esm/components/session/SessionListSkeleton.js +1 -3
- package/dist/esm/components/session/SessionListSkeleton.js.map +1 -1
- package/dist/esm/components/session/__generated__/SessionDrawerContentQuery.graphql.js +1 -1
- package/dist/esm/components/session/__generated__/SessionDrawerContentQuery.graphql.js.map +1 -1
- package/dist/esm/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js +4 -8
- package/dist/esm/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js.map +1 -1
- package/dist/esm/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js +27 -35
- package/dist/esm/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js.map +1 -1
- package/dist/esm/components/session/__generated__/SessionListItem_session.graphql.js +1 -1
- package/dist/esm/components/session/__generated__/SessionListItem_session.graphql.js.map +1 -1
- package/dist/esm/components/session/__generated__/SessionListRefetchQuery.graphql.js +1 -1
- package/dist/esm/components/session/__generated__/SessionListRefetchQuery.graphql.js.map +1 -1
- package/dist/esm/components/session/__generated__/SessionList_sessions.graphql.js +1 -1
- package/dist/esm/components/session/__generated__/SessionList_sessions.graphql.js.map +1 -1
- package/dist/esm/components/session/formatDate.js +0 -1
- package/dist/esm/components/session/formatDate.js.map +1 -1
- package/dist/esm/components/session/getLastSeen.js +0 -1
- package/dist/esm/components/session/getLastSeen.js.map +1 -1
- package/dist/esm/components/shared/ButtonUpdate.js +1 -3
- package/dist/esm/components/shared/ButtonUpdate.js.map +1 -1
- package/dist/esm/components/shared/ErrorResult.js +3 -5
- package/dist/esm/components/shared/ErrorResult.js.map +1 -1
- package/dist/esm/components/shared/MainLoader.js +0 -2
- package/dist/esm/components/shared/MainLoader.js.map +1 -1
- package/dist/esm/components/shared/icons/AndroidIcon.js +0 -1
- package/dist/esm/components/shared/icons/AndroidIcon.js.map +1 -1
- package/dist/esm/components/shared/icons/AppleIcon.js +0 -1
- package/dist/esm/components/shared/icons/AppleIcon.js.map +1 -1
- package/dist/esm/components/shared/icons/BrowserIcon.js +0 -1
- package/dist/esm/components/shared/icons/BrowserIcon.js.map +1 -1
- package/dist/esm/components/shared/icons/ProfileIcon.js +0 -1
- package/dist/esm/components/shared/icons/ProfileIcon.js.map +1 -1
- package/dist/esm/components/shared/icons/UnknownDeviceIcon.js +0 -1
- package/dist/esm/components/shared/icons/UnknownDeviceIcon.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/getUserFullName.js +0 -1
- package/dist/esm/utils/getUserFullName.js.map +1 -1
- package/dist/types/{components → src/lib/components}/profile/ProfileButton.d.ts +0 -0
- package/dist/types/src/lib/components/profile/ProfileButton.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/ProfileConfigContext.d.ts +0 -0
- package/dist/types/src/lib/components/profile/ProfileConfigContext.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/ProfileContext.d.ts +0 -0
- package/dist/types/src/lib/components/profile/ProfileContext.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/ProfileDrawer.d.ts +0 -0
- package/dist/types/src/lib/components/profile/ProfileDrawer.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/ProfileDrawerContent.d.ts +0 -0
- package/dist/types/src/lib/components/profile/ProfileDrawerContent.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/ProfileNavigationItem.d.ts +0 -0
- package/dist/types/src/lib/components/profile/ProfileNavigationItem.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/ProfileUpdateNameForm.d.ts +0 -0
- package/dist/types/src/lib/components/profile/ProfileUpdateNameForm.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/ProfileUpdateNameModal.d.ts +0 -0
- package/dist/types/src/lib/components/profile/ProfileUpdateNameModal.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/ProfileUpdatePasswordForm.d.ts +0 -0
- package/dist/types/src/lib/components/profile/ProfileUpdatePasswordForm.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/ProfileUpdatePasswordModal.d.ts +0 -0
- package/dist/types/src/lib/components/profile/ProfileUpdatePasswordModal.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/ProtectedWrapper.d.ts +0 -0
- package/dist/types/src/lib/components/profile/ProtectedWrapper.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/UserAvatar.d.ts +0 -0
- package/dist/types/src/lib/components/profile/UserAvatar.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/UserAvatarAddon.d.ts +0 -0
- package/dist/types/src/lib/components/profile/UserAvatarAddon.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.d.ts +0 -0
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.d.ts +0 -0
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/__generated__/ProfileDrawerSignOutMutation.graphql.d.ts +0 -0
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.d.ts +0 -0
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/__generated__/ProfileUpdateNameModalMutation.graphql.d.ts +0 -0
- package/dist/types/src/lib/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.d.ts +0 -0
- package/dist/types/src/lib/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts +0 -0
- package/dist/types/src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/session/SessionDrawer.d.ts +0 -0
- package/dist/types/src/lib/components/session/SessionDrawer.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/session/SessionDrawerContent.d.ts +0 -0
- package/dist/types/src/lib/components/session/SessionDrawerContent.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/session/SessionList.d.ts +0 -0
- package/dist/types/src/lib/components/session/SessionList.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/session/SessionListItem.d.ts +0 -0
- package/dist/types/src/lib/components/session/SessionListItem.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/session/SessionListSkeleton.d.ts +0 -0
- package/dist/types/src/lib/components/session/SessionListSkeleton.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/session/__generated__/SessionDrawerContentQuery.graphql.d.ts +0 -0
- package/dist/types/src/lib/components/session/__generated__/SessionDrawerContentQuery.graphql.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.d.ts +0 -0
- package/dist/types/src/lib/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/session/__generated__/SessionListItemDestroySessionMutation.graphql.d.ts +0 -0
- package/dist/types/src/lib/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/session/__generated__/SessionListItem_session.graphql.d.ts +0 -0
- package/dist/types/src/lib/components/session/__generated__/SessionListItem_session.graphql.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/session/__generated__/SessionListRefetchQuery.graphql.d.ts +0 -0
- package/dist/types/src/lib/components/session/__generated__/SessionListRefetchQuery.graphql.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/session/__generated__/SessionList_sessions.graphql.d.ts +0 -0
- package/dist/types/src/lib/components/session/__generated__/SessionList_sessions.graphql.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/session/formatDate.d.ts +0 -0
- package/dist/types/src/lib/components/session/formatDate.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/session/getLastSeen.d.ts +0 -0
- package/dist/types/src/lib/components/session/getLastSeen.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/shared/ButtonUpdate.d.ts +0 -0
- package/dist/types/src/lib/components/shared/ButtonUpdate.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/shared/ErrorResult.d.ts +0 -0
- package/dist/types/src/lib/components/shared/ErrorResult.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/shared/MainLoader.d.ts +0 -0
- package/dist/types/src/lib/components/shared/MainLoader.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/shared/icons/AndroidIcon.d.ts +0 -0
- package/dist/types/src/lib/components/shared/icons/AndroidIcon.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/shared/icons/AppleIcon.d.ts +0 -0
- package/dist/types/src/lib/components/shared/icons/AppleIcon.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/shared/icons/BrowserIcon.d.ts +0 -0
- package/dist/types/src/lib/components/shared/icons/BrowserIcon.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/shared/icons/ProfileIcon.d.ts +0 -0
- package/dist/types/src/lib/components/shared/icons/ProfileIcon.d.ts.map +1 -0
- package/dist/types/{components → src/lib/components}/shared/icons/UnknownDeviceIcon.d.ts +0 -0
- package/dist/types/src/lib/components/shared/icons/UnknownDeviceIcon.d.ts.map +1 -0
- package/dist/types/{index.d.ts → src/lib/index.d.ts} +0 -0
- package/dist/types/src/lib/index.d.ts.map +1 -0
- package/dist/types/{utils → src/lib/utils}/getUserFullName.d.ts +0 -0
- package/dist/types/src/lib/utils/getUserFullName.d.ts.map +1 -0
- package/package.json +32 -34
- package/dist/cjs/emotion.d.js.map +0 -1
- package/dist/esm/emotion.d.js.map +0 -1
- package/dist/types/components/profile/ProfileButton.d.ts.map +0 -1
- package/dist/types/components/profile/ProfileConfigContext.d.ts.map +0 -1
- package/dist/types/components/profile/ProfileContext.d.ts.map +0 -1
- package/dist/types/components/profile/ProfileDrawer.d.ts.map +0 -1
- package/dist/types/components/profile/ProfileDrawerContent.d.ts.map +0 -1
- package/dist/types/components/profile/ProfileNavigationItem.d.ts.map +0 -1
- package/dist/types/components/profile/ProfileUpdateNameForm.d.ts.map +0 -1
- package/dist/types/components/profile/ProfileUpdateNameModal.d.ts.map +0 -1
- package/dist/types/components/profile/ProfileUpdatePasswordForm.d.ts.map +0 -1
- package/dist/types/components/profile/ProfileUpdatePasswordModal.d.ts.map +0 -1
- package/dist/types/components/profile/ProtectedWrapper.d.ts.map +0 -1
- package/dist/types/components/profile/UserAvatar.d.ts.map +0 -1
- package/dist/types/components/profile/UserAvatarAddon.d.ts.map +0 -1
- package/dist/types/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.d.ts.map +0 -1
- package/dist/types/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.d.ts.map +0 -1
- package/dist/types/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.d.ts.map +0 -1
- package/dist/types/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.d.ts.map +0 -1
- package/dist/types/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.d.ts.map +0 -1
- package/dist/types/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.d.ts.map +0 -1
- package/dist/types/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts.map +0 -1
- package/dist/types/components/session/SessionDrawer.d.ts.map +0 -1
- package/dist/types/components/session/SessionDrawerContent.d.ts.map +0 -1
- package/dist/types/components/session/SessionList.d.ts.map +0 -1
- package/dist/types/components/session/SessionListItem.d.ts.map +0 -1
- package/dist/types/components/session/SessionListSkeleton.d.ts.map +0 -1
- package/dist/types/components/session/__generated__/SessionDrawerContentQuery.graphql.d.ts.map +0 -1
- package/dist/types/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.d.ts.map +0 -1
- package/dist/types/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.d.ts.map +0 -1
- package/dist/types/components/session/__generated__/SessionListItem_session.graphql.d.ts.map +0 -1
- package/dist/types/components/session/__generated__/SessionListRefetchQuery.graphql.d.ts.map +0 -1
- package/dist/types/components/session/__generated__/SessionList_sessions.graphql.d.ts.map +0 -1
- package/dist/types/components/session/formatDate.d.ts.map +0 -1
- package/dist/types/components/session/getLastSeen.d.ts.map +0 -1
- package/dist/types/components/shared/ButtonUpdate.d.ts.map +0 -1
- package/dist/types/components/shared/ErrorResult.d.ts.map +0 -1
- package/dist/types/components/shared/MainLoader.d.ts.map +0 -1
- package/dist/types/components/shared/icons/AndroidIcon.d.ts.map +0 -1
- package/dist/types/components/shared/icons/AppleIcon.d.ts.map +0 -1
- package/dist/types/components/shared/icons/BrowserIcon.d.ts.map +0 -1
- package/dist/types/components/shared/icons/ProfileIcon.d.ts.map +0 -1
- package/dist/types/components/shared/icons/UnknownDeviceIcon.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- 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));
|
|
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":"
|
|
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":"
|
|
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));
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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"}
|
package/dist/esm/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js
CHANGED
|
@@ -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
|
package/dist/esm/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js.map
CHANGED
|
@@ -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
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
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":
|
|
37
|
-
|
|
38
|
-
|
|
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
|
|
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
|
package/dist/esm/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.js.map
CHANGED
|
@@ -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
|
|
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"}
|