@depict-ai/ui 0.0.64 → 0.0.66
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 +13 -7
- package/dist/main.js +487 -614
- package/dist/module.js +490 -618
- package/dist/typescript_schema/BaseSearchRequest.d.ts +197 -0
- package/dist/typescript_schema/ProductListingQueriesRequest.d.ts +14 -0
- package/dist/typescript_schema/ProductListingQueriesResponse.d.ts +10 -0
- package/dist/typescript_schema/ProductListingRequest.d.ts +221 -0
- package/dist/typescript_schema/ProductListingResponse.d.ts +232 -0
- package/dist/typescript_schema/RecommendResponse.d.ts +15 -0
- package/dist/typescript_schema/SearchRequest.d.ts +213 -0
- package/dist/typescript_schema/SearchResponse.d.ts +192 -0
- package/dist/typescript_schema/SearchSuggestionsRequest.d.ts +18 -0
- package/dist/typescript_schema/SearchSuggestionsResponse.d.ts +182 -0
- package/dist/typescript_schema/TrackV2Request.d.ts +115 -0
- package/package.json +5 -5
- package/dist/moduule.js +0 -7872
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.
|
|
12
|
+
export const version = "0.0.66";
|
|
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;
|
|
@@ -192,6 +192,11 @@ export function show_toast({ children, on_close_, close_after_, ...more_attribut
|
|
|
192
192
|
} & JSX.HTMLAttributes<HTMLDivElement>): {
|
|
193
193
|
close_toast_: VoidFunction;
|
|
194
194
|
};
|
|
195
|
+
declare class SDKError extends Error {
|
|
196
|
+
}
|
|
197
|
+
export class ProductCardError extends SDKError {
|
|
198
|
+
constructor(templateError: Error);
|
|
199
|
+
}
|
|
195
200
|
/**
|
|
196
201
|
* Disables scrolling until the solidjs reactive scoped is disposed (onCleanup)
|
|
197
202
|
* @returns A cleanup function to manually re-enable scrolling.
|
|
@@ -316,6 +321,7 @@ type OpenModalArguments = [
|
|
|
316
321
|
style_props_?: Signal<_JSX1.CSSProperties>;
|
|
317
322
|
closing_animation_?: () => Promise<any>;
|
|
318
323
|
class_list_?: Accessor<Record<string, boolean>>;
|
|
324
|
+
selected_text_range_?: readonly [number | null, number | null] | [number | null, number | null];
|
|
319
325
|
},
|
|
320
326
|
on_dispose?: VoidFunction
|
|
321
327
|
];
|
|
@@ -375,8 +381,8 @@ export type BaseSearchProviderConfig = {
|
|
|
375
381
|
searchPagePath: string;
|
|
376
382
|
/**
|
|
377
383
|
* The name of the url parameter that will be used for the search query.
|
|
378
|
-
* @example "q", "search_query"
|
|
379
|
-
* @default "
|
|
384
|
+
* @example "q", "search_query"
|
|
385
|
+
* @default "search_query"
|
|
380
386
|
*/
|
|
381
387
|
urlParamName?: string;
|
|
382
388
|
/**
|