@trackunit/react-core-contexts-api 1.12.6 → 1.12.8

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/react-core-contexts-api",
3
- "version": "1.12.6",
3
+ "version": "1.12.8",
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
  "react": "19.0.0",
11
- "@trackunit/iris-app-runtime-core-api": "1.11.6"
11
+ "@trackunit/iris-app-runtime-core-api": "1.11.8"
12
12
  },
13
13
  "module": "./index.esm.js",
14
14
  "main": "./index.cjs.js",
@@ -9,13 +9,13 @@ export interface Toast extends Omit<SimpleToast, "primaryAction" | "secondaryAct
9
9
  secondaryAction?: ToastAction;
10
10
  link?: ToastAction;
11
11
  }
12
- export interface IToastContext {
12
+ export interface ToastContextValue {
13
13
  addToast: (toast: Toast) => Promise<void | "primaryAction" | "secondaryAction" | "link">;
14
14
  removeToast: (id: string) => Promise<void>;
15
15
  }
16
- declare const ToastContext: import("react").Context<IToastContext | null>;
16
+ declare const ToastContext: import("react").Context<ToastContextValue | null>;
17
17
  export interface ToastContextProviderProps {
18
- value: IToastContext;
18
+ value: ToastContextValue;
19
19
  children: ReactNode;
20
20
  }
21
21
  /**
@@ -1,8 +1,8 @@
1
- import { ITokenContext } from "@trackunit/iris-app-runtime-core-api";
1
+ import { TokenContext as TokenContextValue } from "@trackunit/iris-app-runtime-core-api";
2
2
  import { ReactNode } from "react";
3
- declare const TokenContext: import("react").Context<ITokenContext | null>;
3
+ declare const TokenContext: import("react").Context<TokenContextValue | null>;
4
4
  interface TokenProviderProps {
5
- value: ITokenContext;
5
+ value: TokenContextValue;
6
6
  children?: ReactNode;
7
7
  }
8
8
  /**