@depict-ai/ui 0.0.64 → 0.0.65

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 CHANGED
@@ -9,7 +9,7 @@ import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestions
9
9
  import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
10
10
  import { ProductListingResponse, BaseCategoryDisplay } from "@depict-ai/types/api/ProductListingResponse";
11
11
  import { JSX as _JSX1 } from "solid-js/types/jsx";
12
- export const version = "0.0.64";
12
+ export const version = "0.0.65";
13
13
  type ExclusiveId = {
14
14
  categoryId: string;
15
15
  productId?: undefined;
@@ -156,14 +156,11 @@ export type InstantCard<T extends Display> = (display: T, context: {
156
156
  merchant: string;
157
157
  market: string;
158
158
  }) => JSX.Element;
159
- export type WithRequired<T, K extends keyof T> = T & {
160
- [P in K]-?: T[P];
161
- };
162
159
  export class DepictAPI {
163
160
  #private;
164
161
  constructor(get_metadata?: () => Promise<{
165
162
  [k: string]: string;
166
- }>);
163
+ } | undefined>);
167
164
  suggest(input_req: SearchSuggestionsRequest): Promise<SearchSuggestionsResponse & {
168
165
  failed?: true;
169
166
  }>;
@@ -181,6 +178,9 @@ export class DepictAPI {
181
178
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
182
179
  */
183
180
  export function media_query_to_accessor(media_query: string): import("solid-js").Accessor<boolean>;
181
+ export type WithRequired<T, K extends keyof T> = T & {
182
+ [P in K]-?: T[P];
183
+ };
184
184
  type SDKGridSpacing = string | {
185
185
  horizontal: string;
186
186
  vertical: string;
@@ -375,8 +375,8 @@ export type BaseSearchProviderConfig = {
375
375
  searchPagePath: string;
376
376
  /**
377
377
  * The name of the url parameter that will be used for the search query.
378
- * @example "q", "search_query", "query"
379
- * @default "query"
378
+ * @example "q", "search_query"
379
+ * @default "search_query"
380
380
  */
381
381
  urlParamName?: string;
382
382
  /**