@depict-ai/ui 0.0.81 → 0.0.82

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
@@ -7,7 +7,7 @@ import { SearchSuggestionsResponse, CategorySuggestion } from "@depict-ai/types/
7
7
  import { SearchSuggestionsRequest } from "@depict-ai/types/api/SearchSuggestionsRequest";
8
8
  import { ProductListingRequest } from "@depict-ai/types/api/ProductListingRequest";
9
9
  import { ProductListingResponse } from "@depict-ai/types/api/ProductListingResponse";
10
- export const version = "0.0.81";
10
+ export const version = "0.0.82";
11
11
  export type OnNavigation = ((options: {
12
12
  is_replace: boolean;
13
13
  new_url: URL;
package/dist/main.js CHANGED
@@ -35,7 +35,7 @@ $parcel$export(module.exports, "SolidFormatPrice", () => $5fc9fc23df1591db$expor
35
35
  $parcel$export(module.exports, "connect_search_field_height_to_aligner_height", () => $246e3e89a097f014$export$828dcdd425fd3231);
36
36
  $parcel$export(module.exports, "PageReplacer", () => $37e96a5ebc768cc7$export$3ccaa27d81dd8556);
37
37
  $parcel$export(module.exports, "version", () => $ae93561d5649a847$export$83d89fbfd8236492);
38
- /*! Depict.ai search and product listing SDK */ const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.81";
38
+ /*! Depict.ai search and product listing SDK */ const $ae93561d5649a847$export$83d89fbfd8236492 = "0.0.82";
39
39
 
40
40
 
41
41
 
@@ -4159,7 +4159,10 @@ function $881cb1745bafff7a$var$OpenSortingButton({ i18n_: i18n_ , get_current_so
4159
4159
  (0, $46MJV$solidjsweb.setAttribute)(_el$12, "tabindex", tabindex_);
4160
4160
  (0, $46MJV$solidjsweb.insert)(_el$13, (()=>{
4161
4161
  const _c$ = (0, $46MJV$solidjsweb.memo)(()=>!!sorting_closed());
4162
- return ()=>_c$() && (meta_of_currently_selected_sorting_()?.title || available_sortings_()?.[0]?.meta?.title) || i18n_.sorting_text_();
4162
+ return ()=>// Show the title of the currently selected sorting when the sorting is closed, if there's currently a sorting selected
4163
+ // This is to balance that both it should be easy to find the sorting and to see what sorting currently is set
4164
+ // See issue description of https://gitlab.com/depict-ai/depict.ai/-/merge_requests/6537
4165
+ _c$() && meta_of_currently_selected_sorting_()?.title || i18n_.sorting_text_();
4163
4166
  })());
4164
4167
  (0, $46MJV$solidjsweb.insert)(_el$12, (0, $46MJV$solidjsweb.createComponent)((0, $46MJV$solidjs.Show), {
4165
4168
  get when () {
package/dist/module.js CHANGED
@@ -3,7 +3,7 @@ import {template as $g9l4l$template, insert as $g9l4l$insert, effect as $g9l4l$e
3
3
  import {createSignal as $g9l4l$createSignal, onCleanup as $g9l4l$onCleanup, createComputed as $g9l4l$createComputed, createRenderEffect as $g9l4l$createRenderEffect, createEffect as $g9l4l$createEffect, untrack as $g9l4l$untrack, batch as $g9l4l$batch, createResource as $g9l4l$createResource, createMemo as $g9l4l$createMemo, Show as $g9l4l$Show, createReaction as $g9l4l$createReaction, Suspense as $g9l4l$Suspense, on as $g9l4l$on, createRoot as $g9l4l$createRoot, ErrorBoundary as $g9l4l$ErrorBoundary, For as $g9l4l$For, getOwner as $g9l4l$getOwner, runWithOwner as $g9l4l$runWithOwner, Index as $g9l4l$Index} from "solid-js";
4
4
  import {compressToBase64 as $g9l4l$compressToBase64, decompressFromBase64 as $g9l4l$decompressFromBase64} from "lz-string";
5
5
 
6
- /*! Depict.ai search and product listing SDK */ const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.81";
6
+ /*! Depict.ai search and product listing SDK */ const $18bf1d29fb889cca$export$83d89fbfd8236492 = "0.0.82";
7
7
 
8
8
 
9
9
 
@@ -4127,7 +4127,10 @@ function $bf7fe049e78f975a$var$OpenSortingButton({ i18n_: i18n_ , get_current_so
4127
4127
  (0, $g9l4l$setAttribute)(_el$12, "tabindex", tabindex_);
4128
4128
  (0, $g9l4l$insert)(_el$13, (()=>{
4129
4129
  const _c$ = (0, $g9l4l$memo)(()=>!!sorting_closed());
4130
- return ()=>_c$() && (meta_of_currently_selected_sorting_()?.title || available_sortings_()?.[0]?.meta?.title) || i18n_.sorting_text_();
4130
+ return ()=>// Show the title of the currently selected sorting when the sorting is closed, if there's currently a sorting selected
4131
+ // This is to balance that both it should be easy to find the sorting and to see what sorting currently is set
4132
+ // See issue description of https://gitlab.com/depict-ai/depict.ai/-/merge_requests/6537
4133
+ _c$() && meta_of_currently_selected_sorting_()?.title || i18n_.sorting_text_();
4131
4134
  })());
4132
4135
  (0, $g9l4l$insert)(_el$12, (0, $g9l4l$createComponent)((0, $g9l4l$Show), {
4133
4136
  get when () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "0.0.81",
3
+ "version": "0.0.82",
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
  "source": [
@@ -92,9 +92,9 @@
92
92
  "ts-jest": "^29.0.3"
93
93
  },
94
94
  "dependencies": {
95
- "@depict-ai/plp-styling": "^0.0.43",
96
- "@depict-ai/types": "^0.0.33",
97
- "@depict-ai/utilishared": "^0.0.85",
95
+ "@depict-ai/plp-styling": "^0.0.44",
96
+ "@depict-ai/types": "^0.0.34",
97
+ "@depict-ai/utilishared": "^0.0.86",
98
98
  "lz-string": "^1.4.4",
99
99
  "solid-js": "^1.7.3"
100
100
  },