@trackunit/react-core-contexts-api 0.2.114 → 0.2.116-alpha-869e1cbc10.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-api",
3
- "version": "0.2.114",
3
+ "version": "0.2.116-alpha-869e1cbc10.0",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -3,15 +3,15 @@
3
3
  */
4
4
  type Page<TPage extends string> = {
5
5
  page: TPage;
6
- } & SubPage & QueryString;
6
+ } & SubPage & Search;
7
7
  /**
8
8
  * SubPage allows for extra deep navigation inside of the app.
9
9
  */
10
10
  type SubPage = {
11
11
  subPage?: string;
12
12
  };
13
- type QueryString = {
14
- queryString?: string;
13
+ type Search = {
14
+ search?: Object;
15
15
  };
16
16
  type NeverPage = {
17
17
  page?: never;
@@ -23,8 +23,8 @@ type NeverIrisApp = {
23
23
  export type IrisAppOptions = {
24
24
  irisAppId: string;
25
25
  extensionId: string;
26
- } & SubPage & QueryString & NeverPage;
27
- declare const mainApps: readonly ["fleet", "reports", "sites"];
26
+ } & SubPage & Search & NeverPage;
27
+ declare const mainApps: readonly ["fleet/list", "reports", "sites"];
28
28
  export type MainFleetApp = (typeof mainApps)[number];
29
29
  export type FleetAppStandardOptions = Page<MainFleetApp> & NeverIrisApp;
30
30
  export declare const assetHomePageIds: readonly ["status", "movement", "events", "insights", "specification", "telematics", "activity-timeline"];
@@ -41,13 +41,6 @@ export type HasAccessToOptions = (IrisAppOptions | AssetHomeStandardOptions | Si
41
41
  * type guard for IrisAppOptions
42
42
  */
43
43
  export declare const isIrisOptions: (options: IrisAppOptions | unknown) => options is IrisAppOptions;
44
- export type SetDeepLinkPromise = (deepLink: DeepLink) => Promise<void>;
45
- export type DeepLink = {
46
- path: string;
47
- pathname: string;
48
- search: Location["search"];
49
- hash: Location["hash"];
50
- };
51
44
  export interface INavigationContext {
52
45
  hasAccessTo: (options: HasAccessToOptions) => Promise<boolean>;
53
46
  gotoAssetHome: (assetId: string, options?: IrisAppOptions | AssetHomeStandardOptions) => Promise<boolean>;
@@ -4,7 +4,7 @@ export interface IUserSubscriptionContext {
4
4
  */
5
5
  packageType: UserSubscriptionPackageType;
6
6
  /**
7
- * Extra features enabled for the current user. Will be null if still loading
7
+ * Extra features enabled for the current user. Will be null if still loading.
8
8
  */
9
9
  features: IFeature[] | null;
10
10
  /**
@@ -19,6 +19,10 @@ export interface IUserSubscriptionContext {
19
19
  * Returns the number of days
20
20
  */
21
21
  numberOfDaysWithAccessToHistoricalInsights: number;
22
+ /**
23
+ * If the subscription is still loading.
24
+ */
25
+ loading: boolean;
22
26
  }
23
27
  export declare const UserSubscriptionPackage: {
24
28
  readonly EXPLORE_FLEET_OWNER: "Explore (Fleet Owner)";