@devtron-labs/devtron-fe-common-lib 1.1.6-beta-1 → 1.1.6-beta-2

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 (117) hide show
  1. package/dist/@code-editor-Vbkor1r4.js +18991 -0
  2. package/dist/@common-rjsf-6UM_zh8b.js +567 -0
  3. package/dist/@framer-motion-DHY98qq3.js +3437 -0
  4. package/dist/@moment-C_WeV3Af.js +2609 -0
  5. package/dist/@monaco-editor-34kqzg3G.js +70451 -0
  6. package/dist/@react-dates-WNnwjI5S.js +7708 -0
  7. package/dist/@react-select-BbR996pa.js +2636 -0
  8. package/dist/@src-assets-images-DamVa6cS.js +14 -0
  9. package/dist/@vendor-RU8AW1bK.js +20473 -0
  10. package/dist/Common/CustomTagSelector/Types.d.ts +0 -12
  11. package/dist/Shared/Components/SelectPicker/type.d.ts +4 -5
  12. package/dist/Shared/Components/index.d.ts +0 -2
  13. package/dist/assets/@code-editor.css +1 -0
  14. package/dist/assets/@common-rjsf.css +1 -0
  15. package/dist/assets/@monaco-editor.css +1 -0
  16. package/dist/assets/@react-dates.css +1 -0
  17. package/dist/assets/@vendor.css +1 -0
  18. package/dist/index.js +505 -508
  19. package/package.json +4 -5
  20. package/dist/Shared/Components/DynamicDataTable/DynamicDataTable.d.ts +0 -2
  21. package/dist/Shared/Components/DynamicDataTable/DynamicDataTableHeader.d.ts +0 -2
  22. package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +0 -2
  23. package/dist/Shared/Components/DynamicDataTable/index.d.ts +0 -2
  24. package/dist/Shared/Components/DynamicDataTable/types.d.ts +0 -161
  25. package/dist/Shared/Components/DynamicDataTable/utils.d.ts +0 -5
  26. package/dist/Shared/Components/MultipleResizableTextArea/MultipleResizableTextArea.d.ts +0 -2
  27. package/dist/Shared/Components/MultipleResizableTextArea/index.d.ts +0 -2
  28. package/dist/Shared/Components/MultipleResizableTextArea/types.d.ts +0 -9
  29. package/dist/Shared/Components/SelectTextArea/SelectTextArea.d.ts +0 -2
  30. package/dist/Shared/Components/SelectTextArea/index.d.ts +0 -2
  31. package/dist/Shared/Components/SelectTextArea/types.d.ts +0 -12
  32. package/dist/abap-DttVK1gE.js +0 -1314
  33. package/dist/apex-BjfHvyb2.js +0 -315
  34. package/dist/assets/index.css +0 -1
  35. package/dist/azcli-Ws-Trf8e.js +0 -74
  36. package/dist/bat-CeCHpU9_.js +0 -95
  37. package/dist/bicep-C7a7aEmi.js +0 -108
  38. package/dist/cameligo-CJeEIvX4.js +0 -168
  39. package/dist/clojure-CEKXhLdU.js +0 -754
  40. package/dist/coffee-CKu3e6V1.js +0 -228
  41. package/dist/cpp-CvUiT5Ec.js +0 -390
  42. package/dist/csharp-PmU9HJkB.js +0 -320
  43. package/dist/csp-DULvRLPF.js +0 -57
  44. package/dist/css-CNWXQPpt.js +0 -186
  45. package/dist/cssMode-DtMm0SDm.js +0 -1446
  46. package/dist/cypher-CYHOQS2R.js +0 -262
  47. package/dist/dart-BjGx-9Jk.js +0 -270
  48. package/dist/dockerfile-D0WaVIZ2.js +0 -132
  49. package/dist/ecl-CijaJu-p.js +0 -454
  50. package/dist/elixir-BI5Tc37S.js +0 -489
  51. package/dist/flow9-BApGtQOO.js +0 -141
  52. package/dist/freemarker2-9EjUTVsy.js +0 -643
  53. package/dist/fsharp-VeKgt2eG.js +0 -210
  54. package/dist/go-Cl8cKDlN.js +0 -208
  55. package/dist/graphql-PfgPBmj4.js +0 -141
  56. package/dist/handlebars-Cqr4hoPT.js +0 -391
  57. package/dist/hcl-CG4VZSkm.js +0 -177
  58. package/dist/html-C9Gsn18X.js +0 -281
  59. package/dist/htmlMode-x4RP4E5q.js +0 -1456
  60. package/dist/index-BwRQVDTx.js +0 -163878
  61. package/dist/ini-EhiBNPZF.js +0 -68
  62. package/dist/java-DPbnXhoY.js +0 -221
  63. package/dist/javascript-D22Mg13p.js +0 -75
  64. package/dist/jsonMode-CfrQIF3d.js +0 -1866
  65. package/dist/julia-Bw7EYexg.js +0 -496
  66. package/dist/kotlin-BNXLDoV0.js +0 -245
  67. package/dist/less-DtuF_id_.js +0 -168
  68. package/dist/lexon-DpB0-37O.js +0 -151
  69. package/dist/liquid-C4E_yX4z.js +0 -238
  70. package/dist/lua-CzRNOk9S.js +0 -157
  71. package/dist/m3-pXPmDwal.js +0 -210
  72. package/dist/markdown-CeQ3rxjn.js +0 -202
  73. package/dist/mdx-D_RBF4BX.js +0 -171
  74. package/dist/mips-DyE0VSNz.js +0 -194
  75. package/dist/msdax-CbdkoqRa.js +0 -377
  76. package/dist/mysql-B86-uHNu.js +0 -876
  77. package/dist/objective-c-1xvkKPId.js +0 -188
  78. package/dist/pascal-DcyFhj80.js +0 -245
  79. package/dist/pascaligo-QnM0hvMG.js +0 -158
  80. package/dist/perl-Bqp3FbU4.js +0 -599
  81. package/dist/pgsql-HdG7BG_Z.js +0 -847
  82. package/dist/php-zf7L2p7t.js +0 -471
  83. package/dist/pla-3Ykqsyzl.js +0 -131
  84. package/dist/postiats-D1v08O4B.js +0 -544
  85. package/dist/powerquery-CiQ9b1-b.js +0 -890
  86. package/dist/powershell-DFNK6VaX.js +0 -233
  87. package/dist/protobuf-D5P2Z6tc.js +0 -422
  88. package/dist/pug-BeyMX5am.js +0 -393
  89. package/dist/python-DjXx4zMe.js +0 -259
  90. package/dist/qsharp-DcFOTjuP.js +0 -282
  91. package/dist/r-B3aJPcWp.js +0 -245
  92. package/dist/razor-DpLj0g7V.js +0 -512
  93. package/dist/redis-CyC__Tub.js +0 -298
  94. package/dist/redshift-NqbcQPcY.js +0 -806
  95. package/dist/restructuredtext-CZMxBkap.js +0 -162
  96. package/dist/ruby-C_jEtDv5.js +0 -444
  97. package/dist/rust-WAeitMCC.js +0 -337
  98. package/dist/sb-CSBm2pED.js +0 -110
  99. package/dist/scala-D76PhKmh.js +0 -353
  100. package/dist/scheme-CBSAjRuO.js +0 -114
  101. package/dist/scss-BHY8wFFg.js +0 -244
  102. package/dist/shell-Cwju9_l8.js +0 -224
  103. package/dist/solidity-BV1-nze3.js +0 -1351
  104. package/dist/sophia-DfoUlGAs.js +0 -190
  105. package/dist/sparql-4kfArTtK.js +0 -193
  106. package/dist/sql-DIpn0HSX.js +0 -818
  107. package/dist/st-BgJ_KDZh.js +0 -415
  108. package/dist/swift-D-ucEgIi.js +0 -315
  109. package/dist/systemverilog-DjkH5zuo.js +0 -556
  110. package/dist/tcl-gd8XLKJA.js +0 -232
  111. package/dist/tsMode-B1pt4ZcC.js +0 -810
  112. package/dist/twig-D5XtTFGM.js +0 -323
  113. package/dist/typescript-Ct3KRD6B.js +0 -328
  114. package/dist/vb-DYqqYAf3.js +0 -364
  115. package/dist/wgsl-CkZE0qf3.js +0 -420
  116. package/dist/xml-CMW73-n2.js +0 -95
  117. package/dist/yaml-fo1c31WO.js +0 -184
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.1.6-beta-1",
3
+ "version": "1.1.6-beta-2",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -60,11 +60,8 @@
60
60
  "husky": "^7.0.4",
