@medplum/react 4.3.11 → 4.3.12
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 +5 -5
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/cjs/index.d.ts +15 -4
- package/dist/esm/index.d.ts +15 -4
- 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
|
@@ -938,6 +938,17 @@ export declare const MemoizedFhirPathTable: MemoExoticComponent<typeof FhirPathT
|
|
|
938
938
|
*/
|
|
939
939
|
export declare const MemoizedSearchControl: typeof SearchControl;
|
|
940
940
|
|
|
941
|
+
export declare function MfaForm(props: MfaFormProps): JSX.Element;
|
|
942
|
+
|
|
943
|
+
export declare type MfaFormFields = 'token';
|
|
944
|
+
|
|
945
|
+
export declare interface MfaFormProps {
|
|
946
|
+
readonly title: string;
|
|
947
|
+
readonly buttonText: string;
|
|
948
|
+
readonly qrCodeUrl?: string;
|
|
949
|
+
readonly onSubmit: (formData: Record<MfaFormFields, string>) => void | Promise<void>;
|
|
950
|
+
}
|
|
951
|
+
|
|
941
952
|
export declare function MoneyDisplay(props: MoneyDisplayProps): JSX.Element | null;
|
|
942
953
|
|
|
943
954
|
export declare interface MoneyDisplayProps {
|
|
@@ -1249,17 +1260,17 @@ export declare interface ReferenceDisplayProps {
|
|
|
1249
1260
|
readonly link?: boolean;
|
|
1250
1261
|
}
|
|
1251
1262
|
|
|
1252
|
-
export declare function ReferenceInput(props: ReferenceInputProps): JSX.Element;
|
|
1263
|
+
export declare function ReferenceInput<T extends Resource = Resource>(props: ReferenceInputProps<T>): JSX.Element;
|
|
1253
1264
|
|
|
1254
|
-
export declare interface ReferenceInputProps {
|
|
1265
|
+
export declare interface ReferenceInputProps<T extends Resource = Resource> {
|
|
1255
1266
|
readonly name: string;
|
|
1256
1267
|
readonly placeholder?: string;
|
|
1257
|
-
readonly defaultValue?: Reference
|
|
1268
|
+
readonly defaultValue?: Reference<T>;
|
|
1258
1269
|
readonly targetTypes?: string[];
|
|
1259
1270
|
readonly searchCriteria?: Record<string, string>;
|
|
1260
1271
|
readonly autoFocus?: boolean;
|
|
1261
1272
|
readonly required?: boolean;
|
|
1262
|
-
readonly onChange?: (value: Reference | undefined) => void;
|
|
1273
|
+
readonly onChange?: (value: Reference<T> | undefined) => void;
|
|
1263
1274
|
readonly disabled?: boolean;
|
|
1264
1275
|
}
|
|
1265
1276
|
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -938,6 +938,17 @@ export declare const MemoizedFhirPathTable: MemoExoticComponent<typeof FhirPathT
|
|
|
938
938
|
*/
|
|
939
939
|
export declare const MemoizedSearchControl: typeof SearchControl;
|
|
940
940
|
|
|
941
|
+
export declare function MfaForm(props: MfaFormProps): JSX.Element;
|
|
942
|
+
|
|
943
|
+
export declare type MfaFormFields = 'token';
|
|
944
|
+
|
|
945
|
+
export declare interface MfaFormProps {
|
|
946
|
+
readonly title: string;
|
|
947
|
+
readonly buttonText: string;
|
|
948
|
+
readonly qrCodeUrl?: string;
|
|
949
|
+
readonly onSubmit: (formData: Record<MfaFormFields, string>) => void | Promise<void>;
|
|
950
|
+
}
|
|
951
|
+
|
|
941
952
|
export declare function MoneyDisplay(props: MoneyDisplayProps): JSX.Element | null;
|
|
942
953
|
|
|
943
954
|
export declare interface MoneyDisplayProps {
|
|
@@ -1249,17 +1260,17 @@ export declare interface ReferenceDisplayProps {
|
|
|
1249
1260
|
readonly link?: boolean;
|
|
1250
1261
|
}
|
|
1251
1262
|
|
|
1252
|
-
export declare function ReferenceInput(props: ReferenceInputProps): JSX.Element;
|
|
1263
|
+
export declare function ReferenceInput<T extends Resource = Resource>(props: ReferenceInputProps<T>): JSX.Element;
|
|
1253
1264
|
|
|
1254
|
-
export declare interface ReferenceInputProps {
|
|
1265
|
+
export declare interface ReferenceInputProps<T extends Resource = Resource> {
|
|
1255
1266
|
readonly name: string;
|
|
1256
1267
|
readonly placeholder?: string;
|
|
1257
|
-
readonly defaultValue?: Reference
|
|
1268
|
+
readonly defaultValue?: Reference<T>;
|
|
1258
1269
|
readonly targetTypes?: string[];
|
|
1259
1270
|
readonly searchCriteria?: Record<string, string>;
|
|
1260
1271
|
readonly autoFocus?: boolean;
|
|
1261
1272
|
readonly required?: boolean;
|
|
1262
|
-
readonly onChange?: (value: Reference | undefined) => void;
|
|
1273
|
+
readonly onChange?: (value: Reference<T> | undefined) => void;
|
|
1263
1274
|
readonly disabled?: boolean;
|
|
1264
1275
|
}
|
|
1265
1276
|
|