@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/README.md +16 -25
- package/dist/index.d.mts +202 -28
- package/dist/index.d.ts +202 -28
- package/dist/index.js +41 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +40 -42
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +2 -60
- package/dist/react.d.ts +2 -60
- package/dist/react.js +150 -862
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +122 -820
- package/dist/react.mjs.map +1 -1
- package/dist/{search-engine-4ocM0UPk.d.mts → search-engine-CkbO77G8.d.mts} +11 -181
- package/dist/{search-engine-4ocM0UPk.d.ts → search-engine-CkbO77G8.d.ts} +11 -181
- package/package.json +4 -9
- package/src/amenity-labels.ts +9 -2
- package/src/fetchers.ts +2 -1
- package/src/index.ts +1 -2
- package/src/internal/url.ts +1 -0
- package/src/listing-detail.ts +2 -1
- package/src/presentation.ts +1 -24
- package/src/react/index.ts +0 -11
- package/src/react/staged-filters-mirror.ts +38 -0
- package/src/react/types.ts +0 -30
- package/src/react/use-public-search.ts +30 -10
- package/src/search-engine.ts +3 -0
- package/src/studio-contract.ts +35 -20
- package/src/types.ts +10 -0
- package/src/react/cn.ts +0 -3
- package/src/react/listing-card.tsx +0 -98
- package/src/react/listing-detail-fields.tsx +0 -119
- package/src/react/search-chrome.tsx +0 -29
- package/src/react/search.css +0 -214
- package/src/react/styles/index.ts +0 -1
- package/src/react/styles/search-chrome-css.generated.ts +0 -5
- package/src/react/styles/search-chrome-styles.tsx +0 -31
package/README.md
CHANGED
|
@@ -70,7 +70,7 @@ raw escape hatch when you need full control.
|
|
|
70
70
|
| `submitContactLead({ siteId, listingId, … })` | POST a contact lead (no date/time) |
|
|
71
71
|
| `slotsForDate` / `normalizeVisitDate` / `expandVisitSchedule` | Pure schedule helpers (`America/Sao_Paulo`, default Mon–Fri 06:00–22:00) |
|
|
72
72
|
| `listingDetailModel(listing)` | Listing-detail blocks: breadcrumb, location + Maps href, `description` string + toggle label, video/tour overlays. Studio pages map `facts` / `values` via `.label` / `.text` leaves. |
|
|
73
|
-
| `listingDetailFieldsModel(listing, dictionary?)` | Facts, values, and amenity groups that are safe to render: every row has a real label + text; missing condo/IPTU/empty groups are omitted.
|
|
73
|
+
| `listingDetailFieldsModel(listing, dictionary?)` | Facts, values, and amenity groups that are safe to render: every row has a real label + text; missing condo/IPTU/empty groups are omitted. |
|
|
74
74
|
| `listingAmenityGroups(listing, dictionary?)` | Unit / building amenity labels (`Comodidades`, `Comodidades do condomínio`). Reads `propertyFeatures` + `buildingAmenities` (works when `building` is null). Tenant `getSearchUi().dictionary` first, then the SDK fallback. Studio pages call this helper directly. |
|
|
75
75
|
| `resolvePublicSiteId({ host?, fallback? })` | Preview uses `fallback` (`GARAGEM_SITE_ID`); live hosts resolve via `getSite({ domain })` |
|
|
76
76
|
|
|
@@ -89,7 +89,9 @@ raw escape hatch when you need full control.
|
|
|
89
89
|
|
|
90
90
|
All fetchers accept:
|
|
91
91
|
|
|
92
|
-
- `baseUrl` —
|
|
92
|
+
- `baseUrl` — data fetchers default to `https://app.garagem.ai`; `getSite`
|
|
93
|
+
defaults to `https://cdn.fndn.ai/site` so production resolution traverses the
|
|
94
|
+
tenant-locator edge. Override for a custom proxy or staging.
|
|
93
95
|
- `fetch` — custom fetch implementation (testing, retries, edge runtimes).
|
|
94
96
|
- `next: { revalidate, tags }` — forwarded directly to the underlying `fetch` for Next.js App Router caching. Ignored on runtimes that don't understand it.
|
|
95
97
|
|
|
@@ -252,19 +254,14 @@ option on `createGaragemClient`.
|
|
|
252
254
|
## Search UI (`@garagem-ai/site-sdk/react`)
|
|
253
255
|
|
|
254
256
|
Headless URL/search helpers live on the main entry (`readPublicSearch`,
|
|
255
|
-
`
|
|
256
|
-
|
|
257
|
+
`hrefForPathFilters`, `toListingCardModel`, …). The React adapter is a
|
|
258
|
+
separate subpath — peer `react` + `next` — and exports `usePublicSearch`
|
|
259
|
+
only. Card, skeleton, and search chrome markup belong in the app.
|
|
257
260
|
|
|
258
261
|
Studio codegen follows `STUDIO_SDK_CONTRACT`: pin
|
|
259
262
|
`@garagem-ai/site-sdk` to `minNpmVersion` and import only
|
|
260
|
-
`reactExports` (`usePublicSearch
|
|
261
|
-
|
|
262
|
-
all resolve that tarball. Do **not** import npm CSS
|
|
263
|
-
(`@garagem-ai/site-sdk/react/search.css`) in Studio.
|
|
264
|
-
|
|
265
|
-
`ListingCard` and `ResultsSkeleton` inject card/skeleton CSS (JS
|
|
266
|
-
`<style>` tag). Search chrome (query, toolbar, sort, filters,
|
|
267
|
-
pagination, heading) is composed in the app with `usePublicSearch`.
|
|
263
|
+
`reactExports` (`usePublicSearch`). Do **not** import npm CSS
|
|
264
|
+
(`@garagem-ai/site-sdk/react/search.css`).
|
|
268
265
|
|
|
269
266
|
```tsx
|
|
270
267
|
"use client";
|
|
@@ -276,22 +273,16 @@ export function ImoveisSearch({ siteId }: { siteId: string }) {
|
|
|
276
273
|
}
|
|
277
274
|
```
|
|
278
275
|
|
|
279
|
-
Wrap that client component in `<Suspense fallback
|
|
280
|
-
|
|
276
|
+
Wrap that client component in `<Suspense>` whose fallback is the app’s
|
|
277
|
+
listing-card skeleton. Constrain width with `.max-w-site` and
|
|
281
278
|
`--site-max-width` (`STUDIO_SITE_LAYOUT` — Editor default `80rem` / `px-4`).
|
|
282
279
|
|
|
283
|
-
|
|
284
|
-
`
|
|
285
|
-
`
|
|
286
|
-
|
|
287
|
-
`<span data-slot="search-heading-count">` first, then
|
|
280
|
+
Home, search, and similar listings share one site-owned card fed by
|
|
281
|
+
`toListingCardModel` / `listingPublicPath`. Listing detail maps
|
|
282
|
+
`listingDetailModel` leaves and `listingAmenityGroups`. The search H1 is
|
|
283
|
+
SEO stable: count `<span data-slot="search-heading-count">` first, then
|
|
288
284
|
`<h1 data-slot="search-heading-title">`. Hit count is never inside
|
|
289
|
-
`<h1>`.
|
|
290
|
-
other adapters can reuse them.
|
|
291
|
-
|
|
292
|
-
Hand-written Next apps that prefer a layout tag can import
|
|
293
|
-
`SearchChromeStyles` after it ships on npm; until then it is not part of
|
|
294
|
-
the Studio pin.
|
|
285
|
+
`<h1>`.
|
|
295
286
|
|
|
296
287
|
## What's NOT in this release
|
|
297
288
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RequestNextOptions, L as ListingFilters, Q as QueryListingsParams, S as SearchListingsParams, C as CmsCollection, a as CmsEntriesResult, b as CmsEntry, c as ListingDetail, d as ListingsResult, e as SearchUi, f as SimilarListingsResult, g as Site, h as QueryListingsResult, i as SearchListingsResult, j as
|
|
2
|
-
export {
|
|
1
|
+
import { R as RequestNextOptions, L as ListingFilters, Q as QueryListingsParams, S as SearchListingsParams, C as CmsCollection, a as CmsEntriesResult, b as CmsEntry, c as ListingDetail, d as ListingsResult, e as SearchUi, f as SimilarListingsResult, g as Site, h as QueryListingsResult, i as SearchListingsResult, j as ListingLocation, k as ListingMedia, l as ListingBusinessType, m as ListingPriceVisibility, n as Listing, o as SearchPathFilters, p as SearchUiDictionary, q as QueryListingsFilters, A as AppliedSearchQuery, r as AppliedSearchChange } from './search-engine-CkbO77G8.mjs';
|
|
2
|
+
export { s as CmsEntryStatus, t as CmsFieldDefinition, u as CmsFieldType, v as CmsSeoData, F as FORBIDDEN_SEARCH_QUERY_KEYS, w as ListingPropertySummary, x as LocationNameTables, y as QueryListingsLocation, z as SEARCH_EMPTY_COPY, B as SEARCH_SORT_RELEVANCE, D as SearchChromeModel, E as SearchPathLocation, G as SearchUiFilter, H as SearchUiOption, T as TOOLBAR_PRIMARY_FILTER_IDS, I as applyPathFilter, J as buildQueryListingsParams, K as canonicalizeSearchHref, M as clearStagedPathFilters, N as countFacetChoices, O as countOptionLabel, P as displayPathLocation, U as hrefForAppliedChange, V as hrefForPathFilters, W as hrefWithExplicitPage, X as isListingDetailPath, Y as paginationPages, Z as pathFilterHasOption, _ as pathFilterValue, $ as publicSearchHref, a0 as rangeDraftFromPath, a1 as readPublicSearch, a2 as searchChromeModel, a3 as searchHrefUsesLegacyFilterQuery, a4 as searchResultsHeading, a5 as searchSortOptions, a6 as toolbarFilterIds, a7 as visibleSearchFilters } from './search-engine-CkbO77G8.mjs';
|
|
3
3
|
|
|
4
4
|
/** Custom fetch implementation. Defaults to the global `fetch`. */
|
|
5
5
|
type FetchLike = typeof fetch;
|
|
@@ -258,6 +258,52 @@ declare function getLeadUi(options: GetLeadUiOptions): Promise<LeadUi>;
|
|
|
258
258
|
declare function submitVisitLead(input: VisitLeadInput): Promise<LeadSubmitResult>;
|
|
259
259
|
declare function submitContactLead(input: ContactLeadInput): Promise<LeadSubmitResult>;
|
|
260
260
|
|
|
261
|
+
/**
|
|
262
|
+
* Portuguese labels for listing amenity ids. Tenant search-ui dictionary
|
|
263
|
+
* wins; this map is the default-catalog fallback so generated Studio pages
|
|
264
|
+
* never print camelCase keys.
|
|
265
|
+
*/
|
|
266
|
+
declare const LISTING_AMENITY_TITLES: {
|
|
267
|
+
readonly unit: "Comodidades";
|
|
268
|
+
readonly building: "Comodidades do condomínio";
|
|
269
|
+
};
|
|
270
|
+
type AmenityLabelOption = {
|
|
271
|
+
id: string;
|
|
272
|
+
label: string;
|
|
273
|
+
};
|
|
274
|
+
type AmenityLabelDictionary = {
|
|
275
|
+
propertyFeatures?: AmenityLabelOption[];
|
|
276
|
+
buildingAmenities?: AmenityLabelOption[];
|
|
277
|
+
amenitySectionTitles?: {
|
|
278
|
+
unit?: string;
|
|
279
|
+
building?: string;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
type ListingAmenityGroupKey = keyof typeof LISTING_AMENITY_TITLES;
|
|
283
|
+
type ListingAmenityGroup = {
|
|
284
|
+
key: ListingAmenityGroupKey;
|
|
285
|
+
title: string;
|
|
286
|
+
labels: string[];
|
|
287
|
+
};
|
|
288
|
+
type ListingAmenitySource = {
|
|
289
|
+
amenities?: string[] | null;
|
|
290
|
+
propertyFeatures?: string[] | null;
|
|
291
|
+
/** Condo amenity ids, even when `building` is null (no buildingId). */
|
|
292
|
+
buildingAmenities?: string[] | null;
|
|
293
|
+
building?: {
|
|
294
|
+
amenities?: string[] | null;
|
|
295
|
+
} | null;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* Default tenant ids + canonical `has*` / `is*` keys seen on public listings.
|
|
299
|
+
* Aligned with DEFAULT_PROPERTY_FEATURES and DEFAULT_BUILDING_FEATURES from
|
|
300
|
+
* Foundation's field-definitions.ts so generated Studio pages never need a
|
|
301
|
+
* dictionary for standard amenities.
|
|
302
|
+
*/
|
|
303
|
+
declare const AMENITY_FALLBACK_LABELS: Record<string, string>;
|
|
304
|
+
declare function labelAmenities(ids: readonly string[] | null | undefined, dictionary?: AmenityLabelOption[]): string[];
|
|
305
|
+
declare function listingAmenityGroups(listing: ListingAmenitySource, dictionary?: AmenityLabelDictionary): ListingAmenityGroup[];
|
|
306
|
+
|
|
261
307
|
/** Public listing URLs. Prefer `listing.path` from the API; fallback is `/imoveis/id-{listingCode}`. */
|
|
262
308
|
declare function listingLookupKey(raw: string): string;
|
|
263
309
|
declare function listingPublicPath(listing: {
|
|
@@ -266,22 +312,149 @@ declare function listingPublicPath(listing: {
|
|
|
266
312
|
id?: string | null;
|
|
267
313
|
}): string;
|
|
268
314
|
|
|
315
|
+
declare const LISTING_DESCRIPTION_CLAMP = 280;
|
|
316
|
+
/** Visible listing fact. The number / area / floor is `text` — never omit it. */
|
|
317
|
+
type ListingFact = {
|
|
318
|
+
key: string;
|
|
319
|
+
label: string;
|
|
320
|
+
text: string;
|
|
321
|
+
};
|
|
322
|
+
/** Visible listing amount. Price, condomínio and IPTU are `text`. */
|
|
323
|
+
type ListingValue = {
|
|
324
|
+
key: string;
|
|
325
|
+
label: string;
|
|
326
|
+
text: string;
|
|
327
|
+
};
|
|
328
|
+
type ListingBreadcrumbCrumb = {
|
|
329
|
+
label: string;
|
|
330
|
+
href: string;
|
|
331
|
+
};
|
|
332
|
+
type ListingLocationBlock = {
|
|
333
|
+
label: string;
|
|
334
|
+
mapsHref: string | null;
|
|
335
|
+
};
|
|
336
|
+
type ListingDescriptionPreview = {
|
|
337
|
+
text: string;
|
|
338
|
+
truncated: boolean;
|
|
339
|
+
toggleLabel: string | null;
|
|
340
|
+
};
|
|
341
|
+
type ListingMediaOverlay = {
|
|
342
|
+
key: "video" | "tour";
|
|
343
|
+
hash: "video" | "tour";
|
|
344
|
+
title: string;
|
|
345
|
+
href: string;
|
|
346
|
+
embedSrc: string;
|
|
347
|
+
};
|
|
348
|
+
type ListingDetailModel = {
|
|
349
|
+
breadcrumb: ListingBreadcrumbCrumb[];
|
|
350
|
+
values: ListingValue[];
|
|
351
|
+
facts: ListingFact[];
|
|
352
|
+
location: ListingLocationBlock | null;
|
|
353
|
+
/** Complete description string — never a sliced preview. */
|
|
354
|
+
description: string | null;
|
|
355
|
+
descriptionTruncated: boolean;
|
|
356
|
+
descriptionToggleLabel: string | null;
|
|
357
|
+
mediaOverlays: ListingMediaOverlay[];
|
|
358
|
+
};
|
|
359
|
+
declare function listingValues(listing: {
|
|
360
|
+
price?: number | null;
|
|
361
|
+
priceVisibility?: string | null;
|
|
362
|
+
propertyTaxLabel?: string | null;
|
|
363
|
+
property?: {
|
|
364
|
+
condoFee?: number | null;
|
|
365
|
+
propertyTax?: number | null;
|
|
366
|
+
} | null;
|
|
367
|
+
}): ListingValue[];
|
|
368
|
+
declare function listingFacts(listing: {
|
|
369
|
+
property?: {
|
|
370
|
+
totalArea?: number | null;
|
|
371
|
+
usableArea?: number | null;
|
|
372
|
+
bedrooms?: number | null;
|
|
373
|
+
suites?: number | null;
|
|
374
|
+
parkingSpaces?: number | null;
|
|
375
|
+
rooms?: number | null;
|
|
376
|
+
floor?: number | string | null;
|
|
377
|
+
} | null;
|
|
378
|
+
}): ListingFact[];
|
|
379
|
+
declare function listingMapsHref(location: ListingLocation | null | undefined): string | null;
|
|
380
|
+
declare function listingLocationBlock(listing: {
|
|
381
|
+
location?: ListingLocation | null;
|
|
382
|
+
} | null | undefined): ListingLocationBlock | null;
|
|
383
|
+
declare function listingBreadcrumb(listing: {
|
|
384
|
+
path?: string | null;
|
|
385
|
+
listingCode?: string | null;
|
|
386
|
+
id?: string | null;
|
|
387
|
+
}): ListingBreadcrumbCrumb[];
|
|
388
|
+
declare function listingDescriptionPreview(description: string | null | undefined, expanded?: boolean): ListingDescriptionPreview | null;
|
|
389
|
+
declare function listingMediaOverlays(listing: {
|
|
390
|
+
media?: ListingMedia[] | null;
|
|
391
|
+
}): ListingMediaOverlay[];
|
|
392
|
+
declare function listingDetailModel(listing: Pick<ListingDetail, "id" | "listingCode" | "path" | "price" | "priceVisibility" | "description"> & {
|
|
393
|
+
property?: ListingDetail["property"] | null;
|
|
394
|
+
location?: ListingLocation | null;
|
|
395
|
+
media?: ListingMedia[] | null;
|
|
396
|
+
}, options?: {
|
|
397
|
+
descriptionExpanded?: boolean;
|
|
398
|
+
}): ListingDetailModel;
|
|
399
|
+
|
|
400
|
+
type ListingDetailFieldsModel = {
|
|
401
|
+
facts: ListingFact[];
|
|
402
|
+
values: ListingValue[];
|
|
403
|
+
amenityGroups: ListingAmenityGroup[];
|
|
404
|
+
};
|
|
405
|
+
type ListingDetailFieldsSource = ListingAmenitySource & Pick<ListingDetail, "price" | "priceVisibility"> & {
|
|
406
|
+
property?: ListingDetail["property"] | null;
|
|
407
|
+
};
|
|
269
408
|
/**
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
* CSS custom-property names; they must not live inside JSX.
|
|
409
|
+
* Facts, values, and amenity groups that are safe to render: every row has
|
|
410
|
+
* a real label and text. Missing condo/IPTU/empty facts never appear.
|
|
273
411
|
*/
|
|
274
|
-
declare
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
412
|
+
declare function listingDetailFieldsModel(listing: ListingDetailFieldsSource, dictionary?: AmenityLabelDictionary): ListingDetailFieldsModel;
|
|
413
|
+
|
|
414
|
+
/** Fields every listing card must have — no JSX. */
|
|
415
|
+
type ListingCardModel = {
|
|
416
|
+
href: string;
|
|
417
|
+
title: string;
|
|
418
|
+
businessType: ListingBusinessType;
|
|
419
|
+
businessLabel: string;
|
|
420
|
+
priceVisibility: ListingPriceVisibility;
|
|
421
|
+
price: number | null;
|
|
422
|
+
priceLabel: string;
|
|
423
|
+
pricePeriod: string | null;
|
|
424
|
+
locationLabel: string;
|
|
425
|
+
propertyType: string | null;
|
|
426
|
+
coverSrc: string | null;
|
|
427
|
+
coverAlt: string;
|
|
428
|
+
bedrooms: number | null;
|
|
429
|
+
bathrooms: number | null;
|
|
430
|
+
parkingSpaces: number | null;
|
|
431
|
+
areaM2: number | null;
|
|
282
432
|
};
|
|
283
|
-
|
|
284
|
-
|
|
433
|
+
declare function listingLocationLabel(location: {
|
|
434
|
+
neighborhood?: string | null;
|
|
435
|
+
city?: string | null;
|
|
436
|
+
state?: string | null;
|
|
437
|
+
}): string;
|
|
438
|
+
declare function toListingCardModel(listing: Pick<Listing, "id" | "listingCode" | "path" | "title" | "businessType" | "price" | "priceVisibility" | "coverImage"> & {
|
|
439
|
+
property?: {
|
|
440
|
+
type?: string | null;
|
|
441
|
+
bedrooms?: number | null;
|
|
442
|
+
bathrooms?: number | null;
|
|
443
|
+
parkingSpaces?: number | null;
|
|
444
|
+
usableArea?: number | null;
|
|
445
|
+
totalArea?: number | null;
|
|
446
|
+
};
|
|
447
|
+
location?: {
|
|
448
|
+
neighborhood?: string | null;
|
|
449
|
+
city?: string | null;
|
|
450
|
+
state?: string | null;
|
|
451
|
+
};
|
|
452
|
+
}): ListingCardModel;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Presentation helpers with no UI framework.
|
|
456
|
+
* Adapters consume these formatters; they must not live inside JSX.
|
|
457
|
+
*/
|
|
285
458
|
declare function formatListingPrice(amount: number | null | undefined, locale?: string, currency?: string): string;
|
|
286
459
|
/** Input mask: `499000` → `"499.000"` (no currency symbol). */
|
|
287
460
|
declare function formatGroupedInteger(value: string | number | null | undefined, locale?: string): string;
|
|
@@ -355,31 +528,31 @@ declare const STUDIO_SDK_CONTRACT: {
|
|
|
355
528
|
* 0.4.12 (`visibleSearchFilters` / `toolbarFilterIds` are on that pin).
|
|
356
529
|
*/
|
|
357
530
|
readonly minNpmVersion: "0.4.12";
|
|
358
|
-
/**
|
|
531
|
+
/** Historical: older tarballs inject card CSS when those components mount. */
|
|
359
532
|
readonly selfInjectSince: "0.4.2";
|
|
360
|
-
readonly chromeStrategy: "
|
|
361
|
-
readonly reactExports: readonly ["usePublicSearch"
|
|
533
|
+
readonly chromeStrategy: "app-owned";
|
|
534
|
+
readonly reactExports: readonly ["usePublicSearch"];
|
|
362
535
|
/**
|
|
363
|
-
* Names that exist in git /
|
|
536
|
+
* Names that exist in git / unpublished patches. Completeness treats an
|
|
364
537
|
* import as `sdk-export-mismatch` when the generated pin is older than
|
|
365
538
|
* `since`. Studio prompts must not mention these names at all (even as
|
|
366
539
|
* “never import”) — v0 copies the identifier and the preview ESM loader
|
|
367
540
|
* throws FatalRendererError.
|
|
368
541
|
*/
|
|
369
|
-
readonly optionalReactExports:
|
|
370
|
-
readonly SearchChromeStyles: "0.4.1";
|
|
371
|
-
readonly ListingDetailFields: "0.4.13";
|
|
372
|
-
};
|
|
542
|
+
readonly optionalReactExports: Record<string, string>;
|
|
373
543
|
/**
|
|
374
|
-
* Former `/react` chrome
|
|
375
|
-
* `reactExports`). Prompts must not
|
|
376
|
-
* identifiers even inside
|
|
544
|
+
* Former `/react` chrome (including card/skeleton inject). Completeness
|
|
545
|
+
* flags imports as mismatch (not in `reactExports`). Prompts must not
|
|
546
|
+
* mention these names at all — v0 copies identifiers even inside
|
|
547
|
+
* “never import”.
|
|
377
548
|
*/
|
|
378
|
-
readonly retiredReactExports: readonly ["SearchPage", "SearchQueryForm", "SearchSortSelect", "FilterPanel", "SearchPagination", "SearchPageFallback"];
|
|
549
|
+
readonly retiredReactExports: readonly ["SearchPage", "SearchQueryForm", "SearchSortSelect", "FilterPanel", "SearchPagination", "SearchPageFallback", "ListingCard", "ResultsSkeleton", "SearchChromeStyles", "ListingDetailFields"];
|
|
379
550
|
readonly forbiddenImports: readonly ["@garagem-ai/site-sdk/react/search.css"];
|
|
380
551
|
readonly leadStrategy: "visit-default";
|
|
381
552
|
readonly leadExports: readonly ["getLeadUi", "submitVisitLead", "submitContactLead", "slotsForDate", "expandVisitSchedule", "expandVisitTimeSlots", "isVisitSlotAllowed", "STUDIO_DEFAULT_VISIT_SCHEDULE"];
|
|
382
553
|
readonly listingDetailExports: readonly ["listingDetailModel", "getSimilarListings"];
|
|
554
|
+
/** Main-package card helpers — markup stays in the generated app. */
|
|
555
|
+
readonly listingCardExports: readonly ["toListingCardModel", "listingPublicPath", "formatAreaM2", "listingBusinessLabel", "formatListingPrice"];
|
|
383
556
|
readonly amenityExports: readonly ["listingAmenityGroups"];
|
|
384
557
|
/**
|
|
385
558
|
* Names already on the pinned npm tarball (`minNpmVersion` / 0.4.12) —
|
|
@@ -423,6 +596,7 @@ declare function parseReactSdkNamedImports(source: string): string[];
|
|
|
423
596
|
declare function unavailableReactImports(source: string, pin: string): string[];
|
|
424
597
|
declare function studioSdkPinInstruction(): string;
|
|
425
598
|
declare function studioLeadInstruction(): string;
|
|
599
|
+
declare function studioListingCardInstruction(): string;
|
|
426
600
|
declare function studioListingDetailInstruction(): string;
|
|
427
601
|
declare function studioAmenityInstruction(): string;
|
|
428
602
|
declare function studioSearchInstruction(): string;
|
|
@@ -541,4 +715,4 @@ interface GaragemClient {
|
|
|
541
715
|
*/
|
|
542
716
|
declare function createGaragemClient(options?: CreateGaragemClientOptions): GaragemClient;
|
|
543
717
|
|
|
544
|
-
export { AppliedSearchChange, AppliedSearchQuery, CmsCollection, CmsEntriesResult, CmsEntry, type ContactLeadInput, type CreateGaragemClientOptions, type FetchLike, type GaragemClient, GaragemSdkError, type GetCmsCollectionOptions, type GetCmsCollectionsOptions, type GetCmsEntriesOptions, type GetCmsEntryOptions, type GetLeadUiOptions, type GetListingOptions, type GetListingsOptions, type GetSearchUiOptions, type GetSimilarListingsOptions, type GetSiteOptions, type HHmm, type LeadContact, type LeadField, type LeadFieldId, LeadSubmitError, type LeadSubmitErrorCode, type LeadSubmitResult, type LeadUi, ListingDetail, ListingFilters, ListingsResult, type LocationFilterInput, QueryListingsFilters, type QueryListingsOptions, QueryListingsParams, QueryListingsResult, RequestNextOptions, type ResolvePublicSiteIdOptions,
|
|
718
|
+
export { AMENITY_FALLBACK_LABELS, type AmenityLabelDictionary, type AmenityLabelOption, AppliedSearchChange, AppliedSearchQuery, CmsCollection, CmsEntriesResult, CmsEntry, type ContactLeadInput, type CreateGaragemClientOptions, type FetchLike, type GaragemClient, GaragemSdkError, type GetCmsCollectionOptions, type GetCmsCollectionsOptions, type GetCmsEntriesOptions, type GetCmsEntryOptions, type GetLeadUiOptions, type GetListingOptions, type GetListingsOptions, type GetSearchUiOptions, type GetSimilarListingsOptions, type GetSiteOptions, type HHmm, LISTING_AMENITY_TITLES, LISTING_DESCRIPTION_CLAMP, type LeadContact, type LeadField, type LeadFieldId, LeadSubmitError, type LeadSubmitErrorCode, type LeadSubmitResult, type LeadUi, Listing, type ListingAmenityGroup, type ListingAmenityGroupKey, type ListingAmenitySource, type ListingBreadcrumbCrumb, ListingBusinessType, type ListingCardModel, type ListingDescriptionPreview, ListingDetail, type ListingDetailFieldsModel, type ListingDetailFieldsSource, type ListingDetailModel, type ListingFact, ListingFilters, ListingLocation, type ListingLocationBlock, ListingMedia, type ListingMediaOverlay, ListingPriceVisibility, type ListingValue, ListingsResult, type LocationFilterInput, QueryListingsFilters, type QueryListingsOptions, QueryListingsParams, QueryListingsResult, RequestNextOptions, type ResolvePublicSiteIdOptions, STUDIO_DEFAULT_VISIT_SCHEDULE, STUDIO_SDK_CONTRACT, STUDIO_SDK_PACKAGE, STUDIO_SITE_LAYOUT, type SearchListingsOptions, SearchListingsParams, SearchListingsResult, SearchPathFilters, SearchUi, SearchUiDictionary, SimilarListingsResult, Site, type StudioSdkContract, VISIT_TIME_ZONE, type VisitHours, type VisitLeadInput, type VisitSchedule, type VisitScheduleConfig, coerceNpmVersion, compareSemver, composeSearchPublicHref, composeSearchPublicPath, createGaragemClient, expandVisitSchedule, expandVisitTimeSlots, formatAreaM2, formatGroupedInteger, formatListingPrice, getCmsCollection, getCmsCollections, getCmsEntries, getCmsEntry, getLeadUi, getListing, getListings, getSearchUi, getSimilarListings, getSite, hasShowcaseLeadsPostUrl, isStudioPreviewHost, isVisitSlotAllowed, labelAmenities, listingAmenityGroups, listingBreadcrumb, listingBusinessLabel, listingDescriptionPreview, listingDetailFieldsModel, listingDetailModel, listingFacts, listingLocationBlock, listingLocationLabel, listingLookupKey, listingMapsHref, listingMediaOverlays, listingPublicPath, listingValues, mergeAppliedSearchQueryIntoSearch, normalizeVisitDate, normalizeVisitTime, parseAppliedSearchQuery, parseGroupedInteger, parseReactSdkNamedImports, parseSearchPublicPath, pathFiltersToQueryFilters, pathLocationToFilterInput, queryListings, reduceAppliedSearchQuery, resolvePublicSiteId, searchListings, serializeAppliedSearchQuery, slotsForDate, studioAmenityInstruction, studioChromeInstruction, studioCodegenContractViolations, studioDefaultLeadUi, studioLayoutInstruction, studioLeadInstruction, studioListingCardInstruction, studioListingDetailInstruction, studioSdkPinInstruction, studioSearchInstruction, studioSearchLandmarkInstruction, studioSiteWidthCss, submitContactLead, submitVisitLead, toListingCardModel, unavailableReactImports };
|