@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.
- package/dist/{@code-editor-BOLaG1cq.js → @code-editor-BhKgnbkm.js} +5669 -5730
- package/dist/{@common-rjsf-D95ycdjG.js → @common-rjsf-DIkXvOXb.js} +32 -44
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +7 -7
- package/dist/Common/CodeEditor/types.d.ts +10 -9
- package/dist/Common/MultiSelectCustomization.d.ts +0 -2
- package/dist/Common/RJSF/utils.d.ts +0 -3
- package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
- package/dist/Common/SegmentedControl/types.d.ts +1 -7
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +5 -4
- package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/types.d.ts +3 -5
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.constants.d.ts +1 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +2 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +1 -1
- package/dist/Shared/Components/Plugin/PluginTagSelect.d.ts +1 -1
- package/dist/Shared/Components/Plugin/types.d.ts +2 -2
- package/dist/Shared/Components/Plugin/utils.d.ts +16 -0
- package/dist/Shared/Components/ReactSelect/constants.d.ts +0 -1
- package/dist/Shared/Components/ReactSelect/utils.d.ts +0 -6
- package/dist/Shared/Components/Security/SecurityDetailsCards/SecurityCard.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityDetailsCards/types.d.ts +2 -1
- package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +8 -8
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/Security/utils.d.ts +3 -0
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Providers/index.d.ts +0 -1
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/{ic-nav-rocket.433c9706.svg → ic-nav-rocket.9e50bb61.svg} +1 -1
- package/dist/assets/{ic-rotate-devtron.5a8363d8.svg → ic-rotate-devtron.200e165b.svg} +86 -87
- package/dist/index.d.ts +0 -6
- package/dist/index.js +363 -361
- package/package.json +1 -1
- package/dist/Common/CodeEditor/utils.d.ts +0 -3
- package/dist/Common/SegmentedControl/constants.d.ts +0 -2
- package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +0 -3
- package/dist/Shared/Components/ThemeSwitcher/constants.d.ts +0 -6
- package/dist/Shared/Components/ThemeSwitcher/index.d.ts +0 -1
- package/dist/Shared/Components/ThemeSwitcher/types.d.ts +0 -3
- package/dist/Shared/Providers/ThemeProvider/ThemeProvider.d.ts +0 -3
- package/dist/Shared/Providers/ThemeProvider/constants.d.ts +0 -2
- package/dist/Shared/Providers/ThemeProvider/index.d.ts +0 -2
- package/dist/Shared/Providers/ThemeProvider/types.d.ts +0 -33
- package/dist/Shared/Providers/ThemeProvider/utils.d.ts +0 -4
- package/dist/assets/ic-laptop.485e21b4.svg +0 -3
- package/dist/assets/ic-moon.17d37c40.svg +0 -3
- package/dist/assets/ic-sun.33e8214b.svg +0 -3
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
export { default as ThemeSwitcher } from './ThemeSwitcher.component';
|
@@ -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>
|