@nice2dev/ui-bi 1.0.20 → 1.0.22

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/types.d.ts CHANGED
@@ -1,7 +1,5 @@
1
- /**
2
- * @package @nice2dev/ui-bi
3
- * Business Intelligence Types
4
- */
1
+ import { NiceComponentTutorial } from '@nice2dev/ui-core';
2
+
5
3
  export interface DataSource {
6
4
  id: string;
7
5
  name: string;
@@ -423,6 +421,8 @@ export interface NiceReportBuilderProps {
423
421
  onPreview?: (report: Report) => void;
424
422
  onExport?: (report: Report, format: 'pdf' | 'excel' | 'csv') => void;
425
423
  className?: string;
424
+ /** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
425
+ tutorial?: NiceComponentTutorial;
426
426
  }
427
427
  export interface NiceDashboardStudioProps {
428
428
  dashboard?: Dashboard;
@@ -432,6 +432,8 @@ export interface NiceDashboardStudioProps {
432
432
  onWidgetAdd?: (type: WidgetType) => void;
433
433
  onRefresh?: () => void;
434
434
  className?: string;
435
+ /** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
436
+ tutorial?: NiceComponentTutorial;
435
437
  }
436
438
  export interface NiceETLBuilderProps {
437
439
  pipeline?: ETLPipeline;
@@ -440,6 +442,8 @@ export interface NiceETLBuilderProps {
440
442
  onRun?: (pipeline: ETLPipeline) => Promise<ETLRun>;
441
443
  onSchedule?: (pipeline: ETLPipeline, schedule: ETLSchedule) => void;
442
444
  className?: string;
445
+ /** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
446
+ tutorial?: NiceComponentTutorial;
443
447
  }
444
448
  export interface NiceCubeBrowserProps {
445
449
  cube?: Cube;
@@ -0,0 +1,5 @@
1
+ import { NiceViewDefinitionV2 } from '@nice2dev/ui';
2
+ import { Dashboard } from './types';
3
+
4
+ /** Convert a {@link Dashboard} to a {@link NiceViewDefinitionV2} (dashboard kind). */
5
+ export declare function dashboardToV2(dashboard: Dashboard): NiceViewDefinitionV2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/ui-bi",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "Nice2Dev Business Intelligence — Report builder, dashboard studio, ETL pipeline builder",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -33,10 +33,13 @@
33
33
  "prepublishOnly": "npm run build"
34
34
  },
35
35
  "peerDependencies": {
36
+ "@nice2dev/ui-core": "^1.0.22",
36
37
  "react": ">=17.0.0",
37
38
  "react-dom": ">=17.0.0"
38
39
  },
39
40
  "devDependencies": {
41
+ "@nice2dev/ui": "^1.0.22",
42
+ "@nice2dev/ui-core": "^1.0.22",
40
43
  "@testing-library/jest-dom": "^6.9.1",
41
44
  "@testing-library/react": "^14.0.0",
42
45
  "@types/react": "^18.2.0",