@medplum/react 2.0.21 → 2.0.22

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.
Files changed (138) hide show
  1. package/dist/cjs/index.cjs +171 -126
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/cjs/index.min.cjs +1 -1
  4. package/dist/esm/AttachmentButton/AttachmentButton.mjs +1 -2
  5. package/dist/esm/AttachmentButton/AttachmentButton.mjs.map +1 -1
  6. package/dist/esm/DateTimeInput/DateTimeInput.mjs +1 -0
  7. package/dist/esm/DateTimeInput/DateTimeInput.mjs.map +1 -1
  8. package/dist/esm/FhirPathTable/FhirPathTable.mjs +2 -0
  9. package/dist/esm/FhirPathTable/FhirPathTable.mjs.map +1 -1
  10. package/dist/esm/Form/FormUtils.mjs +2 -1
  11. package/dist/esm/Form/FormUtils.mjs.map +1 -1
  12. package/dist/esm/GoogleButton/GoogleButton.mjs +2 -2
  13. package/dist/esm/GoogleButton/GoogleButton.mjs.map +1 -1
  14. package/dist/esm/MedplumProvider/MedplumProvider.mjs +4 -0
  15. package/dist/esm/MedplumProvider/MedplumProvider.mjs.map +1 -1
  16. package/dist/esm/PlanDefinitionBuilder/PlanDefinitionBuilder.mjs +2 -1
  17. package/dist/esm/PlanDefinitionBuilder/PlanDefinitionBuilder.mjs.map +1 -1
  18. package/dist/esm/QuestionnaireBuilder/QuestionnaireBuilder.mjs +3 -2
  19. package/dist/esm/QuestionnaireBuilder/QuestionnaireBuilder.mjs.map +1 -1
  20. package/dist/esm/ReferenceRangeEditor/ReferenceRangeEditor.mjs +13 -5
  21. package/dist/esm/ReferenceRangeEditor/ReferenceRangeEditor.mjs.map +1 -1
  22. package/dist/esm/ResourceName/ResourceName.mjs +0 -5
  23. package/dist/esm/ResourceName/ResourceName.mjs.map +1 -1
  24. package/dist/esm/ResourcePropertyDisplay/ResourcePropertyDisplay.mjs +6 -3
  25. package/dist/esm/ResourcePropertyDisplay/ResourcePropertyDisplay.mjs.map +1 -1
  26. package/dist/esm/SearchControl/SearchControl.mjs +2 -1
  27. package/dist/esm/SearchControl/SearchControl.mjs.map +1 -1
  28. package/dist/esm/SearchControl/SearchUtils.mjs +77 -54
  29. package/dist/esm/SearchControl/SearchUtils.mjs.map +1 -1
  30. package/dist/esm/SearchFieldEditor/SearchFieldEditor.mjs +6 -7
  31. package/dist/esm/SearchFieldEditor/SearchFieldEditor.mjs.map +1 -1
  32. package/dist/esm/ValueSetAutocomplete/ValueSetAutocomplete.mjs +3 -0
  33. package/dist/esm/ValueSetAutocomplete/ValueSetAutocomplete.mjs.map +1 -1
  34. package/dist/esm/auth/SignInForm.mjs +2 -0
  35. package/dist/esm/auth/SignInForm.mjs.map +1 -1
  36. package/dist/esm/index.min.mjs +1 -1
  37. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs +1 -1
  38. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs.map +1 -1
  39. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs +1 -1
  40. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs.map +1 -1
  41. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAdjustmentsHorizontal.mjs +1 -1
  42. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAdjustmentsHorizontal.mjs.map +1 -1
  43. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs +1 -1
  44. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs.map +1 -1
  45. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleach.mjs +1 -1
  46. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleach.mjs.map +1 -1
  47. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleachOff.mjs +1 -1
  48. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleachOff.mjs.map +1 -1
  49. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.mjs +1 -1
  50. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.mjs.map +1 -1
  51. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBracketsContain.mjs +1 -1
  52. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBracketsContain.mjs.map +1 -1
  53. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucket.mjs +1 -1
  54. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucket.mjs.map +1 -1
  55. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucketOff.mjs +1 -1
  56. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucketOff.mjs.map +1 -1
  57. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendar.mjs +1 -1
  58. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendar.mjs.map +1 -1
  59. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs +1 -1
  60. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs.map +1 -1
  61. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.mjs +1 -1
  62. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.mjs.map +1 -1
  63. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs +1 -1
  64. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconChevronDown.mjs.map +1 -1
  65. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleMinus.mjs +1 -1
  66. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleMinus.mjs.map +1 -1
  67. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.mjs +1 -1
  68. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.mjs.map +1 -1
  69. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCloudUpload.mjs +1 -1
  70. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCloudUpload.mjs.map +1 -1
  71. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconColumns.mjs +1 -1
  72. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconColumns.mjs.map +1 -1
  73. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCurrencyDollar.mjs +1 -1
  74. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCurrencyDollar.mjs.map +1 -1
  75. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs +1 -1
  76. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs.map +1 -1
  77. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs +1 -1
  78. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs.map +1 -1
  79. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqual.mjs +1 -1
  80. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqual.mjs.map +1 -1
  81. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqualNot.mjs +1 -1
  82. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqualNot.mjs.map +1 -1
  83. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFileAlert.mjs +1 -1
  84. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFileAlert.mjs.map +1 -1
  85. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilePlus.mjs +1 -1
  86. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilePlus.mjs.map +1 -1
  87. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilter.mjs +1 -1
  88. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilter.mjs.map +1 -1
  89. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconListDetails.mjs +1 -1
  90. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconListDetails.mjs.map +1 -1
  91. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconLogout.mjs +1 -1
  92. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconLogout.mjs.map +1 -1
  93. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathGreater.mjs +1 -1
  94. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathGreater.mjs.map +1 -1
  95. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathLower.mjs +1 -1
  96. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathLower.mjs.map +1 -1
  97. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMessage.mjs +1 -1
  98. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMessage.mjs.map +1 -1
  99. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPin.mjs +1 -1
  100. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPin.mjs.map +1 -1
  101. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPinnedOff.mjs +1 -1
  102. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPinnedOff.mjs.map +1 -1
  103. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.mjs +1 -1
  104. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPlus.mjs.map +1 -1
  105. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs +1 -1
  106. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSearch.mjs.map +1 -1
  107. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.mjs +1 -1
  108. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.mjs.map +1 -1
  109. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortAscending.mjs +1 -1
  110. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortAscending.mjs.map +1 -1
  111. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortDescending.mjs +1 -1
  112. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortDescending.mjs.map +1 -1
  113. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSquare.mjs +1 -1
  114. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSquare.mjs.map +1 -1
  115. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSwitchHorizontal.mjs +1 -1
  116. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSwitchHorizontal.mjs.map +1 -1
  117. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTableExport.mjs +1 -1
  118. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTableExport.mjs.map +1 -1
  119. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs +1 -1
  120. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs.map +1 -1
  121. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs +1 -1
  122. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs.map +1 -1
  123. package/dist/esm/useResource/useResource.mjs +1 -0
  124. package/dist/esm/useResource/useResource.mjs.map +1 -1
  125. package/dist/esm/utils/script.mjs +1 -0
  126. package/dist/esm/utils/script.mjs.map +1 -1
  127. package/dist/types/FhirPathTable/FhirPathTable.d.ts +2 -0
  128. package/dist/types/Form/FormUtils.d.ts +1 -0
  129. package/dist/types/MedplumProvider/MedplumProvider.d.ts +4 -0
  130. package/dist/types/ResourceName/ResourceName.d.ts +0 -5
  131. package/dist/types/ResourcePropertyDisplay/ResourcePropertyDisplay.d.ts +4 -2
  132. package/dist/types/SearchControl/SearchControl.d.ts +2 -0
  133. package/dist/types/SearchControl/SearchUtils.d.ts +64 -44
  134. package/dist/types/ValueSetAutocomplete/ValueSetAutocomplete.d.ts +3 -0
  135. package/dist/types/auth/SignInForm.d.ts +2 -0
  136. package/dist/types/useResource/useResource.d.ts +1 -0
  137. package/dist/types/utils/script.d.ts +1 -0
  138. package/package.json +12 -12
