@depict-ai/ui 3.0.10 → 3.0.12

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
@@ -83,7 +83,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
83
83
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
84
84
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
85
85
  /*! Depict.ai search and product listing SDK */
86
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.10";
86
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.12";
87
87
  const $9d19451330d04c3c$var$_tmpl$ = /*#__PURE__*/$52FdA$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
88
88
  function $9d19451330d04c3c$export$8be2714ec7f169ee() {
89
89
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -8599,8 +8599,11 @@ async function $fef4890f1f8e0544$export$cc42dd29bf655ab6(_ref2) {
8599
8599
  const new_displays = last_response.displays;
8600
8600
  displays.push(...new_displays);
8601
8601
  next_cursor = last_response.cursor;
8602
- if (new_displays.length < fetch_this_time && last_response.failed !== true) break;
8603
8602
  const left_to_fetch = total_products_to_fetch - displays.length;
8603
+ if (!next_cursor) {
8604
+ if (left_to_fetch > 0) $52FdA$depictaiutilishared.dwarn("Got response without a cursor when attempting to restore scroll position, giving up", last_response, total_products_to_fetch, displays);
8605
+ break;
8606
+ }
8604
8607
  fetch_this_time = left_to_fetch < $fef4890f1f8e0544$var$api_max_products_per_request ? left_to_fetch : $fef4890f1f8e0544$var$api_max_products_per_request;
8605
8608
  }
8606
8609
  return {
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 _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "3.0.10";
13
+ export const version = "3.0.12";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -965,7 +965,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
965
965
  category_title: typeof CategoryTitle | typeof embedded_num_products;
966
966
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
967
967
  content_blocks_by_row?: ContentBlocksByRow;
968
- }): import("@depict-ai/utilishared/latest").Node_Array;
968
+ }): import("@depict-ai/utilishared").Node_Array;
969
969
  export function BreadCrumbs<T extends Display>({
970
970
  depict_category
971
971
  }: {
@@ -1117,7 +1117,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1117
1117
  * Open the modal with support for alignment.
1118
1118
  * @returns {void}
1119
1119
  */
1120
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1120
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1121
1121
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1122
1122
  export interface PageReplacer {
1123
1123
  readonly render_: () => Node_Array;
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 = "3.0.10";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.12";
14
14
  const $ca6ab5f08bd28bca$var$_tmpl$ = /*#__PURE__*/$8tj43$template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
15
15
  function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
16
16
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -8526,8 +8526,11 @@ async function $5e6abec0dab4e610$export$cc42dd29bf655ab6(_ref2) {
8526
8526
  const new_displays = last_response.displays;
8527
8527
  displays.push(...new_displays);
8528
8528
  next_cursor = last_response.cursor;
8529
- if (new_displays.length < fetch_this_time && last_response.failed !== true) break;
8530
8529
  const left_to_fetch = total_products_to_fetch - displays.length;
8530
+ if (!next_cursor) {
8531
+ if (left_to_fetch > 0) $8tj43$dwarn("Got response without a cursor when attempting to restore scroll position, giving up", last_response, total_products_to_fetch, displays);
8532
+ break;
8533
+ }
8531
8534
  fetch_this_time = left_to_fetch < $5e6abec0dab4e610$var$api_max_products_per_request ? left_to_fetch : $5e6abec0dab4e610$var$api_max_products_per_request;
8532
8535
  }
8533
8536
  return {
package/latest/index.cjs CHANGED
@@ -77,7 +77,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
77
77
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
78
78
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
79
79
  /*! Depict.ai search and product listing SDK */
80
- const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.10";
80
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.12";
81
81
  const $0f313083912e447a$var$_tmpl$ = /*#__PURE__*/$gVhhF$solidjsweb.template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
82
82
  function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
83
83
  return (() => {
@@ -8070,8 +8070,11 @@ async function $276380e4607fb9fb$export$cc42dd29bf655ab6({
8070
8070
  const new_displays = last_response.displays;
8071
8071
  displays.push(...new_displays);
8072
8072
  next_cursor = last_response.cursor;
8073
- if (new_displays.length < fetch_this_time && last_response.failed !== true) break;
8074
8073
  const left_to_fetch = total_products_to_fetch - displays.length;
8074
+ if (!next_cursor) {
8075
+ if (left_to_fetch > 0) $gVhhF$depictaiutilishared.dwarn("Got response without a cursor when attempting to restore scroll position, giving up", last_response, total_products_to_fetch, displays);
8076
+ break;
8077
+ }
8075
8078
  fetch_this_time = left_to_fetch < $276380e4607fb9fb$var$api_max_products_per_request ? left_to_fetch : $276380e4607fb9fb$var$api_max_products_per_request;
8076
8079
  }
8077
8080
  return {
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 _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "3.0.10";
13
+ export const version = "3.0.12";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -965,7 +965,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
965
965
  category_title: typeof CategoryTitle | typeof embedded_num_products;
966
966
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
967
967
  content_blocks_by_row?: ContentBlocksByRow;
968
- }): import("@depict-ai/utilishared/latest").Node_Array;
968
+ }): import("@depict-ai/utilishared").Node_Array;
969
969
  export function BreadCrumbs<T extends Display>({
970
970
  depict_category
971
971
  }: {
@@ -1117,7 +1117,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1117
1117
  * Open the modal with support for alignment.
1118
1118
  * @returns {void}
1119
1119
  */
1120
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1120
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1121
1121
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1122
1122
  export interface PageReplacer {
1123
1123
  readonly render_: () => Node_Array;
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 = "3.0.10";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.12";
11
11
  const $fbbadcb080ad1d4a$var$_tmpl$ = /*#__PURE__*/$9HbP8$template(`<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0"fill=#0f0f0f>`);
12
12
  function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
13
13
  return (() => {
@@ -8000,8 +8000,11 @@ async function $641bba2917fe862b$export$cc42dd29bf655ab6({
8000
8000
  const new_displays = last_response.displays;
8001
8001
  displays.push(...new_displays);
8002
8002
  next_cursor = last_response.cursor;
8003
- if (new_displays.length < fetch_this_time && last_response.failed !== true) break;
8004
8003
  const left_to_fetch = total_products_to_fetch - displays.length;
8004
+ if (!next_cursor) {
8005
+ if (left_to_fetch > 0) $9HbP8$dwarn("Got response without a cursor when attempting to restore scroll position, giving up", last_response, total_products_to_fetch, displays);
8006
+ break;
8007
+ }
8005
8008
  fetch_this_time = left_to_fetch < $641bba2917fe862b$var$api_max_products_per_request ? left_to_fetch : $641bba2917fe862b$var$api_max_products_per_request;
8006
8009
  }
8007
8010
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "3.0.10",
3
+ "version": "3.0.12",
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",
@@ -238,7 +238,7 @@
238
238
  "@babel/runtime-corejs3": "^7.22.6",
239
239
  "@depict-ai/plp-styling": "^2.0.2",
240
240
  "@depict-ai/types": "^5.0.2",
241
- "@depict-ai/utilishared": "^2.0.4",
241
+ "@depict-ai/utilishared": "^2.0.6",
242
242
  "solid-js": "^1.8.1"
243
243
  },
244
244
  "type": "module",
@@ -83,7 +83,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $33eed84f447aa0c0$expo
83
83
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $33eed84f447aa0c0$export$7bf543b9d9be2c22);
84
84
  $parcel$export(module.exports, "version", () => $aa1938dec50d6c12$export$83d89fbfd8236492);
85
85
  /*! Depict.ai search and product listing SDK */
86
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.10";
86
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "3.0.12";
87
87
  const $9d19451330d04c3c$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
88
88
  function $9d19451330d04c3c$export$8be2714ec7f169ee() {
89
89
  var _$escape2, _$escape3;
@@ -7046,8 +7046,11 @@ async function $fef4890f1f8e0544$export$cc42dd29bf655ab6(_ref2) {
7046
7046
  const new_displays = last_response.displays;
7047
7047
  displays.push(...new_displays);
7048
7048
  next_cursor = last_response.cursor;
7049
- if (new_displays.length < fetch_this_time && last_response.failed !== true) break;
7050
7049
  const left_to_fetch = total_products_to_fetch - displays.length;
7050
+ if (!next_cursor) {
7051
+ if (left_to_fetch > 0) $3hooq$depictaiutilishared.dwarn("Got response without a cursor when attempting to restore scroll position, giving up", last_response, total_products_to_fetch, displays);
7052
+ break;
7053
+ }
7051
7054
  fetch_this_time = left_to_fetch < $fef4890f1f8e0544$var$api_max_products_per_request ? left_to_fetch : $fef4890f1f8e0544$var$api_max_products_per_request;
7052
7055
  }
7053
7056
  return {
@@ -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 _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "3.0.10";
13
+ export const version = "3.0.12";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -965,7 +965,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
965
965
  category_title: typeof CategoryTitle | typeof embedded_num_products;
966
966
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
967
967
  content_blocks_by_row?: ContentBlocksByRow;
968
- }): import("@depict-ai/utilishared/latest").Node_Array;
968
+ }): import("@depict-ai/utilishared").Node_Array;
969
969
  export function BreadCrumbs<T extends Display>({
970
970
  depict_category
971
971
  }: {
@@ -1117,7 +1117,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1117
1117
  * Open the modal with support for alignment.
1118
1118
  * @returns {void}
1119
1119
  */
1120
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1120
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1121
1121
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1122
1122
  export interface PageReplacer {
1123
1123
  readonly render_: () => Node_Array;
@@ -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 = "3.0.10";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "3.0.12";
14
14
  const $ca6ab5f08bd28bca$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
15
15
  function $ca6ab5f08bd28bca$export$8be2714ec7f169ee() {
16
16
  var _$escape2, _$escape3;
@@ -6973,8 +6973,11 @@ async function $5e6abec0dab4e610$export$cc42dd29bf655ab6(_ref2) {
6973
6973
  const new_displays = last_response.displays;
6974
6974
  displays.push(...new_displays);
6975
6975
  next_cursor = last_response.cursor;
6976
- if (new_displays.length < fetch_this_time && last_response.failed !== true) break;
6977
6976
  const left_to_fetch = total_products_to_fetch - displays.length;
6977
+ if (!next_cursor) {
6978
+ if (left_to_fetch > 0) $b8hua$dwarn("Got response without a cursor when attempting to restore scroll position, giving up", last_response, total_products_to_fetch, displays);
6979
+ break;
6980
+ }
6978
6981
  fetch_this_time = left_to_fetch < $5e6abec0dab4e610$var$api_max_products_per_request ? left_to_fetch : $5e6abec0dab4e610$var$api_max_products_per_request;
6979
6982
  }
6980
6983
  return {
@@ -77,7 +77,7 @@ $parcel$export(module.exports, "defaultColsAtSize", () => $a3280f0aad997933$expo
77
77
  $parcel$export(module.exports, "defaultCategoryTitlePlugin", () => $a3280f0aad997933$export$7bf543b9d9be2c22);
78
78
  $parcel$export(module.exports, "version", () => $b757f75811f3261f$export$83d89fbfd8236492);
79
79
  /*! Depict.ai search and product listing SDK */
80
- const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.10";
80
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "3.0.12";
81
81
  const $0f313083912e447a$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
82
82
  function $0f313083912e447a$export$8be2714ec7f169ee(props = {}) {
83
83
  return $5vyXB$solidjsweb.ssr($0f313083912e447a$var$_tmpl$, $5vyXB$solidjsweb.ssrHydrationKey(), $5vyXB$solidjsweb.ssrAttribute("width", $5vyXB$solidjsweb.escape(props.width_, true) ?? 14, false) + $5vyXB$solidjsweb.ssrAttribute("height", $5vyXB$solidjsweb.escape(props.height_, true) ?? 26, false));
@@ -6572,8 +6572,11 @@ async function $276380e4607fb9fb$export$cc42dd29bf655ab6({
6572
6572
  const new_displays = last_response.displays;
6573
6573
  displays.push(...new_displays);
6574
6574
  next_cursor = last_response.cursor;
6575
- if (new_displays.length < fetch_this_time && last_response.failed !== true) break;
6576
6575
  const left_to_fetch = total_products_to_fetch - displays.length;
6576
+ if (!next_cursor) {
6577
+ if (left_to_fetch > 0) $5vyXB$depictaiutilishared.dwarn("Got response without a cursor when attempting to restore scroll position, giving up", last_response, total_products_to_fetch, displays);
6578
+ break;
6579
+ }
6577
6580
  fetch_this_time = left_to_fetch < $276380e4607fb9fb$var$api_max_products_per_request ? left_to_fetch : $276380e4607fb9fb$var$api_max_products_per_request;
6578
6581
  }
6579
6582
  return {
@@ -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 _SearchFilter2 } from "@depict-ai/types/api/SearchRequestV2";
13
- export const version = "3.0.10";
13
+ export const version = "3.0.12";
14
14
  export type SDKColsAtSize = [number, number?][];
15
15
  /**
16
16
  * Transform SDK ColsAtSize into valid Layout ColsAtSize
@@ -965,7 +965,7 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
965
965
  category_title: typeof CategoryTitle | typeof embedded_num_products;
966
966
  on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
967
967
  content_blocks_by_row?: ContentBlocksByRow;
968
- }): import("@depict-ai/utilishared/latest").Node_Array;
968
+ }): import("@depict-ai/utilishared").Node_Array;
969
969
  export function BreadCrumbs<T extends Display>({
970
970
  depict_category
971
971
  }: {
@@ -1117,7 +1117,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1117
1117
  * Open the modal with support for alignment.
1118
1118
  * @returns {void}
1119
1119
  */
1120
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1120
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1121
1121
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1122
1122
  export interface PageReplacer {
1123
1123
  readonly render_: () => Node_Array;
@@ -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 = "3.0.10";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "3.0.12";
11
11
  const $fbbadcb080ad1d4a$var$_tmpl$ = ["<svg", ' xmlns="http://www.w3.org/2000/svg"', ' viewBox="0 0 14 26"><path d="M2 24.656c-.078 0-.156-.016-.234-.047s-.133-.066-.187-.129c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422l10.371-10.371L1.578 2.883c-.117-.117-.176-.258-.176-.422s.059-.305.176-.422.258-.176.422-.176.305.059.422.176l10.805 10.793a.59.59 0 0 1 .176.434c0 .172-.059.305-.176.422L2.422 24.48a.42.42 0 0 1-.199.129.54.54 0 0 1-.223.047zm0 0" fill="#0f0f0f"></path></svg>'];
12
12
  function $fbbadcb080ad1d4a$export$8be2714ec7f169ee(props = {}) {
13
13
  return $i7OB2$ssr($fbbadcb080ad1d4a$var$_tmpl$, $i7OB2$ssrHydrationKey(), $i7OB2$ssrAttribute("width", $i7OB2$escape(props.width_, true) ?? 14, false) + $i7OB2$ssrAttribute("height", $i7OB2$escape(props.height_, true) ?? 26, false));
@@ -6502,8 +6502,11 @@ async function $641bba2917fe862b$export$cc42dd29bf655ab6({
6502
6502
  const new_displays = last_response.displays;
6503
6503
  displays.push(...new_displays);
6504
6504
  next_cursor = last_response.cursor;
6505
- if (new_displays.length < fetch_this_time && last_response.failed !== true) break;
6506
6505
  const left_to_fetch = total_products_to_fetch - displays.length;
6506
+ if (!next_cursor) {
6507
+ if (left_to_fetch > 0) $i7OB2$dwarn("Got response without a cursor when attempting to restore scroll position, giving up", last_response, total_products_to_fetch, displays);
6508
+ break;
6509
+ }
6507
6510
  fetch_this_time = left_to_fetch < $641bba2917fe862b$var$api_max_products_per_request ? left_to_fetch : $641bba2917fe862b$var$api_max_products_per_request;
6508
6511
  }
6509
6512
  return {