@builder.io/plugin-commercelayer 0.0.9-3 → 0.1.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/README.md +18 -1
- package/dist/plugin.system.js +1 -1
- package/dist/plugin.system.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,13 +11,30 @@ Go to [builder.io/account/organization](https://builder.io/account/organization)
|
|
|
11
11
|
|
|
12
12
|
## Features
|
|
13
13
|
|
|
14
|
-
The plugin provides new field types for your Builder.io models:
|
|
14
|
+
The plugin provides new field types for your Builder.io models and data connection capabilities:
|
|
15
15
|
|
|
16
16
|
### Product Fields
|
|
17
17
|
|
|
18
18
|
- `Commerce Layer Product` - Search and select products from your Commerce Layer catalog
|
|
19
19
|
- `Commerce Layer Product Preview` - Preview product templates with live data
|
|
20
20
|
|
|
21
|
+
### Connect Data
|
|
22
|
+
|
|
23
|
+
The plugin also provides a "Connect Data" feature that allows you to fetch live product data directly from your Commerce Layer API:
|
|
24
|
+
|
|
25
|
+
- **Real-time data access** - Connect to your Commerce Layer products as a data source
|
|
26
|
+
- **Flexible querying** - Search products by name or SKU code with configurable result limits
|
|
27
|
+
- **Full product data** - Access all product attributes including SKU codes, prices, images, and metadata
|
|
28
|
+
- **Dynamic content** - Use live product data in your Builder.io content and templates
|
|
29
|
+
|
|
30
|
+
To use Connect Data:
|
|
31
|
+
1. In the Builder.io editor, go to the "Connect Data" panel
|
|
32
|
+
2. Click "Add Data" and select "CommerceLayer" from the data sources
|
|
33
|
+
3. Configure your query parameters (search terms, result limits)
|
|
34
|
+
4. Use the returned product data in your content via data bindings
|
|
35
|
+
|
|
36
|
+
Example: Access product SKU code with `data.attributes.code` or product name with `data.attributes.name`
|
|
37
|
+
|
|
21
38
|
### Component Model Fields
|
|
22
39
|
|
|
23
40
|
Component models can be used to create product page templates. Using the following fields makes previewing the templates straightforward:
|
package/dist/plugin.system.js
CHANGED
|
@@ -146881,7 +146881,7 @@ System.register(['@builder.io/sdk', '@emotion/core', '@material-ui/core', 'react
|
|
|
146881
146881
|
});
|
|
146882
146882
|
|
|
146883
146883
|
var name = "@builder.io/plugin-commercelayer";
|
|
146884
|
-
var version = "0.0
|
|
146884
|
+
var version = "0.1.0";
|
|
146885
146885
|
var description = "Commerce Layer plugin for Builder.io";
|
|
146886
146886
|
var keywords = [
|
|
146887
146887
|
];
|