@devtron-labs/devtron-fe-common-lib 0.3.5-beta-2 → 0.3.5-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.
Files changed (29) hide show
  1. package/dist/Common/CustomInput/CustomInput.d.ts +1 -1
  2. package/dist/Common/CustomInput/Types.d.ts +1 -1
  3. package/dist/Common/DeleteComponentModal/types.d.ts +1 -4
  4. package/dist/Common/Helper.d.ts +6 -0
  5. package/dist/Shared/Components/CICDHistory/History.components.d.ts +1 -1
  6. package/dist/Shared/Components/CICDHistory/types.d.ts +2 -0
  7. package/dist/Shared/Hooks/index.d.ts +0 -1
  8. package/dist/{cssMode-uwn3xArb.js → cssMode-DBP9WI7Z.js} +1 -1
  9. package/dist/{freemarker2-CaMhuqPe.js → freemarker2-BVuQcjYq.js} +1 -1
  10. package/dist/{handlebars-CTnClFcN.js → handlebars-CnmVtbxe.js} +1 -1
  11. package/dist/{html-dSNw58aO.js → html-C1tzOrj8.js} +1 -1
  12. package/dist/{htmlMode-YCmi4Oec.js → htmlMode-B-5D3DnQ.js} +1 -1
  13. package/dist/{index-CQ_tnSZb.js → index-eOY7n2f3.js} +17493 -17592
  14. package/dist/index.js +1 -1
  15. package/dist/{javascript-BOjyNMQb.js → javascript-peWjmg28.js} +1 -1
  16. package/dist/{jsonMode-Wch8DjET.js → jsonMode-6iMQV3Oq.js} +1 -1
  17. package/dist/{liquid-yOyHP9Wm.js → liquid-1EZZ6Izk.js} +1 -1
  18. package/dist/{mdx-CkdjZgHK.js → mdx-DCQNMqpR.js} +1 -1
  19. package/dist/{python-CuKcH7j4.js → python-7A7A_og3.js} +1 -1
  20. package/dist/{razor-CMkeVh_3.js → razor-DtFPu_ke.js} +1 -1
  21. package/dist/{tsMode-C6w4n8l9.js → tsMode-BwVC3y8U.js} +1 -1
  22. package/dist/{typescript-isK37BH_.js → typescript-BGkZ4wY3.js} +1 -1
  23. package/dist/{xml-BlWNjX_p.js → xml-BEXgtGeh.js} +1 -1
  24. package/dist/{yaml-BFN6QLOY.js → yaml-DKY6ZD5e.js} +1 -1
  25. package/package.json +1 -1
  26. package/dist/Shared/Hooks/useForm/index.d.ts +0 -2
  27. package/dist/Shared/Hooks/useForm/useForm.d.ts +0 -71
  28. package/dist/Shared/Hooks/useForm/useForm.types.d.ts +0 -69
  29. package/dist/Shared/Hooks/useForm/useForm.utils.d.ts +0 -10
@@ -1,2 +1,2 @@
1
1
  import { CustomInputProps } from './Types';
