@devtron-labs/devtron-fe-common-lib 0.0.88-beta-2 → 0.0.88-beta-5

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 (96) hide show
  1. package/dist/Common/Api.d.ts +1 -1
  2. package/dist/Common/BreadCrumb/BreadCrumb.d.ts +1 -1
  3. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -0
  4. package/dist/Common/BreadCrumb/Types.d.ts +4 -0
  5. package/dist/Common/Checkbox.d.ts +1 -1
  6. package/dist/Common/CodeEditor/CodeEditor.d.ts +1 -1
  7. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +1 -1
  8. package/dist/Common/Common.service.d.ts +1 -1
  9. package/dist/Common/CustomTagSelector/Types.d.ts +1 -1
  10. package/dist/Common/Dialogs/DeleteDialog.d.ts +1 -1
  11. package/dist/Common/Dialogs/DialogForm.d.ts +1 -1
  12. package/dist/Common/Helper.d.ts +2 -3
  13. package/dist/Common/Hooks/useStateFilters/types.d.ts +4 -1
  14. package/dist/Common/Modals/Modal.d.ts +1 -1
  15. package/dist/Common/MultiSelectCustomization.d.ts +8 -0
  16. package/dist/Common/Policy.Types.d.ts +1 -1
  17. package/dist/Common/RJSF/common/FieldRow.d.ts +1 -1
  18. package/dist/Common/RJSF/config.d.ts +1 -1
  19. package/dist/Common/RJSF/constants.d.ts +0 -4
  20. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
  21. package/dist/Common/RJSF/types.d.ts +1 -1
  22. package/dist/Common/RJSF/utils.d.ts +1 -2
  23. package/dist/Common/RadioGroup/RadioGroup.d.ts +1 -1
  24. package/dist/Common/ResizableTextarea.d.ts +1 -1
  25. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  26. package/dist/Common/SearchBar/types.d.ts +4 -0
  27. package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +1 -1
  28. package/dist/Common/Select/Select.d.ts +1 -1
  29. package/dist/Common/Types.d.ts +6 -5
  30. package/dist/Common/index.d.ts +1 -1
  31. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +1 -1
  32. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +1 -1
  33. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +1 -1
  34. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +1 -1
  35. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +1 -1
  36. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +1 -1
  37. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +1 -1
  38. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +1 -1
  39. package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +1 -1
  40. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
  41. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +1 -1
  42. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +3 -3
  43. package/dist/Shared/Components/APIResponseHandler/types.d.ts +2 -2
  44. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +1 -1
  45. package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +1 -1
  46. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
  47. package/dist/Shared/Components/CICDHistory/service.d.ts +1 -1
  48. package/dist/Shared/Components/CICDHistory/types.d.ts +3 -3
  49. package/dist/Shared/Components/DatePicker/DateSelect.d.ts +3 -0
  50. package/dist/Shared/Components/DatePicker/SingleDatePickerComponent.d.ts +12 -0
  51. package/dist/Shared/Components/DatePicker/TimeSelect.d.ts +3 -0
  52. package/dist/Shared/Components/DatePicker/constants.d.ts +122 -0
  53. package/dist/Shared/Components/DatePicker/index.d.ts +4 -0
  54. package/dist/Shared/Components/DatePicker/types.d.ts +58 -0
  55. package/dist/Shared/Components/DatePicker/utils.d.ts +47 -0
  56. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +3 -0
  57. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +4 -0
  58. package/dist/Shared/Components/FeatureDescription/constant.d.ts +8 -0
  59. package/dist/Shared/Components/FeatureDescription/index.d.ts +2 -0
  60. package/dist/Shared/Components/FeatureDescription/types.d.ts +19 -0
  61. package/dist/Shared/Components/FeatureDescription/utils.d.ts +6 -0
  62. package/dist/Shared/Components/Header/service.d.ts +1 -1
  63. package/dist/Shared/Components/ImageCard/types.d.ts +2 -2
  64. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +2 -2
  65. package/dist/Shared/Components/ReactSelect/constants.d.ts +14 -0
  66. package/dist/Shared/Components/ReactSelect/index.d.ts +1 -0
  67. package/dist/Shared/Components/ReactSelect/utils.d.ts +4 -0
  68. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +1 -1
  69. package/dist/Shared/Components/index.d.ts +2 -0
  70. package/dist/Shared/Helpers.d.ts +2 -2
  71. package/dist/Shared/Providers/UserEmailProvider/UserEmailProvider.d.ts +6 -0
  72. package/dist/Shared/Providers/UserEmailProvider/index.d.ts +2 -0
  73. package/dist/Shared/Providers/UserEmailProvider/types.d.ts +5 -0
  74. package/dist/Shared/Providers/index.d.ts +1 -0
  75. package/dist/Shared/Providers/types.d.ts +2 -2
  76. package/dist/Shared/types.d.ts +1 -1
  77. package/dist/assets/index.css +1 -1
  78. package/dist/assets/{yaml.worker-cc1a551a.js → yaml.worker-23754585.js} +28 -28
  79. package/dist/{cssMode-d302cd0c.js → cssMode-737c2ae4.js} +1 -1
  80. package/dist/{freemarker2-d74ed1a0.js → freemarker2-8fa6ffb9.js} +1 -1
  81. package/dist/{handlebars-ff309832.js → handlebars-446e0789.js} +1 -1
  82. package/dist/{html-3067ec3f.js → html-fd748031.js} +1 -1
  83. package/dist/{htmlMode-4f605288.js → htmlMode-3ded316b.js} +1 -1
  84. package/dist/{index-f906ad2e.js → index-894b7670.js} +65634 -50418
  85. package/dist/index.js +396 -385
  86. package/dist/{javascript-6e3e74e7.js → javascript-12c768f4.js} +1 -1
  87. package/dist/{jsonMode-3cfaa464.js → jsonMode-3d012233.js} +1 -1
  88. package/dist/{liquid-7ba93def.js → liquid-fd922791.js} +1 -1
  89. package/dist/{mdx-d2d5ed5c.js → mdx-5e8fa3a5.js} +1 -1
  90. package/dist/{python-1590a924.js → python-c82dbf5c.js} +1 -1
  91. package/dist/{razor-c731ff04.js → razor-e8be9cf0.js} +1 -1
  92. package/dist/{tsMode-09ac7368.js → tsMode-029b3084.js} +1 -1
  93. package/dist/{typescript-9a835335.js → typescript-f5b8955d.js} +1 -1
  94. package/dist/{xml-95118253.js → xml-7b502d63.js} +1 -1
  95. package/dist/{yaml-8b85418b.js → yaml-f7bc54f5.js} +1 -1
  96. package/package.json +11 -3
