@devtron-labs/devtron-fe-common-lib 4.0.1-beta-3 → 4.0.2-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 (26) hide show
  1. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +2 -2
  2. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +1 -1
  3. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
  4. package/dist/Shared/Components/FeatureDescription/index.d.ts +1 -0
  5. package/dist/Shared/Components/FeatureDescription/types.d.ts +6 -0
  6. package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
  7. package/dist/Shared/Components/SelectPicker/type.d.ts +12 -12
  8. package/dist/Shared/types.d.ts +3 -1
  9. package/dist/{cssMode-BKAw6Gjy.js → cssMode-DzZAlFXm.js} +1 -1
  10. package/dist/{freemarker2-CaToeyV1.js → freemarker2-DQO2yiWh.js} +1 -1
  11. package/dist/{handlebars-BcuRt7Wx.js → handlebars-IrTn8N2Z.js} +1 -1
  12. package/dist/{html-BHs6br3H.js → html-DLBso2oN.js} +1 -1
  13. package/dist/{htmlMode-BHPPU3R8.js → htmlMode-Dx8V65o4.js} +1 -1
  14. package/dist/{index-ByQvKL1i.js → index-Btf7nBuW.js} +959 -959
  15. package/dist/index.js +1 -1
  16. package/dist/{javascript-CgB6Ukwh.js → javascript-Dvn-Mpn4.js} +1 -1
  17. package/dist/{jsonMode-BQ72p6WC.js → jsonMode-DKuzVHCA.js} +1 -1
  18. package/dist/{liquid-BSnWNlwJ.js → liquid-BVJW9xij.js} +1 -1
  19. package/dist/{mdx-CmG3JYo6.js → mdx-CgFHm_Sz.js} +1 -1
  20. package/dist/{python-DsZUSBx9.js → python-BFJ7kh5W.js} +1 -1
  21. package/dist/{razor-DMf-FT32.js → razor-CYjsrqGD.js} +1 -1
  22. package/dist/{tsMode-DpDNESk7.js → tsMode-CMRuvqqP.js} +1 -1
  23. package/dist/{typescript-fK9cd2PO.js → typescript-CSXwlDVg.js} +1 -1
  24. package/dist/{xml-DbdPKzSs.js → xml-CCXFyBZo.js} +1 -1
  25. package/dist/{yaml-Dn628uiu.js → yaml-D8DXGT6k.js} +1 -1
  26. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
- import { DescriptorProps } from './types';
2
- declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: DescriptorProps) => JSX.Element;
1
+ import { BuildInfraDescriptorProps } from './types';
2
+ declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: BuildInfraDescriptorProps) => JSX.Element;
3
3
  export default Descriptor;
@@ -48,7 +48,7 @@ export declare enum BuildInfraProfileVariants {
48
48
  NORMAL = "NORMAL",
49
49
  CUSTOM = "CUSTOM"
50
50
  }
51
- export interface DescriptorProps {
51
+ export interface BuildInfraDescriptorProps {
52
52
  /**
53
53
  * In case we want to restrict the max-width
54
54
  */
@@ -1,3 +1,3 @@
1
1
  import { DescriptorProps } from './types';
2
- declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, }: DescriptorProps) => JSX.Element;
2
+ declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, showInfoIcon, }: DescriptorProps) => JSX.Element;
3
3
  export default FeatureTitleWithInfo;
@@ -1,2 +1,3 @@
1
1
  export * from './FeatureDescriptionModal';
2
2
  export { default as FeatureTitleWithInfo } from './FeatureTitleWithInfo';
3
+ export * from './types';
@@ -20,4 +20,10 @@ export interface DescriptorProps extends FeatureDescriptionModalProps {
20
20
  docLinkText?: string;
21
21
  dataTestId?: string;
22
22
  additionalContent?: ReactNode;
23
+ /**
24
+ * If true, the info icon is displayed which when clicked shows the feature description modal
25
+ *
26
+ * @default false
27
+ */
28
+ showInfoIcon?: boolean;
23
29
  }