@@ -4,123 +4,144 @@ import { Resource, SearchParameter } from '@medplum/fhirtypes';
4
4
  import { SearchControlField } from './SearchControlField';
5
5
  /**
6
6
  * Sets the array of filters.
7
- *
8
- * @param {Array} filters The new filters.
7
+ * @param definition The original search request.
8
+ * @param filters The new filters.
9
+ * @returns The updated search request.
9
10
  */
10
11
  export declare function setFilters(definition: SearchRequest, filters: Filter[]): SearchRequest;
11
12
  /**
12
13
  * Clears all of the filters.
14
+ * @param definition The original search request.
15
+ * @returns The updated search request.
13
16
  */
14
17
  export declare function clearFilters(definition: SearchRequest): SearchRequest;
15
18
  /**
16
19
  * Clears all of the filters on a certain field.
17
- *
18
- * @param {string} code The field key name to clear filters.
20
+ * @param definition The original search request.
21
+ * @param code The field key name to clear filters.
22
+ * @returns The updated search request.
19
23
  */
20
24
  export declare function clearFiltersOnField(definition: SearchRequest, code: string): SearchRequest;
21
25
  /**
22
26
  * Adds a filter.
23
- *
24
- * @param {string} field The field key name.
25
- * @param {Operator} op The operation key name.
26
- * @param {?string} value The filter value.
27
- * @param {boolean=} opt_clear Optional flag to clear filters on the field.
27
+ * @param definition The original search request.
28
+ * @param field The field key name.
29
+ * @param op The operation key name.
30
+ * @param value The filter value.
31
+ * @param opt_clear Optional flag to clear filters on the field.
32
+ * @returns The updated search request.
28
33
  */
