@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.
Files changed (59) 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/InfoColorBar/InfoColourbar.d.ts +1 -1
  5. package/dist/Common/Modals/Modal.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/common/FieldRow.d.ts +1 -4
  10. package/dist/Common/RJSF/common/types.d.ts +1 -1
  11. package/dist/Common/RJSF/constants.d.ts +4 -1
  12. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
  13. package/dist/Common/RJSF/templates/TitleField.d.ts +1 -1
  14. package/dist/Common/RJSF/templates/index.d.ts +0 -1
  15. package/dist/Common/RJSF/utils.d.ts +3 -1
  16. package/dist/Common/Types.d.ts +1 -9
  17. package/dist/Shared/Components/index.d.ts +0 -3
  18. package/dist/Shared/Helpers.d.ts +0 -2
  19. package/dist/Shared/constants.d.ts +0 -4
  20. package/dist/Shared/index.d.ts +0 -1
  21. package/dist/Shared/types.d.ts +1 -44
  22. package/dist/Shared/validations.d.ts +0 -4
  23. package/dist/assets/index.css +1 -1
  24. package/dist/{cssMode-9a190214.js → cssMode-9727a0fd.js} +1 -1
  25. package/dist/{freemarker2-dea8698e.js → freemarker2-cfb11288.js} +1 -1
  26. package/dist/{handlebars-c498c187.js → handlebars-83c4c79e.js} +1 -1
  27. package/dist/{html-f48421bf.js → html-dc49fd50.js} +1 -1
  28. package/dist/{htmlMode-9b00320e.js → htmlMode-19c03119.js} +1 -1
  29. package/dist/{index-7ecdad6b.js → index-f1b5774e.js} +18339 -18547
  30. package/dist/index.d.ts +0 -1
  31. package/dist/index.js +334 -345
  32. package/dist/{javascript-127e4efb.js → javascript-318d84c2.js} +1 -1
  33. package/dist/{jsonMode-7e25a4dc.js → jsonMode-61cb9867.js} +1 -1
  34. package/dist/{liquid-a0ae58fa.js → liquid-f383a9fb.js} +1 -1
  35. package/dist/{mdx-e1813b4c.js → mdx-4a3b251d.js} +1 -1
  36. package/dist/{python-de0a209c.js → python-8a6af790.js} +1 -1
  37. package/dist/{razor-1187b450.js → razor-1412de81.js} +1 -1
  38. package/dist/{tsMode-cd7e7fd5.js → tsMode-b9637688.js} +1 -1
  39. package/dist/{typescript-b1bb1673.js → typescript-49d0fdfe.js} +1 -1
  40. package/dist/{xml-a0fb8104.js → xml-f4cb6baf.js} +1 -1
  41. package/dist/{yaml-8ec5f04b.js → yaml-7533723e.js} +1 -1
  42. package/package.json +5 -5
  43. package/dist/Common/EmptyState/types.d.ts +0 -13
  44. package/dist/Common/RJSF/templates/Description.d.ts +0 -3
  45. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +0 -3
  46. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +0 -4
  47. package/dist/Shared/Components/FeatureDescription/constant.d.ts +0 -8
  48. package/dist/Shared/Components/FeatureDescription/index.d.ts +0 -2
  49. package/dist/Shared/Components/FeatureDescription/types.d.ts +0 -19
  50. package/dist/Shared/Components/FeatureDescription/utils.d.ts +0 -6
  51. package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +0 -4
  52. package/dist/Shared/Components/ImageWithFallback/index.d.ts +0 -2
  53. package/dist/Shared/Components/ImageWithFallback/types.d.ts +0 -12
  54. package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +0 -4
  55. package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +0 -2
  56. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +0 -9
  57. package/dist/Shared/Services/common.service.d.ts +0 -3
  58. package/dist/Shared/Services/index.d.ts +0 -2
  59. package/dist/Shared/Services/types.d.ts +0 -17
@@ -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,4 +1,4 @@
1
1
  import { InfoColourBarType } from '../Types';
2
2
 
3
- declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, hideIcon }: InfoColourBarType) => JSX.Element;
3
+ declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, }: InfoColourBarType) => JSX.Element;
4
4
  export default InfoColourBar;
@@ -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;
@@ -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
  };
@@ -1,6 +1,3 @@
1
- import { DO_NOT_SHOW_LABEL } from '../constants';
2
1
  import { FieldRowProps } from './types';
3
2
 