2
- export declare const CustomInput: ({ name, value, error, onChange, onFocus, label, type, disabled, labelClassName, placeholder, tabIndex, dataTestid, isRequiredField, autoFocus, rootClassName, autoComplete, helperText, onBlur, readOnly, noTrim, onKeyPress, defaultValue, onKeyDown, required, additionalErrorInfo, inputWrapClassName, inputProps, }: CustomInputProps) => JSX.Element;
2
+ export declare const CustomInput: ({ name, value, error, onChange, onFocus, label, type, disabled, labelClassName, placeholder, tabIndex, dataTestid, isRequiredField, autoFocus, rootClassName, autoComplete, helperText, handleOnBlur, readOnly, noTrim, onKeyPress, defaultValue, onKeyDown, required, additionalErrorInfo, inputWrapClassName, inputProps, }: CustomInputProps) => JSX.Element;
@@ -17,7 +17,7 @@ export interface CustomInputProps {
17
17
  rootClassName?: string;
18
18
  error?: string[] | string;
19
19
  helperText?: ReactNode;
20
- onBlur?: (e: any) => void;
20
+ handleOnBlur?: (e: any) => void;
21
21
  readOnly?: boolean;
22
22
  noTrim?: boolean;
23
23
  onKeyPress?: (e: any) => void;
@@ -1,8 +1,5 @@
1
1
  export interface DeleteComponentProps {
2
- /**
3
- * @deprecated - Delete component internally handles loading for the `Delete Button`.
4
- */
5
- setDeleting?: (boolean: any) => void;
2
+ setDeleting: (boolean: any) => void;
6
3
  toggleConfirmation: any;
7
4
  deleteComponent: (any: any) => Promise<any>;
8
5
  title: string;
@@ -22,6 +22,12 @@ export declare const refresh: () => void;
22
22
  export declare const reportIssue: () => void;
23
23
  export declare function useEffectAfterMount(cb: any, dependencies: any): void;
24
24
  export declare function getCookie(sKey: any): string;
25
+ export declare function useForm(stateSchema: any, validationSchema: {}, callback: any): {
26
+ state: any;
27
+ disable: boolean;
28
+ handleOnChange: (event: any) => void;
29
+ handleOnSubmit: (event: any) => void;
30
+ };
25
31
  export declare function handleUTCTime(ts: string, isRelativeTime?: boolean): string;
26
32
  export declare function useSearchString(): UseSearchString;
27
33
  export declare const closeOnEscKeyPressed: (e: any, actionClose: () => void) => void;
@@ -1,4 +1,4 @@
1
1
  import { GitChangesType, LogResizeButtonType, ScrollerType } from './types';
2
- export declare const LogResizeButton: ({ fullScreenView, setFullScreenView }: LogResizeButtonType) => JSX.Element;
2
+ export declare const LogResizeButton: ({ onlyOnLogs, disableKeybindings, fullScreenView, setFullScreenView, }: LogResizeButtonType) => JSX.Element;
3
3
  export declare const Scroller: ({ scrollToTop, scrollToBottom, style }: ScrollerType) => JSX.Element;
4
4
  export declare const GitChanges: ({ gitTriggers, ciMaterials, artifact, userApprovalMetadata, triggeredByEmail, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, appliedFiltersTimestamp, promotionApprovalMetadata, selectedEnvironmentName, renderCIListHeader, }: GitChangesType) => JSX.Element;
@@ -14,6 +14,8 @@ export declare enum FetchIdDataStatus {
14
14
  SUSPEND = "SUSPEND"
15
15
  }
16
16
  export interface LogResizeButtonType {
17
+ onlyOnLogs?: boolean;
18
+ disableKeybindings?: boolean;
17
19
  fullScreenView: boolean;
18
20
  setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
19
21
  }
@@ -1,4 +1,3 @@
1
1
  export * from './UsePrompt';
2
2
  export * from './useGetResourceKindsOptions';
3
3
  export * from './UseDownload';
4
- export * from './useForm';
@@ -1,7 +1,7 @@
1
1
  var Fe = Object.defineProperty;
2
2
  var Le = (e, n, i) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => Le(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as je } from "./index-CQ_tnSZb.js";
4
+ import { m as je } from "./index-eOY7n2f3.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as f } from "./index-CQ_tnSZb.js";
1
+ import { m as f } from "./index-eOY7n2f3.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as l } from "./index-CQ_tnSZb.js";
1
+ import { m as l } from "./index-eOY7n2f3.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,4 +1,4 @@
1
- import { m as s } from "./index-CQ_tnSZb.js";
1
+ import { m as s } from "./index-eOY7n2f3.js";
2
2
  /*!-----------------------------------------------------------------------------
3
3
  * Copyright (c) Microsoft Corporation. All rights reserved.
4
4
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
@@ -1,7 +1,7 @@
1
1
  var Be = Object.defineProperty;
2
2
  var $e = (e, n, i) => n in e ? Be(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => $e(e, typeof n != "symbol" ? n + "" : n, i);
4
- import { m as qe } from "./index-CQ_tnSZb.js";
4
+ import { m as qe } from "./index-eOY7n2f3.js";
5
5
  /*!-----------------------------------------------------------------------------
6
6
  * Copyright (c) Microsoft Corporation. All rights reserved.
7
7
  * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)