@spteck/react-controls-v2 2.0.0 → 2.0.1

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 CHANGED
@@ -27,6 +27,17 @@ npm install @spteck/react-controls-v2
27
27
  npm install @spteck/react-controls-v2 @spteck/react-controls-v2-spfx-adapter
28
28
  ```
29
29
 
30
+ ## ⚠️ Important: Components Requiring Microsoft Graph
31
+
32
+ Some components (like `UserCard`, `LivePersona`, `AIAssistant`) require a Microsoft Graph client to fetch user data and presence information.
33
+
34
+ **📖 See the complete setup guide:** [GRAPH_CLIENT_SETUP.md](./GRAPH_CLIENT_SETUP.md)
35
+
36
+ Quick overview:
37
+ - **SPFx**: Automatically handled by the SPFx adapter ✅
38
+ - **Vite/Next.js**: You must provide a graph client with authentication (MSAL recommended)
39
+ - **Development**: Use a static token from [Graph Explorer](https://developer.microsoft.com/graph/graph-explorer)
40
+
30
41
  ## 🚀 Quick Start
31
42
 
32
43
  ### 1. Vite/React Application
@@ -1 +1 @@
1
- {"version":3,"file":"ILoggingProvider-C4FFlnQ0.js","sources":["../src/abstractions/ILoggingProvider.ts"],"sourcesContent":["/**\n * Log levels for logging operations\n */\nexport enum LogLevel {\n Verbose = 0,\n Info = 1,\n Warning = 2,\n Error = 3,\n}\n\n/**\n * Error types for categorizing errors\n */\nexport enum ErrorType {\n Error = 'Error',\n Warning = 'Warning',\n Info = 'Info',\n}\n\n/**\n * Logging provider interface\n * Implementations should handle logging to various targets (console, Application Insights, etc.)\n */\nexport interface ILoggingProvider {\n /**\n * Logs a message with the specified level\n * @param message - The message to log\n * @param level - The severity level of the log\n * @param data - Optional additional data to include\n */\n log(message: string, level: LogLevel, data?: any): void;\n\n /**\n * Logs an error\n * @param message - The error message\n * @param error - Optional Error object\n * @param errorType - Optional error type categorization\n */\n error(message: string, error?: Error, errorType?: ErrorType): void;\n\n /**\n * Logs a warning\n * @param message - The warning message\n * @param data - Optional additional data\n */\n warn(message: string, data?: any): void;\n\n /**\n * Logs an informational message\n * @param message - The info message\n * @param data - Optional additional data\n */\n info(message: string, data?: any): void;\n\n /**\n * Logs a verbose/debug message\n * @param message - The debug message\n * @param data - Optional additional data\n */\n verbose(message: string, data?: any): void;\n}\n"],"names":["LogLevel","ErrorType"],"mappings":"aAGO,IAAKA,GAAAA,IACVA,EAAAA,UAAU,GAAV,UACAA,EAAAA,OAAO,GAAP,OACAA,EAAAA,UAAU,GAAV,UACAA,EAAAA,QAAQ,GAAR,QAJUA,IAAAA,GAAA,IAUAC,GAAAA,IACVA,EAAA,MAAQ,QACRA,EAAA,QAAU,UACVA,EAAA,KAAO,OAHGA,IAAAA,GAAA"}
1
+ {"version":3,"file":"ILoggingProvider-C4FFlnQ0.js","sources":["../src/abstractions/ILoggingProvider.ts"],"sourcesContent":["/**\n * Log levels for logging operations\n */\nexport enum LogLevel {\n Verbose = 0,\n Info = 1,\n Warning = 2,\n Error = 3,\n}\n\n/**\n * Error types for categorizing errors\n */\nexport enum ErrorType {\n Error = 'Error',\n Warning = 'Warning',\n Info = 'Info',\n}\n\n/**\n * Logging provider interface\n * Implementations should handle logging to various targets (console, Application Insights, etc.)\n */\nexport interface ILoggingProvider {\n /**\n * Logs a message with the specified level\n * @param message - The message to log\n * @param level - The severity level of the log\n * @param data - Optional additional data to include\n */\n log(message: string, level: LogLevel, data?: any): void;\n\n /**\n * Logs an error\n * @param message - The error message\n * @param error - Optional Error object\n * @param errorType - Optional error type categorization\n */\n error(message: string, error?: Error, errorType?: ErrorType): void;\n\n /**\n * Logs a warning\n * @param message - The warning message\n * @param data - Optional additional data\n */\n warn(message: string, data?: any): void;\n\n /**\n * Logs an informational message\n * @param message - The info message\n * @param data - Optional additional data\n */\n info(message: string, data?: any): void;\n\n /**\n * Logs a verbose/debug message\n * @param message - The debug message\n * @param data - Optional additional data\n */\n verbose(message: string, data?: any): void;\n}\n"],"names":["LogLevel","ErrorType"],"mappings":"aAGO,IAAKA,GAAAA,IACVA,EAAAA,UAAU,GAAV,UACAA,EAAAA,OAAO,GAAP,OACAA,EAAAA,UAAU,GAAV,UACAA,EAAAA,QAAQ,GAAR,QAJUA,IAAAA,GAAA,CAAA,GAUAC,GAAAA,IACVA,EAAA,MAAQ,QACRA,EAAA,QAAU,UACVA,EAAA,KAAO,OAHGA,IAAAA,GAAA,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"StackedUsers.d.ts","sourceRoot":"","sources":["../../../src/components/StackedUsers/StackedUsers.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAK1D;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqGrD,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"StackedUsers.d.ts","sourceRoot":"","sources":["../../../src/components/StackedUsers/StackedUsers.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAK1D;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA2GrD,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -17,7 +17,7 @@ export interface IUserCardProps {
17
17
  * Application context - can be provided via props or UniversalProvider
18
18
  * If not provided, will attempt to use context from UniversalProvider
19
19
  */
20
- context?: IApplicationContext;
20
+ context: IApplicationContext;
21
21
  avatarSize?: AvatarSize;
22
22
  showHoverCard?: boolean;
23
23
  className?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"IUserCardProps.d.ts","sourceRoot":"","sources":["../../../src/components/userCard/IUserCardProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oB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