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

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 (51) hide show
  1. package/dist/Common/AppStatus/constants.d.ts +0 -5
  2. package/dist/Common/CIPipeline.Types.d.ts +10 -0
  3. package/dist/Common/Constants.d.ts +0 -3
  4. package/dist/Common/Policy.Types.d.ts +0 -8
  5. package/dist/Common/Types.d.ts +1 -2
  6. package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +1 -1
  7. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +19 -1
  8. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +1 -0
  9. package/dist/Shared/Components/CICDHistory/DetectBottom.d.ts +4 -0
  10. package/dist/Shared/Components/CICDHistory/index.d.ts +1 -0
  11. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
  12. package/dist/Shared/Components/FilterChips/types.d.ts +2 -7
  13. package/dist/Shared/Components/Header/HeaderWithCreateButton/constants.d.ts +22 -0
  14. package/dist/Shared/Components/ReactSelect/utils.d.ts +1 -5
  15. package/dist/Shared/Components/index.d.ts +0 -2
  16. package/dist/Shared/constants.d.ts +1 -26
  17. package/dist/Shared/types.d.ts +2 -28
  18. package/dist/assets/index.css +1 -1
  19. package/dist/{cssMode-058ab96c.js → cssMode-cbedd8a5.js} +1 -1
  20. package/dist/{freemarker2-64197048.js → freemarker2-42e8940d.js} +1 -1
  21. package/dist/{handlebars-90c1751f.js → handlebars-21c8b0f1.js} +1 -1
  22. package/dist/{html-c30667e4.js → html-e6718bb8.js} +1 -1
  23. package/dist/{htmlMode-7a8b50c7.js → htmlMode-b99bd6a6.js} +1 -1
  24. package/dist/{index-e2376136.js → index-004e0b53.js} +25843 -26417
  25. package/dist/index.d.ts +1 -2
  26. package/dist/index.js +449 -464
  27. package/dist/{javascript-df1177dd.js → javascript-40bcb93e.js} +1 -1
  28. package/dist/{jsonMode-eb5f0a08.js → jsonMode-22ab6975.js} +1 -1
  29. package/dist/{liquid-4d1dbabc.js → liquid-d1a76932.js} +1 -1
  30. package/dist/{mdx-a79fb1a5.js → mdx-1b4f7156.js} +1 -1
  31. package/dist/{python-d2ee4285.js → python-74bc3a8b.js} +1 -1
  32. package/dist/{razor-4a83f7e4.js → razor-8ce699c5.js} +1 -1
  33. package/dist/{tsMode-6ddb6fc9.js → tsMode-0a290944.js} +1 -1
  34. package/dist/{typescript-5844ed4e.js → typescript-cd8838e3.js} +1 -1
  35. package/dist/{xml-bd63fabc.js → xml-15b56de5.js} +1 -1
  36. package/dist/{yaml-111cdabf.js → yaml-8821186a.js} +1 -1
  37. package/package.json +1 -1
  38. package/dist/Shared/Components/DetectBottom/DetectBottom.component.d.ts +0 -5
  39. package/dist/Shared/Components/DetectBottom/index.d.ts +0 -1
  40. package/dist/Shared/Components/Plugin/PluginCard.d.ts +0 -4
  41. package/dist/Shared/Components/Plugin/PluginCardSkeletonList.d.ts +0 -4
  42. package/dist/Shared/Components/Plugin/PluginImageContainer.d.ts +0 -4
  43. package/dist/Shared/Components/Plugin/PluginList.d.ts +0 -4
  44. package/dist/Shared/Components/Plugin/PluginListContainer.d.ts +0 -4
  45. package/dist/Shared/Components/Plugin/PluginTagSelect.d.ts +0 -4
  46. package/dist/Shared/Components/Plugin/PluginTagsContainer.d.ts +0 -4
  47. package/dist/Shared/Components/Plugin/constants.d.ts +0 -5
  48. package/dist/Shared/Components/Plugin/index.d.ts +0 -7
  49. package/dist/Shared/Components/Plugin/service.d.ts +0 -5
  50. package/dist/Shared/Components/Plugin/types.d.ts +0 -180
  51. package/dist/Shared/Components/Plugin/utils.d.ts +0 -20
