@vizzly/dashboard 0.15.0-dev-67a8f2b3c476fec9b95806eb843a397f087e47f5 → 0.15.0-dev-3d599f1049eba812c1f45d1985540f920617733b

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,9 +1,11 @@
1
1
  import { FunctionComponent, ReactNode } from 'react';
2
- import { DashboardProps } from '../../types';
3
2
  import * as DashboardLogic from '../../../../shared-logic/src/Dashboard';
3
+ import { DashboardProps } from '../../types';
4
4
  export declare type GlobalProviderType = {
5
5
  disableToolbar?: boolean;
6
- onDashboardUpdate?: (dashboard: DashboardLogic.Dashboard) => void;
6
+ onDashboardUpdate?: (dashboard: DashboardLogic.Dashboard, meta: {
7
+ hasUnsavedChanges: boolean;
8
+ }) => void;
7
9
  isEditor?: boolean;
8
10
  };
9
11
  export declare const GlobalProvider: FunctionComponent<DashboardProps & {
@@ -71,6 +71,9 @@ export declare const useGlobalContext: () => (import("../../types").InBrowserPro
71
71
  pdfSettings?: import("../../../../shared-logic/src/PDFGenerator/types").PDFSettings | undefined;
72
72
  labelFormat?: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").LabelFormat | undefined;
73
73
  filterLibrary?: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").FilterLibrary | undefined;
74
+ onDashboardUpdate?: ((dashboard: Dashboard, meta: {
75
+ hasUnsavedChanges: boolean;
76
+ }) => void) | undefined;
74
77
  } & Partial<import("../../../../shared-ui/src").VizzlyComponents.ComponentOverrides> & {
75
78
  onSave: (dashboard: Dashboard) => void;
76
79
  }) | (import("../../types").SelfHostedProps & {
@@ -140,6 +143,9 @@ export declare const useGlobalContext: () => (import("../../types").InBrowserPro
140
143
  pdfSettings?: import("../../../../shared-logic/src/PDFGenerator/types").PDFSettings | undefined;
141
144
  labelFormat?: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").LabelFormat | undefined;
142
145
  filterLibrary?: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").FilterLibrary | undefined;
146
+ onDashboardUpdate?: ((dashboard: Dashboard, meta: {
147
+ hasUnsavedChanges: boolean;
148
+ }) => void) | undefined;
143
149
  } & Partial<import("../../../../shared-ui/src").VizzlyComponents.ComponentOverrides> & {
144
150
  onSave: (dashboard: Dashboard) => void;
145
151
  }) | (import("../../types").CustomProps & {
@@ -209,6 +215,9 @@ export declare const useGlobalContext: () => (import("../../types").InBrowserPro
209
215
  pdfSettings?: import("../../../../shared-logic/src/PDFGenerator/types").PDFSettings | undefined;
210
216
  labelFormat?: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").LabelFormat | undefined;
211
217
  filterLibrary?: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").FilterLibrary | undefined;
218
+ onDashboardUpdate?: ((dashboard: Dashboard, meta: {
219
+ hasUnsavedChanges: boolean;
220
+ }) => void) | undefined;
212
221
  } & Partial<import("../../../../shared-ui/src").VizzlyComponents.ComponentOverrides> & {
213
222
  onSave: (dashboard: Dashboard) => void;
214
223
  }) | undefined;
@@ -279,6 +288,9 @@ export declare const GlobalContext: import("react").Context<(import("../../types
279
288
  pdfSettings?: import("../../../../shared-logic/src/PDFGenerator/types").PDFSettings | undefined;
280
289
  labelFormat?: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").LabelFormat | undefined;
281
290
  filterLibrary?: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").FilterLibrary | undefined;
291
+ onDashboardUpdate?: ((dashboard: Dashboard, meta: {
292
+ hasUnsavedChanges: boolean;
293
+ }) => void) | undefined;
282
294
  } & Partial<import("../../../../shared-ui/src").VizzlyComponents.ComponentOverrides> & {
283
295
  onSave: (dashboard: Dashboard) => void;
284
296
  }) | (import("../../types").SelfHostedProps & {
@@ -348,6 +360,9 @@ export declare const GlobalContext: import("react").Context<(import("../../types
348
360
  pdfSettings?: import("../../../../shared-logic/src/PDFGenerator/types").PDFSettings | undefined;
349
361
  labelFormat?: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").LabelFormat | undefined;
350
362
  filterLibrary?: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").FilterLibrary | undefined;
363
+ onDashboardUpdate?: ((dashboard: Dashboard, meta: {
364
+ hasUnsavedChanges: boolean;
365
+ }) => void) | undefined;
351
366
  } & Partial<import("../../../../shared-ui/src").VizzlyComponents.ComponentOverrides> & {
352
367
  onSave: (dashboard: Dashboard) => void;
353
368
  }) | (import("../../types").CustomProps & {
@@ -417,6 +432,9 @@ export declare const GlobalContext: import("react").Context<(import("../../types
417
432
  pdfSettings?: import("../../../../shared-logic/src/PDFGenerator/types").PDFSettings | undefined;
418
433
  labelFormat?: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").LabelFormat | undefined;
419
434
  filterLibrary?: import("../../../../shared-ui/src/contexts/DashboardBehaviour/types").FilterLibrary | undefined;
435
+ onDashboardUpdate?: ((dashboard: Dashboard, meta: {
436
+ hasUnsavedChanges: boolean;
437
+ }) => void) | undefined;
420
438
  } & Partial<import("../../../../shared-ui/src").VizzlyComponents.ComponentOverrides> & {
421
439
  onSave: (dashboard: Dashboard) => void;
422
440
  }) | undefined>;
@@ -1,3 +1,4 @@
1
- import { useSessionContext } from '../SessionContext';
1
+ import { Dashboard } from '../../../../shared-logic/src/Dashboard';
2
2
  import { DashboardBehaviour } from '../../../../shared-ui/src/contexts/DashboardBehaviour/types';
3
- export declare const useOnDashboardLoadCallback: (session: ReturnType<typeof useSessionContext>, onDashboardLoad: DashboardBehaviour['onDashboardLoad']) => void;
3
+ import { useSessionContext } from '../SessionContext';
4
+ export declare const useOnDashboardLoadCallback: (session: ReturnType<typeof useSessionContext>, onDashboardLoad: DashboardBehaviour['onDashboardLoad'], updateDashboardHash: (dashboard: Dashboard) => void) => void;
@@ -1,11 +1,11 @@
1
- import { StudioProps } from '../../shared-ui/src/components/Studio/StudioContexts';
2
- import { VizzlyComponents, VizzlyTheming, trackEventCallback } from '../../shared-ui/src/types';
3
- import { DashboardBehaviour } from '../../shared-ui/src/contexts/DashboardBehaviour/types';
4
1
  import { CustomDriver } from '../../results-driver/src/types';
5
- import { QueryEngineEndpoint } from '../../shared-logic/src/QueryEngineConfig/types';
6
2
  import { loadDataSetsCallback } from '../../shared-logic/src/Callbacks/types';
7
- import { EditorBehaviour } from '../../shared-ui/src/components/Editor/types';
3
+ import { QueryEngineEndpoint } from '../../shared-logic/src/QueryEngineConfig/types';
8
4
  import { VariablesCallback } from '../../shared-logic/src/Variables/types';
5
+ import { EditorBehaviour } from '../../shared-ui/src/components/Editor/types';
6
+ import { StudioProps } from '../../shared-ui/src/components/Studio/StudioContexts';
7
+ import { DashboardBehaviour } from '../../shared-ui/src/contexts/DashboardBehaviour/types';
8
+ import { VizzlyComponents, VizzlyTheming, trackEventCallback } from '../../shared-ui/src/types';
9
9
  export type { FilterConfig } from '../../shared-logic/src/AdditionalFilter/types';
10
10
  export declare type SharedEditorProps = {
11
11
  /**
@@ -93,6 +93,7 @@ export declare type SharedDashboardProps = {
93
93
  pdfSettings?: DashboardBehaviour['pdfSettings'];
94
94
  labelFormat?: DashboardBehaviour['labelFormat'];
95
95
  filterLibrary?: DashboardBehaviour['filterLibrary'];
96
+ onDashboardUpdate?: DashboardBehaviour['onDashboardUpdate'];
96
97
  } & Partial<VizzlyComponents.ComponentOverrides>;
97
98
  export declare type CustomDashboardProps = CustomProps & SharedDashboardProps;
98
99
  export declare type CustomEditorProps = CustomProps & SharedEditorProps;