@allurereport/web-commons 3.0.0-beta.13 → 3.0.0-beta.15

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.
@@ -72,19 +72,40 @@ export const attachmentType = (type) => {
72
72
  icon: "file",
73
73
  };
74
74
  case "text/xml":
75
- case "application/xml":
76
- case "application/json":
77
75
  case "text/json":
78
76
  case "text/yaml":
79
- case "application/yaml":
80
- case "application/x-yaml":
77
+ case "text/javascript":
78
+ case "text/typescript":
79
+ case "text/ruby":
80
+ case "text/python":
81
+ case "text/php":
82
+ case "text/java":
83
+ case "text/csharp":
84
+ case "text/cpp":
85
+ case "text/c":
86
+ case "text/go":
87
+ case "text/rust":
88
+ case "text/swift":
89
+ case "text/kotlin":
90
+ case "text/scala":
91
+ case "text/perl":
92
+ case "text/r":
93
+ case "text/dart":
94
+ case "text/lua":
95
+ case "text/haskell":
96
+ case "text/sql":
81
97
  case "text/x-yaml":
82
98
  case "text/css":
99
+ case "application/yaml":
100
+ case "application/x-yaml":
101
+ case "application/xml":
102
+ case "application/json":
83
103
  return {
84
104
  type: "code",
85
105
  icon: "file",
86
106
  };
87
107
  case "text/plain":
108
+ case "text/markdown":
88
109
  case "text/*":
