@feathery/react 1.0.597 → 1.0.598

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,4 +1,6 @@
1
+ import React from 'react';
1
2
  import { Props as FormProps } from '../Form';
3
+ export declare const AuthContext: React.Context<any>;
2
4
  export declare const authState: {
3
5
  client: any;
4
6
  authEmail: string;
@@ -11,7 +13,7 @@ export declare const authState: {
11
13
  onLogin: () => void;
12
14
  onLogout: () => void;
13
15
  };
14
- declare const LoginProvider: ({ authId: authIdProp, formProps, loader, loginPath, onLogin, onLogout, onClientReady, children }: {
16
+ declare const LoginForm: ({ authId: authIdProp, formProps, loader, loginPath, onLogin, onLogout, onClientReady, children }: {
15
17
  authId?: string | undefined;
16
18
  formProps: FormProps;
17
19
  loader?: JSX.Element | undefined;
@@ -20,6 +22,6 @@ declare const LoginProvider: ({ authId: authIdProp, formProps, loader, loginPath
20
22
  onLogout?: (() => void) | undefined;
21
23
  onClientReady?: ((authClient: any) => void) | undefined;
22
24
  children?: JSX.Element | undefined;
23
- }) => import("@emotion/react/jsx-runtime").JSX.Element | null;
24
- export default LoginProvider;
25
- //# sourceMappingURL=LoginProvider.d.ts.map
25
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
26
+ export default LoginForm;
27
+ //# sourceMappingURL=LoginForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../src/auth/LoginForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EAAU,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC;AAqBrD,eAAO,MAAM,WAAW,oBAA2B,CAAC;AAEpD,eAAO,MAAM,SAAS;;;;;;;uBASD,MAAM;2BAGF,GAAG;;;CAK3B,CAAC;AAEF,QAAA,MAAM,SAAS;;eAWF,SAAS;;;qBAGJ,IAAI;sBACH,IAAI;kCACQ,GAAG,KAAK,IAAI;;sDAsI1C,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const useAuthClient: () => any;
2
+ export default useAuthClient;
3
+ //# sourceMappingURL=useAuthClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAuthClient.d.ts","sourceRoot":"","sources":["../../src/auth/useAuthClient.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,aAAa,WAAgC,CAAC;AAEpD,eAAe,aAAa,CAAC"}
package/dist/index.d.ts CHANGED
@@ -4,7 +4,8 @@ import Form, { Props as FormProps } from './Form';
4
4
  import { init, updateUserId, setValues } from './utils/init';
5
5
  import { OPERATOR_CODE } from './utils/logic';
6
6
  import { FormContext } from './types/Form';
7
- import LoginProvider from './auth/LoginProvider';
7
+ import LoginForm from './auth/LoginForm';
8
+ import useAuthClient from './auth/useAuthClient';
8
9
  declare function getAllValues(): {
9
10
  [x: string]: import("./utils/init").FeatheryFieldTypes;
10
11
  };
@@ -67,6 +68,6 @@ declare const Feathery: {
67
68
  getAllValues: typeof getAllValues;
68
69
  renderAt: typeof renderAt;
69
70
  };
70
- export { Form, Elements, init, updateUserKey, updateUserId, setValues, getAllValues, renderAt, LoginProvider, Feathery };
71
+ export { Form, Elements, init, updateUserKey, updateUserId, setValues, getAllValues, renderAt, LoginForm, useAuthClient, Feathery };
71
72
  export type { OPERATOR_CODE, FormContext };
72
73
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,IAAI,EAAE,EAAU,KAAK,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAe,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,M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