@vizzly/dashboard 0.14.4-dev-8beb4cd0b38350abdd05b93b66f2523ced40aa15 → 0.14.4-dev-f96aec9acd048ca40becf3a412567d3799b85700

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.
Files changed (56) hide show
  1. package/dist/charts/src/v2/components/WaterfallChart/WaterfallChart.d.ts +3 -2
  2. package/dist/charts/src/v2/index.d.ts +1 -0
  3. package/dist/dashboard/src/contexts/GlobalProvider/useGlobalProvider.d.ts +6 -6
  4. package/dist/dashboard.cjs.development.js +1194 -580
  5. package/dist/dashboard.cjs.production.min.js +1 -1
  6. package/dist/dashboard.esm.js +1194 -580
  7. package/dist/results-driver/src/driver/VizzlyQuery/AreaChart/toQueries.d.ts +1 -1
  8. package/dist/results-driver/src/driver/VizzlyQuery/BarChart/toQueries.d.ts +1 -1
  9. package/dist/results-driver/src/driver/VizzlyQuery/BarChartV2/toQueries.d.ts +1 -1
  10. package/dist/results-driver/src/driver/VizzlyQuery/BarChartV2 copy/toQueries.d.ts +4 -0
  11. package/dist/results-driver/src/driver/VizzlyQuery/BasicTable/toQueries.d.ts +1 -1
  12. package/dist/results-driver/src/driver/VizzlyQuery/FunnelChart/toQueries.d.ts +1 -1
  13. package/dist/results-driver/src/driver/VizzlyQuery/HorizontalBarChart/toQueries.d.ts +1 -1
  14. package/dist/results-driver/src/driver/VizzlyQuery/LineChart/toQueries.d.ts +1 -1
  15. package/dist/results-driver/src/driver/VizzlyQuery/LineChartV2/toQueries.d.ts +1 -1
  16. package/dist/results-driver/src/driver/VizzlyQuery/PieChart/toQueries.d.ts +1 -1
  17. package/dist/results-driver/src/driver/VizzlyQuery/PivotTable/toQueries.d.ts +1 -1
  18. package/dist/results-driver/src/driver/VizzlyQuery/RichText/toQueries.d.ts +1 -1
  19. package/dist/results-driver/src/driver/VizzlyQuery/WaterfallChart/toQueries.d.ts +1 -1
  20. package/dist/results-driver/src/driver/VizzlyQuery/commonToQueries.d.ts +1 -1
  21. package/dist/shared-logic/src/AreaChartV2/attributesSchema.d.ts +3 -0
  22. package/dist/shared-logic/src/AreaChartV2/buildAreaChartRepresentation.d.ts +40 -0
  23. package/dist/shared-logic/src/AreaChartV2/constants.d.ts +3 -0
  24. package/dist/shared-logic/src/AreaChartV2/index.d.ts +4 -0
  25. package/dist/shared-logic/src/AreaChartV2/setAttributes.d.ts +4 -0
  26. package/dist/shared-logic/src/AreaChartV2/types.d.ts +1 -1
  27. package/dist/shared-logic/src/ChartsV2/adjustTicks.d.ts +3 -0
  28. package/dist/shared-logic/src/{LineChartV2 → ChartsV2}/buildTrendAndForecast.d.ts +1 -1
  29. package/dist/shared-logic/src/ChartsV2/formattingFunctionAxis.d.ts +2 -0
  30. package/dist/shared-logic/src/{BarChartV2/getMinAndMax.d.ts → ChartsV2/getStackedMinAndMax.d.ts} +1 -1
  31. package/dist/shared-logic/src/{LineChartV2 → ChartsV2}/getTrendsAndForecastsData.d.ts +1 -1
  32. package/dist/shared-logic/src/ChartsV2/types.d.ts +4 -3
  33. package/dist/shared-logic/src/Component/setAttributes.d.ts +1 -1
  34. package/dist/shared-logic/src/Component/sharedSchemas.d.ts +1 -0
  35. package/dist/shared-logic/src/Component/types.d.ts +26 -4
  36. package/dist/shared-logic/src/DataSet/DataSet.d.ts +1 -1
  37. package/dist/shared-logic/src/WaterfallChart/buildWaterfallChartRepresentation.d.ts +7 -2
  38. package/dist/shared-logic/src/WaterfallChart/getRepresentationData.d.ts +19 -0
  39. package/dist/shared-logic/src/WaterfallChart/getYTicks.d.ts +8 -0
  40. package/dist/shared-logic/src/WaterfallChart/types.d.ts +5 -15
  41. package/dist/shared-logic/src/getComponentInterface.d.ts +1 -0
  42. package/dist/shared-ui/src/api/useQueryEffect.d.ts +1 -1
  43. package/dist/shared-ui/src/components/AreaChartV2/AreaChartV2.d.ts +3 -0
  44. package/dist/shared-ui/src/components/AreaChartV2/AreaChartV2View.d.ts +17 -0
  45. package/dist/shared-ui/src/components/AreaChartV2/index.d.ts +2 -0
  46. package/dist/shared-ui/src/components/Component/types.d.ts +1 -0
  47. package/dist/shared-ui/src/components/HeadlineStats/HeadlineStats.d.ts +2 -2
  48. package/dist/shared-ui/src/components/LineChart/LineChartView.d.ts +1 -1
  49. package/dist/shared-ui/src/components/MercatorMap/View.d.ts +1 -1
  50. package/package.json +1 -1
  51. package/dist/shared-logic/src/BarChartV2/adjustTicks.d.ts +0 -3
  52. package/dist/shared-logic/src/LineChartV2/adjustTicks.d.ts +0 -3
  53. /package/dist/shared-logic/src/{BarChartV2 → ChartsV2}/fillMissingKeysForChartData.d.ts +0 -0
  54. /package/dist/shared-logic/src/{LineChartV2 → ChartsV2}/getMinAndMax.d.ts +0 -0
  55. /package/dist/shared-logic/src/{LineChartV2 → ChartsV2}/getScaleAndTicks.d.ts +0 -0
  56. /package/dist/shared-logic/src/{BarChartV2/getScaleAndTicks.d.ts → ChartsV2/getStackedScaleAndTicks.d.ts} +0 -0
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { VizzlyComponents } from '../../types';
3
+ import { Component } from '../../../../shared-logic/src/Component/types';
4
+ import { Dashboard } from '../../../../shared-logic/src/Dashboard/types';
5
+ import { IdPrefix, DashboardBehaviour } from '../../contexts/DashboardBehaviour/types';
6
+ import { HeadlineStatsProps } from '../HeadlineStats/HeadlineStats';
7
+ export declare type AreaChartV2ViewProps = Omit<VizzlyComponents.ViewProps<{
8
+ attributes: Component.AreaChartV2Attributes;
9
+ }>, 'supportedTimeTruncFunctions' | 'supportedTransformationFunctions' | 'supportedAggregates'>;
10
+ export declare const AreaChartV2View: (props: AreaChartV2ViewProps & {
11
+ dashboard?: Dashboard;
12
+ library?: boolean;
13
+ numberFormatOptions: DashboardBehaviour['numberFormatOptions'];
14
+ dateTimeFormatOptions: DashboardBehaviour['dateTimeFormatOptions'];
15
+ propsForHeadline: HeadlineStatsProps;
16
+ idPrefix: IdPrefix;
17
+ }) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './AreaChartV2';
2
+ export * from './AreaChartV2View';
@@ -42,6 +42,7 @@ export declare type LineChartProps = ChartPropsWithPartialAttributes<ComponentTy
42
42
  sm?: boolean;
