@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.
- package/dist/dashboard/src/contexts/GlobalProvider/GlobalProvider.d.ts +4 -2
- package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +18 -0
- package/dist/dashboard/src/contexts/GlobalProvider/useOnDashboardLoadCallback.d.ts +3 -2
- package/dist/dashboard/src/types.d.ts +6 -5
- package/dist/dashboard.cjs.development.js +884 -854
- package/dist/dashboard.cjs.production.min.js +1 -1
- package/dist/dashboard.esm.js +884 -854
- package/dist/shared-ui/src/components/Studio/StudioContexts.d.ts +1 -1
- package/dist/shared-ui/src/contexts/DashboardBehaviour/context.d.ts +2 -2
- package/dist/shared-ui/src/contexts/DashboardBehaviour/types.d.ts +16 -13
- package/dist/shared-ui/src/contexts/DashboardContext/context.d.ts +4 -1
- package/package.json +1 -1
|
@@ -27,7 +27,6 @@ export declare type StudioProps = {
|
|
|
27
27
|
onViewClick?: (data: Component.OnViewClick, query?: Component.OnViewClickQuery) => void;
|
|
28
28
|
renderTableCell?: (data: Component.RenderTableCell) => React.ReactNode | string | undefined;
|
|
29
29
|
onReset: () => Promise<Dashboard | null>;
|
|
30
|
-
onDashboardUpdate?: (dashboard: Dashboard) => void;
|
|
31
30
|
identityConfig: IdentityConfig;
|
|
32
31
|
dashboard: Dashboard;
|
|
33
32
|
children?: ReactNode;
|
|
@@ -39,5 +38,6 @@ export declare type StudioProps = {
|
|
|
39
38
|
globalLibraries: GlobalLibrary.Base[];
|
|
40
39
|
};
|
|
41
40
|
saving: SavingState;
|
|
41
|
+
dashboardHash?: string;
|
|
42
42
|
};
|
|
43
43
|
export declare const StudioContexts: FunctionComponent<StudioProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { FunctionComponent } from 'react';
|
|
2
|
-
import { DashboardBehaviour as DashboardBehaviourType, FilterLibrary, LabelFormat, TextOverride } from './types';
|
|
3
2
|
import { Component, ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
|
-
import { VizzlyComponents } from '../../types';
|
|
5
3
|
import { Dashboard } from '../../../../shared-logic/src/Dashboard';
|
|
4
|
+
import { VizzlyComponents } from '../../types';
|
|
6
5
|
import { UseVariableState } from '../Variables/types';
|
|
6
|
+
import { DashboardBehaviour as DashboardBehaviourType, FilterLibrary, LabelFormat, TextOverride } from './types';
|
|
7
7
|
export interface DashboardBehaviourProps {
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
excludeComponentTypes?: ComponentType[];
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
3
|
+
import { programmaticDashboardCallback } from '../../../../shared-logic/src/Callbacks/types';
|
|
4
|
+
import { Component, ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
5
|
+
import { CustomView } from '../../../../shared-logic/src/CustomView/types';
|
|
6
|
+
import { Dashboard } from '../../../../shared-logic/src/Dashboard/types';
|
|
5
7
|
import { DataPanelConfig, DataPanelSection } from '../../../../shared-logic/src/DataPanelConfig/types';
|
|
6
|
-
import { FormatPanelConfig, FormatPanelSection } from '../../../../shared-logic/src/FormatPanelConfig/types';
|
|
7
8
|
import { DataSet } from '../../../../shared-logic/src/DataSet/types';
|
|
8
|
-
import { Component } from '../../../../shared-logic/src/Component/types';
|
|
9
|
-
import { Dashboard } from '../../../../shared-logic/src/Dashboard/types';
|
|
10
|
-
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
11
9
|
import { DateTimeFilterOptions } from '../../../../shared-logic/src/DateTime/types';
|
|
12
|
-
import {
|
|
10
|
+
import { FeatureToggles } from '../../../../shared-logic/src/FeatureToggle/types';
|
|
11
|
+
import { FormatPanelConfig, FormatPanelSection } from '../../../../shared-logic/src/FormatPanelConfig/types';
|
|
13
12
|
import { PDFSettings } from '../../../../shared-logic/src/PDFGenerator/types';
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import { CustomView } from '../../../../shared-logic/src/CustomView/types';
|
|
13
|
+
import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
|
|
14
|
+
import { VizzlyTranslations } from '../../../../shared-logic/src/Translations/translation.types';
|
|
17
15
|
import { ValueAlias as ValueAliasType } from '../../../../shared-logic/src/ValueAlias/types';
|
|
18
16
|
import { VariablesCallback } from '../../../../shared-logic/src/Variables/types';
|
|
19
|
-
import { UseVariableState } from '../Variables/types';
|
|
20
17
|
import { ClickSettingTypes } from '../../hooks/types';
|
|
18
|
+
import { VizzlyComponents } from '../../types';
|
|
19
|
+
import { UseVariableState } from '../Variables/types';
|
|
21
20
|
declare type OverrideDeveloperInfo = {
|
|
22
21
|
overrideKey: string;
|
|
23
22
|
componentProps: any;
|
|
@@ -127,6 +126,10 @@ export declare type DashboardBehaviour = {
|
|
|
127
126
|
pdfSettings?: PDFSettings;
|
|
128
127
|
labelFormat: LabelFormat;
|
|
129
128
|
timeZone?: string;
|
|
129
|
+
onDashboardUpdate?: (dashboard: Dashboard, meta: {
|
|
130
|
+
hasUnsavedChanges: boolean;
|
|
131
|
+
}) => void;
|
|
132
|
+
updateDashboardHash?: (dashboard: Dashboard) => void;
|
|
130
133
|
};
|
|
131
134
|
export declare type TextOverride = (key: string, defaultValue: string, options?: TranslationOptions) => string;
|
|
132
135
|
export declare type FilterLibrary = (data: Component[]) => Component[];
|
|
@@ -11,7 +11,10 @@ export interface WithDashboardContextProps {
|
|
|
11
11
|
trackEvent?: trackEventCallback;
|
|
12
12
|
theme?: VizzlyTheming.Base;
|
|
13
13
|
componentEditor?: StudioState['componentEditor'];
|
|
14
|
-
onDashboardUpdate?: (dashboard: Dashboard
|
|
14
|
+
onDashboardUpdate?: (dashboard: Dashboard, meta: {
|
|
15
|
+
hasUnsavedChanges: boolean;
|
|
16
|
+
}) => void;
|
|
17
|
+
dashboardHash?: string;
|
|
15
18
|
}
|
|
16
19
|
export declare const DashboardContext: React.Context<ProvidedValues>;
|
|
17
20
|
export declare const DashboardContextProvider: React.FC<WithDashboardContextProps>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizzly/dashboard",
|
|
3
3
|
"author": "james@vizzly.co",
|
|
4
|
-
"version": "0.15.0-dev-
|
|
4
|
+
"version": "0.15.0-dev-3d599f1049eba812c1f45d1985540f920617733b",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./dist/dashboard/src/index.d.ts",
|
|
7
7
|
"module": "./dist/dashboard.esm.js",
|