@allurereport/charts-api 3.0.0-beta.21 → 3.0.0-beta.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
@@ -20,6 +20,9 @@ export declare enum BarChartType {
20
20
  FbsuAgePyramid = "fbsuAgePyramid",
21
21
  StabilityRateDistribution = "stabilityRateDistribution"
22
22
  }
23
+ export declare enum FunnelChartType {
24
+ TestingPyramid = "testingPyramid"
25
+ }
23
26
  export declare enum TreeMapChartType {
24
27
  SuccessRateDistribution = "successRateDistribution",
25
28
  CoverageDiff = "coverageDiff"
@@ -155,7 +158,13 @@ export interface ComingSoonChartData {
155
158
  type: ChartType.ComingSoon;
156
159
  title?: string;
157
160
  }
158
- export type GeneratedChartData = TrendChartData | PieChartData | BarChartData | ComingSoonChartData | TreeMapChartData | HeatMapChartData;
161
+ export interface FunnelChartData {
162
+ type: ChartType.Funnel;
163
+ dataType: FunnelChartType;
164
+ title?: string;
165
+ data: Record<string, number | string>[];
166
+ }
167
+ export type GeneratedChartData = TrendChartData | PieChartData | BarChartData | ComingSoonChartData | TreeMapChartData | HeatMapChartData | FunnelChartData;
159
168
  export type GeneratedChartsData = Record<ChartId, GeneratedChartData>;
160
169
  export type TrendChartOptions = {
161
170
  type: ChartType.Trend;
@@ -190,7 +199,13 @@ export type ComingSoonChartOptions = {
190
199
  type: ChartType.ComingSoon;
191
200
  title?: string;
192
201
  };
193
- export type ChartOptions = TrendChartOptions | PieChartOptions | BarChartOptions | ComingSoonChartOptions | TreeMapChartOptions | HeatMapChartOptions;
202
+ export type FunnelChartOptions = {
203
+ type: ChartType.Funnel;
204
+ dataType: FunnelChartType;
205
+ title?: string;
206
+ layers?: string[];
207
+ };
208
+ export type ChartOptions = TrendChartOptions | PieChartOptions | BarChartOptions | ComingSoonChartOptions | TreeMapChartOptions | HeatMapChartOptions | FunnelChartOptions;
194
209
  export interface AllureChartsStoreData {
195
210
  historyDataPoints: HistoryDataPoint[];
196
211
  testResults: TestResult[];
package/dist/types.js CHANGED
@@ -22,6 +22,10 @@ export var BarChartType;
22
22
  BarChartType["FbsuAgePyramid"] = "fbsuAgePyramid";
23
23
  BarChartType["StabilityRateDistribution"] = "stabilityRateDistribution";
24
24
  })(BarChartType || (BarChartType = {}));
25
+ export var FunnelChartType;
26
+ (function (FunnelChartType) {
27
+ FunnelChartType["TestingPyramid"] = "testingPyramid";
28
+ })(FunnelChartType || (FunnelChartType = {}));
25
29
  export var TreeMapChartType;
26
30
  (function (TreeMapChartType) {
27
31
  TreeMapChartType["SuccessRateDistribution"] = "successRateDistribution";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/charts-api",
3
- "version": "3.0.0-beta.21",
3
+ "version": "3.0.0-beta.22",
4
4
  "description": "Allure Charts API",
5
5
  "keywords": [
6
6
  "allure",
@@ -27,8 +27,8 @@
27
27
  "eslint:format": "eslint --fix ./src/**/*.{js,jsx,ts,tsx}"
28
28
  },
29
29
  "dependencies": {
30
- "@allurereport/core-api": "3.0.0-beta.21",
31
- "@allurereport/plugin-api": "3.0.0-beta.21",
30
+ "@allurereport/core-api": "3.0.0-beta.22",
31
+ "@allurereport/plugin-api": "3.0.0-beta.22",
32
32
  "d3-shape": "^3.2.0"
33
33
  },
34
34
  "devDependencies": {