@trackunit/iris-app-runtime-core-api 1.6.12 → 1.6.14
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/package.json +3 -3
- package/src/ChildConnector.d.ts +0 -7
- package/src/HostConnector.d.ts +4 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/iris-app-runtime-core-api",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.14",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"jest-fetch-mock": "^3.0.3",
|
|
11
|
-
"@trackunit/react-core-contexts-api": "1.7.
|
|
12
|
-
"@trackunit/react-test-setup": "1.3.
|
|
11
|
+
"@trackunit/react-core-contexts-api": "1.7.14",
|
|
12
|
+
"@trackunit/react-test-setup": "1.3.13"
|
|
13
13
|
},
|
|
14
14
|
"module": "./index.esm.js",
|
|
15
15
|
"main": "./index.cjs.js",
|
package/src/ChildConnector.d.ts
CHANGED
|
@@ -13,13 +13,6 @@ export interface ChildConnectorApi {
|
|
|
13
13
|
* @param timeRange new time range
|
|
14
14
|
*/
|
|
15
15
|
onTimeRangeChanged: (timeRange: TimeRange | null, temporalPeriod: TemporalPeriod | null) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Gets called when the filter bar values change.
|
|
18
|
-
*
|
|
19
|
-
* @param filters new filter bar values
|
|
20
|
-
* @deprecated Use { ChildConnectorApi.onAssetsFilterBarValuesChanged} instead.
|
|
21
|
-
*/
|
|
22
|
-
onFilterBarValuesChanged: (filters: FilterBarValues | null) => void;
|
|
23
16
|
/**
|
|
24
17
|
* Gets called when the assets filter bar values change.
|
|
25
18
|
*
|
package/src/HostConnector.d.ts
CHANGED
|
@@ -27,24 +27,18 @@ export interface HostConnectorApi extends IAnalyticsContextAsync<Record<string,
|
|
|
27
27
|
setWidgetTitle(title: string): Promise<void>;
|
|
28
28
|
openEditMode(): Promise<void>;
|
|
29
29
|
closeEditMode(): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Used to get the current filter bar values for assets, only if the host page has a filterbar.
|
|
32
|
-
*
|
|
33
|
-
* @deprecated Use { HostConnectorApi.getAssetsFilterBarValues} instead.
|
|
34
|
-
*/
|
|
35
|
-
getFilterBarValues(): Promise<FilterBarValues>;
|
|
36
30
|
/**
|
|
37
31
|
* Used to get the current filter bar values for assets, only if the host page has a filterbar.
|
|
38
32
|
*/
|
|
39
|
-
getAssetsFilterBarValues(): Promise<FilterBarValues>;
|
|
33
|
+
getAssetsFilterBarValues(): Promise<FilterBarValues | null>;
|
|
40
34
|
/**
|
|
41
35
|
* Used to get the current filter bar values for customers, only if the host page has a filterbar.
|
|
42
36
|
*/
|
|
43
|
-
getCustomersFilterBarValues(): Promise<FilterBarValues>;
|
|
37
|
+
getCustomersFilterBarValues(): Promise<FilterBarValues | null>;
|
|
44
38
|
/**
|
|
45
39
|
* Used to get the current filter bar values for sites, only if the host page has a filterbar.
|
|
46
40
|
*/
|
|
47
|
-
getSitesFilterBarValues(): Promise<FilterBarValues>;
|
|
41
|
+
getSitesFilterBarValues(): Promise<FilterBarValues | null>;
|
|
48
42
|
/**
|
|
49
43
|
* Adds a toast to the host pages toast stack.
|
|
50
44
|
*
|
|
@@ -58,6 +52,6 @@ export interface HostConnectorApi extends IAnalyticsContextAsync<Record<string,
|
|
|
58
52
|
getAssetInfo(): Promise<AssetInfo>;
|
|
59
53
|
getCustomerInfo(): Promise<CustomerInfo>;
|
|
60
54
|
getEventInfo(): Promise<EventInfo>;
|
|
61
|
-
getThemeCssProperties(): Promise<ThemeCssProperties | null>;
|
|
55
|
+
getThemeCssProperties(): Promise<Partial<ThemeCssProperties> | null>;
|
|
62
56
|
requestTrackunitRestApi: <T, E>(path: string, method: string, requestParams?: RequestParams, body?: unknown, bodyType?: BodyType, secureByDefault?: boolean) => Promise<HttpResponse<T, E>>;
|
|
63
57
|
}
|