@depict-ai/ui 4.7.15 → 4.7.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ES10/index.cjs CHANGED
@@ -105,7 +105,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
105
105
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
106
106
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
107
107
  /*! Depict.ai search and product listing SDK */
108
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.15";
108
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.16";
109
109
 
110
110
  /**
111
111
  * Gets product_id (the thing we key the rendering on) from a display
@@ -12015,11 +12015,11 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
12015
12015
  set_top_row_shortened_by_: set_top_row_shortened_by_
12016
12016
  }));
12017
12017
  const rendered_placeholders = $52FdA$solidjs.createMemo(() => {
12018
- if (get_should_have_placeholders_rendered()) return $52FdA$solidjs.children(() => $e3915574cfd3466c$export$f33414a4df0afd3f({
12018
+ if (get_should_have_placeholders_rendered()) return $e3915574cfd3466c$export$f33414a4df0afd3f({
12019
12019
  content_blocks_: content_blocks_,
12020
12020
  product_card_template_: product_card_template_,
12021
12021
  num_placeholders_: num_placeholders_
12022
- }));
12022
+ });
12023
12023
  });
12024
12024
  const layout = $52FdA$solidjs.createMemo(() => {
12025
12025
  const incoming_layout = layout_options_().layout;
@@ -12055,7 +12055,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
12055
12055
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
12056
12056
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
12057
12057
  */
12058
- const product_cards_when_data = $52FdA$solidjs.children(() => $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Suspense), {
12058
+ const product_cards_when_data = $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Suspense), {
12059
12059
  get fallback() {
12060
12060
  fallback_is_alive = true;
12061
12061
  $52FdA$solidjs.onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -12087,20 +12087,17 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
12087
12087
  return suspense_contents;
12088
12088
  })();
12089
12089
  }
12090
- }));
12090
+ });
12091
12091
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
12092
- const listing_contents = $52FdA$solidjs.children(() => $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
12092
+ const listing_contents = $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
12093
12093
  get when() {
12094
12094
  return !is_loading_();
12095
12095
  },
12096
12096
  get fallback() {
12097
- var _rendered_placeholder;
12098
- return (_rendered_placeholder = rendered_placeholders()) === null || _rendered_placeholder === void 0 ? void 0 : _rendered_placeholder();
12097
+ return rendered_placeholders();
12099
12098
  },
12100
- get children() {
12101
- return product_cards_when_data();
12102
- }
12103
- }));
12099
+ children: product_cards_when_data
12100
+ });
12104
12101
  return [$52FdA$solidjsweb.memo(() => $8edd3cf30d1fd8b4$export$a2cc176055f8f08(layout())), $52FdA$solidjsweb.createComponent((0, $52FdA$solidjs.Show), {
12105
12102
  get when() {
12106
12103
  return doesnt_have_content_blocks();
@@ -12120,9 +12117,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
12120
12117
  class: "cards css-grid"
12121
12118
  },
12122
12119
  top_row_shortened_by_: top_row_shortened_by_,
12123
- get children() {
12124
- return listing_contents();
12125
- }
12120
+ children: listing_contents
12126
12121
  });
12127
12122
  },
12128
12123
  get children() {
@@ -12175,9 +12170,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
12175
12170
  $52FdA$solidjsweb.insert(container, $52FdA$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
12176
12171
  }
12177
12172
  },
12178
- get children() {
12179
- return listing_contents();
12180
- }
12173
+ children: listing_contents
12181
12174
  });
12182
12175
  },
12183
12176
  get children() {
@@ -12198,9 +12191,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
12198
12191
  element_attributes: {
12199
12192
  class: "cards"
12200
12193
  },
12201
- get children() {
12202
- return listing_contents();
12203
- }
12194
+ children: listing_contents
12204
12195
  });
12205
12196
  }
12206
12197
  });
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.7.15";
14
+ export const version = "4.7.16";
15
15
  declare const LISTING_ID = "listingId";
16
16
  declare const EXTERNAL_ID = "externalId";
