@devtron-labs/devtron-fe-common-lib 0.1.15-beta-9 → 0.1.15-beta-18

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 (37) hide show
  1. package/dist/Common/Constants.d.ts +0 -2
  2. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
  3. package/dist/Shared/Components/FilterChips/types.d.ts +6 -18
  4. package/dist/Shared/Components/GitCommitInfoGeneric/GitMaterialInfoHeader.d.ts +1 -0
  5. package/dist/Shared/Components/GitCommitInfoGeneric/constants.d.ts +4 -0
  6. package/dist/Shared/Components/MaterialHistory/MaterialHistory.component.d.ts +1 -1
  7. package/dist/Shared/Components/MaterialHistory/types.d.ts +1 -0
  8. package/dist/Shared/Hooks/index.d.ts +0 -1
  9. package/dist/Shared/Services/common.service.d.ts +2 -3
  10. package/dist/Shared/Services/types.d.ts +4 -15
  11. package/dist/Shared/constants.d.ts +0 -9
  12. package/dist/Shared/types.d.ts +1 -7
  13. package/dist/assets/index.css +1 -1
  14. package/dist/{cssMode-3e6ec700.js → cssMode-d2c005a3.js} +1 -1
  15. package/dist/{freemarker2-5b5ee393.js → freemarker2-baf01dce.js} +1 -1
  16. package/dist/{handlebars-bf398b6d.js → handlebars-244472df.js} +1 -1
  17. package/dist/{html-b35def4f.js → html-dbe85e28.js} +1 -1
  18. package/dist/{htmlMode-48e61b21.js → htmlMode-322d33fc.js} +1 -1
  19. package/dist/{index-109adc1e.js → index-ffb8e3f2.js} +19867 -19873
  20. package/dist/index.d.ts +0 -1
  21. package/dist/index.js +280 -284
  22. package/dist/{javascript-27a2b43d.js → javascript-08f36b2f.js} +1 -1
  23. package/dist/{jsonMode-950b6194.js → jsonMode-1581651d.js} +1 -1
  24. package/dist/{liquid-c64aed12.js → liquid-8186f4dd.js} +1 -1
  25. package/dist/{mdx-479da7c4.js → mdx-e44e6791.js} +1 -1
  26. package/dist/{python-7b9f7243.js → python-6d38169d.js} +1 -1
  27. package/dist/{razor-7aeb2aac.js → razor-db112cf2.js} +1 -1
  28. package/dist/{tsMode-43b9c3bb.js → tsMode-e7293cd7.js} +1 -1
  29. package/dist/{typescript-1166a256.js → typescript-92fd8874.js} +1 -1
  30. package/dist/{xml-8a093524.js → xml-69f459f4.js} +1 -1
  31. package/dist/{yaml-0ad40107.js → yaml-0cd8e170.js} +1 -1
  32. package/package.json +1 -1
  33. package/dist/Shared/Hooks/useGetResourceKindsOptions/index.d.ts +0 -2
  34. package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +0 -9
  35. package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +0 -31
  36. package/dist/Shared/Hooks/useGetResourceKindsOptions/useGetResourceKindsOptions.d.ts +0 -16
  37. package/dist/Shared/Hooks/useGetResourceKindsOptions/utils.d.ts +0 -4
@@ -75,8 +75,6 @@ export declare const ROUTES: {
75
75
  CONFIG_CD_PIPELINE: string;
76
76
  MODULE_CONFIGURED: string;
77
77
  RESOURCE_HISTORY_DEPLOYMENT: string;
78
- APP_LIST_MIN: string;
79
- CLUSTER_LIST_MIN: string;
80
78
  PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
81
79
  PLUGIN_GLOBAL_LIST_V2: string;
82
80
  PLUGIN_GLOBAL_LIST_TAGS: string;
@@ -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, showClearAndRemove, shouldHideLabel, }: FilterChipsProps<T>) => JSX.Element;
6
+ declare const FilterChips: <T = Record<string, unknown>>({ filterConfig, clearFilters, onRemoveFilter, getFormattedLabel, getFormattedValue, className, clearButtonClassName, shouldHideLabel, }: FilterChipsProps<T>) => JSX.Element;
7
7
  export default FilterChips;
@@ -21,33 +21,17 @@ export interface FilterChipProps {
21
21
  * If passed, the label will be formatted accordingly
22
22
  */
23
23
  getFormattedValue?: (filterKey: string, filterValue: unknown) => ReactNode;
24
- showRemoveIcon: boolean;
25
24
  /**
26
25
  * If true, would hide the label
27
26
  * @default false
28
27
  */
29
28
  shouldHideLabel?: boolean;
30
29
  }
31
- export type FilterChipsProps<T = Record<string, unknown>> = Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue' | 'shouldHideLabel'> & {
30
+ export interface FilterChipsProps<T = Record<string, unknown>> extends Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue' | 'shouldHideLabel'> {
32
31
  /**
33
32
  * Current filter configuration
34
33
  */
35
34
  filterConfig: T;
