better-auth-ui 3.2.14 → 3.2.16
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/{auth-ui-provider-DGboLH2y.d.cts → auth-ui-provider-D3GrYvcj.d.cts} +1 -1
- package/dist/{auth-ui-provider-B3fzotj0.d.ts → auth-ui-provider-mrVNJ6zj.d.ts} +1 -1
- package/dist/{chunk-GFDS6WTO.js → chunk-BJHZPU6H.js} +11 -10
- package/dist/{chunk-B24ZS3AS.cjs → chunk-GB6DYT26.cjs} +12 -11
- package/dist/index.cjs +126 -121
- package/dist/index.d.cts +35 -3
- package/dist/index.d.ts +35 -3
- package/dist/index.js +6 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tanstack.cjs +2 -2
- package/dist/tanstack.d.cts +1 -1
- package/dist/tanstack.d.ts +1 -1
- package/dist/tanstack.js +1 -1
- package/package.json +3 -2
- package/src/index.ts +3 -0
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
var _chunkGB6DYT26cjs = require('./chunk-GB6DYT26.cjs');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
@@ -36,7 +37,7 @@ function useAuthenticate(options) {
|
|
|
36
37
|
basePath,
|
|
37
38
|
viewPaths,
|
|
38
39
|
replace
|
|
39
|
-
} = _react.useContext.call(void 0,
|
|
40
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
40
41
|
const { data, isPending, error, refetch } = useSession();
|
|
41
42
|
const sessionData = data;
|
|
42
43
|
_react.useEffect.call(void 0, () => {
|
|
@@ -921,7 +922,7 @@ function OrganizationLogo({
|
|
|
921
922
|
localization: propLocalization,
|
|
922
923
|
...props
|
|
923
924
|
}) {
|
|
924
|
-
const { localization: contextLocalization, avatar } = _react.useContext.call(void 0,
|
|
925
|
+
const { localization: contextLocalization, avatar } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
925
926
|
const localization = _react.useMemo.call(void 0,
|
|
926
927
|
() => ({ ...contextLocalization, ...propLocalization }),
|
|
927
928
|
[contextLocalization, propLocalization]
|
|
@@ -1002,7 +1003,7 @@ function CreateOrganizationDialog({
|
|
|
1002
1003
|
organization: organizationOptions,
|
|
1003
1004
|
navigate,
|
|
1004
1005
|
toast
|
|
1005
|
-
} = _react.useContext.call(void 0,
|
|
1006
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
1006
1007
|
const localization = _react.useMemo.call(void 0,
|
|
1007
1008
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
1008
1009
|
[contextLocalization, localizationProp]
|
|
@@ -1316,7 +1317,7 @@ function OrganizationCellView({
|
|
|
1316
1317
|
organization,
|
|
1317
1318
|
localization: propLocalization
|
|
1318
1319
|
}) {
|
|
1319
|
-
const { localization: contextLocalization } = _react.useContext.call(void 0,
|
|
1320
|
+
const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
1320
1321
|
const localization = { ...contextLocalization, ...propLocalization };
|
|
1321
1322
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1322
1323
|
"div",
|
|
@@ -1415,7 +1416,7 @@ function LeaveOrganizationDialog({
|
|
|
1415
1416
|
hooks: { useListOrganizations },
|
|
1416
1417
|
localization: contextLocalization,
|
|
1417
1418
|
toast
|
|
1418
|
-
} = _react.useContext.call(void 0,
|
|
1419
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
1419
1420
|
const localization = _react.useMemo.call(void 0,
|
|
1420
1421
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
1421
1422
|
[contextLocalization, localizationProp]
|
|
@@ -1538,7 +1539,7 @@ function OrganizationCell({
|
|
|
1538
1539
|
organization: organizationOptions,
|
|
1539
1540
|
navigate,
|
|
1540
1541
|
toast
|
|
1541
|
-
} = _react.useContext.call(void 0,
|
|
1542
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
1542
1543
|
const localization = _react.useMemo.call(void 0,
|
|
1543
1544
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
1544
1545
|
[contextLocalization, localizationProp]
|
|
@@ -1657,12 +1658,12 @@ function OrganizationsCard({
|
|
|
1657
1658
|
const {
|
|
1658
1659
|
hooks: { useListOrganizations },
|
|
1659
1660
|
localization: contextLocalization
|
|
1660
|
-
} = _react.useContext.call(void 0,
|
|
1661
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
1661
1662
|
localization = _react.useMemo.call(void 0,
|
|
1662
1663
|
() => ({ ...contextLocalization, ...localization }),
|
|
1663
1664
|
[contextLocalization, localization]
|
|
1664
1665
|
);
|
|
1665
|
-
const isHydrated =
|
|
1666
|
+
const isHydrated = _chunkGB6DYT26cjs.useIsHydrated.call(void 0, );
|
|
1666
1667
|
const { data: organizations, isPending: organizationsPending } = useListOrganizations();
|
|
1667
1668
|
const isPending = !isHydrated || organizationsPending;
|
|
1668
1669
|
const [createDialogOpen, setCreateDialogOpen] = _react.useState.call(void 0, false);
|
|
@@ -1764,7 +1765,7 @@ function UserAvatar({
|
|
|
1764
1765
|
localization: contextLocalization,
|
|
1765
1766
|
gravatar,
|
|
1766
1767
|
avatar
|
|
1767
|
-
} = _react.useContext.call(void 0,
|
|
1768
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
1768
1769
|
const localization = { ...contextLocalization, ...propLocalization };
|
|
1769
1770
|
const name = (user == null ? void 0 : user.displayName) || (user == null ? void 0 : user.name) || (user == null ? void 0 : user.fullName) || (user == null ? void 0 : user.firstName) || (user == null ? void 0 : user.displayUsername) || (user == null ? void 0 : user.username) || (user == null ? void 0 : user.email);
|
|
1770
1771
|
const userImage = (user == null ? void 0 : user.image) || (user == null ? void 0 : user.avatar) || (user == null ? void 0 : user.avatarUrl);
|
|
@@ -1846,7 +1847,7 @@ function UserInvitationsCard({
|
|
|
1846
1847
|
const {
|
|
1847
1848
|
hooks: { useListUserInvitations, useListOrganizations },
|
|
1848
1849
|
localization: contextLocalization
|
|
1849
|
-
} = _react.useContext.call(void 0,
|
|
1850
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
1850
1851
|
const localization = _react.useMemo.call(void 0,
|
|
1851
1852
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
1852
1853
|
[contextLocalization, localizationProp]
|
|
@@ -1897,7 +1898,7 @@ function UserInvitationRow({
|
|
|
1897
1898
|
organization: organizationOptions,
|
|
1898
1899
|
localization: contextLocalization,
|
|
1899
1900
|
toast
|
|
1900
|
-
} = _react.useContext.call(void 0,
|
|
1901
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
1901
1902
|
const localization = contextLocalization;
|
|
1902
1903
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
|
|
1903
1904
|
const builtInRoles = [
|
|
@@ -2045,7 +2046,7 @@ function UserView({
|
|
|
2045
2046
|
user,
|
|
2046
2047
|
localization: propLocalization
|
|
2047
2048
|
}) {
|
|
2048
|
-
const { localization: contextLocalization } = _react.useContext.call(void 0,
|
|
2049
|
+
const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
2049
2050
|
const localization = _react.useMemo.call(void 0,
|
|
2050
2051
|
() => ({ ...contextLocalization, ...propLocalization }),
|
|
2051
2052
|
[contextLocalization, propLocalization]
|
|
@@ -2148,7 +2149,7 @@ function AccountCell({
|
|
|
2148
2149
|
toast,
|
|
2149
2150
|
viewPaths,
|
|
2150
2151
|
navigate
|
|
2151
|
-
} = _react.useContext.call(void 0,
|
|
2152
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
2152
2153
|
localization = { ...contextLocalization, ...localization };
|
|
2153
2154
|
const { data: sessionData } = useSession();
|
|
2154
2155
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
|
|
@@ -2241,7 +2242,7 @@ function AccountsCard({
|
|
|
2241
2242
|
localization: contextLocalization,
|
|
2242
2243
|
viewPaths,
|
|
2243
2244
|
navigate
|
|
2244
|
-
} = _react.useContext.call(void 0,
|
|
2245
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
2245
2246
|
localization = { ...contextLocalization, ...localization };
|
|
2246
2247
|
const { data: deviceSessions, isPending, refetch } = useListDeviceSessions();
|
|
2247
2248
|
const { data: sessionData } = useSession();
|
|
@@ -2301,7 +2302,7 @@ function UpdateAvatarCard({
|
|
|
2301
2302
|
optimistic,
|
|
2302
2303
|
avatar,
|
|
2303
2304
|
toast
|
|
2304
|
-
} = _react.useContext.call(void 0,
|
|
2305
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
2305
2306
|
localization = { ...authLocalization2, ...localization };
|
|
2306
2307
|
const { data: sessionData, isPending, refetch } = useSession();
|
|
2307
2308
|
const fileInputRef = _react.useRef.call(void 0, null);
|
|
@@ -2536,7 +2537,7 @@ function UpdateFieldCard({
|
|
|
2536
2537
|
localization: contextLocalization,
|
|
2537
2538
|
optimistic,
|
|
2538
2539
|
toast
|
|
2539
|
-
} = _react.useContext.call(void 0,
|
|
2540
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
2540
2541
|
const localization = _react.useMemo.call(void 0,
|
|
2541
2542
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
2542
2543
|
[contextLocalization, localizationProp]
|
|
@@ -2708,7 +2709,7 @@ function UpdateNameCard({
|
|
|
2708
2709
|
hooks: { useSession },
|
|
2709
2710
|
localization: contextLocalization,
|
|
2710
2711
|
nameRequired
|
|
2711
|
-
} = _react.useContext.call(void 0,
|
|
2712
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
2712
2713
|
localization = { ...contextLocalization, ...localization };
|
|
2713
2714
|
const { data: sessionData } = useSession();
|
|
2714
2715
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2742,7 +2743,7 @@ function UpdateUsernameCard({
|
|
|
2742
2743
|
const {
|
|
2743
2744
|
hooks: { useSession },
|
|
2744
2745
|
localization: contextLocalization
|
|
2745
|
-
} = _react.useContext.call(void 0,
|
|
2746
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
2746
2747
|
localization = { ...contextLocalization, ...localization };
|
|
2747
2748
|
const { data: sessionData } = useSession();
|
|
2748
2749
|
const value = ((_a = sessionData == null ? void 0 : sessionData.user) == null ? void 0 : _a.displayUsername) || ((_b = sessionData == null ? void 0 : sessionData.user) == null ? void 0 : _b.username);
|
|
@@ -2782,7 +2783,7 @@ function ChangeEmailCard({
|
|
|
2782
2783
|
hooks: { useSession },
|
|
2783
2784
|
localization: contextLocalization,
|
|
2784
2785
|
toast
|
|
2785
|
-
} = _react.useContext.call(void 0,
|
|
2786
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
2786
2787
|
localization = { ...contextLocalization, ...localization };
|
|
2787
2788
|
const { data: sessionData, isPending, refetch } = useSession();
|
|
2788
2789
|
const [resendDisabled, setResendDisabled] = _react.useState.call(void 0, false);
|
|
@@ -2939,7 +2940,7 @@ function AccountSettingsCards({
|
|
|
2939
2940
|
hooks: { useSession },
|
|
2940
2941
|
multiSession,
|
|
2941
2942
|
account: accountOptions
|
|
2942
|
-
} = _react.useContext.call(void 0,
|
|
2943
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
2943
2944
|
const { data: sessionData } = useSession();
|
|
2944
2945
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2945
2946
|
"div",
|
|
@@ -3049,9 +3050,9 @@ function ApiKeyDeleteDialog({
|
|
|
3049
3050
|
localization: contextLocalization,
|
|
3050
3051
|
mutators: { deleteApiKey },
|
|
3051
3052
|
toast
|
|
3052
|
-
} = _react.useContext.call(void 0,
|
|
3053
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
3053
3054
|
localization = { ...contextLocalization, ...localization };
|
|
3054
|
-
const { lang } =
|
|
3055
|
+
const { lang } = _chunkGB6DYT26cjs.useLang.call(void 0, );
|
|
3055
3056
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
|
|
3056
3057
|
const handleDelete = async () => {
|
|
3057
3058
|
setIsLoading(true);
|
|
@@ -3177,9 +3178,9 @@ function ApiKeyCell({
|
|
|
3177
3178
|
localization,
|
|
3178
3179
|
refetch
|
|
3179
3180
|
}) {
|
|
3180
|
-
const { localization: contextLocalization } = _react.useContext.call(void 0,
|
|
3181
|
+
const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
3181
3182
|
localization = { ...contextLocalization, ...localization };
|
|
3182
|
-
const { lang } =
|
|
3183
|
+
const { lang } = _chunkGB6DYT26cjs.useLang.call(void 0, );
|
|
3183
3184
|
const [showDeleteDialog, setShowDeleteDialog] = _react.useState.call(void 0, false);
|
|
3184
3185
|
const formatExpiration = () => {
|
|
3185
3186
|
if (!apiKey.expiresAt) return localization.NEVER_EXPIRES;
|
|
@@ -3262,7 +3263,7 @@ function ApiKeyDisplayDialog({
|
|
|
3262
3263
|
...props
|
|
3263
3264
|
}) {
|
|
3264
3265
|
var _a, _b, _c;
|
|
3265
|
-
const { localization: contextLocalization } = _react.useContext.call(void 0,
|
|
3266
|
+
const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
3266
3267
|
localization = { ...contextLocalization, ...localization };
|
|
3267
3268
|
const [copied, setCopied] = _react.useState.call(void 0, false);
|
|
3268
3269
|
const handleCopy = () => {
|
|
@@ -3354,7 +3355,7 @@ function PersonalAccountView({
|
|
|
3354
3355
|
user,
|
|
3355
3356
|
localization: propLocalization
|
|
3356
3357
|
}) {
|
|
3357
|
-
const { localization: contextLocalization } = _react.useContext.call(void 0,
|
|
3358
|
+
const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
3358
3359
|
const localization = _react.useMemo.call(void 0,
|
|
3359
3360
|
() => ({ ...contextLocalization, ...propLocalization }),
|
|
3360
3361
|
[contextLocalization, propLocalization]
|
|
@@ -3571,9 +3572,9 @@ function CreateApiKeyDialog({
|
|
|
3571
3572
|
localization: contextLocalization,
|
|
3572
3573
|
organization: contextOrganization,
|
|
3573
3574
|
toast
|
|
3574
|
-
} = _react.useContext.call(void 0,
|
|
3575
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
3575
3576
|
localization = { ...contextLocalization, ...localization };
|
|
3576
|
-
const { lang } =
|
|
3577
|
+
const { lang } = _chunkGB6DYT26cjs.useLang.call(void 0, );
|
|
3577
3578
|
let organizations;
|
|
3578
3579
|
if (contextOrganization) {
|
|
3579
3580
|
const { data } = useListOrganizations();
|
|
@@ -3877,7 +3878,7 @@ function ApiKeysCard({
|
|
|
3877
3878
|
const {
|
|
3878
3879
|
hooks: { useListApiKeys },
|
|
3879
3880
|
localization: contextLocalization
|
|
3880
|
-
} = _react.useContext.call(void 0,
|
|
3881
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
3881
3882
|
localization = { ...contextLocalization, ...localization };
|
|
3882
3883
|
const { data: apiKeys, isPending, refetch } = useListApiKeys();
|
|
3883
3884
|
const filteredApiKeys = _react.useMemo.call(void 0, () => {
|
|
@@ -3983,7 +3984,7 @@ function DeleteAccountDialog({
|
|
|
3983
3984
|
viewPaths,
|
|
3984
3985
|
navigate,
|
|
3985
3986
|
toast
|
|
3986
|
-
} = _react.useContext.call(void 0,
|
|
3987
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
3987
3988
|
localization = { ...contextLocalization, ...localization };
|
|
3988
3989
|
const { data: sessionData } = useSession();
|
|
3989
3990
|
const session = sessionData == null ? void 0 : sessionData.session;
|
|
@@ -4155,7 +4156,7 @@ function DeleteAccountCard({
|
|
|
4155
4156
|
const {
|
|
4156
4157
|
hooks: { useListAccounts },
|
|
4157
4158
|
localization: contextLocalization
|
|
4158
|
-
} = _react.useContext.call(void 0,
|
|
4159
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
4159
4160
|
localization = { ...contextLocalization, ...localization };
|
|
4160
4161
|
const [showDialog, setShowDialog] = _react.useState.call(void 0, false);
|
|
4161
4162
|
if (!skipHook) {
|
|
@@ -4211,7 +4212,7 @@ function SessionFreshnessDialog({
|
|
|
4211
4212
|
localization: contextLocalization,
|
|
4212
4213
|
viewPaths,
|
|
4213
4214
|
navigate
|
|
4214
|
-
} = _react.useContext.call(void 0,
|
|
4215
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
4215
4216
|
localization = { ...contextLocalization, ...localization };
|
|
4216
4217
|
const handleSignOut = () => {
|
|
4217
4218
|
navigate(`${basePath}/${viewPaths.SIGN_OUT}`);
|
|
@@ -4289,7 +4290,7 @@ function PasskeyCell({
|
|
|
4289
4290
|
localization: contextLocalization,
|
|
4290
4291
|
mutators: { deletePasskey },
|
|
4291
4292
|
toast
|
|
4292
|
-
} = _react.useContext.call(void 0,
|
|
4293
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
4293
4294
|
localization = { ...contextLocalization, ...localization };
|
|
4294
4295
|
const { refetch } = useListPasskeys();
|
|
4295
4296
|
const { data: sessionData } = useSession();
|
|
@@ -4379,7 +4380,7 @@ function PasskeysCard({
|
|
|
4379
4380
|
hooks: { useListPasskeys, useSession },
|
|
4380
4381
|
localization: authLocalization2,
|
|
4381
4382
|
toast
|
|
4382
|
-
} = _react.useContext.call(void 0,
|
|
4383
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
4383
4384
|
localization = { ...authLocalization2, ...localization };
|
|
4384
4385
|
const { data: passkeys, isPending, refetch } = useListPasskeys();
|
|
4385
4386
|
const { data: sessionData } = useSession();
|
|
@@ -5044,7 +5045,7 @@ function ProviderCell({
|
|
|
5044
5045
|
mutators: { unlinkAccount },
|
|
5045
5046
|
viewPaths,
|
|
5046
5047
|
toast
|
|
5047
|
-
} = _react.useContext.call(void 0,
|
|
5048
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
5048
5049
|
localization = { ...contextLocalization, ...localization };
|
|
5049
5050
|
const [isLoading, setIsLoading] = _react.useState.call(void 0, false);
|
|
5050
5051
|
const handleLink = async () => {
|
|
@@ -5124,7 +5125,7 @@ function ProviderCell({
|
|
|
5124
5125
|
function AccountInfo({ account }) {
|
|
5125
5126
|
const {
|
|
5126
5127
|
hooks: { useAccountInfo }
|
|
5127
|
-
} = _react.useContext.call(void 0,
|
|
5128
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
5128
5129
|
const { data: accountInfo, isPending } = useAccountInfo({
|
|
5129
5130
|
accountId: account.accountId
|
|
5130
5131
|
});
|
|
@@ -5152,7 +5153,7 @@ function ProvidersCard({
|
|
|
5152
5153
|
localization: contextLocalization,
|
|
5153
5154
|
social,
|
|
5154
5155
|
genericOAuth
|
|
5155
|
-
} = _react.useContext.call(void 0,
|
|
5156
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
5156
5157
|
localization = { ...contextLocalization, ...localization };
|
|
5157
5158
|
if (!skipHook) {
|
|
5158
5159
|
const result = useListAccounts();
|
|
@@ -5298,7 +5299,7 @@ function ChangePasswordCard({
|
|
|
5298
5299
|
localization: contextLocalization,
|
|
5299
5300
|
viewPaths,
|
|
5300
5301
|
toast
|
|
5301
|
-
} = _react.useContext.call(void 0,
|
|
5302
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
5302
5303
|
const confirmPasswordEnabled = credentials == null ? void 0 : credentials.confirmPassword;
|
|
5303
5304
|
const contextPasswordValidation = credentials == null ? void 0 : credentials.passwordValidation;
|
|
5304
5305
|
localization = { ...contextLocalization, ...localization };
|
|
@@ -5555,7 +5556,7 @@ function SessionCell({
|
|
|
5555
5556
|
viewPaths,
|
|
5556
5557
|
navigate,
|
|
5557
5558
|
toast
|
|
5558
|
-
} = _react.useContext.call(void 0,
|
|
5559
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
5559
5560
|
localization = { ...contextLocalization, ...localization };
|
|
5560
5561
|
const { data: sessionData } = useSession();
|
|
5561
5562
|
const isCurrentSession = session.id === ((_a = sessionData == null ? void 0 : sessionData.session) == null ? void 0 : _a.id);
|
|
@@ -5626,7 +5627,7 @@ function SessionsCard({
|
|
|
5626
5627
|
const {
|
|
5627
5628
|
hooks: { useListSessions },
|
|
5628
5629
|
localization: contextLocalization
|
|
5629
|
-
} = _react.useContext.call(void 0,
|
|
5630
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
5630
5631
|
localization = { ...contextLocalization, ...localization };
|
|
5631
5632
|
const { data: sessions, isPending, refetch } = useListSessions();
|
|
5632
5633
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -5672,7 +5673,7 @@ function BackupCodesDialog({
|
|
|
5672
5673
|
...props
|
|
5673
5674
|
}) {
|
|
5674
5675
|
var _a, _b, _c;
|
|
5675
|
-
const { localization } = _react.useContext.call(void 0,
|
|
5676
|
+
const { localization } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
5676
5677
|
const [copied, setCopied] = _react.useState.call(void 0, false);
|
|
5677
5678
|
const handleCopy = () => {
|
|
5678
5679
|
const codeText = backupCodes.join("\n");
|
|
@@ -5770,7 +5771,7 @@ function TwoFactorPasswordDialog({
|
|
|
5770
5771
|
navigate,
|
|
5771
5772
|
toast,
|
|
5772
5773
|
twoFactor
|
|
5773
|
-
} = _react.useContext.call(void 0,
|
|
5774
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
5774
5775
|
const [showBackupCodesDialog, setShowBackupCodesDialog] = _react.useState.call(void 0, false);
|
|
5775
5776
|
const [backupCodes, setBackupCodes] = _react.useState.call(void 0, []);
|
|
5776
5777
|
const [totpURI, setTotpURI] = _react.useState.call(void 0, null);
|
|
@@ -5945,7 +5946,7 @@ function TwoFactorCard({
|
|
|
5945
5946
|
const {
|
|
5946
5947
|
localization: contextLocalization,
|
|
5947
5948
|
hooks: { useSession }
|
|
5948
|
-
} = _react.useContext.call(void 0,
|
|
5949
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
5949
5950
|
const [showPasswordDialog, setShowPasswordDialog] = _react.useState.call(void 0, false);
|
|
5950
5951
|
localization = { ...contextLocalization, ...localization };
|
|
5951
5952
|
const { data: sessionData, isPending } = useSession();
|
|
@@ -5993,7 +5994,7 @@ function SecuritySettingsCards({
|
|
|
5993
5994
|
social,
|
|
5994
5995
|
genericOAuth,
|
|
5995
5996
|
twoFactor
|
|
5996
|
-
} = _react.useContext.call(void 0,
|
|
5997
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
5997
5998
|
localization = { ...contextLocalization, ...localization };
|
|
5998
5999
|
const { useListAccounts } = hooks;
|
|
5999
6000
|
const {
|
|
@@ -6178,7 +6179,7 @@ function AccountView({
|
|
|
6178
6179
|
organization,
|
|
6179
6180
|
account: accountOptions,
|
|
6180
6181
|
Link
|
|
6181
|
-
} = _react.useContext.call(void 0,
|
|
6182
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
6182
6183
|
if (!accountOptions) {
|
|
6183
6184
|
return null;
|
|
6184
6185
|
}
|
|
@@ -6336,7 +6337,7 @@ function AccountView({
|
|
|
6336
6337
|
function useOnSuccessTransition({
|
|
6337
6338
|
redirectTo: redirectToProp
|
|
6338
6339
|
}) {
|
|
6339
|
-
const { redirectTo: contextRedirectTo } = _react.useContext.call(void 0,
|
|
6340
|
+
const { redirectTo: contextRedirectTo } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
6340
6341
|
const getRedirectTo = _react.useCallback.call(void 0,
|
|
6341
6342
|
() => redirectToProp || _chunk42PRTYABcjs.getSearchParam.call(void 0, "redirectTo") || contextRedirectTo,
|
|
6342
6343
|
[redirectToProp, contextRedirectTo]
|
|
@@ -6347,7 +6348,7 @@ function useOnSuccessTransition({
|
|
|
6347
6348
|
navigate,
|
|
6348
6349
|
hooks: { useSession },
|
|
6349
6350
|
onSessionChange
|
|
6350
|
-
} = _react.useContext.call(void 0,
|
|
6351
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
6351
6352
|
const { refetch: refetchSession } = useSession();
|
|
6352
6353
|
_react.useEffect.call(void 0, () => {
|
|
6353
6354
|
if (!success || isPending) return;
|
|
@@ -6369,7 +6370,7 @@ function AuthCallback({ redirectTo }) {
|
|
|
6369
6370
|
const {
|
|
6370
6371
|
hooks: { useIsRestoring },
|
|
6371
6372
|
persistClient
|
|
6372
|
-
} = _react.useContext.call(void 0,
|
|
6373
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
6373
6374
|
const isRestoring = useIsRestoring == null ? void 0 : useIsRestoring();
|
|
6374
6375
|
const isRedirecting = _react.useRef.call(void 0, false);
|
|
6375
6376
|
const { onSuccess } = useOnSuccessTransition({ redirectTo });
|
|
@@ -6506,12 +6507,12 @@ function EmailForm({
|
|
|
6506
6507
|
setIsSubmitting,
|
|
6507
6508
|
setEmail
|
|
6508
6509
|
}) {
|
|
6509
|
-
const isHydrated =
|
|
6510
|
+
const isHydrated = _chunkGB6DYT26cjs.useIsHydrated.call(void 0, );
|
|
6510
6511
|
const {
|
|
6511
6512
|
authClient: authClient2,
|
|
6512
6513
|
localization: contextLocalization,
|
|
6513
6514
|
toast
|
|
6514
|
-
} = _react.useContext.call(void 0,
|
|
6515
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
6515
6516
|
localization = { ...contextLocalization, ...localization };
|
|
6516
6517
|
const formSchema = z8.object({
|
|
6517
6518
|
email: z8.string().email({
|
|
@@ -6606,7 +6607,7 @@ function OTPForm({
|
|
|
6606
6607
|
authClient: authClient2,
|
|
6607
6608
|
localization: contextLocalization,
|
|
6608
6609
|
toast
|
|
6609
|
-
} = _react.useContext.call(void 0,
|
|
6610
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
6610
6611
|
localization = { ...contextLocalization, ...localization };
|
|
6611
6612
|
const { onSuccess, isPending: transitionPending } = useOnSuccessTransition({
|
|
6612
6613
|
redirectTo
|
|
@@ -6726,7 +6727,7 @@ var sanitizeActionName = (action) => {
|
|
|
6726
6727
|
function useCaptcha({
|
|
6727
6728
|
localization
|
|
6728
6729
|
}) {
|
|
6729
|
-
const { captcha, localization: contextLocalization } = _react.useContext.call(void 0,
|
|
6730
|
+
const { captcha, localization: contextLocalization } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
6730
6731
|
localization = { ...contextLocalization, ...localization };
|
|
6731
6732
|
const captchaRef = _react.useRef.call(void 0, null);
|
|
6732
6733
|
const { executeRecaptcha } = _reactrecaptchav3.useGoogleReCaptcha.call(void 0, );
|
|
@@ -6817,8 +6818,8 @@ function RecaptchaBadge({
|
|
|
6817
6818
|
className,
|
|
6818
6819
|
localization: propLocalization
|
|
6819
6820
|
}) {
|
|
6820
|
-
const isHydrated =
|
|
6821
|
-
const { captcha, localization: contextLocalization } = _react.useContext.call(void 0,
|
|
6821
|
+
const isHydrated = _chunkGB6DYT26cjs.useIsHydrated.call(void 0, );
|
|
6822
|
+
const { captcha, localization: contextLocalization } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
6822
6823
|
const localization = { ...contextLocalization, ...propLocalization };
|
|
6823
6824
|
if (!captcha) return null;
|
|
6824
6825
|
if (!captcha.hideBadge) {
|
|
@@ -6869,9 +6870,9 @@ function RecaptchaBadge({
|
|
|
6869
6870
|
var _reactgooglerecaptcha = require('react-google-recaptcha'); var _reactgooglerecaptcha2 = _interopRequireDefault(_reactgooglerecaptcha);
|
|
6870
6871
|
|
|
6871
6872
|
function RecaptchaV2({ ref }) {
|
|
6872
|
-
const { captcha } = _react.useContext.call(void 0,
|
|
6873
|
-
const { theme } =
|
|
6874
|
-
const { lang } =
|
|
6873
|
+
const { captcha } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
6874
|
+
const { theme } = _chunkGB6DYT26cjs.useTheme.call(void 0, );
|
|
6875
|
+
const { lang } = _chunkGB6DYT26cjs.useLang.call(void 0, );
|
|
6875
6876
|
_react.useEffect.call(void 0, () => {
|
|
6876
6877
|
;
|
|
6877
6878
|
window.recaptchaOptions = {
|
|
@@ -6919,7 +6920,7 @@ var DEFAULT_CAPTCHA_ENDPOINTS2 = [
|
|
|
6919
6920
|
"/forget-password"
|
|
6920
6921
|
];
|
|
6921
6922
|
function Captcha({ ref, localization, action }) {
|
|
6922
|
-
const { captcha } = _react.useContext.call(void 0,
|
|
6923
|
+
const { captcha } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
6923
6924
|
if (!captcha) return null;
|
|
6924
6925
|
if (action) {
|
|
6925
6926
|
const endpoints = captcha.endpoints || DEFAULT_CAPTCHA_ENDPOINTS2;
|
|
@@ -6927,7 +6928,7 @@ function Captcha({ ref, localization, action }) {
|
|
|
6927
6928
|
return null;
|
|
6928
6929
|
}
|
|
6929
6930
|
}
|
|
6930
|
-
const { theme } =
|
|
6931
|
+
const { theme } = _chunkGB6DYT26cjs.useTheme.call(void 0, );
|
|
6931
6932
|
const showRecaptchaV2 = captcha.provider === "google-recaptcha-v2-checkbox" || captcha.provider === "google-recaptcha-v2-invisible";
|
|
6932
6933
|
const showRecaptchaBadge = captcha.provider === "google-recaptcha-v3" || captcha.provider === "google-recaptcha-v2-invisible";
|
|
6933
6934
|
const showTurnstile = captcha.provider === "cloudflare-turnstile";
|
|
@@ -6967,7 +6968,7 @@ function ForgotPasswordForm({
|
|
|
6967
6968
|
localization,
|
|
6968
6969
|
setIsSubmitting
|
|
6969
6970
|
}) {
|
|
6970
|
-
const isHydrated =
|
|
6971
|
+
const isHydrated = _chunkGB6DYT26cjs.useIsHydrated.call(void 0, );
|
|
6971
6972
|
const { captchaRef, getCaptchaHeaders, resetCaptcha } = useCaptcha({
|
|
6972
6973
|
localization
|
|
6973
6974
|
});
|
|
@@ -6979,7 +6980,7 @@ function ForgotPasswordForm({
|
|
|
6979
6980
|
navigate,
|
|
6980
6981
|
toast,
|
|
6981
6982
|
viewPaths
|
|
6982
|
-
} = _react.useContext.call(void 0,
|
|
6983
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
6983
6984
|
localization = { ...contextLocalization, ...localization };
|
|
6984
6985
|
const formSchema = z9.object({
|
|
6985
6986
|
email: z9.string().email({
|
|
@@ -7094,7 +7095,7 @@ function MagicLinkForm({
|
|
|
7094
7095
|
redirectTo: redirectToProp,
|
|
7095
7096
|
setIsSubmitting
|
|
7096
7097
|
}) {
|
|
7097
|
-
const isHydrated =
|
|
7098
|
+
const isHydrated = _chunkGB6DYT26cjs.useIsHydrated.call(void 0, );
|
|
7098
7099
|
const { captchaRef, getCaptchaHeaders, resetCaptcha } = useCaptcha({
|
|
7099
7100
|
localization
|
|
7100
7101
|
});
|
|
@@ -7107,7 +7108,7 @@ function MagicLinkForm({
|
|
|
7107
7108
|
redirectTo: contextRedirectTo,
|
|
7108
7109
|
viewPaths,
|
|
7109
7110
|
toast
|
|
7110
|
-
} = _react.useContext.call(void 0,
|
|
7111
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
7111
7112
|
localization = { ...contextLocalization, ...localization };
|
|
7112
7113
|
const getRedirectTo = _react.useCallback.call(void 0,
|
|
7113
7114
|
() => redirectToProp || _chunk42PRTYABcjs.getSearchParam.call(void 0, "redirectTo") || contextRedirectTo,
|
|
@@ -7236,7 +7237,7 @@ function RecoverAccountForm({
|
|
|
7236
7237
|
authClient: authClient2,
|
|
7237
7238
|
localization: contextLocalization,
|
|
7238
7239
|
toast
|
|
7239
|
-
} = _react.useContext.call(void 0,
|
|
7240
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
7240
7241
|
localization = { ...contextLocalization, ...localization };
|
|
7241
7242
|
const { onSuccess, isPending: transitionPending } = useOnSuccessTransition({
|
|
7242
7243
|
redirectTo
|
|
@@ -7335,7 +7336,7 @@ function ResetPasswordForm({
|
|
|
7335
7336
|
viewPaths,
|
|
7336
7337
|
navigate,
|
|
7337
7338
|
toast
|
|
7338
|
-
} = _react.useContext.call(void 0,
|
|
7339
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
7339
7340
|
const confirmPasswordEnabled = credentials == null ? void 0 : credentials.confirmPassword;
|
|
7340
7341
|
const contextPasswordValidation = credentials == null ? void 0 : credentials.passwordValidation;
|
|
7341
7342
|
localization = { ...contextLocalization, ...localization };
|
|
@@ -7486,7 +7487,7 @@ function SignInForm({
|
|
|
7486
7487
|
setIsSubmitting,
|
|
7487
7488
|
passwordValidation
|
|
7488
7489
|
}) {
|
|
7489
|
-
const isHydrated =
|
|
7490
|
+
const isHydrated = _chunkGB6DYT26cjs.useIsHydrated.call(void 0, );
|
|
7490
7491
|
const { captchaRef, getCaptchaHeaders, resetCaptcha } = useCaptcha({
|
|
7491
7492
|
localization
|
|
7492
7493
|
});
|
|
@@ -7499,7 +7500,7 @@ function SignInForm({
|
|
|
7499
7500
|
navigate,
|
|
7500
7501
|
toast,
|
|
7501
7502
|
Link
|
|
7502
|
-
} = _react.useContext.call(void 0,
|
|
7503
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
7503
7504
|
const rememberMeEnabled = credentials == null ? void 0 : credentials.rememberMe;
|
|
7504
7505
|
const usernameEnabled = credentials == null ? void 0 : credentials.username;
|
|
7505
7506
|
const contextPasswordValidation = credentials == null ? void 0 : credentials.passwordValidation;
|
|
@@ -7699,7 +7700,7 @@ function SignUpForm({
|
|
|
7699
7700
|
setIsSubmitting,
|
|
7700
7701
|
passwordValidation
|
|
7701
7702
|
}) {
|
|
7702
|
-
const isHydrated =
|
|
7703
|
+
const isHydrated = _chunkGB6DYT26cjs.useIsHydrated.call(void 0, );
|
|
7703
7704
|
const { captchaRef, getCaptchaHeaders, resetCaptcha } = useCaptcha({
|
|
7704
7705
|
localization
|
|
7705
7706
|
});
|
|
@@ -7718,7 +7719,7 @@ function SignUpForm({
|
|
|
7718
7719
|
navigate,
|
|
7719
7720
|
toast,
|
|
7720
7721
|
avatar
|
|
7721
|
-
} = _react.useContext.call(void 0,
|
|
7722
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
7722
7723
|
const confirmPasswordEnabled = credentials == null ? void 0 : credentials.confirmPassword;
|
|
7723
7724
|
const usernameEnabled = credentials == null ? void 0 : credentials.username;
|
|
7724
7725
|
const contextPasswordValidation = credentials == null ? void 0 : credentials.passwordValidation;
|
|
@@ -8292,7 +8293,7 @@ function TwoFactorForm({
|
|
|
8292
8293
|
setIsSubmitting
|
|
8293
8294
|
}) {
|
|
8294
8295
|
var _a;
|
|
8295
|
-
const isHydrated =
|
|
8296
|
+
const isHydrated = _chunkGB6DYT26cjs.useIsHydrated.call(void 0, );
|
|
8296
8297
|
const totpURI = isHydrated ? _chunk42PRTYABcjs.getSearchParam.call(void 0, "totpURI") : null;
|
|
8297
8298
|
const initialSendRef = _react.useRef.call(void 0, false);
|
|
8298
8299
|
const {
|
|
@@ -8304,7 +8305,7 @@ function TwoFactorForm({
|
|
|
8304
8305
|
viewPaths,
|
|
8305
8306
|
toast,
|
|
8306
8307
|
Link
|
|
8307
|
-
} = _react.useContext.call(void 0,
|
|
8308
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
8308
8309
|
localization = { ...contextLocalization, ...localization };
|
|
8309
8310
|
const { onSuccess, isPending: transitionPending } = useOnSuccessTransition({
|
|
8310
8311
|
redirectTo
|
|
@@ -8572,7 +8573,7 @@ function TwoFactorForm({
|
|
|
8572
8573
|
|
|
8573
8574
|
function SignOut() {
|
|
8574
8575
|
const signingOut = _react.useRef.call(void 0, false);
|
|
8575
|
-
const { authClient: authClient2, basePath, viewPaths } = _react.useContext.call(void 0,
|
|
8576
|
+
const { authClient: authClient2, basePath, viewPaths } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
8576
8577
|
const { onSuccess } = useOnSuccessTransition({
|
|
8577
8578
|
redirectTo: `${basePath}/${viewPaths.SIGN_IN}`
|
|
8578
8579
|
});
|
|
@@ -8608,7 +8609,7 @@ function AuthForm({
|
|
|
8608
8609
|
twoFactor: twoFactorEnabled,
|
|
8609
8610
|
viewPaths,
|
|
8610
8611
|
replace
|
|
8611
|
-
} = _react.useContext.call(void 0,
|
|
8612
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
8612
8613
|
const signUpEnabled = !!signUp;
|
|
8613
8614
|
localization = { ...contextLocalization, ...localization };
|
|
8614
8615
|
_react.useEffect.call(void 0, () => {
|
|
@@ -8803,7 +8804,7 @@ function AcceptInvitationCard({
|
|
|
8803
8804
|
redirectTo,
|
|
8804
8805
|
replace,
|
|
8805
8806
|
toast
|
|
8806
|
-
} = _react.useContext.call(void 0,
|
|
8807
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
8807
8808
|
const localization = _react.useMemo.call(void 0,
|
|
8808
8809
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
8809
8810
|
[contextLocalization, localizationProp]
|
|
@@ -8856,7 +8857,7 @@ function AcceptInvitationContent({
|
|
|
8856
8857
|
redirectTo,
|
|
8857
8858
|
replace,
|
|
8858
8859
|
toast
|
|
8859
|
-
} = _react.useContext.call(void 0,
|
|
8860
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
8860
8861
|
const localization = _react.useMemo.call(void 0,
|
|
8861
8862
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
8862
8863
|
[contextLocalization, localizationProp]
|
|
@@ -9138,7 +9139,7 @@ function EmailOTPButton({
|
|
|
9138
9139
|
view
|
|
9139
9140
|
}) {
|
|
9140
9141
|
var _a, _b, _c, _d;
|
|
9141
|
-
const { viewPaths, navigate, basePath } = _react.useContext.call(void 0,
|
|
9142
|
+
const { viewPaths, navigate, basePath } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
9142
9143
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9143
9144
|
Button,
|
|
9144
9145
|
{
|
|
@@ -9174,7 +9175,7 @@ function MagicLinkButton({
|
|
|
9174
9175
|
view
|
|
9175
9176
|
}) {
|
|
9176
9177
|
var _a, _b, _c, _d;
|
|
9177
|
-
const { viewPaths, navigate, basePath, credentials } = _react.useContext.call(void 0,
|
|
9178
|
+
const { viewPaths, navigate, basePath, credentials } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
9178
9179
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9179
9180
|
Button,
|
|
9180
9181
|
{
|
|
@@ -9206,7 +9207,7 @@ function OneTap({ localization, redirectTo }) {
|
|
|
9206
9207
|
authClient: authClient2,
|
|
9207
9208
|
localization: contextLocalization,
|
|
9208
9209
|
toast
|
|
9209
|
-
} = _react.useContext.call(void 0,
|
|
9210
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
9210
9211
|
const oneTapFetched = _react.useRef.call(void 0, false);
|
|
9211
9212
|
localization = _react.useMemo.call(void 0,
|
|
9212
9213
|
() => ({ ...contextLocalization, ...localization }),
|
|
@@ -9249,7 +9250,7 @@ function PasskeyButton({
|
|
|
9249
9250
|
authClient: authClient2,
|
|
9250
9251
|
localization: contextLocalization,
|
|
9251
9252
|
toast
|
|
9252
|
-
} = _react.useContext.call(void 0,
|
|
9253
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
9253
9254
|
localization = { ...contextLocalization, ...localization };
|
|
9254
9255
|
const { onSuccess } = useOnSuccessTransition({ redirectTo });
|
|
9255
9256
|
const signInPassKey = async () => {
|
|
@@ -9328,7 +9329,7 @@ function ProviderButton({
|
|
|
9328
9329
|
social,
|
|
9329
9330
|
genericOAuth,
|
|
9330
9331
|
toast
|
|
9331
|
-
} = _react.useContext.call(void 0,
|
|
9332
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
9332
9333
|
const getRedirectTo = _react.useCallback.call(void 0,
|
|
9333
9334
|
() => redirectToProp || _chunk42PRTYABcjs.getSearchParam.call(void 0, "redirectTo") || contextRedirectTo,
|
|
9334
9335
|
[redirectToProp, contextRedirectTo]
|
|
@@ -9422,7 +9423,7 @@ function AuthView({
|
|
|
9422
9423
|
otpSeparators = 0
|
|
9423
9424
|
}) {
|
|
9424
9425
|
var _a, _b, _c, _d, _e, _f;
|
|
9425
|
-
const isHydrated =
|
|
9426
|
+
const isHydrated = _chunkGB6DYT26cjs.useIsHydrated.call(void 0, );
|
|
9426
9427
|
const {
|
|
9427
9428
|
basePath,
|
|
9428
9429
|
credentials,
|
|
@@ -9436,7 +9437,7 @@ function AuthView({
|
|
|
9436
9437
|
genericOAuth,
|
|
9437
9438
|
viewPaths,
|
|
9438
9439
|
Link
|
|
9439
|
-
} = _react.useContext.call(void 0,
|
|
9440
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
9440
9441
|
localization = { ...contextLocalization, ...localization };
|
|
9441
9442
|
let socialLayout = socialLayoutProp;
|
|
9442
9443
|
if (socialLayout === "auto") {
|
|
@@ -9693,7 +9694,7 @@ function AuthView({
|
|
|
9693
9694
|
function AuthLoading({ children }) {
|
|
9694
9695
|
const {
|
|
9695
9696
|
hooks: { useSession }
|
|
9696
|
-
} = _react.useContext.call(void 0,
|
|
9697
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
9697
9698
|
const { isPending } = useSession();
|
|
9698
9699
|
return isPending ? children : null;
|
|
9699
9700
|
}
|
|
@@ -9723,7 +9724,7 @@ function DeleteOrganizationDialog({
|
|
|
9723
9724
|
localization: contextLocalization,
|
|
9724
9725
|
navigate,
|
|
9725
9726
|
toast
|
|
9726
|
-
} = _react.useContext.call(void 0,
|
|
9727
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
9727
9728
|
const localization = _react.useMemo.call(void 0,
|
|
9728
9729
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
9729
9730
|
[contextLocalization, localizationProp]
|
|
@@ -9876,12 +9877,12 @@ function DeleteOrganizationCard({
|
|
|
9876
9877
|
slug,
|
|
9877
9878
|
...props
|
|
9878
9879
|
}) {
|
|
9879
|
-
const { localization: contextLocalization } = _react.useContext.call(void 0,
|
|
9880
|
+
const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
9880
9881
|
const localization = _react.useMemo.call(void 0,
|
|
9881
9882
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
9882
9883
|
[contextLocalization, localizationProp]
|
|
9883
9884
|
);
|
|
9884
|
-
const { data: organization } =
|
|
9885
|
+
const { data: organization } = _chunkGB6DYT26cjs.useCurrentOrganization.call(void 0, { slug });
|
|
9885
9886
|
if (!organization)
|
|
9886
9887
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9887
9888
|
SettingsCard,
|
|
@@ -9915,7 +9916,7 @@ function DeleteOrganizationForm({
|
|
|
9915
9916
|
const {
|
|
9916
9917
|
localization: contextLocalization,
|
|
9917
9918
|
hooks: { useHasPermission }
|
|
9918
|
-
} = _react.useContext.call(void 0,
|
|
9919
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
9919
9920
|
const localization = _react.useMemo.call(void 0,
|
|
9920
9921
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
9921
9922
|
[contextLocalization, localizationProp]
|
|
@@ -9975,7 +9976,7 @@ function InvitationCell({
|
|
|
9975
9976
|
organization: organizationOptions,
|
|
9976
9977
|
localization: contextLocalization,
|
|
9977
9978
|
toast
|
|
9978
|
-
} = _react.useContext.call(void 0,
|
|
9979
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
9979
9980
|
const localization = _react.useMemo.call(void 0,
|
|
9980
9981
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
9981
9982
|
[contextLocalization, localizationProp]
|
|
@@ -10091,13 +10092,13 @@ function OrganizationInvitationsCard({
|
|
|
10091
10092
|
const {
|
|
10092
10093
|
localization: contextLocalization,
|
|
10093
10094
|
organization: organizationOptions
|
|
10094
|
-
} = _react.useContext.call(void 0,
|
|
10095
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
10095
10096
|
const localization = _react.useMemo.call(void 0,
|
|
10096
10097
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
10097
10098
|
[contextLocalization, localizationProp]
|
|
10098
10099
|
);
|
|
10099
10100
|
const slug = slugProp || (organizationOptions == null ? void 0 : organizationOptions.slug);
|
|
10100
|
-
const { data: organization } =
|
|
10101
|
+
const { data: organization } = _chunkGB6DYT26cjs.useCurrentOrganization.call(void 0, { slug });
|
|
10101
10102
|
if (!organization) return null;
|
|
10102
10103
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10103
10104
|
OrganizationInvitationsContent,
|
|
@@ -10120,7 +10121,7 @@ function OrganizationInvitationsContent({
|
|
|
10120
10121
|
const {
|
|
10121
10122
|
hooks: { useListInvitations },
|
|
10122
10123
|
localization: contextLocalization
|
|
10123
|
-
} = _react.useContext.call(void 0,
|
|
10124
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
10124
10125
|
const localization = _react.useMemo.call(void 0,
|
|
10125
10126
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
10126
10127
|
[contextLocalization, localizationProp]
|
|
@@ -10170,12 +10171,12 @@ function OrganizationLogoCard({
|
|
|
10170
10171
|
slug,
|
|
10171
10172
|
...props
|
|
10172
10173
|
}) {
|
|
10173
|
-
const { localization: contextLocalization } = _react.useContext.call(void 0,
|
|
10174
|
+
const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
10174
10175
|
const localization = _react.useMemo.call(void 0,
|
|
10175
10176
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
10176
10177
|
[contextLocalization, localizationProp]
|
|
10177
10178
|
);
|
|
10178
|
-
const { data: organization } =
|
|
10179
|
+
const { data: organization } = _chunkGB6DYT26cjs.useCurrentOrganization.call(void 0, { slug });
|
|
10179
10180
|
if (!organization) {
|
|
10180
10181
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10181
10182
|
Card,
|
|
@@ -10255,12 +10256,12 @@ function OrganizationLogoForm({
|
|
|
10255
10256
|
organization: organizationOptions,
|
|
10256
10257
|
mutators: { updateOrganization },
|
|
10257
10258
|
toast
|
|
10258
|
-
} = _react.useContext.call(void 0,
|
|
10259
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
10259
10260
|
const localization = _react.useMemo.call(void 0,
|
|
10260
10261
|
() => ({ ...authLocalization2, ...localizationProp }),
|
|
10261
10262
|
[authLocalization2, localizationProp]
|
|
10262
10263
|
);
|
|
10263
|
-
const { refetch: refetchOrganization } =
|
|
10264
|
+
const { refetch: refetchOrganization } = _chunkGB6DYT26cjs.useCurrentOrganization.call(void 0, {
|
|
10264
10265
|
slug: organization.slug
|
|
10265
10266
|
});
|
|
10266
10267
|
const { data: hasPermission, isPending: permissionPending } = useHasPermission({
|
|
@@ -10462,7 +10463,7 @@ function InviteMemberDialog({
|
|
|
10462
10463
|
localization: contextLocalization,
|
|
10463
10464
|
toast,
|
|
10464
10465
|
organization: organizationOptions
|
|
10465
|
-
} = _react.useContext.call(void 0,
|
|
10466
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
10466
10467
|
const localization = _react.useMemo.call(void 0,
|
|
10467
10468
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
10468
10469
|
[contextLocalization, localizationProp]
|
|
@@ -10655,7 +10656,7 @@ function RemoveMemberDialog({
|
|
|
10655
10656
|
hooks: { useListMembers },
|
|
10656
10657
|
localization: contextLocalization,
|
|
10657
10658
|
toast
|
|
10658
|
-
} = _react.useContext.call(void 0,
|
|
10659
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
10659
10660
|
const localization = _react.useMemo.call(void 0,
|
|
10660
10661
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
10661
10662
|
[contextLocalization, localizationProp]
|
|
@@ -10776,7 +10777,7 @@ function UpdateMemberRoleDialog({
|
|
|
10776
10777
|
localization: contextLocalization,
|
|
10777
10778
|
organization,
|
|
10778
10779
|
toast
|
|
10779
|
-
} = _react.useContext.call(void 0,
|
|
10780
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
10780
10781
|
const localization = _react.useMemo.call(void 0,
|
|
10781
10782
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
10782
10783
|
[contextLocalization, localizationProp]
|
|
@@ -10949,7 +10950,7 @@ function MemberCell({
|
|
|
10949
10950
|
useHasPermission
|
|
10950
10951
|
},
|
|
10951
10952
|
localization: contextLocalization
|
|
10952
|
-
} = _react.useContext.call(void 0,
|
|
10953
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
10953
10954
|
const localization = { ...contextLocalization, ...localizationProp };
|
|
10954
10955
|
const { data: sessionData } = useSession();
|
|
10955
10956
|
const [removeDialogOpen, setRemoveDialogOpen] = _react.useState.call(void 0, false);
|
|
@@ -11103,13 +11104,13 @@ function OrganizationMembersCard({
|
|
|
11103
11104
|
const {
|
|
11104
11105
|
localization: contextLocalization,
|
|
11105
11106
|
organization: organizationOptions
|
|
11106
|
-
} = _react.useContext.call(void 0,
|
|
11107
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
11107
11108
|
const localization = _react.useMemo.call(void 0,
|
|
11108
11109
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
11109
11110
|
[contextLocalization, localizationProp]
|
|
11110
11111
|
);
|
|
11111
11112
|
const slug = slugProp || (organizationOptions == null ? void 0 : organizationOptions.slug);
|
|
11112
|
-
const { data: organization } =
|
|
11113
|
+
const { data: organization } = _chunkGB6DYT26cjs.useCurrentOrganization.call(void 0, { slug });
|
|
11113
11114
|
if (!organization) {
|
|
11114
11115
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11115
11116
|
SettingsCard,
|
|
@@ -11146,7 +11147,7 @@ function OrganizationMembersContent({
|
|
|
11146
11147
|
const {
|
|
11147
11148
|
hooks: { useHasPermission, useListMembers },
|
|
11148
11149
|
localization: contextLocalization
|
|
11149
|
-
} = _react.useContext.call(void 0,
|
|
11150
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
11150
11151
|
const localization = _react.useMemo.call(void 0,
|
|
11151
11152
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
11152
11153
|
[contextLocalization, localizationProp]
|
|
@@ -11232,12 +11233,12 @@ function OrganizationNameCard({
|
|
|
11232
11233
|
slug,
|
|
11233
11234
|
...props
|
|
11234
11235
|
}) {
|
|
11235
|
-
const { localization: contextLocalization } = _react.useContext.call(void 0,
|
|
11236
|
+
const { localization: contextLocalization } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
11236
11237
|
const localization = _react.useMemo.call(void 0,
|
|
11237
11238
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
11238
11239
|
[contextLocalization, localizationProp]
|
|
11239
11240
|
);
|
|
11240
|
-
const { data: organization } =
|
|
11241
|
+
const { data: organization } = _chunkGB6DYT26cjs.useCurrentOrganization.call(void 0, { slug });
|
|
11241
11242
|
if (!organization) {
|
|
11242
11243
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11243
11244
|
SettingsCard,
|
|
@@ -11283,7 +11284,7 @@ function OrganizationNameForm({
|
|
|
11283
11284
|
mutators: { updateOrganization },
|
|
11284
11285
|
optimistic,
|
|
11285
11286
|
toast
|
|
11286
|
-
} = _react.useContext.call(void 0,
|
|
11287
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
11287
11288
|
const localization = { ...contextLocalization, ...localizationProp };
|
|
11288
11289
|
const { data: hasPermission, isPending: permissionPending } = useHasPermission({
|
|
11289
11290
|
organizationId: organization.id,
|
|
@@ -11291,7 +11292,7 @@ function OrganizationNameForm({
|
|
|
11291
11292
|
organization: ["update"]
|
|
11292
11293
|
}
|
|
11293
11294
|
});
|
|
11294
|
-
const { refetch: refetchOrganization } =
|
|
11295
|
+
const { refetch: refetchOrganization } = _chunkGB6DYT26cjs.useCurrentOrganization.call(void 0, {
|
|
11295
11296
|
slug: organization.slug
|
|
11296
11297
|
});
|
|
11297
11298
|
const isPending = permissionPending;
|
|
@@ -11400,13 +11401,13 @@ function OrganizationSlugCard({
|
|
|
11400
11401
|
const {
|
|
11401
11402
|
localization: contextLocalization,
|
|
11402
11403
|
organization: organizationOptions
|
|
11403
|
-
} = _react.useContext.call(void 0,
|
|
11404
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
11404
11405
|
const localization = _react.useMemo.call(void 0,
|
|
11405
11406
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
11406
11407
|
[contextLocalization, localizationProp]
|
|
11407
11408
|
);
|
|
11408
11409
|
const slug = slugProp || (organizationOptions == null ? void 0 : organizationOptions.slug);
|
|
11409
|
-
const { data: organization } =
|
|
11410
|
+
const { data: organization } = _chunkGB6DYT26cjs.useCurrentOrganization.call(void 0, { slug });
|
|
11410
11411
|
if (!organization) {
|
|
11411
11412
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11412
11413
|
SettingsCard,
|
|
@@ -11454,12 +11455,12 @@ function OrganizationSlugForm({
|
|
|
11454
11455
|
toast,
|
|
11455
11456
|
organization: organizationOptions,
|
|
11456
11457
|
replace
|
|
11457
|
-
} = _react.useContext.call(void 0,
|
|
11458
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
11458
11459
|
const localization = _react.useMemo.call(void 0,
|
|
11459
11460
|
() => ({ ...contextLocalization, ...localizationProp }),
|
|
11460
11461
|
[contextLocalization, localizationProp]
|
|
11461
11462
|
);
|
|
11462
|
-
const { refetch: refetchOrganization } =
|
|
11463
|
+
const { refetch: refetchOrganization } = _chunkGB6DYT26cjs.useCurrentOrganization.call(void 0, {
|
|
11463
11464
|
slug: organization.slug
|
|
11464
11465
|
});
|
|
11465
11466
|
const { data: hasPermission, isPending } = useHasPermission({
|
|
@@ -11569,7 +11570,7 @@ function OrganizationSettingsCards({
|
|
|
11569
11570
|
localization,
|
|
11570
11571
|
slug
|
|
11571
11572
|
}) {
|
|
11572
|
-
const { organization: organizationOptions } = _react.useContext.call(void 0,
|
|
11573
|
+
const { organization: organizationOptions } = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
11573
11574
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11574
11575
|
"div",
|
|
11575
11576
|
{
|
|
@@ -11659,7 +11660,7 @@ function OrganizationSwitcher({
|
|
|
11659
11660
|
toast,
|
|
11660
11661
|
viewPaths,
|
|
11661
11662
|
Link
|
|
11662
|
-
} = _react.useContext.call(void 0,
|
|
11663
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
11663
11664
|
const {
|
|
11664
11665
|
pathMode,
|
|
11665
11666
|
slug: contextSlug,
|
|
@@ -11681,7 +11682,7 @@ function OrganizationSwitcher({
|
|
|
11681
11682
|
isPending: organizationPending,
|
|
11682
11683
|
isRefetching: organizationRefetching,
|
|
11683
11684
|
refetch: organizationRefetch
|
|
11684
|
-
} =
|
|
11685
|
+
} = _chunkGB6DYT26cjs.useCurrentOrganization.call(void 0, { slug });
|
|
11685
11686
|
const isPending = organizationsPending || sessionPending || activeOrganizationPending || organizationPending;
|
|
11686
11687
|
_react.useEffect.call(void 0, () => {
|
|
11687
11688
|
if (organizationRefetching) return;
|
|
@@ -12008,7 +12009,7 @@ function OrganizationView({
|
|
|
12008
12009
|
account: accountOptions,
|
|
12009
12010
|
Link,
|
|
12010
12011
|
replace
|
|
12011
|
-
} = _react.useContext.call(void 0,
|
|
12012
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
12012
12013
|
const { slug: contextSlug, viewPaths, apiKey } = organizationOptions || {};
|
|
12013
12014
|
useAuthenticate();
|
|
12014
12015
|
const localization = _react.useMemo.call(void 0,
|
|
@@ -12022,7 +12023,7 @@ function OrganizationView({
|
|
|
12022
12023
|
data: organization,
|
|
12023
12024
|
isPending: organizationPending,
|
|
12024
12025
|
isRefetching: organizationRefetching
|
|
12025
|
-
} =
|
|
12026
|
+
} = _chunkGB6DYT26cjs.useCurrentOrganization.call(void 0, { slug });
|
|
12026
12027
|
const navItems = [
|
|
12027
12028
|
{ view: "SETTINGS", label: localization.SETTINGS },
|
|
12028
12029
|
{ view: "MEMBERS", label: localization.MEMBERS }
|
|
@@ -12189,7 +12190,7 @@ function RedirectToSignUp() {
|
|
|
12189
12190
|
function SignedIn({ children }) {
|
|
12190
12191
|
const {
|
|
12191
12192
|
hooks: { useSession }
|
|
12192
|
-
} = _react.useContext.call(void 0,
|
|
12193
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
12193
12194
|
const { data } = useSession();
|
|
12194
12195
|
return data ? children : null;
|
|
12195
12196
|
}
|
|
@@ -12199,7 +12200,7 @@ function SignedIn({ children }) {
|
|
|
12199
12200
|
function SignedOut({ children }) {
|
|
12200
12201
|
const {
|
|
12201
12202
|
hooks: { useSession }
|
|
12202
|
-
} = _react.useContext.call(void 0,
|
|
12203
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
12203
12204
|
const { data, isPending } = useSession();
|
|
12204
12205
|
return !data && !isPending ? children : null;
|
|
12205
12206
|
}
|
|
@@ -12250,7 +12251,7 @@ function UserButton({
|
|
|
12250
12251
|
viewPaths,
|
|
12251
12252
|
onSessionChange,
|
|
12252
12253
|
Link
|
|
12253
|
-
} = _react.useContext.call(void 0,
|
|
12254
|
+
} = _react.useContext.call(void 0, _chunkGB6DYT26cjs.AuthUIContext);
|
|
12254
12255
|
const localization = _react.useMemo.call(void 0,
|
|
12255
12256
|
() => ({ ...contextLocalization, ...propLocalization }),
|
|
12256
12257
|
[contextLocalization, propLocalization]
|
|
@@ -12265,7 +12266,7 @@ function UserButton({
|
|
|
12265
12266
|
const { data: sessionData, isPending: sessionPending } = useSession();
|
|
12266
12267
|
const user = sessionData == null ? void 0 : sessionData.user;
|
|
12267
12268
|
const [activeSessionPending, setActiveSessionPending] = _react.useState.call(void 0, false);
|
|
12268
|
-
const isHydrated =
|
|
12269
|
+
const isHydrated = _chunkGB6DYT26cjs.useIsHydrated.call(void 0, );
|
|
12269
12270
|
const isPending = sessionPending || activeSessionPending || !isHydrated;
|
|
12270
12271
|
const switchAccount = _react.useCallback.call(void 0,
|
|
12271
12272
|
async (sessionToken) => {
|
|
@@ -12657,4 +12658,8 @@ var authClient = _react2.createAuthClient.call(void 0, {
|
|
|
12657
12658
|
|
|
12658
12659
|
|
|
12659
12660
|
|
|
12660
|
-
|
|
12661
|
+
|
|
12662
|
+
|
|
12663
|
+
|
|
12664
|
+
|
|
12665
|
+
exports.AcceptInvitationCard = AcceptInvitationCard; exports.AccountSettingsCards = AccountSettingsCards; exports.AccountView = AccountView; exports.AccountsCard = AccountsCard; exports.ApiKeysCard = ApiKeysCard; exports.AppleIcon = AppleIcon; exports.AuthCallback = AuthCallback; exports.AuthForm = AuthForm; exports.AuthLoading = AuthLoading; exports.AuthUIContext = _chunkGB6DYT26cjs.AuthUIContext; exports.AuthUIProvider = _chunkGB6DYT26cjs.AuthUIProvider; exports.AuthView = AuthView; exports.ChangeEmailCard = ChangeEmailCard; exports.ChangePasswordCard = ChangePasswordCard; exports.CreateOrganizationDialog = CreateOrganizationDialog; exports.DeleteAccountCard = DeleteAccountCard; exports.DeleteOrganizationCard = DeleteOrganizationCard; exports.DiscordIcon = DiscordIcon; exports.DropboxIcon = DropboxIcon; exports.FacebookIcon = FacebookIcon; exports.ForgotPasswordForm = ForgotPasswordForm; exports.GitHubIcon = GitHubIcon; exports.GitLabIcon = GitLabIcon; exports.GoogleIcon = GoogleIcon; exports.HuggingFaceIcon = HuggingFaceIcon; exports.InputFieldSkeleton = InputFieldSkeleton; exports.KickIcon = KickIcon; exports.LinearIcon = LinearIcon; exports.LinkedInIcon = LinkedInIcon; exports.MagicLinkForm = MagicLinkForm; exports.MicrosoftIcon = MicrosoftIcon; exports.NotionIcon = NotionIcon; exports.OrganizationCellView = OrganizationCellView; exports.OrganizationInvitationsCard = OrganizationInvitationsCard; exports.OrganizationLogo = OrganizationLogo; exports.OrganizationLogoCard = OrganizationLogoCard; exports.OrganizationMembersCard = OrganizationMembersCard; exports.OrganizationNameCard = OrganizationNameCard; exports.OrganizationRefetcher = _chunkGB6DYT26cjs.OrganizationRefetcher; exports.OrganizationSettingsCards = OrganizationSettingsCards; exports.OrganizationSlugCard = OrganizationSlugCard; exports.OrganizationSwitcher = OrganizationSwitcher; exports.OrganizationView = OrganizationView; exports.OrganizationsCard = OrganizationsCard; exports.PasskeysCard = PasskeysCard; exports.PasswordInput = PasswordInput; exports.ProvidersCard = ProvidersCard; exports.RecoverAccountForm = RecoverAccountForm; exports.RedditIcon = RedditIcon; exports.RedirectToSignIn = RedirectToSignIn; exports.RedirectToSignUp = RedirectToSignUp; exports.ResetPasswordForm = ResetPasswordForm; exports.RobloxIcon = RobloxIcon; exports.SecuritySettingsCards = SecuritySettingsCards; exports.SessionsCard = SessionsCard; exports.SettingsCard = SettingsCard; exports.SettingsCellSkeleton = SettingsCellSkeleton; exports.SignInForm = SignInForm; exports.SignOut = SignOut; exports.SignUpForm = SignUpForm; exports.SignedIn = SignedIn; exports.SignedOut = SignedOut; exports.SlackIcon = SlackIcon; exports.SpotifyIcon = SpotifyIcon; exports.TikTokIcon = TikTokIcon; exports.TwitchIcon = TwitchIcon; exports.TwoFactorCard = TwoFactorCard; exports.TwoFactorForm = TwoFactorForm; exports.UpdateAvatarCard = UpdateAvatarCard; exports.UpdateFieldCard = UpdateFieldCard; exports.UpdateNameCard = UpdateNameCard; exports.UpdateUsernameCard = UpdateUsernameCard; exports.UserAvatar = UserAvatar; exports.UserButton = UserButton; exports.UserInvitationsCard = UserInvitationsCard; exports.UserView = UserView; exports.VKIcon = VKIcon; exports.XIcon = XIcon2; exports.ZoomIcon = ZoomIcon; exports.accountViewPaths = _chunk42PRTYABcjs.accountViewPaths; exports.authClient = authClient; exports.authDataCache = _chunkGB6DYT26cjs.authDataCache; exports.authLocalization = _chunk42PRTYABcjs.authLocalization; exports.authViewPaths = _chunk42PRTYABcjs.authViewPaths; exports.cn = _chunk42PRTYABcjs.cn; exports.errorCodeToCamelCase = _chunk42PRTYABcjs.errorCodeToCamelCase; exports.fileToBase64 = fileToBase64; exports.getGravatarUrl = getGravatarUrl; exports.getKeyByValue = _chunk42PRTYABcjs.getKeyByValue; exports.getLocalizedError = _chunk42PRTYABcjs.getLocalizedError; exports.getPasswordSchema = _chunk42PRTYABcjs.getPasswordSchema; exports.getSearchParam = _chunk42PRTYABcjs.getSearchParam; exports.getViewByPath = _chunk42PRTYABcjs.getViewByPath; exports.isValidEmail = _chunk42PRTYABcjs.isValidEmail; exports.organizationViewPaths = _chunk42PRTYABcjs.organizationViewPaths; exports.resizeAndCropImage = resizeAndCropImage; exports.socialProviders = socialProviders; exports.useAuthData = _chunkGB6DYT26cjs.useAuthData; exports.useAuthenticate = useAuthenticate; exports.useCaptcha = useCaptcha; exports.useCurrentOrganization = _chunkGB6DYT26cjs.useCurrentOrganization; exports.useIsHydrated = _chunkGB6DYT26cjs.useIsHydrated; exports.useLang = _chunkGB6DYT26cjs.useLang; exports.useOnSuccessTransition = useOnSuccessTransition; exports.useTheme = _chunkGB6DYT26cjs.useTheme;
|