@bahmni/reports-app 0.0.1-dev.422

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.
@@ -0,0 +1,15 @@
1
+ import { default as React, ReactNode } from 'react';
2
+ interface PrivilegeGuardProps {
3
+ children: ReactNode;
4
+ }
5
+ /**
6
+ * Guards the reports app routes behind the `app:reports` privilege.
7
+ *
8
+ * `UserPrivilegeProvider` starts with `userPrivileges = null` and
9
+ * `isLoading = false`, so `userPrivileges === null` (not `isLoading`) is the
10
+ * signal that privileges have not settled yet. Checking `hasPrivilege`
11
+ * before that settles would redirect every user on first paint.
12
+ */
13
+ export declare const PrivilegeGuard: React.FC<PrivilegeGuardProps>;
14
+ export {};
15
+ //# sourceMappingURL=PrivilegeGuard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrivilegeGuard.d.ts","sourceRoot":"","sources":["../../../src/components/PrivilegeGuard/PrivilegeGuard.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAaxD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { QueryClientConfig } from '@tanstack/react-query';
2
+ export declare const queryClientConfig: QueryClientConfig;
3
+ //# sourceMappingURL=tanstackQuery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tanstackQuery.d.ts","sourceRoot":"","sources":["../../src/config/tanstackQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,eAAO,MAAM,iBAAiB,EAAE,iBAe/B,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const BAHMNI_REPORTS_NAMESPACE = "reports";
2
+ export declare const REPORTS_PRIVILEGE = "app:reports";
3
+ export declare const REPORTS_TAB_PATH = "/reports/";
4
+ export declare const MY_REPORTS_TAB_PATH = "/reports/my-reports";
5
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/constants/app.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,YAAY,CAAC;AAElD,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAI/C,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAC5C,eAAO,MAAM,mBAAmB,wBAAwB,CAAC"}