addToLoadingQueue | <T >(promise ) => Promise <T > | [Synchronious] Add a promise to a queue. As long as the queue is not empty, a loading animation will be rendered. |
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. |
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. |