@devtron-labs/devtron-fe-common-lib 0.0.48-beta-5 → 0.0.48-beta-7
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/.eslintignore +75 -0
- package/.eslintrc.js +84 -16
- package/.github/pull_request_template.md +25 -0
- package/.github/workflows/ci.yml +31 -0
- package/.github/workflows/release-package.yml +2 -3
- package/.husky/pre-commit +4 -0
- package/.lintstagedrc +5 -0
- package/.nvmrc +1 -0
- package/dist/Common/BreadCrumb/BreadCrumb.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -2
- package/dist/Common/Constants.d.ts +1 -1
- package/dist/Common/CustomInput/CustomInput.d.ts +1 -1
- package/dist/Common/CustomInput/Types.d.ts +2 -1
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
- package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +1 -1
- package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +1 -1
- package/dist/Common/Dialogs/ConfirmationDialog.d.ts +6 -6
- package/dist/Common/Dialogs/DeleteDialog.d.ts +1 -1
- package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +1 -1
- package/dist/Common/Dialogs/Types.d.ts +1 -1
- package/dist/Common/EmptyState/EmptyState.d.ts +20 -17
- package/dist/Common/EmptyState/GenericEmptyState.d.ts +1 -1
- package/dist/Common/Error.d.ts +2 -1
- package/dist/Common/ErrorScreenNotFound.d.ts +1 -1
- package/dist/Common/Helper.d.ts +1 -3
- package/dist/Common/ImageTags.d.ts +1 -1
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -1
- package/dist/Common/Modals/Modal.d.ts +2 -2
- package/dist/Common/Modals/OpaqueModal.d.ts +3 -3
- package/dist/Common/Modals/VisibleModal.d.ts +3 -3
- package/dist/Common/Modals/VisibleModal2.d.ts +3 -3
- package/dist/Common/MultiSelectCustomization.d.ts +1 -1
- package/dist/Common/Policy.Types.d.ts +2 -2
- package/dist/Common/PopupMenu.d.ts +5 -5
- package/dist/Common/Progressing.d.ts +2 -2
- package/dist/Common/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/Common/ResizableTextarea.d.ts +1 -1
- package/dist/Common/TippyCustomized.d.ts +1 -1
- package/dist/Common/ToastBody.d.ts +5 -5
- package/dist/Common/Types.d.ts +0 -55
- package/dist/index.d.ts +1 -1
- package/dist/index.js +391 -2023
- package/package.json +19 -4
- package/src/Common/AddCDButton/AddCDButton.tsx +1 -2
- package/src/Common/Api.ts +21 -26
- package/src/Common/AppStatus/AppStatus.tsx +12 -12
- package/src/Common/AppStatus/utils.ts +6 -5
- package/src/Common/BreadCrumb/BreadCrumb.tsx +32 -28
- package/src/Common/BreadCrumb/BreadcrumbStore.tsx +2 -2
- package/src/Common/BreadCrumb/Types.ts +11 -12
- package/src/Common/Checkbox.tsx +17 -19
- package/src/Common/ClipboardButton/ClipboardButton.tsx +1 -1
- package/src/Common/ClipboardButton/__tests__/ClipboardButton.test.tsx +0 -1
- package/src/Common/Common.service.ts +59 -64
- package/src/Common/Constants.ts +10 -10
- package/src/Common/CustomInput/CustomInput.tsx +22 -28
- package/src/Common/CustomInput/Types.ts +4 -3
- package/src/Common/CustomInput/index.ts +1 -1
- package/src/Common/CustomTagSelector/PropagateTagInfo.tsx +15 -18
- package/src/Common/CustomTagSelector/ResizableTagTextArea.tsx +9 -9
- package/src/Common/CustomTagSelector/TagDetails.tsx +9 -3
- package/src/Common/CustomTagSelector/TagLabelSelect.tsx +7 -9
- package/src/Common/CustomTagSelector/TagLabelValueSelector.tsx +31 -35
- package/src/Common/CustomTagSelector/TagSelector.utils.ts +2 -3
- package/src/Common/CustomTagSelector/Types.ts +1 -1
- package/src/Common/CustomTagSelector/ValidationRules.ts +18 -22
- package/src/Common/CustomTagSelector/index.ts +2 -2
- package/src/Common/DebouncedSearch/DebouncedSearch.tsx +2 -1
- package/src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx +0 -1
- package/src/Common/DeleteComponentModal/DeleteComponent.tsx +27 -32
- package/src/Common/DeleteComponentModal/types.ts +1 -1
- package/src/Common/DevtronProgressing/DevtronProgressing.tsx +5 -8
- package/src/Common/Dialogs/ConfirmationDialog.tsx +24 -24
- package/src/Common/Dialogs/DeleteDialog.tsx +3 -5
- package/src/Common/Dialogs/DialogForm.tsx +31 -35
- package/src/Common/Dialogs/ForceDeleteDialog.tsx +13 -7
- package/src/Common/Dialogs/Types.ts +12 -12
- package/src/Common/Dialogs/index.ts +1 -1
- package/src/Common/Drawer/Drawer.tsx +1 -1
- package/src/Common/EmptyState/EmptyState.tsx +13 -17
- package/src/Common/EmptyState/GenericEmptyState.tsx +25 -15
- package/src/Common/Error.tsx +5 -5
- package/src/Common/ErrorScreenNotFound.tsx +9 -12
- package/src/Common/Grid/Grid.tsx +1 -2
- package/src/Common/Helper.tsx +23 -87
- package/src/Common/Hooks/UseClickOutside/UseClickOutside.tsx +1 -1
- package/src/Common/Hooks/UseSuperAdmin/UseSuperAdmin.tsx +1 -1
- package/src/Common/ImageTags.Types.ts +2 -3
- package/src/Common/ImageTags.tsx +61 -66
- package/src/Common/InfoColorBar/InfoColourbar.tsx +10 -5
- package/src/Common/Modals/Modal.tsx +3 -3
- package/src/Common/Modals/OpaqueModal.tsx +25 -18
- package/src/Common/Modals/VisibleModal.tsx +7 -3
- package/src/Common/Modals/VisibleModal2.tsx +20 -15
- package/src/Common/MultiSelectCustomization.tsx +9 -13
- package/src/Common/Policy.Types.ts +38 -38
- package/src/Common/PopupMenu.tsx +10 -9
- package/src/Common/Progressing.tsx +15 -18
- package/src/Common/RJSF/Form.tsx +0 -1
- package/src/Common/RJSF/common/FieldRow.tsx +0 -1
- package/src/Common/RJSF/config.ts +0 -1
- package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +1 -1
- package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +0 -1
- package/src/Common/RJSF/templates/BaseInput.tsx +0 -1
- package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +0 -1
- package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +0 -1
- package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +1 -6
- package/src/Common/RJSF/templates/Description.tsx +0 -1
- package/src/Common/RJSF/templates/Field.tsx +14 -3
- package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +6 -9
- package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +5 -7
- package/src/Common/RJSF/templates/TitleField.tsx +0 -1
- package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +0 -1
- package/src/Common/RJSF/utils.ts +53 -57
- package/src/Common/RJSF/widgets/Checkbox.tsx +2 -2
- package/src/Common/RJSF/widgets/Select.tsx +0 -1
- package/src/Common/RadioGroup/RadioGroup.tsx +18 -23
- package/src/Common/RadioGroup.tsx +24 -23
- package/src/Common/Reload.tsx +0 -1
- package/src/Common/ResizableTextarea.tsx +18 -17
- package/src/Common/Security/ScanVulnerabilitiesTable.tsx +29 -34
- package/src/Common/ServerError.ts +5 -1
- package/src/Common/TippyCustomized.tsx +41 -38
- package/src/Common/ToastBody.tsx +6 -7
- package/src/Common/Toggle/Toggle.tsx +3 -3
- package/src/Common/Types.ts +12 -70
- package/src/custom.d.ts +7 -7
- package/src/index.ts +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare class ToastBody extends
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
export declare class ToastBody extends Component<{
|
|
3
3
|
title: string;
|
|
4
4
|
subtitle?: string;
|
|
5
5
|
}> {
|
|
6
6
|
render(): JSX.Element;
|
|
7
7
|
}
|
|
8
|
-
export declare class ToastBody3 extends
|
|
8
|
+
export declare class ToastBody3 extends Component<{
|
|
9
9
|
text: string;
|
|
10
10
|
onClick: (...args: any[]) => void;
|
|
11
11
|
buttonText: string;
|
|
12
12
|
}> {
|
|
13
13
|
render(): JSX.Element;
|
|
14
14
|
}
|
|
15
|
-
export declare class ToastBodyWithButton extends
|
|
15
|
+
export declare class ToastBodyWithButton extends Component<{
|
|
16
16
|
title: string;
|
|
17
17
|
subtitle?: string;
|
|
18
18
|
onClick: (...args: any[]) => void;
|
|
@@ -20,4 +20,4 @@ export declare class ToastBodyWithButton extends React.Component<{
|
|
|
20
20
|
}> {
|
|
21
21
|
render(): JSX.Element;
|
|
22
22
|
}
|
|
23
|
-
export declare const toastAccessDenied: (title?: string, subtitle?: string) =>
|
|
23
|
+
export declare const toastAccessDenied: (title?: string, subtitle?: string) => import("react").ReactText;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -570,61 +570,6 @@ export interface CiPipeline {
|
|
|
570
570
|
isOffendingMandatoryPlugin?: boolean;
|
|
571
571
|
pipelineType?: string;
|
|
572
572
|
}
|
|
573
|
-
export interface InformationBarProps {
|
|
574
|
-
text: string;
|
|
575
|
-
className?: string;
|
|
576
|
-
children?: React.ReactNode;
|
|
577
|
-
}
|
|
578
|
-
export interface CodeEditorInterface {
|
|
579
|
-
value?: string;
|
|
580
|
-
lineDecorationsWidth?: number;
|
|
581
|
-
responseType?: string;
|
|
582
|
-
onChange?: (string: any) => void;
|
|
583
|
-
onBlur?: () => void;
|
|
584
|
-
onFocus?: () => void;
|
|
585
|
-
children?: any;
|
|
586
|
-
defaultValue?: string;
|
|
587
|
-
mode?: 'json' | 'yaml' | 'shell' | 'dockerfile';
|
|
588
|
-
tabSize?: number;
|
|
589
|
-
readOnly?: boolean;
|
|
590
|
-
noParsing?: boolean;
|
|
591
|
-
minHeight?: number;
|
|
592
|
-
maxHeight?: number;
|
|
593
|
-
inline?: boolean;
|
|
594
|
-
height?: number | string;
|
|
595
|
-
shebang?: string | JSX.Element;
|
|
596
|
-
diffView?: boolean;
|
|
597
|
-
loading?: boolean;
|
|
598
|
-
customLoader?: JSX.Element;
|
|
599
|
-
theme?: string;
|
|
600
|
-
original?: string;
|
|
601
|
-
focus?: boolean;
|
|
602
|
-
validatorSchema?: any;
|
|
603
|
-
isKubernetes?: boolean;
|
|
604
|
-
cleanData?: boolean;
|
|
605
|
-
chartVersion?: any;
|
|
606
|
-
}
|
|
607
|
-
export interface CodeEditorComposition {
|
|
608
|
-
Header?: React.FC<any>;
|
|
609
|
-
LanguageChanger?: React.FC<any>;
|
|
610
|
-
ThemeChanger?: React.FC<any>;
|
|
611
|
-
ValidationError?: React.FC<any>;
|
|
612
|
-
Clipboard?: React.FC<any>;
|
|
613
|
-
Warning?: React.FC<InformationBarProps>;
|
|
614
|
-
ErrorBar?: React.FC<InformationBarProps>;
|
|
615
|
-
Information?: React.FC<InformationBarProps>;
|
|
616
|
-
}
|
|
617
|
-
export interface CodeEditorHeaderComposition {
|
|
618
|
-
LanguageChanger?: React.FC<any>;
|
|
619
|
-
ThemeChanger?: React.FC<any>;
|
|
620
|
-
ValidationError?: React.FC<any>;
|
|
621
|
-
Clipboard?: React.FC<any>;
|
|
622
|
-
}
|
|
623
|
-
export interface CodeEditorHeaderInterface {
|
|
624
|
-
children?: any;
|
|
625
|
-
className?: string;
|
|
626
|
-
hideDefaultSplitHeader?: boolean;
|
|
627
|
-
}
|
|
628
573
|
export declare enum PipelineType {
|
|
629
574
|
CI_PIPELINE = "CI_PIPELINE",
|
|
630
575
|
CD_PIPELINE = "CD_PIPELINE",
|
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Common';
|