@depict-ai/react-ui 1.5.8 → 1.5.10
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 +8 -4
- package/ES10/index.d.ts +6 -2
- package/ES10/index.js +8 -4
- package/dist/main.js +879 -0
- package/dist/module.js +860 -0
- package/dist/styles/plain-css-fallback-styling.css +1 -1
- package/latest/index.cjs +7 -3
- package/latest/index.d.ts +6 -2
- package/latest/index.js +7 -3
- package/package.json +5 -5
- package/server/ES10/index.cjs +6 -7
- package/server/ES10/index.d.ts +6 -2
- package/server/ES10/index.js +6 -7
- package/server/latest/index.cjs +6 -7
- package/server/latest/index.d.ts +6 -2
- package/server/latest/index.js +6 -7
package/ES10/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ $parcel$export(module.exports, "version", () => $efbdd2dab4314170$export$83d89fb
|
|
|
35
35
|
$parcel$export(module.exports, "Navigation", () => $0d3a2413fdeb34b9$export$b8a61e5c71402559);
|
|
36
36
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
37
37
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
38
|
-
const $efbdd2dab4314170$export$83d89fbfd8236492 = "1.5.
|
|
38
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "1.5.10";
|
|
39
39
|
const $ef516b1f92253963$export$8e769ad4338a911e = {
|
|
40
40
|
usedLocale: (0, $2kiy7$solidjs.createSignal)((0, $2kiy7$depictaiuilocales.defaultLocale)),
|
|
41
41
|
search_instances: new Map(),
|
|
@@ -51,7 +51,8 @@ const $ef516b1f92253963$export$8e769ad4338a911e = {
|
|
|
51
51
|
search_page_in_dom: (0, $2kiy7$solidjs.createSignal)(false),
|
|
52
52
|
category_page_in_dom: (0, $2kiy7$solidjs.createSignal)(false),
|
|
53
53
|
provider_is_updating: (0, $2kiy7$solidjs.createSignal)(false),
|
|
54
|
-
enable_content_search: (0, $2kiy7$solidjs.createSignal)()
|
|
54
|
+
enable_content_search: (0, $2kiy7$solidjs.createSignal)(),
|
|
55
|
+
category_meta_title_suffix: (0, $2kiy7$solidjs.createSignal)()
|
|
55
56
|
};
|
|
56
57
|
class $e9048b15cf1e8792$export$d0f82e3ef89b1f22 extends (0, $2kiy7$react.Component) {
|
|
57
58
|
constructor(props) {
|
|
@@ -375,7 +376,8 @@ function $d944107b1e0acdae$export$248b95d5073d5bab(disposable, stateKey) {
|
|
|
375
376
|
const {
|
|
376
377
|
usedLocale: [get_locale],
|
|
377
378
|
merchant: [get_merchant],
|
|
378
|
-
market: [get_market]
|
|
379
|
+
market: [get_market],
|
|
380
|
+
category_meta_title_suffix: [get_category_meta_title_suffix]
|
|
379
381
|
} = (0, $ef516b1f92253963$export$8e769ad4338a911e);
|
|
380
382
|
const instance = new (0, $2kiy7$depictaiui.DepictCategory)({
|
|
381
383
|
api: (0, $ef516b1f92253963$export$8e769ad4338a911e).api,
|
|
@@ -395,6 +397,7 @@ function $d944107b1e0acdae$export$248b95d5073d5bab(disposable, stateKey) {
|
|
|
395
397
|
if (new_market) instance.market = new_market;
|
|
396
398
|
});
|
|
397
399
|
(0, $2kiy7$solidjs.createComputed)(() => instance.localization = get_locale());
|
|
400
|
+
(0, $2kiy7$solidjs.createComputed)(() => instance.meta_title_suffix = get_category_meta_title_suffix());
|
|
398
401
|
return {
|
|
399
402
|
instance: instance,
|
|
400
403
|
dispose: dispose,
|
|
@@ -416,7 +419,7 @@ function $6f994ff16ce375bb$export$9fac37a9c21c2f3b(props) {
|
|
|
416
419
|
}
|
|
417
420
|
}
|
|
418
421
|
function $6f994ff16ce375bb$var$ActualDepictProvider(props) {
|
|
419
|
-
var _props$search;
|
|
422
|
+
var _props$search, _props$category;
|
|
420
423
|
const {
|
|
421
424
|
children: children,
|
|
422
425
|
navigateFunction: navigateFunction,
|
|
@@ -443,6 +446,7 @@ function $6f994ff16ce375bb$var$ActualDepictProvider(props) {
|
|
|
443
446
|
(0, $ef516b1f92253963$export$8e769ad4338a911e).metaData = metaData;
|
|
444
447
|
(0, $ef516b1f92253963$export$8e769ad4338a911e).search_query_url_param_name = urlParamName;
|
|
445
448
|
(0, $ef516b1f92253963$export$8e769ad4338a911e).enableCategorySuggestions = enableCategorySuggestions;
|
|
449
|
+
(0, $ef516b1f92253963$export$8e769ad4338a911e).category_meta_title_suffix[1]((_props$category = props.category) === null || _props$category === void 0 ? void 0 : _props$category.metaTitleSuffix);
|
|
446
450
|
(0, $18f442be2cc59de2$export$47e064413edabf36)(merchant, market, userId, sessionId);
|
|
447
451
|
if (!market || !merchant) return (0, $2kiy7$react.createElement)((0, $2kiy7$react.Fragment), null, children);
|
|
448
452
|
(0, $ef516b1f92253963$export$8e769ad4338a911e).market[1](market);
|
package/ES10/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BaseProductListingConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } from "@depict-ai/ui/ES10";
|
|
1
|
+
import { BaseProductListingConfig, BaseProviderConfig, BaseSearchProviderConfig, BaseCategoryProviderConfig, ModernDisplayWithPageUrl, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } from "@depict-ai/ui/ES10";
|
|
2
2
|
import { Display, ModernDisplay } from "@depict-ai/utilishared/ES10";
|
|
3
3
|
import React, { ReactNode, PropsWithChildren, ReactElement } from "react";
|
|
4
4
|
import { DPC } from "@depict-ai/dpc/ES10";
|
|
5
5
|
import { Locale } from "@depict-ai/ui/locales/ES10";
|
|
6
|
-
export const version = "1.5.
|
|
6
|
+
export const version = "1.5.10";
|
|
7
7
|
interface PLPConfig<T extends Display> extends BaseProductListingConfig {
|
|
8
8
|
/**
|
|
9
9
|
* The product card to use for rendering products.
|
|
@@ -112,6 +112,10 @@ type ProviderConfig<OriginalDisplay extends Display, OutputDisplay extends Moder
|
|
|
112
112
|
* Options that are required for search functionality.
|
|
113
113
|
*/
|
|
114
114
|
search?: BaseSearchProviderConfig;
|
|
115
|
+
/**
|
|
116
|
+
* Options that can be used for category page functionality.
|
|
117
|
+
*/
|
|
118
|
+
category?: BaseCategoryProviderConfig;
|
|
115
119
|
};
|
|
116
120
|
/**
|
|
117
121
|
* The DepictProvider is a wrapper component that should be used to wrap any component that uses Depict components.
|
package/ES10/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { DPC as $jb2Oo$DPC } from "@depict-ai/dpc/ES10";
|
|
|
13
13
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
14
14
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
15
15
|
register_es_version("react-ui", "ES10");
|
|
16
|
-
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "1.5.
|
|
16
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "1.5.10";
|
|
17
17
|
const $8c691d7f86317052$export$8e769ad4338a911e = {
|
|
18
18
|
usedLocale: (0, $jb2Oo$createSignal)((0, $jb2Oo$defaultLocale)),
|
|
19
19
|
search_instances: new Map(),
|
|
@@ -29,7 +29,8 @@ const $8c691d7f86317052$export$8e769ad4338a911e = {
|
|
|
29
29
|
search_page_in_dom: (0, $jb2Oo$createSignal)(false),
|
|
30
30
|
category_page_in_dom: (0, $jb2Oo$createSignal)(false),
|
|
31
31
|
provider_is_updating: (0, $jb2Oo$createSignal)(false),
|
|
32
|
-
enable_content_search: (0, $jb2Oo$createSignal)()
|
|
32
|
+
enable_content_search: (0, $jb2Oo$createSignal)(),
|
|
33
|
+
category_meta_title_suffix: (0, $jb2Oo$createSignal)()
|
|
33
34
|
};
|
|
34
35
|
class $88d93ed7309e90d1$export$d0f82e3ef89b1f22 extends (0, $jb2Oo$Component) {
|
|
35
36
|
constructor(props) {
|
|
@@ -353,7 +354,8 @@ function $b1c85026e863c95b$export$248b95d5073d5bab(disposable, stateKey) {
|
|
|
353
354
|
const {
|
|
354
355
|
usedLocale: [get_locale],
|
|
355
356
|
merchant: [get_merchant],
|
|
356
|
-
market: [get_market]
|
|
357
|
+
market: [get_market],
|
|
358
|
+
category_meta_title_suffix: [get_category_meta_title_suffix]
|
|
357
359
|
} = (0, $8c691d7f86317052$export$8e769ad4338a911e);
|
|
358
360
|
const instance = new (0, $jb2Oo$DepictCategory)({
|
|
359
361
|
api: (0, $8c691d7f86317052$export$8e769ad4338a911e).api,
|
|
@@ -373,6 +375,7 @@ function $b1c85026e863c95b$export$248b95d5073d5bab(disposable, stateKey) {
|
|
|
373
375
|
if (new_market) instance.market = new_market;
|
|
374
376
|
});
|
|
375
377
|
(0, $jb2Oo$createComputed)(() => instance.localization = get_locale());
|
|
378
|
+
(0, $jb2Oo$createComputed)(() => instance.meta_title_suffix = get_category_meta_title_suffix());
|
|
376
379
|
return {
|
|
377
380
|
instance: instance,
|
|
378
381
|
dispose: dispose,
|
|
@@ -394,7 +397,7 @@ function $18e5b9f66c7ade8e$export$9fac37a9c21c2f3b(props) {
|
|
|
394
397
|
}
|
|
395
398
|
}
|
|
396
399
|
function $18e5b9f66c7ade8e$var$ActualDepictProvider(props) {
|
|
397
|
-
var _props$search;
|
|
400
|
+
var _props$search, _props$category;
|
|
398
401
|
const {
|
|
399
402
|
children: children,
|
|
400
403
|
navigateFunction: navigateFunction,
|
|
@@ -421,6 +424,7 @@ function $18e5b9f66c7ade8e$var$ActualDepictProvider(props) {
|
|
|
421
424
|
(0, $8c691d7f86317052$export$8e769ad4338a911e).metaData = metaData;
|
|
422
425
|
(0, $8c691d7f86317052$export$8e769ad4338a911e).search_query_url_param_name = urlParamName;
|
|
423
426
|
(0, $8c691d7f86317052$export$8e769ad4338a911e).enableCategorySuggestions = enableCategorySuggestions;
|
|
427
|
+
(0, $8c691d7f86317052$export$8e769ad4338a911e).category_meta_title_suffix[1]((_props$category = props.category) === null || _props$category === void 0 ? void 0 : _props$category.metaTitleSuffix);
|
|
424
428
|
(0, $b34796f5ebe3470e$export$47e064413edabf36)(merchant, market, userId, sessionId);
|
|
425
429
|
if (!market || !merchant) return (0, $jb2Oo$createElement)((0, $jb2Oo$Fragment), null, children);
|
|
426
430
|
(0, $8c691d7f86317052$export$8e769ad4338a911e).market[1](market);
|