@ichicraft/widgets-widget-base 1.7.7 → 1.7.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 +4 -1
- package/lib/types/index.d.ts +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,11 +8,14 @@ All notable changes to this project will be documented here.
|
|
|
8
8
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
9
9
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
10
10
|
|
|
11
|
+
## 1.7.8 - 2022-01-18
|
|
12
|
+
### Changed
|
|
13
|
+
* Added `initiateWidgetDeletion()` function to the `WidgetContext` interface.
|
|
14
|
+
|
|
11
15
|
## 1.7.7 - 2022-01-14
|
|
12
16
|
### Changed
|
|
13
17
|
* Added `tenantId` property to the `WidgetContext` interface.
|
|
14
18
|
|
|
15
|
-
|
|
16
19
|
## 1.7.6 - 2021-11-04
|
|
17
20
|
### Changed
|
|
18
21
|
* Added `theme` property to the `WidgetContext` interface to give access to currently applied theme.
|
package/lib/types/index.d.ts
CHANGED
|
@@ -32,6 +32,11 @@ export interface WidgetContext {
|
|
|
32
32
|
* menu of the widget.
|
|
33
33
|
*/
|
|
34
34
|
openConfiguration?: () => void;
|
|
35
|
+
/**
|
|
36
|
+
* Call this function to open the widget delete confirmation dialog for a user. This offers widget developers
|
|
37
|
+
* the ability to trigger the "widget deletion process". This allows different methods to delete the widget.
|
|
38
|
+
*/
|
|
39
|
+
initiateWidgetDeletion?: () => void;
|
|
35
40
|
/**
|
|
36
41
|
* Functionality offered by the widget board to open a url in an iframe dialog.
|
|
37
42
|
*/
|
package/package.json
CHANGED