@devtron-labs/devtron-fe-common-lib 4.0.3 → 4.0.4-pre-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.
@@ -0,0 +1,2 @@
1
+ import { i as e } from "./@vendor-DkID-52Z.js";
2
+ export { e as default };
@@ -0,0 +1,3 @@
1
+ import { LogStageHeaderProps } from './types';
2
+ declare const LogStageHeader: ({ stage, isOpen, status, startTime, endTime, targetPlatforms, stageIndex, fullScreenView, handleStageClose, handleStageOpen, logsRendererRef, applySticky, }: LogStageHeaderProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default LogStageHeader;
@@ -682,16 +682,25 @@ export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime
682
682
  isOpen: boolean;
683
683
  targetPlatforms?: StageInfoDTO['metadata']['targetPlatforms'];
684
684
  }
685
- export interface LogStageAccordionProps extends StageDetailType, Pick<LogsRendererType, 'fullScreenView'> {
685
+ export type LogVirtualItem = {
686
+ type: 'header';
687
+ stageIndex: number;
688
+ } | {
689
+ type: 'log';
690
+ stageIndex: number;
691
+ logIndex: number;
692
+ };
693
+ export interface LogStageHeaderProps extends Omit<StageDetailType, 'logs'>, Pick<LogsRendererType, 'fullScreenView'> {
686
694
  handleStageClose: (index: number) => void;
687
695
  handleStageOpen: (index: number) => void;
688
696
  stageIndex: number;
697
+ logsRendererRef: MutableRefObject<HTMLDivElement>;
689
698
  /**
690
- * A stage is loading if it is last in current stage list and event is not closed
699
+ * When false, the sticky CSS is not applied to the button.
700
+ * The virtual list wrapper div controls positioning instead.
701
+ * @default true
691
702
  */
692
- isLoading: boolean;
693
- searchIndex: string;
694
- logsRendererRef: MutableRefObject<HTMLDivElement>;
703
+ applySticky?: boolean;
695
704
  }
696
705
  export interface CreateMarkupReturnType {
697
706
  __html: string;
@@ -41,3 +41,4 @@ export declare const renderDeploymentTimelineIcon: (iconState: DeploymentStatusB
41
41
  export declare const getDeploymentTimelineBGColorFromIcon: (icon: DeploymentStatusBreakdownItemType["icon"]) => string;
42
42
  export declare const getTriggerOutputTabs: (triggerDetails: History, deploymentAppType: DeploymentAppTypes) => TabGroupProps["tabs"];
43
43
  export declare const getSortedTriggerHistory: (triggerHistory: Map<number, History>) => [number, History][];
44
+ export declare const findScrollableAncestor: (el: HTMLElement | null) => HTMLElement | null;
@@ -0,0 +1,2 @@
1
+ import { a as e } from "./@vendor-DkID-52Z.js";
2
+ export { e as default };