@particle-academy/react-fancy 3.0.0 → 3.1.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 +15 -0
- package/dist/index.cjs +790 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +234 -1
- package/dist/index.d.ts +234 -1
- package/dist/index.js +787 -3
- package/dist/index.js.map +1 -1
- package/docs/MagicWand.md +65 -0
- package/docs/MoodMeter.md +63 -0
- package/docs/PromptInput.md +69 -0
- package/docs/ReasonTag.md +63 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
React UI component library — the React port of the `fancy-flux` Blade/Livewire component library. The goal is **visual and behavioral parity** with fancy-flux.
|
|
4
4
|
|
|
5
|
+
## Inertia.js integration
|
|
6
|
+
|
|
7
|
+
Using react-fancy with Inertia? Install the [`@particle-academy/fancy-inertia`](https://github.com/Particle-Academy/fancy-inertia) adapter — it ships a single `<FancyAppRoot>` provider that mounts `Toast.Provider` (and the modal portal root) above the Inertia outlet, plus `useFancyForm()` for one-line wiring of react-fancy form fields to Inertia's `useForm()` server-validated state, plus a `<FancyClientOnly>` boundary for SSR-skip needs. See [fancy-inertia/docs/SSR.md](https://github.com/Particle-Academy/fancy-inertia/blob/main/docs/SSR.md) for the per-component SSR-safety matrix.
|
|
8
|
+
|
|
5
9
|
## Migration to v3
|
|
6
10
|
|
|
7
11
|
`Canvas` and `Diagram` were moved out of react-fancy in v3.0.0 to keep this package focused on generic React UI. They live in companion packages now:
|
|
@@ -159,6 +163,17 @@ npx vite build # Build demo app (verifies imports work)
|
|
|
159
163
|
| Diagram | Entity-relationship diagram with draggable nodes and relation lines | [docs](docs/Diagram.md) |
|
|
160
164
|
| ContentRenderer | Markdown/HTML content renderer | [docs](docs/ContentRenderer.md) |
|
|
161
165
|
|
|
166
|
+
### Human+ Primitives
|
|
167
|
+
|
|
168
|
+
Components for surfaces where humans and AI agents trade control fluidly. Each promoted from the [`dreaming`](https://github.com/Particle-Academy/pa-ux-sandbox/tree/dreaming) sandbox after the API stabilized.
|
|
169
|
+
|
|
170
|
+
| Component | Description | Docs |
|
|
171
|
+
|-----------|-------------|------|
|
|
172
|
+
| ReasonTag | Wrap any value with hover/click affordance revealing reason, confidence tier, and sources | [docs](docs/ReasonTag.md) |
|
|
173
|
+
| MoodMeter | 2D value+confidence pad; halo radius shrinks as confidence rises | [docs](docs/MoodMeter.md) |
|
|
174
|
+
| PromptInput | Chat composer with `/` commands, `@` mentions, drop-to-attach, ⌘+Enter, token budget meter | [docs](docs/PromptInput.md) |
|
|
175
|
+
| MagicWand | Selection-anchored floating toolbar with pluggable AI actions that replace highlighted text in-place | [docs](docs/MagicWand.md) |
|
|
176
|
+
|
|
162
177
|
### Menus & Navigation
|
|
163
178
|
|
|
164
179
|
| Component | Description | Docs |
|