@devtron-labs/devtron-fe-common-lib 1.9.1-beta-4 → 1.9.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.
Files changed (59) hide show
  1. package/dist/{@code-editor-BcdvXLUs.js → @code-editor-Vc2RufTo.js} +7202 -7584
  2. package/dist/{@common-rjsf-Dtdmx6jk.js → @common-rjsf-Ds6mom5d.js} +2 -2
  3. package/dist/{@framer-motion-B1qa0yMz.js → @framer-motion-FKAND_5t.js} +1 -1
  4. package/dist/{@react-dates-B1uoPc_Q.js → @react-dates-Cc7UHR4b.js} +1 -1
  5. package/dist/{@react-select-CIub7ipj.js → @react-select-45zYr11O.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-CzHL2GVC.js → @react-virtualized-sticky-tree-Du399kou.js} +1 -1
  7. package/dist/{@vendor-ihgcJgmv.js → @vendor-CSolG4o7.js} +24778 -31391
  8. package/dist/Common/CodeMirror/CodeEditor.constants.d.ts +1 -1
  9. package/dist/Common/CodeMirror/CodeEditorRenderer.d.ts +1 -1
  10. package/dist/Common/CodeMirror/Extensions/DiffMinimap.d.ts +1 -1
  11. package/dist/Common/CodeMirror/types.d.ts +8 -6
  12. package/dist/Common/CodeMirror/utils.d.ts +3 -3
  13. package/dist/Common/Constants.d.ts +88 -94
  14. package/dist/Common/Tooltip/constants.d.ts +0 -1
  15. package/dist/Common/Types.d.ts +0 -4
  16. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +0 -38
  17. package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
  18. package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +1 -3
  19. package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +1 -2
  20. package/dist/Shared/Components/GitProviderIcon/GitProviderIcon.d.ts +1 -1
  21. package/dist/Shared/Components/GitProviderIcon/types.d.ts +3 -8
  22. package/dist/Shared/Components/Icon/Icon.d.ts +0 -3
  23. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
  24. package/dist/Shared/Components/ReactSelect/constants.d.ts +15 -7
  25. package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
  26. package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
  27. package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +1 -2
  28. package/dist/Shared/Components/index.d.ts +0 -2
  29. package/dist/Shared/Services/app.service.d.ts +1 -4
  30. package/dist/Shared/Services/common.service.d.ts +3 -4
  31. package/dist/Shared/Services/index.d.ts +0 -1
  32. package/dist/Shared/Services/types.d.ts +14 -6
  33. package/dist/Shared/validations.d.ts +0 -1
  34. package/dist/assets/@code-editor.css +1 -1
  35. package/dist/assets/@vendor.css +1 -1
  36. package/dist/index.d.ts +0 -6
  37. package/dist/index.js +795 -804
  38. package/package.json +2 -3
  39. package/dist/Common/GenericDescription/utils.d.ts +0 -1
  40. package/dist/Shared/Components/GenericInfoCard/GenericInfoCard.component.d.ts +0 -3
  41. package/dist/Shared/Components/GenericInfoCard/index.d.ts +0 -2
  42. package/dist/Shared/Components/GenericInfoCard/types.d.ts +0 -26
  43. package/dist/Shared/Components/GenericInfoCard/utils.d.ts +0 -2
  44. package/dist/Shared/Components/GitProviderIcon/utils.d.ts +0 -2
  45. package/dist/Shared/Components/GraphVisualizer/GraphVisualizer.d.ts +0 -2
  46. package/dist/Shared/Components/GraphVisualizer/components/BaseNode.d.ts +0 -2
  47. package/dist/Shared/Components/GraphVisualizer/components/DropdownNode.d.ts +0 -3
  48. package/dist/Shared/Components/GraphVisualizer/components/IconNode.d.ts +0 -3
  49. package/dist/Shared/Components/GraphVisualizer/components/TextNode.d.ts +0 -3
  50. package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +0 -4
  51. package/dist/Shared/Components/GraphVisualizer/components/types.d.ts +0 -19
  52. package/dist/Shared/Components/GraphVisualizer/constants.d.ts +0 -15
  53. package/dist/Shared/Components/GraphVisualizer/index.d.ts +0 -2
  54. package/dist/Shared/Components/GraphVisualizer/types.d.ts +0 -12
  55. package/dist/Shared/Components/GraphVisualizer/utils.d.ts +0 -17
  56. package/dist/Shared/Services/template.service.d.ts +0 -2
  57. package/dist/assets/ic-card-stack.efd37c91.svg +0 -3
  58. package/dist/assets/ic-copy.416d85f3.svg +0 -3
  59. 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.1-beta-4",
