@garagem-ai/site-sdk 0.9.0 → 0.9.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/react.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { j as SearchUi, J as Listing, ai as LocationNameTables, S as SearchPathFilters, A as AppliedSearchQuery, bn as MapSearchSubscription, an as MapBounds, ar as MapPolygon, at as MapSearchResult, aq as MapPinCluster, O as PhotoSearchItem, U as ListingWithMatchedPhoto, F as FetchLike } from './types-photo-search-D88oevZv.mjs';
1
+ import { j as SearchUi, J as Listing, ai as LocationNameTables, S as SearchPathFilters, A as AppliedSearchQuery, bn as MapSearchSubscription, an as MapBounds, ar as MapPolygon, at as MapSearchResult, aq as MapPinCluster, O as PhotoSearchItem, U as ListingWithMatchedPhoto, F as FetchLike } from './types-photo-search-DIoV75SN.mjs';
2
2
 
3
3
  type SiteIdInput = string | Promise<string> | (() => string | Promise<string>);
4
4
  type PublicSearchSnapshot = {
package/dist/react.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { j as SearchUi, J as Listing, ai as LocationNameTables, S as SearchPathFilters, A as AppliedSearchQuery, bn as MapSearchSubscription, an as MapBounds, ar as MapPolygon, at as MapSearchResult, aq as MapPinCluster, O as PhotoSearchItem, U as ListingWithMatchedPhoto, F as FetchLike } from './types-photo-search-D88oevZv.js';
1
+ import { j as SearchUi, J as Listing, ai as LocationNameTables, S as SearchPathFilters, A as AppliedSearchQuery, bn as MapSearchSubscription, an as MapBounds, ar as MapPolygon, at as MapSearchResult, aq as MapPinCluster, O as PhotoSearchItem, U as ListingWithMatchedPhoto, F as FetchLike } from './types-photo-search-DIoV75SN.js';
2
2
 
3
3
  type SiteIdInput = string | Promise<string> | (() => string | Promise<string>);
4
4
  type PublicSearchSnapshot = {
package/dist/react.js CHANGED
@@ -1540,15 +1540,15 @@ function usablePin(pin) {
1540
1540
  return finitePair(pin.lat, pin.lng) !== null && !(pin.lat === 0 && pin.lng === 0);
1541
1541
  }
1542
1542
  function groupPrecision(group) {
1543
- let min = 12;
1543
+ let max = 0;
1544
1544
  for (const pin of group) {
1545
- min = Math.min(
1546
- min,
1545
+ max = Math.max(
1546
+ max,
1547
1547
  coordinateDecimals(pin.lat),
1548
1548
  coordinateDecimals(pin.lng)
1549
1549
  );
1550
1550
  }
1551
- return min;
1551
+ return max;
1552
1552
  }
1553
1553
  function multiCluster(key, group) {
1554
1554
  const lat = group.reduce((sum, pin) => sum + pin.lat, 0) / group.length;