@devtron-labs/devtron-fe-common-lib 4.0.3-pre-0 → 4.0.4-beta-7

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 (26) hide show
  1. package/dist/{@code-editor-BAM7bZOw.js → @code-editor-4keS1ui9.js} +5655 -5642
  2. package/dist/{@common-rjsf-Bx2aOoF1.js → @common-rjsf-C12bilas.js} +1 -1
  3. package/dist/{@framer-motion-CJHeDr_5.js → @framer-motion-9OnGIldd.js} +1 -1
  4. package/dist/{@react-virtualized-sticky-tree-Cru7sOnT.js → @react-virtualized-sticky-tree-DuQuwpDQ.js} +2 -2
  5. package/dist/{@src-assets-images-B2NAtpLS.js → @src-assets-images-C01y139Z.js} +1 -1
  6. package/dist/{@vendor-M2R6W7KJ.js → @vendor-DiDi07uf.js} +9805 -9287
  7. package/dist/MMQ4R4NB-Dw3cg-Y2.js +2 -0
  8. package/dist/Pages-Devtron-2.0/Navigation/types.d.ts +9 -4
  9. package/dist/Pages-Devtron-2.0/Shared/Routes/routes.d.ts +4 -0
  10. package/dist/Shared/Components/CICDHistory/LogStageHeader.d.ts +3 -0
  11. package/dist/Shared/Components/CICDHistory/types.d.ts +14 -5
  12. package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -0
  13. package/dist/Shared/Components/Icon/Icon.d.ts +1 -0
  14. package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
  15. package/dist/V4HPSUGU-CO2iPsNd.js +2 -0
  16. package/dist/index.js +3278 -3178
  17. package/dist/javascript-C-X6C9Ci.js +2 -0
  18. package/dist/vitesse-dark-D8q2y_gA.js +2 -0
  19. package/dist/vitesse-light-Dzlg7UH1.js +2 -0
  20. package/package.json +2 -1
  21. package/dist/MMQ4R4NB-C7ZzhIbi.js +0 -2
  22. package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +0 -3
  23. package/dist/V4HPSUGU-BVMnhgRJ.js +0 -2
  24. package/dist/javascript-CP782ZPa.js +0 -2
  25. package/dist/vitesse-dark-XJRLdhTE.js +0 -2
  26. package/dist/vitesse-light-DS2ELujL.js +0 -2
@@ -0,0 +1,2 @@
1
+ import { i as e } from "./@vendor-DiDi07uf.js";
2
+ export { e as default };
@@ -2,7 +2,7 @@ import { IconsProps } from '../../Shared/Components';
2
2
  import { customEnv, Never } from '../../Shared/types';
3
3
  export type NavigationItemID = 'application-management-overview' | 'application-management-devtron-applications' | 'application-management-application-groups' | 'application-management-bulk-edit' | 'application-management-application-templates' | 'application-management-configurations' | 'application-management-policies' | 'infrastructure-management-overview' | 'infrastructure-management-applications' | 'infrastructure-management-chart-store' | 'infrastructure-management-resource-browser' | 'infrastructure-management-resource-watcher' | 'infrastructure-management-catalog-framework' | 'software-release-management-overview' | 'software-release-management-release-hub' | 'software-release-management-tenants' | 'cost-visibility-overview' | 'cost-visibility-cost-breakdown' | 'cost-visibility-configurations' | 'security-center-overview' | 'security-center-security-vulnerabilities' | 'security-center-security-enablement' | 'security-center-security-policy' | 'automation-and-enablement-jobs' | 'automation-and-enablement-alerting' | 'automation-and-enablement-incident-response' | 'automation-and-enablement-api-portal' | 'global-configuration-sso-login-services' | 'global-configuration-host-urls' | 'global-configuration-external-links' | 'global-configuration-chart-repository' | 'global-configuration-cluster-and-environments' | 'global-configuration-container-oci-registry' | 'global-configuration-authorization' | 'global-configuration-projects' | 'data-protection-overview' | 'data-protection-backup-and-schedule' | 'data-protection-restores' | 'data-protection-backup-repositories' | 'data-protection-backup-locations' | 'data-protection-history-and-logs';
4
4
  export type NavigationSubMenuItemID = 'application-management-configurations-gitops' | 'application-management-configurations-git-accounts' | 'application-management-configurations-deployment-charts' | 'application-management-configurations-notifications' | 'application-management-configurations-catalog-frameworks' | 'application-management-configurations-scoped-variables' | 'application-management-configurations-build-infra' | 'application-management-policies-deployment-window' | 'application-management-policies-approval-policy' | 'application-management-policies-plugin-policy' | 'application-management-policies-pull-image-digest' | 'application-management-policies-tag-policy' | 'application-management-policies-filter-conditions' | 'application-management-policies-image-promotion' | 'application-management-policies-lock-deployment-configuration' | 'cost-visibility-cost-breakdown-clusters' | 'cost-visibility-cost-breakdown-environments' | 'cost-visibility-cost-breakdown-projects' | 'cost-visibility-cost-breakdown-applications' | 'global-configuration-authorization-user-permissions' | 'global-configuration-authorization-permission-groups' | 'global-configuration-authorization-user-groups' | 'global-configuration-authorization-api-tokens';
