@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 CHANGED
@@ -1,5 +1,5 @@
1
- import { L as ListingDetail, F as FetchLike, R as RequestNextOptions, a as Listing, b as ListingLocation, c as ListingMedia, S as SearchPathFilters, d as SearchUiDictionary, Q as QueryListingsFilters, A as AppliedSearchQuery, e as AppliedSearchChange, f as ListingFilters, g as ListingsResult, h as Site, i as SearchListingsParams, j as SearchListingsResult, k as SearchUi, l as QueryListingsParams, m as QueryListingsResult, n as SimilarListingsResult, C as CmsCollection, o as CmsEntriesResult, p as CmsEntry, B as BoundaryCity, q as BoundaryLayerOptions, M as MapsCoordinates, T as TravelTimeCacheOptions, r as TravelTimeCache, s as MapsFetchOptions, t as BoundaryLayer, u as ListingWithLocation, v as StaticMapOptions, w as StreetViewAvailabilityOptions, x as StreetViewAvailability, y as StreetViewOptions, N as NeighborhoodBoundaryOptions, z as NeighborhoodBoundary, D as TravelDestination, E as TravelMode, G as TravelTimeOptions, H as TravelTime, I as TravelTimesOptions, J as TravelTimeElement, P as PhotoSearchParams, K as PhotoSearchResult, O as PhotoSearchItem, U as ListingWithMatchedPhoto, V as MatchedListingPhoto } from './types-photo-search-CokmqLjn.mjs';
2
- export { W as BoundaryFeature, X as BoundaryFeatureCollection, Y as BoundaryGeometry, Z as BoundaryLayerUrlKind, _ as BoundarySourceLayer, $ as CmsEntryStatus, a0 as CmsFieldDefinition, a1 as CmsFieldType, a2 as CmsSeoData, a3 as FORBIDDEN_SEARCH_QUERY_KEYS, a4 as GaragemSdkError, a5 as GetCmsCollectionOptions, a6 as GetCmsCollectionsOptions, a7 as GetCmsEntriesOptions, a8 as GetCmsEntryOptions, a9 as GetListingOptions, aa as GetListingsOptions, ab as GetSearchUiOptions, ac as GetSimilarListingsOptions, ad as GetSiteOptions, ae as ListingBusinessType, af as ListingCardModel, ag as ListingPriceVisibility, ah as ListingPropertySummary, ai as LocationNameTables, aj as MAP_POLYGON_MAX_VERTICES, ak as MAP_SEARCH_DEFAULT_PAGE_SIZE, al as MAP_SEARCH_MAX_PAGE_SIZE, am as MAP_VIEWPORT_DEBOUNCE_MS, an as MapBounds, ao as MapBoundsSearchOptions, ap as MapBucket, aq as MapPin, ar as MapPinCluster, as as MapPolygon, at as MapPolygonSearchOptions, au as MapSearchResult, av as MapsBaseOptions, aw as QueryListingsLocation, ax as QueryListingsOptions, ay as SEARCH_EMPTY_COPY, az as SEARCH_SORT_RELEVANCE, aA as SearchChromeModel, aB as SearchListingsOptions, aC as SearchPathLocation, aD as SearchUiFilter, aE as SearchUiOption, aF as StaticMapStyle, aG as TOOLBAR_PRIMARY_FILTER_IDS, aH as applyPathFilter, aI as buildQueryListingsParams, aJ as canonicalizeSearchHref, aK as capMapPage, aL as capMapPageSize, aM as clearStagedPathFilters, aN as clusterBuckets, aO as clusterPins, aP as countFacetChoices, aQ as countOptionLabel, aR as displayPathLocation, aS as getCmsCollection, aT as getCmsCollections, aU as getCmsEntries, aV as getCmsEntry, aW as getListing, aX as getListings, aY as getSearchUi, aZ as getSimilarListings, a_ as getSite, a$ as hrefForAppliedChange, b0 as hrefForPathFilters, b1 as hrefWithExplicitPage, b2 as isListingDetailPath, b3 as isMapBounds, b4 as isMapPolygon, b5 as listingLocationLabel, b6 as mapClusterCellDegrees, b7 as mapSearchPins, b8 as paginationPages, b9 as pathFilterHasOption, ba as pathFilterValue, bb as publicSearchHref, bc as queryListings, bd as rangeDraftFromPath, be as readPublicSearch, bf as searchChromeModel, bg as searchHrefUsesLegacyFilterQuery, bh as searchListings, bi as searchListingsInBounds, bj as searchListingsInPolygon, bk as searchResultsHeading, bl as searchSortOptions, bm as toListingCardModel, bn as toolbarFilterIds, bo as unknownSearchLocation, bp as visibleSearchFilters } from './types-photo-search-CokmqLjn.mjs';
1
+ import { L as ListingDetail, F as FetchLike, R as RequestNextOptions, a as Listing, b as ListingLocation, c as ListingMedia, S as SearchPathFilters, d as SearchUiDictionary, Q as QueryListingsFilters, A as AppliedSearchQuery, e as AppliedSearchChange, f as ListingFilters, g as ListingsResult, h as Site, i as SearchListingsParams, j as SearchListingsResult, k as SearchUi, l as QueryListingsParams, m as QueryListingsResult, n as SimilarListingsResult, C as CmsCollection, o as CmsEntriesResult, p as CmsEntry, B as BoundaryCity, q as BoundaryLayerOptions, M as MapsCoordinates, T as TravelTimeCacheOptions, r as TravelTimeCache, s as MapsFetchOptions, t as BoundaryLayer, u as ListingWithLocation, v as StaticMapOptions, w as StreetViewAvailabilityOptions, x as StreetViewAvailability, y as StreetViewOptions, N as NeighborhoodBoundaryOptions, z as NeighborhoodBoundary, D as TravelDestination, E as TravelMode, G as TravelTimeOptions, H as TravelTime, I as TravelTimesOptions, J as TravelTimeElement, P as PhotoSearchParams, K as PhotoSearchResult, O as PhotoSearchItem, U as ListingWithMatchedPhoto, V as MatchedListingPhoto } from './types-photo-search--3fBk3Cs.mjs';
2
+ export { W as BoundaryFeature, X as BoundaryFeatureCollection, Y as BoundaryGeometry, Z as BoundaryLayerUrlKind, _ as BoundarySourceLayer, $ as CmsEntryStatus, a0 as CmsFieldDefinition, a1 as CmsFieldType, a2 as CmsSeoData, a3 as FORBIDDEN_SEARCH_QUERY_KEYS, a4 as GaragemSdkError, a5 as GetCmsCollectionOptions, a6 as GetCmsCollectionsOptions, a7 as GetCmsEntriesOptions, a8 as GetCmsEntryOptions, a9 as GetListingOptions, aa as GetListingsOptions, ab as GetSearchUiOptions, ac as GetSimilarListingsOptions, ad as GetSiteOptions, ae as ListingBusinessType, af as ListingCardModel, ag as ListingPriceVisibility, ah as ListingPropertySummary, ai as LocationNameTables, aj as MAP_POLYGON_MAX_VERTICES, ak as MAP_SEARCH_DEFAULT_PAGE_SIZE, al as MAP_SEARCH_MAX_PAGE_SIZE, am as MAP_VIEWPORT_DEBOUNCE_MS, an as MapBounds, ao as MapBoundsSearchOptions, ap as MapBucket, aq as MapPin, ar as MapPinCluster, as as MapPolygon, at as MapPolygonSearchOptions, au as MapSearchResult, av as MapsBaseOptions, aw as QueryListingsLocation, ax as QueryListingsOptions, ay as SEARCH_EMPTY_COPY, az as SEARCH_SORT_RELEVANCE, aA as SearchChromeModel, aB as SearchListingsOptions, aC as SearchPathLocation, aD as SearchUiFilter, aE as SearchUiOption, aF as StaticMapStyle, aG as TOOLBAR_PRIMARY_FILTER_IDS, aH as applyPathFilter, aI as buildQueryListingsParams, aJ as canonicalizeSearchHref, aK as capMapPage, aL as capMapPageSize, aM as clearStagedPathFilters, aN as clusterBuckets, aO as clusterPins, aP as countFacetChoices, aQ as countOptionLabel, aR as displayPathLocation, aS as getCmsCollection, aT as getCmsCollections, aU as getCmsEntries, aV as getCmsEntry, aW as getListing, aX as getListings, aY as getSearchUi, aZ as getSimilarListings, a_ as getSite, a$ as hrefForAppliedChange, b0 as hrefForPathFilters, b1 as hrefWithExplicitPage, b2 as isListingDetailPath, b3 as isMapBounds, b4 as isMapPolygon, b5 as listingLocationLabel, b6 as mapClusterCellDegrees, b7 as mapSearchPins, b8 as paginationPages, b9 as pathFilterHasOption, ba as pathFilterValue, bb as publicSearchHref, bc as queryListings, bd as rangeDraftFromPath, be as readPublicSearch, bf as searchChromeModel, bg as searchHrefUsesLegacyFilterQuery, bh as searchListings, bi as searchListingsInBounds, bj as searchListingsInPolygon, bk as searchResultsHeading, bl as searchSortOptions, bm as toListingCardModel, bn as toolbarFilterIds, bo as unknownSearchLocation, bp as visibleSearchFilters } from './types-photo-search--3fBk3Cs.mjs';
3
3
 
