@depict-ai/ui 4.1.7 → 4.1.8

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 CHANGED
@@ -99,7 +99,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
99
99
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
100
100
  $parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
101
101
  /*! Depict.ai search and product listing SDK */
102
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.1.7";
102
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.1.8";
103
103
 
104
104
  /**
105
105
  * This is a function that will safely clone an object that may contain promises.
@@ -13619,6 +13619,7 @@ function $05f255c0a94b9ca1$export$4405d077f0a20494(_ref) {
13619
13619
  content_results_rows_: [get_history_state_content_results_rows],
13620
13620
  cols_at_size_: cols_at_size_
13621
13621
  } = _ref;
13622
+ const colsShowingNow = $478e5a09664da64c$export$a79e666719b3647c(cols_at_size_);
13622
13623
  const largest_column = $52FdA$solidjs.createMemo(() => {
13623
13624
  const largest_in_cols_at_size = Math.max(...cols_at_size_().map(_ref2 => {
13624
13625
  let [cols] = _ref2;
@@ -13629,7 +13630,10 @@ function $05f255c0a94b9ca1$export$4405d077f0a20494(_ref) {
13629
13630
  });
13630
13631
  const num_placeholders = $52FdA$solidjs.createMemo(() => {
13631
13632
  var _get_history_state_co;
13632
- return ((_get_history_state_co = get_history_state_content_results_rows()) !== null && _get_history_state_co !== void 0 ? _get_history_state_co : (0, $eab939d0b95b75ee$export$70ceae36059a1036)) * largest_column();
13633
+ return (
13634
+ // Use how many columns we're actually showing, if available, so that we're showing exactly as many placeholders as we'd show content, so that the view more button doesn't appear/disappear and makes the layout shift
13635
+ ((_get_history_state_co = get_history_state_content_results_rows()) !== null && _get_history_state_co !== void 0 ? _get_history_state_co : (0, $eab939d0b95b75ee$export$70ceae36059a1036)) * (colsShowingNow() || largest_column())
13636
+ );
13633
13637
  });
13634
13638
  return $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Index), {
13635
13639
  get each() {
package/ES10/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.1.7";
13
+ export const version = "4.1.8";
14
14
  /**
15
15
  * This is a function that will safely clone an object that may contain promises.
16
16
  * It will use structuredClone to clone the object and then re-apply (copy) any promises that were in the original object to the cloned object.
package/ES10/index.js CHANGED
@@ -10,7 +10,7 @@ import { createStore as $8tj43$createStore, reconcile as $8tj43$reconcile } from
10
10
  /*! Depict.ai search and product listing SDK */
11
11
  import { register_es_version } from "../multi_import_deduplicator.mjs";
12
12
  register_es_version("ui", "ES10");
13
- const $8db9a15135765c11$export$83d89fbfd8236492 = "4.1.7";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.1.8";
14
14
 
15
15
  /**
16
16
  * This is a function that will safely clone an object that may contain promises.
@@ -13530,6 +13530,7 @@ function $ad4f3c9872fbeb48$export$4405d077f0a20494(_ref) {
13530
13530
  content_results_rows_: [get_history_state_content_results_rows],
13531
13531
  cols_at_size_: cols_at_size_
13532
13532
  } = _ref;
13533
+ const colsShowingNow = $40e2fa435715a1a0$export$a79e666719b3647c(cols_at_size_);
13533
13534
  const largest_column = $8tj43$createMemo(() => {
13534
13535
  const largest_in_cols_at_size = Math.max(...cols_at_size_().map(_ref2 => {
13535
13536
  let [cols] = _ref2;
@@ -13540,7 +13541,10 @@ function $ad4f3c9872fbeb48$export$4405d077f0a20494(_ref) {
13540
13541
  });
13541
13542
  const num_placeholders = $8tj43$createMemo(() => {
13542
13543
  var _get_history_state_co;
13543
- return ((_get_history_state_co = get_history_state_content_results_rows()) !== null && _get_history_state_co !== void 0 ? _get_history_state_co : (0, $d53ebed6f63304e4$export$70ceae36059a1036)) * largest_column();
13544
+ return (
13545
+ // Use how many columns we're actually showing, if available, so that we're showing exactly as many placeholders as we'd show content, so that the view more button doesn't appear/disappear and makes the layout shift
13546
+ ((_get_history_state_co = get_history_state_content_results_rows()) !== null && _get_history_state_co !== void 0 ? _get_history_state_co : (0, $d53ebed6f63304e4$export$70ceae36059a1036)) * (colsShowingNow() || largest_column())
13547
+ );
13544
13548
  });
13545
13549
  return $8tj43$createComponent((0, $8tj43$Index), {
13546
13550
  get each() {
package/latest/index.cjs CHANGED
@@ -93,7 +93,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
93
93
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
94
94
  $parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
95
95
  /*! Depict.ai search and product listing SDK */
