@depict-ai/react-ui 0.0.68 → 0.0.71
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 +3 -3
- package/dist/main.js +2 -2
- package/dist/module.js +2 -2
- package/dist-server/index.d.ts +1 -1
- package/dist-server/main.js +1 -1
- package/dist-server/module.js +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ 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
5
|
import { CategoryTitle, embedded_num_products } from "@depict-ai/ui";
|
|
6
|
-
export const version = "0.0.
|
|
6
|
+
export const version = "0.0.71";
|
|
7
7
|
interface PLPConfig<T extends Display> {
|
|
8
8
|
/**
|
|
9
9
|
* The product card to use for rendering products.
|
|
@@ -102,7 +102,7 @@ type DepictBaseConfig = {
|
|
|
102
102
|
* If you're using another library, you can define your own navigate function, that's compatible with the `NavigateFunction` type.
|
|
103
103
|
* ```tsx
|
|
104
104
|
* const navigateFunction = (relativeUrl: string) => {
|
|
105
|
-
* router.push(
|
|
105
|
+
* router.push(relativeUrl);
|
|
106
106
|
* };
|
|
107
107
|
* ```
|
|
108
108
|
*/
|
|
@@ -453,7 +453,7 @@ interface UseDepictSearchFieldReturn {
|
|
|
453
453
|
* ```
|
|
454
454
|
* @returns {JSX.Element}
|
|
455
455
|
*/
|
|
456
|
-
export const useDepictSearchField: (props
|
|
456
|
+
export const useDepictSearchField: (props?: SearchFieldProps) => UseDepictSearchFieldReturn;
|
|
457
457
|
/**
|
|
458
458
|
* Helper function to navigate to a new page depending on the navigation library used.
|
|
459
459
|
*/
|
package/dist/main.js
CHANGED
|
@@ -28,7 +28,7 @@ $parcel$export(module.exports, "Navigation", () => $b742053c966024b4$export$b8a6
|
|
|
28
28
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
29
29
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
30
30
|
|
|
31
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.
|
|
31
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.71";
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -481,7 +481,7 @@ const $5e06ce09dcfaf030$export$bde46b5bb6287cea = (props)=>{
|
|
|
481
481
|
|
|
482
482
|
const $ca5840628781f899$export$45080d603eda647c = (props)=>{
|
|
483
483
|
const SearchField = (0, $5e06ce09dcfaf030$export$bde46b5bb6287cea)({
|
|
484
|
-
alignerRef: props
|
|
484
|
+
alignerRef: props?.alignerRef
|
|
485
485
|
});
|
|
486
486
|
return {
|
|
487
487
|
DepictSearchField: SearchField
|
package/dist/module.js
CHANGED
|
@@ -10,7 +10,7 @@ import {createPortal as $TZSbU$createPortal} from "react-dom";
|
|
|
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
12
|
|
|
13
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.
|
|
13
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "0.0.71";
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -463,7 +463,7 @@ const $a732d80ca44c466d$export$bde46b5bb6287cea = (props)=>{
|
|
|
463
463
|
|
|
464
464
|
const $e3ccaca62718bae4$export$45080d603eda647c = (props)=>{
|
|
465
465
|
const SearchField = (0, $a732d80ca44c466d$export$bde46b5bb6287cea)({
|
|
466
|
-
alignerRef: props
|
|
466
|
+
alignerRef: props?.alignerRef
|
|
467
467
|
});
|
|
468
468
|
return {
|
|
469
469
|
DepictSearchField: SearchField
|
package/dist-server/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ interface UseDepictSearchFieldReturn {
|
|
|
9
9
|
*/
|
|
10
10
|
DepictSearchField: () => ReactElement;
|
|
11
11
|
}
|
|
12
|
-
export const version = "0.0.
|
|
12
|
+
export const version = "0.0.71";
|
|
13
13
|
export function DepictProvider(props: any): any;
|
|
14
14
|
export function DepictSearchPage(): any;
|
|
15
15
|
export function DepictCategoryPage(): any;
|
package/dist-server/main.js
CHANGED
|
@@ -19,7 +19,7 @@ $parcel$export(module.exports, "useDepictSearchModal", () => $41e7e5d85b5e0d49$e
|
|
|
19
19
|
$parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fbfd8236492);
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.
|
|
22
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "0.0.71";
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
|
package/dist-server/module.js
CHANGED
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.71",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"/locales"
|
|
91
91
|
],
|
|
92
92
|
"dependencies": {
|
|
93
|
-
"@depict-ai/ui": "^0.0.
|
|
94
|
-
"@depict-ai/utilishared": "^0.0.
|
|
93
|
+
"@depict-ai/ui": "^0.0.48",
|
|
94
|
+
"@depict-ai/utilishared": "^0.0.46",
|
|
95
95
|
"solid-js": "^1.6.2"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@babel/preset-typescript": "latest",
|
|
105
105
|
"@babel/runtime": "latest",
|
|
106
106
|
"@babel/runtime-corejs3": "latest",
|
|
107
|
-
"@depict-ai/plp-styling": "^0.0.
|
|
107
|
+
"@depict-ai/plp-styling": "^0.0.11",
|
|
108
108
|
"@jest/globals": "^29.3.1",
|
|
109
109
|
"@parcel/babel-preset-env": "latest",
|
|
110
110
|
"@parcel/resolver-default": "^2.8.0",
|