29
34
  export declare function addFilter(definition: SearchRequest, field: string, op: Operator, value?: string, opt_clear?: boolean): SearchRequest;
30
35
  /**
31
36
  * Adds a field.
32
- *
33
- * @param {string} field The field key name.
37
+ * @param definition The original search request.
38
+ * @param field The field key name.
39
+ * @returns The updated search request.
34
40
  */
35
41
  export declare function addField(definition: SearchRequest, field: string): SearchRequest;
36
42
  /**
37
43
  * Deletes a filter at the specified index.
38
- *
39
- * @param {number} index The filter index.
44
+ * @param definition The original search request.
45
+ * @param index The filter index.
46
+ * @returns The updated search request.
40
47
  */
41
48
  export declare function deleteFilter(definition: SearchRequest, index: number): SearchRequest;
42
49
  /**
43
50
  * Adds a filter that constrains the specified field to "yesterday".
44
- *
45
- * @param {string} field The field key name.
51
+ * @param definition The original search request.
52
+ * @param field The field key name.
53
+ * @returns The updated search request.
46
54
  */
47
55
  export declare function addYesterdayFilter(definition: SearchRequest, field: string): SearchRequest;
48
56
  /**
49
57
  * Adds a filter that constrains the specified field to "today".
50
- *
51
- * @param {string} field The field key name.
58
+ * @param definition The original search request.
59
+ * @param field The field key name.
60
+ * @returns The updated search request.
52
61
  */
53
62
  export declare function addTodayFilter(definition: SearchRequest, field: string): SearchRequest;
54
63
  /**
55
64
  * Adds a filter that constrains the specified field to "tomorrow".
56
- *
57
- * @param {string} field The field key name.
65
+ * @param definition The original search request.
66
+ * @param field The field key name.
67
+ * @returns The updated search request.
58
68
  */
59
69
  export declare function addTomorrowFilter(definition: SearchRequest, field: string): SearchRequest;
60
70
  /**
61
71
  * Adds a filter that constrains the specified field to "last month".
62
- *
63
- * @param {string} field The field key name.
72
+ * @param definition The original search request.
73
+ * @param field The field key name.
74
+ * @returns The updated search request.
64
75
  */
65
76
  export declare function addLastMonthFilter(definition: SearchRequest, field: string): SearchRequest;
66
77
  /**
67
78
  * Adds a filter that constrains the specified field to "this month".
68
- *
69
- * @param {string} field The field key name.
79
+ * @param definition The original search request.
80
+ * @param field The field key name.
81
+ * @returns The updated search request.
70
82
  */
71
83
  export declare function addThisMonthFilter(definition: SearchRequest, field: string): SearchRequest;
