@devtron-labs/devtron-fe-common-lib 0.1.8-beta-22 → 0.1.8-beta-23
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/Constants.d.ts +0 -1
- package/dist/Common/Helper.d.ts +4 -0
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +1 -1
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +2 -1
- package/dist/Common/RJSF/types.d.ts +12 -0
- package/dist/Common/RJSF/utils.d.ts +2 -2
- package/dist/Common/Tippy.d.ts +4 -0
- package/dist/Common/Types.d.ts +1 -1
- package/dist/Common/index.d.ts +1 -0
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +2 -7
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-69cf97fe.js → cssMode-0bfc5495.js} +1 -1
- package/dist/{freemarker2-73770e2b.js → freemarker2-12035618.js} +1 -1
- package/dist/{handlebars-4270c7c8.js → handlebars-266ba08f.js} +1 -1
- package/dist/{html-11e96d93.js → html-0859da9e.js} +1 -1
- package/dist/{htmlMode-65e4e6c1.js → htmlMode-3f7ec258.js} +1 -1
- package/dist/{index-e6fae9eb.js → index-74fa0b50.js} +30065 -28008
- package/dist/index.js +245 -241
- package/dist/{javascript-5a62efaa.js → javascript-84d2cf21.js} +1 -1
- package/dist/{jsonMode-ef47f893.js → jsonMode-b893d2f2.js} +1 -1
- package/dist/{liquid-877ad3b7.js → liquid-1528e453.js} +1 -1
- package/dist/{mdx-a60dd3cc.js → mdx-0642a2d8.js} +1 -1
- package/dist/{python-1901ed13.js → python-05bfa611.js} +1 -1
- package/dist/{razor-90bd3d12.js → razor-13ef3b5c.js} +1 -1
- package/dist/{tsMode-90310f7d.js → tsMode-9ee0a84f.js} +1 -1
- package/dist/{typescript-2e492b77.js → typescript-3d63f110.js} +1 -1
- package/dist/{xml-79b63aae.js → xml-dce7911d.js} +1 -1
- package/dist/{yaml-e2235491.js → yaml-5c2d46bf.js} +1 -1
- package/package.json +3 -2
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React, SyntheticEvent } from 'react';
|
|
2
|
+
import { JSONPathOptions } from 'jsonpath-plus';
|
|
2
3
|
import { AsyncOptions, UseSearchString } from './Types';
|
|
3
4
|
import { scrollableInterface } from '../Shared';
|
|
4
5
|
|
|
@@ -94,6 +95,9 @@ export declare const getRegexMatchPositions: (string: string, regex: RegExp) =>
|
|
|
94
95
|
* @returns set of substrings
|
|
95
96
|
*/
|
|
96
97
|
export declare const powerSetOfSubstringsFromStart: (strings: string[], regex: RegExp) => string[];
|
|
98
|
+
export declare const convertJSONPointerToJSONPath: (pointer: string) => string;
|
|
99
|
+
export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultType?: JSONPathOptions['resultType']) => string[];
|
|
100
|
+
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => object;
|
|
97
101
|
/**
|
|
98
102
|
* Returns a debounced variant of the function
|
|
99
103
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ArrayFieldTemplateItemType } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
export declare const ArrayFieldItemTemplate: ({ children,
|
|
3
|
+
export declare const ArrayFieldItemTemplate: ({ children, disabled, hasToolbar, hasRemove, index, onDropIndexClick, readonly, registry, uiSchema, }: ArrayFieldTemplateItemType) => JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { ObjectFieldTemplateProps } from '@rjsf/utils';
|
|
2
|
+
import { RJSFFormSchema } from '../types';
|
|
2
3
|
|
|
3
|
-
export declare const ObjectFieldTemplate: (props: ObjectFieldTemplateProps) => JSX.Element;
|
|
4
|
+
export declare const ObjectFieldTemplate: (props: ObjectFieldTemplateProps<any, RJSFFormSchema, any>) => JSX.Element;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
import { default as RJSFForm } from '@rjsf/core';
|
|
3
|
+
import { StrictRJSFSchema } from '@rjsf/utils';
|
|
3
4
|
|
|
4
5
|
export type FormProps = Omit<ComponentProps<typeof RJSFForm>, 'validator'>;
|
|
6
|
+
interface Hidden {
|
|
7
|
+
condition: boolean;
|
|
8
|
+
match: string;
|
|
9
|
+
}
|
|
10
|
+
export interface RJSFFormSchema extends StrictRJSFSchema {
|
|
11
|
+
properties: {
|
|
12
|
+
[key: string]: RJSFFormSchema;
|
|
13
|
+
};
|
|
14
|
+
hidden: Hidden;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TranslatableString } from '@rjsf/utils';
|
|
2
|
-
import { default as Tippy } from '
|
|
2
|
+
import { default as Tippy } from '../Tippy';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Override for the TranslatableString from RJSF
|
|
@@ -25,4 +25,4 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
|
|
|
25
25
|
* Infers the type for json schema from value type
|
|
26
26
|
*/
|
|
27
27
|
export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
28
|
-
export declare const getTippyWrapperWithContent: (content: any, placement?: React.ComponentProps<typeof Tippy>['placement']) => (children: any) => JSX.Element;
|
|
28
|
+
export declare const getTippyWrapperWithContent: (content: any, placement?: React.ComponentProps<typeof Tippy>['placement'], truncateWidth?: number) => (children: any) => JSX.Element;
|
package/dist/Common/Types.d.ts
CHANGED
package/dist/Common/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DescriptorProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage,
|
|
3
|
+
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, }: DescriptorProps) => JSX.Element;
|
|
4
4
|
export default FeatureTitleWithInfo;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
2
1
|
import { ImageType } from '../../../Common';
|
|
3
2
|
import { Breadcrumb } from '../../../Common/BreadCrumb/Types';
|
|
4
3
|
|
|
5
4
|
export interface FeatureDescriptionModalProps {
|
|
6
5
|
title: string;
|
|
7
|
-
renderDescriptionContent?: () =>
|
|
6
|
+
renderDescriptionContent?: () => JSX.Element;
|
|
8
7
|
closeModalText?: string;
|
|
9
8
|
docLink?: string;
|
|
10
9
|
closeModal?: () => void;
|
|
@@ -13,12 +12,8 @@ export interface FeatureDescriptionModalProps {
|
|
|
13
12
|
imageStyles?: React.CSSProperties;
|
|
14
13
|
}
|
|
15
14
|
export interface DescriptorProps extends FeatureDescriptionModalProps {
|
|
16
|
-
breadCrumbs
|
|
15
|
+
breadCrumbs: Breadcrumb[];
|
|
17
16
|
additionalContainerClasses?: string;
|
|
18
17
|
iconClassName?: string;
|
|
19
18
|
children?: React.ReactNode;
|
|
20
|
-
showInfoIconTippy?: boolean;
|
|
21
|
-
docLinkText?: string;
|
|
22
|
-
dataTestId?: string;
|
|
23
|
-
additionalContent?: ReactNode;
|
|
24
19
|
}
|