@depict-ai/react-ui 3.0.6 → 3.0.8
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 +18 -4
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +18 -4
- package/latest/index.cjs +17 -4
- package/latest/index.d.ts +1 -1
- package/latest/index.js +17 -4
- package/package.json +2 -2
- package/server/ES10/index.cjs +4 -4
- package/server/ES10/index.d.ts +1 -1
- package/server/ES10/index.js +4 -4
- package/server/latest/index.cjs +4 -4
- package/server/latest/index.d.ts +1 -1
- package/server/latest/index.js +4 -4
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 = "3.0.
|
|
42
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "3.0.8";
|
|
43
43
|
const $ef516b1f92253963$export$8e769ad4338a911e = {
|
|
44
44
|
usedLocale: $2kiy7$solidjs.createSignal((0, $2kiy7$depictaiuilocales.defaultLocale)),
|
|
45
45
|
search_instances: new Map(),
|
|
@@ -95,6 +95,20 @@ function $e7ba61a7074c02d3$export$f6e64e17bd69eeef(_ref) {
|
|
|
95
95
|
// If someone only rendered a solid component on the client that *could* be hydrated (no childNodes) then we fall back to `render` to avoid solid complaining about not being able to hydrate or crashing because the result of generateHydrationScript hasn't run at all
|
|
96
96
|
// This can happen for HMR or when SSR capable components are only rendered on the client
|
|
97
97
|
const render_function = hydrate_function_when_ssr && wrapper_element.childNodes.length ? hydrate_function_when_ssr : (0, $2kiy7$solidjsweb.render);
|
|
98
|
+
// Our system of suppressing hydration warnings and SSR-ing seems to generally work (all the time also in our test storefronts)
|
|
99
|
+
// But sometimes in prod (see https://depictaiworkspace.slack.com/archives/C061PGT2N3A/p1702038855265339) react for some reason actually sets innerHTML = ""; on our wrapper
|
|
100
|
+
// Deleting all our elements. To prevent that we just patch innerHTML to not do anything when being set to a new value
|
|
101
|
+
if (hydrate_function_when_ssr && !Object.getOwnPropertyNames(wrapper_element).includes("innerHTML")) Object.defineProperty(wrapper_element, "innerHTML", {
|
|
102
|
+
configurable: false,
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get() {
|
|
105
|
+
var _Object$getOwnPropert, _Object$getOwnPropert2;
|
|
106
|
+
return (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(Element.prototype, "innerHTML")) === null || _Object$getOwnPropert === void 0 ? void 0 : (_Object$getOwnPropert2 = _Object$getOwnPropert.get) === null || _Object$getOwnPropert2 === void 0 ? void 0 : _Object$getOwnPropert2.call(wrapper_element);
|
|
107
|
+
},
|
|
108
|
+
set() {
|
|
109
|
+
// Do nothing
|
|
110
|
+
}
|
|
111
|
+
});
|
|
98
112
|
const dispose = render_function(() => solid_component(store, set_portals), wrapper_element);
|
|
99
113
|
return dispose;
|
|
100
114
|
}, []);
|
|
@@ -887,11 +901,11 @@ function $3b36cc844440a979$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
887
901
|
product_card_template: display => {
|
|
888
902
|
if (0, $2kiy7$solidjsweb.isServer)
|
|
889
903
|
// This function can't be async on the server
|
|
890
|
-
// @ts-ignore
|
|
904
|
+
// @ts-ignore emulate the wrapper div that we need in prod here too for consistency
|
|
891
905
|
return {
|
|
892
|
-
t: $2kiy7$reactdomserver.renderToString($2kiy7$react.createElement(() => props.productCard({
|
|
906
|
+
t: "<div>".concat($2kiy7$reactdomserver.renderToString($2kiy7$react.createElement(() => props.productCard({
|
|
893
907
|
display: display
|
|
894
|
-
})))
|
|
908
|
+
}))), "</div>")
|
|
895
909
|
};
|
|
896
910
|
return $3441d987b5ea85cb$export$32024253978abdc7({
|
|
897
911
|
component_props: {
|
package/ES10/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, 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 = "3.0.
|
|
6
|
+
export const version = "3.0.8";
|
|
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 = "3.0.
|
|
18
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "3.0.8";
|
|
19
19
|
const $8c691d7f86317052$export$8e769ad4338a911e = {
|
|
20
20
|
usedLocale: $jb2Oo$createSignal((0, $jb2Oo$defaultLocale)),
|
|
21
21
|
search_instances: new Map(),
|
|
@@ -71,6 +71,20 @@ function $0dd9d9a9c7da4c1d$export$f6e64e17bd69eeef(_ref) {
|
|
|
71
71
|
// If someone only rendered a solid component on the client that *could* be hydrated (no childNodes) then we fall back to `render` to avoid solid complaining about not being able to hydrate or crashing because the result of generateHydrationScript hasn't run at all
|
|
72
72
|
// This can happen for HMR or when SSR capable components are only rendered on the client
|
|
73
73
|
const render_function = hydrate_function_when_ssr && wrapper_element.childNodes.length ? hydrate_function_when_ssr : (0, $jb2Oo$render);
|
|
74
|
+
// Our system of suppressing hydration warnings and SSR-ing seems to generally work (all the time also in our test storefronts)
|
|
75
|
+
// But sometimes in prod (see https://depictaiworkspace.slack.com/archives/C061PGT2N3A/p1702038855265339) react for some reason actually sets innerHTML = ""; on our wrapper
|
|
76
|
+
// Deleting all our elements. To prevent that we just patch innerHTML to not do anything when being set to a new value
|
|
77
|
+
if (hydrate_function_when_ssr && !Object.getOwnPropertyNames(wrapper_element).includes("innerHTML")) Object.defineProperty(wrapper_element, "innerHTML", {
|
|
78
|
+
configurable: false,
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get() {
|
|
81
|
+
var _Object$getOwnPropert, _Object$getOwnPropert2;
|
|
82
|
+
return (_Object$getOwnPropert = Object.getOwnPropertyDescriptor(Element.prototype, "innerHTML")) === null || _Object$getOwnPropert === void 0 ? void 0 : (_Object$getOwnPropert2 = _Object$getOwnPropert.get) === null || _Object$getOwnPropert2 === void 0 ? void 0 : _Object$getOwnPropert2.call(wrapper_element);
|
|
83
|
+
},
|
|
84
|
+
set() {
|
|
85
|
+
// Do nothing
|
|
86
|
+
}
|
|
87
|
+
});
|
|
74
88
|
const dispose = render_function(() => solid_component(store, set_portals), wrapper_element);
|
|
75
89
|
return dispose;
|
|
76
90
|
}, []);
|
|
@@ -863,11 +877,11 @@ function $cd68097a7ee08669$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
863
877
|
product_card_template: display => {
|
|
864
878
|
if (0, $jb2Oo$isServer)
|
|
865
879
|
// This function can't be async on the server
|
|
866
|
-
// @ts-ignore
|
|
880
|
+
// @ts-ignore emulate the wrapper div that we need in prod here too for consistency
|
|
867
881
|
return {
|
|
868
|
-
t: $jb2Oo$renderToString($jb2Oo$createElement(() => props.productCard({
|
|
882
|
+
t: "<div>".concat($jb2Oo$renderToString($jb2Oo$createElement(() => props.productCard({
|
|
869
883
|
display: display
|
|
870
|
-
})))
|
|
884
|
+
}))), "</div>")
|
|
871
885
|
};
|
|
872
886
|
return $cce08f18e2476cbf$export$32024253978abdc7({
|
|
873
887
|
component_props: {
|
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 = "3.0.
|
|
42
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "3.0.8";
|
|
43
43
|
const $0b7cd4fb39fc3502$export$8e769ad4338a911e = {
|
|
44
44
|
usedLocale: $2IzJs$solidjs.createSignal((0, $2IzJs$depictaiuilocales.defaultLocale)),
|
|
45
45
|
search_instances: new Map(),
|
|
@@ -88,6 +88,19 @@ function $b4d0d98857ed9934$export$f6e64e17bd69eeef({
|
|
|
88
88
|
// If someone only rendered a solid component on the client that *could* be hydrated (no childNodes) then we fall back to `render` to avoid solid complaining about not being able to hydrate or crashing because the result of generateHydrationScript hasn't run at all
|
|
89
89
|
// This can happen for HMR or when SSR capable components are only rendered on the client
|
|
90
90
|
const render_function = hydrate_function_when_ssr && wrapper_element.childNodes.length ? hydrate_function_when_ssr : (0, $2IzJs$solidjsweb.render);
|
|
91
|
+
// Our system of suppressing hydration warnings and SSR-ing seems to generally work (all the time also in our test storefronts)
|
|
92
|
+
// But sometimes in prod (see https://depictaiworkspace.slack.com/archives/C061PGT2N3A/p1702038855265339) react for some reason actually sets innerHTML = ""; on our wrapper
|
|
93
|
+
// Deleting all our elements. To prevent that we just patch innerHTML to not do anything when being set to a new value
|
|
94
|
+
if (hydrate_function_when_ssr && !Object.getOwnPropertyNames(wrapper_element).includes("innerHTML")) Object.defineProperty(wrapper_element, "innerHTML", {
|
|
95
|
+
configurable: false,
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get() {
|
|
98
|
+
return Object.getOwnPropertyDescriptor(Element.prototype, "innerHTML")?.get?.call(wrapper_element);
|
|
99
|
+
},
|
|
100
|
+
set() {
|
|
101
|
+
// Do nothing
|
|
102
|
+
}
|
|
103
|
+
});
|
|
91
104
|
const dispose = render_function(() => solid_component(store, set_portals), wrapper_element);
|
|
92
105
|
return dispose;
|
|
93
106
|
}, []);
|
|
@@ -849,11 +862,11 @@ function $c6b960f2a07285c8$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
849
862
|
product_card_template: display => {
|
|
850
863
|
if (0, $2IzJs$solidjsweb.isServer)
|
|
851
864
|
// This function can't be async on the server
|
|
852
|
-
// @ts-ignore
|
|
865
|
+
// @ts-ignore emulate the wrapper div that we need in prod here too for consistency
|
|
853
866
|
return {
|
|
854
|
-
t: $2IzJs$reactdomserver.renderToString($2IzJs$react.createElement(() => props.productCard({
|
|
867
|
+
t: `<div>${$2IzJs$reactdomserver.renderToString($2IzJs$react.createElement(() => props.productCard({
|
|
855
868
|
display: display
|
|
856
|
-
})))
|
|
869
|
+
})))}</div>`
|
|
857
870
|
};
|
|
858
871
|
return $6081519c185fcf70$export$32024253978abdc7({
|
|
859
872
|
component_props: {
|
package/latest/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, 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 = "3.0.
|
|
6
|
+
export const version = "3.0.8";
|
|
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 = "3.0.
|
|
18
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "3.0.8";
|
|
19
19
|
const $42858f023ef23dab$export$8e769ad4338a911e = {
|
|
20
20
|
usedLocale: $2GFvs$createSignal((0, $2GFvs$defaultLocale)),
|
|
21
21
|
search_instances: new Map(),
|
|
@@ -64,6 +64,19 @@ function $c83ba9ab79386687$export$f6e64e17bd69eeef({
|
|
|
64
64
|
// If someone only rendered a solid component on the client that *could* be hydrated (no childNodes) then we fall back to `render` to avoid solid complaining about not being able to hydrate or crashing because the result of generateHydrationScript hasn't run at all
|
|
65
65
|
// This can happen for HMR or when SSR capable components are only rendered on the client
|
|
66
66
|
const render_function = hydrate_function_when_ssr && wrapper_element.childNodes.length ? hydrate_function_when_ssr : (0, $2GFvs$render);
|
|
67
|
+
// Our system of suppressing hydration warnings and SSR-ing seems to generally work (all the time also in our test storefronts)
|
|
68
|
+
// But sometimes in prod (see https://depictaiworkspace.slack.com/archives/C061PGT2N3A/p1702038855265339) react for some reason actually sets innerHTML = ""; on our wrapper
|
|
69
|
+
// Deleting all our elements. To prevent that we just patch innerHTML to not do anything when being set to a new value
|
|
70
|
+
if (hydrate_function_when_ssr && !Object.getOwnPropertyNames(wrapper_element).includes("innerHTML")) Object.defineProperty(wrapper_element, "innerHTML", {
|
|
71
|
+
configurable: false,
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get() {
|
|
74
|
+
return Object.getOwnPropertyDescriptor(Element.prototype, "innerHTML")?.get?.call(wrapper_element);
|
|
75
|
+
},
|
|
76
|
+
set() {
|
|
77
|
+
// Do nothing
|
|
78
|
+
}
|
|
79
|
+
});
|
|
67
80
|
const dispose = render_function(() => solid_component(store, set_portals), wrapper_element);
|
|
68
81
|
return dispose;
|
|
69
82
|
}, []);
|
|
@@ -825,11 +838,11 @@ function $4d5c3f13a5ae62a7$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
825
838
|
product_card_template: display => {
|
|
826
839
|
if (0, $2GFvs$isServer)
|
|
827
840
|
// This function can't be async on the server
|
|
828
|
-
// @ts-ignore
|
|
841
|
+
// @ts-ignore emulate the wrapper div that we need in prod here too for consistency
|
|
829
842
|
return {
|
|
830
|
-
t: $2GFvs$renderToString($2GFvs$createElement(() => props.productCard({
|
|
843
|
+
t: `<div>${$2GFvs$renderToString($2GFvs$createElement(() => props.productCard({
|
|
831
844
|
display: display
|
|
832
|
-
})))
|
|
845
|
+
})))}</div>`
|
|
833
846
|
};
|
|
834
847
|
return $bcf84a32dc612a43$export$32024253978abdc7({
|
|
835
848
|
component_props: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/react-ui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "ES10/index.d.ts",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"@babel/runtime-corejs3": "latest",
|
|
138
138
|
"@depict-ai/dpc": "^2.0.2",
|
|
139
139
|
"@depict-ai/plp-styling": "^2.0.2",
|
|
140
|
-
"@depict-ai/ui": "^3.0.
|
|
140
|
+
"@depict-ai/ui": "^3.0.9",
|
|
141
141
|
"@depict-ai/utilishared": "^2.0.2",
|
|
142
142
|
"solid-js": "^1.8.1"
|
|
143
143
|
},
|
package/server/ES10/index.cjs
CHANGED
|
@@ -192,11 +192,11 @@ function $3b36cc844440a979$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
192
192
|
product_card_template: display => {
|
|
193
193
|
if (0, $aNCHr$solidjsweb.isServer)
|
|
194
194
|
// This function can't be async on the server
|
|
195
|
-
// @ts-ignore
|
|
195
|
+
// @ts-ignore emulate the wrapper div that we need in prod here too for consistency
|
|
196
196
|
return {
|
|
197
|
-
t: $aNCHr$reactdomserver.renderToString($aNCHr$react.createElement(() => props.productCard({
|
|
197
|
+
t: "<div>".concat($aNCHr$reactdomserver.renderToString($aNCHr$react.createElement(() => props.productCard({
|
|
198
198
|
display: display
|
|
199
|
-
})))
|
|
199
|
+
}))), "</div>")
|
|
200
200
|
};
|
|
201
201
|
return $3441d987b5ea85cb$export$32024253978abdc7({
|
|
202
202
|
component_props: {
|
|
@@ -233,7 +233,7 @@ function $3b36cc844440a979$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
233
233
|
}
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
-
const $efbdd2dab4314170$export$83d89fbfd8236492 = "3.0.
|
|
236
|
+
const $efbdd2dab4314170$export$83d89fbfd8236492 = "3.0.8";
|
|
237
237
|
function $202459d454907b31$export$9fac37a9c21c2f3b(props) {
|
|
238
238
|
return props.children;
|
|
239
239
|
}
|
package/server/ES10/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, 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 = "3.0.
|
|
6
|
+
export const version = "3.0.8";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
package/server/ES10/index.js
CHANGED
|
@@ -169,11 +169,11 @@ function $cd68097a7ee08669$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
169
169
|
product_card_template: display => {
|
|
170
170
|
if (0, $7h5e1$isServer)
|
|
171
171
|
// This function can't be async on the server
|
|
172
|
-
// @ts-ignore
|
|
172
|
+
// @ts-ignore emulate the wrapper div that we need in prod here too for consistency
|
|
173
173
|
return {
|
|
174
|
-
t: $7h5e1$renderToString1($7h5e1$createElement(() => props.productCard({
|
|
174
|
+
t: "<div>".concat($7h5e1$renderToString1($7h5e1$createElement(() => props.productCard({
|
|
175
175
|
display: display
|
|
176
|
-
})))
|
|
176
|
+
}))), "</div>")
|
|
177
177
|
};
|
|
178
178
|
return $cce08f18e2476cbf$export$32024253978abdc7({
|
|
179
179
|
component_props: {
|
|
@@ -210,7 +210,7 @@ function $cd68097a7ee08669$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
|
-
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "3.0.
|
|
213
|
+
const $9bd9bb8700ab2ada$export$83d89fbfd8236492 = "3.0.8";
|
|
214
214
|
function $5c4add0a8fe94894$export$9fac37a9c21c2f3b(props) {
|
|
215
215
|
return props.children;
|
|
216
216
|
}
|
package/server/latest/index.cjs
CHANGED
|
@@ -185,11 +185,11 @@ function $c6b960f2a07285c8$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
185
185
|
product_card_template: display => {
|
|
186
186
|
if (0, $7QqFM$solidjsweb.isServer)
|
|
187
187
|
// This function can't be async on the server
|
|
188
|
-
// @ts-ignore
|
|
188
|
+
// @ts-ignore emulate the wrapper div that we need in prod here too for consistency
|
|
189
189
|
return {
|
|
190
|
-
t: $7QqFM$reactdomserver.renderToString($7QqFM$react.createElement(() => props.productCard({
|
|
190
|
+
t: `<div>${$7QqFM$reactdomserver.renderToString($7QqFM$react.createElement(() => props.productCard({
|
|
191
191
|
display: display
|
|
192
|
-
})))
|
|
192
|
+
})))}</div>`
|
|
193
193
|
};
|
|
194
194
|
return $6081519c185fcf70$export$32024253978abdc7({
|
|
195
195
|
component_props: {
|
|
@@ -224,7 +224,7 @@ function $c6b960f2a07285c8$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
const $db7b67857900028b$export$83d89fbfd8236492 = "3.0.
|
|
227
|
+
const $db7b67857900028b$export$83d89fbfd8236492 = "3.0.8";
|
|
228
228
|
function $41e7e5d85b5e0d49$export$9fac37a9c21c2f3b(props) {
|
|
229
229
|
return props.children;
|
|
230
230
|
}
|
package/server/latest/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import React, { PropsWithChildren, FC, ReactNode, ReactPortal, ReactElement } fr
|
|
|
3
3
|
import { BaseCategoryProviderConfig, BaseProviderConfig, BaseSearchProviderConfig, ModernDisplayWithPageUrl, BaseProductListingConfig, BaseSearchPageConfig, BaseCategoryPageConfig, CategoryTitle, embedded_num_products, ListingQuery, 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 = "3.0.
|
|
6
|
+
export const version = "3.0.8";
|
|
7
7
|
interface UsePerformanceClientReturn {
|
|
8
8
|
dpc: DPC;
|
|
9
9
|
}
|
package/server/latest/index.js
CHANGED
|
@@ -162,11 +162,11 @@ function $4d5c3f13a5ae62a7$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
162
162
|
product_card_template: display => {
|
|
163
163
|
if (0, $eOXet$isServer)
|
|
164
164
|
// This function can't be async on the server
|
|
165
|
-
// @ts-ignore
|
|
165
|
+
// @ts-ignore emulate the wrapper div that we need in prod here too for consistency
|
|
166
166
|
return {
|
|
167
|
-
t: $eOXet$renderToString1($eOXet$createElement(() => props.productCard({
|
|
167
|
+
t: `<div>${$eOXet$renderToString1($eOXet$createElement(() => props.productCard({
|
|
168
168
|
display: display
|
|
169
|
-
})))
|
|
169
|
+
})))}</div>`
|
|
170
170
|
};
|
|
171
171
|
return $bcf84a32dc612a43$export$32024253978abdc7({
|
|
172
172
|
component_props: {
|
|
@@ -201,7 +201,7 @@ function $4d5c3f13a5ae62a7$export$e46079a2793e9ec7(props, set_portals) {
|
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
|
-
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "3.0.
|
|
204
|
+
const $c9c4d066f9a5b51b$export$83d89fbfd8236492 = "3.0.8";
|
|
205
205
|
function $2b1fdeb83610500f$export$9fac37a9c21c2f3b(props) {
|
|
206
206
|
return props.children;
|
|
207
207
|
}
|