@buyingbuddy/react 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -6,7 +6,16 @@ Buying Buddy widgets ship as a `<bb-widget>` custom element loaded from the Buyi
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 Buying Buddy account 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 → Installation and Setup**) instead.
10
+
11
+ ## Prerequisites
12
+
13
+ Before anything will render, you need both of these:
14
+
15
+ 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.
16
+ 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.
17
+
18
+ **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.
10
19
 
11
20
  ## Install
12
21
 
@@ -36,14 +45,7 @@ npm run dev # opens a dev server, usually http://localhost:5173
36
45
 
37
46
  Then paste one of the examples below into `src/App.jsx` and save — the page reloads automatically.
38
47
 
39
- ## Prerequisites
40
-
41
- Before anything will render, you need both of these:
42
-
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
48
 
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.
47
49
 
48
50
  ## Quick start
49
51
 
@@ -71,15 +73,15 @@ Replace `account-activation-key` with your `activationKey`. The provider loads t
71
73
  </BuyingBuddyProvider>
72
74
  ```
73
75
 
74
- **FeaturedGallery / FeaturedList show the account's own (featured) listings**, with a `limit:` token in the filter capping how many:
76
+ **Display properties in grid or list layout**, with a `limit:` token in the filter capping how many:
75
77
 
76
78
  ```jsx
77
79
  <BuyingBuddyWidget type="FeaturedGallery" filter="limit:12" />
78
80
  ```
79
81
 
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).
82
+ > To show listings from the broader MLS instead, add search criteria to the `filter` (below). If the filter contains no other criteria then widgets show the account's own (featured) listings.
81
83
 
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:
84
+ **Display selected properties in a grid layout.** 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:
83
85
 
84
86
  ```jsx
85
87
  {/* 6 listings over $300k, priced high-to-low */}
@@ -95,7 +97,7 @@ Replace `account-activation-key` with your `activationKey`. The provider loads t
95
97
  />
96
98
  ```
97
99
 
98
- **A map-bound results list** (results widgets are driven by the search/cookie state, and `SearchResults` is bound to the map viewport):
100
+ **Search Results** (results widgets are driven by the search/cookie state, and `SearchResults` is bound to the map viewport):
99
101
 
100
102
  ```jsx
101
103
  <BuyingBuddyWidget
@@ -104,7 +106,7 @@ Replace `account-activation-key` with your `activationKey`. The provider loads t
104
106
  />
105
107
  ```
106
108
 
107
- **An interactive map with a fixed height:**
109
+ **Interactive map with a fixed height:**
108
110
 
109
111
  ```jsx
110
112
  <BuyingBuddyWidget type="InteractiveMap" style={{ height: "600px" }} />
@@ -159,7 +161,7 @@ Renders a single widget. Must be a descendant of `<BuyingBuddyProvider>`.
159
161
  |------|------|-------------|
160
162
  | `type` | `BuyingBuddyWidgetType` | **Required.** Widget to render — e.g. `"FeaturedGallery"`, `"SearchForm"`, `"SearchResults"`, `"InteractiveMap"`, `"SearchDetails"`. |
161
163
  | `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`. |
164
+ | `style` | `React.CSSProperties` | Inline styles applied directly to the `<bb-widget>` element. A `height` here sizes the widget (e.g. for `InteractiveMap` / `SearchResults`). |
163
165
 
164
166
  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.
165
167
 
@@ -1,20 +1,33 @@
1
+ import type { CSSProperties } from "react";
1
2
  import type { BuyingBuddyWidgetProps } from "./types";
2
3
  /**
3
4
  * React wrapper for the `<bb-widget>` custom element.
4
5
  *
5
- * Creates the custom element imperatively via document.createElement and
6
- * sets all attributes via setAttribute before appending to the DOM. This
7
- * guarantees attributes are present when connectedCallback fires,
8
- * regardless of React version (avoids React <19 attribute-handling issues).
6
+ * Renders the custom element directly — props become attributes and `style`
7
+ * (including `height`) lands straight on the element — matching the native
8
+ * Buying Buddy HTML/JS embed, with no extra wrapper `<div>`. `data-*`
9
+ * attributes are present when the element's `connectedCallback` runs (React
10
+ * emits them as attributes), so the widget initializes with the right type.
9
11
  *
10
12
  * Must be used within a `<BuyingBuddyProvider>`.
11
13
  *
12
14
  * @example
13
15
  * ```tsx
14
- * <BuyingBuddyWidget type="FeaturedGallery" filter="FIELD(property_beds:3,4,5)" limit={20} />
16
+ * <BuyingBuddyWidget type="FeaturedGallery" filter="city:Denver+limit:6" />
15
17
  * <BuyingBuddyWidget type="SearchForm" />
16
18
  * <BuyingBuddyWidget type="InteractiveMap" style={{ height: "600px" }} />
17
19
  * ```
18
20
  */