89
110
  return {
90
111
  type: "text",
@@ -0,0 +1,10 @@
1
+ import type { Statistic, TestStatus } from "@allurereport/core-api";
2
+ export type TestResultSlice = {
3
+ status: TestStatus;
4
+ count: number;
5
+ };
6
+ export type TestResultChartData = {
7
+ percentage: number;
8
+ slices: TestResultSlice[];
9
+ };
10
+ export declare const getPieChartData: (stats: Statistic) => TestResultChartData;
@@ -0,0 +1,20 @@
1
+ import { statusesList } from "@allurereport/core-api";
2
+ import { d3Arc, d3Pie, getPercentage } from "../charts.js";
3
+ export const getPieChartData = (stats) => {
4
+ const convertedStatuses = statusesList
5
+ .filter((status) => !!stats?.[status])
6
+ .map((status) => ({
7
+ status,
8
+ count: stats[status],
9
+ }));
10
+ const arcsData = d3Pie(convertedStatuses);
11
+ const slices = arcsData.map((arcData) => ({
12
+ d: d3Arc(arcData),
13
+ ...arcData.data,
14
+ }));
15
+ const percentage = getPercentage(stats.passed ?? 0, stats.total);
16
+ return {
17
+ slices,
18
+ percentage,
19
+ };
20
+ };
@@ -0,0 +1,3 @@
1
+ import type { Statistic } from "@allurereport/core-api";
2
+ import type { PieChartData, PieChartOptions } from "../charts.js";
3
+ export declare const getPieChartDataDashboard: (stats: Statistic, chartOptions: PieChartOptions) => PieChartData;
@@ -0,0 +1,22 @@
1
+ import { statusesList } from "@allurereport/core-api";
2
+ import { d3Arc, d3Pie, getPercentage } from "../charts.js";
3
+ export const getPieChartDataDashboard = (stats, chartOptions) => {
4
+ const convertedStatuses = statusesList
5
+ .filter((status) => !!stats?.[status])
6
+ .map((status) => ({
7
+ status,
8
+ count: stats[status],
9
+ }));
10
+ const arcsData = d3Pie(convertedStatuses);
11
+ const slices = arcsData.map((arcData) => ({
12
+ d: d3Arc(arcData),
13
+ ...arcData.data,
14
+ }));
15
+ const percentage = getPercentage(stats.passed ?? 0, stats.total);
16
+ return {
17
+ type: chartOptions.type,
18
+ title: chartOptions?.title,
19
+ slices,
20
+ percentage,
21
+ };
22
+ };
@@ -0,0 +1,3 @@
1
+ import type { HistoryDataPoint, TestResult } from "@allurereport/core-api";
2
+ import type { SeverityTrendChartData, TrendChartOptions } from "../charts.js";
3
+ export declare const getSeverityTrendData: (testResults: TestResult[], reportName: string, historyPoints: HistoryDataPoint[], chartOptions: TrendChartOptions) => SeverityTrendChartData;
@@ -0,0 +1,46 @@
1
+ import { severityLabelName, severityLevels } from "@allurereport/core-api";
2
+ import { createEmptySeries, createEmptyStats, getTrendDataGeneric, mergeTrendDataGeneric, normalizeStatistic, } from "../charts.js";
3
+ export const getSeverityTrendData = (testResults, reportName, historyPoints, chartOptions) => {
4
+ const { limit } = chartOptions;
5
+ const historyLimit = limit && limit > 0 ? Math.max(0, limit - 1) : undefined;
6
+ const limitedHistoryPoints = historyLimit !== undefined ? historyPoints.slice(-historyLimit) : historyPoints;
7
+ const firstOriginalIndex = historyLimit !== undefined ? Math.max(0, historyPoints.length - historyLimit) : 0;
8
+ const convertedHistoryPoints = limitedHistoryPoints.map((point, index) => {
9
+ const originalIndex = firstOriginalIndex + index;
10
+ return {
11
+ name: point.name,
12
+ originalIndex,
13
+ statistic: Object.values(point.testResults).reduce((stat, test) => {
14
+ const severityLabel = test.labels?.find((label) => label.name === severityLabelName);
15
+ const severity = severityLabel?.value?.toLowerCase();
16
+ if (severity) {
17
+ stat[severity] = (stat[severity] ?? 0) + 1;
18
+ }
19
+ return stat;
20
+ }, createEmptyStats(severityLevels)),
21
+ };
22
+ });
23
+ const currentSeverityStats = testResults.reduce((acc, test) => {
24
+ const severityLabel = test.labels.find((label) => label.name === severityLabelName);
25
+ const severity = severityLabel?.value?.toLowerCase();
26
+ if (severity) {
27
+ acc[severity] = (acc[severity] ?? 0) + 1;
28
+ }
29
+ return acc;
30
+ }, createEmptyStats(severityLevels));
31
+ const currentTrendData = getTrendDataGeneric(normalizeStatistic(currentSeverityStats, severityLevels), reportName, historyPoints.length + 1, severityLevels, chartOptions);
32
+ const historicalTrendData = convertedHistoryPoints.reduce((acc, historyPoint) => {
33
+ const trendDataPart = getTrendDataGeneric(normalizeStatistic(historyPoint.statistic, severityLevels), historyPoint.name, historyPoint.originalIndex + 1, severityLevels, chartOptions);
34
+ return mergeTrendDataGeneric(acc, trendDataPart, severityLevels);
35
+ }, {
36
+ type: chartOptions.type,
37
+ dataType: chartOptions.dataType,
38
+ title: chartOptions.title,
39
+ points: {},
40
+ slices: {},
41
+ series: createEmptySeries(severityLevels),
42
+ min: Infinity,
43
+ max: -Infinity,
44
+ });
45
+ return mergeTrendDataGeneric(historicalTrendData, currentTrendData, severityLevels);
46
+ };
@@ -0,0 +1,3 @@
1
+ import type { HistoryDataPoint, Statistic } from "@allurereport/core-api";
2
+ import type { StatusTrendChartData, TrendChartOptions } from "../charts.js";
3
+ export declare const getStatusTrendData: (currentStatistic: Statistic, reportName: string, historyPoints: HistoryDataPoint[], chartOptions: TrendChartOptions) => StatusTrendChartData;
@@ -0,0 +1,37 @@
1
+ import { statusesList } from "@allurereport/core-api";
2
+ import { createEmptySeries, createEmptyStats, getTrendDataGeneric, mergeTrendDataGeneric, normalizeStatistic, } from "../charts.js";
3
+ export const getStatusTrendData = (currentStatistic, reportName, historyPoints, chartOptions) => {
4
+ const { limit } = chartOptions;
5
+ const historyLimit = limit && limit > 0 ? Math.max(0, limit - 1) : undefined;
6
+ const limitedHistoryPoints = historyLimit !== undefined ? historyPoints.slice(-historyLimit) : historyPoints;
7
+ const firstOriginalIndex = historyLimit !== undefined ? Math.max(0, historyPoints.length - historyLimit) : 0;
8
+ const convertedHistoryPoints = limitedHistoryPoints.map((point, index) => {
9
+ const originalIndex = firstOriginalIndex + index;
10
+ return {
11
+ name: point.name,
12
+ originalIndex,
13
+ statistic: Object.values(point.testResults).reduce((stat, test) => {
14
+ if (test.status) {
15
+ stat[test.status] = (stat[test.status] ?? 0) + 1;
16
+ stat.total = (stat.total ?? 0) + 1;
17
+ }
18
+ return stat;
19
+ }, { total: 0, ...createEmptyStats(statusesList) }),
20
+ };
21
+ });
22
+ const currentTrendData = getTrendDataGeneric(normalizeStatistic(currentStatistic, statusesList), reportName, historyPoints.length + 1, statusesList, chartOptions);
23
+ const historicalTrendData = convertedHistoryPoints.reduce((acc, historyPoint) => {
24
+ const trendDataPart = getTrendDataGeneric(normalizeStatistic(historyPoint.statistic, statusesList), historyPoint.name, historyPoint.originalIndex + 1, statusesList, chartOptions);
25
+ return mergeTrendDataGeneric(acc, trendDataPart, statusesList);
26
+ }, {
27
+ type: chartOptions.type,
28
+ dataType: chartOptions.dataType,
29
+ title: chartOptions.title,
30
+ points: {},
31
+ slices: {},
32
+ series: createEmptySeries(statusesList),
33
+ min: Infinity,
34
+ max: -Infinity,
35
+ });
36
+ return mergeTrendDataGeneric(historicalTrendData, currentTrendData, statusesList);
37
+ };
@@ -0,0 +1,106 @@
1
+ import type { SeverityLevel, TestResult, TestStatus } from "@allurereport/core-api";
2
+ import type { PieArcDatum } from "d3-shape";
3
+ export type BasePieSlice = Pick<PieSlice, "status" | "count">;
4
+ export declare const DEFAULT_CHART_HISTORY_LIMIT = 10;
5
+ export declare const d3Arc: import("d3-shape").Arc<any, PieArcDatum<BasePieSlice>>;
6
+ export declare const d3Pie: import("d3-shape").Pie<any, BasePieSlice>;
7
+ export declare const getPercentage: (value: number, total: number) => number;
8
+ export declare enum ChartType {
9
+ Trend = "trend",
10
+ Pie = "pie"
11
+ }
12
+ export declare enum ChartData {
13
+ Status = "status",
14
+ Severity = "severity"
15
+ }
16
+ export type ChartMode = "raw" | "percent";
17
+ export type ChartId = string;
18
+ export type ExecutionIdFn = (executionOrder: number) => string;
19
+ export type ExecutionNameFn = (executionOrder: number) => string;
20
+ export type TrendMetadataFnOverrides = {
21
+ executionIdAccessor?: ExecutionIdFn;
22
+ executionNameAccessor?: ExecutionNameFn;
23
+ };
24
+ export type TrendChartOptions = {
25
+ type: ChartType.Trend;
26
+ dataType: ChartData;
27
+ mode?: ChartMode;
28
+ title?: string;
29
+ limit?: number;
30
+ metadata?: TrendMetadataFnOverrides;
31
+ };
32
+ export type TrendPointId = string;
33
+ export type TrendSliceId = string;
34
+ export type BaseMetadata = Record<string, unknown>;
35
+ export interface BaseTrendSliceMetadata extends Record<string, unknown> {
36
+ executionId: string;
37
+ executionName: string;
38
+ }
39
+ export type TrendSliceMetadata<Metadata extends BaseMetadata> = BaseTrendSliceMetadata & Metadata;
40
+ export type TrendPoint = {
41
+ x: string;
42
+ y: number;
43
+ };
44
+ export type TrendSlice<Metadata extends BaseMetadata> = {
45
+ min: number;
46
+ max: number;
47
+ metadata: TrendSliceMetadata<Metadata>;
48
+ };
49
+ export type GenericTrendChartData<Metadata extends BaseMetadata, SeriesType extends string> = {
50
+ type: ChartType.Trend;
51
+ dataType: ChartData;
52
+ title?: string;
53
+ points: Record<TrendPointId, TrendPoint>;
54
+ slices: Record<TrendSliceId, TrendSlice<Metadata>>;
55
+ series: Record<SeriesType, TrendPointId[]>;
56
+ min: number;
57
+ max: number;
58
+ };
59
+ export interface StatusMetadata extends BaseTrendSliceMetadata {
60
+ }
61
+ export type StatusTrendSliceMetadata = TrendSliceMetadata<StatusMetadata>;
62
+ export type StatusTrendSlice = TrendSlice<StatusTrendSliceMetadata>;
63
+ export type StatusTrendChartData = GenericTrendChartData<StatusTrendSliceMetadata, TestStatus>;
64
+ export interface SeverityMetadata extends BaseTrendSliceMetadata {
65
+ }
66
+ export type SeverityTrendSliceMetadata = TrendSliceMetadata<SeverityMetadata>;
67
+ export type SeverityTrendSlice = TrendSlice<SeverityTrendSliceMetadata>;
68
+ export type SeverityTrendChartData = GenericTrendChartData<SeverityTrendSliceMetadata, SeverityLevel>;
69
+ export type TrendChartData = StatusTrendChartData | SeverityTrendChartData;
70
+ export type PieChartOptions = {
71
+ type: ChartType.Pie;
72
+ title?: string;
73
+ };
74
+ export type PieSlice = {
75
+ status: TestStatus;
76
+ count: number;
77
+ d: string | null;
78
+ };
79
+ export type PieChartData = {
80
+ type: ChartType.Pie;
81
+ title?: string;
82
+ slices: PieSlice[];
83
+ percentage: number;
84
+ };
85
+ export type GeneratedChartData = TrendChartData | PieChartData;
86
+ export type GeneratedChartsData = Record<ChartId, GeneratedChartData>;
87
+ export type ChartOptions = TrendChartOptions | PieChartOptions;
88
+ export type DashboardOptions = {
89
+ reportName?: string;
90
+ singleFile?: boolean;
91
+ logo?: string;
92
+ theme?: "light" | "dark";
93
+ reportLanguage?: "en" | "ru";
94
+ layout?: ChartOptions[];
95
+ filter?: (testResult: TestResult) => boolean;
96
+ };
97
+ export type TrendDataType = TestStatus | SeverityLevel;
98
+ export type TrendCalculationResult<T extends TrendDataType> = {
99
+ points: Record<TrendPointId, TrendPoint>;
100
+ series: Record<T, TrendPointId[]>;
101
+ };
102
+ export declare const createEmptyStats: <T extends TrendDataType>(items: readonly T[]) => Record<T, number>;
103
+ export declare const createEmptySeries: <T extends TrendDataType>(items: readonly T[]) => Record<T, string[]>;
104
+ export declare const normalizeStatistic: <T extends TrendDataType>(statistic: Partial<Record<T, number>>, itemType: readonly T[]) => Record<T, number>;
105
+ export declare const mergeTrendDataGeneric: <M extends BaseTrendSliceMetadata, T extends TrendDataType>(trendData: GenericTrendChartData<M, T>, trendDataPart: GenericTrendChartData<M, T>, itemType: readonly T[]) => GenericTrendChartData<M, T>;
106
+ export declare const getTrendDataGeneric: <M extends BaseTrendSliceMetadata, T extends TrendDataType>(stats: Record<T, number>, reportName: string, executionOrder: number, itemType: readonly T[], chartOptions: TrendChartOptions) => GenericTrendChartData<M, T>;
package/dist/charts.js ADDED
@@ -0,0 +1,118 @@
1
+ import { arc, pie } from "d3-shape";
2
+ export const DEFAULT_CHART_HISTORY_LIMIT = 10;
3
+ export const d3Arc = arc().innerRadius(40).outerRadius(50).cornerRadius(2).padAngle(0.03);
4
+ export const d3Pie = pie()
5
+ .value((d) => d.count)
6
+ .padAngle(0.03)
7
+ .sortValues((a, b) => a - b);
8
+ export const getPercentage = (value, total) => Math.floor((value / total) * 10000) / 100;
9
+ export var ChartType;
10
+ (function (ChartType) {
11
+ ChartType["Trend"] = "trend";
12
+ ChartType["Pie"] = "pie";
13
+ })(ChartType || (ChartType = {}));
14
+ export var ChartData;
15
+ (function (ChartData) {
16
+ ChartData["Status"] = "status";
17
+ ChartData["Severity"] = "severity";
18
+ })(ChartData || (ChartData = {}));
19
+ export const createEmptyStats = (items) => items.reduce((acc, item) => ({ ...acc, [item]: 0 }), {});
20
+ export const createEmptySeries = (items) => items.reduce((acc, item) => ({ ...acc, [item]: [] }), {});
21
+ export const normalizeStatistic = (statistic, itemType) => {
22
+ return itemType.reduce((acc, item) => {
23
+ acc[item] = statistic[item] ?? 0;
24
+ return acc;
25
+ }, {});
26
+ };
27
+ const calculateRawValues = (stats, executionId, itemType) => {
28
+ const points = {};
29
+ const series = createEmptySeries(itemType);
30
+ itemType.forEach((item) => {
31
+ const pointId = `${executionId}-${item}`;
32
+ const value = stats[item] ?? 0;
33
+ points[pointId] = {
34
+ x: executionId,
35
+ y: value,
36
+ };
37
+ series[item].push(pointId);
38
+ });
39
+ return { points, series };
40
+ };
41
+ const calculatePercentValues = (stats, executionId, itemType) => {
42
+ const points = {};
43
+ const series = createEmptySeries(itemType);
44
+ const values = Object.values(stats);
45
+ const total = values.reduce((sum, value) => sum + value, 0);
46
+ if (total === 0) {
47
+ return { points, series };
48
+ }
49
+ itemType.forEach((item) => {
50
+ const pointId = `${executionId}-${item}`;
51
+ const value = stats[item] ?? 0;
52
+ points[pointId] = {
53
+ x: executionId,
54
+ y: (value / total) * 100,
55
+ };
56
+ series[item].push(pointId);
57
+ });
58
+ return { points, series };
59
+ };
60
+ export const mergeTrendDataGeneric = (trendData, trendDataPart, itemType) => {
61
+ return {
62
+ ...trendData,
63
+ points: {
64
+ ...trendData.points,
65
+ ...trendDataPart.points,
66
+ },
67
+ slices: {
68
+ ...trendData.slices,
69
+ ...trendDataPart.slices,
70
+ },
71
+ series: Object.entries(trendDataPart.series).reduce((series, [group, pointIds]) => {
72
+ if (Array.isArray(pointIds)) {
73
+ return {
74
+ ...series,
75
+ [group]: [...(trendData.series?.[group] || []), ...pointIds],
76
+ };
77
+ }
78
+ return series;
79
+ }, trendData.series || createEmptySeries(itemType)),
80
+ min: Math.min(trendData.min ?? Infinity, trendDataPart.min),
81
+ max: Math.max(trendData.max ?? -Infinity, trendDataPart.max),
82
+ };
83
+ };
84
+ export const getTrendDataGeneric = (stats, reportName, executionOrder, itemType, chartOptions) => {
85
+ const { type, dataType, title, mode = "raw", metadata = {} } = chartOptions;
86
+ const { executionIdAccessor, executionNameAccessor } = metadata;
87
+ const executionId = executionIdAccessor ? executionIdAccessor(executionOrder) : `execution-${executionOrder}`;
88
+ const { points, series } = mode === "percent"
89
+ ? calculatePercentValues(stats, executionId, itemType)
90
+ : calculateRawValues(stats, executionId, itemType);
91
+ const slices = {};
92
+ const pointsAsArray = Object.values(points);
93
+ const pointsCount = pointsAsArray.length;
94
+ const values = pointsAsArray.map((point) => point.y);
95
+ const min = pointsCount ? Math.min(...values) : 0;
96
+ const max = pointsCount ? Math.max(...values) : 0;
97
+ if (pointsCount > 0) {
98
+ const executionName = executionNameAccessor ? executionNameAccessor(executionOrder) : reportName;
99
+ slices[executionId] = {
100
+ min,
101
+ max,
102
+ metadata: {
103
+ executionId,
104
+ executionName,
105
+ },
106
+ };
107
+ }
108
+ return {
109
+ type,
110
+ dataType,
111
+ title,
112
+ points,
113
+ slices,
114
+ series,
115
+ min,
116
+ max,
117
+ };
118
+ };
package/dist/data.d.ts CHANGED
@@ -5,7 +5,11 @@ export declare const createReportDataScript: (reportFiles?: {
5
5
  }[]) => string;
6
6
  export declare const ensureReportDataReady: () => Promise<unknown>;
7
7
  export declare const loadReportData: (name: string) => Promise<string>;
8
- export declare const reportDataUrl: (path: string, contentType?: string) => Promise<string>;
9
- export declare const fetchReportJsonData: <T>(path: string) => Promise<T>;
8
+ export declare const reportDataUrl: (path: string, contentType?: string, params?: {
9
+ bustCache: boolean;
10
+ }) => Promise<string>;
11
+ export declare const fetchReportJsonData: <T>(path: string, params?: {
12
+ bustCache: boolean;
13
+ }) => Promise<T>;
10
14
  export declare const fetchReportAttachment: (path: string, contentType?: string) => Promise<Response>;
11
15
  export declare const getReportOptions: <T>() => T;
package/dist/data.js CHANGED
@@ -49,22 +49,26 @@ export const loadReportData = async (name) => {
49
49
  }
50
50
  });
