@devtron-labs/devtron-fe-common-lib 0.0.79 → 0.0.81-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 (55) hide show
  1. package/dist/Common/Api.d.ts +1 -0
  2. package/dist/Common/Common.service.d.ts +3 -1
  3. package/dist/Common/Constants.d.ts +11 -0
  4. package/dist/Common/ErrorPage.d.ts +1 -1
  5. package/dist/Common/GenericDescription/GenericDescription.d.ts +4 -0
  6. package/dist/Common/GenericDescription/constant.d.ts +2 -0
  7. package/dist/Common/GenericDescription/index.d.ts +2 -0
  8. package/dist/Common/GenericDescription/types.d.ts +14 -0
  9. package/dist/Common/Helper.d.ts +11 -2
  10. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcut.d.ts +2 -0
  11. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutContext.d.ts +3 -0
  12. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +4 -0
  13. package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +2 -0
  14. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +8 -0
  15. package/dist/Common/Hooks/index.d.ts +1 -0
  16. package/dist/Common/Markdown/MarkDown.d.ts +4 -0
  17. package/dist/Common/Markdown/Types.d.ts +7 -0
  18. package/dist/Common/Markdown/constant.d.ts +28 -0
  19. package/dist/Common/Markdown/index.d.ts +1 -0
  20. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
  21. package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +5 -0
  22. package/dist/Common/SegmentedBarChart/constants.d.ts +5 -0
  23. package/dist/Common/SegmentedBarChart/index.d.ts +2 -0
  24. package/dist/Common/SegmentedBarChart/types.d.ts +11 -0
  25. package/dist/Common/Types.d.ts +3 -1
  26. package/dist/Common/index.d.ts +3 -0
  27. package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +1 -1
  28. package/dist/Shared/Components/ActivityIndicator/types.d.ts +2 -0
  29. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
  30. package/dist/Shared/Components/BulkSelection/types.d.ts +1 -0
  31. package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +18 -0
  32. package/dist/Shared/Components/ButtonWithSelector/index.d.ts +1 -0
  33. package/dist/Shared/Components/ButtonWithSelector/types.d.ts +10 -0
  34. package/dist/Shared/Components/ReactSelect/utils.d.ts +11 -0
  35. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +2 -1
  36. package/dist/Shared/Components/ScannedByToolModal/types.d.ts +2 -0
  37. package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +4 -0
  38. package/dist/Shared/Components/ScannedObjectBar/index.d.ts +1 -0
  39. package/dist/Shared/Components/ScannedObjectBar/types.d.ts +7 -0
  40. package/dist/Shared/Components/Vulnerabilities/index.d.ts +1 -0
  41. package/dist/Shared/Components/Vulnerabilities/utils.d.ts +4 -0
  42. package/dist/Shared/Components/index.d.ts +2 -0
  43. package/dist/Shared/Helpers.d.ts +3 -1
  44. package/dist/Shared/Providers/ImageSelectionUtility/ImageSelectionUtility.d.ts +5 -0
  45. package/dist/Shared/Providers/ImageSelectionUtility/index.d.ts +1 -0
  46. package/dist/Shared/Providers/ImageSelectionUtility/types.d.ts +9 -0
  47. package/dist/Shared/Providers/index.d.ts +1 -0
  48. package/dist/Shared/constants.d.ts +14 -0
  49. package/dist/Shared/index.d.ts +1 -0
  50. package/dist/Shared/types.d.ts +143 -13
  51. package/dist/Shared/validations.d.ts +10 -0
  52. package/dist/assets/index.css +1 -1
  53. package/dist/index.d.ts +4 -0
  54. package/dist/index.js +7315 -6768
  55. package/package.json +8 -3
@@ -3,6 +3,7 @@ import { MutableRefObject } from 'react';
3
3
 
