@medplum/react 0.9.30 → 0.9.33
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/QuestionnaireForm.d.ts +1 -0
- package/dist/cjs/Scheduler.d.ts +2 -1
- package/dist/cjs/auth/AuthenticationForm.d.ts +16 -0
- package/dist/cjs/auth/ChooseProfileForm.d.ts +8 -0
- package/dist/cjs/auth/NewProjectForm.d.ts +7 -0
- package/dist/cjs/auth/NewUserForm.d.ts +10 -0
- package/dist/cjs/auth/RegisterForm.d.ts +12 -0
- package/dist/cjs/{SignInForm.d.ts → auth/SignInForm.d.ts} +3 -1
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +700 -678
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.min.js +1 -1
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/cjs/styles.css +197 -197
- package/dist/esm/MedplumLink.js +29 -14
- package/dist/esm/MedplumLink.js.map +1 -1
- package/dist/esm/QuestionnaireForm.d.ts +1 -0
- package/dist/esm/QuestionnaireForm.js +1 -1
- package/dist/esm/QuestionnaireForm.js.map +1 -1
- package/dist/esm/ResourceHistoryTable.js +15 -11
- package/dist/esm/ResourceHistoryTable.js.map +1 -1
- package/dist/esm/ResourceTimeline.js +3 -1
- package/dist/esm/ResourceTimeline.js.map +1 -1
- package/dist/esm/Scheduler.d.ts +2 -1
- package/dist/esm/Scheduler.js +18 -24
- package/dist/esm/Scheduler.js.map +1 -1
- package/dist/esm/ServiceRequestTimeline.js +3 -3
- package/dist/esm/ServiceRequestTimeline.js.map +1 -1
- package/dist/esm/auth/AuthenticationForm.d.ts +16 -0
- package/dist/esm/auth/AuthenticationForm.js +71 -0
- package/dist/esm/auth/AuthenticationForm.js.map +1 -0
- package/dist/esm/auth/ChooseProfileForm.d.ts +8 -0
- package/dist/esm/auth/ChooseProfileForm.js +32 -0
- package/dist/esm/auth/ChooseProfileForm.js.map +1 -0
- package/dist/esm/auth/NewProjectForm.d.ts +7 -0
- package/dist/esm/auth/NewProjectForm.js +42 -0
- package/dist/esm/auth/NewProjectForm.js.map +1 -0
- package/dist/esm/auth/NewUserForm.d.ts +10 -0
- package/dist/esm/auth/NewUserForm.js +87 -0
- package/dist/esm/auth/NewUserForm.js.map +1 -0
- package/dist/esm/auth/RegisterForm.d.ts +12 -0
- package/dist/esm/auth/RegisterForm.js +39 -0
- package/dist/esm/auth/RegisterForm.js.map +1 -0
- package/dist/esm/{SignInForm.d.ts → auth/SignInForm.d.ts} +3 -1
- package/dist/esm/auth/SignInForm.js +52 -0
- package/dist/esm/auth/SignInForm.js.map +1 -0
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/dist/esm/styles.css +197 -197
- package/package.json +21 -23
- package/dist/cjs/RegisterForm.d.ts +0 -18
- package/dist/esm/RegisterForm.d.ts +0 -18
- package/dist/esm/RegisterForm.js +0 -121
- package/dist/esm/RegisterForm.js.map +0 -1
- package/dist/esm/SignInForm.js +0 -167
- package/dist/esm/SignInForm.js.map +0 -1
|
@@ -4,6 +4,7 @@ import './QuestionnaireForm.css';
|
|
|
4
4
|
export interface QuestionnaireFormProps {
|
|
5
5
|
questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
6
6
|
subject?: Reference;
|
|
7
|
+
submitButtonText?: string;
|
|
7
8
|
onSubmit: (response: QuestionnaireResponse) => void;
|
|
8
9
|
}
|
|
9
10
|
export declare function QuestionnaireForm(props: QuestionnaireFormProps): JSX.Element | null;
|
package/dist/cjs/Scheduler.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Reference, Schedule } from '@medplum/fhirtypes';
|
|
2
|
+
import { Questionnaire, Reference, Schedule } from '@medplum/fhirtypes';
|
|
3
3
|
import './Scheduler.css';
|
|
4
4
|
export interface SchedulerProps {
|
|
5
5
|
schedule: Schedule | Reference<Schedule>;
|
|
6
|
+
questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
6
7
|
}
|
|
7
8
|
export declare function Scheduler(props: SchedulerProps): JSX.Element | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LoginAuthenticationResponse } from '@medplum/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface AuthenticationFormProps {
|
|
4
|
+
readonly projectId?: string;
|
|
5
|
+
readonly clientId?: string;
|
|
6
|
+
readonly scope?: string;
|
|
7
|
+
readonly nonce?: string;
|
|
8
|
+
readonly googleClientId?: string;
|
|
9
|
+
readonly codeChallenge?: string;
|
|
10
|
+
readonly codeChallengeMethod?: string;
|
|
11
|
+
readonly onForgotPassword?: () => void;
|
|
12
|
+
readonly onRegister?: () => void;
|
|
13
|
+
readonly handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
14
|
+
readonly children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare function AuthenticationForm(props: AuthenticationFormProps): JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ProjectMembership } from '@medplum/fhirtypes';
|
|
3
|
+
export interface ChooseProfileFormProps {
|
|
4
|
+
login: string;
|
|
5
|
+
memberships: ProjectMembership[];
|
|
6
|
+
handleAuthResponse: (response: any) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function ChooseProfileForm(props: ChooseProfileFormProps): JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LoginAuthenticationResponse } from '@medplum/core';
|
|
3
|
+
export interface NewProjectFormProps {
|
|
4
|
+
login: string;
|
|
5
|
+
handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function NewProjectForm(props: NewProjectFormProps): JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LoginAuthenticationResponse } from '@medplum/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface NewUserFormProps {
|
|
4
|
+
readonly projectId: string;
|
|
5
|
+
readonly googleClientId?: string;
|
|
6
|
+
readonly recaptchaSiteKey: string;
|
|
7
|
+
readonly children?: React.ReactNode;
|
|
8
|
+
readonly handleAuthResponse: (response: LoginAuthenticationResponse) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function NewUserForm(props: NewUserFormProps): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './SignInForm.css';
|
|
3
|
+
import '../util.css';
|
|
4
|
+
export interface RegisterFormProps {
|
|
5
|
+
readonly type: 'patient' | 'project';
|
|
6
|
+
readonly projectId?: string;
|
|
7
|
+
readonly googleClientId?: string;
|
|
8
|
+
readonly recaptchaSiteKey: string;
|
|
9
|
+
readonly children?: React.ReactNode;
|
|
10
|
+
readonly onSuccess: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function RegisterForm(props: RegisterFormProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import '../util.css';
|
|
2
3
|
import './SignInForm.css';
|
|
3
|
-
import './util.css';
|
|
4
4
|
export interface SignInFormProps {
|
|
5
5
|
readonly remember?: boolean;
|
|
6
6
|
readonly projectId?: string;
|
|
@@ -8,6 +8,8 @@ export interface SignInFormProps {
|
|
|
8
8
|
readonly clientId?: string;
|
|
9
9
|
readonly scope?: string;
|
|
10
10
|
readonly nonce?: string;
|
|
11
|
+
readonly codeChallenge?: string;
|
|
12
|
+
readonly codeChallengeMethod?: string;
|
|
11
13
|
readonly onSuccess?: () => void;
|
|
12
14
|
readonly onForgotPassword?: () => void;
|
|
13
15
|
readonly onRegister?: () => void;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export * from './AddressInput';
|
|
|
3
3
|
export * from './AttachmentArrayDisplay';
|
|
4
4
|
export * from './AttachmentArrayInput';
|
|
5
5
|
export * from './AttachmentInput';
|
|
6
|
+
export * from './auth/RegisterForm';
|
|
7
|
+
export * from './auth/SignInForm';
|
|
6
8
|
export * from './Autocomplete';
|
|
7
9
|
export * from './Avatar';
|
|
8
10
|
export * from './BackboneElementInput';
|
|
@@ -48,7 +50,6 @@ export * from './QuestionnaireUtils';
|
|
|
48
50
|
export * from './RangeDisplay';
|
|
49
51
|
export * from './RangeInput';
|
|
50
52
|
export * from './ReferenceInput';
|
|
51
|
-
export * from './RegisterForm';
|
|
52
53
|
export * from './RequestGroupDisplay';
|
|
53
54
|
export * from './ResourceArrayDisplay';
|
|
54
55
|
export * from './ResourceArrayInput';
|
|
@@ -71,7 +72,6 @@ export * from './SearchFilterEditor';
|
|
|
71
72
|
export * from './SearchUtils';
|
|
72
73
|
export * from './Select';
|
|
73
74
|
export * from './ServiceRequestTimeline';
|
|
74
|
-
export * from './SignInForm';
|
|
75
75
|
export * from './StatusBadge';
|
|
76
76
|
export * from './Tab';
|
|
77
77
|
export * from './TabList';
|