@devtron-labs/devtron-fe-common-lib 0.2.15 → 0.2.16-beta-1
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/DraggableWrapper/DraggableWrapper.d.ts +1 -1
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +1 -1
- package/dist/Common/MultiSelectCustomization.d.ts +1 -1
- package/dist/Common/PopupMenu.d.ts +1 -1
- package/dist/Common/RJSF/templates/TitleField.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/types.d.ts +1 -0
- package/dist/Shared/validations.d.ts +11 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-44baf7a7.js → cssMode-cdad2cd5.js} +1 -1
- package/dist/{freemarker2-03158c6e.js → freemarker2-f5d9abef.js} +1 -1
- package/dist/{handlebars-20e8484a.js → handlebars-dd4eda6e.js} +1 -1
- package/dist/{html-014fec9b.js → html-4c0d35de.js} +1 -1
- package/dist/{htmlMode-e4acf54f.js → htmlMode-e271fc70.js} +1 -1
- package/dist/{index-be57b07c.js → index-28d885bc.js} +22053 -22519
- package/dist/index.js +223 -221
- package/dist/{javascript-04a4fcc3.js → javascript-da688248.js} +1 -1
- package/dist/{jsonMode-56e311c4.js → jsonMode-bd4477a9.js} +1 -1
- package/dist/{liquid-b5fdd794.js → liquid-7a0899ea.js} +1 -1
- package/dist/{mdx-ff1bb162.js → mdx-2c3c0cc4.js} +1 -1
- package/dist/{python-fa269c57.js → python-0295a23d.js} +1 -1
- package/dist/{razor-ea15ba42.js → razor-dee8d16b.js} +1 -1
- package/dist/{tsMode-36c2cd6f.js → tsMode-42162436.js} +1 -1
- package/dist/{typescript-69322154.js → typescript-84f9df17.js} +1 -1
- package/dist/{xml-4d9dc255.js → xml-373e305f.js} +1 -1
- package/dist/{yaml-0fe39c49.js → yaml-069518a0.js} +1 -1
- package/package.json +1 -1
|
@@ -6,4 +6,4 @@ import { DraggableWrapperProps } from './types';
|
|
|
6
6
|
* 2. dragSelector will be used to identify the grabbable button that will grab the div to drag
|
|
7
7
|
* 3. parentRef is the reference point from which we will derive the base top:0 ,left: 0 position
|
|
8
8
|
*/
|
|
9
|
-
export default function DraggableWrapper({ children, zIndex, positionVariant, dragSelector, parentRef, boundaryGap, childDivProps, layoutFixDelta }: DraggableWrapperProps): JSX.Element;
|
|
9
|
+
export default function DraggableWrapper({ children, zIndex, positionVariant, dragSelector, parentRef, boundaryGap, childDivProps, layoutFixDelta, }: DraggableWrapperProps): JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InfoColourBarType } from '../Types';
|
|
2
2
|
|
|
3
|
-
declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, hideIcon }: InfoColourBarType) => JSX.Element;
|
|
3
|
+
declare const InfoColourBar: ({ message, classname, Icon, iconClass, iconSize, renderActionButton, linkText, redirectLink, linkOnClick, linkClass, internalLink, styles, hideIcon, }: InfoColourBarType) => JSX.Element;
|
|
4
4
|
export default InfoColourBar;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
|
|
2
2
|
|
|
3
3
|
declare const PopupMenu: {
|
|
4
|
-
({ children, onToggleCallback, autoClose, autoPosition, shouldPreventDefault }: PopupMenuType): any;
|
|
4
|
+
({ children, onToggleCallback, autoClose, autoPosition, shouldPreventDefault, }: PopupMenuType): any;
|
|
5
5
|
Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, dataTestId, }: PopupMenuButtonType) => JSX.Element;
|
|
6
6
|
Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable, noBackDrop, }: PopupMenuBodyType) => JSX.Element;
|
|
7
7
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TitleFieldProps } from '@rjsf/utils';
|
|
2
2
|
|
|
3
|
-
export declare const TitleField: ({ id, title, required, description }: TitleFieldProps & Partial<Record<'description', string>>) => JSX.Element;
|
|
3
|
+
export declare const TitleField: ({ id, title, required, description, }: TitleFieldProps & Partial<Record<'description', string>>) => JSX.Element;
|
|
@@ -157,7 +157,7 @@ export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<Selec
|
|
|
157
157
|
isGroupHeadingSelectable: boolean;
|
|
158
158
|
};
|
|
159
159
|
export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight'> {
|
|
160
|
-
appliedFilterOptions:
|
|
160
|
+
appliedFilterOptions: SelectPickerOptionType[];
|
|
161
161
|
handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
|
|
162
162
|
}
|
|
163
163
|
export {};
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -367,6 +367,7 @@ export declare enum ResourceKindType {
|
|
|
367
367
|
cluster = "cluster",
|
|
368
368
|
release = "release",
|
|
369
369
|
releaseTrack = "release-track",
|
|
370
|
+
releaseChannel = "release-channel",
|
|
370
371
|
tenant = "tenant",
|
|
371
372
|
installation = "installation",
|
|
372
373
|
environment = "environment",
|
|
@@ -14,6 +14,7 @@ export declare const MESSAGES: {
|
|
|
14
14
|
VALID_POSITIVE_NUMBER: string;
|
|
15
15
|
VALID_POSITIVE_INTEGER: string;
|
|
16
16
|
MAX_SAFE_INTEGER: string;
|
|
17
|
+
INVALID_SEMANTIC_VERSION: string;
|
|
17
18
|
};
|
|
18
19
|
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
19
20
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
@@ -31,4 +32,14 @@ export declare const validateUniqueKeys: (keys: string[]) => {
|
|
|
31
32
|
isValid: boolean;
|
|
32
33
|
message: string;
|
|
33
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Rules for valid semantic version:
|
|
37
|
+
* 1. version.length < 128 and not empty
|
|
38
|
+
* 2. version should follow semantic versioning regex from https://semver.org/
|
|
39
|
+
*/
|
|
40
|
+
export declare const validateSemanticVersioning: (version: string) => ValidationResponseType;
|
|
41
|
+
/**
|
|
42
|
+
* A valid display name should be between 3 and 50 characters
|
|
43
|
+
*/
|
|
44
|
+
export declare const validateDisplayName: (name: string) => ValidationResponseType;
|
|
34
45
|
export declare const validateJSON: (json: string) => ValidationResponseType;
|