@wbsuite/react-hooks 1.0.0 → 1.0.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 +20 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
## Installing wbsuite react hooks library
|
|
2
|
+
1. Install dependency in your proyect by running `npm i @wbsuite/react-hooks`
|
|
3
|
+
|
|
4
|
+
## How to use
|
|
5
|
+
1. Set up wbsuite by running the `useWBSuite` hook with the api key you were given.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
function App() {
|
|
9
|
+
useWBSuite({ apiKey: '<your-api-key>' });
|
|
10
|
+
return <></>
|
|
11
|
+
}
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
2. You're ready to start using the hooks you need. This library version contains:
|
|
15
|
+
- useStores -- lists available stores for your team
|
|
16
|
+
- useProducts -- lists products available for your team
|
|
17
|
+
- useCategories -- lists categories available for your team
|
|
18
|
+
- useRenting -- renting utils
|
|
19
|
+
- useDocuments -- document / images utils
|
|
20
|
+
- useContact -- create leads for your campaigns, use this for contacts or whatever you need.
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@wbsuite/react-hooks","version":"1.0.
|
|
1
|
+
{"name":"@wbsuite/react-hooks","version":"1.0.1","description":"","main":"cjs/index.js","module":"esm/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","lint":"npx eslint src/**","build":"npm run build:esm && npm run build:cjs","build:esm":"tsc","build:cjs":"tsc --module commonjs --outDir dist/react-hooks/cjs","pre-publish":"npm run lint && rm -rf dist && npm run build && cp package*.json dist/react-hooks"},"author":"faluma@webbuilders.com.ar","license":"ISC","devDependencies":{"@wb/types":"^2.0.0","eslint":"^8.57.0","typescript":"^5.3.3","typescript-eslint":"^7.0.2","@eslint/js":"^8.57.0"},"dependencies":{"axios":"^1.6.7"}}
|