19
- export declare function BuyingBuddyWidget({ type, filter, limit, order, style, className, id, onWidgetLoaded, }: BuyingBuddyWidgetProps): import("react/jsx-runtime").JSX.Element | null;
21
+ export declare function BuyingBuddyWidget({ type, filter, limit, order, style, className, id, onWidgetLoaded, }: BuyingBuddyWidgetProps): import("react").ReactElement<{
22
+ key: string;
23
+ ref: (el: HTMLElement | null) => void;
24
+ id: string | undefined;
25
+ className: string | undefined;
26
+ style: CSSProperties;
27
+ suppressHydrationWarning: boolean;
28
+ "data-type": import("./types").BuyingBuddyWidgetType;
29
+ "data-filter": string | undefined;
30
+ "data-limit": string | undefined;
31
+ "data-order": string | undefined;
32
+ }, string | import("react").JSXElementConstructor<any>> | null;
20
33
  //# sourceMappingURL=BuyingBuddyWidget.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BuyingBuddyWidget.d.ts","sourceRoot":"","sources":["../src/BuyingBuddyWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAGtD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAK,EACL,SAAS,EACT,EAAE,EACF,cAAc,GACf,EAAE,sBAAsB,kDAyFxB"}
1
+ {"version":3,"file":"BuyingBuddyWidget.d.ts","sourceRoot":"","sources":["../src/BuyingBuddyWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAGtD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAK,EACL,SAAS,EACT,EAAE,EACF,cAAc,GACf,EAAE,sBAAsB;;cAgBY,WAAW,GAAG,IAAI;;;;;;;;;+DAkDtD"}
@@ -1,102 +1,85 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useRef, useEffect } from "react";
1
+ import { createElement, useCallback, useEffect, useRef } from "react";
3
2
  import { useBuyingBuddy } from "./BuyingBuddyProvider";
4
3
  /**
5
4
  * React wrapper for the `<bb-widget>` custom element.
6
5
  *
7
- * Creates the custom element imperatively via document.createElement and
8
- * sets all attributes via setAttribute before appending to the DOM. This
9
- * guarantees attributes are present when connectedCallback fires,
10
- * regardless of React version (avoids React <19 attribute-handling issues).
6
+ * Renders the custom element directly — props become attributes and `style`
7
+ * (including `height`) lands straight on the element — matching the native
8
+ * Buying Buddy HTML/JS embed, with no extra wrapper `<div>`. `data-*`
9
+ * attributes are present when the element's `connectedCallback` runs (React
10
+ * emits them as attributes), so the widget initializes with the right type.
11
11
  *
12
12
  * Must be used within a `<BuyingBuddyProvider>`.
13
13
  *
14
14
  * @example
15
15
  * ```tsx
16
- * <BuyingBuddyWidget type="FeaturedGallery" filter="FIELD(property_beds:3,4,5)" limit={20} />
16
+ * <BuyingBuddyWidget type="FeaturedGallery" filter="city:Denver+limit:6" />
17
17
  * <BuyingBuddyWidget type="SearchForm" />
18
18
  * <BuyingBuddyWidget type="InteractiveMap" style={{ height: "600px" }} />
19
19
  * ```
20
20
  */
