@depict-ai/ui 1.0.5 → 1.0.7
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/README.md +2 -2
- package/dist/index.d.ts +8 -2
- package/dist/main.js +1837 -1770
- package/dist/module.js +1803 -1739
- 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/locales/index.d.ts +1 -0
- package/locales/index.js +130 -129
- package/locales/require.js +143 -141
- package/package.json +18 -8
- package/.idea/GitLink.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/ui.iml +0 -12
- package/.idea/vcs.xml +0 -6
- package/.idea/workspace.xml +0 -53
- package/jest.setup.js +0 -7
- package/ssr/client/main.js +0 -11064
- package/ssr/client/module.js +0 -10941
- package/ssr/index.d.ts +0 -635
- package/ssr/server/main.js +0 -9477
- package/ssr/server/module.js +0 -9321
- package/tsconfig.json +0 -8
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# Depict
|
|
1
|
+
# Depict UI base package
|
|
2
2
|
|
|
3
|
-
https://
|
|
3
|
+
You're most likely for https://www.npmjs.com/package/@depict-ai/js-ui or https://www.npmjs.com/package/@depict-ai/react-ui
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { SearchSuggestionsResponse, CategorySuggestion } from "@depict-ai/types/
|
|
|
7
7
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
8
8
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
9
9
|
import { ProductListingResponse } from "@depict-ai/types/api/ProductListingResponse";
|
|
10
|
-
export const version = "1.0.
|
|
10
|
+
export const version = "1.0.7";
|
|
11
11
|
export type OnNavigation = ((options: {
|
|
12
12
|
is_replace: boolean;
|
|
13
13
|
new_url: URL;
|
|
@@ -350,7 +350,7 @@ export class DepictSearch<T extends Display> {
|
|
|
350
350
|
set merchant(tenant: string);
|
|
351
351
|
get market(): string;
|
|
352
352
|
set market(market: string);
|
|
353
|
-
fetchSearchResults(query: string, filters?: SearchFilter[]): Promise<T[]>;
|
|
353
|
+
fetchSearchResults(query: string, filters?: SearchFilter[], limit?: number): Promise<T[]>;
|
|
354
354
|
}
|
|
355
355
|
export function SearchPage<T extends Display>({ depict_search, include_input_field, grid_spacing, cols_at_size, product_card_template, extra_depict_options, }: {
|
|
356
356
|
depict_search: DepictSearch<T>;
|
|
@@ -533,4 +533,10 @@ export class PageReplacer extends EventTarget {
|
|
|
533
533
|
* makes so that links to the previous page close the search instead of closing the search and reloading the page (to be used with non-spas)
|
|
534
534
|
*/
|
|
535
535
|
export function setup_fast_leave(pr: PageReplacer): void;
|
|
536
|
+
export const defaultColsAtSize: SDKColsAtSize;
|
|
537
|
+
export const defaultGridSpacing = "2%";
|
|
538
|
+
export const defaultCategoryTitlePlugin: ({ category_title_, product_count_, }: {
|
|
539
|
+
category_title_: import("solid-js").Accessor<string | undefined>;
|
|
540
|
+
product_count_: import("solid-js").JSX.Element;
|
|
541
|
+
}) => HTMLElement;
|
|
536
542
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequest";
|