@depict-ai/ui 4.8.9 → 4.8.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/ES10/index.cjs +5 -3
- package/ES10/index.d.ts +3 -3
- package/ES10/index.js +5 -3
- package/latest/index.cjs +5 -3
- package/latest/index.d.ts +3 -3
- package/latest/index.js +5 -3
- package/package.json +1 -1
- package/server/ES10/index.cjs +5 -3
- package/server/ES10/index.d.ts +3 -3
- package/server/ES10/index.js +5 -3
- package/server/latest/index.cjs +5 -3
- package/server/latest/index.d.ts +3 -3
- package/server/latest/index.js +5 -3
package/ES10/index.cjs
CHANGED
|
@@ -114,7 +114,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
114
114
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
115
115
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
116
116
|
/*! Depict.ai search and product listing SDK */
|
|
117
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.
|
|
117
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.10";
|
|
118
118
|
function $054b1113e4897051$export$54c6d6ff54e72743(whatToWatch) {
|
|
119
119
|
const [width, setWidth] = $52FdA$solidjs.createSignal(0);
|
|
120
120
|
const [height, setHeight] = $52FdA$solidjs.createSignal(0);
|
|
@@ -10217,7 +10217,7 @@ function $a162c9a08dc208c2$export$b288c38ae3fddb56(_ref) {
|
|
|
10217
10217
|
var _sources, _sources$find;
|
|
10218
10218
|
const owner = $52FdA$solidjs.getOwner();
|
|
10219
10219
|
const signal = owner === null || owner === void 0 ? void 0 : (_sources = owner.sources) === null || _sources === void 0 ? void 0 : (_sources$find = _sources.find) === null || _sources$find === void 0 ? void 0 : _sources$find.call(_sources, source => source.value === read_local_cache());
|
|
10220
|
-
if (executions >
|
|
10220
|
+
if (executions > 50) {
|
|
10221
10221
|
var _signal$observers, _signal$observers$map;
|
|
10222
10222
|
// We're probably in an infinite loop, let's just stop
|
|
10223
10223
|
$52FdA$depictaiutilishared.report(new Error("Infinite loop detected in create_modified_filters"), "error", {
|
|
@@ -11620,10 +11620,12 @@ function $d6ed4dbb6507996d$export$b3ad617e9036868(_ref, input_field, alignment,
|
|
|
11620
11620
|
const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
|
|
11621
11621
|
const addToLeftValue = alignment & $d6ed4dbb6507996d$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
|
|
11622
11622
|
const leftWithoutScroll = rect.left + addToLeftValue;
|
|
11623
|
+
const topValue = rect.top + (includeScroll ? scrollY : 0);
|
|
11623
11624
|
setModalBodyStyle(old_value => ({
|
|
11624
11625
|
...old_value,
|
|
11626
|
+
// Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
|
|
11625
11627
|
...(alignment & $d6ed4dbb6507996d$export$3f238c96c45e6cc6 ? {
|
|
11626
|
-
top: "".concat(
|
|
11628
|
+
top: "".concat(topValue >= 0 ? topValue : 0, "px")
|
|
11627
11629
|
} : {}),
|
|
11628
11630
|
...(alignment & $d6ed4dbb6507996d$export$7895aadd1956b1c7 ? {
|
|
11629
11631
|
left: "".concat(leftWithoutScroll + (includeScroll ? scrollX : 0), "px")
|
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.10";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
17
17
|
*/
|
|
@@ -1512,7 +1512,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1512
1512
|
* Open the modal with support for alignment.
|
|
1513
1513
|
* @returns {void}
|
|
1514
1514
|
*/
|
|
1515
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1515
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1516
1516
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1517
1517
|
export interface PageReplacer {
|
|
1518
1518
|
readonly render_: () => Node_Array;
|
|
@@ -1591,5 +1591,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1591
1591
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1592
1592
|
layout?: PossibleLayout;
|
|
1593
1593
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1594
|
-
}): import("@depict-ai/utilishared").Node_Array;
|
|
1594
|
+
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1595
1595
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
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.10";
|
|
14
14
|
function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
15
15
|
const [width, setWidth] = $8tj43$createSignal(0);
|
|
16
16
|
const [height, setHeight] = $8tj43$createSignal(0);
|
|
@@ -10113,7 +10113,7 @@ function $44aa24b1bb793549$export$b288c38ae3fddb56(_ref) {
|
|
|
10113
10113
|
var _sources, _sources$find;
|
|
10114
10114
|
const owner = $8tj43$getOwner();
|
|
10115
10115
|
const signal = owner === null || owner === void 0 ? void 0 : (_sources = owner.sources) === null || _sources === void 0 ? void 0 : (_sources$find = _sources.find) === null || _sources$find === void 0 ? void 0 : _sources$find.call(_sources, source => source.value === read_local_cache());
|
|
10116
|
-
if (executions >
|
|
10116
|
+
if (executions > 50) {
|
|
10117
10117
|
var _signal$observers, _signal$observers$map;
|
|
10118
10118
|
// We're probably in an infinite loop, let's just stop
|
|
10119
10119
|
$8tj43$report(new Error("Infinite loop detected in create_modified_filters"), "error", {
|
|
@@ -11516,10 +11516,12 @@ function $1308a7816c3d4f2d$export$b3ad617e9036868(_ref, input_field, alignment,
|
|
|
11516
11516
|
const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
|
|
11517
11517
|
const addToLeftValue = alignment & $1308a7816c3d4f2d$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
|
|
11518
11518
|
const leftWithoutScroll = rect.left + addToLeftValue;
|
|
11519
|
+
const topValue = rect.top + (includeScroll ? scrollY : 0);
|
|
11519
11520
|
setModalBodyStyle(old_value => ({
|
|
11520
11521
|
...old_value,
|
|
11522
|
+
// Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
|
|
11521
11523
|
...(alignment & $1308a7816c3d4f2d$export$3f238c96c45e6cc6 ? {
|
|
11522
|
-
top: "".concat(
|
|
11524
|
+
top: "".concat(topValue >= 0 ? topValue : 0, "px")
|
|
11523
11525
|
} : {}),
|
|
11524
11526
|
...(alignment & $1308a7816c3d4f2d$export$7895aadd1956b1c7 ? {
|
|
11525
11527
|
left: "".concat(leftWithoutScroll + (includeScroll ? scrollX : 0), "px")
|
package/latest/index.cjs
CHANGED
|
@@ -108,7 +108,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
108
108
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
109
109
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
110
110
|
/*! Depict.ai search and product listing SDK */
|
|
111
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.
|
|
111
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.10";
|
|
112
112
|
function $128302ab61dab8f1$export$54c6d6ff54e72743(whatToWatch) {
|
|
113
113
|
const [width, setWidth] = $gVhhF$solidjs.createSignal(0);
|
|
114
114
|
const [height, setHeight] = $gVhhF$solidjs.createSignal(0);
|
|
@@ -9691,7 +9691,7 @@ function $70482f04605572e2$export$b288c38ae3fddb56({
|
|
|
9691
9691
|
JSON.stringify(new_local_filter_state) !== JSON.stringify(read_local_cache())) {
|
|
9692
9692
|
const owner = $gVhhF$solidjs.getOwner();
|
|
9693
9693
|
const signal = owner?.sources?.find?.(source => source.value === read_local_cache());
|
|
9694
|
-
if (executions >
|
|
9694
|
+
if (executions > 50) {
|
|
9695
9695
|
// We're probably in an infinite loop, let's just stop
|
|
9696
9696
|
$gVhhF$depictaiutilishared.report(new Error("Infinite loop detected in create_modified_filters"), "error", {
|
|
9697
9697
|
executions: executions,
|
|
@@ -10935,10 +10935,12 @@ function $fd463ff0edb29915$export$b3ad617e9036868({
|
|
|
10935
10935
|
const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
|
|
10936
10936
|
const addToLeftValue = alignment & $fd463ff0edb29915$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
|
|
10937
10937
|
const leftWithoutScroll = rect.left + addToLeftValue;
|
|
10938
|
+
const topValue = rect.top + (includeScroll ? scrollY : 0);
|
|
10938
10939
|
setModalBodyStyle(old_value => ({
|
|
10939
10940
|
...old_value,
|
|
10941
|
+
// Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
|
|
10940
10942
|
...(alignment & $fd463ff0edb29915$export$3f238c96c45e6cc6 ? {
|
|
10941
|
-
top: `${
|
|
10943
|
+
top: `${topValue >= 0 ? topValue : 0}px`
|
|
10942
10944
|
} : {}),
|
|
10943
10945
|
...(alignment & $fd463ff0edb29915$export$7895aadd1956b1c7 ? {
|
|
10944
10946
|
left: `${leftWithoutScroll + (includeScroll ? scrollX : 0)}px`
|
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.10";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
17
17
|
*/
|
|
@@ -1512,7 +1512,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1512
1512
|
* Open the modal with support for alignment.
|
|
1513
1513
|
* @returns {void}
|
|
1514
1514
|
*/
|
|
1515
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1515
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1516
1516
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1517
1517
|
export interface PageReplacer {
|
|
1518
1518
|
readonly render_: () => Node_Array;
|
|
@@ -1591,5 +1591,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1591
1591
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1592
1592
|
layout?: PossibleLayout;
|
|
1593
1593
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1594
|
-
}): import("@depict-ai/utilishared").Node_Array;
|
|
1594
|
+
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1595
1595
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { dlog as $9HbP8$dlog, catchify as $9HbP8$catchify1, ListenableSet as $9H
|
|
|
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.10";
|
|
11
11
|
function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
|
|
12
12
|
const [width, setWidth] = $9HbP8$createSignal(0);
|
|
13
13
|
const [height, setHeight] = $9HbP8$createSignal(0);
|
|
@@ -9590,7 +9590,7 @@ function $5efb5894079b220e$export$b288c38ae3fddb56({
|
|
|
9590
9590
|
JSON.stringify(new_local_filter_state) !== JSON.stringify(read_local_cache())) {
|
|
9591
9591
|
const owner = $9HbP8$getOwner();
|
|
9592
9592
|
const signal = owner?.sources?.find?.(source => source.value === read_local_cache());
|
|
9593
|
-
if (executions >
|
|
9593
|
+
if (executions > 50) {
|
|
9594
9594
|
// We're probably in an infinite loop, let's just stop
|
|
9595
9595
|
$9HbP8$report(new Error("Infinite loop detected in create_modified_filters"), "error", {
|
|
9596
9596
|
executions: executions,
|
|
@@ -10834,10 +10834,12 @@ function $b6d5529b253681aa$export$b3ad617e9036868({
|
|
|
10834
10834
|
const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
|
|
10835
10835
|
const addToLeftValue = alignment & $b6d5529b253681aa$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
|
|
10836
10836
|
const leftWithoutScroll = rect.left + addToLeftValue;
|
|
10837
|
+
const topValue = rect.top + (includeScroll ? scrollY : 0);
|
|
10837
10838
|
setModalBodyStyle(old_value => ({
|
|
10838
10839
|
...old_value,
|
|
10840
|
+
// Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
|
|
10839
10841
|
...(alignment & $b6d5529b253681aa$export$3f238c96c45e6cc6 ? {
|
|
10840
|
-
top: `${
|
|
10842
|
+
top: `${topValue >= 0 ? topValue : 0}px`
|
|
10841
10843
|
} : {}),
|
|
10842
10844
|
...(alignment & $b6d5529b253681aa$export$7895aadd1956b1c7 ? {
|
|
10843
10845
|
left: `${leftWithoutScroll + (includeScroll ? scrollX : 0)}px`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.10",
|
|
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
|
@@ -114,7 +114,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
114
114
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
115
115
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
116
116
|
/*! Depict.ai search and product listing SDK */
|
|
117
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.
|
|
117
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.10";
|
|
118
118
|
function $054b1113e4897051$export$54c6d6ff54e72743(whatToWatch) {
|
|
119
119
|
const [width, setWidth] = $3hooq$solidjs.createSignal(0);
|
|
120
120
|
const [height, setHeight] = $3hooq$solidjs.createSignal(0);
|
|
@@ -8056,7 +8056,7 @@ function $a162c9a08dc208c2$export$b288c38ae3fddb56(_ref) {
|
|
|
8056
8056
|
var _sources, _sources$find;
|
|
8057
8057
|
const owner = $3hooq$solidjs.getOwner();
|
|
8058
8058
|
const signal = owner === null || owner === void 0 ? void 0 : (_sources = owner.sources) === null || _sources === void 0 ? void 0 : (_sources$find = _sources.find) === null || _sources$find === void 0 ? void 0 : _sources$find.call(_sources, source => source.value === read_local_cache());
|
|
8059
|
-
if (executions >
|
|
8059
|
+
if (executions > 50) {
|
|
8060
8060
|
var _signal$observers, _signal$observers$map;
|
|
8061
8061
|
// We're probably in an infinite loop, let's just stop
|
|
8062
8062
|
$3hooq$depictaiutilishared.report(new Error("Infinite loop detected in create_modified_filters"), "error", {
|
|
@@ -9567,10 +9567,12 @@ function $d6ed4dbb6507996d$export$b3ad617e9036868(_ref, input_field, alignment,
|
|
|
9567
9567
|
const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
|
|
9568
9568
|
const addToLeftValue = alignment & $d6ed4dbb6507996d$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
|
|
9569
9569
|
const leftWithoutScroll = rect.left + addToLeftValue;
|
|
9570
|
+
const topValue = rect.top + (includeScroll ? scrollY : 0);
|
|
9570
9571
|
setModalBodyStyle(old_value => ({
|
|
9571
9572
|
...old_value,
|
|
9573
|
+
// Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
|
|
9572
9574
|
...(alignment & $d6ed4dbb6507996d$export$3f238c96c45e6cc6 ? {
|
|
9573
|
-
top: "".concat(
|
|
9575
|
+
top: "".concat(topValue >= 0 ? topValue : 0, "px")
|
|
9574
9576
|
} : {}),
|
|
9575
9577
|
...(alignment & $d6ed4dbb6507996d$export$7895aadd1956b1c7 ? {
|
|
9576
9578
|
left: "".concat(leftWithoutScroll + (includeScroll ? scrollX : 0), "px")
|
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.10";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
17
17
|
*/
|
|
@@ -1512,7 +1512,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1512
1512
|
* Open the modal with support for alignment.
|
|
1513
1513
|
* @returns {void}
|
|
1514
1514
|
*/
|
|
1515
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1515
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1516
1516
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1517
1517
|
export interface PageReplacer {
|
|
1518
1518
|
readonly render_: () => Node_Array;
|
|
@@ -1591,5 +1591,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1591
1591
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1592
1592
|
layout?: PossibleLayout;
|
|
1593
1593
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1594
|
-
}): import("@depict-ai/utilishared").Node_Array;
|
|
1594
|
+
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1595
1595
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
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.10";
|
|
14
14
|
function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
15
15
|
const [width, setWidth] = $b8hua$createSignal(0);
|
|
16
16
|
const [height, setHeight] = $b8hua$createSignal(0);
|
|
@@ -7952,7 +7952,7 @@ function $44aa24b1bb793549$export$b288c38ae3fddb56(_ref) {
|
|
|
7952
7952
|
var _sources, _sources$find;
|
|
7953
7953
|
const owner = $b8hua$getOwner();
|
|
7954
7954
|
const signal = owner === null || owner === void 0 ? void 0 : (_sources = owner.sources) === null || _sources === void 0 ? void 0 : (_sources$find = _sources.find) === null || _sources$find === void 0 ? void 0 : _sources$find.call(_sources, source => source.value === read_local_cache());
|
|
7955
|
-
if (executions >
|
|
7955
|
+
if (executions > 50) {
|
|
7956
7956
|
var _signal$observers, _signal$observers$map;
|
|
7957
7957
|
// We're probably in an infinite loop, let's just stop
|
|
7958
7958
|
$b8hua$report(new Error("Infinite loop detected in create_modified_filters"), "error", {
|
|
@@ -9463,10 +9463,12 @@ function $1308a7816c3d4f2d$export$b3ad617e9036868(_ref, input_field, alignment,
|
|
|
9463
9463
|
const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
|
|
9464
9464
|
const addToLeftValue = alignment & $1308a7816c3d4f2d$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
|
|
9465
9465
|
const leftWithoutScroll = rect.left + addToLeftValue;
|
|
9466
|
+
const topValue = rect.top + (includeScroll ? scrollY : 0);
|
|
9466
9467
|
setModalBodyStyle(old_value => ({
|
|
9467
9468
|
...old_value,
|
|
9469
|
+
// Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
|
|
9468
9470
|
...(alignment & $1308a7816c3d4f2d$export$3f238c96c45e6cc6 ? {
|
|
9469
|
-
top: "".concat(
|
|
9471
|
+
top: "".concat(topValue >= 0 ? topValue : 0, "px")
|
|
9470
9472
|
} : {}),
|
|
9471
9473
|
...(alignment & $1308a7816c3d4f2d$export$7895aadd1956b1c7 ? {
|
|
9472
9474
|
left: "".concat(leftWithoutScroll + (includeScroll ? scrollX : 0), "px")
|
package/server/latest/index.cjs
CHANGED
|
@@ -108,7 +108,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
108
108
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
109
109
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
110
110
|
/*! Depict.ai search and product listing SDK */
|
|
111
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.
|
|
111
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.10";
|
|
112
112
|
function $128302ab61dab8f1$export$54c6d6ff54e72743(whatToWatch) {
|
|
113
113
|
const [width, setWidth] = $5vyXB$solidjs.createSignal(0);
|
|
114
114
|
const [height, setHeight] = $5vyXB$solidjs.createSignal(0);
|
|
@@ -7597,7 +7597,7 @@ function $70482f04605572e2$export$b288c38ae3fddb56({
|
|
|
7597
7597
|
JSON.stringify(new_local_filter_state) !== JSON.stringify(read_local_cache())) {
|
|
7598
7598
|
const owner = $5vyXB$solidjs.getOwner();
|
|
7599
7599
|
const signal = owner?.sources?.find?.(source => source.value === read_local_cache());
|
|
7600
|
-
if (executions >
|
|
7600
|
+
if (executions > 50) {
|
|
7601
7601
|
// We're probably in an infinite loop, let's just stop
|
|
7602
7602
|
$5vyXB$depictaiutilishared.report(new Error("Infinite loop detected in create_modified_filters"), "error", {
|
|
7603
7603
|
executions: executions,
|
|
@@ -8947,10 +8947,12 @@ function $fd463ff0edb29915$export$b3ad617e9036868({
|
|
|
8947
8947
|
const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
|
|
8948
8948
|
const addToLeftValue = alignment & $fd463ff0edb29915$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
|
|
8949
8949
|
const leftWithoutScroll = rect.left + addToLeftValue;
|
|
8950
|
+
const topValue = rect.top + (includeScroll ? scrollY : 0);
|
|
8950
8951
|
setModalBodyStyle(old_value => ({
|
|
8951
8952
|
...old_value,
|
|
8953
|
+
// Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
|
|
8952
8954
|
...(alignment & $fd463ff0edb29915$export$3f238c96c45e6cc6 ? {
|
|
8953
|
-
top: `${
|
|
8955
|
+
top: `${topValue >= 0 ? topValue : 0}px`
|
|
8954
8956
|
} : {}),
|
|
8955
8957
|
...(alignment & $fd463ff0edb29915$export$7895aadd1956b1c7 ? {
|
|
8956
8958
|
left: `${leftWithoutScroll + (includeScroll ? scrollX : 0)}px`
|
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.10";
|
|
15
15
|
/**
|
|
16
16
|
* Returns two accessors (one width and one height) that will update when the size of the provided element changes, to be used with ResponsiveImg
|
|
17
17
|
*/
|
|
@@ -1512,7 +1512,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1512
1512
|
* Open the modal with support for alignment.
|
|
1513
1513
|
* @returns {void}
|
|
1514
1514
|
*/
|
|
1515
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1515
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1516
1516
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1517
1517
|
export interface PageReplacer {
|
|
1518
1518
|
readonly render_: () => Node_Array;
|
|
@@ -1591,5 +1591,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1591
1591
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1592
1592
|
layout?: PossibleLayout;
|
|
1593
1593
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1594
|
-
}): import("@depict-ai/utilishared").Node_Array;
|
|
1594
|
+
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1595
1595
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/server/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { dlog as $i7OB2$dlog, catchify as $i7OB2$catchify1, ListenableSet as $i7
|
|
|
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.10";
|
|
11
11
|
function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
|
|
12
12
|
const [width, setWidth] = $i7OB2$createSignal(0);
|
|
13
13
|
const [height, setHeight] = $i7OB2$createSignal(0);
|
|
@@ -7496,7 +7496,7 @@ function $5efb5894079b220e$export$b288c38ae3fddb56({
|
|
|
7496
7496
|
JSON.stringify(new_local_filter_state) !== JSON.stringify(read_local_cache())) {
|
|
7497
7497
|
const owner = $i7OB2$getOwner();
|
|
7498
7498
|
const signal = owner?.sources?.find?.(source => source.value === read_local_cache());
|
|
7499
|
-
if (executions >
|
|
7499
|
+
if (executions > 50) {
|
|
7500
7500
|
// We're probably in an infinite loop, let's just stop
|
|
7501
7501
|
$i7OB2$report(new Error("Infinite loop detected in create_modified_filters"), "error", {
|
|
7502
7502
|
executions: executions,
|
|
@@ -8846,10 +8846,12 @@ function $b6d5529b253681aa$export$b3ad617e9036868({
|
|
|
8846
8846
|
const rect = input_field.getBoundingClientRect(); /* for some reason contentRect.top and contentRect.left is 0 from the RO */
|
|
8847
8847
|
const addToLeftValue = alignment & $b6d5529b253681aa$export$6060bc6bee850eb6 ? rect.width / 2 : 0;
|
|
8848
8848
|
const leftWithoutScroll = rect.left + addToLeftValue;
|
|
8849
|
+
const topValue = rect.top + (includeScroll ? scrollY : 0);
|
|
8849
8850
|
setModalBodyStyle(old_value => ({
|
|
8850
8851
|
...old_value,
|
|
8852
|
+
// Do not allow top values under 0, this usually happens when aligning to an element that's absolutely positioned and the user is scrolled down - in that case we want to sacrifice alignment for the modal being visible
|
|
8851
8853
|
...(alignment & $b6d5529b253681aa$export$3f238c96c45e6cc6 ? {
|
|
8852
|
-
top: `${
|
|
8854
|
+
top: `${topValue >= 0 ? topValue : 0}px`
|
|
8853
8855
|
} : {}),
|
|
8854
8856
|
...(alignment & $b6d5529b253681aa$export$7895aadd1956b1c7 ? {
|
|
8855
8857
|
left: `${leftWithoutScroll + (includeScroll ? scrollX : 0)}px`
|