@trackunit/iris-app-runtime-core 0.3.71 → 0.3.73

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/index.cjs.js CHANGED
@@ -464,6 +464,7 @@ var connectToParent = (options = {}) => {
464
464
  };
465
465
  };
466
466
 
467
+ const doNothingByDefault = () => { };
467
468
  /**
468
469
  * Setup using the subscribedMethods to subscribe to events from the host.
469
470
  *
@@ -472,7 +473,7 @@ var connectToParent = (options = {}) => {
472
473
  */
473
474
  const setupHostConnector = (subscribedMethods) => {
474
475
  var _a;
475
- const methods = Object.assign({ onGlobalSelectionChanged: () => { }, onTokenChanged: () => { }, onAssetSortingStateChanged: () => { } }, subscribedMethods);
476
+ const methods = Object.assign({ onGlobalSelectionChanged: doNothingByDefault, onFilterBarValuesChanged: doNothingByDefault, onTokenChanged: doNothingByDefault, onAssetSortingStateChanged: doNothingByDefault }, subscribedMethods);
476
477
  const connection = connectToParent({ methods });
477
478
  (_a = connection.promise) === null || _a === void 0 ? void 0 : _a.catch(err => {
478
479
  // TODO consider how to handle this catch
@@ -694,6 +695,13 @@ const EnvironmentRuntime = {
694
695
  }),
695
696
  };
696
697
 
698
+ const FilterBarRuntime = {
699
+ getFilterBarValues: () => __awaiter(void 0, void 0, void 0, function* () {
700
+ const api = yield getHostConnector();
701
+ return api.getFilterBarValues();
702
+ }),
703
+ };
704
+
697
705
  const GlobalSelectionRuntime = {
698
706
  getGlobalSelection: () => __awaiter(void 0, void 0, void 0, function* () {
699
707
  const api = yield getHostConnector();
@@ -805,6 +813,7 @@ exports.AssetSortingRuntime = AssetSortingRuntime;
805
813
  exports.CurrentUserRuntime = CurrentUserRuntime;
806
814
  exports.CustomFieldRuntime = CustomFieldRuntime;
807
815
  exports.EnvironmentRuntime = EnvironmentRuntime;
816
+ exports.FilterBarRuntime = FilterBarRuntime;
808
817
  exports.GlobalSelectionRuntime = GlobalSelectionRuntime;
809
818
  exports.NavigationRuntime = NavigationRuntime;
810
819
  exports.OemBrandingContextRuntime = OemBrandingContextRuntime;
package/index.esm.js CHANGED
@@ -461,6 +461,7 @@ var connectToParent = (options = {}) => {
461
461
  };
462
462
  };
463
463
 
464
+ const doNothingByDefault = () => { };
464
465
  /**
465
466
  * Setup using the subscribedMethods to subscribe to events from the host.
466
467
  *
@@ -469,7 +470,7 @@ var connectToParent = (options = {}) => {
469
470
  */
470
471
  const setupHostConnector = (subscribedMethods) => {
471
472
  var _a;
472
- const methods = Object.assign({ onGlobalSelectionChanged: () => { }, onTokenChanged: () => { }, onAssetSortingStateChanged: () => { } }, subscribedMethods);
473
+ const methods = Object.assign({ onGlobalSelectionChanged: doNothingByDefault, onFilterBarValuesChanged: doNothingByDefault, onTokenChanged: doNothingByDefault, onAssetSortingStateChanged: doNothingByDefault }, subscribedMethods);
473
474
  const connection = connectToParent({ methods });
474
475
  (_a = connection.promise) === null || _a === void 0 ? void 0 : _a.catch(err => {
475
476
  // TODO consider how to handle this catch
@@ -691,6 +692,13 @@ const EnvironmentRuntime = {
691
692
  }),
692
693
  };
693
694
 
695
+ const FilterBarRuntime = {
696
+ getFilterBarValues: () => __awaiter(void 0, void 0, void 0, function* () {
697
+ const api = yield getHostConnector();
698
+ return api.getFilterBarValues();
699
+ }),
700
+ };
701
+
694
702
  const GlobalSelectionRuntime = {
695
703
  getGlobalSelection: () => __awaiter(void 0, void 0, void 0, function* () {
696
704
  const api = yield getHostConnector();
@@ -796,4 +804,4 @@ const UserSubscriptionRuntime = {
796
804
  }),
797
805
  };
798
806
 
799
- export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, CurrentUserRuntime, CustomFieldRuntime, EnvironmentRuntime, GlobalSelectionRuntime, NavigationRuntime, OemBrandingContextRuntime, ParamsRuntime, RestRuntime, SiteRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueToSaveFromRawValue, getDateValue, getHostConnector, getStringValue, setupHostConnector };
807
+ export { AnalyticsContextRuntime, AssetRuntime, AssetSortingRuntime, CurrentUserRuntime, CustomFieldRuntime, EnvironmentRuntime, FilterBarRuntime, GlobalSelectionRuntime, NavigationRuntime, OemBrandingContextRuntime, ParamsRuntime, RestRuntime, SiteRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueToSaveFromRawValue, getDateValue, getHostConnector, getStringValue, setupHostConnector };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-runtime-core",
3
- "version": "0.3.71",
3
+ "version": "0.3.73",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -9,8 +9,8 @@
9
9
  "module": "./index.esm.js",
10
10
  "main": "./index.cjs.js",
11
11
  "dependencies": {
12
- "@trackunit/iris-app-runtime-core-api": "0.3.64",
13
- "@trackunit/react-core-contexts-api": "0.2.54"
12
+ "@trackunit/iris-app-runtime-core-api": "0.3.66",
13
+ "@trackunit/react-core-contexts-api": "0.2.56"
14
14
  },
15
15
  "peerDependencies": {}
16
16
  }
@@ -0,0 +1,5 @@
1
+ import { FilterBarValues } from "@trackunit/react-core-contexts-api";
2
+ export interface IFilterBarRuntime {
3
+ getFilterBarValues: () => Promise<FilterBarValues>;
4
+ }
5
+ export declare const FilterBarRuntime: IFilterBarRuntime;
package/src/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * from "./AssetSortingRuntime";
5
5
  export * from "./CurrentUserRuntime";
6
6
  export * from "./CustomFieldRuntime";
7
7
  export * from "./EnvironmentRuntime";
8
+ export * from "./FilterBarRuntime";
8
9
  export * from "./GlobalSelectionRuntime";
9
10
  export * from "./HostConnector";
10
11
  export * from "./IrisOemManifestRuntime";