@bahmni/widgets 0.0.1-dev.111 → 0.0.1-dev.113

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/dist/index.d.ts CHANGED
@@ -11,8 +11,8 @@ export { GenericServiceRequestTable } from './genericServiceRequest';
11
11
  export { PatientProgramsTable } from './patientPrograms';
12
12
  export { useNotification, NotificationProvider, NotificationServiceComponent, } from './notification';
13
13
  export { usePatientUUID } from './hooks/usePatientUUID';
14
- export { useActivePractitioner } from './hooks/useActivePractitioner';
15
14
  export { useUserPrivilege } from './userPrivileges/useUserPrivilege';
16
15
  export { UserPrivilegeProvider } from './userPrivileges/UserPrivilegeProvider';
16
+ export { ActivePractitionerProvider, useActivePractitioner, ActivePractitionerContext, type ActivePractitionerContextType, } from './activePractitioner';
17
17
  export { registerWidget, getWidget, getWidgetConfig, hasWidget, getAllWidgetTypes, getAllWidgetConfigs, resetWidgetRegistry, type WidgetConfig, } from './registry';
18
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,0BAA0B,EA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BAAgB,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAG/E,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,yBAAyB,EACzB,KAAK,6BAA6B,GACnC,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,cAAc,EACd,SAAS,EACT,eAAe,EACf,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,29 +1,31 @@
1
- import { g as s, k as t, l as o, G as r, n as g, M as n, N as l, r as d, P, p as c, m as v, S as b, x as T, V as f, O as W, H as u, B as m, E as p, F as S, y, Q as A, v as C, f as N, u as U, w as h } from "./index-C1xlT_ZV.js";
1
+ import { B as t, x as s, g as r, k as o, l as n, G as g, n as l, M as c, N as P, r as d, P as v, p as T, m as b, S as f, w as W, V as u, T as A, Q as m, F as p, H as C, O as S, E as y, X as N, y as U, f as h, u as x, v as D } from "./index-CJakYuEL.js";
2
2
  import "react";
3
3
  export {
4
- s as AllergiesTable,
5
- t as ConditionsTable,
6
- o as DiagnosesTable,
7
- r as GenericServiceRequestTable,
8
- g as LabInvestigation,
9
- n as MedicationsTable,
10
- l as NotificationProvider,
4
+ t as ActivePractitionerContext,
5
+ s as ActivePractitionerProvider,
6
+ r as AllergiesTable,
7
+ o as ConditionsTable,
8
+ n as DiagnosesTable,
9
+ g as GenericServiceRequestTable,
10
+ l as LabInvestigation,
11
+ c as MedicationsTable,
12
+ P as NotificationProvider,
11
13
  d as NotificationServiceComponent,
12
- P as PatientDetails,
13
- c as PatientProgramsTable,
14
- v as RadiologyInvestigationTable,
15
- b as SearchPatient,
16
- T as UserPrivilegeProvider,
17
- f as VitalFlowSheet,
18
- W as getAllWidgetConfigs,
19
- u as getAllWidgetTypes,
20
- m as getWidget,
21
- p as getWidgetConfig,
14
+ v as PatientDetails,
15
+ T as PatientProgramsTable,
16
+ b as RadiologyInvestigationTable,
17
+ f as SearchPatient,
18
+ W as UserPrivilegeProvider,
19
+ u as VitalFlowSheet,
20
+ A as getAllWidgetConfigs,
21
+ m as getAllWidgetTypes,
22
+ p as getWidget,
23
+ C as getWidgetConfig,
22
24
  S as hasWidget,
23
25
  y as registerWidget,
24
- A as resetWidgetRegistry,
25
- C as useActivePractitioner,
26
- N as useNotification,
27
- U as usePatientUUID,
28
- h as useUserPrivilege
26
+ N as resetWidgetRegistry,
27
+ U as useActivePractitioner,
28
+ h as useNotification,
29
+ x as usePatientUUID,
30
+ D as useUserPrivilege
29
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.111",
3
+ "version": "0.0.1-dev.113",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,15 +0,0 @@
1
- import { Provider, User } from '@bahmni/services';
2
- interface useActivePractitionerResult {
3
- practitioner: Provider | null;
4
- user: User | null;
5
- loading: boolean;
6
- error: Error | null;
7
- refetch: () => void;
8
- }
9
- /**
10
- * Custom hook to fetch and manage the active practitioner's details
11
- * @returns Object containing practitioner, loading state, error state, and refetch function
12
- */
13
- export declare const useActivePractitioner: () => useActivePractitionerResult;
14
- export {};
15
- //# sourceMappingURL=useActivePractitioner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useActivePractitioner.d.ts","sourceRoot":"","sources":["../../src/hooks/useActivePractitioner.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,EACR,IAAI,EAGL,MAAM,kBAAkB,CAAC;AAG1B,UAAU,2BAA2B;IACnC,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAO,2BA4CxC,CAAC"}