@devtron-labs/devtron-fe-common-lib 1.22.8-beta-3 → 1.22.8-beta-4

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.
@@ -1,7 +1,7 @@
1
1
  import { j as n, aM as v, aO as J, aN as K } from "./@vendor-CtCMPfdc.js";
2
2
  import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
3
3
  import z, { getDefaultRegistry as Q } from "@rjsf/core";
4
- import { T as O, j as w, c as N, b as F, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-DhrU8zeW.js";
4
+ import { T as O, j as w, c as N, b as F, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-CjDnjbPY.js";
5
5
  import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as re, ADDITIONAL_PROPERTY_FLAG as L, errorId as se, englishStringTranslator as ae, TranslatableString as oe, titleId as le, canExpand as ie, deepEquals as ce } from "@rjsf/utils";
6
6
  import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
7
7
  import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
@@ -8,6 +8,9 @@ export type ClipboardProps = ({
8
8
  } | {
9
9
  variant: 'button--secondary';
10
10
  size: ComponentSizeType;
11
+ } | {
12
+ variant: 'borderLess';
13
+ size: ComponentSizeType;
11
14
  }) & {
12
15
  content: string;
13
16
  /**
@@ -1,5 +1,5 @@
1
1
  import { MutableRefObject } from 'react';
2
- import { RegistryType, RuntimeParamsAPIResponseType, RuntimePluginVariables } from '../Shared/types';
2
+ import { RuntimeParamsAPIResponseType, RuntimePluginVariables } from '../Shared/types';
3
3
  import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps, EnvironmentsGroupedByClustersType, AppsGroupedByProjectsType, ClusterDetailListType } from './Types';
4
4
  import { ApiResourceType } from '../Pages';
5
5
  export declare const getTeamListMin: () => Promise<TeamList>;
@@ -39,14 +39,3 @@ export declare const getAppsInfoForEnv: ({ envId, appIds }: GetAppsInfoForEnvPro
39
39
  export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
40
40
  export declare const getEnvironmentOptionsGroupedByClusters: () => Promise<EnvironmentsGroupedByClustersType>;
41
41
  export declare const getDetailedClusterList: (clusterIds?: number[], signal?: AbortSignal) => Promise<ClusterDetailListType[]>;
42
- export declare const getDockerRegistriesListMin: (signal: AbortSignal) => Promise<ResponseType<{
43
- id: string;
44
- registryType: RegistryType;
45
- isDefault: boolean;
46
- }[]>>;
47
- export declare const getGitProvidersListMin: (signal: AbortSignal) => Promise<ResponseType<{
48
- id: number;
49
- name: string;
50
- url: string;
51
- authMode: "SSH" | "USERNAME_PASSWORD" | "ANONYMOUS";
52
- }[]>>;
@@ -10,7 +10,6 @@ export declare const LICENSE_DASHBOARD_HOME_PAGE = "https://license.devtron.ai/d
10
10
  export declare const DEVTRON_GPT_LINK = "https://chatgpt.com/g/g-6826efa4362c8191b23e7bfa0ac036db-devtron-expert";
11
11
  export declare const PATTERNS: {
12
12
  STRING: RegExp;
13
- APP_NAME: string;
14
13
  DECIMAL_NUMBERS: RegExp;
15
14
  POSITIVE_DECIMAL_NUMBERS: RegExp;
16
15
  NATURAL_NUMBERS: RegExp;
@@ -180,8 +179,6 @@ export declare const ROUTES: {
180
179
  readonly ENV: "env";
181
180
  readonly APP_METADATA: "app-metadata";
182
181
  readonly RESOURCE_CONFLICTS_LIST: "app/:appId/cd-pipeline/:pipelineId/history/:wfrId/helm-ownership-conflicts";
183
- readonly GIT_PROVIDER_MIN: "git/provider/autocomplete";
184
- readonly DOCKER_REGISTRY_MIN: "docker/registry/autocomplete";
185
182
  };
186
183
  export declare enum KEY_VALUE {
187
184
  KEY = "key",
@@ -211,6 +211,7 @@ export declare const iconMap: {
211
211
  'ic-magic-wand': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
212
212
  'ic-magnifying-glass': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
213
213
  'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
214
+ 'ic-medium-megaphone': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
214
215
  'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
215
216
  'ic-megaphone-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
216
217
  'ic-megaphone-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -300,7 +301,9 @@ export declare const iconMap: {
300
301
  'ic-terminal-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
301
302
  'ic-terminal': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
302
303
  'ic-thermometer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
304
+ 'ic-thumb-down-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
303
305
  'ic-thumb-down': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
306
+ 'ic-thumb-up-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
304
307
  'ic-thumb-up': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
305
308
  'ic-timeout-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
306
309
  'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -1,3 +1,2 @@
1
- export { getProjectOptions } from './service';
2
1
  export type { UseGetResourceKindOptionsReturnType, UseGetResourceKindsOptionsProps } from './types';
3
2
  export { default as useGetResourceKindsOptions } from './useGetResourceKindsOptions';
@@ -152,7 +152,6 @@ export type MainContext = CommonMainContextProps & ({
152
152
  setTempAppWindowConfig: Dispatch<SetStateAction<TempAppWindowConfig>>;
153
153
  AIRecommendations?: FunctionComponent;
154
154
  featureAskDevtronExpert: EnvironmentDataValuesDTO['featureAskDevtronExpert'];
155
- AskDevtronButton?: FunctionComponent;
156
155
  } | {
157
156
  isLicenseDashboard: true;
158
157
  serverMode: null;
@@ -172,7 +171,6 @@ export type MainContext = CommonMainContextProps & ({
172
171
  setTempAppWindowConfig: null;
173
172
  AIRecommendations?: null;
174
173
  featureAskDevtronExpert?: null;
175
- AskDevtronButton?: null;
176
174
  });
177
175
  export interface MainContextProviderProps {
178
176
  children: ReactNode;
@@ -62,4 +62,3 @@ export declare const validateYAML: (yamlString: string, isRequired?: boolean) =>
62
62
  export declare const validateEmail: (email: string) => ValidationResponseType;
63
63
  export declare const getIsRegexValid: (regexString: string) => ValidationResponseType;
64
64
  export declare const validateCronExpression: (expression: string) => ValidationResponseType;
65
- export declare const validateAppName: (value: string) => Required<ValidationResponseType>;
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48">
2
+ <path fill="#06C" d="M27 12.954 9.42 7.562A1.5 1.5 0 0 0 7.5 9v27a1.5 1.5 0 0 0 1.92 1.438L27 32.046V12.955Z" opacity=".3"/>
3
+ <path stroke="#06C" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M42.42 27.315a1.5 1.5 0 0 0 1.08-1.44v-6.75a1.5 1.5 0 0 0-1.08-1.44L9.42 7.56A1.5 1.5 0 0 0 7.5 9v27a1.5 1.5 0 0 0 1.92 1.44l33-10.125Z" vector-effect="non-scaling-stroke"/>
4
+ <path stroke="#06C" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M36 29.284V36a1.5 1.5 0 0 1-1.5 1.5h-6A1.5 1.5 0 0 1 27 36V12.954" vector-effect="non-scaling-stroke"/>
5
+ </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 fill="#3B444C" d="M19.125 3.75a2.25 2.25 0 0 1 2.233 1.969l1.125 9a2.25 2.25 0 0 1-2.233 2.531H15v1.5a3.75 3.75 0 0 1-3.75 3.75.75.75 0 0 1-.67-.414l-3.12-6.241a3.997 3.997 0 0 1-.423-1.788v-9.31a.997.997 0 0 1 1-.997h11.088ZM4.5 3.75c.552 0 1 .444 1 .996v9.257a.997.997 0 0 1-1 .997H3a1.5 1.5 0 0 1-1.5-1.5V5.25A1.5 1.5 0 0 1 3 3.75h1.5Z"/>
3
+ </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 fill="#3B444C" d="M19.125 20.25a2.25 2.25 0 0 0 2.233-1.969l1.125-9A2.25 2.25 0 0 0 20.25 6.75H15v-1.5a3.75 3.75 0 0 0-3.75-3.75.75.75 0 0 0-.67.414L7.46 8.156a3.997 3.997 0 0 0-.423 1.787v9.31c0 .552.448.997 1 .997h11.088Zm-14.625 0c.552 0 1-.444 1-.996V9.997A.997.997 0 0 0 4.5 9H3a1.5 1.5 0 0 0-1.5 1.5v8.25a1.5 1.5 0 0 0 1.5 1.5h1.5Z"/>
3
+ </svg>