17
17
  type ScrollRestorationData = {
@@ -1436,7 +1436,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1436
1436
  * Open the modal with support for alignment.
1437
1437
  * @returns {void}
1438
1438
  */
1439
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1439
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1440
1440
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1441
1441
  export interface PageReplacer {
1442
1442
  readonly render_: () => Node_Array;
@@ -1515,5 +1515,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1515
1515
  content_blocks_by_row?: ContentBlocksByRow;
1516
1516
  layout?: PossibleLayout;
1517
1517
  filterModalParent_?: HTMLElement | ShadowRoot;
1518
- }): import("@depict-ai/utilishared").Node_Array;
1518
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1519
1519
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
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.7.15";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.16";
14
14
 
15
15
  /**
16
16
  * Gets product_id (the thing we key the rendering on) from a display
@@ -11920,11 +11920,11 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
11920
11920
  set_top_row_shortened_by_: set_top_row_shortened_by_
11921
11921
  }));
11922
11922
  const rendered_placeholders = $8tj43$createMemo(() => {
11923
- if (get_should_have_placeholders_rendered()) return $8tj43$children(() => $bdd80c7862246dc2$export$f33414a4df0afd3f({
11923
+ if (get_should_have_placeholders_rendered()) return $bdd80c7862246dc2$export$f33414a4df0afd3f({
11924
11924
  content_blocks_: content_blocks_,
11925
11925
  product_card_template_: product_card_template_,
11926
11926
  num_placeholders_: num_placeholders_
11927
- }));
11927
+ });
11928
11928
  });
11929
11929
  const layout = $8tj43$createMemo(() => {
11930
11930
  const incoming_layout = layout_options_().layout;
@@ -11960,7 +11960,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
11960
11960
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
11961
11961
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
11962
11962
  */
11963
- const product_cards_when_data = $8tj43$children(() => $8tj43$createComponent((0, $8tj43$Suspense), {
11963
+ const product_cards_when_data = $8tj43$createComponent((0, $8tj43$Suspense), {
11964
11964
  get fallback() {
11965
11965
  fallback_is_alive = true;
11966
11966
  $8tj43$onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -11992,20 +11992,17 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
11992
11992
  return suspense_contents;
11993
11993
  })();
11994
11994
  }
11995
- }));
11995
+ });
11996
11996
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
11997
- const listing_contents = $8tj43$children(() => $8tj43$createComponent((0, $8tj43$Show), {
11997
+ const listing_contents = $8tj43$createComponent((0, $8tj43$Show), {
11998
11998
  get when() {
11999
11999
  return !is_loading_();
12000
12000
  },
12001
12001
  get fallback() {
12002
- var _rendered_placeholder;
12003
- return (_rendered_placeholder = rendered_placeholders()) === null || _rendered_placeholder === void 0 ? void 0 : _rendered_placeholder();
12002
+ return rendered_placeholders();
12004
12003
  },
12005
- get children() {
12006
- return product_cards_when_data();
12007
- }
12008
- }));
12004
+ children: product_cards_when_data
12005
+ });
12009
12006
  return [$8tj43$memo(() => $ca55612a53dbbdd2$export$a2cc176055f8f08(layout())), $8tj43$createComponent((0, $8tj43$Show), {
12010
12007
  get when() {
12011
12008
  return doesnt_have_content_blocks();
@@ -12025,9 +12022,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
12025
12022
  class: "cards css-grid"
12026
12023
  },
12027
12024
  top_row_shortened_by_: top_row_shortened_by_,
12028
- get children() {
12029
- return listing_contents();
12030
- }
12025
+ children: listing_contents
12031
12026
  });
12032
12027
  },
12033
12028
  get children() {
@@ -12080,9 +12075,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
12080
12075
  $8tj43$insert(container, $8tj43$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
12081
12076
  }
12082
12077
  },
12083
- get children() {
12084
- return listing_contents();
12085
- }
12078
+ children: listing_contents
12086
12079
  });
12087
12080
  },
12088
12081
  get children() {
@@ -12103,9 +12096,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
12103
12096
  element_attributes: {
12104
12097
  class: "cards"
12105
12098
  },
12106
- get children() {
12107
- return listing_contents();
12108
- }
12099
+ children: listing_contents
12109
12100
  });
12110
12101
  }
12111
12102
  });
package/latest/index.cjs CHANGED
@@ -99,7 +99,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
99
99
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
100
100
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
101
101
  /*! Depict.ai search and product listing SDK */