72
84
  /**
73
85
  * Adds a filter that constrains the specified field to "next month".
74
- *
75
- * @param {string} field The field key name.
86
+ * @param definition The original search request.
87
+ * @param field The field key name.
88
+ * @returns The updated search request.
76
89
  */
77
90
  export declare function addNextMonthFilter(definition: SearchRequest, field: string): SearchRequest;
78
91
  /**
79
92
  * Adds a filter that constrains the specified field to the year to date.
80
- *
81
- * @param {string} field The field key name.
93
+ * @param definition The original search request.
94
+ * @param field The field key name.
95
+ * @returns The updated search request.
82
96
  */
83
97
  export declare function addYearToDateFilter(definition: SearchRequest, field: string): SearchRequest;
84
98
  /**
85
99
  * Adds a filter for a date between two dates (inclusive of both dates).
86
- *
87
- * @param {string} field The field key name.
88
- * @param {Date} d1 The start date.
89
- * @param {Date} d2 The end date.
100
+ * @param definition The original search request.
101
+ * @param field The field key name.
102
+ * @param d1 The start date.
103
+ * @param d2 The end date.
104
+ * @returns The updated search request.
90
105
  */
91
106
  export declare function addDateFilterBetween(definition: SearchRequest, field: string, d1: Date, d2: Date): SearchRequest;
92
107
  /**
93
108
  * Adds a filter that constrains the specified field to "missing".
94
- *
95
- * @param {string} field The field key name.
109
+ * @param definition The original search request.
110
+ * @param field The field key name.
111
+ * @param value Optional boolean value. Default is true.
112
+ * @returns The updated search request.
96
113
  */
97
114
  export declare function addMissingFilter(definition: SearchRequest, field: string, value?: boolean): SearchRequest;
98
115
  /**
99
116
  * Sets the offset (starting at zero).
100
- *
101
- * @param {number} offset The offset number.
117
+ * @param definition The original search request.
118
+ * @param offset The offset number.
119
+ * @returns The updated search request.
102
120
  */
103
121
  export declare function setOffset(definition: SearchRequest, offset: number): SearchRequest;
104
122
  /**
105
123
  * Creates a new search request with the search offset at the specified page.
106
124
  * @param definition The search definition.
107
125
  * @param page The new page number
108
- * @return The new search definition.
126
+ * @returns The new search definition.
109
127
  */
110
128
  export declare function setPage(definition: SearchRequest, page: number): SearchRequest;
111
129
  /**
112
130
  * Sorts the search by the specified key, and optional direction.
113
131
  * Direction defaults to ascending ('asc') if not specified.
114
- *
115
- * @param {string} sortField The sort key.
132
+ * @param definition The original search request.
133
+ * @param sort The sort key.
134
+ * @param desc Optional descending flag. Default is false.
135
+ * @returns The updated search request.
116
136
  */
117
137
  export declare function setSort(definition: SearchRequest, sort: string, desc?: boolean): SearchRequest;
118
138
  /**
119
139
  * Toggles the sort of the search by key.
120
140
  * If the search is already sorted by the key, reverses the direction.
121
141
  * If the search is not sorted by the key, sort in ascending order.
122
- *
123
- * @param {string} key The field key name.
142
+ * @param definition The original search request.
143
+ * @param key The field key name.
144
+ * @returns The updated search request.
124
145
  */
125
146
  export declare function toggleSort(definition: SearchRequest, key: string): SearchRequest;
126
147
  export declare function getSortField(definition: SearchRequest): string | undefined;
@@ -133,9 +154,8 @@ export declare function isSortDescending(definition: SearchRequest): boolean;
133
154
  export declare function getSearchOperators(searchParam: SearchParameter): Operator[] | undefined;
134
155
  /**
135
156
  * Returns a string representing the operation.
136
- *
137
- * @param {string} op The operation code.
138
- * @return {string} A display string for the operation.
157
+ * @param op The operation code.
158
+ * @returns A display string for the operation.
139
159
  */
140
160
  export declare function getOpString(op: Operator): string;
141
161
  /**
@@ -147,7 +167,7 @@ export declare function buildFieldNameString(key: string): string;
147
167
  /**
148
168
  * Returns a fragment to be displayed in the search table for the value.
149
169
  * @param resource The parent resource.
150
- * @param key The search code or FHIRPath expression.
170
+ * @param field The search code or FHIRPath expression.
151
171
  * @returns The fragment to display.
152
172
  */
