@os-team/profile 1.0.48 → 1.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/profile/ProfileDrawerContent.js +6 -11
- package/dist/cjs/components/profile/ProfileDrawerContent.js.map +1 -1
- package/dist/cjs/components/profile/ProfileUpdateNameModal.js +44 -46
- package/dist/cjs/components/profile/ProfileUpdateNameModal.js.map +1 -1
- package/dist/cjs/components/profile/ProfileUpdatePasswordModal.js +45 -46
- package/dist/cjs/components/profile/ProfileUpdatePasswordModal.js.map +1 -1
- package/dist/cjs/components/session/SessionList.js +4 -4
- package/dist/cjs/components/session/SessionList.js.map +1 -1
- package/dist/cjs/components/session/SessionListItem.js +2 -2
- package/dist/cjs/components/shared/ErrorResult.js +3 -5
- package/dist/cjs/components/shared/ErrorResult.js.map +1 -1
- package/dist/cjs/components/shared/FormError.js +21 -0
- package/dist/cjs/components/shared/FormError.js.map +1 -0
- package/dist/cjs/utils/getErrorMessage.js +43 -0
- package/dist/cjs/utils/getErrorMessage.js.map +1 -0
- package/dist/cjs/utils/handleFormErrors.js +47 -0
- package/dist/cjs/utils/handleFormErrors.js.map +1 -0
- package/dist/esm/components/profile/ProfileDrawerContent.js +4 -15
- package/dist/esm/components/profile/ProfileDrawerContent.js.map +1 -1
- package/dist/esm/components/profile/ProfileUpdateNameModal.js +40 -36
- package/dist/esm/components/profile/ProfileUpdateNameModal.js.map +1 -1
- package/dist/esm/components/profile/ProfileUpdatePasswordModal.js +43 -36
- package/dist/esm/components/profile/ProfileUpdatePasswordModal.js.map +1 -1
- package/dist/esm/components/session/SessionList.js +2 -2
- package/dist/esm/components/session/SessionList.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/FormError.js +14 -0
- package/dist/esm/components/shared/FormError.js.map +1 -0
- package/dist/esm/utils/getErrorMessage.js +36 -0
- package/dist/esm/utils/getErrorMessage.js.map +1 -0
- package/dist/esm/utils/handleFormErrors.js +32 -0
- package/dist/esm/utils/handleFormErrors.js.map +1 -0
- package/dist/types/src/lib/components/profile/ProfileDrawer.d.ts +1 -1
- package/dist/types/src/lib/components/profile/ProfileDrawer.d.ts.map +1 -1
- package/dist/types/src/lib/components/profile/ProfileDrawerContent.d.ts.map +1 -1
- package/dist/types/src/lib/components/profile/ProfileUpdateNameModal.d.ts.map +1 -1
- package/dist/types/src/lib/components/profile/ProfileUpdatePasswordModal.d.ts.map +1 -1
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.d.ts +3 -3
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.d.ts.map +1 -1
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.d.ts +4 -4
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.d.ts.map +1 -1
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.d.ts +3 -3
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.d.ts.map +1 -1
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.d.ts +4 -4
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.d.ts.map +1 -1
- package/dist/types/src/lib/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.d.ts +4 -4
- package/dist/types/src/lib/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.d.ts.map +1 -1
- package/dist/types/src/lib/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.d.ts +4 -4
- package/dist/types/src/lib/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.d.ts.map +1 -1
- package/dist/types/src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts +3 -3
- package/dist/types/src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts.map +1 -1
- package/dist/types/src/lib/components/session/__generated__/SessionDrawerContentQuery.graphql.d.ts +3 -3
- package/dist/types/src/lib/components/session/__generated__/SessionDrawerContentQuery.graphql.d.ts.map +1 -1
- package/dist/types/src/lib/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.d.ts +3 -3
- package/dist/types/src/lib/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.d.ts.map +1 -1
- package/dist/types/src/lib/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.d.ts +4 -4
- package/dist/types/src/lib/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.d.ts.map +1 -1
- package/dist/types/src/lib/components/session/__generated__/SessionListItem_session.graphql.d.ts +2 -2
- package/dist/types/src/lib/components/session/__generated__/SessionListItem_session.graphql.d.ts.map +1 -1
- package/dist/types/src/lib/components/session/__generated__/SessionListRefetchQuery.graphql.d.ts +3 -3
- package/dist/types/src/lib/components/session/__generated__/SessionListRefetchQuery.graphql.d.ts.map +1 -1
- package/dist/types/src/lib/components/session/__generated__/SessionList_sessions.graphql.d.ts +2 -2
- package/dist/types/src/lib/components/session/__generated__/SessionList_sessions.graphql.d.ts.map +1 -1
- package/dist/types/src/lib/components/shared/ErrorResult.d.ts.map +1 -1
- package/dist/types/src/lib/components/shared/FormError.d.ts +4 -0
- package/dist/types/src/lib/components/shared/FormError.d.ts.map +1 -0
- package/dist/types/src/lib/utils/getErrorMessage.d.ts +3 -0
- package/dist/types/src/lib/utils/getErrorMessage.d.ts.map +1 -0
- package/dist/types/src/lib/utils/handleFormErrors.d.ts +9 -0
- package/dist/types/src/lib/utils/handleFormErrors.d.ts.map +1 -0
- package/package.json +31 -31
- package/dist/cjs/components/profile/ProfileUpdateNameForm.js +0 -35
- package/dist/cjs/components/profile/ProfileUpdateNameForm.js.map +0 -1
- package/dist/cjs/components/profile/ProfileUpdatePasswordForm.js +0 -39
- package/dist/cjs/components/profile/ProfileUpdatePasswordForm.js.map +0 -1
- package/dist/esm/components/profile/ProfileUpdateNameForm.js +0 -30
- package/dist/esm/components/profile/ProfileUpdateNameForm.js.map +0 -1
- package/dist/esm/components/profile/ProfileUpdatePasswordForm.js +0 -34
- package/dist/esm/components/profile/ProfileUpdatePasswordForm.js.map +0 -1
- package/dist/types/src/lib/components/profile/ProfileUpdateNameForm.d.ts +0 -11
- package/dist/types/src/lib/components/profile/ProfileUpdateNameForm.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/ProfileUpdatePasswordForm.d.ts +0 -11
- package/dist/types/src/lib/components/profile/ProfileUpdatePasswordForm.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionList.js","names":["React","useCallback","useMemo","useFragment","useMutation","Button","message","styled","useTranslation","clr","SessionListItem","
|
|
1
|
+
{"version":3,"file":"SessionList.js","names":["React","useCallback","useMemo","useFragment","useMutation","Button","message","styled","useTranslation","clr","SessionListItem","sessionsFragment","Title","div","List","p","theme","listItemColorBorder","DestroyAllOtherSessionsButton","OtherSessions","SESSION_LIST_PADDING_VERTICAL","SessionList","sessionsKey","sessions","t","currentSession","find","session","current","otherSessions","filter","sort","a","b","Date","lastSeenAt","getTime","commitDestroyAllOtherSessions","loadingDestroyAllOtherSessions","destroyAllOtherSessions","variables","updater","store","record","get","sessionRecords","getLinkedRecords","setLinkedRecords","item","getDataID","id","onError","error","onCompleted","success","length","map"],"sources":["../../../../src/lib/components/session/SessionList.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from 'react';\nimport graphql from 'babel-plugin-relay/macro';\nimport { useFragment, useMutation } from 'react-relay/hooks';\nimport { Button, message } from '@os-design/core';\nimport styled from '@emotion/styled';\nimport { useTranslation } from 'react-i18next';\nimport { clr } from '@os-design/theming';\nimport { SessionList_sessions$key } from './__generated__/SessionList_sessions.graphql';\nimport SessionListItem from './SessionListItem';\nimport { SessionListDestroyAllOtherSessionsMutation } from './__generated__/SessionListDestroyAllOtherSessionsMutation.graphql';\n\nconst sessionsFragment = graphql`\n fragment SessionList_sessions on Query\n @refetchable(queryName: \"SessionListRefetchQuery\") {\n sessions {\n id\n current\n lastSeenAt\n ...SessionListItem_session\n }\n }\n`;\n\ninterface SessionListProps {\n sessionsKey: SessionList_sessions$key;\n}\n\nexport const Title = styled.div`\n font-weight: 500;\n margin: 1em 1em 0.5em;\n`;\n\nexport const List = styled.div`\n border-top: 1px solid ${(p) => clr(p.theme.listItemColorBorder)};\n border-bottom: 1px solid ${(p) => clr(p.theme.listItemColorBorder)};\n`;\n\nconst DestroyAllOtherSessionsButton = styled(Button)`\n & > span {\n flex: 1;\n text-align: left;\n }\n`;\n\nconst OtherSessions = styled.div`\n margin-top: 2em;\n`;\n\nexport const SESSION_LIST_PADDING_VERTICAL = 0.5;\n\nconst SessionList: React.FC<SessionListProps> = ({ sessionsKey }) => {\n const { sessions } = useFragment(sessionsFragment, sessionsKey);\n const { t } = useTranslation(['profile']);\n\n const currentSession = useMemo(\n () => sessions.find((session) => session.current),\n [sessions]\n );\n\n const otherSessions = useMemo(\n () =>\n sessions\n .filter((session) => !session.current)\n .sort(\n (a, b) =>\n new Date(b.lastSeenAt).getTime() - new Date(a.lastSeenAt).getTime()\n ),\n [sessions]\n );\n\n const [commitDestroyAllOtherSessions, loadingDestroyAllOtherSessions] =\n useMutation<SessionListDestroyAllOtherSessionsMutation>(graphql`\n mutation SessionListDestroyAllOtherSessionsMutation {\n destroyAllOtherSessions {\n ok\n }\n }\n `);\n\n const destroyAllOtherSessions = useCallback(() => {\n commitDestroyAllOtherSessions({\n variables: {},\n updater: (store) => {\n const record = store.get('client:root');\n if (!record) return;\n\n const sessionRecords = record.getLinkedRecords('sessions');\n if (!sessionRecords) return;\n\n record.setLinkedRecords(\n sessionRecords.filter(\n (item) => item.getDataID() === currentSession?.id\n ),\n 'sessions'\n );\n },\n onError: (error) => {\n message.error(error.message);\n },\n onCompleted: () => {\n message.success(t('profile:sessions.destroyedAllOther'));\n },\n });\n }, [commitDestroyAllOtherSessions, currentSession?.id, t]);\n\n return (\n <>\n {currentSession && (\n <>\n <Title>{t('profile:sessions.current')}</Title>\n <List>\n <SessionListItem sessionKey={currentSession} hideLastSeenAt />\n </List>\n </>\n )}\n\n {otherSessions.length > 0 && (\n <>\n <DestroyAllOtherSessionsButton\n type='ghost'\n danger\n size='small'\n wide='always'\n loading={loadingDestroyAllOtherSessions}\n onClick={destroyAllOtherSessions}\n >\n {t('profile:sessions.destroyAllOther')}\n </DestroyAllOtherSessionsButton>\n\n <OtherSessions>\n <Title>\n {t('profile:sessions.other')} ({otherSessions.length})\n </Title>\n <List>\n {otherSessions.map((session) => (\n <SessionListItem key={session.id} sessionKey={session} />\n ))}\n </List>\n </OtherSessions>\n </>\n )}\n </>\n );\n};\n\nexport default SessionList;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAEnD,SAASC,WAAW,EAAEC,WAAW,QAAQ,mBAAmB;AAC5D,SAASC,MAAM,EAAEC,OAAO,QAAQ,iBAAiB;AACjD,OAAOC,MAAM,MAAM,iBAAiB;AACpC,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,GAAG,QAAQ,oBAAoB;AAExC,OAAOC,eAAe,MAAM,mBAAmB;AAG/C,MAAMC,gBAAgB,8aAUrB;AAMD,OAAO,MAAMC,KAAK,GAAGL,MAAM,CAACM,GAAI;AAChC;AACA;AACA,CAAC;AAED,OAAO,MAAMC,IAAI,GAAGP,MAAM,CAACM,GAAI;AAC/B,0BAA2BE,CAAC,IAAKN,GAAG,CAACM,CAAC,CAACC,KAAK,CAACC,mBAAmB,CAAE;AAClE,6BAA8BF,CAAC,IAAKN,GAAG,CAACM,CAAC,CAACC,KAAK,CAACC,mBAAmB,CAAE;AACrE,CAAC;AAED,MAAMC,6BAA6B,GAAGX,MAAM,CAACF,MAAM,CAAE;AACrD;AACA;AACA;AACA;AACA,CAAC;AAED,MAAMc,aAAa,G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,WAAW"}
|
|
@@ -3,21 +3,19 @@ import { CloseCircle } from '@os-design/icons';
|
|
|
3
3
|
import { Result } from '@os-design/core';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import styled from '@emotion/styled';
|
|
6
|
+
import getErrorMessage from '../../utils/getErrorMessage';
|
|
6
7
|
const StyledResult = styled(Result)`
|
|
7
8
|
margin: 0 1em;
|
|
8
9
|
`;
|
|
9
10
|
const ErrorResult = ({
|
|
10
11
|
error
|
|
11
12
|
}) => {
|
|
12
|
-
var _source, _source$errors, _source$errors$;
|
|
13
13
|
const {
|
|
14
14
|
t
|
|
15
15
|
} = useTranslation(['common']);
|
|
16
16
|
return /*#__PURE__*/React.createElement(StyledResult, {
|
|
17
|
-
title: t('common:errorTitle')
|
|
18
|
-
|
|
19
|
-
,
|
|
20
|
-
description: (_source = error.source) === null || _source === void 0 ? void 0 : (_source$errors = _source.errors) === null || _source$errors === void 0 ? void 0 : (_source$errors$ = _source$errors[0]) === null || _source$errors$ === void 0 ? void 0 : _source$errors$.message,
|
|
17
|
+
title: t('common:errorTitle'),
|
|
18
|
+
description: getErrorMessage(error),
|
|
21
19
|
icon: /*#__PURE__*/React.createElement(CloseCircle, null)
|
|
22
20
|
});
|
|
23
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorResult.js","names":["React","CloseCircle","Result","useTranslation","styled","StyledResult","ErrorResult","error","t"
|
|
1
|
+
{"version":3,"file":"ErrorResult.js","names":["React","CloseCircle","Result","useTranslation","styled","getErrorMessage","StyledResult","ErrorResult","error","t"],"sources":["../../../../src/lib/components/shared/ErrorResult.tsx"],"sourcesContent":["import React from 'react';\nimport { CloseCircle } from '@os-design/icons';\nimport { Result } from '@os-design/core';\nimport { useTranslation } from 'react-i18next';\nimport styled from '@emotion/styled';\nimport getErrorMessage from '../../utils/getErrorMessage';\n\ninterface ErrorResultProps {\n error: Error;\n}\n\nconst StyledResult = styled(Result)`\n margin: 0 1em;\n`;\n\nconst ErrorResult: React.FC<ErrorResultProps> = ({ error }) => {\n const { t } = useTranslation(['common']);\n\n return (\n <StyledResult\n title={t('common:errorTitle')}\n description={getErrorMessage(error)}\n icon={<CloseCircle />}\n />\n );\n};\n\nexport default ErrorResult;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,QAAQ,kBAAkB;AAC9C,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SAASC,cAAc,QAAQ,eAAe;AAC9C,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,eAAe,MAAM,6BAA6B;AAMzD,MAAMC,YAAY,GAAGF,MAAM,CAACF,MAAM,CAAE;AACpC;AACA,CAAC;AAED,MAAMK,WAAuC,GAAG,CAAC;EAAEC;AAAM,CAAC,KAAK;EAC7D,MAAM;IAAEC;EAAE,CAAC,GAAGN,cAAc,CAAC,CAAC,QAAQ,CAAC,CAAC;EAExC,oBACE,oBAAC,YAAY;IACX,KAAK,EAAEM,CAAC,CAAC,mBAAmB,CAAE;IAC9B,WAAW,EAAEJ,eAAe,CAACG,KAAK,CAAE;IACpC,IAAI,eAAE,oBAAC,WAAW;EAAI,EACtB;AAEN,CAAC;AAED,eAAeD,WAAW"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Alert } from '@os-design/core';
|
|
2
|
+
import { useExistingForm } from '@os-design/form';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
const FormError = () => {
|
|
5
|
+
const {
|
|
6
|
+
useError
|
|
7
|
+
} = useExistingForm();
|
|
8
|
+
const error = useError('_error');
|
|
9
|
+
return error ? /*#__PURE__*/React.createElement(Alert, {
|
|
10
|
+
type: "error"
|
|
11
|
+
}, error) : null;
|
|
12
|
+
};
|
|
13
|
+
export default FormError;
|
|
14
|
+
//# sourceMappingURL=FormError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormError.js","names":["Alert","useExistingForm","React","FormError","useError","error"],"sources":["../../../../src/lib/components/shared/FormError.tsx"],"sourcesContent":["import { Alert } from '@os-design/core';\nimport { useExistingForm } from '@os-design/form';\nimport React from 'react';\n\nconst FormError: React.FC = () => {\n const { useError } = useExistingForm();\n const error = useError('_error');\n return error ? <Alert type='error'>{error}</Alert> : null;\n};\n\nexport default FormError;\n"],"mappings":"AAAA,SAASA,KAAK,QAAQ,iBAAiB;AACvC,SAASC,eAAe,QAAQ,iBAAiB;AACjD,OAAOC,KAAK,MAAM,OAAO;AAEzB,MAAMC,SAAmB,GAAG,MAAM;EAChC,MAAM;IAAEC;EAAS,CAAC,GAAGH,eAAe,EAAE;EACtC,MAAMI,KAAK,GAAGD,QAAQ,CAAC,QAAQ,CAAC;EAChC,OAAOC,KAAK,gBAAG,oBAAC,KAAK;IAAC,IAAI,EAAC;EAAO,GAAEA,KAAK,CAAS,GAAG,IAAI;AAC3D,CAAC;AAED,eAAeF,SAAS"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
|
|
3
|
+
const isObject = value => typeof value === 'object' && !Array.isArray(value) && value !== null;
|
|
4
|
+
const DEFAULT_MESSAGE = 'Error';
|
|
5
|
+
const getErrorMessage = error => {
|
|
6
|
+
if (!isObject(error)) return DEFAULT_MESSAGE;
|
|
7
|
+
const {
|
|
8
|
+
source
|
|
9
|
+
} = error;
|
|
10
|
+
let {
|
|
11
|
+
message = DEFAULT_MESSAGE
|
|
12
|
+
} = error;
|
|
13
|
+
if (!isObject(source) || !Array.isArray(source.errors) || source.errors.length === 0) {
|
|
14
|
+
return message;
|
|
15
|
+
}
|
|
16
|
+
const firstError = source.errors[0];
|
|
17
|
+
if (!isObject(firstError)) {
|
|
18
|
+
return message;
|
|
19
|
+
}
|
|
20
|
+
message = firstError.message || message;
|
|
21
|
+
if (!isObject(firstError.extensions) || !isObject(firstError.extensions.constraints)) {
|
|
22
|
+
return message;
|
|
23
|
+
}
|
|
24
|
+
const constraintKeys = Object.keys(firstError.extensions.constraints);
|
|
25
|
+
if (constraintKeys.length === 0) {
|
|
26
|
+
return message;
|
|
27
|
+
}
|
|
28
|
+
const firstKey = constraintKeys[0];
|
|
29
|
+
const firstConstraint = firstError.extensions.constraints[firstKey];
|
|
30
|
+
if (!isObject(firstConstraint) || typeof firstConstraint.message !== 'string') {
|
|
31
|
+
return message;
|
|
32
|
+
}
|
|
33
|
+
return firstConstraint.message;
|
|
34
|
+
};
|
|
35
|
+
export default getErrorMessage;
|
|
36
|
+
//# sourceMappingURL=getErrorMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getErrorMessage.js","names":["isObject","value","Array","isArray","DEFAULT_MESSAGE","getErrorMessage","error","source","message","errors","length","firstError","extensions","constraints","constraintKeys","Object","keys","firstKey","firstConstraint"],"sources":["../../../src/lib/utils/getErrorMessage.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nconst isObject = (value: any) =>\n typeof value === 'object' && !Array.isArray(value) && value !== null;\n\nconst DEFAULT_MESSAGE = 'Error';\n\nconst getErrorMessage = (error: any) => {\n if (!isObject(error)) return DEFAULT_MESSAGE;\n\n const { source } = error;\n let { message = DEFAULT_MESSAGE } = error;\n if (\n !isObject(source) ||\n !Array.isArray(source.errors) ||\n source.errors.length === 0\n ) {\n return message;\n }\n\n const firstError = source.errors[0];\n if (!isObject(firstError)) {\n return message;\n }\n\n message = firstError.message || message;\n if (\n !isObject(firstError.extensions) ||\n !isObject(firstError.extensions.constraints)\n ) {\n return message;\n }\n\n const constraintKeys = Object.keys(firstError.extensions.constraints);\n if (constraintKeys.length === 0) {\n return message;\n }\n\n const firstKey = constraintKeys[0];\n const firstConstraint = firstError.extensions.constraints[firstKey];\n if (\n !isObject(firstConstraint) ||\n typeof firstConstraint.message !== 'string'\n ) {\n return message;\n }\n\n return firstConstraint.message;\n};\n\nexport default getErrorMessage;\n"],"mappings":"AAAA;;AAEA,MAAMA,QAA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AOA,eAAe,CAACV,OAAO,KAAK,QAAQ,EAC3C;IACA,OAAOA,OAAO;EAChB;EAEA,OAAOU,eAAe,CAACV,OAAO;AAChC,CAAC;AAED,eAAeH,eAAe"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
|
|
3
|
+
const NO_CONSTRAINTS = {};
|
|
4
|
+
export const getErrorConstraints = error => {
|
|
5
|
+
const e = error;
|
|
6
|
+
if (!e.source || !Array.isArray(e.source.errors) || e.source.errors.length === 0 || !e.source.errors[0].extensions || !e.source.errors[0].extensions.code) {
|
|
7
|
+
return NO_CONSTRAINTS;
|
|
8
|
+
}
|
|
9
|
+
if (e.source.errors[0].extensions.code !== 'BAD_ARGUMENTS') {
|
|
10
|
+
return NO_CONSTRAINTS;
|
|
11
|
+
}
|
|
12
|
+
return e.source.errors[0].extensions.constraints;
|
|
13
|
+
};
|
|
14
|
+
const handleFormErrors = (form, error) => {
|
|
15
|
+
const e = error;
|
|
16
|
+
if (!e.source || !Array.isArray(e.source.errors) || e.source.errors.length === 0 || !e.source.errors[0].extensions || !e.source.errors[0].extensions.code) {
|
|
17
|
+
form.errors.set('_error', e.message);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (e.source.errors[0].extensions.code === 'BAD_ARGUMENTS') {
|
|
21
|
+
const constraints = getErrorConstraints(error);
|
|
22
|
+
Object.entries(constraints).forEach(([fieldName, {
|
|
23
|
+
message
|
|
24
|
+
}]) => {
|
|
25
|
+
form.errors.set(fieldName, message);
|
|
26
|
+
});
|
|
27
|
+
} else {
|
|
28
|
+
form.errors.set('_error', e.source.errors[0].message);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export default handleFormErrors;
|
|
32
|
+
//# sourceMappingURL=handleFormErrors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleFormErrors.js","names":["NO_CONSTRAINTS","getErrorConstraints","error","e","source","Array","isArray","errors","length","extensions","code","constraints","handleFormErrors","form","set","message","Object","entries","forEach","fieldName"],"sources":["../../../src/lib/utils/handleFormErrors.ts"],"sourcesContent":["import { Form } from '@os-design/form';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\ninterface Constraint {\n name: string;\n message: string;\n}\n\nconst NO_CONSTRAINTS = {};\n\nexport const getErrorConstraints = (\n error: Error\n): Record<string, Constraint> => {\n const e = error as any;\n\n if (\n !e.source ||\n !Array.isArray(e.source.errors) ||\n e.source.errors.length === 0 ||\n !e.source.errors[0].extensions ||\n !e.source.errors[0].extensions.code\n ) {\n return NO_CONSTRAINTS;\n }\n if (e.source.errors[0].extensions.code !== 'BAD_ARGUMENTS') {\n return NO_CONSTRAINTS;\n }\n\n return e.source.errors[0].extensions.constraints;\n};\n\nconst handleFormErrors = (form: Form<any>, error: Error): void => {\n const e = error as any;\n\n if (\n !e.source ||\n !Array.isArray(e.source.errors) ||\n e.source.errors.length === 0 ||\n !e.source.errors[0].extensions ||\n !e.source.errors[0].extensions.code\n ) {\n form.errors.set('_error', e.message);\n return;\n }\n\n if (e.source.errors[0].extensions.code === 'BAD_ARGUMENTS') {\n const constraints = getErrorConstraints(error);\n Object.entries(constraints).forEach(([fieldName, { message }]) => {\n form.errors.set(fieldName, message);\n });\n } else {\n form.errors.set('_error', e.source.errors[0].message);\n }\n};\n\nexport default handleFormErrors;\n"],"mappings":"AAEA;;AAOA,MAAMA,cAAc,GAAG,CAAC,CAAC;AAEzB,OAAO,MAAMC,mBAAmB,GAC9BC,KAAY,IACmB;EAC/B,MAAMC,CAAC,GAAGD,KAAY;EAEtB,IACE,CAACC,CAAC,CAACC,MAAM,IACT,CAACC,KAAK,CAACC,OAAO,CAACH,CAAC,CAACC,MAAM,CAACG,MAAM,CAAC,IAC/BJ,CAAC,CAACC,MAAM,CAACG,MAAM,CAACC,MAAM,KAAK,CAAC,IAC5B,CAACL,CAAC,CAACC,MAAM,CAACG,MAAM,CAAC,CAAC,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,CAAC,CAAC;EACJ,CAAC,MAAM;IACLF,IAAI,CAACN,MAAM,CAACO,GAAG,CAAC,QAAQ,EAAEX,CAAC,CAACC,MAAM,CAACG,MAAM,CAAC,CAAC,CAAC,CAACQ,OAAO,CAAC;EACvD;AACF,CAAC;AAED,eAAeH,gBAAgB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawerProps } from '@os-design/core';
|
|
3
3
|
import { ProfileDrawerContentProps } from './ProfileDrawerContent';
|
|
4
|
-
export
|
|
4
|
+
export type ProfileDrawerProps = ProfileDrawerContentProps & DrawerProps;
|
|
5
5
|
declare const ProfileDrawer: React.FC<ProfileDrawerProps>;
|
|
6
6
|
export default ProfileDrawer;
|
|
7
7
|
//# sourceMappingURL=ProfileDrawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileDrawer.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/profile/ProfileDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAU,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAKnE,
|
|
1
|
+
{"version":3,"file":"ProfileDrawer.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/profile/ProfileDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAU,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAKnE,MAAM,MAAM,kBAAkB,GAAG,yBAAyB,GAAG,WAAW,CAAC;AAQzE,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAY/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileDrawerContent.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/profile/ProfileDrawerContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ProfileDrawerContent.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/profile/ProfileDrawerContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAgBtE,MAAM,WAAW,yBAAyB;IAKxC,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAI1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAkND,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAwC7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileUpdateNameModal.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/profile/ProfileUpdateNameModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProfileUpdateNameModal.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/profile/ProfileUpdateNameModal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAa/D,UAAU,2BAA2B;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA2FjE,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileUpdatePasswordModal.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/profile/ProfileUpdatePasswordModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProfileUpdatePasswordModal.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/profile/ProfileUpdatePasswordModal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAYtD,UAAU,+BAA+B;IACvC,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,+BAA+B,CA+FzE,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ConcreteRequest } from 'relay-runtime';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type ProfileDrawerContentSignOutMutation$variables = {};
|
|
3
|
+
export type ProfileDrawerContentSignOutMutation$data = {
|
|
4
4
|
readonly signOut: {
|
|
5
5
|
readonly ok: boolean;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type ProfileDrawerContentSignOutMutation = {
|
|
9
9
|
response: ProfileDrawerContentSignOutMutation$data;
|
|
10
10
|
variables: ProfileDrawerContentSignOutMutation$variables;
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileDrawerContentSignOutMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,
|
|
1
|
+
{"version":3,"file":"ProfileDrawerContentSignOutMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,MAAM,MAAM,6CAA6C,GAAG,EAAE,CAAC;AAC/D,MAAM,MAAM,wCAAwC,GAAG;IACrD,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;KACtB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,EAAE,wCAAwC,CAAC;IACnD,SAAS,EAAE,6CAA6C,CAAC;CAC1D,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,eA+CR,CAAC;AAIL,eAAe,IAAI,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ConcreteRequest } from 'relay-runtime';
|
|
2
|
-
export
|
|
2
|
+
export type UpdateAvatarInput = {
|
|
3
3
|
avatar?: any | null;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type ProfileDrawerContentUpdateAvatarMutation$variables = {
|
|
6
6
|
input: UpdateAvatarInput;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type ProfileDrawerContentUpdateAvatarMutation$data = {
|
|
9
9
|
readonly updateAvatar: {
|
|
10
10
|
readonly avatar: string | null;
|
|
11
11
|
readonly id: string;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type ProfileDrawerContentUpdateAvatarMutation = {
|
|
15
15
|
response: ProfileDrawerContentUpdateAvatarMutation$data;
|
|
16
16
|
variables: ProfileDrawerContentUpdateAvatarMutation$variables;
|
|
17
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileDrawerContentUpdateAvatarMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,
|
|
1
|
+
{"version":3,"file":"ProfileDrawerContentUpdateAvatarMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,kDAAkD,GAAG;IAC/D,KAAK,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AACF,MAAM,MAAM,6CAA6C,GAAG;IAC1D,QAAQ,CAAC,YAAY,EAAE;QACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAC/B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,wCAAwC,GAAG;IACrD,QAAQ,EAAE,6CAA6C,CAAC;IACxD,SAAS,EAAE,kDAAkD,CAAC;CAC/D,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,eAmER,CAAC;AAIL,eAAe,IAAI,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ConcreteRequest } from 'relay-runtime';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type ProfileDrawerSignOutMutation$variables = {};
|
|
3
|
+
export type ProfileDrawerSignOutMutation$data = {
|
|
4
4
|
readonly signOut: {
|
|
5
5
|
readonly ok: boolean;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type ProfileDrawerSignOutMutation = {
|
|
9
9
|
variables: ProfileDrawerSignOutMutation$variables;
|
|
10
10
|
response: ProfileDrawerSignOutMutation$data;
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileDrawerSignOutMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,
|
|
1
|
+
{"version":3,"file":"ProfileDrawerSignOutMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProfileDrawerSignOutMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,MAAM,MAAM,sCAAsC,GAAG,EAAE,CAAC;AACxD,MAAM,MAAM,iCAAiC,GAAG;IAC9C,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;KACtB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,EAAE,sCAAsC,CAAC;IAClD,QAAQ,EAAE,iCAAiC,CAAC;CAC7C,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,eA+CR,CAAC;AAIL,eAAe,IAAI,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ConcreteRequest } from 'relay-runtime';
|
|
2
|
-
export
|
|
2
|
+
export type UpdateAvatarInput = {
|
|
3
3
|
avatar?: any | null;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type ProfileDrawerUpdateAvatarMutation$variables = {
|
|
6
6
|
input: UpdateAvatarInput;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type ProfileDrawerUpdateAvatarMutation$data = {
|
|
9
9
|
readonly updateAvatar: {
|
|
10
10
|
readonly id: string;
|
|
11
11
|
readonly avatar: string | null;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type ProfileDrawerUpdateAvatarMutation = {
|
|
15
15
|
variables: ProfileDrawerUpdateAvatarMutation$variables;
|
|
16
16
|
response: ProfileDrawerUpdateAvatarMutation$data;
|
|
17
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileDrawerUpdateAvatarMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,
|
|
1
|
+
{"version":3,"file":"ProfileDrawerUpdateAvatarMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProfileDrawerUpdateAvatarMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,2CAA2C,GAAG;IACxD,KAAK,EAAE,iBAAiB,CAAC;CAC1B,CAAC;AACF,MAAM,MAAM,sCAAsC,GAAG;IACnD,QAAQ,CAAC,YAAY,EAAE;QACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;KAChC,CAAC;CACH,CAAC;AACF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,SAAS,EAAE,2CAA2C,CAAC;IACvD,QAAQ,EAAE,sCAAsC,CAAC;CAClD,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,eAmER,CAAC;AAIL,eAAe,IAAI,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ConcreteRequest } from 'relay-runtime';
|
|
2
|
-
export
|
|
2
|
+
export type UpdateProfileInput = {
|
|
3
3
|
firstName?: string | null;
|
|
4
4
|
lastName?: string | null;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type ProfileUpdateNameModalMutation$variables = {
|
|
7
7
|
input: UpdateProfileInput;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type ProfileUpdateNameModalMutation$data = {
|
|
10
10
|
readonly updateProfile: {
|
|
11
11
|
readonly firstName: string | null;
|
|
12
12
|
readonly lastName: string | null;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type ProfileUpdateNameModalMutation = {
|
|
16
16
|
response: ProfileUpdateNameModalMutation$data;
|
|
17
17
|
variables: ProfileUpdateNameModalMutation$variables;
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileUpdateNameModalMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,
|
|
1
|
+
{"version":3,"file":"ProfileUpdateNameModalMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,CAAC;AACF,MAAM,MAAM,wCAAwC,GAAG;IACrD,KAAK,EAAE,kBAAkB,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,CAAC,aAAa,EAAE;QACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAClC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KAClC,CAAC;CACH,CAAC;AACF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,EAAE,mCAAmC,CAAC;IAC9C,SAAS,EAAE,wCAAwC,CAAC;CACrD,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,eA0FR,CAAC;AAIL,eAAe,IAAI,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ConcreteRequest } from 'relay-runtime';
|
|
2
|
-
export
|
|
2
|
+
export type UpdatePasswordInput = {
|
|
3
3
|
currentPassword: string;
|
|
4
4
|
password: string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type ProfileUpdatePasswordModalMutation$variables = {
|
|
7
7
|
input: UpdatePasswordInput;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type ProfileUpdatePasswordModalMutation$data = {
|
|
10
10
|
readonly updatePassword: {
|
|
11
11
|
readonly id: string;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type ProfileUpdatePasswordModalMutation = {
|
|
15
15
|
response: ProfileUpdatePasswordModalMutation$data;
|
|
16
16
|
variables: ProfileUpdatePasswordModalMutation$variables;
|
|
17
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileUpdatePasswordModalMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,
|
|
1
|
+
{"version":3,"file":"ProfileUpdatePasswordModalMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,MAAM,MAAM,mBAAmB,GAAG;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AACF,MAAM,MAAM,4CAA4C,GAAG;IACzD,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,uCAAuC,GAAG;IACpD,QAAQ,CAAC,cAAc,EAAE;QACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;KACrB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,kCAAkC,GAAG;IAC/C,QAAQ,EAAE,uCAAuC,CAAC;IAClD,SAAS,EAAE,4CAA4C,CAAC;CACzD,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,eA4DR,CAAC;AAIL,eAAe,IAAI,CAAC"}
|
package/dist/types/src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConcreteRequest } from 'relay-runtime';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type ProtectedWrapperQuery$variables = {};
|
|
3
|
+
export type ProtectedWrapperQuery$data = {
|
|
4
4
|
readonly profile: {
|
|
5
5
|
readonly avatar: string | null;
|
|
6
6
|
readonly email: string;
|
|
@@ -9,7 +9,7 @@ export declare type ProtectedWrapperQuery$data = {
|
|
|
9
9
|
readonly lastName: string | null;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type ProtectedWrapperQuery = {
|
|
13
13
|
response: ProtectedWrapperQuery$data;
|
|
14
14
|
variables: ProtectedWrapperQuery$variables;
|
|
15
15
|
};
|
package/dist/types/src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProtectedWrapperQuery.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAS,MAAM,eAAe,CAAC;AACvD,
|
|
1
|
+
{"version":3,"file":"ProtectedWrapperQuery.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAS,MAAM,eAAe,CAAC;AACvD,MAAM,MAAM,+BAA+B,GAAG,EAAE,CAAC;AACjD,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,OAAO,EAAE;QAChB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;KAClC,CAAC;CACH,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,0BAA0B,CAAC;IACrC,SAAS,EAAE,+BAA+B,CAAC;CAC5C,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,eA2ER,CAAC;AAIL,eAAe,IAAI,CAAC"}
|
package/dist/types/src/lib/components/session/__generated__/SessionDrawerContentQuery.graphql.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ConcreteRequest } from 'relay-runtime';
|
|
2
2
|
import { FragmentRefs } from "relay-runtime";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type SessionDrawerContentQuery$variables = {};
|
|
4
|
+
export type SessionDrawerContentQuery$data = {
|
|
5
5
|
readonly " $fragmentSpreads": FragmentRefs<"SessionList_sessions">;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type SessionDrawerContentQuery = {
|
|
8
8
|
response: SessionDrawerContentQuery$data;
|
|
9
9
|
variables: SessionDrawerContentQuery$variables;
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionDrawerContentQuery.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/session/__generated__/SessionDrawerContentQuery.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAS,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,
|
|
1
|
+
{"version":3,"file":"SessionDrawerContentQuery.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/session/__generated__/SessionDrawerContentQuery.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAS,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,MAAM,MAAM,mCAAmC,GAAG,EAAE,CAAC;AACrD,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,CAAC,mBAAmB,EAAE,YAAY,CAAC,sBAAsB,CAAC,CAAC;CACpE,CAAC;AACF,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,8BAA8B,CAAC;IACzC,SAAS,EAAE,mCAAmC,CAAC;CAChD,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,eA2JX,CAAC;AAIF,eAAe,IAAI,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ConcreteRequest } from 'relay-runtime';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type SessionListDestroyAllOtherSessionsMutation$variables = {};
|
|
3
|
+
export type SessionListDestroyAllOtherSessionsMutation$data = {
|
|
4
4
|
readonly destroyAllOtherSessions: {
|
|
5
5
|
readonly ok: boolean;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type SessionListDestroyAllOtherSessionsMutation = {
|
|
9
9
|
response: SessionListDestroyAllOtherSessionsMutation$data;
|
|
10
10
|
variables: SessionListDestroyAllOtherSessionsMutation$variables;
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionListDestroyAllOtherSessionsMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,
|
|
1
|
+
{"version":3,"file":"SessionListDestroyAllOtherSessionsMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,MAAM,MAAM,oDAAoD,GAAG,EAAE,CAAC;AACtE,MAAM,MAAM,+CAA+C,GAAG;IAC5D,QAAQ,CAAC,uBAAuB,EAAE;QAChC,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;KACtB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,0CAA0C,GAAG;IACvD,QAAQ,EAAE,+CAA+C,CAAC;IAC1D,SAAS,EAAE,oDAAoD,CAAC;CACjE,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,eA+CR,CAAC;AAIL,eAAe,IAAI,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ConcreteRequest } from 'relay-runtime';
|
|
2
|
-
export
|
|
2
|
+
export type DestroySessionInput = {
|
|
3
3
|
id: string;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type SessionListItemDestroySessionMutation$variables = {
|
|
6
6
|
input: DestroySessionInput;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type SessionListItemDestroySessionMutation$data = {
|
|
9
9
|
readonly destroySession: {
|
|
10
10
|
readonly ok: boolean;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type SessionListItemDestroySessionMutation = {
|
|
14
14
|
response: SessionListItemDestroySessionMutation$data;
|
|
15
15
|
variables: SessionListItemDestroySessionMutation$variables;
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionListItemDestroySessionMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,
|
|
1
|
+
{"version":3,"file":"SessionListItemDestroySessionMutation.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAY,MAAM,eAAe,CAAC;AAC1D,MAAM,MAAM,mBAAmB,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AACF,MAAM,MAAM,+CAA+C,GAAG;IAC5D,KAAK,EAAE,mBAAmB,CAAC;CAC5B,CAAC;AACF,MAAM,MAAM,0CAA0C,GAAG;IACvD,QAAQ,CAAC,cAAc,EAAE;QACvB,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;KACtB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,qCAAqC,GAAG;IAClD,QAAQ,EAAE,0CAA0C,CAAC;IACrD,SAAS,EAAE,+CAA+C,CAAC;CAC5D,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,eA4DR,CAAC;AAIL,eAAe,IAAI,CAAC"}
|
package/dist/types/src/lib/components/session/__generated__/SessionListItem_session.graphql.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReaderFragment } from 'relay-runtime';
|
|
2
2
|
import { FragmentRefs } from "relay-runtime";
|
|
3
|
-
export
|
|
3
|
+
export type SessionListItem_session$data = {
|
|
4
4
|
readonly browserName: string | null;
|
|
5
5
|
readonly browserVersion: string | null;
|
|
6
6
|
readonly city: string | null;
|
|
@@ -18,7 +18,7 @@ export declare type SessionListItem_session$data = {
|
|
|
18
18
|
readonly osVersion: string | null;
|
|
19
19
|
readonly " $fragmentType": "SessionListItem_session";
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type SessionListItem_session$key = {
|
|
22
22
|
readonly " $data"?: SessionListItem_session$data;
|
|
23
23
|
readonly " $fragmentSpreads": FragmentRefs<"SessionListItem_session">;
|
|
24
24
|
};
|
package/dist/types/src/lib/components/session/__generated__/SessionListItem_session.graphql.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionListItem_session.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/session/__generated__/SessionListItem_session.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAY,cAAc,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,
|
|
1
|
+
{"version":3,"file":"SessionListItem_session.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/session/__generated__/SessionListItem_session.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAY,cAAc,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,gBAAgB,EAAE,yBAAyB,CAAC;CACtD,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,QAAQ,CAAC,EAAE,4BAA4B,CAAC;IACjD,QAAQ,CAAC,mBAAmB,EAAE,YAAY,CAAC,yBAAyB,CAAC,CAAC;CACvE,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,cAkHX,CAAC;AAIF,eAAe,IAAI,CAAC"}
|
package/dist/types/src/lib/components/session/__generated__/SessionListRefetchQuery.graphql.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ConcreteRequest } from 'relay-runtime';
|
|
2
2
|
import { FragmentRefs } from "relay-runtime";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type SessionListRefetchQuery$variables = {};
|
|
4
|
+
export type SessionListRefetchQuery$data = {
|
|
5
5
|
readonly " $fragmentSpreads": FragmentRefs<"SessionList_sessions">;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type SessionListRefetchQuery = {
|
|
8
8
|
response: SessionListRefetchQuery$data;
|
|
9
9
|
variables: SessionListRefetchQuery$variables;
|
|
10
10
|
};
|
package/dist/types/src/lib/components/session/__generated__/SessionListRefetchQuery.graphql.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionListRefetchQuery.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/session/__generated__/SessionListRefetchQuery.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAS,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,
|
|
1
|
+
{"version":3,"file":"SessionListRefetchQuery.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/session/__generated__/SessionListRefetchQuery.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,eAAe,EAAS,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,MAAM,MAAM,iCAAiC,GAAG,EAAE,CAAC;AACnD,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,CAAC,mBAAmB,EAAE,YAAY,CAAC,sBAAsB,CAAC,CAAC;CACpE,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,EAAE,4BAA4B,CAAC;IACvC,SAAS,EAAE,iCAAiC,CAAC;CAC9C,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,eA2JX,CAAC;AAIF,eAAe,IAAI,CAAC"}
|
package/dist/types/src/lib/components/session/__generated__/SessionList_sessions.graphql.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReaderFragment } from 'relay-runtime';
|
|
2
2
|
import { FragmentRefs } from "relay-runtime";
|
|
3
|
-
export
|
|
3
|
+
export type SessionList_sessions$data = {
|
|
4
4
|
readonly sessions: ReadonlyArray<{
|
|
5
5
|
readonly current: boolean;
|
|
6
6
|
readonly id: string;
|
|
@@ -9,7 +9,7 @@ export declare type SessionList_sessions$data = {
|
|
|
9
9
|
}>;
|
|
10
10
|
readonly " $fragmentType": "SessionList_sessions";
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type SessionList_sessions$key = {
|
|
13
13
|
readonly " $data"?: SessionList_sessions$data;
|
|
14
14
|
readonly " $fragmentSpreads": FragmentRefs<"SessionList_sessions">;
|
|
15
15
|
};
|
package/dist/types/src/lib/components/session/__generated__/SessionList_sessions.graphql.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionList_sessions.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/session/__generated__/SessionList_sessions.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAuB,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,
|
|
1
|
+
{"version":3,"file":"SessionList_sessions.graphql.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/components/session/__generated__/SessionList_sessions.graphql.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAuB,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC;QAC/B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;QAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;QAC5B,QAAQ,CAAC,mBAAmB,EAAE,YAAY,CAAC,yBAAyB,CAAC,CAAC;KACvE,CAAC,CAAC;IACH,QAAQ,CAAC,gBAAgB,EAAE,sBAAsB,CAAC;CACnD,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IAC9C,QAAQ,CAAC,mBAAmB,EAAE,YAAY,CAAC,sBAAsB,CAAC,CAAC;CACpE,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,cAoDX,CAAC;AAIF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorResult.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/shared/ErrorResult.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ErrorResult.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/shared/ErrorResult.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,gBAAgB;IACxB,KAAK,EAAE,KAAK,CAAC;CACd;AAMD,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAU3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormError.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/shared/FormError.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAItB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getErrorMessage.d.ts","sourceRoot":"","sources":["../../../../../src/lib/utils/getErrorMessage.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,eAAe,UAAW,GAAG,QAyClC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|