5
- export type NavigationRootItemID = 'application-management' | 'infrastructure-management' | 'software-release-management' | 'cost-visibility' | 'security-center' | 'automation-and-enablement' | 'data-protection-management' | 'global-configuration';
5
+ export type NavigationRootItemID = 'application-management' | 'infrastructure-management' | 'software-release-management' | 'cost-visibility' | 'security-center' | 'automation-and-enablement' | 'data-protection-management' | 'global-configuration' | 'audit-logs';
6
6
  export type CommonNavigationItemType = {
7
7
  title: string;
8
8
  dataTestId: string;
@@ -25,8 +25,13 @@ export type NavigationItemType = Pick<CommonNavigationItemType, 'dataTestId' | '
25
25
  id: NavigationSubMenuItemID;
26
26
  })[];
27
27
  }));
28
- export interface NavigationGroupType extends Pick<CommonNavigationItemType, 'title' | 'icon' | 'hideNav' | 'forceHideEnvKey' | 'isAvailableInEA'> {
28
+ export type NavigationGroupType = Pick<CommonNavigationItemType, 'title' | 'icon' | 'hideNav' | 'forceHideEnvKey' | 'isAvailableInEA'> & {
29
29
  id: NavigationRootItemID;
30
- items: NavigationItemType[];
31
30
  disabled?: boolean;
32
- }
31
+ } & ({
32
+ items: NavigationItemType[];
33
+ href?: never;
34
+ } | {
35
+ items?: never;
36
+ href: string;
37
+ });
@@ -271,6 +271,9 @@ export declare const BASE_ROUTES: {
271
271
  readonly DETAIL: ":locationId";
272
272
  };
273
273
  };
274
+ readonly AUDIT_LOGS: {
275
+ readonly ROOT: "audit-logs";
276
+ };
274
277
  readonly GLOBAL_CONFIG: {
275
278
  readonly ROOT: "global-configuration";
276
279
  readonly HOST_URL: "host-url";
@@ -535,6 +538,7 @@ export declare const ROUTER_URLS: {
535
538
  readonly DATA_PROTECTION_MANAGEMENT_RESTORES_DETAIL: "/data-protection-management/restores/:restoreId";
536
539
  readonly DATA_PROTECTION_MANAGEMENT_BACKUP_LOCATIONS: "/data-protection-management/backup-locations/:type";
537
540
  readonly DATA_PROTECTION_MANAGEMENT_BACKUP_LOCATIONS_DETAIL: "/data-protection-management/backup-locations/:type/:locationId";
541
+ readonly AUDIT_LOGS: "/audit-logs";
538
542
  readonly GLOBAL_CONFIG_HOST_URL: "/global-configuration/host-url";
539
543
  readonly GLOBAL_CONFIG_EXTERNAL_LINKS: "/global-configuration/external-links";
540
544
  readonly GLOBAL_CONFIG_CHART_REPOSITORIES: "/global-configuration/chart-repositories";
@@ -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;
@@ -148,6 +148,7 @@ export declare const iconMap: {
148
148
  'ic-file-download': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
149
149
  'ic-file-edit': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
150
150
  'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
151
+ 'ic-file-log-search': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
151
152
  'ic-file': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
152
153
  'ic-files-changed': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
153
154
  'ic-files': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,7 +1,7 @@
1
1
  import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
2
2
  import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '../../Providers/ThemeProvider/types';
3
3
  import { ResourceKindType } from '../../types';
4
- import { NavigationItemID, NavigationSubMenuItemID } from '../../../Pages-Devtron-2.0/Navigation';
4
+ import { NavigationItemID, NavigationRootItemID, NavigationSubMenuItemID } from '../../../Pages-Devtron-2.0/Navigation';
5
5
  export interface GetUserPreferencesQueryParamsType {
6
6
  key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
7
7
  }
@@ -40,7 +40,7 @@ export interface GetUserPreferencesParsedDTO {
40
40
  resources?: UserPreferenceResourceType;
41
41
  commandBar: {
42
42
  recentNavigationActions: {
43
- id: NavigationItemID | NavigationSubMenuItemID | CommandBarAdditionalItemsId;
43
+ id: NavigationItemID | NavigationRootItemID | NavigationSubMenuItemID | CommandBarAdditionalItemsId;
44
44
  }[];
45
45
  };
46
46
  }
@@ -0,0 +1,2 @@
1
+ import { a as e } from "./@vendor-DiDi07uf.js";
2
+ export { e as default };