@depict-ai/ui 4.9.9 → 4.10.1
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 +27 -15
- package/ES10/index.d.ts +3 -3
- package/ES10/index.js +28 -16
- package/latest/index.cjs +26 -14
- package/latest/index.d.ts +3 -3
- package/latest/index.js +27 -15
- package/package.json +6 -6
- package/server/ES10/index.cjs +2 -2
- package/server/ES10/index.d.ts +3 -3
- package/server/ES10/index.js +2 -2
- package/server/latest/index.cjs +2 -2
- package/server/latest/index.d.ts +3 -3
- package/server/latest/index.js +2 -2
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.
|
|
118
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.1";
|
|
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 => {
|
|
@@ -8052,7 +8052,7 @@ async function $8e8c89c02c16dc7b$export$5d2f6cd705125cd3() {
|
|
|
8052
8052
|
$8e8c89c02c16dc7b$var$cachedHlsModule = hlsModule;
|
|
8053
8053
|
return hlsModule;
|
|
8054
8054
|
}
|
|
8055
|
-
var $c19709057a32b2e7$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<video
|
|
8055
|
+
var $c19709057a32b2e7$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<video class=d-standard-content>`);
|
|
8056
8056
|
function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
8057
8057
|
let {
|
|
8058
8058
|
link_: link_,
|
|
@@ -8126,7 +8126,14 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
8126
8126
|
var _ref$ = $52FdA$depictaiutilisharedlatest.catchify(async element => {
|
|
8127
8127
|
const pageVisible = $e7a7d2fe8a8217d8$export$54299a3c81f5425();
|
|
8128
8128
|
const owner = $52FdA$solidjs.getOwner();
|
|
8129
|
+
const [retryPlayToggle, setRetryPlayToggle] = $52FdA$solidjs.createSignal(false);
|
|
8129
8130
|
element.addEventListener("loadedmetadata", $52FdA$depictaiutilisharedlatest.catchify(() => setAspectRatio(element.videoWidth / element.videoHeight)));
|
|
8131
|
+
// Work around https://github.com/ryansolid/dom-expressions/issues/384
|
|
8132
|
+
element.controls = false;
|
|
8133
|
+
element.muted = true;
|
|
8134
|
+
element.autoplay = true;
|
|
8135
|
+
element.playsInline = true;
|
|
8136
|
+
element.loop = true;
|
|
8130
8137
|
// If hls is not supported, dynamically import hls.js as polyfill
|
|
8131
8138
|
if (mediaUrl_.includes(".m3u8") && !element.canPlayType("application/vnd.apple.mpegurl")) {
|
|
8132
8139
|
const hlsJs = await $8e8c89c02c16dc7b$export$5d2f6cd705125cd3().catch(e => $52FdA$depictaiutilisharedlatest.report([e, "Failed to load hls.js"], "error"));
|
|
@@ -8137,16 +8144,21 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
8137
8144
|
}
|
|
8138
8145
|
// need runWithOwner for createEffect, because we potentially awaited above
|
|
8139
8146
|
$52FdA$solidjs.runWithOwner(owner, () => $52FdA$solidjs.createEffect(() => {
|
|
8140
|
-
|
|
8147
|
+
retryPlayToggle();
|
|
8148
|
+
if (pageVisible()) element.play().catch(async e => {
|
|
8149
|
+
$52FdA$depictaiutilishared.dlog("Failed to play", e);
|
|
8150
|
+
// If we're not in the DOM yet, wait until we are and then try again
|
|
8151
|
+
if (!document.documentElement.contains(element)) {
|
|
8152
|
+
await (0, $52FdA$depictaiutilisharedlatest.observer).wait_for_element(element);
|
|
8153
|
+
setRetryPlayToggle(prev => !prev);
|
|
8154
|
+
}
|
|
8155
|
+
});else element.pause();
|
|
8141
8156
|
}));
|
|
8142
8157
|
});
|
|
8143
8158
|
typeof _ref$ === "function" && $52FdA$solidjsweb.use(_ref$, _el$);
|
|
8144
8159
|
_el$.addEventListener("playing", () => setHasLoaded(true));
|
|
8145
8160
|
$52FdA$solidjsweb.setAttribute(_el$, "src", mediaUrl_);
|
|
8146
|
-
$52FdA$solidjsweb.
|
|
8147
|
-
$52FdA$solidjsweb.setProperty(_el$, "muted", true);
|
|
8148
|
-
$52FdA$solidjsweb.setProperty(_el$, "autoplay", true);
|
|
8149
|
-
$52FdA$solidjsweb.setProperty(_el$, "playsinline", true);
|
|
8161
|
+
$52FdA$solidjsweb.setAttribute(_el$, "disablepictureinpicture", true);
|
|
8150
8162
|
return _el$;
|
|
8151
8163
|
}
|
|
8152
8164
|
})];
|
|
@@ -10627,11 +10639,11 @@ function $210882b9ebe2b1d8$export$e872e2339fb04a7f(_ref) {
|
|
|
10627
10639
|
searching_for_value_: searching_for_value_
|
|
10628
10640
|
})), (() => {
|
|
10629
10641
|
var _el$3 = $52FdA$solidjsweb.getNextElement($210882b9ebe2b1d8$var$_tmpl$3);
|
|
10630
|
-
$52FdA$solidjsweb.insert(_el$3, $52FdA$solidjs.createMemo(() => {
|
|
10642
|
+
$52FdA$solidjsweb.insert(_el$3, () => $52FdA$solidjs.createMemo(() => {
|
|
10631
10643
|
if (input_obj().type === "content") return i18n_.content_();
|
|
10632
10644
|
if (input_obj().listing_type === "brand") return i18n_.brand_();
|
|
10633
10645
|
return i18n_.category_();
|
|
10634
|
-
}));
|
|
10646
|
+
})());
|
|
10635
10647
|
return _el$3;
|
|
10636
10648
|
})()];
|
|
10637
10649
|
})());
|
|
@@ -11269,7 +11281,7 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
11269
11281
|
},
|
|
11270
11282
|
get children() {
|
|
11271
11283
|
var _el$4 = $52FdA$solidjsweb.getNextElement($29e5dbeb69da7a36$var$_tmpl$3);
|
|
11272
|
-
$52FdA$solidjsweb.effect(
|
|
11284
|
+
$52FdA$solidjsweb.effect(_$p => (_$p = getBackButtonWidth() + "px", _el$4.style.setProperty("width", _$p)));
|
|
11273
11285
|
return _el$4;
|
|
11274
11286
|
}
|
|
11275
11287
|
}), _el$13, _co$3);
|
|
@@ -11982,7 +11994,7 @@ function $f765bad01136eee1$export$c8d7e00464029b45(_ref) {
|
|
|
11982
11994
|
});
|
|
11983
11995
|
}
|
|
11984
11996
|
}), _el$4, _co$);
|
|
11985
|
-
$52FdA$solidjsweb.effect(
|
|
11997
|
+
$52FdA$solidjsweb.effect(_$p => (_$p = itemIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
11986
11998
|
return _el$;
|
|
11987
11999
|
}
|
|
11988
12000
|
});
|
|
@@ -12100,7 +12112,7 @@ function $79a8fa74cb5cdfb9$export$d4994a86c6235f72(_ref) {
|
|
|
12100
12112
|
});
|
|
12101
12113
|
}
|
|
12102
12114
|
}));
|
|
12103
|
-
$52FdA$solidjsweb.effect(
|
|
12115
|
+
$52FdA$solidjsweb.effect(_$p => (_$p = itemIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
12104
12116
|
return _el$;
|
|
12105
12117
|
}
|
|
12106
12118
|
});
|
|
@@ -12541,7 +12553,7 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
12541
12553
|
}),
|
|
12542
12554
|
...instant_results_options_
|
|
12543
12555
|
}), _el$4, _co$);
|
|
12544
|
-
$52FdA$solidjsweb.effect(
|
|
12556
|
+
$52FdA$solidjsweb.effect(_$p => (_$p = itemIndexes.instantResultsIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
12545
12557
|
return _el$;
|
|
12546
12558
|
}
|
|
12547
12559
|
});
|
|
@@ -15131,9 +15143,9 @@ function $eab939d0b95b75ee$export$6d0c9c22f6652669(_ref) {
|
|
|
15131
15143
|
});
|
|
15132
15144
|
}
|
|
15133
15145
|
})), _el$5, _co$2);
|
|
15134
|
-
$52FdA$solidjsweb.effect(
|
|
15146
|
+
$52FdA$solidjsweb.effect(_$p => {
|
|
15135
15147
|
var _content_results2;
|
|
15136
|
-
return
|
|
15148
|
+
return _$p = is_loading_() && placeholders_enabled() || ((_content_results2 = content_results()) === null || _content_results2 === void 0 ? void 0 : _content_results2.length) > 0 ? "" : "none", _el$.style.setProperty("display", _$p);
|
|
15137
15149
|
});
|
|
15138
15150
|
return _el$;
|
|
15139
15151
|
})();
|
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.
|
|
14
|
+
export const version = "4.10.1";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -1541,7 +1541,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1541
1541
|
* Open the modal with support for alignment.
|
|
1542
1542
|
* @returns {void}
|
|
1543
1543
|
*/
|
|
1544
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1544
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1545
1545
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1546
1546
|
export interface PageReplacer {
|
|
1547
1547
|
readonly render_: () => Node_Array;
|
|
@@ -1622,5 +1622,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1622
1622
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1623
1623
|
showSliderArrow_?: boolean;
|
|
1624
1624
|
hideCount0FilterOptions_?: boolean;
|
|
1625
|
-
}): import("@depict-ai/utilishared").Node_Array;
|
|
1625
|
+
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1626
1626
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/ES10/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { add_to_version_info as $8tj43$add_to_version_info, javascript_media_query as $8tj43$javascript_media_query, standard_price_format as $8tj43$standard_price_format, catchify as $8tj43$catchify1, observer as $8tj43$observer, slider_fractional_factory as $8tj43$slider_fractional_factory, report as $8tj43$report1, dlog as $8tj43$dlog, camelCasifyObject as $8tj43$camelCasifyObject, make_random_classname as $8tj43$make_random_classname, n_col_styling_with_dist as $8tj43$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $8tj43$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $8tj43$layout_get_total_rec_amount_for_row, layout_media_query_header as $8tj43$layout_media_query_header, dwarn as $8tj43$dwarn, slider_fading_factory as $8tj43$slider_fading_factory, Amazing_Slider as $8tj43$Amazing_Slider, slider_snap_css as $8tj43$slider_snap_css, useExpandingContainer as $8tj43$useExpandingContainer, hex_to_rgb as $8tj43$hex_to_rgb, relative_luminance_from_rgb as $8tj43$relative_luminance_from_rgb, instant_exec_on_suspect_history_change as $8tj43$instant_exec_on_suspect_history_change, base64_encode_unicode as $8tj43$base64_encode_unicode, base64_decode_unicode as $8tj43$base64_decode_unicode, queueMacroTask as $8tj43$queueMacroTask, is_debug as $8tj43$is_debug, findMostFrequentItem as $8tj43$findMostFrequentItem, is_available_in as $8tj43$is_available_in, fetch_retry as $8tj43$fetch_retry, base_url as $8tj43$base_url, deparallelize_no_drop as $8tj43$deparallelize_no_drop, ContainedImage as $8tj43$ContainedImage, buildThresholdList as $8tj43$buildThresholdList, make_asyncIterable_exiter as $8tj43$make_asyncIterable_exiter, href_change_ipns as $8tj43$href_change_ipns, use_href_accessor as $8tj43$use_href_accessor1, get_session_id as $8tj43$get_session_id, add_version_query_params as $8tj43$add_version_query_params, snakeCasifyObject as $8tj43$snakeCasifyObject, make_url_with_query_params as $8tj43$make_url_with_query_params, sort_obj as $8tj43$sort_obj, insert_surfaces as $8tj43$insert_surfaces } from "@depict-ai/utilishared/ES10";
|
|
2
2
|
import { template as $8tj43$template, createComponent as $8tj43$createComponent, getNextElement as $8tj43$getNextElement, getNextMarker as $8tj43$getNextMarker, insert as $8tj43$insert, isServer as $8tj43$isServer, use as $8tj43$use, effect as $8tj43$effect, setAttribute as $8tj43$setAttribute, memo as $8tj43$memo, mergeProps as $8tj43$mergeProps1, addEventListener as $8tj43$addEventListener, runHydrationEvents as $8tj43$runHydrationEvents, delegateEvents as $8tj43$delegateEvents, spread as $8tj43$spread, classList as $8tj43$classList, className as $8tj43$className, style as $8tj43$style, Dynamic as $8tj43$Dynamic, setProperty as $8tj43$setProperty } from "solid-js/web";
|
|
3
3
|
import { createContext as $8tj43$createContext, createSignal as $8tj43$createSignal, getOwner as $8tj43$getOwner, createResource as $8tj43$createResource, untrack as $8tj43$untrack, createRoot as $8tj43$createRoot, createEffect as $8tj43$createEffect, runWithOwner as $8tj43$runWithOwner, onCleanup as $8tj43$onCleanup, createMemo as $8tj43$createMemo, Show as $8tj43$Show, createComputed as $8tj43$createComputed, createRenderEffect as $8tj43$createRenderEffect, mergeProps as $8tj43$mergeProps, useContext as $8tj43$useContext, createReaction as $8tj43$createReaction, on as $8tj43$on, Suspense as $8tj43$Suspense, ErrorBoundary as $8tj43$ErrorBoundary, Index as $8tj43$Index, For as $8tj43$For, createUniqueId as $8tj43$createUniqueId, mapArray as $8tj43$mapArray, batch as $8tj43$batch, Switch as $8tj43$Switch, Match as $8tj43$Match, splitProps as $8tj43$splitProps, createComponent as $8tj43$createComponent1, createSelector as $8tj43$createSelector, children as $8tj43$children } from "solid-js";
|
|
4
|
-
import { catchify as $8tj43$catchify, report as $8tj43$report, use_href_accessor as $8tj43$use_href_accessor, dlog as $8tj43$dlog1, ListenableSet as $8tj43$ListenableSet, queueMacroTask as $8tj43$queueMacroTask1 } from "@depict-ai/utilishared/ES10";
|
|
4
|
+
import { catchify as $8tj43$catchify, report as $8tj43$report, use_href_accessor as $8tj43$use_href_accessor, observer as $8tj43$observer1, dlog as $8tj43$dlog1, ListenableSet as $8tj43$ListenableSet, queueMacroTask as $8tj43$queueMacroTask1 } from "@depict-ai/utilishared/ES10";
|
|
5
5
|
import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from "solid-js/store";
|
|
6
6
|
import $8tj43$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
7
|
import $8tj43$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
@@ -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.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.1";
|
|
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 => {
|
|
@@ -7947,7 +7947,7 @@ async function $e92c154db502596d$export$5d2f6cd705125cd3() {
|
|
|
7947
7947
|
$e92c154db502596d$var$cachedHlsModule = hlsModule;
|
|
7948
7948
|
return hlsModule;
|
|
7949
7949
|
}
|
|
7950
|
-
var $3b772ef9a35560fe$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<video
|
|
7950
|
+
var $3b772ef9a35560fe$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<video class=d-standard-content>`);
|
|
7951
7951
|
function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
7952
7952
|
let {
|
|
7953
7953
|
link_: link_,
|
|
@@ -8021,7 +8021,14 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
8021
8021
|
var _ref$ = $8tj43$catchify(async element => {
|
|
8022
8022
|
const pageVisible = $a35e6f680c5bbc60$export$54299a3c81f5425();
|
|
8023
8023
|
const owner = $8tj43$getOwner();
|
|
8024
|
+
const [retryPlayToggle, setRetryPlayToggle] = $8tj43$createSignal(false);
|
|
8024
8025
|
element.addEventListener("loadedmetadata", $8tj43$catchify(() => setAspectRatio(element.videoWidth / element.videoHeight)));
|
|
8026
|
+
// Work around https://github.com/ryansolid/dom-expressions/issues/384
|
|
8027
|
+
element.controls = false;
|
|
8028
|
+
element.muted = true;
|
|
8029
|
+
element.autoplay = true;
|
|
8030
|
+
element.playsInline = true;
|
|
8031
|
+
element.loop = true;
|
|
8025
8032
|
// If hls is not supported, dynamically import hls.js as polyfill
|
|
8026
8033
|
if (mediaUrl_.includes(".m3u8") && !element.canPlayType("application/vnd.apple.mpegurl")) {
|
|
8027
8034
|
const hlsJs = await $e92c154db502596d$export$5d2f6cd705125cd3().catch(e => $8tj43$report([e, "Failed to load hls.js"], "error"));
|
|
@@ -8032,16 +8039,21 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
8032
8039
|
}
|
|
8033
8040
|
// need runWithOwner for createEffect, because we potentially awaited above
|
|
8034
8041
|
$8tj43$runWithOwner(owner, () => $8tj43$createEffect(() => {
|
|
8035
|
-
|
|
8042
|
+
retryPlayToggle();
|
|
8043
|
+
if (pageVisible()) element.play().catch(async e => {
|
|
8044
|
+
$8tj43$dlog("Failed to play", e);
|
|
8045
|
+
// If we're not in the DOM yet, wait until we are and then try again
|
|
8046
|
+
if (!document.documentElement.contains(element)) {
|
|
8047
|
+
await (0, $8tj43$observer1).wait_for_element(element);
|
|
8048
|
+
setRetryPlayToggle(prev => !prev);
|
|
8049
|
+
}
|
|
8050
|
+
});else element.pause();
|
|
8036
8051
|
}));
|
|
8037
8052
|
});
|
|
8038
8053
|
typeof _ref$ === "function" && $8tj43$use(_ref$, _el$);
|
|
8039
8054
|
_el$.addEventListener("playing", () => setHasLoaded(true));
|
|
8040
8055
|
$8tj43$setAttribute(_el$, "src", mediaUrl_);
|
|
8041
|
-
$8tj43$
|
|
8042
|
-
$8tj43$setProperty(_el$, "muted", true);
|
|
8043
|
-
$8tj43$setProperty(_el$, "autoplay", true);
|
|
8044
|
-
$8tj43$setProperty(_el$, "playsinline", true);
|
|
8056
|
+
$8tj43$setAttribute(_el$, "disablepictureinpicture", true);
|
|
8045
8057
|
return _el$;
|
|
8046
8058
|
}
|
|
8047
8059
|
})];
|
|
@@ -10522,11 +10534,11 @@ function $b055f9e9aeceeb48$export$e872e2339fb04a7f(_ref) {
|
|
|
10522
10534
|
searching_for_value_: searching_for_value_
|
|
10523
10535
|
})), (() => {
|
|
10524
10536
|
var _el$3 = $8tj43$getNextElement($b055f9e9aeceeb48$var$_tmpl$3);
|
|
10525
|
-
$8tj43$insert(_el$3, $8tj43$createMemo(() => {
|
|
10537
|
+
$8tj43$insert(_el$3, () => $8tj43$createMemo(() => {
|
|
10526
10538
|
if (input_obj().type === "content") return i18n_.content_();
|
|
10527
10539
|
if (input_obj().listing_type === "brand") return i18n_.brand_();
|
|
10528
10540
|
return i18n_.category_();
|
|
10529
|
-
}));
|
|
10541
|
+
})());
|
|
10530
10542
|
return _el$3;
|
|
10531
10543
|
})()];
|
|
10532
10544
|
})());
|
|
@@ -11164,7 +11176,7 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
11164
11176
|
},
|
|
11165
11177
|
get children() {
|
|
11166
11178
|
var _el$4 = $8tj43$getNextElement($584c06c09cf4609d$var$_tmpl$3);
|
|
11167
|
-
$8tj43$effect(
|
|
11179
|
+
$8tj43$effect(_$p => (_$p = getBackButtonWidth() + "px", _el$4.style.setProperty("width", _$p)));
|
|
11168
11180
|
return _el$4;
|
|
11169
11181
|
}
|
|
11170
11182
|
}), _el$13, _co$3);
|
|
@@ -11877,7 +11889,7 @@ function $ab401afaded322ab$export$c8d7e00464029b45(_ref) {
|
|
|
11877
11889
|
});
|
|
11878
11890
|
}
|
|
11879
11891
|
}), _el$4, _co$);
|
|
11880
|
-
$8tj43$effect(
|
|
11892
|
+
$8tj43$effect(_$p => (_$p = itemIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
11881
11893
|
return _el$;
|
|
11882
11894
|
}
|
|
11883
11895
|
});
|
|
@@ -11995,7 +12007,7 @@ function $5175a47d13b7c228$export$d4994a86c6235f72(_ref) {
|
|
|
11995
12007
|
});
|
|
11996
12008
|
}
|
|
11997
12009
|
}));
|
|
11998
|
-
$8tj43$effect(
|
|
12010
|
+
$8tj43$effect(_$p => (_$p = itemIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
11999
12011
|
return _el$;
|
|
12000
12012
|
}
|
|
12001
12013
|
});
|
|
@@ -12436,7 +12448,7 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
12436
12448
|
}),
|
|
12437
12449
|
...instant_results_options_
|
|
12438
12450
|
}), _el$4, _co$);
|
|
12439
|
-
$8tj43$effect(
|
|
12451
|
+
$8tj43$effect(_$p => (_$p = itemIndexes.instantResultsIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
12440
12452
|
return _el$;
|
|
12441
12453
|
}
|
|
12442
12454
|
});
|
|
@@ -15026,9 +15038,9 @@ function $d53ebed6f63304e4$export$6d0c9c22f6652669(_ref) {
|
|
|
15026
15038
|
});
|
|
15027
15039
|
}
|
|
15028
15040
|
})), _el$5, _co$2);
|
|
15029
|
-
$8tj43$effect(
|
|
15041
|
+
$8tj43$effect(_$p => {
|
|
15030
15042
|
var _content_results2;
|
|
15031
|
-
return
|
|
15043
|
+
return _$p = is_loading_() && placeholders_enabled() || ((_content_results2 = content_results()) === null || _content_results2 === void 0 ? void 0 : _content_results2.length) > 0 ? "" : "none", _el$.style.setProperty("display", _$p);
|
|
15032
15044
|
});
|
|
15033
15045
|
return _el$;
|
|
15034
15046
|
})();
|
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.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.1";
|
|
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, ({
|
|
@@ -7621,7 +7621,7 @@ async function $20ff40266d725403$export$5d2f6cd705125cd3() {
|
|
|
7621
7621
|
$20ff40266d725403$var$cachedHlsModule = hlsModule;
|
|
7622
7622
|
return hlsModule;
|
|
7623
7623
|
}
|
|
7624
|
-
var $32c662f618f5d80d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<video
|
|
7624
|
+
var $32c662f618f5d80d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<video class=d-standard-content>`);
|
|
7625
7625
|
function $32c662f618f5d80d$export$780a853d15174484({
|
|
7626
7626
|
link_: link_,
|
|
7627
7627
|
type_: type_,
|
|
@@ -7688,7 +7688,14 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
7688
7688
|
var _ref$ = $gVhhF$depictaiutilisharedlatest.catchify(async element => {
|
|
7689
7689
|
const pageVisible = $55cbacb79d3e0cea$export$54299a3c81f5425();
|
|
7690
7690
|
const owner = $gVhhF$solidjs.getOwner();
|
|
7691
|
+
const [retryPlayToggle, setRetryPlayToggle] = $gVhhF$solidjs.createSignal(false);
|
|
7691
7692
|
element.addEventListener("loadedmetadata", $gVhhF$depictaiutilisharedlatest.catchify(() => setAspectRatio(element.videoWidth / element.videoHeight)));
|
|
7693
|
+
// Work around https://github.com/ryansolid/dom-expressions/issues/384
|
|
7694
|
+
element.controls = false;
|
|
7695
|
+
element.muted = true;
|
|
7696
|
+
element.autoplay = true;
|
|
7697
|
+
element.playsInline = true;
|
|
7698
|
+
element.loop = true;
|
|
7692
7699
|
// If hls is not supported, dynamically import hls.js as polyfill
|
|
7693
7700
|
if (mediaUrl_.includes(".m3u8") && !element.canPlayType("application/vnd.apple.mpegurl")) {
|
|
7694
7701
|
const hlsJs = await $20ff40266d725403$export$5d2f6cd705125cd3().catch(e => $gVhhF$depictaiutilisharedlatest.report([e, "Failed to load hls.js"], "error"));
|
|
@@ -7699,16 +7706,21 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
7699
7706
|
}
|
|
7700
7707
|
// need runWithOwner for createEffect, because we potentially awaited above
|
|
7701
7708
|
$gVhhF$solidjs.runWithOwner(owner, () => $gVhhF$solidjs.createEffect(() => {
|
|
7702
|
-
|
|
7709
|
+
retryPlayToggle();
|
|
7710
|
+
if (pageVisible()) element.play().catch(async e => {
|
|
7711
|
+
$gVhhF$depictaiutilishared.dlog("Failed to play", e);
|
|
7712
|
+
// If we're not in the DOM yet, wait until we are and then try again
|
|
7713
|
+
if (!document.documentElement.contains(element)) {
|
|
7714
|
+
await (0, $gVhhF$depictaiutilisharedlatest.observer).wait_for_element(element);
|
|
7715
|
+
setRetryPlayToggle(prev => !prev);
|
|
7716
|
+
}
|
|
7717
|
+
});else element.pause();
|
|
7703
7718
|
}));
|
|
7704
7719
|
});
|
|
7705
7720
|
typeof _ref$ === "function" && $gVhhF$solidjsweb.use(_ref$, _el$);
|
|
7706
7721
|
_el$.addEventListener("playing", () => setHasLoaded(true));
|
|
7707
7722
|
$gVhhF$solidjsweb.setAttribute(_el$, "src", mediaUrl_);
|
|
7708
|
-
$gVhhF$solidjsweb.
|
|
7709
|
-
$gVhhF$solidjsweb.setProperty(_el$, "muted", true);
|
|
7710
|
-
$gVhhF$solidjsweb.setProperty(_el$, "autoplay", true);
|
|
7711
|
-
$gVhhF$solidjsweb.setProperty(_el$, "playsinline", true);
|
|
7723
|
+
$gVhhF$solidjsweb.setAttribute(_el$, "disablepictureinpicture", true);
|
|
7712
7724
|
return _el$;
|
|
7713
7725
|
}
|
|
7714
7726
|
})];
|
|
@@ -10046,11 +10058,11 @@ function $1dbed937c406bdf0$export$e872e2339fb04a7f({
|
|
|
10046
10058
|
searching_for_value_: searching_for_value_
|
|
10047
10059
|
})), (() => {
|
|
10048
10060
|
var _el$3 = $gVhhF$solidjsweb.getNextElement($1dbed937c406bdf0$var$_tmpl$3);
|
|
10049
|
-
$gVhhF$solidjsweb.insert(_el$3, $gVhhF$solidjs.createMemo(() => {
|
|
10061
|
+
$gVhhF$solidjsweb.insert(_el$3, () => $gVhhF$solidjs.createMemo(() => {
|
|
10050
10062
|
if (input_obj().type === "content") return i18n_.content_();
|
|
10051
10063
|
if (input_obj().listing_type === "brand") return i18n_.brand_();
|
|
10052
10064
|
return i18n_.category_();
|
|
10053
|
-
}));
|
|
10065
|
+
})());
|
|
10054
10066
|
return _el$3;
|
|
10055
10067
|
})()];
|
|
10056
10068
|
})());
|
|
@@ -10657,7 +10669,7 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
10657
10669
|
},
|
|
10658
10670
|
get children() {
|
|
10659
10671
|
var _el$4 = $gVhhF$solidjsweb.getNextElement($66b8b9a9613c141d$var$_tmpl$3);
|
|
10660
|
-
$gVhhF$solidjsweb.effect(
|
|
10672
|
+
$gVhhF$solidjsweb.effect(_$p => (_$p = getBackButtonWidth() + "px", _el$4.style.setProperty("width", _$p)));
|
|
10661
10673
|
return _el$4;
|
|
10662
10674
|
}
|
|
10663
10675
|
}), _el$13, _co$3);
|
|
@@ -11339,7 +11351,7 @@ function $83e616b38be339e4$export$c8d7e00464029b45({
|
|
|
11339
11351
|
});
|
|
11340
11352
|
}
|
|
11341
11353
|
}), _el$4, _co$);
|
|
11342
|
-
$gVhhF$solidjsweb.effect(
|
|
11354
|
+
$gVhhF$solidjsweb.effect(_$p => (_$p = itemIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
11343
11355
|
return _el$;
|
|
11344
11356
|
}
|
|
11345
11357
|
});
|
|
@@ -11455,7 +11467,7 @@ function $a13dbcf80d79229c$export$d4994a86c6235f72({
|
|
|
11455
11467
|
});
|
|
11456
11468
|
}
|
|
11457
11469
|
}));
|
|
11458
|
-
$gVhhF$solidjsweb.effect(
|
|
11470
|
+
$gVhhF$solidjsweb.effect(_$p => (_$p = itemIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
11459
11471
|
return _el$;
|
|
11460
11472
|
}
|
|
11461
11473
|
});
|
|
@@ -11884,7 +11896,7 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
11884
11896
|
}),
|
|
11885
11897
|
...instant_results_options_
|
|
11886
11898
|
}), _el$4, _co$);
|
|
11887
|
-
$gVhhF$solidjsweb.effect(
|
|
11899
|
+
$gVhhF$solidjsweb.effect(_$p => (_$p = itemIndexes.instantResultsIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
11888
11900
|
return _el$;
|
|
11889
11901
|
}
|
|
11890
11902
|
});
|
|
@@ -14264,7 +14276,7 @@ function $3716b8caf7f959e2$export$6d0c9c22f6652669({
|
|
|
14264
14276
|
});
|
|
14265
14277
|
}
|
|
14266
14278
|
})), _el$5, _co$2);
|
|
14267
|
-
$gVhhF$solidjsweb.effect(
|
|
14279
|
+
$gVhhF$solidjsweb.effect(_$p => (_$p = is_loading_() && placeholders_enabled() || content_results()?.length > 0 ? "" : "none", _el$.style.setProperty("display", _$p)));
|
|
14268
14280
|
return _el$;
|
|
14269
14281
|
})();
|
|
14270
14282
|
}
|
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.
|
|
14
|
+
export const version = "4.10.1";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -1541,7 +1541,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1541
1541
|
* Open the modal with support for alignment.
|
|
1542
1542
|
* @returns {void}
|
|
1543
1543
|
*/
|
|
1544
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1544
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1545
1545
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1546
1546
|
export interface PageReplacer {
|
|
1547
1547
|
readonly render_: () => Node_Array;
|
|
@@ -1622,5 +1622,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1622
1622
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1623
1623
|
showSliderArrow_?: boolean;
|
|
1624
1624
|
hideCount0FilterOptions_?: boolean;
|
|
1625
|
-
}): import("@depict-ai/utilishared").Node_Array;
|
|
1625
|
+
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1626
1626
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/latest/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { add_to_version_info as $9HbP8$add_to_version_info, javascript_media_query as $9HbP8$javascript_media_query, standard_price_format as $9HbP8$standard_price_format, catchify as $9HbP8$catchify1, observer as $9HbP8$observer, slider_fractional_factory as $9HbP8$slider_fractional_factory, report as $9HbP8$report1, dlog as $9HbP8$dlog, camelCasifyObject as $9HbP8$camelCasifyObject, make_random_classname as $9HbP8$make_random_classname, n_col_styling_with_dist as $9HbP8$n_col_styling_with_dist, layout_get_visible_recs_without_partial_rows as $9HbP8$layout_get_visible_recs_without_partial_rows, layout_get_total_rec_amount_for_row as $9HbP8$layout_get_total_rec_amount_for_row, layout_media_query_header as $9HbP8$layout_media_query_header, dwarn as $9HbP8$dwarn, slider_fading_factory as $9HbP8$slider_fading_factory, Amazing_Slider as $9HbP8$Amazing_Slider, slider_snap_css as $9HbP8$slider_snap_css, useExpandingContainer as $9HbP8$useExpandingContainer, hex_to_rgb as $9HbP8$hex_to_rgb, relative_luminance_from_rgb as $9HbP8$relative_luminance_from_rgb, instant_exec_on_suspect_history_change as $9HbP8$instant_exec_on_suspect_history_change, base64_encode_unicode as $9HbP8$base64_encode_unicode, base64_decode_unicode as $9HbP8$base64_decode_unicode, queueMacroTask as $9HbP8$queueMacroTask, is_debug as $9HbP8$is_debug, findMostFrequentItem as $9HbP8$findMostFrequentItem, is_available_in as $9HbP8$is_available_in, fetch_retry as $9HbP8$fetch_retry, base_url as $9HbP8$base_url, deparallelize_no_drop as $9HbP8$deparallelize_no_drop, ContainedImage as $9HbP8$ContainedImage, buildThresholdList as $9HbP8$buildThresholdList, make_asyncIterable_exiter as $9HbP8$make_asyncIterable_exiter, href_change_ipns as $9HbP8$href_change_ipns, use_href_accessor as $9HbP8$use_href_accessor1, get_session_id as $9HbP8$get_session_id, add_version_query_params as $9HbP8$add_version_query_params, snakeCasifyObject as $9HbP8$snakeCasifyObject, sort_obj as $9HbP8$sort_obj, make_url_with_query_params as $9HbP8$make_url_with_query_params, insert_surfaces as $9HbP8$insert_surfaces } from "@depict-ai/utilishared/latest";
|
|
2
2
|
import { template as $9HbP8$template, createComponent as $9HbP8$createComponent, getNextElement as $9HbP8$getNextElement, getNextMarker as $9HbP8$getNextMarker, insert as $9HbP8$insert, isServer as $9HbP8$isServer, use as $9HbP8$use, effect as $9HbP8$effect, setAttribute as $9HbP8$setAttribute, memo as $9HbP8$memo, mergeProps as $9HbP8$mergeProps1, addEventListener as $9HbP8$addEventListener, runHydrationEvents as $9HbP8$runHydrationEvents, delegateEvents as $9HbP8$delegateEvents, spread as $9HbP8$spread, classList as $9HbP8$classList, className as $9HbP8$className, style as $9HbP8$style, Dynamic as $9HbP8$Dynamic, setProperty as $9HbP8$setProperty } from "solid-js/web";
|
|
3
3
|
import { createContext as $9HbP8$createContext, createSignal as $9HbP8$createSignal, getOwner as $9HbP8$getOwner, createResource as $9HbP8$createResource, untrack as $9HbP8$untrack, createRoot as $9HbP8$createRoot, createEffect as $9HbP8$createEffect, runWithOwner as $9HbP8$runWithOwner, onCleanup as $9HbP8$onCleanup, createMemo as $9HbP8$createMemo, Show as $9HbP8$Show, createComputed as $9HbP8$createComputed, createRenderEffect as $9HbP8$createRenderEffect, mergeProps as $9HbP8$mergeProps, useContext as $9HbP8$useContext, createReaction as $9HbP8$createReaction, on as $9HbP8$on, Suspense as $9HbP8$Suspense, ErrorBoundary as $9HbP8$ErrorBoundary, Index as $9HbP8$Index, For as $9HbP8$For, createUniqueId as $9HbP8$createUniqueId, mapArray as $9HbP8$mapArray, batch as $9HbP8$batch, Switch as $9HbP8$Switch, Match as $9HbP8$Match, splitProps as $9HbP8$splitProps, createComponent as $9HbP8$createComponent1, createSelector as $9HbP8$createSelector, children as $9HbP8$children } from "solid-js";
|
|
4
|
-
import { catchify as $9HbP8$catchify, report as $9HbP8$report, use_href_accessor as $9HbP8$use_href_accessor, dlog as $9HbP8$dlog1, ListenableSet as $9HbP8$ListenableSet, queueMacroTask as $9HbP8$queueMacroTask1 } from "@depict-ai/utilishared/latest";
|
|
4
|
+
import { catchify as $9HbP8$catchify, report as $9HbP8$report, use_href_accessor as $9HbP8$use_href_accessor, observer as $9HbP8$observer1, dlog as $9HbP8$dlog1, ListenableSet as $9HbP8$ListenableSet, queueMacroTask as $9HbP8$queueMacroTask1 } from "@depict-ai/utilishared/latest";
|
|
5
5
|
import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from "solid-js/store";
|
|
6
6
|
|
|
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.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.1";
|
|
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, ({
|
|
@@ -7519,7 +7519,7 @@ async function $e422ea9eccb7892b$export$5d2f6cd705125cd3() {
|
|
|
7519
7519
|
$e422ea9eccb7892b$var$cachedHlsModule = hlsModule;
|
|
7520
7520
|
return hlsModule;
|
|
7521
7521
|
}
|
|
7522
|
-
var $f916989c4b1be9f7$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<video
|
|
7522
|
+
var $f916989c4b1be9f7$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<video class=d-standard-content>`);
|
|
7523
7523
|
function $f916989c4b1be9f7$export$780a853d15174484({
|
|
7524
7524
|
link_: link_,
|
|
7525
7525
|
type_: type_,
|
|
@@ -7586,7 +7586,14 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
7586
7586
|
var _ref$ = $9HbP8$catchify(async element => {
|
|
7587
7587
|
const pageVisible = $5e3d278ef4c80cd7$export$54299a3c81f5425();
|
|
7588
7588
|
const owner = $9HbP8$getOwner();
|
|
7589
|
+
const [retryPlayToggle, setRetryPlayToggle] = $9HbP8$createSignal(false);
|
|
7589
7590
|
element.addEventListener("loadedmetadata", $9HbP8$catchify(() => setAspectRatio(element.videoWidth / element.videoHeight)));
|
|
7591
|
+
// Work around https://github.com/ryansolid/dom-expressions/issues/384
|
|
7592
|
+
element.controls = false;
|
|
7593
|
+
element.muted = true;
|
|
7594
|
+
element.autoplay = true;
|
|
7595
|
+
element.playsInline = true;
|
|
7596
|
+
element.loop = true;
|
|
7590
7597
|
// If hls is not supported, dynamically import hls.js as polyfill
|
|
7591
7598
|
if (mediaUrl_.includes(".m3u8") && !element.canPlayType("application/vnd.apple.mpegurl")) {
|
|
7592
7599
|
const hlsJs = await $e422ea9eccb7892b$export$5d2f6cd705125cd3().catch(e => $9HbP8$report([e, "Failed to load hls.js"], "error"));
|
|
@@ -7597,16 +7604,21 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
7597
7604
|
}
|
|
7598
7605
|
// need runWithOwner for createEffect, because we potentially awaited above
|
|
7599
7606
|
$9HbP8$runWithOwner(owner, () => $9HbP8$createEffect(() => {
|
|
7600
|
-
|
|
7607
|
+
retryPlayToggle();
|
|
7608
|
+
if (pageVisible()) element.play().catch(async e => {
|
|
7609
|
+
$9HbP8$dlog("Failed to play", e);
|
|
7610
|
+
// If we're not in the DOM yet, wait until we are and then try again
|
|
7611
|
+
if (!document.documentElement.contains(element)) {
|
|
7612
|
+
await (0, $9HbP8$observer1).wait_for_element(element);
|
|
7613
|
+
setRetryPlayToggle(prev => !prev);
|
|
7614
|
+
}
|
|
7615
|
+
});else element.pause();
|
|
7601
7616
|
}));
|
|
7602
7617
|
});
|
|
7603
7618
|
typeof _ref$ === "function" && $9HbP8$use(_ref$, _el$);
|
|
7604
7619
|
_el$.addEventListener("playing", () => setHasLoaded(true));
|
|
7605
7620
|
$9HbP8$setAttribute(_el$, "src", mediaUrl_);
|
|
7606
|
-
$9HbP8$
|
|
7607
|
-
$9HbP8$setProperty(_el$, "muted", true);
|
|
7608
|
-
$9HbP8$setProperty(_el$, "autoplay", true);
|
|
7609
|
-
$9HbP8$setProperty(_el$, "playsinline", true);
|
|
7621
|
+
$9HbP8$setAttribute(_el$, "disablepictureinpicture", true);
|
|
7610
7622
|
return _el$;
|
|
7611
7623
|
}
|
|
7612
7624
|
})];
|
|
@@ -9944,11 +9956,11 @@ function $ab4b0679fa8bd1dc$export$e872e2339fb04a7f({
|
|
|
9944
9956
|
searching_for_value_: searching_for_value_
|
|
9945
9957
|
})), (() => {
|
|
9946
9958
|
var _el$3 = $9HbP8$getNextElement($ab4b0679fa8bd1dc$var$_tmpl$3);
|
|
9947
|
-
$9HbP8$insert(_el$3, $9HbP8$createMemo(() => {
|
|
9959
|
+
$9HbP8$insert(_el$3, () => $9HbP8$createMemo(() => {
|
|
9948
9960
|
if (input_obj().type === "content") return i18n_.content_();
|
|
9949
9961
|
if (input_obj().listing_type === "brand") return i18n_.brand_();
|
|
9950
9962
|
return i18n_.category_();
|
|
9951
|
-
}));
|
|
9963
|
+
})());
|
|
9952
9964
|
return _el$3;
|
|
9953
9965
|
})()];
|
|
9954
9966
|
})());
|
|
@@ -10555,7 +10567,7 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
10555
10567
|
},
|
|
10556
10568
|
get children() {
|
|
10557
10569
|
var _el$4 = $9HbP8$getNextElement($5285d2814d0fac0c$var$_tmpl$3);
|
|
10558
|
-
$9HbP8$effect(
|
|
10570
|
+
$9HbP8$effect(_$p => (_$p = getBackButtonWidth() + "px", _el$4.style.setProperty("width", _$p)));
|
|
10559
10571
|
return _el$4;
|
|
10560
10572
|
}
|
|
10561
10573
|
}), _el$13, _co$3);
|
|
@@ -11237,7 +11249,7 @@ function $44f30a4222ce604b$export$c8d7e00464029b45({
|
|
|
11237
11249
|
});
|
|
11238
11250
|
}
|
|
11239
11251
|
}), _el$4, _co$);
|
|
11240
|
-
$9HbP8$effect(
|
|
11252
|
+
$9HbP8$effect(_$p => (_$p = itemIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
11241
11253
|
return _el$;
|
|
11242
11254
|
}
|
|
11243
11255
|
});
|
|
@@ -11353,7 +11365,7 @@ function $903297121898e5ff$export$d4994a86c6235f72({
|
|
|
11353
11365
|
});
|
|
11354
11366
|
}
|
|
11355
11367
|
}));
|
|
11356
|
-
$9HbP8$effect(
|
|
11368
|
+
$9HbP8$effect(_$p => (_$p = itemIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
11357
11369
|
return _el$;
|
|
11358
11370
|
}
|
|
11359
11371
|
});
|
|
@@ -11782,7 +11794,7 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
11782
11794
|
}),
|
|
11783
11795
|
...instant_results_options_
|
|
11784
11796
|
}), _el$4, _co$);
|
|
11785
|
-
$9HbP8$effect(
|
|
11797
|
+
$9HbP8$effect(_$p => (_$p = itemIndexes.instantResultsIndex_()) != null ? _el$.style.setProperty("order", _$p) : _el$.style.removeProperty("order"));
|
|
11786
11798
|
return _el$;
|
|
11787
11799
|
}
|
|
11788
11800
|
});
|
|
@@ -14162,7 +14174,7 @@ function $49de9d31aeea1b5e$export$6d0c9c22f6652669({
|
|
|
14162
14174
|
});
|
|
14163
14175
|
}
|
|
14164
14176
|
})), _el$5, _co$2);
|
|
14165
|
-
$9HbP8$effect(
|
|
14177
|
+
$9HbP8$effect(_$p => (_$p = is_loading_() && placeholders_enabled() || content_results()?.length > 0 ? "" : "none", _el$.style.setProperty("display", _$p)));
|
|
14166
14178
|
return _el$;
|
|
14167
14179
|
})();
|
|
14168
14180
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.1",
|
|
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",
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
"@parcel/resolver-default": "^2.10.3",
|
|
227
227
|
"@types/jest": "^29.2.4",
|
|
228
228
|
"@types/node": "^18.11.11",
|
|
229
|
-
"babel-preset-solid": "^1.
|
|
229
|
+
"babel-preset-solid": "^1.9.3",
|
|
230
230
|
"jest": "^29.3.1",
|
|
231
231
|
"lodash": "^4.17.21",
|
|
232
232
|
"parcel": "^2.10.3",
|
|
@@ -236,10 +236,10 @@
|
|
|
236
236
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
237
237
|
"@babel/runtime": "latest",
|
|
238
238
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
239
|
-
"@depict-ai/plp-styling": "^4.
|
|
240
|
-
"@depict-ai/types": "^5.
|
|
241
|
-
"@depict-ai/utilishared": "^2.
|
|
242
|
-
"solid-js": "^1.
|
|
239
|
+
"@depict-ai/plp-styling": "^4.6.0",
|
|
240
|
+
"@depict-ai/types": "^5.6.0",
|
|
241
|
+
"@depict-ai/utilishared": "^2.6.0",
|
|
242
|
+
"solid-js": "^1.9.3"
|
|
243
243
|
},
|
|
244
244
|
"type": "module",
|
|
245
245
|
"types": "ES10/index.d.ts",
|
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.
|
|
118
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.10.1";
|
|
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 => {
|
|
@@ -6611,7 +6611,7 @@ function $f3db423dc84bc35d$export$140423fa4bfb6d63(props) {
|
|
|
6611
6611
|
customUrls: $f3db423dc84bc35d$var$customUrls
|
|
6612
6612
|
}));
|
|
6613
6613
|
}
|
|
6614
|
-
var $c19709057a32b2e7$var$_tmpl$ = ["<video", '
|
|
6614
|
+
var $c19709057a32b2e7$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'];
|
|
6615
6615
|
function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
6616
6616
|
let {
|
|
6617
6617
|
link_: link_,
|
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.
|
|
14
|
+
export const version = "4.10.1";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -1541,7 +1541,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1541
1541
|
* Open the modal with support for alignment.
|
|
1542
1542
|
* @returns {void}
|
|
1543
1543
|
*/
|
|
1544
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1544
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1545
1545
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1546
1546
|
export interface PageReplacer {
|
|
1547
1547
|
readonly render_: () => Node_Array;
|
|
@@ -1622,5 +1622,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1622
1622
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1623
1623
|
showSliderArrow_?: boolean;
|
|
1624
1624
|
hideCount0FilterOptions_?: boolean;
|
|
1625
|
-
}): import("@depict-ai/utilishared").Node_Array;
|
|
1625
|
+
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1626
1626
|
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.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.10.1";
|
|
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 => {
|
|
@@ -6506,7 +6506,7 @@ function $98688279b9059f50$export$140423fa4bfb6d63(props) {
|
|
|
6506
6506
|
customUrls: $98688279b9059f50$var$customUrls
|
|
6507
6507
|
}));
|
|
6508
6508
|
}
|
|
6509
|
-
var $3b772ef9a35560fe$var$_tmpl$ = ["<video", '
|
|
6509
|
+
var $3b772ef9a35560fe$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'];
|
|
6510
6510
|
function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
6511
6511
|
let {
|
|
6512
6512
|
link_: link_,
|
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.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.10.1";
|
|
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, ({
|
|
@@ -6233,7 +6233,7 @@ function $d212a67662c5cf38$export$140423fa4bfb6d63(props) {
|
|
|
6233
6233
|
customUrls: $d212a67662c5cf38$var$customUrls
|
|
6234
6234
|
}));
|
|
6235
6235
|
}
|
|
6236
|
-
var $32c662f618f5d80d$var$_tmpl$ = ["<video", '
|
|
6236
|
+
var $32c662f618f5d80d$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'];
|
|
6237
6237
|
function $32c662f618f5d80d$export$780a853d15174484({
|
|
6238
6238
|
link_: link_,
|
|
6239
6239
|
type_: type_,
|
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.
|
|
14
|
+
export const version = "4.10.1";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -1541,7 +1541,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1541
1541
|
* Open the modal with support for alignment.
|
|
1542
1542
|
* @returns {void}
|
|
1543
1543
|
*/
|
|
1544
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1544
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1545
1545
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1546
1546
|
export interface PageReplacer {
|
|
1547
1547
|
readonly render_: () => Node_Array;
|
|
@@ -1622,5 +1622,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1622
1622
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1623
1623
|
showSliderArrow_?: boolean;
|
|
1624
1624
|
hideCount0FilterOptions_?: boolean;
|
|
1625
|
-
}): import("@depict-ai/utilishared").Node_Array;
|
|
1625
|
+
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1626
1626
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
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.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.1";
|
|
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, ({
|
|
@@ -6131,7 +6131,7 @@ function $70bb27cc6be01fc7$export$140423fa4bfb6d63(props) {
|
|
|
6131
6131
|
customUrls: $70bb27cc6be01fc7$var$customUrls
|
|
6132
6132
|
}));
|
|
6133
6133
|
}
|
|
6134
|
-
var $f916989c4b1be9f7$var$_tmpl$ = ["<video", '
|
|
6134
|
+
var $f916989c4b1be9f7$var$_tmpl$ = ["<video", ' disablepictureinpicture="true" class="d-standard-content"></video>'];
|
|
6135
6135
|
function $f916989c4b1be9f7$export$780a853d15174484({
|
|
6136
6136
|
link_: link_,
|
|
6137
6137
|
type_: type_,
|