@ichicraft/widgets-widget-base 1.9.5 → 1.9.7
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 +11 -0
- package/lib/types/index.d.ts +17 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,6 +9,17 @@ 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.7 - 2024-04-19
|
|
13
|
+
|
|
14
|
+
- Added `hideSpHubNav` property to the IFrameDialogOptions interface, to allow hiding the Hub navigation on SharePoint sites.
|
|
15
|
+
- Added `hideSpSiteHeader` property to the IFrameDialogOptions interface, to allow hiding the site header on SharePoint sites.
|
|
16
|
+
- Added `showHistoryButtons` property to the IFrameDialogOptions interface, to render back and forward buttons, allowing the user to navigate the browser history.
|
|
17
|
+
- 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.
|
|
18
|
+
|
|
19
|
+
## 1.9.6 - 2024-04-19
|
|
20
|
+
|
|
21
|
+
- Changed `onRenderHeaderIcon` property of the IFrameDialogOptions interface, to work similarly to the widget render functions.
|
|
22
|
+
|
|
12
23
|
## 1.9.5 - 2024-04-18
|
|
13
24
|
|
|
14
25
|
- Added `title` property to the IFrameDialogOptions interface, to allow rendering a title in the dialog header.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -640,6 +640,14 @@ export interface CommandBarLink extends CommandBarItemBase {
|
|
|
640
640
|
* Options to pass to the openIFrameDialog function. Use this to configure how the dialog is rendered, and to handle events (e.g. onDismissed)
|
|
641
641
|
*/
|
|
642
642
|
export interface IFrameDialogOptions {
|
|
643
|
+
/**
|
|
644
|
+
* Option to hide the Hub navigation on SharePoint sites.
|
|
645
|
+
*/
|
|
646
|
+
hideSpHubNav?: boolean;
|
|
647
|
+
/**
|
|
648
|
+
* Option to hide the site header on SharePoint sites.
|
|
649
|
+
*/
|
|
650
|
+
hideSpSiteHeader?: boolean;
|
|
643
651
|
/**
|
|
644
652
|
* Maximum width of the dialog. If it exceeds the window width, that width is used instead.
|
|
645
653
|
*/
|
|
@@ -656,6 +664,14 @@ export interface IFrameDialogOptions {
|
|
|
656
664
|
* Minimum margin on the top- and bottom side of the dialog.
|
|
657
665
|
*/
|
|
658
666
|
marginVertical?: number;
|
|
667
|
+
/**
|
|
668
|
+
* Show 'back' and 'forward' buttons in the dialog header, to allow navigating through the browser history.
|
|
669
|
+
*/
|
|
670
|
+
showHistoryButtons?: boolean;
|
|
671
|
+
/**
|
|
672
|
+
* Show an 'open in new window' button in the dialog header.
|
|
673
|
+
*/
|
|
674
|
+
showOpenInNewWindow?: boolean;
|
|
659
675
|
/**
|
|
660
676
|
* Title displayed in the dialog header.
|
|
661
677
|
*/
|
|
@@ -675,7 +691,7 @@ export interface IFrameDialogOptions {
|
|
|
675
691
|
/**
|
|
676
692
|
* Renders an icon on the left side of the dialog header.
|
|
677
693
|
*/
|
|
678
|
-
onRenderHeaderIcon?: () =>
|
|
694
|
+
onRenderHeaderIcon?: (domElement: HTMLDivElement) => void;
|
|
679
695
|
}
|
|
680
696
|
/**
|
|
681
697
|
* Options to pass to openFilePicker function
|
package/package.json
CHANGED