@depict-ai/ui 4.9.4 → 4.9.5
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 +32 -5
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +32 -5
- package/latest/index.cjs +32 -5
- package/latest/index.d.ts +1 -1
- package/latest/index.js +32 -5
- package/package.json +1 -1
- package/server/ES10/index.cjs +1 -1
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +1 -1
- package/server/latest/index.cjs +1 -1
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +1 -1
package/ES10/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@ var $52FdA$solidjsweb = require("solid-js/web");
|
|
|
3
3
|
var $52FdA$solidjs = require("solid-js");
|
|
4
4
|
var $52FdA$depictaiutilisharedlatest = require("@depict-ai/utilishared/ES10");
|
|
5
5
|
var $52FdA$solidjsstore = require("solid-js/store");
|
|
6
|
+
var $52FdA$depictaiutilisharedsrc = require("@depict-ai/utilishared/src/ES10");
|
|
6
7
|
var $52FdA$babelruntimehelpersdefineProperty = require("@babel/runtime/helpers/defineProperty");
|
|
7
8
|
var $52FdA$babelruntimehelpersclassPrivateFieldSet = require("@babel/runtime/helpers/classPrivateFieldSet");
|
|
8
9
|
var $52FdA$babelruntimehelpersclassPrivateFieldGet = require("@babel/runtime/helpers/classPrivateFieldGet");
|
|
@@ -115,7 +116,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
115
116
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
116
117
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
117
118
|
/*! Depict.ai search and product listing SDK */
|
|
118
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.9.
|
|
119
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.9.5";
|
|
119
120
|
function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
|
|
120
121
|
const signal = $52FdA$solidjs.createSignal(false);
|
|
121
122
|
$52FdA$solidjs.onCleanup($52FdA$depictaiutilishared.javascript_media_query(media_query, _ref => {
|
|
@@ -8016,6 +8017,21 @@ function $f3db423dc84bc35d$export$140423fa4bfb6d63(props) {
|
|
|
8016
8017
|
customUrls: $f3db423dc84bc35d$var$customUrls
|
|
8017
8018
|
}));
|
|
8018
8019
|
}
|
|
8020
|
+
let $8e8c89c02c16dc7b$var$cachedHlsModule;
|
|
8021
|
+
async function $8e8c89c02c16dc7b$export$5d2f6cd705125cd3() {
|
|
8022
|
+
if ($8e8c89c02c16dc7b$var$cachedHlsModule) return $8e8c89c02c16dc7b$var$cachedHlsModule;
|
|
8023
|
+
const global_var_name = "_depict_ai_hls_polyfill";
|
|
8024
|
+
const scriptTag = document.createElement("script");
|
|
8025
|
+
scriptTag.type = "module";
|
|
8026
|
+
// Our build systems aren't set-up for dynamic imports, so do this instead
|
|
8027
|
+
scriptTag.append('import("https://cdn.jsdelivr.net/npm/hls.js/+esm").then(m=>window.'.concat(global_var_name, "=m)"));
|
|
8028
|
+
document.head.append(scriptTag);
|
|
8029
|
+
const hlsModule = await $52FdA$depictaiutilisharedsrc.is_available_in(window, global_var_name);
|
|
8030
|
+
delete window[global_var_name];
|
|
8031
|
+
scriptTag.remove();
|
|
8032
|
+
$8e8c89c02c16dc7b$var$cachedHlsModule = hlsModule;
|
|
8033
|
+
return hlsModule;
|
|
8034
|
+
}
|
|
8019
8035
|
var $c19709057a32b2e7$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<video loop class=d-standard-content>`);
|
|
8020
8036
|
function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
8021
8037
|
let {
|
|
@@ -8087,13 +8103,24 @@ function $c19709057a32b2e7$export$780a853d15174484(_ref) {
|
|
|
8087
8103
|
when: type_ === "video",
|
|
8088
8104
|
get children() {
|
|
8089
8105
|
var _el$ = $52FdA$solidjsweb.getNextElement($c19709057a32b2e7$var$_tmpl$);
|
|
8090
|
-
$52FdA$
|
|
8106
|
+
var _ref$ = $52FdA$depictaiutilisharedlatest.catchify(async element => {
|
|
8091
8107
|
const pageVisible = $e7a7d2fe8a8217d8$export$54299a3c81f5425();
|
|
8108
|
+
const owner = $52FdA$solidjs.getOwner();
|
|
8092
8109
|
element.addEventListener("loadedmetadata", $52FdA$depictaiutilisharedlatest.catchify(() => setAspectRatio(element.videoWidth / element.videoHeight)));
|
|
8093
|
-
|
|
8110
|
+
// If hls is not supported, dynamically import hls.js as polyfill
|
|
8111
|
+
if (mediaUrl_.includes(".m3u8") && !element.canPlayType("application/vnd.apple.mpegurl")) {
|
|
8112
|
+
const hlsJs = await $8e8c89c02c16dc7b$export$5d2f6cd705125cd3().catch(e => $52FdA$depictaiutilisharedlatest.report([e, "Failed to load hls.js"], "error"));
|
|
8113
|
+
if (!hlsJs || !hlsJs.isSupported()) return;
|
|
8114
|
+
const hls = new hlsJs.default();
|
|
8115
|
+
hls.loadSource(mediaUrl_);
|
|
8116
|
+
hls.attachMedia(element);
|
|
8117
|
+
}
|
|
8118
|
+
// need runWithOwner for createEffect, because we potentially awaited above
|
|
8119
|
+
$52FdA$solidjs.runWithOwner(owner, () => $52FdA$solidjs.createEffect(() => {
|
|
8094
8120
|
if (pageVisible()) element.play().catch(e => $52FdA$depictaiutilishared.dlog("Failed to play", e));else element.pause();
|
|
8095
|
-
});
|
|
8096
|
-
}
|
|
8121
|
+
}));
|
|
8122
|
+
});
|
|
8123
|
+
typeof _ref$ === "function" && $52FdA$solidjsweb.use(_ref$, _el$);
|
|
8097
8124
|
_el$.addEventListener("playing", () => setHasLoaded(true));
|
|
8098
8125
|
$52FdA$solidjsweb.setAttribute(_el$, "src", mediaUrl_);
|
|
8099
8126
|
$52FdA$solidjsweb.setProperty(_el$, "controls", false);
|
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.9.
|
|
14
|
+
export const version = "4.9.5";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
package/ES10/index.js
CHANGED
|
@@ -3,6 +3,7 @@ import { template as $8tj43$template, createComponent as $8tj43$createComponent,
|
|
|
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
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";
|
|
5
5
|
import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from "solid-js/store";
|
|
6
|
+
import { is_available_in as $8tj43$is_available_in } from "@depict-ai/utilishared/src/ES10";
|
|
6
7
|
import $8tj43$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
8
|
import $8tj43$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
8
9
|
import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
|
|
@@ -10,7 +11,7 @@ import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
10
11
|
/*! Depict.ai search and product listing SDK */
|
|
11
12
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
12
13
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.9.
|
|
14
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.9.5";
|
|
14
15
|
function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
|
|
15
16
|
const signal = $8tj43$createSignal(false);
|
|
16
17
|
$8tj43$onCleanup($8tj43$javascript_media_query(media_query, _ref => {
|
|
@@ -7911,6 +7912,21 @@ function $98688279b9059f50$export$140423fa4bfb6d63(props) {
|
|
|
7911
7912
|
customUrls: $98688279b9059f50$var$customUrls
|
|
7912
7913
|
}));
|
|
7913
7914
|
}
|
|
7915
|
+
let $e92c154db502596d$var$cachedHlsModule;
|
|
7916
|
+
async function $e92c154db502596d$export$5d2f6cd705125cd3() {
|
|
7917
|
+
if ($e92c154db502596d$var$cachedHlsModule) return $e92c154db502596d$var$cachedHlsModule;
|
|
7918
|
+
const global_var_name = "_depict_ai_hls_polyfill";
|
|
7919
|
+
const scriptTag = document.createElement("script");
|
|
7920
|
+
scriptTag.type = "module";
|
|
7921
|
+
// Our build systems aren't set-up for dynamic imports, so do this instead
|
|
7922
|
+
scriptTag.append('import("https://cdn.jsdelivr.net/npm/hls.js/+esm").then(m=>window.'.concat(global_var_name, "=m)"));
|
|
7923
|
+
document.head.append(scriptTag);
|
|
7924
|
+
const hlsModule = await $8tj43$is_available_in(window, global_var_name);
|
|
7925
|
+
delete window[global_var_name];
|
|
7926
|
+
scriptTag.remove();
|
|
7927
|
+
$e92c154db502596d$var$cachedHlsModule = hlsModule;
|
|
7928
|
+
return hlsModule;
|
|
7929
|
+
}
|
|
7914
7930
|
var $3b772ef9a35560fe$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<video loop class=d-standard-content>`);
|
|
7915
7931
|
function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
7916
7932
|
let {
|
|
@@ -7982,13 +7998,24 @@ function $3b772ef9a35560fe$export$780a853d15174484(_ref) {
|
|
|
7982
7998
|
when: type_ === "video",
|
|
7983
7999
|
get children() {
|
|
7984
8000
|
var _el$ = $8tj43$getNextElement($3b772ef9a35560fe$var$_tmpl$);
|
|
7985
|
-
$8tj43$
|
|
8001
|
+
var _ref$ = $8tj43$catchify(async element => {
|
|
7986
8002
|
const pageVisible = $a35e6f680c5bbc60$export$54299a3c81f5425();
|
|
8003
|
+
const owner = $8tj43$getOwner();
|
|
7987
8004
|
element.addEventListener("loadedmetadata", $8tj43$catchify(() => setAspectRatio(element.videoWidth / element.videoHeight)));
|
|
7988
|
-
|
|
8005
|
+
// If hls is not supported, dynamically import hls.js as polyfill
|
|
8006
|
+
if (mediaUrl_.includes(".m3u8") && !element.canPlayType("application/vnd.apple.mpegurl")) {
|
|
8007
|
+
const hlsJs = await $e92c154db502596d$export$5d2f6cd705125cd3().catch(e => $8tj43$report([e, "Failed to load hls.js"], "error"));
|
|
8008
|
+
if (!hlsJs || !hlsJs.isSupported()) return;
|
|
8009
|
+
const hls = new hlsJs.default();
|
|
8010
|
+
hls.loadSource(mediaUrl_);
|
|
8011
|
+
hls.attachMedia(element);
|
|
8012
|
+
}
|
|
8013
|
+
// need runWithOwner for createEffect, because we potentially awaited above
|
|
8014
|
+
$8tj43$runWithOwner(owner, () => $8tj43$createEffect(() => {
|
|
7989
8015
|
if (pageVisible()) element.play().catch(e => $8tj43$dlog("Failed to play", e));else element.pause();
|
|
7990
|
-
});
|
|
7991
|
-
}
|
|
8016
|
+
}));
|
|
8017
|
+
});
|
|
8018
|
+
typeof _ref$ === "function" && $8tj43$use(_ref$, _el$);
|
|
7992
8019
|
_el$.addEventListener("playing", () => setHasLoaded(true));
|
|
7993
8020
|
$8tj43$setAttribute(_el$, "src", mediaUrl_);
|
|
7994
8021
|
$8tj43$setProperty(_el$, "controls", false);
|
package/latest/index.cjs
CHANGED
|
@@ -3,6 +3,7 @@ var $gVhhF$solidjsweb = require("solid-js/web");
|
|
|
3
3
|
var $gVhhF$solidjs = require("solid-js");
|
|
4
4
|
var $gVhhF$depictaiutilisharedlatest = require("@depict-ai/utilishared/latest");
|
|
5
5
|
var $gVhhF$solidjsstore = require("solid-js/store");
|
|
6
|
+
var $gVhhF$depictaiutilisharedsrc = require("@depict-ai/utilishared/src/latest");
|
|
6
7
|
require("../multi_import_deduplicator.cjs").register_es_version("ui", "latest");
|
|
7
8
|
function $parcel$export(e, n, v, s) {
|
|
8
9
|
Object.defineProperty(e, n, {
|
|
@@ -109,7 +110,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
109
110
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
110
111
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
111
112
|
/*! Depict.ai search and product listing SDK */
|
|
112
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.9.
|
|
113
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.9.5";
|
|
113
114
|
function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
|
|
114
115
|
const signal = $gVhhF$solidjs.createSignal(false);
|
|
115
116
|
$gVhhF$solidjs.onCleanup($gVhhF$depictaiutilishared.javascript_media_query(media_query, ({
|
|
@@ -7585,6 +7586,21 @@ function $d212a67662c5cf38$export$140423fa4bfb6d63(props) {
|
|
|
7585
7586
|
customUrls: $d212a67662c5cf38$var$customUrls
|
|
7586
7587
|
}));
|
|
7587
7588
|
}
|
|
7589
|
+
let $20ff40266d725403$var$cachedHlsModule;
|
|
7590
|
+
async function $20ff40266d725403$export$5d2f6cd705125cd3() {
|
|
7591
|
+
if ($20ff40266d725403$var$cachedHlsModule) return $20ff40266d725403$var$cachedHlsModule;
|
|
7592
|
+
const global_var_name = "_depict_ai_hls_polyfill";
|
|
7593
|
+
const scriptTag = document.createElement("script");
|
|
7594
|
+
scriptTag.type = "module";
|
|
7595
|
+
// Our build systems aren't set-up for dynamic imports, so do this instead
|
|
7596
|
+
scriptTag.append(`import("https://cdn.jsdelivr.net/npm/hls.js/+esm").then(m=>window.${global_var_name}=m)`);
|
|
7597
|
+
document.head.append(scriptTag);
|
|
7598
|
+
const hlsModule = await $gVhhF$depictaiutilisharedsrc.is_available_in(window, global_var_name);
|
|
7599
|
+
delete window[global_var_name];
|
|
7600
|
+
scriptTag.remove();
|
|
7601
|
+
$20ff40266d725403$var$cachedHlsModule = hlsModule;
|
|
7602
|
+
return hlsModule;
|
|
7603
|
+
}
|
|
7588
7604
|
var $32c662f618f5d80d$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<video loop class=d-standard-content>`);
|
|
7589
7605
|
function $32c662f618f5d80d$export$780a853d15174484({
|
|
7590
7606
|
link_: link_,
|
|
@@ -7649,13 +7665,24 @@ function $32c662f618f5d80d$export$780a853d15174484({
|
|
|
7649
7665
|
when: type_ === "video",
|
|
7650
7666
|
get children() {
|
|
7651
7667
|
var _el$ = $gVhhF$solidjsweb.getNextElement($32c662f618f5d80d$var$_tmpl$);
|
|
7652
|
-
$gVhhF$
|
|
7668
|
+
var _ref$ = $gVhhF$depictaiutilisharedlatest.catchify(async element => {
|
|
7653
7669
|
const pageVisible = $55cbacb79d3e0cea$export$54299a3c81f5425();
|
|
7670
|
+
const owner = $gVhhF$solidjs.getOwner();
|
|
7654
7671
|
element.addEventListener("loadedmetadata", $gVhhF$depictaiutilisharedlatest.catchify(() => setAspectRatio(element.videoWidth / element.videoHeight)));
|
|
7655
|
-
|
|
7672
|
+
// If hls is not supported, dynamically import hls.js as polyfill
|
|
7673
|
+
if (mediaUrl_.includes(".m3u8") && !element.canPlayType("application/vnd.apple.mpegurl")) {
|
|
7674
|
+
const hlsJs = await $20ff40266d725403$export$5d2f6cd705125cd3().catch(e => $gVhhF$depictaiutilisharedlatest.report([e, "Failed to load hls.js"], "error"));
|
|
7675
|
+
if (!hlsJs || !hlsJs.isSupported()) return;
|
|
7676
|
+
const hls = new hlsJs.default();
|
|
7677
|
+
hls.loadSource(mediaUrl_);
|
|
7678
|
+
hls.attachMedia(element);
|
|
7679
|
+
}
|
|
7680
|
+
// need runWithOwner for createEffect, because we potentially awaited above
|
|
7681
|
+
$gVhhF$solidjs.runWithOwner(owner, () => $gVhhF$solidjs.createEffect(() => {
|
|
7656
7682
|
if (pageVisible()) element.play().catch(e => $gVhhF$depictaiutilishared.dlog("Failed to play", e));else element.pause();
|
|
7657
|
-
});
|
|
7658
|
-
}
|
|
7683
|
+
}));
|
|
7684
|
+
});
|
|
7685
|
+
typeof _ref$ === "function" && $gVhhF$solidjsweb.use(_ref$, _el$);
|
|
7659
7686
|
_el$.addEventListener("playing", () => setHasLoaded(true));
|
|
7660
7687
|
$gVhhF$solidjsweb.setAttribute(_el$, "src", mediaUrl_);
|
|
7661
7688
|
$gVhhF$solidjsweb.setProperty(_el$, "controls", false);
|
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.9.
|
|
14
|
+
export const version = "4.9.5";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
package/latest/index.js
CHANGED
|
@@ -3,11 +3,12 @@ import { template as $9HbP8$template, createComponent as $9HbP8$createComponent,
|
|
|
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
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";
|
|
5
5
|
import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from "solid-js/store";
|
|
6
|
+
import { is_available_in as $9HbP8$is_available_in } from "@depict-ai/utilishared/src/latest";
|
|
6
7
|
|
|
7
8
|
/*! Depict.ai search and product listing SDK */
|
|
8
9
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
9
10
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.9.
|
|
11
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.9.5";
|
|
11
12
|
function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
|
|
12
13
|
const signal = $9HbP8$createSignal(false);
|
|
13
14
|
$9HbP8$onCleanup($9HbP8$javascript_media_query(media_query, ({
|
|
@@ -7483,6 +7484,21 @@ function $70bb27cc6be01fc7$export$140423fa4bfb6d63(props) {
|
|
|
7483
7484
|
customUrls: $70bb27cc6be01fc7$var$customUrls
|
|
7484
7485
|
}));
|
|
7485
7486
|
}
|
|
7487
|
+
let $e422ea9eccb7892b$var$cachedHlsModule;
|
|
7488
|
+
async function $e422ea9eccb7892b$export$5d2f6cd705125cd3() {
|
|
7489
|
+
if ($e422ea9eccb7892b$var$cachedHlsModule) return $e422ea9eccb7892b$var$cachedHlsModule;
|
|
7490
|
+
const global_var_name = "_depict_ai_hls_polyfill";
|
|
7491
|
+
const scriptTag = document.createElement("script");
|
|
7492
|
+
scriptTag.type = "module";
|
|
7493
|
+
// Our build systems aren't set-up for dynamic imports, so do this instead
|
|
7494
|
+
scriptTag.append(`import("https://cdn.jsdelivr.net/npm/hls.js/+esm").then(m=>window.${global_var_name}=m)`);
|
|
7495
|
+
document.head.append(scriptTag);
|
|
7496
|
+
const hlsModule = await $9HbP8$is_available_in(window, global_var_name);
|
|
7497
|
+
delete window[global_var_name];
|
|
7498
|
+
scriptTag.remove();
|
|
7499
|
+
$e422ea9eccb7892b$var$cachedHlsModule = hlsModule;
|
|
7500
|
+
return hlsModule;
|
|
7501
|
+
}
|
|
7486
7502
|
var $f916989c4b1be9f7$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<video loop class=d-standard-content>`);
|
|
7487
7503
|
function $f916989c4b1be9f7$export$780a853d15174484({
|
|
7488
7504
|
link_: link_,
|
|
@@ -7547,13 +7563,24 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
7547
7563
|
when: type_ === "video",
|
|
7548
7564
|
get children() {
|
|
7549
7565
|
var _el$ = $9HbP8$getNextElement($f916989c4b1be9f7$var$_tmpl$);
|
|
7550
|
-
$9HbP8$
|
|
7566
|
+
var _ref$ = $9HbP8$catchify(async element => {
|
|
7551
7567
|
const pageVisible = $5e3d278ef4c80cd7$export$54299a3c81f5425();
|
|
7568
|
+
const owner = $9HbP8$getOwner();
|
|
7552
7569
|
element.addEventListener("loadedmetadata", $9HbP8$catchify(() => setAspectRatio(element.videoWidth / element.videoHeight)));
|
|
7553
|
-
|
|
7570
|
+
// If hls is not supported, dynamically import hls.js as polyfill
|
|
7571
|
+
if (mediaUrl_.includes(".m3u8") && !element.canPlayType("application/vnd.apple.mpegurl")) {
|
|
7572
|
+
const hlsJs = await $e422ea9eccb7892b$export$5d2f6cd705125cd3().catch(e => $9HbP8$report([e, "Failed to load hls.js"], "error"));
|
|
7573
|
+
if (!hlsJs || !hlsJs.isSupported()) return;
|
|
7574
|
+
const hls = new hlsJs.default();
|
|
7575
|
+
hls.loadSource(mediaUrl_);
|
|
7576
|
+
hls.attachMedia(element);
|
|
7577
|
+
}
|
|
7578
|
+
// need runWithOwner for createEffect, because we potentially awaited above
|
|
7579
|
+
$9HbP8$runWithOwner(owner, () => $9HbP8$createEffect(() => {
|
|
7554
7580
|
if (pageVisible()) element.play().catch(e => $9HbP8$dlog("Failed to play", e));else element.pause();
|
|
7555
|
-
});
|
|
7556
|
-
}
|
|
7581
|
+
}));
|
|
7582
|
+
});
|
|
7583
|
+
typeof _ref$ === "function" && $9HbP8$use(_ref$, _el$);
|
|
7557
7584
|
_el$.addEventListener("playing", () => setHasLoaded(true));
|
|
7558
7585
|
$9HbP8$setAttribute(_el$, "src", mediaUrl_);
|
|
7559
7586
|
$9HbP8$setProperty(_el$, "controls", false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.5",
|
|
4
4
|
"description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
|
|
5
5
|
"packageManager": "yarn@3.2.2",
|
|
6
6
|
"sass": "styles.scss",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
115
115
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
116
116
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
117
117
|
/*! Depict.ai search and product listing SDK */
|
|
118
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.9.
|
|
118
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.9.5";
|
|
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 => {
|
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.9.
|
|
14
|
+
export const version = "4.9.5";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
package/server/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.9.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.9.5";
|
|
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 => {
|
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.9.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.9.5";
|
|
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, ({
|
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.9.
|
|
14
|
+
export const version = "4.9.5";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
package/server/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.9.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.9.5";
|
|
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, ({
|