@aacigroup/aaci_shared 5.0.1 → 5.0.2
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 +38 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,44 @@ React Context-based tracking and magic-link library for frontend and backend pro
|
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
12
|
+
## Quick Links
|
|
13
|
+
|
|
14
|
+
- **[Client: Frontend (React)](#client-frontend-side--react)** - React Context, hooks, and components
|
|
15
|
+
- **[Client: Backend (Supabase Edge Functions)](./CLIENT_BACKEND.md)** - Magic Links, 2FA, and notifications in edge functions
|
|
16
|
+
- **[API Server (Backend Services)](./API_SERVER.md)** - Type-safe API handlers with validation
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Features
|
|
21
|
+
|
|
22
|
+
### 🔐 Magic Links & Authentication
|
|
23
|
+
- **V2 Magic Links** with built-in 2FA support (light/strict modes)
|
|
24
|
+
- **Email & SMS** 2FA delivery
|
|
25
|
+
- **Token validation** with URL pattern matching
|
|
26
|
+
- **Admin tokens** for privileged access
|
|
27
|
+
- Full TypeScript support with comprehensive types
|
|
28
|
+
|
|
29
|
+
### 📧 External Notifications
|
|
30
|
+
- **Email & SMS** notification sending
|
|
31
|
+
- Template-based messaging
|
|
32
|
+
- HTML content support
|
|
33
|
+
- Tracking and logging
|
|
34
|
+
|
|
35
|
+
### 📊 Lead Tracking & Analytics
|
|
36
|
+
- **PostHog** integration for analytics
|
|
37
|
+
- **Google Tag Manager (GTM)** support
|
|
38
|
+
- Lead capture with address validation
|
|
39
|
+
- Session data tracking
|
|
40
|
+
- Environment detection (prod/dev)
|
|
41
|
+
|
|
42
|
+
### ⚛️ React Integration
|
|
43
|
+
- **Context Providers** for easy setup
|
|
44
|
+
- **Custom hooks** for all features
|
|
45
|
+
- **Feature flags** support
|
|
46
|
+
- Type-safe throughout
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
12
50
|
## Client: Frontend Side – React
|
|
13
51
|
|
|
14
52
|
### Installation
|