@depict-ai/ui 4.3.13 → 4.4.0
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 +134 -69
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +134 -69
- package/latest/index.cjs +131 -71
- package/latest/index.d.ts +1 -1
- package/latest/index.js +131 -71
- package/package.json +2 -2
- package/server/ES10/index.cjs +64 -19
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +64 -19
- package/server/latest/index.cjs +61 -19
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +61 -19
package/ES10/index.cjs
CHANGED
|
@@ -100,7 +100,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
100
100
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
101
101
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
102
102
|
/*! Depict.ai search and product listing SDK */
|
|
103
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.
|
|
103
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.4.0";
|
|
104
104
|
const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
|
|
105
105
|
const cols_at_size = [];
|
|
106
106
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -1420,9 +1420,9 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1420
1420
|
is_replace_: false,
|
|
1421
1421
|
event_: event_
|
|
1422
1422
|
});
|
|
1423
|
-
if (event_.defaultPrevented)
|
|
1424
|
-
//
|
|
1425
|
-
|
|
1423
|
+
if (!event_.defaultPrevented)
|
|
1424
|
+
// If the user opened in a new tab, prevent the event from propagating to the parent which would close the look
|
|
1425
|
+
event_.stopImmediatePropagation();
|
|
1426
1426
|
}
|
|
1427
1427
|
});
|
|
1428
1428
|
}
|
|
@@ -1783,10 +1783,7 @@ function $47e3c3102c78121b$export$44809a8a3e867e30(_ref) {
|
|
|
1783
1783
|
let {
|
|
1784
1784
|
target: target
|
|
1785
1785
|
} = _ref2;
|
|
1786
|
-
|
|
1787
|
-
const selector = "a[href]";
|
|
1788
|
-
if (target.matches(selector) || target.closest(selector)) return;
|
|
1789
|
-
setUserWantsExpanded(prev => !prev);
|
|
1786
|
+
return setUserWantsExpanded(prev => !prev);
|
|
1790
1787
|
}), true);
|
|
1791
1788
|
_el$.classList.toggle("placeholder", !!!display_);
|
|
1792
1789
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
@@ -3604,10 +3601,13 @@ let $c95c6dd9e93acd82$export$44dad306455dddf;
|
|
|
3604
3601
|
DEPICT_ID["PLP_CATEGORY"] = "depict-plp-category";
|
|
3605
3602
|
})($c95c6dd9e93acd82$export$44dad306455dddf || ($c95c6dd9e93acd82$export$44dad306455dddf = {}));
|
|
3606
3603
|
var $29e5dbeb69da7a36$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class=back type=button>`),
|
|
3607
|
-
$29e5dbeb69da7a36$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<
|
|
3604
|
+
$29e5dbeb69da7a36$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button type=button class=clear>`),
|
|
3605
|
+
$29e5dbeb69da7a36$var$_tmpl$3 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=spacer>`),
|
|
3606
|
+
$29e5dbeb69da7a36$var$_tmpl$4 = /*#__PURE__*/$52FdA$solidjsweb.template(`<button class="submit major"type=button>`),
|
|
3607
|
+
$29e5dbeb69da7a36$var$_tmpl$5 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class=search-field role=search><!$><!/><!$><!/><div class=field><!$><!/><input class=query tabindex=0><!$><!/></div><!$><!/><!$><!/>`);
|
|
3608
3608
|
function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
3609
3609
|
let {
|
|
3610
|
-
search_field_value_:
|
|
3610
|
+
search_field_value_: [searchFieldValue, setSearchFieldValue],
|
|
3611
3611
|
input_field_ref_: input_field_ref_,
|
|
3612
3612
|
field_element_ref_: field_element_ref_,
|
|
3613
3613
|
submit_query_: submit_query_,
|
|
@@ -3632,30 +3632,105 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
3632
3632
|
})); // focus field on render
|
|
3633
3633
|
const owner_of_field_element = $52FdA$solidjs.getOwner();
|
|
3634
3634
|
const isNewModal = BackIcon_[(0, $072ab198d82c3eb7$export$1ea76ea778b880dd)] === 2;
|
|
3635
|
+
const [backButtonWidthAccessor, setBackButtonWidthAccessor] = $52FdA$solidjs.createSignal();
|
|
3636
|
+
const getBackButtonWidth = () => {
|
|
3637
|
+
var _backButtonWidthAcces;
|
|
3638
|
+
return (_backButtonWidthAcces = backButtonWidthAccessor()) === null || _backButtonWidthAcces === void 0 ? void 0 : _backButtonWidthAcces();
|
|
3639
|
+
};
|
|
3640
|
+
const searchFieldEmpty = $52FdA$solidjs.createMemo(() => !searchFieldValue());
|
|
3641
|
+
const BackButton = () => $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
3642
|
+
when: on_back_,
|
|
3643
|
+
get children() {
|
|
3644
|
+
var _el$ = $52FdA$solidjsweb.getNextElement($29e5dbeb69da7a36$var$_tmpl$);
|
|
3645
|
+
$52FdA$solidjsweb.spread(_el$, $52FdA$solidjsweb.mergeProps({
|
|
3646
|
+
get onClick() {
|
|
3647
|
+
return $52FdA$depictaiutilishared.catchify(on_back_);
|
|
3648
|
+
},
|
|
3649
|
+
get ["aria-label"]() {
|
|
3650
|
+
return i18n_.back_();
|
|
3651
|
+
}
|
|
3652
|
+
}, isNewModal && {
|
|
3653
|
+
ref: el => {
|
|
3654
|
+
setBackButtonWidthAccessor(() => $c387d7f1d9fb66c0$export$ebdc3711f7e02ccd(el));
|
|
3655
|
+
$52FdA$solidjs.onCleanup(() => setBackButtonWidthAccessor());
|
|
3656
|
+
}
|
|
3657
|
+
}), false, true);
|
|
3658
|
+
$52FdA$solidjsweb.insert(_el$, isNewModal ? $52FdA$solidjsweb.createComponent((0, $083b2336093176cf$export$3b621d86b1566b2), {}) : $52FdA$solidjsweb.createComponent(BackIcon_, {}));
|
|
3659
|
+
$52FdA$solidjsweb.runHydrationEvents();
|
|
3660
|
+
return _el$;
|
|
3661
|
+
}
|
|
3662
|
+
});
|
|
3663
|
+
const ClearButton = () => (() => {
|
|
3664
|
+
var _el$2 = $52FdA$solidjsweb.getNextElement($29e5dbeb69da7a36$var$_tmpl$2);
|
|
3665
|
+
$52FdA$solidjsweb.spread(_el$2, $52FdA$solidjsweb.mergeProps({
|
|
3666
|
+
get classList() {
|
|
3667
|
+
return {
|
|
3668
|
+
empty: searchFieldEmpty()
|
|
3669
|
+
};
|
|
3670
|
+
},
|
|
3671
|
+
get style() {
|
|
3672
|
+
return isNewModal || !searchFieldEmpty() ? "" : "display: none";
|
|
3673
|
+
},
|
|
3674
|
+
get onClick() {
|
|
3675
|
+
return $52FdA$depictaiutilishared.catchify(() => {
|
|
3676
|
+
if (isNewModal && searchFieldEmpty()) return;
|
|
3677
|
+
setSearchFieldValue("");
|
|
3678
|
+
clear_filters_(true);
|
|
3679
|
+
if (!disabled_) input_element.focus();
|
|
3680
|
+
});
|
|
3681
|
+
}
|
|
3682
|
+
}, () => searchFieldEmpty() ? {
|
|
3683
|
+
"aria-hidden": "true"
|
|
3684
|
+
} : {
|
|
3685
|
+
title: i18n_.clear_filters_query_sorting_after_submit_()
|
|
3686
|
+
}), false, true);
|
|
3687
|
+
$52FdA$solidjsweb.insert(_el$2, isNewModal ? $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
3688
|
+
get when() {
|
|
3689
|
+
return !searchFieldEmpty();
|
|
3690
|
+
},
|
|
3691
|
+
get fallback() {
|
|
3692
|
+
return $52FdA$solidjsweb.createComponent((0, $5b88b077e48a4451$export$82eafebb825fc23f), {});
|
|
3693
|
+
},
|
|
3694
|
+
get children() {
|
|
3695
|
+
return $52FdA$solidjsweb.createComponent(BackIcon_, {});
|
|
3696
|
+
}
|
|
3697
|
+
}) : $52FdA$solidjsweb.createComponent((0, $083b2336093176cf$export$3b621d86b1566b2), {}));
|
|
3698
|
+
$52FdA$solidjsweb.runHydrationEvents();
|
|
3699
|
+
return _el$2;
|
|
3700
|
+
})();
|
|
3635
3701
|
return (() => {
|
|
3636
|
-
var _el$ = $52FdA$solidjsweb.getNextElement($29e5dbeb69da7a36$var$_tmpl$
|
|
3637
|
-
_el$
|
|
3702
|
+
var _el$3 = $52FdA$solidjsweb.getNextElement($29e5dbeb69da7a36$var$_tmpl$5),
|
|
3703
|
+
_el$12 = _el$3.firstChild,
|
|
3704
|
+
[_el$13, _co$3] = $52FdA$solidjsweb.getNextMarker(_el$12.nextSibling),
|
|
3705
|
+
_el$14 = _el$13.nextSibling,
|
|
3706
|
+
[_el$15, _co$4] = $52FdA$solidjsweb.getNextMarker(_el$14.nextSibling),
|
|
3707
|
+
_el$5 = _el$15.nextSibling,
|
|
3708
|
+
_el$7 = _el$5.firstChild,
|
|
3638
3709
|
[_el$8, _co$] = $52FdA$solidjsweb.getNextMarker(_el$7.nextSibling),
|
|
3639
|
-
_el$
|
|
3640
|
-
_el$
|
|
3641
|
-
_el$
|
|
3642
|
-
_el$
|
|
3643
|
-
|
|
3644
|
-
|
|
3710
|
+
_el$6 = _el$8.nextSibling,
|
|
3711
|
+
_el$9 = _el$6.nextSibling,
|
|
3712
|
+
[_el$10, _co$2] = $52FdA$solidjsweb.getNextMarker(_el$9.nextSibling),
|
|
3713
|
+
_el$16 = _el$5.nextSibling,
|
|
3714
|
+
[_el$17, _co$5] = $52FdA$solidjsweb.getNextMarker(_el$16.nextSibling),
|
|
3715
|
+
_el$18 = _el$17.nextSibling,
|
|
3716
|
+
[_el$19, _co$6] = $52FdA$solidjsweb.getNextMarker(_el$18.nextSibling);
|
|
3717
|
+
_el$3.classList.toggle("in-modal", !!!!on_back_);
|
|
3718
|
+
$52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
3719
|
+
get when() {
|
|
3720
|
+
return getBackButtonWidth() !== undefined && on_back_;
|
|
3721
|
+
},
|
|
3645
3722
|
get children() {
|
|
3646
|
-
var _el$
|
|
3647
|
-
$52FdA$solidjsweb.
|
|
3648
|
-
|
|
3649
|
-
$52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setAttribute(_el$2, "aria-label", i18n_.back_()));
|
|
3650
|
-
$52FdA$solidjsweb.runHydrationEvents();
|
|
3651
|
-
return _el$2;
|
|
3723
|
+
var _el$4 = $52FdA$solidjsweb.getNextElement($29e5dbeb69da7a36$var$_tmpl$3);
|
|
3724
|
+
$52FdA$solidjsweb.effect(() => (getBackButtonWidth(), _el$4.style.setProperty("width", getBackButtonWidth() + "px")));
|
|
3725
|
+
return _el$4;
|
|
3652
3726
|
}
|
|
3653
|
-
}), _el$
|
|
3727
|
+
}), _el$13, _co$3);
|
|
3728
|
+
$52FdA$solidjsweb.insert(_el$3, !isNewModal && $52FdA$solidjsweb.createComponent(BackButton, {}), _el$15, _co$4);
|
|
3654
3729
|
$52FdA$solidjsweb.use(el => {
|
|
3655
3730
|
field_div = el;
|
|
3656
3731
|
field_element_ref_ === null || field_element_ref_ === void 0 || field_element_ref_(el);
|
|
3657
|
-
}, _el$
|
|
3658
|
-
$52FdA$solidjsweb.addEventListener(_el$
|
|
3732
|
+
}, _el$5);
|
|
3733
|
+
$52FdA$solidjsweb.addEventListener(_el$5, "click", $52FdA$depictaiutilishared.catchify(_ref2 => {
|
|
3659
3734
|
let {
|
|
3660
3735
|
target: target,
|
|
3661
3736
|
currentTarget: currentTarget,
|
|
@@ -3680,7 +3755,8 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
3680
3755
|
}
|
|
3681
3756
|
}
|
|
3682
3757
|
}), true);
|
|
3683
|
-
_el$
|
|
3758
|
+
$52FdA$solidjsweb.insert(_el$5, isNewModal && $52FdA$solidjsweb.createComponent(ClearButton, {}), _el$8, _co$);
|
|
3759
|
+
_el$6.$$pointerdown = _ref3 => {
|
|
3684
3760
|
let {
|
|
3685
3761
|
pointerType: pointerType
|
|
3686
3762
|
} = _ref3;
|
|
@@ -3700,7 +3776,7 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
3700
3776
|
$52FdA$solidjs.runWithOwner(owner_of_field_element, () => $52FdA$solidjs.onCleanup(() => window.removeEventListener("pointerup", handler)));
|
|
3701
3777
|
}
|
|
3702
3778
|
};
|
|
3703
|
-
$52FdA$solidjsweb.addEventListener(_el$
|
|
3779
|
+
$52FdA$solidjsweb.addEventListener(_el$6, "select", $52FdA$depictaiutilishared.catchify(() => {
|
|
3704
3780
|
if (disabled_)
|
|
3705
3781
|
// just in case. The field not actually being disabled when being disabled_ is so that you can focus it and open the modal. We don't want any of the other input-field-interaction features to work
|
|
3706
3782
|
return;
|
|
@@ -3712,14 +3788,14 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
3712
3788
|
once: true
|
|
3713
3789
|
});
|
|
3714
3790
|
}));
|
|
3715
|
-
$52FdA$solidjsweb.addEventListener(_el$
|
|
3791
|
+
$52FdA$solidjsweb.addEventListener(_el$6, "input", $52FdA$depictaiutilishared.catchify(() => {
|
|
3716
3792
|
const {
|
|
3717
3793
|
value: value
|
|
3718
3794
|
} = input_element;
|
|
3719
3795
|
if (!disabled_ && !value.length) clear_filters_(false); // if the user clears the whole field, reset filters on next submit
|
|
3720
|
-
|
|
3796
|
+
setSearchFieldValue(value);
|
|
3721
3797
|
}), true);
|
|
3722
|
-
$52FdA$solidjsweb.addEventListener(_el$
|
|
3798
|
+
$52FdA$solidjsweb.addEventListener(_el$6, "keydown", $52FdA$depictaiutilishared.catchify(e => {
|
|
3723
3799
|
if (disabled_) {
|
|
3724
3800
|
if (e.key !== "Tab" && e.key !== "Shift")
|
|
3725
3801
|
// 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
|
|
@@ -3733,45 +3809,36 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
3733
3809
|
input_element = el;
|
|
3734
3810
|
input_field_ref_ === null || input_field_ref_ === void 0 || input_field_ref_(el);
|
|
3735
3811
|
});
|
|
3736
|
-
typeof _ref$ === "function" && $52FdA$solidjsweb.use(_ref$, _el$
|
|
3737
|
-
_el$
|
|
3738
|
-
$52FdA$solidjsweb.
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3812
|
+
typeof _ref$ === "function" && $52FdA$solidjsweb.use(_ref$, _el$6);
|
|
3813
|
+
_el$6.classList.toggle("has-adjacent-back-button", !!!!on_back_);
|
|
3814
|
+
$52FdA$solidjsweb.insert(_el$5, !isNewModal && $52FdA$solidjsweb.createComponent(ClearButton, {}), _el$10, _co$2);
|
|
3815
|
+
$52FdA$solidjsweb.insert(_el$3, isNewModal && $52FdA$solidjsweb.createComponent(BackButton, {}), _el$17, _co$5);
|
|
3816
|
+
$52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
3817
|
+
when: !isNewModal,
|
|
3818
|
+
get children() {
|
|
3819
|
+
var _el$11 = $52FdA$solidjsweb.getNextElement($29e5dbeb69da7a36$var$_tmpl$4);
|
|
3820
|
+
$52FdA$solidjsweb.addEventListener(_el$11, "click", $52FdA$depictaiutilishared.catchify(() => submit_query_()), true);
|
|
3821
|
+
var _ref$2 = submit_button_ref_;
|
|
3822
|
+
typeof _ref$2 === "function" ? $52FdA$solidjsweb.use(_ref$2, _el$11) : submit_button_ref_ = _el$11;
|
|
3823
|
+
$52FdA$solidjsweb.insert(_el$11, $52FdA$solidjsweb.createComponent((0, $5b88b077e48a4451$export$82eafebb825fc23f), {}));
|
|
3824
|
+
$52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setAttribute(_el$11, "aria-label", i18n_.search_submit_button_aria_label_()));
|
|
3825
|
+
$52FdA$solidjsweb.runHydrationEvents();
|
|
3826
|
+
return _el$11;
|
|
3749
3827
|
}
|
|
3750
|
-
},
|
|
3751
|
-
tabindex: "-1"
|
|
3752
|
-
} : {
|
|
3753
|
-
"aria-label": i18n_.search_submit_button_aria_label_()
|
|
3754
|
-
}), false, true);
|
|
3755
|
-
$52FdA$solidjsweb.insert(_el$6, $52FdA$solidjsweb.createComponent((0, $5b88b077e48a4451$export$82eafebb825fc23f), {}));
|
|
3828
|
+
}), _el$19, _co$6);
|
|
3756
3829
|
$52FdA$solidjsweb.effect(_p$ => {
|
|
3757
3830
|
var _v$ = i18n_.search_field_field_aria_label_(),
|
|
3758
|
-
_v$2 = i18n_.placeholder_text_()
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
_v$ !== _p$.e && $52FdA$solidjsweb.setAttribute(_el$4, "aria-label", _p$.e = _v$);
|
|
3762
|
-
_v$2 !== _p$.t && $52FdA$solidjsweb.setAttribute(_el$4, "placeholder", _p$.t = _v$2);
|
|
3763
|
-
_v$3 !== _p$.a && $52FdA$solidjsweb.setAttribute(_el$5, "title", _p$.a = _v$3);
|
|
3764
|
-
_p$.o = $52FdA$solidjsweb.style(_el$5, _v$4, _p$.o);
|
|
3831
|
+
_v$2 = i18n_.placeholder_text_();
|
|
3832
|
+
_v$ !== _p$.e && $52FdA$solidjsweb.setAttribute(_el$6, "aria-label", _p$.e = _v$);
|
|
3833
|
+
_v$2 !== _p$.t && $52FdA$solidjsweb.setAttribute(_el$6, "placeholder", _p$.t = _v$2);
|
|
3765
3834
|
return _p$;
|
|
3766
3835
|
}, {
|
|
3767
3836
|
e: undefined,
|
|
3768
|
-
t: undefined
|
|
3769
|
-
a: undefined,
|
|
3770
|
-
o: undefined
|
|
3837
|
+
t: undefined
|
|
3771
3838
|
});
|
|
3772
|
-
$52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setProperty(_el$
|
|
3839
|
+
$52FdA$solidjsweb.effect(() => $52FdA$solidjsweb.setProperty(_el$6, "value", searchFieldValue()));
|
|
3773
3840
|
$52FdA$solidjsweb.runHydrationEvents();
|
|
3774
|
-
return _el
|
|
3841
|
+
return _el$3;
|
|
3775
3842
|
})();
|
|
3776
3843
|
}
|
|
3777
3844
|
$52FdA$solidjsweb.delegateEvents(["click", "keydown", "input", "pointerdown"]);
|
|
@@ -3954,7 +4021,7 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
3954
4021
|
};
|
|
3955
4022
|
});
|
|
3956
4023
|
const search_field = $29e5dbeb69da7a36$export$b94867ecbd698f21({
|
|
3957
|
-
BackIcon_: (
|
|
4024
|
+
BackIcon_: (0, $820f2920cc576f7e$export$8d8893ffd8aca39a),
|
|
3958
4025
|
input_field_ref_: element => set_input_field(element),
|
|
3959
4026
|
override_on_enter_: e => {
|
|
3960
4027
|
var _on_enter_in_search_f;
|
|
@@ -3973,7 +4040,6 @@ function $9035b24c2dbd3f36$var$RawClassicSearchModal(_ref) {
|
|
|
3973
4040
|
input_el.setSelectionRange(start, end);
|
|
3974
4041
|
}
|
|
3975
4042
|
});
|
|
3976
|
-
search_field.classList.add("in-modal");
|
|
3977
4043
|
const modal_element = (() => {
|
|
3978
4044
|
var _el$4 = $52FdA$solidjsweb.getNextElement($9035b24c2dbd3f36$var$_tmpl$3),
|
|
3979
4045
|
_el$5 = _el$4.firstChild,
|
|
@@ -5242,7 +5308,7 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
5242
5308
|
return _el$7;
|
|
5243
5309
|
})();
|
|
5244
5310
|
const search_field = $29e5dbeb69da7a36$export$b94867ecbd698f21({
|
|
5245
|
-
BackIcon_: (
|
|
5311
|
+
BackIcon_: (0, $50b50df3efaa8776$export$11e9f390c90a537f),
|
|
5246
5312
|
input_field_ref_: element => set_input_field(element),
|
|
5247
5313
|
override_on_enter_: e => {
|
|
5248
5314
|
var _on_enter_in_search_f;
|
|
@@ -5261,7 +5327,6 @@ function $43600b30502feeda$var$RawSearchModalV2(_ref) {
|
|
|
5261
5327
|
input_el.setSelectionRange(start, end);
|
|
5262
5328
|
}
|
|
5263
5329
|
});
|
|
5264
|
-
search_field.classList.add("in-modal");
|
|
5265
5330
|
if (setSearchFieldOuterWidth_) {
|
|
5266
5331
|
const resizeObserver = new ResizeObserver($52FdA$depictaiutilishared.catchify(records => setSearchFieldOuterWidth_(records.at(-1).contentRect.width)));
|
|
5267
5332
|
resizeObserver.observe(search_field);
|
|
@@ -13594,7 +13659,7 @@ function $a60bc7692ce52705$export$44f738469d5570cf(_ref) {
|
|
|
13594
13659
|
const closeDuration_ = pxOffCenter > 100 ? 150 : 100;
|
|
13595
13660
|
setPollAlignment_(true);
|
|
13596
13661
|
// Fade out submit button so there aren't two overlapping buttons for a split second
|
|
13597
|
-
submitButton_.animate([{
|
|
13662
|
+
submitButton_ === null || submitButton_ === void 0 || submitButton_.animate([{
|
|
13598
13663
|
opacity: 1
|
|
13599
13664
|
}, {
|
|
13600
13665
|
opacity: 0
|
|
@@ -13676,7 +13741,7 @@ function $a60bc7692ce52705$export$44f738469d5570cf(_ref) {
|
|
|
13676
13741
|
duration: closeDuration_,
|
|
13677
13742
|
fill: "forwards",
|
|
13678
13743
|
easing: "ease-out"
|
|
13679
|
-
}).finished, submitButton_.animate([{
|
|
13744
|
+
}).finished, submitButton_ === null || submitButton_ === void 0 ? void 0 : submitButton_.animate([{
|
|
13680
13745
|
opacity: 0
|
|
13681
13746
|
}, {
|
|
13682
13747
|
opacity: 1
|
package/ES10/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.
|
|
13
|
+
export const version = "4.4.0";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|