@devtron-labs/devtron-fe-common-lib 0.1.8-beta-23 → 0.1.8-beta-24

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 (65) hide show
  1. package/dist/Common/Api.d.ts +1 -1
  2. package/dist/Common/CIPipeline.Types.d.ts +1 -10
  3. package/dist/Common/Constants.d.ts +5 -0
  4. package/dist/Common/CustomInput/Types.d.ts +2 -2
  5. package/dist/Common/Helper.d.ts +0 -4
  6. package/dist/Common/Modals/VisibleModal.d.ts +1 -1
  7. package/dist/Common/Modals/VisibleModal2.d.ts +1 -1
  8. package/dist/Common/MultiSelectCustomization.d.ts +1 -1
  9. package/dist/Common/Policy.Types.d.ts +8 -0
  10. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -1
  11. package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +1 -2
  12. package/dist/Common/RJSF/types.d.ts +0 -12
  13. package/dist/Common/RJSF/utils.d.ts +2 -2
  14. package/dist/Common/Types.d.ts +2 -2
  15. package/dist/Common/index.d.ts +0 -1
  16. package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +1 -1
  17. package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +1 -19
  18. package/dist/Shared/Components/DetectBottom/DetectBottom.component.d.ts +6 -0
  19. package/dist/Shared/Components/DetectBottom/index.d.ts +1 -0
  20. package/dist/Shared/Components/EditImageFormField/EditImageFormField.d.ts +4 -0
  21. package/dist/Shared/Components/EditImageFormField/constants.d.ts +5 -0
  22. package/dist/Shared/Components/EditImageFormField/index.d.ts +2 -0
  23. package/dist/Shared/Components/EditImageFormField/types.d.ts +18 -0
  24. package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
  25. package/dist/Shared/Components/FilterChips/types.d.ts +7 -2
  26. package/dist/Shared/Components/Plugin/PluginCard.d.ts +4 -0
  27. package/dist/Shared/Components/Plugin/PluginCardSkeletonList.d.ts +4 -0
  28. package/dist/Shared/Components/Plugin/PluginImageContainer.d.ts +4 -0
  29. package/dist/Shared/Components/Plugin/PluginList.d.ts +4 -0
  30. package/dist/Shared/Components/Plugin/PluginListContainer.d.ts +4 -0
  31. package/dist/Shared/Components/Plugin/PluginTagSelect.d.ts +4 -0
  32. package/dist/Shared/Components/Plugin/PluginTagsContainer.d.ts +4 -0
  33. package/dist/Shared/Components/Plugin/constants.d.ts +5 -0
  34. package/dist/Shared/Components/Plugin/index.d.ts +7 -0
  35. package/dist/Shared/Components/Plugin/service.d.ts +7 -0
  36. package/dist/Shared/Components/Plugin/types.d.ts +186 -0
  37. package/dist/Shared/Components/Plugin/utils.d.ts +23 -0
  38. package/dist/Shared/Components/ReactSelect/utils.d.ts +5 -1
  39. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  40. package/dist/Shared/Components/SelectPicker/type.d.ts +10 -1
  41. package/dist/Shared/Components/index.d.ts +2 -0
  42. package/dist/Shared/constants.d.ts +1 -0
  43. package/dist/Shared/types.d.ts +19 -1
  44. package/dist/Shared/validations.d.ts +3 -0
  45. package/dist/assets/index.css +1 -1
  46. package/dist/{cssMode-0bfc5495.js → cssMode-07c24918.js} +1 -1
  47. package/dist/{freemarker2-12035618.js → freemarker2-9c2661e8.js} +1 -1
  48. package/dist/{handlebars-266ba08f.js → handlebars-1771998e.js} +1 -1
  49. package/dist/{html-0859da9e.js → html-97670f0e.js} +1 -1
  50. package/dist/{htmlMode-3f7ec258.js → htmlMode-276435db.js} +1 -1
  51. package/dist/{index-74fa0b50.js → index-e0061ea2.js} +30707 -32016
  52. package/dist/index.js +438 -421
  53. package/dist/{javascript-84d2cf21.js → javascript-0ce8cf73.js} +1 -1
  54. package/dist/{jsonMode-b893d2f2.js → jsonMode-63631d22.js} +1 -1
  55. package/dist/{liquid-1528e453.js → liquid-bc3437e1.js} +1 -1
  56. package/dist/{mdx-0642a2d8.js → mdx-9f5e46b3.js} +1 -1
  57. package/dist/{python-05bfa611.js → python-fb574681.js} +1 -1
  58. package/dist/{razor-13ef3b5c.js → razor-c8c8086e.js} +1 -1
  59. package/dist/{tsMode-9ee0a84f.js → tsMode-cb66156a.js} +1 -1
  60. package/dist/{typescript-3d63f110.js → typescript-6c4594ad.js} +1 -1
  61. package/dist/{xml-dce7911d.js → xml-fafc839c.js} +1 -1
  62. package/dist/{yaml-5c2d46bf.js → yaml-c442e904.js} +1 -1
  63. package/package.json +2 -3
  64. package/dist/Common/Tippy.d.ts +0 -4
  65. package/dist/Shared/Components/CICDHistory/DetectBottom.d.ts +0 -4
