@particle-academy/react-fancy 2.9.0 → 3.0.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 +20 -0
- package/dist/index.cjs +1 -1293
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -270
- package/dist/index.d.ts +40 -270
- package/dist/index.js +2 -1001
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/diagram.serializers-6RPUO46U.js +0 -273
- package/dist/diagram.serializers-6RPUO46U.js.map +0 -1
- package/docs/Canvas.md +0 -105
- package/docs/Diagram.md +0 -119
package/README.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
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
|
+
## Migration to v3
|
|
6
|
+
|
|
7
|
+
`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:
|
|
8
|
+
|
|
9
|
+
```diff
|
|
10
|
+
- import { Canvas, useCanvas } from "@particle-academy/react-fancy";
|
|
11
|
+
+ import { Canvas, useCanvas } from "@particle-academy/fancy-3d/canvas";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- import { Diagram } from "@particle-academy/react-fancy";
|
|
16
|
+
+ import { Diagram } from "@particle-academy/fancy-echarts";
|
|
17
|
+
// …or one of the new specialized presets:
|
|
18
|
+
// DataDiagram, Flowchart, Mindmap, OrgChart
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`<Canvas>` in fancy-3d is now engine-pluggable (`engine="dom" | "babylon" | CustomEngine`) and ships with built-in adapters for DOM/Web3D (default) and Babylon. fancy-echarts' diagram exports include four schema-driven specialized presets sharing one routing/marker engine.
|
|
22
|
+
|
|
23
|
+
Everything else in react-fancy is unchanged.
|
|
24
|
+
|
|
5
25
|
## Installation
|
|
6
26
|
|
|
7
27
|
```bash
|