@medplum/react 2.1.13 → 2.1.15

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/types.d.ts CHANGED
@@ -9,12 +9,12 @@ import { Bundle } from '@medplum/fhirtypes';
9
9
  import { CodeableConcept } from '@medplum/fhirtypes';
10
10
  import { Coding } from '@medplum/fhirtypes';
11
11
  import { Communication } from '@medplum/fhirtypes';
12
+ import { Component } from 'react';
12
13
  import { ContactDetail } from '@medplum/fhirtypes';
13
14
  import { ContactPoint } from '@medplum/fhirtypes';
14
15
  import { ContainerProps } from '@mantine/core';
15
16
  import { Context } from 'react';
16
17
  import { CSSProperties } from 'react';
17
- import { default as default_2 } from 'react';
18
18
  import { DiagnosticReport } from '@medplum/fhirtypes';
19
19
  import { ElementDefinitionType } from '@medplum/fhirtypes';
20
20
  import { Encounter } from '@medplum/fhirtypes';
@@ -28,7 +28,10 @@ import { InternalSchemaElement } from '@medplum/core';
28
28
  import { MeasureReport } from '@medplum/fhirtypes';
29
29
  import { Media } from '@medplum/fhirtypes';
30
30
  import { MedplumClient } from '@medplum/core';
31
+ import { MemoExoticComponent } from 'react';
31
32
  import { Money } from '@medplum/fhirtypes';
33
+ import { MouseEvent as MouseEvent_2 } from 'react';
34
+ import { MouseEventHandler } from 'react';
32
35
  import { MultiSelectProps } from '@mantine/core';
33
36
  import { Observation } from '@medplum/fhirtypes';
34
37
  import { ObservationDefinition } from '@medplum/fhirtypes';
@@ -48,7 +51,6 @@ import { QuestionnaireResponse } from '@medplum/fhirtypes';
48
51
  import { QuestionnaireResponseItem } from '@medplum/fhirtypes';
49
52
  import { QuestionnaireResponseItemAnswer } from '@medplum/fhirtypes';
50
53
  import { Range as Range_2 } from '@medplum/fhirtypes';
51
- import { default as React_2 } from 'react';
52
54
  import { ReactNode } from 'react';
53
55
  import { Reference } from '@medplum/fhirtypes';
54
56
  import { RequestGroup } from '@medplum/fhirtypes';
@@ -186,13 +188,13 @@ export declare interface AnnotationInputProps {
186
188
  export declare function AppShell(props: AppShellProps): JSX.Element;
187
189
 
188
190
  export declare interface AppShellProps {
189
- logo: React_2.ReactNode;
191
+ logo: ReactNode;
190
192
  pathname?: string;
191
193
  searchParams?: URLSearchParams;
192
194
  headerSearchDisabled?: boolean;
193
195
  version?: string;
194
196
  menus?: NavbarMenu[];
195
- children: React_2.ReactNode;
197
+ children: ReactNode;
196
198
  displayAddBookmark?: boolean;
197
199
  resourceTypeSearchDisabled?: boolean;
198
200
  }
@@ -237,8 +239,8 @@ export declare interface AttachmentButtonProps {
237
239
  onUploadProgress?: (e: ProgressEvent) => void;
238
240
  onUploadError?: (outcome: OperationOutcome) => void;
239
241
  children(props: {
240
- onClick(e: React_2.MouseEvent): void;
241
- }): React_2.ReactNode;
242
+ onClick(e: MouseEvent_2): void;
243
+ }): ReactNode;
242
244
  }
243
245
 
244
246
  export declare function AttachmentDisplay(props: AttachmentDisplayProps): JSX.Element | null;
@@ -301,7 +303,7 @@ export declare interface CheckboxFormSectionProps {
301
303
  title?: string;
302
304
  description?: string;
303
305
  withAsterisk?: boolean;
304
- children?: React_2.ReactNode;
306
+ children?: ReactNode;
305
307
  }
306
308
 
307
309
  /**
@@ -456,11 +458,11 @@ export declare function DescriptionListEntry(props: DescriptionListEntryProps):
456
458
 
457
459
  export declare interface DescriptionListEntryProps {
458
460
  term: string;
459
- children: React_2.ReactNode;
461
+ children: ReactNode;
460
462
  }
461
463
 
462
464
  export declare interface DescriptionListProps {
463
- children: React_2.ReactNode;
465
+ children: ReactNode;
464
466
  compact?: boolean;
465
467
  }
466
468
 
@@ -501,7 +503,7 @@ export declare interface EncounterTimelineProps {
501
503
  * ErrorBoundary is a React component that handles errors in its child components.
502
504
  * See: https://reactjs.org/docs/error-boundaries.html
503
505
  */
