@devtron-labs/devtron-fe-common-lib 0.1.15-beta-5 → 0.1.15-beta-6

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 (53) hide show
  1. package/dist/Common/Constants.d.ts +0 -2
  2. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
  3. package/dist/Shared/Components/CICDHistory/types.d.ts +3 -1
  4. package/dist/Shared/Components/Collapse/Collapse.d.ts +3 -0
  5. package/dist/Shared/Components/Collapse/index.d.ts +1 -0
  6. package/dist/Shared/Components/Collapse/types.d.ts +6 -0
  7. package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +3 -0
  8. package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +96 -0
  9. package/dist/Shared/Components/CollapsibleList/index.d.ts +2 -0
  10. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +3 -0
  11. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +3 -0
  12. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +3 -0
  13. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +3 -0
  14. package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +2 -0
  15. package/dist/Shared/Components/DeploymentConfigDiff/types.d.ts +66 -0
  16. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
  17. package/dist/Shared/Components/FilterChips/types.d.ts +6 -18
  18. package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
  19. package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +23 -1
  20. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  21. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
  22. package/dist/Shared/Components/SelectPicker/type.d.ts +16 -0
  23. package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -1
  24. package/dist/Shared/Components/index.d.ts +3 -0
  25. package/dist/Shared/Helpers.d.ts +2 -0
  26. package/dist/Shared/Hooks/index.d.ts +0 -1
  27. package/dist/Shared/Services/common.service.d.ts +2 -3
  28. package/dist/Shared/Services/types.d.ts +4 -15
  29. package/dist/Shared/types.d.ts +1 -7
  30. package/dist/assets/index.css +1 -1
  31. package/dist/{cssMode-a297ca6e.js → cssMode-8ae96e64.js} +1 -1
  32. package/dist/{freemarker2-05744383.js → freemarker2-0cb4a14a.js} +1 -1
  33. package/dist/{handlebars-ab9e5510.js → handlebars-98ff9197.js} +1 -1
  34. package/dist/{html-fb5fd277.js → html-2734122e.js} +1 -1
  35. package/dist/{htmlMode-7431ae7d.js → htmlMode-efe653fd.js} +1 -1
  36. package/dist/{index-487cba05.js → index-c4f63c78.js} +26833 -26411
  37. package/dist/index.js +425 -423
  38. package/dist/{javascript-097af821.js → javascript-f238558f.js} +1 -1
  39. package/dist/{jsonMode-d511a4fb.js → jsonMode-b8611a40.js} +1 -1
  40. package/dist/{liquid-e8a241ee.js → liquid-59347e1d.js} +1 -1
  41. package/dist/{mdx-1d38e886.js → mdx-01264a44.js} +1 -1
  42. package/dist/{python-6001c39d.js → python-f12eea3d.js} +1 -1
  43. package/dist/{razor-122e5840.js → razor-486fbc8d.js} +1 -1
  44. package/dist/{tsMode-c0596bae.js → tsMode-4983184a.js} +1 -1
  45. package/dist/{typescript-12536e6a.js → typescript-65c429d5.js} +1 -1
  46. package/dist/{xml-d09d26cb.js → xml-ffe48a9a.js} +1 -1
  47. package/dist/{yaml-bf1a774e.js → yaml-5c3e3ab3.js} +1 -1
  48. package/package.json +1 -1
  49. package/dist/Shared/Hooks/useGetResourceKindsOptions/index.d.ts +0 -2
  50. package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +0 -9
  51. package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +0 -31
  52. package/dist/Shared/Hooks/useGetResourceKindsOptions/useGetResourceKindsOptions.d.ts +0 -16
  53. package/dist/Shared/Hooks/useGetResourceKindsOptions/utils.d.ts +0 -4
@@ -1,4 +1,4 @@
1
- import { conf as t, language as e } from "./typescript-12536e6a.js";
1
+ import { conf as t, language as e } from "./typescript-65c429d5.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,7 +1,7 @@
1
1
  var Ge = Object.defineProperty;
