@depict-ai/ui 4.8.24 → 4.8.26
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 +25 -15
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +25 -15
- package/latest/index.cjs +24 -15
- package/latest/index.d.ts +1 -1
- package/latest/index.js +24 -15
- package/package.json +1 -1
- package/server/ES10/index.cjs +25 -15
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +25 -15
- package/server/latest/index.cjs +24 -15
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +24 -15
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.26";
|
|
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,34 +7649,44 @@ 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
|
+
var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
|
|
7656
|
+
const maxDips = 3;
|
|
7656
7657
|
const noDipsBelow = 20;
|
|
7657
7658
|
const fpsOverTime = [];
|
|
7659
|
+
let dipsLeft = maxDips;
|
|
7660
|
+
let start = performance.now();
|
|
7658
7661
|
let cleanedUp = false;
|
|
7659
7662
|
let lastTime;
|
|
7660
7663
|
const check = () => requestAnimationFrame($52FdA$depictaiutilishared.catchify(time => {
|
|
7661
7664
|
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;
|
|
7665
|
+
if (lastTime != undefined) {
|
|
7666
|
+
const fps = 1000 / (time - lastTime);
|
|
7667
|
+
fpsOverTime.push(fps);
|
|
7668
|
+
if (fps < noDipsBelow && !dipsLeft--) {
|
|
7669
|
+
$52FdA$depictaiutilishared.dlog("FPS dipped below ".concat(noDipsBelow, " to ").concat(fps, ", bailing from requestIdleCallback shortcut - rIC seems legit"), fpsOverTime);
|
|
7670
|
+
return;
|
|
7671
|
+
}
|
|
7672
7672
|
}
|
|
7673
7673
|
lastTime = time;
|
|
7674
7674
|
if (time <= start + checkDuration) check();else {
|
|
7675
|
-
$52FdA$depictaiutilishared.dlog("Short-circuiting requestIdleCallback (probably bugged) due to
|
|
7675
|
+
$52FdA$depictaiutilishared.dlog("Short-circuiting requestIdleCallback (probably bugged) due to only ", maxDips - dipsLeft, " dips below ", noDipsBelow, " FPS for ", checkDuration, "ms. FPS:", fpsOverTime);
|
|
7676
7676
|
runWhenNoDips();
|
|
7677
7677
|
}
|
|
7678
7678
|
}));
|
|
7679
|
-
check
|
|
7679
|
+
// If page hasn't loaded yet, wait for it to load before starting the check
|
|
7680
|
+
// This is because the first few frames until the load event are usually slower
|
|
7681
|
+
const page_hasnt_loaded =
|
|
7682
|
+
// @ts-ignore
|
|
7683
|
+
(globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$performan = globalThis.performance) === null || _globalThis$performan === void 0 ? void 0 : (_globalThis$performan2 = _globalThis$performan.getEntriesByType) === null || _globalThis$performan2 === void 0 ? void 0 : (_globalThis$performan3 = _globalThis$performan2.call(_globalThis$performan, "navigation")) === null || _globalThis$performan3 === void 0 ? void 0 : (_globalThis$performan4 = _globalThis$performan3.every) === null || _globalThis$performan4 === void 0 ? void 0 : _globalThis$performan4.call(_globalThis$performan3, e => e === null || e === void 0 ? void 0 : e.loadEventEnd)) === false;
|
|
7684
|
+
if (page_hasnt_loaded) addEventListener("load", () => {
|
|
7685
|
+
start = performance.now();
|
|
7686
|
+
check();
|
|
7687
|
+
}, {
|
|
7688
|
+
once: true
|
|
7689
|
+
});else check();
|
|
7680
7690
|
return () => cleanedUp = true;
|
|
7681
7691
|
}
|
|
7682
7692
|
const $858fdcf73148519f$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
|
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.26";
|
|
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.26";
|
|
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,34 +7544,44 @@ 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
|
+
var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
|
|
7551
|
+
const maxDips = 3;
|
|
7551
7552
|
const noDipsBelow = 20;
|
|
7552
7553
|
const fpsOverTime = [];
|
|
7554
|
+
let dipsLeft = maxDips;
|
|
7555
|
+
let start = performance.now();
|
|
7553
7556
|
let cleanedUp = false;
|
|
7554
7557
|
let lastTime;
|
|
7555
7558
|
const check = () => requestAnimationFrame($8tj43$catchify1(time => {
|
|
7556
7559
|
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;
|
|
7560
|
+
if (lastTime != undefined) {
|
|
7561
|
+
const fps = 1000 / (time - lastTime);
|
|
7562
|
+
fpsOverTime.push(fps);
|
|
7563
|
+
if (fps < noDipsBelow && !dipsLeft--) {
|
|
7564
|
+
$8tj43$dlog("FPS dipped below ".concat(noDipsBelow, " to ").concat(fps, ", bailing from requestIdleCallback shortcut - rIC seems legit"), fpsOverTime);
|
|
7565
|
+
return;
|
|
7566
|
+
}
|
|
7567
7567
|
}
|
|
7568
7568
|
lastTime = time;
|
|
7569
7569
|
if (time <= start + checkDuration) check();else {
|
|
7570
|
-
$8tj43$dlog("Short-circuiting requestIdleCallback (probably bugged) due to
|
|
7570
|
+
$8tj43$dlog("Short-circuiting requestIdleCallback (probably bugged) due to only ", maxDips - dipsLeft, " dips below ", noDipsBelow, " FPS for ", checkDuration, "ms. FPS:", fpsOverTime);
|
|
7571
7571
|
runWhenNoDips();
|
|
7572
7572
|
}
|
|
7573
7573
|
}));
|
|
7574
|
-
check
|
|
7574
|
+
// If page hasn't loaded yet, wait for it to load before starting the check
|
|
7575
|
+
// This is because the first few frames until the load event are usually slower
|
|
7576
|
+
const page_hasnt_loaded =
|
|
7577
|
+
// @ts-ignore
|
|
7578
|
+
(globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$performan = globalThis.performance) === null || _globalThis$performan === void 0 ? void 0 : (_globalThis$performan2 = _globalThis$performan.getEntriesByType) === null || _globalThis$performan2 === void 0 ? void 0 : (_globalThis$performan3 = _globalThis$performan2.call(_globalThis$performan, "navigation")) === null || _globalThis$performan3 === void 0 ? void 0 : (_globalThis$performan4 = _globalThis$performan3.every) === null || _globalThis$performan4 === void 0 ? void 0 : _globalThis$performan4.call(_globalThis$performan3, e => e === null || e === void 0 ? void 0 : e.loadEventEnd)) === false;
|
|
7579
|
+
if (page_hasnt_loaded) addEventListener("load", () => {
|
|
7580
|
+
start = performance.now();
|
|
7581
|
+
check();
|
|
7582
|
+
}, {
|
|
7583
|
+
once: true
|
|
7584
|
+
});else check();
|
|
7575
7585
|
return () => cleanedUp = true;
|
|
7576
7586
|
}
|
|
7577
7587
|
const $56047603f9d212b6$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
|
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.26";
|
|
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,34 +7233,43 @@ 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
|
-
const
|
|
7239
|
+
const maxDips = 3;
|
|
7240
7240
|
const noDipsBelow = 20;
|
|
7241
7241
|
const fpsOverTime = [];
|
|
7242
|
+
let dipsLeft = maxDips;
|
|
7243
|
+
let start = performance.now();
|
|
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
|
}));
|
|
7263
|
-
check
|
|
7262
|
+
// If page hasn't loaded yet, wait for it to load before starting the check
|
|
7263
|
+
// This is because the first few frames until the load event are usually slower
|
|
7264
|
+
const page_hasnt_loaded =
|
|
7265
|
+
// @ts-ignore
|
|
7266
|
+
globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
|
|
7267
|
+
if (page_hasnt_loaded) addEventListener("load", () => {
|
|
7268
|
+
start = performance.now();
|
|
7269
|
+
check();
|
|
7270
|
+
}, {
|
|
7271
|
+
once: true
|
|
7272
|
+
});else check();
|
|
7264
7273
|
return () => cleanedUp = true;
|
|
7265
7274
|
}
|
|
7266
7275
|
const $19950faaac026e09$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
|
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.26";
|
|
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.26";
|
|
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,34 +7131,43 @@ 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
|
-
const
|
|
7137
|
+
const maxDips = 3;
|
|
7138
7138
|
const noDipsBelow = 20;
|
|
7139
7139
|
const fpsOverTime = [];
|
|
7140
|
+
let dipsLeft = maxDips;
|
|
7141
|
+
let start = performance.now();
|
|
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
|
}));
|
|
7161
|
-
check
|
|
7160
|
+
// If page hasn't loaded yet, wait for it to load before starting the check
|
|
7161
|
+
// This is because the first few frames until the load event are usually slower
|
|
7162
|
+
const page_hasnt_loaded =
|
|
7163
|
+
// @ts-ignore
|
|
7164
|
+
globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
|
|
7165
|
+
if (page_hasnt_loaded) addEventListener("load", () => {
|
|
7166
|
+
start = performance.now();
|
|
7167
|
+
check();
|
|
7168
|
+
}, {
|
|
7169
|
+
once: true
|
|
7170
|
+
});else check();
|
|
7162
7171
|
return () => cleanedUp = true;
|
|
7163
7172
|
}
|
|
7164
7173
|
const $e8ffe11ed01df0fe$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.26",
|
|
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.26";
|
|
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,34 +6234,44 @@ 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
|
+
var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
|
|
6241
|
+
const maxDips = 3;
|
|
6241
6242
|
const noDipsBelow = 20;
|
|
6242
6243
|
const fpsOverTime = [];
|
|
6244
|
+
let dipsLeft = maxDips;
|
|
6245
|
+
let start = performance.now();
|
|
6243
6246
|
let cleanedUp = false;
|
|
6244
6247
|
let lastTime;
|
|
6245
6248
|
const check = () => requestAnimationFrame($3hooq$depictaiutilishared.catchify(time => {
|
|
6246
6249
|
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;
|
|
6250
|
+
if (lastTime != undefined) {
|
|
6251
|
+
const fps = 1000 / (time - lastTime);
|
|
6252
|
+
fpsOverTime.push(fps);
|
|
6253
|
+
if (fps < noDipsBelow && !dipsLeft--) {
|
|
6254
|
+
$3hooq$depictaiutilishared.dlog("FPS dipped below ".concat(noDipsBelow, " to ").concat(fps, ", bailing from requestIdleCallback shortcut - rIC seems legit"), fpsOverTime);
|
|
6255
|
+
return;
|
|
6256
|
+
}
|
|
6257
6257
|
}
|
|
6258
6258
|
lastTime = time;
|
|
6259
6259
|
if (time <= start + checkDuration) check();else {
|
|
6260
|
-
$3hooq$depictaiutilishared.dlog("Short-circuiting requestIdleCallback (probably bugged) due to
|
|
6260
|
+
$3hooq$depictaiutilishared.dlog("Short-circuiting requestIdleCallback (probably bugged) due to only ", maxDips - dipsLeft, " dips below ", noDipsBelow, " FPS for ", checkDuration, "ms. FPS:", fpsOverTime);
|
|
6261
6261
|
runWhenNoDips();
|
|
6262
6262
|
}
|
|
6263
6263
|
}));
|
|
6264
|
-
check
|
|
6264
|
+
// If page hasn't loaded yet, wait for it to load before starting the check
|
|
6265
|
+
// This is because the first few frames until the load event are usually slower
|
|
6266
|
+
const page_hasnt_loaded =
|
|
6267
|
+
// @ts-ignore
|
|
6268
|
+
(globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$performan = globalThis.performance) === null || _globalThis$performan === void 0 ? void 0 : (_globalThis$performan2 = _globalThis$performan.getEntriesByType) === null || _globalThis$performan2 === void 0 ? void 0 : (_globalThis$performan3 = _globalThis$performan2.call(_globalThis$performan, "navigation")) === null || _globalThis$performan3 === void 0 ? void 0 : (_globalThis$performan4 = _globalThis$performan3.every) === null || _globalThis$performan4 === void 0 ? void 0 : _globalThis$performan4.call(_globalThis$performan3, e => e === null || e === void 0 ? void 0 : e.loadEventEnd)) === false;
|
|
6269
|
+
if (page_hasnt_loaded) addEventListener("load", () => {
|
|
6270
|
+
start = performance.now();
|
|
6271
|
+
check();
|
|
6272
|
+
}, {
|
|
6273
|
+
once: true
|
|
6274
|
+
});else check();
|
|
6265
6275
|
return () => cleanedUp = true;
|
|
6266
6276
|
}
|
|
6267
6277
|
const $858fdcf73148519f$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
|
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.26";
|
|
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.26";
|
|
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,34 +6129,44 @@ 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
|
+
var _globalThis$performan, _globalThis$performan2, _globalThis$performan3, _globalThis$performan4;
|
|
6136
|
+
const maxDips = 3;
|
|
6136
6137
|
const noDipsBelow = 20;
|
|
6137
6138
|
const fpsOverTime = [];
|
|
6139
|
+
let dipsLeft = maxDips;
|
|
6140
|
+
let start = performance.now();
|
|
6138
6141
|
let cleanedUp = false;
|
|
6139
6142
|
let lastTime;
|
|
6140
6143
|
const check = () => requestAnimationFrame($b8hua$catchify1(time => {
|
|
6141
6144
|
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;
|
|
6145
|
+
if (lastTime != undefined) {
|
|
6146
|
+
const fps = 1000 / (time - lastTime);
|
|
6147
|
+
fpsOverTime.push(fps);
|
|
6148
|
+
if (fps < noDipsBelow && !dipsLeft--) {
|
|
6149
|
+
$b8hua$dlog("FPS dipped below ".concat(noDipsBelow, " to ").concat(fps, ", bailing from requestIdleCallback shortcut - rIC seems legit"), fpsOverTime);
|
|
6150
|
+
return;
|
|
6151
|
+
}
|
|
6152
6152
|
}
|
|
6153
6153
|
lastTime = time;
|
|
6154
6154
|
if (time <= start + checkDuration) check();else {
|
|
6155
|
-
$b8hua$dlog("Short-circuiting requestIdleCallback (probably bugged) due to
|
|
6155
|
+
$b8hua$dlog("Short-circuiting requestIdleCallback (probably bugged) due to only ", maxDips - dipsLeft, " dips below ", noDipsBelow, " FPS for ", checkDuration, "ms. FPS:", fpsOverTime);
|
|
6156
6156
|
runWhenNoDips();
|
|
6157
6157
|
}
|
|
6158
6158
|
}));
|
|
6159
|
-
check
|
|
6159
|
+
// If page hasn't loaded yet, wait for it to load before starting the check
|
|
6160
|
+
// This is because the first few frames until the load event are usually slower
|
|
6161
|
+
const page_hasnt_loaded =
|
|
6162
|
+
// @ts-ignore
|
|
6163
|
+
(globalThis === null || globalThis === void 0 ? void 0 : (_globalThis$performan = globalThis.performance) === null || _globalThis$performan === void 0 ? void 0 : (_globalThis$performan2 = _globalThis$performan.getEntriesByType) === null || _globalThis$performan2 === void 0 ? void 0 : (_globalThis$performan3 = _globalThis$performan2.call(_globalThis$performan, "navigation")) === null || _globalThis$performan3 === void 0 ? void 0 : (_globalThis$performan4 = _globalThis$performan3.every) === null || _globalThis$performan4 === void 0 ? void 0 : _globalThis$performan4.call(_globalThis$performan3, e => e === null || e === void 0 ? void 0 : e.loadEventEnd)) === false;
|
|
6164
|
+
if (page_hasnt_loaded) addEventListener("load", () => {
|
|
6165
|
+
start = performance.now();
|
|
6166
|
+
check();
|
|
6167
|
+
}, {
|
|
6168
|
+
once: true
|
|
6169
|
+
});else check();
|
|
6160
6170
|
return () => cleanedUp = true;
|
|
6161
6171
|
}
|
|
6162
6172
|
const $56047603f9d212b6$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
|
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.26";
|
|
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,34 +5871,43 @@ 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
|
-
const
|
|
5877
|
+
const maxDips = 3;
|
|
5878
5878
|
const noDipsBelow = 20;
|
|
5879
5879
|
const fpsOverTime = [];
|
|
5880
|
+
let dipsLeft = maxDips;
|
|
5881
|
+
let start = performance.now();
|
|
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
|
}));
|
|
5901
|
-
check
|
|
5900
|
+
// If page hasn't loaded yet, wait for it to load before starting the check
|
|
5901
|
+
// This is because the first few frames until the load event are usually slower
|
|
5902
|
+
const page_hasnt_loaded =
|
|
5903
|
+
// @ts-ignore
|
|
5904
|
+
globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
|
|
5905
|
+
if (page_hasnt_loaded) addEventListener("load", () => {
|
|
5906
|
+
start = performance.now();
|
|
5907
|
+
check();
|
|
5908
|
+
}, {
|
|
5909
|
+
once: true
|
|
5910
|
+
});else check();
|
|
5902
5911
|
return () => cleanedUp = true;
|
|
5903
5912
|
}
|
|
5904
5913
|
const $19950faaac026e09$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
|
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.26";
|
|
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.26";
|
|
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,34 +5769,43 @@ 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
|
-
const
|
|
5775
|
+
const maxDips = 3;
|
|
5776
5776
|
const noDipsBelow = 20;
|
|
5777
5777
|
const fpsOverTime = [];
|
|
5778
|
+
let dipsLeft = maxDips;
|
|
5779
|
+
let start = performance.now();
|
|
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
|
}));
|
|
5799
|
-
check
|
|
5798
|
+
// If page hasn't loaded yet, wait for it to load before starting the check
|
|
5799
|
+
// This is because the first few frames until the load event are usually slower
|
|
5800
|
+
const page_hasnt_loaded =
|
|
5801
|
+
// @ts-ignore
|
|
5802
|
+
globalThis?.performance?.getEntriesByType?.("navigation")?.every?.(e => e?.loadEventEnd) === false;
|
|
5803
|
+
if (page_hasnt_loaded) addEventListener("load", () => {
|
|
5804
|
+
start = performance.now();
|
|
5805
|
+
check();
|
|
5806
|
+
}, {
|
|
5807
|
+
once: true
|
|
5808
|
+
});else check();
|
|
5800
5809
|
return () => cleanedUp = true;
|
|
5801
5810
|
}
|
|
5802
5811
|
const $e8ffe11ed01df0fe$var$onIdleFunctionsSymbol = /*@__PURE__*/Symbol("onIdleFunctions");
|