@nadicodeai/ui 5.1.0 → 5.2.3

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.
@@ -0,0 +1,2 @@
1
+ export { mountActivityOrb, type ActivityKind, type ActivityOrbSize } from "./internal/activity-orb.js";
2
+ //# sourceMappingURL=activity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../src/activity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,2 @@
1
+ // The same activity renderer for native startup HTML, before React is loaded.
2
+ export { mountActivityOrb } from "./internal/activity-orb.js";
package/docs/activity.md CHANGED
@@ -91,6 +91,12 @@ frame for a user-controlled motion pause or a design specimen. It does not
91
91
  mean the underlying operation is paused. Product code unmounts the orb when
92
92
  the operation ends or cannot proceed.
93
93
 
94
+ Nadia's initial HTML can use `mountActivityOrb(canvas, activity, size)` from
95
+ `@nadicodeai/ui/activity` before React loads. It is the renderer used by
96
+ `ActivityOrb`, with the same motion, palette and accessibility requirements.
97
+ The caller supplies the canvas and adjacent label, and calls `destroy()` when
98
+ the operation fails or React replaces the startup surface.
99
+
94
100
  Import `@nadicodeai/ui/globals.css` as described in the
95
101
  [consumer guide](consuming-cross-repo.md). The renderer inherits actual CSS
96
102
  ink and reads canonical colour tokens. The existing `Orb` threshold adapter
package/docs/threshold.md CHANGED
@@ -19,7 +19,7 @@ import "@nadicodeai/ui/threshold.css";
19
19
  | --- | --- | --- |
20
20
  | `ThresholdRoom` | the place: a verde field on true black | inside the working app |
21
21
  | `NadiaPresence` | the host: her arrival is the progress | a loader, a ring, a bar |
22
- | `Orb` | status: we are working, or we wait on the Customer | on an error, or beside an actionable button |
22
+ | `Orb` | system work underway, through the shared activity renderer | reporting a failed operation or waiting on a person as ongoing work |
23
23
  | `TypedLine` | what Nadia is saying while you wait | a control or state machine |
24
24
 
25
25
  The logo is not on this list. It belongs to window chrome, the tray and the
@@ -153,7 +153,7 @@ portrait itself is decorative; the words are the typed line's.
153
153
  | Prop | Type | Default | Meaning |
154
154
  | --- | --- | --- | --- |
155
155
  | `label` | `string` | — | what the orb means, in the Customer's language |
156
- | `size` | `88 \| 64 \| 20` | `88` | CSS pixels: 88 at a threshold, 20 inside a running turn, per the living-elements register |
156
+ | `size` | `88 \| 64 \| 20` | `88` | CSS pixels: threshold, region, or inline operation; see `activity.md` |
157
157
  | `state` | `"working" \| "connecting" \| "absent"` | — | see below |
158
158
 
159
159
  The threshold adapter preserves its public states: `working` selects the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadicodeai/ui",
3
- "version": "5.1.0",
3
+ "version": "5.2.3",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -24,6 +24,10 @@
24
24
  "import": "./dist/threshold.js"
25
25
  },
26
26
  "./threshold.css": "./dist/components/threshold/threshold.css",
27
+ "./activity": {
28
+ "types": "./dist/activity.d.ts",
29
+ "import": "./dist/activity.js"
30
+ },
27
31
  "./hooks": {
28
32
  "types": "./dist/hooks/index.d.ts",
29
33
  "import": "./dist/hooks/index.js"
@@ -51,7 +55,7 @@
51
55
  ],
52
56
  "scripts": {
53
57
  "dev": "node scripts/dev-build.mjs --watch",
54
- "build": "rm -rf dist && tsc -p tsconfig.build.json && node scripts/fix-dist-imports.mjs && node scripts/build-styles.mjs && node scripts/build-eslint.mjs",
58
+ "build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.build.json && node scripts/fix-dist-imports.mjs && node scripts/build-styles.mjs && node scripts/build-eslint.mjs",
55
59
  "build:dev": "node scripts/dev-build.mjs",
56
60
  "generate:brand-icons": "node scripts/build-brand-icons.mjs",
57
61
  "prepack": "npm run build",
@@ -66,7 +70,7 @@
66
70
  "@assistant-ui/react": "0.15.1",
67
71
  "@assistant-ui/react-markdown": "0.14.8",
68
72
  "@base-ui/react": "^1.6.0",
69
- "@nadicodeai/design-system": "5.1.0",
73
+ "@nadicodeai/design-system": "5.2.3",
70
74
  "@paper-design/shaders": "0.0.78",
71
75
  "class-variance-authority": "^0.7.1",
72
76
  "clsx": "^2.1.1",