@fuf-stack/atelier 0.2.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 +40 -0
- package/dist/index.d.mts +1967 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +280 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +61 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# atelier
|
|
2
|
+
|
|
3
|
+
Customizable base app package for fuf projects.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @fuf-stack/atelier
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import { AtelierFrame } from '@fuf-stack/atelier';
|
|
15
|
+
|
|
16
|
+
export function App() {
|
|
17
|
+
return (
|
|
18
|
+
<AtelierFrame
|
|
19
|
+
appName="fuf atelier"
|
|
20
|
+
authState={{ status: 'anonymous', user: null }}
|
|
21
|
+
navigation={[
|
|
22
|
+
{
|
|
23
|
+
id: 'main',
|
|
24
|
+
label: 'Main',
|
|
25
|
+
items: [{ id: 'dashboard', label: 'Dashboard', to: '/' }],
|
|
26
|
+
},
|
|
27
|
+
]}
|
|
28
|
+
resources={[{ id: 'dashboard', title: 'Dashboard' }]}
|
|
29
|
+
/>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Core Exports
|
|
35
|
+
|
|
36
|
+
- `createAtelierApp(config)` normalizes app config defaults.
|
|
37
|
+
- `createAuthAdapter(adapter)` provides a role-aware default access check.
|
|
38
|
+
- `filterNavigationForState(...)` returns only visible/accessible navigation items.
|
|
39
|
+
- `getResourceRenderer(...)` resolves resource renderer with safe fallbacks.
|
|
40
|
+
- `createAtelierRouteContext(...)` provides a lightweight TanStack Start route-context helper.
|