4
4
  export declare const post: (url: string, data: object, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType>;
5
5
  export declare const put: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
6
+ export declare const patch: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
6
7
  export declare const get: (url: string, options?: APIOptions) => Promise<ResponseType>;
7
8
  export declare const trash: (url: string, data?: object, options?: APIOptions) => Promise<ResponseType>;
8
9
  /**
@@ -1,4 +1,4 @@
1
- import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType } from './Types';
1
+ import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery } from './Types';
2
2
 
3
3
  export declare const getTeamListMin: () => Promise<TeamList>;
4
4
  interface UserRole extends ResponseType {
@@ -14,9 +14,11 @@ export declare const SourceTypeMap: {
14
14
  };
15
15
  export declare function getUserRole(appName?: string): Promise<UserRole>;
16
16
  export declare function setImageTags(request: any, pipelineId: number, artifactId: number): Promise<ResponseType<any>>;
17
+ export declare const processCDMaterialServiceResponse: (cdMaterialsResult: any, stage: DeploymentNodeType, offset: number, filter: CDMaterialFilterQuery, disableDefaultSelection?: boolean) => CDMaterialResponseType;
17
18
  export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceEnum, cdMaterialID: number, stage: DeploymentNodeType, signal: AbortSignal, queryParams?: CDMaterialServiceQueryParams) => Promise<CDMaterialResponseType>;
18
19
  export declare function extractImage(image: string): string;
19
20
  export declare function createGitCommitUrl(url: string, revision: string): string;
20
21
  export declare function fetchChartTemplateVersions(): Promise<ResponseType<any>>;
21
22
  export declare const getDefaultConfig: () => Promise<ResponseType>;
23
+ export declare function getWebhookEventsForEventId(eventId: string | number): Promise<ResponseType<any>>;
22
24
  export {};
@@ -25,6 +25,8 @@ export declare const URLS: {
25
25
  GETTING_STARTED: string;
26
26
  STACK_MANAGER_ABOUT: string;
27
27
  APP_LIST_HELM: string;
28
+ CREATE: string;
29
+ RELEASES: string;
28
30
  };
29
31
  export declare const ROUTES: {
30
32
  APP_ARTIFACT_PROMOTE_MATERIAL: string;
@@ -41,6 +43,9 @@ export declare const ROUTES: {
41
43
  SERVER_INFO_API: string;
42
44
  ATTRIBUTES_USER: string;
43
45
  UPDATE: string;
46
+ CLUSTER_NOTE: string;
47
+ APPLICATION_NOTE: string;
48
+ GIT_HOST_EVENT: string;
44
49
  };
45
50
  export declare enum KEY_VALUE {
46
51
  KEY = "key",
@@ -197,6 +202,7 @@ export declare enum ReactSelectInputAction {
197
202
  export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
198
203
  export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
199
204
  export declare const API_STATUS_CODES: {
205
+ BAD_REQUEST: number;
200
206
  UNAUTHORIZED: number;
201
207
  PERMISSION_DENIED: number;
202
208
  NOT_FOUND: number;
@@ -222,3 +228,8 @@ export declare const POSTHOG_EVENT_ONBOARDING: {
222
228
  export declare const MAX_LOGIN_COUNT = 5;
223
229
  export declare const BULK_EDIT_HEADER = "Bulk Edit";
224
230
  export declare const LOGIN_COUNT = "login-count";
231
+ export declare const DATE_TIME_FORMATS: {
232
+ TWELVE_HOURS_FORMAT: string;
233
+ TWELVE_HOURS_FORMAT_WITHOUT_WEEKDAY: string;
234
+ TWELVE_HOURS_EXPORT_FORMAT: string;
235
+ };
@@ -1,4 +1,4 @@
1
1
  import { ErrorPageType } from './Types';
2
2
 
3
- declare const ErrorPage: ({ code, image, title, subTitle, imageType, heightToDeduct }: ErrorPageType) => JSX.Element;
3
+ declare const ErrorPage: ({ code, image, title, subTitle, imageType, heightToDeduct, reload }: ErrorPageType) => JSX.Element;
4
4
  export default ErrorPage;
@@ -0,0 +1,4 @@
1
+ import { GenericDescriptionProps } from './types';
2
+
3
+ declare const GenericDescription: ({ text, updatedBy, updatedOn, isDescriptionPreview, tabIndex, updateDescription, title, minEditorHeight, }: GenericDescriptionProps) => JSX.Element;
4
+ export default GenericDescription;
@@ -0,0 +1,2 @@
1
+ export declare const DESCRIPTION_EMPTY_ERROR_MSG = "Readme cannot be empty. Please add some information or cancel the changes.";
2
+ export declare const DESCRIPTION_UNSAVED_CHANGES_MSG = "Are you sure you want to discard your changes?";
@@ -0,0 +1,2 @@
1
+ export { default as GenericDescription } from './GenericDescription';
2
+ export * from './types';
@@ -0,0 +1,14 @@
1
+ export interface GenericDescriptionProps {
2
+ text?: string;
3
+ updatedBy?: string;
4
+ updatedOn?: string;
5
+ isDescriptionPreview: boolean;
6
+ updateDescription: (string: any) => Promise<void>;
7
+ title: string;
8
+ tabIndex?: number;
9
+ minEditorHeight?: number;
10
+ }
11
+ export declare enum MDEditorSelectedTabType {
12
+ WRITE = "write",
13
+ PREVIEW = "preview"
14
+ }
@@ -1,5 +1,5 @@
1
1
  import { AsyncOptions, UseSearchString } from './Types';
2
- import { default as React } from 'react';
2
+ import { default as React, SyntheticEvent } from 'react';
3
3
 
4
4
  export declare function showError(serverError: any, showToastOnUnknownError?: boolean, hideAccessError?: boolean): void;
5
5
  interface ConditionalWrapper<T> {
@@ -10,6 +10,7 @@ interface ConditionalWrapper<T> {
10
10
  export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
11
11
  export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 0 | 1 | -1;
12
12
  export declare const stopPropagation: (event: any) => void;
13
+ export declare const preventDefault: (event: SyntheticEvent) => void;
13
14
  export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
14
15
  export declare function getRandomColor(email: string): string;
15
16
  export declare const getAlphabetIcon: (str: string, rootClassName?: string) => JSX.Element;
@@ -47,7 +48,7 @@ export declare const processDeployedTime: (lastDeployed: any, isArgoInstalled: a
47
48
  * @param url URL to which the search params needs to be added
48
49
  * @param params Object for the search parameters
49
50
  */
50
- export declare const getUrlWithSearchParams: (url: string, params: Record<string | number, any>) => string;
51
+ export declare const getUrlWithSearchParams: (url: string, params?: Record<string | number, any>) => string;
51
52
  /**
52
53
  * Custom exception logger function for logging errors to sentry
53
54
  */
@@ -77,4 +78,12 @@ export declare const handleRelativeDateSorting: (dateStringA: any, dateStringB:
77
78
  * Returns a stringified YAML with default indentation & line width
78
79
  */
79
80
  export declare const YAMLStringify: (obj: object | unknown, option?: object) => string;
81
+ /**
82
+ * compare Object Length of the object
83
+ */
84
+ export declare const compareObjectLength: (objA: any, objB: any) => boolean;
85
+ /**
86
+ * Return deep copy of the object
87
+ */
88
+ export declare function deepEqual(configA: any, configB: any): boolean;
80
89
  export {};
@@ -0,0 +1,2 @@
1
+ declare const useRegisterShortcut: () => import('./types').UseRegisterShortcutContextType;
2
+ export default useRegisterShortcut;
@@ -0,0 +1,3 @@
1
+ import { UseRegisterShortcutContextType } from './types';
2
+
3
+ export declare const context: import('react').Context<UseRegisterShortcutContextType>;
@@ -0,0 +1,4 @@
1
+ import { UseRegisterShortcutProviderType } from './types';
2
+
3
+ declare const UseRegisterShortcutProvider: ({ children }: UseRegisterShortcutProviderType) => JSX.Element;
4
+ export default UseRegisterShortcutProvider;
@@ -0,0 +1,2 @@
1
+ export { default as useRegisterShortcut } from './UseRegisterShortcut';
2
+ export { default as UseRegisterShortcutProvider } from './UseRegisterShortcutProvider';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export interface UseRegisterShortcutContextType {
3
+ registerShortcut: boolean;
4
+ setRegisterShortcut: (allowShortcut: boolean) => void;
5
+ }
6
+ export interface UseRegisterShortcutProviderType {
7
+ children: React.ReactElement;
8
+ }
@@ -2,3 +2,4 @@ export { useSuperAdmin } from './UseSuperAdmin/UseSuperAdmin';
2
2
  export { useClickOutside } from './UseClickOutside/UseClickOutside';
3
3
  export { useWindowSize } from './UseWindowSize/UseWindowSize';
4
4
  export * from './useUrlFilters';
5
+ export * from './UseRegisterShortcut';
@@ -0,0 +1,4 @@
1
+ import { MarkDownProps } from './Types';
2
+
3
+ declare const MarkDown: ({ setExpandableIcon, markdown, className, breaks, disableEscapedText, ...props }: MarkDownProps) => JSX.Element;
4
+ export default MarkDown;
@@ -0,0 +1,7 @@
1
+ export interface MarkDownProps {
2
+ setExpandableIcon?: (showExpandedIcon: boolean) => void;
3
+ markdown: string;
4
+ className?: string;
5
+ breaks?: boolean;
6
+ disableEscapedText?: boolean;
7
+ }
@@ -0,0 +1,28 @@
1
+ export declare const DEFAULT_MARKDOWN_EDITOR_PREVIEW_MESSAGE = "\n<br>\nNothing to preview\n";
2
+ export declare const MARKDOWN_EDITOR_COMMANDS: string[][];
3
+ export declare enum MARKDOWN_EDITOR_COMMAND_TITLE {
4
+ HEADER = "header",
5
+ BOLD = "bold",
6
+ ITALIC = "italic",
7
+ STRIKETHROUGH = "strikethrough",
8
+ LINK = "link",
9
+ QUOTE = "quote",
10
+ CODE = "code",
11
+ IMAGE = "image",
12
+ UNORDERED_LIST = "unordered-list",
13
+ ORDERED_LIST = "ordered-list",
14
+ CHECKED_LIST = "checked-list"
15
+ }
16
+ export declare const MARKDOWN_EDITOR_COMMAND_ICON_TIPPY_CONTENT: {
17
+ header: string;
18
+ bold: string;
19
+ italic: string;
20
+ strikethrough: string;
21
+ link: string;
22
+ quote: string;
23
+ code: string;
24
+ image: string;
25
+ "unordered-list": string;
26
+ "ordered-list": string;
27
+ "checked-list": string;
28
+ };
@@ -0,0 +1 @@
1
+ export { default as MarkDown } from './MarkDown';
@@ -1,3 +1,3 @@
1
1
  import { ScanVulnerabilitiesTableProps } from '../Types';
2
2
 
3
- export default function ScanVulnerabilitiesTable({ vulnerabilities }: ScanVulnerabilitiesTableProps): JSX.Element;
3
+ export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick }: ScanVulnerabilitiesTableProps): JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { SegmentedBarChartProps } from './types';
2
+ import { default as React } from 'react';
3
+
4
+ declare const SegmentedBarChart: React.FC<SegmentedBarChartProps>;
5
+ export default SegmentedBarChart;
@@ -0,0 +1,5 @@
1
+ export declare const FALLBACK_ENTITY: {
2
+ color: string;
3
+ label: string;
4
+ value: number;
5
+ };
@@ -0,0 +1,2 @@
1
+ export { default as SegmentedBarChart } from './SegmentedBarChart';
2
+ export { type SegmentedBarChartProps } from './types';
@@ -0,0 +1,11 @@
1
+ export type Entity = {
2
+ color: string;
3
+ label: string;
4
+ value: number;
5
+ };
6
+ export interface SegmentedBarChartProps {
7
+ entities: NonNullable<Entity[]>;
8
+ rootClassName?: string;
9
+ countClassName?: string;
10
+ labelClassName?: string;
11
+ }
@@ -116,7 +116,7 @@ export interface GenericEmptyStateType {
116
116
  layout?: 'row' | 'column';
117
117
  contentClassName?: string;
118
118
  }
