@devtron-labs/devtron-fe-common-lib 0.3.6-beta-1 → 0.3.6-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.
- package/dist/Common/Drawer/Drawer.d.ts +1 -1
- package/dist/Common/RJSF/types.d.ts +8 -5
- package/dist/Common/RJSF/utils.d.ts +2 -0
- package/dist/Common/Tooltip/constants.d.ts +3 -0
- package/dist/Common/Tooltip/index.d.ts +1 -0
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +5 -24
- package/dist/Shared/Components/TabGroup/TabGroup.utils.d.ts +0 -1
- package/dist/Shared/Helpers.d.ts +2 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-DyAvOBkY.js → cssMode-Bo83jZie.js} +1 -1
- package/dist/{freemarker2-tPNqkUTQ.js → freemarker2-B6-R9S2y.js} +1 -1
- package/dist/{handlebars-C1mESqod.js → handlebars-Bvf7NllX.js} +1 -1
- package/dist/{html-Cv3tbe3V.js → html-B0debMBR.js} +1 -1
- package/dist/{htmlMode-D9FROfxJ.js → htmlMode-CC3nzNvi.js} +1 -1
- package/dist/{index-6HckNOg7.js → index-KgUU9rLM.js} +18687 -18669
- package/dist/index.js +264 -262
- package/dist/{javascript-D-S0ZH6k.js → javascript-BLmLN-T9.js} +1 -1
- package/dist/{jsonMode-BCOgENbK.js → jsonMode-sLoWUfho.js} +1 -1
- package/dist/{liquid-BHU4NPDq.js → liquid-Dt5XTcHR.js} +1 -1
- package/dist/{mdx-CgZj4bIA.js → mdx-B4wlS-oM.js} +1 -1
- package/dist/{python-Dtb925za.js → python-Bedr2nyu.js} +1 -1
- package/dist/{razor-Bx48A-N3.js → razor-BMit4z_i.js} +1 -1
- package/dist/{tsMode-nB_hYIwB.js → tsMode-Dfo7c9f4.js} +1 -1
- package/dist/{typescript-Cr3j4nqE.js → typescript-bwW1THll.js} +1 -1
- package/dist/{xml-D0QNf3dP.js → xml-Cg2BPpeb.js} +1 -1
- package/dist/{yaml-9jPH8omw.js → yaml-CaGfGjJ5.js} +1 -1
- package/package.json +1 -1
|
@@ -10,5 +10,5 @@ interface drawerInterface {
|
|
|
10
10
|
parentClassName?: string;
|
|
11
11
|
onEscape?: (e?: any) => void;
|
|
12
12
|
}
|
|
13
|
-
export declare const Drawer: ({ children, position, height, width, minWidth, maxWidth, parentClassName, onEscape,
|
|
13
|
+
export declare const Drawer: ({ children, position, height, width, minWidth, maxWidth, parentClassName, onEscape, }: drawerInterface) => JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -2,14 +2,17 @@ import { ComponentProps } from 'react';
|
|
|
2
2
|
import { default as RJSFForm } from '@rjsf/core';
|
|
3
3
|
import { StrictRJSFSchema } from '@rjsf/utils';
|
|
4
4
|
export type FormProps = Omit<ComponentProps<typeof RJSFForm>, 'validator'>;
|
|
5
|
-
interface
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export interface MetaHiddenType {
|
|
6
|
+
value: any;
|
|
7
|
+
path: string;
|
|
8
8
|
}
|
|
9
|
+
export type HiddenType = MetaHiddenType | {
|
|
10
|
+
condition: any;
|
|
11
|
+
value: string;
|
|
12
|
+
} | string;
|
|
9
13
|
export interface RJSFFormSchema extends StrictRJSFSchema {
|
|
10
14
|
properties: {
|
|
11
15
|
[key: string]: RJSFFormSchema;
|
|
12
16
|
};
|
|
13
|
-
hidden:
|
|
17
|
+
hidden: HiddenType;
|
|
14
18
|
}
|
|
15
|
-
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TranslatableString } from '@rjsf/utils';
|
|
2
|
+
import { HiddenType, MetaHiddenType } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* Override for the TranslatableString from RJSF
|
|
4
5
|
*/
|
|
@@ -23,3 +24,4 @@ export declare const getRedirectionProps: (url: string) => React.AnchorHTMLAttri
|
|
|
23
24
|
* Infers the type for json schema from value type
|
|
24
25
|
*/
|
|
25
26
|
export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
27
|
+
export declare const parseSchemaHiddenType: (hiddenSchema: HiddenType) => MetaHiddenType;
|
|
@@ -4,7 +4,7 @@ import { DataAttributes } from '../../types';
|
|
|
4
4
|
type TabComponentProps<TabTypeProps> = TabTypeProps & DataAttributes;
|
|
5
5
|
type ConditionalTabType = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Type of the tab, either `button`, `link` or `navLink`.
|
|
8
8
|
*/
|
|
9
9
|
tabType: 'button';
|
|
10
10
|
/**
|
|
@@ -17,7 +17,7 @@ type ConditionalTabType = {
|
|
|
17
17
|
active?: boolean;
|
|
18
18
|
} | {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Type of the tab, either `button`, `link` or `navLink`.
|
|
21
21
|
*/
|
|
22
22
|
tabType: 'navLink';
|
|
23
23
|
/**
|
|
@@ -27,10 +27,10 @@ type ConditionalTabType = {
|
|
|
27
27
|
/**
|
|
28
28
|
* Active state is determined by matching the URL.
|
|
29
29
|
*/
|
|
30
|
-
active?:
|
|
30
|
+
active?: false;
|
|
31
31
|
} | {
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Type of the tab, either `button`, `link` or `navLink`.
|
|
34
34
|
*/
|
|
35
35
|
tabType: 'link';
|
|
36
36
|
/**
|
|
@@ -41,20 +41,6 @@ type ConditionalTabType = {
|
|
|
41
41
|
* Indicates if the tab is currently active.
|
|
42
42
|
*/
|
|
43
43
|
active?: boolean;
|
|
44
|
-
} | {
|
|
45
|
-
/**
|
|
46
|
-
* Type of the tab, either `button`, `link`, `navLink` or `block`.
|
|
47
|
-
* @note When `tabType` is set to `block`, the tab becomes non-interactive. It won't be active and will not have hover states.
|
|
48
|
-
*/
|
|
49
|
-
tabType: 'block';
|
|
50
|
-
/**
|
|
51
|
-
* Props passed to div component.
|
|
52
|
-
*/
|
|
53
|
-
props?: TabComponentProps<Omit<React.ComponentProps<'div'>, 'className' | 'style'>>;
|
|
54
|
-
/**
|
|
55
|
-
* Indicates if the tab is currently active.
|
|
56
|
-
*/
|
|
57
|
-
active?: never | false;
|
|
58
44
|
};
|
|
59
45
|
export type TabProps = {
|
|
60
46
|
/**
|
|
@@ -65,11 +51,6 @@ export type TabProps = {
|
|
|
65
51
|
* Text label for the tab.
|
|
66
52
|
*/
|
|
67
53
|
label: string;
|
|
68
|
-
/**
|
|
69
|
-
* Description for the tab.
|
|
70
|
-
* @note - If passed as a `string[]`, it will be rendered with a bullet in-between strings.
|
|
71
|
-
*/
|
|
72
|
-
description?: string | string[];
|
|
73
54
|
/**
|
|
74
55
|
* Icon component to be displayed in the tab.
|
|
75
56
|
* This should be a functional component that renders an SVG.
|
|
@@ -111,7 +92,7 @@ export interface TabGroupProps {
|
|
|
111
92
|
* Size of the tabs.
|
|
112
93
|
* @default ComponentSizeType.large
|
|
113
94
|
*/
|
|
114
|
-
size?: ComponentSizeType.large | ComponentSizeType.medium
|
|
95
|
+
size?: ComponentSizeType.large | ComponentSizeType.medium;
|
|
115
96
|
/**
|
|
116
97
|
* Optional component to be rendered on the right side of the tab list.
|
|
117
98
|
*/
|
|
@@ -5,4 +5,3 @@ export declare const getClassNameBySizeMap: ({ hideTopPadding, alignActiveBorder
|
|
|
5
5
|
badgeClassName: string;
|
|
6
6
|
}>;
|
|
7
7
|
export declare const getIconColorClassMap: ({ active }: Pick<TabProps, "active">) => Record<TabProps["iconType"], string>;
|
|
8
|
-
export declare const tabGroupClassMap: Record<TabGroupProps['size'], string>;
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare const getIsMaterialInfoAvailable: (materialInfo: MaterialInfo[])
|
|
|
24
24
|
export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTriggers;
|
|
25
25
|
export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrder?: SortingOrder, isCaseSensitive?: boolean) => number;
|
|
26
26
|
export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrder?: SortingOrder) => number;
|
|
27
|
-
export declare function versionComparatorBySortOrder(a:
|
|
27
|
+
export declare function versionComparatorBySortOrder(a: string, b: string, orderBy?: SortingOrder): number;
|
|
28
28
|
export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
|
|
29
29
|
export declare const yamlComparatorBySortOrder: (a: Pair, b: Pair, sortOrder?: SortingOrder) => number;
|
|
30
30
|
export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
|
|
@@ -49,4 +49,5 @@ export declare const getIsManualApprovalSpecific: (userApprovalConfig?: Pick<Use
|
|
|
49
49
|
* @param url - url to be opened in new tab
|
|
50
50
|
*/
|
|
51
51
|
export declare const getHandleOpenURL: (url: string) => () => void;
|
|
52
|
+
export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
52
53
|
export {};
|