@depict-ai/ui 1.4.20 → 1.4.22
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/ES10/index.cjs +5 -3
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +159 -157
- package/latest/index.cjs +5 -3
- package/latest/index.d.ts +1 -1
- package/latest/index.js +159 -157
- package/package.json +1 -1
- package/server/ES10/index.cjs +5 -3
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +100 -98
- package/server/latest/index.cjs +5 -3
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +100 -98
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.22",
|
|
4
4
|
"description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
|
|
5
5
|
"packageManager": "yarn@3.2.2",
|
|
6
6
|
"sass": "styles.scss",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
var $3hooq$depictaiutilishared = require("@depict-ai/utilishared/ES10");
|
|
2
2
|
var $3hooq$solidjsweb = require("solid-js/web");
|
|
3
|
-
var $3hooq$depictaiutilisharedlatest = require("@depict-ai/utilishared/latest/ES10");
|
|
4
3
|
var $3hooq$solidjs = require("solid-js");
|
|
5
4
|
var $3hooq$babelruntimehelpersclassPrivateFieldSet = require("@babel/runtime/helpers/classPrivateFieldSet");
|
|
6
5
|
var $3hooq$babelruntimehelpersclassPrivateFieldGet = require("@babel/runtime/helpers/classPrivateFieldGet");
|
|
@@ -65,10 +64,10 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
|
|
|
65
64
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
|
|
66
65
|
$parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
|
|
67
66
|
/*! Depict.ai search and product listing SDK */
|
|
68
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "1.4.
|
|
67
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "1.4.22";
|
|
69
68
|
function $858fdcf73148519f$export$e6fffe67d4cdd848(whatToWatch) {
|
|
70
69
|
const [size, setSize] = $3hooq$solidjs.createSignal(0);
|
|
71
|
-
const resizeObserver = new ResizeObserver($3hooq$
|
|
70
|
+
const resizeObserver = new ResizeObserver($3hooq$depictaiutilishared.catchify(records => {
|
|
72
71
|
for (let j = 0; j < records.length; j++) {
|
|
73
72
|
const {
|
|
74
73
|
width: width
|
|
@@ -3064,6 +3063,7 @@ function $19438fea513c9d01$export$5e4aed86c12acdd9(_ref) {
|
|
|
3064
3063
|
last_loaded = +new Date();
|
|
3065
3064
|
is_first_load = true;
|
|
3066
3065
|
});
|
|
3066
|
+
// percentage_in_view_ has equals: false so it should update even when set to the same value. That is to make sure that if the user bounces around below the "viewport" of our product listing we still start fetching as soon as is_loading_more becomes false again and we get IntersectionObserverEntries
|
|
3067
3067
|
$3hooq$solidjs.createEffect($3hooq$depictaiutilishared.catchify(async () => {
|
|
3068
3068
|
const be_above_percentage = is_first_load ? 50 : 75; // if first load, load earlier
|
|
3069
3069
|
if (percentage_in_view_() < be_above_percentage || is_loading_more) return;
|
|
@@ -3136,6 +3136,8 @@ function $45c16e404a883f74$export$63dd0350f8559dda(_ref) {
|
|
|
3136
3136
|
// No product card in view and not after last card, assume first card
|
|
3137
3137
|
return 0;
|
|
3138
3138
|
return last / displays_by_key_().size * 100;
|
|
3139
|
+
}, undefined, {
|
|
3140
|
+
equals: false
|
|
3139
3141
|
});
|
|
3140
3142
|
}
|
|
3141
3143
|
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
|
-
export const version = "1.4.
|
|
10
|
+
export const version = "1.4.22";
|
|
11
11
|
/**
|
|
12
12
|
* Returns an accessor that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
13
13
|
*/
|