96
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.1.7";
96
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.1.8";
97
97
 
98
98
  /**
99
99
  * This is a function that will safely clone an object that may contain promises.
@@ -12824,12 +12824,15 @@ function $c2f92eb265a14529$export$4405d077f0a20494({
12824
12824
  content_results_rows_: [get_history_state_content_results_rows],
12825
12825
  cols_at_size_: cols_at_size_
12826
12826
  }) {
12827
+ const colsShowingNow = $17d06b3bcb035500$export$a79e666719b3647c(cols_at_size_);
12827
12828
  const largest_column = $gVhhF$solidjs.createMemo(() => {
12828
12829
  const largest_in_cols_at_size = Math.max(...cols_at_size_().map(([cols]) => cols));
12829
12830
  if (isNaN(largest_in_cols_at_size) || Math.abs(largest_in_cols_at_size) === Infinity) return 4; // fallback to something big so we always have the right amount of placeholders
12830
12831
  return largest_in_cols_at_size;
12831
12832
  });
12832
- const num_placeholders = $gVhhF$solidjs.createMemo(() => (get_history_state_content_results_rows() ?? (0, $3716b8caf7f959e2$export$70ceae36059a1036)) * largest_column());
12833
+ const num_placeholders = $gVhhF$solidjs.createMemo(() =>
12834
+ // Use how many columns we're actually showing, if available, so that we're showing exactly as many placeholders as we'd show content, so that the view more button doesn't appear/disappear and makes the layout shift
12835
+ (get_history_state_content_results_rows() ?? (0, $3716b8caf7f959e2$export$70ceae36059a1036)) * (colsShowingNow() || largest_column()));
12833
12836
  return $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Index), {
12834
12837
  get each() {
12835
12838
  return Array.from({
package/latest/index.d.ts CHANGED
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.1.7";
13
+ export const version = "4.1.8";
14
14
  /**
15
15
  * This is a function that will safely clone an object that may contain promises.
16
16
  * It will use structuredClone to clone the object and then re-apply (copy) any promises that were in the original object to the cloned object.
package/latest/index.js CHANGED
@@ -7,7 +7,7 @@ import { createStore as $9HbP8$createStore, reconcile as $9HbP8$reconcile } from
7
7
  /*! Depict.ai search and product listing SDK */
8
8
  import { register_es_version } from "../multi_import_deduplicator.mjs";
9
9
  register_es_version("ui", "latest");
10
- const $ec291e0010116877$export$83d89fbfd8236492 = "4.1.7";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.1.8";
11
11
 
12
12
  /**
13
13
  * This is a function that will safely clone an object that may contain promises.
@@ -12738,12 +12738,15 @@ function $9d5b3ed1fc91c672$export$4405d077f0a20494({
12738
12738
  content_results_rows_: [get_history_state_content_results_rows],
12739
12739
  cols_at_size_: cols_at_size_
12740
12740
  }) {
12741
+ const colsShowingNow = $77348875ac090fcd$export$a79e666719b3647c(cols_at_size_);
12741
12742
  const largest_column = $9HbP8$createMemo(() => {
12742
12743
  const largest_in_cols_at_size = Math.max(...cols_at_size_().map(([cols]) => cols));
12743
12744
  if (isNaN(largest_in_cols_at_size) || Math.abs(largest_in_cols_at_size) === Infinity) return 4; // fallback to something big so we always have the right amount of placeholders
12744
12745
  return largest_in_cols_at_size;
12745
12746
  });
12746
- const num_placeholders = $9HbP8$createMemo(() => (get_history_state_content_results_rows() ?? (0, $49de9d31aeea1b5e$export$70ceae36059a1036)) * largest_column());
12747
+ const num_placeholders = $9HbP8$createMemo(() =>
12748
+ // Use how many columns we're actually showing, if available, so that we're showing exactly as many placeholders as we'd show content, so that the view more button doesn't appear/disappear and makes the layout shift
12749
+ (get_history_state_content_results_rows() ?? (0, $49de9d31aeea1b5e$export$70ceae36059a1036)) * (colsShowingNow() || largest_column()));
12747
12750
  return $9HbP8$createComponent((0, $9HbP8$Index), {
12748
12751
  get each() {
12749
12752
  return Array.from({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.1.7",
3
+ "version": "4.1.8",
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",
@@ -99,7 +99,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447a
99
99
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
100
100
  $parcel$export(module.exports, "SearchField", () => $98aef9965764903d$export$316f6f283ae64765);
101
101
  /*! Depict.ai search and product listing SDK */
