@depict-ai/react-ui 0.0.29 → 0.0.30
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 +4 -2
- package/dist/main.js +1 -1
- package/dist/module.js +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren, ReactNode } from "react";
|
|
2
|
+
// @ts-ignore -- react-router is optional and only used for typing the reactRouterUseNavigate property
|
|
2
3
|
import { useNavigate } from "react-router";
|
|
3
4
|
import { Display } from "@depict-ai/utilishared";
|
|
4
5
|
import { SDKColsAtSize, SDKGridSpacing } from "@depict-ai/ui";
|
|
@@ -10,11 +11,12 @@ type BaseSearchConfig = {
|
|
|
10
11
|
url_param_name?: string;
|
|
11
12
|
enable_category_suggestions?: boolean;
|
|
12
13
|
};
|
|
13
|
-
type
|
|
14
|
+
type ReactRouterUseNavigate = any extends typeof useNavigate ? never : typeof useNavigate;
|
|
15
|
+
type SearchConfig = BaseSearchConfig | ({
|
|
14
16
|
on_navigation: (href: string, shallow?: boolean) => unknown;
|
|
15
17
|
reactRouterUseNavigate?: undefined;
|
|
16
18
|
} & BaseSearchConfig) | ({
|
|
17
|
-
reactRouterUseNavigate:
|
|
19
|
+
reactRouterUseNavigate: ReactRouterUseNavigate;
|
|
18
20
|
on_navigation?: undefined;
|
|
19
21
|
} & BaseSearchConfig);
|
|
20
22
|
export function DepictProvider(props: PropsWithChildren<SearchConfig>): import("react").FunctionComponentElement<{
|
package/dist/main.js
CHANGED
|
@@ -78,6 +78,7 @@ function $a48f3b1a4abf2e0c$export$d2c02478244f91f7() {
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
+
|
|
81
82
|
let $6319748b4f0426f0$var$set = false;
|
|
82
83
|
function $6319748b4f0426f0$export$6453cbc34515a94d(is_search_page) {
|
|
83
84
|
if ($6319748b4f0426f0$var$set) return; // Just being safe
|
|
@@ -119,7 +120,6 @@ function $6319748b4f0426f0$var$removeLotsOfPadding() {
|
|
|
119
120
|
|
|
120
121
|
|
|
121
122
|
|
|
122
|
-
|
|
123
123
|
function $18b830ef84ac138a$export$9fac37a9c21c2f3b(props) {
|
|
124
124
|
if (!props.market || !props.merchant) {
|
|
125
125
|
(0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).required_state_set_[1](false);
|
package/dist/module.js
CHANGED
|
@@ -69,6 +69,7 @@ function $54b0d21b77e719c4$export$d2c02478244f91f7() {
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
72
|
+
|
|
72
73
|
let $8071251ee4e9ffa1$var$set = false;
|
|
73
74
|
function $8071251ee4e9ffa1$export$6453cbc34515a94d(is_search_page) {
|
|
74
75
|
if ($8071251ee4e9ffa1$var$set) return; // Just being safe
|
|
@@ -110,7 +111,6 @@ function $8071251ee4e9ffa1$var$removeLotsOfPadding() {
|
|
|
110
111
|
|
|
111
112
|
|
|
112
113
|
|
|
113
|
-
|
|
114
114
|
function $faf794495ff8b304$export$9fac37a9c21c2f3b(props) {
|
|
115
115
|
if (!props.market || !props.merchant) {
|
|
116
116
|
(0, $42858f023ef23dab$export$8e769ad4338a911e).required_state_set_[1](false);
|
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.30",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -12,8 +12,9 @@
|
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
14
|
"clear-dist": "rm -r -f ./dist",
|
|
15
|
-
"build": "yarn build-server && parcel build --no-source-maps && cp -a src/styles/plp-styling/. dist/styles/",
|
|
15
|
+
"build": "yarn build-server && parcel build --no-source-maps && yarn ignore-optional && cp -a src/styles/plp-styling/. dist/styles/",
|
|
16
16
|
"build-server": "yarn clear-dist && parcel build --no-source-maps ./src-server/index.ts && cp -r ./dist/ ./dist-server && yarn clear-dist",
|
|
17
|
+
"ignore-optional": "node build-scripts/ignore-optional.js",
|
|
17
18
|
"print-included-package-files": "yarn pack --dry-run",
|
|
18
19
|
"typecheck": "yarn g:tsc --build tsconfig.json"
|
|
19
20
|
},
|