@devtron-labs/devtron-fe-common-lib 1.1.1 → 1.1.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/Hooks/UseRegisterShortcut/types.d.ts +1 -0
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/RJSF/Form.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +2 -0
- package/dist/Shared/Components/DiffViewer/DiffViewer.component.d.ts +41 -0
- package/dist/Shared/Components/DiffViewer/constants.d.ts +2 -0
- package/dist/Shared/Components/DiffViewer/index.d.ts +1 -0
- package/dist/Shared/Components/DiffViewer/types.d.ts +9 -0
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-D377I1wG.js → cssMode-JGFJlT_g.js} +1 -1
- package/dist/{freemarker2-CRS-UYqe.js → freemarker2-DRq0aut4.js} +1 -1
- package/dist/{handlebars-NzP2uR49.js → handlebars-DS2_4Aem.js} +1 -1
- package/dist/{html-DB1mVxb-.js → html-DamXjAh7.js} +1 -1
- package/dist/{htmlMode-SNasYE4z.js → htmlMode-Byxmoad0.js} +1 -1
- package/dist/{index-Y72wmNul.js → index-DZHzz-nl.js} +34964 -32952
- package/dist/index.js +469 -467
- package/dist/{javascript-Dwb4sZFi.js → javascript-BIx-BzKy.js} +1 -1
- package/dist/{jsonMode-CCk0-ZN_.js → jsonMode-C3HPfaQe.js} +1 -1
- package/dist/{liquid-9jGwTnWc.js → liquid-jkVE6eWe.js} +1 -1
- package/dist/{mdx-ByXK0Ej3.js → mdx-BM_klJWr.js} +1 -1
- package/dist/{python-CF0zSstS.js → python-CUZoiHWW.js} +1 -1
- package/dist/{razor-kKmZnFzU.js → razor-BeZraAPw.js} +1 -1
- package/dist/{tsMode-CXH7Hlza.js → tsMode-B0bR0Iba.js} +1 -1
- package/dist/{typescript-c57zh6eL.js → typescript-4Jeb15xH.js} +1 -1
- package/dist/{xml-sO0NebH6.js → xml-BI1HeWFu.js} +1 -1
- package/dist/{yaml-Cu-yIVBN.js → yaml-CUcOw1Vc.js} +1 -1
- 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: ("
|
|
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, "
|
|
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 @@
|
|
|
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
|
+
}
|