@medplum/react 3.0.3 → 3.0.5
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 +21 -5
- package/dist/esm/index.d.ts +21 -5
- package/dist/esm/index.mjs +6 -6
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +25 -25
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 {
|
|
@@ -1408,7 +1421,7 @@ export declare function useMedplumContext(): MedplumContext;
|
|
|
1408
1421
|
* Returns the Medplum navigate function.
|
|
1409
1422
|
* @returns The Medplum navigate function.
|
|
1410
1423
|
*/
|
|
1411
|
-
export declare function useMedplumNavigate():
|
|
1424
|
+
export declare function useMedplumNavigate(): MedplumNavigateFunction;
|
|
1412
1425
|
|
|
1413
1426
|
/**
|
|
1414
1427
|
* Returns the current Medplum user profile (if signed in).
|
|
@@ -1459,6 +1472,8 @@ export declare function useSearchOne<K extends ResourceType>(resourceType: K, qu
|
|
|
1459
1472
|
*/
|
|
1460
1473
|
export declare function useSearchResources<K extends ResourceType>(resourceType: K, query?: QueryTypes): [ResourceArray<ExtractResource<K>> | undefined, boolean, OperationOutcome | undefined];
|
|
1461
1474
|
|
|
1475
|
+
export declare function useSubscription(criteria: string, callback: (bundle: Bundle) => void): void;
|
|
1476
|
+
|
|
1462
1477
|
/**
|
|
1463
1478
|
* A low-level component to autocomplete based on a FHIR Valueset.
|
|
1464
1479
|
* This is the base component for CodeableConceptInput, CodingInput, and CodeInput.
|
|
@@ -1472,6 +1487,7 @@ export declare interface ValueSetAutocompleteProps extends Omit<AsyncAutocomplet
|
|
|
1472
1487
|
readonly creatable?: boolean;
|
|
1473
1488
|
readonly clearable?: boolean;
|
|
1474
1489
|
readonly expandParams?: Partial<ValueSetExpandParams>;
|
|
1490
|
+
readonly withHelpText?: boolean;
|
|
1475
1491
|
}
|
|
1476
1492
|
|
|
1477
1493
|
export { }
|
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 {
|
|
@@ -1408,7 +1421,7 @@ export declare function useMedplumContext(): MedplumContext;
|
|
|
1408
1421
|
* Returns the Medplum navigate function.
|
|
1409
1422
|
* @returns The Medplum navigate function.
|
|
1410
1423
|
*/
|
|
1411
|
-
export declare function useMedplumNavigate():
|
|
1424
|
+
export declare function useMedplumNavigate(): MedplumNavigateFunction;
|
|
1412
1425
|
|
|
1413
1426
|
/**
|
|
1414
1427
|
* Returns the current Medplum user profile (if signed in).
|
|
@@ -1459,6 +1472,8 @@ export declare function useSearchOne<K extends ResourceType>(resourceType: K, qu
|
|
|
1459
1472
|
*/
|
|
1460
1473
|
export declare function useSearchResources<K extends ResourceType>(resourceType: K, query?: QueryTypes): [ResourceArray<ExtractResource<K>> | undefined, boolean, OperationOutcome | undefined];
|
|
1461
1474
|
|
|
1475
|
+
export declare function useSubscription(criteria: string, callback: (bundle: Bundle) => void): void;
|
|
1476
|
+
|
|
1462
1477
|
/**
|
|
1463
1478
|
* A low-level component to autocomplete based on a FHIR Valueset.
|
|
1464
1479
|
* This is the base component for CodeableConceptInput, CodingInput, and CodeInput.
|
|
@@ -1472,6 +1487,7 @@ export declare interface ValueSetAutocompleteProps extends Omit<AsyncAutocomplet
|
|
|
1472
1487
|
readonly creatable?: boolean;
|
|
1473
1488
|
readonly clearable?: boolean;
|
|
1474
1489
|
readonly expandParams?: Partial<ValueSetExpandParams>;
|
|
1490
|
+
readonly withHelpText?: boolean;
|
|
1475
1491
|
}
|
|
1476
1492
|
|
|
1477
1493
|
export { }
|