@allurereport/web-components 3.15.0 → 3.16.1

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.d.ts CHANGED
@@ -1,18 +1,15 @@
1
1
  import * as preact from 'preact';
2
- import { SVGAttributes, ComponentChild, Ref, FunctionalComponent, JSX, HTMLAttributes, VNode, ComponentChildren, FunctionComponent, ComponentProps } from 'preact';
3
- import { TextProps as TextProps$1 } from '@/components/Typography';
2
+ import { SVGAttributes, JSX, ComponentChild, Ref, FunctionalComponent, HTMLAttributes, VNode, ComponentChildren, FunctionComponent, ComponentProps } from 'preact';
4
3
  import { Placement } from '@floating-ui/dom';
5
4
  import * as preact_compat from 'preact/compat';
6
5
  import { MutableRefObject, HTMLAttributes as HTMLAttributes$1, CSSProperties } from 'preact/compat';
7
6
  import { Signal } from '@preact/signals';
8
7
  import { AttachmentTestStepResult, DefaultTreeGroup, TestStatus, Statistic, TestStatusTransition, SeverityLevel, TestResult } from '@allurereport/core-api';
9
- import { Status as Status$1 } from 'global';
10
8
  import { AttachmentData, LangLocale, TreeMapTooltipAccessor } from '@allurereport/web-commons';
11
9
  import { Options } from 'sortablejs';
12
10
  import { ChartMode, PieChartValues, TreeMapNode, ChartType, StabilityDistributionChartData, TestBaseGrowthDynamicsChartData, StatusAgePyramidChartData, StatusTransitionsChartData, DurationsChartData, TrSeveritiesChartData, DurationDynamicsChartData } from '@allurereport/charts-api';
13
- import { Serie as Serie$1 } from '@/components/Charts/TrendChart';
14
11
  import { AxisProps } from '@nivo/axes';
15
- import { Datum as Datum$1, LineSvgProps, Point, Serie as Serie$2 } from '@nivo/line';
12
+ import { Datum as Datum$1, LineSvgProps, Point, Serie as Serie$1 } from '@nivo/line';
16
13
  import { ScaleSymlogSpec, ScaleSpec } from '@nivo/scales';
17
14
  import { Margin } from '@nivo/core';
18
15
  import { LegendProps, AnchoredContinuousColorsLegendProps } from '@nivo/legends';
@@ -20,96 +17,97 @@ import { DefaultTreeMapDatum, TreeMapSvgProps } from '@nivo/treemap';
20
17
  import { HeatMapDatum, DefaultHeatMapDatum, HeatMapSvgProps } from '@nivo/heatmap';
21
18
 