119
- export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'> {
119
+ export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'>, Pick<ErrorScreenManagerProps, 'reload'> {
120
120
  code: number;
121
121
  heightToDeduct?: number;
122
122
  }
@@ -467,6 +467,8 @@ export interface VulnerabilityType {
467
467
  }
468
468
  export interface ScanVulnerabilitiesTableProps {
469
469
  vulnerabilities: VulnerabilityType[];
470
+ hidePolicy?: boolean;
471
+ shouldStick?: boolean;
470
472
  }
471
473
  export interface MaterialInfo {
472
474
  revision: string;
@@ -50,3 +50,6 @@ export * from './AddCDButton';
50
50
  export * from './CustomInput';
51
51
  export * from './DraggableWrapper';
52
52
  export * from './Pagination';
53
+ export * from './Markdown';
54
+ export * from './GenericDescription';
55
+ export * from './SegmentedBarChart';
@@ -1,4 +1,4 @@
1
1
  import { ActivityIndicatorProps } from './types';
2
2
 
3
- declare const ActivityIndicator: ({ rootClassName }: ActivityIndicatorProps) => JSX.Element;
3
+ declare const ActivityIndicator: ({ rootClassName, backgroundColorClass, iconSizeClass, }: ActivityIndicatorProps) => JSX.Element;
4
4
  export default ActivityIndicator;
@@ -1,3 +1,5 @@
1
1
  export interface ActivityIndicatorProps {
2
2
  rootClassName?: string;
3
+ backgroundColorClass?: string;
4
+ iconSizeClass?: string;
3
5
  }
@@ -1,4 +1,4 @@
1
1
  import { BulkSelectionProps } from './types';
2
2
 
3
- declare const BulkSelection: <T>({ showPagination }: BulkSelectionProps) => JSX.Element;
3
+ declare const BulkSelection: <T>({ showPagination, disabled }: BulkSelectionProps) => JSX.Element;
4
4
  export default BulkSelection;
@@ -28,6 +28,7 @@ export interface UseBulkSelectionReturnType<T> extends GetBulkSelectionCheckboxV
28
28
  }
