@ichicraft/widgets-widget-base 1.8.4 → 1.8.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
@@ -9,6 +9,13 @@ 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.8.5 - 2022-09-30
13
+
14
+ - Added `setWidgetTitleSuffix()` function to the `instance` object of the `WidgetContext` interface, to support appending the title of the widget with additional text.
15
+ - Added `setWidgetSubtitle()` function to the `instance` object of the `WidgetContext` interface, to support overriding the subtitle of the widget.
16
+ - Added `setUserConfigButtonVisibilty()` function to the `instance` object of the `WidgetContext` interface, to support hiding the settings button from the widget header.
17
+ - Fixed spelling of `setWidgetHeaderVisibilty()` function. The function is now called `setWidgetHeaderVisibility()`.
18
+
12
19
  ## 1.8.4 - 2022-09-05
13
20
 
14
21
  - 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.
@@ -38,19 +38,27 @@ export interface WidgetContext {
38
38
  */
39
39
  initiateWidgetDeletion?: () => void;
40
40
  /**
41
- * @deprecated Functionality offered by the widget board to open a url in an iframe dialog.
41
+ * Functionality offered by the widget board to change the title of the widget.
42
42
  */
43
- openUrlInDialog?: (url: string, onDismissed?: () => void) => void;
43
+ setWidgetTitle?: (title: string) => void;
44
44
  /**
45
- * Functionality offered by the widget board to change the title of the widget
45
+ * Functionality offered by the widget board to append the title of the widget with additional text.
46
46
  */
47
- setWidgetTitle?: (title: string) => void;
47
+ setWidgetTitleSuffix?: (suffix: string) => void;
48
+ /**
49
+ * Functionality offered by the widget board to change the subtitle of the widget.
50
+ */
51
+ setWidgetSubtitle?: (subtitle: string) => void;
52
+ /**
53
+ * Show or hide the header of the widget, allowing widgets to take control of full widget real estate.
54
+ */
55
+ setWidgetHeaderVisibility?: (visible: boolean) => void;
48
56
  /**
49
- * Show or hide the header of the widget, allowing widgets to take control of full widget real estate
57
+ * Show or hide the settings button of the widget.
50
58
  */
51
- setWidgetHeaderVisibilty?: (visible: boolean) => void;
59
+ setUserConfigButtonVisibility?: (visible: boolean) => void;
52
60
  /**
53
- * Optional callback to handle the click event of the widget title
61
+ * Optional callback to handle the click event of the widget title.
54
62
  */
55
63
  onWidgetTitleClicked?: () => void;
56
64
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichicraft/widgets-widget-base",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
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",