@medplum/react 4.4.0 → 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.
@@ -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 { PlanDefinition } from '@medplum/fhirtypes';
52
- import { ProfileResource } from '@medplum/core';
53
- import { Quantity } from '@medplum/fhirtypes';
54
- import { QueryTypes } from '@medplum/core';
55
- import { Questionnaire } from '@medplum/fhirtypes';
56
- import { QuestionnaireItem } from '@medplum/fhirtypes';
57
- import { QuestionnaireItemAnswerOption } from '@medplum/fhirtypes';
58
- import { QuestionnaireItemEnableWhen } from '@medplum/fhirtypes';
59
- import { QuestionnaireItemInitial } from '@medplum/fhirtypes';
60
- import { QuestionnaireResponse } from '@medplum/fhirtypes';
61
- import { QuestionnaireResponseItem } from '@medplum/fhirtypes';
62
- import { QuestionnaireResponseItemAnswer } from '@medplum/fhirtypes';
63
- import { Range as Range_2 } from '@medplum/fhirtypes';
64
- import { Ratio } from '@medplum/fhirtypes';
65
- import { ReactNode } from 'react';
66
- import { Reference } from '@medplum/fhirtypes';
67
- import { RequestGroup } from '@medplum/fhirtypes';
68
- import { Resource } from '@medplum/fhirtypes';
69
- import { ResourceArray } from '@medplum/core';
70
- import { ResourceType } from '@medplum/fhirtypes';
71
- import { Schedule } from '@medplum/fhirtypes';
72
- import { SearchParameter } from '@medplum/fhirtypes';
73
- import { SearchRequest } from '@medplum/core';
74
- import { ServiceRequest } from '@medplum/fhirtypes';
75
- import { Signature } from '@medplum/fhirtypes';
76
- import { Slot } from '@medplum/fhirtypes';
77
- import { StructureDefinition } from '@medplum/fhirtypes';
78
- import { Subscription } from '@medplum/fhirtypes';
79
- import { SyntheticEvent } from 'react';
80
- import { Task } from '@medplum/fhirtypes';
81
- import { TextProps } from '@mantine/core';
82
- import { Timing } from '@medplum/fhirtypes';
83
- import { TypedValue } from '@medplum/core';
84
- import { ValueSetExpandParams } from '@medplum/core';
85
- import { ValueSetExpansionContains } from '@medplum/fhirtypes';
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 {