@ichicraft/widgets-widget-base 1.9.3 → 1.9.5

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
@@ -1,200 +1,211 @@
1
- This package supports development of widgets built using the Widget Development Kit
2
-
3
- _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._
4
-
5
- # Changelog
6
-
7
- All notable changes to this project will be documented here.
8
-
9
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
10
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
11
-
12
- ## 1.9.2 - 2024-03-21
13
-
14
- - Added `CommandBarIcon` interface, to allow rendering a `CustomCommandBarItem` as a single icon or an icon button.
15
- - Added `CommandBarLink` interface, to allow rendering a `CustomCommandBarItem` as a clickable link.
16
- - Added `CommandBarItemBase` interface, to act as a base for different types of `CustomCommandBarItem`.
17
- - Added `elementBorderRadius` property to the `WidgetContext` interface, to allow styling widgets according to the configured design preferences.
18
- - Changed `CustomCommandBarItemProps` type to accept either a `CommandBarIcon` or a `CommandBarLink`.
19
-
20
- ## 1.9.1 - 2023-10-20
21
-
22
- - Added `WidgetInstanceContext` interface, to allow typing the `instance` property of the `WidgetContext` interface.
23
- - Added `WidgetVariantContext` interface, to allow typing the `definition` property of the `WidgetContext` interface.
24
- - Added `WidgetManifestContext` interface, to allow typing the `manifest` property of the `WidgetContext` interface.
25
-
26
- ## 1.9.0 - 2023-10-20
27
-
28
- - Added optional `importData()` function to the `BaseWidget` class, used to import widget-specific data.
29
- - Added optional `exportData()` function to the `BaseWidget` class, used to export widget-specific data.
30
- - Added new exported `ExportData` type.
31
-
32
- ## 1.8.17 - 2023-10-09
33
-
34
- - Added `iconName` property to the `definition` object of the `WidgetContext` interface, to support using an icon to represent a widget.
35
-
36
- ## 1.8.16 - 2023-09-26
37
-
38
- - Added `Custom` value to `ICPersonaType` enum, to support a custom ICPersona.
39
-
40
- ## 1.8.15 - 2023-09-01
41
-
42
- - Added `thumbnailUrl` property to `WidgetManifestConfig` interface, as a non-translatable substitute of the newly deprecated `preview_small` property from `WidgetImages` interface.
43
- - Removed the deprecated `preview_small` property from `WidgetImages` interface.
44
-
45
- ## 1.8.14 - 2023-09-01
46
-
47
- - Added `iconName` property to `WidgetManifestConfig` interface, to support using an icon to represent a widget, e.g. in the widget library or widget header.
48
- - Removed the deprecated `notificationIcon` property from `WidgetManifestConfig` interface.
49
-
50
- ## 1.8.13 - 2023-06-08
51
-
52
- - Removed the deprecated `resolved` property from `ICPersona` interface
53
-
54
- ## 1.8.12 - 2023-04-04
55
-
56
- - Changed `openFilePicker` function to return more details of the picked file in the shape of `FilePickerFileProps`
57
-
58
- ## 1.8.11 - 2023-04-03
59
-
60
- - Changed `openFilePicker` function to return more details of the picked file in the shape of `FilePickerFileProps`
61
-
62
- ## 1.8.10 - 2023-03-30
63
-
64
- - Changed `openFilePicker` function to accept `options`, to support configuration of picker behavior
65
-
66
- ## 1.8.9 - 2023-03-06
67
-
68
- - Added `registerCustomCommandBarItems` function to the `instance` object of the `WidgetContext` interface, to support multiple custom buttons in the widget header.
69
- - Added `unregisterCustomCommandBarItems` function to the `instance` object of the `WidgetContext` interface, to support removing all custom buttons in the widget header.
70
- - Added optional `id` property to exported `CustomCommandBarItemProps` type, to support removing a custom command bar item by id.
71
- - Added optional `pinned` property to exported `CustomCommandBarItemProps` type, to support forcing the widget header to always be visible.
72
- - Added optional `showNotificationBadge` property to exported `CustomCommandBarItemProps` type, to support showing a red notification badge over the custom command bar item.
73
- - Added optional `order` property to exported `CustomCommandBarItemProps` type, to support changing the order of custom command bar items.
74
- - Changed `unregisterCustomCommandBarItem` function of the `instance` object of the `WidgetContext` interface, to support removing a custom command bar item by id.
75
-
76
- ## 1.8.8 - 2023-02-16
77
-
78
- - Removed all SharePoint and Teams dependencies.
79
-
80
- ## 1.8.7 - 2022-12-13
81
-
82
- - Added `userRoles` property to the `WidgetContext` interface, to inform widgets of the roles of the current user.
83
- - Added new exported `UserRole` type.
84
-
85
- ## 1.8.6 - 2022-12-08
86
-
87
- - Added `boardType` property to the `instance` object of the `WidgetContext` interface, to inform widgets of the type of their board.
88
- - Added `allowedBoardTypes` property to the `definition` object of the `WidgetContext` interface, to inform widget variants of the types of boards it is allowed to be added to.
89
- - Added new exported `BoardType` type.
90
-
91
- ## 1.8.5 - 2022-09-30
92
-
93
- - Added `setWidgetTitleSuffix()` function to the `instance` object of the `WidgetContext` interface, to support appending the title of the widget with additional text.
94
- - Added `setWidgetSubtitle()` function to the `instance` object of the `WidgetContext` interface, to support overriding the subtitle of the widget.
95
- - Added `setUserConfigButtonVisibilty()` function to the `instance` object of the `WidgetContext` interface, to support hiding the settings button from the widget header.
96
- - Fixed spelling of `setWidgetHeaderVisibilty()` function. The function is now called `setWidgetHeaderVisibility()`.
97
-
98
- ## 1.8.4 - 2022-09-05
99
-
100
- - Added `openIFrameDialog()` function to the `WidgetContext` interface. This has the same functionality as the `openUrlInDialog()` function of the `instance` object, but adds more control over the dimensions of the dialog. The function `openUrlInDialog()` is now deprecated.
101
-
102
- ## 1.8.3 - 2022-08-16
103
-
104
- - Added `openFilePicker()` function to the `WidgetContext` interface to support file selection from within a widget.
105
-
106
- ## 1.8.2 - 2022-07-06
107
-
108
- - Added `subtitle` property to the `WidgetResource` interface.
109
-
110
- ## 1.8.1 - 2022-06-17
111
-
112
- - Added new section `analytics` to `WidgetManifestConfig` interface to allow definition of time-based events that can be raised by a widget.
113
- - Added `raiseEvent(...)` to the `instance` object of the `WidgetContent` interface, allowing widgets to raise an event.
114
-
115
- ## 1.7.11 - 2022-03-23
116
-
117
- - Added `setWidgetHeaderVisibilty()` function to the `instance` object of the `WidgetContext` interface, allowing widgets to render in full height.
118
-
119
- ## 1.7.9 - 2022-01-20
120
-
121
- - Added `userAccountCreated` date/time to the `WidgetContext` interface.
122
-
123
- ## 1.7.8 - 2022-01-18
124
-
125
- ### Changed
126
-
127
- - Added `initiateWidgetDeletion()` function to the `WidgetContext` interface.
128
-
129
- ## 1.7.7 - 2022-01-14
130
-
131
- ### Changed
132
-
133
- - Added `tenantId` property to the `WidgetContext` interface.
134
-
135
- ## 1.7.6 - 2021-11-04
136
-
137
- ### Changed
138
-
139
- - Added `theme` property to the `WidgetContext` interface to give access to currently applied theme.
140
-
141
- ## 1.7.5 - 2021-10-26
142
-
143
- ### Changed
144
-
145
- - Added `userSecurityGroups` and `userSharePointGroups` properties to the `WidgetContext` interface to inform widgets of SharePoint and security group memberships of the current user.
146
-
147
- ## 1.7.4 - 2021-10-20
148
-
149
- ### Changed
150
-
151
- - Added `contentLanguages` property to the `WidgetContext` interface to inform widgets of the available content languages as configured in Ichicraft Boards.
152
-
153
- ## 1.7.3 - 2021-10-04
154
-
155
- ### Changed
156
-
157
- - Added `manifestVersion` property to the `WidgetManifestConfig` interface to support multiple versions of the manifest. Current version is 2 which introduced this and the `externals` property.
158
- - Added `externals` property to the `WidgetManifestConfig` interface to support libraries that can be loaded separately from the widget bundle. This reduces widget bundle size and improves overal performance of Ichicraft Boards.
159
-
160
- ## 1.6.1 - 2021-02-18
161
-
162
- ### Changed
163
-
164
- - Added `userEmail` property to the `WidgetContext` interface to provide current user's email address to widgets.
165
-
166
- ## 1.5.0 - 2021-02-16
167
-
168
- ### Changed
169
-
170
- - Added `teamsSdk` property to the `WidgetContext` interface to allow interaction with Teams in case widget board is running in Teams client. Will be `undefined` if running in SharePoint.
171
-
172
- ## 1.4.0 - 2021-01-25
173
-
174
- ### Changed
175
-
176
- - Added several properties to the `WidgetContext` interface to identify the context in which the widget is shown (e.g. Team Browser hosted)
177
-
178
- ## 1.3.0 - 2021-01-15
179
-
180
- ### Changed
181
-
182
- - `registerCustomCommandBarItem()` is added to the `WidgetContext` interface as a function to call from within a widget instance to render an additional command bar item in the widget header.
183
- - `unregisterCustomCommandBarItem()` is added to the `WidgetContext` interface as a function to call from within a widget instance to remove a previously added command bar item from the widget header.
184
-
185
- ## 1.2.0 - 2021-01-15
186
-
187
- ### Changed
188
-
189
- - `loadScript()` is added to the `WidgetContext` interface 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.
190
-
191
- ## 1.1.0 - 2021-01-11
192
-
193
- ### Changed
194
-
195
- - `handleFatalError()` is added to the `WidgetContext` interface 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.
196
- - **deps:** removed dependency ajv
197
-
198
- ## <= 1.0.5 - 2020-12-07
199
-
200
- No changelog was maintained for the earlier versions.
1
+ This package supports development of widgets built using the Widget Development Kit
2
+
3
+ _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._
4
+
5
+ # Changelog
6
+
7
+ All notable changes to this project will be documented here.
8
+
9
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
10
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
11
+
12
+ ## 1.9.5 - 2024-04-18
13
+
14
+ - Added `title` property to the IFrameDialogOptions interface, to allow rendering a title in the dialog header.
15
+ - Added `titleUrl` property to the IFrameDialogOptions interface, to allow making the dialog header title clickable.
16
+ - Added `onRenderHeaderIcon` property to the IFrameDialogOptions interface, to allow rendering an icon in the dialog header.
17
+ - Added `onLoad` property to the IFrameDialogOptions interface, to support executing some code after the iframe finishes loading.
18
+
19
+ ## 1.9.4 - 2024-04-11
20
+
21
+ - Reintroduced the following types: `AadHttpClient`,`AadHttpClientConfiguration`,`AadHttpClientFactory`,`AadHttpClientResponse`, `AadTokenProvider`, `AadTokenProviderFactory`
22
+
23
+ ## 1.9.2 - 2024-03-21
24
+
25
+ - Added `CommandBarIcon` interface, to allow rendering a `CustomCommandBarItem` as a single icon or an icon button.
26
+ - Added `CommandBarLink` interface, to allow rendering a `CustomCommandBarItem` as a clickable link.
27
+ - Added `CommandBarItemBase` interface, to act as a base for different types of `CustomCommandBarItem`.
28
+ - Added `elementBorderRadius` property to the `WidgetContext` interface, to allow styling widgets according to the configured design preferences.
29
+ - Changed `CustomCommandBarItemProps` type to accept either a `CommandBarIcon` or a `CommandBarLink`.
30
+
31
+ ## 1.9.1 - 2023-10-20
32
+
33
+ - Added `WidgetInstanceContext` interface, to allow typing the `instance` property of the `WidgetContext` interface.
34
+ - Added `WidgetVariantContext` interface, to allow typing the `definition` property of the `WidgetContext` interface.
35
+ - Added `WidgetManifestContext` interface, to allow typing the `manifest` property of the `WidgetContext` interface.
36
+
37
+ ## 1.9.0 - 2023-10-20
38
+
39
+ - Added optional `importData()` function to the `BaseWidget` class, used to import widget-specific data.
40
+ - Added optional `exportData()` function to the `BaseWidget` class, used to export widget-specific data.
41
+ - Added new exported `ExportData` type.
42
+
43
+ ## 1.8.17 - 2023-10-09
44
+
45
+ - Added `iconName` property to the `definition` object of the `WidgetContext` interface, to support using an icon to represent a widget.
46
+
47
+ ## 1.8.16 - 2023-09-26
48
+
49
+ - Added `Custom` value to `ICPersonaType` enum, to support a custom ICPersona.
50
+
51
+ ## 1.8.15 - 2023-09-01
52
+
53
+ - Added `thumbnailUrl` property to `WidgetManifestConfig` interface, as a non-translatable substitute of the newly deprecated `preview_small` property from `WidgetImages` interface.
54
+ - Removed the deprecated `preview_small` property from `WidgetImages` interface.
55
+
56
+ ## 1.8.14 - 2023-09-01
57
+
58
+ - Added `iconName` property to `WidgetManifestConfig` interface, to support using an icon to represent a widget, e.g. in the widget library or widget header.
59
+ - Removed the deprecated `notificationIcon` property from `WidgetManifestConfig` interface.
60
+
61
+ ## 1.8.13 - 2023-06-08
62
+
63
+ - Removed the deprecated `resolved` property from `ICPersona` interface
64
+
65
+ ## 1.8.12 - 2023-04-04
66
+
67
+ - Changed `openFilePicker` function to return more details of the picked file in the shape of `FilePickerFileProps`
68
+
69
+ ## 1.8.11 - 2023-04-03
70
+
71
+ - Changed `openFilePicker` function to return more details of the picked file in the shape of `FilePickerFileProps`
72
+
73
+ ## 1.8.10 - 2023-03-30
74
+
75
+ - Changed `openFilePicker` function to accept `options`, to support configuration of picker behavior
76
+
77
+ ## 1.8.9 - 2023-03-06
78
+
79
+ - Added `registerCustomCommandBarItems` function to the `instance` object of the `WidgetContext` interface, to support multiple custom buttons in the widget header.
80
+ - Added `unregisterCustomCommandBarItems` function to the `instance` object of the `WidgetContext` interface, to support removing all custom buttons in the widget header.
81
+ - Added optional `id` property to exported `CustomCommandBarItemProps` type, to support removing a custom command bar item by id.
82
+ - Added optional `pinned` property to exported `CustomCommandBarItemProps` type, to support forcing the widget header to always be visible.
83
+ - Added optional `showNotificationBadge` property to exported `CustomCommandBarItemProps` type, to support showing a red notification badge over the custom command bar item.
84
+ - Added optional `order` property to exported `CustomCommandBarItemProps` type, to support changing the order of custom command bar items.
85
+ - Changed `unregisterCustomCommandBarItem` function of the `instance` object of the `WidgetContext` interface, to support removing a custom command bar item by id.
86
+
87
+ ## 1.8.8 - 2023-02-16
88
+
89
+ - Removed all SharePoint and Teams dependencies.
90
+
91
+ ## 1.8.7 - 2022-12-13
92
+
93
+ - Added `userRoles` property to the `WidgetContext` interface, to inform widgets of the roles of the current user.
94
+ - Added new exported `UserRole` type.
95
+
96
+ ## 1.8.6 - 2022-12-08
97
+
98
+ - Added `boardType` property to the `instance` object of the `WidgetContext` interface, to inform widgets of the type of their board.
99
+ - Added `allowedBoardTypes` property to the `definition` object of the `WidgetContext` interface, to inform widget variants of the types of boards it is allowed to be added to.
100
+ - Added new exported `BoardType` type.
101
+
102
+ ## 1.8.5 - 2022-09-30
103
+
104
+ - Added `setWidgetTitleSuffix()` function to the `instance` object of the `WidgetContext` interface, to support appending the title of the widget with additional text.
105
+ - Added `setWidgetSubtitle()` function to the `instance` object of the `WidgetContext` interface, to support overriding the subtitle of the widget.
106
+ - Added `setUserConfigButtonVisibilty()` function to the `instance` object of the `WidgetContext` interface, to support hiding the settings button from the widget header.
107
+ - Fixed spelling of `setWidgetHeaderVisibilty()` function. The function is now called `setWidgetHeaderVisibility()`.
108
+
109
+ ## 1.8.4 - 2022-09-05
110
+
111
+ - Added `openIFrameDialog()` function to the `WidgetContext` interface. This has the same functionality as the `openUrlInDialog()` function of the `instance` object, but adds more control over the dimensions of the dialog. The function `openUrlInDialog()` is now deprecated.
112
+
113
+ ## 1.8.3 - 2022-08-16
114
+
115
+ - Added `openFilePicker()` function to the `WidgetContext` interface to support file selection from within a widget.
116
+
117
+ ## 1.8.2 - 2022-07-06
118
+
119
+ - Added `subtitle` property to the `WidgetResource` interface.
120
+
121
+ ## 1.8.1 - 2022-06-17
122
+
123
+ - Added new section `analytics` to `WidgetManifestConfig` interface to allow definition of time-based events that can be raised by a widget.
124
+ - Added `raiseEvent(...)` to the `instance` object of the `WidgetContent` interface, allowing widgets to raise an event.
125
+
126
+ ## 1.7.11 - 2022-03-23
127
+
128
+ - Added `setWidgetHeaderVisibilty()` function to the `instance` object of the `WidgetContext` interface, allowing widgets to render in full height.
129
+
130
+ ## 1.7.9 - 2022-01-20
131
+
132
+ - Added `userAccountCreated` date/time to the `WidgetContext` interface.
133
+
134
+ ## 1.7.8 - 2022-01-18
135
+
136
+ ### Changed
137
+
138
+ - Added `initiateWidgetDeletion()` function to the `WidgetContext` interface.
139
+
140
+ ## 1.7.7 - 2022-01-14
141
+
142
+ ### Changed
143
+
144
+ - Added `tenantId` property to the `WidgetContext` interface.
145
+
146
+ ## 1.7.6 - 2021-11-04
147
+
148
+ ### Changed
149
+
150
+ - Added `theme` property to the `WidgetContext` interface to give access to currently applied theme.
151
+
152
+ ## 1.7.5 - 2021-10-26
153
+
154
+ ### Changed
155
+
156
+ - Added `userSecurityGroups` and `userSharePointGroups` properties to the `WidgetContext` interface to inform widgets of SharePoint and security group memberships of the current user.
157
+
158
+ ## 1.7.4 - 2021-10-20
159
+
160
+ ### Changed
161
+
162
+ - Added `contentLanguages` property to the `WidgetContext` interface to inform widgets of the available content languages as configured in Ichicraft Boards.
163
+
164
+ ## 1.7.3 - 2021-10-04
165
+
166
+ ### Changed
167
+
168
+ - Added `manifestVersion` property to the `WidgetManifestConfig` interface to support multiple versions of the manifest. Current version is 2 which introduced this and the `externals` property.
169
+ - Added `externals` property to the `WidgetManifestConfig` interface to support libraries that can be loaded separately from the widget bundle. This reduces widget bundle size and improves overal performance of Ichicraft Boards.
170
+
171
+ ## 1.6.1 - 2021-02-18
172
+
173
+ ### Changed
174
+
175
+ - Added `userEmail` property to the `WidgetContext` interface to provide current user's email address to widgets.
176
+
177
+ ## 1.5.0 - 2021-02-16
178
+
179
+ ### Changed
180
+
181
+ - Added `teamsSdk` property to the `WidgetContext` interface to allow interaction with Teams in case widget board is running in Teams client. Will be `undefined` if running in SharePoint.
182
+
183
+ ## 1.4.0 - 2021-01-25
184
+
185
+ ### Changed
186
+
187
+ - Added several properties to the `WidgetContext` interface to identify the context in which the widget is shown (e.g. Team Browser hosted)
188
+
189
+ ## 1.3.0 - 2021-01-15
190
+
191
+ ### Changed
192
+
193
+ - `registerCustomCommandBarItem()` is added to the `WidgetContext` interface as a function to call from within a widget instance to render an additional command bar item in the widget header.
194
+ - `unregisterCustomCommandBarItem()` is added to the `WidgetContext` interface as a function to call from within a widget instance to remove a previously added command bar item from the widget header.
195
+
196
+ ## 1.2.0 - 2021-01-15
197
+
198
+ ### Changed
199
+
200
+ - `loadScript()` is added to the `WidgetContext` interface 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.
201
+
202
+ ## 1.1.0 - 2021-01-11
203
+
204
+ ### Changed
205
+
206
+ - `handleFatalError()` is added to the `WidgetContext` interface 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.
207
+ - **deps:** removed dependency ajv
208
+
209
+ ## <= 1.0.5 - 2020-12-07
210
+
211
+ No changelog was maintained for the earlier versions.
package/lib/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export { default as BaseWidget } from './BaseWidget';
2
2
  export * from './types';
