@passflow/react 0.26.2 → 0.28.0
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/CHANGELOG.md +28 -0
- package/README.md +89 -3
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +105 -104
- package/dist/index.es.js.map +1 -1
- package/dist/src/components/flow/consent/index.d.cts +1 -11
- package/dist/src/components/flow/consent/index.d.ts +1 -11
- package/dist/src/components/flow/consent/index.d.ts.map +1 -1
- package/dist/src/components/flow/device-verify/index.d.cts +1 -8
- package/dist/src/components/flow/device-verify/index.d.ts +1 -8
- package/dist/src/components/flow/device-verify/index.d.ts.map +1 -1
- package/dist/src/components/flow/two-factor-setup/index.d.ts.map +1 -1
- package/dist/src/components/flow/two-factor-setup-magic-link/index.d.cts +0 -13
- package/dist/src/components/flow/two-factor-setup-magic-link/index.d.ts +0 -13
- package/dist/src/components/flow/two-factor-setup-magic-link/index.d.ts.map +1 -1
- package/dist/src/components/flow/two-factor-verify/index.d.ts.map +1 -1
- package/dist/src/components/form/forgot-password/forgot-password-success.d.cts +1 -1
- package/dist/src/components/form/forgot-password/forgot-password-success.d.ts +1 -1
- package/dist/src/components/form/forgot-password/forgot-password-success.d.ts.map +1 -1
- package/dist/src/components/form/forgot-password/forgot-password.d.ts.map +1 -1
- package/dist/src/components/form/reset-password/index.d.ts.map +1 -1
- package/dist/src/components/form/signin/index.d.ts.map +1 -1
- package/dist/src/components/form/signup/index.d.ts.map +1 -1
- package/dist/src/components/form/two-factor-verify/two-factor-verify-form.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts.map +1 -1
- package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.ts.map +1 -1
- package/dist/src/components/login-button/index.d.cts +6 -2
- package/dist/src/components/login-button/index.d.ts +6 -2
- package/dist/src/components/login-button/index.d.ts.map +1 -1
- package/dist/src/components/provider/passflow-provider.d.ts.map +1 -1
- package/dist/src/components/provider/upgrade-provider.d.cts +1 -1
- package/dist/src/components/provider/upgrade-provider.d.ts +1 -1
- package/dist/src/components/provider/upgrade-provider.d.ts.map +1 -1
- package/dist/src/components/ui/fields/field-otp.d.cts +3 -5
- package/dist/src/components/ui/fields/field-otp.d.ts +3 -5
- package/dist/src/components/ui/fields/field-otp.d.ts.map +1 -1
- package/dist/src/components/ui/login-button/use-shadcn-theme.d.cts +1 -1
- package/dist/src/components/ui/login-button/use-shadcn-theme.d.ts +1 -1
- package/dist/src/components/ui/login-button/use-shadcn-theme.d.ts.map +1 -1
- package/dist/src/dev-account.d.ts.map +1 -1
- package/dist/src/hocs/index.d.cts +1 -0
- package/dist/src/hocs/index.d.ts +1 -0
- package/dist/src/hocs/index.d.ts.map +1 -1
- package/dist/src/hocs/with-error.d.ts.map +1 -1
- package/dist/src/hocs/with-hydration.d.cts +8 -0
- package/dist/src/hocs/with-hydration.d.ts +8 -0
- package/dist/src/hocs/with-hydration.d.ts.map +1 -0
- package/dist/src/hooks/use-app-settings.d.ts.map +1 -1
- package/dist/src/hooks/use-auth-cloud-redirect.d.ts.map +1 -1
- package/dist/src/hooks/use-isomorphic-layout-effect.d.cts +7 -0
- package/dist/src/hooks/use-isomorphic-layout-effect.d.ts +7 -0
- package/dist/src/hooks/use-isomorphic-layout-effect.d.ts.map +1 -0
- package/dist/src/hooks/use-trusted-devices.d.ts.map +1 -1
- package/dist/src/hooks/use-two-factor-status.d.ts.map +1 -1
- package/dist/src/hooks/use-user-passkeys.d.ts.map +1 -1
- package/dist/src/index.d.cts +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/utils/hosted-sign-in.d.cts +20 -0
- package/dist/src/utils/hosted-sign-in.d.ts +20 -0
- package/dist/src/utils/hosted-sign-in.d.ts.map +1 -0
- package/dist/src/utils/index.d.cts +1 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,13 +1,3 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
* OIDC consent controller, mounted by the host app on `/web/consent`.
|
|
4
|
-
*
|
|
5
|
-
* Standalone by design: it needs no PassflowProvider. The staged request is
|
|
6
|
-
* addressed by `consent_challenge_id` on the URL and read with a same-origin
|
|
7
|
-
* cookie, so there is no SDK client, no app settings lookup, and no token to
|
|
8
|
-
* hold — which is also why mounting it inside the provider would be actively
|
|
9
|
-
* wrong, since the provider's session-exchange probe would fire against a
|
|
10
|
-
* challenge that is waiting for a human decision.
|
|
11
|
-
*/
|
|
12
|
-
export declare const ConsentFlow: FC;
|
|
2
|
+
export declare const ConsentFlow: FC<{}>;
|
|
13
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,13 +1,3 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
* OIDC consent controller, mounted by the host app on `/web/consent`.
|
|
4
|
-
*
|
|
5
|
-
* Standalone by design: it needs no PassflowProvider. The staged request is
|
|
6
|
-
* addressed by `consent_challenge_id` on the URL and read with a same-origin
|
|
7
|
-
* cookie, so there is no SDK client, no app settings lookup, and no token to
|
|
8
|
-
* hold — which is also why mounting it inside the provider would be actively
|
|
9
|
-
* wrong, since the provider's session-exchange probe would fire against a
|
|
10
|
-
* challenge that is waiting for a human decision.
|
|
11
|
-
*/
|
|
12
|
-
export declare const ConsentFlow: FC;
|
|
2
|
+
export declare const ConsentFlow: FC<{}>;
|
|
13
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/consent/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/consent/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAuBhC,eAAO,MAAM,WAAW,QAAmC,CAAC"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
* RFC 8628 device verification controller.
|
|
4
|
-
*
|
|
5
|
-
* The server selects consent, full-login, or passkey mode. This component owns
|
|
6
|
-
* the state transition and automatic passkey attempt; the Storybook-backed
|
|
7
|
-
* LoginScreen owns every visual state.
|
|
8
|
-
*/
|
|
9
|
-
export declare const DeviceVerifyFlow: FC;
|
|
2
|
+
export declare const DeviceVerifyFlow: FC<{}>;
|
|
10
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
* RFC 8628 device verification controller.
|
|
4
|
-
*
|
|
5
|
-
* The server selects consent, full-login, or passkey mode. This component owns
|
|
6
|
-
* the state transition and automatic passkey attempt; the Storybook-backed
|
|
7
|
-
* LoginScreen owns every visual state.
|
|
8
|
-
*/
|
|
9
|
-
export declare const DeviceVerifyFlow: FC;
|
|
2
|
+
export declare const DeviceVerifyFlow: FC<{}>;
|
|
10
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/device-verify/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/device-verify/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAgChC,eAAO,MAAM,gBAAgB,QAAwC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/two-factor-setup/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/two-factor-setup/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGnD,OAAO,oBAAoB,CAAC;AAE5B,MAAM,MAAM,uBAAuB,GAAG;IACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAmDF,eAAO,MAAM,kBAAkB,6BAA0C,CAAC"}
|
|
@@ -22,19 +22,6 @@ export type TwoFactorSetupMagicLinkFlowProps = {
|
|
|
22
22
|
/** Path to sign-in page (default: /signin) */
|
|
23
23
|
signInPath?: string;
|
|
24
24
|
};
|
|
25
|
-
/**
|
|
26
|
-
* Flow component for magic link 2FA setup
|
|
27
|
-
*
|
|
28
|
-
* This component:
|
|
29
|
-
* 1. Takes the token from its `token` prop, or from the URL
|
|
30
|
-
* 2. Validates token via useTwoFactorSetupMagicLink hook
|
|
31
|
-
* 3. Shows loading state during validation
|
|
32
|
-
* 4. Shows error UI if validation fails
|
|
33
|
-
* 5. Renders TwoFactorSetupForm if validation succeeds
|
|
34
|
-
* 6. Redirects to sign-in after successful setup
|
|
35
|
-
*
|
|
36
|
-
* Route: /two-factor-setup-magic-link/:token
|
|
37
|
-
*/
|
|
38
25
|
export declare const TwoFactorSetupMagicLinkFlow: FC<TwoFactorSetupMagicLinkFlowProps>;
|
|
39
26
|
export {};
|
|
40
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -22,19 +22,6 @@ export type TwoFactorSetupMagicLinkFlowProps = {
|
|
|
22
22
|
/** Path to sign-in page (default: /signin) */
|
|
23
23
|
signInPath?: string;
|
|
24
24
|
};
|
|
25
|
-
/**
|
|
26
|
-
* Flow component for magic link 2FA setup
|
|
27
|
-
*
|
|
28
|
-
* This component:
|
|
29
|
-
* 1. Takes the token from its `token` prop, or from the URL
|
|
30
|
-
* 2. Validates token via useTwoFactorSetupMagicLink hook
|
|
31
|
-
* 3. Shows loading state during validation
|
|
32
|
-
* 4. Shows error UI if validation fails
|
|
33
|
-
* 5. Renders TwoFactorSetupForm if validation succeeds
|
|
34
|
-
* 6. Redirects to sign-in after successful setup
|
|
35
|
-
*
|
|
36
|
-
* Route: /two-factor-setup-magic-link/:token
|
|
37
|
-
*/
|
|
38
25
|
export declare const TwoFactorSetupMagicLinkFlow: FC<TwoFactorSetupMagicLinkFlowProps>;
|
|
39
26
|
export {};
|
|
40
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/two-factor-setup-magic-link/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/two-factor-setup-magic-link/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,EAAE,KAAK,gCAAgC,EAA6C,MAAM,SAAS,CAAC;AAS3G,OAAO,oBAAoB,CAAC;AAE5B;;GAEG;AACH,KAAK,cAAc,GAAG,WAAW,CAAC,gCAAgC,CAAC,OAAO,CAAC,CAAC,CAAC;AAE7E;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG;IAC7C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,mCAAmC;IACnC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1C,sDAAsD;IACtD,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAwHF,eAAO,MAAM,2BAA2B,sCAAmD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/two-factor-verify/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/flow/two-factor-verify/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAUhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAInD,OAAO,oBAAoB,CAAC;AAE5B,MAAM,MAAM,wBAAwB,GAAG;IACrC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AA0EF,eAAO,MAAM,mBAAmB,8BAA2C,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ForgotPasswordSuccess:
|
|
1
|
+
export declare const ForgotPasswordSuccess: import("react").FC<object>;
|
|
2
2
|
//# sourceMappingURL=forgot-password-success.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const ForgotPasswordSuccess:
|
|
1
|
+
export declare const ForgotPasswordSuccess: import("react").FC<object>;
|
|
2
2
|
//# sourceMappingURL=forgot-password-success.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forgot-password-success.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/forgot-password/forgot-password-success.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"forgot-password-success.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/forgot-password/forgot-password-success.tsx"],"names":[],"mappings":"AAOA,OAAO,oBAAoB,CAAC;AAyE5B,eAAO,MAAM,qBAAqB,4BAA6C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"forgot-password.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/forgot-password/forgot-password.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,EAAW,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"forgot-password.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/forgot-password/forgot-password.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,EAAW,MAAM,OAAO,CAAC;AAkBzC,OAAO,oBAAoB,CAAC;AAO5B,KAAK,eAAe,GAAG;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC,CAAC;AAsMF,eAAO,MAAM,cAAc,qBAAsC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/reset-password/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/reset-password/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAQhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,oBAAoB,CAAC;AAM5B,KAAK,cAAc,GAAG;IACpB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AA+HF,eAAO,MAAM,aAAa,oBAAqC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/signin/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAehC,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAkDrE,MAAM,MAAM,OAAO,GAAG;IACpB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC5C,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/signin/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAehC,OAAO,KAAK,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAkDrE,MAAM,MAAM,OAAO,GAAG;IACpB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC5C,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAkRF,eAAO,MAAM,UAAU,aAAkC,CAAC;AAE1D,eAAO,MAAM,MAAM,wDAA8C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/signup/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAehC,OAAO,KAAK,EAAiB,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAqDpF,MAAM,MAAM,OAAO,GAAG;IACpB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC5C,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/signup/index.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAehC,OAAO,KAAK,EAAiB,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAqDpF,MAAM,MAAM,OAAO,GAAG;IACpB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAC5C,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAoOF,eAAO,MAAM,UAAU,aAAkC,CAAC;AAE1D,eAAO,MAAM,MAAM,wDAA8C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"two-factor-verify-form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-verify/two-factor-verify-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAA+B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"two-factor-verify-form.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/two-factor-verify/two-factor-verify-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAA+B,MAAM,OAAO,CAAC;AAM7D,OAAO,oBAAoB,CAAC;AAE5B,KAAK,wBAAwB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,2HAA2H;IAC3H,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,GAAG,cAAc,KAAK,IAAI,CAAC;IACrD,qDAAqD;IACrD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,8GAA8G;IAC9G,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC,CAAC;AAoFF,eAAO,MAAM,mBAAmB,8BAA2C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-challenge-magic-link.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-magic-link.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAwC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"verify-challenge-magic-link.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-magic-link.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAwC,MAAM,OAAO,CAAC;AAQtE,OAAO,oBAAoB,CAAC;AA2L5B,KAAK,6BAA6B,GAAG;IACnC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AA2BF,eAAO,MAAM,wBAAwB,mCAAgD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-challenge-otp.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"verify-challenge-otp.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/verify-challenge/verify-challenge-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAKnD,OAAO,oBAAoB,CAAC;AAG5B,KAAK,mBAAmB,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAkGF,eAAO,MAAM,kBAAkB,yBAA0C,CAAC"}
|
|
@@ -18,7 +18,11 @@ export type LoginButtonProps = {
|
|
|
18
18
|
signedInLabel?: (user: PassflowUser) => ReactNode;
|
|
19
19
|
/** Read by assistive technology after the signed-in label, since a click signs out. Default "Sign out". */
|
|
20
20
|
signOutDescription?: string;
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Passed to `passflow.authRedirect()` on sign-in. Without `redirectUrl`, the hosted login returns to the app
|
|
23
|
+
* root, `${origin}/` (the URL to register), and the provider then takes the user back to the page they
|
|
24
|
+
* started on. A `redirectUrl` given here is used as it is.
|
|
25
|
+
*/
|
|
22
26
|
authRedirectOptions?: AuthRedirectOptions;
|
|
23
27
|
/** After a hosted sign-in: where the hosted login sends the browser once signed out. */
|
|
24
28
|
postLogoutRedirectUri?: string;
|
|
@@ -38,7 +42,7 @@ export type LoginButtonProps = {
|
|
|
38
42
|
};
|
|
39
43
|
/**
|
|
40
44
|
* One button that signs in or out. Signed out, a click starts the hosted
|
|
41
|
-
* sign-in (`
|
|
45
|
+
* sign-in (`startHostedSignIn()`); signed in, it shows who is signed in and
|
|
42
46
|
* a click signs out (`useAuth().logout()`). It switches on sign-in and
|
|
43
47
|
* sign-out events.
|
|
44
48
|
*
|
|
@@ -18,7 +18,11 @@ export type LoginButtonProps = {
|
|
|
18
18
|
signedInLabel?: (user: PassflowUser) => ReactNode;
|
|
19
19
|
/** Read by assistive technology after the signed-in label, since a click signs out. Default "Sign out". */
|
|
20
20
|
signOutDescription?: string;
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Passed to `passflow.authRedirect()` on sign-in. Without `redirectUrl`, the hosted login returns to the app
|
|
23
|
+
* root, `${origin}/` (the URL to register), and the provider then takes the user back to the page they
|
|
24
|
+
* started on. A `redirectUrl` given here is used as it is.
|
|
25
|
+
*/
|
|
22
26
|
authRedirectOptions?: AuthRedirectOptions;
|
|
23
27
|
/** After a hosted sign-in: where the hosted login sends the browser once signed out. */
|
|
24
28
|
postLogoutRedirectUri?: string;
|
|
@@ -38,7 +42,7 @@ export type LoginButtonProps = {
|
|
|
38
42
|
};
|
|
39
43
|
/**
|
|
40
44
|
* One button that signs in or out. Signed out, a click starts the hosted
|
|
41
|
-
* sign-in (`
|
|
45
|
+
* sign-in (`startHostedSignIn()`); signed in, it shows who is signed in and
|
|
42
46
|
* a click signs out (`useAuth().logout()`). It switches on sign-in and
|
|
43
47
|
* sign-out events.
|
|
44
48
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/login-button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,KAAK,qBAAqB,EAAmB,MAAM,8BAA8B,CAAC;AAG3F,OAAO,EAAE,KAAK,YAAY,EAAW,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/login-button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAY,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,KAAK,qBAAqB,EAAmB,MAAM,8BAA8B,CAAC;AAG3F,OAAO,EAAE,KAAK,YAAY,EAAW,MAAM,kBAAkB,CAAC;AAG9D,uDAAuD;AACvD,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,EAAE,OAAO,CAAC;IACpB,0FAA0F;IAC1F,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,EAAE,YAAY,CAAC;IACnB,uEAAuE;IACvE,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,iDAAiD;IACjD,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,yFAAyF;IACzF,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,SAAS,CAAC;IAClD,2GAA2G;IAC3G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C,wFAAwF;IACxF,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,2GAA2G;IAC3G,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,YAAY,GAAG,CAAC,CAAC,KAAK,EAAE,sBAAsB,KAAK,YAAY,CAAC,CAAC;CAC7E,CAAC;AAIF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAwC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"passflow-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/passflow-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,EAMpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAiE,MAAM,OAAO,CAAC;AACtH,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AASpG,OAAO,EAKL,KAAK,OAAO,EAEZ,KAAK,gBAAgB,EAKrB,KAAK,UAAU,EAEhB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"passflow-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/passflow-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,cAAc,EAMpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAAiE,MAAM,OAAO,CAAC;AACtH,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAS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,QAAmC,CAAC;AAiC5E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,uBAAuB,QAAO,OAA+B,CAAC;AA0L3E;;;GAGG;AACH,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IAKvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,KAAK,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,eAAe,GAAG,cAAc,CAAC;AA2OzH;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,aAAa,EAAE,aAAa,CAAC;CAC9B,CAAC;AAgKF,eAAO,MAAM,mBAAmB,yCAE9B,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA0QtD,CAAC"}
|
|
@@ -78,7 +78,7 @@ export type UpgradeProviderProps = {
|
|
|
78
78
|
title?: string;
|
|
79
79
|
/**
|
|
80
80
|
* Where a step-up that only a fresh sign-in can meet sends the user, and the "Sign in again" action of an
|
|
81
|
-
* insufficient one. Called once, with the dialog closed; nothing is retried. Default: `passflow
|
|
81
|
+
* insufficient one. Called once, with the dialog closed; nothing is retried. Default: `startHostedSignIn(passflow)`.
|
|
82
82
|
*/
|
|
83
83
|
onSignInRequired?: () => void;
|
|
84
84
|
/**
|
|
@@ -78,7 +78,7 @@ export type UpgradeProviderProps = {
|
|
|
78
78
|
title?: string;
|
|
79
79
|
/**
|
|
80
80
|
* Where a step-up that only a fresh sign-in can meet sends the user, and the "Sign in again" action of an
|
|
81
|
-
* insufficient one. Called once, with the dialog closed; nothing is retried. Default: `passflow
|
|
81
|
+
* insufficient one. Called once, with the dialog closed; nothing is retried. Default: `startHostedSignIn(passflow)`.
|
|
82
82
|
*/
|
|
83
83
|
onSignInRequired?: () => void;
|
|
84
84
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/upgrade-provider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,EAIL,KAAK,YAAY,EAGjB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,aAAa,EAOnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"upgrade-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/provider/upgrade-provider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,EAIL,KAAK,YAAY,EAGjB,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAClB,KAAK,aAAa,EAOnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAqD,MAAM,OAAO,CAAC;AACtH,OAAO,KAAK,EAAE,mBAAmB,EAAwB,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAgBpH,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,kFAAkF;IAClF,uBAAuB,CAAC,EAAE,QAAQ,CAAC;IACnC,6EAA6E;IAC7E,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAC3C,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,kFAAkF;IAClF,QAAQ,CAAC,EAAE,kBAAkB,GAAG,QAAQ,CAAC;IACzC,mBAAmB,CAAC,EAAE,qBAAqB,CAAC;IAC5C,OAAO,CAAC,EAAE,SAAS,aAAa,EAAE,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yCAAyC;IACzC,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC/B;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,YAAY,GAAG,IAAI,CAAC;CACnE,CAAC;AAsHF,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAyYpD,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { FC, Ref } from 'react';
|
|
2
1
|
export type FieldOtpCharset = 'numeric' | 'alphanumeric';
|
|
3
2
|
export type FieldOtpState = 'default' | 'error' | 'disabled';
|
|
4
3
|
type FieldOtpBaseProps = {
|
|
@@ -19,8 +18,6 @@ type FieldOtpBaseProps = {
|
|
|
19
18
|
/** Id of the element that describes it, such as the error message. */
|
|
20
19
|
describedBy?: string;
|
|
21
20
|
autoFocus?: boolean;
|
|
22
|
-
/** The one real `<input>`, so a screen can return focus to it after the field was locked. */
|
|
23
|
-
ref?: Ref<HTMLInputElement>;
|
|
24
21
|
};
|
|
25
22
|
/**
|
|
26
23
|
* The code field is named either by a visible label it draws itself (`label`),
|
|
@@ -43,8 +40,9 @@ export type FieldOtpProps = FieldOtpBaseProps & ({
|
|
|
43
40
|
* autofill, password managers and pasting a whole code all work. The boxes are
|
|
44
41
|
* a drawing of its value, hidden from assistive technology. With `label` the
|
|
45
42
|
* field draws its own visible label above the boxes; with `labelledBy` it is
|
|
46
|
-
* named by a prompt the screen already shows.
|
|
43
|
+
* named by a prompt the screen already shows. Its ref is the real `<input>`,
|
|
44
|
+
* so a screen can return focus to it after the field was locked.
|
|
47
45
|
*/
|
|
48
|
-
export declare const FieldOtp:
|
|
46
|
+
export declare const FieldOtp: import("react").ForwardRefExoticComponent<FieldOtpProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
49
47
|
export {};
|
|
50
48
|
//# sourceMappingURL=field-otp.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { FC, Ref } from 'react';
|
|
2
1
|
export type FieldOtpCharset = 'numeric' | 'alphanumeric';
|
|
3
2
|
export type FieldOtpState = 'default' | 'error' | 'disabled';
|
|
4
3
|
type FieldOtpBaseProps = {
|
|
@@ -19,8 +18,6 @@ type FieldOtpBaseProps = {
|
|
|
19
18
|
/** Id of the element that describes it, such as the error message. */
|
|
20
19
|
describedBy?: string;
|
|
21
20
|
autoFocus?: boolean;
|
|
22
|
-
/** The one real `<input>`, so a screen can return focus to it after the field was locked. */
|
|
23
|
-
ref?: Ref<HTMLInputElement>;
|
|
24
21
|
};
|
|
25
22
|
/**
|
|
26
23
|
* The code field is named either by a visible label it draws itself (`label`),
|
|
@@ -43,8 +40,9 @@ export type FieldOtpProps = FieldOtpBaseProps & ({
|
|
|
43
40
|
* autofill, password managers and pasting a whole code all work. The boxes are
|
|
44
41
|
* a drawing of its value, hidden from assistive technology. With `label` the
|
|
45
42
|
* field draws its own visible label above the boxes; with `labelledBy` it is
|
|
46
|
-
* named by a prompt the screen already shows.
|
|
43
|
+
* named by a prompt the screen already shows. Its ref is the real `<input>`,
|
|
44
|
+
* so a screen can return focus to it after the field was locked.
|
|
47
45
|
*/
|
|
48
|
-
export declare const FieldOtp:
|
|
46
|
+
export declare const FieldOtp: import("react").ForwardRefExoticComponent<FieldOtpProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
49
47
|
export {};
|
|
50
48
|
//# sourceMappingURL=field-otp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-otp.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/fields/field-otp.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field-otp.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/fields/field-otp.tsx"],"names":[],"mappings":"AAGA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,iBAAiB,CAAC;AAEzB,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,cAAc,CAAC;AAEzD,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;AAE7D,KAAK,iBAAiB,GAAG;IACvB,wEAAwE;IACxE,EAAE,EAAE,MAAM,CAAC;IACX,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,wDAAwD;IACxD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,2FAA2F;IAC3F,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,+FAA+F;IAC/F,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,CACI;IACE,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,KAAK,CAAC;CACpB,GACD;IACE,oGAAoG;IACpG,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CACJ,CAAC;AAsBJ;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ,4GA4DnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-shadcn-theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-button/use-shadcn-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"use-shadcn-theme.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/login-button/use-shadcn-theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOvC;;;;;GAKG;AACH,eAAO,MAAM,cAAc,QAAS,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,OAAO,KAAG,IA+BrF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-account.d.ts","sourceRoot":"","sources":["../../src/dev-account.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dev-account.d.ts","sourceRoot":"","sources":["../../src/dev-account.tsx"],"names":[],"mappings":"AAqBA,eAAO,MAAM,UAAU,mCAItB,CAAC"}
|
package/dist/src/hocs/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hocs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hocs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-error.d.ts","sourceRoot":"","sources":["../../../src/hocs/with-error.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAc,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"with-error.d.ts","sourceRoot":"","sources":["../../../src/hocs/with-error.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAc,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAI/E,KAAK,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,mBAAmB,GAAG,aAAa,CAAC;AAMzE,eAAO,MAAM,SAAS,GACnB,CAAC,SAAS,SAAS,aAAa,aAAa,CAAC,CAAC,CAAC,kBAAkB,aAAa,CAAC,MAAM,CAAC,aAChF,CAAC,uCA8CR,CAAC;eAEW,SAAS"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentType, FC } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Renders `Component` only once the page has hydrated. The URL and the session exist only in the browser, so a screen
|
|
4
|
+
* that reads either during render renders nothing on the server and in the hydration render, and its content from
|
|
5
|
+
* the next render. A render that is not a hydration shows the screen at once.
|
|
6
|
+
*/
|
|
7
|
+
export declare const withHydration: <P extends object>(Component: ComponentType<P>) => FC<P>;
|
|
8
|
+
//# sourceMappingURL=with-hydration.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentType, FC } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Renders `Component` only once the page has hydrated. The URL and the session exist only in the browser, so a screen
|
|
4
|
+
* that reads either during render renders nothing on the server and in the hydration render, and its content from
|
|
5
|
+
* the next render. A render that is not a hydration shows the screen at once.
|
|
6
|
+
*/
|
|
7
|
+
export declare const withHydration: <P extends object>(Component: ComponentType<P>) => FC<P>;
|
|
8
|
+
//# sourceMappingURL=with-hydration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-hydration.d.ts","sourceRoot":"","sources":["../../../src/hocs/with-hydration.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAG/C;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,MAAM,aAAa,aAAa,CAAC,CAAC,CAAC,KAAG,EAAE,CAAC,CAAC,CAQjF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-app-settings.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-app-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-app-settings.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-app-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAOtH,MAAM,MAAM,mBAAmB,GAAG,MAAM;IACtC,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,8BAA8B,GAAG,IAAI,CAAC;IACtD,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACvC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,sBAAsB,EAAE,OAAO,CAAC;IAChC,aAAa,CAAC,EAAE,gBAAgB,CAAC;CAClC,CAAC;AAMF,eAAO,MAAM,cAAc,EAAE,mBAoK5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-auth-cloud-redirect.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-auth-cloud-redirect.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-auth-cloud-redirect.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-auth-cloud-redirect.ts"],"names":[],"mappings":"AAGA,KAAK,yBAAyB,GAAG,CAAC,gBAAgB,EAAE,MAAM,KAAK,MAAM,IAAI,CAAC;AAE1E,eAAO,MAAM,oBAAoB,EAAE,yBASlC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { useLayoutEffect } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A layout effect in the browser and a plain effect on the server, where a layout effect does nothing and React 18
|
|
4
|
+
* warns about it. Neither runs during a server render.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
7
|
+
//# sourceMappingURL=use-isomorphic-layout-effect.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { useLayoutEffect } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* A layout effect in the browser and a plain effect on the server, where a layout effect does nothing and React 18
|
|
4
|
+
* warns about it. Neither runs during a server render.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
7
|
+
//# sourceMappingURL=use-isomorphic-layout-effect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-isomorphic-layout-effect.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-isomorphic-layout-effect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,MAAM,OAAO,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,wBAA8D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-trusted-devices.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-trusted-devices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-trusted-devices.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-trusted-devices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAK7D,MAAM,MAAM,sBAAsB,GAAG,MAAM;IACzC,oFAAoF;IACpF,IAAI,EAAE,sBAAsB,EAAE,CAAC;IAC/B,OAAO,EAAE,MAAM,OAAO,CAAC,sBAAsB,EAAE,GAAG,IAAI,CAAC,CAAC;IACxD;;;;;OAKG;IACH,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/C,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,sBA2D/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-two-factor-status.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-two-factor-status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-two-factor-status.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-two-factor-status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAK9D,MAAM,MAAM,uBAAuB,GAAG,MAAM;IAC1C,IAAI,EAAE,uBAAuB,GAAG,IAAI,CAAC;IACrC,OAAO,EAAE,MAAM,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAAC;IACvD,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,uBAoChC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-user-passkeys.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-user-passkeys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"use-user-passkeys.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-user-passkeys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAK1D,MAAM,MAAM,oBAAoB,GAAG,MAAM;IACvC,IAAI,EAAE,mBAAmB,EAAE,CAAC;IAC5B,iBAAiB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvE,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,oBAqF7B,CAAC"}
|
package/dist/src/index.d.cts
CHANGED
|
@@ -9,5 +9,6 @@ export type { HandOff } from './context/passflow-context.cjs';
|
|
|
9
9
|
export { INERT_UPGRADE_CONTEXT, UpgradeContext, type UpgradeContextValue, type UpgradeElevateOptions, type UpgradeErrorStatusKind, type UpgradeHookState, type UpgradePromptView, type UpgradeSettledState, } from './context/upgrade-context.cjs';
|
|
10
10
|
export * from './hooks/index.cjs';
|
|
11
11
|
export type { EmailCodeStep, EmailVerificationStep } from './types/index.cjs';
|
|
12
|
+
export { startHostedSignIn } from './utils/hosted-sign-in.cjs';
|
|
12
13
|
export { attachAuth, withAuth } from './utils/upgrade-auth.cjs';
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts
CHANGED
|
@@ -9,5 +9,6 @@ export type { HandOff } from './context/passflow-context.js';
|
|
|
9
9
|
export { INERT_UPGRADE_CONTEXT, UpgradeContext, type UpgradeContextValue, type UpgradeElevateOptions, type UpgradeErrorStatusKind, type UpgradeHookState, type UpgradePromptView, type UpgradeSettledState, } from './context/upgrade-context.js';
|
|
10
10
|
export * from './hooks/index.js';
|
|
11
11
|
export type { EmailCodeStep, EmailVerificationStep } from './types/index.js';
|
|
12
|
+
export { startHostedSignIn } from './utils/hosted-sign-in.js';
|
|
12
13
|
export { attachAuth, withAuth } from './utils/upgrade-auth.js';
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,yBAAyB,CAAC;AAEjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc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B,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB,MAAM,2BAA2B,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,YAAY,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AuthRedirectOptions, Passflow } from '@passflow/core';
|
|
2
|
+
/**
|
|
3
|
+
* Starts the hosted sign-in. With no `redirectUrl`, the hosted login sends the
|
|
4
|
+
* browser back to the origin root, `${origin}/`, and the page the user started
|
|
5
|
+
* on waits in sessionStorage until `takeReturnPath()` reads it. The root works
|
|
6
|
+
* because the provider takes the sign-in return on whatever page it mounts on,
|
|
7
|
+
* and an app served from the origin root is loaded at `/` with or without an SPA
|
|
8
|
+
* fallback. An app served under a sub-path is not at `/`: it passes its own
|
|
9
|
+
* `redirectUrl`, such as `${origin}/app/`.
|
|
10
|
+
*
|
|
11
|
+
* A `redirectUrl` the caller gives is used as it is, and any page an earlier,
|
|
12
|
+
* abandoned sign-in stored is forgotten, so that landing goes nowhere else.
|
|
13
|
+
*/
|
|
14
|
+
export declare const startHostedSignIn: (passflow: Passflow, options?: AuthRedirectOptions) => Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Reads and forgets the page stored by `startHostedSignIn()`. Undefined when
|
|
17
|
+
* none is stored; `/` when the stored value is not a path on this origin.
|
|
18
|
+
*/
|
|
19
|
+
export declare const takeReturnPath: () => string | undefined;
|
|
20
|
+
//# sourceMappingURL=hosted-sign-in.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AuthRedirectOptions, Passflow } from '@passflow/core';
|
|
2
|
+
/**
|
|
3
|
+
* Starts the hosted sign-in. With no `redirectUrl`, the hosted login sends the
|
|
4
|
+
* browser back to the origin root, `${origin}/`, and the page the user started
|
|
5
|
+
* on waits in sessionStorage until `takeReturnPath()` reads it. The root works
|
|
6
|
+
* because the provider takes the sign-in return on whatever page it mounts on,
|
|
7
|
+
* and an app served from the origin root is loaded at `/` with or without an SPA
|
|
8
|
+
* fallback. An app served under a sub-path is not at `/`: it passes its own
|
|
9
|
+
* `redirectUrl`, such as `${origin}/app/`.
|
|
10
|
+
*
|
|
11
|
+
* A `redirectUrl` the caller gives is used as it is, and any page an earlier,
|
|
12
|
+
* abandoned sign-in stored is forgotten, so that landing goes nowhere else.
|
|
13
|
+
*/
|
|
14
|
+
export declare const startHostedSignIn: (passflow: Passflow, options?: AuthRedirectOptions) => Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* Reads and forgets the page stored by `startHostedSignIn()`. Undefined when
|
|
17
|
+
* none is stored; `/` when the stored value is not a path on this origin.
|
|
18
|
+
*/
|
|
19
|
+
export declare const takeReturnPath: () => string | undefined;
|
|
20
|
+
//# sourceMappingURL=hosted-sign-in.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hosted-sign-in.d.ts","sourceRoot":"","sources":["../../../src/utils/hosted-sign-in.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAIpE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,aAAc,QAAQ,YAAY,mBAAmB,KAAG,OAAO,CAAC,IAAI,CAYjG,CAAC;AAyBF;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,MAAM,GAAG,SAU1C,CAAC"}
|
|
@@ -9,6 +9,7 @@ export { type AuthMethods, getAuthMethods } from './get-auth-methods.cjs';
|
|
|
9
9
|
export { getIdentityLabel, getPasswordlessData, getValidationErrorsLabel } from './get-form-labels.cjs';
|
|
10
10
|
export { getUrlErrors } from './get-url-errors.cjs';
|
|
11
11
|
export { getUrlWithTokens, type TokenUrlFormat } from './get-url-with-tokens.cjs';
|
|
12
|
+
export { startHostedSignIn, takeReturnPath } from './hosted-sign-in.cjs';
|
|
12
13
|
export { getInvitationAuthChrome, type InvitationAuthIntent } from './invitation-auth-chrome.cjs';
|
|
13
14
|
export { inAppPath, isSameOriginPath, isSignInPage } from './is-sign-in-page.cjs';
|
|
14
15
|
export { routeToSecondFactor, signInSearch, urlCarriesTwoFactorToken } from './second-factor.cjs';
|
|
@@ -9,6 +9,7 @@ export { type AuthMethods, getAuthMethods } from './get-auth-methods.js';
|
|
|
9
9
|
export { getIdentityLabel, getPasswordlessData, getValidationErrorsLabel } from './get-form-labels.js';
|
|
10
10
|
export { getUrlErrors } from './get-url-errors.js';
|
|
11
11
|
export { getUrlWithTokens, type TokenUrlFormat } from './get-url-with-tokens.js';
|
|
12
|
+
export { startHostedSignIn, takeReturnPath } from './hosted-sign-in.js';
|
|
12
13
|
export { getInvitationAuthChrome, type InvitationAuthIntent } from './invitation-auth-chrome.js';
|
|
13
14
|
export { inAppPath, isSameOriginPath, isSignInPage } from './is-sign-in-page.js';
|
|
14
15
|
export { routeToSecondFactor, signInSearch, urlCarriesTwoFactorToken } from './second-factor.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,6BAA6B,EAC7B,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,YAAY,EACZ,aAAa,EACb,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,6BAA6B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