@devtron-labs/devtron-fe-common-lib 1.4.9 → 1.5.0

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 (48) hide show
  1. package/dist/{@code-editor-BOLaG1cq.js → @code-editor-BhKgnbkm.js} +5669 -5730
  2. package/dist/{@common-rjsf-D95ycdjG.js → @common-rjsf-DIkXvOXb.js} +32 -44
  3. package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +7 -7
  4. package/dist/Common/CodeEditor/types.d.ts +10 -9
  5. package/dist/Common/MultiSelectCustomization.d.ts +0 -2
  6. package/dist/Common/RJSF/utils.d.ts +0 -3
  7. package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
  8. package/dist/Common/SegmentedControl/types.d.ts +1 -7
  9. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +1 -1
  10. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
  11. package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +5 -4
  12. package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -2
  13. package/dist/Shared/Components/CICDHistory/types.d.ts +3 -5
  14. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.constants.d.ts +1 -0
  15. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +2 -0
  16. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +1 -1
  17. package/dist/Shared/Components/Plugin/PluginTagSelect.d.ts +1 -1
  18. package/dist/Shared/Components/Plugin/types.d.ts +2 -2
  19. package/dist/Shared/Components/Plugin/utils.d.ts +16 -0
  20. package/dist/Shared/Components/ReactSelect/constants.d.ts +0 -1
  21. package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -6
  22. package/dist/Shared/Components/Security/SecurityDetailsCards/SecurityCard.d.ts +1 -1
  23. package/dist/Shared/Components/Security/SecurityDetailsCards/types.d.ts +2 -1
  24. package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +8 -8
  25. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  26. package/dist/Shared/Components/Security/utils.d.ts +3 -0
  27. package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
  28. package/dist/Shared/Providers/index.d.ts +0 -1
  29. package/dist/assets/@code-editor.css +1 -1
  30. package/dist/assets/{ic-nav-rocket.433c9706.svg → ic-nav-rocket.9e50bb61.svg} +1 -1
  31. package/dist/assets/{ic-rotate-devtron.5a8363d8.svg → ic-rotate-devtron.200e165b.svg} +86 -87
  32. package/dist/index.d.ts +0 -6
  33. package/dist/index.js +363 -361
  34. package/package.json +1 -1
  35. package/dist/Common/CodeEditor/utils.d.ts +0 -3
  36. package/dist/Common/SegmentedControl/constants.d.ts +0 -2
  37. package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +0 -3
  38. package/dist/Shared/Components/ThemeSwitcher/constants.d.ts +0 -6
  39. package/dist/Shared/Components/ThemeSwitcher/index.d.ts +0 -1
  40. package/dist/Shared/Components/ThemeSwitcher/types.d.ts +0 -3
  41. package/dist/Shared/Providers/ThemeProvider/ThemeProvider.d.ts +0 -3
  42. package/dist/Shared/Providers/ThemeProvider/constants.d.ts +0 -2
  43. package/dist/Shared/Providers/ThemeProvider/index.d.ts +0 -2
  44. package/dist/Shared/Providers/ThemeProvider/types.d.ts +0 -33
  45. package/dist/Shared/Providers/ThemeProvider/utils.d.ts +0 -4
  46. package/dist/assets/ic-laptop.485e21b4.svg +0 -3
  47. package/dist/assets/ic-moon.17d37c40.svg +0 -3
  48. package/dist/assets/ic-sun.33e8214b.svg +0 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.4.9",
