@devtron-labs/devtron-fe-common-lib 1.1.2 → 1.1.3-beta-2

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 (28) hide show
  1. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  2. package/dist/Common/RJSF/Form.d.ts +1 -1
  3. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +2 -0
  4. package/dist/Shared/Components/DiffViewer/DiffViewer.component.d.ts +41 -0
  5. package/dist/Shared/Components/DiffViewer/constants.d.ts +2 -0
  6. package/dist/Shared/Components/DiffViewer/index.d.ts +1 -0
  7. package/dist/Shared/Components/DiffViewer/types.d.ts +9 -0
  8. package/dist/Shared/Components/index.d.ts +1 -0
  9. package/dist/Shared/types.d.ts +1 -0
  10. package/dist/assets/index.css +1 -1
  11. package/dist/{cssMode-CCpgJmm6.js → cssMode-DJW3flek.js} +1 -1
  12. package/dist/{freemarker2-D_mLuq_o.js → freemarker2-GGhp_Ow6.js} +1 -1
  13. package/dist/{handlebars-BD_HtwVy.js → handlebars-CC5we5Py.js} +1 -1
  14. package/dist/{html-BeeVuZIO.js → html-BEQlWU0c.js} +1 -1
  15. package/dist/{htmlMode-kvzZiaeI.js → htmlMode-DSqwFJlQ.js} +1 -1
  16. package/dist/{index-BvizpREI.js → index-Dv75aix2.js} +34963 -32952
  17. package/dist/index.js +469 -467
  18. package/dist/{javascript-D4XskaU5.js → javascript-CQsddPUF.js} +1 -1
  19. package/dist/{jsonMode-B2_O6NDq.js → jsonMode-CxX9Pi0H.js} +1 -1
  20. package/dist/{liquid-QZD4YWY_.js → liquid-BH21fK8A.js} +1 -1
  21. package/dist/{mdx-HhIdU7FZ.js → mdx-B0hCXTsn.js} +1 -1
  22. package/dist/{python-DKTQetrv.js → python-DwJvS3Na.js} +1 -1
  23. package/dist/{razor-tzGshwh5.js → razor-BPWnHuCI.js} +1 -1
  24. package/dist/{tsMode-BQz40E1q.js → tsMode-CkUMAQO-.js} +1 -1
  25. package/dist/{typescript-bBWDHdq_.js → typescript-CUeihS1u.js} +1 -1
  26. package/dist/{xml-DJANGkSQ.js → xml-D8h09cPJ.js} +1 -1
  27. package/dist/{yaml-7Qu-laLa.js → yaml-CAvlXgny.js} +1 -1
  28. package/package.json +2 -1
@@ -1,6 +1,6 @@
1
1
  import { ShortcutType } from './types';
2
2
  export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
3
- keys: ("Control" | "Alt" | "Escape" | "F" | "E" | "R" | "K" | "Shift" | "Meta")[];
3
+ keys: ("Alt" | "Escape" | "F" | "E" | "R" | "K" | "Control" | "Shift" | "Meta")[];
4
4
  id: string;
5
5
  };
6
6
  export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
@@ -1,3 +1,3 @@
1
1
  import { default as RJSF } from '@rjsf/core';
2
2
  import { FormProps } from './types';
3
- export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "children" | "className" | "id" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "action" | "name" | "disabled" | "target" | "tagName" | "autoComplete" | "noValidate" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "method" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<unknown, import('json-schema').JSONSchema7, import('@rjsf/utils').GenericObjectType>>>;
3
+ export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "name" | "children" | "className" | "disabled" | "id" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "target" | "action" | "tagName" | "autoComplete" | "noValidate" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "method" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<unknown, import('json-schema').JSONSchema7, import('@rjsf/utils').GenericObjectType>>>;
@@ -1,5 +1,6 @@
1
1
  import { DeploymentConfigDiffProps, AppEnvDeploymentConfigListParams } from '..';
2
2
  import { ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, TemplateListDTO } from '../../Services/app.types';
3
+ import { DiffViewerProps } from '../DiffViewer/types';
3
4
  export declare const getDeploymentTemplateData: (data: DeploymentTemplateDTO) => any;
4
5
  /**
5
6
  * Retrieves the draft data from the given configuration data object.
@@ -37,3 +38,4 @@ export declare const getDefaultVersionAndPreviousDeploymentOptions: (data: Templ
37
38
  previousDeployments: TemplateListDTO[];
38
39
  defaultVersions: TemplateListDTO[];
39
40
  };
41
+ export declare const renderDiffViewNoDifferenceState: (lhsValue: string, rhsValue: string) => DiffViewerProps["codeFoldMessageRenderer"];
@@ -0,0 +1,41 @@
1
+ import { DiffViewerProps } from './types';
2
+ /**
3
+ * Component for showing diff between two string or object.
4
+ *
5
+ * Note: Pass down the object as stringified for optimized performance.
6
+ *
7
+ * @example Usage
8
+ *
9
+ * ```tsx
10
+ * <DiffViewer
11
+ * oldValue={oldValue}
12
+ * newValue={newValue}
13
+ * />
14
+ * ```
15
+ *
16
+ * @example With left/right title for lhs/rhs
17
+ *
18
+ * ```tsx
19
+ * <DiffViewer
20
+ * oldValue={oldValue}
21
+ * newValue={newValue}
22
+ * leftTitle="Title for LHS"
23
+ * rightTitle={
24
+ * <span>Title for RHS</span>
25
+ * }
26
+ * />
27
+ * ```
28
+ *
29
+ * @example With custom message for folded code
30
+ * Note: the entire section would be clickable
31
+ *
32
+ * ```tsx
33
+ * <DiffViewer
34
+ * oldValue={oldValue}
35
+ * newValue={newValue}
36
+ * codeFoldMessageRenderer={(totalFoldedLines, leftStartLineNumber, rightStartLineNumber) => <span>Custom text</span>}
37
+ * />
38
+ * ```
39
+ */
40
+ declare const DiffViewer: ({ oldValue, newValue, leftTitle, rightTitle, ...props }: DiffViewerProps) => JSX.Element;
41
+ export default DiffViewer;
@@ -0,0 +1,2 @@
1
+ import { ReactDiffViewerProps } from 'react-diff-viewer-continued';
2
+ export declare const diffViewerStyles: ReactDiffViewerProps['styles'];
@@ -0,0 +1 @@
1
+ export { default as DiffViewer } from './DiffViewer.component';
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ import { ReactDiffViewerProps } from 'react-diff-viewer-continued';
3
+ export interface DiffViewerProps extends Pick<ReactDiffViewerProps, 'oldValue' | 'newValue' | 'codeFoldMessageRenderer'> {
4
+ leftTitle?: ReactDiffViewerProps['leftTitle'] | ReactNode;
5
+ rightTitle?: ReactDiffViewerProps['rightTitle'] | ReactNode;
6
+ }
7
+ export interface DiffViewTitleWrapperProps {
8
+ title: DiffViewerProps['leftTitle'];
9
+ }
@@ -41,3 +41,4 @@ export * from './Collapse';
41
41
  export * from './Security';
42
42
  export * from './Button';
43
43
  export * from './InvalidYAMLTippy';
44
+ export * from './DiffViewer';
@@ -85,6 +85,7 @@ export declare enum Nodes {
85
85
  PodDisruptionBudget = "PodDisruptionBudget",
86
86
  Event = "Event",
87
87
  Namespace = "Namespace",
88
+ Node = "Node",
88
89
  Overview = "Overview",
89
90
  MonitoringDashboard = "MonitoringDashboard",
90
91
  UpgradeCluster = "UpgradeCluster"