@devtron-labs/devtron-fe-common-lib 0.0.84-beta-3 → 0.0.84-beta-5

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 (34) hide show
  1. package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +4 -0
  2. package/dist/Shared/Components/ImageWithFallback/index.d.ts +2 -0
  3. package/dist/Shared/Components/ImageWithFallback/types.d.ts +12 -0
  4. package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +4 -0
  5. package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +2 -0
  6. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +9 -0
  7. package/dist/Shared/Components/index.d.ts +2 -0
  8. package/dist/Shared/Helpers.d.ts +2 -0
  9. package/dist/Shared/Services/cluster.service.d.ts +3 -0
  10. package/dist/Shared/Services/common.service.d.ts +3 -0
  11. package/dist/Shared/Services/index.d.ts +3 -0
  12. package/dist/Shared/Services/mock.d.ts +3 -0
  13. package/dist/Shared/Services/types.d.ts +13 -0
  14. package/dist/Shared/index.d.ts +1 -0
  15. package/dist/Shared/types.d.ts +7 -1
  16. package/dist/Shared/validations.d.ts +2 -1
  17. package/dist/{cssMode-891e1d60.js → cssMode-008c0de7.js} +1 -1
  18. package/dist/{freemarker2-17a3ef5f.js → freemarker2-8e5e4f13.js} +1 -1
  19. package/dist/{handlebars-9a82f999.js → handlebars-646b5274.js} +1 -1
  20. package/dist/{html-17150855.js → html-94a44a22.js} +1 -1
  21. package/dist/{htmlMode-cfd414ef.js → htmlMode-623b0b18.js} +1 -1
  22. package/dist/{index-a31b3f6b.js → index-7b1d323d.js} +5860 -5785
  23. package/dist/index.js +227 -221
  24. package/dist/{javascript-7e65bd30.js → javascript-67782c0b.js} +1 -1
  25. package/dist/{jsonMode-b53e09d1.js → jsonMode-936fd21d.js} +1 -1
  26. package/dist/{liquid-536dd4ae.js → liquid-dc97738e.js} +1 -1
  27. package/dist/{mdx-249b908e.js → mdx-f8471e07.js} +1 -1
  28. package/dist/{python-0d7512cf.js → python-9e9944c6.js} +1 -1
  29. package/dist/{razor-39b5fa81.js → razor-8b62b848.js} +1 -1
  30. package/dist/{tsMode-9cf4451c.js → tsMode-7a581544.js} +1 -1
  31. package/dist/{typescript-b8c3ff6e.js → typescript-b0489d47.js} +1 -1
  32. package/dist/{xml-6fc18d50.js → xml-7b50e333.js} +1 -1
  33. package/dist/{yaml-ec291850.js → yaml-d402dfe6.js} +1 -1
  34. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import { ImageWithFallbackProps } from './types';
2
+
3
+ declare const ImageWithFallback: ({ imageProps, fallbackImage }: ImageWithFallbackProps) => JSX.Element;
4
+ export default ImageWithFallback;
@@ -0,0 +1,2 @@
1
+ export { default as ImageWithFallback } from './ImageWithFallback.component';
2
+ export type { ImageWithFallbackProps } from './types';
@@ -0,0 +1,12 @@
1
+ import { ImgHTMLAttributes } from 'react';
2
+
3
+ export interface ImageWithFallbackProps {
4
+ /**
5
+ * Props for the image
6
+ */
7
+ imageProps: ImgHTMLAttributes<HTMLImageElement>;
8
+ /**
9
+ * Fallback image; can be a url or a jsx element
10
+ */
11
+ fallbackImage: string | JSX.Element;
12
+ }
@@ -0,0 +1,4 @@
1
+ import { ModalSidebarPanelProps } from './types';
2
+
3
+ declare const ModalSidebarPanel: ({ rootClassName, heading, icon, children, documentationLink, }: ModalSidebarPanelProps) => JSX.Element;
4
+ export default ModalSidebarPanel;
@@ -0,0 +1,2 @@
1
+ export { default as ModalSidebarPanel } from './ModalSidebarPanel.component';
2
+ export type { ModalSidebarPanelProps } from './types';
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export interface ModalSidebarPanelProps {
4
+ rootClassName?: string;
5
+ heading: string;
6
+ icon?: JSX.Element;
7
+ children?: ReactNode;
8
+ documentationLink: string;
9
+ }
@@ -17,3 +17,5 @@ export * from './Header';
17
17
  export * from './AnnouncementBanner';
