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

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/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/constants.d.ts +4 -0
  10. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
  11. package/dist/Common/RJSF/utils.d.ts +2 -1
  12. package/dist/Common/Types.d.ts +1 -3
  13. package/dist/Shared/Components/index.d.ts +0 -3
  14. package/dist/Shared/Helpers.d.ts +0 -2
  15. package/dist/Shared/constants.d.ts +0 -4
  16. package/dist/Shared/index.d.ts +0 -1
  17. package/dist/Shared/types.d.ts +1 -40
  18. package/dist/Shared/validations.d.ts +0 -4
  19. package/dist/assets/index.css +1 -1
  20. package/dist/{cssMode-520db43c.js → cssMode-15495e3c.js} +1 -1
  21. package/dist/{freemarker2-8102ab8d.js → freemarker2-0069dff6.js} +1 -1
  22. package/dist/{handlebars-48b54c55.js → handlebars-713d51e9.js} +1 -1
  23. package/dist/{html-57fe72de.js → html-58b01e65.js} +1 -1
  24. package/dist/{htmlMode-fad88102.js → htmlMode-9de03986.js} +1 -1
  25. package/dist/{index-ed2ecc9f.js → index-a891fbac.js} +17512 -17739
  26. package/dist/index.js +340 -351
  27. package/dist/{javascript-095bc45f.js → javascript-79c5f5d5.js} +1 -1
  28. package/dist/{jsonMode-53b436a9.js → jsonMode-f39e6595.js} +1 -1
  29. package/dist/{liquid-e4152333.js → liquid-c932797c.js} +1 -1
  30. package/dist/{mdx-9b3781e3.js → mdx-2edff1a3.js} +1 -1
  31. package/dist/{python-ab53c9a3.js → python-93c6c610.js} +1 -1
  32. package/dist/{razor-4edb4a7d.js → razor-f4c4bb17.js} +1 -1
  33. package/dist/{tsMode-42e8d846.js → tsMode-66a6e874.js} +1 -1
  34. package/dist/{typescript-1e5018b9.js → typescript-7ebcdef5.js} +1 -1
  35. package/dist/{xml-c55b1b7f.js → xml-089c41ae.js} +1 -1
  36. package/dist/{yaml-bb2d8678.js → yaml-18db0204.js} +1 -1
  37. package/package.json +1 -1
  38. package/dist/Common/EmptyState/types.d.ts +0 -13
  39. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +0 -3
  40. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +0 -4
  41. package/dist/Shared/Components/FeatureDescription/constant.d.ts +0 -8
  42. package/dist/Shared/Components/FeatureDescription/index.d.ts +0 -2
  43. package/dist/Shared/Components/FeatureDescription/types.d.ts +0 -19
  44. package/dist/Shared/Components/FeatureDescription/utils.d.ts +0 -6
  45. package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +0 -4
  46. package/dist/Shared/Components/ImageWithFallback/index.d.ts +0 -2
  47. package/dist/Shared/Components/ImageWithFallback/types.d.ts +0 -12
  48. package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +0 -4
  49. package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +0 -2
  50. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +0 -9
  51. package/dist/Shared/Services/common.service.d.ts +0 -3
  52. package/dist/Shared/Services/index.d.ts +0 -2
  53. package/dist/Shared/Services/types.d.ts +0 -13