22
19
  declare const allureIcons: {
23
- amazon: string;
24
- arrowsChevronDown: string;
25
- azure: string;
26
- bitbucket: string;
27
- circleci: string;
28
- draggable: string;
29
- drone: string;
30
- environment: string;
31
- github: string;
32
- gitlab: string;
33
- jenkins: string;
34
- lineAlertsAlertCircle: string;
35
- lineAlertsFixed: string;
36
- lineAlertsMalfunctioned: string;
37
- lineAlertsNew: string;
38
- lineAlertsNotificationBox: string;
39
- lineAlertsRegressed: string;
40
- lineArrowsChevronDown: string;
41
- lineArrowsChevronDownDouble: string;
42
- lineArrowsChevronRight: string;
43
- lineArrowsChevronUp: string;
44
- lineArrowsChevronUpDouble: string;
45
- lineArrowsCornerDownRight: string;
46
- lineArrowsExpand3: string;
47
- lineArrowsRefreshCcw1: string;
48
- lineArrowsSortLineAsc: string;
49
- lineArrowsSortLineDesc: string;
50
- lineArrowsSwitchVertical1: string;
51
- lineChartsBarChartSquare: string;
52
- lineChartsTimeline: string;
53
- lineDevBug2: string;
54
- lineDevCodeSquare: string;
55
- lineDevDataflow3: string;
56
- lineFilesClipboardCheck: string;
57
- lineFilesFile2: string;
58
- lineFilesFileAttachment2: string;
59
- lineFilesFolder: string;
60
- lineGeneralCheck: string;
61
- lineGeneralCheckCircle: string;
62
- lineGeneralChecklist3: string;
63
- lineGeneralCopy3: string;
64
- lineGeneralDownloadCloud: string;
65
- lineGeneralEqual: string;
66
- lineGeneralEye: string;
67
- lineGeneralHelpCircle: string;
68
- lineGeneralHomeLine: string;
69
- lineGeneralInfoCircle: string;
70
- lineGeneralLink1: string;
71
- lineGeneralLinkExternal: string;
72
- lineGeneralMinusCircle: string;
73
- lineGeneralSearchMd: string;
74
- lineGeneralSettings1: string;
75
- lineGeneralXCircle: string;
76
- lineGeneralXClose: string;
77
- lineGeneralZap: string;
78
- lineHelpersFlag: string;
79
- lineHelpersPlayCircle: string;
80
- lineIconBomb2: string;
81
- lineImagesImage: string;
82
- lineLayoutsColumn2: string;
83
- lineLayoutsLayoutTop: string;
84
- lineLayoutsMaximize2: string;
85
- lineLayoutsMinimize2: string;
86
- lineSecurityKey: string;
87
- lineShapesDotCircle: string;
88
- lineShapesMoon: string;
89
- lineShapesSun: string;
90
- lineShapesThemeAuto: string;
91
- lineTimeClockStopwatch: string;
92
- playwrightLogo: string;
93
- reportLogo: string;
94
- solidAlertCircle: string;
95
- solidCheckCircle: string;
96
- solidHelpCircle: string;
97
- solidMinusCircle: string;
98
- solidPlusCircle: string;
99
- solidXCircle: string;
100
- spinner: string;
101
- testNew: string;
102
- view: string;
103
- viewOff: string;
104
- };
105
- type SvgIconProps = Omit<SVGAttributes<SVGElement>, "className" | "id" | "size" | "inline"> & {
20
+ readonly amazon: "amazon";
21
+ readonly arrowsChevronDown: "arrows-chevron-down";
22
+ readonly azure: "azure";
23
+ readonly bitbucket: "bitbucket";
24
+ readonly circleci: "circleci";
25
+ readonly draggable: "draggable";
26
+ readonly drone: "drone";
27
+ readonly environment: "environment";
28
+ readonly github: "github";
29
+ readonly gitlab: "gitlab";
30
+ readonly jenkins: "jenkins";
31
+ readonly lineAlertsAlertCircle: "line-alerts-alert-circle";
32
+ readonly lineAlertsFixed: "line-alerts-fixed";
33
+ readonly lineAlertsMalfunctioned: "line-alerts-malfunctioned";
34
+ readonly lineAlertsNew: "line-alerts-new";
35
+ readonly lineAlertsNotificationBox: "line-alerts-notification-box";
36
+ readonly lineAlertsRegressed: "line-alerts-regressed";
37
+ readonly lineArrowsChevronDownDouble: "line-arrows-chevron-down-double";
38
+ readonly lineArrowsChevronDown: "line-arrows-chevron-down";
39
+ readonly lineArrowsChevronRight: "line-arrows-chevron-right";
40
+ readonly lineArrowsChevronUpDouble: "line-arrows-chevron-up-double";
41
+ readonly lineArrowsChevronUp: "line-arrows-chevron-up";
42
+ readonly lineArrowsCornerDownRight: "line-arrows-corner-down-right";
43
+ readonly lineArrowsExpand3: "line-arrows-expand-3";
44
+ readonly lineArrowsRefreshCcw1: "line-arrows-refresh-ccw-1";
45
+ readonly lineArrowsSortLineAsc: "line-arrows-sort-line-asc";
46
+ readonly lineArrowsSortLineDesc: "line-arrows-sort-line-desc";
47
+ readonly lineArrowsSwitchVertical1: "line-arrows-switch-vertical-1";
48
+ readonly lineChartsBarChartSquare: "line-charts-bar-chart-square";
49
+ readonly lineChartsTimeline: "line-charts-timeline";
50
+ readonly lineDevBug2: "line-dev-bug-2";
51
+ readonly lineDevCodeSquare: "line-dev-code-square";
52
+ readonly lineDevDataflow3: "line-dev-dataflow-3";
53
+ readonly lineFilesClipboardCheck: "line-files-clipboard-check";
54
+ readonly lineFilesFile2: "line-files-file-2";
55
+ readonly lineFilesFileAttachment2: "line-files-file-attachment-2";
56
+ readonly lineFilesFolder: "line-files-folder";
57
+ readonly lineGeneralCheckCircle: "line-general-check-circle";
58
+ readonly lineGeneralCheck: "line-general-check";
59
+ readonly lineGeneralChecklist3: "line-general-checklist3";
60
+ readonly lineGeneralCopy3: "line-general-copy-3";
61
+ readonly lineGeneralDownloadCloud: "line-general-download-cloud";
62
+ readonly lineGeneralEqual: "line-general-equal";
63
+ readonly lineGeneralEye: "line-general-eye";
64
+ readonly lineGeneralHelpCircle: "line-general-help-circle";
65
+ readonly lineGeneralHomeLine: "line-general-home-line";
66
+ readonly lineGeneralInfoCircle: "line-general-info-circle";
67
+ readonly lineGeneralLink1: "line-general-link-1";
68
+ readonly lineGeneralLinkExternal: "line-general-link-external";
69
+ readonly lineGeneralMinusCircle: "line-general-minus-circle";
70
+ readonly lineGeneralSearchMd: "line-general-search-md";
71
+ readonly lineGeneralSettings1: "line-general-settings-1";
72
+ readonly lineGeneralXCircle: "line-general-x-circle";
73
+ readonly lineGeneralXClose: "line-general-x-close";
74
+ readonly lineGeneralZap: "line-general-zap";
75
+ readonly lineHelpersFlag: "line-helpers-flag";
76
+ readonly lineHelpersPlayCircle: "line-helpers-play-circle";
77
+ readonly lineIconBomb2: "line-icon-bomb-2";
78
+ readonly lineImagesImage: "line-images-image";
79
+ readonly lineLayoutsColumn2: "line-layouts-columns-2";
80
+ readonly lineLayoutsColumns2: "line-layouts-columns-2";
81
+ readonly lineLayoutsLayoutTop: "line-layouts-layout-top";
82
+ readonly lineLayoutsMaximize2: "line-layouts-maximize-2";
83
+ readonly lineLayoutsMinimize2: "line-layouts-minimize-2";
84
+ readonly lineSecurityKey: "line-security-key";
85
+ readonly lineShapesDotCircle: "line-shapes-dot-circle";
86
+ readonly lineShapesMoon: "line-shapes-moon";
87
+ readonly lineShapesSun: "line-shapes-sun";
88
+ readonly lineShapesThemeAuto: "line-shapes-theme-auto";
89
+ readonly lineTimeClockStopwatch: "line-time-clock-stopwatch";
90
+ readonly playwrightLogo: "playwright-logo";
91
+ readonly reportLogo: "report-logo";
92
+ readonly solidAlertCircle: "solid-alert-circle";
93
+ readonly solidCheckCircle: "solid-check-circle";
94
+ readonly solidHelpCircle: "solid-help-circle";
95
+ readonly solidMinusCircle: "solid-minus-circle";
96
+ readonly solidPlusCircle: "solid-plus-circle";
97
+ readonly solidXCircle: "solid-x-circle";
98
+ readonly spinner: "spinner";
99
+ readonly testNew: "test-new";
100
+ readonly viewOff: "view-off";
101
+ readonly view: "view";
102
+ };
103
+ type SvgIconProps = Omit<SVGAttributes<SVGSVGElement>, "className" | "id" | "size" | "inline"> & {
106
104
  "size"?: "xs" | "s" | "m" | "l" | "xl";
107
105
  "className"?: string;
108
106
  "id": string;
109
107
  "inline"?: boolean;
110
108
  "data-testid"?: string;
111
109
  };
