@allurereport/web-components 3.8.1 → 3.9.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/README.md +4 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +29 -5
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/mixins.scss +76 -10
- package/package.json +11 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as preact from 'preact';
|
|
2
2
|
import { SVGAttributes, ComponentChild, Ref, FunctionalComponent, JSX, HTMLAttributes, VNode, ComponentChildren, FunctionComponent, ComponentProps } from 'preact';
|
|
3
|
+
import { TextProps as TextProps$1 } from '@/components/Typography';
|
|
3
4
|
import { Placement } from '@floating-ui/dom';
|
|
4
5
|
import * as preact_compat from 'preact/compat';
|
|
5
6
|
import { MutableRefObject, HTMLAttributes as HTMLAttributes$1, CSSProperties } from 'preact/compat';
|
|
@@ -182,6 +183,11 @@ type HeadingProps = {
|
|
|
182
183
|
} & Omit<HTMLAttributes, "size" | "className" | "tag">;
|
|
183
184
|
declare const Heading: FunctionalComponent<HeadingProps>;
|
|
184
185
|
|
|
186
|
+
type LinkifiedTextProps<Tag extends keyof preact.JSX.IntrinsicElements = "span"> = Omit<TextProps$1<Tag>, "children"> & {
|
|
187
|
+
text: string;
|
|
188
|
+
};
|
|
189
|
+
declare const LinkifiedText: <Tag extends keyof preact.JSX.IntrinsicElements = "span">({ text, ...textProps }: LinkifiedTextProps<Tag>) => preact.JSX.Element;
|
|
190
|
+
|
|
185
191
|
interface TooltipWrapperProps {
|
|
186
192
|
"tooltipText"?: string;
|
|
187
193
|
"tooltipTextAfterClick"?: string;
|
|
@@ -324,9 +330,12 @@ interface TreeProps {
|
|
|
324
330
|
root?: boolean;
|
|
325
331
|
statusFilter?: Status;
|
|
326
332
|
collapsedTrees: Set<string>;
|
|
327
|
-
toggleTree: (id: string) => void;
|
|
333
|
+
toggleTree: (id: string, openedByDefault?: boolean) => void;
|
|
328
334
|
navigateTo: (id: string) => void;
|
|
329
335
|
routeId?: string;
|
|
336
|
+
focusedId?: string;
|
|
337
|
+
focusIdPrefix?: string;
|
|
338
|
+
isGroupOpened?: (scopedNodeId: string, openedByDefault: boolean) => boolean;
|
|
330
339
|
}
|
|
331
340
|
declare const Tree: FunctionalComponent<TreeProps>;
|
|
332
341
|
|
|
@@ -339,6 +348,8 @@ interface TreeHeaderProps {
|
|
|
339
348
|
statusFilter?: Status;
|
|
340
349
|
style?: Record<string, string>;
|
|
341
350
|
actions?: ComponentChildren;
|
|
351
|
+
focused?: boolean;
|
|
352
|
+
nodeId?: string;
|
|
342
353
|
}
|
|
343
354
|
declare const TreeHeader: FunctionComponent<TreeHeaderProps>;
|
|
344
355
|
|
|
@@ -347,6 +358,8 @@ interface TreeSectionProps {
|
|
|
347
358
|
isOpened: boolean;
|
|
348
359
|
toggleTree: () => void;
|
|
349
360
|
icon?: string;
|
|
361
|
+
focused?: boolean;
|
|
362
|
+
nodeId?: string;
|
|
350
363
|
}
|
|
351
364
|
declare const TreeSection: FunctionComponent<TreeSectionProps>;
|
|
352
365
|
|
|
@@ -359,8 +372,10 @@ interface TreeItemProps {
|
|
|
359
372
|
transition?: TestStatusTransition;
|
|
360
373
|
transitionTooltip?: string;
|
|
361
374
|
id: string;
|
|
375
|
+
focusNodeId?: string;
|
|
362
376
|
groupOrder: number;
|
|
363
377
|
marked?: boolean;
|
|
378
|
+
focused?: boolean;
|
|
364
379
|
navigateTo: (id: string) => void;
|
|
365
380
|
tooltips?: Record<string, string>;
|
|
366
381
|
}
|
|
@@ -427,6 +442,13 @@ type HtmlAttachmentPreviewProps = {
|
|
|
427
442
|
};
|
|
428
443
|
declare const HtmlPreview: FunctionalComponent<HtmlAttachmentPreviewProps>;
|
|
429
444
|
|
|
445
|
+
type MarkdownAttachmentPreviewProps = {
|
|
446
|
+
attachment: {
|
|
447
|
+
text: string;
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
declare const MarkdownPreview: FunctionalComponent<MarkdownAttachmentPreviewProps>;
|
|
451
|
+
|
|
430
452
|
declare const AttachmentImage: (props: AttachmentProps) => preact.JSX.Element;
|
|
431
453
|
|
|
432
454
|
declare const AttachmentVideo: ({ attachment, item }: AttachmentProps) => preact.JSX.Element;
|
|
@@ -441,6 +463,8 @@ declare const CodeViewer: FunctionalComponent<{
|
|
|
441
463
|
className?: string;
|
|
442
464
|
}>;
|
|
443
465
|
|
|
466
|
+
declare const HttpAttachment: ({ attachment }: AttachmentProps) => preact.JSX.Element;
|
|
467
|
+
|
|
444
468
|
type Props$e = {
|
|
445
469
|
size?: "s" | "m" | "l";
|
|
446
470
|
count: number;
|
|
@@ -808,7 +832,7 @@ type Props$1 = Omit<DurationDynamicsChartData, "type"> & {
|
|
|
808
832
|
|
|
809
833
|
declare const DurationDynamicsChartWidget: FunctionalComponent<Props$1>;
|
|
810
834
|
|
|
811
|
-
type TimlineTr = Pick<TestResult, "id" | "name" | "status" | "flaky" | "
|
|
835
|
+
type TimlineTr = Pick<TestResult, "id" | "name" | "status" | "flaky" | "isRetry" | "environment" | "start" | "duration" | "historyId"> & {
|
|
812
836
|
host: string;
|
|
813
837
|
thread: string;
|
|
814
838
|
};
|
|
@@ -816,7 +840,7 @@ type TimelineSegment = {
|
|
|
816
840
|
timeRange: [Date, Date];
|
|
817
841
|
val: number;
|
|
818
842
|
status: "failed" | "broken" | "passed" | "skipped" | "unknown";
|
|
819
|
-
|
|
843
|
+
isRetry?: boolean;
|
|
820
844
|
label: string;
|
|
821
845
|
labelGroup: string[];
|
|
822
846
|
id: string;
|
|
@@ -886,7 +910,7 @@ type Props = {
|
|
|
886
910
|
title?: ComponentChildren;
|
|
887
911
|
description?: ComponentChildren;
|
|
888
912
|
icon?: string;
|
|
889
|
-
iconColor?: "
|
|
913
|
+
iconColor?: "purple" | "blue" | "green" | "orange" | "violet" | "sky" | "magenta" | "rose" | "red" | "amber" | "teal" | "slate";
|
|
890
914
|
fullHeight?: boolean;
|
|
891
915
|
size?: Size;
|
|
892
916
|
className?: string;
|
|
@@ -895,5 +919,5 @@ type Props = {
|
|
|
895
919
|
};
|
|
896
920
|
declare const EmptyView: FunctionalComponent<Props>;
|
|
897
921
|
|
|
898
|
-
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, IconButton, IconLabel, ImageDiff, Label, LanguagePicker, Link, Loadable, 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 };
|
|
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 };
|
|
899
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 };
|