@depict-ai/react-ui 0.0.19 → 0.0.20
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 +9 -4
- package/dist-server/index.d.ts +3 -1
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactNode } from "react";
|
|
2
2
|
import { SDKColsAtSize, SDKGridSpacing } from "@depict-ai/ui";
|
|
3
3
|
import { Display } from "@depict-ai/utilishared";
|
|
4
|
-
export function DepictSearchField():
|
|
4
|
+
export function DepictSearchField(): import("react").ReactNode;
|
|
5
5
|
interface SearchConfig {
|
|
6
6
|
merchant: string;
|
|
7
7
|
market: string;
|
|
@@ -9,8 +9,13 @@ interface SearchConfig {
|
|
|
9
9
|
url_param_name?: string;
|
|
10
10
|
enable_category_suggestions?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export function DepictProvider(props: PropsWithChildren<SearchConfig>):
|
|
13
|
-
|
|
12
|
+
export function DepictProvider(props: PropsWithChildren<SearchConfig>): import("react").FunctionComponentElement<{
|
|
13
|
+
children?: import("react").ReactNode;
|
|
14
|
+
}>;
|
|
15
|
+
export function DepictSearchHeader(): import("react").DetailedReactHTMLElement<{
|
|
16
|
+
className: string;
|
|
17
|
+
ref: (e: HTMLElement | null) => HTMLElement | null;
|
|
18
|
+
}, HTMLElement>;
|
|
14
19
|
export function openModal(): void;
|
|
15
20
|
interface SearchPageConfig {
|
|
16
21
|
productCard: (display: Display) => ReactNode;
|
|
@@ -18,4 +23,4 @@ interface SearchPageConfig {
|
|
|
18
23
|
gridSpacing?: SDKGridSpacing;
|
|
19
24
|
includeInputField?: boolean;
|
|
20
25
|
}
|
|
21
|
-
export function DepictSearchPage(opts: SearchPageConfig):
|
|
26
|
+
export function DepictSearchPage(opts: SearchPageConfig): ReactNode;
|
package/dist-server/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export function DepictProvider(props: any): any;
|
|
2
2
|
export function DepictSearchField(): any;
|
|
3
3
|
export function DepictSearchPage(): any;
|
|
4
|
-
export function DepictSearchHeader():
|
|
4
|
+
export function DepictSearchHeader(): import("react").DetailedReactHTMLElement<{
|
|
5
|
+
className: string;
|
|
6
|
+
}, HTMLElement>;
|
|
5
7
|
export function openModal(): void;
|
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.20",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -96,6 +96,8 @@
|
|
|
96
96
|
"@parcel/resolver-default": "^2.8.0",
|
|
97
97
|
"@parcel/transformer-sass": "latest",
|
|
98
98
|
"@types/node": "^18.11.11",
|
|
99
|
+
"@types/react": "^18.0.26",
|
|
100
|
+
"@types/react-dom": "^18.0.9",
|
|
99
101
|
"babel-preset-solid": "latest",
|
|
100
102
|
"jest": "^29.3.1",
|
|
101
103
|
"jest-haste-map": "^29.3.1",
|