@depict-ai/ui 0.0.7 → 0.0.8
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 +8 -1
- package/dist/main.js +601 -488
- package/dist/module.js +603 -490
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1225,6 +1225,12 @@ export type RenderCategorySuggestion = (category_suggestion: Accessor<CategorySu
|
|
|
1225
1225
|
op: WithRequired<SearchFilter, "op">["op"];
|
|
1226
1226
|
data: WithRequired<SearchFilter, "data">["data"];
|
|
1227
1227
|
}[]>) => JSX.Element;
|
|
1228
|
+
type InstantCard = (display: unknown, context: {
|
|
1229
|
+
index: number;
|
|
1230
|
+
i18n: search_i18n;
|
|
1231
|
+
merchant: string;
|
|
1232
|
+
market: string;
|
|
1233
|
+
}) => JSX.Element;
|
|
1228
1234
|
type SDKColsAtSize = [number, number?][];
|
|
1229
1235
|
type _ConstructorOptions1 = {
|
|
1230
1236
|
search_query_url_param_name?: string;
|
|
@@ -1239,6 +1245,7 @@ type _ConstructorOptions1 = {
|
|
|
1239
1245
|
disable_scrolling_during_modal?: boolean;
|
|
1240
1246
|
api?: DepictAPI;
|
|
1241
1247
|
bottom_distance_under_modal_?: Accessor<number | undefined>;
|
|
1248
|
+
render_instant_card?: InstantCard;
|
|
1242
1249
|
};
|
|
1243
1250
|
type OpenModalArguments = [
|
|
1244
1251
|
options_for_modal?: {
|
|
@@ -1255,7 +1262,7 @@ type SDKGridSpacing = string | {
|
|
|
1255
1262
|
export const get_search_query_updating_blocked_signal: (depict_search: DepictSearch) => Signal<boolean> | undefined;
|
|
1256
1263
|
export class DepictSearch {
|
|
1257
1264
|
#private;
|
|
1258
|
-
constructor({ search_query_url_param_name, url_transformer, on_navigation, enable_category_suggestions, disable_scrolling_during_modal, api, bottom_distance_under_modal_, ...props_on_class }: _ConstructorOptions1);
|
|
1265
|
+
constructor({ search_query_url_param_name, url_transformer, on_navigation, enable_category_suggestions, disable_scrolling_during_modal, api, bottom_distance_under_modal_, render_instant_card, ...props_on_class }: _ConstructorOptions1);
|
|
1259
1266
|
get localization(): {
|
|
1260
1267
|
[K in keyof search_i18n]: ReturnType<search_i18n[K]>;
|
|
1261
1268
|
};
|