@depict-ai/ui 4.7.21 → 4.7.23
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 +122 -112
- package/ES10/index.d.ts +30 -19
- package/ES10/index.js +123 -115
- package/latest/index.cjs +120 -110
- package/latest/index.d.ts +30 -19
- package/latest/index.js +121 -113
- package/package.json +1 -1
- package/server/ES10/index.cjs +96 -86
- package/server/ES10/index.d.ts +30 -19
- package/server/ES10/index.js +97 -89
- package/server/latest/index.cjs +94 -84
- package/server/latest/index.d.ts +30 -19
- package/server/latest/index.js +95 -87
package/ES10/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var $52FdA$depictaiutilishared = require("@depict-ai/utilishared/ES10");
|
|
2
|
-
var $52FdA$solidjsweb = require("solid-js/web");
|
|
3
2
|
var $52FdA$solidjs = require("solid-js");
|
|
3
|
+
var $52FdA$solidjsweb = require("solid-js/web");
|
|
4
4
|
var $52FdA$babelruntimehelpersdefineProperty = require("@babel/runtime/helpers/defineProperty");
|
|
5
5
|
var $52FdA$depictaiutilisharedlatest = require("@depict-ai/utilishared/ES10");
|
|
6
6
|
var $52FdA$babelruntimehelpersclassPrivateFieldSet = require("@babel/runtime/helpers/classPrivateFieldSet");
|
|
@@ -18,6 +18,8 @@ function $parcel$export(e, n, v, s) {
|
|
|
18
18
|
function $parcel$interopDefault(a) {
|
|
19
19
|
return a && a.__esModule ? a.default : a;
|
|
20
20
|
}
|
|
21
|
+
$parcel$export(module.exports, "useVisibilityState", () => $e7a7d2fe8a8217d8$export$54299a3c81f5425);
|
|
22
|
+
$parcel$export(module.exports, "useSlidableInformation", () => $ad8ec7729fffeb9c$export$eaa625fb39439e37);
|
|
21
23
|
$parcel$export(module.exports, "useProductCardIsVisible", () => $a52942afacbced93$export$80bb7300ce6a8be3);
|
|
22
24
|
$parcel$export(module.exports, "CurrentlyIntersectingContext", () => $a52942afacbced93$export$f223d69ed12f5fb7);
|
|
23
25
|
$parcel$export(module.exports, "useExpandingContainerReactive", () => $d6d51b09cb2116a6$export$5bad61ecde080b1f);
|
|
@@ -107,7 +109,116 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
107
109
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
108
110
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
109
111
|
/*! Depict.ai search and product listing SDK */
|
|
110
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.
|
|
112
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.23";
|
|
113
|
+
function $e7a7d2fe8a8217d8$export$54299a3c81f5425() {
|
|
114
|
+
const d = document;
|
|
115
|
+
const [isVisible, setIsVisible] = $52FdA$solidjs.createSignal(d.visibilityState !== "hidden");
|
|
116
|
+
const handleVisibilityChange = () => setIsVisible(d.visibilityState !== "hidden");
|
|
117
|
+
d.addEventListener("visibilitychange", handleVisibilityChange);
|
|
118
|
+
$52FdA$solidjs.onCleanup(() => d.removeEventListener("visibilitychange", handleVisibilityChange));
|
|
119
|
+
return isVisible;
|
|
120
|
+
}
|
|
121
|
+
var $9d19451330d04c3c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
|
|
122
|
+
function $9d19451330d04c3c$export$8be2714ec7f169ee() {
|
|
123
|
+
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
124
|
+
return (() => {
|
|
125
|
+
var _el$ = $52FdA$solidjsweb.getNextElement($9d19451330d04c3c$var$_tmpl$);
|
|
126
|
+
$52FdA$solidjsweb.effect(_p$ => {
|
|
127
|
+
var _props$width_, _props$height_;
|
|
128
|
+
var _v$ = (_props$width_ = props.width_) !== null && _props$width_ !== void 0 ? _props$width_ : 14,
|
|
129
|
+
_v$2 = (_props$height_ = props.height_) !== null && _props$height_ !== void 0 ? _props$height_ : 26;
|
|
130
|
+
_v$ !== _p$.e && $52FdA$solidjsweb.setAttribute(_el$, "width", _p$.e = _v$);
|
|
131
|
+
_v$2 !== _p$.t && $52FdA$solidjsweb.setAttribute(_el$, "height", _p$.t = _v$2);
|
|
132
|
+
return _p$;
|
|
133
|
+
}, {
|
|
134
|
+
e: undefined,
|
|
135
|
+
t: undefined
|
|
136
|
+
});
|
|
137
|
+
return _el$;
|
|
138
|
+
})();
|
|
139
|
+
}
|
|
140
|
+
var $ad8ec7729fffeb9c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`),
|
|
141
|
+
$ad8ec7729fffeb9c$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict-slider depict"><button aria-label="Scroll left"class="left d-navbutton"type=button></button><button aria-label="Scroll right"class="right d-navbutton"type=button></button><div class=sliding>`);
|
|
142
|
+
const $ad8ec7729fffeb9c$var$SlidableContext = /*@__PURE__*/$52FdA$solidjs.createContext();
|
|
143
|
+
function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
144
|
+
const {
|
|
145
|
+
slider_ref_: slider_ref_,
|
|
146
|
+
faded_opacity_ = 0.7,
|
|
147
|
+
mutation_plugins_ = [],
|
|
148
|
+
disable_fading_: disable_fading_,
|
|
149
|
+
snapAlign_: snapAlign_,
|
|
150
|
+
fadingThreshold_ = 0.96
|
|
151
|
+
} = props;
|
|
152
|
+
const [hasHydrated, setHasHydrated] = $52FdA$solidjs.createSignal(false);
|
|
153
|
+
$52FdA$solidjs.createEffect(() => setHasHydrated(true));
|
|
154
|
+
const MakeButton = () => (() => {
|
|
155
|
+
var _el$ = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$);
|
|
156
|
+
$52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent((0, $9d19451330d04c3c$export$8be2714ec7f169ee), {
|
|
157
|
+
get height_() {
|
|
158
|
+
return props.arrow_height_;
|
|
159
|
+
},
|
|
160
|
+
get width_() {
|
|
161
|
+
return props.arrow_width_;
|
|
162
|
+
}
|
|
163
|
+
}));
|
|
164
|
+
return _el$;
|
|
165
|
+
})();
|
|
166
|
+
// To support SSR it would be very hard to make Amazing_Slider compatible with solid's SSR because it would have to be rewritten in a more JSX way
|
|
167
|
+
// However, all it would do on the server (when used by SlidableItems) is creating the following 5 div elements
|
|
168
|
+
// Therefore, we just bail on the server (and first render on the client which is the hydration) and return a static version of the slider
|
|
169
|
+
// Once we have hydrated, we construct and insert the actual slider
|
|
170
|
+
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
171
|
+
get when() {
|
|
172
|
+
return hasHydrated() && !(0, $52FdA$solidjsweb.isServer);
|
|
173
|
+
},
|
|
174
|
+
get fallback() {
|
|
175
|
+
return (() => {
|
|
176
|
+
var _el$2 = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$2),
|
|
177
|
+
_el$3 = _el$2.firstChild,
|
|
178
|
+
_el$4 = _el$3.nextSibling,
|
|
179
|
+
_el$5 = _el$4.nextSibling;
|
|
180
|
+
$52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent(MakeButton, {}));
|
|
181
|
+
$52FdA$solidjsweb.insert(_el$4, $52FdA$solidjsweb.createComponent(MakeButton, {}));
|
|
182
|
+
$52FdA$solidjsweb.insert(_el$5, () => props.children);
|
|
183
|
+
return _el$2;
|
|
184
|
+
})();
|
|
185
|
+
},
|
|
186
|
+
get children() {
|
|
187
|
+
return (() => {
|
|
188
|
+
const [intersectionEntries_, setIntersectionEntries] = $52FdA$solidjs.createSignal([]);
|
|
189
|
+
const fading_plugin = disable_fading_ ? undefined : $52FdA$depictaiutilishared.slider_fading_factory({
|
|
190
|
+
threshold_: fadingThreshold_,
|
|
191
|
+
faded_opacity_: faded_opacity_
|
|
192
|
+
});
|
|
193
|
+
const slider = new (0, $52FdA$depictaiutilishared.Amazing_Slider)({
|
|
194
|
+
button_contents: {
|
|
195
|
+
left: [MakeButton()],
|
|
196
|
+
right: [MakeButton()]
|
|
197
|
+
},
|
|
198
|
+
constructor_plugins: [$52FdA$depictaiutilishared.slider_snap_css(0, {
|
|
199
|
+
align: snapAlign_
|
|
200
|
+
}).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
|
|
201
|
+
mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
|
|
202
|
+
});
|
|
203
|
+
$52FdA$solidjsweb.insert(slider.insert_here, () => $52FdA$solidjsweb.createComponent($ad8ec7729fffeb9c$var$SlidableContext.Provider, {
|
|
204
|
+
value: {
|
|
205
|
+
slider_: slider,
|
|
206
|
+
intersectionEntries_: intersectionEntries_
|
|
207
|
+
},
|
|
208
|
+
get children() {
|
|
209
|
+
return props.children;
|
|
210
|
+
}
|
|
211
|
+
}));
|
|
212
|
+
$52FdA$solidjs.onCleanup(() => slider.observer.disconnect());
|
|
213
|
+
slider_ref_ === null || slider_ref_ === void 0 || slider_ref_(slider);
|
|
214
|
+
return slider.container;
|
|
215
|
+
})();
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
function $ad8ec7729fffeb9c$export$eaa625fb39439e37() {
|
|
220
|
+
return $52FdA$solidjs.useContext($ad8ec7729fffeb9c$var$SlidableContext);
|
|
221
|
+
}
|
|
111
222
|
|
|
112
223
|
/**
|
|
113
224
|
* Gets product_id (the thing we key the rendering on) from a display
|
|
@@ -827,107 +938,6 @@ function $6c2c739b113a8ddf$export$445d8d3f5f706a40(props, container_element) {
|
|
|
827
938
|
return [container_element, $52FdA$solidjsweb.memo(view_more_button_container), $52FdA$solidjsweb.memo(view_less_button_container), style_element];
|
|
828
939
|
}
|
|
829
940
|
$52FdA$solidjsweb.delegateEvents(["click"]);
|
|
830
|
-
var $9d19451330d04c3c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
|
|
831
|
-
function $9d19451330d04c3c$export$8be2714ec7f169ee() {
|
|
832
|
-
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
833
|
-
return (() => {
|
|
834
|
-
var _el$ = $52FdA$solidjsweb.getNextElement($9d19451330d04c3c$var$_tmpl$);
|
|
835
|
-
$52FdA$solidjsweb.effect(_p$ => {
|
|
836
|
-
var _props$width_, _props$height_;
|
|
837
|
-
var _v$ = (_props$width_ = props.width_) !== null && _props$width_ !== void 0 ? _props$width_ : 14,
|
|
838
|
-
_v$2 = (_props$height_ = props.height_) !== null && _props$height_ !== void 0 ? _props$height_ : 26;
|
|
839
|
-
_v$ !== _p$.e && $52FdA$solidjsweb.setAttribute(_el$, "width", _p$.e = _v$);
|
|
840
|
-
_v$2 !== _p$.t && $52FdA$solidjsweb.setAttribute(_el$, "height", _p$.t = _v$2);
|
|
841
|
-
return _p$;
|
|
842
|
-
}, {
|
|
843
|
-
e: undefined,
|
|
844
|
-
t: undefined
|
|
845
|
-
});
|
|
846
|
-
return _el$;
|
|
847
|
-
})();
|
|
848
|
-
}
|
|
849
|
-
var $ad8ec7729fffeb9c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div>`),
|
|
850
|
-
$ad8ec7729fffeb9c$var$_tmpl$2 = /*#__PURE__*/$52FdA$solidjsweb.template(`<div class="depict-slider depict"><button aria-label="Scroll left"class="left d-navbutton"type=button></button><button aria-label="Scroll right"class="right d-navbutton"type=button></button><div class=sliding>`);
|
|
851
|
-
const $ad8ec7729fffeb9c$var$SlidableContext = /*@__PURE__*/$52FdA$solidjs.createContext();
|
|
852
|
-
function $ad8ec7729fffeb9c$export$6649caad96ef8870(props) {
|
|
853
|
-
const {
|
|
854
|
-
slider_ref_: slider_ref_,
|
|
855
|
-
faded_opacity_ = 0.7,
|
|
856
|
-
mutation_plugins_ = [],
|
|
857
|
-
disable_fading_: disable_fading_,
|
|
858
|
-
snapAlign_: snapAlign_,
|
|
859
|
-
fadingThreshold_ = 0.96
|
|
860
|
-
} = props;
|
|
861
|
-
const [hasHydrated, setHasHydrated] = $52FdA$solidjs.createSignal(false);
|
|
862
|
-
$52FdA$solidjs.createEffect(() => setHasHydrated(true));
|
|
863
|
-
const MakeButton = () => (() => {
|
|
864
|
-
var _el$ = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$);
|
|
865
|
-
$52FdA$solidjsweb.insert(_el$, $52FdA$solidjsweb.createComponent((0, $9d19451330d04c3c$export$8be2714ec7f169ee), {
|
|
866
|
-
get height_() {
|
|
867
|
-
return props.arrow_height_;
|
|
868
|
-
},
|
|
869
|
-
get width_() {
|
|
870
|
-
return props.arrow_width_;
|
|
871
|
-
}
|
|
872
|
-
}));
|
|
873
|
-
return _el$;
|
|
874
|
-
})();
|
|
875
|
-
// To support SSR it would be very hard to make Amazing_Slider compatible with solid's SSR because it would have to be rewritten in a more JSX way
|
|
876
|
-
// However, all it would do on the server (when used by SlidableItems) is creating the following 5 div elements
|
|
877
|
-
// Therefore, we just bail on the server (and first render on the client which is the hydration) and return a static version of the slider
|
|
878
|
-
// Once we have hydrated, we construct and insert the actual slider
|
|
879
|
-
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
|
880
|
-
get when() {
|
|
881
|
-
return hasHydrated() && !(0, $52FdA$solidjsweb.isServer);
|
|
882
|
-
},
|
|
883
|
-
get fallback() {
|
|
884
|
-
return (() => {
|
|
885
|
-
var _el$2 = $52FdA$solidjsweb.getNextElement($ad8ec7729fffeb9c$var$_tmpl$2),
|
|
886
|
-
_el$3 = _el$2.firstChild,
|
|
887
|
-
_el$4 = _el$3.nextSibling,
|
|
888
|
-
_el$5 = _el$4.nextSibling;
|
|
889
|
-
$52FdA$solidjsweb.insert(_el$3, $52FdA$solidjsweb.createComponent(MakeButton, {}));
|
|
890
|
-
$52FdA$solidjsweb.insert(_el$4, $52FdA$solidjsweb.createComponent(MakeButton, {}));
|
|
891
|
-
$52FdA$solidjsweb.insert(_el$5, () => props.children);
|
|
892
|
-
return _el$2;
|
|
893
|
-
})();
|
|
894
|
-
},
|
|
895
|
-
get children() {
|
|
896
|
-
return (() => {
|
|
897
|
-
const [intersectionEntries_, setIntersectionEntries] = $52FdA$solidjs.createSignal([]);
|
|
898
|
-
const fading_plugin = disable_fading_ ? undefined : $52FdA$depictaiutilishared.slider_fading_factory({
|
|
899
|
-
threshold_: fadingThreshold_,
|
|
900
|
-
faded_opacity_: faded_opacity_
|
|
901
|
-
});
|
|
902
|
-
const slider = new (0, $52FdA$depictaiutilishared.Amazing_Slider)({
|
|
903
|
-
button_contents: {
|
|
904
|
-
left: [MakeButton()],
|
|
905
|
-
right: [MakeButton()]
|
|
906
|
-
},
|
|
907
|
-
constructor_plugins: [$52FdA$depictaiutilishared.slider_snap_css(0, {
|
|
908
|
-
align: snapAlign_
|
|
909
|
-
}).constructor_plugin, ...(fading_plugin ? [fading_plugin.constructor_plugin] : [])],
|
|
910
|
-
mutation_plugins: [...(fading_plugin ? [fading_plugin.mutation_plugin_] : []), ...mutation_plugins_, entries => setIntersectionEntries(entries)]
|
|
911
|
-
});
|
|
912
|
-
$52FdA$solidjsweb.insert(slider.insert_here, () => $52FdA$solidjsweb.createComponent($ad8ec7729fffeb9c$var$SlidableContext.Provider, {
|
|
913
|
-
value: {
|
|
914
|
-
slider_: slider,
|
|
915
|
-
intersectionEntries_: intersectionEntries_
|
|
916
|
-
},
|
|
917
|
-
get children() {
|
|
918
|
-
return props.children;
|
|
919
|
-
}
|
|
920
|
-
}));
|
|
921
|
-
$52FdA$solidjs.onCleanup(() => slider.observer.disconnect());
|
|
922
|
-
slider_ref_ === null || slider_ref_ === void 0 || slider_ref_(slider);
|
|
923
|
-
return slider.container;
|
|
924
|
-
})();
|
|
925
|
-
}
|
|
926
|
-
});
|
|
927
|
-
}
|
|
928
|
-
function $ad8ec7729fffeb9c$export$eaa625fb39439e37() {
|
|
929
|
-
return $52FdA$solidjs.useContext($ad8ec7729fffeb9c$var$SlidableContext);
|
|
930
|
-
}
|
|
931
941
|
var $236a257ee52e5414$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<h2 class=recs-title>`);
|
|
932
942
|
function $236a257ee52e5414$export$d41d19e89346fa2(_ref) {
|
|
933
943
|
let {
|
|
@@ -1737,17 +1747,17 @@ function $d66c35b5a6d6d926$export$b73ed90f0ee50dc3(_ref) {
|
|
|
1737
1747
|
return _el$;
|
|
1738
1748
|
})();
|
|
1739
1749
|
}
|
|
1740
|
-
var $
|
|
1741
|
-
let $
|
|
1742
|
-
async function $
|
|
1743
|
-
if ($
|
|
1744
|
-
return $
|
|
1750
|
+
var $b5e1e9638abb90ff$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<div style=position:absolute;width:10px;height:10px;overflow:hidden>`);
|
|
1751
|
+
let $b5e1e9638abb90ff$var$cachedValue;
|
|
1752
|
+
async function $b5e1e9638abb90ff$export$7b9a0e99f0aeb2f3() {
|
|
1753
|
+
if ($b5e1e9638abb90ff$var$cachedValue != undefined) return $b5e1e9638abb90ff$var$cachedValue;
|
|
1754
|
+
return $b5e1e9638abb90ff$var$cachedValue = $b5e1e9638abb90ff$var$checkIfIsAffectedByChromeBug326498383();
|
|
1745
1755
|
}
|
|
1746
|
-
async function $
|
|
1756
|
+
async function $b5e1e9638abb90ff$var$checkIfIsAffectedByChromeBug326498383() {
|
|
1747
1757
|
let isAffected = true;
|
|
1748
1758
|
let resolveTimeoutPromise;
|
|
1749
1759
|
try {
|
|
1750
|
-
const div = $52FdA$solidjsweb.getNextElement($
|
|
1760
|
+
const div = $52FdA$solidjsweb.getNextElement($b5e1e9638abb90ff$var$_tmpl$);
|
|
1751
1761
|
const waitAFrame = () => new Promise(r => requestAnimationFrame(() => requestAnimationFrame(r)));
|
|
1752
1762
|
const timeoutPromise = new Promise(r => {
|
|
1753
1763
|
resolveTimeoutPromise = r;
|
|
@@ -1760,7 +1770,7 @@ async function $dfa95866b27a2a53$var$checkIfIsAffectedByChromeBug326498383() {
|
|
|
1760
1770
|
style: style
|
|
1761
1771
|
} = div;
|
|
1762
1772
|
// Just to get a long string
|
|
1763
|
-
div.append($
|
|
1773
|
+
div.append($b5e1e9638abb90ff$export$7b9a0e99f0aeb2f3 + "");
|
|
1764
1774
|
document.documentElement.append(div);
|
|
1765
1775
|
style.overflow = "auto";
|
|
1766
1776
|
await waitAFrame();
|
|
@@ -1808,7 +1818,7 @@ function $e0b3f1f332b6863b$export$ebf0b1d4f90c09ae(_ref) {
|
|
|
1808
1818
|
const textFadeInAnimationRunning = $52FdA$solidjs.createSignal(false);
|
|
1809
1819
|
const [getSecondPartAnimationRunning] = textFadeInAnimationRunning;
|
|
1810
1820
|
const [userWantsExpanded, setUserWantsExpanded] = userWantsExpandedSignal_;
|
|
1811
|
-
$
|
|
1821
|
+
$b5e1e9638abb90ff$export$7b9a0e99f0aeb2f3().then(is => isAffectedByChromeBug = is);
|
|
1812
1822
|
return $52FdA$solidjsweb.createComponent((0, $d067f3a30f047b41$export$e68cff63f76bd15b), {
|
|
1813
1823
|
get children() {
|
|
1814
1824
|
return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
|
package/ES10/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Display, useExpandingContainer, ColsAtSize, report,
|
|
1
|
+
import { Accessor, JSX, Setter, Signal } from "solid-js";
|
|
2
|
+
import { Amazing_Slider, Display, useExpandingContainer, ColsAtSize, report, Elem, ModernDisplay, Node_Array } from "@depict-ai/utilishared/ES10";
|
|
3
3
|
import { SearchFilter, SearchRequestV3, SortModel } from "@depict-ai/types/api/SearchRequestV3";
|
|
4
4
|
import { ContentLink, SearchResponse, SearchFilter as _SearchFilter1 } from "@depict-ai/types/api/SearchResponse";
|
|
5
5
|
import { Ancestors, ListingSuggestion, SearchSuggestionsResponseV3 } from "@depict-ai/types/api/SearchSuggestionsResponseV3";
|
|
@@ -11,7 +11,34 @@ 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.7.
|
|
14
|
+
export const version = "4.7.23";
|
|
15
|
+
/**
|
|
16
|
+
* Returns if the current tab is visible
|
|
17
|
+
*/
|
|
18
|
+
export function useVisibilityState(): import("solid-js").Accessor<boolean>;
|
|
19
|
+
/** @jsxImportSource solid-js */
|
|
20
|
+
export function GenericSliderArrowButton(props?: {
|
|
21
|
+
width_?: number;
|
|
22
|
+
height_?: number;
|
|
23
|
+
}): SVGElement;
|
|
24
|
+
export function SlidableItems(props: {
|
|
25
|
+
children?: JSX.Element;
|
|
26
|
+
slider_ref_?: (slider: Amazing_Slider) => any;
|
|
27
|
+
faded_opacity_?: number;
|
|
28
|
+
disable_fading_?: boolean;
|
|
29
|
+
snapAlign_?: "start" | "end" | "center";
|
|
30
|
+
fadingThreshold_?: number;
|
|
31
|
+
mutation_plugins_?: ((this: Amazing_Slider, mutations: IntersectionObserverEntry[], intersecting_items: Record<number, IntersectionObserverEntry>) => unknown)[];
|
|
32
|
+
arrow_width_?: number;
|
|
33
|
+
arrow_height_?: number;
|
|
34
|
+
}): JSX.Element;
|
|
35
|
+
/**
|
|
36
|
+
* Use this inside the children of a <SlidableItems> component to get the slider instance and a signal that contains the latest intersection obsrever entries (note they are accessible on the slider instance in a processed format already at the time this acessor updates)
|
|
37
|
+
*/
|
|
38
|
+
export function useSlidableInformation(): {
|
|
39
|
+
slider_: Amazing_Slider;
|
|
40
|
+
intersectionEntries_: Accessor<IntersectionObserverEntry[]>;
|
|
41
|
+
} | undefined;
|
|
15
42
|
declare const LISTING_ID = "listingId";
|
|
16
43
|
declare const EXTERNAL_ID = "externalId";
|
|
17
44
|
type ScrollRestorationData = {
|
|
@@ -129,22 +156,6 @@ export function SolidLayout(props: SolidLayoutOptions): JSX.Element;
|
|
|
129
156
|
* When using insert_after_container, view more and view less buttons are not currently supported.
|
|
130
157
|
*/
|
|
131
158
|
export function SolidLayoutWithProvidedElement(props: Omit<SolidLayoutOptions, "children" | "element_attributes">, container_element: HTMLDivElement, insert_after_container?: boolean, container_class?: string): JSX.Element;
|
|
132
|
-
/** @jsxImportSource solid-js */
|
|
133
|
-
export function GenericSliderArrowButton(props?: {
|
|
134
|
-
width_?: number;
|
|
135
|
-
height_?: number;
|
|
136
|
-
}): SVGElement;
|
|
137
|
-
export function SlidableItems(props: {
|
|
138
|
-
children?: JSX.Element;
|
|
139
|
-
slider_ref_?: (slider: Amazing_Slider) => any;
|
|
140
|
-
faded_opacity_?: number;
|
|
141
|
-
disable_fading_?: boolean;
|
|
142
|
-
snapAlign_?: "start" | "end" | "center";
|
|
143
|
-
fadingThreshold_?: number;
|
|
144
|
-
mutation_plugins_?: ((this: Amazing_Slider, mutations: IntersectionObserverEntry[], intersecting_items: Record<number, IntersectionObserverEntry>) => unknown)[];
|
|
145
|
-
arrow_width_?: number;
|
|
146
|
-
arrow_height_?: number;
|
|
147
|
-
}): JSX.Element;
|
|
148
159
|
/**
|
|
149
160
|
* Provider to wrap every listing (group of products) in
|
|
150
161
|
* Used for example for deduplicating ResizeObservers for responsive images
|