4
4
  /**
5
5
  * Types for the public Share Link API (`GET`/`POST /api/sites/share/{token}`).
@@ -153,9 +153,9 @@ declare function trackListingView(listing: Pick<Listing, "id" | "listingCode" |
153
153
  /**
154
154
  * A visit is a location, a listing, or a static page. Filter paths and
155
155
  * `page` greater than 1 are the crawl space Studio's catch-all answers.
156
- * `analyticsDocumentGuardSource()` is the same check pasted into the
157
- * generated client, which cannot import this helper from the pinned tarball.
158
- * Prompts must not name `isAnalyticsDocumentUrl`.
156
+ * The pinned tarball exports `isAnalyticsDocumentUrl` (since 0.13.6), so
157
+ * Studio prompts may name it. `analyticsDocumentGuardSource()` is the same
158
+ * check pasted into the generated client, which does not import the helper.
159
159
  */
160
160
  /** `true` when this URL is a page a person opened, not a crawl of filters. */
161
161
  declare function isAnalyticsDocumentUrl(href: string): boolean;
@@ -682,9 +682,11 @@ declare const STUDIO_SDK_CONTRACT: {
682
682
  /**
683
683
  * Exact pin for generated Studio sites. Must match a tarball already on
684
684
  * npm — v0 installs this version. After a later changeset publishes, bump
685
- * this and move that release's names from `optionalReactExports` /
686
- * `unpublishedSearchExports` / `unpublishedPhoneExports` into the
687
- * prompt-safe lists. Do not bump here until that tarball is on npm.
685
+ * this and move names that tarball newly exports out of
686
+ * `optionalReactExports` / `unpublishedSearchExports` /
687
+ * `unpublishedPhoneExports` into the prompt-safe lists. Names that stay
688
+ * forbidden after they ship (`searchChromeModel`, `rangeDraftFromPath`)
689
+ * do not move. Do not bump here until that tarball is on npm.
688
690
  * Phone mask helpers shipped in 0.6.0. Map search
689
691
  * (`useMapSearch`, `searchListingsInBounds`) shipped in 0.9.0 — 0.7.0
690
692
  * does not export them. Property registration shipped in 0.10.0.
@@ -693,10 +695,12 @@ declare const STUDIO_SDK_CONTRACT: {
693
695
  * 0.12.0. Analytics catalog events (`trackListingView` plus the search
694
696
  * and lead emitters) shipped in 0.13.0. `property_search` sends a city
695
697
  * or neighborhood only when the site's location table knows it, as of
696
- * 0.13.2. Search filter helpers (`visibleSearchFilters` /
697
- * `toolbarFilterIds`) shipped in 0.4.12 and remain on this pin.
698
+ * 0.13.2. Development cards (`model.unitCount`, "A partir de" on a
699
+ * public price) shipped in 0.14.0. Search filter helpers
700
+ * (`visibleSearchFilters` / `toolbarFilterIds`) shipped in 0.4.12 and
701
+ * remain on this pin.
698
702
  */
699
- readonly minNpmVersion: "0.13.2";
703
+ readonly minNpmVersion: "0.14.0";
700
704
  /** Historical: older tarballs inject card CSS when those components mount. */
701
705
  readonly selfInjectSince: "0.4.2";
702
706
  readonly chromeStrategy: "app-owned";
@@ -755,17 +759,19 @@ declare const STUDIO_SDK_CONTRACT: {
755
759
  /**
756
760
  * Names already on the pinned npm tarball (`minNpmVersion`) — safe for
757
761
  * Studio prompts and completeness. Includes `visibleSearchFilters` +
758
- * `toolbarFilterIds` (shipped in 0.4.12). Do not confuse with
759
- * `unpublishedSearchExports` (`searchChromeModel`, …).
762
+ * `toolbarFilterIds` (shipped in 0.4.12) and `unknownSearchLocation`
763
+ * (shipped in 0.13.4). Do not confuse with `unpublishedSearchExports`
764
+ * (`searchChromeModel`, …).
760
765
  */
761
- readonly searchExports: readonly ["searchResultsHeading", "searchSortOptions", "visibleSearchFilters", "toolbarFilterIds", "paginationPages", "hrefWithExplicitPage", "countOptionLabel", "countFacetChoices"];
766
+ readonly searchExports: readonly ["searchResultsHeading", "searchSortOptions", "visibleSearchFilters", "toolbarFilterIds", "paginationPages", "hrefWithExplicitPage", "countOptionLabel", "countFacetChoices", "unknownSearchLocation"];
762
767
  /**
763
- * Main-package helpers in git / newer tarballs but not required on
764
- * `minNpmVersion`. Prompts must not mention these until the pin bumps and
765
- * they move into `searchExports`. Independent of the 0.4.12 filter helpers
766
- * already listed in `searchExports`.
768
+ * Exported by the pinned tarball, and still forbidden in prompts.
769
+ * `searchChromeModel` is retired bundled chrome — the prompt names
770
+ * `visibleSearchFilters` and `toolbarFilterIds` instead. `rangeDraftFromPath`
771
+ * stays unnamed; price and area drafts stay local state. Helpers the pin
772
+ * allows (`unknownSearchLocation`, `isAnalyticsDocumentUrl`) are not here.
767
773
  */
768
- readonly unpublishedSearchExports: readonly ["searchChromeModel", "rangeDraftFromPath", "unknownSearchLocation", "isAnalyticsDocumentUrl"];
774
+ readonly unpublishedSearchExports: readonly ["searchChromeModel", "rangeDraftFromPath"];
769
775
  /**
770
776
  * maps.fndn.ai helpers (static map, street view, boundaries, travel
771
777
  * time) plus friendly map search. They ship in npm 0.9.0 (`mapsSince`).
@@ -826,10 +832,12 @@ declare const STUDIO_SDK_CONTRACT: {
826
832
  /**
827
833
  * Listing-view analytics. Search and lead catalog events need no prompt:
828
834
  * `usePublicSearch` and the lead helpers emit them from `analyticsSince`.
829
- * Below it `studioListingViewInstruction` prints nothing and
830
- * `studioCodegenContractViolations` flags `trackListingView`.
835
+ * `isAnalyticsDocumentUrl` shipped in 0.13.6 and is prompt-safe on this
836
+ * pin (it is not a search import). Below `analyticsSince`,
837
+ * `studioListingViewInstruction` prints nothing and
838
+ * `studioCodegenContractViolations` flags these names.
831
839
  */
832
- readonly analyticsExports: readonly ["trackListingView"];
840
+ readonly analyticsExports: readonly ["trackListingView", "isAnalyticsDocumentUrl"];
833
841
  readonly analyticsSince: "0.13.0";
834
842
  /**
835
843
  * Development cards (`model.unitCount`, "A partir de" on `priceLabel`).
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { L as ListingDetail, F as FetchLike, R as RequestNextOptions, a as Listing, b as ListingLocation, c as ListingMedia, S as SearchPathFilters, d as SearchUiDictionary, Q as QueryListingsFilters, A as AppliedSearchQuery, e as AppliedSearchChange, f as ListingFilters, g as ListingsResult, h as Site, i as SearchListingsParams, j as SearchListingsResult, k as SearchUi, l as QueryListingsParams, m as QueryListingsResult, n as SimilarListingsResult, C as CmsCollection, o as CmsEntriesResult, p as CmsEntry, B as BoundaryCity, q as BoundaryLayerOptions, M as MapsCoordinates, T as TravelTimeCacheOptions, r as TravelTimeCache, s as MapsFetchOptions, t as BoundaryLayer, u as ListingWithLocation, v as StaticMapOptions, w as StreetViewAvailabilityOptions, x as StreetViewAvailability, y as StreetViewOptions, N as NeighborhoodBoundaryOptions, z as NeighborhoodBoundary, D as TravelDestination, E as TravelMode, G as TravelTimeOptions, H as TravelTime, I as TravelTimesOptions, J as TravelTimeElement, P as PhotoSearchParams, K as PhotoSearchResult, O as PhotoSearchItem, U as ListingWithMatchedPhoto, V as MatchedListingPhoto } from './types-photo-search-CokmqLjn.js';
2
- export { W as BoundaryFeature, X as BoundaryFeatureCollection, Y as BoundaryGeometry, Z as BoundaryLayerUrlKind, _ as BoundarySourceLayer, $ as CmsEntryStatus, a0 as CmsFieldDefinition, a1 as CmsFieldType, a2 as CmsSeoData, a3 as FORBIDDEN_SEARCH_QUERY_KEYS, a4 as GaragemSdkError, a5 as GetCmsCollectionOptions, a6 as GetCmsCollectionsOptions, a7 as GetCmsEntriesOptions, a8 as GetCmsEntryOptions, a9 as GetListingOptions, aa as GetListingsOptions, ab as GetSearchUiOptions, ac as GetSimilarListingsOptions, ad as GetSiteOptions, ae as ListingBusinessType, af as ListingCardModel, ag as ListingPriceVisibility, ah as ListingPropertySummary, ai as LocationNameTables, aj as MAP_POLYGON_MAX_VERTICES, ak as MAP_SEARCH_DEFAULT_PAGE_SIZE, al as MAP_SEARCH_MAX_PAGE_SIZE, am as MAP_VIEWPORT_DEBOUNCE_MS, an as MapBounds, ao as MapBoundsSearchOptions, ap as MapBucket, aq as MapPin, ar as MapPinCluster, as as MapPolygon, at as MapPolygonSearchOptions, au as MapSearchResult, av as MapsBaseOptions, aw as QueryListingsLocation, ax as QueryListingsOptions, ay as SEARCH_EMPTY_COPY, az as SEARCH_SORT_RELEVANCE, aA as SearchChromeModel, aB as SearchListingsOptions, aC as SearchPathLocation, aD as SearchUiFilter, aE as SearchUiOption, aF as StaticMapStyle, aG as TOOLBAR_PRIMARY_FILTER_IDS, aH as applyPathFilter, aI as buildQueryListingsParams, aJ as canonicalizeSearchHref, aK as capMapPage, aL as capMapPageSize, aM as clearStagedPathFilters, aN as clusterBuckets, aO as clusterPins, aP as countFacetChoices, aQ as countOptionLabel, aR as displayPathLocation, aS as getCmsCollection, aT as getCmsCollections, aU as getCmsEntries, aV as getCmsEntry, aW as getListing, aX as getListings, aY as getSearchUi, aZ as getSimilarListings, a_ as getSite, a$ as hrefForAppliedChange, b0 as hrefForPathFilters, b1 as hrefWithExplicitPage, b2 as isListingDetailPath, b3 as isMapBounds, b4 as isMapPolygon, b5 as listingLocationLabel, b6 as mapClusterCellDegrees, b7 as mapSearchPins, b8 as paginationPages, b9 as pathFilterHasOption, ba as pathFilterValue, bb as publicSearchHref, bc as queryListings, bd as rangeDraftFromPath, be as readPublicSearch, bf as searchChromeModel, bg as searchHrefUsesLegacyFilterQuery, bh as searchListings, bi as searchListingsInBounds, bj as searchListingsInPolygon, bk as searchResultsHeading, bl as searchSortOptions, bm as toListingCardModel, bn as toolbarFilterIds, bo as unknownSearchLocation, bp as visibleSearchFilters } from './types-photo-search-CokmqLjn.js';
1
+ import { L as ListingDetail, F as FetchLike, R as RequestNextOptions, a as Listing, b as ListingLocation, c as ListingMedia, S as SearchPathFilters, d as SearchUiDictionary, Q as QueryListingsFilters, A as AppliedSearchQuery, e as AppliedSearchChange, f as ListingFilters, g as ListingsResult, h as Site, i as SearchListingsParams, j as SearchListingsResult, k as SearchUi, l as QueryListingsParams, m as QueryListingsResult, n as SimilarListingsResult, C as CmsCollection, o as CmsEntriesResult, p as CmsEntry, B as BoundaryCity, q as BoundaryLayerOptions, M as MapsCoordinates, T as TravelTimeCacheOptions, r as TravelTimeCache, s as MapsFetchOptions, t as BoundaryLayer, u as ListingWithLocation, v as StaticMapOptions, w as StreetViewAvailabilityOptions, x as StreetViewAvailability, y as StreetViewOptions, N as NeighborhoodBoundaryOptions, z as NeighborhoodBoundary, D as TravelDestination, E as TravelMode, G as TravelTimeOptions, H as TravelTime, I as TravelTimesOptions, J as TravelTimeElement, P as PhotoSearchParams, K as PhotoSearchResult, O as PhotoSearchItem, U as ListingWithMatchedPhoto, V as MatchedListingPhoto } from './types-photo-search--3fBk3Cs.js';
2
+ export { W as BoundaryFeature, X as BoundaryFeatureCollection, Y as BoundaryGeometry, Z as BoundaryLayerUrlKind, _ as BoundarySourceLayer, $ as CmsEntryStatus, a0 as CmsFieldDefinition, a1 as CmsFieldType, a2 as CmsSeoData, a3 as FORBIDDEN_SEARCH_QUERY_KEYS, a4 as GaragemSdkError, a5 as GetCmsCollectionOptions, a6 as GetCmsCollectionsOptions, a7 as GetCmsEntriesOptions, a8 as GetCmsEntryOptions, a9 as GetListingOptions, aa as GetListingsOptions, ab as GetSearchUiOptions, ac as GetSimilarListingsOptions, ad as GetSiteOptions, ae as ListingBusinessType, af as ListingCardModel, ag as ListingPriceVisibility, ah as ListingPropertySummary, ai as LocationNameTables, aj as MAP_POLYGON_MAX_VERTICES, ak as MAP_SEARCH_DEFAULT_PAGE_SIZE, al as MAP_SEARCH_MAX_PAGE_SIZE, am as MAP_VIEWPORT_DEBOUNCE_MS, an as MapBounds, ao as MapBoundsSearchOptions, ap as MapBucket, aq as MapPin, ar as MapPinCluster, as as MapPolygon, at as MapPolygonSearchOptions, au as MapSearchResult, av as MapsBaseOptions, aw as QueryListingsLocation, ax as QueryListingsOptions, ay as SEARCH_EMPTY_COPY, az as SEARCH_SORT_RELEVANCE, aA as SearchChromeModel, aB as SearchListingsOptions, aC as SearchPathLocation, aD as SearchUiFilter, aE as SearchUiOption, aF as StaticMapStyle, aG as TOOLBAR_PRIMARY_FILTER_IDS, aH as applyPathFilter, aI as buildQueryListingsParams, aJ as canonicalizeSearchHref, aK as capMapPage, aL as capMapPageSize, aM as clearStagedPathFilters, aN as clusterBuckets, aO as clusterPins, aP as countFacetChoices, aQ as countOptionLabel, aR as displayPathLocation, aS as getCmsCollection, aT as getCmsCollections, aU as getCmsEntries, aV as getCmsEntry, aW as getListing, aX as getListings, aY as getSearchUi, aZ as getSimilarListings, a_ as getSite, a$ as hrefForAppliedChange, b0 as hrefForPathFilters, b1 as hrefWithExplicitPage, b2 as isListingDetailPath, b3 as isMapBounds, b4 as isMapPolygon, b5 as listingLocationLabel, b6 as mapClusterCellDegrees, b7 as mapSearchPins, b8 as paginationPages, b9 as pathFilterHasOption, ba as pathFilterValue, bb as publicSearchHref, bc as queryListings, bd as rangeDraftFromPath, be as readPublicSearch, bf as searchChromeModel, bg as searchHrefUsesLegacyFilterQuery, bh as searchListings, bi as searchListingsInBounds, bj as searchListingsInPolygon, bk as searchResultsHeading, bl as searchSortOptions, bm as toListingCardModel, bn as toolbarFilterIds, bo as unknownSearchLocation, bp as visibleSearchFilters } from './types-photo-search--3fBk3Cs.js';
3
3
 
4
4
  /**
5
5
  * Types for the public Share Link API (`GET`/`POST /api/sites/share/{token}`).
@@ -153,9 +153,9 @@ declare function trackListingView(listing: Pick<Listing, "id" | "listingCode" |
153
153
  /**
154
154
  * A visit is a location, a listing, or a static page. Filter paths and
155
155
  * `page` greater than 1 are the crawl space Studio's catch-all answers.
156
- * `analyticsDocumentGuardSource()` is the same check pasted into the
157
- * generated client, which cannot import this helper from the pinned tarball.
158
- * Prompts must not name `isAnalyticsDocumentUrl`.
156
+ * The pinned tarball exports `isAnalyticsDocumentUrl` (since 0.13.6), so
157
+ * Studio prompts may name it. `analyticsDocumentGuardSource()` is the same
158
+ * check pasted into the generated client, which does not import the helper.
159
159
  */
160
160
  /** `true` when this URL is a page a person opened, not a crawl of filters. */
161
161
  declare function isAnalyticsDocumentUrl(href: string): boolean;
@@ -682,9 +682,11 @@ declare const STUDIO_SDK_CONTRACT: {
682
682
  /**
683
683
  * Exact pin for generated Studio sites. Must match a tarball already on
684
684
  * npm — v0 installs this version. After a later changeset publishes, bump
685
- * this and move that release's names from `optionalReactExports` /
686
- * `unpublishedSearchExports` / `unpublishedPhoneExports` into the
687
- * prompt-safe lists. Do not bump here until that tarball is on npm.
685
+ * this and move names that tarball newly exports out of
686
+ * `optionalReactExports` / `unpublishedSearchExports` /
687
+ * `unpublishedPhoneExports` into the prompt-safe lists. Names that stay
688
+ * forbidden after they ship (`searchChromeModel`, `rangeDraftFromPath`)
689
+ * do not move. Do not bump here until that tarball is on npm.
688
690
  * Phone mask helpers shipped in 0.6.0. Map search
689
691
  * (`useMapSearch`, `searchListingsInBounds`) shipped in 0.9.0 — 0.7.0
690
692
  * does not export them. Property registration shipped in 0.10.0.
@@ -693,10 +695,12 @@ declare const STUDIO_SDK_CONTRACT: {
693
695
  * 0.12.0. Analytics catalog events (`trackListingView` plus the search
694
696
  * and lead emitters) shipped in 0.13.0. `property_search` sends a city
695
697
  * or neighborhood only when the site's location table knows it, as of
696
- * 0.13.2. Search filter helpers (`visibleSearchFilters` /
697
- * `toolbarFilterIds`) shipped in 0.4.12 and remain on this pin.
698
+ * 0.13.2. Development cards (`model.unitCount`, "A partir de" on a
699
+ * public price) shipped in 0.14.0. Search filter helpers
700
+ * (`visibleSearchFilters` / `toolbarFilterIds`) shipped in 0.4.12 and
701
+ * remain on this pin.
698
702
  */
699
- readonly minNpmVersion: "0.13.2";
703
+ readonly minNpmVersion: "0.14.0";
700
704
  /** Historical: older tarballs inject card CSS when those components mount. */
701
705
  readonly selfInjectSince: "0.4.2";
702
706
  readonly chromeStrategy: "app-owned";
@@ -755,17 +759,19 @@ declare const STUDIO_SDK_CONTRACT: {
755
759
  /**
756
760
  * Names already on the pinned npm tarball (`minNpmVersion`) — safe for
757
761
  * Studio prompts and completeness. Includes `visibleSearchFilters` +
758
- * `toolbarFilterIds` (shipped in 0.4.12). Do not confuse with
759
- * `unpublishedSearchExports` (`searchChromeModel`, …).
762
+ * `toolbarFilterIds` (shipped in 0.4.12) and `unknownSearchLocation`
763
+ * (shipped in 0.13.4). Do not confuse with `unpublishedSearchExports`
764
+ * (`searchChromeModel`, …).
760
765
  */
761
- readonly searchExports: readonly ["searchResultsHeading", "searchSortOptions", "visibleSearchFilters", "toolbarFilterIds", "paginationPages", "hrefWithExplicitPage", "countOptionLabel", "countFacetChoices"];
766
+ readonly searchExports: readonly ["searchResultsHeading", "searchSortOptions", "visibleSearchFilters", "toolbarFilterIds", "paginationPages", "hrefWithExplicitPage", "countOptionLabel", "countFacetChoices", "unknownSearchLocation"];
762
767
  /**
763
- * Main-package helpers in git / newer tarballs but not required on
764
- * `minNpmVersion`. Prompts must not mention these until the pin bumps and
765
- * they move into `searchExports`. Independent of the 0.4.12 filter helpers
766
- * already listed in `searchExports`.
768
+ * Exported by the pinned tarball, and still forbidden in prompts.
769
+ * `searchChromeModel` is retired bundled chrome — the prompt names
770
+ * `visibleSearchFilters` and `toolbarFilterIds` instead. `rangeDraftFromPath`
771
+ * stays unnamed; price and area drafts stay local state. Helpers the pin
772
+ * allows (`unknownSearchLocation`, `isAnalyticsDocumentUrl`) are not here.
767
773
  */
768
- readonly unpublishedSearchExports: readonly ["searchChromeModel", "rangeDraftFromPath", "unknownSearchLocation", "isAnalyticsDocumentUrl"];
774
+ readonly unpublishedSearchExports: readonly ["searchChromeModel", "rangeDraftFromPath"];
769
775
  /**
770
776
  * maps.fndn.ai helpers (static map, street view, boundaries, travel
771
777
  * time) plus friendly map search. They ship in npm 0.9.0 (`mapsSince`).
@@ -826,10 +832,12 @@ declare const STUDIO_SDK_CONTRACT: {
826
832
  /**
827
833
  * Listing-view analytics. Search and lead catalog events need no prompt:
828
834
  * `usePublicSearch` and the lead helpers emit them from `analyticsSince`.
829
- * Below it `studioListingViewInstruction` prints nothing and
830
- * `studioCodegenContractViolations` flags `trackListingView`.
835
+ * `isAnalyticsDocumentUrl` shipped in 0.13.6 and is prompt-safe on this
836
+ * pin (it is not a search import). Below `analyticsSince`,
837
+ * `studioListingViewInstruction` prints nothing and
838
+ * `studioCodegenContractViolations` flags these names.
831
839
  */
832
- readonly analyticsExports: readonly ["trackListingView"];
840
+ readonly analyticsExports: readonly ["trackListingView", "isAnalyticsDocumentUrl"];
833
841
  readonly analyticsSince: "0.13.0";
834
842
  /**
835
843
  * Development cards (`model.unitCount`, "A partir de" on `priceLabel`).
package/dist/index.js CHANGED
@@ -3475,9 +3475,11 @@ var STUDIO_SDK_CONTRACT = {
3475
3475
  /**
3476
3476
  * Exact pin for generated Studio sites. Must match a tarball already on
3477
3477
  * npm — v0 installs this version. After a later changeset publishes, bump
3478
- * this and move that release's names from `optionalReactExports` /
3479
- * `unpublishedSearchExports` / `unpublishedPhoneExports` into the
3480
- * prompt-safe lists. Do not bump here until that tarball is on npm.
3478
+ * this and move names that tarball newly exports out of
3479
+ * `optionalReactExports` / `unpublishedSearchExports` /
3480
+ * `unpublishedPhoneExports` into the prompt-safe lists. Names that stay
3481
+ * forbidden after they ship (`searchChromeModel`, `rangeDraftFromPath`)
3482
+ * do not move. Do not bump here until that tarball is on npm.
3481
3483
  * Phone mask helpers shipped in 0.6.0. Map search
3482
3484
  * (`useMapSearch`, `searchListingsInBounds`) shipped in 0.9.0 — 0.7.0
3483
3485
  * does not export them. Property registration shipped in 0.10.0.
@@ -3486,10 +3488,12 @@ var STUDIO_SDK_CONTRACT = {
3486
3488
  * 0.12.0. Analytics catalog events (`trackListingView` plus the search
3487
3489
  * and lead emitters) shipped in 0.13.0. `property_search` sends a city
3488
3490
  * or neighborhood only when the site's location table knows it, as of
3489
- * 0.13.2. Search filter helpers (`visibleSearchFilters` /
3490
- * `toolbarFilterIds`) shipped in 0.4.12 and remain on this pin.
3491
+ * 0.13.2. Development cards (`model.unitCount`, "A partir de" on a
3492
+ * public price) shipped in 0.14.0. Search filter helpers
3493
+ * (`visibleSearchFilters` / `toolbarFilterIds`) shipped in 0.4.12 and
3494
+ * remain on this pin.
3491
3495
  */
3492
- minNpmVersion: "0.13.2",
3496
+ minNpmVersion: "0.14.0",
3493
3497
  /** Historical: older tarballs inject card CSS when those components mount. */
3494
3498
  selfInjectSince: "0.4.2",
3495
3499
  chromeStrategy: "app-owned",
@@ -3591,8 +3595,9 @@ var STUDIO_SDK_CONTRACT = {
3591
3595
  /**
3592
3596
  * Names already on the pinned npm tarball (`minNpmVersion`) — safe for
3593
3597
  * Studio prompts and completeness. Includes `visibleSearchFilters` +
3594
- * `toolbarFilterIds` (shipped in 0.4.12). Do not confuse with
3595
- * `unpublishedSearchExports` (`searchChromeModel`, …).
3598
+ * `toolbarFilterIds` (shipped in 0.4.12) and `unknownSearchLocation`
3599
+ * (shipped in 0.13.4). Do not confuse with `unpublishedSearchExports`
3600
+ * (`searchChromeModel`, …).
3596
3601
  */
3597
3602
  searchExports: [
3598
3603
  "searchResultsHeading",
@@ -3602,23 +3607,19 @@ var STUDIO_SDK_CONTRACT = {
3602
3607
  "paginationPages",
3603
3608
  "hrefWithExplicitPage",
3604
3609
  "countOptionLabel",
3605
- "countFacetChoices"
3610
+ "countFacetChoices",
3611
+ "unknownSearchLocation"
3606
3612
  ],
3607
3613
  /**
3608
- * Main-package helpers in git / newer tarballs but not required on
3609
- * `minNpmVersion`. Prompts must not mention these until the pin bumps and
3610
- * they move into `searchExports`. Independent of the 0.4.12 filter helpers
3611
- * already listed in `searchExports`.
3614
+ * Exported by the pinned tarball, and still forbidden in prompts.
3615
+ * `searchChromeModel` is retired bundled chrome — the prompt names
3616
+ * `visibleSearchFilters` and `toolbarFilterIds` instead. `rangeDraftFromPath`
3617
+ * stays unnamed; price and area drafts stay local state. Helpers the pin
3618
+ * allows (`unknownSearchLocation`, `isAnalyticsDocumentUrl`) are not here.
3612
3619
  */
3613
3620
  unpublishedSearchExports: [
3614
3621
  "searchChromeModel",
3615
- "rangeDraftFromPath",
3616
- // `unknownSearchLocation` is in git. Prompts inline the same check with
3617
- // `parseSearchPublicPath` + `locationsPath` until this name is on the pin.
3618
- "unknownSearchLocation",
3619
- // In git. The installed client inlines the check. Naming it in a prompt
3620
- // makes v0 import it from the pinned tarball, which does not export it.
3621
- "isAnalyticsDocumentUrl"
3622
+ "rangeDraftFromPath"
3622
3623
  ],
3623
3624
  /**
3624
3625
  * maps.fndn.ai helpers (static map, street view, boundaries, travel
@@ -3706,10 +3707,12 @@ var STUDIO_SDK_CONTRACT = {
3706
3707
  /**
3707
3708
  * Listing-view analytics. Search and lead catalog events need no prompt:
3708
3709
  * `usePublicSearch` and the lead helpers emit them from `analyticsSince`.
3709
- * Below it `studioListingViewInstruction` prints nothing and
3710
- * `studioCodegenContractViolations` flags `trackListingView`.
3710
+ * `isAnalyticsDocumentUrl` shipped in 0.13.6 and is prompt-safe on this
3711
+ * pin (it is not a search import). Below `analyticsSince`,
3712
+ * `studioListingViewInstruction` prints nothing and
3713
+ * `studioCodegenContractViolations` flags these names.
3711
3714
  */
3712
- analyticsExports: ["trackListingView"],
3715
+ analyticsExports: ["trackListingView", "isAnalyticsDocumentUrl"],
3713
3716
  analyticsSince: "0.13.0",
3714
3717
  /**
3715
3718
  * Development cards (`model.unitCount`, "A partir de" on `priceLabel`).