102
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.15";
102
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.16";
103
103
 
104
104
  /**
105
105
  * Gets product_id (the thing we key the rendering on) from a display
@@ -11309,11 +11309,11 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
11309
11309
  set_top_row_shortened_by_: set_top_row_shortened_by_
11310
11310
  }));
11311
11311
  const rendered_placeholders = $gVhhF$solidjs.createMemo(() => {
11312
- if (get_should_have_placeholders_rendered()) return $gVhhF$solidjs.children(() => $0caf87eaa19079da$export$f33414a4df0afd3f({
11312
+ if (get_should_have_placeholders_rendered()) return $0caf87eaa19079da$export$f33414a4df0afd3f({
11313
11313
  content_blocks_: content_blocks_,
11314
11314
  product_card_template_: product_card_template_,
11315
11315
  num_placeholders_: num_placeholders_
11316
- }));
11316
+ });
11317
11317
  });
11318
11318
  const layout = $gVhhF$solidjs.createMemo(() => {
11319
11319
  const incoming_layout = layout_options_().layout;
@@ -11349,7 +11349,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
11349
11349
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
11350
11350
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
11351
11351
  */
11352
- const product_cards_when_data = $gVhhF$solidjs.children(() => $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Suspense), {
11352
+ const product_cards_when_data = $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Suspense), {
11353
11353
  get fallback() {
11354
11354
  fallback_is_alive = true;
11355
11355
  $gVhhF$solidjs.onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -11381,19 +11381,17 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
11381
11381
  return suspense_contents;
11382
11382
  })();
11383
11383
  }
11384
- }));
11384
+ });
11385
11385
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
11386
- const listing_contents = $gVhhF$solidjs.children(() => $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
11386
+ const listing_contents = $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
11387
11387
  get when() {
11388
11388
  return !is_loading_();
11389
11389
  },
11390
11390
  get fallback() {
11391
- return rendered_placeholders()?.();
11391
+ return rendered_placeholders();
11392
11392
  },
11393
- get children() {
11394
- return product_cards_when_data();
11395
- }
11396
- }));
11393
+ children: product_cards_when_data
11394
+ });
11397
11395
  return [$gVhhF$solidjsweb.memo(() => $fc23d7668ae0011d$export$a2cc176055f8f08(layout())), $gVhhF$solidjsweb.createComponent((0, $gVhhF$solidjs.Show), {
11398
11396
  get when() {
11399
11397
  return doesnt_have_content_blocks();
@@ -11413,9 +11411,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
11413
11411
  class: "cards css-grid"
11414
11412
  },
11415
11413
  top_row_shortened_by_: top_row_shortened_by_,
11416
- get children() {
11417
- return listing_contents();
11418
- }
11414
+ children: listing_contents
11419
11415
  });
11420
11416
  },
11421
11417
  get children() {
@@ -11468,9 +11464,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
11468
11464
  $gVhhF$solidjsweb.insert(container, $gVhhF$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
11469
11465
  }
11470
11466
  },
11471
- get children() {
11472
- return listing_contents();
11473
- }
11467
+ children: listing_contents
11474
11468
  });
11475
11469
  },
11476
11470
  get children() {
@@ -11491,9 +11485,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
11491
11485
  element_attributes: {
11492
11486
  class: "cards"
11493
11487
  },
11494
- get children() {
11495
- return listing_contents();
11496
- }
11488
+ children: listing_contents
11497
11489
  });
11498
11490
  }
11499
11491
  });
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.7.15";
14
+ export const version = "4.7.16";
15
15
  declare const LISTING_ID = "listingId";
16
16
  declare const EXTERNAL_ID = "externalId";
17
17
  type ScrollRestorationData = {
@@ -1436,7 +1436,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1436
1436
  * Open the modal with support for alignment.
1437
1437
  * @returns {void}
1438
1438
  */
1439
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1439
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1440
1440
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1441
1441
  export interface PageReplacer {
1442
1442
  readonly render_: () => Node_Array;
@@ -1515,5 +1515,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1515
1515
  content_blocks_by_row?: ContentBlocksByRow;
1516
1516
  layout?: PossibleLayout;
1517
1517
  filterModalParent_?: HTMLElement | ShadowRoot;
1518
- }): import("@depict-ai/utilishared").Node_Array;
1518
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1519
1519
  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.7.15";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.16";