102
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.1.7";
102
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.1.8";
103
103
 
104
104
  /**
105
105
  * This is a function that will safely clone an object that may contain promises.
@@ -11213,6 +11213,7 @@ function $05f255c0a94b9ca1$export$4405d077f0a20494(_ref) {
11213
11213
  content_results_rows_: [get_history_state_content_results_rows],
11214
11214
  cols_at_size_: cols_at_size_
11215
11215
  } = _ref;
11216
+ const colsShowingNow = $478e5a09664da64c$export$a79e666719b3647c(cols_at_size_);
11216
11217
  const largest_column = $3hooq$solidjs.createMemo(() => {
11217
11218
  const largest_in_cols_at_size = Math.max(...cols_at_size_().map(_ref2 => {
11218
11219
  let [cols] = _ref2;
@@ -11223,7 +11224,10 @@ function $05f255c0a94b9ca1$export$4405d077f0a20494(_ref) {
11223
11224
  });
11224
11225
  const num_placeholders = $3hooq$solidjs.createMemo(() => {
11225
11226
  var _get_history_state_co;
11226
- return ((_get_history_state_co = get_history_state_content_results_rows()) !== null && _get_history_state_co !== void 0 ? _get_history_state_co : (0, $eab939d0b95b75ee$export$70ceae36059a1036)) * largest_column();
11227
+ return (
11228
+ // Use how many columns we're actually showing, if available, so that we're showing exactly as many placeholders as we'd show content, so that the view more button doesn't appear/disappear and makes the layout shift
11229
+ ((_get_history_state_co = get_history_state_content_results_rows()) !== null && _get_history_state_co !== void 0 ? _get_history_state_co : (0, $eab939d0b95b75ee$export$70ceae36059a1036)) * (colsShowingNow() || largest_column())
11230
+ );
11227
11231
  });
11228
11232
  return $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Index), {
11229
11233
  get each() {
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.1.7";
13
+ export const version = "4.1.8";
14
14
  /**
15
15
  * This is a function that will safely clone an object that may contain promises.
16
16
  * It will use structuredClone to clone the object and then re-apply (copy) any promises that were in the original object to the cloned object.
@@ -10,7 +10,7 @@ import { createStore as $b8hua$createStore, reconcile as $b8hua$reconcile } from
10
10
  /*! Depict.ai search and product listing SDK */
11
11
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
12
12
  register_es_version("ui", "ES10");
13
- const $8db9a15135765c11$export$83d89fbfd8236492 = "4.1.7";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.1.8";
14
14
 
15
15
  /**
16
16
  * This is a function that will safely clone an object that may contain promises.
@@ -11124,6 +11124,7 @@ function $ad4f3c9872fbeb48$export$4405d077f0a20494(_ref) {
11124
11124
  content_results_rows_: [get_history_state_content_results_rows],
11125
11125
  cols_at_size_: cols_at_size_
11126
11126
  } = _ref;
11127
+ const colsShowingNow = $40e2fa435715a1a0$export$a79e666719b3647c(cols_at_size_);
11127
11128
  const largest_column = $b8hua$createMemo(() => {
11128
11129
  const largest_in_cols_at_size = Math.max(...cols_at_size_().map(_ref2 => {
11129
11130
  let [cols] = _ref2;
@@ -11134,7 +11135,10 @@ function $ad4f3c9872fbeb48$export$4405d077f0a20494(_ref) {
11134
11135
  });
11135
11136
  const num_placeholders = $b8hua$createMemo(() => {
11136
11137
  var _get_history_state_co;
11137
- return ((_get_history_state_co = get_history_state_content_results_rows()) !== null && _get_history_state_co !== void 0 ? _get_history_state_co : (0, $d53ebed6f63304e4$export$70ceae36059a1036)) * largest_column();
11138
+ return (
11139
+ // Use how many columns we're actually showing, if available, so that we're showing exactly as many placeholders as we'd show content, so that the view more button doesn't appear/disappear and makes the layout shift
11140
+ ((_get_history_state_co = get_history_state_content_results_rows()) !== null && _get_history_state_co !== void 0 ? _get_history_state_co : (0, $d53ebed6f63304e4$export$70ceae36059a1036)) * (colsShowingNow() || largest_column())
11141
+ );
11138
11142
  });
11139
11143
  return $b8hua$createComponent((0, $b8hua$Index), {
11140
11144
  get each() {
@@ -93,7 +93,7 @@ $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad99
93
93
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
94
94
  $parcel$export(module.exports, "SearchField", () => $c0a0659cf97e8eb2$export$316f6f283ae64765);
95
95
  /*! Depict.ai search and product listing SDK */
