currentUser? | ISiteUserInfo | Current SharePoint user info. |
currentUserGroups? | ISiteGroupInfo[] | SharePoint groups the current user is a member of. |
customContext | any | Custom context object that can be passed through the framework for extensibility. |
debugModeOn | boolean | Debug mode flag controlled via localStorage. |
error | (...args) => void | [Synchronous] Logs an error. Always logs regardless of debug mode. |
graph? | GraphFI | PnPjs SPFI instance. |
isAdmin? | boolean | Indicates whether the current user has site admin permissions. |
isMemberOf? | (groupName) => boolean | [Synchronous] Checks if the current user is a member of the specified group. |
log | (...args) => void | [Synchronous] Logs a message if debug mode is enabled. Replaces console.log. |
report | (message) => Promise<void> | [Asynchronous] Logs an error message to a centralized SharePoint list (stubbed). |
setDebugMode | (debugModeOn) => void | [Synchronous] Enables or disables debug mode and persists the setting in local storage. |
sp? | SPFI | PnPjs SPFI instance. |
try | (action, options?) => Promise<any> | [Asynchronous] Executes an action inside a try/catch/finally block with automatic error handling and optional loading UI. |
warn | (...args) => void | [Synchronous] Logs a warning if debug mode is enabled. Replaces console.warn. |
webPartContext? | WebPartContext | Current Web Part context from SPFx. |