@allurereport/web-components 3.0.1 → 3.2.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 +162 -113
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import * as preact from 'preact';
|
|
2
|
-
import { SVGAttributes,
|
|
2
|
+
import { SVGAttributes, ComponentChild, JSX, FunctionalComponent, HTMLAttributes, VNode, ComponentChildren, FunctionComponent, ComponentProps } from 'preact';
|
|
3
|
+
import { Placement } from '@floating-ui/dom';
|
|
4
|
+
import * as preact_compat from 'preact/compat';
|
|
5
|
+
import { MutableRefObject, HTMLAttributes as HTMLAttributes$1, CSSProperties } from 'preact/compat';
|
|
3
6
|
import { Signal } from '@preact/signals';
|
|
4
7
|
import { AttachmentTestStepResult, Statistic, TestStatus, TestStatusTransition, SeverityLevel, TestResult } from '@allurereport/core-api';
|
|
5
8
|
import { RecursiveTree, Status } from 'global';
|
|
6
|
-
import
|
|
7
|
-
import { HTMLAttributes as HTMLAttributes$1, CSSProperties } from 'preact/compat';
|
|
9
|
+
import { AttachmentData, LangLocale, TreeMapTooltipAccessor } from '@allurereport/web-commons';
|
|
8
10
|
import { Options } from 'sortablejs';
|
|
9
|
-
import {
|
|
10
|
-
import { ChartMode, PieChartValues, TreeMapNode, ChartType, StabilityDistributionChartData, TestBaseGrowthDynamicsChartData, FBSUAgePyramidChartData, StatusTransitionsChartData, DurationsChartData, TrSeveritiesChartData, DurationDynamicsChartData } from '@allurereport/charts-api';
|
|
11
|
+
import { ChartMode, PieChartValues, TreeMapNode, ChartType, StabilityDistributionChartData, TestBaseGrowthDynamicsChartData, StatusAgePyramidChartData, StatusTransitionsChartData, DurationsChartData, TrSeveritiesChartData, DurationDynamicsChartData } from '@allurereport/charts-api';
|
|
11
12
|
import { Serie as Serie$1 } from '@/components/Charts/TrendChart';
|
|
12
13
|
import { AxisProps } from '@nivo/axes';
|
|
13
14
|
import { Serie as Serie$2, Datum as Datum$1, LineSvgProps, Point } from '@nivo/line';
|
|
@@ -112,11 +113,12 @@ declare const SvgIcon: ({ id, size, inline, className, "data-testid": dataTestId
|
|
|
112
113
|
type BaseBtnProps = {
|
|
113
114
|
text?: string;
|
|
114
115
|
isPending?: boolean;
|
|
115
|
-
size?: "s" | "m" | "l";
|
|
116
|
+
size?: "xs" | "s" | "m" | "l";
|
|
116
117
|
style?: "primary" | "outline" | "ghost" | "flat" | "raised";
|
|
117
118
|
action?: "default" | "danger" | "positive";
|
|
118
119
|
icon?: string;
|
|
119
120
|
iconSize?: "xs" | "s" | "m";
|
|
121
|
+
iconColor?: "primary" | "secondary";
|
|
120
122
|
fullWidth?: boolean;
|
|
121
123
|
isIconButton?: boolean;
|
|
122
124
|
isDropdownButton?: boolean;
|
|
@@ -126,25 +128,32 @@ type BaseBtnProps = {
|
|
|
126
128
|
isActive?: boolean;
|
|
127
129
|
focusable?: boolean;
|
|
128
130
|
href?: string;
|
|
131
|
+
rounded?: boolean;
|
|
129
132
|
target?: HTMLAnchorElement["target"];
|
|
130
133
|
className?: string;
|
|
131
134
|
dataTestId?: string;
|
|
135
|
+
leadingSlot?: ComponentChild;
|
|
136
|
+
trailingSlot?: ComponentChild;
|
|
137
|
+
isLink?: boolean;
|
|
132
138
|
};
|
|
133
|
-
type ButtonProps = Omit<BaseBtnProps, "text" | "isIconButton" | "isDropdownButton"> & Pick<Required<BaseBtnProps>, "text">;
|
|
139
|
+
type ButtonProps = Omit<BaseBtnProps, "text" | "isIconButton" | "isDropdownButton" | "rounded" | "isLink"> & Pick<Required<BaseBtnProps>, "text">;
|
|
134
140
|
declare const Button: (props: ButtonProps) => preact.JSX.Element;
|
|
135
|
-
type IconButtonProps = Omit<BaseBtnProps, "text" | "icon" | "autoFocus" | "fullWidth" | "isIconButton" | "isDropdownButton"> & Pick<Required<BaseBtnProps>, "icon"
|
|
141
|
+
type IconButtonProps = Omit<BaseBtnProps, "text" | "icon" | "autoFocus" | "fullWidth" | "isIconButton" | "isDropdownButton" | "trailingSlot" | "leadingSlot" | "isLink"> & Pick<Required<BaseBtnProps>, "icon"> & {
|
|
142
|
+
rounded?: boolean;
|
|
143
|
+
};
|
|
136
144
|
declare const IconButton: (props: IconButtonProps) => preact.JSX.Element;
|
|
137
|
-
type DropdownButtonProps = Omit<BaseBtnProps, "type" | "autoFocus" | "isDropdownButton" | "isIconButton" | "text" | "isActive"> & Pick<Required<BaseBtnProps>, "text"> & {
|
|
145
|
+
type DropdownButtonProps = Omit<BaseBtnProps, "type" | "autoFocus" | "isDropdownButton" | "isIconButton" | "text" | "isActive" | "isLink"> & Pick<Required<BaseBtnProps>, "text"> & {
|
|
138
146
|
isExpanded?: boolean;
|
|
139
147
|
};
|
|
140
148
|
declare const DropdownButton: (props: DropdownButtonProps) => preact.JSX.Element;
|
|
149
|
+
declare const ButtonLink: (props: Omit<BaseBtnProps, "href" | "isLink"> & Pick<Required<BaseBtnProps>, "href">) => preact.JSX.Element;
|
|
141
150
|
|
|
142
151
|
type SpinnerProps = {
|
|
143
152
|
size?: "s" | "m";
|
|
144
153
|
};
|
|
145
154
|
declare const Spinner: ({ size }: SpinnerProps) => preact.JSX.Element;
|
|
146
155
|
|
|
147
|
-
type TextProps = ({
|
|
156
|
+
type TextProps<Tag extends keyof JSX.IntrinsicElements = "span"> = ({
|
|
148
157
|
type?: "paragraph";
|
|
149
158
|
size?: "s" | "m" | "l";
|
|
150
159
|
} | {
|
|
@@ -153,9 +162,9 @@ type TextProps = ({
|
|
|
153
162
|
}) & {
|
|
154
163
|
className?: string;
|
|
155
164
|
bold?: boolean;
|
|
156
|
-
tag?:
|
|
157
|
-
} & Omit<
|
|
158
|
-
declare const Text:
|
|
165
|
+
tag?: Tag;
|
|
166
|
+
} & Omit<JSX.IntrinsicElements[Tag], "type" | "size" | "className" | "bold" | "tag">;
|
|
167
|
+
declare const Text: <Tag extends keyof JSX.IntrinsicElements = "span">({ size, tag: ElementTag, type, bold, className, children, ...rest }: TextProps<Tag>) => JSX.Element | null;
|
|
159
168
|
type CodeProps = {
|
|
160
169
|
type?: "paragraph" | "ui";
|
|
161
170
|
size?: "s" | "m";
|
|
@@ -183,6 +192,16 @@ interface TooltipWrapperProps {
|
|
|
183
192
|
"data-testid"?: string;
|
|
184
193
|
"showDelay"?: number;
|
|
185
194
|
}
|
|
195
|
+
interface TooltipProps {
|
|
196
|
+
"data-testid"?: string;
|
|
197
|
+
}
|
|
198
|
+
declare const Tooltip: FunctionalComponent<TooltipProps>;
|
|
199
|
+
declare const useTooltip: <TriggerRef extends HTMLElement = HTMLElement, TooltipRef extends HTMLElement = HTMLElement>(props: {
|
|
200
|
+
placement?: Placement;
|
|
201
|
+
isVisible: boolean;
|
|
202
|
+
triggerRef: MutableRefObject<TriggerRef>;
|
|
203
|
+
tooltipRef: MutableRefObject<TooltipRef>;
|
|
204
|
+
}) => void;
|
|
186
205
|
declare const TooltipWrapper: FunctionalComponent<TooltipWrapperProps>;
|
|
187
206
|
|
|
188
207
|
interface StoreSignalState<T> {
|
|
@@ -201,15 +220,16 @@ declare const Loadable: <T, K = T>(props: LoadableProps<T, K>) => JSX.Element |
|
|
|
201
220
|
|
|
202
221
|
declare const PageLoader: () => preact.JSX.Element;
|
|
203
222
|
|
|
204
|
-
type Props$
|
|
223
|
+
type Props$g = {
|
|
205
224
|
placeholder?: string;
|
|
206
|
-
invalid?: string;
|
|
207
225
|
error?: string;
|
|
208
226
|
value: string;
|
|
209
227
|
onChange: (value: string) => void;
|
|
210
228
|
changeDebounce?: number;
|
|
229
|
+
leadingSlot?: ComponentChild;
|
|
230
|
+
trailingSlot?: ComponentChild;
|
|
211
231
|
};
|
|
212
|
-
declare const SearchBox: (props: Props$
|
|
232
|
+
declare const SearchBox: (props: Props$g) => preact.JSX.Element;
|
|
213
233
|
|
|
214
234
|
declare const Menu: {
|
|
215
235
|
(props: {
|
|
@@ -226,7 +246,7 @@ declare const Menu: {
|
|
|
226
246
|
}): preact.JSX.Element;
|
|
227
247
|
Section: FunctionalComponent<{}>;
|
|
228
248
|
Item: FunctionalComponent<ItemProps>;
|
|
229
|
-
ItemWithCheckmark: FunctionalComponent<ItemProps & {
|
|
249
|
+
ItemWithCheckmark: FunctionalComponent<Omit<ItemProps, "rightSlot"> & {
|
|
230
250
|
isChecked: boolean;
|
|
231
251
|
}>;
|
|
232
252
|
};
|
|
@@ -339,18 +359,39 @@ interface TreeStatusBarProps {
|
|
|
339
359
|
}
|
|
340
360
|
declare const TreeStatusBar: FunctionalComponent<TreeStatusBarProps>;
|
|
341
361
|
|
|
362
|
+
type I18nKeys$a = "mode.diff" | "mode.actual" | "mode.expected" | "mode.side-by-side" | "mode.overlay" | "empty.failed-to-load" | "image.diff" | "image.actual" | "image.expected";
|
|
363
|
+
type I18nProp$b = (key: I18nKeys$a, props?: Record<string, unknown>) => string | undefined;
|
|
364
|
+
|
|
365
|
+
type ImageDiff$1 = {
|
|
366
|
+
name?: string;
|
|
367
|
+
expected?: string;
|
|
368
|
+
actual?: string;
|
|
369
|
+
diff?: string;
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
type Props$f = {
|
|
373
|
+
diff: ImageDiff$1;
|
|
374
|
+
i18n?: I18nProp$b;
|
|
375
|
+
};
|
|
376
|
+
declare const ImageDiff: (props: Props$f) => preact.JSX.Element;
|
|
377
|
+
|
|
378
|
+
type AttachmentProps = {
|
|
379
|
+
attachment: AttachmentData | null;
|
|
380
|
+
item: AttachmentTestStepResult;
|
|
381
|
+
i18n?: (key: any) => string;
|
|
382
|
+
};
|
|
383
|
+
type I18nProp$a = {
|
|
384
|
+
imageDiff: ComponentProps<typeof ImageDiff>["i18n"];
|
|
385
|
+
};
|
|
386
|
+
|
|
342
387
|
interface AttachmentTestStepResultProps {
|
|
343
388
|
item: AttachmentTestStepResult;
|
|
344
389
|
previewable?: boolean;
|
|
390
|
+
i18n?: I18nProp$a;
|
|
345
391
|
}
|
|
346
|
-
declare const Attachment:
|
|
392
|
+
declare const Attachment: (props: AttachmentTestStepResultProps) => preact.JSX.Element | null;
|
|
347
393
|
|
|
348
|
-
declare const AttachmentCode:
|
|
349
|
-
item: AttachmentTestStepResult;
|
|
350
|
-
attachment: {
|
|
351
|
-
text?: string;
|
|
352
|
-
};
|
|
353
|
-
}>;
|
|
394
|
+
declare const AttachmentCode: (props: AttachmentProps) => preact.JSX.Element | null;
|
|
354
395
|
|
|
355
396
|
type HtmlAttachmentPreviewProps = {
|
|
356
397
|
attachment: {
|
|
@@ -359,19 +400,9 @@ type HtmlAttachmentPreviewProps = {
|
|
|
359
400
|
};
|
|
360
401
|
declare const HtmlPreview: FunctionalComponent<HtmlAttachmentPreviewProps>;
|
|
361
402
|
|
|
362
|
-
declare const AttachmentImage:
|
|
363
|
-
attachment: {
|
|
364
|
-
img: string;
|
|
365
|
-
originalFileName: string;
|
|
366
|
-
};
|
|
367
|
-
}>;
|
|
403
|
+
declare const AttachmentImage: (props: AttachmentProps) => preact.JSX.Element;
|
|
368
404
|
|
|
369
|
-
declare const AttachmentVideo:
|
|
370
|
-
attachment: {
|
|
371
|
-
src: string;
|
|
372
|
-
contentType?: string;
|
|
373
|
-
};
|
|
374
|
-
}>;
|
|
405
|
+
declare const AttachmentVideo: ({ attachment, item }: AttachmentProps) => preact.JSX.Element;
|
|
375
406
|
|
|
376
407
|
declare const AttachmentEmpty: ({ children }: {
|
|
377
408
|
children: ComponentChildren;
|
|
@@ -383,28 +414,29 @@ declare const CodeViewer: FunctionalComponent<{
|
|
|
383
414
|
className?: string;
|
|
384
415
|
}>;
|
|
385
416
|
|
|
386
|
-
type Props$
|
|
417
|
+
type Props$e = {
|
|
387
418
|
size?: "s" | "m" | "l";
|
|
388
419
|
count: number;
|
|
389
420
|
truncateCount?: boolean;
|
|
390
421
|
status?: TestStatus;
|
|
391
422
|
};
|
|
392
|
-
declare const Counter: (props: Props$
|
|
423
|
+
declare const Counter: (props: Props$e) => preact.JSX.Element;
|
|
393
424
|
|
|
394
|
-
type Props$
|
|
425
|
+
type Props$d = {
|
|
395
426
|
value: boolean;
|
|
396
427
|
label: string;
|
|
428
|
+
size?: "s" | "m";
|
|
397
429
|
onChange: (value: boolean) => void;
|
|
398
430
|
focusable?: boolean;
|
|
399
431
|
};
|
|
400
|
-
declare const Toggle: (props: Props$
|
|
432
|
+
declare const Toggle: (props: Props$d) => preact.JSX.Element;
|
|
401
433
|
|
|
402
|
-
type Props$
|
|
434
|
+
type Props$c = {
|
|
403
435
|
href?: string;
|
|
404
436
|
children: ComponentChildren;
|
|
405
437
|
onClick?: (e: MouseEvent) => void;
|
|
406
438
|
};
|
|
407
|
-
declare const Link: (props: Props$
|
|
439
|
+
declare const Link: (props: Props$c) => preact.JSX.Element;
|
|
408
440
|
|
|
409
441
|
declare const Label: FunctionComponent;
|
|
410
442
|
|
|
@@ -430,13 +462,14 @@ interface WidgetProps {
|
|
|
430
462
|
}
|
|
431
463
|
declare const Widget: FunctionalComponent<WidgetProps>;
|
|
432
464
|
|
|
433
|
-
type TagSkin = "successful" | "failed" | "warning" | "neutral" | "successful-light" | "failed-light" | "warning-light" | "neutral-light";
|
|
465
|
+
type TagSkin = "successful" | "failed" | "warning" | "neutral" | "successful-light" | "failed-light" | "warning-light" | "neutral-light" | "secondary";
|
|
434
466
|
interface TagProps {
|
|
435
467
|
"className"?: string;
|
|
436
468
|
"skin"?: TagSkin;
|
|
437
469
|
"data-testid"?: string;
|
|
470
|
+
"children": ComponentChildren;
|
|
438
471
|
}
|
|
439
|
-
declare const Tag:
|
|
472
|
+
declare const Tag: ({ className, skin, children, "data-testid": dataTestId }: TagProps) => preact.JSX.Element;
|
|
440
473
|
|
|
441
474
|
type GridKind = "default" | "swap";
|
|
442
475
|
interface GridProps extends HTMLAttributes$1<HTMLDivElement> {
|
|
@@ -462,18 +495,17 @@ declare const LanguagePicker: ({ locale, setLocale, availableLocales }: Language
|
|
|
462
495
|
type Theme = "light" | "dark" | "auto";
|
|
463
496
|
interface ThemeButtonProps {
|
|
464
497
|
theme: Theme;
|
|
465
|
-
getTheme: () => void;
|
|
466
498
|
toggleTheme: () => void;
|
|
467
499
|
}
|
|
468
|
-
declare const ThemeButton: ({ theme, toggleTheme
|
|
500
|
+
declare const ThemeButton: ({ theme, toggleTheme }: ThemeButtonProps) => preact.JSX.Element;
|
|
469
501
|
|
|
470
|
-
type Props$
|
|
502
|
+
type Props$b = {
|
|
471
503
|
icon: string;
|
|
472
504
|
tooltip?: string;
|
|
473
505
|
className?: string;
|
|
474
506
|
style?: "primary" | "secondary";
|
|
475
507
|
};
|
|
476
|
-
declare const IconLabel: FunctionalComponent<Props$
|
|
508
|
+
declare const IconLabel: FunctionalComponent<Props$b>;
|
|
477
509
|
|
|
478
510
|
interface TrendChartWidgetPropsTranslations {
|
|
479
511
|
"no-results": string;
|
|
@@ -647,33 +679,33 @@ interface HeatMapWidgetProps extends HeatMapProps {
|
|
|
647
679
|
|
|
648
680
|
declare const HeatMapWidget: FunctionalComponent<HeatMapWidgetProps>;
|
|
649
681
|
|
|
650
|
-
type I18nKeys$
|
|
651
|
-
type I18nProp$
|
|
652
|
-
type Props$
|
|
653
|
-
i18n: I18nProp$
|
|
682
|
+
type I18nKeys$9 = "no-results" | "legend.stabilityRate";
|
|
683
|
+
type I18nProp$9 = (key: I18nKeys$9, props?: Record<string, unknown>) => string;
|
|
684
|
+
type Props$a = Omit<StabilityDistributionChartData, "type"> & {
|
|
685
|
+
i18n: I18nProp$9;
|
|
654
686
|
};
|
|
655
687
|
|
|
656
|
-
declare const StabilityDistributionWidget: FunctionalComponent<Props$
|
|
688
|
+
declare const StabilityDistributionWidget: FunctionalComponent<Props$a>;
|
|
657
689
|
|
|
658
|
-
type I18nKeys$
|
|
659
|
-
type I18nProp$
|
|
660
|
-
type Props$
|
|
661
|
-
i18n: I18nProp$
|
|
690
|
+
type I18nKeys$8 = `status.new${TestStatus}` | `status.removed${TestStatus}` | "legend.trend" | "no-history" | "no-results" | "ticks.current" | "ticks.history" | "tooltips.current" | "tooltips.history";
|
|
691
|
+
type I18nProp$8 = (key: I18nKeys$8, props?: Record<string, unknown>) => string;
|
|
692
|
+
type Props$9 = Omit<TestBaseGrowthDynamicsChartData, "type"> & {
|
|
693
|
+
i18n: I18nProp$8;
|
|
662
694
|
};
|
|
663
695
|
|
|
664
|
-
declare const TestBaseGrowthDynamicsChartWidget: FunctionalComponent<Props$
|
|
696
|
+
declare const TestBaseGrowthDynamicsChartWidget: FunctionalComponent<Props$9>;
|
|
665
697
|
|
|
666
698
|
type FBSUStatus = Exclude<TestStatus, "passed">;
|
|
667
|
-
type I18nKeys$
|
|
668
|
-
type I18nProp$
|
|
669
|
-
type Props$
|
|
670
|
-
i18n: I18nProp$
|
|
699
|
+
type I18nKeys$7 = `status.${FBSUStatus}` | "no-history" | "no-results" | "ticks.current" | "ticks.history" | "tooltips.current" | "tooltips.history";
|
|
700
|
+
type I18nProp$7 = (key: I18nKeys$7, props?: Record<string, unknown>) => string;
|
|
701
|
+
type Props$8 = Omit<StatusAgePyramidChartData, "type" | "statuses"> & {
|
|
702
|
+
i18n: I18nProp$7;
|
|
671
703
|
statuses: FBSUStatus[];
|
|
672
704
|
};
|
|
673
705
|
|
|
674
|
-
declare const
|
|
706
|
+
declare const StatusAgePyramidChartWidget: FunctionalComponent<Props$8>;
|
|
675
707
|
|
|
676
|
-
type Props$
|
|
708
|
+
type Props$7 = {
|
|
677
709
|
data: {
|
|
678
710
|
layer: string;
|
|
679
711
|
testCount: number;
|
|
@@ -685,23 +717,23 @@ type Props$6 = {
|
|
|
685
717
|
width?: JSX.CSSProperties["width"];
|
|
686
718
|
height?: JSX.CSSProperties["height"];
|
|
687
719
|
};
|
|
688
|
-
declare const TestingPyramidWidget: (props: Props$
|
|
720
|
+
declare const TestingPyramidWidget: (props: Props$7) => JSX.Element;
|
|
689
721
|
|
|
690
|
-
type I18nKeys$
|
|
691
|
-
type I18nProp$
|
|
692
|
-
type Props$
|
|
722
|
+
type I18nKeys$6 = "status.passed" | "status.failed" | "status.skipped" | "status.unknown" | "status.broken" | "percentage" | "of" | "tests.new" | "tests.flaky" | "tests.retries" | "total";
|
|
723
|
+
type I18nProp$6 = (key: I18nKeys$6, props?: Record<string, unknown>) => string;
|
|
724
|
+
type Props$6 = {
|
|
693
725
|
title?: string;
|
|
694
|
-
i18n?: I18nProp$
|
|
726
|
+
i18n?: I18nProp$6;
|
|
695
727
|
data: Statistic;
|
|
696
728
|
statuses?: TestStatus[];
|
|
697
729
|
metric?: TestStatus;
|
|
698
730
|
};
|
|
699
731
|
|
|
700
|
-
declare const CurrentStatusChartWidget: FunctionalComponent<Props$
|
|
732
|
+
declare const CurrentStatusChartWidget: FunctionalComponent<Props$6>;
|
|
701
733
|
|
|
702
|
-
type I18nKeys$
|
|
703
|
-
type I18nProp$
|
|
704
|
-
type Props$
|
|
734
|
+
type I18nKeys$5 = "status.passed" | "status.failed" | "status.skipped" | "status.unknown" | "status.broken" | "no-history" | "no-results" | "ticks.current" | "ticks.history" | "tooltips.current" | "tooltips.history";
|
|
735
|
+
type I18nProp$5 = (key: I18nKeys$5, props?: Record<string, unknown>) => string;
|
|
736
|
+
type Props$5 = {
|
|
705
737
|
title?: string;
|
|
706
738
|
data: {
|
|
707
739
|
statistic: Statistic;
|
|
@@ -710,46 +742,49 @@ type Props$4 = {
|
|
|
710
742
|
name: string;
|
|
711
743
|
}[];
|
|
712
744
|
limit?: number;
|
|
745
|
+
statuses?: TestStatus[];
|
|
746
|
+
i18n: I18nProp$5;
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
declare const StatusDynamicsChartWidget: FunctionalComponent<Props$5>;
|
|
750
|
+
|
|
751
|
+
type I18nKeys$4 = "transitions.new" | "transitions.fixed" | "transitions.regressed" | "transitions.malfunctioned" | "legend.trend" | "no-history" | "no-results" | "ticks.current" | "ticks.history" | "tooltips.current" | "tooltips.history";
|
|
752
|
+
type I18nProp$4 = (key: I18nKeys$4, props?: Record<string, unknown>) => string;
|
|
753
|
+
type Props$4 = Omit<StatusTransitionsChartData, "type"> & {
|
|
713
754
|
statuses?: TestStatus[];
|
|
714
755
|
i18n: I18nProp$4;
|
|
715
756
|
};
|
|
716
757
|
|
|
717
|
-
declare const
|
|
758
|
+
declare const StatusTransitionsChartWidget: FunctionalComponent<Props$4>;
|
|
718
759
|
|
|
719
|
-
type I18nKeys$3 = "
|
|
760
|
+
type I18nKeys$3 = "no-history" | "no-results" | "ticks.durationRange" | "tooltips.durationRange" | "legend.value" | "legend.total";
|
|
720
761
|
type I18nProp$3 = (key: I18nKeys$3, props?: Record<string, unknown>) => string;
|
|
721
|
-
type Props$3 = Omit<
|
|
722
|
-
statuses?: TestStatus[];
|
|
762
|
+
type Props$3 = Omit<DurationsChartData, "type"> & {
|
|
723
763
|
i18n: I18nProp$3;
|
|
724
764
|
};
|
|
725
765
|
|
|
726
|
-
declare const
|
|
766
|
+
declare const DurationsChartWidget: FunctionalComponent<Props$3>;
|
|
727
767
|
|
|
728
|
-
type I18nKeys$2 =
|
|
768
|
+
type I18nKeys$2 = `status.${TestStatus}` | `severity.${SeverityLevel | "unset"}` | "no-results" | "ticks.current";
|
|
729
769
|
type I18nProp$2 = (key: I18nKeys$2, props?: Record<string, unknown>) => string;
|
|
730
|
-
type Props$2 = Omit<
|
|
770
|
+
type Props$2 = Omit<TrSeveritiesChartData, "type"> & {
|
|
731
771
|
i18n: I18nProp$2;
|
|
732
772
|
};
|
|
733
773
|
|
|
734
|
-
declare const
|
|
774
|
+
declare const TrSeveritiesChartWidget: FunctionalComponent<Props$2>;
|
|
735
775
|
|
|
736
|
-
type I18nKeys$1 =
|
|
776
|
+
type I18nKeys$1 = "no-results" | "durations.sequential" | "durations.duration" | "durations.speedup" | "ticks.current" | "ticks.history" | "tooltips.current" | "tooltips.history" | "legend.duration" | "legend.speedup";
|
|
737
777
|
type I18nProp$1 = (key: I18nKeys$1, props?: Record<string, unknown>) => string;
|
|
738
|
-
type Props$1 = Omit<
|
|
778
|
+
type Props$1 = Omit<DurationDynamicsChartData, "type"> & {
|
|
739
779
|
i18n: I18nProp$1;
|
|
740
780
|
};
|
|
741
781
|
|
|
742
|
-
declare const
|
|
782
|
+
declare const DurationDynamicsChartWidget: FunctionalComponent<Props$1>;
|
|
743
783
|
|
|
744
|
-
type
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
i18n: I18nProp;
|
|
784
|
+
type TimlineTr = Pick<TestResult, "id" | "name" | "status" | "flaky" | "hidden" | "environment" | "start" | "duration" | "historyId"> & {
|
|
785
|
+
host: string;
|
|
786
|
+
thread: string;
|
|
748
787
|
};
|
|
749
|
-
|
|
750
|
-
declare const DurationDynamicsChartWidget: FunctionalComponent<Props>;
|
|
751
|
-
|
|
752
|
-
type TimlineTr = Pick<TestResult, "id" | "name" | "status" | "flaky" | "hidden" | "labels" | "environment" | "start" | "stop" | "duration" | "historyId">;
|
|
753
788
|
type TimelineSegment = {
|
|
754
789
|
timeRange: [Date, Date];
|
|
755
790
|
val: number;
|
|
@@ -786,32 +821,32 @@ declare const Timeline: FunctionComponent<Omit<TimelineProps, "data"> & {
|
|
|
786
821
|
dataId: string;
|
|
787
822
|
}>;
|
|
788
823
|
|
|
789
|
-
type
|
|
790
|
-
|
|
824
|
+
type SummaryTestResult = Pick<TestResult, "name" | "id" | "status" | "duration">;
|
|
825
|
+
type ReportSummary = {
|
|
826
|
+
href?: string;
|
|
827
|
+
remoteHref?: string;
|
|
828
|
+
jobHref?: string;
|
|
829
|
+
pullRequestHref?: string;
|
|
791
830
|
name: string;
|
|
792
|
-
status: TestStatus;
|
|
793
831
|
stats: Statistic;
|
|
794
|
-
|
|
795
|
-
retryTests: any[];
|
|
796
|
-
flakyTests: any[];
|
|
832
|
+
status: TestStatus;
|
|
797
833
|
duration: number;
|
|
798
834
|
plugin?: string;
|
|
835
|
+
newTests?: SummaryTestResult[];
|
|
836
|
+
flakyTests?: SummaryTestResult[];
|
|
837
|
+
retryTests?: SummaryTestResult[];
|
|
799
838
|
createdAt?: number;
|
|
800
|
-
localeIso?: string;
|
|
801
|
-
locales?: {
|
|
802
|
-
in?: string;
|
|
803
|
-
new?: string;
|
|
804
|
-
flaky?: string;
|
|
805
|
-
retry?: string;
|
|
806
|
-
total?: string;
|
|
807
|
-
failed?: string;
|
|
808
|
-
broken?: string;
|
|
809
|
-
passed?: string;
|
|
810
|
-
skipped?: string;
|
|
811
|
-
unknown?: string;
|
|
812
|
-
};
|
|
813
839
|
};
|
|
814
|
-
|
|
840
|
+
type StatusI18nKeys = "status.failed" | "status.broken" | "status.passed" | "status.skipped" | "status.unknown";
|
|
841
|
+
type MetadataI18nKeys = "metadata.new" | "metadata.retry" | "metadata.flaky";
|
|
842
|
+
type I18nKeys = MetadataI18nKeys | StatusI18nKeys | "in" | "new" | "retry" | "flaky" | "total" | "createdAt";
|
|
843
|
+
type I18nProp = (key: I18nKeys, props?: Record<string, any>) => string | undefined;
|
|
844
|
+
|
|
845
|
+
type ReportSummaryCardProps = {
|
|
846
|
+
i18n: I18nProp;
|
|
847
|
+
summary: ReportSummary;
|
|
848
|
+
};
|
|
849
|
+
declare const ReportSummaryCard: (props: ReportSummaryCardProps) => preact.JSX.Element;
|
|
815
850
|
|
|
816
851
|
declare const useTheme: () => string;
|
|
817
852
|
declare const ThemeProvider: (props: {
|
|
@@ -819,5 +854,19 @@ declare const ThemeProvider: (props: {
|
|
|
819
854
|
theme: string;
|
|
820
855
|
}) => preact.JSX.Element;
|
|
821
856
|
|
|
822
|
-
|
|
857
|
+
type Size = "s" | "m" | "xs";
|
|
858
|
+
type Props = {
|
|
859
|
+
title?: ComponentChildren;
|
|
860
|
+
description?: ComponentChildren;
|
|
861
|
+
icon?: string;
|
|
862
|
+
iconColor?: "skat" | "aldebaran" | "castor" | "atlas" | "betelgeuse" | "sirius" | "antares" | "gliese" | "capella" | "rigel" | "mirach" | "rau";
|
|
863
|
+
fullHeight?: boolean;
|
|
864
|
+
size?: Size;
|
|
865
|
+
className?: string;
|
|
866
|
+
iconClassName?: string;
|
|
867
|
+
border?: boolean;
|
|
868
|
+
};
|
|
869
|
+
declare const EmptyView: FunctionalComponent<Props>;
|
|
870
|
+
|
|
871
|
+
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, useSuccessRateDistributionColors, useTheme, useTooltip };
|
|
823
872
|
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 };
|