@devtron-labs/devtron-fe-common-lib 0.4.0-patch-1 → 4.0.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.
Files changed (25) hide show
  1. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
  2. package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
  3. package/dist/Shared/Components/CICDHistory/types.d.ts +14 -2
  4. package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -0
  5. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +1 -1
  6. package/dist/Shared/Components/Security/utils.d.ts +1 -0
  7. package/dist/assets/index.css +1 -1
  8. package/dist/{cssMode-zy_eZXjb.js → cssMode-CUsbCqAK.js} +1 -1
  9. package/dist/{freemarker2-CZwk_XZV.js → freemarker2-DdlPBWeH.js} +1 -1
  10. package/dist/{handlebars-C99WQi52.js → handlebars-I8AU3wni.js} +1 -1
  11. package/dist/{html-XrThvtBe.js → html-Bb-6CXGT.js} +1 -1
  12. package/dist/{htmlMode-2UtuEei3.js → htmlMode-BHH3UyN-.js} +1 -1
  13. package/dist/{index-CTcxBJr3.js → index-Huj_UPmC.js} +22767 -22711
  14. package/dist/index.js +192 -190
  15. package/dist/{javascript-B9cmSzjk.js → javascript-Cp8f-boh.js} +1 -1
  16. package/dist/{jsonMode-CP4mWpU3.js → jsonMode-CI31wESU.js} +1 -1
  17. package/dist/{liquid-cZLNKXd0.js → liquid-DmgPaY22.js} +1 -1
  18. package/dist/{mdx-Co2TDSC2.js → mdx-Bg1Hnor0.js} +1 -1
  19. package/dist/{python-DNc78FUy.js → python-CBQrPJ5r.js} +1 -1
  20. package/dist/{razor-Dkokg8PU.js → razor-CVAY1Goi.js} +1 -1
  21. package/dist/{tsMode-3p4YcnJm.js → tsMode-CV4nfjTE.js} +1 -1
  22. package/dist/{typescript-BAiXq7nT.js → typescript-1vLwGoZB.js} +1 -1
  23. package/dist/{xml-BTIatdiA.js → xml-DbkmHRkP.js} +1 -1
  24. package/dist/{yaml-Din5arJ_.js → yaml-BFFlGLup.js} +1 -1
  25. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
1
  import { ArtifactType, CIListItemType } from './types';
2
2
  export declare const CIListItem: ({ type, userApprovalMetadata, triggeredBy, children, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, isSuperAdmin, promotionApprovalMetadata, appliedFiltersTimestamp, selectedEnvironmentName, renderCIListHeader, }: CIListItemType) => JSX.Element;
3
- declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, rootClassName, renderCIListHeader, }: ArtifactType) => JSX.Element;
3
+ declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, downloadArtifactUrl, ciPipelineId, artifactId, isJobCI, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, rootClassName, renderCIListHeader, }: ArtifactType) => JSX.Element;
4
4
  export default Artifacts;
@@ -1,3 +1,3 @@
1
1
  import { LogStageAccordionProps } from './types';
2
- declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView, }: LogStageAccordionProps) => JSX.Element;
2
+ declare const LogStageAccordion: ({ stage, isOpen, logs, endTime, startTime, status, handleStageClose, handleStageOpen, stageIndex, isLoading, fullScreenView, searchIndex, }: LogStageAccordionProps) => JSX.Element;
3
3
  export default LogStageAccordion;
@@ -497,9 +497,7 @@ export interface ArtifactType {
497
497
  blobStorageEnabled: boolean;
498
498
  isArtifactUploaded?: boolean;
499
499
  downloadArtifactUrl?: string;
500
- isJobView?: boolean;
501
500
  isJobCI?: boolean;
502
- type: HistoryComponentType;
503
501
  ciPipelineId?: number;
504
502
  artifactId?: number;
505
503
  imageComment?: ImageComment;
@@ -637,11 +635,25 @@ export interface LogStageAccordionProps extends StageDetailType, Pick<LogsRender
637
635
  * A stage is loading if it is last in current stage list and event is not closed
638
636
  */
639
637
  isLoading: boolean;
638
+ searchIndex: string;
640
639
  }
641
640
  export interface CreateMarkupReturnType {
642
641
  __html: string;
643
642
  isSearchKeyPresent: boolean;
644
643
  }
644
+ export type CreateMarkupPropsType = {
645
+ log: string;
646
+ currentIndex?: never;
647
+ targetSearchKey?: never;
648
+ searchMatchResults?: never;
649
+ searchIndex?: never;
650
+ } | {
651
+ log: string;
652
+ currentIndex: number;
653
+ targetSearchKey: string;
654
+ searchMatchResults: string[];
655
+ searchIndex: string;
656
+ };
645
657
  export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
646
658
  export declare const terminalStatus: Set<string>;
647
659
  export declare const statusSet: Set<string>;
@@ -5,3 +5,4 @@ export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any,
5
5
  export declare const renderIcon: (iconState: string) => JSX.Element;
6
6
  export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
7
7
  export declare const getTriggerStatusIcon: (triggerDetailStatus: string) => JSX.Element;
8
+ export declare const getLogSearchIndex: ({ stageIndex, lineNumberInsideStage, }: Record<"stageIndex" | "lineNumberInsideStage", number>) => string;
@@ -1,4 +1,4 @@
1
- import { AppEnvDeploymentConfigListParams, DeploymentConfigDiffProps } from '..';
1
+ import { DeploymentConfigDiffProps, AppEnvDeploymentConfigListParams } from '..';
2
2
  import { ConfigMapSecretDataConfigDatumDTO, TemplateListDTO } from '../../Services/app.types';
3
3
  /**
4
4
  * Retrieves the draft data from the given configuration data object.
@@ -2,3 +2,4 @@ import { SeverityCount } from '../../types';
2
2
  import { SeveritiesDTO } from './SecurityModal/types';
3
3
  export declare const getTotalSeverityCount: (severityCount: SeverityCount) => number;
4
4
  export declare const getSeverityCountFromSummary: (scanResultSeverities: Partial<Record<SeveritiesDTO, number>>) => SeverityCount;
5
+ export declare const getCVEUrlFromCVEName: (cveName: string) => string;