3
- export { AadTokenProviderFactory, AadTokenProvider } from '@microsoft/sp-http';
package/lib/index.js CHANGED
@@ -17,10 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
18
  };
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
- exports.AadTokenProvider = exports.AadTokenProviderFactory = exports.BaseWidget = void 0;
20
+ exports.BaseWidget = void 0;
21
21
  var BaseWidget_1 = require("./BaseWidget");
22
22
  Object.defineProperty(exports, "BaseWidget", { enumerable: true, get: function () { return __importDefault(BaseWidget_1).default; } });
23
23
  __exportStar(require("./types"), exports);
24
- var sp_http_1 = require("@microsoft/sp-http");
25
- Object.defineProperty(exports, "AadTokenProviderFactory", { enumerable: true, get: function () { return sp_http_1.AadTokenProviderFactory; } });
26
- Object.defineProperty(exports, "AadTokenProvider", { enumerable: true, get: function () { return sp_http_1.AadTokenProvider; } });
@@ -1,4 +1,5 @@
1
- import { AadTokenProviderFactory } from '../.';
1
+ import type { AadHttpClientFactory, AadTokenProviderFactory } from '@microsoft/sp-http';
2
+ export type { AadTokenProviderFactory, AadTokenProvider, AadHttpClientFactory, AadHttpClient, AadHttpClientConfiguration, AadHttpClientResponse, } from '@microsoft/sp-http';
2
3
  /**
3
4
  * Widget context providing widget metadata and functionality offered by the widget board
4
5
  */
