@devtron-labs/devtron-fe-common-lib 0.0.91-beta-4 → 0.0.91-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 (41) hide show
  1. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +0 -2
  2. package/dist/Common/BreadCrumb/Types.d.ts +0 -4
  3. package/dist/Common/Constants.d.ts +0 -57
  4. package/dist/Common/Hooks/useStateFilters/types.d.ts +1 -4
  5. package/dist/Common/MultiSelectCustomization.d.ts +0 -8
  6. package/dist/Common/RJSF/common/FieldRow.d.ts +1 -4
  7. package/dist/Common/RJSF/common/types.d.ts +1 -1
  8. package/dist/Common/RJSF/constants.d.ts +4 -1
  9. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
  10. package/dist/Common/RJSF/templates/TitleField.d.ts +1 -1
  11. package/dist/Common/RJSF/templates/index.d.ts +0 -1
  12. package/dist/Common/RJSF/utils.d.ts +3 -1
  13. package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
  14. package/dist/Common/SearchBar/types.d.ts +0 -4
  15. package/dist/Common/index.d.ts +1 -1
  16. package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -222
  17. package/dist/Shared/Components/ReactSelect/index.d.ts +0 -1
  18. package/dist/assets/index.css +1 -1
  19. package/dist/{cssMode-39dd24c4.js → cssMode-ca30972b.js} +1 -1
  20. package/dist/{freemarker2-130f95da.js → freemarker2-8efb5f10.js} +1 -1
  21. package/dist/{handlebars-3d2f4836.js → handlebars-881fb06c.js} +1 -1
  22. package/dist/{html-a26c047b.js → html-2f2c6515.js} +1 -1
  23. package/dist/{htmlMode-82212456.js → htmlMode-7fb13d77.js} +1 -1
  24. package/dist/{index-be4ca45f.js → index-27a11224.js} +15333 -15406
  25. package/dist/index.js +265 -263
  26. package/dist/{javascript-449f746c.js → javascript-3ee0a858.js} +1 -1
  27. package/dist/{jsonMode-64ba3175.js → jsonMode-dee25418.js} +1 -1
  28. package/dist/{liquid-46eaee9f.js → liquid-90634c1b.js} +1 -1
  29. package/dist/{mdx-fb0bd00e.js → mdx-bfccab0e.js} +1 -1
  30. package/dist/{python-035e242f.js → python-655432b2.js} +1 -1
  31. package/dist/{razor-eac3e65c.js → razor-3a0b59c1.js} +1 -1
  32. package/dist/{tsMode-9b2b5d11.js → tsMode-f220e0c7.js} +1 -1
  33. package/dist/{typescript-72f39f87.js → typescript-901a82e2.js} +1 -1
  34. package/dist/{xml-5ce95842.js → xml-d92ad752.js} +1 -1
  35. package/dist/{yaml-f7a5b102.js → yaml-68e1d484.js} +1 -1
  36. package/package.json +1 -1
  37. package/dist/Common/RJSF/templates/Description.d.ts +0 -3
  38. package/dist/Common/ShowMoreText.d.ts +0 -5
  39. package/dist/Shared/Components/CICDHistory/GitCommitInfoGeneric.d.ts +0 -12
  40. package/dist/Shared/Components/CICDHistory/GitMaterialInfoHeader.d.ts +0 -9
  41. package/dist/Shared/Components/ReactSelect/constants.d.ts +0 -14
@@ -1,7 +1,5 @@
1
- import { BreadcrumbTextProps } from './Types';
2
1
  import { default as React } from 'react';
3
2
 
4
- export declare const BreadcrumbText: ({ heading, isActive }: BreadcrumbTextProps) => JSX.Element;
5
3
  declare const Store: ({ children }: {
6
4
  children: any;
7
5
  }) => JSX.Element;
@@ -26,7 +26,3 @@ export interface Breadcrumbs {
26
26
  className?: string;
27
27
  }
28
28
  export type UseBreadcrumbOptionalProps = UseBreadcrumbProps | null;
29
- export interface BreadcrumbTextProps {
30
- heading: string;
31
- isActive?: boolean;
32
- }
@@ -260,60 +260,3 @@ export declare const DATE_TIME_FORMATS: {
260
260
  TWELVE_HOURS_FORMAT_WITHOUT_WEEKDAY: string;
261
261
  TWELVE_HOURS_EXPORT_FORMAT: string;
262
262
  };