@@ -0,0 +1,58 @@
1
+ import { Moment } from 'moment';
2
+ import { SelectInstance } from 'react-select';
3
+ import { OptionType } from '../../../Common';
4
+
5
+ export interface SingleDatePickerProps {
6
+ /**
7
+ * Date value to be displayed
8
+ */
9
+ date: Moment;
10
+ /**
11
+ * Function to handle date change
12
+ */
13
+ handleDatesChange: (e: any) => void;
14
+ /**
15
+ * Value to make date picker read only
16
+ */
17
+ readOnly?: boolean;
18
+ /**
19
+ * Value to block today's date
20
+ */
21
+ isTodayBlocked?: boolean;
22
+ }
23
+ export interface DateSelectProps {
24
+ /**
25
+ * Current selected date object
26
+ *
27
+ * @default 'new Date()'
28
+ */
29
+ selectedDate: OptionType;
30
+ /**
31
+ * Handler for updating the date from the parent component
32
+ */
33
+ handleOnChange: (date: OptionType) => void;
34
+ }
35
+ export interface TimeSelectProps {
36
+ /**
37
+ * Current selected date object
38
+ *
39
+ * @default 'new Date()'
40
+ */
41
+ date?: Date;
42
+ /**
43
+ * Handler for updating the date from the parent component
44
+ */
45
+ onChange: (date: Date) => void;
46
+ /**
47
+ * Props for the time picker
48
+ */
49
+ timePickerProps?: SelectInstance;
50
+ /**
51
+ * Error message for the DateTime picker component
52
+ */
53
+ error?: string;
54
+ /**
55
+ * If true, both the date and time picker are disabled
56
+ */
57
+ disabled?: boolean;
58
+ }
@@ -0,0 +1,47 @@
1
+ import { default as dayjs } from 'dayjs';
2
+ import { OptionType } from '../../../Common';
3
+
4
+ export declare const getTimePickerStyles: () => {
5
+ container: (base: any) => any;
6
+ control: (base: any, state: any) => any;
7
+ menu: (base: any) => any;
8
+ singleValue: (base: any) => any;
9
+ placeholder: (base: any) => any;
10
+ option: (base: any, state: any) => any;
11
+ valueContainer: (base: any) => any;
12
+ dropdownIndicator: (base: any) => any;
13
+ };
14
+ /**
15
+ * Return the options for the dates in label and value format
16
+ */
17
+ export declare const MONTHLY_DATE_OPTIONS: {
18
+ label: string;
19
+ value: string;
20
+ }[];
21
+ /**
22
+ * Return the options for the time in label and value format
23
+ * @type {OptionType[]}
24
+ */
25
+ export declare const DEFAULT_TIME_OPTIONS: OptionType[];
26
+ /**
27
+ * @returns True if the date is before today's date
28
+ */
29
+ export declare const disablePreviousDates: (current: dayjs.Dayjs) => boolean;
30
+ /**
31
+ * Get the time value from the date object in the format: `hh:mm:ss`
32
+ */
33
+ export declare const getTimeValue: (currentDateObj: Date) => string;
34
+ /**
35
+ * Updates the time in the given date object and returns the updated object
36
+ */
37
+ export declare const updateTime: (currentDateObj: Date, timeString: string) => Date;
38
+ /**
39
+ * Updates the date in the given date object and returns the updated object
40
+ */
41
+ export declare const updateDate: (currentDateObj: Date, newDate: Date) => Date;
42
+ /**
43
+ * Get the default date from the time to live
44
+ * @param timeToLive
45
+ * @returns
46
+ */
47
+ export declare const getDefaultDateFromTimeToLive: (timeToLive: string) => Date;
@@ -0,0 +1,3 @@
1
+ import { FeatureDescriptionModalProps } from './types';
2
+
3
+ export declare const FeatureDescriptionModal: ({ title, renderDescriptionContent, closeModalText, docLink, closeModal, imageVariant, SVGImage, imageStyles, }: FeatureDescriptionModalProps) => JSX.Element;
@@ -0,0 +1,4 @@
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;
@@ -0,0 +1,8 @@
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
+ }
@@ -0,0 +1,2 @@
1
+ export * from './FeatureDescriptionModal';
2
+ export { default as FeatureTitleWithInfo } from './FeatureTitleWithInfo';
@@ -0,0 +1,19 @@
1
+ import { ImageType } from '../../../Common';
2
+ import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
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
+ }
@@ -0,0 +1,6 @@
1
+ import { ImageType } from '../../../Common';
2
+
3
+ export declare const getImageSize: (imageType: ImageType) => {
4
+ width: string;
5
+ height: string;
6
+ };
@@ -1,5 +1,5 @@
1
- import { ServerInfoResponse } from './types';
2
1
  import { ResponseType } from '../../../Common';