2
2
  var Qe = (e, n, i) => n in e ? Ge(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var C = (e, n, i) => (Qe(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Ze } from "./index-487cba05.js";
4
+ import { m as Ze } from "./index-c4f63c78.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as d } from "./index-487cba05.js";
1
+ import { m as d } from "./index-c4f63c78.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as d } from "./index-487cba05.js";
1
+ import { m as d } from "./index-c4f63c78.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as a } from "./index-487cba05.js";
1
+ import { m as a } from "./index-c4f63c78.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-487cba05.js";
1
+ import { m as s } from "./index-c4f63c78.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,7 +1,7 @@
1
1
  var M = Object.defineProperty;
2
2
  var R = (e, t, r) => t in e ? M(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var _ = (e, t, r) => (R(e, typeof t != "symbol" ? t + "" : t, r), r);
4
- import { t as K, m as E } from "./index-487cba05.js";
4
+ import { t as K, m as E } from "./index-c4f63c78.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as a } from "./index-487cba05.js";
1
+ import { m as a } from "./index-c4f63c78.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m } from "./index-487cba05.js";
1
+ import { m } from "./index-c4f63c78.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as i } from "./index-487cba05.js";
1
+ import { m as i } from "./index-c4f63c78.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "0.1.15-beta-5",
3
+ "version": "0.1.15-beta-6",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,2 +0,0 @@
1
- export { default as useGetResourceKindsOptions } from './useGetResourceKindsOptions';
2
- export type { UseGetResourceKindsOptionsProps, UseGetResourceKindOptionsReturnType } from './types';
@@ -1,9 +0,0 @@
1
- import { Teams } from '../../../Common/Types';
2
- import { ClusterType } from '../../Services';
3
- import { EnvironmentType } from '../../types';
4
- import { AppsGroupedByProjectsType } from './types';
5
-
6
- export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
7
- export declare const getProjectOptions: () => Promise<Pick<Teams, 'id' | 'name'>[]>;
8
- export declare const getClusterOptions: () => Promise<ClusterType[]>;
9
- export declare const getEnvironmentOptions: () => Promise<EnvironmentType[]>;
@@ -1,31 +0,0 @@
1
- import { ResourceKindType } from '../../types';
2
- import { ServerErrors } from '../../../Common/ServerError';
3
- import { getAppOptionsGroupedByProjects, getClusterOptions, getEnvironmentOptions, getProjectOptions } from './service';
4
-
5
- export interface AppType {
6
- name: string;
7
- }
8
- export type AppsGroupedByProjectsType = {
9
- projectId: number;
10
- projectName: string;
11
- appList: AppType[];
12
- }[];
13
- export interface ClusterDTO {
14
- id: number;
15
- cluster_name: string;
16
- isVirtualCluster: boolean;
17
- }
18
- export interface UseGetResourceKindsOptionsProps {
19
- resourcesToFetch: Extract<ResourceKindType, ResourceKindType.devtronApplication | ResourceKindType.project | ResourceKindType.cluster | ResourceKindType.environment>[];
20
- }
21
- export interface UseGetResourceKindOptionsReturnType {
22
- isResourcesOptionsLoading: boolean;
23
- resourcesOptionsMap: {
24
- [ResourceKindType.devtronApplication]: Awaited<ReturnType<typeof getAppOptionsGroupedByProjects>>;
25
- [ResourceKindType.project]: Awaited<ReturnType<typeof getProjectOptions>>;
26
- [ResourceKindType.cluster]: Awaited<ReturnType<typeof getClusterOptions>>;
27
- [ResourceKindType.environment]: Awaited<ReturnType<typeof getEnvironmentOptions>>;
28
- };
29
- resourcesOptionsError: ServerErrors;
30
- refetchResourcesOptions: () => void;
31
- }
@@ -1,16 +0,0 @@
1
- import { UseGetResourceKindOptionsReturnType, UseGetResourceKindsOptionsProps } from './types';
2
-
3
- /**
4
- * Generic hook to fetch the options list for the supported resource kinds.
5
- *
6
- * Note: no call would be made for empty resource kind list
7
- *
8
- * @example Usage
9
- * ```tsx
10
- * const data = useGetResourceKindsOptions({
11
- * resourcesToFetch: [ResourceKindType.devtronApplication, ResourceKindType.environment]
12
- * })
13
- * ```
14
- */
15
- declare const useGetResourceKindsOptions: ({ resourcesToFetch, }: UseGetResourceKindsOptionsProps) => UseGetResourceKindOptionsReturnType;
16
- export default useGetResourceKindsOptions;
@@ -1,4 +0,0 @@
1
- import { ResourceKindType } from '../../types';
2
- import { UseGetResourceKindsOptionsProps } from './types';
3
-
4
- export declare const getResourcesToFetchMap: (resourcesToFetch: UseGetResourceKindsOptionsProps['resourcesToFetch']) => Record<ResourceKindType.devtronApplication | ResourceKindType.cluster | ResourceKindType.environment | ResourceKindType.project, boolean>;