3
+ "version": "1.5.0",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,3 +0,0 @@
1
- import { AppThemeType } from '../../Shared/Providers';
2
- import { CodeEditorInterface } from './types';
3
- export declare const getCodeEditorThemeFromAppTheme: (editorTheme: CodeEditorInterface["theme"], appTheme: AppThemeType) => CodeEditorInterface["theme"];
@@ -1,2 +0,0 @@
1
- import { SegmentedControlProps } from './types';
2
- export declare const SEGMENTED_CONTROL_SIZE_TO_CLASS_MAP: Record<SegmentedControlProps['size'], string>;
@@ -1,3 +0,0 @@
1
- import { ThemeSwitcherProps } from './types';
2
- declare const ThemeSwitcher: ({ onChange }: ThemeSwitcherProps) => JSX.Element;
3
- export default ThemeSwitcher;
@@ -1,6 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import { ThemePreferenceType } from '@Shared/Providers/ThemeProvider/types';
3
- export declare const THEME_PREFERENCE_TO_ICON_MAP: Record<ThemePreferenceType, {
4
- tippyContent: string;
5
- icon: ReactElement;
6
- }>;
@@ -1 +0,0 @@
1
- export { default as ThemeSwitcher } from './ThemeSwitcher.component';
@@ -1,3 +0,0 @@
1
- export interface ThemeSwitcherProps {
2
- onChange: () => void;
3
- }
@@ -1,3 +0,0 @@
1
- import { ThemeContextType, ThemeProviderProps } from './types';
2
- export declare const ThemeProvider: ({ children }: ThemeProviderProps) => JSX.Element;
3
- export declare const useTheme: () => ThemeContextType;
@@ -1,2 +0,0 @@
1
- export declare const THEME_PREFERENCE_STORAGE_KEY = "themePreference";
2
- export declare const DARK_COLOR_SCHEME_MATCH_QUERY = "(prefers-color-scheme: dark)";
@@ -1,2 +0,0 @@
1
- export * from './ThemeProvider';
2
- export { AppThemeType } from './types';
@@ -1,33 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export declare enum AppThemeType {
3
- light = "light",
4
- dark = "dark"
5
- }
6
- export declare const THEME_PREFERENCE_MAP: {
7
- readonly auto: "auto";
8
- readonly light: AppThemeType.light;
9
- readonly dark: AppThemeType.dark;
10
- };
11
- export type ThemePreferenceType = (typeof THEME_PREFERENCE_MAP)[keyof typeof THEME_PREFERENCE_MAP];
12
- export interface ThemeConfigType {
13
- /**
14
- * Current application theme
15
- *
16
- * @default AppThemeType.light
17
- */
18
- appTheme: AppThemeType;
19
- /**
20
- * Preferred theme for the user (if any)
21
- *
22
- * @default THEME_PREFERENCE_MAP.auto
23
- *
24
- * Note: This shouldn't be consumed other than in ThemeSwitcher component
25
- */
26
- themePreference: ThemePreferenceType;
27
- }
28
- export interface ThemeContextType extends ThemeConfigType {
29
- handleSelectedThemeChange: (updatedThemePreference: ThemePreferenceType) => void;
30
- }
31
- export interface ThemeProviderProps {
32
- children: ReactNode;
33
- }
@@ -1,4 +0,0 @@
1
- import { AppThemeType, ThemePreferenceType, ThemeConfigType } from './types';
2
- export declare const getAppThemeForAutoPreference: () => AppThemeType;
3
- export declare const getThemeConfigFromLocalStorage: () => ThemeConfigType;
4
- export declare const setThemePreferenceInLocalStorage: (themePreference: ThemePreferenceType) => void;
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.5 16.25V6.5A1.5 1.5 0 0 1 5 5h13.5A1.5 1.5 0 0 1 20 6.5v9.75M14.25 9l-3.5 3.5L9 10.75m-7 5.5h19.5v1.5a1.5 1.5 0 0 1-1.5 1.5H3.5a1.5 1.5 0 0 1-1.5-1.5v-1.5Z" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M18.166 11.332V6.924m2.204 2.204h-4.408M13.758 3.25v2.939m1.47-1.47h-2.94m6.679 10.346A8.452 8.452 0 0 1 8.56 4.658a8.45 8.45 0 1 0 10.407 10.407Z" vector-effect="non-scaling-stroke"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 4.607V3M6.772 6.772 5.636 5.636M4.607 12H3m3.772 5.227-1.136 1.137M12 19.393V21m5.227-3.773 1.137 1.137M19.393 12H21m-3.773-5.228 1.137-1.136M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z" vector-effect="non-scaling-stroke"/>
3
- </svg>