18
18
  export * from './ButtonWithLoader';
19
19
  export * from './ButtonWithSelector';
20
+ export * from './ModalSidebarPanel';
21
+ export * from './ImageWithFallback';
@@ -1,5 +1,6 @@
1
1
  import { GitTriggers, WebhookEventNameType } from './types';
2
2
  import { MaterialInfo, SortingOrder } from '../Common';
3
+ import { ReactElement } from 'react';
3
4
 
4
5
  interface HighlightSearchTextProps {
5
6
  /**
@@ -24,4 +25,5 @@ export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrd
24
25
  export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
25
26
  export declare const isNullOrUndefined: (value: unknown) => boolean;
26
27
  export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
28
+ export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
27
29
  export {};
@@ -0,0 +1,3 @@
1
+ import { ClusterType } from './types';
2
+
3
+ export declare const getClusterList: () => Promise<ClusterType[]>;
@@ -0,0 +1,3 @@
1
+ import { GetResourceApiUrlProps } from './types';
2
+
3
+ export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, queryParams }: GetResourceApiUrlProps<T>) => string;
@@ -0,0 +1,3 @@
1
+ export * from './cluster.service';
2
+ export * from './types';
3
+ export * from './common.service';
@@ -0,0 +1,3 @@
1
+ import { ClusterType } from './types';
2
+
3
+ export declare const clusterListData: ClusterType[];
@@ -0,0 +1,13 @@
1
+ import { ResourceKindType, ResourceVersionType } from '../types';
2
+ import { getUrlWithSearchParams } from '../../Common';
3
+
4
+ export interface ClusterType {
5
+ id: number;
6
+ name: string;
7
+ }
8
+ export interface GetResourceApiUrlProps<T> {
9
+ baseUrl: string;
10
+ kind: ResourceKindType;
11
+ version: ResourceVersionType;
12
+ queryParams?: T extends Parameters<typeof getUrlWithSearchParams>[1] ? T : never;
13
+ }
@@ -5,3 +5,4 @@ export * from './constants';
5
5
  export * from './types';
6
6
  export * from './Providers';
7
7
  export * from './constants';
8
+ export * from './Services';
@@ -170,7 +170,8 @@ export declare enum ResourceKindType {
170
170
  cluster = "cluster",
171
171
  release = "release",
172
172
  releaseTrack = "release-track",
173
- tenant = "tenant"
173
+ tenant = "tenant",
174
+ installation = "installation"
174
175
  }
175
176
  /**
176
177
  * Versions support for the resources on BE
@@ -292,3 +293,8 @@ export interface EnvironmentType {
292
293
  */
293
294
  cluster: string;
294
295
  }
296
+ export interface CreatedByDTO {
297
+ icon: boolean;
298
+ id: number;
299
+ name: string;
300
+ }
@@ -19,4 +19,5 @@ export declare const validateDescription: (description: string) => ValidationRes
19
19
  export declare const validateStringLength: (value: string, maxLimit: number, minLimit: number) => ValidationResponseType;
20
20
  export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
21
21
  export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
22
- export declare const validateURL: (url: string) => ValidationResponseType;
22
+ export declare const validateURL: (url: string, allowBase64Url?: boolean) => ValidationResponseType;
23
+ export declare const validateIfImageExist: (url: string) => Promise<ValidationResponseType>;
@@ -1,7 +1,7 @@
1
1
  var Le = Object.defineProperty;
2
2
  var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Ne } from "./index-a31b3f6b.js";
4
+ import { m as Ne } from "./index-7b1d323d.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 F } from "./index-a31b3f6b.js";
1
+ import { m as F } from "./index-7b1d323d.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-a31b3f6b.js";
1
+ import { m as i } from "./index-7b1d323d.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-a31b3f6b.js";
1
+ import { m as d } from "./index-7b1d323d.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 $e = Object.defineProperty;
2
2
  var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { m as Qe } from "./index-a31b3f6b.js";
4
+ import { m as Qe } from "./index-7b1d323d.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)