@burdenoff/microfe-housingvista 2026.1102.2 → 2026.1102.4

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.
Files changed (70) hide show
  1. package/dist/housingvista/components/DocumentChip.d.ts +17 -0
  2. package/dist/housingvista/components/DocumentChip.d.ts.map +1 -0
  3. package/dist/housingvista/components/DocumentChip.js +68 -0
  4. package/dist/housingvista/components/DocumentChip.js.map +1 -0
  5. package/dist/housingvista/components/FileUploader.d.ts +2 -0
  6. package/dist/housingvista/components/FileUploader.d.ts.map +1 -1
  7. package/dist/housingvista/components/FileUploader.js +14 -14
  8. package/dist/housingvista/components/FileUploader.js.map +1 -1
  9. package/dist/housingvista/components/ServiceCategoryIcon.d.ts +13 -0
  10. package/dist/housingvista/components/ServiceCategoryIcon.d.ts.map +1 -0
  11. package/dist/housingvista/components/ServiceCategoryIcon.js +23 -0
  12. package/dist/housingvista/components/ServiceCategoryIcon.js.map +1 -0
  13. package/dist/housingvista/components/index.d.ts +1 -0
  14. package/dist/housingvista/components/index.d.ts.map +1 -1
  15. package/dist/housingvista/components/index.js +1 -0
  16. package/dist/housingvista/hooks/index.d.ts +9 -0
  17. package/dist/housingvista/hooks/index.d.ts.map +1 -1
  18. package/dist/housingvista/hooks/index.js +4 -2
  19. package/dist/housingvista/hooks/index.js.map +1 -1
  20. package/dist/housingvista/pages/investments/InvestmentDetailPage.d.ts.map +1 -1
  21. package/dist/housingvista/pages/investments/InvestmentDetailPage.js +345 -322
  22. package/dist/housingvista/pages/investments/InvestmentDetailPage.js.map +1 -1
  23. package/dist/housingvista/pages/investments/InvestmentDocuments.d.ts +11 -0
  24. package/dist/housingvista/pages/investments/InvestmentDocuments.d.ts.map +1 -0
  25. package/dist/housingvista/pages/investments/InvestmentDocuments.js +99 -0
  26. package/dist/housingvista/pages/investments/InvestmentDocuments.js.map +1 -0
  27. package/dist/housingvista/pages/legal/LegalPage.d.ts.map +1 -1
  28. package/dist/housingvista/pages/legal/LegalPage.js +87 -110
  29. package/dist/housingvista/pages/legal/LegalPage.js.map +1 -1
  30. package/dist/housingvista/pages/marketplace/MarketplacePage.d.ts.map +1 -1
  31. package/dist/housingvista/pages/marketplace/MarketplacePage.js +80 -113
  32. package/dist/housingvista/pages/marketplace/MarketplacePage.js.map +1 -1
  33. package/dist/housingvista/pages/marketplace/ServiceDetailPage.d.ts.map +1 -1
  34. package/dist/housingvista/pages/marketplace/ServiceDetailPage.js +127 -135
  35. package/dist/housingvista/pages/marketplace/ServiceDetailPage.js.map +1 -1
  36. package/dist/housingvista/pages/offers/OffersPage.d.ts.map +1 -1
  37. package/dist/housingvista/pages/offers/OffersPage.js +110 -176
  38. package/dist/housingvista/pages/offers/OffersPage.js.map +1 -1
  39. package/dist/housingvista/pages/offers/offerTimeline.d.ts +14 -0
  40. package/dist/housingvista/pages/offers/offerTimeline.d.ts.map +1 -0
  41. package/dist/housingvista/pages/offers/offerTimeline.js +77 -0
  42. package/dist/housingvista/pages/offers/offerTimeline.js.map +1 -0
  43. package/dist/housingvista/pages/properties/PropertyDetailPage.d.ts.map +1 -1
  44. package/dist/housingvista/pages/properties/PropertyDetailPage.js +262 -257
  45. package/dist/housingvista/pages/properties/PropertyDetailPage.js.map +1 -1
  46. package/dist/housingvista/pages/rental/ApplicationDocuments.d.ts.map +1 -1
  47. package/dist/housingvista/pages/rental/ApplicationDocuments.js +7 -34
  48. package/dist/housingvista/pages/rental/ApplicationDocuments.js.map +1 -1
  49. package/dist/housingvista/services/createSandboxAssistantTransport.d.ts.map +1 -1
  50. package/dist/housingvista/services/createSandboxAssistantTransport.js +12 -6
  51. package/dist/housingvista/services/createSandboxAssistantTransport.js.map +1 -1
  52. package/dist/housingvista/types/index.d.ts +3 -1
  53. package/dist/housingvista/types/index.d.ts.map +1 -1
  54. package/dist/housingvista/utils/assistantRetry.d.ts +31 -0
  55. package/dist/housingvista/utils/assistantRetry.d.ts.map +1 -0
  56. package/dist/housingvista/utils/assistantRetry.js +33 -0
  57. package/dist/housingvista/utils/assistantRetry.js.map +1 -0
  58. package/dist/housingvista/utils/investmentDocuments.d.ts +17 -0
  59. package/dist/housingvista/utils/investmentDocuments.d.ts.map +1 -0
  60. package/dist/housingvista/utils/investmentDocuments.js +12 -0
  61. package/dist/housingvista/utils/investmentDocuments.js.map +1 -0
  62. package/dist/housingvista/utils/serviceCategories.d.ts +105 -0
  63. package/dist/housingvista/utils/serviceCategories.d.ts.map +1 -0
  64. package/dist/housingvista/utils/serviceCategories.js +70 -0
  65. package/dist/housingvista/utils/serviceCategories.js.map +1 -0
  66. package/dist/housingvista/utils/similarProperties.d.ts +14 -0
  67. package/dist/housingvista/utils/similarProperties.d.ts.map +1 -0
  68. package/dist/housingvista/utils/similarProperties.js +17 -0
  69. package/dist/housingvista/utils/similarProperties.js.map +1 -0
  70. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serviceCategories.js","names":[],"sources":["../../../src/housingvista/utils/serviceCategories.ts"],"sourcesContent":["/**\n * Canonical legal and marketplace service categories (BOFF-9834, BOFF-9837). These keys are the same ones\n * wspace-housingvista-svc validates on create/update, so a service always lands under the tab that names it.\n * Rows stored with an older value (`repair`, `maintenance`, `renovation`, `title_verification`, …) match no tab and\n * stay visible under \"All\".\n * @module housingvista/utils/serviceCategories\n */\n\nexport const LEGAL_CATEGORIES = [\n { value: 'title_search', label: 'Title Verification' },\n { value: 'lease_review', label: 'Rent Agreement' },\n { value: 'dispute_resolution', label: 'Advisory' },\n { value: 'registration', label: 'Registration' },\n { value: 'compliance', label: 'Document Review' },\n { value: 'will_trust', label: 'Wills & Trusts' },\n] as const;\n\nexport const MARKETPLACE_CATEGORIES = [\n { value: 'plumbing', label: 'Plumbing' },\n { value: 'electrical', label: 'Electrical' },\n { value: 'cleaning', label: 'Cleaning' },\n { value: 'painting', label: 'Painting' },\n { value: 'security', label: 'Security' },\n { value: 'landscaping', label: 'Landscaping' },\n { value: 'pest_control', label: 'Pest Control' },\n { value: 'moving', label: 'Moving' },\n] as const;\n\nexport type LegalCategory = (typeof LEGAL_CATEGORIES)[number]['value'];\nexport type MarketplaceCategory = (typeof MARKETPLACE_CATEGORIES)[number]['value'];\n\n/** Filter-bar tabs: \"All\" (no filter) followed by every canonical category. */\nexport const LEGAL_CATEGORY_TABS = [{ value: 'all', label: 'All' }, ...LEGAL_CATEGORIES] as const;\nexport const MARKETPLACE_CATEGORY_TABS = [{ value: 'all', label: 'All' }, ...MARKETPLACE_CATEGORIES] as const;\n"],"mappings":";AAQA,IAAa,IAAmB;CAC9B;EAAE,OAAO;EAAgB,OAAO;EAAsB;CACtD;EAAE,OAAO;EAAgB,OAAO;EAAkB;CAClD;EAAE,OAAO;EAAsB,OAAO;EAAY;CAClD;EAAE,OAAO;EAAgB,OAAO;EAAgB;CAChD;EAAE,OAAO;EAAc,OAAO;EAAmB;CACjD;EAAE,OAAO;EAAc,OAAO;EAAkB;CACjD,EAEY,IAAyB;CACpC;EAAE,OAAO;EAAY,OAAO;EAAY;CACxC;EAAE,OAAO;EAAc,OAAO;EAAc;CAC5C;EAAE,OAAO;EAAY,OAAO;EAAY;CACxC;EAAE,OAAO;EAAY,OAAO;EAAY;CACxC;EAAE,OAAO;EAAY,OAAO;EAAY;CACxC;EAAE,OAAO;EAAe,OAAO;EAAe;CAC9C;EAAE,OAAO;EAAgB,OAAO;EAAgB;CAChD;EAAE,OAAO;EAAU,OAAO;EAAU;CACrC,EAMY,IAAsB,CAAC;CAAE,OAAO;CAAO,OAAO;CAAO,EAAE,GAAG,EAAiB,EAC3E,IAA4B,CAAC;CAAE,OAAO;CAAO,OAAO;CAAO,EAAE,GAAG,EAAuB"}
