@devtron-labs/devtron-fe-common-lib 0.0.90-beta-4 → 0.0.91-beta-1
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/Common/Dialogs/Types.d.ts +2 -17
- package/dist/Common/EmptyState/GenericFilterEmptyState.d.ts +2 -5
- package/dist/Common/Hooks/useStateFilters/types.d.ts +1 -1
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -1
- package/dist/Common/Modals/Modal.d.ts +0 -3
- package/dist/Common/Modals/VisibleModal.d.ts +1 -2
- package/dist/Common/Modals/VisibleModal2.d.ts +1 -2
- package/dist/Common/PopupMenu.d.ts +1 -1
- package/dist/Common/RJSF/common/FieldRow.d.ts +1 -4
- package/dist/Common/RJSF/common/types.d.ts +1 -1
- package/dist/Common/RJSF/constants.d.ts +4 -1
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
- package/dist/Common/RJSF/templates/TitleField.d.ts +1 -1
- package/dist/Common/RJSF/templates/index.d.ts +0 -1
- package/dist/Common/RJSF/utils.d.ts +3 -1
- package/dist/Common/Types.d.ts +1 -9
- package/dist/Shared/Components/index.d.ts +0 -3
- package/dist/Shared/Helpers.d.ts +0 -2
- package/dist/Shared/constants.d.ts +0 -4
- package/dist/Shared/index.d.ts +0 -1
- package/dist/Shared/types.d.ts +1 -44
- package/dist/Shared/validations.d.ts +0 -4
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-9a190214.js → cssMode-9727a0fd.js} +1 -1
- package/dist/{freemarker2-dea8698e.js → freemarker2-cfb11288.js} +1 -1
- package/dist/{handlebars-c498c187.js → handlebars-83c4c79e.js} +1 -1
- package/dist/{html-f48421bf.js → html-dc49fd50.js} +1 -1
- package/dist/{htmlMode-9b00320e.js → htmlMode-19c03119.js} +1 -1
- package/dist/{index-7ecdad6b.js → index-f1b5774e.js} +18339 -18547
- package/dist/index.d.ts +0 -1
- package/dist/index.js +334 -345
- package/dist/{javascript-127e4efb.js → javascript-318d84c2.js} +1 -1
- package/dist/{jsonMode-7e25a4dc.js → jsonMode-61cb9867.js} +1 -1
- package/dist/{liquid-a0ae58fa.js → liquid-f383a9fb.js} +1 -1
- package/dist/{mdx-e1813b4c.js → mdx-4a3b251d.js} +1 -1
- package/dist/{python-de0a209c.js → python-8a6af790.js} +1 -1
- package/dist/{razor-1187b450.js → razor-1412de81.js} +1 -1
- package/dist/{tsMode-cd7e7fd5.js → tsMode-b9637688.js} +1 -1
- package/dist/{typescript-b1bb1673.js → typescript-49d0fdfe.js} +1 -1
- package/dist/{xml-a0fb8104.js → xml-f4cb6baf.js} +1 -1
- package/dist/{yaml-8ec5f04b.js → yaml-7533723e.js} +1 -1
- package/package.json +5 -5
- package/dist/Common/EmptyState/types.d.ts +0 -13
- package/dist/Common/RJSF/templates/Description.d.ts +0 -3
- package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +0 -3
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +0 -4
- package/dist/Shared/Components/FeatureDescription/constant.d.ts +0 -8
- package/dist/Shared/Components/FeatureDescription/index.d.ts +0 -2
- package/dist/Shared/Components/FeatureDescription/types.d.ts +0 -19
- package/dist/Shared/Components/FeatureDescription/utils.d.ts +0 -6
- package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +0 -4
- package/dist/Shared/Components/ImageWithFallback/index.d.ts +0 -2
- package/dist/Shared/Components/ImageWithFallback/types.d.ts +0 -12
- package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +0 -4
- package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +0 -2
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +0 -9
- package/dist/Shared/Services/common.service.d.ts +0 -3
- package/dist/Shared/Services/index.d.ts +0 -2
- package/dist/Shared/Services/types.d.ts +0 -17
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { conf as t, language as e } from "./typescript-
|
|
1
|
+
import { conf as t, language as e } from "./typescript-49d0fdfe.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-
|
|
4
|
+
import { m as Ze } from "./index-f1b5774e.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-
|
|
1
|
+
import { m as d } from "./index-f1b5774e.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-f1b5774e.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-
|
|
1
|
+
import { m as a } from "./index-f1b5774e.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-
|
|
1
|
+
import { m as s } from "./index-f1b5774e.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-
|
|
4
|
+
import { t as K, m as E } from "./index-f1b5774e.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-
|
|
1
|
+
import { m as a } from "./index-f1b5774e.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-
|
|
1
|
+
import { m } from "./index-f1b5774e.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-f1b5774e.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.0.
|
|
3
|
+
"version": "0.0.91-beta-1",
|
|
4
4
|
"description": "Supporting common component library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
25
|
"prepare": "node -e \"try { require('husky').install() } catch (e) {}\"",
|
|
26
|
-
"lint": "tsc --noEmit &&
|
|
26
|
+
"lint": "tsc --noEmit && eslint 'src/**/*.{js,jsx,ts,tsx}' --max-warnings 0",
|
|
27
27
|
"lint-fix": "eslint 'src/**/*.{js,jsx,ts,tsx}' --fix",
|
|
28
28
|
"test": "exit 0",
|
|
29
|
-
"dev": "
|
|
30
|
-
"build": "
|
|
31
|
-
"build-watch": "
|
|
29
|
+
"dev": "vite",
|
|
30
|
+
"build": "vite build --sourcemap",
|
|
31
|
+
"build-watch": "vite build --sourcemap --watch",
|
|
32
32
|
"build-lib": "vite build",
|
|
33
33
|
"preview": "vite preview",
|
|
34
34
|
"lint-staged": "lint-staged"
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { GenericEmptyStateType } from '../Types';
|
|
2
|
-
|
|
3
|
-
export type GenericFilterEmptyStateProps = Omit<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'isButtonAvailable' | 'renderButton'> & Partial<Pick<GenericEmptyStateType, 'title' | 'subTitle'>> & ({
|
|
4
|
-
/**
|
|
5
|
-
* If provided, it will have priority over the isButtonAvailable prop
|
|
6
|
-
* and render clear filter button
|
|
7
|
-
*/
|
|
8
|
-
handleClearFilters?: () => void;
|
|
9
|
-
isButtonAvailable?: never;
|
|
10
|
-
renderButton?: never;
|
|
11
|
-
} | (Pick<GenericEmptyStateType, 'isButtonAvailable' | 'renderButton'> & {
|
|
12
|
-
handleClearFilters?: never;
|
|
13
|
-
}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { DescriptorProps } from './types';
|
|
2
|
-
|
|
3
|
-
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, }: DescriptorProps) => JSX.Element;
|
|
4
|
-
export default FeatureTitleWithInfo;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
|
2
|
-
import { ImageType } from '../../../Common';
|
|
3
|
-
|
|
4
|
-
export interface FeatureDescriptionModalProps {
|
|
5
|
-
title: string;
|
|
6
|
-
renderDescriptionContent?: () => JSX.Element;
|
|
7
|
-
closeModalText?: string;
|
|
8
|
-
docLink?: string;
|
|
9
|
-
closeModal?: () => void;
|
|
10
|
-
imageVariant?: ImageType;
|
|
11
|
-
SVGImage?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
12
|
-
imageStyles?: React.CSSProperties;
|
|
13
|
-
}
|
|
14
|
-
export interface DescriptorProps extends FeatureDescriptionModalProps {
|
|
15
|
-
breadCrumbs: Breadcrumb[];
|
|
16
|
-
additionalContainerClasses?: string;
|
|
17
|
-
iconClassName?: string;
|
|
18
|
-
children?: React.ReactNode;
|
|
19
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ResourceKindType, ResourceVersionType } from '../types';
|
|
2
|
-
import { getUrlWithSearchParams } from '../../Common';
|
|
3
|
-
|
|
4
|
-
export interface ClusterType {
|
|
5
|
-
id: number;
|
|
6
|
-
name: string;
|
|
7
|
-
/**
|
|
8
|
-
* If true, denotes virtual cluster
|
|
9
|
-
*/
|
|
10
|
-
isVirtual: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface GetResourceApiUrlProps<T> {
|
|
13
|
-
baseUrl: string;
|
|
14
|
-
kind: ResourceKindType;
|
|
15
|
-
version: ResourceVersionType;
|
|
16
|
-
queryParams?: T extends Parameters<typeof getUrlWithSearchParams>[1] ? T : never;
|
|
17
|
-
}
|