@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.
Files changed (128) hide show
  1. package/.eslintignore +75 -0
  2. package/.eslintrc.js +84 -16
  3. package/.github/pull_request_template.md +25 -0
  4. package/.github/workflows/ci.yml +31 -0
  5. package/.github/workflows/release-package.yml +2 -3
  6. package/.husky/pre-commit +4 -0
  7. package/.lintstagedrc +5 -0
  8. package/.nvmrc +1 -0
  9. package/dist/Common/BreadCrumb/BreadCrumb.d.ts +1 -1
  10. package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +2 -2
  11. package/dist/Common/Constants.d.ts +1 -1
  12. package/dist/Common/CustomInput/CustomInput.d.ts +1 -1
  13. package/dist/Common/CustomInput/Types.d.ts +2 -1
  14. package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
  15. package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +1 -1
  16. package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +1 -1
  17. package/dist/Common/Dialogs/ConfirmationDialog.d.ts +6 -6
  18. package/dist/Common/Dialogs/DeleteDialog.d.ts +1 -1
  19. package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +1 -1
  20. package/dist/Common/Dialogs/Types.d.ts +1 -1
  21. package/dist/Common/EmptyState/EmptyState.d.ts +20 -17
  22. package/dist/Common/EmptyState/GenericEmptyState.d.ts +1 -1
  23. package/dist/Common/Error.d.ts +2 -1
  24. package/dist/Common/ErrorScreenNotFound.d.ts +1 -1
  25. package/dist/Common/Helper.d.ts +1 -3
  26. package/dist/Common/ImageTags.d.ts +1 -1
  27. package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -1
  28. package/dist/Common/Modals/Modal.d.ts +2 -2
  29. package/dist/Common/Modals/OpaqueModal.d.ts +3 -3
  30. package/dist/Common/Modals/VisibleModal.d.ts +3 -3
  31. package/dist/Common/Modals/VisibleModal2.d.ts +3 -3
  32. package/dist/Common/MultiSelectCustomization.d.ts +1 -1
  33. package/dist/Common/Policy.Types.d.ts +2 -2
  34. package/dist/Common/PopupMenu.d.ts +5 -5
  35. package/dist/Common/Progressing.d.ts +2 -2
  36. package/dist/Common/RadioGroup/RadioGroup.d.ts +1 -1
  37. package/dist/Common/ResizableTextarea.d.ts +1 -1
  38. package/dist/Common/TippyCustomized.d.ts +1 -1
  39. package/dist/Common/ToastBody.d.ts +5 -5
  40. package/dist/Common/Types.d.ts +0 -55
  41. package/dist/index.d.ts +1 -1
  42. package/dist/index.js +391 -2023
  43. package/package.json +19 -4
  44. package/src/Common/AddCDButton/AddCDButton.tsx +1 -2
  45. package/src/Common/Api.ts +21 -26
  46. package/src/Common/AppStatus/AppStatus.tsx +12 -12
  47. package/src/Common/AppStatus/utils.ts +6 -5
  48. package/src/Common/BreadCrumb/BreadCrumb.tsx +32 -28
  49. package/src/Common/BreadCrumb/BreadcrumbStore.tsx +2 -2
  50. package/src/Common/BreadCrumb/Types.ts +11 -12
  51. package/src/Common/Checkbox.tsx +17 -19
  52. package/src/Common/ClipboardButton/ClipboardButton.tsx +1 -1
  53. package/src/Common/ClipboardButton/__tests__/ClipboardButton.test.tsx +0 -1
  54. package/src/Common/Common.service.ts +59 -64
  55. package/src/Common/Constants.ts +10 -10
  56. package/src/Common/CustomInput/CustomInput.tsx +22 -28
  57. package/src/Common/CustomInput/Types.ts +4 -3
  58. package/src/Common/CustomInput/index.ts +1 -1
  59. package/src/Common/CustomTagSelector/PropagateTagInfo.tsx +15 -18
  60. package/src/Common/CustomTagSelector/ResizableTagTextArea.tsx +9 -9
  61. package/src/Common/CustomTagSelector/TagDetails.tsx +9 -3
  62. package/src/Common/CustomTagSelector/TagLabelSelect.tsx +7 -9
  63. package/src/Common/CustomTagSelector/TagLabelValueSelector.tsx +31 -35
  64. package/src/Common/CustomTagSelector/TagSelector.utils.ts +2 -3
  65. package/src/Common/CustomTagSelector/Types.ts +1 -1
  66. package/src/Common/CustomTagSelector/ValidationRules.ts +18 -22
  67. package/src/Common/CustomTagSelector/index.ts +2 -2
  68. package/src/Common/DebouncedSearch/DebouncedSearch.tsx +2 -1
  69. package/src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx +0 -1
  70. package/src/Common/DeleteComponentModal/DeleteComponent.tsx +27 -32
  71. package/src/Common/DeleteComponentModal/types.ts +1 -1
  72. package/src/Common/DevtronProgressing/DevtronProgressing.tsx +5 -8
  73. package/src/Common/Dialogs/ConfirmationDialog.tsx +24 -24
  74. package/src/Common/Dialogs/DeleteDialog.tsx +3 -5
  75. package/src/Common/Dialogs/DialogForm.tsx +31 -35
  76. package/src/Common/Dialogs/ForceDeleteDialog.tsx +13 -7
  77. package/src/Common/Dialogs/Types.ts +12 -12
  78. package/src/Common/Dialogs/index.ts +1 -1
  79. package/src/Common/Drawer/Drawer.tsx +1 -1
  80. package/src/Common/EmptyState/EmptyState.tsx +13 -17
  81. package/src/Common/EmptyState/GenericEmptyState.tsx +25 -15
  82. package/src/Common/Error.tsx +5 -5
  83. package/src/Common/ErrorScreenNotFound.tsx +9 -12
  84. package/src/Common/Grid/Grid.tsx +1 -2
  85. package/src/Common/Helper.tsx +23 -87
  86. package/src/Common/Hooks/UseClickOutside/UseClickOutside.tsx +1 -1
  87. package/src/Common/Hooks/UseSuperAdmin/UseSuperAdmin.tsx +1 -1
  88. package/src/Common/ImageTags.Types.ts +2 -3
  89. package/src/Common/ImageTags.tsx +61 -66
  90. package/src/Common/InfoColorBar/InfoColourbar.tsx +10 -5
  91. package/src/Common/Modals/Modal.tsx +3 -3
  92. package/src/Common/Modals/OpaqueModal.tsx +25 -18
  93. package/src/Common/Modals/VisibleModal.tsx +7 -3
  94. package/src/Common/Modals/VisibleModal2.tsx +20 -15
  95. package/src/Common/MultiSelectCustomization.tsx +9 -13
  96. package/src/Common/Policy.Types.ts +38 -38
  97. package/src/Common/PopupMenu.tsx +10 -9
  98. package/src/Common/Progressing.tsx +15 -18
  99. package/src/Common/RJSF/Form.tsx +0 -1
  100. package/src/Common/RJSF/common/FieldRow.tsx +0 -1
  101. package/src/Common/RJSF/config.ts +0 -1
  102. package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +1 -1
  103. package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +0 -1
  104. package/src/Common/RJSF/templates/BaseInput.tsx +0 -1
  105. package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +0 -1
  106. package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +0 -1
  107. package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +1 -6
  108. package/src/Common/RJSF/templates/Description.tsx +0 -1
  109. package/src/Common/RJSF/templates/Field.tsx +14 -3
  110. package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +6 -9
  111. package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +5 -7
  112. package/src/Common/RJSF/templates/TitleField.tsx +0 -1
  113. package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +0 -1
  114. package/src/Common/RJSF/utils.ts +53 -57
  115. package/src/Common/RJSF/widgets/Checkbox.tsx +2 -2
  116. package/src/Common/RJSF/widgets/Select.tsx +0 -1
  117. package/src/Common/RadioGroup/RadioGroup.tsx +18 -23
  118. package/src/Common/RadioGroup.tsx +24 -23
  119. package/src/Common/Reload.tsx +0 -1
  120. package/src/Common/ResizableTextarea.tsx +18 -17
  121. package/src/Common/Security/ScanVulnerabilitiesTable.tsx +29 -34
  122. package/src/Common/ServerError.ts +5 -1
  123. package/src/Common/TippyCustomized.tsx +41 -38
  124. package/src/Common/ToastBody.tsx +6 -7
  125. package/src/Common/Toggle/Toggle.tsx +3 -3
  126. package/src/Common/Types.ts +12 -70
  127. package/src/custom.d.ts +7 -7
  128. package/src/index.ts +1 -1
@@ -1,18 +1,18 @@
1
- import React from 'react';
2
- export declare class ToastBody extends React.Component<{
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 React.Component<{
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 React.Component<{
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) => React.ReactText;
23
+ export declare const toastAccessDenied: (title?: string, subtitle?: string) => import("react").ReactText;
@@ -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 "./Common";
1
+ export * from './Common';