@medplum/react 4.4.1 → 4.4.2
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/LICENSE.txt +176 -0
- package/dist/cjs/index.cjs +5 -5
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.css.map +1 -1
- package/dist/cjs/index.d.ts +90 -82
- package/dist/esm/index.css.map +1 -1
- package/dist/esm/index.d.ts +90 -82
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +19 -19
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,88 +1,89 @@
|
|
|
1
|
-
import { AccessPolicyResource } from '@medplum/fhirtypes';
|
|
2
|
-
import { Address } from '@medplum/fhirtypes';
|
|
3
|
-
import { AnchorProps } from '@mantine/core';
|
|
4
|
-
import { Annotation } from '@medplum/fhirtypes';
|
|
5
|
-
import { Attachment } from '@medplum/fhirtypes';
|
|
6
|
-
import { AvatarProps } from '@mantine/core';
|
|
7
|
-
import { BadgeProps } from '@mantine/core';
|
|
8
|
-
import { BaseLoginRequest } from '@medplum/core';
|
|
9
|
-
import { Bundle } from '@medplum/fhirtypes';
|
|
10
|
-
import { ButtonProps } from '@mantine/core';
|
|
11
|
-
import { ClientApplication } from '@medplum/fhirtypes';
|
|
12
|
-
import { CodeableConcept } from '@medplum/fhirtypes';
|
|
13
|
-
import { Coding } from '@medplum/fhirtypes';
|
|
14
|
-
import { ComboboxItem } from '@mantine/core';
|
|
15
|
-
import { ComboboxProps } from '@mantine/core';
|
|
16
|
-
import { Communication } from '@medplum/fhirtypes';
|
|
1
|
+
import type { AccessPolicyResource } from '@medplum/fhirtypes';
|
|
2
|
+
import type { Address } from '@medplum/fhirtypes';
|
|
3
|
+
import type { AnchorProps } from '@mantine/core';
|
|
4
|
+
import type { Annotation } from '@medplum/fhirtypes';
|
|
5
|
+
import type { Attachment } from '@medplum/fhirtypes';
|
|
6
|
+
import type { AvatarProps } from '@mantine/core';
|
|
7
|
+
import type { BadgeProps } from '@mantine/core';
|
|
8
|
+
import type { BaseLoginRequest } from '@medplum/core';
|
|
9
|
+
import type { Bundle } from '@medplum/fhirtypes';
|
|
10
|
+
import type { ButtonProps } from '@mantine/core';
|
|
11
|
+
import type { ClientApplication } from '@medplum/fhirtypes';
|
|
12
|
+
import type { CodeableConcept } from '@medplum/fhirtypes';
|
|
13
|
+
import type { Coding } from '@medplum/fhirtypes';
|
|
14
|
+
import type { ComboboxItem } from '@mantine/core';
|
|
15
|
+
import type { ComboboxProps } from '@mantine/core';
|
|
16
|
+
import type { Communication } from '@medplum/fhirtypes';
|
|
17
17
|
import { Component } from 'react';
|
|
18
|
-
import { ContactDetail } from '@medplum/fhirtypes';
|
|
19
|
-
import { ContactPoint } from '@medplum/fhirtypes';
|
|
20
|
-
import { ContainerProps } from '@mantine/core';
|
|
18
|
+
import type { ContactDetail } from '@medplum/fhirtypes';
|
|
19
|
+
import type { ContactPoint } from '@medplum/fhirtypes';
|
|
20
|
+
import type { ContainerProps } from '@mantine/core';
|
|
21
21
|
import { Context } from 'react';
|
|
22
|
-
import { CSSProperties } from 'react';
|
|
23
|
-
import { DiagnosticReport } from '@medplum/fhirtypes';
|
|
24
|
-
import { ElementDefinitionBinding } from '@medplum/fhirtypes';
|
|
25
|
-
import { ElementDefinitionType } from '@medplum/fhirtypes';
|
|
26
|
-
import { Encounter } from '@medplum/fhirtypes';
|
|
27
|
-
import { ErrorInfo } from 'react';
|
|
28
|
-
import { ExtendedInternalSchemaElement } from '@medplum/core';
|
|
29
|
-
import { ExtractResource } from '@medplum/fhirtypes';
|
|
30
|
-
import { Filter } from '@medplum/core';
|
|
31
|
-
import { HumanName } from '@medplum/fhirtypes';
|
|
32
|
-
import { HumanNameFormatOptions } from '@medplum/core';
|
|
33
|
-
import { Identifier } from '@medplum/fhirtypes';
|
|
34
|
-
import { InternalSchemaElement } from '@medplum/core';
|
|
35
|
-
import { JSX } from 'react';
|
|
36
|
-
import { MeasureReport } from '@medplum/fhirtypes';
|
|
37
|
-
import { Media } from '@medplum/fhirtypes';
|
|
38
|
-
import { MedplumClient } from '@medplum/core';
|
|
22
|
+
import type { CSSProperties } from 'react';
|
|
23
|
+
import type { DiagnosticReport } from '@medplum/fhirtypes';
|
|
24
|
+
import type { ElementDefinitionBinding } from '@medplum/fhirtypes';
|
|
25
|
+
import type { ElementDefinitionType } from '@medplum/fhirtypes';
|
|
26
|
+
import type { Encounter } from '@medplum/fhirtypes';
|
|
27
|
+
import type { ErrorInfo } from 'react';
|
|
28
|
+
import type { ExtendedInternalSchemaElement } from '@medplum/core';
|
|
29
|
+
import type { ExtractResource } from '@medplum/fhirtypes';
|
|
30
|
+
import type { Filter } from '@medplum/core';
|
|
31
|
+
import type { HumanName } from '@medplum/fhirtypes';
|
|
32
|
+
import type { HumanNameFormatOptions } from '@medplum/core';
|
|
33
|
+
import type { Identifier } from '@medplum/fhirtypes';
|
|
34
|
+
import type { InternalSchemaElement } from '@medplum/core';
|
|
35
|
+
import type { JSX } from 'react';
|
|
36
|
+
import type { MeasureReport } from '@medplum/fhirtypes';
|
|
37
|
+
import type { Media } from '@medplum/fhirtypes';
|
|
38
|
+
import type { MedplumClient } from '@medplum/core';
|
|
39
39
|
import { MemoExoticComponent } from 'react';
|
|
40
|
-
import { Money } from '@medplum/fhirtypes';
|
|
41
|
-
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
42
|
-
import { MouseEventHandler } from 'react';
|
|
43
|
-
import { Observation } from '@medplum/fhirtypes';
|
|
44
|
-
import { ObservationDefinition } from '@medplum/fhirtypes';
|
|
45
|
-
import { ObservationDefinitionQualifiedInterval } from '@medplum/fhirtypes';
|
|
46
|
-
import { OperationOutcome } from '@medplum/fhirtypes';
|
|
47
|
-
import { OperationOutcomeIssue } from '@medplum/fhirtypes';
|
|
40
|
+
import type { Money } from '@medplum/fhirtypes';
|
|
41
|
+
import type { MouseEvent as MouseEvent_2 } from 'react';
|
|
42
|
+
import type { MouseEventHandler } from 'react';
|
|
43
|
+
import type { Observation } from '@medplum/fhirtypes';
|
|
44
|
+
import type { ObservationDefinition } from '@medplum/fhirtypes';
|
|
45
|
+
import type { ObservationDefinitionQualifiedInterval } from '@medplum/fhirtypes';
|
|
46
|
+
import type { OperationOutcome } from '@medplum/fhirtypes';
|
|
47
|
+
import type { OperationOutcomeIssue } from '@medplum/fhirtypes';
|
|
48
48
|
import { Operator } from '@medplum/core';
|
|
49
|
-
import { PaperProps } from '@mantine/core';
|
|
50
|
-
import { Patient } from '@medplum/fhirtypes';
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
49
|
+
import type { PaperProps } from '@mantine/core';
|
|
50
|
+
import type { Patient } from '@medplum/fhirtypes';
|
|
51
|
+
import type { Period } from '@medplum/fhirtypes';
|
|
52
|
+
import type { PlanDefinition } from '@medplum/fhirtypes';
|
|
53
|
+
import type { ProfileResource } from '@medplum/core';
|
|
54
|
+
import type { Quantity } from '@medplum/fhirtypes';
|
|
55
|
+
import type { QueryTypes } from '@medplum/core';
|
|
56
|
+
import type { Questionnaire } from '@medplum/fhirtypes';
|
|
57
|
+
import type { QuestionnaireItem } from '@medplum/fhirtypes';
|
|
58
|
+
import type { QuestionnaireItemAnswerOption } from '@medplum/fhirtypes';
|
|
59
|
+
import type { QuestionnaireItemEnableWhen } from '@medplum/fhirtypes';
|
|
60
|
+
import type { QuestionnaireItemInitial } from '@medplum/fhirtypes';
|
|
61
|
+
import type { QuestionnaireResponse } from '@medplum/fhirtypes';
|
|
62
|
+
import type { QuestionnaireResponseItem } from '@medplum/fhirtypes';
|
|
63
|
+
import type { QuestionnaireResponseItemAnswer } from '@medplum/fhirtypes';
|
|
64
|
+
import type { Range as Range_2 } from '@medplum/fhirtypes';
|
|
65
|
+
import type { Ratio } from '@medplum/fhirtypes';
|
|
66
|
+
import type { ReactNode } from 'react';
|
|
67
|
+
import type { Reference } from '@medplum/fhirtypes';
|
|
68
|
+
import type { RequestGroup } from '@medplum/fhirtypes';
|
|
69
|
+
import type { Resource } from '@medplum/fhirtypes';
|
|
70
|
+
import type { ResourceArray } from '@medplum/core';
|
|
71
|
+
import type { ResourceType } from '@medplum/fhirtypes';
|
|
72
|
+
import type { Schedule } from '@medplum/fhirtypes';
|
|
73
|
+
import type { SearchParameter } from '@medplum/fhirtypes';
|
|
74
|
+
import type { SearchRequest } from '@medplum/core';
|
|
75
|
+
import type { ServiceRequest } from '@medplum/fhirtypes';
|
|
76
|
+
import type { Signature } from '@medplum/fhirtypes';
|
|
77
|
+
import type { Slot } from '@medplum/fhirtypes';
|
|
78
|
+
import type { StructureDefinition } from '@medplum/fhirtypes';
|
|
79
|
+
import type { Subscription } from '@medplum/fhirtypes';
|
|
80
|
+
import type { SyntheticEvent } from 'react';
|
|
81
|
+
import type { Task } from '@medplum/fhirtypes';
|
|
82
|
+
import type { TextProps } from '@mantine/core';
|
|
83
|
+
import type { Timing } from '@medplum/fhirtypes';
|
|
84
|
+
import type { TypedValue } from '@medplum/core';
|
|
85
|
+
import type { ValueSetExpandParams } from '@medplum/core';
|
|
86
|
+
import type { ValueSetExpansionContains } from '@medplum/fhirtypes';
|
|
86
87
|
|
|
87
88
|
/**
|
|
88
89
|
* Adds a filter for a date between two dates (inclusive of both dates).
|
|
@@ -1496,7 +1497,7 @@ export declare interface ResourceTimelineProps<T extends Resource> {
|
|
|
1496
1497
|
export declare function Scheduler(props: SchedulerProps): JSX.Element | null;
|
|
1497
1498
|
|
|
1498
1499
|
export declare interface SchedulerProps {
|
|
1499
|
-
readonly schedule: Schedule | Reference<Schedule
|
|
1500
|
+
readonly schedule: Schedule | Reference<Schedule> | Schedule[] | Reference<Schedule>[] | SlotSearchFunction;
|
|
1500
1501
|
readonly questionnaire: Questionnaire | Reference<Questionnaire>;
|
|
1501
1502
|
}
|
|
1502
1503
|
|
|
@@ -1689,6 +1690,13 @@ export declare interface SignInFormProps extends BaseLoginRequest {
|
|
|
1689
1690
|
readonly children?: ReactNode;
|
|
1690
1691
|
}
|
|
1691
1692
|
|
|
1693
|
+
/**
|
|
1694
|
+
* Custom function to search for available slots within a given time period
|
|
1695
|
+
* @param period - The time period to search within
|
|
1696
|
+
* @returns Promise resolving to an array of available slots
|
|
1697
|
+
*/
|
|
1698
|
+
export declare type SlotSearchFunction = (period: Period) => Promise<Slot[]>;
|
|
1699
|
+
|
|
1692
1700
|
export declare function SmartAppLaunchLink(props: SmartAppLaunchLinkProps): JSX.Element | null;
|
|
1693
1701
|
|
|
1694
1702
|
export declare interface SmartAppLaunchLinkProps extends AnchorProps {
|