@depict-ai/portal-components 2.7.36 → 2.8.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/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { SearchFilter } from "@depict-ai/types/api/SearchResponse";
|
|
|
4
4
|
import { Locale } from "@depict-ai/react-ui/locales/latest";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
7
|
-
export const version = "2.
|
|
7
|
+
export const version = "2.8.0";
|
|
8
8
|
type TextOptions = {
|
|
9
9
|
/** Enabled */
|
|
10
10
|
enabled: boolean;
|
package/dist/main.js
CHANGED
|
@@ -20,7 +20,7 @@ $parcel$export(module.exports, "ExpandingSection", () => $2214dc111b9e2866$expor
|
|
|
20
20
|
$parcel$export(module.exports, "ReactLookCard", () => $35bab9ff48bfe404$export$48787da2a5568bc);
|
|
21
21
|
$parcel$export(module.exports, "version", () => $0a017be3a74fcc94$export$83d89fbfd8236492);
|
|
22
22
|
/*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
|
|
23
|
-
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.
|
|
23
|
+
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.8.0";
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -235,7 +235,7 @@ function $3375ddd88f77967d$export$f11681c54c860912(display, info, configuredOpti
|
|
|
235
235
|
get children () {
|
|
236
236
|
return (0, $7jsgb$solidjsweb.createComponent)((0, $7jsgb$solidjs.Show), {
|
|
237
237
|
get when () {
|
|
238
|
-
return configuredOptions_().smart_labels;
|
|
238
|
+
return configuredOptions_().smart_labels.enabled;
|
|
239
239
|
},
|
|
240
240
|
get children () {
|
|
241
241
|
var _el$4 = $3375ddd88f77967d$var$_tmpl$4();
|
|
@@ -1138,7 +1138,6 @@ function $70cc6bd7e3f1dd4b$export$d1a48be4967fe67c(react_props) {
|
|
|
1138
1138
|
solid_component: (props_store)=>{
|
|
1139
1139
|
return (0, $3375ddd88f77967d$export$f11681c54c860912)(()=>props_store.display, {
|
|
1140
1140
|
set_on_index_change: ()=>{},
|
|
1141
|
-
depictCardsDataset: {},
|
|
1142
1141
|
formatPrice: (price)=>price && (0, $7jsgb$depictaiutilisharedlatest.standard_price_format)(price)
|
|
1143
1142
|
}, ()=>({
|
|
1144
1143
|
...props_store?.options || $70cc6bd7e3f1dd4b$export$5c9921af2948d16a,
|
|
@@ -1205,7 +1204,6 @@ function $9b4cfecb283dbb57$export$ef681ece395f74(props) {
|
|
|
1205
1204
|
product_card_template: (display, info)=>{
|
|
1206
1205
|
return (0, $3375ddd88f77967d$export$f11681c54c860912)(()=>display, info && {
|
|
1207
1206
|
...info,
|
|
1208
|
-
depictCardsDataset: {},
|
|
1209
1207
|
formatPrice: (price)=>price && (0, $7jsgb$depictaiutilisharedlatest.standard_price_format)(price)
|
|
1210
1208
|
}, ()=>props.productCardConfig || (0, $70cc6bd7e3f1dd4b$export$5c9921af2948d16a));
|
|
1211
1209
|
},
|
|
@@ -1253,7 +1251,6 @@ function $1113a95ded76fc38$var$SolidWrapper(props) {
|
|
|
1253
1251
|
product_card_template: (display, info)=>{
|
|
1254
1252
|
return (0, $3375ddd88f77967d$export$f11681c54c860912)(()=>display, info && {
|
|
1255
1253
|
...info,
|
|
1256
|
-
depictCardsDataset: {},
|
|
1257
1254
|
formatPrice: (price)=>price && (0, $7jsgb$depictaiutilisharedlatest.standard_price_format)(price)
|
|
1258
1255
|
}, ()=>props.productCardConfig || (0, $70cc6bd7e3f1dd4b$export$5c9921af2948d16a));
|
|
1259
1256
|
},
|
package/dist/module.js
CHANGED
|
@@ -7,7 +7,7 @@ import {createContext as $2MCgq$createContext, createMemo as $2MCgq$createMemo,
|
|
|
7
7
|
import {createPortal as $2MCgq$createPortal} from "react-dom";
|
|
8
8
|
|
|
9
9
|
/*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
|
|
10
|
-
const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.
|
|
10
|
+
const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.8.0";
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -222,7 +222,7 @@ function $29535f590238371c$export$f11681c54c860912(display, info, configuredOpti
|
|
|
222
222
|
get children () {
|
|
223
223
|
return (0, $2MCgq$createComponent)((0, $2MCgq$Show), {
|
|
224
224
|
get when () {
|
|
225
|
-
return configuredOptions_().smart_labels;
|
|
225
|
+
return configuredOptions_().smart_labels.enabled;
|
|
226
226
|
},
|
|
227
227
|
get children () {
|
|
228
228
|
var _el$4 = $29535f590238371c$var$_tmpl$4();
|
|
@@ -1125,7 +1125,6 @@ function $474e9d712b745d60$export$d1a48be4967fe67c(react_props) {
|
|
|
1125
1125
|
solid_component: (props_store)=>{
|
|
1126
1126
|
return (0, $29535f590238371c$export$f11681c54c860912)(()=>props_store.display, {
|
|
1127
1127
|
set_on_index_change: ()=>{},
|
|
1128
|
-
depictCardsDataset: {},
|
|
1129
1128
|
formatPrice: (price)=>price && (0, $2MCgq$standard_price_format)(price)
|
|
1130
1129
|
}, ()=>({
|
|
1131
1130
|
...props_store?.options || $474e9d712b745d60$export$5c9921af2948d16a,
|
|
@@ -1192,7 +1191,6 @@ function $8ade1943efc108c6$export$ef681ece395f74(props) {
|
|
|
1192
1191
|
product_card_template: (display, info)=>{
|
|
1193
1192
|
return (0, $29535f590238371c$export$f11681c54c860912)(()=>display, info && {
|
|
1194
1193
|
...info,
|
|
1195
|
-
depictCardsDataset: {},
|
|
1196
1194
|
formatPrice: (price)=>price && (0, $2MCgq$standard_price_format)(price)
|
|
1197
1195
|
}, ()=>props.productCardConfig || (0, $474e9d712b745d60$export$5c9921af2948d16a));
|
|
1198
1196
|
},
|
|
@@ -1240,7 +1238,6 @@ function $e3716493302f533c$var$SolidWrapper(props) {
|
|
|
1240
1238
|
product_card_template: (display, info)=>{
|
|
1241
1239
|
return (0, $29535f590238371c$export$f11681c54c860912)(()=>display, info && {
|
|
1242
1240
|
...info,
|
|
1243
|
-
depictCardsDataset: {},
|
|
1244
1241
|
formatPrice: (price)=>price && (0, $2MCgq$standard_price_format)(price)
|
|
1245
1242
|
}, ()=>props.productCardConfig || (0, $474e9d712b745d60$export$5c9921af2948d16a));
|
|
1246
1243
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/portal-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -102,11 +102,11 @@
|
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@babel/runtime": "latest",
|
|
104
104
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
105
|
-
"@depict-ai/plp-styling": "^4.
|
|
106
|
-
"@depict-ai/react-ui": "^4.
|
|
107
|
-
"@depict-ai/types": "^5.
|
|
108
|
-
"@depict-ai/ui": "^4.
|
|
109
|
-
"@depict-ai/utilishared": "^2.
|
|
105
|
+
"@depict-ai/plp-styling": "^4.5.0",
|
|
106
|
+
"@depict-ai/react-ui": "^4.9.0",
|
|
107
|
+
"@depict-ai/types": "^5.5.0",
|
|
108
|
+
"@depict-ai/ui": "^4.9.0",
|
|
109
|
+
"@depict-ai/utilishared": "^2.5.0",
|
|
110
110
|
"parcel": "^2.10.3",
|
|
111
111
|
"solid-js": "^1.8.16"
|
|
112
112
|
}
|
|
@@ -286,7 +286,7 @@ export function DefaultSolidProductCard(
|
|
|
286
286
|
/>
|
|
287
287
|
</LinkWrapped>
|
|
288
288
|
<Suspense>
|
|
289
|
-
<Show when={configuredOptions_().smart_labels}>
|
|
289
|
+
<Show when={configuredOptions_().smart_labels.enabled}>
|
|
290
290
|
<div class="d-badges">
|
|
291
291
|
{/* Other badges can be added here */}
|
|
292
292
|
<Show when={salePrice() && originalPrice() && salePrice() !== originalPrice()}>
|