@devtron-labs/devtron-fe-common-lib 1.9.5-beta-1 → 1.9.5-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/{@code-editor-T6Mhnd9I.js → @code-editor-YfUq8lRh.js} +7497 -7474
- package/dist/{@common-rjsf-nN8cdgqv.js → @common-rjsf-uW-aIzbh.js} +2 -2
- package/dist/{@framer-motion-d6Rrf9nF.js → @framer-motion-Cx1gSa6-.js} +1 -1
- package/dist/{@react-dates-ClfZGMIH.js → @react-dates-ukcBEyJ1.js} +243 -243
- package/dist/{@react-select-BvPf5K_D.js → @react-select-Cas7oOFN.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-BGA3IyDu.js → @react-virtualized-sticky-tree-DRihF7_6.js} +1 -1
- package/dist/{@vendor-KiGK4ZkE.js → @vendor-xG1dUtf3.js} +25097 -30904
- package/dist/Common/API/CoreAPI.d.ts +17 -0
- package/dist/Common/API/constants.d.ts +70 -0
- package/dist/Common/API/index.d.ts +3 -0
- package/dist/Common/API/types.d.ts +23 -0
- package/dist/Common/API/utils.d.ts +12 -0
- package/dist/Common/Constants.d.ts +92 -94
- package/dist/Common/Helper.d.ts +1 -0
- package/dist/Common/Tooltip/constants.d.ts +0 -1
- package/dist/Common/Types.d.ts +7 -4
- package/dist/Common/index.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +0 -38
- package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +3 -0
- package/dist/Shared/Components/CountrySelect/index.d.ts +1 -0
- package/dist/Shared/Components/CountrySelect/types.d.ts +7 -0
- package/dist/Shared/Components/CountrySelect/utils.d.ts +4 -0
- package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
- package/dist/Shared/Components/CustomInput/types.d.ts +5 -1
- package/dist/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.d.ts +3 -0
- package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +3 -0
- package/dist/Shared/Components/DevtronLicenseCard/types.d.ts +18 -0
- package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +6 -0
- package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +3 -0
- package/dist/Shared/Components/FlagImage/index.d.ts +1 -0
- package/dist/Shared/Components/FlagImage/types.d.ts +5 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +1 -3
- package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +1 -2
- package/dist/Shared/Components/GitProviderIcon/GitProviderIcon.d.ts +1 -1
- package/dist/Shared/Components/GitProviderIcon/types.d.ts +3 -8
- package/dist/Shared/Components/Header/types.d.ts +0 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +9 -3
- package/dist/Shared/Components/LoginBanner/LoginBanner.d.ts +2 -0
- package/dist/Shared/Components/LoginBanner/constants.d.ts +2 -0
- package/dist/Shared/Components/LoginBanner/index.d.ts +1 -0
- package/dist/Shared/Components/LoginBanner/types.d.ts +7 -0
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
- package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +3 -0
- package/dist/Shared/Components/PhoneInput/index.d.ts +1 -0
- package/dist/Shared/Components/PhoneInput/types.d.ts +11 -0
- package/dist/Shared/Components/ReactSelect/constants.d.ts +15 -7
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +1 -2
- package/dist/Shared/Components/index.d.ts +6 -2
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/Providers/types.d.ts +1 -1
- package/dist/Shared/Services/app.service.d.ts +1 -4
- package/dist/Shared/Services/common.service.d.ts +1 -2
- package/dist/Shared/Services/index.d.ts +0 -1
- package/dist/Shared/constants.d.ts +3 -0
- package/dist/Shared/types.d.ts +33 -0
- package/dist/Shared/validations.d.ts +0 -1
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@vendor.css +1 -1
- package/dist/assets/ic-book-open.e839bbda.svg +3 -0
- package/dist/assets/{ic-copy.416d85f3.svg → ic-caret-left.3df25a7c.svg} +1 -1
- package/dist/assets/ic-chat-circle-dots.b5afd171.svg +3 -0
- package/dist/assets/ic-devtron-header-logo.7dc157aa.svg +4 -0
- package/dist/assets/ic-devtron.aca6cbaa.svg +3 -0
- package/dist/assets/ic-key.56432553.svg +19 -0
- package/dist/assets/ic-quote.68f093fe.svg +3 -0
- package/dist/assets/ic-timer.ae5f10fa.svg +19 -0
- package/dist/index.d.ts +0 -8
- package/dist/index.js +806 -800
- package/package.json +2 -2
- package/dist/Common/Api.d.ts +0 -15
- package/dist/Common/GenericDescription/utils.d.ts +0 -1
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCard.component.d.ts +0 -3
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +0 -2
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +0 -26
- package/dist/Shared/Components/GenericInfoCard/utils.d.ts +0 -2
- package/dist/Shared/Components/GitProviderIcon/utils.d.ts +0 -2
- package/dist/Shared/Components/GraphVisualizer/GraphVisualizer.d.ts +0 -2
- package/dist/Shared/Components/GraphVisualizer/components/BaseNode.d.ts +0 -2
- package/dist/Shared/Components/GraphVisualizer/components/DropdownNode.d.ts +0 -3
- package/dist/Shared/Components/GraphVisualizer/components/IconNode.d.ts +0 -3
- package/dist/Shared/Components/GraphVisualizer/components/TextNode.d.ts +0 -3
- package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +0 -4
- package/dist/Shared/Components/GraphVisualizer/components/types.d.ts +0 -19
- package/dist/Shared/Components/GraphVisualizer/constants.d.ts +0 -15
- package/dist/Shared/Components/GraphVisualizer/index.d.ts +0 -2
- package/dist/Shared/Components/GraphVisualizer/types.d.ts +0 -12
- package/dist/Shared/Components/GraphVisualizer/utils.d.ts +0 -17
- package/dist/Shared/Services/template.service.d.ts +0 -2
- package/dist/assets/ic-card-stack.efd37c91.svg +0 -3
- package/dist/assets/ic-new.2c179139.svg +0 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@devtron-labs/devtron-fe-common-lib",
|
3
|
-
"version": "1.9.5-beta-
|
3
|
+
"version": "1.9.5-beta-2",
|
4
4
|
"description": "Supporting common component library",
|
5
5
|
"type": "module",
|
6
6
|
"main": "dist/index.js",
|
@@ -108,7 +108,6 @@
|
|
108
108
|
"@replit/codemirror-indentation-markers": "6.5.3",
|
109
109
|
"@replit/codemirror-vscode-keymap": "6.0.2",
|
110
110
|
"@types/react-dates": "^21.8.6",
|
111
|
-
"@xyflow/react": "12.4.2",
|
112
111
|
"@uiw/codemirror-extensions-hyper-link": "4.23.10",
|
113
112
|
"@uiw/codemirror-theme-github": "4.23.7",
|
114
113
|
"@uiw/react-codemirror": "4.23.7",
|
@@ -124,6 +123,7 @@
|
|
124
123
|
"react-dates": "^21.8.0",
|
125
124
|
"react-diff-viewer-continued": "^3.4.0",
|
126
125
|
"react-draggable": "^4.4.5",
|
126
|
+
"react-international-phone": "^4.5.0",
|
127
127
|
"react-monaco-editor": "^0.54.0",
|
128
128
|
"react-virtualized-sticky-tree": "^3.0.0-beta18",
|
129
129
|
"sass": "^1.69.7",
|
package/dist/Common/Api.d.ts
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
import { MutableRefObject } from 'react';
|
2
|
-
import { ResponseType, APIOptions } from './Types';
|
3
|
-
export declare const post: <T = any, K = object>(url: string, data: K, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType<T>>;
|
4
|
-
export declare const put: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
|
5
|
-
export declare const patch: <T = any, K = object>(url: string, data: K, options?: APIOptions) => Promise<ResponseType<T>>;
|
6
|
-
export declare const get: <T = any>(url: string, options?: APIOptions) => Promise<ResponseType<T>>;
|
7
|
-
export declare const trash: <T = any, K = object>(url: string, data?: K, options?: APIOptions) => Promise<ResponseType<T>>;
|
8
|
-
/**
|
9
|
-
* Aborts the previous request before triggering next request
|
10
|
-
*/
|
11
|
-
export declare const abortPreviousRequests: <T>(callback: () => Promise<T>, abortControllerRef: MutableRefObject<AbortController>) => Promise<T>;
|
12
|
-
/**
|
13
|
-
* Returns true if the error is due to a aborted request
|
14
|
-
*/
|
15
|
-
export declare const getIsRequestAborted: (error: any) => boolean;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const getParsedUpdatedOnDate: (updatedOn: string) => string;
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import { MouseEventHandler, ReactElement } from 'react';
|
2
|
-
import { LinkProps } from 'react-router-dom';
|
3
|
-
type BaseGenericInfoCardProps = {
|
4
|
-
title: string;
|
5
|
-
description: string;
|
6
|
-
author: string;
|
7
|
-
Icon: ReactElement;
|
8
|
-
} & ({
|
9
|
-
onClick?: never;
|
10
|
-
linkProps?: Pick<LinkProps, 'to' | 'target' | 'rel'>;
|
11
|
-
} | {
|
12
|
-
onClick?: MouseEventHandler<HTMLDivElement>;
|
13
|
-
linkProps?: never;
|
14
|
-
});
|
15
|
-
export declare enum GenericInfoCardBorderVariant {
|
16
|
-
ROUNDED = "rounded",
|
17
|
-
NONE = "none"
|
18
|
-
}
|
19
|
-
export type GenericInfoCardProps = {
|
20
|
-
borderVariant: GenericInfoCardBorderVariant;
|
21
|
-
} & (({
|
22
|
-
isLoading: true;
|
23
|
-
} & Partial<Record<keyof BaseGenericInfoCardProps, never>>) | ({
|
24
|
-
isLoading?: boolean;
|
25
|
-
} & BaseGenericInfoCardProps));
|
26
|
-
export {};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { ReactElement, ReactNode } from 'react';
|
2
|
-
import { Node } from '@xyflow/react';
|
3
|
-
import { SelectPickerProps } from '../../SelectPicker';
|
4
|
-
export interface BaseNodeProps {
|
5
|
-
id: string;
|
6
|
-
className?: string;
|
7
|
-
isConnectable: boolean;
|
8
|
-
children: ReactNode;
|
9
|
-
}
|
10
|
-
export type IconNodeProps = Node<{
|
11
|
-
icon: ReactElement;
|
12
|
-
}, 'iconNode'>;
|
13
|
-
export type TextNodeProps = Node<{
|
14
|
-
icon?: ReactElement;
|
15
|
-
text: string;
|
16
|
-
}, 'textNode'>;
|
17
|
-
export type DropdownNodeProps = Node<Omit<SelectPickerProps<string | number, false>, 'variant' | 'fullWidth' | 'classNamePrefix' | 'menuPosition' | 'menuSize' | 'menuPortalTarget' | 'error'> & {
|
18
|
-
isError?: boolean;
|
19
|
-
}, 'dropdownNode'>;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { NodeTypes, Viewport } from '@xyflow/react';
|
2
|
-
declare const nodeTypes: {
|
3
|
-
iconNode: ({ data, id, isConnectable }: import('@xyflow/react').NodeProps<import('./components').IconNodeProps>) => JSX.Element;
|
4
|
-
textNode: ({ id, data, isConnectable }: import('@xyflow/react').NodeProps<import('./components').TextNodeProps>) => JSX.Element;
|
5
|
-
dropdownNode: ({ id, data, isConnectable }: import('@xyflow/react').NodeProps<import('./components').DropdownNodeProps>) => JSX.Element;
|
6
|
-
};
|
7
|
-
export declare const NODE_TYPES: NodeTypes;
|
8
|
-
export declare const NODE_WIDTH_MAP: Record<keyof typeof nodeTypes, number>;
|
9
|
-
export declare const NODE_HEIGHT_MAP: Record<keyof typeof nodeTypes, number>;
|
10
|
-
export declare const PADDING_X = 16;
|
11
|
-
export declare const PADDING_Y = 20;
|
12
|
-
export declare const NODE_GAP_X = 50;
|
13
|
-
export declare const NODE_GAP_Y = 12;
|
14
|
-
export declare const DEFAULT_VIEWPORT: Viewport;
|
15
|
-
export {};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
2
|
-
import { Edge } from '@xyflow/react';
|
3
|
-
import { DropdownNodeProps, IconNodeProps, TextNodeProps } from './components';
|
4
|
-
export type GraphVisualizerExtendedNode = IconNodeProps | TextNodeProps | DropdownNodeProps;
|
5
|
-
export type GraphVisualizerNode = Omit<IconNodeProps, 'position'> | Omit<TextNodeProps, 'position'> | Omit<DropdownNodeProps, 'position'>;
|
6
|
-
export type GraphVisualizerEdge = Omit<Edge, 'type'>;
|
7
|
-
export interface GraphVisualizerProps {
|
8
|
-
nodes: GraphVisualizerNode[];
|
9
|
-
setNodes: Dispatch<SetStateAction<GraphVisualizerNode[]>>;
|
10
|
-
edges: GraphVisualizerEdge[];
|
11
|
-
setEdges: Dispatch<SetStateAction<GraphVisualizerEdge[]>>;
|
12
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { Edge } from '@xyflow/react';
|
2
|
-
import { GraphVisualizerExtendedNode, GraphVisualizerProps } from './types';
|
3
|
-
/**
|
4
|
-
* Processes edges by assigning a default type and customizing the marker (arrow style).
|
5
|
-
*
|
6
|
-
* @param edges - List of all edges representing connections between nodes.
|
7
|
-
* @returns A new array of edges with updated properties.
|
8
|
-
*/
|
9
|
-
export declare const processEdges: (edges: GraphVisualizerProps["edges"]) => Edge[];
|
10
|
-
/**
|
11
|
-
* Processes nodes by calculating their positions based on parent-child relationships.
|
12
|
-
*
|
13
|
-
* @param nodes - List of all nodes in the graph.
|
14
|
-
* @param edges - List of all edges representing parent-child relationships.
|
15
|
-
* @returns A new array of nodes with computed positions.
|
16
|
-
*/
|
17
|
-
export declare const processNodes: (nodes: GraphVisualizerProps["nodes"], edges: GraphVisualizerProps["edges"]) => GraphVisualizerExtendedNode[];
|
@@ -1,3 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
2
|
-
<path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19 9H5m14 0a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2m14 0V7a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v2m12-3V4a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v2" vector-effect="non-scaling-stroke"/>
|
3
|
-
</svg>
|
@@ -1,3 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
2
|
-
<path stroke="#3B444C" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 5H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4m-5.765-7.662 1.639.603a2 2 0 0 1 1.185 1.186l.603 1.638a.36.36 0 0 0 .676 0l.603-1.639a2 2 0 0 1 1.186-1.185l1.638-.603a.36.36 0 0 0 0-.676l-1.639-.603a2 2 0 0 1-1.185-1.186l-.603-1.638a.36.36 0 0 0-.676 0l-.603 1.639a2 2 0 0 1-1.186 1.185l-1.638.603a.36.36 0 0 0 0 .676Z" vector-effect="non-scaling-stroke"/>
|
3
|
-
</svg>
|