263
- export declare enum TIMELINE_STATUS {
264
- DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
265
- GIT_COMMIT = "GIT_COMMIT",
266
- GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED",
267
- ARGOCD_SYNC = "ARGOCD_SYNC",
268
- ARGOCD_SYNC_FAILED = "ARGOCD_SYNC_FAILED",
269
- KUBECTL_APPLY = "KUBECTL_APPLY",
270
- KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED",
271
- KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED",
272
- HEALTHY = "HEALTHY",
273
- APP_HEALTH = "APP_HEALTH",
274
- DEPLOYMENT_FAILED = "FAILED",
275
- FETCH_TIMED_OUT = "TIMED_OUT",
276
- UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS",
277
- DEGRADED = "DEGRADED",
278
- DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED",
279
- ABORTED = "ABORTED",
280
- INPROGRESS = "INPROGRESS",
281
- HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED",
282
- HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO",
283
- HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED"
284
- }
285
- export declare const DEPLOYMENT_STATUS: {
286
- readonly SUCCEEDED: "succeeded";
287
- readonly HEALTHY: "healthy";
288
- readonly FAILED: "failed";
289
- readonly TIMED_OUT: "timed_out";
290
- readonly UNABLE_TO_FETCH: "unable_to_fetch";
291
- readonly INPROGRESS: "inprogress";
292
- readonly PROGRESSING: "progressing";
293
- readonly STARTING: "starting";
294
- readonly INITIATING: "initiating";
295
- readonly SUPERSEDED: "superseded";
296
- readonly QUEUED: "queued";
297
- readonly UNKNOWN: "unknown";
298
- readonly CHECKING: "checking";
299
- };
300
- export declare const statusIcon: {
301
- failed: string;
302
- queued: string;
303
- suspended: string;
304
- starting: string;
305
- initiating: string;
306
- unknown: string;
307
- degraded: string;
308
- healthy: string;
309
- notdeployed: string;
310
- missing: string;
311
- progressing: string;
312
- deploymentinitiated: string;
313
- hibernating: string;
314
- succeeded: string;
315
- timedout: string;
316
- unabletofetch: string;
317
- };
318
- export declare const APP_STATUS_HEADERS: string[];
319
- export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
@@ -2,8 +2,5 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from '../useUrlFilters';
2
2
 
3
3
  export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'> {
4
4
  }
