@depict-ai/ui 4.8.29 → 4.8.30

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
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
115
115
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
116
116
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
117
117
  /*! Depict.ai search and product listing SDK */
118
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.29";
118
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.30";
119
119
  function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
120
120
  const signal = $52FdA$solidjs.createSignal(false);
121
121
  $52FdA$solidjs.onCleanup($52FdA$depictaiutilishared.javascript_media_query(media_query, _ref => {
@@ -8242,6 +8242,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
8242
8242
  const first_result_in_viewport_ = $52FdA$solidjs.createSignal();
8243
8243
  const last_result_in_viewport_ = $52FdA$solidjs.createSignal();
8244
8244
  const all_products_loaded_ = $52FdA$solidjs.createSignal(false);
8245
+ const [, setAllProductsLoaded] = all_products_loaded_;
8245
8246
  const [currentlyLoadedDisplays, setCurrentlyLoadedDisplays_] = $52FdA$solidjs.createSignal(0);
8246
8247
  const [can_write_scroll_restoration_, set_can_write_scroll_restoration] = $52FdA$solidjs.createSignal(false);
8247
8248
  const owner = $52FdA$solidjs.getOwner();
@@ -8271,31 +8272,34 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
8271
8272
  // Make "Get products in listing" request to get products in listing
8272
8273
  const [plp_products_] = $52FdA$solidjs.createResource(products_query_base_,
8273
8274
  // only first page of results, unless the history state says we should load more (can't do that in load more thing, I tested, they need to be added at once for the browser to not give up scroll restoration)
8274
- $52FdA$depictaiutilisharedlatest.catchify(base_query => $fef4890f1f8e0544$export$cc42dd29bf655ab6({
8275
- id_: $52FdA$solidjs.untrack(id_to_query_for_),
8276
- scroll_restoration_data_: scroll_restoration_data_,
8277
- min_products_to_fetch_: min_products_to_fetch_,
8278
- make_request_: (limit, cursor) => depict_api_.get_listing_products({
8279
- ...base_query,
8280
- limit: limit,
8281
- ...(cursor ? {
8282
- cursor: cursor
8283
- } : {}),
8284
- // This gets exposed to the products display transformer and gives it information about the listing the products are in
8285
- // It's very hard to implement tracking that uses the collection title without this information
8286
- currentListingForTransformer_: new Promise(resolve => $52FdA$solidjs.createRoot(dispose => {
8287
- $52FdA$solidjs.createEffect($52FdA$depictaiutilisharedlatest.catchify(() => {
8288
- const key = base_query.id_type_ + base_query.id_to_query_for_;
8289
- const metaResponsePromise = metaRequestsForQuery().get(key);
8290
- if (!metaResponsePromise) return;
8291
- resolve(metaResponsePromise);
8292
- dispose();
8293
- setMetaRequestsForQuery(prev => (prev.delete(key), prev));
8294
- }));
8295
- $52FdA$solidjs.runWithOwner(owner, () => $52FdA$solidjs.onCleanup(dispose));
8296
- }))
8297
- })
8298
- })));
8275
+ $52FdA$depictaiutilisharedlatest.catchify(base_query => {
8276
+ setAllProductsLoaded(false);
8277
+ return $fef4890f1f8e0544$export$cc42dd29bf655ab6({
8278
+ id_: $52FdA$solidjs.untrack(id_to_query_for_),
8279
+ scroll_restoration_data_: scroll_restoration_data_,
8280
+ min_products_to_fetch_: min_products_to_fetch_,
8281
+ make_request_: (limit, cursor) => depict_api_.get_listing_products({
8282
+ ...base_query,
8283
+ limit: limit,
8284
+ ...(cursor ? {
8285
+ cursor: cursor
8286
+ } : {}),
8287
+ // This gets exposed to the products display transformer and gives it information about the listing the products are in
8288
+ // It's very hard to implement tracking that uses the collection title without this information
8289
+ currentListingForTransformer_: new Promise(resolve => $52FdA$solidjs.createRoot(dispose => {
8290
+ $52FdA$solidjs.createEffect($52FdA$depictaiutilisharedlatest.catchify(() => {
8291
+ const key = base_query.id_type_ + base_query.id_to_query_for_;
8292
+ const metaResponsePromise = metaRequestsForQuery().get(key);
8293
+ if (!metaResponsePromise) return;
8294
+ resolve(metaResponsePromise);
8295
+ dispose();
8296
+ setMetaRequestsForQuery(prev => (prev.delete(key), prev));
8297
+ }));
8298
+ $52FdA$solidjs.runWithOwner(owner, () => $52FdA$solidjs.onCleanup(dispose));
8299
+ }))
8300
+ })
8301
+ });
8302
+ }));
8299
8303
  const meta_query_base = $e4bc31358c414b18$export$210f130a61ac1e8d(() => ({
8300
8304
  merchant: merchant_(),
8301
8305
  market: market_(),
package/ES10/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.8.29";
14
+ export const version = "4.8.30";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
@@ -1538,7 +1538,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1538
1538
  * Open the modal with support for alignment.
1539
1539
  * @returns {void}
1540
1540
  */
1541
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1541
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1542
1542
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1543
1543
  export interface PageReplacer {
1544
1544
  readonly render_: () => Node_Array;
@@ -1618,5 +1618,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1618
1618
  layout?: PossibleLayout;
1619
1619
  filterModalParent_?: HTMLElement | ShadowRoot;
1620
1620
  showSliderArrow_?: boolean;
1621
- }): import("@depict-ai/utilishared").Node_Array;
1621
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1622
1622
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
package/ES10/index.js CHANGED
@@ -10,7 +10,7 @@ import $8tj43$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
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.8.29";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.30";
14
14
  function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
15
15
  const signal = $8tj43$createSignal(false);
16
16
  $8tj43$onCleanup($8tj43$javascript_media_query(media_query, _ref => {
@@ -8137,6 +8137,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
8137
8137
  const first_result_in_viewport_ = $8tj43$createSignal();
8138
8138
  const last_result_in_viewport_ = $8tj43$createSignal();
8139
8139
  const all_products_loaded_ = $8tj43$createSignal(false);
8140
+ const [, setAllProductsLoaded] = all_products_loaded_;
8140
8141
  const [currentlyLoadedDisplays, setCurrentlyLoadedDisplays_] = $8tj43$createSignal(0);
8141
8142
  const [can_write_scroll_restoration_, set_can_write_scroll_restoration] = $8tj43$createSignal(false);
8142
8143
  const owner = $8tj43$getOwner();
@@ -8166,31 +8167,34 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
8166
8167
  // Make "Get products in listing" request to get products in listing
8167
8168
  const [plp_products_] = $8tj43$createResource(products_query_base_,
8168
8169
  // only first page of results, unless the history state says we should load more (can't do that in load more thing, I tested, they need to be added at once for the browser to not give up scroll restoration)
8169
- $8tj43$catchify(base_query => $5e6abec0dab4e610$export$cc42dd29bf655ab6({
8170
- id_: $8tj43$untrack(id_to_query_for_),
8171
- scroll_restoration_data_: scroll_restoration_data_,
8172
- min_products_to_fetch_: min_products_to_fetch_,
8173
- make_request_: (limit, cursor) => depict_api_.get_listing_products({
8174
- ...base_query,
8175
- limit: limit,
8176
- ...(cursor ? {
8177
- cursor: cursor
8178
- } : {}),
8179
- // This gets exposed to the products display transformer and gives it information about the listing the products are in
8180
- // It's very hard to implement tracking that uses the collection title without this information
8181
- currentListingForTransformer_: new Promise(resolve => $8tj43$createRoot(dispose => {
8182
- $8tj43$createEffect($8tj43$catchify(() => {
8183
- const key = base_query.id_type_ + base_query.id_to_query_for_;
8184
- const metaResponsePromise = metaRequestsForQuery().get(key);
8185
- if (!metaResponsePromise) return;
8186
- resolve(metaResponsePromise);
8187
- dispose();
8188
- setMetaRequestsForQuery(prev => (prev.delete(key), prev));
8189
- }));
8190
- $8tj43$runWithOwner(owner, () => $8tj43$onCleanup(dispose));
8191
- }))
8192
- })
8193
- })));
8170
+ $8tj43$catchify(base_query => {
8171
+ setAllProductsLoaded(false);
8172
+ return $5e6abec0dab4e610$export$cc42dd29bf655ab6({
8173
+ id_: $8tj43$untrack(id_to_query_for_),
8174
+ scroll_restoration_data_: scroll_restoration_data_,
8175
+ min_products_to_fetch_: min_products_to_fetch_,
8176
+ make_request_: (limit, cursor) => depict_api_.get_listing_products({
8177
+ ...base_query,
8178
+ limit: limit,
8179
+ ...(cursor ? {
8180
+ cursor: cursor
8181
+ } : {}),
8182
+ // This gets exposed to the products display transformer and gives it information about the listing the products are in
8183
+ // It's very hard to implement tracking that uses the collection title without this information
8184
+ currentListingForTransformer_: new Promise(resolve => $8tj43$createRoot(dispose => {
8185
+ $8tj43$createEffect($8tj43$catchify(() => {
8186
+ const key = base_query.id_type_ + base_query.id_to_query_for_;
8187
+ const metaResponsePromise = metaRequestsForQuery().get(key);
8188
+ if (!metaResponsePromise) return;
8189
+ resolve(metaResponsePromise);
8190
+ dispose();
8191
+ setMetaRequestsForQuery(prev => (prev.delete(key), prev));
8192
+ }));
8193
+ $8tj43$runWithOwner(owner, () => $8tj43$onCleanup(dispose));
8194
+ }))
8195
+ })
8196
+ });
8197
+ }));
8194
8198
  const meta_query_base = $ec225bf1f1627ea8$export$210f130a61ac1e8d(() => ({
8195
8199
  merchant: merchant_(),
8196
8200
  market: market_(),
package/latest/index.cjs CHANGED
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
109
109
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
110
110
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
111
111
  /*! Depict.ai search and product listing SDK */
112
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.29";
112
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.30";
113
113
  function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
114
114
  const signal = $gVhhF$solidjs.createSignal(false);
115
115
  $gVhhF$solidjs.onCleanup($gVhhF$depictaiutilishared.javascript_media_query(media_query, ({
@@ -7800,6 +7800,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
7800
7800
  const first_result_in_viewport_ = $gVhhF$solidjs.createSignal();
7801
7801
  const last_result_in_viewport_ = $gVhhF$solidjs.createSignal();
7802
7802
  const all_products_loaded_ = $gVhhF$solidjs.createSignal(false);
7803
+ const [, setAllProductsLoaded] = all_products_loaded_;
7803
7804
  const [currentlyLoadedDisplays, setCurrentlyLoadedDisplays_] = $gVhhF$solidjs.createSignal(0);
7804
7805
  const [can_write_scroll_restoration_, set_can_write_scroll_restoration] = $gVhhF$solidjs.createSignal(false);
7805
7806
  const owner = $gVhhF$solidjs.getOwner();
@@ -7829,31 +7830,34 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
7829
7830
  // Make "Get products in listing" request to get products in listing
7830
7831
  const [plp_products_] = $gVhhF$solidjs.createResource(products_query_base_,
7831
7832
  // only first page of results, unless the history state says we should load more (can't do that in load more thing, I tested, they need to be added at once for the browser to not give up scroll restoration)
7832
- $gVhhF$depictaiutilisharedlatest.catchify(base_query => $276380e4607fb9fb$export$cc42dd29bf655ab6({
7833
- id_: $gVhhF$solidjs.untrack(id_to_query_for_),
7834
- scroll_restoration_data_: scroll_restoration_data_,
7835
- min_products_to_fetch_: min_products_to_fetch_,
7836
- make_request_: (limit, cursor) => depict_api_.get_listing_products({
7837
- ...base_query,
7838
- limit: limit,
7839
- ...(cursor ? {
7840
- cursor: cursor
7841
- } : {}),
7842
- // This gets exposed to the products display transformer and gives it information about the listing the products are in
7843
- // It's very hard to implement tracking that uses the collection title without this information
7844
- currentListingForTransformer_: new Promise(resolve => $gVhhF$solidjs.createRoot(dispose => {
7845
- $gVhhF$solidjs.createEffect($gVhhF$depictaiutilisharedlatest.catchify(() => {
7846
- const key = base_query.id_type_ + base_query.id_to_query_for_;
7847
- const metaResponsePromise = metaRequestsForQuery().get(key);
7848
- if (!metaResponsePromise) return;
7849
- resolve(metaResponsePromise);
7850
- dispose();
7851
- setMetaRequestsForQuery(prev => (prev.delete(key), prev));
7852
- }));
7853
- $gVhhF$solidjs.runWithOwner(owner, () => $gVhhF$solidjs.onCleanup(dispose));
7854
- }))
7855
- })
7856
- })));
7833
+ $gVhhF$depictaiutilisharedlatest.catchify(base_query => {
7834
+ setAllProductsLoaded(false);
7835
+ return $276380e4607fb9fb$export$cc42dd29bf655ab6({
7836
+ id_: $gVhhF$solidjs.untrack(id_to_query_for_),
7837
+ scroll_restoration_data_: scroll_restoration_data_,
7838
+ min_products_to_fetch_: min_products_to_fetch_,
7839
+ make_request_: (limit, cursor) => depict_api_.get_listing_products({
7840
+ ...base_query,
7841
+ limit: limit,
7842
+ ...(cursor ? {
7843
+ cursor: cursor
7844
+ } : {}),
7845
+ // This gets exposed to the products display transformer and gives it information about the listing the products are in
7846
+ // It's very hard to implement tracking that uses the collection title without this information
7847
+ currentListingForTransformer_: new Promise(resolve => $gVhhF$solidjs.createRoot(dispose => {
7848
+ $gVhhF$solidjs.createEffect($gVhhF$depictaiutilisharedlatest.catchify(() => {
7849
+ const key = base_query.id_type_ + base_query.id_to_query_for_;
7850
+ const metaResponsePromise = metaRequestsForQuery().get(key);
7851
+ if (!metaResponsePromise) return;
7852
+ resolve(metaResponsePromise);
7853
+ dispose();
7854
+ setMetaRequestsForQuery(prev => (prev.delete(key), prev));
7855
+ }));
7856
+ $gVhhF$solidjs.runWithOwner(owner, () => $gVhhF$solidjs.onCleanup(dispose));
7857
+ }))
7858
+ })
7859
+ });
7860
+ }));
7857
7861
  const meta_query_base = $8cd545330f2674dc$export$210f130a61ac1e8d(() => ({
7858
7862
  merchant: merchant_(),
7859
7863
  market: market_(),
package/latest/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.8.29";
14
+ export const version = "4.8.30";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
@@ -1538,7 +1538,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1538
1538
  * Open the modal with support for alignment.
1539
1539
  * @returns {void}
1540
1540
  */
1541
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1541
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1542
1542
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1543
1543
  export interface PageReplacer {
1544
1544
  readonly render_: () => Node_Array;
@@ -1618,5 +1618,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1618
1618
  layout?: PossibleLayout;
1619
1619
  filterModalParent_?: HTMLElement | ShadowRoot;
1620
1620
  showSliderArrow_?: boolean;
1621
- }): import("@depict-ai/utilishared").Node_Array;
1621
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1622
1622
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
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.8.29";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.30";
11
11
  function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
12
12
  const signal = $9HbP8$createSignal(false);
13
13
  $9HbP8$onCleanup($9HbP8$javascript_media_query(media_query, ({
@@ -7698,6 +7698,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
7698
7698
  const first_result_in_viewport_ = $9HbP8$createSignal();
7699
7699
  const last_result_in_viewport_ = $9HbP8$createSignal();
7700
7700
  const all_products_loaded_ = $9HbP8$createSignal(false);
7701
+ const [, setAllProductsLoaded] = all_products_loaded_;
7701
7702
  const [currentlyLoadedDisplays, setCurrentlyLoadedDisplays_] = $9HbP8$createSignal(0);
7702
7703
  const [can_write_scroll_restoration_, set_can_write_scroll_restoration] = $9HbP8$createSignal(false);
7703
7704
  const owner = $9HbP8$getOwner();
@@ -7727,31 +7728,34 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
7727
7728
  // Make "Get products in listing" request to get products in listing
7728
7729
  const [plp_products_] = $9HbP8$createResource(products_query_base_,
7729
7730
  // only first page of results, unless the history state says we should load more (can't do that in load more thing, I tested, they need to be added at once for the browser to not give up scroll restoration)
7730
- $9HbP8$catchify(base_query => $641bba2917fe862b$export$cc42dd29bf655ab6({
7731
- id_: $9HbP8$untrack(id_to_query_for_),
7732
- scroll_restoration_data_: scroll_restoration_data_,
7733
- min_products_to_fetch_: min_products_to_fetch_,
7734
- make_request_: (limit, cursor) => depict_api_.get_listing_products({
7735
- ...base_query,
7736
- limit: limit,
7737
- ...(cursor ? {
7738
- cursor: cursor
7739
- } : {}),
7740
- // This gets exposed to the products display transformer and gives it information about the listing the products are in
7741
- // It's very hard to implement tracking that uses the collection title without this information
7742
- currentListingForTransformer_: new Promise(resolve => $9HbP8$createRoot(dispose => {
7743
- $9HbP8$createEffect($9HbP8$catchify(() => {
7744
- const key = base_query.id_type_ + base_query.id_to_query_for_;
7745
- const metaResponsePromise = metaRequestsForQuery().get(key);
7746
- if (!metaResponsePromise) return;
7747
- resolve(metaResponsePromise);
7748
- dispose();
7749
- setMetaRequestsForQuery(prev => (prev.delete(key), prev));
7750
- }));
7751
- $9HbP8$runWithOwner(owner, () => $9HbP8$onCleanup(dispose));
7752
- }))
7753
- })
7754
- })));
7731
+ $9HbP8$catchify(base_query => {
7732
+ setAllProductsLoaded(false);
7733
+ return $641bba2917fe862b$export$cc42dd29bf655ab6({
7734
+ id_: $9HbP8$untrack(id_to_query_for_),
7735
+ scroll_restoration_data_: scroll_restoration_data_,
7736
+ min_products_to_fetch_: min_products_to_fetch_,
7737
+ make_request_: (limit, cursor) => depict_api_.get_listing_products({
7738
+ ...base_query,
7739
+ limit: limit,
7740
+ ...(cursor ? {
7741
+ cursor: cursor
7742
+ } : {}),
7743
+ // This gets exposed to the products display transformer and gives it information about the listing the products are in
7744
+ // It's very hard to implement tracking that uses the collection title without this information
7745
+ currentListingForTransformer_: new Promise(resolve => $9HbP8$createRoot(dispose => {
7746
+ $9HbP8$createEffect($9HbP8$catchify(() => {
7747
+ const key = base_query.id_type_ + base_query.id_to_query_for_;
7748
+ const metaResponsePromise = metaRequestsForQuery().get(key);
7749
+ if (!metaResponsePromise) return;
7750
+ resolve(metaResponsePromise);
7751
+ dispose();
7752
+ setMetaRequestsForQuery(prev => (prev.delete(key), prev));
7753
+ }));
7754
+ $9HbP8$runWithOwner(owner, () => $9HbP8$onCleanup(dispose));
7755
+ }))
7756
+ })
7757
+ });
7758
+ }));
7755
7759
  const meta_query_base = $587cd61972788655$export$210f130a61ac1e8d(() => ({
7756
7760
  merchant: merchant_(),
7757
7761
  market: market_(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.8.29",
3
+ "version": "4.8.30",
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": "^4.4.20",
239
+ "@depict-ai/plp-styling": "^4.4.21",
240
240
  "@depict-ai/types": "^5.4.5",
241
241
  "@depict-ai/utilishared": "^2.4.7",
242
242
  "solid-js": "^1.8.16"
@@ -115,7 +115,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
115
115
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
116
116
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
117
117
  /*! Depict.ai search and product listing SDK */
118
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.29";
118
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.8.30";
119
119
  function $3e17e871e9d0911d$export$d9f36cf74e24d595(media_query) {
120
120
  const signal = $3hooq$solidjs.createSignal(false);
121
121
  $3hooq$solidjs.onCleanup($3hooq$depictaiutilishared.javascript_media_query(media_query, _ref => {
@@ -6800,6 +6800,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
6800
6800
  const first_result_in_viewport_ = $3hooq$solidjs.createSignal();
6801
6801
  const last_result_in_viewport_ = $3hooq$solidjs.createSignal();
6802
6802
  const all_products_loaded_ = $3hooq$solidjs.createSignal(false);
6803
+ const [, setAllProductsLoaded] = all_products_loaded_;
6803
6804
  const [currentlyLoadedDisplays, setCurrentlyLoadedDisplays_] = $3hooq$solidjs.createSignal(0);
6804
6805
  const [can_write_scroll_restoration_, set_can_write_scroll_restoration] = $3hooq$solidjs.createSignal(false);
6805
6806
  const owner = $3hooq$solidjs.getOwner();
@@ -6829,31 +6830,34 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
6829
6830
  // Make "Get products in listing" request to get products in listing
6830
6831
  const [plp_products_] = $3hooq$solidjs.createResource(products_query_base_,
6831
6832
  // only first page of results, unless the history state says we should load more (can't do that in load more thing, I tested, they need to be added at once for the browser to not give up scroll restoration)
6832
- $3hooq$depictaiutilisharedlatest.catchify(base_query => $fef4890f1f8e0544$export$cc42dd29bf655ab6({
6833
- id_: $3hooq$solidjs.untrack(id_to_query_for_),
6834
- scroll_restoration_data_: scroll_restoration_data_,
6835
- min_products_to_fetch_: min_products_to_fetch_,
6836
- make_request_: (limit, cursor) => depict_api_.get_listing_products({
6837
- ...base_query,
6838
- limit: limit,
6839
- ...(cursor ? {
6840
- cursor: cursor
6841
- } : {}),
6842
- // This gets exposed to the products display transformer and gives it information about the listing the products are in
6843
- // It's very hard to implement tracking that uses the collection title without this information
6844
- currentListingForTransformer_: new Promise(resolve => $3hooq$solidjs.createRoot(dispose => {
6845
- $3hooq$solidjs.createEffect($3hooq$depictaiutilisharedlatest.catchify(() => {
6846
- const key = base_query.id_type_ + base_query.id_to_query_for_;
6847
- const metaResponsePromise = metaRequestsForQuery().get(key);
6848
- if (!metaResponsePromise) return;
6849
- resolve(metaResponsePromise);
6850
- dispose();
6851
- setMetaRequestsForQuery(prev => (prev.delete(key), prev));
6852
- }));
6853
- $3hooq$solidjs.runWithOwner(owner, () => $3hooq$solidjs.onCleanup(dispose));
6854
- }))
6855
- })
6856
- })));
6833
+ $3hooq$depictaiutilisharedlatest.catchify(base_query => {
6834
+ setAllProductsLoaded(false);
6835
+ return $fef4890f1f8e0544$export$cc42dd29bf655ab6({
6836
+ id_: $3hooq$solidjs.untrack(id_to_query_for_),
6837
+ scroll_restoration_data_: scroll_restoration_data_,
6838
+ min_products_to_fetch_: min_products_to_fetch_,
6839
+ make_request_: (limit, cursor) => depict_api_.get_listing_products({
6840
+ ...base_query,
6841
+ limit: limit,
6842
+ ...(cursor ? {
6843
+ cursor: cursor
6844
+ } : {}),
6845
+ // This gets exposed to the products display transformer and gives it information about the listing the products are in
6846
+ // It's very hard to implement tracking that uses the collection title without this information
6847
+ currentListingForTransformer_: new Promise(resolve => $3hooq$solidjs.createRoot(dispose => {
6848
+ $3hooq$solidjs.createEffect($3hooq$depictaiutilisharedlatest.catchify(() => {
6849
+ const key = base_query.id_type_ + base_query.id_to_query_for_;
6850
+ const metaResponsePromise = metaRequestsForQuery().get(key);
6851
+ if (!metaResponsePromise) return;
6852
+ resolve(metaResponsePromise);
6853
+ dispose();
6854
+ setMetaRequestsForQuery(prev => (prev.delete(key), prev));
6855
+ }));
6856
+ $3hooq$solidjs.runWithOwner(owner, () => $3hooq$solidjs.onCleanup(dispose));
6857
+ }))
6858
+ })
6859
+ });
6860
+ }));
6857
6861
  const meta_query_base = $e4bc31358c414b18$export$210f130a61ac1e8d(() => ({
6858
6862
  merchant: merchant_(),
6859
6863
  market: market_(),
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.8.29";
14
+ export const version = "4.8.30";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
@@ -1538,7 +1538,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1538
1538
  * Open the modal with support for alignment.
1539
1539
  * @returns {void}
1540
1540
  */
1541
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1541
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1542
1542
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1543
1543
  export interface PageReplacer {
1544
1544
  readonly render_: () => Node_Array;
@@ -1618,5 +1618,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1618
1618
  layout?: PossibleLayout;
1619
1619
  filterModalParent_?: HTMLElement | ShadowRoot;
1620
1620
  showSliderArrow_?: boolean;
1621
- }): import("@depict-ai/utilishared").Node_Array;
1621
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1622
1622
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
@@ -10,7 +10,7 @@ import $b8hua$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpe
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.8.29";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.8.30";
14
14
  function $00a5b94f0c11efbb$export$d9f36cf74e24d595(media_query) {
15
15
  const signal = $b8hua$createSignal(false);
16
16
  $b8hua$onCleanup($b8hua$javascript_media_query(media_query, _ref => {
@@ -6695,6 +6695,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
6695
6695
  const first_result_in_viewport_ = $b8hua$createSignal();
6696
6696
  const last_result_in_viewport_ = $b8hua$createSignal();
6697
6697
  const all_products_loaded_ = $b8hua$createSignal(false);
6698
+ const [, setAllProductsLoaded] = all_products_loaded_;
6698
6699
  const [currentlyLoadedDisplays, setCurrentlyLoadedDisplays_] = $b8hua$createSignal(0);
6699
6700
  const [can_write_scroll_restoration_, set_can_write_scroll_restoration] = $b8hua$createSignal(false);
6700
6701
  const owner = $b8hua$getOwner();
@@ -6724,31 +6725,34 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
6724
6725
  // Make "Get products in listing" request to get products in listing
6725
6726
  const [plp_products_] = $b8hua$createResource(products_query_base_,
6726
6727
  // only first page of results, unless the history state says we should load more (can't do that in load more thing, I tested, they need to be added at once for the browser to not give up scroll restoration)
6727
- $b8hua$catchify(base_query => $5e6abec0dab4e610$export$cc42dd29bf655ab6({
6728
- id_: $b8hua$untrack(id_to_query_for_),
6729
- scroll_restoration_data_: scroll_restoration_data_,
6730
- min_products_to_fetch_: min_products_to_fetch_,
6731
- make_request_: (limit, cursor) => depict_api_.get_listing_products({
6732
- ...base_query,
6733
- limit: limit,
6734
- ...(cursor ? {
6735
- cursor: cursor
6736
- } : {}),
6737
- // This gets exposed to the products display transformer and gives it information about the listing the products are in
6738
- // It's very hard to implement tracking that uses the collection title without this information
6739
- currentListingForTransformer_: new Promise(resolve => $b8hua$createRoot(dispose => {
6740
- $b8hua$createEffect($b8hua$catchify(() => {
6741
- const key = base_query.id_type_ + base_query.id_to_query_for_;
6742
- const metaResponsePromise = metaRequestsForQuery().get(key);
6743
- if (!metaResponsePromise) return;
6744
- resolve(metaResponsePromise);
6745
- dispose();
6746
- setMetaRequestsForQuery(prev => (prev.delete(key), prev));
6747
- }));
6748
- $b8hua$runWithOwner(owner, () => $b8hua$onCleanup(dispose));
6749
- }))
6750
- })
6751
- })));
6728
+ $b8hua$catchify(base_query => {
6729
+ setAllProductsLoaded(false);
6730
+ return $5e6abec0dab4e610$export$cc42dd29bf655ab6({
6731
+ id_: $b8hua$untrack(id_to_query_for_),
6732
+ scroll_restoration_data_: scroll_restoration_data_,
6733
+ min_products_to_fetch_: min_products_to_fetch_,
6734
+ make_request_: (limit, cursor) => depict_api_.get_listing_products({
6735
+ ...base_query,
6736
+ limit: limit,
6737
+ ...(cursor ? {
6738
+ cursor: cursor
6739
+ } : {}),
6740
+ // This gets exposed to the products display transformer and gives it information about the listing the products are in
6741
+ // It's very hard to implement tracking that uses the collection title without this information
6742
+ currentListingForTransformer_: new Promise(resolve => $b8hua$createRoot(dispose => {
6743
+ $b8hua$createEffect($b8hua$catchify(() => {
6744
+ const key = base_query.id_type_ + base_query.id_to_query_for_;
6745
+ const metaResponsePromise = metaRequestsForQuery().get(key);
6746
+ if (!metaResponsePromise) return;
6747
+ resolve(metaResponsePromise);
6748
+ dispose();
6749
+ setMetaRequestsForQuery(prev => (prev.delete(key), prev));
6750
+ }));
6751
+ $b8hua$runWithOwner(owner, () => $b8hua$onCleanup(dispose));
6752
+ }))
6753
+ })
6754
+ });
6755
+ }));
6752
6756
  const meta_query_base = $ec225bf1f1627ea8$export$210f130a61ac1e8d(() => ({
6753
6757
  merchant: merchant_(),
6754
6758
  market: market_(),
@@ -109,7 +109,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
109
109
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
110
110
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
111
111
  /*! Depict.ai search and product listing SDK */
112
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.29";
112
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.8.30";
113
113
  function $b54e6192d0caa293$export$d9f36cf74e24d595(media_query) {
114
114
  const signal = $5vyXB$solidjs.createSignal(false);
115
115
  $5vyXB$solidjs.onCleanup($5vyXB$depictaiutilishared.javascript_media_query(media_query, ({
@@ -6411,6 +6411,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
6411
6411
  const first_result_in_viewport_ = $5vyXB$solidjs.createSignal();
6412
6412
  const last_result_in_viewport_ = $5vyXB$solidjs.createSignal();
6413
6413
  const all_products_loaded_ = $5vyXB$solidjs.createSignal(false);
6414
+ const [, setAllProductsLoaded] = all_products_loaded_;
6414
6415
  const [currentlyLoadedDisplays, setCurrentlyLoadedDisplays_] = $5vyXB$solidjs.createSignal(0);
6415
6416
  const [can_write_scroll_restoration_, set_can_write_scroll_restoration] = $5vyXB$solidjs.createSignal(false);
6416
6417
  const owner = $5vyXB$solidjs.getOwner();
@@ -6440,31 +6441,34 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
6440
6441
  // Make "Get products in listing" request to get products in listing
6441
6442
  const [plp_products_] = $5vyXB$solidjs.createResource(products_query_base_,
6442
6443
  // only first page of results, unless the history state says we should load more (can't do that in load more thing, I tested, they need to be added at once for the browser to not give up scroll restoration)
6443
- $5vyXB$depictaiutilisharedlatest.catchify(base_query => $276380e4607fb9fb$export$cc42dd29bf655ab6({
6444
- id_: $5vyXB$solidjs.untrack(id_to_query_for_),
6445
- scroll_restoration_data_: scroll_restoration_data_,
6446
- min_products_to_fetch_: min_products_to_fetch_,
6447
- make_request_: (limit, cursor) => depict_api_.get_listing_products({
6448
- ...base_query,
6449
- limit: limit,
6450
- ...(cursor ? {
6451
- cursor: cursor
6452
- } : {}),
6453
- // This gets exposed to the products display transformer and gives it information about the listing the products are in
6454
- // It's very hard to implement tracking that uses the collection title without this information
6455
- currentListingForTransformer_: new Promise(resolve => $5vyXB$solidjs.createRoot(dispose => {
6456
- $5vyXB$solidjs.createEffect($5vyXB$depictaiutilisharedlatest.catchify(() => {
6457
- const key = base_query.id_type_ + base_query.id_to_query_for_;
6458
- const metaResponsePromise = metaRequestsForQuery().get(key);
6459
- if (!metaResponsePromise) return;
6460
- resolve(metaResponsePromise);
6461
- dispose();
6462
- setMetaRequestsForQuery(prev => (prev.delete(key), prev));
6463
- }));
6464
- $5vyXB$solidjs.runWithOwner(owner, () => $5vyXB$solidjs.onCleanup(dispose));
6465
- }))
6466
- })
6467
- })));
6444
+ $5vyXB$depictaiutilisharedlatest.catchify(base_query => {
6445
+ setAllProductsLoaded(false);
6446
+ return $276380e4607fb9fb$export$cc42dd29bf655ab6({
6447
+ id_: $5vyXB$solidjs.untrack(id_to_query_for_),
6448
+ scroll_restoration_data_: scroll_restoration_data_,
6449
+ min_products_to_fetch_: min_products_to_fetch_,
6450
+ make_request_: (limit, cursor) => depict_api_.get_listing_products({
6451
+ ...base_query,
6452
+ limit: limit,
6453
+ ...(cursor ? {
6454
+ cursor: cursor
6455
+ } : {}),
6456
+ // This gets exposed to the products display transformer and gives it information about the listing the products are in
6457
+ // It's very hard to implement tracking that uses the collection title without this information
6458
+ currentListingForTransformer_: new Promise(resolve => $5vyXB$solidjs.createRoot(dispose => {
6459
+ $5vyXB$solidjs.createEffect($5vyXB$depictaiutilisharedlatest.catchify(() => {
6460
+ const key = base_query.id_type_ + base_query.id_to_query_for_;
6461
+ const metaResponsePromise = metaRequestsForQuery().get(key);
6462
+ if (!metaResponsePromise) return;
6463
+ resolve(metaResponsePromise);
6464
+ dispose();
6465
+ setMetaRequestsForQuery(prev => (prev.delete(key), prev));
6466
+ }));
6467
+ $5vyXB$solidjs.runWithOwner(owner, () => $5vyXB$solidjs.onCleanup(dispose));
6468
+ }))
6469
+ })
6470
+ });
6471
+ }));
6468
6472
  const meta_query_base = $8cd545330f2674dc$export$210f130a61ac1e8d(() => ({
6469
6473
  merchant: merchant_(),
6470
6474
  market: market_(),
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
11
11
  import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
12
12
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
13
13
  import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
14
- export const version = "4.8.29";
14
+ export const version = "4.8.30";
15
15
  /**
16
16
  * Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
17
17
  */
@@ -1538,7 +1538,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1538
1538
  * Open the modal with support for alignment.
1539
1539
  * @returns {void}
1540
1540
  */
1541
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1541
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1542
1542
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1543
1543
  export interface PageReplacer {
1544
1544
  readonly render_: () => Node_Array;
@@ -1618,5 +1618,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1618
1618
  layout?: PossibleLayout;
1619
1619
  filterModalParent_?: HTMLElement | ShadowRoot;
1620
1620
  showSliderArrow_?: boolean;
1621
- }): import("@depict-ai/utilishared").Node_Array;
1621
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1622
1622
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
@@ -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.8.29";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.8.30";
11
11
  function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
12
12
  const signal = $i7OB2$createSignal(false);
13
13
  $i7OB2$onCleanup($i7OB2$javascript_media_query(media_query, ({
@@ -6309,6 +6309,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
6309
6309
  const first_result_in_viewport_ = $i7OB2$createSignal();
6310
6310
  const last_result_in_viewport_ = $i7OB2$createSignal();
6311
6311
  const all_products_loaded_ = $i7OB2$createSignal(false);
6312
+ const [, setAllProductsLoaded] = all_products_loaded_;
6312
6313
  const [currentlyLoadedDisplays, setCurrentlyLoadedDisplays_] = $i7OB2$createSignal(0);
6313
6314
  const [can_write_scroll_restoration_, set_can_write_scroll_restoration] = $i7OB2$createSignal(false);
6314
6315
  const owner = $i7OB2$getOwner();
@@ -6338,31 +6339,34 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
6338
6339
  // Make "Get products in listing" request to get products in listing
6339
6340
  const [plp_products_] = $i7OB2$createResource(products_query_base_,
6340
6341
  // only first page of results, unless the history state says we should load more (can't do that in load more thing, I tested, they need to be added at once for the browser to not give up scroll restoration)
6341
- $i7OB2$catchify(base_query => $641bba2917fe862b$export$cc42dd29bf655ab6({
6342
- id_: $i7OB2$untrack(id_to_query_for_),
6343
- scroll_restoration_data_: scroll_restoration_data_,
6344
- min_products_to_fetch_: min_products_to_fetch_,
6345
- make_request_: (limit, cursor) => depict_api_.get_listing_products({
6346
- ...base_query,
6347
- limit: limit,
6348
- ...(cursor ? {
6349
- cursor: cursor
6350
- } : {}),
6351
- // This gets exposed to the products display transformer and gives it information about the listing the products are in
6352
- // It's very hard to implement tracking that uses the collection title without this information
6353
- currentListingForTransformer_: new Promise(resolve => $i7OB2$createRoot(dispose => {
6354
- $i7OB2$createEffect($i7OB2$catchify(() => {
6355
- const key = base_query.id_type_ + base_query.id_to_query_for_;
6356
- const metaResponsePromise = metaRequestsForQuery().get(key);
6357
- if (!metaResponsePromise) return;
6358
- resolve(metaResponsePromise);
6359
- dispose();
6360
- setMetaRequestsForQuery(prev => (prev.delete(key), prev));
6361
- }));
6362
- $i7OB2$runWithOwner(owner, () => $i7OB2$onCleanup(dispose));
6363
- }))
6364
- })
6365
- })));
6342
+ $i7OB2$catchify(base_query => {
6343
+ setAllProductsLoaded(false);
6344
+ return $641bba2917fe862b$export$cc42dd29bf655ab6({
6345
+ id_: $i7OB2$untrack(id_to_query_for_),
6346
+ scroll_restoration_data_: scroll_restoration_data_,
6347
+ min_products_to_fetch_: min_products_to_fetch_,
6348
+ make_request_: (limit, cursor) => depict_api_.get_listing_products({
6349
+ ...base_query,
6350
+ limit: limit,
6351
+ ...(cursor ? {
6352
+ cursor: cursor
6353
+ } : {}),
6354
+ // This gets exposed to the products display transformer and gives it information about the listing the products are in
6355
+ // It's very hard to implement tracking that uses the collection title without this information
6356
+ currentListingForTransformer_: new Promise(resolve => $i7OB2$createRoot(dispose => {
6357
+ $i7OB2$createEffect($i7OB2$catchify(() => {
6358
+ const key = base_query.id_type_ + base_query.id_to_query_for_;
6359
+ const metaResponsePromise = metaRequestsForQuery().get(key);
6360
+ if (!metaResponsePromise) return;
6361
+ resolve(metaResponsePromise);
6362
+ dispose();
6363
+ setMetaRequestsForQuery(prev => (prev.delete(key), prev));
6364
+ }));
6365
+ $i7OB2$runWithOwner(owner, () => $i7OB2$onCleanup(dispose));
6366
+ }))
6367
+ })
6368
+ });
6369
+ }));
6366
6370
  const meta_query_base = $587cd61972788655$export$210f130a61ac1e8d(() => ({
6367
6371
  merchant: merchant_(),
6368
6372
  market: market_(),