@depict-ai/ui 4.2.2 → 4.3.0
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 +14 -22
- package/ES10/index.d.ts +3 -4
- package/ES10/index.js +14 -22
- package/README.md +1 -0
- package/latest/index.cjs +14 -19
- package/latest/index.d.ts +3 -4
- package/latest/index.js +14 -19
- package/package.json +1 -1
- package/server/ES10/index.cjs +14 -22
- package/server/ES10/index.d.ts +3 -4
- package/server/ES10/index.js +14 -22
- package/server/latest/index.cjs +14 -19
- package/server/latest/index.d.ts +3 -4
- package/server/latest/index.js +14 -19
package/ES10/index.cjs
CHANGED
|
@@ -100,7 +100,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
100
100
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
101
101
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
102
102
|
/*! Depict.ai search and product listing SDK */
|
|
103
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.
|
|
103
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.3.0";
|
|
104
104
|
const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
|
|
105
105
|
const cols_at_size = [];
|
|
106
106
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -12366,7 +12366,8 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
12366
12366
|
selected_filters_: selected_filters_,
|
|
12367
12367
|
local_filter_cache_: local_filter_cache_,
|
|
12368
12368
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
12369
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
12369
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
12370
|
+
filterModalParent_: filterModalParent_
|
|
12370
12371
|
} = _ref;
|
|
12371
12372
|
const Self = () => {
|
|
12372
12373
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -12501,7 +12502,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
12501
12502
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
12502
12503
|
dismiss_modal_: dismiss_modal_,
|
|
12503
12504
|
i18n_: i18n_
|
|
12504
|
-
}));
|
|
12505
|
+
}, filterModalParent_));
|
|
12505
12506
|
const {
|
|
12506
12507
|
remove: remove
|
|
12507
12508
|
} = $52FdA$depictaiutilishared.javascript_media_query("(max-width:651px)", _ref3 => {
|
|
@@ -13572,7 +13573,6 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
13572
13573
|
market_: market_,
|
|
13573
13574
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
13574
13575
|
layout_options_: layout_options_,
|
|
13575
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
13576
13576
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
13577
13577
|
product_card_template_: product_card_template_,
|
|
13578
13578
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -13582,7 +13582,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
13582
13582
|
content_search_enabled_: content_search_enabled_,
|
|
13583
13583
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
13584
13584
|
modalVersionUsed_: modalVersionUsed_,
|
|
13585
|
-
BackIcon_: BackIcon_
|
|
13585
|
+
BackIcon_: BackIcon_,
|
|
13586
|
+
filterModalParent_: filterModalParent_
|
|
13586
13587
|
} = _ref;
|
|
13587
13588
|
const [get_sorting] = current_sorting_;
|
|
13588
13589
|
const all_products_loaded_ = $52FdA$solidjs.createSignal(false);
|
|
@@ -13703,7 +13704,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
13703
13704
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
13704
13705
|
local_filter_cache_: local_filter_cache_,
|
|
13705
13706
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13706
|
-
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
|
|
13707
|
+
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
13708
|
+
filterModalParent_: filterModalParent_
|
|
13707
13709
|
});
|
|
13708
13710
|
const results_filters = $52FdA$solidjs.createSignal();
|
|
13709
13711
|
const owner = $52FdA$solidjs.getOwner();
|
|
@@ -13962,12 +13964,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
13962
13964
|
depict_api_: depict_api_,
|
|
13963
13965
|
i18n_: i18n_,
|
|
13964
13966
|
search_query_base_: search_query_base_,
|
|
13965
|
-
|
|
13966
|
-
return $52FdA$solidjs.createMemo(() => {
|
|
13967
|
-
var _recommendations_layo;
|
|
13968
|
-
return (_recommendations_layo = recommendations_layout_options_ === null || recommendations_layout_options_ === void 0 ? void 0 : recommendations_layout_options_()) !== null && _recommendations_layo !== void 0 ? _recommendations_layo : layout_options_();
|
|
13969
|
-
});
|
|
13970
|
-
},
|
|
13967
|
+
layout_options_: layout_options_,
|
|
13971
13968
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
13972
13969
|
product_card_template_: product_card_template_,
|
|
13973
13970
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -14470,15 +14467,7 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
|
|
|
14470
14467
|
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77($b1ea8d47bcf03111$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
14471
14468
|
...grid_spacing_override()
|
|
14472
14469
|
})),
|
|
14473
|
-
|
|
14474
|
-
const {
|
|
14475
|
-
extra_depict_options: extra_depict_options
|
|
14476
|
-
} = props;
|
|
14477
|
-
return extra_depict_options !== null && extra_depict_options !== void 0 && extra_depict_options.recommendations_cols_at_size ? {
|
|
14478
|
-
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
14479
|
-
...grid_spacing_override()
|
|
14480
|
-
} : undefined;
|
|
14481
|
-
}),
|
|
14470
|
+
filterModalParent_: $52FdA$solidjs.untrack(() => props.filterModalParent_),
|
|
14482
14471
|
product_card_template_: product_card_template
|
|
14483
14472
|
});
|
|
14484
14473
|
}, "Entire SearchPage failed");
|
|
@@ -15432,7 +15421,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
15432
15421
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
15433
15422
|
sorting_query_param_: sorting_query_param_,
|
|
15434
15423
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
15435
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
15424
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
15425
|
+
filterModalParent_: filterModalParent_
|
|
15436
15426
|
} = _ref;
|
|
15437
15427
|
let results_for;
|
|
15438
15428
|
let only_show_filters_opener_;
|
|
@@ -15635,6 +15625,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
15635
15625
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
15636
15626
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
15637
15627
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
15628
|
+
filterModalParent_: filterModalParent_,
|
|
15638
15629
|
...extra_sort_and_filter_args_
|
|
15639
15630
|
});
|
|
15640
15631
|
$52FdA$depictaiutilisharedlatest.catchify((0, $fef4890f1f8e0544$export$6e49da55e449af7c))({
|
|
@@ -15923,6 +15914,7 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
|
|
|
15923
15914
|
category_sorting_open_: category_sorting_open_,
|
|
15924
15915
|
expanded_filters_: expanded_filters_,
|
|
15925
15916
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
15917
|
+
filterModalParent_: $52FdA$solidjs.untrack(() => props.filterModalParent_),
|
|
15926
15918
|
selected_filters_: selected_filters_,
|
|
15927
15919
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
15928
15920
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
package/ES10/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.
|
|
13
|
+
export const version = "4.3.0";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -1337,9 +1337,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1337
1337
|
product_card_template: ProductCardTemplate<[TransformedDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<TransformedDisplay>>;
|
|
1338
1338
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1339
1339
|
on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
|
|
1340
|
-
|
|
1341
|
-
recommendations_cols_at_size?: SDKColsAtSize;
|
|
1342
|
-
};
|
|
1340
|
+
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1343
1341
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1344
1342
|
/**
|
|
1345
1343
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1456,5 +1454,6 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1456
1454
|
on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
|
|
1457
1455
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1458
1456
|
layout?: PossibleLayout;
|
|
1457
|
+
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1459
1458
|
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1460
1459
|
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.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.0";
|
|
14
14
|
const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
|
|
15
15
|
const cols_at_size = [];
|
|
16
16
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -12276,7 +12276,8 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
12276
12276
|
selected_filters_: selected_filters_,
|
|
12277
12277
|
local_filter_cache_: local_filter_cache_,
|
|
12278
12278
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
12279
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
12279
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
12280
|
+
filterModalParent_: filterModalParent_
|
|
12280
12281
|
} = _ref;
|
|
12281
12282
|
const Self = () => {
|
|
12282
12283
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -12411,7 +12412,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
12411
12412
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
12412
12413
|
dismiss_modal_: dismiss_modal_,
|
|
12413
12414
|
i18n_: i18n_
|
|
12414
|
-
}));
|
|
12415
|
+
}, filterModalParent_));
|
|
12415
12416
|
const {
|
|
12416
12417
|
remove: remove
|
|
12417
12418
|
} = $8tj43$javascript_media_query("(max-width:651px)", _ref3 => {
|
|
@@ -13482,7 +13483,6 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
13482
13483
|
market_: market_,
|
|
13483
13484
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
13484
13485
|
layout_options_: layout_options_,
|
|
13485
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
13486
13486
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
13487
13487
|
product_card_template_: product_card_template_,
|
|
13488
13488
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -13492,7 +13492,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
13492
13492
|
content_search_enabled_: content_search_enabled_,
|
|
13493
13493
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
13494
13494
|
modalVersionUsed_: modalVersionUsed_,
|
|
13495
|
-
BackIcon_: BackIcon_
|
|
13495
|
+
BackIcon_: BackIcon_,
|
|
13496
|
+
filterModalParent_: filterModalParent_
|
|
13496
13497
|
} = _ref;
|
|
13497
13498
|
const [get_sorting] = current_sorting_;
|
|
13498
13499
|
const all_products_loaded_ = $8tj43$createSignal(false);
|
|
@@ -13613,7 +13614,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
13613
13614
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
13614
13615
|
local_filter_cache_: local_filter_cache_,
|
|
13615
13616
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13616
|
-
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
|
|
13617
|
+
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
13618
|
+
filterModalParent_: filterModalParent_
|
|
13617
13619
|
});
|
|
13618
13620
|
const results_filters = $8tj43$createSignal();
|
|
13619
13621
|
const owner = $8tj43$getOwner();
|
|
@@ -13872,12 +13874,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
13872
13874
|
depict_api_: depict_api_,
|
|
13873
13875
|
i18n_: i18n_,
|
|
13874
13876
|
search_query_base_: search_query_base_,
|
|
13875
|
-
|
|
13876
|
-
return $8tj43$createMemo(() => {
|
|
13877
|
-
var _recommendations_layo;
|
|
13878
|
-
return (_recommendations_layo = recommendations_layout_options_ === null || recommendations_layout_options_ === void 0 ? void 0 : recommendations_layout_options_()) !== null && _recommendations_layo !== void 0 ? _recommendations_layo : layout_options_();
|
|
13879
|
-
});
|
|
13880
|
-
},
|
|
13877
|
+
layout_options_: layout_options_,
|
|
13881
13878
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
13882
13879
|
product_card_template_: product_card_template_,
|
|
13883
13880
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -14380,15 +14377,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
14380
14377
|
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77($3f7203368ad0d3ca$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
14381
14378
|
...grid_spacing_override()
|
|
14382
14379
|
})),
|
|
14383
|
-
|
|
14384
|
-
const {
|
|
14385
|
-
extra_depict_options: extra_depict_options
|
|
14386
|
-
} = props;
|
|
14387
|
-
return extra_depict_options !== null && extra_depict_options !== void 0 && extra_depict_options.recommendations_cols_at_size ? {
|
|
14388
|
-
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
14389
|
-
...grid_spacing_override()
|
|
14390
|
-
} : undefined;
|
|
14391
|
-
}),
|
|
14380
|
+
filterModalParent_: $8tj43$untrack(() => props.filterModalParent_),
|
|
14392
14381
|
product_card_template_: product_card_template
|
|
14393
14382
|
});
|
|
14394
14383
|
}, "Entire SearchPage failed");
|
|
@@ -15342,7 +15331,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
15342
15331
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
15343
15332
|
sorting_query_param_: sorting_query_param_,
|
|
15344
15333
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
15345
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
15334
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
15335
|
+
filterModalParent_: filterModalParent_
|
|
15346
15336
|
} = _ref;
|
|
15347
15337
|
let results_for;
|
|
15348
15338
|
let only_show_filters_opener_;
|
|
@@ -15545,6 +15535,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
15545
15535
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
15546
15536
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
15547
15537
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
15538
|
+
filterModalParent_: filterModalParent_,
|
|
15548
15539
|
...extra_sort_and_filter_args_
|
|
15549
15540
|
});
|
|
15550
15541
|
$8tj43$catchify1((0, $5e6abec0dab4e610$export$6e49da55e449af7c))({
|
|
@@ -15833,6 +15824,7 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
15833
15824
|
category_sorting_open_: category_sorting_open_,
|
|
15834
15825
|
expanded_filters_: expanded_filters_,
|
|
15835
15826
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
15827
|
+
filterModalParent_: $8tj43$untrack(() => props.filterModalParent_),
|
|
15836
15828
|
selected_filters_: selected_filters_,
|
|
15837
15829
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
15838
15830
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
package/README.md
CHANGED
|
@@ -11,3 +11,4 @@ Breaking changes:
|
|
|
11
11
|
- 2.0.0 Made `enable_content_search` `true` by default. Redesigned filter counts.
|
|
12
12
|
- 3.0.19 (first `latest` tagged release of version 3): Please see this [migration guide](https://docs.depict.ai/other-guides/sdk-migration-v2-v3)
|
|
13
13
|
- 4.x.x: See https://docs.depict.ai/other-guides/sdk-migration-v3-v4
|
|
14
|
+
- 4.3.0: Removed `recommendations_cols_at_size`. Technically breaking change but since this wasn't ever exposed in the js-ui and react-ui packages, I'm releasing it as minor version.
|
package/latest/index.cjs
CHANGED
|
@@ -94,7 +94,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
94
94
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
95
95
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
96
96
|
/*! Depict.ai search and product listing SDK */
|
|
97
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.
|
|
97
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.0";
|
|
98
98
|
const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
|
|
99
99
|
const cols_at_size = [];
|
|
100
100
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -11661,7 +11661,8 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
11661
11661
|
selected_filters_: selected_filters_,
|
|
11662
11662
|
local_filter_cache_: local_filter_cache_,
|
|
11663
11663
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
11664
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
11664
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
11665
|
+
filterModalParent_: filterModalParent_
|
|
11665
11666
|
}) {
|
|
11666
11667
|
const Self = () => {
|
|
11667
11668
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -11781,7 +11782,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
11781
11782
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
11782
11783
|
dismiss_modal_: dismiss_modal_,
|
|
11783
11784
|
i18n_: i18n_
|
|
11784
|
-
}));
|
|
11785
|
+
}, filterModalParent_));
|
|
11785
11786
|
const {
|
|
11786
11787
|
remove: remove
|
|
11787
11788
|
} = $gVhhF$depictaiutilishared.javascript_media_query("(max-width:651px)", ({
|
|
@@ -12794,7 +12795,6 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
12794
12795
|
market_: market_,
|
|
12795
12796
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
12796
12797
|
layout_options_: layout_options_,
|
|
12797
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
12798
12798
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
12799
12799
|
product_card_template_: product_card_template_,
|
|
12800
12800
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -12804,7 +12804,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
12804
12804
|
content_search_enabled_: content_search_enabled_,
|
|
12805
12805
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12806
12806
|
modalVersionUsed_: modalVersionUsed_,
|
|
12807
|
-
BackIcon_: BackIcon_
|
|
12807
|
+
BackIcon_: BackIcon_,
|
|
12808
|
+
filterModalParent_: filterModalParent_
|
|
12808
12809
|
}) {
|
|
12809
12810
|
const [get_sorting] = current_sorting_;
|
|
12810
12811
|
const all_products_loaded_ = $gVhhF$solidjs.createSignal(false);
|
|
@@ -12910,7 +12911,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
12910
12911
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
12911
12912
|
local_filter_cache_: local_filter_cache_,
|
|
12912
12913
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12913
|
-
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
|
|
12914
|
+
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
12915
|
+
filterModalParent_: filterModalParent_
|
|
12914
12916
|
});
|
|
12915
12917
|
const results_filters = $gVhhF$solidjs.createSignal();
|
|
12916
12918
|
const owner = $gVhhF$solidjs.getOwner();
|
|
@@ -13164,9 +13166,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13164
13166
|
depict_api_: depict_api_,
|
|
13165
13167
|
i18n_: i18n_,
|
|
13166
13168
|
search_query_base_: search_query_base_,
|
|
13167
|
-
|
|
13168
|
-
return $gVhhF$solidjs.createMemo(() => recommendations_layout_options_?.() ?? layout_options_());
|
|
13169
|
-
},
|
|
13169
|
+
layout_options_: layout_options_,
|
|
13170
13170
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
13171
13171
|
product_card_template_: product_card_template_,
|
|
13172
13172
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -13579,15 +13579,7 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
|
|
|
13579
13579
|
cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77($ab7c6c7911bae2f5$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
13580
13580
|
...grid_spacing_override()
|
|
13581
13581
|
})),
|
|
13582
|
-
|
|
13583
|
-
const {
|
|
13584
|
-
extra_depict_options: extra_depict_options
|
|
13585
|
-
} = props;
|
|
13586
|
-
return extra_depict_options?.recommendations_cols_at_size ? {
|
|
13587
|
-
cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
13588
|
-
...grid_spacing_override()
|
|
13589
|
-
} : undefined;
|
|
13590
|
-
}),
|
|
13582
|
+
filterModalParent_: $gVhhF$solidjs.untrack(() => props.filterModalParent_),
|
|
13591
13583
|
product_card_template_: product_card_template
|
|
13592
13584
|
});
|
|
13593
13585
|
}, "Entire SearchPage failed");
|
|
@@ -14418,7 +14410,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
14418
14410
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
14419
14411
|
sorting_query_param_: sorting_query_param_,
|
|
14420
14412
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
14421
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
14413
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
14414
|
+
filterModalParent_: filterModalParent_
|
|
14422
14415
|
}) {
|
|
14423
14416
|
let results_for;
|
|
14424
14417
|
let only_show_filters_opener_;
|
|
@@ -14596,6 +14589,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
14596
14589
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14597
14590
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
14598
14591
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
14592
|
+
filterModalParent_: filterModalParent_,
|
|
14599
14593
|
...extra_sort_and_filter_args_
|
|
14600
14594
|
});
|
|
14601
14595
|
$gVhhF$depictaiutilisharedlatest.catchify((0, $276380e4607fb9fb$export$6e49da55e449af7c))({
|
|
@@ -14873,6 +14867,7 @@ function $14f289047713d67a$export$e2bf8ce7779e827e(props) {
|
|
|
14873
14867
|
category_sorting_open_: category_sorting_open_,
|
|
14874
14868
|
expanded_filters_: expanded_filters_,
|
|
14875
14869
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14870
|
+
filterModalParent_: $gVhhF$solidjs.untrack(() => props.filterModalParent_),
|
|
14876
14871
|
selected_filters_: selected_filters_,
|
|
14877
14872
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
14878
14873
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
package/latest/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.
|
|
13
|
+
export const version = "4.3.0";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -1337,9 +1337,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1337
1337
|
product_card_template: ProductCardTemplate<[TransformedDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<TransformedDisplay>>;
|
|
1338
1338
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1339
1339
|
on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
|
|
1340
|
-
|
|
1341
|
-
recommendations_cols_at_size?: SDKColsAtSize;
|
|
1342
|
-
};
|
|
1340
|
+
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1343
1341
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1344
1342
|
/**
|
|
1345
1343
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1456,5 +1454,6 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1456
1454
|
on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
|
|
1457
1455
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1458
1456
|
layout?: PossibleLayout;
|
|
1457
|
+
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1459
1458
|
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1460
1459
|
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.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.0";
|
|
11
11
|
const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
|
|
12
12
|
const cols_at_size = [];
|
|
13
13
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -11574,7 +11574,8 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
11574
11574
|
selected_filters_: selected_filters_,
|
|
11575
11575
|
local_filter_cache_: local_filter_cache_,
|
|
11576
11576
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
11577
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
11577
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
11578
|
+
filterModalParent_: filterModalParent_
|
|
11578
11579
|
}) {
|
|
11579
11580
|
const Self = () => {
|
|
11580
11581
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -11694,7 +11695,7 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
11694
11695
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
11695
11696
|
dismiss_modal_: dismiss_modal_,
|
|
11696
11697
|
i18n_: i18n_
|
|
11697
|
-
}));
|
|
11698
|
+
}, filterModalParent_));
|
|
11698
11699
|
const {
|
|
11699
11700
|
remove: remove
|
|
11700
11701
|
} = $9HbP8$javascript_media_query("(max-width:651px)", ({
|
|
@@ -12707,7 +12708,6 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
12707
12708
|
market_: market_,
|
|
12708
12709
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
12709
12710
|
layout_options_: layout_options_,
|
|
12710
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
12711
12711
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
12712
12712
|
product_card_template_: product_card_template_,
|
|
12713
12713
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -12717,7 +12717,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
12717
12717
|
content_search_enabled_: content_search_enabled_,
|
|
12718
12718
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12719
12719
|
modalVersionUsed_: modalVersionUsed_,
|
|
12720
|
-
BackIcon_: BackIcon_
|
|
12720
|
+
BackIcon_: BackIcon_,
|
|
12721
|
+
filterModalParent_: filterModalParent_
|
|
12721
12722
|
}) {
|
|
12722
12723
|
const [get_sorting] = current_sorting_;
|
|
12723
12724
|
const all_products_loaded_ = $9HbP8$createSignal(false);
|
|
@@ -12823,7 +12824,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
12823
12824
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
12824
12825
|
local_filter_cache_: local_filter_cache_,
|
|
12825
12826
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12826
|
-
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
|
|
12827
|
+
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
12828
|
+
filterModalParent_: filterModalParent_
|
|
12827
12829
|
});
|
|
12828
12830
|
const results_filters = $9HbP8$createSignal();
|
|
12829
12831
|
const owner = $9HbP8$getOwner();
|
|
@@ -13077,9 +13079,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
13077
13079
|
depict_api_: depict_api_,
|
|
13078
13080
|
i18n_: i18n_,
|
|
13079
13081
|
search_query_base_: search_query_base_,
|
|
13080
|
-
|
|
13081
|
-
return $9HbP8$createMemo(() => recommendations_layout_options_?.() ?? layout_options_());
|
|
13082
|
-
},
|
|
13082
|
+
layout_options_: layout_options_,
|
|
13083
13083
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
13084
13084
|
product_card_template_: product_card_template_,
|
|
13085
13085
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -13492,15 +13492,7 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
13492
13492
|
cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77($1848f7cca286fbab$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
13493
13493
|
...grid_spacing_override()
|
|
13494
13494
|
})),
|
|
13495
|
-
|
|
13496
|
-
const {
|
|
13497
|
-
extra_depict_options: extra_depict_options
|
|
13498
|
-
} = props;
|
|
13499
|
-
return extra_depict_options?.recommendations_cols_at_size ? {
|
|
13500
|
-
cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
13501
|
-
...grid_spacing_override()
|
|
13502
|
-
} : undefined;
|
|
13503
|
-
}),
|
|
13495
|
+
filterModalParent_: $9HbP8$untrack(() => props.filterModalParent_),
|
|
13504
13496
|
product_card_template_: product_card_template
|
|
13505
13497
|
});
|
|
13506
13498
|
}, "Entire SearchPage failed");
|
|
@@ -14331,7 +14323,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
14331
14323
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
14332
14324
|
sorting_query_param_: sorting_query_param_,
|
|
14333
14325
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
14334
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
14326
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
14327
|
+
filterModalParent_: filterModalParent_
|
|
14335
14328
|
}) {
|
|
14336
14329
|
let results_for;
|
|
14337
14330
|
let only_show_filters_opener_;
|
|
@@ -14509,6 +14502,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
14509
14502
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14510
14503
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
14511
14504
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
14505
|
+
filterModalParent_: filterModalParent_,
|
|
14512
14506
|
...extra_sort_and_filter_args_
|
|
14513
14507
|
});
|
|
14514
14508
|
$9HbP8$catchify1((0, $641bba2917fe862b$export$6e49da55e449af7c))({
|
|
@@ -14786,6 +14780,7 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
14786
14780
|
category_sorting_open_: category_sorting_open_,
|
|
14787
14781
|
expanded_filters_: expanded_filters_,
|
|
14788
14782
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14783
|
+
filterModalParent_: $9HbP8$untrack(() => props.filterModalParent_),
|
|
14789
14784
|
selected_filters_: selected_filters_,
|
|
14790
14785
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
14791
14786
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
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",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -100,7 +100,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $335c02c1241a9ca8$export$5b7
|
|
|
100
100
|
$parcel$export(module.exports, "QuickLinks", () => $335c02c1241a9ca8$export$de035477d6fef996);
|
|
101
101
|
$parcel$export(module.exports, "CategoryPage", () => $c10e33c4681f8c9b$export$e2bf8ce7779e827e);
|
|
102
102
|
/*! Depict.ai search and product listing SDK */
|
|
103
|
-
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.
|
|
103
|
+
const $aa1938dec50d6c12$export$83d89fbfd8236492 = "4.3.0";
|
|
104
104
|
const $5401a6698b0c0658$var$transform_elements = sorted_cols_at_size => {
|
|
105
105
|
const cols_at_size = [];
|
|
106
106
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -10158,7 +10158,8 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
10158
10158
|
selected_filters_: selected_filters_,
|
|
10159
10159
|
local_filter_cache_: local_filter_cache_,
|
|
10160
10160
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
10161
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
10161
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
10162
|
+
filterModalParent_: filterModalParent_
|
|
10162
10163
|
} = _ref;
|
|
10163
10164
|
const Self = () => {
|
|
10164
10165
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -10285,7 +10286,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
10285
10286
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
10286
10287
|
dismiss_modal_: dismiss_modal_,
|
|
10287
10288
|
i18n_: i18n_
|
|
10288
|
-
}));
|
|
10289
|
+
}, filterModalParent_));
|
|
10289
10290
|
const {
|
|
10290
10291
|
remove: remove
|
|
10291
10292
|
} = $3hooq$depictaiutilishared.javascript_media_query("(max-width:651px)", _ref3 => {
|
|
@@ -11155,7 +11156,6 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
11155
11156
|
market_: market_,
|
|
11156
11157
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
11157
11158
|
layout_options_: layout_options_,
|
|
11158
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
11159
11159
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
11160
11160
|
product_card_template_: product_card_template_,
|
|
11161
11161
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -11165,7 +11165,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
11165
11165
|
content_search_enabled_: content_search_enabled_,
|
|
11166
11166
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
11167
11167
|
modalVersionUsed_: modalVersionUsed_,
|
|
11168
|
-
BackIcon_: BackIcon_
|
|
11168
|
+
BackIcon_: BackIcon_,
|
|
11169
|
+
filterModalParent_: filterModalParent_
|
|
11169
11170
|
} = _ref;
|
|
11170
11171
|
const [get_sorting] = current_sorting_;
|
|
11171
11172
|
const all_products_loaded_ = $3hooq$solidjs.createSignal(false);
|
|
@@ -11286,7 +11287,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
11286
11287
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
11287
11288
|
local_filter_cache_: local_filter_cache_,
|
|
11288
11289
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
11289
|
-
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
|
|
11290
|
+
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
11291
|
+
filterModalParent_: filterModalParent_
|
|
11290
11292
|
});
|
|
11291
11293
|
const results_filters = $3hooq$solidjs.createSignal();
|
|
11292
11294
|
const owner = $3hooq$solidjs.getOwner();
|
|
@@ -11509,12 +11511,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
11509
11511
|
depict_api_: depict_api_,
|
|
11510
11512
|
i18n_: i18n_,
|
|
11511
11513
|
search_query_base_: search_query_base_,
|
|
11512
|
-
|
|
11513
|
-
return $3hooq$solidjs.createMemo(() => {
|
|
11514
|
-
var _recommendations_layo;
|
|
11515
|
-
return (_recommendations_layo = recommendations_layout_options_ === null || recommendations_layout_options_ === void 0 ? void 0 : recommendations_layout_options_()) !== null && _recommendations_layo !== void 0 ? _recommendations_layo : layout_options_();
|
|
11516
|
-
});
|
|
11517
|
-
},
|
|
11514
|
+
layout_options_: layout_options_,
|
|
11518
11515
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
11519
11516
|
product_card_template_: product_card_template_,
|
|
11520
11517
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -12012,15 +12009,7 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
|
|
|
12012
12009
|
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77($b1ea8d47bcf03111$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
12013
12010
|
...grid_spacing_override()
|
|
12014
12011
|
})),
|
|
12015
|
-
|
|
12016
|
-
const {
|
|
12017
|
-
extra_depict_options: extra_depict_options
|
|
12018
|
-
} = props;
|
|
12019
|
-
return extra_depict_options !== null && extra_depict_options !== void 0 && extra_depict_options.recommendations_cols_at_size ? {
|
|
12020
|
-
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
12021
|
-
...grid_spacing_override()
|
|
12022
|
-
} : undefined;
|
|
12023
|
-
}),
|
|
12012
|
+
filterModalParent_: $3hooq$solidjs.untrack(() => props.filterModalParent_),
|
|
12024
12013
|
product_card_template_: product_card_template
|
|
12025
12014
|
});
|
|
12026
12015
|
}, "Entire SearchPage failed");
|
|
@@ -12892,7 +12881,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
12892
12881
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12893
12882
|
sorting_query_param_: sorting_query_param_,
|
|
12894
12883
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
12895
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
12884
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
12885
|
+
filterModalParent_: filterModalParent_
|
|
12896
12886
|
} = _ref;
|
|
12897
12887
|
let results_for;
|
|
12898
12888
|
let only_show_filters_opener_;
|
|
@@ -13085,6 +13075,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
13085
13075
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13086
13076
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
13087
13077
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
13078
|
+
filterModalParent_: filterModalParent_,
|
|
13088
13079
|
...extra_sort_and_filter_args_
|
|
13089
13080
|
});
|
|
13090
13081
|
$3hooq$depictaiutilisharedlatest.catchify((0, $fef4890f1f8e0544$export$6e49da55e449af7c))({
|
|
@@ -13337,6 +13328,7 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
|
|
|
13337
13328
|
category_sorting_open_: category_sorting_open_,
|
|
13338
13329
|
expanded_filters_: expanded_filters_,
|
|
13339
13330
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13331
|
+
filterModalParent_: $3hooq$solidjs.untrack(() => props.filterModalParent_),
|
|
13340
13332
|
selected_filters_: selected_filters_,
|
|
13341
13333
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
13342
13334
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.
|
|
13
|
+
export const version = "4.3.0";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -1337,9 +1337,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1337
1337
|
product_card_template: ProductCardTemplate<[TransformedDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<TransformedDisplay>>;
|
|
1338
1338
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1339
1339
|
on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
|
|
1340
|
-
|
|
1341
|
-
recommendations_cols_at_size?: SDKColsAtSize;
|
|
1342
|
-
};
|
|
1340
|
+
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1343
1341
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1344
1342
|
/**
|
|
1345
1343
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1456,5 +1454,6 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1456
1454
|
on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
|
|
1457
1455
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1458
1456
|
layout?: PossibleLayout;
|
|
1457
|
+
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1459
1458
|
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1460
1459
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/server/ES10/index.js
CHANGED
|
@@ -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.
|
|
13
|
+
const $8db9a15135765c11$export$83d89fbfd8236492 = "4.3.0";
|
|
14
14
|
const $a9c7ba6087881ac2$var$transform_elements = sorted_cols_at_size => {
|
|
15
15
|
const cols_at_size = [];
|
|
16
16
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -10068,7 +10068,8 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
10068
10068
|
selected_filters_: selected_filters_,
|
|
10069
10069
|
local_filter_cache_: local_filter_cache_,
|
|
10070
10070
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
10071
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
10071
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
10072
|
+
filterModalParent_: filterModalParent_
|
|
10072
10073
|
} = _ref;
|
|
10073
10074
|
const Self = () => {
|
|
10074
10075
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -10195,7 +10196,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
10195
10196
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
10196
10197
|
dismiss_modal_: dismiss_modal_,
|
|
10197
10198
|
i18n_: i18n_
|
|
10198
|
-
}));
|
|
10199
|
+
}, filterModalParent_));
|
|
10199
10200
|
const {
|
|
10200
10201
|
remove: remove
|
|
10201
10202
|
} = $b8hua$javascript_media_query("(max-width:651px)", _ref3 => {
|
|
@@ -11065,7 +11066,6 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11065
11066
|
market_: market_,
|
|
11066
11067
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
11067
11068
|
layout_options_: layout_options_,
|
|
11068
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
11069
11069
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
11070
11070
|
product_card_template_: product_card_template_,
|
|
11071
11071
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -11075,7 +11075,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11075
11075
|
content_search_enabled_: content_search_enabled_,
|
|
11076
11076
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
11077
11077
|
modalVersionUsed_: modalVersionUsed_,
|
|
11078
|
-
BackIcon_: BackIcon_
|
|
11078
|
+
BackIcon_: BackIcon_,
|
|
11079
|
+
filterModalParent_: filterModalParent_
|
|
11079
11080
|
} = _ref;
|
|
11080
11081
|
const [get_sorting] = current_sorting_;
|
|
11081
11082
|
const all_products_loaded_ = $b8hua$createSignal(false);
|
|
@@ -11196,7 +11197,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11196
11197
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
11197
11198
|
local_filter_cache_: local_filter_cache_,
|
|
11198
11199
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
11199
|
-
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
|
|
11200
|
+
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
11201
|
+
filterModalParent_: filterModalParent_
|
|
11200
11202
|
});
|
|
11201
11203
|
const results_filters = $b8hua$createSignal();
|
|
11202
11204
|
const owner = $b8hua$getOwner();
|
|
@@ -11419,12 +11421,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11419
11421
|
depict_api_: depict_api_,
|
|
11420
11422
|
i18n_: i18n_,
|
|
11421
11423
|
search_query_base_: search_query_base_,
|
|
11422
|
-
|
|
11423
|
-
return $b8hua$createMemo(() => {
|
|
11424
|
-
var _recommendations_layo;
|
|
11425
|
-
return (_recommendations_layo = recommendations_layout_options_ === null || recommendations_layout_options_ === void 0 ? void 0 : recommendations_layout_options_()) !== null && _recommendations_layo !== void 0 ? _recommendations_layo : layout_options_();
|
|
11426
|
-
});
|
|
11427
|
-
},
|
|
11424
|
+
layout_options_: layout_options_,
|
|
11428
11425
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
11429
11426
|
product_card_template_: product_card_template_,
|
|
11430
11427
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -11922,15 +11919,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
11922
11919
|
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77($3f7203368ad0d3ca$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
11923
11920
|
...grid_spacing_override()
|
|
11924
11921
|
})),
|
|
11925
|
-
|
|
11926
|
-
const {
|
|
11927
|
-
extra_depict_options: extra_depict_options
|
|
11928
|
-
} = props;
|
|
11929
|
-
return extra_depict_options !== null && extra_depict_options !== void 0 && extra_depict_options.recommendations_cols_at_size ? {
|
|
11930
|
-
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
11931
|
-
...grid_spacing_override()
|
|
11932
|
-
} : undefined;
|
|
11933
|
-
}),
|
|
11922
|
+
filterModalParent_: $b8hua$untrack(() => props.filterModalParent_),
|
|
11934
11923
|
product_card_template_: product_card_template
|
|
11935
11924
|
});
|
|
11936
11925
|
}, "Entire SearchPage failed");
|
|
@@ -12802,7 +12791,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
12802
12791
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12803
12792
|
sorting_query_param_: sorting_query_param_,
|
|
12804
12793
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
12805
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
12794
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
12795
|
+
filterModalParent_: filterModalParent_
|
|
12806
12796
|
} = _ref;
|
|
12807
12797
|
let results_for;
|
|
12808
12798
|
let only_show_filters_opener_;
|
|
@@ -12995,6 +12985,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
12995
12985
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12996
12986
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
12997
12987
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
12988
|
+
filterModalParent_: filterModalParent_,
|
|
12998
12989
|
...extra_sort_and_filter_args_
|
|
12999
12990
|
});
|
|
13000
12991
|
$b8hua$catchify1((0, $5e6abec0dab4e610$export$6e49da55e449af7c))({
|
|
@@ -13247,6 +13238,7 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
13247
13238
|
category_sorting_open_: category_sorting_open_,
|
|
13248
13239
|
expanded_filters_: expanded_filters_,
|
|
13249
13240
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13241
|
+
filterModalParent_: $b8hua$untrack(() => props.filterModalParent_),
|
|
13250
13242
|
selected_filters_: selected_filters_,
|
|
13251
13243
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
13252
13244
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
package/server/latest/index.cjs
CHANGED
|
@@ -94,7 +94,7 @@ $parcel$export(module.exports, "BreadCrumbs", () => $1f4925833f07df29$export$5b7
|
|
|
94
94
|
$parcel$export(module.exports, "QuickLinks", () => $1f4925833f07df29$export$de035477d6fef996);
|
|
95
95
|
$parcel$export(module.exports, "CategoryPage", () => $14f289047713d67a$export$e2bf8ce7779e827e);
|
|
96
96
|
/*! Depict.ai search and product listing SDK */
|
|
97
|
-
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.
|
|
97
|
+
const $b757f75811f3261f$export$83d89fbfd8236492 = "4.3.0";
|
|
98
98
|
const $4e04be41243c3d80$var$transform_elements = sorted_cols_at_size => {
|
|
99
99
|
const cols_at_size = [];
|
|
100
100
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -9514,7 +9514,8 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
9514
9514
|
selected_filters_: selected_filters_,
|
|
9515
9515
|
local_filter_cache_: local_filter_cache_,
|
|
9516
9516
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
9517
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
9517
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
9518
|
+
filterModalParent_: filterModalParent_
|
|
9518
9519
|
}) {
|
|
9519
9520
|
const Self = () => {
|
|
9520
9521
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -9626,7 +9627,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
9626
9627
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
9627
9628
|
dismiss_modal_: dismiss_modal_,
|
|
9628
9629
|
i18n_: i18n_
|
|
9629
|
-
}));
|
|
9630
|
+
}, filterModalParent_));
|
|
9630
9631
|
const {
|
|
9631
9632
|
remove: remove
|
|
9632
9633
|
} = $5vyXB$depictaiutilishared.javascript_media_query("(max-width:651px)", ({
|
|
@@ -10447,7 +10448,6 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10447
10448
|
market_: market_,
|
|
10448
10449
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
10449
10450
|
layout_options_: layout_options_,
|
|
10450
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
10451
10451
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
10452
10452
|
product_card_template_: product_card_template_,
|
|
10453
10453
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -10457,7 +10457,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10457
10457
|
content_search_enabled_: content_search_enabled_,
|
|
10458
10458
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
10459
10459
|
modalVersionUsed_: modalVersionUsed_,
|
|
10460
|
-
BackIcon_: BackIcon_
|
|
10460
|
+
BackIcon_: BackIcon_,
|
|
10461
|
+
filterModalParent_: filterModalParent_
|
|
10461
10462
|
}) {
|
|
10462
10463
|
const [get_sorting] = current_sorting_;
|
|
10463
10464
|
const all_products_loaded_ = $5vyXB$solidjs.createSignal(false);
|
|
@@ -10563,7 +10564,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10563
10564
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
10564
10565
|
local_filter_cache_: local_filter_cache_,
|
|
10565
10566
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
10566
|
-
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
|
|
10567
|
+
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
10568
|
+
filterModalParent_: filterModalParent_
|
|
10567
10569
|
});
|
|
10568
10570
|
const results_filters = $5vyXB$solidjs.createSignal();
|
|
10569
10571
|
const owner = $5vyXB$solidjs.getOwner();
|
|
@@ -10781,9 +10783,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10781
10783
|
depict_api_: depict_api_,
|
|
10782
10784
|
i18n_: i18n_,
|
|
10783
10785
|
search_query_base_: search_query_base_,
|
|
10784
|
-
|
|
10785
|
-
return $5vyXB$solidjs.createMemo(() => recommendations_layout_options_?.() ?? layout_options_());
|
|
10786
|
-
},
|
|
10786
|
+
layout_options_: layout_options_,
|
|
10787
10787
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
10788
10788
|
product_card_template_: product_card_template_,
|
|
10789
10789
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -11191,15 +11191,7 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
|
|
|
11191
11191
|
cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77($ab7c6c7911bae2f5$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
11192
11192
|
...grid_spacing_override()
|
|
11193
11193
|
})),
|
|
11194
|
-
|
|
11195
|
-
const {
|
|
11196
|
-
extra_depict_options: extra_depict_options
|
|
11197
|
-
} = props;
|
|
11198
|
-
return extra_depict_options?.recommendations_cols_at_size ? {
|
|
11199
|
-
cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
11200
|
-
...grid_spacing_override()
|
|
11201
|
-
} : undefined;
|
|
11202
|
-
}),
|
|
11194
|
+
filterModalParent_: $5vyXB$solidjs.untrack(() => props.filterModalParent_),
|
|
11203
11195
|
product_card_template_: product_card_template
|
|
11204
11196
|
});
|
|
11205
11197
|
}, "Entire SearchPage failed");
|
|
@@ -11953,7 +11945,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
11953
11945
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
11954
11946
|
sorting_query_param_: sorting_query_param_,
|
|
11955
11947
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
11956
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
11948
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
11949
|
+
filterModalParent_: filterModalParent_
|
|
11957
11950
|
}) {
|
|
11958
11951
|
let results_for;
|
|
11959
11952
|
let only_show_filters_opener_;
|
|
@@ -12121,6 +12114,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
12121
12114
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12122
12115
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
12123
12116
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
12117
|
+
filterModalParent_: filterModalParent_,
|
|
12124
12118
|
...extra_sort_and_filter_args_
|
|
12125
12119
|
});
|
|
12126
12120
|
$5vyXB$depictaiutilisharedlatest.catchify((0, $276380e4607fb9fb$export$6e49da55e449af7c))({
|
|
@@ -12362,6 +12356,7 @@ function $14f289047713d67a$export$e2bf8ce7779e827e(props) {
|
|
|
12362
12356
|
category_sorting_open_: category_sorting_open_,
|
|
12363
12357
|
expanded_filters_: expanded_filters_,
|
|
12364
12358
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12359
|
+
filterModalParent_: $5vyXB$solidjs.untrack(() => props.filterModalParent_),
|
|
12365
12360
|
selected_filters_: selected_filters_,
|
|
12366
12361
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12367
12362
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|
package/server/latest/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { ProductListingRequestV3 } from "@depict-ai/types/api/ProductListingRequ
|
|
|
10
10
|
import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
13
|
-
export const version = "4.
|
|
13
|
+
export const version = "4.3.0";
|
|
14
14
|
declare const LISTING_ID = "listingId";
|
|
15
15
|
declare const EXTERNAL_ID = "externalId";
|
|
16
16
|
type ScrollRestorationData = {
|
|
@@ -1337,9 +1337,7 @@ export function SearchPage<OriginalDisplay extends Display, TransformedDisplay e
|
|
|
1337
1337
|
product_card_template: ProductCardTemplate<[TransformedDisplay] extends [never] ? OriginalDisplay : ModernDisplayWithPageUrl<TransformedDisplay>>;
|
|
1338
1338
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1339
1339
|
on_query_change?: (new_query?: string | undefined, old_query?: string | undefined) => void;
|
|
1340
|
-
|
|
1341
|
-
recommendations_cols_at_size?: SDKColsAtSize;
|
|
1342
|
-
};
|
|
1340
|
+
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1343
1341
|
}): import("@depict-ai/utilishared").Node_Array;
|
|
1344
1342
|
/**
|
|
1345
1343
|
* Connects the height of the search field to the height of the aligner.
|
|
@@ -1456,5 +1454,6 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1456
1454
|
on_listing_query_change?: (new_listing_query?: ListingQuery | undefined, old_listing_query?: ListingQuery | undefined) => void;
|
|
1457
1455
|
content_blocks_by_row?: ContentBlocksByRow;
|
|
1458
1456
|
layout?: PossibleLayout;
|
|
1457
|
+
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1459
1458
|
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1460
1459
|
export type { SearchFilter } from "@depict-ai/types/api/SearchRequestV3";
|
package/server/latest/index.js
CHANGED
|
@@ -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.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.3.0";
|
|
11
11
|
const $b5cccc8ee7d24677$var$transform_elements = sorted_cols_at_size => {
|
|
12
12
|
const cols_at_size = [];
|
|
13
13
|
for (let i = 0; i < sorted_cols_at_size.length; i++) {
|
|
@@ -9427,7 +9427,8 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
9427
9427
|
selected_filters_: selected_filters_,
|
|
9428
9428
|
local_filter_cache_: local_filter_cache_,
|
|
9429
9429
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
9430
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
9430
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
9431
|
+
filterModalParent_: filterModalParent_
|
|
9431
9432
|
}) {
|
|
9432
9433
|
const Self = () => {
|
|
9433
9434
|
// This could technically be in SearchPage and CategoryPage and would be better suited there since it writes into local_filter_cache_ which i.e. SelectedFilters uses, but it's better suited here IMO due to DRY and being inside the correct error boundary here
|
|
@@ -9539,7 +9540,7 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
9539
9540
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
9540
9541
|
dismiss_modal_: dismiss_modal_,
|
|
9541
9542
|
i18n_: i18n_
|
|
9542
|
-
}));
|
|
9543
|
+
}, filterModalParent_));
|
|
9543
9544
|
const {
|
|
9544
9545
|
remove: remove
|
|
9545
9546
|
} = $i7OB2$javascript_media_query("(max-width:651px)", ({
|
|
@@ -10360,7 +10361,6 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10360
10361
|
market_: market_,
|
|
10361
10362
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
10362
10363
|
layout_options_: layout_options_,
|
|
10363
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
10364
10364
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
10365
10365
|
product_card_template_: product_card_template_,
|
|
10366
10366
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -10370,7 +10370,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10370
10370
|
content_search_enabled_: content_search_enabled_,
|
|
10371
10371
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
10372
10372
|
modalVersionUsed_: modalVersionUsed_,
|
|
10373
|
-
BackIcon_: BackIcon_
|
|
10373
|
+
BackIcon_: BackIcon_,
|
|
10374
|
+
filterModalParent_: filterModalParent_
|
|
10374
10375
|
}) {
|
|
10375
10376
|
const [get_sorting] = current_sorting_;
|
|
10376
10377
|
const all_products_loaded_ = $i7OB2$createSignal(false);
|
|
@@ -10476,7 +10477,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10476
10477
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
10477
10478
|
local_filter_cache_: local_filter_cache_,
|
|
10478
10479
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
10479
|
-
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_
|
|
10480
|
+
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
10481
|
+
filterModalParent_: filterModalParent_
|
|
10480
10482
|
});
|
|
10481
10483
|
const results_filters = $i7OB2$createSignal();
|
|
10482
10484
|
const owner = $i7OB2$getOwner();
|
|
@@ -10694,9 +10696,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10694
10696
|
depict_api_: depict_api_,
|
|
10695
10697
|
i18n_: i18n_,
|
|
10696
10698
|
search_query_base_: search_query_base_,
|
|
10697
|
-
|
|
10698
|
-
return $i7OB2$createMemo(() => recommendations_layout_options_?.() ?? layout_options_());
|
|
10699
|
-
},
|
|
10699
|
+
layout_options_: layout_options_,
|
|
10700
10700
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
10701
10701
|
product_card_template_: product_card_template_,
|
|
10702
10702
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -11104,15 +11104,7 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
11104
11104
|
cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77($1848f7cca286fbab$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
11105
11105
|
...grid_spacing_override()
|
|
11106
11106
|
})),
|
|
11107
|
-
|
|
11108
|
-
const {
|
|
11109
|
-
extra_depict_options: extra_depict_options
|
|
11110
|
-
} = props;
|
|
11111
|
-
return extra_depict_options?.recommendations_cols_at_size ? {
|
|
11112
|
-
cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
11113
|
-
...grid_spacing_override()
|
|
11114
|
-
} : undefined;
|
|
11115
|
-
}),
|
|
11107
|
+
filterModalParent_: $i7OB2$untrack(() => props.filterModalParent_),
|
|
11116
11108
|
product_card_template_: product_card_template
|
|
11117
11109
|
});
|
|
11118
11110
|
}, "Entire SearchPage failed");
|
|
@@ -11866,7 +11858,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
11866
11858
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
11867
11859
|
sorting_query_param_: sorting_query_param_,
|
|
11868
11860
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
11869
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
11861
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
11862
|
+
filterModalParent_: filterModalParent_
|
|
11870
11863
|
}) {
|
|
11871
11864
|
let results_for;
|
|
11872
11865
|
let only_show_filters_opener_;
|
|
@@ -12034,6 +12027,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
12034
12027
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12035
12028
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
12036
12029
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
12030
|
+
filterModalParent_: filterModalParent_,
|
|
12037
12031
|
...extra_sort_and_filter_args_
|
|
12038
12032
|
});
|
|
12039
12033
|
$i7OB2$catchify1((0, $641bba2917fe862b$export$6e49da55e449af7c))({
|
|
@@ -12275,6 +12269,7 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
12275
12269
|
category_sorting_open_: category_sorting_open_,
|
|
12276
12270
|
expanded_filters_: expanded_filters_,
|
|
12277
12271
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12272
|
+
filterModalParent_: $i7OB2$untrack(() => props.filterModalParent_),
|
|
12278
12273
|
selected_filters_: selected_filters_,
|
|
12279
12274
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12280
12275
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|