@its/core 1.1.22 → 1.1.24
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/core.es.js +5287 -5312
- package/dist/core.umd.js +54 -83
- package/dist/src/hooks/useAuth/types.d.ts +40 -3
- package/dist/src/hooks/useAuth/types.d.ts.map +1 -1
- package/dist/src/hooks/useAuth/useAuth.d.ts +7 -1
- package/dist/src/hooks/useAuth/useAuth.d.ts.map +1 -1
- package/dist/src/main.d.ts +0 -1
- package/dist/src/main.d.ts.map +1 -1
- package/dist/src/store/AuthContext/AuthProvider.d.ts +7 -2
- package/dist/src/store/AuthContext/AuthProvider.d.ts.map +1 -1
- package/dist/types/src/hooks/useAuth/types.d.ts +40 -3
- package/dist/types/src/hooks/useAuth/types.d.ts.map +1 -1
- package/dist/types/src/hooks/useAuth/useAuth.d.ts +7 -1
- package/dist/types/src/hooks/useAuth/useAuth.d.ts.map +1 -1
- package/dist/types/src/main.d.ts +0 -1
- package/dist/types/src/main.d.ts.map +1 -1
- package/dist/types/src/store/AuthContext/AuthProvider.d.ts +7 -2
- package/dist/types/src/store/AuthContext/AuthProvider.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/graphQL/Fragments/Error.d.ts +0 -2
- package/dist/src/graphQL/Fragments/Error.d.ts.map +0 -1
- package/dist/src/graphQL/Fragments/index.d.ts +0 -2
- package/dist/src/graphQL/Fragments/index.d.ts.map +0 -1
- package/dist/src/graphQL/Mutations/Login.d.ts +0 -2
- package/dist/src/graphQL/Mutations/Login.d.ts.map +0 -1
- package/dist/src/graphQL/Mutations/Logout.d.ts +0 -2
- package/dist/src/graphQL/Mutations/Logout.d.ts.map +0 -1
- package/dist/src/graphQL/Mutations/index.d.ts +0 -3
- package/dist/src/graphQL/Mutations/index.d.ts.map +0 -1
- package/dist/src/graphQL/Subscriptions/DeletedNode.d.ts +0 -2
- package/dist/src/graphQL/Subscriptions/DeletedNode.d.ts.map +0 -1
- package/dist/src/graphQL/Subscriptions/index.d.ts +0 -2
- package/dist/src/graphQL/Subscriptions/index.d.ts.map +0 -1
- package/dist/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts +0 -12
- package/dist/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts.map +0 -1
- package/dist/src/graphQL/__generated__/ErrorFragment.graphql.d.ts +0 -13
- package/dist/src/graphQL/__generated__/ErrorFragment.graphql.d.ts.map +0 -1
- package/dist/src/graphQL/__generated__/LoginMutation.graphql.d.ts +0 -33
- package/dist/src/graphQL/__generated__/LoginMutation.graphql.d.ts.map +0 -1
- package/dist/src/graphQL/__generated__/LogoutMutation.graphql.d.ts +0 -14
- package/dist/src/graphQL/__generated__/LogoutMutation.graphql.d.ts.map +0 -1
- package/dist/src/graphQL/index.d.ts +0 -8
- package/dist/src/graphQL/index.d.ts.map +0 -1
- package/dist/types/src/graphQL/Fragments/Error.d.ts +0 -2
- package/dist/types/src/graphQL/Fragments/Error.d.ts.map +0 -1
- package/dist/types/src/graphQL/Fragments/index.d.ts +0 -2
- package/dist/types/src/graphQL/Fragments/index.d.ts.map +0 -1
- package/dist/types/src/graphQL/Mutations/Login.d.ts +0 -2
- package/dist/types/src/graphQL/Mutations/Login.d.ts.map +0 -1
- package/dist/types/src/graphQL/Mutations/Logout.d.ts +0 -2
- package/dist/types/src/graphQL/Mutations/Logout.d.ts.map +0 -1
- package/dist/types/src/graphQL/Mutations/index.d.ts +0 -3
- package/dist/types/src/graphQL/Mutations/index.d.ts.map +0 -1
- package/dist/types/src/graphQL/Subscriptions/DeletedNode.d.ts +0 -2
- package/dist/types/src/graphQL/Subscriptions/DeletedNode.d.ts.map +0 -1
- package/dist/types/src/graphQL/Subscriptions/index.d.ts +0 -2
- package/dist/types/src/graphQL/Subscriptions/index.d.ts.map +0 -1
- package/dist/types/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts +0 -17
- package/dist/types/src/graphQL/__generated__/DeletedNodeSubscription.graphql.d.ts.map +0 -1
- package/dist/types/src/graphQL/__generated__/ErrorFragment.graphql.d.ts +0 -19
- package/dist/types/src/graphQL/__generated__/ErrorFragment.graphql.d.ts.map +0 -1
- package/dist/types/src/graphQL/__generated__/LoginMutation.graphql.d.ts +0 -38
- package/dist/types/src/graphQL/__generated__/LoginMutation.graphql.d.ts.map +0 -1
- package/dist/types/src/graphQL/__generated__/LogoutMutation.graphql.d.ts +0 -19
- package/dist/types/src/graphQL/__generated__/LogoutMutation.graphql.d.ts.map +0 -1
- package/dist/types/src/graphQL/index.d.ts +0 -8
- package/dist/types/src/graphQL/index.d.ts.map +0 -1
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { LoginMutation, LoginMutation$variables } from '../../graphQL/__generated__/LoginMutation.graphql';
|
|
2
|
-
import { LogoutMutation } from '../../graphQL/__generated__/LogoutMutation.graphql';
|
|
3
1
|
export type LoginType = [(formData: FormData) => void, boolean];
|
|
4
2
|
export type LogoutType = [() => void, pending: boolean];
|
|
5
3
|
export type AuthActions = {
|
|
@@ -7,11 +5,50 @@ export type AuthActions = {
|
|
|
7
5
|
logout: LogoutType;
|
|
8
6
|
removeError: (index: number) => void;
|
|
9
7
|
};
|
|
10
|
-
|
|
8
|
+
type LoginMutation$data = {
|
|
9
|
+
readonly authMutation: {
|
|
10
|
+
readonly login: {
|
|
11
|
+
readonly errors: ReadonlyArray<{
|
|
12
|
+
readonly code: string;
|
|
13
|
+
readonly description: string;
|
|
14
|
+
}>;
|
|
15
|
+
readonly expires: any | null | undefined;
|
|
16
|
+
readonly token: string | null | undefined;
|
|
17
|
+
readonly username: string | null | undefined;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export type InputAuthenticationRequest = {
|
|
22
|
+
captchaValue?: string | null | undefined;
|
|
23
|
+
client_id?: string | null | undefined;
|
|
24
|
+
grant_type?: string | null | undefined;
|
|
25
|
+
newPassword?: string | null | undefined;
|
|
26
|
+
password?: string | null | undefined;
|
|
27
|
+
rFID?: string | null | undefined;
|
|
28
|
+
username?: string | null | undefined;
|
|
29
|
+
};
|
|
30
|
+
type LoginMutation$variables = {
|
|
31
|
+
credentials: InputAuthenticationRequest;
|
|
32
|
+
};
|
|
33
|
+
export type LoginMutationType = {
|
|
34
|
+
response: LoginMutation$data;
|
|
35
|
+
variables: LoginMutation$variables;
|
|
36
|
+
};
|
|
37
|
+
export type LogoutMutation$data = {
|
|
38
|
+
readonly authMutation: {
|
|
39
|
+
readonly logout: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type LogoutMutation$variables = Record<PropertyKey, never>;
|
|
43
|
+
export type LogoutMutation = {
|
|
44
|
+
response: LogoutMutation$data;
|
|
45
|
+
variables: LogoutMutation$variables;
|
|
46
|
+
};
|
|
11
47
|
export type LogoutMutationType = LogoutMutation;
|
|
12
48
|
export type LoginMutationVariables = LoginMutation$variables;
|
|
13
49
|
export type ErrorFragmentType = {
|
|
14
50
|
code: string;
|
|
15
51
|
description: string;
|
|
16
52
|
};
|
|
53
|
+
export {};
|
|
17
54
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAuth/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAuth/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,EAAE,OAAO,CAAC,CAAC;AAChE,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,UAAU,CAAC;IACnB,WAAW,EAAE,CAAC,KAAK,EAAE,MA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B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;KACzB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAElE,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,SAAS,EAAE,wBAAwB,CAAC;CACrC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAChD,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAC7D,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { GraphQLTaggedNode } from 'react-relay';
|
|
1
2
|
import { AuthActions, ErrorFragmentType } from './types';
|
|
2
|
-
|
|
3
|
+
type useAuthProps = {
|
|
4
|
+
LoginMutation: GraphQLTaggedNode;
|
|
5
|
+
LogoutMutation: GraphQLTaggedNode;
|
|
6
|
+
};
|
|
7
|
+
export default function useAuth({ LoginMutation, LogoutMutation, }: useAuthProps): [boolean, ErrorFragmentType[], AuthActions];
|
|
8
|
+
export {};
|
|
3
9
|
//# sourceMappingURL=useAuth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAuth/useAuth.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAuth/useAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAe,MAAM,aAAa,CAAC;AAE7D,OAAO,EACL,WAAW,EAGX,iBAAiB,EAIlB,MAAM,SAAS,CAAC;AAIjB,KAAK,YAAY,GAAG;IAClB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;CACnC,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,aAAa,EACb,cAAc,GACf,EAAE,YAAY,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,CAAC,CAwE5D"}
|
package/dist/src/main.d.ts
CHANGED
package/dist/src/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { GraphQLTaggedNode } from 'relay-runtime';
|
|
1
2
|
export declare const AuthContext: import('react').Context<[boolean, import('../../hooks/useAuth/types').ErrorFragmentType[], import('../../hooks/useAuth/types').AuthActions] | null>;
|
|
2
|
-
|
|
3
|
+
type AuthProviderProps = {
|
|
4
|
+
LoginMutation: GraphQLTaggedNode;
|
|
5
|
+
LogoutMutation: GraphQLTaggedNode;
|
|
3
6
|
children?: React.ReactNode;
|
|
4
|
-
}
|
|
7
|
+
};
|
|
8
|
+
export default function AuthProvider({ children, LoginMutation, LogoutMutation, }: AuthProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
5
10
|
//# sourceMappingURL=AuthProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthProvider.d.ts","sourceRoot":"","sources":["../../../../src/store/AuthContext/AuthProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthProvider.d.ts","sourceRoot":"","sources":["../../../../src/store/AuthContext/AuthProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,WAAW,qJAAyD,CAAC;AAElF,KAAK,iBAAiB,GAAG;IACvB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,QAAQ,EACR,aAAa,EACb,cAAc,GACf,EAAE,iBAAiB,2CAWnB"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { LoginMutation, LoginMutation$variables } from '../../graphQL/__generated__/LoginMutation.graphql';
|
|
2
|
-
import { LogoutMutation } from '../../graphQL/__generated__/LogoutMutation.graphql';
|
|
3
1
|
export type LoginType = [(formData: FormData) => void, boolean];
|
|
4
2
|
export type LogoutType = [() => void, pending: boolean];
|
|
5
3
|
export type AuthActions = {
|
|
@@ -7,11 +5,50 @@ export type AuthActions = {
|
|
|
7
5
|
logout: LogoutType;
|
|
8
6
|
removeError: (index: number) => void;
|
|
9
7
|
};
|
|
10
|
-
|
|
8
|
+
type LoginMutation$data = {
|
|
9
|
+
readonly authMutation: {
|
|
10
|
+
readonly login: {
|
|
11
|
+
readonly errors: ReadonlyArray<{
|
|
12
|
+
readonly code: string;
|
|
13
|
+
readonly description: string;
|
|
14
|
+
}>;
|
|
15
|
+
readonly expires: any | null | undefined;
|
|
16
|
+
readonly token: string | null | undefined;
|
|
17
|
+
readonly username: string | null | undefined;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export type InputAuthenticationRequest = {
|
|
22
|
+
captchaValue?: string | null | undefined;
|
|
23
|
+
client_id?: string | null | undefined;
|
|
24
|
+
grant_type?: string | null | undefined;
|
|
25
|
+
newPassword?: string | null | undefined;
|
|
26
|
+
password?: string | null | undefined;
|
|
27
|
+
rFID?: string | null | undefined;
|
|
28
|
+
username?: string | null | undefined;
|
|
29
|
+
};
|
|
30
|
+
type LoginMutation$variables = {
|
|
31
|
+
credentials: InputAuthenticationRequest;
|
|
32
|
+
};
|
|
33
|
+
export type LoginMutationType = {
|
|
34
|
+
response: LoginMutation$data;
|
|
35
|
+
variables: LoginMutation$variables;
|
|
36
|
+
};
|
|
37
|
+
export type LogoutMutation$data = {
|
|
38
|
+
readonly authMutation: {
|
|
39
|
+
readonly logout: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type LogoutMutation$variables = Record<PropertyKey, never>;
|
|
43
|
+
export type LogoutMutation = {
|
|
44
|
+
response: LogoutMutation$data;
|
|
45
|
+
variables: LogoutMutation$variables;
|
|
46
|
+
};
|
|
11
47
|
export type LogoutMutationType = LogoutMutation;
|
|
12
48
|
export type LoginMutationVariables = LoginMutation$variables;
|
|
13
49
|
export type ErrorFragmentType = {
|
|
14
50
|
code: string;
|
|
15
51
|
description: string;
|
|
16
52
|
};
|
|
53
|
+
export {};
|
|
17
54
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAu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C,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,WAAW,EAAE,0BAA0B,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,SAAS,EAAE,uBAAuB,CAAC;CACpC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,YAAY,EAAE;QACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;KACzB,CAAC;CACH,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;AAElE,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,SAAS,EAAE,wBAAwB,CAAC;CACrC,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAChD,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,CAAC;AAC7D,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { GraphQLTaggedNode } from 'react-relay';
|
|
1
2
|
import { AuthActions, ErrorFragmentType } from './types';
|
|
2
|
-
|
|
3
|
+
type useAuthProps = {
|
|
4
|
+
LoginMutation: GraphQLTaggedNode;
|
|
5
|
+
LogoutMutation: GraphQLTaggedNode;
|
|
6
|
+
};
|
|
7
|
+
export default function useAuth({ LoginMutation, LogoutMutation, }: useAuthProps): [boolean, ErrorFragmentType[], AuthActions];
|
|
8
|
+
export {};
|
|
3
9
|
//# sourceMappingURL=useAuth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAuth/useAuth.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAuth.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAuth/useAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAe,MAAM,aAAa,CAAC;AAE7D,OAAO,EACL,WAAW,EAGX,iBAAiB,EAIlB,MAAM,SAAS,CAAC;AAIjB,KAAK,YAAY,GAAG;IAClB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;CACnC,CAAC;AACF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,aAAa,EACb,cAAc,GACf,EAAE,YAAY,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,CAAC,CAwE5D"}
|
package/dist/types/src/main.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import { GraphQLTaggedNode } from 'relay-runtime';
|
|
1
2
|
export declare const AuthContext: import("react").Context<[boolean, import("../../hooks/useAuth/types").ErrorFragmentType[], import("../../hooks/useAuth/types").AuthActions] | null>;
|
|
2
|
-
|
|
3
|
+
type AuthProviderProps = {
|
|
4
|
+
LoginMutation: GraphQLTaggedNode;
|
|
5
|
+
LogoutMutation: GraphQLTaggedNode;
|
|
3
6
|
children?: React.ReactNode;
|
|
4
|
-
}
|
|
7
|
+
};
|
|
8
|
+
export default function AuthProvider({ children, LoginMutation, LogoutMutation, }: AuthProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
5
10
|
//# sourceMappingURL=AuthProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthProvider.d.ts","sourceRoot":"","sources":["../../../../../src/store/AuthContext/AuthProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AuthProvider.d.ts","sourceRoot":"","sources":["../../../../../src/store/AuthContext/AuthProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,WAAW,qJAAyD,CAAC;AAElF,KAAK,iBAAiB,GAAG;IACvB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,QAAQ,EACR,aAAa,EACb,cAAc,GACf,EAAE,iBAAiB,2CAWnB"}
|