@devtron-labs/devtron-fe-common-lib 1.15.1-pre-3 → 1.15.1-pre-5

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.
@@ -6,6 +6,7 @@ export declare const DOCUMENTATION_VERSION = "/devtron/v0.7";
6
6
  export declare const DISCORD_LINK = "https://discord.devtron.ai/";
7
7
  export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
8
8
  export declare const LICENSE_DASHBOARD_HOME_PAGE = "https://license.devtron.ai/dashboard";
9
+ export declare const DEVTRON_GPT_LINK = "https://chatgpt.com/g/g-6826efa4362c8191b23e7bfa0ac036db-devtron-expert";
9
10
  export declare const PATTERNS: {
10
11
  STRING: RegExp;
11
12
  DECIMAL_NUMBERS: RegExp;
@@ -57,6 +58,7 @@ export declare const URLS: {
57
58
  readonly COMPARE_CLUSTERS: "/compare-clusters";
58
59
  readonly APP_CONFIG: "edit";
59
60
  readonly GLOBAL_CONFIG: "/global-config";
61
+ readonly GLOBAL_CONFIG_MANAGE_CATEGORIES: "/global-config/cluster-env/manage-categories";
60
62
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP: "/global-config/templates/devtron-apps";
61
63
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_CREATE: "/global-config/templates/devtron-apps/create";
62
64
  readonly GLOBAL_CONFIG_TEMPLATES_DEVTRON_APP_DETAIL: "/global-config/templates/devtron-apps/detail/:appId";
@@ -66,6 +68,7 @@ export declare const ROUTES: {
66
68
  readonly APP: "app";
67
69
  readonly APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material";
68
70
  readonly APP_TEMPLATE_DATA: "app/template/data";
71
+ readonly ENVIRONMENT_CATEGORIES: "env/categories";
69
72
  readonly PROJECT_LIST_MIN: "team/autocomplete";
70
73
  readonly USER_CHECK_ROLE: "user/check/roles";
71
74
  readonly IMAGE_TAGGING: "app/image-tagging";
@@ -916,4 +916,11 @@ export interface EnvAppsMetaDTO {
916
916
  appCount: number;
917
917
  apps: AppMeta[];
918
918
  }
919
+ export interface ClusterEnvironmentCategoryDTO {
920
+ id: number;
921
+ name: string;
922
+ description?: string;
923
+ }
924
+ export interface ClusterEnvironmentCategoryType extends ClusterEnvironmentCategoryDTO {
925
+ }
919
926
  export {};
@@ -45,7 +45,8 @@ export declare enum HelpMenuItems {
45
45
  VIEW_ALL_TICKETS = "view-all-tickets",
46
46
  GIVE_FEEDBACK = "give-feedback",
47
47
  CHAT_WITH_SUPPORT = "chat-with-support",
48
- RAISE_ISSUE_REQUEST = "raise-issue-request"
48
+ RAISE_ISSUE_REQUEST = "raise-issue-request",
49
+ DEVTRON_GPT = "devtron-gpt"
49
50
  }
50
51
  export type HelpButtonActionMenuProps = ActionMenuProps<HelpMenuItems>;
51
52
  export interface ProfileMenuProps {
@@ -41,6 +41,7 @@ export declare const iconMap: {
41
41
  'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
42
42
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
43
43
  'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
44
+ 'ic-cluster-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
44
45
  'ic-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
45
46
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
46
47
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -67,6 +68,8 @@ export declare const iconMap: {
67
68
  'ic-enterprise-feat': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
68
69
  'ic-enterprise-tag': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
69
70
  'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
71
+ 'ic-environment-isolated': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
72
+ 'ic-environment': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
70
73
  'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
71
74
  'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
72
75
  'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -136,6 +139,7 @@ export declare const iconMap: {
136
139
  'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
137
140
  'ic-open-box': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
138
141
  'ic-open-in-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
142
+ 'ic-openai': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
139
143
  'ic-openshift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
140
144
  'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
141
145
  'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -148,6 +152,7 @@ export declare const iconMap: {
148
152
  'ic-rocket-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
149
153
  'ic-rocket-launch': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
150
154
  'ic-selected': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
155
+ 'ic-shapes': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
151
156
  'ic-shield-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
152
157
  'ic-sliders-vertical': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
153
158
  'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ import { ProgressBarProps } from './types';
2
+ export declare const ProgressBar: ({ isLoading, intervalTime }: ProgressBarProps) => JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './ProgressBar.component';
@@ -0,0 +1,9 @@
1
+ export interface ProgressBarProps {
2
+ isLoading: boolean;
3
+ /**
4
+ * Interval in milliseconds for the progress bar simulation.
5
+ *
6
+ * @default 50
7
+ */
8
+ intervalTime?: number;
9
+ }
@@ -63,6 +63,7 @@ export * from './ModalSidebarPanel';
63
63
  export * from './NumbersCount';
64
64
  export * from './PhoneInput';
65
65
  export * from './Plugin';
66
+ export * from './ProgressBar';
66
67
  export { default as QRCode } from './QRCode';
67
68
  export * from './ReactSelect';
68
69
  export * from './RegistryIcon';
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M16.3301 10.5L17.4126 11.125M16.3301 10.5L15.2476 11.125M16.3301 10.5V9.25M12 13L10.9175 12.375M12 13L13.0825 12.375M12 13L12 14.25M7.66987 10.5L6.58737 11.125M7.66987 10.5L8.75241 11.125M7.66987 10.5V9.25M12.0001 18L13.0826 18.625M12.0001 18L10.9176 18.625M12.0001 18L12.0001 16.75M19.5776 12.375L20.6601 13V14.25M20.6601 16.75V18L19.5776 18.625M17.4125 19.875L16.33 20.5L15.2475 19.875M8.75253 19.875L7.67 20.5L6.58747 19.875M4.42241 18.625L3.33987 18V16.75M3.33987 14.25V13L4.42237 12.375M7.66987 6.75V5.5L8.75241 4.875M16.3301 6.75V5.5L15.2476 4.875M13.0825 3.625L12 3L10.9175 3.625" vector-effect="non-scaling-stroke" stroke="#3B444C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -1,3 +1,3 @@
1
1
  <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" vector-effect="non-scaling-effect">
2
- <path d="M13.6084 8.75V4.58333L9.99998 2.5L6.39154 4.58333V8.75M13.6084 8.75L9.99998 10.8333M13.6084 8.75L17.2167 10.8333V15L13.6083 17.0833L10.0001 15M9.99998 10.8333L6.39154 8.75M9.99998 10.8333L10.0001 15M6.39154 8.75L2.7832 10.8333V15L6.39164 17.0833L10.0001 15" fill="none" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
2
+ <path d="M13.6084 8.75V4.58333L9.99998 2.5L6.39154 4.58333V8.75M13.6084 8.75L9.99998 10.8333M13.6084 8.75L17.2167 10.8333V15L13.6083 17.0833L10.0001 15M9.99998 10.8333L6.39154 8.75M9.99998 10.8333L10.0001 15M6.39154 8.75L2.7832 10.8333V15L6.39164 17.0833L10.0001 15" vector-effect="non-scaling-stroke" fill="none" stroke="#fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
3
3
  </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M20.6703 9.5L20.6702 7L18.5052 5.75M20.6704 14.5L20.6705 17L18.5054 18.25M14.1753 20.75L12.0102 22L9.84517 20.75M5.51504 18.25L3.34998 17V14.5M3.34998 9.5V7L5.51498 5.75M8.73251 15.125L7.64998 14.5V13.25M10.8976 16.375L11.9801 17L13.0626 16.375M15.2277 15.125L16.3102 14.5L16.3102 13.25M16.3101 10.75L16.3101 9.5L15.2276 8.875M13.0625 7.625L11.98 7L10.8975 7.625M8.73248 8.875L7.64998 9.5V10.75M9.84498 3.25L12.01 2L14.175 3.25" vector-effect="non-scaling-stroke" stroke="#3B444C" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,4 @@
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.01 2 8.66 5v10l-8.66 5-8.66-5V7l8.66-5Z" vector-effect="non-scaling-stroke"/>
3
+ <path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m11.98 7 4.33 2.5v5L11.98 17l-4.33-2.5v-5L11.98 7Z" vector-effect="non-scaling-stroke"/>
4
+ </svg>
@@ -0,0 +1,10 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
2
+ <g clip-path="url(#clip0_7700_308)">
3
+ <path d="M14.3579 6.6601C14.6881 5.66422 14.578 4.55969 14.046 3.65434C13.2387 2.2601 11.6058 1.55393 10.0096 1.87986C9.31243 1.10125 8.28499 0.666687 7.22086 0.666687C5.58798 0.666687 4.15691 1.69879 3.64319 3.21977C2.59741 3.43706 1.69841 4.0708 1.16634 4.99426C0.359074 6.3885 0.542544 8.12677 1.62502 9.32183C1.29477 10.3358 1.4232 11.4222 1.95527 12.3276C2.76253 13.7218 4.39542 14.4461 5.99161 14.1021C6.70715 14.8807 7.71623 15.3334 8.78036 15.3334C10.4132 15.3334 11.8443 14.3013 12.358 12.7803C13.4038 12.563 14.3028 11.9292 14.8349 11.0058C15.6422 9.61154 15.4587 7.85516 14.3579 6.6601ZM8.78036 14.3737C8.11987 14.3737 7.49607 14.1564 7.0007 13.7399C7.01905 13.7218 7.07409 13.7037 7.09243 13.6856L10.0463 12.0017C10.1931 11.9111 10.2848 11.7663 10.2848 11.5852V7.47492L11.5324 8.18109C11.5508 8.18109 11.5508 8.1992 11.5508 8.2173V11.6214C11.5691 13.1424 10.3215 14.3737 8.78036 14.3737ZM2.79923 11.8568C2.46898 11.2955 2.3589 10.6436 2.46898 10.0099C2.48733 10.028 2.52402 10.0461 2.56072 10.0642L5.51459 11.7482C5.66137 11.8387 5.84484 11.8387 5.99161 11.7482L9.60598 9.68397V11.1144C9.60598 11.1325 9.60598 11.1506 9.58763 11.1506L6.59706 12.8527C5.27608 13.6132 3.5698 13.1605 2.79923 11.8568ZM2.02865 5.48315C2.3589 4.92183 2.87262 4.50537 3.47807 4.26998V7.74652C3.47807 7.90948 3.5698 8.07245 3.71658 8.16298L7.33095 10.2272L6.08335 10.9334C6.065 10.9334 6.04665 10.9515 6.04665 10.9334L3.05609 9.2313C1.69841 8.4708 1.25808 6.78685 2.02865 5.48315ZM12.303 7.83706L8.68863 5.77286L9.93622 5.06669C9.95457 5.06669 9.97292 5.04858 9.97292 5.06669L12.9635 6.76874C14.3028 7.52924 14.7431 9.21319 13.9726 10.5169C13.6423 11.0782 13.1286 11.4947 12.5232 11.712V8.25352C12.5415 8.09056 12.4498 7.92759 12.303 7.83706ZM13.5322 5.99014C13.5139 5.97204 13.4772 5.95393 13.4405 5.93582L10.4866 4.25187C10.3399 4.16134 10.1564 4.16134 10.0096 4.25187L6.39525 6.31607V4.88562C6.39525 4.86751 6.39525 4.8494 6.41359 4.8494L9.40416 3.14735C10.7435 2.38685 12.4314 2.83953 13.202 4.16134C13.5322 4.70455 13.6423 5.3564 13.5322 5.99014ZM5.71641 8.52512L4.46881 7.81895C4.45046 7.81895 4.45046 7.80084 4.45046 7.78274V4.37862C4.45046 2.85763 5.69806 1.62636 7.23921 1.62636C7.8997 1.62636 8.5235 1.84364 9.01887 2.2601C9.00053 2.27821 8.96383 2.29632 8.92714 2.31442L5.97327 3.99837C5.82649 4.08891 5.73475 4.23377 5.73475 4.41484V8.52512H5.71641ZM6.39525 7.07656L8.00979 6.15311L9.62432 7.07656V8.90537L8.00979 9.82883L6.39525 8.90537V7.07656Z" fill="#1D2730"/>
4
+ </g>
5
+ <defs>
6
+ <clipPath id="clip0_7700_308">
7
+ <rect width="16" height="16" fill="white"/>
8
+ </clipPath>
9
+ </defs>
10
+ </svg>
@@ -0,0 +1,3 @@
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.418 15.095c0-.594.488-1.074 1.09-1.074h4.36c.602 0 1.09.48 1.09 1.073v4.295c0 .593-.488 1.074-1.09 1.074h-4.36c-.602 0-1.09-.48-1.09-1.074v-4.294Zm17.442 2.147c0 2.075-1.709 3.758-3.816 3.758-2.107 0-3.815-1.683-3.815-3.758 0-2.076 1.708-3.758 3.815-3.758s3.816 1.682 3.816 3.758ZM3.117 8.709l2.596-5.115c.402-.792 1.548-.792 1.95 0l2.597 5.115c.362.714-.165 1.554-.975 1.554H4.092c-.81 0-1.338-.84-.975-1.554Zm13.287-5.504a1.104 1.104 0 0 1 1.281 0l2.866 2.05c.382.274.542.759.396 1.201l-1.095 3.318a1.089 1.089 0 0 1-1.037.742h-3.542c-.472 0-.89-.3-1.037-.742l-1.094-3.318a1.065 1.065 0 0 1 .396-1.2l2.866-2.05Z" vector-effect="non-scaling-stroke"/>
3
+ </svg>
@@ -0,0 +1,11 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
2
+ <path data-style-override="false" d="M13.1011 11.2582C11.6579 9.81463 10.6701 7.29371 10.1799 5C9.68891 7.29418 8.70216 9.81562 7.25844 11.2592C5.81526 12.7018 3.2934 13.6896 1 14.1808C3.29434 14.6709 5.81573 15.6581 7.25891 17.1018C8.7021 18.5448 9.6899 21.0663 10.1809 23.36C10.6711 21.0658 11.6586 18.5444 13.1016 17.1008C14.5447 15.6577 17.0666 14.6704 19.36 14.1792C17.0662 13.6891 14.5448 12.7014 13.1011 11.2582Z" fill="url(#paint0_linear_5529_7104)"/>
3
+ <path data-style-override="false" d="M20.008 3.99358C19.3183 3.30355 18.8451 2.09705 18.6106 1C18.3757 2.09705 17.9041 3.3035 17.2136 3.99396C16.5231 4.68367 15.3168 5.15649 14.22 5.39138C15.3172 5.62622 16.5231 6.09829 17.2136 6.78875C17.9041 7.47883 18.3766 8.68529 18.6114 9.78233C18.8458 8.68486 19.3183 7.47883 20.0084 6.78837C20.6985 6.09829 21.9049 5.6258 23.0016 5.39058C21.905 5.15612 20.6985 4.68367 20.008 3.99358Z" fill="#CE89B8"/>
4
+ <defs>
5
+ <linearGradient id="paint0_linear_5529_7104" x1="1.43214" y1="4.88796" x2="21.0646" y2="7.63563" gradientUnits="userSpaceOnUse">
6
+ <stop stop-color="#FFAF7B"/>
7
+ <stop offset="0.499527" stop-color="#D76D77"/>
8
+ <stop offset="1" stop-color="#A17EE1"/>
9
+ </linearGradient>
10
+ </defs>
11
+ </svg>