@trackunit/iris-app-runtime-core 0.0.81 → 0.1.1

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/AssetRuntime.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { AssetInfo } from "@trackunit/iris-app-runtime-core-api";
2
2
  export interface IAssetRuntime {
3
3
  getAssetInfo: () => Promise<AssetInfo>;
4
+ gotoAssetHome: (assetId: string) => Promise<boolean>;
4
5
  }
5
6
  export declare const AssetRuntime: IAssetRuntime;
@@ -0,0 +1,5 @@
1
+ import { IGlobalSelectionContext } from "@trackunit/react-core-contexts-api";
2
+ export interface IGlobalSelectionRuntime {
3
+ getGlobalSelection: () => Promise<IGlobalSelectionContext>;
4
+ }
5
+ export declare const GlobalSelectionRuntime: IGlobalSelectionRuntime;
package/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from "./CurrentUserRuntime";
4
4
  export * from "./CustomFieldRuntime";
5
5
  export * from "./DeveloperSettingsRuntime";
6
6
  export * from "./EnvironmentRuntime";
7
+ export * from "./GlobalSelectionRuntime";
7
8
  export * from "./NavigationRuntime";
8
9
  export * from "./RestRuntime";
9
10
  export * from "./ToastRuntime";
package/index.js CHANGED
@@ -39,6 +39,10 @@ const AssetRuntime = {
39
39
  getAssetInfo: () => __awaiter(void 0, void 0, void 0, function* () {
40
40
  const api = yield getHostConnector();
41
41
  return api.getAssetInfo();
42
+ }),
43
+ gotoAssetHome: assetId => __awaiter(void 0, void 0, void 0, function* () {
44
+ const api = yield getHostConnector();
45
+ return api.gotoAssetHome(assetId);
42
46
  })
43
47
  };
44
48
 
@@ -1373,6 +1377,13 @@ const EnvironmentRuntime = {
1373
1377
  })
1374
1378
  };
1375
1379
 
1380
+ const GlobalSelectionRuntime = {
1381
+ getGlobalSelection: () => __awaiter(void 0, void 0, void 0, function* () {
1382
+ const api = yield getHostConnector();
1383
+ return api.getGlobalSelectionContext();
1384
+ })
1385
+ };
1386
+
1376
1387
  const NavigationRuntime = {
1377
1388
  setDeepLink: props => __awaiter(void 0, void 0, void 0, function* () {
1378
1389
  const api = yield getHostConnector();
@@ -1510,4 +1521,4 @@ const UserSubscriptionRuntime = {
1510
1521
  })
1511
1522
  };
1512
1523
 
1513
- export { AssetRuntime, CurrentUserRuntime, CustomFieldRuntime, DeveloperSettingsRuntime, EnvironmentRuntime, NavigationRuntime, RestRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueFromRawValue };
1524
+ export { AssetRuntime, CurrentUserRuntime, CustomFieldRuntime, DeveloperSettingsRuntime, EnvironmentRuntime, GlobalSelectionRuntime, NavigationRuntime, RestRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueFromRawValue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-runtime-core",
3
- "version": "0.0.81",
3
+ "version": "0.1.1",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "module": "./index.js",
@@ -8,8 +8,8 @@
8
8
  "type": "module",
9
9
  "types": "./index.d.ts",
10
10
  "dependencies": {
11
- "@trackunit/iris-app-runtime-core-api": "0.0.77",
12
- "@trackunit/react-core-contexts-api": "0.0.70"
11
+ "@trackunit/iris-app-runtime-core-api": "0.1.1",
12
+ "@trackunit/react-core-contexts-api": "0.1.0"
13
13
  },
14
14
  "peerDependencies": {}
15
15
  }