@insforge/react 0.5.10 → 0.6.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/atoms.cjs +3 -2
- package/dist/atoms.cjs.map +1 -1
- package/dist/atoms.js +3 -2
- package/dist/atoms.js.map +1 -1
- package/dist/components.cjs +3 -2
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +3 -2
- package/dist/components.js.map +1 -1
- package/dist/forms.cjs +3 -2
- package/dist/forms.cjs.map +1 -1
- package/dist/forms.js +3 -2
- package/dist/forms.js.map +1 -1
- package/dist/hooks.cjs +2 -1
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.js +2 -1
- package/dist/hooks.js.map +1 -1
- package/dist/index.cjs +376 -292
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -4
- package/dist/index.d.ts +8 -4
- package/dist/index.js +377 -293
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3,9 +3,9 @@ export { ForgotPasswordForm, ForgotPasswordFormProps, ResetPasswordForm, ResetPa
|
|
|
3
3
|
export { AuthBranding, AuthContainer, AuthContainerProps, AuthDivider, AuthDividerProps, AuthEmailVerificationStep, AuthErrorBanner, AuthErrorBannerProps, AuthFormField, AuthFormFieldProps, AuthHeader, AuthHeaderProps, AuthLink, AuthLinkProps, AuthOAuthButton, AuthOAuthButtonProps, AuthOAuthProviders, AuthOAuthProvidersProps, AuthPasswordField, AuthPasswordFieldProps, AuthPasswordStrengthIndicator, AuthPasswordStrengthIndicatorProps, AuthResetPasswordVerificationStep, AuthSubmitButton, AuthSubmitButtonProps, AuthVerificationCodeInput, AuthVerificationCodeInputProps } from './atoms.cjs';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
|
-
import { UserSchema } from '@insforge/sdk';
|
|
7
6
|
import { InsforgeUser, OAuthProvider, OAuthProviderConfig } from './types.cjs';
|
|
8
7
|
export { AuthConfig, EmailVerificationMethod } from './types.cjs';
|
|
8
|
+
import { UserSchema } from '@insforge/sdk';
|
|
9
9
|
import { CreateSessionResponse, CreateUserResponse, ResetPasswordResponse, GetPublicAuthConfigResponse } from '@insforge/shared-schemas';
|
|
10
10
|
export { useAuth, usePublicAuthConfig, useUser } from './hooks.cjs';
|
|
11
11
|
export { checkPasswordStrength, createPasswordSchema, emailSchema, passwordSchema, resolveAuthPath, resolveAuthUrl, validateEmail, validatePassword } from './lib.cjs';
|
|
@@ -65,6 +65,7 @@ interface InsforgeContextValue {
|
|
|
65
65
|
baseUrl: string;
|
|
66
66
|
afterSignInUrl: string;
|
|
67
67
|
}
|
|
68
|
+
|
|
68
69
|
interface InsforgeProviderProps {
|
|
69
70
|
children: ReactNode;
|
|
70
71
|
baseUrl: string;
|
|
@@ -80,8 +81,8 @@ interface InsforgeProviderProps {
|
|
|
80
81
|
/**
|
|
81
82
|
* Unified Insforge Provider - manages authentication state and configuration
|
|
82
83
|
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
84
|
+
* Uses singleton InsforgeManager to manage state across packages.
|
|
85
|
+
* Context only subscribes to Manager and triggers React re-renders.
|
|
85
86
|
*
|
|
86
87
|
* @example
|
|
87
88
|
* ```tsx
|
|
@@ -120,6 +121,9 @@ declare function InsforgeProvider(props: InsforgeProviderProps): react_jsx_runti
|
|
|
120
121
|
/**
|
|
121
122
|
* Hook to access Insforge context
|
|
122
123
|
*
|
|
124
|
+
* Works seamlessly across packages thanks to singleton Manager.
|
|
125
|
+
* Context instance is guaranteed to be consistent.
|
|
126
|
+
*
|
|
123
127
|
* @example
|
|
124
128
|
* ```tsx
|
|
125
129
|
* function MyComponent() {
|
|
@@ -148,4 +152,4 @@ declare function getProviderConfig(provider: OAuthProvider): OAuthProviderConfig
|
|
|
148
152
|
*/
|
|
149
153
|
declare function getAllProviderConfigs(): Partial<Record<OAuthProvider, OAuthProviderConfig>>;
|
|
150
154
|
|
|
151
|
-
export { InsforgeProvider, InsforgeProviderCore, type InsforgeProviderProps, InsforgeUser, OAUTH_PROVIDER_CONFIG, OAuthProvider, OAuthProviderConfig, getAllProviderConfigs, getProviderConfig, useInsforge };
|
|
155
|
+
export { type InsforgeContextValue, InsforgeProvider, InsforgeProviderCore, type InsforgeProviderProps, InsforgeUser, OAUTH_PROVIDER_CONFIG, OAuthProvider, OAuthProviderConfig, getAllProviderConfigs, getProviderConfig, useInsforge };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@ export { ForgotPasswordForm, ForgotPasswordFormProps, ResetPasswordForm, ResetPa
|
|
|
3
3
|
export { AuthBranding, AuthContainer, AuthContainerProps, AuthDivider, AuthDividerProps, AuthEmailVerificationStep, AuthErrorBanner, AuthErrorBannerProps, AuthFormField, AuthFormFieldProps, AuthHeader, AuthHeaderProps, AuthLink, AuthLinkProps, AuthOAuthButton, AuthOAuthButtonProps, AuthOAuthProviders, AuthOAuthProvidersProps, AuthPasswordField, AuthPasswordFieldProps, AuthPasswordStrengthIndicator, AuthPasswordStrengthIndicatorProps, AuthResetPasswordVerificationStep, AuthSubmitButton, AuthSubmitButtonProps, AuthVerificationCodeInput, AuthVerificationCodeInputProps } from './atoms.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
|
-
import { UserSchema } from '@insforge/sdk';
|
|
7
6
|
import { InsforgeUser, OAuthProvider, OAuthProviderConfig } from './types.js';
|
|
8
7
|
export { AuthConfig, EmailVerificationMethod } from './types.js';
|
|
8
|
+
import { UserSchema } from '@insforge/sdk';
|
|
9
9
|
import { CreateSessionResponse, CreateUserResponse, ResetPasswordResponse, GetPublicAuthConfigResponse } from '@insforge/shared-schemas';
|
|
10
10
|
export { useAuth, usePublicAuthConfig, useUser } from './hooks.js';
|
|
11
11
|
export { checkPasswordStrength, createPasswordSchema, emailSchema, passwordSchema, resolveAuthPath, resolveAuthUrl, validateEmail, validatePassword } from './lib.js';
|
|
@@ -65,6 +65,7 @@ interface InsforgeContextValue {
|
|
|
65
65
|
baseUrl: string;
|
|
66
66
|
afterSignInUrl: string;
|
|
67
67
|
}
|
|
68
|
+
|
|
68
69
|
interface InsforgeProviderProps {
|
|
69
70
|
children: ReactNode;
|
|
70
71
|
baseUrl: string;
|
|
@@ -80,8 +81,8 @@ interface InsforgeProviderProps {
|
|
|
80
81
|
/**
|
|
81
82
|
* Unified Insforge Provider - manages authentication state and configuration
|
|
82
83
|
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
84
|
+
* Uses singleton InsforgeManager to manage state across packages.
|
|
85
|
+
* Context only subscribes to Manager and triggers React re-renders.
|
|
85
86
|
*
|
|
86
87
|
* @example
|
|
87
88
|
* ```tsx
|
|
@@ -120,6 +121,9 @@ declare function InsforgeProvider(props: InsforgeProviderProps): react_jsx_runti
|
|
|
120
121
|
/**
|
|
121
122
|
* Hook to access Insforge context
|
|
122
123
|
*
|
|
124
|
+
* Works seamlessly across packages thanks to singleton Manager.
|
|
125
|
+
* Context instance is guaranteed to be consistent.
|
|
126
|
+
*
|
|
123
127
|
* @example
|
|
124
128
|
* ```tsx
|
|
125
129
|
* function MyComponent() {
|
|
@@ -148,4 +152,4 @@ declare function getProviderConfig(provider: OAuthProvider): OAuthProviderConfig
|
|
|
148
152
|
*/
|
|
149
153
|
declare function getAllProviderConfigs(): Partial<Record<OAuthProvider, OAuthProviderConfig>>;
|
|
150
154
|
|
|
151
|
-
export { InsforgeProvider, InsforgeProviderCore, type InsforgeProviderProps, InsforgeUser, OAUTH_PROVIDER_CONFIG, OAuthProvider, OAuthProviderConfig, getAllProviderConfigs, getProviderConfig, useInsforge };
|
|
155
|
+
export { type InsforgeContextValue, InsforgeProvider, InsforgeProviderCore, type InsforgeProviderProps, InsforgeUser, OAUTH_PROVIDER_CONFIG, OAuthProvider, OAuthProviderConfig, getAllProviderConfigs, getProviderConfig, useInsforge };
|