@devtron-labs/devtron-fe-common-lib 0.2.14 → 0.2.16-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 (29) hide show
  1. package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +1 -1
  2. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -1
  3. package/dist/Common/MultiSelectCustomization.d.ts +1 -1
  4. package/dist/Common/PopupMenu.d.ts +1 -1
  5. package/dist/Common/RJSF/templates/TitleField.d.ts +1 -1
  6. package/dist/Pages/GlobalConfigurations/DeploymentCharts/basicViewSchema.json.d.ts +28 -225
  7. package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
  8. package/dist/Shared/types.d.ts +1 -0
  9. package/dist/Shared/validations.d.ts +11 -0
  10. package/dist/assets/index.css +1 -1
  11. package/dist/{cssMode-886799c9.js → cssMode-cdad2cd5.js} +1 -1
  12. package/dist/{freemarker2-fd006554.js → freemarker2-f5d9abef.js} +1 -1
  13. package/dist/{handlebars-b7a28994.js → handlebars-dd4eda6e.js} +1 -1
  14. package/dist/{html-341a0bc3.js → html-4c0d35de.js} +1 -1
  15. package/dist/{htmlMode-0048b22a.js → htmlMode-e271fc70.js} +1 -1
  16. package/dist/{index-74e7406e.js → index-28d885bc.js} +22081 -22930
  17. package/dist/index.js +223 -221
  18. package/dist/{javascript-efd49074.js → javascript-da688248.js} +1 -1
  19. package/dist/{jsonMode-abbd4b1e.js → jsonMode-bd4477a9.js} +1 -1
  20. package/dist/{liquid-86a7d850.js → liquid-7a0899ea.js} +1 -1
  21. package/dist/{mdx-4160565c.js → mdx-2c3c0cc4.js} +1 -1
  22. package/dist/{python-bee7f7cd.js → python-0295a23d.js} +1 -1
  23. package/dist/{razor-b4db6800.js → razor-dee8d16b.js} +1 -1
  24. package/dist/{tsMode-5e50488f.js → tsMode-42162436.js} +1 -1
  25. package/dist/{typescript-1ab20b70.js → typescript-84f9df17.js} +1 -1
  26. package/dist/{xml-d41c92aa.js → xml-373e305f.js} +1 -1
  27. package/dist/{yaml-32231b21.js → yaml-069518a0.js} +1 -1
  28. package/package.json +1 -1
  29. package/dist/Pages/GlobalConfigurations/DeploymentCharts/fallbackJobsNCronJobGuiSchema.json.d.ts +0 -157
@@ -6,4 +6,4 @@ import { DraggableWrapperProps } from './types';
6
6
  * 2. dragSelector will be used to identify the grabbable button that will grab the div to drag
7
7
  * 3. parentRef is the reference point from which we will derive the base top:0 ,left: 0 position
8
8
  */
9
- export default function DraggableWrapper({ children, zIndex, positionVariant, dragSelector, parentRef, boundaryGap, childDivProps, layoutFixDelta }: DraggableWrapperProps): JSX.Element;
9
+ export default function DraggableWrapper({ children, zIndex, positionVariant, dragSelector, parentRef, boundaryGap, childDivProps, layoutFixDelta, }: DraggableWrapperProps): JSX.Element;
@@ -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, hideIcon, }: InfoColourBarType) => JSX.Element;
4
4
  export default InfoColourBar;
@@ -4,7 +4,7 @@ export declare const Option: (props: any) => JSX.Element;
4
4
  export declare const SingleSelectOption: (props: any) => JSX.Element;
5
5
  /**
6
6
  * Multi value container
7
- */
7
+ */
8
8
  export declare const MultiValueContainer: (props: any) => JSX.Element;
