@allurereport/web-components 3.16.1 → 3.17.0
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/index.css +1 -1
- package/dist/index.d.ts +20 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Placement } from '@floating-ui/dom';
|
|
|
4
4
|
import * as preact_compat from 'preact/compat';
|
|
5
5
|
import { MutableRefObject, HTMLAttributes as HTMLAttributes$1, CSSProperties } from 'preact/compat';
|
|
6
6
|
import { Signal } from '@preact/signals';
|
|
7
|
-
import { AttachmentTestStepResult, DefaultTreeGroup, TestStatus,
|
|
7
|
+
import { AttachmentTestStepResult, DefaultTreeGroup, TestStatus, ResolutionCategory, TestStatusTransition, Statistic, SeverityLevel, TestResult } from '@allurereport/core-api';
|
|
8
8
|
import { AttachmentData, LangLocale, TreeMapTooltipAccessor } from '@allurereport/web-commons';
|
|
9
9
|
import { Options } from 'sortablejs';
|
|
10
10
|
import { ChartMode, PieChartValues, TreeMapNode, ChartType, StabilityDistributionChartData, TestBaseGrowthDynamicsChartData, StatusAgePyramidChartData, StatusTransitionsChartData, DurationsChartData, TrSeveritiesChartData, DurationDynamicsChartData } from '@allurereport/charts-api';
|
|
@@ -320,6 +320,22 @@ type RecursiveTree = DefaultTreeGroup & {
|
|
|
320
320
|
trees: RecursiveTree[];
|
|
321
321
|
};
|
|
322
322
|
|
|
323
|
+
type TreeLeaf = {
|
|
324
|
+
id: string;
|
|
325
|
+
nodeId: string;
|
|
326
|
+
name: string;
|
|
327
|
+
status?: TestStatus;
|
|
328
|
+
duration?: number;
|
|
329
|
+
groupOrder?: number;
|
|
330
|
+
flaky?: boolean;
|
|
331
|
+
retry?: boolean;
|
|
332
|
+
retriesCount?: number;
|
|
333
|
+
resolution?: ResolutionCategory;
|
|
334
|
+
transition?: TestStatusTransition;
|
|
335
|
+
transitionTooltip?: string;
|
|
336
|
+
tooltips?: Record<string, string>;
|
|
337
|
+
};
|
|
338
|
+
|
|
323
339
|
interface TreeProps {
|
|
324
340
|
statistic?: Statistic;
|
|
325
341
|
reportStatistic?: Statistic;
|
|
@@ -367,6 +383,7 @@ interface TreeItemProps {
|
|
|
367
383
|
duration?: number;
|
|
368
384
|
retriesCount?: number;
|
|
369
385
|
flaky?: boolean;
|
|
386
|
+
resolution?: ResolutionCategory;
|
|
370
387
|
transition?: TestStatusTransition;
|
|
371
388
|
transitionTooltip?: string;
|
|
372
389
|
id: string;
|
|
@@ -845,6 +862,7 @@ type TimelineSegment = {
|
|
|
845
862
|
label: string;
|
|
846
863
|
labelGroup: string[];
|
|
847
864
|
id: string;
|
|
865
|
+
testResultId: string;
|
|
848
866
|
};
|
|
849
867
|
type TimelineDataGroup = {
|
|
850
868
|
id: string;
|
|
@@ -858,6 +876,7 @@ type TimelineProps = {
|
|
|
858
876
|
data?: TimelineData;
|
|
859
877
|
width?: number;
|
|
860
878
|
enableAnimations?: boolean;
|
|
879
|
+
onTestResultClick?: (testResultId: string) => void;
|
|
861
880
|
translations: {
|
|
862
881
|
empty: string;
|
|
863
882
|
selected: (props: {
|