@garagem-ai/site-sdk 0.5.1 → 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/dist/index.mjs
CHANGED
|
@@ -14,6 +14,7 @@ function listingPublicPath(listing) {
|
|
|
14
14
|
|
|
15
15
|
// src/internal/url.ts
|
|
16
16
|
var DEFAULT_BASE_URL = "https://app.garagem.ai";
|
|
17
|
+
var DEFAULT_RESOLVE_BASE_URL = "https://cdn.fndn.ai/site";
|
|
17
18
|
function normalizeBaseUrl(baseUrl) {
|
|
18
19
|
const url = baseUrl ?? DEFAULT_BASE_URL;
|
|
19
20
|
return url.endsWith("/") ? url.slice(0, -1) : url;
|
|
@@ -113,7 +114,7 @@ async function getSite(options) {
|
|
|
113
114
|
"getSite: provide only one of `siteId` or `domain`, not both."
|
|
114
115
|
);
|
|
115
116
|
}
|
|
116
|
-
const base = normalizeBaseUrl(baseUrl);
|
|
117
|
+
const base = normalizeBaseUrl(baseUrl ?? DEFAULT_RESOLVE_BASE_URL);
|
|
117
118
|
const params = new URLSearchParams();
|
|
118
119
|
if (siteId) params.set("siteId", siteId);
|
|
119
120
|
if (domain) params.set("domain", domain);
|
|
@@ -1048,7 +1049,7 @@ function listingAmenityGroups(listing, dictionary) {
|
|
|
1048
1049
|
if (unitLabels.length > 0) {
|
|
1049
1050
|
groups.push({
|
|
1050
1051
|
key: "unit",
|
|
1051
|
-
title: LISTING_AMENITY_TITLES.unit,
|
|
1052
|
+
title: dictionary?.amenitySectionTitles?.unit ?? LISTING_AMENITY_TITLES.unit,
|
|
1052
1053
|
labels: unitLabels
|
|
1053
1054
|
});
|
|
1054
1055
|
}
|
|
@@ -1059,7 +1060,7 @@ function listingAmenityGroups(listing, dictionary) {
|
|
|
1059
1060
|
if (buildingLabels.length > 0) {
|
|
1060
1061
|
groups.push({
|
|
1061
1062
|
key: "building",
|
|
1062
|
-
title: LISTING_AMENITY_TITLES.building,
|
|
1063
|
+
title: dictionary?.amenitySectionTitles?.building ?? LISTING_AMENITY_TITLES.building,
|
|
1063
1064
|
labels: buildingLabels
|
|
1064
1065
|
});
|
|
1065
1066
|
}
|
|
@@ -1067,25 +1068,6 @@ function listingAmenityGroups(listing, dictionary) {
|
|
|
1067
1068
|
}
|
|
1068
1069
|
|
|
1069
1070
|
// src/presentation.ts
|
|
1070
|
-
var SEARCH_CSS_VARS = {
|
|
1071
|
-
cardRadius: "--garagem-listing-card-radius",
|
|
1072
|
-
cardGap: "--garagem-listing-card-gap",
|
|
1073
|
-
priceSize: "--garagem-listing-price-size",
|
|
1074
|
-
mediaRatio: "--garagem-listing-media-ratio",
|
|
1075
|
-
controlHeight: "--garagem-search-control-height",
|
|
1076
|
-
iconSize: "--garagem-search-icon-size",
|
|
1077
|
-
skeleton: "--garagem-skeleton"
|
|
1078
|
-
};
|
|
1079
|
-
var SEARCH_CSS_RECIPE = `:root {
|
|
1080
|
-
${SEARCH_CSS_VARS.cardRadius}: 0.75rem;
|
|
1081
|
-
${SEARCH_CSS_VARS.cardGap}: 1.5rem;
|
|
1082
|
-
${SEARCH_CSS_VARS.priceSize}: 1.125rem;
|
|
1083
|
-
${SEARCH_CSS_VARS.mediaRatio}: 4 / 3;
|
|
1084
|
-
${SEARCH_CSS_VARS.controlHeight}: 2.75rem;
|
|
1085
|
-
${SEARCH_CSS_VARS.iconSize}: 1.25rem;
|
|
1086
|
-
${SEARCH_CSS_VARS.skeleton}: var(--muted, #e7e5e4);
|
|
1087
|
-
}
|
|
1088
|
-
`;
|
|
1089
1071
|
function formatListingPrice(amount, locale = "pt-BR", currency = "BRL") {
|
|
1090
1072
|
if (amount == null) return "Sob consulta";
|
|
1091
1073
|
try {
|
|
@@ -1161,6 +1143,7 @@ var DEFAULT_MAX_PRICE = 1e9;
|
|
|
1161
1143
|
var DEFAULT_MIN_AREA = 0;
|
|
1162
1144
|
var DEFAULT_MAX_AREA = 1e5;
|
|
1163
1145
|
var SORT_URL_TOKENS = [
|
|
1146
|
+
"recentes",
|
|
1164
1147
|
"preco-asc",
|
|
1165
1148
|
"preco-desc",
|
|
1166
1149
|
"area-asc",
|
|
@@ -1800,6 +1783,8 @@ function currentSearchHref(pathname, search) {
|
|
|
1800
1783
|
return qs ? `${path}?${qs}` : path;
|
|
1801
1784
|
}
|
|
1802
1785
|
function canonicalizeSearchHref(pathname, search, dictionary) {
|
|
1786
|
+
if (pathname.includes("/api/v0-preview/")) return null;
|
|
1787
|
+
if (isListingDetailPath(pathname)) return null;
|
|
1803
1788
|
const { pathFilters, applied } = readPublicSearch(
|
|
1804
1789
|
pathname,
|
|
1805
1790
|
search,
|
|
@@ -2075,7 +2060,7 @@ function listingValues(listing) {
|
|
|
2075
2060
|
if (propertyTax != null) {
|
|
2076
2061
|
values.push({
|
|
2077
2062
|
key: "propertyTax",
|
|
2078
|
-
label: "IPTU",
|
|
2063
|
+
label: listing.propertyTaxLabel?.trim() || "IPTU",
|
|
2079
2064
|
text: formatListingPrice(propertyTax)
|
|
2080
2065
|
});
|
|
2081
2066
|
}
|
|
@@ -2244,25 +2229,23 @@ var STUDIO_SDK_CONTRACT = {
|
|
|
2244
2229
|
* 0.4.12 (`visibleSearchFilters` / `toolbarFilterIds` are on that pin).
|
|
2245
2230
|
*/
|
|
2246
2231
|
minNpmVersion: "0.4.12",
|
|
2247
|
-
/**
|
|
2232
|
+
/** Historical: older tarballs inject card CSS when those components mount. */
|
|
2248
2233
|
selfInjectSince: "0.4.2",
|
|
2249
|
-
chromeStrategy: "
|
|
2250
|
-
reactExports: ["usePublicSearch"
|
|
2234
|
+
chromeStrategy: "app-owned",
|
|
2235
|
+
reactExports: ["usePublicSearch"],
|
|
2251
2236
|
/**
|
|
2252
|
-
* Names that exist in git /
|
|
2237
|
+
* Names that exist in git / unpublished patches. Completeness treats an
|
|
2253
2238
|
* import as `sdk-export-mismatch` when the generated pin is older than
|
|
2254
2239
|
* `since`. Studio prompts must not mention these names at all (even as
|
|
2255
2240
|
* “never import”) — v0 copies the identifier and the preview ESM loader
|
|
2256
2241
|
* throws FatalRendererError.
|
|
2257
2242
|
*/
|
|
2258
|
-
optionalReactExports: {
|
|
2259
|
-
SearchChromeStyles: "0.4.1",
|
|
2260
|
-
ListingDetailFields: "0.4.13"
|
|
2261
|
-
},
|
|
2243
|
+
optionalReactExports: {},
|
|
2262
2244
|
/**
|
|
2263
|
-
* Former `/react` chrome
|
|
2264
|
-
* `reactExports`). Prompts must not
|
|
2265
|
-
* identifiers even inside
|
|
2245
|
+
* Former `/react` chrome (including card/skeleton inject). Completeness
|
|
2246
|
+
* flags imports as mismatch (not in `reactExports`). Prompts must not
|
|
2247
|
+
* mention these names at all — v0 copies identifiers even inside
|
|
2248
|
+
* “never import”.
|
|
2266
2249
|
*/
|
|
2267
2250
|
retiredReactExports: [
|
|
2268
2251
|
"SearchPage",
|
|
@@ -2270,7 +2253,11 @@ var STUDIO_SDK_CONTRACT = {
|
|
|
2270
2253
|
"SearchSortSelect",
|
|
2271
2254
|
"FilterPanel",
|
|
2272
2255
|
"SearchPagination",
|
|
2273
|
-
"SearchPageFallback"
|
|
2256
|
+
"SearchPageFallback",
|
|
2257
|
+
"ListingCard",
|
|
2258
|
+
"ResultsSkeleton",
|
|
2259
|
+
"SearchChromeStyles",
|
|
2260
|
+
"ListingDetailFields"
|
|
2274
2261
|
],
|
|
2275
2262
|
forbiddenImports: ["@garagem-ai/site-sdk/react/search.css"],
|
|
2276
2263
|
leadStrategy: "visit-default",
|
|
@@ -2285,6 +2272,14 @@ var STUDIO_SDK_CONTRACT = {
|
|
|
2285
2272
|
"STUDIO_DEFAULT_VISIT_SCHEDULE"
|
|
2286
2273
|
],
|
|
2287
2274
|
listingDetailExports: ["listingDetailModel", "getSimilarListings"],
|
|
2275
|
+
/** Main-package card helpers — markup stays in the generated app. */
|
|
2276
|
+
listingCardExports: [
|
|
2277
|
+
"toListingCardModel",
|
|
2278
|
+
"listingPublicPath",
|
|
2279
|
+
"formatAreaM2",
|
|
2280
|
+
"listingBusinessLabel",
|
|
2281
|
+
"formatListingPrice"
|
|
2282
|
+
],
|
|
2288
2283
|
amenityExports: ["listingAmenityGroups"],
|
|
2289
2284
|
/**
|
|
2290
2285
|
* Names already on the pinned npm tarball (`minNpmVersion` / 0.4.12) —
|
|
@@ -2338,7 +2333,7 @@ ${studioSiteWidthCss()}
|
|
|
2338
2333
|
Every page section is two layers: (1) surface \u2014 \`section\` / header / footer \`${STUDIO_SITE_LAYOUT.surfaceClassName}\`, background to the viewport edges, no max-width class and no horizontal padding; (2) wrapper \u2014 one child \`${STUDIO_SITE_LAYOUT.wrapperClassName}\`. Header and footer use that same inner wrapper. Components fill the wrapper (\`w-full\`). Never nest a second max-width container with extra horizontal padding. ${studioSearchLandmarkInstruction()} Do not use \`ml-auto\` on the content wrapper. To make the site narrower or wider, change ONLY \`--site-max-width\` in \`app/globals.css\` (allowed: ${scale}; default ${STUDIO_SITE_LAYOUT.maxWidthRem}). Do not edit wrapper class names or horizontal padding. Full-bleed image surfaces (home hero, listing gallery) stay flush with the header \u2014 do not add vertical padding there.`;
|
|
2339
2334
|
}
|
|
2340
2335
|
function studioSearchLandmarkInstruction() {
|
|
2341
|
-
return `Search at \`/imoveis\` (hard rule). The page landmark is \`<main className="${STUDIO_SITE_LAYOUT.searchMainClassName}">\` with one child \`${STUDIO_SITE_LAYOUT.wrapperClassName}\`. Wire the catalog with \`usePublicSearch\` from \`${STUDIO_SDK_PACKAGE}/react\` inside \`<Suspense fallback
|
|
2336
|
+
return `Search at \`/imoveis\` (hard rule). The page landmark is \`<main className="${STUDIO_SITE_LAYOUT.searchMainClassName}">\` with one child \`${STUDIO_SITE_LAYOUT.wrapperClassName}\`. Wire the catalog with \`usePublicSearch\` from \`${STUDIO_SDK_PACKAGE}/react\` inside \`<Suspense>\` whose fallback is the site listing-card-skeleton module. Do not wrap the search UI in \`<section>\` or a second max-width. The page owns the SEO heading as \`<div data-slot="search-heading">\`: count \`<span data-slot="search-heading-count">\` FIRST, then \`<h1 data-slot="search-heading-title">\` \u2014 never put the count inside the H1 and never put the h1 first. \`pt-4 pb-12\` is the default on that search \`<main>\` \u2014 change those values if the design needs it. Flush search (glued to the header) is allowed only with \`${STUDIO_SITE_LAYOUT.searchFlushMarker}\` on that \`<main>\`. Never add that vertical padding to home heroes or listing galleries.`;
|
|
2342
2337
|
}
|
|
2343
2338
|
var REACT_SDK_NAMED_IMPORT_RE = /(?:^|[\n;])\s*import\s+(?!type\b)(?:type\s+)?\{([^}]+)\}\s+from\s+['"]@garagem-ai\/site-sdk\/react['"]/g;
|
|
2344
2339
|
var SHOWCASE_LEADS_POST_URL_RE = /\/api\/sites\/[^\s"']*\/leads(?!\/ui)/;
|
|
@@ -2403,20 +2398,24 @@ function studioLeadInstruction() {
|
|
|
2403
2398
|
const names = STUDIO_SDK_CONTRACT.leadExports.join(", ");
|
|
2404
2399
|
return `Listing-detail visit/contact leads: import ${names} from \`${STUDIO_SDK_PACKAGE}\` (the main package, not \`/react\`). Call \`submitVisitLead\` / \`submitContactLead\` \u2014 never concatenate a leads webhook URL and never POST the Showcase demo leads route.`;
|
|
2405
2400
|
}
|
|
2401
|
+
function studioListingCardInstruction() {
|
|
2402
|
+
const names = STUDIO_SDK_CONTRACT.listingCardExports.join(", ");
|
|
2403
|
+
return `Listing card (site-wide). WRITE \`components/garagem/listing-card.tsx\` \u2014 one module for home, search results, and similar listings. Do not invent a second card. From \`${STUDIO_SDK_PACKAGE}\` import ${names}. \`const model = toListingCardModel(listing)\`. href is \`model.href\` / \`listingPublicPath(listing)\` \u2014 never \`listing.id\` or \`property.id\`. Skip the card or omit the link when href is empty (no \`href=""\`, no \`href="#"\`). Must show title (\`model.title\`) and price (\`model.priceLabel\` \u2014 \u201CSob consulta\u201D when private; \`model.pricePeriod\` \u201C/m\xEAs\u201D when present, omit when null). Photo: \`model.coverSrc\` as img \`src\`, alt \`model.coverAlt\`; skip the img when cover is missing; an empty-photo block is allowed; never Unsplash, \`/placeholder.svg\`, or invented \`?query=\` images. Show when present, omit the line when missing: \`locationLabel\` (else \`propertyType\`), \`listingBusinessLabel\` / \`model.businessLabel\`, bedrooms, bathrooms, parkingSpaces, area via \`formatAreaM2\`. Never interpolate the listing object as a React child. Design is free (grid vs carousel vs mosaic; radius is site \`--radius\`). WRITE \`components/garagem/listing-card-skeleton.tsx\` for the search \`<Suspense>\` fallback \u2014 it should suggest the card surface, never the text \u201CCarregando im\xF3veis\u2026\u201D. Do not \`if (search.loading) return\` that skeleton inside the search client.`;
|
|
2404
|
+
}
|
|
2406
2405
|
function studioListingDetailInstruction() {
|
|
2407
2406
|
const names = STUDIO_SDK_CONTRACT.listingDetailExports.join(", ");
|
|
2408
|
-
return `Listing detail: import ${names} from \`${STUDIO_SDK_PACKAGE}
|
|
2407
|
+
return `Listing detail: import ${names} from \`${STUDIO_SDK_PACKAGE}\`. Render \`listingDetailModel\` leaves: \`model.facts[].label\` / \`.text\`, \`model.values[].label\` / \`.text\`, \`model.location.label\` / \`model.location.mapsHref\`, breadcrumb \`.href\` (search prefixes of \`listing.path\`). The pre\xE7o / sob consulta entry is the primary value; condom\xEDnio and IPTU are secondary and omitted when missing. \`model.description\` is the complete string \u2014 do not slice. A collapsed disclosure uses a container (max-height or overflow), not a cut of the string. Never interpolate \`model.location\`, \`model.facts\`, \`model.values\`, \`model.breadcrumb\`, or \`model.mediaOverlays\` as a React child. Video/tour: \`model.mediaOverlays\` as hash links (\`#video\` / \`#tour\`); player src is \`embedSrc\`; fullscreen overlay closes with browser back; omit when that overlay is absent. Do not key the page on \`location.hash\`. Similar listings: \`getSimilarListings({ siteId, listingId, baseUrl })\` plus the site listing-card module; hide the section when empty. Do not invent a local recommendation loop.`;
|
|
2409
2408
|
}
|
|
2410
2409
|
function studioAmenityInstruction() {
|
|
2411
|
-
return `Listing amenities: Portuguese labels from \`listingAmenityGroups(listing)\` (
|
|
2410
|
+
return `Listing amenities: Portuguese labels from \`listingAmenityGroups(listing, dictionary)\` (pass the dictionary from \`getSearchUi()\` so section titles follow Campos). Each group is \`{ title, labels: string[] }\` \u2014 render \`group.title\` and \`group.labels.map((label) => \u2026)\` and hide a group when \`group.labels.length === 0\`. Do not hardcode section titles. Never print amenity ids, never invent a local label map, and never title a section "Comodidades da unidade".`;
|
|
2412
2411
|
}
|
|
2413
2412
|
function studioSearchInstruction() {
|
|
2414
2413
|
const reactNames = STUDIO_SDK_CONTRACT.reactExports.join(", ");
|
|
2415
2414
|
const libNames = STUDIO_SDK_CONTRACT.searchExports.join(", ");
|
|
2416
|
-
return `Search: import ${reactNames} from \`${STUDIO_SDK_PACKAGE}/react\`. From \`${STUDIO_SDK_PACKAGE}\` import ${libNames}. Call \`const search = usePublicSearch({ siteId, baseUrl: GARAGEM_API_BASE })\` in a client component inside \`<Suspense>\` (\`useSearchParams\`). Compose the page UI in the app \u2014 do not paste a canonical search TSX. Required chrome (design is free; omit none): query (\`qDraft\` / \`setQDraft\` / form \`preventDefault\` + \`submitQuery\`), heading (count span FIRST then h1 from \`searchResultsHeading(search.pathFilters, search.schema?.dictionary, search.locationNames)\` \u2014 never \`searchResultsHeading({})\`), toolbar (\`toolbarFilterIds\` + \`applyFilter\`; range \u201CAtualizar\u201D on that toolbar item only) vs sheet (\`visibleSearchFilters\` extras, \`stageFilter\`, one footer \`applyStaged\`), sort (\`searchSortOptions\` + \`setSort\`), grid (\`listings.map\` +
|
|
2415
|
+
return `Search: import ${reactNames} from \`${STUDIO_SDK_PACKAGE}/react\`. From \`${STUDIO_SDK_PACKAGE}\` import ${libNames}. Call \`const search = usePublicSearch({ siteId, baseUrl: GARAGEM_API_BASE })\` in a client component inside \`<Suspense>\` (\`useSearchParams\`). Compose the page UI in the app \u2014 do not paste a canonical search TSX. Required chrome (design is free; omit none): query (\`qDraft\` / \`setQDraft\` / form \`preventDefault\` + \`submitQuery\`), heading (count span FIRST then h1 from \`searchResultsHeading(search.pathFilters, search.schema?.dictionary, search.locationNames)\` \u2014 never \`searchResultsHeading({})\`), toolbar (\`toolbarFilterIds\` + \`applyFilter\`; range \u201CAtualizar\u201D on that toolbar item only) vs sheet (\`visibleSearchFilters\` extras, \`stageFilter\`, one footer \`applyStaged\`), sort (\`searchSortOptions\` + \`setSort\`; first option id is \`""\` / \u201CMais relevantes\u201D \u2014 map **only** that empty id to Select sentinel \`"relevancia"\` (\`opt.id || "relevancia"\`), never \`SelectItem value=""\` and never give \u201CMais recentes\u201D (\`id: "recentes"\`, \`?ordenar=recentes\`) that sentinel; on change \`setSort(id === "relevancia" ? "" : id)\` so recentes stays recentes. Closed trigger shows the option \`.label\`, never \`{search.applied.sort}\`), grid (\`listings.map\` + the site listing-card module; listing-card-skeleton is only the Suspense fallback; do not \`throw\` in that chrome), pagination (\`paginationPages\` + \`hrefWithExplicitPage\`). Never interpolate \`schema\`, \`pathFilters\`, or a filter object as a React child. \`queryListings\` key is \`params\`. The URL is the document. Count text is \`{search.total}\` only. Heading is one row; font size lives on the container and the span and h1 use \`font-size: inherit\`. Sort trigger shows the option label (\u201CMais relevantes\u201D when \`ordenar\` is absent), chevron at the end, same height as the toolbar controls. Toolbar ranges open a Popover form (not DropdownMenu \u2014 Menu typeahead swallows digit keys) whose submit calls \`applyFilter\`; the popup clips and the two inputs stay inside (\`min-w-0\`, no \`w-64\`). Reset min/max drafts when the popover opens and when the applied path range changes. The sheet omits toolbar ids (price, bedrooms) so Pre\xE7o is never a heading without inputs. Sheet DialogContent uses \`h-[min(640px,85dvh)]\` (not max-h alone) so the body ScrollArea can move. Tipo de im\xF3vel, caracter\xEDsticas and comodidades each use a nested ScrollArea with \`h-56 overflow-hidden\` (viewport \`h-full\`). Area is two inputs in schema order with no \u201CAplicar\u201D; the footer stages then applyStaged. Never read \`staged[filter.id]\` \u2014 path keys are \`bedrooms\` / \`listingType\` / \`bathrooms\`. Bedrooms Select reads \`pathFilters.bedrooms\` so \`/imoveis/4-quartos\` checks \`"4"\` and shows the same trigger dot as price. Bathrooms and parking pressed state uses \`pathFilterHasOption\`. Limpar keeps location plus toolbar price and bedrooms via \`clearStagedPathFilters\` and \`toolbarFilterIds\`; do not call \`clearStaged\` for that button. It enables only when staged has a path filter other than location and those kept toolbar ids. Each multi-select \`stageFilter\` value is one option id, never a concatenated slug; \`checked\` uses \`pathFilterHasOption\`. Listing type does not pass the clicked id: no path value shows every checkbox checked, unchecking one stages the other option's id, and the last box stays checked. Price inputs use formatGroupedInteger. The closed price and bedrooms triggers keep the filter label plus a dot when set \u2014 never the literal range. Empty price calls applyFilter(id, undefined); never send 0 or 1000000000. Area is a plain integer (not that mask). The results button stageFilter property_area_total with both drafts, then applyStaged. Never send 0 or 100000. Count buttons pass the option id (\`"2"\`), never the label \`"2+"\`. Property type, features, and amenities render in pt-BR label order. Do not set \`[data-slot="search-sort"] { flex-direction: column }\` in a \`<style>\` tag; that selector is row so the chevron sits beside the label. Empty copy: ${JSON.stringify(SEARCH_EMPTY_COPY)}`;
|
|
2417
2416
|
}
|
|
2418
2417
|
function studioChromeInstruction() {
|
|
2419
|
-
return `
|
|
2418
|
+
return `Card, skeleton, and search chrome markup are app-owned. Never \`import "${STUDIO_SDK_CONTRACT.forbiddenImports[0]}"\` \u2014 v0 preview cannot load npm CSS. Do not mount an SDK stylesheet. Theme with site tokens and \`--radius\` in \`app/globals.css\`.`;
|
|
2420
2419
|
}
|
|
2421
2420
|
function mentionsExportName(text, name) {
|
|
2422
2421
|
return new RegExp(`\\b${name}\\b`).test(text);
|
|
@@ -2614,8 +2613,6 @@ export {
|
|
|
2614
2613
|
LISTING_AMENITY_TITLES,
|
|
2615
2614
|
LISTING_DESCRIPTION_CLAMP,
|
|
2616
2615
|
LeadSubmitError,
|
|
2617
|
-
SEARCH_CSS_RECIPE,
|
|
2618
|
-
SEARCH_CSS_VARS,
|
|
2619
2616
|
SEARCH_EMPTY_COPY,
|
|
2620
2617
|
SEARCH_SORT_RELEVANCE,
|
|
2621
2618
|
STUDIO_DEFAULT_VISIT_SCHEDULE,
|
|
@@ -2704,6 +2701,7 @@ export {
|
|
|
2704
2701
|
studioDefaultLeadUi,
|
|
2705
2702
|
studioLayoutInstruction,
|
|
2706
2703
|
studioLeadInstruction,
|
|
2704
|
+
studioListingCardInstruction,
|
|
2707
2705
|
studioListingDetailInstruction,
|
|
2708
2706
|
studioSdkPinInstruction,
|
|
2709
2707
|
studioSearchInstruction,
|