11
11
 
12
12
  /**
13
13
  * Gets product_id (the thing we key the rendering on) from a display
@@ -11217,11 +11217,11 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11217
11217
  set_top_row_shortened_by_: set_top_row_shortened_by_
11218
11218
  }));
11219
11219
  const rendered_placeholders = $9HbP8$createMemo(() => {
11220
- if (get_should_have_placeholders_rendered()) return $9HbP8$children(() => $6e41f1fde994db72$export$f33414a4df0afd3f({
11220
+ if (get_should_have_placeholders_rendered()) return $6e41f1fde994db72$export$f33414a4df0afd3f({
11221
11221
  content_blocks_: content_blocks_,
11222
11222
  product_card_template_: product_card_template_,
11223
11223
  num_placeholders_: num_placeholders_
11224
- }));
11224
+ });
11225
11225
  });
11226
11226
  const layout = $9HbP8$createMemo(() => {
11227
11227
  const incoming_layout = layout_options_().layout;
@@ -11257,7 +11257,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11257
11257
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
11258
11258
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
11259
11259
  */
11260
- const product_cards_when_data = $9HbP8$children(() => $9HbP8$createComponent((0, $9HbP8$Suspense), {
11260
+ const product_cards_when_data = $9HbP8$createComponent((0, $9HbP8$Suspense), {
11261
11261
  get fallback() {
11262
11262
  fallback_is_alive = true;
11263
11263
  $9HbP8$onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -11289,19 +11289,17 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11289
11289
  return suspense_contents;
11290
11290
  })();
11291
11291
  }
11292
- }));
11292
+ });
11293
11293
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
11294
- const listing_contents = $9HbP8$children(() => $9HbP8$createComponent((0, $9HbP8$Show), {
11294
+ const listing_contents = $9HbP8$createComponent((0, $9HbP8$Show), {
11295
11295
  get when() {
11296
11296
  return !is_loading_();
11297
11297
  },
11298
11298
  get fallback() {
11299
- return rendered_placeholders()?.();
11299
+ return rendered_placeholders();
11300
11300
  },
11301
- get children() {
11302
- return product_cards_when_data();
11303
- }
11304
- }));
11301
+ children: product_cards_when_data
11302
+ });
11305
11303
  return [$9HbP8$memo(() => $a458486f22b22f63$export$a2cc176055f8f08(layout())), $9HbP8$createComponent((0, $9HbP8$Show), {
11306
11304
  get when() {
11307
11305
  return doesnt_have_content_blocks();
@@ -11321,9 +11319,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11321
11319
  class: "cards css-grid"
11322
11320
  },
11323
11321
  top_row_shortened_by_: top_row_shortened_by_,
11324
- get children() {
11325
- return listing_contents();
11326
- }
11322
+ children: listing_contents
11327
11323
  });
11328
11324
  },
11329
11325
  get children() {
@@ -11376,9 +11372,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11376
11372
  $9HbP8$insert(container, $9HbP8$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
11377
11373
  }
11378
11374
  },
11379
- get children() {
11380
- return listing_contents();
11381
- }
11375
+ children: listing_contents
11382
11376
  });
11383
11377
  },
11384
11378
  get children() {
@@ -11399,9 +11393,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
11399
11393
  element_attributes: {
11400
11394
  class: "cards"
11401
11395
  },
11402
- get children() {
11403
- return listing_contents();
11404
- }
11396
+ children: listing_contents
11405
11397
  });
11406
11398
  }
11407
11399
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/ui",
3
- "version": "4.7.15",
3
+ "version": "4.7.16",
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",
@@ -105,7 +105,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
105
105
  $parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
106
106
  $parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
107
107
  /*! Depict.ai search and product listing SDK */
108
- const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.15";
108
+ const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.7.16";
109
109
 
