@feathery/react 1.0.589 → 1.0.591
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/Form/index.d.ts.map +1 -1
- package/dist/auth/LoginProvider.d.ts +23 -0
- package/dist/auth/LoginProvider.d.ts.map +1 -0
- package/dist/auth/useFormAuth.d.ts +10 -0
- package/dist/auth/useFormAuth.d.ts.map +1 -0
- package/dist/auth/utils.d.ts +17 -0
- package/dist/auth/utils.d.ts.map +1 -0
- package/dist/elements/components/LoaderContainer.d.ts +7 -0
- package/dist/elements/components/LoaderContainer.d.ts.map +1 -0
- package/dist/elements/fields/PhoneField/index.d.ts.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/integrations/firebase.d.ts.map +1 -1
- package/dist/integrations/stytch.d.ts.map +1 -1
- package/dist/integrations/utils.d.ts +1 -4
- package/dist/integrations/utils.d.ts.map +1 -1
- package/dist/utils/client.d.ts +1 -1
- package/dist/utils/client.d.ts.map +1 -1
- package/dist/utils/formHelperFunctions.d.ts +3 -2
- package/dist/utils/formHelperFunctions.d.ts.map +1 -1
- package/dist/utils/init.d.ts +5 -11
- package/dist/utils/init.d.ts.map +1 -1
- package/package.json +4 -1
- package/umd/index.js +1 -1
- package/umd/index.js.LICENSE.txt +0 -9
- package/dist/hooks/useAuth.d.ts +0 -13
- package/dist/hooks/useAuth.d.ts.map +0 -1
package/dist/Form/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Form/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Form/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAMN,MAAM,OAAO,CAAC;AA+Bf,OAAO,EAA0B,WAAW,EAAY,MAAM,eA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AC,EAAE,WAAW,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,GAAG,WAAW,CAAC,CAAC;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,KAAK,CAAC,EAAE;QAAE,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;CACxB;AAED,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB;AA44CD,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,WAAW,EACX,GAAG,KAAK,EACT,EAAE,KAAK,GAAG,aAAa,2DAoBvB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAGlE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Props as FormProps } from '../Form';
|
|
2
|
+
export declare const authState: {
|
|
3
|
+
authClient: null;
|
|
4
|
+
authEmail: string;
|
|
5
|
+
authId: string;
|
|
6
|
+
authPhoneNumber: string;
|
|
7
|
+
redirectAfterLogin: boolean;
|
|
8
|
+
sentAuth: boolean;
|
|
9
|
+
setAuthId: (newId: string) => void;
|
|
10
|
+
onLogin: () => void;
|
|
11
|
+
onLogout: () => void;
|
|
12
|
+
};
|
|
13
|
+
declare const LoginProvider: ({ authClient: authClientProp, authId: authIdProp, formProps, loginPath, onLogin, onLogout, children }: {
|
|
14
|
+
authClient?: any;
|
|
15
|
+
authId?: string | undefined;
|
|
16
|
+
formProps: FormProps;
|
|
17
|
+
loginPath?: string | undefined;
|
|
18
|
+
onLogin?: (() => void) | undefined;
|
|
19
|
+
onLogout?: (() => void) | undefined;
|
|
20
|
+
children?: JSX.Element | undefined;
|
|
21
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element | undefined;
|
|
22
|
+
export default LoginProvider;
|
|
23
|
+
//# sourceMappingURL=LoginProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoginProvider.d.ts","sourceRoot":"","sources":["../../src/auth/LoginProvider.tsx"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,IAAI,SAAS,EAAE,MAAM,SAAS,CAAC;AAqBrD,eAAO,MAAM,SAAS;;;;;;;uBASa,MAAM,KAAK,IAAI;;;CAGjD,CAAC;AAEF,QAAA,MAAM,aAAa;iBASJ,GAAG;;eAEL,SAAS;;qBAEJ,IAAI;sBACH,IAAI;;kEA+HtB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const useFormAuth: ({ initialStep, integrations, productionEnv, setStepKey, steps }: {
|
|
3
|
+
initialStep: string;
|
|
4
|
+
integrations: null | Record<string, any>;
|
|
5
|
+
productionEnv: boolean;
|
|
6
|
+
setStepKey: React.Dispatch<React.SetStateAction<string>>;
|
|
7
|
+
steps: any;
|
|
8
|
+
}) => (nextStepCandidate?: any) => string;
|
|
9
|
+
export default useFormAuth;
|
|
10
|
+
//# sourceMappingURL=useFormAuth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormAuth.d.ts","sourceRoot":"","sources":["../../src/auth/useFormAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAMzC,QAAA,MAAM,WAAW;iBAOF,MAAM;kBACL,IAAI,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC;mBACzB,OAAO;gBACV,MAAM,QAAQ,CAAC,MAAM,cAAc,CAAC,MAAM,CAAC,CAAC;WACjD,GAAG;2BAkDmC,GAAG,KAAG,MAgCpD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Client from '../utils/client';
|
|
2
|
+
export declare function setAuthClient(client: any): void;
|
|
3
|
+
export declare function getAuthClient(): any;
|
|
4
|
+
export declare function inferEmailLoginFromURL(featheryClient: Client): any;
|
|
5
|
+
export declare function inferAuthLogout(): void;
|
|
6
|
+
export declare function isAuthStytch(): any;
|
|
7
|
+
export declare function getAuthIntegrationMetadata(integrations: null | Record<string, any>): undefined | any;
|
|
8
|
+
/**
|
|
9
|
+
* Determines whether form should be considered completed or not. Completed
|
|
10
|
+
* should be false if it is a 'terminal step' in the middle of a login flow with
|
|
11
|
+
* steps configured for after login
|
|
12
|
+
* @param authIntegration
|
|
13
|
+
* @param stepId terminal step ID
|
|
14
|
+
* @returns {boolean} true if there are auth gated steps after this one
|
|
15
|
+
*/
|
|
16
|
+
export declare function isTerminalStepAuth(authIntegration: any, stepId: string): boolean;
|
|
17
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/auth/utils.ts"],"names":[],"mappings":"AAIA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,wBAAgB,aAAa,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI,CAK/C;AAED,wBAAgB,aAAa,IAAI,GAAG,CAEnC;AAED,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,MAAM,OAO5D;AAED,wBAAgB,eAAe,SAiB9B;AAED,wBAAgB,YAAY,QAS3B;AAED,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACvC,SAAS,GAAG,GAAG,CAEjB;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,eAAe,EAAE,GAAG,EACpB,MAAM,EAAE,MAAM,GACb,OAAO,CAMT"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const LoaderContainer: ({ backgroundColor, showLoader, children }: {
|
|
2
|
+
backgroundColor?: string | undefined;
|
|
3
|
+
showLoader: boolean;
|
|
4
|
+
children: JSX.Element;
|
|
5
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default LoaderContainer;
|
|
7
|
+
//# sourceMappingURL=LoaderContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoaderContainer.d.ts","sourceRoot":"","sources":["../../../src/elements/components/LoaderContainer.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe;;gBAMP,OAAO;cACT,WAAW;sDAoBtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/PhoneField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAuBjE,iBAAS,UAAU,CAAC,EAClB,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,YAAiB,EACjB,QAAgB,EAChB,QAAQ,EACR,QAAmB,EACnB,MAAiB,EACjB,WAAW,EACX,QAAQ,EACT,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/PhoneField/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAuBjE,iBAAS,UAAU,CAAC,EAClB,OAAO,EACP,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,YAAiB,EACjB,QAAgB,EAChB,QAAQ,EACR,QAAmB,EACnB,MAAiB,EACjB,WAAW,EACX,QAAQ,EACT,EAAE,GAAG,oDAwQL;;AAED,wBAAgC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Elements from './elements';
|
|
3
3
|
import Form, { Props as FormProps } from './Form';
|
|
4
|
-
import { init, updateUserId, setValues
|
|
4
|
+
import { init, updateUserId, setValues } from './utils/init';
|
|
5
|
+
import { setAuthClient, getAuthClient } from './auth/utils';
|
|
5
6
|
import { OPERATOR_CODE } from './utils/logic';
|
|
6
7
|
import { FormContext } from './types/Form';
|
|
8
|
+
import LoginProvider from './auth/LoginProvider';
|
|
7
9
|
declare function getAllValues(): {
|
|
8
10
|
[x: string]: import("./utils/init").FeatheryFieldTypes;
|
|
9
11
|
};
|
|
@@ -67,6 +69,6 @@ declare const Feathery: {
|
|
|
67
69
|
getAuthClient: typeof getAuthClient;
|
|
68
70
|
renderAt: typeof renderAt;
|
|
69
71
|
};
|
|
70
|
-
export { Form, Elements, init, updateUserKey, updateUserId, setValues, getAllValues, setAuthClient, getAuthClient, renderAt, Feathery };
|
|
72
|
+
export { Form, Elements, init, updateUserKey, updateUserId, setValues, getAllValues, setAuthClient, getAuthClient, renderAt, LoginProvider, Feathery };
|
|
71
73
|
export type { OPERATOR_CODE, FormContext };
|
|
72
74
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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,aAAa,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAI9C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,aAAa,MAAM,sBAAsB,CAAC;AAEjD,iBAAS,YAAY;;EAGpB;AAED;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS;;;;;;;;;;;;;;;;;;;EAQjD;AAGD,QAAA,MAAM,aAAa,qBAAe,CAAC;AAGnC,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWb,CAAC;AAEF,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,aAAa,EACb,aAAa,EACb,QAAQ,EACR,aAAa,EACb,QAAQ,EACT,CAAC;AACF,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC"}
|