@dashboard-designer/ui 0.1.2 → 0.1.27

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/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import react__default from 'react';
3
3
  import { Dashboard, AuthConfig, User, EmbedTokenRequest, EmbedTokenResponse, ConnectionConfig, ExecuteQueryRequest, QueryResult, DashboardAclEntry, DashboardPermission, DashboardVersionMeta, DashboardVersion, Widget, FilterDef, WidgetType } from '@dashboard-designer/core';
4
- export { AuthConfig, ConnectionConfig, Dashboard, FilterDef, Widget } from '@dashboard-designer/core';
4
+ export { AuthConfig, ConnectionConfig, DASHBOARD_FILE_FORMAT, DASHBOARD_FILE_VERSION, Dashboard, FilterDef, Widget, buildDashboardExportFile, cloneDashboardForImport, parseDashboardImport } from '@dashboard-designer/core';
5
5
  import * as i18next from 'i18next';
6
6
  export { default as i18n } from 'i18next';
7
7
  import * as lucide_react from 'lucide-react';
@@ -215,4 +215,9 @@ declare const navIcon: {
215
215
  readonly users: react.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
216
216
  };
217
217
 
218
- export { ChartRenderer, DashboardApiClient, DashboardDesigner, type DashboardDesignerProps, DashboardViewer, type DashboardViewerProps, FieldHelp, type FieldHelpProps, FieldLabel, type FieldLabelProps, FilterBar, ICON_SIZE, SearchableSelect, type SearchableSelectProps, chartTypeIcon, ensureI18n, navIcon };
218
+ /** Download the dashboard definition as a JSON file. */
219
+ declare function downloadDashboardJson(dashboard: Dashboard): void;
220
+ /** Read a File as text and return JSON. */
221
+ declare function readJsonFile(file: File): Promise<unknown>;
222
+
223
+ export { ChartRenderer, DashboardApiClient, DashboardDesigner, type DashboardDesignerProps, DashboardViewer, type DashboardViewerProps, FieldHelp, type FieldHelpProps, FieldLabel, type FieldLabelProps, FilterBar, ICON_SIZE, SearchableSelect, type SearchableSelectProps, chartTypeIcon, downloadDashboardJson, ensureI18n, navIcon, readJsonFile };