@depict-ai/ui 2.0.5 → 2.0.7

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/latest/index.js CHANGED
@@ -5,7 +5,7 @@ import { template as $9HbP8$template, getNextElement as $9HbP8$getNextElement, i
5
5
  /*! Depict.ai search and product listing SDK */
6
6
  import { register_es_version } from "../multi_import_deduplicator.mjs";
7
7
  register_es_version("ui", "latest");
8
- const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.5";
8
+ const $ec291e0010116877$export$83d89fbfd8236492 = "2.0.7";
9
9
 
10
10
  /** @jsxImportSource solid-js */
11
11
 
@@ -56,27 +56,6 @@ const $b5cccc8ee7d24677$export$6daf8749b65a1b77 = cols_at_size => {
56
56
  });
57
57
  return $b5cccc8ee7d24677$var$transform_elements(sorted_cols_at_size);
58
58
  };
59
-
60
- /**
61
- * Content results ContentCard look stupid on mobile if there are two columns of them, so we limit the number of columns to 1 if the screen is too small
62
- */
63
- function $1848f7cca286fbab$export$ff7109b9b2b206ba(sdk_cols_at_size, min_width_for_more_than_one_column = 500) {
64
- if (!sdk_cols_at_size.length) return sdk_cols_at_size;
65
- const sorted_sizes = sdk_cols_at_size.map(([cols, max_width]) => [cols, max_width ?? Infinity]).sort(([, a], [, b]) => a - b);
66
- const [[, smallest_max_width]] = sorted_sizes;
67
- if (smallest_max_width > min_width_for_more_than_one_column)
68
- // If everything above min_width_for_more_than_one_column, we can just add a 1 column at the beginning
69
- return [[1, min_width_for_more_than_one_column], ...sdk_cols_at_size];
70
- const to_delete = [];
71
- for (let i = 0; i < sorted_sizes.length; i++) {
72
- const [, max_width] = sorted_sizes[i];
73
- if (max_width > min_width_for_more_than_one_column) continue;
74
- to_delete.push(i);
75
- }
76
- while (to_delete.length) sorted_sizes.splice(to_delete.pop(), 1);
77
- sorted_sizes.unshift([1, min_width_for_more_than_one_column]);
78
- return sorted_sizes.map(([cols, max_width]) => max_width == Infinity ? [cols] : [cols, max_width]);
79
- }
80
59
  function $a458486f22b22f63$export$a2cc176055f8f08() {
81
60
  const text = "Please try setting `colsAtSize` on the `SearchPage`/`CategoryPage` components to change the grid before setting it with CSS. If you do with CSS, set `ColsAtSize` to an empty array to ensure no declarations created by the SDK leak through.";
82
61
  return (0, $9HbP8$isServer) ? {
@@ -594,7 +573,7 @@ function $ee116da074deb002$export$9574e176201e5e8d(props) {
594
573
  market_: () => props.market,
595
574
  merchant_: () => props.merchant,
596
575
  layout_options_: $9HbP8$createMemo(() => ({
597
- cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77($1848f7cca286fbab$export$ff7109b9b2b206ba(props.cols_at_size)),
576
+ cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(props.cols_at_size),
598
577
  ...grid_spacing_override()
599
578
  }))
600
579
  }));
@@ -707,7 +686,7 @@ function $9ea5383493360761$export$9756467d34d91cdb(props) {
707
686
  market_: () => props.market,
708
687
  merchant_: () => props.merchant,
709
688
  layout_options_: $9HbP8$createMemo(() => ({
710
- cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77($1848f7cca286fbab$export$ff7109b9b2b206ba(props.cols_at_size)),
689
+ cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(props.cols_at_size),
711
690
  ...grid_spacing_override()
712
691
  }))
713
692
  }));
