Rename djarea to mizan and fix React casing conventions
Rename the package from djarea to mizan across the entire codebase — Python package, React library, generators, tests, and examples. Fix JSX/hook casing (MizanProvider, useMizan, etc.) that broke when the original PascalCase names were lowercased during the rename. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# @rythazhur/djarea (TypeScript)
|
||||
# @rythazhur/mizan (TypeScript)
|
||||
|
||||
React client for the Djarea framework. See the [monorepo root](../README.md) for full documentation.
|
||||
React client for the mizan framework. See the [monorepo root](../README.md) for full documentation.
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
npm install @rythazhur/djarea@git+https://git.impactsoundworks.com/isw/djarea.git#workspace=react
|
||||
npm install @rythazhur/mizan@git+https://git.impactsoundworks.com/isw/mizan.git#workspace=react
|
||||
```
|
||||
|
||||
## Usage
|
||||
@@ -30,8 +30,8 @@ export default {
|
||||
### 2. Generate
|
||||
|
||||
```bash
|
||||
npx djarea-generate # once
|
||||
npx djarea-generate --watch # dev mode
|
||||
npx mizan-generate # once
|
||||
npx mizan-generate --watch # dev mode
|
||||
```
|
||||
|
||||
### 3. Wrap your app
|
||||
@@ -74,7 +74,7 @@ chat.messages // typed, reactive
|
||||
| File | Contents |
|
||||
|------|----------|
|
||||
| `generated.django.tsx` | `DjangoContext` + typed hooks |
|
||||
| `generated.djarea.ts` | Pydantic types |
|
||||
| `generated.mizan.ts` | Pydantic types |
|
||||
| `generated.forms.ts` | Form hooks with Zod |
|
||||
| `generated.channels.hooks.tsx` | Channel hooks |
|
||||
| `index.ts` | Re-exports everything |
|
||||
@@ -83,11 +83,11 @@ chat.messages // typed, reactive
|
||||
|
||||
| Import | When to use |
|
||||
|--------|------------|
|
||||
| `@rythazhur/djarea` | Core: DjareaProvider, hooks, forms, errors |
|
||||
| `@rythazhur/djarea/channels` | WebSocket channels |
|
||||
| `@rythazhur/djarea/jwt` | JWT token management |
|
||||
| `@rythazhur/djarea/client` | HTTP clients (CSR/SSR) |
|
||||
| `@rythazhur/djarea/allauth` | Allauth UI components |
|
||||
| `@rythazhur/mizan` | Core: mizanProvider, hooks, forms, errors |
|
||||
| `@rythazhur/mizan/channels` | WebSocket channels |
|
||||
| `@rythazhur/mizan/jwt` | JWT token management |
|
||||
| `@rythazhur/mizan/client` | HTTP clients (CSR/SSR) |
|
||||
| `@rythazhur/mizan/allauth` | Allauth UI components |
|
||||
|
||||
These are **library internals** used by the generated code. You should import from `@/api` (your generated index), not from the library directly.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user