@depict-ai/react-ui 3.0.1 → 3.0.3
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/ES10/index.cjs +6 -10
- package/ES10/index.d.ts +7 -5
- package/ES10/index.js +6 -10
- package/latest/index.cjs +4 -8
- package/latest/index.d.ts +7 -5
- package/latest/index.js +4 -8
- package/package.json +6 -6
- package/server/ES10/index.cjs +1 -2
- package/server/ES10/index.d.ts +7 -5
- package/server/ES10/index.js +1 -2
- package/server/latest/index.cjs +1 -2
- package/server/latest/index.d.ts +7 -5
- package/server/latest/index.js +1 -2
package/ES10/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ $parcel$export(module.exports, "version", () => $efbdd2dab4314170$export$83d89fb
|
|
|
39
39
|
$parcel$export(module.exports, "Navigation", () => $0d3a2413fdeb34b9$export$b8a61e5c71402559);
|
|
40
40
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
41
41
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
42
|
-
const $efbdd2dab4314170$export$83d89fbfd8236492 = "3.0.
|
|
42
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "3.0.3";
|
|
43
43
|
const $ef516b1f92253963$export$8e769ad4338a911e = {
|
|
44
44
|
usedLocale: $2kiy7$solidjs.createSignal((0, $2kiy7$depictaiuilocales.defaultLocale)),
|
|
45
45
|
search_instances: new Map(),
|
|
@@ -55,7 +55,6 @@ const $ef516b1f92253963$export$8e769ad4338a911e = {
|
|
|
55
55
|
category_page_in_dom: $2kiy7$solidjs.createSignal(false),
|
|
56
56
|
provider_is_updating: $2kiy7$solidjs.createSignal(false),
|
|
57
57
|
enable_content_search: $2kiy7$solidjs.createSignal(),
|
|
58
|
-
category_meta_title_suffix: $2kiy7$solidjs.createSignal(),
|
|
59
58
|
disable_override_listing_id: $2kiy7$solidjs.createSignal()
|
|
60
59
|
};
|
|
61
60
|
let $e7ba61a7074c02d3$var$run_on_href_change;
|
|
@@ -324,7 +323,6 @@ function $d944107b1e0acdae$export$248b95d5073d5bab(disposable, stateKey) {
|
|
|
324
323
|
usedLocale: [get_locale],
|
|
325
324
|
merchant: [get_merchant],
|
|
326
325
|
market: [get_market],
|
|
327
|
-
category_meta_title_suffix: [get_category_meta_title_suffix],
|
|
328
326
|
disable_override_listing_id: [get_disable_override_listing_id]
|
|
329
327
|
} = (0, $ef516b1f92253963$export$8e769ad4338a911e);
|
|
330
328
|
const instance = new (0, $2kiy7$depictaiui.DepictCategory)({
|
|
@@ -348,7 +346,6 @@ function $d944107b1e0acdae$export$248b95d5073d5bab(disposable, stateKey) {
|
|
|
348
346
|
if (new_market) instance.market = new_market;
|
|
349
347
|
});
|
|
350
348
|
$2kiy7$solidjs.createComputed(() => instance.localization = get_locale());
|
|
351
|
-
$2kiy7$solidjs.createComputed(() => instance.meta_title_suffix = get_category_meta_title_suffix());
|
|
352
349
|
$2kiy7$solidjs.createComputed(() => instance.disable_override_listing_id = get_disable_override_listing_id());
|
|
353
350
|
return {
|
|
354
351
|
instance: instance,
|
|
@@ -371,7 +368,7 @@ function $6f994ff16ce375bb$export$9fac37a9c21c2f3b(props) {
|
|
|
371
368
|
}
|
|
372
369
|
}
|
|
373
370
|
function $6f994ff16ce375bb$var$ActualDepictProvider(props) {
|
|
374
|
-
var _props$search, _props$category
|
|
371
|
+
var _props$search, _props$category;
|
|
375
372
|
const {
|
|
376
373
|
children: children,
|
|
377
374
|
navigateFunction: navigateFunction,
|
|
@@ -396,8 +393,7 @@ function $6f994ff16ce375bb$var$ActualDepictProvider(props) {
|
|
|
396
393
|
(0, $ef516b1f92253963$export$8e769ad4338a911e).metaData = metaData;
|
|
397
394
|
(0, $ef516b1f92253963$export$8e769ad4338a911e).search_query_url_param_name = urlParamName;
|
|
398
395
|
(0, $ef516b1f92253963$export$8e769ad4338a911e).enableCategorySuggestions = enableCategorySuggestions;
|
|
399
|
-
(0, $ef516b1f92253963$export$8e769ad4338a911e).
|
|
400
|
-
(0, $ef516b1f92253963$export$8e769ad4338a911e).disable_override_listing_id[1]((_props$category2 = props.category) === null || _props$category2 === void 0 ? void 0 : _props$category2.disableOverrideListingId);
|
|
396
|
+
(0, $ef516b1f92253963$export$8e769ad4338a911e).disable_override_listing_id[1]((_props$category = props.category) === null || _props$category === void 0 ? void 0 : _props$category.disableOverrideListingId);
|
|
401
397
|
$18f442be2cc59de2$export$47e064413edabf36(merchant, market, sessionId);
|
|
402
398
|
if (!market || !merchant) return $2kiy7$react.createElement((0, $2kiy7$react.Fragment), null, children);
|
|
403
399
|
(0, $ef516b1f92253963$export$8e769ad4338a911e).market[1](market);
|
|
@@ -709,10 +705,10 @@ function $15691268d8df90a9$var$SolidCategoryPage(props, set_portals) {
|
|
|
709
705
|
$2kiy7$solidjs.onCleanup(() => set_category_page_in_dom(false));
|
|
710
706
|
$2kiy7$solidjs.createComputed(() => {
|
|
711
707
|
const {
|
|
712
|
-
|
|
708
|
+
listingQuery: listingQuery
|
|
713
709
|
} = props;
|
|
714
|
-
depict_category().
|
|
715
|
-
if (
|
|
710
|
+
depict_category().listing_query = listingQuery;
|
|
711
|
+
if (listingQuery) {
|
|
716
712
|
set_category_state_set(true);
|
|
717
713
|
(0, $ef516b1f92253963$export$8e769ad4338a911e).known_category_paths.add(location.pathname);
|
|
718
714
|
}
|
package/ES10/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DPC } from "@depict-ai/dpc/ES10";
|
|
2
|
-
import React, { PropsWithChildren,
|
|
3
|
-
import { BaseProviderConfig, BaseSearchProviderConfig,
|
|
2
|
+
import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } from "react";
|
|
3
|
+
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } from "@depict-ai/ui/ES10";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales/ES10";
|
|
5
5
|
import { Display, ModernDisplay } from "@depict-ai/utilishared/ES10";
|
|
6
|
-
export const version = "3.0.
|
|
6
|
+
export const version = "3.0.3";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -248,9 +248,11 @@ interface SearchPageConfig<T extends Display> extends BaseSearchPageConfig, PLPC
|
|
|
248
248
|
export function SearchPage<OriginalDisplay extends Display, OutputDisplay extends ModernDisplay | never>(props: SearchPageConfig<[OutputDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<OutputDisplay>>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
249
249
|
interface CategoryPageConfig<T extends Display> extends BaseCategoryPageConfig, PLPConfig<T> {
|
|
250
250
|
/**
|
|
251
|
-
* The listing
|
|
251
|
+
* The listing to query Depict for. `type` can be `"listingId"` or `"externalId"` and `id` is the actual id.
|
|
252
|
+
* If `id` is `"listingId"`, it should be a uuid where Depict is the source of truth, you can get them here: https://api.depict.ai/docs#tag/Listing/operation/Get_Listings_v3_listings_get.
|
|
253
|
+
* If `id` is `"externalId"`, it should be the id of the product listing in your system - whatever was passed to Depict during data ingestion.
|
|
252
254
|
*/
|
|
253
|
-
|
|
255
|
+
listingQuery: ListingQuery;
|
|
254
256
|
/**
|
|
255
257
|
* categoryTitlePlugin is an optional plugin that can be used to customize the title of the category page.
|
|
256
258
|
* @default CategoryTitle
|
package/ES10/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { renderToString as $jb2Oo$renderToString } from "react-dom/server";
|
|
|
15
15
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
16
16
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
17
17
|
register_es_version("react-ui", "ES10");
|
|
18
|
-
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "3.0.
|
|
18
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "3.0.3";
|
|
19
19
|
const $8c691d7f86317052$export$8e769ad4338a911e = {
|
|
20
20
|
usedLocale: $jb2Oo$createSignal((0, $jb2Oo$defaultLocale)),
|
|
21
21
|
search_instances: new Map(),
|
|
@@ -31,7 +31,6 @@ const $8c691d7f86317052$export$8e769ad4338a911e = {
|
|
|
31
31
|
category_page_in_dom: $jb2Oo$createSignal(false),
|
|
32
32
|
provider_is_updating: $jb2Oo$createSignal(false),
|
|
33
33
|
enable_content_search: $jb2Oo$createSignal(),
|
|
34
|
-
category_meta_title_suffix: $jb2Oo$createSignal(),
|
|
35
34
|
disable_override_listing_id: $jb2Oo$createSignal()
|
|
36
35
|
};
|
|
37
36
|
let $0dd9d9a9c7da4c1d$var$run_on_href_change;
|
|
@@ -300,7 +299,6 @@ function $b1c85026e863c95b$export$248b95d5073d5bab(disposable, stateKey) {
|
|
|
300
299
|
usedLocale: [get_locale],
|
|
301
300
|
merchant: [get_merchant],
|
|
302
301
|
market: [get_market],
|
|
303
|
-
category_meta_title_suffix: [get_category_meta_title_suffix],
|
|
304
302
|
disable_override_listing_id: [get_disable_override_listing_id]
|
|
305
303
|
} = (0, $8c691d7f86317052$export$8e769ad4338a911e);
|
|
306
304
|
const instance = new (0, $jb2Oo$DepictCategory)({
|
|
@@ -324,7 +322,6 @@ function $b1c85026e863c95b$export$248b95d5073d5bab(disposable, stateKey) {
|
|
|
324
322
|
if (new_market) instance.market = new_market;
|
|
325
323
|
});
|
|
326
324
|
$jb2Oo$createComputed(() => instance.localization = get_locale());
|
|
327
|
-
$jb2Oo$createComputed(() => instance.meta_title_suffix = get_category_meta_title_suffix());
|
|
328
325
|
$jb2Oo$createComputed(() => instance.disable_override_listing_id = get_disable_override_listing_id());
|
|
329
326
|
return {
|
|
330
327
|
instance: instance,
|
|
@@ -347,7 +344,7 @@ function $18e5b9f66c7ade8e$export$9fac37a9c21c2f3b(props) {
|
|
|
347
344
|
}
|
|
348
345
|
}
|
|
349
346
|
function $18e5b9f66c7ade8e$var$ActualDepictProvider(props) {
|
|
350
|
-
var _props$search, _props$category
|
|
347
|
+
var _props$search, _props$category;
|
|
351
348
|
const {
|
|
352
349
|
children: children,
|
|
353
350
|
navigateFunction: navigateFunction,
|
|
@@ -372,8 +369,7 @@ function $18e5b9f66c7ade8e$var$ActualDepictProvider(props) {
|
|
|
372
369
|
(0, $8c691d7f86317052$export$8e769ad4338a911e).metaData = metaData;
|
|
373
370
|
(0, $8c691d7f86317052$export$8e769ad4338a911e).search_query_url_param_name = urlParamName;
|
|
374
371
|
(0, $8c691d7f86317052$export$8e769ad4338a911e).enableCategorySuggestions = enableCategorySuggestions;
|
|
375
|
-
(0, $8c691d7f86317052$export$8e769ad4338a911e).
|
|
376
|
-
(0, $8c691d7f86317052$export$8e769ad4338a911e).disable_override_listing_id[1]((_props$category2 = props.category) === null || _props$category2 === void 0 ? void 0 : _props$category2.disableOverrideListingId);
|
|
372
|
+
(0, $8c691d7f86317052$export$8e769ad4338a911e).disable_override_listing_id[1]((_props$category = props.category) === null || _props$category === void 0 ? void 0 : _props$category.disableOverrideListingId);
|
|
377
373
|
$b34796f5ebe3470e$export$47e064413edabf36(merchant, market, sessionId);
|
|
378
374
|
if (!market || !merchant) return $jb2Oo$createElement((0, $jb2Oo$Fragment), null, children);
|
|
379
375
|
(0, $8c691d7f86317052$export$8e769ad4338a911e).market[1](market);
|
|
@@ -685,10 +681,10 @@ function $e86a296a07b17ad5$var$SolidCategoryPage(props, set_portals) {
|
|
|
685
681
|
$jb2Oo$onCleanup(() => set_category_page_in_dom(false));
|
|
686
682
|
$jb2Oo$createComputed(() => {
|
|
687
683
|
const {
|
|
688
|
-
|
|
684
|
+
listingQuery: listingQuery
|
|
689
685
|
} = props;
|
|
690
|
-
depict_category().
|
|
691
|
-
if (
|
|
686
|
+
depict_category().listing_query = listingQuery;
|
|
687
|
+
if (listingQuery) {
|
|
692
688
|
set_category_state_set(true);
|
|
693
689
|
(0, $8c691d7f86317052$export$8e769ad4338a911e).known_category_paths.add(location.pathname);
|
|
694
690
|
}
|
package/latest/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ $parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fb
|
|
|
39
39
|
$parcel$export(module.exports, "Navigation", () => $b742053c966024b4$export$b8a61e5c71402559);
|
|
40
40
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
41
41
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
42
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "3.0.
|
|
42
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "3.0.3";
|
|
43
43
|
const $0b7cd4fb39fc3502$export$8e769ad4338a911e = {
|
|
44
44
|
usedLocale: $2IzJs$solidjs.createSignal((0, $2IzJs$depictaiuilocales.defaultLocale)),
|
|
45
45
|
search_instances: new Map(),
|
|
@@ -55,7 +55,6 @@ const $0b7cd4fb39fc3502$export$8e769ad4338a911e = {
|
|
|
55
55
|
category_page_in_dom: $2IzJs$solidjs.createSignal(false),
|
|
56
56
|
provider_is_updating: $2IzJs$solidjs.createSignal(false),
|
|
57
57
|
enable_content_search: $2IzJs$solidjs.createSignal(),
|
|
58
|
-
category_meta_title_suffix: $2IzJs$solidjs.createSignal(),
|
|
59
58
|
disable_override_listing_id: $2IzJs$solidjs.createSignal()
|
|
60
59
|
};
|
|
61
60
|
let $b4d0d98857ed9934$var$run_on_href_change;
|
|
@@ -306,7 +305,6 @@ function $da98aca6c7d4c3f9$export$248b95d5073d5bab(disposable, stateKey) {
|
|
|
306
305
|
usedLocale: [get_locale],
|
|
307
306
|
merchant: [get_merchant],
|
|
308
307
|
market: [get_market],
|
|
309
|
-
category_meta_title_suffix: [get_category_meta_title_suffix],
|
|
310
308
|
disable_override_listing_id: [get_disable_override_listing_id]
|
|
311
309
|
} = (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e);
|
|
312
310
|
const instance = new (0, $2IzJs$depictaiui.DepictCategory)({
|
|
@@ -328,7 +326,6 @@ function $da98aca6c7d4c3f9$export$248b95d5073d5bab(disposable, stateKey) {
|
|
|
328
326
|
if (new_market) instance.market = new_market;
|
|
329
327
|
});
|
|
330
328
|
$2IzJs$solidjs.createComputed(() => instance.localization = get_locale());
|
|
331
|
-
$2IzJs$solidjs.createComputed(() => instance.meta_title_suffix = get_category_meta_title_suffix());
|
|
332
329
|
$2IzJs$solidjs.createComputed(() => instance.disable_override_listing_id = get_disable_override_listing_id());
|
|
333
330
|
return {
|
|
334
331
|
instance: instance,
|
|
@@ -375,7 +372,6 @@ function $24b00503eef73528$var$ActualDepictProvider(props) {
|
|
|
375
372
|
(0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).metaData = metaData;
|
|
376
373
|
(0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).search_query_url_param_name = urlParamName;
|
|
377
374
|
(0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).enableCategorySuggestions = enableCategorySuggestions;
|
|
378
|
-
(0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).category_meta_title_suffix[1](props.category?.metaTitleSuffix);
|
|
379
375
|
(0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).disable_override_listing_id[1](props.category?.disableOverrideListingId);
|
|
380
376
|
$25c0a91312868994$export$47e064413edabf36(merchant, market, sessionId);
|
|
381
377
|
if (!market || !merchant) return $2IzJs$react.createElement((0, $2IzJs$react.Fragment), null, children);
|
|
@@ -677,10 +673,10 @@ function $5aa5fcb9f8a2bebc$var$SolidCategoryPage(props, set_portals) {
|
|
|
677
673
|
$2IzJs$solidjs.onCleanup(() => set_category_page_in_dom(false));
|
|
678
674
|
$2IzJs$solidjs.createComputed(() => {
|
|
679
675
|
const {
|
|
680
|
-
|
|
676
|
+
listingQuery: listingQuery
|
|
681
677
|
} = props;
|
|
682
|
-
depict_category().
|
|
683
|
-
if (
|
|
678
|
+
depict_category().listing_query = listingQuery;
|
|
679
|
+
if (listingQuery) {
|
|
684
680
|
set_category_state_set(true);
|
|
685
681
|
(0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).known_category_paths.add(location.pathname);
|
|
686
682
|
}
|
package/latest/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DPC } from "@depict-ai/dpc/latest";
|
|
2
|
-
import React, { PropsWithChildren,
|
|
3
|
-
import { BaseProviderConfig, BaseSearchProviderConfig,
|
|
2
|
+
import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } from "react";
|
|
3
|
+
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } from "@depict-ai/ui/latest";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales/latest";
|
|
5
5
|
import { Display, ModernDisplay } from "@depict-ai/utilishared/latest";
|
|
6
|
-
export const version = "3.0.
|
|
6
|
+
export const version = "3.0.3";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -248,9 +248,11 @@ interface SearchPageConfig<T extends Display> extends BaseSearchPageConfig, PLPC
|
|
|
248
248
|
export function SearchPage<OriginalDisplay extends Display, OutputDisplay extends ModernDisplay | never>(props: SearchPageConfig<[OutputDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<OutputDisplay>>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
249
249
|
interface CategoryPageConfig<T extends Display> extends BaseCategoryPageConfig, PLPConfig<T> {
|
|
250
250
|
/**
|
|
251
|
-
* The listing
|
|
251
|
+
* The listing to query Depict for. `type` can be `"listingId"` or `"externalId"` and `id` is the actual id.
|
|
252
|
+
* If `id` is `"listingId"`, it should be a uuid where Depict is the source of truth, you can get them here: https://api.depict.ai/docs#tag/Listing/operation/Get_Listings_v3_listings_get.
|
|
253
|
+
* If `id` is `"externalId"`, it should be the id of the product listing in your system - whatever was passed to Depict during data ingestion.
|
|
252
254
|
*/
|
|
253
|
-
|
|
255
|
+
listingQuery: ListingQuery;
|
|
254
256
|
/**
|
|
255
257
|
* categoryTitlePlugin is an optional plugin that can be used to customize the title of the category page.
|
|
256
258
|
* @default CategoryTitle
|
package/latest/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import { renderToString as $2GFvs$renderToString } from "react-dom/server";
|
|
|
15
15
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
16
16
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
17
17
|
register_es_version("react-ui", "latest");
|
|
18
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "3.0.
|
|
18
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "3.0.3";
|
|
19
19
|
const $42858f023ef23dab$export$8e769ad4338a911e = {
|
|
20
20
|
usedLocale: $2GFvs$createSignal((0, $2GFvs$defaultLocale)),
|
|
21
21
|
search_instances: new Map(),
|
|
@@ -31,7 +31,6 @@ const $42858f023ef23dab$export$8e769ad4338a911e = {
|
|
|
31
31
|
category_page_in_dom: $2GFvs$createSignal(false),
|
|
32
32
|
provider_is_updating: $2GFvs$createSignal(false),
|
|
33
33
|
enable_content_search: $2GFvs$createSignal(),
|
|
34
|
-
category_meta_title_suffix: $2GFvs$createSignal(),
|
|
35
34
|
disable_override_listing_id: $2GFvs$createSignal()
|
|
36
35
|
};
|
|
37
36
|
let $c83ba9ab79386687$var$run_on_href_change;
|
|
@@ -282,7 +281,6 @@ function $9145bcf81a0216ce$export$248b95d5073d5bab(disposable, stateKey) {
|
|
|
282
281
|
usedLocale: [get_locale],
|
|
283
282
|
merchant: [get_merchant],
|
|
284
283
|
market: [get_market],
|
|
285
|
-
category_meta_title_suffix: [get_category_meta_title_suffix],
|
|
286
284
|
disable_override_listing_id: [get_disable_override_listing_id]
|
|
287
285
|
} = (0, $42858f023ef23dab$export$8e769ad4338a911e);
|
|
288
286
|
const instance = new (0, $2GFvs$DepictCategory)({
|
|
@@ -304,7 +302,6 @@ function $9145bcf81a0216ce$export$248b95d5073d5bab(disposable, stateKey) {
|
|
|
304
302
|
if (new_market) instance.market = new_market;
|
|
305
303
|
});
|
|
306
304
|
$2GFvs$createComputed(() => instance.localization = get_locale());
|
|
307
|
-
$2GFvs$createComputed(() => instance.meta_title_suffix = get_category_meta_title_suffix());
|
|
308
305
|
$2GFvs$createComputed(() => instance.disable_override_listing_id = get_disable_override_listing_id());
|
|
309
306
|
return {
|
|
310
307
|
instance: instance,
|
|
@@ -351,7 +348,6 @@ function $5376eb2a386cd90d$var$ActualDepictProvider(props) {
|
|
|
351
348
|
(0, $42858f023ef23dab$export$8e769ad4338a911e).metaData = metaData;
|
|
352
349
|
(0, $42858f023ef23dab$export$8e769ad4338a911e).search_query_url_param_name = urlParamName;
|
|
353
350
|
(0, $42858f023ef23dab$export$8e769ad4338a911e).enableCategorySuggestions = enableCategorySuggestions;
|
|
354
|
-
(0, $42858f023ef23dab$export$8e769ad4338a911e).category_meta_title_suffix[1](props.category?.metaTitleSuffix);
|
|
355
351
|
(0, $42858f023ef23dab$export$8e769ad4338a911e).disable_override_listing_id[1](props.category?.disableOverrideListingId);
|
|
356
352
|
$a00d8f27abd5d0b0$export$47e064413edabf36(merchant, market, sessionId);
|
|
357
353
|
if (!market || !merchant) return $2GFvs$createElement((0, $2GFvs$Fragment), null, children);
|
|
@@ -653,10 +649,10 @@ function $48d7f568740a317d$var$SolidCategoryPage(props, set_portals) {
|
|
|
653
649
|
$2GFvs$onCleanup(() => set_category_page_in_dom(false));
|
|
654
650
|
$2GFvs$createComputed(() => {
|
|
655
651
|
const {
|
|
656
|
-
|
|
652
|
+
listingQuery: listingQuery
|
|
657
653
|
} = props;
|
|
658
|
-
depict_category().
|
|
659
|
-
if (
|
|
654
|
+
depict_category().listing_query = listingQuery;
|
|
655
|
+
if (listingQuery) {
|
|
660
656
|
set_category_state_set(true);
|
|
661
657
|
(0, $42858f023ef23dab$export$8e769ad4338a911e).known_category_paths.add(location.pathname);
|
|
662
658
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/react-ui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "ES10/index.d.ts",
|
|
@@ -135,10 +135,10 @@
|
|
|
135
135
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
136
136
|
"@babel/runtime": "latest",
|
|
137
137
|
"@babel/runtime-corejs3": "latest",
|
|
138
|
-
"@depict-ai/dpc": "^2.0.
|
|
139
|
-
"@depict-ai/plp-styling": "^2.0.
|
|
140
|
-
"@depict-ai/ui": "^3.0.
|
|
141
|
-
"@depict-ai/utilishared": "^2.0.
|
|
138
|
+
"@depict-ai/dpc": "^2.0.1",
|
|
139
|
+
"@depict-ai/plp-styling": "^2.0.1",
|
|
140
|
+
"@depict-ai/ui": "^3.0.5",
|
|
141
|
+
"@depict-ai/utilishared": "^2.0.1",
|
|
142
142
|
"solid-js": "^1.8.1"
|
|
143
143
|
},
|
|
144
144
|
"peerDependencies": {
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"@babel/core": "latest",
|
|
151
151
|
"@babel/preset-env": "latest",
|
|
152
152
|
"@babel/preset-typescript": "latest",
|
|
153
|
-
"@depict-ai/plp-styling": "^2.0.
|
|
153
|
+
"@depict-ai/plp-styling": "^2.0.1",
|
|
154
154
|
"@jest/globals": "^29.3.1",
|
|
155
155
|
"@parcel/babel-preset-env": "^2.10.3",
|
|
156
156
|
"@parcel/transformer-sass": "^2.10.3",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -156,7 +156,6 @@ const $ef516b1f92253963$export$8e769ad4338a911e = {
|
|
|
156
156
|
category_page_in_dom: $aNCHr$solidjs.createSignal(false),
|
|
157
157
|
provider_is_updating: $aNCHr$solidjs.createSignal(false),
|
|
158
158
|
enable_content_search: $aNCHr$solidjs.createSignal(),
|
|
159
|
-
category_meta_title_suffix: $aNCHr$solidjs.createSignal(),
|
|
160
159
|
disable_override_listing_id: $aNCHr$solidjs.createSignal()
|
|
161
160
|
};
|
|
162
161
|
function $7b4cd941f15b2582$export$12250cb2badef3d2(props) {
|
|
@@ -233,7 +232,7 @@ function $3b36cc844440a979$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
233
232
|
}
|
|
234
233
|
});
|
|
235
234
|
}
|
|
236
|
-
const $efbdd2dab4314170$export$83d89fbfd8236492 = "3.0.
|
|
235
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "3.0.3";
|
|
237
236
|
function $202459d454907b31$export$9fac37a9c21c2f3b(props) {
|
|
238
237
|
return props.children;
|
|
239
238
|
}
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DPC } from "@depict-ai/dpc/ES10";
|
|
2
|
-
import React, { PropsWithChildren,
|
|
3
|
-
import { BaseProviderConfig, BaseSearchProviderConfig,
|
|
2
|
+
import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } from "react";
|
|
3
|
+
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } from "@depict-ai/ui/ES10";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales/ES10";
|
|
5
5
|
import { Display, ModernDisplay } from "@depict-ai/utilishared/ES10";
|
|
6
|
-
export const version = "3.0.
|
|
6
|
+
export const version = "3.0.3";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -248,9 +248,11 @@ interface SearchPageConfig<T extends Display> extends BaseSearchPageConfig, PLPC
|
|
|
248
248
|
export function SearchPage<OriginalDisplay extends Display, OutputDisplay extends ModernDisplay | never>(props: SearchPageConfig<[OutputDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<OutputDisplay>>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
249
249
|
interface CategoryPageConfig<T extends Display> extends BaseCategoryPageConfig, PLPConfig<T> {
|
|
250
250
|
/**
|
|
251
|
-
* The listing
|
|
251
|
+
* The listing to query Depict for. `type` can be `"listingId"` or `"externalId"` and `id` is the actual id.
|
|
252
|
+
* If `id` is `"listingId"`, it should be a uuid where Depict is the source of truth, you can get them here: https://api.depict.ai/docs#tag/Listing/operation/Get_Listings_v3_listings_get.
|
|
253
|
+
* If `id` is `"externalId"`, it should be the id of the product listing in your system - whatever was passed to Depict during data ingestion.
|
|
252
254
|
*/
|
|
253
|
-
|
|
255
|
+
listingQuery: ListingQuery;
|
|
254
256
|
/**
|
|
255
257
|
* categoryTitlePlugin is an optional plugin that can be used to customize the title of the category page.
|
|
256
258
|
* @default CategoryTitle
|
package/server/ES10/index.js
CHANGED
|
@@ -133,7 +133,6 @@ const $8c691d7f86317052$export$8e769ad4338a911e = {
|
|
|
133
133
|
category_page_in_dom: $7h5e1$createSignal(false),
|
|
134
134
|
provider_is_updating: $7h5e1$createSignal(false),
|
|
135
135
|
enable_content_search: $7h5e1$createSignal(),
|
|
136
|
-
category_meta_title_suffix: $7h5e1$createSignal(),
|
|
137
136
|
disable_override_listing_id: $7h5e1$createSignal()
|
|
138
137
|
};
|
|
139
138
|
function $9da62538e07f038e$export$12250cb2badef3d2(props) {
|
|
@@ -210,7 +209,7 @@ function $cd68097a7ee08669$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
210
209
|
}
|
|
211
210
|
});
|
|
212
211
|
}
|
|
213
|
-
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "3.0.
|
|
212
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "3.0.3";
|
|
214
213
|
function $5c4add0a8fe94894$export$9fac37a9c21c2f3b(props) {
|
|
215
214
|
return props.children;
|
|
216
215
|
}
|
package/server/latest/index.cjs
CHANGED
|
@@ -150,7 +150,6 @@ const $0b7cd4fb39fc3502$export$8e769ad4338a911e = {
|
|
|
150
150
|
category_page_in_dom: $7QqFM$solidjs.createSignal(false),
|
|
151
151
|
provider_is_updating: $7QqFM$solidjs.createSignal(false),
|
|
152
152
|
enable_content_search: $7QqFM$solidjs.createSignal(),
|
|
153
|
-
category_meta_title_suffix: $7QqFM$solidjs.createSignal(),
|
|
154
153
|
disable_override_listing_id: $7QqFM$solidjs.createSignal()
|
|
155
154
|
};
|
|
156
155
|
function $3d35ad83c8fdfa92$export$12250cb2badef3d2(props) {
|
|
@@ -224,7 +223,7 @@ function $c6b960f2a07285c8$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
224
223
|
}
|
|
225
224
|
});
|
|
226
225
|
}
|
|
227
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "3.0.
|
|
226
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "3.0.3";
|
|
228
227
|
function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
|
|
229
228
|
return props.children;
|
|
230
229
|
}
|
package/server/latest/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DPC } from "@depict-ai/dpc/latest";
|
|
2
|
-
import React, { PropsWithChildren,
|
|
3
|
-
import { BaseProviderConfig, BaseSearchProviderConfig,
|
|
2
|
+
import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } from "react";
|
|
3
|
+
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } from "@depict-ai/ui/latest";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales/latest";
|
|
5
5
|
import { Display, ModernDisplay } from "@depict-ai/utilishared/latest";
|
|
6
|
-
export const version = "3.0.
|
|
6
|
+
export const version = "3.0.3";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -248,9 +248,11 @@ interface SearchPageConfig<T extends Display> extends BaseSearchPageConfig, PLPC
|
|
|
248
248
|
export function SearchPage<OriginalDisplay extends Display, OutputDisplay extends ModernDisplay | never>(props: SearchPageConfig<[OutputDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<OutputDisplay>>): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
249
249
|
interface CategoryPageConfig<T extends Display> extends BaseCategoryPageConfig, PLPConfig<T> {
|
|
250
250
|
/**
|
|
251
|
-
* The listing
|
|
251
|
+
* The listing to query Depict for. `type` can be `"listingId"` or `"externalId"` and `id` is the actual id.
|
|
252
|
+
* If `id` is `"listingId"`, it should be a uuid where Depict is the source of truth, you can get them here: https://api.depict.ai/docs#tag/Listing/operation/Get_Listings_v3_listings_get.
|
|
253
|
+
* If `id` is `"externalId"`, it should be the id of the product listing in your system - whatever was passed to Depict during data ingestion.
|
|
252
254
|
*/
|
|
253
|
-
|
|
255
|
+
listingQuery: ListingQuery;
|
|
254
256
|
/**
|
|
255
257
|
* categoryTitlePlugin is an optional plugin that can be used to customize the title of the category page.
|
|
256
258
|
* @default CategoryTitle
|
package/server/latest/index.js
CHANGED
|
@@ -127,7 +127,6 @@ const $42858f023ef23dab$export$8e769ad4338a911e = {
|
|
|
127
127
|
category_page_in_dom: $eOXet$createSignal(false),
|
|
128
128
|
provider_is_updating: $eOXet$createSignal(false),
|
|
129
129
|
enable_content_search: $eOXet$createSignal(),
|
|
130
|
-
category_meta_title_suffix: $eOXet$createSignal(),
|
|
131
130
|
disable_override_listing_id: $eOXet$createSignal()
|
|
132
131
|
};
|
|
133
132
|
function $5ee8e057dabc10d4$export$12250cb2badef3d2(props) {
|
|
@@ -201,7 +200,7 @@ function $4d5c3f13a5ae62a7$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
201
200
|
}
|
|
202
201
|
});
|
|
203
202
|
}
|
|
204
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "3.0.
|
|
203
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "3.0.3";
|
|
205
204
|
function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
|
|
206
205
|
return props.children;
|
|
207
206
|
}
|