@absolutejs/auth 0.22.5 → 0.22.6
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/example/components/auth/AuthContainer.d.ts +1 -0
- package/dist/example/components/auth/OAuthButton.d.ts +7 -0
- package/dist/example/components/auth/OAuthButtons.d.ts +5 -0
- package/dist/example/components/hamburger/HamburgerDropdown.d.ts +10 -0
- package/dist/example/components/hamburger/HamburgerHeader.d.ts +5 -0
- package/dist/example/components/hamburger/HamburgerMenu.d.ts +14 -0
- package/dist/example/components/hamburger/HamburgerUserButtons.d.ts +8 -0
- package/dist/example/components/navbar/DropdownContainer.d.ts +17 -0
- package/dist/example/components/navbar/Navbar.d.ts +7 -0
- package/dist/example/components/navbar/NavbarDropdown.d.ts +10 -0
- package/dist/example/components/navbar/NavbarLink.d.ts +8 -0
- package/dist/example/components/navbar/NavbarLinks.d.ts +6 -0
- package/dist/example/components/navbar/NavbarUserButtons.d.ts +7 -0
- package/dist/example/components/page/Head.d.ts +6 -0
- package/dist/example/components/protected/AccountOverview.d.ts +6 -0
- package/dist/example/components/protected/DeleteAccountSection.d.ts +5 -0
- package/dist/example/components/protected/LinkedAuthIdentitiesPanel.d.ts +1 -0
- package/dist/example/components/protected/LinkedProvidersPanel.d.ts +1 -0
- package/dist/example/components/protected/ProviderButtons.d.ts +1 -0
- package/dist/example/components/protected/SettingsNoticeToast.d.ts +1 -0
- package/dist/example/components/protected/UserInfo.d.ts +7 -0
- package/dist/example/components/utils/AnimatedComponents.d.ts +1 -0
- package/dist/example/components/utils/Divider.d.ts +7 -0
- package/dist/example/components/utils/HighlightedJson.d.ts +5 -0
- package/dist/example/components/utils/JsonLine.d.ts +6 -0
- package/dist/example/components/utils/Modal.d.ts +9 -0
- package/dist/example/components/utils/ProfilePicture.d.ts +8 -0
- package/dist/example/components/utils/ProviderDropdown.d.ts +8 -0
- package/dist/example/components/utils/Toast.d.ts +14 -0
- package/dist/example/components/utils/ToastProvider.d.ts +30 -0
- package/dist/example/db/schema.d.ts +2570 -0
- package/dist/example/eden/treaty.d.ts +1 -0
- package/dist/example/handlers/userHandlers.d.ts +254 -0
- package/dist/example/hooks/useAuthIdentityPayload.d.ts +37 -0
- package/dist/example/hooks/useAuthStatus.d.ts +19 -0
- package/dist/example/hooks/useContainerQuery.d.ts +10 -0
- package/dist/example/hooks/useMediaQuery.d.ts +11 -0
- package/dist/example/linkedProviders/persistCallbackAuthorization.d.ts +30 -0
- package/dist/example/linkedProviders/resolver.d.ts +1 -0
- package/dist/example/linkedProviders/stores.d.ts +9 -0
- package/dist/example/pages/Connectors.d.ts +1 -0
- package/dist/example/pages/Home.d.ts +1 -0
- package/dist/example/pages/NotAuthorized.d.ts +1 -0
- package/dist/example/pages/Protected.d.ts +1 -0
- package/dist/example/pages/Settings.d.ts +1 -0
- package/dist/example/server.d.ts +902 -0
- package/dist/example/styles/authModalStyles.d.ts +22 -0
- package/dist/example/styles/navbarStyles.d.ts +15 -0
- package/dist/example/styles/styles.d.ts +15 -0
- package/dist/example/utils/absoluteAuthConfig.d.ts +4 -0
- package/dist/example/utils/constants.d.ts +1 -0
- package/dist/example/utils/navbarData.d.ts +2 -0
- package/dist/example/utils/providerData.d.ts +9 -0
- package/dist/example/utils/providersConfiguration.d.ts +1 -0
- package/dist/example/utils/typeGuards.d.ts +1 -0
- package/dist/example/utils/types.d.ts +26 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +360 -246
- package/dist/index.js.map +7 -6
- package/dist/src/index.d.ts +1 -0
- package/dist/src/neonAuthSessionStore.d.ts +563 -0
- package/package.json +86 -74
- package/.claude/settings.local.json +0 -5
- package/.env.example +0 -212
- package/.prettierignore +0 -4
- package/.prettierrc.json +0 -9
- package/CLAUDE.md +0 -91
- package/drizzle.config.ts +0 -14
- package/eslint.config.mjs +0 -251
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export declare const confirmInputStyle: CSSProperties;
|
|
3
|
+
export declare const containerStyle: CSSProperties;
|
|
4
|
+
export declare const oauthButtonContentStyle: CSSProperties;
|
|
5
|
+
type OAuthButtonStyleProps = {
|
|
6
|
+
providerPrimaryColor?: string;
|
|
7
|
+
isProviderSelected: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const oauthButtonStyle: ({ providerPrimaryColor, isProviderSelected }: OAuthButtonStyleProps) => CSSProperties;
|
|
10
|
+
export declare const oauthButtonTextStyle: CSSProperties;
|
|
11
|
+
export declare const oauthIconStyle: CSSProperties;
|
|
12
|
+
export declare const headingStyle: CSSProperties;
|
|
13
|
+
export declare const labelStyle: CSSProperties;
|
|
14
|
+
export declare const loginLinkTextStyle: CSSProperties;
|
|
15
|
+
export declare const loginTextStyle: CSSProperties;
|
|
16
|
+
export declare const separatorStyle: CSSProperties;
|
|
17
|
+
export declare const separatorTextStyle: CSSProperties;
|
|
18
|
+
export declare const separatorLineStyle: ({ color, height }?: {
|
|
19
|
+
color?: string | undefined;
|
|
20
|
+
height?: string | undefined;
|
|
21
|
+
}) => CSSProperties;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpringValue } from '@react-spring/web';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
import { AnimatedCSSProperties } from '../utils/types';
|
|
4
|
+
export declare const dropdownStyle: CSSProperties;
|
|
5
|
+
export declare const hamburgerBarStyle: CSSProperties;
|
|
6
|
+
export declare const hamburgerButtonStyle: CSSProperties;
|
|
7
|
+
export declare const navbarContainerStyle: CSSProperties;
|
|
8
|
+
export declare const navbarDrowdownLinkStyle: CSSProperties;
|
|
9
|
+
export declare const optionStyle: CSSProperties;
|
|
10
|
+
export declare const getNavbarDropdownListStyle: (dropdownSpring: {
|
|
11
|
+
height: SpringValue<number>;
|
|
12
|
+
opacity: SpringValue<number>;
|
|
13
|
+
transform: SpringValue<string>;
|
|
14
|
+
}) => AnimatedCSSProperties;
|
|
15
|
+
export declare const profileButtonStyle: CSSProperties;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export declare const styleReset = "\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n font-weight: inherit;\n }\n";
|
|
3
|
+
export declare const primaryColor = "#4A90E2";
|
|
4
|
+
export declare const secondaryColor = "#50E3C2";
|
|
5
|
+
export declare const bodyDefault: CSSProperties;
|
|
6
|
+
export declare const mainDefault: CSSProperties;
|
|
7
|
+
export declare const htmlDefault: CSSProperties;
|
|
8
|
+
type ButtonStyleProps = {
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
width?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const buttonStyle: ({ backgroundColor, color, width }: ButtonStyleProps) => CSSProperties;
|
|
14
|
+
export declare const contentStyle: CSSProperties;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const TOAST_DURATION = 5000;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProviderOption } from 'citra';
|
|
2
|
+
export type ProviderInfo = {
|
|
3
|
+
name: string;
|
|
4
|
+
logoUrl: string;
|
|
5
|
+
primaryColor: string;
|
|
6
|
+
};
|
|
7
|
+
type ProviderData = Record<Lowercase<ProviderOption>, ProviderInfo>;
|
|
8
|
+
export declare const providerData: ProviderData;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const providersConfiguration: import("../../src").OAuth2ConfigurationOptions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isNonEmptyString: (str: string | null | undefined) => str is string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AnimatedProps } from '@react-spring/web';
|
|
2
|
+
import { NeonHttpDatabase } from 'drizzle-orm/neon-http';
|
|
3
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
4
|
+
export type AnimatedCSSProperties = AnimatedProps<CSSProperties>;
|
|
5
|
+
export type NavbarLink = {
|
|
6
|
+
href: string;
|
|
7
|
+
label: string;
|
|
8
|
+
icon?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
type NavbarDropdown = {
|
|
11
|
+
label: string;
|
|
12
|
+
href: string;
|
|
13
|
+
links: NavbarLink[];
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export declare const isNavbarDropdown: (element: NavbarElement) => element is NavbarDropdown;
|
|
17
|
+
export type NavbarElement = NavbarLink | NavbarDropdown;
|
|
18
|
+
export type UserFunctionProps<SchemaType extends Record<string, unknown>> = {
|
|
19
|
+
authProvider: string;
|
|
20
|
+
userIdentity: Record<string, unknown>;
|
|
21
|
+
db: NeonHttpDatabase<SchemaType>;
|
|
22
|
+
};
|
|
23
|
+
export type LinkUserIdentityProps<SchemaType extends Record<string, unknown>> = UserFunctionProps<SchemaType> & {
|
|
24
|
+
userSub: string;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|