@ichicraft/widgets-widget-base 1.9.7 → 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,12 @@ 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
+
12
18
  ## 1.9.7 - 2024-04-19
13
19
 
14
20
  - Added `hideSpHubNav` property to the IFrameDialogOptions interface, to allow hiding the Hub navigation on SharePoint sites.
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.9.7",
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",