@depict-ai/react-ui 2.1.16 → 2.2.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 +27 -14
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +27 -14
- package/latest/index.cjs +26 -13
- package/latest/index.d.ts +1 -1
- package/latest/index.js +26 -13
- package/package.json +1 -1
- package/server/ES10/index.cjs +26 -13
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +26 -13
- package/server/latest/index.cjs +25 -12
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +25 -12
package/ES10/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ $parcel$export(module.exports, "version", () => $efbdd2dab4314170$export$83d89fb
|
|
|
39
39
|
$parcel$export(module.exports, "Navigation", () => $0d3a2413fdeb34b9$export$b8a61e5c71402559);
|
|
40
40
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
41
41
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
42
|
-
const $efbdd2dab4314170$export$83d89fbfd8236492 = "2.
|
|
42
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "2.2.0";
|
|
43
43
|
const $ef516b1f92253963$export$8e769ad4338a911e = {
|
|
44
44
|
usedLocale: $2kiy7$solidjs.createSignal((0, $2kiy7$depictaiuilocales.defaultLocale)),
|
|
45
45
|
search_instances: new Map(),
|
|
@@ -831,6 +831,30 @@ function $6e5ce22b65512b0a$export$4daadad26e48a2c7(props) {
|
|
|
831
831
|
throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
+
function $7b4cd941f15b2582$export$12250cb2badef3d2(props) {
|
|
835
|
+
const recs = props.recommendations;
|
|
836
|
+
if ("then" in recs)
|
|
837
|
+
// Run displayTransformers for RecommendationSlider and RecommendationGrid
|
|
838
|
+
return recs.then(async displays => {
|
|
839
|
+
var _globalState$api, _globalState$api$disp;
|
|
840
|
+
const transformFunction = (_globalState$api = (0, $ef516b1f92253963$export$8e769ad4338a911e).api) === null || _globalState$api === void 0 ? void 0 : (_globalState$api$disp = _globalState$api.display_transformers) === null || _globalState$api$disp === void 0 ? void 0 : _globalState$api$disp.products;
|
|
841
|
+
if (transformFunction) try {
|
|
842
|
+
return await transformFunction({
|
|
843
|
+
merchant: (0, $ef516b1f92253963$export$8e769ad4338a911e).merchant[0](),
|
|
844
|
+
market: (0, $ef516b1f92253963$export$8e769ad4338a911e).market[0](),
|
|
845
|
+
displays: displays
|
|
846
|
+
});
|
|
847
|
+
} catch (e) {
|
|
848
|
+
console.error(e);
|
|
849
|
+
throw new Error("Error running display transformer for recommendations", {
|
|
850
|
+
cause: e
|
|
851
|
+
}); // To stop recommendation grid from rendering
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
return displays;
|
|
855
|
+
});
|
|
856
|
+
return recs;
|
|
857
|
+
}
|
|
834
858
|
function $745b83c12baac3c0$export$82cfdc85a4d15688(props) {
|
|
835
859
|
$6e5ce22b65512b0a$export$4daadad26e48a2c7(props);
|
|
836
860
|
return $e7ba61a7074c02d3$export$f6e64e17bd69eeef({
|
|
@@ -842,7 +866,7 @@ function $745b83c12baac3c0$export$5abb40edfde2a843(props, set_portals) {
|
|
|
842
866
|
const component_portals = new Set();
|
|
843
867
|
return $2kiy7$depictaiui.RecommendationSlider({
|
|
844
868
|
get recommendations() {
|
|
845
|
-
return props
|
|
869
|
+
return $7b4cd941f15b2582$export$12250cb2badef3d2(props);
|
|
846
870
|
},
|
|
847
871
|
product_card_template: display => $3441d987b5ea85cb$export$32024253978abdc7({
|
|
848
872
|
component_props: {
|
|
@@ -868,18 +892,7 @@ function $3b36cc844440a979$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
868
892
|
const component_portals = new Set();
|
|
869
893
|
return $2kiy7$depictaiui.RecommendationGrid({
|
|
870
894
|
get recommendations() {
|
|
871
|
-
|
|
872
|
-
if ("then" in recs) return recs.then(displays => {
|
|
873
|
-
var _globalState$api, _globalState$api$disp;
|
|
874
|
-
const transformFunction = (_globalState$api = (0, $ef516b1f92253963$export$8e769ad4338a911e).api) === null || _globalState$api === void 0 ? void 0 : (_globalState$api$disp = _globalState$api.display_transformers) === null || _globalState$api$disp === void 0 ? void 0 : _globalState$api$disp.products;
|
|
875
|
-
if (transformFunction) return transformFunction({
|
|
876
|
-
merchant: (0, $ef516b1f92253963$export$8e769ad4338a911e).merchant[0](),
|
|
877
|
-
market: (0, $ef516b1f92253963$export$8e769ad4338a911e).market[0](),
|
|
878
|
-
displays: displays
|
|
879
|
-
});
|
|
880
|
-
return displays;
|
|
881
|
-
});
|
|
882
|
-
return recs;
|
|
895
|
+
return $7b4cd941f15b2582$export$12250cb2badef3d2(props);
|
|
883
896
|
},
|
|
884
897
|
product_card_template: display => {
|
|
885
898
|
if (0, $2kiy7$solidjsweb.isServer)
|
package/ES10/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, ReactNode, FC, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseProviderConfig, BaseSearchProviderConfig, BaseCategoryProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } 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 = "2.
|
|
6
|
+
export const version = "2.2.0";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
package/ES10/index.js
CHANGED
|
@@ -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 = "2.
|
|
18
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "2.2.0";
|
|
19
19
|
const $8c691d7f86317052$export$8e769ad4338a911e = {
|
|
20
20
|
usedLocale: $jb2Oo$createSignal((0, $jb2Oo$defaultLocale)),
|
|
21
21
|
search_instances: new Map(),
|
|
@@ -807,6 +807,30 @@ function $758339150fbfe9d5$export$4daadad26e48a2c7(props) {
|
|
|
807
807
|
throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
|
+
function $9da62538e07f038e$export$12250cb2badef3d2(props) {
|
|
811
|
+
const recs = props.recommendations;
|
|
812
|
+
if ("then" in recs)
|
|
813
|
+
// Run displayTransformers for RecommendationSlider and RecommendationGrid
|
|
814
|
+
return recs.then(async displays => {
|
|
815
|
+
var _globalState$api, _globalState$api$disp;
|
|
816
|
+
const transformFunction = (_globalState$api = (0, $8c691d7f86317052$export$8e769ad4338a911e).api) === null || _globalState$api === void 0 ? void 0 : (_globalState$api$disp = _globalState$api.display_transformers) === null || _globalState$api$disp === void 0 ? void 0 : _globalState$api$disp.products;
|
|
817
|
+
if (transformFunction) try {
|
|
818
|
+
return await transformFunction({
|
|
819
|
+
merchant: (0, $8c691d7f86317052$export$8e769ad4338a911e).merchant[0](),
|
|
820
|
+
market: (0, $8c691d7f86317052$export$8e769ad4338a911e).market[0](),
|
|
821
|
+
displays: displays
|
|
822
|
+
});
|
|
823
|
+
} catch (e) {
|
|
824
|
+
console.error(e);
|
|
825
|
+
throw new Error("Error running display transformer for recommendations", {
|
|
826
|
+
cause: e
|
|
827
|
+
}); // To stop recommendation grid from rendering
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
return displays;
|
|
831
|
+
});
|
|
832
|
+
return recs;
|
|
833
|
+
}
|
|
810
834
|
function $c02e9fd51f31a1bd$export$82cfdc85a4d15688(props) {
|
|
811
835
|
$758339150fbfe9d5$export$4daadad26e48a2c7(props);
|
|
812
836
|
return $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef({
|
|
@@ -818,7 +842,7 @@ function $c02e9fd51f31a1bd$export$5abb40edfde2a843(props, set_portals) {
|
|
|
818
842
|
const component_portals = new Set();
|
|
819
843
|
return $jb2Oo$RecommendationSlider({
|
|
820
844
|
get recommendations() {
|
|
821
|
-
return props
|
|
845
|
+
return $9da62538e07f038e$export$12250cb2badef3d2(props);
|
|
822
846
|
},
|
|
823
847
|
product_card_template: display => $cce08f18e2476cbf$export$32024253978abdc7({
|
|
824
848
|
component_props: {
|
|
@@ -844,18 +868,7 @@ function $cd68097a7ee08669$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
844
868
|
const component_portals = new Set();
|
|
845
869
|
return $jb2Oo$RecommendationGrid({
|
|
846
870
|
get recommendations() {
|
|
847
|
-
|
|
848
|
-
if ("then" in recs) return recs.then(displays => {
|
|
849
|
-
var _globalState$api, _globalState$api$disp;
|
|
850
|
-
const transformFunction = (_globalState$api = (0, $8c691d7f86317052$export$8e769ad4338a911e).api) === null || _globalState$api === void 0 ? void 0 : (_globalState$api$disp = _globalState$api.display_transformers) === null || _globalState$api$disp === void 0 ? void 0 : _globalState$api$disp.products;
|
|
851
|
-
if (transformFunction) return transformFunction({
|
|
852
|
-
merchant: (0, $8c691d7f86317052$export$8e769ad4338a911e).merchant[0](),
|
|
853
|
-
market: (0, $8c691d7f86317052$export$8e769ad4338a911e).market[0](),
|
|
854
|
-
displays: displays
|
|
855
|
-
});
|
|
856
|
-
return displays;
|
|
857
|
-
});
|
|
858
|
-
return recs;
|
|
871
|
+
return $9da62538e07f038e$export$12250cb2badef3d2(props);
|
|
859
872
|
},
|
|
860
873
|
product_card_template: display => {
|
|
861
874
|
if (0, $jb2Oo$isServer)
|
package/latest/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ $parcel$export(module.exports, "version", () => $db7b67857900028b$export$83d89fb
|
|
|
39
39
|
$parcel$export(module.exports, "Navigation", () => $b742053c966024b4$export$b8a61e5c71402559);
|
|
40
40
|
/*! Depict.ai search and product listing react SDK wrapper */ // This is where the actual source of your React stuff should live
|
|
41
41
|
// Note, if you add an export here, also add one in src-server/main.ts
|
|
42
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "2.
|
|
42
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "2.2.0";
|
|
43
43
|
const $0b7cd4fb39fc3502$export$8e769ad4338a911e = {
|
|
44
44
|
usedLocale: $2IzJs$solidjs.createSignal((0, $2IzJs$depictaiuilocales.defaultLocale)),
|
|
45
45
|
search_instances: new Map(),
|
|
@@ -795,6 +795,29 @@ function $67657ea54664baa8$export$4daadad26e48a2c7(props) {
|
|
|
795
795
|
throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
|
+
function $3d35ad83c8fdfa92$export$12250cb2badef3d2(props) {
|
|
799
|
+
const recs = props.recommendations;
|
|
800
|
+
if ("then" in recs)
|
|
801
|
+
// Run displayTransformers for RecommendationSlider and RecommendationGrid
|
|
802
|
+
return recs.then(async displays => {
|
|
803
|
+
const transformFunction = (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).api?.display_transformers?.products;
|
|
804
|
+
if (transformFunction) try {
|
|
805
|
+
return await transformFunction({
|
|
806
|
+
merchant: (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).merchant[0](),
|
|
807
|
+
market: (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).market[0](),
|
|
808
|
+
displays: displays
|
|
809
|
+
});
|
|
810
|
+
} catch (e) {
|
|
811
|
+
console.error(e);
|
|
812
|
+
throw new Error("Error running display transformer for recommendations", {
|
|
813
|
+
cause: e
|
|
814
|
+
}); // To stop recommendation grid from rendering
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
return displays;
|
|
818
|
+
});
|
|
819
|
+
return recs;
|
|
820
|
+
}
|
|
798
821
|
function $8ffd7da37fdd46be$export$82cfdc85a4d15688(props) {
|
|
799
822
|
$67657ea54664baa8$export$4daadad26e48a2c7(props);
|
|
800
823
|
return $b4d0d98857ed9934$export$f6e64e17bd69eeef({
|
|
@@ -806,7 +829,7 @@ function $8ffd7da37fdd46be$export$5abb40edfde2a843(props, set_portals) {
|
|
|
806
829
|
const component_portals = new Set();
|
|
807
830
|
return $2IzJs$depictaiui.RecommendationSlider({
|
|
808
831
|
get recommendations() {
|
|
809
|
-
return props
|
|
832
|
+
return $3d35ad83c8fdfa92$export$12250cb2badef3d2(props);
|
|
810
833
|
},
|
|
811
834
|
product_card_template: display => $6081519c185fcf70$export$32024253978abdc7({
|
|
812
835
|
component_props: {
|
|
@@ -831,17 +854,7 @@ function $c6b960f2a07285c8$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
831
854
|
const component_portals = new Set();
|
|
832
855
|
return $2IzJs$depictaiui.RecommendationGrid({
|
|
833
856
|
get recommendations() {
|
|
834
|
-
|
|
835
|
-
if ("then" in recs) return recs.then(displays => {
|
|
836
|
-
const transformFunction = (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).api?.display_transformers?.products;
|
|
837
|
-
if (transformFunction) return transformFunction({
|
|
838
|
-
merchant: (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).merchant[0](),
|
|
839
|
-
market: (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).market[0](),
|
|
840
|
-
displays: displays
|
|
841
|
-
});
|
|
842
|
-
return displays;
|
|
843
|
-
});
|
|
844
|
-
return recs;
|
|
857
|
+
return $3d35ad83c8fdfa92$export$12250cb2badef3d2(props);
|
|
845
858
|
},
|
|
846
859
|
product_card_template: display => {
|
|
847
860
|
if (0, $2IzJs$solidjsweb.isServer)
|
package/latest/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, ReactNode, FC, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseProviderConfig, BaseSearchProviderConfig, BaseCategoryProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } 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 = "2.
|
|
6
|
+
export const version = "2.2.0";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
package/latest/index.js
CHANGED
|
@@ -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 = "2.
|
|
18
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "2.2.0";
|
|
19
19
|
const $42858f023ef23dab$export$8e769ad4338a911e = {
|
|
20
20
|
usedLocale: $2GFvs$createSignal((0, $2GFvs$defaultLocale)),
|
|
21
21
|
search_instances: new Map(),
|
|
@@ -771,6 +771,29 @@ function $ab2bb2d1f47a25b7$export$4daadad26e48a2c7(props) {
|
|
|
771
771
|
throw new Error(us + " props.recommendations needs to be a promise that is either unresolved (`new Promise(() => {})`) so we can show placeholders, or resolved (`Promise.resolve(recommendation_array)`) to the recommendations to show");
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
|
+
function $5ee8e057dabc10d4$export$12250cb2badef3d2(props) {
|
|
775
|
+
const recs = props.recommendations;
|
|
776
|
+
if ("then" in recs)
|
|
777
|
+
// Run displayTransformers for RecommendationSlider and RecommendationGrid
|
|
778
|
+
return recs.then(async displays => {
|
|
779
|
+
const transformFunction = (0, $42858f023ef23dab$export$8e769ad4338a911e).api?.display_transformers?.products;
|
|
780
|
+
if (transformFunction) try {
|
|
781
|
+
return await transformFunction({
|
|
782
|
+
merchant: (0, $42858f023ef23dab$export$8e769ad4338a911e).merchant[0](),
|
|
783
|
+
market: (0, $42858f023ef23dab$export$8e769ad4338a911e).market[0](),
|
|
784
|
+
displays: displays
|
|
785
|
+
});
|
|
786
|
+
} catch (e) {
|
|
787
|
+
console.error(e);
|
|
788
|
+
throw new Error("Error running display transformer for recommendations", {
|
|
789
|
+
cause: e
|
|
790
|
+
}); // To stop recommendation grid from rendering
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
return displays;
|
|
794
|
+
});
|
|
795
|
+
return recs;
|
|
796
|
+
}
|
|
774
797
|
function $4fd5dc0e231a60d9$export$82cfdc85a4d15688(props) {
|
|
775
798
|
$ab2bb2d1f47a25b7$export$4daadad26e48a2c7(props);
|
|
776
799
|
return $c83ba9ab79386687$export$f6e64e17bd69eeef({
|
|
@@ -782,7 +805,7 @@ function $4fd5dc0e231a60d9$export$5abb40edfde2a843(props, set_portals) {
|
|
|
782
805
|
const component_portals = new Set();
|
|
783
806
|
return $2GFvs$RecommendationSlider({
|
|
784
807
|
get recommendations() {
|
|
785
|
-
return props
|
|
808
|
+
return $5ee8e057dabc10d4$export$12250cb2badef3d2(props);
|
|
786
809
|
},
|
|
787
810
|
product_card_template: display => $bcf84a32dc612a43$export$32024253978abdc7({
|
|
788
811
|
component_props: {
|
|
@@ -807,17 +830,7 @@ function $4d5c3f13a5ae62a7$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
807
830
|
const component_portals = new Set();
|
|
808
831
|
return $2GFvs$RecommendationGrid({
|
|
809
832
|
get recommendations() {
|
|
810
|
-
|
|
811
|
-
if ("then" in recs) return recs.then(displays => {
|
|
812
|
-
const transformFunction = (0, $42858f023ef23dab$export$8e769ad4338a911e).api?.display_transformers?.products;
|
|
813
|
-
if (transformFunction) return transformFunction({
|
|
814
|
-
merchant: (0, $42858f023ef23dab$export$8e769ad4338a911e).merchant[0](),
|
|
815
|
-
market: (0, $42858f023ef23dab$export$8e769ad4338a911e).market[0](),
|
|
816
|
-
displays: displays
|
|
817
|
-
});
|
|
818
|
-
return displays;
|
|
819
|
-
});
|
|
820
|
-
return recs;
|
|
833
|
+
return $5ee8e057dabc10d4$export$12250cb2badef3d2(props);
|
|
821
834
|
},
|
|
822
835
|
product_card_template: display => {
|
|
823
836
|
if (0, $2GFvs$isServer)
|
package/package.json
CHANGED
package/server/ES10/index.cjs
CHANGED
|
@@ -160,22 +160,35 @@ const $ef516b1f92253963$export$8e769ad4338a911e = {
|
|
|
160
160
|
category_meta_title_suffix: $aNCHr$solidjs.createSignal(),
|
|
161
161
|
disable_override_query_id: $aNCHr$solidjs.createSignal()
|
|
162
162
|
};
|
|
163
|
-
function $
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
163
|
+
function $7b4cd941f15b2582$export$12250cb2badef3d2(props) {
|
|
164
|
+
const recs = props.recommendations;
|
|
165
|
+
if ("then" in recs)
|
|
166
|
+
// Run displayTransformers for RecommendationSlider and RecommendationGrid
|
|
167
|
+
return recs.then(async displays => {
|
|
168
|
+
var _globalState$api, _globalState$api$disp;
|
|
169
|
+
const transformFunction = (_globalState$api = (0, $ef516b1f92253963$export$8e769ad4338a911e).api) === null || _globalState$api === void 0 ? void 0 : (_globalState$api$disp = _globalState$api.display_transformers) === null || _globalState$api$disp === void 0 ? void 0 : _globalState$api$disp.products;
|
|
170
|
+
if (transformFunction) try {
|
|
171
|
+
return await transformFunction({
|
|
172
172
|
merchant: (0, $ef516b1f92253963$export$8e769ad4338a911e).merchant[0](),
|
|
173
173
|
market: (0, $ef516b1f92253963$export$8e769ad4338a911e).market[0](),
|
|
174
174
|
displays: displays
|
|
175
175
|
});
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
} catch (e) {
|
|
177
|
+
console.error(e);
|
|
178
|
+
throw new Error("Error running display transformer for recommendations", {
|
|
179
|
+
cause: e
|
|
180
|
+
}); // To stop recommendation grid from rendering
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return displays;
|
|
184
|
+
});
|
|
185
|
+
return recs;
|
|
186
|
+
}
|
|
187
|
+
function $3b36cc844440a979$export$e46079a2793e9ec7(props, set_portals) {
|
|
188
|
+
const component_portals = new Set();
|
|
189
|
+
return $aNCHr$depictaiui.RecommendationGrid({
|
|
190
|
+
get recommendations() {
|
|
191
|
+
return $7b4cd941f15b2582$export$12250cb2badef3d2(props);
|
|
179
192
|
},
|
|
180
193
|
product_card_template: display => {
|
|
181
194
|
if (0, $aNCHr$solidjsweb.isServer)
|
|
@@ -221,7 +234,7 @@ function $3b36cc844440a979$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
221
234
|
}
|
|
222
235
|
});
|
|
223
236
|
}
|
|
224
|
-
const $efbdd2dab4314170$export$83d89fbfd8236492 = "2.
|
|
237
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "2.2.0";
|
|
225
238
|
function $202459d454907b31$export$9fac37a9c21c2f3b(props) {
|
|
226
239
|
return props.children;
|
|
227
240
|
}
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, ReactNode, FC, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseProviderConfig, BaseSearchProviderConfig, BaseCategoryProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } 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 = "2.
|
|
6
|
+
export const version = "2.2.0";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
package/server/ES10/index.js
CHANGED
|
@@ -137,22 +137,35 @@ const $8c691d7f86317052$export$8e769ad4338a911e = {
|
|
|
137
137
|
category_meta_title_suffix: $7h5e1$createSignal(),
|
|
138
138
|
disable_override_query_id: $7h5e1$createSignal()
|
|
139
139
|
};
|
|
140
|
-
function $
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
140
|
+
function $9da62538e07f038e$export$12250cb2badef3d2(props) {
|
|
141
|
+
const recs = props.recommendations;
|
|
142
|
+
if ("then" in recs)
|
|
143
|
+
// Run displayTransformers for RecommendationSlider and RecommendationGrid
|
|
144
|
+
return recs.then(async displays => {
|
|
145
|
+
var _globalState$api, _globalState$api$disp;
|
|
146
|
+
const transformFunction = (_globalState$api = (0, $8c691d7f86317052$export$8e769ad4338a911e).api) === null || _globalState$api === void 0 ? void 0 : (_globalState$api$disp = _globalState$api.display_transformers) === null || _globalState$api$disp === void 0 ? void 0 : _globalState$api$disp.products;
|
|
147
|
+
if (transformFunction) try {
|
|
148
|
+
return await transformFunction({
|
|
149
149
|
merchant: (0, $8c691d7f86317052$export$8e769ad4338a911e).merchant[0](),
|
|
150
150
|
market: (0, $8c691d7f86317052$export$8e769ad4338a911e).market[0](),
|
|
151
151
|
displays: displays
|
|
152
152
|
});
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
} catch (e) {
|
|
154
|
+
console.error(e);
|
|
155
|
+
throw new Error("Error running display transformer for recommendations", {
|
|
156
|
+
cause: e
|
|
157
|
+
}); // To stop recommendation grid from rendering
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
return displays;
|
|
161
|
+
});
|
|
162
|
+
return recs;
|
|
163
|
+
}
|
|
164
|
+
function $cd68097a7ee08669$export$e46079a2793e9ec7(props, set_portals) {
|
|
165
|
+
const component_portals = new Set();
|
|
166
|
+
return $7h5e1$RecommendationGrid({
|
|
167
|
+
get recommendations() {
|
|
168
|
+
return $9da62538e07f038e$export$12250cb2badef3d2(props);
|
|
156
169
|
},
|
|
157
170
|
product_card_template: display => {
|
|
158
171
|
if (0, $7h5e1$isServer)
|
|
@@ -198,7 +211,7 @@ function $cd68097a7ee08669$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
198
211
|
}
|
|
199
212
|
});
|
|
200
213
|
}
|
|
201
|
-
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "2.
|
|
214
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "2.2.0";
|
|
202
215
|
function $5c4add0a8fe94894$export$9fac37a9c21c2f3b(props) {
|
|
203
216
|
return props.children;
|
|
204
217
|
}
|
package/server/latest/index.cjs
CHANGED
|
@@ -154,21 +154,34 @@ const $0b7cd4fb39fc3502$export$8e769ad4338a911e = {
|
|
|
154
154
|
category_meta_title_suffix: $7QqFM$solidjs.createSignal(),
|
|
155
155
|
disable_override_query_id: $7QqFM$solidjs.createSignal()
|
|
156
156
|
};
|
|
157
|
-
function $
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
157
|
+
function $3d35ad83c8fdfa92$export$12250cb2badef3d2(props) {
|
|
158
|
+
const recs = props.recommendations;
|
|
159
|
+
if ("then" in recs)
|
|
160
|
+
// Run displayTransformers for RecommendationSlider and RecommendationGrid
|
|
161
|
+
return recs.then(async displays => {
|
|
162
|
+
const transformFunction = (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).api?.display_transformers?.products;
|
|
163
|
+
if (transformFunction) try {
|
|
164
|
+
return await transformFunction({
|
|
165
165
|
merchant: (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).merchant[0](),
|
|
166
166
|
market: (0, $0b7cd4fb39fc3502$export$8e769ad4338a911e).market[0](),
|
|
167
167
|
displays: displays
|
|
168
168
|
});
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
} catch (e) {
|
|
170
|
+
console.error(e);
|
|
171
|
+
throw new Error("Error running display transformer for recommendations", {
|
|
172
|
+
cause: e
|
|
173
|
+
}); // To stop recommendation grid from rendering
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return displays;
|
|
177
|
+
});
|
|
178
|
+
return recs;
|
|
179
|
+
}
|
|
180
|
+
function $c6b960f2a07285c8$export$e46079a2793e9ec7(props, set_portals) {
|
|
181
|
+
const component_portals = new Set();
|
|
182
|
+
return $7QqFM$depictaiui.RecommendationGrid({
|
|
183
|
+
get recommendations() {
|
|
184
|
+
return $3d35ad83c8fdfa92$export$12250cb2badef3d2(props);
|
|
172
185
|
},
|
|
173
186
|
product_card_template: display => {
|
|
174
187
|
if (0, $7QqFM$solidjsweb.isServer)
|
|
@@ -212,7 +225,7 @@ function $c6b960f2a07285c8$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
212
225
|
}
|
|
213
226
|
});
|
|
214
227
|
}
|
|
215
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "2.
|
|
228
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "2.2.0";
|
|
216
229
|
function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
|
|
217
230
|
return props.children;
|
|
218
231
|
}
|
package/server/latest/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, ReactNode, FC, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseProviderConfig, BaseSearchProviderConfig, BaseCategoryProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ImagePlaceholder as _ImagePlaceholder1, TextPlaceholder as _TextPlaceholder1, ExclusiveId, fetchDepictRecommendations } 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 = "2.
|
|
6
|
+
export const version = "2.2.0";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
package/server/latest/index.js
CHANGED
|
@@ -131,21 +131,34 @@ const $42858f023ef23dab$export$8e769ad4338a911e = {
|
|
|
131
131
|
category_meta_title_suffix: $eOXet$createSignal(),
|
|
132
132
|
disable_override_query_id: $eOXet$createSignal()
|
|
133
133
|
};
|
|
134
|
-
function $
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
134
|
+
function $5ee8e057dabc10d4$export$12250cb2badef3d2(props) {
|
|
135
|
+
const recs = props.recommendations;
|
|
136
|
+
if ("then" in recs)
|
|
137
|
+
// Run displayTransformers for RecommendationSlider and RecommendationGrid
|
|
138
|
+
return recs.then(async displays => {
|
|
139
|
+
const transformFunction = (0, $42858f023ef23dab$export$8e769ad4338a911e).api?.display_transformers?.products;
|
|
140
|
+
if (transformFunction) try {
|
|
141
|
+
return await transformFunction({
|
|
142
142
|
merchant: (0, $42858f023ef23dab$export$8e769ad4338a911e).merchant[0](),
|
|
143
143
|
market: (0, $42858f023ef23dab$export$8e769ad4338a911e).market[0](),
|
|
144
144
|
displays: displays
|
|
145
145
|
});
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
} catch (e) {
|
|
147
|
+
console.error(e);
|
|
148
|
+
throw new Error("Error running display transformer for recommendations", {
|
|
149
|
+
cause: e
|
|
150
|
+
}); // To stop recommendation grid from rendering
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
return displays;
|
|
154
|
+
});
|
|
155
|
+
return recs;
|
|
156
|
+
}
|
|
157
|
+
function $4d5c3f13a5ae62a7$export$e46079a2793e9ec7(props, set_portals) {
|
|
158
|
+
const component_portals = new Set();
|
|
159
|
+
return $eOXet$RecommendationGrid({
|
|
160
|
+
get recommendations() {
|
|
161
|
+
return $5ee8e057dabc10d4$export$12250cb2badef3d2(props);
|
|
149
162
|
},
|
|
150
163
|
product_card_template: display => {
|
|
151
164
|
if (0, $eOXet$isServer)
|
|
@@ -189,7 +202,7 @@ function $4d5c3f13a5ae62a7$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
189
202
|
}
|
|
190
203
|
});
|
|
191
204
|
}
|
|
192
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "2.
|
|
205
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "2.2.0";
|
|
193
206
|
function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
|
|
194
207
|
return props.children;
|
|
195
208
|
}
|