@object-ui/plugin-charts 0.3.0 → 0.3.1
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/CHANGELOG.md +11 -0
- package/README.md +4 -4
- package/dist/AdvancedChartImpl-DJcN3TPx.js +2530 -0
- package/dist/BarChart-RKJxvg5Y.js +18218 -0
- package/dist/ChartImpl-CE1UGkNR.js +275 -0
- package/dist/index-CTfEtwhn.js +387 -0
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +50 -74
- package/dist/src/ChartContainerImpl.d.ts +7 -0
- package/dist/src/ChartImpl.d.ts +7 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/types.d.ts +2 -2
- package/package.json +18 -8
- package/src/AdvancedChartImpl.tsx +8 -0
- package/src/ChartContainerImpl.tsx +8 -0
- package/src/ChartImpl.tsx +8 -0
- package/src/index.test.ts +14 -6
- package/src/index.tsx +14 -4
- package/src/types.ts +10 -2
- package/vite.config.ts +10 -0
- package/dist/AdvancedChartImpl-LUnT2ZAf.js +0 -2320
- package/dist/BarChart-CRc8MAtI.js +0 -17766
- package/dist/ChartImpl-DiqV9Evl.js +0 -79
- package/dist/index-BcjHuFVN.js +0 -738
- package/dist/src/index.test.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @object-ui/plugin-charts
|
|
2
2
|
|
|
3
|
+
## 0.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Maintenance release - Documentation and build improvements
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @object-ui/types@0.3.1
|
|
10
|
+
- @object-ui/core@0.3.1
|
|
11
|
+
- @object-ui/react@0.3.1
|
|
12
|
+
- @object-ui/components@0.3.1
|
|
13
|
+
|
|
3
14
|
## 0.3.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ A lazy-loaded charting component for Object UI based on Recharts.
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
7
|
- **Internal Lazy Loading**: Recharts is loaded on-demand using `React.lazy()` and `Suspense`
|
|
8
|
-
- **Zero Configuration**: Just import the package and use `type: 'chart
|
|
8
|
+
- **Zero Configuration**: Just import the package and use `type: 'bar-chart'` in your schema
|
|
9
9
|
- **Automatic Registration**: Components auto-register with the ComponentRegistry
|
|
10
10
|
- **Skeleton Loading**: Shows a skeleton while Recharts loads
|
|
11
11
|
|
|
@@ -25,7 +25,7 @@ import '@object-ui/plugin-charts';
|
|
|
25
25
|
|
|
26
26
|
// Now you can use chart-bar type in your schemas
|
|
27
27
|
const schema = {
|
|
28
|
-
type: 'chart
|
|
28
|
+
type: 'bar-chart',
|
|
29
29
|
data: [
|
|
30
30
|
{ name: 'Jan', value: 400 },
|
|
31
31
|
{ name: 'Feb', value: 300 },
|
|
@@ -57,7 +57,7 @@ The plugin exports TypeScript types for full type safety:
|
|
|
57
57
|
import type { BarChartSchema } from '@object-ui/plugin-charts';
|
|
58
58
|
|
|
59
59
|
const schema: BarChartSchema = {
|
|
60
|
-
type: 'chart
|
|
60
|
+
type: 'bar-chart',
|
|
61
61
|
data: [
|
|
62
62
|
{ name: 'Jan', value: 400 },
|
|
63
63
|
{ name: 'Feb', value: 300 }
|
|
@@ -72,7 +72,7 @@ const schema: BarChartSchema = {
|
|
|
72
72
|
|
|
73
73
|
```typescript
|
|
74
74
|
{
|
|
75
|
-
type: 'chart
|
|
75
|
+
type: 'bar-chart',
|
|
76
76
|
data?: Array<Record<string, any>>, // Chart data
|
|
77
77
|
dataKey?: string, // Y-axis data key (default: 'value')
|
|
78
78
|
xAxisKey?: string, // X-axis label key (default: 'name')
|