@devtable/dashboard 8.49.3 → 8.50.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.
@@ -1,6 +1,9 @@
1
- /// <reference types="react" />
2
- export declare const DashboardEditorHeader: (({ saveDashboardChanges }: {
1
+ import { ReactNode } from 'react';
2
+ interface IDashboardEditorHeader {
3
3
  saveDashboardChanges: () => void;
4
- }) => JSX.Element) & {
4
+ headerSlot?: ReactNode;
5
+ }
6
+ export declare const DashboardEditorHeader: (({ saveDashboardChanges, headerSlot }: IDashboardEditorHeader) => JSX.Element) & {
5
7
  displayName: string;
6
8
  };
9
+ export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { ContextInfoType } from '~/model';
3
3
  import { IDashboard } from '../../types/dashboard';
4
4
  interface IDashboardProps {
@@ -8,6 +8,7 @@ interface IDashboardProps {
8
8
  update: (dashboard: IDashboard) => Promise<void>;
9
9
  config: IDashboardConfig;
10
10
  onChange?: (dashboard: IDashboard) => void;
11
+ headerSlot?: ReactNode;
11
12
  }
12
13
  export interface IDashboardModel {
13
14
  readonly json: IDashboard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "8.49.3",
3
+ "version": "8.50.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",