@depict-ai/portal-components 2.6.4 → 2.6.6

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
@@ -2,7 +2,7 @@ import { SearchFilter } from "@depict-ai/types/api/SearchResponse";
2
2
  import { Locale } from "@depict-ai/react-ui/locales/latest";
3
3
  import { ReactNode } from "react";
4
4
  import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
5
- export const version = "2.6.4";
5
+ export const version = "2.6.6";
6
6
  export function ReactSelectedFilters(react_props: {
7
7
  availableFilters: SearchFilter[] | undefined;
8
8
  hidden?: boolean;
package/dist/main.js CHANGED
@@ -17,7 +17,7 @@ $parcel$export(module.exports, "ExpandingSection", () => $2214dc111b9e2866$expor
17
17
  $parcel$export(module.exports, "ReactLookCard", () => $35bab9ff48bfe404$export$48787da2a5568bc);
18
18
  $parcel$export(module.exports, "version", () => $0a017be3a74fcc94$export$83d89fbfd8236492);
19
19
  /*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
20
- const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.6.4";
20
+ const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.6.6";
21
21
 
22
22
 
23
23
 
@@ -195,28 +195,28 @@ function $2214dc111b9e2866$export$4ea53cd12ff17334({ summary: summary_children,
195
195
 
196
196
  function $35bab9ff48bfe404$export$48787da2a5568bc(react_props) {
197
197
  return (0, $d38f1fd3cc4cd6b2$export$f6e64e17bd69eeef)({
198
- solid_component: (props_store)=>{
199
- const animationDuration = 240;
200
- const signal = (0, $7jsgb$solidjs.createSignal)(new Set());
201
- const pseudoRouter = new (0, $7jsgb$depictaiuilatest.PseudoRouter)("hard_navigation");
202
- const renderCard = (0, $7jsgb$solidjs.createMemo)(()=>{
203
- return (0, $7jsgb$depictaiuilatest.LookCard)({
204
- display_: props_store.display_,
205
- animationDuration_: animationDuration,
206
- expandedLooksSignal_: signal,
207
- placeholderImageAspectRatio_: 0.75,
208
- priceFormatting_: ()=>({
209
- pre_: "",
210
- post_: "",
211
- decimal_places_delimiter_: ".",
212
- thousands_delimiter_: " ",
213
- places_after_comma_: 0
214
- }),
215
- pseudoRouter_: pseudoRouter
216
- });
217
- });
218
- return renderCard;
219
- },
198
+ solid_component: (props_store)=>(0, $7jsgb$depictaiuilatest.ListingProvider)({
199
+ // Wrap in ListingProvider so autoAdjustAspectRatio works as it should (I think)
200
+ get children () {
201
+ const animationDuration = 240;
202
+ const signal = (0, $7jsgb$solidjs.createSignal)(new Set());
203
+ const pseudoRouter = new (0, $7jsgb$depictaiuilatest.PseudoRouter)("hard_navigation");
204
+ return (0, $7jsgb$depictaiuilatest.LookCard)({
205
+ display_: ()=>props_store.display_,
206
+ animationDuration_: animationDuration,
207
+ expandedLooksSignal_: signal,
208
+ placeholderImageAspectRatio_: 0.75,
209
+ priceFormatting_: ()=>({
210
+ pre_: "",
211
+ post_: "",
212
+ decimal_places_delimiter_: ".",
213
+ thousands_delimiter_: " ",
214
+ places_after_comma_: 0
215
+ }),
216
+ pseudoRouter_: pseudoRouter
217
+ });
218
+ }
219
+ }),
220
220
  props: react_props,
221
221
  className: "depict",
222
222
  wrapper_style: {
package/dist/module.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import {add_to_version_info as $2MCgq$add_to_version_info} from "@depict-ai/utilishared/latest";
2
2
  import {createSignal as $2MCgq$createSignal, createMemo as $2MCgq$createMemo, untrack as $2MCgq$untrack} from "solid-js";
3
- import {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, PseudoRouter as $2MCgq$PseudoRouter, LookCard as $2MCgq$LookCard} from "@depict-ai/ui/latest";
3
+ import {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";
4
4
  import {render as $2MCgq$render, insert as $2MCgq$insert} from "solid-js/web";
5
5
  import {useRef as $2MCgq$useRef, useState as $2MCgq$useState, useEffect as $2MCgq$useEffect, createElement as $2MCgq$createElement, Fragment as $2MCgq$Fragment} from "react";
6
6
  import {createStore as $2MCgq$createStore, reconcile as $2MCgq$reconcile} from "solid-js/store";
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.6.4";
10
+ const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.6.6";
11
11
 
12
12
 
13
13
 
@@ -185,28 +185,28 @@ function $c79c5cb5e9424dd7$export$4ea53cd12ff17334({ summary: summary_children,
185
185
 
186
186
  function $8a700ff0722c56b3$export$48787da2a5568bc(react_props) {
187
187
  return (0, $0fe03f2fcd2418f8$export$f6e64e17bd69eeef)({
188
- solid_component: (props_store)=>{
189
- const animationDuration = 240;
190
- const signal = (0, $2MCgq$createSignal)(new Set());
191
- const pseudoRouter = new (0, $2MCgq$PseudoRouter)("hard_navigation");
192
- const renderCard = (0, $2MCgq$createMemo)(()=>{
193
- return (0, $2MCgq$LookCard)({
194
- display_: props_store.display_,
195
- animationDuration_: animationDuration,
196
- expandedLooksSignal_: signal,
197
- placeholderImageAspectRatio_: 0.75,
198
- priceFormatting_: ()=>({
199
- pre_: "",
200
- post_: "",
201
- decimal_places_delimiter_: ".",
202
- thousands_delimiter_: " ",
203
- places_after_comma_: 0
204
- }),
205
- pseudoRouter_: pseudoRouter
206
- });
207
- });
208
- return renderCard;
209
- },
188
+ solid_component: (props_store)=>(0, $2MCgq$ListingProvider)({
189
+ // Wrap in ListingProvider so autoAdjustAspectRatio works as it should (I think)
190
+ get children () {
191
+ const animationDuration = 240;
192
+ const signal = (0, $2MCgq$createSignal)(new Set());
193
+ const pseudoRouter = new (0, $2MCgq$PseudoRouter)("hard_navigation");
194
+ return (0, $2MCgq$LookCard)({
195
+ display_: ()=>props_store.display_,
196
+ animationDuration_: animationDuration,
197
+ expandedLooksSignal_: signal,
198
+ placeholderImageAspectRatio_: 0.75,
199
+ priceFormatting_: ()=>({
200
+ pre_: "",
201
+ post_: "",
202
+ decimal_places_delimiter_: ".",
203
+ thousands_delimiter_: " ",
204
+ places_after_comma_: 0
205
+ }),
206
+ pseudoRouter_: pseudoRouter
207
+ });
208
+ }
209
+ }),
210
210
  props: react_props,
211
211
  className: "depict",
212
212
  wrapper_style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@depict-ai/portal-components",
3
- "version": "2.6.4",
3
+ "version": "2.6.6",
4
4
  "packageManager": "yarn@3.2.2",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",
@@ -99,10 +99,10 @@
99
99
  "dependencies": {
100
100
  "@babel/runtime": "latest",
101
101
  "@babel/runtime-corejs3": "^7.22.6",
102
- "@depict-ai/plp-styling": "^4.4.0",
102
+ "@depict-ai/plp-styling": "^4.4.1",
103
103
  "@depict-ai/react-ui": "^4.6.2",
104
104
  "@depict-ai/types": "^5.4.0",
105
- "@depict-ai/ui": "^4.7.2",
105
+ "@depict-ai/ui": "^4.7.3",
106
106
  "@depict-ai/utilishared": "^2.4.0",
107
107
  "parcel": "^2.10.3",
108
108
  "solid-js": "^1.8.12"