@ichicraft/widgets-widget-base v1.14.0
This package supports development of widgets built using the Widget Development Kit
This package is part of the Widget Development Kit, which is a collection of NPM packages that empower developers to create widgets for Ichicraft Boards.
Changelog
All notable changes to this project will be documented here.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.14.0 - 2025-05-21
- Version bumped
@microsoft/sp-httpdependency to latest SPFx version1.21.1
1.13.2 - 2025-04-11
- Minor update in documentation of
WebApiPermissionRequestinterface
1.13.1 - 2025-03-11
- Added new interface
ICSite, used to represent a SharePoint site object in code
1.13.0 - 2025-02-17
- Fixed an issue with detecting external users in
UserHelper - Changed target JavaScript version to
ES6
1.12.0 - 2025-02-11
- Added
ColorOptioninterface. - Added
WidgetDesignContextinterface. - Added
designproperty of typeWidgetDesignContexttoWidgetContextinterface, to support UI settings within widgets. - Deprecated
elementBorderRadiusproperty which is renamed toborderRadiusand moved underdesignproperty inWidgetContextinterface.
1.11.6 - 2025-01-30
- Added
spServiceScopeproperty toWidgetContextinterface. - Added
loadComponentByIdfunction toWidgetContextinterface. - Deprecated
definitionproperty which is replaced byvariantproperty inWidgetContextinterface. - Deprecated
instance.publishNotificationfunction inWidgetContextinterface because feature is no longer available.
1.11.5 - 2025-01-21
- Added
defaultColorproperty toWidgetBuddyContextinterface.
1.11.4 - 2024-11-08
- Added
driveIdproperty toFilePickerFilePropsinterface.
1.11.3 - 2024-11-05
- Added
fileNameproperty toFilePickerFilePropsinterface.
1.11.2 - 2024-10-21
- Added optional
objectIdproperty to theICPersonainterface.
1.11.1 - 2024-10-17
- Made
buddyproperty of typeWidgetBuddyContextoptional.
1.11.0 - 2024-10-17
- Added
renderBuddyfunction to theBaseWidgetclass, to support rendering widgets as a buddy. - Added
buddyproperty of typeWidgetBuddyContextto theWidgetContextinterface, to support utility functions specifically for a widget buddy. - Added
setBadgePropertiesfunction to theWidgetBuddyContextinterface, to allow rendering a badge on top of the buddy.
1.10.8 - 2024-10-15
- Added
buddybarto theBoardTypetype, to support widgets that run in the scope of the upcoming buddy bar feature
1.10.7 - 2024-08-20
- Replaced
onInitfunction with a new asynchronousinitfunction in theBaseWidgetclass, to allow waiting until initialization is complete.
1.10.6 - 2024-08-19
- Added
userDisplayNameproperty to theWidgetContextinterface, to allow using the currently signed-in user's display name in widgets.
1.10.5 - 2024-08-07
- Added
onSearchproperty to theCommandBarSearchIteminterface, to allow executing a callback when the user presses enter in the search box.
1.10.4 - 2024-07-23
- Added
SearchBarvalue to theCommandBarItemTypeenum, to allow rendering a command bar item as a search bar. - Added
CommandBarSearchIteminterface, to allow passing extra search-related props to a CommandBarItem of typeSearchBar. - Added optional
overflowButtonIconNameandoverflowButtonTooltipproperties to theCommandBarTabOptionsinterface, to allow customization of the overflow menu button. - Added optional
itemCountproperty to theCommandBarTabinterface. - Added summaries to functions and interfaces related to widget command bar tabs.
1.10.3 - 2024-07-22
- Added override in package.json to use version
2.3.7instead of2.3.6ofrequirejsbecause the latter has vulnerability CVE-2024-38999
1.10.2 - 2024-07-19
- Added
registerTabsfunction to theWidgetInstanceContextinterface, to allow rendering of tabs in the widget header. - Added
setSelectedTabfunction to theWidgetInstanceContextinterface, to allow setting the current selected tab in the widget header. - Added
CommandBarTabinterface. - Added
CommandBarTabOptionsinterface.
1.10.1 - 2024-07-08
- Added
widget-administratorrole to theUserRoletype.
1.10.0 - 2024-06-25
- Added optional
updateDataAccess()function to theBaseWidgetclass, used to update access to widget-specific data. - Added
administratorsproperty to theWidgetVariantContextinterface.
1.9.14 - 2024-06-18
- Change import of
SPFItype to decrease bundle sizes in widgets.
1.9.13 - 2024-06-18
- Added
spHttpClientproperty toWidgetContextinterface, to perform REST calls against SharePoint. - Added
spHttpClientConfigurationproperty toWidgetContextinterface.
1.9.12 - 2024-06-17
- Added
spproperty toWidgetContextinterface, to allow using a centralized PnPjs version across all widgets. - Added
siteIdproperty toWidgetContextinterface. - Added
boardsInstanceIdproperty toWidgetContextinterface.
1.9.11 - 2024-06-14
- Fixed handling of null
ICPersonaTypevalues inisCurrentUserInScopefunction ofUserHelperclass.
1.9.10 - 2024-06-04
- Renamed
CustomCommandBarItemPropsinterface toCommandBarItemProps. - Merged
CommandBarIcon,CommandBarLinkandCommandBarItemBaseinterfaces into theCommandBarItemPropsinterface, to simplify adding custom command bar items. - Added
Overflowtype toCommandBarItemTypeenum, to allow rendering an item inside the overflow menu. - Added
highlightedproperty to theCommandBarItemPropsinterface, to allow rendering an item as if it is being hovered. - Added
cursorproperty to theCommandBarItemPropsinterface, to allow a different cursor when hovering over an item. - Added
disabledproperty to theCommandBarItemPropsinterface, to allow rendering an item in a disabled state.
1.9.9 - 2024-05-14
- Changed return type of
createDeepLinkfunction of the WidgetInstanceContext interface fromvoidtostring.
1.9.8 - 2024-05-13
- Added
createDeepLinkproperty to the WidgetInstanceContext interface, to allow creating a deep link URL based on the current board and a widget instance. - Added
setDeepLinkDataproperty to the WidgetInstanceContext interface, to allow setting deep link data related to a widget instance in the URL of the current page. - Added
getDeepLinkDataproperty to the WidgetInstanceContext interface, to allow getting deep link data related to a widget instance from the URL of the current page.
1.9.7 - 2024-04-19
- Added
hideSpHubNavproperty to the IFrameDialogOptions interface, to allow hiding the Hub navigation on SharePoint sites. - Added
hideSpSiteHeaderproperty to the IFrameDialogOptions interface, to allow hiding the site header on SharePoint sites. - Added
showHistoryButtonsproperty to the IFrameDialogOptions interface, to render back and forward buttons, allowing the user to navigate the browser history. - Added
showOpenInNewWindowproperty to the IFrameDialogOptions interface, to render an 'open in new window' button, allowing the user to open the iframe url in a new browser window.
1.9.6 - 2024-04-19
- Changed
onRenderHeaderIconproperty of the IFrameDialogOptions interface, to work similarly to the widget render functions.
1.9.5 - 2024-04-18
- Added
titleproperty to the IFrameDialogOptions interface, to allow rendering a title in the dialog header. - Added
titleUrlproperty to the IFrameDialogOptions interface, to allow making the dialog header title clickable. - Added
onRenderHeaderIconproperty to the IFrameDialogOptions interface, to allow rendering an icon in the dialog header. - Added
onLoadproperty to the IFrameDialogOptions interface, to support executing some code after the iframe finishes loading.
1.9.4 - 2024-04-11
- Reintroduced the following types:
AadHttpClient,AadHttpClientConfiguration,AadHttpClientFactory,AadHttpClientResponse,AadTokenProvider,AadTokenProviderFactory
1.9.2 - 2024-03-21
- Added
CommandBarIconinterface, to allow rendering aCustomCommandBarItemas a single icon or an icon button. - Added
CommandBarLinkinterface, to allow rendering aCustomCommandBarItemas a clickable link. - Added
CommandBarItemBaseinterface, to act as a base for different types ofCustomCommandBarItem. - Added
elementBorderRadiusproperty to theWidgetContextinterface, to allow styling widgets according to the configured design preferences. - Changed
CustomCommandBarItemPropstype to accept either aCommandBarIconor aCommandBarLink.
1.9.1 - 2023-10-20
- Added
WidgetInstanceContextinterface, to allow typing theinstanceproperty of theWidgetContextinterface. - Added
WidgetVariantContextinterface, to allow typing thedefinitionproperty of theWidgetContextinterface. - Added
WidgetManifestContextinterface, to allow typing themanifestproperty of theWidgetContextinterface.
1.9.0 - 2023-10-20
- Added optional
importData()function to theBaseWidgetclass, used to import widget-specific data. - Added optional
exportData()function to theBaseWidgetclass, used to export widget-specific data. - Added new exported
ExportDatatype.
1.8.17 - 2023-10-09
- Added
iconNameproperty to thedefinitionobject of theWidgetContextinterface, to support using an icon to represent a widget.
1.8.16 - 2023-09-26
- Added
Customvalue toICPersonaTypeenum, to support a custom ICPersona.
1.8.15 - 2023-09-01
- Added
thumbnailUrlproperty toWidgetManifestConfiginterface, as a non-translatable substitute of the newly deprecatedpreview_smallproperty fromWidgetImagesinterface. - Removed the deprecated
preview_smallproperty fromWidgetImagesinterface.
1.8.14 - 2023-09-01
- Added
iconNameproperty toWidgetManifestConfiginterface, to support using an icon to represent a widget, e.g. in the widget library or widget header. - Removed the deprecated
notificationIconproperty fromWidgetManifestConfiginterface.
1.8.13 - 2023-06-08
- Removed the deprecated
resolvedproperty fromICPersonainterface
1.8.12 - 2023-04-04
- Changed
openFilePickerfunction to return more details of the picked file in the shape ofFilePickerFileProps
1.8.11 - 2023-04-03
- Changed
openFilePickerfunction to return more details of the picked file in the shape ofFilePickerFileProps
1.8.10 - 2023-03-30
- Changed
openFilePickerfunction to acceptoptions, to support configuration of picker behavior
1.8.9 - 2023-03-06
- Added
registerCustomCommandBarItemsfunction to theinstanceobject of theWidgetContextinterface, to support multiple custom buttons in the widget header. - Added
unregisterCustomCommandBarItemsfunction to theinstanceobject of theWidgetContextinterface, to support removing all custom buttons in the widget header. - Added optional
idproperty to exportedCustomCommandBarItemPropstype, to support removing a custom command bar item by id. - Added optional
pinnedproperty to exportedCustomCommandBarItemPropstype, to support forcing the widget header to always be visible. - Added optional
showNotificationBadgeproperty to exportedCustomCommandBarItemPropstype, to support showing a red notification badge over the custom command bar item. - Added optional
orderproperty to exportedCustomCommandBarItemPropstype, to support changing the order of custom command bar items. - Changed
unregisterCustomCommandBarItemfunction of theinstanceobject of theWidgetContextinterface, to support removing a custom command bar item by id.
1.8.8 - 2023-02-16
- Removed all SharePoint and Teams dependencies.
1.8.7 - 2022-12-13
- Added
userRolesproperty to theWidgetContextinterface, to inform widgets of the roles of the current user. - Added new exported
UserRoletype.
1.8.6 - 2022-12-08
- Added
boardTypeproperty to theinstanceobject of theWidgetContextinterface, to inform widgets of the type of their board. - Added
allowedBoardTypesproperty to thedefinitionobject of theWidgetContextinterface, to inform widget variants of the types of boards it is allowed to be added to. - Added new exported
BoardTypetype.
1.8.5 - 2022-09-30
- Added
setWidgetTitleSuffix()function to theinstanceobject of theWidgetContextinterface, to support appending the title of the widget with additional text. - Added
setWidgetSubtitle()function to theinstanceobject of theWidgetContextinterface, to support overriding the subtitle of the widget. - Added
setUserConfigButtonVisibilty()function to theinstanceobject of theWidgetContextinterface, to support hiding the settings button from the widget header. - Fixed spelling of
setWidgetHeaderVisibilty()function. The function is now calledsetWidgetHeaderVisibility().
1.8.4 - 2022-09-05
- Added
openIFrameDialog()function to theWidgetContextinterface. This has the same functionality as theopenUrlInDialog()function of theinstanceobject, but adds more control over the dimensions of the dialog. The functionopenUrlInDialog()is now deprecated.
1.8.3 - 2022-08-16
- Added
openFilePicker()function to theWidgetContextinterface to support file selection from within a widget.
1.8.2 - 2022-07-06
- Added
subtitleproperty to theWidgetResourceinterface.
1.8.1 - 2022-06-17
- Added new section
analyticstoWidgetManifestConfiginterface to allow definition of time-based events that can be raised by a widget. - Added
raiseEvent(...)to theinstanceobject of theWidgetContentinterface, allowing widgets to raise an event.
1.7.11 - 2022-03-23
- Added
setWidgetHeaderVisibilty()function to theinstanceobject of theWidgetContextinterface, allowing widgets to render in full height.
1.7.9 - 2022-01-20
- Added
userAccountCreateddate/time to theWidgetContextinterface.
1.7.8 - 2022-01-18
Changed
- Added
initiateWidgetDeletion()function to theWidgetContextinterface.
1.7.7 - 2022-01-14
Changed
- Added
tenantIdproperty to theWidgetContextinterface.
1.7.6 - 2021-11-04
Changed
- Added
themeproperty to theWidgetContextinterface to give access to currently applied theme.
1.7.5 - 2021-10-26
Changed
- Added
userSecurityGroupsanduserSharePointGroupsproperties to theWidgetContextinterface to inform widgets of SharePoint and security group memberships of the current user.
1.7.4 - 2021-10-20
Changed
- Added
contentLanguagesproperty to theWidgetContextinterface to inform widgets of the available content languages as configured in Ichicraft Boards.
1.7.3 - 2021-10-04
Changed
- Added
manifestVersionproperty to theWidgetManifestConfiginterface to support multiple versions of the manifest. Current version is 2 which introduced this and theexternalsproperty. - Added
externalsproperty to theWidgetManifestConfiginterface to support libraries that can be loaded separately from the widget bundle. This reduces widget bundle size and improves overal performance of Ichicraft Boards.
1.6.1 - 2021-02-18
Changed
- Added
userEmailproperty to theWidgetContextinterface to provide current user's email address to widgets.
1.5.0 - 2021-02-16
Changed
- Added
teamsSdkproperty to theWidgetContextinterface to allow interaction with Teams in case widget board is running in Teams client. Will beundefinedif running in SharePoint.
1.4.0 - 2021-01-25
Changed
- Added several properties to the
WidgetContextinterface to identify the context in which the widget is shown (e.g. Team Browser hosted)
1.3.0 - 2021-01-15
Changed
registerCustomCommandBarItem()is added to theWidgetContextinterface as a function to call from within a widget instance to render an additional command bar item in the widget header.unregisterCustomCommandBarItem()is added to theWidgetContextinterface as a function to call from within a widget instance to remove a previously added command bar item from the widget header.
1.2.0 - 2021-01-15
Changed
loadScript()is added to theWidgetContextinterface as a function to call from within a widget in case an external script needs to be loaded. This allows the widget board to load external javascript.
1.1.0 - 2021-01-11
Changed
handleFatalError()is added to theWidgetContextinterface as a function to call from within a widget in case of an unhandled/unresolvable error. This allows the widget board to handle this situation gracefully.- deps: removed dependency ajv
<= 1.0.5 - 2020-12-07
No changelog was maintained for the earlier versions.
5 months ago
12 months ago
12 months ago
9 months ago
9 months ago
9 months ago
7 months ago
8 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago