@medplum/react 3.0.4 → 3.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.
- package/dist/cjs/index.cjs +6 -6
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/cjs/index.d.ts +18 -10
- package/dist/esm/index.d.ts +18 -10
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +17 -17
package/dist/cjs/index.d.ts
CHANGED
|
@@ -199,6 +199,7 @@ export declare interface AppShellProps {
|
|
|
199
199
|
readonly children: ReactNode;
|
|
200
200
|
readonly displayAddBookmark?: boolean;
|
|
201
201
|
readonly resourceTypeSearchDisabled?: boolean;
|
|
202
|
+
readonly notifications?: ReactNode;
|
|
202
203
|
}
|
|
203
204
|
|
|
204
205
|
export declare function AsyncAutocomplete<T>(props: AsyncAutocompleteProps<T>): JSX.Element;
|
|
@@ -654,6 +655,7 @@ export declare interface HeaderProps {
|
|
|
654
655
|
readonly logo: ReactNode;
|
|
655
656
|
readonly version?: string;
|
|
656
657
|
readonly navbarToggle: () => void;
|
|
658
|
+
readonly notifications?: ReactNode;
|
|
657
659
|
}
|
|
658
660
|
|
|
659
661
|
export declare function HumanNameDisplay(props: HumanNameDisplayProps): JSX.Element | null;
|
|
@@ -715,7 +717,7 @@ export declare interface MeasureReportDisplayProps {
|
|
|
715
717
|
|
|
716
718
|
export declare interface MedplumContext {
|
|
717
719
|
medplum: MedplumClient;
|
|
718
|
-
navigate:
|
|
720
|
+
navigate: MedplumNavigateFunction;
|
|
719
721
|
profile?: ProfileResource;
|
|
720
722
|
loading: boolean;
|
|
721
723
|
}
|
|
@@ -730,6 +732,8 @@ export declare interface MedplumLinkProps extends TextProps {
|
|
|
730
732
|
readonly children: ReactNode;
|
|
731
733
|
}
|
|
732
734
|
|
|
735
|
+
export declare type MedplumNavigateFunction = (path: string) => void;
|
|
736
|
+
|
|
733
737
|
/**
|
|
734
738
|
* The MedplumProvider component provides Medplum context state.
|
|
735
739
|
*
|
|
@@ -743,7 +747,7 @@ export declare function MedplumProvider(props: MedplumProviderProps): JSX.Elemen
|
|
|
743
747
|
|
|
744
748
|
export declare interface MedplumProviderProps {
|
|
745
749
|
readonly medplum: MedplumClient;
|
|
746
|
-
readonly navigate?:
|
|
750
|
+
readonly navigate?: MedplumNavigateFunction;
|
|
747
751
|
readonly children: ReactNode;
|
|
748
752
|
}
|
|
749
753
|
|
|
@@ -751,8 +755,6 @@ export declare const MemoizedFhirPathTable: MemoExoticComponent<typeof FhirPathT
|
|
|
751
755
|
|
|
752
756
|
export declare const MemoizedSearchControl: MemoExoticComponent<typeof SearchControl>;
|
|
753
757
|
|
|
754
|
-
export declare type MepdlumNavigateFunction = (path: string) => void;
|
|
755
|
-
|
|
756
758
|
export declare function MoneyDisplay(props: MoneyDisplayProps): JSX.Element | null;
|
|
757
759
|
|
|
758
760
|
export declare interface MoneyDisplayProps {
|
|
@@ -797,6 +799,17 @@ export declare interface NoteDisplayProps {
|
|
|
797
799
|
readonly value?: Annotation[];
|
|
798
800
|
}
|
|
799
801
|
|
|
802
|
+
export declare function NotificationIcon(props: NotificationIconProps): JSX.Element;
|
|
803
|
+
|
|
804
|
+
export declare interface NotificationIconProps {
|
|
805
|
+
readonly iconComponent: JSX.Element;
|
|
806
|
+
readonly label: string;
|
|
807
|
+
readonly resourceType: ResourceType;
|
|
808
|
+
readonly countCriteria: string;
|
|
809
|
+
readonly subscriptionCriteria: string;
|
|
810
|
+
readonly onClick: () => void;
|
|
811
|
+
}
|
|
812
|
+
|
|
800
813
|
export declare function ObservationTable(props: ObservationTableProps): JSX.Element;
|
|
801
814
|
|
|
802
815
|
export declare interface ObservationTableProps {
|
|
@@ -820,11 +833,6 @@ export declare interface PanelProps extends PaperProps {
|
|
|
820
833
|
readonly children?: React.ReactNode;
|
|
821
834
|
}
|
|
822
835
|
|
|
823
|
-
export declare interface PanelStylesParams {
|
|
824
|
-
readonly width?: number;
|
|
825
|
-
readonly fill?: boolean;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
836
|
/**
|
|
829
837
|
* Parses an HTML form and returns the result as a JavaScript object.
|
|
830
838
|
* @param form - The HTML form element.
|
|
@@ -1408,7 +1416,7 @@ export declare function useMedplumContext(): MedplumContext;
|
|
|
1408
1416
|
* Returns the Medplum navigate function.
|
|
1409
1417
|
* @returns The Medplum navigate function.
|
|
1410
1418
|
*/
|
|
1411
|
-
export declare function useMedplumNavigate():
|
|
1419
|
+
export declare function useMedplumNavigate(): MedplumNavigateFunction;
|
|
1412
1420
|
|
|
1413
1421
|
/**
|
|
1414
1422
|
* Returns the current Medplum user profile (if signed in).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -199,6 +199,7 @@ export declare interface AppShellProps {
|
|
|
199
199
|
readonly children: ReactNode;
|
|
200
200
|
readonly displayAddBookmark?: boolean;
|
|
201
201
|
readonly resourceTypeSearchDisabled?: boolean;
|
|
202
|
+
readonly notifications?: ReactNode;
|
|
202
203
|
}
|
|
203
204
|
|
|
204
205
|
export declare function AsyncAutocomplete<T>(props: AsyncAutocompleteProps<T>): JSX.Element;
|
|
@@ -654,6 +655,7 @@ export declare interface HeaderProps {
|
|
|
654
655
|
readonly logo: ReactNode;
|
|
655
656
|
readonly version?: string;
|
|
656
657
|
readonly navbarToggle: () => void;
|
|
658
|
+
readonly notifications?: ReactNode;
|
|
657
659
|
}
|
|
658
660
|
|
|
659
661
|
export declare function HumanNameDisplay(props: HumanNameDisplayProps): JSX.Element | null;
|
|
@@ -715,7 +717,7 @@ export declare interface MeasureReportDisplayProps {
|
|
|
715
717
|
|
|
716
718
|
export declare interface MedplumContext {
|
|
717
719
|
medplum: MedplumClient;
|
|
718
|
-
navigate:
|
|
720
|
+
navigate: MedplumNavigateFunction;
|
|
719
721
|
profile?: ProfileResource;
|
|
720
722
|
loading: boolean;
|
|
721
723
|
}
|
|
@@ -730,6 +732,8 @@ export declare interface MedplumLinkProps extends TextProps {
|
|
|
730
732
|
readonly children: ReactNode;
|
|
731
733
|
}
|
|
732
734
|
|
|
735
|
+
export declare type MedplumNavigateFunction = (path: string) => void;
|
|
736
|
+
|
|
733
737
|
/**
|
|
734
738
|
* The MedplumProvider component provides Medplum context state.
|
|
735
739
|
*
|
|
@@ -743,7 +747,7 @@ export declare function MedplumProvider(props: MedplumProviderProps): JSX.Elemen
|
|
|
743
747
|
|
|
744
748
|
export declare interface MedplumProviderProps {
|
|
745
749
|
readonly medplum: MedplumClient;
|
|
746
|
-
readonly navigate?:
|
|
750
|
+
readonly navigate?: MedplumNavigateFunction;
|
|
747
751
|
readonly children: ReactNode;
|
|
748
752
|
}
|
|
749
753
|
|
|
@@ -751,8 +755,6 @@ export declare const MemoizedFhirPathTable: MemoExoticComponent<typeof FhirPathT
|
|
|
751
755
|
|
|
752
756
|
export declare const MemoizedSearchControl: MemoExoticComponent<typeof SearchControl>;
|
|
753
757
|
|
|
754
|
-
export declare type MepdlumNavigateFunction = (path: string) => void;
|
|
755
|
-
|
|
756
758
|
export declare function MoneyDisplay(props: MoneyDisplayProps): JSX.Element | null;
|
|
757
759
|
|
|
758
760
|
export declare interface MoneyDisplayProps {
|
|
@@ -797,6 +799,17 @@ export declare interface NoteDisplayProps {
|
|
|
797
799
|
readonly value?: Annotation[];
|
|
798
800
|
}
|
|
799
801
|
|
|
802
|
+
export declare function NotificationIcon(props: NotificationIconProps): JSX.Element;
|
|
803
|
+
|
|
804
|
+
export declare interface NotificationIconProps {
|
|
805
|
+
readonly iconComponent: JSX.Element;
|
|
806
|
+
readonly label: string;
|
|
807
|
+
readonly resourceType: ResourceType;
|
|
808
|
+
readonly countCriteria: string;
|
|
809
|
+
readonly subscriptionCriteria: string;
|
|
810
|
+
readonly onClick: () => void;
|
|
811
|
+
}
|
|
812
|
+
|
|
800
813
|
export declare function ObservationTable(props: ObservationTableProps): JSX.Element;
|
|
801
814
|
|
|
802
815
|
export declare interface ObservationTableProps {
|
|
@@ -820,11 +833,6 @@ export declare interface PanelProps extends PaperProps {
|
|
|
820
833
|
readonly children?: React.ReactNode;
|
|
821
834
|
}
|
|
822
835
|
|
|
823
|
-
export declare interface PanelStylesParams {
|
|
824
|
-
readonly width?: number;
|
|
825
|
-
readonly fill?: boolean;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
836
|
/**
|
|
829
837
|
* Parses an HTML form and returns the result as a JavaScript object.
|
|
830
838
|
* @param form - The HTML form element.
|
|
@@ -1408,7 +1416,7 @@ export declare function useMedplumContext(): MedplumContext;
|
|
|
1408
1416
|
* Returns the Medplum navigate function.
|
|
1409
1417
|
* @returns The Medplum navigate function.
|
|
1410
1418
|
*/
|
|
1411
|
-
export declare function useMedplumNavigate():
|
|
1419
|
+
export declare function useMedplumNavigate(): MedplumNavigateFunction;
|
|
1412
1420
|
|
|
1413
1421
|
/**
|
|
1414
1422
|
* Returns the current Medplum user profile (if signed in).
|