frappe-react-sdk 1.12.0 → 1.14.0
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 +4 -7
- package/dist/frappe-react-sdk.es.js +2317 -2257
- package/dist/frappe-react-sdk.umd.js +8 -8
- package/dist/lib/index.d.ts +2 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@ React hooks library for a [Frappe Framework](https://frappeframework.com) backen
|
|
|
4
4
|
|
|
5
5
|
<br />
|
|
6
6
|
<p align="center">
|
|
7
|
-
<a href="https://github.com/
|
|
8
|
-
<a href="https://github.com/
|
|
7
|
+
<a href="https://github.com/The-Commit-Company/frappe-react-sdk"><img src="https://img.shields.io/maintenance/yes/2026?style=flat-square" /></a>
|
|
8
|
+
<a href="https://github.com/The-Commit-Company/frappe-react-sdk"><img src="https://img.shields.io/github/license/The-Commit-Company/frappe-react-sdk?style=flat-square" /></a>
|
|
9
9
|
<a href="https://www.npmjs.com/package/frappe-react-sdk"><img src="https://img.shields.io/npm/v/frappe-react-sdk?style=flat-square" /></a>
|
|
10
10
|
<a href="https://www.npmjs.com/package/frappe-react-sdk"><img src="https://img.shields.io/npm/dw/frappe-react-sdk?style=flat-square" /></a>
|
|
11
11
|
</p>
|
|
@@ -37,7 +37,7 @@ The hooks in the library use the default configuration for useSWR but you will b
|
|
|
37
37
|
|
|
38
38
|
## Looking for a Frappe frontend library for other Javascript frameworks?
|
|
39
39
|
|
|
40
|
-
You can use [frappe-js-sdk](https://github.com/
|
|
40
|
+
You can use [frappe-js-sdk](https://github.com/The-Commit-Company/frappe-js-sdk) to interface your frontend web app with Frappe.
|
|
41
41
|
|
|
42
42
|
<br/>
|
|
43
43
|
|
|
@@ -350,9 +350,8 @@ Parameters:
|
|
|
350
350
|
| --- | --------- | ------------------ | -------- | -------------------------------------------------------------- |
|
|
351
351
|
| 1. | `doctype` | `string` | ✅ | Name of the doctype |
|
|
352
352
|
| 2. | `filters` | `Filter[]` | - | optional parameter to filter the result |
|
|
353
|
-
| 3. | `cache` | `boolean` | - | Whether to cache the value on the server - default: `false` |
|
|
354
353
|
| 3. | `debug` | `boolean` | - | Whether to log debug messages on the server - default: `false` |
|
|
355
|
-
|
|
|
354
|
+
| 4. | `config` | `SWRConfiguration` | - | SWR Configuration Options |
|
|
356
355
|
|
|
357
356
|
```tsx
|
|
358
357
|
export const DocumentCount = () => {
|
|
@@ -360,8 +359,6 @@ export const DocumentCount = () => {
|
|
|
360
359
|
'User',
|
|
361
360
|
/** Filters **/
|
|
362
361
|
[['enabled', '=', true]],
|
|
363
|
-
/** Cache the result on server **/
|
|
364
|
-
false,
|
|
365
362
|
/** Print debug logs on server **/
|
|
366
363
|
false,
|
|
367
364
|
{
|