@passkeyme/react-auth 1.0.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/LICENSE +21 -0
  3. package/README.md +951 -0
  4. package/dist/components/DevToolsDashboard.d.ts +18 -0
  5. package/dist/components/DevToolsDashboard.d.ts.map +1 -0
  6. package/dist/components/LazyComponents.d.ts +22 -0
  7. package/dist/components/LazyComponents.d.ts.map +1 -0
  8. package/dist/components/NotificationProvider.d.ts +31 -0
  9. package/dist/components/NotificationProvider.d.ts.map +1 -0
  10. package/dist/components/PasskeymeAuthPanel.d.ts +121 -0
  11. package/dist/components/PasskeymeAuthPanel.d.ts.map +1 -0
  12. package/dist/components/PasskeymeButton.d.ts +64 -0
  13. package/dist/components/PasskeymeButton.d.ts.map +1 -0
  14. package/dist/components/PasskeymeCallbackHandler.d.ts +50 -0
  15. package/dist/components/PasskeymeCallbackHandler.d.ts.map +1 -0
  16. package/dist/components/PasskeymeErrorDisplay.d.ts +28 -0
  17. package/dist/components/PasskeymeErrorDisplay.d.ts.map +1 -0
  18. package/dist/components/PasskeymeLoadingIndicator.d.ts +34 -0
  19. package/dist/components/PasskeymeLoadingIndicator.d.ts.map +1 -0
  20. package/dist/components/PasskeymeOAuthButton.d.ts +8 -0
  21. package/dist/components/PasskeymeOAuthButton.d.ts.map +1 -0
  22. package/dist/components/PasskeymeProtectedRoute.d.ts +16 -0
  23. package/dist/components/PasskeymeProtectedRoute.d.ts.map +1 -0
  24. package/dist/components/PasskeymeProvider.d.ts +24 -0
  25. package/dist/components/PasskeymeProvider.d.ts.map +1 -0
  26. package/dist/components/PasskeymeUserProfile.d.ts +31 -0
  27. package/dist/components/PasskeymeUserProfile.d.ts.map +1 -0
  28. package/dist/components/PerformanceDashboard.d.ts +30 -0
  29. package/dist/components/PerformanceDashboard.d.ts.map +1 -0
  30. package/dist/components/VirtualScrollList.d.ts +105 -0
  31. package/dist/components/VirtualScrollList.d.ts.map +1 -0
  32. package/dist/hooks/useAuthUtils.d.ts +26 -0
  33. package/dist/hooks/useAuthUtils.d.ts.map +1 -0
  34. package/dist/hooks/useLoadingState.d.ts +31 -0
  35. package/dist/hooks/useLoadingState.d.ts.map +1 -0
  36. package/dist/hooks/usePerformanceMonitor.d.ts +41 -0
  37. package/dist/hooks/usePerformanceMonitor.d.ts.map +1 -0
  38. package/dist/hooks/useUsernameManager.d.ts +62 -0
  39. package/dist/hooks/useUsernameManager.d.ts.map +1 -0
  40. package/dist/index.d.ts +85 -0
  41. package/dist/index.d.ts.map +1 -0
  42. package/dist/index.esm.js +8734 -0
  43. package/dist/index.esm.js.map +1 -0
  44. package/dist/index.js +8827 -0
  45. package/dist/index.js.map +1 -0
  46. package/dist/types.d.ts +249 -0
  47. package/dist/types.d.ts.map +1 -0
  48. package/dist/utils/analytics.d.ts +112 -0
  49. package/dist/utils/analytics.d.ts.map +1 -0
  50. package/dist/utils/debug.d.ts +9 -0
  51. package/dist/utils/debug.d.ts.map +1 -0
  52. package/dist/utils/devUtils.d.ts +53 -0
  53. package/dist/utils/devUtils.d.ts.map +1 -0
  54. package/dist/utils/enhancedButtonStyles.d.ts +70 -0
  55. package/dist/utils/enhancedButtonStyles.d.ts.map +1 -0
  56. package/dist/utils/importOptimizer.d.ts +79 -0
  57. package/dist/utils/importOptimizer.d.ts.map +1 -0
  58. package/dist/utils/loadingStates.d.ts +35 -0
  59. package/dist/utils/loadingStates.d.ts.map +1 -0
  60. package/dist/utils/logger.d.ts +41 -0
  61. package/dist/utils/logger.d.ts.map +1 -0
  62. package/dist/utils/performanceProfiler.d.ts +80 -0
  63. package/dist/utils/performanceProfiler.d.ts.map +1 -0
  64. package/dist/utils/reactCompat.d.ts +6 -0
  65. package/dist/utils/reactCompat.d.ts.map +1 -0
  66. package/dist/utils/storageOptimization.d.ts +173 -0
  67. package/dist/utils/storageOptimization.d.ts.map +1 -0
  68. package/dist/utils/testingUtils.d.ts +163 -0
  69. package/dist/utils/testingUtils.d.ts.map +1 -0
  70. package/package.json +93 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,86 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ # Changelog
