@garagem-ai/site-sdk 0.4.12 → 0.4.14
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/README.md +29 -25
- package/dist/index.d.mts +8 -130
- package/dist/index.d.ts +8 -130
- package/dist/index.js +43 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +42 -17
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +28 -2
- package/dist/react.d.ts +28 -2
- package/dist/react.js +645 -109
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +649 -114
- package/dist/react.mjs.map +1 -1
- package/dist/{search-engine-B83s_fVd.d.mts → search-engine-1O4sKtKb.d.mts} +141 -1
- package/dist/{search-engine-B83s_fVd.d.ts → search-engine-1O4sKtKb.d.ts} +141 -1
- package/package.json +1 -1
- package/src/index.ts +7 -0
- package/src/listing-detail-fields.ts +59 -0
- package/src/listing-detail.ts +27 -9
- package/src/react/index.ts +5 -0
- package/src/react/listing-detail-fields.tsx +119 -0
- package/src/react/search-page.tsx +7 -0
- package/src/react/styles/search-chrome-css.generated.ts +1 -1
- package/src/react/types.ts +1 -0
- package/src/studio-contract.ts +8 -8
package/dist/react.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode, CSSProperties, ReactElement } from 'react';
|
|
2
|
-
import {
|
|
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 {
|
|
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 };
|