@trackunit/iris-app-runtime-core-api 1.3.70 → 1.3.71

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-runtime-core-api",
3
- "version": "1.3.70",
3
+ "version": "1.3.71",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "jest-fetch-mock": "^3.0.3",
11
- "@trackunit/react-core-contexts-api": "1.4.69"
11
+ "@trackunit/react-core-contexts-api": "1.4.70"
12
12
  },
13
13
  "module": "./index.esm.js",
14
14
  "main": "./index.cjs.js",
@@ -1,4 +1,4 @@
1
- import { AssetSortingContextValue, FilterBarValues, ITokenContext } from "@trackunit/react-core-contexts-api";
1
+ import { AssetSortingContextValue, FilterBarValues, ITokenContext, TimeRange } from "@trackunit/react-core-contexts-api";
2
2
  export interface ChildConnectorApi {
3
3
  /**
4
4
  * Gets called when the token changes.
@@ -7,6 +7,12 @@ export interface ChildConnectorApi {
7
7
  * @returns
8
8
  */
9
9
  onTokenChanged: (token: ITokenContext) => void;
10
+ /**
11
+ * Gets called when the time range changes.
12
+ *
13
+ * @param timeRange new time range
14
+ */
15
+ onTimeRangeChanged: (timeRange: TimeRange | null) => void;
10
16
  /**
11
17
  * Gets called when the filter bar values change.
12
18
  *
@@ -1,4 +1,4 @@
1
- import { AssetSortingContextValue, ConfirmationDialogContextValue, CurrentUserContextInterface, FilterBarValues, IAnalyticsContextAsync, ICurrentUserPreferenceContext, IEnvironmentContext, INavigationContext, ITokenContext, IUserSubscriptionContext, ModalDialogContextValue, OemBrandingContext } from "@trackunit/react-core-contexts-api";
1
+ import { AssetSortingContextValue, ConfirmationDialogContextValue, CurrentUserContextInterface, FilterBarValues, IAnalyticsContextAsync, ICurrentUserPreferenceContext, IEnvironmentContext, INavigationContext, ITokenContext, IUserSubscriptionContext, ModalDialogContextValue, OemBrandingContext, TimeRange } from "@trackunit/react-core-contexts-api";
2
2
  import { AssetInfo } from "./AssetRuntime";
3
3
  import { CustomerInfo } from "./CustomerRuntime";
4
4
  import { EventInfo } from "./EventRuntime";
@@ -13,6 +13,10 @@ export interface HostConnectorApi extends IAnalyticsContextAsync<Record<string,
13
13
  getTokenContext(): Promise<ITokenContext>;
14
14
  getCurrentUserContext(): Promise<CurrentUserContextInterface>;
15
15
  getUserSubscriptionContext(): Promise<IUserSubscriptionContext>;
16
+ /**
17
+ * Used to get the current time range, only if the host page has a time range.
18
+ */
19
+ getTimeRange(): Promise<TimeRange | null>;
16
20
  /**
17
21
  * Used to get the current filter bar values for assets, only if the host page has a filterbar.
18
22
  *