@trackunit/iris-app-runtime-core-api 1.3.66 → 1.3.69

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.66",
3
+ "version": "1.3.69",
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.65"
11
+ "@trackunit/react-core-contexts-api": "1.4.68"
12
12
  },
13
13
  "module": "./index.esm.js",
14
14
  "main": "./index.cjs.js",
@@ -1,6 +1,41 @@
1
1
  import { AssetSortingContextValue, FilterBarValues, ITokenContext } from "@trackunit/react-core-contexts-api";
2
2
  export interface ChildConnectorApi {
3
+ /**
4
+ * Gets called when the token changes.
5
+ *
6
+ * @param token new token to use
7
+ * @returns
8
+ */
3
9
  onTokenChanged: (token: ITokenContext) => void;
10
+ /**
11
+ * Gets called when the filter bar values change.
12
+ *
13
+ * @param filters new filter bar values
14
+ * @deprecated Use {@link ChildConnectorApi.onAssetsFilterBarValuesChanged} instead.
15
+ */
4
16
  onFilterBarValuesChanged: (filters: FilterBarValues | null) => void;
17
+ /**
18
+ * Gets called when the assets filter bar values change.
19
+ *
20
+ * @param filters new filter bar values
21
+ */
22
+ onAssetsFilterBarValuesChanged: (filters: FilterBarValues | null) => void;
23
+ /**
24
+ * Gets called when the customers filter bar values change.
25
+ *
26
+ * @param filters new filter bar values
27
+ */
28
+ onCustomersFilterBarValuesChanged: (filters: FilterBarValues | null) => void;
29
+ /**
30
+ * Gets called when the sites filter bar values change.
31
+ *
32
+ * @param filters new filter bar values
33
+ */
34
+ onSitesFilterBarValuesChanged: (filters: FilterBarValues | null) => void;
35
+ /**
36
+ * Gets called when the asset sorting state changes.
37
+ *
38
+ * @param sorting new sorting state
39
+ */
5
40
  onAssetSortingStateChanged: (sorting: AssetSortingContextValue["sortingState"]) => void;
6
41
  }
@@ -14,9 +14,23 @@ export interface HostConnectorApi extends IAnalyticsContextAsync<Record<string,
14
14
  getCurrentUserContext(): Promise<CurrentUserContextInterface>;
15
15
  getUserSubscriptionContext(): Promise<IUserSubscriptionContext>;
16
16
  /**
17
- * Used to get the current filter bar values, only if the host page has a filterbar.
17
+ * Used to get the current filter bar values for assets, only if the host page has a filterbar.
18
+ *
19
+ * @deprecated Use {@link HostConnectorApi.getAssetsFilterBarValues} instead.
18
20
  */
19
21
  getFilterBarValues(): Promise<FilterBarValues>;
22
+ /**
23
+ * Used to get the current filter bar values for assets, only if the host page has a filterbar.
24
+ */
25
+ getAssetsFilterBarValues(): Promise<FilterBarValues>;
26
+ /**
27
+ * Used to get the current filter bar values for customers, only if the host page has a filterbar.
28
+ */
29
+ getCustomersFilterBarValues(): Promise<FilterBarValues>;
30
+ /**
31
+ * Used to get the current filter bar values for sites, only if the host page has a filterbar.
32
+ */
33
+ getSitesFilterBarValues(): Promise<FilterBarValues>;
20
34
  /**
21
35
  * Adds a toast to the host pages toast stack.
22
36
  *