Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@bonnard/react

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bonnard/react - npm Package Compare versions

Comparing version
0.3.2
to
0.4.0
+0
-19
dist/dashboard.d.ts

@@ -1,27 +0,8 @@

/**
* @deprecated The markdown dashboard system is deprecated and will be removed in a future version.
* Use `bon dashboard deploy` to deploy HTML dashboards instead.
*/
export { Dashboard } from './dashboard/dashboard';
/** @deprecated */
export type { DashboardProps } from './dashboard/dashboard';
/**
* @deprecated The markdown dashboard system is deprecated and will be removed in a future version.
* Use `bon dashboard deploy` to deploy HTML dashboards instead.
*/
export { DashboardViewer } from './dashboard/dashboard-viewer';
/**
* @deprecated The markdown dashboard system is deprecated and will be removed in a future version.
* Use `bon dashboard deploy` to deploy HTML dashboards instead.
*/
export { useDashboard } from './hooks/use-dashboard';
/** @deprecated */
export type { UseDashboardResult } from './hooks/use-dashboard';
/**
* @deprecated The markdown dashboard system is deprecated and will be removed in a future version.
* Use `bon dashboard deploy` to deploy HTML dashboards instead.
*/
export { parseDashboard } from './dashboard/parser';
/** @deprecated */
export type { ParsedDashboard, DashboardFrontmatter, DashboardQuery, DashboardSection, ComponentTag, ComponentType, DateRangePreset, } from './lib/types';
//# sourceMappingURL=dashboard.d.ts.map
+1
-1

@@ -1,1 +0,1 @@

{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../src/dashboard.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,kBAAkB;AAClB,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D;;;GAGG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D;;;GAGG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,kBAAkB;AAClB,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE;;;GAGG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,kBAAkB;AAClB,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,eAAe,GAChB,MAAM,aAAa,CAAC"}
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../src/dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,YAAY,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,YAAY,EACV,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,eAAe,GAChB,MAAM,aAAa,CAAC"}
{
"name": "@bonnard/react",
"version": "0.3.2",
"version": "0.4.0",
"description": "Bonnard embedded analytics — React charts, dashboards, and hooks",

@@ -50,3 +50,3 @@ "repository": {

"devDependencies": {
"@bonnard/sdk": "^0.4.1",
"@bonnard/sdk": "^0.4.2",
"@types/react": "^19.0.0",

@@ -53,0 +53,0 @@ "tsdown": "^0.12.5",

@@ -84,18 +84,15 @@ # @bonnard/react

## Dashboards (Deprecated)
## Dashboards
> **Deprecated**: The markdown dashboard system is deprecated and will be removed in a future version. Use `bon dashboard deploy` to deploy HTML dashboards instead.
For rendering markdown dashboards in React apps, use the dashboard sub-entry:
For rendering full dashboard layouts, use the dashboard sub-entry:
```tsx
import { Dashboard } from '@bonnard/react/dashboard';
import { DashboardViewer } from '@bonnard/react/dashboard';
// From a saved dashboard
<Dashboard slug="sales-overview" />
// From markdown content
<Dashboard content={markdownString} />
// Render from markdown content
<DashboardViewer content={markdownString} />
```
Dashboards are markdown files with YAML query blocks and chart component tags (`<BigValue>`, `<LineChart>`, `<BarChart>`, etc.). See `bon docs dashboards` for the full format reference.
The dashboard entry adds parser dependencies (gray-matter, remark, rehype). Only import it if you need it — the main entry stays lightweight.

@@ -102,0 +99,0 @@