96
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.1.7";
96
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.1.8";
97
97
 
98
98
  /**
99
99
  * This is a function that will safely clone an object that may contain promises.
@@ -10488,12 +10488,15 @@ function $c2f92eb265a14529$export$4405d077f0a20494({
10488
10488
  content_results_rows_: [get_history_state_content_results_rows],
10489
10489
  cols_at_size_: cols_at_size_
10490
10490
  }) {
10491
+ const colsShowingNow = $17d06b3bcb035500$export$a79e666719b3647c(cols_at_size_);
10491
10492
  const largest_column = $5vyXB$solidjs.createMemo(() => {
10492
10493
  const largest_in_cols_at_size = Math.max(...cols_at_size_().map(([cols]) => cols));
10493
10494
  if (isNaN(largest_in_cols_at_size) || Math.abs(largest_in_cols_at_size) === Infinity) return 4; // fallback to something big so we always have the right amount of placeholders
10494
10495
  return largest_in_cols_at_size;
10495
10496
  });
10496
- const num_placeholders = $5vyXB$solidjs.createMemo(() => (get_history_state_content_results_rows() ?? (0, $3716b8caf7f959e2$export$70ceae36059a1036)) * largest_column());
10497
+ const num_placeholders = $5vyXB$solidjs.createMemo(() =>
10498
+ // Use how many columns we're actually showing, if available, so that we're showing exactly as many placeholders as we'd show content, so that the view more button doesn't appear/disappear and makes the layout shift
10499
+ (get_history_state_content_results_rows() ?? (0, $3716b8caf7f959e2$export$70ceae36059a1036)) * (colsShowingNow() || largest_column()));
10497
10500
  return $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Index), {
10498
10501
  get each() {
10499
10502
  return Array.from({
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
10
10
  import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "4.1.7";
13
+ export const version = "4.1.8";
14
14
  /**
15
15
  * This is a function that will safely clone an object that may contain promises.
16
16
  * It will use structuredClone to clone the object and then re-apply (copy) any promises that were in the original object to the cloned object.
@@ -7,7 +7,7 @@ import { createStore as $i7OB2$createStore, reconcile as $i7OB2$reconcile } from
7
7
  /*! Depict.ai search and product listing SDK */
8
8
  import { register_es_version } from "../../multi_import_deduplicator.mjs";
9
9
  register_es_version("ui", "latest");
10
- const $ec291e0010116877$export$83d89fbfd8236492 = "4.1.7";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.1.8";
11
11
 
12
12
  /**
13
13
  * This is a function that will safely clone an object that may contain promises.
@@ -10402,12 +10402,15 @@ function $9d5b3ed1fc91c672$export$4405d077f0a20494({
10402
10402
  content_results_rows_: [get_history_state_content_results_rows],
10403
10403
  cols_at_size_: cols_at_size_
10404
10404
  }) {
10405
+ const colsShowingNow = $77348875ac090fcd$export$a79e666719b3647c(cols_at_size_);
10405
10406
  const largest_column = $i7OB2$createMemo(() => {
10406
10407
  const largest_in_cols_at_size = Math.max(...cols_at_size_().map(([cols]) => cols));
10407
10408
  if (isNaN(largest_in_cols_at_size) || Math.abs(largest_in_cols_at_size) === Infinity) return 4; // fallback to something big so we always have the right amount of placeholders
10408
10409
  return largest_in_cols_at_size;
10409
10410
  });
10410
- const num_placeholders = $i7OB2$createMemo(() => (get_history_state_content_results_rows() ?? (0, $49de9d31aeea1b5e$export$70ceae36059a1036)) * largest_column());
10411
+ const num_placeholders = $i7OB2$createMemo(() =>
10412
+ // Use how many columns we're actually showing, if available, so that we're showing exactly as many placeholders as we'd show content, so that the view more button doesn't appear/disappear and makes the layout shift
10413
+ (get_history_state_content_results_rows() ?? (0, $49de9d31aeea1b5e$export$70ceae36059a1036)) * (colsShowingNow() || largest_column()));
10411
10414
  return $i7OB2$createComponent((0, $i7OB2$Index), {
10412
10415
  get each() {
10413
10416
  return Array.from({