@buyingbuddy/react 0.1.1 → 0.1.2
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 +15 -13
- package/package.json +2 -2
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 →
|
|
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
|
-
**
|
|
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
|
-
>
|
|
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
|
-
**
|
|
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
|
-
**
|
|
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
|
-
**
|
|
109
|
+
**Interactive map with a fixed height:**
|
|
108
110
|
|
|
109
111
|
```jsx
|
|
110
112
|
<BuyingBuddyWidget type="InteractiveMap" style={{ height: "600px" }} />
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buyingbuddy/react",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.2",
|
|
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",
|