61
61
  "lint-staged": "^12.5.0",
62
62
  "moment": "^2.29.4",
63
- "monaco-editor": "0.44.0",
64
- "monaco-yaml": "5.1.1",
65
63
  "prettier": "^3.1.1",
66
64
  "react-ga4": "^1.4.1",
67
- "react-mde": "^11.5.0",
68
65
  "react-toastify": "9.1.3",
69
66
  "typescript": "5.5.4",
70
67
  "vite": "5.4.11",
@@ -79,11 +76,14 @@
79
76
  "@rjsf/validator-ajv8": "^5.13.3",
80
77
  "@typeform/embed-react": "2.20.0",
81
78
  "dompurify": "^3.0.2",
79
+ "monaco-editor": "0.44.0",
80
+ "monaco-yaml": "5.1.1",
82
81
  "react": "^17.0.2",
83
82
  "react-dom": "^17.0.2",
84
83
  "react-draggable": "^4.4.5",
85
84
  "react-ga4": "^1.4.1",
86
85
  "react-mde": "^11.5.0",
86
+ "react-monaco-editor": "^0.54.0",
87
87
  "react-router-dom": "^5.3.0",
88
88
  "react-select": "5.8.0",
89
89
  "rxjs": "^7.8.1",
@@ -99,7 +99,6 @@
99
99
  "jsonpath-plus": "^10.0.0",