@@ -4,11 +4,6 @@ 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
- };
12
7
  APP_STATUS: {
13
8
  noSpaceLower: string;
14
9
  normalText: string;
@@ -252,4 +252,14 @@ export interface FormErrorObjectType {
252
252
  steps: TaskErrorObj[];
253
253
  };
254
254
  }
255
+ export interface PluginDetailType {
256
+ id: number;
257
+ name: string;
258
+ type: string;
259
+ description: string;
260
+ icon: string;
261
+ tags: string[];
262
+ inputVariables?: VariableType[];
263
+ outputVariables?: VariableType[];
264
+ }
255
265
  export {};
@@ -75,9 +75,6 @@ export declare const ROUTES: {
75
75
  CONFIG_CD_PIPELINE: string;
76
76
  MODULE_CONFIGURED: string;
77
77
  RESOURCE_HISTORY_DEPLOYMENT: string;
78
- PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
79
- PLUGIN_GLOBAL_LIST_V2: string;
80
- PLUGIN_GLOBAL_LIST_TAGS: string;
81
78
  };
82
79
  export declare enum KEY_VALUE {
83
80
  KEY = "key",
@@ -1,6 +1,4 @@
1
- import { PluginDataStoreType } from '../Shared';
2
1
  import { VariableType } from './CIPipeline.Types';
3
- import { ServerErrors } from './ServerError';
4
2
  import { ResponseType } from './Types';
5
3
 
6
4
  export declare enum ApplyPolicyToStage {
@@ -26,7 +24,6 @@ export interface DefinitionSourceType {
26
24
  }
27
25
  export interface MandatoryPluginDetailType {
28
26
  id: number;
29
- parentPluginId: number;
30
27
  icon: string;
31
28
  name: string;
32
29
  description?: string;
@@ -41,11 +38,6 @@ export interface MandatoryPluginDataType {
41
38
  isValidPre: boolean;
42
39
  isValidPost: boolean;
43
40
  }
44
- export interface ProcessPluginDataReturnType {
45
- mandatoryPluginData: MandatoryPluginDataType;
46
- pluginDataStore: PluginDataStoreType;
47
- mandatoryPluginsError?: ServerErrors;
48
- }
49
41
  export declare enum ConsequenceAction {
50
42
  BLOCK = "BLOCK",
51
43
  ALLOW_UNTIL_TIME = "ALLOW_UNTIL_TIME",
@@ -488,8 +488,7 @@ export declare enum DeploymentAppTypes {
488
488
  HELM = "helm",
489
489
  GITOPS = "argo_cd",
490
490
  MANIFEST_DOWNLOAD = "manifest_download",
491
- MANIFEST_PUSH = "manifest_push",
492
- FLUX = "flux"
491
+ MANIFEST_PUSH = "manifest_push"
493
492
  }
494
493
  export interface VulnerabilityType {
495
494
  name: string;
@@ -1,3 +1,3 @@
1
1
  export * from './constants';
2
- export type { UserListFilterParams, UserRoleGroup } from './types';
2
+ export type { UserListFilterParams, BaseFilterQueryParams, UserRoleGroup } from './types';
3
3
  export * from './shared';
@@ -1,6 +1,24 @@
1
- import { BaseFilterQueryParams } from '../../../Shared';
1
+ import { SortingParams } from '../../../Common/Types';
2
2
  import { UserListSortableKeys, UserStatus } from './constants';
3
3
 
4
+ export type BaseFilterQueryParams<T> = {
5
+ /**
6
+ * Offset for the list result
7
+ */
8
+ offset?: number;
9
+ /**
10
+ * Number of items required in the list
11
+ */
12
+ size?: number;
13
+ /**
14
+ * Search string (if any)
15
+ */
16
+ searchKey?: string;
17
+ /**
18
+ * If true, all items are returned with any search / filtering applied without pagination
19
+ */
20
+ showAll?: boolean;
21
+ } & SortingParams<T>;
4
22
  export type UserListFilterParams = BaseFilterQueryParams<UserListSortableKeys> & {
5
23
  /**
6
24
  * Selected statuses (if any)
@@ -9,6 +9,7 @@ export interface ApiResourceGroupType {
9
9
  gvk: GVKType;
10
10
  namespaced: boolean;
11
11
  isGrouped?: boolean;
12
+ shortNames?: string[] | null;
12
13
  }
13
14
  export interface ApiResourceType {
14
15
  apiResources: ApiResourceGroupType[];
@@ -0,0 +1,4 @@
1
+ declare const DetectBottom: ({ callback }: {
2
+ callback: () => void;
3
+ }) => JSX.Element;
4
+ export default DetectBottom;
@@ -5,6 +5,7 @@ export { default as CDEmptyState } from './CDEmptyState';
5
5
  export { default as DeploymentStatusDetailBreakdown } from './DeploymentStatusBreakdown';
6
6
  export { default as AppStatusDetailsChart } from './AppStatusDetailsChart';
7
7
  export { default as DeploymentDetailSteps } from './DeploymentDetailSteps';
8
+ export { default as DetectBottom } from './DetectBottom';
8
9
  export * from './types';
9
10
  export * from './service';
10
11
  export * from './History.components';
@@ -3,5 +3,5 @@ import { FilterChipsProps } from './types';
3
3
  /**
4
4
  * Component for rendering the applied filter chips
5
5
  */
6
- declare const FilterChips: <T = Record<string, unknown>>({ filterConfig, clearFilters, onRemoveFilter, getFormattedLabel, getFormattedValue, className, clearButtonClassName, shouldHideLabel, }: FilterChipsProps<T>) => JSX.Element;
6
+ declare const FilterChips: <T = Record<string, unknown>>({ filterConfig, clearFilters, onRemoveFilter, getFormattedLabel, getFormattedValue, className, clearButtonClassName, }: FilterChipsProps<T>) => JSX.Element;
7
7
  export default FilterChips;
@@ -4,7 +4,7 @@ export interface FilterChipProps {
4
4
  /**
5
5
  * Filter label
6
6
  */
7
- label?: string;
7
+ label: string;
8
8
  /**
9
9
  * Corresponding value of the filter
10
10
  */
@@ -21,13 +21,8 @@ export interface FilterChipProps {
21
21
  * If passed, the label will be formatted accordingly
22
22
  */
23
23
  getFormattedValue?: (filterKey: string, filterValue: unknown) => ReactNode;
24
- /**
25
- * If true, would hide the label
26
- * @default false
27
- */
28
- shouldHideLabel?: boolean;
29
24
  }
30
- export interface FilterChipsProps<T = Record<string, unknown>> extends Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue' | 'shouldHideLabel'> {
25
+ export interface FilterChipsProps<T = Record<string, unknown>> extends Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue'> {
31
26
  /**
32
27
  * Current filter configuration
33
28
  */
@@ -0,0 +1,22 @@
1
+ declare const AppListConstants: {
2
+ SAMPLE_NODE_REPO_URL: string;
3
+ CREATE_DEVTRON_APP_URL: string;
4
+ AppTabs: {
5
+ DEVTRON_APPS: string;
6
+ HELM_APPS: string;
7
+ ARGO_APPS: string;
8
+ };
9
+ AppType: {
10
+ DEVTRON_APPS: string;
11
+ HELM_APPS: string;
12
+ ARGO_APPS: string;
13
+ };
14
+ FilterType: {
15
+ PROJECT: string;
16
+ CLUTSER: string;
17
+ NAMESPACE: string;
18
+ ENVIRONMENT: string;
19
+ APP_STATUS: string;
20
+ };
21
+ };
22
+ export default AppListConstants;
@@ -1,5 +1,4 @@
1
- import { MenuListProps, ValueContainerProps } from 'react-select';
2
- import { OptionType } from '../../../Common';
1
+ import { MenuListProps } from 'react-select';
3
2
 
4
3
  export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
5
4
  container: (base: any, state: any) => any;
@@ -34,6 +33,3 @@ export declare const commonSelectStyles: {
34
33
  export declare const MenuListWithApplyButton: ({ handleApplyFilter, ...props }: MenuListProps<unknown, boolean, import('react-select').GroupBase<unknown>> & {
35
34
  handleApplyFilter: () => void;
36
35
  }) => JSX.Element;
37
- export declare const MultiSelectValueContainer: ({ title, ...props }: ValueContainerProps<OptionType<string, string>, true, import('react-select').GroupBase<OptionType<string, string>>> & {
38
- title: string;
39
- }) => JSX.Element;
@@ -30,7 +30,5 @@ export * from './ImageChipCell';
30
30
  export * from './ArtifactInfoModal';
31
31
  export * from './MaterialHistory';
32
32
  export * from './IframeContainer';
33
- export * from './Plugin';
34
33
  export * from './KeyValueTable';
35
34
  export * from './SelectPicker';
36
- export * from './DetectBottom';
@@ -349,35 +349,10 @@ 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
- };
376
352
  export declare enum K8sResourcePayloadAppType {
377
353
  DEVTRON_APP = 0,
378
354
  HELM_APP = 1,
379
- EXTERNAL_ARGO_APP = 2,
380
- EXTERNAL_FLUX_APP = 3
355
+ EXTERNAL_ARGO_APP = 2
381
356
  }
382
357
  /**
383
358
  * Size variants for components
@@ -1,4 +1,4 @@
1
- import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams } from '../Common';
1
+ import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors } from '../Common';
2
2
  import { EnvironmentTypeEnum, PatchOperationType } from './constants';
3
3
 
4
4
  export declare enum EnvType {
@@ -124,8 +124,7 @@ 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",
128
- EXTERNAL_FLUX_APP = "external_flux_app"
127
+ EXTERNAL_ARGO_APP = "external_argo_app"
129
128
  }
130
129
  export interface HelmReleaseStatus {
131
130
  status: string;
@@ -141,11 +140,6 @@ interface MaterialInfo {
141
140
  url: string;
142
141
  webhookData: string;
143
142
  }
144
- export interface FluxAppStatusDetail {
145
- status: string;
146
- message: string;
147
- reason: string;
148
- }
149
143
  export interface AppDetails {
150
144
  appId?: number;
151
145
  appName: string;
@@ -187,8 +181,6 @@ export interface AppDetails {
187
181
  helmPackageName?: string;
188
182
  appStatus?: string;
189
183
  chartAvatar?: string;
190
- fluxTemplateType?: string;
191
- FluxAppStatusDetail?: FluxAppStatusDetail;
192
184
  }
193
185
  export declare enum RegistryType {
194
186
  GIT = "git",
@@ -530,22 +522,4 @@ export interface BatchConfigType {
530
522
  export interface scrollableInterface {
531
523
  autoBottomScroll: boolean;
532
524
  }
533
- export type BaseFilterQueryParams<T> = {
534
- /**
535
- * Offset for the list result
536
- */
537
- offset?: number;
538
- /**
539
- * Number of items required in the list
540
- */
541
- size?: number;
542
- /**
543
- * Search string (if any)
544
- */
545
- searchKey?: string;
546
- /**
547
- * If true, all items are returned with any search / filtering applied without pagination
548
- */
549
- showAll?: boolean;
550
- } & SortingParams<T>;
551
525
  export {};