@datatechsolutions/ui 2.11.91 → 2.11.92
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 +58 -39
- package/dist/astrlabe/index.js +107 -107
- package/dist/astrlabe/index.mjs +4 -4
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/{chunk-MLAIUJYC.js → chunk-24QKSC74.js} +6 -6
- package/dist/{chunk-MLAIUJYC.js.map → chunk-24QKSC74.js.map} +1 -1
- package/dist/{chunk-OQDWU6AE.js → chunk-2RDGJXYZ.js} +67 -67
- package/dist/{chunk-OQDWU6AE.js.map → chunk-2RDGJXYZ.js.map} +1 -1
- package/dist/{chunk-CBVRUJ7N.mjs → chunk-3PKG4KFY.mjs} +4 -4
- package/dist/{chunk-CBVRUJ7N.mjs.map → chunk-3PKG4KFY.mjs.map} +1 -1
- package/dist/{chunk-36G7GAPU.mjs → chunk-3SUFSAP6.mjs} +3 -3
- package/dist/{chunk-36G7GAPU.mjs.map → chunk-3SUFSAP6.mjs.map} +1 -1
- package/dist/{chunk-GWRJ5L36.js → chunk-43GCSCQA.js} +12 -12
- package/dist/{chunk-GWRJ5L36.js.map → chunk-43GCSCQA.js.map} +1 -1
- package/dist/{chunk-U4BTEKZT.mjs → chunk-4TY55HGO.mjs} +3 -3
- package/dist/{chunk-U4BTEKZT.mjs.map → chunk-4TY55HGO.mjs.map} +1 -1
- package/dist/{chunk-7JFAOHZ3.mjs → chunk-6NAZVG2O.mjs} +4 -4
- package/dist/{chunk-7JFAOHZ3.mjs.map → chunk-6NAZVG2O.mjs.map} +1 -1
- package/dist/{chunk-J4QUCX27.mjs → chunk-A3BFURJB.mjs} +24 -25
- package/dist/chunk-A3BFURJB.mjs.map +1 -0
- package/dist/{chunk-L5VEY7G4.js → chunk-ARVLVWUC.js} +7 -5
- package/dist/chunk-ARVLVWUC.js.map +1 -0
- package/dist/{chunk-BVCS7RBR.js → chunk-BUI7BCUN.js} +33 -33
- package/dist/{chunk-BVCS7RBR.js.map → chunk-BUI7BCUN.js.map} +1 -1
- package/dist/{chunk-SIBJRWUB.js → chunk-DADFESAQ.js} +4 -4
- package/dist/{chunk-SIBJRWUB.js.map → chunk-DADFESAQ.js.map} +1 -1
- package/dist/{chunk-C7KAF363.js → chunk-DB64YDV2.js} +55 -55
- package/dist/{chunk-C7KAF363.js.map → chunk-DB64YDV2.js.map} +1 -1
- package/dist/{chunk-WIKMIULO.js → chunk-DIMLLLZR.js} +36 -36
- package/dist/{chunk-WIKMIULO.js.map → chunk-DIMLLLZR.js.map} +1 -1
- package/dist/{chunk-FDSU7GPS.mjs → chunk-DWFLIXES.mjs} +3 -3
- package/dist/{chunk-FDSU7GPS.mjs.map → chunk-DWFLIXES.mjs.map} +1 -1
- package/dist/{chunk-B5NZVS4A.js → chunk-FUVJHNNI.js} +67 -67
- package/dist/{chunk-B5NZVS4A.js.map → chunk-FUVJHNNI.js.map} +1 -1
- package/dist/{chunk-HPIKJS5B.mjs → chunk-HGN5W56D.mjs} +3 -3
- package/dist/{chunk-HPIKJS5B.mjs.map → chunk-HGN5W56D.mjs.map} +1 -1
- package/dist/{chunk-6OWD54HK.mjs → chunk-LKJZGFM4.mjs} +3 -3
- package/dist/{chunk-6OWD54HK.mjs.map → chunk-LKJZGFM4.mjs.map} +1 -1
- package/dist/{chunk-AP7OWR6S.js → chunk-MEEFOZC4.js} +4 -4
- package/dist/{chunk-AP7OWR6S.js.map → chunk-MEEFOZC4.js.map} +1 -1
- package/dist/{chunk-CG3P5Z5U.mjs → chunk-MLAXYDEU.mjs} +3 -3
- package/dist/{chunk-CG3P5Z5U.mjs.map → chunk-MLAXYDEU.mjs.map} +1 -1
- package/dist/{chunk-KHAMY7MA.mjs → chunk-MZAS6TG4.mjs} +3 -3
- package/dist/{chunk-KHAMY7MA.mjs.map → chunk-MZAS6TG4.mjs.map} +1 -1
- package/dist/{chunk-YMGJ4FZZ.js → chunk-NA57KK4O.js} +4 -4
- package/dist/{chunk-YMGJ4FZZ.js.map → chunk-NA57KK4O.js.map} +1 -1
- package/dist/{chunk-E32B2MVK.js → chunk-PTGPQJZJ.js} +15 -15
- package/dist/{chunk-E32B2MVK.js.map → chunk-PTGPQJZJ.js.map} +1 -1
- package/dist/{chunk-OE4Z4FKM.mjs → chunk-PU2KTO4O.mjs} +7 -5
- package/dist/chunk-PU2KTO4O.mjs.map +1 -0
- package/dist/{chunk-Q7WGFPGK.mjs → chunk-RELMVNNR.mjs} +4 -4
- package/dist/{chunk-Q7WGFPGK.mjs.map → chunk-RELMVNNR.mjs.map} +1 -1
- package/dist/{chunk-Y4DNREFH.js → chunk-SFVSDGNF.js} +129 -129
- package/dist/{chunk-Y4DNREFH.js.map → chunk-SFVSDGNF.js.map} +1 -1
- package/dist/{chunk-WY3YDQXK.js → chunk-TBPWMPZU.js} +26 -26
- package/dist/{chunk-WY3YDQXK.js.map → chunk-TBPWMPZU.js.map} +1 -1
- package/dist/{chunk-E2ZGFN2H.mjs → chunk-VGSWSQQU.mjs} +4 -4
- package/dist/{chunk-E2ZGFN2H.mjs.map → chunk-VGSWSQQU.mjs.map} +1 -1
- package/dist/{chunk-URMZJ3WF.mjs → chunk-WI663467.mjs} +7 -7
- package/dist/{chunk-URMZJ3WF.mjs.map → chunk-WI663467.mjs.map} +1 -1
- package/dist/{chunk-SOYGVHPZ.js → chunk-XSBZNPUO.js} +53 -53
- package/dist/{chunk-SOYGVHPZ.js.map → chunk-XSBZNPUO.js.map} +1 -1
- package/dist/{chunk-R5KUEOPU.js → chunk-XXYDLYIT.js} +64 -64
- package/dist/{chunk-R5KUEOPU.js.map → chunk-XXYDLYIT.js.map} +1 -1
- package/dist/{chunk-IEWFVP42.mjs → chunk-Y3WJAYOY.mjs} +6 -6
- package/dist/{chunk-IEWFVP42.mjs.map → chunk-Y3WJAYOY.mjs.map} +1 -1
- package/dist/{chunk-VPNZDLR6.mjs → chunk-YEWXDCCI.mjs} +4 -4
- package/dist/{chunk-VPNZDLR6.mjs.map → chunk-YEWXDCCI.mjs.map} +1 -1
- package/dist/{chunk-256TJHVO.mjs → chunk-ZHUPYX4Q.mjs} +3 -3
- package/dist/{chunk-256TJHVO.mjs.map → chunk-ZHUPYX4Q.mjs.map} +1 -1
- package/dist/{chunk-YN4IEDE4.js → chunk-ZKUYNCAG.js} +26 -27
- package/dist/chunk-ZKUYNCAG.js.map +1 -0
- package/dist/index.js +747 -747
- package/dist/index.mjs +2 -2
- package/dist/platform/admin/index.js +11 -11
- package/dist/platform/admin/index.mjs +5 -5
- package/dist/platform/agents-workspace.js +7 -7
- package/dist/platform/agents-workspace.mjs +6 -6
- package/dist/platform/app-shell.js +4 -4
- package/dist/platform/app-shell.mjs +3 -3
- package/dist/platform/auth/index.js +28 -28
- package/dist/platform/auth/index.mjs +5 -5
- package/dist/platform/billing/index.js +4 -4
- package/dist/platform/billing/index.mjs +3 -3
- package/dist/platform/impersonation/index.js +4 -4
- package/dist/platform/impersonation/index.mjs +3 -3
- package/dist/platform/index.js +99 -99
- package/dist/platform/index.mjs +19 -19
- package/dist/platform/pages/index.d.mts +2 -2
- package/dist/platform/pages/index.d.ts +2 -2
- package/dist/platform/pages/index.js +196 -196
- package/dist/platform/pages/index.mjs +8 -8
- package/dist/platform/settings/index.js +8 -8
- package/dist/platform/settings/index.mjs +7 -7
- package/dist/platform/workflow-api-client.d.mts +1 -1
- package/dist/platform/workflow-api-client.d.ts +1 -1
- package/dist/platform/workflow-api-client.js +61 -61
- package/dist/platform/workflow-api-client.mjs +1 -1
- package/dist/platform/workflow-canvas-shell.js +5 -5
- package/dist/platform/workflow-canvas-shell.mjs +4 -4
- package/dist/{workflow-api-client-XU83zq0k.d.mts → workflow-api-client-wLoap-tt.d.mts} +25 -6
- package/dist/{workflow-api-client-CXN5iaih.d.ts → workflow-api-client-zVtc8FIl.d.ts} +25 -6
- package/package.json +1 -1
- package/dist/chunk-J4QUCX27.mjs.map +0 -1
- package/dist/chunk-L5VEY7G4.js.map +0 -1
- package/dist/chunk-OE4Z4FKM.mjs.map +0 -1
- package/dist/chunk-YN4IEDE4.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# @datatechsolutions/ui
|
|
2
2
|
|
|
3
|
-
React component library for the Datatech Solutions platform.
|
|
3
|
+
React component library for the Datatech Solutions platform. Spans generic primitives (forms, modals, data display, gestures, geo maps), platform shells (auth, billing, admin, settings), and the workflow canvas. Consumed by every Vite SPA frontend in the monorepo.
|
|
4
|
+
|
|
5
|
+
> Read the canonical version from `package.json`.
|
|
4
6
|
|
|
5
7
|
## Install
|
|
6
8
|
|
|
@@ -8,7 +10,7 @@ React component library for the Datatech Solutions platform. 130+ components spa
|
|
|
8
10
|
npm install @datatechsolutions/ui
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
The package ships a built artifact (`dist/`) generated by `tsup`. Consumers import from the public subpaths declared in `package.json` `exports` — never from internals.
|
|
12
14
|
|
|
13
15
|
## Design Principles
|
|
14
16
|
|
|
@@ -16,64 +18,81 @@ npm install @datatechsolutions/ui
|
|
|
16
18
|
- **Accessible** — Built on Radix UI and Headless UI primitives
|
|
17
19
|
- **Motion-rich** — Framer Motion animations with reduced-motion support
|
|
18
20
|
- **Theme-aware** — Regional subdivision themes (Brazil states, US states) with palettes, flag URLs, and geo coordinates
|
|
19
|
-
- **
|
|
20
|
-
|
|
21
|
-
##
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
|
26
|
-
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
21
|
+
- **Vite-only** — Every consumer is a Vite SPA. There is no Next.js / SSR support.
|
|
22
|
+
|
|
23
|
+
## Subpath Exports
|
|
24
|
+
|
|
25
|
+
Top-level subpaths in `package.json` `exports` (each may have its own sub-subpaths — see `package.json` for the full list):
|
|
26
|
+
|
|
27
|
+
| Subpath | Contents |
|
|
28
|
+
|---|---|
|
|
29
|
+
| `@datatechsolutions/ui` | Components root (forms, modals, primitives, data display, geo maps, marketing layouts) |
|
|
30
|
+
| `@datatechsolutions/ui/platform` | Platform shells consumed by every product app |
|
|
31
|
+
| `@datatechsolutions/ui/platform/auth` | Sign-in, MFA, profile, route guards (windsock-integrated) |
|
|
32
|
+
| `@datatechsolutions/ui/platform/billing` | Plan picker, billing portal redirect, subscription gates |
|
|
33
|
+
| `@datatechsolutions/ui/platform/admin` | Org admin: members, invites, roles |
|
|
34
|
+
| `@datatechsolutions/ui/platform/settings` | User & org settings shells |
|
|
35
|
+
| `@datatechsolutions/ui/platform/impersonation` | Impersonation banner + admin take-over flow |
|
|
36
|
+
| `@datatechsolutions/ui/platform/pages` | Standard page views (dashboard, workflow list, runs, agents, datasources, rules) |
|
|
37
|
+
| `@datatechsolutions/ui/platform/agents-workspace` | Agent + tool + rule editors |
|
|
38
|
+
| `@datatechsolutions/ui/platform/app-shell` | Top-level shell, dock, breadcrumb, theme |
|
|
39
|
+
| `@datatechsolutions/ui/platform/rbac` | Permission/role hooks bound to windsock JWT claims |
|
|
40
|
+
| `@datatechsolutions/ui/platform/windsock-admin-client` | Typed client for windsock admin APIs |
|
|
41
|
+
| `@datatechsolutions/ui/platform/workflow-api-client` | Typed client for the workflow runtime API |
|
|
42
|
+
| `@datatechsolutions/ui/platform/workflow-canvas-shell` | Embeddable workflow canvas wrapper |
|
|
43
|
+
| `@datatechsolutions/ui/astrlabe` | Workflow canvas internals |
|
|
44
|
+
| `@datatechsolutions/ui/astrlabe/workflow-canvas` | Live editor canvas |
|
|
45
|
+
| `@datatechsolutions/ui/astrlabe/workflow-preview-canvas` | Read-only preview |
|
|
46
|
+
| `@datatechsolutions/ui/astrlabe/graph-node` | Node renderer + handles |
|
|
47
|
+
| `@datatechsolutions/ui/astrlabe/contracts` | DTOs shared with the Rust engine over HTTP |
|
|
48
|
+
| `@datatechsolutions/ui/brand` | Theme tokens, brand assets |
|
|
49
|
+
| `@datatechsolutions/ui/i18n` | i18n integration helpers |
|
|
50
|
+
| `@datatechsolutions/ui/router` | Router adapter (React Router) |
|
|
51
|
+
| `@datatechsolutions/ui/styles` / `./styles/*` | Liquid glass stylesheet |
|
|
40
52
|
|
|
41
53
|
## Themes
|
|
42
54
|
|
|
43
|
-
|
|
44
|
-
`src/lib/themes/
|
|
45
|
-
|
|
46
|
-
### US
|
|
47
|
-
`src/lib/themes/us.ts` — State palettes, accent maps, coordinates, macro regions, flag URL helpers.
|
|
48
|
-
|
|
49
|
-
### Custom
|
|
50
|
-
`registerSubdivisionTheme()` to add your own regional theme with palettes, flags, and geo data.
|
|
55
|
+
- **Brazil** (`src/lib/themes/brazil.ts`) — state palettes, coordinates, macro regions, flag URLs
|
|
56
|
+
- **US** (`src/lib/themes/us.ts`) — same shape
|
|
57
|
+
- Custom themes via `registerSubdivisionTheme()`
|
|
51
58
|
|
|
52
59
|
## Hooks
|
|
53
60
|
|
|
54
61
|
| Hook | Purpose |
|
|
55
|
-
|
|
62
|
+
|---|---|
|
|
56
63
|
| `useHaptic` / `triggerHaptic` | Haptic feedback for touch interactions |
|
|
57
64
|
| `usePullToRefresh` | Pull-to-refresh interaction pattern |
|
|
58
|
-
| `useGeoMapState` | State
|
|
65
|
+
| `useGeoMapState` | State for interactive geo maps |
|
|
59
66
|
| `useNotifications` | Notification system state and actions |
|
|
60
67
|
|
|
61
68
|
## Styles
|
|
62
69
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
```typescript
|
|
70
|
+
```ts
|
|
66
71
|
import '@datatechsolutions/ui/styles'
|
|
67
72
|
```
|
|
68
73
|
|
|
69
74
|
## Peer Dependencies
|
|
70
75
|
|
|
71
|
-
|
|
76
|
+
The canonical list is `package.json` `peerDependencies`. Currently:
|
|
77
|
+
|
|
78
|
+
- `@datatechsolutions/shared-domain`
|
|
79
|
+
- `@datatechsolutions/windsock`
|
|
80
|
+
- `@headlessui/react` >= 2
|
|
81
|
+
- `@heroicons/react` >= 2
|
|
82
|
+
- `@radix-ui/react-dialog`, `@radix-ui/react-popover`
|
|
83
|
+
- `@xyflow/react` >= 12 (workflow canvas)
|
|
84
|
+
- `clsx`, `d3-geo`, `date-fns`, `framer-motion`, `lucide-react`
|
|
85
|
+
- `react` >= 18, `react-dom` >= 18, `react-router` >= 7, `react-transition-progress`
|
|
86
|
+
- `zod` >= 3, `zustand` >= 5
|
|
87
|
+
|
|
88
|
+
> No `next` or `next-intl` — consumers must use Vite + React Router.
|
|
72
89
|
|
|
73
90
|
## Scripts
|
|
74
91
|
|
|
75
92
|
| Script | Command | Description |
|
|
76
|
-
|
|
93
|
+
|---|---|---|
|
|
77
94
|
| `test` | `vitest run` | Run component tests |
|
|
78
95
|
| `test:watch` | `vitest` | Watch mode |
|
|
79
|
-
| `lint` | `tsc --noEmit` | Type check
|
|
96
|
+
| `lint` | `tsc --noEmit` | Type check |
|
|
97
|
+
| `build` | `tsup` | Build `dist/` |
|
|
98
|
+
| `verify:publish` | `build && lint && test` | Pre-publish gate |
|