29
29
  export interface BulkSelectionProps {
30
30
  showPagination: boolean;
31
+ disabled?: boolean;
31
32
  }
32
33
  export interface BulkSelectionDropdownItemsType {
33
34
  locator: BulkSelectionEvents;
@@ -0,0 +1,18 @@
1
+ import { ButtonWithSelectorProps } from './types';
2
+
3
+ /**
4
+ * Button With Selector
5
+ * @param content Content to show in button
6
+ * @param onClick Handler Function for button click
7
+ * @param children Dropdown Content
8
+ * @param className Other Classes to be applied
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <ButtonWithSelector content='Create Job' onClick={() => {}} className=''>
13
+ * {dropdownOptions}
14
+ * </ButtonWithSelector>
15
+ * ```
16
+ */
17
+ declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, }: ButtonWithSelectorProps) => JSX.Element;
18
+ export default ButtonWithSelector;
@@ -0,0 +1 @@
1
+ export { default as ButtonWithSelector } from './ButtonWithSelector';
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export interface ButtonWithSelectorProps {
4
+ content: ReactNode;
5
+ onClick: () => void;
6
+ children: ReactNode;
7
+ className?: string;
8
+ popUpBodyClassName?: string;
9
+ showPopUp?: boolean;
10
+ }
@@ -13,3 +13,14 @@ export declare const getCustomOptionSelectionStyle: (styleOverrides?: {}) => (ba
13
13
  export declare const SelectOption: (props: any) => JSX.Element;
14
14
  export declare const LoadingIndicator: () => JSX.Element;
15
15
  export declare const GroupHeading: (props: any) => JSX.Element;
16
+ export declare const commonSelectStyles: {
17
+ container: (base: any, state: any) => any;
18
+ menuList: (base: any) => any;
19
+ control: (base: any, state: any) => any;
20
+ option: (base: any, state: any) => any;
21
+ dropdownIndicator: (base: any, state: any) => any;
22
+ valueContainer: (base: any) => any;
23
+ loadingMessage: (base: any) => any;
24
+ noOptionsMessage: (base: any) => any;
25
+ placeholder: (base: any) => any;
26
+ };
@@ -1,4 +1,5 @@
1
1
  import { ScannedByToolModalProps } from './types';
2
+ import { default as React } from 'react';
2
3
 
3
- declare const ScannedByToolModal: ({ scanToolId }: ScannedByToolModalProps) => JSX.Element;
4
+ declare const ScannedByToolModal: React.FC<ScannedByToolModalProps>;
4
5
  export default ScannedByToolModal;
@@ -1,3 +1,5 @@
1
1
  export interface ScannedByToolModalProps {
2
2
  scanToolId?: number;
3
+ fontSize?: number;
4
+ spacingBetweenTextAndIcon?: number;
3
5
  }
@@ -0,0 +1,4 @@
1
+ import { ScannedObjectBarProps } from './types';
2
+
3
+ declare const ScannedObjectBar: ({ criticalVulnerabilitiesCount, moderateVulnerabilitiesCount, lowVulnerabilitiesCount, objectBarClassName, removeObjectCountMargin, }: ScannedObjectBarProps) => JSX.Element;
4
+ export default ScannedObjectBar;
@@ -0,0 +1 @@
1
+ export { default as ScannedObjectBar } from './ScannedObjectBar';
@@ -0,0 +1,7 @@
1
+ export interface ScannedObjectBarProps {
2
+ criticalVulnerabilitiesCount: number;
3
+ moderateVulnerabilitiesCount: number;
4
+ lowVulnerabilitiesCount: number;
5
+ objectBarClassName?: string;
6
+ removeObjectCountMargin?: boolean;
7
+ }
@@ -1 +1,2 @@
1
1
  export { default as Vulnerabilities } from './Vulnerabilities';
2
+ export * from './utils';
@@ -0,0 +1,4 @@
1
+ import { LastExecutionResponseType, LastExecutionResultType } from '../../types';
2
+
3
+ export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
4
+ export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;
@@ -10,8 +10,10 @@ export * from './FilterChips';
10
10
  export * from './ActivityIndicator';
11
11
  export * from './GenericSectionErrorState';
12
12
  export * from './KeyValueList';
13
+ export * from './ScannedObjectBar';
13
14
  export * from './InfoIconTippy';
14
15
  export * from './EditableTextArea';
15
16
  export * from './Header';
16
17
  export * from './AnnouncementBanner';
17
18
  export * from './ButtonWithLoader';
19
+ export * from './ButtonWithSelector';
@@ -1,4 +1,4 @@
1
- import { GitTriggers } from './types';
1
+ import { GitTriggers, WebhookEventNameType } from './types';
2
2
  import { MaterialInfo } from '../Common';
3
3
 
4
4
  interface HighlightSearchTextProps {
@@ -20,4 +20,6 @@ export declare const preventBodyScroll: (lock: boolean) => void;
20
20
  export declare const getIsMaterialInfoAvailable: (materialInfo: MaterialInfo[]) => boolean;
21
21
  export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTriggers;
22
22
  export declare const caseInsensitiveStringComparator: (a: string, b: string) => number;
23
+ export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
24
+ export declare const isNullOrUndefined: (value: unknown) => boolean;
23
25
  export {};
@@ -0,0 +1,5 @@
1
+ import { ImageSelectionUtilityContextType, ImageSelectionUtilityProviderProps } from './types';
2
+
3
+ export declare const ImageSelectionUtilityContext: import('react').Context<ImageSelectionUtilityContextType>;
4
+ export declare const useImageSelectionUtilityContext: () => ImageSelectionUtilityContextType;
5
+ export declare const ImageSelectionUtilityProvider: ({ children, value }: ImageSelectionUtilityProviderProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './ImageSelectionUtility';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export interface ImageSelectionUtilityContextType {
3
+ gitCommitInfoGeneric: (...props: any[]) => JSX.Element;
4
+ getModuleInfo: (moduleName: string) => Promise<any>;
5
+ }
6
+ export interface ImageSelectionUtilityProviderProps {
7
+ children: React.ReactNode;
8
+ value: ImageSelectionUtilityContextType;
9
+ }
@@ -1 +1,2 @@
1
1
  export * from './MainContextProvider';
2
+ export * from './ImageSelectionUtility';
@@ -29,3 +29,17 @@ export declare const ModuleNameMap: {
29
29
  };
30
30
  export declare const DATE_TIME_FORMAT_STRING = "ddd DD MMM YYYY HH:mm:ss";
31
31
  export declare const API_TOKEN_PREFIX = "API-TOKEN:";
32
+ export declare enum PatchOperationType {
33
+ replace = "replace",
34
+ remove = "remove"
35
+ }
36
+ export declare enum DeploymentStageType {
37
+ PRE = "PRE",
38
+ DEPLOY = "DEPLOY",
39
+ POST = "POST"
40
+ }
41
+ export declare enum DeploymentWithConfigType {
42
+ LAST_SAVED_CONFIG = "LAST_SAVED_CONFIG",
43
+ LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG",
44
+ SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG"
45
+ }
@@ -4,3 +4,4 @@ export * from './Helpers';
4
4
  export * from './constants';
5
5
  export * from './types';
6
6
  export * from './Providers';
7
+ export * from './constants';