@allurereport/web-components 3.16.0 → 3.16.1

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
@@ -1,18 +1,15 @@
1
1
  import * as preact from 'preact';
2
2
  import { SVGAttributes, JSX, ComponentChild, Ref, FunctionalComponent, HTMLAttributes, VNode, ComponentChildren, FunctionComponent, ComponentProps } from 'preact';
3
- import { TextProps as TextProps$1 } from '@/components/Typography';
4
3
  import { Placement } from '@floating-ui/dom';
5
4
  import * as preact_compat from 'preact/compat';
6
5
  import { MutableRefObject, HTMLAttributes as HTMLAttributes$1, CSSProperties } from 'preact/compat';
7
6
  import { Signal } from '@preact/signals';
8
7
  import { AttachmentTestStepResult, DefaultTreeGroup, TestStatus, Statistic, TestStatusTransition, SeverityLevel, TestResult } from '@allurereport/core-api';
9
- import { Status as Status$1 } from 'global';
10
8
  import { AttachmentData, LangLocale, TreeMapTooltipAccessor } from '@allurereport/web-commons';
11
9
  import { Options } from 'sortablejs';
12
10
  import { ChartMode, PieChartValues, TreeMapNode, ChartType, StabilityDistributionChartData, TestBaseGrowthDynamicsChartData, StatusAgePyramidChartData, StatusTransitionsChartData, DurationsChartData, TrSeveritiesChartData, DurationDynamicsChartData } from '@allurereport/charts-api';
13
- import { Serie as Serie$1 } from '@/components/Charts/TrendChart';
14
11
  import { AxisProps } from '@nivo/axes';
15
- import { Datum as Datum$1, LineSvgProps, Point, Serie as Serie$2 } from '@nivo/line';
12
+ import { Datum as Datum$1, LineSvgProps, Point, Serie as Serie$1 } from '@nivo/line';
16
13
  import { ScaleSymlogSpec, ScaleSpec } from '@nivo/scales';
17
14
  import { Margin } from '@nivo/core';
18
15
  import { LegendProps, AnchoredContinuousColorsLegendProps } from '@nivo/legends';
@@ -184,7 +181,7 @@ type HeadingProps = {
184
181
  } & Omit<HTMLAttributes, "size" | "className" | "tag">;
185
182
  declare const Heading: FunctionalComponent<HeadingProps>;
186
183
 
187
- type LinkifiedTextProps<Tag extends keyof preact.JSX.IntrinsicElements = "span"> = Omit<TextProps$1<Tag>, "children"> & {
184
+ type LinkifiedTextProps<Tag extends keyof preact.JSX.IntrinsicElements = "span"> = Omit<TextProps<Tag>, "children"> & {
188
185
  text: string;
189
186
  };
190
187
  declare const LinkifiedText: <Tag extends keyof preact.JSX.IntrinsicElements = "span">({ text, ...textProps }: LinkifiedTextProps<Tag>) => preact.JSX.Element;
@@ -395,7 +392,7 @@ interface TreeStatusBarProps {
395
392
  maxWidth?: number;
396
393
  minWidth?: number;
397
394
  offset?: number;
398
- statusFilter?: Status$1;
395
+ statusFilter?: Status;
399
396
  }
400
397
  declare const TreeStatusBar: FunctionalComponent<TreeStatusBarProps>;
401
398
 
@@ -561,38 +558,11 @@ type Props$b = {
561
558
  };
562
559
  declare const IconLabel: FunctionalComponent<Props$b>;
563
560
 
564
- interface TrendChartWidgetPropsTranslations {
565
- "no-results": string;
566
- }
567
- interface TrendChartWidgetProps<TSlice = {
568
- metadata: {
569
- executionId: string;
570
- };
571
- }> {
572
- title: string;
573
- mode: ChartMode;
574
- items: readonly Serie$1[];
575
- slices: readonly TSlice[];
576
- min: number;
577
- max: number;
578
- height?: CSSProperties["height"];
579
- width?: CSSProperties["width"];
580
- rootAriaLabel?: string;
581
- translations: TrendChartWidgetPropsTranslations;
582
- dropShadow?: boolean;
583
- }
584
- declare const TrendChartWidget: ({ title, mode, items, slices, min, max, height, width, rootAriaLabel, translations, }: TrendChartWidgetProps) => preact_compat.JSX.Element;
585
-
586
- type SuccessRatePieChartProps = PieChartValues & {
587
- className?: string;
588
- };
589
- declare const SuccessRatePieChart: ({ slices, percentage, className }: SuccessRatePieChartProps) => preact.JSX.Element;
590
-
591
561
  type Datum = Omit<Datum$1, "x" | "y"> & {
592
562
  x: string | number | Date;
593
563
  y: number;
594
564
  };
595
- type Serie = Omit<Serie$2, "id" | "data"> & {
565
+ type Serie = Omit<Serie$1, "id" | "data"> & {
596
566
  id: string | number;
597
567
  data: readonly Datum[];
598
568
  };
@@ -649,6 +619,33 @@ declare const defaultTrendChartConfig: Partial<LineSvgProps>;
649
619
  declare const makeSymlogScale: (min: number, max: number, options?: SymlogScaleOptions) => ScaleSymlogSpec;
650
620
  declare const makeSymlogScaleBySeries: (series: Serie[], options?: SymlogScaleOptions) => ScaleSymlogSpec;
651
621
 
622
+ interface TrendChartWidgetPropsTranslations {
623
+ "no-results": string;
624
+ }
625
+ interface TrendChartWidgetProps<TSlice = {
626
+ metadata: {
627
+ executionId: string;
628
+ };
629
+ }> {
630
+ title: string;
631
+ mode: ChartMode;
632
+ items: readonly Serie[];
633
+ slices: readonly TSlice[];
634
+ min: number;
635
+ max: number;
636
+ height?: CSSProperties["height"];
637
+ width?: CSSProperties["width"];
638
+ rootAriaLabel?: string;
639
+ translations: TrendChartWidgetPropsTranslations;
640
+ dropShadow?: boolean;
641
+ }
642
+ declare const TrendChartWidget: ({ title, mode, items, slices, min, max, height, width, rootAriaLabel, translations, }: TrendChartWidgetProps) => preact_compat.JSX.Element;
643
+
644
+ type SuccessRatePieChartProps = PieChartValues & {
645
+ className?: string;
646
+ };
647
+ declare const SuccessRatePieChart: ({ slices, percentage, className }: SuccessRatePieChartProps) => preact.JSX.Element;
648
+
652
649
  type ResponsiveTreeChartProps<Datum extends DefaultTreeMapDatum = TreeMapNode> = Omit<TreeMapSvgProps<Datum>, "width" | "height">;
653
650
  interface ParentLabelControlOptions {
654
651
  parentSkipSize?: number;