@depict-ai/ui 4.2.1 → 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 -26
- package/ES10/index.d.ts +4 -5
- package/ES10/index.js +14 -26
- package/README.md +1 -0
- package/latest/index.cjs +14 -23
- package/latest/index.d.ts +4 -5
- package/latest/index.js +14 -23
- package/package.json +1 -1
- package/server/ES10/index.cjs +14 -26
- package/server/ES10/index.d.ts +4 -5
- package/server/ES10/index.js +14 -26
- package/server/latest/index.cjs +14 -23
- package/server/latest/index.d.ts +4 -5
- package/server/latest/index.js +14 -23
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++) {
|
|
@@ -3425,10 +3425,6 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
3425
3425
|
$52FdA$solidjsweb.delegateEvents(["click", "keydown", "input", "pointerdown"]);
|
|
3426
3426
|
function $8c2e68c6d458169b$export$fe334901e8bebd57() {
|
|
3427
3427
|
const cleanup_fns = [];
|
|
3428
|
-
$52FdA$depictaiutilishared.dlog("DISABLING SCROLLING");
|
|
3429
|
-
$52FdA$solidjs.onCleanup(() => {
|
|
3430
|
-
console.log("RE-ENABLING SCROLLING");
|
|
3431
|
-
});
|
|
3432
3428
|
const cleanup = () => cleanup_fns.forEach(f => f());
|
|
3433
3429
|
// use an animation to automatically retain the `overflow` values and all other styling
|
|
3434
3430
|
for (const element of [document.documentElement, document.body]) {
|
|
@@ -12370,7 +12366,8 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
12370
12366
|
selected_filters_: selected_filters_,
|
|
12371
12367
|
local_filter_cache_: local_filter_cache_,
|
|
12372
12368
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
12373
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
12369
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
12370
|
+
filterModalParent_: filterModalParent_
|
|
12374
12371
|
} = _ref;
|
|
12375
12372
|
const Self = () => {
|
|
12376
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
|
|
@@ -12505,7 +12502,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
12505
12502
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
12506
12503
|
dismiss_modal_: dismiss_modal_,
|
|
12507
12504
|
i18n_: i18n_
|
|
12508
|
-
}));
|
|
12505
|
+
}, filterModalParent_));
|
|
12509
12506
|
const {
|
|
12510
12507
|
remove: remove
|
|
12511
12508
|
} = $52FdA$depictaiutilishared.javascript_media_query("(max-width:651px)", _ref3 => {
|
|
@@ -13576,7 +13573,6 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
13576
13573
|
market_: market_,
|
|
13577
13574
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
13578
13575
|
layout_options_: layout_options_,
|
|
13579
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
13580
13576
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
13581
13577
|
product_card_template_: product_card_template_,
|
|
13582
13578
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -13586,7 +13582,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
13586
13582
|
content_search_enabled_: content_search_enabled_,
|
|
13587
13583
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
13588
13584
|
modalVersionUsed_: modalVersionUsed_,
|
|
13589
|
-
BackIcon_: BackIcon_
|
|
13585
|
+
BackIcon_: BackIcon_,
|
|
13586
|
+
filterModalParent_: filterModalParent_
|
|
13590
13587
|
} = _ref;
|
|
13591
13588
|
const [get_sorting] = current_sorting_;
|
|
13592
13589
|
const all_products_loaded_ = $52FdA$solidjs.createSignal(false);
|
|
@@ -13707,7 +13704,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
13707
13704
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
13708
13705
|
local_filter_cache_: local_filter_cache_,
|
|
13709
13706
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13710
|
-
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_
|
|
13711
13709
|
});
|
|
13712
13710
|
const results_filters = $52FdA$solidjs.createSignal();
|
|
13713
13711
|
const owner = $52FdA$solidjs.getOwner();
|
|
@@ -13966,12 +13964,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
13966
13964
|
depict_api_: depict_api_,
|
|
13967
13965
|
i18n_: i18n_,
|
|
13968
13966
|
search_query_base_: search_query_base_,
|
|
13969
|
-
|
|
13970
|
-
return $52FdA$solidjs.createMemo(() => {
|
|
13971
|
-
var _recommendations_layo;
|
|
13972
|
-
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_();
|
|
13973
|
-
});
|
|
13974
|
-
},
|
|
13967
|
+
layout_options_: layout_options_,
|
|
13975
13968
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
13976
13969
|
product_card_template_: product_card_template_,
|
|
13977
13970
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -14474,15 +14467,7 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
|
|
|
14474
14467
|
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77($b1ea8d47bcf03111$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
14475
14468
|
...grid_spacing_override()
|
|
14476
14469
|
})),
|
|
14477
|
-
|
|
14478
|
-
const {
|
|
14479
|
-
extra_depict_options: extra_depict_options
|
|
14480
|
-
} = props;
|
|
14481
|
-
return extra_depict_options !== null && extra_depict_options !== void 0 && extra_depict_options.recommendations_cols_at_size ? {
|
|
14482
|
-
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
14483
|
-
...grid_spacing_override()
|
|
14484
|
-
} : undefined;
|
|
14485
|
-
}),
|
|
14470
|
+
filterModalParent_: $52FdA$solidjs.untrack(() => props.filterModalParent_),
|
|
14486
14471
|
product_card_template_: product_card_template
|
|
14487
14472
|
});
|
|
14488
14473
|
}, "Entire SearchPage failed");
|
|
@@ -15436,7 +15421,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
15436
15421
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
15437
15422
|
sorting_query_param_: sorting_query_param_,
|
|
15438
15423
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
15439
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
15424
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
15425
|
+
filterModalParent_: filterModalParent_
|
|
15440
15426
|
} = _ref;
|
|
15441
15427
|
let results_for;
|
|
15442
15428
|
let only_show_filters_opener_;
|
|
@@ -15639,6 +15625,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
15639
15625
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
15640
15626
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
15641
15627
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
15628
|
+
filterModalParent_: filterModalParent_,
|
|
15642
15629
|
...extra_sort_and_filter_args_
|
|
15643
15630
|
});
|
|
15644
15631
|
$52FdA$depictaiutilisharedlatest.catchify((0, $fef4890f1f8e0544$export$6e49da55e449af7c))({
|
|
@@ -15927,6 +15914,7 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
|
|
|
15927
15914
|
category_sorting_open_: category_sorting_open_,
|
|
15928
15915
|
expanded_filters_: expanded_filters_,
|
|
15929
15916
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
15917
|
+
filterModalParent_: $52FdA$solidjs.untrack(() => props.filterModalParent_),
|
|
15930
15918
|
selected_filters_: selected_filters_,
|
|
15931
15919
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
15932
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 = {
|
|
@@ -252,7 +252,7 @@ export function LooksSlider(props: {
|
|
|
252
252
|
imagePlaceholderAspectRatio_: number | string;
|
|
253
253
|
title_?: JSX.Element;
|
|
254
254
|
FavoriteButton_?: (props: {
|
|
255
|
-
display_: ModernDisplay | null | undefined
|
|
255
|
+
display_: Accessor<ModernDisplay | null | undefined>;
|
|
256
256
|
}) => JSX.Element;
|
|
257
257
|
}): HTMLDivElement;
|
|
258
258
|
export const prefixes_to_preserve_in_history_dot_state: Set<string>;
|
|
@@ -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++) {
|
|
@@ -3335,10 +3335,6 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
3335
3335
|
$8tj43$delegateEvents(["click", "keydown", "input", "pointerdown"]);
|
|
3336
3336
|
function $e56d241d0f33d459$export$fe334901e8bebd57() {
|
|
3337
3337
|
const cleanup_fns = [];
|
|
3338
|
-
$8tj43$dlog("DISABLING SCROLLING");
|
|
3339
|
-
$8tj43$onCleanup(() => {
|
|
3340
|
-
console.log("RE-ENABLING SCROLLING");
|
|
3341
|
-
});
|
|
3342
3338
|
const cleanup = () => cleanup_fns.forEach(f => f());
|
|
3343
3339
|
// use an animation to automatically retain the `overflow` values and all other styling
|
|
3344
3340
|
for (const element of [document.documentElement, document.body]) {
|
|
@@ -12280,7 +12276,8 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
12280
12276
|
selected_filters_: selected_filters_,
|
|
12281
12277
|
local_filter_cache_: local_filter_cache_,
|
|
12282
12278
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
12283
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
12279
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
12280
|
+
filterModalParent_: filterModalParent_
|
|
12284
12281
|
} = _ref;
|
|
12285
12282
|
const Self = () => {
|
|
12286
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
|
|
@@ -12415,7 +12412,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
12415
12412
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
12416
12413
|
dismiss_modal_: dismiss_modal_,
|
|
12417
12414
|
i18n_: i18n_
|
|
12418
|
-
}));
|
|
12415
|
+
}, filterModalParent_));
|
|
12419
12416
|
const {
|
|
12420
12417
|
remove: remove
|
|
12421
12418
|
} = $8tj43$javascript_media_query("(max-width:651px)", _ref3 => {
|
|
@@ -13486,7 +13483,6 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
13486
13483
|
market_: market_,
|
|
13487
13484
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
13488
13485
|
layout_options_: layout_options_,
|
|
13489
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
13490
13486
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
13491
13487
|
product_card_template_: product_card_template_,
|
|
13492
13488
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -13496,7 +13492,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
13496
13492
|
content_search_enabled_: content_search_enabled_,
|
|
13497
13493
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
13498
13494
|
modalVersionUsed_: modalVersionUsed_,
|
|
13499
|
-
BackIcon_: BackIcon_
|
|
13495
|
+
BackIcon_: BackIcon_,
|
|
13496
|
+
filterModalParent_: filterModalParent_
|
|
13500
13497
|
} = _ref;
|
|
13501
13498
|
const [get_sorting] = current_sorting_;
|
|
13502
13499
|
const all_products_loaded_ = $8tj43$createSignal(false);
|
|
@@ -13617,7 +13614,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
13617
13614
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
13618
13615
|
local_filter_cache_: local_filter_cache_,
|
|
13619
13616
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13620
|
-
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_
|
|
13621
13619
|
});
|
|
13622
13620
|
const results_filters = $8tj43$createSignal();
|
|
13623
13621
|
const owner = $8tj43$getOwner();
|
|
@@ -13876,12 +13874,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
13876
13874
|
depict_api_: depict_api_,
|
|
13877
13875
|
i18n_: i18n_,
|
|
13878
13876
|
search_query_base_: search_query_base_,
|
|
13879
|
-
|
|
13880
|
-
return $8tj43$createMemo(() => {
|
|
13881
|
-
var _recommendations_layo;
|
|
13882
|
-
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_();
|
|
13883
|
-
});
|
|
13884
|
-
},
|
|
13877
|
+
layout_options_: layout_options_,
|
|
13885
13878
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
13886
13879
|
product_card_template_: product_card_template_,
|
|
13887
13880
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -14384,15 +14377,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
14384
14377
|
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77($3f7203368ad0d3ca$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
14385
14378
|
...grid_spacing_override()
|
|
14386
14379
|
})),
|
|
14387
|
-
|
|
14388
|
-
const {
|
|
14389
|
-
extra_depict_options: extra_depict_options
|
|
14390
|
-
} = props;
|
|
14391
|
-
return extra_depict_options !== null && extra_depict_options !== void 0 && extra_depict_options.recommendations_cols_at_size ? {
|
|
14392
|
-
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
14393
|
-
...grid_spacing_override()
|
|
14394
|
-
} : undefined;
|
|
14395
|
-
}),
|
|
14380
|
+
filterModalParent_: $8tj43$untrack(() => props.filterModalParent_),
|
|
14396
14381
|
product_card_template_: product_card_template
|
|
14397
14382
|
});
|
|
14398
14383
|
}, "Entire SearchPage failed");
|
|
@@ -15346,7 +15331,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
15346
15331
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
15347
15332
|
sorting_query_param_: sorting_query_param_,
|
|
15348
15333
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
15349
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
15334
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
15335
|
+
filterModalParent_: filterModalParent_
|
|
15350
15336
|
} = _ref;
|
|
15351
15337
|
let results_for;
|
|
15352
15338
|
let only_show_filters_opener_;
|
|
@@ -15549,6 +15535,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
15549
15535
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
15550
15536
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
15551
15537
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
15538
|
+
filterModalParent_: filterModalParent_,
|
|
15552
15539
|
...extra_sort_and_filter_args_
|
|
15553
15540
|
});
|
|
15554
15541
|
$8tj43$catchify1((0, $5e6abec0dab4e610$export$6e49da55e449af7c))({
|
|
@@ -15837,6 +15824,7 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
15837
15824
|
category_sorting_open_: category_sorting_open_,
|
|
15838
15825
|
expanded_filters_: expanded_filters_,
|
|
15839
15826
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
15827
|
+
filterModalParent_: $8tj43$untrack(() => props.filterModalParent_),
|
|
15840
15828
|
selected_filters_: selected_filters_,
|
|
15841
15829
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
15842
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++) {
|
|
@@ -3265,10 +3265,6 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
3265
3265
|
$gVhhF$solidjsweb.delegateEvents(["click", "keydown", "input", "pointerdown"]);
|
|
3266
3266
|
function $ca1176b694a6ee2e$export$fe334901e8bebd57() {
|
|
3267
3267
|
const cleanup_fns = [];
|
|
3268
|
-
$gVhhF$depictaiutilishared.dlog("DISABLING SCROLLING");
|
|
3269
|
-
$gVhhF$solidjs.onCleanup(() => {
|
|
3270
|
-
console.log("RE-ENABLING SCROLLING");
|
|
3271
|
-
});
|
|
3272
3268
|
const cleanup = () => cleanup_fns.forEach(f => f());
|
|
3273
3269
|
// use an animation to automatically retain the `overflow` values and all other styling
|
|
3274
3270
|
for (const element of [document.documentElement, document.body]) {
|
|
@@ -11665,7 +11661,8 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
11665
11661
|
selected_filters_: selected_filters_,
|
|
11666
11662
|
local_filter_cache_: local_filter_cache_,
|
|
11667
11663
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
11668
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
11664
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
11665
|
+
filterModalParent_: filterModalParent_
|
|
11669
11666
|
}) {
|
|
11670
11667
|
const Self = () => {
|
|
11671
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
|
|
@@ -11785,7 +11782,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
11785
11782
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
11786
11783
|
dismiss_modal_: dismiss_modal_,
|
|
11787
11784
|
i18n_: i18n_
|
|
11788
|
-
}));
|
|
11785
|
+
}, filterModalParent_));
|
|
11789
11786
|
const {
|
|
11790
11787
|
remove: remove
|
|
11791
11788
|
} = $gVhhF$depictaiutilishared.javascript_media_query("(max-width:651px)", ({
|
|
@@ -12798,7 +12795,6 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
12798
12795
|
market_: market_,
|
|
12799
12796
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
12800
12797
|
layout_options_: layout_options_,
|
|
12801
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
12802
12798
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
12803
12799
|
product_card_template_: product_card_template_,
|
|
12804
12800
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -12808,7 +12804,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
12808
12804
|
content_search_enabled_: content_search_enabled_,
|
|
12809
12805
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12810
12806
|
modalVersionUsed_: modalVersionUsed_,
|
|
12811
|
-
BackIcon_: BackIcon_
|
|
12807
|
+
BackIcon_: BackIcon_,
|
|
12808
|
+
filterModalParent_: filterModalParent_
|
|
12812
12809
|
}) {
|
|
12813
12810
|
const [get_sorting] = current_sorting_;
|
|
12814
12811
|
const all_products_loaded_ = $gVhhF$solidjs.createSignal(false);
|
|
@@ -12914,7 +12911,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
12914
12911
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
12915
12912
|
local_filter_cache_: local_filter_cache_,
|
|
12916
12913
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12917
|
-
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_
|
|
12918
12916
|
});
|
|
12919
12917
|
const results_filters = $gVhhF$solidjs.createSignal();
|
|
12920
12918
|
const owner = $gVhhF$solidjs.getOwner();
|
|
@@ -13168,9 +13166,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
13168
13166
|
depict_api_: depict_api_,
|
|
13169
13167
|
i18n_: i18n_,
|
|
13170
13168
|
search_query_base_: search_query_base_,
|
|
13171
|
-
|
|
13172
|
-
return $gVhhF$solidjs.createMemo(() => recommendations_layout_options_?.() ?? layout_options_());
|
|
13173
|
-
},
|
|
13169
|
+
layout_options_: layout_options_,
|
|
13174
13170
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
13175
13171
|
product_card_template_: product_card_template_,
|
|
13176
13172
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -13583,15 +13579,7 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
|
|
|
13583
13579
|
cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77($ab7c6c7911bae2f5$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
13584
13580
|
...grid_spacing_override()
|
|
13585
13581
|
})),
|
|
13586
|
-
|
|
13587
|
-
const {
|
|
13588
|
-
extra_depict_options: extra_depict_options
|
|
13589
|
-
} = props;
|
|
13590
|
-
return extra_depict_options?.recommendations_cols_at_size ? {
|
|
13591
|
-
cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
13592
|
-
...grid_spacing_override()
|
|
13593
|
-
} : undefined;
|
|
13594
|
-
}),
|
|
13582
|
+
filterModalParent_: $gVhhF$solidjs.untrack(() => props.filterModalParent_),
|
|
13595
13583
|
product_card_template_: product_card_template
|
|
13596
13584
|
});
|
|
13597
13585
|
}, "Entire SearchPage failed");
|
|
@@ -14422,7 +14410,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
14422
14410
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
14423
14411
|
sorting_query_param_: sorting_query_param_,
|
|
14424
14412
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
14425
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
14413
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
14414
|
+
filterModalParent_: filterModalParent_
|
|
14426
14415
|
}) {
|
|
14427
14416
|
let results_for;
|
|
14428
14417
|
let only_show_filters_opener_;
|
|
@@ -14600,6 +14589,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
14600
14589
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14601
14590
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
14602
14591
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
14592
|
+
filterModalParent_: filterModalParent_,
|
|
14603
14593
|
...extra_sort_and_filter_args_
|
|
14604
14594
|
});
|
|
14605
14595
|
$gVhhF$depictaiutilisharedlatest.catchify((0, $276380e4607fb9fb$export$6e49da55e449af7c))({
|
|
@@ -14877,6 +14867,7 @@ function $14f289047713d67a$export$e2bf8ce7779e827e(props) {
|
|
|
14877
14867
|
category_sorting_open_: category_sorting_open_,
|
|
14878
14868
|
expanded_filters_: expanded_filters_,
|
|
14879
14869
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14870
|
+
filterModalParent_: $gVhhF$solidjs.untrack(() => props.filterModalParent_),
|
|
14880
14871
|
selected_filters_: selected_filters_,
|
|
14881
14872
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
14882
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 = {
|
|
@@ -252,7 +252,7 @@ export function LooksSlider(props: {
|
|
|
252
252
|
imagePlaceholderAspectRatio_: number | string;
|
|
253
253
|
title_?: JSX.Element;
|
|
254
254
|
FavoriteButton_?: (props: {
|
|
255
|
-
display_: ModernDisplay | null | undefined
|
|
255
|
+
display_: Accessor<ModernDisplay | null | undefined>;
|
|
256
256
|
}) => JSX.Element;
|
|
257
257
|
}): HTMLDivElement;
|
|
258
258
|
export const prefixes_to_preserve_in_history_dot_state: Set<string>;
|
|
@@ -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++) {
|
|
@@ -3178,10 +3178,6 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
3178
3178
|
$9HbP8$delegateEvents(["click", "keydown", "input", "pointerdown"]);
|
|
3179
3179
|
function $aea1edf92433e81e$export$fe334901e8bebd57() {
|
|
3180
3180
|
const cleanup_fns = [];
|
|
3181
|
-
$9HbP8$dlog("DISABLING SCROLLING");
|
|
3182
|
-
$9HbP8$onCleanup(() => {
|
|
3183
|
-
console.log("RE-ENABLING SCROLLING");
|
|
3184
|
-
});
|
|
3185
3181
|
const cleanup = () => cleanup_fns.forEach(f => f());
|
|
3186
3182
|
// use an animation to automatically retain the `overflow` values and all other styling
|
|
3187
3183
|
for (const element of [document.documentElement, document.body]) {
|
|
@@ -11578,7 +11574,8 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
11578
11574
|
selected_filters_: selected_filters_,
|
|
11579
11575
|
local_filter_cache_: local_filter_cache_,
|
|
11580
11576
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
11581
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
11577
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
11578
|
+
filterModalParent_: filterModalParent_
|
|
11582
11579
|
}) {
|
|
11583
11580
|
const Self = () => {
|
|
11584
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
|
|
@@ -11698,7 +11695,7 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
11698
11695
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
11699
11696
|
dismiss_modal_: dismiss_modal_,
|
|
11700
11697
|
i18n_: i18n_
|
|
11701
|
-
}));
|
|
11698
|
+
}, filterModalParent_));
|
|
11702
11699
|
const {
|
|
11703
11700
|
remove: remove
|
|
11704
11701
|
} = $9HbP8$javascript_media_query("(max-width:651px)", ({
|
|
@@ -12711,7 +12708,6 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
12711
12708
|
market_: market_,
|
|
12712
12709
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
12713
12710
|
layout_options_: layout_options_,
|
|
12714
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
12715
12711
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
12716
12712
|
product_card_template_: product_card_template_,
|
|
12717
12713
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -12721,7 +12717,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
12721
12717
|
content_search_enabled_: content_search_enabled_,
|
|
12722
12718
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
12723
12719
|
modalVersionUsed_: modalVersionUsed_,
|
|
12724
|
-
BackIcon_: BackIcon_
|
|
12720
|
+
BackIcon_: BackIcon_,
|
|
12721
|
+
filterModalParent_: filterModalParent_
|
|
12725
12722
|
}) {
|
|
12726
12723
|
const [get_sorting] = current_sorting_;
|
|
12727
12724
|
const all_products_loaded_ = $9HbP8$createSignal(false);
|
|
@@ -12827,7 +12824,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
12827
12824
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
12828
12825
|
local_filter_cache_: local_filter_cache_,
|
|
12829
12826
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12830
|
-
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_
|
|
12831
12829
|
});
|
|
12832
12830
|
const results_filters = $9HbP8$createSignal();
|
|
12833
12831
|
const owner = $9HbP8$getOwner();
|
|
@@ -13081,9 +13079,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
13081
13079
|
depict_api_: depict_api_,
|
|
13082
13080
|
i18n_: i18n_,
|
|
13083
13081
|
search_query_base_: search_query_base_,
|
|
13084
|
-
|
|
13085
|
-
return $9HbP8$createMemo(() => recommendations_layout_options_?.() ?? layout_options_());
|
|
13086
|
-
},
|
|
13082
|
+
layout_options_: layout_options_,
|
|
13087
13083
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
13088
13084
|
product_card_template_: product_card_template_,
|
|
13089
13085
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -13496,15 +13492,7 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
13496
13492
|
cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77($1848f7cca286fbab$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
13497
13493
|
...grid_spacing_override()
|
|
13498
13494
|
})),
|
|
13499
|
-
|
|
13500
|
-
const {
|
|
13501
|
-
extra_depict_options: extra_depict_options
|
|
13502
|
-
} = props;
|
|
13503
|
-
return extra_depict_options?.recommendations_cols_at_size ? {
|
|
13504
|
-
cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
13505
|
-
...grid_spacing_override()
|
|
13506
|
-
} : undefined;
|
|
13507
|
-
}),
|
|
13495
|
+
filterModalParent_: $9HbP8$untrack(() => props.filterModalParent_),
|
|
13508
13496
|
product_card_template_: product_card_template
|
|
13509
13497
|
});
|
|
13510
13498
|
}, "Entire SearchPage failed");
|
|
@@ -14335,7 +14323,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
14335
14323
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
14336
14324
|
sorting_query_param_: sorting_query_param_,
|
|
14337
14325
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
14338
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
14326
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
14327
|
+
filterModalParent_: filterModalParent_
|
|
14339
14328
|
}) {
|
|
14340
14329
|
let results_for;
|
|
14341
14330
|
let only_show_filters_opener_;
|
|
@@ -14513,6 +14502,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
14513
14502
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14514
14503
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
14515
14504
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
14505
|
+
filterModalParent_: filterModalParent_,
|
|
14516
14506
|
...extra_sort_and_filter_args_
|
|
14517
14507
|
});
|
|
14518
14508
|
$9HbP8$catchify1((0, $641bba2917fe862b$export$6e49da55e449af7c))({
|
|
@@ -14790,6 +14780,7 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
14790
14780
|
category_sorting_open_: category_sorting_open_,
|
|
14791
14781
|
expanded_filters_: expanded_filters_,
|
|
14792
14782
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
14783
|
+
filterModalParent_: $9HbP8$untrack(() => props.filterModalParent_),
|
|
14793
14784
|
selected_filters_: selected_filters_,
|
|
14794
14785
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
14795
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++) {
|
|
@@ -2775,10 +2775,6 @@ function $29e5dbeb69da7a36$export$b94867ecbd698f21(_ref) {
|
|
|
2775
2775
|
}
|
|
2776
2776
|
function $8c2e68c6d458169b$export$fe334901e8bebd57() {
|
|
2777
2777
|
const cleanup_fns = [];
|
|
2778
|
-
$3hooq$depictaiutilishared.dlog("DISABLING SCROLLING");
|
|
2779
|
-
$3hooq$solidjs.onCleanup(() => {
|
|
2780
|
-
console.log("RE-ENABLING SCROLLING");
|
|
2781
|
-
});
|
|
2782
2778
|
const cleanup = () => cleanup_fns.forEach(f => f());
|
|
2783
2779
|
// use an animation to automatically retain the `overflow` values and all other styling
|
|
2784
2780
|
for (const element of [document.documentElement, document.body]) {
|
|
@@ -10162,7 +10158,8 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
10162
10158
|
selected_filters_: selected_filters_,
|
|
10163
10159
|
local_filter_cache_: local_filter_cache_,
|
|
10164
10160
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
10165
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
10161
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
10162
|
+
filterModalParent_: filterModalParent_
|
|
10166
10163
|
} = _ref;
|
|
10167
10164
|
const Self = () => {
|
|
10168
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
|
|
@@ -10289,7 +10286,7 @@ function $f70cc6dfcadf0fd5$export$d7841e452f2e59a8(_ref) {
|
|
|
10289
10286
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
10290
10287
|
dismiss_modal_: dismiss_modal_,
|
|
10291
10288
|
i18n_: i18n_
|
|
10292
|
-
}));
|
|
10289
|
+
}, filterModalParent_));
|
|
10293
10290
|
const {
|
|
10294
10291
|
remove: remove
|
|
10295
10292
|
} = $3hooq$depictaiutilishared.javascript_media_query("(max-width:651px)", _ref3 => {
|
|
@@ -11159,7 +11156,6 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
11159
11156
|
market_: market_,
|
|
11160
11157
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
11161
11158
|
layout_options_: layout_options_,
|
|
11162
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
11163
11159
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
11164
11160
|
product_card_template_: product_card_template_,
|
|
11165
11161
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -11169,7 +11165,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
11169
11165
|
content_search_enabled_: content_search_enabled_,
|
|
11170
11166
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
11171
11167
|
modalVersionUsed_: modalVersionUsed_,
|
|
11172
|
-
BackIcon_: BackIcon_
|
|
11168
|
+
BackIcon_: BackIcon_,
|
|
11169
|
+
filterModalParent_: filterModalParent_
|
|
11173
11170
|
} = _ref;
|
|
11174
11171
|
const [get_sorting] = current_sorting_;
|
|
11175
11172
|
const all_products_loaded_ = $3hooq$solidjs.createSignal(false);
|
|
@@ -11290,7 +11287,8 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
11290
11287
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
11291
11288
|
local_filter_cache_: local_filter_cache_,
|
|
11292
11289
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
11293
|
-
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_
|
|
11294
11292
|
});
|
|
11295
11293
|
const results_filters = $3hooq$solidjs.createSignal();
|
|
11296
11294
|
const owner = $3hooq$solidjs.getOwner();
|
|
@@ -11513,12 +11511,7 @@ function $739c927cbecd26b0$export$a54ec244c8863715(_ref) {
|
|
|
11513
11511
|
depict_api_: depict_api_,
|
|
11514
11512
|
i18n_: i18n_,
|
|
11515
11513
|
search_query_base_: search_query_base_,
|
|
11516
|
-
|
|
11517
|
-
return $3hooq$solidjs.createMemo(() => {
|
|
11518
|
-
var _recommendations_layo;
|
|
11519
|
-
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_();
|
|
11520
|
-
});
|
|
11521
|
-
},
|
|
11514
|
+
layout_options_: layout_options_,
|
|
11522
11515
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
11523
11516
|
product_card_template_: product_card_template_,
|
|
11524
11517
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -12016,15 +12009,7 @@ function $ddd39c5f36f49703$export$f2dc7e4e4aa11abb(props) {
|
|
|
12016
12009
|
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77($b1ea8d47bcf03111$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
12017
12010
|
...grid_spacing_override()
|
|
12018
12011
|
})),
|
|
12019
|
-
|
|
12020
|
-
const {
|
|
12021
|
-
extra_depict_options: extra_depict_options
|
|
12022
|
-
} = props;
|
|
12023
|
-
return extra_depict_options !== null && extra_depict_options !== void 0 && extra_depict_options.recommendations_cols_at_size ? {
|
|
12024
|
-
cols_at_size: $5401a6698b0c0658$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
12025
|
-
...grid_spacing_override()
|
|
12026
|
-
} : undefined;
|
|
12027
|
-
}),
|
|
12012
|
+
filterModalParent_: $3hooq$solidjs.untrack(() => props.filterModalParent_),
|
|
12028
12013
|
product_card_template_: product_card_template
|
|
12029
12014
|
});
|
|
12030
12015
|
}, "Entire SearchPage failed");
|
|
@@ -12896,7 +12881,8 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
12896
12881
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12897
12882
|
sorting_query_param_: sorting_query_param_,
|
|
12898
12883
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
12899
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
12884
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
12885
|
+
filterModalParent_: filterModalParent_
|
|
12900
12886
|
} = _ref;
|
|
12901
12887
|
let results_for;
|
|
12902
12888
|
let only_show_filters_opener_;
|
|
@@ -13089,6 +13075,7 @@ function $ede6c70ecdca46fe$export$f7d2f673fc2f091d(_ref) {
|
|
|
13089
13075
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13090
13076
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
13091
13077
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
13078
|
+
filterModalParent_: filterModalParent_,
|
|
13092
13079
|
...extra_sort_and_filter_args_
|
|
13093
13080
|
});
|
|
13094
13081
|
$3hooq$depictaiutilisharedlatest.catchify((0, $fef4890f1f8e0544$export$6e49da55e449af7c))({
|
|
@@ -13341,6 +13328,7 @@ function $c10e33c4681f8c9b$export$e2bf8ce7779e827e(props) {
|
|
|
13341
13328
|
category_sorting_open_: category_sorting_open_,
|
|
13342
13329
|
expanded_filters_: expanded_filters_,
|
|
13343
13330
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13331
|
+
filterModalParent_: $3hooq$solidjs.untrack(() => props.filterModalParent_),
|
|
13344
13332
|
selected_filters_: selected_filters_,
|
|
13345
13333
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
13346
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 = {
|
|
@@ -252,7 +252,7 @@ export function LooksSlider(props: {
|
|
|
252
252
|
imagePlaceholderAspectRatio_: number | string;
|
|
253
253
|
title_?: JSX.Element;
|
|
254
254
|
FavoriteButton_?: (props: {
|
|
255
|
-
display_: ModernDisplay | null | undefined
|
|
255
|
+
display_: Accessor<ModernDisplay | null | undefined>;
|
|
256
256
|
}) => JSX.Element;
|
|
257
257
|
}): HTMLDivElement;
|
|
258
258
|
export const prefixes_to_preserve_in_history_dot_state: Set<string>;
|
|
@@ -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++) {
|
|
@@ -2685,10 +2685,6 @@ function $584c06c09cf4609d$export$b94867ecbd698f21(_ref) {
|
|
|
2685
2685
|
}
|
|
2686
2686
|
function $e56d241d0f33d459$export$fe334901e8bebd57() {
|
|
2687
2687
|
const cleanup_fns = [];
|
|
2688
|
-
$b8hua$dlog("DISABLING SCROLLING");
|
|
2689
|
-
$b8hua$onCleanup(() => {
|
|
2690
|
-
console.log("RE-ENABLING SCROLLING");
|
|
2691
|
-
});
|
|
2692
2688
|
const cleanup = () => cleanup_fns.forEach(f => f());
|
|
2693
2689
|
// use an animation to automatically retain the `overflow` values and all other styling
|
|
2694
2690
|
for (const element of [document.documentElement, document.body]) {
|
|
@@ -10072,7 +10068,8 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
10072
10068
|
selected_filters_: selected_filters_,
|
|
10073
10069
|
local_filter_cache_: local_filter_cache_,
|
|
10074
10070
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
10075
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
10071
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
10072
|
+
filterModalParent_: filterModalParent_
|
|
10076
10073
|
} = _ref;
|
|
10077
10074
|
const Self = () => {
|
|
10078
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
|
|
@@ -10199,7 +10196,7 @@ function $7396052a1484264f$export$d7841e452f2e59a8(_ref) {
|
|
|
10199
10196
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
10200
10197
|
dismiss_modal_: dismiss_modal_,
|
|
10201
10198
|
i18n_: i18n_
|
|
10202
|
-
}));
|
|
10199
|
+
}, filterModalParent_));
|
|
10203
10200
|
const {
|
|
10204
10201
|
remove: remove
|
|
10205
10202
|
} = $b8hua$javascript_media_query("(max-width:651px)", _ref3 => {
|
|
@@ -11069,7 +11066,6 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11069
11066
|
market_: market_,
|
|
11070
11067
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
11071
11068
|
layout_options_: layout_options_,
|
|
11072
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
11073
11069
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
11074
11070
|
product_card_template_: product_card_template_,
|
|
11075
11071
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -11079,7 +11075,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11079
11075
|
content_search_enabled_: content_search_enabled_,
|
|
11080
11076
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
11081
11077
|
modalVersionUsed_: modalVersionUsed_,
|
|
11082
|
-
BackIcon_: BackIcon_
|
|
11078
|
+
BackIcon_: BackIcon_,
|
|
11079
|
+
filterModalParent_: filterModalParent_
|
|
11083
11080
|
} = _ref;
|
|
11084
11081
|
const [get_sorting] = current_sorting_;
|
|
11085
11082
|
const all_products_loaded_ = $b8hua$createSignal(false);
|
|
@@ -11200,7 +11197,8 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11200
11197
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
11201
11198
|
local_filter_cache_: local_filter_cache_,
|
|
11202
11199
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
11203
|
-
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_
|
|
11204
11202
|
});
|
|
11205
11203
|
const results_filters = $b8hua$createSignal();
|
|
11206
11204
|
const owner = $b8hua$getOwner();
|
|
@@ -11423,12 +11421,7 @@ function $da279c5a540c6846$export$a54ec244c8863715(_ref) {
|
|
|
11423
11421
|
depict_api_: depict_api_,
|
|
11424
11422
|
i18n_: i18n_,
|
|
11425
11423
|
search_query_base_: search_query_base_,
|
|
11426
|
-
|
|
11427
|
-
return $b8hua$createMemo(() => {
|
|
11428
|
-
var _recommendations_layo;
|
|
11429
|
-
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_();
|
|
11430
|
-
});
|
|
11431
|
-
},
|
|
11424
|
+
layout_options_: layout_options_,
|
|
11432
11425
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
11433
11426
|
product_card_template_: product_card_template_,
|
|
11434
11427
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -11926,15 +11919,7 @@ function $eb064bc3350276c1$export$f2dc7e4e4aa11abb(props) {
|
|
|
11926
11919
|
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77($3f7203368ad0d3ca$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
11927
11920
|
...grid_spacing_override()
|
|
11928
11921
|
})),
|
|
11929
|
-
|
|
11930
|
-
const {
|
|
11931
|
-
extra_depict_options: extra_depict_options
|
|
11932
|
-
} = props;
|
|
11933
|
-
return extra_depict_options !== null && extra_depict_options !== void 0 && extra_depict_options.recommendations_cols_at_size ? {
|
|
11934
|
-
cols_at_size: $a9c7ba6087881ac2$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
11935
|
-
...grid_spacing_override()
|
|
11936
|
-
} : undefined;
|
|
11937
|
-
}),
|
|
11922
|
+
filterModalParent_: $b8hua$untrack(() => props.filterModalParent_),
|
|
11938
11923
|
product_card_template_: product_card_template
|
|
11939
11924
|
});
|
|
11940
11925
|
}, "Entire SearchPage failed");
|
|
@@ -12806,7 +12791,8 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
12806
12791
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12807
12792
|
sorting_query_param_: sorting_query_param_,
|
|
12808
12793
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
12809
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
12794
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
12795
|
+
filterModalParent_: filterModalParent_
|
|
12810
12796
|
} = _ref;
|
|
12811
12797
|
let results_for;
|
|
12812
12798
|
let only_show_filters_opener_;
|
|
@@ -12999,6 +12985,7 @@ function $4b4b262708b516ee$export$f7d2f673fc2f091d(_ref) {
|
|
|
12999
12985
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13000
12986
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
13001
12987
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
12988
|
+
filterModalParent_: filterModalParent_,
|
|
13002
12989
|
...extra_sort_and_filter_args_
|
|
13003
12990
|
});
|
|
13004
12991
|
$b8hua$catchify1((0, $5e6abec0dab4e610$export$6e49da55e449af7c))({
|
|
@@ -13251,6 +13238,7 @@ function $8821a19349c36651$export$e2bf8ce7779e827e(props) {
|
|
|
13251
13238
|
category_sorting_open_: category_sorting_open_,
|
|
13252
13239
|
expanded_filters_: expanded_filters_,
|
|
13253
13240
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
13241
|
+
filterModalParent_: $b8hua$untrack(() => props.filterModalParent_),
|
|
13254
13242
|
selected_filters_: selected_filters_,
|
|
13255
13243
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
13256
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++) {
|
|
@@ -2637,10 +2637,6 @@ function $66b8b9a9613c141d$export$b94867ecbd698f21({
|
|
|
2637
2637
|
}
|
|
2638
2638
|
function $ca1176b694a6ee2e$export$fe334901e8bebd57() {
|
|
2639
2639
|
const cleanup_fns = [];
|
|
2640
|
-
$5vyXB$depictaiutilishared.dlog("DISABLING SCROLLING");
|
|
2641
|
-
$5vyXB$solidjs.onCleanup(() => {
|
|
2642
|
-
console.log("RE-ENABLING SCROLLING");
|
|
2643
|
-
});
|
|
2644
2640
|
const cleanup = () => cleanup_fns.forEach(f => f());
|
|
2645
2641
|
// use an animation to automatically retain the `overflow` values and all other styling
|
|
2646
2642
|
for (const element of [document.documentElement, document.body]) {
|
|
@@ -9518,7 +9514,8 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
9518
9514
|
selected_filters_: selected_filters_,
|
|
9519
9515
|
local_filter_cache_: local_filter_cache_,
|
|
9520
9516
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
9521
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
9517
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
9518
|
+
filterModalParent_: filterModalParent_
|
|
9522
9519
|
}) {
|
|
9523
9520
|
const Self = () => {
|
|
9524
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
|
|
@@ -9630,7 +9627,7 @@ function $f8f64d05c525825b$export$d7841e452f2e59a8({
|
|
|
9630
9627
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
9631
9628
|
dismiss_modal_: dismiss_modal_,
|
|
9632
9629
|
i18n_: i18n_
|
|
9633
|
-
}));
|
|
9630
|
+
}, filterModalParent_));
|
|
9634
9631
|
const {
|
|
9635
9632
|
remove: remove
|
|
9636
9633
|
} = $5vyXB$depictaiutilishared.javascript_media_query("(max-width:651px)", ({
|
|
@@ -10451,7 +10448,6 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10451
10448
|
market_: market_,
|
|
10452
10449
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
10453
10450
|
layout_options_: layout_options_,
|
|
10454
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
10455
10451
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
10456
10452
|
product_card_template_: product_card_template_,
|
|
10457
10453
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -10461,7 +10457,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10461
10457
|
content_search_enabled_: content_search_enabled_,
|
|
10462
10458
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
10463
10459
|
modalVersionUsed_: modalVersionUsed_,
|
|
10464
|
-
BackIcon_: BackIcon_
|
|
10460
|
+
BackIcon_: BackIcon_,
|
|
10461
|
+
filterModalParent_: filterModalParent_
|
|
10465
10462
|
}) {
|
|
10466
10463
|
const [get_sorting] = current_sorting_;
|
|
10467
10464
|
const all_products_loaded_ = $5vyXB$solidjs.createSignal(false);
|
|
@@ -10567,7 +10564,8 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10567
10564
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
10568
10565
|
local_filter_cache_: local_filter_cache_,
|
|
10569
10566
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
10570
|
-
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_
|
|
10571
10569
|
});
|
|
10572
10570
|
const results_filters = $5vyXB$solidjs.createSignal();
|
|
10573
10571
|
const owner = $5vyXB$solidjs.getOwner();
|
|
@@ -10785,9 +10783,7 @@ function $f1d7cb69f839a526$export$a54ec244c8863715({
|
|
|
10785
10783
|
depict_api_: depict_api_,
|
|
10786
10784
|
i18n_: i18n_,
|
|
10787
10785
|
search_query_base_: search_query_base_,
|
|
10788
|
-
|
|
10789
|
-
return $5vyXB$solidjs.createMemo(() => recommendations_layout_options_?.() ?? layout_options_());
|
|
10790
|
-
},
|
|
10786
|
+
layout_options_: layout_options_,
|
|
10791
10787
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
10792
10788
|
product_card_template_: product_card_template_,
|
|
10793
10789
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -11195,15 +11191,7 @@ function $2c61e4cd8229c49a$export$f2dc7e4e4aa11abb(props) {
|
|
|
11195
11191
|
cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77($ab7c6c7911bae2f5$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
11196
11192
|
...grid_spacing_override()
|
|
11197
11193
|
})),
|
|
11198
|
-
|
|
11199
|
-
const {
|
|
11200
|
-
extra_depict_options: extra_depict_options
|
|
11201
|
-
} = props;
|
|
11202
|
-
return extra_depict_options?.recommendations_cols_at_size ? {
|
|
11203
|
-
cols_at_size: $4e04be41243c3d80$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
11204
|
-
...grid_spacing_override()
|
|
11205
|
-
} : undefined;
|
|
11206
|
-
}),
|
|
11194
|
+
filterModalParent_: $5vyXB$solidjs.untrack(() => props.filterModalParent_),
|
|
11207
11195
|
product_card_template_: product_card_template
|
|
11208
11196
|
});
|
|
11209
11197
|
}, "Entire SearchPage failed");
|
|
@@ -11957,7 +11945,8 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
11957
11945
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
11958
11946
|
sorting_query_param_: sorting_query_param_,
|
|
11959
11947
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
11960
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
11948
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
11949
|
+
filterModalParent_: filterModalParent_
|
|
11961
11950
|
}) {
|
|
11962
11951
|
let results_for;
|
|
11963
11952
|
let only_show_filters_opener_;
|
|
@@ -12125,6 +12114,7 @@ function $840d88a04b2d22a7$export$f7d2f673fc2f091d({
|
|
|
12125
12114
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12126
12115
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
12127
12116
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
12117
|
+
filterModalParent_: filterModalParent_,
|
|
12128
12118
|
...extra_sort_and_filter_args_
|
|
12129
12119
|
});
|
|
12130
12120
|
$5vyXB$depictaiutilisharedlatest.catchify((0, $276380e4607fb9fb$export$6e49da55e449af7c))({
|
|
@@ -12366,6 +12356,7 @@ function $14f289047713d67a$export$e2bf8ce7779e827e(props) {
|
|
|
12366
12356
|
category_sorting_open_: category_sorting_open_,
|
|
12367
12357
|
expanded_filters_: expanded_filters_,
|
|
12368
12358
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12359
|
+
filterModalParent_: $5vyXB$solidjs.untrack(() => props.filterModalParent_),
|
|
12369
12360
|
selected_filters_: selected_filters_,
|
|
12370
12361
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12371
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 = {
|
|
@@ -252,7 +252,7 @@ export function LooksSlider(props: {
|
|
|
252
252
|
imagePlaceholderAspectRatio_: number | string;
|
|
253
253
|
title_?: JSX.Element;
|
|
254
254
|
FavoriteButton_?: (props: {
|
|
255
|
-
display_: ModernDisplay | null | undefined
|
|
255
|
+
display_: Accessor<ModernDisplay | null | undefined>;
|
|
256
256
|
}) => JSX.Element;
|
|
257
257
|
}): HTMLDivElement;
|
|
258
258
|
export const prefixes_to_preserve_in_history_dot_state: Set<string>;
|
|
@@ -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++) {
|
|
@@ -2550,10 +2550,6 @@ function $5285d2814d0fac0c$export$b94867ecbd698f21({
|
|
|
2550
2550
|
}
|
|
2551
2551
|
function $aea1edf92433e81e$export$fe334901e8bebd57() {
|
|
2552
2552
|
const cleanup_fns = [];
|
|
2553
|
-
$i7OB2$dlog("DISABLING SCROLLING");
|
|
2554
|
-
$i7OB2$onCleanup(() => {
|
|
2555
|
-
console.log("RE-ENABLING SCROLLING");
|
|
2556
|
-
});
|
|
2557
2553
|
const cleanup = () => cleanup_fns.forEach(f => f());
|
|
2558
2554
|
// use an animation to automatically retain the `overflow` values and all other styling
|
|
2559
2555
|
for (const element of [document.documentElement, document.body]) {
|
|
@@ -9431,7 +9427,8 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
9431
9427
|
selected_filters_: selected_filters_,
|
|
9432
9428
|
local_filter_cache_: local_filter_cache_,
|
|
9433
9429
|
get_extra_filters_button_: get_extra_filters_button_,
|
|
9434
|
-
get_extra_sorting_button_: get_extra_sorting_button_
|
|
9430
|
+
get_extra_sorting_button_: get_extra_sorting_button_,
|
|
9431
|
+
filterModalParent_: filterModalParent_
|
|
9435
9432
|
}) {
|
|
9436
9433
|
const Self = () => {
|
|
9437
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
|
|
@@ -9543,7 +9540,7 @@ function $cdea4cf8c5c071ef$export$d7841e452f2e59a8({
|
|
|
9543
9540
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
9544
9541
|
dismiss_modal_: dismiss_modal_,
|
|
9545
9542
|
i18n_: i18n_
|
|
9546
|
-
}));
|
|
9543
|
+
}, filterModalParent_));
|
|
9547
9544
|
const {
|
|
9548
9545
|
remove: remove
|
|
9549
9546
|
} = $i7OB2$javascript_media_query("(max-width:651px)", ({
|
|
@@ -10364,7 +10361,6 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10364
10361
|
market_: market_,
|
|
10365
10362
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
10366
10363
|
layout_options_: layout_options_,
|
|
10367
|
-
recommendations_layout_options_: recommendations_layout_options_,
|
|
10368
10364
|
scroll_restoration_data_: scroll_restoration_data_,
|
|
10369
10365
|
product_card_template_: product_card_template_,
|
|
10370
10366
|
modalAlignmentSignalsRef_: modalAlignmentSignalsRef_,
|
|
@@ -10374,7 +10370,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10374
10370
|
content_search_enabled_: content_search_enabled_,
|
|
10375
10371
|
content_blocks_by_row_: content_blocks_by_row_,
|
|
10376
10372
|
modalVersionUsed_: modalVersionUsed_,
|
|
10377
|
-
BackIcon_: BackIcon_
|
|
10373
|
+
BackIcon_: BackIcon_,
|
|
10374
|
+
filterModalParent_: filterModalParent_
|
|
10378
10375
|
}) {
|
|
10379
10376
|
const [get_sorting] = current_sorting_;
|
|
10380
10377
|
const all_products_loaded_ = $i7OB2$createSignal(false);
|
|
@@ -10480,7 +10477,8 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10480
10477
|
formatted_number_of_results_: formatted_number_of_results_,
|
|
10481
10478
|
local_filter_cache_: local_filter_cache_,
|
|
10482
10479
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
10483
|
-
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_
|
|
10484
10482
|
});
|
|
10485
10483
|
const results_filters = $i7OB2$createSignal();
|
|
10486
10484
|
const owner = $i7OB2$getOwner();
|
|
@@ -10698,9 +10696,7 @@ function $7097477c78a89208$export$a54ec244c8863715({
|
|
|
10698
10696
|
depict_api_: depict_api_,
|
|
10699
10697
|
i18n_: i18n_,
|
|
10700
10698
|
search_query_base_: search_query_base_,
|
|
10701
|
-
|
|
10702
|
-
return $i7OB2$createMemo(() => recommendations_layout_options_?.() ?? layout_options_());
|
|
10703
|
-
},
|
|
10699
|
+
layout_options_: layout_options_,
|
|
10704
10700
|
showing_recommendation_rows_: showing_recommendation_rows_,
|
|
10705
10701
|
product_card_template_: product_card_template_,
|
|
10706
10702
|
all_products_loaded_: get_all_products_loaded
|
|
@@ -11108,15 +11104,7 @@ function $806c97b931758897$export$f2dc7e4e4aa11abb(props) {
|
|
|
11108
11104
|
cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77($1848f7cca286fbab$export$ff7109b9b2b206ba(props.cols_at_size)),
|
|
11109
11105
|
...grid_spacing_override()
|
|
11110
11106
|
})),
|
|
11111
|
-
|
|
11112
|
-
const {
|
|
11113
|
-
extra_depict_options: extra_depict_options
|
|
11114
|
-
} = props;
|
|
11115
|
-
return extra_depict_options?.recommendations_cols_at_size ? {
|
|
11116
|
-
cols_at_size: $b5cccc8ee7d24677$export$6daf8749b65a1b77(extra_depict_options.recommendations_cols_at_size),
|
|
11117
|
-
...grid_spacing_override()
|
|
11118
|
-
} : undefined;
|
|
11119
|
-
}),
|
|
11107
|
+
filterModalParent_: $i7OB2$untrack(() => props.filterModalParent_),
|
|
11120
11108
|
product_card_template_: product_card_template
|
|
11121
11109
|
});
|
|
11122
11110
|
}, "Entire SearchPage failed");
|
|
@@ -11870,7 +11858,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
11870
11858
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
11871
11859
|
sorting_query_param_: sorting_query_param_,
|
|
11872
11860
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
11873
|
-
content_blocks_by_row_: content_blocks_by_row_
|
|
11861
|
+
content_blocks_by_row_: content_blocks_by_row_,
|
|
11862
|
+
filterModalParent_: filterModalParent_
|
|
11874
11863
|
}) {
|
|
11875
11864
|
let results_for;
|
|
11876
11865
|
let only_show_filters_opener_;
|
|
@@ -12038,6 +12027,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
12038
12027
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12039
12028
|
number_of_rendered_selected_filters_items_: number_of_rendered_selected_filters_items_,
|
|
12040
12029
|
sort_and_filter_disabled_: sort_and_filter_disabled_,
|
|
12030
|
+
filterModalParent_: filterModalParent_,
|
|
12041
12031
|
...extra_sort_and_filter_args_
|
|
12042
12032
|
});
|
|
12043
12033
|
$i7OB2$catchify1((0, $641bba2917fe862b$export$6e49da55e449af7c))({
|
|
@@ -12279,6 +12269,7 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
12279
12269
|
category_sorting_open_: category_sorting_open_,
|
|
12280
12270
|
expanded_filters_: expanded_filters_,
|
|
12281
12271
|
expanded_hierarchical_filters_: expanded_hierarchical_filters_,
|
|
12272
|
+
filterModalParent_: $i7OB2$untrack(() => props.filterModalParent_),
|
|
12282
12273
|
selected_filters_: selected_filters_,
|
|
12283
12274
|
sideways_filter_clearing_flag_: sideways_filter_clearing_flag_,
|
|
12284
12275
|
content_blocks_by_row_: () => props.content_blocks_by_row,
|