@object-ui/plugin-charts 3.1.1 → 3.1.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.
@@ -1,4 +1,4 @@
1
- import { ResponsiveContainer, Tooltip, Legend } from 'recharts';
1
+ import { ResponsiveContainer, Tooltip } from 'recharts';
2
2
  /**
3
3
  * ObjectUI
4
4
  * Copyright (c) 2024-present ObjectStack Inc.
@@ -33,6 +33,6 @@ declare const ChartStyle: ({ id, config }: {
33
33
  }) => import("react/jsx-runtime").JSX.Element | null;
34
34
  declare const ChartTooltip: typeof Tooltip;
35
35
  declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: any): import("react/jsx-runtime").JSX.Element | null;
36
- declare const ChartLegend: typeof Legend;
36
+ declare const ChartLegend: React.MemoExoticComponent<(outsideProps: import('recharts').LegendProps) => React.ReactPortal | null>;
37
37
  declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: any): import("react/jsx-runtime").JSX.Element | null;
38
38
  export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@object-ui/plugin-charts",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Chart components plugin for Object UI, powered by Recharts",
@@ -24,11 +24,11 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "recharts": "^3.7.0",
28
- "@object-ui/components": "3.1.1",
29
- "@object-ui/react": "3.1.1",
30
- "@object-ui/core": "3.1.1",
31
- "@object-ui/types": "3.1.1"
27
+ "recharts": "^3.8.0",
28
+ "@object-ui/components": "3.1.3",
29
+ "@object-ui/core": "3.1.3",
30
+ "@object-ui/react": "3.1.3",
31
+ "@object-ui/types": "3.1.3"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": "^18.0.0 || ^19.0.0",
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { render, screen } from '@testing-library/react';
3
- import { describe, it, expect, vi, beforeAll } from 'vitest';
4
- import { ComponentRegistry } from '@object-ui/core';
5
-
6
- describe('Plugin Charts Registration', () => {
7
- beforeAll(async () => {
8
- await import('./index');
9
- }, 30000);
10
-
11
- it('registers bar-chart component', () => {
12
- const config = ComponentRegistry.get('bar-chart');
13
- expect(config).toBeDefined();
14
- });
15
-
16
- it('registers chart component types', () => {
17
- expect(ComponentRegistry.get('chart')).toBeDefined(); // Assuming base
18
- // Verify aliases if they exist
19
- expect(ComponentRegistry.get('pie-chart')).toBeDefined();
20
- expect(ComponentRegistry.get('donut-chart')).toBeDefined();
21
- });
22
- });