@devtron-labs/devtron-fe-common-lib 0.0.90-beta-1 → 0.0.90-beta-3

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 (36) hide show
  1. package/dist/Common/SortableTableHeaderCell/SortableTableHeaderCell.d.ts +1 -1
  2. package/dist/Common/SortableTableHeaderCell/types.d.ts +0 -5
  3. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +0 -2
  4. package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -4
  5. package/dist/Shared/Components/index.d.ts +0 -1
  6. package/dist/Shared/Helpers.d.ts +1 -0
  7. package/dist/Shared/constants.d.ts +1 -0
  8. package/dist/Shared/index.d.ts +0 -1
  9. package/dist/Shared/types.d.ts +16 -45
  10. package/dist/{cssMode-07d7773b.js → cssMode-ca85ea2b.js} +1 -1
  11. package/dist/{freemarker2-38252b9d.js → freemarker2-cef65e07.js} +1 -1
  12. package/dist/{handlebars-933ed526.js → handlebars-8ef696cc.js} +1 -1
  13. package/dist/{html-98cdc8f3.js → html-4b227a05.js} +1 -1
  14. package/dist/{htmlMode-347a2681.js → htmlMode-e058165f.js} +1 -1
  15. package/dist/{index-9369744f.js → index-ef2a9390.js} +15942 -16048
  16. package/dist/index.d.ts +0 -1
  17. package/dist/index.js +181 -180
  18. package/dist/{javascript-1c94db42.js → javascript-ce228b1b.js} +1 -1
  19. package/dist/{jsonMode-9888b5f5.js → jsonMode-b755564d.js} +1 -1
  20. package/dist/{liquid-7f732582.js → liquid-edc795e4.js} +1 -1
  21. package/dist/{mdx-bcbbf051.js → mdx-d4897164.js} +1 -1
  22. package/dist/{python-ccf185f2.js → python-498d4d83.js} +1 -1
  23. package/dist/{razor-ba6ad09d.js → razor-f688b99c.js} +1 -1
  24. package/dist/{tsMode-0d8e3cff.js → tsMode-bf7c4f29.js} +1 -1
  25. package/dist/{typescript-ba44fc90.js → typescript-cbfa06bd.js} +1 -1
  26. package/dist/{xml-bd46f314.js → xml-4b579586.js} +1 -1
  27. package/dist/{yaml-02afcbbb.js → yaml-8a037691.js} +1 -1
  28. package/package.json +1 -1
  29. package/dist/Shared/API/APIQueuing.d.ts +0 -11
  30. package/dist/Shared/API/index.d.ts +0 -1
  31. package/dist/Shared/Components/EnvironmentSelector/EnvironmentSelector.component.d.ts +0 -4
  32. package/dist/Shared/Components/EnvironmentSelector/constants.d.ts +0 -5
  33. package/dist/Shared/Components/EnvironmentSelector/index.d.ts +0 -1
  34. package/dist/Shared/Components/EnvironmentSelector/service.d.ts +0 -3
  35. package/dist/Shared/Components/EnvironmentSelector/types.d.ts +0 -27
  36. package/dist/Shared/Components/EnvironmentSelector/utils.d.ts +0 -6
@@ -1,27 +0,0 @@
1
- import { commonSelectStyles } from '../ReactSelect';
2
- import { GroupedOptionsType } from '../../types';
3
- import { OptionType } from '../../../Common';
4
-
5
- export type SelectedEnvironmentsMapType<T> = Record<string, T>;
6
- export type BaseSelectorType = {
7
- isMulti: true;
8
- handleEnvironmentChange: (options: OptionType[]) => void;
9
- } | {
10
- isMulti: false;
11
- handleEnvironmentChange: (option: OptionType) => void;
12
- };
13
- export type EnvironmentSelectorProps<T> = BaseSelectorType & {
14
- /**
15
- * Would expect selected option to be like {[selectedOption1.label] = <any value we want to store>, ...}
16
- */
17
- selectedEnvironmentsMap?: SelectedEnvironmentsMapType<T>;
18
- placeholder?: string;
19
- /**
20
- * This is a HEAVY operation, so make sure to wrap it in useCallback
21
- * In case we want to process (filter, rename label, etc) the options before displaying them
22
- */
23
- processOptions?: (options: GroupedOptionsType[]) => GroupedOptionsType[];
24
- styles?: typeof commonSelectStyles;
25
- isClearable?: boolean;
26
- autoFocus?: boolean;
27
- };
@@ -1,6 +0,0 @@
1
- import { SelectedEnvironmentsMapType } from './types';
2
- import { EnvListMinDTO, GroupedOptionsType } from '../../types';
3
- import { OptionType } from '../../../Common';
4
-
5
- export declare const parseEnvironmentClusterListToOptions: (environmentClusterList: EnvListMinDTO[]) => GroupedOptionsType[];
6
- export declare const getSelectedOptions: <T>(selectedEnvironmentsMap: SelectedEnvironmentsMapType<T>, options: GroupedOptionsType[]) => OptionType[];