@@ -0,0 +1,14 @@
1
+ import { PropertyFilterInput } from '../hooks';
2
+ import { Property } from '../types';
3
+
4
+ export declare const SIMILAR_PROPERTIES_LIMIT = 3;
5
+ /** The service caps a page at 100; that is the most candidates one query can rank. */
6
+ export declare const SIMILAR_CANDIDATES_LIMIT = 100;
7
+ export declare const pickSimilarProperties: (current: Property, candidates: readonly Property[], limit?: number) => Property[];
8
+ /**
9
+ * Server-side filter for the candidate query: same city and listing status (for sale, or for rent/lease). Deliberately no
10
+ * price band: the ranking puts a same-category match first even when it is priced far from this listing, and a band would
11
+ * drop it before it could be ranked. The page limit (SIMILAR_CANDIDATES_LIMIT) is the only cap.
12
+ */
13
+ export declare const similarPropertiesFilter: (current: Property) => PropertyFilterInput;
14
+ //# sourceMappingURL=similarProperties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"similarProperties.d.ts","sourceRoot":"","sources":["../../../src/housingvista/utils/similarProperties.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAC1C,sFAAsF;AACtF,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAkB5C,eAAO,MAAM,qBAAqB,GAChC,SAAS,QAAQ,EACjB,YAAY,SAAS,QAAQ,EAAE,EAC/B,QAAO,MAAiC,KACvC,QAAQ,EAmB2B,CAAC;AAKvC;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAAI,SAAS,QAAQ,KAAG,mBAG1D,CAAC"}
@@ -0,0 +1,17 @@
1
+ var e = (e) => e.price.type === "sale" ? "sale" : "rent", t = (e, t) => {
2
+ let n = (e) => e.location.city.trim().toLowerCase(), r = n(e);
3
+ return r !== "" && r === n(t);
4
+ }, n = (e, t) => !e || !t || e <= 0 || t <= 0 ? Infinity : Math.abs(Math.log(e / t)), r = (r, a, o = 3) => a.filter((e) => e.id !== r.id).filter((n) => t(r, n) && e(r) === e(n)).map((e) => ({
5
+ candidate: e,
6
+ sameCategory: e.category === r.category ? 0 : 1,
7
+ sameType: e.type === r.type ? 0 : 1,
8
+ priceGap: n(r.price.amount, e.price.amount),
9
+ areaGap: n(r.specifications.totalArea, e.specifications.totalArea)
10
+ })).sort((e, t) => e.sameCategory - t.sameCategory || e.sameType - t.sameType || i(e.priceGap, t.priceGap) || i(e.areaGap, t.areaGap)).slice(0, Math.max(0, o)).map((e) => e.candidate), i = (e, t) => e === t ? 0 : e < t ? -1 : 1, a = (t) => ({
11
+ city: t.location.city.trim(),
12
+ status: e(t) === "sale" ? "for_sale" : "for_rent"
13
+ });
14
+ //#endregion
15
+ export { r as pickSimilarProperties, a as similarPropertiesFilter };
16
+
17
+ //# sourceMappingURL=similarProperties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"similarProperties.js","names":[],"sources":["../../../src/housingvista/utils/similarProperties.ts"],"sourcesContent":["/**\n * \"Similar Properties\" for the property detail page (BOFF-9840). A comparable listing is in the same city and the\n * same listing family (a sale next to sales; rent and lease together), and the closest ones in kind, price and\n * size come first. Pure, so the ranking is unit-tested.\n * @module housingvista/utils/similarProperties\n */\n\nimport type { PropertyFilterInput } from '../hooks';\nimport type { Property } from '../types';\n\nexport const SIMILAR_PROPERTIES_LIMIT = 3;\n/** The service caps a page at 100; that is the most candidates one query can rank. */\nexport const SIMILAR_CANDIDATES_LIMIT = 100;\n\ntype ListingFamily = 'sale' | 'rent';\n\nconst listingFamily = (property: Property): ListingFamily => (property.price.type === 'sale' ? 'sale' : 'rent');\n\nconst sameCity = (a: Property, b: Property): boolean => {\n const city = (property: Property) => property.location.city.trim().toLowerCase();\n const cityA = city(a);\n return cityA !== '' && cityA === city(b);\n};\n\n/** 0 when equal, growing with the ratio between the two; a missing or non-positive value counts as far apart. */\nconst ratioDistance = (a: number | undefined, b: number | undefined): number => {\n if (!a || !b || a <= 0 || b <= 0) return Number.POSITIVE_INFINITY;\n return Math.abs(Math.log(a / b));\n};\n\nexport const pickSimilarProperties = (\n current: Property,\n candidates: readonly Property[],\n limit: number = SIMILAR_PROPERTIES_LIMIT\n): Property[] =>\n candidates\n .filter((candidate) => candidate.id !== current.id)\n .filter((candidate) => sameCity(current, candidate) && listingFamily(current) === listingFamily(candidate))\n .map((candidate) => ({\n candidate,\n sameCategory: candidate.category === current.category ? 0 : 1,\n sameType: candidate.type === current.type ? 0 : 1,\n priceGap: ratioDistance(current.price.amount, candidate.price.amount),\n areaGap: ratioDistance(current.specifications.totalArea, candidate.specifications.totalArea),\n }))\n .sort(\n (a, b) =>\n a.sameCategory - b.sameCategory ||\n a.sameType - b.sameType ||\n compareGap(a.priceGap, b.priceGap) ||\n compareGap(a.areaGap, b.areaGap)\n )\n .slice(0, Math.max(0, limit))\n .map((ranked) => ranked.candidate);\n\n// Infinity - Infinity is NaN, which would make the sort order undefined.\nconst compareGap = (a: number, b: number): number => (a === b ? 0 : a < b ? -1 : 1);\n\n/**\n * Server-side filter for the candidate query: same city and listing status (for sale, or for rent/lease). Deliberately no\n * price band: the ranking puts a same-category match first even when it is priced far from this listing, and a band would\n * drop it before it could be ranked. The page limit (SIMILAR_CANDIDATES_LIMIT) is the only cap.\n */\nexport const similarPropertiesFilter = (current: Property): PropertyFilterInput => ({\n city: current.location.city.trim(),\n status: listingFamily(current) === 'sale' ? 'for_sale' : 'for_rent',\n});\n"],"mappings":"AAgBA,IAAM,KAAiB,MAAuC,EAAS,MAAM,SAAS,SAAS,SAAS,QAElG,KAAY,GAAa,MAAyB;CACtD,IAAM,KAAQ,MAAuB,EAAS,SAAS,KAAK,MAAM,CAAC,aAAa,EAC1E,IAAQ,EAAK,EAAE;AACrB,QAAO,MAAU,MAAM,MAAU,EAAK,EAAE;GAIpC,KAAiB,GAAuB,MACxC,CAAC,KAAK,CAAC,KAAK,KAAK,KAAK,KAAK,IAAU,WAClC,KAAK,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC,EAGrB,KACX,GACA,GACA,IAAA,MAEA,EACG,QAAQ,MAAc,EAAU,OAAO,EAAQ,GAAG,CAClD,QAAQ,MAAc,EAAS,GAAS,EAAU,IAAI,EAAc,EAAQ,KAAK,EAAc,EAAU,CAAC,CAC1G,KAAK,OAAe;CACnB;CACA,cAAc,EAAU,aAAa,EAAQ,WAAW,IAAI;CAC5D,UAAU,EAAU,SAAS,EAAQ,OAAO,IAAI;CAChD,UAAU,EAAc,EAAQ,MAAM,QAAQ,EAAU,MAAM,OAAO;CACrE,SAAS,EAAc,EAAQ,eAAe,WAAW,EAAU,eAAe,UAAU;CAC7F,EAAE,CACF,MACE,GAAG,MACF,EAAE,eAAe,EAAE,gBACnB,EAAE,WAAW,EAAE,YACf,EAAW,EAAE,UAAU,EAAE,SAAS,IAClC,EAAW,EAAE,SAAS,EAAE,QAAQ,CACnC,CACA,MAAM,GAAG,KAAK,IAAI,GAAG,EAAM,CAAC,CAC5B,KAAK,MAAW,EAAO,UAAU,EAGhC,KAAc,GAAW,MAAuB,MAAM,IAAI,IAAI,IAAI,IAAI,KAAK,GAOpE,KAA2B,OAA4C;CAClF,MAAM,EAAQ,SAAS,KAAK,MAAM;CAClC,QAAQ,EAAc,EAAQ,KAAK,SAAS,aAAa;CAC1D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-housingvista",
3
- "version": "2026.1102.2",
3
+ "version": "2026.1102.4",
4
4
  "description": "Burdenoff HousingVista Microfrontend - Comprehensive real estate platform for property management, investment, and transactions",
5
5
  "type": "module",
6
6
  "files": [