110
110
  /**
111
111
  * Gets product_id (the thing we key the rendering on) from a display
@@ -10027,11 +10027,11 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10027
10027
  set_top_row_shortened_by_: set_top_row_shortened_by_
10028
10028
  }));
10029
10029
  const rendered_placeholders = $3hooq$solidjs.createMemo(() => {
10030
- if (get_should_have_placeholders_rendered()) return $3hooq$solidjs.children(() => $e3915574cfd3466c$export$f33414a4df0afd3f({
10030
+ if (get_should_have_placeholders_rendered()) return $e3915574cfd3466c$export$f33414a4df0afd3f({
10031
10031
  content_blocks_: content_blocks_,
10032
10032
  product_card_template_: product_card_template_,
10033
10033
  num_placeholders_: num_placeholders_
10034
- }));
10034
+ });
10035
10035
  });
10036
10036
  const layout = $3hooq$solidjs.createMemo(() => {
10037
10037
  const incoming_layout = layout_options_().layout;
@@ -10067,7 +10067,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10067
10067
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
10068
10068
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
10069
10069
  */
10070
- const product_cards_when_data = $3hooq$solidjs.children(() => $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Suspense), {
10070
+ const product_cards_when_data = $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Suspense), {
10071
10071
  get fallback() {
10072
10072
  fallback_is_alive = true;
10073
10073
  $3hooq$solidjs.onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -10099,20 +10099,17 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10099
10099
  return suspense_contents;
10100
10100
  })();
10101
10101
  }
10102
- }));
10102
+ });
10103
10103
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
10104
- const listing_contents = $3hooq$solidjs.children(() => $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
10104
+ const listing_contents = $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
10105
10105
  get when() {
10106
10106
  return !is_loading_();
10107
10107
  },
10108
10108
  get fallback() {
10109
- var _rendered_placeholder;
10110
- return (_rendered_placeholder = rendered_placeholders()) === null || _rendered_placeholder === void 0 ? void 0 : _rendered_placeholder();
10109
+ return rendered_placeholders();
10111
10110
  },
10112
- get children() {
10113
- return product_cards_when_data();
10114
- }
10115
- }));
10111
+ children: product_cards_when_data
10112
+ });
10116
10113
  return [$8edd3cf30d1fd8b4$export$a2cc176055f8f08(layout()), $3hooq$solidjsweb.createComponent((0, $3hooq$solidjs.Show), {
10117
10114
  get when() {
10118
10115
  return doesnt_have_content_blocks();
@@ -10132,9 +10129,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10132
10129
  class: "cards css-grid"
10133
10130
  },
10134
10131
  top_row_shortened_by_: top_row_shortened_by_,
10135
- get children() {
10136
- return listing_contents();
10137
- }
10132
+ children: listing_contents
10138
10133
  });
10139
10134
  },
10140
10135
  get children() {
@@ -10187,9 +10182,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10187
10182
  $3hooq$solidjsweb.insert(container, $3hooq$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
10188
10183
  }
10189
10184
  },
10190
- get children() {
10191
- return listing_contents();
10192
- }
10185
+ children: listing_contents
10193
10186
  });
10194
10187
  },
10195
10188
  get children() {
@@ -10210,9 +10203,7 @@ function $484eec37514a982e$export$3925f87b1545cfc6(_ref) {
10210
10203
  element_attributes: {
10211
10204
  class: "cards"
10212
10205
  },
10213
- get children() {
10214
- return listing_contents();
10215
- }
10206
+ children: listing_contents
10216
10207
  });
10217
10208
  }
10218
10209
  });
@@ -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.7.15";
14
+ export const version = "4.7.16";
15
15
  declare const LISTING_ID = "listingId";
16
16
  declare const EXTERNAL_ID = "externalId";
17
17
  type ScrollRestorationData = {
@@ -1436,7 +1436,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1436
1436
  * Open the modal with support for alignment.
1437
1437
  * @returns {void}
1438
1438
  */
1439
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1439
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1440
1440
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1441
1441
  export interface PageReplacer {
1442
1442
  readonly render_: () => Node_Array;
@@ -1515,5 +1515,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1515
1515
  content_blocks_by_row?: ContentBlocksByRow;
1516
1516
  layout?: PossibleLayout;
1517
1517
  filterModalParent_?: HTMLElement | ShadowRoot;
1518
- }): import("@depict-ai/utilishared").Node_Array;
1518
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1519
1519
  export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
