@allurereport/web-components 3.20.1 → 3.21.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
@@ -5,7 +5,7 @@ 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
7
  import { AttachmentTestStepResult, DefaultTreeGroup, TestStatus, ResolutionCategory, TestStatusTransition, Statistic, SeverityLevel, TestResult } from '@allurereport/core-api';
8
- import { AttachmentData, LangLocale, TreeMapTooltipAccessor } from '@allurereport/web-commons';
8
+ import { SubtreeToggleAction, 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';
11
11
  import { AxisProps } from '@nivo/axes';
@@ -34,6 +34,7 @@ declare const allureIcons: {
34
34
  readonly lineAlertsNew: "line-alerts-new";
35
35
  readonly lineAlertsNotificationBox: "line-alerts-notification-box";
36
36
  readonly lineAlertsRegressed: "line-alerts-regressed";
37
+ readonly lineArrowsArrowLeft: "line-arrows-arrow-left";
37
38
  readonly lineArrowsChevronDownDouble: "line-arrows-chevron-down-double";
38
39
  readonly lineArrowsChevronDown: "line-arrows-chevron-down";
39
40
  readonly lineArrowsChevronRight: "line-arrows-chevron-right";
@@ -114,7 +115,7 @@ type BaseBtnProps = {
114
115
  isPending?: boolean;
115
116
  size?: "xs" | "s" | "m" | "l";
116
117
  style?: "primary" | "outline" | "ghost" | "flat" | "raised";
117
- action?: "default" | "danger" | "positive";
118
+ action?: "default" | "danger" | "positive" | "accent";
118
119
  icon?: string;
119
120
  iconSize?: "xs" | "s" | "m";
120
121
  iconColor?: "primary" | "secondary";
@@ -129,6 +130,7 @@ type BaseBtnProps = {
129
130
  href?: string;
130
131
  rounded?: boolean;
131
132
  target?: HTMLAnchorElement["target"];
133
+ rel?: HTMLAnchorElement["rel"];
132
134
  className?: string;
133
135
  dataTestId?: string;
134
136
  leadingSlot?: ComponentChild;
@@ -149,6 +151,12 @@ type DropdownButtonProps = Omit<BaseBtnProps, "type" | "autoFocus" | "isDropdown
149
151
  declare const DropdownButton: (props: DropdownButtonProps) => preact.JSX.Element;
150
152
  declare const ButtonLink: (props: Omit<BaseBtnProps, "href" | "isLink"> & Pick<Required<BaseBtnProps>, "href">) => preact.JSX.Element;
151
153
 
154
+ type OverviewLinkProps = {
155
+ href: string;
156
+ text: string;
157
+ };
158
+ declare const OverviewLink: ({ href, text }: OverviewLinkProps) => preact.JSX.Element;
159
+
152
160
  type SpinnerProps = {
153
161
  size?: "s" | "m";
154
162
  };
@@ -197,6 +205,8 @@ interface TooltipWrapperProps {
197
205
  "isTriggerActive"?: boolean;
198
206
  "data-testid"?: string;
199
207
  "showDelay"?: number;
208
+ "className"?: string;
209
+ "triggerClassName"?: string;
200
210
  }
201
211
  interface TooltipProps {
202
212
  "data-testid"?: string;
@@ -330,6 +340,7 @@ type TreeLeaf = {
330
340
  flaky?: boolean;
331
341
  retry?: boolean;
332
342
  retriesCount?: number;
343
+ retriesStatusChange?: boolean;
333
344
  resolution?: ResolutionCategory;
334
345
  transition?: TestStatusTransition;
335
346
  transitionTooltip?: string;
@@ -352,6 +363,7 @@ interface TreeProps {
352
363
  focusIdPrefix?: string;
353
364
  isGroupOpened?: (scopedNodeId: string, openedByDefault: boolean) => boolean;
354
365
  showMoreLabel?: string;
366
+ subtreeToggleLabels?: Record<SubtreeToggleAction, string>;
355
367
  }
356
368
  declare const Tree: FunctionalComponent<TreeProps>;
357
369
 
@@ -384,6 +396,7 @@ interface TreeItemProps {
384
396
  status?: TestStatus;
385
397
  duration?: number;
386
398
  retriesCount?: number;
399
+ retriesStatusChange?: boolean;
387
400
  flaky?: boolean;
388
401
  resolution?: ResolutionCategory;
389
402
  transition?: TestStatusTransition;
@@ -470,6 +483,13 @@ type MarkdownAttachmentPreviewProps = {
470
483
  };
471
484
  declare const MarkdownPreview: FunctionalComponent<MarkdownAttachmentPreviewProps>;
472
485
 
486
+ type MermaidAttachmentPreviewProps = {
487
+ attachment: {
488
+ text: string;
489
+ };
490
+ };
491
+ declare const MermaidPreview: FunctionalComponent<MermaidAttachmentPreviewProps>;
492
+
473
493
  declare const AttachmentImage: (props: AttachmentProps) => preact.JSX.Element;
474
494
 
475
495
  declare const AttachmentVideo: ({ attachment, item }: AttachmentProps) => preact.JSX.Element;
@@ -949,5 +969,5 @@ type Props = {
949
969
  };
950
970
  declare const EmptyView: FunctionalComponent<Props>;
951
971
 
952
- 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 };
972
+ 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, MermaidPreview, Modal, OverviewLink, 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 };
953
973
  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 };