@depict-ai/react-ui 4.6.3 → 4.7.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 +77 -1
- package/ES10/index.d.ts +25 -2
- package/ES10/index.js +78 -3
- package/latest/index.cjs +72 -1
- package/latest/index.d.ts +25 -2
- package/latest/index.js +73 -3
- package/package.json +6 -6
- package/server/ES10/index.cjs +7 -1
- package/server/ES10/index.d.ts +25 -2
- package/server/ES10/index.js +7 -2
- package/server/latest/index.cjs +7 -1
- package/server/latest/index.d.ts +25 -2
- package/server/latest/index.js +7 -2
package/ES10/index.cjs
CHANGED
|
@@ -29,6 +29,7 @@ $parcel$export(module.exports, "ImagePlaceholder", () => $95af6193353bea10$expor
|
|
|
29
29
|
$parcel$export(module.exports, "TextPlaceholder", () => $07e1b96355935829$export$89c6019e4baa40b1);
|
|
30
30
|
$parcel$export(module.exports, "RecommendationGrid", () => $8f89f8a832210d6b$export$b0a773486c1c2312);
|
|
31
31
|
$parcel$export(module.exports, "RecommendationSlider", () => $745b83c12baac3c0$export$82cfdc85a4d15688);
|
|
32
|
+
$parcel$export(module.exports, "LooksSliderOrGrid", () => $a0438aed721c3481$export$ee471bde82ce7cf7);
|
|
32
33
|
$parcel$export(module.exports, "useSearchModal", () => $0991f250194bf9f3$export$912994940e660d32);
|
|
33
34
|
$parcel$export(module.exports, "useSearchField", () => $22f9dd60da27081f$export$9bb30bbe003b82e0);
|
|
34
35
|
$parcel$export(module.exports, "useFetchRecommendations", () => $2ea1d71b29581906$export$6501da23a2770fc);
|
|
@@ -42,7 +43,7 @@ $parcel$export(module.exports, "version", () => $efbdd2dab4314170$export$83d89fb
|
|
|
42
43
|
$parcel$export(module.exports, "Navigation", () => $0d3a2413fdeb34b9$export$b8a61e5c71402559);
|
|
43
44
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
44
45
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
45
|
-
const $efbdd2dab4314170$export$83d89fbfd8236492 = "4.
|
|
46
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "4.7.0";
|
|
46
47
|
const $ef516b1f92253963$export$8e769ad4338a911e = {
|
|
47
48
|
usedLocale: $2kiy7$solidjs.createSignal((0, $2kiy7$depictaiuilocales.defaultLocale)),
|
|
48
49
|
search_instances: new Map(),
|
|
@@ -983,6 +984,81 @@ function $8f89f8a832210d6b$export$b0a773486c1c2312(props) {
|
|
|
983
984
|
wrapper_type: "section"
|
|
984
985
|
});
|
|
985
986
|
}
|
|
987
|
+
function $a0438aed721c3481$export$ee471bde82ce7cf7(props) {
|
|
988
|
+
return $f8d878722c3bc07d$export$f6e64e17bd69eeef({
|
|
989
|
+
solid_component: props => $2kiy7$solidjsweb.createComponent((0, $c14f9d5966bcfc3c$export$eb5844afe948564b), {
|
|
990
|
+
get children() {
|
|
991
|
+
return $2kiy7$solidjsweb.createComponent($a0438aed721c3481$export$5afe1596ca0120c7, props);
|
|
992
|
+
}
|
|
993
|
+
}),
|
|
994
|
+
props: props
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
function $a0438aed721c3481$export$5afe1596ca0120c7(props) {
|
|
998
|
+
const {
|
|
999
|
+
merchant: [merchant],
|
|
1000
|
+
market: [market],
|
|
1001
|
+
usedLocale: [locale],
|
|
1002
|
+
on_navigation: on_navigation
|
|
1003
|
+
} = (0, $ef516b1f92253963$export$8e769ad4338a911e);
|
|
1004
|
+
return $2kiy7$depictaiui.LooksSliderOrGrid({
|
|
1005
|
+
get gridSpacing_() {
|
|
1006
|
+
var _props$gridSpacing;
|
|
1007
|
+
return (_props$gridSpacing = props.gridSpacing) !== null && _props$gridSpacing !== void 0 ? _props$gridSpacing : (0, $2kiy7$depictaiui.defaultGridSpacing);
|
|
1008
|
+
},
|
|
1009
|
+
get columnsAtSize_() {
|
|
1010
|
+
var _props$columnsAtSize;
|
|
1011
|
+
return (_props$columnsAtSize = props.columnsAtSize) !== null && _props$columnsAtSize !== void 0 ? _props$columnsAtSize : (0, $2kiy7$depictaiui.defaultColsAtSize);
|
|
1012
|
+
},
|
|
1013
|
+
get productId_() {
|
|
1014
|
+
return props.productId;
|
|
1015
|
+
},
|
|
1016
|
+
get imagePlaceholderAspectRatio_() {
|
|
1017
|
+
var _props$imagePlacehold;
|
|
1018
|
+
return (_props$imagePlacehold = props.imagePlaceholderAspectRatio) !== null && _props$imagePlacehold !== void 0 ? _props$imagePlacehold : 0.75;
|
|
1019
|
+
},
|
|
1020
|
+
get title_() {
|
|
1021
|
+
return props.title;
|
|
1022
|
+
},
|
|
1023
|
+
get class_() {
|
|
1024
|
+
return props.className;
|
|
1025
|
+
},
|
|
1026
|
+
get merchant_() {
|
|
1027
|
+
return merchant();
|
|
1028
|
+
},
|
|
1029
|
+
get market_() {
|
|
1030
|
+
return market();
|
|
1031
|
+
},
|
|
1032
|
+
get priceFormatting_() {
|
|
1033
|
+
return locale().price_formatting_;
|
|
1034
|
+
},
|
|
1035
|
+
get locale_() {
|
|
1036
|
+
return locale().backend_locale_;
|
|
1037
|
+
},
|
|
1038
|
+
get onNavigation_() {
|
|
1039
|
+
return on_navigation;
|
|
1040
|
+
},
|
|
1041
|
+
get gridOptions_() {
|
|
1042
|
+
var _view_more_button$sta;
|
|
1043
|
+
const {
|
|
1044
|
+
gridOptions: gridOptions
|
|
1045
|
+
} = props;
|
|
1046
|
+
const view_more_button = gridOptions === null || gridOptions === void 0 ? void 0 : gridOptions.viewMoreButton;
|
|
1047
|
+
return gridOptions && {
|
|
1048
|
+
max_rows: gridOptions.maxRows,
|
|
1049
|
+
view_more_button: view_more_button && {
|
|
1050
|
+
text: view_more_button.text,
|
|
1051
|
+
start_rows: (_view_more_button$sta = view_more_button.startRows) !== null && _view_more_button$sta !== void 0 ? _view_more_button$sta : 2,
|
|
1052
|
+
rows_per_click: view_more_button.rowsPerClick
|
|
1053
|
+
}
|
|
1054
|
+
};
|
|
1055
|
+
},
|
|
1056
|
+
get displayTransformers_() {
|
|
1057
|
+
var _globalState$api;
|
|
1058
|
+
return (_globalState$api = (0, $ef516b1f92253963$export$8e769ad4338a911e).api) === null || _globalState$api === void 0 ? void 0 : _globalState$api.display_transformers;
|
|
1059
|
+
}
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
986
1062
|
const $205fe657e57228d5$export$d69d8daa20eae175 = createOpenModalParams => {
|
|
987
1063
|
const {
|
|
988
1064
|
location = "centered",
|
package/ES10/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DPC } from "@depict-ai/dpc/ES10";
|
|
2
2
|
import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } from "react";
|
|
3
|
-
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations, FilterWithData } from "@depict-ai/ui/ES10";
|
|
3
|
+
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, SDKColsAtSize, SDKGridSpacing, ExclusiveId, fetchDepictRecommendations, FilterWithData } from "@depict-ai/ui/ES10";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales/ES10";
|
|
5
5
|
import { Display, ModernDisplay } from "@depict-ai/utilishared/ES10";
|
|
6
|
-
export const version = "4.
|
|
6
|
+
export const version = "4.7.0";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -402,6 +402,29 @@ declare function SolidRecommendationSliderWrapper<T extends Display>(props: Reco
|
|
|
402
402
|
* @param title Optional title to show when recommendations are being shown
|
|
403
403
|
*/
|
|
404
404
|
export function RecommendationGrid<T extends Display>(props: Parameters<typeof SolidRecommendationGridWrapper<T>>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
405
|
+
/**
|
|
406
|
+
* Renders a grid or slider containing look cards for the looks available for a certain product (provided productId).
|
|
407
|
+
*/
|
|
408
|
+
export function LooksSliderOrGrid(props: Parameters<typeof SolidLooksWrapper>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
409
|
+
declare function SolidLooksWrapper(props: {
|
|
410
|
+
gridSpacing?: SDKGridSpacing;
|
|
411
|
+
columnsAtSize?: SDKColsAtSize;
|
|
412
|
+
productId: string;
|
|
413
|
+
imagePlaceholderAspectRatio?: number | string;
|
|
414
|
+
title?: string;
|
|
415
|
+
className?: string;
|
|
416
|
+
/**
|
|
417
|
+
* If provided, will render as grid instead of slider
|
|
418
|
+
*/
|
|
419
|
+
gridOptions?: {
|
|
420
|
+
maxRows?: number;
|
|
421
|
+
viewMoreButton?: {
|
|
422
|
+
text: string;
|
|
423
|
+
startRows?: number;
|
|
424
|
+
rowsPerClick?: number;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
}): HTMLDivElement;
|
|
405
428
|
/**
|
|
406
429
|
* Parameters to configure the search modal.
|
|
407
430
|
*/
|
package/ES10/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { add_to_version_info as $jb2Oo$add_to_version_info, catchify as $jb2Oo$catchify, queueMacroTask as $jb2Oo$queueMacroTask, instant_exec_on_suspect_history_change as $jb2Oo$instant_exec_on_suspect_history_change, derror as $jb2Oo$derror, dwarn as $jb2Oo$dwarn } from "@depict-ai/utilishared/ES10";
|
|
3
|
-
import { CategoryTitle as $383b6fd56bf151bd$re_export$CategoryTitle, embedded_num_products as $383b6fd56bf151bd$re_export$EmbeddedNumProducts, SearchModalV2 as $383b6fd56bf151bd$re_export$SearchModalV2, ClassicSearchModal as $383b6fd56bf151bd$re_export$ClassicSearchModal, DepictAPI as $jb2Oo$DepictAPI, DepictSearch as $jb2Oo$DepictSearch, DepictCategory as $jb2Oo$DepictCategory, get_search_query_updating_blocked_signal as $jb2Oo$get_search_query_updating_blocked_signal, SearchPage as $jb2Oo$SearchPage, defaultColsAtSize as $jb2Oo$defaultColsAtSize, defaultGridSpacing as $jb2Oo$defaultGridSpacing, ProductCardError as $jb2Oo$ProductCardError, CategoryPage as $jb2Oo$CategoryPage, defaultCategoryTitlePlugin as $jb2Oo$defaultCategoryTitlePlugin, BreadCrumbs as $jb2Oo$BreadCrumbs, QuickLinks as $jb2Oo$QuickLinks, ImagePlaceholder as $jb2Oo$ImagePlaceholder, TextPlaceholder as $jb2Oo$TextPlaceholder, RecommendationSlider as $jb2Oo$RecommendationSlider, RecommendationGrid as $jb2Oo$RecommendationGrid, modalVersionSymbol as $jb2Oo$modalVersionSymbol, open_modal_with_alignment as $jb2Oo$open_modal_with_alignment, SearchField as $jb2Oo$SearchField, fetchDepictRecommendations as $jb2Oo$fetchDepictRecommendations } from "@depict-ai/ui/ES10";
|
|
3
|
+
import { CategoryTitle as $383b6fd56bf151bd$re_export$CategoryTitle, embedded_num_products as $383b6fd56bf151bd$re_export$EmbeddedNumProducts, SearchModalV2 as $383b6fd56bf151bd$re_export$SearchModalV2, ClassicSearchModal as $383b6fd56bf151bd$re_export$ClassicSearchModal, DepictAPI as $jb2Oo$DepictAPI, DepictSearch as $jb2Oo$DepictSearch, DepictCategory as $jb2Oo$DepictCategory, get_search_query_updating_blocked_signal as $jb2Oo$get_search_query_updating_blocked_signal, SearchPage as $jb2Oo$SearchPage, defaultColsAtSize as $jb2Oo$defaultColsAtSize, defaultGridSpacing as $jb2Oo$defaultGridSpacing, ProductCardError as $jb2Oo$ProductCardError, CategoryPage as $jb2Oo$CategoryPage, defaultCategoryTitlePlugin as $jb2Oo$defaultCategoryTitlePlugin, BreadCrumbs as $jb2Oo$BreadCrumbs, QuickLinks as $jb2Oo$QuickLinks, ImagePlaceholder as $jb2Oo$ImagePlaceholder, TextPlaceholder as $jb2Oo$TextPlaceholder, RecommendationSlider as $jb2Oo$RecommendationSlider, RecommendationGrid as $jb2Oo$RecommendationGrid, LooksSliderOrGrid as $jb2Oo$LooksSliderOrGrid, modalVersionSymbol as $jb2Oo$modalVersionSymbol, open_modal_with_alignment as $jb2Oo$open_modal_with_alignment, SearchField as $jb2Oo$SearchField, fetchDepictRecommendations as $jb2Oo$fetchDepictRecommendations } from "@depict-ai/ui/ES10";
|
|
4
4
|
import { untrack as $jb2Oo$untrack, createRoot as $jb2Oo$createRoot, createEffect as $jb2Oo$createEffect, createSignal as $jb2Oo$createSignal, createComputed as $jb2Oo$createComputed, createMemo as $jb2Oo$createMemo, onCleanup as $jb2Oo$onCleanup, getOwner as $jb2Oo$getOwner, runWithOwner as $jb2Oo$runWithOwner, on as $jb2Oo$on, mapArray as $jb2Oo$mapArray, Show as $jb2Oo$Show, createRenderEffect as $jb2Oo$createRenderEffect } from "solid-js";
|
|
5
5
|
import { createElement as $jb2Oo$createElement, Fragment as $jb2Oo$Fragment, useEffect as $jb2Oo$useEffect, useState as $jb2Oo$useState, useRef as $jb2Oo$useRef, forwardRef as $jb2Oo$forwardRef, Component as $jb2Oo$Component, useCallback as $jb2Oo$useCallback } from "react";
|
|
6
6
|
import { defaultLocale as $jb2Oo$defaultLocale } from "@depict-ai/ui/locales/ES10";
|
|
@@ -15,7 +15,7 @@ import { renderToString as $jb2Oo$renderToString } from "react-dom/server";
|
|
|
15
15
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
16
16
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
17
17
|
register_es_version("react-ui", "ES10");
|
|
18
|
-
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "4.
|
|
18
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "4.7.0";
|
|
19
19
|
const $8c691d7f86317052$export$8e769ad4338a911e = {
|
|
20
20
|
usedLocale: $jb2Oo$createSignal((0, $jb2Oo$defaultLocale)),
|
|
21
21
|
search_instances: new Map(),
|
|
@@ -956,6 +956,81 @@ function $31abef71c0a2d3fc$export$b0a773486c1c2312(props) {
|
|
|
956
956
|
wrapper_type: "section"
|
|
957
957
|
});
|
|
958
958
|
}
|
|
959
|
+
function $42a99d61b8f0a22c$export$ee471bde82ce7cf7(props) {
|
|
960
|
+
return $ac53b4e3251b31d0$export$f6e64e17bd69eeef({
|
|
961
|
+
solid_component: props => $jb2Oo$createComponent((0, $7d10b4c67928d97f$export$eb5844afe948564b), {
|
|
962
|
+
get children() {
|
|
963
|
+
return $jb2Oo$createComponent($42a99d61b8f0a22c$export$5afe1596ca0120c7, props);
|
|
964
|
+
}
|
|
965
|
+
}),
|
|
966
|
+
props: props
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
function $42a99d61b8f0a22c$export$5afe1596ca0120c7(props) {
|
|
970
|
+
const {
|
|
971
|
+
merchant: [merchant],
|
|
972
|
+
market: [market],
|
|
973
|
+
usedLocale: [locale],
|
|
974
|
+
on_navigation: on_navigation
|
|
975
|
+
} = (0, $8c691d7f86317052$export$8e769ad4338a911e);
|
|
976
|
+
return $jb2Oo$LooksSliderOrGrid({
|
|
977
|
+
get gridSpacing_() {
|
|
978
|
+
var _props$gridSpacing;
|
|
979
|
+
return (_props$gridSpacing = props.gridSpacing) !== null && _props$gridSpacing !== void 0 ? _props$gridSpacing : (0, $jb2Oo$defaultGridSpacing);
|
|
980
|
+
},
|
|
981
|
+
get columnsAtSize_() {
|
|
982
|
+
var _props$columnsAtSize;
|
|
983
|
+
return (_props$columnsAtSize = props.columnsAtSize) !== null && _props$columnsAtSize !== void 0 ? _props$columnsAtSize : (0, $jb2Oo$defaultColsAtSize);
|
|
984
|
+
},
|
|
985
|
+
get productId_() {
|
|
986
|
+
return props.productId;
|
|
987
|
+
},
|
|
988
|
+
get imagePlaceholderAspectRatio_() {
|
|
989
|
+
var _props$imagePlacehold;
|
|
990
|
+
return (_props$imagePlacehold = props.imagePlaceholderAspectRatio) !== null && _props$imagePlacehold !== void 0 ? _props$imagePlacehold : 0.75;
|
|
991
|
+
},
|
|
992
|
+
get title_() {
|
|
993
|
+
return props.title;
|
|
994
|
+
},
|
|
995
|
+
get class_() {
|
|
996
|
+
return props.className;
|
|
997
|
+
},
|
|
998
|
+
get merchant_() {
|
|
999
|
+
return merchant();
|
|
1000
|
+
},
|
|
1001
|
+
get market_() {
|
|
1002
|
+
return market();
|
|
1003
|
+
},
|
|
1004
|
+
get priceFormatting_() {
|
|
1005
|
+
return locale().price_formatting_;
|
|
1006
|
+
},
|
|
1007
|
+
get locale_() {
|
|
1008
|
+
return locale().backend_locale_;
|
|
1009
|
+
},
|
|
1010
|
+
get onNavigation_() {
|
|
1011
|
+
return on_navigation;
|
|
1012
|
+
},
|
|
1013
|
+
get gridOptions_() {
|
|
1014
|
+
var _view_more_button$sta;
|
|
1015
|
+
const {
|
|
1016
|
+
gridOptions: gridOptions
|
|
1017
|
+
} = props;
|
|
1018
|
+
const view_more_button = gridOptions === null || gridOptions === void 0 ? void 0 : gridOptions.viewMoreButton;
|
|
1019
|
+
return gridOptions && {
|
|
1020
|
+
max_rows: gridOptions.maxRows,
|
|
1021
|
+
view_more_button: view_more_button && {
|
|
1022
|
+
text: view_more_button.text,
|
|
1023
|
+
start_rows: (_view_more_button$sta = view_more_button.startRows) !== null && _view_more_button$sta !== void 0 ? _view_more_button$sta : 2,
|
|
1024
|
+
rows_per_click: view_more_button.rowsPerClick
|
|
1025
|
+
}
|
|
1026
|
+
};
|
|
1027
|
+
},
|
|
1028
|
+
get displayTransformers_() {
|
|
1029
|
+
var _globalState$api;
|
|
1030
|
+
return (_globalState$api = (0, $8c691d7f86317052$export$8e769ad4338a911e).api) === null || _globalState$api === void 0 ? void 0 : _globalState$api.display_transformers;
|
|
1031
|
+
}
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
959
1034
|
const $1283ca5a3f4a4617$export$d69d8daa20eae175 = createOpenModalParams => {
|
|
960
1035
|
const {
|
|
961
1036
|
location = "centered",
|
|
@@ -1174,4 +1249,4 @@ const $a7dfdd84298ae791$export$b8a61e5c71402559 = {
|
|
|
1174
1249
|
nextRouterNavigation: $05726fa9c7eda0a1$export$804fac5697cfbe35
|
|
1175
1250
|
};
|
|
1176
1251
|
$jb2Oo$add_to_version_info("react-ui", (0, $9bd9bb8700ab2ada$export$83d89fbfd8236492));
|
|
1177
|
-
export { $c61814cfb91ead09$export$466cdc317043f6cb as QuickLinks, $ec632214ac078e79$export$5646050d516e06bc as BreadCrumbs, $f6a205a95e4fdee3$export$80e99ee6b29cadd2 as ComponentAligner, $18e5b9f66c7ade8e$export$9fac37a9c21c2f3b as DepictProvider, $710dda89475e8c05$export$f7d2f673fc2f091d as CategoryPage, $f33e2dee70c97da3$export$a54ec244c8863715 as SearchPage, $6406849926c3f794$export$3f37af283f8fb843 as ImagePlaceholder, $2c7738b65cbcac1c$export$89c6019e4baa40b1 as TextPlaceholder, $31abef71c0a2d3fc$export$b0a773486c1c2312 as RecommendationGrid, $c02e9fd51f31a1bd$export$82cfdc85a4d15688 as RecommendationSlider, $356d18d3ed66814e$export$912994940e660d32 as useSearchModal, $ab2d430c2034aa17$export$9bb30bbe003b82e0 as useSearchField, $1895644749ca8d8a$export$6501da23a2770fc as useFetchRecommendations, $b34796f5ebe3470e$export$38b98fae14bd1f64 as usePerformanceClient, $39af3ccd78996343$export$72616730c1fad2f4 as useCategoryFilterHelpers, $383b6fd56bf151bd$re_export$CategoryTitle as CategoryTitle, $383b6fd56bf151bd$re_export$EmbeddedNumProducts as EmbeddedNumProducts, $383b6fd56bf151bd$re_export$SearchModalV2 as SearchModalV2, $383b6fd56bf151bd$re_export$ClassicSearchModal as ClassicSearchModal, $9bd9bb8700ab2ada$export$83d89fbfd8236492 as version, $a7dfdd84298ae791$export$b8a61e5c71402559 as Navigation };
|
|
1252
|
+
export { $c61814cfb91ead09$export$466cdc317043f6cb as QuickLinks, $ec632214ac078e79$export$5646050d516e06bc as BreadCrumbs, $f6a205a95e4fdee3$export$80e99ee6b29cadd2 as ComponentAligner, $18e5b9f66c7ade8e$export$9fac37a9c21c2f3b as DepictProvider, $710dda89475e8c05$export$f7d2f673fc2f091d as CategoryPage, $f33e2dee70c97da3$export$a54ec244c8863715 as SearchPage, $6406849926c3f794$export$3f37af283f8fb843 as ImagePlaceholder, $2c7738b65cbcac1c$export$89c6019e4baa40b1 as TextPlaceholder, $31abef71c0a2d3fc$export$b0a773486c1c2312 as RecommendationGrid, $c02e9fd51f31a1bd$export$82cfdc85a4d15688 as RecommendationSlider, $42a99d61b8f0a22c$export$ee471bde82ce7cf7 as LooksSliderOrGrid, $356d18d3ed66814e$export$912994940e660d32 as useSearchModal, $ab2d430c2034aa17$export$9bb30bbe003b82e0 as useSearchField, $1895644749ca8d8a$export$6501da23a2770fc as useFetchRecommendations, $b34796f5ebe3470e$export$38b98fae14bd1f64 as usePerformanceClient, $39af3ccd78996343$export$72616730c1fad2f4 as useCategoryFilterHelpers, $383b6fd56bf151bd$re_export$CategoryTitle as CategoryTitle, $383b6fd56bf151bd$re_export$EmbeddedNumProducts as EmbeddedNumProducts, $383b6fd56bf151bd$re_export$SearchModalV2 as SearchModalV2, $383b6fd56bf151bd$re_export$ClassicSearchModal as ClassicSearchModal, $9bd9bb8700ab2ada$export$83d89fbfd8236492 as version, $a7dfdd84298ae791$export$b8a61e5c71402559 as Navigation };
|
package/latest/index.cjs
CHANGED
|
@@ -29,6 +29,7 @@ $parcel$export(module.exports, "ImagePlaceholder", () => $df522c8a81ed5a01$expor
|
|
|
29
29
|
$parcel$export(module.exports, "TextPlaceholder", () => $7c8b440edc188ad5$export$89c6019e4baa40b1);
|
|
30
30
|
$parcel$export(module.exports, "RecommendationGrid", () => $48732d1a919ddb4c$export$b0a773486c1c2312);
|
|
31
31
|
$parcel$export(module.exports, "RecommendationSlider", () => $8ffd7da37fdd46be$export$82cfdc85a4d15688);
|
|
32
|
+
$parcel$export(module.exports, "LooksSliderOrGrid", () => $2be579ca3f30d88e$export$ee471bde82ce7cf7);
|
|
32
33
|
$parcel$export(module.exports, "useSearchModal", () => $ae73b15c325f1b21$export$912994940e660d32);
|
|
33
34
|
$parcel$export(module.exports, "useSearchField", () => $c8b22e24c4b8035c$export$9bb30bbe003b82e0);
|
|
34
35
|
$parcel$export(module.exports, "useFetchRecommendations", () => $a134ea100690b628$export$6501da23a2770fc);
|
|
@@ -42,7 +43,7 @@ $parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fb
|
|
|
42
43
|
$parcel$export(module.exports, "Navigation", () => $b742053c966024b4$export$b8a61e5c71402559);
|
|
43
44
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
44
45
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
45
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "4.
|
|
46
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "4.7.0";
|
|
46
47
|
const $0b7cd4fb39fc3502$export$8e769ad4338a911e = {
|
|
47
48
|
usedLocale: $2IzJs$solidjs.createSignal((0, $2IzJs$depictaiuilocales.defaultLocale)),
|
|
48
49
|
search_instances: new Map(),
|
|
@@ -938,6 +939,76 @@ function $48732d1a919ddb4c$export$b0a773486c1c2312(props) {
|
|
|
938
939
|
wrapper_type: "section"
|
|
939
940
|
});
|
|
940
941
|
}
|
|
942
|
+
function $2be579ca3f30d88e$export$ee471bde82ce7cf7(props) {
|
|
943
|
+
return $69121eedef466fe9$export$f6e64e17bd69eeef({
|
|
944
|
+
solid_component: props => $2IzJs$solidjsweb.createComponent((0, $1e18e5335ff79474$export$eb5844afe948564b), {
|
|
945
|
+
get children() {
|
|
946
|
+
return $2IzJs$solidjsweb.createComponent($2be579ca3f30d88e$export$5afe1596ca0120c7, props);
|
|
947
|
+
}
|
|
948
|
+
}),
|
|
949
|
+
props: props
|
|
950
|
+
});
|
|
951
|
+
}
|
|
952
|
+
function $2be579ca3f30d88e$export$5afe1596ca0120c7(props) {
|
|
953
|
+
const {
|
|
954
|
+
merchant: [merchant],
|
|
955
|
+
market: [market],
|
|
956
|
+
usedLocale: [locale],
|
|
957
|
+
on_navigation: on_navigation
|
|
958
|
+
} = (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e);
|
|
959
|
+
return $2IzJs$depictaiui.LooksSliderOrGrid({
|
|
960
|
+
get gridSpacing_() {
|
|
961
|
+
return props.gridSpacing ?? (0, $2IzJs$depictaiui.defaultGridSpacing);
|
|
962
|
+
},
|
|
963
|
+
get columnsAtSize_() {
|
|
964
|
+
return props.columnsAtSize ?? (0, $2IzJs$depictaiui.defaultColsAtSize);
|
|
965
|
+
},
|
|
966
|
+
get productId_() {
|
|
967
|
+
return props.productId;
|
|
968
|
+
},
|
|
969
|
+
get imagePlaceholderAspectRatio_() {
|
|
970
|
+
return props.imagePlaceholderAspectRatio ?? 0.75;
|
|
971
|
+
},
|
|
972
|
+
get title_() {
|
|
973
|
+
return props.title;
|
|
974
|
+
},
|
|
975
|
+
get class_() {
|
|
976
|
+
return props.className;
|
|
977
|
+
},
|
|
978
|
+
get merchant_() {
|
|
979
|
+
return merchant();
|
|
980
|
+
},
|
|
981
|
+
get market_() {
|
|
982
|
+
return market();
|
|
983
|
+
},
|
|
984
|
+
get priceFormatting_() {
|
|
985
|
+
return locale().price_formatting_;
|
|
986
|
+
},
|
|
987
|
+
get locale_() {
|
|
988
|
+
return locale().backend_locale_;
|
|
989
|
+
},
|
|
990
|
+
get onNavigation_() {
|
|
991
|
+
return on_navigation;
|
|
992
|
+
},
|
|
993
|
+
get gridOptions_() {
|
|
994
|
+
const {
|
|
995
|
+
gridOptions: gridOptions
|
|
996
|
+
} = props;
|
|
997
|
+
const view_more_button = gridOptions?.viewMoreButton;
|
|
998
|
+
return gridOptions && {
|
|
999
|
+
max_rows: gridOptions.maxRows,
|
|
1000
|
+
view_more_button: view_more_button && {
|
|
1001
|
+
text: view_more_button.text,
|
|
1002
|
+
start_rows: view_more_button.startRows ?? 2,
|
|
1003
|
+
rows_per_click: view_more_button.rowsPerClick
|
|
1004
|
+
}
|
|
1005
|
+
};
|
|
1006
|
+
},
|
|
1007
|
+
get displayTransformers_() {
|
|
1008
|
+
return (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).api?.display_transformers;
|
|
1009
|
+
}
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
941
1012
|
const $177ac8f5258066ba$export$d69d8daa20eae175 = createOpenModalParams => {
|
|
942
1013
|
const {
|
|
943
1014
|
location = "centered",
|
package/latest/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DPC } from "@depict-ai/dpc/latest";
|
|
2
2
|
import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } from "react";
|
|
3
|
-
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations, FilterWithData } from "@depict-ai/ui/latest";
|
|
3
|
+
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, SDKColsAtSize, SDKGridSpacing, ExclusiveId, fetchDepictRecommendations, FilterWithData } from "@depict-ai/ui/latest";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales/latest";
|
|
5
5
|
import { Display, ModernDisplay } from "@depict-ai/utilishared/latest";
|
|
6
|
-
export const version = "4.
|
|
6
|
+
export const version = "4.7.0";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -402,6 +402,29 @@ declare function SolidRecommendationSliderWrapper<T extends Display>(props: Reco
|
|
|
402
402
|
* @param title Optional title to show when recommendations are being shown
|
|
403
403
|
*/
|
|
404
404
|
export function RecommendationGrid<T extends Display>(props: Parameters<typeof SolidRecommendationGridWrapper<T>>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
405
|
+
/**
|
|
406
|
+
* Renders a grid or slider containing look cards for the looks available for a certain product (provided productId).
|
|
407
|
+
*/
|
|
408
|
+
export function LooksSliderOrGrid(props: Parameters<typeof SolidLooksWrapper>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
409
|
+
declare function SolidLooksWrapper(props: {
|
|
410
|
+
gridSpacing?: SDKGridSpacing;
|
|
411
|
+
columnsAtSize?: SDKColsAtSize;
|
|
412
|
+
productId: string;
|
|
413
|
+
imagePlaceholderAspectRatio?: number | string;
|
|
414
|
+
title?: string;
|
|
415
|
+
className?: string;
|
|
416
|
+
/**
|
|
417
|
+
* If provided, will render as grid instead of slider
|
|
418
|
+
*/
|
|
419
|
+
gridOptions?: {
|
|
420
|
+
maxRows?: number;
|
|
421
|
+
viewMoreButton?: {
|
|
422
|
+
text: string;
|
|
423
|
+
startRows?: number;
|
|
424
|
+
rowsPerClick?: number;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
}): HTMLDivElement;
|
|
405
428
|
/**
|
|
406
429
|
* Parameters to configure the search modal.
|
|
407
430
|
*/
|
package/latest/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { add_to_version_info as $2GFvs$add_to_version_info, catchify as $2GFvs$catchify, queueMacroTask as $2GFvs$queueMacroTask, instant_exec_on_suspect_history_change as $2GFvs$instant_exec_on_suspect_history_change, derror as $2GFvs$derror, dwarn as $2GFvs$dwarn } from "@depict-ai/utilishared/latest";
|
|
3
|
-
import { CategoryTitle as $43099132aad1ceb6$re_export$CategoryTitle, embedded_num_products as $43099132aad1ceb6$re_export$EmbeddedNumProducts, SearchModalV2 as $43099132aad1ceb6$re_export$SearchModalV2, ClassicSearchModal as $43099132aad1ceb6$re_export$ClassicSearchModal, DepictAPI as $2GFvs$DepictAPI, DepictSearch as $2GFvs$DepictSearch, DepictCategory as $2GFvs$DepictCategory, get_search_query_updating_blocked_signal as $2GFvs$get_search_query_updating_blocked_signal, SearchPage as $2GFvs$SearchPage, defaultColsAtSize as $2GFvs$defaultColsAtSize, defaultGridSpacing as $2GFvs$defaultGridSpacing, ProductCardError as $2GFvs$ProductCardError, CategoryPage as $2GFvs$CategoryPage, defaultCategoryTitlePlugin as $2GFvs$defaultCategoryTitlePlugin, BreadCrumbs as $2GFvs$BreadCrumbs, QuickLinks as $2GFvs$QuickLinks, ImagePlaceholder as $2GFvs$ImagePlaceholder, TextPlaceholder as $2GFvs$TextPlaceholder, RecommendationSlider as $2GFvs$RecommendationSlider, RecommendationGrid as $2GFvs$RecommendationGrid, modalVersionSymbol as $2GFvs$modalVersionSymbol, open_modal_with_alignment as $2GFvs$open_modal_with_alignment, SearchField as $2GFvs$SearchField, fetchDepictRecommendations as $2GFvs$fetchDepictRecommendations } from "@depict-ai/ui/latest";
|
|
3
|
+
import { CategoryTitle as $43099132aad1ceb6$re_export$CategoryTitle, embedded_num_products as $43099132aad1ceb6$re_export$EmbeddedNumProducts, SearchModalV2 as $43099132aad1ceb6$re_export$SearchModalV2, ClassicSearchModal as $43099132aad1ceb6$re_export$ClassicSearchModal, DepictAPI as $2GFvs$DepictAPI, DepictSearch as $2GFvs$DepictSearch, DepictCategory as $2GFvs$DepictCategory, get_search_query_updating_blocked_signal as $2GFvs$get_search_query_updating_blocked_signal, SearchPage as $2GFvs$SearchPage, defaultColsAtSize as $2GFvs$defaultColsAtSize, defaultGridSpacing as $2GFvs$defaultGridSpacing, ProductCardError as $2GFvs$ProductCardError, CategoryPage as $2GFvs$CategoryPage, defaultCategoryTitlePlugin as $2GFvs$defaultCategoryTitlePlugin, BreadCrumbs as $2GFvs$BreadCrumbs, QuickLinks as $2GFvs$QuickLinks, ImagePlaceholder as $2GFvs$ImagePlaceholder, TextPlaceholder as $2GFvs$TextPlaceholder, RecommendationSlider as $2GFvs$RecommendationSlider, RecommendationGrid as $2GFvs$RecommendationGrid, LooksSliderOrGrid as $2GFvs$LooksSliderOrGrid, modalVersionSymbol as $2GFvs$modalVersionSymbol, open_modal_with_alignment as $2GFvs$open_modal_with_alignment, SearchField as $2GFvs$SearchField, fetchDepictRecommendations as $2GFvs$fetchDepictRecommendations } from "@depict-ai/ui/latest";
|
|
4
4
|
import { untrack as $2GFvs$untrack, createRoot as $2GFvs$createRoot, createEffect as $2GFvs$createEffect, createSignal as $2GFvs$createSignal, createComputed as $2GFvs$createComputed, createMemo as $2GFvs$createMemo, onCleanup as $2GFvs$onCleanup, getOwner as $2GFvs$getOwner, runWithOwner as $2GFvs$runWithOwner, on as $2GFvs$on, mapArray as $2GFvs$mapArray, Show as $2GFvs$Show, createRenderEffect as $2GFvs$createRenderEffect } from "solid-js";
|
|
5
5
|
import { createElement as $2GFvs$createElement, Fragment as $2GFvs$Fragment, useEffect as $2GFvs$useEffect, useState as $2GFvs$useState, useRef as $2GFvs$useRef, forwardRef as $2GFvs$forwardRef, Component as $2GFvs$Component, useCallback as $2GFvs$useCallback } from "react";
|
|
6
6
|
import { defaultLocale as $2GFvs$defaultLocale } from "@depict-ai/ui/locales/latest";
|
|
@@ -15,7 +15,7 @@ import { renderToString as $2GFvs$renderToString } from "react-dom/server";
|
|
|
15
15
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
16
16
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
17
17
|
register_es_version("react-ui", "latest");
|
|
18
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "4.
|
|
18
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "4.7.0";
|
|
19
19
|
const $42858f023ef23dab$export$8e769ad4338a911e = {
|
|
20
20
|
usedLocale: $2GFvs$createSignal((0, $2GFvs$defaultLocale)),
|
|
21
21
|
search_instances: new Map(),
|
|
@@ -911,6 +911,76 @@ function $73b783bfc241b2d9$export$b0a773486c1c2312(props) {
|
|
|
911
911
|
wrapper_type: "section"
|
|
912
912
|
});
|
|
913
913
|
}
|
|
914
|
+
function $ce7f67339c7d03c7$export$ee471bde82ce7cf7(props) {
|
|
915
|
+
return $2c98aada448e4f4d$export$f6e64e17bd69eeef({
|
|
916
|
+
solid_component: props => $2GFvs$createComponent((0, $2cd8d06c25c157ed$export$eb5844afe948564b), {
|
|
917
|
+
get children() {
|
|
918
|
+
return $2GFvs$createComponent($ce7f67339c7d03c7$export$5afe1596ca0120c7, props);
|
|
919
|
+
}
|
|
920
|
+
}),
|
|
921
|
+
props: props
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
function $ce7f67339c7d03c7$export$5afe1596ca0120c7(props) {
|
|
925
|
+
const {
|
|
926
|
+
merchant: [merchant],
|
|
927
|
+
market: [market],
|
|
928
|
+
usedLocale: [locale],
|
|
929
|
+
on_navigation: on_navigation
|
|
930
|
+
} = (0, $42858f023ef23dab$export$8e769ad4338a911e);
|
|
931
|
+
return $2GFvs$LooksSliderOrGrid({
|
|
932
|
+
get gridSpacing_() {
|
|
933
|
+
return props.gridSpacing ?? (0, $2GFvs$defaultGridSpacing);
|
|
934
|
+
},
|
|
935
|
+
get columnsAtSize_() {
|
|
936
|
+
return props.columnsAtSize ?? (0, $2GFvs$defaultColsAtSize);
|
|
937
|
+
},
|
|
938
|
+
get productId_() {
|
|
939
|
+
return props.productId;
|
|
940
|
+
},
|
|
941
|
+
get imagePlaceholderAspectRatio_() {
|
|
942
|
+
return props.imagePlaceholderAspectRatio ?? 0.75;
|
|
943
|
+
},
|
|
944
|
+
get title_() {
|
|
945
|
+
return props.title;
|
|
946
|
+
},
|
|
947
|
+
get class_() {
|
|
948
|
+
return props.className;
|
|
949
|
+
},
|
|
950
|
+
get merchant_() {
|
|
951
|
+
return merchant();
|
|
952
|
+
},
|
|
953
|
+
get market_() {
|
|
954
|
+
return market();
|
|
955
|
+
},
|
|
956
|
+
get priceFormatting_() {
|
|
957
|
+
return locale().price_formatting_;
|
|
958
|
+
},
|
|
959
|
+
get locale_() {
|
|
960
|
+
return locale().backend_locale_;
|
|
961
|
+
},
|
|
962
|
+
get onNavigation_() {
|
|
963
|
+
return on_navigation;
|
|
964
|
+
},
|
|
965
|
+
get gridOptions_() {
|
|
966
|
+
const {
|
|
967
|
+
gridOptions: gridOptions
|
|
968
|
+
} = props;
|
|
969
|
+
const view_more_button = gridOptions?.viewMoreButton;
|
|
970
|
+
return gridOptions && {
|
|
971
|
+
max_rows: gridOptions.maxRows,
|
|
972
|
+
view_more_button: view_more_button && {
|
|
973
|
+
text: view_more_button.text,
|
|
974
|
+
start_rows: view_more_button.startRows ?? 2,
|
|
975
|
+
rows_per_click: view_more_button.rowsPerClick
|
|
976
|
+
}
|
|
977
|
+
};
|
|
978
|
+
},
|
|
979
|
+
get displayTransformers_() {
|
|
980
|
+
return (0, $42858f023ef23dab$export$8e769ad4338a911e).api?.display_transformers;
|
|
981
|
+
}
|
|
982
|
+
});
|
|
983
|
+
}
|
|
914
984
|
const $41cab674edff4277$export$d69d8daa20eae175 = createOpenModalParams => {
|
|
915
985
|
const {
|
|
916
986
|
location = "centered",
|
|
@@ -1109,4 +1179,4 @@ const $97603d19204ec48d$export$b8a61e5c71402559 = {
|
|
|
1109
1179
|
nextRouterNavigation: $a92aa2beb560b8af$export$804fac5697cfbe35
|
|
1110
1180
|
};
|
|
1111
1181
|
$2GFvs$add_to_version_info("react-ui", (0, $c9c4d066f9a5b51b$export$83d89fbfd8236492));
|
|
1112
|
-
export { $b68a14248b7ef667$export$466cdc317043f6cb as QuickLinks, $f866f7ed9f751af4$export$5646050d516e06bc as BreadCrumbs, $421f32789b6f111f$export$80e99ee6b29cadd2 as ComponentAligner, $5376eb2a386cd90d$export$9fac37a9c21c2f3b as DepictProvider, $6e2ebc6b1506f2c7$export$f7d2f673fc2f091d as CategoryPage, $2f377099d56e566c$export$a54ec244c8863715 as SearchPage, $f446a84f85ba06f6$export$3f37af283f8fb843 as ImagePlaceholder, $cbd250061abf11cb$export$89c6019e4baa40b1 as TextPlaceholder, $73b783bfc241b2d9$export$b0a773486c1c2312 as RecommendationGrid, $4fd5dc0e231a60d9$export$82cfdc85a4d15688 as RecommendationSlider, $70344e5e0d0fea06$export$912994940e660d32 as useSearchModal, $8eafb51f0d1eb42d$export$9bb30bbe003b82e0 as useSearchField, $1bb4271dc44722e2$export$6501da23a2770fc as useFetchRecommendations, $a00d8f27abd5d0b0$export$38b98fae14bd1f64 as usePerformanceClient, $4d60f63392752531$export$72616730c1fad2f4 as useCategoryFilterHelpers, $43099132aad1ceb6$re_export$CategoryTitle as CategoryTitle, $43099132aad1ceb6$re_export$EmbeddedNumProducts as EmbeddedNumProducts, $43099132aad1ceb6$re_export$SearchModalV2 as SearchModalV2, $43099132aad1ceb6$re_export$ClassicSearchModal as ClassicSearchModal, $c9c4d066f9a5b51b$export$83d89fbfd8236492 as version, $97603d19204ec48d$export$b8a61e5c71402559 as Navigation };
|
|
1182
|
+
export { $b68a14248b7ef667$export$466cdc317043f6cb as QuickLinks, $f866f7ed9f751af4$export$5646050d516e06bc as BreadCrumbs, $421f32789b6f111f$export$80e99ee6b29cadd2 as ComponentAligner, $5376eb2a386cd90d$export$9fac37a9c21c2f3b as DepictProvider, $6e2ebc6b1506f2c7$export$f7d2f673fc2f091d as CategoryPage, $2f377099d56e566c$export$a54ec244c8863715 as SearchPage, $f446a84f85ba06f6$export$3f37af283f8fb843 as ImagePlaceholder, $cbd250061abf11cb$export$89c6019e4baa40b1 as TextPlaceholder, $73b783bfc241b2d9$export$b0a773486c1c2312 as RecommendationGrid, $4fd5dc0e231a60d9$export$82cfdc85a4d15688 as RecommendationSlider, $ce7f67339c7d03c7$export$ee471bde82ce7cf7 as LooksSliderOrGrid, $70344e5e0d0fea06$export$912994940e660d32 as useSearchModal, $8eafb51f0d1eb42d$export$9bb30bbe003b82e0 as useSearchField, $1bb4271dc44722e2$export$6501da23a2770fc as useFetchRecommendations, $a00d8f27abd5d0b0$export$38b98fae14bd1f64 as usePerformanceClient, $4d60f63392752531$export$72616730c1fad2f4 as useCategoryFilterHelpers, $43099132aad1ceb6$re_export$CategoryTitle as CategoryTitle, $43099132aad1ceb6$re_export$EmbeddedNumProducts as EmbeddedNumProducts, $43099132aad1ceb6$re_export$SearchModalV2 as SearchModalV2, $43099132aad1ceb6$re_export$ClassicSearchModal as ClassicSearchModal, $c9c4d066f9a5b51b$export$83d89fbfd8236492 as version, $97603d19204ec48d$export$b8a61e5c71402559 as Navigation };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/react-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "ES10/index.d.ts",
|
|
@@ -135,10 +135,10 @@
|
|
|
135
135
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
136
136
|
"@babel/runtime": "latest",
|
|
137
137
|
"@babel/runtime-corejs3": "latest",
|
|
138
|
-
"@depict-ai/dpc": "^2.4.
|
|
139
|
-
"@depict-ai/plp-styling": "^4.4.
|
|
140
|
-
"@depict-ai/ui": "^4.7.
|
|
141
|
-
"@depict-ai/utilishared": "^2.4.
|
|
138
|
+
"@depict-ai/dpc": "^2.4.1",
|
|
139
|
+
"@depict-ai/plp-styling": "^4.4.2",
|
|
140
|
+
"@depict-ai/ui": "^4.7.7",
|
|
141
|
+
"@depict-ai/utilishared": "^2.4.2",
|
|
142
142
|
"solid-js": "^1.8.12"
|
|
143
143
|
},
|
|
144
144
|
"peerDependencies": {
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"@babel/core": "latest",
|
|
151
151
|
"@babel/preset-env": "latest",
|
|
152
152
|
"@babel/preset-typescript": "latest",
|
|
153
|
-
"@depict-ai/plp-styling": "^4.4.
|
|
153
|
+
"@depict-ai/plp-styling": "^4.4.2",
|
|
154
154
|
"@jest/globals": "^29.3.1",
|
|
155
155
|
"@parcel/babel-preset-env": "^2.10.3",
|
|
156
156
|
"@parcel/transformer-sass": "^2.10.3",
|
package/server/ES10/index.cjs
CHANGED
|
@@ -21,6 +21,7 @@ $parcel$export(module.exports, "useCategoryFilterHelpers", () => $202459d454907b
|
|
|
21
21
|
$parcel$export(module.exports, "SearchPage", () => $202459d454907b31$export$a54ec244c8863715);
|
|
22
22
|
$parcel$export(module.exports, "CategoryPage", () => $202459d454907b31$export$f7d2f673fc2f091d);
|
|
23
23
|
$parcel$export(module.exports, "BreadCrumbs", () => $202459d454907b31$export$5646050d516e06bc);
|
|
24
|
+
$parcel$export(module.exports, "LooksSliderOrGrid", () => $202459d454907b31$export$ee471bde82ce7cf7);
|
|
24
25
|
$parcel$export(module.exports, "QuickLinks", () => $202459d454907b31$export$466cdc317043f6cb);
|
|
25
26
|
$parcel$export(module.exports, "RecommendationSlider", () => $202459d454907b31$export$82cfdc85a4d15688);
|
|
26
27
|
$parcel$export(module.exports, "ComponentAligner", () => $202459d454907b31$export$80e99ee6b29cadd2);
|
|
@@ -203,7 +204,7 @@ function $3b36cc844440a979$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
203
204
|
}
|
|
204
205
|
});
|
|
205
206
|
}
|
|
206
|
-
const $efbdd2dab4314170$export$83d89fbfd8236492 = "4.
|
|
207
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "4.7.0";
|
|
207
208
|
function $202459d454907b31$export$9fac37a9c21c2f3b(props) {
|
|
208
209
|
return props.children;
|
|
209
210
|
}
|
|
@@ -230,6 +231,11 @@ function $202459d454907b31$export$5646050d516e06bc() {
|
|
|
230
231
|
children: []
|
|
231
232
|
});
|
|
232
233
|
}
|
|
234
|
+
function $202459d454907b31$export$ee471bde82ce7cf7() {
|
|
235
|
+
return $aNCHr$react.createElement("div", {
|
|
236
|
+
children: []
|
|
237
|
+
});
|
|
238
|
+
}
|
|
233
239
|
function $202459d454907b31$export$466cdc317043f6cb() {
|
|
234
240
|
return $aNCHr$react.createElement("div", {
|
|
235
241
|
children: []
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DPC } from "@depict-ai/dpc/ES10";
|
|
2
2
|
import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } from "react";
|
|
3
|
-
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations, FilterWithData } from "@depict-ai/ui/ES10";
|
|
3
|
+
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, SDKColsAtSize, SDKGridSpacing, ExclusiveId, fetchDepictRecommendations, FilterWithData } from "@depict-ai/ui/ES10";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales/ES10";
|
|
5
5
|
import { Display, ModernDisplay } from "@depict-ai/utilishared/ES10";
|
|
6
|
-
export const version = "4.
|
|
6
|
+
export const version = "4.7.0";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -402,6 +402,29 @@ declare function SolidRecommendationSliderWrapper<T extends Display>(props: Reco
|
|
|
402
402
|
* @param title Optional title to show when recommendations are being shown
|
|
403
403
|
*/
|
|
404
404
|
export function RecommendationGrid<T extends Display>(props: Parameters<typeof SolidRecommendationGridWrapper<T>>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
405
|
+
/**
|
|
406
|
+
* Renders a grid or slider containing look cards for the looks available for a certain product (provided productId).
|
|
407
|
+
*/
|
|
408
|
+
export function LooksSliderOrGrid(props: Parameters<typeof SolidLooksWrapper>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
409
|
+
declare function SolidLooksWrapper(props: {
|
|
410
|
+
gridSpacing?: SDKGridSpacing;
|
|
411
|
+
columnsAtSize?: SDKColsAtSize;
|
|
412
|
+
productId: string;
|
|
413
|
+
imagePlaceholderAspectRatio?: number | string;
|
|
414
|
+
title?: string;
|
|
415
|
+
className?: string;
|
|
416
|
+
/**
|
|
417
|
+
* If provided, will render as grid instead of slider
|
|
418
|
+
*/
|
|
419
|
+
gridOptions?: {
|
|
420
|
+
maxRows?: number;
|
|
421
|
+
viewMoreButton?: {
|
|
422
|
+
text: string;
|
|
423
|
+
startRows?: number;
|
|
424
|
+
rowsPerClick?: number;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
}): HTMLDivElement;
|
|
405
428
|
/**
|
|
406
429
|
* Parameters to configure the search modal.
|
|
407
430
|
*/
|
package/server/ES10/index.js
CHANGED
|
@@ -179,7 +179,7 @@ function $cd68097a7ee08669$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "4.
|
|
182
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "4.7.0";
|
|
183
183
|
function $5c4add0a8fe94894$export$9fac37a9c21c2f3b(props) {
|
|
184
184
|
return props.children;
|
|
185
185
|
}
|
|
@@ -206,6 +206,11 @@ function $5c4add0a8fe94894$export$5646050d516e06bc() {
|
|
|
206
206
|
children: []
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
|
+
function $5c4add0a8fe94894$export$ee471bde82ce7cf7() {
|
|
210
|
+
return $7h5e1$createElement("div", {
|
|
211
|
+
children: []
|
|
212
|
+
});
|
|
213
|
+
}
|
|
209
214
|
function $5c4add0a8fe94894$export$466cdc317043f6cb() {
|
|
210
215
|
return $7h5e1$createElement("div", {
|
|
211
216
|
children: []
|
|
@@ -291,4 +296,4 @@ function $5c4add0a8fe94894$export$6501da23a2770fc() {
|
|
|
291
296
|
}
|
|
292
297
|
};
|
|
293
298
|
}
|
|
294
|
-
export { $5c4add0a8fe94894$export$9fac37a9c21c2f3b as DepictProvider, $5c4add0a8fe94894$export$72616730c1fad2f4 as useCategoryFilterHelpers, $5c4add0a8fe94894$export$a54ec244c8863715 as SearchPage, $5c4add0a8fe94894$export$f7d2f673fc2f091d as CategoryPage, $5c4add0a8fe94894$export$5646050d516e06bc as BreadCrumbs, $5c4add0a8fe94894$export$466cdc317043f6cb as QuickLinks, $5c4add0a8fe94894$export$82cfdc85a4d15688 as RecommendationSlider, $5c4add0a8fe94894$export$80e99ee6b29cadd2 as ComponentAligner, $5c4add0a8fe94894$export$3f37af283f8fb843 as ImagePlaceholder, $5c4add0a8fe94894$export$b0a773486c1c2312 as RecommendationGrid, $5c4add0a8fe94894$export$89c6019e4baa40b1 as TextPlaceholder, $5c4add0a8fe94894$export$9bb30bbe003b82e0 as useSearchField, $5c4add0a8fe94894$export$a7f6cffb6b8ba11c as openModal, $5c4add0a8fe94894$export$912994940e660d32 as useSearchModal, $5c4add0a8fe94894$export$38b98fae14bd1f64 as usePerformanceClient, $5c4add0a8fe94894$export$6501da23a2770fc as useFetchRecommendations, $9bd9bb8700ab2ada$export$83d89fbfd8236492 as version };
|
|
299
|
+
export { $5c4add0a8fe94894$export$9fac37a9c21c2f3b as DepictProvider, $5c4add0a8fe94894$export$72616730c1fad2f4 as useCategoryFilterHelpers, $5c4add0a8fe94894$export$a54ec244c8863715 as SearchPage, $5c4add0a8fe94894$export$f7d2f673fc2f091d as CategoryPage, $5c4add0a8fe94894$export$5646050d516e06bc as BreadCrumbs, $5c4add0a8fe94894$export$ee471bde82ce7cf7 as LooksSliderOrGrid, $5c4add0a8fe94894$export$466cdc317043f6cb as QuickLinks, $5c4add0a8fe94894$export$82cfdc85a4d15688 as RecommendationSlider, $5c4add0a8fe94894$export$80e99ee6b29cadd2 as ComponentAligner, $5c4add0a8fe94894$export$3f37af283f8fb843 as ImagePlaceholder, $5c4add0a8fe94894$export$b0a773486c1c2312 as RecommendationGrid, $5c4add0a8fe94894$export$89c6019e4baa40b1 as TextPlaceholder, $5c4add0a8fe94894$export$9bb30bbe003b82e0 as useSearchField, $5c4add0a8fe94894$export$a7f6cffb6b8ba11c as openModal, $5c4add0a8fe94894$export$912994940e660d32 as useSearchModal, $5c4add0a8fe94894$export$38b98fae14bd1f64 as usePerformanceClient, $5c4add0a8fe94894$export$6501da23a2770fc as useFetchRecommendations, $9bd9bb8700ab2ada$export$83d89fbfd8236492 as version };
|
package/server/latest/index.cjs
CHANGED
|
@@ -21,6 +21,7 @@ $parcel$export(module.exports, "useCategoryFilterHelpers", () => $41e7e5d85b5e0d
|
|
|
21
21
|
$parcel$export(module.exports, "SearchPage", () => $41e7e5d85b5e0d49$export$a54ec244c8863715);
|
|
22
22
|
$parcel$export(module.exports, "CategoryPage", () => $41e7e5d85b5e0d49$export$f7d2f673fc2f091d);
|
|
23
23
|
$parcel$export(module.exports, "BreadCrumbs", () => $41e7e5d85b5e0d49$export$5646050d516e06bc);
|
|
24
|
+
$parcel$export(module.exports, "LooksSliderOrGrid", () => $41e7e5d85b5e0d49$export$ee471bde82ce7cf7);
|
|
24
25
|
$parcel$export(module.exports, "QuickLinks", () => $41e7e5d85b5e0d49$export$466cdc317043f6cb);
|
|
25
26
|
$parcel$export(module.exports, "RecommendationSlider", () => $41e7e5d85b5e0d49$export$82cfdc85a4d15688);
|
|
26
27
|
$parcel$export(module.exports, "ComponentAligner", () => $41e7e5d85b5e0d49$export$80e99ee6b29cadd2);
|
|
@@ -192,7 +193,7 @@ function $c6b960f2a07285c8$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
192
193
|
}
|
|
193
194
|
});
|
|
194
195
|
}
|
|
195
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "4.
|
|
196
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "4.7.0";
|
|
196
197
|
function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
|
|
197
198
|
return props.children;
|
|
198
199
|
}
|
|
@@ -219,6 +220,11 @@ function $41e7e5d85b5e0d49$export$5646050d516e06bc() {
|
|
|
219
220
|
children: []
|
|
220
221
|
});
|
|
221
222
|
}
|
|
223
|
+
function $41e7e5d85b5e0d49$export$ee471bde82ce7cf7() {
|
|
224
|
+
return $7QqFM$react.createElement("div", {
|
|
225
|
+
children: []
|
|
226
|
+
});
|
|
227
|
+
}
|
|
222
228
|
function $41e7e5d85b5e0d49$export$466cdc317043f6cb() {
|
|
223
229
|
return $7QqFM$react.createElement("div", {
|
|
224
230
|
children: []
|
package/server/latest/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DPC } from "@depict-ai/dpc/latest";
|
|
2
2
|
import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } from "react";
|
|
3
|
-
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations, FilterWithData } from "@depict-ai/ui/latest";
|
|
3
|
+
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, SDKColsAtSize, SDKGridSpacing, ExclusiveId, fetchDepictRecommendations, FilterWithData } from "@depict-ai/ui/latest";
|
|
4
4
|
import { Locale } from "@depict-ai/ui/locales/latest";
|
|
5
5
|
import { Display, ModernDisplay } from "@depict-ai/utilishared/latest";
|
|
6
|
-
export const version = "4.
|
|
6
|
+
export const version = "4.7.0";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
|
@@ -402,6 +402,29 @@ declare function SolidRecommendationSliderWrapper<T extends Display>(props: Reco
|
|
|
402
402
|
* @param title Optional title to show when recommendations are being shown
|
|
403
403
|
*/
|
|
404
404
|
export function RecommendationGrid<T extends Display>(props: Parameters<typeof SolidRecommendationGridWrapper<T>>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
405
|
+
/**
|
|
406
|
+
* Renders a grid or slider containing look cards for the looks available for a certain product (provided productId).
|
|
407
|
+
*/
|
|
408
|
+
export function LooksSliderOrGrid(props: Parameters<typeof SolidLooksWrapper>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
409
|
+
declare function SolidLooksWrapper(props: {
|
|
410
|
+
gridSpacing?: SDKGridSpacing;
|
|
411
|
+
columnsAtSize?: SDKColsAtSize;
|
|
412
|
+
productId: string;
|
|
413
|
+
imagePlaceholderAspectRatio?: number | string;
|
|
414
|
+
title?: string;
|
|
415
|
+
className?: string;
|
|
416
|
+
/**
|
|
417
|
+
* If provided, will render as grid instead of slider
|
|
418
|
+
*/
|
|
419
|
+
gridOptions?: {
|
|
420
|
+
maxRows?: number;
|
|
421
|
+
viewMoreButton?: {
|
|
422
|
+
text: string;
|
|
423
|
+
startRows?: number;
|
|
424
|
+
rowsPerClick?: number;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
}): HTMLDivElement;
|
|
405
428
|
/**
|
|
406
429
|
* Parameters to configure the search modal.
|
|
407
430
|
*/
|
package/server/latest/index.js
CHANGED
|
@@ -168,7 +168,7 @@ function $4d5c3f13a5ae62a7$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "4.
|
|
171
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "4.7.0";
|
|
172
172
|
function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
|
|
173
173
|
return props.children;
|
|
174
174
|
}
|
|
@@ -195,6 +195,11 @@ function $2b1fdeb83610500f$export$5646050d516e06bc() {
|
|
|
195
195
|
children: []
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
+
function $2b1fdeb83610500f$export$ee471bde82ce7cf7() {
|
|
199
|
+
return $eOXet$createElement("div", {
|
|
200
|
+
children: []
|
|
201
|
+
});
|
|
202
|
+
}
|
|
198
203
|
function $2b1fdeb83610500f$export$466cdc317043f6cb() {
|
|
199
204
|
return $eOXet$createElement("div", {
|
|
200
205
|
children: []
|
|
@@ -280,4 +285,4 @@ function $2b1fdeb83610500f$export$6501da23a2770fc() {
|
|
|
280
285
|
}
|
|
281
286
|
};
|
|
282
287
|
}
|
|
283
|
-
export { $2b1fdeb83610500f$export$9fac37a9c21c2f3b as DepictProvider, $2b1fdeb83610500f$export$72616730c1fad2f4 as useCategoryFilterHelpers, $2b1fdeb83610500f$export$a54ec244c8863715 as SearchPage, $2b1fdeb83610500f$export$f7d2f673fc2f091d as CategoryPage, $2b1fdeb83610500f$export$5646050d516e06bc as BreadCrumbs, $2b1fdeb83610500f$export$466cdc317043f6cb as QuickLinks, $2b1fdeb83610500f$export$82cfdc85a4d15688 as RecommendationSlider, $2b1fdeb83610500f$export$80e99ee6b29cadd2 as ComponentAligner, $2b1fdeb83610500f$export$3f37af283f8fb843 as ImagePlaceholder, $2b1fdeb83610500f$export$b0a773486c1c2312 as RecommendationGrid, $2b1fdeb83610500f$export$89c6019e4baa40b1 as TextPlaceholder, $2b1fdeb83610500f$export$9bb30bbe003b82e0 as useSearchField, $2b1fdeb83610500f$export$a7f6cffb6b8ba11c as openModal, $2b1fdeb83610500f$export$912994940e660d32 as useSearchModal, $2b1fdeb83610500f$export$38b98fae14bd1f64 as usePerformanceClient, $2b1fdeb83610500f$export$6501da23a2770fc as useFetchRecommendations, $c9c4d066f9a5b51b$export$83d89fbfd8236492 as version };
|
|
288
|
+
export { $2b1fdeb83610500f$export$9fac37a9c21c2f3b as DepictProvider, $2b1fdeb83610500f$export$72616730c1fad2f4 as useCategoryFilterHelpers, $2b1fdeb83610500f$export$a54ec244c8863715 as SearchPage, $2b1fdeb83610500f$export$f7d2f673fc2f091d as CategoryPage, $2b1fdeb83610500f$export$5646050d516e06bc as BreadCrumbs, $2b1fdeb83610500f$export$ee471bde82ce7cf7 as LooksSliderOrGrid, $2b1fdeb83610500f$export$466cdc317043f6cb as QuickLinks, $2b1fdeb83610500f$export$82cfdc85a4d15688 as RecommendationSlider, $2b1fdeb83610500f$export$80e99ee6b29cadd2 as ComponentAligner, $2b1fdeb83610500f$export$3f37af283f8fb843 as ImagePlaceholder, $2b1fdeb83610500f$export$b0a773486c1c2312 as RecommendationGrid, $2b1fdeb83610500f$export$89c6019e4baa40b1 as TextPlaceholder, $2b1fdeb83610500f$export$9bb30bbe003b82e0 as useSearchField, $2b1fdeb83610500f$export$a7f6cffb6b8ba11c as openModal, $2b1fdeb83610500f$export$912994940e660d32 as useSearchModal, $2b1fdeb83610500f$export$38b98fae14bd1f64 as usePerformanceClient, $2b1fdeb83610500f$export$6501da23a2770fc as useFetchRecommendations, $c9c4d066f9a5b51b$export$83d89fbfd8236492 as version };
|