@@ -1,19 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
- type WithOrWithoutDeleteConfirmationType = {
4
- showDeleteConfirmation: true;
5
- /**
6
- * If added, confirmation input is shown
7
- */
8
- deleteConfirmationText: string;
9
- } | {
10
- showDeleteConfirmation?: never;
11
- /**
12
- * If added, confirmation input is shown
13
- */
14
- deleteConfirmationText?: never;
15
- };
16
- export type DeleteDialogProps = {
3
+ export interface DeleteDialogProps {
17
4
  title: string;
18
5
  description?: string;
19
6
  closeDelete: () => void;
@@ -25,8 +12,7 @@ export type DeleteDialogProps = {
25
12
  buttonPrimaryText?: string;
26
13
  shouldStopPropagation?: boolean;
27
14
  disabled?: boolean;
28
- children?: ReactNode;
29
- } & WithOrWithoutDeleteConfirmationType;
15
+ }
30
16
  export interface ForceDeleteDialogType {
31
17
  onClickDelete: () => void;
32
18
  closeDeleteModal: () => void;
@@ -58,4 +44,3 @@ export interface DialogFormProps {
58
44
  onSave: (event: any) => void;
59
45
  headerClassName?: string;
60
46
  }
61
- export {};
@@ -1,7 +1,4 @@
1
- import { GenericFilterEmptyStateProps } from './types';
1
+ import { GenericEmptyStateType } from '../Types';
2
2
 
3
- /**
4
- * Empty state when no filters are applied
5
- */
6
- declare const GenericFilterEmptyState: ({ handleClearFilters, isButtonAvailable, renderButton, ...props }: GenericFilterEmptyStateProps) => JSX.Element;
3
+ declare const GenericFilterEmptyState: (props: Omit<GenericEmptyStateType, 'image' | 'title' | 'subTitle'> & Partial<Pick<GenericEmptyStateType, 'title' | 'subTitle'>>) => JSX.Element;
7
4
  export default GenericFilterEmptyState;
@@ -2,5 +2,5 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from '../useUrlFilters';
2
2
 
3
3
  export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'> {
4
4
  }
5
- export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'searchKey' | 'handleSearch'> {
5
+ export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters'> {
6
6
  }
@@ -1,7 +1,4 @@
1
1
  import { ModalType } from '../Types';
2
2
  import { default as React } from 'react';
3
3
 
4
- /**
5
- * @deprecated Use VisibleModal instead
6
- */
7
4
  export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
@@ -5,9 +5,6 @@ export interface OpaqueModalProps {
5
5
  onHide?: any;
6
6
  noBackground?: boolean;
7
7
  }
8
- /**
9
- * @deprecated Use VisibleModal instead
10
- */
11
8
  export declare class OpaqueModal extends React.Component<OpaqueModalProps> {
12
9
  modalRef: HTMLElement;
13
10
  componentDidMount(): void;
@@ -1,4 +1,4 @@
1
- import { default as React, SyntheticEvent } from 'react';
1
+ import { default as React } from 'react';
2
2
 
3
3
  export declare class VisibleModal extends React.Component<{
4
4
  className: string;
@@ -12,6 +12,5 @@ export declare class VisibleModal extends React.Component<{
12
12
  escFunction(event: any): void;
13
13
  componentDidMount(): void;
14
14
  componentWillUnmount(): void;
15
- handleBodyClick: (e: SyntheticEvent) => void;
16
15
  render(): React.ReactPortal;
17
16
  }
@@ -1,4 +1,4 @@
1
- import { default as React, SyntheticEvent } from 'react';
1
+ import { default as React } from 'react';
2
2
 
3
3
  export declare class VisibleModal2 extends React.Component<{
4
4
  className: string;
@@ -9,6 +9,5 @@ export declare class VisibleModal2 extends React.Component<{
9
9
  escFunction(event: any): void;
10
10
  componentDidMount(): void;
11
11
  componentWillUnmount(): void;
12
- handleBodyClick: (e: SyntheticEvent) => void;
13
12
  render(): React.ReactPortal;
14
13
  }
@@ -1,7 +1,7 @@
1
1
  import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
2
2
 
3
3
  declare const PopupMenu: {
4
- ({ children, onToggleCallback, autoClose, autoPosition, shouldPreventDefault }: PopupMenuType): any;
4
+ ({ children, onToggleCallback, autoClose, autoPosition, }: PopupMenuType): any;
5
5
  Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, dataTestId, }: PopupMenuButtonType) => JSX.Element;
6
6
  Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable, noBackDrop, }: PopupMenuBodyType) => JSX.Element;
7
7
  };
@@ -5,3 +5,7 @@ export declare const PLACEHOLDERS: {
5
5
  };
6
6
  export declare const DEFAULT_FIELD_TITLE = "Key not available";
7
7
  export declare const DO_NOT_SHOW_LABEL: unique symbol;
8
+ export declare const ADD_BUTTON_WIDTH: {
9
+ MAX_WIDTH_VALUE: number;
10
+ MAX_WIDTH_CLASSNAME: string;
11
+ };
@@ -1,3 +1,3 @@
1
1
  import { IconButtonProps } from '@rjsf/utils';
2
2
 
3
- export declare const AddButton: ({ icon, iconType, registry, uiSchema, ...props }: IconButtonProps) => JSX.Element;
3
+ export declare const AddButton: ({ label, icon, iconType, registry, uiSchema, ...props }: IconButtonProps & Partial<Record<'label', string>>) => JSX.Element;
@@ -12,7 +12,7 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
12
12
  valueContainer: (base: any, state: any) => any;
13
13
  loadingMessage: (base: any) => any;
14
14
  noOptionsMessage: (base: any) => any;
15
- multiValue: (base: any, state: any) => any;
15
+ multiValue: (base: any) => any;
16
16
  };
17
17
  /**
18
18
  * Returns the redirection props for a url
@@ -24,3 +24,4 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
24
24
  * Infers the type for json schema from value type
25
25
  */
26
26
  export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
27
+ export declare const getTippyWrapperWithContent: (content: any) => (children: any) => JSX.Element;
@@ -140,8 +140,7 @@ export interface ErrorScreenNotAuthorizedProps {
140
140
  }
141
141
  export declare enum ImageType {
142
142
  Large = "large",
143
- Medium = "medium",
144
- SMALL = "small"
143
+ Medium = "medium"
145
144
  }