@@ -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.7.15";
13
+ const $8db9a15135765c11$export$83d89fbfd8236492 = "4.7.16";
14
14
 
15
15
  /**
16
16
  * Gets product_id (the thing we key the rendering on) from a display
@@ -9932,11 +9932,11 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
9932
9932
  set_top_row_shortened_by_: set_top_row_shortened_by_
9933
9933
  }));
9934
9934
  const rendered_placeholders = $b8hua$createMemo(() => {
9935
- if (get_should_have_placeholders_rendered()) return $b8hua$children(() => $bdd80c7862246dc2$export$f33414a4df0afd3f({
9935
+ if (get_should_have_placeholders_rendered()) return $bdd80c7862246dc2$export$f33414a4df0afd3f({
9936
9936
  content_blocks_: content_blocks_,
9937
9937
  product_card_template_: product_card_template_,
9938
9938
  num_placeholders_: num_placeholders_
9939
- }));
9939
+ });
9940
9940
  });
9941
9941
  const layout = $b8hua$createMemo(() => {
9942
9942
  const incoming_layout = layout_options_().layout;
@@ -9972,7 +9972,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
9972
9972
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
9973
9973
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
9974
9974
  */
9975
- const product_cards_when_data = $b8hua$children(() => $b8hua$createComponent((0, $b8hua$Suspense), {
9975
+ const product_cards_when_data = $b8hua$createComponent((0, $b8hua$Suspense), {
9976
9976
  get fallback() {
9977
9977
  fallback_is_alive = true;
9978
9978
  $b8hua$onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -10004,20 +10004,17 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
10004
10004
  return suspense_contents;
10005
10005
  })();
10006
10006
  }
10007
- }));
10007
+ });
10008
10008
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
10009
- const listing_contents = $b8hua$children(() => $b8hua$createComponent((0, $b8hua$Show), {
10009
+ const listing_contents = $b8hua$createComponent((0, $b8hua$Show), {
10010
10010
  get when() {
10011
10011
  return !is_loading_();
10012
10012
  },
10013
10013
  get fallback() {
10014
- var _rendered_placeholder;
10015
- return (_rendered_placeholder = rendered_placeholders()) === null || _rendered_placeholder === void 0 ? void 0 : _rendered_placeholder();
10014
+ return rendered_placeholders();
10016
10015
  },
10017
- get children() {
10018
- return product_cards_when_data();
10019
- }
10020
- }));
10016
+ children: product_cards_when_data
10017
+ });
10021
10018
  return [$ca55612a53dbbdd2$export$a2cc176055f8f08(layout()), $b8hua$createComponent((0, $b8hua$Show), {
10022
10019
  get when() {
10023
10020
  return doesnt_have_content_blocks();
@@ -10037,9 +10034,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
10037
10034
  class: "cards css-grid"
10038
10035
  },
10039
10036
  top_row_shortened_by_: top_row_shortened_by_,
10040
- get children() {
10041
- return listing_contents();
10042
- }
10037
+ children: listing_contents
10043
10038
  });
10044
10039
  },
10045
10040
  get children() {
@@ -10092,9 +10087,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
10092
10087
  $b8hua$insert(container, $b8hua$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
10093
10088
  }
10094
10089
  },
10095
- get children() {
10096
- return listing_contents();
10097
- }
10090
+ children: listing_contents
10098
10091
  });
10099
10092
  },
10100
10093
  get children() {
@@ -10115,9 +10108,7 @@ function $7faea0096f14b59b$export$3925f87b1545cfc6(_ref) {
10115
10108
  element_attributes: {
10116
10109
  class: "cards"
10117
10110
  },
10118
- get children() {
10119
- return listing_contents();
10120
- }
10111
+ children: listing_contents
10121
10112
  });
10122
10113
  }
10123
10114
  });
@@ -99,7 +99,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
99
99
  $parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
100
100
  $parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
101
101
  /*! Depict.ai search and product listing SDK */
102
- const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.15";
102
+ const $b757f75811f3261f$export$83d89fbfd8236492 = "4.7.16";
103
103
 