2
+ import { ServerInfoResponse } from './types';
3
3
 
4
4
  export declare const updatePostHogEvent: (payload: any) => Promise<ResponseType>;
5
5
  export declare const getServerInfo: (withoutStatus: boolean, isFormHeader: boolean) => Promise<ServerInfoResponse>;
@@ -1,6 +1,6 @@
1
- import { RegistryType } from '../..';
2
- import { ImageTaggingContainerType } from '../../../Common';
3
1
  import { ReactNode } from 'react';
2
+ import { ImageTaggingContainerType } from '../../../Common';
3
+ import { RegistryType } from '../..';
4
4
 
5
5
  export interface ArtifactInfoProps {
6
6
  imagePath: string;
@@ -1,6 +1,6 @@
1
- import { MaterialSecurityInfoType } from '../../types';
2
- import { CDModalTabType, VulnerabilityType } from '../../../Common';
3
1
  import { default as React, ReactNode } from 'react';
2
+ import { CDModalTabType, VulnerabilityType } from '../../../Common';
3
+ import { MaterialSecurityInfoType } from '../../types';
4
4
 
5
5
  export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
6
6
  isSecurityModuleInstalled: boolean;
@@ -0,0 +1,14 @@
1
+ export declare const CommonGroupedDropdownStyles: {
2
+ container: (base: any, state: any) => any;
3
+ control: (base: any, state: any) => any;
4
+ singleValue: (base: any) => any;
5
+ option: (base: any, state: any) => any;
6
+ valueContainer: (base: any) => any;
7
+ dropdownIndicator: (base: any, state: any) => any;
8
+ group: (base: any) => any;
9
+ groupHeading: (base: any) => any;
10
+ menuList: (base: any) => any;
11
+ multiValue: (base: any) => any;
12
+ multiValueLabel: (base: any) => any;
13
+ placeholder: (base: any) => any;
14
+ };
@@ -1 +1,2 @@
1
1
  export * from './utils';
2
+ export * from './constants';
@@ -24,3 +24,7 @@ export declare const commonSelectStyles: {
24
24
  noOptionsMessage: (base: any) => any;
25
25
  placeholder: (base: any) => any;
26
26
  };
27
+ /**
28
+ * Clock icon for the time picker
29
+ */
30
+ export declare const DropdownIndicatorTimePicker: (props: any) => JSX.Element;
@@ -1,5 +1,5 @@
1
- import { ScannedByToolModalProps } from './types';
2
1
  import { default as React } from 'react';
2
+ import { ScannedByToolModalProps } from './types';
3
3
 
4
4
  declare const ScannedByToolModal: React.FC<ScannedByToolModalProps>;
5
5
  export default ScannedByToolModal;
@@ -17,6 +17,8 @@ export * from './Header';
17
17
  export * from './AnnouncementBanner';
18
18
  export * from './ButtonWithLoader';
19
19
  export * from './ButtonWithSelector';
20
+ export * from './FeatureDescription';
21
+ export * from './DatePicker';
20
22
  export * from './CICDHistory';
21
23
  export * from './GitCommitInfoGeneric';
22
24
  export * from './Error';
@@ -1,6 +1,6 @@
1
- import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
2
- import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
3
1
  import { MaterialInfo, SortingOrder } from '../Common';
2
+ import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
3
+ import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
4
4
 
5
5
  interface HighlightSearchTextProps {
6
6
  /**
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { UseUserEmailContextType } from './types';
3
+
4
+ export declare const useUserEmail: () => UseUserEmailContextType;
5
+ export declare const UserEmailProvider: React.FC<{}>;
6
+ export declare const withUserEmail: (Component: React.ComponentClass) => (props: object) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './UserEmailProvider';
2
+ export * from './types';
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export interface UseUserEmailContextType {
3
+ email: string;
4
+ setEmail: React.Dispatch<React.SetStateAction<string>>;
5
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './MainContextProvider';
2
2
  export * from './ImageSelectionUtility';
3
+ export * from './UserEmailProvider';
@@ -1,6 +1,6 @@
1
- import { SERVER_MODE } from '../../Common';
2
- import { ServerInfo } from '../Components/Header/types';
3
1
  import { MutableRefObject, ReactNode } from 'react';
2
+ import { ServerInfo } from '../Components/Header/types';
3
+ import { SERVER_MODE } from '../../Common';
4
4
 
5
5
  export interface MainContext {
6
6
  serverMode: SERVER_MODE;
@@ -1,5 +1,5 @@
1
- import { PatchOperationType } from './constants';
2
1
  import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes } from '../Common';
2
+ import { PatchOperationType } from './constants';
3
3
 
4
4
  export declare enum EnvType {
5
5
  CHART = "helm_charts",