@depict-ai/ui 4.10.19 → 4.10.20
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 +178 -40
- package/ES10/index.d.ts +12 -3
- package/ES10/index.js +178 -40
- package/latest/index.cjs +169 -40
- package/latest/index.d.ts +12 -3
- package/latest/index.js +169 -40
- package/package.json +4 -4
- package/server/ES10/index.cjs +177 -39
- package/server/ES10/index.d.ts +12 -3
- package/server/ES10/index.js +177 -39
- package/server/latest/index.cjs +168 -39
- package/server/latest/index.d.ts +12 -3
- package/server/latest/index.js +168 -39
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.10.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.20";
|
|
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, ({
|
|
@@ -2491,6 +2491,7 @@ async function $194bd6b8e4c59830$export$79b1565500412d9b(search_modal, modal_fn_
|
|
|
2491
2491
|
const modal_els = $9HbP8$createRoot(dispose => {
|
|
2492
2492
|
let closing_animation;
|
|
2493
2493
|
let animation_started;
|
|
2494
|
+
let focus_target_after_close;
|
|
2494
2495
|
dispose_and_remove = () => {
|
|
2495
2496
|
const actually_close = () => {
|
|
2496
2497
|
dispose();
|
|
@@ -2509,11 +2510,19 @@ async function $194bd6b8e4c59830$export$79b1565500412d9b(search_modal, modal_fn_
|
|
|
2509
2510
|
activeElement?.blur?.();
|
|
2510
2511
|
el.remove();
|
|
2511
2512
|
});
|
|
2512
|
-
|
|
2513
|
+
const requested_focus_target = focus_target_after_close?.();
|
|
2514
|
+
if (should_restore_focus && (requested_focus_target?.isConnected || element_focused_before_open?.isConnected)) {
|
|
2513
2515
|
restoring_focus = true;
|
|
2514
2516
|
try {
|
|
2515
2517
|
// preventScroll so this can't re-introduce the safari page-jump the blur() above works around
|
|
2516
|
-
|
|
2518
|
+
let focused = false;
|
|
2519
|
+
if (requested_focus_target?.isConnected) {
|
|
2520
|
+
requested_focus_target.focus({
|
|
2521
|
+
preventScroll: true
|
|
2522
|
+
});
|
|
2523
|
+
focused = requested_focus_target.getRootNode().activeElement === requested_focus_target;
|
|
2524
|
+
}
|
|
2525
|
+
if (!focused && element_focused_before_open?.isConnected) element_focused_before_open.focus({
|
|
2517
2526
|
preventScroll: true
|
|
2518
2527
|
});
|
|
2519
2528
|
} finally {
|
|
@@ -2534,7 +2543,8 @@ async function $194bd6b8e4c59830$export$79b1565500412d9b(search_modal, modal_fn_
|
|
|
2534
2543
|
...extra_options_for_modal,
|
|
2535
2544
|
close_modal_: close_modal_,
|
|
2536
2545
|
open_modal_: open_modal_,
|
|
2537
|
-
register_closing_animation_: animation => closing_animation = animation
|
|
2546
|
+
register_closing_animation_: animation => closing_animation = animation,
|
|
2547
|
+
set_focus_target_after_close_: get_target => focus_target_after_close = get_target
|
|
2538
2548
|
});
|
|
2539
2549
|
});
|
|
2540
2550
|
body.append(...modal_els);
|
|
@@ -10706,6 +10716,7 @@ var $5285d2814d0fac0c$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<button class=b
|
|
|
10706
10716
|
$5285d2814d0fac0c$var$_tmpl$3 = /*#__PURE__*/$9HbP8$template(`<div class=spacer>`),
|
|
10707
10717
|
$5285d2814d0fac0c$var$_tmpl$4 = /*#__PURE__*/$9HbP8$template(`<button class="submit major"type=button>`),
|
|
10708
10718
|
$5285d2814d0fac0c$var$_tmpl$5 = /*#__PURE__*/$9HbP8$template(`<div><!$><!/><!$><!/><div class=field><!$><!/><input class=query tabindex=0 enterkeyhint=search><!$><!/></div><!$><!/><!$><!/>`);
|
|
10719
|
+
const $5285d2814d0fac0c$var$keys_not_opening_modal = new Set(["Tab", "Shift", "Control", "Alt", "AltGraph", "Meta", "CapsLock", "Escape", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End", "Insert", "ContextMenu", "NumLock", "ScrollLock", "Pause", "PrintScreen"]);
|
|
10709
10720
|
function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
10710
10721
|
search_field_value_: [searchFieldValue, setSearchFieldValue],
|
|
10711
10722
|
input_field_ref_: input_field_ref_,
|
|
@@ -10883,7 +10894,7 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
10883
10894
|
get onKeyDown() {
|
|
10884
10895
|
return $9HbP8$catchify1(e => {
|
|
10885
10896
|
if (disabled_) {
|
|
10886
|
-
if (e.key
|
|
10897
|
+
if (!$5285d2814d0fac0c$var$keys_not_opening_modal.has(e.key) && !/^F\d{1,2}$/.test(e.key))
|
|
10887
10898
|
// alow tab-selecting the input field and then open the modal when the user start writing but also to move past the field with tab
|
|
10888
10899
|
input_element.click();
|
|
10889
10900
|
} else if (e.key === "Enter") {
|
|
@@ -10986,6 +10997,31 @@ function $512b994d501f412b$export$93d9bfd0c9c1a5b8(close_modal, search_query_url
|
|
|
10986
10997
|
}
|
|
10987
10998
|
})();
|
|
10988
10999
|
}
|
|
11000
|
+
function $8b2ecf1919837863$export$9e9e2ae069cf2fe1({
|
|
11001
|
+
props_search_field_value_: props_search_field_value_,
|
|
11002
|
+
props_submit_query_: props_submit_query_,
|
|
11003
|
+
dont_sync_search_field_value_except_on_submit_: dont_sync_search_field_value_except_on_submit_,
|
|
11004
|
+
set_focus_target_after_close_: set_focus_target_after_close_,
|
|
11005
|
+
get_search_page_input_element_: get_search_page_input_element_
|
|
11006
|
+
}) {
|
|
11007
|
+
const search_field_value_ = dont_sync_search_field_value_except_on_submit_ ? $9HbP8$createSignal("") : props_search_field_value_;
|
|
11008
|
+
let submits_in_flight = 0;
|
|
11009
|
+
const submit_query_ = async (new_query = $9HbP8$untrack(search_field_value_[0])) => {
|
|
11010
|
+
submits_in_flight++;
|
|
11011
|
+
try {
|
|
11012
|
+
return await props_submit_query_(new_query, () => set_focus_target_after_close_(get_search_page_input_element_));
|
|
11013
|
+
} finally {
|
|
11014
|
+
submits_in_flight--;
|
|
11015
|
+
}
|
|
11016
|
+
};
|
|
11017
|
+
if (dont_sync_search_field_value_except_on_submit_) $9HbP8$createEffect($9HbP8$on(search_field_value_[0], value => submits_in_flight > 0 && props_search_field_value_[1](value), {
|
|
11018
|
+
defer: true
|
|
11019
|
+
}));
|
|
11020
|
+
return {
|
|
11021
|
+
search_field_value_: search_field_value_,
|
|
11022
|
+
submit_query_: submit_query_
|
|
11023
|
+
};
|
|
11024
|
+
}
|
|
10989
11025
|
var $42912431795f188e$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class=discover-more><button class=major type=button>`),
|
|
10990
11026
|
$42912431795f188e$var$_tmpl$2 = /*#__PURE__*/$9HbP8$template(`<b>`),
|
|
10991
11027
|
$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><!$><!/>`),
|
|
@@ -10999,6 +11035,8 @@ function $42912431795f188e$var$RawClassicSearchModal({
|
|
|
10999
11035
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
11000
11036
|
previous_searches_: previous_searches_,
|
|
11001
11037
|
close_modal_: close_modal_,
|
|
11038
|
+
set_focus_target_after_close_: set_focus_target_after_close_,
|
|
11039
|
+
get_search_page_input_element_: get_search_page_input_element_,
|
|
11002
11040
|
depict_api_: depict_api_,
|
|
11003
11041
|
merchant_: merchant_,
|
|
11004
11042
|
market_: market_,
|
|
@@ -11023,15 +11061,16 @@ function $42912431795f188e$var$RawClassicSearchModal({
|
|
|
11023
11061
|
// As per feedback from stronger we sometimes want a modal with the search field value disconnected from the one in the rest of the UI, see https://depictaiworkspace.slack.com/archives/C02J16R9XEH/p1679065878487709.
|
|
11024
11062
|
// This is desired for when the modal is opened from a UI element that visually does not look connected with the search page or current query
|
|
11025
11063
|
// Basically the UI signals that the button that opens the modal starts a new search.
|
|
11026
|
-
const
|
|
11027
|
-
|
|
11028
|
-
|
|
11029
|
-
|
|
11030
|
-
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11064
|
+
const {
|
|
11065
|
+
search_field_value_: search_field_value_,
|
|
11066
|
+
submit_query_: submit_query_
|
|
11067
|
+
} = $8b2ecf1919837863$export$9e9e2ae069cf2fe1({
|
|
11068
|
+
props_search_field_value_: props_search_field_value,
|
|
11069
|
+
props_submit_query_: props_submit_query,
|
|
11070
|
+
dont_sync_search_field_value_except_on_submit_: dont_sync_search_field_value_except_on_submit_,
|
|
11071
|
+
set_focus_target_after_close_: set_focus_target_after_close_,
|
|
11072
|
+
get_search_page_input_element_: get_search_page_input_element_
|
|
11073
|
+
});
|
|
11035
11074
|
const [input_field, set_input_field] = $9HbP8$createSignal();
|
|
11036
11075
|
const [get_search_field_value_] = search_field_value_;
|
|
11037
11076
|
// Search field alignment unused in ClassicSearchModal since the search field spans the whole modal
|
|
@@ -11826,6 +11865,8 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
11826
11865
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
11827
11866
|
previous_searches_: previous_searches_,
|
|
11828
11867
|
close_modal_: close_modal_,
|
|
11868
|
+
set_focus_target_after_close_: set_focus_target_after_close_,
|
|
11869
|
+
get_search_page_input_element_: get_search_page_input_element_,
|
|
11829
11870
|
alignmentSignals_: alignmentSignals_,
|
|
11830
11871
|
depict_api_: depict_api_,
|
|
11831
11872
|
merchant_: merchant_,
|
|
@@ -11856,15 +11897,16 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
11856
11897
|
// As per feedback from stronger we sometimes want a modal with the search field value disconnected from the one in the rest of the UI, see https://depictaiworkspace.slack.com/archives/C02J16R9XEH/p1679065878487709.
|
|
11857
11898
|
// This is desired for when the modal is opened from a UI element that visually does not look connected with the search page or current query
|
|
11858
11899
|
// Basically the UI signals that the button that opens the modal starts a new search.
|
|
11859
|
-
const
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
|
|
11900
|
+
const {
|
|
11901
|
+
search_field_value_: search_field_value_,
|
|
11902
|
+
submit_query_: submit_query_
|
|
11903
|
+
} = $8b2ecf1919837863$export$9e9e2ae069cf2fe1({
|
|
11904
|
+
props_search_field_value_: props_search_field_value,
|
|
11905
|
+
props_submit_query_: props_submit_query,
|
|
11906
|
+
dont_sync_search_field_value_except_on_submit_: dont_sync_search_field_value_except_on_submit_,
|
|
11907
|
+
set_focus_target_after_close_: set_focus_target_after_close_,
|
|
11908
|
+
get_search_page_input_element_: get_search_page_input_element_
|
|
11909
|
+
});
|
|
11868
11910
|
const [input_field, set_input_field] = $9HbP8$createSignal();
|
|
11869
11911
|
const [searching_for_value_, set_searching_for_value_] = $9HbP8$createSignal();
|
|
11870
11912
|
const [show_stale_content_results_, set_show_stale_content_results_] = $9HbP8$createSignal(false);
|
|
@@ -13995,11 +14037,12 @@ function $21f51c14cb3f586f$export$84bba84a7b837187(read_search_query) {
|
|
|
13995
14037
|
async function $bfd908d13d90934c$export$e16630ecb9644a1c({
|
|
13996
14038
|
on_submit_with_unchanged_value_: on_submit_with_unchanged_value_,
|
|
13997
14039
|
search_param_name_: search_param_name_,
|
|
13998
|
-
|
|
14040
|
+
search_field_value_: search_field_value_,
|
|
13999
14041
|
get_search_query_: get_search_query_,
|
|
14000
14042
|
url_transformer_: url_transformer_,
|
|
14001
14043
|
router_: router_,
|
|
14002
14044
|
after_submit_: after_submit_,
|
|
14045
|
+
before_navigate_: before_navigate_,
|
|
14003
14046
|
get_new_query: get_new_query
|
|
14004
14047
|
}) {
|
|
14005
14048
|
const new_search_query = get_new_query();
|
|
@@ -14007,21 +14050,89 @@ async function $bfd908d13d90934c$export$e16630ecb9644a1c({
|
|
|
14007
14050
|
if (previous_query === new_search_query && new URLSearchParams(location.search).has(search_param_name_)) {
|
|
14008
14051
|
// don't push a history entry / re-search if someone submits a search again
|
|
14009
14052
|
// do close the modal though
|
|
14053
|
+
search_field_value_.settle_(new_search_query);
|
|
14010
14054
|
on_submit_with_unchanged_value_?.();
|
|
14011
|
-
return;
|
|
14055
|
+
return false;
|
|
14012
14056
|
}
|
|
14013
|
-
set_search_field_value_(previous_query); // restore the value to the previous query since this one goes to the new history entry
|
|
14014
14057
|
const target_url = new URL(location.href);
|
|
14015
14058
|
url_transformer_?.(target_url);
|
|
14016
14059
|
target_url.searchParams.set(search_param_name_, new_search_query);
|
|
14017
|
-
|
|
14018
|
-
|
|
14019
|
-
|
|
14020
|
-
|
|
14021
|
-
|
|
14022
|
-
|
|
14060
|
+
const end_submit = search_field_value_.begin_submit_(new_search_query, previous_query);
|
|
14061
|
+
before_navigate_?.();
|
|
14062
|
+
let landed;
|
|
14063
|
+
try {
|
|
14064
|
+
await router_.navigate_.go_to_({
|
|
14065
|
+
new_url_: target_url,
|
|
14066
|
+
is_replace_: false,
|
|
14067
|
+
force_spa_navigation_: true
|
|
14068
|
+
});
|
|
14069
|
+
} finally {
|
|
14070
|
+
landed = end_submit();
|
|
14071
|
+
}
|
|
14072
|
+
if (!landed) return false;
|
|
14023
14073
|
scrollTo(0, 0);
|
|
14024
14074
|
after_submit_?.();
|
|
14075
|
+
return true;
|
|
14076
|
+
}
|
|
14077
|
+
function $a578366fad1bde47$export$d13a185c53aa5edf(persisted_, get_search_query_) {
|
|
14078
|
+
const [get_persisted, set_persisted] = persisted_;
|
|
14079
|
+
const [get_submitting, set_submitting] = $9HbP8$createSignal();
|
|
14080
|
+
const get_value = $9HbP8$createMemo(() => get_submitting() ?? get_persisted());
|
|
14081
|
+
const set_value = value => {
|
|
14082
|
+
const new_value = typeof value === "function" ? value($9HbP8$untrack(get_value)) : value;
|
|
14083
|
+
if ($9HbP8$untrack(get_submitting) === undefined) set_persisted(new_value);else set_submitting(new_value);
|
|
14084
|
+
return new_value;
|
|
14085
|
+
};
|
|
14086
|
+
let current_submit;
|
|
14087
|
+
const end_submit = landed => {
|
|
14088
|
+
current_submit.landed_ = landed;
|
|
14089
|
+
current_submit = undefined;
|
|
14090
|
+
$9HbP8$batch(() => {
|
|
14091
|
+
const submitting = $9HbP8$untrack(get_submitting);
|
|
14092
|
+
set_submitting(undefined);
|
|
14093
|
+
if (landed && submitting !== undefined) set_persisted(submitting);
|
|
14094
|
+
});
|
|
14095
|
+
};
|
|
14096
|
+
const abort_on_popstate = what_happened => {
|
|
14097
|
+
if (what_happened === "popstate" && current_submit) end_submit(false);
|
|
14098
|
+
};
|
|
14099
|
+
(0, $9HbP8$instant_exec_on_suspect_history_change).add(abort_on_popstate);
|
|
14100
|
+
$9HbP8$onCleanup(() => (0, $9HbP8$instant_exec_on_suspect_history_change).delete(abort_on_popstate));
|
|
14101
|
+
$9HbP8$createEffect($9HbP8$on(get_search_query_, query => {
|
|
14102
|
+
const token = current_submit;
|
|
14103
|
+
if (!token || query !== token.query_) return;
|
|
14104
|
+
queueMicrotask(() => {
|
|
14105
|
+
if (current_submit === token) end_submit(true);
|
|
14106
|
+
});
|
|
14107
|
+
}, {
|
|
14108
|
+
defer: true
|
|
14109
|
+
}));
|
|
14110
|
+
const begin_submit_ = (submitted_query, query_of_current_history_entry) => {
|
|
14111
|
+
const token = current_submit = {
|
|
14112
|
+
query_: submitted_query,
|
|
14113
|
+
landed_: false
|
|
14114
|
+
};
|
|
14115
|
+
$9HbP8$batch(() => {
|
|
14116
|
+
set_submitting(submitted_query);
|
|
14117
|
+
set_persisted(query_of_current_history_entry);
|
|
14118
|
+
});
|
|
14119
|
+
return () => {
|
|
14120
|
+
if (current_submit === token) end_submit(true);
|
|
14121
|
+
return token.landed_;
|
|
14122
|
+
};
|
|
14123
|
+
};
|
|
14124
|
+
const settle_ = query => {
|
|
14125
|
+
if (current_submit) return;
|
|
14126
|
+
$9HbP8$batch(() => {
|
|
14127
|
+
set_submitting(undefined);
|
|
14128
|
+
set_persisted(query);
|
|
14129
|
+
});
|
|
14130
|
+
};
|
|
14131
|
+
return {
|
|
14132
|
+
value_: [get_value, set_value],
|
|
14133
|
+
begin_submit_: begin_submit_,
|
|
14134
|
+
settle_: settle_
|
|
14135
|
+
};
|
|
14025
14136
|
}
|
|
14026
14137
|
function $d68658730065de95$export$181cceed5c91919e(callback, alsoRaF, passiveListener) {
|
|
14027
14138
|
let aligned_this_microtask = false;
|
|
@@ -14725,6 +14836,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
14725
14836
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
14726
14837
|
product_card_template_: product_card_template_,
|
|
14727
14838
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
14839
|
+
inputFieldRef_: inputFieldRef_,
|
|
14728
14840
|
router_: router_,
|
|
14729
14841
|
content_results_rows_: content_results_rows_,
|
|
14730
14842
|
content_layout_options_: content_layout_options_,
|
|
@@ -14913,6 +15025,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
14913
15025
|
if (!search_field) break add_input_field;
|
|
14914
15026
|
setModalBodyStyle({});
|
|
14915
15027
|
modalAlignmentSignalsRef_?.(alignmentSignals_);
|
|
15028
|
+
inputFieldRef_?.(input_element);
|
|
15029
|
+
$9HbP8$onCleanup(() => inputFieldRef_?.(undefined));
|
|
14916
15030
|
const [pollAlignment, setPollAlignment_] = $9HbP8$createSignal(false);
|
|
14917
15031
|
const align_position = $9HbP8$catchify1((0, $b6d5529b253681aa$export$b3ad617e9036868))(alignmentSignals_, search_field, (0, $b6d5529b253681aa$export$3f238c96c45e6cc6) | (0, $b6d5529b253681aa$export$7895aadd1956b1c7) | (modalVersionUsed_ === 1 ? (0, $b6d5529b253681aa$export$902f8b4a7dae5d78) : (0, $b6d5529b253681aa$export$6060bc6bee850eb6) | (0, $b6d5529b253681aa$export$5097308c5200105a)), true, pollAlignment);
|
|
14918
15032
|
div_with_field_class.addEventListener("click", $9HbP8$catchify1(e => {
|
|
@@ -15255,14 +15369,16 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
15255
15369
|
set_search_content_results_rows((0, $49de9d31aeea1b5e$export$70ceae36059a1036));
|
|
15256
15370
|
}; // do this every time after we have submitted a new query - otherwise there might already be a saved number of rows in the state
|
|
15257
15371
|
const on_submit_with_unchanged_value_ = () => this.modal_open = false;
|
|
15258
|
-
const
|
|
15259
|
-
const
|
|
15372
|
+
const search_field_value_ = $a578366fad1bde47$export$d13a185c53aa5edf(state_.field_value, get_search_query_);
|
|
15373
|
+
const [get_search_field_value_] = search_field_value_.value_;
|
|
15374
|
+
const configured_submit_query_ = (new_query, before_navigate_) => $bfd908d13d90934c$export$e16630ecb9644a1c({
|
|
15260
15375
|
on_submit_with_unchanged_value_: on_submit_with_unchanged_value_,
|
|
15261
|
-
|
|
15376
|
+
search_field_value_: search_field_value_,
|
|
15262
15377
|
get_search_query_: get_search_query_,
|
|
15263
15378
|
search_param_name_: search_query_url_param_name_,
|
|
15264
15379
|
after_submit_: after_submit_,
|
|
15265
|
-
|
|
15380
|
+
before_navigate_: before_navigate_,
|
|
15381
|
+
get_new_query: () => new_query ?? $9HbP8$untrack(get_search_field_value_),
|
|
15266
15382
|
url_transformer_: url_transformer,
|
|
15267
15383
|
router_: this.#router
|
|
15268
15384
|
});
|
|
@@ -15281,6 +15397,7 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
15281
15397
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
15282
15398
|
reset_history_state_: reset_history_state_,
|
|
15283
15399
|
state_: state_,
|
|
15400
|
+
search_field_value_: search_field_value_.value_,
|
|
15284
15401
|
router_: this.#router,
|
|
15285
15402
|
url_transformer_: url_transformer,
|
|
15286
15403
|
depict_api_: depict_api_,
|
|
@@ -15304,7 +15421,8 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
15304
15421
|
$9HbP8$onCleanup(() => this.modal_open = false);
|
|
15305
15422
|
return searchModalComponent(...args);
|
|
15306
15423
|
}, {
|
|
15307
|
-
search_field_value_:
|
|
15424
|
+
search_field_value_: search_field_value_.value_,
|
|
15425
|
+
get_search_page_input_element_: () => $806c97b931758897$export$dde08b2dca8cc1ce.get(this)?.search_page_input_element_,
|
|
15308
15426
|
get_search_query_: get_search_query_,
|
|
15309
15427
|
search_query_url_param_name_: search_query_url_param_name_,
|
|
15310
15428
|
previous_searches_: previous_searches,
|
|
@@ -15452,6 +15570,7 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
15452
15570
|
const {
|
|
15453
15571
|
state_: state_
|
|
15454
15572
|
} = shared_properties;
|
|
15573
|
+
let registered_input_element;
|
|
15455
15574
|
const grid_spacing_override = $9HbP8$createMemo(() => {
|
|
15456
15575
|
const {
|
|
15457
15576
|
grid_spacing: grid_spacing
|
|
@@ -15480,7 +15599,7 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
15480
15599
|
min_products_to_fetch_: $806c97b931758897$var$min_products_to_fetch_,
|
|
15481
15600
|
local_filter_cache_: state_.local_filter_cache,
|
|
15482
15601
|
content_search_enabled_: () => depict_search.enable_content_search ?? $806c97b931758897$var$content_search_default,
|
|
15483
|
-
search_field_value_:
|
|
15602
|
+
search_field_value_: shared_properties.search_field_value_,
|
|
15484
15603
|
get_search_query_: shared_properties.get_search_query_,
|
|
15485
15604
|
clear_filters_on_next_submit_: shared_properties.clear_filters_on_next_submit_,
|
|
15486
15605
|
open_modal_: (...args) => depict_search.modal_open = args,
|
|
@@ -15488,6 +15607,16 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
15488
15607
|
modalVersionUsed_: shared_properties.modalVersionUsed_,
|
|
15489
15608
|
showSliderArrow_: () => props.showSliderArrow_,
|
|
15490
15609
|
i18n_: shared_properties.i18n_,
|
|
15610
|
+
inputFieldRef_: input_element => {
|
|
15611
|
+
const shared_info_right_now = $806c97b931758897$export$dde08b2dca8cc1ce.get(depict_search);
|
|
15612
|
+
if (!shared_info_right_now) return;
|
|
15613
|
+
if (input_element === undefined && shared_info_right_now.search_page_input_element_ !== registered_input_element) return;
|
|
15614
|
+
registered_input_element = input_element;
|
|
15615
|
+
$806c97b931758897$export$dde08b2dca8cc1ce.set(depict_search, {
|
|
15616
|
+
...shared_info_right_now,
|
|
15617
|
+
search_page_input_element_: input_element
|
|
15618
|
+
});
|
|
15619
|
+
},
|
|
15491
15620
|
modalAlignmentSignalsRef_: style => {
|
|
15492
15621
|
const shared_info_right_now = $806c97b931758897$export$dde08b2dca8cc1ce.get(depict_search);
|
|
15493
15622
|
if (!shared_info_right_now) return;
|
|
@@ -15838,7 +15967,7 @@ function $58b3487626e85ece$export$316f6f283ae64765(props) {
|
|
|
15838
15967
|
return shared_properties.BackIcon_;
|
|
15839
15968
|
},
|
|
15840
15969
|
get search_field_value_() {
|
|
15841
|
-
return shared_properties.
|
|
15970
|
+
return shared_properties.search_field_value_;
|
|
15842
15971
|
},
|
|
15843
15972
|
get submit_query_() {
|
|
15844
15973
|
return shared_properties.configured_submit_query_;
|
|
@@ -15881,7 +16010,7 @@ function $58b3487626e85ece$export$316f6f283ae64765(props) {
|
|
|
15881
16010
|
return shared_properties.BackIcon_;
|
|
15882
16011
|
},
|
|
15883
16012
|
get search_field_value_() {
|
|
15884
|
-
return shared_properties.
|
|
16013
|
+
return shared_properties.search_field_value_;
|
|
15885
16014
|
},
|
|
15886
16015
|
get submit_query_() {
|
|
15887
16016
|
return shared_properties.configured_submit_query_;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.20",
|
|
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",
|
|
@@ -236,9 +236,9 @@
|
|
|
236
236
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
237
237
|
"@babel/runtime": "^7.22.6",
|
|
238
238
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
239
|
-
"@depict-ai/plp-styling": "^4.6.
|
|
240
|
-
"@depict-ai/types": "^5.6.
|
|
241
|
-
"@depict-ai/utilishared": "^2.6.
|
|
239
|
+
"@depict-ai/plp-styling": "^4.6.12",
|
|
240
|
+
"@depict-ai/types": "^5.6.10",
|
|
241
|
+
"@depict-ai/utilishared": "^2.6.10",
|
|
242
242
|
"solid-js": "^1.9.10"
|
|
243
243
|
},
|
|
244
244
|
"type": "module",
|