@feathery/react 1.0.596 → 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.
- package/dist/Form/index.d.ts.map +1 -1
- package/dist/auth/{LoginProvider.d.ts → LoginForm.d.ts} +9 -6
- package/dist/auth/LoginForm.d.ts.map +1 -0
- package/dist/auth/{useFormAuth.d.ts → internal/useFormAuth.d.ts} +1 -2
- package/dist/auth/internal/useFormAuth.d.ts.map +1 -0
- package/dist/auth/{utils.d.ts → internal/utils.d.ts} +2 -4
- package/dist/auth/internal/utils.d.ts.map +1 -0
- package/dist/auth/useAuthClient.d.ts +3 -0
- package/dist/auth/useAuthClient.d.ts.map +1 -0
- package/dist/elements/fields/PhoneField/CountryDropdown.d.ts.map +1 -1
- package/dist/elements/fields/RatingField.d.ts.map +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/integrations/firebase.d.ts +1 -0
- package/dist/integrations/firebase.d.ts.map +1 -1
- package/dist/integrations/stytch.d.ts.map +1 -1
- package/dist/utils/formHelperFunctions.d.ts +1 -1
- package/dist/utils/formHelperFunctions.d.ts.map +1 -1
- package/package.json +1 -1
- package/umd/index.js +1 -1
- package/dist/auth/LoginProvider.d.ts.map +0 -1
- package/dist/auth/useFormAuth.d.ts.map +0 -1
- package/dist/auth/utils.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;AA+Bf,OAAO,EAA0B,WAAW,EAAY,MAAM,eAAe,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,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AC1B,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,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;AAs3CD,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,GAAG,KAAK,EACT,EAAE,KAAK,GAAG,aAAa,2DAsBvB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAGlE"}
|
|
@@ -1,24 +1,27 @@
|
|
|
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;
|
|
5
7
|
authId: string;
|
|
6
8
|
authPhoneNumber: string;
|
|
7
9
|
redirectAfterLogin: boolean;
|
|
8
10
|
sentAuth: boolean;
|
|
9
11
|
setAuthId: (newId: string) => void;
|
|
12
|
+
setClient: (newClient: any) => void;
|
|
10
13
|
onLogin: () => void;
|
|
11
14
|
onLogout: () => void;
|
|
12
15
|
};
|
|
13
|
-
declare const
|
|
14
|
-
authClient?: any;
|
|
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;
|
|
18
20
|
loginPath?: string | undefined;
|
|
19
21
|
onLogin?: (() => void) | undefined;
|
|
20
22
|
onLogout?: (() => void) | undefined;
|
|
23
|
+
onClientReady?: ((authClient: any) => void) | undefined;
|
|
21
24
|
children?: JSX.Element | undefined;
|
|
22
|
-
}) => import("@emotion/react/jsx-runtime").JSX.Element
|
|
23
|
-
export default
|
|
24
|
-
//# sourceMappingURL=
|
|
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"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const useFormAuth: ({ initialStep, integrations,
|
|
2
|
+
declare const useFormAuth: ({ initialStep, integrations, setStepKey, steps }: {
|
|
3
3
|
initialStep: string;
|
|
4
4
|
integrations: null | Record<string, any>;
|
|
5
|
-
productionEnv: boolean;
|
|
6
5
|
setStepKey: React.Dispatch<React.SetStateAction<string>>;
|
|
7
6
|
steps: any;
|
|
8
7
|
}) => (nextStepCandidate?: any) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormAuth.d.ts","sourceRoot":"","sources":["../../../src/auth/internal/useFormAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAMzC,QAAA,MAAM,WAAW;iBAMF,MAAM;kBACL,IAAI,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC;gBAC5B,MAAM,QAAQ,CAAC,MAAM,cAAc,CAAC,MAAM,CAAC,CAAC;WACjD,GAAG;2BAkDmC,GAAG,KAAG,MA6BpD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import Client from '
|
|
2
|
-
export declare function setAuthClient(client: any): void;
|
|
3
|
-
export declare function getAuthClient(): any;
|
|
1
|
+
import Client from '../../utils/client';
|
|
4
2
|
export declare function inferEmailLoginFromURL(featheryClient: Client): any;
|
|
5
|
-
export declare function inferAuthLogout(): void
|
|
3
|
+
export declare function inferAuthLogout(): Promise<void>;
|
|
6
4
|
export declare function isAuthStytch(): any;
|
|
7
5
|
export declare function getAuthIntegrationMetadata(integrations: null | Record<string, any>): undefined | any;
|
|
8
6
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/auth/internal/utils.ts"],"names":[],"mappings":"AAGA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAExC,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,MAAM,OAO5D;AAED,wBAAsB,eAAe,kBAapC;AAED,wBAAgB,YAAY,QAQ3B;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 @@
|
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CountryDropdown.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/PhoneField/CountryDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;;
|
|
1
|
+
{"version":3,"file":"CountryDropdown.d.ts","sourceRoot":"","sources":["../../../../src/elements/fields/PhoneField/CountryDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2D,MAAM,OAAO,CAAC;;AAoIhF,wBAA2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RatingField.d.ts","sourceRoot":"","sources":["../../../src/elements/fields/RatingField.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"RatingField.d.ts","sourceRoot":"","sources":["../../../src/elements/fields/RatingField.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,QAAmB,EACnB,YAAiB,EACjB,QAAQ,EACT,EAAE,GAAG,oDAkDL"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import Elements from './elements';
|
|
3
3
|
import Form, { Props as FormProps } from './Form';
|
|
4
4
|
import { init, updateUserId, setValues } from './utils/init';
|
|
5
|
-
import { setAuthClient, getAuthClient } from './auth/utils';
|
|
6
5
|
import { OPERATOR_CODE } from './utils/logic';
|
|
7
6
|
import { FormContext } from './types/Form';
|
|
8
|
-
import
|
|
7
|
+
import LoginForm from './auth/LoginForm';
|
|
8
|
+
import useAuthClient from './auth/useAuthClient';
|
|
9
9
|
declare function getAllValues(): {
|
|
10
10
|
[x: string]: import("./utils/init").FeatheryFieldTypes;
|
|
11
11
|
};
|
|
@@ -66,10 +66,8 @@ declare const Feathery: {
|
|
|
66
66
|
updateUserId: typeof updateUserId;
|
|
67
67
|
setValues: typeof setValues;
|
|
68
68
|
getAllValues: typeof getAllValues;
|
|
69
|
-
setAuthClient: typeof setAuthClient;
|
|
70
|
-
getAuthClient: typeof getAuthClient;
|
|
71
69
|
renderAt: typeof renderAt;
|
|
72
70
|
};
|
|
73
|
-
export { Form, Elements, init, updateUserKey, updateUserId, setValues, getAllValues,
|
|
71
|
+
export { Form, Elements, init, updateUserKey, updateUserId, setValues, getAllValues, renderAt, LoginForm, useAuthClient, Feathery };
|
|
74
72
|
export type { OPERATOR_CODE, FormContext };
|
|
75
73
|
//# 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,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAe,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,
|
|
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,MAAM,eAAe,CAAC;AAI9C,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASb,CAAC;AAEF,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,aAAa,EACb,QAAQ,EACT,CAAC;AACF,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC"}
|