@ichicraft/widgets-widget-base 1.9.6 → 1.9.8

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
@@ -9,6 +9,19 @@ All notable changes to this project will be documented here.
9
9
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
10
10
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
11
11
 
12
+ ## 1.9.8 - 2024-05-13
13
+
14
+ - Added `createDeepLink` property to the WidgetInstanceContext interface, to allow creating a deep link URL based on the current board and a widget instance.
15
+ - Added `setDeepLinkData` property to the WidgetInstanceContext interface, to allow setting deep link data related to a widget instance in the URL of the current page.
16
+ - Added `getDeepLinkData` property to the WidgetInstanceContext interface, to allow getting deep link data related to a widget instance from the URL of the current page.
17
+
18
+ ## 1.9.7 - 2024-04-19
19
+
20
+ - Added `hideSpHubNav` property to the IFrameDialogOptions interface, to allow hiding the Hub navigation on SharePoint sites.
21
+ - Added `hideSpSiteHeader` property to the IFrameDialogOptions interface, to allow hiding the site header on SharePoint sites.
22
+ - Added `showHistoryButtons` property to the IFrameDialogOptions interface, to render back and forward buttons, allowing the user to navigate the browser history.
23
+ - Added `showOpenInNewWindow` property 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.
24
+
12
25
  ## 1.9.6 - 2024-04-19
13
26
 
14
27
  - Changed `onRenderHeaderIcon` property of the IFrameDialogOptions interface, to work similarly to the widget render functions.
@@ -225,6 +225,19 @@ export interface WidgetInstanceContext {
225
225
  * The type of board this widget instance is added to.
226
226
  */
227
227
  boardType?: BoardType;
228
+ /**
229
+ * Creates a deep link URL based on the current board and this widget instance, combined with
230
+ * the provided data.
231
+ */
232
+ createDeepLink?: (data?: string) => void;
233
+ /**
234
+ * Sets deep link data related to this widget instance in the URL of the current page.
235
+ */
236
+ setDeepLinkData?: (data?: string) => void;
237
+ /**
238
+ * Gets all deep link data related to this widget instance from the URL of the current page.
239
+ */
240
+ getDeepLinkData?: () => string;
228
241
  /**
229
242
  * Call this function from within a widget instance to publish a notification to the
230
243
  * notitication box on top of the widget board. It should provide information for this specific
@@ -640,6 +653,14 @@ export interface CommandBarLink extends CommandBarItemBase {
640
653
  * Options to pass to the openIFrameDialog function. Use this to configure how the dialog is rendered, and to handle events (e.g. onDismissed)
641
654
  */
642
655
  export interface IFrameDialogOptions {
656
+ /**
657
+ * Option to hide the Hub navigation on SharePoint sites.
658
+ */
659
+ hideSpHubNav?: boolean;
660
+ /**
661
+ * Option to hide the site header on SharePoint sites.
662
+ */
663
+ hideSpSiteHeader?: boolean;
643
664
  /**
644
665
  * Maximum width of the dialog. If it exceeds the window width, that width is used instead.
645
666
  */
@@ -656,6 +677,14 @@ export interface IFrameDialogOptions {
656
677
  * Minimum margin on the top- and bottom side of the dialog.
657
678
  */
658
679
  marginVertical?: number;
680
+ /**
681
+ * Show 'back' and 'forward' buttons in the dialog header, to allow navigating through the browser history.
682
+ */
683
+ showHistoryButtons?: boolean;
684
+ /**
685
+ * Show an 'open in new window' button in the dialog header.
686
+ */
687
+ showOpenInNewWindow?: boolean;
659
688
  /**
660
689
  * Title displayed in the dialog header.
661
690
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.9.6",
3
+ "version": "1.9.8",
4
4
  "description": "Part of the Widget Development Kit for building widgets for Ichicraft Boards",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",