@feathery/react 1.1.30 → 1.1.32
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/grid/Element/index.d.ts.map +1 -1
- package/dist/Form/index.d.ts +4 -1
- package/dist/Form/index.d.ts.map +1 -1
- package/dist/auth/LoginForm.d.ts +1 -2
- package/dist/auth/LoginForm.d.ts.map +1 -1
- package/dist/auth/internal/AuthIntegrationInterface.d.ts +1 -1
- package/dist/auth/internal/AuthIntegrationInterface.d.ts.map +1 -1
- package/dist/auth/internal/useFormAuth.d.ts +3 -1
- package/dist/auth/internal/useFormAuth.d.ts.map +1 -1
- package/dist/auth/internal/utils.d.ts +1 -0
- package/dist/auth/internal/utils.d.ts.map +1 -1
- package/dist/elements/components/LoaderContainer.d.ts +5 -2
- package/dist/elements/components/LoaderContainer.d.ts.map +1 -1
- package/dist/elements/components/Spinner.d.ts +1 -0
- package/dist/elements/components/Spinner.d.ts.map +1 -1
- package/dist/elements/fields/PhoneField/CountryDropdown.d.ts +1 -1
- package/dist/hooks/useLoader.d.ts +35 -0
- package/dist/hooks/useLoader.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/integrations/firebase.d.ts +1 -1
- package/dist/integrations/firebase.d.ts.map +1 -1
- package/dist/utils/callbackQueue.d.ts +1 -1
- package/dist/utils/callbackQueue.d.ts.map +1 -1
- package/dist/utils/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/umd/index.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Form/grid/Element/index.tsx"],"names":[],"mappings":"AA6EA,QAAA,MAAM,OAAO,8BAA+B,GAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Form/grid/Element/index.tsx"],"names":[],"mappings":"AA6EA,QAAA,MAAM,OAAO,8BAA+B,GAAG,4DAud9C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/dist/Form/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FieldValues } from '../utils/init';
|
|
3
3
|
import { ContextOnChange, ContextOnLoad, FormContext, ContextOnSubmit, ContextOnSkip, ContextOnError, ContextOnCustomAction, ContextOnView, ElementProps, PopupOptions } from '../types/Form';
|
|
4
|
+
import { InitialLoader } from '../hooks/useLoader';
|
|
4
5
|
export interface Props {
|
|
5
6
|
formName: string;
|
|
6
7
|
onChange?: null | ((context: ContextOnChange) => Promise<any> | void);
|
|
@@ -15,6 +16,7 @@ export interface Props {
|
|
|
15
16
|
initialValues?: FieldValues;
|
|
16
17
|
initialStepId?: string;
|
|
17
18
|
language?: string;
|
|
19
|
+
initialLoader?: InitialLoader;
|
|
18
20
|
popupOptions?: PopupOptions;
|
|
19
21
|
elementProps?: ElementProps;
|
|
20
22
|
contextRef?: React.MutableRefObject<null | FormContext>;
|
|
@@ -28,8 +30,9 @@ export interface Props {
|
|
|
28
30
|
}
|
|
29
31
|
interface InternalProps {
|
|
30
32
|
_internalId: string;
|
|
33
|
+
_isAuthLoading?: boolean;
|
|
31
34
|
}
|
|
32
|
-
export declare function JSForm({ formName, language, _internalId, ...props }: Props & InternalProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
35
|
+
export declare function JSForm({ formName, language, _internalId, _isAuthLoading, ...props }: Props & InternalProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
33
36
|
export default function ReactForm(props: Props): JSX.Element | null;
|
|
34
37
|
export {};
|
|
35
38
|
//# sourceMappingURL=index.d.ts.map
|
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;AAqCf,OAAO,EAA0B,WAAW,EAAE,MAAM,eAAe,CAAC;AAqBpE,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K,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAQlE"}
|
package/dist/auth/LoginForm.d.ts
CHANGED
|
@@ -12,10 +12,9 @@ export declare const authState: {
|
|
|
12
12
|
onLogin: () => void;
|
|
13
13
|
onLogout: () => void;
|
|
14
14
|
};
|
|
15
|
-
declare const LoginForm: ({ authId: authIdProp, formProps,
|
|
15
|
+
declare const LoginForm: ({ authId: authIdProp, formProps, loginPath, onLogin, onLogout, onClientReady, _featheryHosted, children }: {
|
|
16
16
|
authId?: string | undefined;
|
|
17
17
|
formProps: FormProps;
|
|
18
|
-
loader?: JSX.Element | undefined;
|
|
19
18
|
loginPath?: string | undefined;
|
|
20
19
|
onLogin?: (() => void) | undefined;
|
|
21
20
|
onLogout?: (() => void) | undefined;
|
|
@@ -1 +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;
|
|
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;AAkBrD,eAAO,MAAM,WAAW,oBAA2B,CAAC;AAEpD,eAAO,MAAM,SAAS;;;;;;uBAQD,MAAM;2BAGF,GAAG;;;CAK3B,CAAC;AAEF,QAAA,MAAM,SAAS;;eAWF,SAAS;;qBAEJ,IAAI;sBACH,IAAI;kCACQ,GAAG,KAAK,IAAI;;;6DA0I1C,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Client from '../../utils/client';
|
|
2
2
|
declare function isHrefMagicLink(): boolean;
|
|
3
|
-
declare function inferLoginOnLoad(featheryClient: Client): any
|
|
3
|
+
declare function inferLoginOnLoad(featheryClient: Client): Promise<any>;
|
|
4
4
|
declare function isThereAnExistingSession(): boolean;
|
|
5
5
|
declare function inferAuthLogout(): Promise<void>;
|
|
6
6
|
declare function sendSms(phoneNum: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthIntegrationInterface.d.ts","sourceRoot":"","sources":["../../../src/auth/internal/AuthIntegrationInterface.ts"],"names":[],"mappings":"AAiBA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAOxC,iBAAS,eAAe,IAAI,OAAO,CAKlC;AAED,iBAAS,gBAAgB,CAAC,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AuthIntegrationInterface.d.ts","sourceRoot":"","sources":["../../../src/auth/internal/AuthIntegrationInterface.ts"],"names":[],"mappings":"AAiBA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AAOxC,iBAAS,eAAe,IAAI,OAAO,CAKlC;AAED,iBAAS,gBAAgB,CAAC,cAAc,EAAE,MAAM,gBAO/C;AAED,iBAAS,wBAAwB,IAAI,OAAO,CAE3C;AAED,iBAAe,eAAe,kBAW7B;AAED,iBAAS,OAAO,CAAC,QAAQ,EAAE,MAAM,QAOhC;AAED,iBAAS,SAAS,CAAC,MAAM,EAAE;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,GAAG,CAAC;CACrB,GAAG,OAAO,CAAC,GAAG,CAAC,CAEf;AAED,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,QAOnC;AAED,iBAAS,aAAa,CAAC,SAAS,EAAE,MAAM,QAGvC;AAED,iBAAS,6BAA6B,SA6BrC;AAED;;;GAGG;AACH,iBAAS,eAAe,CAAC,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,IAAI,QAWrE;;;;;;;;;;;;;AAED,wBAWE"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const useFormAuth: ({ initialStep, integrations, setStepKey, steps }: {
|
|
2
|
+
declare const useFormAuth: ({ initialStep, integrations, setStepKey, steps, client, _internalId }: {
|
|
3
3
|
initialStep: string;
|
|
4
4
|
integrations: null | Record<string, any>;
|
|
5
5
|
setStepKey: React.Dispatch<React.SetStateAction<string>>;
|
|
6
6
|
steps: any;
|
|
7
|
+
client: any;
|
|
8
|
+
_internalId: string;
|
|
7
9
|
}) => (nextStepCandidate?: any) => string;
|
|
8
10
|
export default useFormAuth;
|
|
9
11
|
//# sourceMappingURL=useFormAuth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormAuth.d.ts","sourceRoot":"","sources":["../../../src/auth/internal/useFormAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useFormAuth.d.ts","sourceRoot":"","sources":["../../../src/auth/internal/useFormAuth.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAOzC,QAAA,MAAM,WAAW;iBAQF,MAAM;kBACL,IAAI,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC;gBAC5B,MAAM,QAAQ,CAAC,MAAM,cAAc,CAAC,MAAM,CAAC,CAAC;WACjD,GAAG;YACF,GAAG;iBACE,MAAM;2BA4D0B,GAAG,KAAG,MAkCpD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -9,5 +9,6 @@ export declare function getAuthIntegrationMetadata(integrations: null | Record<s
|
|
|
9
9
|
* @returns {boolean} true if there are auth gated steps after this one
|
|
10
10
|
*/
|
|
11
11
|
export declare function isTerminalStepAuth(authIntegration: any, stepId: string): boolean;
|
|
12
|
+
export declare function hasOnboardingSteps(integrations: any): boolean;
|
|
12
13
|
export declare function getRedirectUrl(): string;
|
|
13
14
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/auth/internal/utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,wBAM3B;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;AAED,wBAAgB,cAAc,WAY7B"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/auth/internal/utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,wBAM3B;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;AAED,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,GAAG,GAAG,OAAO,CAW7D;AAED,wBAAgB,cAAc,WAY7B"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
declare const LoaderContainer: ({ backgroundColor, showLoader, children }: {
|
|
2
|
-
|
|
1
|
+
declare const LoaderContainer: ({ isStepLoaderForButton, backgroundColor, showLoader, height, width, children }: {
|
|
2
|
+
isStepLoaderForButton: boolean;
|
|
3
|
+
backgroundColor: string | undefined;
|
|
3
4
|
showLoader: boolean;
|
|
5
|
+
height: string;
|
|
6
|
+
width: string;
|
|
4
7
|
children: JSX.Element;
|
|
5
8
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
9
|
export default LoaderContainer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoaderContainer.d.ts","sourceRoot":"","sources":["../../../src/elements/components/LoaderContainer.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"LoaderContainer.d.ts","sourceRoot":"","sources":["../../../src/elements/components/LoaderContainer.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe;2BAQI,OAAO;qBACb,MAAM,GAAG,SAAS;gBACvB,OAAO;YACX,MAAM;WACP,MAAM;cACH,WAAW;sDAwBtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/elements/components/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/elements/components/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,eAAe,CAAC;AAEvB,iBAAS,eAAe,qDASvB;;AAED,wBAAqC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
3
3
|
export default _default;
|
|
4
4
|
//# sourceMappingURL=CountryDropdown.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface InitialLoader {
|
|
2
|
+
show?: boolean;
|
|
3
|
+
loader?: string | JSX.Element;
|
|
4
|
+
initialContainerHeight?: string;
|
|
5
|
+
initialContainerWidth?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* The different loaders should behave as follows, based on initialLoader.show
|
|
9
|
+
* default:
|
|
10
|
+
* forms - no loader
|
|
11
|
+
* auth - loader
|
|
12
|
+
* buttons - loader
|
|
13
|
+
*
|
|
14
|
+
* explicitly false:
|
|
15
|
+
* all - no loader
|
|
16
|
+
*
|
|
17
|
+
* explicitly true:
|
|
18
|
+
* all - loader
|
|
19
|
+
*
|
|
20
|
+
* @param _isAuthLoading A boolean passed by LoginForm to designate whether auth is loading & the form requires a loader
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
declare const useLoader: ({ initialLoader, _isAuthLoading, loaderBackgroundColor, formRef }: {
|
|
24
|
+
initialLoader: InitialLoader | undefined;
|
|
25
|
+
_isAuthLoading: boolean;
|
|
26
|
+
loaderBackgroundColor: string | undefined;
|
|
27
|
+
formRef: any;
|
|
28
|
+
}) => {
|
|
29
|
+
buttonLoaders: Record<string, any>;
|
|
30
|
+
clearLoaders: () => void;
|
|
31
|
+
setLoaders: (newVal: any) => false | void;
|
|
32
|
+
stepLoader: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
33
|
+
};
|
|
34
|
+
export default useLoader;
|
|
35
|
+
//# sourceMappingURL=useLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLoader.d.ts","sourceRoot":"","sources":["../../src/hooks/useLoader.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAC9B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,SAAS;mBAME,aAAa,GAAG,SAAS;oBACxB,OAAO;2BACA,MAAM,GAAG,SAAS;aAChC,GAAG;;;;yBAkEW,GAAG;;CAG3B,CAAC;AA0CF,eAAe,SAAS,CAAC"}
|