@buyingbuddy/react 0.0.3 → 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Blue Fire Group
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # @buyingbuddy/react
2
2
 
3
- React components for embedding [BuyingBuddy](https://www.buyingbuddy.com) real-estate (IDX) widgets — featured galleries, search forms, interactive maps, property details, and more.
3
+ Add IDX/MLS integration to your site with React components that embed [Buying Buddy IDX CRM](https://www.buyingbuddy.com) widgets - MLS property search, map-based results, detailed listing pages, featured-listing showcases, lead-capture forms, and market reports.
4
4
 
5
- BuyingBuddy widgets ship as a `<bb-widget>` custom element loaded from the BuyingBuddy plugin script. This package wraps that element in idiomatic React components so you can add IDX search and listings to your site without writing script tags or touching the custom element directly.
5
+ Buying Buddy widgets ship as a `<bb-widget>` custom element loaded from the Buying Buddy plugin script. This package wraps that element in idiomatic React components so you can add IDX search and listings to your site without writing script tags or touching the custom element directly.
6
6
 
7
7
  Works with **React**, **Next.js**, and **Framer**.
8
8
 
9
- > **Is this the right package for you?** This is a React component library — you use it inside a build-tooled project (Vite, Next.js, Framer) that compiles JSX/TypeScript. If you just want to drop a widget into a plain HTML page with a `<script>` tag, you don't need this package — use the standard widget install from your BuyingBuddy dashboard (**Widgets → Plugin Installation and Setup**) instead.
9
+ > **Is this the right package for you?** This is a React component library — you use it inside a build-tooled project (Vite, Next.js, Framer) that compiles JSX/TypeScript. If you just want to drop a widget into a plain HTML page with a `<script>` tag, you don't need this package — use the standard widget install from your Buying Buddy account dashboard (**Widgets → Plugin Installation and Setup**) instead.
10
10
 
11
11
  ## Install
12
12
 
@@ -40,8 +40,10 @@ Then paste one of the examples below into `src/App.jsx` and save — the page re
40
40
 
41
41
  Before anything will render, you need both of these:
42
42
 
43
- 1. **A BuyingBuddy account ID (`acid`).** Find it in your dashboard under **Widgets → Plugin Installation and Setup**. There is no anonymous or "try it" mode — the widgets will not load without a valid account ID.
44
- 2. **Your domain authorized on that account.** An `acid` only works on domains registered to its account. Running on an unauthorized domain produces an "invalid account / unauthorized domain" error.
43
+ 1. **A Buying Buddy account activation key.** Find it in your dashboard under **Widgets → Plugin Installation and Setup**. There is no anonymous or "try it" mode — the widgets will not load without a valid activation key.
44
+ 2. **Your domain authorized on that account.** An activation key only works on domains registered to its account. Running on an unauthorized domain produces an "invalid account / unauthorized domain" error.
45
+
46
+ **Don't have an account yet?** [Start a free trial](https://buyingbuddy.com/free-trial-idx-plugin.php) or [buy a license](https://buyingbuddy.com/order) to get your activation key.
45
47
 
46
48
  ## Quick start
47
49
 
@@ -50,40 +52,34 @@ import { BuyingBuddyProvider, BuyingBuddyWidget } from "@buyingbuddy/react";
50
52
 
51
53
  export default function App() {
52
54
  return (
53
- <BuyingBuddyProvider accountId="your-account-id">
54
- <BuyingBuddyWidget type="FeaturedGallery" limit={12} />
55
+ <BuyingBuddyProvider activationKey="account-activation-key">
56
+ <BuyingBuddyWidget type="FeaturedGallery" filter="limit:12" />
55
57
  </BuyingBuddyProvider>
56
58
  );
57
59
  }
58
60
  ```
59
61
 
60
- Replace `your-account-id` with your `acid`. The provider loads the BuyingBuddy script for that account once, waits for it to initialize, then renders your widgets. While it loads it renders the `fallback` (nothing, by default).
62
+ Replace `account-activation-key` with your `activationKey`. The provider loads the Buying Buddy script for that account once, waits for it to initialize, then renders your widgets. While it loads it renders the `fallback` (nothing, by default).
61
63
 
62
64
  ## Examples
63
65
 
64
- **A full search experience.** `SearchResults` is self-contained — it renders the map, the listings, *and* its own search/filter controls. You do **not** add a separate `SearchForm` next to it:
66
+ **A standalone search form:**
65
67
 
66
68
  ```jsx
67
- <BuyingBuddyProvider accountId="your-account-id">
68
- <BuyingBuddyWidget type="SearchResults" />
69
+ <BuyingBuddyProvider activationKey="account-activation-key">
70
+ <BuyingBuddyWidget type="SearchForm" />
69
71
  </BuyingBuddyProvider>
70
72
  ```
71
73
 
72
- **A standalone search form.** Use `SearchForm` on its own — e.g. a search box on a landing or home page that sends visitors into your search results — not as a companion to `SearchResults`:
73
-
74
- ```jsx
75
- <BuyingBuddyWidget type="SearchForm" />
76
- ```
77
-
78
- **FeaturedGallery / FeaturedList show the account's own (featured) listings**, with `limit` capping how many:
74
+ **FeaturedGallery / FeaturedList show the account's own (featured) listings**, with a `limit:` token in the filter capping how many:
79
75
 
80
76
  ```jsx
81
- <BuyingBuddyWidget type="FeaturedGallery" limit={12} />
77
+ <BuyingBuddyWidget type="FeaturedGallery" filter="limit:12" />
82
78
  ```
83
79
 
84
- > If the account has no listings of its own — e.g. a brand-new or demo account — this renders empty ("0 Found"). To show listings from the broader MLS instead, give it a `filter` (below).
80
+ > If the account has no listings of its own — e.g. a brand-new or demo account — this renders empty ("0 Found"). To show listings from the broader MLS instead, add search criteria to the `filter` (below).
85
81
 
86
- **Driving a gallery by search criteria.** Pass a `filter` to query the MLS rather than the account's own listings. Criteria, sort, and count are `+`-joined tokens inside the string; use `FIELD()` for a field that accepts several values:
82
+ **Driving a gallery by search criteria.** All options are expressed as `+`-joined tokens inside a single `filter` string — criteria, sort, and count alike. Use `FIELD()` for a field that accepts several values:
87
83
 
88
84
  ```jsx
89
85
  {/* 6 listings over $300k, priced high-to-low */}
@@ -99,20 +95,19 @@ Replace `your-account-id` with your `acid`. The provider loads the BuyingBuddy s
99
95
  />
100
96
  ```
101
97
 
102
- **An interactive map with a fixed height:**
98
+ **A map-bound results list** (results widgets are driven by the search/cookie state, and `SearchResults` is bound to the map viewport):
103
99
 
104
100
  ```jsx
105
- <BuyingBuddyWidget type="InteractiveMap" style={{ height: "600px" }} />
101
+ <BuyingBuddyWidget
102
+ type="SearchResults"
103
+ filter="city:Denver+price_min:300000+orderby:price desc"
104
+ />
106
105
  ```
107
106
 
108
- **Run a callback when a widget finishes loading** (memoize the handler — see [Caveats](#caveats--limitations)):
107
+ **An interactive map with a fixed height:**
109
108
 
110
109
  ```jsx
111
- import { useCallback } from "react";
112
-
113
- const handleLoaded = useCallback(() => console.log("gallery ready"), []);
114
-
115
- <BuyingBuddyWidget type="FeaturedGallery" onWidgetLoaded={handleLoaded} />
110
+ <BuyingBuddyWidget type="InteractiveMap" style={{ height: "600px" }} />
116
111
  ```
117
112
 
118
113
  ### Next.js
@@ -128,7 +123,7 @@ import { BuyingBuddyProvider, BuyingBuddyWidget } from "@buyingbuddy/react";
128
123
 
129
124
  export default function Page() {
130
125
  return (
131
- <BuyingBuddyProvider accountId="your-account-id" fallback={<p>Loading…</p>}>
126
+ <BuyingBuddyProvider activationKey="account-activation-key" fallback={<p>Loading…</p>}>
132
127
  <BuyingBuddyWidget type="SearchResults" />
133
128
  </BuyingBuddyProvider>
134
129
  );
@@ -139,25 +134,22 @@ Because the widgets are client-only, their listing content is **not server-rende
139
134
 
140
135
  ### Framer
141
136
 
142
- A standalone, single-file widget for the [Framer](https://www.framer.com) website builder is included at [`framer/BuyingBuddyWidget.tsx`](framer/BuyingBuddyWidget.tsx). It bundles the script loading and adds Framer property controls (Account ID, widget type, filter, limit, sort order, featured-only), so you configure everything from Framer's design panel — no React code required.
137
+ A standalone, single-file widget for the [Framer](https://www.framer.com) website builder is included at [`framer/BuyingBuddyWidget.tsx`](framer/BuyingBuddyWidget.tsx). It bundles the script loading and adds Framer property controls (activation key, widget type, filter), so you configure everything from Framer's design panel — no React code required.
143
138
 
144
139
  1. Open the [`framer/BuyingBuddyWidget.tsx`](framer/BuyingBuddyWidget.tsx) file and copy its entire contents.
145
140
  2. In Framer, go to **Assets → Code → +** and paste it in.
146
- 3. Drag the component onto your canvas and set your **Account ID** in the property panel.
141
+ 3. Drag the component onto your canvas and set your **activation key** in the property panel.
147
142
 
148
143
  ## API
149
144
 
150
145
  ### `<BuyingBuddyProvider>`
151
146
 
152
- Loads the BuyingBuddy runtime for an account and makes it available to the widgets inside it. Use **one** provider, near the top of your tree.
147
+ Loads the Buying Buddy runtime for an account and makes it available to the widgets inside it. Use **one** provider, near the top of your tree.
153
148
 
154
149
  | Prop | Type | Default | Description |
155
150
  |------|------|---------|-------------|
156
- | `accountId` | `string` | — | **Required.** Your BuyingBuddy account ID (`acid`). |
157
- | `domain` | `string` | `"www.mbb2.com"` | Domain the runtime script, theme, and config load from — i.e. which environment's widget bundle you get (e.g. `"preview.mbb2.com"`). Only change if directed by BuyingBuddy support or for testing. |
158
- | `apiBaseUrl` | `string` | `https://{domain}` | Base URL for widget **data** requests (`window.MBB.apiBaseUrl`). Defaults to the same environment as `domain`; set explicitly to point data at a different environment independently of the bundle (e.g. a quick prod/preview flip for testing). |
159
- | `children` | `ReactNode` | — | Rendered once the script loads. |
160
- | `fallback` | `ReactNode` | `null` | Shown while the script is loading (not shown on error — see Caveats). |
151
+ | `activationKey` | `string` | — | **Required.** Your Buying Buddy account activation key. |
152
+ | `fallback` | `ReactNode` | `null` | Rendered while the script is loading. Not shown on error — see Caveats. |
161
153
 
162
154
  ### `<BuyingBuddyWidget>`
163
155
 
@@ -166,34 +158,11 @@ Renders a single widget. Must be a descendant of `<BuyingBuddyProvider>`.
166
158
  | Prop | Type | Description |
167
159
  |------|------|-------------|
168
160
  | `type` | `BuyingBuddyWidgetType` | **Required.** Widget to render — e.g. `"FeaturedGallery"`, `"SearchForm"`, `"SearchResults"`, `"InteractiveMap"`, `"SearchDetails"`. |
169
- | `filter` | `string` | Property filter in `FIELD()` or `key:value` syntax, e.g. `"FIELD(property_beds:3,4,5)"`. |
170
- | `limit` | `number \| string` | Maximum number of results to display. |
171
- | `order` | `string` | Sort order, e.g. `"price_asc"`, `"price_desc"`, `"date_listed_desc"`. |
172
- | `demo` | `boolean \| string` | Sets the `demo` attribute on the widget element. |
173
- | `featured` | `boolean \| string` | Show only featured listings. |
174
- | `style` | `React.CSSProperties` | Inline styles for the **wrapper `<div>`** (not forwarded to the widget element). |
175
- | `className` | `string` | CSS class(es) for the wrapper `<div>`. |
176
- | `id` | `string` | HTML `id` attribute set on the widget element. |
177
- | `onWidgetLoaded` | `() => void` | Fires once when the widget finishes loading. Memoize it (see Caveats). |
161
+ | `filter` | `string` | Property filter as `+`-joined tokens, e.g. `"city:Denver+FIELD(property_beds:3,4,5)+orderby:price desc+limit:9"`. |
162
+ | `style` | `React.CSSProperties` | Inline styles applied to the wrapper `<div>` (not forwarded to the widget element). Useful for sizing widgets such as `InteractiveMap`. |
178
163
 
179
164
  Common `type` values include `FeaturedGallery`, `FeaturedList`, `SearchForm`, `SearchResults`, `SearchDetails`, `QuickSearch`, `InteractiveMap`, `Communities`, `LcForm` (lead capture), `LoginPanel`, `Calculator`, `MarketReport`, `MarketStats`, `Brokers`, `OfficeRoster`, and `Disclaimer`. The `type` prop accepts any string, so newer widget types work even before they're added to the typings.
180
165
 
181
- ### `useBuyingBuddy()`
182
-
183
- Hook for reading the provider's load state. Throws if called outside a `<BuyingBuddyProvider>`.
184
-
185
- ```jsx
186
- import { useBuyingBuddy } from "@buyingbuddy/react";
187
-
188
- function Status() {
189
- const { isLoaded, error, accountId } = useBuyingBuddy();
190
- if (error) return <p>Failed to load: {error.message}</p>;
191
- return <p>{isLoaded ? `Ready (${accountId})` : "Loading…"}</p>;
192
- }
193
- ```
194
-
195
- Returns `{ isLoaded: boolean, error: Error | null, accountId: string }`. Note that when `error` is set, the provider also renders its own built-in error message in place of `children`.
196
-
197
166
  ### TypeScript
198
167
 
199
168
  The package is written in TypeScript and ships its own types. These are exported for your own typing needs:
@@ -209,13 +178,13 @@ import type {
209
178
 
210
179
  ## Caveats & limitations
211
180
 
212
- - **One account per page.** The BuyingBuddy script installs a single global, so a page is expected to use one `accountId`. Rendering two providers with different account IDs on the same page is not supported.
181
+ - **One account per page.** The Buying Buddy script installs a single global, so a page is expected to use one `activationKey`. Rendering two providers with different activation keys on the same page is not supported.
213
182
  - **Client-side only.** Widgets render in the browser after the script loads — nothing is server-rendered. There's no SSR/streaming output, so the listing content isn't in the initial HTML (relevant for SEO).
214
- - **Changing a prop rebuilds the widget.** Changing `type`, `filter`, `limit`, `order`, `demo`, `featured`, `id`, or `onWidgetLoaded` tears down and recreates the underlying `<bb-widget>`, losing in-widget state (map position, scroll, form input). In particular, pass a **stable** `onWidgetLoaded` (wrap it in `useCallback`) — an inline arrow function changes identity on every render and forces a rebuild each time.
183
+ - **Changing a prop rebuilds the widget.** Changing `type` or `filter` tears down and recreates the underlying `<bb-widget>`, losing in-widget state (map position, scroll, form input).
215
184
  - **The script persists after unmount.** Unmounting the provider does not remove the script or reset the global — remounting reuses the already-loaded runtime. This is intentional.
216
- - **Error UI is built in.** On load failure the provider renders its own inline error message in place of `children` (and `fallback` is not shown). You can read `error` from `useBuyingBuddy()`, but you can't currently replace the default error UI.
185
+ - **Error UI is built in.** On load failure the provider renders its own inline error message in place of `children` (and `fallback` is not shown). You can't currently replace the default error UI.
217
186
  - **ESM-only.** This package ships as ES modules only (no CommonJS build). Use it in a project with ESM/bundler support.
218
- - **Pre-release.** This package is `0.0.1` — the API may change.
187
+ - **Pre-release.** This package is `0.0.2` — the API may change.
219
188
 
220
189
  ## Development
221
190
 
@@ -228,4 +197,4 @@ npm test # run the unit tests (vitest)
228
197
 
229
198
  ## License
230
199
 
231
- Proprietary — `UNLICENSED`. © Blue Fire Group / BuyingBuddy.
200
+ [MIT](LICENSE) © Blue Fire Group / Buying Buddy
@@ -16,16 +16,16 @@ declare global {
16
16
  /**
17
17
  * Provides the BuyingBuddy runtime context to child components.
18
18
  *
19
- * Loads the MBB script tag for the given account ID and exposes
19
+ * Loads the MBB script tag for the given activation key and exposes
20
20
  * loading state via context. Widgets rendered as children will
21
21
  * wait for the script to load before mounting.
22
22
  *
23
23
  * @example
24
24
  * ```tsx
25
- * <BuyingBuddyProvider accountId="your-account-id">
25
+ * <BuyingBuddyProvider activationKey="your-activation-key">
26
26
  * <BuyingBuddyWidget type="FeaturedGallery" limit={12} />
27
27
  * </BuyingBuddyProvider>
28
28
  * ```
29
29
  */
30
- export declare function BuyingBuddyProvider({ accountId, domain, apiBaseUrl, children, fallback, }: BuyingBuddyProviderProps): import("react/jsx-runtime").JSX.Element;
30
+ export declare function BuyingBuddyProvider({ activationKey, domain, apiBaseUrl, children, fallback, }: BuyingBuddyProviderProps): import("react/jsx-runtime").JSX.Element;
31
31
  //# sourceMappingURL=BuyingBuddyProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BuyingBuddyProvider.d.ts","sourceRoot":"","sources":["../src/BuyingBuddyProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAIjF;;;GAGG;AACH,wBAAgB,cAAc,IAAI,uBAAuB,CAQxD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,GAAG,CAAC,EAAE;YACJ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAC7B,UAAU,EAAE,MAAM,CAAC;YACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;SACxB,CAAC;KACH;CACF;AAID;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,MAAuB,EACvB,UAAU,EACV,QAAQ,EACR,QAAe,GAChB,EAAE,wBAAwB,2CA+G1B"}
1
+ {"version":3,"file":"BuyingBuddyProvider.d.ts","sourceRoot":"","sources":["../src/BuyingBuddyProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAIjF;;;GAGG;AACH,wBAAgB,cAAc,IAAI,uBAAuB,CAQxD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,GAAG,CAAC,EAAE;YACJ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAC7B,UAAU,EAAE,MAAM,CAAC;YACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;SACxB,CAAC;KACH;CACF;AAID;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,MAAuB,EACvB,UAAU,EACV,QAAQ,EACR,QAAe,GAChB,EAAE,wBAAwB,2CA+G1B"}
@@ -16,18 +16,18 @@ const LOADED_ACCOUNTS = new Set();
16
16
  /**
17
17
  * Provides the BuyingBuddy runtime context to child components.
18
18
  *
19
- * Loads the MBB script tag for the given account ID and exposes
19
+ * Loads the MBB script tag for the given activation key and exposes
20
20
  * loading state via context. Widgets rendered as children will
21
21
  * wait for the script to load before mounting.
22
22
  *
23
23
  * @example
24
24
  * ```tsx
25
- * <BuyingBuddyProvider accountId="your-account-id">
25
+ * <BuyingBuddyProvider activationKey="your-activation-key">
26
26
  * <BuyingBuddyWidget type="FeaturedGallery" limit={12} />
27
27
  * </BuyingBuddyProvider>
28
28
  * ```
29
29
  */
30
- export function BuyingBuddyProvider({ accountId, domain = "www.mbb2.com", apiBaseUrl, children, fallback = null, }) {
30
+ export function BuyingBuddyProvider({ activationKey, domain = "www.mbb2.com", apiBaseUrl, children, fallback = null, }) {
31
31
  // Base URL for widget DATA requests. Defaults to the same environment as
32
32
  // `domain`, but can be set independently to point data at another
33
33
  // environment (e.g. a quick prod/preview flip for testing) without changing
@@ -48,13 +48,13 @@ export function BuyingBuddyProvider({ accountId, domain = "www.mbb2.com", apiBas
48
48
  // Set before the widget bundle (appended by the bootstrap, loaded
49
49
  // async) makes its first data request, so DATA follows this base URL.
50
50
  window.MBB.apiBaseUrl = resolvedApiBaseUrl;
51
- LOADED_ACCOUNTS.add(accountId);
51
+ LOADED_ACCOUNTS.add(activationKey);
52
52
  setIsLoaded(true);
53
53
  }
54
54
  else if ("displayInvalidAcidMsg" in window ||
55
55
  attempts >= 50) {
56
56
  setError(new Error("displayInvalidAcidMsg" in window
57
- ? "BuyingBuddy: Invalid Account ID or unauthorized domain. Check your accountId and ensure this domain is registered in your BuyingBuddy dashboard."
57
+ ? "BuyingBuddy: Invalid activation key or unauthorized domain. Check your activationKey and ensure this domain is registered in your BuyingBuddy dashboard."
58
58
  : "BuyingBuddy script loaded but MBB global was not initialized."));
59
59
  }
60
60
  else {
@@ -63,7 +63,7 @@ export function BuyingBuddyProvider({ accountId, domain = "www.mbb2.com", apiBas
63
63
  }
64
64
  };
65
65
  check();
66
- }, [accountId, resolvedApiBaseUrl]);
66
+ }, [activationKey, resolvedApiBaseUrl]);
67
67
  useEffect(() => {
68
68
  if (typeof window === "undefined")
69
69
  return;
@@ -73,11 +73,11 @@ export function BuyingBuddyProvider({ accountId, domain = "www.mbb2.com", apiBas
73
73
  // `domain` as the API so the theme follows the environment (production vs
74
74
  // preview) — if a given environment serves bad CSS, that's the
75
75
  // environment's problem, not this package's.
76
- const themeId = `mbb-theme-${accountId}`;
76
+ const themeId = `mbb-theme-${activationKey}`;
77
77
  if (!document.getElementById(themeId)) {
78
78
  const theme = document.createElement("script");
79
79
  theme.id = themeId;
80
- theme.src = `https://${domain}/version3/css/theme/acid/${accountId}`;
80
+ theme.src = `https://${domain}/version3/css/theme/acid/${activationKey}`;
81
81
  theme.async = true;
82
82
  document.head.appendChild(theme);
83
83
  }
@@ -87,11 +87,11 @@ export function BuyingBuddyProvider({ accountId, domain = "www.mbb2.com", apiBas
87
87
  window.MBB.apiBaseUrl = resolvedApiBaseUrl;
88
88
  }
89
89
  // Already loaded for this account
90
- if (window.MBB && LOADED_ACCOUNTS.has(accountId)) {
90
+ if (window.MBB && LOADED_ACCOUNTS.has(activationKey)) {
91
91
  setIsLoaded(true);
92
92
  return;
93
93
  }
94
- const scriptId = `mbb-script-${accountId}`;
94
+ const scriptId = `mbb-script-${activationKey}`;
95
95
  // Script tag already exists in the DOM
96
96
  if (document.getElementById(scriptId)) {
97
97
  handleLoad();
@@ -99,18 +99,18 @@ export function BuyingBuddyProvider({ accountId, domain = "www.mbb2.com", apiBas
99
99
  }
100
100
  const script = document.createElement("script");
101
101
  script.id = scriptId;
102
- script.src = `https://${domain}/mbbv3/index/acid/${accountId}`;
102
+ script.src = `https://${domain}/mbbv3/index/acid/${activationKey}`;
103
103
  script.async = true;
104
104
  script.onload = handleLoad;
105
105
  script.onerror = () => {
106
- setError(new Error(`Failed to load BuyingBuddy script for account: ${accountId}`));
106
+ setError(new Error(`Failed to load BuyingBuddy script for account: ${activationKey}`));
107
107
  };
108
108
  document.head.appendChild(script);
109
109
  return () => {
110
110
  // Don't remove the script on unmount — MBB global state is persistent
111
111
  };
112
- }, [accountId, domain, resolvedApiBaseUrl, handleLoad]);
113
- const value = { isLoaded, error, accountId };
112
+ }, [activationKey, domain, resolvedApiBaseUrl, handleLoad]);
113
+ const value = { isLoaded, error, activationKey };
114
114
  return (_jsx(BuyingBuddyContext.Provider, { value: value, children: error ? (_jsxs("div", { role: "alert", style: { color: "#b91c1c", padding: "12px", border: "1px solid #fca5a5", borderRadius: "6px", backgroundColor: "#fef2f2", fontFamily: "sans-serif", fontSize: "14px" }, children: [_jsx("strong", { children: "BuyingBuddy Error:" }), " ", error.message] })) : isLoaded ? children : fallback }));
115
115
  }
116
116
  //# sourceMappingURL=BuyingBuddyProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BuyingBuddyProvider.js","sourceRoot":"","sources":["../src/BuyingBuddyProvider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGpF,MAAM,kBAAkB,GAAG,aAAa,CAAiC,IAAI,CAAC,CAAC;AAE/E;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,MAAM,GAAG,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAC3C,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,4DAA4D,CAC7D,CAAC;IACJ,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAYD,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;AAE1C;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAClC,SAAS,EACT,MAAM,GAAG,cAAc,EACvB,UAAU,EACV,QAAQ,EACR,QAAQ,GAAG,IAAI,GACU;IACzB,yEAAyE;IACzE,kEAAkE;IAClE,4EAA4E;IAC5E,qCAAqC;IACrC,MAAM,kBAAkB,GAAG,UAAU,IAAI,WAAW,MAAM,EAAE,CAAC;IAC7D,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE;QAC5C,6DAA6D;QAC7D,OAAO,OAAO,MAAM,KAAK,WAAW,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;IACvD,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IAEvD,MAAM,UAA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C,MAAM,GAAG,UAAU,CAAC;QAC3B,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE;YACpB,QAAQ,CACN,IAAI,KAAK,CAAC,kDAAkD,aAAa,EAAE,CAAC,CAC7E,CAAC;QACJ,CAAC,CAAC;QAEF,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAElC,OAAO,GAAG,EAAE;YACV,sEAAsE;QACxE,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;IAE5D,MAAM,KAAK,GAA4B,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC;IAE1E,OAAO,CACL,KAAC,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACtC,KAAK,CAAC,CAAC,CAAC,CACP,eAAK,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,mBAAmB,EAAE,YAAY,EAAE,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,aACtL,kDAAmC,OAAE,KAAK,CAAC,OAAO,IAC9C,CACP,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,GACN,CAC/B,CAAC;AACJ,CAAC"}
package/dist/types.d.ts CHANGED
@@ -47,10 +47,9 @@ export interface BuyingBuddyWidgetProps {
47
47
  */
48
48
  export interface BuyingBuddyProviderProps {
49
49
  /**
50
- * Your BuyingBuddy account ID.
51
- * This is the `acid` value from your BuyingBuddy account.
50
+ * Your BuyingBuddy activation key — the `acid` value from your account.
52
51
  */
53
- accountId: string;
52
+ activationKey: string;
54
53
  /**
55
54
  * Domain the runtime script, theme, and config are loaded from.
56
55
  * Defaults to "www.mbb2.com". This selects which environment's widget
@@ -82,7 +81,7 @@ export interface BuyingBuddyContextValue {
82
81
  isLoaded: boolean;
83
82
  /** Error if the script failed to load. */
84
83
  error: Error | null;
85
- /** The account ID passed to the provider. */
86
- accountId: string;
84
+ /** The activation key passed to the provider. */
85
+ activationKey: string;
87
86
  }
88
87
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAC7B,aAAa,GACb,iBAAiB,GACjB,cAAc,GACd,gBAAgB,GAChB,YAAY,GACZ,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,aAAa,GACb,iBAAiB,GACjB,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,YAAY,GACZ,SAAS,GACT,cAAc,GACd,YAAY,GACZ,cAAc,GACd,aAAa,GACb,YAAY,GACZ,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,uCAAuC;IACvC,IAAI,EAAE,qBAAqB,CAAC;IAE5B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAExB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAExB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAE5B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,yBAAyB;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;C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;IAExB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAE5B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAE5B,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,yBAAyB;IACzB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,oDAAoD;IACpD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,mDAAmD;IACnD,QAAQ,EAAE,OAAO,CAAC;IAElB,0CAA0C;IAC1C,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAEpB,iDAAiD;IACjD,aAAa,EAAE,MAAM,CAAC;CACvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buyingbuddy/react",
3
- "version": "0.0.3",
3
+ "version": "0.1.0",
4
4
  "description": "React wrapper for BuyingBuddy Web Component widgets",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -37,13 +37,23 @@
37
37
  },
38
38
  "keywords": [
39
39
  "buyingbuddy",
40
- "react",
41
40
  "web-components",
41
+ "nextjs",
42
+ "framer",
42
43
  "real-estate",
43
44
  "idx",
44
- "mls"
45
+ "idx-search",
46
+ "mls",
47
+ "mls-integration",
48
+ "property-listings",
49
+ "property-search",
50
+ "real-estate-crm",
51
+ "real-estate-marketing"
45
52
  ],
46
- "license": "UNLICENSED",
53
+ "license": "MIT",
54
+ "publishConfig": {
55
+ "access": "public"
56
+ },
47
57
  "repository": {
48
58
  "type": "git",
49
59
  "url": "https://github.com/Blue-Fire-Group/buyingbuddy.git",