@trackunit/react-core-contexts-api 0.2.146 → 0.2.148

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": "0.2.146",
3
+ "version": "0.2.148",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -3,7 +3,7 @@
3
3
  */
4
4
  type Page<TPage extends string> = {
5
5
  page: TPage;
6
- } & SubPage & Search;
6
+ } & SubPage & FragmentIdentifier & Search;
7
7
  /**
8
8
  * SubPage allows for extra deep navigation inside of the app.
9
9
  */
@@ -13,6 +13,9 @@ type SubPage = {
13
13
  type Search = {
14
14
  search?: Record<string, any>;
15
15
  };
16
+ type FragmentIdentifier = {
17
+ hash?: string;
18
+ };
16
19
  type NeverPage = {
17
20
  page?: never;
18
21
  };
@@ -23,7 +26,7 @@ type NeverIrisApp = {
23
26
  export type IrisAppOptions = {
24
27
  irisAppId: string;
25
28
  extensionId: string;
26
- } & SubPage & Search & NeverPage;
29
+ } & SubPage & Search & FragmentIdentifier & NeverPage;
27
30
  declare const mainApps: readonly ["fleet/list", "reports", "sites"];
28
31
  export type MainFleetApp = (typeof mainApps)[number];
29
32
  export type FleetAppStandardOptions = Page<MainFleetApp> & NeverIrisApp;
@@ -51,7 +54,6 @@ export interface INavigationContext {
51
54
  gotoCustomerHome: (customerId?: string, options?: IrisAppOptions | CustomerHomeStandardOptions) => Promise<boolean>;
52
55
  gotoAppLibrary: (irisAppId?: string) => Promise<boolean>;
53
56
  gotoFleetApp: (options: IrisAppOptions | FleetAppStandardOptions) => Promise<boolean>;
54
- gotoMyExports: (exportId?: string) => Promise<boolean>;
55
57
  gotoAdmin: (url?: string) => Promise<boolean>;
56
58
  gotoMarketplace: () => Promise<boolean>;
57
59
  reloadManager: () => Promise<boolean>;