@allurereport/web-components 3.14.3 → 3.16.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.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as preact from 'preact';
2
- import { SVGAttributes, ComponentChild, Ref, FunctionalComponent, JSX, HTMLAttributes, VNode, ComponentChildren, FunctionComponent, ComponentProps } from 'preact';
2
+ import { SVGAttributes, JSX, ComponentChild, Ref, FunctionalComponent, HTMLAttributes, VNode, ComponentChildren, FunctionComponent, ComponentProps } from 'preact';
3
3
  import { TextProps as TextProps$1 } from '@/components/Typography';
4
4
  import { Placement } from '@floating-ui/dom';
5
5
  import * as preact_compat from 'preact/compat';
@@ -20,96 +20,97 @@ import { DefaultTreeMapDatum, TreeMapSvgProps } from '@nivo/treemap';
20
20
  import { HeatMapDatum, DefaultHeatMapDatum, HeatMapSvgProps } from '@nivo/heatmap';
21
21
 
22
22
  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"> & {
23
+ readonly amazon: "amazon";
24
+ readonly arrowsChevronDown: "arrows-chevron-down";
25
+ readonly azure: "azure";
26
+ readonly bitbucket: "bitbucket";
27
+ readonly circleci: "circleci";
28
+ readonly draggable: "draggable";
29
+ readonly drone: "drone";
30
+ readonly environment: "environment";
31
+ readonly github: "github";
32
+ readonly gitlab: "gitlab";
33
+ readonly jenkins: "jenkins";
34
+ readonly lineAlertsAlertCircle: "line-alerts-alert-circle";
35
+ readonly lineAlertsFixed: "line-alerts-fixed";
36
+ readonly lineAlertsMalfunctioned: "line-alerts-malfunctioned";
37
+ readonly lineAlertsNew: "line-alerts-new";
38
+ readonly lineAlertsNotificationBox: "line-alerts-notification-box";
39
+ readonly lineAlertsRegressed: "line-alerts-regressed";
40
+ readonly lineArrowsChevronDownDouble: "line-arrows-chevron-down-double";
41
+ readonly lineArrowsChevronDown: "line-arrows-chevron-down";
42
+ readonly lineArrowsChevronRight: "line-arrows-chevron-right";
43
+ readonly lineArrowsChevronUpDouble: "line-arrows-chevron-up-double";
44
+ readonly lineArrowsChevronUp: "line-arrows-chevron-up";
45
+ readonly lineArrowsCornerDownRight: "line-arrows-corner-down-right";
46
+ readonly lineArrowsExpand3: "line-arrows-expand-3";
47
+ readonly lineArrowsRefreshCcw1: "line-arrows-refresh-ccw-1";
48
+ readonly lineArrowsSortLineAsc: "line-arrows-sort-line-asc";
49
+ readonly lineArrowsSortLineDesc: "line-arrows-sort-line-desc";
50
+ readonly lineArrowsSwitchVertical1: "line-arrows-switch-vertical-1";
51
+ readonly lineChartsBarChartSquare: "line-charts-bar-chart-square";
52
+ readonly lineChartsTimeline: "line-charts-timeline";
53
+ readonly lineDevBug2: "line-dev-bug-2";
54
+ readonly lineDevCodeSquare: "line-dev-code-square";
55
+ readonly lineDevDataflow3: "line-dev-dataflow-3";
56
+ readonly lineFilesClipboardCheck: "line-files-clipboard-check";
57
+ readonly lineFilesFile2: "line-files-file-2";
58
+ readonly lineFilesFileAttachment2: "line-files-file-attachment-2";
59
+ readonly lineFilesFolder: "line-files-folder";
60
+ readonly lineGeneralCheckCircle: "line-general-check-circle";
61
+ readonly lineGeneralCheck: "line-general-check";
62
+ readonly lineGeneralChecklist3: "line-general-checklist3";
63
+ readonly lineGeneralCopy3: "line-general-copy-3";
64
+ readonly lineGeneralDownloadCloud: "line-general-download-cloud";
65
+ readonly lineGeneralEqual: "line-general-equal";
66
+ readonly lineGeneralEye: "line-general-eye";
67
+ readonly lineGeneralHelpCircle: "line-general-help-circle";
68
+ readonly lineGeneralHomeLine: "line-general-home-line";
69
+ readonly lineGeneralInfoCircle: "line-general-info-circle";
70
+ readonly lineGeneralLink1: "line-general-link-1";
71
+ readonly lineGeneralLinkExternal: "line-general-link-external";
72
+ readonly lineGeneralMinusCircle: "line-general-minus-circle";
73
+ readonly lineGeneralSearchMd: "line-general-search-md";
74
+ readonly lineGeneralSettings1: "line-general-settings-1";
75
+ readonly lineGeneralXCircle: "line-general-x-circle";
76
+ readonly lineGeneralXClose: "line-general-x-close";
77
+ readonly lineGeneralZap: "line-general-zap";
78
+ readonly lineHelpersFlag: "line-helpers-flag";
79
+ readonly lineHelpersPlayCircle: "line-helpers-play-circle";
80
+ readonly lineIconBomb2: "line-icon-bomb-2";
81
+ readonly lineImagesImage: "line-images-image";
82
+ readonly lineLayoutsColumn2: "line-layouts-columns-2";
83
+ readonly lineLayoutsColumns2: "line-layouts-columns-2";
84
+ readonly lineLayoutsLayoutTop: "line-layouts-layout-top";
85
+ readonly lineLayoutsMaximize2: "line-layouts-maximize-2";
86
+ readonly lineLayoutsMinimize2: "line-layouts-minimize-2";
87
+ readonly lineSecurityKey: "line-security-key";
88
+ readonly lineShapesDotCircle: "line-shapes-dot-circle";
89
+ readonly lineShapesMoon: "line-shapes-moon";
90
+ readonly lineShapesSun: "line-shapes-sun";
91
+ readonly lineShapesThemeAuto: "line-shapes-theme-auto";
92
+ readonly lineTimeClockStopwatch: "line-time-clock-stopwatch";
93
+ readonly playwrightLogo: "playwright-logo";
94
+ readonly reportLogo: "report-logo";
95
+ readonly solidAlertCircle: "solid-alert-circle";
96
+ readonly solidCheckCircle: "solid-check-circle";
97
+ readonly solidHelpCircle: "solid-help-circle";
98
+ readonly solidMinusCircle: "solid-minus-circle";
99
+ readonly solidPlusCircle: "solid-plus-circle";
100
+ readonly solidXCircle: "solid-x-circle";
101
+ readonly spinner: "spinner";
102
+ readonly testNew: "test-new";
103
+ readonly viewOff: "view-off";
104
+ readonly view: "view";
105
+ };
106
+ type SvgIconProps = Omit<SVGAttributes<SVGSVGElement>, "className" | "id" | "size" | "inline"> & {
106
107
  "size"?: "xs" | "s" | "m" | "l" | "xl";
107
108
  "className"?: string;
108
109
  "id": string;
109
110
  "inline"?: boolean;
110
111
  "data-testid"?: string;
111
112
  };
