@depict-ai/ui 4.8.10 → 4.8.12
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 +19 -4
- package/ES10/index.d.ts +3 -3
- package/ES10/index.js +19 -4
- package/latest/index.cjs +19 -4
- package/latest/index.d.ts +3 -3
- package/latest/index.js +19 -4
- package/package.json +1 -1
- package/server/ES10/index.cjs +14 -3
- package/server/ES10/index.d.ts +3 -3
- package/server/ES10/index.js +14 -3
- package/server/latest/index.cjs +14 -3
- package/server/latest/index.d.ts +3 -3
- package/server/latest/index.js +14 -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.12";
|
|
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);
|
|
@@ -16053,6 +16053,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
16053
16053
|
} = _ref;
|
|
16054
16054
|
let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
|
|
16055
16055
|
const [wrapperSize, setWrapperSize] = $52FdA$solidjs.createSignal();
|
|
16056
|
+
const [hasLoaded, setHasLoaded] = $52FdA$solidjs.createSignal(false);
|
|
16056
16057
|
const isImage = type_ === "image";
|
|
16057
16058
|
const setAspectRatio = aspectRatio => {
|
|
16058
16059
|
if (wroteAspectRatioToContainer) return;
|
|
@@ -16077,7 +16078,17 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
16077
16078
|
href: link_
|
|
16078
16079
|
}, {
|
|
16079
16080
|
get children() {
|
|
16080
|
-
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.
|
|
16081
|
+
return [$52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
16082
|
+
get when() {
|
|
16083
|
+
return !hasLoaded();
|
|
16084
|
+
},
|
|
16085
|
+
get children() {
|
|
16086
|
+
return $52FdA$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
|
|
16087
|
+
width: "100%",
|
|
16088
|
+
height: "100%"
|
|
16089
|
+
});
|
|
16090
|
+
}
|
|
16091
|
+
}), $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Switch), {
|
|
16081
16092
|
get children() {
|
|
16082
16093
|
return [$52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Match), {
|
|
16083
16094
|
when: isImage,
|
|
@@ -16093,7 +16104,10 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
16093
16104
|
},
|
|
16094
16105
|
src: mediaUrl_,
|
|
16095
16106
|
"class": "d-standard-content",
|
|
16096
|
-
ref: el => el.addEventListener("load", $52FdA$depictaiutilisharedlatest.catchify(() =>
|
|
16107
|
+
ref: el => el.addEventListener("load", $52FdA$depictaiutilisharedlatest.catchify(() => {
|
|
16108
|
+
setAspectRatio(el.naturalWidth / el.naturalHeight);
|
|
16109
|
+
setHasLoaded(true);
|
|
16110
|
+
}))
|
|
16097
16111
|
});
|
|
16098
16112
|
}
|
|
16099
16113
|
}), $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Match), {
|
|
@@ -16107,6 +16121,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
16107
16121
|
if (pageVisible()) element.play().catch(e => $52FdA$depictaiutilishared.dlog("Failed to play", e));else element.pause();
|
|
16108
16122
|
});
|
|
16109
16123
|
}, _el$);
|
|
16124
|
+
_el$.addEventListener("playing", () => setHasLoaded(true));
|
|
16110
16125
|
$52FdA$solidjsweb.setAttribute(_el$, "src", mediaUrl_);
|
|
16111
16126
|
$52FdA$solidjsweb.setProperty(_el$, "controls", false);
|
|
16112
16127
|
$52FdA$solidjsweb.setProperty(_el$, "muted", true);
|
|
@@ -16116,7 +16131,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
16116
16131
|
}
|
|
16117
16132
|
})];
|
|
16118
16133
|
}
|
|
16119
|
-
});
|
|
16134
|
+
})];
|
|
16120
16135
|
}
|
|
16121
16136
|
}));
|
|
16122
16137
|
}
|
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.12";
|
|
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 unknown>(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
|
|
1594
|
+
}): import("@depict-ai/utilishared").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.12";
|
|
14
14
|
function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
15
15
|
const [width, setWidth] = $8tj43$createSignal(0);
|
|
16
16
|
const [height, setHeight] = $8tj43$createSignal(0);
|
|
@@ -15949,6 +15949,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
15949
15949
|
} = _ref;
|
|
15950
15950
|
let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
|
|
15951
15951
|
const [wrapperSize, setWrapperSize] = $8tj43$createSignal();
|
|
15952
|
+
const [hasLoaded, setHasLoaded] = $8tj43$createSignal(false);
|
|
15952
15953
|
const isImage = type_ === "image";
|
|
15953
15954
|
const setAspectRatio = aspectRatio => {
|
|
15954
15955
|
if (wroteAspectRatioToContainer) return;
|
|
@@ -15973,7 +15974,17 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
15973
15974
|
href: link_
|
|
15974
15975
|
}, {
|
|
15975
15976
|
get children() {
|
|
15976
|
-
return $8tj43$createComponent((0, $8tj43$
|
|
15977
|
+
return [$8tj43$createComponent((0, $8tj43$Show), {
|
|
15978
|
+
get when() {
|
|
15979
|
+
return !hasLoaded();
|
|
15980
|
+
},
|
|
15981
|
+
get children() {
|
|
15982
|
+
return $8tj43$createComponent((0, $3ab4aa97880fb88d$export$3f37af283f8fb843), {
|
|
15983
|
+
width: "100%",
|
|
15984
|
+
height: "100%"
|
|
15985
|
+
});
|
|
15986
|
+
}
|
|
15987
|
+
}), $8tj43$createComponent((0, $8tj43$Switch), {
|
|
15977
15988
|
get children() {
|
|
15978
15989
|
return [$8tj43$createComponent((0, $8tj43$Match), {
|
|
15979
15990
|
when: isImage,
|
|
@@ -15989,7 +16000,10 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
15989
16000
|
},
|
|
15990
16001
|
src: mediaUrl_,
|
|
15991
16002
|
"class": "d-standard-content",
|
|
15992
|
-
ref: el => el.addEventListener("load", $8tj43$catchify1(() =>
|
|
16003
|
+
ref: el => el.addEventListener("load", $8tj43$catchify1(() => {
|
|
16004
|
+
setAspectRatio(el.naturalWidth / el.naturalHeight);
|
|
16005
|
+
setHasLoaded(true);
|
|
16006
|
+
}))
|
|
15993
16007
|
});
|
|
15994
16008
|
}
|
|
15995
16009
|
}), $8tj43$createComponent((0, $8tj43$Match), {
|
|
@@ -16003,6 +16017,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
16003
16017
|
if (pageVisible()) element.play().catch(e => $8tj43$dlog1("Failed to play", e));else element.pause();
|
|
16004
16018
|
});
|
|
16005
16019
|
}, _el$);
|
|
16020
|
+
_el$.addEventListener("playing", () => setHasLoaded(true));
|
|
16006
16021
|
$8tj43$setAttribute(_el$, "src", mediaUrl_);
|
|
16007
16022
|
$8tj43$setProperty(_el$, "controls", false);
|
|
16008
16023
|
$8tj43$setProperty(_el$, "muted", true);
|
|
@@ -16012,7 +16027,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
16012
16027
|
}
|
|
16013
16028
|
})];
|
|
16014
16029
|
}
|
|
16015
|
-
});
|
|
16030
|
+
})];
|
|
16016
16031
|
}
|
|
16017
16032
|
}));
|
|
16018
16033
|
}
|
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.12";
|
|
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);
|
|
@@ -15006,6 +15006,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
15006
15006
|
}) {
|
|
15007
15007
|
let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
|
|
15008
15008
|
const [wrapperSize, setWrapperSize] = $gVhhF$solidjs.createSignal();
|
|
15009
|
+
const [hasLoaded, setHasLoaded] = $gVhhF$solidjs.createSignal(false);
|
|
15009
15010
|
const isImage = type_ === "image";
|
|
15010
15011
|
const setAspectRatio = aspectRatio => {
|
|
15011
15012
|
if (wroteAspectRatioToContainer) return;
|
|
@@ -15030,7 +15031,17 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
15030
15031
|
href: link_
|
|
15031
15032
|
}, {
|
|
15032
15033
|
get children() {
|
|
15033
|
-
return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.
|
|
15034
|
+
return [$gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
|
|
15035
|
+
get when() {
|
|
15036
|
+
return !hasLoaded();
|
|
15037
|
+
},
|
|
15038
|
+
get children() {
|
|
15039
|
+
return $gVhhF$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
|
|
15040
|
+
width: "100%",
|
|
15041
|
+
height: "100%"
|
|
15042
|
+
});
|
|
15043
|
+
}
|
|
15044
|
+
}), $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Switch), {
|
|
15034
15045
|
get children() {
|
|
15035
15046
|
return [$gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Match), {
|
|
15036
15047
|
when: isImage,
|
|
@@ -15040,7 +15051,10 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
15040
15051
|
sizeHeight: () => wrapperSize()?.[1]?.() || 0,
|
|
15041
15052
|
src: mediaUrl_,
|
|
15042
15053
|
"class": "d-standard-content",
|
|
15043
|
-
ref: el => el.addEventListener("load", $gVhhF$depictaiutilisharedlatest.catchify(() =>
|
|
15054
|
+
ref: el => el.addEventListener("load", $gVhhF$depictaiutilisharedlatest.catchify(() => {
|
|
15055
|
+
setAspectRatio(el.naturalWidth / el.naturalHeight);
|
|
15056
|
+
setHasLoaded(true);
|
|
15057
|
+
}))
|
|
15044
15058
|
});
|
|
15045
15059
|
}
|
|
15046
15060
|
}), $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Match), {
|
|
@@ -15054,6 +15068,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
15054
15068
|
if (pageVisible()) element.play().catch(e => $gVhhF$depictaiutilishared.dlog("Failed to play", e));else element.pause();
|
|
15055
15069
|
});
|
|
15056
15070
|
}, _el$);
|
|
15071
|
+
_el$.addEventListener("playing", () => setHasLoaded(true));
|
|
15057
15072
|
$gVhhF$solidjsweb.setAttribute(_el$, "src", mediaUrl_);
|
|
15058
15073
|
$gVhhF$solidjsweb.setProperty(_el$, "controls", false);
|
|
15059
15074
|
$gVhhF$solidjsweb.setProperty(_el$, "muted", true);
|
|
@@ -15063,7 +15078,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
15063
15078
|
}
|
|
15064
15079
|
})];
|
|
15065
15080
|
}
|
|
15066
|
-
});
|
|
15081
|
+
})];
|
|
15067
15082
|
}
|
|
15068
15083
|
}));
|
|
15069
15084
|
}
|
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.12";
|
|
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 unknown>(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
|
|
1594
|
+
}): import("@depict-ai/utilishared").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.12";
|
|
11
11
|
function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
|
|
12
12
|
const [width, setWidth] = $9HbP8$createSignal(0);
|
|
13
13
|
const [height, setHeight] = $9HbP8$createSignal(0);
|
|
@@ -14905,6 +14905,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
14905
14905
|
}) {
|
|
14906
14906
|
let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
|
|
14907
14907
|
const [wrapperSize, setWrapperSize] = $9HbP8$createSignal();
|
|
14908
|
+
const [hasLoaded, setHasLoaded] = $9HbP8$createSignal(false);
|
|
14908
14909
|
const isImage = type_ === "image";
|
|
14909
14910
|
const setAspectRatio = aspectRatio => {
|
|
14910
14911
|
if (wroteAspectRatioToContainer) return;
|
|
@@ -14929,7 +14930,17 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
14929
14930
|
href: link_
|
|
14930
14931
|
}, {
|
|
14931
14932
|
get children() {
|
|
14932
|
-
return $9HbP8$createComponent((0, $9HbP8$
|
|
14933
|
+
return [$9HbP8$createComponent((0, $9HbP8$Show), {
|
|
14934
|
+
get when() {
|
|
14935
|
+
return !hasLoaded();
|
|
14936
|
+
},
|
|
14937
|
+
get children() {
|
|
14938
|
+
return $9HbP8$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
|
|
14939
|
+
width: "100%",
|
|
14940
|
+
height: "100%"
|
|
14941
|
+
});
|
|
14942
|
+
}
|
|
14943
|
+
}), $9HbP8$createComponent((0, $9HbP8$Switch), {
|
|
14933
14944
|
get children() {
|
|
14934
14945
|
return [$9HbP8$createComponent((0, $9HbP8$Match), {
|
|
14935
14946
|
when: isImage,
|
|
@@ -14939,7 +14950,10 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
14939
14950
|
sizeHeight: () => wrapperSize()?.[1]?.() || 0,
|
|
14940
14951
|
src: mediaUrl_,
|
|
14941
14952
|
"class": "d-standard-content",
|
|
14942
|
-
ref: el => el.addEventListener("load", $9HbP8$catchify1(() =>
|
|
14953
|
+
ref: el => el.addEventListener("load", $9HbP8$catchify1(() => {
|
|
14954
|
+
setAspectRatio(el.naturalWidth / el.naturalHeight);
|
|
14955
|
+
setHasLoaded(true);
|
|
14956
|
+
}))
|
|
14943
14957
|
});
|
|
14944
14958
|
}
|
|
14945
14959
|
}), $9HbP8$createComponent((0, $9HbP8$Match), {
|
|
@@ -14953,6 +14967,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
14953
14967
|
if (pageVisible()) element.play().catch(e => $9HbP8$dlog1("Failed to play", e));else element.pause();
|
|
14954
14968
|
});
|
|
14955
14969
|
}, _el$);
|
|
14970
|
+
_el$.addEventListener("playing", () => setHasLoaded(true));
|
|
14956
14971
|
$9HbP8$setAttribute(_el$, "src", mediaUrl_);
|
|
14957
14972
|
$9HbP8$setProperty(_el$, "controls", false);
|
|
14958
14973
|
$9HbP8$setProperty(_el$, "muted", true);
|
|
@@ -14962,7 +14977,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
14962
14977
|
}
|
|
14963
14978
|
})];
|
|
14964
14979
|
}
|
|
14965
|
-
});
|
|
14980
|
+
})];
|
|
14966
14981
|
}
|
|
14967
14982
|
}));
|
|
14968
14983
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.12",
|
|
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.12";
|
|
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);
|
|
@@ -13414,6 +13414,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
13414
13414
|
} = _ref;
|
|
13415
13415
|
let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
|
|
13416
13416
|
const [wrapperSize, setWrapperSize] = $3hooq$solidjs.createSignal();
|
|
13417
|
+
const [hasLoaded, setHasLoaded] = $3hooq$solidjs.createSignal(false);
|
|
13417
13418
|
const isImage = type_ === "image";
|
|
13418
13419
|
const setAspectRatio = aspectRatio => {
|
|
13419
13420
|
if (wroteAspectRatioToContainer) return;
|
|
@@ -13437,7 +13438,17 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
13437
13438
|
href: link_
|
|
13438
13439
|
}, {
|
|
13439
13440
|
get children() {
|
|
13440
|
-
return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.
|
|
13441
|
+
return [$3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
13442
|
+
get when() {
|
|
13443
|
+
return !hasLoaded();
|
|
13444
|
+
},
|
|
13445
|
+
get children() {
|
|
13446
|
+
return $3hooq$solidjsweb.createComponent((0, $b8a8d61b3ec5f5ac$export$3f37af283f8fb843), {
|
|
13447
|
+
width: "100%",
|
|
13448
|
+
height: "100%"
|
|
13449
|
+
});
|
|
13450
|
+
}
|
|
13451
|
+
}), $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Switch), {
|
|
13441
13452
|
get children() {
|
|
13442
13453
|
return [$3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Match), {
|
|
13443
13454
|
when: isImage,
|
|
@@ -13462,7 +13473,7 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
13462
13473
|
}
|
|
13463
13474
|
})];
|
|
13464
13475
|
}
|
|
13465
|
-
});
|
|
13476
|
+
})];
|
|
13466
13477
|
}
|
|
13467
13478
|
}));
|
|
13468
13479
|
}
|
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.12";
|
|
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 unknown>(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
|
|
1594
|
+
}): import("@depict-ai/utilishared").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.12";
|
|
14
14
|
function $4be619ec2cd7bba3$export$54c6d6ff54e72743(whatToWatch) {
|
|
15
15
|
const [width, setWidth] = $b8hua$createSignal(0);
|
|
16
16
|
const [height, setHeight] = $b8hua$createSignal(0);
|
|
@@ -13310,6 +13310,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
13310
13310
|
} = _ref;
|
|
13311
13311
|
let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
|
|
13312
13312
|
const [wrapperSize, setWrapperSize] = $b8hua$createSignal();
|
|
13313
|
+
const [hasLoaded, setHasLoaded] = $b8hua$createSignal(false);
|
|
13313
13314
|
const isImage = type_ === "image";
|
|
13314
13315
|
const setAspectRatio = aspectRatio => {
|
|
13315
13316
|
if (wroteAspectRatioToContainer) return;
|
|
@@ -13333,7 +13334,17 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
13333
13334
|
href: link_
|
|
13334
13335
|
}, {
|
|
13335
13336
|
get children() {
|
|
13336
|
-
return $b8hua$createComponent((0, $b8hua$
|
|
13337
|
+
return [$b8hua$createComponent((0, $b8hua$Show), {
|
|
13338
|
+
get when() {
|
|
13339
|
+
return !hasLoaded();
|
|
13340
|
+
},
|
|
13341
|
+
get children() {
|
|
13342
|
+
return $b8hua$createComponent((0, $3ab4aa97880fb88d$export$3f37af283f8fb843), {
|
|
13343
|
+
width: "100%",
|
|
13344
|
+
height: "100%"
|
|
13345
|
+
});
|
|
13346
|
+
}
|
|
13347
|
+
}), $b8hua$createComponent((0, $b8hua$Switch), {
|
|
13337
13348
|
get children() {
|
|
13338
13349
|
return [$b8hua$createComponent((0, $b8hua$Match), {
|
|
13339
13350
|
when: isImage,
|
|
@@ -13358,7 +13369,7 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
13358
13369
|
}
|
|
13359
13370
|
})];
|
|
13360
13371
|
}
|
|
13361
|
-
});
|
|
13372
|
+
})];
|
|
13362
13373
|
}
|
|
13363
13374
|
}));
|
|
13364
13375
|
}
|
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.12";
|
|
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);
|
|
@@ -12448,6 +12448,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
12448
12448
|
}) {
|
|
12449
12449
|
let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
|
|
12450
12450
|
const [wrapperSize, setWrapperSize] = $5vyXB$solidjs.createSignal();
|
|
12451
|
+
const [hasLoaded, setHasLoaded] = $5vyXB$solidjs.createSignal(false);
|
|
12451
12452
|
const isImage = type_ === "image";
|
|
12452
12453
|
const setAspectRatio = aspectRatio => {
|
|
12453
12454
|
if (wroteAspectRatioToContainer) return;
|
|
@@ -12471,7 +12472,17 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
12471
12472
|
href: link_
|
|
12472
12473
|
}, {
|
|
12473
12474
|
get children() {
|
|
12474
|
-
return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.
|
|
12475
|
+
return [$5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
12476
|
+
get when() {
|
|
12477
|
+
return !hasLoaded();
|
|
12478
|
+
},
|
|
12479
|
+
get children() {
|
|
12480
|
+
return $5vyXB$solidjsweb.createComponent((0, $3bc4a89b971a3af5$export$3f37af283f8fb843), {
|
|
12481
|
+
width: "100%",
|
|
12482
|
+
height: "100%"
|
|
12483
|
+
});
|
|
12484
|
+
}
|
|
12485
|
+
}), $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Switch), {
|
|
12475
12486
|
get children() {
|
|
12476
12487
|
return [$5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Match), {
|
|
12477
12488
|
when: isImage,
|
|
@@ -12490,7 +12501,7 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
12490
12501
|
}
|
|
12491
12502
|
})];
|
|
12492
12503
|
}
|
|
12493
|
-
});
|
|
12504
|
+
})];
|
|
12494
12505
|
}
|
|
12495
12506
|
}));
|
|
12496
12507
|
}
|
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.12";
|
|
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 unknown>(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
|
|
1594
|
+
}): import("@depict-ai/utilishared").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.12";
|
|
11
11
|
function $a444a52bafa0dacc$export$54c6d6ff54e72743(whatToWatch) {
|
|
12
12
|
const [width, setWidth] = $i7OB2$createSignal(0);
|
|
13
13
|
const [height, setHeight] = $i7OB2$createSignal(0);
|
|
@@ -12347,6 +12347,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
12347
12347
|
}) {
|
|
12348
12348
|
let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
|
|
12349
12349
|
const [wrapperSize, setWrapperSize] = $i7OB2$createSignal();
|
|
12350
|
+
const [hasLoaded, setHasLoaded] = $i7OB2$createSignal(false);
|
|
12350
12351
|
const isImage = type_ === "image";
|
|
12351
12352
|
const setAspectRatio = aspectRatio => {
|
|
12352
12353
|
if (wroteAspectRatioToContainer) return;
|
|
@@ -12370,7 +12371,17 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
12370
12371
|
href: link_
|
|
12371
12372
|
}, {
|
|
12372
12373
|
get children() {
|
|
12373
|
-
return $i7OB2$createComponent((0, $i7OB2$
|
|
12374
|
+
return [$i7OB2$createComponent((0, $i7OB2$Show), {
|
|
12375
|
+
get when() {
|
|
12376
|
+
return !hasLoaded();
|
|
12377
|
+
},
|
|
12378
|
+
get children() {
|
|
12379
|
+
return $i7OB2$createComponent((0, $7f60f09116a3fe61$export$3f37af283f8fb843), {
|
|
12380
|
+
width: "100%",
|
|
12381
|
+
height: "100%"
|
|
12382
|
+
});
|
|
12383
|
+
}
|
|
12384
|
+
}), $i7OB2$createComponent((0, $i7OB2$Switch), {
|
|
12374
12385
|
get children() {
|
|
12375
12386
|
return [$i7OB2$createComponent((0, $i7OB2$Match), {
|
|
12376
12387
|
when: isImage,
|
|
@@ -12389,7 +12400,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
12389
12400
|
}
|
|
12390
12401
|
})];
|
|
12391
12402
|
}
|
|
12392
|
-
});
|
|
12403
|
+
})];
|
|
12393
12404
|
}
|
|
12394
12405
|
}));
|
|
12395
12406
|
}
|