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

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 (77) 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 +1 -1
  4. package/dist/Common/Checkbox.d.ts +1 -1
  5. package/dist/Common/CodeEditor/CodeEditor.d.ts +1 -1
  6. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +1 -1
  7. package/dist/Common/Common.service.d.ts +1 -1
  8. package/dist/Common/CustomTagSelector/Types.d.ts +1 -1
  9. package/dist/Common/Dialogs/DeleteDialog.d.ts +1 -1
  10. package/dist/Common/Dialogs/DialogForm.d.ts +1 -1
  11. package/dist/Common/Helper.d.ts +2 -2
  12. package/dist/Common/Modals/Modal.d.ts +1 -1
  13. package/dist/Common/Policy.Types.d.ts +1 -1
  14. package/dist/Common/RJSF/common/FieldRow.d.ts +1 -1
  15. package/dist/Common/RJSF/config.d.ts +1 -1
  16. package/dist/Common/RJSF/types.d.ts +1 -1
  17. package/dist/Common/RadioGroup/RadioGroup.d.ts +1 -1
  18. package/dist/Common/ResizableTextarea.d.ts +1 -1
  19. package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +1 -1
  20. package/dist/Common/Select/Select.d.ts +1 -1
  21. package/dist/Common/Types.d.ts +4 -4
  22. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/UserRoleGroupTableRow.d.ts +1 -1
  23. package/dist/Pages/GlobalConfigurations/Authorization/shared/components/UserRoleGroupsTable/types.d.ts +1 -1
  24. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +1 -1
  25. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraConfigForm.d.ts +1 -1
  26. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraDescriptionField.d.ts +1 -1
  27. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormAction.d.ts +1 -1
  28. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraFormItem.d.ts +1 -1
  29. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraProfileNameField.d.ts +1 -1
  30. package/dist/Pages/GlobalConfigurations/BuildInfra/Footer.d.ts +1 -1
  31. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
  32. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +1 -1
  33. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +3 -3
  34. package/dist/Shared/Components/APIResponseHandler/types.d.ts +2 -2
  35. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +1 -1
  36. package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +1 -1
  37. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
  38. package/dist/Shared/Components/CICDHistory/service.d.ts +1 -1
  39. package/dist/Shared/Components/CICDHistory/types.d.ts +3 -3
  40. package/dist/Shared/Components/FeatureDescription/types.d.ts +1 -1
  41. package/dist/Shared/Components/Header/service.d.ts +1 -1
  42. package/dist/Shared/Components/ImageCard/types.d.ts +2 -2
  43. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +2 -2
  44. package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -4
  45. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +1 -1
  46. package/dist/Shared/Components/index.d.ts +0 -1
  47. package/dist/Shared/Helpers.d.ts +2 -2
  48. package/dist/Shared/Providers/UserEmailProvider/UserEmailProvider.d.ts +1 -1
  49. package/dist/Shared/Providers/types.d.ts +2 -2
  50. package/dist/Shared/types.d.ts +1 -1
  51. package/dist/assets/index.css +1 -1
  52. package/dist/assets/{yaml.worker-23754585.js → yaml.worker-632eebb8.js} +28 -28
  53. package/dist/{cssMode-737c2ae4.js → cssMode-b3761447.js} +1 -1
  54. package/dist/{freemarker2-8fa6ffb9.js → freemarker2-bca8bda3.js} +1 -1
  55. package/dist/{handlebars-446e0789.js → handlebars-59bf2a32.js} +1 -1
  56. package/dist/{html-fd748031.js → html-34509fbf.js} +1 -1
  57. package/dist/{htmlMode-3ded316b.js → htmlMode-91e1b625.js} +1 -1
  58. package/dist/{index-894b7670.js → index-611fc62f.js} +50309 -65321
  59. package/dist/index.js +347 -351
  60. package/dist/{javascript-12c768f4.js → javascript-9b3ad161.js} +1 -1
  61. package/dist/{jsonMode-3d012233.js → jsonMode-60e59fb2.js} +1 -1
  62. package/dist/{liquid-fd922791.js → liquid-52e8c03e.js} +1 -1
  63. package/dist/{mdx-5e8fa3a5.js → mdx-b9087899.js} +1 -1
  64. package/dist/{python-c82dbf5c.js → python-77af2f59.js} +1 -1
  65. package/dist/{razor-e8be9cf0.js → razor-47e7cf08.js} +1 -1
  66. package/dist/{tsMode-029b3084.js → tsMode-59cfff46.js} +1 -1
  67. package/dist/{typescript-f5b8955d.js → typescript-bd6eb0f9.js} +1 -1
  68. package/dist/{xml-7b502d63.js → xml-de6968a5.js} +1 -1
  69. package/dist/{yaml-f7bc54f5.js → yaml-a85a1d4d.js} +1 -1
  70. package/package.json +3 -11
  71. package/dist/Shared/Components/DatePicker/DateSelect.d.ts +0 -3
  72. package/dist/Shared/Components/DatePicker/SingleDatePickerComponent.d.ts +0 -12
  73. package/dist/Shared/Components/DatePicker/TimeSelect.d.ts +0 -3
  74. package/dist/Shared/Components/DatePicker/constants.d.ts +0 -122
  75. package/dist/Shared/Components/DatePicker/index.d.ts +0 -4
  76. package/dist/Shared/Components/DatePicker/types.d.ts +0 -58
  77. package/dist/Shared/Components/DatePicker/utils.d.ts +0 -47
