@mdxui/auth 1.1.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{auth-Ba2f778e.d.ts → auth-maeYSYU_.d.ts} +4 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/{index-DGthQxCM.d.ts → index-BOMpMKyG.d.ts} +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +794 -4
- package/dist/index.js.map +1 -1
- package/dist/providers/index.d.ts +2 -2
- package/dist/providers/index.js +16 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/schemas/index.d.ts +5 -0
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/shell/index.d.ts +675 -0
- package/dist/shell/index.js +1025 -0
- package/dist/shell/index.js.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/widgets/index.d.ts +1 -1
- package/package.json +21 -14
|
@@ -46,7 +46,7 @@ interface AuthGateProps {
|
|
|
46
46
|
/** Component to show when not authenticated (landing page) */
|
|
47
47
|
landingComponent?: ReactNode;
|
|
48
48
|
/** What to do when unauthenticated */
|
|
49
|
-
onUnauthenticated?: 'landing' | 'redirect' | 'allow';
|
|
49
|
+
onUnauthenticated?: 'landing' | 'redirect' | 'allow' | 'signIn';
|
|
50
50
|
/** URL to redirect to when unauthenticated (if onUnauthenticated is 'redirect') */
|
|
51
51
|
redirectUrl?: string;
|
|
52
52
|
}
|
|
@@ -54,6 +54,9 @@ interface AuthGateProps {
|
|
|
54
54
|
* Props for WidgetsProvider
|
|
55
55
|
*
|
|
56
56
|
* Extends the schema type with React-specific fields.
|
|
57
|
+
*
|
|
58
|
+
* Note: Widgets always use api.workos.com - WorkOS custom domains do NOT
|
|
59
|
+
* support widget endpoints. Only authentication uses custom domains.
|
|
57
60
|
*/
|
|
58
61
|
interface WidgetsProviderProps {
|
|
59
62
|
/** Children to render */
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { useAuth } from '@workos-inc/authkit-react';
|
|
2
|
-
import { U as UseWidgetTokenOptions, b as UseWidgetTokenResult } from '../auth-
|
|
2
|
+
import { U as UseWidgetTokenOptions, b as UseWidgetTokenResult } from '../auth-maeYSYU_.js';
|
|
3
3
|
import { V as VaultItem, a as VaultField } from '../types-8tixck1H.js';
|
|
4
4
|
import 'react';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { I as IdentityProviderProps, A as AuthGateProps, W as WidgetsProviderProps } from './auth-
|
|
2
|
+
import { I as IdentityProviderProps, A as AuthGateProps, W as WidgetsProviderProps } from './auth-maeYSYU_.js';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
import { V as VaultItem, a as VaultField } from './types-8tixck1H.js';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
export { A as AuthGate, I as IdentityProvider, a as IdentityProviderMinimal, d as VaultClient, e as VaultContextState, V as VaultProvider, f as VaultProviderProps, W as WidgetsProvider, u as useThemeDetection, b as useVaultContext, c as useVaultContextOptional } from './index-
|
|
1
|
+
export { A as AuthGate, I as IdentityProvider, a as IdentityProviderMinimal, d as VaultClient, e as VaultContextState, V as VaultProvider, f as VaultProviderProps, W as WidgetsProvider, u as useThemeDetection, b as useVaultContext, c as useVaultContextOptional } from './index-BOMpMKyG.js';
|
|
2
2
|
export { ApiKeys, OrganizationSwitcher, Pipes, UserProfile, UserSecurity, UserSessions, UsersManagement } from './widgets/index.js';
|
|
3
3
|
export { Secret, SecretForm, SecretsManager, SecretsManagerProps, VaultDeleteDialog, VaultEmptyState, VaultInputModal, VaultItemCard, VaultList } from './vault/index.js';
|
|
4
4
|
export { f as VaultDeleteDialogProps, g as VaultEmptyStateProps, a as VaultField, e as VaultInputModalProps, b as VaultIntegration, V as VaultItem, d as VaultItemCardProps, c as VaultListProps } from './types-8tixck1H.js';
|
|
5
5
|
export { SignInButton, SignOutButton, TeamSwitcher, UserMenu } from './components/index.js';
|
|
6
6
|
export { useAuth } from '@workos-inc/authkit-react';
|
|
7
7
|
export { UseVaultResult, useVault, useVaultOptional, useWidgetToken } from './hooks/index.js';
|
|
8
|
-
export { A as AuthGateProps, a as AuthToken, B as BaseWidgetProps, I as IdentityProviderProps, O as OrganizationWidgetProps, U as UseWidgetTokenOptions, b as UseWidgetTokenResult, W as WidgetsProviderProps } from './auth-
|
|
8
|
+
export { A as AuthGateProps, a as AuthToken, B as BaseWidgetProps, I as IdentityProviderProps, O as OrganizationWidgetProps, U as UseWidgetTokenOptions, b as UseWidgetTokenResult, W as WidgetsProviderProps } from './auth-maeYSYU_.js';
|
|
9
9
|
export { a as AuthOrganization, e as AuthOrganizationSchema, b as AuthSession, d as AuthSessionSchema, A as AuthUser, c as AuthUserSchema, I as Impersonator, f as ImpersonatorSchema } from './auth-organization-CN1WpGnL.js';
|
|
10
10
|
export { AppearanceSchema, AuthGatePropsSchema, AuthTokenSchema, BaseWidgetPropsSchema, IdentityProviderPropsSchema, OrganizationWidgetPropsSchema, RadiusSchema, ScalingSchema, UnauthenticatedActionSchema, UseWidgetTokenOptionsSchema, UseWidgetTokenResultSchema, WidgetsProviderPropsSchema } from './schemas/index.js';
|
|
11
|
+
export { ApiKeysPage, AuthApp, AuthAppConfig, AuthAppProps, AuthAppProvider, AuthAppRoute, AuthAppWithChildren, AuthShell, AuthShellBranding, AuthShellConfigProvider, AuthShellIdentity, AuthShellNav, AuthShellNavProps, AuthShellProps, BreadcrumbItemConfig, BreadcrumbLinkProps, Breadcrumbs, BreadcrumbsProps, IntegrationsPage, ProfilePage, SecurityPage, SessionsPage, SidebarOrgSwitcher, TeamPage, WidgetErrorBoundary, accountRoutes, adminRoutes, defaultGroups, defaultRoutes, developerRoutes, getEnvConfig, integrationRoutes, mergeWithEnvConfig, useAuthShellBranding, useAuthShellConfig, useAuthShellFullPath, useAuthShellRoutes, useAuthShellRoutesByGroup } from './shell/index.js';
|
|
12
|
+
export { AuthShellConfig, ProtectedRoute, RouteGroup, ThemeMode } from 'mdxui';
|
|
11
13
|
import 'react/jsx-runtime';
|
|
12
14
|
import 'react';
|
|
13
15
|
import 'zod/v4/core';
|
|
14
16
|
import 'zod';
|
|
17
|
+
import 'lucide-react';
|