simplix-react 0.1.3 → 0.2.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 +18 -4
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="../../docs/assets/simplix-logo.png" alt="simplix-react" width="200" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
# SimpliX React
|
|
2
6
|
|
|
3
7
|
[](https://www.npmjs.com/package/simplix-react)
|
|
4
8
|
[](https://github.com/simplix-react/simplix-react/blob/main/LICENSE)
|
|
@@ -11,6 +15,16 @@ Meta package that installs all `@simplix-react/*` packages in one dependency.
|
|
|
11
15
|
pnpm add simplix-react
|
|
12
16
|
```
|
|
13
17
|
|
|
18
|
+
### pnpm Configuration
|
|
19
|
+
|
|
20
|
+
pnpm uses strict dependency resolution. To import from `@simplix-react/*` sub-packages, add this to your `.npmrc`:
|
|
21
|
+
|
|
22
|
+
```ini
|
|
23
|
+
public-hoist-pattern[]=@simplix-react/*
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
> Projects created with `simplix init` include this configuration automatically.
|
|
27
|
+
|
|
14
28
|
This single install provides:
|
|
15
29
|
|
|
16
30
|
| Package | Description |
|
|
@@ -19,7 +33,7 @@ This single install provides:
|
|
|
19
33
|
| `@simplix-react/react` | React Query hooks derived from contracts |
|
|
20
34
|
| `@simplix-react/form` | TanStack Form hooks derived from contracts |
|
|
21
35
|
| `@simplix-react/auth` | Authentication middleware (Bearer, API Key, OAuth2) |
|
|
22
|
-
| `@simplix-react/mock` | MSW handlers +
|
|
36
|
+
| `@simplix-react/mock` | MSW handlers + in-memory stores |
|
|
23
37
|
| `@simplix-react/i18n` | i18next-based internationalization |
|
|
24
38
|
| `@simplix-react/cli` | Project scaffolding and validation CLI |
|
|
25
39
|
| `@simplix-react/testing` | Test utilities (mock clients, query wrappers) |
|
|
@@ -30,8 +44,8 @@ Import directly from individual packages:
|
|
|
30
44
|
|
|
31
45
|
```ts
|
|
32
46
|
import { defineApi, simpleQueryBuilder } from "@simplix-react/contract";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
47
|
+
import { deriveEntityHooks } from "@simplix-react/react";
|
|
48
|
+
import { deriveEntityFormHooks } from "@simplix-react/form";
|
|
35
49
|
import { createAuth, bearerScheme } from "@simplix-react/auth";
|
|
36
50
|
import { deriveMockHandlers } from "@simplix-react/mock";
|
|
37
51
|
import { I18nextAdapter } from "@simplix-react/i18n";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simplix-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Package-first React framework that auto-generates reusable domain packages from OpenAPI specs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@simplix-react/contract": "0.
|
|
12
|
-
"@simplix-react/
|
|
13
|
-
"@simplix-react/form": "0.
|
|
14
|
-
"@simplix-react/
|
|
15
|
-
"@simplix-react/
|
|
16
|
-
"@simplix-react/
|
|
17
|
-
"@simplix-react/testing": "0.
|
|
18
|
-
"@simplix-react/
|
|
11
|
+
"@simplix-react/contract": "0.2.2",
|
|
12
|
+
"@simplix-react/mock": "0.2.2",
|
|
13
|
+
"@simplix-react/form": "0.2.2",
|
|
14
|
+
"@simplix-react/react": "0.2.2",
|
|
15
|
+
"@simplix-react/auth": "0.2.2",
|
|
16
|
+
"@simplix-react/i18n": "0.2.2",
|
|
17
|
+
"@simplix-react/testing": "0.2.2",
|
|
18
|
+
"@simplix-react/cli": "0.2.2"
|
|
19
19
|
},
|
|
20
20
|
"keywords": [
|
|
21
21
|
"react",
|