@vizzly/dashboard 0.15.0-dev-68f3aa73261b3c9e5fbc59ed0692867816aab61a → 0.15.0-dev-e5d1984979f104ca58fe63facbc70695fbc48fa1
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.cjs.development.js +199 -405
- package/dist/dashboard.cjs.production.min.js +1 -1
- package/dist/dashboard.esm.js +199 -405
- package/dist/shared-logic/src/Component/types.d.ts +0 -1
- package/dist/shared-ui/src/api/useQueryEffect.d.ts +2 -1
- package/dist/shared-ui/src/components/Component/types.d.ts +0 -2
- package/dist/shared-ui/src/components/Component.d.ts +0 -2
- package/dist/shared-ui/src/components/Studio/StudioApp/Cell.d.ts +0 -2
- package/dist/shared-ui/src/components/useComponentEffect.d.ts +2 -2
- package/dist/shared-ui/src/contexts/DashboardContext/types.d.ts +1 -17
- package/dist/shared-ui/src/library/Editor/useEditor.d.ts +0 -2
- package/dist/shared-ui/src/library/Library/ComponentInLibrary.d.ts +0 -1
- package/dist/shared-ui/src/library/Library/Library.d.ts +0 -4
- package/dist/shared-ui/src/library/Library/types.d.ts +0 -2
- package/package.json +1 -1
|
@@ -586,7 +586,6 @@ export declare type MaybeOldComponent<Attrs = Component.Attributes> = Omit<Compo
|
|
|
586
586
|
export declare type Component<Attrs = Component.Attributes> = {
|
|
587
587
|
attributes: Attrs;
|
|
588
588
|
localFilters: Array<AdditionalFilter>;
|
|
589
|
-
results: (Result | null)[];
|
|
590
589
|
colSpan: number;
|
|
591
590
|
/** @deprecated Moved to dashboard level. */
|
|
592
591
|
reports: Array<Report>;
|
|
@@ -4,6 +4,7 @@ import { FilterConfig } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
|
4
4
|
import { DataSet } from '../../../shared-logic/src/DataSet/types';
|
|
5
5
|
import { QueryableEntity } from './useQueryEffect/types';
|
|
6
6
|
import { UseVariableState } from '../contexts/Variables/types';
|
|
7
|
-
export declare const useQueryEffect: (queries: QueryableEntity, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal,
|
|
7
|
+
export declare const useQueryEffect: (queries: QueryableEntity, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, filterConfig: FilterConfig, dataSet: DataSet, componentType?: "progress" | "areaChart" | "areaChartV2" | "barChart" | "barChartV2" | "basicTable" | "bubbleChart" | "bubbleChartV2" | "comboChart" | "comboChartV2" | "custom" | "dataTable" | "funnelChart" | "horizontalBarChart" | "lineChart" | "lineChartV2" | "mercatorMap" | "pieChart" | "radarChart" | "richText" | "scatterChart" | "singleStat" | "sunburstChart" | "waterfallChart" | undefined, variables?: UseVariableState | undefined) => {
|
|
8
|
+
results: Array<Result | null>;
|
|
8
9
|
queriesAreChanging: boolean;
|
|
9
10
|
};
|
|
@@ -2,14 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import { VizzlyComponents } from '../../types';
|
|
3
3
|
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
4
4
|
import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/types';
|
|
5
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
6
5
|
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
7
6
|
import { MapPosition } from '../../../../charts/src/MercatorMap';
|
|
8
7
|
import { DashboardBehaviour, IdPrefix } from '../../contexts/DashboardBehaviour/types';
|
|
9
8
|
interface BaseChartProps<AttributesType> {
|
|
10
9
|
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
11
10
|
component: ComponentType<AttributesType>;
|
|
12
|
-
setResults: (results: (Result | null)[]) => void;
|
|
13
11
|
setLocalFilters: (localFilters: ComponentType['localFilters']) => void;
|
|
14
12
|
globalFilters: AdditionalFilter[];
|
|
15
13
|
dataSet: DataSetType;
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
import { VizzlyComponents } from '../types';
|
|
3
3
|
import { AdditionalFilter } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
4
4
|
import { Component as ComponentType } from '../../../shared-logic/src/Component/types';
|
|
5
|
-
import { Result } from '../../../shared-logic/src/Result/types';
|
|
6
5
|
export declare type ComponentProps = {
|
|
7
6
|
id: string;
|
|
8
7
|
component: ComponentType;
|
|
9
8
|
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
10
|
-
setResults: (results: (Result | null)[]) => void;
|
|
11
9
|
updateComponentAttributes: (attributes: ComponentType.Attributes) => void;
|
|
12
10
|
isBeingSizeAdjusted: boolean;
|
|
13
11
|
library?: boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { VizzlyComponents } from '../../../types';
|
|
3
3
|
import { Component as ComponentType } from '../../../../../shared-logic/src/Component/types';
|
|
4
|
-
import { Result } from '../../../../../shared-logic/src/Result/types';
|
|
5
4
|
import { DownloadType, FileFormat } from '../../../api/useQueryEffect/download';
|
|
6
5
|
import { Display } from '../../../../../shared-logic/src/Display/types';
|
|
7
6
|
declare type EmptyCellProps = {
|
|
@@ -26,7 +25,6 @@ declare type PopulatedCellProps = {
|
|
|
26
25
|
fileFormat: FileFormat;
|
|
27
26
|
}) => void;
|
|
28
27
|
testId: string;
|
|
29
|
-
setResults: (results: (Result | null)[]) => void;
|
|
30
28
|
updateComponentAttributes: (attributes: ComponentType.Attributes) => void;
|
|
31
29
|
isBeingSizeAdjusted: boolean;
|
|
32
30
|
setComponentReports: (reports: ComponentType['reports']) => void;
|
|
@@ -2,9 +2,9 @@ import { Component } from '../../../shared-logic/src/Component/types';
|
|
|
2
2
|
import { DataSet as DataSetType } from '../../../shared-logic/src/DataSet/types';
|
|
3
3
|
import { VizzlyComponents } from '../types';
|
|
4
4
|
import { FilterConfig } from '../../../shared-logic/src/AdditionalFilter/types';
|
|
5
|
-
import { Result } from '../../../shared-logic/src/Result/types';
|
|
6
5
|
import { QueryEngineConfig } from '../../../shared-logic/src/QueryEngineConfig/types';
|
|
7
6
|
import { UseVariableState } from '../contexts/Variables/types';
|
|
8
|
-
export declare const useComponentEffect: <T extends Component.Attributes>(attributes: T, dataSet: DataSetType, queryEngineConfig: QueryEngineConfig, filterConfig: FilterConfig, updateComponentAttributes: (attributes: T) => void, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal,
|
|
7
|
+
export declare const useComponentEffect: <T extends Component.Attributes>(attributes: T, dataSet: DataSetType, queryEngineConfig: QueryEngineConfig, filterConfig: FilterConfig, updateComponentAttributes: (attributes: T) => void, runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal, variables?: UseVariableState | undefined) => {
|
|
9
8
|
queriesAreChanging: boolean;
|
|
9
|
+
results: (import("../../../shared-logic/src/Result/types").Result | null)[];
|
|
10
10
|
};
|
|
@@ -5,7 +5,6 @@ import { SetDataSetsAction } from './logic/types';
|
|
|
5
5
|
import { VizzlyComponents, trackEventCallback } from '../../types';
|
|
6
6
|
import { StoredTheme } from '../../../../shared-logic/src/Theme/types';
|
|
7
7
|
import { DataSet } from '../../../../shared-logic/src/DataSet/types';
|
|
8
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
9
8
|
import { Report } from '../../../../shared-logic/src/Report/types';
|
|
10
9
|
import { AdditionalFilter } from '../../../../shared-logic/src/AdditionalFilter/types';
|
|
11
10
|
import { DashboardBehaviour } from '../DashboardBehaviour/types';
|
|
@@ -209,21 +208,6 @@ export declare type RemoveComponentFromLibraryAction = {
|
|
|
209
208
|
type: 'removeComponentFromLibrary';
|
|
210
209
|
libraryIndex: number;
|
|
211
210
|
};
|
|
212
|
-
export declare type SetResultsForComponentInDisplayAction = {
|
|
213
|
-
type: 'setResultsForComponentInDisplay';
|
|
214
|
-
rowIndex: number;
|
|
215
|
-
cellIndex: number;
|
|
216
|
-
results: (Result | null)[];
|
|
217
|
-
};
|
|
218
|
-
export declare type SetResultsForComponentInEditorAction = {
|
|
219
|
-
type: 'setResultsForComponentInEditor';
|
|
220
|
-
results: (Result | null)[];
|
|
221
|
-
};
|
|
222
|
-
export declare type SetResultsForComponentInLibraryAction = {
|
|
223
|
-
type: 'setResultsForComponentInLibrary';
|
|
224
|
-
results: (Result | null)[];
|
|
225
|
-
libraryIndex: number;
|
|
226
|
-
};
|
|
227
211
|
export declare type SetLocalFiltersAction = {
|
|
228
212
|
type: 'setLocalFilters';
|
|
229
213
|
localFilters: AdditionalFilter[];
|
|
@@ -284,7 +268,7 @@ export declare type StartEditorAction = {
|
|
|
284
268
|
libraryIndex: number | null;
|
|
285
269
|
component: Component | null;
|
|
286
270
|
};
|
|
287
|
-
export declare type StudioAction = InitAction | SetDashboardAction | ImportDashboardAction | SaveComponentAction | ClearModalAction | InsertRowAction | AppendCellAction | AddHeaderRowAction | SetHeaderComponentAction | RemoveCellAction | ClearCellAction | RemoveRowAction | AddDataSetAction | RemoveDataSetAction | SetDataSetsAction | SetLocalFiltersAction | SetAttributesAction | UpdateEditorComponentAction |
|
|
271
|
+
export declare type StudioAction = InitAction | SetDashboardAction | ImportDashboardAction | SaveComponentAction | ClearModalAction | InsertRowAction | AppendCellAction | AddHeaderRowAction | SetHeaderComponentAction | RemoveCellAction | ClearCellAction | RemoveRowAction | AddDataSetAction | RemoveDataSetAction | SetDataSetsAction | SetLocalFiltersAction | SetAttributesAction | UpdateEditorComponentAction | StartEditingComponentAction | StartPickingComponentFromLibraryForDisplayAction | PickComponentFromLibraryForDisplayAction | SetThemeAction | SetGlobalFiltersAction | ChangePreviewModeAction | UpdateDisplayComponentAttributesAction | UpdateComponentLibraryAttributesAction | RemoveComponentFromLibraryAction | AddCustomComponentAction | SetColSpansAction | SetRowHeightAction | SetComponentReportsAction | SwapComponentsAction | AddComponentToLibrary | StartEditorAction | MoveRowAction | SetActiveModalAction | SetGeneratingPDFAction;
|
|
288
272
|
export declare type PipelineTransformationOptions = {
|
|
289
273
|
dashboardFilters: DashboardBehaviour['dashboardFilters'];
|
|
290
274
|
onDashboardFilterChange: DashboardBehaviour['onDashboardFilterChange'];
|
|
@@ -7,7 +7,6 @@ import { DataSet as DataSetType } from '../../../../shared-logic/src/DataSet/typ
|
|
|
7
7
|
import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
|
|
8
8
|
import { DashboardBehaviour, TextOverride } from '../../contexts/DashboardBehaviour/types';
|
|
9
9
|
import { Dashboard } from '../../../../shared-logic/src/Dashboard/types';
|
|
10
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
11
10
|
import { StudioAction, StudioState } from '../../contexts/DashboardContext/types';
|
|
12
11
|
import { SelectableCustomView } from '../../../../shared-logic/src/CustomView/types';
|
|
13
12
|
export declare type EditorHookValues = {
|
|
@@ -28,7 +27,6 @@ export declare type EditorHookValues = {
|
|
|
28
27
|
setAttributes: (attributes: ComponentType.Attributes) => void;
|
|
29
28
|
setLocalFilters: (localFilters: Component['localFilters']) => void;
|
|
30
29
|
setPartialAttributes: (attributes: Partial<ComponentType.Attributes>) => void;
|
|
31
|
-
setResults: (results: (Result | null)[]) => void;
|
|
32
30
|
mode: 'endUser' | 'admin';
|
|
33
31
|
origin: Origin;
|
|
34
32
|
componentEditor: StudioState['componentEditor'];
|
|
@@ -6,7 +6,6 @@ declare type ComponentInLibraryProps = {
|
|
|
6
6
|
libraryIndex: number;
|
|
7
7
|
onSelectComponent: ViewsInLibraryProps['onSelectComponent'];
|
|
8
8
|
runQueriesCallback: ViewsInLibraryProps['runQueriesCallback'];
|
|
9
|
-
setResults: ViewsInLibraryProps['setResults'];
|
|
10
9
|
updateComponentAttributes: ViewsInLibraryProps['updateComponentAttributes'];
|
|
11
10
|
selectedIndex: number;
|
|
12
11
|
onEdit: (index: number) => void;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
3
|
-
import { Query } from '../../../../shared-logic/src/Query/types';
|
|
4
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
5
3
|
import { VizzlyComponents } from '../../types';
|
|
6
4
|
import { Dashboard } from '../../../../shared-logic/src/Dashboard';
|
|
7
5
|
export declare const Library: () => JSX.Element;
|
|
@@ -10,10 +8,8 @@ export declare const ViewLibraryDisplay: FunctionComponent<{
|
|
|
10
8
|
onClose: () => void;
|
|
11
9
|
onSelect: () => void;
|
|
12
10
|
updateComponentAttributes: (attributes: ComponentType.Attributes) => void;
|
|
13
|
-
setFocussedComponentResults: (results: (Result | null)[], queries: Query[]) => void;
|
|
14
11
|
dashboard: Dashboard;
|
|
15
12
|
selectedLibraryIndex: number;
|
|
16
|
-
setResults: (results: (Result | null)[], libraryIndex: number) => void;
|
|
17
13
|
canEditComponentLibrary: boolean;
|
|
18
14
|
onEdit: (index: number) => void;
|
|
19
15
|
onDelete: (index: number) => void;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { VizzlyComponents } from '../../types';
|
|
2
2
|
import { Component as ComponentType } from '../../../../shared-logic/src/Component/types';
|
|
3
|
-
import { Result } from '../../../../shared-logic/src/Result/types';
|
|
4
3
|
export declare type ViewsInLibraryProps = {
|
|
5
4
|
onSelectComponent: (componentIndex: number) => void;
|
|
6
5
|
runQueriesCallback: VizzlyComponents.runQueriesCallbackInternal;
|
|
7
|
-
setResults: (results: (Result | null)[], libraryIndex: number) => void;
|
|
8
6
|
components: ComponentType[];
|
|
9
7
|
updateComponentAttributes: (attributes: ComponentType.Attributes) => void;
|
|
10
8
|
selectedIndex: number;
|
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-e5d1984979f104ca58fe63facbc70695fbc48fa1",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "./dist/dashboard/src/index.d.ts",
|
|
7
7
|
"module": "./dist/dashboard.esm.js",
|