@depict-ai/ui 0.0.14 → 0.0.16

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/index.d.ts CHANGED
@@ -34,7 +34,7 @@ export const embedded_num_products: ({ make_product_count_, set_observed_results
34
34
  middle_elements_: Accessor<JSX.Element>;
35
35
  on_filters_constructed_: () => void;
36
36
  };
37
- export const version = "0.0.14";
37
+ export const version = "0.0.16";
38
38
  export function add_to_version_info(stuff_to_add: {
39
39
  [key: string]: string;
40
40
  }): void;
package/dist/main.js CHANGED
@@ -168,7 +168,7 @@ const $93e94e7b0aa8ca88$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
168
168
 
169
169
 
170
170
 
171
- const $b757f75811f3261f$export$83d89fbfd8236492 = "0.0.14";
171
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "0.0.16";
172
172
 
173
173
 
174
174
  /**
@@ -1871,11 +1871,13 @@ function $6e22b5314fb52f4c$export$e183a13865960371(params_to_default_value) {
1871
1871
  return signals;
1872
1872
  }
1873
1873
  function $6e22b5314fb52f4c$var$history_state_change(signals, entries, state) {
1874
- for (const [param, default_value] of entries){
1875
- const [, write_signal] = signals[param];
1876
- const new_value = state?.[param];
1877
- write_signal(new_value ?? default_value);
1878
- }
1874
+ (0, $iBTHO$solidjs.batch)(()=>{
1875
+ for (const [param, default_value] of entries){
1876
+ const [, write_signal] = signals[param];
1877
+ const new_value = state?.[param];
1878
+ write_signal(new_value ?? default_value);
1879
+ }
1880
+ });
1879
1881
  }
1880
1882
 
1881
1883
 
@@ -4274,7 +4276,7 @@ function $70482f04605572e2$export$b288c38ae3fddb56({ available_filters_: availab
4274
4276
  indexes_to_remove.add(i);
4275
4277
  }
4276
4278
  new_meta.values = values.filter((_, index)=>!indexes_to_remove.has(index));
4277
- if (new_meta.names) new_meta.names = new_meta.names = values.filter((_, index)=>!indexes_to_remove.has(index));
4279
+ if (new_meta.names) new_meta.names = new_meta.names.filter((_, index)=>!indexes_to_remove.has(index));
4278
4280
  if (new_meta.counts) // remove counts that are too much, they're all zero anyway if they exist
4279
4281
  new_meta.counts.length -= indexes_to_remove.size;
4280
4282
  }
package/dist/module.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {dlog as $kyEB6$dlog, Placeholder as $kyEB6$Placeholder, catchify as $kyEB6$catchify, base_url as $kyEB6$base_url, get_depict_id as $kyEB6$get_depict_id, get_user_id as $kyEB6$get_user_id, get_session_id as $kyEB6$get_session_id, make_url_with_query_params as $kyEB6$make_url_with_query_params, fetch_retry as $kyEB6$fetch_retry, sort_obj as $kyEB6$sort_obj, version as $kyEB6$version, observer as $kyEB6$observer, report as $kyEB6$report, ContainedPlaceholderImage as $kyEB6$ContainedPlaceholderImage, javascript_media_query as $kyEB6$javascript_media_query, href_change_ipns as $kyEB6$href_change_ipns, standard_price_format as $kyEB6$standard_price_format, deparallelize as $kyEB6$deparallelize, make_asyncIterable_exiter as $kyEB6$make_asyncIterable_exiter, insert_surfaces as $kyEB6$insert_surfaces, Tenant as $kyEB6$Tenant, deparallelize_no_drop as $kyEB6$deparallelize_no_drop, default_rr as $kyEB6$default_rr, make_random_classname as $kyEB6$make_random_classname, n_col_styling_with_dist as $kyEB6$n_col_styling_with_dist, Lazyfier as $kyEB6$Lazyfier, queueMacroTask as $kyEB6$queueMacroTask, Rec_Renderer as $kyEB6$Rec_Renderer, CrossIcon as $kyEB6$CrossIcon, useExpandingContainer as $kyEB6$useExpandingContainer, Amazing_Slider as $kyEB6$Amazing_Slider, slider_snap_css as $kyEB6$slider_snap_css, slider_fading_factory as $kyEB6$slider_fading_factory, MinusIcon as $kyEB6$MinusIcon, FilterIcon as $kyEB6$FilterIcon, SortIconAsc as $kyEB6$SortIconAsc, SortIconDesc as $kyEB6$SortIconDesc, PlusIcon as $kyEB6$PlusIcon, TickIcon as $kyEB6$TickIcon, ArrowUp as $kyEB6$ArrowUp, normal_get_product_id as $kyEB6$normal_get_product_id, GenericSliderArrowButton as $kyEB6$GenericSliderArrowButton, BackIcon as $kyEB6$BackIcon, SearchIcon as $kyEB6$SearchIcon, Layout as $kyEB6$Layout, make_placeholder_rr as $kyEB6$make_placeholder_rr, async_iterable_ipns as $kyEB6$async_iterable_ipns, depict_click as $kyEB6$depict_click, impression_track_element as $kyEB6$impression_track_element, add_new_tab_listener as $kyEB6$add_new_tab_listener, ContainedImage as $kyEB6$ContainedImage, buildThresholdList as $kyEB6$buildThresholdList, PreviousSearchIcon as $kyEB6$PreviousSearchIcon} from "@depict-ai/utilishared";
2
2
  import {template as $kyEB6$template, insert as $kyEB6$insert, createComponent as $kyEB6$createComponent, spread as $kyEB6$spread, effect as $kyEB6$effect, setAttribute as $kyEB6$setAttribute, use as $kyEB6$use, addEventListener as $kyEB6$addEventListener, delegateEvents as $kyEB6$delegateEvents, memo as $kyEB6$memo, style as $kyEB6$style, mergeProps as $kyEB6$mergeProps, classList as $kyEB6$classList, className as $kyEB6$className} from "solid-js/web";
3
- import {createSignal as $kyEB6$createSignal, untrack as $kyEB6$untrack, createMemo as $kyEB6$createMemo, onCleanup as $kyEB6$onCleanup, createEffect as $kyEB6$createEffect, createComputed as $kyEB6$createComputed, createRoot as $kyEB6$createRoot, createResource as $kyEB6$createResource, Show as $kyEB6$Show, createRenderEffect as $kyEB6$createRenderEffect, runWithOwner as $kyEB6$runWithOwner, getOwner as $kyEB6$getOwner, on as $kyEB6$on, Index as $kyEB6$Index, batch as $kyEB6$batch, For as $kyEB6$For, ErrorBoundary as $kyEB6$ErrorBoundary} from "solid-js";
3
+ import {createSignal as $kyEB6$createSignal, untrack as $kyEB6$untrack, createMemo as $kyEB6$createMemo, onCleanup as $kyEB6$onCleanup, createEffect as $kyEB6$createEffect, createComputed as $kyEB6$createComputed, batch as $kyEB6$batch, createRoot as $kyEB6$createRoot, createResource as $kyEB6$createResource, Show as $kyEB6$Show, createRenderEffect as $kyEB6$createRenderEffect, runWithOwner as $kyEB6$runWithOwner, getOwner as $kyEB6$getOwner, on as $kyEB6$on, Index as $kyEB6$Index, For as $kyEB6$For, ErrorBoundary as $kyEB6$ErrorBoundary} from "solid-js";
4
4
 
5
5
  /*! Depict.ai search and product listing SDK */
6
6
 
@@ -117,7 +117,7 @@ const $a79d86d64fb64e8e$export$824dde41348efed1 = /*@__PURE__*/ (()=>{
117
117
 
118
118
 
119
119
 
120
- const $ec291e0010116877$export$83d89fbfd8236492 = "0.0.14";
120
+ const $ec291e0010116877$export$83d89fbfd8236492 = "0.0.16";
121
121
 
122
122
 
123
123
  /**
@@ -1820,11 +1820,13 @@ function $ca6f574bd8772184$export$e183a13865960371(params_to_default_value) {
1820
1820
  return signals;
1821
1821
  }
1822
1822
  function $ca6f574bd8772184$var$history_state_change(signals, entries, state) {
1823
- for (const [param, default_value] of entries){
1824
- const [, write_signal] = signals[param];
1825
- const new_value = state?.[param];
1826
- write_signal(new_value ?? default_value);
1827
- }
1823
+ (0, $kyEB6$batch)(()=>{
1824
+ for (const [param, default_value] of entries){
1825
+ const [, write_signal] = signals[param];
1826
+ const new_value = state?.[param];
1827
+ write_signal(new_value ?? default_value);
1828
+ }
1829
+ });
1828
1830
  }
1829
1831
 
1830
1832
 
@@ -4223,7 +4225,7 @@ function $5efb5894079b220e$export$b288c38ae3fddb56({ available_filters_: availab
4223
4225
  indexes_to_remove.add(i);
4224
4226
  }
4225
4227
  new_meta.values = values.filter((_, index)=>!indexes_to_remove.has(index));
4226
- if (new_meta.names) new_meta.names = new_meta.names = values.filter((_, index)=>!indexes_to_remove.has(index));
4228
+ if (new_meta.names) new_meta.names = new_meta.names.filter((_, index)=>!indexes_to_remove.has(index));
4227
4229
  if (new_meta.counts) // remove counts that are too much, they're all zero anyway if they exist
4228
4230
  new_meta.counts.length -= indexes_to_remove.size;
4229
4231
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "packageManager": "yarn@3.2.2",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",
@@ -36,7 +36,7 @@
36
36
  }
37
37
  },
38
38
  "dependencies": {
39
- "@depict-ai/utilishared": "0.0.12",
39
+ "@depict-ai/utilishared": "^0.0.14",
40
40
  "solid-js": "^1.6.2"
41
41
  },
42
42
  "devDependencies": {