@depict-ai/ui 4.9.3 → 4.9.4
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 +38 -16
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +38 -16
- package/latest/index.cjs +38 -16
- package/latest/index.d.ts +1 -1
- package/latest/index.js +38 -16
- package/package.json +1 -1
- package/server/ES10/index.cjs +19 -12
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +19 -12
- package/server/latest/index.cjs +19 -12
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +19 -12
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.9.
|
|
118
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.9.4";
|
|
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 => {
|
|
@@ -10090,15 +10090,18 @@ const $82d079b68975fbf7$export$b05c0ae390cf3e06 = _ref => {
|
|
|
10090
10090
|
$52FdA$solidjsweb.effect(_p$ => {
|
|
10091
10091
|
var _v$ = href(),
|
|
10092
10092
|
_v$2 = display_.search_result_id,
|
|
10093
|
-
_v$3 = !!(isSelected !== null && isSelected !== void 0 && isSelected())
|
|
10093
|
+
_v$3 = !!(isSelected !== null && isSelected !== void 0 && isSelected()),
|
|
10094
|
+
_v$4 = isSelected === null || isSelected === void 0 ? void 0 : isSelected();
|
|
10094
10095
|
_v$ !== _p$.e && $52FdA$solidjsweb.setAttribute(_el$4, "href", _p$.e = _v$);
|
|
10095
10096
|
_v$2 !== _p$.t && $52FdA$solidjsweb.setAttribute(_el$4, "data-search-result-id", _p$.t = _v$2);
|
|
10096
10097
|
_v$3 !== _p$.a && _el$4.classList.toggle("selected", _p$.a = _v$3);
|
|
10098
|
+
_v$4 !== _p$.o && $52FdA$solidjsweb.setAttribute(_el$4, "aria-selected", _p$.o = _v$4);
|
|
10097
10099
|
return _p$;
|
|
10098
10100
|
}, {
|
|
10099
10101
|
e: undefined,
|
|
10100
10102
|
t: undefined,
|
|
10101
|
-
a: undefined
|
|
10103
|
+
a: undefined,
|
|
10104
|
+
o: undefined
|
|
10102
10105
|
});
|
|
10103
10106
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
10104
10107
|
return _el$4;
|
|
@@ -11104,7 +11107,8 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
11104
11107
|
BackIcon_: BackIcon_,
|
|
11105
11108
|
buttonInFieldRef_: buttonInFieldRef_,
|
|
11106
11109
|
class_: class_,
|
|
11107
|
-
setSearchRoleOnContainer_ = true
|
|
11110
|
+
setSearchRoleOnContainer_ = true,
|
|
11111
|
+
ariaControls: ariaControls
|
|
11108
11112
|
} = _ref;
|
|
11109
11113
|
let input_element;
|
|
11110
11114
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -11324,7 +11328,11 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
11324
11328
|
},
|
|
11325
11329
|
get placeholder() {
|
|
11326
11330
|
return i18n_.placeholder_text_();
|
|
11327
|
-
}
|
|
11331
|
+
},
|
|
11332
|
+
"aria-autocomplete": "list",
|
|
11333
|
+
"aria-haspopup": "dialog"
|
|
11334
|
+
}, ariaControls && {
|
|
11335
|
+
"aria-controls": ariaControls
|
|
11328
11336
|
}), false, false);
|
|
11329
11337
|
$52FdA$solidjsweb.insert(_el$5, !isNewModal && $52FdA$solidjsweb.createComponent(ClearButton, {}), _el$10, _co$2);
|
|
11330
11338
|
$52FdA$solidjsweb.insert(_el$3, isNewModal && $52FdA$solidjsweb.createComponent(BackButton, {}), _el$17, _co$5);
|
|
@@ -11373,8 +11381,8 @@ function $4b71b4fabdee5753$export$93d9bfd0c9c1a5b8(close_modal, search_query_url
|
|
|
11373
11381
|
}
|
|
11374
11382
|
var $9035b24c2dbd3f36$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=discover-more><button class=major type=button>`),
|
|
11375
11383
|
$9035b24c2dbd3f36$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<b>`),
|
|
11376
|
-
$9035b24c2dbd3f36$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=depict-search-modal><div class=body role=search><!$><!/><div class=padded><!$><!/><!$><!/><!$><!/></div><!$><!/></div><!$><!/>`),
|
|
11377
|
-
$9035b24c2dbd3f36$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp search"><div class=depict-search-modal-backdrop></div><!$><!/>`);
|
|
11384
|
+
$9035b24c2dbd3f36$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=depict-search-modal><div class=body role=search aria-label="Search modal with search field, query suggestions and result preview"><!$><!/><div id=depict-suggestions-and-result-preview class=padded><!$><!/><!$><!/><!$><!/></div><!$><!/></div><!$><!/>`),
|
|
11385
|
+
$9035b24c2dbd3f36$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict plp search"role=dialog><div class=depict-search-modal-backdrop></div><!$><!/>`);
|
|
11378
11386
|
/**
|
|
11379
11387
|
* First generation (classic) search modal - the solid component that gets added to <body> when the search modal is opened
|
|
11380
11388
|
*/
|
|
@@ -11523,7 +11531,8 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
11523
11531
|
if (start === null || end === null) return;
|
|
11524
11532
|
input_el.setSelectionRange(start, end);
|
|
11525
11533
|
},
|
|
11526
|
-
setSearchRoleOnContainer_: false
|
|
11534
|
+
setSearchRoleOnContainer_: false,
|
|
11535
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
11527
11536
|
});
|
|
11528
11537
|
const modal_element = (() => {
|
|
11529
11538
|
var _el$4 = $52FdA$solidjsweb.getNextElement($9035b24c2dbd3f36$var$_tmpl$3),
|
|
@@ -11779,7 +11788,16 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
|
|
|
11779
11788
|
});
|
|
11780
11789
|
}
|
|
11781
11790
|
}));
|
|
11782
|
-
$52FdA$solidjsweb.effect(
|
|
11791
|
+
$52FdA$solidjsweb.effect(_p$ => {
|
|
11792
|
+
var _v$ = !!isSelected(),
|
|
11793
|
+
_v$2 = isSelected();
|
|
11794
|
+
_v$ !== _p$.e && _el$2.classList.toggle("selected", _p$.e = _v$);
|
|
11795
|
+
_v$2 !== _p$.t && $52FdA$solidjsweb.setAttribute(_el$2, "aria-selected", _p$.t = _v$2);
|
|
11796
|
+
return _p$;
|
|
11797
|
+
}, {
|
|
11798
|
+
e: undefined,
|
|
11799
|
+
t: undefined
|
|
11800
|
+
});
|
|
11783
11801
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
11784
11802
|
return _el$2;
|
|
11785
11803
|
})();
|
|
@@ -12013,16 +12031,19 @@ function $79a8fa74cb5cdfb9$export$d4994a86c6235f72(_ref) {
|
|
|
12013
12031
|
}));
|
|
12014
12032
|
$52FdA$solidjsweb.effect(_p$ => {
|
|
12015
12033
|
var _v$ = !!isSelected(),
|
|
12016
|
-
_v$2 =
|
|
12017
|
-
_v$3 =
|
|
12034
|
+
_v$2 = isSelected(),
|
|
12035
|
+
_v$3 = href(),
|
|
12036
|
+
_v$4 = wholeTextToDisplay();
|
|
12018
12037
|
_v$ !== _p$.e && _el$7.classList.toggle("selected", _p$.e = _v$);
|
|
12019
|
-
_v$2 !== _p$.t && $52FdA$solidjsweb.setAttribute(_el$7, "
|
|
12020
|
-
_v$3 !== _p$.a && $52FdA$solidjsweb.setAttribute(_el$7, "
|
|
12038
|
+
_v$2 !== _p$.t && $52FdA$solidjsweb.setAttribute(_el$7, "aria-selected", _p$.t = _v$2);
|
|
12039
|
+
_v$3 !== _p$.a && $52FdA$solidjsweb.setAttribute(_el$7, "href", _p$.a = _v$3);
|
|
12040
|
+
_v$4 !== _p$.o && $52FdA$solidjsweb.setAttribute(_el$7, "aria-label", _p$.o = _v$4);
|
|
12021
12041
|
return _p$;
|
|
12022
12042
|
}, {
|
|
12023
12043
|
e: undefined,
|
|
12024
12044
|
t: undefined,
|
|
12025
|
-
a: undefined
|
|
12045
|
+
a: undefined,
|
|
12046
|
+
o: undefined
|
|
12026
12047
|
});
|
|
12027
12048
|
return _el$7;
|
|
12028
12049
|
})();
|
|
@@ -12214,7 +12235,7 @@ var $43600b30502feeda$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div
|
|
|
12214
12235
|
$43600b30502feeda$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=discover-more><button class=major type=button>`),
|
|
12215
12236
|
$43600b30502feeda$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<b>`),
|
|
12216
12237
|
$43600b30502feeda$var$_tmpl$6 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=depict-search-modal-backdrop>`),
|
|
12217
|
-
$43600b30502feeda$var$_tmpl$7 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=depict-search-modal><div class=body role=search><!$><!/><div class=padded></div></div><!$><!/>`),
|
|
12238
|
+
$43600b30502feeda$var$_tmpl$7 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=depict-search-modal><div class=body role=search aria-label="Search modal with search field, query suggestions and result preview"><!$><!/><div id=depict-suggestions-and-result-preview class=padded></div></div><!$><!/>`),
|
|
12218
12239
|
$43600b30502feeda$var$_tmpl$8 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=left>`),
|
|
12219
12240
|
$43600b30502feeda$var$_tmpl$9 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=right>`);
|
|
12220
12241
|
/**
|
|
@@ -12573,7 +12594,8 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
12573
12594
|
if (start === null || end === null) return;
|
|
12574
12595
|
input_el.setSelectionRange(start, end);
|
|
12575
12596
|
},
|
|
12576
|
-
setSearchRoleOnContainer_: false
|
|
12597
|
+
setSearchRoleOnContainer_: false,
|
|
12598
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
12577
12599
|
});
|
|
12578
12600
|
if (setSearchFieldOuterWidth_) {
|
|
12579
12601
|
const resizeObserver = new ResizeObserver($52FdA$depictaiutilishared.catchify(records => setSearchFieldOuterWidth_(records.at(-1).contentRect.width)));
|
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.4";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
package/ES10/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
|
|
|
10
10
|
/*! Depict.ai search and product listing SDK */
|
|
11
11
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
12
12
|
register_es_version("ui", "ES10");
|
|
13
|
-
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.9.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.9.4";
|
|
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 => {
|
|
@@ -9985,15 +9985,18 @@ const $9a693c7e832d3f18$export$b05c0ae390cf3e06 = _ref => {
|
|
|
9985
9985
|
$8tj43$effect(_p$ => {
|
|
9986
9986
|
var _v$ = href(),
|
|
9987
9987
|
_v$2 = display_.search_result_id,
|
|
9988
|
-
_v$3 = !!(isSelected !== null && isSelected !== void 0 && isSelected())
|
|
9988
|
+
_v$3 = !!(isSelected !== null && isSelected !== void 0 && isSelected()),
|
|
9989
|
+
_v$4 = isSelected === null || isSelected === void 0 ? void 0 : isSelected();
|
|
9989
9990
|
_v$ !== _p$.e && $8tj43$setAttribute(_el$4, "href", _p$.e = _v$);
|
|
9990
9991
|
_v$2 !== _p$.t && $8tj43$setAttribute(_el$4, "data-search-result-id", _p$.t = _v$2);
|
|
9991
9992
|
_v$3 !== _p$.a && _el$4.classList.toggle("selected", _p$.a = _v$3);
|
|
9993
|
+
_v$4 !== _p$.o && $8tj43$setAttribute(_el$4, "aria-selected", _p$.o = _v$4);
|
|
9992
9994
|
return _p$;
|
|
9993
9995
|
}, {
|
|
9994
9996
|
e: undefined,
|
|
9995
9997
|
t: undefined,
|
|
9996
|
-
a: undefined
|
|
9998
|
+
a: undefined,
|
|
9999
|
+
o: undefined
|
|
9997
10000
|
});
|
|
9998
10001
|
$8tj43$runHydrationEvents();
|
|
9999
10002
|
return _el$4;
|
|
@@ -10999,7 +11002,8 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
10999
11002
|
BackIcon_: BackIcon_,
|
|
11000
11003
|
buttonInFieldRef_: buttonInFieldRef_,
|
|
11001
11004
|
class_: class_,
|
|
11002
|
-
setSearchRoleOnContainer_ = true
|
|
11005
|
+
setSearchRoleOnContainer_ = true,
|
|
11006
|
+
ariaControls: ariaControls
|
|
11003
11007
|
} = _ref;
|
|
11004
11008
|
let input_element;
|
|
11005
11009
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -11219,7 +11223,11 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
11219
11223
|
},
|
|
11220
11224
|
get placeholder() {
|
|
11221
11225
|
return i18n_.placeholder_text_();
|
|
11222
|
-
}
|
|
11226
|
+
},
|
|
11227
|
+
"aria-autocomplete": "list",
|
|
11228
|
+
"aria-haspopup": "dialog"
|
|
11229
|
+
}, ariaControls && {
|
|
11230
|
+
"aria-controls": ariaControls
|
|
11223
11231
|
}), false, false);
|
|
11224
11232
|
$8tj43$insert(_el$5, !isNewModal && $8tj43$createComponent(ClearButton, {}), _el$10, _co$2);
|
|
11225
11233
|
$8tj43$insert(_el$3, isNewModal && $8tj43$createComponent(BackButton, {}), _el$17, _co$5);
|
|
@@ -11268,8 +11276,8 @@ function $a82a41ab7188eda2$export$93d9bfd0c9c1a5b8(close_modal, search_query_url
|
|
|
11268
11276
|
}
|
|
11269
11277
|
var $40411f2ec772c376$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=discover-more><button class=major type=button>`),
|
|
11270
11278
|
$40411f2ec772c376$var$_tmpl$2 = /*#__PURE__*/$8tj43$template(`<b>`),
|
|
11271
|
-
$40411f2ec772c376$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=depict-search-modal><div class=body role=search><!$><!/><div class=padded><!$><!/><!$><!/><!$><!/></div><!$><!/></div><!$><!/>`),
|
|
11272
|
-
$40411f2ec772c376$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class="depict plp search"><div class=depict-search-modal-backdrop></div><!$><!/>`);
|
|
11279
|
+
$40411f2ec772c376$var$_tmpl$3 = /*#__PURE__*/$8tj43$template(`<div class=depict-search-modal><div class=body role=search aria-label="Search modal with search field, query suggestions and result preview"><!$><!/><div id=depict-suggestions-and-result-preview class=padded><!$><!/><!$><!/><!$><!/></div><!$><!/></div><!$><!/>`),
|
|
11280
|
+
$40411f2ec772c376$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class="depict plp search"role=dialog><div class=depict-search-modal-backdrop></div><!$><!/>`);
|
|
11273
11281
|
/**
|
|
11274
11282
|
* First generation (classic) search modal - the solid component that gets added to <body> when the search modal is opened
|
|
11275
11283
|
*/
|
|
@@ -11418,7 +11426,8 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
11418
11426
|
if (start === null || end === null) return;
|
|
11419
11427
|
input_el.setSelectionRange(start, end);
|
|
11420
11428
|
},
|
|
11421
|
-
setSearchRoleOnContainer_: false
|
|
11429
|
+
setSearchRoleOnContainer_: false,
|
|
11430
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
11422
11431
|
});
|
|
11423
11432
|
const modal_element = (() => {
|
|
11424
11433
|
var _el$4 = $8tj43$getNextElement($40411f2ec772c376$var$_tmpl$3),
|
|
@@ -11674,7 +11683,16 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
|
|
|
11674
11683
|
});
|
|
11675
11684
|
}
|
|
11676
11685
|
}));
|
|
11677
|
-
$8tj43$effect(
|
|
11686
|
+
$8tj43$effect(_p$ => {
|
|
11687
|
+
var _v$ = !!isSelected(),
|
|
11688
|
+
_v$2 = isSelected();
|
|
11689
|
+
_v$ !== _p$.e && _el$2.classList.toggle("selected", _p$.e = _v$);
|
|
11690
|
+
_v$2 !== _p$.t && $8tj43$setAttribute(_el$2, "aria-selected", _p$.t = _v$2);
|
|
11691
|
+
return _p$;
|
|
11692
|
+
}, {
|
|
11693
|
+
e: undefined,
|
|
11694
|
+
t: undefined
|
|
11695
|
+
});
|
|
11678
11696
|
$8tj43$runHydrationEvents();
|
|
11679
11697
|
return _el$2;
|
|
11680
11698
|
})();
|
|
@@ -11908,16 +11926,19 @@ function $5175a47d13b7c228$export$d4994a86c6235f72(_ref) {
|
|
|
11908
11926
|
}));
|
|
11909
11927
|
$8tj43$effect(_p$ => {
|
|
11910
11928
|
var _v$ = !!isSelected(),
|
|
11911
|
-
_v$2 =
|
|
11912
|
-
_v$3 =
|
|
11929
|
+
_v$2 = isSelected(),
|
|
11930
|
+
_v$3 = href(),
|
|
11931
|
+
_v$4 = wholeTextToDisplay();
|
|
11913
11932
|
_v$ !== _p$.e && _el$7.classList.toggle("selected", _p$.e = _v$);
|
|
11914
|
-
_v$2 !== _p$.t && $8tj43$setAttribute(_el$7, "
|
|
11915
|
-
_v$3 !== _p$.a && $8tj43$setAttribute(_el$7, "
|
|
11933
|
+
_v$2 !== _p$.t && $8tj43$setAttribute(_el$7, "aria-selected", _p$.t = _v$2);
|
|
11934
|
+
_v$3 !== _p$.a && $8tj43$setAttribute(_el$7, "href", _p$.a = _v$3);
|
|
11935
|
+
_v$4 !== _p$.o && $8tj43$setAttribute(_el$7, "aria-label", _p$.o = _v$4);
|
|
11916
11936
|
return _p$;
|
|
11917
11937
|
}, {
|
|
11918
11938
|
e: undefined,
|
|
11919
11939
|
t: undefined,
|
|
11920
|
-
a: undefined
|
|
11940
|
+
a: undefined,
|
|
11941
|
+
o: undefined
|
|
11921
11942
|
});
|
|
11922
11943
|
return _el$7;
|
|
11923
11944
|
})();
|
|
@@ -12109,7 +12130,7 @@ var $06fcd2a345efd24d$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<div class=inst
|
|
|
12109
12130
|
$06fcd2a345efd24d$var$_tmpl$4 = /*#__PURE__*/$8tj43$template(`<div class=discover-more><button class=major type=button>`),
|
|
12110
12131
|
$06fcd2a345efd24d$var$_tmpl$5 = /*#__PURE__*/$8tj43$template(`<b>`),
|
|
12111
12132
|
$06fcd2a345efd24d$var$_tmpl$6 = /*#__PURE__*/$8tj43$template(`<div class=depict-search-modal-backdrop>`),
|
|
12112
|
-
$06fcd2a345efd24d$var$_tmpl$7 = /*#__PURE__*/$8tj43$template(`<div class=depict-search-modal><div class=body role=search><!$><!/><div class=padded></div></div><!$><!/>`),
|
|
12133
|
+
$06fcd2a345efd24d$var$_tmpl$7 = /*#__PURE__*/$8tj43$template(`<div class=depict-search-modal><div class=body role=search aria-label="Search modal with search field, query suggestions and result preview"><!$><!/><div id=depict-suggestions-and-result-preview class=padded></div></div><!$><!/>`),
|
|
12113
12134
|
$06fcd2a345efd24d$var$_tmpl$8 = /*#__PURE__*/$8tj43$template(`<div class=left>`),
|
|
12114
12135
|
$06fcd2a345efd24d$var$_tmpl$9 = /*#__PURE__*/$8tj43$template(`<div class=right>`);
|
|
12115
12136
|
/**
|
|
@@ -12468,7 +12489,8 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
12468
12489
|
if (start === null || end === null) return;
|
|
12469
12490
|
input_el.setSelectionRange(start, end);
|
|
12470
12491
|
},
|
|
12471
|
-
setSearchRoleOnContainer_: false
|
|
12492
|
+
setSearchRoleOnContainer_: false,
|
|
12493
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
12472
12494
|
});
|
|
12473
12495
|
if (setSearchFieldOuterWidth_) {
|
|
12474
12496
|
const resizeObserver = new ResizeObserver($8tj43$catchify1(records => setSearchFieldOuterWidth_(records.at(-1).contentRect.width)));
|
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.9.
|
|
112
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.9.4";
|
|
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, ({
|
|
@@ -9534,15 +9534,18 @@ const $6ae613870d3380fc$export$b05c0ae390cf3e06 = ({
|
|
|
9534
9534
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
9535
9535
|
var _v$ = href(),
|
|
9536
9536
|
_v$2 = display_.search_result_id,
|
|
9537
|
-
_v$3 = !!isSelected?.()
|
|
9537
|
+
_v$3 = !!isSelected?.(),
|
|
9538
|
+
_v$4 = isSelected?.();
|
|
9538
9539
|
_v$ !== _p$.e && $gVhhF$solidjsweb.setAttribute(_el$4, "href", _p$.e = _v$);
|
|
9539
9540
|
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$4, "data-search-result-id", _p$.t = _v$2);
|
|
9540
9541
|
_v$3 !== _p$.a && _el$4.classList.toggle("selected", _p$.a = _v$3);
|
|
9542
|
+
_v$4 !== _p$.o && $gVhhF$solidjsweb.setAttribute(_el$4, "aria-selected", _p$.o = _v$4);
|
|
9541
9543
|
return _p$;
|
|
9542
9544
|
}, {
|
|
9543
9545
|
e: undefined,
|
|
9544
9546
|
t: undefined,
|
|
9545
|
-
a: undefined
|
|
9547
|
+
a: undefined,
|
|
9548
|
+
o: undefined
|
|
9546
9549
|
});
|
|
9547
9550
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
9548
9551
|
return _el$4;
|
|
@@ -10495,7 +10498,8 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
10495
10498
|
BackIcon_: BackIcon_,
|
|
10496
10499
|
buttonInFieldRef_: buttonInFieldRef_,
|
|
10497
10500
|
class_: class_,
|
|
10498
|
-
setSearchRoleOnContainer_ = true
|
|
10501
|
+
setSearchRoleOnContainer_ = true,
|
|
10502
|
+
ariaControls: ariaControls
|
|
10499
10503
|
}) {
|
|
10500
10504
|
let input_element;
|
|
10501
10505
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -10709,7 +10713,11 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
10709
10713
|
},
|
|
10710
10714
|
get placeholder() {
|
|
10711
10715
|
return i18n_.placeholder_text_();
|
|
10712
|
-
}
|
|
10716
|
+
},
|
|
10717
|
+
"aria-autocomplete": "list",
|
|
10718
|
+
"aria-haspopup": "dialog"
|
|
10719
|
+
}, ariaControls && {
|
|
10720
|
+
"aria-controls": ariaControls
|
|
10713
10721
|
}), false, false);
|
|
10714
10722
|
$gVhhF$solidjsweb.insert(_el$5, !isNewModal && $gVhhF$solidjsweb.createComponent(ClearButton, {}), _el$10, _co$2);
|
|
10715
10723
|
$gVhhF$solidjsweb.insert(_el$3, isNewModal && $gVhhF$solidjsweb.createComponent(BackButton, {}), _el$17, _co$5);
|
|
@@ -10758,8 +10766,8 @@ function $eb3039a27db40508$export$93d9bfd0c9c1a5b8(close_modal, search_query_url
|
|
|
10758
10766
|
}
|
|
10759
10767
|
var $44f0b2e312a9b710$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=discover-more><button class=major type=button>`),
|
|
10760
10768
|
$44f0b2e312a9b710$var$_tmpl$2 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b>`),
|
|
10761
|
-
$44f0b2e312a9b710$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=depict-search-modal><div class=body role=search><!$><!/><div class=padded><!$><!/><!$><!/><!$><!/></div><!$><!/></div><!$><!/>`),
|
|
10762
|
-
$44f0b2e312a9b710$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp search"><div class=depict-search-modal-backdrop></div><!$><!/>`);
|
|
10769
|
+
$44f0b2e312a9b710$var$_tmpl$3 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=depict-search-modal><div class=body role=search aria-label="Search modal with search field, query suggestions and result preview"><!$><!/><div id=depict-suggestions-and-result-preview class=padded><!$><!/><!$><!/><!$><!/></div><!$><!/></div><!$><!/>`),
|
|
10770
|
+
$44f0b2e312a9b710$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class="depict plp search"role=dialog><div class=depict-search-modal-backdrop></div><!$><!/>`);
|
|
10763
10771
|
/**
|
|
10764
10772
|
* First generation (classic) search modal - the solid component that gets added to <body> when the search modal is opened
|
|
10765
10773
|
*/
|
|
@@ -10902,7 +10910,8 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
10902
10910
|
if (start === null || end === null) return;
|
|
10903
10911
|
input_el.setSelectionRange(start, end);
|
|
10904
10912
|
},
|
|
10905
|
-
setSearchRoleOnContainer_: false
|
|
10913
|
+
setSearchRoleOnContainer_: false,
|
|
10914
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
10906
10915
|
});
|
|
10907
10916
|
const modal_element = (() => {
|
|
10908
10917
|
var _el$4 = $gVhhF$solidjsweb.getNextElement($44f0b2e312a9b710$var$_tmpl$3),
|
|
@@ -11143,7 +11152,16 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
|
|
|
11143
11152
|
});
|
|
11144
11153
|
}
|
|
11145
11154
|
}));
|
|
11146
|
-
$gVhhF$solidjsweb.effect(
|
|
11155
|
+
$gVhhF$solidjsweb.effect(_p$ => {
|
|
11156
|
+
var _v$ = !!isSelected(),
|
|
11157
|
+
_v$2 = isSelected();
|
|
11158
|
+
_v$ !== _p$.e && _el$2.classList.toggle("selected", _p$.e = _v$);
|
|
11159
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$2, "aria-selected", _p$.t = _v$2);
|
|
11160
|
+
return _p$;
|
|
11161
|
+
}, {
|
|
11162
|
+
e: undefined,
|
|
11163
|
+
t: undefined
|
|
11164
|
+
});
|
|
11147
11165
|
$gVhhF$solidjsweb.runHydrationEvents();
|
|
11148
11166
|
return _el$2;
|
|
11149
11167
|
})();
|
|
@@ -11368,16 +11386,19 @@ function $a13dbcf80d79229c$export$d4994a86c6235f72({
|
|
|
11368
11386
|
}));
|
|
11369
11387
|
$gVhhF$solidjsweb.effect(_p$ => {
|
|
11370
11388
|
var _v$ = !!isSelected(),
|
|
11371
|
-
_v$2 =
|
|
11372
|
-
_v$3 =
|
|
11389
|
+
_v$2 = isSelected(),
|
|
11390
|
+
_v$3 = href(),
|
|
11391
|
+
_v$4 = wholeTextToDisplay();
|
|
11373
11392
|
_v$ !== _p$.e && _el$7.classList.toggle("selected", _p$.e = _v$);
|
|
11374
|
-
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$7, "
|
|
11375
|
-
_v$3 !== _p$.a && $gVhhF$solidjsweb.setAttribute(_el$7, "
|
|
11393
|
+
_v$2 !== _p$.t && $gVhhF$solidjsweb.setAttribute(_el$7, "aria-selected", _p$.t = _v$2);
|
|
11394
|
+
_v$3 !== _p$.a && $gVhhF$solidjsweb.setAttribute(_el$7, "href", _p$.a = _v$3);
|
|
11395
|
+
_v$4 !== _p$.o && $gVhhF$solidjsweb.setAttribute(_el$7, "aria-label", _p$.o = _v$4);
|
|
11376
11396
|
return _p$;
|
|
11377
11397
|
}, {
|
|
11378
11398
|
e: undefined,
|
|
11379
11399
|
t: undefined,
|
|
11380
|
-
a: undefined
|
|
11400
|
+
a: undefined,
|
|
11401
|
+
o: undefined
|
|
11381
11402
|
});
|
|
11382
11403
|
return _el$7;
|
|
11383
11404
|
})();
|
|
@@ -11565,7 +11586,7 @@ var $11597ae03e703a47$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div
|
|
|
11565
11586
|
$11597ae03e703a47$var$_tmpl$4 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=discover-more><button class=major type=button>`),
|
|
11566
11587
|
$11597ae03e703a47$var$_tmpl$5 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<b>`),
|
|
11567
11588
|
$11597ae03e703a47$var$_tmpl$6 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=depict-search-modal-backdrop>`),
|
|
11568
|
-
$11597ae03e703a47$var$_tmpl$7 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=depict-search-modal><div class=body role=search><!$><!/><div class=padded></div></div><!$><!/>`),
|
|
11589
|
+
$11597ae03e703a47$var$_tmpl$7 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=depict-search-modal><div class=body role=search aria-label="Search modal with search field, query suggestions and result preview"><!$><!/><div id=depict-suggestions-and-result-preview class=padded></div></div><!$><!/>`),
|
|
11569
11590
|
$11597ae03e703a47$var$_tmpl$8 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=left>`),
|
|
11570
11591
|
$11597ae03e703a47$var$_tmpl$9 = /*#__PURE__*/$gVhhF$solidjsweb.template(`<div class=right>`);
|
|
11571
11592
|
/**
|
|
@@ -11913,7 +11934,8 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
11913
11934
|
if (start === null || end === null) return;
|
|
11914
11935
|
input_el.setSelectionRange(start, end);
|
|
11915
11936
|
},
|
|
11916
|
-
setSearchRoleOnContainer_: false
|
|
11937
|
+
setSearchRoleOnContainer_: false,
|
|
11938
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
11917
11939
|
});
|
|
11918
11940
|
if (setSearchFieldOuterWidth_) {
|
|
11919
11941
|
const resizeObserver = new ResizeObserver($gVhhF$depictaiutilishared.catchify(records => setSearchFieldOuterWidth_(records.at(-1).contentRect.width)));
|
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.4";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
package/latest/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from
|
|
|
7
7
|
/*! Depict.ai search and product listing SDK */
|
|
8
8
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
9
9
|
register_es_version("ui", "latest");
|
|
10
|
-
const $ec291e0010116877$export$83d89fbfd8236492 = "4.9.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.9.4";
|
|
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, ({
|
|
@@ -9432,15 +9432,18 @@ const $e003be2a50d9e5bc$export$b05c0ae390cf3e06 = ({
|
|
|
9432
9432
|
$9HbP8$effect(_p$ => {
|
|
9433
9433
|
var _v$ = href(),
|
|
9434
9434
|
_v$2 = display_.search_result_id,
|
|
9435
|
-
_v$3 = !!isSelected?.()
|
|
9435
|
+
_v$3 = !!isSelected?.(),
|
|
9436
|
+
_v$4 = isSelected?.();
|
|
9436
9437
|
_v$ !== _p$.e && $9HbP8$setAttribute(_el$4, "href", _p$.e = _v$);
|
|
9437
9438
|
_v$2 !== _p$.t && $9HbP8$setAttribute(_el$4, "data-search-result-id", _p$.t = _v$2);
|
|
9438
9439
|
_v$3 !== _p$.a && _el$4.classList.toggle("selected", _p$.a = _v$3);
|
|
9440
|
+
_v$4 !== _p$.o && $9HbP8$setAttribute(_el$4, "aria-selected", _p$.o = _v$4);
|
|
9439
9441
|
return _p$;
|
|
9440
9442
|
}, {
|
|
9441
9443
|
e: undefined,
|
|
9442
9444
|
t: undefined,
|
|
9443
|
-
a: undefined
|
|
9445
|
+
a: undefined,
|
|
9446
|
+
o: undefined
|
|
9444
9447
|
});
|
|
9445
9448
|
$9HbP8$runHydrationEvents();
|
|
9446
9449
|
return _el$4;
|
|
@@ -10393,7 +10396,8 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
10393
10396
|
BackIcon_: BackIcon_,
|
|
10394
10397
|
buttonInFieldRef_: buttonInFieldRef_,
|
|
10395
10398
|
class_: class_,
|
|
10396
|
-
setSearchRoleOnContainer_ = true
|
|
10399
|
+
setSearchRoleOnContainer_ = true,
|
|
10400
|
+
ariaControls: ariaControls
|
|
10397
10401
|
}) {
|
|
10398
10402
|
let input_element;
|
|
10399
10403
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -10607,7 +10611,11 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
10607
10611
|
},
|
|
10608
10612
|
get placeholder() {
|
|
10609
10613
|
return i18n_.placeholder_text_();
|
|
10610
|
-
}
|
|
10614
|
+
},
|
|
10615
|
+
"aria-autocomplete": "list",
|
|
10616
|
+
"aria-haspopup": "dialog"
|
|
10617
|
+
}, ariaControls && {
|
|
10618
|
+
"aria-controls": ariaControls
|
|
10611
10619
|
}), false, false);
|
|
10612
10620
|
$9HbP8$insert(_el$5, !isNewModal && $9HbP8$createComponent(ClearButton, {}), _el$10, _co$2);
|
|
10613
10621
|
$9HbP8$insert(_el$3, isNewModal && $9HbP8$createComponent(BackButton, {}), _el$17, _co$5);
|
|
@@ -10656,8 +10664,8 @@ function $512b994d501f412b$export$93d9bfd0c9c1a5b8(close_modal, search_query_url
|
|
|
10656
10664
|
}
|
|
10657
10665
|
var $42912431795f188e$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=discover-more><button class=major type=button>`),
|
|
10658
10666
|
$42912431795f188e$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<b>`),
|
|
10659
|
-
$42912431795f188e$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=depict-search-modal><div class=body role=search><!$><!/><div class=padded><!$><!/><!$><!/><!$><!/></div><!$><!/></div><!$><!/>`),
|
|
10660
|
-
$42912431795f188e$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp search"><div class=depict-search-modal-backdrop></div><!$><!/>`);
|
|
10667
|
+
$42912431795f188e$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=depict-search-modal><div class=body role=search aria-label="Search modal with search field, query suggestions and result preview"><!$><!/><div id=depict-suggestions-and-result-preview class=padded><!$><!/><!$><!/><!$><!/></div><!$><!/></div><!$><!/>`),
|
|
10668
|
+
$42912431795f188e$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class="depict plp search"role=dialog><div class=depict-search-modal-backdrop></div><!$><!/>`);
|
|
10661
10669
|
/**
|
|
10662
10670
|
* First generation (classic) search modal - the solid component that gets added to <body> when the search modal is opened
|
|
10663
10671
|
*/
|
|
@@ -10800,7 +10808,8 @@ function $42912431795f188e$var$RawClassicSearchModal({
|
|
|
10800
10808
|
if (start === null || end === null) return;
|
|
10801
10809
|
input_el.setSelectionRange(start, end);
|
|
10802
10810
|
},
|
|
10803
|
-
setSearchRoleOnContainer_: false
|
|
10811
|
+
setSearchRoleOnContainer_: false,
|
|
10812
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
10804
10813
|
});
|
|
10805
10814
|
const modal_element = (() => {
|
|
10806
10815
|
var _el$4 = $9HbP8$getNextElement($42912431795f188e$var$_tmpl$3),
|
|
@@ -11041,7 +11050,16 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
|
|
|
11041
11050
|
});
|
|
11042
11051
|
}
|
|
11043
11052
|
}));
|
|
11044
|
-
$9HbP8$effect(
|
|
11053
|
+
$9HbP8$effect(_p$ => {
|
|
11054
|
+
var _v$ = !!isSelected(),
|
|
11055
|
+
_v$2 = isSelected();
|
|
11056
|
+
_v$ !== _p$.e && _el$2.classList.toggle("selected", _p$.e = _v$);
|
|
11057
|
+
_v$2 !== _p$.t && $9HbP8$setAttribute(_el$2, "aria-selected", _p$.t = _v$2);
|
|
11058
|
+
return _p$;
|
|
11059
|
+
}, {
|
|
11060
|
+
e: undefined,
|
|
11061
|
+
t: undefined
|
|
11062
|
+
});
|
|
11045
11063
|
$9HbP8$runHydrationEvents();
|
|
11046
11064
|
return _el$2;
|
|
11047
11065
|
})();
|
|
@@ -11266,16 +11284,19 @@ function $903297121898e5ff$export$d4994a86c6235f72({
|
|
|
11266
11284
|
}));
|
|
11267
11285
|
$9HbP8$effect(_p$ => {
|
|
11268
11286
|
var _v$ = !!isSelected(),
|
|
11269
|
-
_v$2 =
|
|
11270
|
-
_v$3 =
|
|
11287
|
+
_v$2 = isSelected(),
|
|
11288
|
+
_v$3 = href(),
|
|
11289
|
+
_v$4 = wholeTextToDisplay();
|
|
11271
11290
|
_v$ !== _p$.e && _el$7.classList.toggle("selected", _p$.e = _v$);
|
|
11272
|
-
_v$2 !== _p$.t && $9HbP8$setAttribute(_el$7, "
|
|
11273
|
-
_v$3 !== _p$.a && $9HbP8$setAttribute(_el$7, "
|
|
11291
|
+
_v$2 !== _p$.t && $9HbP8$setAttribute(_el$7, "aria-selected", _p$.t = _v$2);
|
|
11292
|
+
_v$3 !== _p$.a && $9HbP8$setAttribute(_el$7, "href", _p$.a = _v$3);
|
|
11293
|
+
_v$4 !== _p$.o && $9HbP8$setAttribute(_el$7, "aria-label", _p$.o = _v$4);
|
|
11274
11294
|
return _p$;
|
|
11275
11295
|
}, {
|
|
11276
11296
|
e: undefined,
|
|
11277
11297
|
t: undefined,
|
|
11278
|
-
a: undefined
|
|
11298
|
+
a: undefined,
|
|
11299
|
+
o: undefined
|
|
11279
11300
|
});
|
|
11280
11301
|
return _el$7;
|
|
11281
11302
|
})();
|
|
@@ -11463,7 +11484,7 @@ var $500a16dd18ee5a71$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=inst
|
|
|
11463
11484
|
$500a16dd18ee5a71$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<div class=discover-more><button class=major type=button>`),
|
|
11464
11485
|
$500a16dd18ee5a71$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<b>`),
|
|
11465
11486
|
$500a16dd18ee5a71$var$_tmpl$6 = /*#__PURE__*/$9HbP8$template(`<div class=depict-search-modal-backdrop>`),
|
|
11466
|
-
$500a16dd18ee5a71$var$_tmpl$7 = /*#__PURE__*/$9HbP8$template(`<div class=depict-search-modal><div class=body role=search><!$><!/><div class=padded></div></div><!$><!/>`),
|
|
11487
|
+
$500a16dd18ee5a71$var$_tmpl$7 = /*#__PURE__*/$9HbP8$template(`<div class=depict-search-modal><div class=body role=search aria-label="Search modal with search field, query suggestions and result preview"><!$><!/><div id=depict-suggestions-and-result-preview class=padded></div></div><!$><!/>`),
|
|
11467
11488
|
$500a16dd18ee5a71$var$_tmpl$8 = /*#__PURE__*/$9HbP8$template(`<div class=left>`),
|
|
11468
11489
|
$500a16dd18ee5a71$var$_tmpl$9 = /*#__PURE__*/$9HbP8$template(`<div class=right>`);
|
|
11469
11490
|
/**
|
|
@@ -11811,7 +11832,8 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
11811
11832
|
if (start === null || end === null) return;
|
|
11812
11833
|
input_el.setSelectionRange(start, end);
|
|
11813
11834
|
},
|
|
11814
|
-
setSearchRoleOnContainer_: false
|
|
11835
|
+
setSearchRoleOnContainer_: false,
|
|
11836
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
11815
11837
|
});
|
|
11816
11838
|
if (setSearchFieldOuterWidth_) {
|
|
11817
11839
|
const resizeObserver = new ResizeObserver($9HbP8$catchify1(records => setSearchFieldOuterWidth_(records.at(-1).contentRect.width)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.4",
|
|
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.4";
|
|
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 => {
|
|
@@ -8323,7 +8323,7 @@ const $82d079b68975fbf7$export$b05c0ae390cf3e06 = _ref => {
|
|
|
8323
8323
|
const secondary_image_url = ((_variant$image_urls = variant.image_urls) === null || _variant$image_urls === void 0 ? void 0 : _variant$image_urls[1]) || variant.secondary_image_url || variant.alternative_display_image_url;
|
|
8324
8324
|
const brandInTagline = selected_index_ && variant.brand;
|
|
8325
8325
|
const TitleBrandTagline = () => [!selected_index_ && $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape(variant.brand)), $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.ssrAttribute("title", $3hooq$solidjsweb.escape(variant.title, true), false), $3hooq$solidjsweb.escape(variant.title)), (variant.sub_heading_1 || variant.sub_heading_2 || brandInTagline) && $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), $3hooq$solidjsweb.escape([brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | ")))];
|
|
8326
|
-
return $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$6, $3hooq$solidjsweb.ssrHydrationKey(), "instant-card ".concat(isSelected !== null && isSelected !== void 0 && isSelected() ? "selected" : ""), $3hooq$solidjsweb.ssrAttribute("href", $3hooq$solidjsweb.escape(href(), true), false) + $3hooq$solidjsweb.ssrAttribute("data-search-result-id", $3hooq$solidjsweb.escape(display_.search_result_id, true), false), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(InstantCardImageComponent_, {
|
|
8326
|
+
return $3hooq$solidjsweb.ssr($82d079b68975fbf7$var$_tmpl$6, $3hooq$solidjsweb.ssrHydrationKey(), "instant-card ".concat(isSelected !== null && isSelected !== void 0 && isSelected() ? "selected" : ""), $3hooq$solidjsweb.ssrAttribute("href", $3hooq$solidjsweb.escape(href(), true), false) + $3hooq$solidjsweb.ssrAttribute("data-search-result-id", $3hooq$solidjsweb.escape(display_.search_result_id, true), false) + $3hooq$solidjsweb.ssrAttribute("aria-selected", $3hooq$solidjsweb.escape(isSelected === null || isSelected === void 0 ? void 0 : isSelected(), true), false), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(InstantCardImageComponent_, {
|
|
8327
8327
|
get src_() {
|
|
8328
8328
|
var _variant$image_urls2;
|
|
8329
8329
|
return ((_variant$image_urls2 = variant.image_urls) === null || _variant$image_urls2 === void 0 ? void 0 : _variant$image_urls2[0]) || variant.image_url || variant.display_image_url;
|
|
@@ -9187,7 +9187,8 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
9187
9187
|
BackIcon_: BackIcon_,
|
|
9188
9188
|
buttonInFieldRef_: buttonInFieldRef_,
|
|
9189
9189
|
class_: class_,
|
|
9190
|
-
setSearchRoleOnContainer_ = true
|
|
9190
|
+
setSearchRoleOnContainer_ = true,
|
|
9191
|
+
ariaControls: ariaControls
|
|
9191
9192
|
} = _ref;
|
|
9192
9193
|
let input_element;
|
|
9193
9194
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -9277,7 +9278,11 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
9277
9278
|
},
|
|
9278
9279
|
get placeholder() {
|
|
9279
9280
|
return i18n_.placeholder_text_();
|
|
9280
|
-
}
|
|
9281
|
+
},
|
|
9282
|
+
"aria-autocomplete": "list",
|
|
9283
|
+
"aria-haspopup": "dialog"
|
|
9284
|
+
}, ariaControls && {
|
|
9285
|
+
"aria-controls": ariaControls
|
|
9281
9286
|
}), undefined, false), !isNewModal && $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(ClearButton, {}))), "<!--$-->", isNewModal && $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(BackButton, {})), "<!--/-->", "<!--$-->", $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
|
|
9282
9287
|
when: !isNewModal,
|
|
9283
9288
|
get children() {
|
|
@@ -9314,8 +9319,8 @@ function $4b71b4fabdee5753$export$93d9bfd0c9c1a5b8(close_modal, search_query_url
|
|
|
9314
9319
|
}
|
|
9315
9320
|
var $9035b24c2dbd3f36$var$_tmpl$ = ["<div", ' class="discover-more"><button class="major" type="button">', "</button></div>"],
|
|
9316
9321
|
$9035b24c2dbd3f36$var$_tmpl$2 = ["<b", ">", "</b>"],
|
|
9317
|
-
$9035b24c2dbd3f36$var$_tmpl$3 = ["<div", ' class="', '"><div class="', '" role="search"><!--$-->', '<!--/--><div class="padded"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"],
|
|
9318
|
-
$9035b24c2dbd3f36$var$_tmpl$4 = ["<div", ' class="', '"><div class="depict-search-modal-backdrop"></div><!--$-->', "<!--/--></div>"];
|
|
9322
|
+
$9035b24c2dbd3f36$var$_tmpl$3 = ["<div", ' class="', '"><div class="', '" role="search" aria-label="Search modal with search field, query suggestions and result preview"><!--$-->', '<!--/--><div id="depict-suggestions-and-result-preview" class="padded"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"],
|
|
9323
|
+
$9035b24c2dbd3f36$var$_tmpl$4 = ["<div", ' class="', '" role="dialog"><div class="depict-search-modal-backdrop"></div><!--$-->', "<!--/--></div>"];
|
|
9319
9324
|
/**
|
|
9320
9325
|
* First generation (classic) search modal - the solid component that gets added to <body> when the search modal is opened
|
|
9321
9326
|
*/
|
|
@@ -9453,7 +9458,8 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
9453
9458
|
if (start === null || end === null) return;
|
|
9454
9459
|
input_el.setSelectionRange(start, end);
|
|
9455
9460
|
},
|
|
9456
|
-
setSearchRoleOnContainer_: false
|
|
9461
|
+
setSearchRoleOnContainer_: false,
|
|
9462
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
9457
9463
|
});
|
|
9458
9464
|
const modal_element = $3hooq$solidjsweb.ssr($9035b24c2dbd3f36$var$_tmpl$3, $3hooq$solidjsweb.ssrHydrationKey(), "depict-search-modal", "".concat("body", " ").concat($3hooq$solidjsweb.escape($3hooq$solidjsweb.escape(random_classname, true), true)), $3hooq$solidjsweb.escape(search_field), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $1b3cf201cdd38687$export$b69d0d92862de18b), {
|
|
9459
9465
|
severity_: "error",
|
|
@@ -9542,7 +9548,7 @@ function $317500f39819fba6$export$9ca09caa9c849d9c() {
|
|
|
9542
9548
|
return $3hooq$solidjsweb.ssr($317500f39819fba6$var$_tmpl$, $3hooq$solidjsweb.ssrHydrationKey());
|
|
9543
9549
|
}
|
|
9544
9550
|
var $d1e7b96fb13cd1d3$var$_tmpl$ = ["<div", ' class="images-wrapper">', "</div>"],
|
|
9545
|
-
$d1e7b96fb13cd1d3$var$_tmpl$2 = ["<div", ' class="', '"
|
|
9551
|
+
$d1e7b96fb13cd1d3$var$_tmpl$2 = ["<div", ' class="', '"', "><!--$-->", "<!--/--><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
|
|
9546
9552
|
$d1e7b96fb13cd1d3$var$_tmpl$3 = ["<div", ' class="empty-image" style="', '">', "</div>"];
|
|
9547
9553
|
const $d1e7b96fb13cd1d3$var$aspectRatioWidthComponent = 400;
|
|
9548
9554
|
const $d1e7b96fb13cd1d3$var$aspectRatioHeightComponent = 200;
|
|
@@ -9577,7 +9583,7 @@ function $d1e7b96fb13cd1d3$export$67152d26d4f56ee8(_ref) {
|
|
|
9577
9583
|
var _listing_3;
|
|
9578
9584
|
return (_listing_3 = listing_()) === null || _listing_3 === void 0 ? void 0 : _listing_3.ancestors;
|
|
9579
9585
|
});
|
|
9580
|
-
return $3hooq$solidjsweb.ssr($d1e7b96fb13cd1d3$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), "listing-card ".concat(isSelected() ? "selected" : ""), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(LinkToListing, {
|
|
9586
|
+
return $3hooq$solidjsweb.ssr($d1e7b96fb13cd1d3$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), "listing-card ".concat(isSelected() ? "selected" : ""), $3hooq$solidjsweb.ssrAttribute("aria-selected", $3hooq$solidjsweb.escape(isSelected(), true), false), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent(LinkToListing, {
|
|
9581
9587
|
"class": "image-part",
|
|
9582
9588
|
get style() {
|
|
9583
9589
|
var _image_urls$length, _image_urls;
|
|
@@ -9788,7 +9794,7 @@ function $79a8fa74cb5cdfb9$export$d4994a86c6235f72(_ref) {
|
|
|
9788
9794
|
});
|
|
9789
9795
|
const [isSelected, selectedDueToKeyboardNavigation] = $b0f8d9f49e018db9$export$fb40a80c530e5f2b(read_selected_index_, itemIndex_, () => index);
|
|
9790
9796
|
const wholeTextToDisplay = $3hooq$solidjs.createMemo(() => item().title_);
|
|
9791
|
-
return $3hooq$solidjsweb.ssr($79a8fa74cb5cdfb9$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), "suggestion ".concat(isSelected() ? "selected" : ""), $3hooq$solidjsweb.ssrAttribute("href", $3hooq$solidjsweb.escape(href(), true), false) + $3hooq$solidjsweb.ssrAttribute("aria-label", $3hooq$solidjsweb.escape(wholeTextToDisplay(), true), false), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $23c3f390dee33ff8$export$ba17c5b7e6dda39f), {
|
|
9797
|
+
return $3hooq$solidjsweb.ssr($79a8fa74cb5cdfb9$var$_tmpl$2, $3hooq$solidjsweb.ssrHydrationKey(), "suggestion ".concat(isSelected() ? "selected" : ""), $3hooq$solidjsweb.ssrAttribute("aria-selected", $3hooq$solidjsweb.escape(isSelected(), true), false) + $3hooq$solidjsweb.ssrAttribute("href", $3hooq$solidjsweb.escape(href(), true), false) + $3hooq$solidjsweb.ssrAttribute("aria-label", $3hooq$solidjsweb.escape(wholeTextToDisplay(), true), false), $3hooq$solidjsweb.escape($3hooq$solidjsweb.createComponent((0, $23c3f390dee33ff8$export$ba17c5b7e6dda39f), {
|
|
9792
9798
|
class_: "title line-clamp",
|
|
9793
9799
|
whole_text_to_display_: wholeTextToDisplay,
|
|
9794
9800
|
searching_for_value_: searching_for_value_
|
|
@@ -9970,7 +9976,7 @@ var $43600b30502feeda$var$_tmpl$ = ["<div", ' class="instant-results-wrapper" st
|
|
|
9970
9976
|
$43600b30502feeda$var$_tmpl$2 = ["<div", ' class="discover-more"><button class="major" type="button">', "</button></div>"],
|
|
9971
9977
|
$43600b30502feeda$var$_tmpl$3 = ["<b", ">", "</b>"],
|
|
9972
9978
|
$43600b30502feeda$var$_tmpl$4 = ["<div", ' class="', '"></div>'],
|
|
9973
|
-
$43600b30502feeda$var$_tmpl$5 = ["<div", ' class="', '"><div class="', '" role="search"><!--$-->', '<!--/--><div class="', '"></div></div><!--$-->', "<!--/--></div>"];
|
|
9979
|
+
$43600b30502feeda$var$_tmpl$5 = ["<div", ' class="', '"><div class="', '" role="search" aria-label="Search modal with search field, query suggestions and result preview"><!--$-->', '<!--/--><div id="depict-suggestions-and-result-preview" class="', '"></div></div><!--$-->', "<!--/--></div>"];
|
|
9974
9980
|
/**
|
|
9975
9981
|
* Second generation search modal - the solid component that gets added to <body> when the search modal is opened
|
|
9976
9982
|
*/
|
|
@@ -10297,7 +10303,8 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
10297
10303
|
if (start === null || end === null) return;
|
|
10298
10304
|
input_el.setSelectionRange(start, end);
|
|
10299
10305
|
},
|
|
10300
|
-
setSearchRoleOnContainer_: false
|
|
10306
|
+
setSearchRoleOnContainer_: false,
|
|
10307
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
10301
10308
|
});
|
|
10302
10309
|
if (setSearchFieldOuterWidth_) {
|
|
10303
10310
|
const resizeObserver = new ResizeObserver($3hooq$depictaiutilishared.catchify(records => setSearchFieldOuterWidth_(records.at(-1).contentRect.width)));
|
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.4";
|
|
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.4";
|
|
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 => {
|
|
@@ -8218,7 +8218,7 @@ const $9a693c7e832d3f18$export$b05c0ae390cf3e06 = _ref => {
|
|
|
8218
8218
|
const secondary_image_url = ((_variant$image_urls = variant.image_urls) === null || _variant$image_urls === void 0 ? void 0 : _variant$image_urls[1]) || variant.secondary_image_url || variant.alternative_display_image_url;
|
|
8219
8219
|
const brandInTagline = selected_index_ && variant.brand;
|
|
8220
8220
|
const TitleBrandTagline = () => [!selected_index_ && $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$2, $b8hua$ssrHydrationKey(), $b8hua$escape(variant.brand)), $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$, $b8hua$ssrHydrationKey(), $b8hua$ssrAttribute("title", $b8hua$escape(variant.title, true), false), $b8hua$escape(variant.title)), (variant.sub_heading_1 || variant.sub_heading_2 || brandInTagline) && $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$3, $b8hua$ssrHydrationKey(), $b8hua$escape([brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | ")))];
|
|
8221
|
-
return $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$6, $b8hua$ssrHydrationKey(), "instant-card ".concat(isSelected !== null && isSelected !== void 0 && isSelected() ? "selected" : ""), $b8hua$ssrAttribute("href", $b8hua$escape(href(), true), false) + $b8hua$ssrAttribute("data-search-result-id", $b8hua$escape(display_.search_result_id, true), false), $b8hua$escape($b8hua$createComponent(InstantCardImageComponent_, {
|
|
8221
|
+
return $b8hua$ssr($9a693c7e832d3f18$var$_tmpl$6, $b8hua$ssrHydrationKey(), "instant-card ".concat(isSelected !== null && isSelected !== void 0 && isSelected() ? "selected" : ""), $b8hua$ssrAttribute("href", $b8hua$escape(href(), true), false) + $b8hua$ssrAttribute("data-search-result-id", $b8hua$escape(display_.search_result_id, true), false) + $b8hua$ssrAttribute("aria-selected", $b8hua$escape(isSelected === null || isSelected === void 0 ? void 0 : isSelected(), true), false), $b8hua$escape($b8hua$createComponent(InstantCardImageComponent_, {
|
|
8222
8222
|
get src_() {
|
|
8223
8223
|
var _variant$image_urls2;
|
|
8224
8224
|
return ((_variant$image_urls2 = variant.image_urls) === null || _variant$image_urls2 === void 0 ? void 0 : _variant$image_urls2[0]) || variant.image_url || variant.display_image_url;
|
|
@@ -9082,7 +9082,8 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
9082
9082
|
BackIcon_: BackIcon_,
|
|
9083
9083
|
buttonInFieldRef_: buttonInFieldRef_,
|
|
9084
9084
|
class_: class_,
|
|
9085
|
-
setSearchRoleOnContainer_ = true
|
|
9085
|
+
setSearchRoleOnContainer_ = true,
|
|
9086
|
+
ariaControls: ariaControls
|
|
9086
9087
|
} = _ref;
|
|
9087
9088
|
let input_element;
|
|
9088
9089
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -9172,7 +9173,11 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
9172
9173
|
},
|
|
9173
9174
|
get placeholder() {
|
|
9174
9175
|
return i18n_.placeholder_text_();
|
|
9175
|
-
}
|
|
9176
|
+
},
|
|
9177
|
+
"aria-autocomplete": "list",
|
|
9178
|
+
"aria-haspopup": "dialog"
|
|
9179
|
+
}, ariaControls && {
|
|
9180
|
+
"aria-controls": ariaControls
|
|
9176
9181
|
}), undefined, false), !isNewModal && $b8hua$escape($b8hua$createComponent(ClearButton, {}))), "<!--$-->", isNewModal && $b8hua$escape($b8hua$createComponent(BackButton, {})), "<!--/-->", "<!--$-->", $b8hua$escape($b8hua$createComponent((0, $b8hua$Show), {
|
|
9177
9182
|
when: !isNewModal,
|
|
9178
9183
|
get children() {
|
|
@@ -9209,8 +9214,8 @@ function $a82a41ab7188eda2$export$93d9bfd0c9c1a5b8(close_modal, search_query_url
|
|
|
9209
9214
|
}
|
|
9210
9215
|
var $40411f2ec772c376$var$_tmpl$ = ["<div", ' class="discover-more"><button class="major" type="button">', "</button></div>"],
|
|
9211
9216
|
$40411f2ec772c376$var$_tmpl$2 = ["<b", ">", "</b>"],
|
|
9212
|
-
$40411f2ec772c376$var$_tmpl$3 = ["<div", ' class="', '"><div class="', '" role="search"><!--$-->', '<!--/--><div class="padded"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"],
|
|
9213
|
-
$40411f2ec772c376$var$_tmpl$4 = ["<div", ' class="', '"><div class="depict-search-modal-backdrop"></div><!--$-->', "<!--/--></div>"];
|
|
9217
|
+
$40411f2ec772c376$var$_tmpl$3 = ["<div", ' class="', '"><div class="', '" role="search" aria-label="Search modal with search field, query suggestions and result preview"><!--$-->', '<!--/--><div id="depict-suggestions-and-result-preview" class="padded"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"],
|
|
9218
|
+
$40411f2ec772c376$var$_tmpl$4 = ["<div", ' class="', '" role="dialog"><div class="depict-search-modal-backdrop"></div><!--$-->', "<!--/--></div>"];
|
|
9214
9219
|
/**
|
|
9215
9220
|
* First generation (classic) search modal - the solid component that gets added to <body> when the search modal is opened
|
|
9216
9221
|
*/
|
|
@@ -9348,7 +9353,8 @@ function $40411f2ec772c376$var$RawClassicSearchModal(_ref) {
|
|
|
9348
9353
|
if (start === null || end === null) return;
|
|
9349
9354
|
input_el.setSelectionRange(start, end);
|
|
9350
9355
|
},
|
|
9351
|
-
setSearchRoleOnContainer_: false
|
|
9356
|
+
setSearchRoleOnContainer_: false,
|
|
9357
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
9352
9358
|
});
|
|
9353
9359
|
const modal_element = $b8hua$ssr($40411f2ec772c376$var$_tmpl$3, $b8hua$ssrHydrationKey(), "depict-search-modal", "".concat("body", " ").concat($b8hua$escape($b8hua$escape(random_classname, true), true)), $b8hua$escape(search_field), $b8hua$escape($b8hua$createComponent((0, $74777e8fe65b3dcb$export$b69d0d92862de18b), {
|
|
9354
9360
|
severity_: "error",
|
|
@@ -9437,7 +9443,7 @@ function $4a3ed70b3b7c60d5$export$9ca09caa9c849d9c() {
|
|
|
9437
9443
|
return $b8hua$ssr($4a3ed70b3b7c60d5$var$_tmpl$, $b8hua$ssrHydrationKey());
|
|
9438
9444
|
}
|
|
9439
9445
|
var $26db6925469636a4$var$_tmpl$ = ["<div", ' class="images-wrapper">', "</div>"],
|
|
9440
|
-
$26db6925469636a4$var$_tmpl$2 = ["<div", ' class="', '"
|
|
9446
|
+
$26db6925469636a4$var$_tmpl$2 = ["<div", ' class="', '"', "><!--$-->", "<!--/--><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
|
|
9441
9447
|
$26db6925469636a4$var$_tmpl$3 = ["<div", ' class="empty-image" style="', '">', "</div>"];
|
|
9442
9448
|
const $26db6925469636a4$var$aspectRatioWidthComponent = 400;
|
|
9443
9449
|
const $26db6925469636a4$var$aspectRatioHeightComponent = 200;
|
|
@@ -9472,7 +9478,7 @@ function $26db6925469636a4$export$67152d26d4f56ee8(_ref) {
|
|
|
9472
9478
|
var _listing_3;
|
|
9473
9479
|
return (_listing_3 = listing_()) === null || _listing_3 === void 0 ? void 0 : _listing_3.ancestors;
|
|
9474
9480
|
});
|
|
9475
|
-
return $b8hua$ssr($26db6925469636a4$var$_tmpl$2, $b8hua$ssrHydrationKey(), "listing-card ".concat(isSelected() ? "selected" : ""), $b8hua$escape($b8hua$createComponent(LinkToListing, {
|
|
9481
|
+
return $b8hua$ssr($26db6925469636a4$var$_tmpl$2, $b8hua$ssrHydrationKey(), "listing-card ".concat(isSelected() ? "selected" : ""), $b8hua$ssrAttribute("aria-selected", $b8hua$escape(isSelected(), true), false), $b8hua$escape($b8hua$createComponent(LinkToListing, {
|
|
9476
9482
|
"class": "image-part",
|
|
9477
9483
|
get style() {
|
|
9478
9484
|
var _image_urls$length, _image_urls;
|
|
@@ -9683,7 +9689,7 @@ function $5175a47d13b7c228$export$d4994a86c6235f72(_ref) {
|
|
|
9683
9689
|
});
|
|
9684
9690
|
const [isSelected, selectedDueToKeyboardNavigation] = $d0883254246d3eb6$export$fb40a80c530e5f2b(read_selected_index_, itemIndex_, () => index);
|
|
9685
9691
|
const wholeTextToDisplay = $b8hua$createMemo(() => item().title_);
|
|
9686
|
-
return $b8hua$ssr($5175a47d13b7c228$var$_tmpl$2, $b8hua$ssrHydrationKey(), "suggestion ".concat(isSelected() ? "selected" : ""), $b8hua$ssrAttribute("href", $b8hua$escape(href(), true), false) + $b8hua$ssrAttribute("aria-label", $b8hua$escape(wholeTextToDisplay(), true), false), $b8hua$escape($b8hua$createComponent((0, $02b6641aa50ce528$export$ba17c5b7e6dda39f), {
|
|
9692
|
+
return $b8hua$ssr($5175a47d13b7c228$var$_tmpl$2, $b8hua$ssrHydrationKey(), "suggestion ".concat(isSelected() ? "selected" : ""), $b8hua$ssrAttribute("aria-selected", $b8hua$escape(isSelected(), true), false) + $b8hua$ssrAttribute("href", $b8hua$escape(href(), true), false) + $b8hua$ssrAttribute("aria-label", $b8hua$escape(wholeTextToDisplay(), true), false), $b8hua$escape($b8hua$createComponent((0, $02b6641aa50ce528$export$ba17c5b7e6dda39f), {
|
|
9687
9693
|
class_: "title line-clamp",
|
|
9688
9694
|
whole_text_to_display_: wholeTextToDisplay,
|
|
9689
9695
|
searching_for_value_: searching_for_value_
|
|
@@ -9865,7 +9871,7 @@ var $06fcd2a345efd24d$var$_tmpl$ = ["<div", ' class="instant-results-wrapper" st
|
|
|
9865
9871
|
$06fcd2a345efd24d$var$_tmpl$2 = ["<div", ' class="discover-more"><button class="major" type="button">', "</button></div>"],
|
|
9866
9872
|
$06fcd2a345efd24d$var$_tmpl$3 = ["<b", ">", "</b>"],
|
|
9867
9873
|
$06fcd2a345efd24d$var$_tmpl$4 = ["<div", ' class="', '"></div>'],
|
|
9868
|
-
$06fcd2a345efd24d$var$_tmpl$5 = ["<div", ' class="', '"><div class="', '" role="search"><!--$-->', '<!--/--><div class="', '"></div></div><!--$-->', "<!--/--></div>"];
|
|
9874
|
+
$06fcd2a345efd24d$var$_tmpl$5 = ["<div", ' class="', '"><div class="', '" role="search" aria-label="Search modal with search field, query suggestions and result preview"><!--$-->', '<!--/--><div id="depict-suggestions-and-result-preview" class="', '"></div></div><!--$-->', "<!--/--></div>"];
|
|
9869
9875
|
/**
|
|
9870
9876
|
* Second generation search modal - the solid component that gets added to <body> when the search modal is opened
|
|
9871
9877
|
*/
|
|
@@ -10192,7 +10198,8 @@ function $06fcd2a345efd24d$var$RawSearchModalV2(_ref) {
|
|
|
10192
10198
|
if (start === null || end === null) return;
|
|
10193
10199
|
input_el.setSelectionRange(start, end);
|
|
10194
10200
|
},
|
|
10195
|
-
setSearchRoleOnContainer_: false
|
|
10201
|
+
setSearchRoleOnContainer_: false,
|
|
10202
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
10196
10203
|
});
|
|
10197
10204
|
if (setSearchFieldOuterWidth_) {
|
|
10198
10205
|
const resizeObserver = new ResizeObserver($b8hua$catchify1(records => setSearchFieldOuterWidth_(records.at(-1).contentRect.width)));
|
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.4";
|
|
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, ({
|
|
@@ -7834,7 +7834,7 @@ const $6ae613870d3380fc$export$b05c0ae390cf3e06 = ({
|
|
|
7834
7834
|
const secondary_image_url = variant.image_urls?.[1] || variant.secondary_image_url || variant.alternative_display_image_url;
|
|
7835
7835
|
const brandInTagline = selected_index_ && variant.brand;
|
|
7836
7836
|
const TitleBrandTagline = () => [!selected_index_ && $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape(variant.brand)), $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrAttribute("title", $5vyXB$solidjsweb.escape(variant.title, true), false), $5vyXB$solidjsweb.escape(variant.title)), (variant.sub_heading_1 || variant.sub_heading_2 || brandInTagline) && $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$3, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.escape([brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | ")))];
|
|
7837
|
-
return $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$6, $5vyXB$solidjsweb.ssrHydrationKey(), `instant-card ${isSelected?.() ? "selected" : ""}`, $5vyXB$solidjsweb.ssrAttribute("href", $5vyXB$solidjsweb.escape(href(), true), false) + $5vyXB$solidjsweb.ssrAttribute("data-search-result-id", $5vyXB$solidjsweb.escape(display_.search_result_id, true), false), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(InstantCardImageComponent_, {
|
|
7837
|
+
return $5vyXB$solidjsweb.ssr($6ae613870d3380fc$var$_tmpl$6, $5vyXB$solidjsweb.ssrHydrationKey(), `instant-card ${isSelected?.() ? "selected" : ""}`, $5vyXB$solidjsweb.ssrAttribute("href", $5vyXB$solidjsweb.escape(href(), true), false) + $5vyXB$solidjsweb.ssrAttribute("data-search-result-id", $5vyXB$solidjsweb.escape(display_.search_result_id, true), false) + $5vyXB$solidjsweb.ssrAttribute("aria-selected", $5vyXB$solidjsweb.escape(isSelected?.(), true), false), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(InstantCardImageComponent_, {
|
|
7838
7838
|
get src_() {
|
|
7839
7839
|
return variant.image_urls?.[0] || variant.image_url || variant.display_image_url;
|
|
7840
7840
|
}
|
|
@@ -8646,7 +8646,8 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
8646
8646
|
BackIcon_: BackIcon_,
|
|
8647
8647
|
buttonInFieldRef_: buttonInFieldRef_,
|
|
8648
8648
|
class_: class_,
|
|
8649
|
-
setSearchRoleOnContainer_ = true
|
|
8649
|
+
setSearchRoleOnContainer_ = true,
|
|
8650
|
+
ariaControls: ariaControls
|
|
8650
8651
|
}) {
|
|
8651
8652
|
let input_element;
|
|
8652
8653
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -8733,7 +8734,11 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
8733
8734
|
},
|
|
8734
8735
|
get placeholder() {
|
|
8735
8736
|
return i18n_.placeholder_text_();
|
|
8736
|
-
}
|
|
8737
|
+
},
|
|
8738
|
+
"aria-autocomplete": "list",
|
|
8739
|
+
"aria-haspopup": "dialog"
|
|
8740
|
+
}, ariaControls && {
|
|
8741
|
+
"aria-controls": ariaControls
|
|
8737
8742
|
}), undefined, false), !isNewModal && $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(ClearButton, {}))), "<!--$-->", isNewModal && $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(BackButton, {})), "<!--/-->", "<!--$-->", $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
|
|
8738
8743
|
when: !isNewModal,
|
|
8739
8744
|
get children() {
|
|
@@ -8770,8 +8775,8 @@ function $eb3039a27db40508$export$93d9bfd0c9c1a5b8(close_modal, search_query_url
|
|
|
8770
8775
|
}
|
|
8771
8776
|
var $44f0b2e312a9b710$var$_tmpl$ = ["<div", ' class="discover-more"><button class="major" type="button">', "</button></div>"],
|
|
8772
8777
|
$44f0b2e312a9b710$var$_tmpl$2 = ["<b", ">", "</b>"],
|
|
8773
|
-
$44f0b2e312a9b710$var$_tmpl$3 = ["<div", ' class="', '"><div class="', '" role="search"><!--$-->', '<!--/--><div class="padded"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"],
|
|
8774
|
-
$44f0b2e312a9b710$var$_tmpl$4 = ["<div", ' class="', '"><div class="depict-search-modal-backdrop"></div><!--$-->', "<!--/--></div>"];
|
|
8778
|
+
$44f0b2e312a9b710$var$_tmpl$3 = ["<div", ' class="', '"><div class="', '" role="search" aria-label="Search modal with search field, query suggestions and result preview"><!--$-->', '<!--/--><div id="depict-suggestions-and-result-preview" class="padded"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"],
|
|
8779
|
+
$44f0b2e312a9b710$var$_tmpl$4 = ["<div", ' class="', '" role="dialog"><div class="depict-search-modal-backdrop"></div><!--$-->', "<!--/--></div>"];
|
|
8775
8780
|
/**
|
|
8776
8781
|
* First generation (classic) search modal - the solid component that gets added to <body> when the search modal is opened
|
|
8777
8782
|
*/
|
|
@@ -8903,7 +8908,8 @@ function $44f0b2e312a9b710$var$RawClassicSearchModal({
|
|
|
8903
8908
|
if (start === null || end === null) return;
|
|
8904
8909
|
input_el.setSelectionRange(start, end);
|
|
8905
8910
|
},
|
|
8906
|
-
setSearchRoleOnContainer_: false
|
|
8911
|
+
setSearchRoleOnContainer_: false,
|
|
8912
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
8907
8913
|
});
|
|
8908
8914
|
const modal_element = $5vyXB$solidjsweb.ssr($44f0b2e312a9b710$var$_tmpl$3, $5vyXB$solidjsweb.ssrHydrationKey(), `depict-search-modal`, `${`body` || ""} ${$5vyXB$solidjsweb.escape($5vyXB$solidjsweb.escape(random_classname, true), true)}`, $5vyXB$solidjsweb.escape(search_field), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
|
|
8909
8915
|
severity_: "error",
|
|
@@ -8992,7 +8998,7 @@ function $3a1c4fee88fb8672$export$9ca09caa9c849d9c() {
|
|
|
8992
8998
|
return $5vyXB$solidjsweb.ssr($3a1c4fee88fb8672$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey());
|
|
8993
8999
|
}
|
|
8994
9000
|
var $1f3b5fa875714dea$var$_tmpl$ = ["<div", ' class="images-wrapper">', "</div>"],
|
|
8995
|
-
$1f3b5fa875714dea$var$_tmpl$2 = ["<div", ' class="', '"
|
|
9001
|
+
$1f3b5fa875714dea$var$_tmpl$2 = ["<div", ' class="', '"', "><!--$-->", "<!--/--><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
|
|
8996
9002
|
$1f3b5fa875714dea$var$_tmpl$3 = ["<div", ' class="empty-image" style="', '">', "</div>"];
|
|
8997
9003
|
const $1f3b5fa875714dea$var$aspectRatioWidthComponent = 400;
|
|
8998
9004
|
const $1f3b5fa875714dea$var$aspectRatioHeightComponent = 200;
|
|
@@ -9017,7 +9023,7 @@ function $1f3b5fa875714dea$export$67152d26d4f56ee8({
|
|
|
9017
9023
|
const image_urls = $5vyXB$solidjs.createMemo(() => listing_()?.image_urls?.slice(0, 3));
|
|
9018
9024
|
const [isSelected, selectedDueToKeyboardNavigation] = $f144ea315d9e4caa$export$fb40a80c530e5f2b(read_selected_index_, keyboardNavigationGroupIndex_, index_);
|
|
9019
9025
|
const crumbData = $5vyXB$solidjs.createMemo(() => listing_()?.ancestors);
|
|
9020
|
-
return $5vyXB$solidjsweb.ssr($1f3b5fa875714dea$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), `listing-card ${isSelected() ? "selected" : ""}`, $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(LinkToListing, {
|
|
9026
|
+
return $5vyXB$solidjsweb.ssr($1f3b5fa875714dea$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), `listing-card ${isSelected() ? "selected" : ""}`, $5vyXB$solidjsweb.ssrAttribute("aria-selected", $5vyXB$solidjsweb.escape(isSelected(), true), false), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent(LinkToListing, {
|
|
9021
9027
|
"class": "image-part",
|
|
9022
9028
|
get style() {
|
|
9023
9029
|
return `--image-count: ${image_urls()?.length ?? 0}`;
|
|
@@ -9216,7 +9222,7 @@ function $a13dbcf80d79229c$export$d4994a86c6235f72({
|
|
|
9216
9222
|
});
|
|
9217
9223
|
const [isSelected, selectedDueToKeyboardNavigation] = $f144ea315d9e4caa$export$fb40a80c530e5f2b(read_selected_index_, itemIndex_, () => index);
|
|
9218
9224
|
const wholeTextToDisplay = $5vyXB$solidjs.createMemo(() => item().title_);
|
|
9219
|
-
return $5vyXB$solidjsweb.ssr($a13dbcf80d79229c$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), `suggestion ${isSelected() ? "selected" : ""}`, $5vyXB$solidjsweb.ssrAttribute("href", $5vyXB$solidjsweb.escape(href(), true), false) + $5vyXB$solidjsweb.ssrAttribute("aria-label", $5vyXB$solidjsweb.escape(wholeTextToDisplay(), true), false), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $d023ed916c84e75d$export$ba17c5b7e6dda39f), {
|
|
9225
|
+
return $5vyXB$solidjsweb.ssr($a13dbcf80d79229c$var$_tmpl$2, $5vyXB$solidjsweb.ssrHydrationKey(), `suggestion ${isSelected() ? "selected" : ""}`, $5vyXB$solidjsweb.ssrAttribute("aria-selected", $5vyXB$solidjsweb.escape(isSelected(), true), false) + $5vyXB$solidjsweb.ssrAttribute("href", $5vyXB$solidjsweb.escape(href(), true), false) + $5vyXB$solidjsweb.ssrAttribute("aria-label", $5vyXB$solidjsweb.escape(wholeTextToDisplay(), true), false), $5vyXB$solidjsweb.escape($5vyXB$solidjsweb.createComponent((0, $d023ed916c84e75d$export$ba17c5b7e6dda39f), {
|
|
9220
9226
|
class_: "title line-clamp",
|
|
9221
9227
|
whole_text_to_display_: wholeTextToDisplay,
|
|
9222
9228
|
searching_for_value_: searching_for_value_
|
|
@@ -9394,7 +9400,7 @@ var $11597ae03e703a47$var$_tmpl$ = ["<div", ' class="instant-results-wrapper" st
|
|
|
9394
9400
|
$11597ae03e703a47$var$_tmpl$2 = ["<div", ' class="discover-more"><button class="major" type="button">', "</button></div>"],
|
|
9395
9401
|
$11597ae03e703a47$var$_tmpl$3 = ["<b", ">", "</b>"],
|
|
9396
9402
|
$11597ae03e703a47$var$_tmpl$4 = ["<div", ' class="', '"></div>'],
|
|
9397
|
-
$11597ae03e703a47$var$_tmpl$5 = ["<div", ' class="', '"><div class="', '" role="search"><!--$-->', '<!--/--><div class="', '"></div></div><!--$-->', "<!--/--></div>"];
|
|
9403
|
+
$11597ae03e703a47$var$_tmpl$5 = ["<div", ' class="', '"><div class="', '" role="search" aria-label="Search modal with search field, query suggestions and result preview"><!--$-->', '<!--/--><div id="depict-suggestions-and-result-preview" class="', '"></div></div><!--$-->', "<!--/--></div>"];
|
|
9398
9404
|
/**
|
|
9399
9405
|
* Second generation search modal - the solid component that gets added to <body> when the search modal is opened
|
|
9400
9406
|
*/
|
|
@@ -9710,7 +9716,8 @@ function $11597ae03e703a47$var$RawSearchModalV2({
|
|
|
9710
9716
|
if (start === null || end === null) return;
|
|
9711
9717
|
input_el.setSelectionRange(start, end);
|
|
9712
9718
|
},
|
|
9713
|
-
setSearchRoleOnContainer_: false
|
|
9719
|
+
setSearchRoleOnContainer_: false,
|
|
9720
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
9714
9721
|
});
|
|
9715
9722
|
if (setSearchFieldOuterWidth_) {
|
|
9716
9723
|
const resizeObserver = new ResizeObserver($5vyXB$depictaiutilishared.catchify(records => setSearchFieldOuterWidth_(records.at(-1).contentRect.width)));
|
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.4";
|
|
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.4";
|
|
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, ({
|
|
@@ -7732,7 +7732,7 @@ const $e003be2a50d9e5bc$export$b05c0ae390cf3e06 = ({
|
|
|
7732
7732
|
const secondary_image_url = variant.image_urls?.[1] || variant.secondary_image_url || variant.alternative_display_image_url;
|
|
7733
7733
|
const brandInTagline = selected_index_ && variant.brand;
|
|
7734
7734
|
const TitleBrandTagline = () => [!selected_index_ && $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$2, $i7OB2$ssrHydrationKey(), $i7OB2$escape(variant.brand)), $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("title", $i7OB2$escape(variant.title, true), false), $i7OB2$escape(variant.title)), (variant.sub_heading_1 || variant.sub_heading_2 || brandInTagline) && $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$3, $i7OB2$ssrHydrationKey(), $i7OB2$escape([brandInTagline, variant.sub_heading_1, variant.sub_heading_2].filter(v => v).join(" | ")))];
|
|
7735
|
-
return $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$6, $i7OB2$ssrHydrationKey(), `instant-card ${isSelected?.() ? "selected" : ""}`, $i7OB2$ssrAttribute("href", $i7OB2$escape(href(), true), false) + $i7OB2$ssrAttribute("data-search-result-id", $i7OB2$escape(display_.search_result_id, true), false), $i7OB2$escape($i7OB2$createComponent(InstantCardImageComponent_, {
|
|
7735
|
+
return $i7OB2$ssr($e003be2a50d9e5bc$var$_tmpl$6, $i7OB2$ssrHydrationKey(), `instant-card ${isSelected?.() ? "selected" : ""}`, $i7OB2$ssrAttribute("href", $i7OB2$escape(href(), true), false) + $i7OB2$ssrAttribute("data-search-result-id", $i7OB2$escape(display_.search_result_id, true), false) + $i7OB2$ssrAttribute("aria-selected", $i7OB2$escape(isSelected?.(), true), false), $i7OB2$escape($i7OB2$createComponent(InstantCardImageComponent_, {
|
|
7736
7736
|
get src_() {
|
|
7737
7737
|
return variant.image_urls?.[0] || variant.image_url || variant.display_image_url;
|
|
7738
7738
|
}
|
|
@@ -8544,7 +8544,8 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
8544
8544
|
BackIcon_: BackIcon_,
|
|
8545
8545
|
buttonInFieldRef_: buttonInFieldRef_,
|
|
8546
8546
|
class_: class_,
|
|
8547
|
-
setSearchRoleOnContainer_ = true
|
|
8547
|
+
setSearchRoleOnContainer_ = true,
|
|
8548
|
+
ariaControls: ariaControls
|
|
8548
8549
|
}) {
|
|
8549
8550
|
let input_element;
|
|
8550
8551
|
// This is the div where we recommend (and ourselves do) attach the event listener to that opens the search modal.
|
|
@@ -8631,7 +8632,11 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
8631
8632
|
},
|
|
8632
8633
|
get placeholder() {
|
|
8633
8634
|
return i18n_.placeholder_text_();
|
|
8634
|
-
}
|
|
8635
|
+
},
|
|
8636
|
+
"aria-autocomplete": "list",
|
|
8637
|
+
"aria-haspopup": "dialog"
|
|
8638
|
+
}, ariaControls && {
|
|
8639
|
+
"aria-controls": ariaControls
|
|
8635
8640
|
}), undefined, false), !isNewModal && $i7OB2$escape($i7OB2$createComponent(ClearButton, {}))), "<!--$-->", isNewModal && $i7OB2$escape($i7OB2$createComponent(BackButton, {})), "<!--/-->", "<!--$-->", $i7OB2$escape($i7OB2$createComponent((0, $i7OB2$Show), {
|
|
8636
8641
|
when: !isNewModal,
|
|
8637
8642
|
get children() {
|
|
@@ -8668,8 +8673,8 @@ function $512b994d501f412b$export$93d9bfd0c9c1a5b8(close_modal, search_query_url
|
|
|
8668
8673
|
}
|
|
8669
8674
|
var $42912431795f188e$var$_tmpl$ = ["<div", ' class="discover-more"><button class="major" type="button">', "</button></div>"],
|
|
8670
8675
|
$42912431795f188e$var$_tmpl$2 = ["<b", ">", "</b>"],
|
|
8671
|
-
$42912431795f188e$var$_tmpl$3 = ["<div", ' class="', '"><div class="', '" role="search"><!--$-->', '<!--/--><div class="padded"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"],
|
|
8672
|
-
$42912431795f188e$var$_tmpl$4 = ["<div", ' class="', '"><div class="depict-search-modal-backdrop"></div><!--$-->', "<!--/--></div>"];
|
|
8676
|
+
$42912431795f188e$var$_tmpl$3 = ["<div", ' class="', '"><div class="', '" role="search" aria-label="Search modal with search field, query suggestions and result preview"><!--$-->', '<!--/--><div id="depict-suggestions-and-result-preview" class="padded"><!--$-->', "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div><!--$-->", "<!--/--></div>"],
|
|
8677
|
+
$42912431795f188e$var$_tmpl$4 = ["<div", ' class="', '" role="dialog"><div class="depict-search-modal-backdrop"></div><!--$-->', "<!--/--></div>"];
|
|
8673
8678
|
/**
|
|
8674
8679
|
* First generation (classic) search modal - the solid component that gets added to <body> when the search modal is opened
|
|
8675
8680
|
*/
|
|
@@ -8801,7 +8806,8 @@ function $42912431795f188e$var$RawClassicSearchModal({
|
|
|
8801
8806
|
if (start === null || end === null) return;
|
|
8802
8807
|
input_el.setSelectionRange(start, end);
|
|
8803
8808
|
},
|
|
8804
|
-
setSearchRoleOnContainer_: false
|
|
8809
|
+
setSearchRoleOnContainer_: false,
|
|
8810
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
8805
8811
|
});
|
|
8806
8812
|
const modal_element = $i7OB2$ssr($42912431795f188e$var$_tmpl$3, $i7OB2$ssrHydrationKey(), `depict-search-modal`, `${`body` || ""} ${$i7OB2$escape($i7OB2$escape(random_classname, true), true)}`, $i7OB2$escape(search_field), $i7OB2$escape($i7OB2$createComponent((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
|
|
8807
8813
|
severity_: "error",
|
|
@@ -8890,7 +8896,7 @@ function $0eb1f9e7ee46f1c2$export$9ca09caa9c849d9c() {
|
|
|
8890
8896
|
return $i7OB2$ssr($0eb1f9e7ee46f1c2$var$_tmpl$, $i7OB2$ssrHydrationKey());
|
|
8891
8897
|
}
|
|
8892
8898
|
var $4ce5b8892775b62d$var$_tmpl$ = ["<div", ' class="images-wrapper">', "</div>"],
|
|
8893
|
-
$4ce5b8892775b62d$var$_tmpl$2 = ["<div", ' class="', '"
|
|
8899
|
+
$4ce5b8892775b62d$var$_tmpl$2 = ["<div", ' class="', '"', "><!--$-->", "<!--/--><!--$-->", '<!--/--><h3 class="title">', "</h3></div>"],
|
|
8894
8900
|
$4ce5b8892775b62d$var$_tmpl$3 = ["<div", ' class="empty-image" style="', '">', "</div>"];
|
|
8895
8901
|
const $4ce5b8892775b62d$var$aspectRatioWidthComponent = 400;
|
|
8896
8902
|
const $4ce5b8892775b62d$var$aspectRatioHeightComponent = 200;
|
|
@@ -8915,7 +8921,7 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
|
|
|
8915
8921
|
const image_urls = $i7OB2$createMemo(() => listing_()?.image_urls?.slice(0, 3));
|
|
8916
8922
|
const [isSelected, selectedDueToKeyboardNavigation] = $f4125ce4984deee6$export$fb40a80c530e5f2b(read_selected_index_, keyboardNavigationGroupIndex_, index_);
|
|
8917
8923
|
const crumbData = $i7OB2$createMemo(() => listing_()?.ancestors);
|
|
8918
|
-
return $i7OB2$ssr($4ce5b8892775b62d$var$_tmpl$2, $i7OB2$ssrHydrationKey(), `listing-card ${isSelected() ? "selected" : ""}`, $i7OB2$escape($i7OB2$createComponent(LinkToListing, {
|
|
8924
|
+
return $i7OB2$ssr($4ce5b8892775b62d$var$_tmpl$2, $i7OB2$ssrHydrationKey(), `listing-card ${isSelected() ? "selected" : ""}`, $i7OB2$ssrAttribute("aria-selected", $i7OB2$escape(isSelected(), true), false), $i7OB2$escape($i7OB2$createComponent(LinkToListing, {
|
|
8919
8925
|
"class": "image-part",
|
|
8920
8926
|
get style() {
|
|
8921
8927
|
return `--image-count: ${image_urls()?.length ?? 0}`;
|
|
@@ -9114,7 +9120,7 @@ function $903297121898e5ff$export$d4994a86c6235f72({
|
|
|
9114
9120
|
});
|
|
9115
9121
|
const [isSelected, selectedDueToKeyboardNavigation] = $f4125ce4984deee6$export$fb40a80c530e5f2b(read_selected_index_, itemIndex_, () => index);
|
|
9116
9122
|
const wholeTextToDisplay = $i7OB2$createMemo(() => item().title_);
|
|
9117
|
-
return $i7OB2$ssr($903297121898e5ff$var$_tmpl$2, $i7OB2$ssrHydrationKey(), `suggestion ${isSelected() ? "selected" : ""}`, $i7OB2$ssrAttribute("href", $i7OB2$escape(href(), true), false) + $i7OB2$ssrAttribute("aria-label", $i7OB2$escape(wholeTextToDisplay(), true), false), $i7OB2$escape($i7OB2$createComponent((0, $f3213c0640246d58$export$ba17c5b7e6dda39f), {
|
|
9123
|
+
return $i7OB2$ssr($903297121898e5ff$var$_tmpl$2, $i7OB2$ssrHydrationKey(), `suggestion ${isSelected() ? "selected" : ""}`, $i7OB2$ssrAttribute("aria-selected", $i7OB2$escape(isSelected(), true), false) + $i7OB2$ssrAttribute("href", $i7OB2$escape(href(), true), false) + $i7OB2$ssrAttribute("aria-label", $i7OB2$escape(wholeTextToDisplay(), true), false), $i7OB2$escape($i7OB2$createComponent((0, $f3213c0640246d58$export$ba17c5b7e6dda39f), {
|
|
9118
9124
|
class_: "title line-clamp",
|
|
9119
9125
|
whole_text_to_display_: wholeTextToDisplay,
|
|
9120
9126
|
searching_for_value_: searching_for_value_
|
|
@@ -9292,7 +9298,7 @@ var $500a16dd18ee5a71$var$_tmpl$ = ["<div", ' class="instant-results-wrapper" st
|
|
|
9292
9298
|
$500a16dd18ee5a71$var$_tmpl$2 = ["<div", ' class="discover-more"><button class="major" type="button">', "</button></div>"],
|
|
9293
9299
|
$500a16dd18ee5a71$var$_tmpl$3 = ["<b", ">", "</b>"],
|
|
9294
9300
|
$500a16dd18ee5a71$var$_tmpl$4 = ["<div", ' class="', '"></div>'],
|
|
9295
|
-
$500a16dd18ee5a71$var$_tmpl$5 = ["<div", ' class="', '"><div class="', '" role="search"><!--$-->', '<!--/--><div class="', '"></div></div><!--$-->', "<!--/--></div>"];
|
|
9301
|
+
$500a16dd18ee5a71$var$_tmpl$5 = ["<div", ' class="', '"><div class="', '" role="search" aria-label="Search modal with search field, query suggestions and result preview"><!--$-->', '<!--/--><div id="depict-suggestions-and-result-preview" class="', '"></div></div><!--$-->', "<!--/--></div>"];
|
|
9296
9302
|
/**
|
|
9297
9303
|
* Second generation search modal - the solid component that gets added to <body> when the search modal is opened
|
|
9298
9304
|
*/
|
|
@@ -9608,7 +9614,8 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
9608
9614
|
if (start === null || end === null) return;
|
|
9609
9615
|
input_el.setSelectionRange(start, end);
|
|
9610
9616
|
},
|
|
9611
|
-
setSearchRoleOnContainer_: false
|
|
9617
|
+
setSearchRoleOnContainer_: false,
|
|
9618
|
+
ariaControls: "depict-suggestions-and-result-preview"
|
|
9612
9619
|
});
|
|
9613
9620
|
if (setSearchFieldOuterWidth_) {
|
|
9614
9621
|
const resizeObserver = new ResizeObserver($i7OB2$catchify1(records => setSearchFieldOuterWidth_(records.at(-1).contentRect.width)));
|