@its/core 1.1.24 → 1.1.26

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.
@@ -1,2 +1 @@
1
- export { default as useAuth } from './useAuth';
2
1
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAuth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useAuth/index.ts"],"names":[],"mappings":""}
@@ -1,10 +1,16 @@
1
1
  import { GraphQLTaggedNode } from 'relay-runtime';
2
- export declare const AuthContext: import('react').Context<[boolean, import('../../hooks/useAuth/types').ErrorFragmentType[], import('../../hooks/useAuth/types').AuthActions] | null>;
2
+ import { AuthActions, ErrorFragmentType } from '../../hooks/useAuth/types';
3
+ type useAuthType = (args: {
4
+ LoginMutation: GraphQLTaggedNode;
5
+ LogoutMutation: GraphQLTaggedNode;
6
+ }) => [boolean, ErrorFragmentType[], AuthActions];
3
7
  type AuthProviderProps = {
4
8
  LoginMutation: GraphQLTaggedNode;
5
9
  LogoutMutation: GraphQLTaggedNode;
6
10
  children?: React.ReactNode;
11
+ useAuth: useAuthType;
7
12
  };
8
- export default function AuthProvider({ children, LoginMutation, LogoutMutation, }: AuthProviderProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare const AuthContext: import('react').Context<[boolean, ErrorFragmentType[], AuthActions] | null>;
14
+ export default function AuthProvider({ children, LoginMutation, LogoutMutation, useAuth, }: AuthProviderProps): import("react/jsx-runtime").JSX.Element;
9
15
  export {};
10
16
  //# sourceMappingURL=AuthProvider.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"AuthProvider.d.ts","sourceRoot":"","sources":["../../../../src/store/AuthContext/AuthProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE3E,KAAK,WAAW,GAAG,CAAC,IAAI,EAAE;IACxB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;CACnC,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,CAAC,CAAC;AAElD,KAAK,iBAAiB,GAAG;IACvB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,WAAW,6EAAsD,CAAC;AAE/E,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,QAAQ,EACR,aAAa,EACb,cAAc,EACd,OAAO,GACR,EAAE,iBAAiB,2CAWnB"}
@@ -1,2 +1 @@
1
- export { default as useAuth } from './useAuth';
2
1
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAuth/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAuth/index.ts"],"names":[],"mappings":""}
@@ -1,10 +1,16 @@
1
1
  import { GraphQLTaggedNode } from 'relay-runtime';
2
- export declare const AuthContext: import("react").Context<[boolean, import("../../hooks/useAuth/types").ErrorFragmentType[], import("../../hooks/useAuth/types").AuthActions] | null>;
2
+ import { AuthActions, ErrorFragmentType } from '../../hooks/useAuth/types';
3
+ type useAuthType = (args: {
4
+ LoginMutation: GraphQLTaggedNode;
5
+ LogoutMutation: GraphQLTaggedNode;
6
+ }) => [boolean, ErrorFragmentType[], AuthActions];
3
7
  type AuthProviderProps = {
4
8
  LoginMutation: GraphQLTaggedNode;
5
9
  LogoutMutation: GraphQLTaggedNode;
6
10
  children?: React.ReactNode;
11
+ useAuth: useAuthType;
7
12
  };
8
- export default function AuthProvider({ children, LoginMutation, LogoutMutation, }: AuthProviderProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare const AuthContext: import("react").Context<[boolean, ErrorFragmentType[], AuthActions] | null>;
14
+ export default function AuthProvider({ children, LoginMutation, LogoutMutation, useAuth, }: AuthProviderProps): import("react/jsx-runtime").JSX.Element;
9
15
  export {};
10
16
  //# sourceMappingURL=AuthProvider.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"AuthProvider.d.ts","sourceRoot":"","sources":["../../../../../src/store/AuthContext/AuthProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE3E,KAAK,WAAW,GAAG,CAAC,IAAI,EAAE;IACxB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;CACnC,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,EAAE,WAAW,CAAC,CAAC;AAElD,KAAK,iBAAiB,GAAG;IACvB,aAAa,EAAE,iBAAiB,CAAC;IACjC,cAAc,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,WAAW,6EAAsD,CAAC;AAE/E,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,QAAQ,EACR,aAAa,EACb,cAAc,EACd,OAAO,GACR,EAAE,iBAAiB,2CAWnB"}