@devtron-labs/devtron-fe-common-lib 0.0.46 → 0.0.47-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.
- package/dist/Common/ChartVersionAndTypeSelector.d.ts +4 -0
- package/dist/Common/Common.service.d.ts +1 -0
- package/dist/Common/Constants.d.ts +1 -0
- package/dist/Common/Helper.d.ts +9 -0
- package/dist/Common/Types.d.ts +64 -0
- package/dist/Common/index.d.ts +1 -0
- package/dist/index.js +1647 -17
- package/package.json +3 -1
- package/src/Common/ChartVersionAndTypeSelector.tsx +78 -0
- package/src/Common/Common.service.ts +4 -0
- package/src/Common/Constants.ts +2 -1
- package/src/Common/Helper.tsx +98 -0
- package/src/Common/Types.ts +70 -0
- package/src/Common/index.ts +1 -0
|
@@ -16,4 +16,5 @@ export declare function setImageTags(request: any, pipelineId: number, artifactI
|
|
|
16
16
|
export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceEnum, cdMaterialID: number, stage: DeploymentNodeType, signal: AbortSignal, queryParams?: CDMaterialServiceQueryParams) => Promise<CDMaterialResponseType>;
|
|
17
17
|
export declare function extractImage(image: string): string;
|
|
18
18
|
export declare function createGitCommitUrl(url: string, revision: string): string;
|
|
19
|
+
export declare function fetchChartTemplateVersions(): Promise<ResponseType>;
|
|
19
20
|
export {};
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -48,4 +48,13 @@ export declare const getUrlWithSearchParams: (url: string, params: Record<string
|
|
|
48
48
|
* Custom exception logger function for logging errors to sentry
|
|
49
49
|
*/
|
|
50
50
|
export declare const logExceptionToSentry: typeof Sentry.captureException;
|
|
51
|
+
export declare const customStyles: {
|
|
52
|
+
control: (base: any, state: any) => any;
|
|
53
|
+
indicatorSeparator: (base: any, state: any) => any;
|
|
54
|
+
valueContainer: (base: any, state: any) => any;
|
|
55
|
+
dropdownIndicator: (base: any, state: any) => any;
|
|
56
|
+
};
|
|
57
|
+
export declare const getFilteredChartVersions: (charts: any, selectedChartType: any) => any;
|
|
58
|
+
export declare function getUnlockedJSON(json: any, jsonPathArray: any): any;
|
|
59
|
+
export declare function getLockedJSON(json: any, jsonPathArray: string[]): any;
|
|
51
60
|
export {};
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -563,4 +563,68 @@ export interface CiPipeline {
|
|
|
563
563
|
isOffendingMandatoryPlugin?: boolean;
|
|
564
564
|
pipelineType?: string;
|
|
565
565
|
}
|
|
566
|
+
export interface DeploymentChartVersionType {
|
|
567
|
+
chartRefId: number;
|
|
568
|
+
chartVersion: string;
|
|
569
|
+
chartType: string;
|
|
570
|
+
type: number;
|
|
571
|
+
}
|
|
572
|
+
export interface ChartVersionAndTypeSelectorProps {
|
|
573
|
+
setSelectedChartRefId: React.Dispatch<React.SetStateAction<number>>;
|
|
574
|
+
}
|
|
575
|
+
export interface InformationBarProps {
|
|
576
|
+
text: string;
|
|
577
|
+
className?: string;
|
|
578
|
+
children?: React.ReactNode;
|
|
579
|
+
}
|
|
580
|
+
export interface CodeEditorInterface {
|
|
581
|
+
value?: string;
|
|
582
|
+
lineDecorationsWidth?: number;
|
|
583
|
+
responseType?: string;
|
|
584
|
+
onChange?: (string: any) => void;
|
|
585
|
+
onBlur?: () => void;
|
|
586
|
+
onFocus?: () => void;
|
|
587
|
+
children?: any;
|
|
588
|
+
defaultValue?: string;
|
|
589
|
+
mode?: 'json' | 'yaml' | 'shell' | 'dockerfile' | 'plaintext';
|
|
590
|
+
tabSize?: number;
|
|
591
|
+
readOnly?: boolean;
|
|
592
|
+
noParsing?: boolean;
|
|
593
|
+
minHeight?: number;
|
|
594
|
+
maxHeight?: number;
|
|
595
|
+
inline?: boolean;
|
|
596
|
+
height?: number | string;
|
|
597
|
+
shebang?: string | JSX.Element;
|
|
598
|
+
diffView?: boolean;
|
|
599
|
+
loading?: boolean;
|
|
600
|
+
customLoader?: JSX.Element;
|
|
601
|
+
theme?: string;
|
|
602
|
+
original?: string;
|
|
603
|
+
focus?: boolean;
|
|
604
|
+
validatorSchema?: any;
|
|
605
|
+
isKubernetes?: boolean;
|
|
606
|
+
cleanData?: boolean;
|
|
607
|
+
chartVersion?: any;
|
|
608
|
+
}
|
|
609
|
+
export interface CodeEditorComposition {
|
|
610
|
+
Header?: React.FC<any>;
|
|
611
|
+
LanguageChanger?: React.FC<any>;
|
|
612
|
+
ThemeChanger?: React.FC<any>;
|
|
613
|
+
ValidationError?: React.FC<any>;
|
|
614
|
+
Clipboard?: React.FC<any>;
|
|
615
|
+
Warning?: React.FC<InformationBarProps>;
|
|
616
|
+
ErrorBar?: React.FC<InformationBarProps>;
|
|
617
|
+
Information?: React.FC<InformationBarProps>;
|
|
618
|
+
}
|
|
619
|
+
export interface CodeEditorHeaderComposition {
|
|
620
|
+
LanguageChanger?: React.FC<any>;
|
|
621
|
+
ThemeChanger?: React.FC<any>;
|
|
622
|
+
ValidationError?: React.FC<any>;
|
|
623
|
+
Clipboard?: React.FC<any>;
|
|
624
|
+
}
|
|
625
|
+
export interface CodeEditorHeaderInterface {
|
|
626
|
+
children?: any;
|
|
627
|
+
className?: string;
|
|
628
|
+
hideDefaultSplitHeader?: boolean;
|
|
629
|
+
}
|
|
566
630
|
export {};
|
package/dist/Common/index.d.ts
CHANGED