@@ -2,7 +2,7 @@ import { DropdownIndicatorProps, ControlProps, OptionProps, ClearIndicatorProps,
2
2
  import { SelectPickerGroupHeadingProps, SelectPickerOptionType, SelectPickerProps } from './type';
3
3
  export declare const SelectPickerDropdownIndicator: <OptionValue>(props: DropdownIndicatorProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
4
4
  export declare const SelectPickerClearIndicator: <OptionValue>(props: ClearIndicatorProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
5
- export declare const SelectPickerControl: <OptionValue, IsMulti extends boolean>({ icon, showSelectedOptionIcon, ...props }: ControlProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "icon" | "showSelectedOptionIcon">) => JSX.Element;
5
+ export declare const SelectPickerControl: <OptionValue>(props: ControlProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
6
6
  export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "showSelectedOptionsCount" | "customSelectedOptionsCount">) => JSX.Element;
7
7
  export declare const SelectPickerLoadingIndicator: () => JSX.Element;
8
8
  export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, ...props }: OptionProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
@@ -39,17 +39,24 @@ declare module 'react-select/base' {
39
39
  * Imp Note: The menu open/close needs to handled by the consumer in this case
40
40
  */
41
41
  renderCustomOptions?: () => ReactElement;
42
+ /**
43
+ * Icon to be rendered in the control
44
+ */
45
+ icon?: ReactElement;
46
+ /**
47
+ * If true, the selected option icon is shown in the container.
48
+ * startIcon has higher priority than endIcon.
49
+ *
50
+ * @default 'true'
51
+ */
52
+ showSelectedOptionIcon?: boolean;
42
53
  }
43
54
  }
44
55
  export declare enum SelectPickerVariantType {
45
56
  DEFAULT = "default",
46
57
  BORDER_LESS = "border-less"
47
58
  }
48
- export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'>> & {
49
- /**
50
- * Icon to be rendered in the control
51
- */
52
- icon?: ReactElement;
59
+ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'>> & {
53
60
  /**
54
61
  * Error message for the select
55
62
  */
@@ -62,13 +69,6 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
62
69
  * Label for the select. if required is added, the corresponding * is also added
63
70
  */
64
71
  label?: ReactNode;
65
- /**
66
- * If true, the selected option icon is shown in the container.
67
- * startIcon has higher priority than endIcon.
68
- *
69
- * @default 'true'
70
- */
71
- showSelectedOptionIcon?: boolean;
72
72
  /**
73
73
  * Custom selected options count for use cases like filters
74
74
  */
@@ -395,7 +395,9 @@ export interface SeverityCount {
395
395
  unknown: number;
396
396
  }
397
397
  export declare enum PolicyKindType {
398
- lockConfiguration = "lock-configuration"
398
+ lockConfiguration = "lock-configuration-dummy",
399
+ imagePromotion = "image-promotion",
400
+ plugins = "lock-configuration"
399
401
  }
400
402
  export interface LastExecutionResultType {
401
403
  lastExecution: string;
@@ -1,7 +1,7 @@
1
1
  var Fe = Object.defineProperty;
2
2
  var Le = (e, n, i) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => Le(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as je } from "./index-ByQvKL1i.js";
4
+ import { m as je } from "./index-Btf7nBuW.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 f } from "./index-ByQvKL1i.js";
1
+ import { m as f } from "./index-Btf7nBuW.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 l } from "./index-ByQvKL1i.js";
1
+ import { m as l } from "./index-Btf7nBuW.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-ByQvKL1i.js";
1
+ import { m as s } from "./index-Btf7nBuW.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 Be = Object.defineProperty;
2
2
  var $e = (e, n, i) => n in e ? Be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => $e(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as qe } from "./index-ByQvKL1i.js";
4
+ import { m as qe } from "./index-Btf7nBuW.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)