@garagem-ai/site-sdk 0.5.2 → 0.5.3

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,30 +1,5 @@
1
- import { ReactNode, CSSProperties, ReactElement } from 'react';
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 } from './search-engine-4ocM0UPk.mjs';
1
+ import { e as SearchUi, n as Listing, o as SearchPathFilters, A as AppliedSearchQuery, x as LocationNameTables } from './search-engine-CkbO77G8.mjs';
3
2
 
4
- type ListingCardClassNames = {
5
- root?: string;
6
- media?: string;
7
- badge?: string;
8
- body?: string;
9
- price?: string;
10
- title?: string;
11
- location?: string;
12
- features?: string;
13
- cta?: string;
14
- };
15
- type ListingCardSlots = {
16
- media?: ReactNode;
17
- badge?: ReactNode;
18
- cta?: ReactNode;
19
- };
20
- type ListingCardProps = {
21
- listing: Listing | ListingCardModel;
22
- href?: string;
23
- className?: string;
24
- classNames?: ListingCardClassNames;
25
- slots?: ListingCardSlots;
26
- style?: CSSProperties;
27
- };
28
3
  type SiteIdInput = string | Promise<string> | (() => string | Promise<string>);
29
4
  type UsePublicSearchOptions = {
30
5
  siteId: SiteIdInput;
@@ -58,39 +33,6 @@ type PublicSearchState = {
58
33
  locationNames: LocationNameTables | null;
59
34
  };
60
35
 
61
- declare function ListingCard({ listing, href, className, classNames, slots, style, }: ListingCardProps): ReactElement;
62
-
63
- type ListingDetailFieldsClassNames = {
64
- root?: string;
65
- facts?: string;
66
- fact?: string;
67
- values?: string;
68
- value?: string;
69
- amenityGroup?: string;
70
- amenityTitle?: string;
71
- amenityList?: string;
72
- amenityLabel?: string;
73
- };
74
- type ListingDetailFieldsProps = {
75
- listing: ListingDetailFieldsSource;
76
- dictionary?: AmenityLabelDictionary | null;
77
- className?: string;
78
- classNames?: ListingDetailFieldsClassNames;
79
- style?: CSSProperties;
80
- };
81
- /**
82
- * Renders listing facts, values, and amenities. Omits empty rows so JSX
83
- * never prints `undefined`. Theme via `data-slot` / classNames — do not
84
- * reimplement these blocks in generated pages.
85
- */
86
- declare function ListingDetailFields({ listing, dictionary, className, classNames, style, }: ListingDetailFieldsProps): ReactElement | null;
87
-
88
- declare function SearchChromeStyles(): ReactElement | null;
89
-
90
- declare function ResultsSkeleton({ className, }: {
91
- className?: string;
92
- }): ReactElement;
93
-
94
36
  declare function usePublicSearch(options: UsePublicSearchOptions): PublicSearchState;
95
37
 
96
- export { ListingCard, type ListingCardClassNames, type ListingCardProps, type ListingCardSlots, ListingDetailFields, type ListingDetailFieldsClassNames, type ListingDetailFieldsProps, type PublicSearchState, ResultsSkeleton, SearchChromeStyles, type SiteIdInput, type UsePublicSearchOptions, usePublicSearch };
38
+ export { type PublicSearchState, type SiteIdInput, type UsePublicSearchOptions, usePublicSearch };
package/dist/react.d.ts CHANGED
@@ -1,30 +1,5 @@
1
- import { ReactNode, CSSProperties, ReactElement } from 'react';
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 } from './search-engine-4ocM0UPk.js';
1
+ import { e as SearchUi, n as Listing, o as SearchPathFilters, A as AppliedSearchQuery, x as LocationNameTables } from './search-engine-CkbO77G8.js';
3
2
 
4
- type ListingCardClassNames = {
5
- root?: string;
6
- media?: string;
7
- badge?: string;
8
- body?: string;
9
- price?: string;
10
- title?: string;
11
- location?: string;
12
- features?: string;
13
- cta?: string;
14
- };
15
- type ListingCardSlots = {
16
- media?: ReactNode;
17
- badge?: ReactNode;
18
- cta?: ReactNode;
19
- };
20
- type ListingCardProps = {
21
- listing: Listing | ListingCardModel;
22
- href?: string;
23
- className?: string;
24
- classNames?: ListingCardClassNames;
25
- slots?: ListingCardSlots;
26
- style?: CSSProperties;
27
- };
28
3
  type SiteIdInput = string | Promise<string> | (() => string | Promise<string>);
29
4
  type UsePublicSearchOptions = {
30
5
  siteId: SiteIdInput;
@@ -58,39 +33,6 @@ type PublicSearchState = {
58
33
  locationNames: LocationNameTables | null;
59
34
  };
60
35
 
61
- declare function ListingCard({ listing, href, className, classNames, slots, style, }: ListingCardProps): ReactElement;
62
-
63
- type ListingDetailFieldsClassNames = {
64
- root?: string;
65
- facts?: string;
66
- fact?: string;
67
- values?: string;
68
- value?: string;
69
- amenityGroup?: string;
70
- amenityTitle?: string;
71
- amenityList?: string;
72
- amenityLabel?: string;
73
- };
74
- type ListingDetailFieldsProps = {
75
- listing: ListingDetailFieldsSource;
76
- dictionary?: AmenityLabelDictionary | null;
77
- className?: string;
78
- classNames?: ListingDetailFieldsClassNames;
79
- style?: CSSProperties;
80
- };
81
- /**
82
- * Renders listing facts, values, and amenities. Omits empty rows so JSX
83
- * never prints `undefined`. Theme via `data-slot` / classNames — do not
84
- * reimplement these blocks in generated pages.
85
- */
86
- declare function ListingDetailFields({ listing, dictionary, className, classNames, style, }: ListingDetailFieldsProps): ReactElement | null;
87
-
88
- declare function SearchChromeStyles(): ReactElement | null;
89
-
90
- declare function ResultsSkeleton({ className, }: {
91
- className?: string;
92
- }): ReactElement;
93
-
94
36
  declare function usePublicSearch(options: UsePublicSearchOptions): PublicSearchState;
95
37
 
96
- export { ListingCard, type ListingCardClassNames, type ListingCardProps, type ListingCardSlots, ListingDetailFields, type ListingDetailFieldsClassNames, type ListingDetailFieldsProps, type PublicSearchState, ResultsSkeleton, SearchChromeStyles, type SiteIdInput, type UsePublicSearchOptions, usePublicSearch };
38
+ export { type PublicSearchState, type SiteIdInput, type UsePublicSearchOptions, usePublicSearch };