@garagem-ai/site-sdk 0.14.0 → 0.14.1
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/index.d.mts +30 -22
- package/dist/index.d.ts +30 -22
- package/dist/index.js +26 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -23
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js.map +1 -1
- package/dist/react.mjs.map +1 -1
- package/dist/{types-photo-search-CokmqLjn.d.mts → types-photo-search--3fBk3Cs.d.mts} +2 -3
- package/dist/{types-photo-search-CokmqLjn.d.ts → types-photo-search--3fBk3Cs.d.ts} +2 -3
- package/package.json +1 -1
- package/src/analytics-document.ts +3 -3
- package/src/search-engine.ts +2 -3
- package/src/studio-contract.ts +24 -21
package/dist/index.mjs
CHANGED
|
@@ -3244,9 +3244,11 @@ var STUDIO_SDK_CONTRACT = {
|
|
|
3244
3244
|
/**
|
|
3245
3245
|
* Exact pin for generated Studio sites. Must match a tarball already on
|
|
3246
3246
|
* npm — v0 installs this version. After a later changeset publishes, bump
|
|
3247
|
-
* this and move that
|
|
3248
|
-
* `
|
|
3249
|
-
* prompt-safe lists.
|
|
3247
|
+
* this and move names that tarball newly exports out of
|
|
3248
|
+
* `optionalReactExports` / `unpublishedSearchExports` /
|
|
3249
|
+
* `unpublishedPhoneExports` into the prompt-safe lists. Names that stay
|
|
3250
|
+
* forbidden after they ship (`searchChromeModel`, `rangeDraftFromPath`)
|
|
3251
|
+
* do not move. Do not bump here until that tarball is on npm.
|
|
3250
3252
|
* Phone mask helpers shipped in 0.6.0. Map search
|
|
3251
3253
|
* (`useMapSearch`, `searchListingsInBounds`) shipped in 0.9.0 — 0.7.0
|
|
3252
3254
|
* does not export them. Property registration shipped in 0.10.0.
|
|
@@ -3255,10 +3257,12 @@ var STUDIO_SDK_CONTRACT = {
|
|
|
3255
3257
|
* 0.12.0. Analytics catalog events (`trackListingView` plus the search
|
|
3256
3258
|
* and lead emitters) shipped in 0.13.0. `property_search` sends a city
|
|
3257
3259
|
* or neighborhood only when the site's location table knows it, as of
|
|
3258
|
-
* 0.13.2.
|
|
3259
|
-
*
|
|
3260
|
+
* 0.13.2. Development cards (`model.unitCount`, "A partir de" on a
|
|
3261
|
+
* public price) shipped in 0.14.0. Search filter helpers
|
|
3262
|
+
* (`visibleSearchFilters` / `toolbarFilterIds`) shipped in 0.4.12 and
|
|
3263
|
+
* remain on this pin.
|
|
3260
3264
|
*/
|
|
3261
|
-
minNpmVersion: "0.
|
|
3265
|
+
minNpmVersion: "0.14.0",
|
|
3262
3266
|
/** Historical: older tarballs inject card CSS when those components mount. */
|
|
3263
3267
|
selfInjectSince: "0.4.2",
|
|
3264
3268
|
chromeStrategy: "app-owned",
|
|
@@ -3360,8 +3364,9 @@ var STUDIO_SDK_CONTRACT = {
|
|
|
3360
3364
|
/**
|
|
3361
3365
|
* Names already on the pinned npm tarball (`minNpmVersion`) — safe for
|
|
3362
3366
|
* Studio prompts and completeness. Includes `visibleSearchFilters` +
|
|
3363
|
-
* `toolbarFilterIds` (shipped in 0.4.12)
|
|
3364
|
-
*
|
|
3367
|
+
* `toolbarFilterIds` (shipped in 0.4.12) and `unknownSearchLocation`
|
|
3368
|
+
* (shipped in 0.13.4). Do not confuse with `unpublishedSearchExports`
|
|
3369
|
+
* (`searchChromeModel`, …).
|
|
3365
3370
|
*/
|
|
3366
3371
|
searchExports: [
|
|
3367
3372
|
"searchResultsHeading",
|
|
@@ -3371,23 +3376,19 @@ var STUDIO_SDK_CONTRACT = {
|
|
|
3371
3376
|
"paginationPages",
|
|
3372
3377
|
"hrefWithExplicitPage",
|
|
3373
3378
|
"countOptionLabel",
|
|
3374
|
-
"countFacetChoices"
|
|
3379
|
+
"countFacetChoices",
|
|
3380
|
+
"unknownSearchLocation"
|
|
3375
3381
|
],
|
|
3376
3382
|
/**
|
|
3377
|
-
*
|
|
3378
|
-
* `
|
|
3379
|
-
*
|
|
3380
|
-
*
|
|
3383
|
+
* Exported by the pinned tarball, and still forbidden in prompts.
|
|
3384
|
+
* `searchChromeModel` is retired bundled chrome — the prompt names
|
|
3385
|
+
* `visibleSearchFilters` and `toolbarFilterIds` instead. `rangeDraftFromPath`
|
|
3386
|
+
* stays unnamed; price and area drafts stay local state. Helpers the pin
|
|
3387
|
+
* allows (`unknownSearchLocation`, `isAnalyticsDocumentUrl`) are not here.
|
|
3381
3388
|
*/
|
|
3382
3389
|
unpublishedSearchExports: [
|
|
3383
3390
|
"searchChromeModel",
|
|
3384
|
-
"rangeDraftFromPath"
|
|
3385
|
-
// `unknownSearchLocation` is in git. Prompts inline the same check with
|
|
3386
|
-
// `parseSearchPublicPath` + `locationsPath` until this name is on the pin.
|
|
3387
|
-
"unknownSearchLocation",
|
|
3388
|
-
// In git. The installed client inlines the check. Naming it in a prompt
|
|
3389
|
-
// makes v0 import it from the pinned tarball, which does not export it.
|
|
3390
|
-
"isAnalyticsDocumentUrl"
|
|
3391
|
+
"rangeDraftFromPath"
|
|
3391
3392
|
],
|
|
3392
3393
|
/**
|
|
3393
3394
|
* maps.fndn.ai helpers (static map, street view, boundaries, travel
|
|
@@ -3475,10 +3476,12 @@ var STUDIO_SDK_CONTRACT = {
|
|
|
3475
3476
|
/**
|
|
3476
3477
|
* Listing-view analytics. Search and lead catalog events need no prompt:
|
|
3477
3478
|
* `usePublicSearch` and the lead helpers emit them from `analyticsSince`.
|
|
3478
|
-
*
|
|
3479
|
-
*
|
|
3479
|
+
* `isAnalyticsDocumentUrl` shipped in 0.13.6 and is prompt-safe on this
|
|
3480
|
+
* pin (it is not a search import). Below `analyticsSince`,
|
|
3481
|
+
* `studioListingViewInstruction` prints nothing and
|
|
3482
|
+
* `studioCodegenContractViolations` flags these names.
|
|
3480
3483
|
*/
|
|
3481
|
-
analyticsExports: ["trackListingView"],
|
|
3484
|
+
analyticsExports: ["trackListingView", "isAnalyticsDocumentUrl"],
|
|
3482
3485
|
analyticsSince: "0.13.0",
|
|
3483
3486
|
/**
|
|
3484
3487
|
* Development cards (`model.unitCount`, "A partir de" on `priceLabel`).
|