@devtron-labs/devtron-fe-common-lib 1.22.8-beta-8 → 1.22.8-beta-9

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 (35) hide show
  1. package/dist/{@code-editor-DJ1n-oj-.js → @code-editor-BQuL3MJ4.js} +11656 -10935
  2. package/dist/{@common-rjsf-vUb-HzVA.js → @common-rjsf-D0gZheG0.js} +18 -18
  3. package/dist/{@framer-motion-CQJaLnQR.js → @framer-motion-F-ZV0kPL.js} +64 -64
  4. package/dist/{@react-select-D9YraDtb.js → @react-select-CTafio-F.js} +1 -1
  5. package/dist/{@react-virtualized-sticky-tree-CcQpKMGh.js → @react-virtualized-sticky-tree-DX-A0tLR.js} +1 -1
  6. package/dist/{@vendor-BPy92aLm.js → @vendor-zzMkp5ik.js} +17750 -17707
  7. package/dist/Common/BreadCrumb/BreadCrumb.d.ts +1 -1
  8. package/dist/Common/BreadCrumb/Types.d.ts +1 -0
  9. package/dist/Common/Constants.d.ts +2 -71
  10. package/dist/Common/Types.d.ts +81 -75
  11. package/dist/Pages/GlobalConfigurations/ScopedVariables/types.d.ts +2 -2
  12. package/dist/Pages/ResourceBrowser/constants.d.ts +0 -10
  13. package/dist/Pages-Devtron-2.0/InfrastructureManagement/utils.d.ts +1 -1
  14. package/dist/Pages-Devtron-2.0/Shared/Routes/index.d.ts +1 -0
  15. package/dist/Pages-Devtron-2.0/Shared/Routes/routes.d.ts +563 -0
  16. package/dist/Pages-Devtron-2.0/Shared/index.d.ts +1 -0
  17. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +1 -1
  18. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiff.d.ts +1 -1
  19. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +1 -1
  20. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +6 -6
  21. package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +1 -1
  22. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
  23. package/dist/Shared/Components/CICDHistory/types.d.ts +8 -6
  24. package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +1 -2
  25. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
  26. package/dist/Shared/Components/FeatureDescription/types.d.ts +7 -2
  27. package/dist/Shared/Components/Header/HeaderWithCreateButton/utils.d.ts +1 -1
  28. package/dist/Shared/Components/LoginBanner/types.d.ts +1 -1
  29. package/dist/Shared/Components/Plugin/types.d.ts +2 -2
  30. package/dist/Shared/Helpers.d.ts +0 -10
  31. package/dist/Shared/Hooks/UsePrompt/UsePrompt.d.ts +1 -2
  32. package/dist/Shared/Hooks/UsePrompt/types.d.ts +1 -0
  33. package/dist/Shared/types.d.ts +2 -2
  34. package/dist/index.js +1011 -1136
  35. package/package.json +2 -3
@@ -183,8 +183,9 @@ export interface SidebarType extends RenderRunSourceType {
183
183
  handleViewAllHistory?: () => void;
184
184
  children?: React.ReactNode;
185
185
  resourceId?: number;
186
+ path: string;
186
187
  }
187
- export interface HistorySummaryCardType extends RenderRunSourceType, Pick<History, 'workflowExecutionStages' | 'podName' | 'namespace'> {
188
+ export interface HistorySummaryCardType extends RenderRunSourceType, Pick<History, 'workflowExecutionStages' | 'podName' | 'namespace'>, Pick<SidebarType, 'path'> {
188
189
  id: number;
189
190
  status: string;
190
191
  startedOn: string;
@@ -278,10 +279,10 @@ export interface ResourceConflictDeployDialogProps extends ResourceConflictDialo
278
279
  }
279
280
  export interface ResourceConflictDetailsModalProps extends ResourceConflictDialogBaseProps {
280
281
  }
281
- export interface TriggerOutputURLParamsType extends Pick<BaseURLParams, 'appId' | 'envId'> {
282
+ export type TriggerOutputURLParamsType = Pick<BaseURLParams, 'appId' | 'envId'> & {
282
283
  triggerId: string;
283
284
  pipelineId: string;
284
- }
285
+ };
285
286
  export type ProgressingStatusType = {
286
287
  stage: DeploymentStageType;
287
288
  type: HistoryComponentType;
@@ -407,8 +408,9 @@ export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDet
407
408
  setTriggerHistory: React.Dispatch<React.SetStateAction<Map<Number, History>>>;
408
409
  scrollToTop: ReturnType<typeof useScrollable>[1];
409
410
  scrollToBottom: ReturnType<typeof useScrollable>[2];
411
+ pathPattern: string;
410
412
  }
411
- export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView' | 'appName' | 'triggerHistory'>, Pick<TargetPlatformBadgeListProps, 'targetPlatforms'> {
413
+ export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView' | 'appName' | 'triggerHistory' | 'pathPattern'>, Pick<TargetPlatformBadgeListProps, 'targetPlatforms'> {
412
414
  triggerDetails: History;
413
415
  loading: boolean;
414
416
  userApprovalMetadata: UserApprovalMetadataType;
@@ -642,11 +644,11 @@ export interface ModuleConfigResponse extends ResponseType {
642
644
  enabled: boolean;
643
645
  };
644
646
  }