51
51
  };
52
- export const reportDataUrl = async (path, contentType = "application/octet-stream") => {
52
+ export const reportDataUrl = async (path, contentType = "application/octet-stream", params) => {
53
53
  if (globalThis.allureReportData) {
54
- const dataKey = path.replace(/\?attachment$/, "");
54
+ const [dataKey] = path.split("?");
55
55
  const value = await loadReportData(dataKey);
56
56
  return `data:${contentType};base64,${value}`;
57
57
  }
58
58
  const baseEl = globalThis.document.head.querySelector("base")?.href ?? "https://localhost";
59
59
  const url = new URL(path, baseEl);
60
60
  const liveReloadHash = globalThis.localStorage.getItem(ALLURE_LIVE_RELOAD_HASH_STORAGE_KEY);
61
+ const cacheKey = globalThis.allureReportOptions?.cacheKey;
61
62
  if (liveReloadHash) {
62
63
  url.searchParams.set("live_reload_hash", liveReloadHash);
63
64
  }
64
- return url.pathname + url.search + url.hash;
65
+ if (params?.bustCache && cacheKey) {
66
+ url.searchParams.set("v", cacheKey);
67
+ }
68
+ return url.toString();
65
69
  };
66
- export const fetchReportJsonData = async (path) => {
67
- const url = await reportDataUrl(path);
70
+ export const fetchReportJsonData = async (path, params) => {
71
+ const url = await reportDataUrl(path, undefined, params);
68
72
  const res = await globalThis.fetch(url);
69
73
  if (!res.ok) {
70
74
  throw new Error(`Failed to fetch ${url}, response status: ${res.status}`);
package/dist/index.d.ts CHANGED
@@ -3,3 +3,8 @@ export * from "./static.js";
3
3
  export * from "./attachments.js";
4
4
  export * from "./i18n.js";
5
5
  export * from "./strings.js";
6
+ export * from "./charts.js";
7
+ export * from "./charts/getPieChart.js";
8
+ export * from "./charts/getPieChartDashboard.js";
9
+ export * from "./charts/getSeverityTrendData.js";
10
+ export * from "./charts/getStatusTrendData.js";
package/dist/index.js CHANGED
@@ -3,3 +3,8 @@ export * from "./static.js";
3
3
  export * from "./attachments.js";
4
4
  export * from "./i18n.js";
5
5
  export * from "./strings.js";
6
+ export * from "./charts.js";
7
+ export * from "./charts/getPieChart.js";
8
+ export * from "./charts/getPieChartDashboard.js";
9
+ export * from "./charts/getSeverityTrendData.js";
10
+ export * from "./charts/getStatusTrendData.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/web-commons",
3
- "version": "3.0.0-beta.13",
3
+ "version": "3.0.0-beta.15",
4
4
  "description": "Collection of utilities used across the web Allure reports",
5
5
  "keywords": [
6
6
  "allure",
@@ -23,16 +23,18 @@
23
23
  "clean": "rimraf ./dist"
24
24
  },
25
25
  "dependencies": {
26
- "@allurereport/core-api": "3.0.0-beta.13"
26
+ "@allurereport/core-api": "3.0.0-beta.15"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@stylistic/eslint-plugin": "^2.6.1",
30
+ "@types/d3-shape": "^3.1.6",
30
31
  "@types/eslint": "^8.56.11",
31
32
  "@typescript-eslint/eslint-plugin": "^8.0.0",
32
33
  "@typescript-eslint/parser": "^8.0.0",
33
34
  "@vitest/runner": "^2.1.8",
34
35
  "allure-js-commons": "^3.0.9",
35
36
  "allure-vitest": "^3.0.9",
37
+ "d3-shape": "^3.2.0",
36
38
  "eslint": "^8.57.0",
37
39
  "eslint-config-prettier": "^9.1.0",
38
40
  "eslint-plugin-import": "^2.29.1",