@passflow/react 0.0.1
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/README.md +844 -0
- package/dist/index.cjs.js +34 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.es.js +5098 -0
- package/dist/index.es.js.map +1 -0
- package/dist/playwright/fixture/index.d.ts +3 -0
- package/dist/playwright/fixture/index.d.ts.map +1 -0
- package/dist/playwright/playwright.config.d.ts +10 -0
- package/dist/playwright/playwright.config.d.ts.map +1 -0
- package/dist/playwright/tests/invitation-flow.spec.d.ts +2 -0
- package/dist/playwright/tests/invitation-flow.spec.d.ts.map +1 -0
- package/dist/playwright/tests/signin.spec.d.ts +2 -0
- package/dist/playwright/tests/signin.spec.d.ts.map +1 -0
- package/dist/playwright/tests/signup.spec.d.ts +2 -0
- package/dist/playwright/tests/signup.spec.d.ts.map +1 -0
- package/dist/playwright/tests/validate.spec.d.ts +2 -0
- package/dist/playwright/tests/validate.spec.d.ts.map +1 -0
- package/dist/src/app.d.ts +5 -0
- package/dist/src/app.d.ts.map +1 -0
- package/dist/src/components/error/index.d.ts +7 -0
- package/dist/src/components/error/index.d.ts.map +1 -0
- package/dist/src/components/flow/index.d.ts +2 -0
- package/dist/src/components/flow/index.d.ts.map +1 -0
- package/dist/src/components/flow/passflow/index.d.ts +12 -0
- package/dist/src/components/flow/passflow/index.d.ts.map +1 -0
- package/dist/src/components/form/forgot-password/forgot-password-success.d.ts +2 -0
- package/dist/src/components/form/forgot-password/forgot-password-success.d.ts.map +1 -0
- package/dist/src/components/form/forgot-password/forgot-password.d.ts +9 -0
- package/dist/src/components/form/forgot-password/forgot-password.d.ts.map +1 -0
- package/dist/src/components/form/forgot-password/index.d.ts +3 -0
- package/dist/src/components/form/forgot-password/index.d.ts.map +1 -0
- package/dist/src/components/form/index.d.ts +8 -0
- package/dist/src/components/form/index.d.ts.map +1 -0
- package/dist/src/components/form/invitation-join/index.d.ts +8 -0
- package/dist/src/components/form/invitation-join/index.d.ts.map +1 -0
- package/dist/src/components/form/reset-password/index.d.ts +8 -0
- package/dist/src/components/form/reset-password/index.d.ts.map +1 -0
- package/dist/src/components/form/signin/index.d.ts +14 -0
- package/dist/src/components/form/signin/index.d.ts.map +1 -0
- package/dist/src/components/form/signup/index.d.ts +13 -0
- package/dist/src/components/form/signup/index.d.ts.map +1 -0
- package/dist/src/components/form/verify-challenge/index.d.ts +3 -0
- package/dist/src/components/form/verify-challenge/index.d.ts.map +1 -0
- package/dist/src/components/form/verify-challenge/timer-button.d.ts +9 -0
- package/dist/src/components/form/verify-challenge/timer-button.d.ts.map +1 -0
- package/dist/src/components/form/verify-challenge/varify-challenge-otp-redirect.d.ts +9 -0
- package/dist/src/components/form/verify-challenge/varify-challenge-otp-redirect.d.ts.map +1 -0
- package/dist/src/components/form/verify-challenge/varify-challenge-success.d.ts +3 -0
- package/dist/src/components/form/verify-challenge/varify-challenge-success.d.ts.map +1 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts +2 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-magic-link.d.ts.map +1 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-manual.d.ts +15 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-otp-manual.d.ts.map +1 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.ts +11 -0
- package/dist/src/components/form/verify-challenge/verify-challenge-otp.d.ts.map +1 -0
- package/dist/src/components/form/wrapper/index.d.ts +13 -0
- package/dist/src/components/form/wrapper/index.d.ts.map +1 -0
- package/dist/src/components/passkey/index.d.ts +7 -0
- package/dist/src/components/passkey/index.d.ts.map +1 -0
- package/dist/src/components/passkey/passkey-actions.d.ts +13 -0
- package/dist/src/components/passkey/passkey-actions.d.ts.map +1 -0
- package/dist/src/components/passkey/passkey-dialog.d.ts +10 -0
- package/dist/src/components/passkey/passkey-dialog.d.ts.map +1 -0
- package/dist/src/components/passkey/passkey-list.d.ts +9 -0
- package/dist/src/components/passkey/passkey-list.d.ts.map +1 -0
- package/dist/src/components/provider/index.d.ts +2 -0
- package/dist/src/components/provider/index.d.ts.map +1 -0
- package/dist/src/components/provider/passflow-provider.d.ts +11 -0
- package/dist/src/components/provider/passflow-provider.d.ts.map +1 -0
- package/dist/src/components/ui/button/index.d.ts +19 -0
- package/dist/src/components/ui/button/index.d.ts.map +1 -0
- package/dist/src/components/ui/dialog/index.d.ts +20 -0
- package/dist/src/components/ui/dialog/index.d.ts.map +1 -0
- package/dist/src/components/ui/fields/field-password.d.ts +13 -0
- package/dist/src/components/ui/fields/field-password.d.ts.map +1 -0
- package/dist/src/components/ui/fields/field-phone.d.ts +11 -0
- package/dist/src/components/ui/fields/field-phone.d.ts.map +1 -0
- package/dist/src/components/ui/fields/field-text.d.ts +8 -0
- package/dist/src/components/ui/fields/field-text.d.ts.map +1 -0
- package/dist/src/components/ui/fields/index.d.ts +4 -0
- package/dist/src/components/ui/fields/index.d.ts.map +1 -0
- package/dist/src/components/ui/icon/index.d.ts +9 -0
- package/dist/src/components/ui/icon/index.d.ts.map +1 -0
- package/dist/src/components/ui/index.d.ts +9 -0
- package/dist/src/components/ui/index.d.ts.map +1 -0
- package/dist/src/components/ui/link/index.d.ts +11 -0
- package/dist/src/components/ui/link/index.d.ts.map +1 -0
- package/dist/src/components/ui/popover/index.d.ts +7 -0
- package/dist/src/components/ui/popover/index.d.ts.map +1 -0
- package/dist/src/components/ui/providers-box/index.d.ts +10 -0
- package/dist/src/components/ui/providers-box/index.d.ts.map +1 -0
- package/dist/src/components/ui/switch/index.d.ts +9 -0
- package/dist/src/components/ui/switch/index.d.ts.map +1 -0
- package/dist/src/constants/countries-phone-code.d.ts +253 -0
- package/dist/src/constants/countries-phone-code.d.ts.map +1 -0
- package/dist/src/constants/formats.d.ts +4 -0
- package/dist/src/constants/formats.d.ts.map +1 -0
- package/dist/src/constants/index.d.ts +3 -0
- package/dist/src/constants/index.d.ts.map +1 -0
- package/dist/src/context/auth-context.d.ts +14 -0
- package/dist/src/context/auth-context.d.ts.map +1 -0
- package/dist/src/context/index.d.ts +5 -0
- package/dist/src/context/index.d.ts.map +1 -0
- package/dist/src/context/navigation-context.d.ts +15 -0
- package/dist/src/context/navigation-context.d.ts.map +1 -0
- package/dist/src/context/passflow-context.d.ts +24 -0
- package/dist/src/context/passflow-context.d.ts.map +1 -0
- package/dist/src/context/router-context.d.ts +30 -0
- package/dist/src/context/router-context.d.ts.map +1 -0
- package/dist/src/hocs/index.d.ts +2 -0
- package/dist/src/hocs/index.d.ts.map +1 -0
- package/dist/src/hocs/with-error.d.ts +8 -0
- package/dist/src/hocs/with-error.d.ts.map +1 -0
- package/dist/src/hooks/index.d.ts +16 -0
- package/dist/src/hooks/index.d.ts.map +1 -0
- package/dist/src/hooks/use-app-settings.d.ts +16 -0
- package/dist/src/hooks/use-app-settings.d.ts.map +1 -0
- package/dist/src/hooks/use-auth-cloud-redirect.d.ts +4 -0
- package/dist/src/hooks/use-auth-cloud-redirect.d.ts.map +1 -0
- package/dist/src/hooks/use-auth.d.ts +3 -0
- package/dist/src/hooks/use-auth.d.ts.map +1 -0
- package/dist/src/hooks/use-forgot-password.d.ts +10 -0
- package/dist/src/hooks/use-forgot-password.d.ts.map +1 -0
- package/dist/src/hooks/use-join-invite.d.ts +8 -0
- package/dist/src/hooks/use-join-invite.d.ts.map +1 -0
- package/dist/src/hooks/use-logout.d.ts +8 -0
- package/dist/src/hooks/use-logout.d.ts.map +1 -0
- package/dist/src/hooks/use-navigation.d.ts +27 -0
- package/dist/src/hooks/use-navigation.d.ts.map +1 -0
- package/dist/src/hooks/use-outsideclick.d.ts +3 -0
- package/dist/src/hooks/use-outsideclick.d.ts.map +1 -0
- package/dist/src/hooks/use-passflow-store.d.ts +3 -0
- package/dist/src/hooks/use-passflow-store.d.ts.map +1 -0
- package/dist/src/hooks/use-passflow.d.ts +3 -0
- package/dist/src/hooks/use-passflow.d.ts.map +1 -0
- package/dist/src/hooks/use-passwordless-complete.d.ts +10 -0
- package/dist/src/hooks/use-passwordless-complete.d.ts.map +1 -0
- package/dist/src/hooks/use-provider.d.ts +7 -0
- package/dist/src/hooks/use-provider.d.ts.map +1 -0
- package/dist/src/hooks/use-reset-password.d.ts +9 -0
- package/dist/src/hooks/use-reset-password.d.ts.map +1 -0
- package/dist/src/hooks/use-signin.d.ts +10 -0
- package/dist/src/hooks/use-signin.d.ts.map +1 -0
- package/dist/src/hooks/use-signup.d.ts +10 -0
- package/dist/src/hooks/use-signup.d.ts.map +1 -0
- package/dist/src/hooks/use-user-passkeys.d.ts +12 -0
- package/dist/src/hooks/use-user-passkeys.d.ts.map +1 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/main.d.ts +1 -0
- package/dist/src/main.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +5 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/utils/cn/index.d.ts +3 -0
- package/dist/src/utils/cn/index.d.ts.map +1 -0
- package/dist/src/utils/dayjs/format.d.ts +8 -0
- package/dist/src/utils/dayjs/format.d.ts.map +1 -0
- package/dist/src/utils/dayjs/index.d.ts +2 -0
- package/dist/src/utils/dayjs/index.d.ts.map +1 -0
- package/dist/src/utils/get-app-version/index.d.ts +7 -0
- package/dist/src/utils/get-app-version/index.d.ts.map +1 -0
- package/dist/src/utils/get-auth-methods/index.d.ts +30 -0
- package/dist/src/utils/get-auth-methods/index.d.ts.map +1 -0
- package/dist/src/utils/get-form-labels/index.d.ts +10 -0
- package/dist/src/utils/get-form-labels/index.d.ts.map +1 -0
- package/dist/src/utils/get-url-errors/index.d.ts +5 -0
- package/dist/src/utils/get-url-errors/index.d.ts.map +1 -0
- package/dist/src/utils/get-url-with-tokens/index.d.ts +3 -0
- package/dist/src/utils/get-url-with-tokens/index.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +11 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/undefined-on-catch/index.d.ts +2 -0
- package/dist/src/utils/undefined-on-catch/index.d.ts.map +1 -0
- package/dist/src/utils/url-params/index.d.ts +14 -0
- package/dist/src/utils/url-params/index.d.ts.map +1 -0
- package/dist/src/utils/validate-url/index.d.ts +2 -0
- package/dist/src/utils/validate-url/index.d.ts.map +1 -0
- package/dist/src/utils/validation-schemas/index.d.ts +6 -0
- package/dist/src/utils/validation-schemas/index.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +129 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Providers } from '@passflow/core';
|
|
3
|
+
type TProvidersBox = {
|
|
4
|
+
providers: Providers[];
|
|
5
|
+
onClick: (provider: Providers) => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const ProvidersBox: FC<TProvidersBox>;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/providers-box/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,OAAO,EAAE,CAAC,QAAQ,EAAE,SAAS,KAAK,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,aAAa,CAuB1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/switch/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE7C,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC1D,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,OAAO,CAM9B,CAAC"}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
export declare const countriesPhoneCode: {
|
|
2
|
+
AD: string;
|
|
3
|
+
AE: string;
|
|
4
|
+
AF: string;
|
|
5
|
+
AG: string;
|
|
6
|
+
AI: string;
|
|
7
|
+
AL: string;
|
|
8
|
+
AM: string;
|
|
9
|
+
AO: string;
|
|
10
|
+
AQ: string;
|
|
11
|
+
AR: string;
|
|
12
|
+
AS: string;
|
|
13
|
+
AT: string;
|
|
14
|
+
AU: string;
|
|
15
|
+
AW: string;
|
|
16
|
+
AX: string;
|
|
17
|
+
AZ: string;
|
|
18
|
+
BA: string;
|
|
19
|
+
BB: string;
|
|
20
|
+
BD: string;
|
|
21
|
+
BE: string;
|
|
22
|
+
BF: string;
|
|
23
|
+
BG: string;
|
|
24
|
+
BH: string;
|
|
25
|
+
BI: string;
|
|
26
|
+
BJ: string;
|
|
27
|
+
BL: string;
|
|
28
|
+
BM: string;
|
|
29
|
+
BN: string;
|
|
30
|
+
BO: string;
|
|
31
|
+
BQ: string;
|
|
32
|
+
BR: string;
|
|
33
|
+
BS: string;
|
|
34
|
+
BT: string;
|
|
35
|
+
BV: null;
|
|
36
|
+
BW: string;
|
|
37
|
+
BY: string;
|
|
38
|
+
BZ: string;
|
|
39
|
+
CA: string;
|
|
40
|
+
CC: string;
|
|
41
|
+
CD: string;
|
|
42
|
+
CF: string;
|
|
43
|
+
CG: string;
|
|
44
|
+
CH: string;
|
|
45
|
+
CI: string;
|
|
46
|
+
CK: string;
|
|
47
|
+
CL: string;
|
|
48
|
+
CM: string;
|
|
49
|
+
CN: string;
|
|
50
|
+
CO: string;
|
|
51
|
+
CR: string;
|
|
52
|
+
CU: string;
|
|
53
|
+
CV: string;
|
|
54
|
+
CW: string;
|
|
55
|
+
CX: string;
|
|
56
|
+
CY: string;
|
|
57
|
+
CZ: string;
|
|
58
|
+
DE: string;
|
|
59
|
+
DJ: string;
|
|
60
|
+
DK: string;
|
|
61
|
+
DM: string;
|
|
62
|
+
DO: string;
|
|
63
|
+
DZ: string;
|
|
64
|
+
EC: string;
|
|
65
|
+
EE: string;
|
|
66
|
+
EG: string;
|
|
67
|
+
EH: string;
|
|
68
|
+
ER: string;
|
|
69
|
+
ES: string;
|
|
70
|
+
ET: string;
|
|
71
|
+
FI: string;
|
|
72
|
+
FJ: string;
|
|
73
|
+
FK: string;
|
|
74
|
+
FM: string;
|
|
75
|
+
FO: string;
|
|
76
|
+
FR: string;
|
|
77
|
+
GA: string;
|
|
78
|
+
GB: string;
|
|
79
|
+
GD: string;
|
|
80
|
+
GE: string;
|
|
81
|
+
GF: string;
|
|
82
|
+
GG: string;
|
|
83
|
+
GH: string;
|
|
84
|
+
GI: string;
|
|
85
|
+
GL: string;
|
|
86
|
+
GM: string;
|
|
87
|
+
GN: string;
|
|
88
|
+
GP: string;
|
|
89
|
+
GQ: string;
|
|
90
|
+
GR: string;
|
|
91
|
+
GS: null;
|
|
92
|
+
GT: string;
|
|
93
|
+
GU: string;
|
|
94
|
+
GW: string;
|
|
95
|
+
GY: string;
|
|
96
|
+
HK: string;
|
|
97
|
+
HM: null;
|
|
98
|
+
HN: string;
|
|
99
|
+
HR: string;
|
|
100
|
+
HT: string;
|
|
101
|
+
HU: string;
|
|
102
|
+
ID: string;
|
|
103
|
+
IE: string;
|
|
104
|
+
IL: string;
|
|
105
|
+
IM: string;
|
|
106
|
+
IN: string;
|
|
107
|
+
IO: string;
|
|
108
|
+
IQ: string;
|
|
109
|
+
IR: string;
|
|
110
|
+
IS: string;
|
|
111
|
+
IT: string;
|
|
112
|
+
JE: string;
|
|
113
|
+
JM: string;
|
|
114
|
+
JO: string;
|
|
115
|
+
JP: string;
|
|
116
|
+
KE: string;
|
|
117
|
+
KG: string;
|
|
118
|
+
KH: string;
|
|
119
|
+
KI: string;
|
|
120
|
+
KM: string;
|
|
121
|
+
KN: string;
|
|
122
|
+
KP: string;
|
|
123
|
+
KR: string;
|
|
124
|
+
KW: string;
|
|
125
|
+
KY: string;
|
|
126
|
+
KZ: string;
|
|
127
|
+
LA: string;
|
|
128
|
+
LB: string;
|
|
129
|
+
LC: string;
|
|
130
|
+
LI: string;
|
|
131
|
+
LK: string;
|
|
132
|
+
LR: string;
|
|
133
|
+
LS: string;
|
|
134
|
+
LT: string;
|
|
135
|
+
LU: string;
|
|
136
|
+
LV: string;
|
|
137
|
+
LY: string;
|
|
138
|
+
MA: string;
|
|
139
|
+
MC: string;
|
|
140
|
+
MD: string;
|
|
141
|
+
ME: string;
|
|
142
|
+
MF: string;
|
|
143
|
+
MG: string;
|
|
144
|
+
MH: string;
|
|
145
|
+
MK: string;
|
|
146
|
+
ML: string;
|
|
147
|
+
MM: string;
|
|
148
|
+
MN: string;
|
|
149
|
+
MO: string;
|
|
150
|
+
MP: string;
|
|
151
|
+
MQ: string;
|
|
152
|
+
MR: string;
|
|
153
|
+
MS: string;
|
|
154
|
+
MT: string;
|
|
155
|
+
MU: string;
|
|
156
|
+
MV: string;
|
|
157
|
+
MW: string;
|
|
158
|
+
MX: string;
|
|
159
|
+
MY: string;
|
|
160
|
+
MZ: string;
|
|
161
|
+
NA: string;
|
|
162
|
+
NC: string;
|
|
163
|
+
NE: string;
|
|
164
|
+
NF: string;
|
|
165
|
+
NG: string;
|
|
166
|
+
NI: string;
|
|
167
|
+
NL: string;
|
|
168
|
+
NO: string;
|
|
169
|
+
NP: string;
|
|
170
|
+
NR: string;
|
|
171
|
+
NU: string;
|
|
172
|
+
NZ: string;
|
|
173
|
+
OM: string;
|
|
174
|
+
PA: string;
|
|
175
|
+
PE: string;
|
|
176
|
+
PF: string;
|
|
177
|
+
PG: string;
|
|
178
|
+
PH: string;
|
|
179
|
+
PK: string;
|
|
180
|
+
PL: string;
|
|
181
|
+
PM: string;
|
|
182
|
+
PN: string;
|
|
183
|
+
PR: string;
|
|
184
|
+
PS: string;
|
|
185
|
+
PT: string;
|
|
186
|
+
PW: string;
|
|
187
|
+
PY: string;
|
|
188
|
+
QA: string;
|
|
189
|
+
RE: string;
|
|
190
|
+
RO: string;
|
|
191
|
+
RS: string;
|
|
192
|
+
RU: string;
|
|
193
|
+
RW: string;
|
|
194
|
+
SA: string;
|
|
195
|
+
SB: string;
|
|
196
|
+
SC: string;
|
|
197
|
+
SD: string;
|
|
198
|
+
SE: string;
|
|
199
|
+
SG: string;
|
|
200
|
+
SH: string;
|
|
201
|
+
SI: string;
|
|
202
|
+
SJ: string;
|
|
203
|
+
SK: string;
|
|
204
|
+
SL: string;
|
|
205
|
+
SM: string;
|
|
206
|
+
SN: string;
|
|
207
|
+
SO: string;
|
|
208
|
+
SR: string;
|
|
209
|
+
SS: string;
|
|
210
|
+
ST: string;
|
|
211
|
+
SV: string;
|
|
212
|
+
SX: string;
|
|
213
|
+
SY: string;
|
|
214
|
+
SZ: string;
|
|
215
|
+
TC: string;
|
|
216
|
+
TD: string;
|
|
217
|
+
TF: null;
|
|
218
|
+
TG: string;
|
|
219
|
+
TH: string;
|
|
220
|
+
TJ: string;
|
|
221
|
+
TK: string;
|
|
222
|
+
TL: string;
|
|
223
|
+
TM: string;
|
|
224
|
+
TN: string;
|
|
225
|
+
TO: string;
|
|
226
|
+
TR: string;
|
|
227
|
+
TT: string;
|
|
228
|
+
TV: string;
|
|
229
|
+
TW: string;
|
|
230
|
+
TZ: string;
|
|
231
|
+
UA: string;
|
|
232
|
+
UG: string;
|
|
233
|
+
UM: string;
|
|
234
|
+
US: string;
|
|
235
|
+
UY: string;
|
|
236
|
+
UZ: string;
|
|
237
|
+
VA: string;
|
|
238
|
+
VC: string;
|
|
239
|
+
VE: string;
|
|
240
|
+
VG: string;
|
|
241
|
+
VI: string;
|
|
242
|
+
VN: string;
|
|
243
|
+
VU: string;
|
|
244
|
+
WF: string;
|
|
245
|
+
WS: string;
|
|
246
|
+
XK: string;
|
|
247
|
+
YE: string;
|
|
248
|
+
YT: string;
|
|
249
|
+
ZA: string;
|
|
250
|
+
ZM: string;
|
|
251
|
+
ZW: string;
|
|
252
|
+
};
|
|
253
|
+
//# sourceMappingURL=countries-phone-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"countries-phone-code.d.ts","sourceRoot":"","sources":["../../../src/constants/countries-phone-code.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2P9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formats.d.ts","sourceRoot":"","sources":["../../../src/constants/formats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ParsedTokens, Tokens } from '@passflow/core';
|
|
2
|
+
import { default as React, FC, PropsWithChildren } from 'react';
|
|
3
|
+
export type AuthContextValue = {
|
|
4
|
+
isAuthenticated: () => boolean;
|
|
5
|
+
logout: () => void;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
getTokens: (doRefresh: boolean) => Promise<{
|
|
8
|
+
tokens: Tokens | undefined;
|
|
9
|
+
parsedTokens: ParsedTokens | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
};
|
|
12
|
+
export declare const AuthContext: React.Context<AuthContextValue | undefined>;
|
|
13
|
+
export declare const AuthProvider: FC<PropsWithChildren>;
|
|
14
|
+
//# sourceMappingURL=auth-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-context.d.ts","sourceRoot":"","sources":["../../../src/context/auth-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAwC,MAAM,OAAO,CAAC;AAGrG,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,EAAE,MAAM,OAAO,CAAC;IAC/B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,YAAY,EAAE,YAAY,GAAG,SAAS,CAAA;KAAE,CAAC,CAAC;CACpH,CAAC;AAEF,eAAO,MAAM,WAAW,6CAAyD,CAAC;AAElF,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA0C9C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type NavigateOptions = {
|
|
2
|
+
to: string;
|
|
3
|
+
search?: string;
|
|
4
|
+
replace?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type RouterType = 'default' | 'react-router' | 'tanstack-router' | 'wouter';
|
|
7
|
+
export type NavigateFunction = (options: NavigateOptions) => void;
|
|
8
|
+
export type NavigationContextType = {
|
|
9
|
+
navigate: NavigateFunction;
|
|
10
|
+
setNavigate: (navigate: NavigateFunction | null) => void;
|
|
11
|
+
router: RouterType;
|
|
12
|
+
};
|
|
13
|
+
export declare const defaultNavigate: NavigateFunction;
|
|
14
|
+
export declare const NavigationContext: import('react').Context<NavigationContextType>;
|
|
15
|
+
//# sourceMappingURL=navigation-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-context.d.ts","sourceRoot":"","sources":["../../../src/context/navigation-context.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,cAAc,GAAG,iBAAiB,GAAG,QAAQ,CAAC;AAEnF,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAC;AAElE,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,WAAW,EAAE,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAC;IACzD,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,gBAO7B,CAAC;AAEF,eAAO,MAAM,iBAAiB,gDAI5B,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AppSettings, Passflow, PassflowPasswordPolicySettings } from '@passflow/core';
|
|
2
|
+
import { Dispatch } from 'react';
|
|
3
|
+
export type PassflowState = {
|
|
4
|
+
appSettings: AppSettings | null;
|
|
5
|
+
passwordPolicy: PassflowPasswordPolicySettings | null;
|
|
6
|
+
url?: string;
|
|
7
|
+
appId?: string;
|
|
8
|
+
scopes?: string[];
|
|
9
|
+
createTenantForNewUser?: boolean;
|
|
10
|
+
parseQueryParams?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type PassflowAction = {
|
|
13
|
+
type: 'SET_PASSFLOW_STATE';
|
|
14
|
+
payload: PassflowState;
|
|
15
|
+
};
|
|
16
|
+
export type PassflowContextType = {
|
|
17
|
+
state: PassflowState;
|
|
18
|
+
dispatch: Dispatch<PassflowAction>;
|
|
19
|
+
passflow: Passflow;
|
|
20
|
+
};
|
|
21
|
+
export declare const initialState: PassflowState;
|
|
22
|
+
export declare const PassflowContext: import('react').Context<PassflowContextType | undefined>;
|
|
23
|
+
export declare const passflowReducer: (state: PassflowState, action: PassflowAction) => PassflowState;
|
|
24
|
+
//# sourceMappingURL=passflow-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passflow-context.d.ts","sourceRoot":"","sources":["../../../src/context/passflow-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAC5F,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,OAAO,CAAC;AAErD,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IAChC,cAAc,EAAE,8BAA8B,GAAG,IAAI,CAAC;IACtD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,OAAO,EAAE,aAAa,CAAA;CAAE,CAAC;AAEpF,MAAM,MAAM,mBAAmB,GAAG;IAChC,KAAK,EAAE,aAAa,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;IACnC,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,aAQ1B,CAAC;AAEF,eAAO,MAAM,eAAe,0DAA4D,CAAC;AAEzF,eAAO,MAAM,eAAe,GAAI,OAAO,aAAa,EAAE,QAAQ,cAAc,KAAG,aAO9E,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const routes: {
|
|
2
|
+
signin: {
|
|
3
|
+
path: string;
|
|
4
|
+
};
|
|
5
|
+
signup: {
|
|
6
|
+
path: string;
|
|
7
|
+
};
|
|
8
|
+
verify_otp: {
|
|
9
|
+
path: string;
|
|
10
|
+
};
|
|
11
|
+
verify_magic_link: {
|
|
12
|
+
path: string;
|
|
13
|
+
};
|
|
14
|
+
forgot_password: {
|
|
15
|
+
path: string;
|
|
16
|
+
};
|
|
17
|
+
forgot_password_success: {
|
|
18
|
+
path: string;
|
|
19
|
+
};
|
|
20
|
+
reset_password: {
|
|
21
|
+
path: string;
|
|
22
|
+
};
|
|
23
|
+
invitation: {
|
|
24
|
+
path: string;
|
|
25
|
+
};
|
|
26
|
+
passkey: {
|
|
27
|
+
path: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=router-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router-context.d.ts","sourceRoot":"","sources":["../../../src/context/router-context.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hocs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TError } from '../components/error';
|
|
2
|
+
import { PassflowProps } from '../components/flow/passflow';
|
|
3
|
+
import { TInvitationJoinFlow, TSignIn, TSignUp } from '../components/form';
|
|
4
|
+
import { default as React, ComponentType } from 'react';
|
|
5
|
+
type UnionType = TSignIn | TSignUp | TInvitationJoinFlow | PassflowProps;
|
|
6
|
+
export declare const withError: <P extends UnionType>(Component: ComponentType<P>, ErrorComponent: ComponentType<TError>) => (props: P) => React.JSX.Element;
|
|
7
|
+
export default withError;
|
|
8
|
+
//# sourceMappingURL=with-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-error.d.ts","sourceRoot":"","sources":["../../../src/hocs/with-error.tsx"],"names":[],"mappings":"AAAA,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;AAE/E,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,aAAa,EAAc,MAAM,OAAO,CAAC;AAGvD,KAAK,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,mBAAmB,GAAG,aAAa,CAAC;AAQzE,eAAO,MAAM,SAAS,GACnB,CAAC,SAAS,SAAS,EAAE,WAAW,aAAa,CAAC,CAAC,CAAC,EAAE,gBAAgB,aAAa,CAAC,MAAM,CAAC,MACvF,OAAO,CAAC,sBAoBR,CAAC;AAEJ,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { useSignIn, type UseSignInProps } from './use-signin';
|
|
2
|
+
export { useProvider, type UseProviderProps } from './use-provider';
|
|
3
|
+
export { useSignUp, type UseSignUpProps } from './use-signup';
|
|
4
|
+
export { useForgotPassword, type UseForgotPasswordProps } from './use-forgot-password';
|
|
5
|
+
export { useResetPassword, type UseResetPasswordProps } from './use-reset-password';
|
|
6
|
+
export { useAppSettings, type UseAppSettingsProps } from './use-app-settings';
|
|
7
|
+
export { usePassflow } from './use-passflow';
|
|
8
|
+
export { usePasswordlessComplete, type UsePasswordlessCompleteProps } from './use-passwordless-complete';
|
|
9
|
+
export { useAuth } from './use-auth';
|
|
10
|
+
export { useLogout, type UseLogoutProps } from './use-logout';
|
|
11
|
+
export { useUserPasskeys, type UseUserPasskeysProps } from './use-user-passkeys';
|
|
12
|
+
export { useAuthCloudRedirect } from './use-auth-cloud-redirect';
|
|
13
|
+
export { useJoinInvite } from './use-join-invite';
|
|
14
|
+
export { useOutsideClick } from './use-outsideclick';
|
|
15
|
+
export { useNavigation } from './use-navigation';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACvF,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,KAAK,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AACzG,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AppSettings, LoginWebAppStyle, LoginWebAppTheme, PassflowPasswordPolicySettings } from '@passflow/core';
|
|
2
|
+
export type UseAppSettingsProps = () => {
|
|
3
|
+
appSettings: AppSettings | null;
|
|
4
|
+
passwordPolicy: PassflowPasswordPolicySettings | null;
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
isError: boolean;
|
|
7
|
+
error: string;
|
|
8
|
+
reset: () => void;
|
|
9
|
+
currentTheme: string;
|
|
10
|
+
currentStyles: LoginWebAppStyle | null;
|
|
11
|
+
scopes: string[];
|
|
12
|
+
createTenantForNewUser: boolean;
|
|
13
|
+
loginAppTheme?: LoginWebAppTheme;
|
|
14
|
+
};
|
|
15
|
+
export declare const useAppSettings: UseAppSettingsProps;
|
|
16
|
+
//# sourceMappingURL=use-app-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-app-settings.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-app-settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,8BAA8B,EAC/B,MAAM,gBAAgB,CAAC;AAKxB,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,mBAuH5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-auth-cloud-redirect.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-auth-cloud-redirect.ts"],"names":[],"mappings":"AAEA,KAAK,yBAAyB,GAAG,CAAC,gBAAgB,EAAE,MAAM,KAAK,MAAM,IAAI,CAAC;AAE1E,eAAO,MAAM,oBAAoB,EAAE,yBAMlC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-auth.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG/D,eAAO,MAAM,OAAO,QAAO,gBAO1B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PassflowSendPasswordResetEmailPayload } from '@passflow/core';
|
|
2
|
+
export type UseForgotPasswordProps = () => {
|
|
3
|
+
fetch: (payload: PassflowSendPasswordResetEmailPayload) => Promise<boolean>;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
error: string;
|
|
7
|
+
reset: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const useForgotPassword: UseForgotPasswordProps;
|
|
10
|
+
//# sourceMappingURL=use-forgot-password.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-forgot-password.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-forgot-password.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,gBAAgB,CAAC;AAI5E,MAAM,MAAM,sBAAsB,GAAG,MAAM;IACzC,KAAK,EAAE,CAAC,OAAO,EAAE,qCAAqC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5E,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,sBA8B/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-join-invite.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-join-invite.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,kBAAkB,GAAG,MAAM;IACrC,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,kBAwB3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-logout.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-logout.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,cAAc,GAAG,MAAM;IACjC,KAAK,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,cAqBvB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { NavigateFunction, NavigateOptions } from '../context';
|
|
2
|
+
export type ReactRouterNavigateOptions = {
|
|
3
|
+
pathname: string;
|
|
4
|
+
search: string;
|
|
5
|
+
replace?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export type TanstackRouterNavigateOptions = {
|
|
8
|
+
to: string;
|
|
9
|
+
search: Record<string, unknown>;
|
|
10
|
+
replace?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type WouterNavigateOptions = {
|
|
13
|
+
to: string;
|
|
14
|
+
search?: Record<string, unknown>;
|
|
15
|
+
replace?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type ReachRouterNavigateOptions = {
|
|
18
|
+
to: string;
|
|
19
|
+
search?: Record<string, unknown>;
|
|
20
|
+
replace?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare const useNavigation: () => {
|
|
23
|
+
navigate: NavigateFunction;
|
|
24
|
+
setNavigate: (newNavigate: ((to: NavigateOptions | string | ReactRouterNavigateOptions | TanstackRouterNavigateOptions | WouterNavigateOptions | ReachRouterNavigateOptions) => void) | null) => void;
|
|
25
|
+
router: import('../context').RouterType;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=use-navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-navigation.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAqB,MAAM,WAAW,CAAC;AAI3F,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAQF,eAAO,MAAM,aAAa;;+BAMhB,CAAC,CACC,EAAE,EACE,eAAe,GACf,MAAM,GACN,0BAA0B,GAC1B,6BAA6B,GAC7B,qBAAqB,GACrB,0BAA0B,KAC3B,IAAI,CAAC,GACV,IAAI;;CAuDb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-outsideclick.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-outsideclick.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAC;AAElD,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,WAAW,EAAE,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,iBAAiB,MAAM,IAAI,SAgBpG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-passflow-store.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-passflow-store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,aAAa,EAAsB,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAI1F,wBAAgB,gBAAgB,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,sBAIxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-passflow.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-passflow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,eAAO,MAAM,WAAW,QAAO,QAS9B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PassflowPasswordlessSignInCompletePayload, PassflowValidationResponse } from '@passflow/core';
|
|
2
|
+
export type UsePasswordlessCompleteProps = () => {
|
|
3
|
+
fetch: (payload: PassflowPasswordlessSignInCompletePayload) => Promise<PassflowValidationResponse | null>;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
error: string;
|
|
7
|
+
reset: () => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const usePasswordlessComplete: UsePasswordlessCompleteProps;
|
|
10
|
+
//# sourceMappingURL=use-passwordless-complete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-passwordless-complete.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-passwordless-complete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yCAAyC,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAI5G,MAAM,MAAM,4BAA4B,GAAG,MAAM;IAC/C,KAAK,EAAE,CAAC,OAAO,EAAE,yCAAyC,KAAK,OAAO,CAAC,0BAA0B,GAAG,IAAI,CAAC,CAAC;IAC1G,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,4BAoCrC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Providers } from '@passflow/core';
|
|
2
|
+
export type UseProviderProps = (redirectUrl?: string, createTenant?: boolean) => {
|
|
3
|
+
federatedWithPopup: (provider: Providers, inviteToken?: string) => void;
|
|
4
|
+
federatedWithRedirect: (provider: Providers, inviteToken?: string) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const useProvider: UseProviderProps;
|
|
7
|
+
//# sourceMappingURL=use-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-provider.d.ts","sourceRoot":"","sources":["../../../src/hooks/use-provider.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAgC,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAW9E,MAAM,MAAM,gBAAgB,GAAG,CAC7B,WAAW,CAAC,EAAE,MAAM,EACpB,YAAY,CAAC,EAAE,OAAO,KACnB;IACH,kBAAkB,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,qBAAqB,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC5E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,gBAmBzB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type UseResetPasswordProps = () => {
|
|
2
|
+
fetch: (newPassword: string) => Promise<boolean>;
|
|
3
|
+
isLoading: boolean;
|
|
4
|
+
isError: boolean;
|
|
5
|
+
error: string;
|
|
6
|
+
reset: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const useResetPassword: UseResetPasswordProps;
|
|
9
|
+
//# sourceMappingURL=use-reset-password.d.ts.map
|