100
100
  "react-dates": "^21.8.0",
101
101
  "react-diff-viewer-continued": "^3.4.0",
102
- "react-monaco-editor": "^0.54.0",
103
102
  "sass": "^1.69.7",
104
103
  "tslib": "2.7.0"
105
104
  },
@@ -1,2 +0,0 @@
1
- import { DynamicDataTableProps } from './types';
2
- export declare const DynamicDataTable: <K extends string>({ headers, ...props }: DynamicDataTableProps<K>) => JSX.Element;
@@ -1,2 +0,0 @@
1
- import { DynamicDataTableHeaderProps } from './types';
2
- export declare const DynamicDataTableHeader: <K extends string>({ headers, rows, sortingConfig, onRowAdd, readOnly, isAdditionNotAllowed, isDeletionNotAllowed, headerComponent, actionButtonConfig, }: DynamicDataTableHeaderProps<K>) => JSX.Element;
@@ -1,2 +0,0 @@
1
- import { DynamicDataTableRowProps } from './types';
2
- export declare const DynamicDataTableRow: <K extends string>({ rows, headers, maskValue, readOnly, isAdditionNotAllowed, isDeletionNotAllowed, validationSchema, showError, errorMessages, actionButtonConfig, onRowEdit, onRowDelete, leadingCellIcon, trailingCellIcon, }: DynamicDataTableRowProps<K>) => JSX.Element;
@@ -1,2 +0,0 @@
1
- export * from './DynamicDataTable';
2
- export * from './types';
@@ -1,161 +0,0 @@
1
- import { DetailedHTMLProps, ReactNode } from 'react';
2
- import { SortingOrder } from '../../../Common/Constants';
3
- import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
4
- import { MultipleResizableTextAreaProps } from '../MultipleResizableTextArea';
5
- import { SelectTextAreaProps } from '../SelectTextArea';
6
- /**
7
- * Interface representing a key-value header.
8
- * @template K - A string representing the key type.
9
- */
10
- export type DynamicDataTableHeaderType<K extends string> = {
11
- /** The label of the header. */
12
- label: string;
13
- /** The key associated with the header. */
14
- key: K;
15
- /** */
16
- width: string;
17
- /** An optional boolean indicating if the column is sortable. */
18
- isSortable?: boolean;
19
- /** An optional boolean to hide the column */
20
- isHidden?: boolean;
21
- };
22
- export declare enum DynamicDataTableRowDataType {
23
- TEXT = "text",
24
- DROPDOWN = "dropdown",
25
- SELECT_TEXT = "select-text",
26
- BUTTON = "button"
27
- }
28
- /**
29
- * Type representing a key-value row.
30
- * @template K - A string representing the key type.
31
- */
32
- export type DynamicDataTableRowType<K extends string> = {
33
- data: {
34
- [key in K]: {
35
- value: string;
36
- disabled?: boolean;
37
- /** An optional boolean indicating if an asterisk should be shown. */
38
- required?: boolean;
39
- } & ({
40
- type?: DynamicDataTableRowDataType.TEXT;
41
- props?: Omit<MultipleResizableTextAreaProps, 'className' | 'minHeight' | 'maxHeight' | 'value' | 'onChange' | 'disabled' | 'disableOnBlurResizeToMinHeight' | 'refVar' | 'dependentRefs'>;
42
- } | {
43
- type?: DynamicDataTableRowDataType.DROPDOWN;
44
- props?: Omit<SelectPickerProps<string, false>, 'inputId' | 'value' | 'onChange' | 'fullWidth' | 'isDisabled'>;
45
- } | {
46
- type?: DynamicDataTableRowDataType.SELECT_TEXT;
47
- props?: Omit<SelectTextAreaProps, 'value' | 'onChange' | 'inputId' | 'isDisabled' | 'dependentRefs' | 'refVar' | 'textAreaProps'> & {
48
- textAreaProps?: Omit<SelectTextAreaProps['textAreaProps'], 'className' | 'disableOnBlurResizeToMinHeight' | 'minHeight' | 'maxHeight'>;
49
- };
50
- } | ({
51
- type?: DynamicDataTableRowDataType.BUTTON;
52
- props: Pick<DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, 'onClick'> & {
53
- icon?: ReactNode;
54
- text: ReactNode;
55
- };
56
- } & ({
57
- wrap: true;
58
- wrapRenderer: (props: {
59
- children: JSX.Element;
60
- customState?: Record<string, any>;
61
- }) => JSX.Element;
62
- } | {
63
- wrap?: false;
64
- wrapRenderer?: never;
65
- })));
66
- };
67
- id: string | number;
68
- /** */
69
- customState?: Record<string, any>;
70
- };
71
- /**
72
- * Type representing a mask for key-value pairs.
73
- * @template K - A string representing the key type.
74
- */
75
- type DynamicDataTableMask<K extends string> = {
76
- [key in K]?: boolean;
77
- };
78
- type DynamicDataTableCellIcon<K extends string> = {
79
- [key in K]?: (rowId: string | number) => ReactNode;
80
- };
81
- /**
82
- * Interface representing the properties for a key-value table component.
83
- * @template K - A string representing the key type.
84
- */
85
- export type DynamicDataTableProps<K extends string> = {
86
- /** An array containing two key-value headers. */
87
- headers: DynamicDataTableHeaderType<K>[];
88
- /** An array of key-value rows. */
89
- rows: DynamicDataTableRowType<K>[];
90
- /** */
91
- sortingConfig?: {
92
- sortBy: K;
93
- sortOrder: SortingOrder;
94
- handleSorting: () => void;
95
- };
96
- /** An optional mask for the key-value pairs. */
97
- maskValue?: DynamicDataTableMask<K>;
98
- /** */
99
- leadingCellIcon?: DynamicDataTableCellIcon<K>;
100
- /** */
101
- trailingCellIcon?: DynamicDataTableCellIcon<K>;
102
- /** An optional React node for a custom header component. */
103
- headerComponent?: ReactNode;
104
- /** When true, data addition field will not be shown. */
105
- isAdditionNotAllowed?: boolean;
106
- /** When true, data addition field will not be shown. */
107
- isDeletionNotAllowed?: boolean;
108
- /** When true, data add or update is disabled. */
109
- readOnly?: boolean;
110
- /** */
111
- onRowAdd: () => void;
112
- /**
113
- * Function to handle changes in the table rows.
114
- * @param row - The row that changed.
115
- * @param headerKey - The key of the header that changed.
116
- * @param value - The value of the cell.
117
- */
118
- onRowEdit: (row: DynamicDataTableRowType<K>, headerKey: K, value: string, extraData: {
119
- selectedValue?: SelectPickerOptionType<string>;
120
- }) => void;
121
- /**
122
- * Function to handle row deletions.
123
- * @param row - The row that was deleted.
124
- */
125
- onRowDelete: (row: DynamicDataTableRowType<K>) => void;
126
- /** */
127
- actionButtonConfig?: {
128
- renderer: (row: DynamicDataTableRowType<K>) => ReactNode;
129
- key?: K;
130
- /**
131
- * @default '32px'
132
- */
133
- width?: string;
134
- /**
135
- * @default 'start'
136
- */
137
- position?: 'start' | 'end';
138
- };
139
- /**
140
- * Indicates whether to show errors.
141
- */
142
- showError?: boolean;
143
- /**
144
- * An array of error messages to be displayed in the cell error tooltip.
145
- */
146
- errorMessages?: string[];
147
- /**
148
- * The function to use to validate the value of the cell.
149
- * @param value - The value to validate.
150
- * @param key - The row key of the value.
151
- * @param rowId - The id of the row.
152
- * @returns Return true if the value is valid, otherwise false
153
- * and set `showError` to `true` and provide errorMessages array to show error message.
154
- */
155
- validationSchema?: (value: string, key: K, rowId: string | number) => boolean;
156
- };
157
- export interface DynamicDataTableHeaderProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'headers' | 'rows' | 'headerComponent' | 'sortingConfig' | 'onRowAdd' | 'readOnly' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'actionButtonConfig'> {
158
- }
159
- export interface DynamicDataTableRowProps<K extends string> extends Pick<DynamicDataTableProps<K>, 'rows' | 'headers' | 'maskValue' | 'isAdditionNotAllowed' | 'isDeletionNotAllowed' | 'readOnly' | 'onRowEdit' | 'onRowDelete' | 'actionButtonConfig' | 'showError' | 'errorMessages' | 'validationSchema' | 'leadingCellIcon' | 'trailingCellIcon'> {
160
- }
161
- export {};
@@ -1,5 +0,0 @@
1
- import { DynamicDataTableHeaderType, DynamicDataTableProps, DynamicDataTableRowDataType } from './types';
2
- export declare const getActionButtonPosition: <K extends string>({ headers, actionButtonConfig, }: Pick<DynamicDataTableProps<K>, "headers" | "actionButtonConfig">) => number;
3
- export declare const getHeaderGridTemplateColumn: <K extends string>(headers: DynamicDataTableHeaderType<K>[], actionButtonConfig: DynamicDataTableProps<K>["actionButtonConfig"], noDeleteBtn: boolean) => string;
4
- export declare const getRowGridTemplateColumn: <K extends string>(headers: DynamicDataTableHeaderType<K>[], actionButtonConfig: DynamicDataTableProps<K>["actionButtonConfig"], noDeleteBtn: boolean) => string;
5
- export declare const rowTypeHasInputField: (type: DynamicDataTableRowDataType) => boolean;
@@ -1,2 +0,0 @@
1
- import { MultipleResizableTextAreaProps } from './types';
2
- export declare const MultipleResizableTextArea: ({ value, minHeight, maxHeight, dataTestId, onChange, onBlur, onFocus, refVar, dependentRefs, className, disableOnBlurResizeToMinHeight, ...resProps }: MultipleResizableTextAreaProps) => JSX.Element;
@@ -1,2 +0,0 @@
1
- export * from './MultipleResizableTextArea';
2
- export * from './types';
@@ -1,9 +0,0 @@
1
- import { DetailedHTMLProps, MutableRefObject, TextareaHTMLAttributes } from 'react';
2
- export interface MultipleResizableTextAreaProps extends DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
3
- minHeight?: number;
4
- maxHeight?: number;
5
- dataTestId?: string;
6
- refVar?: MutableRefObject<HTMLTextAreaElement>;
7
- dependentRefs?: Record<string | number, MutableRefObject<HTMLTextAreaElement>>;
8
- disableOnBlurResizeToMinHeight?: boolean;
9
- }
@@ -1,2 +0,0 @@
1
- import { SelectTextAreaProps } from './types';
2
- export declare const SelectTextArea: ({ value, selectedOptionIcon: Icon, onChange, options, inputId, placeholder, refVar, dependentRefs, disabled, selectPickerProps, textAreaProps, }: SelectTextAreaProps) => JSX.Element;
@@ -1,2 +0,0 @@
1
- export * from './SelectTextArea';
2
- export * from './types';
@@ -1,12 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import { SelectPickerOptionType, SelectPickerProps } from '../SelectPicker';
3
- import { MultipleResizableTextAreaProps } from '../MultipleResizableTextArea';
4
- export type SelectTextAreaProps = Pick<SelectPickerProps<string, false>, 'inputId' | 'options'> & Pick<MultipleResizableTextAreaProps, 'refVar' | 'dependentRefs'> & {
5
- value: string;
6
- selectedOptionIcon?: ReactElement;
7
- onChange?: (selectedValue: SelectPickerOptionType<string>) => void;
8
- disabled?: boolean;
9
- placeholder?: string;
10
- textAreaProps?: Omit<MultipleResizableTextAreaProps, 'refVar' | 'dependentRefs' | 'id' | 'value' | 'onChange' | 'placeholder' | 'disabled'>;
11
- selectPickerProps?: Omit<SelectPickerProps<string, false>, 'inputId' | 'options' | 'isDisabled' | 'onChange' | 'variant' | 'isCreatable' | 'value' | 'placeholder' | 'fullWidth' | 'selectRef' | 'onCreateOption' | 'isMulti'>;
12
- };