@trackunit/iris-app-runtime-core 0.0.47-alpha-4849.1 → 0.0.49

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,4 @@
1
+ import { PublicToast } from "@trackunit/iris-app-runtime-core-api";
2
+ export declare const ToastRuntime: {
3
+ addToast(toast: PublicToast): Promise<void | "primaryAction" | "secondaryAction">;
4
+ };
package/index.d.ts CHANGED
@@ -5,5 +5,6 @@ export * from "./CustomFieldRuntime";
5
5
  export * from "./DeveloperSettingsRuntime";
6
6
  export * from "./EnvironmentRuntime";
7
7
  export * from "./RestRuntime";
8
+ export * from "./ToastRuntime";
8
9
  export * from "./TokenRuntime";
9
10
  export * from "./UserSubscriptionRuntime";
package/index.js CHANGED
@@ -1310,6 +1310,16 @@ const RestRuntime = {
1310
1310
 
1311
1311
  };
1312
1312
 
1313
+ const ToastRuntime = {
1314
+ addToast(toast) {
1315
+ return __awaiter(this, void 0, void 0, function* () {
1316
+ const api = yield getHostConnector();
1317
+ return api.addToast(toast);
1318
+ });
1319
+ }
1320
+
1321
+ };
1322
+
1313
1323
  const TokenRuntime = {
1314
1324
  getTokenContext: () => __awaiter(void 0, void 0, void 0, function* () {
1315
1325
  const api = yield getHostConnector();
@@ -1324,4 +1334,4 @@ const UserSubscriptionRuntime = {
1324
1334
  })
1325
1335
  };
1326
1336
 
1327
- export { AssetRuntime, CurrentUserRuntime, CustomFieldRuntime, DeveloperSettingsRuntime, EnvironmentRuntime, RestRuntime, TokenRuntime, UserSubscriptionRuntime };
1337
+ export { AssetRuntime, CurrentUserRuntime, CustomFieldRuntime, DeveloperSettingsRuntime, EnvironmentRuntime, RestRuntime, ToastRuntime, TokenRuntime, UserSubscriptionRuntime };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-runtime-core",
3
- "version": "0.0.47-alpha-4849.1",
3
+ "version": "0.0.49",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "MIT",
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.45-alpha-4849.1",
12
- "@trackunit/react-core-contexts-api": "0.0.44-alpha-4849.1"
11
+ "@trackunit/iris-app-runtime-core-api": "0.0.47",
12
+ "@trackunit/react-core-contexts-api": "0.0.45"
13
13
  },
14
14
  "peerDependencies": {}
15
15
  }