@allurereport/web-components 3.17.0 → 3.19.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
@@ -350,6 +350,7 @@ interface TreeProps {
350
350
  focusedId?: string;
351
351
  focusIdPrefix?: string;
352
352
  isGroupOpened?: (scopedNodeId: string, openedByDefault: boolean) => boolean;
353
+ showMoreLabel?: string;
353
354
  }
354
355
  declare const Tree: FunctionalComponent<TreeProps>;
355
356
 
@@ -435,6 +436,7 @@ type AttachmentProps = {
435
436
  i18n?: (key: any) => string;
436
437
  };
437
438
  type I18nProp$a = {
439
+ controls?: (key: string) => string;
438
440
  imageDiff: ComponentProps<typeof ImageDiff>["i18n"];
439
441
  };
440
442
 
@@ -658,10 +660,13 @@ interface TrendChartWidgetProps<TSlice = {
658
660
  }
659
661
  declare const TrendChartWidget: ({ title, mode, items, slices, min, max, height, width, rootAriaLabel, translations, }: TrendChartWidgetProps) => preact_compat.JSX.Element;
660
662
 
663
+ type SuccessRateI18n = (key: string, values?: Record<string, any>) => string;
664
+
661
665
  type SuccessRatePieChartProps = PieChartValues & {
662
666
  className?: string;
667
+ i18n?: SuccessRateI18n;
663
668
  };
664
- declare const SuccessRatePieChart: ({ slices, percentage, className }: SuccessRatePieChartProps) => preact.JSX.Element;
669
+ declare const SuccessRatePieChart: ({ slices, percentage, className, i18n, }: SuccessRatePieChartProps) => preact.JSX.Element;
665
670
 
666
671
  type ResponsiveTreeChartProps<Datum extends DefaultTreeMapDatum = TreeMapNode> = Omit<TreeMapSvgProps<Datum>, "width" | "height">;
667
672
  interface ParentLabelControlOptions {
@@ -702,6 +707,7 @@ interface TreeMapChartWidgetProps extends Omit<TreeMapChartProps, "colors"> {
702
707
 
703
708
  declare const TreeMapChartWidget: FunctionalComponent<TreeMapChartWidgetProps & {
704
709
  chartType: ChartType.CoverageDiff | ChartType.SuccessRateDistribution;
710
+ i18n?: SuccessRateI18n;
705
711
  }>;
706
712
 
707
713
  declare const useCoverageDiffColors: (theme?: string) => (value: number) => string;
@@ -778,10 +784,12 @@ type Props$7 = {
778
784
  layer: string;
779
785
  testCount: number;
780
786
  successRate: number;
787
+ eligibleCount?: number;
781
788
  percentage: number;
782
789
  }[];
783
790
  title: string;
784
791
  translations: Record<string, string>;
792
+ i18n?: SuccessRateI18n;
785
793
  width?: JSX.CSSProperties["width"];
786
794
  height?: JSX.CSSProperties["height"];
787
795
  };
@@ -850,7 +858,7 @@ type Props$1 = Omit<DurationDynamicsChartData, "type"> & {
850
858
 
851
859
  declare const DurationDynamicsChartWidget: FunctionalComponent<Props$1>;
852
860
 
853
- type TimlineTr = Pick<TestResult, "id" | "name" | "status" | "flaky" | "isRetry" | "environment" | "start" | "duration" | "historyId"> & {
861
+ type TimlineTr = Pick<TestResult, "id" | "name" | "status" | "flaky" | "isRetry" | "environment" | "start" | "duration" | "retryHash"> & {
854
862
  host: string;
855
863
  thread: string;
856
864
  };
@@ -909,7 +917,7 @@ type ReportSummary = {
909
917
  };
910
918
  type StatusI18nKeys = "status.failed" | "status.broken" | "status.passed" | "status.skipped" | "status.unknown";
911
919
  type MetadataI18nKeys = "metadata.new" | "metadata.retry" | "metadata.flaky";
912
- type I18nKeys = MetadataI18nKeys | StatusI18nKeys | "in" | "new" | "retry" | "flaky" | "total" | "createdAt";
920
+ type I18nKeys = `successRate.${string}` | MetadataI18nKeys | StatusI18nKeys | "in" | "new" | "retry" | "flaky" | "total" | "createdAt";
913
921
  type I18nProp = (key: I18nKeys, props?: Record<string, any>) => string | undefined;
914
922
 
915
923
  type ReportSummaryCardProps = {
@@ -939,4 +947,4 @@ type Props = {
939
947
  declare const EmptyView: FunctionalComponent<Props>;
940
948
 
941
949
  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 };
942
- 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 };
950
+ export type { Datum, GridItemProps, GridProps, HeatMapProps, HeatMapWidgetProps, LanguagePickerProps, MeshTrendChartProps, ModalDataProps, ModalGalleryProps, ModalTranslations, ModalTranslationsProps, ParentLabelControlOptions, ReportSummary, ReportSummaryCardProps, ResponsiveTreeChartProps, Serie, Slice, SlicesTrendChartProps, SuccessRateI18n, SymlogScaleOptions, TagProps, TagSkin, Theme, ThemeButtonProps, TreeMapChartNode, TreeMapChartProps, TreeMapChartWidgetProps, TrendChartKindConfig, TrendChartProps, TrendChartSliceClickHandler, TrendChartSliceTouchHandler };