645
- export interface DeploymentHistoryBaseParamsType {
647
+ export type DeploymentHistoryBaseParamsType = {
646
648
  appId: string;
647
649
  envId: string;
648
650
  pipelineId: string;
649
- }
651
+ };
650
652
  export interface TriggerHistoryParamsType {
651
653
  appId: number;
652
654
  envId: number;
@@ -1,5 +1,4 @@
1
1
  import { default as React } from 'react';
2
- import { NavLinkProps } from 'react-router-dom';
3
2
  import { TippyProps } from '@tippyjs/react';
4
3
  interface ButtonTab {
5
4
  /**
@@ -12,7 +11,7 @@ interface ButtonTab {
12
11
  onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
13
12
  href?: never;
14
13
  }
15
- interface NavLinkTab extends Pick<NavLinkProps, 'isActive'> {
14
+ interface NavLinkTab {
16
15
  /**
17
16
  * The URL of the nav link.
18
17
  */
@@ -1,3 +1,3 @@
1
1
  import { DescriptorProps } from './types';
2
- declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, tabsConfig, }: DescriptorProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, pathPattern, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, tabsConfig, }: DescriptorProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default FeatureTitleWithInfo;
@@ -40,7 +40,6 @@ export type FeatureDescriptionModalProps = {
40
40
  export type DescriptorProps = ((Omit<FeatureDescriptionModalProps, 'tabsConfig'> & {
41
41
  tabsConfig?: never;
42
42
  }) | (Pick<FeatureDescriptionModalProps, 'title' | 'closeModalText' | 'closeModal'> & FeatureDescriptionModalWithTabsConfig)) & {
43
- breadCrumbs?: Breadcrumb[];
44
43
  additionalContainerClasses?: string;
45
44
  iconClassName?: string;
46
45
  children?: React.ReactNode;
@@ -54,5 +53,11 @@ export type DescriptorProps = ((Omit<FeatureDescriptionModalProps, 'tabsConfig'>
54
53
  * @default false
55
54
  */
56
55
  showInfoIcon?: boolean;
57
- };
56
+ } & ({
57
+ breadCrumbs: Breadcrumb[];
58
+ pathPattern: string;
59
+ } | {
60
+ breadCrumbs?: never;
61
+ pathPattern?: never;
62
+ });
58
63
  export {};
@@ -1,2 +1,2 @@
1
1
  import { CreateActionMenuProps } from './types';
2
- export declare const getCreateActionMenuOptions: (createCustomAppURL: string) => CreateActionMenuProps["options"];
2
+ export declare const getCreateActionMenuOptions: (createCustomAppURL: string, createJobURL: string) => CreateActionMenuProps["options"];
@@ -1,4 +1,4 @@
1
- import { IconsProps } from 'src';
1
+ import { IconsProps } from '../Icon';
2
2
  export interface TestimonialCardConfig {
3
3
  quote: string;
4
4
  name: string;
@@ -143,9 +143,9 @@ export interface GetPluginStoreDataReturnType {
143
143
  */
144
144
  parentPluginIdList: number[];
145
145
  }
146
- export interface PluginListParamsType {
146
+ export type PluginListParamsType = {
147
147
  appId?: string;
148
- }
148
+ };
149
149
  export interface PluginTagSelectProps extends Pick<BasePluginListContainerProps, 'availableTags'> {
150
150
  selectedTags: PluginListContainerProps['parentFilters']['selectedTags'];
151
151
  isLoading: boolean;
@@ -1,5 +1,4 @@
1
1
  import { ReactElement } from 'react';
2
- import { PromptProps } from 'react-router-dom';
3
2
  import { StrictRJSFSchema } from '@rjsf/utils';
4
3
  import { Pair } from 'yaml';
5
4
  import { MaterialHistoryType } from './Services/app.types';
@@ -83,15 +82,6 @@ export declare const getLowerCaseObject: (input: any) => Record<string, any>;
83
82
  */
84
83
  export declare const getWebhookDate: (materialSourceType: string, history: MaterialHistoryType) => string;
85
84
  export declare const getUniqueId: (size?: number) => string;
86
- /**
87
- * Checks if the provided pathname matches the current path.
88
- * If the paths do not match, returns a custom message or a default unsaved changes prompt.
89
- *
90
- * @param currentPathName - The current path to compare against.
91
- * @param customMessage - Optional custom message to display when the path does not match.
92
- * @returns A function that takes an object with a `pathname` property and performs the path match check.
93
- */
94
- export declare const checkIfPathIsMatching: (currentPathName: string, customMessage?: string) => PromptProps["message"];
95
85
  export declare const sanitizeTargetPlatforms: (targetPlatforms: TargetPlatformsDTO["targetPlatforms"]) => TargetPlatformItemDTO[];
96
86
  export declare const isAWSCodeCommitURL: (url?: string) => boolean;
97
87
  export declare const renderMaterialIcon: (url?: string) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import { UsePromptProps } from './types';
2
2
  /**
3
3
  * Hook that shows a prompt when shouldPrompt is true and the user tries to leave the page through refresh
4
- * Meant to be used alongside the Prompt component from react-router-dom
5
4
  */
6
- declare const usePrompt: ({ shouldPrompt }: UsePromptProps) => void;
5
+ declare const usePrompt: ({ shouldPrompt, message }: UsePromptProps) => void;
7
6
  export default usePrompt;
@@ -3,4 +3,5 @@ export interface UsePromptProps {
3
3
  * If true the prompt will be shown
4
4
  */
5
5
  shouldPrompt: boolean;
6
+ message?: string;
6
7
  }
@@ -808,11 +808,11 @@ export declare enum ConfigurationType {
808
808
  YAML = "YAML"
809
809
  }
810
810
  export declare const CONFIGURATION_TYPE_OPTIONS: SegmentedControlProps['segments'];
811
- export interface BaseURLParams {
811
+ export type BaseURLParams = {
812
812
  appId: string;
813
813
  envId: string;
814
814
  clusterId: string;
815
- }
815
+ };
816
816
  export interface ConfigKeysWithLockType {
817
817
  config: string[];
818
818
  allowed: boolean;