@livetiles/reach-plugin-types 0.4.126 → 0.4.128

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +8 -9
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -475,17 +475,18 @@ declare module "libs/reach/util/common/src/SortDirection" {
475
475
  declare module "libs/reach/util/context/src/ErrorContext" {
476
476
  import { AuthenticationType } from "libs/shared/util/authentication/src/index";
477
477
  export const ErrorContext: import("react").Context<{
478
- handleFatalError: (error: FatalError) => unknown;
479
478
  handleAccessDeniedError: (error: AccessDeniedError) => unknown;
479
+ handleFatalError: (error: FatalError) => unknown;
480
480
  handleNotFoundError: (error: NotFoundError) => unknown;
481
481
  }>;
482
- export interface FatalError {
483
- messageId?: string;
484
- error: any;
485
- }
486
482
  export interface AccessDeniedError {
487
483
  authType?: AuthenticationType;
488
484
  error?: any;
485
+ errorMessage?: string;
486
+ }
487
+ export interface FatalError {
488
+ error: any;
489
+ messageId?: string;
489
490
  }
490
491
  export interface NotFoundError {
491
492
  }
@@ -5249,13 +5250,11 @@ declare module "apps/reach-app/src/app/admin/demo-content/DemoContent" {
5249
5250
  export const DemoContent: FC;
5250
5251
  }
5251
5252
  declare module "apps/reach-app/src/app/authorization/Authorization" {
5252
- import { CurrentUser } from "libs/reach/util/common/src/index";
5253
- import { SubscriptionSummary } from "libs/reach/util/common/src/index";
5254
- import { FeatureSet } from "libs/reach/util/common/src/index";
5253
+ import { CurrentUser, FeatureSet, SubscriptionSummary } from "libs/reach/util/common/src/index";
5255
5254
  export interface UnauthorizedAccessToSubscriptionException {
5256
5255
  validSubscriptions: SubscriptionSummary[];
5257
5256
  }
5258
- export function useAuthorizationValidator(func: (user: CurrentUser, features: FeatureSet) => boolean): void;
5257
+ export function useAuthorizationValidator(func: (user: CurrentUser, features: FeatureSet) => boolean, isCheckingFeature?: boolean): void;
5259
5258
  }
5260
5259
  declare module "apps/reach-app/src/app/admin/themes/ContrastInfo" {
5261
5260
  import { FC } from 'react';
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.126",
7
+ "version": "0.4.128",
8
8
  "dependencies": {}
9
9
  }