@skylabs-digital/react-identity-access 1.5.0 → 1.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/README.md +203 -42
- package/dist/components/LoginForm.d.ts +7 -3
- package/dist/components/LoginForm.d.ts.map +1 -1
- package/dist/components/MagicLinkForm.d.ts +53 -0
- package/dist/components/MagicLinkForm.d.ts.map +1 -0
- package/dist/components/MagicLinkVerify.d.ts +45 -0
- package/dist/components/MagicLinkVerify.d.ts.map +1 -0
- package/dist/components/SignupForm.d.ts +9 -1
- package/dist/components/SignupForm.d.ts.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +1562 -855
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/providers/AuthProvider.d.ts +5 -3
- package/dist/providers/AuthProvider.d.ts.map +1 -1
- package/dist/services/AuthApiService.d.ts +6 -3
- package/dist/services/AuthApiService.d.ts.map +1 -1
- package/dist/types/api.d.ts +36 -6
- package/dist/types/api.d.ts.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# React Identity Access
|
|
2
2
|
|
|
3
|
-
A powerful, modern authentication and authorization library for React applications. Built with TypeScript, featuring role-based access control, permission management, and seamless integration with React applications.
|
|
3
|
+
A powerful, modern authentication and authorization library for React applications. Built with TypeScript, featuring role-based access control, permission management, Magic Link authentication, and seamless integration with React applications.
|
|
4
4
|
|
|
5
5
|
## 🚀 Features
|
|
6
6
|
|
|
7
7
|
- **🔐 Secure Authentication** - JWT-based authentication with automatic token refresh
|
|
8
|
+
- **✨ Magic Link Authentication** - Passwordless authentication via email with automatic verification
|
|
9
|
+
- **📧 Flexible Login** - Support for both email and phone number authentication
|
|
8
10
|
- **👥 Role-Based Access Control** - Granular permission system with role hierarchy
|
|
9
11
|
- **🛡️ Protected Components** - Easy-to-use components for conditional rendering
|
|
10
12
|
- **📱 Multi-Tenant Support** - Built-in support for multi-tenant applications
|
|
@@ -31,7 +33,11 @@ pnpm add @skylabs-digital/react-identity-access
|
|
|
31
33
|
Wrap your application with the required providers:
|
|
32
34
|
|
|
33
35
|
```tsx
|
|
34
|
-
import {
|
|
36
|
+
import {
|
|
37
|
+
AppProvider,
|
|
38
|
+
TenantProvider,
|
|
39
|
+
AuthProvider
|
|
40
|
+
} from '@skylabs-digital/react-identity-access';
|
|
35
41
|
|
|
36
42
|
function App() {
|
|
37
43
|
return (
|
|
@@ -39,19 +45,24 @@ function App() {
|
|
|
39
45
|
config={{
|
|
40
46
|
baseUrl: 'https://your-api.com',
|
|
41
47
|
appId: 'your-app-id',
|
|
42
|
-
tenantMode: 'subdomain', // or 'path' or 'header'
|
|
43
|
-
selectorParam: 'tenant',
|
|
44
48
|
}}
|
|
45
49
|
>
|
|
46
|
-
<
|
|
47
|
-
{
|
|
48
|
-
|
|
50
|
+
<TenantProvider
|
|
51
|
+
config={{
|
|
52
|
+
tenantMode: 'selector', // 'subdomain', 'selector', or 'fixed'
|
|
53
|
+
selectorParam: 'tenant',
|
|
54
|
+
}}
|
|
55
|
+
>
|
|
56
|
+
<AuthProvider>
|
|
57
|
+
{/* Your app components */}
|
|
58
|
+
</AuthProvider>
|
|
59
|
+
</TenantProvider>
|
|
49
60
|
</AppProvider>
|
|
50
61
|
);
|
|
51
62
|
}
|
|
52
63
|
```
|
|
53
64
|
|
|
54
|
-
### 2.
|
|
65
|
+
### 2. Traditional Authentication
|
|
55
66
|
|
|
56
67
|
```tsx
|
|
57
68
|
import { useAuth } from '@skylabs-digital/react-identity-access';
|
|
@@ -62,7 +73,9 @@ function LoginComponent() {
|
|
|
62
73
|
|
|
63
74
|
const handleLogin = async () => {
|
|
64
75
|
try {
|
|
65
|
-
|
|
76
|
+
// Supports both email and phone number
|
|
77
|
+
await login('user@example.com', 'password'); // Email
|
|
78
|
+
// await login('+1234567890', 'password'); // Phone
|
|
66
79
|
} catch (error) {
|
|
67
80
|
console.error('Login failed:', error);
|
|
68
81
|
}
|
|
@@ -83,7 +96,59 @@ function LoginComponent() {
|
|
|
83
96
|
}
|
|
84
97
|
```
|
|
85
98
|
|
|
86
|
-
### 3.
|
|
99
|
+
### 3. Magic Link Authentication
|
|
100
|
+
|
|
101
|
+
```tsx
|
|
102
|
+
import {
|
|
103
|
+
MagicLinkForm,
|
|
104
|
+
MagicLinkVerify,
|
|
105
|
+
useAuth
|
|
106
|
+
} from '@skylabs-digital/react-identity-access';
|
|
107
|
+
import { useNavigate } from 'react-router-dom';
|
|
108
|
+
|
|
109
|
+
// Send Magic Link
|
|
110
|
+
function MagicLinkLogin() {
|
|
111
|
+
const navigate = useNavigate();
|
|
112
|
+
|
|
113
|
+
const handleSuccess = (response) => {
|
|
114
|
+
console.log('Magic link sent successfully!');
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
return (
|
|
118
|
+
<MagicLinkForm
|
|
119
|
+
frontendUrl="https://yourapp.com"
|
|
120
|
+
onSuccess={handleSuccess}
|
|
121
|
+
onLoginClick={() => navigate('/login')}
|
|
122
|
+
onSignupClick={() => navigate('/signup')}
|
|
123
|
+
/>
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Verify Magic Link (at /magic-link/verify route)
|
|
128
|
+
function MagicLinkVerifyPage() {
|
|
129
|
+
const navigate = useNavigate();
|
|
130
|
+
|
|
131
|
+
const handleSuccess = (data) => {
|
|
132
|
+
console.log('Magic link verified!', data);
|
|
133
|
+
navigate('/dashboard');
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
const handleError = (error) => {
|
|
137
|
+
console.error('Verification failed:', error);
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
return (
|
|
141
|
+
<MagicLinkVerify
|
|
142
|
+
onSuccess={handleSuccess}
|
|
143
|
+
onError={handleError}
|
|
144
|
+
onBackToLogin={() => navigate('/login')}
|
|
145
|
+
autoRedirectDelay={3000}
|
|
146
|
+
/>
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### 4. Protect Components
|
|
87
152
|
|
|
88
153
|
```tsx
|
|
89
154
|
import { Protected } from '@skylabs-digital/react-identity-access';
|
|
@@ -100,11 +165,88 @@ function AdminPanel() {
|
|
|
100
165
|
}
|
|
101
166
|
```
|
|
102
167
|
|
|
168
|
+
## 🧩 Pre-built Components
|
|
169
|
+
|
|
170
|
+
The library includes ready-to-use form components with full customization support:
|
|
171
|
+
|
|
172
|
+
### Authentication Forms
|
|
173
|
+
|
|
174
|
+
```tsx
|
|
175
|
+
import {
|
|
176
|
+
LoginForm,
|
|
177
|
+
SignupForm,
|
|
178
|
+
MagicLinkForm,
|
|
179
|
+
MagicLinkVerify,
|
|
180
|
+
PasswordRecoveryForm
|
|
181
|
+
} from '@skylabs-digital/react-identity-access';
|
|
182
|
+
|
|
183
|
+
// Login Form (supports email/phone + password)
|
|
184
|
+
<LoginForm
|
|
185
|
+
onSuccess={(user) => console.log('Logged in:', user)}
|
|
186
|
+
onForgotPasswordClick={() => navigate('/forgot-password')}
|
|
187
|
+
onSignupClick={() => navigate('/signup')}
|
|
188
|
+
onMagicLinkClick={() => navigate('/magic-link')}
|
|
189
|
+
showMagicLinkOption={true}
|
|
190
|
+
/>
|
|
191
|
+
|
|
192
|
+
// Signup Form
|
|
193
|
+
<SignupForm
|
|
194
|
+
onSuccess={(user) => console.log('Signed up:', user)}
|
|
195
|
+
onLoginClick={() => navigate('/login')}
|
|
196
|
+
onMagicLinkClick={() => navigate('/magic-link')}
|
|
197
|
+
showMagicLinkOption={true}
|
|
198
|
+
/>
|
|
199
|
+
|
|
200
|
+
// Magic Link Form
|
|
201
|
+
<MagicLinkForm
|
|
202
|
+
frontendUrl="https://yourapp.com"
|
|
203
|
+
onSuccess={() => console.log('Magic link sent!')}
|
|
204
|
+
onLoginClick={() => navigate('/login')}
|
|
205
|
+
onSignupClick={() => navigate('/signup')}
|
|
206
|
+
/>
|
|
207
|
+
|
|
208
|
+
// Magic Link Verification
|
|
209
|
+
<MagicLinkVerify
|
|
210
|
+
onSuccess={(data) => navigate('/dashboard')}
|
|
211
|
+
onError={(error) => console.error(error)}
|
|
212
|
+
onBackToLogin={() => navigate('/login')}
|
|
213
|
+
/>
|
|
214
|
+
|
|
215
|
+
// Password Recovery
|
|
216
|
+
<PasswordRecoveryForm
|
|
217
|
+
onSuccess={() => console.log('Recovery email sent!')}
|
|
218
|
+
onBackToLogin={() => navigate('/login')}
|
|
219
|
+
/>
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Customization
|
|
223
|
+
|
|
224
|
+
All components support full customization of copy, styles, and icons:
|
|
225
|
+
|
|
226
|
+
```tsx
|
|
227
|
+
<LoginForm
|
|
228
|
+
copy={{
|
|
229
|
+
title: 'Welcome Back',
|
|
230
|
+
submitButton: 'Sign In',
|
|
231
|
+
usernameLabel: 'Email or Phone',
|
|
232
|
+
}}
|
|
233
|
+
styles={{
|
|
234
|
+
container: { backgroundColor: '#f8f9fa' },
|
|
235
|
+
button: { backgroundColor: '#007bff' },
|
|
236
|
+
}}
|
|
237
|
+
icons={{
|
|
238
|
+
showPassword: <CustomEyeIcon />,
|
|
239
|
+
hidePassword: <CustomEyeOffIcon />,
|
|
240
|
+
}}
|
|
241
|
+
/>
|
|
242
|
+
```
|
|
243
|
+
|
|
103
244
|
## 🏗️ Architecture
|
|
104
245
|
|
|
105
246
|
### Core Providers
|
|
106
247
|
|
|
107
248
|
- **AppProvider** - Application configuration and context
|
|
249
|
+
- **TenantProvider** - Multi-tenant configuration and management
|
|
108
250
|
- **AuthProvider** - Authentication and session management
|
|
109
251
|
- **FeatureFlagProvider** - Feature flag management
|
|
110
252
|
- **SubscriptionProvider** - Billing and subscription handling
|
|
@@ -133,27 +275,31 @@ Examples:
|
|
|
133
275
|
|
|
134
276
|
## 🎮 Demo Application
|
|
135
277
|
|
|
136
|
-
A complete demo application is included in the `
|
|
278
|
+
A complete demo application is included in the `example/` directory. To run it:
|
|
137
279
|
|
|
138
280
|
```bash
|
|
139
|
-
cd
|
|
140
|
-
|
|
141
|
-
|
|
281
|
+
cd example
|
|
282
|
+
yarn install
|
|
283
|
+
yarn start
|
|
142
284
|
```
|
|
143
285
|
|
|
144
286
|
The demo showcases:
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
-
-
|
|
287
|
+
- **Traditional Authentication** - Email/phone + password login
|
|
288
|
+
- **Magic Link Authentication** - Passwordless login with automatic verification
|
|
289
|
+
- **User Registration** - Signup with email/phone support
|
|
290
|
+
- **Password Recovery** - Reset password functionality
|
|
291
|
+
- **Role-based Dashboard** - Different views based on user roles
|
|
292
|
+
- **Permission Testing** - Interactive permission system testing
|
|
293
|
+
- **Protected Routes** - Route-level access control
|
|
294
|
+
- **Feature Flag Usage** - Dynamic feature toggling
|
|
295
|
+
- **Multi-tenant Support** - Tenant switching and management
|
|
150
296
|
|
|
151
297
|
## 🛠️ Development
|
|
152
298
|
|
|
153
299
|
### Prerequisites
|
|
154
300
|
|
|
155
|
-
- Node.js
|
|
156
|
-
-
|
|
301
|
+
- Node.js 18+
|
|
302
|
+
- yarn (recommended) or npm
|
|
157
303
|
|
|
158
304
|
### Setup
|
|
159
305
|
|
|
@@ -163,16 +309,19 @@ git clone https://github.com/skylabs-digital/react-identity-access.git
|
|
|
163
309
|
cd react-identity-access
|
|
164
310
|
|
|
165
311
|
# Install dependencies
|
|
166
|
-
|
|
312
|
+
yarn install
|
|
167
313
|
|
|
168
314
|
# Build the library
|
|
169
|
-
|
|
315
|
+
yarn build
|
|
170
316
|
|
|
171
317
|
# Run tests
|
|
172
|
-
|
|
318
|
+
yarn test
|
|
319
|
+
|
|
320
|
+
# Run CI pipeline
|
|
321
|
+
yarn ci
|
|
173
322
|
|
|
174
|
-
# Start
|
|
175
|
-
|
|
323
|
+
# Start example app
|
|
324
|
+
cd example && yarn start
|
|
176
325
|
```
|
|
177
326
|
|
|
178
327
|
### Project Structure
|
|
@@ -180,12 +329,12 @@ pnpm dev
|
|
|
180
329
|
```
|
|
181
330
|
react-identity-access/
|
|
182
331
|
├── src/ # Library source code
|
|
183
|
-
│ ├── components/ # React components
|
|
184
|
-
│ ├── providers/ # Context providers
|
|
185
|
-
│ ├── services/ # API services
|
|
332
|
+
│ ├── components/ # React components (forms, guards, etc.)
|
|
333
|
+
│ ├── providers/ # Context providers (Auth, Tenant, etc.)
|
|
334
|
+
│ ├── services/ # API services and HTTP client
|
|
186
335
|
│ ├── types/ # TypeScript definitions
|
|
187
336
|
│ └── index.ts # Main export
|
|
188
|
-
├──
|
|
337
|
+
├── example/ # Demo application
|
|
189
338
|
├── docs/ # Documentation
|
|
190
339
|
├── dist/ # Built library
|
|
191
340
|
└── package.json
|
|
@@ -201,17 +350,24 @@ REACT_APP_ID=your-app-id
|
|
|
201
350
|
REACT_APP_TENANT_MODE=subdomain
|
|
202
351
|
```
|
|
203
352
|
|
|
204
|
-
###
|
|
353
|
+
### Provider Configuration
|
|
205
354
|
|
|
206
355
|
```tsx
|
|
356
|
+
// AppProvider Config
|
|
207
357
|
interface AppConfig {
|
|
208
358
|
baseUrl: string; // API base URL
|
|
209
359
|
appId: string; // Application identifier
|
|
210
|
-
tenantMode: 'subdomain' | 'path' | 'header';
|
|
211
|
-
selectorParam: string; // Tenant selector parameter
|
|
212
360
|
apiTimeout?: number; // Request timeout (default: 30000)
|
|
213
361
|
retryAttempts?: number; // Retry attempts (default: 3)
|
|
214
362
|
}
|
|
363
|
+
|
|
364
|
+
// TenantProvider Config
|
|
365
|
+
interface TenantConfig {
|
|
366
|
+
tenantMode: 'subdomain' | 'selector' | 'fixed';
|
|
367
|
+
selectorParam?: string; // For 'selector' mode
|
|
368
|
+
fixedTenantSlug?: string; // For 'fixed' mode
|
|
369
|
+
initialTenant?: string; // Initial tenant value
|
|
370
|
+
}
|
|
215
371
|
```
|
|
216
372
|
|
|
217
373
|
## 🧪 Testing
|
|
@@ -220,13 +376,13 @@ The library includes comprehensive tests:
|
|
|
220
376
|
|
|
221
377
|
```bash
|
|
222
378
|
# Run all tests
|
|
223
|
-
|
|
379
|
+
yarn test
|
|
224
380
|
|
|
225
381
|
# Run tests in watch mode
|
|
226
|
-
|
|
382
|
+
yarn test:watch
|
|
227
383
|
|
|
228
384
|
# Run tests with coverage
|
|
229
|
-
|
|
385
|
+
yarn test:coverage
|
|
230
386
|
```
|
|
231
387
|
|
|
232
388
|
## 📈 Performance
|
|
@@ -268,12 +424,17 @@ We welcome contributions! Please see our [Contributing Guide](./docs/contributin
|
|
|
268
424
|
|
|
269
425
|
## 🎯 Roadmap
|
|
270
426
|
|
|
271
|
-
- [
|
|
272
|
-
- [
|
|
273
|
-
- [
|
|
274
|
-
- [
|
|
275
|
-
- [ ]
|
|
276
|
-
- [ ]
|
|
427
|
+
- [x] **Magic Link Authentication** - Passwordless authentication via email ✅
|
|
428
|
+
- [x] **Email/Phone Login Support** - Flexible authentication methods ✅
|
|
429
|
+
- [x] **Pre-built Form Components** - Ready-to-use authentication forms ✅
|
|
430
|
+
- [x] **Multi-tenant Architecture** - Separate App and Tenant providers ✅
|
|
431
|
+
- [ ] **OAuth 2.0 / OpenID Connect** - Social login integration
|
|
432
|
+
- [ ] **Multi-factor Authentication** - SMS/TOTP support
|
|
433
|
+
- [ ] **Advanced Audit Logging** - Comprehensive security tracking
|
|
434
|
+
- [ ] **GraphQL Integration** - GraphQL API support
|
|
435
|
+
- [ ] **React Native Support** - Mobile app integration
|
|
436
|
+
- [ ] **SSR/Next.js Optimization** - Server-side rendering support
|
|
437
|
+
- [ ] **Biometric Authentication** - WebAuthn/FIDO2 support
|
|
277
438
|
|
|
278
439
|
---
|
|
279
440
|
|
|
@@ -2,14 +2,16 @@ import { default as React } from 'react';
|
|
|
2
2
|
|
|
3
3
|
export interface LoginFormCopy {
|
|
4
4
|
title?: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
usernameLabel?: string;
|
|
6
|
+
usernamePlaceholder?: string;
|
|
7
7
|
passwordLabel?: string;
|
|
8
8
|
passwordPlaceholder?: string;
|
|
9
9
|
submitButton?: string;
|
|
10
10
|
forgotPasswordLink?: string;
|
|
11
11
|
signupLink?: string;
|
|
12
12
|
signupText?: string;
|
|
13
|
+
magicLinkText?: string;
|
|
14
|
+
magicLinkLink?: string;
|
|
13
15
|
errorMessage?: string;
|
|
14
16
|
loadingText?: string;
|
|
15
17
|
}
|
|
@@ -43,9 +45,11 @@ export interface LoginFormProps {
|
|
|
43
45
|
onError?: (error: string) => void;
|
|
44
46
|
onForgotPassword?: () => void;
|
|
45
47
|
onSignupClick?: () => void;
|
|
48
|
+
onMagicLinkClick?: () => void;
|
|
46
49
|
showForgotPassword?: boolean;
|
|
47
50
|
showSignupLink?: boolean;
|
|
51
|
+
showMagicLinkOption?: boolean;
|
|
48
52
|
className?: string;
|
|
49
53
|
}
|
|
50
|
-
export declare function LoginForm({ copy, styles, icons, onSuccess, onError, onForgotPassword, onSignupClick, showForgotPassword, showSignupLink, className, }: LoginFormProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export declare function LoginForm({ copy, styles, icons, onSuccess, onError, onForgotPassword, onSignupClick, onMagicLinkClick, showForgotPassword, showSignupLink, showMagicLinkOption, className, }: LoginFormProps): import("react/jsx-runtime").JSX.Element;
|
|
51
55
|
//# sourceMappingURL=LoginForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../src/components/LoginForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../src/components/LoginForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CA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AAC;CAC/B;AAED,MAAM,WAAW,cAAc;IAC7B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsKD,wBAAgB,SAAS,CAAC,EACxB,IAAS,EACT,MAAW,EACX,KAAU,EACV,SAAS,EACT,OAAO,EACP,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,kBAAyB,EACzB,cAAqB,EACrB,mBAA0B,EAC1B,SAAS,GACV,EAAE,cAAc,2CAgKhB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface MagicLinkFormCopy {
|
|
4
|
+
title?: string;
|
|
5
|
+
emailLabel?: string;
|
|
6
|
+
emailPlaceholder?: string;
|
|
7
|
+
nameLabel?: string;
|
|
8
|
+
namePlaceholder?: string;
|
|
9
|
+
lastNameLabel?: string;
|
|
10
|
+
lastNamePlaceholder?: string;
|
|
11
|
+
submitButton?: string;
|
|
12
|
+
loginLink?: string;
|
|
13
|
+
signupLink?: string;
|
|
14
|
+
loginText?: string;
|
|
15
|
+
signupText?: string;
|
|
16
|
+
successMessage?: string;
|
|
17
|
+
errorMessage?: string;
|
|
18
|
+
loadingText?: string;
|
|
19
|
+
verifyingText?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface MagicLinkFormStyles {
|
|
23
|
+
container?: React.CSSProperties;
|
|
24
|
+
title?: React.CSSProperties;
|
|
25
|
+
description?: React.CSSProperties;
|
|
26
|
+
form?: React.CSSProperties;
|
|
27
|
+
fieldGroup?: React.CSSProperties;
|
|
28
|
+
label?: React.CSSProperties;
|
|
29
|
+
input?: React.CSSProperties;
|
|
30
|
+
inputError?: React.CSSProperties;
|
|
31
|
+
button?: React.CSSProperties;
|
|
32
|
+
buttonDisabled?: React.CSSProperties;
|
|
33
|
+
buttonLoading?: React.CSSProperties;
|
|
34
|
+
errorText?: React.CSSProperties;
|
|
35
|
+
successText?: React.CSSProperties;
|
|
36
|
+
linkContainer?: React.CSSProperties;
|
|
37
|
+
link?: React.CSSProperties;
|
|
38
|
+
divider?: React.CSSProperties;
|
|
39
|
+
}
|
|
40
|
+
export interface MagicLinkFormProps {
|
|
41
|
+
copy?: MagicLinkFormCopy;
|
|
42
|
+
styles?: MagicLinkFormStyles;
|
|
43
|
+
onSuccess?: (data: any) => void;
|
|
44
|
+
onError?: (error: string) => void;
|
|
45
|
+
onLoginClick?: () => void;
|
|
46
|
+
onSignupClick?: () => void;
|
|
47
|
+
showTraditionalLinks?: boolean;
|
|
48
|
+
className?: string;
|
|
49
|
+
verifyToken?: string;
|
|
50
|
+
frontendUrl?: string;
|
|
51
|
+
}
|
|
52
|
+
export declare function MagicLinkForm({ copy, styles, onSuccess, onError, onLoginClick, onSignupClick, showTraditionalLinks, className, verifyToken, frontendUrl, }: MagicLinkFormProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
//# sourceMappingURL=MagicLinkForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
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,aAAa,CAAC;IAC7B,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA+HD,wBAAgB,aAAa,CAAC,EAC5B,IAAS,EACT,MAAW,EACX,SAAS,EACT,OAAO,EACP,YAAY,EACZ,aAAa,EACb,oBAA2B,EAC3B,SAAS,EACT,WAAW,EACX,WAAW,GACZ,EAAE,kBAAkB,2CAuPpB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface MagicLinkVerifyCopy {
|
|
4
|
+
title?: string;
|
|
5
|
+
verifyingMessage?: string;
|
|
6
|
+
successMessage?: string;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
redirectingMessage?: string;
|
|
9
|
+
retryButton?: string;
|
|
10
|
+
backToLoginButton?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface MagicLinkVerifyStyles {
|
|
13
|
+
container?: React.CSSProperties;
|
|
14
|
+
card?: React.CSSProperties;
|
|
15
|
+
title?: React.CSSProperties;
|
|
16
|
+
message?: React.CSSProperties;
|
|
17
|
+
successMessage?: React.CSSProperties;
|
|
18
|
+
errorMessage?: React.CSSProperties;
|
|
19
|
+
spinner?: React.CSSProperties;
|
|
20
|
+
buttonContainer?: React.CSSProperties;
|
|
21
|
+
retryButton?: React.CSSProperties;
|
|
22
|
+
backButton?: React.CSSProperties;
|
|
23
|
+
}
|
|
24
|
+
export interface MagicLinkVerifyIcons {
|
|
25
|
+
loading?: React.ReactNode;
|
|
26
|
+
success?: React.ReactNode;
|
|
27
|
+
error?: React.ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export interface MagicLinkVerifyProps {
|
|
30
|
+
copy?: MagicLinkVerifyCopy;
|
|
31
|
+
styles?: MagicLinkVerifyStyles;
|
|
32
|
+
icons?: MagicLinkVerifyIcons;
|
|
33
|
+
onSuccess?: (data: any) => void;
|
|
34
|
+
onError?: (error: string) => void;
|
|
35
|
+
onRetry?: () => void;
|
|
36
|
+
onBackToLogin?: () => void;
|
|
37
|
+
className?: string;
|
|
38
|
+
token?: string;
|
|
39
|
+
email?: string;
|
|
40
|
+
appId?: string;
|
|
41
|
+
tenantId?: string;
|
|
42
|
+
autoRedirectDelay?: number;
|
|
43
|
+
}
|
|
44
|
+
export declare function MagicLinkVerify({ copy, styles, icons, onSuccess, onError, onRetry, onBackToLogin, className, token: propToken, email: propEmail, appId: propAppId, tenantId: propTenantId, autoRedirectDelay, }: MagicLinkVerifyProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
//# sourceMappingURL=MagicLinkVerify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MagicLinkVerify.d.ts","sourceRoot":"","sources":["../../src/components/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C,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAqJD,wBAAgB,eAAe,CAAC,EAC9B,IAAS,EACT,MAAW,EACX,KAAU,EACV,SAAS,EACT,OAAO,EACP,OAAO,EACP,aAAa,EACb,SAAS,EACT,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,YAAY,EACtB,iBAAwB,GACzB,EAAE,oBAAoB,2CAuJtB"}
|
|
@@ -4,8 +4,12 @@ export interface SignupFormCopy {
|
|
|
4
4
|
title?: string;
|
|
5
5
|
nameLabel?: string;
|
|
6
6
|
namePlaceholder?: string;
|
|
7
|
+
lastNameLabel?: string;
|
|
8
|
+
lastNamePlaceholder?: string;
|
|
7
9
|
emailLabel?: string;
|
|
8
10
|
emailPlaceholder?: string;
|
|
11
|
+
phoneNumberLabel?: string;
|
|
12
|
+
phoneNumberPlaceholder?: string;
|
|
9
13
|
passwordLabel?: string;
|
|
10
14
|
passwordPlaceholder?: string;
|
|
11
15
|
confirmPasswordLabel?: string;
|
|
@@ -15,6 +19,8 @@ export interface SignupFormCopy {
|
|
|
15
19
|
submitButton?: string;
|
|
16
20
|
loginLink?: string;
|
|
17
21
|
loginText?: string;
|
|
22
|
+
magicLinkText?: string;
|
|
23
|
+
magicLinkLink?: string;
|
|
18
24
|
errorMessage?: string;
|
|
19
25
|
loadingText?: string;
|
|
20
26
|
passwordMismatchError?: string;
|
|
@@ -48,8 +54,10 @@ export interface SignupFormProps {
|
|
|
48
54
|
onSuccess?: (data: any) => void;
|
|
49
55
|
onError?: (error: string) => void;
|
|
50
56
|
onLoginClick?: () => void;
|
|
57
|
+
onMagicLinkClick?: () => void;
|
|
51
58
|
showLoginLink?: boolean;
|
|
59
|
+
showMagicLinkOption?: boolean;
|
|
52
60
|
className?: string;
|
|
53
61
|
}
|
|
54
|
-
export declare function SignupForm({ copy, styles, signupType, onSuccess, onError, onLoginClick, showLoginLink, className, }: SignupFormProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare function SignupForm({ copy, styles, signupType, onSuccess, onError, onLoginClick, onMagicLinkClick, showLoginLink, showMagicLinkOption, className, }: SignupFormProps): import("react/jsx-runtime").JSX.Element;
|
|
55
63
|
//# sourceMappingURL=SignupForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignupForm.d.ts","sourceRoot":"","sources":["../../src/components/SignupForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SignupForm.d.ts","sourceRoot":"","sources":["../../src/components/SignupForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,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AAC;IACpC,SAAS,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAChC,aAAa,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACpC,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC/B;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkID,wBAAgB,UAAU,CAAC,EACzB,IAAS,EACT,MAAW,EACX,UAAmB,EACnB,SAAS,EACT,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,aAAoB,EACpB,mBAA0B,EAC1B,SAAS,GACV,EAAE,eAAe,2CAmTjB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export { SubscriptionGuard } from './components/SubscriptionGuard';
|
|
|
17
17
|
export { FeatureFlag } from './components/FeatureFlag';
|
|
18
18
|
export { LoginForm } from './components/LoginForm';
|
|
19
19
|
export { SignupForm } from './components/SignupForm';
|
|
20
|
+
export { MagicLinkForm } from './components/MagicLinkForm';
|
|
21
|
+
export { MagicLinkVerify } from './components/MagicLinkVerify';
|
|
20
22
|
export { PasswordRecoveryForm } from './components/PasswordRecoveryForm';
|
|
21
23
|
export type { ProtectedProps } from './components/Protected';
|
|
22
24
|
export type { ProtectedRouteProps } from './components/ProtectedRoute';
|
|
@@ -25,6 +27,8 @@ export type { LandingRouteProps } from './components/LandingRoute';
|
|
|
25
27
|
export type { SubscriptionGuardProps } from './components/SubscriptionGuard';
|
|
26
28
|
export type { LoginFormProps, LoginFormCopy, LoginFormStyles } from './components/LoginForm';
|
|
27
29
|
export type { SignupFormProps, SignupFormCopy, SignupFormStyles } from './components/SignupForm';
|
|
30
|
+
export type { MagicLinkVerifyProps, MagicLinkVerifyCopy, MagicLinkVerifyStyles, } from './components/MagicLinkVerify';
|
|
31
|
+
export type { MagicLinkFormProps, MagicLinkFormCopy, MagicLinkFormStyles, } from './components/MagicLinkForm';
|
|
28
32
|
export type { PasswordRecoveryFormProps, PasswordRecoveryFormCopy, PasswordRecoveryFormStyles, } from './components/PasswordRecoveryForm';
|
|
29
33
|
export { UserType } from './types/api';
|
|
30
34
|
export type { User, PlanFeature, TenantSubscriptionFeatures } from './types/api';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtE,YAAY,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACjE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvF,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAClG,YAAY,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,aAAa,CAAC;AAClE,OAAO,EAAE,oBAA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