@object-ui/plugin-charts 0.3.0 → 0.5.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/.turbo/turbo-build.log +20 -0
- package/CHANGELOG.md +11 -0
- package/README.md +4 -4
- package/dist/AdvancedChartImpl-DcIHnCct.js +4529 -0
- package/dist/BarChart-C_I0OFbj.js +18488 -0
- package/dist/{ChartImpl-DiqV9Evl.js → ChartImpl-CU5lEzui.js} +2 -2
- package/dist/index-DgxI83zT.js +478 -0
- package/dist/index.js +5 -6
- package/dist/index.umd.cjs +50 -74
- package/dist/src/AdvancedChartImpl.d.ts +1 -1
- package/dist/src/ChartContainerImpl.d.ts +7 -0
- package/dist/src/ChartImpl.d.ts +7 -0
- package/dist/src/ChartRenderer.d.ts +35 -0
- package/dist/src/ObjectChart.d.ts +1 -0
- package/dist/src/index.d.ts +5 -39
- package/dist/src/types.d.ts +3 -3
- package/examples/chart-examples.ts +54 -0
- package/package.json +19 -9
- package/src/AdvancedChartImpl.tsx +102 -18
- package/src/ChartContainerImpl.tsx +8 -0
- package/src/ChartImpl.tsx +8 -0
- package/src/ChartRenderer.tsx +112 -0
- package/src/ObjectChart.tsx +74 -0
- package/src/index.test.ts +15 -7
- package/src/index.tsx +79 -119
- package/src/registration.test.tsx +22 -0
- package/src/types.ts +10 -2
- package/vite.config.ts +23 -0
- package/vitest.config.ts +13 -0
- package/vitest.setup.ts +1 -0
- package/dist/AdvancedChartImpl-LUnT2ZAf.js +0 -2320
- package/dist/BarChart-CRc8MAtI.js +0 -17766
- package/dist/index-BcjHuFVN.js +0 -738
- package/dist/src/index.test.d.ts +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
> @object-ui/plugin-charts@0.5.0 build /home/runner/work/objectui/objectui/packages/plugin-charts
|
|
3
|
+
> vite build
|
|
4
|
+
|
|
5
|
+
[36mvite v7.3.1 [32mbuilding client environment for production...[36m[39m
|
|
6
|
+
transforming...
|
|
7
|
+
[32m✓[39m 659 modules transformed.
|
|
8
|
+
rendering chunks...
|
|
9
|
+
[32m
|
|
10
|
+
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
11
|
+
computing gzip size...
|
|
12
|
+
[32m[36m[vite:dts][32m Declaration files built in 23214ms.
|
|
13
|
+
[39m
|
|
14
|
+
[2mdist/[22m[36mindex.js [39m[1m[2m 0.20 kB[22m[1m[22m[2m │ gzip: 0.16 kB[22m
|
|
15
|
+
[2mdist/[22m[36mChartImpl-CU5lEzui.js [39m[1m[2m 3.25 kB[22m[1m[22m[2m │ gzip: 1.10 kB[22m
|
|
16
|
+
[2mdist/[22m[36mindex-DgxI83zT.js [39m[1m[2m 14.93 kB[22m[1m[22m[2m │ gzip: 4.43 kB[22m
|
|
17
|
+
[2mdist/[22m[36mAdvancedChartImpl-DcIHnCct.js [39m[1m[2m127.68 kB[22m[1m[22m[2m │ gzip: 26.51 kB[22m
|
|
18
|
+
[2mdist/[22m[36mBarChart-C_I0OFbj.js [39m[1m[33m555.79 kB[39m[22m[2m │ gzip: 138.30 kB[22m
|
|
19
|
+
[2mdist/[22m[36mindex.umd.cjs [39m[1m[2m481.85 kB[22m[1m[22m[2m │ gzip: 138.68 kB[22m
|
|
20
|
+
[32m✓ built in 41.15s[39m
|
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')
|