104
104
  /**
105
105
  * Gets product_id (the thing we key the rendering on) from a display
@@ -9375,11 +9375,11 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
9375
9375
  set_top_row_shortened_by_: set_top_row_shortened_by_
9376
9376
  }));
9377
9377
  const rendered_placeholders = $5vyXB$solidjs.createMemo(() => {
9378
- if (get_should_have_placeholders_rendered()) return $5vyXB$solidjs.children(() => $0caf87eaa19079da$export$f33414a4df0afd3f({
9378
+ if (get_should_have_placeholders_rendered()) return $0caf87eaa19079da$export$f33414a4df0afd3f({
9379
9379
  content_blocks_: content_blocks_,
9380
9380
  product_card_template_: product_card_template_,
9381
9381
  num_placeholders_: num_placeholders_
9382
- }));
9382
+ });
9383
9383
  });
9384
9384
  const layout = $5vyXB$solidjs.createMemo(() => {
9385
9385
  const incoming_layout = layout_options_().layout;
@@ -9415,7 +9415,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
9415
9415
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
9416
9416
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
9417
9417
  */
9418
- const product_cards_when_data = $5vyXB$solidjs.children(() => $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Suspense), {
9418
+ const product_cards_when_data = $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Suspense), {
9419
9419
  get fallback() {
9420
9420
  fallback_is_alive = true;
9421
9421
  $5vyXB$solidjs.onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -9447,19 +9447,17 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
9447
9447
  return suspense_contents;
9448
9448
  })();
9449
9449
  }
9450
- }));
9450
+ });
9451
9451
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
9452
- const listing_contents = $5vyXB$solidjs.children(() => $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
9452
+ const listing_contents = $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
9453
9453
  get when() {
9454
9454
  return !is_loading_();
9455
9455
  },
9456
9456
  get fallback() {
9457
- return rendered_placeholders()?.();
9457
+ return rendered_placeholders();
9458
9458
  },
9459
- get children() {
9460
- return product_cards_when_data();
9461
- }
9462
- }));
9459
+ children: product_cards_when_data
9460
+ });
9463
9461
  return [$fc23d7668ae0011d$export$a2cc176055f8f08(layout()), $5vyXB$solidjsweb.createComponent((0, $5vyXB$solidjs.Show), {
9464
9462
  get when() {
9465
9463
  return doesnt_have_content_blocks();
@@ -9479,9 +9477,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
9479
9477
  class: "cards css-grid"
9480
9478
  },
9481
9479
  top_row_shortened_by_: top_row_shortened_by_,
9482
- get children() {
9483
- return listing_contents();
9484
- }
9480
+ children: listing_contents
9485
9481
  });
9486
9482
  },
9487
9483
  get children() {
@@ -9534,9 +9530,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
9534
9530
  $5vyXB$solidjsweb.insert(container, $5vyXB$solidjs.createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
9535
9531
  }
9536
9532
  },
9537
- get children() {
9538
- return listing_contents();
9539
- }
9533
+ children: listing_contents
9540
9534
  });
9541
9535
  },
9542
9536
  get children() {
@@ -9557,9 +9551,7 @@ function $fe76fb463cc60b89$export$3925f87b1545cfc6({
9557
9551
  element_attributes: {
9558
9552
  class: "cards"
9559
9553
  },
9560
- get children() {
9561
- return listing_contents();
9562
- }
9554
+ children: listing_contents
9563
9555
  });
9564
9556
  }
9565
9557
  });
@@ -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.7.15";
14
+ export const version = "4.7.16";
15
15
  declare const LISTING_ID = "listingId";
16
16
  declare const EXTERNAL_ID = "externalId";
17
17
  type ScrollRestorationData = {
@@ -1436,7 +1436,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
1436
1436
  * Open the modal with support for alignment.
1437
1437
  * @returns {void}
1438
1438
  */
1439
- export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends unknown>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1439
+ export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
1440
1440
  export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
1441
1441
  export interface PageReplacer {
1442
1442
  readonly render_: () => Node_Array;
@@ -1515,5 +1515,5 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
1515
1515
  content_blocks_by_row?: ContentBlocksByRow;
1516
1516
  layout?: PossibleLayout;
1517
1517
  filterModalParent_?: HTMLElement | ShadowRoot;
1518
- }): import("@depict-ai/utilishared").Node_Array;
1518
+ }): import("@depict-ai/utilishared/latest").Node_Array;
1519
1519
  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.7.15";
