@medplum/react 3.2.11 → 3.2.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.
@@ -1192,6 +1192,8 @@ export declare interface ResourceInputProps<T extends Resource = Resource> {
1192
1192
  readonly itemComponent?: (props: AsyncAutocompleteOption<T>) => JSX.Element | ReactNode;
1193
1193
  readonly onChange?: (value: T | undefined) => void;
1194
1194
  readonly disabled?: boolean;
1195
+ readonly label?: AsyncAutocompleteProps<T>['label'];
1196
+ readonly error?: AsyncAutocompleteProps<T>['error'];
1195
1197
  }
1196
1198
 
1197
1199
  export declare function ResourceName(props: ResourceNameProps): JSX.Element | null;
@@ -1616,7 +1618,7 @@ export declare function useSearchResources<K extends ResourceType>(resourceType:
1616
1618
  * - `onSubscriptionDisconnect` - Called when the corresponding subscription is destroyed and stops receiving updates from the server.
1617
1619
  * - `onError` - Called whenever an error occurs during the lifecycle of the managed subscription.
1618
1620
  */
1619
- export declare function useSubscription(criteria: string, callback: (bundle: Bundle) => void, options?: UseSubscriptionOptions): void;
1621
+ export declare function useSubscription(criteria: string | undefined, callback: (bundle: Bundle) => void, options?: UseSubscriptionOptions): void;
1620
1622
 
1621
1623
  export declare type UseSubscriptionOptions = {
1622
1624
  subscriptionProps?: Partial<Subscription>;
@@ -1192,6 +1192,8 @@ export declare interface ResourceInputProps<T extends Resource = Resource> {
1192
1192
  readonly itemComponent?: (props: AsyncAutocompleteOption<T>) => JSX.Element | ReactNode;
1193
1193
  readonly onChange?: (value: T | undefined) => void;
1194
1194
  readonly disabled?: boolean;
1195
+ readonly label?: AsyncAutocompleteProps<T>['label'];
1196
+ readonly error?: AsyncAutocompleteProps<T>['error'];
1195
1197
  }
1196
1198
 
1197
1199
  export declare function ResourceName(props: ResourceNameProps): JSX.Element | null;
@@ -1616,7 +1618,7 @@ export declare function useSearchResources<K extends ResourceType>(resourceType:
1616
1618
  * - `onSubscriptionDisconnect` - Called when the corresponding subscription is destroyed and stops receiving updates from the server.
1617
1619
  * - `onError` - Called whenever an error occurs during the lifecycle of the managed subscription.
1618
1620
  */
1619
- export declare function useSubscription(criteria: string, callback: (bundle: Bundle) => void, options?: UseSubscriptionOptions): void;
1621
+ export declare function useSubscription(criteria: string | undefined, callback: (bundle: Bundle) => void, options?: UseSubscriptionOptions): void;
1620
1622
 
1621
1623
  export declare type UseSubscriptionOptions = {
1622
1624
  subscriptionProps?: Partial<Subscription>;