eehitus-my-task-list-ui 1.0.5 → 1.0.6

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.
@@ -1,8 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { MyProceedingsDto } from '../../services/my_views_api_client';
3
+ import { LinkGen } from '../../util/redirect-utils';
3
4
  interface AdministrativeProceedingsTableProps {
4
5
  proceedings: MyProceedingsDto[];
5
- linkGen: (redirect: boolean, event: any, type: any, path: any) => string | undefined;
6
+ linkGen: LinkGen;
6
7
  }
7
8
  declare const AdministrativeProceedingsTable: ({ proceedings, linkGen, }: AdministrativeProceedingsTableProps) => JSX.Element;
8
9
  export default AdministrativeProceedingsTable;
@@ -1,8 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { GlobalUserInfo } from 'ehr-auth-react';
3
+ import { LinkGen } from '../../util/redirect-utils';
3
4
  interface MyAdministrativeProceedingsProps {
4
5
  userInfo: GlobalUserInfo;
5
- linkGen: (redirect: any, event: any, type: any, path: any, state?: any) => string | undefined;
6
+ linkGen: LinkGen;
6
7
  }
7
8
  declare const MyAdministrativeProceedings: ({ userInfo, linkGen, }: MyAdministrativeProceedingsProps) => JSX.Element;
8
9
  export default MyAdministrativeProceedings;
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { GlobalUserInfo } from 'ehr-auth-react';
3
+ import { LinkGen } from '../../../util/redirect-utils';
3
4
  declare const AdminProceedingsSection: ({ userInfo, linkGen, }: {
4
5
  userInfo: GlobalUserInfo;
5
- linkGen: (redirect: any, event: any, type: any, path: any, state?: any) => string | undefined;
6
+ linkGen: LinkGen;
6
7
  }) => JSX.Element;
7
8
  export default AdminProceedingsSection;
@@ -15,5 +15,6 @@ export declare enum RedirectType {
15
15
  Restriction = "RESTRICTION",
16
16
  NotFound = "404"
17
17
  }
18
+ export type LinkGen = (redirect: any, event: any, type: any, path: any, state?: any) => string | void;
18
19
  export declare const redirectWithType: (type: string, path: string, history: any, isExternal: boolean, isNewWindow?: boolean, state?: any) => void;
19
20
  export declare const linkGen: (type: string, path: string, history: any, isExternal: boolean, isNewWindow?: boolean, state?: any) => string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eehitus-my-task-list-ui",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "license": "ISC",
5
5
  "private": false,
6
6
  "type": "module",