@garagem-ai/site-sdk 0.4.12 → 0.4.13

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/react.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, CSSProperties, ReactElement } from 'react';
2
- import { t as Listing, v as ListingCardModel, e as SearchUi, l as SearchPathFilters, A as AppliedSearchQuery, y as LocationNameTables, E as SearchUiFilter } from './search-engine-B83s_fVd.mjs';
2
+ import { w as Listing, E as ListingCardModel, e as SearchUi, j as SearchPathFilters, A as AppliedSearchQuery, W as LocationNameTables, I as ListingDetailFieldsSource, o as AmenityLabelDictionary, _ as SearchUiFilter } from './search-engine-1O4sKtKb.mjs';
3
3
 
4
4
  type SearchPageVariant = "toolbar" | "dialog" | "sidebar";
5
5
  type SearchPageClassNames = {
@@ -23,6 +23,7 @@ type SearchPageClassNames = {
23
23
  pagination?: string;
24
24
  applyBar?: string;
25
25
  skeleton?: string;
26
+ empty?: string;
26
27
  checkbox?: string;
27
28
  };
28
29
  type SearchPageIcons = {
@@ -88,6 +89,31 @@ type PublicSearchState = {
88
89
 
89
90
  declare function ListingCard({ listing, href, className, classNames, slots, style, }: ListingCardProps): ReactElement;
90
91
 
92
+ type ListingDetailFieldsClassNames = {
93
+ root?: string;
94
+ facts?: string;
95
+ fact?: string;
96
+ values?: string;
97
+ value?: string;
98
+ amenityGroup?: string;
99
+ amenityTitle?: string;
100
+ amenityList?: string;
101
+ amenityLabel?: string;
102
+ };
103
+ type ListingDetailFieldsProps = {
104
+ listing: ListingDetailFieldsSource;
105
+ dictionary?: AmenityLabelDictionary | null;
106
+ className?: string;
107
+ classNames?: ListingDetailFieldsClassNames;
108
+ style?: CSSProperties;
109
+ };
110
+ /**
111
+ * Renders listing facts, values, and amenities. Omits empty rows so JSX
112
+ * never prints `undefined`. Theme via `data-slot` / classNames — do not
113
+ * reimplement these blocks in generated pages.
114
+ */
115
+ declare function ListingDetailFields({ listing, dictionary, className, classNames, style, }: ListingDetailFieldsProps): ReactElement | null;
116
+
91
117
  type SearchPageProps = {
92
118
  siteId: SiteIdInput;
93
119
  baseUrl?: string;
@@ -163,4 +189,4 @@ declare function SearchPageFallback({ className, as: Root, }: {
163
189
 
164
190
  declare function usePublicSearch(options: UsePublicSearchOptions): PublicSearchState;
165
191
 
166
- export { FilterPanel, ListingCard, type ListingCardClassNames, type ListingCardProps, type ListingCardSlots, type PublicSearchState, ResultsSkeleton, SearchChromeStyles, SearchPage, type SearchPageClassNames, SearchPageFallback, type SearchPageIcons, type SearchPageProps, type SearchPageVariant, SearchPagination, SearchQueryForm, SearchSortSelect, type SiteIdInput, type UsePublicSearchOptions, rangeDraftFromPath, usePublicSearch };
192
+ export { FilterPanel, ListingCard, type ListingCardClassNames, type ListingCardProps, type ListingCardSlots, ListingDetailFields, type ListingDetailFieldsClassNames, type ListingDetailFieldsProps, type PublicSearchState, ResultsSkeleton, SearchChromeStyles, SearchPage, type SearchPageClassNames, SearchPageFallback, type SearchPageIcons, type SearchPageProps, type SearchPageVariant, SearchPagination, SearchQueryForm, SearchSortSelect, type SiteIdInput, type UsePublicSearchOptions, rangeDraftFromPath, usePublicSearch };
package/dist/react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, CSSProperties, ReactElement } from 'react';
2
- import { t as Listing, v as ListingCardModel, e as SearchUi, l as SearchPathFilters, A as AppliedSearchQuery, y as LocationNameTables, E as SearchUiFilter } from './search-engine-B83s_fVd.js';
2
+ import { w as Listing, E as ListingCardModel, e as SearchUi, j as SearchPathFilters, A as AppliedSearchQuery, W as LocationNameTables, I as ListingDetailFieldsSource, o as AmenityLabelDictionary, _ as SearchUiFilter } from './search-engine-1O4sKtKb.js';
3
3
 
4
4
  type SearchPageVariant = "toolbar" | "dialog" | "sidebar";
5
5
  type SearchPageClassNames = {
@@ -23,6 +23,7 @@ type SearchPageClassNames = {
23
23
  pagination?: string;
24
24
  applyBar?: string;
25
25
  skeleton?: string;
26
+ empty?: string;
26
27
  checkbox?: string;
27
28
  };
28
29
  type SearchPageIcons = {
@@ -88,6 +89,31 @@ type PublicSearchState = {
88
89
 
89
90
  declare function ListingCard({ listing, href, className, classNames, slots, style, }: ListingCardProps): ReactElement;
90
91
 
92
+ type ListingDetailFieldsClassNames = {
93
+ root?: string;
94
+ facts?: string;
95
+ fact?: string;
96
+ values?: string;
97
+ value?: string;
98
+ amenityGroup?: string;
99
+ amenityTitle?: string;
100
+ amenityList?: string;
101
+ amenityLabel?: string;
102
+ };
103
+ type ListingDetailFieldsProps = {
104
+ listing: ListingDetailFieldsSource;
105
+ dictionary?: AmenityLabelDictionary | null;
106
+ className?: string;
107
+ classNames?: ListingDetailFieldsClassNames;
108
+ style?: CSSProperties;
109
+ };
110
+ /**
111
+ * Renders listing facts, values, and amenities. Omits empty rows so JSX
112
+ * never prints `undefined`. Theme via `data-slot` / classNames — do not
113
+ * reimplement these blocks in generated pages.
114
+ */
115
+ declare function ListingDetailFields({ listing, dictionary, className, classNames, style, }: ListingDetailFieldsProps): ReactElement | null;
116
+
91
117
  type SearchPageProps = {
92
118
  siteId: SiteIdInput;
93
119
  baseUrl?: string;
@@ -163,4 +189,4 @@ declare function SearchPageFallback({ className, as: Root, }: {
163
189
 
164
190
  declare function usePublicSearch(options: UsePublicSearchOptions): PublicSearchState;
165
191
 
166
- export { FilterPanel, ListingCard, type ListingCardClassNames, type ListingCardProps, type ListingCardSlots, type PublicSearchState, ResultsSkeleton, SearchChromeStyles, SearchPage, type SearchPageClassNames, SearchPageFallback, type SearchPageIcons, type SearchPageProps, type SearchPageVariant, SearchPagination, SearchQueryForm, SearchSortSelect, type SiteIdInput, type UsePublicSearchOptions, rangeDraftFromPath, usePublicSearch };
192
+ export { FilterPanel, ListingCard, type ListingCardClassNames, type ListingCardProps, type ListingCardSlots, ListingDetailFields, type ListingDetailFieldsClassNames, type ListingDetailFieldsProps, type PublicSearchState, ResultsSkeleton, SearchChromeStyles, SearchPage, type SearchPageClassNames, SearchPageFallback, type SearchPageIcons, type SearchPageProps, type SearchPageVariant, SearchPagination, SearchQueryForm, SearchSortSelect, type SiteIdInput, type UsePublicSearchOptions, rangeDraftFromPath, usePublicSearch };