@dashboard-designer/ui 0.1.0 → 0.1.2

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/README.md CHANGED
@@ -5,9 +5,19 @@ Embeddable React dashboard designer and viewer.
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- pnpm add @dashboard-designer/ui @dashboard-designer/core
8
+ npm install @dashboard-designer/ui @dashboard-designer/core react react-dom
9
+ # or
10
+ pnpm add @dashboard-designer/ui @dashboard-designer/core react react-dom
9
11
  ```
10
12
 
13
+ Install from a local checkout (after `pnpm build` in the monorepo):
14
+
15
+ ```bash
16
+ npm install /path/to/DashboardDesigner/packages/ui /path/to/DashboardDesigner/packages/core react react-dom
17
+ ```
18
+
19
+ Both `@dashboard-designer/ui` and `@dashboard-designer/core` are required. Do not install only `ui` — it depends on `core`.
20
+
11
21
  ## Usage
12
22
 
13
23
  ```tsx
package/dist/index.d.ts CHANGED
@@ -49,6 +49,9 @@ declare class DashboardApiClient {
49
49
  saveConnection(connection: ConnectionConfig): Promise<{
50
50
  connection: ConnectionConfig;
51
51
  }>;
52
+ deleteConnection(id: string): Promise<{
53
+ ok: boolean;
54
+ }>;
52
55
  testConnection(id: string): Promise<{
53
56
  ok: boolean;
54
57
  }>;
@@ -114,7 +117,27 @@ declare class DashboardApiClient {
114
117
  }): Promise<{
115
118
  user: User;
116
119
  }>;
120
+ emailStatus(): Promise<{
121
+ configured: boolean;
122
+ }>;
123
+ sendDashboardEmail(input: {
124
+ to: string | string[];
125
+ cc?: string | string[];
126
+ subject: string;
127
+ body?: string;
128
+ bodyHtml?: string;
129
+ dashboardTitle?: string;
130
+ attachment?: EmailFileAttachment;
131
+ extraAttachments?: EmailFileAttachment[];
132
+ }): Promise<{
133
+ ok: boolean;
134
+ }>;
117
135
  }
136
+ type EmailFileAttachment = {
137
+ filename: string;
138
+ contentType: string;
139
+ contentBase64: string;
140
+ };
118
141
 
119
142
  interface ChartRendererProps {
120
143
  widget: Widget;