@@ -1,4 +1,4 @@
1
- import { conf as t, language as e } from "./typescript-f5b8955d.js";
1
+ import { conf as t, language as e } from "./typescript-bd6eb0f9.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-894b7670.js";
4
+ import { m as Ze } from "./index-611fc62f.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-894b7670.js";
1
+ import { m as d } from "./index-611fc62f.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-894b7670.js";
1
+ import { m as d } from "./index-611fc62f.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-894b7670.js";
1
+ import { m as a } from "./index-611fc62f.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-894b7670.js";
1
+ import { m as s } from "./index-611fc62f.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-894b7670.js";
4
+ import { t as K, m as E } from "./index-611fc62f.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-894b7670.js";
1
+ import { m as a } from "./index-611fc62f.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-894b7670.js";
1
+ import { m } from "./index-611fc62f.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-894b7670.js";
1
+ import { m as i } from "./index-611fc62f.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.88-beta-5",
3
+ "version": "0.0.88-beta-6",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -60,6 +60,7 @@
60
60
  "moment": "^2.29.4",
61
61
  "monaco-editor": "0.44.0",
62
62
  "monaco-yaml": "5.1.1",
63
+ "react-monaco-editor": "^0.55.0",
63
64
  "prettier": "^3.1.1",
64
65
  "react-ga4": "^1.4.1",
65
66
  "react-mde": "^11.5.0",
@@ -89,20 +90,11 @@
89
90
  "yaml": "^2.4.1"
90
91
  },
91
92
  "dependencies": {
92
- "@types/react-dates": "^21.8.6",
93
- "react-dates": "^21.8.0",
94
- "yaml": "^2.4.1",
95
93
  "ansi_up": "^5.2.1",
96
94
  "fast-json-patch": "^3.1.1",
97
95
  "jsonpath-plus": "^7.2.0",
98
96
  "react-monaco-editor": "^0.54.0",
99
97
  "sass": "^1.69.7",
100
- "tslib": "^2.4.1",
101
- "dayjs": "^1.11.8"
102
- },
103
- "overrides": {
104
- "react-dates": {
105
- "react": "^18.0.0"
98
+ "tslib": "^2.4.1"
106
99
  }
107
- }
108
100
  }
