@depict-ai/react-ui 0.0.101 → 0.0.102
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 +2 -2
- package/dist/main.js +2 -4
- package/dist/module.js +3 -6
- package/dist-server/index.d.ts +2 -1
- package/dist-server/main.js +5 -1
- package/dist-server/module.js +5 -2
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { BaseProductListingConfig, BaseProviderConfig, BaseSearchProviderConfig,
|
|
|
2
2
|
import { Display } from "@depict-ai/utilishared";
|
|
3
3
|
import React, { ReactNode, PropsWithChildren, ReactElement } from "react";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales";
|
|
5
|
-
export const version = "0.0.
|
|
5
|
+
export const version = "0.0.102";
|
|
6
6
|
interface PLPConfig<T extends Display> extends BaseProductListingConfig {
|
|
7
7
|
/**
|
|
8
8
|
* The product card to use for rendering products.
|
|
@@ -390,5 +390,5 @@ export const useSearchField: (props?: SearchFieldProps) => UseSearchFieldReturn;
|
|
|
390
390
|
export const Navigation: {
|
|
391
391
|
nextRouterNavigation: (router: import("next/router").NextRouter) => (relativeUrl: string) => void;
|
|
392
392
|
};
|
|
393
|
-
export { CategoryTitle, embedded_num_products as EmbeddedNumProducts } from "@depict-ai/ui";
|
|
393
|
+
export { CategoryTitle, embedded_num_products as EmbeddedNumProducts, fetchDepictRecommendations } from "@depict-ai/ui";
|
|
394
394
|
export type { Locale } from "@depict-ai/ui/locales";
|
package/dist/main.js
CHANGED
|
@@ -23,11 +23,12 @@ $parcel$export(module.exports, "useSearchModal", () => $ae73b15c325f1b21$export$
|
|
|
23
23
|
$parcel$export(module.exports, "useSearchField", () => $913da7f4d0bc77f2$export$9bb30bbe003b82e0);
|
|
24
24
|
$parcel$export(module.exports, "CategoryTitle", () => $b03e4eee8610ebbe$re_export$CategoryTitle);
|
|
25
25
|
$parcel$export(module.exports, "EmbeddedNumProducts", () => $b03e4eee8610ebbe$re_export$EmbeddedNumProducts);
|
|
26
|
+
$parcel$export(module.exports, "fetchDepictRecommendations", () => $b03e4eee8610ebbe$re_export$fetchDepictRecommendations);
|
|
26
27
|
$parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fbfd8236492);
|
|
27
28
|
$parcel$export(module.exports, "Navigation", () => $b742053c966024b4$export$b8a61e5c71402559);
|
|
28
29
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
29
30
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
30
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.
|
|
31
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.102";
|
|
31
32
|
|
|
32
33
|
|
|
33
34
|
|
|
@@ -324,8 +325,6 @@ function $7ad7a3d0011b7b1b$var$SolidSearchPage(props, set_portals) {
|
|
|
324
325
|
]
|
|
325
326
|
],
|
|
326
327
|
grid_spacing: props.gridSpacing ?? "2%",
|
|
327
|
-
// Todo: Do we need this?
|
|
328
|
-
get_product_id: ()=>"",
|
|
329
328
|
depict_search: depict_search,
|
|
330
329
|
product_card_template: (display)=>(0, $b4d0d98857ed9934$export$79c79419c1ef0081)({
|
|
331
330
|
display: display,
|
|
@@ -373,7 +372,6 @@ function $5aa5fcb9f8a2bebc$var$SolidCategoryPage(props, set_portals) {
|
|
|
373
372
|
]
|
|
374
373
|
],
|
|
375
374
|
grid_spacing: props.gridSpacing ?? "2%",
|
|
376
|
-
get_product_id: ()=>"",
|
|
377
375
|
category_title: props.categoryTitlePlugin || (0, $4GYXz$depictaiui.CategoryTitle),
|
|
378
376
|
show_breadcrumbs: props.showBreadcrumbs === undefined ? true : props.showBreadcrumbs,
|
|
379
377
|
show_quicklinks: props.showQuicklinks === undefined ? true : props.showQuicklinks,
|
package/dist/module.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {add_to_version_info as $TZSbU$add_to_version_info, get_user_id as $TZSbU$get_user_id, set_user_id_fn as $TZSbU$set_user_id_fn, catchify as $TZSbU$catchify, observer as $TZSbU$observer, history_replacer as $TZSbU$history_replacer, queueMacroTask as $TZSbU$queueMacroTask, instant_exec_on_suspect_history_change as $TZSbU$instant_exec_on_suspect_history_change, ContainedPlaceholderImage as $TZSbU$ContainedPlaceholderImage, Placeholder as $TZSbU$Placeholder} from "@depict-ai/utilishared";
|
|
2
|
-
import {CategoryTitle as $43099132aad1ceb6$re_export$CategoryTitle, embedded_num_products as $43099132aad1ceb6$re_export$EmbeddedNumProducts, DepictAPI as $TZSbU$DepictAPI, DepictSearch as $TZSbU$DepictSearch, DepictCategory as $TZSbU$DepictCategory, get_search_query_updating_blocked_signal as $TZSbU$get_search_query_updating_blocked_signal, SearchPage as $TZSbU$SearchPage, CategoryPage as $TZSbU$CategoryPage, BreadCrumbs as $TZSbU$BreadCrumbs, QuickLinks as $TZSbU$QuickLinks, open_modal_with_alignment as $TZSbU$open_modal_with_alignment, SearchField as $TZSbU$SearchField} from "@depict-ai/ui";
|
|
2
|
+
import {CategoryTitle as $43099132aad1ceb6$re_export$CategoryTitle, embedded_num_products as $43099132aad1ceb6$re_export$EmbeddedNumProducts, fetchDepictRecommendations as $43099132aad1ceb6$re_export$fetchDepictRecommendations, DepictAPI as $TZSbU$DepictAPI, DepictSearch as $TZSbU$DepictSearch, DepictCategory as $TZSbU$DepictCategory, get_search_query_updating_blocked_signal as $TZSbU$get_search_query_updating_blocked_signal, SearchPage as $TZSbU$SearchPage, CategoryPage as $TZSbU$CategoryPage, BreadCrumbs as $TZSbU$BreadCrumbs, QuickLinks as $TZSbU$QuickLinks, open_modal_with_alignment as $TZSbU$open_modal_with_alignment, SearchField as $TZSbU$SearchField} from "@depict-ai/ui";
|
|
3
3
|
import {createRoot as $TZSbU$createRoot, untrack as $TZSbU$untrack, createSignal as $TZSbU$createSignal, createComponent as $TZSbU$createComponent, Show as $TZSbU$Show, onCleanup as $TZSbU$onCleanup, createComputed as $TZSbU$createComputed} from "solid-js";
|
|
4
4
|
import {useEffect as $TZSbU$useEffect, createElement as $TZSbU$createElement, Fragment as $TZSbU$Fragment, useState as $TZSbU$useState, useRef as $TZSbU$useRef, forwardRef as $TZSbU$forwardRef} from "react";
|
|
5
5
|
import {en as $TZSbU$en} from "@depict-ai/ui/locales";
|
|
@@ -9,7 +9,7 @@ import {createPortal as $TZSbU$createPortal} from "react-dom";
|
|
|
9
9
|
|
|
10
10
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
11
11
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
12
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.
|
|
12
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.102";
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -306,8 +306,6 @@ function $4a678f0c87b12e78$var$SolidSearchPage(props, set_portals) {
|
|
|
306
306
|
]
|
|
307
307
|
],
|
|
308
308
|
grid_spacing: props.gridSpacing ?? "2%",
|
|
309
|
-
// Todo: Do we need this?
|
|
310
|
-
get_product_id: ()=>"",
|
|
311
309
|
depict_search: depict_search,
|
|
312
310
|
product_card_template: (display)=>(0, $c83ba9ab79386687$export$79c79419c1ef0081)({
|
|
313
311
|
display: display,
|
|
@@ -355,7 +353,6 @@ function $48d7f568740a317d$var$SolidCategoryPage(props, set_portals) {
|
|
|
355
353
|
]
|
|
356
354
|
],
|
|
357
355
|
grid_spacing: props.gridSpacing ?? "2%",
|
|
358
|
-
get_product_id: ()=>"",
|
|
359
356
|
category_title: props.categoryTitlePlugin || (0, $43099132aad1ceb6$re_export$CategoryTitle),
|
|
360
357
|
show_breadcrumbs: props.showBreadcrumbs === undefined ? true : props.showBreadcrumbs,
|
|
361
358
|
show_quicklinks: props.showQuicklinks === undefined ? true : props.showQuicklinks,
|
|
@@ -502,4 +499,4 @@ const $97603d19204ec48d$export$b8a61e5c71402559 = {
|
|
|
502
499
|
(0, $TZSbU$add_to_version_info)("react-ui", (0, $c9c4d066f9a5b51b$export$83d89fbfd8236492));
|
|
503
500
|
|
|
504
501
|
|
|
505
|
-
export {$b68a14248b7ef667$export$466cdc317043f6cb as QuickLinks, $f866f7ed9f751af4$export$5646050d516e06bc as BreadCrumbs, $421f32789b6f111f$export$80e99ee6b29cadd2 as ComponentAligner, $5376eb2a386cd90d$export$9fac37a9c21c2f3b as DepictProvider, $48d7f568740a317d$export$f7d2f673fc2f091d as CategoryPage, $4a678f0c87b12e78$export$a54ec244c8863715 as SearchPage, $f446a84f85ba06f6$export$3f37af283f8fb843 as ImagePlaceholder, $cbd250061abf11cb$export$89c6019e4baa40b1 as TextPlaceholder, $70344e5e0d0fea06$export$912994940e660d32 as useSearchModal, $2b886cf548a4775c$export$9bb30bbe003b82e0 as useSearchField, $43099132aad1ceb6$re_export$CategoryTitle as CategoryTitle, $43099132aad1ceb6$re_export$EmbeddedNumProducts as EmbeddedNumProducts, $c9c4d066f9a5b51b$export$83d89fbfd8236492 as version, $97603d19204ec48d$export$b8a61e5c71402559 as Navigation};
|
|
502
|
+
export {$b68a14248b7ef667$export$466cdc317043f6cb as QuickLinks, $f866f7ed9f751af4$export$5646050d516e06bc as BreadCrumbs, $421f32789b6f111f$export$80e99ee6b29cadd2 as ComponentAligner, $5376eb2a386cd90d$export$9fac37a9c21c2f3b as DepictProvider, $48d7f568740a317d$export$f7d2f673fc2f091d as CategoryPage, $4a678f0c87b12e78$export$a54ec244c8863715 as SearchPage, $f446a84f85ba06f6$export$3f37af283f8fb843 as ImagePlaceholder, $cbd250061abf11cb$export$89c6019e4baa40b1 as TextPlaceholder, $70344e5e0d0fea06$export$912994940e660d32 as useSearchModal, $2b886cf548a4775c$export$9bb30bbe003b82e0 as useSearchField, $43099132aad1ceb6$re_export$CategoryTitle as CategoryTitle, $43099132aad1ceb6$re_export$EmbeddedNumProducts as EmbeddedNumProducts, $43099132aad1ceb6$re_export$fetchDepictRecommendations as fetchDepictRecommendations, $c9c4d066f9a5b51b$export$83d89fbfd8236492 as version, $97603d19204ec48d$export$b8a61e5c71402559 as Navigation};
|
package/dist-server/index.d.ts
CHANGED
|
@@ -9,7 +9,8 @@ interface UseSearchFieldReturn {
|
|
|
9
9
|
*/
|
|
10
10
|
SearchField: () => ReactElement;
|
|
11
11
|
}
|
|
12
|
-
export const version = "0.0.
|
|
12
|
+
export const version = "0.0.102";
|
|
13
|
+
export const fetchDepictRecommendations: any;
|
|
13
14
|
export function DepictProvider(props: any): any;
|
|
14
15
|
export function SearchPage(): any;
|
|
15
16
|
export function CategoryPage(): any;
|
package/dist-server/main.js
CHANGED
|
@@ -5,6 +5,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
5
5
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
$parcel$export(module.exports, "fetchDepictRecommendations", () => $41e7e5d85b5e0d49$export$58e808b1db15d3bc);
|
|
8
9
|
$parcel$export(module.exports, "DepictProvider", () => $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b);
|
|
9
10
|
$parcel$export(module.exports, "SearchPage", () => $41e7e5d85b5e0d49$export$a54ec244c8863715);
|
|
10
11
|
$parcel$export(module.exports, "CategoryPage", () => $41e7e5d85b5e0d49$export$f7d2f673fc2f091d);
|
|
@@ -19,9 +20,12 @@ $parcel$export(module.exports, "useSearchModal", () => $41e7e5d85b5e0d49$export$
|
|
|
19
20
|
$parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fbfd8236492);
|
|
20
21
|
|
|
21
22
|
|
|
22
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.
|
|
23
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.102";
|
|
23
24
|
|
|
24
25
|
|
|
26
|
+
const $41e7e5d85b5e0d49$export$58e808b1db15d3bc = ()=>{
|
|
27
|
+
throw new Error("fetchDepictRecommendations is currently not available on the server due to personalisation/user_id related issues. Please only call it on the client");
|
|
28
|
+
};
|
|
25
29
|
function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
|
|
26
30
|
return props.children;
|
|
27
31
|
}
|
package/dist-server/module.js
CHANGED
|
@@ -3,9 +3,12 @@ import {jsx as $1RlIW$jsx} from "react/jsx-runtime";
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.
|
|
6
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.102";
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
const $2b1fdeb83610500f$export$58e808b1db15d3bc = ()=>{
|
|
10
|
+
throw new Error("fetchDepictRecommendations is currently not available on the server due to personalisation/user_id related issues. Please only call it on the client");
|
|
11
|
+
};
|
|
9
12
|
function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
|
|
10
13
|
return props.children;
|
|
11
14
|
}
|
|
@@ -62,4 +65,4 @@ function $2b1fdeb83610500f$export$912994940e660d32() {
|
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
|
|
65
|
-
export {$2b1fdeb83610500f$export$9fac37a9c21c2f3b as DepictProvider, $2b1fdeb83610500f$export$a54ec244c8863715 as SearchPage, $2b1fdeb83610500f$export$f7d2f673fc2f091d as CategoryPage, $2b1fdeb83610500f$export$5646050d516e06bc as BreadCrumbs, $2b1fdeb83610500f$export$466cdc317043f6cb as QuickLinks, $2b1fdeb83610500f$export$80e99ee6b29cadd2 as ComponentAligner, $2b1fdeb83610500f$export$3f37af283f8fb843 as ImagePlaceholder, $2b1fdeb83610500f$export$89c6019e4baa40b1 as TextPlaceholder, $2b1fdeb83610500f$export$9bb30bbe003b82e0 as useSearchField, $2b1fdeb83610500f$export$a7f6cffb6b8ba11c as openModal, $2b1fdeb83610500f$export$912994940e660d32 as useSearchModal, $c9c4d066f9a5b51b$export$83d89fbfd8236492 as version};
|
|
68
|
+
export {$2b1fdeb83610500f$export$58e808b1db15d3bc as fetchDepictRecommendations, $2b1fdeb83610500f$export$9fac37a9c21c2f3b as DepictProvider, $2b1fdeb83610500f$export$a54ec244c8863715 as SearchPage, $2b1fdeb83610500f$export$f7d2f673fc2f091d as CategoryPage, $2b1fdeb83610500f$export$5646050d516e06bc as BreadCrumbs, $2b1fdeb83610500f$export$466cdc317043f6cb as QuickLinks, $2b1fdeb83610500f$export$80e99ee6b29cadd2 as ComponentAligner, $2b1fdeb83610500f$export$3f37af283f8fb843 as ImagePlaceholder, $2b1fdeb83610500f$export$89c6019e4baa40b1 as TextPlaceholder, $2b1fdeb83610500f$export$9bb30bbe003b82e0 as useSearchField, $2b1fdeb83610500f$export$a7f6cffb6b8ba11c as openModal, $2b1fdeb83610500f$export$912994940e660d32 as useSearchModal, $c9c4d066f9a5b51b$export$83d89fbfd8236492 as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/react-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.102",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -96,9 +96,9 @@
|
|
|
96
96
|
"/locales"
|
|
97
97
|
],
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@depict-ai/plp-styling": "^0.0.
|
|
100
|
-
"@depict-ai/ui": "^0.0.
|
|
101
|
-
"@depict-ai/utilishared": "^0.0.
|
|
99
|
+
"@depict-ai/plp-styling": "^0.0.43",
|
|
100
|
+
"@depict-ai/ui": "^0.0.81",
|
|
101
|
+
"@depict-ai/utilishared": "^0.0.85",
|
|
102
102
|
"solid-js": "^1.7.3"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"@babel/preset-typescript": "latest",
|
|
112
112
|
"@babel/runtime": "latest",
|
|
113
113
|
"@babel/runtime-corejs3": "latest",
|
|
114
|
-
"@depict-ai/plp-styling": "^0.0.
|
|
114
|
+
"@depict-ai/plp-styling": "^0.0.43",
|
|
115
115
|
"@jest/globals": "^29.3.1",
|
|
116
116
|
"@parcel/babel-preset-env": "latest",
|
|
117
117
|
"@parcel/resolver-default": "^2.8.0",
|