43
43
  };
44
44
  export declare type LineChartV2Props = ChartPropsWithPartialAttributes<ComponentType.LineChartV2Attributes> & ChartPropsWithAttributesUpdate<ComponentType.LineChartV2Attributes>;
45
+ export declare type AreaChartV2Props = ChartPropsWithPartialAttributes<ComponentType.AreaChartV2Attributes> & ChartPropsWithAttributesUpdate<ComponentType.AreaChartV2Attributes>;
45
46
  export declare type BarChartV2Props = ChartPropsWithPartialAttributes<ComponentType.BarChartV2Attributes> & ChartPropsWithAttributesUpdate<ComponentType.BarChartV2Attributes>;
46
47
  export declare type PieChartProps = ChartPropsWithPartialAttributes<ComponentType.PieChartAttributes> & {
47
48
  editor?: boolean;
@@ -1,4 +1,4 @@
1
1
  import { FunctionComponent } from 'react';
2
- import { AreaChartProps, BarChartProps, BarChartV2Props, FunnelChartProps, LineChartProps, LineChartV2Props } from '../Component/types';
3
- export declare type HeadlineStatsProps = LineChartProps | BarChartProps | AreaChartProps | FunnelChartProps | LineChartV2Props | BarChartV2Props;
2
+ import { AreaChartProps, AreaChartV2Props, BarChartProps, BarChartV2Props, FunnelChartProps, LineChartProps, LineChartV2Props } from '../Component/types';
3
+ export declare type HeadlineStatsProps = LineChartProps | BarChartProps | AreaChartProps | FunnelChartProps | LineChartV2Props | BarChartV2Props | AreaChartV2Props;
4
4
  export declare const HeadlineStats: FunctionComponent<HeadlineStatsProps>;
@@ -20,7 +20,7 @@ declare const memoized: React.NamedExoticComponent<{
20
20
  };
21
21
  localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[];
22
22
  setLocalFilters: (localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[]) => void;
23
- setPartialAttributes: (updates: Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BubbleChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes>) => void;
23
+ setPartialAttributes: (updates: Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BubbleChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes>) => void;
24
24
  sm?: boolean | undefined;
25
25
  dataSet: import("../../../../dashboard/src").DataSet<import("../../../../dashboard/src").DataSet.Field>;
26
26
  } & {
@@ -17,7 +17,7 @@ declare const _default: (props: {
17
17
  };
18
18
  localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[];
19
19
  setLocalFilters: (localFilters: import("../../../../shared-logic/src/AdditionalFilter/types").AdditionalFilter[]) => void;
20
- setPartialAttributes: (updates: Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BubbleChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes>) => void;
20
+ setPartialAttributes: (updates: Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BasicTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BubbleChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ComboChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.CustomViewAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.DataTableAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.FunnelChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.HorizontalBarChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.LineChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.BarChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.AreaChartV2Attributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.MercatorMapAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.PieChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ProgressAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.RichTextAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.ScatterChartAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.SingleStatAttributes> | Partial<import("../../../../shared-logic/src/Component/types").Component.WaterfallChartAttributes>) => void;
21
21
  sm?: boolean | undefined;
22
22
  dataSet: import("../../../../dashboard/src").DataSet<import("../../../../dashboard/src").DataSet.Field>;
23
23
  } & {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vizzly/dashboard",
3
3
  "author": "james@vizzly.co",
4
- "version": "0.14.4-dev-8beb4cd0b38350abdd05b93b66f2523ced40aa15",
4
+ "version": "0.14.4-dev-f96aec9acd048ca40becf3a412567d3799b85700",
5
5
  "source": "src/index.tsx",
6
6
  "types": "./dist/dashboard/src/index.d.ts",
7
7
  "module": "./dist/dashboard.esm.js",
@@ -1,3 +0,0 @@
1
- import { BarChartRepresentation } from './types';
2
- export declare const ASSUMED_AVERAGE_CHAR_WIDTH = 8.8;
3
- export declare const adjustTicks: (chartRepresentation: BarChartRepresentation, width: number) => BarChartRepresentation;
@@ -1,3 +0,0 @@
1
- import { LineChartRepresentation } from './types';
2
- export declare const ASSUMED_AVERAGE_CHAR_WIDTH = 8.8;
3
- export declare const adjustTicks: (lineChartRepresentation: LineChartRepresentation, width: number) => LineChartRepresentation;