@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.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 release's names from `optionalReactExports` /
3248
- * `unpublishedSearchExports` / `unpublishedPhoneExports` into the
3249
- * prompt-safe lists. Do not bump here until that tarball is on npm.
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. Search filter helpers (`visibleSearchFilters` /
3259
- * `toolbarFilterIds`) shipped in 0.4.12 and remain on this pin.
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.13.2",
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). Do not confuse with
3364
- * `unpublishedSearchExports` (`searchChromeModel`, …).
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
- * Main-package helpers in git / newer tarballs but not required on
3378
- * `minNpmVersion`. Prompts must not mention these until the pin bumps and
3379
- * they move into `searchExports`. Independent of the 0.4.12 filter helpers
3380
- * already listed in `searchExports`.
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
- * Below it `studioListingViewInstruction` prints nothing and
3479
- * `studioCodegenContractViolations` flags `trackListingView`.
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`).