@depict-ai/ui 4.8.24 → 4.8.25
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 +12 -13
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +12 -13
- package/latest/index.cjs +12 -13
- package/latest/index.d.ts +1 -1
- package/latest/index.js +12 -13
- package/package.json +1 -1
- package/server/ES10/index.cjs +12 -13
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +12 -13
- package/server/latest/index.cjs +12 -13
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +12 -13
package/ES10/index.cjs
CHANGED
|
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
115
115
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
116
116
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
117
117
|
/*! Depict.ai search and product listing SDK */
|
|
118
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.
|
|
118
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.25";
|
|
119
119
|
function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
|
|
120
120
|
const signal = $52FdA$solidjs.createSignal(false);
|
|
121
121
|
$52FdA$solidjs.onCleanup($52FdA$depictaiutilishared.javascript_media_query(media_query, _ref => {
|
|
@@ -7649,30 +7649,29 @@ function $4692443b324db9ee$export$566cd7e46bad5c2d(callback) {
|
|
|
7649
7649
|
});
|
|
7650
7650
|
}
|
|
7651
7651
|
/**
|
|
7652
|
-
* Calls the provided callback function if the browser ran for checkDuration ms without
|
|
7652
|
+
* Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
|
|
7653
7653
|
*/
|
|
7654
7654
|
function $4692443b324db9ee$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
|
|
7655
7655
|
const start = performance.now();
|
|
7656
|
+
const maxDips = 3;
|
|
7656
7657
|
const noDipsBelow = 20;
|
|
7657
7658
|
const fpsOverTime = [];
|
|
7659
|
+
let dipsLeft = maxDips;
|
|
7658
7660
|
let cleanedUp = false;
|
|
7659
7661
|
let lastTime;
|
|
7660
7662
|
const check = () => requestAnimationFrame($52FdA$depictaiutilishared.catchify(time => {
|
|
7661
7663
|
if (cleanedUp) return;
|
|
7662
|
-
if (lastTime
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
if (fps < noDipsBelow) {
|
|
7670
|
-
$52FdA$depictaiutilishared.dlog("FPS dipped below ".concat(noDipsBelow, " to ").concat(fps, ", bailing from requestIdleCallback shortcut - rIC seems legit"), fpsOverTime);
|
|
7671
|
-
return;
|
|
7664
|
+
if (lastTime != undefined) {
|
|
7665
|
+
const fps = 1000 / (time - lastTime);
|
|
7666
|
+
fpsOverTime.push(fps);
|
|
7667
|
+
if (fps < noDipsBelow && !dipsLeft--) {
|
|
7668
|
+
$52FdA$depictaiutilishared.dlog("FPS dipped below ".concat(noDipsBelow, " to ").concat(fps, ", bailing from requestIdleCallback shortcut - rIC seems legit"), fpsOverTime);
|
|
7669
|
+
return;
|
|
7670
|
+
}
|
|
7672
7671
|
}
|
|
7673
7672
|
lastTime = time;
|
|
7674
7673
|
if (time <= start + checkDuration) check();else {
|
|
7675
|
-
$52FdA$depictaiutilishared.dlog("Short-circuiting requestIdleCallback (probably bugged) due to
|
|
7674
|
+
$52FdA$depictaiutilishared.dlog("Short-circuiting requestIdleCallback (probably bugged) due to only ", maxDips - dipsLeft, " dips below ", noDipsBelow, " FPS for ", checkDuration, "ms. FPS:", fpsOverTime);
|
|
7676
7675
|
runWhenNoDips();
|
|
7677
7676
|
}
|
|
7678
7677
|
}));
|
package/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.8.
|
|
14
|
+
export const version = "4.8.25";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
package/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.25";
|
|
14
14
|
function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
|
|
15
15
|
const signal = $8tj43$createSignal(false);
|
|
16
16
|
$8tj43$onCleanup($8tj43$javascript_media_query(media_query, _ref => {
|
|
@@ -7544,30 +7544,29 @@ function $29b3cf99ce390e3b$export$566cd7e46bad5c2d(callback) {
|
|
|
7544
7544
|
});
|
|
7545
7545
|
}
|
|
7546
7546
|
/**
|
|
7547
|
-
* Calls the provided callback function if the browser ran for checkDuration ms without
|
|
7547
|
+
* Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
|
|
7548
7548
|
*/
|
|
7549
7549
|
function $29b3cf99ce390e3b$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
|
|
7550
7550
|
const start = performance.now();
|
|
7551
|
+
const maxDips = 3;
|
|
7551
7552
|
const noDipsBelow = 20;
|
|
7552
7553
|
const fpsOverTime = [];
|
|
7554
|
+
let dipsLeft = maxDips;
|
|
7553
7555
|
let cleanedUp = false;
|
|
7554
7556
|
let lastTime;
|
|
7555
7557
|
const check = () => requestAnimationFrame($8tj43$catchify1(time => {
|
|
7556
7558
|
if (cleanedUp) return;
|
|
7557
|
-
if (lastTime
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
if (fps < noDipsBelow) {
|
|
7565
|
-
$8tj43$dlog("FPS dipped below ".concat(noDipsBelow, " to ").concat(fps, ", bailing from requestIdleCallback shortcut - rIC seems legit"), fpsOverTime);
|
|
7566
|
-
return;
|
|
7559
|
+
if (lastTime != undefined) {
|
|
7560
|
+
const fps = 1000 / (time - lastTime);
|
|
7561
|
+
fpsOverTime.push(fps);
|
|
7562
|
+
if (fps < noDipsBelow && !dipsLeft--) {
|
|
7563
|
+
$8tj43$dlog("FPS dipped below ".concat(noDipsBelow, " to ").concat(fps, ", bailing from requestIdleCallback shortcut - rIC seems legit"), fpsOverTime);
|
|
7564
|
+
return;
|
|
7565
|
+
}
|
|
7567
7566
|
}
|
|
7568
7567
|
lastTime = time;
|
|
7569
7568
|
if (time <= start + checkDuration) check();else {
|
|
7570
|
-
$8tj43$dlog("Short-circuiting requestIdleCallback (probably bugged) due to
|
|
7569
|
+
$8tj43$dlog("Short-circuiting requestIdleCallback (probably bugged) due to only ", maxDips - dipsLeft, " dips below ", noDipsBelow, " FPS for ", checkDuration, "ms. FPS:", fpsOverTime);
|
|
7571
7570
|
runWhenNoDips();
|
|
7572
7571
|
}
|
|
7573
7572
|
}));
|
package/latest/index.cjs
CHANGED
|
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
109
109
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
110
110
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
111
111
|
/*! Depict.ai search and product listing SDK */
|
|
112
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.25";
|
|
113
113
|
function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
|
|
114
114
|
const signal = $gVhhF$solidjs.createSignal(false);
|
|
115
115
|
$gVhhF$solidjs.onCleanup($gVhhF$depictaiutilishared.javascript_media_query(media_query, ({
|
|
@@ -7233,30 +7233,29 @@ function $7ea61486b66872b6$export$566cd7e46bad5c2d(callback) {
|
|
|
7233
7233
|
});
|
|
7234
7234
|
}
|
|
7235
7235
|
/**
|
|
7236
|
-
* Calls the provided callback function if the browser ran for checkDuration ms without
|
|
7236
|
+
* Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
|
|
7237
7237
|
*/
|
|
7238
7238
|
function $7ea61486b66872b6$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
|
|
7239
7239
|
const start = performance.now();
|
|
7240
|
+
const maxDips = 3;
|
|
7240
7241
|
const noDipsBelow = 20;
|
|
7241
7242
|
const fpsOverTime = [];
|
|
7243
|
+
let dipsLeft = maxDips;
|
|
7242
7244
|
let cleanedUp = false;
|
|
7243
7245
|
let lastTime;
|
|
7244
7246
|
const check = () => requestAnimationFrame($gVhhF$depictaiutilishared.catchify(time => {
|
|
7245
7247
|
if (cleanedUp) return;
|
|
7246
|
-
if (lastTime
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
if (fps < noDipsBelow) {
|
|
7254
|
-
$gVhhF$depictaiutilishared.dlog(`FPS dipped below ${noDipsBelow} to ${fps}, bailing from requestIdleCallback shortcut - rIC seems legit`, fpsOverTime);
|
|
7255
|
-
return;
|
|
7248
|
+
if (lastTime != undefined) {
|
|
7249
|
+
const fps = 1000 / (time - lastTime);
|
|
7250
|
+
fpsOverTime.push(fps);
|
|
7251
|
+
if (fps < noDipsBelow && !dipsLeft--) {
|
|
7252
|
+
$gVhhF$depictaiutilishared.dlog(`FPS dipped below ${noDipsBelow} to ${fps}, bailing from requestIdleCallback shortcut - rIC seems legit`, fpsOverTime);
|
|
7253
|
+
return;
|
|
7254
|
+
}
|
|
7256
7255
|
}
|
|
7257
7256
|
lastTime = time;
|
|
7258
7257
|
if (time <= start + checkDuration) check();else {
|
|
7259
|
-
$gVhhF$depictaiutilishared.dlog("Short-circuiting requestIdleCallback (probably bugged) due to
|
|
7258
|
+
$gVhhF$depictaiutilishared.dlog("Short-circuiting requestIdleCallback (probably bugged) due to only ", maxDips - dipsLeft, " dips below ", noDipsBelow, " FPS for ", checkDuration, "ms. FPS:", fpsOverTime);
|
|
7260
7259
|
runWhenNoDips();
|
|
7261
7260
|
}
|
|
7262
7261
|
}));
|
package/latest/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.8.
|
|
14
|
+
export const version = "4.8.25";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
package/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.25";
|
|
11
11
|
function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
|
|
12
12
|
const signal = $9HbP8$createSignal(false);
|
|
13
13
|
$9HbP8$onCleanup($9HbP8$javascript_media_query(media_query, ({
|
|
@@ -7131,30 +7131,29 @@ function $f71681eb5d5aae0a$export$566cd7e46bad5c2d(callback) {
|
|
|
7131
7131
|
});
|
|
7132
7132
|
}
|
|
7133
7133
|
/**
|
|
7134
|
-
* Calls the provided callback function if the browser ran for checkDuration ms without
|
|
7134
|
+
* Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
|
|
7135
7135
|
*/
|
|
7136
7136
|
function $f71681eb5d5aae0a$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
|
|
7137
7137
|
const start = performance.now();
|
|
7138
|
+
const maxDips = 3;
|
|
7138
7139
|
const noDipsBelow = 20;
|
|
7139
7140
|
const fpsOverTime = [];
|
|
7141
|
+
let dipsLeft = maxDips;
|
|
7140
7142
|
let cleanedUp = false;
|
|
7141
7143
|
let lastTime;
|
|
7142
7144
|
const check = () => requestAnimationFrame($9HbP8$catchify1(time => {
|
|
7143
7145
|
if (cleanedUp) return;
|
|
7144
|
-
if (lastTime
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
if (fps < noDipsBelow) {
|
|
7152
|
-
$9HbP8$dlog(`FPS dipped below ${noDipsBelow} to ${fps}, bailing from requestIdleCallback shortcut - rIC seems legit`, fpsOverTime);
|
|
7153
|
-
return;
|
|
7146
|
+
if (lastTime != undefined) {
|
|
7147
|
+
const fps = 1000 / (time - lastTime);
|
|
7148
|
+
fpsOverTime.push(fps);
|
|
7149
|
+
if (fps < noDipsBelow && !dipsLeft--) {
|
|
7150
|
+
$9HbP8$dlog(`FPS dipped below ${noDipsBelow} to ${fps}, bailing from requestIdleCallback shortcut - rIC seems legit`, fpsOverTime);
|
|
7151
|
+
return;
|
|
7152
|
+
}
|
|
7154
7153
|
}
|
|
7155
7154
|
lastTime = time;
|
|
7156
7155
|
if (time <= start + checkDuration) check();else {
|
|
7157
|
-
$9HbP8$dlog("Short-circuiting requestIdleCallback (probably bugged) due to
|
|
7156
|
+
$9HbP8$dlog("Short-circuiting requestIdleCallback (probably bugged) due to only ", maxDips - dipsLeft, " dips below ", noDipsBelow, " FPS for ", checkDuration, "ms. FPS:", fpsOverTime);
|
|
7158
7157
|
runWhenNoDips();
|
|
7159
7158
|
}
|
|
7160
7159
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.25",
|
|
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
|
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
115
115
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
116
116
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
117
117
|
/*! Depict.ai search and product listing SDK */
|
|
118
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.
|
|
118
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.25";
|
|
119
119
|
function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
|
|
120
120
|
const signal = $3hooq$solidjs.createSignal(false);
|
|
121
121
|
$3hooq$solidjs.onCleanup($3hooq$depictaiutilishared.javascript_media_query(media_query, _ref => {
|
|
@@ -6234,30 +6234,29 @@ function $4692443b324db9ee$export$566cd7e46bad5c2d(callback) {
|
|
|
6234
6234
|
});
|
|
6235
6235
|
}
|
|
6236
6236
|
/**
|
|
6237
|
-
* Calls the provided callback function if the browser ran for checkDuration ms without
|
|
6237
|
+
* Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
|
|
6238
6238
|
*/
|
|
6239
6239
|
function $4692443b324db9ee$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
|
|
6240
6240
|
const start = performance.now();
|
|
6241
|
+
const maxDips = 3;
|
|
6241
6242
|
const noDipsBelow = 20;
|
|
6242
6243
|
const fpsOverTime = [];
|
|
6244
|
+
let dipsLeft = maxDips;
|
|
6243
6245
|
let cleanedUp = false;
|
|
6244
6246
|
let lastTime;
|
|
6245
6247
|
const check = () => requestAnimationFrame($3hooq$depictaiutilishared.catchify(time => {
|
|
6246
6248
|
if (cleanedUp) return;
|
|
6247
|
-
if (lastTime
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
if (fps < noDipsBelow) {
|
|
6255
|
-
$3hooq$depictaiutilishared.dlog("FPS dipped below ".concat(noDipsBelow, " to ").concat(fps, ", bailing from requestIdleCallback shortcut - rIC seems legit"), fpsOverTime);
|
|
6256
|
-
return;
|
|
6249
|
+
if (lastTime != undefined) {
|
|
6250
|
+
const fps = 1000 / (time - lastTime);
|
|
6251
|
+
fpsOverTime.push(fps);
|
|
6252
|
+
if (fps < noDipsBelow && !dipsLeft--) {
|
|
6253
|
+
$3hooq$depictaiutilishared.dlog("FPS dipped below ".concat(noDipsBelow, " to ").concat(fps, ", bailing from requestIdleCallback shortcut - rIC seems legit"), fpsOverTime);
|
|
6254
|
+
return;
|
|
6255
|
+
}
|
|
6257
6256
|
}
|
|
6258
6257
|
lastTime = time;
|
|
6259
6258
|
if (time <= start + checkDuration) check();else {
|
|
6260
|
-
$3hooq$depictaiutilishared.dlog("Short-circuiting requestIdleCallback (probably bugged) due to
|
|
6259
|
+
$3hooq$depictaiutilishared.dlog("Short-circuiting requestIdleCallback (probably bugged) due to only ", maxDips - dipsLeft, " dips below ", noDipsBelow, " FPS for ", checkDuration, "ms. FPS:", fpsOverTime);
|
|
6261
6260
|
runWhenNoDips();
|
|
6262
6261
|
}
|
|
6263
6262
|
}));
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.8.
|
|
14
|
+
export const version = "4.8.25";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
package/server/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.25";
|
|
14
14
|
function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
|
|
15
15
|
const signal = $b8hua$createSignal(false);
|
|
16
16
|
$b8hua$onCleanup($b8hua$javascript_media_query(media_query, _ref => {
|
|
@@ -6129,30 +6129,29 @@ function $29b3cf99ce390e3b$export$566cd7e46bad5c2d(callback) {
|
|
|
6129
6129
|
});
|
|
6130
6130
|
}
|
|
6131
6131
|
/**
|
|
6132
|
-
* Calls the provided callback function if the browser ran for checkDuration ms without
|
|
6132
|
+
* Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
|
|
6133
6133
|
*/
|
|
6134
6134
|
function $29b3cf99ce390e3b$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
|
|
6135
6135
|
const start = performance.now();
|
|
6136
|
+
const maxDips = 3;
|
|
6136
6137
|
const noDipsBelow = 20;
|
|
6137
6138
|
const fpsOverTime = [];
|
|
6139
|
+
let dipsLeft = maxDips;
|
|
6138
6140
|
let cleanedUp = false;
|
|
6139
6141
|
let lastTime;
|
|
6140
6142
|
const check = () => requestAnimationFrame($b8hua$catchify1(time => {
|
|
6141
6143
|
if (cleanedUp) return;
|
|
6142
|
-
if (lastTime
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
if (fps < noDipsBelow) {
|
|
6150
|
-
$b8hua$dlog("FPS dipped below ".concat(noDipsBelow, " to ").concat(fps, ", bailing from requestIdleCallback shortcut - rIC seems legit"), fpsOverTime);
|
|
6151
|
-
return;
|
|
6144
|
+
if (lastTime != undefined) {
|
|
6145
|
+
const fps = 1000 / (time - lastTime);
|
|
6146
|
+
fpsOverTime.push(fps);
|
|
6147
|
+
if (fps < noDipsBelow && !dipsLeft--) {
|
|
6148
|
+
$b8hua$dlog("FPS dipped below ".concat(noDipsBelow, " to ").concat(fps, ", bailing from requestIdleCallback shortcut - rIC seems legit"), fpsOverTime);
|
|
6149
|
+
return;
|
|
6150
|
+
}
|
|
6152
6151
|
}
|
|
6153
6152
|
lastTime = time;
|
|
6154
6153
|
if (time <= start + checkDuration) check();else {
|
|
6155
|
-
$b8hua$dlog("Short-circuiting requestIdleCallback (probably bugged) due to
|
|
6154
|
+
$b8hua$dlog("Short-circuiting requestIdleCallback (probably bugged) due to only ", maxDips - dipsLeft, " dips below ", noDipsBelow, " FPS for ", checkDuration, "ms. FPS:", fpsOverTime);
|
|
6156
6155
|
runWhenNoDips();
|
|
6157
6156
|
}
|
|
6158
6157
|
}));
|
package/server/latest/index.cjs
CHANGED
|
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
109
109
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
110
110
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
111
111
|
/*! Depict.ai search and product listing SDK */
|
|
112
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.25";
|
|
113
113
|
function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
|
|
114
114
|
const signal = $5vyXB$solidjs.createSignal(false);
|
|
115
115
|
$5vyXB$solidjs.onCleanup($5vyXB$depictaiutilishared.javascript_media_query(media_query, ({
|
|
@@ -5871,30 +5871,29 @@ function $7ea61486b66872b6$export$566cd7e46bad5c2d(callback) {
|
|
|
5871
5871
|
});
|
|
5872
5872
|
}
|
|
5873
5873
|
/**
|
|
5874
|
-
* Calls the provided callback function if the browser ran for checkDuration ms without
|
|
5874
|
+
* Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
|
|
5875
5875
|
*/
|
|
5876
5876
|
function $7ea61486b66872b6$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
|
|
5877
5877
|
const start = performance.now();
|
|
5878
|
+
const maxDips = 3;
|
|
5878
5879
|
const noDipsBelow = 20;
|
|
5879
5880
|
const fpsOverTime = [];
|
|
5881
|
+
let dipsLeft = maxDips;
|
|
5880
5882
|
let cleanedUp = false;
|
|
5881
5883
|
let lastTime;
|
|
5882
5884
|
const check = () => requestAnimationFrame($5vyXB$depictaiutilishared.catchify(time => {
|
|
5883
5885
|
if (cleanedUp) return;
|
|
5884
|
-
if (lastTime
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
if (fps < noDipsBelow) {
|
|
5892
|
-
$5vyXB$depictaiutilishared.dlog(`FPS dipped below ${noDipsBelow} to ${fps}, bailing from requestIdleCallback shortcut - rIC seems legit`, fpsOverTime);
|
|
5893
|
-
return;
|
|
5886
|
+
if (lastTime != undefined) {
|
|
5887
|
+
const fps = 1000 / (time - lastTime);
|
|
5888
|
+
fpsOverTime.push(fps);
|
|
5889
|
+
if (fps < noDipsBelow && !dipsLeft--) {
|
|
5890
|
+
$5vyXB$depictaiutilishared.dlog(`FPS dipped below ${noDipsBelow} to ${fps}, bailing from requestIdleCallback shortcut - rIC seems legit`, fpsOverTime);
|
|
5891
|
+
return;
|
|
5892
|
+
}
|
|
5894
5893
|
}
|
|
5895
5894
|
lastTime = time;
|
|
5896
5895
|
if (time <= start + checkDuration) check();else {
|
|
5897
|
-
$5vyXB$depictaiutilishared.dlog("Short-circuiting requestIdleCallback (probably bugged) due to
|
|
5896
|
+
$5vyXB$depictaiutilishared.dlog("Short-circuiting requestIdleCallback (probably bugged) due to only ", maxDips - dipsLeft, " dips below ", noDipsBelow, " FPS for ", checkDuration, "ms. FPS:", fpsOverTime);
|
|
5898
5897
|
runWhenNoDips();
|
|
5899
5898
|
}
|
|
5900
5899
|
}));
|
package/server/latest/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.8.
|
|
14
|
+
export const version = "4.8.25";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
package/server/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.25";
|
|
11
11
|
function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
|
|
12
12
|
const signal = $i7OB2$createSignal(false);
|
|
13
13
|
$i7OB2$onCleanup($i7OB2$javascript_media_query(media_query, ({
|
|
@@ -5769,30 +5769,29 @@ function $f71681eb5d5aae0a$export$566cd7e46bad5c2d(callback) {
|
|
|
5769
5769
|
});
|
|
5770
5770
|
}
|
|
5771
5771
|
/**
|
|
5772
|
-
* Calls the provided callback function if the browser ran for checkDuration ms without
|
|
5772
|
+
* Calls the provided callback function if the browser ran for checkDuration ms without three frame dip below 20 FPS.
|
|
5773
5773
|
*/
|
|
5774
5774
|
function $f71681eb5d5aae0a$var$checkForFrameDipsUntil(checkDuration, runWhenNoDips) {
|
|
5775
5775
|
const start = performance.now();
|
|
5776
|
+
const maxDips = 3;
|
|
5776
5777
|
const noDipsBelow = 20;
|
|
5777
5778
|
const fpsOverTime = [];
|
|
5779
|
+
let dipsLeft = maxDips;
|
|
5778
5780
|
let cleanedUp = false;
|
|
5779
5781
|
let lastTime;
|
|
5780
5782
|
const check = () => requestAnimationFrame($i7OB2$catchify1(time => {
|
|
5781
5783
|
if (cleanedUp) return;
|
|
5782
|
-
if (lastTime
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
if (fps < noDipsBelow) {
|
|
5790
|
-
$i7OB2$dlog(`FPS dipped below ${noDipsBelow} to ${fps}, bailing from requestIdleCallback shortcut - rIC seems legit`, fpsOverTime);
|
|
5791
|
-
return;
|
|
5784
|
+
if (lastTime != undefined) {
|
|
5785
|
+
const fps = 1000 / (time - lastTime);
|
|
5786
|
+
fpsOverTime.push(fps);
|
|
5787
|
+
if (fps < noDipsBelow && !dipsLeft--) {
|
|
5788
|
+
$i7OB2$dlog(`FPS dipped below ${noDipsBelow} to ${fps}, bailing from requestIdleCallback shortcut - rIC seems legit`, fpsOverTime);
|
|
5789
|
+
return;
|
|
5790
|
+
}
|
|
5792
5791
|
}
|
|
5793
5792
|
lastTime = time;
|
|
5794
5793
|
if (time <= start + checkDuration) check();else {
|
|
5795
|
-
$i7OB2$dlog("Short-circuiting requestIdleCallback (probably bugged) due to
|
|
5794
|
+
$i7OB2$dlog("Short-circuiting requestIdleCallback (probably bugged) due to only ", maxDips - dipsLeft, " dips below ", noDipsBelow, " FPS for ", checkDuration, "ms. FPS:", fpsOverTime);
|
|
5796
5795
|
runWhenNoDips();
|
|
5797
5796
|
}
|
|
5798
5797
|
}));
|