@@ -139,7 +140,7 @@ export interface WidgetContext {
139
140
  /**
140
141
  * AAD Http Client Factory class as provided by the WebPartContext object.
141
142
  */
142
- aadHttpClientFactory: any;
143
+ aadHttpClientFactory: AadHttpClientFactory;
143
144
  /**
144
145
  * AAD Token Provider Factory class as provided by the WebPartContext object.
145
146
  */
@@ -655,10 +656,26 @@ export interface IFrameDialogOptions {
655
656
  * Minimum margin on the top- and bottom side of the dialog.
656
657
  */
657
658
  marginVertical?: number;
659
+ /**
660
+ * Title displayed in the dialog header.
661
+ */
662
+ title?: string;
663
+ /**
664
+ * URL opened when clicking on the header title.
665
+ */
666
+ titleUrl?: string;
658
667
  /**
659
668
  * This event is triggered when the iFrame dialog is dismissed by the user.
660
669
  */
661
670
  onDismissed?: () => void;
671
+ /**
672
+ * This event is triggered when the iFrame dialog has been loaded.
673
+ */
674
+ onLoad?: (iframe: HTMLIFrameElement) => void;
675
+ /**
676
+ * Renders an icon on the left side of the dialog header.
677
+ */
678
+ onRenderHeaderIcon?: () => Element;
662
679
  }
663
680
  /**
664
681
  * Options to pass to openFilePicker function
package/package.json CHANGED
@@ -1,25 +1,27 @@
1
- {
2
- "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.9.3",
4
- "description": "Part of the Widget Development Kit for building widgets for Ichicraft Boards",
5
- "main": "lib/index.js",
6
- "types": "lib/index.d.ts",
7
- "scripts": {
8
- "build": "tsc",
9
- "prepare": "tsc"
10
- },
11
- "keywords": [
12
- "ichicraft",
13
- "widget",
14
- "widgets"
15
- ],
16
- "author": "Ichicraft",
17
- "license": "ISC",
18
- "files": [
19
- "lib/**/*"
20
- ],
21
- "devDependencies": {
22
- "@microsoft/sp-http": "1.18.2",
23
- "typescript": "^5.4.5"
24
- }
25
- }
1
+ {
2
+ "name": "@ichicraft/widgets-widget-base",
3
+ "version": "1.9.5",
4
+ "description": "Part of the Widget Development Kit for building widgets for Ichicraft Boards",
5
+ "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc",
9
+ "prepare": "tsc"
10
+ },
11
+ "keywords": [
12
+ "ichicraft",
13
+ "widget",
14
+ "widgets"
15
+ ],
16
+ "author": "Ichicraft",
17
+ "license": "ISC",
18
+ "files": [
19
+ "lib/**/*"
20
+ ],
21
+ "dependencies": {
22
+ "@microsoft/sp-http": "1.18.2"
23
+ },
24
+ "devDependencies": {
25
+ "typescript": "^5.4.5"
26
+ }
27
+ }
package/lib/.DS_Store DELETED
Binary file