@allurereport/web-components 3.17.0 → 3.18.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 +10 -3
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -435,6 +435,7 @@ type AttachmentProps = {
|
|
|
435
435
|
i18n?: (key: any) => string;
|
|
436
436
|
};
|
|
437
437
|
type I18nProp$a = {
|
|
438
|
+
controls?: (key: string) => string;
|
|
438
439
|
imageDiff: ComponentProps<typeof ImageDiff>["i18n"];
|
|
439
440
|
};
|
|
440
441
|
|
|
@@ -658,10 +659,13 @@ interface TrendChartWidgetProps<TSlice = {
|
|
|
658
659
|
}
|
|
659
660
|
declare const TrendChartWidget: ({ title, mode, items, slices, min, max, height, width, rootAriaLabel, translations, }: TrendChartWidgetProps) => preact_compat.JSX.Element;
|
|
660
661
|
|
|
662
|
+
type SuccessRateI18n = (key: string, values?: Record<string, any>) => string;
|
|
663
|
+
|
|
661
664
|
type SuccessRatePieChartProps = PieChartValues & {
|
|
662
665
|
className?: string;
|
|
666
|
+
i18n?: SuccessRateI18n;
|
|
663
667
|
};
|
|
664
|
-
declare const SuccessRatePieChart: ({ slices, percentage, className }: SuccessRatePieChartProps) => preact.JSX.Element;
|
|
668
|
+
declare const SuccessRatePieChart: ({ slices, percentage, className, i18n, }: SuccessRatePieChartProps) => preact.JSX.Element;
|
|
665
669
|
|
|
666
670
|
type ResponsiveTreeChartProps<Datum extends DefaultTreeMapDatum = TreeMapNode> = Omit<TreeMapSvgProps<Datum>, "width" | "height">;
|
|
667
671
|
interface ParentLabelControlOptions {
|
|
@@ -702,6 +706,7 @@ interface TreeMapChartWidgetProps extends Omit<TreeMapChartProps, "colors"> {
|
|
|
702
706
|
|
|
703
707
|
declare const TreeMapChartWidget: FunctionalComponent<TreeMapChartWidgetProps & {
|
|
704
708
|
chartType: ChartType.CoverageDiff | ChartType.SuccessRateDistribution;
|
|
709
|
+
i18n?: SuccessRateI18n;
|
|
705
710
|
}>;
|
|
706
711
|
|
|
707
712
|
declare const useCoverageDiffColors: (theme?: string) => (value: number) => string;
|
|
@@ -778,10 +783,12 @@ type Props$7 = {
|
|
|
778
783
|
layer: string;
|
|
779
784
|
testCount: number;
|
|
780
785
|
successRate: number;
|
|
786
|
+
eligibleCount?: number;
|
|
781
787
|
percentage: number;
|
|
782
788
|
}[];
|
|
783
789
|
title: string;
|
|
784
790
|
translations: Record<string, string>;
|
|
791
|
+
i18n?: SuccessRateI18n;
|
|
785
792
|
width?: JSX.CSSProperties["width"];
|
|
786
793
|
height?: JSX.CSSProperties["height"];
|
|
787
794
|
};
|
|
@@ -909,7 +916,7 @@ type ReportSummary = {
|
|
|
909
916
|
};
|
|
910
917
|
type StatusI18nKeys = "status.failed" | "status.broken" | "status.passed" | "status.skipped" | "status.unknown";
|
|
911
918
|
type MetadataI18nKeys = "metadata.new" | "metadata.retry" | "metadata.flaky";
|
|
912
|
-
type I18nKeys = MetadataI18nKeys | StatusI18nKeys | "in" | "new" | "retry" | "flaky" | "total" | "createdAt";
|
|
919
|
+
type I18nKeys = `successRate.${string}` | MetadataI18nKeys | StatusI18nKeys | "in" | "new" | "retry" | "flaky" | "total" | "createdAt";
|
|
913
920
|
type I18nProp = (key: I18nKeys, props?: Record<string, any>) => string | undefined;
|
|
914
921
|
|
|
915
922
|
type ReportSummaryCardProps = {
|
|
@@ -939,4 +946,4 @@ type Props = {
|
|
|
939
946
|
declare const EmptyView: FunctionalComponent<Props>;
|
|
940
947
|
|
|
941
948
|
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 };
|
|
949
|
+
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 };
|