9
+
10
+ All notable changes to this project will be documented in this file.
11
+
12
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
13
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
14
+
15
+ ## [1.0.0] - 2025-07-12
16
+
17
+ ### 🎉 First Stable Release
18
+
19
+ This marks the first stable release of the PasskeyMe React Authentication SDK, featuring enterprise-grade quality and seamless React integration.
20
+
21
+ ### Added
22
+
23
+ - **Professional Logging System**: Environment-aware structured logging matching core SDK standards
24
+ - **React Component Library**: Production-ready authentication components and hooks
25
+ - **TypeScript Support**: Full type definitions and IntelliSense support for React applications
26
+ - **Enterprise Build System**: Clean compilation with CommonJS and ESM outputs
27
+ - **Code Quality Standards**: Prettier formatting, ESLint linting, and consistent code style
28
+ - **Bundle Size Optimization**: Size monitoring with 50KB/45KB limits for optimal performance
29
+ - **Framework Integration**: Seamless integration with Next.js, Vite, and Create React App
30
+ - **Testing Infrastructure**: Jest and React Testing Library setup for comprehensive testing
31
+ - **Performance Monitoring**: Built-in bundle analysis and size tracking tools
32
+
33
+ ### Enhanced
34
+
35
+ - **Developer Experience**: Professional debugging capabilities and development workflow
36
+ - **Component Architecture**: Clean, reusable React components with proper prop types
37
+ - **Hook Patterns**: Intuitive React hooks for authentication state management
38
+ - **Error Handling**: React-specific error boundaries and error handling patterns
39
+ - **Documentation**: Complete integration guides and best practices
40
+
41
+ ### Fixed
42
+
43
+ - **React 18 Compatibility**: Full support for React 18+ concurrent features
44
+ - **TypeScript Strict Mode**: Enhanced type safety and strict compilation
45
+ - **Bundle Optimization**: Minimal dependencies and tree-shaking support
46
+
47
+ ## [Unreleased]
48
+
49
+ - README with detailed TypeScript usage patterns
50
+ - API documentation with complete type definitions
51
+ - Code examples with type safety
52
+
53
+ ### Changed
54
+
55
+ - Enhanced README documentation
56
+
57
+ ## [0.1.0] - 2024-12-07
58
+
59
+ ### Added
60
+
61
+ - Initial release of React authentication components
62
+ - PasskeymeButton component with enhanced styling
63
+ - Smart login functionality with username persistence
64
+ - Integration with @passkeyme/react-core
65
+ - Component cleanup and optimization
66
+ - Enhanced button styling system
67
+ - useUsernameManager hook
68
+ - TypeScript support
69
+
70
+ ### Features
71
+
72
+ - React components for authentication UI
73
+ - Smart authentication with localStorage integration
74
+ - Enhanced button styling and theming
75
+ - Seamless integration with core SDK
76
+ - Modern React patterns and hooks
77
+ - Comprehensive TypeScript definitions
78
+
79
+ ### Fixed
80
+
81
+ - localStorage username persistence issues
82
+ - Authentication flow improvements
83
+ - Component state management
84
+
85
+ [Unreleased]: https://github.com/passkeyme/sdk/compare/react-v0.1.0...HEAD
86
+ [0.1.0]: https://github.com/passkeyme/sdk/releases/tag/react-v0.1.0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 PasskeyMe
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.