153
173
  export declare function renderValue(resource: Resource, field: SearchControlField): string | JSX.Element | null | undefined;
@@ -8,5 +8,8 @@ export interface ValueSetAutocompleteProps extends Omit<AsyncAutocompleteProps<V
8
8
  }
9
9
  /**
10
10
  * A low-level component to autocomplete based on a FHIR Valueset.
11
+ * This is the base component for CodeableConceptInput, CodingInput, and CodeInput.
12
+ * @param props The ValueSetAutocomplete React props.
13
+ * @returns The ValueSetAutocomplete React node.
11
14
  */
12
15
  export declare function ValueSetAutocomplete(props: ValueSetAutocompleteProps): JSX.Element;
@@ -19,5 +19,7 @@ export interface SignInFormProps extends BaseLoginRequest {
19
19
  * 3) Choose profile - If the user has multiple profiles, prompt to choose one
20
20
  * 4) Choose scope - If the user has multiple scopes, prompt to choose one
21
21
  * 5) Success - Return to the caller with either a code or a redirect
22
+ * @param props The SignInForm React props.
23
+ * @returns The SignInForm React node.
22
24
  */
23
25
  export declare function SignInForm(props: SignInFormProps): JSX.Element;
@@ -3,6 +3,7 @@ import { OperationOutcome, Reference, Resource } from '@medplum/fhirtypes';
3
3
  * React Hook to use a FHIR reference.
4
4
  * Handles the complexity of resolving references and caching resources.
5
5
  * @param value The resource or reference to resource.
6
+ * @param setOutcome Optional callback to set the OperationOutcome.
6
7
  * @returns The resolved resource.
7
8
  */
8
9
  export declare function useResource<T extends Resource>(value: Reference<T> | T | undefined, setOutcome?: (outcome: OperationOutcome) => void): T | undefined;
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Dynamically creates a script tag for the specified JavaScript file.
3
3
  * @param src The JavaScript file URL.
4
+ * @param onload Optional callback for the onload event.
4
5
  */
5
6
  export declare function createScriptTag(src: string, onload?: () => void): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/react",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "Medplum React Component Library",
5
5
  "author": "Medplum <hello@medplum.com>",
6
6
  "license": "Apache-2.0",
@@ -26,19 +26,19 @@
26
26
  "@medplum/definitions": "*",
27
27
  "@medplum/fhirtypes": "*",
28
28
  "@medplum/mock": "*",
29
- "@storybook/addon-actions": "7.0.12",
30
- "@storybook/addon-essentials": "7.0.12",
31
- "@storybook/addon-links": "7.0.12",
32
- "@storybook/react": "7.0.12",
33
- "@storybook/react-webpack5": "7.0.12",
29
+ "@storybook/addon-actions": "7.0.18",
30
+ "@storybook/addon-essentials": "7.0.18",
31
+ "@storybook/addon-links": "7.0.18",
32
+ "@storybook/react": "7.0.18",
33
+ "@storybook/react-webpack5": "7.0.18",
34
34
  "@svgr/rollup": "8.0.1",
35
- "@tabler/icons-react": "2.19.0",
35
+ "@tabler/icons-react": "2.22.0",
36
36
  "@testing-library/dom": "9.3.0",
37
37
  "@testing-library/jest-dom": "5.16.5",
38
38
  "@testing-library/react": "14.0.0",
39
- "@types/jest": "29.5.1",
40
- "@types/node": "20.2.1",
41
- "@types/react": "18.2.6",
39
+ "@types/jest": "29.5.2",
40
+ "@types/node": "20.2.5",
41
+ "@types/react": "18.2.8",
42
42
  "@types/react-dom": "18.2.4",
43
43
  "dotenv-webpack": "8.0.1",
44
44
  "html-webpack-plugin": "5.5.1",
@@ -48,8 +48,8 @@
48
48
  "react": "18.2.0",
49
49
  "react-dom": "18.2.0",
50
50
  "rimraf": "5.0.1",
51
- "storybook": "7.0.12",
52
- "typescript": "5.0.4"
51
+ "storybook": "7.0.18",
52
+ "typescript": "5.1.3"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@emotion/react": "^11.10.4",