@depict-ai/ui 1.4.1 → 1.4.2
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/dist/client/main.cjs +18 -16
- package/dist/client/module.js +18 -16
- package/dist/index.d.ts +1 -1
- package/dist/server/main.cjs +12 -10
- package/dist/server/module.js +12 -10
- package/package.json +1 -1
package/dist/client/main.cjs
CHANGED
|
@@ -49,7 +49,7 @@ $parcel$export(module.exports, "defaultGridSpacing", () => $a3280f0aad997933$exp
|
|
|
49
49
|
$parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$export$c3834fa86c616831);
|
|
50
50
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
51
51
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
52
|
-
/*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.4.
|
|
52
|
+
/*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.4.2";
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
@@ -2744,17 +2744,24 @@ function $5f7d55c710fd1bc2$var$unwrapping_helper(elements) {
|
|
|
2744
2744
|
|
|
2745
2745
|
const $f48d0fbb00835aaa$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<div></div>`, 2), $f48d0fbb00835aaa$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$57o7A$solidjsweb.template)(`<style type="text/css"></style>`, 2);
|
|
2746
2746
|
function $f48d0fbb00835aaa$export$d21e32dfedac04be(props) {
|
|
2747
|
+
const container_element_ = (()=>{
|
|
2748
|
+
const _el$ = (0, $57o7A$solidjsweb.getNextElement)($f48d0fbb00835aaa$var$_tmpl$);
|
|
2749
|
+
(0, $57o7A$solidjsweb.spread)(_el$, (0, $57o7A$solidjsweb.mergeProps)(()=>props.element_attributes), false, true);
|
|
2750
|
+
(0, $57o7A$solidjsweb.insert)(_el$, ()=>props.children);
|
|
2751
|
+
(0, $57o7A$solidjsweb.runHydrationEvents)();
|
|
2752
|
+
return _el$;
|
|
2753
|
+
})(); // Don't want this in the error boundary below, it should only be for the actual layouting
|
|
2747
2754
|
return (0, $57o7A$solidjsweb.createComponent)((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
|
|
2748
2755
|
get message_ () {
|
|
2749
2756
|
return "Failed calculating " + props.layout + " layout";
|
|
2750
2757
|
},
|
|
2751
2758
|
severity_: "error",
|
|
2752
2759
|
get children () {
|
|
2753
|
-
return $f48d0fbb00835aaa$var$ActualSolidLayout(props);
|
|
2760
|
+
return $f48d0fbb00835aaa$var$ActualSolidLayout(props, container_element_);
|
|
2754
2761
|
}
|
|
2755
2762
|
});
|
|
2756
2763
|
}
|
|
2757
|
-
function $f48d0fbb00835aaa$var$ActualSolidLayout(props) {
|
|
2764
|
+
function $f48d0fbb00835aaa$var$ActualSolidLayout(props, container_element) {
|
|
2758
2765
|
// Copy of Layout from utilishared but using solid-js signals instead of async iterable IPNS
|
|
2759
2766
|
const show_all_rows = (0, $57o7A$solidjs.createMemo)(()=>props.rows === "all");
|
|
2760
2767
|
const rows_or_empty_object = (0, $57o7A$solidjs.createMemo)(()=>show_all_rows() ? {} : props.rows);
|
|
@@ -2766,13 +2773,6 @@ function $f48d0fbb00835aaa$var$ActualSolidLayout(props) {
|
|
|
2766
2773
|
const [get_styling, set_styling] = (0, $57o7A$solidjs.createSignal)();
|
|
2767
2774
|
const container_class = (0, $57o7A$depictaiutilishared.make_random_classname)();
|
|
2768
2775
|
const selector_beginning = `.depict .${container_class}>`; // class so ppl can have id if needed
|
|
2769
|
-
const container_element = (()=>{
|
|
2770
|
-
const _el$ = (0, $57o7A$solidjsweb.getNextElement)($f48d0fbb00835aaa$var$_tmpl$);
|
|
2771
|
-
(0, $57o7A$solidjsweb.spread)(_el$, (0, $57o7A$solidjsweb.mergeProps)(()=>props.element_attributes), false, true);
|
|
2772
|
-
(0, $57o7A$solidjsweb.insert)(_el$, ()=>props.children);
|
|
2773
|
-
(0, $57o7A$solidjsweb.runHydrationEvents)();
|
|
2774
|
-
return _el$;
|
|
2775
|
-
})();
|
|
2776
2776
|
const [get_children_count, set_children_count] = (0, $57o7A$solidjs.createSignal)(0);
|
|
2777
2777
|
const update_children_count = ()=>set_children_count(container_element.children.length);
|
|
2778
2778
|
const col_styling = (0, $57o7A$solidjs.createMemo)(()=>(0, $57o7A$depictaiutilishared.n_col_styling_with_dist)(selector_beginning, props.grid_spacing, props.cols_at_size, props.layout, props.override_vertical_spacing));
|
|
@@ -6216,7 +6216,7 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
|
|
|
6216
6216
|
#market_signal = (0, $57o7A$solidjs.createSignal)();
|
|
6217
6217
|
#query_id_signal = (0, $57o7A$solidjs.createSignal)("");
|
|
6218
6218
|
#listing_type_signal = (0, $57o7A$solidjs.createSignal)();
|
|
6219
|
-
static #keys_constructed_with =
|
|
6219
|
+
static #keys_constructed_with = new Set();
|
|
6220
6220
|
get localization() {
|
|
6221
6221
|
// allow reactive access
|
|
6222
6222
|
return this.#locale_signal[0]();
|
|
@@ -6258,7 +6258,7 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
|
|
|
6258
6258
|
constructor({ api: api , on_navigation: on_navigation , page_url_creator: page_url_creator , unique_instance_key_for_state: unique_instance_key_for_state = "" , query_id_state_key: query_id_state_key , ...props_on_class }){
|
|
6259
6259
|
const owner = (0, $57o7A$solidjs.getOwner)() || (0, $57o7A$solidjs.createRoot)(()=>(0, $57o7A$solidjs.getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
|
|
6260
6260
|
(0, $57o7A$solidjs.runWithOwner)(owner, ()=>{
|
|
6261
|
-
if ($48567ac5b39bac56$export$f34314aa9505732e.#keys_constructed_with.
|
|
6261
|
+
if ($48567ac5b39bac56$export$f34314aa9505732e.#keys_constructed_with.has(unique_instance_key_for_state) && !(0, $57o7A$solidjsweb.isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
|
|
6262
6262
|
throw new Error("You can only have one instance of DepictCategory with the same uniqueInstanceKeyForState");
|
|
6263
6263
|
Object.assign(this, props_on_class); // set initial signal values
|
|
6264
6264
|
(0, $d84fe647b84b5dc5$export$5162a71f252e6122)();
|
|
@@ -6301,7 +6301,8 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
|
|
|
6301
6301
|
sorting_query_param_: sorting_query_param_,
|
|
6302
6302
|
filter_query_param_prefix_: filter_query_param_prefix_
|
|
6303
6303
|
});
|
|
6304
|
-
$48567ac5b39bac56$export$f34314aa9505732e.#keys_constructed_with.
|
|
6304
|
+
$48567ac5b39bac56$export$f34314aa9505732e.#keys_constructed_with.add(unique_instance_key_for_state);
|
|
6305
|
+
(0, $57o7A$solidjs.onCleanup)(()=>$48567ac5b39bac56$export$f34314aa9505732e.#keys_constructed_with.delete(unique_instance_key_for_state));
|
|
6305
6306
|
});
|
|
6306
6307
|
}
|
|
6307
6308
|
}
|
|
@@ -8707,13 +8708,13 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
|
|
|
8707
8708
|
#merchant_signal = (0, $57o7A$solidjs.createSignal)();
|
|
8708
8709
|
#market_signal = (0, $57o7A$solidjs.createSignal)();
|
|
8709
8710
|
#modal_open_signal = (0, $57o7A$solidjs.createSignal)(false);
|
|
8710
|
-
static #keys_constructed_with =
|
|
8711
|
+
static #keys_constructed_with = new Set();
|
|
8711
8712
|
#router = new (0, $e96dd13889871fc0$export$7e1297a3a19f10d8)("hard_navigation");
|
|
8712
8713
|
constructor({ unique_instance_key_for_state: unique_instance_key_for_state = "" , search_query_url_param_name: search_query_url_param_name_ = "query" + unique_instance_key_for_state , url_transformer: url_transformer , on_navigation: on_navigation , enable_category_suggestions: enable_category_suggestions = true , page_url_creator: page_url_creator , disable_scrolling_during_modal: // Stuff needed for non-standard customer deployments that we shouldn't actually expose
|
|
8713
8714
|
disable_scrolling_during_modal = true , api: api , bottom_distance_under_modal: bottom_distance_under_modal , render_instant_card: render_instant_card , ...props_on_class }){
|
|
8714
8715
|
const owner = (0, $57o7A$solidjs.getOwner)() || (0, $57o7A$solidjs.createRoot)(()=>(0, $57o7A$solidjs.getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
|
|
8715
8716
|
(0, $57o7A$solidjs.runWithOwner)(owner, ()=>{
|
|
8716
|
-
if ($2c61e4cd8229c49a$export$ac6237957a15b3f0.#keys_constructed_with.
|
|
8717
|
+
if ($2c61e4cd8229c49a$export$ac6237957a15b3f0.#keys_constructed_with.has(unique_instance_key_for_state) && !(0, $57o7A$solidjsweb.isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
|
|
8717
8718
|
throw new Error("You can only have one instance of DepictSearch with the same uniqueInstanceKeyForState");
|
|
8718
8719
|
Object.assign(this, props_on_class);
|
|
8719
8720
|
if (on_navigation) this.#router.on_navigation_ = on_navigation;
|
|
@@ -8864,7 +8865,8 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
|
|
|
8864
8865
|
};
|
|
8865
8866
|
(0, $57o7A$solidjs.runWithOwner)(owner, ()=>(0, $57o7A$solidjs.createEffect)(modal_opening_effect));
|
|
8866
8867
|
})();
|
|
8867
|
-
$2c61e4cd8229c49a$export$ac6237957a15b3f0.#keys_constructed_with.
|
|
8868
|
+
$2c61e4cd8229c49a$export$ac6237957a15b3f0.#keys_constructed_with.add(unique_instance_key_for_state);
|
|
8869
|
+
(0, $57o7A$solidjs.onCleanup)(()=>$2c61e4cd8229c49a$export$ac6237957a15b3f0.#keys_constructed_with.delete(unique_instance_key_for_state));
|
|
8868
8870
|
});
|
|
8869
8871
|
}
|
|
8870
8872
|
get on_navigation() {
|
package/dist/client/module.js
CHANGED
|
@@ -2,7 +2,7 @@ import {add_to_version_info as $gco9i$add_to_version_info, observer as $gco9i$ob
|
|
|
2
2
|
import {insert as $gco9i$insert, createComponent as $gco9i$createComponent, template as $gco9i$template, getNextElement as $gco9i$getNextElement, getNextMarker as $gco9i$getNextMarker, addEventListener as $gco9i$addEventListener, runHydrationEvents as $gco9i$runHydrationEvents, memo as $gco9i$memo, delegateEvents as $gco9i$delegateEvents, effect as $gco9i$effect, setAttribute as $gco9i$setAttribute, spread as $gco9i$spread, mergeProps as $gco9i$mergeProps, Dynamic as $gco9i$Dynamic, use as $gco9i$use, style as $gco9i$style, classList as $gco9i$classList, className as $gco9i$className, isServer as $gco9i$isServer} from "solid-js/web";
|
|
3
3
|
import {createSignal as $gco9i$createSignal, createMemo as $gco9i$createMemo, untrack as $gco9i$untrack, createEffect as $gco9i$createEffect, getOwner as $gco9i$getOwner, Show as $gco9i$Show, runWithOwner as $gco9i$runWithOwner, Index as $gco9i$Index, onCleanup as $gco9i$onCleanup, createRoot as $gco9i$createRoot, on as $gco9i$on, For as $gco9i$For, createRenderEffect as $gco9i$createRenderEffect, createComputed as $gco9i$createComputed, batch as $gco9i$batch, ErrorBoundary as $gco9i$ErrorBoundary, createResource as $gco9i$createResource, createReaction as $gco9i$createReaction, Suspense as $gco9i$Suspense} from "solid-js";
|
|
4
4
|
|
|
5
|
-
/*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.4.
|
|
5
|
+
/*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.4.2";
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -2697,17 +2697,24 @@ function $a52235d12ccf9c88$var$unwrapping_helper(elements) {
|
|
|
2697
2697
|
|
|
2698
2698
|
const $c8d5ff4524619fcd$var$_tmpl$ = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<div></div>`, 2), $c8d5ff4524619fcd$var$_tmpl$2 = /*@__PURE__*/ (0, /*@__PURE__*/$gco9i$template)(`<style type="text/css"></style>`, 2);
|
|
2699
2699
|
function $c8d5ff4524619fcd$export$d21e32dfedac04be(props) {
|
|
2700
|
+
const container_element_ = (()=>{
|
|
2701
|
+
const _el$ = (0, $gco9i$getNextElement)($c8d5ff4524619fcd$var$_tmpl$);
|
|
2702
|
+
(0, $gco9i$spread)(_el$, (0, $gco9i$mergeProps)(()=>props.element_attributes), false, true);
|
|
2703
|
+
(0, $gco9i$insert)(_el$, ()=>props.children);
|
|
2704
|
+
(0, $gco9i$runHydrationEvents)();
|
|
2705
|
+
return _el$;
|
|
2706
|
+
})(); // Don't want this in the error boundary below, it should only be for the actual layouting
|
|
2700
2707
|
return (0, $gco9i$createComponent)((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
|
|
2701
2708
|
get message_ () {
|
|
2702
2709
|
return "Failed calculating " + props.layout + " layout";
|
|
2703
2710
|
},
|
|
2704
2711
|
severity_: "error",
|
|
2705
2712
|
get children () {
|
|
2706
|
-
return $c8d5ff4524619fcd$var$ActualSolidLayout(props);
|
|
2713
|
+
return $c8d5ff4524619fcd$var$ActualSolidLayout(props, container_element_);
|
|
2707
2714
|
}
|
|
2708
2715
|
});
|
|
2709
2716
|
}
|
|
2710
|
-
function $c8d5ff4524619fcd$var$ActualSolidLayout(props) {
|
|
2717
|
+
function $c8d5ff4524619fcd$var$ActualSolidLayout(props, container_element) {
|
|
2711
2718
|
// Copy of Layout from utilishared but using solid-js signals instead of async iterable IPNS
|
|
2712
2719
|
const show_all_rows = (0, $gco9i$createMemo)(()=>props.rows === "all");
|
|
2713
2720
|
const rows_or_empty_object = (0, $gco9i$createMemo)(()=>show_all_rows() ? {} : props.rows);
|
|
@@ -2719,13 +2726,6 @@ function $c8d5ff4524619fcd$var$ActualSolidLayout(props) {
|
|
|
2719
2726
|
const [get_styling, set_styling] = (0, $gco9i$createSignal)();
|
|
2720
2727
|
const container_class = (0, $gco9i$make_random_classname)();
|
|
2721
2728
|
const selector_beginning = `.depict .${container_class}>`; // class so ppl can have id if needed
|
|
2722
|
-
const container_element = (()=>{
|
|
2723
|
-
const _el$ = (0, $gco9i$getNextElement)($c8d5ff4524619fcd$var$_tmpl$);
|
|
2724
|
-
(0, $gco9i$spread)(_el$, (0, $gco9i$mergeProps)(()=>props.element_attributes), false, true);
|
|
2725
|
-
(0, $gco9i$insert)(_el$, ()=>props.children);
|
|
2726
|
-
(0, $gco9i$runHydrationEvents)();
|
|
2727
|
-
return _el$;
|
|
2728
|
-
})();
|
|
2729
2729
|
const [get_children_count, set_children_count] = (0, $gco9i$createSignal)(0);
|
|
2730
2730
|
const update_children_count = ()=>set_children_count(container_element.children.length);
|
|
2731
2731
|
const col_styling = (0, $gco9i$createMemo)(()=>(0, $gco9i$n_col_styling_with_dist)(selector_beginning, props.grid_spacing, props.cols_at_size, props.layout, props.override_vertical_spacing));
|
|
@@ -6169,7 +6169,7 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
|
|
|
6169
6169
|
#market_signal = (0, $gco9i$createSignal)();
|
|
6170
6170
|
#query_id_signal = (0, $gco9i$createSignal)("");
|
|
6171
6171
|
#listing_type_signal = (0, $gco9i$createSignal)();
|
|
6172
|
-
static #keys_constructed_with =
|
|
6172
|
+
static #keys_constructed_with = new Set();
|
|
6173
6173
|
get localization() {
|
|
6174
6174
|
// allow reactive access
|
|
6175
6175
|
return this.#locale_signal[0]();
|
|
@@ -6211,7 +6211,7 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
|
|
|
6211
6211
|
constructor({ api: api , on_navigation: on_navigation , page_url_creator: page_url_creator , unique_instance_key_for_state: unique_instance_key_for_state = "" , query_id_state_key: query_id_state_key , ...props_on_class }){
|
|
6212
6212
|
const owner = (0, $gco9i$getOwner)() || (0, $gco9i$createRoot)(()=>(0, $gco9i$getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
|
|
6213
6213
|
(0, $gco9i$runWithOwner)(owner, ()=>{
|
|
6214
|
-
if ($961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.
|
|
6214
|
+
if ($961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.has(unique_instance_key_for_state) && !(0, $gco9i$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
|
|
6215
6215
|
throw new Error("You can only have one instance of DepictCategory with the same uniqueInstanceKeyForState");
|
|
6216
6216
|
Object.assign(this, props_on_class); // set initial signal values
|
|
6217
6217
|
(0, $90980bd87c9960f9$export$5162a71f252e6122)();
|
|
@@ -6254,7 +6254,8 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
|
|
|
6254
6254
|
sorting_query_param_: sorting_query_param_,
|
|
6255
6255
|
filter_query_param_prefix_: filter_query_param_prefix_
|
|
6256
6256
|
});
|
|
6257
|
-
$961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.
|
|
6257
|
+
$961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.add(unique_instance_key_for_state);
|
|
6258
|
+
(0, $gco9i$onCleanup)(()=>$961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.delete(unique_instance_key_for_state));
|
|
6258
6259
|
});
|
|
6259
6260
|
}
|
|
6260
6261
|
}
|
|
@@ -8660,13 +8661,13 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
8660
8661
|
#merchant_signal = (0, $gco9i$createSignal)();
|
|
8661
8662
|
#market_signal = (0, $gco9i$createSignal)();
|
|
8662
8663
|
#modal_open_signal = (0, $gco9i$createSignal)(false);
|
|
8663
|
-
static #keys_constructed_with =
|
|
8664
|
+
static #keys_constructed_with = new Set();
|
|
8664
8665
|
#router = new (0, $4fd2ba03703a7d92$export$7e1297a3a19f10d8)("hard_navigation");
|
|
8665
8666
|
constructor({ unique_instance_key_for_state: unique_instance_key_for_state = "" , search_query_url_param_name: search_query_url_param_name_ = "query" + unique_instance_key_for_state , url_transformer: url_transformer , on_navigation: on_navigation , enable_category_suggestions: enable_category_suggestions = true , page_url_creator: page_url_creator , disable_scrolling_during_modal: // Stuff needed for non-standard customer deployments that we shouldn't actually expose
|
|
8666
8667
|
disable_scrolling_during_modal = true , api: api , bottom_distance_under_modal: bottom_distance_under_modal , render_instant_card: render_instant_card , ...props_on_class }){
|
|
8667
8668
|
const owner = (0, $gco9i$getOwner)() || (0, $gco9i$createRoot)(()=>(0, $gco9i$getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
|
|
8668
8669
|
(0, $gco9i$runWithOwner)(owner, ()=>{
|
|
8669
|
-
if ($806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.
|
|
8670
|
+
if ($806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.has(unique_instance_key_for_state) && !(0, $gco9i$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
|
|
8670
8671
|
throw new Error("You can only have one instance of DepictSearch with the same uniqueInstanceKeyForState");
|
|
8671
8672
|
Object.assign(this, props_on_class);
|
|
8672
8673
|
if (on_navigation) this.#router.on_navigation_ = on_navigation;
|
|
@@ -8817,7 +8818,8 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
8817
8818
|
};
|
|
8818
8819
|
(0, $gco9i$runWithOwner)(owner, ()=>(0, $gco9i$createEffect)(modal_opening_effect));
|
|
8819
8820
|
})();
|
|
8820
|
-
$806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.
|
|
8821
|
+
$806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.add(unique_instance_key_for_state);
|
|
8822
|
+
(0, $gco9i$onCleanup)(()=>$806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.delete(unique_instance_key_for_state));
|
|
8821
8823
|
});
|
|
8822
8824
|
}
|
|
8823
8825
|
get on_navigation() {
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CategorySuggestion, SearchSuggestionsResponse } from "@depict-ai/types/
|
|
|
7
7
|
import { BaseSearchRequest } from "@depict-ai/types/api/BaseSearchRequest";
|
|
8
8
|
import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
|
|
9
9
|
import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
|
|
10
|
-
export const version = "1.4.
|
|
10
|
+
export const version = "1.4.2";
|
|
11
11
|
export function ExpandingDetails(props: {
|
|
12
12
|
details_: HTMLDetailsElement;
|
|
13
13
|
summary_: HTMLElement;
|
package/dist/server/main.cjs
CHANGED
|
@@ -49,7 +49,7 @@ $parcel$export(module.exports, "defaultGridSpacing", () => $a3280f0aad997933$exp
|
|
|
49
49
|
$parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$export$c3834fa86c616831);
|
|
50
50
|
$parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
|
|
51
51
|
$parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
|
|
52
|
-
/*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.4.
|
|
52
|
+
/*! Depict.ai search and product listing SDK */ const $b757f75811f3261f$export$83d89fbfd8236492 = "1.4.2";
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
@@ -2184,17 +2184,18 @@ const $f48d0fbb00835aaa$var$_tmpl$ = [
|
|
|
2184
2184
|
"</style>"
|
|
2185
2185
|
];
|
|
2186
2186
|
function $f48d0fbb00835aaa$export$d21e32dfedac04be(props) {
|
|
2187
|
+
const container_element_ = (0, $diwD4$solidjsweb.ssrElement)("div", props.element_attributes, ()=>(0, $diwD4$solidjsweb.escape)(props.children), true); // Don't want this in the error boundary below, it should only be for the actual layouting
|
|
2187
2188
|
return (0, $diwD4$solidjsweb.createComponent)((0, $edafe91daf3091d7$export$b69d0d92862de18b), {
|
|
2188
2189
|
get message_ () {
|
|
2189
2190
|
return "Failed calculating " + props.layout + " layout";
|
|
2190
2191
|
},
|
|
2191
2192
|
severity_: "error",
|
|
2192
2193
|
get children () {
|
|
2193
|
-
return $f48d0fbb00835aaa$var$ActualSolidLayout(props);
|
|
2194
|
+
return $f48d0fbb00835aaa$var$ActualSolidLayout(props, container_element_);
|
|
2194
2195
|
}
|
|
2195
2196
|
});
|
|
2196
2197
|
}
|
|
2197
|
-
function $f48d0fbb00835aaa$var$ActualSolidLayout(props) {
|
|
2198
|
+
function $f48d0fbb00835aaa$var$ActualSolidLayout(props, container_element) {
|
|
2198
2199
|
// Copy of Layout from utilishared but using solid-js signals instead of async iterable IPNS
|
|
2199
2200
|
const show_all_rows = (0, $diwD4$solidjs.createMemo)(()=>props.rows === "all");
|
|
2200
2201
|
const rows_or_empty_object = (0, $diwD4$solidjs.createMemo)(()=>show_all_rows() ? {} : props.rows);
|
|
@@ -2206,7 +2207,6 @@ function $f48d0fbb00835aaa$var$ActualSolidLayout(props) {
|
|
|
2206
2207
|
const [get_styling, set_styling] = (0, $diwD4$solidjs.createSignal)();
|
|
2207
2208
|
const container_class = (0, $diwD4$depictaiutilishared.make_random_classname)();
|
|
2208
2209
|
const selector_beginning = `.depict .${container_class}>`; // class so ppl can have id if needed
|
|
2209
|
-
const container_element = (0, $diwD4$solidjsweb.ssrElement)("div", props.element_attributes, ()=>(0, $diwD4$solidjsweb.escape)(props.children), true);
|
|
2210
2210
|
const [get_children_count, set_children_count] = (0, $diwD4$solidjs.createSignal)(0);
|
|
2211
2211
|
const update_children_count = ()=>set_children_count(container_element.children.length);
|
|
2212
2212
|
const col_styling = (0, $diwD4$solidjs.createMemo)(()=>(0, $diwD4$depictaiutilishared.n_col_styling_with_dist)(selector_beginning, props.grid_spacing, props.cols_at_size, props.layout, props.override_vertical_spacing));
|
|
@@ -5462,7 +5462,7 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
|
|
|
5462
5462
|
#market_signal = (0, $diwD4$solidjs.createSignal)();
|
|
5463
5463
|
#query_id_signal = (0, $diwD4$solidjs.createSignal)("");
|
|
5464
5464
|
#listing_type_signal = (0, $diwD4$solidjs.createSignal)();
|
|
5465
|
-
static #keys_constructed_with =
|
|
5465
|
+
static #keys_constructed_with = new Set();
|
|
5466
5466
|
get localization() {
|
|
5467
5467
|
// allow reactive access
|
|
5468
5468
|
return this.#locale_signal[0]();
|
|
@@ -5504,7 +5504,7 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
|
|
|
5504
5504
|
constructor({ api: api , on_navigation: on_navigation , page_url_creator: page_url_creator , unique_instance_key_for_state: unique_instance_key_for_state = "" , query_id_state_key: query_id_state_key , ...props_on_class }){
|
|
5505
5505
|
const owner = (0, $diwD4$solidjs.getOwner)() || (0, $diwD4$solidjs.createRoot)(()=>(0, $diwD4$solidjs.getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
|
|
5506
5506
|
(0, $diwD4$solidjs.runWithOwner)(owner, ()=>{
|
|
5507
|
-
if ($48567ac5b39bac56$export$f34314aa9505732e.#keys_constructed_with.
|
|
5507
|
+
if ($48567ac5b39bac56$export$f34314aa9505732e.#keys_constructed_with.has(unique_instance_key_for_state) && !(0, $diwD4$solidjsweb.isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
|
|
5508
5508
|
throw new Error("You can only have one instance of DepictCategory with the same uniqueInstanceKeyForState");
|
|
5509
5509
|
Object.assign(this, props_on_class); // set initial signal values
|
|
5510
5510
|
(0, $d84fe647b84b5dc5$export$5162a71f252e6122)();
|
|
@@ -5547,7 +5547,8 @@ class $48567ac5b39bac56$export$f34314aa9505732e {
|
|
|
5547
5547
|
sorting_query_param_: sorting_query_param_,
|
|
5548
5548
|
filter_query_param_prefix_: filter_query_param_prefix_
|
|
5549
5549
|
});
|
|
5550
|
-
$48567ac5b39bac56$export$f34314aa9505732e.#keys_constructed_with.
|
|
5550
|
+
$48567ac5b39bac56$export$f34314aa9505732e.#keys_constructed_with.add(unique_instance_key_for_state);
|
|
5551
|
+
(0, $diwD4$solidjs.onCleanup)(()=>$48567ac5b39bac56$export$f34314aa9505732e.#keys_constructed_with.delete(unique_instance_key_for_state));
|
|
5551
5552
|
});
|
|
5552
5553
|
}
|
|
5553
5554
|
}
|
|
@@ -7691,13 +7692,13 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
|
|
|
7691
7692
|
#merchant_signal = (0, $diwD4$solidjs.createSignal)();
|
|
7692
7693
|
#market_signal = (0, $diwD4$solidjs.createSignal)();
|
|
7693
7694
|
#modal_open_signal = (0, $diwD4$solidjs.createSignal)(false);
|
|
7694
|
-
static #keys_constructed_with =
|
|
7695
|
+
static #keys_constructed_with = new Set();
|
|
7695
7696
|
#router = new (0, $e96dd13889871fc0$export$7e1297a3a19f10d8)("hard_navigation");
|
|
7696
7697
|
constructor({ unique_instance_key_for_state: unique_instance_key_for_state = "" , search_query_url_param_name: search_query_url_param_name_ = "query" + unique_instance_key_for_state , url_transformer: url_transformer , on_navigation: on_navigation , enable_category_suggestions: enable_category_suggestions = true , page_url_creator: page_url_creator , disable_scrolling_during_modal: // Stuff needed for non-standard customer deployments that we shouldn't actually expose
|
|
7697
7698
|
disable_scrolling_during_modal = true , api: api , bottom_distance_under_modal: bottom_distance_under_modal , render_instant_card: render_instant_card , ...props_on_class }){
|
|
7698
7699
|
const owner = (0, $diwD4$solidjs.getOwner)() || (0, $diwD4$solidjs.createRoot)(()=>(0, $diwD4$solidjs.getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
|
|
7699
7700
|
(0, $diwD4$solidjs.runWithOwner)(owner, ()=>{
|
|
7700
|
-
if ($2c61e4cd8229c49a$export$ac6237957a15b3f0.#keys_constructed_with.
|
|
7701
|
+
if ($2c61e4cd8229c49a$export$ac6237957a15b3f0.#keys_constructed_with.has(unique_instance_key_for_state) && !(0, $diwD4$solidjsweb.isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
|
|
7701
7702
|
throw new Error("You can only have one instance of DepictSearch with the same uniqueInstanceKeyForState");
|
|
7702
7703
|
Object.assign(this, props_on_class);
|
|
7703
7704
|
if (on_navigation) this.#router.on_navigation_ = on_navigation;
|
|
@@ -7848,7 +7849,8 @@ class $2c61e4cd8229c49a$export$ac6237957a15b3f0 {
|
|
|
7848
7849
|
};
|
|
7849
7850
|
(0, $diwD4$solidjs.runWithOwner)(owner, ()=>(0, $diwD4$solidjs.createEffect)(modal_opening_effect));
|
|
7850
7851
|
})();
|
|
7851
|
-
$2c61e4cd8229c49a$export$ac6237957a15b3f0.#keys_constructed_with.
|
|
7852
|
+
$2c61e4cd8229c49a$export$ac6237957a15b3f0.#keys_constructed_with.add(unique_instance_key_for_state);
|
|
7853
|
+
(0, $diwD4$solidjs.onCleanup)(()=>$2c61e4cd8229c49a$export$ac6237957a15b3f0.#keys_constructed_with.delete(unique_instance_key_for_state));
|
|
7852
7854
|
});
|
|
7853
7855
|
}
|
|
7854
7856
|
get on_navigation() {
|
package/dist/server/module.js
CHANGED
|
@@ -2,7 +2,7 @@ import {add_to_version_info as $cV3wj$add_to_version_info, observer as $cV3wj$ob
|
|
|
2
2
|
import {insert as $cV3wj$insert, createComponent as $cV3wj$createComponent, ssr as $cV3wj$ssr, ssrHydrationKey as $cV3wj$ssrHydrationKey, escape as $cV3wj$escape, ssrAttribute as $cV3wj$ssrAttribute, ssrElement as $cV3wj$ssrElement, Dynamic as $cV3wj$Dynamic, ssrStyle as $cV3wj$ssrStyle, ssrClassList as $cV3wj$ssrClassList, isServer as $cV3wj$isServer, mergeProps as $cV3wj$mergeProps} from "solid-js/web";
|
|
3
3
|
import {createSignal as $cV3wj$createSignal, createMemo as $cV3wj$createMemo, untrack as $cV3wj$untrack, createEffect as $cV3wj$createEffect, getOwner as $cV3wj$getOwner, Show as $cV3wj$Show, Index as $cV3wj$Index, onCleanup as $cV3wj$onCleanup, For as $cV3wj$For, createRenderEffect as $cV3wj$createRenderEffect, createComputed as $cV3wj$createComputed, on as $cV3wj$on, batch as $cV3wj$batch, ErrorBoundary as $cV3wj$ErrorBoundary, createRoot as $cV3wj$createRoot, runWithOwner as $cV3wj$runWithOwner, createResource as $cV3wj$createResource, createReaction as $cV3wj$createReaction, Suspense as $cV3wj$Suspense} from "solid-js";
|
|
4
4
|
|
|
5
|
-
/*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.4.
|
|
5
|
+
/*! Depict.ai search and product listing SDK */ const $ec291e0010116877$export$83d89fbfd8236492 = "1.4.2";
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -2137,17 +2137,18 @@ const $c8d5ff4524619fcd$var$_tmpl$ = [
|
|
|
2137
2137
|
"</style>"
|
|
2138
2138
|
];
|
|
2139
2139
|
function $c8d5ff4524619fcd$export$d21e32dfedac04be(props) {
|
|
2140
|
+
const container_element_ = (0, $cV3wj$ssrElement)("div", props.element_attributes, ()=>(0, $cV3wj$escape)(props.children), true); // Don't want this in the error boundary below, it should only be for the actual layouting
|
|
2140
2141
|
return (0, $cV3wj$createComponent)((0, $b7436a6d1fd64e3b$export$b69d0d92862de18b), {
|
|
2141
2142
|
get message_ () {
|
|
2142
2143
|
return "Failed calculating " + props.layout + " layout";
|
|
2143
2144
|
},
|
|
2144
2145
|
severity_: "error",
|
|
2145
2146
|
get children () {
|
|
2146
|
-
return $c8d5ff4524619fcd$var$ActualSolidLayout(props);
|
|
2147
|
+
return $c8d5ff4524619fcd$var$ActualSolidLayout(props, container_element_);
|
|
2147
2148
|
}
|
|
2148
2149
|
});
|
|
2149
2150
|
}
|
|
2150
|
-
function $c8d5ff4524619fcd$var$ActualSolidLayout(props) {
|
|
2151
|
+
function $c8d5ff4524619fcd$var$ActualSolidLayout(props, container_element) {
|
|
2151
2152
|
// Copy of Layout from utilishared but using solid-js signals instead of async iterable IPNS
|
|
2152
2153
|
const show_all_rows = (0, $cV3wj$createMemo)(()=>props.rows === "all");
|
|
2153
2154
|
const rows_or_empty_object = (0, $cV3wj$createMemo)(()=>show_all_rows() ? {} : props.rows);
|
|
@@ -2159,7 +2160,6 @@ function $c8d5ff4524619fcd$var$ActualSolidLayout(props) {
|
|
|
2159
2160
|
const [get_styling, set_styling] = (0, $cV3wj$createSignal)();
|
|
2160
2161
|
const container_class = (0, $cV3wj$make_random_classname)();
|
|
2161
2162
|
const selector_beginning = `.depict .${container_class}>`; // class so ppl can have id if needed
|
|
2162
|
-
const container_element = (0, $cV3wj$ssrElement)("div", props.element_attributes, ()=>(0, $cV3wj$escape)(props.children), true);
|
|
2163
2163
|
const [get_children_count, set_children_count] = (0, $cV3wj$createSignal)(0);
|
|
2164
2164
|
const update_children_count = ()=>set_children_count(container_element.children.length);
|
|
2165
2165
|
const col_styling = (0, $cV3wj$createMemo)(()=>(0, $cV3wj$n_col_styling_with_dist)(selector_beginning, props.grid_spacing, props.cols_at_size, props.layout, props.override_vertical_spacing));
|
|
@@ -5415,7 +5415,7 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
|
|
|
5415
5415
|
#market_signal = (0, $cV3wj$createSignal)();
|
|
5416
5416
|
#query_id_signal = (0, $cV3wj$createSignal)("");
|
|
5417
5417
|
#listing_type_signal = (0, $cV3wj$createSignal)();
|
|
5418
|
-
static #keys_constructed_with =
|
|
5418
|
+
static #keys_constructed_with = new Set();
|
|
5419
5419
|
get localization() {
|
|
5420
5420
|
// allow reactive access
|
|
5421
5421
|
return this.#locale_signal[0]();
|
|
@@ -5457,7 +5457,7 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
|
|
|
5457
5457
|
constructor({ api: api , on_navigation: on_navigation , page_url_creator: page_url_creator , unique_instance_key_for_state: unique_instance_key_for_state = "" , query_id_state_key: query_id_state_key , ...props_on_class }){
|
|
5458
5458
|
const owner = (0, $cV3wj$getOwner)() || (0, $cV3wj$createRoot)(()=>(0, $cV3wj$getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
|
|
5459
5459
|
(0, $cV3wj$runWithOwner)(owner, ()=>{
|
|
5460
|
-
if ($961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.
|
|
5460
|
+
if ($961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.has(unique_instance_key_for_state) && !(0, $cV3wj$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
|
|
5461
5461
|
throw new Error("You can only have one instance of DepictCategory with the same uniqueInstanceKeyForState");
|
|
5462
5462
|
Object.assign(this, props_on_class); // set initial signal values
|
|
5463
5463
|
(0, $90980bd87c9960f9$export$5162a71f252e6122)();
|
|
@@ -5500,7 +5500,8 @@ class $961b5c64bef4662f$export$f34314aa9505732e {
|
|
|
5500
5500
|
sorting_query_param_: sorting_query_param_,
|
|
5501
5501
|
filter_query_param_prefix_: filter_query_param_prefix_
|
|
5502
5502
|
});
|
|
5503
|
-
$961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.
|
|
5503
|
+
$961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.add(unique_instance_key_for_state);
|
|
5504
|
+
(0, $cV3wj$onCleanup)(()=>$961b5c64bef4662f$export$f34314aa9505732e.#keys_constructed_with.delete(unique_instance_key_for_state));
|
|
5504
5505
|
});
|
|
5505
5506
|
}
|
|
5506
5507
|
}
|
|
@@ -7644,13 +7645,13 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
7644
7645
|
#merchant_signal = (0, $cV3wj$createSignal)();
|
|
7645
7646
|
#market_signal = (0, $cV3wj$createSignal)();
|
|
7646
7647
|
#modal_open_signal = (0, $cV3wj$createSignal)(false);
|
|
7647
|
-
static #keys_constructed_with =
|
|
7648
|
+
static #keys_constructed_with = new Set();
|
|
7648
7649
|
#router = new (0, $4fd2ba03703a7d92$export$7e1297a3a19f10d8)("hard_navigation");
|
|
7649
7650
|
constructor({ unique_instance_key_for_state: unique_instance_key_for_state = "" , search_query_url_param_name: search_query_url_param_name_ = "query" + unique_instance_key_for_state , url_transformer: url_transformer , on_navigation: on_navigation , enable_category_suggestions: enable_category_suggestions = true , page_url_creator: page_url_creator , disable_scrolling_during_modal: // Stuff needed for non-standard customer deployments that we shouldn't actually expose
|
|
7650
7651
|
disable_scrolling_during_modal = true , api: api , bottom_distance_under_modal: bottom_distance_under_modal , render_instant_card: render_instant_card , ...props_on_class }){
|
|
7651
7652
|
const owner = (0, $cV3wj$getOwner)() || (0, $cV3wj$createRoot)(()=>(0, $cV3wj$getOwner)()); // we might have an owner, if so, pass it on. Otherwise, create one so solid doesn't print warnings to the console
|
|
7652
7653
|
(0, $cV3wj$runWithOwner)(owner, ()=>{
|
|
7653
|
-
if ($806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.
|
|
7654
|
+
if ($806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.has(unique_instance_key_for_state) && !(0, $cV3wj$isServer)) // on the server we can't write stuff to history.state anyway so can have multiple
|
|
7654
7655
|
throw new Error("You can only have one instance of DepictSearch with the same uniqueInstanceKeyForState");
|
|
7655
7656
|
Object.assign(this, props_on_class);
|
|
7656
7657
|
if (on_navigation) this.#router.on_navigation_ = on_navigation;
|
|
@@ -7801,7 +7802,8 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
7801
7802
|
};
|
|
7802
7803
|
(0, $cV3wj$runWithOwner)(owner, ()=>(0, $cV3wj$createEffect)(modal_opening_effect));
|
|
7803
7804
|
})();
|
|
7804
|
-
$806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.
|
|
7805
|
+
$806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.add(unique_instance_key_for_state);
|
|
7806
|
+
(0, $cV3wj$onCleanup)(()=>$806c97b931758897$export$ac6237957a15b3f0.#keys_constructed_with.delete(unique_instance_key_for_state));
|
|
7805
7807
|
});
|
|
7806
7808
|
}
|
|
7807
7809
|
get on_navigation() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
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
|
"main": "dist/client/main.cjs",
|