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

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.
@@ -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
@@ -1373,6 +1373,13 @@ const EnvironmentRuntime = {
1373
1373
  })
1374
1374
  };
1375
1375
 
1376
+ const GlobalSelectionRuntime = {
1377
+ getGlobalSelection: () => __awaiter(void 0, void 0, void 0, function* () {
1378
+ const api = yield getHostConnector();
1379
+ return api.getGlobalSelectionContext();
1380
+ })
1381
+ };
1382
+
1376
1383
  const NavigationRuntime = {
1377
1384
  setDeepLink: props => __awaiter(void 0, void 0, void 0, function* () {
1378
1385
  const api = yield getHostConnector();
@@ -1510,4 +1517,4 @@ const UserSubscriptionRuntime = {
1510
1517
  })
1511
1518
  };
1512
1519
 
1513
- export { AssetRuntime, CurrentUserRuntime, CustomFieldRuntime, DeveloperSettingsRuntime, EnvironmentRuntime, NavigationRuntime, RestRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime, getCustomFieldValueFromRawValue };
1520
+ 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.0",
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.0",
12
+ "@trackunit/react-core-contexts-api": "0.1.0"
13
13
  },
14
14
  "peerDependencies": {}
15
15
  }