@devtron-labs/devtron-fe-common-lib 0.1.14-beta-2 → 0.1.14-beta-3

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 (33) hide show
  1. package/dist/Common/AppStatus/constants.d.ts +5 -0
  2. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  3. package/dist/Common/SearchBar/types.d.ts +1 -8
  4. package/dist/Common/Types.d.ts +2 -1
  5. package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -2
  6. package/dist/Shared/Components/CICDHistory/types.d.ts +0 -31
  7. package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -2
  8. package/dist/Shared/Helpers.d.ts +0 -2
  9. package/dist/Shared/constants.d.ts +26 -2
  10. package/dist/Shared/types.d.ts +9 -1
  11. package/dist/assets/index.css +1 -1
  12. package/dist/{cssMode-1a5fa0a2.js → cssMode-058ab96c.js} +1 -1
  13. package/dist/{freemarker2-a74f0d20.js → freemarker2-64197048.js} +1 -1
  14. package/dist/{handlebars-3bd3c224.js → handlebars-90c1751f.js} +1 -1
  15. package/dist/{html-a79d84df.js → html-c30667e4.js} +1 -1
  16. package/dist/{htmlMode-a9da4b11.js → htmlMode-7a8b50c7.js} +1 -1
  17. package/dist/{index-0c92e1fb.js → index-e2376136.js} +20218 -20470
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.js +237 -241
  20. package/dist/{javascript-692ccc23.js → javascript-df1177dd.js} +1 -1
  21. package/dist/{jsonMode-68c1772e.js → jsonMode-eb5f0a08.js} +1 -1
  22. package/dist/{liquid-1c1f95ee.js → liquid-4d1dbabc.js} +1 -1
  23. package/dist/{mdx-06f3004b.js → mdx-a79fb1a5.js} +1 -1
  24. package/dist/{python-3fc14037.js → python-d2ee4285.js} +1 -1
  25. package/dist/{razor-0ab97d76.js → razor-4a83f7e4.js} +1 -1
  26. package/dist/{tsMode-42e9e293.js → tsMode-6ddb6fc9.js} +1 -1
  27. package/dist/{typescript-66469124.js → typescript-5844ed4e.js} +1 -1
  28. package/dist/{xml-7f3ad51f.js → xml-bd63fabc.js} +1 -1
  29. package/dist/{yaml-44557f82.js → yaml-111cdabf.js} +1 -1
  30. package/package.json +1 -1
  31. package/dist/Common/SearchBar/utils.d.ts +0 -3
  32. package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +0 -4
  33. package/dist/Shared/Components/Header/HeaderWithCreateButton/constants.d.ts +0 -22
@@ -4,6 +4,11 @@ export declare const StatusConstants: {
4
4
  normalCase: string;
5
5
  lowerCase: string;
6
6
  };
