@depict-ai/portal-components 2.7.21 → 2.7.23
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 +7 -5
- package/dist/main.js +12 -10
- package/dist/module.js +6 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { ModernDisplayWithPageUrl } from "@depict-ai/ui/latest";
|
|
2
|
-
import { ModernDisplay } from "@depict-ai/utilishared";
|
|
3
|
-
import { BaseProductListingConfig } from "@depict-ai/ui";
|
|
1
|
+
import { ModernDisplayWithPageUrl, BaseProductListingConfig } from "@depict-ai/ui/latest";
|
|
2
|
+
import { ModernDisplay } from "@depict-ai/utilishared/latest";
|
|
4
3
|
import { SearchFilter } from "@depict-ai/types/api/SearchResponse";
|
|
5
4
|
import { Locale } from "@depict-ai/react-ui/locales/latest";
|
|
6
5
|
import { ReactNode } from "react";
|
|
7
6
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
8
|
-
export const version = "2.7.
|
|
7
|
+
export const version = "2.7.23";
|
|
9
8
|
type TextOptions = {
|
|
10
9
|
/** Enabled */
|
|
11
10
|
enabled: boolean;
|
|
@@ -78,12 +77,15 @@ interface PortalRecommendationGridConfig<T extends ModernDisplay> extends Portal
|
|
|
78
77
|
*/
|
|
79
78
|
export function PortalRecsGrid<T extends ModernDisplay>(props: Parameters<typeof SolidWrapper<T>>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
80
79
|
declare function SolidWrapper<T extends ModernDisplay>(props: PortalRecommendationGridConfig<T>): HTMLDivElement;
|
|
80
|
+
interface PortalRecsSliderConfig<T extends ModernDisplay> extends PortalRecsConfig<T> {
|
|
81
|
+
showSliderArrow: boolean;
|
|
82
|
+
}
|
|
81
83
|
/**
|
|
82
84
|
* Copy-pasted RecommendationGrid from react-ui that's hardcoded to render the default product card
|
|
83
85
|
* By not wrapping the default product card in a react component again we get working placeholder (react's rendering delay otherwise makes them not show sometimes) and working <ListingContext> and therefore videos, correctly dosed sizes. etc
|
|
84
86
|
*/
|
|
85
87
|
export function PortalRecsSlider<T extends ModernDisplay>(props: Parameters<typeof _SolidWrapper1<T>>[0]): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
86
|
-
declare function _SolidWrapper1<T extends ModernDisplay>(props:
|
|
88
|
+
declare function _SolidWrapper1<T extends ModernDisplay>(props: PortalRecsSliderConfig<T>): HTMLDivElement;
|
|
87
89
|
export function ReactSelectedFilters(react_props: {
|
|
88
90
|
availableFilters: SearchFilter[] | undefined;
|
|
89
91
|
hidden?: boolean;
|
package/dist/main.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
var $7jsgb$depictaiutilisharedlatest = require("@depict-ai/utilishared/latest");
|
|
2
|
-
var $7jsgb$
|
|
2
|
+
var $7jsgb$depictaiuilatest = require("@depict-ai/ui/latest");
|
|
3
3
|
var $7jsgb$solidjsweb = require("solid-js/web");
|
|
4
4
|
var $7jsgb$react = require("react");
|
|
5
5
|
var $7jsgb$solidjsstore = require("solid-js/store");
|
|
6
|
-
var $7jsgb$depictaiuilatest = require("@depict-ai/ui/latest");
|
|
7
6
|
var $7jsgb$solidjs = require("solid-js");
|
|
8
7
|
var $7jsgb$reactdom = require("react-dom");
|
|
9
8
|
|
|
@@ -21,7 +20,8 @@ $parcel$export(module.exports, "ExpandingSection", () => $2214dc111b9e2866$expor
|
|
|
21
20
|
$parcel$export(module.exports, "ReactLookCard", () => $35bab9ff48bfe404$export$48787da2a5568bc);
|
|
22
21
|
$parcel$export(module.exports, "version", () => $0a017be3a74fcc94$export$83d89fbfd8236492);
|
|
23
22
|
/*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
|
|
24
|
-
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.7.
|
|
23
|
+
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.7.23";
|
|
24
|
+
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -1021,7 +1021,6 @@ function $3375ddd88f77967d$var$InComponentOrDiv(props) {
|
|
|
1021
1021
|
|
|
1022
1022
|
|
|
1023
1023
|
|
|
1024
|
-
|
|
1025
1024
|
function $70cc6bd7e3f1dd4b$export$d1a48be4967fe67c(react_props) {
|
|
1026
1025
|
return (0, $d38f1fd3cc4cd6b2$export$f6e64e17bd69eeef)({
|
|
1027
1026
|
solid_component: (props_store)=>{
|
|
@@ -1084,7 +1083,7 @@ function $9b4cfecb283dbb57$export$d20a7e68f6a71456(props) {
|
|
|
1084
1083
|
});
|
|
1085
1084
|
}
|
|
1086
1085
|
function $9b4cfecb283dbb57$export$ef681ece395f74(props) {
|
|
1087
|
-
return (0, $7jsgb$
|
|
1086
|
+
return (0, $7jsgb$depictaiuilatest.RecommendationGrid)({
|
|
1088
1087
|
get recommendations () {
|
|
1089
1088
|
return props.recommendations;
|
|
1090
1089
|
},
|
|
@@ -1096,10 +1095,10 @@ function $9b4cfecb283dbb57$export$ef681ece395f74(props) {
|
|
|
1096
1095
|
}, ()=>props.productCardConfig || (0, $70cc6bd7e3f1dd4b$export$5c9921af2948d16a));
|
|
1097
1096
|
},
|
|
1098
1097
|
get cols_at_size () {
|
|
1099
|
-
return props.columnsAtSize || (0, $7jsgb$
|
|
1098
|
+
return props.columnsAtSize || (0, $7jsgb$depictaiuilatest.defaultColsAtSize);
|
|
1100
1099
|
},
|
|
1101
1100
|
get grid_spacing () {
|
|
1102
|
-
return props.gridSpacing ?? (0, $7jsgb$
|
|
1101
|
+
return props.gridSpacing ?? (0, $7jsgb$depictaiuilatest.defaultGridSpacing);
|
|
1103
1102
|
},
|
|
1104
1103
|
get max_rows () {
|
|
1105
1104
|
return props.maxRows;
|
|
@@ -1132,7 +1131,7 @@ function $1113a95ded76fc38$export$a640309a759938e9(props) {
|
|
|
1132
1131
|
});
|
|
1133
1132
|
}
|
|
1134
1133
|
function $1113a95ded76fc38$var$SolidWrapper(props) {
|
|
1135
|
-
return (0, $7jsgb$
|
|
1134
|
+
return (0, $7jsgb$depictaiuilatest.RecommendationSlider)({
|
|
1136
1135
|
get recommendations () {
|
|
1137
1136
|
return props.recommendations;
|
|
1138
1137
|
},
|
|
@@ -1144,13 +1143,16 @@ function $1113a95ded76fc38$var$SolidWrapper(props) {
|
|
|
1144
1143
|
}, ()=>props.productCardConfig || (0, $70cc6bd7e3f1dd4b$export$5c9921af2948d16a));
|
|
1145
1144
|
},
|
|
1146
1145
|
get cols_at_size () {
|
|
1147
|
-
return props.columnsAtSize || (0, $7jsgb$
|
|
1146
|
+
return props.columnsAtSize || (0, $7jsgb$depictaiuilatest.defaultColsAtSize);
|
|
1148
1147
|
},
|
|
1149
1148
|
get grid_spacing () {
|
|
1150
|
-
return props.gridSpacing ?? (0, $7jsgb$
|
|
1149
|
+
return props.gridSpacing ?? (0, $7jsgb$depictaiuilatest.defaultGridSpacing);
|
|
1151
1150
|
},
|
|
1152
1151
|
get title () {
|
|
1153
1152
|
return props.title;
|
|
1153
|
+
},
|
|
1154
|
+
get showSliderArrow_ () {
|
|
1155
|
+
return props.showSliderArrow;
|
|
1154
1156
|
}
|
|
1155
1157
|
});
|
|
1156
1158
|
}
|
package/dist/module.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {add_to_version_info as $2MCgq$add_to_version_info, standard_price_format as $2MCgq$standard_price_format, catchify as $2MCgq$catchify, dlog as $2MCgq$dlog, dwarn as $2MCgq$dwarn} from "@depict-ai/utilishared/latest";
|
|
2
|
-
import {RecommendationGrid as $2MCgq$RecommendationGrid, defaultColsAtSize as $2MCgq$defaultColsAtSize, defaultGridSpacing as $2MCgq$defaultGridSpacing, RecommendationSlider as $2MCgq$RecommendationSlider} from "@depict-ai/ui";
|
|
2
|
+
import {RecommendationGrid as $2MCgq$RecommendationGrid, defaultColsAtSize as $2MCgq$defaultColsAtSize, defaultGridSpacing as $2MCgq$defaultGridSpacing, media_query_to_accessor as $2MCgq$media_query_to_accessor, TextPlaceholder as $2MCgq$TextPlaceholder, useListing as $2MCgq$useListing, shopifyContainedImageContextSymbol as $2MCgq$shopifyContainedImageContextSymbol, useSlidableInformation as $2MCgq$useSlidableInformation, SlidableItems as $2MCgq$SlidableItems, ImagePlaceholder as $2MCgq$ImagePlaceholder, ImageContainer as $2MCgq$ImageContainer, ShopifyContainedImage as $2MCgq$ShopifyContainedImage, useVisibilityState as $2MCgq$useVisibilityState, useProductCardIndex as $2MCgq$useProductCardIndex, useProductCardIsVisible as $2MCgq$useProductCardIsVisible, RecommendationSlider as $2MCgq$RecommendationSlider, accessor_of_object_to_object_with_accessor_values as $2MCgq$accessor_of_object_to_object_with_accessor_values, create_modified_filters as $2MCgq$create_modified_filters, SelectedFilters as $2MCgq$SelectedFilters, FilterBody as $2MCgq$FilterBody, ExpandingDetails as $2MCgq$ExpandingDetails, ListingProvider as $2MCgq$ListingProvider, PseudoRouter as $2MCgq$PseudoRouter, LookCard as $2MCgq$LookCard} from "@depict-ai/ui/latest";
|
|
3
3
|
import {render as $2MCgq$render, template as $2MCgq$template, createComponent as $2MCgq$createComponent, addEventListener as $2MCgq$addEventListener, use as $2MCgq$use, insert as $2MCgq$insert, effect as $2MCgq$effect, className as $2MCgq$className, setAttribute as $2MCgq$setAttribute, memo as $2MCgq$memo, style as $2MCgq$style, classList as $2MCgq$classList, spread as $2MCgq$spread, mergeProps as $2MCgq$mergeProps, delegateEvents as $2MCgq$delegateEvents} from "solid-js/web";
|
|
4
4
|
import {useRef as $2MCgq$useRef, useState as $2MCgq$useState, useEffect as $2MCgq$useEffect, createElement as $2MCgq$createElement, Fragment as $2MCgq$Fragment} from "react";
|
|
5
5
|
import {createStore as $2MCgq$createStore, reconcile as $2MCgq$reconcile} from "solid-js/store";
|
|
6
|
-
import {media_query_to_accessor as $2MCgq$media_query_to_accessor, TextPlaceholder as $2MCgq$TextPlaceholder, useListing as $2MCgq$useListing, shopifyContainedImageContextSymbol as $2MCgq$shopifyContainedImageContextSymbol, useSlidableInformation as $2MCgq$useSlidableInformation, SlidableItems as $2MCgq$SlidableItems, ImagePlaceholder as $2MCgq$ImagePlaceholder, ImageContainer as $2MCgq$ImageContainer, ShopifyContainedImage as $2MCgq$ShopifyContainedImage, useVisibilityState as $2MCgq$useVisibilityState, useProductCardIndex as $2MCgq$useProductCardIndex, useProductCardIsVisible as $2MCgq$useProductCardIsVisible, accessor_of_object_to_object_with_accessor_values as $2MCgq$accessor_of_object_to_object_with_accessor_values, create_modified_filters as $2MCgq$create_modified_filters, SelectedFilters as $2MCgq$SelectedFilters, FilterBody as $2MCgq$FilterBody, ExpandingDetails as $2MCgq$ExpandingDetails, ListingProvider as $2MCgq$ListingProvider, PseudoRouter as $2MCgq$PseudoRouter, LookCard as $2MCgq$LookCard} from "@depict-ai/ui/latest";
|
|
7
6
|
import {createContext as $2MCgq$createContext, createMemo as $2MCgq$createMemo, createSignal as $2MCgq$createSignal, untrack as $2MCgq$untrack, createResource as $2MCgq$createResource, Suspense as $2MCgq$Suspense, createEffect as $2MCgq$createEffect, children as $2MCgq$children, Show as $2MCgq$Show, onCleanup as $2MCgq$onCleanup, For as $2MCgq$For, createRenderEffect as $2MCgq$createRenderEffect, on as $2MCgq$on, useContext as $2MCgq$useContext} from "solid-js";
|
|
8
7
|
import {createPortal as $2MCgq$createPortal} from "react-dom";
|
|
9
8
|
|
|
10
9
|
/*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
|
|
11
|
-
const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.7.
|
|
10
|
+
const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.7.23";
|
|
11
|
+
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -1008,7 +1008,6 @@ function $29535f590238371c$var$InComponentOrDiv(props) {
|
|
|
1008
1008
|
|
|
1009
1009
|
|
|
1010
1010
|
|
|
1011
|
-
|
|
1012
1011
|
function $474e9d712b745d60$export$d1a48be4967fe67c(react_props) {
|
|
1013
1012
|
return (0, $0fe03f2fcd2418f8$export$f6e64e17bd69eeef)({
|
|
1014
1013
|
solid_component: (props_store)=>{
|
|
@@ -1138,6 +1137,9 @@ function $e3716493302f533c$var$SolidWrapper(props) {
|
|
|
1138
1137
|
},
|
|
1139
1138
|
get title () {
|
|
1140
1139
|
return props.title;
|
|
1140
|
+
},
|
|
1141
|
+
get showSliderArrow_ () {
|
|
1142
|
+
return props.showSliderArrow;
|
|
1141
1143
|
}
|
|
1142
1144
|
});
|
|
1143
1145
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/portal-components",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.23",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@depict-ai/plp-styling": "^4.4.18",
|
|
105
105
|
"@depict-ai/react-ui": "^4.8.6",
|
|
106
106
|
"@depict-ai/types": "^5.4.4",
|
|
107
|
-
"@depict-ai/ui": "^4.8.
|
|
107
|
+
"@depict-ai/ui": "^4.8.17",
|
|
108
108
|
"@depict-ai/utilishared": "^2.4.5",
|
|
109
109
|
"parcel": "^2.10.3",
|
|
110
110
|
"solid-js": "^1.8.16"
|