504
- export declare class ErrorBoundary extends React_2.Component<ErrorBoundaryProps, ErrorBoundaryState> {
506
+ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
505
507
  state: ErrorBoundaryState;
506
508
  constructor(props: ErrorBoundaryProps);
507
509
  static getDerivedStateFromError(error: any): ErrorBoundaryState;
@@ -547,7 +549,7 @@ export declare function formatReferenceString(typedValue: TypedValue): string;
547
549
  export declare interface FormProps {
548
550
  onSubmit?: (formData: Record<string, string>) => void;
549
551
  style?: CSSProperties;
550
- children?: React_2.ReactNode;
552
+ children?: ReactNode;
551
553
  testid?: string;
552
554
  }
553
555
 
@@ -559,7 +561,7 @@ export declare interface FormSectionProps {
559
561
  description?: string;
560
562
  withAsterisk?: boolean;
561
563
  outcome?: OperationOutcome;
562
- children?: React_2.ReactNode;
564
+ children?: ReactNode;
563
565
  }
564
566
 
565
567
  export declare function getErrorsForInput(outcome: OperationOutcome | undefined, expression: string | undefined): string | undefined;
@@ -620,7 +622,7 @@ export declare interface HeaderProps {
620
622
  pathname?: string;
621
623
  searchParams?: URLSearchParams;
622
624
  headerSearchDisabled?: boolean;
623
- logo: React_2.ReactNode;
625
+ logo: ReactNode;
624
626
  version?: string;
625
627
  navbarToggle: () => void;
626
628
  }
@@ -701,8 +703,8 @@ export declare interface MedplumLinkProps extends TextProps {
701
703
  to?: Resource | Reference | string;
702
704
  suffix?: string;
703
705
  label?: string;
704
- onClick?: React_2.MouseEventHandler;
705
- children: React_2.ReactNode;
706
+ onClick?: MouseEventHandler;
707
+ children: ReactNode;
706
708
  }
707
709
 
708
710
  /**
@@ -719,12 +721,12 @@ export declare function MedplumProvider(props: MedplumProviderProps): JSX.Elemen
719
721
  export declare interface MedplumProviderProps {
720
722
  medplum: MedplumClient;
721
723
  navigate?: MepdlumNavigateFunction;
722
- children: default_2.ReactNode;
724
+ children: ReactNode;
723
725
  }
724
726
 
725
- export declare const MemoizedFhirPathTable: React_2.MemoExoticComponent<typeof FhirPathTable>;
727
+ export declare const MemoizedFhirPathTable: MemoExoticComponent<typeof FhirPathTable>;
726
728
 
727
- export declare const MemoizedSearchControl: React_2.MemoExoticComponent<typeof SearchControl>;
729
+ export declare const MemoizedSearchControl: MemoExoticComponent<typeof SearchControl>;
728
730
 
729
731
  export declare type MepdlumNavigateFunction = (path: string) => void;
730
732
 
@@ -937,7 +939,7 @@ export declare interface RegisterFormProps {
937
939
  readonly clientId?: string;
938
940
  readonly googleClientId?: string;
939
941
  readonly recaptchaSiteKey?: string;
940
- readonly children?: React_2.ReactNode;
942
+ readonly children?: ReactNode;
941
943
  readonly onSuccess: () => void;
942
944
  }
943
945
 
@@ -1115,8 +1117,8 @@ export declare class SearchChangeEvent extends Event {
1115
1117
 
1116
1118
  export declare class SearchClickEvent extends Event {
1117
1119
  readonly resource: Resource;
1118
- readonly browserEvent: React_2.MouseEvent;
1119
- constructor(resource: Resource, browserEvent: React_2.MouseEvent);
1120
+ readonly browserEvent: MouseEvent_2;
1121
+ constructor(resource: Resource, browserEvent: MouseEvent_2);
1120
1122
  }
1121
1123
 
1122
1124
  /**
@@ -1268,7 +1270,7 @@ export declare interface SignInFormProps extends BaseLoginRequest {
1268
1270
  readonly onForgotPassword?: () => void;
1269
1271
  readonly onRegister?: () => void;
1270
1272
  readonly onCode?: (code: string) => void;
1271
- readonly children?: React_2.ReactNode;
1273
+ readonly children?: ReactNode;
1272
1274
  }
1273
1275
 
1274
1276
  export declare interface SmartSearchResponse {
@@ -1299,11 +1301,11 @@ export declare interface TimelineItemProps extends PanelProps {
1299
1301
  profile?: Reference;
1300
1302
  dateTime?: string;
1301
1303
  padding?: boolean;
1302
- popupMenuItems?: React_2.ReactNode;
1304
+ popupMenuItems?: ReactNode;
1303
1305
  }
1304
1306
 
1305
1307
  export declare interface TimelineProps {
1306
- children?: React_2.ReactNode;
1308
+ children?: ReactNode;
1307
1309
  }
1308
1310
 
1309
1311
  export declare function TimingInput(props: TimingInputProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/react",
3
- "version": "2.1.13",
3
+ "version": "2.1.15",
4
4
  "description": "Medplum React Component Library",
5
5
  "keywords": [
6
6
  "medplum",