@@ -1751,6 +1730,7 @@ function $a6b08770e164eced$var$RangeSelector({
1751
1730
  const [get_current_range] = current_range_;
1752
1731
  const pre_price = $9HbP8$createMemo(() => price_formatting_().pre_);
1753
1732
  const post_price = $9HbP8$createMemo(() => price_formatting_().post_);
1733
+ const should_be_disabled_ = $9HbP8$createMemo(() => Math.abs(min_() - max_()) < 2);
1754
1734
  return (() => {
1755
1735
  const _el$ = $9HbP8$getNextElement($a6b08770e164eced$var$_tmpl$),
1756
1736
  _el$2 = _el$.firstChild,
@@ -1796,7 +1776,8 @@ function $a6b08770e164eced$var$RangeSelector({
1796
1776
  max_: max_,
1797
1777
  min_: min_,
1798
1778
  current_range_: current_range_,
1799
- i18n_: i18n_
1779
+ i18n_: i18n_,
1780
+ should_be_disabled_: should_be_disabled_
1800
1781
  }), _el$24, _co$7);
1801
1782
  $9HbP8$insert(_el$9, pre_price, _el$11, _co$);
1802
1783
  $9HbP8$insert(_el$9, $9HbP8$createComponent((0, $8c0f86cb3e266eeb$export$a71e92cfbb498adc), {
@@ -1819,18 +1800,24 @@ function $a6b08770e164eced$var$RangeSelector({
1819
1800
  }), _el$20, _co$5);
1820
1801
  $9HbP8$insert(_el$16, post_price, _el$22, _co$6);
1821
1802
  $9HbP8$effect(_p$ => {
1822
- const _v$ = i18n_.range_filter_low_point_aria_label_(),
1823
- _v$2 = min_(),
1824
- _v$3 = max_(),
1825
- _v$4 = i18n_.range_filter_high_point_aria_label_(),
1826
- _v$5 = min_(),
1827
- _v$6 = max_();
1828
- _v$ !== _p$._v$ && $9HbP8$setAttribute(_el$4, "aria-label", _p$._v$ = _v$);
1829
- _v$2 !== _p$._v$2 && $9HbP8$setAttribute(_el$4, "min", _p$._v$2 = _v$2);
1830
- _v$3 !== _p$._v$3 && $9HbP8$setAttribute(_el$4, "max", _p$._v$3 = _v$3);
1831
- _v$4 !== _p$._v$4 && $9HbP8$setAttribute(_el$7, "aria-label", _p$._v$4 = _v$4);
1832
- _v$5 !== _p$._v$5 && $9HbP8$setAttribute(_el$7, "min", _p$._v$5 = _v$5);
1833
- _v$6 !== _p$._v$6 && $9HbP8$setAttribute(_el$7, "max", _p$._v$6 = _v$6);
1803
+ const _v$ = !!(min_() === max_()),
1804
+ _v$2 = should_be_disabled_(),
1805
+ _v$3 = i18n_.range_filter_low_point_aria_label_(),
1806
+ _v$4 = min_(),
1807
+ _v$5 = max_(),
1808
+ _v$6 = should_be_disabled_(),
1809
+ _v$7 = i18n_.range_filter_high_point_aria_label_(),
1810
+ _v$8 = min_(),
1811
+ _v$9 = max_();
1812
+ _v$ !== _p$._v$ && _el$.classList.toggle("disabled", _p$._v$ = _v$);
1813
+ _v$2 !== _p$._v$2 && (_el$4.disabled = _p$._v$2 = _v$2);
1814
+ _v$3 !== _p$._v$3 && $9HbP8$setAttribute(_el$4, "aria-label", _p$._v$3 = _v$3);
1815
+ _v$4 !== _p$._v$4 && $9HbP8$setAttribute(_el$4, "min", _p$._v$4 = _v$4);
1816
+ _v$5 !== _p$._v$5 && $9HbP8$setAttribute(_el$4, "max", _p$._v$5 = _v$5);
1817
+ _v$6 !== _p$._v$6 && (_el$7.disabled = _p$._v$6 = _v$6);
1818
+ _v$7 !== _p$._v$7 && $9HbP8$setAttribute(_el$7, "aria-label", _p$._v$7 = _v$7);
1819
+ _v$8 !== _p$._v$8 && $9HbP8$setAttribute(_el$7, "min", _p$._v$8 = _v$8);
1820
+ _v$9 !== _p$._v$9 && $9HbP8$setAttribute(_el$7, "max", _p$._v$9 = _v$9);
1834
1821
  return _p$;
1835
1822
  }, {
1836
1823
  _v$: undefined,
@@ -1838,7 +1825,10 @@ function $a6b08770e164eced$var$RangeSelector({
1838
1825
  _v$3: undefined,
1839
1826
  _v$4: undefined,
1840
1827
  _v$5: undefined,
1841
- _v$6: undefined
1828
+ _v$6: undefined,
1829
+ _v$7: undefined,
1830
+ _v$8: undefined,
1831
+ _v$9: undefined
1842
1832
  });
1843
1833
  $9HbP8$effect(() => _el$4.value = get_current_range()[0]);
1844
1834
  $9HbP8$effect(() => _el$7.value = get_current_range()[1]);
@@ -1850,13 +1840,13 @@ function $a6b08770e164eced$var$ExponentialSlider({
1850
1840
  current_range_: current_range_,
1851
1841
  min_: min_,
1852
1842
  i18n_: i18n_,
1853
- max_: max_
1843
+ max_: max_,
1844
+ should_be_disabled_: should_be_disabled_
1854
1845
  }) {
1855
1846
  // inspired by https://observablehq.com/@mbostock/nonlinear-slider
1856
1847
  const transform_linear_to_nonlinear = ([smaller, larger]) => [Math.sqrt(smaller), Math.sqrt(larger)];
1857
1848
  const [read_current_range, write_current_range] = current_range_;
1858
- const modified_range = $9HbP8$createSignal(transform_linear_to_nonlinear($9HbP8$untrack(read_current_range)));
1859
- const [read_modified_range, write_modified_range] = modified_range;
1849
+ const modified_range_accessor = $9HbP8$createMemo(() => transform_linear_to_nonlinear(read_current_range()));
1860
1850
  const modified_max = $9HbP8$createMemo(() => Math.sqrt(max_()));
1861
1851
  const modified_min = $9HbP8$createMemo(() => Math.sqrt(min_()));
1862
1852
  const offset_value_calculator_ = (value, how_many) => {
@@ -1864,23 +1854,28 @@ function $a6b08770e164eced$var$ExponentialSlider({
1864
1854
  const changed = number_in_linear + how_many;
1865
1855
  return Math.sqrt(changed);
1866
1856
  };
1867
- $9HbP8$createComputed($9HbP8$on(read_current_range, new_range_from_above => {
1868
- // to prevent from infinite looping, don't write if it's around the same
1869
- const new_modified_range = transform_linear_to_nonlinear(new_range_from_above);
1870
- const current_modified_range = read_modified_range();
1871
- if (!current_modified_range.every((item, index) => Math.round(item) === Math.round(new_modified_range[index]))) write_modified_range(new_modified_range);
1872
- }, {
1873
- defer: true
1874
- }));
1875
- $9HbP8$createComputed($9HbP8$on(read_modified_range, ([smaller, larger]) => write_current_range([Math.round(smaller * smaller), Math.round(larger * larger)]), {
1876
- defer: true
1877
- }));
1857
+ const convert_back = (smaller, larger) => [Math.round(smaller * smaller), Math.round(larger * larger)];
1858
+ const modified_range_setter = new_range_or_function => {
1859
+ const old_range = $9HbP8$untrack(modified_range_accessor);
1860
+ const new_range = typeof new_range_or_function === "function" ? new_range_or_function(old_range) : new_range_or_function;
1861
+ const [smaller, larger] = new_range;
1862
+ const [old_smaller, old_larger] = old_range;
1863
+ const new_range_converted = convert_back(smaller, larger);
1864
+ const old_range_converted = convert_back(old_smaller, old_larger);
1865
+ if (new_range_converted[0] === old_range_converted[0] && new_range_converted[1] === old_range_converted[1])
1866
+ // If the new value gets identical rounding errors to the old value when being converted back, don't write it to the signal since it would cause an infinite loop
1867
+ return new_range;
1868
+ write_current_range(new_range_converted);
1869
+ return new_range;
1870
+ };
1878
1871
  return $a6b08770e164eced$var$LinearSlider({
1879
- current_range_: modified_range,
1872
+ current_range_: [modified_range_accessor, modified_range_setter],
1873
+ // "Lie" to the actual slider so we don't have to implement exponential handling in there
1880
1874
  min_: modified_min,
1881
1875
  max_: modified_max,
1882
1876
  offset_value_calculator_: offset_value_calculator_,
1883
- i18n_: i18n_
1877
+ i18n_: i18n_,
1878
+ should_be_disabled_: should_be_disabled_
1884
1879
  });
1885
1880
  }
1886
1881
  function $a6b08770e164eced$var$LinearSlider({
@@ -1888,7 +1883,8 @@ function $a6b08770e164eced$var$LinearSlider({
1888
1883
  min_: min_,
1889
1884
  current_range_: current_range_,
1890
1885
  offset_value_calculator_: offset_value_calculator_,
1891
- i18n_: i18n_
1886
+ i18n_: i18n_,
1887
+ should_be_disabled_: should_be_disabled_
1892
1888
  }) {
1893
1889
  let range_input_1;
1894
1890
  let range_input_2;
@@ -1898,6 +1894,7 @@ function $a6b08770e164eced$var$LinearSlider({
1898
1894
  const min = min_();
1899
1895
  const span = max_() - min;
1900
1896
  const [start, end] = get_current_range();
1897
+ if (should_be_disabled_()) return `left:50%;right:50%`;
1901
1898
  return `left:${(start - min) / span * 100}%;right:${100 - (end - min) / span * 100}%`;
1902
1899
  });
1903
1900
  const set_value = (el, index) => {
@@ -1947,26 +1944,32 @@ function $a6b08770e164eced$var$LinearSlider({
1947
1944
  }, _el$29);
1948
1945
  $9HbP8$addEventListener(_el$29, "input", $9HbP8$catchify(() => $a6b08770e164eced$var$set_range_with_sanitation(min_, max_, current_range_, 1, range_input_2, offset_value_calculator_)), true);
1949
1946
  $9HbP8$effect(_p$ => {
1950
- const _v$7 = i18n_.range_filter_low_point_aria_label_(),
1951
- _v$8 = min_(),
1952
- _v$9 = max_(),
1953
- _v$10 = i18n_.range_filter_high_point_aria_label_(),
1954
- _v$11 = min_(),
1955
- _v$12 = max_();
1956
- _v$7 !== _p$._v$7 && $9HbP8$setAttribute(_el$28, "aria-label", _p$._v$7 = _v$7);
1957
- _v$8 !== _p$._v$8 && $9HbP8$setAttribute(_el$28, "min", _p$._v$8 = _v$8);
1958
- _v$9 !== _p$._v$9 && $9HbP8$setAttribute(_el$28, "max", _p$._v$9 = _v$9);
1959
- _v$10 !== _p$._v$10 && $9HbP8$setAttribute(_el$29, "aria-label", _p$._v$10 = _v$10);
1960
- _v$11 !== _p$._v$11 && $9HbP8$setAttribute(_el$29, "min", _p$._v$11 = _v$11);
1961
- _v$12 !== _p$._v$12 && $9HbP8$setAttribute(_el$29, "max", _p$._v$12 = _v$12);
1947
+ const _v$10 = should_be_disabled_(),
1948
+ _v$11 = i18n_.range_filter_low_point_aria_label_(),
1949
+ _v$12 = min_(),
1950
+ _v$13 = max_(),
1951
+ _v$14 = should_be_disabled_(),
1952
+ _v$15 = i18n_.range_filter_high_point_aria_label_(),
1953
+ _v$16 = min_(),
1954
+ _v$17 = max_();
1955
+ _v$10 !== _p$._v$10 && (_el$28.disabled = _p$._v$10 = _v$10);
1956
+ _v$11 !== _p$._v$11 && $9HbP8$setAttribute(_el$28, "aria-label", _p$._v$11 = _v$11);
1957
+ _v$12 !== _p$._v$12 && $9HbP8$setAttribute(_el$28, "min", _p$._v$12 = _v$12);
1958
+ _v$13 !== _p$._v$13 && $9HbP8$setAttribute(_el$28, "max", _p$._v$13 = _v$13);
1959
+ _v$14 !== _p$._v$14 && (_el$29.disabled = _p$._v$14 = _v$14);
1960
+ _v$15 !== _p$._v$15 && $9HbP8$setAttribute(_el$29, "aria-label", _p$._v$15 = _v$15);
1961
+ _v$16 !== _p$._v$16 && $9HbP8$setAttribute(_el$29, "min", _p$._v$16 = _v$16);
1962
+ _v$17 !== _p$._v$17 && $9HbP8$setAttribute(_el$29, "max", _p$._v$17 = _v$17);
1962
1963
  return _p$;
1963
1964
  }, {
1964
- _v$7: undefined,
1965
- _v$8: undefined,
1966
- _v$9: undefined,
1967
1965
  _v$10: undefined,
1968
1966
  _v$11: undefined,
1969
- _v$12: undefined
1967
+ _v$12: undefined,
1968
+ _v$13: undefined,
1969
+ _v$14: undefined,
1970
+ _v$15: undefined,
1971
+ _v$16: undefined,
1972
+ _v$17: undefined
1970
1973
  });
1971
1974
  $9HbP8$effect(() => _el$28.value = $9HbP8$createMemo(() => {
1972
1975
  min_();
@@ -2256,47 +2259,50 @@ function $1c8cac76cb67e9af$var$render_stuff(data, existing_filter, i18n_) {
2256
2259
  return has_expandable();
2257
2260
  },
2258
2261
  get children() {
2259
- return $9HbP8$createComponent((0, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d), {
2260
- get details_() {
2261
- return $9HbP8$getNextElement($1c8cac76cb67e9af$var$_tmpl$3);
2262
- },
2263
- get summary_() {
2264
- return (() => {
2265
- const _el$12 = $9HbP8$getNextElement($1c8cac76cb67e9af$var$_tmpl$4),
2266
- _el$13 = _el$12.firstChild,
2267
- _el$14 = _el$13.firstChild,
2268
- _el$15 = _el$14.nextSibling,
2269
- [_el$16, _co$5] = $9HbP8$getNextMarker(_el$15.nextSibling);
2270
- $9HbP8$insert(_el$14, () => value()?.count_);
2271
- $9HbP8$insert(_el$13, $9HbP8$createComponent((0, $0b6bc2f8309efa8a$export$e5c2828934226505), {
2272
- i18n_: i18n_,
2273
- get expanded_() {
2274
- return $9HbP8$createMemo(() => value()?.is_expanded_?.ui_should_show_expanded_?.() ?? false);
2275
- }
2276
- }), _el$16, _co$5);
2277
- $9HbP8$effect(() => _el$14.classList.toggle("count-0", !!(value()?.count_ === 0)));
2278
- return _el$12;
2279
- })();
2280
- },
2281
- get is_open_() {
2282
- return $9HbP8$createMemo(() => {
2283
- const v = value();
2284
- if (!v)
2285
- // only to prevent cleanup errors
2286
- return $9HbP8$createSignal(false);
2287
- const {
2288
- is_expanded_: {
2289
- ui_should_show_expanded_: ui_should_show_expanded_,
2290
- set_user_expanded_: set_user_expanded_
2291
- }
2292
- } = v;
2293
- return [ui_should_show_expanded_, set_user_expanded_];
2294
- })();
2295
- },
2296
- get children() {
2297
- return $1c8cac76cb67e9af$var$render_stuff($9HbP8$createMemo(() => value()?.children_ || {}), existing_filter, i18n_);
2298
- }
2299
- });
2262
+ return (() => {
2263
+ const is_open = $9HbP8$createMemo(() => {
2264
+ const v = value();
2265
+ if (!v)
2266
+ // only to prevent cleanup errors
2267
+ return $9HbP8$createSignal(false);
2268
+ const {
2269
+ is_expanded_: {
2270
+ ui_should_show_expanded_: ui_should_show_expanded_,
2271
+ set_user_expanded_: set_user_expanded_
2272
+ }
2273
+ } = v;
2274
+ return [ui_should_show_expanded_, set_user_expanded_];
2275
+ });
2276
+ return $9HbP8$createComponent((0, $6bb0a0c563dff4bb$export$6c6d7a51fa9aa15d), {
2277
+ get details_() {
2278
+ return $9HbP8$getNextElement($1c8cac76cb67e9af$var$_tmpl$3);
2279
+ },
2280
+ get summary_() {
2281
+ return (() => {
2282
+ const _el$12 = $9HbP8$getNextElement($1c8cac76cb67e9af$var$_tmpl$4),
2283
+ _el$13 = _el$12.firstChild,
2284
+ _el$14 = _el$13.firstChild,
2285
+ _el$15 = _el$14.nextSibling,
2286
+ [_el$16, _co$5] = $9HbP8$getNextMarker(_el$15.nextSibling);
2287
+ $9HbP8$insert(_el$14, () => value()?.count_);
2288
+ $9HbP8$insert(_el$13, $9HbP8$createComponent((0, $0b6bc2f8309efa8a$export$e5c2828934226505), {
2289
+ i18n_: i18n_,
2290
+ get expanded_() {
2291
+ return $9HbP8$createMemo(() => value()?.is_expanded_?.ui_should_show_expanded_?.() ?? false);
2292
+ }
2293
+ }), _el$16, _co$5);
2294
+ $9HbP8$effect(() => _el$14.classList.toggle("count-0", !!(value()?.count_ === 0)));
2295
+ return _el$12;
2296
+ })();
2297
+ },
2298
+ get is_open_() {
2299
+ return is_open();
2300
+ },
2301
+ get children() {
2302
+ return $1c8cac76cb67e9af$var$render_stuff($9HbP8$createMemo(() => value()?.children_ || {}), existing_filter, i18n_);
2303
+ }
2304
+ });
2305
+ })();
2300
2306
  }
2301
2307
  }), _el$10, _co$4);
2302
2308
  $9HbP8$effect(() => _el$6.classList.toggle("expandable", !!has_expandable()));
@@ -2362,7 +2368,7 @@ function $1c8cac76cb67e9af$var$create_updating_signal({
2362
2368
  // wait for the children to have populated and us to have received the correct value_ and name_ values
2363
2369
  let updating_blocked = false;
2364
2370
  const index_of_us_in_selected_filter = existing_filter_?.data?.findIndex?.(el => el.length === self_.value_.length && el.every((sub_el, index) => self_.value_[index] === sub_el));
2365
- signal_.push(...$9HbP8$createSignal(index_of_us_in_selected_filter >= 0 ? true : false));
2371
+ signal_.push(...$9HbP8$createSignal(index_of_us_in_selected_filter >= 0));
2366
2372
  const [read_checked, write_checked] = signal_;
2367
2373
  const child_objects = Object.values(self_.children_);
2368
2374
  const get_child_object_values = child_objects.map(({
@@ -10005,6 +10011,27 @@ function $4ca91518c9a35379$export$828dcdd425fd3231(aligner) {
10005
10011
  cleanup: cleanup
10006
10012
  };
10007
10013
  }
10014
+
10015
+ /**
10016
+ * Content results ContentCard look stupid on mobile if there are two columns of them, so we limit the number of columns to 1 if the screen is too small
10017
+ */
10018
+ function $1848f7cca286fbab$export$ff7109b9b2b206ba(sdk_cols_at_size, min_width_for_more_than_one_column = 500) {
10019
+ if (!sdk_cols_at_size.length) return sdk_cols_at_size;
10020
+ const sorted_sizes = sdk_cols_at_size.map(([cols, max_width]) => [cols, max_width ?? Infinity]).sort(([, a], [, b]) => a - b);
10021
+ const [[, smallest_max_width]] = sorted_sizes;
10022
+ if (smallest_max_width > min_width_for_more_than_one_column)
10023
+ // If everything above min_width_for_more_than_one_column, we can just add a 1 column at the beginning
10024
+ return [[1, min_width_for_more_than_one_column], ...sdk_cols_at_size];
10025
+ const to_delete = [];
10026
+ for (let i = 0; i < sorted_sizes.length; i++) {
10027
+ const [, max_width] = sorted_sizes[i];
10028
+ if (max_width > min_width_for_more_than_one_column) continue;
10029
+ to_delete.push(i);
10030
+ }
10031
+ while (to_delete.length) sorted_sizes.splice(to_delete.pop(), 1);
10032
+ sorted_sizes.unshift([1, min_width_for_more_than_one_column]);
10033
+ return sorted_sizes.map(([cols, max_width]) => max_width == Infinity ? [cols] : [cols, max_width]);
10034
+ }
10008
10035
  const $806c97b931758897$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<div class="depict plp search"></div>`, 2);
10009
10036
  // We just pass page_url_creator to DepictAPI when we instantiate it, so don't allow it to be specified if api is already specified
10010
10037
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
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,7 +236,7 @@
236
236
  "@babel/plugin-transform-typescript": "^7.22.9",
237
237
  "@babel/runtime": "latest",
238
238
  "@babel/runtime-corejs3": "^7.22.6",
239
- "@depict-ai/plp-styling": "^1.2.4",
239
+ "@depict-ai/plp-styling": "^1.2.5",
240
240
  "@depict-ai/types": "^1.0.39",
241
241
  "@depict-ai/utilishared": "^1.0.42",
242
242
  "solid-js": "^1.7.3"