3
+ "version": "1.9.2",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -102,12 +102,12 @@
102
102
  "@codemirror/language": "6.10.8",
103
103
  "@codemirror/legacy-modes": "6.4.2",
104
104
  "@codemirror/lint": "6.8.4",
105
+ "@codemirror/merge": "^6.10.0",
105
106
  "@codemirror/search": "6.5.8",
106
107
  "@lezer/highlight": "1.2.1",
107
108
  "@replit/codemirror-indentation-markers": "6.5.3",
108
109
  "@replit/codemirror-vscode-keymap": "6.0.2",
109
110
  "@types/react-dates": "^21.8.6",
110
- "@xyflow/react": "12.4.2",
111
111
  "@uiw/codemirror-extensions-hyper-link": "4.23.10",
112
112
  "@uiw/codemirror-theme-github": "4.23.7",
113
113
  "@uiw/react-codemirror": "4.23.7",
@@ -120,7 +120,6 @@
120
120
  "marked": "^13.0.3",
121
121
  "nanoid": "^3.3.8",
122
122
  "react-canvas-confetti": "^2.0.7",
123
- "react-codemirror-merge": "4.23.6",
124
123
  "react-dates": "^21.8.0",
125
124
  "react-diff-viewer-continued": "^3.4.0",
126
125
  "react-draggable": "^4.4.5",
@@ -1 +0,0 @@
1
- export declare const getParsedUpdatedOnDate: (updatedOn: string) => string;
@@ -1,3 +0,0 @@
1
- import { GenericInfoCardProps } from './types';
2
- declare const GenericInfoCard: ({ title, description, author, isLoading, borderVariant, Icon, onClick, linkProps, }: GenericInfoCardProps) => JSX.Element;
3
- export default GenericInfoCard;
@@ -1,2 +0,0 @@
1
- export { type GenericInfoCardProps, GenericInfoCardBorderVariant } from './types';
2
- export { default as GenericInfoCard } from './GenericInfoCard.component';
@@ -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,2 +0,0 @@
1
- import { GenericInfoCardBorderVariant } from './types';
2
- export declare const getClassNameForBorderVariant: (variant: GenericInfoCardBorderVariant) => "" | "dc__border-n1";
@@ -1,2 +0,0 @@
1
- import { IconName } from '../Icon';
2
- export declare const getGitIconName: (repoUrl: string) => IconName;
@@ -1,2 +0,0 @@
1
- import { GraphVisualizerProps } from './types';
2
- export declare const GraphVisualizer: ({ nodes: initialNodes, edges: initialEdges, setNodes, setEdges, }: GraphVisualizerProps) => JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BaseNodeProps } from './types';
2
- export declare const BaseNode: ({ id, className, isConnectable, children }: BaseNodeProps) => JSX.Element;
@@ -1,3 +0,0 @@
1
- import { NodeProps } from '@xyflow/react';
2
- import { DropdownNodeProps } from './types';
3
- export declare const DropdownNode: ({ id, data, isConnectable }: NodeProps<DropdownNodeProps>) => JSX.Element;
@@ -1,3 +0,0 @@
1
- import { NodeProps } from '@xyflow/react';
2
- import { IconNodeProps } from './types';
3
- export declare const IconNode: ({ data, id, isConnectable }: NodeProps<IconNodeProps>) => JSX.Element;
@@ -1,3 +0,0 @@
1
- import { NodeProps } from '@xyflow/react';
2
- import { TextNodeProps } from './types';
3
- export declare const TextNode: ({ id, data, isConnectable }: NodeProps<TextNodeProps>) => JSX.Element;
@@ -1,4 +0,0 @@
1
- export * from './IconNode';
2
- export * from './TextNode';
3
- export * from './DropdownNode';
4
- export * from './types';
@@ -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,2 +0,0 @@
1
- export * from './GraphVisualizer';
2
- export type { GraphVisualizerProps, GraphVisualizerNode, GraphVisualizerEdge } from './types';
@@ -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,2 +0,0 @@
1
- import { GetTemplateAPIRouteProps } from '../../Pages/index';
2
- export declare const getTemplateAPIRoute: ({ type, queryParams: { id, ...restQueryParams } }: GetTemplateAPIRouteProps) => string;
@@ -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="M8.25 15.749h-4.5v-12h12v4.5m4.5 0h-12v12h12v-12Z" 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>