@medplum/react 5.0.11 → 5.0.13

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.
@@ -86,6 +86,7 @@ import type { Timing } from '@medplum/fhirtypes';
86
86
  import type { TypedValue } from '@medplum/core';
87
87
  import type { ValueSetExpandParams } from '@medplum/core';
88
88
  import type { ValueSetExpansionContains } from '@medplum/fhirtypes';
89
+ import type { WithId } from '@medplum/core';
89
90
 
90
91
  /**
91
92
  * Adds a filter for a date between two dates (inclusive of both dates).
@@ -218,6 +219,7 @@ export declare interface AppShellProps {
218
219
  readonly resourceTypeSearchDisabled?: boolean;
219
220
  readonly notifications?: ReactNode;
220
221
  readonly layoutVersion?: 'v1' | 'v2';
222
+ readonly showLayoutVersionToggle?: boolean;
221
223
  readonly spotlightPatientsOnly?: boolean;
222
224
  }
223
225
 
@@ -997,6 +999,7 @@ export declare interface NavbarProps {
997
999
  readonly resourceTypeSearchDisabled?: boolean;
998
1000
  readonly opened?: boolean;
999
1001
  readonly version?: string;
1002
+ readonly showLayoutVersionToggle?: boolean;
1000
1003
  }
1001
1004
 
1002
1005
  export declare function NoteDisplay({ value }: NoteDisplayProps): JSX.Element | null;
@@ -1866,7 +1869,7 @@ export declare interface UseQuestionnaireFormProps {
1866
1869
  * @param setOutcome - Optional callback to set the OperationOutcome.
1867
1870
  * @returns The resolved resource.
1868
1871
  */
1869
- export declare function useResource<T extends Resource>(value: Reference<T> | Partial<T> | undefined, setOutcome?: (outcome: OperationOutcome) => void): T | undefined;
1872
+ export declare function useResource<T extends Resource>(value: Reference<T> | Partial<T> | undefined, setOutcome?: (outcome: OperationOutcome) => void): WithId<T> | undefined;
1870
1873
 
1871
1874
  /**
1872
1875
  * React hook for searching FHIR resources.
@@ -86,6 +86,7 @@ import type { Timing } from '@medplum/fhirtypes';
86
86
  import type { TypedValue } from '@medplum/core';
87
87
  import type { ValueSetExpandParams } from '@medplum/core';
88
88
  import type { ValueSetExpansionContains } from '@medplum/fhirtypes';
89
+ import type { WithId } from '@medplum/core';
89
90
 
90
91
  /**
91
92
  * Adds a filter for a date between two dates (inclusive of both dates).
@@ -218,6 +219,7 @@ export declare interface AppShellProps {
218
219
  readonly resourceTypeSearchDisabled?: boolean;
219
220
  readonly notifications?: ReactNode;
220
221
  readonly layoutVersion?: 'v1' | 'v2';
222
+ readonly showLayoutVersionToggle?: boolean;
221
223
  readonly spotlightPatientsOnly?: boolean;
222
224
  }
223
225
 
@@ -997,6 +999,7 @@ export declare interface NavbarProps {
997
999
  readonly resourceTypeSearchDisabled?: boolean;
998
1000
  readonly opened?: boolean;
999
1001
  readonly version?: string;
1002
+ readonly showLayoutVersionToggle?: boolean;
1000
1003
  }
1001
1004
 
1002
1005
  export declare function NoteDisplay({ value }: NoteDisplayProps): JSX.Element | null;
@@ -1866,7 +1869,7 @@ export declare interface UseQuestionnaireFormProps {
1866
1869
  * @param setOutcome - Optional callback to set the OperationOutcome.
1867
1870
  * @returns The resolved resource.
1868
1871
  */
1869
- export declare function useResource<T extends Resource>(value: Reference<T> | Partial<T> | undefined, setOutcome?: (outcome: OperationOutcome) => void): T | undefined;
1872
+ export declare function useResource<T extends Resource>(value: Reference<T> | Partial<T> | undefined, setOutcome?: (outcome: OperationOutcome) => void): WithId<T> | undefined;
1870
1873
 
1871
1874
  /**
1872
1875
  * React hook for searching FHIR resources.