@medplum/react 5.1.16 → 5.1.18
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 +3 -3
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/cjs/index.d.ts +14 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +18 -18
package/dist/cjs/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ import type { InternalSchemaElement } from '@medplum/core';
|
|
|
45
45
|
import { isAddPharmacyResponse } from '@medplum/core';
|
|
46
46
|
import { isOrganizationArray } from '@medplum/core';
|
|
47
47
|
import type { JSX } from 'react';
|
|
48
|
+
import type { LoginAuthenticationResponse } from '@medplum/core';
|
|
48
49
|
import type { MeasureReport } from '@medplum/fhirtypes';
|
|
49
50
|
import type { Media } from '@medplum/fhirtypes';
|
|
50
51
|
import type { Medication } from '@medplum/fhirtypes';
|
|
@@ -518,6 +519,18 @@ export declare interface CheckboxFormSectionProps {
|
|
|
518
519
|
readonly readonly?: boolean;
|
|
519
520
|
}
|
|
520
521
|
|
|
522
|
+
export declare function ChooseScopeForm(props: ChooseScopeFormProps): JSX.Element;
|
|
523
|
+
|
|
524
|
+
export declare interface ChooseScopeFormProps {
|
|
525
|
+
readonly login: string;
|
|
526
|
+
readonly scope: string | undefined;
|
|
527
|
+
readonly handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
528
|
+
readonly title?: string;
|
|
529
|
+
readonly submitLabel?: string;
|
|
530
|
+
readonly logo?: ReactNode;
|
|
531
|
+
readonly children?: ReactNode;
|
|
532
|
+
}
|
|
533
|
+
|
|
521
534
|
/**
|
|
522
535
|
* Clears all of the filters.
|
|
523
536
|
* @param definition - The original search request.
|
|
@@ -2111,6 +2124,7 @@ export declare interface SignInFormProps extends BaseLoginRequest {
|
|
|
2111
2124
|
readonly onRegister?: () => void;
|
|
2112
2125
|
readonly onCode?: (code: string) => void;
|
|
2113
2126
|
readonly children?: ReactNode;
|
|
2127
|
+
readonly chooseScopeFormProps?: Omit<ChooseScopeFormProps, 'login' | 'scope' | 'handleAuthResponse'>;
|
|
2114
2128
|
}
|
|
2115
2129
|
|
|
2116
2130
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ import type { InternalSchemaElement } from '@medplum/core';
|
|
|
45
45
|
import { isAddPharmacyResponse } from '@medplum/core';
|
|
46
46
|
import { isOrganizationArray } from '@medplum/core';
|
|
47
47
|
import type { JSX } from 'react';
|
|
48
|
+
import type { LoginAuthenticationResponse } from '@medplum/core';
|
|
48
49
|
import type { MeasureReport } from '@medplum/fhirtypes';
|
|
49
50
|
import type { Media } from '@medplum/fhirtypes';
|
|
50
51
|
import type { Medication } from '@medplum/fhirtypes';
|
|
@@ -518,6 +519,18 @@ export declare interface CheckboxFormSectionProps {
|
|
|
518
519
|
readonly readonly?: boolean;
|
|
519
520
|
}
|
|
520
521
|
|
|
522
|
+
export declare function ChooseScopeForm(props: ChooseScopeFormProps): JSX.Element;
|
|
523
|
+
|
|
524
|
+
export declare interface ChooseScopeFormProps {
|
|
525
|
+
readonly login: string;
|
|
526
|
+
readonly scope: string | undefined;
|
|
527
|
+
readonly handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
528
|
+
readonly title?: string;
|
|
529
|
+
readonly submitLabel?: string;
|
|
530
|
+
readonly logo?: ReactNode;
|
|
531
|
+
readonly children?: ReactNode;
|
|
532
|
+
}
|
|
533
|
+
|
|
521
534
|
/**
|
|
522
535
|
* Clears all of the filters.
|
|
523
536
|
* @param definition - The original search request.
|
|
@@ -2111,6 +2124,7 @@ export declare interface SignInFormProps extends BaseLoginRequest {
|
|
|
2111
2124
|
readonly onRegister?: () => void;
|
|
2112
2125
|
readonly onCode?: (code: string) => void;
|
|
2113
2126
|
readonly children?: ReactNode;
|
|
2127
|
+
readonly chooseScopeFormProps?: Omit<ChooseScopeFormProps, 'login' | 'scope' | 'handleAuthResponse'>;
|
|
2114
2128
|
}
|
|
2115
2129
|
|
|
2116
2130
|
/**
|