@@ -1,3 +0,0 @@
1
- import { DateSelectProps } from './types';
2
-
3
- export declare const DateSelect: ({ selectedDate, handleOnChange }: DateSelectProps) => JSX.Element;
@@ -1,12 +0,0 @@
1
- import { SingleDatePickerProps } from './types';
2
-
3
- /**
4
- *
5
- * @param date Date value to be displayed
6
- * @param handleDatesChange Function to handle date change
7
- * @param readOnly Value to make date picker read only
8
- * @param isTodayBlocked Value to block today's date
9
- * @returns
10
- */
11
- declare const SingleDatePickerComponent: ({ date, handleDatesChange, readOnly, isTodayBlocked }: SingleDatePickerProps) => JSX.Element;
12
- export default SingleDatePickerComponent;
@@ -1,3 +0,0 @@
1
- import { TimeSelectProps } from './types';
2
-
3
- export declare const TimePickerSelect: ({ disabled, date: dateObject, onChange, timePickerProps, error, }: TimeSelectProps) => JSX.Element;
@@ -1,122 +0,0 @@
1
- export declare const customDayStyles: {
2
- selectedStartStyles: {
3
- background: string;
4
- color: string;
5
- hover: {
6
- background: string;
7
- color: string;
8
- };
9
- };
10
- selectedEndStyles: {
11
- background: string;
12
- color: string;
13
- hover: {
14
- background: string;
15
- color: string;
16
- };
17
- };
18
- hoveredSpanStyles: {
19
- background: string;
20
- color: string;
21
- };
22
- selectedSpanStyles: {
23
- background: string;
24
- color: string;
25
- hover: {
26
- background: string;
27
- color: string;
28
- };
29
- };
30
- selectedStyles: {
31
- background: string;
32
- color: string;
33
- hover: {
34
- background: string;
35
- color: string;
36
- };
37
- };
38
- border: string;
39
- };
40
- export declare const MONTHLY_DATES_CONFIG: {
41
- 'Day 1': string;
42
- 'Day 2': string;
43
- 'Day 3': string;
44
- 'Day 4': string;
45
- 'Day 5': string;
46
- 'Day 6': string;
47
- 'Day 7': string;
48
- 'Day 8': string;
49
- 'Day 9': string;
50
- 'Day 10': string;
51
- 'Day 11': string;
52
- 'Day 12': string;
53
- 'Day 13': string;
54
- 'Day 14': string;
55
- 'Day 15': string;
56
- 'Day 16': string;
57
- 'Day 17': string;
58
- 'Day 18': string;
59
- 'Day 19': string;
60
- 'Day 20': string;
61
- 'Day 21': string;
62
- 'Day 22': string;
63
- 'Day 23': string;
64
- 'Day 24': string;
65
- 'Day 25': string;
66
- 'Day 26': string;
67
- 'Day 27': string;
68
- 'Day 28': string;
69
- 'Third Last Day': string;
70
- 'Second Last Day': string;
71
- 'Last Day': string;
72
- };
73
- export declare const TIME_OPTIONS_CONFIG: {
74
- '12:00 AM': string;
75
- '12:30 AM': string;
76
- '01:00 AM': string;
77
- '01:30 AM': string;
78
- '02:00 AM': string;
79
- '02:30 AM': string;
80
- '03:00 AM': string;
81
- '03:30 AM': string;
82
- '04:00 AM': string;
83
- '04:30 AM': string;
84
- '05:00 AM': string;
85
- '05:30 AM': string;
86
- '06:00 AM': string;
87
- '06:30 AM': string;
88
- '07:00 AM': string;
89
- '07:30 AM': string;
90
- '08:00 AM': string;
91
- '08:30 AM': string;
92
- '09:00 AM': string;
93
- '09:30 AM': string;
94
- '10:00 AM': string;
95
- '10:30 AM': string;
96
- '11:00 AM': string;
97
- '11:30 AM': string;
98
- '12:00 PM': string;
99
- '12:30 PM': string;
100
- '01:00 PM': string;
101
- '01:30 PM': string;
102
- '02:00 PM': string;
103
- '02:30 PM': string;
104
- '03:00 PM': string;
105
- '03:30 PM': string;
106
- '04:00 PM': string;
107
- '04:30 PM': string;
108
- '05:00 PM': string;
109
- '05:30 PM': string;
110
- '06:00 PM': string;
111
- '06:30 PM': string;
112
- '07:00 PM': string;
113
- '07:30 PM': string;
114
- '08:00 PM': string;
115
- '08:30 PM': string;
116
- '09:00 PM': string;
117
- '09:30 PM': string;
118
- '10:00 PM': string;
119
- '10:30 PM': string;
120
- '11:00 PM': string;
121
- '11:30 PM': string;
122
- };
@@ -1,4 +0,0 @@
1
- export { default as SingleDatePickerComponent } from './SingleDatePickerComponent';
2
- export * from './types';
3
- export * from './DateSelect';
4
- export * from './TimeSelect';
@@ -1,58 +0,0 @@
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
- }
@@ -1,47 +0,0 @@
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;