112
- declare const SvgIcon: ({ id, size, inline, className, "data-testid": dataTestId, ...restProps }: SvgIconProps) => preact.JSX.Element;
110
+ declare const SvgIcon: ({ id, size, inline, className, "data-testid": dataTestId, ...restProps }: SvgIconProps) => JSX.Element | null;
113
111
 
114
112
  type BaseBtnProps = {
115
113
  text?: string;
@@ -183,7 +181,7 @@ type HeadingProps = {
183
181
  } & Omit<HTMLAttributes, "size" | "className" | "tag">;
184
182
  declare const Heading: FunctionalComponent<HeadingProps>;
185
183
 
186
- type LinkifiedTextProps<Tag extends keyof preact.JSX.IntrinsicElements = "span"> = Omit<TextProps$1<Tag>, "children"> & {
184
+ type LinkifiedTextProps<Tag extends keyof preact.JSX.IntrinsicElements = "span"> = Omit<TextProps<Tag>, "children"> & {
187
185
  text: string;
188
186
  };
189
187
  declare const LinkifiedText: <Tag extends keyof preact.JSX.IntrinsicElements = "span">({ text, ...textProps }: LinkifiedTextProps<Tag>) => preact.JSX.Element;
@@ -394,7 +392,7 @@ interface TreeStatusBarProps {
394
392
  maxWidth?: number;
395
393
  minWidth?: number;
396
394
  offset?: number;
397
- statusFilter?: Status$1;
395
+ statusFilter?: Status;
398
396
  }
399
397
  declare const TreeStatusBar: FunctionalComponent<TreeStatusBarProps>;
400
398
 
@@ -560,38 +558,11 @@ type Props$b = {
560
558
  };
561
559
  declare const IconLabel: FunctionalComponent<Props$b>;
562
560
 
563
- interface TrendChartWidgetPropsTranslations {
564
- "no-results": string;
565
- }
566
- interface TrendChartWidgetProps<TSlice = {
567
- metadata: {
568
- executionId: string;
569
- };
570
- }> {
571
- title: string;
572
- mode: ChartMode;
573
- items: readonly Serie$1[];
574
- slices: readonly TSlice[];
575
- min: number;
576
- max: number;
577
- height?: CSSProperties["height"];
578
- width?: CSSProperties["width"];
579
- rootAriaLabel?: string;
580
- translations: TrendChartWidgetPropsTranslations;
581
- dropShadow?: boolean;
582
- }
583
- declare const TrendChartWidget: ({ title, mode, items, slices, min, max, height, width, rootAriaLabel, translations, }: TrendChartWidgetProps) => preact_compat.JSX.Element;
584
-
585
- type SuccessRatePieChartProps = PieChartValues & {
586
- className?: string;
587
- };
588
- declare const SuccessRatePieChart: ({ slices, percentage, className }: SuccessRatePieChartProps) => preact.JSX.Element;
589
-
590
561
  type Datum = Omit<Datum$1, "x" | "y"> & {
591
562
  x: string | number | Date;
592
563
  y: number;
593
564
  };
594
- type Serie = Omit<Serie$2, "id" | "data"> & {
565
+ type Serie = Omit<Serie$1, "id" | "data"> & {
595
566
  id: string | number;
596
567
  data: readonly Datum[];
597
568
  };
@@ -648,6 +619,33 @@ declare const defaultTrendChartConfig: Partial<LineSvgProps>;
648
619
  declare const makeSymlogScale: (min: number, max: number, options?: SymlogScaleOptions) => ScaleSymlogSpec;
649
620
  declare const makeSymlogScaleBySeries: (series: Serie[], options?: SymlogScaleOptions) => ScaleSymlogSpec;
650
621
 
622
+ interface TrendChartWidgetPropsTranslations {
623
+ "no-results": string;
624
+ }
625
+ interface TrendChartWidgetProps<TSlice = {
626
+ metadata: {
627
+ executionId: string;
628
+ };
629
+ }> {
630
+ title: string;
631
+ mode: ChartMode;
632
+ items: readonly Serie[];
633
+ slices: readonly TSlice[];
634
+ min: number;
635
+ max: number;
636
+ height?: CSSProperties["height"];
637
+ width?: CSSProperties["width"];
638
+ rootAriaLabel?: string;
639
+ translations: TrendChartWidgetPropsTranslations;
640
+ dropShadow?: boolean;
641
+ }
642
+ declare const TrendChartWidget: ({ title, mode, items, slices, min, max, height, width, rootAriaLabel, translations, }: TrendChartWidgetProps) => preact_compat.JSX.Element;
643
+
644
+ type SuccessRatePieChartProps = PieChartValues & {
645
+ className?: string;
646
+ };
647
+ declare const SuccessRatePieChart: ({ slices, percentage, className }: SuccessRatePieChartProps) => preact.JSX.Element;
648
+
651
649
  type ResponsiveTreeChartProps<Datum extends DefaultTreeMapDatum = TreeMapNode> = Omit<TreeMapSvgProps<Datum>, "width" | "height">;
652
650
  interface ParentLabelControlOptions {
653
651
  parentSkipSize?: number;