112
- declare const SvgIcon: ({ id, size, inline, className, "data-testid": dataTestId, ...restProps }: SvgIconProps) => preact.JSX.Element;
113
+ declare const SvgIcon: ({ id, size, inline, className, "data-testid": dataTestId, ...restProps }: SvgIconProps) => JSX.Element | null;
113
114
 
114
115
  type BaseBtnProps = {
115
116
  text?: string;
@@ -435,6 +436,8 @@ declare const AttachmentCode: (props: AttachmentProps & {
435
436
  highlight?: boolean;
436
437
  }) => preact.JSX.Element | null;
437
438
 
439
+ declare const AttachmentTable: ({ attachment, item }: AttachmentProps) => preact.JSX.Element;
440
+
438
441
  type HtmlAttachmentPreviewProps = {
439
442
  attachment: {
440
443
  text: string;
@@ -791,6 +794,7 @@ type Props$5 = {
791
794
  id: string;
792
795
  timestamp: number;
793
796
  name: string;
797
+ url?: string;
794
798
  }[];
795
799
  limit?: number;
796
800
  statuses?: TestStatus[];
@@ -872,7 +876,6 @@ declare const Timeline: FunctionComponent<Omit<TimelineProps, "data"> & {
872
876
  dataId: string;
873
877
  }>;
874
878
 
875
- type SummaryTestResult = Pick<TestResult, "name" | "id" | "status" | "duration">;
876
879
  type ReportSummary = {
877
880
  href?: string;
878
881
  remoteHref?: string;
@@ -883,9 +886,9 @@ type ReportSummary = {
883
886
  status: TestStatus;
884
887
  duration: number;
885
888
  plugin?: string;
886
- newTests?: SummaryTestResult[];
887
- flakyTests?: SummaryTestResult[];
888
- retryTests?: SummaryTestResult[];
889
+ newTests?: string[];
890
+ flakyTests?: string[];
891
+ retryTests?: string[];
889
892
  createdAt?: number;
890
893
  };
891
894
  type StatusI18nKeys = "status.failed" | "status.broken" | "status.passed" | "status.skipped" | "status.unknown";
@@ -919,5 +922,5 @@ type Props = {
919
922
  };
920
923
  declare const EmptyView: FunctionalComponent<Props>;
921
924
 
922
- export { ArrowButton, Attachment, AttachmentCode, AttachmentEmpty, AttachmentImage, AttachmentVideo, Button, ButtonLink, Code, CodeViewer, Counter, CurrentStatusChartWidget, DEFAULT_HEAT_MAP_EMPTY_ARIA_LABEL, DEFAULT_HEAT_MAP_EMPTY_COLOR, DEFAULT_HEAT_MAP_EMPTY_LABEL, DEFAULT_HEAT_MAP_FORCE_SQUARE, DEFAULT_HEAT_MAP_HEIGHT, DEFAULT_HEAT_MAP_VALUE_FORMAT, DEFAULT_HEAT_MAP_WIDTH, DEFAULT_HEAT_MAP_X_INNER_PADDING, DEFAULT_HEAT_MAP_Y_INNER_PADDING, DropdownButton, DurationDynamicsChartWidget, DurationsChartWidget, EmptyView, Grid, GridItem, Heading, HeatMap, HeatMapWidget, HtmlPreview, HttpAttachment, IconButton, IconLabel, ImageDiff, Label, LanguagePicker, Link, LinkifiedText, Loadable, MarkdownPreview, Menu, Modal, PageLoader, ReportLogo, ReportLogoFull, ReportSummaryCard, SearchBox, Spinner, StabilityDistributionWidget, StatusAgePyramidChartWidget, StatusDynamicsChartWidget, StatusLabel, StatusTransitionsChartWidget, SuccessRatePieChart, SvgIcon, Tag, TestBaseGrowthDynamicsChartWidget, TestingPyramidWidget, Text, ThemeButton, ThemeProvider, Timeline, Toggle, Tooltip, TooltipWrapper, TrSeveritiesChartWidget, Tree, TreeHeader, TreeItem, TreeItemIcon, TreeMapChart, TreeMapChartWidget, TreeSection, TreeStatusBar, TrendChart, TrendChartKind, TrendChartWidget, Widget, allureIcons, defaultHeatMapAxisLeftConfig, defaultHeatMapAxisTopConfig, defaultHeatMapLegendConfig, defaultHeatMapMarginConfig, defaultTreeChartConfig, defaultTrendChartAxisBottomConfig, defaultTrendChartAxisLeftConfig, defaultTrendChartConfig, defaultTrendChartLegendConfig, defaultTrendChartMarginConfig, defaultTrendChartXScaleConfig, defaultTrendChartYScaleConfig, makeSymlogScale, makeSymlogScaleBySeries, useCoverageDiffColors, useCoverageDiffTextColors, useElementTruncation, useSuccessRateDistributionColors, useTheme, useTooltip };
923
- export type { Datum, GridItemProps, GridProps, HeatMapProps, HeatMapWidgetProps, LanguagePickerProps, MeshTrendChartProps, ModalDataProps, ModalGalleryProps, ModalTranslations, ModalTranslationsProps, ParentLabelControlOptions, ReportSummaryCardProps, ResponsiveTreeChartProps, Serie, Slice, SlicesTrendChartProps, SymlogScaleOptions, TagProps, TagSkin, Theme, ThemeButtonProps, TreeMapChartNode, TreeMapChartProps, TreeMapChartWidgetProps, TrendChartKindConfig, TrendChartProps, TrendChartSliceClickHandler, TrendChartSliceTouchHandler };
925
+ export { ArrowButton, Attachment, AttachmentCode, AttachmentEmpty, AttachmentImage, AttachmentTable, AttachmentVideo, Button, ButtonLink, Code, CodeViewer, Counter, CurrentStatusChartWidget, DEFAULT_HEAT_MAP_EMPTY_ARIA_LABEL, DEFAULT_HEAT_MAP_EMPTY_COLOR, DEFAULT_HEAT_MAP_EMPTY_LABEL, DEFAULT_HEAT_MAP_FORCE_SQUARE, DEFAULT_HEAT_MAP_HEIGHT, DEFAULT_HEAT_MAP_VALUE_FORMAT, DEFAULT_HEAT_MAP_WIDTH, DEFAULT_HEAT_MAP_X_INNER_PADDING, DEFAULT_HEAT_MAP_Y_INNER_PADDING, DropdownButton, DurationDynamicsChartWidget, DurationsChartWidget, EmptyView, Grid, GridItem, Heading, HeatMap, HeatMapWidget, HtmlPreview, HttpAttachment, IconButton, IconLabel, ImageDiff, Label, LanguagePicker, Link, LinkifiedText, Loadable, MarkdownPreview, Menu, Modal, PageLoader, ReportLogo, ReportLogoFull, ReportSummaryCard, SearchBox, Spinner, StabilityDistributionWidget, StatusAgePyramidChartWidget, StatusDynamicsChartWidget, StatusLabel, StatusTransitionsChartWidget, SuccessRatePieChart, SvgIcon, Tag, TestBaseGrowthDynamicsChartWidget, TestingPyramidWidget, Text, ThemeButton, ThemeProvider, Timeline, Toggle, Tooltip, TooltipWrapper, TrSeveritiesChartWidget, Tree, TreeHeader, TreeItem, TreeItemIcon, TreeMapChart, TreeMapChartWidget, TreeSection, TreeStatusBar, TrendChart, TrendChartKind, TrendChartWidget, Widget, allureIcons, defaultHeatMapAxisLeftConfig, defaultHeatMapAxisTopConfig, defaultHeatMapLegendConfig, defaultHeatMapMarginConfig, defaultTreeChartConfig, defaultTrendChartAxisBottomConfig, defaultTrendChartAxisLeftConfig, defaultTrendChartConfig, defaultTrendChartLegendConfig, defaultTrendChartMarginConfig, defaultTrendChartXScaleConfig, defaultTrendChartYScaleConfig, makeSymlogScale, makeSymlogScaleBySeries, useCoverageDiffColors, useCoverageDiffTextColors, useElementTruncation, useSuccessRateDistributionColors, useTheme, useTooltip };
926
+ export type { Datum, GridItemProps, GridProps, HeatMapProps, HeatMapWidgetProps, LanguagePickerProps, MeshTrendChartProps, ModalDataProps, ModalGalleryProps, ModalTranslations, ModalTranslationsProps, ParentLabelControlOptions, ReportSummary, ReportSummaryCardProps, ResponsiveTreeChartProps, Serie, Slice, SlicesTrendChartProps, SymlogScaleOptions, TagProps, TagSkin, Theme, ThemeButtonProps, TreeMapChartNode, TreeMapChartProps, TreeMapChartWidgetProps, TrendChartKindConfig, TrendChartProps, TrendChartSliceClickHandler, TrendChartSliceTouchHandler };