@devtron-labs/devtron-fe-common-lib 0.0.87-beta-1 → 0.0.87-beta-2

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 (52) hide show
  1. package/dist/Common/Dialogs/Types.d.ts +2 -17
  2. package/dist/Common/EmptyState/GenericFilterEmptyState.d.ts +2 -5
  3. package/dist/Common/Hooks/useStateFilters/types.d.ts +1 -1
  4. package/dist/Common/Modals/Modal.d.ts +0 -3
  5. package/dist/Common/Modals/OpaqueModal.d.ts +0 -3
  6. package/dist/Common/Modals/VisibleModal.d.ts +1 -2
  7. package/dist/Common/Modals/VisibleModal2.d.ts +1 -2
  8. package/dist/Common/PopupMenu.d.ts +1 -1
  9. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
  10. package/dist/Common/RJSF/utils.d.ts +2 -1
  11. package/dist/Common/Types.d.ts +1 -3
  12. package/dist/Shared/Components/index.d.ts +0 -3
  13. package/dist/Shared/Helpers.d.ts +0 -2
  14. package/dist/Shared/constants.d.ts +0 -4
  15. package/dist/Shared/index.d.ts +0 -1
  16. package/dist/Shared/types.d.ts +1 -40
  17. package/dist/Shared/validations.d.ts +0 -4
  18. package/dist/assets/index.css +1 -1
  19. package/dist/{cssMode-520db43c.js → cssMode-e1275276.js} +1 -1
  20. package/dist/{freemarker2-8102ab8d.js → freemarker2-fa2f7113.js} +1 -1
  21. package/dist/{handlebars-48b54c55.js → handlebars-85ed6740.js} +1 -1
  22. package/dist/{html-57fe72de.js → html-61d0544d.js} +1 -1
  23. package/dist/{htmlMode-fad88102.js → htmlMode-f69289be.js} +1 -1
  24. package/dist/{index-ed2ecc9f.js → index-f6b30bb1.js} +17459 -17689
  25. package/dist/index.js +340 -351
  26. package/dist/{javascript-095bc45f.js → javascript-34ff696a.js} +1 -1
  27. package/dist/{jsonMode-53b436a9.js → jsonMode-d446e1a9.js} +1 -1
  28. package/dist/{liquid-e4152333.js → liquid-5280c43f.js} +1 -1
  29. package/dist/{mdx-9b3781e3.js → mdx-95d148b5.js} +1 -1
  30. package/dist/{python-ab53c9a3.js → python-e40dac06.js} +1 -1
  31. package/dist/{razor-4edb4a7d.js → razor-25ceb9a2.js} +1 -1
  32. package/dist/{tsMode-42e8d846.js → tsMode-cf703a51.js} +1 -1
  33. package/dist/{typescript-1e5018b9.js → typescript-e200c00a.js} +1 -1
  34. package/dist/{xml-c55b1b7f.js → xml-80f57f2b.js} +1 -1
  35. package/dist/{yaml-bb2d8678.js → yaml-44fe8e48.js} +1 -1
  36. package/package.json +1 -1
  37. package/dist/Common/EmptyState/types.d.ts +0 -13
  38. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +0 -3
  39. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +0 -4
  40. package/dist/Shared/Components/FeatureDescription/constant.d.ts +0 -8
  41. package/dist/Shared/Components/FeatureDescription/index.d.ts +0 -2
  42. package/dist/Shared/Components/FeatureDescription/types.d.ts +0 -19
  43. package/dist/Shared/Components/FeatureDescription/utils.d.ts +0 -6
  44. package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +0 -4
  45. package/dist/Shared/Components/ImageWithFallback/index.d.ts +0 -2
  46. package/dist/Shared/Components/ImageWithFallback/types.d.ts +0 -12
  47. package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +0 -4
  48. package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +0 -2
  49. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +0 -9
  50. package/dist/Shared/Services/common.service.d.ts +0 -3
  51. package/dist/Shared/Services/index.d.ts +0 -2
  52. package/dist/Shared/Services/types.d.ts +0 -13
@@ -1,4 +1,4 @@
1
- import { conf as t, language as e } from "./typescript-1e5018b9.js";
1
+ import { conf as t, language as e } from "./typescript-e200c00a.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-ed2ecc9f.js";
4
+ import { m as Ze } from "./index-f6b30bb1.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-ed2ecc9f.js";
1
+ import { m as d } from "./index-f6b30bb1.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-ed2ecc9f.js";
1
+ import { m as d } from "./index-f6b30bb1.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-ed2ecc9f.js";
1
+ import { m as a } from "./index-f6b30bb1.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-ed2ecc9f.js";
1
+ import { m as s } from "./index-f6b30bb1.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-ed2ecc9f.js";
4
+ import { t as K, m as E } from "./index-f6b30bb1.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-ed2ecc9f.js";
1
+ import { m as a } from "./index-f6b30bb1.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-ed2ecc9f.js";
1
+ import { m } from "./index-f6b30bb1.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-ed2ecc9f.js";
1
+ import { m as i } from "./index-f6b30bb1.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.87-beta-1",
3
+ "version": "0.0.87-beta-2",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -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,3 +0,0 @@
1
- import { FeatureDescriptionModalProps } from './types';
2
-
3
- export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, }: FeatureDescriptionModalProps) => JSX.Element;
@@ -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,8 +0,0 @@
1
- export declare enum BUTTON_TEXT {
2
- GOT_IT = "Got it",
3
- VIEW_DOCUMENTATION = "View Documentation"
4
- }
5
- export declare enum IMAGE_VARIANT {
6
- SMALL = "small",
7
- LARGE = "large"
8
- }
@@ -1,2 +0,0 @@
1
- export * from './FeatureDescriptionModal';
2
- export { default as FeatureTitleWithInfo } from './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,6 +0,0 @@
1
- import { ImageType } from '../../../Common';
2
-
3
- export declare const getImageSize: (imageType: ImageType) => {
4
- width: string;
5
- height: string;
6
- };
@@ -1,4 +0,0 @@
1
- import { ImageWithFallbackProps } from './types';
2
-
3
- declare const ImageWithFallback: ({ imageProps, fallbackImage }: ImageWithFallbackProps) => JSX.Element;
4
- export default ImageWithFallback;
@@ -1,2 +0,0 @@
1
- export { default as ImageWithFallback } from './ImageWithFallback.component';
2
- export type { ImageWithFallbackProps } from './types';
@@ -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,4 +0,0 @@
1
- import { ModalSidebarPanelProps } from './types';
2
-
3
- declare const ModalSidebarPanel: ({ rootClassName, heading, icon, children, documentationLink, }: ModalSidebarPanelProps) => JSX.Element;
4
- export default ModalSidebarPanel;
@@ -1,2 +0,0 @@
1
- export { default as ModalSidebarPanel } from './ModalSidebarPanel.component';
2
- export type { ModalSidebarPanelProps } from './types';
@@ -1,9 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- import { GetResourceApiUrlProps } from './types';
2
-
3
- export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, queryParams }: GetResourceApiUrlProps<T>) => string;
@@ -1,2 +0,0 @@
1
- export * from './types';
2
- export * from './common.service';
@@ -1,13 +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
- export interface GetResourceApiUrlProps<T> {
9
- baseUrl: string;
10
- kind: ResourceKindType;
11
- version: ResourceVersionType;
12
- queryParams?: T extends Parameters<typeof getUrlWithSearchParams>[1] ? T : never;
13
- }