@uniformdev/mesh-sdk-react 16.0.1-alpha.221 → 16.1.1-alpha.145
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/index.d.ts +9 -3
- package/dist/index.esm.js +136 -136
- package/dist/index.js +128 -128
- package/dist/index.mjs +136 -136
- package/package.json +11 -11
package/dist/index.d.ts
CHANGED
|
@@ -107,6 +107,10 @@ declare type EntrySearchProps<TResult extends EntrySearchResult = EntrySearchRes
|
|
|
107
107
|
onSort?: (items: TResult[]) => void;
|
|
108
108
|
typeSelectorLabel?: string;
|
|
109
109
|
typeSelectorAllTypesOptionText?: string;
|
|
110
|
+
/** Specifies how long (in milliseconds) to wait before showing the loading indicator when `resultsLoading` is true.
|
|
111
|
+
* @default 1000
|
|
112
|
+
*/
|
|
113
|
+
loadingIndicatorDelay?: number;
|
|
110
114
|
};
|
|
111
115
|
interface EntrySearchResult {
|
|
112
116
|
id: string;
|
|
@@ -124,7 +128,7 @@ interface NoResultsProps {
|
|
|
124
128
|
searchText: string | undefined;
|
|
125
129
|
selectedContentType: string | undefined;
|
|
126
130
|
}
|
|
127
|
-
declare const EntrySearch: <TResult extends EntrySearchResult>({ search, results, contentTypes, selectedItems, logoIcon, select, multiSelect, multiSelectId, rowComponent, selectedItemComponent, totalResults, resultsLoading, requireContentType, onAddNew, onEditClosed, onCancel, noResultsComponent, helpComponent, onSort, typeSelectorLabel, typeSelectorAllTypesOptionText, }: EntrySearchProps<TResult>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
131
|
+
declare const EntrySearch: <TResult extends EntrySearchResult>({ search, results, contentTypes, selectedItems, logoIcon, select, multiSelect, multiSelectId, rowComponent, selectedItemComponent, totalResults, resultsLoading, requireContentType, onAddNew, onEditClosed, onCancel, noResultsComponent, helpComponent, onSort, typeSelectorLabel, typeSelectorAllTypesOptionText, loadingIndicatorDelay, }: EntrySearchProps<TResult>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
128
132
|
|
|
129
133
|
declare const searchRowContainer: _emotion_react.SerializedStyles;
|
|
130
134
|
declare const searchRowContainerWithPopover: _emotion_react.SerializedStyles;
|
|
@@ -181,8 +185,10 @@ declare type ProductSearchResult = EntrySearchResult & {
|
|
|
181
185
|
id: string;
|
|
182
186
|
name: string;
|
|
183
187
|
}>;
|
|
188
|
+
/** @deprecated Use `editLink` instead. */
|
|
184
189
|
url?: string;
|
|
185
|
-
|
|
190
|
+
/** @deprecated Use `title` instead. */
|
|
191
|
+
name?: string;
|
|
186
192
|
};
|
|
187
193
|
interface ProductSearchResults {
|
|
188
194
|
total: number;
|
|
@@ -207,7 +213,7 @@ interface ProductDynamicSelectorValue {
|
|
|
207
213
|
sortOrder?: string;
|
|
208
214
|
}
|
|
209
215
|
interface ProductQueryProps<TValue extends ProductDynamicSelectorValue = ProductDynamicSelectorValue> {
|
|
210
|
-
value: TValue;
|
|
216
|
+
value: TValue | undefined;
|
|
211
217
|
setValue: (value: TValue) => Promise<void>;
|
|
212
218
|
brands: Brand[] | undefined;
|
|
213
219
|
categories: ProductQueryCategory[] | undefined;
|