@veritone-ce/design-system 2.8.11 → 2.8.12

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.
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import type { VisualizationSpec } from 'vega-embed';
3
+ export interface ChartProps {
4
+ /**
5
+ * Vega or Vega-Lite specification
6
+ */
7
+ spec: VisualizationSpec;
8
+ /**
9
+ * Data to be used in the chart
10
+ */
11
+ data?: Record<string, unknown[]>;
12
+ /**
13
+ * Additional CSS class name
14
+ */
15
+ className?: string;
16
+ /**
17
+ * Inline styles
18
+ */
19
+ style?: React.CSSProperties;
20
+ /**
21
+ * Width of the chart
22
+ */
23
+ width?: number;
24
+ /**
25
+ * Height of the chart
26
+ */
27
+ height?: number;
28
+ }
29
+ /**
30
+ * Chart component that wraps Vega/Vega-Lite visualizations
31
+ */
32
+ declare const Chart: (props: ChartProps) => import("react/jsx-runtime").JSX.Element;
33
+ export default Chart;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritone-ce/design-system",
3
- "version": "2.8.11",
3
+ "version": "2.8.12",
4
4
  "private": false,
5
5
  "description": "Design System for Veritone CE",
6
6
  "keywords": [
@@ -126,7 +126,11 @@
126
126
  "react-aria": "^3.32.1",
127
127
  "react-dropzone": "^14.2.3",
128
128
  "react-remove-scroll": "^2.5.7",
129
- "react-stately": "^3.30.1"
129
+ "react-stately": "^3.30.1",
130
+ "react-vega": "^8.0.0",
131
+ "vega": "^6.2.0",
132
+ "vega-embed": "^7.1.0",
133
+ "vega-lite": "^6.4.1"
130
134
  },
131
135
  "devDependencies": {
132
136
  "@commitlint/cli": "^17.7.1",