7
+ NOT_READY: {
8
+ noSpaceLower: string;
9
+ normalCase: string;
10
+ lowerCase: string;
11
+ };
7
12
  APP_STATUS: {
8
13
  noSpaceLower: string;
9
14
  normalText: string;
@@ -34,5 +34,5 @@ import { SearchBarProps } from './types';
34
34
  * <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
35
35
  * ```
36
36
  */
37
- declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, size, }: SearchBarProps) => JSX.Element;
37
+ declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
38
38
  export default SearchBar;
@@ -1,5 +1,4 @@
1
- import { ComponentSizeType } from '../../Shared/constants';
2
-
1
+ /// <reference types="react" />
3
2
  export interface SearchBarProps {
4
3
  /**
5
4
  * Initial search text
@@ -41,10 +40,4 @@ export interface SearchBarProps {
41
40
  * Hide the background and border of the search
42
41
  */
43
42
  noBackgroundAndBorder?: boolean;
44
- /**
45
- * Height of the searchbar
46
- *
47
- * @default 'ComponentSizeType.medium'
48
- */
49
- size?: ComponentSizeType.medium | ComponentSizeType.large;
50
43
  }
@@ -488,7 +488,8 @@ export declare enum DeploymentAppTypes {
488
488
  HELM = "helm",
489
489
  GITOPS = "argo_cd",
490
490
  MANIFEST_DOWNLOAD = "manifest_download",
491
- MANIFEST_PUSH = "manifest_push"
491
+ MANIFEST_PUSH = "manifest_push",
492
+ FLUX = "flux"
492
493
  }
493
494
  export interface VulnerabilityType {
494
495
  name: string;
@@ -43,5 +43,3 @@ export declare const DEFAULT_ENV = "devtron-ci";
43
43
  export declare const LOGS_RETRY_COUNT = 3;
44
44
  export declare const DEPLOYMENT_STATUS_QUERY_PARAM = "deployment-status";
45
45
  export declare const MANIFEST_STATUS_HEADERS: string[];
46
- export declare const LOGS_STAGE_IDENTIFIER = "STAGE_INFO";
47
- export declare const LOGS_STAGE_STREAM_SEPARATOR = "|";
@@ -584,37 +584,6 @@ export interface TriggerHistoryFilterCriteriaProps {
584
584
  releaseId: number;
585
585
  showCurrentReleaseDeployments: boolean;
586
586
  }
587
- export declare enum StageStatusType {
588
- SUCCESS = "Success",
589
- FAILURE = "Failure",
590
- /**
591
- * Not given in API response
592
- */
593
- PROGRESSING = "Progressing"
594
- }
595
- export interface StageInfoDTO {
596
- stage: string;
597
- startTime: string;
598
- endTime?: string;
599
- status?: StageStatusType;
600
- }
601
- export interface StageDetailType extends Pick<StageInfoDTO, 'stage' | 'startTime' | 'endTime' | 'status'> {
602
- logs: string[];
603
- isOpen: boolean;
604
- }
605
- export interface LogStageAccordionProps extends StageDetailType {
606
- handleStageClose: (index: number) => void;
607
- handleStageOpen: (index: number) => void;
608
- stageIndex: number;
609
- /**
610
- * A stage is loading if it is last in current stage list and event is not closed
611
- */
612
- isLoading: boolean;
613
- }
614
- export interface CreateMarkupReturnType {
615
- __html: string;
616
- isSearchKeyPresent: boolean;
617
- }
618
587
  export type TriggerHistoryFilterCriteriaType = `${string}|${string}|${string}`[];
619
588
  export declare const terminalStatus: Set<string>;
620
589
  export declare const statusSet: Set<string>;
@@ -1,7 +1,6 @@
1
- import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType, StageStatusType } from './types';
1
+ import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType } from './types';
2
2
 
3
3
  export declare const getTriggerHistoryFilterCriteria: ({ appId, envId, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryFilterCriteriaProps) => TriggerHistoryFilterCriteriaType;
4
4
  export declare const getParsedTriggerHistory: (result: any) => DeploymentHistoryResultObject;
5
5
  export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any, selectors: any) => JSX.Element;
6
6
  export declare const renderIcon: (iconState: string) => JSX.Element;
7
- export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
@@ -32,7 +32,5 @@ export declare const renderValidInputButtonTippy: (children: ReactElement) => JS
32
32
  export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
33
33
  export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
34
34
  export declare const decode: (data: any, isEncoded?: boolean) => {};
35
- export declare const isTimeStringAvailable: (time: string) => boolean;
36
- export declare const getTimeDifference: (startTime: string, endTime: string) => string;
37
35
  export declare const getFileNameFromHeaders: (headers: Headers) => string;
38
36
  export {};
@@ -349,12 +349,36 @@ export declare const statusColor: {
349
349
  };
350
350
  export declare const APP_STATUS_HEADERS: string[];
351
351
  export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
352
+ export declare const AppListConstants: {
353
+ SAMPLE_NODE_REPO_URL: string;
354
+ CREATE_DEVTRON_APP_URL: string;
355
+ AppTabs: {
356
+ DEVTRON_APPS: string;
357
+ HELM_APPS: string;
358
+ ARGO_APPS: string;
359
+ FLUX_APPS: string;
360
+ };
361
+ AppType: {
362
+ DEVTRON_APPS: string;
363
+ HELM_APPS: string;
364
+ ARGO_APPS: string;
365
+ FLUX_APPS: string;
366
+ };
367
+ FilterType: {
368
+ PROJECT: string;
369
+ CLUTSER: string;
370
+ NAMESPACE: string;
371
+ ENVIRONMENT: string;
372
+ APP_STATUS: string;
373
+ TEMPLATE_TYPE: string;
374
+ };
375
+ };
352
376
  export declare enum K8sResourcePayloadAppType {
353
377
  DEVTRON_APP = 0,
354
378
  HELM_APP = 1,
355
- EXTERNAL_ARGO_APP = 2
379
+ EXTERNAL_ARGO_APP = 2,
380
+ EXTERNAL_FLUX_APP = 3
356
381
  }
357
- export declare const ANSI_UP_REGEX: RegExp;
358
382
  /**
359
383
  * Size variants for components
360
384
  */
@@ -124,7 +124,8 @@ export declare enum AppType {
124
124
  DEVTRON_APP = "devtron_app",
125
125
  DEVTRON_HELM_CHART = "devtron_helm_chart",
126
126
  EXTERNAL_HELM_CHART = "external_helm_chart",
127
- EXTERNAL_ARGO_APP = "external_argo_app"
127
+ EXTERNAL_ARGO_APP = "external_argo_app",
128
+ EXTERNAL_FLUX_APP = "external_flux_app"
128
129
  }
129
130
  export interface HelmReleaseStatus {
130
131
  status: string;
@@ -140,6 +141,11 @@ interface MaterialInfo {
140
141
  url: string;
141
142
  webhookData: string;
142
143
  }
144
+ export interface FluxAppStatusDetail {
145
+ status: string;
146
+ message: string;
147
+ reason: string;
148
+ }
143
149
  export interface AppDetails {
144
150
  appId?: number;
145
151
  appName: string;
@@ -181,6 +187,8 @@ export interface AppDetails {
181
187
  helmPackageName?: string;
182
188
  appStatus?: string;
183
189
  chartAvatar?: string;
190
+ fluxTemplateType?: string;
191
+ FluxAppStatusDetail?: FluxAppStatusDetail;
184
192
  }
185
193
  export declare enum RegistryType {
186
194
  GIT = "git",