36
- /**
37
- * Class name for the container
38
- */
39
- className?: string;
40
- } & ({
41
- /**
42
- * If false, anything related to removing filters is not shown
43
- * @default 'true'
44
- */
45
- showClearAndRemove: false;
46
- clearFilters?: never;
47
- onRemoveFilter?: never;
48
- clearButtonClassName?: never;
49
- } | {
50
- showClearAndRemove?: true;
51
35
  /**
52
36
  * Callback handler for removing the filters
53
37
  */
@@ -56,8 +40,12 @@ export type FilterChipsProps<T = Record<string, unknown>> = Pick<FilterChipProps
56
40
  * Handler for removing a applied filter
57
41
  */
58
42
  onRemoveFilter: (filterConfig: T) => void;
43
+ /**
44
+ * Class name for the container
45
+ */
46
+ className?: string;
59
47
  /**
60
48
  * Class name for the clear filter button
61
49
  */
62
50
  clearButtonClassName?: string;
63
- });
51
+ }
@@ -1,3 +1,4 @@
1
+
1
2
  declare const GitMaterialInfoHeader: ({ index, repoUrl, materialType, materialValue, style, ...props }: {
2
3
  [x: string]: any;
3
4
  index: any;
@@ -0,0 +1,4 @@
1
+ export declare const WEBHOOK_EVENT_ACTION_TYPE: {
2
+ MERGED: string;
3
+ NON_MERGED: string;
4
+ };
@@ -1,4 +1,4 @@
1
1
  import { MaterialHistoryProps } from './types';
2
2
 
3
- declare const MaterialHistory: ({ material, pipelineName, ciPipelineId, selectCommit }: MaterialHistoryProps) => JSX.Element;
3
+ declare const MaterialHistory: ({ material, pipelineName, ciPipelineId, selectCommit, isCommitInfoModal, }: MaterialHistoryProps) => JSX.Element;
4
4
  export default MaterialHistory;
@@ -5,4 +5,5 @@ export interface MaterialHistoryProps {
5
5
  pipelineName: string;
6
6
  ciPipelineId?: string;
7
7
  selectCommit?: (materialId: string, commit: string, ciPipelineId?: string) => void;
8
+ isCommitInfoModal?: boolean;
8
9
  }
@@ -1,3 +1,2 @@
1
1
  export * from './UsePrompt';
2
- export * from './useGetResourceKindsOptions';
3
2
  export * from './UseDownload';
@@ -1,4 +1,3 @@
1
- import { GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
1
+ import { GetResourceApiUrlProps } from './types';
2
2
 
3
- export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
4
- export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
3
+ export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, queryParams }: GetResourceApiUrlProps<T>) => string;
@@ -1,5 +1,5 @@
1
1
  import { getUrlWithSearchParams } from '../../Common';
2
- import { PolicyKindType, ResourceKindType, ResourceVersionType } from '../types';
2
+ import { ResourceKindType, ResourceVersionType } from '../types';
3
3
 
4
4
  export interface ClusterType {
5
5
  id: number;
@@ -9,20 +9,9 @@ export interface ClusterType {
9
9
  */
10
10
  isVirtual: boolean;
11
11
  }
12
- /**
13
- * T => Type of query params
14
- * K => Type of kind
15
- * P => Type of version
16
- */
17
- interface BaseGetApiUrlProps<T, K extends ResourceKindType | PolicyKindType, P extends ResourceVersionType> {
12
+ export interface GetResourceApiUrlProps<T> {
18
13
  baseUrl: string;
19
- kind: K;
20
- version: P;
21
- suffix?: string;
14
+ kind: ResourceKindType;
15
+ version: ResourceVersionType;
22
16
  queryParams?: T extends Parameters<typeof getUrlWithSearchParams>[1] ? T : never;
23
17
  }
24
- export interface GetResourceApiUrlProps<T> extends BaseGetApiUrlProps<T, ResourceKindType, ResourceVersionType> {
25
- }
26
- export interface GetPolicyApiUrlProps<T> extends Omit<BaseGetApiUrlProps<T, PolicyKindType, ResourceVersionType>, 'baseUrl'> {
27
- }
28
- export {};
@@ -362,12 +362,3 @@ export declare enum ComponentSizeType {
362
362
  medium = "medium",
363
363
  large = "large"
364
364
  }
365
- /**
366
- * Identifiers for grouped / all resources
367
- */
368
- export declare enum SelectAllGroupedResourceIdentifiers {
369
- allProjects = "-1",
370
- allExistingAndFutureNonProdEnvironments = "-1",
371
- allExistingAndFutureProdEnvironments = "-2",
372
- allExistingAndFutureEnvironments = "-3"
373
- }
@@ -360,21 +360,15 @@ export declare enum ResourceKindType {
360
360
  tenant = "tenant",
361
361
  installation = "installation",
362
362
  environment = "environment",
363
- cdPipeline = "cd-pipeline",
364
- project = "project"
363
+ cdPipeline = "cd-pipeline"
365
364
  }
366
365
  /**
367
366
  * Versions support for the resources on BE
368
- *
369
- * TODO: Rename to ApiVersionType
370
367
  */
371
368
  export declare enum ResourceVersionType {
372
369
  v1 = "v1",
373
370
  alpha1 = "alpha1"
374
371
  }
375
- export declare enum PolicyKindType {
376
- lockConfiguration = "lock-configuration"
377
- }
378
372
  export interface LastExecutionResultType {
379
373
  lastExecution: string;
380
374
  severityCount: {