10
+ const $ec291e0010116877$export$83d89fbfd8236492 = "4.7.16";
11
11
 
12
12
  /**
13
13
  * Gets product_id (the thing we key the rendering on) from a display
@@ -9283,11 +9283,11 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9283
9283
  set_top_row_shortened_by_: set_top_row_shortened_by_
9284
9284
  }));
9285
9285
  const rendered_placeholders = $i7OB2$createMemo(() => {
9286
- if (get_should_have_placeholders_rendered()) return $i7OB2$children(() => $6e41f1fde994db72$export$f33414a4df0afd3f({
9286
+ if (get_should_have_placeholders_rendered()) return $6e41f1fde994db72$export$f33414a4df0afd3f({
9287
9287
  content_blocks_: content_blocks_,
9288
9288
  product_card_template_: product_card_template_,
9289
9289
  num_placeholders_: num_placeholders_
9290
- }));
9290
+ });
9291
9291
  });
9292
9292
  const layout = $i7OB2$createMemo(() => {
9293
9293
  const incoming_layout = layout_options_().layout;
@@ -9323,7 +9323,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9323
9323
  (For the whole idea of the displays being cached to work we can't tear down and re-run ProductCards for every new result.
9324
9324
  We have to keep ProductCards alive, but hidden, and feed them new data as soon as we had it)
9325
9325
  */
9326
- const product_cards_when_data = $i7OB2$children(() => $i7OB2$createComponent((0, $i7OB2$Suspense), {
9326
+ const product_cards_when_data = $i7OB2$createComponent((0, $i7OB2$Suspense), {
9327
9327
  get fallback() {
9328
9328
  fallback_is_alive = true;
9329
9329
  $i7OB2$onCleanup(block_suspense_if_needed); // Block suspense after initial run every time after we fetch
@@ -9355,19 +9355,17 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9355
9355
  return suspense_contents;
9356
9356
  })();
9357
9357
  }
9358
- }));
9358
+ });
9359
9359
  /* This Show is so that we show placeholders while query_base is loading and because it's cumbersome to ensure that everything that directly accesses the plp_results_ resource is within the <Suspense> boundary */
9360
- const listing_contents = $i7OB2$children(() => $i7OB2$createComponent((0, $i7OB2$Show), {
9360
+ const listing_contents = $i7OB2$createComponent((0, $i7OB2$Show), {
9361
9361
  get when() {
9362
9362
  return !is_loading_();
9363
9363
  },
9364
9364
  get fallback() {
9365
- return rendered_placeholders()?.();
9365
+ return rendered_placeholders();
9366
9366
  },
9367
- get children() {
9368
- return product_cards_when_data();
9369
- }
9370
- }));
9367
+ children: product_cards_when_data
9368
+ });
9371
9369
  return [$a458486f22b22f63$export$a2cc176055f8f08(layout()), $i7OB2$createComponent((0, $i7OB2$Show), {
9372
9370
  get when() {
9373
9371
  return doesnt_have_content_blocks();
@@ -9387,9 +9385,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9387
9385
  class: "cards css-grid"
9388
9386
  },
9389
9387
  top_row_shortened_by_: top_row_shortened_by_,
9390
- get children() {
9391
- return listing_contents();
9392
- }
9388
+ children: listing_contents
9393
9389
  });
9394
9390
  },
9395
9391
  get children() {
@@ -9442,9 +9438,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9442
9438
  $i7OB2$insert(container, $i7OB2$createMemo(() => [...non_solid_nodes, rendered_scroll_status]));
9443
9439
  }
9444
9440
  },
9445
- get children() {
9446
- return listing_contents();
9447
- }
9441
+ children: listing_contents
9448
9442
  });
9449
9443
  },
9450
9444
  get children() {
@@ -9465,9 +9459,7 @@ function $2d25e42846eac370$export$3925f87b1545cfc6({
9465
9459
  element_attributes: {
9466
9460
  class: "cards"
9467
9461
  },
9468
- get children() {
9469
- return listing_contents();
9470
- }
9462
+ children: listing_contents
9471
9463
  });
9472
9464
  }
9473
9465
  });