21
21
  export function BuyingBuddyWidget({ type, filter, limit, order, style, className, id, onWidgetLoaded, }) {
22
- const containerRef = useRef(null);
23
22
  const { isLoaded } = useBuyingBuddy();
24
23
  // Keep the latest onWidgetLoaded in a ref so changing its identity (e.g. an
25
- // inline arrow created on every render) does NOT re-run the widget effect and
26
- // rebuild the <bb-widget> — which would drop map position / scroll / form
27
- // state and re-fire data requests.
24
+ // inline arrow created on every render) doesn't reattach listeners or re-init
25
+ // the widget.
28
26
  const onWidgetLoadedRef = useRef(onWidgetLoaded);
29
27
  useEffect(() => {
30
28
  onWidgetLoadedRef.current = onWidgetLoaded;
31
29
  }, [onWidgetLoaded]);
32
- useEffect(() => {
33
- const container = containerRef.current;
34
- if (!container || !isLoaded)
30
+ // Callback ref: wire up the `componentLoaded` listener when the element
31
+ // mounts (and again after a `key`-driven re-init). The event is NOT composed,
32
+ // so it's dispatched either on the host (search widgets) or inside the shadow
33
+ // root (most widgets) — listen on both and fire once.
34
+ const cleanupRef = useRef(null);
35
+ const widgetRef = useCallback((el) => {
36
+ cleanupRef.current?.();
37
+ cleanupRef.current = null;
38
+ if (!el)
35
39
  return;
36
- // Clear any previous widget (handles re-renders and prop changes)
37
- container.innerHTML = "";
38
- // Create the custom element imperatively — bypasses React's
39
- // inconsistent attribute handling on custom elements in React <19.
40
- // All attributes are set via setAttribute before DOM attachment,
41
- // ensuring connectedCallback sees them immediately.
42
- const widget = document.createElement("bb-widget");
43
- widget.setAttribute("data-type", type);
44
- if (filter !== undefined)
45
- widget.setAttribute("data-filter", filter);
46
- if (limit !== undefined)
47
- widget.setAttribute("limit", String(limit));
48
- if (order !== undefined)
49
- widget.setAttribute("order", order);
50
- if (id !== undefined)
51
- widget.setAttribute("id", id);
52
- // Make the custom element fill the wrapper so a size applied via `style`
53
- // (e.g. a fixed height for InteractiveMap / SearchResults) actually reaches
54
- // the widget and its internal sticky-map/scroll layout — mirroring native
55
- // usage where height is set on <bb-widget> directly. Without this the
56
- // element sizes to its content and overflows a height-constrained wrapper
57
- // (which then gets clipped → the widget looks broken).
58
- widget.style.display = "block";
59
- widget.style.width = "100%";
60
- widget.style.height = "100%";
61
- // Fires when the widget finishes loading. The runtime's `componentLoaded`
62
- // event is NOT composed, so depending on the widget it's dispatched either
63
- // on the host element (search widgets) or inside the shadow root (most
64
- // widgets), where it bubbles to the shadow root but not across to the host.
65
- // Listen on both, firing once, and read the callback from a ref so it isn't
66
- // an effect dependency (avoids needless rebuilds).
67
- let firedLoaded = false;
68
- const fireLoaded = () => {
69
- if (firedLoaded)
40
+ let fired = false;
41
+ const fire = () => {
42
+ if (fired)
70
43
  return;
71
- firedLoaded = true;
44
+ fired = true;
72
45
  onWidgetLoadedRef.current?.();
73
46
  };
74
- widget.addEventListener("componentLoaded", fireLoaded, { once: true });
75
- container.appendChild(widget);
76
- // The shadow root is created during connectedCallback; poll briefly for it,
77
- // then listen there for the in-shadow dispatch.
78
- let shadowTimer;
47
+ el.addEventListener("componentLoaded", fire, { once: true });
79
48
  let attempts = 0;
80
- const attachShadowListener = () => {
81
- if (firedLoaded)
49
+ let timer;
50
+ const attachShadow = () => {
51
+ if (fired)
82
52
  return;
83
- const root = widget.shadowRoot;
84
- if (root) {
85
- root.addEventListener("componentLoaded", fireLoaded, { once: true });
53
+ if (el.shadowRoot) {
54
+ el.shadowRoot.addEventListener("componentLoaded", fire, { once: true });
86
55
  }
87
- else if (attempts++ < 50) {
88
- shadowTimer = setTimeout(attachShadowListener, 50);
56
+ else if (attempts++ < 100) {
57
+ timer = setTimeout(attachShadow, 50);
89
58
  }
90
59
  };
91
- attachShadowListener();
92
- return () => {
93
- if (shadowTimer)
94
- clearTimeout(shadowTimer);
95
- container.innerHTML = "";
60
+ attachShadow();
61
+ cleanupRef.current = () => {
62
+ if (timer)
63
+ clearTimeout(timer);
96
64
  };
97
- }, [type, filter, limit, order, id, isLoaded]);
65
+ }, []);
98
66
  if (!isLoaded)
99
67
  return null;
100
- return (_jsx("div", { ref: containerRef, style: { width: "100%", ...style }, className: className, suppressHydrationWarning: true }));
68
+ const widgetStyle = { display: "block", width: "100%", ...style };
69
+ // `key` ties the element identity to its config, so changing type/filter/etc.
70
+ // remounts (re-inits) the widget rather than mutating a live one.
71
+ const key = `${type}|${filter ?? ""}|${limit ?? ""}|${order ?? ""}|${id ?? ""}`;
72
+ return createElement("bb-widget", {
73
+ key,
74
+ ref: widgetRef,
75
+ id,
76
+ className,
77
+ style: widgetStyle,
78
+ suppressHydrationWarning: true,
79
+ "data-type": type,
80
+ "data-filter": filter,
81
+ "data-limit": limit !== undefined ? String(limit) : undefined,
82
+ "data-order": order,
83
+ });
101
84
  }
102
85
  //# sourceMappingURL=BuyingBuddyWidget.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BuyingBuddyWidget.js","sourceRoot":"","sources":["../src/BuyingBuddyWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,iBAAiB,CAAC,EAChC,IAAI,EACJ,MAAM,EACN,KAAK,EACL,KAAK,EACL,KAAK,EACL,SAAS,EACT,EAAE,EACF,cAAc,GACS;IACvB,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,CAAC;IAEtC,4EAA4E;IAC5E,8EAA8E;IAC9E,0EAA0E;IAC1E,mCAAmC;IACnC,MAAM,iBAAiB,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;IACjD,SAAS,CAAC,GAAG,EAAE;QACb,iBAAiB,CAAC,OAAO,GAAG,cAAc,CAAC;IAC7C,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IAErB,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC;QACvC,IAAI,CAAC,SAAS,IAAI,CAAC,QAAQ;YAAE,OAAO;QAEpC,kEAAkE;QAClE,SAAS,CAAC,SAAS,GAAG,EAAE,CAAC;QAEzB,4DAA4D;QAC5D,mEAAmE;QACnE,iEAAiE;QACjE,oDAAoD;QACpD,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,C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AC,CAAC;YAC1E,CAAC;iBAAM,IAAI,QAAQ,EAAE,GAAG,GAAG,EAAE,CAAC;gBAC5B,KAAK,GAAG,UAAU,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YACvC,CAAC;QACH,CAAC,CAAC;QACF,YAAY,EAAE,CAAC;QAEf,UAAU,CAAC,OAAO,GAAG,GAAG,EAAE;YACxB,IAAI,KAAK;gBAAE,YAAY,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAE3B,MAAM,WAAW,GAAkB,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC;IAEjF,8EAA8E;IAC9E,kEAAkE;IAClE,MAAM,GAAG,GAAG,GAAG,IAAI,IAAI,MAAM,IAAI,EAAE,IAAI,KAAK,IAAI,EAAE,IAAI,KAAK,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC;IAEhF,OAAO,aAAa,CAAC,WAAW,EAAE;QAChC,GAAG;QACH,GAAG,EAAE,SAAS;QACd,EAAE;QACF,SAAS;QACT,KAAK,EAAE,WAAW;QAClB,wBAAwB,EAAE,IAAI;QAC9B,WAAW,EAAE,IAAI;QACjB,aAAa,EAAE,MAAM;QACrB,YAAY,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;QAC7D,YAAY,EAAE,KAAK;KACpB,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@buyingbuddy/react",
3
- "version": "0.1.1",
4
- "description": "React wrapper for BuyingBuddy Web Component widgets",
3
+ "version": "0.1.3",
4
+ "description": "IDX MLS real estate integration for React, Next.js, and Framer — property search, map results, listings, lead capture, and CRM via Buying Buddy.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",