146
145
  export interface InfoColourBarType {
147
146
  message: React.ReactNode;
@@ -214,7 +213,6 @@ export interface PopupMenuType {
214
213
  onToggleCallback?: (isOpen: boolean) => void;
215
214
  autoClose?: boolean;
216
215
  autoPosition?: boolean;
217
- shouldPreventDefault?: boolean;
218
216
  }
219
217
  export interface PopupMenuButtonType {
220
218
  children?: ReactNode;
@@ -17,9 +17,6 @@ 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';
22
- export * from './FeatureDescription';
23
20
  export * from './CICDHistory';
24
21
  export * from './GitCommitInfoGeneric';
25
22
  export * from './Error';
@@ -1,7 +1,6 @@
1
1
  import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
2
2
  import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
3
3
  import { MaterialInfo, SortingOrder } from '../Common';
4
- import { ReactElement } from 'react';
5
4
 
6
5
  interface HighlightSearchTextProps {
7
6
  /**
@@ -27,7 +26,6 @@ export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => J
27
26
  export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
28
27
  export declare const isNullOrUndefined: (value: unknown) => boolean;
29
28
  export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
30
- export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
31
29
  export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
32
30
  export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
33
31
  export declare const decode: (data: any, isEncoded?: boolean) => {};
@@ -43,10 +43,6 @@ export declare enum DeploymentWithConfigType {
43
43
  LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG",
44
44
  SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG"
45
45
  }
46
- export declare enum EnvironmentTypeEnum {
47
- production = "Production",
48
- nonProduction = "Non-Production"
49
- }
50
46
  export declare enum TIMELINE_STATUS {
51
47
  DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
52
48
  GIT_COMMIT = "GIT_COMMIT",
@@ -4,6 +4,5 @@ export * from './Helpers';
4
4
  export * from './types';
5
5
  export * from './Providers';
6
6
  export * from './constants';
7
- export * from './Services';
8
7
  export * from './Store';
9
8
  export * from './Hooks';
@@ -1,4 +1,4 @@
1
- import { EnvironmentTypeEnum, PatchOperationType } from './constants';
1
+ import { PatchOperationType } from './constants';
2
2
  import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes } from '../Common';
3
3
 
4
4
  export declare enum EnvType {
@@ -351,9 +351,6 @@ export declare enum ResourceKindType {
351
351
  cluster = "cluster",
352
352
  release = "release",
353
353
  releaseTrack = "release-track",
354
- tenant = "tenant",
355
- installation = "installation",
356
- environment = "environment",
357
354
  cdPipeline = "cd-pipeline"
358
355
  }
359
356
  /**
@@ -402,10 +399,6 @@ export type IntersectionOptions = {
402
399
  defaultIntersecting?: boolean;
403
400
  };
404
401
  export type IntersectionChangeHandler = (entry: IntersectionObserverEntry) => void;
405
- export interface InputFieldState<T = string> {
406
- value: T;
407
- error: string;
408
- }
409
402
  export declare enum AggregationKeys {
410
403
  Workloads = "Workloads",
411
404
  Networking = "Networking",
@@ -418,38 +411,6 @@ export declare enum AggregationKeys {
418
411
  Namespaces = "Namespaces"
419
412
  }
420
413
  export type AggregationKeysType = keyof typeof AggregationKeys;
421
- export interface EnvironmentType {
422
- /**
423
- * Unique identifier for the environment
424
- */
425
- id: number;
426
- /**
427
- * Name of the environment
428
- */
429
- name: string;
430
- /**
431
- * Associated namespace for the environment
432
- */
433
- namespace: string;
434
- /**
435
- * Type of the environment
436
- */
437
- environmentType: EnvironmentTypeEnum;
438
- /**
439
- * Associated cluster for the environment
440
- */
441
- cluster: string;
442
- }
443
- export interface CreatedByDTO {
444
- icon: boolean;
445
- id: number;
446
- name: string;
447
- }
448
- export declare enum DependencyType {
449
- UPSTREAM = "upstream",
450
- DOWNSTREAM = "downstream",
451
- LEVEL = "level"
452
- }
453
414
  export interface scrollableInterface {
454
415
  autoBottomScroll: boolean;
455
416
  }
@@ -8,7 +8,6 @@ export declare const MESSAGES: {
8
8
  CAN_NOT_START_END_WITH_SEPARATORS: string;
9
9
  getMinMaxCharMessage: (min: number, max: number) => string;
10
10
  getMaxCharMessage: (max: number) => string;
11
- getMinCharMessage: (min: number) => string;
12
11
  VALID_POSITIVE_NUMBER: string;
13
12
  VALID_POSITIVE_INTEGER: string;
14
13
  MAX_SAFE_INTEGER: string;
@@ -16,8 +15,5 @@ export declare const MESSAGES: {
16
15
  export declare const requiredField: (value: string) => ValidationResponseType;
17
16
  export declare const validateName: (name: string) => ValidationResponseType;
18
17
  export declare const validateDescription: (description: string) => ValidationResponseType;
19
- export declare const validateStringLength: (value: string, maxLimit: number, minLimit: number) => ValidationResponseType;
20
18
  export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
21
19
  export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
22
- export declare const validateURL: (url: string, allowBase64Url?: boolean) => ValidationResponseType;
23
- export declare const validateIfImageExist: (url: string) => Promise<ValidationResponseType>;