@depict-ai/ui 4.10.10 → 4.10.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ES10/index.cjs +56 -27
- package/ES10/index.d.ts +27 -7
- package/ES10/index.js +56 -27
- package/latest/index.cjs +54 -27
- package/latest/index.d.ts +27 -7
- package/latest/index.js +54 -27
- package/package.json +5 -5
- package/server/ES10/index.cjs +56 -27
- package/server/ES10/index.d.ts +27 -7
- package/server/ES10/index.js +56 -27
- package/server/latest/index.cjs +54 -27
- package/server/latest/index.d.ts +27 -7
- package/server/latest/index.js +54 -27
package/latest/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { GetListingRequest } from "@depict-ai/types/api/GetListingRequest";
|
|
|
11
11
|
import { BaseSearchRequestV3 } from "@depict-ai/types/api/BaseSearchRequestV3";
|
|
12
12
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
13
13
|
import { SearchFilter as _SearchFilter3 } from "@depict-ai/types/api/SearchRequestV2";
|
|
14
|
-
export const version = "4.10.
|
|
14
|
+
export const version = "4.10.12";
|
|
15
15
|
/**
|
|
16
16
|
* Use `javascript_media_query` but return a reactive accessor instead of taking a callback function
|
|
17
17
|
*/
|
|
@@ -632,14 +632,19 @@ export function ShopifyContainedImage(props: {
|
|
|
632
632
|
class?: string;
|
|
633
633
|
imgProps?: Omit<Parameters<typeof ShopifyResponsiveImg>[0], "size" | "src">;
|
|
634
634
|
}): HTMLDivElement;
|
|
635
|
+
export type ImageResizer = (url: string, width: number) => string;
|
|
635
636
|
/**
|
|
636
637
|
* Hacks ShopifyContainedImage work even for non-shopify image urls by forcing the format to be WebP
|
|
637
638
|
*/
|
|
638
|
-
export function ModernResponsiveContainedImage(props: Parameters<typeof ShopifyContainedImage>[0]
|
|
639
|
+
export function ModernResponsiveContainedImage(props: Parameters<typeof ShopifyContainedImage>[0] & {
|
|
640
|
+
imageResizer_?: ImageResizer;
|
|
641
|
+
}): import("solid-js").JSX.Element;
|
|
639
642
|
/**
|
|
640
643
|
* Wrapper around ShopifyResponsiveImg (component that just does an image, without wrapping in div). The wrapper allows ShopifyResponsiveImg to work both with shopify CDN URLs and arbitrary URLs, where the latter will be fed through Depict's cloudflare resizer.
|
|
641
644
|
*/
|
|
642
|
-
export function ModernResponsiveImage(props: Parameters<typeof ShopifyResponsiveImg>[0]
|
|
645
|
+
export function ModernResponsiveImage(props: Parameters<typeof ShopifyResponsiveImg>[0] & {
|
|
646
|
+
imageResizer_?: ImageResizer;
|
|
647
|
+
}): import("solid-js").JSX.Element;
|
|
643
648
|
export function CrossIcon(props?: JSX.SvgSVGAttributes<SVGSVGElement>): SVGElement;
|
|
644
649
|
/**
|
|
645
650
|
* Symbol used to identify the version of a SearchModal function. Values right now: 1 = 1st gen classic modal, 2 = second gen modal
|
|
@@ -730,7 +735,8 @@ declare function RawSearchModalV2<InputDisplay extends Display, OutputDisplay ex
|
|
|
730
735
|
sorting_query_param_,
|
|
731
736
|
filter_query_param_prefix_,
|
|
732
737
|
setSearchFieldOuterWidth_,
|
|
733
|
-
forceUseDiv_
|
|
738
|
+
forceUseDiv_,
|
|
739
|
+
imageResizer_
|
|
734
740
|
}: {
|
|
735
741
|
search_field_value_: Signal<string>;
|
|
736
742
|
get_search_query_: Accessor<string>;
|
|
@@ -767,6 +773,7 @@ declare function RawSearchModalV2<InputDisplay extends Display, OutputDisplay ex
|
|
|
767
773
|
enable_category_suggestions_?: boolean;
|
|
768
774
|
dont_sync_search_field_value_except_on_submit_?: boolean;
|
|
769
775
|
content_search_enabled_: Accessor<boolean>;
|
|
776
|
+
imageResizer_?: ImageResizer;
|
|
770
777
|
}): HTMLDivElement[];
|
|
771
778
|
export const SearchModalV2: typeof RawSearchModalV2;
|
|
772
779
|
/**
|
|
@@ -855,6 +862,13 @@ export type BaseProviderConfig<InputDisplay extends Display, PossibleTransformed
|
|
|
855
862
|
* We recommend to just use an incrementing number for this, e.g. "1", "2", "3", ...
|
|
856
863
|
*/
|
|
857
864
|
uniqueInstanceKeyForState?: string;
|
|
865
|
+
/**
|
|
866
|
+
* Optional function to override the default image resizing CDN. When provided, this function is called
|
|
867
|
+
* with the original image URL and desired width, and should return the resized image URL.
|
|
868
|
+
* By default, Depict uses Cloudflare's image resizer for non-Shopify images, and Shopify's built-in
|
|
869
|
+
* resizer for Shopify CDN images.
|
|
870
|
+
*/
|
|
871
|
+
imageResizer?: (url: string, width: number) => string;
|
|
858
872
|
} & (InputDisplay extends ModernDisplay ? "page_url" extends keyof InputDisplay["variant_displays"][number] ? {
|
|
859
873
|
/**
|
|
860
874
|
* Functions that take in a list of categories, content search results or products and then can transform or enrich the data for each category, content search result or product card in a batched way.
|
|
@@ -1150,7 +1164,8 @@ export function LookCard({
|
|
|
1150
1164
|
placeholderImageAspectRatio_,
|
|
1151
1165
|
animationDuration_,
|
|
1152
1166
|
priceFormatting_,
|
|
1153
|
-
pseudoRouter_
|
|
1167
|
+
pseudoRouter_,
|
|
1168
|
+
imageResizer_
|
|
1154
1169
|
}: {
|
|
1155
1170
|
display_: Accessor<FeaturedInDisplay | null>;
|
|
1156
1171
|
FavoriteButton_?: (props: {
|
|
@@ -1161,6 +1176,7 @@ export function LookCard({
|
|
|
1161
1176
|
expandedLooksSignal_: Signal<Set<symbol>>;
|
|
1162
1177
|
priceFormatting_: Accessor<plp_shared_i18n["price_formatting_"]>;
|
|
1163
1178
|
pseudoRouter_: PseudoRouter;
|
|
1179
|
+
imageResizer_?: ImageResizer;
|
|
1164
1180
|
}): JSX.Element;
|
|
1165
1181
|
/**
|
|
1166
1182
|
* Render a grid with provided recommendations. displayTransformers will not be applied for this since you yourself provide the displays. Options are reactive.
|
|
@@ -1193,6 +1209,7 @@ export function LooksSliderOrGrid(props: {
|
|
|
1193
1209
|
};
|
|
1194
1210
|
onNavigation_?: OnNavigation;
|
|
1195
1211
|
priceFormatting_: plp_shared_i18n["price_formatting_"];
|
|
1212
|
+
imageResizer_?: (url: string, width: number) => string;
|
|
1196
1213
|
}): HTMLDivElement;
|
|
1197
1214
|
export const prefixes_to_preserve_in_history_dot_state: Set<string>;
|
|
1198
1215
|
/**
|
|
@@ -1427,6 +1444,7 @@ type GeneralConstructorOptions<InputDisplay extends Display, OutputDisplay exten
|
|
|
1427
1444
|
enable_content_search?: boolean;
|
|
1428
1445
|
unique_instance_key_for_state?: string;
|
|
1429
1446
|
searchModalComponent: typeof SearchModalV2<InputDisplay, OutputDisplay> | typeof ClassicSearchModal;
|
|
1447
|
+
imageResizer_?: (url: string, width: number) => string;
|
|
1430
1448
|
disable_scrolling_during_modal?: boolean;
|
|
1431
1449
|
bottom_distance_under_modal?: Accessor<number | undefined>;
|
|
1432
1450
|
override_modal_element?: HTMLElement | ShadowRoot;
|
|
@@ -1462,6 +1480,7 @@ export class DepictSearch<InputDisplay extends Display, OutputDisplay extends Mo
|
|
|
1462
1480
|
display_transformers,
|
|
1463
1481
|
api,
|
|
1464
1482
|
searchModalComponent,
|
|
1483
|
+
imageResizer_,
|
|
1465
1484
|
disable_scrolling_during_modal,
|
|
1466
1485
|
bottom_distance_under_modal,
|
|
1467
1486
|
override_modal_element,
|
|
@@ -1541,7 +1560,7 @@ type OpenModalParams<OriginalDisplay extends Display, OutputDisplay extends Mode
|
|
|
1541
1560
|
* Open the modal with support for alignment.
|
|
1542
1561
|
* @returns {void}
|
|
1543
1562
|
*/
|
|
1544
|
-
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends
|
|
1563
|
+
export const open_modal_with_alignment: <OriginalDisplay extends Display, OutputDisplay extends ModernDisplay>(openModalParams: OpenModalParams<OriginalDisplay, OutputDisplay>) => void;
|
|
1545
1564
|
export function open_search_with_shift_slash(open_search: VoidFunction): () => void;
|
|
1546
1565
|
export interface PageReplacer {
|
|
1547
1566
|
readonly render_: () => Node_Array;
|
|
@@ -1623,5 +1642,6 @@ export function CategoryPage<OriginalDisplay extends Display, OutputDisplay exte
|
|
|
1623
1642
|
filterModalParent_?: HTMLElement | ShadowRoot;
|
|
1624
1643
|
showSliderArrow_?: boolean;
|
|
1625
1644
|
hideCount0FilterOptions_?: boolean;
|
|
1626
|
-
|
|
1645
|
+
imageResizer_?: (url: string, width: number) => string;
|
|
1646
|
+
}): import("@depict-ai/utilishared/latest").Node_Array;
|
|
1627
1647
|
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.
|
|
10
|
+
const $ec291e0010116877$export$83d89fbfd8236492 = "4.10.12";
|
|
11
11
|
function $dc9262ef6f786812$export$d9f36cf74e24d595(media_query) {
|
|
12
12
|
const signal = $9HbP8$createSignal(false);
|
|
13
13
|
$9HbP8$onCleanup($9HbP8$javascript_media_query(media_query, ({
|
|
@@ -7480,7 +7480,7 @@ function $660070e2a394b3c3$export$e4b984597b71e989(props) {
|
|
|
7480
7480
|
})));
|
|
7481
7481
|
return container;
|
|
7482
7482
|
}
|
|
7483
|
-
const $70bb27cc6be01fc7$var$
|
|
7483
|
+
const $70bb27cc6be01fc7$var$defaultCustomUrls = (url, width) => {
|
|
7484
7484
|
if (url?.startsWith?.("https://cdn.shopify.com"))
|
|
7485
7485
|
// The shopify image resizing CDN blocks Cloudflare's image resizer. It's possible that we can't detect shopify image URLs sometimes because they go to the merchant's domain,
|
|
7486
7486
|
// but it seems like the URLs returned by the Depict API always goes to the cdn.shopify.com version of an image, so this simple workaround works.
|
|
@@ -7489,18 +7489,21 @@ const $70bb27cc6be01fc7$var$customUrls = (url, width) => {
|
|
|
7489
7489
|
return `https://app.depict.ai/cdn-cgi/image/width=${width},format=auto/${url}`;
|
|
7490
7490
|
};
|
|
7491
7491
|
function $70bb27cc6be01fc7$export$9d4a4b669b1929ab(props) {
|
|
7492
|
+
const resolvedCustomUrls = props.imageResizer_ ?? $70bb27cc6be01fc7$var$defaultCustomUrls;
|
|
7492
7493
|
return $9HbP8$createComponent((0, $660070e2a394b3c3$export$e4b984597b71e989), $9HbP8$mergeProps1(props, {
|
|
7493
7494
|
get imgProps() {
|
|
7494
7495
|
return {
|
|
7495
7496
|
...props.imgProps,
|
|
7496
|
-
customUrls:
|
|
7497
|
+
customUrls: resolvedCustomUrls
|
|
7497
7498
|
};
|
|
7498
7499
|
}
|
|
7499
7500
|
}));
|
|
7500
7501
|
}
|
|
7501
7502
|
function $70bb27cc6be01fc7$export$140423fa4bfb6d63(props) {
|
|
7502
7503
|
return $9HbP8$createComponent((0, $e8ffe11ed01df0fe$export$6e5611bc7e57e477), $9HbP8$mergeProps1(props, {
|
|
7503
|
-
customUrls
|
|
7504
|
+
get customUrls() {
|
|
7505
|
+
return props.imageResizer_ ?? $70bb27cc6be01fc7$var$defaultCustomUrls;
|
|
7506
|
+
}
|
|
7504
7507
|
}));
|
|
7505
7508
|
}
|
|
7506
7509
|
let $e422ea9eccb7892b$var$cachedHlsModule;
|
|
@@ -7525,7 +7528,8 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
7525
7528
|
router_: router_,
|
|
7526
7529
|
setAspectRatioWas_: setAspectRatioWas_,
|
|
7527
7530
|
mediaUrl_: mediaUrl_,
|
|
7528
|
-
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_
|
|
7531
|
+
aspectRatioWhenAloneInRow_: aspectRatioWhenAloneInRow_,
|
|
7532
|
+
imageResizer_: imageResizer_
|
|
7529
7533
|
}) {
|
|
7530
7534
|
let wroteAspectRatioToContainer = false; // Only write this once so we don't get into a aspect ratio changed -> size changed -> image source changed -> aspect ratio slightly changed infinite loop
|
|
7531
7535
|
const [wrapperSize, setWrapperSize] = $9HbP8$createSignal();
|
|
@@ -7575,7 +7579,8 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
7575
7579
|
src: mediaUrl_,
|
|
7576
7580
|
"class": "d-standard-content",
|
|
7577
7581
|
onDecoded: () => setHasLoaded(true),
|
|
7578
|
-
ref: el => el.addEventListener("load", $9HbP8$catchify(() => setAspectRatio(el.naturalWidth / el.naturalHeight)))
|
|
7582
|
+
ref: el => el.addEventListener("load", $9HbP8$catchify(() => setAspectRatio(el.naturalWidth / el.naturalHeight))),
|
|
7583
|
+
imageResizer_: imageResizer_
|
|
7579
7584
|
});
|
|
7580
7585
|
}
|
|
7581
7586
|
}), $9HbP8$createComponent((0, $9HbP8$Match), {
|
|
@@ -7626,7 +7631,7 @@ function $f916989c4b1be9f7$export$780a853d15174484({
|
|
|
7626
7631
|
}
|
|
7627
7632
|
}));
|
|
7628
7633
|
}
|
|
7629
|
-
function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_) {
|
|
7634
|
+
function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, products_request_loading_, imageResizer_) {
|
|
7630
7635
|
let hasSeenContentBlock = false;
|
|
7631
7636
|
const [historyContentBlocks, setHistoryContentBlocks] = history_content_blocks_;
|
|
7632
7637
|
const contentComponents = new Map();
|
|
@@ -7681,7 +7686,8 @@ function $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_
|
|
|
7681
7686
|
...prev.aspectRatios,
|
|
7682
7687
|
[componentCacheKey]: Math.round(aspectRatio * 100) / 100
|
|
7683
7688
|
}
|
|
7684
|
-
}))
|
|
7689
|
+
})),
|
|
7690
|
+
imageResizer_: imageResizer_
|
|
7685
7691
|
});
|
|
7686
7692
|
contentComponents.set(componentCacheKey, component);
|
|
7687
7693
|
}
|
|
@@ -7743,7 +7749,8 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
7743
7749
|
filterModalParent_: filterModalParent_,
|
|
7744
7750
|
showSliderArrow_: showSliderArrow_,
|
|
7745
7751
|
hideCount0FilterOptions_: hideCount0FilterOptions_,
|
|
7746
|
-
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_
|
|
7752
|
+
switchToFiltersDrawerBreakpoint_: switchToFiltersDrawerBreakpoint_,
|
|
7753
|
+
imageResizer_: imageResizer_
|
|
7747
7754
|
}) {
|
|
7748
7755
|
let results_for;
|
|
7749
7756
|
let only_show_filters_opener_;
|
|
@@ -7839,7 +7846,7 @@ function $df5d81d0fe61ff21$export$f7d2f673fc2f091d({
|
|
|
7839
7846
|
setMetaRequestsForQuery(prev => prev.set(query.id_type_ + query.id_to_query_for_, listing));
|
|
7840
7847
|
return result;
|
|
7841
7848
|
}));
|
|
7842
|
-
const contentBlocksByRow = $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, () => plp_products_.loading);
|
|
7849
|
+
const contentBlocksByRow = $486360b09f0d5729$export$7a92d995f1bf3592(history_content_blocks_, plp_meta, content_blocks_by_row_, router_, () => plp_products_.loading, imageResizer_);
|
|
7843
7850
|
const countOfProductsForUI = $3ef0154d1cf118ed$export$a86bc18439445599(plp_products_, all_products_loaded_, currentlyLoadedDisplays);
|
|
7844
7851
|
const available_sortings_ = $9HbP8$createMemo(() => plp_products_()?.sorts?.map(sort => ({
|
|
7845
7852
|
...sort,
|
|
@@ -8391,7 +8398,8 @@ function $08a49ecdcd5beaca$export$b73ed90f0ee50dc3({
|
|
|
8391
8398
|
outerRef_: outerRef_,
|
|
8392
8399
|
animationDuration_: animationDuration_,
|
|
8393
8400
|
priceFormatting_: priceFormatting_,
|
|
8394
|
-
pseudoRouter_: pseudoRouter_
|
|
8401
|
+
pseudoRouter_: pseudoRouter_,
|
|
8402
|
+
imageResizer_: imageResizer_
|
|
8395
8403
|
}) {
|
|
8396
8404
|
const variantToUse = $9HbP8$createMemo(() => {
|
|
8397
8405
|
const display = display_();
|
|
@@ -8465,7 +8473,8 @@ function $08a49ecdcd5beaca$export$b73ed90f0ee50dc3({
|
|
|
8465
8473
|
},
|
|
8466
8474
|
imgProps: {
|
|
8467
8475
|
keyRatioUpdating: true
|
|
8468
|
-
}
|
|
8476
|
+
},
|
|
8477
|
+
imageResizer_: imageResizer_
|
|
8469
8478
|
});
|
|
8470
8479
|
}
|
|
8471
8480
|
}));
|
|
@@ -8666,7 +8675,8 @@ function $11fb4b33b36ecfac$export$ebf0b1d4f90c09ae({
|
|
|
8666
8675
|
supportsHover_: supportsHover_,
|
|
8667
8676
|
priceFormatting_: priceFormatting_,
|
|
8668
8677
|
pseudoRouter_: pseudoRouter_,
|
|
8669
|
-
containerHeight_: containerHeight_
|
|
8678
|
+
containerHeight_: containerHeight_,
|
|
8679
|
+
imageResizer_: imageResizer_
|
|
8670
8680
|
}) {
|
|
8671
8681
|
let isAffectedByChromeBug = false;
|
|
8672
8682
|
// If the user requests the drawer to be expanded or not
|
|
@@ -8731,6 +8741,7 @@ function $11fb4b33b36ecfac$export$ebf0b1d4f90c09ae({
|
|
|
8731
8741
|
userWantsExpandedSignal_: userWantsExpandedSignal_,
|
|
8732
8742
|
textFadeInAnimationRunning_: textFadeInAnimationRunning,
|
|
8733
8743
|
priceFormatting_: priceFormatting_,
|
|
8744
|
+
imageResizer_: imageResizer_,
|
|
8734
8745
|
outerRef_: el => $9HbP8$createEffect(() => {
|
|
8735
8746
|
if (index !== 0) return;
|
|
8736
8747
|
const resizeObserver = new ResizeObserver($9HbP8$catchify1(records => setLookItemHeight(records.at(-1).contentRect.height)));
|
|
@@ -8789,7 +8800,8 @@ function $e9d1d09be9e6471e$export$44809a8a3e867e30({
|
|
|
8789
8800
|
placeholderImageAspectRatio_: placeholderImageAspectRatio_,
|
|
8790
8801
|
animationDuration_: animationDuration_,
|
|
8791
8802
|
priceFormatting_: priceFormatting_,
|
|
8792
|
-
pseudoRouter_: pseudoRouter_
|
|
8803
|
+
pseudoRouter_: pseudoRouter_,
|
|
8804
|
+
imageResizer_: imageResizer_
|
|
8793
8805
|
}) {
|
|
8794
8806
|
let container;
|
|
8795
8807
|
const useWantsExpandedSignal_ = $9HbP8$createSignal(false);
|
|
@@ -8876,7 +8888,8 @@ function $e9d1d09be9e6471e$export$44809a8a3e867e30({
|
|
|
8876
8888
|
return display_()?.image_urls?.[0];
|
|
8877
8889
|
},
|
|
8878
8890
|
aspectRatio: placeholderImageAspectRatio_,
|
|
8879
|
-
autoAdjustAspectRatio: true
|
|
8891
|
+
autoAdjustAspectRatio: true,
|
|
8892
|
+
imageResizer_: imageResizer_
|
|
8880
8893
|
});
|
|
8881
8894
|
}
|
|
8882
8895
|
}), _el$3, _co$);
|
|
@@ -8889,7 +8902,8 @@ function $e9d1d09be9e6471e$export$44809a8a3e867e30({
|
|
|
8889
8902
|
FavoriteButton_: FavoriteButton_,
|
|
8890
8903
|
priceFormatting_: priceFormatting_,
|
|
8891
8904
|
pseudoRouter_: pseudoRouter_,
|
|
8892
|
-
containerHeight_: containerHeight_
|
|
8905
|
+
containerHeight_: containerHeight_,
|
|
8906
|
+
imageResizer_: imageResizer_
|
|
8893
8907
|
}), _el$5, _co$2);
|
|
8894
8908
|
$9HbP8$effect(() => _el$.classList.toggle("placeholder", !display_()));
|
|
8895
8909
|
$9HbP8$runHydrationEvents();
|
|
@@ -9149,7 +9163,8 @@ function $07ef910e8ef6b783$export$2c9f9bf2092486aa(props) {
|
|
|
9149
9163
|
animationDuration_: expandingAnimationDuration,
|
|
9150
9164
|
expandedLooksSignal_: $07ef910e8ef6b783$var$expandedLooksSignal_,
|
|
9151
9165
|
priceFormatting_: () => props.priceFormatting_,
|
|
9152
|
-
pseudoRouter_: pseudoRouter
|
|
9166
|
+
pseudoRouter_: pseudoRouter,
|
|
9167
|
+
imageResizer_: props.imageResizer_
|
|
9153
9168
|
}),
|
|
9154
9169
|
recommendations_resource_: looksResource,
|
|
9155
9170
|
title_: () => props.title_,
|
|
@@ -11032,7 +11047,8 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
|
|
|
11032
11047
|
merchant_: merchant_,
|
|
11033
11048
|
keyboardNavigationGroupIndex_: keyboardNavigationGroupIndex_,
|
|
11034
11049
|
index_: index_,
|
|
11035
|
-
selected_index_: [read_selected_index_, write_selected_index_]
|
|
11050
|
+
selected_index_: [read_selected_index_, write_selected_index_],
|
|
11051
|
+
imageResizer_: imageResizer_
|
|
11036
11052
|
}) {
|
|
11037
11053
|
const href = $9HbP8$createMemo(() => listing_()?.page_url); // <- could be made reactive getter created in displayTransformers, read it in memo here since it might create computations (for example in the preview-brower), and there's no owner in the onClick handler
|
|
11038
11054
|
const LinkToListing = props => (() => {
|
|
@@ -11088,7 +11104,8 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
|
|
|
11088
11104
|
get children() {
|
|
11089
11105
|
var _el$3 = $9HbP8$getNextElement($4ce5b8892775b62d$var$_tmpl$2);
|
|
11090
11106
|
$9HbP8$insert(_el$3, $9HbP8$createComponent($4ce5b8892775b62d$export$ea41102db9bd68c3, {
|
|
11091
|
-
image_urls_: image_urls
|
|
11107
|
+
image_urls_: image_urls,
|
|
11108
|
+
imageResizer_: imageResizer_
|
|
11092
11109
|
}));
|
|
11093
11110
|
return _el$3;
|
|
11094
11111
|
}
|
|
@@ -11131,7 +11148,8 @@ function $4ce5b8892775b62d$export$67152d26d4f56ee8({
|
|
|
11131
11148
|
})();
|
|
11132
11149
|
}
|
|
11133
11150
|
function $4ce5b8892775b62d$export$ea41102db9bd68c3({
|
|
11134
|
-
image_urls_: image_urls_
|
|
11151
|
+
image_urls_: image_urls_,
|
|
11152
|
+
imageResizer_: imageResizer_
|
|
11135
11153
|
}) {
|
|
11136
11154
|
return $9HbP8$createComponent((0, $9HbP8$Show), {
|
|
11137
11155
|
get when() {
|
|
@@ -11154,7 +11172,8 @@ function $4ce5b8892775b62d$export$ea41102db9bd68c3({
|
|
|
11154
11172
|
},
|
|
11155
11173
|
imgProps: {
|
|
11156
11174
|
style: "object-fit: cover;"
|
|
11157
|
-
}
|
|
11175
|
+
},
|
|
11176
|
+
imageResizer_: imageResizer_
|
|
11158
11177
|
})
|
|
11159
11178
|
});
|
|
11160
11179
|
}
|
|
@@ -11184,7 +11203,8 @@ function $44f30a4222ce604b$export$c8d7e00464029b45({
|
|
|
11184
11203
|
selected_index_: selected_index_,
|
|
11185
11204
|
modalLayoutStacked_: modalLayoutStacked_,
|
|
11186
11205
|
showPlaceholders_: showPlaceholders_,
|
|
11187
|
-
currently_showing_suggestions_: [, set_currently_showing_suggestions]
|
|
11206
|
+
currently_showing_suggestions_: [, set_currently_showing_suggestions],
|
|
11207
|
+
imageResizer_: imageResizer_
|
|
11188
11208
|
}) {
|
|
11189
11209
|
const listings_by_id = $9HbP8$createMemo(() => Object.fromEntries((listing_suggestions_() || []).map(listing => [listing.listing_id, listing])));
|
|
11190
11210
|
const productCards = $9HbP8$createComponent((0, $9HbP8$For), {
|
|
@@ -11202,7 +11222,8 @@ function $44f30a4222ce604b$export$c8d7e00464029b45({
|
|
|
11202
11222
|
merchant_: merchant_,
|
|
11203
11223
|
keyboardNavigationGroupIndex_: itemIndex_,
|
|
11204
11224
|
index_: index,
|
|
11205
|
-
selected_index_: selected_index_
|
|
11225
|
+
selected_index_: selected_index_,
|
|
11226
|
+
imageResizer_: imageResizer_
|
|
11206
11227
|
});
|
|
11207
11228
|
}
|
|
11208
11229
|
});
|
|
@@ -11584,7 +11605,8 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
11584
11605
|
sorting_query_param_: sorting_query_param_,
|
|
11585
11606
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
11586
11607
|
setSearchFieldOuterWidth_: setSearchFieldOuterWidth_,
|
|
11587
|
-
forceUseDiv_: forceUseDiv_
|
|
11608
|
+
forceUseDiv_: forceUseDiv_,
|
|
11609
|
+
imageResizer_: imageResizer_
|
|
11588
11610
|
}) {
|
|
11589
11611
|
let on_enter_in_search_field_function;
|
|
11590
11612
|
let listingSuggestionsDebounceTimeout;
|
|
@@ -11795,7 +11817,8 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
11795
11817
|
},
|
|
11796
11818
|
imgProps: {
|
|
11797
11819
|
alt: "Product image"
|
|
11798
|
-
}
|
|
11820
|
+
},
|
|
11821
|
+
imageResizer_: imageResizer_
|
|
11799
11822
|
}),
|
|
11800
11823
|
...instant_results_options_
|
|
11801
11824
|
}), _el$4, _co$);
|
|
@@ -11826,7 +11849,8 @@ function $500a16dd18ee5a71$var$RawSearchModalV2({
|
|
|
11826
11849
|
selected_index_: selected_index_,
|
|
11827
11850
|
currently_showing_suggestions_: currently_showing_suggestions_,
|
|
11828
11851
|
modalLayoutStacked_: modalLayoutStacked_,
|
|
11829
|
-
showPlaceholders_: () => !suggestions_response_.latest
|
|
11852
|
+
showPlaceholders_: () => !suggestions_response_.latest,
|
|
11853
|
+
imageResizer_: imageResizer_
|
|
11830
11854
|
});
|
|
11831
11855
|
}
|
|
11832
11856
|
});
|
|
@@ -14924,6 +14948,7 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
14924
14948
|
display_transformers: display_transformers,
|
|
14925
14949
|
api: api,
|
|
14926
14950
|
searchModalComponent: searchModalComponent,
|
|
14951
|
+
imageResizer_: imageResizer_,
|
|
14927
14952
|
// Stuff needed for non-standard customer deployments that we shouldn't actually expose
|
|
14928
14953
|
disable_scrolling_during_modal = true,
|
|
14929
14954
|
bottom_distance_under_modal: bottom_distance_under_modal,
|
|
@@ -15054,6 +15079,7 @@ class $806c97b931758897$export$ac6237957a15b3f0 {
|
|
|
15054
15079
|
},
|
|
15055
15080
|
i18n_: i18n_,
|
|
15056
15081
|
enable_category_suggestions_: enable_category_suggestions,
|
|
15082
|
+
imageResizer_: imageResizer_,
|
|
15057
15083
|
disable_scrolling_: disable_scrolling_during_modal,
|
|
15058
15084
|
bottom_distance_under_modal_: bottom_distance_under_modal
|
|
15059
15085
|
}, override_modal_element);
|
|
@@ -15837,7 +15863,8 @@ function $442f32a4d80abbde$export$e2bf8ce7779e827e(props) {
|
|
|
15837
15863
|
product_card_template_: product_card_template,
|
|
15838
15864
|
sorting_query_param_: sorting_query_param_,
|
|
15839
15865
|
filter_query_param_prefix_: filter_query_param_prefix_,
|
|
15840
|
-
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_
|
|
15866
|
+
switchToFiltersDrawerBreakpoint_: () => props.switchToFiltersDrawerBreakpoint_,
|
|
15867
|
+
imageResizer_: props.imageResizer_
|
|
15841
15868
|
});
|
|
15842
15869
|
}, "Entire CategoryPage failed");
|
|
15843
15870
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/ui",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.12",
|
|
4
4
|
"description": "Base package containing the actual UI of Depict UI along with translations, with a not-simplified API. We recommend using @depict-ai/js-ui or @depict-ai/react-ui instead.",
|
|
5
5
|
"packageManager": "yarn@3.2.2",
|
|
6
6
|
"sass": "styles.scss",
|
|
@@ -236,10 +236,10 @@
|
|
|
236
236
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
237
237
|
"@babel/runtime": "latest",
|
|
238
238
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
239
|
-
"@depict-ai/plp-styling": "^4.6.
|
|
240
|
-
"@depict-ai/types": "^5.6.
|
|
241
|
-
"@depict-ai/utilishared": "^2.6.
|
|
242
|
-
"solid-js": "^1.9.
|
|
239
|
+
"@depict-ai/plp-styling": "^4.6.4",
|
|
240
|
+
"@depict-ai/types": "^5.6.2",
|
|
241
|
+
"@depict-ai/utilishared": "^2.6.2",
|
|
242
|
+
"solid-js": "^1.9.10"
|
|
243
243
|
},
|
|
244
244
|
"type": "module",
|
|
245
245
|
"types": "ES10/index.d.ts",
|