@@ -1,3 +1,4 @@
1
+ import { ServerErrors } from '../../../Common/ServerError';
1
2
  import { OptionType } from '../../../Common/Types';
2
3
  import { ComponentSizeType } from '../../constants';
3
4
  import { ReactElement, ReactNode } from 'react';
@@ -18,7 +19,7 @@ export interface SelectPickerOptionType extends OptionType<number | string, Reac
18
19
  endIcon?: ReactElement;
19
20
  }
20
21
  type SelectProps = ReactSelectProps<SelectPickerOptionType>;
21
- export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
22
+ export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'autoFocus' | 'onKeyDown'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
22
23
  /**
23
24
  * Icon to be rendered in the control
24
25
  */
@@ -70,5 +71,13 @@ export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value'
70
71
  * @default 'ComponentSizeType.small'
71
72
  */
72
73
  menuSize?: ComponentSizeType;
74
+ /**
75
+ * If true, would show generic section error state as no options message
76
+ */
77
+ optionListError?: ServerErrors;
78
+ /**
79
+ * Would reload the option list when called in case optionListError is present
80
+ */
81
+ reloadOptionList?: () => void;
73
82
  }
74
83
  export {};
@@ -30,5 +30,7 @@ export * from './ImageChipCell';
30
30
  export * from './ArtifactInfoModal';
31
31
  export * from './MaterialHistory';
32
32
  export * from './IframeContainer';
33
+ export * from './Plugin';
33
34
  export * from './KeyValueTable';
34
35
  export * from './SelectPicker';
36
+ export * from './EditImageFormField';
@@ -361,3 +361,4 @@ export declare enum ComponentSizeType {
361
361
  medium = "medium",
362
362
  large = "large"
363
363
  }
364
+ export declare const POP_UP_MENU_MODAL_ID = "popup";
@@ -1,4 +1,4 @@
1
- import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors } from '../Common';
1
+ import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams } from '../Common';
2
2
  import { EnvironmentTypeEnum, PatchOperationType } from './constants';
3
3
 
4
4
  export declare enum EnvType {
@@ -516,4 +516,22 @@ export interface BatchConfigType {
516
516
  export interface scrollableInterface {
517
517
  autoBottomScroll: boolean;
518
518
  }
519
+ export type BaseFilterQueryParams<T> = {
520
+ /**
521
+ * Offset for the list result
522
+ */
523
+ offset?: number;
524
+ /**
525
+ * Number of items required in the list
526
+ */
527
+ size?: number;
528
+ /**
529
+ * Search string (if any)
530
+ */
531
+ searchKey?: string;
532
+ /**
533
+ * If true, all items are returned with any search / filtering applied without pagination
534
+ */
535
+ showAll?: boolean;
536
+ } & SortingParams<T>;
519
537
  export {};
@@ -12,6 +12,7 @@ export declare const MESSAGES: {
12
12
  VALID_POSITIVE_NUMBER: string;
13
13
  VALID_POSITIVE_INTEGER: string;
14
14
  MAX_SAFE_INTEGER: string;
15
+ INVALID_SEMANTIC_VERSION: string;
15
16
  };
16
17
  export declare const requiredField: (value: string) => ValidationResponseType;
17
18
  export declare const validateName: (name: string) => ValidationResponseType;
@@ -28,3 +29,5 @@ export declare const validateUniqueKeys: (keys: string[]) => {
28
29
  isValid: boolean;
29
30
  message: string;
30
31
  };
32
+ export declare const validateSematicVersioning: (version: string) => ValidationResponseType;
33
+ export declare const validateDisplayName: (name: string) => ValidationResponseType;