4
- export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id, shouldAlignCenter, }: Omit<FieldRowProps, "label"> & {
5
- label: FieldRowProps['label'] | typeof DO_NOT_SHOW_LABEL;
6
- }) => JSX.Element;
3
+ export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id, rawDescription, shouldAlignCenter, }: FieldRowProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { FieldTemplateProps } from '@rjsf/utils';
2
2
 
3
- export interface FieldRowProps extends Pick<FieldTemplateProps, 'children' | 'label' | 'required' | 'id'> {
3
+ export interface FieldRowProps extends Pick<FieldTemplateProps, 'children' | 'label' | 'required' | 'id' | 'rawDescription'> {
4
4
  showLabel?: boolean;
5
5
  /**
6
6
  * @default true
@@ -4,4 +4,7 @@ export declare const PLACEHOLDERS: {
4
4
  OBJECT_KEY: string;
5
5
  };
6
6
  export declare const DEFAULT_FIELD_TITLE = "Key not available";
7
- export declare const DO_NOT_SHOW_LABEL: unique symbol;
7
+ export declare const ADD_BUTTON_WIDTH: {
8
+ MAX_WIDTH_VALUE: number;
9
+ MAX_WIDTH_CLASSNAME: string;
10
+ };
@@ -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;
@@ -1,3 +1,3 @@
1
1
  import { TitleFieldProps } from '@rjsf/utils';
2
2
 
3
- export declare const TitleField: ({ id, title, required }: TitleFieldProps) => JSX.Element;
3
+ export declare const TitleField: ({ id, title, required, description }: TitleFieldProps & Record<'description', string>) => JSX.Element;
@@ -2,7 +2,6 @@ export { ArrayFieldTemplate } from './ArrayFieldTemplate';
2
2
  export { ArrayFieldItemTemplate } from './ArrayFieldItemTemplate';
3
3
  export { BaseInput as BaseInputTemplate } from './BaseInput';
4
4
  export * from './ButtonTemplates';
5
- export { Description as DescriptionFieldTemplate } from './Description';
6
5
  export { Field as FieldTemplate } from './Field';
7
6
  export { FieldErrorTemplate } from './FieldErrorTemplate';
8
7
  export { ObjectFieldTemplate } from './ObjectFieldTemplate';
@@ -1,3 +1,4 @@
1
+ import { default as Tippy } from '@tippyjs/react';
1
2
  import { TranslatableString } from '@rjsf/utils';
2
3
 
3
4
  /**
@@ -12,7 +13,7 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
12
13
  valueContainer: (base: any, state: any) => any;
13
14
  loadingMessage: (base: any) => any;
14
15
  noOptionsMessage: (base: any) => any;
15
- multiValue: (base: any, state: any) => any;
16
+ multiValue: (base: any) => any;
16
17
  };
17
18
  /**
18
19
  * Returns the redirection props for a url
@@ -24,3 +25,4 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
24
25
  * Infers the type for json schema from value type
25
26
  */
26
27
  export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
28
+ export declare const getTippyWrapperWithContent: (content: any, placement?: React.ComponentProps<typeof Tippy>['placement']) => (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;
@@ -156,12 +155,6 @@ export interface InfoColourBarType {
156
155
  linkClass?: string;
157
156
  internalLink?: boolean;
158
157
  styles?: CSSProperties;
159
- /**
160
- * If true, the icon is not shown
161
- *
162
- * @default false
163
- */
164
- hideIcon?: boolean;
165
158
  }
166
159
  export interface ReloadType {
167
160
  reload?: (event?: any) => void;
@@ -220,7 +213,6 @@ export interface PopupMenuType {
220
213
  onToggleCallback?: (isOpen: boolean) => void;
221
214
  autoClose?: boolean;
222
215
  autoPosition?: boolean;
223
- shouldPreventDefault?: boolean;
224
216
  }
225
217
  export interface PopupMenuButtonType {
226
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,42 +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
- * If true, denotes virtual environment
444
- */
445
- isVirtual: boolean;
446
- }
447
- export interface CreatedByDTO {
448
- icon: boolean;
449
- id: number;
450
- name: string;
451
- }
452
- export declare enum DependencyType {
453
- UPSTREAM = "upstream",
454
- DOWNSTREAM = "downstream",
455
- LEVEL = "level"
456
- }
457
414
  export interface scrollableInterface {
458
415
  autoBottomScroll: boolean;
459
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>;