@shoppexio/storefront 0.1.0 → 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/CHANGELOG.md +4 -0
- package/README.md +15 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# @shoppexio/storefront
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Official JavaScript storefront SDK for Shoppex.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Use this package when you want to embed Shoppex products, cart behavior, and hosted checkout into a custom frontend.
|
|
6
|
+
|
|
7
|
+
## Good fit
|
|
8
|
+
|
|
9
|
+
Use this package for:
|
|
6
10
|
|
|
7
11
|
- product loading
|
|
8
12
|
- cart state
|
|
@@ -26,3 +30,12 @@ const products = await shoppex.getProducts();
|
|
|
26
30
|
shoppex.addToCart(products.data?.[0]?.uniqid ?? '', 'default', 1);
|
|
27
31
|
await shoppex.checkout();
|
|
28
32
|
```
|
|
33
|
+
|
|
34
|
+
## Not this package
|
|
35
|
+
|
|
36
|
+
If you want the authenticated Developer API wrapper for backend integrations, use `@shoppexio/sdk`.
|
|
37
|
+
|
|
38
|
+
## Docs
|
|
39
|
+
|
|
40
|
+
- Storefront docs: [docs.shoppex.io/sdk/introduction](https://docs.shoppex.io/sdk/introduction)
|
|
41
|
+
- Installation: [docs.shoppex.io/sdk/installation](https://docs.shoppex.io/sdk/installation)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoppexio/storefront",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Official JavaScript storefront SDK for Shoppex",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|