@allurereport/web-components 3.20.0 → 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.css +1 -1
- package/dist/index.d.ts +25 -3
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/package.json +20 -31
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,10 +340,12 @@ 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;
|
|
336
347
|
tooltips?: Record<string, string>;
|
|
348
|
+
parameters?: string[];
|
|
337
349
|
};
|
|
338
350
|
|
|
339
351
|
interface TreeProps {
|
|
@@ -351,6 +363,7 @@ interface TreeProps {
|
|
|
351
363
|
focusIdPrefix?: string;
|
|
352
364
|
isGroupOpened?: (scopedNodeId: string, openedByDefault: boolean) => boolean;
|
|
353
365
|
showMoreLabel?: string;
|
|
366
|
+
subtreeToggleLabels?: Record<SubtreeToggleAction, string>;
|
|
354
367
|
}
|
|
355
368
|
declare const Tree: FunctionalComponent<TreeProps>;
|
|
356
369
|
|
|
@@ -383,6 +396,7 @@ interface TreeItemProps {
|
|
|
383
396
|
status?: TestStatus;
|
|
384
397
|
duration?: number;
|
|
385
398
|
retriesCount?: number;
|
|
399
|
+
retriesStatusChange?: boolean;
|
|
386
400
|
flaky?: boolean;
|
|
387
401
|
resolution?: ResolutionCategory;
|
|
388
402
|
transition?: TestStatusTransition;
|
|
@@ -394,6 +408,7 @@ interface TreeItemProps {
|
|
|
394
408
|
focused?: boolean;
|
|
395
409
|
navigateTo: (id: string) => void;
|
|
396
410
|
tooltips?: Record<string, string>;
|
|
411
|
+
parameters?: string[];
|
|
397
412
|
}
|
|
398
413
|
declare const TreeItem: FunctionComponent<TreeItemProps>;
|
|
399
414
|
|
|
@@ -468,6 +483,13 @@ type MarkdownAttachmentPreviewProps = {
|
|
|
468
483
|
};
|
|
469
484
|
declare const MarkdownPreview: FunctionalComponent<MarkdownAttachmentPreviewProps>;
|
|
470
485
|
|
|
486
|
+
type MermaidAttachmentPreviewProps = {
|
|
487
|
+
attachment: {
|
|
488
|
+
text: string;
|
|
489
|
+
};
|
|
490
|
+
};
|
|
491
|
+
declare const MermaidPreview: FunctionalComponent<MermaidAttachmentPreviewProps>;
|
|
492
|
+
|
|
471
493
|
declare const AttachmentImage: (props: AttachmentProps) => preact.JSX.Element;
|
|
472
494
|
|
|
473
495
|
declare const AttachmentVideo: ({ attachment, item }: AttachmentProps) => preact.JSX.Element;
|
|
@@ -947,5 +969,5 @@ type Props = {
|
|
|
947
969
|
};
|
|
948
970
|
declare const EmptyView: FunctionalComponent<Props>;
|
|
949
971
|
|
|
950
|
-
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 };
|
|
951
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 };
|