5
- export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'changePage' | 'changePageSize' | 'offset' | 'pageSize' | 'searchKey' | 'handleSearch'> {
6
- }
7
- export interface PaginationType<T> extends Pick<UseUrlFiltersReturnType<T>, 'pageSize'> {
8
- pageNumber: number;
5
+ export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'searchKey' | 'handleSearch'> {
9
6
  }
@@ -2,15 +2,7 @@ import { default as React } from 'react';
2
2
 
3
3
  export declare const Option: (props: any) => JSX.Element;
4
4
  export declare const SingleSelectOption: (props: any) => JSX.Element;
5
- /**
6
- * Multi value container
7
- */
8
5
  export declare const MultiValueContainer: (props: any) => JSX.Element;
9
- /**
10
- *
11
- * Multi value container with count
12
- */
13
- export declare const MultiValueContainerWithCount: (props: any) => JSX.Element;
14
6
  export declare const ClearIndicator: (props: any) => JSX.Element;
15
7
  export declare const MultiValueRemove: (props: any) => JSX.Element;
16
8
  export declare const MultiValueChipContainer: ({ validator, isAllSelected, ...props }: {
@@ -1,6 +1,3 @@
1
- import { DO_NOT_SHOW_LABEL } from '../constants';
2
1
  import { FieldRowProps } from './types';
3
2
 
4
- export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id, shouldAlignCenter, }: Omit<FieldRowProps, "label"> & {
5
- label: FieldRowProps['label'] | typeof DO_NOT_SHOW_LABEL;
6
- }) => JSX.Element;
3
+ export declare const FieldRowWithLabel: ({ showLabel, label, required, children, id, rawDescription, shouldAlignCenter, }: FieldRowProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { FieldTemplateProps } from '@rjsf/utils';
2
2
 
3
- export interface FieldRowProps extends Pick<FieldTemplateProps, 'children' | 'label' | 'required' | 'id'> {
3
+ export interface FieldRowProps extends Pick<FieldTemplateProps, 'children' | 'label' | 'required' | 'id' | 'rawDescription'> {
4
4
  showLabel?: boolean;
5
5
  /**
6
6
  * @default true
@@ -4,4 +4,7 @@ export declare const PLACEHOLDERS: {
4
4
  OBJECT_KEY: string;
5
5
  };
6
6
  export declare const DEFAULT_FIELD_TITLE = "Key not available";
7
- export declare const DO_NOT_SHOW_LABEL: unique symbol;
7
+ export declare const ADD_BUTTON_WIDTH: {
8
+ MAX_WIDTH_VALUE: number;
9
+ MAX_WIDTH_CLASSNAME: string;
10
+ };
@@ -1,3 +1,3 @@
1
1
  import { IconButtonProps } from '@rjsf/utils';
2
2
 
3
- export declare const AddButton: ({ icon, iconType, registry, uiSchema, ...props }: IconButtonProps) => JSX.Element;
3
+ export declare const AddButton: ({ label, icon, iconType, registry, uiSchema, ...props }: IconButtonProps & Partial<Record<'label', string>>) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { TitleFieldProps } from '@rjsf/utils';
2
2
 
3
- export declare const TitleField: ({ id, title, required }: TitleFieldProps) => JSX.Element;
3
+ export declare const TitleField: ({ id, title, required, description }: TitleFieldProps & Record<'description', string>) => JSX.Element;
@@ -2,7 +2,6 @@ export { ArrayFieldTemplate } from './ArrayFieldTemplate';
2
2
  export { ArrayFieldItemTemplate } from './ArrayFieldItemTemplate';
3
3
  export { BaseInput as BaseInputTemplate } from './BaseInput';
4
4
  export * from './ButtonTemplates';
5
- export { Description as DescriptionFieldTemplate } from './Description';
6
5
  export { Field as FieldTemplate } from './Field';
7
6
  export { FieldErrorTemplate } from './FieldErrorTemplate';
8
7
  export { ObjectFieldTemplate } from './ObjectFieldTemplate';
@@ -1,3 +1,4 @@
1
+ import { default as Tippy } from '@tippyjs/react';
1
2
  import { TranslatableString } from '@rjsf/utils';
2
3
 
3
4
  /**
@@ -12,7 +13,7 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
12
13
  valueContainer: (base: any, state: any) => any;
13
14
  loadingMessage: (base: any) => any;
14
15
  noOptionsMessage: (base: any) => any;
15
- multiValue: (base: any, state: any) => any;
16
+ multiValue: (base: any) => any;
16
17
  };
17
18
  /**
18
19
  * Returns the redirection props for a url
@@ -24,3 +25,4 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
24
25
  * Infers the type for json schema from value type
25
26
  */
26
27
  export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
28
+ export declare const getTippyWrapperWithContent: (content: any, placement?: React.ComponentProps<typeof Tippy>['placement']) => (children: any) => JSX.Element;
@@ -34,5 +34,5 @@ import { SearchBarProps } from './types';
34
34
  * <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
35
35
  * ```
36
36
  */
37
- declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, dataTestId, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
37
+ declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
38
38
  export default SearchBar;
@@ -32,10 +32,6 @@ export interface SearchBarProps {
32
32
  * Timeout for the debounce handler to be triggered
33
33
  */
34
34
  debounceTimeout?: number;
35
- /**
36
- * Data test id for the search input
37
- */
38
- dataTestId?: string;
39
35
  /**
40
36
  * Hide the background and border of the search
41
37
  */
@@ -13,7 +13,7 @@ export * from './Modals/Modal';
13
13
  export * from './Modals/VisibleModal';
14
14
  export * from './Modals/VisibleModal2';
15
15
  export { BreadCrumb, useBreadcrumb } from './BreadCrumb/BreadCrumb';
16
- export { default as BreadcrumbStore, BreadcrumbText } from './BreadCrumb/BreadcrumbStore';
16
+ export { default as BreadcrumbStore } from './BreadCrumb/BreadcrumbStore';
17
17
  export { default as RadioGroup } from './RadioGroup';
18
18
  export { default as RadioGroupItem } from './RadioGroupItem';
19
19
  export { default as PopupMenu } from './PopupMenu';
@@ -14,228 +14,6 @@ export declare const FILTER_STYLE: {
14
14
  };
15
15
  export declare const GIT_BRANCH_NOT_CONFIGURED = "Not Configured";
16
16
  export declare const DEFAULT_GIT_BRANCH_VALUE = "--";
17
- export declare const EMPTY_STATE_STATUS: {
18
- DATA_NOT_AVAILABLE: string;
19
- API_TOKEN: {
20
- TITLE: string;
21
- SUBTITLE: string;
22
- };
23
- ARTIFACTS_EMPTY_STATE_TEXTS: {
24
- NoFilesFound: string;
25
- BlobStorageNotConfigured: string;
26
- StoreFiles: string;
27
- ConfigureBlobStorage: string;
28
- NoFilesGenerated: string;
29
- NoArtifactsGenerated: string;
30
- NoArtifactsError: string;
31
- FailedToFetchArtifacts: string;
32
- FailedToFetchArtifactsError: string;
33
- NoArtifactsFound: string;
34
- NoArtifactsFoundError: string;
35
- };
36
- CI_BUILD_HISTORY_PIPELINE_TRIGGER: {
37
- TITLE: string;
38
- SUBTITLE: string;
39
- };
40
- CI_BUILD_HISTORY_LINKED_PIPELINE: {
41
- TITLE: string;
42
- SUBTITLE: string;
43
- };
44
- CI_BUILD_HISTORY_NO_PIPELINE: {
45
- TITLE: string;
46
- SUBTITLE: string;
47
- };
48
- CI_DEATILS_NO_VULNERABILITY_FOUND: {
49
- TITLE: string;
50
- SUBTITLE: string;
51
- };
52
- CI_DETAILS_IMAGE_SCANNED_DISABLED: string;
53
- CI_DETAILS_IMAGE_NOT_SCANNED: {
54
- TITLE: string;
55
- SUBTITLE: string;
56
- };
57
- CD_DETAILS_NO_ENVIRONMENT: {
58
- TITLE: string;
59
- SUBTITLE: string;
60
- };
61
- CD_DETAILS_NO_DEPLOYMENT: {
62
- TITLE: string;
63
- SUBTITLE: string;
64
- };
65
- CHART: {
66
- NO_SOURCE_TITLE: string;
67
- NO_CHART_FOUND: string;
68
- };
69
- CHART_DEPLOYMENT_HISTORY: {
70
- SUBTITLE: string;
71
- };
72
- CHART_GROUP_DEPLOYMENT: {
73
- TITLE: string;
74
- SUBTITLE: string;
75
- };
76
- DEPLOYMENT_DETAILS_SETPS_FAILED: {
77
- TITLE: string;
78
- SUBTITLE: string;
79
- };
80
- DEPLOYMENT_DETAILS_SETPS_PROGRESSING: {
81
- TITLE: string;
82
- SUBTITLE: string;
83
- };
84
- DEVTRON_APP_DEPLOYMENT_HISTORY_SOURCE_CODE: {
85
- SUBTITLE: string;
86
- };
87
- DEPLOYMENT_HISTORY_CONFIG_LIST: {
88
- SUBTITLE: string;
89
- };
90
- GENERATE_API_TOKEN: {
91
- TITLE: string;
92
- SUBTITLE: string;
93
- };
94
- TRIGGER_URL: {
95
- TITLE: string;
96
- SUBTITLE: string;
97
- };
98
- CD_EMPTY_STATE: {
99
- TITLE: string;
100
- SUBTITLE: string;
101
- };
102
- CI_PROGRESS_VIEW: {
103
- TITLE: string;
104
- SUBTITLE: string;
105
- };
106
- RENDER_EMPTY_STATE: {
107
- TITILE: string;
108
- SUBTITLE: string;
109
- };
110
- RENDER_NO_ENVIORNMENT_STATE: {
111
- TITLE: string;
112
- SUBTITLE: string;
113
- };
114
- RENDER_SELECT_ENVIRONMENT_VIEW: {
115
- TITLE: string;
116
- SUBTITLE: string;
117
- };
118
- SAVED_VALUES_EMPTY_STATE: {
119
- TITLE: string;
120
- SUBTITLE: string;
121
- };
122
- LOADING_CLUSTER: {
123
- TITLE: string;
124
- SUBTITLE: string;
125
- };
126
- NO_MATCHING_RESULT: {
127
- TITLE: string;
128
- SUBTITLE: string;
129
- };
130
- CLUSTER_NODE_EMPTY_STATE: {
131
- TITLE: string;
132
- SUBTITLE: string;
133
- };
134
- CHART_EMPTY_STATE: {
135
- TITLE: string;
136
- SUBTITLE: string;
137
- };
138
- CHART_VALUES_GUIT_VIEW: {
139
- SUBTITLE: string;
140
- };
141
- DEVTRON_STACK_MANAGER: {
142
- TITLE: string;
143
- SUBTITLE: string;
144
- };
145
- NO_GROUPS: {
146
- TITLE: string;
147
- SUBTITLE: string;
148
- };
149
- NO_USER: {
150
- TITLE: string;
151
- SUBTITLE: string;
152
- };
153
- RENDER_LIST: {
154
- SUBTITLE: string;
155
- };
156
- CUSTOM_CHART_LIST: {
157
- TITLE: string;
158
- };
159
- BULK_ACTION_EDITS: {
160
- TITLE: string;
161
- SUBTITLE: string;
162
- };
163
- SECURITY_SCANS: {
164
- TITLE: string;
165
- SUBTITLE: string;
166
- };
167
- NOTIFICATION_TAB: {
168
- TITLE: string;
169
- SUBTITL: string;
170
- };
171
- CONFIGURATION_TAB: {
172
- TITLE: string;
173
- };
174
- EXTERNAL_LINK_COMPONENT: {
175
- TITLE: string;
176
- SUBTITLE: string;
177
- };
178
- CD_MATERIAL: {
179
- TITLE: string;
180
- };
181
- CI_DETAILS_NOT_FOUND: {
182
- TITLE: string;
183
- SUBTITLE: string;
184
- };
185
- TRIGGER_NOT_FOUND: {
186
- TITLE: string;
187
- SUBTITLE: string;
188
- };
189
- OVERVIEW: {
190
- DEPLOYMENT_TITLE: string;
191
- DEPLOYMENT_SUB_TITLE: string;
192
- APP_DESCRIPTION: string;
193
- JOB_DESCRIPTION: string;
194
- };
195
- };
196
- export declare const DEPLOYMENT_HISTORY_CONFIGURATION_LIST_MAP: {
197
- DEPLOYMENT_TEMPLATE: {
198
- DISPLAY_NAME: string;
199
- VALUE: string;
200
- };
201
- PIPELINE_STRATEGY: {
202
- DISPLAY_NAME: string;
203
- VALUE: string;
204
- };
205
- CONFIGMAP: {
206
- DISPLAY_NAME: string;
207
- VALUE: string;
208
- };
209
- SECRET: {
210
- DISPLAY_NAME: string;
211
- VALUE: string;
212
- };
213
- };
214
- export declare const EXTERNAL_TYPES: {
215
- [x: string]: {
216
- '': string;
217
- KubernetesSecret: string;
218
- AWSSecretsManager: string;
219
- AWSSystemManager: string;
220
- HashiCorpVault: string;
221
- ESO_HashiCorpVault: string;
222
- ESO_AWSSecretsManager: string;
223
- ESO_GoogleSecretsManager: string;
224
- ESO_AzureSecretsManager: string;
225
- KubernetesConfigMap?: undefined;
226
- } | {
227
- '': string;
228
- KubernetesConfigMap: string;
229
- KubernetesSecret?: undefined;
230
- AWSSecretsManager?: undefined;
231
- AWSSystemManager?: undefined;
232
- HashiCorpVault?: undefined;
233
- ESO_HashiCorpVault?: undefined;
234
- ESO_AWSSecretsManager?: undefined;
235
- ESO_GoogleSecretsManager?: undefined;
236
- ESO_AzureSecretsManager?: undefined;
237
- };
238
- };
239
17
  export declare const TERMINAL_STATUS_MAP: {
240
18
  SUCCEEDED: string;
241
19
  HEALTHY: string;
@@ -1,2 +1 @@
1
1
  export * from './utils';
2
- export * from './constants';