@depict-ai/react-ui 1.3.8 → 1.3.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/dist/index.d.ts +1 -1
- package/dist/main.js +7 -5
- package/dist/module.js +7 -5
- 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 +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Display, ModernDisplay } from "@depict-ai/utilishared";
|
|
|
3
3
|
import React, { ReactNode, PropsWithChildren, ReactElement } from "react";
|
|
4
4
|
import { DPC } from "@depict-ai/dpc";
|
|
5
5
|
import { Locale } from "@depict-ai/ui/locales";
|
|
6
|
-
export const version = "1.3.
|
|
6
|
+
export const version = "1.3.5";
|
|
7
7
|
interface PLPConfig<T extends Display> extends BaseProductListingConfig {
|
|
8
8
|
/**
|
|
9
9
|
* The product card to use for rendering products.
|
package/dist/main.js
CHANGED
|
@@ -31,7 +31,7 @@ $parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fb
|
|
|
31
31
|
$parcel$export(module.exports, "Navigation", () => $b742053c966024b4$export$b8a61e5c71402559);
|
|
32
32
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
33
33
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
34
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "1.3.
|
|
34
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "1.3.10";
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
@@ -285,8 +285,9 @@ const $bc389476eeb2b615$export$599d4515591ef232 = (relativeUrl, isReplace, scrol
|
|
|
285
285
|
const target_u_o = new URL(relativeUrl, location.origin);
|
|
286
286
|
const target_page = (0, $b4d0d98857ed9934$export$775e6b3892b5ad52)(target_u_o) ? Page.SEARCH : (0, $b4d0d98857ed9934$export$30c8a12df09be0e4)(target_u_o) ? Page.CATEGORY : Page.OTHER;
|
|
287
287
|
window.next.router[isReplace ? "replace" : "push"](relativeUrl, undefined, {
|
|
288
|
-
shallow: current_page === target_page,
|
|
289
|
-
scroll:
|
|
288
|
+
shallow: current_page === target_page && target_page !== Page.OTHER,
|
|
289
|
+
scroll: // Can't go shallowly to other pages
|
|
290
|
+
scroll
|
|
290
291
|
});
|
|
291
292
|
};
|
|
292
293
|
|
|
@@ -709,8 +710,9 @@ const $e387bd534de10acd$export$804fac5697cfbe35 = (router)=>(relativeUrl, { scro
|
|
|
709
710
|
const target_u_o = new URL(relativeUrl, location.origin);
|
|
710
711
|
const target_page = (0, $b4d0d98857ed9934$export$775e6b3892b5ad52)(target_u_o) ? Page.SEARCH : (0, $b4d0d98857ed9934$export$30c8a12df09be0e4)(target_u_o) ? Page.CATEGORY : Page.OTHER;
|
|
711
712
|
router[replace ? "replace" : "push"](relativeUrl, undefined, {
|
|
712
|
-
shallow: current_page === target_page,
|
|
713
|
-
scroll:
|
|
713
|
+
shallow: current_page === target_page && target_page !== Page.OTHER,
|
|
714
|
+
scroll: // Can't go shallowly to other pages
|
|
715
|
+
scroll
|
|
714
716
|
});
|
|
715
717
|
};
|
|
716
718
|
|
package/dist/module.js
CHANGED
|
@@ -11,7 +11,7 @@ import {DPC as $TZSbU$DPC} from "@depict-ai/dpc";
|
|
|
11
11
|
|
|
12
12
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
13
13
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
14
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "1.3.
|
|
14
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "1.3.10";
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -265,8 +265,9 @@ const $7216ca4c8308a0f9$export$599d4515591ef232 = (relativeUrl, isReplace, scrol
|
|
|
265
265
|
const target_u_o = new URL(relativeUrl, location.origin);
|
|
266
266
|
const target_page = (0, $c83ba9ab79386687$export$775e6b3892b5ad52)(target_u_o) ? Page.SEARCH : (0, $c83ba9ab79386687$export$30c8a12df09be0e4)(target_u_o) ? Page.CATEGORY : Page.OTHER;
|
|
267
267
|
window.next.router[isReplace ? "replace" : "push"](relativeUrl, undefined, {
|
|
268
|
-
shallow: current_page === target_page,
|
|
269
|
-
scroll:
|
|
268
|
+
shallow: current_page === target_page && target_page !== Page.OTHER,
|
|
269
|
+
scroll: // Can't go shallowly to other pages
|
|
270
|
+
scroll
|
|
270
271
|
});
|
|
271
272
|
};
|
|
272
273
|
|
|
@@ -689,8 +690,9 @@ const $a92aa2beb560b8af$export$804fac5697cfbe35 = (router)=>(relativeUrl, { scro
|
|
|
689
690
|
const target_u_o = new URL(relativeUrl, location.origin);
|
|
690
691
|
const target_page = (0, $c83ba9ab79386687$export$775e6b3892b5ad52)(target_u_o) ? Page.SEARCH : (0, $c83ba9ab79386687$export$30c8a12df09be0e4)(target_u_o) ? Page.CATEGORY : Page.OTHER;
|
|
691
692
|
router[replace ? "replace" : "push"](relativeUrl, undefined, {
|
|
692
|
-
shallow: current_page === target_page,
|
|
693
|
-
scroll:
|
|
693
|
+
shallow: current_page === target_page && target_page !== Page.OTHER,
|
|
694
|
+
scroll: // Can't go shallowly to other pages
|
|
695
|
+
scroll
|
|
694
696
|
});
|
|
695
697
|
};
|
|
696
698
|
|
package/dist-server/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ interface UseFetchRecommendationsReturn<T extends Display> {
|
|
|
33
33
|
*/
|
|
34
34
|
fetchRecommendations: (opts: FetchRecsOptions) => Promise<T[]>;
|
|
35
35
|
}
|
|
36
|
-
export const version = "1.3.
|
|
36
|
+
export const version = "1.3.10";
|
|
37
37
|
export function DepictProvider(props: any): any;
|
|
38
38
|
export function SearchPage(): any;
|
|
39
39
|
export function CategoryPage(): any;
|
package/dist-server/main.js
CHANGED
|
@@ -40,7 +40,7 @@ function $35dfe83eec81954c$export$4b564d7f5a1b1d43({ solid_component: solid_comp
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "1.3.
|
|
43
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "1.3.10";
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
|
package/dist-server/module.js
CHANGED
|
@@ -22,7 +22,7 @@ function $4568c09979447ab1$export$4b564d7f5a1b1d43({ solid_component: solid_comp
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "1.3.
|
|
25
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "1.3.10";
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/react-ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.10",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -97,10 +97,10 @@
|
|
|
97
97
|
"README.md"
|
|
98
98
|
],
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@depict-ai/dpc": "^1.0.
|
|
101
|
-
"@depict-ai/plp-styling": "^1.0.
|
|
102
|
-
"@depict-ai/ui": "^1.3.
|
|
103
|
-
"@depict-ai/utilishared": "^1.0.
|
|
100
|
+
"@depict-ai/dpc": "^1.0.29",
|
|
101
|
+
"@depict-ai/plp-styling": "^1.0.28",
|
|
102
|
+
"@depict-ai/ui": "^1.3.8",
|
|
103
|
+
"@depict-ai/utilishared": "^1.0.27",
|
|
104
104
|
"solid-js": "^1.7.3"
|
|
105
105
|
},
|
|
106
106
|
"peerDependencies": {
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"@babel/preset-typescript": "latest",
|
|
115
115
|
"@babel/runtime": "latest",
|
|
116
116
|
"@babel/runtime-corejs3": "latest",
|
|
117
|
-
"@depict-ai/plp-styling": "^1.0.
|
|
117
|
+
"@depict-ai/plp-styling": "^1.0.28",
|
|
118
118
|
"@jest/globals": "^29.3.1",
|
|
119
119
|
"@parcel/babel-preset-env": "latest",
|
|
120
120
|
"@parcel/resolver-default": "^2.8.0",
|