9
9
  /**
10
10
  *
@@ -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, shouldPreventDefault, }: 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,3 +1,3 @@
1
1
  import { TitleFieldProps } from '@rjsf/utils';
2
2
 
3
- export declare const TitleField: ({ id, title, required, description }: TitleFieldProps & Partial<Record<'description', string>>) => JSX.Element;
3
+ export declare const TitleField: ({ id, title, required, description, }: TitleFieldProps & Partial<Record<'description', string>>) => JSX.Element;
@@ -1,270 +1,73 @@
1
1
  declare const _default: {
2
2
  "type": "object",
3
3
  "properties": {
4
- "args": {
5
- "type": "object",
6
- "title": "Arguments",
7
- "properties": {
8
- "value": {
9
- "type": "array",
10
- "items": {
11
- "type": "string"
12
- },
13
- "title": "Value",
14
- "hidden": {
15
- "condition": false,
16
- "match": "enabled"
17
- }
18
- },
19
- "enabled": {
20
- "type": "boolean",
21
- "title": "Enabled"
22
- }
23
- }
24
- },
25
- "command": {
26
- "type": "object",
27
- "title": "Command",
28
- "properties": {
29
- "value": {
30
- "type": "array",
31
- "items": {
32
- "type": "string"
33
- },
34
- "title": "Value",
35
- "hidden": {
36
- "condition": false,
37
- "match": "enabled"
38
- }
39
- },
40
- "enabled": {
41
- "type": "boolean",
42
- "title": "Enabled"
43
- }
44
- }
45
- },
46
- "ingress": {
47
- "type": "object",
48
- "title": "HTTP Requests Routes",
49
- "properties": {
50
- "className": {
51
- "type": "string",
52
- "title": "Class",
53
- "hidden": {
54
- "condition": false,
55
- "match": "enabled"
56
- }
57
- },
58
- "hosts": {
59
- "type": "array",
60
- "items": {
61
- "type": "object",
62
- "properties": {
63
- "host": {
64
- "type": "string"
65
- },
66
- "paths": {
67
- "type": "array",
68
- "items": {
69
- "type": "string"
70
- }
71
- }
72
- }
73
- },
74
- "hidden": {
75
- "condition": false,
76
- "match": "enabled"
4
+ "ContainerPort": {
5
+ "type": "array",
6
+ "description": "Defines ports on which application services will be exposed to other services",
7
+ "items": {
8
+ "type": "object",
9
+ "properties": {
10
+ "port": {
11
+ "type": "integer",
12
+ "description": "Port at which your application will run"
77
13
  }
78
- },
79
- "enabled": {
80
- "type": "boolean",
81
- "title": "Enable HTTP Requests Routes"
82
14
  }
83
- }
15
+ },
16
+ "title": "Container Port"
84
17
  },
85
18
  "resources": {
86
19
  "type": "object",
87
20
  "title": "Resources (CPU & RAM)",
21
+ "description": "Minimum and maximum RAM and CPU available to the application",
88
22
  "properties": {
89
23
  "limits": {
90
24
  "type": "object",
25
+ "description": "Maximum RAM and CPU available to the application",
91
26
  "required": ["cpu", "memory"],
92
27
  "properties": {
93
28
  "cpu": {
94
- "type": "string"
29
+ "type": "string",
30
+ "description": "Maximum allowed CPU limit"
95
31
  },
96
32
  "memory": {
97
- "type": "string"
33
+ "type": "string",
34
+ "description": "Maximum allowed memory limit"
98
35
  }
99
36
  }
100
37
  },
101
38
  "requests": {
102
39
  "type": "object",
40
+ "description": "Minimum RAM and CPU available to the application",
103
41
  "properties": {
104
42
  "cpu": {
105
- "type": "string"
43
+ "type": "string",
44
+ "description": "Minimum CPU value"
106
45
  },
107
46
  "memory": {
108
- "type": "string"
47
+ "type": "string",
48
+ "description": "Minimum memory value"
109
49
  }
110
50
  }
111
51
  }
112
52
  }
113
53
  },
114
- "autoscaling": {
115
- "type": "object",
116
- "title": "Autoscaling",
117
- "properties": {
118
- "MaxReplicas": {
119
- "type": ["integer", "string"],
120
- "title": "Maximum Replicas",
121
- "pattern": "^[a-zA-Z0-9-+\/*%_\\s]+$",
122
- "hidden": {
123
- "condition": false,
124
- "match": "enabled"
125
- }
126
- },
127
- "MinReplicas": {
128
- "type": ["integer", "string"],
129
- "title": "Minimum Replicas",
130
- "pattern": "^[a-zA-Z0-9-+\/*%_\\s]+$",
131
- "hidden": {
132
- "condition": false,
133
- "match": "enabled"
134
- }
135
- },
136
- "TargetCPUUtilizationPercentage": {
137
- "type": ["integer", "string"],
138
- "title": "Target CPU Utilization Percentage",
139
- "pattern": "^[a-zA-Z0-9-+\/*%_\\s]+$",
140
- "hidden": {
141
- "condition": false,
142
- "match": "enabled"
143
- }
144
- },
145
- "TargetMemoryUtilizationPercentage": {
146
- "type": ["integer", "string"],
147
- "title": "TargetMemoryUtilizationPercentage",
148
- "pattern": "^[a-zA-Z0-9-+\/*%_\\s]+$",
149
- "hidden": {
150
- "condition": false,
151
- "match": "enabled"
152
- }
153
- },
154
- "enabled": {
155
- "type": "boolean",
156
- "title": "Enabled"
157
- }
158
- }
159
- },
160
54
  "EnvVariables": {
161
55
  "type": "array",
56
+ "description": "Contains environment variables needed by the containers",
162
57
  "items": {
163
58
  "type": "object",
164
59
  "properties": {
165
- "key": {
166
- "type": "string"
167
- },
168
- "value": {
169
- "type": "string"
170
- }
171
- }
172
- },
173
- "title": "Environment Variables"
174
- },
175
- "ContainerPort": {
176
- "type": "array",
177
- "items": {
178
- "type": "object",
179
- "properties": {
180
- "port": {
181
- "type": ["integer", "string"]
182
- },
183
- "servicePort": {
184
- "type": ["integer", "string"]
185
- }
186
- },
187
- "required": ["port", "servicePort"]
188
- },
189
- "title": "Container Port"
190
- },
191
- "service": {
192
- "type": "object",
193
- "title": "Service",
194
- "properties": {
195
- "type": {
196
- "type": "string",
197
- "title": "Type"
198
- },
199
- "annotations": {
200
- "type": "object",
201
- "additionalProperties": {
202
- "type": "string"
203
- },
204
- "title": "Annotations"
205
- }
206
- }
207
- },
208
- "ReadinessProbe": {
209
- "type": "object",
210
- "title": "Readiness Probe",
211
- "properties": {
212
- "Path": {
213
- "type": "string"
214
- },
215
- "port": {
216
- "type": ["integer", "string"]
217
- }
218
- }
219
- },
220
- "LivenessProbe": {
221
- "type": "object",
222
- "title": "Liveness Probe",
223
- "properties": {
224
- "Path": {
225
- "type": "string"
226
- },
227
- "port": {
228
- "type": ["integer", "string"]
229
- }
230
- }
231
- },
232
- "tolerations": {
233
- "type": "array",
234
- "items": {
235
- "type": "object",
236
- "properties": {
237
- "key": {
238
- "type": "string"
239
- },
240
- "operator": {
60
+ "name": {
241
61
  "type": "string",
242
- "pattern": "Equal|Exists"
62
+ "description": "Name of the environment variables"
243
63
  },
244
64
  "value": {
245
- "type": "string"
246
- },
247
- "effect": {
248
65
  "type": "string",
249
- "pattern": "NoSchedule|PreferNoSchedule|NoExecute"
250
- }
251
- }
252
- }
253
- },
254
- "serviceAccount": {
255
- "type": "object",
256
- "properties": {
257
- "create": {
258
- "type": "boolean"
259
- },
260
- "name": {
261
- "type": "string",
262
- "hidden": {
263
- "condition": false,
264
- "match": "create"
66
+ "description": "Value of the environment variables"
265
67
  }
266
68
  }
267
- }
69
+ },
70
+ "title": "Environment Variables"
268
71
  }
269
72
  }
270
73
  }
@@ -157,7 +157,7 @@ export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<Selec
157
157
  isGroupHeadingSelectable: boolean;
158
158
  };
159
159
  export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight'> {
160
- appliedFilterOptions: SelectPickerProps<number | string, true>['options'];
160
+ appliedFilterOptions: SelectPickerOptionType[];
161
161
  handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
162
162
  }
163
163
  export {};
@@ -367,6 +367,7 @@ export declare enum ResourceKindType {
367
367
  cluster = "cluster",
368
368
  release = "release",
369
369
  releaseTrack = "release-track",
370
+ releaseChannel = "release-channel",
370
371
  tenant = "tenant",
371
372
  installation = "installation",
372
373
  environment = "environment",
@@ -14,6 +14,7 @@ export declare const MESSAGES: {
14
14
  VALID_POSITIVE_NUMBER: string;
15
15
  VALID_POSITIVE_INTEGER: string;
16
16
  MAX_SAFE_INTEGER: string;
17
+ INVALID_SEMANTIC_VERSION: string;
17
18
  };
18
19
  export declare const requiredField: (value: string) => ValidationResponseType;
19
20
  export declare const validateName: (name: string) => ValidationResponseType;
@@ -31,4 +32,14 @@ export declare const validateUniqueKeys: (keys: string[]) => {
31
32
  isValid: boolean;
32
33
  message: string;
33
34
  };
35
+ /**
36
+ * Rules for valid semantic version:
37
+ * 1. version.length < 128 and not empty
38
+ * 2. version should follow semantic versioning regex from https://semver.org/
39
+ */
40
+ export declare const validateSemanticVersioning: (version: string) => ValidationResponseType;
41
+ /**
42
+ * A valid display name should be between 3 and 50 characters
43
+ */
44
+ export declare const validateDisplayName: (name: string) => ValidationResponseType;
34
45
  export declare const validateJSON: (json: string) => ValidationResponseType;