@medplum/react 5.1.3 → 5.1.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 +8 -8
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/cjs/index.d.ts +36 -4
- package/dist/esm/index.d.ts +36 -4
- package/dist/esm/index.mjs +8 -8
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +26 -26
package/dist/cjs/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { AddFavoriteParams } from '@medplum/core';
|
|
|
3
3
|
import { AddPharmacyResponse } from '@medplum/core';
|
|
4
4
|
import { addPreferredPharmacyToPatient } from '@medplum/core';
|
|
5
5
|
import type { Address } from '@medplum/fhirtypes';
|
|
6
|
+
import type { AddressFormatOptions } from '@medplum/core';
|
|
6
7
|
import type { AlertProps } from '@mantine/core';
|
|
7
8
|
import type { AnchorProps } from '@mantine/core';
|
|
8
9
|
import type { Annotation } from '@medplum/fhirtypes';
|
|
@@ -178,6 +179,7 @@ export declare function AddressDisplay(props: AddressDisplayProps): JSX.Element
|
|
|
178
179
|
|
|
179
180
|
export declare interface AddressDisplayProps {
|
|
180
181
|
readonly value?: Address;
|
|
182
|
+
readonly options?: AddressFormatOptions;
|
|
181
183
|
}
|
|
182
184
|
|
|
183
185
|
export declare function AddressInput(props: AddressInputProps): JSX.Element;
|
|
@@ -423,6 +425,12 @@ export declare interface CalendarInputProps {
|
|
|
423
425
|
readonly onClick: (date: Date) => void;
|
|
424
426
|
}
|
|
425
427
|
|
|
428
|
+
export declare function ChangePasswordForm(props: ChangePasswordFormProps): JSX.Element;
|
|
429
|
+
|
|
430
|
+
export declare interface ChangePasswordFormProps {
|
|
431
|
+
readonly onSuccess?: () => void;
|
|
432
|
+
}
|
|
433
|
+
|
|
426
434
|
export declare interface ChatBubbleSkeletonProps {
|
|
427
435
|
readonly alignment: 'left' | 'right';
|
|
428
436
|
readonly parentWidth: number;
|
|
@@ -432,14 +440,14 @@ export declare const ChatList: (props: ChatListProps) => JSX.Element;
|
|
|
432
440
|
|
|
433
441
|
export declare const ChatListItem: (props: ChatListItemProps) => JSX.Element;
|
|
434
442
|
|
|
435
|
-
declare interface ChatListItemProps {
|
|
443
|
+
export declare interface ChatListItemProps {
|
|
436
444
|
topic: Communication;
|
|
437
445
|
lastCommunication: Communication | undefined;
|
|
438
446
|
isSelected: boolean;
|
|
439
447
|
getThreadUri: (topic: Communication) => string;
|
|
440
448
|
}
|
|
441
449
|
|
|
442
|
-
declare interface ChatListProps {
|
|
450
|
+
export declare interface ChatListProps {
|
|
443
451
|
threads: [Communication, Communication | undefined][];
|
|
444
452
|
selectedCommunication: Communication | undefined;
|
|
445
453
|
getThreadUri: (topic: Communication) => string;
|
|
@@ -503,6 +511,7 @@ export declare function CodingDisplay(props: CodingDisplayProps): JSX.Element;
|
|
|
503
511
|
|
|
504
512
|
export declare interface CodingDisplayProps {
|
|
505
513
|
readonly value?: Coding;
|
|
514
|
+
readonly includeCode?: boolean;
|
|
506
515
|
}
|
|
507
516
|
|
|
508
517
|
export declare function CodingInput(props: CodingInputProps): JSX.Element;
|
|
@@ -1076,7 +1085,7 @@ export declare const NewTopicDialog: (props: NewTopicDialogProps) => JSX.Element
|
|
|
1076
1085
|
* @param onSubmit - Callback fired with the created Communication resource after successful submission.
|
|
1077
1086
|
* @param allowPatientSelection - When true, the patient field is an editable search input. When false (default), the field is pre-filled from `subject` and disabled. Use true for provider-facing contexts, false for patient-facing apps.
|
|
1078
1087
|
*/
|
|
1079
|
-
declare interface NewTopicDialogProps {
|
|
1088
|
+
export declare interface NewTopicDialogProps {
|
|
1080
1089
|
subject: Reference<Patient> | Patient | undefined;
|
|
1081
1090
|
opened: boolean;
|
|
1082
1091
|
onClose: () => void;
|
|
@@ -1134,7 +1143,7 @@ export declare function parseForm(form: HTMLFormElement): Record<string, string>
|
|
|
1134
1143
|
|
|
1135
1144
|
export declare function ParticipantFilter(props: ParticipantFilterProps): JSX.Element;
|
|
1136
1145
|
|
|
1137
|
-
declare interface ParticipantFilterProps {
|
|
1146
|
+
export declare interface ParticipantFilterProps {
|
|
1138
1147
|
readonly selectedParticipants: Reference<Patient | Practitioner>[];
|
|
1139
1148
|
readonly onFilterChange: (participants: Reference<Patient | Practitioner>[]) => void;
|
|
1140
1149
|
}
|
|
@@ -1233,6 +1242,7 @@ export declare function QuantityDisplay(props: QuantityDisplayProps): JSX.Elemen
|
|
|
1233
1242
|
|
|
1234
1243
|
export declare interface QuantityDisplayProps {
|
|
1235
1244
|
readonly value?: Quantity;
|
|
1245
|
+
readonly precision?: number;
|
|
1236
1246
|
}
|
|
1237
1247
|
|
|
1238
1248
|
export declare function QuantityInput(props: QuantityInputProps): JSX.Element;
|
|
@@ -1384,6 +1394,8 @@ export declare function RangeDisplay(props: RangeDisplayProps): JSX.Element | nu
|
|
|
1384
1394
|
|
|
1385
1395
|
export declare interface RangeDisplayProps {
|
|
1386
1396
|
readonly value?: Range_2;
|
|
1397
|
+
readonly precision?: number;
|
|
1398
|
+
readonly exclusive?: boolean;
|
|
1387
1399
|
}
|
|
1388
1400
|
|
|
1389
1401
|
/**
|
|
@@ -1483,6 +1495,16 @@ export declare interface RequestGroupDisplayProps {
|
|
|
1483
1495
|
readonly onEdit: (task: Task, input: Reference, output: Reference) => void;
|
|
1484
1496
|
}
|
|
1485
1497
|
|
|
1498
|
+
export declare function ResetPasswordForm(props: ResetPasswordFormProps): JSX.Element;
|
|
1499
|
+
|
|
1500
|
+
export declare interface ResetPasswordFormProps {
|
|
1501
|
+
readonly projectId?: string;
|
|
1502
|
+
readonly recaptchaSiteKey?: string;
|
|
1503
|
+
readonly onSuccess?: () => void;
|
|
1504
|
+
readonly onSignIn?: () => void;
|
|
1505
|
+
readonly onRegister?: () => void;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1486
1508
|
export declare function ResourceArrayDisplay(props: ResourceArrayDisplayProps): JSX.Element | null;
|
|
1487
1509
|
|
|
1488
1510
|
export declare interface ResourceArrayDisplayProps {
|
|
@@ -1807,6 +1829,15 @@ export declare function setOffset(definition: SearchRequest, offset: number): Se
|
|
|
1807
1829
|
*/
|
|
1808
1830
|
export declare function setPage(definition: SearchRequest, page: number): SearchRequest;
|
|
1809
1831
|
|
|
1832
|
+
export declare function SetPasswordForm(props: SetPasswordFormProps): JSX.Element;
|
|
1833
|
+
|
|
1834
|
+
export declare interface SetPasswordFormProps {
|
|
1835
|
+
readonly id: string;
|
|
1836
|
+
readonly secret: string;
|
|
1837
|
+
readonly onSuccess?: () => void;
|
|
1838
|
+
readonly onSignIn?: () => void;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1810
1841
|
export declare function setPropertyValue(obj: any, key: string, propName: string, elementDefinition: InternalSchemaElement, value: any): any;
|
|
1811
1842
|
|
|
1812
1843
|
export declare function setQuestionnaireItemReferenceTargetTypes(item: QuestionnaireItem, targetTypes: ResourceType[] | undefined): QuestionnaireItem;
|
|
@@ -1870,6 +1901,7 @@ export declare interface SmartAppLaunchLinkProps extends AnchorProps {
|
|
|
1870
1901
|
readonly client: ClientApplication;
|
|
1871
1902
|
readonly patient?: Reference<Patient>;
|
|
1872
1903
|
readonly encounter?: Reference<Encounter>;
|
|
1904
|
+
readonly fhirContext?: Reference[];
|
|
1873
1905
|
readonly children?: ReactNode;
|
|
1874
1906
|
}
|
|
1875
1907
|
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { AddFavoriteParams } from '@medplum/core';
|
|
|
3
3
|
import { AddPharmacyResponse } from '@medplum/core';
|
|
4
4
|
import { addPreferredPharmacyToPatient } from '@medplum/core';
|
|
5
5
|
import type { Address } from '@medplum/fhirtypes';
|
|
6
|
+
import type { AddressFormatOptions } from '@medplum/core';
|
|
6
7
|
import type { AlertProps } from '@mantine/core';
|
|
7
8
|
import type { AnchorProps } from '@mantine/core';
|
|
8
9
|
import type { Annotation } from '@medplum/fhirtypes';
|
|
@@ -178,6 +179,7 @@ export declare function AddressDisplay(props: AddressDisplayProps): JSX.Element
|
|
|
178
179
|
|
|
179
180
|
export declare interface AddressDisplayProps {
|
|
180
181
|
readonly value?: Address;
|
|
182
|
+
readonly options?: AddressFormatOptions;
|
|
181
183
|
}
|
|
182
184
|
|
|
183
185
|
export declare function AddressInput(props: AddressInputProps): JSX.Element;
|
|
@@ -423,6 +425,12 @@ export declare interface CalendarInputProps {
|
|
|
423
425
|
readonly onClick: (date: Date) => void;
|
|
424
426
|
}
|
|
425
427
|
|
|
428
|
+
export declare function ChangePasswordForm(props: ChangePasswordFormProps): JSX.Element;
|
|
429
|
+
|
|
430
|
+
export declare interface ChangePasswordFormProps {
|
|
431
|
+
readonly onSuccess?: () => void;
|
|
432
|
+
}
|
|
433
|
+
|
|
426
434
|
export declare interface ChatBubbleSkeletonProps {
|
|
427
435
|
readonly alignment: 'left' | 'right';
|
|
428
436
|
readonly parentWidth: number;
|
|
@@ -432,14 +440,14 @@ export declare const ChatList: (props: ChatListProps) => JSX.Element;
|
|
|
432
440
|
|
|
433
441
|
export declare const ChatListItem: (props: ChatListItemProps) => JSX.Element;
|
|
434
442
|
|
|
435
|
-
declare interface ChatListItemProps {
|
|
443
|
+
export declare interface ChatListItemProps {
|
|
436
444
|
topic: Communication;
|
|
437
445
|
lastCommunication: Communication | undefined;
|
|
438
446
|
isSelected: boolean;
|
|
439
447
|
getThreadUri: (topic: Communication) => string;
|
|
440
448
|
}
|
|
441
449
|
|
|
442
|
-
declare interface ChatListProps {
|
|
450
|
+
export declare interface ChatListProps {
|
|
443
451
|
threads: [Communication, Communication | undefined][];
|
|
444
452
|
selectedCommunication: Communication | undefined;
|
|
445
453
|
getThreadUri: (topic: Communication) => string;
|
|
@@ -503,6 +511,7 @@ export declare function CodingDisplay(props: CodingDisplayProps): JSX.Element;
|
|
|
503
511
|
|
|
504
512
|
export declare interface CodingDisplayProps {
|
|
505
513
|
readonly value?: Coding;
|
|
514
|
+
readonly includeCode?: boolean;
|
|
506
515
|
}
|
|
507
516
|
|
|
508
517
|
export declare function CodingInput(props: CodingInputProps): JSX.Element;
|
|
@@ -1076,7 +1085,7 @@ export declare const NewTopicDialog: (props: NewTopicDialogProps) => JSX.Element
|
|
|
1076
1085
|
* @param onSubmit - Callback fired with the created Communication resource after successful submission.
|
|
1077
1086
|
* @param allowPatientSelection - When true, the patient field is an editable search input. When false (default), the field is pre-filled from `subject` and disabled. Use true for provider-facing contexts, false for patient-facing apps.
|
|
1078
1087
|
*/
|
|
1079
|
-
declare interface NewTopicDialogProps {
|
|
1088
|
+
export declare interface NewTopicDialogProps {
|
|
1080
1089
|
subject: Reference<Patient> | Patient | undefined;
|
|
1081
1090
|
opened: boolean;
|
|
1082
1091
|
onClose: () => void;
|
|
@@ -1134,7 +1143,7 @@ export declare function parseForm(form: HTMLFormElement): Record<string, string>
|
|
|
1134
1143
|
|
|
1135
1144
|
export declare function ParticipantFilter(props: ParticipantFilterProps): JSX.Element;
|
|
1136
1145
|
|
|
1137
|
-
declare interface ParticipantFilterProps {
|
|
1146
|
+
export declare interface ParticipantFilterProps {
|
|
1138
1147
|
readonly selectedParticipants: Reference<Patient | Practitioner>[];
|
|
1139
1148
|
readonly onFilterChange: (participants: Reference<Patient | Practitioner>[]) => void;
|
|
1140
1149
|
}
|
|
@@ -1233,6 +1242,7 @@ export declare function QuantityDisplay(props: QuantityDisplayProps): JSX.Elemen
|
|
|
1233
1242
|
|
|
1234
1243
|
export declare interface QuantityDisplayProps {
|
|
1235
1244
|
readonly value?: Quantity;
|
|
1245
|
+
readonly precision?: number;
|
|
1236
1246
|
}
|
|
1237
1247
|
|
|
1238
1248
|
export declare function QuantityInput(props: QuantityInputProps): JSX.Element;
|
|
@@ -1384,6 +1394,8 @@ export declare function RangeDisplay(props: RangeDisplayProps): JSX.Element | nu
|
|
|
1384
1394
|
|
|
1385
1395
|
export declare interface RangeDisplayProps {
|
|
1386
1396
|
readonly value?: Range_2;
|
|
1397
|
+
readonly precision?: number;
|
|
1398
|
+
readonly exclusive?: boolean;
|
|
1387
1399
|
}
|
|
1388
1400
|
|
|
1389
1401
|
/**
|
|
@@ -1483,6 +1495,16 @@ export declare interface RequestGroupDisplayProps {
|
|
|
1483
1495
|
readonly onEdit: (task: Task, input: Reference, output: Reference) => void;
|
|
1484
1496
|
}
|
|
1485
1497
|
|
|
1498
|
+
export declare function ResetPasswordForm(props: ResetPasswordFormProps): JSX.Element;
|
|
1499
|
+
|
|
1500
|
+
export declare interface ResetPasswordFormProps {
|
|
1501
|
+
readonly projectId?: string;
|
|
1502
|
+
readonly recaptchaSiteKey?: string;
|
|
1503
|
+
readonly onSuccess?: () => void;
|
|
1504
|
+
readonly onSignIn?: () => void;
|
|
1505
|
+
readonly onRegister?: () => void;
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1486
1508
|
export declare function ResourceArrayDisplay(props: ResourceArrayDisplayProps): JSX.Element | null;
|
|
1487
1509
|
|
|
1488
1510
|
export declare interface ResourceArrayDisplayProps {
|
|
@@ -1807,6 +1829,15 @@ export declare function setOffset(definition: SearchRequest, offset: number): Se
|
|
|
1807
1829
|
*/
|
|
1808
1830
|
export declare function setPage(definition: SearchRequest, page: number): SearchRequest;
|
|
1809
1831
|
|
|
1832
|
+
export declare function SetPasswordForm(props: SetPasswordFormProps): JSX.Element;
|
|
1833
|
+
|
|
1834
|
+
export declare interface SetPasswordFormProps {
|
|
1835
|
+
readonly id: string;
|
|
1836
|
+
readonly secret: string;
|
|
1837
|
+
readonly onSuccess?: () => void;
|
|
1838
|
+
readonly onSignIn?: () => void;
|
|
1839
|
+
}
|
|
1840
|
+
|
|
1810
1841
|
export declare function setPropertyValue(obj: any, key: string, propName: string, elementDefinition: InternalSchemaElement, value: any): any;
|
|
1811
1842
|
|
|
1812
1843
|
export declare function setQuestionnaireItemReferenceTargetTypes(item: QuestionnaireItem, targetTypes: ResourceType[] | undefined): QuestionnaireItem;
|
|
@@ -1870,6 +1901,7 @@ export declare interface SmartAppLaunchLinkProps extends AnchorProps {
|
|
|
1870
1901
|
readonly client: ClientApplication;
|
|
1871
1902
|
readonly patient?: Reference<Patient>;
|
|
1872
1903
|
readonly encounter?: Reference<Encounter>;
|
|
1904
|
+
readonly fhirContext?: Reference[];
|
|
1873
1905
|
readonly children?: ReactNode;
|
|
1874
1906
|
}
|
|
1875
1907
|
|