@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.
- package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +4 -0
- package/dist/Shared/Components/ImageWithFallback/index.d.ts +2 -0
- package/dist/Shared/Components/ImageWithFallback/types.d.ts +12 -0
- package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +4 -0
- package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +2 -0
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +9 -0
- package/dist/Shared/Components/index.d.ts +2 -0
- package/dist/Shared/Helpers.d.ts +2 -0
- package/dist/Shared/Services/cluster.service.d.ts +3 -0
- package/dist/Shared/Services/common.service.d.ts +3 -0
- package/dist/Shared/Services/index.d.ts +3 -0
- package/dist/Shared/Services/mock.d.ts +3 -0
- package/dist/Shared/Services/types.d.ts +13 -0
- package/dist/Shared/index.d.ts +1 -0
- package/dist/Shared/types.d.ts +7 -1
- package/dist/Shared/validations.d.ts +2 -1
- package/dist/{cssMode-891e1d60.js → cssMode-008c0de7.js} +1 -1
- package/dist/{freemarker2-17a3ef5f.js → freemarker2-8e5e4f13.js} +1 -1
- package/dist/{handlebars-9a82f999.js → handlebars-646b5274.js} +1 -1
- package/dist/{html-17150855.js → html-94a44a22.js} +1 -1
- package/dist/{htmlMode-cfd414ef.js → htmlMode-623b0b18.js} +1 -1
- package/dist/{index-a31b3f6b.js → index-7b1d323d.js} +5860 -5785
- package/dist/index.js +227 -221
- package/dist/{javascript-7e65bd30.js → javascript-67782c0b.js} +1 -1
- package/dist/{jsonMode-b53e09d1.js → jsonMode-936fd21d.js} +1 -1
- package/dist/{liquid-536dd4ae.js → liquid-dc97738e.js} +1 -1
- package/dist/{mdx-249b908e.js → mdx-f8471e07.js} +1 -1
- package/dist/{python-0d7512cf.js → python-9e9944c6.js} +1 -1
- package/dist/{razor-39b5fa81.js → razor-8b62b848.js} +1 -1
- package/dist/{tsMode-9cf4451c.js → tsMode-7a581544.js} +1 -1
- package/dist/{typescript-b8c3ff6e.js → typescript-b0489d47.js} +1 -1
- package/dist/{xml-6fc18d50.js → xml-7b50e333.js} +1 -1
- package/dist/{yaml-ec291850.js → yaml-d402dfe6.js} +1 -1
- package/package.json +1 -1
|
@@ -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
|
+
}
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -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,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
|
+
}
|
package/dist/Shared/index.d.ts
CHANGED
package/dist/Shared/types.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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)
|